array A_nextFree109 integer A_firstFree859 integer A_maxIndex129 array A_typeId404 integer wurst_stack_depth122 array wurst_stack193 integer A_firstFree859 = 0 integer A_maxIndex129 = 0 integer wurst_stack_depth122 = 0 function initGlobals123() { } function main113() { initGlobals123(); init_test140("when calling init_test in hierarchy, line 1"); } function config210() { } function init_test140(string __wurst_stackPos616) { local integer b539 wurst_stack_193[wurst_stack_depth_122] = __wurst_stackPos_616; wurst_stack_depth_122 = (wurst_stack_depth_122 + 1); b_539 = new_C151("when calling new_C in hierarchy, line 13"); wurst_stack_193[wurst_stack_depth_122] = "when calling f1 in hierarchy, line 15"; wurst_stack_depth_122 = (wurst_stack_depth_122 + 1); if (A_typeId_404[b_539] == 0) { if (b_539 == 0) { error672("Nullpointer exception when calling A.f1", "when calling error in hierarchy, line 4"); } else { error672("Called A.f1 on invalid object.", "when calling error in hierarchy, line 4"); }; } else { }; wurst_stack_depth_122 = (wurst_stack_depth_122 - 1); testSuccess170(); wurst_stack_depth_122 = (wurst_stack_depth_122 - 1); } IS_NATIVE function testSuccess170() { } function new_C151(string __wurst_stackPos109) returns integer { local integer this789 wurst_stack_193[wurst_stack_depth_122] = __wurst_stackPos_109; wurst_stack_depth_122 = (wurst_stack_depth_122 + 1); wurst_stack_193[wurst_stack_depth_122] = "when calling alloc_C in hierarchy, line 7"; wurst_stack_depth_122 = (wurst_stack_depth_122 + 1); if (A_firstFree_859 == 0) { if (A_maxIndex_129 < 32768) { A_maxIndex_129 = (A_maxIndex_129 + 1); this_789 = A_maxIndex_129; A_typeId_404[this_789] = 3; } else { error672("Out of memory: Could not create C.", "when calling error in hierarchy, line 7"); this_789 = 0; }; } else { A_firstFree_859 = (A_firstFree_859 - 1); this_789 = A_nextFree_109[A_firstFree_859]; A_typeId_404[this_789] = 3; }; wurst_stack_depth_122 = ((wurst_stack_depth_122 - 1) - 1); return this_789; } function error672(string msg105, string __wurst_stackPos862) { local integer stacktraceIndex206 local integer stacktraceLimit201 wurst_stack_193[wurst_stack_depth_122] = __wurst_stackPos_862; wurst_stack_depth_122 = (wurst_stack_depth_122 + 1); __wurst_stackPos_862 = ""; stacktraceIndex_206 = wurst_stack_depth_122; stacktraceLimit_201 = 0; loop { stacktraceIndex_206 = (stacktraceIndex_206 - 1); stacktraceLimit_201 = (stacktraceLimit_201 + 1); exitwhen ((stacktraceLimit_201 > 20) or (stacktraceIndex_206 < 0)); __wurst_stackPos_862 = (__wurst_stackPos_862 + (" " + wurst_stack_193[stacktraceIndex_206])); }; $debugPrint451((msg_105 + (" " + __wurst_stackPos_862))); wurst_stack_depth_122 = (wurst_stack_depth_122 - 1); }