| 1 |
# frama-c -wp [...] |
| 2 |
[kernel] Parsing generalized_checks.i (no preprocessing) |
| 3 |
[wp] Running WP plugin... |
| 4 |
[wp] Warning: Missing RTE guards |
| 5 |
------------------------------------------------------------ |
| 6 |
Axiomatic 'Th' |
| 7 |
------------------------------------------------------------ |
| 8 |
|
| 9 |
Lemma C: |
| 10 |
Assume: 'A' |
| 11 |
Prove: (P_Q x_0) -> (P_R x_0) |
| 12 |
|
| 13 |
------------------------------------------------------------ |
| 14 |
|
| 15 |
Lemma L: |
| 16 |
Assume: 'A' |
| 17 |
Prove: (P_P x_0) -> (P_R x_0) |
| 18 |
|
| 19 |
------------------------------------------------------------ |
| 20 |
------------------------------------------------------------ |
| 21 |
Function caller |
| 22 |
------------------------------------------------------------ |
| 23 |
|
| 24 |
Goal Post-condition 'R' in 'caller': |
| 25 |
Prove: true. |
| 26 |
|
| 27 |
------------------------------------------------------------ |
| 28 |
|
| 29 |
Goal Post-condition 'R1,ko' in 'caller': |
| 30 |
Assume { |
| 31 |
Type: is_sint32(caller_0) /\ is_sint32(x). |
| 32 |
(* Pre-condition *) |
| 33 |
Have: P_A(x). |
| 34 |
(* Pre-condition *) |
| 35 |
Have: P_CA1(x). |
| 36 |
(* Call 'job' *) |
| 37 |
Have: P_B(caller_0). |
| 38 |
} |
| 39 |
Prove: P_CB1(caller_0). |
| 40 |
|
| 41 |
------------------------------------------------------------ |
| 42 |
|
| 43 |
Goal Post-condition 'R2,ko' in 'caller': |
| 44 |
Assume { |
| 45 |
Type: is_sint32(caller_0) /\ is_sint32(x). |
| 46 |
(* Pre-condition *) |
| 47 |
Have: P_A(x). |
| 48 |
(* Pre-condition *) |
| 49 |
Have: P_CA1(x). |
| 50 |
(* Call 'job' *) |
| 51 |
Have: P_B(caller_0). |
| 52 |
} |
| 53 |
Prove: P_CA2(x). |
| 54 |
|
| 55 |
------------------------------------------------------------ |
| 56 |
|
| 57 |
Goal Assigns nothing in 'caller': |
| 58 |
Prove: true. |
| 59 |
|
| 60 |
------------------------------------------------------------ |
| 61 |
|
| 62 |
Goal Assigns nothing in 'caller' (1/2): |
| 63 |
Prove: true. |
| 64 |
|
| 65 |
------------------------------------------------------------ |
| 66 |
|
| 67 |
Goal Assigns nothing in 'caller' (2/2): |
| 68 |
Call Result at line 65 |
| 69 |
Prove: true. |
| 70 |
|
| 71 |
------------------------------------------------------------ |
| 72 |
|
| 73 |
Goal Instance of 'Pre-condition 'A' in 'job'' in 'caller' at call 'job' (file generalized_checks.i, line 65) |
| 74 |
: |
| 75 |
Prove: true. |
| 76 |
|
| 77 |
------------------------------------------------------------ |
| 78 |
|
| 79 |
Goal Instance of 'Pre-condition 'CA1' in 'job'' in 'caller' at call 'job' (file generalized_checks.i, line 65) |
| 80 |
: |
| 81 |
Prove: true. |
| 82 |
|
| 83 |
------------------------------------------------------------ |
| 84 |
|
| 85 |
Goal Instance of 'Pre-condition 'CA2,ko' in 'job'' in 'caller' at call 'job' (file generalized_checks.i, line 65) |
| 86 |
: |
| 87 |
Assume { |
| 88 |
Type: is_sint32(x). |
| 89 |
(* Pre-condition *) |
| 90 |
Have: P_A(x). |
| 91 |
(* Pre-condition *) |
| 92 |
Have: P_CA1(x). |
| 93 |
} |
| 94 |
Prove: P_CA2(x). |
| 95 |
|
| 96 |
------------------------------------------------------------ |
| 97 |
------------------------------------------------------------ |
| 98 |
Function job |
| 99 |
------------------------------------------------------------ |
| 100 |
|
| 101 |
Goal Post-condition 'B' in 'job': |
| 102 |
Let x_1 = L_F(x). |
| 103 |
Assume { |
| 104 |
Type: is_sint32(x) /\ is_sint32(x_1). |
| 105 |
(* Pre-condition 'A' *) |
| 106 |
Have: P_A(x). |
| 107 |
} |
| 108 |
Prove: P_B(x_1). |
| 109 |
|
| 110 |
------------------------------------------------------------ |
| 111 |
|
| 112 |
Goal Post-condition 'CB1' in 'job': |
| 113 |
Let x_1 = L_F(x). |
| 114 |
Assume { |
| 115 |
Type: is_sint32(x) /\ is_sint32(x_1). |
| 116 |
(* Pre-condition 'A' *) |
| 117 |
Have: P_A(x). |
| 118 |
} |
| 119 |
Prove: P_CB1(x_1). |
| 120 |
|
| 121 |
------------------------------------------------------------ |
| 122 |
|
| 123 |
Goal Post-condition 'CB2,ko' in 'job': |
| 124 |
Let x_1 = L_F(x). |
| 125 |
Assume { |
| 126 |
Type: is_sint32(x) /\ is_sint32(x_1). |
| 127 |
(* Pre-condition 'A' *) |
| 128 |
Have: P_A(x). |
| 129 |
} |
| 130 |
Prove: P_CB2(x_1). |
| 131 |
|
| 132 |
------------------------------------------------------------ |
| 133 |
|
| 134 |
Goal Assigns nothing in 'job': |
| 135 |
Prove: true. |
| 136 |
|
| 137 |
------------------------------------------------------------ |
| 138 |
|
| 139 |
Goal Assigns nothing in 'job' (1/2): |
| 140 |
Prove: true. |
| 141 |
|
| 142 |
------------------------------------------------------------ |
| 143 |
|
| 144 |
Goal Assigns nothing in 'job' (2/2): |
| 145 |
Call Result at line 52 |
| 146 |
Prove: true. |
| 147 |
|
| 148 |
------------------------------------------------------------ |
| 149 |
------------------------------------------------------------ |
| 150 |
Function loop |
| 151 |
------------------------------------------------------------ |
| 152 |
|
| 153 |
Goal Preservation of Invariant 'false_but_preserved' (file generalized_checks.i, line 70): |
| 154 |
Prove: true. |
| 155 |
|
| 156 |
------------------------------------------------------------ |
| 157 |
|
| 158 |
Goal Establishment of Invariant 'false_but_preserved' (file generalized_checks.i, line 70): |
| 159 |
Prove: false. |
| 160 |
|
| 161 |
------------------------------------------------------------ |
| 162 |
|
| 163 |
Goal Check 'implied_by_false_invariant' (file generalized_checks.i, line 74): |
| 164 |
Assume { Type: is_sint32(i). (* Else *) Have: 10 <= i. } |
| 165 |
Prove: false. |
| 166 |
|
| 167 |
------------------------------------------------------------ |
| 168 |
|
| 169 |
Goal Loop assigns (file generalized_checks.i, line 71): |
| 170 |
Prove: true. |
| 171 |
|
| 172 |
------------------------------------------------------------ |