array C_nextFree210 integer C_firstFree141 integer C_maxIndex181 array C_typeId517 integer wurst_stack_depth209 array wurst_stack468 integer C_firstFree141 = 0 integer C_maxIndex181 = 0 integer wurst_stack_depth209 = 0 function initGlobals865() { } function main712() { initGlobals865(); wurst_stack_468[wurst_stack_depth_209] = "when calling init_test in extends_override3, line 1"; wurst_stack_depth_209 = (wurst_stack_depth_209 + 1); if (dispatch_C_test_C_foo161(new_E104("when calling new_E in extends_override3, line 11"), "when calling foo in extends_override3, line 12") == 4) { testSuccess435(); } else { }; wurst_stack_depth_209 = (wurst_stack_depth_209 - 1); } function config140() { } IS_NATIVE function testSuccess435() { } function new_E104(string __wurst_stackPos195) returns integer { local integer this177 wurst_stack_468[wurst_stack_depth_209] = __wurst_stackPos_195; wurst_stack_depth_209 = (wurst_stack_depth_209 + 1); wurst_stack_468[wurst_stack_depth_209] = "when calling alloc_E in extends_override3, line 7"; wurst_stack_depth_209 = (wurst_stack_depth_209 + 1); if (C_firstFree_141 == 0) { if (C_maxIndex_181 < 32768) { C_maxIndex_181 = (C_maxIndex_181 + 1); this_177 = C_maxIndex_181; C_typeId_517[this_177] = 3; } else { error211("Out of memory: Could not create E.", "when calling error in extends_override3, line 7"); this_177 = 0; }; } else { C_firstFree_141 = (C_firstFree_141 - 1); this_177 = C_nextFree_210[C_firstFree_141]; C_typeId_517[this_177] = 3; }; wurst_stack_depth_209 = ((wurst_stack_depth_209 - 1) - 1); return this_177; } function error211(string msg227, string __wurst_stackPos163) { local integer stacktraceIndex207 local integer stacktraceLimit107 wurst_stack_468[wurst_stack_depth_209] = __wurst_stackPos_163; wurst_stack_depth_209 = (wurst_stack_depth_209 + 1); __wurst_stackPos_163 = ""; stacktraceIndex_207 = wurst_stack_depth_209; stacktraceLimit_107 = 0; loop { stacktraceIndex_207 = (stacktraceIndex_207 - 1); stacktraceLimit_107 = (stacktraceLimit_107 + 1); exitwhen ((stacktraceLimit_107 > 20) or (stacktraceIndex_207 < 0)); __wurst_stackPos_163 = (__wurst_stackPos_163 + (" " + wurst_stack_468[stacktraceIndex_207])); }; $debugPrint198((msg_227 + (" " + __wurst_stackPos_163))); wurst_stack_depth_209 = (wurst_stack_depth_209 - 1); } function dispatch_C_test_C_foo161(integer this516, string __wurst_stackPos157) returns integer { wurst_stack_468[wurst_stack_depth_209] = __wurst_stackPos_157; wurst_stack_depth_209 = (wurst_stack_depth_209 + 1); if (C_typeId_517[this_516] == 0) { if (this_516 == 0) { error211("Nullpointer exception when calling C.foo", "when calling error in extends_override3, line 4"); } else { error211("Called C.foo on invalid object.", "when calling error in extends_override3, line 4"); }; } else { }; if (C_typeId_517[this_516] <= 2) { this_516 = 3; } else { this_516 = 4; }; wurst_stack_depth_209 = (wurst_stack_depth_209 - 1); return this_516; }