array MyClass_nextFree845 integer MyClass_firstFree125 integer MyClass_maxIndex635 array MyClass_typeId206 array Iterator_nextFree174 integer Iterator_firstFree773 integer Iterator_maxIndex114 integer MyClass_firstFree125 = 0 integer MyClass_maxIndex635 = 0 integer Iterator_firstFree773 = 0 integer Iterator_maxIndex114 = 0 function initGlobals143() { MyClass_firstFree_125 = 0; MyClass_maxIndex_635 = 0; Iterator_firstFree_773 = 0; Iterator_maxIndex_114 = 0; } function main141() { initGlobals143(); init_Test932(); } function config176() { } function init_Test932() { new_MyClass269(); new_MyClass269(); MyClass_all263(); testSuccess854(); } IS_NATIVE function testSuccess854() { } function MyClass_all263() { local integer iterator407 local integer elem497 iterator_407 = MyClass_MyModule_LinkedListModule_iterator204(); loop { exitwhen (not Iterator_hasNext491(iterator_407)); elem_497 = Iterator_next152(iterator_407); dispatch_MyClass_Test_MyClass_do385(elem_497); }; Iterator_close717(iterator_407); } function MyClass_MyModule_LinkedListModule_iterator204() returns integer { return new_Iterator172(); } function MyClass_do148(integer this450) { } function MyClass_init285(integer this362) { construct_MyClass_MyModule146(this_362); } function construct_MyClass_MyModule146(integer this987) { construct_MyClass_MyModule_LinkedListModule118(this_987); } function construct_MyClass_MyModule_LinkedListModule118(integer this174) { } function new_MyClass269() returns integer { local integer this147 this_147 = alloc_MyClass172(); construct_MyClass207(this_147); return this_147; } function construct_MyClass207(integer this115) { MyClass_init285(this_115); } function Iterator_next152(integer this212) returns integer { return null; } function Iterator_hasNext491(integer this167) returns boolean { return false; } function Iterator_close717(integer this362) { } function new_Iterator172() returns integer { local integer this849 this_849 = alloc_Iterator132(); construct_Iterator292(this_849); return this_849; } function Iterator_init131(integer this489) { } function construct_Iterator292(integer this147) { Iterator_init131(this_147); } function alloc_MyClass172() returns integer { local integer this209 if (MyClass_firstFree_125 == 0) { if (MyClass_maxIndex_635 < 32768) { MyClass_maxIndex_635 = (MyClass_maxIndex_635 + 1); this_209 = MyClass_maxIndex_635; MyClass_typeId_206[this_209] = 2; } else { error238("Out of memory: Could not create MyClass."); this_209 = 0; }; } else { MyClass_firstFree_125 = (MyClass_firstFree_125 - 1); this_209 = MyClass_nextFree_845[MyClass_firstFree_125]; MyClass_typeId_206[this_209] = 2; }; return this_209; } function error238(string msg186) { $debugPrint615((msg_186 + (" " + #getStackTrace()))); } function alloc_Iterator132() returns integer { local integer this359 if (Iterator_firstFree_773 == 0) { if (Iterator_maxIndex_114 < 32768) { Iterator_maxIndex_114 = (Iterator_maxIndex_114 + 1); this_359 = Iterator_maxIndex_114; } else { error238("Out of memory: Could not create Iterator."); this_359 = 0; }; } else { Iterator_firstFree_773 = (Iterator_firstFree_773 - 1); this_359 = Iterator_nextFree_174[Iterator_firstFree_773]; }; return this_359; } function dispatch_MyClass_Test_MyClass_do385(integer this144) { if (MyClass_typeId_206[this_144] == 0) { if (this_144 == 0) { error238("Nullpointer exception when calling MyClass.do"); } else { error238("Called MyClass.do on invalid object."); }; } else { }; MyClass_do148(this_144); }