[ 0:01] compiling /home/xrockai/src/divine/nightly/test/svcomp/product-lines/minepump_spec3_product01_false.cil.c [ 0:01] /home/xrockai/src/divine/nightly/test/svcomp/product-lines/minepump_spec3_product01_false.cil.c:489:44: warning: incompatible redeclaration of library function 'malloc' [ 0:01] extern __attribute__((__nothrow__)) void *malloc(size_t __size ) __attribute__((__malloc__)) ; [ 0:01] ^ [ 0:01] /home/xrockai/src/divine/nightly/test/svcomp/product-lines/minepump_spec3_product01_false.cil.c:489:44: note: 'malloc' is a builtin with type 'void *(unsigned long)' [ 0:01] 1 warning generated. [ 0:01] compiling /dios/lib/config/seqklee.bc [ 0:01] setting up pass: functionmeta, options = [ 0:02] setting up pass: fuse-ctors, options = [ 0:02] KLEE: output directory is "/var/obj/divine-nightly/semidbg/test/__test_work_dir.1/_klee_out" [ 0:04] KLEE: Using Z3 solver backend [ 0:04] WARNING: this target does not support the llvm.stacksave intrinsic. [ 0:05] warning: Linking two modules of different target triples: klee_div_zero_check.bc' is 'x86_64-unknown-linux-gnu' whereas 'klee.bc' is 'x86_64-unknown-none-elf' [ 0:05] [ 0:05] KLEE: WARNING: undefined reference to function: __dios_tainted_init [ 0:09] KLEE: WARNING: undefined reference to function: klee_free [ 0:09] KLEE: WARNING: undefined reference to function: klee_malloc [ 0:09] i:1 [ 0:09] KLEE: WARNING ONCE: Alignment of memory from call "klee_malloc" is not modelled. Using alignment of 8. [ 0:09] about to __boot:0 [ 0:09] about to run the scheduler:0 [ 0:09] KLEE: WARNING ONCE: calling external: __dios_tainted_init() at /dios/libc/sys/start.cpp:49 5 [ 0:09] KLEE: ERROR: /dios/libc/sys/start.cpp:87: failed external call: __dios_tainted_init [ 0:09] KLEE: NOTE: now ignoring this error at this location [ 0:09] KLEE: ERROR: EXITING ON ERROR: [ 0:09] Error: failed external call: __dios_tainted_init [ 0:09] File: /dios/libc/sys/start.cpp [ 0:09] Line: 87 [ 0:09] assembly.ll line: 35648 [ 0:09] Stack: [ 0:09] #000035648 in __dios_start (l=0, argc=1, argv=94047116087816, envp=94047116156936) at /dios/libc/sys/start.cpp:87 [ 0:09] #100011618 in _ZN6__dios10sched_nullINS_5ClockINS_10NondetKleeINS_4BaseEEEEEE13run_schedulerINS_7ContextEEEvv () at /dios/sys/sched_null.hpp:163 [ 0:09] #200043981 in klee_boot (argc=2, argv=94047090244352) at /dios/arch/klee/boot.c:41 [ 0:09] [ 0:09] [ 0:09] 1 /* TAGS: error c sym */ [ 0:09] 2 /* VERIFY_OPTS: --symbolic -o nofail:malloc */ [ 0:09] 3 extern void __VERIFIER_error() __attribute__ ((__noreturn__)); [ 0:09] 4 [ 0:09] 5 extern int __VERIFIER_nondet_int(void); [ 0:09] 6 extern int printf (__const char *__restrict __format, ...); [ 0:09] 7 /* Generated by CIL v. 1.3.7 */ [ 0:09] 8 /* print_CIL_Input is true */ [ 0:09] 9 [ 0:09] 10 struct JoinPoint { [ 0:09] 11 void **(*fp)(struct JoinPoint * ) ; [ 0:09] 12 void **args ; [ 0:09] 13 int argsCount ; [ 0:09] 14 char const **argsType ; [ 0:09] 15 void *(*arg)(int , struct JoinPoint * ) ; [ 0:09] 16 char const *(*argType)(int , struct JoinPoint * ) ; [ 0:09] 17 void **retValue ; [ 0:09] 18 char const *retType ; [ 0:09] 19 char const *funcName ; [ 0:09] 20 char const *targetName ; [ 0:09] 21 char const *fileName ; [ 0:09] 22 char const *kind ; [ 0:09] 23 void *excep_return ; [ 0:09] 24 }; [ 0:09] 25 struct __UTAC__CFLOW_FUNC { [ 0:09] 26 int (*func)(int , int ) ; [ 0:09] 27 int val ; [ 0:09] 28 struct __UTAC__CFLOW_FUNC *next ; [ 0:09] 29 }; [ 0:09] 30 struct __UTAC__EXCEPTION { [ 0:09] 31 void *jumpbuf ; [ 0:09] 32 unsigned long long prtValue ; [ 0:09] 33 int pops ; [ 0:09] 34 struct __UTAC__CFLOW_FUNC *cflowfuncs ; [ 0:09] 35 }; [ 0:09] 36 typedef unsigned int size_t; [ 0:09] 37 struct __ACC__ERR { [ 0:09] 38 void *v ; [ 0:09] 39 struct __ACC__ERR *next ; [ 0:09] 40 }; [ 0:09] 41 #pragma merger(0,"MinePump.i","") [ 0:09] 42 void lowerWaterLevel(void) ; [ 0:09] 43 int isMethaneLevelCritical(void) ; [ 0:09] 44 void printEnvironment(void) ; [ 0:09] 45 void timeShift(void) ; [ 0:09] 46 void activatePump(void) ; [ 0:09] 47 void deactivatePump(void) ; [ 0:09] 48 int isPumpRunning(void) ; [ 0:09] 49 void printPump(void) ; [ 0:09] 50 int pumpRunning = 0; [ 0:09] 51 int systemActive = 1; [ 0:09] 52 void __utac_acc__Specification3_spec__1(void) ; [ 0:09] 53 void processEnvironment(void) ; [ 0:09] 54 void timeShift(void) [ 0:09] 55 { [ 0:09] 56 [ 0:09] 57 { [ 0:09] 58 if (pumpRunning) { [ 0:09] 59 { [ 0:09] 60 lowerWaterLevel(); [ 0:09] 61 } [ 0:09] 62 } else { [ 0:09] 63 [ 0:09] 64 } [ 0:09] 65 if (systemActive) { [ 0:09] 66 { [ 0:09] 67 processEnvironment(); [ 0:09] 68 } [ 0:09] 69 } else { [ 0:09] 70 [ 0:09] 71 } [ 0:09] 72 { [ 0:09] 73 __utac_acc__Specification3_spec__1(); [ 0:09] 74 } [ 0:09] 75 return; [ 0:09] 76 } [ 0:09] 77 } [ 0:09] 78 void processEnvironment(void) [ 0:09] 79 { [ 0:09] 80 [ 0:09] 81 { [ 0:09] 82 return; [ 0:09] 83 } [ 0:09] 84 } [ 0:09] 85 void activatePump(void) [ 0:09] 86 { [ 0:09] 87 [ 0:09] 88 { [ 0:09] 89 pumpRunning = 1; [ 0:09] 90 return; [ 0:09] 91 } [ 0:09] 92 } [ 0:09] 93 void deactivatePump(void) [ 0:09] 94 { [ 0:09] 95 [ 0:09] 96 { [ 0:09] 97 pumpRunning = 0; [ 0:09] 98 return; [ 0:09] 99 } [ 0:09] 100 } [ 0:09] 101 int isMethaneAlarm(void) [ 0:09] 102 { int retValue_acc ; [ 0:09] 103 [ 0:09] 104 { [ 0:09] 105 { [ 0:09] 106 retValue_acc = isMethaneLevelCritical(); [ 0:09] 107 } [ 0:09] 108 return (retValue_acc); [ 0:09] 109 return (retValue_acc); [ 0:09] 110 } [ 0:09] 111 } [ 0:09] 112 int isPumpRunning(void) [ 0:09] 113 { int retValue_acc ; [ 0:09] 114 [ 0:09] 115 { [ 0:09] 116 retValue_acc = pumpRunning; [ 0:09] 117 return (retValue_acc); [ 0:09] 118 return (retValue_acc); [ 0:09] 119 } [ 0:09] 120 } [ 0:09] 121 void printPump(void) [ 0:09] 122 { [ 0:09] 123 [ 0:09] 124 { [ 0:09] 125 { [ 0:09] 126 printf("Pump(System:"); [ 0:09] 127 } [ 0:09] 128 if (systemActive) { [ 0:09] 129 { [ 0:09] 130 printf("On"); [ 0:09] 131 } [ 0:09] 132 } else { [ 0:09] 133 { [ 0:09] 134 printf("Off"); [ 0:09] 135 } [ 0:09] 136 } [ 0:09] 137 { [ 0:09] 138 printf(",Pump:"); [ 0:09] 139 } [ 0:09] 140 if (pumpRunning) { [ 0:09] 141 { [ 0:09] 142 printf("On"); [ 0:09] 143 } [ 0:09] 144 } else { [ 0:09] 145 { [ 0:09] 146 printf("Off"); [ 0:09] 147 } [ 0:09] 148 } [ 0:09] 149 { [ 0:09] 150 printf(") "); [ 0:09] 151 printEnvironment(); [ 0:09] 152 printf("\n"); [ 0:09] 153 } [ 0:09] 154 return; [ 0:09] 155 } [ 0:09] 156 } [ 0:09] 157 #pragma merger(0,"scenario.i","") [ 0:09] 158 void waterRise(void) ; [ 0:09] 159 void changeMethaneLevel(void) ; [ 0:09] 160 void cleanup(void) ; [ 0:09] 161 void test(void) [ 0:09] 162 { int splverifierCounter ; [ 0:09] 163 int tmp ; [ 0:09] 164 int tmp___0 ; [ 0:09] 165 int tmp___1 ; [ 0:09] 166 int tmp___2 ; [ 0:09] 167 [ 0:09] 168 { [ 0:09] 169 splverifierCounter = 0; [ 0:09] 170 { [ 0:09] 171 while (1) { [ 0:09] 172 while_0_continue: /* CIL Label */ ; [ 0:09] 173 if (splverifierCounter < 4) { [ 0:09] 174 [ 0:09] 175 } else { [ 0:09] 176 goto while_0_break; [ 0:09] 177 } [ 0:09] 178 { [ 0:09] 179 tmp = __VERIFIER_nondet_int(); [ 0:09] 180 } [ 0:09] 181 if (tmp) { [ 0:09] 182 { [ 0:09] 183 waterRise(); [ 0:09] 184 } [ 0:09] 185 } else { [ 0:09] 186 [ 0:09] 187 } [ 0:09] 188 { [ 0:09] 189 tmp___0 = __VERIFIER_nondet_int(); [ 0:09] 190 } [ 0:09] 191 if (tmp___0) { [ 0:09] 192 { [ 0:09] 193 changeMethaneLevel(); [ 0:09] 194 } [ 0:09] 195 } else { [ 0:09] 196 [ 0:09] 197 } [ 0:09] 198 { [ 0:09] 199 tmp___2 = __VERIFIER_nondet_int(); [ 0:09] 200 } [ 0:09] 201 if (tmp___2) { [ 0:09] 202 [ 0:09] 203 } else { [ 0:09] 204 { [ 0:09] 205 tmp___1 = __VERIFIER_nondet_int(); [ 0:09] 206 } [ 0:09] 207 if (tmp___1) { [ 0:09] 208 [ 0:09] 209 } else { [ 0:09] 210 [ 0:09] 211 } [ 0:09] 212 } [ 0:09] 213 { [ 0:09] 214 timeShift(); [ 0:09] 215 } [ 0:09] 216 } [ 0:09] 217 while_0_break: /* CIL Label */ ; [ 0:09] 218 } [ 0:09] 219 { [ 0:09] 220 cleanup(); [ 0:09] 221 } [ 0:09] 222 return; [ 0:09] 223 } [ 0:09] 224 } [ 0:09] 225 #pragma merger(0,"featureselect.i","") [ 0:09] 226 int select_one(void) ; [ 0:09] 227 void select_features(void) ; [ 0:09] 228 void select_helpers(void) ; [ 0:09] 229 int valid_product(void) ; [ 0:09] 230 int select_one(void) [ 0:09] 231 { int retValue_acc ; [ 0:09] 232 int choice = __VERIFIER_nondet_int(); [ 0:09] 233 [ 0:09] 234 { [ 0:09] 235 retValue_acc = choice; [ 0:09] 236 return (retValue_acc); [ 0:09] 237 return (retValue_acc); [ 0:09] 238 } [ 0:09] 239 } [ 0:09] 240 void select_features(void) [ 0:09] 241 { [ 0:09] 242 [ 0:09] 243 { [ 0:09] 244 return; [ 0:09] 245 } [ 0:09] 246 } [ 0:09] 247 void select_helpers(void) [ 0:09] 248 { [ 0:09] 249 [ 0:09] 250 { [ 0:09] 251 return; [ 0:09] 252 } [ 0:09] 253 } [ 0:09] 254 int valid_product(void) [ 0:09] 255 { int retValue_acc ; [ 0:09] 256 [ 0:09] 257 { [ 0:09] 258 retValue_acc = 1; [ 0:09] 259 return (retValue_acc); [ 0:09] 260 return (retValue_acc); [ 0:09] 261 } [ 0:09] 262 } [ 0:09] 263 #pragma merger(0,"Specification3_spec.i","") [ 0:09] 264 void __automaton_fail(void) ; [ 0:09] 265 int getWaterLevel(void) ; [ 0:09] 266 void __utac_acc__Specification3_spec__1(void) [ 0:09] 267 { int tmp ; [ 0:09] 268 int tmp___0 ; [ 0:09] 269 int tmp___1 ; [ 0:09] 270 [ 0:09] 271 { [ 0:09] 272 { [ 0:09] 273 tmp = isMethaneLevelCritical(); [ 0:09] 274 } [ 0:09] 275 if (tmp) { [ 0:09] 276 [ 0:09] 277 } else { [ 0:09] 278 { [ 0:09] 279 tmp___0 = getWaterLevel(); [ 0:09] 280 } [ 0:09] 281 if (tmp___0 == 2) { [ 0:09] 282 { [ 0:09] 283 tmp___1 = isPumpRunning(); [ 0:09] 284 } [ 0:09] 285 if (tmp___1) { [ 0:09] 286 [ 0:09] 287 } else { [ 0:09] 288 { [ 0:09] 289 __automaton_fail(); [ 0:09] 290 } [ 0:09] 291 } [ 0:09] 292 } else { [ 0:09] 293 [ 0:09] 294 } [ 0:09] 295 } [ 0:09] 296 return; [ 0:09] 297 } [ 0:09] 298 } [ 0:09] 299 #pragma merger(0,"wsllib_check.i","") [ 0:09] 300 void __automaton_fail(void) [ 0:09] 301 { [ 0:09] 302 [ 0:09] 303 { [ 0:09] 304 ERROR: __VERIFIER_error(); /* ERROR */ [ 0:09] 305 return; [ 0:09] 306 } [ 0:09] 307 } [ 0:09] 308 #pragma merger(0,"Test.i","") [ 0:09] 309 int cleanupTimeShifts = 4; [ 0:09] 310 void cleanup(void) [ 0:09] 311 { int i ; [ 0:09] 312 int __cil_tmp2 ; [ 0:09] 313 [ 0:09] 314 { [ 0:09] 315 { [ 0:09] 316 timeShift(); [ 0:09] 317 i = 0; [ 0:09] 318 } [ 0:09] 319 { [ 0:09] 320 while (1) { [ 0:09] 321 while_1_continue: /* CIL Label */ ; [ 0:09] 322 { [ 0:09] 323 __cil_tmp2 = cleanupTimeShifts - 1; [ 0:09] 324 if (i < __cil_tmp2) { [ 0:09] 325 [ 0:09] 326 } else { [ 0:09] 327 goto while_1_break; [ 0:09] 328 } [ 0:09] 329 } [ 0:09] 330 { [ 0:09] 331 timeShift(); [ 0:09] 332 i = i + 1; [ 0:09] 333 } [ 0:09] 334 } [ 0:09] 335 while_1_break: /* CIL Label */ ; [ 0:09] 336 } [ 0:09] 337 return; [ 0:09] 338 } [ 0:09] 339 } [ 0:09] 340 void Specification2(void) [ 0:09] 341 { [ 0:09] 342 [ 0:09] 343 { [ 0:09] 344 { [ 0:09] 345 timeShift(); [ 0:09] 346 printPump(); [ 0:09] 347 timeShift(); [ 0:09] 348 printPump(); [ 0:09] 349 timeShift(); [ 0:09] 350 printPump(); [ 0:09] 351 waterRise(); [ 0:09] 352 printPump(); [ 0:09] 353 timeShift(); [ 0:09] 354 printPump(); [ 0:09] 355 changeMethaneLevel(); [ 0:09] 356 printPump(); [ 0:09] 357 timeShift(); [ 0:09] 358 printPump(); [ 0:09] 359 cleanup(); [ 0:09] 360 } [ 0:09] 361 return; [ 0:09] 362 } [ 0:09] 363 } [ 0:09] 364 void setup(void) [ 0:09] 365 { [ 0:09] 366 [ 0:09] 367 { [ 0:09] 368 return; [ 0:09] 369 } [ 0:09] 370 } [ 0:09] 371 void runTest(void) [ 0:09] 372 { [ 0:09] 373 [ 0:09] 374 { [ 0:09] 375 { [ 0:09] 376 test(); [ 0:09] 377 } [ 0:09] 378 return; [ 0:09] 379 } [ 0:09] 380 } [ 0:09] 381 int main(void) [ 0:09] 382 { int retValue_acc ; [ 0:09] 383 int tmp ; [ 0:09] 384 [ 0:09] 385 { [ 0:09] 386 { [ 0:09] 387 select_helpers(); [ 0:09] 388 select_features(); [ 0:09] 389 tmp = valid_product(); [ 0:09] 390 } [ 0:09] 391 if (tmp) { [ 0:09] 392 { [ 0:09] 393 setup(); [ 0:09] 394 runTest(); [ 0:09] 395 } [ 0:09] 396 } else { [ 0:09] 397 [ 0:09] 398 } [ 0:09] 399 retValue_acc = 0; [ 0:09] 400 return (retValue_acc); [ 0:09] 401 return (retValue_acc); [ 0:09] 402 } [ 0:09] 403 } [ 0:09] 404 #pragma merger(0,"Environment.i","") [ 0:09] 405 int waterLevel = 1; [ 0:09] 406 int methaneLevelCritical = 0; [ 0:09] 407 void lowerWaterLevel(void) [ 0:09] 408 { [ 0:09] 409 [ 0:09] 410 { [ 0:09] 411 if (waterLevel > 0) { [ 0:09] 412 waterLevel = waterLevel - 1; [ 0:09] 413 } else { [ 0:09] 414 [ 0:09] 415 } [ 0:09] 416 return; [ 0:09] 417 } [ 0:09] 418 } [ 0:09] 419 void waterRise(void) [ 0:09] 420 { [ 0:09] 421 [ 0:09] 422 { [ 0:09] 423 if (waterLevel < 2) { [ 0:09] 424 waterLevel = waterLevel + 1; [ 0:09] 425 } else { [ 0:09] 426 [ 0:09] 427 } [ 0:09] 428 return; [ 0:09] 429 } [ 0:09] 430 } [ 0:09] 431 void changeMethaneLevel(void) [ 0:09] 432 { [ 0:09] 433 [ 0:09] 434 { [ 0:09] 435 if (methaneLevelCritical) { [ 0:09] 436 methaneLevelCritical = 0; [ 0:09] 437 } else { [ 0:09] 438 methaneLevelCritical = 1; [ 0:09] 439 } [ 0:09] 440 return; [ 0:09] 441 } [ 0:09] 442 } [ 0:09] 443 int isMethaneLevelCritical(void) [ 0:09] 444 { int retValue_acc ; [ 0:09] 445 [ 0:09] 446 { [ 0:09] 447 retValue_acc = methaneLevelCritical; [ 0:09] 448 return (retValue_acc); [ 0:09] 449 return (retValue_acc); [ 0:09] 450 } [ 0:09] 451 } [ 0:09] 452 void printEnvironment(void) [ 0:09] 453 { [ 0:09] 454 [ 0:09] 455 { [ 0:09] 456 { [ 0:09] 457 printf("Env(Water:%i", waterLevel); [ 0:09] 458 printf(",Meth:"); [ 0:09] 459 } [ 0:09] 460 if (methaneLevelCritical) { [ 0:09] 461 { [ 0:09] 462 printf("CRIT"); [ 0:09] 463 } [ 0:09] 464 } else { [ 0:09] 465 { [ 0:09] 466 printf("OK"); [ 0:09] 467 } [ 0:09] 468 } [ 0:09] 469 { [ 0:09] 470 printf(")"); [ 0:09] 471 } [ 0:09] 472 return; [ 0:09] 473 } [ 0:09] 474 } [ 0:09] 475 int getWaterLevel(void) [ 0:09] 476 { int retValue_acc ; [ 0:09] 477 [ 0:09] 478 { [ 0:09] 479 retValue_acc = waterLevel; [ 0:09] 480 return (retValue_acc); [ 0:09] 481 return (retValue_acc); [ 0:09] 482 } [ 0:09] 483 } [ 0:09] 484 #pragma merger(0,"libacc.i","") [ 0:09] 485 extern __attribute__((__nothrow__, __noreturn__)) void __assert_fail(char const *__assertion , [ 0:09] 486 char const *__file , [ 0:09] 487 unsigned int __line , [ 0:09] 488 char const *__function ) ; [ 0:09] 489 extern __attribute__((__nothrow__)) void *malloc(size_t __size ) __attribute__((__malloc__)) ; [ 0:09] 490 extern __attribute__((__nothrow__)) void free(void *__ptr ) ; [ 0:09] 491 void __utac__exception__cf_handler_set(void *exception , int (*cflow_func)(int , [ 0:09] 492 int ) , [ 0:09] 493 int val ) [ 0:09] 494 { struct __UTAC__EXCEPTION *excep ; [ 0:09] 495 struct __UTAC__CFLOW_FUNC *cf ; [ 0:09] 496 void *tmp ; [ 0:09] 497 unsigned long __cil_tmp7 ; [ 0:09] 498 unsigned long __cil_tmp8 ; [ 0:09] 499 unsigned long __cil_tmp9 ; [ 0:09] 500 unsigned long __cil_tmp10 ; [ 0:09] 501 unsigned long __cil_tmp11 ; [ 0:09] 502 unsigned long __cil_tmp12 ; [ 0:09] 503 unsigned long __cil_tmp13 ; [ 0:09] 504 unsigned long __cil_tmp14 ; [ 0:09] 505 int (**mem_15)(int , int ) ; [ 0:09] 506 int *mem_16 ; [ 0:09] 507 struct __UTAC__CFLOW_FUNC **mem_17 ; [ 0:09] 508 struct __UTAC__CFLOW_FUNC **mem_18 ; [ 0:09] 509 struct __UTAC__CFLOW_FUNC **mem_19 ; [ 0:09] 510 [ 0:09] 511 { [ 0:09] 512 { [ 0:09] 513 excep = (struct __UTAC__EXCEPTION *)exception; [ 0:09] 514 tmp = malloc(24UL); [ 0:09] 515 cf = (struct __UTAC__CFLOW_FUNC *)tmp; [ 0:09] 516 mem_15 = (int (**)(int , int ))cf; [ 0:09] 517 *mem_15 = cflow_func; [ 0:09] 518 __cil_tmp7 = (unsigned long )cf; [ 0:09] 519 __cil_tmp8 = __cil_tmp7 + 8; [ 0:09] 520 mem_16 = (int *)__cil_tmp8; [ 0:09] 521 *mem_16 = val; [ 0:09] 522 __cil_tmp9 = (unsigned long )cf; [ 0:09] 523 __cil_tmp10 = __cil_tmp9 + 16; [ 0:09] 524 __cil_tmp11 = (unsigned long )excep; [ 0:09] 525 __cil_tmp12 = __cil_tmp11 + 24; [ 0:09] 526 mem_17 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp10; [ 0:09] 527 mem_18 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp12; [ 0:09] 528 *mem_17 = *mem_18; [ 0:09] 529 __cil_tmp13 = (unsigned long )excep; [ 0:09] 530 __cil_tmp14 = __cil_tmp13 + 24; [ 0:09] 531 mem_19 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp14; [ 0:09] 532 *mem_19 = cf; [ 0:09] 533 } [ 0:09] 534 return; [ 0:09] 535 } [ 0:09] 536 } [ 0:09] 537 void __utac__exception__cf_handler_free(void *exception ) [ 0:09] 538 { struct __UTAC__EXCEPTION *excep ; [ 0:09] 539 struct __UTAC__CFLOW_FUNC *cf ; [ 0:09] 540 struct __UTAC__CFLOW_FUNC *tmp ; [ 0:09] 541 unsigned long __cil_tmp5 ; [ 0:09] 542 unsigned long __cil_tmp6 ; [ 0:09] 543 struct __UTAC__CFLOW_FUNC *__cil_tmp7 ; [ 0:09] 544 unsigned long __cil_tmp8 ; [ 0:09] 545 unsigned long __cil_tmp9 ; [ 0:09] 546 unsigned long __cil_tmp10 ; [ 0:09] 547 unsigned long __cil_tmp11 ; [ 0:09] 548 void *__cil_tmp12 ; [ 0:09] 549 unsigned long __cil_tmp13 ; [ 0:09] 550 unsigned long __cil_tmp14 ; [ 0:09] 551 struct __UTAC__CFLOW_FUNC **mem_15 ; [ 0:09] 552 struct __UTAC__CFLOW_FUNC **mem_16 ; [ 0:09] 553 struct __UTAC__CFLOW_FUNC **mem_17 ; [ 0:09] 554 [ 0:09] 555 { [ 0:09] 556 excep = (struct __UTAC__EXCEPTION *)exception; [ 0:09] 557 __cil_tmp5 = (unsigned long )excep; [ 0:09] 558 __cil_tmp6 = __cil_tmp5 + 24; [ 0:09] 559 mem_15 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp6; [ 0:09] 560 cf = *mem_15; [ 0:09] 561 { [ 0:09] 562 while (1) { [ 0:09] 563 while_2_continue: /* CIL Label */ ; [ 0:09] 564 { [ 0:09] 565 __cil_tmp7 = (struct __UTAC__CFLOW_FUNC *)0; [ 0:09] 566 __cil_tmp8 = (unsigned long )__cil_tmp7; [ 0:09] 567 __cil_tmp9 = (unsigned long )cf; [ 0:09] 568 if (__cil_tmp9 != __cil_tmp8) { [ 0:09] 569 [ 0:09] 570 } else { [ 0:09] 571 goto while_2_break; [ 0:09] 572 } [ 0:09] 573 } [ 0:09] 574 { [ 0:09] 575 tmp = cf; [ 0:09] 576 __cil_tmp10 = (unsigned long )cf; [ 0:09] 577 __cil_tmp11 = __cil_tmp10 + 16; [ 0:09] 578 mem_16 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp11; [ 0:09] 579 cf = *mem_16; [ 0:09] 580 __cil_tmp12 = (void *)tmp; [ 0:09] 581 free(__cil_tmp12); [ 0:09] 582 } [ 0:09] 583 } [ 0:09] 584 while_2_break: /* CIL Label */ ; [ 0:09] 585 } [ 0:09] 586 __cil_tmp13 = (unsigned long )excep; [ 0:09] 587 __cil_tmp14 = __cil_tmp13 + 24; [ 0:09] 588 mem_17 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp14; [ 0:09] 589 *mem_17 = (struct __UTAC__CFLOW_FUNC *)0; [ 0:09] 590 return; [ 0:09] 591 } [ 0:09] 592 } [ 0:09] 593 void __utac__exception__cf_handler_reset(void *exception ) [ 0:09] 594 { struct __UTAC__EXCEPTION *excep ; [ 0:09] 595 struct __UTAC__CFLOW_FUNC *cf ; [ 0:09] 596 unsigned long __cil_tmp5 ; [ 0:09] 597 unsigned long __cil_tmp6 ; [ 0:09] 598 struct __UTAC__CFLOW_FUNC *__cil_tmp7 ; [ 0:09] 599 unsigned long __cil_tmp8 ; [ 0:09] 600 unsigned long __cil_tmp9 ; [ 0:09] 601 int (*__cil_tmp10)(int , int ) ; [ 0:09] 602 unsigned long __cil_tmp11 ; [ 0:09] 603 unsigned long __cil_tmp12 ; [ 0:09] 604 int __cil_tmp13 ; [ 0:09] 605 unsigned long __cil_tmp14 ; [ 0:09] 606 unsigned long __cil_tmp15 ; [ 0:09] 607 struct __UTAC__CFLOW_FUNC **mem_16 ; [ 0:09] 608 int (**mem_17)(int , int ) ; [ 0:09] 609 int *mem_18 ; [ 0:09] 610 struct __UTAC__CFLOW_FUNC **mem_19 ; [ 0:09] 611 [ 0:09] 612 { [ 0:09] 613 excep = (struct __UTAC__EXCEPTION *)exception; [ 0:09] 614 __cil_tmp5 = (unsigned long )excep; [ 0:09] 615 __cil_tmp6 = __cil_tmp5 + 24; [ 0:09] 616 mem_16 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp6; [ 0:09] 617 cf = *mem_16; [ 0:09] 618 { [ 0:09] 619 while (1) { [ 0:09] 620 while_3_continue: /* CIL Label */ ; [ 0:09] 621 { [ 0:09] 622 __cil_tmp7 = (struct __UTAC__CFLOW_FUNC *)0; [ 0:09] 623 __cil_tmp8 = (unsigned long )__cil_tmp7; [ 0:09] 624 __cil_tmp9 = (unsigned long )cf; [ 0:09] 625 if (__cil_tmp9 != __cil_tmp8) { [ 0:09] 626 [ 0:09] 627 } else { [ 0:09] 628 goto while_3_break; [ 0:09] 629 } [ 0:09] 630 } [ 0:09] 631 { [ 0:09] 632 mem_17 = (int (**)(int , int ))cf; [ 0:09] 633 __cil_tmp10 = *mem_17; [ 0:09] 634 __cil_tmp11 = (unsigned long )cf; [ 0:09] 635 __cil_tmp12 = __cil_tmp11 + 8; [ 0:09] 636 mem_18 = (int *)__cil_tmp12; [ 0:09] 637 __cil_tmp13 = *mem_18; [ 0:09] 638 (*__cil_tmp10)(4, __cil_tmp13); [ 0:09] 639 __cil_tmp14 = (unsigned long )cf; [ 0:09] 640 __cil_tmp15 = __cil_tmp14 + 16; [ 0:09] 641 mem_19 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp15; [ 0:09] 642 cf = *mem_19; [ 0:09] 643 } [ 0:09] 644 } [ 0:09] 645 while_3_break: /* CIL Label */ ; [ 0:09] 646 } [ 0:09] 647 { [ 0:09] 648 __utac__exception__cf_handler_free(exception); [ 0:09] 649 } [ 0:09] 650 return; [ 0:09] 651 } [ 0:09] 652 } [ 0:09] 653 void *__utac__error_stack_mgt(void *env , int mode , int count ) ; [ 0:09] 654 static struct __ACC__ERR *head = (struct __ACC__ERR *)0; [ 0:09] 655 void *__utac__error_stack_mgt(void *env , int mode , int count ) [ 0:09] 656 { void *retValue_acc ; [ 0:09] 657 struct __ACC__ERR *new ; [ 0:09] 658 void *tmp ; [ 0:09] 659 struct __ACC__ERR *temp ; [ 0:09] 660 struct __ACC__ERR *next ; [ 0:09] 661 void *excep ; [ 0:09] 662 unsigned long __cil_tmp10 ; [ 0:09] 663 unsigned long __cil_tmp11 ; [ 0:09] 664 unsigned long __cil_tmp12 ; [ 0:09] 665 unsigned long __cil_tmp13 ; [ 0:09] 666 void *__cil_tmp14 ; [ 0:09] 667 unsigned long __cil_tmp15 ; [ 0:09] 668 unsigned long __cil_tmp16 ; [ 0:09] 669 void *__cil_tmp17 ; [ 0:09] 670 void **mem_18 ; [ 0:09] 671 struct __ACC__ERR **mem_19 ; [ 0:09] 672 struct __ACC__ERR **mem_20 ; [ 0:09] 673 void **mem_21 ; [ 0:09] 674 struct __ACC__ERR **mem_22 ; [ 0:09] 675 void **mem_23 ; [ 0:09] 676 void **mem_24 ; [ 0:09] 677 [ 0:09] 678 { [ 0:09] 679 if (count == 0) { [ 0:09] 680 return (retValue_acc); [ 0:09] 681 } else { [ 0:09] 682 [ 0:09] 683 } [ 0:09] 684 if (mode == 0) { [ 0:09] 685 { [ 0:09] 686 tmp = malloc(16UL); [ 0:09] 687 new = (struct __ACC__ERR *)tmp; [ 0:09] 688 mem_18 = (void **)new; [ 0:09] 689 *mem_18 = env; [ 0:09] 690 __cil_tmp10 = (unsigned long )new; [ 0:09] 691 __cil_tmp11 = __cil_tmp10 + 8; [ 0:09] 692 mem_19 = (struct __ACC__ERR **)__cil_tmp11; [ 0:09] 693 *mem_19 = head; [ 0:09] 694 head = new; [ 0:09] 695 retValue_acc = (void *)new; [ 0:09] 696 } [ 0:09] 697 return (retValue_acc); [ 0:09] 698 } else { [ 0:09] 699 [ 0:09] 700 } [ 0:09] 701 if (mode == 1) { [ 0:09] 702 temp = head; [ 0:09] 703 { [ 0:09] 704 while (1) { [ 0:09] 705 while_4_continue: /* CIL Label */ ; [ 0:09] 706 if (count > 1) { [ 0:09] 707 [ 0:09] 708 } else { [ 0:09] 709 goto while_4_break; [ 0:09] 710 } [ 0:09] 711 { [ 0:09] 712 __cil_tmp12 = (unsigned long )temp; [ 0:09] 713 __cil_tmp13 = __cil_tmp12 + 8; [ 0:09] 714 mem_20 = (struct __ACC__ERR **)__cil_tmp13; [ 0:09] 715 next = *mem_20; [ 0:09] 716 mem_21 = (void **)temp; [ 0:09] 717 excep = *mem_21; [ 0:09] 718 __cil_tmp14 = (void *)temp; [ 0:09] 719 free(__cil_tmp14); [ 0:09] 720 __utac__exception__cf_handler_reset(excep); [ 0:09] 721 temp = next; [ 0:09] 722 count = count - 1; [ 0:09] 723 } [ 0:09] 724 } [ 0:09] 725 while_4_break: /* CIL Label */ ; [ 0:09] 726 } [ 0:09] 727 { [ 0:09] 728 __cil_tmp15 = (unsigned long )temp; [ 0:09] 729 __cil_tmp16 = __cil_tmp15 + 8; [ 0:09] 730 mem_22 = (struct __ACC__ERR **)__cil_tmp16; [ 0:09] 731 head = *mem_22; [ 0:09] 732 mem_23 = (void **)temp; [ 0:09] 733 excep = *mem_23; [ 0:09] 734 __cil_tmp17 = (void *)temp; [ 0:09] 735 free(__cil_tmp17); [ 0:09] 736 __utac__exception__cf_handler_reset(excep); [ 0:09] 737 retValue_acc = excep; [ 0:09] 738 } [ 0:09] 739 return (retValue_acc); [ 0:09] 740 } else { [ 0:09] 741 [ 0:09] 742 } [ 0:09] 743 if (mode == 2) { [ 0:09] 744 if (head) { [ 0:09] 745 mem_24 = (void **)head; [ 0:09] 746 retValue_acc = *mem_24; [ 0:09] 747 return (retValue_acc); [ 0:09] 748 } else { [ 0:09] 749 retValue_acc = (void *)0; [ 0:09] 750 return (retValue_acc); [ 0:09] 751 } [ 0:09] 752 } else { [ 0:09] 753 [ 0:09] 754 } [ 0:09] 755 return (retValue_acc); [ 0:09] 756 } [ 0:09] 757 } [ 0:09] 758 void *__utac__get_this_arg(int i , struct JoinPoint *this ) [ 0:09] 759 { void *retValue_acc ; [ 0:09] 760 unsigned long __cil_tmp4 ; [ 0:09] 761 unsigned long __cil_tmp5 ; [ 0:09] 762 int __cil_tmp6 ; [ 0:09] 763 int __cil_tmp7 ; [ 0:09] 764 unsigned long __cil_tmp8 ; [ 0:09] 765 unsigned long __cil_tmp9 ; [ 0:09] 766 void **__cil_tmp10 ; [ 0:09] 767 void **__cil_tmp11 ; [ 0:09] 768 int *mem_12 ; [ 0:09] 769 void ***mem_13 ; [ 0:09] 770 [ 0:09] 771 { [ 0:09] 772 if (i > 0) { [ 0:09] 773 { [ 0:09] 774 __cil_tmp4 = (unsigned long )this; [ 0:09] 775 __cil_tmp5 = __cil_tmp4 + 16; [ 0:09] 776 mem_12 = (int *)__cil_tmp5; [ 0:09] 777 __cil_tmp6 = *mem_12; [ 0:09] 778 if (i <= __cil_tmp6) { [ 0:09] 779 [ 0:09] 780 } else { [ 0:09] 781 { [ 0:09] 782 __assert_fail("i > 0 && i <= this->argsCount", "libacc.c", [ 0:09] 783 123U, "__utac__get_this_arg"); [ 0:09] 784 } [ 0:09] 785 } [ 0:09] 786 } [ 0:09] 787 } else { [ 0:09] 788 { [ 0:09] 789 __assert_fail("i > 0 && i <= this->argsCount", "libacc.c", [ 0:09] 790 123U, "__utac__get_this_arg"); [ 0:09] 791 } [ 0:09] 792 } [ 0:09] 793 __cil_tmp7 = i - 1; [ 0:09] 794 __cil_tmp8 = (unsigned long )this; [ 0:09] 795 __cil_tmp9 = __cil_tmp8 + 8; [ 0:09] 796 mem_13 = (void ***)__cil_tmp9; [ 0:09] 797 __cil_tmp10 = *mem_13; [ 0:09] 798 __cil_tmp11 = __cil_tmp10 + __cil_tmp7; [ 0:09] 799 retValue_acc = *__cil_tmp11; [ 0:09] 800 return (retValue_acc); [ 0:09] 801 return (retValue_acc); [ 0:09] 802 } [ 0:09] 803 } [ 0:09] 804 char const *__utac__get_this_argtype(int i , struct JoinPoint *this ) [ 0:09] 805 { char const *retValue_acc ; [ 0:09] 806 unsigned long __cil_tmp4 ; [ 0:09] 807 unsigned long __cil_tmp5 ; [ 0:09] 808 int __cil_tmp6 ; [ 0:09] 809 int __cil_tmp7 ; [ 0:09] 810 unsigned long __cil_tmp8 ; [ 0:09] 811 unsigned long __cil_tmp9 ; [ 0:09] 812 char const **__cil_tmp10 ; [ 0:09] 813 char const **__cil_tmp11 ; [ 0:09] 814 int *mem_12 ; [ 0:09] 815 char const ***mem_13 ; [ 0:09] 816 [ 0:09] 817 { [ 0:09] 818 if (i > 0) { [ 0:09] 819 { [ 0:09] 820 __cil_tmp4 = (unsigned long )this; [ 0:09] 821 __cil_tmp5 = __cil_tmp4 + 16; [ 0:09] 822 mem_12 = (int *)__cil_tmp5; [ 0:09] 823 __cil_tmp6 = *mem_12; [ 0:09] 824 if (i <= __cil_tmp6) { [ 0:09] 825 [ 0:09] 826 } else { [ 0:09] 827 { [ 0:09] 828 __assert_fail("i > 0 && i <= this->argsCount", "libacc.c", [ 0:09] 829 131U, "__utac__get_this_argtype"); [ 0:09] 830 } [ 0:09] 831 } [ 0:09] 832 } [ 0:09] 833 } else { [ 0:09] 834 { [ 0:09] 835 __assert_fail("i > 0 && i <= this->argsCount", "libacc.c", [ 0:09] 836 131U, "__utac__get_this_argtype"); [ 0:09] 837 } [ 0:09] 838 } [ 0:09] 839 __cil_tmp7 = i - 1; [ 0:09] 840 __cil_tmp8 = (unsigned long )this; [ 0:09] 841 __cil_tmp9 = __cil_tmp8 + 24; [ 0:09] 842 mem_13 = (char const ***)__cil_tmp9; [ 0:09] 843 __cil_tmp10 = *mem_13; [ 0:09] 844 __cil_tmp11 = __cil_tmp10 + __cil_tmp7; [ 0:09] 845 retValue_acc = *__cil_tmp11; [ 0:09] 846 return (retValue_acc); [ 0:09] 847 return (retValue_acc); [ 0:09] 848 } [ 0:09] 849 } [ 0:09] # expected error to be found at /home/xrockai/src/divine/nightly/test/svcomp/product-lines/minepump_spec3_product01_false.cil.c:304, but it was not