GithubHelp home page GithubHelp logo

Comments (3)

sy6sy2 avatar sy6sy2 commented on June 23, 2024

So, I finally found the line to comment!
I comment this line

boolector_print_model (btor, val ? "smt2" : "btor", g_app->outfile);
and I now have the same behavior as CVC4 and Z3.

I also notice another "issue", when you have an SMT2 file without any (check-sat) (so only declare-fun, define-fun, assert), if you run this file with CVC4 or Z3 then you get nothing on your stdout (for me this is the correct behavior because you did not ask for a check-sat, a get-value or a get-model BUT, with boolector you get a sat or unsat line on your stdout, even without asking for a (check-sat).

from boolector.

mpreiner avatar mpreiner commented on June 23, 2024

This is expected behaviour. Boolector by default prints the full model (get-model) if option -m is provided. The default output language for the model is the BTOR format. Since you also query a value via (get-value) you get ((esi2 (_ bv8328 32))) followed by the full model in BTOR. Just use (set-option :produce-models true) in you SMT files and don't specify -m. There is no need to comment out code. Now you also disabled (get-model).

Boolector will still solve the problem even if there is no (check-sat) in the file. We can change this behaviour for SMT2 input files.

from boolector.

sy6sy2 avatar sy6sy2 commented on June 23, 2024

(set-option :produce-models true) is perfect!
Thank you very munch for your fast answer!

from boolector.

Related Issues (20)

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.