array A_nextFree357 integer A_firstFree765 integer A_maxIndex135 integer wurst_stack_depth733 array wurst_stack725 array A_foo_0856 array A_foo_1214 array A_foo_2134 array A_foo_3273 array A_foo_4174 array A_foo_5190 array A_foo_6236 array A_foo_7124 array A_foo_8199 array A_foo_9780 array A_foo_10113 array A_foo_11116 array A_foo_12944 array A_foo_13935 array A_foo_14567 array A_foo_15200 array A_foo_16796 array A_foo_17427 array A_foo_18444 array A_foo_19717 integer test_x117 = 4 integer test_y179 = 5 integer test_z178 = (4 * (10 + (- 5))) integer A_firstFree765 = 0 integer A_maxIndex135 = 0 integer wurst_stack_depth733 = 0 function initGlobals488() { } function main362() { initGlobals488(); init_test447("when calling init_test in testArraySize, line 1"); } function config120() { } function init_test447(string __wurst_stackPos166) { local integer this455 wurst_stack_725[wurst_stack_depth_733] = __wurst_stackPos_166; wurst_stack_depth_733 = (wurst_stack_depth_733 + 1); wurst_stack_725[wurst_stack_depth_733] = "when calling new_A in testArraySize, line 9"; wurst_stack_depth_733 = (wurst_stack_depth_733 + 1); wurst_stack_725[wurst_stack_depth_733] = "when calling alloc_A in testArraySize, line 6"; wurst_stack_depth_733 = (wurst_stack_depth_733 + 1); if (A_firstFree_765 == 0) { if (A_maxIndex_135 < 32768) { A_maxIndex_135 = (A_maxIndex_135 + 1); this_455 = A_maxIndex_135; } else { error124("Out of memory: Could not create A.", "when calling error in testArraySize, line 6"); this_455 = 0; }; } else { A_firstFree_765 = (A_firstFree_765 - 1); this_455 = A_nextFree_357[A_firstFree_765]; }; wurst_stack_depth_733 = ((wurst_stack_depth_733 - 1) - 1); A_foo_set147(this_455, 13, 42, "when writing array A_foo in testArraySize, line 10"); if (A_foo_get780(this_455, 13, "when reading array A_foo in in testArraySize, line 11") == 42) { testSuccess143(); } else { }; wurst_stack_depth_733 = (wurst_stack_depth_733 - 1); } IS_NATIVE function testSuccess143() { } function error124(string msg216, string __wurst_stackPos139) { local integer stacktraceIndex181 local integer stacktraceLimit192 wurst_stack_725[wurst_stack_depth_733] = __wurst_stackPos_139; wurst_stack_depth_733 = (wurst_stack_depth_733 + 1); __wurst_stackPos_139 = ""; stacktraceIndex_181 = wurst_stack_depth_733; stacktraceLimit_192 = 0; loop { stacktraceIndex_181 = (stacktraceIndex_181 - 1); stacktraceLimit_192 = (stacktraceLimit_192 + 1); exitwhen ((stacktraceLimit_192 > 20) or (stacktraceIndex_181 < 0)); __wurst_stackPos_139 = (__wurst_stackPos_139 + (" " + wurst_stack_725[stacktraceIndex_181])); }; $debugPrint122((msg_216 + (" " + __wurst_stackPos_139))); wurst_stack_depth_733 = (wurst_stack_depth_733 - 1); } function A_foo_set147(integer instanceId654, integer arrayIndex120, integer value872, string stackPos201) { if ((arrayIndex_120 < 0) or (arrayIndex_120 >= 20)) { error124("Index out of Bounds", stackPos_201); } else { if (arrayIndex_120 <= 9) { if (arrayIndex_120 <= 4) { if (arrayIndex_120 <= 2) { if (arrayIndex_120 <= 1) { if (arrayIndex_120 <= 0) { A_foo_0_856[instanceId_654] = value_872; } else { A_foo_1_214[instanceId_654] = value_872; }; } else { A_foo_2_134[instanceId_654] = value_872; }; } else { if (arrayIndex_120 <= 3) { A_foo_3_273[instanceId_654] = value_872; } else { A_foo_4_174[instanceId_654] = value_872; }; }; } else { if (arrayIndex_120 <= 7) { if (arrayIndex_120 <= 6) { if (arrayIndex_120 <= 5) { A_foo_5_190[instanceId_654] = value_872; } else { A_foo_6_236[instanceId_654] = value_872; }; } else { A_foo_7_124[instanceId_654] = value_872; }; } else { if (arrayIndex_120 <= 8) { A_foo_8_199[instanceId_654] = value_872; } else { A_foo_9_780[instanceId_654] = value_872; }; }; }; } else { if (arrayIndex_120 <= 14) { if (arrayIndex_120 <= 12) { if (arrayIndex_120 <= 11) { if (arrayIndex_120 <= 10) { A_foo_10_113[instanceId_654] = value_872; } else { A_foo_11_116[instanceId_654] = value_872; }; } else { A_foo_12_944[instanceId_654] = value_872; }; } else { if (arrayIndex_120 <= 13) { A_foo_13_935[instanceId_654] = value_872; } else { A_foo_14_567[instanceId_654] = value_872; }; }; } else { if (arrayIndex_120 <= 17) { if (arrayIndex_120 <= 16) { if (arrayIndex_120 <= 15) { A_foo_15_200[instanceId_654] = value_872; } else { A_foo_16_796[instanceId_654] = value_872; }; } else { A_foo_17_427[instanceId_654] = value_872; }; } else { if (arrayIndex_120 <= 18) { A_foo_18_444[instanceId_654] = value_872; } else { A_foo_19_717[instanceId_654] = value_872; }; }; }; }; }; } function A_foo_get780(integer index1636, integer index2113, string stackPos135) returns integer { local integer returnVal174 if ((index2_113 < 0) or (index2_113 >= 20)) { error124("Index out of Bounds", stackPos_135); } else { if (index2_113 <= 9) { if (index2_113 <= 4) { if (index2_113 <= 2) { if (index2_113 <= 1) { if (index2_113 <= 0) { returnVal_174 = A_foo_0_856[index1_636]; } else { returnVal_174 = A_foo_1_214[index1_636]; }; } else { returnVal_174 = A_foo_2_134[index1_636]; }; } else { if (index2_113 <= 3) { returnVal_174 = A_foo_3_273[index1_636]; } else { returnVal_174 = A_foo_4_174[index1_636]; }; }; } else { if (index2_113 <= 7) { if (index2_113 <= 6) { if (index2_113 <= 5) { returnVal_174 = A_foo_5_190[index1_636]; } else { returnVal_174 = A_foo_6_236[index1_636]; }; } else { returnVal_174 = A_foo_7_124[index1_636]; }; } else { if (index2_113 <= 8) { returnVal_174 = A_foo_8_199[index1_636]; } else { returnVal_174 = A_foo_9_780[index1_636]; }; }; }; } else { if (index2_113 <= 14) { if (index2_113 <= 12) { if (index2_113 <= 11) { if (index2_113 <= 10) { returnVal_174 = A_foo_10_113[index1_636]; } else { returnVal_174 = A_foo_11_116[index1_636]; }; } else { returnVal_174 = A_foo_12_944[index1_636]; }; } else { if (index2_113 <= 13) { returnVal_174 = A_foo_13_935[index1_636]; } else { returnVal_174 = A_foo_14_567[index1_636]; }; }; } else { if (index2_113 <= 17) { if (index2_113 <= 16) { if (index2_113 <= 15) { returnVal_174 = A_foo_15_200[index1_636]; } else { returnVal_174 = A_foo_16_796[index1_636]; }; } else { returnVal_174 = A_foo_17_427[index1_636]; }; } else { if (index2_113 <= 18) { returnVal_174 = A_foo_18_444[index1_636]; } else { returnVal_174 = A_foo_19_717[index1_636]; }; }; }; }; }; return returnVal_174; }