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

Invalid model for QF_LIA formula (opt) #4117

Closed
rainoftime opened this issue Apr 27, 2020 · 1 comment
Closed

Invalid model for QF_LIA formula (opt) #4117

rainoftime opened this issue Apr 27, 2020 · 1 comment

Comments

@rainoftime
Copy link
Contributor

rainoftime commented Apr 27, 2020

Hi, for the following formula, z3 (commit a0de244) gives an invalid model

(set-logic QF_LIA)
(declare-fun _substvar_774_ () Bool)
(set-option :opt.priority pareto)
(set-option :model_validate true)
(declare-const v2 Bool)
(declare-const i0 Int)
(declare-const i2 Int)
(declare-const i3 Int)
(declare-const i5 Int)
(declare-const v5 Bool)
(declare-const v6 Bool)
(declare-const i7 Int)
(assert (or v2 (> (div i3 53) (+ i3 87))))
(assert (or (= _substvar_774_ v6 (= i5 i0) (not v2) v6 (>= 87 (+ i3 87)) false false) v5))
(assert (or (xor true false v5) (= i5 i0)))
(minimize (+ i0 i2))
(maximize (- i0 i3))
(minimize (+ i0 i5))
(maximize (- i0 i7))
(maximize (- i2 i3))
(maximize (- i3 i5))
(check-sat)
@NikolajBjorner
Copy link
Contributor

similar to #4136

NikolajBjorner added a commit that referenced this issue Mar 13, 2025
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

2 participants