array A_nextFree124 integer A_firstFree118 integer A_maxIndex164 array A_i199 integer A_firstFree118 = 0 integer A_maxIndex164 = 0 function initGlobals202() { } function main454() { initGlobals202(); init_test540(); } function config173() { } function init_test540() { if (A_i_199[new_A673()] == 1) { testSuccess198(); } else { }; } IS_NATIVE function testSuccess198() { } function A_init213(integer this335) { A_i_199[this_335] = (this_335 castTo integer); } function new_A673() returns integer { local integer this106 this_106 = alloc_A140(); construct_A102(this_106); return this_106; } function construct_A102(integer this516) { A_init213(this_516); } function alloc_A140() returns integer { local integer this146 if (A_firstFree_118 == 0) { if (A_maxIndex_164 < 32768) { A_maxIndex_164 = (A_maxIndex_164 + 1); this_146 = A_maxIndex_164; } else { error118("Out of memory: Could not create A."); this_146 = 0; }; } else { A_firstFree_118 = (A_firstFree_118 - 1); this_146 = A_nextFree_124[A_firstFree_118]; }; return this_146; } function error118(string msg943) { $debugPrint173((msg_943 + (" " + #getStackTrace()))); }