integer BugClass_mws200 array MiddlewareUnary_nextFree203 integer MiddlewareUnary_firstFree118 integer MiddlewareUnary_maxIndex201 array MiddlewareUnary_typeId198 array CallbackUnary_nextFree528 integer CallbackUnary_firstFree212 integer CallbackUnary_maxIndex107 array CallbackUnary_typeId410 array BugClass_nextFree199 integer BugClass_firstFree208 integer BugClass_maxIndex124 array LinkedList_nextFree691 integer LinkedList_firstFree169 integer LinkedList_maxIndex199 array LinkedList_typeId109 array cb398 array LinkedList_elem208 integer BugClass_mws200 = new_LinkedList188() integer MiddlewareUnary_firstFree118 = 0 integer MiddlewareUnary_maxIndex201 = 0 integer CallbackUnary_firstFree212 = 0 integer CallbackUnary_maxIndex107 = 0 integer BugClass_firstFree208 = 0 integer BugClass_maxIndex124 = 0 integer CallbackNullary_firstFree181 = 0 integer CallbackNullary_maxIndex401 = 0 integer LinkedList_firstFree169 = 0 integer LinkedList_maxIndex199 = 0 function initGlobals502() { } function main164() { initGlobals502(); init_Bug509(); } function config155() { } function init_Bug509() { local integer clVar800 local integer temp583 local integer this175 BugClass_mws_200 = new_LinkedList188(); temp_583 = BugClass_mws_200; if (CallbackUnary_firstFree_212 == 0) { if (CallbackUnary_maxIndex_107 < 32768) { CallbackUnary_maxIndex_107 = (CallbackUnary_maxIndex_107 + 1); this_175 = CallbackUnary_maxIndex_107; CallbackUnary_typeId_410[this_175] = 4; } else { error442("Out of memory: Could not create CallbackUnary_add_Bug."); this_175 = 0; }; } else { CallbackUnary_firstFree_212 = (CallbackUnary_firstFree_212 - 1); this_175 = CallbackUnary_nextFree_528[CallbackUnary_firstFree_212]; CallbackUnary_typeId_410[this_175] = 4; }; clVar_800 = this_175; LinkedList_add_1193(temp_583, clVar_800); LinkedList_call135(BugClass_mws_200, new_BugClass126()); } function LinkedList_call135(integer this185, any t0998) { local integer clVar175 local any temp113 local any temp437 local integer this155 temp_113 = LinkedList_elem_208[this_185]; temp_437 = t0_998; if (CallbackUnary_firstFree_212 == 0) { if (CallbackUnary_maxIndex_107 < 32768) { CallbackUnary_maxIndex_107 = (CallbackUnary_maxIndex_107 + 1); this_155 = CallbackUnary_maxIndex_107; CallbackUnary_typeId_410[this_155] = 5; } else { error442("Out of memory: Could not create CallbackUnary_call_Bug."); this_155 = 0; }; } else { CallbackUnary_firstFree_212 = (CallbackUnary_firstFree_212 - 1); this_155 = CallbackUnary_nextFree_528[CallbackUnary_firstFree_212]; CallbackUnary_typeId_410[this_155] = 5; }; clVar_175 = this_155; dispatch_MiddlewareUnary_Bug_MiddlewareUnary_call125(temp_113, temp_437, clVar_175); } IS_NATIVE function println165(string msg217) { } IS_NATIVE function testSuccess184() { } function call_Bug310(integer this188, any t171, integer mwCb284) { local integer this100 local any t205 local integer this175 local any t197 this_100 = mwCb_284; t_205 = t_171; if (CallbackUnary_typeId_410[this_100] == 0) { if (this_100 == 0) { error442("Nullpointer exception when calling CallbackUnary.callAndDestroy"); } else { error442("Called CallbackUnary.callAndDestroy on invalid object."); }; } else { }; this_175 = this_100; t_197 = t_205; dispatch_CallbackUnary_Bug_CallbackUnary_call477(this_175, t_197); dispatch_CallbackUnary_destroyCallbackUnary965(this_175); } function call_Bug_3156(integer this342, any t142, integer mwCb164) { local integer this128 local any t253 local integer this194 local any t115 dispatch_CallbackUnary_Bug_CallbackUnary_call477(cb_398[this_342], t_142); this_128 = mwCb_164; t_253 = t_142; if (CallbackUnary_typeId_410[this_128] == 0) { if (this_128 == 0) { error442("Nullpointer exception when calling CallbackUnary.callAndDestroy"); } else { error442("Called CallbackUnary.callAndDestroy on invalid object."); }; } else { }; this_194 = this_128; t_115 = t_253; dispatch_CallbackUnary_Bug_CallbackUnary_call477(this_194, t_115); dispatch_CallbackUnary_destroyCallbackUnary965(this_194); } function new_BugClass126() returns integer { local integer this340 local integer this213 if (BugClass_firstFree_208 == 0) { if (BugClass_maxIndex_124 < 32768) { BugClass_maxIndex_124 = (BugClass_maxIndex_124 + 1); this_213 = BugClass_maxIndex_124; } else { error442("Out of memory: Could not create BugClass."); this_213 = 0; }; } else { BugClass_firstFree_208 = (BugClass_firstFree_208 - 1); this_213 = BugClass_nextFree_199[BugClass_firstFree_208]; }; this_340 = this_213; return this_340; } function new_LinkedList188() returns integer { local integer this352 local integer this105 if (LinkedList_firstFree_169 == 0) { if (LinkedList_maxIndex_199 < 32768) { LinkedList_maxIndex_199 = (LinkedList_maxIndex_199 + 1); this_105 = LinkedList_maxIndex_199; LinkedList_typeId_109[this_105] = 6; } else { error442("Out of memory: Could not create LinkedList."); this_105 = 0; }; } else { LinkedList_firstFree_169 = (LinkedList_firstFree_169 - 1); this_105 = LinkedList_nextFree_691[LinkedList_firstFree_169]; LinkedList_typeId_109[this_105] = 6; }; this_352 = this_105; return this_352; } function error442(string msg684) { $debugPrint159((msg_684 + (" " + #getStackTrace()))); } function dispatch_CallbackUnary_destroyCallbackUnary965(integer this122) { local integer this172 local integer obj145 if (CallbackUnary_typeId_410[this_122] == 0) { if (this_122 == 0) { error442("Nullpointer exception when calling CallbackUnary.CallbackUnary"); } else { error442("Called CallbackUnary.CallbackUnary on invalid object."); }; } else { }; this_172 = this_122; obj_145 = this_172; if (CallbackUnary_typeId_410[obj_145] == 0) { error442("Double free: object of type CallbackUnary"); } else { CallbackUnary_nextFree_528[CallbackUnary_firstFree_212] = obj_145; CallbackUnary_firstFree_212 = (CallbackUnary_firstFree_212 + 1); CallbackUnary_typeId_410[obj_145] = 0; }; } function dispatch_CallbackUnary_Bug_CallbackUnary_call477(integer this168, any t834) { if (CallbackUnary_typeId_410[this_168] == 0) { if (this_168 == 0) { error442("Nullpointer exception when calling CallbackUnary.call"); } else { error442("Called CallbackUnary.call on invalid object."); }; } else { }; if (CallbackUnary_typeId_410[this_168] <= 4) { testSuccess184(); } else { println165("called"); }; } function dispatch_MiddlewareUnary_Bug_MiddlewareUnary_call125(integer this936, any t120, integer cb284) { if (MiddlewareUnary_typeId_198[this_936] == 0) { if (this_936 == 0) { error442("Nullpointer exception when calling MiddlewareUnary.call"); } else { error442("Called MiddlewareUnary.call on invalid object."); }; } else { }; if (MiddlewareUnary_typeId_198[this_936] <= 8) { call_Bug310(this_936, t_120, cb_284); } else { call_Bug_3156(this_936, t_120, cb_284); }; } function LinkedList_add_1193(integer this166, integer cbs_0124) { local integer this189 local any t389 local integer this148 local any t537 local integer cb159 local integer clVar167 local integer this276 this_189 = this_166; cb_159 = cbs_0_124; if (MiddlewareUnary_firstFree_118 == 0) { if (MiddlewareUnary_maxIndex_201 < 32768) { MiddlewareUnary_maxIndex_201 = (MiddlewareUnary_maxIndex_201 + 1); this_276 = MiddlewareUnary_maxIndex_201; MiddlewareUnary_typeId_198[this_276] = 9; } else { error442("Out of memory: Could not create MiddlewareUnary_Bug."); this_276 = 0; }; } else { MiddlewareUnary_firstFree_118 = (MiddlewareUnary_firstFree_118 - 1); this_276 = MiddlewareUnary_nextFree_203[MiddlewareUnary_firstFree_118]; MiddlewareUnary_typeId_198[this_276] = 9; }; clVar_167 = this_276; cb_398[clVar_167] = cb_159; t_389 = clVar_167; if (LinkedList_typeId_109[this_189] == 0) { if (this_189 == 0) { error442("Nullpointer exception when calling LinkedList.add"); } else { error442("Called LinkedList.add on invalid object."); }; } else { }; this_148 = this_189; t_537 = t_389; LinkedList_elem_208[this_148] = t_537; }