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

Soundness bug in QF_S logic with str.to_int #4153

Closed
wintered opened this issue Apr 28, 2020 · 1 comment
Closed

Soundness bug in QF_S logic with str.to_int #4153

wintered opened this issue Apr 28, 2020 · 1 comment

Comments

@wintered
Copy link

[648] % z3-4.8.7 small.smt2
unsat
[649] % z3 small.smt2
sat
[650] % z3 model_validate=true small.smt2
sat
(error "line 5 column 10: an invalid model was generated")
[651] % 
[651] % cat small.smt2
(declare-fun a () String)
(declare-fun b () String)
(assert (= (str.++ (str.substr "1" 0 (str.len a)) "0") b))
(assert (< (str.to.int b) 0))
(check-sat)
[652] %
NikolajBjorner added a commit that referenced this issue Apr 29, 2020
@NikolajBjorner
Copy link
Contributor

exposed

  • incomplete axiomatization of stoi
  • more opportunities for rewriting

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

2 participants