array A_nextFree206 integer A_firstFree113 integer A_maxIndex210 array A_foo_0184 array A_foo_1570 array A_foo_2110 array A_foo_3153 array A_foo_4102 array A_foo_5606 array A_foo_6702 array A_foo_7118 array A_foo_8260 array A_foo_9210 array A_foo_10820 array A_foo_11708 array A_foo_12210 array A_foo_13176 array A_foo_14321 array A_foo_15131 array A_foo_16210 array A_foo_17213 array A_foo_18175 array A_foo_19547 integer test_x912 = 4 integer test_y153 = 5 integer test_z957 = (test_x_912 * (10 + (- test_y_153))) integer A_firstFree113 = 0 integer A_maxIndex210 = 0 function initGlobals224() { A_firstFree_113 = 0; A_maxIndex_210 = 0; } function main539() { initGlobals224(); init_test135(); } function config107() { } function init_test135() { local integer a214 a_214 = new_A201(); A_foo_set642(a_214, 13, 42); if (A_foo_get196(a_214, 13) == 42) { testSuccess691(); } else { }; } IS_NATIVE function testSuccess691() { } function A_init370(integer this165) { } function new_A201() returns integer { local integer this633 this_633 = alloc_A197(); construct_A163(this_633); return this_633; } function construct_A163(integer this910) { A_init370(this_910); } function alloc_A197() returns integer { local integer this474 if (A_firstFree_113 == 0) { if (A_maxIndex_210 < 32768) { A_maxIndex_210 = (A_maxIndex_210 + 1); this_474 = A_maxIndex_210; } else { error130("Out of memory: Could not create A."); this_474 = 0; }; } else { A_firstFree_113 = (A_firstFree_113 - 1); this_474 = A_nextFree_206[A_firstFree_113]; }; return this_474; } function error130(string msg142) { $debugPrint635((msg_142 + (" " + #getStackTrace()))); } function A_foo_set642(integer instanceId188, integer arrayIndex205, integer value149) { if ((arrayIndex_205 < 0) or (arrayIndex_205 >= 20)) { error130("Index out of Bounds"); } else { if (arrayIndex_205 <= 9) { if (arrayIndex_205 <= 4) { if (arrayIndex_205 <= 2) { if (arrayIndex_205 <= 1) { if (arrayIndex_205 <= 0) { A_foo_0_184[instanceId_188] = value_149; } else { A_foo_1_570[instanceId_188] = value_149; }; } else { A_foo_2_110[instanceId_188] = value_149; }; } else { if (arrayIndex_205 <= 3) { A_foo_3_153[instanceId_188] = value_149; } else { A_foo_4_102[instanceId_188] = value_149; }; }; } else { if (arrayIndex_205 <= 7) { if (arrayIndex_205 <= 6) { if (arrayIndex_205 <= 5) { A_foo_5_606[instanceId_188] = value_149; } else { A_foo_6_702[instanceId_188] = value_149; }; } else { A_foo_7_118[instanceId_188] = value_149; }; } else { if (arrayIndex_205 <= 8) { A_foo_8_260[instanceId_188] = value_149; } else { A_foo_9_210[instanceId_188] = value_149; }; }; }; } else { if (arrayIndex_205 <= 14) { if (arrayIndex_205 <= 12) { if (arrayIndex_205 <= 11) { if (arrayIndex_205 <= 10) { A_foo_10_820[instanceId_188] = value_149; } else { A_foo_11_708[instanceId_188] = value_149; }; } else { A_foo_12_210[instanceId_188] = value_149; }; } else { if (arrayIndex_205 <= 13) { A_foo_13_176[instanceId_188] = value_149; } else { A_foo_14_321[instanceId_188] = value_149; }; }; } else { if (arrayIndex_205 <= 17) { if (arrayIndex_205 <= 16) { if (arrayIndex_205 <= 15) { A_foo_15_131[instanceId_188] = value_149; } else { A_foo_16_210[instanceId_188] = value_149; }; } else { A_foo_17_213[instanceId_188] = value_149; }; } else { if (arrayIndex_205 <= 18) { A_foo_18_175[instanceId_188] = value_149; } else { A_foo_19_547[instanceId_188] = value_149; }; }; }; }; }; } function A_foo_get196(integer index1952, integer index2150) returns integer { local integer returnVal132 if ((index2_150 < 0) or (index2_150 >= 20)) { error130("Index out of Bounds"); } else { if (index2_150 <= 9) { if (index2_150 <= 4) { if (index2_150 <= 2) { if (index2_150 <= 1) { if (index2_150 <= 0) { returnVal_132 = A_foo_0_184[index1_952]; } else { returnVal_132 = A_foo_1_570[index1_952]; }; } else { returnVal_132 = A_foo_2_110[index1_952]; }; } else { if (index2_150 <= 3) { returnVal_132 = A_foo_3_153[index1_952]; } else { returnVal_132 = A_foo_4_102[index1_952]; }; }; } else { if (index2_150 <= 7) { if (index2_150 <= 6) { if (index2_150 <= 5) { returnVal_132 = A_foo_5_606[index1_952]; } else { returnVal_132 = A_foo_6_702[index1_952]; }; } else { returnVal_132 = A_foo_7_118[index1_952]; }; } else { if (index2_150 <= 8) { returnVal_132 = A_foo_8_260[index1_952]; } else { returnVal_132 = A_foo_9_210[index1_952]; }; }; }; } else { if (index2_150 <= 14) { if (index2_150 <= 12) { if (index2_150 <= 11) { if (index2_150 <= 10) { returnVal_132 = A_foo_10_820[index1_952]; } else { returnVal_132 = A_foo_11_708[index1_952]; }; } else { returnVal_132 = A_foo_12_210[index1_952]; }; } else { if (index2_150 <= 13) { returnVal_132 = A_foo_13_176[index1_952]; } else { returnVal_132 = A_foo_14_321[index1_952]; }; }; } else { if (index2_150 <= 17) { if (index2_150 <= 16) { if (index2_150 <= 15) { returnVal_132 = A_foo_15_131[index1_952]; } else { returnVal_132 = A_foo_16_210[index1_952]; }; } else { returnVal_132 = A_foo_17_213[index1_952]; }; } else { if (index2_150 <= 18) { returnVal_132 = A_foo_18_175[index1_952]; } else { returnVal_132 = A_foo_19_547[index1_952]; }; }; }; }; }; return returnVal_132; }