array C_nextFree104 integer C_firstFree584 integer C_maxIndex205 array C_typeId127 array C_i150 integer wurst_stack_depth140 array wurst_stack183 integer C_firstFree584 = 0 integer C_maxIndex205 = 0 integer wurst_stack_depth140 = 0 function initGlobals165() { } function main784() { initGlobals165(); wurst_stack_183[wurst_stack_depth_140] = "when calling init_test in ondestroy, line 1"; wurst_stack_depth_140 = (wurst_stack_depth_140 + 1); dispatch_C_destroyC191(new_C713("when calling new_C in ondestroy, line 9"), "when calling dispatch_C_destroyC in ondestroy, line 9"); wurst_stack_depth_140 = (wurst_stack_depth_140 - 1); } function config114() { } IS_NATIVE function testSuccess798() { } function new_C713(string __wurst_stackPos106) returns integer { local integer this723 wurst_stack_183[wurst_stack_depth_140] = __wurst_stackPos_106; wurst_stack_depth_140 = (wurst_stack_depth_140 + 1); wurst_stack_183[wurst_stack_depth_140] = "when calling alloc_C in ondestroy, line 3"; wurst_stack_depth_140 = (wurst_stack_depth_140 + 1); if (C_firstFree_584 == 0) { if (C_maxIndex_205 < 32768) { C_maxIndex_205 = (C_maxIndex_205 + 1); this_723 = C_maxIndex_205; C_typeId_127[this_723] = 1; } else { error189("Out of memory: Could not create C.", "when calling error in ondestroy, line 3"); this_723 = 0; }; } else { C_firstFree_584 = (C_firstFree_584 - 1); this_723 = C_nextFree_104[C_firstFree_584]; C_typeId_127[this_723] = 1; }; wurst_stack_depth_140 = (wurst_stack_depth_140 - 1); C_i_150[this_723] = 3; wurst_stack_depth_140 = (wurst_stack_depth_140 - 1); return this_723; } function error189(string msg183, string __wurst_stackPos996) { local integer stacktraceIndex158 local integer stacktraceLimit171 wurst_stack_183[wurst_stack_depth_140] = __wurst_stackPos_996; wurst_stack_depth_140 = (wurst_stack_depth_140 + 1); __wurst_stackPos_996 = ""; stacktraceIndex_158 = wurst_stack_depth_140; stacktraceLimit_171 = 0; loop { stacktraceIndex_158 = (stacktraceIndex_158 - 1); stacktraceLimit_171 = (stacktraceLimit_171 + 1); exitwhen ((stacktraceLimit_171 > 20) or (stacktraceIndex_158 < 0)); __wurst_stackPos_996 = (__wurst_stackPos_996 + (" " + wurst_stack_183[stacktraceIndex_158])); }; $debugPrint117((msg_183 + (" " + __wurst_stackPos_996))); wurst_stack_depth_140 = (wurst_stack_depth_140 - 1); } function dispatch_C_destroyC191(integer this191, string __wurst_stackPos126) { wurst_stack_183[wurst_stack_depth_140] = __wurst_stackPos_126; wurst_stack_depth_140 = (wurst_stack_depth_140 + 1); if (C_typeId_127[this_191] == 0) { if (this_191 == 0) { error189("Nullpointer exception when calling C.C", "when calling error in ondestroy, line 3"); } else { error189("Called C.C on invalid object.", "when calling error in ondestroy, line 3"); }; } else { }; wurst_stack_183[wurst_stack_depth_140] = "when calling destroyC in ondestroy, line 3"; wurst_stack_depth_140 = (wurst_stack_depth_140 + 1); C_i_150[this_191] = (C_i_150[this_191] + 1); testSuccess798(); wurst_stack_183[wurst_stack_depth_140] = "when calling dealloc_C in ondestroy, line 5"; wurst_stack_depth_140 = (wurst_stack_depth_140 + 1); if (C_typeId_127[this_191] == 0) { error189("Double free: object of type C", "when calling error in ondestroy, line 3"); } else { C_nextFree_104[C_firstFree_584] = this_191; C_firstFree_584 = (C_firstFree_584 + 1); C_typeId_127[this_191] = 0; }; wurst_stack_depth_140 = (((wurst_stack_depth_140 - 1) - 1) - 1); }