mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-17 09:45:28 +03:00
rose: Use an interpreter for role runtime
Replace much of the RoseRole structure with an interpreted program, simplifying the Rose runtime and making it much more flexible.
This commit is contained in:
committed by
Matthew Barr
parent
a7d8dafb71
commit
9cb2233589
@@ -629,8 +629,6 @@ RoseDedupeAuxImpl::RoseDedupeAuxImpl(const RoseBuildImpl &tbi_in)
|
||||
}
|
||||
|
||||
for (const auto &outfix : tbi.outfixes) {
|
||||
assert(!outfix.nfa); /* should not be built yet */
|
||||
|
||||
for (const auto &report_id : all_reports(outfix)) {
|
||||
outfix_map[report_id].insert(&outfix);
|
||||
}
|
||||
@@ -738,7 +736,6 @@ bool RoseDedupeAuxImpl::requiresDedupeSupport(
|
||||
for (const auto &outfix_ptr : outfixes) {
|
||||
assert(outfix_ptr);
|
||||
const OutfixInfo &out = *outfix_ptr;
|
||||
assert(!out.nfa); /* should not be built yet */
|
||||
|
||||
if (has_outfix || has_role || has_suffix) {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user