Remove unreachable parser states, and collapse simple chains of states. More...

Public Member Functions | |
| DoSimplifyParsers (ReferenceMap *refMap) | |
| const IR::Node * | preorder (IR::P4Control *control) override |
| const IR::Node * | preorder (IR::P4Parser *parser) override |
Remove unreachable parser states, and collapse simple chains of states.
Does not remove the "accept" state, even if it is not reachable. A transition between states s1 and s2 is part of a "simple" chain if:
s1,s2,s2 does not have annotations.