array A_nextFree200 integer A_firstFree211 integer A_maxIndex923 array A_typeId100 integer wurst_stack_depth112 array wurst_stack241 integer A_firstFree211 = 0 integer A_maxIndex923 = 0 integer wurst_stack_depth112 = 0 function initGlobals125() { } function main756() { initGlobals125(); wurst_stack_241[wurst_stack_depth_112] = "when calling init_test in cast_class, line 1"; wurst_stack_depth_112 = (wurst_stack_depth_112 + 1); if (A_typeId_100[new_B640("when calling new_B in cast_class, line 6")] == 2) { testSuccess173(); } else { }; wurst_stack_depth_112 = (wurst_stack_depth_112 - 1); } function config456() { } IS_NATIVE function testSuccess173() { } function new_B640(string __wurst_stackPos883) returns integer { local integer this140 wurst_stack_241[wurst_stack_depth_112] = __wurst_stackPos_883; wurst_stack_depth_112 = (wurst_stack_depth_112 + 1); wurst_stack_241[wurst_stack_depth_112] = "when calling alloc_B in cast_class, line 4"; wurst_stack_depth_112 = (wurst_stack_depth_112 + 1); if (A_firstFree_211 == 0) { if (A_maxIndex_923 < 32768) { A_maxIndex_923 = (A_maxIndex_923 + 1); this_140 = A_maxIndex_923; A_typeId_100[this_140] = 2; } else { error214("Out of memory: Could not create B.", "when calling error in cast_class, line 4"); this_140 = 0; }; } else { A_firstFree_211 = (A_firstFree_211 - 1); this_140 = A_nextFree_200[A_firstFree_211]; A_typeId_100[this_140] = 2; }; wurst_stack_depth_112 = ((wurst_stack_depth_112 - 1) - 1); return this_140; } function error214(string msg754, string __wurst_stackPos784) { local integer stacktraceIndex227 local integer stacktraceLimit126 wurst_stack_241[wurst_stack_depth_112] = __wurst_stackPos_784; wurst_stack_depth_112 = (wurst_stack_depth_112 + 1); __wurst_stackPos_784 = ""; stacktraceIndex_227 = wurst_stack_depth_112; stacktraceLimit_126 = 0; loop { stacktraceIndex_227 = (stacktraceIndex_227 - 1); stacktraceLimit_126 = (stacktraceLimit_126 + 1); exitwhen ((stacktraceLimit_126 > 20) or (stacktraceIndex_227 < 0)); __wurst_stackPos_784 = (__wurst_stackPos_784 + (" " + wurst_stack_241[stacktraceIndex_227])); }; $debugPrint160((msg_754 + (" " + __wurst_stackPos_784))); wurst_stack_depth_112 = (wurst_stack_depth_112 - 1); }