Skip to content

Commit 46f14a8

Browse files
Avoid unecessary simplification
1 parent 730e026 commit 46f14a8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/goto-symex/symex_goto.cpp

+5-2
Original file line numberDiff line numberDiff line change
@@ -489,9 +489,12 @@ static void merge_names(
489489
}
490490
else
491491
{
492-
rhs = if_exprt(diff_guard.as_expr(), goto_state_rhs, dest_state_rhs);
493492
if(do_simplify)
494-
simplify(rhs, ns);
493+
{
494+
simplify(goto_state_rhs, ns);
495+
simplify(dest_state_rhs, ns);
496+
}
497+
rhs = if_exprt(diff_guard.as_expr(), goto_state_rhs, dest_state_rhs);
495498
}
496499

497500
ssa_exprt new_lhs = ssa;

0 commit comments

Comments
 (0)