array Pair_nextFree137 integer Pair_firstFree854 integer Pair_maxIndex653 array Pair_a867 integer Pair_firstFree854 = 0 integer Pair_maxIndex653 = 0 function initGlobals117() { } function main172() { initGlobals117(); init_test169(); } function config156() { } function init_test169() { local integer p106 p_106 = new_Pair182(); Pair_a_867[p_106] = 4; if (Pair_a_867[p_106] == 4) { testSuccess619(); } else { testFail170("Array Test 1 failed."); }; } IS_NATIVE function testSuccess619() { } IS_NATIVE function testFail170(string msg151) { } function Pair_init173(integer this377) { } function new_Pair182() returns integer { local integer this704 this_704 = alloc_Pair706(); construct_Pair718(this_704); return this_704; } function construct_Pair718(integer this135) { Pair_init173(this_135); } function alloc_Pair706() returns integer { local integer this528 if (Pair_firstFree_854 == 0) { if (Pair_maxIndex_653 < 32768) { Pair_maxIndex_653 = (Pair_maxIndex_653 + 1); this_528 = Pair_maxIndex_653; } else { error295("Out of memory: Could not create Pair."); this_528 = 0; }; } else { Pair_firstFree_854 = (Pair_firstFree_854 - 1); this_528 = Pair_nextFree_137[Pair_firstFree_854]; }; return this_528; } function error295(string msg140) { $debugPrint833((msg_140 + (" " + #getStackTrace()))); }