array A_nextFree160 integer A_firstFree200 integer A_maxIndex175 array A_typeId963 integer wurst_stack_depth149 array wurst_stack211 integer A_firstFree200 = 0 integer A_maxIndex175 = 0 integer wurst_stack_depth149 = 0 function initGlobals107() { } function main101() { initGlobals107(); init_test691("when calling init_test in hierarchy, line 1"); } function config168() { } function init_test691(string __wurst_stackPos931) { local integer b158 wurst_stack_211[wurst_stack_depth_149] = __wurst_stackPos_931; wurst_stack_depth_149 = (wurst_stack_depth_149 + 1); b_158 = new_C141("when calling new_C in hierarchy, line 13"); wurst_stack_211[wurst_stack_depth_149] = "when calling f1 in hierarchy, line 15"; wurst_stack_depth_149 = (wurst_stack_depth_149 + 1); if (A_typeId_963[b_158] == 0) { if (b_158 == 0) { error406("Nullpointer exception when calling A.f1", "when calling error in hierarchy, line 4"); } else { error406("Called A.f1 on invalid object.", "when calling error in hierarchy, line 4"); }; } else { }; wurst_stack_depth_149 = (wurst_stack_depth_149 - 1); testSuccess358(); wurst_stack_depth_149 = (wurst_stack_depth_149 - 1); } IS_NATIVE function testSuccess358() { } function new_C141(string __wurst_stackPos945) returns integer { local integer this231 wurst_stack_211[wurst_stack_depth_149] = __wurst_stackPos_945; wurst_stack_depth_149 = (wurst_stack_depth_149 + 1); wurst_stack_211[wurst_stack_depth_149] = "when calling alloc_C in hierarchy, line 7"; wurst_stack_depth_149 = (wurst_stack_depth_149 + 1); if (A_firstFree_200 == 0) { if (A_maxIndex_175 < 32768) { A_maxIndex_175 = (A_maxIndex_175 + 1); this_231 = A_maxIndex_175; A_typeId_963[this_231] = 3; } else { error406("Out of memory: Could not create C.", "when calling error in hierarchy, line 7"); this_231 = 0; }; } else { A_firstFree_200 = (A_firstFree_200 - 1); this_231 = A_nextFree_160[A_firstFree_200]; A_typeId_963[this_231] = 3; }; wurst_stack_depth_149 = ((wurst_stack_depth_149 - 1) - 1); return this_231; } function error406(string msg715, string __wurst_stackPos661) { local integer stacktraceIndex578 local integer stacktraceLimit808 wurst_stack_211[wurst_stack_depth_149] = __wurst_stackPos_661; wurst_stack_depth_149 = (wurst_stack_depth_149 + 1); __wurst_stackPos_661 = ""; stacktraceIndex_578 = wurst_stack_depth_149; stacktraceLimit_808 = 0; loop { stacktraceIndex_578 = (stacktraceIndex_578 - 1); stacktraceLimit_808 = (stacktraceLimit_808 + 1); exitwhen ((stacktraceLimit_808 > 20) or (stacktraceIndex_578 < 0)); __wurst_stackPos_661 = (__wurst_stackPos_661 + (" " + wurst_stack_211[stacktraceIndex_578])); }; $debugPrint146((msg_715 + (" " + __wurst_stackPos_661))); wurst_stack_depth_149 = (wurst_stack_depth_149 - 1); }