array A_nextFree141 integer A_firstFree294 integer A_maxIndex148 integer A_firstFree294 = 0 integer A_maxIndex148 = 0 function initGlobals124() { } function main185() { initGlobals124(); init_test169(); } function config963() { } function init_test169() { new_B377(); } function A_init170(integer this716) { } function construct_A130(integer this911) { A_init170(this_911); } function B_init531(integer this195) { } function new_B377() returns integer { local integer this132 this_132 = alloc_B174(); construct_B136(this_132); return this_132; } function construct_B136(integer this101) { construct_A130(this_101); B_init531(this_101); } function error438(string msg132) { $debugPrint887((msg_132 + (" " + #getStackTrace()))); } function alloc_B174() returns integer { local integer this166 if (A_firstFree_294 == 0) { if (A_maxIndex_148 < 32768) { A_maxIndex_148 = (A_maxIndex_148 + 1); this_166 = A_maxIndex_148; } else { error438("Out of memory: Could not create B."); this_166 = 0; }; } else { A_firstFree_294 = (A_firstFree_294 - 1); this_166 = A_nextFree_141[A_firstFree_294]; }; return this_166; }