File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -708,17 +708,15 @@ bool eval_expr(
708
708
no_op.make_not ();
709
709
return not eval_expr (atomic_exprs, no_op);
710
710
}
711
- else if (is_condition (src))
711
+ else // if(is_condition(src))
712
712
{
713
+ // ''src'' should be guaranteed to be consistent
714
+ // with ''atomic_exprs''
713
715
if (atomic_exprs.find (src)->second ==+1 )
714
716
return true ;
715
- else if (atomic_exprs.find (src)->second ==-1 )
717
+ else // if(atomic_exprs.find(src)->second==-1)
716
718
return false ;
717
719
}
718
- else
719
- {
720
- throw " Unexpected expr when evaluating a boolean expression" ;
721
- }
722
720
}
723
721
724
722
/* ******************************************************************\
@@ -1304,6 +1302,8 @@ void instrument_cover_goals(
1304
1302
// controlling=collect_mcdc_controlling(decisions);
1305
1303
controlling=collect_mcdc_controlling_nested (decisions);
1306
1304
remove_repetition (controlling);
1305
+ // for now, we restrict to the case of a single ''decision'';
1306
+ // however, this is not true, e.g., ''? :'' operator.
1307
1307
minimize_mcdc_controlling (controlling, *decisions.begin ());
1308
1308
1309
1309
for (const auto & p : controlling)
You can’t perform that action at this time.
0 commit comments