mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-12-31 13:49:07 +03:00
fdr/teddy: store and dump number of strings
This commit is contained in:
committed by
Matthew Barr
parent
a17ef3e48a
commit
e4788aae1a
@@ -175,6 +175,7 @@ bytecode_ptr<FDR> FDRCompiler::setupFDR() {
|
||||
fdr->size = size;
|
||||
fdr->engineID = eng.getID();
|
||||
fdr->maxStringLen = verify_u32(maxLen(lits));
|
||||
fdr->numStrings = verify_u32(lits.size());
|
||||
assert(eng.bits > 8 && eng.bits < 16); // we allow domains 9 to 15 only
|
||||
fdr->domain = eng.bits;
|
||||
fdr->domainMask = (1 << eng.bits) - 1;
|
||||
|
||||
Reference in New Issue
Block a user