array SimpleFunc_nextFree455 integer SimpleFunc_firstFree254 integer SimpleFunc_maxIndex961 array SimpleFunc_typeId154 array y112 integer wurst_stack_depth822 array wurst_stack747 integer SimpleFunc_firstFree254 = 0 integer SimpleFunc_maxIndex961 = 0 integer wurst_stack_depth822 = 0 function initGlobals181() { } function main101() { initGlobals181(); init_test120("when calling init_test in closure_begin_end1, line 1"); } function config417() { } function init_test120(string __wurst_stackPos195) { local integer this225 wurst_stack_747[wurst_stack_depth_822] = __wurst_stackPos_195; wurst_stack_depth_822 = (wurst_stack_depth_822 + 1); wurst_stack_747[wurst_stack_depth_822] = "when calling alloc_SimpleFunc_test in closure_begin_end1, line 7"; wurst_stack_depth_822 = (wurst_stack_depth_822 + 1); if (SimpleFunc_firstFree_254 == 0) { if (SimpleFunc_maxIndex_961 < 32768) { SimpleFunc_maxIndex_961 = (SimpleFunc_maxIndex_961 + 1); this_225 = SimpleFunc_maxIndex_961; SimpleFunc_typeId_154[this_225] = 2; } else { error123("Out of memory: Could not create SimpleFunc_test.", "when calling error in closure_begin_end1, line 7"); this_225 = 0; }; } else { SimpleFunc_firstFree_254 = (SimpleFunc_firstFree_254 - 1); this_225 = SimpleFunc_nextFree_455[SimpleFunc_firstFree_254]; SimpleFunc_typeId_154[this_225] = 2; }; wurst_stack_depth_822 = (wurst_stack_depth_822 - 1); y_112[this_225] = 4; wurst_stack_747[wurst_stack_depth_822] = "when calling apply in closure_begin_end1, line 12"; wurst_stack_depth_822 = (wurst_stack_depth_822 + 1); if (SimpleFunc_typeId_154[this_225] == 0) { if (this_225 == 0) { error123("Nullpointer exception when calling SimpleFunc.apply", "when calling error in closure_begin_end1, line 4"); } else { error123("Called SimpleFunc.apply on invalid object.", "when calling error in closure_begin_end1, line 4"); }; } else { }; this_225 = (y_112[this_225] + 3); wurst_stack_depth_822 = (wurst_stack_depth_822 - 1); if (this_225 == 7) { testSuccess163(); } else { }; wurst_stack_depth_822 = (wurst_stack_depth_822 - 1); } IS_NATIVE function testSuccess163() { } function error123(string msg129, string __wurst_stackPos147) { local integer stacktraceIndex468 local integer stacktraceLimit299 wurst_stack_747[wurst_stack_depth_822] = __wurst_stackPos_147; wurst_stack_depth_822 = (wurst_stack_depth_822 + 1); __wurst_stackPos_147 = ""; stacktraceIndex_468 = wurst_stack_depth_822; stacktraceLimit_299 = 0; loop { stacktraceIndex_468 = (stacktraceIndex_468 - 1); stacktraceLimit_299 = (stacktraceLimit_299 + 1); exitwhen ((stacktraceLimit_299 > 20) or (stacktraceIndex_468 < 0)); __wurst_stackPos_147 = (__wurst_stackPos_147 + (" " + wurst_stack_747[stacktraceIndex_468])); }; $debugPrint437((msg_129 + (" " + __wurst_stackPos_147))); wurst_stack_depth_822 = (wurst_stack_depth_822 - 1); }