1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464
|
[kernel] Parsing share/libc/__fc_builtin_for_normalization.i (no preprocessing)
[kernel] Parsing tests/value/addition.i (no preprocessing)
[value] Analyzing a complete application starting at main
[value] Computing initial state
[value] Initial state computed
[value:initial-state] Values of globals at initialization
NULL[rbits 360 to 391] ∈ [--..--]
t[0..9] ∈ {0}
x ∈ {0}
y ∈ {0}
z ∈ {0}
zz ∈ {0}
p1 ∈ {0}
p2 ∈ {0}
p3 ∈ {0}
p4 ∈ {0}
p5 ∈ {0}
p6 ∈ {0}
p7 ∈ {0}
p8 ∈ {0}
p9 ∈ {0}
p10 ∈ {0}
p11 ∈ {0}
p12 ∈ {0}
p13 ∈ {0}
p14 ∈ {0}
p15 ∈ {0}
p16 ∈ {0}
p17 ∈ {0}
u1 ∈ {0}
u3 ∈ {0}
q1 ∈ {0}
quo1 ∈ {0}
rem1 ∈ {0}
quo2 ∈ {0}
rem2 ∈ {0}
quo3 ∈ {0}
rem3 ∈ {0}
quo4 ∈ {0}
rem4 ∈ {0}
quo5 ∈ {0}
rem5 ∈ {0}
mm1 ∈ {0}
mm2 ∈ {0}
mm3 ∈ {0}
quo6 ∈ {0}
c1 ∈ {0}
c2 ∈ {0}
qu1 ∈ {0}
qu2 ∈ {0}
ll1 ∈ {0}
ll2 ∈ {0}
tt[0..4] ∈ {0}
ttt[0..4][0..5] ∈ {0}
square ∈ {0}
tests/value/addition.i:34:[value] warning: signed overflow. assert -2147483648 ≤ &p2 - &p3;
tests/value/addition.i:34:[value] warning: signed overflow. assert &p2 - &p3 ≤ 2147483647;
tests/value/addition.i:34:[value] Assigning imprecise value to p1.
The imprecision originates from Arithmetic {tests/value/addition.i:34}
tests/value/addition.i:36:[value] Assigning imprecise value to p2.
The imprecision originates from Arithmetic {tests/value/addition.i:36}
tests/value/addition.i:38:[value] Assigning imprecise value to p3.
The imprecision originates from Arithmetic {tests/value/addition.i:38}
tests/value/addition.i:40:[value] Assigning imprecise value to p4.
The imprecision originates from Arithmetic {tests/value/addition.i:40}
tests/value/addition.i:42:[value] Assigning imprecise value to p5.
The imprecision originates from Arithmetic {tests/value/addition.i:42}
tests/value/addition.i:44:[value] Assigning imprecise value to p6.
The imprecision originates from Arithmetic {tests/value/addition.i:44}
tests/value/addition.i:46:[value] Assigning imprecise value to p7.
The imprecision originates from Arithmetic {tests/value/addition.i:46}
tests/value/addition.i:48:[value] warning: pointer comparison.
assert \pointer_comparable((void *)(&p1 + 1), (void *)(&p2));
tests/value/addition.i:50:[value] warning: signed overflow. assert -2147483648 ≤ (int)(&p1) / 2;
tests/value/addition.i:50:[value] warning: signed overflow. assert (int)(&p1) / 2 ≤ 2147483647;
tests/value/addition.i:50:[value] Assigning imprecise value to p9.
The imprecision originates from Arithmetic {tests/value/addition.i:50}
tests/value/addition.i:52:[value] Assigning imprecise value to p10.
The imprecision originates from Arithmetic {tests/value/addition.i:52}
tests/value/addition.i:56:[value] Assigning imprecise value to p12.
The imprecision originates from Arithmetic {tests/value/addition.i:56}
tests/value/addition.i:59:[value] warning: signed overflow. assert -2147483648 ≤ (int)*((char *)(&q1)) + 2;
tests/value/addition.i:59:[value] warning: signed overflow. assert (int)*((char *)(&q1)) + 2 ≤ 2147483647;
tests/value/addition.i:59:[value] Assigning imprecise value to p13.
The imprecision originates from Misaligned {tests/value/addition.i:59}
tests/value/addition.i:61:[value] warning: signed overflow. assert -2147483648 ≤ (int)*((char *)(&q1)) + 2;
tests/value/addition.i:61:[value] warning: signed overflow. assert (int)*((char *)(&q1)) + 2 ≤ 2147483647;
tests/value/addition.i:61:[value] Assigning imprecise value to p14.
The imprecision originates from Misaligned {tests/value/addition.i:61}
tests/value/addition.i:66:[value] warning: out of bounds read. assert \valid_read(*((int **)45));
[value] Called Frama_C_show_each_1([-10..15])
tests/value/addition.i:88:[value] assertion got status valid.
[value] Recording results for main
[value] done for function main
[value] warning: Garbled mix generated during analysis:
{{ garbled mix of &{p3} (origin: Arithmetic {tests/value/addition.i:34}) }}
{{ garbled mix of &{p2} (origin: Arithmetic {tests/value/addition.i:34}) }}
{{ garbled mix of &{p1} (origin: Arithmetic {tests/value/addition.i:36}) }}
{{ garbled mix of &{p1} (origin: Arithmetic {tests/value/addition.i:38}) }}
{{ garbled mix of &{p1} (origin: Arithmetic {tests/value/addition.i:40}) }}
{{ garbled mix of &{p2} (origin: Arithmetic {tests/value/addition.i:42}) }}
{{ garbled mix of &{p1} (origin: Arithmetic {tests/value/addition.i:42}) }}
{{ garbled mix of &{p1} (origin: Arithmetic {tests/value/addition.i:44}) }}
{{ garbled mix of &{p2} (origin: Arithmetic {tests/value/addition.i:46}) }}
{{ garbled mix of &{p1} (origin: Arithmetic {tests/value/addition.i:50}) }}
{{ garbled mix of &{p1} (origin: Arithmetic {tests/value/addition.i:52}) }}
{{ garbled mix of &{p2} (origin: Arithmetic {tests/value/addition.i:56}) }}
{{ garbled mix of &{p1} (origin: Arithmetic {tests/value/addition.i:56}) }}
{{ garbled mix of &{p1} (origin: Misaligned {tests/value/addition.i:59}) }}
{{ garbled mix of &{p1} (origin: Misaligned {tests/value/addition.i:61}) }}
[value] ====== VALUES COMPUTED ======
[value:final-states] Values at end of function main:
t[0] ∈ {0}
[1] ∈ {45}
[2] ∈ {3}
[3..9] ∈ {0}
z ∈ {37}
p1 ∈
{{ garbled mix of &{p2; p3}
(origin: Arithmetic {tests/value/addition.i:34}) }}
p2 ∈
{{ garbled mix of &{p1}
(origin: Arithmetic {tests/value/addition.i:36}) }}
p3 ∈
{{ garbled mix of &{t; p1}
(origin: Arithmetic {tests/value/addition.i:38}) }}
p4 ∈
{{ garbled mix of &{p1; tt}
(origin: Arithmetic {tests/value/addition.i:40}) }}
p5 ∈
{{ garbled mix of &{p1; p2; ttt}
(origin: Arithmetic {tests/value/addition.i:42}) }}
p6 ∈
{{ garbled mix of &{p1; ttt}
(origin: Arithmetic {tests/value/addition.i:44}) }}
p7 ∈
{{ garbled mix of &{p2; ttt}
(origin: Arithmetic {tests/value/addition.i:46}) }}
p8 ∈ {0; 1}
p9 ∈
{{ garbled mix of &{p1}
(origin: Arithmetic {tests/value/addition.i:50}) }}
p10 ∈
{{ garbled mix of &{p1}
(origin: Arithmetic {tests/value/addition.i:52}) }}
p11 ∈ [-2147483648..0]
p12 ∈
{{ garbled mix of &{p1; p2}
(origin: Arithmetic {tests/value/addition.i:56}) }}
p13 ∈
{{ garbled mix of &{p1}
(origin: Misaligned {tests/value/addition.i:59}) }}
p14 ∈
{{ garbled mix of &{p1}
(origin: Misaligned {tests/value/addition.i:61}) }}
p15 ∈ {-1}
p16 ∈ {2949122}
p17 ∈ {-2147483648; 0}
u1 ∈ {8}
q1 ∈ {{ &p1 }}
quo1 ∈ {3}
rem1 ∈ {1}
quo2 ∈ {-3}
rem2 ∈ {-1}
quo3 ∈ {3}
rem3 ∈ {-1}
quo4 ∈ {-3}
rem4 ∈ {1}
quo5 ∈ {-3}
rem5 ∈ {0}
mm1 ∈ [-224848..151152],0%16
mm2 ∈ [-6982976..4665024],64%128
mm3 ∈ [-1182974..789526],1%5
quo6 ∈ [-446..-371],1%3
c1 ∈ [-48..77],2%5
c2 ∈ [-46..79],4%5
qu1 ∈ [53..223]
qu2 ∈ [-14..23]
ll1 ∈ [4294967248..4294967373],3%5
ll2 ∈ [4294967250..4294967375],0%5
tt[0].a ∈ {0}
[0].b ∈ {-1}
{[0].[bits 34 to 63]; [1..4]} ∈ {0}
square ∈ [-150..225]
u2 ∈ {34}
__retres ∈ {6}
[from] Computing for function main
[from] Done for function main
[from] ====== DEPENDENCIES COMPUTED ======
These dependencies hold at termination for the executions that terminate:
[from] Function main:
t[1] FROM NULL[45..48]
[2] FROM \nothing
z FROM \nothing
p1 FROM \nothing
p2 FROM \nothing
p3 FROM \nothing
p4 FROM \nothing
p5 FROM \nothing
p6 FROM u2
p7 FROM u2
p8 FROM \nothing
p9 FROM \nothing
p10 FROM \nothing
p11 FROM u2 (and SELF)
p12 FROM \nothing
p13 FROM \nothing
p14 FROM \nothing
p15 FROM \nothing
p16 FROM NULL[45..48]; t[0][bits 16 to 31]
p17 FROM u4
u1 FROM \nothing
q1 FROM \nothing
quo1 FROM \nothing
rem1 FROM \nothing
quo2 FROM \nothing
rem2 FROM \nothing
quo3 FROM \nothing
rem3 FROM \nothing
quo4 FROM \nothing
rem4 FROM \nothing
quo5 FROM \nothing
rem5 FROM \nothing
mm1 FROM u2; u3_0
mm2 FROM u2; u3_0
mm3 FROM u2; u3_0
quo6 FROM u3_0
c1 FROM u3_0
c2 FROM u3_0
qu1 FROM u3_0
qu2 FROM u3_0
ll1 FROM u3_0
ll2 FROM u3_0
tt[0].b FROM \nothing
square FROM u3_0
\result FROM \nothing
[from] ====== END OF DEPENDENCIES ======
[inout] Out (internal) for function main:
t[1..2]; z; p1; p2; p3; p4; p5; p6; p7; p8; p9; p10; p11; p12; p13;
p14; p15; p16; p17; u1; q1; quo1; rem1; quo2; rem2; quo3; rem3; quo4;
rem4; quo5; rem5; mm1; mm2; mm3; quo6; c1; c2; qu1; qu2; ll1; ll2;
tt[0].b; square; u2; s; t_0; __retres
[inout] Inputs for function main:
NULL[45..48]; t{{[0][bits 16 to 31]; [1][bits 0 to 15]}; [2]}; z; p17;
q1[bits 0 to 7]; ll1; ll2; tt[0].b
[value] Analyzing a complete application starting at main
[value] Computing initial state
[value] Initial state computed
[value:initial-state] Values of globals at initialization
NULL[rbits 360 to 399] ∈ [--..--]
t[0..9] ∈ {0}
x ∈ {0}
y ∈ {0}
z ∈ {0}
zz ∈ {0}
p1 ∈ {0}
p2 ∈ {0}
p3 ∈ {0}
p4 ∈ {0}
p5 ∈ {0}
p6 ∈ {0}
p7 ∈ {0}
p8 ∈ {0}
p9 ∈ {0}
p10 ∈ {0}
p11 ∈ {0}
p12 ∈ {0}
p13 ∈ {0}
p14 ∈ {0}
p15 ∈ {0}
p16 ∈ {0}
p17 ∈ {0}
u1 ∈ {0}
u3 ∈ {0}
q1 ∈ {0}
quo1 ∈ {0}
rem1 ∈ {0}
quo2 ∈ {0}
rem2 ∈ {0}
quo3 ∈ {0}
rem3 ∈ {0}
quo4 ∈ {0}
rem4 ∈ {0}
quo5 ∈ {0}
rem5 ∈ {0}
mm1 ∈ {0}
mm2 ∈ {0}
mm3 ∈ {0}
quo6 ∈ {0}
c1 ∈ {0}
c2 ∈ {0}
qu1 ∈ {0}
qu2 ∈ {0}
ll1 ∈ {0}
ll2 ∈ {0}
tt[0..4] ∈ {0}
ttt[0..4][0..5] ∈ {0}
square ∈ {0}
tests/value/addition.i:34:[value] warning: signed overflow. assert -2147483648 ≤ &p2 - &p3;
tests/value/addition.i:34:[value] warning: signed overflow. assert &p2 - &p3 ≤ 2147483647;
tests/value/addition.i:48:[value] warning: pointer comparison.
assert \pointer_comparable((void *)(&p1 + 1), (void *)(&p2));
tests/value/addition.i:50:[value] warning: signed overflow. assert -2147483648 ≤ (int)(&p1) / 2;
tests/value/addition.i:50:[value] warning: signed overflow. assert (int)(&p1) / 2 ≤ 2147483647;
tests/value/addition.i:59:[value] warning: signed overflow. assert -2147483648 ≤ (int)*((char *)(&q1)) + 2;
tests/value/addition.i:59:[value] warning: signed overflow. assert (int)*((char *)(&q1)) + 2 ≤ 2147483647;
tests/value/addition.i:61:[value] warning: signed overflow. assert -2147483648 ≤ (int)*((char *)(&q1)) + 2;
tests/value/addition.i:61:[value] warning: signed overflow. assert (int)*((char *)(&q1)) + 2 ≤ 2147483647;
tests/value/addition.i:66:[value] warning: out of bounds read. assert \valid_read(*((int **)45));
[value] Called Frama_C_show_each_1([-10..15])
[value] Recording results for main
[value] done for function main
[value] warning: Garbled mix generated during analysis:
{{ garbled mix of &{p3} (origin: Arithmetic {tests/value/addition.i:34}) }}
{{ garbled mix of &{p2} (origin: Arithmetic {tests/value/addition.i:34}) }}
{{ garbled mix of &{p1} (origin: Arithmetic {tests/value/addition.i:36}) }}
{{ garbled mix of &{p1} (origin: Arithmetic {tests/value/addition.i:38}) }}
{{ garbled mix of &{p1} (origin: Arithmetic {tests/value/addition.i:40}) }}
{{ garbled mix of &{p2} (origin: Arithmetic {tests/value/addition.i:42}) }}
{{ garbled mix of &{p1} (origin: Arithmetic {tests/value/addition.i:42}) }}
{{ garbled mix of &{p1} (origin: Arithmetic {tests/value/addition.i:44}) }}
{{ garbled mix of &{p2} (origin: Arithmetic {tests/value/addition.i:46}) }}
{{ garbled mix of &{p1} (origin: Arithmetic {tests/value/addition.i:50}) }}
{{ garbled mix of &{p1} (origin: Arithmetic {tests/value/addition.i:52}) }}
{{ garbled mix of &{p2} (origin: Arithmetic {tests/value/addition.i:56}) }}
{{ garbled mix of &{p1} (origin: Arithmetic {tests/value/addition.i:56}) }}
{{ garbled mix of &{p1} (origin: Misaligned {tests/value/addition.i:59}) }}
{{ garbled mix of &{p1} (origin: Misaligned {tests/value/addition.i:61}) }}
[value] ====== VALUES COMPUTED ======
[value:final-states] Values at end of function main:
t[0] ∈ {0}
[1][bits 0 to 23] ∈ {0; 45; 46}
[1][bits 24 to 31] ∈ [--..--]
[2] ∈ {3}
[3..9] ∈ {0}
z ∈ {37}
p1 ∈
{{ garbled mix of &{p2; p3}
(origin: Arithmetic {tests/value/addition.i:34}) }}
p2 ∈
{{ garbled mix of &{p1}
(origin: Arithmetic {tests/value/addition.i:36}) }}
p3 ∈
{{ garbled mix of &{t; p1}
(origin: Arithmetic {tests/value/addition.i:38}) }}
p4 ∈
{{ garbled mix of &{p1; tt}
(origin: Arithmetic {tests/value/addition.i:40}) }}
p5 ∈
{{ garbled mix of &{p1; p2; ttt}
(origin: Arithmetic {tests/value/addition.i:42}) }}
p6 ∈
{{ garbled mix of &{p1; ttt}
(origin: Arithmetic {tests/value/addition.i:44}) }}
p7 ∈
{{ garbled mix of &{p2; ttt}
(origin: Arithmetic {tests/value/addition.i:46}) }}
p8 ∈ {0; 1}
p9 ∈
{{ garbled mix of &{p1}
(origin: Arithmetic {tests/value/addition.i:50}) }}
p10 ∈
{{ garbled mix of &{p1}
(origin: Arithmetic {tests/value/addition.i:52}) }}
p11 ∈ [-2147483648..0]
p12 ∈
{{ garbled mix of &{p1; p2}
(origin: Arithmetic {tests/value/addition.i:56}) }}
p13 ∈
{{ garbled mix of &{p1}
(origin: Misaligned {tests/value/addition.i:59}) }}
p14 ∈
{{ garbled mix of &{p1}
(origin: Misaligned {tests/value/addition.i:61}) }}
p15 ∈ {-1}
p16 ∈ {2; 2949122; 3014658}
p17 ∈ {-2147483648; 0}
u1 ∈ {8}
q1 ∈ {{ &p1 }}
quo1 ∈ {3}
rem1 ∈ {1}
quo2 ∈ {-3}
rem2 ∈ {-1}
quo3 ∈ {3}
rem3 ∈ {-1}
quo4 ∈ {-3}
rem4 ∈ {1}
quo5 ∈ {-3}
rem5 ∈ {0}
mm1 ∈ [-224848..151152],0%16
mm2 ∈ [-6982976..4665024],64%128
mm3 ∈ [-1182974..789526],1%5
quo6 ∈ [-446..-371],1%3
c1 ∈ [-48..77],2%5
c2 ∈ [-46..79],4%5
qu1 ∈ [53..223]
qu2 ∈ [-14..23]
ll1 ∈ [4294967248..4294967373],3%5
ll2 ∈ [4294967250..4294967375],0%5
tt[0].a ∈ {0}
[0].b ∈ {-1}
{[0].[bits 34 to 63]; [1..4]} ∈ {0}
square ∈ [-150..225]
u2 ∈ {34}
__retres ∈ {6}
[from] Computing for function main
[from] Done for function main
[from] ====== DEPENDENCIES COMPUTED ======
These dependencies hold at termination for the executions that terminate:
[from] Function main:
t[1] FROM NULL[45..49]
[2] FROM \nothing
z FROM \nothing
p1 FROM \nothing
p2 FROM \nothing
p3 FROM \nothing
p4 FROM \nothing
p5 FROM \nothing
p6 FROM u2
p7 FROM u2
p8 FROM \nothing
p9 FROM \nothing
p10 FROM \nothing
p11 FROM u2 (and SELF)
p12 FROM \nothing
p13 FROM \nothing
p14 FROM \nothing
p15 FROM \nothing
p16 FROM NULL[45..49]; t[0][bits 16 to 31]
p17 FROM u4
u1 FROM \nothing
q1 FROM \nothing
quo1 FROM \nothing
rem1 FROM \nothing
quo2 FROM \nothing
rem2 FROM \nothing
quo3 FROM \nothing
rem3 FROM \nothing
quo4 FROM \nothing
rem4 FROM \nothing
quo5 FROM \nothing
rem5 FROM \nothing
mm1 FROM u2; u3_0
mm2 FROM u2; u3_0
mm3 FROM u2; u3_0
quo6 FROM u3_0
c1 FROM u3_0
c2 FROM u3_0
qu1 FROM u3_0
qu2 FROM u3_0
ll1 FROM u3_0
ll2 FROM u3_0
tt[0].b FROM \nothing
square FROM u3_0
\result FROM \nothing
[from] ====== END OF DEPENDENCIES ======
[inout] Out (internal) for function main:
t[1..2]; z; p1; p2; p3; p4; p5; p6; p7; p8; p9; p10; p11; p12; p13;
p14; p15; p16; p17; u1; q1; quo1; rem1; quo2; rem2; quo3; rem3; quo4;
rem4; quo5; rem5; mm1; mm2; mm3; quo6; c1; c2; qu1; qu2; ll1; ll2;
tt[0].b; square; u2; s; t_0; __retres
[inout] Inputs for function main:
NULL[45..49]; t{{[0][bits 16 to 31]; [1][bits 0 to 15]}; [2]}; z; p17;
q1[bits 0 to 7]; ll1; ll2; tt[0].b
|