integer test_x158 array B_nextFree192 integer B_firstFree673 integer B_maxIndex383 array B_typeId117 array B_y146 integer wurst_stack_depth135 array wurst_stack154 integer test_x158 = 2 integer B_firstFree673 = 0 integer B_maxIndex383 = 0 integer wurst_stack_depth135 = 0 function initGlobals143() { } function main351() { initGlobals143(); init_test388("when calling init_test in superCall2, line 1"); } function config162() { } function init_test388(string __wurst_stackPos409) { local integer a156 wurst_stack_154[wurst_stack_depth_135] = __wurst_stackPos_409; wurst_stack_depth_135 = (wurst_stack_depth_135 + 1); test_x_158 = 2; a_156 = new_A136("when calling new_A in superCall2, line 13"); wurst_stack_154[wurst_stack_depth_135] = "when calling foo in superCall2, line 14"; wurst_stack_depth_135 = (wurst_stack_depth_135 + 1); if (B_typeId_117[a_156] == 0) { if (a_156 == 0) { error165("Nullpointer exception when calling A.foo", "when calling error in superCall2, line 9"); } else { error165("Called A.foo on invalid object.", "when calling error in superCall2, line 9"); }; } else { }; test_x_158 = ((test_x_158 + B_y_146[a_156]) * B_y_146[a_156]); wurst_stack_depth_135 = (wurst_stack_depth_135 - 1); if (test_x_158 == 8) { testSuccess443(); } else { }; wurst_stack_depth_135 = (wurst_stack_depth_135 - 1); } IS_NATIVE function testSuccess443() { } function new_A136(string __wurst_stackPos166) returns integer { local integer this581 wurst_stack_154[wurst_stack_depth_135] = __wurst_stackPos_166; wurst_stack_depth_135 = (wurst_stack_depth_135 + 1); wurst_stack_154[wurst_stack_depth_135] = "when calling alloc_A in superCall2, line 8"; wurst_stack_depth_135 = (wurst_stack_depth_135 + 1); if (B_firstFree_673 == 0) { if (B_maxIndex_383 < 32768) { B_maxIndex_383 = (B_maxIndex_383 + 1); this_581 = B_maxIndex_383; B_typeId_117[this_581] = 2; } else { error165("Out of memory: Could not create A.", "when calling error in superCall2, line 8"); this_581 = 0; }; } else { B_firstFree_673 = (B_firstFree_673 - 1); this_581 = B_nextFree_192[B_firstFree_673]; B_typeId_117[this_581] = 2; }; wurst_stack_depth_135 = (wurst_stack_depth_135 - 1); B_y_146[this_581] = 2; wurst_stack_depth_135 = (wurst_stack_depth_135 - 1); return this_581; } function error165(string msg115, string __wurst_stackPos138) { local integer stacktraceIndex165 local integer stacktraceLimit149 wurst_stack_154[wurst_stack_depth_135] = __wurst_stackPos_138; wurst_stack_depth_135 = (wurst_stack_depth_135 + 1); __wurst_stackPos_138 = ""; stacktraceIndex_165 = wurst_stack_depth_135; stacktraceLimit_149 = 0; loop { stacktraceIndex_165 = (stacktraceIndex_165 - 1); stacktraceLimit_149 = (stacktraceLimit_149 + 1); exitwhen ((stacktraceLimit_149 > 20) or (stacktraceIndex_165 < 0)); __wurst_stackPos_138 = (__wurst_stackPos_138 + (" " + wurst_stack_154[stacktraceIndex_165])); }; $debugPrint187((msg_115 + (" " + __wurst_stackPos_138))); wurst_stack_depth_135 = (wurst_stack_depth_135 - 1); }