array Pair_nextFree146 integer Pair_firstFree625 integer Pair_maxIndex188 array Pair_a213 integer Pair_firstFree625 = 0 integer Pair_maxIndex188 = 0 function initGlobals162() { } function main133() { initGlobals162(); init_test557(); } function config113() { } function init_test557() { local integer p848 p_848 = new_Pair122(); Pair_a_213[p_848] = 4; if (Pair_a_213[p_848] == 4) { testSuccess132(); } else { testFail189("Array Test 1 failed."); }; } IS_NATIVE function testSuccess132() { } IS_NATIVE function testFail189(string msg120) { } function Pair_init114(integer this197) { } function new_Pair122() returns integer { local integer this159 this_159 = alloc_Pair193(); construct_Pair632(this_159); return this_159; } function construct_Pair632(integer this161) { Pair_init114(this_161); } function alloc_Pair193() returns integer { local integer this518 if (Pair_firstFree_625 == 0) { if (Pair_maxIndex_188 < 32768) { Pair_maxIndex_188 = (Pair_maxIndex_188 + 1); this_518 = Pair_maxIndex_188; } else { error197("Out of memory: Could not create Pair."); this_518 = 0; }; } else { Pair_firstFree_625 = (Pair_firstFree_625 - 1); this_518 = Pair_nextFree_146[Pair_firstFree_625]; }; return this_518; } function error197(string msg104) { $debugPrint132((msg_104 + (" " + #getStackTrace()))); }