Skip to content

Commit

Permalink
Fix incorrect inferrence of number of calls to a quantification algor…
Browse files Browse the repository at this point in the history
…ithm
  • Loading branch information
SSoelvsten committed Apr 5, 2024
1 parent 0491d30 commit 24fff55
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/adiar/statistics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -490,8 +490,8 @@ namespace adiar
__printstat_quantify(std::ostream& o)
{
const uintwide total_runs = internal::stats_quantify.skipped
+ internal::stats_quantify.singleton_sweeps + internal::stats_quantify.partial_sweeps
+ internal::stats_quantify.nested_sweeps;
+ internal::stats_quantify.singleton_sweeps
+ (internal::stats_quantify.partial_sweeps - internal::stats_quantify.partial_repetitions);

o << indent << bold_on << label << "Quantification" << bold_off << total_runs << endl;

Expand All @@ -512,18 +512,14 @@ namespace adiar
o << indent << endl;

o << indent << bold_on << label << "case [singleton sweep]" << bold_off
<< internal::stats_quantify.singleton_sweeps << " = "
<< internal::percent_frac(internal::stats_quantify.singleton_sweeps, total_runs) << percent
<< endl;
<< internal::stats_quantify.singleton_sweeps << endl;
}

{
o << indent << endl;

o << indent << bold_on << label << "case [partial sweep]" << bold_off
<< internal::stats_quantify.partial_sweeps << " = "
<< internal::percent_frac(internal::stats_quantify.partial_sweeps, total_runs) << percent
<< endl;
<< internal::stats_quantify.partial_sweeps << endl;

indent_level++;

Expand Down

0 comments on commit 24fff55

Please sign in to comment.