File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 14
14
#include < util/arith_tools.h>
15
15
#include < util/byte_operators.h>
16
16
#include < util/c_types.h>
17
+ #include < util/config.h>
17
18
#include < util/invariant.h>
18
19
#include < util/pointer_expr.h>
19
20
#include < util/pointer_offset_size.h>
@@ -159,6 +160,8 @@ pointer_logict::pointer_logict(const namespacet &_ns):ns(_ns)
159
160
160
161
// add INVALID
161
162
invalid_object=objects.number (exprt (" INVALID" ));
163
+
164
+ null_is_zero_address = config.ansi_c .NULL_is_zero ;
162
165
}
163
166
164
167
pointer_logict::~pointer_logict ()
Original file line number Diff line number Diff line change @@ -70,9 +70,15 @@ class pointer_logict
70
70
71
71
void get_dynamic_objects (std::vector<std::size_t > &objects) const ;
72
72
73
+ bool get_null_is_zero () const
74
+ {
75
+ return null_is_zero_address;
76
+ }
77
+
73
78
protected:
74
79
const namespacet &ns;
75
80
std::size_t null_object, invalid_object;
81
+ bool null_is_zero_address;
76
82
};
77
83
78
84
#endif // CPROVER_SOLVERS_FLATTENING_POINTER_LOGIC_H
You can’t perform that action at this time.
0 commit comments