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

Proposed operator str.indexof_re #7

Open
barrettcw opened this issue Sep 6, 2023 · 0 comments
Open

Proposed operator str.indexof_re #7

barrettcw opened this issue Sep 6, 2023 · 0 comments
Assignees

Comments

@barrettcw
Copy link
Member

From Andy and Andres (email May 21, 2021):

Hi Cesare and all,

Andres and I discussed having another operator in SMT-LIB for the theory of strings:

(str.indexof_re x R n)

of type (-> String RegLan Int Int)

which returns the first index, starting from n in x that is a non-empty match for regular expression R.

This operator could be used when reasoning about str.replace_re, analogously to how str.indexof relates to str.replace.

Cheers,
Andy

@barrettcw barrettcw self-assigned this Oct 18, 2023
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

No branches or pull requests

1 participant