array C_nextFree145 integer C_firstFree171 integer C_maxIndex183 array Iterator_nextFree108 integer Iterator_firstFree466 integer Iterator_maxIndex970 array Iterator_typeId257 array Iterator_i602 integer C_firstFree171 = 0 integer C_maxIndex183 = 0 integer Iterator_firstFree466 = 0 integer Iterator_maxIndex970 = 0 function initGlobals168() { } function main283() { initGlobals168(); init_test172(); } function config153() { } function init_test172() { local integer iterator110 new_C121(); iterator_110 = new_Iterator564(); loop { exitwhen (Iterator_i_602[iterator_110] >= 10); Iterator_i_602[iterator_110] = (Iterator_i_602[iterator_110] + 1); if ((Iterator_i_602[iterator_110] castTo any) == 5) { testSuccess903(); } else { }; }; dispatch_Iterator_destroyIterator134(iterator_110); } IS_NATIVE function testSuccess903() { } function new_C121() returns integer { local integer this922 if (C_firstFree_171 == 0) { if (C_maxIndex_183 < 32768) { C_maxIndex_183 = (C_maxIndex_183 + 1); this_922 = C_maxIndex_183; } else { error113("Out of memory: Could not create C."); this_922 = 0; }; } else { C_firstFree_171 = (C_firstFree_171 - 1); this_922 = C_nextFree_145[C_firstFree_171]; }; return this_922; } function new_Iterator564() returns integer { local integer this539 if (Iterator_firstFree_466 == 0) { if (Iterator_maxIndex_970 < 32768) { Iterator_maxIndex_970 = (Iterator_maxIndex_970 + 1); this_539 = Iterator_maxIndex_970; Iterator_typeId_257[this_539] = 2; } else { error113("Out of memory: Could not create Iterator."); this_539 = 0; }; } else { Iterator_firstFree_466 = (Iterator_firstFree_466 - 1); this_539 = Iterator_nextFree_108[Iterator_firstFree_466]; Iterator_typeId_257[this_539] = 2; }; Iterator_i_602[this_539] = 0; return this_539; } function error113(string msg481) { $debugPrint186((msg_481 + (" " + #getStackTrace()))); } function dispatch_Iterator_destroyIterator134(integer this373) { if (Iterator_typeId_257[this_373] == 0) { if (this_373 == 0) { error113("Nullpointer exception when calling Iterator.Iterator"); } else { error113("Called Iterator.Iterator on invalid object."); }; } else { }; if (Iterator_typeId_257[this_373] == 0) { error113("Double free: object of type Iterator"); } else { Iterator_nextFree_108[Iterator_firstFree_466] = this_373; Iterator_firstFree_466 = (Iterator_firstFree_466 + 1); Iterator_typeId_257[this_373] = 0; }; }