Slide 14
Slide 14 text
Template specifications for standard
mem* functions (2)
// To import
/*@ axiomatic memcmps {
predicate memcmp_int{L1, L2}(int *a, int *b, size_t n);
predicate separated_int(int *a, int *b, unsigned int n);
}
*/
int test(int *a, int *b) {
memcpy(a, b, sizeof (int));
//@ assert memcmp_int{Here, Here}(a, b, (unsigned long long) sizeof (int));
return 0;
}