integer BugClass_mws161 array MiddlewareUnary_nextFree907 integer MiddlewareUnary_firstFree469 integer MiddlewareUnary_maxIndex410 array MiddlewareUnary_typeId151 array CallbackUnary_nextFree428 integer CallbackUnary_firstFree206 integer CallbackUnary_maxIndex139 array CallbackUnary_typeId153 array BugClass_nextFree621 integer BugClass_firstFree334 integer BugClass_maxIndex718 array LinkedList_nextFree483 integer LinkedList_firstFree132 integer LinkedList_maxIndex163 array LinkedList_typeId181 array cb120 array LinkedList_elem497 integer BugClass_mws161 = new_LinkedList149() integer MiddlewareUnary_firstFree469 = 0 integer MiddlewareUnary_maxIndex410 = 0 integer CallbackUnary_firstFree206 = 0 integer CallbackUnary_maxIndex139 = 0 integer BugClass_firstFree334 = 0 integer BugClass_maxIndex718 = 0 integer CallbackNullary_firstFree980 = 0 integer CallbackNullary_maxIndex749 = 0 integer LinkedList_firstFree132 = 0 integer LinkedList_maxIndex163 = 0 function initGlobals131() { } function main145() { initGlobals131(); init_Bug161(); } function config603() { } function init_Bug161() { local integer temp638 local integer this195 BugClass_mws_161 = new_LinkedList149(); temp_638 = BugClass_mws_161; if (CallbackUnary_firstFree_206 == 0) { if (CallbackUnary_maxIndex_139 < 32768) { CallbackUnary_maxIndex_139 = (CallbackUnary_maxIndex_139 + 1); this_195 = CallbackUnary_maxIndex_139; CallbackUnary_typeId_153[this_195] = 4; } else { error182("Out of memory: Could not create CallbackUnary_add_Bug."); this_195 = 0; }; } else { CallbackUnary_firstFree_206 = (CallbackUnary_firstFree_206 - 1); this_195 = CallbackUnary_nextFree_428[CallbackUnary_firstFree_206]; CallbackUnary_typeId_153[this_195] = 4; }; LinkedList_add_1314(temp_638, this_195); LinkedList_call124(BugClass_mws_161, new_BugClass134()); } function LinkedList_call124(integer this196, any t0550) { local any temp908 temp_908 = LinkedList_elem_497[this_196]; if (CallbackUnary_firstFree_206 == 0) { if (CallbackUnary_maxIndex_139 < 32768) { CallbackUnary_maxIndex_139 = (CallbackUnary_maxIndex_139 + 1); this_196 = CallbackUnary_maxIndex_139; CallbackUnary_typeId_153[this_196] = 5; } else { error182("Out of memory: Could not create CallbackUnary_call_Bug."); this_196 = 0; }; } else { CallbackUnary_firstFree_206 = (CallbackUnary_firstFree_206 - 1); this_196 = CallbackUnary_nextFree_428[CallbackUnary_firstFree_206]; CallbackUnary_typeId_153[this_196] = 5; }; dispatch_MiddlewareUnary_Bug_MiddlewareUnary_call155(temp_908, t0_550, this_196); } IS_NATIVE function println130(string msg181) { } IS_NATIVE function testSuccess108() { } function call_Bug318(integer this886, any t162, integer mwCb164) { if (CallbackUnary_typeId_153[mwCb_164] == 0) { if (mwCb_164 == 0) { error182("Nullpointer exception when calling CallbackUnary.callAndDestroy"); } else { error182("Called CallbackUnary.callAndDestroy on invalid object."); }; } else { }; dispatch_CallbackUnary_Bug_CallbackUnary_call121(mwCb_164, t_162); dispatch_CallbackUnary_destroyCallbackUnary547(mwCb_164); } function call_Bug_3151(integer this127, any t150, integer mwCb100) { dispatch_CallbackUnary_Bug_CallbackUnary_call121(cb_120[this_127], t_150); if (CallbackUnary_typeId_153[mwCb_100] == 0) { if (mwCb_100 == 0) { error182("Nullpointer exception when calling CallbackUnary.callAndDestroy"); } else { error182("Called CallbackUnary.callAndDestroy on invalid object."); }; } else { }; dispatch_CallbackUnary_Bug_CallbackUnary_call121(mwCb_100, t_150); dispatch_CallbackUnary_destroyCallbackUnary547(mwCb_100); } function new_BugClass134() returns integer { local integer this486 if (BugClass_firstFree_334 == 0) { if (BugClass_maxIndex_718 < 32768) { BugClass_maxIndex_718 = (BugClass_maxIndex_718 + 1); this_486 = BugClass_maxIndex_718; } else { error182("Out of memory: Could not create BugClass."); this_486 = 0; }; } else { BugClass_firstFree_334 = (BugClass_firstFree_334 - 1); this_486 = BugClass_nextFree_621[BugClass_firstFree_334]; }; return this_486; } function new_LinkedList149() returns integer { local integer this191 if (LinkedList_firstFree_132 == 0) { if (LinkedList_maxIndex_163 < 32768) { LinkedList_maxIndex_163 = (LinkedList_maxIndex_163 + 1); this_191 = LinkedList_maxIndex_163; LinkedList_typeId_181[this_191] = 6; } else { error182("Out of memory: Could not create LinkedList."); this_191 = 0; }; } else { LinkedList_firstFree_132 = (LinkedList_firstFree_132 - 1); this_191 = LinkedList_nextFree_483[LinkedList_firstFree_132]; LinkedList_typeId_181[this_191] = 6; }; return this_191; } function error182(string msg508) { $debugPrint171((msg_508 + (" " + #getStackTrace()))); } function dispatch_CallbackUnary_destroyCallbackUnary547(integer this115) { if (CallbackUnary_typeId_153[this_115] == 0) { if (this_115 == 0) { error182("Nullpointer exception when calling CallbackUnary.CallbackUnary"); } else { error182("Called CallbackUnary.CallbackUnary on invalid object."); }; } else { }; if (CallbackUnary_typeId_153[this_115] == 0) { error182("Double free: object of type CallbackUnary"); } else { CallbackUnary_nextFree_428[CallbackUnary_firstFree_206] = this_115; CallbackUnary_firstFree_206 = (CallbackUnary_firstFree_206 + 1); CallbackUnary_typeId_153[this_115] = 0; }; } function dispatch_CallbackUnary_Bug_CallbackUnary_call121(integer this897, any t112) { if (CallbackUnary_typeId_153[this_897] == 0) { if (this_897 == 0) { error182("Nullpointer exception when calling CallbackUnary.call"); } else { error182("Called CallbackUnary.call on invalid object."); }; } else { }; if (CallbackUnary_typeId_153[this_897] <= 4) { testSuccess108(); } else { println130("called"); }; } function dispatch_MiddlewareUnary_Bug_MiddlewareUnary_call155(integer this121, any t143, integer cb231) { if (MiddlewareUnary_typeId_151[this_121] == 0) { if (this_121 == 0) { error182("Nullpointer exception when calling MiddlewareUnary.call"); } else { error182("Called MiddlewareUnary.call on invalid object."); }; } else { }; if (MiddlewareUnary_typeId_151[this_121] <= 8) { call_Bug318(this_121, t_143, cb_231); } else { call_Bug_3151(this_121, t_143, cb_231); }; } function LinkedList_add_1314(integer this293, integer cbs_0205) { local integer this207 if (MiddlewareUnary_firstFree_469 == 0) { if (MiddlewareUnary_maxIndex_410 < 32768) { MiddlewareUnary_maxIndex_410 = (MiddlewareUnary_maxIndex_410 + 1); this_207 = MiddlewareUnary_maxIndex_410; MiddlewareUnary_typeId_151[this_207] = 9; } else { error182("Out of memory: Could not create MiddlewareUnary_Bug."); this_207 = 0; }; } else { MiddlewareUnary_firstFree_469 = (MiddlewareUnary_firstFree_469 - 1); this_207 = MiddlewareUnary_nextFree_907[MiddlewareUnary_firstFree_469]; MiddlewareUnary_typeId_151[this_207] = 9; }; cb_120[this_207] = cbs_0_205; if (LinkedList_typeId_181[this_293] == 0) { if (this_293 == 0) { error182("Nullpointer exception when calling LinkedList.add"); } else { error182("Called LinkedList.add on invalid object."); }; } else { }; LinkedList_elem_497[this_293] = this_207; }