Git Product home page Git Product logo

Comments (7)

Gbury avatar Gbury commented on June 5, 2024

Right, I'll improve the syntax error message for that case (probably after the holidays though).

The reason for using a boolean instead of a flag is that it's easier if/when the default ever changes. That being said, I'm planning to make it so that you do not need to explicitly set the option when providing a file using the -r option, so that should help.

from dolmen.

Halbaroth avatar Halbaroth commented on June 5, 2024

I also found a wrong message from the type checker with this input file:

(set-logic ALL)
(declare-const x Int)
(declare-const y Bool)
(declare-fun f (Int Int) Int)
(assert (= (f x y) 0))
(check-sat)

Dolmenls outputs:

dolmenls: The term: `y` has type `Prop` but was expected to be of type `int`

But we expect Bool instead of Prop and Int instead of int.

PS: I didn't open a new issue for such a tiny problem but I can do so if you want.

from dolmen.

Gbury avatar Gbury commented on June 5, 2024

Ah, that's an unfortunate problem of the current code, which uses the same type for Bool and Prop, which is correct, but lead to currently poor/confusing error messages. Ideally the solution will be to print these in the input language once we have the printers (which I should really try and get done at one point).

from dolmen.

bclement-ocp avatar bclement-ocp commented on June 5, 2024

Is there a reason for refusing to check models with an unknown status? My understanding of the SMT-LIB specification is that the solver should move to sat mode after replying unknown, and respond to get-model and co. The model is not required to be valid by the spec, but it is still interesting to be able to check if it is valid or not.

from dolmen.

Gbury avatar Gbury commented on June 5, 2024

No real reason, I just didn't really think about that situation.
In such a case though, what would be the expected output of dolmen when asked to verify an model that is incorrect ?

from dolmen.

bclement-ocp avatar bclement-ocp commented on June 5, 2024

Maybe display warnings rather than errors for failed assertions?

from dolmen.

Gbury avatar Gbury commented on June 5, 2024

That would work. I'll probably implement that soon.

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.