Skip to content

Commit c58121d

Browse files
committed
Expression simplification must not alter the type
1 parent 4fa6740 commit c58121d

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

25432543
if(!result)
25442544
{
2545+
POSTCONDITION(tmp.type() == expr.type());
25452546
expr.swap(tmp);
25462547

25472548
#ifdef USE_CACHE

0 commit comments

Comments
 (0)