| 1 |
# frama-c -wp [...] |
| 2 |
[kernel] Parsing assigns_range.i (no preprocessing) |
| 3 |
[wp] Running WP plugin... |
| 4 |
[wp] Warning: Missing RTE guards |
| 5 |
------------------------------------------------------------ |
| 6 |
Function call_assigns_all |
| 7 |
------------------------------------------------------------ |
| 8 |
|
| 9 |
Goal Assigns 'qed_ok' in 'call_assigns_all' (1/5): |
| 10 |
Prove: true. |
| 11 |
|
| 12 |
------------------------------------------------------------ |
| 13 |
|
| 14 |
Goal Assigns 'qed_ok' in 'call_assigns_all' (2/5): |
| 15 |
Call Effect at line 37 |
| 16 |
Prove: true. |
| 17 |
|
| 18 |
------------------------------------------------------------ |
| 19 |
|
| 20 |
Goal Assigns 'qed_ok' in 'call_assigns_all' (3/5): |
| 21 |
Call Effect at line 38 |
| 22 |
Prove: true. |
| 23 |
|
| 24 |
------------------------------------------------------------ |
| 25 |
|
| 26 |
Goal Assigns 'qed_ok' in 'call_assigns_all' (4/5): |
| 27 |
Call Effect at line 39 |
| 28 |
Prove: true. |
| 29 |
|
| 30 |
------------------------------------------------------------ |
| 31 |
|
| 32 |
Goal Assigns 'qed_ok' in 'call_assigns_all' (5/5): |
| 33 |
Call Effect at line 40 |
| 34 |
Prove: true. |
| 35 |
|
| 36 |
------------------------------------------------------------ |
| 37 |
|
| 38 |
Goal Assigns 'qed_ok' in 'call_assigns_all' (1/5): |
| 39 |
Prove: true. |
| 40 |
|
| 41 |
------------------------------------------------------------ |
| 42 |
|
| 43 |
Goal Assigns 'qed_ok' in 'call_assigns_all' (2/5): |
| 44 |
Call Effect at line 37 |
| 45 |
Prove: true. |
| 46 |
|
| 47 |
------------------------------------------------------------ |
| 48 |
|
| 49 |
Goal Assigns 'qed_ok' in 'call_assigns_all' (3/5): |
| 50 |
Call Effect at line 38 |
| 51 |
Prove: true. |
| 52 |
|
| 53 |
------------------------------------------------------------ |
| 54 |
|
| 55 |
Goal Assigns 'qed_ok' in 'call_assigns_all' (4/5): |
| 56 |
Call Effect at line 39 |
| 57 |
Prove: true. |
| 58 |
|
| 59 |
------------------------------------------------------------ |
| 60 |
|
| 61 |
Goal Assigns 'qed_ok' in 'call_assigns_all' (5/5): |
| 62 |
Call Effect at line 40 |
| 63 |
Prove: true. |
| 64 |
|
| 65 |
------------------------------------------------------------ |
| 66 |
|
| 67 |
Goal Instance of 'Pre-condition (file assigns_range.i, line 8) in 'assigns_t1_an_element'' in 'call_assigns_all' at call 'assigns_t1_an_element' (file assigns_range.i, line 37) |
| 68 |
: |
| 69 |
Assume { |
| 70 |
Type: is_sint32(i) /\ is_sint32(j). |
| 71 |
(* Pre-condition *) |
| 72 |
Have: (0 <= i) /\ (i <= j) /\ (j <= 19). |
| 73 |
} |
| 74 |
Prove: i <= 19. |
| 75 |
|
| 76 |
------------------------------------------------------------ |
| 77 |
|
| 78 |
Goal Instance of 'Pre-condition (file assigns_range.i, line 13) in 'assigns_t2_bound'' in 'call_assigns_all' at call 'assigns_t2_bound' (file assigns_range.i, line 38) |
| 79 |
: |
| 80 |
Prove: true. |
| 81 |
|
| 82 |
------------------------------------------------------------ |
| 83 |
|
| 84 |
Goal Instance of 'Pre-condition (file assigns_range.i, line 18) in 'assigns_t3_inf_bound'' in 'call_assigns_all' at call 'assigns_t3_inf_bound' (file assigns_range.i, line 39) |
| 85 |
: |
| 86 |
Prove: true. |
| 87 |
|
| 88 |
------------------------------------------------------------ |
| 89 |
|
| 90 |
Goal Instance of 'Pre-condition (file assigns_range.i, line 23) in 'assigns_t4_sup_bound'' in 'call_assigns_all' at call 'assigns_t4_sup_bound' (file assigns_range.i, line 40) |
| 91 |
: |
| 92 |
Prove: true. |
| 93 |
|
| 94 |
------------------------------------------------------------ |
| 95 |
------------------------------------------------------------ |
| 96 |
Function call_assigns_t1 |
| 97 |
------------------------------------------------------------ |
| 98 |
|
| 99 |
Goal Assigns 'qed_ko' in 'call_assigns_t1': |
| 100 |
Call Effect at line 49 |
| 101 |
Assume { |
| 102 |
Type: is_sint32(i). |
| 103 |
(* Goal *) |
| 104 |
When: (0 <= i) /\ (i <= 19). |
| 105 |
(* Pre-condition *) |
| 106 |
Have: (5 <= i) /\ (i <= 7). |
| 107 |
} |
| 108 |
Prove: false. |
| 109 |
|
| 110 |
------------------------------------------------------------ |
| 111 |
|
| 112 |
Goal Assigns 'qed_ko' in 'call_assigns_t1': |
| 113 |
Call Effect at line 49 |
| 114 |
Assume { |
| 115 |
Type: is_sint32(i). |
| 116 |
(* Goal *) |
| 117 |
When: (0 <= i) /\ (i <= 19). |
| 118 |
(* Pre-condition *) |
| 119 |
Have: (5 <= i) /\ (i <= 7). |
| 120 |
} |
| 121 |
Prove: false. |
| 122 |
|
| 123 |
------------------------------------------------------------ |
| 124 |
|
| 125 |
Goal Instance of 'Pre-condition (file assigns_range.i, line 8) in 'assigns_t1_an_element'' in 'call_assigns_t1' at call 'assigns_t1_an_element' (file assigns_range.i, line 49) |
| 126 |
: |
| 127 |
Assume { Type: is_sint32(i). (* Pre-condition *) Have: (5 <= i) /\ (i <= 7). |
| 128 |
} |
| 129 |
Prove: (0 <= i) /\ (i <= 19). |
| 130 |
|
| 131 |
------------------------------------------------------------ |
| 132 |
------------------------------------------------------------ |
| 133 |
Function call_assigns_t2 |
| 134 |
------------------------------------------------------------ |
| 135 |
|
| 136 |
Goal Assigns 'qed_ko' in 'call_assigns_t2': |
| 137 |
Call Effect at line 57 |
| 138 |
Assume { |
| 139 |
Type: is_sint32(i). |
| 140 |
(* Heap *) |
| 141 |
Type: IsArray_sint32(t2_0). |
| 142 |
(* Goal *) |
| 143 |
When: ((-2) <= i) /\ (i <= 19). |
| 144 |
(* Pre-condition *) |
| 145 |
Have: (5 <= i) /\ (i <= 7). |
| 146 |
(* Exit 'assigns_t2_bound' *) |
| 147 |
Have: (0 <= i) /\ (i <= 17). |
| 148 |
(* Exit Effects *) |
| 149 |
Have: forall i_1 : Z. ((0 <= i_1) -> ((i_1 <= 19) -> |
| 150 |
(((i_1 < i) \/ ((3 + i) <= i_1)) -> (t2_1[i_1] = t2_0[i_1])))). |
| 151 |
} |
| 152 |
Prove: false. |
| 153 |
|
| 154 |
------------------------------------------------------------ |
| 155 |
|
| 156 |
Goal Assigns 'qed_ko' in 'call_assigns_t2': |
| 157 |
Call Effect at line 57 |
| 158 |
Assume { |
| 159 |
Type: is_sint32(i). |
| 160 |
(* Heap *) |
| 161 |
Type: IsArray_sint32(t2_0). |
| 162 |
(* Goal *) |
| 163 |
When: ((-2) <= i) /\ (i <= 19). |
| 164 |
(* Pre-condition *) |
| 165 |
Have: (5 <= i) /\ (i <= 7). |
| 166 |
(* Call 'assigns_t2_bound' *) |
| 167 |
Have: (0 <= i) /\ (i <= 17). |
| 168 |
(* Call Effects *) |
| 169 |
Have: forall i_1 : Z. ((0 <= i_1) -> ((i_1 <= 19) -> |
| 170 |
(((i_1 < i) \/ ((3 + i) <= i_1)) -> (t2_1[i_1] = t2_0[i_1])))). |
| 171 |
} |
| 172 |
Prove: false. |
| 173 |
|
| 174 |
------------------------------------------------------------ |
| 175 |
|
| 176 |
Goal Instance of 'Pre-condition (file assigns_range.i, line 13) in 'assigns_t2_bound'' in 'call_assigns_t2' at call 'assigns_t2_bound' (file assigns_range.i, line 57) |
| 177 |
: |
| 178 |
Assume { Type: is_sint32(i). (* Pre-condition *) Have: (5 <= i) /\ (i <= 7). |
| 179 |
} |
| 180 |
Prove: (0 <= i) /\ (i <= 17). |
| 181 |
|
| 182 |
------------------------------------------------------------ |
| 183 |
------------------------------------------------------------ |
| 184 |
Function call_assigns_t4 |
| 185 |
------------------------------------------------------------ |
| 186 |
|
| 187 |
Goal Assigns 'qed_ko' in 'call_assigns_t4': |
| 188 |
Call Effect at line 65 |
| 189 |
Assume { |
| 190 |
Type: is_sint32(i) /\ is_sint32(j). |
| 191 |
(* Heap *) |
| 192 |
Type: IsArray_sint32(t4_0). |
| 193 |
(* Goal *) |
| 194 |
When: 0 <= j. |
| 195 |
(* Pre-condition *) |
| 196 |
Have: (0 <= i) /\ (i <= j) /\ (j <= 19). |
| 197 |
(* Exit Effects *) |
| 198 |
Have: forall i_1 : Z. ((0 <= i_1) -> ((i_1 <= 19) -> |
| 199 |
(((i_1 < 0) \/ (j < i_1)) -> (t4_1[i_1] = t4_0[i_1])))). |
| 200 |
} |
| 201 |
Prove: i <= 0. |
| 202 |
|
| 203 |
------------------------------------------------------------ |
| 204 |
|
| 205 |
Goal Assigns 'qed_ko' in 'call_assigns_t4': |
| 206 |
Call Effect at line 65 |
| 207 |
Assume { |
| 208 |
Type: is_sint32(i) /\ is_sint32(j). |
| 209 |
(* Heap *) |
| 210 |
Type: IsArray_sint32(t4_0). |
| 211 |
(* Goal *) |
| 212 |
When: 0 <= j. |
| 213 |
(* Pre-condition *) |
| 214 |
Have: (0 <= i) /\ (i <= j) /\ (j <= 19). |
| 215 |
(* Call Effects *) |
| 216 |
Have: forall i_1 : Z. ((0 <= i_1) -> ((i_1 <= 19) -> |
| 217 |
(((i_1 < 0) \/ (j < i_1)) -> (t4_1[i_1] = t4_0[i_1])))). |
| 218 |
} |
| 219 |
Prove: i <= 0. |
| 220 |
|
| 221 |
------------------------------------------------------------ |
| 222 |
|
| 223 |
Goal Instance of 'Pre-condition (file assigns_range.i, line 23) in 'assigns_t4_sup_bound'' in 'call_assigns_t4' at call 'assigns_t4_sup_bound' (file assigns_range.i, line 65) |
| 224 |
: |
| 225 |
Prove: true. |
| 226 |
|
| 227 |
------------------------------------------------------------ |