-
Notifications
You must be signed in to change notification settings - Fork 46
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
re.allchar
might be missing from the string formula API
#281
Comments
Right after posting, I found the source of the problem. It seems that |
I am working on a PR to solve this issue. It should be ready by the end of the day. |
This function corresponds to `re.allchar` in http://smtlib.cs.uiowa.edu/theories-UnicodeStrings.shtml. It is implemented in the Z3 and CVC4 solvers.
Hi @Swalkyn The reason for removing At that point in time, we seem to have forgotten to check all other regex- and string-based methods for this issue, |
Ah yes my mistake, I should have read the discussion more carefully. I did not realize CVC4 was not adhering to the SMTLIB standard.
I believe this has not changed, see http://cvc4.cs.stanford.edu/wiki/Strings and https://microsoft.github.io/z3guide/docs/theories/Strings. Also, CVC4 will probably always have this difference since it is being replaced by CVC5 (which works with Unicode as specified in the SMTLIB standard). However, Z3 and CVC4 both provide a function corresponding to For that reason, I would argue that having |
Hello there,
I'm working with the Unicode strings theory, and I want to create a
RegexFormula
for the regular expression accepting any single character (usually written as.
). This is a function provided by the theory (search forre.allchar
).I did not find the corresponding function in
StringFormulaManager
's JavaDoc. Searching through the source code did not yield anything. I am quite sure that usingmakeRegex(".")
matches a single dot character, and not any character.Is this function omitted on purpose ? Was it simply confused with
re.all
? Or am I missing something ?If it turns out that
re.allchar
is not omitted on purpose, I would be glad to submit a PR implementing it (for Z3 at least).The text was updated successfully, but these errors were encountered: