File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -25,18 +25,23 @@ void goto_symext::symex_goto(statet &state)
25
25
const goto_programt::instructiont &instruction=*state.source .pc ;
26
26
statet::framet &frame=state.top ();
27
27
28
+ if (state.guard .is_false ())
29
+ {
30
+ // next instruction
31
+ symex_transition (state);
32
+ return ; // nothing to do
33
+ }
34
+
28
35
exprt old_guard=instruction.guard ;
29
36
clean_expr (old_guard, state, false );
30
37
31
38
exprt new_guard=old_guard;
32
39
state.rename (new_guard, ns);
33
40
do_simplify (new_guard);
34
41
35
- if (new_guard.is_false () ||
36
- state.guard .is_false ())
42
+ if (new_guard.is_false ())
37
43
{
38
- if (!state.guard .is_false ())
39
- target.location (state.guard .as_expr (), state.source );
44
+ target.location (state.guard .as_expr (), state.source );
40
45
41
46
// next instruction
42
47
symex_transition (state);
You can’t perform that action at this time.
0 commit comments