Giter Club home page Giter Club logo

Comments (4)

Gbury avatar Gbury commented on May 15, 2024

You're right, I'll fix that. By the way, would you have some files on which dolmen fails currently because of this typo ? I could add them to the testsuite ( https://github.com/Gbury/dolmen/tree/master/tests/smtlib ).

from dolmen.

anmaped avatar anmaped commented on May 15, 2024

Yes. You could use one of these examples:

(declare-datatypes () ((Threevalue (TVTRUE) (TVFALSE) (TVUNKNOWN) )))
(define-fun tvnot ((phi Threevalue)) Threevalue
	(ite (= phi TVTRUE) TVFALSE (ite (= phi TVFALSE) TVTRUE TVUNKNOWN) )
)
(declare-datatypes () ((Threevalue (TVTRUE) (TVFALSE) (TVUNKNOWN) )))
(define-fun tvor ((phi1 Threevalue) (phi2 Threevalue)) Threevalue
	(ite (or (= phi1 TVTRUE) (= phi2 TVTRUE) ) TVTRUE (ite (and (= phi1 TVFALSE) (= phi2 TVFALSE)) TVFALSE TVUNKNOWN ) )
)

If you want some use case tests for the smtlib pretty printer, I can provide some ocaml code as well.

By the way, I also noted that comments in smtlib are not allowed by the parser.

from dolmen.

Gbury avatar Gbury commented on May 15, 2024

Closed with the last commits. Note that the files in your last comment are not valid in smtlib v2.6 because of the datatype declaration (see https://github.com/Gbury/dolmen/blob/master/tests/smtlib/test-fun_def_1.smt2 for instance).

from dolmen.

anmaped avatar anmaped commented on May 15, 2024

Yes. It's right. I just copy paste the data type to the example to be self-contained. Thanks.

from dolmen.

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.