array C_nextFree925 integer C_firstFree700 integer C_maxIndex237 array C_typeId156 integer wurst_stack_depth149 array wurst_stack923 integer C_firstFree700 = 0 integer C_maxIndex237 = 0 integer wurst_stack_depth149 = 0 function initGlobals789() { } function main506() { initGlobals789(); init_test102("when calling init_test in recyling, line 1"); } function config126() { } function init_test102(string __wurst_stackPos966) { local array cs156 local integer i136 wurst_stack_923[wurst_stack_depth_149] = __wurst_stackPos_966; wurst_stack_depth_149 = (wurst_stack_depth_149 + 1); i_136 = 0; loop { exitwhen (i_136 > 6000); cs_156[i_136] = new_C179("when calling new_C in recyling, line 11"); i_136 = (i_136 + 1); }; i_136 = 0; loop { exitwhen (i_136 > 6000); dispatch_C_destroyC170(cs_156[i_136], "when calling dispatch_C_destroyC in recyling, line 13"); i_136 = (i_136 + 1); }; i_136 = 0; loop { exitwhen (i_136 > 6000); cs_156[i_136] = new_C179("when calling new_C in recyling, line 15"); i_136 = (i_136 + 1); }; if ((cs_156[6000] castTo integer) <= 6001) { testSuccess566(); } else { }; wurst_stack_depth_149 = (wurst_stack_depth_149 - 1); } IS_NATIVE function testSuccess566() { } function new_C179(string __wurst_stackPos265) returns integer { local integer this149 wurst_stack_923[wurst_stack_depth_149] = __wurst_stackPos_265; wurst_stack_depth_149 = (wurst_stack_depth_149 + 1); wurst_stack_923[wurst_stack_depth_149] = "when calling alloc_C in recyling, line 5"; wurst_stack_depth_149 = (wurst_stack_depth_149 + 1); if (C_firstFree_700 == 0) { if (C_maxIndex_237 < 32768) { C_maxIndex_237 = (C_maxIndex_237 + 1); this_149 = C_maxIndex_237; C_typeId_156[this_149] = 1; } else { error892("Out of memory: Could not create C.", "when calling error in recyling, line 5"); this_149 = 0; }; } else { C_firstFree_700 = (C_firstFree_700 - 1); this_149 = C_nextFree_925[C_firstFree_700]; C_typeId_156[this_149] = 1; }; wurst_stack_depth_149 = ((wurst_stack_depth_149 - 1) - 1); return this_149; } function error892(string msg749, string __wurst_stackPos198) { local integer stacktraceIndex109 local integer stacktraceLimit130 wurst_stack_923[wurst_stack_depth_149] = __wurst_stackPos_198; wurst_stack_depth_149 = (wurst_stack_depth_149 + 1); __wurst_stackPos_198 = ""; stacktraceIndex_109 = wurst_stack_depth_149; stacktraceLimit_130 = 0; loop { stacktraceIndex_109 = (stacktraceIndex_109 - 1); stacktraceLimit_130 = (stacktraceLimit_130 + 1); exitwhen ((stacktraceLimit_130 > 20) or (stacktraceIndex_109 < 0)); __wurst_stackPos_198 = (__wurst_stackPos_198 + (" " + wurst_stack_923[stacktraceIndex_109])); }; $debugPrint142((msg_749 + (" " + __wurst_stackPos_198))); wurst_stack_depth_149 = (wurst_stack_depth_149 - 1); } function dispatch_C_destroyC170(integer this126, string __wurst_stackPos223) { wurst_stack_923[wurst_stack_depth_149] = __wurst_stackPos_223; wurst_stack_depth_149 = (wurst_stack_depth_149 + 1); if (C_typeId_156[this_126] == 0) { if (this_126 == 0) { error892("Nullpointer exception when calling C.C", "when calling error in recyling, line 5"); } else { error892("Called C.C on invalid object.", "when calling error in recyling, line 5"); }; } else { }; wurst_stack_923[wurst_stack_depth_149] = "when calling destroyC in recyling, line 5"; wurst_stack_depth_149 = (wurst_stack_depth_149 + 1); wurst_stack_923[wurst_stack_depth_149] = "when calling dealloc_C in recyling, line 5"; wurst_stack_depth_149 = (wurst_stack_depth_149 + 1); if (C_typeId_156[this_126] == 0) { error892("Double free: object of type C", "when calling error in recyling, line 5"); } else { C_nextFree_925[C_firstFree_700] = this_126; C_firstFree_700 = (C_firstFree_700 + 1); C_typeId_156[this_126] = 0; }; wurst_stack_depth_149 = (((wurst_stack_depth_149 - 1) - 1) - 1); }