array SimpleFunc_nextFree149 integer SimpleFunc_firstFree187 integer SimpleFunc_maxIndex149 array SimpleFunc_typeId658 array y675 integer wurst_stack_depth238 array wurst_stack311 integer SimpleFunc_firstFree187 = 0 integer SimpleFunc_maxIndex149 = 0 integer wurst_stack_depth238 = 0 function initGlobals340() { } function main578() { initGlobals340(); init_test775("when calling init_test in closure3, line 1"); } function config136() { } function init_test775(string __wurst_stackPos543) { local integer this210 wurst_stack_311[wurst_stack_depth_238] = __wurst_stackPos_543; wurst_stack_depth_238 = (wurst_stack_depth_238 + 1); wurst_stack_311[wurst_stack_depth_238] = "when calling alloc_SimpleFunc_test in closure3, line 7"; wurst_stack_depth_238 = (wurst_stack_depth_238 + 1); if (SimpleFunc_firstFree_187 == 0) { if (SimpleFunc_maxIndex_149 < 32768) { SimpleFunc_maxIndex_149 = (SimpleFunc_maxIndex_149 + 1); this_210 = SimpleFunc_maxIndex_149; SimpleFunc_typeId_658[this_210] = 2; } else { error563("Out of memory: Could not create SimpleFunc_test.", "when calling error in closure3, line 7"); this_210 = 0; }; } else { SimpleFunc_firstFree_187 = (SimpleFunc_firstFree_187 - 1); this_210 = SimpleFunc_nextFree_149[SimpleFunc_firstFree_187]; SimpleFunc_typeId_658[this_210] = 2; }; wurst_stack_depth_238 = (wurst_stack_depth_238 - 1); y_675[this_210] = 4; wurst_stack_311[wurst_stack_depth_238] = "when calling apply in closure3, line 8"; wurst_stack_depth_238 = (wurst_stack_depth_238 + 1); if (SimpleFunc_typeId_658[this_210] == 0) { if (this_210 == 0) { error563("Nullpointer exception when calling SimpleFunc.apply", "when calling error in closure3, line 4"); } else { error563("Called SimpleFunc.apply on invalid object.", "when calling error in closure3, line 4"); }; } else { }; this_210 = (3 + y_675[this_210]); wurst_stack_depth_238 = (wurst_stack_depth_238 - 1); if (this_210 == 7) { testSuccess168(); } else { }; wurst_stack_depth_238 = (wurst_stack_depth_238 - 1); } IS_NATIVE function testSuccess168() { } function error563(string msg213, string __wurst_stackPos205) { local integer stacktraceIndex113 local integer stacktraceLimit204 wurst_stack_311[wurst_stack_depth_238] = __wurst_stackPos_205; wurst_stack_depth_238 = (wurst_stack_depth_238 + 1); __wurst_stackPos_205 = ""; stacktraceIndex_113 = wurst_stack_depth_238; stacktraceLimit_204 = 0; loop { stacktraceIndex_113 = (stacktraceIndex_113 - 1); stacktraceLimit_204 = (stacktraceLimit_204 + 1); exitwhen ((stacktraceLimit_204 > 20) or (stacktraceIndex_113 < 0)); __wurst_stackPos_205 = (__wurst_stackPos_205 + (" " + wurst_stack_311[stacktraceIndex_113])); }; $debugPrint102((msg_213 + (" " + __wurst_stackPos_205))); wurst_stack_depth_238 = (wurst_stack_depth_238 - 1); }