string_c_generic.res.oracle 18.3 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
[kernel] Parsing tests/libc/string_c_generic.c (with preprocessing)
[eva] Analyzing a complete application starting at main
[eva] Computing initial state
[eva] Initial state computed
[eva:initial-state] Values of globals at initialization
  
[eva] computing for function strcpy <- main.
  Called from tests/libc/string_c_generic.c:56.
[eva] tests/libc/string_c_generic.c:56: 
  function strcpy: precondition 'valid_string_src' got status valid.
[eva] tests/libc/string_c_generic.c:56: 
  function strcpy: precondition 'room_string' got status valid.
[eva] tests/libc/string_c_generic.c:56: 
  function strcpy: precondition 'separation' got status valid.
15
[eva] share/libc/string.h:351: 
16
  cannot evaluate ACSL term, unsupported ACSL construct: logic function strcmp
17
[eva:alarm] share/libc/string.h:351: Warning: 
18
  function strcpy: postcondition 'equal_contents' got status unknown.
19
[eva] share/libc/string.h:352: 
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
  function strcpy: postcondition 'result_ptr' got status valid.
[eva] Recording results for strcpy
[eva] Done for function strcpy
[eva] computing for function strcmp <- main.
  Called from tests/libc/string_c_generic.c:57.
[eva] tests/libc/string_c_generic.c:57: 
  function strcmp: precondition 'valid_string_s1' got status valid.
[eva] tests/libc/string_c_generic.c:57: 
  function strcmp: precondition 'valid_string_s2' got status valid.
[eva] share/libc/string.h:140: 
  cannot evaluate ACSL term, unsupported ACSL construct: logic function strcmp
[eva:alarm] share/libc/string.h:140: Warning: 
  function strcmp: postcondition 'acsl_c_equiv' got status unknown.
[eva] Recording results for strcmp
[eva] Done for function strcmp
[eva] computing for function strcpy <- main.
  Called from tests/libc/string_c_generic.c:58.
[eva] tests/libc/string_c_generic.c:58: 
  function strcpy: precondition 'valid_string_src' got status valid.
[eva] tests/libc/string_c_generic.c:58: 
  function strcpy: precondition 'room_string' got status valid.
[eva] tests/libc/string_c_generic.c:58: 
  function strcpy: precondition 'separation' got status valid.
[eva] Recording results for strcpy
[eva] Done for function strcpy
[eva] computing for function strcmp <- main.
  Called from tests/libc/string_c_generic.c:59.
[eva] tests/libc/string_c_generic.c:59: 
  function strcmp: precondition 'valid_string_s1' got status valid.
[eva] tests/libc/string_c_generic.c:59: 
  function strcmp: precondition 'valid_string_s2' got status valid.
[eva] Recording results for strcmp
[eva] Done for function strcmp
[eva] computing for function strcpy <- main.
  Called from tests/libc/string_c_generic.c:60.
[eva] tests/libc/string_c_generic.c:60: 
  function strcpy: precondition 'valid_string_src' got status valid.
[eva] tests/libc/string_c_generic.c:60: 
  function strcpy: precondition 'room_string' got status valid.
[eva] tests/libc/string_c_generic.c:60: 
  function strcpy: precondition 'separation' got status valid.
[eva] Recording results for strcpy
[eva] Done for function strcpy
[eva] computing for function strcmp <- main.
  Called from tests/libc/string_c_generic.c:61.
[eva] tests/libc/string_c_generic.c:61: 
  function strcmp: precondition 'valid_string_s1' got status valid.
[eva] tests/libc/string_c_generic.c:61: 
  function strcmp: precondition 'valid_string_s2' got status valid.
[eva] Recording results for strcmp
[eva] Done for function strcmp
[eva] computing for function strcpy <- main.
  Called from tests/libc/string_c_generic.c:62.
[eva] tests/libc/string_c_generic.c:62: 
  function strcpy: precondition 'valid_string_src' got status valid.
[eva] tests/libc/string_c_generic.c:62: 
  function strcpy: precondition 'room_string' got status valid.
[eva] tests/libc/string_c_generic.c:62: 
  function strcpy: precondition 'separation' got status valid.
[eva] Recording results for strcpy
[eva] Done for function strcpy
[eva] computing for function strcmp <- main.
  Called from tests/libc/string_c_generic.c:63.
