Skip to content

Commit 3d29ab7

Browse files
authored
Merge pull request #6641 from tautschnig/bugfixes/6536-cover-built-in
Block coverage reporting: do not use built-in locations
2 parents 6253abd + ffcaea9 commit 3d29ab7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/goto-instrument/cover_basic_blocks.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ cover_basic_blockst::cover_basic_blockst(const goto_programt &goto_program)
6565
!it->source_location().is_nil() &&
6666
!it->source_location().get_file().empty() &&
6767
!it->source_location().get_line().empty() &&
68+
!it->source_location().is_built_in() &&
6869
block_info.source_location.is_nil())
6970
{
7071
block_info.representative_inst = it; // update

0 commit comments

Comments
 (0)