array A_nextFree208 integer A_firstFree652 integer A_maxIndex171 array A_typeId795 integer wurst_stack_depth714 array wurst_stack154 integer A_firstFree652 = 0 integer A_maxIndex171 = 0 integer wurst_stack_depth714 = 0 function initGlobals156() { } function main428() { initGlobals156(); wurst_stack_154[wurst_stack_depth_714] = "when calling init_test in override_valid2, line 1"; wurst_stack_depth_714 = (wurst_stack_depth_714 + 1); if (dispatch_A_test_A_foo527(new_A153("when calling new_A in override_valid2, line 10"), "when calling foo in override_valid2, line 11") == 7) { testSuccess147(); } else { }; wurst_stack_depth_714 = (wurst_stack_depth_714 - 1); } function config152() { } IS_NATIVE function testSuccess147() { } function new_A153(string __wurst_stackPos197) returns integer { local integer this967 wurst_stack_154[wurst_stack_depth_714] = __wurst_stackPos_197; wurst_stack_depth_714 = (wurst_stack_depth_714 + 1); wurst_stack_154[wurst_stack_depth_714] = "when calling alloc_A in override_valid2, line 3"; wurst_stack_depth_714 = (wurst_stack_depth_714 + 1); if (A_firstFree_652 == 0) { if (A_maxIndex_171 < 32768) { A_maxIndex_171 = (A_maxIndex_171 + 1); this_967 = A_maxIndex_171; A_typeId_795[this_967] = 1; } else { error739("Out of memory: Could not create A.", "when calling error in override_valid2, line 3"); this_967 = 0; }; } else { A_firstFree_652 = (A_firstFree_652 - 1); this_967 = A_nextFree_208[A_firstFree_652]; A_typeId_795[this_967] = 1; }; wurst_stack_depth_714 = ((wurst_stack_depth_714 - 1) - 1); return this_967; } function error739(string msg101, string __wurst_stackPos841) { local integer stacktraceIndex905 local integer stacktraceLimit194 wurst_stack_154[wurst_stack_depth_714] = __wurst_stackPos_841; wurst_stack_depth_714 = (wurst_stack_depth_714 + 1); __wurst_stackPos_841 = ""; stacktraceIndex_905 = wurst_stack_depth_714; stacktraceLimit_194 = 0; loop { stacktraceIndex_905 = (stacktraceIndex_905 - 1); stacktraceLimit_194 = (stacktraceLimit_194 + 1); exitwhen ((stacktraceLimit_194 > 20) or (stacktraceIndex_905 < 0)); __wurst_stackPos_841 = (__wurst_stackPos_841 + (" " + wurst_stack_154[stacktraceIndex_905])); }; $debugPrint541((msg_101 + (" " + __wurst_stackPos_841))); wurst_stack_depth_714 = (wurst_stack_depth_714 - 1); } function dispatch_A_test_A_foo527(integer this131, string __wurst_stackPos879) returns integer { wurst_stack_154[wurst_stack_depth_714] = __wurst_stackPos_879; wurst_stack_depth_714 = (wurst_stack_depth_714 + 1); if (A_typeId_795[this_131] == 0) { if (this_131 == 0) { error739("Nullpointer exception when calling A.foo", "when calling error in override_valid2, line 4"); } else { error739("Called A.foo on invalid object.", "when calling error in override_valid2, line 4"); }; } else { }; if (A_typeId_795[this_131] <= 1) { this_131 = 7; } else { this_131 = 8; }; wurst_stack_depth_714 = (wurst_stack_depth_714 - 1); return this_131; }