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

(a*)* spins the matching engine forever #542

Closed
hamishknight opened this issue Jul 5, 2022 · 2 comments · Fixed by #560
Closed

(a*)* spins the matching engine forever #542

hamishknight opened this issue Jul 5, 2022 · 2 comments · Fixed by #560

Comments

@hamishknight
Copy link
Contributor

hamishknight commented Jul 5, 2022

Attempting to match the input "a" against the pattern (a*)* appears to spin the matching engine forever.

rdar://96461197

@hamishknight
Copy link
Contributor Author

cc @milseman

@milseman
Copy link
Member

milseman commented Jul 5, 2022

This is a common/natural fall out of simple backtracking. We'll want to eventually have loop analysis over an IR to avoid it, but there might be a shorter term fix we can do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants