Skip to content

Commit 2cca3cd

Browse files
(Not needed?) direct symbol evaluations
1 parent b0ed1bd commit 2cca3cd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/goto-symex/goto_state.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,16 @@ void goto_statet::apply_condition(
125125
}
126126
}
127127
}
128+
else if(condition.id() == ID_symbol)
129+
{
130+
if(condition.type() == bool_typet())
131+
{
132+
// A
133+
// -->
134+
// A == true
135+
apply_condition(equal_exprt(condition, true_exprt()), previous_state, ns);
136+
}
137+
}
128138
else if(
129139
condition.id() == ID_notequal &&
130140
skip_typecast(to_notequal_expr(condition).lhs()).type().id() == ID_c_bool)

0 commit comments

Comments
 (0)