array SimpleFunc_nextFree174 integer SimpleFunc_firstFree874 integer SimpleFunc_maxIndex665 array SimpleFunc_typeId175 array y534 integer wurst_stack_depth103 array wurst_stack746 integer SimpleFunc_firstFree874 = 0 integer SimpleFunc_maxIndex665 = 0 integer wurst_stack_depth103 = 0 function initGlobals146() { } function main967() { initGlobals146(); init_test495("when calling init_test in closure_begin_end2, line 1"); } function config354() { } function init_test495(string __wurst_stackPos711) { local integer this176 wurst_stack_746[wurst_stack_depth_103] = __wurst_stackPos_711; wurst_stack_depth_103 = (wurst_stack_depth_103 + 1); wurst_stack_746[wurst_stack_depth_103] = "when calling alloc_SimpleFunc_test in closure_begin_end2, line 7"; wurst_stack_depth_103 = (wurst_stack_depth_103 + 1); if (SimpleFunc_firstFree_874 == 0) { if (SimpleFunc_maxIndex_665 < 32768) { SimpleFunc_maxIndex_665 = (SimpleFunc_maxIndex_665 + 1); this_176 = SimpleFunc_maxIndex_665; SimpleFunc_typeId_175[this_176] = 2; } else { error141("Out of memory: Could not create SimpleFunc_test.", "when calling error in closure_begin_end2, line 7"); this_176 = 0; }; } else { SimpleFunc_firstFree_874 = (SimpleFunc_firstFree_874 - 1); this_176 = SimpleFunc_nextFree_174[SimpleFunc_firstFree_874]; SimpleFunc_typeId_175[this_176] = 2; }; wurst_stack_depth_103 = (wurst_stack_depth_103 - 1); y_534[this_176] = 4; wurst_stack_746[wurst_stack_depth_103] = "when calling apply in closure_begin_end2, line 13"; wurst_stack_depth_103 = (wurst_stack_depth_103 + 1); if (SimpleFunc_typeId_175[this_176] == 0) { if (this_176 == 0) { error141("Nullpointer exception when calling SimpleFunc.apply", "when calling error in closure_begin_end2, line 4"); } else { error141("Called SimpleFunc.apply on invalid object.", "when calling error in closure_begin_end2, line 4"); }; } else { }; this_176 = (y_534[this_176] + 3); wurst_stack_depth_103 = (wurst_stack_depth_103 - 1); if (this_176 == 7) { testSuccess207(); } else { }; wurst_stack_depth_103 = (wurst_stack_depth_103 - 1); } IS_NATIVE function testSuccess207() { } function error141(string msg351, string __wurst_stackPos636) { local integer stacktraceIndex148 local integer stacktraceLimit160 wurst_stack_746[wurst_stack_depth_103] = __wurst_stackPos_636; wurst_stack_depth_103 = (wurst_stack_depth_103 + 1); __wurst_stackPos_636 = ""; stacktraceIndex_148 = wurst_stack_depth_103; stacktraceLimit_160 = 0; loop { stacktraceIndex_148 = (stacktraceIndex_148 - 1); stacktraceLimit_160 = (stacktraceLimit_160 + 1); exitwhen ((stacktraceLimit_160 > 20) or (stacktraceIndex_148 < 0)); __wurst_stackPos_636 = (__wurst_stackPos_636 + (" " + wurst_stack_746[stacktraceIndex_148])); }; $debugPrint199((msg_351 + (" " + __wurst_stackPos_636))); wurst_stack_depth_103 = (wurst_stack_depth_103 - 1); }