소스 검색

arguements for heaps

avadapal 3 년 전
부모
커밋
74d9ab9f4c
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  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) {