array A_nextFree504 integer A_firstFree684 integer A_maxIndex169 integer A_firstFree684 = 0 integer A_maxIndex169 = 0 function initGlobals487() { A_firstFree_684 = 0; A_maxIndex_169 = 0; } function main688() { initGlobals487(); init_test267(); } function config185() { } function init_test267() { new_A376(); } function A_init179(integer this274) { } function new_A376() returns integer { local integer this700 this_700 = alloc_A253(); construct_A2114(this_700); return this_700; } function construct_A2114(integer this123) { A_init179(this_123); } function alloc_A253() returns integer { local integer this110 if (A_firstFree_684 == 0) { if (A_maxIndex_169 < 32768) { A_maxIndex_169 = (A_maxIndex_169 + 1); this_110 = A_maxIndex_169; } else { error171("Out of memory: Could not create A."); this_110 = 0; }; } else { A_firstFree_684 = (A_firstFree_684 - 1); this_110 = A_nextFree_504[A_firstFree_684]; }; return this_110; } function error171(string msg180) { $debugPrint992((msg_180 + (" " + #getStackTrace()))); }