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

(smt.ematching=false) Soundness bug with declare-datatypes #3971

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

(smt.ematching=false) Soundness bug with declare-datatypes #3971

muchang opened this issue Apr 15, 2020 · 1 comment

Comments

@muchang
Copy link

muchang commented Apr 15, 2020

Hi,
For this case, Z3 smt.ematching=false gives an incorrect answer:

[650] % z3 small.smt2
unsat
[651] % z3 smt.ematching=false small.smt2
sat
[652] % 
[652] % cat small.smt2
(declare-datatypes ((a 0)) (((b (c a)) d)))
(declare-sort i)
(declare-fun e (i) a)
(assert (forall ((f i)) (ite ((_ is d) (e f)) true (ite ((_ is b) (e f)) (forall ((g i)) (= (e g) (c (e f)))) true))))
(assert (exists ((h a) (g i)) (= (e g) h)))
(check-sat)
[653] %

OS: Ubuntu 18.04
Commit: 164a73f

@NikolajBjorner
Copy link
Contributor

regression from b8c069c

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