array Iterator_nextFree387 integer Iterator_firstFree192 integer Iterator_maxIndex998 array Iterator_typeId111 array List_nextFree698 integer List_firstFree200 integer List_maxIndex464 array List_typeId198 array Iterator_t153 integer A_firstFree209 = 0 integer A_maxIndex192 = 0 integer B_firstFree860 = 0 integer B_maxIndex147 = 0 integer C_firstFree132 = 0 integer C_maxIndex710 = 0 integer Iterator_firstFree192 = 0 integer Iterator_maxIndex998 = 0 integer List_firstFree200 = 0 integer List_maxIndex464 = 0 function initGlobals571() { } function main960() { initGlobals571(); init_test135(); } function config156() { } function init_test135() { local integer iterator157 iterator_157 = dispatch_List_test_List_iterator109(new_List163()); loop { exitwhen (not dispatch_Iterator_test_Iterator_hasNext872(iterator_157)); dispatch_Iterator_test_Iterator_next157(iterator_157); testSuccess193(); }; } IS_NATIVE function testSuccess193() { } function new_Iterator465(integer t209) returns integer { local integer this812 this_812 = alloc_Iterator125(); construct_Iterator779(this_812, t_209); return this_812; } function Iterator_hasNext136(integer this146) returns boolean { return true; } function Iterator_next767(integer this162) returns any { return Iterator_t_153[this_162]; } function Iterator_init401(integer this337) { } function construct_Iterator779(integer this957, integer t211) { Iterator_init401(this_957); } function List_iterator172(integer this774) returns integer { return new_Iterator465(this_774); } function List_init920(integer this522) { } function new_List163() returns integer { local integer this156 this_156 = alloc_List140(); construct_List153(this_156); return this_156; } function construct_List153(integer this144) { List_init920(this_144); } function error172(string msg885) { $debugPrint161((msg_885 + (" " + #getStackTrace()))); } function alloc_Iterator125() returns integer { local integer this440 if (Iterator_firstFree_192 == 0) { if (Iterator_maxIndex_998 < 32768) { Iterator_maxIndex_998 = (Iterator_maxIndex_998 + 1); this_440 = Iterator_maxIndex_998; Iterator_typeId_111[this_440] = 4; } else { error172("Out of memory: Could not create Iterator."); this_440 = 0; }; } else { Iterator_firstFree_192 = (Iterator_firstFree_192 - 1); this_440 = Iterator_nextFree_387[Iterator_firstFree_192]; Iterator_typeId_111[this_440] = 4; }; return this_440; } function alloc_List140() returns integer { local integer this152 if (List_firstFree_200 == 0) { if (List_maxIndex_464 < 32768) { List_maxIndex_464 = (List_maxIndex_464 + 1); this_152 = List_maxIndex_464; List_typeId_198[this_152] = 5; } else { error172("Out of memory: Could not create List."); this_152 = 0; }; } else { List_firstFree_200 = (List_firstFree_200 - 1); this_152 = List_nextFree_698[List_firstFree_200]; List_typeId_198[this_152] = 5; }; return this_152; } function dispatch_Iterator_test_Iterator_hasNext872(integer this205) returns boolean { if (Iterator_typeId_111[this_205] == 0) { if (this_205 == 0) { error172("Nullpointer exception when calling Iterator.hasNext"); } else { error172("Called Iterator.hasNext on invalid object."); }; } else { }; return Iterator_hasNext136(this_205); } function dispatch_Iterator_test_Iterator_next157(integer this103) returns any { if (Iterator_typeId_111[this_103] == 0) { if (this_103 == 0) { error172("Nullpointer exception when calling Iterator.next"); } else { error172("Called Iterator.next on invalid object."); }; } else { }; return Iterator_next767(this_103); } function dispatch_List_test_List_iterator109(integer this189) returns integer { if (List_typeId_198[this_189] == 0) { if (this_189 == 0) { error172("Nullpointer exception when calling List.iterator"); } else { error172("Called List.iterator on invalid object."); }; } else { }; return List_iterator172(this_189); }