We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42b70b2 commit 7b47e9fCopy full SHA for 7b47e9f
src/util/std_expr.cpp
@@ -30,16 +30,12 @@ bool constant_exprt::is_null_pointer() const
30
if(get_value() == ID_NULL)
31
return true;
32
33
- // We used to support "0" (when NULL_is_zero), but really front-ends should
34
- // resolve this and generate ID_NULL instead.
35
-#if 0
36
- return config.ansi_c.NULL_is_zero && value_is_zero_string();
37
-#else
+ // We used to support "0" (when NULL_is_zero), but really front-ends should
+ // resolve this and generate ID_NULL instead.
38
INVARIANT(
39
!value_is_zero_string() || !config.ansi_c.NULL_is_zero,
40
"front-end should use ID_NULL");
41
return false;
42
-#endif
43
}
44
45
void constant_exprt::check(const exprt &expr, const validation_modet vm)
0 commit comments