array Iterator_nextFree138 integer Iterator_firstFree202 integer Iterator_maxIndex192 array Iterator_typeId658 integer MyClass_firstFree755 = 0 integer MyClass_maxIndex848 = 0 integer Iterator_firstFree202 = 0 integer Iterator_maxIndex192 = 0 function initGlobals806() { } function main194() { initGlobals806(); init_Test149(); } function config780() { } function init_Test149() { local integer this210 this_210 = new_Iterator166(); if (Iterator_typeId_658[this_210] == 0) { if (this_210 == 0) { error698("Nullpointer exception when calling Iterator.hasNext"); } else { error698("Called Iterator.hasNext on invalid object."); }; } else { }; testSuccess193(); } IS_NATIVE function testSuccess193() { } function new_Iterator166() returns integer { local integer this411 local integer this734 if (Iterator_firstFree_202 == 0) { if (Iterator_maxIndex_192 < 32768) { Iterator_maxIndex_192 = (Iterator_maxIndex_192 + 1); this_734 = Iterator_maxIndex_192; Iterator_typeId_658[this_734] = 1; } else { error698("Out of memory: Could not create Iterator."); this_734 = 0; }; } else { Iterator_firstFree_202 = (Iterator_firstFree_202 - 1); this_734 = Iterator_nextFree_138[Iterator_firstFree_202]; Iterator_typeId_658[this_734] = 1; }; this_411 = this_734; return this_411; } function error698(string msg339) { $debugPrint185((msg_339 + (" " + #getStackTrace()))); }