array C_nextFree508 integer C_firstFree929 integer C_maxIndex172 integer wurst_stack_depth154 array wurst_stack102 integer C_firstFree929 = 0 integer C_maxIndex172 = 0 integer wurst_stack_depth154 = 0 function initGlobals503() { } function main667() { local integer zeroInt174 initGlobals503(); wurst_stack_102[wurst_stack_depth_154] = "when calling init_Test in intCasting, line 1"; wurst_stack_depth_154 = (wurst_stack_depth_154 + 1); zeroInt_174 = (0 castTo integer); takesInt371((0 castTo integer)); takesInt371(zeroInt_174); takesInt371(((zeroInt_174 castTo integer) castTo integer)); testClass134("when calling testClass in intCasting, line 25"); wurst_stack_depth_154 = (wurst_stack_depth_154 - 1); } function config178() { } IS_NATIVE function takesInt371(integer i831) { } function testClass134(string __wurst_stackPos142) { local integer cInt165 local integer this534 wurst_stack_102[wurst_stack_depth_154] = __wurst_stackPos_142; wurst_stack_depth_154 = (wurst_stack_depth_154 + 1); wurst_stack_102[wurst_stack_depth_154] = "when calling new_C in intCasting, line 17"; wurst_stack_depth_154 = (wurst_stack_depth_154 + 1); wurst_stack_102[wurst_stack_depth_154] = "when calling alloc_C in intCasting, line 14"; wurst_stack_depth_154 = (wurst_stack_depth_154 + 1); if (C_firstFree_929 == 0) { if (C_maxIndex_172 < 32768) { C_maxIndex_172 = (C_maxIndex_172 + 1); this_534 = C_maxIndex_172; } else { error125("Out of memory: Could not create C.", "when calling error in intCasting, line 14"); this_534 = 0; }; } else { C_firstFree_929 = (C_firstFree_929 - 1); this_534 = C_nextFree_508[C_firstFree_929]; }; wurst_stack_depth_154 = ((wurst_stack_depth_154 - 1) - 1); cInt_165 = (this_534 castTo integer); takesC109(this_534); takesInt371(cInt_165); takesC109((cInt_165 castTo integer)); wurst_stack_depth_154 = (wurst_stack_depth_154 - 1); } IS_NATIVE function takesC109(integer c655) { } function error125(string msg214, string __wurst_stackPos153) { local integer stacktraceIndex199 local integer stacktraceLimit136 wurst_stack_102[wurst_stack_depth_154] = __wurst_stackPos_153; wurst_stack_depth_154 = (wurst_stack_depth_154 + 1); __wurst_stackPos_153 = ""; stacktraceIndex_199 = wurst_stack_depth_154; stacktraceLimit_136 = 0; loop { stacktraceIndex_199 = (stacktraceIndex_199 - 1); stacktraceLimit_136 = (stacktraceLimit_136 + 1); exitwhen ((stacktraceLimit_136 > 20) or (stacktraceIndex_199 < 0)); __wurst_stackPos_153 = (__wurst_stackPos_153 + (" " + wurst_stack_102[stacktraceIndex_199])); }; $debugPrint164((msg_214 + (" " + __wurst_stackPos_153))); wurst_stack_depth_154 = (wurst_stack_depth_154 - 1); }