| 1 |
# frama-c -wp [...] |
| 2 |
[kernel] Parsing logic.i (no preprocessing) |
| 3 |
[wp] Running WP plugin... |
| 4 |
[wp] Warning: Missing RTE guards |
| 5 |
[wp] logic.i:65: Warning: |
| 6 |
Cast with incompatible pointers types (source: __anonstruct_Buint_4*) |
| 7 |
(target: uint32*) |
| 8 |
[wp] logic.i:62: Warning: |
| 9 |
Logic cast to struct (Tint2) from (int [6]) not implemented yet |
| 10 |
[wp] logic.i:61: Warning: Logic cast from struct (Tint6) not implemented yet |
| 11 |
[wp] logic.i:60: Warning: |
| 12 |
Logic cast to sized array (int [2]) from (int [6]) not implemented yet |
| 13 |
[wp] logic.i:59: Warning: Logic cast from struct (Tint6) not implemented yet |
| 14 |
[wp] logic.i:58: Warning: Logic cast from struct (Tint6) not implemented yet |
| 15 |
[wp] logic.i:57: Warning: |
| 16 |
Logic cast to sized array (Triangle) from (int [6]) not implemented yet |
| 17 |
[wp] logic.i:56: Warning: Logic cast from struct (Tint6) not implemented yet |
| 18 |
[wp] logic.i:55: Warning: |
| 19 |
Logic cast to struct (Buint) from (unsigned int) not implemented yet |
| 20 |
[wp] logic.i:54: Warning: Logic cast from struct (Buint) not implemented yet |
| 21 |
[wp] logic.i:53: Warning: Logic cast from struct (Tint2) not implemented yet |
| 22 |
[wp] logic.i:52: Warning: Logic cast from struct (Point) not implemented yet |
| 23 |
[wp] logic.i:51: Warning: |
| 24 |
Logic cast to struct (Point) from (int [2]) not implemented yet |
| 25 |
[wp] logic.i:50: Warning: Logic cast from struct (Point) not implemented yet |
| 26 |
[wp] logic.i:49: Warning: Logic cast from struct (Tint2) not implemented yet |
| 27 |
------------------------------------------------------------ |
| 28 |
Function h |
| 29 |
------------------------------------------------------------ |
| 30 |
|
| 31 |
Goal Post-condition (file logic.i, line 21) in 'h': |
| 32 |
Let a = global(G_t_29). |
| 33 |
Let m = Array_S1(shift_S1(a, 0), 3, Mint_0). |
| 34 |
Let m_1 = Array_S1(a, 3, Mint_0). |
| 35 |
Assume { Type: IsArray_S1(m_1) /\ IsArray_S1(m). (* Call 'f' *) Have: P_P(m). |
| 36 |
} |
| 37 |
Prove: P_P(m_1). |
| 38 |
|
| 39 |
------------------------------------------------------------ |
| 40 |
|
| 41 |
Goal Assigns nothing in 'h': |
| 42 |
Prove: true. |
| 43 |
|
| 44 |
------------------------------------------------------------ |
| 45 |
|
| 46 |
Goal Assigns nothing in 'h': |
| 47 |
Prove: true. |
| 48 |
|
| 49 |
------------------------------------------------------------ |
| 50 |
------------------------------------------------------------ |
| 51 |
Function main |
| 52 |
------------------------------------------------------------ |
| 53 |
|
| 54 |
Goal Pre-condition 'qed_ok' in 'main': |
| 55 |
Prove: true. |
| 56 |
|
| 57 |
------------------------------------------------------------ |
| 58 |
|
| 59 |
Goal Pre-condition 'qed_ok' in 'main': |
| 60 |
Let a = global(G_tr_35). |
| 61 |
Let a_1 = shift_S1(a, 2). |
| 62 |
Let a_2 = shift_S1(a, 1). |
| 63 |
Let a_3 = shift_S1(a, 0). |
| 64 |
Let m = Array_S1(a, 3, Mint_0). |
| 65 |
Assume { |
| 66 |
Type: IsArray_S1(m) /\ IsArray_S1(Array_S1(a_3, 3, Mint_0)). |
| 67 |
(* Heap *) |
| 68 |
Type: region(G_tr_35) <= 0. |
| 69 |
(* Initializer *) |
| 70 |
Init: Mint_0[shiftfield_F1_x(a_3)] = 10. |
| 71 |
(* Initializer *) |
| 72 |
Init: Mint_0[shiftfield_F1_y(a_3)] = 11. |
| 73 |
(* Initializer *) |
| 74 |
Init: Mint_0[shiftfield_F1_x(a_2)] = 20. |
| 75 |
(* Initializer *) |
| 76 |
Init: Mint_0[shiftfield_F1_y(a_2)] = 21. |
| 77 |
(* Initializer *) |
| 78 |
Init: Mint_0[shiftfield_F1_x(a_1)] = 30. |
| 79 |
(* Initializer *) |
| 80 |
Init: Mint_0[shiftfield_F1_y(a_1)] = 31. |
| 81 |
} |
| 82 |
Prove: P_P(m). |
| 83 |
|
| 84 |
------------------------------------------------------------ |
| 85 |
|
| 86 |
Goal Pre-condition 'qed_ok' in 'main': |
| 87 |
Let a = global(G_tr_35). |
| 88 |
Let a_1 = shift_S1(a, 2). |
| 89 |
Let a_2 = shift_S1(a, 1). |
| 90 |
Let a_3 = shift_S1(a, 0). |
| 91 |
Let m = Array_S1(a, 3, Mint_0). |
| 92 |
Assume { |
| 93 |
Type: IsArray_S1(m) /\ IsArray_S1(Array_S1(a_3, 3, Mint_0)). |
| 94 |
(* Heap *) |
| 95 |
Type: region(G_tr_35) <= 0. |
| 96 |
(* Initializer *) |
| 97 |
Init: Mint_0[shiftfield_F1_x(a_3)] = 10. |
| 98 |
(* Initializer *) |
| 99 |
Init: Mint_0[shiftfield_F1_y(a_3)] = 11. |
| 100 |
(* Initializer *) |
| 101 |
Init: Mint_0[shiftfield_F1_x(a_2)] = 20. |
| 102 |
(* Initializer *) |
| 103 |
Init: Mint_0[shiftfield_F1_y(a_2)] = 21. |
| 104 |
(* Initializer *) |
| 105 |
Init: Mint_0[shiftfield_F1_x(a_1)] = 30. |
| 106 |
(* Initializer *) |
| 107 |
Init: Mint_0[shiftfield_F1_y(a_1)] = 31. |
| 108 |
} |
| 109 |
Prove: P_P(m). |
| 110 |
|
| 111 |
------------------------------------------------------------ |
| 112 |
|
| 113 |
Goal Pre-condition 'qed_ok' in 'main': |
| 114 |
Let a = global(G_tr_35). |
| 115 |
Let a_1 = shift_S1(a, 2). |
| 116 |
Let a_2 = shift_S1(a, 1). |
| 117 |
Let a_3 = shift_S1(a, 0). |
| 118 |
Let m = Array_S1(a_3, 3, Mint_0). |
| 119 |
Assume { |
| 120 |
Type: IsArray_S1(Array_S1(a, 3, Mint_0)) /\ IsArray_S1(m). |
| 121 |
(* Heap *) |
| 122 |
Type: region(G_tr_35) <= 0. |
| 123 |
(* Initializer *) |
| 124 |
Init: Mint_0[shiftfield_F1_x(a_3)] = 10. |
| 125 |
(* Initializer *) |
| 126 |
Init: Mint_0[shiftfield_F1_y(a_3)] = 11. |
| 127 |
(* Initializer *) |
| 128 |
Init: Mint_0[shiftfield_F1_x(a_2)] = 20. |
| 129 |
(* Initializer *) |
| 130 |
Init: Mint_0[shiftfield_F1_y(a_2)] = 21. |
| 131 |
(* Initializer *) |
| 132 |
Init: Mint_0[shiftfield_F1_x(a_1)] = 30. |
| 133 |
(* Initializer *) |
| 134 |
Init: Mint_0[shiftfield_F1_y(a_1)] = 31. |
| 135 |
} |
| 136 |
Prove: P_P(m). |
| 137 |
|
| 138 |
------------------------------------------------------------ |
| 139 |
|
| 140 |
Goal Pre-condition 'qed_ok' in 'main': |
| 141 |
logic.i:49: warning from wp: |
| 142 |
- Warning: Hide sub-term definition |
| 143 |
Reason: Logic cast from struct (Tint2) not implemented yet |
| 144 |
Assume { (* Heap *) Type: region(G_tr_35) <= 0. } |
| 145 |
Prove: (w.F1_y) = 11. |
| 146 |
|
| 147 |
------------------------------------------------------------ |
| 148 |
|
| 149 |
Goal Pre-condition 'qed_ok' in 'main': |
| 150 |
logic.i:50: warning from wp: |
| 151 |
- Warning: Hide sub-term definition |
| 152 |
Reason: Logic cast from struct (Point) not implemented yet |
| 153 |
Assume { (* Heap *) Type: region(G_tr_35) <= 0. } |
| 154 |
Prove: (w.F3_tab)[1] = 11. |
| 155 |
|
| 156 |
------------------------------------------------------------ |
| 157 |
|
| 158 |
Goal Pre-condition 'qed_ok' in 'main': |
| 159 |
logic.i:51: warning from wp: |
| 160 |
- Warning: Hide sub-term definition |
| 161 |
Reason: Logic cast to struct (Point) from (int [2]) not implemented yet |
| 162 |
Assume { (* Heap *) Type: region(G_tr_35) <= 0. } |
| 163 |
Prove: (w.F1_y) = 11. |
| 164 |
|
| 165 |
------------------------------------------------------------ |
| 166 |
|
| 167 |
Goal Pre-condition 'qed_ok' in 'main': |
| 168 |
logic.i:52: warning from wp: |
| 169 |
- Warning: Hide sub-term definition |
| 170 |
Reason: Logic cast from struct (Point) not implemented yet |
| 171 |
Assume { (* Heap *) Type: region(G_tr_35) <= 0. } |
| 172 |
Prove: w[1] = 11. |
| 173 |
|
| 174 |
------------------------------------------------------------ |
| 175 |
|
| 176 |
Goal Pre-condition 'qed_ok' in 'main': |
| 177 |
logic.i:53: warning from wp: |
| 178 |
- Warning: Hide sub-term definition |
| 179 |
Reason: Logic cast from struct (Tint2) not implemented yet |
| 180 |
Assume { (* Heap *) Type: region(G_tr_35) <= 0. } |
| 181 |
Prove: w[1] = 11. |
| 182 |
|
| 183 |
------------------------------------------------------------ |
| 184 |
|
| 185 |
Goal Pre-condition 'qed_ok' in 'main': |
| 186 |
logic.i:54: warning from wp: |
| 187 |
- Warning: Hide sub-term definition |
| 188 |
Reason: Logic cast from struct (Buint) not implemented yet |
| 189 |
Assume { (* Heap *) Type: region(G_tr_35) <= 0. } |
| 190 |
Prove: w = 134480385. |
| 191 |
|
| 192 |
------------------------------------------------------------ |
| 193 |
|
| 194 |
Goal Pre-condition 'qed_ok' in 'main': |
| 195 |
logic.i:55: warning from wp: |
| 196 |
- Warning: Hide sub-term definition |
| 197 |
Reason: Logic cast to struct (Buint) from (unsigned int) not implemented yet |
| 198 |
Let a = global(G_buint_41). |
| 199 |
Let a_1 = shiftfield_F4_bytes(a). |
| 200 |
Let a_2 = Load_S4(a, Mint_0). |
| 201 |
Assume { |
| 202 |
Type: IsS4(a_2). |
| 203 |
(* Heap *) |
| 204 |
Type: region(G_tr_35) <= 0. |
| 205 |
(* Initializer *) |
| 206 |
Init: Mint_0[shift_uint8(a_1, 0)] = 1. |
| 207 |
(* Initializer *) |
| 208 |
Init: Mint_0[shift_uint8(a_1, 1)] = 2. |
| 209 |
(* Initializer *) |
| 210 |
Init: Mint_0[shift_uint8(a_1, 2)] = 4. |
| 211 |
(* Initializer *) |
| 212 |
Init: Mint_0[shift_uint8(a_1, 3)] = 8. |
| 213 |
} |
| 214 |
Prove: EqS4(a_2, w). |
| 215 |
|
| 216 |
------------------------------------------------------------ |
| 217 |
|
| 218 |
Goal Pre-condition 'qed_ok' in 'main': |
| 219 |
logic.i:56: warning from wp: |
| 220 |
- Warning: Hide sub-term definition |
| 221 |
Reason: Logic cast from struct (Tint6) not implemented yet |
| 222 |
Assume { (* Heap *) Type: region(G_tr_35) <= 0. } |
| 223 |
Prove: (w[1].F1_y) = 21. |
| 224 |
|
| 225 |
------------------------------------------------------------ |
| 226 |
|
| 227 |
Goal Pre-condition 'qed_ok' in 'main': |
| 228 |
logic.i:57: warning from wp: |
| 229 |
- Warning: Hide sub-term definition |
| 230 |
Reason: Logic cast to sized array (Triangle) from (int [6]) not implemented yet |
| 231 |
Assume { (* Heap *) Type: region(G_tr_35) <= 0. } |
| 232 |
Prove: (w[1].F1_y) = 21. |
| 233 |
|
| 234 |
------------------------------------------------------------ |
| 235 |
|
| 236 |
Goal Pre-condition 'qed_ok' in 'main': |
| 237 |
logic.i:58: warning from wp: |
| 238 |
- Warning: Hide sub-term definition |
| 239 |
Reason: Logic cast from struct (Tint6) not implemented yet |
| 240 |
Assume { (* Heap *) Type: region(G_tr_35) <= 0. } |
| 241 |
Prove: w[4] = 30. |
| 242 |
|
| 243 |
------------------------------------------------------------ |
| 244 |
|
| 245 |
Goal Pre-condition 'qed_ok' in 'main': |
| 246 |
logic.i:59: warning from wp: |
| 247 |
- Warning: Hide sub-term definition |
| 248 |
Reason: Logic cast from struct (Tint6) not implemented yet |
| 249 |
Assume { (* Heap *) Type: region(G_tr_35) <= 0. } |
| 250 |
Prove: w[1] = 11. |
| 251 |
|
| 252 |
------------------------------------------------------------ |
| 253 |
|
| 254 |
Goal Pre-condition 'qed_ok' in 'main': |
| 255 |
logic.i:60: warning from wp: |
| 256 |
- Warning: Hide sub-term definition |
| 257 |
Reason: Logic cast to sized array (int [2]) from (int [6]) not implemented yet |
| 258 |
Assume { (* Heap *) Type: region(G_tr_35) <= 0. } |
| 259 |
Prove: w[1] = 11. |
| 260 |
|
| 261 |
------------------------------------------------------------ |
| 262 |
|
| 263 |
Goal Pre-condition 'qed_ok' in 'main': |
| 264 |
logic.i:61: warning from wp: |
| 265 |
- Warning: Hide sub-term definition |
| 266 |
Reason: Logic cast from struct (Tint6) not implemented yet |
| 267 |
Assume { (* Heap *) Type: region(G_tr_35) <= 0. } |
| 268 |
Prove: (w.F3_tab)[1] = 11. |
| 269 |
|
| 270 |
------------------------------------------------------------ |
| 271 |
|
| 272 |
Goal Pre-condition 'qed_ok' in 'main': |
| 273 |
logic.i:62: warning from wp: |
| 274 |
- Warning: Hide sub-term definition |
| 275 |
Reason: Logic cast to struct (Tint2) from (int [6]) not implemented yet |
| 276 |
Assume { (* Heap *) Type: region(G_tr_35) <= 0. } |
| 277 |
Prove: (w.F3_tab)[1] = 11. |
| 278 |
|
| 279 |
------------------------------------------------------------ |