[ 0:00] compiling /home/xrockai/src/divine/nightly/test/svcomp/product-lines/elevator_spec2_product18_false.cil.c [ 0:00] /home/xrockai/src/divine/nightly/test/svcomp/product-lines/elevator_spec2_product18_false.cil.c:1496:10: warning: format string is not a string literal (potentially insecure) [ 0:00] printf(__cil_tmp6); [ 0:00] ^~~~~~~~~~ [ 0:00] /home/xrockai/src/divine/nightly/test/svcomp/product-lines/elevator_spec2_product18_false.cil.c:1496:10: note: treat the string as an argument to avoid this [ 0:00] printf(__cil_tmp6); [ 0:00] ^ [ 0:00] "%s", [ 0:00] /home/xrockai/src/divine/nightly/test/svcomp/product-lines/elevator_spec2_product18_false.cil.c:1501:12: warning: format string is not a string literal (potentially insecure) [ 0:00] printf(__cil_tmp7); [ 0:00] ^~~~~~~~~~ [ 0:00] /home/xrockai/src/divine/nightly/test/svcomp/product-lines/elevator_spec2_product18_false.cil.c:1501:12: note: treat the string as an argument to avoid this [ 0:00] printf(__cil_tmp7); [ 0:00] ^ [ 0:00] "%s", [ 0:00] /home/xrockai/src/divine/nightly/test/svcomp/product-lines/elevator_spec2_product18_false.cil.c:1506:12: warning: format string is not a string literal (potentially insecure) [ 0:00] printf(__cil_tmp8); [ 0:00] ^~~~~~~~~~ [ 0:00] /home/xrockai/src/divine/nightly/test/svcomp/product-lines/elevator_spec2_product18_false.cil.c:1506:12: note: treat the string as an argument to avoid this [ 0:00] printf(__cil_tmp8); [ 0:00] ^ [ 0:00] "%s", [ 0:00] /home/xrockai/src/divine/nightly/test/svcomp/product-lines/elevator_spec2_product18_false.cil.c:1511:10: warning: format string is not a string literal (potentially insecure) [ 0:00] printf(__cil_tmp9); [ 0:00] ^~~~~~~~~~ [ 0:00] /home/xrockai/src/divine/nightly/test/svcomp/product-lines/elevator_spec2_product18_false.cil.c:1511:10: note: treat the string as an argument to avoid this [ 0:00] printf(__cil_tmp9); [ 0:00] ^ [ 0:00] "%s", [ 0:00] /home/xrockai/src/divine/nightly/test/svcomp/product-lines/elevator_spec2_product18_false.cil.c:1515:10: warning: format string is not a string literal (potentially insecure) [ 0:00] printf(__cil_tmp11); [ 0:00] ^~~~~~~~~~~ [ 0:00] /home/xrockai/src/divine/nightly/test/svcomp/product-lines/elevator_spec2_product18_false.cil.c:1515:10: note: treat the string as an argument to avoid this [ 0:00] printf(__cil_tmp11); [ 0:00] ^ [ 0:00] "%s", [ 0:00] /home/xrockai/src/divine/nightly/test/svcomp/product-lines/elevator_spec2_product18_false.cil.c:1520:12: warning: format string is not a string literal (potentially insecure) [ 0:00] printf(__cil_tmp12); [ 0:00] ^~~~~~~~~~~ [ 0:00] /home/xrockai/src/divine/nightly/test/svcomp/product-lines/elevator_spec2_product18_false.cil.c:1520:12: note: treat the string as an argument to avoid this [ 0:00] printf(__cil_tmp12); [ 0:00] ^ [ 0:00] "%s", [ 0:00] /home/xrockai/src/divine/nightly/test/svcomp/product-lines/elevator_spec2_product18_false.cil.c:1525:12: warning: format string is not a string literal (potentially insecure) [ 0:00] printf(__cil_tmp13); [ 0:00] ^~~~~~~~~~~ [ 0:00] /home/xrockai/src/divine/nightly/test/svcomp/product-lines/elevator_spec2_product18_false.cil.c:1525:12: note: treat the string as an argument to avoid this [ 0:00] printf(__cil_tmp13); [ 0:00] ^ [ 0:00] "%s", [ 0:00] /home/xrockai/src/divine/nightly/test/svcomp/product-lines/elevator_spec2_product18_false.cil.c:1530:10: warning: format string is not a string literal (potentially insecure) [ 0:00] printf(__cil_tmp14); [ 0:00] ^~~~~~~~~~~ [ 0:00] /home/xrockai/src/divine/nightly/test/svcomp/product-lines/elevator_spec2_product18_false.cil.c:1530:10: note: treat the string as an argument to avoid this [ 0:00] printf(__cil_tmp14); [ 0:00] ^ [ 0:00] "%s", [ 0:00] /home/xrockai/src/divine/nightly/test/svcomp/product-lines/elevator_spec2_product18_false.cil.c:1574:10: warning: format string is not a string literal (potentially insecure) [ 0:00] printf(__cil_tmp20); [ 0:00] ^~~~~~~~~~~ [ 0:00] /home/xrockai/src/divine/nightly/test/svcomp/product-lines/elevator_spec2_product18_false.cil.c:1574:10: note: treat the string as an argument to avoid this [ 0:01] printf(__cil_tmp20); [ 0:01] ^ [ 0:01] "%s", [ 0:01] /home/xrockai/src/divine/nightly/test/svcomp/product-lines/elevator_spec2_product18_false.cil.c:1631:10: warning: format string is not a string literal (potentially insecure) [ 0:01] printf(__cil_tmp26); [ 0:01] ^~~~~~~~~~~ [ 0:01] /home/xrockai/src/divine/nightly/test/svcomp/product-lines/elevator_spec2_product18_false.cil.c:1631:10: note: treat the string as an argument to avoid this [ 0:01] printf(__cil_tmp26); [ 0:01] ^ [ 0:01] "%s", [ 0:01] /home/xrockai/src/divine/nightly/test/svcomp/product-lines/elevator_spec2_product18_false.cil.c:1647:12: warning: format string is not a string literal (potentially insecure) [ 0:01] printf(__cil_tmp2); [ 0:01] ^~~~~~~~~~ [ 0:01] /home/xrockai/src/divine/nightly/test/svcomp/product-lines/elevator_spec2_product18_false.cil.c:1647:12: note: treat the string as an argument to avoid this [ 0:01] printf(__cil_tmp2); [ 0:01] ^ [ 0:01] "%s", [ 0:01] /home/xrockai/src/divine/nightly/test/svcomp/product-lines/elevator_spec2_product18_false.cil.c:1831: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/elevator_spec2_product18_false.cil.c:1831:44: note: 'malloc' is a builtin with type 'void *(unsigned long)' [ 0:01] 12 warnings 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.17/_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:07] KLEE: WARNING: undefined reference to function: klee_free [ 0:07] KLEE: WARNING: undefined reference to function: klee_malloc [ 0:07] i:1 [ 0:07] KLEE: WARNING ONCE: Alignment of memory from call "klee_malloc" is not modelled. Using alignment of 8. [ 0:07] about to __boot:0 [ 0:07] about to run the scheduler:0 [ 0:07] KLEE: WARNING ONCE: calling external: __dios_tainted_init() at /dios/libc/sys/start.cpp:49 5 [ 0:07] KLEE: ERROR: /dios/libc/sys/start.cpp:87: failed external call: __dios_tainted_init [ 0:07] KLEE: NOTE: now ignoring this error at this location [ 0:07] KLEE: ERROR: EXITING ON ERROR: [ 0:07] Error: failed external call: __dios_tainted_init [ 0:07] File: /dios/libc/sys/start.cpp [ 0:07] Line: 87 [ 0:07] assembly.ll line: 41502 [ 0:07] Stack: [ 0:07] #000041502 in __dios_start (l=0, argc=1, argv=94010128019976, envp=94010128089096) at /dios/libc/sys/start.cpp:87 [ 0:07] #100017464 in _ZN6__dios10sched_nullINS_5ClockINS_10NondetKleeINS_4BaseEEEEEE13run_schedulerINS_7ContextEEEvv () at /dios/sys/sched_null.hpp:163 [ 0:07] #200049827 in klee_boot (argc=2, argv=94010100996864) at /dios/arch/klee/boot.c:41 [ 0:07] [ 0:07] [ 0:07] 1 /* TAGS: error c sym */ [ 0:07] 2 /* VERIFY_OPTS: --symbolic -o nofail:malloc */ [ 0:07] 3 extern void __VERIFIER_error() __attribute__ ((__noreturn__)); [ 0:07] 4 [ 0:07] 5 extern int __VERIFIER_nondet_int(void); [ 0:07] 6 /* Generated by CIL v. 1.3.7 */ [ 0:07] 7 /* print_CIL_Input is true */ [ 0:07] 8 [ 0:07] 9 struct JoinPoint { [ 0:07] 10 void **(*fp)(struct JoinPoint * ) ; [ 0:07] 11 void **args ; [ 0:07] 12 int argsCount ; [ 0:07] 13 char const **argsType ; [ 0:07] 14 void *(*arg)(int , struct JoinPoint * ) ; [ 0:07] 15 char const *(*argType)(int , struct JoinPoint * ) ; [ 0:07] 16 void **retValue ; [ 0:07] 17 char const *retType ; [ 0:07] 18 char const *funcName ; [ 0:07] 19 char const *targetName ; [ 0:07] 20 char const *fileName ; [ 0:07] 21 char const *kind ; [ 0:07] 22 void *excep_return ; [ 0:07] 23 }; [ 0:07] 24 struct __UTAC__CFLOW_FUNC { [ 0:07] 25 int (*func)(int , int ) ; [ 0:07] 26 int val ; [ 0:07] 27 struct __UTAC__CFLOW_FUNC *next ; [ 0:07] 28 }; [ 0:07] 29 struct __UTAC__EXCEPTION { [ 0:07] 30 void *jumpbuf ; [ 0:07] 31 unsigned long long prtValue ; [ 0:07] 32 int pops ; [ 0:07] 33 struct __UTAC__CFLOW_FUNC *cflowfuncs ; [ 0:07] 34 }; [ 0:07] 35 typedef unsigned int size_t; [ 0:07] 36 struct __ACC__ERR { [ 0:07] 37 void *v ; [ 0:07] 38 struct __ACC__ERR *next ; [ 0:07] 39 }; [ 0:07] 40 #pragma merger(0,"UnitTests.i","") [ 0:07] 41 int getOrigin(int person ) ; [ 0:07] 42 void initPersonOnFloor(int person , int floor ) ; [ 0:07] 43 void timeShift(void) ; [ 0:07] 44 int isBlocked(void) ; [ 0:07] 45 void printState(void) ; [ 0:07] 46 void initTopDown(void) ; [ 0:07] 47 void initBottomUp(void) ; [ 0:07] 48 int weight = 0; [ 0:07] 49 int maximumWeight = 100; [ 0:07] 50 int blocked = 0; [ 0:07] 51 int cleanupTimeShifts = 12; [ 0:07] 52 void spec1(void) [ 0:07] 53 { int tmp ; [ 0:07] 54 int tmp___0 ; [ 0:07] 55 int i ; [ 0:07] 56 int tmp___1 ; [ 0:07] 57 [ 0:07] 58 { [ 0:07] 59 { [ 0:07] 60 initBottomUp(); [ 0:07] 61 tmp = getOrigin(5); [ 0:07] 62 initPersonOnFloor(5, tmp); [ 0:07] 63 printState(); [ 0:07] 64 tmp___0 = getOrigin(2); [ 0:07] 65 initPersonOnFloor(2, tmp___0); [ 0:07] 66 printState(); [ 0:07] 67 i = 0; [ 0:07] 68 } [ 0:07] 69 { [ 0:07] 70 while (1) { [ 0:07] 71 while_0_continue: /* CIL Label */ ; [ 0:07] 72 if (i < cleanupTimeShifts) { [ 0:07] 73 { [ 0:07] 74 tmp___1 = isBlocked(); [ 0:07] 75 } [ 0:07] 76 if (tmp___1 != 1) { [ 0:07] 77 [ 0:07] 78 } else { [ 0:07] 79 goto while_0_break; [ 0:07] 80 } [ 0:07] 81 } else { [ 0:07] 82 goto while_0_break; [ 0:07] 83 } [ 0:07] 84 { [ 0:07] 85 timeShift(); [ 0:07] 86 printState(); [ 0:07] 87 i = i + 1; [ 0:07] 88 } [ 0:07] 89 } [ 0:07] 90 while_0_break: /* CIL Label */ ; [ 0:07] 91 } [ 0:07] 92 return; [ 0:07] 93 } [ 0:07] 94 } [ 0:07] 95 void spec14(void) [ 0:07] 96 { int tmp ; [ 0:07] 97 int tmp___0 ; [ 0:07] 98 int i ; [ 0:07] 99 int tmp___1 ; [ 0:07] 100 [ 0:07] 101 { [ 0:07] 102 { [ 0:07] 103 initTopDown(); [ 0:07] 104 tmp = getOrigin(5); [ 0:07] 105 initPersonOnFloor(5, tmp); [ 0:07] 106 printState(); [ 0:07] 107 timeShift(); [ 0:07] 108 timeShift(); [ 0:07] 109 timeShift(); [ 0:07] 110 timeShift(); [ 0:07] 111 tmp___0 = getOrigin(0); [ 0:07] 112 initPersonOnFloor(0, tmp___0); [ 0:07] 113 printState(); [ 0:07] 114 i = 0; [ 0:07] 115 } [ 0:07] 116 { [ 0:07] 117 while (1) { [ 0:07] 118 while_1_continue: /* CIL Label */ ; [ 0:07] 119 if (i < cleanupTimeShifts) { [ 0:07] 120 { [ 0:07] 121 tmp___1 = isBlocked(); [ 0:07] 122 } [ 0:07] 123 if (tmp___1 != 1) { [ 0:07] 124 [ 0:07] 125 } else { [ 0:07] 126 goto while_1_break; [ 0:07] 127 } [ 0:07] 128 } else { [ 0:07] 129 goto while_1_break; [ 0:07] 130 } [ 0:07] 131 { [ 0:07] 132 timeShift(); [ 0:07] 133 printState(); [ 0:07] 134 i = i + 1; [ 0:07] 135 } [ 0:07] 136 } [ 0:07] 137 while_1_break: /* CIL Label */ ; [ 0:07] 138 } [ 0:07] 139 return; [ 0:07] 140 } [ 0:07] 141 } [ 0:07] 142 #pragma merger(0,"scenario.i","") [ 0:07] 143 void bigMacCall(void) ; [ 0:07] 144 void cleanup(void) ; [ 0:07] 145 void test(void) [ 0:07] 146 { [ 0:07] 147 [ 0:07] 148 { [ 0:07] 149 { [ 0:07] 150 bigMacCall(); [ 0:07] 151 cleanup(); [ 0:07] 152 } [ 0:07] 153 return; [ 0:07] 154 } [ 0:07] 155 } [ 0:07] 156 #pragma merger(0,"Person.i","") [ 0:07] 157 int getWeight(int person ) ; [ 0:07] 158 int getDestination(int person ) ; [ 0:07] 159 int getWeight(int person ) [ 0:07] 160 { int retValue_acc ; [ 0:07] 161 [ 0:07] 162 { [ 0:07] 163 if (person == 0) { [ 0:07] 164 retValue_acc = 40; [ 0:07] 165 return (retValue_acc); [ 0:07] 166 } else { [ 0:07] 167 if (person == 1) { [ 0:07] 168 retValue_acc = 40; [ 0:07] 169 return (retValue_acc); [ 0:07] 170 } else { [ 0:07] 171 if (person == 2) { [ 0:07] 172 retValue_acc = 40; [ 0:07] 173 return (retValue_acc); [ 0:07] 174 } else { [ 0:07] 175 if (person == 3) { [ 0:07] 176 retValue_acc = 40; [ 0:07] 177 return (retValue_acc); [ 0:07] 178 } else { [ 0:07] 179 if (person == 4) { [ 0:07] 180 retValue_acc = 30; [ 0:07] 181 return (retValue_acc); [ 0:07] 182 } else { [ 0:07] 183 if (person == 5) { [ 0:07] 184 retValue_acc = 150; [ 0:07] 185 return (retValue_acc); [ 0:07] 186 } else { [ 0:07] 187 retValue_acc = 0; [ 0:07] 188 return (retValue_acc); [ 0:07] 189 } [ 0:07] 190 } [ 0:07] 191 } [ 0:07] 192 } [ 0:07] 193 } [ 0:07] 194 } [ 0:07] 195 return (retValue_acc); [ 0:07] 196 } [ 0:07] 197 } [ 0:07] 198 int getOrigin(int person ) [ 0:07] 199 { int retValue_acc ; [ 0:07] 200 [ 0:07] 201 { [ 0:07] 202 if (person == 0) { [ 0:07] 203 retValue_acc = 4; [ 0:07] 204 return (retValue_acc); [ 0:07] 205 } else { [ 0:07] 206 if (person == 1) { [ 0:07] 207 retValue_acc = 3; [ 0:07] 208 return (retValue_acc); [ 0:07] 209 } else { [ 0:07] 210 if (person == 2) { [ 0:07] 211 retValue_acc = 2; [ 0:07] 212 return (retValue_acc); [ 0:07] 213 } else { [ 0:07] 214 if (person == 3) { [ 0:07] 215 retValue_acc = 1; [ 0:07] 216 return (retValue_acc); [ 0:07] 217 } else { [ 0:07] 218 if (person == 4) { [ 0:07] 219 retValue_acc = 0; [ 0:07] 220 return (retValue_acc); [ 0:07] 221 } else { [ 0:07] 222 if (person == 5) { [ 0:07] 223 retValue_acc = 1; [ 0:07] 224 return (retValue_acc); [ 0:07] 225 } else { [ 0:07] 226 retValue_acc = 0; [ 0:07] 227 return (retValue_acc); [ 0:07] 228 } [ 0:07] 229 } [ 0:07] 230 } [ 0:07] 231 } [ 0:07] 232 } [ 0:07] 233 } [ 0:07] 234 return (retValue_acc); [ 0:07] 235 } [ 0:07] 236 } [ 0:07] 237 int getDestination(int person ) [ 0:07] 238 { int retValue_acc ; [ 0:07] 239 [ 0:07] 240 { [ 0:07] 241 if (person == 0) { [ 0:07] 242 retValue_acc = 0; [ 0:07] 243 return (retValue_acc); [ 0:07] 244 } else { [ 0:07] 245 if (person == 1) { [ 0:07] 246 retValue_acc = 0; [ 0:07] 247 return (retValue_acc); [ 0:07] 248 } else { [ 0:07] 249 if (person == 2) { [ 0:07] 250 retValue_acc = 1; [ 0:07] 251 return (retValue_acc); [ 0:07] 252 } else { [ 0:07] 253 if (person == 3) { [ 0:07] 254 retValue_acc = 3; [ 0:07] 255 return (retValue_acc); [ 0:07] 256 } else { [ 0:07] 257 if (person == 4) { [ 0:07] 258 retValue_acc = 1; [ 0:07] 259 return (retValue_acc); [ 0:07] 260 } else { [ 0:07] 261 if (person == 5) { [ 0:07] 262 retValue_acc = 3; [ 0:07] 263 return (retValue_acc); [ 0:07] 264 } else { [ 0:07] 265 retValue_acc = 0; [ 0:07] 266 return (retValue_acc); [ 0:07] 267 } [ 0:07] 268 } [ 0:07] 269 } [ 0:07] 270 } [ 0:07] 271 } [ 0:07] 272 } [ 0:07] 273 return (retValue_acc); [ 0:07] 274 } [ 0:07] 275 } [ 0:07] 276 #pragma merger(0,"featureselect.i","") [ 0:07] 277 int select_one(void) ; [ 0:07] 278 void select_features(void) ; [ 0:07] 279 void select_helpers(void) ; [ 0:07] 280 int valid_product(void) ; [ 0:07] 281 int select_one(void) [ 0:07] 282 { int retValue_acc ; [ 0:07] 283 int choice = __VERIFIER_nondet_int(); [ 0:07] 284 [ 0:07] 285 { [ 0:07] 286 retValue_acc = choice; [ 0:07] 287 return (retValue_acc); [ 0:07] 288 return (retValue_acc); [ 0:07] 289 } [ 0:07] 290 } [ 0:07] 291 void select_features(void) [ 0:07] 292 { [ 0:07] 293 [ 0:07] 294 { [ 0:07] 295 return; [ 0:07] 296 } [ 0:07] 297 } [ 0:07] 298 void select_helpers(void) [ 0:07] 299 { [ 0:07] 300 [ 0:07] 301 { [ 0:07] 302 return; [ 0:07] 303 } [ 0:07] 304 } [ 0:07] 305 int valid_product(void) [ 0:07] 306 { int retValue_acc ; [ 0:07] 307 [ 0:07] 308 { [ 0:07] 309 retValue_acc = 1; [ 0:07] 310 return (retValue_acc); [ 0:07] 311 return (retValue_acc); [ 0:07] 312 } [ 0:07] 313 } [ 0:07] 314 #pragma merger(0,"Elevator.i","") [ 0:07] 315 extern int printf(char const * __restrict __format , ...) ; [ 0:07] 316 void enterElevator(int p ) ; [ 0:07] 317 int isFloorCalling(int floorID ) ; [ 0:07] 318 void resetCallOnFloor(int floorID ) ; [ 0:07] 319 int isPersonOnFloor(int person , int floor ) ; [ 0:07] 320 void removePersonFromFloor(int person , int floor ) ; [ 0:07] 321 int isTopFloor(int floorID ) ; [ 0:07] 322 void initFloors(void) ; [ 0:07] 323 int isEmpty(void) ; [ 0:07] 324 int isAnyLiftButtonPressed(void) ; [ 0:07] 325 int buttonForFloorIsPressed(int floorID ) ; [ 0:07] 326 int areDoorsOpen(void) ; [ 0:07] 327 int getCurrentFloorID(void) ; [ 0:07] 328 int isIdle(void) ; [ 0:07] 329 int currentHeading = 1; [ 0:07] 330 int currentFloorID = 0; [ 0:07] 331 int persons_0 ; [ 0:07] 332 int persons_1 ; [ 0:07] 333 int persons_2 ; [ 0:07] 334 int persons_3 ; [ 0:07] 335 int persons_4 ; [ 0:07] 336 int persons_5 ; [ 0:07] 337 int doorState = 1; [ 0:07] 338 int floorButtons_0 ; [ 0:07] 339 int floorButtons_1 ; [ 0:07] 340 int floorButtons_2 ; [ 0:07] 341 int floorButtons_3 ; [ 0:07] 342 int floorButtons_4 ; [ 0:07] 343 void initTopDown(void) [ 0:07] 344 { [ 0:07] 345 [ 0:07] 346 { [ 0:07] 347 { [ 0:07] 348 currentFloorID = 4; [ 0:07] 349 currentHeading = 0; [ 0:07] 350 floorButtons_0 = 0; [ 0:07] 351 floorButtons_1 = 0; [ 0:07] 352 floorButtons_2 = 0; [ 0:07] 353 floorButtons_3 = 0; [ 0:07] 354 floorButtons_4 = 0; [ 0:07] 355 persons_0 = 0; [ 0:07] 356 persons_1 = 0; [ 0:07] 357 persons_2 = 0; [ 0:07] 358 persons_3 = 0; [ 0:07] 359 persons_4 = 0; [ 0:07] 360 persons_5 = 0; [ 0:07] 361 initFloors(); [ 0:07] 362 } [ 0:07] 363 return; [ 0:07] 364 } [ 0:07] 365 } [ 0:07] 366 void initBottomUp(void) [ 0:07] 367 { [ 0:07] 368 [ 0:07] 369 { [ 0:07] 370 { [ 0:07] 371 currentFloorID = 0; [ 0:07] 372 currentHeading = 1; [ 0:07] 373 floorButtons_0 = 0; [ 0:07] 374 floorButtons_1 = 0; [ 0:07] 375 floorButtons_2 = 0; [ 0:07] 376 floorButtons_3 = 0; [ 0:07] 377 floorButtons_4 = 0; [ 0:07] 378 persons_0 = 0; [ 0:07] 379 persons_1 = 0; [ 0:07] 380 persons_2 = 0; [ 0:07] 381 persons_3 = 0; [ 0:07] 382 persons_4 = 0; [ 0:07] 383 persons_5 = 0; [ 0:07] 384 initFloors(); [ 0:07] 385 } [ 0:07] 386 return; [ 0:07] 387 } [ 0:07] 388 } [ 0:07] 389 int isBlocked(void) [ 0:07] 390 { int retValue_acc ; [ 0:07] 391 [ 0:07] 392 { [ 0:07] 393 retValue_acc = blocked; [ 0:07] 394 return (retValue_acc); [ 0:07] 395 return (retValue_acc); [ 0:07] 396 } [ 0:07] 397 } [ 0:07] 398 void enterElevator__wrappee__base(int p ) [ 0:07] 399 { [ 0:07] 400 [ 0:07] 401 { [ 0:07] 402 if (p == 0) { [ 0:07] 403 persons_0 = 1; [ 0:07] 404 } else { [ 0:07] 405 if (p == 1) { [ 0:07] 406 persons_1 = 1; [ 0:07] 407 } else { [ 0:07] 408 if (p == 2) { [ 0:07] 409 persons_2 = 1; [ 0:07] 410 } else { [ 0:07] 411 if (p == 3) { [ 0:07] 412 persons_3 = 1; [ 0:07] 413 } else { [ 0:07] 414 if (p == 4) { [ 0:07] 415 persons_4 = 1; [ 0:07] 416 } else { [ 0:07] 417 if (p == 5) { [ 0:07] 418 persons_5 = 1; [ 0:07] 419 } else { [ 0:07] 420 [ 0:07] 421 } [ 0:07] 422 } [ 0:07] 423 } [ 0:07] 424 } [ 0:07] 425 } [ 0:07] 426 } [ 0:07] 427 return; [ 0:07] 428 } [ 0:07] 429 } [ 0:07] 430 void enterElevator(int p ) [ 0:07] 431 { int tmp ; [ 0:07] 432 [ 0:07] 433 { [ 0:07] 434 { [ 0:07] 435 enterElevator__wrappee__base(p); [ 0:07] 436 tmp = getWeight(p); [ 0:07] 437 weight = weight + tmp; [ 0:07] 438 } [ 0:07] 439 return; [ 0:07] 440 } [ 0:07] 441 } [ 0:07] 442 void leaveElevator__wrappee__base(int p ) [ 0:07] 443 { [ 0:07] 444 [ 0:07] 445 { [ 0:07] 446 if (p == 0) { [ 0:07] 447 persons_0 = 0; [ 0:07] 448 } else { [ 0:07] 449 if (p == 1) { [ 0:07] 450 persons_1 = 0; [ 0:07] 451 } else { [ 0:07] 452 if (p == 2) { [ 0:07] 453 persons_2 = 0; [ 0:07] 454 } else { [ 0:07] 455 if (p == 3) { [ 0:07] 456 persons_3 = 0; [ 0:07] 457 } else { [ 0:07] 458 if (p == 4) { [ 0:07] 459 persons_4 = 0; [ 0:07] 460 } else { [ 0:07] 461 if (p == 5) { [ 0:07] 462 persons_5 = 0; [ 0:07] 463 } else { [ 0:07] 464 [ 0:07] 465 } [ 0:07] 466 } [ 0:07] 467 } [ 0:07] 468 } [ 0:07] 469 } [ 0:07] 470 } [ 0:07] 471 return; [ 0:07] 472 } [ 0:07] 473 } [ 0:07] 474 void leaveElevator(int p ) [ 0:07] 475 { int tmp ; [ 0:07] 476 [ 0:07] 477 { [ 0:07] 478 { [ 0:07] 479 leaveElevator__wrappee__base(p); [ 0:07] 480 tmp = getWeight(p); [ 0:07] 481 weight = weight - tmp; [ 0:07] 482 } [ 0:07] 483 return; [ 0:07] 484 } [ 0:07] 485 } [ 0:07] 486 void __utac_acc__Specification2_spec__2(int floor ) ; [ 0:07] 487 void pressInLiftFloorButton(int floorID ) [ 0:07] 488 { int __utac__ad__arg1 ; [ 0:07] 489 [ 0:07] 490 { [ 0:07] 491 { [ 0:07] 492 __utac__ad__arg1 = floorID; [ 0:07] 493 __utac_acc__Specification2_spec__2(__utac__ad__arg1); [ 0:07] 494 } [ 0:07] 495 if (floorID == 0) { [ 0:07] 496 floorButtons_0 = 1; [ 0:07] 497 } else { [ 0:07] 498 if (floorID == 1) { [ 0:07] 499 floorButtons_1 = 1; [ 0:07] 500 } else { [ 0:07] 501 if (floorID == 2) { [ 0:07] 502 floorButtons_2 = 1; [ 0:07] 503 } else { [ 0:07] 504 if (floorID == 3) { [ 0:07] 505 floorButtons_3 = 1; [ 0:07] 506 } else { [ 0:07] 507 if (floorID == 4) { [ 0:07] 508 floorButtons_4 = 1; [ 0:07] 509 } else { [ 0:07] 510 [ 0:07] 511 } [ 0:07] 512 } [ 0:07] 513 } [ 0:07] 514 } [ 0:07] 515 } [ 0:07] 516 return; [ 0:07] 517 } [ 0:07] 518 } [ 0:07] 519 void resetFloorButton(int floorID ) [ 0:07] 520 { [ 0:07] 521 [ 0:07] 522 { [ 0:07] 523 if (floorID == 0) { [ 0:07] 524 floorButtons_0 = 0; [ 0:07] 525 } else { [ 0:07] 526 if (floorID == 1) { [ 0:07] 527 floorButtons_1 = 0; [ 0:07] 528 } else { [ 0:07] 529 if (floorID == 2) { [ 0:07] 530 floorButtons_2 = 0; [ 0:07] 531 } else { [ 0:07] 532 if (floorID == 3) { [ 0:07] 533 floorButtons_3 = 0; [ 0:07] 534 } else { [ 0:07] 535 if (floorID == 4) { [ 0:07] 536 floorButtons_4 = 0; [ 0:07] 537 } else { [ 0:07] 538 [ 0:07] 539 } [ 0:07] 540 } [ 0:07] 541 } [ 0:07] 542 } [ 0:07] 543 } [ 0:07] 544 return; [ 0:07] 545 } [ 0:07] 546 } [ 0:07] 547 int getCurrentFloorID(void) [ 0:07] 548 { int retValue_acc ; [ 0:07] 549 [ 0:07] 550 { [ 0:07] 551 retValue_acc = currentFloorID; [ 0:07] 552 return (retValue_acc); [ 0:07] 553 return (retValue_acc); [ 0:07] 554 } [ 0:07] 555 } [ 0:07] 556 int areDoorsOpen(void) [ 0:07] 557 { int retValue_acc ; [ 0:07] 558 [ 0:07] 559 { [ 0:07] 560 retValue_acc = doorState; [ 0:07] 561 return (retValue_acc); [ 0:07] 562 return (retValue_acc); [ 0:07] 563 } [ 0:07] 564 } [ 0:07] 565 int buttonForFloorIsPressed(int floorID ) [ 0:07] 566 { int retValue_acc ; [ 0:07] 567 [ 0:07] 568 { [ 0:07] 569 if (floorID == 0) { [ 0:07] 570 retValue_acc = floorButtons_0; [ 0:07] 571 return (retValue_acc); [ 0:07] 572 } else { [ 0:07] 573 if (floorID == 1) { [ 0:07] 574 retValue_acc = floorButtons_1; [ 0:07] 575 return (retValue_acc); [ 0:07] 576 } else { [ 0:07] 577 if (floorID == 2) { [ 0:07] 578 retValue_acc = floorButtons_2; [ 0:07] 579 return (retValue_acc); [ 0:07] 580 } else { [ 0:07] 581 if (floorID == 3) { [ 0:07] 582 retValue_acc = floorButtons_3; [ 0:07] 583 return (retValue_acc); [ 0:07] 584 } else { [ 0:07] 585 if (floorID == 4) { [ 0:07] 586 retValue_acc = floorButtons_4; [ 0:07] 587 return (retValue_acc); [ 0:07] 588 } else { [ 0:07] 589 retValue_acc = 0; [ 0:07] 590 return (retValue_acc); [ 0:07] 591 } [ 0:07] 592 } [ 0:07] 593 } [ 0:07] 594 } [ 0:07] 595 } [ 0:07] 596 return (retValue_acc); [ 0:07] 597 } [ 0:07] 598 } [ 0:07] 599 int getCurrentHeading(void) [ 0:07] 600 { int retValue_acc ; [ 0:07] 601 [ 0:07] 602 { [ 0:07] 603 retValue_acc = currentHeading; [ 0:07] 604 return (retValue_acc); [ 0:07] 605 return (retValue_acc); [ 0:07] 606 } [ 0:07] 607 } [ 0:07] 608 int isEmpty(void) [ 0:07] 609 { int retValue_acc ; [ 0:07] 610 [ 0:07] 611 { [ 0:07] 612 if (persons_0 == 1) { [ 0:07] 613 retValue_acc = 0; [ 0:07] 614 return (retValue_acc); [ 0:07] 615 } else { [ 0:07] 616 if (persons_1 == 1) { [ 0:07] 617 retValue_acc = 0; [ 0:07] 618 return (retValue_acc); [ 0:07] 619 } else { [ 0:07] 620 if (persons_2 == 1) { [ 0:07] 621 retValue_acc = 0; [ 0:07] 622 return (retValue_acc); [ 0:07] 623 } else { [ 0:07] 624 if (persons_3 == 1) { [ 0:07] 625 retValue_acc = 0; [ 0:07] 626 return (retValue_acc); [ 0:07] 627 } else { [ 0:07] 628 if (persons_4 == 1) { [ 0:07] 629 retValue_acc = 0; [ 0:07] 630 return (retValue_acc); [ 0:07] 631 } else { [ 0:07] 632 if (persons_5 == 1) { [ 0:07] 633 retValue_acc = 0; [ 0:07] 634 return (retValue_acc); [ 0:07] 635 } else { [ 0:07] 636 [ 0:07] 637 } [ 0:07] 638 } [ 0:07] 639 } [ 0:07] 640 } [ 0:07] 641 } [ 0:07] 642 } [ 0:07] 643 retValue_acc = 1; [ 0:07] 644 return (retValue_acc); [ 0:07] 645 return (retValue_acc); [ 0:07] 646 } [ 0:07] 647 } [ 0:07] 648 int anyStopRequested(void) [ 0:07] 649 { int retValue_acc ; [ 0:07] 650 int tmp ; [ 0:07] 651 int tmp___0 ; [ 0:07] 652 int tmp___1 ; [ 0:07] 653 int tmp___2 ; [ 0:07] 654 int tmp___3 ; [ 0:07] 655 [ 0:07] 656 { [ 0:07] 657 { [ 0:07] 658 tmp___3 = isFloorCalling(0); [ 0:07] 659 } [ 0:07] 660 if (tmp___3) { [ 0:07] 661 retValue_acc = 1; [ 0:07] 662 return (retValue_acc); [ 0:07] 663 } else { [ 0:07] 664 if (floorButtons_0) { [ 0:07] 665 retValue_acc = 1; [ 0:07] 666 return (retValue_acc); [ 0:07] 667 } else { [ 0:07] 668 { [ 0:07] 669 tmp___2 = isFloorCalling(1); [ 0:07] 670 } [ 0:07] 671 if (tmp___2) { [ 0:07] 672 retValue_acc = 1; [ 0:07] 673 return (retValue_acc); [ 0:07] 674 } else { [ 0:07] 675 if (floorButtons_1) { [ 0:07] 676 retValue_acc = 1; [ 0:07] 677 return (retValue_acc); [ 0:07] 678 } else { [ 0:07] 679 { [ 0:07] 680 tmp___1 = isFloorCalling(2); [ 0:07] 681 } [ 0:07] 682 if (tmp___1) { [ 0:07] 683 retValue_acc = 1; [ 0:07] 684 return (retValue_acc); [ 0:07] 685 } else { [ 0:07] 686 if (floorButtons_2) { [ 0:07] 687 retValue_acc = 1; [ 0:07] 688 return (retValue_acc); [ 0:07] 689 } else { [ 0:07] 690 { [ 0:07] 691 tmp___0 = isFloorCalling(3); [ 0:07] 692 } [ 0:07] 693 if (tmp___0) { [ 0:07] 694 retValue_acc = 1; [ 0:07] 695 return (retValue_acc); [ 0:07] 696 } else { [ 0:07] 697 if (floorButtons_3) { [ 0:07] 698 retValue_acc = 1; [ 0:07] 699 return (retValue_acc); [ 0:07] 700 } else { [ 0:07] 701 { [ 0:07] 702 tmp = isFloorCalling(4); [ 0:07] 703 } [ 0:07] 704 if (tmp) { [ 0:07] 705 retValue_acc = 1; [ 0:07] 706 return (retValue_acc); [ 0:07] 707 } else { [ 0:07] 708 if (floorButtons_4) { [ 0:07] 709 retValue_acc = 1; [ 0:07] 710 return (retValue_acc); [ 0:07] 711 } else { [ 0:07] 712 [ 0:07] 713 } [ 0:07] 714 } [ 0:07] 715 } [ 0:07] 716 } [ 0:07] 717 } [ 0:07] 718 } [ 0:07] 719 } [ 0:07] 720 } [ 0:07] 721 } [ 0:07] 722 } [ 0:07] 723 retValue_acc = 0; [ 0:07] 724 return (retValue_acc); [ 0:07] 725 return (retValue_acc); [ 0:07] 726 } [ 0:07] 727 } [ 0:07] 728 int isIdle(void) [ 0:07] 729 { int retValue_acc ; [ 0:07] 730 int tmp ; [ 0:07] 731 [ 0:07] 732 { [ 0:07] 733 { [ 0:07] 734 tmp = anyStopRequested(); [ 0:07] 735 retValue_acc = tmp == 0; [ 0:07] 736 } [ 0:07] 737 return (retValue_acc); [ 0:07] 738 return (retValue_acc); [ 0:07] 739 } [ 0:07] 740 } [ 0:07] 741 int stopRequestedInDirection(int dir , int respectFloorCalls , int respectInLiftCalls ) [ 0:07] 742 { int retValue_acc ; [ 0:07] 743 int tmp ; [ 0:07] 744 int tmp___0 ; [ 0:07] 745 int tmp___1 ; [ 0:07] 746 int tmp___2 ; [ 0:07] 747 int tmp___3 ; [ 0:07] 748 int tmp___4 ; [ 0:07] 749 int tmp___5 ; [ 0:07] 750 int tmp___6 ; [ 0:07] 751 int tmp___7 ; [ 0:07] 752 int tmp___8 ; [ 0:07] 753 int tmp___9 ; [ 0:07] 754 [ 0:07] 755 { [ 0:07] 756 if (dir == 1) { [ 0:07] 757 { [ 0:07] 758 tmp = isTopFloor(currentFloorID); [ 0:07] 759 } [ 0:07] 760 if (tmp) { [ 0:07] 761 retValue_acc = 0; [ 0:07] 762 return (retValue_acc); [ 0:07] 763 } else { [ 0:07] 764 [ 0:07] 765 } [ 0:07] 766 if (currentFloorID < 0) { [ 0:07] 767 if (respectFloorCalls) { [ 0:07] 768 { [ 0:07] 769 tmp___4 = isFloorCalling(0); [ 0:07] 770 } [ 0:07] 771 if (tmp___4) { [ 0:07] 772 retValue_acc = 1; [ 0:07] 773 return (retValue_acc); [ 0:07] 774 } else { [ 0:07] 775 goto _L___16; [ 0:07] 776 } [ 0:07] 777 } else { [ 0:07] 778 goto _L___16; [ 0:07] 779 } [ 0:07] 780 } else { [ 0:07] 781 _L___16: /* CIL Label */ [ 0:07] 782 if (currentFloorID < 0) { [ 0:07] 783 if (respectInLiftCalls) { [ 0:07] 784 if (floorButtons_0) { [ 0:07] 785 retValue_acc = 1; [ 0:07] 786 return (retValue_acc); [ 0:07] 787 } else { [ 0:07] 788 goto _L___14; [ 0:07] 789 } [ 0:07] 790 } else { [ 0:07] 791 goto _L___14; [ 0:07] 792 } [ 0:07] 793 } else { [ 0:07] 794 _L___14: /* CIL Label */ [ 0:07] 795 if (currentFloorID < 1) { [ 0:07] 796 if (respectFloorCalls) { [ 0:07] 797 { [ 0:07] 798 tmp___3 = isFloorCalling(1); [ 0:07] 799 } [ 0:07] 800 if (tmp___3) { [ 0:07] 801 retValue_acc = 1; [ 0:07] 802 return (retValue_acc); [ 0:07] 803 } else { [ 0:07] 804 goto _L___12; [ 0:07] 805 } [ 0:07] 806 } else { [ 0:07] 807 goto _L___12; [ 0:07] 808 } [ 0:07] 809 } else { [ 0:07] 810 _L___12: /* CIL Label */ [ 0:07] 811 if (currentFloorID < 1) { [ 0:07] 812 if (respectInLiftCalls) { [ 0:07] 813 if (floorButtons_1) { [ 0:07] 814 retValue_acc = 1; [ 0:07] 815 return (retValue_acc); [ 0:07] 816 } else { [ 0:07] 817 goto _L___10; [ 0:07] 818 } [ 0:07] 819 } else { [ 0:07] 820 goto _L___10; [ 0:07] 821 } [ 0:07] 822 } else { [ 0:07] 823 _L___10: /* CIL Label */ [ 0:07] 824 if (currentFloorID < 2) { [ 0:07] 825 if (respectFloorCalls) { [ 0:07] 826 { [ 0:07] 827 tmp___2 = isFloorCalling(2); [ 0:07] 828 } [ 0:07] 829 if (tmp___2) { [ 0:07] 830 retValue_acc = 1; [ 0:07] 831 return (retValue_acc); [ 0:07] 832 } else { [ 0:07] 833 goto _L___8; [ 0:07] 834 } [ 0:07] 835 } else { [ 0:07] 836 goto _L___8; [ 0:07] 837 } [ 0:07] 838 } else { [ 0:07] 839 _L___8: /* CIL Label */ [ 0:07] 840 if (currentFloorID < 2) { [ 0:07] 841 if (respectInLiftCalls) { [ 0:07] 842 if (floorButtons_2) { [ 0:07] 843 retValue_acc = 1; [ 0:07] 844 return (retValue_acc); [ 0:07] 845 } else { [ 0:07] 846 goto _L___6; [ 0:07] 847 } [ 0:07] 848 } else { [ 0:07] 849 goto _L___6; [ 0:07] 850 } [ 0:07] 851 } else { [ 0:07] 852 _L___6: /* CIL Label */ [ 0:07] 853 if (currentFloorID < 3) { [ 0:07] 854 if (respectFloorCalls) { [ 0:07] 855 { [ 0:07] 856 tmp___1 = isFloorCalling(3); [ 0:07] 857 } [ 0:07] 858 if (tmp___1) { [ 0:07] 859 retValue_acc = 1; [ 0:07] 860 return (retValue_acc); [ 0:07] 861 } else { [ 0:07] 862 goto _L___4; [ 0:07] 863 } [ 0:07] 864 } else { [ 0:07] 865 goto _L___4; [ 0:07] 866 } [ 0:07] 867 } else { [ 0:07] 868 _L___4: /* CIL Label */ [ 0:07] 869 if (currentFloorID < 3) { [ 0:07] 870 if (respectInLiftCalls) { [ 0:07] 871 if (floorButtons_3) { [ 0:07] 872 retValue_acc = 1; [ 0:07] 873 return (retValue_acc); [ 0:07] 874 } else { [ 0:07] 875 goto _L___2; [ 0:07] 876 } [ 0:07] 877 } else { [ 0:07] 878 goto _L___2; [ 0:07] 879 } [ 0:07] 880 } else { [ 0:07] 881 _L___2: /* CIL Label */ [ 0:07] 882 if (currentFloorID < 4) { [ 0:07] 883 if (respectFloorCalls) { [ 0:07] 884 { [ 0:07] 885 tmp___0 = isFloorCalling(4); [ 0:07] 886 } [ 0:07] 887 if (tmp___0) { [ 0:07] 888 retValue_acc = 1; [ 0:07] 889 return (retValue_acc); [ 0:07] 890 } else { [ 0:07] 891 goto _L___0; [ 0:07] 892 } [ 0:07] 893 } else { [ 0:07] 894 goto _L___0; [ 0:07] 895 } [ 0:07] 896 } else { [ 0:07] 897 _L___0: /* CIL Label */ [ 0:07] 898 if (currentFloorID < 4) { [ 0:07] 899 if (respectInLiftCalls) { [ 0:07] 900 if (floorButtons_4) { [ 0:07] 901 retValue_acc = 1; [ 0:07] 902 return (retValue_acc); [ 0:07] 903 } else { [ 0:07] 904 retValue_acc = 0; [ 0:07] 905 return (retValue_acc); [ 0:07] 906 } [ 0:07] 907 } else { [ 0:07] 908 retValue_acc = 0; [ 0:07] 909 return (retValue_acc); [ 0:07] 910 } [ 0:07] 911 } else { [ 0:07] 912 retValue_acc = 0; [ 0:07] 913 return (retValue_acc); [ 0:07] 914 } [ 0:07] 915 } [ 0:07] 916 } [ 0:07] 917 } [ 0:07] 918 } [ 0:07] 919 } [ 0:07] 920 } [ 0:07] 921 } [ 0:07] 922 } [ 0:07] 923 } [ 0:07] 924 } else { [ 0:07] 925 if (currentFloorID == 0) { [ 0:07] 926 retValue_acc = 0; [ 0:07] 927 return (retValue_acc); [ 0:07] 928 } else { [ 0:07] 929 [ 0:07] 930 } [ 0:07] 931 if (currentFloorID > 0) { [ 0:07] 932 if (respectFloorCalls) { [ 0:07] 933 { [ 0:07] 934 tmp___9 = isFloorCalling(0); [ 0:07] 935 } [ 0:07] 936 if (tmp___9) { [ 0:07] 937 retValue_acc = 1; [ 0:07] 938 return (retValue_acc); [ 0:07] 939 } else { [ 0:07] 940 goto _L___34; [ 0:07] 941 } [ 0:07] 942 } else { [ 0:07] 943 goto _L___34; [ 0:07] 944 } [ 0:07] 945 } else { [ 0:07] 946 _L___34: /* CIL Label */ [ 0:07] 947 if (currentFloorID > 0) { [ 0:07] 948 if (respectInLiftCalls) { [ 0:07] 949 if (floorButtons_0) { [ 0:07] 950 retValue_acc = 1; [ 0:07] 951 return (retValue_acc); [ 0:07] 952 } else { [ 0:07] 953 goto _L___32; [ 0:07] 954 } [ 0:07] 955 } else { [ 0:07] 956 goto _L___32; [ 0:07] 957 } [ 0:07] 958 } else { [ 0:07] 959 _L___32: /* CIL Label */ [ 0:07] 960 if (currentFloorID > 1) { [ 0:07] 961 if (respectFloorCalls) { [ 0:07] 962 { [ 0:07] 963 tmp___8 = isFloorCalling(1); [ 0:07] 964 } [ 0:07] 965 if (tmp___8) { [ 0:07] 966 retValue_acc = 1; [ 0:07] 967 return (retValue_acc); [ 0:07] 968 } else { [ 0:07] 969 goto _L___30; [ 0:07] 970 } [ 0:07] 971 } else { [ 0:07] 972 goto _L___30; [ 0:07] 973 } [ 0:07] 974 } else { [ 0:07] 975 _L___30: /* CIL Label */ [ 0:07] 976 if (currentFloorID > 1) { [ 0:07] 977 if (respectInLiftCalls) { [ 0:07] 978 if (floorButtons_1) { [ 0:07] 979 retValue_acc = 1; [ 0:07] 980 return (retValue_acc); [ 0:07] 981 } else { [ 0:07] 982 goto _L___28; [ 0:07] 983 } [ 0:07] 984 } else { [ 0:07] 985 goto _L___28; [ 0:07] 986 } [ 0:07] 987 } else { [ 0:07] 988 _L___28: /* CIL Label */ [ 0:07] 989 if (currentFloorID > 2) { [ 0:07] 990 if (respectFloorCalls) { [ 0:07] 991 { [ 0:07] 992 tmp___7 = isFloorCalling(2); [ 0:07] 993 } [ 0:07] 994 if (tmp___7) { [ 0:07] 995 retValue_acc = 1; [ 0:07] 996 return (retValue_acc); [ 0:07] 997 } else { [ 0:07] 998 goto _L___26; [ 0:07] 999 } [ 0:07] 1000 } else { [ 0:07] 1001 goto _L___26; [ 0:07] 1002 } [ 0:07] 1003 } else { [ 0:07] 1004 _L___26: /* CIL Label */ [ 0:07] 1005 if (currentFloorID > 2) { [ 0:07] 1006 if (respectInLiftCalls) { [ 0:07] 1007 if (floorButtons_2) { [ 0:07] 1008 retValue_acc = 1; [ 0:07] 1009 return (retValue_acc); [ 0:07] 1010 } else { [ 0:07] 1011 goto _L___24; [ 0:07] 1012 } [ 0:07] 1013 } else { [ 0:07] 1014 goto _L___24; [ 0:07] 1015 } [ 0:07] 1016 } else { [ 0:07] 1017 _L___24: /* CIL Label */ [ 0:07] 1018 if (currentFloorID > 3) { [ 0:07] 1019 if (respectFloorCalls) { [ 0:07] 1020 { [ 0:07] 1021 tmp___6 = isFloorCalling(3); [ 0:07] 1022 } [ 0:07] 1023 if (tmp___6) { [ 0:07] 1024 retValue_acc = 1; [ 0:07] 1025 return (retValue_acc); [ 0:07] 1026 } else { [ 0:07] 1027 goto _L___22; [ 0:07] 1028 } [ 0:07] 1029 } else { [ 0:07] 1030 goto _L___22; [ 0:07] 1031 } [ 0:07] 1032 } else { [ 0:07] 1033 _L___22: /* CIL Label */ [ 0:07] 1034 if (currentFloorID > 3) { [ 0:07] 1035 if (respectInLiftCalls) { [ 0:07] 1036 if (floorButtons_3) { [ 0:07] 1037 retValue_acc = 1; [ 0:07] 1038 return (retValue_acc); [ 0:07] 1039 } else { [ 0:07] 1040 goto _L___20; [ 0:07] 1041 } [ 0:07] 1042 } else { [ 0:07] 1043 goto _L___20; [ 0:07] 1044 } [ 0:07] 1045 } else { [ 0:07] 1046 _L___20: /* CIL Label */ [ 0:07] 1047 if (currentFloorID > 4) { [ 0:07] 1048 if (respectFloorCalls) { [ 0:07] 1049 { [ 0:07] 1050 tmp___5 = isFloorCalling(4); [ 0:07] 1051 } [ 0:07] 1052 if (tmp___5) { [ 0:07] 1053 retValue_acc = 1; [ 0:07] 1054 return (retValue_acc); [ 0:07] 1055 } else { [ 0:07] 1056 goto _L___18; [ 0:07] 1057 } [ 0:07] 1058 } else { [ 0:07] 1059 goto _L___18; [ 0:07] 1060 } [ 0:07] 1061 } else { [ 0:07] 1062 _L___18: /* CIL Label */ [ 0:07] 1063 if (currentFloorID > 4) { [ 0:07] 1064 if (respectInLiftCalls) { [ 0:07] 1065 if (floorButtons_4) { [ 0:07] 1066 retValue_acc = 1; [ 0:07] 1067 return (retValue_acc); [ 0:07] 1068 } else { [ 0:07] 1069 retValue_acc = 0; [ 0:07] 1070 return (retValue_acc); [ 0:07] 1071 } [ 0:07] 1072 } else { [ 0:07] 1073 retValue_acc = 0; [ 0:07] 1074 return (retValue_acc); [ 0:07] 1075 } [ 0:07] 1076 } else { [ 0:07] 1077 retValue_acc = 0; [ 0:07] 1078 return (retValue_acc); [ 0:07] 1079 } [ 0:07] 1080 } [ 0:07] 1081 } [ 0:07] 1082 } [ 0:07] 1083 } [ 0:07] 1084 } [ 0:07] 1085 } [ 0:07] 1086 } [ 0:07] 1087 } [ 0:07] 1088 } [ 0:07] 1089 } [ 0:07] 1090 return (retValue_acc); [ 0:07] 1091 } [ 0:07] 1092 } [ 0:07] 1093 int isAnyLiftButtonPressed(void) [ 0:07] 1094 { int retValue_acc ; [ 0:07] 1095 [ 0:07] 1096 { [ 0:07] 1097 if (floorButtons_0) { [ 0:07] 1098 retValue_acc = 1; [ 0:07] 1099 return (retValue_acc); [ 0:07] 1100 } else { [ 0:07] 1101 if (floorButtons_1) { [ 0:07] 1102 retValue_acc = 1; [ 0:07] 1103 return (retValue_acc); [ 0:07] 1104 } else { [ 0:07] 1105 if (floorButtons_2) { [ 0:07] 1106 retValue_acc = 1; [ 0:07] 1107 return (retValue_acc); [ 0:07] 1108 } else { [ 0:07] 1109 if (floorButtons_3) { [ 0:07] 1110 retValue_acc = 1; [ 0:07] 1111 return (retValue_acc); [ 0:07] 1112 } else { [ 0:07] 1113 if (floorButtons_4) { [ 0:07] 1114 retValue_acc = 1; [ 0:07] 1115 return (retValue_acc); [ 0:07] 1116 } else { [ 0:07] 1117 retValue_acc = 0; [ 0:07] 1118 return (retValue_acc); [ 0:07] 1119 } [ 0:07] 1120 } [ 0:07] 1121 } [ 0:07] 1122 } [ 0:07] 1123 } [ 0:07] 1124 return (retValue_acc); [ 0:07] 1125 } [ 0:07] 1126 } [ 0:07] 1127 void continueInDirection(int dir ) [ 0:07] 1128 { int tmp ; [ 0:07] 1129 [ 0:07] 1130 { [ 0:07] 1131 currentHeading = dir; [ 0:07] 1132 if (currentHeading == 1) { [ 0:07] 1133 { [ 0:07] 1134 tmp = isTopFloor(currentFloorID); [ 0:07] 1135 } [ 0:07] 1136 if (tmp) { [ 0:07] 1137 currentHeading = 0; [ 0:07] 1138 } else { [ 0:07] 1139 [ 0:07] 1140 } [ 0:07] 1141 } else { [ 0:07] 1142 if (currentFloorID == 0) { [ 0:07] 1143 currentHeading = 1; [ 0:07] 1144 } else { [ 0:07] 1145 [ 0:07] 1146 } [ 0:07] 1147 } [ 0:07] 1148 if (currentHeading == 1) { [ 0:07] 1149 currentFloorID = currentFloorID + 1; [ 0:07] 1150 } else { [ 0:07] 1151 currentFloorID = currentFloorID - 1; [ 0:07] 1152 } [ 0:07] 1153 return; [ 0:07] 1154 } [ 0:07] 1155 } [ 0:07] 1156 int stopRequestedAtCurrentFloor(void) [ 0:07] 1157 { int retValue_acc ; [ 0:07] 1158 int tmp ; [ 0:07] 1159 int tmp___0 ; [ 0:07] 1160 [ 0:07] 1161 { [ 0:07] 1162 { [ 0:07] 1163 tmp___0 = isFloorCalling(currentFloorID); [ 0:07] 1164 } [ 0:07] 1165 if (tmp___0) { [ 0:07] 1166 retValue_acc = 1; [ 0:07] 1167 return (retValue_acc); [ 0:07] 1168 } else { [ 0:07] 1169 { [ 0:07] 1170 tmp = buttonForFloorIsPressed(currentFloorID); [ 0:07] 1171 } [ 0:07] 1172 if (tmp) { [ 0:07] 1173 retValue_acc = 1; [ 0:07] 1174 return (retValue_acc); [ 0:07] 1175 } else { [ 0:07] 1176 retValue_acc = 0; [ 0:07] 1177 return (retValue_acc); [ 0:07] 1178 } [ 0:07] 1179 } [ 0:07] 1180 return (retValue_acc); [ 0:07] 1181 } [ 0:07] 1182 } [ 0:07] 1183 int getReverseHeading(int ofHeading ) [ 0:07] 1184 { int retValue_acc ; [ 0:07] 1185 [ 0:07] 1186 { [ 0:07] 1187 if (ofHeading == 0) { [ 0:07] 1188 retValue_acc = 1; [ 0:07] 1189 return (retValue_acc); [ 0:07] 1190 } else { [ 0:07] 1191 retValue_acc = 0; [ 0:07] 1192 return (retValue_acc); [ 0:07] 1193 } [ 0:07] 1194 return (retValue_acc); [ 0:07] 1195 } [ 0:07] 1196 } [ 0:07] 1197 void processWaitingOnFloor(int floorID ) [ 0:07] 1198 { int tmp ; [ 0:07] 1199 int tmp___0 ; [ 0:07] 1200 int tmp___1 ; [ 0:07] 1201 int tmp___2 ; [ 0:07] 1202 int tmp___3 ; [ 0:07] 1203 int tmp___4 ; [ 0:07] 1204 int tmp___5 ; [ 0:07] 1205 int tmp___6 ; [ 0:07] 1206 int tmp___7 ; [ 0:07] 1207 int tmp___8 ; [ 0:07] 1208 int tmp___9 ; [ 0:07] 1209 int tmp___10 ; [ 0:07] 1210 [ 0:07] 1211 { [ 0:07] 1212 { [ 0:07] 1213 tmp___0 = isPersonOnFloor(0, floorID); [ 0:07] 1214 } [ 0:07] 1215 if (tmp___0) { [ 0:07] 1216 { [ 0:07] 1217 removePersonFromFloor(0, floorID); [ 0:07] 1218 tmp = getDestination(0); [ 0:07] 1219 pressInLiftFloorButton(tmp); [ 0:07] 1220 enterElevator(0); [ 0:07] 1221 } [ 0:07] 1222 } else { [ 0:07] 1223 [ 0:07] 1224 } [ 0:07] 1225 { [ 0:07] 1226 tmp___2 = isPersonOnFloor(1, floorID); [ 0:07] 1227 } [ 0:07] 1228 if (tmp___2) { [ 0:07] 1229 { [ 0:07] 1230 removePersonFromFloor(1, floorID); [ 0:07] 1231 tmp___1 = getDestination(1); [ 0:07] 1232 pressInLiftFloorButton(tmp___1); [ 0:07] 1233 enterElevator(1); [ 0:07] 1234 } [ 0:07] 1235 } else { [ 0:07] 1236 [ 0:07] 1237 } [ 0:07] 1238 { [ 0:07] 1239 tmp___4 = isPersonOnFloor(2, floorID); [ 0:07] 1240 } [ 0:07] 1241 if (tmp___4) { [ 0:07] 1242 { [ 0:07] 1243 removePersonFromFloor(2, floorID); [ 0:07] 1244 tmp___3 = getDestination(2); [ 0:07] 1245 pressInLiftFloorButton(tmp___3); [ 0:07] 1246 enterElevator(2); [ 0:07] 1247 } [ 0:07] 1248 } else { [ 0:07] 1249 [ 0:07] 1250 } [ 0:07] 1251 { [ 0:07] 1252 tmp___6 = isPersonOnFloor(3, floorID); [ 0:07] 1253 } [ 0:07] 1254 if (tmp___6) { [ 0:07] 1255 { [ 0:07] 1256 removePersonFromFloor(3, floorID); [ 0:07] 1257 tmp___5 = getDestination(3); [ 0:07] 1258 pressInLiftFloorButton(tmp___5); [ 0:07] 1259 enterElevator(3); [ 0:07] 1260 } [ 0:07] 1261 } else { [ 0:07] 1262 [ 0:07] 1263 } [ 0:07] 1264 { [ 0:07] 1265 tmp___8 = isPersonOnFloor(4, floorID); [ 0:07] 1266 } [ 0:07] 1267 if (tmp___8) { [ 0:07] 1268 { [ 0:07] 1269 removePersonFromFloor(4, floorID); [ 0:07] 1270 tmp___7 = getDestination(4); [ 0:07] 1271 pressInLiftFloorButton(tmp___7); [ 0:07] 1272 enterElevator(4); [ 0:07] 1273 } [ 0:07] 1274 } else { [ 0:07] 1275 [ 0:07] 1276 } [ 0:07] 1277 { [ 0:07] 1278 tmp___10 = isPersonOnFloor(5, floorID); [ 0:07] 1279 } [ 0:07] 1280 if (tmp___10) { [ 0:07] 1281 { [ 0:07] 1282 removePersonFromFloor(5, floorID); [ 0:07] 1283 tmp___9 = getDestination(5); [ 0:07] 1284 pressInLiftFloorButton(tmp___9); [ 0:07] 1285 enterElevator(5); [ 0:07] 1286 } [ 0:07] 1287 } else { [ 0:07] 1288 [ 0:07] 1289 } [ 0:07] 1290 { [ 0:07] 1291 resetCallOnFloor(floorID); [ 0:07] 1292 } [ 0:07] 1293 return; [ 0:07] 1294 } [ 0:07] 1295 } [ 0:07] 1296 void timeShift__wrappee__weight(void) [ 0:07] 1297 { int tmp ; [ 0:07] 1298 int tmp___0 ; [ 0:07] 1299 int tmp___1 ; [ 0:07] 1300 int tmp___2 ; [ 0:07] 1301 int tmp___3 ; [ 0:07] 1302 int tmp___4 ; [ 0:07] 1303 int tmp___5 ; [ 0:07] 1304 int tmp___6 ; [ 0:07] 1305 int tmp___7 ; [ 0:07] 1306 int tmp___8 ; [ 0:07] 1307 int tmp___9 ; [ 0:07] 1308 [ 0:07] 1309 { [ 0:07] 1310 { [ 0:07] 1311 tmp___9 = stopRequestedAtCurrentFloor(); [ 0:07] 1312 } [ 0:07] 1313 if (tmp___9) { [ 0:07] 1314 doorState = 1; [ 0:07] 1315 if (persons_0) { [ 0:07] 1316 { [ 0:07] 1317 tmp = getDestination(0); [ 0:07] 1318 } [ 0:07] 1319 if (tmp == currentFloorID) { [ 0:07] 1320 { [ 0:07] 1321 leaveElevator(0); [ 0:07] 1322 } [ 0:07] 1323 } else { [ 0:07] 1324 [ 0:07] 1325 } [ 0:07] 1326 } else { [ 0:07] 1327 [ 0:07] 1328 } [ 0:07] 1329 if (persons_1) { [ 0:07] 1330 { [ 0:07] 1331 tmp___0 = getDestination(1); [ 0:07] 1332 } [ 0:07] 1333 if (tmp___0 == currentFloorID) { [ 0:07] 1334 { [ 0:07] 1335 leaveElevator(1); [ 0:07] 1336 } [ 0:07] 1337 } else { [ 0:07] 1338 [ 0:07] 1339 } [ 0:07] 1340 } else { [ 0:07] 1341 [ 0:07] 1342 } [ 0:07] 1343 if (persons_2) { [ 0:07] 1344 { [ 0:07] 1345 tmp___1 = getDestination(2); [ 0:07] 1346 } [ 0:07] 1347 if (tmp___1 == currentFloorID) { [ 0:07] 1348 { [ 0:07] 1349 leaveElevator(2); [ 0:07] 1350 } [ 0:07] 1351 } else { [ 0:07] 1352 [ 0:07] 1353 } [ 0:07] 1354 } else { [ 0:07] 1355 [ 0:07] 1356 } [ 0:07] 1357 if (persons_3) { [ 0:07] 1358 { [ 0:07] 1359 tmp___2 = getDestination(3); [ 0:07] 1360 } [ 0:07] 1361 if (tmp___2 == currentFloorID) { [ 0:07] 1362 { [ 0:07] 1363 leaveElevator(3); [ 0:07] 1364 } [ 0:07] 1365 } else { [ 0:07] 1366 [ 0:07] 1367 } [ 0:07] 1368 } else { [ 0:07] 1369 [ 0:07] 1370 } [ 0:07] 1371 if (persons_4) { [ 0:07] 1372 { [ 0:07] 1373 tmp___3 = getDestination(4); [ 0:07] 1374 } [ 0:07] 1375 if (tmp___3 == currentFloorID) { [ 0:07] 1376 { [ 0:07] 1377 leaveElevator(4); [ 0:07] 1378 } [ 0:07] 1379 } else { [ 0:07] 1380 [ 0:07] 1381 } [ 0:07] 1382 } else { [ 0:07] 1383 [ 0:07] 1384 } [ 0:07] 1385 if (persons_5) { [ 0:07] 1386 { [ 0:07] 1387 tmp___4 = getDestination(5); [ 0:07] 1388 } [ 0:07] 1389 if (tmp___4 == currentFloorID) { [ 0:07] 1390 { [ 0:07] 1391 leaveElevator(5); [ 0:07] 1392 } [ 0:07] 1393 } else { [ 0:07] 1394 [ 0:07] 1395 } [ 0:07] 1396 } else { [ 0:07] 1397 [ 0:07] 1398 } [ 0:07] 1399 { [ 0:07] 1400 processWaitingOnFloor(currentFloorID); [ 0:07] 1401 resetFloorButton(currentFloorID); [ 0:07] 1402 } [ 0:07] 1403 } else { [ 0:07] 1404 if (doorState == 1) { [ 0:07] 1405 doorState = 0; [ 0:07] 1406 } else { [ 0:07] 1407 [ 0:07] 1408 } [ 0:07] 1409 { [ 0:07] 1410 tmp___8 = stopRequestedInDirection(currentHeading, 1, 1); [ 0:07] 1411 } [ 0:07] 1412 if (tmp___8) { [ 0:07] 1413 { [ 0:07] 1414 continueInDirection(currentHeading); [ 0:07] 1415 } [ 0:07] 1416 } else { [ 0:07] 1417 { [ 0:07] 1418 tmp___6 = getReverseHeading(currentHeading); [ 0:07] 1419 tmp___7 = stopRequestedInDirection(tmp___6, 1, 1); [ 0:07] 1420 } [ 0:07] 1421 if (tmp___7) { [ 0:07] 1422 { [ 0:07] 1423 tmp___5 = getReverseHeading(currentHeading); [ 0:07] 1424 continueInDirection(tmp___5); [ 0:07] 1425 } [ 0:07] 1426 } else { [ 0:07] 1427 { [ 0:07] 1428 continueInDirection(currentHeading); [ 0:07] 1429 } [ 0:07] 1430 } [ 0:07] 1431 } [ 0:07] 1432 } [ 0:07] 1433 return; [ 0:07] 1434 } [ 0:07] 1435 } [ 0:07] 1436 void __utac_acc__Specification2_spec__3(void) ; [ 0:07] 1437 void timeShift(void) [ 0:07] 1438 { int tmp ; [ 0:07] 1439 [ 0:07] 1440 { [ 0:07] 1441 { [ 0:07] 1442 tmp = areDoorsOpen(); [ 0:07] 1443 } [ 0:07] 1444 if (tmp) { [ 0:07] 1445 if (weight > maximumWeight) { [ 0:07] 1446 blocked = 1; [ 0:07] 1447 } else { [ 0:07] 1448 { [ 0:07] 1449 blocked = 0; [ 0:07] 1450 timeShift__wrappee__weight(); [ 0:07] 1451 } [ 0:07] 1452 } [ 0:07] 1453 } else { [ 0:07] 1454 { [ 0:07] 1455 blocked = 0; [ 0:07] 1456 timeShift__wrappee__weight(); [ 0:07] 1457 } [ 0:07] 1458 } [ 0:07] 1459 { [ 0:07] 1460 __utac_acc__Specification2_spec__3(); [ 0:07] 1461 } [ 0:07] 1462 return; [ 0:07] 1463 } [ 0:07] 1464 } [ 0:07] 1465 void printState__wrappee__weight(void) [ 0:07] 1466 { int tmp ; [ 0:07] 1467 int tmp___0 ; [ 0:07] 1468 int tmp___1 ; [ 0:07] 1469 int tmp___2 ; [ 0:07] 1470 int tmp___3 ; [ 0:07] 1471 char const * __restrict __cil_tmp6 ; [ 0:07] 1472 char const * __restrict __cil_tmp7 ; [ 0:07] 1473 char const * __restrict __cil_tmp8 ; [ 0:07] 1474 char const * __restrict __cil_tmp9 ; [ 0:07] 1475 char const * __restrict __cil_tmp10 ; [ 0:07] 1476 char const * __restrict __cil_tmp11 ; [ 0:07] 1477 char const * __restrict __cil_tmp12 ; [ 0:07] 1478 char const * __restrict __cil_tmp13 ; [ 0:07] 1479 char const * __restrict __cil_tmp14 ; [ 0:07] 1480 char const * __restrict __cil_tmp15 ; [ 0:07] 1481 char const * __restrict __cil_tmp16 ; [ 0:07] 1482 char const * __restrict __cil_tmp17 ; [ 0:07] 1483 char const * __restrict __cil_tmp18 ; [ 0:07] 1484 char const * __restrict __cil_tmp19 ; [ 0:07] 1485 char const * __restrict __cil_tmp20 ; [ 0:07] 1486 char const * __restrict __cil_tmp21 ; [ 0:07] 1487 char const * __restrict __cil_tmp22 ; [ 0:07] 1488 char const * __restrict __cil_tmp23 ; [ 0:07] 1489 char const * __restrict __cil_tmp24 ; [ 0:07] 1490 char const * __restrict __cil_tmp25 ; [ 0:07] 1491 char const * __restrict __cil_tmp26 ; [ 0:07] 1492 [ 0:07] 1493 { [ 0:07] 1494 { [ 0:07] 1495 __cil_tmp6 = (char const * __restrict )"Elevator "; [ 0:07] 1496 printf(__cil_tmp6); [ 0:07] 1497 } [ 0:07] 1498 if (doorState) { [ 0:07] 1499 { [ 0:07] 1500 __cil_tmp7 = (char const * __restrict )"[_]"; [ 0:07] 1501 printf(__cil_tmp7); [ 0:07] 1502 } [ 0:07] 1503 } else { [ 0:07] 1504 { [ 0:07] 1505 __cil_tmp8 = (char const * __restrict )"[] "; [ 0:07] 1506 printf(__cil_tmp8); [ 0:07] 1507 } [ 0:07] 1508 } [ 0:07] 1509 { [ 0:07] 1510 __cil_tmp9 = (char const * __restrict )" at "; [ 0:07] 1511 printf(__cil_tmp9); [ 0:07] 1512 __cil_tmp10 = (char const * __restrict )"%i"; [ 0:07] 1513 printf(__cil_tmp10, currentFloorID); [ 0:07] 1514 __cil_tmp11 = (char const * __restrict )" heading "; [ 0:07] 1515 printf(__cil_tmp11); [ 0:07] 1516 } [ 0:07] 1517 if (currentHeading) { [ 0:07] 1518 { [ 0:07] 1519 __cil_tmp12 = (char const * __restrict )"up"; [ 0:07] 1520 printf(__cil_tmp12); [ 0:07] 1521 } [ 0:07] 1522 } else { [ 0:07] 1523 { [ 0:07] 1524 __cil_tmp13 = (char const * __restrict )"down"; [ 0:07] 1525 printf(__cil_tmp13); [ 0:07] 1526 } [ 0:07] 1527 } [ 0:07] 1528 { [ 0:07] 1529 __cil_tmp14 = (char const * __restrict )" IL_p:"; [ 0:07] 1530 printf(__cil_tmp14); [ 0:07] 1531 } [ 0:07] 1532 if (floorButtons_0) { [ 0:07] 1533 { [ 0:07] 1534 __cil_tmp15 = (char const * __restrict )" %i"; [ 0:07] 1535 printf(__cil_tmp15, 0); [ 0:07] 1536 } [ 0:07] 1537 } else { [ 0:07] 1538 [ 0:07] 1539 } [ 0:07] 1540 if (floorButtons_1) { [ 0:07] 1541 { [ 0:07] 1542 __cil_tmp16 = (char const * __restrict )" %i"; [ 0:07] 1543 printf(__cil_tmp16, 1); [ 0:07] 1544 } [ 0:07] 1545 } else { [ 0:07] 1546 [ 0:07] 1547 } [ 0:07] 1548 if (floorButtons_2) { [ 0:07] 1549 { [ 0:07] 1550 __cil_tmp17 = (char const * __restrict )" %i"; [ 0:07] 1551 printf(__cil_tmp17, 2); [ 0:07] 1552 } [ 0:07] 1553 } else { [ 0:07] 1554 [ 0:07] 1555 } [ 0:07] 1556 if (floorButtons_3) { [ 0:07] 1557 { [ 0:07] 1558 __cil_tmp18 = (char const * __restrict )" %i"; [ 0:07] 1559 printf(__cil_tmp18, 3); [ 0:07] 1560 } [ 0:07] 1561 } else { [ 0:07] 1562 [ 0:07] 1563 } [ 0:07] 1564 if (floorButtons_4) { [ 0:07] 1565 { [ 0:07] 1566 __cil_tmp19 = (char const * __restrict )" %i"; [ 0:07] 1567 printf(__cil_tmp19, 4); [ 0:07] 1568 } [ 0:07] 1569 } else { [ 0:07] 1570 [ 0:07] 1571 } [ 0:07] 1572 { [ 0:07] 1573 __cil_tmp20 = (char const * __restrict )" F_p:"; [ 0:07] 1574 printf(__cil_tmp20); [ 0:07] 1575 tmp = isFloorCalling(0); [ 0:07] 1576 } [ 0:07] 1577 if (tmp) { [ 0:07] 1578 { [ 0:07] 1579 __cil_tmp21 = (char const * __restrict )" %i"; [ 0:07] 1580 printf(__cil_tmp21, 0); [ 0:07] 1581 } [ 0:07] 1582 } else { [ 0:07] 1583 [ 0:07] 1584 } [ 0:07] 1585 { [ 0:07] 1586 tmp___0 = isFloorCalling(1); [ 0:07] 1587 } [ 0:07] 1588 if (tmp___0) { [ 0:07] 1589 { [ 0:07] 1590 __cil_tmp22 = (char const * __restrict )" %i"; [ 0:07] 1591 printf(__cil_tmp22, 1); [ 0:07] 1592 } [ 0:07] 1593 } else { [ 0:07] 1594 [ 0:07] 1595 } [ 0:07] 1596 { [ 0:07] 1597 tmp___1 = isFloorCalling(2); [ 0:07] 1598 } [ 0:07] 1599 if (tmp___1) { [ 0:07] 1600 { [ 0:07] 1601 __cil_tmp23 = (char const * __restrict )" %i"; [ 0:07] 1602 printf(__cil_tmp23, 2); [ 0:07] 1603 } [ 0:07] 1604 } else { [ 0:07] 1605 [ 0:07] 1606 } [ 0:07] 1607 { [ 0:07] 1608 tmp___2 = isFloorCalling(3); [ 0:07] 1609 } [ 0:07] 1610 if (tmp___2) { [ 0:07] 1611 { [ 0:07] 1612 __cil_tmp24 = (char const * __restrict )" %i"; [ 0:07] 1613 printf(__cil_tmp24, 3); [ 0:07] 1614 } [ 0:07] 1615 } else { [ 0:07] 1616 [ 0:07] 1617 } [ 0:07] 1618 { [ 0:07] 1619 tmp___3 = isFloorCalling(4); [ 0:07] 1620 } [ 0:07] 1621 if (tmp___3) { [ 0:07] 1622 { [ 0:07] 1623 __cil_tmp25 = (char const * __restrict )" %i"; [ 0:07] 1624 printf(__cil_tmp25, 4); [ 0:07] 1625 } [ 0:07] 1626 } else { [ 0:07] 1627 [ 0:07] 1628 } [ 0:07] 1629 { [ 0:07] 1630 __cil_tmp26 = (char const * __restrict )"\n"; [ 0:07] 1631 printf(__cil_tmp26); [ 0:07] 1632 } [ 0:07] 1633 return; [ 0:07] 1634 } [ 0:07] 1635 } [ 0:07] 1636 void printState(void) [ 0:07] 1637 { int tmp ; [ 0:07] 1638 char const * __restrict __cil_tmp2 ; [ 0:07] 1639 [ 0:07] 1640 { [ 0:07] 1641 { [ 0:07] 1642 tmp = isBlocked(); [ 0:07] 1643 } [ 0:07] 1644 if (tmp) { [ 0:07] 1645 { [ 0:07] 1646 __cil_tmp2 = (char const * __restrict )"Blocked "; [ 0:07] 1647 printf(__cil_tmp2); [ 0:07] 1648 } [ 0:07] 1649 } else { [ 0:07] 1650 [ 0:07] 1651 } [ 0:07] 1652 { [ 0:07] 1653 printState__wrappee__weight(); [ 0:07] 1654 } [ 0:07] 1655 return; [ 0:07] 1656 } [ 0:07] 1657 } [ 0:07] 1658 int existInLiftCallsInDirection(int d ) [ 0:07] 1659 { int retValue_acc ; [ 0:07] 1660 int i ; [ 0:07] 1661 int i___0 ; [ 0:07] 1662 [ 0:07] 1663 { [ 0:07] 1664 if (d == 1) { [ 0:07] 1665 i = 0; [ 0:07] 1666 i = currentFloorID + 1; [ 0:07] 1667 { [ 0:07] 1668 while (1) { [ 0:07] 1669 while_2_continue: /* CIL Label */ ; [ 0:07] 1670 if (i < 5) { [ 0:07] 1671 [ 0:07] 1672 } else { [ 0:07] 1673 goto while_2_break; [ 0:07] 1674 } [ 0:07] 1675 if (i == 0) { [ 0:07] 1676 if (floorButtons_0) { [ 0:07] 1677 retValue_acc = 1; [ 0:07] 1678 return (retValue_acc); [ 0:07] 1679 } else { [ 0:07] 1680 goto _L___2; [ 0:07] 1681 } [ 0:07] 1682 } else { [ 0:07] 1683 _L___2: /* CIL Label */ [ 0:07] 1684 if (i == 1) { [ 0:07] 1685 if (floorButtons_1) { [ 0:07] 1686 retValue_acc = 1; [ 0:07] 1687 return (retValue_acc); [ 0:07] 1688 } else { [ 0:07] 1689 goto _L___1; [ 0:07] 1690 } [ 0:07] 1691 } else { [ 0:07] 1692 _L___1: /* CIL Label */ [ 0:07] 1693 if (i == 2) { [ 0:07] 1694 if (floorButtons_2) { [ 0:07] 1695 retValue_acc = 1; [ 0:07] 1696 return (retValue_acc); [ 0:07] 1697 } else { [ 0:07] 1698 goto _L___0; [ 0:07] 1699 } [ 0:07] 1700 } else { [ 0:07] 1701 _L___0: /* CIL Label */ [ 0:07] 1702 if (i == 3) { [ 0:07] 1703 if (floorButtons_3) { [ 0:07] 1704 retValue_acc = 1; [ 0:07] 1705 return (retValue_acc); [ 0:07] 1706 } else { [ 0:07] 1707 goto _L; [ 0:07] 1708 } [ 0:07] 1709 } else { [ 0:07] 1710 _L: /* CIL Label */ [ 0:07] 1711 if (i == 4) { [ 0:07] 1712 if (floorButtons_4) { [ 0:07] 1713 retValue_acc = 1; [ 0:07] 1714 return (retValue_acc); [ 0:07] 1715 } else { [ 0:07] 1716 [ 0:07] 1717 } [ 0:07] 1718 } else { [ 0:07] 1719 [ 0:07] 1720 } [ 0:07] 1721 } [ 0:07] 1722 } [ 0:07] 1723 } [ 0:07] 1724 } [ 0:07] 1725 i = i + 1; [ 0:07] 1726 } [ 0:07] 1727 while_2_break: /* CIL Label */ ; [ 0:07] 1728 } [ 0:07] 1729 } else { [ 0:07] 1730 if (d == 0) { [ 0:07] 1731 i___0 = 0; [ 0:07] 1732 i___0 = currentFloorID - 1; [ 0:07] 1733 { [ 0:07] 1734 while (1) { [ 0:07] 1735 while_3_continue: /* CIL Label */ ; [ 0:07] 1736 if (i___0 >= 0) { [ 0:07] 1737 [ 0:07] 1738 } else { [ 0:07] 1739 goto while_3_break; [ 0:07] 1740 } [ 0:07] 1741 i___0 = currentFloorID + 1; [ 0:07] 1742 { [ 0:07] 1743 while (1) { [ 0:07] 1744 while_4_continue: /* CIL Label */ ; [ 0:07] 1745 if (i___0 < 5) { [ 0:07] 1746 [ 0:07] 1747 } else { [ 0:07] 1748 goto while_4_break; [ 0:07] 1749 } [ 0:07] 1750 if (i___0 == 0) { [ 0:07] 1751 if (floorButtons_0) { [ 0:07] 1752 retValue_acc = 1; [ 0:07] 1753 return (retValue_acc); [ 0:07] 1754 } else { [ 0:07] 1755 goto _L___6; [ 0:07] 1756 } [ 0:07] 1757 } else { [ 0:07] 1758 _L___6: /* CIL Label */ [ 0:07] 1759 if (i___0 == 1) { [ 0:07] 1760 if (floorButtons_1) { [ 0:07] 1761 retValue_acc = 1; [ 0:07] 1762 return (retValue_acc); [ 0:07] 1763 } else { [ 0:07] 1764 goto _L___5; [ 0:07] 1765 } [ 0:07] 1766 } else { [ 0:07] 1767 _L___5: /* CIL Label */ [ 0:07] 1768 if (i___0 == 2) { [ 0:07] 1769 if (floorButtons_2) { [ 0:07] 1770 retValue_acc = 1; [ 0:07] 1771 return (retValue_acc); [ 0:07] 1772 } else { [ 0:07] 1773 goto _L___4; [ 0:07] 1774 } [ 0:07] 1775 } else { [ 0:07] 1776 _L___4: /* CIL Label */ [ 0:07] 1777 if (i___0 == 3) { [ 0:07] 1778 if (floorButtons_3) { [ 0:07] 1779 retValue_acc = 1; [ 0:07] 1780 return (retValue_acc); [ 0:07] 1781 } else { [ 0:07] 1782 goto _L___3; [ 0:07] 1783 } [ 0:07] 1784 } else { [ 0:07] 1785 _L___3: /* CIL Label */ [ 0:07] 1786 if (i___0 == 4) { [ 0:07] 1787 if (floorButtons_4) { [ 0:07] 1788 retValue_acc = 1; [ 0:07] 1789 return (retValue_acc); [ 0:07] 1790 } else { [ 0:07] 1791 [ 0:07] 1792 } [ 0:07] 1793 } else { [ 0:07] 1794 [ 0:07] 1795 } [ 0:07] 1796 } [ 0:07] 1797 } [ 0:07] 1798 } [ 0:07] 1799 } [ 0:07] 1800 i___0 = i___0 + 1; [ 0:07] 1801 } [ 0:07] 1802 while_4_break: /* CIL Label */ ; [ 0:07] 1803 } [ 0:07] 1804 i___0 = i___0 - 1; [ 0:07] 1805 } [ 0:07] 1806 while_3_break: /* CIL Label */ ; [ 0:07] 1807 } [ 0:07] 1808 } else { [ 0:07] 1809 [ 0:07] 1810 } [ 0:07] 1811 } [ 0:07] 1812 retValue_acc = 0; [ 0:07] 1813 return (retValue_acc); [ 0:07] 1814 return (retValue_acc); [ 0:07] 1815 } [ 0:07] 1816 } [ 0:07] 1817 #pragma merger(0,"wsllib_check.i","") [ 0:07] 1818 void __automaton_fail(void) [ 0:07] 1819 { [ 0:07] 1820 [ 0:07] 1821 { [ 0:07] 1822 ERROR: __VERIFIER_error(); /* ERROR */ [ 0:07] 1823 return; [ 0:07] 1824 } [ 0:07] 1825 } [ 0:07] 1826 #pragma merger(0,"libacc.i","") [ 0:07] 1827 extern __attribute__((__nothrow__, __noreturn__)) void __assert_fail(char const *__assertion , [ 0:07] 1828 char const *__file , [ 0:07] 1829 unsigned int __line , [ 0:07] 1830 char const *__function ) ; [ 0:07] 1831 extern __attribute__((__nothrow__)) void *malloc(size_t __size ) __attribute__((__malloc__)) ; [ 0:07] 1832 extern __attribute__((__nothrow__)) void free(void *__ptr ) ; [ 0:07] 1833 void __utac__exception__cf_handler_set(void *exception , int (*cflow_func)(int , [ 0:07] 1834 int ) , [ 0:07] 1835 int val ) [ 0:07] 1836 { struct __UTAC__EXCEPTION *excep ; [ 0:07] 1837 struct __UTAC__CFLOW_FUNC *cf ; [ 0:07] 1838 void *tmp ; [ 0:07] 1839 unsigned long __cil_tmp7 ; [ 0:07] 1840 unsigned long __cil_tmp8 ; [ 0:07] 1841 unsigned long __cil_tmp9 ; [ 0:07] 1842 unsigned long __cil_tmp10 ; [ 0:07] 1843 unsigned long __cil_tmp11 ; [ 0:07] 1844 unsigned long __cil_tmp12 ; [ 0:07] 1845 unsigned long __cil_tmp13 ; [ 0:07] 1846 unsigned long __cil_tmp14 ; [ 0:07] 1847 int (**mem_15)(int , int ) ; [ 0:07] 1848 int *mem_16 ; [ 0:07] 1849 struct __UTAC__CFLOW_FUNC **mem_17 ; [ 0:07] 1850 struct __UTAC__CFLOW_FUNC **mem_18 ; [ 0:07] 1851 struct __UTAC__CFLOW_FUNC **mem_19 ; [ 0:07] 1852 [ 0:07] 1853 { [ 0:07] 1854 { [ 0:07] 1855 excep = (struct __UTAC__EXCEPTION *)exception; [ 0:07] 1856 tmp = malloc(24UL); [ 0:07] 1857 cf = (struct __UTAC__CFLOW_FUNC *)tmp; [ 0:07] 1858 mem_15 = (int (**)(int , int ))cf; [ 0:07] 1859 *mem_15 = cflow_func; [ 0:07] 1860 __cil_tmp7 = (unsigned long )cf; [ 0:07] 1861 __cil_tmp8 = __cil_tmp7 + 8; [ 0:07] 1862 mem_16 = (int *)__cil_tmp8; [ 0:07] 1863 *mem_16 = val; [ 0:07] 1864 __cil_tmp9 = (unsigned long )cf; [ 0:07] 1865 __cil_tmp10 = __cil_tmp9 + 16; [ 0:07] 1866 __cil_tmp11 = (unsigned long )excep; [ 0:07] 1867 __cil_tmp12 = __cil_tmp11 + 24; [ 0:07] 1868 mem_17 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp10; [ 0:07] 1869 mem_18 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp12; [ 0:07] 1870 *mem_17 = *mem_18; [ 0:07] 1871 __cil_tmp13 = (unsigned long )excep; [ 0:07] 1872 __cil_tmp14 = __cil_tmp13 + 24; [ 0:07] 1873 mem_19 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp14; [ 0:07] 1874 *mem_19 = cf; [ 0:07] 1875 } [ 0:07] 1876 return; [ 0:07] 1877 } [ 0:07] 1878 } [ 0:07] 1879 void __utac__exception__cf_handler_free(void *exception ) [ 0:07] 1880 { struct __UTAC__EXCEPTION *excep ; [ 0:07] 1881 struct __UTAC__CFLOW_FUNC *cf ; [ 0:07] 1882 struct __UTAC__CFLOW_FUNC *tmp ; [ 0:07] 1883 unsigned long __cil_tmp5 ; [ 0:07] 1884 unsigned long __cil_tmp6 ; [ 0:07] 1885 struct __UTAC__CFLOW_FUNC *__cil_tmp7 ; [ 0:07] 1886 unsigned long __cil_tmp8 ; [ 0:07] 1887 unsigned long __cil_tmp9 ; [ 0:07] 1888 unsigned long __cil_tmp10 ; [ 0:07] 1889 unsigned long __cil_tmp11 ; [ 0:07] 1890 void *__cil_tmp12 ; [ 0:07] 1891 unsigned long __cil_tmp13 ; [ 0:07] 1892 unsigned long __cil_tmp14 ; [ 0:07] 1893 struct __UTAC__CFLOW_FUNC **mem_15 ; [ 0:07] 1894 struct __UTAC__CFLOW_FUNC **mem_16 ; [ 0:07] 1895 struct __UTAC__CFLOW_FUNC **mem_17 ; [ 0:07] 1896 [ 0:07] 1897 { [ 0:07] 1898 excep = (struct __UTAC__EXCEPTION *)exception; [ 0:07] 1899 __cil_tmp5 = (unsigned long )excep; [ 0:07] 1900 __cil_tmp6 = __cil_tmp5 + 24; [ 0:07] 1901 mem_15 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp6; [ 0:07] 1902 cf = *mem_15; [ 0:07] 1903 { [ 0:07] 1904 while (1) { [ 0:07] 1905 while_5_continue: /* CIL Label */ ; [ 0:07] 1906 { [ 0:07] 1907 __cil_tmp7 = (struct __UTAC__CFLOW_FUNC *)0; [ 0:07] 1908 __cil_tmp8 = (unsigned long )__cil_tmp7; [ 0:07] 1909 __cil_tmp9 = (unsigned long )cf; [ 0:07] 1910 if (__cil_tmp9 != __cil_tmp8) { [ 0:07] 1911 [ 0:07] 1912 } else { [ 0:07] 1913 goto while_5_break; [ 0:07] 1914 } [ 0:07] 1915 } [ 0:07] 1916 { [ 0:07] 1917 tmp = cf; [ 0:07] 1918 __cil_tmp10 = (unsigned long )cf; [ 0:07] 1919 __cil_tmp11 = __cil_tmp10 + 16; [ 0:07] 1920 mem_16 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp11; [ 0:07] 1921 cf = *mem_16; [ 0:07] 1922 __cil_tmp12 = (void *)tmp; [ 0:07] 1923 free(__cil_tmp12); [ 0:07] 1924 } [ 0:07] 1925 } [ 0:07] 1926 while_5_break: /* CIL Label */ ; [ 0:07] 1927 } [ 0:07] 1928 __cil_tmp13 = (unsigned long )excep; [ 0:07] 1929 __cil_tmp14 = __cil_tmp13 + 24; [ 0:07] 1930 mem_17 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp14; [ 0:07] 1931 *mem_17 = (struct __UTAC__CFLOW_FUNC *)0; [ 0:07] 1932 return; [ 0:07] 1933 } [ 0:07] 1934 } [ 0:07] 1935 void __utac__exception__cf_handler_reset(void *exception ) [ 0:07] 1936 { struct __UTAC__EXCEPTION *excep ; [ 0:07] 1937 struct __UTAC__CFLOW_FUNC *cf ; [ 0:07] 1938 unsigned long __cil_tmp5 ; [ 0:07] 1939 unsigned long __cil_tmp6 ; [ 0:07] 1940 struct __UTAC__CFLOW_FUNC *__cil_tmp7 ; [ 0:07] 1941 unsigned long __cil_tmp8 ; [ 0:07] 1942 unsigned long __cil_tmp9 ; [ 0:07] 1943 int (*__cil_tmp10)(int , int ) ; [ 0:07] 1944 unsigned long __cil_tmp11 ; [ 0:07] 1945 unsigned long __cil_tmp12 ; [ 0:07] 1946 int __cil_tmp13 ; [ 0:07] 1947 unsigned long __cil_tmp14 ; [ 0:07] 1948 unsigned long __cil_tmp15 ; [ 0:07] 1949 struct __UTAC__CFLOW_FUNC **mem_16 ; [ 0:07] 1950 int (**mem_17)(int , int ) ; [ 0:07] 1951 int *mem_18 ; [ 0:07] 1952 struct __UTAC__CFLOW_FUNC **mem_19 ; [ 0:07] 1953 [ 0:07] 1954 { [ 0:07] 1955 excep = (struct __UTAC__EXCEPTION *)exception; [ 0:07] 1956 __cil_tmp5 = (unsigned long )excep; [ 0:07] 1957 __cil_tmp6 = __cil_tmp5 + 24; [ 0:07] 1958 mem_16 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp6; [ 0:07] 1959 cf = *mem_16; [ 0:07] 1960 { [ 0:07] 1961 while (1) { [ 0:07] 1962 while_6_continue: /* CIL Label */ ; [ 0:07] 1963 { [ 0:07] 1964 __cil_tmp7 = (struct __UTAC__CFLOW_FUNC *)0; [ 0:07] 1965 __cil_tmp8 = (unsigned long )__cil_tmp7; [ 0:07] 1966 __cil_tmp9 = (unsigned long )cf; [ 0:07] 1967 if (__cil_tmp9 != __cil_tmp8) { [ 0:07] 1968 [ 0:07] 1969 } else { [ 0:07] 1970 goto while_6_break; [ 0:07] 1971 } [ 0:07] 1972 } [ 0:07] 1973 { [ 0:07] 1974 mem_17 = (int (**)(int , int ))cf; [ 0:07] 1975 __cil_tmp10 = *mem_17; [ 0:07] 1976 __cil_tmp11 = (unsigned long )cf; [ 0:07] 1977 __cil_tmp12 = __cil_tmp11 + 8; [ 0:07] 1978 mem_18 = (int *)__cil_tmp12; [ 0:07] 1979 __cil_tmp13 = *mem_18; [ 0:07] 1980 (*__cil_tmp10)(4, __cil_tmp13); [ 0:07] 1981 __cil_tmp14 = (unsigned long )cf; [ 0:07] 1982 __cil_tmp15 = __cil_tmp14 + 16; [ 0:07] 1983 mem_19 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp15; [ 0:07] 1984 cf = *mem_19; [ 0:07] 1985 } [ 0:07] 1986 } [ 0:07] 1987 while_6_break: /* CIL Label */ ; [ 0:07] 1988 } [ 0:07] 1989 { [ 0:07] 1990 __utac__exception__cf_handler_free(exception); [ 0:07] 1991 } [ 0:07] 1992 return; [ 0:07] 1993 } [ 0:07] 1994 } [ 0:07] 1995 void *__utac__error_stack_mgt(void *env , int mode , int count ) ; [ 0:07] 1996 static struct __ACC__ERR *head = (struct __ACC__ERR *)0; [ 0:07] 1997 void *__utac__error_stack_mgt(void *env , int mode , int count ) [ 0:07] 1998 { void *retValue_acc ; [ 0:07] 1999 struct __ACC__ERR *new ; [ 0:07] 2000 void *tmp ; [ 0:07] 2001 struct __ACC__ERR *temp ; [ 0:07] 2002 struct __ACC__ERR *next ; [ 0:07] 2003 void *excep ; [ 0:07] 2004 unsigned long __cil_tmp10 ; [ 0:07] 2005 unsigned long __cil_tmp11 ; [ 0:07] 2006 unsigned long __cil_tmp12 ; [ 0:07] 2007 unsigned long __cil_tmp13 ; [ 0:07] 2008 void *__cil_tmp14 ; [ 0:07] 2009 unsigned long __cil_tmp15 ; [ 0:07] 2010 unsigned long __cil_tmp16 ; [ 0:07] 2011 void *__cil_tmp17 ; [ 0:07] 2012 void **mem_18 ; [ 0:07] 2013 struct __ACC__ERR **mem_19 ; [ 0:07] 2014 struct __ACC__ERR **mem_20 ; [ 0:07] 2015 void **mem_21 ; [ 0:07] 2016 struct __ACC__ERR **mem_22 ; [ 0:07] 2017 void **mem_23 ; [ 0:07] 2018 void **mem_24 ; [ 0:07] 2019 [ 0:07] 2020 { [ 0:07] 2021 if (count == 0) { [ 0:07] 2022 return (retValue_acc); [ 0:07] 2023 } else { [ 0:07] 2024 [ 0:07] 2025 } [ 0:07] 2026 if (mode == 0) { [ 0:07] 2027 { [ 0:07] 2028 tmp = malloc(16UL); [ 0:07] 2029 new = (struct __ACC__ERR *)tmp; [ 0:07] 2030 mem_18 = (void **)new; [ 0:07] 2031 *mem_18 = env; [ 0:07] 2032 __cil_tmp10 = (unsigned long )new; [ 0:07] 2033 __cil_tmp11 = __cil_tmp10 + 8; [ 0:07] 2034 mem_19 = (struct __ACC__ERR **)__cil_tmp11; [ 0:07] 2035 *mem_19 = head; [ 0:07] 2036 head = new; [ 0:07] 2037 retValue_acc = (void *)new; [ 0:07] 2038 } [ 0:07] 2039 return (retValue_acc); [ 0:07] 2040 } else { [ 0:07] 2041 [ 0:07] 2042 } [ 0:07] 2043 if (mode == 1) { [ 0:07] 2044 temp = head; [ 0:07] 2045 { [ 0:07] 2046 while (1) { [ 0:07] 2047 while_7_continue: /* CIL Label */ ; [ 0:07] 2048 if (count > 1) { [ 0:07] 2049 [ 0:07] 2050 } else { [ 0:07] 2051 goto while_7_break; [ 0:07] 2052 } [ 0:07] 2053 { [ 0:07] 2054 __cil_tmp12 = (unsigned long )temp; [ 0:07] 2055 __cil_tmp13 = __cil_tmp12 + 8; [ 0:07] 2056 mem_20 = (struct __ACC__ERR **)__cil_tmp13; [ 0:07] 2057 next = *mem_20; [ 0:07] 2058 mem_21 = (void **)temp; [ 0:07] 2059 excep = *mem_21; [ 0:07] 2060 __cil_tmp14 = (void *)temp; [ 0:07] 2061 free(__cil_tmp14); [ 0:07] 2062 __utac__exception__cf_handler_reset(excep); [ 0:07] 2063 temp = next; [ 0:07] 2064 count = count - 1; [ 0:07] 2065 } [ 0:07] 2066 } [ 0:07] 2067 while_7_break: /* CIL Label */ ; [ 0:07] 2068 } [ 0:07] 2069 { [ 0:07] 2070 __cil_tmp15 = (unsigned long )temp; [ 0:07] 2071 __cil_tmp16 = __cil_tmp15 + 8; [ 0:07] 2072 mem_22 = (struct __ACC__ERR **)__cil_tmp16; [ 0:07] 2073 head = *mem_22; [ 0:07] 2074 mem_23 = (void **)temp; [ 0:07] 2075 excep = *mem_23; [ 0:07] 2076 __cil_tmp17 = (void *)temp; [ 0:07] 2077 free(__cil_tmp17); [ 0:07] 2078 __utac__exception__cf_handler_reset(excep); [ 0:07] 2079 retValue_acc = excep; [ 0:07] 2080 } [ 0:07] 2081 return (retValue_acc); [ 0:07] 2082 } else { [ 0:07] 2083 [ 0:07] 2084 } [ 0:07] 2085 if (mode == 2) { [ 0:07] 2086 if (head) { [ 0:07] 2087 mem_24 = (void **)head; [ 0:07] 2088 retValue_acc = *mem_24; [ 0:07] 2089 return (retValue_acc); [ 0:07] 2090 } else { [ 0:07] 2091 retValue_acc = (void *)0; [ 0:07] 2092 return (retValue_acc); [ 0:07] 2093 } [ 0:07] 2094 } else { [ 0:07] 2095 [ 0:07] 2096 } [ 0:07] 2097 return (retValue_acc); [ 0:07] 2098 } [ 0:07] 2099 } [ 0:07] 2100 void *__utac__get_this_arg(int i , struct JoinPoint *this ) [ 0:07] 2101 { void *retValue_acc ; [ 0:07] 2102 unsigned long __cil_tmp4 ; [ 0:07] 2103 unsigned long __cil_tmp5 ; [ 0:07] 2104 int __cil_tmp6 ; [ 0:07] 2105 int __cil_tmp7 ; [ 0:07] 2106 unsigned long __cil_tmp8 ; [ 0:07] 2107 unsigned long __cil_tmp9 ; [ 0:07] 2108 void **__cil_tmp10 ; [ 0:07] 2109 void **__cil_tmp11 ; [ 0:07] 2110 int *mem_12 ; [ 0:07] 2111 void ***mem_13 ; [ 0:07] 2112 [ 0:07] 2113 { [ 0:07] 2114 if (i > 0) { [ 0:07] 2115 { [ 0:07] 2116 __cil_tmp4 = (unsigned long )this; [ 0:07] 2117 __cil_tmp5 = __cil_tmp4 + 16; [ 0:07] 2118 mem_12 = (int *)__cil_tmp5; [ 0:07] 2119 __cil_tmp6 = *mem_12; [ 0:07] 2120 if (i <= __cil_tmp6) { [ 0:07] 2121 [ 0:07] 2122 } else { [ 0:07] 2123 { [ 0:07] 2124 __assert_fail("i > 0 && i <= this->argsCount", "libacc.c", [ 0:07] 2125 123U, "__utac__get_this_arg"); [ 0:07] 2126 } [ 0:07] 2127 } [ 0:07] 2128 } [ 0:07] 2129 } else { [ 0:07] 2130 { [ 0:07] 2131 __assert_fail("i > 0 && i <= this->argsCount", "libacc.c", [ 0:07] 2132 123U, "__utac__get_this_arg"); [ 0:07] 2133 } [ 0:07] 2134 } [ 0:07] 2135 __cil_tmp7 = i - 1; [ 0:07] 2136 __cil_tmp8 = (unsigned long )this; [ 0:07] 2137 __cil_tmp9 = __cil_tmp8 + 8; [ 0:07] 2138 mem_13 = (void ***)__cil_tmp9; [ 0:07] 2139 __cil_tmp10 = *mem_13; [ 0:07] 2140 __cil_tmp11 = __cil_tmp10 + __cil_tmp7; [ 0:07] 2141 retValue_acc = *__cil_tmp11; [ 0:07] 2142 return (retValue_acc); [ 0:07] 2143 return (retValue_acc); [ 0:07] 2144 } [ 0:07] 2145 } [ 0:07] 2146 char const *__utac__get_this_argtype(int i , struct JoinPoint *this ) [ 0:07] 2147 { char const *retValue_acc ; [ 0:07] 2148 unsigned long __cil_tmp4 ; [ 0:07] 2149 unsigned long __cil_tmp5 ; [ 0:07] 2150 int __cil_tmp6 ; [ 0:07] 2151 int __cil_tmp7 ; [ 0:07] 2152 unsigned long __cil_tmp8 ; [ 0:07] 2153 unsigned long __cil_tmp9 ; [ 0:07] 2154 char const **__cil_tmp10 ; [ 0:07] 2155 char const **__cil_tmp11 ; [ 0:07] 2156 int *mem_12 ; [ 0:07] 2157 char const ***mem_13 ; [ 0:07] 2158 [ 0:07] 2159 { [ 0:07] 2160 if (i > 0) { [ 0:07] 2161 { [ 0:07] 2162 __cil_tmp4 = (unsigned long )this; [ 0:07] 2163 __cil_tmp5 = __cil_tmp4 + 16; [ 0:07] 2164 mem_12 = (int *)__cil_tmp5; [ 0:07] 2165 __cil_tmp6 = *mem_12; [ 0:07] 2166 if (i <= __cil_tmp6) { [ 0:07] 2167 [ 0:07] 2168 } else { [ 0:07] 2169 { [ 0:07] 2170 __assert_fail("i > 0 && i <= this->argsCount", "libacc.c", [ 0:07] 2171 131U, "__utac__get_this_argtype"); [ 0:07] 2172 } [ 0:07] 2173 } [ 0:07] 2174 } [ 0:07] 2175 } else { [ 0:07] 2176 { [ 0:07] 2177 __assert_fail("i > 0 && i <= this->argsCount", "libacc.c", [ 0:07] 2178 131U, "__utac__get_this_argtype"); [ 0:07] 2179 } [ 0:07] 2180 } [ 0:07] 2181 __cil_tmp7 = i - 1; [ 0:07] 2182 __cil_tmp8 = (unsigned long )this; [ 0:07] 2183 __cil_tmp9 = __cil_tmp8 + 24; [ 0:07] 2184 mem_13 = (char const ***)__cil_tmp9; [ 0:07] 2185 __cil_tmp10 = *mem_13; [ 0:07] 2186 __cil_tmp11 = __cil_tmp10 + __cil_tmp7; [ 0:07] 2187 retValue_acc = *__cil_tmp11; [ 0:07] 2188 return (retValue_acc); [ 0:07] 2189 return (retValue_acc); [ 0:07] 2190 } [ 0:07] 2191 } [ 0:07] 2192 #pragma merger(0,"Test.i","") [ 0:07] 2193 extern __attribute__((__nothrow__, __noreturn__)) void exit(int __status ) ; [ 0:07] 2194 int get_nondetMinMax07(void) [ 0:07] 2195 { int retValue_acc ; [ 0:07] 2196 int nd ; [ 0:07] 2197 nd = __VERIFIER_nondet_int(); [ 0:07] 2198 [ 0:07] 2199 { [ 0:07] 2200 if (nd == 0) { [ 0:07] 2201 retValue_acc = 0; [ 0:07] 2202 return (retValue_acc); [ 0:07] 2203 } else { [ 0:07] 2204 if (nd == 1) { [ 0:07] 2205 retValue_acc = 1; [ 0:07] 2206 return (retValue_acc); [ 0:07] 2207 } else { [ 0:07] 2208 if (nd == 2) { [ 0:07] 2209 retValue_acc = 2; [ 0:07] 2210 return (retValue_acc); [ 0:07] 2211 } else { [ 0:07] 2212 if (nd == 3) { [ 0:07] 2213 retValue_acc = 3; [ 0:07] 2214 return (retValue_acc); [ 0:07] 2215 } else { [ 0:07] 2216 if (nd == 4) { [ 0:07] 2217 retValue_acc = 4; [ 0:07] 2218 return (retValue_acc); [ 0:07] 2219 } else { [ 0:07] 2220 if (nd == 5) { [ 0:07] 2221 retValue_acc = 5; [ 0:07] 2222 return (retValue_acc); [ 0:07] 2223 } else { [ 0:07] 2224 if (nd == 6) { [ 0:07] 2225 retValue_acc = 6; [ 0:07] 2226 return (retValue_acc); [ 0:07] 2227 } else { [ 0:07] 2228 if (nd == 7) { [ 0:07] 2229 retValue_acc = 7; [ 0:07] 2230 return (retValue_acc); [ 0:07] 2231 } else { [ 0:07] 2232 { [ 0:07] 2233 exit(0); [ 0:07] 2234 } [ 0:07] 2235 } [ 0:07] 2236 } [ 0:07] 2237 } [ 0:07] 2238 } [ 0:07] 2239 } [ 0:07] 2240 } [ 0:07] 2241 } [ 0:07] 2242 } [ 0:07] 2243 return (retValue_acc); [ 0:07] 2244 } [ 0:07] 2245 } [ 0:07] 2246 void bobCall(void) [ 0:07] 2247 { int tmp ; [ 0:07] 2248 [ 0:07] 2249 { [ 0:07] 2250 { [ 0:07] 2251 tmp = getOrigin(0); [ 0:07] 2252 initPersonOnFloor(0, tmp); [ 0:07] 2253 } [ 0:07] 2254 return; [ 0:07] 2255 } [ 0:07] 2256 } [ 0:07] 2257 void aliceCall(void) [ 0:07] 2258 { int tmp ; [ 0:07] 2259 [ 0:07] 2260 { [ 0:07] 2261 { [ 0:07] 2262 tmp = getOrigin(1); [ 0:07] 2263 initPersonOnFloor(1, tmp); [ 0:07] 2264 } [ 0:07] 2265 return; [ 0:07] 2266 } [ 0:07] 2267 } [ 0:07] 2268 void angelinaCall(void) [ 0:07] 2269 { int tmp ; [ 0:07] 2270 [ 0:07] 2271 { [ 0:07] 2272 { [ 0:07] 2273 tmp = getOrigin(2); [ 0:07] 2274 initPersonOnFloor(2, tmp); [ 0:07] 2275 } [ 0:07] 2276 return; [ 0:07] 2277 } [ 0:07] 2278 } [ 0:07] 2279 void chuckCall(void) [ 0:07] 2280 { int tmp ; [ 0:07] 2281 [ 0:07] 2282 { [ 0:07] 2283 { [ 0:07] 2284 tmp = getOrigin(3); [ 0:07] 2285 initPersonOnFloor(3, tmp); [ 0:07] 2286 } [ 0:07] 2287 return; [ 0:07] 2288 } [ 0:07] 2289 } [ 0:07] 2290 void monicaCall(void) [ 0:07] 2291 { int tmp ; [ 0:07] 2292 [ 0:07] 2293 { [ 0:07] 2294 { [ 0:07] 2295 tmp = getOrigin(4); [ 0:07] 2296 initPersonOnFloor(4, tmp); [ 0:07] 2297 } [ 0:07] 2298 return; [ 0:07] 2299 } [ 0:07] 2300 } [ 0:07] 2301 void bigMacCall(void) [ 0:07] 2302 { int tmp ; [ 0:07] 2303 [ 0:07] 2304 { [ 0:07] 2305 { [ 0:07] 2306 tmp = getOrigin(5); [ 0:07] 2307 initPersonOnFloor(5, tmp); [ 0:07] 2308 } [ 0:07] 2309 return; [ 0:07] 2310 } [ 0:07] 2311 } [ 0:07] 2312 void threeTS(void) [ 0:07] 2313 { [ 0:07] 2314 [ 0:07] 2315 { [ 0:07] 2316 { [ 0:07] 2317 timeShift(); [ 0:07] 2318 timeShift(); [ 0:07] 2319 timeShift(); [ 0:07] 2320 } [ 0:07] 2321 return; [ 0:07] 2322 } [ 0:07] 2323 } [ 0:07] 2324 void cleanup(void) [ 0:07] 2325 { int i ; [ 0:07] 2326 int tmp ; [ 0:07] 2327 int tmp___0 ; [ 0:07] 2328 int __cil_tmp4 ; [ 0:07] 2329 [ 0:07] 2330 { [ 0:07] 2331 { [ 0:07] 2332 timeShift(); [ 0:07] 2333 i = 0; [ 0:07] 2334 } [ 0:07] 2335 { [ 0:07] 2336 while (1) { [ 0:07] 2337 while_8_continue: /* CIL Label */ ; [ 0:07] 2338 { [ 0:07] 2339 __cil_tmp4 = cleanupTimeShifts - 1; [ 0:07] 2340 if (i < __cil_tmp4) { [ 0:07] 2341 { [ 0:07] 2342 tmp___0 = isBlocked(); [ 0:07] 2343 } [ 0:07] 2344 if (tmp___0 != 1) { [ 0:07] 2345 [ 0:07] 2346 } else { [ 0:07] 2347 goto while_8_break; [ 0:07] 2348 } [ 0:07] 2349 } else { [ 0:07] 2350 goto while_8_break; [ 0:07] 2351 } [ 0:07] 2352 } [ 0:07] 2353 { [ 0:07] 2354 tmp = isIdle(); [ 0:07] 2355 } [ 0:07] 2356 if (tmp) { [ 0:07] 2357 return; [ 0:07] 2358 } else { [ 0:07] 2359 { [ 0:07] 2360 timeShift(); [ 0:07] 2361 } [ 0:07] 2362 } [ 0:07] 2363 i = i + 1; [ 0:07] 2364 } [ 0:07] 2365 while_8_break: /* CIL Label */ ; [ 0:07] 2366 } [ 0:07] 2367 return; [ 0:07] 2368 } [ 0:07] 2369 } [ 0:07] 2370 void randomSequenceOfActions(void) [ 0:07] 2371 { int maxLength ; [ 0:07] 2372 int tmp ; [ 0:07] 2373 int counter ; [ 0:07] 2374 int action ; [ 0:07] 2375 int tmp___0 ; [ 0:07] 2376 int origin ; [ 0:07] 2377 int tmp___1 ; [ 0:07] 2378 int tmp___2 ; [ 0:07] 2379 [ 0:07] 2380 { [ 0:07] 2381 { [ 0:07] 2382 maxLength = 4; [ 0:07] 2383 tmp = __VERIFIER_nondet_int(); [ 0:07] 2384 } [ 0:07] 2385 if (tmp) { [ 0:07] 2386 { [ 0:07] 2387 initTopDown(); [ 0:07] 2388 } [ 0:07] 2389 } else { [ 0:07] 2390 { [ 0:07] 2391 initBottomUp(); [ 0:07] 2392 } [ 0:07] 2393 } [ 0:07] 2394 counter = 0; [ 0:07] 2395 { [ 0:07] 2396 while (1) { [ 0:07] 2397 while_9_continue: /* CIL Label */ ; [ 0:07] 2398 if (counter < maxLength) { [ 0:07] 2399 [ 0:07] 2400 } else { [ 0:07] 2401 goto while_9_break; [ 0:07] 2402 } [ 0:07] 2403 { [ 0:07] 2404 counter = counter + 1; [ 0:07] 2405 tmp___0 = get_nondetMinMax07(); [ 0:07] 2406 action = tmp___0; [ 0:07] 2407 } [ 0:07] 2408 if (action < 6) { [ 0:07] 2409 { [ 0:07] 2410 tmp___1 = getOrigin(action); [ 0:07] 2411 origin = tmp___1; [ 0:07] 2412 initPersonOnFloor(action, origin); [ 0:07] 2413 } [ 0:07] 2414 } else { [ 0:07] 2415 if (action == 6) { [ 0:07] 2416 { [ 0:07] 2417 timeShift(); [ 0:07] 2418 } [ 0:07] 2419 } else { [ 0:07] 2420 if (action == 7) { [ 0:07] 2421 { [ 0:07] 2422 timeShift(); [ 0:07] 2423 timeShift(); [ 0:07] 2424 timeShift(); [ 0:07] 2425 } [ 0:07] 2426 } else { [ 0:07] 2427 [ 0:07] 2428 } [ 0:07] 2429 } [ 0:07] 2430 } [ 0:07] 2431 { [ 0:07] 2432 tmp___2 = isBlocked(); [ 0:07] 2433 } [ 0:07] 2434 if (tmp___2) { [ 0:07] 2435 return; [ 0:07] 2436 } else { [ 0:07] 2437 [ 0:07] 2438 } [ 0:07] 2439 } [ 0:07] 2440 while_9_break: /* CIL Label */ ; [ 0:07] 2441 } [ 0:07] 2442 { [ 0:07] 2443 cleanup(); [ 0:07] 2444 } [ 0:07] 2445 return; [ 0:07] 2446 } [ 0:07] 2447 } [ 0:07] 2448 void runTest_Simple(void) [ 0:07] 2449 { [ 0:07] 2450 [ 0:07] 2451 { [ 0:07] 2452 { [ 0:07] 2453 bigMacCall(); [ 0:07] 2454 angelinaCall(); [ 0:07] 2455 cleanup(); [ 0:07] 2456 } [ 0:07] 2457 return; [ 0:07] 2458 } [ 0:07] 2459 } [ 0:07] 2460 void Specification1(void) [ 0:07] 2461 { [ 0:07] 2462 [ 0:07] 2463 { [ 0:07] 2464 { [ 0:07] 2465 bigMacCall(); [ 0:07] 2466 angelinaCall(); [ 0:07] 2467 cleanup(); [ 0:07] 2468 } [ 0:07] 2469 return; [ 0:07] 2470 } [ 0:07] 2471 } [ 0:07] 2472 void Specification2(void) [ 0:07] 2473 { [ 0:07] 2474 [ 0:07] 2475 { [ 0:07] 2476 { [ 0:07] 2477 bigMacCall(); [ 0:07] 2478 cleanup(); [ 0:07] 2479 } [ 0:07] 2480 return; [ 0:07] 2481 } [ 0:07] 2482 } [ 0:07] 2483 void Specification3(void) [ 0:07] 2484 { [ 0:07] 2485 [ 0:07] 2486 { [ 0:07] 2487 { [ 0:07] 2488 bobCall(); [ 0:07] 2489 timeShift(); [ 0:07] 2490 timeShift(); [ 0:07] 2491 timeShift(); [ 0:07] 2492 timeShift(); [ 0:07] 2493 timeShift(); [ 0:07] 2494 bobCall(); [ 0:07] 2495 cleanup(); [ 0:07] 2496 } [ 0:07] 2497 return; [ 0:07] 2498 } [ 0:07] 2499 } [ 0:07] 2500 void setup(void) [ 0:07] 2501 { [ 0:07] 2502 [ 0:07] 2503 { [ 0:07] 2504 return; [ 0:07] 2505 } [ 0:07] 2506 } [ 0:07] 2507 void __utac_acc__Specification2_spec__1(void) ; [ 0:07] 2508 void __utac_acc__Specification2_spec__4(void) ; [ 0:07] 2509 void runTest(void) [ 0:07] 2510 { [ 0:07] 2511 [ 0:07] 2512 { [ 0:07] 2513 { [ 0:07] 2514 __utac_acc__Specification2_spec__1(); [ 0:07] 2515 test(); [ 0:07] 2516 __utac_acc__Specification2_spec__4(); [ 0:07] 2517 } [ 0:07] 2518 return; [ 0:07] 2519 } [ 0:07] 2520 } [ 0:07] 2521 int main(void) [ 0:07] 2522 { int retValue_acc ; [ 0:07] 2523 int tmp ; [ 0:07] 2524 [ 0:07] 2525 { [ 0:07] 2526 { [ 0:07] 2527 select_helpers(); [ 0:07] 2528 select_features(); [ 0:07] 2529 tmp = valid_product(); [ 0:07] 2530 } [ 0:07] 2531 if (tmp) { [ 0:07] 2532 { [ 0:07] 2533 setup(); [ 0:07] 2534 runTest(); [ 0:07] 2535 } [ 0:07] 2536 } else { [ 0:07] 2537 [ 0:07] 2538 } [ 0:07] 2539 retValue_acc = 0; [ 0:07] 2540 return (retValue_acc); [ 0:07] 2541 return (retValue_acc); [ 0:07] 2542 } [ 0:07] 2543 } [ 0:07] 2544 #pragma merger(0,"Specification2_spec.i","") [ 0:07] 2545 int floorButtons_spc2_0 ; [ 0:07] 2546 int floorButtons_spc2_1 ; [ 0:07] 2547 int floorButtons_spc2_2 ; [ 0:07] 2548 int floorButtons_spc2_3 ; [ 0:07] 2549 int floorButtons_spc2_4 ; [ 0:07] 2550 void __utac_acc__Specification2_spec__1(void) [ 0:07] 2551 { [ 0:07] 2552 [ 0:07] 2553 { [ 0:07] 2554 floorButtons_spc2_0 = 0; [ 0:07] 2555 floorButtons_spc2_1 = 0; [ 0:07] 2556 floorButtons_spc2_2 = 0; [ 0:07] 2557 floorButtons_spc2_3 = 0; [ 0:07] 2558 floorButtons_spc2_4 = 0; [ 0:07] 2559 return; [ 0:07] 2560 } [ 0:07] 2561 } [ 0:07] 2562 void __utac_acc__Specification2_spec__2(int floor ) [ 0:07] 2563 { [ 0:07] 2564 [ 0:07] 2565 { [ 0:07] 2566 if (floor == 0) { [ 0:07] 2567 floorButtons_spc2_0 = 1; [ 0:07] 2568 } else { [ 0:07] 2569 if (floor == 1) { [ 0:07] 2570 floorButtons_spc2_1 = 1; [ 0:07] 2571 } else { [ 0:07] 2572 if (floor == 2) { [ 0:07] 2573 floorButtons_spc2_2 = 1; [ 0:07] 2574 } else { [ 0:07] 2575 if (floor == 3) { [ 0:07] 2576 floorButtons_spc2_3 = 1; [ 0:07] 2577 } else { [ 0:07] 2578 if (floor == 4) { [ 0:07] 2579 floorButtons_spc2_4 = 1; [ 0:07] 2580 } else { [ 0:07] 2581 [ 0:07] 2582 } [ 0:07] 2583 } [ 0:07] 2584 } [ 0:07] 2585 } [ 0:07] 2586 } [ 0:07] 2587 return; [ 0:07] 2588 } [ 0:07] 2589 } [ 0:07] 2590 void __utac_acc__Specification2_spec__3(void) [ 0:07] 2591 { int floor ; [ 0:07] 2592 int tmp ; [ 0:07] 2593 int tmp___0 ; [ 0:07] 2594 int tmp___1 ; [ 0:07] 2595 int tmp___2 ; [ 0:07] 2596 int tmp___3 ; [ 0:07] 2597 int tmp___4 ; [ 0:07] 2598 [ 0:07] 2599 { [ 0:07] 2600 { [ 0:07] 2601 tmp = getCurrentFloorID(); [ 0:07] 2602 floor = tmp; [ 0:07] 2603 } [ 0:07] 2604 if (floor == 0) { [ 0:07] 2605 if (floorButtons_spc2_0) { [ 0:07] 2606 { [ 0:07] 2607 tmp___4 = areDoorsOpen(); [ 0:07] 2608 } [ 0:07] 2609 if (tmp___4) { [ 0:07] 2610 floorButtons_spc2_0 = 0; [ 0:07] 2611 } else { [ 0:07] 2612 goto _L___6; [ 0:07] 2613 } [ 0:07] 2614 } else { [ 0:07] 2615 goto _L___6; [ 0:07] 2616 } [ 0:07] 2617 } else { [ 0:07] 2618 _L___6: /* CIL Label */ [ 0:07] 2619 if (floor == 1) { [ 0:07] 2620 if (floorButtons_spc2_1) { [ 0:07] 2621 { [ 0:07] 2622 tmp___3 = areDoorsOpen(); [ 0:07] 2623 } [ 0:07] 2624 if (tmp___3) { [ 0:07] 2625 floorButtons_spc2_1 = 0; [ 0:07] 2626 } else { [ 0:07] 2627 goto _L___4; [ 0:07] 2628 } [ 0:07] 2629 } else { [ 0:07] 2630 goto _L___4; [ 0:07] 2631 } [ 0:07] 2632 } else { [ 0:07] 2633 _L___4: /* CIL Label */ [ 0:07] 2634 if (floor == 2) { [ 0:07] 2635 if (floorButtons_spc2_2) { [ 0:07] 2636 { [ 0:07] 2637 tmp___2 = areDoorsOpen(); [ 0:07] 2638 } [ 0:07] 2639 if (tmp___2) { [ 0:07] 2640 floorButtons_spc2_2 = 0; [ 0:07] 2641 } else { [ 0:07] 2642 goto _L___2; [ 0:07] 2643 } [ 0:07] 2644 } else { [ 0:07] 2645 goto _L___2; [ 0:07] 2646 } [ 0:07] 2647 } else { [ 0:07] 2648 _L___2: /* CIL Label */ [ 0:07] 2649 if (floor == 3) { [ 0:07] 2650 if (floorButtons_spc2_3) { [ 0:07] 2651 { [ 0:07] 2652 tmp___1 = areDoorsOpen(); [ 0:07] 2653 } [ 0:07] 2654 if (tmp___1) { [ 0:07] 2655 floorButtons_spc2_3 = 0; [ 0:07] 2656 } else { [ 0:07] 2657 goto _L___0; [ 0:07] 2658 } [ 0:07] 2659 } else { [ 0:07] 2660 goto _L___0; [ 0:07] 2661 } [ 0:07] 2662 } else { [ 0:07] 2663 _L___0: /* CIL Label */ [ 0:07] 2664 if (floor == 4) { [ 0:07] 2665 if (floorButtons_spc2_4) { [ 0:07] 2666 { [ 0:07] 2667 tmp___0 = areDoorsOpen(); [ 0:07] 2668 } [ 0:07] 2669 if (tmp___0) { [ 0:07] 2670 floorButtons_spc2_4 = 0; [ 0:07] 2671 } else { [ 0:07] 2672 [ 0:07] 2673 } [ 0:07] 2674 } else { [ 0:07] 2675 [ 0:07] 2676 } [ 0:07] 2677 } else { [ 0:07] 2678 [ 0:07] 2679 } [ 0:07] 2680 } [ 0:07] 2681 } [ 0:07] 2682 } [ 0:07] 2683 } [ 0:07] 2684 return; [ 0:07] 2685 } [ 0:07] 2686 } [ 0:07] 2687 void __utac_acc__Specification2_spec__4(void) [ 0:07] 2688 { [ 0:07] 2689 [ 0:07] 2690 { [ 0:07] 2691 if (floorButtons_spc2_0) { [ 0:07] 2692 { [ 0:07] 2693 __automaton_fail(); [ 0:07] 2694 } [ 0:07] 2695 } else { [ 0:07] 2696 if (floorButtons_spc2_1) { [ 0:07] 2697 { [ 0:07] 2698 __automaton_fail(); [ 0:07] 2699 } [ 0:07] 2700 } else { [ 0:07] 2701 if (floorButtons_spc2_2) { [ 0:07] 2702 { [ 0:07] 2703 __automaton_fail(); [ 0:07] 2704 } [ 0:07] 2705 } else { [ 0:07] 2706 if (floorButtons_spc2_3) { [ 0:07] 2707 { [ 0:07] 2708 __automaton_fail(); [ 0:07] 2709 } [ 0:07] 2710 } else { [ 0:07] 2711 if (floorButtons_spc2_4) { [ 0:07] 2712 { [ 0:07] 2713 __automaton_fail(); [ 0:07] 2714 } [ 0:07] 2715 } else { [ 0:07] 2716 [ 0:07] 2717 } [ 0:07] 2718 } [ 0:07] 2719 } [ 0:07] 2720 } [ 0:07] 2721 } [ 0:07] 2722 return; [ 0:07] 2723 } [ 0:07] 2724 } [ 0:07] 2725 #pragma merger(0,"Floor.i","") [ 0:07] 2726 void callOnFloor(int floorID ) ; [ 0:07] 2727 int calls_0 ; [ 0:07] 2728 int calls_1 ; [ 0:07] 2729 int calls_2 ; [ 0:07] 2730 int calls_3 ; [ 0:07] 2731 int calls_4 ; [ 0:07] 2732 int personOnFloor_0_0 ; [ 0:07] 2733 int personOnFloor_0_1 ; [ 0:07] 2734 int personOnFloor_0_2 ; [ 0:07] 2735 int personOnFloor_0_3 ; [ 0:07] 2736 int personOnFloor_0_4 ; [ 0:07] 2737 int personOnFloor_1_0 ; [ 0:07] 2738 int personOnFloor_1_1 ; [ 0:07] 2739 int personOnFloor_1_2 ; [ 0:07] 2740 int personOnFloor_1_3 ; [ 0:07] 2741 int personOnFloor_1_4 ; [ 0:07] 2742 int personOnFloor_2_0 ; [ 0:07] 2743 int personOnFloor_2_1 ; [ 0:07] 2744 int personOnFloor_2_2 ; [ 0:07] 2745 int personOnFloor_2_3 ; [ 0:07] 2746 int personOnFloor_2_4 ; [ 0:07] 2747 int personOnFloor_3_0 ; [ 0:07] 2748 int personOnFloor_3_1 ; [ 0:07] 2749 int personOnFloor_3_2 ; [ 0:07] 2750 int personOnFloor_3_3 ; [ 0:07] 2751 int personOnFloor_3_4 ; [ 0:07] 2752 int personOnFloor_4_0 ; [ 0:07] 2753 int personOnFloor_4_1 ; [ 0:07] 2754 int personOnFloor_4_2 ; [ 0:07] 2755 int personOnFloor_4_3 ; [ 0:07] 2756 int personOnFloor_4_4 ; [ 0:07] 2757 int personOnFloor_5_0 ; [ 0:07] 2758 int personOnFloor_5_1 ; [ 0:07] 2759 int personOnFloor_5_2 ; [ 0:07] 2760 int personOnFloor_5_3 ; [ 0:07] 2761 int personOnFloor_5_4 ; [ 0:07] 2762 void initFloors(void) [ 0:07] 2763 { [ 0:07] 2764 [ 0:07] 2765 { [ 0:07] 2766 calls_0 = 0; [ 0:07] 2767 calls_1 = 0; [ 0:07] 2768 calls_2 = 0; [ 0:07] 2769 calls_3 = 0; [ 0:07] 2770 calls_4 = 0; [ 0:07] 2771 personOnFloor_0_0 = 0; [ 0:07] 2772 personOnFloor_0_1 = 0; [ 0:07] 2773 personOnFloor_0_2 = 0; [ 0:07] 2774 personOnFloor_0_3 = 0; [ 0:07] 2775 personOnFloor_0_4 = 0; [ 0:07] 2776 personOnFloor_1_0 = 0; [ 0:07] 2777 personOnFloor_1_1 = 0; [ 0:07] 2778 personOnFloor_1_2 = 0; [ 0:07] 2779 personOnFloor_1_3 = 0; [ 0:07] 2780 personOnFloor_1_4 = 0; [ 0:07] 2781 personOnFloor_2_0 = 0; [ 0:07] 2782 personOnFloor_2_1 = 0; [ 0:07] 2783 personOnFloor_2_2 = 0; [ 0:07] 2784 personOnFloor_2_3 = 0; [ 0:07] 2785 personOnFloor_2_4 = 0; [ 0:07] 2786 personOnFloor_3_0 = 0; [ 0:07] 2787 personOnFloor_3_1 = 0; [ 0:07] 2788 personOnFloor_3_2 = 0; [ 0:07] 2789 personOnFloor_3_3 = 0; [ 0:07] 2790 personOnFloor_3_4 = 0; [ 0:07] 2791 personOnFloor_4_0 = 0; [ 0:07] 2792 personOnFloor_4_1 = 0; [ 0:07] 2793 personOnFloor_4_2 = 0; [ 0:07] 2794 personOnFloor_4_3 = 0; [ 0:07] 2795 personOnFloor_4_4 = 0; [ 0:07] 2796 personOnFloor_5_0 = 0; [ 0:07] 2797 personOnFloor_5_1 = 0; [ 0:07] 2798 personOnFloor_5_2 = 0; [ 0:07] 2799 personOnFloor_5_3 = 0; [ 0:07] 2800 personOnFloor_5_4 = 0; [ 0:07] 2801 return; [ 0:07] 2802 } [ 0:07] 2803 } [ 0:07] 2804 int isFloorCalling(int floorID ) [ 0:07] 2805 { int retValue_acc ; [ 0:07] 2806 [ 0:07] 2807 { [ 0:07] 2808 if (floorID == 0) { [ 0:07] 2809 retValue_acc = calls_0; [ 0:07] 2810 return (retValue_acc); [ 0:07] 2811 } else { [ 0:07] 2812 if (floorID == 1) { [ 0:07] 2813 retValue_acc = calls_1; [ 0:07] 2814 return (retValue_acc); [ 0:07] 2815 } else { [ 0:07] 2816 if (floorID == 2) { [ 0:07] 2817 retValue_acc = calls_2; [ 0:07] 2818 return (retValue_acc); [ 0:07] 2819 } else { [ 0:07] 2820 if (floorID == 3) { [ 0:07] 2821 retValue_acc = calls_3; [ 0:07] 2822 return (retValue_acc); [ 0:07] 2823 } else { [ 0:07] 2824 if (floorID == 4) { [ 0:07] 2825 retValue_acc = calls_4; [ 0:07] 2826 return (retValue_acc); [ 0:07] 2827 } else { [ 0:07] 2828 [ 0:07] 2829 } [ 0:07] 2830 } [ 0:07] 2831 } [ 0:07] 2832 } [ 0:07] 2833 } [ 0:07] 2834 retValue_acc = 0; [ 0:07] 2835 return (retValue_acc); [ 0:07] 2836 return (retValue_acc); [ 0:07] 2837 } [ 0:07] 2838 } [ 0:07] 2839 void resetCallOnFloor(int floorID ) [ 0:07] 2840 { [ 0:07] 2841 [ 0:07] 2842 { [ 0:07] 2843 if (floorID == 0) { [ 0:07] 2844 calls_0 = 0; [ 0:07] 2845 } else { [ 0:07] 2846 if (floorID == 1) { [ 0:07] 2847 calls_1 = 0; [ 0:07] 2848 } else { [ 0:07] 2849 if (floorID == 2) { [ 0:07] 2850 calls_2 = 0; [ 0:07] 2851 } else { [ 0:07] 2852 if (floorID == 3) { [ 0:07] 2853 calls_3 = 0; [ 0:07] 2854 } else { [ 0:07] 2855 if (floorID == 4) { [ 0:07] 2856 calls_4 = 0; [ 0:07] 2857 } else { [ 0:07] 2858 [ 0:07] 2859 } [ 0:07] 2860 } [ 0:07] 2861 } [ 0:07] 2862 } [ 0:07] 2863 } [ 0:07] 2864 return; [ 0:07] 2865 } [ 0:07] 2866 } [ 0:07] 2867 void callOnFloor(int floorID ) [ 0:07] 2868 { [ 0:07] 2869 [ 0:07] 2870 { [ 0:07] 2871 if (floorID == 0) { [ 0:07] 2872 calls_0 = 1; [ 0:07] 2873 } else { [ 0:07] 2874 if (floorID == 1) { [ 0:07] 2875 calls_1 = 1; [ 0:07] 2876 } else { [ 0:07] 2877 if (floorID == 2) { [ 0:07] 2878 calls_2 = 1; [ 0:07] 2879 } else { [ 0:07] 2880 if (floorID == 3) { [ 0:07] 2881 calls_3 = 1; [ 0:07] 2882 } else { [ 0:07] 2883 if (floorID == 4) { [ 0:07] 2884 calls_4 = 1; [ 0:07] 2885 } else { [ 0:07] 2886 [ 0:07] 2887 } [ 0:07] 2888 } [ 0:07] 2889 } [ 0:07] 2890 } [ 0:07] 2891 } [ 0:07] 2892 return; [ 0:07] 2893 } [ 0:07] 2894 } [ 0:07] 2895 int isPersonOnFloor(int person , int floor ) [ 0:07] 2896 { int retValue_acc ; [ 0:07] 2897 [ 0:07] 2898 { [ 0:07] 2899 if (floor == 0) { [ 0:07] 2900 if (person == 0) { [ 0:07] 2901 retValue_acc = personOnFloor_0_0; [ 0:07] 2902 return (retValue_acc); [ 0:07] 2903 } else { [ 0:07] 2904 if (person == 1) { [ 0:07] 2905 retValue_acc = personOnFloor_1_0; [ 0:07] 2906 return (retValue_acc); [ 0:07] 2907 } else { [ 0:07] 2908 if (person == 2) { [ 0:07] 2909 retValue_acc = personOnFloor_2_0; [ 0:07] 2910 return (retValue_acc); [ 0:07] 2911 } else { [ 0:07] 2912 if (person == 3) { [ 0:07] 2913 retValue_acc = personOnFloor_3_0; [ 0:07] 2914 return (retValue_acc); [ 0:07] 2915 } else { [ 0:07] 2916 if (person == 4) { [ 0:07] 2917 retValue_acc = personOnFloor_4_0; [ 0:07] 2918 return (retValue_acc); [ 0:07] 2919 } else { [ 0:07] 2920 if (person == 5) { [ 0:07] 2921 retValue_acc = personOnFloor_5_0; [ 0:07] 2922 return (retValue_acc); [ 0:07] 2923 } else { [ 0:07] 2924 [ 0:07] 2925 } [ 0:07] 2926 } [ 0:07] 2927 } [ 0:07] 2928 } [ 0:07] 2929 } [ 0:07] 2930 } [ 0:07] 2931 } else { [ 0:07] 2932 if (floor == 1) { [ 0:07] 2933 if (person == 0) { [ 0:07] 2934 retValue_acc = personOnFloor_0_1; [ 0:07] 2935 return (retValue_acc); [ 0:07] 2936 } else { [ 0:07] 2937 if (person == 1) { [ 0:07] 2938 retValue_acc = personOnFloor_1_1; [ 0:07] 2939 return (retValue_acc); [ 0:07] 2940 } else { [ 0:07] 2941 if (person == 2) { [ 0:07] 2942 retValue_acc = personOnFloor_2_1; [ 0:07] 2943 return (retValue_acc); [ 0:07] 2944 } else { [ 0:07] 2945 if (person == 3) { [ 0:07] 2946 retValue_acc = personOnFloor_3_1; [ 0:07] 2947 return (retValue_acc); [ 0:07] 2948 } else { [ 0:07] 2949 if (person == 4) { [ 0:07] 2950 retValue_acc = personOnFloor_4_1; [ 0:07] 2951 return (retValue_acc); [ 0:07] 2952 } else { [ 0:07] 2953 if (person == 5) { [ 0:07] 2954 retValue_acc = personOnFloor_5_1; [ 0:07] 2955 return (retValue_acc); [ 0:07] 2956 } else { [ 0:07] 2957 [ 0:07] 2958 } [ 0:07] 2959 } [ 0:07] 2960 } [ 0:07] 2961 } [ 0:07] 2962 } [ 0:07] 2963 } [ 0:07] 2964 } else { [ 0:07] 2965 if (floor == 2) { [ 0:07] 2966 if (person == 0) { [ 0:07] 2967 retValue_acc = personOnFloor_0_2; [ 0:07] 2968 return (retValue_acc); [ 0:07] 2969 } else { [ 0:07] 2970 if (person == 1) { [ 0:07] 2971 retValue_acc = personOnFloor_1_2; [ 0:07] 2972 return (retValue_acc); [ 0:07] 2973 } else { [ 0:07] 2974 if (person == 2) { [ 0:07] 2975 retValue_acc = personOnFloor_2_2; [ 0:07] 2976 return (retValue_acc); [ 0:07] 2977 } else { [ 0:07] 2978 if (person == 3) { [ 0:07] 2979 retValue_acc = personOnFloor_3_2; [ 0:07] 2980 return (retValue_acc); [ 0:07] 2981 } else { [ 0:07] 2982 if (person == 4) { [ 0:07] 2983 retValue_acc = personOnFloor_4_2; [ 0:07] 2984 return (retValue_acc); [ 0:07] 2985 } else { [ 0:07] 2986 if (person == 5) { [ 0:07] 2987 retValue_acc = personOnFloor_5_2; [ 0:07] 2988 return (retValue_acc); [ 0:07] 2989 } else { [ 0:07] 2990 [ 0:07] 2991 } [ 0:07] 2992 } [ 0:07] 2993 } [ 0:07] 2994 } [ 0:07] 2995 } [ 0:07] 2996 } [ 0:07] 2997 } else { [ 0:07] 2998 if (floor == 3) { [ 0:07] 2999 if (person == 0) { [ 0:07] 3000 retValue_acc = personOnFloor_0_3; [ 0:07] 3001 return (retValue_acc); [ 0:07] 3002 } else { [ 0:07] 3003 if (person == 1) { [ 0:07] 3004 retValue_acc = personOnFloor_1_3; [ 0:07] 3005 return (retValue_acc); [ 0:07] 3006 } else { [ 0:07] 3007 if (person == 2) { [ 0:07] 3008 retValue_acc = personOnFloor_2_3; [ 0:07] 3009 return (retValue_acc); [ 0:07] 3010 } else { [ 0:07] 3011 if (person == 3) { [ 0:07] 3012 retValue_acc = personOnFloor_3_3; [ 0:07] 3013 return (retValue_acc); [ 0:07] 3014 } else { [ 0:07] 3015 if (person == 4) { [ 0:07] 3016 retValue_acc = personOnFloor_4_3; [ 0:07] 3017 return (retValue_acc); [ 0:07] 3018 } else { [ 0:07] 3019 if (person == 5) { [ 0:07] 3020 retValue_acc = personOnFloor_5_3; [ 0:07] 3021 return (retValue_acc); [ 0:07] 3022 } else { [ 0:07] 3023 [ 0:07] 3024 } [ 0:07] 3025 } [ 0:07] 3026 } [ 0:07] 3027 } [ 0:07] 3028 } [ 0:07] 3029 } [ 0:07] 3030 } else { [ 0:07] 3031 if (floor == 4) { [ 0:07] 3032 if (person == 0) { [ 0:07] 3033 retValue_acc = personOnFloor_0_4; [ 0:07] 3034 return (retValue_acc); [ 0:07] 3035 } else { [ 0:07] 3036 if (person == 1) { [ 0:07] 3037 retValue_acc = personOnFloor_1_4; [ 0:07] 3038 return (retValue_acc); [ 0:07] 3039 } else { [ 0:07] 3040 if (person == 2) { [ 0:07] 3041 retValue_acc = personOnFloor_2_4; [ 0:07] 3042 return (retValue_acc); [ 0:07] 3043 } else { [ 0:07] 3044 if (person == 3) { [ 0:07] 3045 retValue_acc = personOnFloor_3_4; [ 0:07] 3046 return (retValue_acc); [ 0:07] 3047 } else { [ 0:07] 3048 if (person == 4) { [ 0:07] 3049 retValue_acc = personOnFloor_4_4; [ 0:07] 3050 return (retValue_acc); [ 0:07] 3051 } else { [ 0:07] 3052 if (person == 5) { [ 0:07] 3053 retValue_acc = personOnFloor_5_4; [ 0:07] 3054 return (retValue_acc); [ 0:07] 3055 } else { [ 0:07] 3056 [ 0:07] 3057 } [ 0:07] 3058 } [ 0:07] 3059 } [ 0:07] 3060 } [ 0:07] 3061 } [ 0:07] 3062 } [ 0:07] 3063 } else { [ 0:07] 3064 [ 0:07] 3065 } [ 0:07] 3066 } [ 0:07] 3067 } [ 0:07] 3068 } [ 0:07] 3069 } [ 0:07] 3070 retValue_acc = 0; [ 0:07] 3071 return (retValue_acc); [ 0:07] 3072 return (retValue_acc); [ 0:07] 3073 } [ 0:07] 3074 } [ 0:07] 3075 void initPersonOnFloor(int person , int floor ) [ 0:07] 3076 { [ 0:07] 3077 [ 0:07] 3078 { [ 0:07] 3079 if (floor == 0) { [ 0:07] 3080 if (person == 0) { [ 0:07] 3081 personOnFloor_0_0 = 1; [ 0:07] 3082 } else { [ 0:07] 3083 if (person == 1) { [ 0:07] 3084 personOnFloor_1_0 = 1; [ 0:07] 3085 } else { [ 0:07] 3086 if (person == 2) { [ 0:07] 3087 personOnFloor_2_0 = 1; [ 0:07] 3088 } else { [ 0:07] 3089 if (person == 3) { [ 0:07] 3090 personOnFloor_3_0 = 1; [ 0:07] 3091 } else { [ 0:07] 3092 if (person == 4) { [ 0:07] 3093 personOnFloor_4_0 = 1; [ 0:07] 3094 } else { [ 0:07] 3095 if (person == 5) { [ 0:07] 3096 personOnFloor_5_0 = 1; [ 0:07] 3097 } else { [ 0:07] 3098 [ 0:07] 3099 } [ 0:07] 3100 } [ 0:07] 3101 } [ 0:07] 3102 } [ 0:07] 3103 } [ 0:07] 3104 } [ 0:07] 3105 } else { [ 0:07] 3106 if (floor == 1) { [ 0:07] 3107 if (person == 0) { [ 0:07] 3108 personOnFloor_0_1 = 1; [ 0:07] 3109 } else { [ 0:07] 3110 if (person == 1) { [ 0:07] 3111 personOnFloor_1_1 = 1; [ 0:07] 3112 } else { [ 0:07] 3113 if (person == 2) { [ 0:07] 3114 personOnFloor_2_1 = 1; [ 0:07] 3115 } else { [ 0:07] 3116 if (person == 3) { [ 0:07] 3117 personOnFloor_3_1 = 1; [ 0:07] 3118 } else { [ 0:07] 3119 if (person == 4) { [ 0:07] 3120 personOnFloor_4_1 = 1; [ 0:07] 3121 } else { [ 0:07] 3122 if (person == 5) { [ 0:07] 3123 personOnFloor_5_1 = 1; [ 0:07] 3124 } else { [ 0:07] 3125 [ 0:07] 3126 } [ 0:07] 3127 } [ 0:07] 3128 } [ 0:07] 3129 } [ 0:07] 3130 } [ 0:07] 3131 } [ 0:07] 3132 } else { [ 0:07] 3133 if (floor == 2) { [ 0:07] 3134 if (person == 0) { [ 0:07] 3135 personOnFloor_0_2 = 1; [ 0:07] 3136 } else { [ 0:07] 3137 if (person == 1) { [ 0:07] 3138 personOnFloor_1_2 = 1; [ 0:07] 3139 } else { [ 0:07] 3140 if (person == 2) { [ 0:07] 3141 personOnFloor_2_2 = 1; [ 0:07] 3142 } else { [ 0:07] 3143 if (person == 3) { [ 0:07] 3144 personOnFloor_3_2 = 1; [ 0:07] 3145 } else { [ 0:07] 3146 if (person == 4) { [ 0:07] 3147 personOnFloor_4_2 = 1; [ 0:07] 3148 } else { [ 0:07] 3149 if (person == 5) { [ 0:07] 3150 personOnFloor_5_2 = 1; [ 0:07] 3151 } else { [ 0:07] 3152 [ 0:07] 3153 } [ 0:07] 3154 } [ 0:07] 3155 } [ 0:07] 3156 } [ 0:07] 3157 } [ 0:07] 3158 } [ 0:07] 3159 } else { [ 0:07] 3160 if (floor == 3) { [ 0:07] 3161 if (person == 0) { [ 0:07] 3162 personOnFloor_0_3 = 1; [ 0:07] 3163 } else { [ 0:07] 3164 if (person == 1) { [ 0:07] 3165 personOnFloor_1_3 = 1; [ 0:07] 3166 } else { [ 0:07] 3167 if (person == 2) { [ 0:07] 3168 personOnFloor_2_3 = 1; [ 0:07] 3169 } else { [ 0:07] 3170 if (person == 3) { [ 0:07] 3171 personOnFloor_3_3 = 1; [ 0:07] 3172 } else { [ 0:07] 3173 if (person == 4) { [ 0:07] 3174 personOnFloor_4_3 = 1; [ 0:07] 3175 } else { [ 0:07] 3176 if (person == 5) { [ 0:07] 3177 personOnFloor_5_3 = 1; [ 0:07] 3178 } else { [ 0:07] 3179 [ 0:07] 3180 } [ 0:07] 3181 } [ 0:07] 3182 } [ 0:07] 3183 } [ 0:07] 3184 } [ 0:07] 3185 } [ 0:07] 3186 } else { [ 0:07] 3187 if (floor == 4) { [ 0:07] 3188 if (person == 0) { [ 0:07] 3189 personOnFloor_0_4 = 1; [ 0:07] 3190 } else { [ 0:07] 3191 if (person == 1) { [ 0:07] 3192 personOnFloor_1_4 = 1; [ 0:07] 3193 } else { [ 0:07] 3194 if (person == 2) { [ 0:07] 3195 personOnFloor_2_4 = 1; [ 0:07] 3196 } else { [ 0:07] 3197 if (person == 3) { [ 0:07] 3198 personOnFloor_3_4 = 1; [ 0:07] 3199 } else { [ 0:07] 3200 if (person == 4) { [ 0:07] 3201 personOnFloor_4_4 = 1; [ 0:07] 3202 } else { [ 0:07] 3203 if (person == 5) { [ 0:07] 3204 personOnFloor_5_4 = 1; [ 0:07] 3205 } else { [ 0:07] 3206 [ 0:07] 3207 } [ 0:07] 3208 } [ 0:07] 3209 } [ 0:07] 3210 } [ 0:07] 3211 } [ 0:07] 3212 } [ 0:07] 3213 } else { [ 0:07] 3214 [ 0:07] 3215 } [ 0:07] 3216 } [ 0:07] 3217 } [ 0:07] 3218 } [ 0:07] 3219 } [ 0:07] 3220 { [ 0:07] 3221 callOnFloor(floor); [ 0:07] 3222 } [ 0:07] 3223 return; [ 0:07] 3224 } [ 0:07] 3225 } [ 0:07] 3226 void removePersonFromFloor(int person , int floor ) [ 0:07] 3227 { [ 0:07] 3228 [ 0:07] 3229 { [ 0:07] 3230 if (floor == 0) { [ 0:07] 3231 if (person == 0) { [ 0:07] 3232 personOnFloor_0_0 = 0; [ 0:07] 3233 } else { [ 0:07] 3234 if (person == 1) { [ 0:07] 3235 personOnFloor_1_0 = 0; [ 0:07] 3236 } else { [ 0:07] 3237 if (person == 2) { [ 0:07] 3238 personOnFloor_2_0 = 0; [ 0:07] 3239 } else { [ 0:07] 3240 if (person == 3) { [ 0:07] 3241 personOnFloor_3_0 = 0; [ 0:07] 3242 } else { [ 0:07] 3243 if (person == 4) { [ 0:07] 3244 personOnFloor_4_0 = 0; [ 0:07] 3245 } else { [ 0:07] 3246 if (person == 5) { [ 0:07] 3247 personOnFloor_5_0 = 0; [ 0:07] 3248 } else { [ 0:07] 3249 [ 0:07] 3250 } [ 0:07] 3251 } [ 0:07] 3252 } [ 0:07] 3253 } [ 0:07] 3254 } [ 0:07] 3255 } [ 0:07] 3256 } else { [ 0:07] 3257 if (floor == 1) { [ 0:07] 3258 if (person == 0) { [ 0:07] 3259 personOnFloor_0_1 = 0; [ 0:07] 3260 } else { [ 0:07] 3261 if (person == 1) { [ 0:07] 3262 personOnFloor_1_1 = 0; [ 0:07] 3263 } else { [ 0:07] 3264 if (person == 2) { [ 0:07] 3265 personOnFloor_2_1 = 0; [ 0:07] 3266 } else { [ 0:07] 3267 if (person == 3) { [ 0:07] 3268 personOnFloor_3_1 = 0; [ 0:07] 3269 } else { [ 0:07] 3270 if (person == 4) { [ 0:07] 3271 personOnFloor_4_1 = 0; [ 0:07] 3272 } else { [ 0:07] 3273 if (person == 5) { [ 0:07] 3274 personOnFloor_5_1 = 0; [ 0:07] 3275 } else { [ 0:07] 3276 [ 0:07] 3277 } [ 0:07] 3278 } [ 0:07] 3279 } [ 0:07] 3280 } [ 0:07] 3281 } [ 0:07] 3282 } [ 0:07] 3283 } else { [ 0:07] 3284 if (floor == 2) { [ 0:07] 3285 if (person == 0) { [ 0:07] 3286 personOnFloor_0_2 = 0; [ 0:07] 3287 } else { [ 0:07] 3288 if (person == 1) { [ 0:07] 3289 personOnFloor_1_2 = 0; [ 0:07] 3290 } else { [ 0:07] 3291 if (person == 2) { [ 0:07] 3292 personOnFloor_2_2 = 0; [ 0:07] 3293 } else { [ 0:07] 3294 if (person == 3) { [ 0:07] 3295 personOnFloor_3_2 = 0; [ 0:07] 3296 } else { [ 0:07] 3297 if (person == 4) { [ 0:07] 3298 personOnFloor_4_2 = 0; [ 0:07] 3299 } else { [ 0:07] 3300 if (person == 5) { [ 0:07] 3301 personOnFloor_5_2 = 0; [ 0:07] 3302 } else { [ 0:07] 3303 [ 0:07] 3304 } [ 0:07] 3305 } [ 0:07] 3306 } [ 0:07] 3307 } [ 0:07] 3308 } [ 0:07] 3309 } [ 0:07] 3310 } else { [ 0:07] 3311 if (floor == 3) { [ 0:07] 3312 if (person == 0) { [ 0:07] 3313 personOnFloor_0_3 = 0; [ 0:07] 3314 } else { [ 0:07] 3315 if (person == 1) { [ 0:07] 3316 personOnFloor_1_3 = 0; [ 0:07] 3317 } else { [ 0:07] 3318 if (person == 2) { [ 0:07] 3319 personOnFloor_2_3 = 0; [ 0:07] 3320 } else { [ 0:07] 3321 if (person == 3) { [ 0:07] 3322 personOnFloor_3_3 = 0; [ 0:07] 3323 } else { [ 0:07] 3324 if (person == 4) { [ 0:07] 3325 personOnFloor_4_3 = 0; [ 0:07] 3326 } else { [ 0:07] 3327 if (person == 5) { [ 0:07] 3328 personOnFloor_5_3 = 0; [ 0:07] 3329 } else { [ 0:07] 3330 [ 0:07] 3331 } [ 0:07] 3332 } [ 0:07] 3333 } [ 0:07] 3334 } [ 0:07] 3335 } [ 0:07] 3336 } [ 0:07] 3337 } else { [ 0:07] 3338 if (floor == 4) { [ 0:07] 3339 if (person == 0) { [ 0:07] 3340 personOnFloor_0_4 = 0; [ 0:07] 3341 } else { [ 0:07] 3342 if (person == 1) { [ 0:07] 3343 personOnFloor_1_4 = 0; [ 0:07] 3344 } else { [ 0:07] 3345 if (person == 2) { [ 0:07] 3346 personOnFloor_2_4 = 0; [ 0:07] 3347 } else { [ 0:07] 3348 if (person == 3) { [ 0:07] 3349 personOnFloor_3_4 = 0; [ 0:07] 3350 } else { [ 0:07] 3351 if (person == 4) { [ 0:07] 3352 personOnFloor_4_4 = 0; [ 0:07] 3353 } else { [ 0:07] 3354 if (person == 5) { [ 0:07] 3355 personOnFloor_5_4 = 0; [ 0:07] 3356 } else { [ 0:07] 3357 [ 0:07] 3358 } [ 0:07] 3359 } [ 0:07] 3360 } [ 0:07] 3361 } [ 0:07] 3362 } [ 0:07] 3363 } [ 0:07] 3364 } else { [ 0:07] 3365 [ 0:07] 3366 } [ 0:07] 3367 } [ 0:07] 3368 } [ 0:07] 3369 } [ 0:07] 3370 } [ 0:07] 3371 { [ 0:07] 3372 resetCallOnFloor(floor); [ 0:07] 3373 } [ 0:07] 3374 return; [ 0:07] 3375 } [ 0:07] 3376 } [ 0:07] 3377 int isTopFloor(int floorID ) [ 0:07] 3378 { int retValue_acc ; [ 0:07] 3379 [ 0:07] 3380 { [ 0:07] 3381 retValue_acc = floorID == 4; [ 0:07] 3382 return (retValue_acc); [ 0:07] 3383 return (retValue_acc); [ 0:07] 3384 } [ 0:07] 3385 } [ 0:07] # expected error to be found at /home/xrockai/src/divine/nightly/test/svcomp/product-lines/elevator_spec2_product18_false.cil.c:1822, but it was not