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