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 issue on a simple string formula #6687

Closed
merlinsun opened this issue Apr 13, 2023 · 0 comments
Closed

Invalid model issue on a simple string formula #6687

merlinsun opened this issue Apr 13, 2023 · 0 comments

Comments

@merlinsun
Copy link

Hi,
For this instance, z3 7cd8edc gives an invalid model.

$ cat small.smt2 
(declare-fun t () String)
(declare-fun r () String)
(declare-fun i () String)
(declare-fun tr () String)
(declare-fun s () String)
(assert (= (str.++ i r) (str.++ r t)))
(assert (= (str.++ tr t) (str.++ s (str.++ i r))))
(check-sat)
$ z3 model_validate=true small.smt2       
sat
(error "line 8 column 10: an invalid model was generated")
NikolajBjorner added a commit that referenced this issue Apr 13, 2023
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