integer test_x918 array B_nextFree176 integer B_firstFree190 integer B_maxIndex121 array B_typeId131 array B_y660 integer wurst_stack_depth986 array wurst_stack191 integer test_x918 = 2 integer B_firstFree190 = 0 integer B_maxIndex121 = 0 integer wurst_stack_depth986 = 0 function initGlobals160() { } function main120() { initGlobals160(); init_test177("when calling init_test in superCall2, line 1"); } function config177() { } function init_test177(string __wurst_stackPos398) { local integer a144 wurst_stack_191[wurst_stack_depth_986] = __wurst_stackPos_398; wurst_stack_depth_986 = (wurst_stack_depth_986 + 1); test_x_918 = 2; a_144 = new_A156("when calling new_A in superCall2, line 13"); wurst_stack_191[wurst_stack_depth_986] = "when calling foo in superCall2, line 14"; wurst_stack_depth_986 = (wurst_stack_depth_986 + 1); if (B_typeId_131[a_144] == 0) { if (a_144 == 0) { error140("Nullpointer exception when calling A.foo", "when calling error in superCall2, line 9"); } else { error140("Called A.foo on invalid object.", "when calling error in superCall2, line 9"); }; } else { }; test_x_918 = ((test_x_918 + B_y_660[a_144]) * B_y_660[a_144]); wurst_stack_depth_986 = (wurst_stack_depth_986 - 1); if (test_x_918 == 8) { testSuccess160(); } else { }; wurst_stack_depth_986 = (wurst_stack_depth_986 - 1); } IS_NATIVE function testSuccess160() { } function new_A156(string __wurst_stackPos181) returns integer { local integer this536 wurst_stack_191[wurst_stack_depth_986] = __wurst_stackPos_181; wurst_stack_depth_986 = (wurst_stack_depth_986 + 1); wurst_stack_191[wurst_stack_depth_986] = "when calling alloc_A in superCall2, line 8"; wurst_stack_depth_986 = (wurst_stack_depth_986 + 1); if (B_firstFree_190 == 0) { if (B_maxIndex_121 < 32768) { B_maxIndex_121 = (B_maxIndex_121 + 1); this_536 = B_maxIndex_121; B_typeId_131[this_536] = 2; } else { error140("Out of memory: Could not create A.", "when calling error in superCall2, line 8"); this_536 = 0; }; } else { B_firstFree_190 = (B_firstFree_190 - 1); this_536 = B_nextFree_176[B_firstFree_190]; B_typeId_131[this_536] = 2; }; wurst_stack_depth_986 = (wurst_stack_depth_986 - 1); B_y_660[this_536] = 2; wurst_stack_depth_986 = (wurst_stack_depth_986 - 1); return this_536; } function error140(string msg869, string __wurst_stackPos107) { local integer stacktraceIndex177 local integer stacktraceLimit145 wurst_stack_191[wurst_stack_depth_986] = __wurst_stackPos_107; wurst_stack_depth_986 = (wurst_stack_depth_986 + 1); __wurst_stackPos_107 = ""; stacktraceIndex_177 = wurst_stack_depth_986; stacktraceLimit_145 = 0; loop { stacktraceIndex_177 = (stacktraceIndex_177 - 1); stacktraceLimit_145 = (stacktraceLimit_145 + 1); exitwhen ((stacktraceLimit_145 > 20) or (stacktraceIndex_177 < 0)); __wurst_stackPos_107 = (__wurst_stackPos_107 + (" " + wurst_stack_191[stacktraceIndex_177])); }; $debugPrint106((msg_869 + (" " + __wurst_stackPos_107))); wurst_stack_depth_986 = (wurst_stack_depth_986 - 1); }