Skip to content

Commit c564c2c

Browse files
committed
Expression simplification must not alter the type
1 parent bbc3f63 commit c564c2c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/util/simplify_expr.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2548,6 +2548,7 @@ bool simplify_exprt::simplify_rec(exprt &expr)
25482548

25492549
if(!result)
25502550
{
2551+
POSTCONDITION(tmp.type() == expr.type());
25512552
expr.swap(tmp);
25522553

25532554
#ifdef USE_CACHE

0 commit comments

Comments
 (0)