array A_nextFree142 integer A_firstFree155 integer A_maxIndex719 array A_typeId239 integer wurst_stack_depth545 array wurst_stack118 integer A_firstFree155 = 0 integer A_maxIndex719 = 0 integer wurst_stack_depth545 = 0 function initGlobals577() { } function main524() { initGlobals577(); wurst_stack_118[wurst_stack_depth_545] = "when calling init_test in override_valid_trans, line 1"; wurst_stack_depth_545 = (wurst_stack_depth_545 + 1); if (dispatch_A_test_A_foo125(new_C930("when calling new_C in override_valid_trans, line 11"), "when calling foo in override_valid_trans, line 12") == 8) { testSuccess752(); } else { }; wurst_stack_depth_545 = (wurst_stack_depth_545 - 1); } function config177() { } IS_NATIVE function testSuccess752() { } function new_C930(string __wurst_stackPos213) returns integer { local integer this146 wurst_stack_118[wurst_stack_depth_545] = __wurst_stackPos_213; wurst_stack_depth_545 = (wurst_stack_depth_545 + 1); wurst_stack_118[wurst_stack_depth_545] = "when calling alloc_C in override_valid_trans, line 9"; wurst_stack_depth_545 = (wurst_stack_depth_545 + 1); if (A_firstFree_155 == 0) { if (A_maxIndex_719 < 32768) { A_maxIndex_719 = (A_maxIndex_719 + 1); this_146 = A_maxIndex_719; A_typeId_239[this_146] = 3; } else { error144("Out of memory: Could not create C.", "when calling error in override_valid_trans, line 9"); this_146 = 0; }; } else { A_firstFree_155 = (A_firstFree_155 - 1); this_146 = A_nextFree_142[A_firstFree_155]; A_typeId_239[this_146] = 3; }; wurst_stack_depth_545 = ((wurst_stack_depth_545 - 1) - 1); return this_146; } function error144(string msg770, string __wurst_stackPos666) { local integer stacktraceIndex609 local integer stacktraceLimit133 wurst_stack_118[wurst_stack_depth_545] = __wurst_stackPos_666; wurst_stack_depth_545 = (wurst_stack_depth_545 + 1); __wurst_stackPos_666 = ""; stacktraceIndex_609 = wurst_stack_depth_545; stacktraceLimit_133 = 0; loop { stacktraceIndex_609 = (stacktraceIndex_609 - 1); stacktraceLimit_133 = (stacktraceLimit_133 + 1); exitwhen ((stacktraceLimit_133 > 20) or (stacktraceIndex_609 < 0)); __wurst_stackPos_666 = (__wurst_stackPos_666 + (" " + wurst_stack_118[stacktraceIndex_609])); }; $debugPrint448((msg_770 + (" " + __wurst_stackPos_666))); wurst_stack_depth_545 = (wurst_stack_depth_545 - 1); } function dispatch_A_test_A_foo125(integer this213, string __wurst_stackPos144) returns integer { wurst_stack_118[wurst_stack_depth_545] = __wurst_stackPos_144; wurst_stack_depth_545 = (wurst_stack_depth_545 + 1); if (A_typeId_239[this_213] == 0) { if (this_213 == 0) { error144("Nullpointer exception when calling A.foo", "when calling error in override_valid_trans, line 4"); } else { error144("Called A.foo on invalid object.", "when calling error in override_valid_trans, line 4"); }; } else { }; if (A_typeId_239[this_213] <= 1) { this_213 = 7; } else { this_213 = 8; }; wurst_stack_depth_545 = (wurst_stack_depth_545 - 1); return this_213; }