array SimpleFunc_nextFree211 integer SimpleFunc_firstFree108 integer SimpleFunc_maxIndex465 array SimpleFunc_typeId170 array y246 integer wurst_stack_depth168 array wurst_stack769 integer SimpleFunc_firstFree108 = 0 integer SimpleFunc_maxIndex465 = 0 integer wurst_stack_depth168 = 0 function initGlobals576() { } function main149() { initGlobals576(); init_test145("when calling init_test in closure3, line 1"); } function config113() { } function init_test145(string __wurst_stackPos127) { local integer this986 wurst_stack_769[wurst_stack_depth_168] = __wurst_stackPos_127; wurst_stack_depth_168 = (wurst_stack_depth_168 + 1); wurst_stack_769[wurst_stack_depth_168] = "when calling alloc_SimpleFunc_test in closure3, line 7"; wurst_stack_depth_168 = (wurst_stack_depth_168 + 1); if (SimpleFunc_firstFree_108 == 0) { if (SimpleFunc_maxIndex_465 < 32768) { SimpleFunc_maxIndex_465 = (SimpleFunc_maxIndex_465 + 1); this_986 = SimpleFunc_maxIndex_465; SimpleFunc_typeId_170[this_986] = 2; } else { error100("Out of memory: Could not create SimpleFunc_test.", "when calling error in closure3, line 7"); this_986 = 0; }; } else { SimpleFunc_firstFree_108 = (SimpleFunc_firstFree_108 - 1); this_986 = SimpleFunc_nextFree_211[SimpleFunc_firstFree_108]; SimpleFunc_typeId_170[this_986] = 2; }; wurst_stack_depth_168 = (wurst_stack_depth_168 - 1); y_246[this_986] = 4; wurst_stack_769[wurst_stack_depth_168] = "when calling apply in closure3, line 8"; wurst_stack_depth_168 = (wurst_stack_depth_168 + 1); if (SimpleFunc_typeId_170[this_986] == 0) { if (this_986 == 0) { error100("Nullpointer exception when calling SimpleFunc.apply", "when calling error in closure3, line 4"); } else { error100("Called SimpleFunc.apply on invalid object.", "when calling error in closure3, line 4"); }; } else { }; this_986 = (3 + y_246[this_986]); wurst_stack_depth_168 = (wurst_stack_depth_168 - 1); if (this_986 == 7) { testSuccess742(); } else { }; wurst_stack_depth_168 = (wurst_stack_depth_168 - 1); } IS_NATIVE function testSuccess742() { } function error100(string msg147, string __wurst_stackPos119) { local integer stacktraceIndex174 local integer stacktraceLimit125 wurst_stack_769[wurst_stack_depth_168] = __wurst_stackPos_119; wurst_stack_depth_168 = (wurst_stack_depth_168 + 1); __wurst_stackPos_119 = ""; stacktraceIndex_174 = wurst_stack_depth_168; stacktraceLimit_125 = 0; loop { stacktraceIndex_174 = (stacktraceIndex_174 - 1); stacktraceLimit_125 = (stacktraceLimit_125 + 1); exitwhen ((stacktraceLimit_125 > 20) or (stacktraceIndex_174 < 0)); __wurst_stackPos_119 = (__wurst_stackPos_119 + (" " + wurst_stack_769[stacktraceIndex_174])); }; $debugPrint116((msg_147 + (" " + __wurst_stackPos_119))); wurst_stack_depth_168 = (wurst_stack_depth_168 - 1); }