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