array C_nextFree179 integer C_firstFree945 integer C_maxIndex997 array C_typeId987 integer wurst_stack_depth696 array wurst_stack118 integer C_firstFree945 = 0 integer C_maxIndex997 = 0 integer wurst_stack_depth696 = 0 function initGlobals615() { } function main214() { initGlobals615(); wurst_stack_118[wurst_stack_depth_696] = "when calling init_test in extends_override3, line 1"; wurst_stack_depth_696 = (wurst_stack_depth_696 + 1); if (dispatch_C_test_C_foo102(new_E949("when calling new_E in extends_override3, line 11"), "when calling foo in extends_override3, line 12") == 4) { testSuccess710(); } else { }; wurst_stack_depth_696 = (wurst_stack_depth_696 - 1); } function config199() { } IS_NATIVE function testSuccess710() { } function new_E949(string __wurst_stackPos203) returns integer { local integer this122 wurst_stack_118[wurst_stack_depth_696] = __wurst_stackPos_203; wurst_stack_depth_696 = (wurst_stack_depth_696 + 1); wurst_stack_118[wurst_stack_depth_696] = "when calling alloc_E in extends_override3, line 7"; wurst_stack_depth_696 = (wurst_stack_depth_696 + 1); if (C_firstFree_945 == 0) { if (C_maxIndex_997 < 32768) { C_maxIndex_997 = (C_maxIndex_997 + 1); this_122 = C_maxIndex_997; C_typeId_987[this_122] = 3; } else { error315("Out of memory: Could not create E.", "when calling error in extends_override3, line 7"); this_122 = 0; }; } else { C_firstFree_945 = (C_firstFree_945 - 1); this_122 = C_nextFree_179[C_firstFree_945]; C_typeId_987[this_122] = 3; }; wurst_stack_depth_696 = ((wurst_stack_depth_696 - 1) - 1); return this_122; } function error315(string msg369, string __wurst_stackPos145) { local integer stacktraceIndex161 local integer stacktraceLimit101 wurst_stack_118[wurst_stack_depth_696] = __wurst_stackPos_145; wurst_stack_depth_696 = (wurst_stack_depth_696 + 1); __wurst_stackPos_145 = ""; stacktraceIndex_161 = wurst_stack_depth_696; stacktraceLimit_101 = 0; loop { stacktraceIndex_161 = (stacktraceIndex_161 - 1); stacktraceLimit_101 = (stacktraceLimit_101 + 1); exitwhen ((stacktraceLimit_101 > 20) or (stacktraceIndex_161 < 0)); __wurst_stackPos_145 = (__wurst_stackPos_145 + (" " + wurst_stack_118[stacktraceIndex_161])); }; $debugPrint996((msg_369 + (" " + __wurst_stackPos_145))); wurst_stack_depth_696 = (wurst_stack_depth_696 - 1); } function dispatch_C_test_C_foo102(integer this211, string __wurst_stackPos156) returns integer { wurst_stack_118[wurst_stack_depth_696] = __wurst_stackPos_156; wurst_stack_depth_696 = (wurst_stack_depth_696 + 1); if (C_typeId_987[this_211] == 0) { if (this_211 == 0) { error315("Nullpointer exception when calling C.foo", "when calling error in extends_override3, line 4"); } else { error315("Called C.foo on invalid object.", "when calling error in extends_override3, line 4"); }; } else { }; if (C_typeId_987[this_211] <= 2) { this_211 = 3; } else { this_211 = 4; }; wurst_stack_depth_696 = (wurst_stack_depth_696 - 1); return this_211; }