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

fp.xform.bit_blast=true Soundness issue with horn on BV formula #3816

Closed
muchang opened this issue Apr 6, 2020 · 1 comment
Closed

fp.xform.bit_blast=true Soundness issue with horn on BV formula #3816

muchang opened this issue Apr 6, 2020 · 1 comment

Comments

@muchang
Copy link

muchang commented Apr 6, 2020

Hi,
For this formula:

(assert (forall ((a Bool) (b Bool) (d (_ BitVec 1)) (e (_ BitVec 1)) (f (_ BitVec 1)) (g Bool))
     (= (= f (ite a (_ bv0 1) (ite (not (= d (_ bv0 1))) (_ bv0 1) (ite b e e)))) g)))
(check-sat-using horn)

Z3 gives an incorrect answer:

[615] % z3 small.smt2
unsat
[616] % z3 fp.xform.bit_blast=true small.smt2
sat
[617] % 
[617] % cat small.smt2
(assert (forall ((a Bool) (b Bool) (d (_ BitVec 1)) (e (_ BitVec 1)) (f (_ BitVec 1)) (g Bool))
     (= (= f (ite a (_ bv0 1) (ite (not (= d (_ bv0 1))) (_ bv0 1) (ite b e e)))) g)))
(check-sat-using horn)
[618] %

OS: Ubuntu 18.04
Commit: 3313590

@NikolajBjorner
Copy link
Contributor

fixed by side-effect

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