array A_nextFree957 integer A_firstFree185 integer A_maxIndex179 array A_a_0189 array A_a_1209 integer A_firstFree185 = 0 integer A_maxIndex179 = 0 function initGlobals605() { A_firstFree_185 = 0; A_maxIndex_179 = 0; } function main189() { initGlobals605(); init_test148(); } function config208() { } function init_test148() { local integer a852 a_852 = new_A984(); if ((A_a_get113(a_852, 0) == 1) and (A_a_get113(a_852, 1) == 2)) { testSuccess185(); } else { }; } IS_NATIVE function testSuccess185() { } function A_init839(integer this130) { A_a_set562(this_130, 0, 1); A_a_set562(this_130, 1, 2); } function new_A984() returns integer { local integer this157 this_157 = alloc_A703(); construct_A242(this_157); return this_157; } function construct_A242(integer this109) { A_init839(this_109); } function alloc_A703() returns integer { local integer this263 if (A_firstFree_185 == 0) { if (A_maxIndex_179 < 32768) { A_maxIndex_179 = (A_maxIndex_179 + 1); this_263 = A_maxIndex_179; } else { error548("Out of memory: Could not create A."); this_263 = 0; }; } else { A_firstFree_185 = (A_firstFree_185 - 1); this_263 = A_nextFree_957[A_firstFree_185]; }; return this_263; } function error548(string msg180) { $debugPrint162((msg_180 + (" " + #getStackTrace()))); } function A_a_set562(integer instanceId110, integer arrayIndex173, integer value603) { if ((arrayIndex_173 < 0) or (arrayIndex_173 >= 2)) { error548("Index out of Bounds"); } else { if (arrayIndex_173 <= 0) { A_a_0_189[instanceId_110] = value_603; } else { A_a_1_209[instanceId_110] = value_603; }; }; } function A_a_get113(integer index1142, integer index2679) returns integer { local integer returnVal163 if ((index2_679 < 0) or (index2_679 >= 2)) { error548("Index out of Bounds"); } else { if (index2_679 <= 0) { returnVal_163 = A_a_0_189[index1_142]; } else { returnVal_163 = A_a_1_209[index1_142]; }; }; return returnVal_163; }