array I_nextFree170 integer I_firstFree121 integer I_maxIndex203 integer I_firstFree121 = 0 integer I_maxIndex203 = 0 function initGlobals145() { I_firstFree_121 = 0; I_maxIndex_203 = 0; } function main651() { initGlobals145(); init_test238(); } function config870() { } function init_test238() { local integer a211 local integer b135 local integer c121 a_211 = new_B326(); b_135 = new_B326(); c_121 = new_C940(); if (not ((a_211 == b_135) or (a_211 == c_121))) { testSuccess126(); } else { }; } IS_NATIVE function testSuccess126() { } function B_init933(integer this115) { } function new_B326() returns integer { local integer this203 this_203 = alloc_B195(); construct_B164(this_203); return this_203; } function construct_B164(integer this165) { B_init933(this_165); } function C_init109(integer this183) { } function new_C940() returns integer { local integer this442 this_442 = alloc_C152(); construct_C987(this_442); return this_442; } function construct_C987(integer this823) { C_init109(this_823); } function alloc_B195() returns integer { local integer this638 if (I_firstFree_121 == 0) { if (I_maxIndex_203 < 32768) { I_maxIndex_203 = (I_maxIndex_203 + 1); this_638 = I_maxIndex_203; } else { error938("Out of memory: Could not create B."); this_638 = 0; }; } else { I_firstFree_121 = (I_firstFree_121 - 1); this_638 = I_nextFree_170[I_firstFree_121]; }; return this_638; } function error938(string msg731) { $debugPrint185((msg_731 + (" " + #getStackTrace()))); } function alloc_C152() returns integer { local integer this327 if (I_firstFree_121 == 0) { if (I_maxIndex_203 < 32768) { I_maxIndex_203 = (I_maxIndex_203 + 1); this_327 = I_maxIndex_203; } else { error938("Out of memory: Could not create C."); this_327 = 0; }; } else { I_firstFree_121 = (I_firstFree_121 - 1); this_327 = I_nextFree_170[I_firstFree_121]; }; return this_327; }