dfa: don't clear states, just mark dfa dead

The previous change caused some assertion issues.
This commit is contained in:
Justin Viiret
2017-06-23 13:01:47 +10:00
committed by Matthew Barr
parent 3d4d39b8a9
commit 75e4aefabe
4 changed files with 19 additions and 1 deletions

View File

@@ -59,6 +59,13 @@ size_t hash_dfa(const raw_dfa &rdfa);
bool can_die_early(const raw_dfa &raw, u32 age_limit);
/**
* \brief Returns true if this DFA cannot match, i.e. its start state is
* DEAD_STATE.
*/
bool is_dead(const raw_dfa &rdfa);
} // namespace ue2
#endif