array Pair_nextFree141 integer Pair_firstFree145 integer Pair_maxIndex103 array Pair_a211 integer Pair_firstFree145 = 0 integer Pair_maxIndex103 = 0 function initGlobals835() { } function main180() { initGlobals835(); init_test124(); } function config691() { } function init_test124() { local integer p138 p_138 = new_Pair118(); Pair_a_211[p_138] = 4; if (Pair_a_211[p_138] == 4) { testSuccess136(); } else { testFail140("Array Test 1 failed."); }; } IS_NATIVE function testSuccess136() { } IS_NATIVE function testFail140(string msg296) { } function new_Pair118() returns integer { local integer this102 local integer this143 if (Pair_firstFree_145 == 0) { if (Pair_maxIndex_103 < 32768) { Pair_maxIndex_103 = (Pair_maxIndex_103 + 1); this_143 = Pair_maxIndex_103; } else { error145("Out of memory: Could not create Pair."); this_143 = 0; }; } else { Pair_firstFree_145 = (Pair_firstFree_145 - 1); this_143 = Pair_nextFree_141[Pair_firstFree_145]; }; this_102 = this_143; return this_102; } function error145(string msg110) { $debugPrint145((msg_110 + (" " + #getStackTrace()))); }