Skip to content

Commit

Permalink
fix missing functional coverage when summing subhierarchies. (#1157)
Browse files Browse the repository at this point in the history
  • Loading branch information
Blebowski authored and nickg committed Feb 6, 2025
1 parent d06d576 commit a4fce2a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
## Unreleased changes
- Fixed invalid LLVM IR generation which could cause a crash with LLVM
14 (#1145).
- Functional coverage is now reported correctly when summing from nested
hierarchies

## Version 1.15.1 - 2025-01-22
- Fixed a crash when a subprogram is called with too many named arguments
Expand Down
2 changes: 2 additions & 0 deletions src/cov/cov-report.c
Original file line number Diff line number Diff line change
Expand Up @@ -1427,6 +1427,8 @@ static void cover_report_hier_children(cover_rpt_hier_ctx_t *ctx,
ctx->nested_stats.total_expressions += sub_ctx.nested_stats.total_expressions;
ctx->nested_stats.hit_states += sub_ctx.nested_stats.hit_states;
ctx->nested_stats.total_states += sub_ctx.nested_stats.total_states;
ctx->nested_stats.hit_functional += sub_ctx.nested_stats.hit_functional;
ctx->nested_stats.total_functional += sub_ctx.nested_stats.total_functional;
}
else
cover_report_hier_scope(ctx, it, dir, summf, skipped);
Expand Down

0 comments on commit a4fce2a

Please sign in to comment.