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

Problem with negative real literals in models in Alt-Ergo 2.6.0 #1271

Closed
manmatteo opened this issue Dec 4, 2024 · 0 comments · Fixed by #1272
Closed

Problem with negative real literals in models in Alt-Ergo 2.6.0 #1271

manmatteo opened this issue Dec 4, 2024 · 0 comments · Fixed by #1272

Comments

@manmatteo
Copy link

The models sometime contain negative real literals: e.g -42.0, which should be (- 42.0). For example

(set-logic ALL)
(set-option :produce-models true)
(declare-fun x () Real)
(assert (= x (- 42.0)))
(check-sat)
(get-model)

Gives

; File "simple.smt2", line 6, characters 1-12: I don't know (0.0035) (4 steps) (goal g_1)

unknown
(
  (define-fun x () Real -42.0)
)

At the same time, if I write -42.0 into the original file, Alt-Ergo correctly refuses that.

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

Successfully merging a pull request may close this issue.

1 participant