array A_nextFree114 integer A_firstFree658 integer A_maxIndex141 array A_someInt138 integer A_firstFree658 = 0 integer A_maxIndex141 = 0 function initGlobals206() { A_firstFree_658 = 0; A_maxIndex_141 = 0; } function main179() { initGlobals206(); init_test207(); } function config142() { } function init_test207() { if (A_someInt_138[new_B501()] == 1) { testSuccess158(); } else { }; } IS_NATIVE function testSuccess158() { } function A_init131(integer this548) { } function construct_A142(integer this152) { A_init131(this_152); } function B_init321(integer this881) { } function new_B501() returns integer { local integer this291 this_291 = alloc_B161(); construct_B339(this_291); return this_291; } function construct_B339(integer this179) { construct_A142(this_179); B_init321(this_179); A_someInt_138[this_179] = 1; } function error109(string msg160) { $debugPrint175((msg_160 + (" " + #getStackTrace()))); } function alloc_B161() returns integer { local integer this302 if (A_firstFree_658 == 0) { if (A_maxIndex_141 < 32768) { A_maxIndex_141 = (A_maxIndex_141 + 1); this_302 = A_maxIndex_141; } else { error109("Out of memory: Could not create B."); this_302 = 0; }; } else { A_firstFree_658 = (A_firstFree_658 - 1); this_302 = A_nextFree_114[A_firstFree_658]; }; return this_302; }