File tree 4 files changed +5
-7
lines changed 4 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -318,7 +318,7 @@ void symex_coveraget::compute_overall_coverage(
318
318
it!=file_records.end ();
319
319
++it)
320
320
{
321
- if (has_prefix (id2string (it->first ), " <builtin- " ))
321
+ if (source_locationt::is_built_in (id2string (it->first )))
322
322
continue ;
323
323
324
324
const coverage_recordt &f_cov=it->second ;
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ static void collect_eloc(
44
44
const irep_idt &file=it->source_location .get_file ();
45
45
46
46
if (!file.empty () &&
47
- !has_prefix ( id2string (file), " <built-in- " ))
47
+ !it-> source_location . is_built_in ( ))
48
48
files[file].insert (it->source_location .get_line ());
49
49
}
50
50
}
Original file line number Diff line number Diff line change @@ -1082,9 +1082,7 @@ void instrument_cover_goals(
1082
1082
1083
1083
// ignore if built-in library
1084
1084
if (!goto_program.instructions .empty () &&
1085
- has_prefix (
1086
- id2string (goto_program.instructions .front ().source_location .get_file ()),
1087
- " <builtin-library-" ))
1085
+ goto_program.instructions .front ().source_location .is_built_in ())
1088
1086
return ;
1089
1087
1090
1088
const irep_idt coverage_criterion=as_string (criterion);
Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ void graphml_witnesst::operator()(const goto_tracet &goto_trace)
196
196
(it->is_goto () && it->pc ->guard .is_true ()) ||
197
197
source_location.is_nil () ||
198
198
source_location.get_file ().empty () ||
199
- source_location.get_file ()== " <built-in-additions> " ||
199
+ source_location.is_built_in () ||
200
200
source_location.get_line ().empty ())
201
201
{
202
202
step_to_node[it->step_nr ]=sink;
@@ -392,7 +392,7 @@ void graphml_witnesst::operator()(const symex_target_equationt &equation)
392
392
(!it->is_assignment () && !it->is_goto () && !it->is_assert ()) ||
393
393
(it->is_goto () && it->source .pc ->guard .is_true ()) ||
394
394
source_location.is_nil () ||
395
- source_location.get_file ()== " <built-in-additions> " ||
395
+ source_location.is_built_in () ||
396
396
source_location.get_line ().empty ())
397
397
{
398
398
step_to_node[step_nr]=sink;
You can’t perform that action at this time.
0 commit comments