Skip to content

Commit 267cc19

Browse files
tautschnigDaniel Kroening
authored andcommitted
simplify_with also applies to vectors
vector_typet/vector_exprt is just a constant-size variant of an array.
1 parent 4315c29 commit 267cc19

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/util/simplify_expr.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1363,10 +1363,13 @@ bool simplify_exprt::simplify_with(exprt &expr)
13631363
}
13641364
}
13651365
}
1366-
else if(with_expr.old().type().id() == ID_array)
1366+
else if(
1367+
with_expr.old().type().id() == ID_array ||
1368+
with_expr.old().type().id() == ID_vector)
13671369
{
1368-
if(expr.op0().id()==ID_array ||
1369-
expr.op0().id()==ID_constant)
1370+
if(
1371+
expr.op0().id() == ID_array || expr.op0().id() == ID_constant ||
1372+
expr.op0().id() == ID_vector)
13701373
{
13711374
while(expr.operands().size()>1)
13721375
{

0 commit comments

Comments
 (0)