@@ -684,6 +684,7 @@ Function: eval_expr
684
684
the atomic expr values
685
685
686
686
\*******************************************************************/
687
+
687
688
bool eval_expr (
688
689
const std::map<exprt, signed > &atomic_exprs,
689
690
const exprt &src)
@@ -1141,7 +1142,7 @@ void instrument_cover_goals(
1141
1142
basic_blocks.source_location_map [block_nr];
1142
1143
1143
1144
if (!source_location.get_file ().empty () &&
1144
- source_location.get_file ()[ 0 ]!= ' < ' )
1145
+ ! source_location.is_built_in () )
1145
1146
{
1146
1147
std::string comment=" block " +b;
1147
1148
goto_program.insert_before_swap (i_it);
@@ -1179,7 +1180,8 @@ void instrument_cover_goals(
1179
1180
t->source_location .set_property_class (property_class);
1180
1181
}
1181
1182
1182
- if (i_it->is_goto () && !i_it->guard .is_true ())
1183
+ if (i_it->is_goto () && !i_it->guard .is_true () &&
1184
+ !i_it->source_location .is_built_in ())
1183
1185
{
1184
1186
std::string b=std::to_string (basic_blocks[i_it]);
1185
1187
std::string true_comment=
@@ -1214,6 +1216,7 @@ void instrument_cover_goals(
1214
1216
i_it->make_skip ();
1215
1217
1216
1218
// Conditions are all atomic predicates in the programs.
1219
+ if (!i_it->source_location .is_built_in ())
1217
1220
{
1218
1221
const std::set<exprt> conditions=collect_conditions (i_it);
1219
1222
@@ -1250,6 +1253,7 @@ void instrument_cover_goals(
1250
1253
i_it->make_skip ();
1251
1254
1252
1255
// Decisions are maximal Boolean combinations of conditions.
1256
+ if (!i_it->source_location .is_built_in ())
1253
1257
{
1254
1258
const std::set<exprt> decisions=collect_decisions (i_it);
1255
1259
@@ -1290,6 +1294,7 @@ void instrument_cover_goals(
1290
1294
// 3. Each condition in a decision takes every possible outcome
1291
1295
// 4. Each condition in a decision is shown to independently
1292
1296
// affect the outcome of the decision.
1297
+ if (!i_it->source_location .is_built_in ())
1293
1298
{
1294
1299
const std::set<exprt> conditions=collect_conditions (i_it);
1295
1300
const std::set<exprt> decisions=collect_decisions (i_it);
@@ -1392,7 +1397,8 @@ void instrument_cover_goals(
1392
1397
Forall_goto_functions (f_it, goto_functions)
1393
1398
{
1394
1399
if (f_it->first ==goto_functions.entry_point () ||
1395
- f_it->first ==" __CPROVER_initialize" )
1400
+ f_it->first ==" __CPROVER_initialize" ||
1401
+ f_it->second .is_hidden ())
1396
1402
continue ;
1397
1403
1398
1404
instrument_cover_goals (symbol_table, f_it->second .body , criterion);
0 commit comments