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 hangs on simple QF_S formula with str.replace and str.++ #4084

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

Z3 hangs on simple QF_S formula with str.replace and str.++ #4084

muchang opened this issue Apr 24, 2020 · 0 comments

Comments

@muchang
Copy link

muchang commented Apr 24, 2020

Hi,
In this case, Z3 latest build hangs on the formula while z3-4.8.7 produces results quickly.

[613] % time z3-4.8.7 small.smt2
unsat
real	0m0.028s
user	0m0.025s
sys	0m0.000s
[614] % timeout -s 9 10 z3release small.smt2
Killed
[615] % timeout -s 9 10 z3release smt.arith.solver=2 small.smt2
Killed
[616] % 
[616] % cat small.smt2
(declare-fun a () String)
(assert (distinct (str.replace (str.++ "A" a) "B" a) (str.++ "A" (str.replace a "B" a))))
(check-sat)
[617] %

OS: Ubuntu 18.04
Commit: 7597396

NikolajBjorner added a commit that referenced this issue Apr 24, 2020
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
NikolajBjorner added a commit that referenced this issue Apr 24, 2020
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
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