| 1 |
[kernel] Parsing div.i (no preprocessing) |
| 2 |
[rte:annot] annotating function f |
| 3 |
[rte:annot] annotating function main |
| 4 |
/* Generated by Frama-C */ |
| 5 |
void f(void) |
| 6 |
{ |
| 7 |
int x; |
| 8 |
int y; |
| 9 |
int z; |
| 10 |
/*@ assert rte: division_by_zero: x ≢ 0; */ |
| 11 |
/*@ assert rte: signed_overflow: y / x ≤ 2147483647; */ |
| 12 |
z = y / x; |
| 13 |
return; |
| 14 |
} |
| 15 |
|
| 16 |
int main(void) |
| 17 |
{ |
| 18 |
int __retres; |
| 19 |
unsigned int ux; |
| 20 |
/*@ assert rte: division_by_zero: ux ≢ 0; */ |
| 21 |
ux = (unsigned int)1 / ux; |
| 22 |
__retres = 0; |
| 23 |
return __retres; |
| 24 |
} |
| 25 |
|
| 26 |
|