array A_nextFree322 integer A_firstFree848 integer A_maxIndex883 integer wurst_stack_depth105 array wurst_stack182 array A_foo_0206 array A_foo_1179 array A_foo_2113 array A_foo_3173 array A_foo_4140 array A_foo_5105 array A_foo_6217 array A_foo_7518 array A_foo_8794 array A_foo_9210 array A_foo_10176 array A_foo_11210 array A_foo_12296 array A_foo_13911 array A_foo_14864 array A_foo_15654 array A_foo_16137 array A_foo_17904 array A_foo_18113 array A_foo_19289 integer test_x102 = 4 integer test_y708 = 5 integer test_z596 = (4 * (10 + (- 5))) integer A_firstFree848 = 0 integer A_maxIndex883 = 0 integer wurst_stack_depth105 = 0 function initGlobals198() { } function main104() { initGlobals198(); init_test496("when calling init_test in testArraySize, line 1"); } function config144() { } function init_test496(string __wurst_stackPos472) { local integer this627 wurst_stack_182[wurst_stack_depth_105] = __wurst_stackPos_472; wurst_stack_depth_105 = (wurst_stack_depth_105 + 1); wurst_stack_182[wurst_stack_depth_105] = "when calling new_A in testArraySize, line 9"; wurst_stack_depth_105 = (wurst_stack_depth_105 + 1); wurst_stack_182[wurst_stack_depth_105] = "when calling alloc_A in testArraySize, line 6"; wurst_stack_depth_105 = (wurst_stack_depth_105 + 1); if (A_firstFree_848 == 0) { if (A_maxIndex_883 < 32768) { A_maxIndex_883 = (A_maxIndex_883 + 1); this_627 = A_maxIndex_883; } else { error142("Out of memory: Could not create A.", "when calling error in testArraySize, line 6"); this_627 = 0; }; } else { A_firstFree_848 = (A_firstFree_848 - 1); this_627 = A_nextFree_322[A_firstFree_848]; }; wurst_stack_depth_105 = ((wurst_stack_depth_105 - 1) - 1); A_foo_set543(this_627, 13, 42, "when writing array A_foo in testArraySize, line 10"); if (A_foo_get120(this_627, 13, "when reading array A_foo in in testArraySize, line 11") == 42) { testSuccess116(); } else { }; wurst_stack_depth_105 = (wurst_stack_depth_105 - 1); } IS_NATIVE function testSuccess116() { } function error142(string msg804, string __wurst_stackPos136) { local integer stacktraceIndex397 local integer stacktraceLimit181 wurst_stack_182[wurst_stack_depth_105] = __wurst_stackPos_136; wurst_stack_depth_105 = (wurst_stack_depth_105 + 1); __wurst_stackPos_136 = ""; stacktraceIndex_397 = wurst_stack_depth_105; stacktraceLimit_181 = 0; loop { stacktraceIndex_397 = (stacktraceIndex_397 - 1); stacktraceLimit_181 = (stacktraceLimit_181 + 1); exitwhen ((stacktraceLimit_181 > 20) or (stacktraceIndex_397 < 0)); __wurst_stackPos_136 = (__wurst_stackPos_136 + (" " + wurst_stack_182[stacktraceIndex_397])); }; $debugPrint154((msg_804 + (" " + __wurst_stackPos_136))); wurst_stack_depth_105 = (wurst_stack_depth_105 - 1); } function A_foo_set543(integer instanceId186, integer arrayIndex637, integer value114, string stackPos474) { if ((arrayIndex_637 < 0) or (arrayIndex_637 >= 20)) { error142("Index out of Bounds", stackPos_474); } else { if (arrayIndex_637 <= 9) { if (arrayIndex_637 <= 4) { if (arrayIndex_637 <= 2) { if (arrayIndex_637 <= 1) { if (arrayIndex_637 <= 0) { A_foo_0_206[instanceId_186] = value_114; } else { A_foo_1_179[instanceId_186] = value_114; }; } else { A_foo_2_113[instanceId_186] = value_114; }; } else { if (arrayIndex_637 <= 3) { A_foo_3_173[instanceId_186] = value_114; } else { A_foo_4_140[instanceId_186] = value_114; }; }; } else { if (arrayIndex_637 <= 7) { if (arrayIndex_637 <= 6) { if (arrayIndex_637 <= 5) { A_foo_5_105[instanceId_186] = value_114; } else { A_foo_6_217[instanceId_186] = value_114; }; } else { A_foo_7_518[instanceId_186] = value_114; }; } else { if (arrayIndex_637 <= 8) { A_foo_8_794[instanceId_186] = value_114; } else { A_foo_9_210[instanceId_186] = value_114; }; }; }; } else { if (arrayIndex_637 <= 14) { if (arrayIndex_637 <= 12) { if (arrayIndex_637 <= 11) { if (arrayIndex_637 <= 10) { A_foo_10_176[instanceId_186] = value_114; } else { A_foo_11_210[instanceId_186] = value_114; }; } else { A_foo_12_296[instanceId_186] = value_114; }; } else { if (arrayIndex_637 <= 13) { A_foo_13_911[instanceId_186] = value_114; } else { A_foo_14_864[instanceId_186] = value_114; }; }; } else { if (arrayIndex_637 <= 17) { if (arrayIndex_637 <= 16) { if (arrayIndex_637 <= 15) { A_foo_15_654[instanceId_186] = value_114; } else { A_foo_16_137[instanceId_186] = value_114; }; } else { A_foo_17_904[instanceId_186] = value_114; }; } else { if (arrayIndex_637 <= 18) { A_foo_18_113[instanceId_186] = value_114; } else { A_foo_19_289[instanceId_186] = value_114; }; }; }; }; }; } function A_foo_get120(integer index1178, integer index2856, string stackPos157) returns integer { local integer returnVal178 if ((index2_856 < 0) or (index2_856 >= 20)) { error142("Index out of Bounds", stackPos_157); } else { if (index2_856 <= 9) { if (index2_856 <= 4) { if (index2_856 <= 2) { if (index2_856 <= 1) { if (index2_856 <= 0) { returnVal_178 = A_foo_0_206[index1_178]; } else { returnVal_178 = A_foo_1_179[index1_178]; }; } else { returnVal_178 = A_foo_2_113[index1_178]; }; } else { if (index2_856 <= 3) { returnVal_178 = A_foo_3_173[index1_178]; } else { returnVal_178 = A_foo_4_140[index1_178]; }; }; } else { if (index2_856 <= 7) { if (index2_856 <= 6) { if (index2_856 <= 5) { returnVal_178 = A_foo_5_105[index1_178]; } else { returnVal_178 = A_foo_6_217[index1_178]; }; } else { returnVal_178 = A_foo_7_518[index1_178]; }; } else { if (index2_856 <= 8) { returnVal_178 = A_foo_8_794[index1_178]; } else { returnVal_178 = A_foo_9_210[index1_178]; }; }; }; } else { if (index2_856 <= 14) { if (index2_856 <= 12) { if (index2_856 <= 11) { if (index2_856 <= 10) { returnVal_178 = A_foo_10_176[index1_178]; } else { returnVal_178 = A_foo_11_210[index1_178]; }; } else { returnVal_178 = A_foo_12_296[index1_178]; }; } else { if (index2_856 <= 13) { returnVal_178 = A_foo_13_911[index1_178]; } else { returnVal_178 = A_foo_14_864[index1_178]; }; }; } else { if (index2_856 <= 17) { if (index2_856 <= 16) { if (index2_856 <= 15) { returnVal_178 = A_foo_15_654[index1_178]; } else { returnVal_178 = A_foo_16_137[index1_178]; }; } else { returnVal_178 = A_foo_17_904[index1_178]; }; } else { if (index2_856 <= 18) { returnVal_178 = A_foo_18_113[index1_178]; } else { returnVal_178 = A_foo_19_289[index1_178]; }; }; }; }; }; return returnVal_178; }