Skip to content

Commit 5724a35

Browse files
Simplify loop in prop_conv::get
The iterator is not used as such and does not need to be exposed.
1 parent 4987f3a commit 5724a35

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/solvers/prop/prop_conv.cpp

+4-6
Original file line numberDiff line numberDiff line change
@@ -497,14 +497,12 @@ exprt prop_conv_solvert::get(const exprt &expr) const
497497
}
498498
}
499499

500-
exprt tmp=expr;
501-
502-
Forall_operands(it, tmp)
500+
exprt tmp = expr;
501+
for(auto &op : tmp.operands())
503502
{
504-
exprt tmp_op=get(*it);
505-
it->swap(tmp_op);
503+
exprt tmp_op = get(op);
504+
op.swap(tmp_op);
506505
}
507-
508506
return tmp;
509507
}
510508

0 commit comments

Comments
 (0)