integer PowerLevel_amount155 array PowerLevel_nextFree126 integer PowerLevel_firstFree299 integer PowerLevel_maxIndex160 integer PowerLevel_amount155 = 0 integer PowerLevel_firstFree299 = 0 integer PowerLevel_maxIndex160 = 0 function initGlobals882() { } function main191() { local integer i166 initGlobals882(); i_166 = 0; loop { exitwhen (i_166 > 20000); new_PowerLevel121(); i_166 = (i_166 + 1); }; if ((PowerLevel_amount_155 > 9000) and (PowerLevel_amount_155 == 20001)) { testSuccess533(); } else { }; } function config194() { } IS_NATIVE function testSuccess533() { } function new_PowerLevel121() returns integer { local integer this209 if (PowerLevel_firstFree_299 == 0) { if (PowerLevel_maxIndex_160 < 32768) { PowerLevel_maxIndex_160 = (PowerLevel_maxIndex_160 + 1); this_209 = PowerLevel_maxIndex_160; } else { error168("Out of memory: Could not create PowerLevel."); this_209 = 0; }; } else { PowerLevel_firstFree_299 = (PowerLevel_firstFree_299 - 1); this_209 = PowerLevel_nextFree_126[PowerLevel_firstFree_299]; }; PowerLevel_amount_155 = (PowerLevel_amount_155 + 1); return this_209; } function error168(string msg113) { $debugPrint515((msg_113 + (" " + #getStackTrace()))); }