array A_nextFree308 integer A_firstFree103 integer A_maxIndex666 array A_a_0156 array A_a_1578 integer A_firstFree103 = 0 integer A_maxIndex666 = 0 function initGlobals152() { } function main181() { local integer a627 initGlobals152(); a_627 = new_A167(); if ((A_a_get547(a_627, 0) == 1) and (A_a_get547(a_627, 1) == 2)) { testSuccess108(); } else { }; } function config182() { } IS_NATIVE function testSuccess108() { } function new_A167() returns integer { local integer this877 local integer this559 local integer this284 local integer this107 if (A_firstFree_103 == 0) { if (A_maxIndex_666 < 32768) { A_maxIndex_666 = (A_maxIndex_666 + 1); this_559 = A_maxIndex_666; } else { error136("Out of memory: Could not create A."); this_559 = 0; }; } else { A_firstFree_103 = (A_firstFree_103 - 1); this_559 = A_nextFree_308[A_firstFree_103]; }; this_877 = this_559; this_284 = this_877; this_107 = this_284; A_a_set674(this_107, 0, 1); A_a_set674(this_107, 1, 2); return this_877; } function error136(string msg155) { $debugPrint211((msg_155 + (" " + #getStackTrace()))); } function A_a_set674(integer instanceId135, integer arrayIndex101, integer value106) { if ((arrayIndex_101 < 0) or (arrayIndex_101 >= 2)) { error136("Index out of Bounds"); } else { if (arrayIndex_101 <= 0) { A_a_0_156[instanceId_135] = value_106; } else { A_a_1_578[instanceId_135] = value_106; }; }; } function A_a_get547(integer index1280, integer index2184) returns integer { local integer returnVal133 if ((index2_184 < 0) or (index2_184 >= 2)) { error136("Index out of Bounds"); } else { if (index2_184 <= 0) { returnVal_133 = A_a_0_156[index1_280]; } else { returnVal_133 = A_a_1_578[index1_280]; }; }; return returnVal_133; }