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