array A_nextFree133 integer A_firstFree361 integer A_maxIndex157 array A_a_0127 array A_a_1588 integer A_firstFree361 = 0 integer A_maxIndex157 = 0 function initGlobals524() { } function main160() { local integer a616 initGlobals524(); a_616 = new_A183(); if ((A_a_get136(a_616, 0) == 1) and (A_a_get136(a_616, 1) == 2)) { testSuccess101(); } else { }; } function config735() { } IS_NATIVE function testSuccess101() { } function new_A183() returns integer { local integer this195 local integer this191 local integer this172 local integer this953 if (A_firstFree_361 == 0) { if (A_maxIndex_157 < 32768) { A_maxIndex_157 = (A_maxIndex_157 + 1); this_191 = A_maxIndex_157; } else { error684("Out of memory: Could not create A."); this_191 = 0; }; } else { A_firstFree_361 = (A_firstFree_361 - 1); this_191 = A_nextFree_133[A_firstFree_361]; }; this_195 = this_191; this_172 = this_195; this_953 = this_172; A_a_set171(this_953, 0, 1); A_a_set171(this_953, 1, 2); return this_195; } function error684(string msg100) { $debugPrint528((msg_100 + (" " + #getStackTrace()))); } function A_a_set171(integer instanceId543, integer arrayIndex182, integer value120) { if ((arrayIndex_182 < 0) or (arrayIndex_182 >= 2)) { error684("Index out of Bounds"); } else { if (arrayIndex_182 <= 0) { A_a_0_127[instanceId_543] = value_120; } else { A_a_1_588[instanceId_543] = value_120; }; }; } function A_a_get136(integer index1198, integer index2914) returns integer { local integer returnVal807 if ((index2_914 < 0) or (index2_914 >= 2)) { error684("Index out of Bounds"); } else { if (index2_914 <= 0) { returnVal_807 = A_a_0_127[index1_198]; } else { returnVal_807 = A_a_1_588[index1_198]; }; }; return returnVal_807; }