array C_nextFree193 integer C_firstFree135 integer C_maxIndex184 array C_typeId113 integer wurst_stack_depth151 array wurst_stack124 integer C_firstFree135 = 0 integer C_maxIndex184 = 0 integer wurst_stack_depth151 = 0 function initGlobals185() { } function main128() { initGlobals185(); init_test125("when calling init_test in extends_simple, line 1"); } function config249() { } function init_test125(string __wurst_stackPos174) { local integer this183 wurst_stack_124[wurst_stack_depth_151] = __wurst_stackPos_174; wurst_stack_depth_151 = (wurst_stack_depth_151 + 1); this_183 = new_D147("when calling new_D in extends_simple, line 8"); wurst_stack_124[wurst_stack_depth_151] = "when calling foo in extends_simple, line 8"; wurst_stack_depth_151 = (wurst_stack_depth_151 + 1); if (C_typeId_113[this_183] == 0) { if (this_183 == 0) { error203("Nullpointer exception when calling C.foo", "when calling error in extends_simple, line 4"); } else { error203("Called C.foo on invalid object.", "when calling error in extends_simple, line 4"); }; } else { }; wurst_stack_depth_151 = (wurst_stack_depth_151 - 1); testSuccess897(); wurst_stack_depth_151 = (wurst_stack_depth_151 - 1); } IS_NATIVE function testSuccess897() { } function new_D147(string __wurst_stackPos132) returns integer { local integer this201 wurst_stack_124[wurst_stack_depth_151] = __wurst_stackPos_132; wurst_stack_depth_151 = (wurst_stack_depth_151 + 1); wurst_stack_124[wurst_stack_depth_151] = "when calling alloc_D in extends_simple, line 6"; wurst_stack_depth_151 = (wurst_stack_depth_151 + 1); if (C_firstFree_135 == 0) { if (C_maxIndex_184 < 32768) { C_maxIndex_184 = (C_maxIndex_184 + 1); this_201 = C_maxIndex_184; C_typeId_113[this_201] = 2; } else { error203("Out of memory: Could not create D.", "when calling error in extends_simple, line 6"); this_201 = 0; }; } else { C_firstFree_135 = (C_firstFree_135 - 1); this_201 = C_nextFree_193[C_firstFree_135]; C_typeId_113[this_201] = 2; }; wurst_stack_depth_151 = ((wurst_stack_depth_151 - 1) - 1); return this_201; } function error203(string msg310, string __wurst_stackPos133) { local integer stacktraceIndex158 local integer stacktraceLimit194 wurst_stack_124[wurst_stack_depth_151] = __wurst_stackPos_133; wurst_stack_depth_151 = (wurst_stack_depth_151 + 1); __wurst_stackPos_133 = ""; stacktraceIndex_158 = wurst_stack_depth_151; stacktraceLimit_194 = 0; loop { stacktraceIndex_158 = (stacktraceIndex_158 - 1); stacktraceLimit_194 = (stacktraceLimit_194 + 1); exitwhen ((stacktraceLimit_194 > 20) or (stacktraceIndex_158 < 0)); __wurst_stackPos_133 = (__wurst_stackPos_133 + (" " + wurst_stack_124[stacktraceIndex_158])); }; $debugPrint198((msg_310 + (" " + __wurst_stackPos_133))); wurst_stack_depth_151 = (wurst_stack_depth_151 - 1); }