[eva] tests/libc/string_c_generic.c:63: 
  function strcmp: precondition 'valid_string_s1' got status valid.
[eva] tests/libc/string_c_generic.c:63: 
  function strcmp: precondition 'valid_string_s2' got status valid.
[eva] Recording results for strcmp
[eva] Done for function strcmp
[eva] computing for function strcpy <- main.
  Called from tests/libc/string_c_generic.c:65.
[eva] tests/libc/string_c_generic.c:65: 
  function strcpy: precondition 'valid_string_src' got status valid.
[eva] tests/libc/string_c_generic.c:65: 
  function strcpy: precondition 'room_string' got status valid.
[eva] tests/libc/string_c_generic.c:65: 
  function strcpy: precondition 'separation' got status valid.
[eva] Recording results for strcpy
[eva] Done for function strcpy
[eva] computing for function strcmp <- main.
  Called from tests/libc/string_c_generic.c:66.
[eva] tests/libc/string_c_generic.c:66: 
  function strcmp: precondition 'valid_string_s1' got status valid.
[eva] tests/libc/string_c_generic.c:66: 
  function strcmp: precondition 'valid_string_s2' got status valid.
[eva] Recording results for strcmp
[eva] Done for function strcmp
[eva] computing for function strcpy <- main.
  Called from tests/libc/string_c_generic.c:67.
[eva] tests/libc/string_c_generic.c:67: 
  function strcpy: precondition 'valid_string_src' got status valid.
[eva] tests/libc/string_c_generic.c:67: 
  function strcpy: precondition 'room_string' got status valid.
[eva] tests/libc/string_c_generic.c:67: 
  function strcpy: precondition 'separation' got status valid.
[eva] Recording results for strcpy
[eva] Done for function strcpy
[eva] computing for function strcmp <- main.
  Called from tests/libc/string_c_generic.c:68.
[eva] tests/libc/string_c_generic.c:68: 
  function strcmp: precondition 'valid_string_s1' got status valid.
[eva] tests/libc/string_c_generic.c:68: 
  function strcmp: precondition 'valid_string_s2' got status valid.
[eva] Recording results for strcmp
[eva] Done for function strcmp
[eva] computing for function strcpy <- main.
  Called from tests/libc/string_c_generic.c:69.
[eva] tests/libc/string_c_generic.c:69: 
  function strcpy: precondition 'valid_string_src' got status valid.
[eva] tests/libc/string_c_generic.c:69: 
  function strcpy: precondition 'room_string' got status valid.
[eva] tests/libc/string_c_generic.c:69: 
  function strcpy: precondition 'separation' got status valid.
[eva] Recording results for strcpy
[eva] Done for function strcpy
[eva] computing for function strcmp <- main.
  Called from tests/libc/string_c_generic.c:70.
[eva] tests/libc/string_c_generic.c:70: 
  function strcmp: precondition 'valid_string_s1' got status valid.
[eva] tests/libc/string_c_generic.c:70: 
  function strcmp: precondition 'valid_string_s2' got status valid.
[eva] Recording results for strcmp
[eva] Done for function strcmp
[eva] computing for function memset <- main.
  Called from tests/libc/string_c_generic.c:72.
[eva] tests/libc/string_c_generic.c:72: 
  function memset: precondition 'valid_s' got status valid.
[eva] share/libc/string.h:118: 
  cannot evaluate ACSL term, unsupported ACSL construct: logic function memset
[eva:alarm] share/libc/string.h:118: Warning: 
  function memset: postcondition 'acsl_c_equiv' got status unknown.
[eva] share/libc/string.h:119: 
  function memset: postcondition 'result_ptr' got status valid.
[eva] Recording results for memset
[eva] Done for function memset
[eva] computing for function strncpy <- main.
  Called from tests/libc/string_c_generic.c:73.
[eva] tests/libc/string_c_generic.c:73: 
Andre Maroneze's avatar
Andre Maroneze committed
158
  function strncpy: precondition 'valid_nstring_src' got status valid.
159 160 161 162
[eva] tests/libc/string_c_generic.c:73: 
  function strncpy: precondition 'room_nstring' got status valid.
[eva] tests/libc/string_c_generic.c:73: 
  function strncpy: precondition 'separation' got status valid.
163
[eva] share/libc/string.c:220: starting to merge loop iterations
164
[eva] share/libc/string.h:363: 
165
  function strncpy: postcondition 'result_ptr' got status valid.
