array A_nextFree106 integer A_firstFree378 integer A_maxIndex216 array A_typeId110 array B_nextFree124 integer B_firstFree756 integer B_maxIndex114 array B_typeId340 integer wurst_stack_depth111 array wurst_stack116 integer A_firstFree378 = 0 integer A_maxIndex216 = 0 integer B_firstFree756 = 0 integer B_maxIndex114 = 0 integer wurst_stack_depth111 = 0 function initGlobals116() { } function main224() { initGlobals116(); wurst_stack_116[wurst_stack_depth_111] = "when calling init_test in testInnerClass_module, line 1"; wurst_stack_depth_111 = (wurst_stack_depth_111 + 1); if (dispatch_A_test_A_M_bar181(new_A596("when calling new_A in testInnerClass_module, line 13"), "when calling bar in testInnerClass_module, line 13") == 42) { testSuccess207(); } else { }; wurst_stack_depth_111 = (wurst_stack_depth_111 - 1); } function config145() { } IS_NATIVE function testSuccess207() { } function new_A596(string __wurst_stackPos118) returns integer { local integer this187 wurst_stack_116[wurst_stack_depth_111] = __wurst_stackPos_118; wurst_stack_depth_111 = (wurst_stack_depth_111 + 1); wurst_stack_116[wurst_stack_depth_111] = "when calling alloc_A in testInnerClass_module, line 10"; wurst_stack_depth_111 = (wurst_stack_depth_111 + 1); if (A_firstFree_378 == 0) { if (A_maxIndex_216 < 32768) { A_maxIndex_216 = (A_maxIndex_216 + 1); this_187 = A_maxIndex_216; A_typeId_110[this_187] = 1; } else { error142("Out of memory: Could not create A.", "when calling error in testInnerClass_module, line 10"); this_187 = 0; }; } else { A_firstFree_378 = (A_firstFree_378 - 1); this_187 = A_nextFree_106[A_firstFree_378]; A_typeId_110[this_187] = 1; }; wurst_stack_depth_111 = ((wurst_stack_depth_111 - 1) - 1); return this_187; } function new_B861(string __wurst_stackPos544) returns integer { local integer this202 wurst_stack_116[wurst_stack_depth_111] = __wurst_stackPos_544; wurst_stack_depth_111 = (wurst_stack_depth_111 + 1); wurst_stack_116[wurst_stack_depth_111] = "when calling alloc_B in testInnerClass_module, line 4"; wurst_stack_depth_111 = (wurst_stack_depth_111 + 1); if (B_firstFree_756 == 0) { if (B_maxIndex_114 < 32768) { B_maxIndex_114 = (B_maxIndex_114 + 1); this_202 = B_maxIndex_114; B_typeId_340[this_202] = 2; } else { error142("Out of memory: Could not create B.", "when calling error in testInnerClass_module, line 4"); this_202 = 0; }; } else { B_firstFree_756 = (B_firstFree_756 - 1); this_202 = B_nextFree_124[B_firstFree_756]; B_typeId_340[this_202] = 2; }; wurst_stack_depth_111 = ((wurst_stack_depth_111 - 1) - 1); return this_202; } function error142(string msg149, string __wurst_stackPos937) { local integer stacktraceIndex209 local integer stacktraceLimit164 wurst_stack_116[wurst_stack_depth_111] = __wurst_stackPos_937; wurst_stack_depth_111 = (wurst_stack_depth_111 + 1); __wurst_stackPos_937 = ""; stacktraceIndex_209 = wurst_stack_depth_111; stacktraceLimit_164 = 0; loop { stacktraceIndex_209 = (stacktraceIndex_209 - 1); stacktraceLimit_164 = (stacktraceLimit_164 + 1); exitwhen ((stacktraceLimit_164 > 20) or (stacktraceIndex_209 < 0)); __wurst_stackPos_937 = (__wurst_stackPos_937 + (" " + wurst_stack_116[stacktraceIndex_209])); }; $debugPrint384((msg_149 + (" " + __wurst_stackPos_937))); wurst_stack_depth_111 = (wurst_stack_depth_111 - 1); } function dispatch_A_test_A_M_bar181(integer this205, string __wurst_stackPos102) returns integer { wurst_stack_116[wurst_stack_depth_111] = __wurst_stackPos_102; wurst_stack_depth_111 = (wurst_stack_depth_111 + 1); if (A_typeId_110[this_205] == 0) { if (this_205 == 0) { error142("Nullpointer exception when calling A.bar", "when calling error in testInnerClass_module, line 7"); } else { error142("Called A.bar on invalid object.", "when calling error in testInnerClass_module, line 7"); }; } else { }; wurst_stack_116[wurst_stack_depth_111] = "when calling bar in testInnerClass_module, line 7"; wurst_stack_depth_111 = (wurst_stack_depth_111 + 1); this_205 = new_B861("when calling new_B in testInnerClass_module, line 8"); wurst_stack_116[wurst_stack_depth_111] = "when calling foo in testInnerClass_module, line 9"; wurst_stack_depth_111 = (wurst_stack_depth_111 + 1); if (B_typeId_340[this_205] == 0) { if (this_205 == 0) { error142("Nullpointer exception when calling B.foo", "when calling error in testInnerClass_module, line 5"); } else { error142("Called B.foo on invalid object.", "when calling error in testInnerClass_module, line 5"); }; } else { }; wurst_stack_depth_111 = (((wurst_stack_depth_111 - 1) - 1) - 1); return 42; }