array Pair_nextFree153 integer Pair_firstFree168 integer Pair_maxIndex111 array Pair_a335 integer Pair_firstFree168 = 0 integer Pair_maxIndex111 = 0 function initGlobals280() { } function main966() { initGlobals280(); init_test371(); } function config532() { } function init_test371() { local integer p174 p_174 = new_Pair186(); Pair_a_335[p_174] = 4; if (Pair_a_335[p_174] == 4) { testSuccess211(); } else { testFail132("Array Test 1 failed."); }; } IS_NATIVE function testSuccess211() { } IS_NATIVE function testFail132(string msg111) { } function new_Pair186() returns integer { local integer this411 if (Pair_firstFree_168 == 0) { if (Pair_maxIndex_111 < 32768) { Pair_maxIndex_111 = (Pair_maxIndex_111 + 1); this_411 = Pair_maxIndex_111; } else { error205("Out of memory: Could not create Pair."); this_411 = 0; }; } else { Pair_firstFree_168 = (Pair_firstFree_168 - 1); this_411 = Pair_nextFree_153[Pair_firstFree_168]; }; return this_411; } function error205(string msg670) { $debugPrint233((msg_670 + (" " + #getStackTrace()))); }