array A_nextFree180 integer A_firstFree157 integer A_maxIndex186 array A_foo_0164 array A_foo_1974 array A_foo_2191 array A_foo_3145 array A_foo_4963 integer A_firstFree157 = 0 integer A_maxIndex186 = 0 function initGlobals988() { } function main121() { initGlobals988(); init_test197(); } function config114() { } function init_test197() { local integer a119 a_119 = new_A165(); A_foo_set190(a_119, 3, 6); if (A_foo_get178(a_119, 3) == 6) { testSuccess129(); } else { }; } IS_NATIVE function testSuccess129() { } function A_init874(integer this184) { } function new_A165() returns integer { local integer this490 this_490 = alloc_A121(); construct_A169(this_490); return this_490; } function construct_A169(integer this130) { A_init874(this_130); } function alloc_A121() returns integer { local integer this125 if (A_firstFree_157 == 0) { if (A_maxIndex_186 < 32768) { A_maxIndex_186 = (A_maxIndex_186 + 1); this_125 = A_maxIndex_186; } else { error108("Out of memory: Could not create A."); this_125 = 0; }; } else { A_firstFree_157 = (A_firstFree_157 - 1); this_125 = A_nextFree_180[A_firstFree_157]; }; return this_125; } function error108(string msg190) { $debugPrint176((msg_190 + (" " + #getStackTrace()))); } function A_foo_set190(integer instanceId132, integer arrayIndex104, integer value557) { if ((arrayIndex_104 < 0) or (arrayIndex_104 >= 5)) { error108("Index out of Bounds"); } else { if (arrayIndex_104 <= 2) { if (arrayIndex_104 <= 1) { if (arrayIndex_104 <= 0) { A_foo_0_164[instanceId_132] = value_557; } else { A_foo_1_974[instanceId_132] = value_557; }; } else { A_foo_2_191[instanceId_132] = value_557; }; } else { if (arrayIndex_104 <= 3) { A_foo_3_145[instanceId_132] = value_557; } else { A_foo_4_963[instanceId_132] = value_557; }; }; }; } function A_foo_get178(integer index1146, integer index2124) returns integer { local integer returnVal320 if ((index2_124 < 0) or (index2_124 >= 5)) { error108("Index out of Bounds"); } else { if (index2_124 <= 2) { if (index2_124 <= 1) { if (index2_124 <= 0) { returnVal_320 = A_foo_0_164[index1_146]; } else { returnVal_320 = A_foo_1_974[index1_146]; }; } else { returnVal_320 = A_foo_2_191[index1_146]; }; } else { if (index2_124 <= 3) { returnVal_320 = A_foo_3_145[index1_146]; } else { returnVal_320 = A_foo_4_963[index1_146]; }; }; }; return returnVal_320; }