array A_nextFree161 integer A_firstFree188 integer A_maxIndex133 array A_a_0592 array A_a_1135 integer A_firstFree188 = 0 integer A_maxIndex133 = 0 function initGlobals196() { } function main124() { initGlobals196(); init_test182(); } function config616() { } function init_test182() { local integer a316 a_316 = new_A180(); if ((A_a_get168(a_316, 0) == 1) and (A_a_get168(a_316, 1) == 2)) { testSuccess210(); } else { }; } IS_NATIVE function testSuccess210() { } function A_init174(integer this749) { A_a_set159(this_749, 0, 1); A_a_set159(this_749, 1, 2); } function new_A180() returns integer { local integer this247 this_247 = alloc_A123(); construct_A409(this_247); return this_247; } function construct_A409(integer this127) { A_init174(this_127); } function alloc_A123() returns integer { local integer this856 if (A_firstFree_188 == 0) { if (A_maxIndex_133 < 32768) { A_maxIndex_133 = (A_maxIndex_133 + 1); this_856 = A_maxIndex_133; } else { error211("Out of memory: Could not create A."); this_856 = 0; }; } else { A_firstFree_188 = (A_firstFree_188 - 1); this_856 = A_nextFree_161[A_firstFree_188]; }; return this_856; } function error211(string msg114) { $debugPrint519((msg_114 + (" " + #getStackTrace()))); } function A_a_set159(integer instanceId332, integer arrayIndex385, integer value606) { if ((arrayIndex_385 < 0) or (arrayIndex_385 >= 2)) { error211("Index out of Bounds"); } else { if (arrayIndex_385 <= 0) { A_a_0_592[instanceId_332] = value_606; } else { A_a_1_135[instanceId_332] = value_606; }; }; } function A_a_get168(integer index1168, integer index2342) returns integer { local integer returnVal196 if ((index2_342 < 0) or (index2_342 >= 2)) { error211("Index out of Bounds"); } else { if (index2_342 <= 0) { returnVal_196 = A_a_0_592[index1_168]; } else { returnVal_196 = A_a_1_135[index1_168]; }; }; return returnVal_196; }