array C_nextFree182 integer C_firstFree503 integer C_maxIndex178 array C_typeId117 integer wurst_stack_depth195 array wurst_stack133 integer C_firstFree503 = 0 integer C_maxIndex178 = 0 integer wurst_stack_depth195 = 0 function initGlobals210() { } function main135() { initGlobals210(); init_test614("when calling init_test in recyling, line 1"); } function config103() { } function init_test614(string __wurst_stackPos130) { local array cs107 local integer i831 wurst_stack_133[wurst_stack_depth_195] = __wurst_stackPos_130; wurst_stack_depth_195 = (wurst_stack_depth_195 + 1); i_831 = 0; loop { exitwhen (i_831 > 6000); cs_107[i_831] = new_C709("when calling new_C in recyling, line 11"); i_831 = (i_831 + 1); }; i_831 = 0; loop { exitwhen (i_831 > 6000); dispatch_C_destroyC707(cs_107[i_831], "when calling dispatch_C_destroyC in recyling, line 13"); i_831 = (i_831 + 1); }; i_831 = 0; loop { exitwhen (i_831 > 6000); cs_107[i_831] = new_C709("when calling new_C in recyling, line 15"); i_831 = (i_831 + 1); }; if ((cs_107[6000] castTo integer) <= 6001) { testSuccess147(); } else { }; wurst_stack_depth_195 = (wurst_stack_depth_195 - 1); } IS_NATIVE function testSuccess147() { } function new_C709(string __wurst_stackPos633) returns integer { local integer this639 wurst_stack_133[wurst_stack_depth_195] = __wurst_stackPos_633; wurst_stack_depth_195 = (wurst_stack_depth_195 + 1); wurst_stack_133[wurst_stack_depth_195] = "when calling alloc_C in recyling, line 5"; wurst_stack_depth_195 = (wurst_stack_depth_195 + 1); if (C_firstFree_503 == 0) { if (C_maxIndex_178 < 32768) { C_maxIndex_178 = (C_maxIndex_178 + 1); this_639 = C_maxIndex_178; C_typeId_117[this_639] = 1; } else { error711("Out of memory: Could not create C.", "when calling error in recyling, line 5"); this_639 = 0; }; } else { C_firstFree_503 = (C_firstFree_503 - 1); this_639 = C_nextFree_182[C_firstFree_503]; C_typeId_117[this_639] = 1; }; wurst_stack_depth_195 = ((wurst_stack_depth_195 - 1) - 1); return this_639; } function error711(string msg196, string __wurst_stackPos293) { local integer stacktraceIndex120 local integer stacktraceLimit643 wurst_stack_133[wurst_stack_depth_195] = __wurst_stackPos_293; wurst_stack_depth_195 = (wurst_stack_depth_195 + 1); __wurst_stackPos_293 = ""; stacktraceIndex_120 = wurst_stack_depth_195; stacktraceLimit_643 = 0; loop { stacktraceIndex_120 = (stacktraceIndex_120 - 1); stacktraceLimit_643 = (stacktraceLimit_643 + 1); exitwhen ((stacktraceLimit_643 > 20) or (stacktraceIndex_120 < 0)); __wurst_stackPos_293 = (__wurst_stackPos_293 + (" " + wurst_stack_133[stacktraceIndex_120])); }; $debugPrint744((msg_196 + (" " + __wurst_stackPos_293))); wurst_stack_depth_195 = (wurst_stack_depth_195 - 1); } function dispatch_C_destroyC707(integer this401, string __wurst_stackPos259) { wurst_stack_133[wurst_stack_depth_195] = __wurst_stackPos_259; wurst_stack_depth_195 = (wurst_stack_depth_195 + 1); if (C_typeId_117[this_401] == 0) { if (this_401 == 0) { error711("Nullpointer exception when calling C.C", "when calling error in recyling, line 5"); } else { error711("Called C.C on invalid object.", "when calling error in recyling, line 5"); }; } else { }; wurst_stack_133[wurst_stack_depth_195] = "when calling destroyC in recyling, line 5"; wurst_stack_depth_195 = (wurst_stack_depth_195 + 1); wurst_stack_133[wurst_stack_depth_195] = "when calling dealloc_C in recyling, line 5"; wurst_stack_depth_195 = (wurst_stack_depth_195 + 1); if (C_typeId_117[this_401] == 0) { error711("Double free: object of type C", "when calling error in recyling, line 5"); } else { C_nextFree_182[C_firstFree_503] = this_401; C_firstFree_503 = (C_firstFree_503 + 1); C_typeId_117[this_401] = 0; }; wurst_stack_depth_195 = (((wurst_stack_depth_195 - 1) - 1) - 1); }