array A_nextFree275 integer A_firstFree101 integer A_maxIndex115 array A_typeId158 integer A_firstFree101 = 0 integer A_maxIndex115 = 0 function initGlobals692() { A_firstFree_101 = 0; A_maxIndex_115 = 0; } function main157() { initGlobals692(); init_test894(); } function config174() { } function init_test894() { local integer a174 a_174 = new_B125(); if (A_typeId_158[a_174] == 2) { testSuccess378(); } else { }; } IS_NATIVE function testSuccess378() { } function A_init106(integer this180) { } function construct_A299(integer this156) { A_init106(this_156); } function B_init880(integer this204) { } function new_B125() returns integer { local integer this112 this_112 = alloc_B168(); construct_B373(this_112); return this_112; } function construct_B373(integer this387) { construct_A299(this_387); B_init880(this_387); } function error885(string msg124) { $debugPrint857((msg_124 + (" " + #getStackTrace()))); } function alloc_B168() returns integer { local integer this160 if (A_firstFree_101 == 0) { if (A_maxIndex_115 < 32768) { A_maxIndex_115 = (A_maxIndex_115 + 1); this_160 = A_maxIndex_115; A_typeId_158[this_160] = 2; } else { error885("Out of memory: Could not create B."); this_160 = 0; }; } else { A_firstFree_101 = (A_firstFree_101 - 1); this_160 = A_nextFree_275[A_firstFree_101]; A_typeId_158[this_160] = 2; }; return this_160; }