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

(purify-arith, ctx-solver-simplify) Soundness bug on QF_NIA formula #4340

Closed
muchang opened this issue May 16, 2020 · 1 comment
Closed

(purify-arith, ctx-solver-simplify) Soundness bug on QF_NIA formula #4340

muchang opened this issue May 16, 2020 · 1 comment

Comments

@muchang
Copy link

muchang commented May 16, 2020

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

[539] % z3release small.smt2
unsat
sat
[540] % cat small.smt2
(declare-fun c () Int)
(declare-fun a () Int)
(declare-fun b () Int)
(assert (> a 0 c (* a b)))
(assert (= b (div c a)))
(check-sat-using (then purify-arith ctx-solver-simplify))
(check-sat)
[541] %

OS: Ubuntu 18.04
Commit: ce07138

@levnach
Copy link
Contributor

levnach commented May 16, 2020

The debug build of ce07138 gives
./z3 ~/Dropbox/smts/4340.smt2
ASSERTION VIOLATION
File: ../../src/smt/tactic/ctx_solver_simplify_tactic.cpp
Line: 141
UNREACHABLE CODE WAS REACHED.
(C)ontinue, (A)bort, (S)top, (T)hrow exception, Invoke (G)DB

A lemma generated by intervals::check_nex() is incorrect. I am looking at it.
Fixed in aaf05f1

@levnach levnach closed this as completed May 17, 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