array Pair_nextFree877 integer Pair_firstFree158 integer Pair_maxIndex716 array Pair_a563 integer Pair_firstFree158 = 0 integer Pair_maxIndex716 = 0 function initGlobals800() { } function main148() { initGlobals800(); init_test401(); } function config547() { } function init_test401() { local integer p134 p_134 = new_Pair994(); Pair_a_563[p_134] = 4; if (Pair_a_563[p_134] == 4) { testSuccess189(); } else { testFail177("Array Test 1 failed."); }; } IS_NATIVE function testSuccess189() { } IS_NATIVE function testFail177(string msg359) { } function Pair_init538(integer this179) { } function new_Pair994() returns integer { local integer this141 this_141 = alloc_Pair714(); construct_Pair771(this_141); return this_141; } function construct_Pair771(integer this118) { Pair_init538(this_118); } function alloc_Pair714() returns integer { local integer this175 if (Pair_firstFree_158 == 0) { if (Pair_maxIndex_716 < 32768) { Pair_maxIndex_716 = (Pair_maxIndex_716 + 1); this_175 = Pair_maxIndex_716; } else { error268("Out of memory: Could not create Pair."); this_175 = 0; }; } else { Pair_firstFree_158 = (Pair_firstFree_158 - 1); this_175 = Pair_nextFree_877[Pair_firstFree_158]; }; return this_175; } function error268(string msg553) { $debugPrint260((msg_553 + (" " + #getStackTrace()))); }