Skip to content

Commit 010deea

Browse files
committed
Expression simplification must not alter the type
1 parent 284c3aa commit 010deea

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
@@ -2476,6 +2476,7 @@ bool simplify_exprt::simplify_rec(exprt &expr)
24762476

24772477
if(!result)
24782478
{
2479+
POSTCONDITION(tmp.type() == expr.type());
24792480
expr.swap(tmp);
24802481

24812482
#ifdef USE_CACHE

0 commit comments

Comments
 (0)