]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
Dump: don't call dumpNfaNotes for SOM reverse NFAs
authorJustin Viiret <justin.viiret@intel.com>
Wed, 10 Feb 2016 04:33:48 +0000 (15:33 +1100)
committerMatthew Barr <matthew.barr@intel.com>
Tue, 1 Mar 2016 00:34:26 +0000 (11:34 +1100)
These NFAs have no queue index.

src/rose/rose_dump.cpp

index e803b8c45851d923d0d542b5554100d601ab4ac4..25c6e77dac1468245345a8fbd50d5540b077edd6 100644 (file)
@@ -679,7 +679,7 @@ void dumpRevComponentInfo(const RoseEngine *t, const string &base) {
     ss << base << "som_rev_components.txt";
     ofstream fout(ss.str().c_str());
 
-    fout << "Index  Offset\tEngine               \tStates S.State Bytes   Notes\n";
+    fout << "Index  Offset\tEngine               \tStates S.State Bytes\n";
 
     const char *tp = (const char *)t;
     const u32 *rev_offsets = (const u32 *)(tp + t->somRevOffsetOffset);
@@ -696,17 +696,13 @@ void dumpRevComponentInfo(const RoseEngine *t, const string &base) {
 
         fout << left << setw(6) << n->nPositions << " ";
         fout << left << setw(7) << n->streamStateSize << " ";
-        fout << left << setw(7) << n->length << " ";
-
-        dumpNfaNotes(fout, t, n);
-
+        fout << left << setw(7) << n->length;
         fout << endl;
     }
 }
 
 static
 void dumpRevNfas(const RoseEngine *t, bool dump_raw, const string &base) {
-
     const char *tp = (const char *)t;
     const u32 *rev_offsets = (const u32 *)(tp + t->somRevOffsetOffset);