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

Unknown on NIA formula while z3-4.8.7 gives sat #2877

Closed
muchang opened this issue Jan 23, 2020 · 0 comments
Closed

Unknown on NIA formula while z3-4.8.7 gives sat #2877

muchang opened this issue Jan 23, 2020 · 0 comments

Comments

@muchang
Copy link

muchang commented Jan 23, 2020

HI,
For this formula,

(declare-fun x () Int)
(declare-fun y () Int)
(assert (= x 0))
(assert (distinct (div (* x y) y) x))
(check-sat)

z3 nightly build gives unknown while z3-4.8.7 gives sat:

[611] % z3 simple.smt2 
unknown
[612] % z3-4.8.7 simple.smt2 
sat
[613] % cvc4 --quiet simple.smt2 
sat
[614] % cat simple.smt2 
(declare-fun x () Int)
(declare-fun y () Int)
(assert (= x 0))
(assert (distinct (div (* x y) y) x))
(check-sat)

If x is replaced by 0, then z3 is able to report sat:

[618] % z3 simple2.smt2 
sat
[619] % cat simple2.smt2 
(declare-fun x () Int)
(declare-fun y () Int)
; (assert (= x 0))
(assert (distinct (div (* 0 y) y) 0))
(check-sat)

OS: Ubuntu 18.04
Revision: 55f62fc

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