Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SMTLib compliance: -7.0 is a valid identifier. #4594

Closed
LeventErkok opened this issue Jul 27, 2020 · 0 comments
Closed

SMTLib compliance: -7.0 is a valid identifier. #4594

LeventErkok opened this issue Jul 27, 2020 · 0 comments

Comments

@LeventErkok
Copy link

Strictly speaking, the following is a valid SMTLib2 benchmark:

(set-option :produce-models true)
(set-option :smtlib2_compliant true)
(set-logic ALL)
(declare-fun -7.0 () Int)
(assert (= -7.0 0))
(check-sat)
(get-model)

And it's accepted by CVC4, Yices, and MathSAT just fine. But z3 complains:

(error "line 4 column 13: invalid function declaration, symbol expected")

Just dropping this here as a note; I think this is one place where diverging from the standard is probably the right choice. But the presence of the directive (set-option :smtlib2_compliant true) makes this harder to swallow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant