integer test_x147 array B_nextFree178 integer B_firstFree633 integer B_maxIndex165 array B_typeId219 array B_y569 integer wurst_stack_depth178 array wurst_stack111 integer test_x147 = 2 integer B_firstFree633 = 0 integer B_maxIndex165 = 0 integer wurst_stack_depth178 = 0 function initGlobals172() { } function main161() { initGlobals172(); init_test380("when calling init_test in superCall, line 1"); } function config177() { } function init_test380(string __wurst_stackPos128) { local integer a319 wurst_stack_111[wurst_stack_depth_178] = __wurst_stackPos_128; wurst_stack_depth_178 = (wurst_stack_depth_178 + 1); test_x_147 = 2; a_319 = new_A824("when calling new_A in superCall, line 13"); wurst_stack_111[wurst_stack_depth_178] = "when calling foo in superCall, line 14"; wurst_stack_depth_178 = (wurst_stack_depth_178 + 1); if (B_typeId_219[a_319] == 0) { if (a_319 == 0) { error829("Nullpointer exception when calling A.foo", "when calling error in superCall, line 9"); } else { error829("Called A.foo on invalid object.", "when calling error in superCall, line 9"); }; } else { }; test_x_147 = ((test_x_147 + B_y_569[a_319]) * B_y_569[a_319]); wurst_stack_depth_178 = (wurst_stack_depth_178 - 1); if (test_x_147 == 8) { testSuccess130(); } else { }; wurst_stack_depth_178 = (wurst_stack_depth_178 - 1); } IS_NATIVE function testSuccess130() { } function new_A824(string __wurst_stackPos144) returns integer { local integer this940 wurst_stack_111[wurst_stack_depth_178] = __wurst_stackPos_144; wurst_stack_depth_178 = (wurst_stack_depth_178 + 1); wurst_stack_111[wurst_stack_depth_178] = "when calling alloc_A in superCall, line 8"; wurst_stack_depth_178 = (wurst_stack_depth_178 + 1); if (B_firstFree_633 == 0) { if (B_maxIndex_165 < 32768) { B_maxIndex_165 = (B_maxIndex_165 + 1); this_940 = B_maxIndex_165; B_typeId_219[this_940] = 2; } else { error829("Out of memory: Could not create A.", "when calling error in superCall, line 8"); this_940 = 0; }; } else { B_firstFree_633 = (B_firstFree_633 - 1); this_940 = B_nextFree_178[B_firstFree_633]; B_typeId_219[this_940] = 2; }; wurst_stack_depth_178 = (wurst_stack_depth_178 - 1); B_y_569[this_940] = 2; wurst_stack_depth_178 = (wurst_stack_depth_178 - 1); return this_940; } function error829(string msg117, string __wurst_stackPos136) { local integer stacktraceIndex427 local integer stacktraceLimit139 wurst_stack_111[wurst_stack_depth_178] = __wurst_stackPos_136; wurst_stack_depth_178 = (wurst_stack_depth_178 + 1); __wurst_stackPos_136 = ""; stacktraceIndex_427 = wurst_stack_depth_178; stacktraceLimit_139 = 0; loop { stacktraceIndex_427 = (stacktraceIndex_427 - 1); stacktraceLimit_139 = (stacktraceLimit_139 + 1); exitwhen ((stacktraceLimit_139 > 20) or (stacktraceIndex_427 < 0)); __wurst_stackPos_136 = (__wurst_stackPos_136 + (" " + wurst_stack_111[stacktraceIndex_427])); }; $debugPrint816((msg_117 + (" " + __wurst_stackPos_136))); wurst_stack_depth_178 = (wurst_stack_depth_178 - 1); }