array C_nextFree194 integer C_firstFree210 integer C_maxIndex162 array C_typeId826 array Iterator_nextFree163 integer Iterator_firstFree158 integer Iterator_maxIndex876 array Iterator_i750 integer wurst_stack_depth903 array wurst_stack166 integer C_firstFree210 = 0 integer C_maxIndex162 = 0 integer Iterator_firstFree158 = 0 integer Iterator_maxIndex876 = 0 integer wurst_stack_depth903 = 0 function initGlobals467() { } function main196() { initGlobals467(); init_test125("when calling init_test in genericForFrom, line 1"); } function config135() { } function init_test125(string __wurst_stackPos571) { local integer c136 wurst_stack_166[wurst_stack_depth_903] = __wurst_stackPos_571; wurst_stack_depth_903 = (wurst_stack_depth_903 + 1); c_136 = new_C175("when calling new_C in genericForFrom, line 14"); wurst_stack_166[wurst_stack_depth_903] = "when calling iterator in genericForFrom, line 15"; wurst_stack_depth_903 = (wurst_stack_depth_903 + 1); if (C_typeId_826[c_136] == 0) { if (c_136 == 0) { error184("Nullpointer exception when calling C.iterator", "when calling error in genericForFrom, line 4"); } else { error184("Called C.iterator on invalid object.", "when calling error in genericForFrom, line 4"); }; } else { }; wurst_stack_166[wurst_stack_depth_903] = "when calling iterator in genericForFrom, line 4"; wurst_stack_depth_903 = (wurst_stack_depth_903 + 1); c_136 = new_Iterator138("when calling new_Iterator in genericForFrom, line 5"); wurst_stack_depth_903 = ((wurst_stack_depth_903 - 1) - 1); loop { exitwhen (Iterator_i_750[c_136] >= 10); Iterator_i_750[c_136] = (Iterator_i_750[c_136] + 1); if ((Iterator_i_750[c_136] castTo any) == 5) { testSuccess419(); } else { }; }; wurst_stack_depth_903 = (wurst_stack_depth_903 - 1); } IS_NATIVE function testSuccess419() { } function new_C175(string __wurst_stackPos992) returns integer { local integer this147 wurst_stack_166[wurst_stack_depth_903] = __wurst_stackPos_992; wurst_stack_depth_903 = (wurst_stack_depth_903 + 1); wurst_stack_166[wurst_stack_depth_903] = "when calling alloc_C in genericForFrom, line 3"; wurst_stack_depth_903 = (wurst_stack_depth_903 + 1); if (C_firstFree_210 == 0) { if (C_maxIndex_162 < 32768) { C_maxIndex_162 = (C_maxIndex_162 + 1); this_147 = C_maxIndex_162; C_typeId_826[this_147] = 1; } else { error184("Out of memory: Could not create C.", "when calling error in genericForFrom, line 3"); this_147 = 0; }; } else { C_firstFree_210 = (C_firstFree_210 - 1); this_147 = C_nextFree_194[C_firstFree_210]; C_typeId_826[this_147] = 1; }; wurst_stack_depth_903 = ((wurst_stack_depth_903 - 1) - 1); return this_147; } function new_Iterator138(string __wurst_stackPos107) returns integer { local integer this561 wurst_stack_166[wurst_stack_depth_903] = __wurst_stackPos_107; wurst_stack_depth_903 = (wurst_stack_depth_903 + 1); wurst_stack_166[wurst_stack_depth_903] = "when calling alloc_Iterator in genericForFrom, line 6"; wurst_stack_depth_903 = (wurst_stack_depth_903 + 1); if (Iterator_firstFree_158 == 0) { if (Iterator_maxIndex_876 < 32768) { Iterator_maxIndex_876 = (Iterator_maxIndex_876 + 1); this_561 = Iterator_maxIndex_876; } else { error184("Out of memory: Could not create Iterator.", "when calling error in genericForFrom, line 6"); this_561 = 0; }; } else { Iterator_firstFree_158 = (Iterator_firstFree_158 - 1); this_561 = Iterator_nextFree_163[Iterator_firstFree_158]; }; wurst_stack_depth_903 = (wurst_stack_depth_903 - 1); Iterator_i_750[this_561] = 0; wurst_stack_depth_903 = (wurst_stack_depth_903 - 1); return this_561; } function error184(string msg586, string __wurst_stackPos159) { local integer stacktraceIndex902 local integer stacktraceLimit115 wurst_stack_166[wurst_stack_depth_903] = __wurst_stackPos_159; wurst_stack_depth_903 = (wurst_stack_depth_903 + 1); __wurst_stackPos_159 = ""; stacktraceIndex_902 = wurst_stack_depth_903; stacktraceLimit_115 = 0; loop { stacktraceIndex_902 = (stacktraceIndex_902 - 1); stacktraceLimit_115 = (stacktraceLimit_115 + 1); exitwhen ((stacktraceLimit_115 > 20) or (stacktraceIndex_902 < 0)); __wurst_stackPos_159 = (__wurst_stackPos_159 + (" " + wurst_stack_166[stacktraceIndex_902])); }; $debugPrint207((msg_586 + (" " + __wurst_stackPos_159))); wurst_stack_depth_903 = (wurst_stack_depth_903 - 1); }