Przeglądaj źródła

Only run verify_heap_property on each extract if run_sanity is 1

Ian Goldberg 1 rok temu
rodzic
commit
baddbdd512
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      heap.cpp

+ 3 - 3
heap.cpp

@@ -759,9 +759,9 @@ void Heap(MPCIO & mpcio,  const PRACOptions & opts, char ** args) {
         std::cout << "minval_reconstruction = " << minval_reconstruction << std::endl;
         #endif
         
- 
-        tree.verify_heap_property(tio, yield);
- 
+        if (run_sanity == 1) {
+            tree.verify_heap_property(tio, yield);
+        }
          
         #ifdef HEAP_VERBOSE
         tree.print_heap(tio, yield);