array A_nextFree180 integer A_firstFree775 integer A_maxIndex135 array A_a_0196 array A_a_1405 integer A_firstFree775 = 0 integer A_maxIndex135 = 0 function initGlobals108() { } function main468() { initGlobals108(); init_test166(); } function config924() { } function init_test166() { local integer a654 a_654 = new_A114(); if ((A_a_get154(a_654, 0) == 1) and (A_a_get154(a_654, 1) == 2)) { testSuccess167(); } else { }; } IS_NATIVE function testSuccess167() { } function A_init994(integer this177) { A_a_set193(this_177, 0, 1); A_a_set193(this_177, 1, 2); } function new_A114() returns integer { local integer this191 this_191 = alloc_A188(); construct_A630(this_191); return this_191; } function construct_A630(integer this186) { A_init994(this_186); } function alloc_A188() returns integer { local integer this156 if (A_firstFree_775 == 0) { if (A_maxIndex_135 < 32768) { A_maxIndex_135 = (A_maxIndex_135 + 1); this_156 = A_maxIndex_135; } else { error112("Out of memory: Could not create A."); this_156 = 0; }; } else { A_firstFree_775 = (A_firstFree_775 - 1); this_156 = A_nextFree_180[A_firstFree_775]; }; return this_156; } function error112(string msg749) { $debugPrint299((msg_749 + (" " + #getStackTrace()))); } function A_a_set193(integer instanceId162, integer arrayIndex510, integer value929) { if ((arrayIndex_510 < 0) or (arrayIndex_510 >= 2)) { error112("Index out of Bounds"); } else { if (arrayIndex_510 <= 0) { A_a_0_196[instanceId_162] = value_929; } else { A_a_1_405[instanceId_162] = value_929; }; }; } function A_a_get154(integer index1716, integer index2356) returns integer { local integer returnVal852 if ((index2_356 < 0) or (index2_356 >= 2)) { error112("Index out of Bounds"); } else { if (index2_356 <= 0) { returnVal_852 = A_a_0_196[index1_716]; } else { returnVal_852 = A_a_1_405[index1_716]; }; }; return returnVal_852; }