integer PowerLevel_amount139 array PowerLevel_nextFree175 integer PowerLevel_firstFree515 integer PowerLevel_maxIndex157 integer PowerLevel_amount139 = 0 integer PowerLevel_firstFree515 = 0 integer PowerLevel_maxIndex157 = 0 function initGlobals212() { } function main959() { local integer i575 initGlobals212(); i_575 = 0; loop { exitwhen (i_575 > 20000); new_PowerLevel153(); i_575 = (i_575 + 1); }; if ((PowerLevel_amount_139 > 9000) and (PowerLevel_amount_139 == 20001)) { testSuccess192(); } else { }; } function config170() { } IS_NATIVE function testSuccess192() { } function new_PowerLevel153() returns integer { local integer this731 if (PowerLevel_firstFree_515 == 0) { if (PowerLevel_maxIndex_157 < 32768) { PowerLevel_maxIndex_157 = (PowerLevel_maxIndex_157 + 1); this_731 = PowerLevel_maxIndex_157; } else { error198("Out of memory: Could not create PowerLevel."); this_731 = 0; }; } else { PowerLevel_firstFree_515 = (PowerLevel_firstFree_515 - 1); this_731 = PowerLevel_nextFree_175[PowerLevel_firstFree_515]; }; PowerLevel_amount_139 = (PowerLevel_amount_139 + 1); return this_731; } function error198(string msg747) { $debugPrint136((msg_747 + (" " + #getStackTrace()))); }