array Iterator_nextFree152 integer Iterator_firstFree830 integer Iterator_maxIndex341 array Iterator_typeId368 array List_nextFree388 integer List_firstFree657 integer List_maxIndex719 array List_typeId996 integer A_firstFree150 = 0 integer A_maxIndex650 = 0 integer B_firstFree362 = 0 integer B_maxIndex598 = 0 integer C_firstFree186 = 0 integer C_maxIndex181 = 0 integer Iterator_firstFree830 = 0 integer Iterator_maxIndex341 = 0 integer List_firstFree657 = 0 integer List_maxIndex719 = 0 function initGlobals367() { } function main738() { initGlobals367(); init_test158(); } function config278() { } function init_test158() { local integer a908 a_908 = new_List185(); if (List_typeId_996[a_908] == 0) { if (a_908 == 0) { error912("Nullpointer exception when calling List.iterator"); } else { error912("Called List.iterator on invalid object."); }; } else { }; a_908 = new_Iterator582(a_908); loop { if (Iterator_typeId_368[a_908] == 0) { if (a_908 == 0) { error912("Nullpointer exception when calling Iterator.hasNext"); } else { error912("Called Iterator.hasNext on invalid object."); }; } else { }; if (Iterator_typeId_368[a_908] == 0) { if (a_908 == 0) { error912("Nullpointer exception when calling Iterator.next"); } else { error912("Called Iterator.next on invalid object."); }; } else { }; testSuccess974(); }; } IS_NATIVE function testSuccess974() { } function new_Iterator582(integer t167) returns integer { if (Iterator_firstFree_830 == 0) { if (Iterator_maxIndex_341 < 32768) { Iterator_maxIndex_341 = (Iterator_maxIndex_341 + 1); t_167 = Iterator_maxIndex_341; Iterator_typeId_368[t_167] = 4; } else { error912("Out of memory: Could not create Iterator."); t_167 = 0; }; } else { Iterator_firstFree_830 = (Iterator_firstFree_830 - 1); t_167 = Iterator_nextFree_152[Iterator_firstFree_830]; Iterator_typeId_368[t_167] = 4; }; return t_167; } function new_List185() returns integer { local integer this171 if (List_firstFree_657 == 0) { if (List_maxIndex_719 < 32768) { List_maxIndex_719 = (List_maxIndex_719 + 1); this_171 = List_maxIndex_719; List_typeId_996[this_171] = 5; } else { error912("Out of memory: Could not create List."); this_171 = 0; }; } else { List_firstFree_657 = (List_firstFree_657 - 1); this_171 = List_nextFree_388[List_firstFree_657]; List_typeId_996[this_171] = 5; }; return this_171; } function error912(string msg109) { $debugPrint374((msg_109 + (" " + #getStackTrace()))); }