array SimpleFunc_nextFree125 integer SimpleFunc_firstFree163 integer SimpleFunc_maxIndex348 array SimpleFunc_typeId659 array y684 integer wurst_stack_depth195 array wurst_stack196 integer SimpleFunc_firstFree163 = 0 integer SimpleFunc_maxIndex348 = 0 integer wurst_stack_depth195 = 0 function initGlobals144() { } function main155() { initGlobals144(); init_test210("when calling init_test in closure3, line 1"); } function config838() { } function init_test210(string __wurst_stackPos312) { local integer this133 wurst_stack_196[wurst_stack_depth_195] = __wurst_stackPos_312; wurst_stack_depth_195 = (wurst_stack_depth_195 + 1); wurst_stack_196[wurst_stack_depth_195] = "when calling alloc_SimpleFunc_test in closure3, line 7"; wurst_stack_depth_195 = (wurst_stack_depth_195 + 1); if (SimpleFunc_firstFree_163 == 0) { if (SimpleFunc_maxIndex_348 < 32768) { SimpleFunc_maxIndex_348 = (SimpleFunc_maxIndex_348 + 1); this_133 = SimpleFunc_maxIndex_348; SimpleFunc_typeId_659[this_133] = 2; } else { error941("Out of memory: Could not create SimpleFunc_test.", "when calling error in closure3, line 7"); this_133 = 0; }; } else { SimpleFunc_firstFree_163 = (SimpleFunc_firstFree_163 - 1); this_133 = SimpleFunc_nextFree_125[SimpleFunc_firstFree_163]; SimpleFunc_typeId_659[this_133] = 2; }; wurst_stack_depth_195 = (wurst_stack_depth_195 - 1); y_684[this_133] = 4; wurst_stack_196[wurst_stack_depth_195] = "when calling apply in closure3, line 8"; wurst_stack_depth_195 = (wurst_stack_depth_195 + 1); if (SimpleFunc_typeId_659[this_133] == 0) { if (this_133 == 0) { error941("Nullpointer exception when calling SimpleFunc.apply", "when calling error in closure3, line 4"); } else { error941("Called SimpleFunc.apply on invalid object.", "when calling error in closure3, line 4"); }; } else { }; this_133 = (3 + y_684[this_133]); wurst_stack_depth_195 = (wurst_stack_depth_195 - 1); if (this_133 == 7) { testSuccess183(); } else { }; wurst_stack_depth_195 = (wurst_stack_depth_195 - 1); } IS_NATIVE function testSuccess183() { } function error941(string msg906, string __wurst_stackPos463) { local integer stacktraceIndex205 local integer stacktraceLimit259 wurst_stack_196[wurst_stack_depth_195] = __wurst_stackPos_463; wurst_stack_depth_195 = (wurst_stack_depth_195 + 1); __wurst_stackPos_463 = ""; stacktraceIndex_205 = wurst_stack_depth_195; stacktraceLimit_259 = 0; loop { stacktraceIndex_205 = (stacktraceIndex_205 - 1); stacktraceLimit_259 = (stacktraceLimit_259 + 1); exitwhen ((stacktraceLimit_259 > 20) or (stacktraceIndex_205 < 0)); __wurst_stackPos_463 = (__wurst_stackPos_463 + (" " + wurst_stack_196[stacktraceIndex_205])); }; $debugPrint159((msg_906 + (" " + __wurst_stackPos_463))); wurst_stack_depth_195 = (wurst_stack_depth_195 - 1); }