]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
gough: don't dump int data unless it's requested
authorJustin Viiret <justin.viiret@intel.com>
Tue, 15 Nov 2016 23:56:37 +0000 (10:56 +1100)
committerMatthew Barr <matthew.barr@intel.com>
Fri, 2 Dec 2016 00:33:54 +0000 (11:33 +1100)
src/nfa/goughcompile_dump.cpp

index dd76b9ec7dd4f973bbd20d3b20173bb8e5e0d172..cb361cdbdc4ecaf968bce4ee1c34fb15bd2f2fcf 100644 (file)
@@ -275,7 +275,7 @@ void dump_vars(const GoughGraph &g, const string &base, const Grey &grey) {
 }
 
 void dump(const GoughGraph &g, const string &base, const Grey &grey) {
-    if (!grey.dumpFlags) {
+    if (!(grey.dumpFlags & Grey::DUMP_INT_GRAPH)) {
         return;
     }
 
@@ -311,9 +311,9 @@ void dump_block(FILE *f, const gough_edge_id &e,
     }
 }
 
-void dump_blocks(const map<gough_edge_id, vector<gough_ins> > &blocks,
+void dump_blocks(const map<gough_edge_id, vector<gough_ins>> &blocks,
                  const string &base, const Grey &grey) {
-    if (!grey.dumpFlags) {
+    if (!(grey.dumpFlags & Grey::DUMP_INT_GRAPH)) {
         return;
     }