array SimpleFunc_nextFree919 integer SimpleFunc_firstFree413 integer SimpleFunc_maxIndex275 array SimpleFunc_typeId129 array y515 integer wurst_stack_depth103 array wurst_stack193 integer SimpleFunc_firstFree413 = 0 integer SimpleFunc_maxIndex275 = 0 integer wurst_stack_depth103 = 0 function initGlobals585() { } function main126() { initGlobals585(); init_test143("when calling init_test in closure_begin_end3, line 1"); } function config455() { } function init_test143(string __wurst_stackPos176) { local integer this175 wurst_stack_193[wurst_stack_depth_103] = __wurst_stackPos_176; wurst_stack_depth_103 = (wurst_stack_depth_103 + 1); wurst_stack_193[wurst_stack_depth_103] = "when calling alloc_SimpleFunc_test in closure_begin_end3, line 7"; wurst_stack_depth_103 = (wurst_stack_depth_103 + 1); if (SimpleFunc_firstFree_413 == 0) { if (SimpleFunc_maxIndex_275 < 32768) { SimpleFunc_maxIndex_275 = (SimpleFunc_maxIndex_275 + 1); this_175 = SimpleFunc_maxIndex_275; SimpleFunc_typeId_129[this_175] = 2; } else { error105("Out of memory: Could not create SimpleFunc_test.", "when calling error in closure_begin_end3, line 7"); this_175 = 0; }; } else { SimpleFunc_firstFree_413 = (SimpleFunc_firstFree_413 - 1); this_175 = SimpleFunc_nextFree_919[SimpleFunc_firstFree_413]; SimpleFunc_typeId_129[this_175] = 2; }; wurst_stack_depth_103 = (wurst_stack_depth_103 - 1); y_515[this_175] = 4; wurst_stack_193[wurst_stack_depth_103] = "when calling apply in closure_begin_end3, line 11"; wurst_stack_depth_103 = (wurst_stack_depth_103 + 1); if (SimpleFunc_typeId_129[this_175] == 0) { if (this_175 == 0) { error105("Nullpointer exception when calling SimpleFunc.apply", "when calling error in closure_begin_end3, line 4"); } else { error105("Called SimpleFunc.apply on invalid object.", "when calling error in closure_begin_end3, line 4"); }; } else { }; this_175 = (y_515[this_175] + 3); wurst_stack_depth_103 = (wurst_stack_depth_103 - 1); if (this_175 == 7) { testSuccess187(); } else { }; wurst_stack_depth_103 = (wurst_stack_depth_103 - 1); } IS_NATIVE function testSuccess187() { } function error105(string msg188, string __wurst_stackPos950) { local integer stacktraceIndex147 local integer stacktraceLimit816 wurst_stack_193[wurst_stack_depth_103] = __wurst_stackPos_950; wurst_stack_depth_103 = (wurst_stack_depth_103 + 1); __wurst_stackPos_950 = ""; stacktraceIndex_147 = wurst_stack_depth_103; stacktraceLimit_816 = 0; loop { stacktraceIndex_147 = (stacktraceIndex_147 - 1); stacktraceLimit_816 = (stacktraceLimit_816 + 1); exitwhen ((stacktraceLimit_816 > 20) or (stacktraceIndex_147 < 0)); __wurst_stackPos_950 = (__wurst_stackPos_950 + (" " + wurst_stack_193[stacktraceIndex_147])); }; $debugPrint309((msg_188 + (" " + __wurst_stackPos_950))); wurst_stack_depth_103 = (wurst_stack_depth_103 - 1); }