array A_nextFree115 integer A_firstFree824 integer A_maxIndex653 array A_b_i_0105 array A_b_i_1209 integer A_firstFree824 = 0 integer A_maxIndex653 = 0 function initGlobals342() { } function main164() { initGlobals342(); init_test467(); } function config183() { } function init_test467() { local integer a199 a_199 = new_A200(); A_b_i_set914(a_199, 0, 4); A_b_i_set914(a_199, 1, 5); if ((A_b_i_get181(a_199, 0) == 4) and (A_b_i_get181(a_199, 1) == 5)) { testSuccess503(); } else { }; } IS_NATIVE function testSuccess503() { } function A_init212(integer this181) { } function new_A200() returns integer { local integer this183 this_183 = alloc_A206(); construct_A555(this_183); return this_183; } function construct_A555(integer this490) { A_init212(this_490); } function alloc_A206() returns integer { local integer this158 if (A_firstFree_824 == 0) { if (A_maxIndex_653 < 32768) { A_maxIndex_653 = (A_maxIndex_653 + 1); this_158 = A_maxIndex_653; } else { error187("Out of memory: Could not create A."); this_158 = 0; }; } else { A_firstFree_824 = (A_firstFree_824 - 1); this_158 = A_nextFree_115[A_firstFree_824]; }; return this_158; } function error187(string msg252) { $debugPrint155((msg_252 + (" " + #getStackTrace()))); } function A_b_i_set914(integer instanceId174, integer arrayIndex548, integer value100) { if ((arrayIndex_548 < 0) or (arrayIndex_548 >= 2)) { error187("Index out of Bounds"); } else { if (arrayIndex_548 <= 0) { A_b_i_0_105[instanceId_174] = value_100; } else { A_b_i_1_209[instanceId_174] = value_100; }; }; } function A_b_i_get181(integer index1160, integer index2472) returns integer { local integer returnVal544 if ((index2_472 < 0) or (index2_472 >= 2)) { error187("Index out of Bounds"); } else { if (index2_472 <= 0) { returnVal_544 = A_b_i_0_105[index1_160]; } else { returnVal_544 = A_b_i_1_209[index1_160]; }; }; return returnVal_544; }