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