Debian Codegraph @

tests/rte_manual/oracle/unsigned.1.res.oracle

raw
1 [kernel] Parsing unsigned.i (no preprocessing)
2 [rte:annot] annotating function f
3 /* Generated by Frama-C */
4 unsigned int f(unsigned int a, unsigned int b)
5 {
6 unsigned int x;
7 unsigned int y;
8 unsigned int z;
9 /*@ assert rte: unsigned_overflow: a << 3 ≤ 4294967295; */
10 x = a << 3;
11 /*@ assert rte: unsigned_overflow: 0 ≤ b * 2; */
12 /*@ assert rte: unsigned_overflow: b * 2 ≤ 4294967295; */
13 y = b * (unsigned int)2;
14 /*@ assert rte: unsigned_overflow: 0 ≤ x - y; */
15 /*@ assert rte: unsigned_overflow: x - y ≤ 4294967295; */
16 z = x - y;
17 return z;
18 }
19
20