array C_nextFree612 integer C_firstFree210 integer C_maxIndex121 array C_typeId650 array Iterator_nextFree174 integer Iterator_firstFree207 integer Iterator_maxIndex204 array Iterator_i541 integer C_firstFree210 = 0 integer C_maxIndex121 = 0 integer Iterator_firstFree207 = 0 integer Iterator_maxIndex204 = 0 function initGlobals166() { } function main102() { initGlobals166(); init_test236(); } function config934() { } function init_test236() { local integer c839 local integer iter739 local integer i126 local integer from387 local integer this171 local integer test_C_iterator_result152 local integer this305 local integer this986 c_839 = new_C125(); this_171 = c_839; if (C_typeId_650[this_171] == 0) { if (this_171 == 0) { error187("Nullpointer exception when calling C.iterator"); } else { error187("Called C.iterator on invalid object."); }; } else { }; test_C_iterator_result_152 = new_Iterator917(); iter_739 = test_C_iterator_result_152; from_387 = iter_739; loop { this_305 = from_387; exitwhen (not (Iterator_i_541[this_305] < 10)); this_986 = from_387; Iterator_i_541[this_986] = (Iterator_i_541[this_986] + 1); i_126 = (Iterator_i_541[this_986] castTo any); if (i_126 == 5) { testSuccess766(); } else { }; }; } IS_NATIVE function testSuccess766() { } function new_C125() returns integer { local integer this956 local integer this137 if (C_firstFree_210 == 0) { if (C_maxIndex_121 < 32768) { C_maxIndex_121 = (C_maxIndex_121 + 1); this_137 = C_maxIndex_121; C_typeId_650[this_137] = 1; } else { error187("Out of memory: Could not create C."); this_137 = 0; }; } else { C_firstFree_210 = (C_firstFree_210 - 1); this_137 = C_nextFree_612[C_firstFree_210]; C_typeId_650[this_137] = 1; }; this_956 = this_137; return this_956; } function new_Iterator917() returns integer { local integer this191 local integer this160 local integer this192 local integer this759 if (Iterator_firstFree_207 == 0) { if (Iterator_maxIndex_204 < 32768) { Iterator_maxIndex_204 = (Iterator_maxIndex_204 + 1); this_160 = Iterator_maxIndex_204; } else { error187("Out of memory: Could not create Iterator."); this_160 = 0; }; } else { Iterator_firstFree_207 = (Iterator_firstFree_207 - 1); this_160 = Iterator_nextFree_174[Iterator_firstFree_207]; }; this_191 = this_160; this_192 = this_191; this_759 = this_192; Iterator_i_541[this_759] = 0; return this_191; } function error187(string msg179) { $debugPrint125((msg_179 + (" " + #getStackTrace()))); }