[ 0:01] compiling /home/xrockai/src/divine/nightly/test/svcomp/product-lines/minepump_spec3_product32_false.cil.c [ 0:01] /home/xrockai/src/divine/nightly/test/svcomp/product-lines/minepump_spec3_product32_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_product32_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:01] setting up pass: fuse-ctors, options = [ 0:01] KLEE: output directory is "/var/obj/divine-nightly/semidbg/test/__test_work_dir.18/_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:03] [ 0:03] 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: 35839 [ 0:06] Stack: [ 0:06] #000035839 in __dios_start (l=0, argc=1, argv=93954451444232, envp=93954451513352) at /dios/libc/sys/start.cpp:87 [ 0:06] #100011809 in _ZN6__dios10sched_nullINS_5ClockINS_10NondetKleeINS_4BaseEEEEEE13run_schedulerINS_7ContextEEEvv () at /dios/sys/sched_null.hpp:163 [ 0:06] #200044172 in klee_boot (argc=2, argv=93954424699648) 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,"scenario.i","") [ 0:06] 408 void waterRise(void) ; [ 0:06] 409 void changeMethaneLevel(void) ; [ 0:06] 410 void startSystem(void) ; [ 0:06] 411 void stopSystem(void) ; [ 0:06] 412 void timeShift(void) ; [ 0:06] 413 void cleanup(void) ; [ 0:06] 414 void test(void) [ 0:06] 415 { int splverifierCounter ; [ 0:06] 416 int tmp ; [ 0:06] 417 int tmp___0 ; [ 0:06] 418 int tmp___1 ; [ 0:06] 419 int tmp___2 ; [ 0:06] 420 [ 0:06] 421 { [ 0:06] 422 splverifierCounter = 0; [ 0:06] 423 { [ 0:06] 424 while (1) { [ 0:06] 425 while_3_continue: /* CIL Label */ ; [ 0:06] 426 if (splverifierCounter < 4) { [ 0:06] 427 [ 0:06] 428 } else { [ 0:06] 429 goto while_3_break; [ 0:06] 430 } [ 0:06] 431 { [ 0:06] 432 tmp = __VERIFIER_nondet_int(); [ 0:06] 433 } [ 0:06] 434 if (tmp) { [ 0:06] 435 { [ 0:06] 436 waterRise(); [ 0:06] 437 } [ 0:06] 438 } else { [ 0:06] 439 [ 0:06] 440 } [ 0:06] 441 { [ 0:06] 442 tmp___0 = __VERIFIER_nondet_int(); [ 0:06] 443 } [ 0:06] 444 if (tmp___0) { [ 0:06] 445 { [ 0:06] 446 changeMethaneLevel(); [ 0:06] 447 } [ 0:06] 448 } else { [ 0:06] 449 [ 0:06] 450 } [ 0:06] 451 { [ 0:06] 452 tmp___2 = __VERIFIER_nondet_int(); [ 0:06] 453 } [ 0:06] 454 if (tmp___2) { [ 0:06] 455 { [ 0:06] 456 startSystem(); [ 0:06] 457 } [ 0:06] 458 } else { [ 0:06] 459 { [ 0:06] 460 tmp___1 = __VERIFIER_nondet_int(); [ 0:06] 461 } [ 0:06] 462 if (tmp___1) { [ 0:06] 463 { [ 0:06] 464 stopSystem(); [ 0:06] 465 } [ 0:06] 466 } else { [ 0:06] 467 [ 0:06] 468 } [ 0:06] 469 } [ 0:06] 470 { [ 0:06] 471 timeShift(); [ 0:06] 472 } [ 0:06] 473 } [ 0:06] 474 while_3_break: /* CIL Label */ ; [ 0:06] 475 } [ 0:06] 476 { [ 0:06] 477 cleanup(); [ 0:06] 478 } [ 0:06] 479 return; [ 0:06] 480 } [ 0:06] 481 } [ 0:06] 482 #pragma merger(0,"MinePump.i","") [ 0:06] 483 void lowerWaterLevel(void) ; [ 0:06] 484 int isMethaneLevelCritical(void) ; [ 0:06] 485 void printEnvironment(void) ; [ 0:06] 486 int isLowWaterSensorDry(void) ; [ 0:06] 487 void activatePump(void) ; [ 0:06] 488 void deactivatePump(void) ; [ 0:06] 489 int isPumpRunning(void) ; [ 0:06] 490 void printPump(void) ; [ 0:06] 491 int pumpRunning = 0; [ 0:06] 492 int systemActive = 1; [ 0:06] 493 void __utac_acc__Specification3_spec__1(void) ; [ 0:06] 494 void processEnvironment(void) ; [ 0:06] 495 void timeShift(void) [ 0:06] 496 { [ 0:06] 497 [ 0:06] 498 { [ 0:06] 499 if (pumpRunning) { [ 0:06] 500 { [ 0:06] 501 lowerWaterLevel(); [ 0:06] 502 } [ 0:06] 503 } else { [ 0:06] 504 [ 0:06] 505 } [ 0:06] 506 if (systemActive) { [ 0:06] 507 { [ 0:06] 508 processEnvironment(); [ 0:06] 509 } [ 0:06] 510 } else { [ 0:06] 511 [ 0:06] 512 } [ 0:06] 513 { [ 0:06] 514 __utac_acc__Specification3_spec__1(); [ 0:06] 515 } [ 0:06] 516 return; [ 0:06] 517 } [ 0:06] 518 } [ 0:06] 519 void processEnvironment__wrappee__base(void) [ 0:06] 520 { [ 0:06] 521 [ 0:06] 522 { [ 0:06] 523 return; [ 0:06] 524 } [ 0:06] 525 } [ 0:06] 526 int isLowWaterLevel(void) ; [ 0:06] 527 void processEnvironment__wrappee__methaneQuery(void) [ 0:06] 528 { int tmp ; [ 0:06] 529 [ 0:06] 530 { [ 0:06] 531 if (pumpRunning) { [ 0:06] 532 { [ 0:06] 533 tmp = isLowWaterLevel(); [ 0:06] 534 } [ 0:06] 535 if (tmp) { [ 0:06] 536 { [ 0:06] 537 deactivatePump(); [ 0:06] 538 } [ 0:06] 539 } else { [ 0:06] 540 { [ 0:06] 541 processEnvironment__wrappee__base(); [ 0:06] 542 } [ 0:06] 543 } [ 0:06] 544 } else { [ 0:06] 545 { [ 0:06] 546 processEnvironment__wrappee__base(); [ 0:06] 547 } [ 0:06] 548 } [ 0:06] 549 return; [ 0:06] 550 } [ 0:06] 551 } [ 0:06] 552 int isMethaneAlarm(void) ; [ 0:06] 553 void processEnvironment(void) [ 0:06] 554 { int tmp ; [ 0:06] 555 [ 0:06] 556 { [ 0:06] 557 if (pumpRunning) { [ 0:06] 558 { [ 0:06] 559 tmp = isMethaneAlarm(); [ 0:06] 560 } [ 0:06] 561 if (tmp) { [ 0:06] 562 { [ 0:06] 563 deactivatePump(); [ 0:06] 564 } [ 0:06] 565 } else { [ 0:06] 566 { [ 0:06] 567 processEnvironment__wrappee__methaneQuery(); [ 0:06] 568 } [ 0:06] 569 } [ 0:06] 570 } else { [ 0:06] 571 { [ 0:06] 572 processEnvironment__wrappee__methaneQuery(); [ 0:06] 573 } [ 0:06] 574 } [ 0:06] 575 return; [ 0:06] 576 } [ 0:06] 577 } [ 0:06] 578 void activatePump__wrappee__lowWaterSensor(void) [ 0:06] 579 { [ 0:06] 580 [ 0:06] 581 { [ 0:06] 582 pumpRunning = 1; [ 0:06] 583 return; [ 0:06] 584 } [ 0:06] 585 } [ 0:06] 586 void activatePump(void) [ 0:06] 587 { int tmp ; [ 0:06] 588 [ 0:06] 589 { [ 0:06] 590 { [ 0:06] 591 tmp = isMethaneAlarm(); [ 0:06] 592 } [ 0:06] 593 if (tmp) { [ 0:06] 594 [ 0:06] 595 } else { [ 0:06] 596 { [ 0:06] 597 activatePump__wrappee__lowWaterSensor(); [ 0:06] 598 } [ 0:06] 599 } [ 0:06] 600 return; [ 0:06] 601 } [ 0:06] 602 } [ 0:06] 603 void deactivatePump(void) [ 0:06] 604 { [ 0:06] 605 [ 0:06] 606 { [ 0:06] 607 pumpRunning = 0; [ 0:06] 608 return; [ 0:06] 609 } [ 0:06] 610 } [ 0:06] 611 int isMethaneAlarm(void) [ 0:06] 612 { int retValue_acc ; [ 0:06] 613 [ 0:06] 614 { [ 0:06] 615 { [ 0:06] 616 retValue_acc = isMethaneLevelCritical(); [ 0:06] 617 } [ 0:06] 618 return (retValue_acc); [ 0:06] 619 return (retValue_acc); [ 0:06] 620 } [ 0:06] 621 } [ 0:06] 622 int isPumpRunning(void) [ 0:06] 623 { int retValue_acc ; [ 0:06] 624 [ 0:06] 625 { [ 0:06] 626 retValue_acc = pumpRunning; [ 0:06] 627 return (retValue_acc); [ 0:06] 628 return (retValue_acc); [ 0:06] 629 } [ 0:06] 630 } [ 0:06] 631 void printPump(void) [ 0:06] 632 { [ 0:06] 633 [ 0:06] 634 { [ 0:06] 635 { [ 0:06] 636 printf("Pump(System:"); [ 0:06] 637 } [ 0:06] 638 if (systemActive) { [ 0:06] 639 { [ 0:06] 640 printf("On"); [ 0:06] 641 } [ 0:06] 642 } else { [ 0:06] 643 { [ 0:06] 644 printf("Off"); [ 0:06] 645 } [ 0:06] 646 } [ 0:06] 647 { [ 0:06] 648 printf(",Pump:"); [ 0:06] 649 } [ 0:06] 650 if (pumpRunning) { [ 0:06] 651 { [ 0:06] 652 printf("On"); [ 0:06] 653 } [ 0:06] 654 } else { [ 0:06] 655 { [ 0:06] 656 printf("Off"); [ 0:06] 657 } [ 0:06] 658 } [ 0:06] 659 { [ 0:06] 660 printf(") "); [ 0:06] 661 printEnvironment(); [ 0:06] 662 printf("\n"); [ 0:06] 663 } [ 0:06] 664 return; [ 0:06] 665 } [ 0:06] 666 } [ 0:06] 667 int isLowWaterLevel(void) [ 0:06] 668 { int retValue_acc ; [ 0:06] 669 int tmp ; [ 0:06] 670 int tmp___0 ; [ 0:06] 671 [ 0:06] 672 { [ 0:06] 673 { [ 0:06] 674 tmp = isLowWaterSensorDry(); [ 0:06] 675 } [ 0:06] 676 if (tmp) { [ 0:06] 677 tmp___0 = 0; [ 0:06] 678 } else { [ 0:06] 679 tmp___0 = 1; [ 0:06] 680 } [ 0:06] 681 retValue_acc = tmp___0; [ 0:06] 682 return (retValue_acc); [ 0:06] 683 return (retValue_acc); [ 0:06] 684 } [ 0:06] 685 } [ 0:06] 686 void stopSystem(void) [ 0:06] 687 { [ 0:06] 688 [ 0:06] 689 { [ 0:06] 690 if (pumpRunning) { [ 0:06] 691 { [ 0:06] 692 deactivatePump(); [ 0:06] 693 } [ 0:06] 694 } else { [ 0:06] 695 [ 0:06] 696 } [ 0:06] 697 systemActive = 0; [ 0:06] 698 return; [ 0:06] 699 } [ 0:06] 700 } [ 0:06] 701 void startSystem(void) [ 0:06] 702 { [ 0:06] 703 [ 0:06] 704 { [ 0:06] 705 systemActive = 1; [ 0:06] 706 return; [ 0:06] 707 } [ 0:06] 708 } [ 0:06] 709 #pragma merger(0,"wsllib_check.i","") [ 0:06] 710 void __automaton_fail(void) [ 0:06] 711 { [ 0:06] 712 [ 0:06] 713 { [ 0:06] 714 ERROR: __VERIFIER_error(); /* ERROR */ [ 0:06] 715 return; [ 0:06] 716 } [ 0:06] 717 } [ 0:06] 718 #pragma merger(0,"Test.i","") [ 0:06] 719 int cleanupTimeShifts = 4; [ 0:06] 720 void cleanup(void) [ 0:06] 721 { int i ; [ 0:06] 722 int __cil_tmp2 ; [ 0:06] 723 [ 0:06] 724 { [ 0:06] 725 { [ 0:06] 726 timeShift(); [ 0:06] 727 i = 0; [ 0:06] 728 } [ 0:06] 729 { [ 0:06] 730 while (1) { [ 0:06] 731 while_4_continue: /* CIL Label */ ; [ 0:06] 732 { [ 0:06] 733 __cil_tmp2 = cleanupTimeShifts - 1; [ 0:06] 734 if (i < __cil_tmp2) { [ 0:06] 735 [ 0:06] 736 } else { [ 0:06] 737 goto while_4_break; [ 0:06] 738 } [ 0:06] 739 } [ 0:06] 740 { [ 0:06] 741 timeShift(); [ 0:06] 742 i = i + 1; [ 0:06] 743 } [ 0:06] 744 } [ 0:06] 745 while_4_break: /* CIL Label */ ; [ 0:06] 746 } [ 0:06] 747 return; [ 0:06] 748 } [ 0:06] 749 } [ 0:06] 750 void Specification2(void) [ 0:06] 751 { [ 0:06] 752 [ 0:06] 753 { [ 0:06] 754 { [ 0:06] 755 timeShift(); [ 0:06] 756 printPump(); [ 0:06] 757 timeShift(); [ 0:06] 758 printPump(); [ 0:06] 759 timeShift(); [ 0:06] 760 printPump(); [ 0:06] 761 waterRise(); [ 0:06] 762 printPump(); [ 0:06] 763 timeShift(); [ 0:06] 764 printPump(); [ 0:06] 765 changeMethaneLevel(); [ 0:06] 766 printPump(); [ 0:06] 767 timeShift(); [ 0:06] 768 printPump(); [ 0:06] 769 cleanup(); [ 0:06] 770 } [ 0:06] 771 return; [ 0:06] 772 } [ 0:06] 773 } [ 0:06] 774 void setup(void) [ 0:06] 775 { [ 0:06] 776 [ 0:06] 777 { [ 0:06] 778 return; [ 0:06] 779 } [ 0:06] 780 } [ 0:06] 781 void runTest(void) [ 0:06] 782 { [ 0:06] 783 [ 0:06] 784 { [ 0:06] 785 { [ 0:06] 786 test(); [ 0:06] 787 } [ 0:06] 788 return; [ 0:06] 789 } [ 0:06] 790 } [ 0:06] 791 void select_helpers(void) ; [ 0:06] 792 void select_features(void) ; [ 0:06] 793 int valid_product(void) ; [ 0:06] 794 int main(void) [ 0:06] 795 { int retValue_acc ; [ 0:06] 796 int tmp ; [ 0:06] 797 [ 0:06] 798 { [ 0:06] 799 { [ 0:06] 800 select_helpers(); [ 0:06] 801 select_features(); [ 0:06] 802 tmp = valid_product(); [ 0:06] 803 } [ 0:06] 804 if (tmp) { [ 0:06] 805 { [ 0:06] 806 setup(); [ 0:06] 807 runTest(); [ 0:06] 808 } [ 0:06] 809 } else { [ 0:06] 810 [ 0:06] 811 } [ 0:06] 812 retValue_acc = 0; [ 0:06] 813 return (retValue_acc); [ 0:06] 814 return (retValue_acc); [ 0:06] 815 } [ 0:06] 816 } [ 0:06] 817 #pragma merger(0,"Specification3_spec.i","") [ 0:06] 818 int getWaterLevel(void) ; [ 0:06] 819 void __utac_acc__Specification3_spec__1(void) [ 0:06] 820 { int tmp ; [ 0:06] 821 int tmp___0 ; [ 0:06] 822 int tmp___1 ; [ 0:06] 823 [ 0:06] 824 { [ 0:06] 825 { [ 0:06] 826 tmp = isMethaneLevelCritical(); [ 0:06] 827 } [ 0:06] 828 if (tmp) { [ 0:06] 829 [ 0:06] 830 } else { [ 0:06] 831 { [ 0:06] 832 tmp___0 = getWaterLevel(); [ 0:06] 833 } [ 0:06] 834 if (tmp___0 == 2) { [ 0:06] 835 { [ 0:06] 836 tmp___1 = isPumpRunning(); [ 0:06] 837 } [ 0:06] 838 if (tmp___1) { [ 0:06] 839 [ 0:06] 840 } else { [ 0:06] 841 { [ 0:06] 842 __automaton_fail(); [ 0:06] 843 } [ 0:06] 844 } [ 0:06] 845 } else { [ 0:06] 846 [ 0:06] 847 } [ 0:06] 848 } [ 0:06] 849 return; [ 0:06] 850 } [ 0:06] 851 } [ 0:06] 852 #pragma merger(0,"featureselect.i","") [ 0:06] 853 int select_one(void) ; [ 0:06] 854 int select_one(void) [ 0:06] 855 { int retValue_acc ; [ 0:06] 856 int choice = __VERIFIER_nondet_int(); [ 0:06] 857 [ 0:06] 858 { [ 0:06] 859 retValue_acc = choice; [ 0:06] 860 return (retValue_acc); [ 0:06] 861 return (retValue_acc); [ 0:06] 862 } [ 0:06] 863 } [ 0:06] 864 void select_features(void) [ 0:06] 865 { [ 0:06] 866 [ 0:06] 867 { [ 0:06] 868 return; [ 0:06] 869 } [ 0:06] 870 } [ 0:06] 871 void select_helpers(void) [ 0:06] 872 { [ 0:06] 873 [ 0:06] 874 { [ 0:06] 875 return; [ 0:06] 876 } [ 0:06] 877 } [ 0:06] 878 int valid_product(void) [ 0:06] 879 { int retValue_acc ; [ 0:06] 880 [ 0:06] 881 { [ 0:06] 882 retValue_acc = 1; [ 0:06] 883 return (retValue_acc); [ 0:06] 884 return (retValue_acc); [ 0:06] 885 } [ 0:06] 886 } [ 0:06] 887 #pragma merger(0,"Environment.i","") [ 0:06] 888 int waterLevel = 1; [ 0:06] 889 int methaneLevelCritical = 0; [ 0:06] 890 void lowerWaterLevel(void) [ 0:06] 891 { [ 0:06] 892 [ 0:06] 893 { [ 0:06] 894 if (waterLevel > 0) { [ 0:06] 895 waterLevel = waterLevel - 1; [ 0:06] 896 } else { [ 0:06] 897 [ 0:06] 898 } [ 0:06] 899 return; [ 0:06] 900 } [ 0:06] 901 } [ 0:06] 902 void waterRise(void) [ 0:06] 903 { [ 0:06] 904 [ 0:06] 905 { [ 0:06] 906 if (waterLevel < 2) { [ 0:06] 907 waterLevel = waterLevel + 1; [ 0:06] 908 } else { [ 0:06] 909 [ 0:06] 910 } [ 0:06] 911 return; [ 0:06] 912 } [ 0:06] 913 } [ 0:06] 914 void changeMethaneLevel(void) [ 0:06] 915 { [ 0:06] 916 [ 0:06] 917 { [ 0:06] 918 if (methaneLevelCritical) { [ 0:06] 919 methaneLevelCritical = 0; [ 0:06] 920 } else { [ 0:06] 921 methaneLevelCritical = 1; [ 0:06] 922 } [ 0:06] 923 return; [ 0:06] 924 } [ 0:06] 925 } [ 0:06] 926 int isMethaneLevelCritical(void) [ 0:06] 927 { int retValue_acc ; [ 0:06] 928 [ 0:06] 929 { [ 0:06] 930 retValue_acc = methaneLevelCritical; [ 0:06] 931 return (retValue_acc); [ 0:06] 932 return (retValue_acc); [ 0:06] 933 } [ 0:06] 934 } [ 0:06] 935 void printEnvironment(void) [ 0:06] 936 { [ 0:06] 937 [ 0:06] 938 { [ 0:06] 939 { [ 0:06] 940 printf("Env(Water:%i", waterLevel); [ 0:06] 941 printf(",Meth:"); [ 0:06] 942 } [ 0:06] 943 if (methaneLevelCritical) { [ 0:06] 944 { [ 0:06] 945 printf("CRIT"); [ 0:06] 946 } [ 0:06] 947 } else { [ 0:06] 948 { [ 0:06] 949 printf("OK"); [ 0:06] 950 } [ 0:06] 951 } [ 0:06] 952 { [ 0:06] 953 printf(")"); [ 0:06] 954 } [ 0:06] 955 return; [ 0:06] 956 } [ 0:06] 957 } [ 0:06] 958 int getWaterLevel(void) [ 0:06] 959 { int retValue_acc ; [ 0:06] 960 [ 0:06] 961 { [ 0:06] 962 retValue_acc = waterLevel; [ 0:06] 963 return (retValue_acc); [ 0:06] 964 return (retValue_acc); [ 0:06] 965 } [ 0:06] 966 } [ 0:06] 967 int isLowWaterSensorDry(void) [ 0:06] 968 { int retValue_acc ; [ 0:06] 969 [ 0:06] 970 { [ 0:06] 971 retValue_acc = waterLevel == 0; [ 0:06] 972 return (retValue_acc); [ 0:06] 973 return (retValue_acc); [ 0:06] 974 } [ 0:06] 975 } [ 0:06] # expected error to be found at /home/xrockai/src/divine/nightly/test/svcomp/product-lines/minepump_spec3_product32_false.cil.c:714, but it was not