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

fixed bug of computing butlast of a sequence #5602

Merged
merged 1 commit into from
Oct 16, 2021

Conversation

veanes
Copy link
Collaborator

@veanes veanes commented Oct 16, 2021

This bug was found by @NikolajBjorner.
It shows up in dealing with derivatives of the reverse of a sequence that then uses butlast
The fix takes care of the following case in #5591

(declare-fun a () String)
(assert (str.in_re (str.++ a "AA") (re.++ (re.* (str.to_re "B")) (str.to_re (str.substr (str.++ "B" a) (str.len a) (str.len a))))))
(check-sat)

now returns unsat as expected.

@NikolajBjorner NikolajBjorner merged commit f78546c into Z3Prover:master Oct 16, 2021
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

Successfully merging this pull request may close these issues.

2 participants