Skip to content

Commit b154ac5

Browse files
committed
Allow binary stamping
Update
1 parent 54aa48c commit b154ac5

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/comp_analyzer.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ void CompAnalyzer::record_comp(const uint32_t var, const uint32_t sup_comp_long_
246246
<< " counter->dec_lev(): " << counter->dec_level()
247247
<< " counter->get_tstamp(holder.lev(v))): " << counter->get_tstamp(holder.lev(v))));
248248
if (holder.tstamp(v) < counter->get_tstamp(holder.lev(v))) {
249-
/* holder.size_bin(v) = holder.orig_size_bin(v); */
249+
holder.size_bin(v) = holder.orig_size_bin(v);
250250
holder.size_long(v) = holder.orig_size_long(v);
251251
stats.comps_reset++;
252252
reset = true;
@@ -296,14 +296,14 @@ void CompAnalyzer::record_comp(const uint32_t var, const uint32_t sup_comp_long_
296296
bump_freq_score(v2);
297297
bump_freq_score(v);
298298
} else {
299-
/* if (update) { */
300-
/* // it's satisfied */
301-
/* bins--; */
302-
/* bins_end--; */
303-
/* std::swap(*bins, *bins_end); */
304-
/* holder.size_bin(v)--; */
305-
/* analyze_verb(verb_debug("analyze remove bin, var: "<< *bins_end)); */
306-
/* } */
299+
if (update) {
300+
// it's satisfied
301+
bins--;
302+
bins_end--;
303+
std::swap(*bins, *bins_end);
304+
holder.size_bin(v)--;
305+
analyze_verb(verb_debug("analyze remove bin, var: "<< *bins_end));
306+
}
307307
}
308308
}
309309
}

0 commit comments

Comments
 (0)