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