integer PowerLevel_amount205 array PowerLevel_nextFree178 integer PowerLevel_firstFree156 integer PowerLevel_maxIndex879 integer PowerLevel_amount205 = 0 integer PowerLevel_firstFree156 = 0 integer PowerLevel_maxIndex879 = 0 function initGlobals211() { } function main214() { local integer i114 initGlobals211(); i_114 = 0; loop { exitwhen (i_114 > 20000); new_PowerLevel131(); i_114 = (i_114 + 1); }; if ((PowerLevel_amount_205 > 9000) and (PowerLevel_amount_205 == 20001)) { testSuccess621(); } else { }; } function config108() { } IS_NATIVE function testSuccess621() { } function new_PowerLevel131() returns integer { local integer this818 if (PowerLevel_firstFree_156 == 0) { if (PowerLevel_maxIndex_879 < 32768) { PowerLevel_maxIndex_879 = (PowerLevel_maxIndex_879 + 1); this_818 = PowerLevel_maxIndex_879; } else { error208("Out of memory: Could not create PowerLevel."); this_818 = 0; }; } else { PowerLevel_firstFree_156 = (PowerLevel_firstFree_156 - 1); this_818 = PowerLevel_nextFree_178[PowerLevel_firstFree_156]; }; PowerLevel_amount_205 = (PowerLevel_amount_205 + 1); return this_818; } function error208(string msg104) { $debugPrint601((msg_104 + (" " + #getStackTrace()))); }