Skip to content

Commit 1f01bbf

Browse files
committed
Use unary_plus_exprt in bitvector flattening
1 parent 8286f21 commit 1f01bbf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/solvers/flattening/boolbv.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,7 @@ bvt boolbvt::convert_bitvector(const exprt &expr)
249249
return convert_unary_minus(to_unary_expr(expr));
250250
else if(expr.id()==ID_unary_plus)
251251
{
252-
assert(expr.operands().size()==1);
253-
return convert_bitvector(expr.op0());
252+
return convert_bitvector(to_unary_plus_expr(expr).op());
254253
}
255254
else if(expr.id()==ID_abs)
256255
return convert_abs(to_abs_expr(expr));

0 commit comments

Comments
 (0)