Skip to content

Commit 880f4f9

Browse files
committed
Remove deprecated is_null_pointer
This was deprecated over 6 months ago.
1 parent 7a6e2f7 commit 880f4f9

File tree

3 files changed

+1
-12
lines changed

3 files changed

+1
-12
lines changed

src/util/expr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ bool exprt::is_zero() const
8080
}
8181
else if(type_id==ID_pointer)
8282
{
83-
return is_null_pointer(constant);
83+
return constant.is_null_pointer();
8484
}
8585
}
8686

src/util/expr_util.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,3 @@ exprt make_and(exprt a, exprt b)
340340
}
341341
return and_exprt{std::move(a), std::move(b)};
342342
}
343-
344-
bool is_null_pointer(const constant_exprt &expr)
345-
{
346-
return expr.is_null_pointer();
347-
}

src/util/expr_util.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,4 @@ constant_exprt make_boolean_expr(bool);
115115
/// return the other expression. If one is `false` returns `false`.
116116
exprt make_and(exprt a, exprt b);
117117

118-
/// Returns true if \p expr has a pointer type and a value NULL; it also returns
119-
/// true when \p expr has value zero and NULL_is_zero is true; returns false in
120-
/// all other cases.
121-
DEPRECATED(SINCE(2024, 9, 10, "use constant_exprt::is_null_pointer() instead"))
122-
bool is_null_pointer(const constant_exprt &expr);
123-
124118
#endif // CPROVER_UTIL_EXPR_UTIL_H

0 commit comments

Comments
 (0)