Debian Codegraph @

tests/rte_manual/oracle/memaccess.res.oracle

raw
1 [kernel] Parsing memaccess.i (no preprocessing)
2 [rte:annot] annotating function main
3 /* Generated by Frama-C */
4 int i;
5 unsigned int j;
6 int main(void)
7 {
8 int __retres;
9 int *p;
10 int tab[10];
11 /*@ assert rte: mem_access: \valid(p); */
12 *p = 3;
13 /*@ assert rte: index_bound: 0 ≤ i; */
14 /*@ assert rte: index_bound: i < 10; */
15 /*@ assert rte: mem_access: \valid_read(p); */
16 tab[i] = *p;
17 /*@ assert rte: mem_access: \valid(p + 1); */
18 /*@ assert rte: index_bound: j < 10; */
19 *(p + 1) = tab[j];
20 __retres = 0;
21 return __retres;
22 }
23
24