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