Skip to content

Commit cc31a9f

Browse files
Simplify loop in prop_conv::get
The iterator is not used as such and does not need to be exposed.
1 parent 166effd commit cc31a9f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/solvers/prop/prop_conv.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -499,14 +499,12 @@ exprt prop_conv_solvert::get(const exprt &expr) const
499499
}
500500
}
501501

502-
exprt tmp=expr;
503-
504-
Forall_operands(it, tmp)
502+
exprt tmp = expr;
503+
for(auto &op : tmp.operands())
505504
{
506-
exprt tmp_op=get(*it);
507-
it->swap(tmp_op);
505+
exprt tmp_op = get(op);
506+
op.swap(tmp_op);
508507
}
509-
510508
return tmp;
511509
}
512510

0 commit comments

Comments
 (0)