File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -169,12 +169,13 @@ to pointers that point to within a memory object.
169
169
170
170
## Checking if a memory segment has at least a given size
171
171
172
- The following two primitives can be used to check whether there is a memory
173
- segment starting at the given pointer and extending for at least the given
174
- number of bytes:
172
+ The following three primitives can be used to check whether there is a
173
+ memory segment starting at the given pointer and extending for at least the
174
+ given number of bytes:
175
175
176
176
- `_Bool __CPROVER_r_ok(const void *p, size_t size)`
177
177
- `_Bool __CPROVER_w_ok(const void *p, size_t size)`
178
+ - `_Bool __CPROVER_rw_ok(const void *p, size_t size)`
178
179
179
180
At present, both primitives are equivalent as all memory in CBMC is considered
180
181
both readable and writeable. If `p` is the null pointer, the primitives return
You can’t perform that action at this time.
0 commit comments