array SimpleFunc_nextFree163 integer SimpleFunc_firstFree130 integer SimpleFunc_maxIndex209 array SimpleFunc_typeId532 array y206 integer wurst_stack_depth195 array wurst_stack586 integer SimpleFunc_firstFree130 = 0 integer SimpleFunc_maxIndex209 = 0 integer wurst_stack_depth195 = 0 function initGlobals483() { } function main113() { initGlobals483(); init_test126("when calling init_test in closure_begin_end2, line 1"); } function config390() { } function init_test126(string __wurst_stackPos152) { local integer this166 wurst_stack_586[wurst_stack_depth_195] = __wurst_stackPos_152; wurst_stack_depth_195 = (wurst_stack_depth_195 + 1); wurst_stack_586[wurst_stack_depth_195] = "when calling alloc_SimpleFunc_test in closure_begin_end2, line 7"; wurst_stack_depth_195 = (wurst_stack_depth_195 + 1); if (SimpleFunc_firstFree_130 == 0) { if (SimpleFunc_maxIndex_209 < 32768) { SimpleFunc_maxIndex_209 = (SimpleFunc_maxIndex_209 + 1); this_166 = SimpleFunc_maxIndex_209; SimpleFunc_typeId_532[this_166] = 2; } else { error780("Out of memory: Could not create SimpleFunc_test.", "when calling error in closure_begin_end2, line 7"); this_166 = 0; }; } else { SimpleFunc_firstFree_130 = (SimpleFunc_firstFree_130 - 1); this_166 = SimpleFunc_nextFree_163[SimpleFunc_firstFree_130]; SimpleFunc_typeId_532[this_166] = 2; }; wurst_stack_depth_195 = (wurst_stack_depth_195 - 1); y_206[this_166] = 4; wurst_stack_586[wurst_stack_depth_195] = "when calling apply in closure_begin_end2, line 13"; wurst_stack_depth_195 = (wurst_stack_depth_195 + 1); if (SimpleFunc_typeId_532[this_166] == 0) { if (this_166 == 0) { error780("Nullpointer exception when calling SimpleFunc.apply", "when calling error in closure_begin_end2, line 4"); } else { error780("Called SimpleFunc.apply on invalid object.", "when calling error in closure_begin_end2, line 4"); }; } else { }; this_166 = (y_206[this_166] + 3); wurst_stack_depth_195 = (wurst_stack_depth_195 - 1); if (this_166 == 7) { testSuccess650(); } else { }; wurst_stack_depth_195 = (wurst_stack_depth_195 - 1); } IS_NATIVE function testSuccess650() { } function error780(string msg150, string __wurst_stackPos206) { local integer stacktraceIndex774 local integer stacktraceLimit155 wurst_stack_586[wurst_stack_depth_195] = __wurst_stackPos_206; wurst_stack_depth_195 = (wurst_stack_depth_195 + 1); __wurst_stackPos_206 = ""; stacktraceIndex_774 = wurst_stack_depth_195; stacktraceLimit_155 = 0; loop { stacktraceIndex_774 = (stacktraceIndex_774 - 1); stacktraceLimit_155 = (stacktraceLimit_155 + 1); exitwhen ((stacktraceLimit_155 > 20) or (stacktraceIndex_774 < 0)); __wurst_stackPos_206 = (__wurst_stackPos_206 + (" " + wurst_stack_586[stacktraceIndex_774])); }; $debugPrint604((msg_150 + (" " + __wurst_stackPos_206))); wurst_stack_depth_195 = (wurst_stack_depth_195 - 1); }