mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-20 10:56:40 +03:00
allow some prefixes that may squash the literal match to run eagerly
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, Intel Corporation
|
||||
* Copyright (c) 2015-2016, Intel Corporation
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
@@ -531,9 +531,9 @@ unique_ptr<raw_dfa> buildMcClellan(const NGHolder &graph,
|
||||
DEBUG_PRINTF("attempting to build ?%d? mcclellan\n", (int)graph.kind);
|
||||
assert(allMatchStatesHaveReports(graph));
|
||||
|
||||
bool prunable = grey.highlanderPruneDFA && generates_callbacks(graph);
|
||||
assert(rm || !generates_callbacks(graph));
|
||||
if (!generates_callbacks(graph)) {
|
||||
bool prunable = grey.highlanderPruneDFA && has_managed_reports(graph);
|
||||
assert(rm || !has_managed_reports(graph));
|
||||
if (!has_managed_reports(graph)) {
|
||||
rm = nullptr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user