mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-16 09:21:52 +03:00
Check if any tugs are alive when compressing/expanding repeats
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015-2016, Intel Corporation
|
||||
* Copyright (c) 2015-2017, Intel Corporation
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
@@ -1803,6 +1803,12 @@ struct Factory {
|
||||
assert(cyclic != NO_STATE);
|
||||
maskSetBit(limex->repeatCyclicMask, cyclic);
|
||||
}
|
||||
/* also include tugs in repeat cyclic mask */
|
||||
for (NFAVertex v : args.tugs) {
|
||||
u32 v_state = args.state_ids.at(v);
|
||||
assert(v_state != NO_STATE);
|
||||
maskSetBit(limex->repeatCyclicMask, v_state);
|
||||
}
|
||||
}
|
||||
|
||||
static
|
||||
|
||||
Reference in New Issue
Block a user