array A_nextFree186 integer A_firstFree166 integer A_maxIndex165 array A_typeId502 integer wurst_stack_depth890 array wurst_stack147 integer A_firstFree166 = 0 integer A_maxIndex165 = 0 integer wurst_stack_depth890 = 0 function initGlobals108() { } function main196() { local integer instanceOfTemp628 initGlobals108(); wurst_stack_147[wurst_stack_depth_890] = "when calling init_test in cast_class2, line 1"; wurst_stack_depth_890 = (wurst_stack_depth_890 + 1); instanceOfTemp_628 = A_typeId_502[new_C560("when calling new_C in cast_class2, line 7")]; if ((instanceOfTemp_628 >= 2) and (instanceOfTemp_628 <= 3)) { testSuccess162(); } else { }; wurst_stack_depth_890 = (wurst_stack_depth_890 - 1); } function config600() { } IS_NATIVE function testSuccess162() { } function new_C560(string __wurst_stackPos860) returns integer { local integer this114 wurst_stack_147[wurst_stack_depth_890] = __wurst_stackPos_860; wurst_stack_depth_890 = (wurst_stack_depth_890 + 1); wurst_stack_147[wurst_stack_depth_890] = "when calling alloc_C in cast_class2, line 5"; wurst_stack_depth_890 = (wurst_stack_depth_890 + 1); if (A_firstFree_166 == 0) { if (A_maxIndex_165 < 32768) { A_maxIndex_165 = (A_maxIndex_165 + 1); this_114 = A_maxIndex_165; A_typeId_502[this_114] = 3; } else { error913("Out of memory: Could not create C.", "when calling error in cast_class2, line 5"); this_114 = 0; }; } else { A_firstFree_166 = (A_firstFree_166 - 1); this_114 = A_nextFree_186[A_firstFree_166]; A_typeId_502[this_114] = 3; }; wurst_stack_depth_890 = ((wurst_stack_depth_890 - 1) - 1); return this_114; } function error913(string msg127, string __wurst_stackPos108) { local integer stacktraceIndex195 local integer stacktraceLimit573 wurst_stack_147[wurst_stack_depth_890] = __wurst_stackPos_108; wurst_stack_depth_890 = (wurst_stack_depth_890 + 1); __wurst_stackPos_108 = ""; stacktraceIndex_195 = wurst_stack_depth_890; stacktraceLimit_573 = 0; loop { stacktraceIndex_195 = (stacktraceIndex_195 - 1); stacktraceLimit_573 = (stacktraceLimit_573 + 1); exitwhen ((stacktraceLimit_573 > 20) or (stacktraceIndex_195 < 0)); __wurst_stackPos_108 = (__wurst_stackPos_108 + (" " + wurst_stack_147[stacktraceIndex_195])); }; $debugPrint480((msg_127 + (" " + __wurst_stackPos_108))); wurst_stack_depth_890 = (wurst_stack_depth_890 - 1); }