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

z3str3: fix support for re.complement and re.intersection #4092

Merged
merged 1 commit into from
Apr 29, 2020

Conversation

mtrberzi
Copy link
Collaborator

Fixes a bug reported to me off-tracker where instances containing regex complement and intersection operators would crash unexpectedly when run using Z3str3. Thanks to @copumpkin for the report!

return false;
} else if (u.re.is_intersection(re)) {
return false;
} else if (u.re.is_complement(re)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this one is redundant given the one right above isn't it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, but eventually, these will have two different heuristics for length, and I wanted to capture that by separating them out.

@NikolajBjorner
Copy link
Contributor

feel free to merge when it is ready on your side

@mtrberzi mtrberzi merged commit b0ffad9 into Z3Prover:master Apr 29, 2020
@mtrberzi mtrberzi deleted the regex-compl-inter branch April 29, 2020 15:13
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.

3 participants