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

Z3 regular expression soundness bug #4049

Closed
wintered opened this issue Apr 22, 2020 · 0 comments
Closed

Z3 regular expression soundness bug #4049

wintered opened this issue Apr 22, 2020 · 0 comments

Comments

@wintered
Copy link

Potentially related: #4017

[646] % z3release small.smt2
sat
[647] % z3release smt.threads=2 small.smt2
unsat
[648] % cvc4 -q small.smt2
sat
[649] % 
[649] % cat small.smt2
(declare-fun a () String)
(declare-fun b () String)
(assert (str.in.re (str.++ "z" b) (re.++ (re.* (re.union (str.to.re "z") (str.to.re "") (str.to.re "b"))) (re.union (str.to.re "") (str.to.re "a")))))
(assert (not (str.in.re (str.++ a "a") (re.inter (re.* (str.to.re "")) (str.to.re "")))))
(check-sat)
[650] %

OS: Ubuntu 18.04
Commit: dd064a5

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