Skip to content

Commit 48490fb

Browse files
authored
Merge pull request #8665 from tautschnig/remove-is_null_pointer
Remove deprecated is_null_pointer
2 parents 4cc3f54 + 880f4f9 commit 48490fb

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
@@ -317,8 +317,3 @@ exprt make_and(exprt a, exprt b)
317317
{
318318
return conjunction(a, b);
319319
}
320-
321-
bool is_null_pointer(const constant_exprt &expr)
322-
{
323-
return expr.is_null_pointer();
324-
}

src/util/expr_util.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,4 @@ constant_exprt make_boolean_expr(bool);
112112
DEPRECATED(SINCE(2025, 6, 25, "use conjunction(exprt, exprt) instead"))
113113
exprt make_and(exprt a, exprt b);
114114

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

0 commit comments

Comments
 (0)