integer C_firstFree210 integer C_maxIndex205 array Iterator_nextFree900 integer Iterator_firstFree108 integer Iterator_maxIndex793 array Iterator_typeId743 array Iterator_i100 integer wurst_stack_depth110 array wurst_stack209 integer C_firstFree210 = 0 integer C_maxIndex205 = 0 integer Iterator_firstFree108 = 0 integer Iterator_maxIndex793 = 0 integer wurst_stack_depth110 = 0 function initGlobals189() { } function main102() { initGlobals189(); init_test406("when calling init_test in genericForIn, line 1"); } function config994() { } function init_test406(string __wurst_stackPos659) { local integer this555 wurst_stack_209[wurst_stack_depth_110] = __wurst_stackPos_659; wurst_stack_depth_110 = (wurst_stack_depth_110 + 1); wurst_stack_209[wurst_stack_depth_110] = "when calling new_C in genericForIn, line 16"; wurst_stack_depth_110 = (wurst_stack_depth_110 + 1); wurst_stack_209[wurst_stack_depth_110] = "when calling alloc_C in genericForIn, line 3"; wurst_stack_depth_110 = (wurst_stack_depth_110 + 1); if (C_firstFree_210 == 0) { if (C_maxIndex_205 < 32768) { C_maxIndex_205 = (C_maxIndex_205 + 1); } else { error785("Out of memory: Could not create C.", "when calling error in genericForIn, line 3"); }; } else { C_firstFree_210 = (C_firstFree_210 - 1); }; wurst_stack_depth_110 = ((wurst_stack_depth_110 - 1) - 1); wurst_stack_209[wurst_stack_depth_110] = "when calling iterator in genericForIn, line 17"; wurst_stack_depth_110 = (wurst_stack_depth_110 + 1); this_555 = new_Iterator159("when calling new_Iterator in genericForIn, line 5"); wurst_stack_depth_110 = (wurst_stack_depth_110 - 1); loop { exitwhen (Iterator_i_100[this_555] >= 10); Iterator_i_100[this_555] = (Iterator_i_100[this_555] + 1); if ((Iterator_i_100[this_555] castTo any) == 5) { testSuccess559(); } else { }; }; wurst_stack_209[wurst_stack_depth_110] = "when calling close in genericForIn, line 17"; wurst_stack_depth_110 = (wurst_stack_depth_110 + 1); dispatch_Iterator_destroyIterator200(this_555, "when calling dispatch_Iterator_destroyIterator in genericForIn, line 14"); wurst_stack_depth_110 = ((wurst_stack_depth_110 - 1) - 1); } IS_NATIVE function testSuccess559() { } function new_Iterator159(string __wurst_stackPos185) returns integer { local integer this149 wurst_stack_209[wurst_stack_depth_110] = __wurst_stackPos_185; wurst_stack_depth_110 = (wurst_stack_depth_110 + 1); wurst_stack_209[wurst_stack_depth_110] = "when calling alloc_Iterator in genericForIn, line 6"; wurst_stack_depth_110 = (wurst_stack_depth_110 + 1); if (Iterator_firstFree_108 == 0) { if (Iterator_maxIndex_793 < 32768) { Iterator_maxIndex_793 = (Iterator_maxIndex_793 + 1); this_149 = Iterator_maxIndex_793; Iterator_typeId_743[this_149] = 2; } else { error785("Out of memory: Could not create Iterator.", "when calling error in genericForIn, line 6"); this_149 = 0; }; } else { Iterator_firstFree_108 = (Iterator_firstFree_108 - 1); this_149 = Iterator_nextFree_900[Iterator_firstFree_108]; Iterator_typeId_743[this_149] = 2; }; wurst_stack_depth_110 = (wurst_stack_depth_110 - 1); Iterator_i_100[this_149] = 0; wurst_stack_depth_110 = (wurst_stack_depth_110 - 1); return this_149; } function error785(string msg102, string __wurst_stackPos270) { local integer stacktraceIndex427 local integer stacktraceLimit201 wurst_stack_209[wurst_stack_depth_110] = __wurst_stackPos_270; wurst_stack_depth_110 = (wurst_stack_depth_110 + 1); __wurst_stackPos_270 = ""; stacktraceIndex_427 = wurst_stack_depth_110; stacktraceLimit_201 = 0; loop { stacktraceIndex_427 = (stacktraceIndex_427 - 1); stacktraceLimit_201 = (stacktraceLimit_201 + 1); exitwhen ((stacktraceLimit_201 > 20) or (stacktraceIndex_427 < 0)); __wurst_stackPos_270 = (__wurst_stackPos_270 + (" " + wurst_stack_209[stacktraceIndex_427])); }; $debugPrint351((msg_102 + (" " + __wurst_stackPos_270))); wurst_stack_depth_110 = (wurst_stack_depth_110 - 1); } function dispatch_Iterator_destroyIterator200(integer this606, string __wurst_stackPos788) { wurst_stack_209[wurst_stack_depth_110] = __wurst_stackPos_788; wurst_stack_depth_110 = (wurst_stack_depth_110 + 1); if (Iterator_typeId_743[this_606] == 0) { if (this_606 == 0) { error785("Nullpointer exception when calling Iterator.Iterator", "when calling error in genericForIn, line 6"); } else { error785("Called Iterator.Iterator on invalid object.", "when calling error in genericForIn, line 6"); }; } else { }; wurst_stack_209[wurst_stack_depth_110] = "when calling destroyIterator in genericForIn, line 6"; wurst_stack_depth_110 = (wurst_stack_depth_110 + 1); wurst_stack_209[wurst_stack_depth_110] = "when calling dealloc_Iterator in genericForIn, line 6"; wurst_stack_depth_110 = (wurst_stack_depth_110 + 1); if (Iterator_typeId_743[this_606] == 0) { error785("Double free: object of type Iterator", "when calling error in genericForIn, line 6"); } else { Iterator_nextFree_900[Iterator_firstFree_108] = this_606; Iterator_firstFree_108 = (Iterator_firstFree_108 + 1); Iterator_typeId_743[this_606] = 0; }; wurst_stack_depth_110 = (((wurst_stack_depth_110 - 1) - 1) - 1); }