Skip to content

Commit 7c580f3

Browse files
committed
excercise more the recursion when generating coverage report
1 parent 82785c7 commit 7c580f3

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/cov/cov-data.c

+4-2
Original file line numberDiff line numberDiff line change
@@ -1151,8 +1151,10 @@ static void cover_merge_scope(cover_scope_t *old_s, cover_scope_t *new_s,
11511151
if (n_old_visits == old_s->items.count)
11521152
break;
11531153

1154-
if ((new->hier == old->hier) && (new->flags == old->flags) &&
1155-
(loc_eq(&new->loc, &old->loc))) {
1154+
if ((new->hier == old->hier) &&
1155+
(new->flags == old->flags) &&
1156+
(loc_eq(&(new->loc), &(old->loc)))) {
1157+
11561158
assert(new->kind == old->kind);
11571159
#ifdef COVER_DEBUG_MERGE
11581160
printf("Merging coverage item: %s\n", istr(old->hier));

test/regress/cover26.vhd

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ begin
3737

3838
sub_inst_long_path : entity work.sub
3939
generic map (
40-
nest => 16
40+
nest => 60
4141
);
4242

4343
end architecture;

0 commit comments

Comments
 (0)