array A_nextFree644 integer A_firstFree117 integer A_maxIndex816 array A_typeId114 array B_nextFree617 integer B_firstFree595 integer B_maxIndex591 array B_typeId155 integer wurst_stack_depth383 array wurst_stack140 integer A_firstFree117 = 0 integer A_maxIndex816 = 0 integer B_firstFree595 = 0 integer B_maxIndex591 = 0 integer wurst_stack_depth383 = 0 function initGlobals140() { } function main874() { initGlobals140(); wurst_stack_140[wurst_stack_depth_383] = "when calling init_test in testInnerClass_static1, line 1"; wurst_stack_depth_383 = (wurst_stack_depth_383 + 1); if (dispatch_A_test_A_bar517(new_A208("when calling new_A in testInnerClass_static1, line 11"), "when calling bar in testInnerClass_static1, line 11") == 42) { testSuccess186(); } else { }; wurst_stack_depth_383 = (wurst_stack_depth_383 - 1); } function config122() { } IS_NATIVE function testSuccess186() { } function new_A208(string __wurst_stackPos126) returns integer { local integer this181 wurst_stack_140[wurst_stack_depth_383] = __wurst_stackPos_126; wurst_stack_depth_383 = (wurst_stack_depth_383 + 1); wurst_stack_140[wurst_stack_depth_383] = "when calling alloc_A in testInnerClass_static1, line 3"; wurst_stack_depth_383 = (wurst_stack_depth_383 + 1); if (A_firstFree_117 == 0) { if (A_maxIndex_816 < 32768) { A_maxIndex_816 = (A_maxIndex_816 + 1); this_181 = A_maxIndex_816; A_typeId_114[this_181] = 1; } else { error194("Out of memory: Could not create A.", "when calling error in testInnerClass_static1, line 3"); this_181 = 0; }; } else { A_firstFree_117 = (A_firstFree_117 - 1); this_181 = A_nextFree_644[A_firstFree_117]; A_typeId_114[this_181] = 1; }; wurst_stack_depth_383 = ((wurst_stack_depth_383 - 1) - 1); return this_181; } function new_B151(string __wurst_stackPos112) returns integer { local integer this149 wurst_stack_140[wurst_stack_depth_383] = __wurst_stackPos_112; wurst_stack_depth_383 = (wurst_stack_depth_383 + 1); wurst_stack_140[wurst_stack_depth_383] = "when calling alloc_B in testInnerClass_static1, line 4"; wurst_stack_depth_383 = (wurst_stack_depth_383 + 1); if (B_firstFree_595 == 0) { if (B_maxIndex_591 < 32768) { B_maxIndex_591 = (B_maxIndex_591 + 1); this_149 = B_maxIndex_591; B_typeId_155[this_149] = 2; } else { error194("Out of memory: Could not create B.", "when calling error in testInnerClass_static1, line 4"); this_149 = 0; }; } else { B_firstFree_595 = (B_firstFree_595 - 1); this_149 = B_nextFree_617[B_firstFree_595]; B_typeId_155[this_149] = 2; }; wurst_stack_depth_383 = ((wurst_stack_depth_383 - 1) - 1); return this_149; } function error194(string msg118, string __wurst_stackPos143) { local integer stacktraceIndex200 local integer stacktraceLimit175 wurst_stack_140[wurst_stack_depth_383] = __wurst_stackPos_143; wurst_stack_depth_383 = (wurst_stack_depth_383 + 1); __wurst_stackPos_143 = ""; stacktraceIndex_200 = wurst_stack_depth_383; stacktraceLimit_175 = 0; loop { stacktraceIndex_200 = (stacktraceIndex_200 - 1); stacktraceLimit_175 = (stacktraceLimit_175 + 1); exitwhen ((stacktraceLimit_175 > 20) or (stacktraceIndex_200 < 0)); __wurst_stackPos_143 = (__wurst_stackPos_143 + (" " + wurst_stack_140[stacktraceIndex_200])); }; $debugPrint534((msg_118 + (" " + __wurst_stackPos_143))); wurst_stack_depth_383 = (wurst_stack_depth_383 - 1); } function dispatch_A_test_A_bar517(integer this162, string __wurst_stackPos106) returns integer { wurst_stack_140[wurst_stack_depth_383] = __wurst_stackPos_106; wurst_stack_depth_383 = (wurst_stack_depth_383 + 1); if (A_typeId_114[this_162] == 0) { if (this_162 == 0) { error194("Nullpointer exception when calling A.bar", "when calling error in testInnerClass_static1, line 7"); } else { error194("Called A.bar on invalid object.", "when calling error in testInnerClass_static1, line 7"); }; } else { }; wurst_stack_140[wurst_stack_depth_383] = "when calling bar in testInnerClass_static1, line 7"; wurst_stack_depth_383 = (wurst_stack_depth_383 + 1); this_162 = new_B151("when calling new_B in testInnerClass_static1, line 8"); wurst_stack_140[wurst_stack_depth_383] = "when calling foo in testInnerClass_static1, line 9"; wurst_stack_depth_383 = (wurst_stack_depth_383 + 1); if (B_typeId_155[this_162] == 0) { if (this_162 == 0) { error194("Nullpointer exception when calling B.foo", "when calling error in testInnerClass_static1, line 5"); } else { error194("Called B.foo on invalid object.", "when calling error in testInnerClass_static1, line 5"); }; } else { }; wurst_stack_depth_383 = (((wurst_stack_depth_383 - 1) - 1) - 1); return 42; }