mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-10-10 00:02:24 +03:00
dfa: don't clear states, just mark dfa dead
The previous change caused some assertion issues.
This commit is contained in:
committed by
Matthew Barr
parent
3d4d39b8a9
commit
75e4aefabe
@@ -59,6 +59,7 @@
|
||||
#include "dfa_min.h"
|
||||
|
||||
#include "grey.h"
|
||||
#include "mcclellancompile_util.h"
|
||||
#include "rdfa.h"
|
||||
#include "ue2common.h"
|
||||
#include "util/container.h"
|
||||
@@ -299,6 +300,10 @@ void minimize_hopcroft(raw_dfa &rdfa, const Grey &grey) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (is_dead(rdfa)) {
|
||||
DEBUG_PRINTF("dfa is empty\n");
|
||||
}
|
||||
|
||||
UNUSED const size_t states_before = rdfa.states.size();
|
||||
|
||||
HopcroftInfo info(rdfa);
|
||||
|
Reference in New Issue
Block a user