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

invalid model on an incremental QF_UFLIA instance #6937

Closed
zhendongsu opened this issue Oct 9, 2023 · 1 comment
Closed

invalid model on an incremental QF_UFLIA instance #6937

zhendongsu opened this issue Oct 9, 2023 · 1 comment

Comments

@zhendongsu
Copy link

Commit: 1bdf66b
OS: Ubuntu 22.04

[537] % z3release model_validate=true small.smt2 
sat
sat
(error "line 7 column 10: an invalid model was generated")
(
  (define-fun b () Int
    1)
  (define-fun a ((x!0 Int)) Int
    0)
)
[538] % cat small.smt2 
(declare-fun a (Int) Int)
(declare-fun b () Int)
(push)
(assert (> b 0))
(check-sat)
(assert (< (a 1) (a b)))
(check-sat)
(get-model)
@zhendongsu
Copy link
Author

Another likely related instance:

[546] % z3release model_validate=true small.smt2 
sat
sat
sat
(error "line 7 column 10: an invalid model was generated")
(
  (define-fun a () Int
    0)
  (define-fun b ((x!0 Int)) Bool
    true)
)
[547] % cat small.smt2 
(declare-fun a () Int)
(check-sat)
(declare-fun b (Int) Bool)
(assert (b (+ a 1)))
(check-sat)
(assert (not (b 1)))
(check-sat)
(get-model)

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