mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-20 02:47:11 +03:00
mcclellan: Remove the use of state numbering
McClellan and Haig only need to know which states are not participants (i.e. unused start, startDs)
This commit is contained in:
committed by
Matthew Barr
parent
5dd4aa9c13
commit
839c90594c
@@ -81,6 +81,13 @@ u32 countStates(const NGHolder &g,
|
||||
/** Optimisation: drop unnecessary start states. */
|
||||
void dropUnusedStarts(NGHolder &g, ue2::unordered_map<NFAVertex, u32> &states);
|
||||
|
||||
/**
|
||||
* \brief Returns a set of vertices that will not participate in an
|
||||
* implementation (NFA, DFA etc) of this graph. For example, starts with no
|
||||
* successors.
|
||||
*/
|
||||
flat_set<NFAVertex> findUnusedStates(const NGHolder &g);
|
||||
|
||||
} // namespace ue2
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user