Skip to content
Snippets Groups Projects
Commit 1c18777b authored by Andre Maroneze's avatar Andre Maroneze
Browse files

[Libc] fix typo in ACSL specification

parent 3583ff0a
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,7 @@ extern int memcmp (const void *s1, const void *s2, size_t n);
/*@ requires valid:
valid_read_or_empty(s, n)
|| \valid_read(((unsigned char*)s)+(..memchr_off((char*)s,c,n)));
|| \valid_read(((unsigned char*)s)+(0..memchr_off((char*)s,c,n)));
@ requires initialization:
\initialized(((unsigned char*)s)+(0..n - 1))
|| \initialized(((unsigned char*)s)+(0..memchr_off((char*)s,c,n)));
......
......@@ -5431,7 +5431,7 @@ char *strrchr(char const *s, int c)
/*@ requires
valid:
valid_read_or_empty(s, n) ∨
\valid_read((unsigned char *)s + (.. memchr_off((char *)s, c, n)));
\valid_read((unsigned char *)s + (0 .. memchr_off((char *)s, c, n)));
requires
initialization:
\initialized((unsigned char *)s + (0 .. n - 1)) ∨
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment