Skip to content

Conversation

@copybara-service
Copy link
Contributor

Fix the corpus value validation for InRegexp.

The function RegexpDFA::DFAPathToString() that is used in the corpus value
validation wasn't checking that the DFA path is consistent with the DFA,
i.e., that the states along the path are really the ones appearing in the DFA
if we follow the path. It also wasn't checking that the path reaches the end
state.

I also cleaned up the code a bit and added a few general improvements.

The function `RegexpDFA::DFAPathToString()` that is used in the corpus value
validation wasn't checking that the DFA path is consistent with the DFA,
i.e., that the states along the path are really the ones appearing in the DFA
if we follow the path. It also wasn't checking that the path reaches the end
state.

I also cleaned up the code a bit and added a few general improvements.

PiperOrigin-RevId: 756386731
@copybara-service copybara-service bot merged commit 14df814 into main May 8, 2025
@copybara-service copybara-service bot deleted the cl/755663271 branch May 8, 2025 18:15
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