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

Add allChar function, fix #281 #282

Merged
merged 6 commits into from
Sep 16, 2022
Merged

Conversation

Swalkyn
Copy link
Contributor

@Swalkyn Swalkyn commented Sep 14, 2022

This function corresponds to re.allchar in http://smtlib.cs.uiowa.edu/theories-UnicodeStrings.shtml. It is implemented by the Z3 and CVC4 solvers. It was previously removed by mistake. Fixes #281.

Running tests with ant tests (before or after applying these changes) yields test errors. CVC4 tests all fail and some Z3 tests fail. For Z3 tests, this does not happen when they are run individually. I am unsure if this is expected or if I should change the way I run tests. However, the newly added test case passes with Z3.

This function corresponds to `re.allchar` in
http://smtlib.cs.uiowa.edu/theories-UnicodeStrings.shtml.

It is implemented in the Z3 and CVC4 solvers.
@kfriedberger
Copy link
Member

Tested locally. Seems to work fine. Larger Regex tests will be done as soon as there is an application using this feature.

@kfriedberger kfriedberger merged commit 561947b into sosy-lab:master Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

re.allchar might be missing from the string formula API
2 participants