166
[eva] share/libc/string.h:364: 
167
  function strncpy: postcondition 'initialization' got status valid.
168
[eva] share/libc/string.h:367: 
169
  cannot evaluate ACSL term, unsupported ACSL construct: logic function strcmp
170
[eva:alarm] share/libc/string.h:367: Warning: 
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
  function strncpy, behavior complete: postcondition 'equal_after_copy' got status unknown.
[eva] Recording results for strncpy
[eva] Done for function strncpy
[eva] computing for function memcmp <- main.
  Called from tests/libc/string_c_generic.c:74.
[eva] tests/libc/string_c_generic.c:74: 
  function memcmp: precondition 'valid_s1' got status valid.
[eva] tests/libc/string_c_generic.c:74: 
  function memcmp: precondition 'valid_s2' got status valid.
[eva] tests/libc/string_c_generic.c:74: 
  function memcmp: precondition 'initialization,s1' got status valid.
[eva] tests/libc/string_c_generic.c:74: 
  function memcmp: precondition 'initialization,s2' got status valid.
[eva] tests/libc/string_c_generic.c:74: 
  function memcmp: precondition 'danglingness,s1' got status valid.
[eva] tests/libc/string_c_generic.c:74: 
  function memcmp: precondition 'danglingness,s2' got status valid.
[eva] share/libc/string.h:63: 
  cannot evaluate ACSL term, unsupported ACSL construct: logic function memcmp
[eva:alarm] share/libc/string.h:63: Warning: 
  function memcmp: postcondition 'logic_spec' got status unknown.
[eva] Recording results for memcmp
[eva] Done for function memcmp
[eva] computing for function strncpy <- main.
  Called from tests/libc/string_c_generic.c:78.
[eva] tests/libc/string_c_generic.c:78: 
Andre Maroneze's avatar
Andre Maroneze committed
197
  function strncpy: precondition 'valid_nstring_src' got status valid.
198 199 200 201
[eva] tests/libc/string_c_generic.c:78: 
  function strncpy: precondition 'room_nstring' got status valid.
[eva] tests/libc/string_c_generic.c:78: 
  function strncpy: precondition 'separation' got status valid.
202
[eva] share/libc/string.h:370: 
203
  cannot evaluate ACSL term, unsupported ACSL construct: logic function memcmp
204
[eva:alarm] share/libc/string.h:370: Warning: 
205 206 207 208 209 210 211 212 213
  function strncpy, behavior partial: postcondition 'equal_prefix' got status unknown.
[eva] Recording results for strncpy
[eva] Done for function strncpy
[eva] computing for function strncmp <- main.
  Called from tests/libc/string_c_generic.c:82.
[eva] tests/libc/string_c_generic.c:82: 
  function strncmp: precondition 'valid_string_s1' got status valid.
[eva] tests/libc/string_c_generic.c:82: 
  function strncmp: precondition 'valid_string_s2' got status valid.
214
[eva] share/libc/string.c:138: starting to merge loop iterations
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
[eva] share/libc/string.h:147: 
  cannot evaluate ACSL term, unsupported ACSL construct: logic function strncmp
[eva:alarm] share/libc/string.h:147: Warning: 
  function strncmp: postcondition 'acsl_c_equiv' got status unknown.
[eva] Recording results for strncmp
[eva] Done for function strncmp
[eva] computing for function strncmp <- main.
  Called from tests/libc/string_c_generic.c:83.
[eva] tests/libc/string_c_generic.c:83: 
  function strncmp: precondition 'valid_string_s1' got status valid.
[eva] tests/libc/string_c_generic.c:83: 
  function strncmp: precondition 'valid_string_s2' got status valid.
[eva] Recording results for strncmp
[eva] Done for function strncmp
[eva] computing for function strcpy <- main.
  Called from tests/libc/string_c_generic.c:85.
[eva] tests/libc/string_c_generic.c:85: 
  function strcpy: precondition 'valid_string_src' got status valid.
[eva] tests/libc/string_c_generic.c:85: 
  function strcpy: precondition 'room_string' got status valid.
[eva] tests/libc/string_c_generic.c:85: 
  function strcpy: precondition 'separation' got status valid.
[eva] Recording results for strcpy
[eva] Done for function strcpy
[eva] computing for function strncat <- main.
  Called from tests/libc/string_c_generic.c:86.
