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

Invaid model for QF_LIA formulas (rewriter.flat false) #4164

Closed
rainoftime opened this issue Apr 30, 2020 · 2 comments
Closed

Invaid model for QF_LIA formulas (rewriter.flat false) #4164

rainoftime opened this issue Apr 30, 2020 · 2 comments

Comments

@rainoftime
Copy link
Contributor

rainoftime commented Apr 30, 2020

Hi, for the following formula,
z3 9f6a733 gives an invalid model

(set-logic QF_LIA)
(set-option :model_validate true)
(set-option :rewriter.flat false)
(declare-const i2 Int)
(assert (< (abs (+ 0 (- 0 83 i2 i2 0) i2)) (- 0 83 i2 0 0)))
(check-sat)
@rainoftime
Copy link
Contributor Author

Another case with more options

(set-logic QF_LIA)
(set-option :model_validate true)
(set-option :rewriter.flat false)
(set-option :rewriter.sort_sums true)
(set-option :rewriter.arith_ineq_lhs true)
(declare-const i1 Int)
(declare-const i3 Int)
(declare-const i4 Int)
(assert (not (<= 0 867 (abs (+ i3 (- i1 867 i1 867 i1) 867)) 0 867)))
(assert (xor true true true true true true (<= i4 (abs (+ i3 (- i1 867 i1 867 i1) 867)))))
(check-sat)

@NikolajBjorner
Copy link
Contributor

NikolajBjorner commented May 1, 2020

less is actually more (useful)

hgvk94 pushed a commit to hgvk94/z3 that referenced this issue May 7, 2020
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