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