Skip to content

Commit 3117482

Browse files
committed
disable too early constant follding
1 parent 4d0c0aa commit 3117482

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/goto-programs/goto_clean_expr.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,8 @@ void goto_convertt::clean_expr(
251251
}
252252

253253
const source_locationt source_location=expr.find_source_location();
254-
254+
255+
#if 0
255256
// We do some constant-folding here, to mimic
256257
// what typical compilers do.
257258
{
@@ -270,6 +271,7 @@ void goto_convertt::clean_expr(
270271
return;
271272
}
272273
}
274+
#endif
273275

274276
goto_programt tmp_true;
275277
clean_expr(if_expr.true_case(), tmp_true, result_is_used);

0 commit comments

Comments
 (0)