integer BugClass_mws205 array MiddlewareUnary_nextFree128 integer MiddlewareUnary_firstFree202 integer MiddlewareUnary_maxIndex645 array MiddlewareUnary_typeId641 array CallbackUnary_nextFree195 integer CallbackUnary_firstFree147 integer CallbackUnary_maxIndex698 array CallbackUnary_typeId178 array BugClass_nextFree194 integer BugClass_firstFree514 integer BugClass_maxIndex529 array LinkedList_nextFree169 integer LinkedList_firstFree378 integer LinkedList_maxIndex180 array LinkedList_typeId483 array cb593 array cb_18182 array LinkedList_elem115 integer BugClass_mws205 = new_LinkedList185() integer MiddlewareUnary_firstFree202 = 0 integer MiddlewareUnary_maxIndex645 = 0 integer CallbackUnary_firstFree147 = 0 integer CallbackUnary_maxIndex698 = 0 integer BugClass_firstFree514 = 0 integer BugClass_maxIndex529 = 0 integer CallbackNullary_firstFree142 = 0 integer CallbackNullary_maxIndex169 = 0 integer LinkedList_firstFree378 = 0 integer LinkedList_maxIndex180 = 0 function initGlobals252() { } function main269() { initGlobals252(); init_Bug177(); } function config120() { } function init_Bug177() { BugClass_mws_205 = new_LinkedList185(); LinkedList_add_1185(BugClass_mws_205, alloc_CallbackUnary_add_Bug767()); LinkedList_call927(BugClass_mws_205, new_BugClass193()); } function mwUnary141(integer cb333) returns integer { local integer clVar183 clVar_183 = alloc_MiddlewareUnary_Bug360(); cb_18_182[clVar_183] = cb_333; return clVar_183; } function LinkedList_call927(integer this757, any t0126) { dispatch_MiddlewareUnary_Bug_MiddlewareUnary_call142(LinkedList_elem_115[this_757], t0_126, alloc_CallbackUnary_call_Bug119()); } IS_NATIVE function println135(string msg528) { } IS_NATIVE function testSuccess156() { } function call_Bug576(integer this109, any t186, integer mwCb160) { dispatch_CallbackNullary_Bug_CallbackNullary_call121(cb_593[this_109]); dispatch_CallbackUnary_Bug_CallbackUnary_callAndDestroy120(mwCb_160, t_186); } function call_Bug_12168(integer this173, any t903, integer mwCb952) { dispatch_CallbackUnary_Bug_CallbackUnary_call394(cb_18_182[this_173], t_903); dispatch_CallbackUnary_Bug_CallbackUnary_callAndDestroy120(mwCb_952, t_903); } function call_call_Bug277(integer this173, any e156) { println135("called"); } function call_add_Bug896(integer this114, integer i995) { testSuccess156(); } function BugClass_init192(integer this122) { } function new_BugClass193() returns integer { local integer this201 this_201 = alloc_BugClass110(); construct_BugClass871(this_201); return this_201; } function construct_BugClass871(integer this905) { BugClass_init192(this_905); } function CallbackUnary_callAndDestroy693(integer this121, any t191) { dispatch_CallbackUnary_Bug_CallbackUnary_call394(this_121, t_191); dispatch_CallbackUnary_destroyCallbackUnary933(this_121); } function destroyCallbackUnary139(integer this100) { dealloc_CallbackUnary148(this_100); } function LinkedList_add607(integer this839, any t207) { LinkedList_elem_115[this_839] = t_207; } function LinkedList_init641(integer this169) { } function new_LinkedList185() returns integer { local integer this323 this_323 = alloc_LinkedList705(); construct_LinkedList200(this_323); return this_323; } function construct_LinkedList200(integer this152) { LinkedList_init641(this_152); } function error148(string msg600) { $debugPrint494((msg_600 + (" " + #getStackTrace()))); } function alloc_MiddlewareUnary_Bug360() returns integer { local integer this700 if (MiddlewareUnary_firstFree_202 == 0) { if (MiddlewareUnary_maxIndex_645 < 32768) { MiddlewareUnary_maxIndex_645 = (MiddlewareUnary_maxIndex_645 + 1); this_700 = MiddlewareUnary_maxIndex_645; MiddlewareUnary_typeId_641[this_700] = 9; } else { error148("Out of memory: Could not create MiddlewareUnary_Bug."); this_700 = 0; }; } else { MiddlewareUnary_firstFree_202 = (MiddlewareUnary_firstFree_202 - 1); this_700 = MiddlewareUnary_nextFree_128[MiddlewareUnary_firstFree_202]; MiddlewareUnary_typeId_641[this_700] = 9; }; return this_700; } function alloc_CallbackUnary_call_Bug119() returns integer { local integer this281 if (CallbackUnary_firstFree_147 == 0) { if (CallbackUnary_maxIndex_698 < 32768) { CallbackUnary_maxIndex_698 = (CallbackUnary_maxIndex_698 + 1); this_281 = CallbackUnary_maxIndex_698; CallbackUnary_typeId_178[this_281] = 5; } else { error148("Out of memory: Could not create CallbackUnary_call_Bug."); this_281 = 0; }; } else { CallbackUnary_firstFree_147 = (CallbackUnary_firstFree_147 - 1); this_281 = CallbackUnary_nextFree_195[CallbackUnary_firstFree_147]; CallbackUnary_typeId_178[this_281] = 5; }; return this_281; } function alloc_CallbackUnary_add_Bug767() returns integer { local integer this873 if (CallbackUnary_firstFree_147 == 0) { if (CallbackUnary_maxIndex_698 < 32768) { CallbackUnary_maxIndex_698 = (CallbackUnary_maxIndex_698 + 1); this_873 = CallbackUnary_maxIndex_698; CallbackUnary_typeId_178[this_873] = 4; } else { error148("Out of memory: Could not create CallbackUnary_add_Bug."); this_873 = 0; }; } else { CallbackUnary_firstFree_147 = (CallbackUnary_firstFree_147 - 1); this_873 = CallbackUnary_nextFree_195[CallbackUnary_firstFree_147]; CallbackUnary_typeId_178[this_873] = 4; }; return this_873; } function alloc_BugClass110() returns integer { local integer this168 if (BugClass_firstFree_514 == 0) { if (BugClass_maxIndex_529 < 32768) { BugClass_maxIndex_529 = (BugClass_maxIndex_529 + 1); this_168 = BugClass_maxIndex_529; } else { error148("Out of memory: Could not create BugClass."); this_168 = 0; }; } else { BugClass_firstFree_514 = (BugClass_firstFree_514 - 1); this_168 = BugClass_nextFree_194[BugClass_firstFree_514]; }; return this_168; } function dealloc_CallbackUnary148(integer obj182) { if (CallbackUnary_typeId_178[obj_182] == 0) { error148("Double free: object of type CallbackUnary"); } else { CallbackUnary_nextFree_195[CallbackUnary_firstFree_147] = obj_182; CallbackUnary_firstFree_147 = (CallbackUnary_firstFree_147 + 1); CallbackUnary_typeId_178[obj_182] = 0; }; } function alloc_LinkedList705() returns integer { local integer this639 if (LinkedList_firstFree_378 == 0) { if (LinkedList_maxIndex_180 < 32768) { LinkedList_maxIndex_180 = (LinkedList_maxIndex_180 + 1); this_639 = LinkedList_maxIndex_180; LinkedList_typeId_483[this_639] = 6; } else { error148("Out of memory: Could not create LinkedList."); this_639 = 0; }; } else { LinkedList_firstFree_378 = (LinkedList_firstFree_378 - 1); this_639 = LinkedList_nextFree_169[LinkedList_firstFree_378]; LinkedList_typeId_483[this_639] = 6; }; return this_639; } function dispatch_CallbackNullary_Bug_CallbackNullary_call121(integer this105) { } function dispatch_CallbackUnary_destroyCallbackUnary933(integer this192) { if (CallbackUnary_typeId_178[this_192] == 0) { if (this_192 == 0) { error148("Nullpointer exception when calling CallbackUnary.CallbackUnary"); } else { error148("Called CallbackUnary.CallbackUnary on invalid object."); }; } else { }; destroyCallbackUnary139(this_192); } function dispatch_CallbackUnary_Bug_CallbackUnary_call394(integer this120, any t380) { if (CallbackUnary_typeId_178[this_120] == 0) { if (this_120 == 0) { error148("Nullpointer exception when calling CallbackUnary.call"); } else { error148("Called CallbackUnary.call on invalid object."); }; } else { }; if (CallbackUnary_typeId_178[this_120] <= 4) { call_add_Bug896(this_120, t_380); } else { call_call_Bug277(this_120, t_380); }; } function dispatch_CallbackUnary_Bug_CallbackUnary_callAndDestroy120(integer this901, any t201) { if (CallbackUnary_typeId_178[this_901] == 0) { if (this_901 == 0) { error148("Nullpointer exception when calling CallbackUnary.callAndDestroy"); } else { error148("Called CallbackUnary.callAndDestroy on invalid object."); }; } else { }; CallbackUnary_callAndDestroy693(this_901, t_201); } function dispatch_LinkedList_Bug_LinkedList_add728(integer this190, any t166) { if (LinkedList_typeId_483[this_190] == 0) { if (this_190 == 0) { error148("Nullpointer exception when calling LinkedList.add"); } else { error148("Called LinkedList.add on invalid object."); }; } else { }; LinkedList_add607(this_190, t_166); } function dispatch_MiddlewareUnary_Bug_MiddlewareUnary_call142(integer this192, any t273, integer cb725) { if (MiddlewareUnary_typeId_641[this_192] == 0) { if (this_192 == 0) { error148("Nullpointer exception when calling MiddlewareUnary.call"); } else { error148("Called MiddlewareUnary.call on invalid object."); }; } else { }; if (MiddlewareUnary_typeId_641[this_192] <= 8) { call_Bug576(this_192, t_273, cb_725); } else { call_Bug_12168(this_192, t_273, cb_725); }; } function LinkedList_add_1185(integer this592, integer cbs_0152) { dispatch_LinkedList_Bug_LinkedList_add728(this_592, mwUnary141(cbs_0_152)); }