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