From 6963ca21468a8bc6f041616d06e1f00b7b68d979 Mon Sep 17 00:00:00 2001 From: AL-JiongYang Date: Mon, 25 Sep 2023 15:56:58 +0800 Subject: [PATCH] fix corner case of binary search --- src/counter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/counter.cpp b/src/counter.cpp index b7cf22d..9927d04 100644 --- a/src/counter.cpp +++ b/src/counter.cpp @@ -526,6 +526,8 @@ void Counter::one_measurement_count( int64_t numExplored = 0; int64_t lowerFib = 0; int64_t upperFib = total_max_xors; + threshold_sols[total_max_xors] = 0; + sols_for_hash[total_max_xors] = 1; int64_t hashCount = mPrev; int64_t hashPrev = hashCount;