integer test_x341 array B_nextFree122 integer B_firstFree115 integer B_maxIndex637 array B_typeId668 array B_y921 integer wurst_stack_depth100 array wurst_stack206 integer test_x341 = 2 integer B_firstFree115 = 0 integer B_maxIndex637 = 0 integer wurst_stack_depth100 = 0 function initGlobals848() { } function main165() { initGlobals848(); init_test114("when calling init_test in superCall, line 1"); } function config148() { } function init_test114(string __wurst_stackPos136) { local integer a184 wurst_stack_206[wurst_stack_depth_100] = __wurst_stackPos_136; wurst_stack_depth_100 = (wurst_stack_depth_100 + 1); test_x_341 = 2; a_184 = new_A750("when calling new_A in superCall, line 13"); wurst_stack_206[wurst_stack_depth_100] = "when calling foo in superCall, line 14"; wurst_stack_depth_100 = (wurst_stack_depth_100 + 1); if (B_typeId_668[a_184] == 0) { if (a_184 == 0) { error180("Nullpointer exception when calling A.foo", "when calling error in superCall, line 9"); } else { error180("Called A.foo on invalid object.", "when calling error in superCall, line 9"); }; } else { }; test_x_341 = ((test_x_341 + B_y_921[a_184]) * B_y_921[a_184]); wurst_stack_depth_100 = (wurst_stack_depth_100 - 1); if (test_x_341 == 8) { testSuccess146(); } else { }; wurst_stack_depth_100 = (wurst_stack_depth_100 - 1); } IS_NATIVE function testSuccess146() { } function new_A750(string __wurst_stackPos206) returns integer { local integer this117 wurst_stack_206[wurst_stack_depth_100] = __wurst_stackPos_206; wurst_stack_depth_100 = (wurst_stack_depth_100 + 1); wurst_stack_206[wurst_stack_depth_100] = "when calling alloc_A in superCall, line 8"; wurst_stack_depth_100 = (wurst_stack_depth_100 + 1); if (B_firstFree_115 == 0) { if (B_maxIndex_637 < 32768) { B_maxIndex_637 = (B_maxIndex_637 + 1); this_117 = B_maxIndex_637; B_typeId_668[this_117] = 2; } else { error180("Out of memory: Could not create A.", "when calling error in superCall, line 8"); this_117 = 0; }; } else { B_firstFree_115 = (B_firstFree_115 - 1); this_117 = B_nextFree_122[B_firstFree_115]; B_typeId_668[this_117] = 2; }; wurst_stack_depth_100 = (wurst_stack_depth_100 - 1); B_y_921[this_117] = 2; wurst_stack_depth_100 = (wurst_stack_depth_100 - 1); return this_117; } function error180(string msg204, string __wurst_stackPos203) { local integer stacktraceIndex164 local integer stacktraceLimit368 wurst_stack_206[wurst_stack_depth_100] = __wurst_stackPos_203; wurst_stack_depth_100 = (wurst_stack_depth_100 + 1); __wurst_stackPos_203 = ""; stacktraceIndex_164 = wurst_stack_depth_100; stacktraceLimit_368 = 0; loop { stacktraceIndex_164 = (stacktraceIndex_164 - 1); stacktraceLimit_368 = (stacktraceLimit_368 + 1); exitwhen ((stacktraceLimit_368 > 20) or (stacktraceIndex_164 < 0)); __wurst_stackPos_203 = (__wurst_stackPos_203 + (" " + wurst_stack_206[stacktraceIndex_164])); }; $debugPrint960((msg_204 + (" " + __wurst_stackPos_203))); wurst_stack_depth_100 = (wurst_stack_depth_100 - 1); }