| 1 |
# frama-c -wp [...] |
| 2 |
[kernel] Parsing base_offset.i (no preprocessing) |
| 3 |
[wp] Running WP plugin... |
| 4 |
[wp] Warning: Missing RTE guards |
| 5 |
------------------------------------------------------------ |
| 6 |
Function f |
| 7 |
------------------------------------------------------------ |
| 8 |
|
| 9 |
Goal Post-condition (file base_offset.i, line 11) in 'f': |
| 10 |
Prove: true. |
| 11 |
|
| 12 |
------------------------------------------------------------ |
| 13 |
|
| 14 |
Goal Post-condition (file base_offset.i, line 13) in 'f': |
| 15 |
Prove: true. |
| 16 |
|
| 17 |
------------------------------------------------------------ |
| 18 |
|
| 19 |
Goal Post-condition (file base_offset.i, line 15) in 'f': |
| 20 |
Let x = p.base. |
| 21 |
Let a = table_of_base(x). |
| 22 |
Let x_1 = p.offset. |
| 23 |
Assume { |
| 24 |
(* Heap *) |
| 25 |
Type: region(x) <= 0. |
| 26 |
(* Goal *) |
| 27 |
When: (0 <= i) /\ (i <= i_1) /\ (i_1 <= 3). |
| 28 |
} |
| 29 |
Prove: table_to_offset(a, 1 + i + x_1) <= table_to_offset(a, 1 + i_1 + x_1). |
| 30 |
|
| 31 |
------------------------------------------------------------ |
| 32 |
------------------------------------------------------------ |
| 33 |
Function g |
| 34 |
------------------------------------------------------------ |
| 35 |
|
| 36 |
Goal Check 'KO' (file base_offset.i, line 29): |
| 37 |
Prove: table_of_base(G_z_33) = table_of_base(G_x_31). |
| 38 |
|
| 39 |
------------------------------------------------------------ |
| 40 |
|
| 41 |
Goal Check 'KO' (file base_offset.i, line 30): |
| 42 |
Assume { (* Goal *) When: table_of_base(G_y_32) = table_of_base(G_x_31). } |
| 43 |
Prove: false. |
| 44 |
|
| 45 |
------------------------------------------------------------ |