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

Memory exceeded with str.substr in 4.8.13 #5715

Closed
icemonster opened this issue Dec 16, 2021 · 0 comments
Closed

Memory exceeded with str.substr in 4.8.13 #5715

icemonster opened this issue Dec 16, 2021 · 0 comments

Comments

@icemonster
Copy link

This query:

(declare-const str1 String)
(assert (not (= (str.substr str1 1 999999) "someString")))
(check-sat)

immediately returns sat when using Z3 4.8.7. However, when using 4.8.13 (or 4.8.11, haven't tried more versions) it fills up the RAM, or if we give it enough memory (~10GB) it takes forever.

I use that big upper bound 999999 as a way to represent the "end of the string" str1.

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