File tree Expand file tree Collapse file tree 4 files changed +5
-7
lines changed
Expand file tree Collapse file tree 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(
318318 it!=file_records.end ();
319319 ++it)
320320 {
321- if (has_prefix (id2string (it->first ), " <builtin- " ))
321+ if (source_locationt::is_built_in (id2string (it->first )))
322322 continue ;
323323
324324 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(
4444 const irep_idt &file=it->source_location .get_file ();
4545
4646 if (!file.empty () &&
47- !has_prefix ( id2string (file), " <built-in- " ))
47+ !it-> source_location . is_built_in ( ))
4848 files[file].insert (it->source_location .get_line ());
4949 }
5050 }
Original file line number Diff line number Diff line change @@ -1082,9 +1082,7 @@ void instrument_cover_goals(
10821082
10831083 // ignore if built-in library
10841084 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 ())
10881086 return ;
10891087
10901088 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)
196196 (it->is_goto () && it->pc ->guard .is_true ()) ||
197197 source_location.is_nil () ||
198198 source_location.get_file ().empty () ||
199- source_location.get_file ()== " <built-in-additions> " ||
199+ source_location.is_built_in () ||
200200 source_location.get_line ().empty ())
201201 {
202202 step_to_node[it->step_nr ]=sink;
@@ -392,7 +392,7 @@ void graphml_witnesst::operator()(const symex_target_equationt &equation)
392392 (!it->is_assignment () && !it->is_goto () && !it->is_assert ()) ||
393393 (it->is_goto () && it->source .pc ->guard .is_true ()) ||
394394 source_location.is_nil () ||
395- source_location.get_file ()== " <built-in-additions> " ||
395+ source_location.is_built_in () ||
396396 source_location.get_line ().empty ())
397397 {
398398 step_to_node[step_nr]=sink;
You can’t perform that action at this time.
0 commit comments