Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Invalid model for string formula #4839

Closed
rainoftime opened this issue Dec 1, 2020 · 0 comments
Closed

Invalid model for string formula #4839

rainoftime opened this issue Dec 1, 2020 · 0 comments

Comments

@rainoftime
Copy link
Contributor

rainoftime commented Dec 1, 2020

Hi, for the following formula,
z3 3bca1fb

(declare-fun a () (Seq Int))
(declare-fun b () (Seq Int))
(declare-fun c () (Seq Int))
(declare-fun x () Int)
(declare-fun y () Int)
(assert (or (= b c) (= a c)))
(assert (= (seq.nth c 0) (seq.nth c x)))
(assert (not (= (seq.nth b y) (seq.nth c y))))
(check-sat)
(get-model)
./z3 model_validate=true ../delta.out.smt2 
sat
(error "line 9 column 10: an invalid model was generated")
(
  (define-fun b () (Seq Int)
    (seq.unit 0))
  (define-fun c () (Seq Int)
    (seq.unit 0))
  (define-fun a () (Seq Int)
    (seq.unit 0))
  (define-fun x () Int
    (- 1))
  (define-fun y () Int
    (- 7720))
  (define-fun seq.nth_u ((x!0 (Seq Int)) (x!1 Int)) Int
    (ite (and (= x!0 (seq.unit 0)) (= x!1 (- 7720))) 21239
      0))
)
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant