array I_nextFree188 integer I_firstFree131 integer I_maxIndex561 integer I_firstFree131 = 0 integer I_maxIndex561 = 0 function initGlobals188() { I_firstFree_131 = 0; I_maxIndex_561 = 0; } function main209() { initGlobals188(); init_test187(); } function config212() { } function init_test187() { local integer a106 local integer b197 local integer c147 a_106 = new_B153(); b_197 = new_B153(); c_147 = new_C162(); if (not ((a_106 == b_197) or (a_106 == c_147))) { testSuccess108(); } else { }; } IS_NATIVE function testSuccess108() { } function B_init941(integer this585) { } function new_B153() returns integer { local integer this155 this_155 = alloc_B943(); construct_B354(this_155); return this_155; } function construct_B354(integer this321) { B_init941(this_321); } function C_init708(integer this197) { } function new_C162() returns integer { local integer this206 this_206 = alloc_C164(); construct_C174(this_206); return this_206; } function construct_C174(integer this687) { C_init708(this_687); } function alloc_B943() returns integer { local integer this155 if (I_firstFree_131 == 0) { if (I_maxIndex_561 < 32768) { I_maxIndex_561 = (I_maxIndex_561 + 1); this_155 = I_maxIndex_561; } else { error137("Out of memory: Could not create B."); this_155 = 0; }; } else { I_firstFree_131 = (I_firstFree_131 - 1); this_155 = I_nextFree_188[I_firstFree_131]; }; return this_155; } function error137(string msg146) { $debugPrint169((msg_146 + (" " + #getStackTrace()))); } function alloc_C164() returns integer { local integer this128 if (I_firstFree_131 == 0) { if (I_maxIndex_561 < 32768) { I_maxIndex_561 = (I_maxIndex_561 + 1); this_128 = I_maxIndex_561; } else { error137("Out of memory: Could not create C."); this_128 = 0; }; } else { I_firstFree_131 = (I_firstFree_131 - 1); this_128 = I_nextFree_188[I_firstFree_131]; }; return this_128; }