array MyClass_nextFree211 integer MyClass_firstFree421 integer MyClass_maxIndex128 array Iterator_nextFree146 integer Iterator_firstFree119 integer Iterator_maxIndex901 integer MyClass_firstFree421 = 0 integer MyClass_maxIndex128 = 0 integer Iterator_firstFree119 = 0 integer Iterator_maxIndex901 = 0 function initGlobals151() { } function main498() { initGlobals151(); new_MyClass609(); new_MyClass609(); MyClass_all926(); testSuccess199(); } function config164() { } IS_NATIVE function testSuccess199() { } function MyClass_all926() { new_Iterator139(); loop { exitwhen true; }; } function new_MyClass609() returns integer { local integer this132 if (MyClass_firstFree_421 == 0) { if (MyClass_maxIndex_128 < 32768) { MyClass_maxIndex_128 = (MyClass_maxIndex_128 + 1); this_132 = MyClass_maxIndex_128; } else { error138("Out of memory: Could not create MyClass."); this_132 = 0; }; } else { MyClass_firstFree_421 = (MyClass_firstFree_421 - 1); this_132 = MyClass_nextFree_211[MyClass_firstFree_421]; }; return this_132; } function new_Iterator139() returns integer { local integer this137 if (Iterator_firstFree_119 == 0) { if (Iterator_maxIndex_901 < 32768) { Iterator_maxIndex_901 = (Iterator_maxIndex_901 + 1); this_137 = Iterator_maxIndex_901; } else { error138("Out of memory: Could not create Iterator."); this_137 = 0; }; } else { Iterator_firstFree_119 = (Iterator_firstFree_119 - 1); this_137 = Iterator_nextFree_146[Iterator_firstFree_119]; }; return this_137; } function error138(string msg165) { $debugPrint165((msg_165 + (" " + #getStackTrace()))); }