array MyClass_nextFree659 integer MyClass_firstFree194 integer MyClass_maxIndex207 array Iterator_nextFree628 integer Iterator_firstFree676 integer Iterator_maxIndex177 integer MyClass_firstFree194 = 0 integer MyClass_maxIndex207 = 0 integer Iterator_firstFree676 = 0 integer Iterator_maxIndex177 = 0 function initGlobals480() { } function main492() { initGlobals480(); new_MyClass197(); new_MyClass197(); MyClass_all284(); testSuccess278(); } function config138() { } IS_NATIVE function testSuccess278() { } function MyClass_all284() { new_Iterator190(); loop { exitwhen true; }; } function new_MyClass197() returns integer { local integer this184 if (MyClass_firstFree_194 == 0) { if (MyClass_maxIndex_207 < 32768) { MyClass_maxIndex_207 = (MyClass_maxIndex_207 + 1); this_184 = MyClass_maxIndex_207; } else { error190("Out of memory: Could not create MyClass."); this_184 = 0; }; } else { MyClass_firstFree_194 = (MyClass_firstFree_194 - 1); this_184 = MyClass_nextFree_659[MyClass_firstFree_194]; }; return this_184; } function new_Iterator190() returns integer { local integer this161 if (Iterator_firstFree_676 == 0) { if (Iterator_maxIndex_177 < 32768) { Iterator_maxIndex_177 = (Iterator_maxIndex_177 + 1); this_161 = Iterator_maxIndex_177; } else { error190("Out of memory: Could not create Iterator."); this_161 = 0; }; } else { Iterator_firstFree_676 = (Iterator_firstFree_676 - 1); this_161 = Iterator_nextFree_628[Iterator_firstFree_676]; }; return this_161; } function error190(string msg188) { $debugPrint436((msg_188 + (" " + #getStackTrace()))); }