array SimpleFunc_nextFree160 integer SimpleFunc_firstFree113 integer SimpleFunc_maxIndex824 array SimpleFunc_typeId131 integer wurst_stack_depth503 array wurst_stack141 integer SimpleFunc_firstFree113 = 0 integer SimpleFunc_maxIndex824 = 0 integer wurst_stack_depth503 = 0 function initGlobals552() { } function main107() { initGlobals552(); init_test209("when calling init_test in closure1, line 1"); } function config102() { } function init_test209(string __wurst_stackPos196) { local integer this149 wurst_stack_141[wurst_stack_depth_503] = __wurst_stackPos_196; wurst_stack_depth_503 = (wurst_stack_depth_503 + 1); wurst_stack_141[wurst_stack_depth_503] = "when calling alloc_SimpleFunc_test in closure1, line 6"; wurst_stack_depth_503 = (wurst_stack_depth_503 + 1); if (SimpleFunc_firstFree_113 == 0) { if (SimpleFunc_maxIndex_824 < 32768) { SimpleFunc_maxIndex_824 = (SimpleFunc_maxIndex_824 + 1); this_149 = SimpleFunc_maxIndex_824; SimpleFunc_typeId_131[this_149] = 2; } else { error194("Out of memory: Could not create SimpleFunc_test.", "when calling error in closure1, line 6"); this_149 = 0; }; } else { SimpleFunc_firstFree_113 = (SimpleFunc_firstFree_113 - 1); this_149 = SimpleFunc_nextFree_160[SimpleFunc_firstFree_113]; SimpleFunc_typeId_131[this_149] = 2; }; wurst_stack_depth_503 = (wurst_stack_depth_503 - 1); wurst_stack_141[wurst_stack_depth_503] = "when calling apply in closure1, line 7"; wurst_stack_depth_503 = (wurst_stack_depth_503 + 1); if (SimpleFunc_typeId_131[this_149] == 0) { if (this_149 == 0) { error194("Nullpointer exception when calling SimpleFunc.apply", "when calling error in closure1, line 4"); } else { error194("Called SimpleFunc.apply on invalid object.", "when calling error in closure1, line 4"); }; } else { }; wurst_stack_depth_503 = (wurst_stack_depth_503 - 1); testSuccess927(); wurst_stack_depth_503 = (wurst_stack_depth_503 - 1); } IS_NATIVE function testSuccess927() { } function error194(string msg194, string __wurst_stackPos210) { local integer stacktraceIndex153 local integer stacktraceLimit146 wurst_stack_141[wurst_stack_depth_503] = __wurst_stackPos_210; wurst_stack_depth_503 = (wurst_stack_depth_503 + 1); __wurst_stackPos_210 = ""; stacktraceIndex_153 = wurst_stack_depth_503; stacktraceLimit_146 = 0; loop { stacktraceIndex_153 = (stacktraceIndex_153 - 1); stacktraceLimit_146 = (stacktraceLimit_146 + 1); exitwhen ((stacktraceLimit_146 > 20) or (stacktraceIndex_153 < 0)); __wurst_stackPos_210 = (__wurst_stackPos_210 + (" " + wurst_stack_141[stacktraceIndex_153])); }; $debugPrint201((msg_194 + (" " + __wurst_stackPos_210))); wurst_stack_depth_503 = (wurst_stack_depth_503 - 1); }