File tree Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -48,13 +48,10 @@ void cover_goalst::constraint()
48
48
49
49
// cover at least one unknown goal
50
50
51
- for (std::list<goalt>::const_iterator
52
- g_it=goals.begin ();
53
- g_it!=goals.end ();
54
- g_it++)
55
- if (g_it->status ==goalt::statust::UNKNOWN &&
56
- !g_it->condition .is_false ())
57
- disjuncts.push_back (literal_exprt (g_it->condition ));
51
+ for (const auto &g : goals)
52
+ if (g.status ==goalt::statust::UNKNOWN &&
53
+ !g.condition .is_false ())
54
+ disjuncts.push_back (literal_exprt (g.condition ));
58
55
59
56
// this is 'false' if there are no disjuncts
60
57
prop_conv.set_to_true (disjunction (disjuncts));
@@ -63,12 +60,9 @@ void cover_goalst::constraint()
63
60
// / Build clause
64
61
void cover_goalst::freeze_goal_variables ()
65
62
{
66
- for (std::list<goalt>::const_iterator
67
- g_it=goals.begin ();
68
- g_it!=goals.end ();
69
- g_it++)
70
- if (!g_it->condition .is_constant ())
71
- prop_conv.set_frozen (g_it->condition );
63
+ for (const auto &g : goals)
64
+ if (!g.condition .is_constant ())
65
+ prop_conv.set_frozen (g.condition );
72
66
}
73
67
74
68
// / Try to cover all goals
You can’t perform that action at this time.
0 commit comments