Skip to content

Commit 5fc1ca6

Browse files
committed
Partly revert to try out more beautiful approach
1 parent a4945f3 commit 5fc1ca6

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/goto-symex/symex_goto.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -105,18 +105,6 @@ void goto_symext::symex_goto(statet &state)
105105
return; // nothing else to do
106106
}
107107
}
108-
else if(new_guard.is_true() && !old_guard.is_true())
109-
{
110-
// we may have left a loop (i.e., the forward goto is beyond
111-
// the end of the loop) as the loop condition has become false
112-
// via constant propagation and simplification (the original
113-
// condition "old_guard" was not trivially true, but "new_guard"
114-
// is) -- reset all candidate loop counters
115-
for(const auto &i_e : instruction.incoming_edges)
116-
if(i_e->is_goto() && i_e->is_backwards_goto() &&
117-
goto_target->location_number>i_e->location_number)
118-
frame.loop_iterations[goto_programt::loop_id(i_e)].count=0;
119-
}
120108

121109
goto_programt::const_targett new_state_pc, state_pc;
122110
symex_targett::sourcet original_source=state.source;

0 commit comments

Comments
 (0)