array A_nextFree859 integer A_firstFree615 integer A_maxIndex107 array A_typeId133 array B_nextFree150 integer B_firstFree201 integer B_maxIndex182 array B_typeId205 integer wurst_stack_depth144 array wurst_stack722 integer A_firstFree615 = 0 integer A_maxIndex107 = 0 integer B_firstFree201 = 0 integer B_maxIndex182 = 0 integer wurst_stack_depth144 = 0 function initGlobals122() { } function main143() { initGlobals122(); wurst_stack_722[wurst_stack_depth_144] = "when calling init_test in testInnerClass_static1, line 1"; wurst_stack_depth_144 = (wurst_stack_depth_144 + 1); if (dispatch_A_test_A_bar199(new_A581("when calling new_A in testInnerClass_static1, line 11"), "when calling bar in testInnerClass_static1, line 11") == 42) { testSuccess374(); } else { }; wurst_stack_depth_144 = (wurst_stack_depth_144 - 1); } function config285() { } IS_NATIVE function testSuccess374() { } function new_A581(string __wurst_stackPos178) returns integer { local integer this787 wurst_stack_722[wurst_stack_depth_144] = __wurst_stackPos_178; wurst_stack_depth_144 = (wurst_stack_depth_144 + 1); wurst_stack_722[wurst_stack_depth_144] = "when calling alloc_A in testInnerClass_static1, line 3"; wurst_stack_depth_144 = (wurst_stack_depth_144 + 1); if (A_firstFree_615 == 0) { if (A_maxIndex_107 < 32768) { A_maxIndex_107 = (A_maxIndex_107 + 1); this_787 = A_maxIndex_107; A_typeId_133[this_787] = 1; } else { error413("Out of memory: Could not create A.", "when calling error in testInnerClass_static1, line 3"); this_787 = 0; }; } else { A_firstFree_615 = (A_firstFree_615 - 1); this_787 = A_nextFree_859[A_firstFree_615]; A_typeId_133[this_787] = 1; }; wurst_stack_depth_144 = ((wurst_stack_depth_144 - 1) - 1); return this_787; } function new_B212(string __wurst_stackPos593) returns integer { local integer this128 wurst_stack_722[wurst_stack_depth_144] = __wurst_stackPos_593; wurst_stack_depth_144 = (wurst_stack_depth_144 + 1); wurst_stack_722[wurst_stack_depth_144] = "when calling alloc_B in testInnerClass_static1, line 4"; wurst_stack_depth_144 = (wurst_stack_depth_144 + 1); if (B_firstFree_201 == 0) { if (B_maxIndex_182 < 32768) { B_maxIndex_182 = (B_maxIndex_182 + 1); this_128 = B_maxIndex_182; B_typeId_205[this_128] = 2; } else { error413("Out of memory: Could not create B.", "when calling error in testInnerClass_static1, line 4"); this_128 = 0; }; } else { B_firstFree_201 = (B_firstFree_201 - 1); this_128 = B_nextFree_150[B_firstFree_201]; B_typeId_205[this_128] = 2; }; wurst_stack_depth_144 = ((wurst_stack_depth_144 - 1) - 1); return this_128; } function error413(string msg188, string __wurst_stackPos199) { local integer stacktraceIndex643 local integer stacktraceLimit203 wurst_stack_722[wurst_stack_depth_144] = __wurst_stackPos_199; wurst_stack_depth_144 = (wurst_stack_depth_144 + 1); __wurst_stackPos_199 = ""; stacktraceIndex_643 = wurst_stack_depth_144; stacktraceLimit_203 = 0; loop { stacktraceIndex_643 = (stacktraceIndex_643 - 1); stacktraceLimit_203 = (stacktraceLimit_203 + 1); exitwhen ((stacktraceLimit_203 > 20) or (stacktraceIndex_643 < 0)); __wurst_stackPos_199 = (__wurst_stackPos_199 + (" " + wurst_stack_722[stacktraceIndex_643])); }; $debugPrint161((msg_188 + (" " + __wurst_stackPos_199))); wurst_stack_depth_144 = (wurst_stack_depth_144 - 1); } function dispatch_A_test_A_bar199(integer this204, string __wurst_stackPos111) returns integer { wurst_stack_722[wurst_stack_depth_144] = __wurst_stackPos_111; wurst_stack_depth_144 = (wurst_stack_depth_144 + 1); if (A_typeId_133[this_204] == 0) { if (this_204 == 0) { error413("Nullpointer exception when calling A.bar", "when calling error in testInnerClass_static1, line 7"); } else { error413("Called A.bar on invalid object.", "when calling error in testInnerClass_static1, line 7"); }; } else { }; wurst_stack_722[wurst_stack_depth_144] = "when calling bar in testInnerClass_static1, line 7"; wurst_stack_depth_144 = (wurst_stack_depth_144 + 1); this_204 = new_B212("when calling new_B in testInnerClass_static1, line 8"); wurst_stack_722[wurst_stack_depth_144] = "when calling foo in testInnerClass_static1, line 9"; wurst_stack_depth_144 = (wurst_stack_depth_144 + 1); if (B_typeId_205[this_204] == 0) { if (this_204 == 0) { error413("Nullpointer exception when calling B.foo", "when calling error in testInnerClass_static1, line 5"); } else { error413("Called B.foo on invalid object.", "when calling error in testInnerClass_static1, line 5"); }; } else { }; wurst_stack_depth_144 = (((wurst_stack_depth_144 - 1) - 1) - 1); return 42; }