Skip to content

Commit b75e06c

Browse files
committed
Replace any_of check with a check on the expression type.
1 parent 6b03fac commit b75e06c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/solvers/smt2_incremental/convert_expr_to_smt.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -598,11 +598,7 @@ static smt_termt convert_expr_to_smt(
598598
return convert_multiary_operator_to_terms(
599599
plus, converted, smt_bit_vector_theoryt::add);
600600
}
601-
else if(std::any_of(
602-
plus.operands().cbegin(),
603-
plus.operands().cend(),
604-
[](exprt operand)
605-
{ return can_cast_type<pointer_typet>(operand.type()); }))
601+
else if(can_cast_type<pointer_typet>(plus.type()))
606602
{
607603
INVARIANT(
608604
plus.operands().size() == 2,

0 commit comments

Comments
 (0)