array MyClass_nextFree530 integer MyClass_firstFree115 integer MyClass_maxIndex168 array MyClass_typeId274 array Iterator_nextFree178 integer Iterator_firstFree733 integer Iterator_maxIndex186 integer MyClass_firstFree115 = 0 integer MyClass_maxIndex168 = 0 integer Iterator_firstFree733 = 0 integer Iterator_maxIndex186 = 0 function initGlobals136() { } function main165() { initGlobals136(); new_MyClass167(); new_MyClass167(); MyClass_all202(); testSuccess190(); } function config175() { } IS_NATIVE function testSuccess190() { } function MyClass_all202() { local integer elem146 local integer this406 new_Iterator585(); loop { exitwhen (not false); elem_146 = null; this_406 = elem_146; if (MyClass_typeId_274[this_406] == 0) { if (this_406 == 0) { error115("Nullpointer exception when calling MyClass.do"); } else { error115("Called MyClass.do on invalid object."); }; } else { }; }; } function new_MyClass167() returns integer { local integer this133 local integer this191 local integer this118 if (MyClass_firstFree_115 == 0) { if (MyClass_maxIndex_168 < 32768) { MyClass_maxIndex_168 = (MyClass_maxIndex_168 + 1); this_191 = MyClass_maxIndex_168; MyClass_typeId_274[this_191] = 2; } else { error115("Out of memory: Could not create MyClass."); this_191 = 0; }; } else { MyClass_firstFree_115 = (MyClass_firstFree_115 - 1); this_191 = MyClass_nextFree_530[MyClass_firstFree_115]; MyClass_typeId_274[this_191] = 2; }; this_133 = this_191; this_118 = this_133; return this_133; } function new_Iterator585() returns integer { local integer this676 local integer this175 if (Iterator_firstFree_733 == 0) { if (Iterator_maxIndex_186 < 32768) { Iterator_maxIndex_186 = (Iterator_maxIndex_186 + 1); this_175 = Iterator_maxIndex_186; } else { error115("Out of memory: Could not create Iterator."); this_175 = 0; }; } else { Iterator_firstFree_733 = (Iterator_firstFree_733 - 1); this_175 = Iterator_nextFree_178[Iterator_firstFree_733]; }; this_676 = this_175; return this_676; } function error115(string msg141) { $debugPrint163((msg_141 + (" " + #getStackTrace()))); }