Giter Club home page Giter Club logo

eusolver's Introduction

eusolver

Fork of the original eusolver. Requires python3.6.

(Forked from: https://github.com/akrasuski1/eusolver-priority)

Build

Install pre-requisite with:

sudo apt install cmake python3-pip
python3 -m pip install pyparsing z3-solver==4.8.7.0

Build with:

./scripts/build.sh

Run

To test whether it's running correctly, do:

./eusolver benchmarks/max/max_2.sl

If working correctly, the following should be printed:

(define-fun max2 ((a0 Int) (a1 Int)) Int
     (ite (>= a0 a1) a0 a1))

eusolver's People

Contributors

arjunradhakrishna avatar pauljurczak avatar yuntongzhang avatar

Stargazers

 avatar

Watchers

 avatar  avatar

eusolver's Issues

Errors reading SyGuS .sy file format.

I tried a simple test ./eusolver ex5.sy with this SyGuS file:

(set-logic LIA)

(synth-fun f ((x Int) (y Int)) Int
    
    ((I Int) (B Bool))

    ((I Int (x y 0 1 2 3 4 5 6 7 8 9
             (ite B I I)))
     (B Bool ((<= I I))))
)

(declare-var x Int)
(declare-var y Int)

(constraint (= (f 3 1) 3))
(constraint (= (f 2 2) 2))
(constraint (= (f 1 3) 1))
(constraint (= (f 4 4) 4))
(constraint (= (f 8 5) 9))
(constraint (= (f 7 6) 9))
(constraint (= (f 9 7) 9))
(constraint (= (f 5 8) 9))
(constraint (= (f 6 9) 9))

(check-synth)

and got this error:

  File "/home/paul/eusolver/src/parsers/parser.py", line 170, in process_synth_funcs
    [name, args_data, ret_type_data] = synth_fun_data
ValueError: too many values to unpack (expected 3)

This file works fine with cvc5 solver.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.