array A_nextFree135 integer A_firstFree514 integer A_maxIndex775 array A_a_0162 array A_a_1510 integer A_firstFree514 = 0 integer A_maxIndex775 = 0 function initGlobals123() { } function main114() { local integer a405 initGlobals123(); a_405 = new_A166(); if ((A_a_get929(a_405, 0) == 1) and (A_a_get929(a_405, 1) == 2)) { testSuccess114(); } else { }; } function config889() { } IS_NATIVE function testSuccess114() { } function new_A166() returns integer { local integer this345 if (A_firstFree_514 == 0) { if (A_maxIndex_775 < 32768) { A_maxIndex_775 = (A_maxIndex_775 + 1); this_345 = A_maxIndex_775; } else { error156("Out of memory: Could not create A."); this_345 = 0; }; } else { A_firstFree_514 = (A_firstFree_514 - 1); this_345 = A_nextFree_135[A_firstFree_514]; }; A_a_set716(this_345, 0, 1); A_a_set716(this_345, 1, 2); return this_345; } function error156(string msg112) { $debugPrint749((msg_112 + (" " + #getStackTrace()))); } function A_a_set716(integer instanceId356, integer arrayIndex852, integer value952) { if ((arrayIndex_852 < 0) or (arrayIndex_852 >= 2)) { error156("Index out of Bounds"); } else { if (arrayIndex_852 <= 0) { A_a_0_162[instanceId_356] = value_952; } else { A_a_1_510[instanceId_356] = value_952; }; }; } function A_a_get929(integer index1141, integer index2172) returns integer { local integer returnVal169 if ((index2_172 < 0) or (index2_172 >= 2)) { error156("Index out of Bounds"); } else { if (index2_172 <= 0) { returnVal_169 = A_a_0_162[index1_141]; } else { returnVal_169 = A_a_1_510[index1_141]; }; }; return returnVal_169; }