Skip to content

Commit bde6b4e

Browse files
committed
Stop skipping of quantifier expressions in check_rec.
This now allows us to generate checks inside `__CPROVER_forall` and `__CPROVER_exists` statements. Related to issue #6231.
1 parent 74963e7 commit bde6b4e

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/analyses/goto_check.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1583,10 +1583,6 @@ void goto_checkt::add_guarded_property(
15831583

15841584
void goto_checkt::check_rec_address(const exprt &expr, guardt &guard)
15851585
{
1586-
// we don't look into quantifiers
1587-
if(expr.id() == ID_exists || expr.id() == ID_forall)
1588-
return;
1589-
15901586
if(expr.id() == ID_dereference)
15911587
{
15921588
check_rec(to_dereference_expr(expr).pointer(), guard);
@@ -1729,10 +1725,6 @@ void goto_checkt::check_rec_arithmetic_op(const exprt &expr, guardt &guard)
17291725

17301726
void goto_checkt::check_rec(const exprt &expr, guardt &guard)
17311727
{
1732-
// we don't look into quantifiers
1733-
if(expr.id() == ID_exists || expr.id() == ID_forall)
1734-
return;
1735-
17361728
if(expr.id() == ID_address_of)
17371729
{
17381730
check_rec_address(to_address_of_expr(expr).object(), guard);

0 commit comments

Comments
 (0)