array I_nextFree410 integer I_firstFree937 integer I_maxIndex396 integer I_firstFree937 = 0 integer I_maxIndex396 = 0 function initGlobals173() { } function main174() { initGlobals173(); init_test167(); } function config212() { } function init_test167() { local integer a206 local integer b940 local integer c337 a_206 = new_B191(); b_940 = new_B191(); c_337 = new_C983(); if ((a_206 != b_940) and (a_206 != c_337)) { testSuccess138(); } else { }; } IS_NATIVE function testSuccess138() { } function new_B191() returns integer { local integer this590 local integer this192 if (I_firstFree_937 == 0) { if (I_maxIndex_396 < 32768) { I_maxIndex_396 = (I_maxIndex_396 + 1); this_192 = I_maxIndex_396; } else { error142("Out of memory: Could not create B."); this_192 = 0; }; } else { I_firstFree_937 = (I_firstFree_937 - 1); this_192 = I_nextFree_410[I_firstFree_937]; }; this_590 = this_192; return this_590; } function new_C983() returns integer { local integer this179 local integer this127 if (I_firstFree_937 == 0) { if (I_maxIndex_396 < 32768) { I_maxIndex_396 = (I_maxIndex_396 + 1); this_127 = I_maxIndex_396; } else { error142("Out of memory: Could not create C."); this_127 = 0; }; } else { I_firstFree_937 = (I_firstFree_937 - 1); this_127 = I_nextFree_410[I_firstFree_937]; }; this_179 = this_127; return this_179; } function error142(string msg177) { $debugPrint544((msg_177 + (" " + #getStackTrace()))); }