src/crc.c: fix Frama-C annotations for get_crc32

This commit is contained in:
Christophe Grenier 2023-10-08 13:56:32 +02:00
parent d29facb0d7
commit 28e29554f7

View file

@ -90,6 +90,7 @@ unsigned int get_crc32(const void*buf, const unsigned int len, const uint32_t se
unsigned int i;
register uint32_t crc32val;
const unsigned char *s=(const unsigned char *)buf;
/*@ assert \valid_read(s + (0 .. len-1)); */
crc32val = seed;
/*@ loop invariant 0 <= i <= len;
@ loop assigns i, crc32val; */