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

(proof, opt.pb.compile_equality) Longstanding soundness bug on QF_LRA formula #4219

Closed
muchang opened this issue May 6, 2020 · 0 comments
Closed

Comments

@muchang
Copy link

muchang commented May 6, 2020

Hi,
For this case, Z3 gives an incorrect answer:

[676] % z3-4.8.5 proof=true opt.pb.compile_equality=true small.smt2
unsat
[677] % z3-4.8.6 proof=true opt.pb.compile_equality=true small.smt2
unsat
[678] % z3-4.8.7 proof=true opt.pb.compile_equality=true small.smt2
unsat
[679] % z3release proof=true opt.pb.compile_equality=true small.smt2
unsat
[680] % z3release small.smt2
sat
[681] % 
[681] % cat small.smt2
(declare-fun a () Bool)
(declare-fun b () Bool)
(declare-fun c () Bool)
(declare-fun d () Real)
(declare-fun e () Real)
(assert (<= (+ (ite c 1 0) (ite b 1 0)) 1))
(assert (= (ite c 1 0) (ite (>= (+ (ite b 1 0) (ite a (- 1) 0)) 1) 1 0)))
(assert (<= d 0 (+ (ite b 1 0) (ite a 1 0)) e))
(minimize 0)
(check-sat)
[682] %

OS: Ubuntu 18.04
Commit: f2449df

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

1 participant