[eva] tests/libc/string_c_generic.c:86: 
  function strncat: precondition 'valid_nstring_src' got status valid.
[eva] tests/libc/string_c_generic.c:86: 
  function strncat: precondition 'valid_string_dest' got status valid.
[eva] tests/libc/string_c_generic.c:86: 
  function strncat, behavior partial: precondition 'room_string' got status valid.
[eva] computing for function strlen <- strncat <- main.
248 249
  Called from share/libc/string.c:193.
[eva] share/libc/string.c:193: 
250 251 252 253 254
  function strlen: precondition 'valid_string_s' got status valid.
[eva] share/libc/string.h:127: 
  function strlen: postcondition 'acsl_c_equiv' got status valid.
[eva] Recording results for strlen
[eva] Done for function strlen
Andre Maroneze's avatar
Andre Maroneze committed
255
[eva] share/libc/string.h:421: 
256
  function strncat: postcondition 'result_ptr' got status valid.
Andre Maroneze's avatar
Andre Maroneze committed
257
[eva] share/libc/string.h:436: 
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
  function strncat, behavior partial: postcondition 'sum_of_bounded_lengths' got status valid.
[eva] Recording results for strncat
[eva] Done for function strncat
[eva] computing for function strcmp <- main.
  Called from tests/libc/string_c_generic.c:88.
[eva] tests/libc/string_c_generic.c:88: 
  function strcmp: precondition 'valid_string_s1' got status valid.
[eva] tests/libc/string_c_generic.c:88: 
  function strcmp: precondition 'valid_string_s2' got status valid.
[eva] Recording results for strcmp
[eva] Done for function strcmp
[eva] computing for function strcpy <- main.
  Called from tests/libc/string_c_generic.c:90.
[eva] tests/libc/string_c_generic.c:90: 
  function strcpy: precondition 'valid_string_src' got status valid.
[eva] tests/libc/string_c_generic.c:90: 
  function strcpy: precondition 'room_string' got status valid.
[eva] tests/libc/string_c_generic.c:90: 
  function strcpy: precondition 'separation' got status valid.
[eva] Recording results for strcpy
[eva] Done for function strcpy
[eva] computing for function strchr <- main.
  Called from tests/libc/string_c_generic.c:91.
[eva] tests/libc/string_c_generic.c:91: 
  function strchr: precondition 'valid_string_s' got status valid.
[eva] share/libc/string.h:161: 
  function strchr, behavior found: postcondition 'result_char' got status valid.
[eva] share/libc/string.h:162: 
  function strchr, behavior found: postcondition 'result_same_base' got status valid.
[eva] share/libc/string.h:163: 
  function strchr, behavior found: postcondition 'result_in_length' got status valid.
[eva] share/libc/string.h:164: 
  function strchr, behavior found: postcondition 'result_valid_string' got status valid.
[eva:alarm] share/libc/string.h:165: Warning: 
  function strchr, behavior found: postcondition 'result_first_occur' got status unknown.
[eva] share/libc/string.h:171: 
  function strchr, behavior default: postcondition 'result_null_or_same_base' got status valid.
[eva] Recording results for strchr
[eva] Done for function strchr
[eva] computing for function strchr <- main.
  Called from tests/libc/string_c_generic.c:92.
[eva] tests/libc/string_c_generic.c:92: 
  function strchr: precondition 'valid_string_s' got status valid.
[eva] share/libc/string.h:168: 
  function strchr, behavior not_found: postcondition 'result_null' got status valid.
[eva] Recording results for strchr
[eva] Done for function strchr
[eva] computing for function strrchr <- main.
  Called from tests/libc/string_c_generic.c:93.
[eva] tests/libc/string_c_generic.c:93: 
  function strrchr: precondition 'valid_string_s' got status valid.
[eva] computing for function strlen <- strrchr <- main.
310 311
  Called from share/libc/string.c:237.
[eva] share/libc/string.c:237: 
312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328
  function strlen: precondition 'valid_string_s' got status valid.
[eva] Recording results for strlen
[eva] Done for function strlen
[eva] share/libc/string.h:179: 
  function strrchr, behavior found: postcondition 'result_char' got status valid.
[eva] share/libc/string.h:180: 
  function strrchr, behavior found: postcondition 'result_same_base' got status valid.
