array I_nextFree339 integer I_firstFree186 integer I_maxIndex139 integer I_firstFree186 = 0 integer I_maxIndex139 = 0 function initGlobals142() { I_firstFree_186 = 0; I_maxIndex_139 = 0; } function main138() { initGlobals142(); init_test980(); } function config216() { } function init_test980() { local integer a710 local integer b766 local integer c554 a_710 = new_B970(); b_766 = new_B970(); c_554 = new_C201(); if (not ((a_710 == b_766) or (a_710 == c_554))) { testSuccess962(); } else { }; } IS_NATIVE function testSuccess962() { } function B_init153(integer this203) { } function new_B970() returns integer { local integer this132 this_132 = alloc_B156(); construct_B358(this_132); return this_132; } function construct_B358(integer this218) { B_init153(this_218); } function C_init259(integer this100) { } function new_C201() returns integer { local integer this168 this_168 = alloc_C205(); construct_C147(this_168); return this_168; } function construct_C147(integer this201) { C_init259(this_201); } function alloc_B156() returns integer { local integer this408 if (I_firstFree_186 == 0) { if (I_maxIndex_139 < 32768) { I_maxIndex_139 = (I_maxIndex_139 + 1); this_408 = I_maxIndex_139; } else { error423("Out of memory: Could not create B."); this_408 = 0; }; } else { I_firstFree_186 = (I_firstFree_186 - 1); this_408 = I_nextFree_339[I_firstFree_186]; }; return this_408; } function error423(string msg178) { $debugPrint120((msg_178 + (" " + #getStackTrace()))); } function alloc_C205() returns integer { local integer this834 if (I_firstFree_186 == 0) { if (I_maxIndex_139 < 32768) { I_maxIndex_139 = (I_maxIndex_139 + 1); this_834 = I_maxIndex_139; } else { error423("Out of memory: Could not create C."); this_834 = 0; }; } else { I_firstFree_186 = (I_firstFree_186 - 1); this_834 = I_nextFree_339[I_firstFree_186]; }; return this_834; }