Predicate to describe overlapping pointers #7194
Labels
aws
Bugs or features of importance to AWS CBMC users
Code Contracts
Function and loop contracts
feature request
CBMC version: 5.67.0
Operating system: N/A
We need to describe pointers that may overlap, for example an array and a pointer within that array. Currently, we have prototype
same_space
to express this as follows:The issue is that any proof that uses this primitive must disable the
pointer-primitive-check
CBMC flag, which is something that should be used in memory safety proofs. We need to disable the flag in order to use the__CPROVER_OBJECT_SIZE
and__CPROVER_POINTER_OFFSET
functions. We should be able to resolve this temporarily by just disabling the flag in a pragma, but this is not supported. There is a GitHub issue addressing this here.The text was updated successfully, but these errors were encountered: