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

pqffd incorrect answer on formula with declare-datatypes #2922

Closed
muchang opened this issue Feb 2, 2020 · 1 comment
Closed

pqffd incorrect answer on formula with declare-datatypes #2922

muchang opened this issue Feb 2, 2020 · 1 comment

Comments

@muchang
Copy link

muchang commented Feb 2, 2020

Hi,
For this formula,

(declare-datatypes ((a 0)) (((b) (c (d a)))))
(declare-fun e () a)
(declare-fun f () a)
(assert (= f e))
(assert (not ((_ is (c (a) a)) f)))
(assert (or ((_ is (c (a) a)) e)))
(check-sat-using pqffd)
(get-model)

z3 incorrectly gives sat and an incorrect model:

  (define-fun f () a
    b)
  (define-fun e () a
    b)

If I feed this model to the formula, z3 reports unsat.

OS: Ubuntu 18.04
Revision: 805ac74

@NikolajBjorner
Copy link
Contributor

don't use qffd on indefinite sorts.

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