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