integer BugClass_mws202 array MiddlewareUnary_nextFree100 integer MiddlewareUnary_firstFree691 integer MiddlewareUnary_maxIndex582 array MiddlewareUnary_typeId130 array CallbackUnary_nextFree361 integer CallbackUnary_firstFree174 integer CallbackUnary_maxIndex602 array CallbackUnary_typeId179 array BugClass_nextFree161 integer BugClass_firstFree148 integer BugClass_maxIndex718 array LinkedList_nextFree212 integer LinkedList_firstFree206 integer LinkedList_maxIndex156 array LinkedList_typeId257 array cb180 array LinkedList_elem154 integer BugClass_mws202 = new_LinkedList207() integer MiddlewareUnary_firstFree691 = 0 integer MiddlewareUnary_maxIndex582 = 0 integer CallbackUnary_firstFree174 = 0 integer CallbackUnary_maxIndex602 = 0 integer BugClass_firstFree148 = 0 integer BugClass_maxIndex718 = 0 integer CallbackNullary_firstFree127 = 0 integer CallbackNullary_maxIndex132 = 0 integer LinkedList_firstFree206 = 0 integer LinkedList_maxIndex156 = 0 function initGlobals178() { } function main150() { initGlobals178(); init_Bug397(); } function config124() { } function init_Bug397() { local integer temp155 local integer this105 BugClass_mws_202 = new_LinkedList207(); temp_155 = BugClass_mws_202; if (CallbackUnary_firstFree_174 == 0) { if (CallbackUnary_maxIndex_602 < 32768) { CallbackUnary_maxIndex_602 = (CallbackUnary_maxIndex_602 + 1); this_105 = CallbackUnary_maxIndex_602; CallbackUnary_typeId_179[this_105] = 4; } else { error293("Out of memory: Could not create CallbackUnary_add_Bug."); this_105 = 0; }; } else { CallbackUnary_firstFree_174 = (CallbackUnary_firstFree_174 - 1); this_105 = CallbackUnary_nextFree_361[CallbackUnary_firstFree_174]; CallbackUnary_typeId_179[this_105] = 4; }; LinkedList_add_1596(temp_155, this_105); LinkedList_call213(BugClass_mws_202, new_BugClass400()); } function LinkedList_call213(integer this113, any t0328) { local any temp187 temp_187 = LinkedList_elem_154[this_113]; if (CallbackUnary_firstFree_174 == 0) { if (CallbackUnary_maxIndex_602 < 32768) { CallbackUnary_maxIndex_602 = (CallbackUnary_maxIndex_602 + 1); this_113 = CallbackUnary_maxIndex_602; CallbackUnary_typeId_179[this_113] = 5; } else { error293("Out of memory: Could not create CallbackUnary_call_Bug."); this_113 = 0; }; } else { CallbackUnary_firstFree_174 = (CallbackUnary_firstFree_174 - 1); this_113 = CallbackUnary_nextFree_361[CallbackUnary_firstFree_174]; CallbackUnary_typeId_179[this_113] = 5; }; dispatch_MiddlewareUnary_Bug_MiddlewareUnary_call130(temp_187, t0_328, this_113); } IS_NATIVE function println141(string msg841) { } IS_NATIVE function testSuccess176() { } function call_Bug450(integer this395, any t115, integer mwCb168) { if (CallbackUnary_typeId_179[mwCb_168] == 0) { if (mwCb_168 == 0) { error293("Nullpointer exception when calling CallbackUnary.callAndDestroy"); } else { error293("Called CallbackUnary.callAndDestroy on invalid object."); }; } else { }; dispatch_CallbackUnary_Bug_CallbackUnary_call246(mwCb_168, t_115); dispatch_CallbackUnary_destroyCallbackUnary359(mwCb_168); } function call_Bug_3199(integer this183, any t114, integer mwCb169) { dispatch_CallbackUnary_Bug_CallbackUnary_call246(cb_180[this_183], t_114); if (CallbackUnary_typeId_179[mwCb_169] == 0) { if (mwCb_169 == 0) { error293("Nullpointer exception when calling CallbackUnary.callAndDestroy"); } else { error293("Called CallbackUnary.callAndDestroy on invalid object."); }; } else { }; dispatch_CallbackUnary_Bug_CallbackUnary_call246(mwCb_169, t_114); dispatch_CallbackUnary_destroyCallbackUnary359(mwCb_169); } function new_BugClass400() returns integer { local integer this966 if (BugClass_firstFree_148 == 0) { if (BugClass_maxIndex_718 < 32768) { BugClass_maxIndex_718 = (BugClass_maxIndex_718 + 1); this_966 = BugClass_maxIndex_718; } else { error293("Out of memory: Could not create BugClass."); this_966 = 0; }; } else { BugClass_firstFree_148 = (BugClass_firstFree_148 - 1); this_966 = BugClass_nextFree_161[BugClass_firstFree_148]; }; return this_966; } function new_LinkedList207() returns integer { local integer this871 if (LinkedList_firstFree_206 == 0) { if (LinkedList_maxIndex_156 < 32768) { LinkedList_maxIndex_156 = (LinkedList_maxIndex_156 + 1); this_871 = LinkedList_maxIndex_156; LinkedList_typeId_257[this_871] = 6; } else { error293("Out of memory: Could not create LinkedList."); this_871 = 0; }; } else { LinkedList_firstFree_206 = (LinkedList_firstFree_206 - 1); this_871 = LinkedList_nextFree_212[LinkedList_firstFree_206]; LinkedList_typeId_257[this_871] = 6; }; return this_871; } function error293(string msg161) { $debugPrint483((msg_161 + (" " + #getStackTrace()))); } function dispatch_CallbackUnary_destroyCallbackUnary359(integer this858) { if (CallbackUnary_typeId_179[this_858] == 0) { if (this_858 == 0) { error293("Nullpointer exception when calling CallbackUnary.CallbackUnary"); } else { error293("Called CallbackUnary.CallbackUnary on invalid object."); }; } else { }; if (CallbackUnary_typeId_179[this_858] == 0) { error293("Double free: object of type CallbackUnary"); } else { CallbackUnary_nextFree_361[CallbackUnary_firstFree_174] = this_858; CallbackUnary_firstFree_174 = (CallbackUnary_firstFree_174 + 1); CallbackUnary_typeId_179[this_858] = 0; }; } function dispatch_CallbackUnary_Bug_CallbackUnary_call246(integer this169, any t436) { if (CallbackUnary_typeId_179[this_169] == 0) { if (this_169 == 0) { error293("Nullpointer exception when calling CallbackUnary.call"); } else { error293("Called CallbackUnary.call on invalid object."); }; } else { }; if (CallbackUnary_typeId_179[this_169] <= 4) { testSuccess176(); } else { println141("called"); }; } function dispatch_MiddlewareUnary_Bug_MiddlewareUnary_call130(integer this139, any t318, integer cb162) { if (MiddlewareUnary_typeId_130[this_139] == 0) { if (this_139 == 0) { error293("Nullpointer exception when calling MiddlewareUnary.call"); } else { error293("Called MiddlewareUnary.call on invalid object."); }; } else { }; if (MiddlewareUnary_typeId_130[this_139] <= 8) { call_Bug450(this_139, t_318, cb_162); } else { call_Bug_3199(this_139, t_318, cb_162); }; } function LinkedList_add_1596(integer this242, integer cbs_0807) { local integer this172 if (MiddlewareUnary_firstFree_691 == 0) { if (MiddlewareUnary_maxIndex_582 < 32768) { MiddlewareUnary_maxIndex_582 = (MiddlewareUnary_maxIndex_582 + 1); this_172 = MiddlewareUnary_maxIndex_582; MiddlewareUnary_typeId_130[this_172] = 9; } else { error293("Out of memory: Could not create MiddlewareUnary_Bug."); this_172 = 0; }; } else { MiddlewareUnary_firstFree_691 = (MiddlewareUnary_firstFree_691 - 1); this_172 = MiddlewareUnary_nextFree_100[MiddlewareUnary_firstFree_691]; MiddlewareUnary_typeId_130[this_172] = 9; }; cb_180[this_172] = cbs_0_807; if (LinkedList_typeId_257[this_242] == 0) { if (this_242 == 0) { error293("Nullpointer exception when calling LinkedList.add"); } else { error293("Called LinkedList.add on invalid object."); }; } else { }; LinkedList_elem_154[this_242] = this_172; }