Skip to content

z3 reports invalid model #2676

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

Closed
muchang opened this issue Nov 1, 2019 · 1 comment
Closed

z3 reports invalid model #2676

muchang opened this issue Nov 1, 2019 · 1 comment

Comments

@muchang
Copy link

muchang commented Nov 1, 2019

Hi,
For this formula,

(declare-fun a () Int)
(declare-fun b () Bool)
(declare-fun c () Bool)
(declare-fun d () Bool)
(declare-fun e () Bool)
(assert (= b (= (/ 1 0) a) (= b d e) (= e c d)))
(check-sat)
(get-model)

z3 will report a invaild model:

(model 
  (define-fun e () Bool
    true)
  (define-fun c () Bool
    false)
  (define-fun d () Bool
    true)
  (define-fun a () Int
    0)
  (define-fun b () Bool
    true)
)

OS: Ubuntu 18.04
Revision: 16d4ccd

@NikolajBjorner
Copy link
Contributor

See #2663

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants