Browse Source

arguements for heaps

avadapal 2 years ago
parent
commit
74d9ab9f4c
1 changed files with 5 additions and 1 deletions
  1. 5 1
      heap.cpp

+ 5 - 1
heap.cpp

@@ -350,7 +350,9 @@ RegAS HEAP::extract_min(MPCTIO tio, yield_t &yield) {
 
 void Heap(MPCIO &mpcio, const PRACOptions &opts, char **args)
 {
-    nbits_t depth=3;
+    nbits_t depth=atoi(args[0]);
+    std::cout << "print arguements " << std::endl;
+    std::cout << args[0] << std::endl;
 
     if (*args) {
         depth = atoi(*args);
@@ -364,6 +366,8 @@ void Heap(MPCIO &mpcio, const PRACOptions &opts, char **args)
         ++args;
     }
 
+    std::cout << "items = " << items << std::endl;
+
     MPCTIO tio(mpcio, 0, opts.num_threads);
 
     run_coroutines(tio, [&tio, depth, items](yield_t &yield) {