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