Overview
| Artifact ID: | 16e85252448bd1ccf0b0de9da4f9bcb248c7957e |
|---|---|
| Ticket: | 3604074fffffffffffffffffffffffffffffffff
Inifinite loop when matching regular expression |
| User & Date: | dgp on 2013-02-14 01:51:13 |
Changes
- icomment:
The 8-deep expression that still hangs in bug-3604074 branch reaches a point where there are 8 states which have outgoing EMPTY arcs to states that also have outgoing EMPTY arcs. Looking at just those states and just EMPTY arcs, the graph is: A: G H E C F D B: E C F G H A C: E B D G H F D: C F H B G A E: C F D G A H F: B E G H A C G: A H D F C B H: A D F C E G After one pass through the fixempties() loop, the new graph is: A: F C E H G B B: H G F C E D C: H G D B E A D: G B H F C E E: A G D F C B F: A H G E B D G: C F D H A E H: E C F D A B Then the next pass through the loop will return the graph to the first state. To fundamentally solve this problem within fixempties() requires changing the algorithm to one which will not fall into this kind of a limit cycle.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"