array A_nextFree850 integer A_firstFree209 integer A_maxIndex384 array A_typeId129 integer wurst_stack_depth187 array wurst_stack186 integer A_firstFree209 = 0 integer A_maxIndex384 = 0 integer wurst_stack_depth187 = 0 function initGlobals201() { } function main905() { initGlobals201(); wurst_stack_186[wurst_stack_depth_187] = "when calling init_test in cast_class, line 1"; wurst_stack_depth_187 = (wurst_stack_depth_187 + 1); if (A_typeId_129[new_B150("when calling new_B in cast_class, line 6")] == 2) { testSuccess530(); } else { }; wurst_stack_depth_187 = (wurst_stack_depth_187 - 1); } function config505() { } IS_NATIVE function testSuccess530() { } function new_B150(string __wurst_stackPos116) returns integer { local integer this685 wurst_stack_186[wurst_stack_depth_187] = __wurst_stackPos_116; wurst_stack_depth_187 = (wurst_stack_depth_187 + 1); wurst_stack_186[wurst_stack_depth_187] = "when calling alloc_B in cast_class, line 4"; wurst_stack_depth_187 = (wurst_stack_depth_187 + 1); if (A_firstFree_209 == 0) { if (A_maxIndex_384 < 32768) { A_maxIndex_384 = (A_maxIndex_384 + 1); this_685 = A_maxIndex_384; A_typeId_129[this_685] = 2; } else { error123("Out of memory: Could not create B.", "when calling error in cast_class, line 4"); this_685 = 0; }; } else { A_firstFree_209 = (A_firstFree_209 - 1); this_685 = A_nextFree_850[A_firstFree_209]; A_typeId_129[this_685] = 2; }; wurst_stack_depth_187 = ((wurst_stack_depth_187 - 1) - 1); return this_685; } function error123(string msg159, string __wurst_stackPos155) { local integer stacktraceIndex255 local integer stacktraceLimit189 wurst_stack_186[wurst_stack_depth_187] = __wurst_stackPos_155; wurst_stack_depth_187 = (wurst_stack_depth_187 + 1); __wurst_stackPos_155 = ""; stacktraceIndex_255 = wurst_stack_depth_187; stacktraceLimit_189 = 0; loop { stacktraceIndex_255 = (stacktraceIndex_255 - 1); stacktraceLimit_189 = (stacktraceLimit_189 + 1); exitwhen ((stacktraceLimit_189 > 20) or (stacktraceIndex_255 < 0)); __wurst_stackPos_155 = (__wurst_stackPos_155 + (" " + wurst_stack_186[stacktraceIndex_255])); }; $debugPrint103((msg_159 + (" " + __wurst_stackPos_155))); wurst_stack_depth_187 = (wurst_stack_depth_187 - 1); }