array A_nextFree318 integer A_firstFree159 integer A_maxIndex198 array A_ints_0208 array A_ints_1195 array A_ints_2185 array A_ints_3560 integer A_firstFree159 = 0 integer A_maxIndex198 = 0 function initGlobals840() { A_firstFree_159 = 0; A_maxIndex_198 = 0; } function main537() { initGlobals840(); init_test167(); } function config877() { } function init_test167() { local integer a139 a_139 = new_A234(); A_ints_set357(a_139, 0, 1234); if (A_ints_get202(a_139, 0) == 1234) { testSuccess940(); } else { testFail620("wrong value"); }; } IS_NATIVE function testSuccess940() { } IS_NATIVE function testFail620(string msg210) { } function A_init173(integer this263) { } function new_A234() returns integer { local integer this900 this_900 = alloc_A160(); construct_A836(this_900); return this_900; } function construct_A836(integer this513) { A_init173(this_513); } function alloc_A160() returns integer { local integer this313 if (A_firstFree_159 == 0) { if (A_maxIndex_198 < 32768) { A_maxIndex_198 = (A_maxIndex_198 + 1); this_313 = A_maxIndex_198; } else { error109("Out of memory: Could not create A."); this_313 = 0; }; } else { A_firstFree_159 = (A_firstFree_159 - 1); this_313 = A_nextFree_318[A_firstFree_159]; }; return this_313; } function error109(string msg147) { $debugPrint213((msg_147 + (" " + #getStackTrace()))); } function A_ints_set357(integer instanceId593, integer arrayIndex144, integer value135) { if ((arrayIndex_144 < 0) or (arrayIndex_144 >= 4)) { error109("Index out of Bounds"); } else { if (arrayIndex_144 <= 1) { if (arrayIndex_144 <= 0) { A_ints_0_208[instanceId_593] = value_135; } else { A_ints_1_195[instanceId_593] = value_135; }; } else { if (arrayIndex_144 <= 2) { A_ints_2_185[instanceId_593] = value_135; } else { A_ints_3_560[instanceId_593] = value_135; }; }; }; } function A_ints_get202(integer index1548, integer index2207) returns integer { local integer returnVal756 if ((index2_207 < 0) or (index2_207 >= 4)) { error109("Index out of Bounds"); } else { if (index2_207 <= 1) { if (index2_207 <= 0) { returnVal_756 = A_ints_0_208[index1_548]; } else { returnVal_756 = A_ints_1_195[index1_548]; }; } else { if (index2_207 <= 2) { returnVal_756 = A_ints_2_185[index1_548]; } else { returnVal_756 = A_ints_3_560[index1_548]; }; }; }; return returnVal_756; }