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

fix z3str3 re.is_range symbolic argument bug #6186

Closed
wants to merge 1 commit into from
Closed

fix z3str3 re.is_range symbolic argument bug #6186

wants to merge 1 commit into from

Conversation

JohnLyu2
Copy link
Contributor

Currently Z3str3 doesn't support re.is_range symbolic arguments.

NikolajBjorner added a commit that referenced this pull request Jul 22, 2022
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
@@ -768,7 +772,11 @@ namespace smt {
return _qmul(2, cx);
} else if (u.re.is_range(re, sub1, sub2)) {
SASSERT(u.str.is_string(sub1));
if (!u.str.is_string(sub1))
Copy link
Contributor

Choose a reason for hiding this comment

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

Why introduce 3 copies of essentially the same code three different places?
I have added a routine now u.re.is_range(re, ch1, ch2), it returns true if re is a regex range with singleton character bounds. ch1, ch2 are unsigned integers (character codes).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi I have modified the code using u.re.is_range(re, ch1, ch2) in #6189 .

This pull request was closed.
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