array A_nextFree189 integer A_firstFree108 integer A_maxIndex383 array A_typeId128 integer wurst_stack_depth150 array wurst_stack195 integer A_firstFree108 = 0 integer A_maxIndex383 = 0 integer wurst_stack_depth150 = 0 function initGlobals107() { } function main107() { initGlobals107(); wurst_stack_195[wurst_stack_depth_150] = "when calling init_test in override_valid, line 1"; wurst_stack_depth_150 = (wurst_stack_depth_150 + 1); if (dispatch_A_test_A_foo332(new_B151("when calling new_B in override_valid, line 10"), "when calling foo in override_valid, line 11") == 8) { testSuccess235(); } else { }; wurst_stack_depth_150 = (wurst_stack_depth_150 - 1); } function config130() { } IS_NATIVE function testSuccess235() { } function new_B151(string __wurst_stackPos165) returns integer { local integer this130 wurst_stack_195[wurst_stack_depth_150] = __wurst_stackPos_165; wurst_stack_depth_150 = (wurst_stack_depth_150 + 1); wurst_stack_195[wurst_stack_depth_150] = "when calling alloc_B in override_valid, line 6"; wurst_stack_depth_150 = (wurst_stack_depth_150 + 1); if (A_firstFree_108 == 0) { if (A_maxIndex_383 < 32768) { A_maxIndex_383 = (A_maxIndex_383 + 1); this_130 = A_maxIndex_383; A_typeId_128[this_130] = 2; } else { error701("Out of memory: Could not create B.", "when calling error in override_valid, line 6"); this_130 = 0; }; } else { A_firstFree_108 = (A_firstFree_108 - 1); this_130 = A_nextFree_189[A_firstFree_108]; A_typeId_128[this_130] = 2; }; wurst_stack_depth_150 = ((wurst_stack_depth_150 - 1) - 1); return this_130; } function error701(string msg135, string __wurst_stackPos687) { local integer stacktraceIndex207 local integer stacktraceLimit153 wurst_stack_195[wurst_stack_depth_150] = __wurst_stackPos_687; wurst_stack_depth_150 = (wurst_stack_depth_150 + 1); __wurst_stackPos_687 = ""; stacktraceIndex_207 = wurst_stack_depth_150; stacktraceLimit_153 = 0; loop { stacktraceIndex_207 = (stacktraceIndex_207 - 1); stacktraceLimit_153 = (stacktraceLimit_153 + 1); exitwhen ((stacktraceLimit_153 > 20) or (stacktraceIndex_207 < 0)); __wurst_stackPos_687 = (__wurst_stackPos_687 + (" " + wurst_stack_195[stacktraceIndex_207])); }; $debugPrint112((msg_135 + (" " + __wurst_stackPos_687))); wurst_stack_depth_150 = (wurst_stack_depth_150 - 1); } function dispatch_A_test_A_foo332(integer this328, string __wurst_stackPos126) returns integer { wurst_stack_195[wurst_stack_depth_150] = __wurst_stackPos_126; wurst_stack_depth_150 = (wurst_stack_depth_150 + 1); if (A_typeId_128[this_328] == 0) { if (this_328 == 0) { error701("Nullpointer exception when calling A.foo", "when calling error in override_valid, line 4"); } else { error701("Called A.foo on invalid object.", "when calling error in override_valid, line 4"); }; } else { }; if (A_typeId_128[this_328] <= 1) { this_328 = 7; } else { this_328 = 8; }; wurst_stack_depth_150 = (wurst_stack_depth_150 - 1); return this_328; }