We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8a75ce4 + 60d8a91 commit 53c7a82Copy full SHA for 53c7a82
src/goto-symex/symex_goto.cpp
@@ -25,18 +25,23 @@ void goto_symext::symex_goto(statet &state)
25
const goto_programt::instructiont &instruction=*state.source.pc;
26
statet::framet &frame=state.top();
27
28
+ if(state.guard.is_false())
29
+ {
30
+ // next instruction
31
+ symex_transition(state);
32
+ return; // nothing to do
33
+ }
34
+
35
exprt old_guard=instruction.guard;
36
clean_expr(old_guard, state, false);
37
38
exprt new_guard=old_guard;
39
state.rename(new_guard, ns);
40
do_simplify(new_guard);
41
- if(new_guard.is_false() ||
- state.guard.is_false())
42
+ if(new_guard.is_false())
43
{
- if(!state.guard.is_false())
- target.location(state.guard.as_expr(), state.source);
44
+ target.location(state.guard.as_expr(), state.source);
45
46
// next instruction
47
symex_transition(state);
0 commit comments