Skip to content

Commit

Permalink
WIP: Sum coverage counts of variables in parameterized modules
Browse files Browse the repository at this point in the history
Signed-off-by: Ryszard Rozak <[email protected]>
  • Loading branch information
RRozak committed Jan 9, 2025
1 parent 44f4966 commit fed5fc1
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/VlcTop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,16 +124,14 @@ void VlcTop::writeInfo(const string& filename) {
int num_branches = sc.points().size();
if (num_branches == 1) continue;
branchesFound += num_branches;
int point_num = 0;
os << "BRDA:" << sc.lineno() << ",";
os << "0,0,";
int point_count_sum = 0;
for (const auto& point : sc.points()) {
os << "BRDA:" << sc.lineno() << ",";
os << "0,";
os << point_num << ",";
os << point->count() << "\n";

point_count_sum += point->count();
branchesHit += opt.countOk(point->count());
++point_num;
}
os << point_count_sum << "\n";
}
os << "BRF:" << branchesFound << '\n';
os << "BRH:" << branchesHit << '\n';
Expand Down

0 comments on commit fed5fc1

Please sign in to comment.