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 QF_S formula with str.substr, str.contains, str.len #4073

Closed
muchang opened this issue Apr 23, 2020 · 0 comments
Closed

Invalid model on QF_S formula with str.substr, str.contains, str.len #4073

muchang opened this issue Apr 23, 2020 · 0 comments

Comments

@muchang
Copy link

muchang commented Apr 23, 2020

Hi,
For this case, Z3 gives an invalid model:

[520] % z3-4.8.7 model_validate=true small.smt2
sat
[521] % z3 model_validate=true small.smt2
sat
(error "line 6 column 10: an invalid model was generated")
[522] % 
[522] % cat small.smt2
(declare-const a String)
(declare-const b String)
(assert (distinct b (str.substr a 0 1)))
(assert (str.contains "bcd" a))
(assert (>= (str.len a) 3))
(check-sat)
[523] %

OS: Ubuntu 18.04
Commit: 8fe3caa

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