Implement helper to find whether state in regex automaton is reachable without consuming input

Description

Since multiple rules require finding whether a state can reach another state without consuming input, there should be a common helper to accomplish this. This method should perform a simple DFS that only traverses epsilon edges.

We could also calculate the length of the shortest path and check that it's zero, but this is simpler and more efficient.

Activity

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Labels

Components

Fix versions

Due date

Priority

Sentry

Created October 6, 2020 at 11:10 AM
Updated October 16, 2024 at 2:07 PM
Resolved December 7, 2020 at 12:30 PM