array Pair_nextFree135 integer Pair_firstFree173 integer Pair_maxIndex675 array Pair_a203 integer Pair_firstFree173 = 0 integer Pair_maxIndex675 = 0 function initGlobals361() { Pair_firstFree_173 = 0; Pair_maxIndex_675 = 0; } function main123() { initGlobals361(); init_test110(); } function config170() { } function init_test110() { local integer p727 p_727 = new_Pair159(); Pair_a_203[p_727] = 4; if (Pair_a_203[p_727] == 4) { testSuccess962(); } else { testFail294("Array Test 1 failed."); }; } IS_NATIVE function testSuccess962() { } IS_NATIVE function testFail294(string msg130) { } function Pair_init483(integer this663) { } function new_Pair159() returns integer { local integer this464 this_464 = alloc_Pair815(); construct_Pair908(this_464); return this_464; } function construct_Pair908(integer this101) { Pair_init483(this_101); } function alloc_Pair815() returns integer { local integer this379 if (Pair_firstFree_173 == 0) { if (Pair_maxIndex_675 < 32768) { Pair_maxIndex_675 = (Pair_maxIndex_675 + 1); this_379 = Pair_maxIndex_675; } else { error367("Out of memory: Could not create Pair."); this_379 = 0; }; } else { Pair_firstFree_173 = (Pair_firstFree_173 - 1); this_379 = Pair_nextFree_135[Pair_firstFree_173]; }; return this_379; } function error367(string msg179) { $debugPrint165((msg_179 + (" " + #getStackTrace()))); }