aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/hyperscan/src/grey.cpp
diff options
context:
space:
mode:
authorIvan Blinkov <ivan@blinkov.ru>2022-02-10 16:47:10 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:10 +0300
commit1aeb9a455974457866f78722ad98114bafc84e8a (patch)
treee4340eaf1668684d83a0a58c36947c5def5350ad /contrib/libs/hyperscan/src/grey.cpp
parentbd5ef432f5cfb1e18851381329d94665a4c22470 (diff)
downloadydb-1aeb9a455974457866f78722ad98114bafc84e8a.tar.gz
Restoring authorship annotation for Ivan Blinkov <ivan@blinkov.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/hyperscan/src/grey.cpp')
-rw-r--r--contrib/libs/hyperscan/src/grey.cpp104
1 files changed, 52 insertions, 52 deletions
diff --git a/contrib/libs/hyperscan/src/grey.cpp b/contrib/libs/hyperscan/src/grey.cpp
index 86a93d25aa..5d62fb0d59 100644
--- a/contrib/libs/hyperscan/src/grey.cpp
+++ b/contrib/libs/hyperscan/src/grey.cpp
@@ -34,7 +34,7 @@
#include <string>
#include <vector>
-#define DEFAULT_MAX_HISTORY 110
+#define DEFAULT_MAX_HISTORY 110
using namespace std;
@@ -42,7 +42,7 @@ namespace ue2 {
Grey::Grey(void) :
optimiseComponentTree(true),
- calcComponents(true),
+ calcComponents(true),
performGraphSimplification(true),
prefilterReductions(true),
removeEdgeRedundancy(true),
@@ -51,28 +51,28 @@ Grey::Grey(void) :
allowLitHaig(true),
allowLbr(true),
allowMcClellan(true),
- allowSheng(true),
- allowMcSheng(true),
+ allowSheng(true),
+ allowMcSheng(true),
allowPuff(true),
- allowLiteral(true),
- allowViolet(true),
+ allowLiteral(true),
+ allowViolet(true),
allowExtendedNFA(true), /* bounded repeats of course */
allowLimExNFA(true),
allowAnchoredAcyclic(true),
allowSmallLiteralSet(true),
allowCastle(true),
allowDecoratedLiteral(true),
- allowApproximateMatching(true),
+ allowApproximateMatching(true),
allowNoodle(true),
fdrAllowTeddy(true),
- fdrAllowFlood(true),
- violetAvoidSuffixes(true),
- violetAvoidWeakInfixes(true),
- violetDoubleCut(true),
- violetExtractStrongLiterals(true),
- violetLiteralChains(true),
- violetDoubleCutLiteralLen(3),
- violetEarlyCleanLiteralLen(6),
+ fdrAllowFlood(true),
+ violetAvoidSuffixes(true),
+ violetAvoidWeakInfixes(true),
+ violetDoubleCut(true),
+ violetExtractStrongLiterals(true),
+ violetLiteralChains(true),
+ violetDoubleCutLiteralLen(3),
+ violetEarlyCleanLiteralLen(6),
puffImproveHead(true),
castleExclusive(true),
mergeSEP(true), /* short exhaustible passthroughs */
@@ -101,7 +101,7 @@ Grey::Grey(void) :
minRoseLiteralLength(3),
minRoseNetflowLiteralLength(2),
maxRoseNetflowEdges(50000), /* otherwise no netflow pass. */
- maxEditDistance(16),
+ maxEditDistance(16),
minExtBoundedRepeatSize(32),
goughCopyPropagate(true),
goughRegisterAllocate(true),
@@ -130,7 +130,7 @@ Grey::Grey(void) :
equivalenceEnable(true),
allowSmallWrite(true), // McClellan dfas for small patterns
- allowSmallWriteSheng(false), // allow use of Sheng for SMWR
+ allowSmallWriteSheng(false), // allow use of Sheng for SMWR
smallWriteLargestBuffer(70), // largest buffer that can be
// considered a small write
@@ -138,11 +138,11 @@ Grey::Grey(void) :
// are given to rose &co
smallWriteLargestBufferBad(35),
limitSmallWriteOutfixSize(1048576), // 1 MB
- smallWriteMaxPatterns(10000),
- smallWriteMaxLiterals(10000),
- smallWriteMergeBatchSize(20),
- allowTamarama(true), // Tamarama engine
- tamaChunkSize(100),
+ smallWriteMaxPatterns(10000),
+ smallWriteMaxLiterals(10000),
+ smallWriteMergeBatchSize(20),
+ allowTamarama(true), // Tamarama engine
+ tamaChunkSize(100),
dumpFlags(0),
limitPatternCount(8000000), // 8M patterns
limitPatternLength(16000), // 16K bytes
@@ -159,8 +159,8 @@ Grey::Grey(void) :
limitEngineSize(1073741824), // 1 GB
limitDFASize(1073741824), // 1 GB
limitNFASize(1048576), // 1 MB
- limitLBRSize(1048576), // 1 MB
- limitApproxMatchingVertices(5000)
+ limitLBRSize(1048576), // 1 MB
+ limitApproxMatchingVertices(5000)
{
assert(maxAnchoredRegion < 64); /* a[lm]_log_sum have limited capacity */
}
@@ -220,7 +220,7 @@ void applyGreyOverrides(Grey *g, const string &s) {
} while (0)
G_UPDATE(optimiseComponentTree);
- G_UPDATE(calcComponents);
+ G_UPDATE(calcComponents);
G_UPDATE(performGraphSimplification);
G_UPDATE(prefilterReductions);
G_UPDATE(removeEdgeRedundancy);
@@ -229,11 +229,11 @@ void applyGreyOverrides(Grey *g, const string &s) {
G_UPDATE(allowLitHaig);
G_UPDATE(allowLbr);
G_UPDATE(allowMcClellan);
- G_UPDATE(allowSheng);
- G_UPDATE(allowMcSheng);
+ G_UPDATE(allowSheng);
+ G_UPDATE(allowMcSheng);
G_UPDATE(allowPuff);
- G_UPDATE(allowLiteral);
- G_UPDATE(allowViolet);
+ G_UPDATE(allowLiteral);
+ G_UPDATE(allowViolet);
G_UPDATE(allowExtendedNFA);
G_UPDATE(allowLimExNFA);
G_UPDATE(allowAnchoredAcyclic);
@@ -241,16 +241,16 @@ void applyGreyOverrides(Grey *g, const string &s) {
G_UPDATE(allowCastle);
G_UPDATE(allowDecoratedLiteral);
G_UPDATE(allowNoodle);
- G_UPDATE(allowApproximateMatching);
+ G_UPDATE(allowApproximateMatching);
G_UPDATE(fdrAllowTeddy);
- G_UPDATE(fdrAllowFlood);
- G_UPDATE(violetAvoidSuffixes);
- G_UPDATE(violetAvoidWeakInfixes);
- G_UPDATE(violetDoubleCut);
- G_UPDATE(violetExtractStrongLiterals);
- G_UPDATE(violetLiteralChains);
- G_UPDATE(violetDoubleCutLiteralLen);
- G_UPDATE(violetEarlyCleanLiteralLen);
+ G_UPDATE(fdrAllowFlood);
+ G_UPDATE(violetAvoidSuffixes);
+ G_UPDATE(violetAvoidWeakInfixes);
+ G_UPDATE(violetDoubleCut);
+ G_UPDATE(violetExtractStrongLiterals);
+ G_UPDATE(violetLiteralChains);
+ G_UPDATE(violetDoubleCutLiteralLen);
+ G_UPDATE(violetEarlyCleanLiteralLen);
G_UPDATE(puffImproveHead);
G_UPDATE(castleExclusive);
G_UPDATE(mergeSEP);
@@ -279,7 +279,7 @@ void applyGreyOverrides(Grey *g, const string &s) {
G_UPDATE(minRoseLiteralLength);
G_UPDATE(minRoseNetflowLiteralLength);
G_UPDATE(maxRoseNetflowEdges);
- G_UPDATE(maxEditDistance);
+ G_UPDATE(maxEditDistance);
G_UPDATE(minExtBoundedRepeatSize);
G_UPDATE(goughCopyPropagate);
G_UPDATE(goughRegisterAllocate);
@@ -307,15 +307,15 @@ void applyGreyOverrides(Grey *g, const string &s) {
G_UPDATE(miracleHistoryBonus);
G_UPDATE(equivalenceEnable);
G_UPDATE(allowSmallWrite);
- G_UPDATE(allowSmallWriteSheng);
+ G_UPDATE(allowSmallWriteSheng);
G_UPDATE(smallWriteLargestBuffer);
G_UPDATE(smallWriteLargestBufferBad);
G_UPDATE(limitSmallWriteOutfixSize);
- G_UPDATE(smallWriteMaxPatterns);
- G_UPDATE(smallWriteMaxLiterals);
- G_UPDATE(smallWriteMergeBatchSize);
- G_UPDATE(allowTamarama);
- G_UPDATE(tamaChunkSize);
+ G_UPDATE(smallWriteMaxPatterns);
+ G_UPDATE(smallWriteMaxLiterals);
+ G_UPDATE(smallWriteMergeBatchSize);
+ G_UPDATE(allowTamarama);
+ G_UPDATE(tamaChunkSize);
G_UPDATE(limitPatternCount);
G_UPDATE(limitPatternLength);
G_UPDATE(limitGraphVertices);
@@ -332,7 +332,7 @@ void applyGreyOverrides(Grey *g, const string &s) {
G_UPDATE(limitDFASize);
G_UPDATE(limitNFASize);
G_UPDATE(limitLBRSize);
- G_UPDATE(limitApproxMatchingVertices);
+ G_UPDATE(limitApproxMatchingVertices);
#undef G_UPDATE
if (key == "simple_som") {
@@ -353,8 +353,8 @@ void applyGreyOverrides(Grey *g, const string &s) {
g->allowLitHaig = false;
g->allowMcClellan = false;
g->allowPuff = false;
- g->allowLiteral = false;
- g->allowViolet = false;
+ g->allowLiteral = false;
+ g->allowViolet = false;
g->allowSmallLiteralSet = false;
g->roseMasks = false;
done = true;
@@ -370,8 +370,8 @@ void applyGreyOverrides(Grey *g, const string &s) {
g->allowLitHaig = false;
g->allowMcClellan = true;
g->allowPuff = false;
- g->allowLiteral = false;
- g->allowViolet = false;
+ g->allowLiteral = false;
+ g->allowViolet = false;
g->allowSmallLiteralSet = false;
g->roseMasks = false;
done = true;
@@ -387,8 +387,8 @@ void applyGreyOverrides(Grey *g, const string &s) {
g->allowLitHaig = false;
g->allowMcClellan = true;
g->allowPuff = false;
- g->allowLiteral = false;
- g->allowViolet = false;
+ g->allowLiteral = false;
+ g->allowViolet = false;
g->allowSmallLiteralSet = false;
g->roseMasks = false;
done = true;