array A_nextFree224 integer A_firstFree519 integer A_maxIndex188 array A_someInt441 integer A_firstFree519 = 0 integer A_maxIndex188 = 0 function initGlobals200() { A_firstFree_519 = 0; A_maxIndex_188 = 0; } function main131() { initGlobals200(); init_test948(); } function config111() { } function init_test948() { if (A_someInt_441[new_B204()] == 1) { testSuccess525(); } else { }; } IS_NATIVE function testSuccess525() { } function A_init298(integer this192) { } function construct_A126(integer this131) { A_init298(this_131); } function B_init178(integer this211) { } function new_B204() returns integer { local integer this136 this_136 = alloc_B125(); construct_B266(this_136); return this_136; } function construct_B266(integer this185) { construct_A126(this_185); B_init178(this_185); A_someInt_441[this_185] = 1; } function error757(string msg370) { $debugPrint125((msg_370 + (" " + #getStackTrace()))); } function alloc_B125() returns integer { local integer this790 if (A_firstFree_519 == 0) { if (A_maxIndex_188 < 32768) { A_maxIndex_188 = (A_maxIndex_188 + 1); this_790 = A_maxIndex_188; } else { error757("Out of memory: Could not create B."); this_790 = 0; }; } else { A_firstFree_519 = (A_firstFree_519 - 1); this_790 = A_nextFree_224[A_firstFree_519]; }; return this_790; }