integer BugClass_mws100 array MiddlewareUnary_nextFree186 integer MiddlewareUnary_firstFree963 integer MiddlewareUnary_maxIndex101 array MiddlewareUnary_typeId238 array CallbackUnary_nextFree112 integer CallbackUnary_firstFree729 integer CallbackUnary_maxIndex146 array CallbackUnary_typeId228 array BugClass_nextFree207 integer BugClass_firstFree439 integer BugClass_maxIndex112 array LinkedList_nextFree107 integer LinkedList_firstFree121 integer LinkedList_maxIndex927 array LinkedList_typeId264 array cb946 array LinkedList_elem133 integer wurst_stack_depth778 array wurst_stack151 integer BugClass_mws100 = new_LinkedList107("when calling new_LinkedList in MiddlewareOverload.wurst, line 82") integer MiddlewareUnary_firstFree963 = 0 integer MiddlewareUnary_maxIndex101 = 0 integer CallbackUnary_firstFree729 = 0 integer CallbackUnary_maxIndex146 = 0 integer BugClass_firstFree439 = 0 integer BugClass_maxIndex112 = 0 integer CallbackNullary_firstFree182 = 0 integer CallbackNullary_maxIndex208 = 0 integer LinkedList_firstFree121 = 0 integer LinkedList_maxIndex927 = 0 integer wurst_stack_depth778 = 0 function initGlobals931() { } function main451() { initGlobals931(); init_Bug165("when calling init_Bug in MiddlewareOverload.wurst, line 1"); } function config190() { } function init_Bug165(string __wurst_stackPos175) { local integer temp134 local integer temp341 wurst_stack_151[wurst_stack_depth_778] = __wurst_stackPos_175; wurst_stack_depth_778 = (wurst_stack_depth_778 + 1); BugClass_mws_100 = new_LinkedList107("when calling new_LinkedList in MiddlewareOverload.wurst, line 82"); temp_134 = BugClass_mws_100; wurst_stack_151[wurst_stack_depth_778] = "when calling alloc_CallbackUnary_add_Bug in MiddlewareOverload.wurst, line 87"; wurst_stack_depth_778 = (wurst_stack_depth_778 + 1); if (CallbackUnary_firstFree_729 == 0) { if (CallbackUnary_maxIndex_146 < 32768) { CallbackUnary_maxIndex_146 = (CallbackUnary_maxIndex_146 + 1); temp_341 = CallbackUnary_maxIndex_146; CallbackUnary_typeId_228[temp_341] = 4; } else { error108("Out of memory: Could not create CallbackUnary_add_Bug.", "when calling error in MiddlewareOverload.wurst, line 87"); temp_341 = 0; }; } else { CallbackUnary_firstFree_729 = (CallbackUnary_firstFree_729 - 1); temp_341 = CallbackUnary_nextFree_112[CallbackUnary_firstFree_729]; CallbackUnary_typeId_228[temp_341] = 4; }; wurst_stack_depth_778 = (wurst_stack_depth_778 - 1); LinkedList_add_1123(temp_134, temp_341, "when calling add in MiddlewareOverload.wurst, line 87"); temp_341 = BugClass_mws_100; wurst_stack_151[wurst_stack_depth_778] = "when calling new_BugClass in MiddlewareOverload.wurst, line 88"; wurst_stack_depth_778 = (wurst_stack_depth_778 + 1); wurst_stack_151[wurst_stack_depth_778] = "when calling alloc_BugClass in MiddlewareOverload.wurst, line 81"; wurst_stack_depth_778 = (wurst_stack_depth_778 + 1); if (BugClass_firstFree_439 == 0) { if (BugClass_maxIndex_112 < 32768) { BugClass_maxIndex_112 = (BugClass_maxIndex_112 + 1); temp_134 = BugClass_maxIndex_112; } else { error108("Out of memory: Could not create BugClass.", "when calling error in MiddlewareOverload.wurst, line 81"); temp_134 = 0; }; } else { BugClass_firstFree_439 = (BugClass_firstFree_439 - 1); temp_134 = BugClass_nextFree_207[BugClass_firstFree_439]; }; wurst_stack_depth_778 = ((wurst_stack_depth_778 - 1) - 1); LinkedList_call332(temp_341, temp_134, "when calling call in MiddlewareOverload.wurst, line 88"); wurst_stack_depth_778 = (wurst_stack_depth_778 - 1); } function LinkedList_call332(integer this654, any t0828, string __wurst_stackPos172) { local any temp985 wurst_stack_151[wurst_stack_depth_778] = __wurst_stackPos_172; wurst_stack_depth_778 = (wurst_stack_depth_778 + 1); temp_985 = LinkedList_elem_133[this_654]; wurst_stack_151[wurst_stack_depth_778] = "when calling alloc_CallbackUnary_call_Bug in MiddlewareOverload.wurst, line 55"; wurst_stack_depth_778 = (wurst_stack_depth_778 + 1); if (CallbackUnary_firstFree_729 == 0) { if (CallbackUnary_maxIndex_146 < 32768) { CallbackUnary_maxIndex_146 = (CallbackUnary_maxIndex_146 + 1); this_654 = CallbackUnary_maxIndex_146; CallbackUnary_typeId_228[this_654] = 5; } else { error108("Out of memory: Could not create CallbackUnary_call_Bug.", "when calling error in MiddlewareOverload.wurst, line 55"); this_654 = 0; }; } else { CallbackUnary_firstFree_729 = (CallbackUnary_firstFree_729 - 1); this_654 = CallbackUnary_nextFree_112[CallbackUnary_firstFree_729]; CallbackUnary_typeId_228[this_654] = 5; }; wurst_stack_depth_778 = (wurst_stack_depth_778 - 1); dispatch_MiddlewareUnary_Bug_MiddlewareUnary_call150(temp_985, t0_828, this_654, "when calling call in MiddlewareOverload.wurst, line 55"); wurst_stack_depth_778 = (wurst_stack_depth_778 - 1); } IS_NATIVE function println609(string msg274) { } IS_NATIVE function testSuccess206() { } function call_Bug434(integer this350, any t104, integer mwCb206, string __wurst_stackPos194) { wurst_stack_151[wurst_stack_depth_778] = __wurst_stackPos_194; wurst_stack_depth_778 = (wurst_stack_depth_778 + 1); wurst_stack_151[wurst_stack_depth_778] = "when calling callAndDestroy in MiddlewareOverload.wurst, line 37"; wurst_stack_depth_778 = (wurst_stack_depth_778 + 1); if (CallbackUnary_typeId_228[mwCb_206] == 0) { if (mwCb_206 == 0) { error108("Nullpointer exception when calling CallbackUnary.callAndDestroy", "when calling error in MiddlewareOverload.wurst, line 17"); } else { error108("Called CallbackUnary.callAndDestroy on invalid object.", "when calling error in MiddlewareOverload.wurst, line 17"); }; } else { }; wurst_stack_151[wurst_stack_depth_778] = "when calling callAndDestroy in MiddlewareOverload.wurst, line 17"; wurst_stack_depth_778 = (wurst_stack_depth_778 + 1); dispatch_CallbackUnary_Bug_CallbackUnary_call422(mwCb_206, t_104, "when calling call in MiddlewareOverload.wurst, line 18"); dispatch_CallbackUnary_destroyCallbackUnary106(mwCb_206, "when calling dispatch_CallbackUnary_destroyCallbackUnary in MiddlewareOverload.wurst, line 19"); wurst_stack_depth_778 = (((wurst_stack_depth_778 - 1) - 1) - 1); } function call_Bug_3212(integer this100, any t827, integer mwCb150, string __wurst_stackPos359) { wurst_stack_151[wurst_stack_depth_778] = __wurst_stackPos_359; wurst_stack_depth_778 = (wurst_stack_depth_778 + 1); dispatch_CallbackUnary_Bug_CallbackUnary_call422(cb_946[this_100], t_827, "when calling call in MiddlewareOverload.wurst, line 47"); wurst_stack_151[wurst_stack_depth_778] = "when calling callAndDestroy in MiddlewareOverload.wurst, line 48"; wurst_stack_depth_778 = (wurst_stack_depth_778 + 1); if (CallbackUnary_typeId_228[mwCb_150] == 0) { if (mwCb_150 == 0) { error108("Nullpointer exception when calling CallbackUnary.callAndDestroy", "when calling error in MiddlewareOverload.wurst, line 17"); } else { error108("Called CallbackUnary.callAndDestroy on invalid object.", "when calling error in MiddlewareOverload.wurst, line 17"); }; } else { }; wurst_stack_151[wurst_stack_depth_778] = "when calling callAndDestroy in MiddlewareOverload.wurst, line 17"; wurst_stack_depth_778 = (wurst_stack_depth_778 + 1); dispatch_CallbackUnary_Bug_CallbackUnary_call422(mwCb_150, t_827, "when calling call in MiddlewareOverload.wurst, line 18"); dispatch_CallbackUnary_destroyCallbackUnary106(mwCb_150, "when calling dispatch_CallbackUnary_destroyCallbackUnary in MiddlewareOverload.wurst, line 19"); wurst_stack_depth_778 = (((wurst_stack_depth_778 - 1) - 1) - 1); } function new_LinkedList107(string __wurst_stackPos101) returns integer { local integer this196 wurst_stack_151[wurst_stack_depth_778] = __wurst_stackPos_101; wurst_stack_depth_778 = (wurst_stack_depth_778 + 1); wurst_stack_151[wurst_stack_depth_778] = "when calling alloc_LinkedList in MiddlewareOverload.wurst, line 75"; wurst_stack_depth_778 = (wurst_stack_depth_778 + 1); if (LinkedList_firstFree_121 == 0) { if (LinkedList_maxIndex_927 < 32768) { LinkedList_maxIndex_927 = (LinkedList_maxIndex_927 + 1); this_196 = LinkedList_maxIndex_927; LinkedList_typeId_264[this_196] = 6; } else { error108("Out of memory: Could not create LinkedList.", "when calling error in MiddlewareOverload.wurst, line 75"); this_196 = 0; }; } else { LinkedList_firstFree_121 = (LinkedList_firstFree_121 - 1); this_196 = LinkedList_nextFree_107[LinkedList_firstFree_121]; LinkedList_typeId_264[this_196] = 6; }; wurst_stack_depth_778 = ((wurst_stack_depth_778 - 1) - 1); return this_196; } function error108(string msg751, string __wurst_stackPos198) { local integer stacktraceIndex865 local integer stacktraceLimit194 wurst_stack_151[wurst_stack_depth_778] = __wurst_stackPos_198; wurst_stack_depth_778 = (wurst_stack_depth_778 + 1); __wurst_stackPos_198 = ""; stacktraceIndex_865 = wurst_stack_depth_778; stacktraceLimit_194 = 0; loop { stacktraceIndex_865 = (stacktraceIndex_865 - 1); stacktraceLimit_194 = (stacktraceLimit_194 + 1); exitwhen ((stacktraceLimit_194 > 20) or (stacktraceIndex_865 < 0)); __wurst_stackPos_198 = (__wurst_stackPos_198 + (" " + wurst_stack_151[stacktraceIndex_865])); }; $debugPrint891((msg_751 + (" " + __wurst_stackPos_198))); wurst_stack_depth_778 = (wurst_stack_depth_778 - 1); } function dispatch_CallbackUnary_destroyCallbackUnary106(integer this256, string __wurst_stackPos111) { wurst_stack_151[wurst_stack_depth_778] = __wurst_stackPos_111; wurst_stack_depth_778 = (wurst_stack_depth_778 + 1); if (CallbackUnary_typeId_228[this_256] == 0) { if (this_256 == 0) { error108("Nullpointer exception when calling CallbackUnary.CallbackUnary", "when calling error in MiddlewareOverload.wurst, line 15"); } else { error108("Called CallbackUnary.CallbackUnary on invalid object.", "when calling error in MiddlewareOverload.wurst, line 15"); }; } else { }; wurst_stack_151[wurst_stack_depth_778] = "when calling destroyCallbackUnary in MiddlewareOverload.wurst, line 15"; wurst_stack_depth_778 = (wurst_stack_depth_778 + 1); wurst_stack_151[wurst_stack_depth_778] = "when calling dealloc_CallbackUnary in MiddlewareOverload.wurst, line 15"; wurst_stack_depth_778 = (wurst_stack_depth_778 + 1); if (CallbackUnary_typeId_228[this_256] == 0) { error108("Double free: object of type CallbackUnary", "when calling error in MiddlewareOverload.wurst, line 15"); } else { CallbackUnary_nextFree_112[CallbackUnary_firstFree_729] = this_256; CallbackUnary_firstFree_729 = (CallbackUnary_firstFree_729 + 1); CallbackUnary_typeId_228[this_256] = 0; }; wurst_stack_depth_778 = (((wurst_stack_depth_778 - 1) - 1) - 1); } function dispatch_CallbackUnary_Bug_CallbackUnary_call422(integer this194, any t187, string __wurst_stackPos345) { wurst_stack_151[wurst_stack_depth_778] = __wurst_stackPos_345; wurst_stack_depth_778 = (wurst_stack_depth_778 + 1); if (CallbackUnary_typeId_228[this_194] == 0) { if (this_194 == 0) { error108("Nullpointer exception when calling CallbackUnary.call", "when calling error in MiddlewareOverload.wurst, line 16"); } else { error108("Called CallbackUnary.call on invalid object.", "when calling error in MiddlewareOverload.wurst, line 16"); }; } else { }; if (CallbackUnary_typeId_228[this_194] <= 4) { testSuccess206(); } else { println609("called"); }; wurst_stack_depth_778 = (wurst_stack_depth_778 - 1); } function dispatch_MiddlewareUnary_Bug_MiddlewareUnary_call150(integer this148, any t744, integer cb117, string __wurst_stackPos203) { wurst_stack_151[wurst_stack_depth_778] = __wurst_stackPos_203; wurst_stack_depth_778 = (wurst_stack_depth_778 + 1); if (MiddlewareUnary_typeId_238[this_148] == 0) { if (this_148 == 0) { error108("Nullpointer exception when calling MiddlewareUnary.call", "when calling error in MiddlewareOverload.wurst, line 25"); } else { error108("Called MiddlewareUnary.call on invalid object.", "when calling error in MiddlewareOverload.wurst, line 25"); }; } else { }; if (MiddlewareUnary_typeId_238[this_148] <= 8) { call_Bug434(this_148, t_744, cb_117, "when calling call_Bug in MiddlewareOverload.wurst, line 25"); } else { call_Bug_3212(this_148, t_744, cb_117, "when calling call_Bug in MiddlewareOverload.wurst, line 25"); }; wurst_stack_depth_778 = (wurst_stack_depth_778 - 1); } function LinkedList_add_1123(integer this201, integer cbs_0174, string __wurst_stackPos190) { local integer this763 wurst_stack_151[wurst_stack_depth_778] = __wurst_stackPos_190; wurst_stack_depth_778 = (wurst_stack_depth_778 + 1); wurst_stack_151[wurst_stack_depth_778] = "when calling mwUnary in MiddlewareOverload.wurst, line 69"; wurst_stack_depth_778 = (wurst_stack_depth_778 + 1); wurst_stack_151[wurst_stack_depth_778] = "when calling alloc_MiddlewareUnary_Bug in MiddlewareOverload.wurst, line 46"; wurst_stack_depth_778 = (wurst_stack_depth_778 + 1); if (MiddlewareUnary_firstFree_963 == 0) { if (MiddlewareUnary_maxIndex_101 < 32768) { MiddlewareUnary_maxIndex_101 = (MiddlewareUnary_maxIndex_101 + 1); this_763 = MiddlewareUnary_maxIndex_101; MiddlewareUnary_typeId_238[this_763] = 9; } else { error108("Out of memory: Could not create MiddlewareUnary_Bug.", "when calling error in MiddlewareOverload.wurst, line 46"); this_763 = 0; }; } else { MiddlewareUnary_firstFree_963 = (MiddlewareUnary_firstFree_963 - 1); this_763 = MiddlewareUnary_nextFree_186[MiddlewareUnary_firstFree_963]; MiddlewareUnary_typeId_238[this_763] = 9; }; wurst_stack_depth_778 = (wurst_stack_depth_778 - 1); cb_946[this_763] = cbs_0_174; wurst_stack_depth_778 = (wurst_stack_depth_778 - 1); wurst_stack_151[wurst_stack_depth_778] = "when calling add in MiddlewareOverload.wurst, line 69"; wurst_stack_depth_778 = (wurst_stack_depth_778 + 1); if (LinkedList_typeId_264[this_201] == 0) { if (this_201 == 0) { error108("Nullpointer exception when calling LinkedList.add", "when calling error in MiddlewareOverload.wurst, line 77"); } else { error108("Called LinkedList.add on invalid object.", "when calling error in MiddlewareOverload.wurst, line 77"); }; } else { }; LinkedList_elem_133[this_201] = this_763; wurst_stack_depth_778 = ((wurst_stack_depth_778 - 1) - 1); }