array MyClass_nextFree212 integer MyClass_firstFree212 integer MyClass_maxIndex206 array MyClass_typeId204 array Iterator_nextFree196 integer Iterator_firstFree110 integer Iterator_maxIndex298 integer MyClass_firstFree212 = 0 integer MyClass_maxIndex206 = 0 integer Iterator_firstFree110 = 0 integer Iterator_maxIndex298 = 0 function initGlobals100() { } function main157() { initGlobals100(); init_Test161(); } function config179() { } function init_Test161() { new_MyClass210(); new_MyClass210(); MyClass_all211(); testSuccess132(); } IS_NATIVE function testSuccess132() { } function MyClass_all211() { local integer iterator163 iterator_163 = MyClass_MyModule_LinkedListModule_iterator110(); loop { exitwhen (not Iterator_hasNext198(iterator_163)); dispatch_MyClass_Test_MyClass_do835(Iterator_next144(iterator_163)); }; Iterator_close508(iterator_163); } function MyClass_MyModule_LinkedListModule_iterator110() returns integer { return new_Iterator143(); } function MyClass_do173(integer this237) { } function MyClass_init146(integer this970) { construct_MyClass_MyModule848(this_970); } function construct_MyClass_MyModule848(integer this145) { construct_MyClass_MyModule_LinkedListModule100(this_145); } function construct_MyClass_MyModule_LinkedListModule100(integer this126) { } function new_MyClass210() returns integer { local integer this477 this_477 = alloc_MyClass128(); construct_MyClass147(this_477); return this_477; } function construct_MyClass147(integer this205) { MyClass_init146(this_205); } function Iterator_next144(integer this182) returns integer { return null; } function Iterator_hasNext198(integer this101) returns boolean { return false; } function Iterator_close508(integer this109) { } function new_Iterator143() returns integer { local integer this109 this_109 = alloc_Iterator149(); construct_Iterator737(this_109); return this_109; } function Iterator_init881(integer this580) { } function construct_Iterator737(integer this856) { Iterator_init881(this_856); } function alloc_MyClass128() returns integer { local integer this187 if (MyClass_firstFree_212 == 0) { if (MyClass_maxIndex_206 < 32768) { MyClass_maxIndex_206 = (MyClass_maxIndex_206 + 1); this_187 = MyClass_maxIndex_206; MyClass_typeId_204[this_187] = 2; } else { error184("Out of memory: Could not create MyClass."); this_187 = 0; }; } else { MyClass_firstFree_212 = (MyClass_firstFree_212 - 1); this_187 = MyClass_nextFree_212[MyClass_firstFree_212]; MyClass_typeId_204[this_187] = 2; }; return this_187; } function error184(string msg190) { $debugPrint388((msg_190 + (" " + #getStackTrace()))); } function alloc_Iterator149() returns integer { local integer this170 if (Iterator_firstFree_110 == 0) { if (Iterator_maxIndex_298 < 32768) { Iterator_maxIndex_298 = (Iterator_maxIndex_298 + 1); this_170 = Iterator_maxIndex_298; } else { error184("Out of memory: Could not create Iterator."); this_170 = 0; }; } else { Iterator_firstFree_110 = (Iterator_firstFree_110 - 1); this_170 = Iterator_nextFree_196[Iterator_firstFree_110]; }; return this_170; } function dispatch_MyClass_Test_MyClass_do835(integer this881) { if (MyClass_typeId_204[this_881] == 0) { if (this_881 == 0) { error184("Nullpointer exception when calling MyClass.do"); } else { error184("Called MyClass.do on invalid object."); }; } else { }; MyClass_do173(this_881); }