array Iterator_nextFree614 integer Iterator_firstFree116 integer Iterator_maxIndex160 array Iterator_typeId983 array List_nextFree128 integer List_firstFree152 integer List_maxIndex186 array List_typeId126 integer A_firstFree158 = 0 integer A_maxIndex429 = 0 integer B_firstFree119 = 0 integer B_maxIndex562 = 0 integer C_firstFree134 = 0 integer C_maxIndex349 = 0 integer Iterator_firstFree116 = 0 integer Iterator_maxIndex160 = 0 integer List_firstFree152 = 0 integer List_maxIndex186 = 0 function initGlobals235() { } function main147() { initGlobals235(); init_test159(); } function config142() { } function init_test159() { local integer a139 a_139 = new_List377(); if (List_typeId_126[a_139] == 0) { if (a_139 == 0) { error932("Nullpointer exception when calling List.iterator"); } else { error932("Called List.iterator on invalid object."); }; } else { }; a_139 = new_Iterator119(a_139); loop { if (Iterator_typeId_983[a_139] == 0) { if (a_139 == 0) { error932("Nullpointer exception when calling Iterator.hasNext"); } else { error932("Called Iterator.hasNext on invalid object."); }; } else { }; if (Iterator_typeId_983[a_139] == 0) { if (a_139 == 0) { error932("Nullpointer exception when calling Iterator.next"); } else { error932("Called Iterator.next on invalid object."); }; } else { }; testSuccess197(); }; } IS_NATIVE function testSuccess197() { } function new_Iterator119(integer t959) returns integer { if (Iterator_firstFree_116 == 0) { if (Iterator_maxIndex_160 < 32768) { Iterator_maxIndex_160 = (Iterator_maxIndex_160 + 1); t_959 = Iterator_maxIndex_160; Iterator_typeId_983[t_959] = 4; } else { error932("Out of memory: Could not create Iterator."); t_959 = 0; }; } else { Iterator_firstFree_116 = (Iterator_firstFree_116 - 1); t_959 = Iterator_nextFree_614[Iterator_firstFree_116]; Iterator_typeId_983[t_959] = 4; }; return t_959; } function new_List377() returns integer { local integer this104 if (List_firstFree_152 == 0) { if (List_maxIndex_186 < 32768) { List_maxIndex_186 = (List_maxIndex_186 + 1); this_104 = List_maxIndex_186; List_typeId_126[this_104] = 5; } else { error932("Out of memory: Could not create List."); this_104 = 0; }; } else { List_firstFree_152 = (List_firstFree_152 - 1); this_104 = List_nextFree_128[List_firstFree_152]; List_typeId_126[this_104] = 5; }; return this_104; } function error932(string msg251) { $debugPrint499((msg_251 + (" " + #getStackTrace()))); }