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

(z3str3 ctx-solver-simplify) Soundness bug on QF_SLIA formula #4351

Closed
muchang opened this issue May 17, 2020 · 1 comment
Closed

(z3str3 ctx-solver-simplify) Soundness bug on QF_SLIA formula #4351

muchang opened this issue May 17, 2020 · 1 comment
Assignees
Labels

Comments

@muchang
Copy link

muchang commented May 17, 2020

Hi,
For this case, Z3 gives an incorrect answer:

[504] % z3release smt.string_solver=z3str3 small.smt2
sat
unsat
[505] % 
[505] % cat small.smt2
(declare-fun a () Int)
(declare-fun b () String)
(assert (= a 1))
(assert (str.in.re b (re.inter (str.to.re "") (str.to.re "a"))))
(check-sat-using ctx-solver-simplify)
(check-sat)
[506] %

OS: Ubuntu 18.04
Commit: fc8dfe3

@zhendongsu
Copy link

A simpler, almost identical test:

[614] % z3 smt.string_solver=z3str3 small.smt2
sat
unsat
[615] % 
[615] % cat small.smt2
(declare-fun a () String)
(assert (str.in.re a (re.+ (re.inter (str.to.re "") (str.to.re "a")))))
(check-sat-using ctx-solver-simplify)
(check-sat)
[616] % 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants