Browse Source

When HEAP_VERBOSE is set, each extract was being run twice

Ian Goldberg 1 year ago
parent
commit
f1e9e115ac
1 changed files with 3 additions and 1 deletions
  1. 3 1
      heap.cpp

+ 3 - 1
heap.cpp

@@ -739,10 +739,12 @@ void Heap(MPCIO & mpcio,  const PRACOptions & opts, char ** args) {
         #endif
         
         for (size_t j = 0; j < n_extracts; ++j) {
+        #ifdef HEAP_VERBOSE
+        RegAS minval =
+        #endif
         tree.extract_min(mpcio, tio, yield, is_optimized);
 
         #ifdef HEAP_VERBOSE
-        RegAS minval = tree.extract_min(mpcio, tio, yield, is_optimized);
         uint64_t minval_reconstruction = mpc_reconstruct(tio, yield, minval);
         std::cout << "minval_reconstruction = " << minval_reconstruction << std::endl;
         #endif