Skip to content

Commit 083561f

Browse files
committed
Use unary_plus_exprt in smt2 conversion
1 parent 1f01bbf commit 083561f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/solvers/smt2/smt2_conv.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1053,8 +1053,7 @@ void smt2_convt::convert_expr(const exprt &expr)
10531053
else if(expr.id()==ID_unary_plus)
10541054
{
10551055
// A no-op (apart from type promotion)
1056-
assert(expr.operands().size()==1);
1057-
convert_expr(expr.op0());
1056+
convert_expr(to_unary_plus_expr(expr).op());
10581057
}
10591058
else if(expr.id()==ID_sign)
10601059
{

0 commit comments

Comments
 (0)