[eva] share/libc/string.h:181: 
  function strrchr, behavior found: postcondition 'result_valid_string' got status valid.
[eva] share/libc/string.h:187: 
  function strrchr, behavior default: postcondition 'result_null_or_same_base' got status valid.
[eva] Recording results for strrchr
[eva] Done for function strrchr
[eva] computing for function strrchr <- main.
  Called from tests/libc/string_c_generic.c:94.
[eva] tests/libc/string_c_generic.c:94: 
  function strrchr: precondition 'valid_string_s' got status valid.
329 330
[eva] share/libc/string.c:237: Reusing old results for call to strlen
[eva] share/libc/string.c:237: starting to merge loop iterations
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
[eva] share/libc/string.h:184: 
  function strrchr, behavior not_found: postcondition 'result_null' got status valid.
[eva] Recording results for strrchr
[eva] Done for function strrchr
[eva] Recording results for main
[eva] done for function main
[eva] ====== VALUES COMPUTED ======
[eva:final-states] Values at end of function memcmp:
  p1 ∈ {{ (unsigned char const *)&b }}
  p2 ∈ {{ "abc\000\000\000\000" }}
  __retres ∈ {0}
[eva:final-states] Values at end of function memset:
  p ∈ {{ (unsigned char *)&b }}
  b[0..31] ∈ {120}
[eva:final-states] Values at end of function strchr:
  ch ∈ {98; 101}
  i ∈ {3; 20}
  __retres ∈ {{ NULL ; &b[3] }}
[eva:final-states] Values at end of function strcmp:
  i ∈ {0; 1; 2; 3; 6}
  __retres ∈ {0}
[eva:final-states] Values at end of function strcpy:
  i ∈ {0; 1; 2; 3; 20}
  b[0] ∈ {97}
   [1] ∈ {97; 98}
   [2] ∈ {97; 98; 99}
   [3] ∈ {0; 97; 98; 99}
   [4] ∈ {0; 97; 98; 99} or UNINITIALIZED
   [5] ∈ {0; 98; 99} or UNINITIALIZED
   [6..7] ∈ {0; 99} or UNINITIALIZED
   [8..9] ∈ {0; 100; 120} or UNINITIALIZED
   [10..12] ∈ {0; 48; 120} or UNINITIALIZED
   [13..14] ∈ {0; 49; 120} or UNINITIALIZED
   [15] ∈ {0; 50; 120} or UNINITIALIZED
   [16] ∈ {0; 50; 97; 120}
   [17] ∈ {0; 50; 98; 120}
   [18] ∈ {0; 50; 99; 120}
   [19] ∈ {0; 51; 120}
   [20..30] ∈ {0; 120} or UNINITIALIZED
   [31] ∈ {120} or UNINITIALIZED
[eva:final-states] Values at end of function strlen:
  i ∈ {3; 20}
[eva:final-states] Values at end of function strncat:
  dest_len ∈ {3}
  i ∈ {3}
  b[0] ∈ {97}
   [1] ∈ {98}
   [2] ∈ {99}
   [3] ∈ {49}
   [4] ∈ {50}
   [5] ∈ {51}
   [6..7] ∈ {0}
   [8..30] ∈ {0; 120}
   [31] ∈ {120}
[eva:final-states] Values at end of function strncmp:
  __retres ∈ {-1; 0}
[eva:final-states] Values at end of function strncpy:
  i ∈ [3..2147483647]
  b[0] ∈ {97}
   [1] ∈ {98}
   [2] ∈ {99}
   [3] ∈ {0; 120}
   [4..7] ∈ {0}
   [8..30] ∈ {0; 120}
   [31] ∈ {120}
[eva:final-states] Values at end of function strrchr:
  ch ∈ {98; 101}
  __retres ∈ {{ NULL ; &b[5] }}
[eva:final-states] Values at end of function main:
  b[0..2] ∈ {97}
   [3] ∈ {98}
   [4] ∈ {97}
   [5] ∈ {98}
   [6..7] ∈ {99}
   [8..9] ∈ {100}
   [10..12] ∈ {48}
   [13..14] ∈ {49}
   [15..18] ∈ {50}
   [19] ∈ {51}
   [20] ∈ {0}
   [21..30] ∈ {0; 120}
   [31] ∈ {120}
  s ∈ {0}
  i ∈ {0}
  __retres ∈ {0}