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

Incorrect answer for constant arrays #2549

Closed
mpreiner opened this issue Sep 11, 2019 · 0 comments
Closed

Incorrect answer for constant arrays #2549

mpreiner opened this issue Sep 11, 2019 · 0 comments

Comments

@mpreiner
Copy link

Z3 (master 6384080) reports sat instead of unsat for the following formula:

(declare-const A0 (Array Int Int))
(declare-const A1 (Array Int Int))
(assert (= A0 ((as const (Array Int Int)) 0)))
(assert (= A1 ((as const (Array Int Int)) 1)))
(assert (= (store A0 2 3) (store A1 2 3)))
(check-sat)

The model Z3 reports is:

sat
(model 
  (define-fun A0 () (Array Int Int)
    ((as const (Array Int Int)) 0))
  (define-fun A1 () (Array Int Int)
    ((as const (Array Int Int)) 1))
)

Does Z3 fully support equalities over constant arrays?

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