array I_nextFree120 integer I_firstFree170 integer I_maxIndex108 integer I_firstFree170 = 0 integer I_maxIndex108 = 0 function initGlobals144() { I_firstFree_170 = 0; I_maxIndex_108 = 0; } function main335() { initGlobals144(); init_test199(); } function config190() { } function init_test199() { local integer a145 local integer b742 local integer c212 a_145 = new_B501(); b_742 = new_B501(); c_212 = new_C986(); if ((a_145 != b_742) and (a_145 != c_212)) { testSuccess205(); } else { }; } IS_NATIVE function testSuccess205() { } function B_init550(integer this183) { } function new_B501() returns integer { local integer this170 this_170 = alloc_B468(); construct_B214(this_170); return this_170; } function construct_B214(integer this176) { B_init550(this_176); } function C_init212(integer this115) { } function new_C986() returns integer { local integer this130 this_130 = alloc_C697(); construct_C477(this_130); return this_130; } function construct_C477(integer this875) { C_init212(this_875); } function alloc_B468() returns integer { local integer this180 if (I_firstFree_170 == 0) { if (I_maxIndex_108 < 32768) { I_maxIndex_108 = (I_maxIndex_108 + 1); this_180 = I_maxIndex_108; } else { error101("Out of memory: Could not create B."); this_180 = 0; }; } else { I_firstFree_170 = (I_firstFree_170 - 1); this_180 = I_nextFree_120[I_firstFree_170]; }; return this_180; } function error101(string msg564) { $debugPrint138((msg_564 + (" " + #getStackTrace()))); } function alloc_C697() returns integer { local integer this906 if (I_firstFree_170 == 0) { if (I_maxIndex_108 < 32768) { I_maxIndex_108 = (I_maxIndex_108 + 1); this_906 = I_maxIndex_108; } else { error101("Out of memory: Could not create C."); this_906 = 0; }; } else { I_firstFree_170 = (I_firstFree_170 - 1); this_906 = I_nextFree_120[I_firstFree_170]; }; return this_906; }