| 1 |
# frama-c -wp [...] |
| 2 |
[kernel] Parsing initialized_local_init.i (no preprocessing) |
| 3 |
[wp] Running WP plugin... |
| 4 |
[wp] Warning: Missing RTE guards |
| 5 |
------------------------------------------------------------ |
| 6 |
Function l_array |
| 7 |
------------------------------------------------------------ |
| 8 |
|
| 9 |
Goal Assertion 'SUCCS' (file initialized_local_init.i, line 9): |
| 10 |
Let x_1 = x[1]. |
| 11 |
Let x_2 = x[2]. |
| 12 |
Assume { |
| 13 |
Type: is_sint32(x_1) /\ is_sint32(x_2). |
| 14 |
(* Initializer *) |
| 15 |
Init: x[0] = 0. |
| 16 |
(* Initializer *) |
| 17 |
Init: forall i : Z. ((0 < i) -> ((i <= 2) -> (x[i] = 0))). |
| 18 |
} |
| 19 |
Prove: (x_1 = 0) /\ (x_2 = 0) /\ (x_2 = x_1). |
| 20 |
|
| 21 |
------------------------------------------------------------ |
| 22 |
|
| 23 |
Goal Assertion 'SUCCS' (file initialized_local_init.i, line 10): |
| 24 |
Assume { |
| 25 |
(* Goal *) |
| 26 |
When: (0 <= i) /\ (i <= 2). |
| 27 |
(* Initializer *) |
| 28 |
Init: (Init_x_0[0]=true). |
| 29 |
(* Initializer *) |
| 30 |
Init: x[0] = 0. |
| 31 |
(* Initializer *) |
| 32 |
Init: forall i_1 : Z. ((0 < i_1) -> ((i_1 <= 2) -> (Init_x_0[i_1]=true))). |
| 33 |
(* Initializer *) |
| 34 |
Init: forall i_1 : Z. ((0 < i_1) -> ((i_1 <= 2) -> (x[i_1] = 0))). |
| 35 |
(* Assertion 'SUCCS' *) |
| 36 |
Have: (x[1] = 0) /\ (x[2] = 0). |
| 37 |
} |
| 38 |
Prove: (Init_x_0[i]=true). |
| 39 |
|
| 40 |
------------------------------------------------------------ |
| 41 |
|
| 42 |
Goal Check 'FAILS' (file initialized_local_init.i, line 11): |
| 43 |
Assume { |
| 44 |
(* Initializer *) |
| 45 |
Init: x[0] = 0. |
| 46 |
(* Initializer *) |
| 47 |
Init: forall i : Z. ((0 < i) -> ((i <= 2) -> (x[i] = 0))). |
| 48 |
(* Assertion 'SUCCS' *) |
| 49 |
Have: (x[1] = 0) /\ (x[2] = 0). |
| 50 |
} |
| 51 |
Prove: false. |
| 52 |
|
| 53 |
------------------------------------------------------------ |
| 54 |
------------------------------------------------------------ |
| 55 |
Function l_int |
| 56 |
------------------------------------------------------------ |
| 57 |
|
| 58 |
Goal Assertion 'SUCCS' (file initialized_local_init.i, line 3): |
| 59 |
Prove: true. |
| 60 |
|
| 61 |
------------------------------------------------------------ |
| 62 |
|
| 63 |
Goal Assertion 'SUCCS' (file initialized_local_init.i, line 4): |
| 64 |
Prove: true. |
| 65 |
|
| 66 |
------------------------------------------------------------ |
| 67 |
|
| 68 |
Goal Check 'FAILS' (file initialized_local_init.i, line 5): |
| 69 |
Prove: false. |
| 70 |
|
| 71 |
------------------------------------------------------------ |
| 72 |
------------------------------------------------------------ |
| 73 |
Function l_struct |
| 74 |
------------------------------------------------------------ |
| 75 |
|
| 76 |
Goal Assertion 'SUCCS' (file initialized_local_init.i, line 16): |
| 77 |
Prove: true. |
| 78 |
|
| 79 |
------------------------------------------------------------ |
| 80 |
|
| 81 |
Goal Assertion 'SUCCS' (file initialized_local_init.i, line 17): |
| 82 |
Prove: true. |
| 83 |
|
| 84 |
------------------------------------------------------------ |
| 85 |
|
| 86 |
Goal Check 'FAILS' (file initialized_local_init.i, line 18): |
| 87 |
Prove: false. |
| 88 |
|
| 89 |
------------------------------------------------------------ |