array C_nextFree342 integer C_firstFree166 integer C_maxIndex191 integer wurst_stack_depth110 array wurst_stack215 integer C_firstFree166 = 0 integer C_maxIndex191 = 0 integer wurst_stack_depth110 = 0 function initGlobals101() { } function main925() { local integer zeroInt206 initGlobals101(); wurst_stack_215[wurst_stack_depth_110] = "when calling init_Test in intCasting, line 1"; wurst_stack_depth_110 = (wurst_stack_depth_110 + 1); zeroInt_206 = (0 castTo integer); takesInt403((0 castTo integer)); takesInt403(zeroInt_206); takesInt403(((zeroInt_206 castTo integer) castTo integer)); testClass151("when calling testClass in intCasting, line 25"); wurst_stack_depth_110 = (wurst_stack_depth_110 - 1); } function config510() { } IS_NATIVE function takesInt403(integer i187) { } function testClass151(string __wurst_stackPos127) { local integer cInt375 local integer this158 wurst_stack_215[wurst_stack_depth_110] = __wurst_stackPos_127; wurst_stack_depth_110 = (wurst_stack_depth_110 + 1); wurst_stack_215[wurst_stack_depth_110] = "when calling new_C in intCasting, line 17"; wurst_stack_depth_110 = (wurst_stack_depth_110 + 1); wurst_stack_215[wurst_stack_depth_110] = "when calling alloc_C in intCasting, line 14"; wurst_stack_depth_110 = (wurst_stack_depth_110 + 1); if (C_firstFree_166 == 0) { if (C_maxIndex_191 < 32768) { C_maxIndex_191 = (C_maxIndex_191 + 1); this_158 = C_maxIndex_191; } else { error117("Out of memory: Could not create C.", "when calling error in intCasting, line 14"); this_158 = 0; }; } else { C_firstFree_166 = (C_firstFree_166 - 1); this_158 = C_nextFree_342[C_firstFree_166]; }; wurst_stack_depth_110 = ((wurst_stack_depth_110 - 1) - 1); cInt_375 = (this_158 castTo integer); takesC662(this_158); takesInt403(cInt_375); takesC662((cInt_375 castTo integer)); wurst_stack_depth_110 = (wurst_stack_depth_110 - 1); } IS_NATIVE function takesC662(integer c333) { } function error117(string msg119, string __wurst_stackPos296) { local integer stacktraceIndex975 local integer stacktraceLimit133 wurst_stack_215[wurst_stack_depth_110] = __wurst_stackPos_296; wurst_stack_depth_110 = (wurst_stack_depth_110 + 1); __wurst_stackPos_296 = ""; stacktraceIndex_975 = wurst_stack_depth_110; stacktraceLimit_133 = 0; loop { stacktraceIndex_975 = (stacktraceIndex_975 - 1); stacktraceLimit_133 = (stacktraceLimit_133 + 1); exitwhen ((stacktraceLimit_133 > 20) or (stacktraceIndex_975 < 0)); __wurst_stackPos_296 = (__wurst_stackPos_296 + (" " + wurst_stack_215[stacktraceIndex_975])); }; $debugPrint391((msg_119 + (" " + __wurst_stackPos_296))); wurst_stack_depth_110 = (wurst_stack_depth_110 - 1); }