array Iterator_nextFree144 integer Iterator_firstFree152 integer Iterator_maxIndex432 array Iterator_typeId461 integer MyClass_firstFree125 = 0 integer MyClass_maxIndex449 = 0 integer Iterator_firstFree152 = 0 integer Iterator_maxIndex432 = 0 function initGlobals143() { } function main119() { initGlobals143(); init_Test572(); } function config666() { } function init_Test572() { local integer this856 this_856 = new_Iterator308(); if (Iterator_typeId_461[this_856] == 0) { if (this_856 == 0) { error169("Nullpointer exception when calling Iterator.hasNext"); } else { error169("Called Iterator.hasNext on invalid object."); }; } else { }; testSuccess182(); } IS_NATIVE function testSuccess182() { } function new_Iterator308() returns integer { local integer this142 if (Iterator_firstFree_152 == 0) { if (Iterator_maxIndex_432 < 32768) { Iterator_maxIndex_432 = (Iterator_maxIndex_432 + 1); this_142 = Iterator_maxIndex_432; Iterator_typeId_461[this_142] = 1; } else { error169("Out of memory: Could not create Iterator."); this_142 = 0; }; } else { Iterator_firstFree_152 = (Iterator_firstFree_152 - 1); this_142 = Iterator_nextFree_144[Iterator_firstFree_152]; Iterator_typeId_461[this_142] = 1; }; return this_142; } function error169(string msg169) { $debugPrint397((msg_169 + (" " + #getStackTrace()))); }