Skip to content

Commit 8eb20f6

Browse files
Use ranged for
1 parent dc799e0 commit 8eb20f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/solvers/prop/prop_conv.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ void prop_convt::set_frozen(const literalt)
3838

3939
void prop_convt::set_frozen(const bvt &bv)
4040
{
41-
for(unsigned i=0; i<bv.size(); i++)
42-
if(!bv[i].is_constant())
43-
set_frozen(bv[i]);
41+
for(const auto &bit : bv)
42+
if(!bit.is_constant())
43+
set_frozen(bit);
4444
}
4545

4646
bool prop_conv_solvert::literal(const exprt &expr, literalt &dest) const

0 commit comments

Comments
 (0)