Skip to content

Commit c0bc638

Browse files
Remove intermediary expression variable
Was not helping making the code clearer
1 parent da94813 commit c0bc638

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/goto-symex/symex_goto.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,10 @@ void goto_symext::symex_goto(statet &state)
6868
{
6969
// generate assume(false) or a suitable negation if this
7070
// instruction is a conditional goto
71-
exprt negated_cond;
72-
7371
if(new_guard.is_true())
74-
negated_cond=false_exprt();
72+
symex_assume(state, false_exprt());
7573
else
76-
negated_cond=not_exprt(new_guard);
77-
78-
symex_assume(state, negated_cond);
74+
symex_assume(state, not_exprt(new_guard));
7975

8076
// next instruction
8177
symex_transition(state);

0 commit comments

Comments
 (0)