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 crashes on string formula #2562

Closed
muchang opened this issue Sep 17, 2019 · 0 comments
Closed

Z3 crashes on string formula #2562

muchang opened this issue Sep 17, 2019 · 0 comments

Comments

@muchang
Copy link

muchang commented Sep 17, 2019

Hi,
For this formula:

(declare-fun a () String)     
(declare-fun b () String)     
(declare-fun c () String)     
(assert (= (str.substr a 0 (str.len b)) ""))     
(assert (=      
            (ite      
                (= (str.len (str.substr (str.replace (str.replace a b "") "29M8u" "") 1 (- (str.len c) 1))) 0) 1 0
            )      
            0       
        )      
)     
(check-sat)   

Z3 will crash with this error message:

Failed to verify: get_length(e, len1)
*** stack smashing detected ***: <unknown> terminated
[1]    65175 abort      z3/build-2019-09-14-69abe16-no_asserts/z3

OS: Ubuntu 18.04
Revision: 69abe16

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