Skip to content

Commit cb0f4eb

Browse files
Avoid unecessary simplification
1 parent 5370b4f commit cb0f4eb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/goto-symex/symex_goto.cpp

Lines changed: 5 additions & 2 deletions
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)