cprover
Loading...
Searching...
No Matches
Rewriting Calls to the __CPROVER_pointer_equals Predicate

Back to top contracts-dev-spec

In goto programs encoding pre or post conditions (generated from the contract clauses) and in all user-defined functions, we simply replace calls to __CPROVER_pointer_equals with calls to the library implementation.

void **ptr1,
void *ptr2,
__CPROVER_bool __CPROVER_contracts_pointer_equals(void **ptr1, void *ptr2, __CPROVER_bool may_fail, __CPROVER_contracts_write_set_ptr_t write_set)
Implementation of the pointer_equals front-end predicate.
Runtime representation of a write set.

This function implements the __CPROVER_pointer_equals behaviour in all possible contexts (contract checking vs replacement, requires vs ensures clause context, as described by the flags carried by the write set parameter).


Prev Next
contracts-dev contracts-dev-spec-reminder