11
11
12
12
#include " goto_program_dereference.h"
13
13
14
+ #include < util/expr_util.h>
14
15
#include < util/simplify_expr.h>
15
16
#include < util/base_type.h>
16
17
#include < util/std_code.h>
@@ -97,7 +98,7 @@ void goto_program_dereferencet::dereference_rec(
97
98
guardt &guard,
98
99
const value_set_dereferencet::modet mode)
99
100
{
100
- if (!dereference. has_dereference (expr))
101
+ if (!has_subexpr (expr, ID_dereference ))
101
102
return ;
102
103
103
104
if (expr.id ()==ID_and || expr.id ()==ID_or)
@@ -114,7 +115,7 @@ void goto_program_dereferencet::dereference_rec(
114
115
throw expr.id_string ()+" takes Boolean operands only, but got " +
115
116
op.pretty ();
116
117
117
- if (dereference. has_dereference (op))
118
+ if (has_subexpr (op, ID_dereference ))
118
119
dereference_rec (op, guard, value_set_dereferencet::modet::READ);
119
120
120
121
if (expr.id ()==ID_or)
@@ -146,8 +147,8 @@ void goto_program_dereferencet::dereference_rec(
146
147
147
148
dereference_rec (expr.op0 (), guard, value_set_dereferencet::modet::READ);
148
149
149
- bool o1=dereference. has_dereference (expr.op1 ());
150
- bool o2=dereference. has_dereference (expr.op2 ());
150
+ bool o1 = has_subexpr (expr.op1 (), ID_dereference );
151
+ bool o2 = has_subexpr (expr.op2 (), ID_dereference );
151
152
152
153
if (o1)
153
154
{
0 commit comments