array A_nextFree187 integer A_firstFree308 integer A_maxIndex507 array A_typeId528 integer wurst_stack_depth918 array wurst_stack148 integer A_firstFree308 = 0 integer A_maxIndex507 = 0 integer wurst_stack_depth918 = 0 function initGlobals455() { } function main649() { initGlobals455(); wurst_stack_148[wurst_stack_depth_918] = "when calling init_B in protectedInOtherPackage2, line 7"; wurst_stack_depth_918 = (wurst_stack_depth_918 + 1); dispatch_B_B_B_blub597(new_B805("when calling new_B in protectedInOtherPackage2, line 13"), "when calling blub in protectedInOtherPackage2, line 13"); wurst_stack_depth_918 = (wurst_stack_depth_918 - 1); } function config444() { } IS_NATIVE function testSuccess192() { } function new_B805(string __wurst_stackPos187) returns integer { local integer this179 wurst_stack_148[wurst_stack_depth_918] = __wurst_stackPos_187; wurst_stack_depth_918 = (wurst_stack_depth_918 + 1); wurst_stack_148[wurst_stack_depth_918] = "when calling alloc_B in protectedInOtherPackage2, line 9"; wurst_stack_depth_918 = (wurst_stack_depth_918 + 1); if (A_firstFree_308 == 0) { if (A_maxIndex_507 < 32768) { A_maxIndex_507 = (A_maxIndex_507 + 1); this_179 = A_maxIndex_507; A_typeId_528[this_179] = 2; } else { error210("Out of memory: Could not create B.", "when calling error in protectedInOtherPackage2, line 9"); this_179 = 0; }; } else { A_firstFree_308 = (A_firstFree_308 - 1); this_179 = A_nextFree_187[A_firstFree_308]; A_typeId_528[this_179] = 2; }; wurst_stack_depth_918 = ((wurst_stack_depth_918 - 1) - 1); return this_179; } function error210(string msg472, string __wurst_stackPos157) { local integer stacktraceIndex138 local integer stacktraceLimit700 wurst_stack_148[wurst_stack_depth_918] = __wurst_stackPos_157; wurst_stack_depth_918 = (wurst_stack_depth_918 + 1); __wurst_stackPos_157 = ""; stacktraceIndex_138 = wurst_stack_depth_918; stacktraceLimit_700 = 0; loop { stacktraceIndex_138 = (stacktraceIndex_138 - 1); stacktraceLimit_700 = (stacktraceLimit_700 + 1); exitwhen ((stacktraceLimit_700 > 20) or (stacktraceIndex_138 < 0)); __wurst_stackPos_157 = (__wurst_stackPos_157 + (" " + wurst_stack_148[stacktraceIndex_138])); }; $debugPrint877((msg_472 + (" " + __wurst_stackPos_157))); wurst_stack_depth_918 = (wurst_stack_depth_918 - 1); } function dispatch_B_B_B_blub597(integer this188, string __wurst_stackPos989) { wurst_stack_148[wurst_stack_depth_918] = __wurst_stackPos_989; wurst_stack_depth_918 = (wurst_stack_depth_918 + 1); if (A_typeId_528[this_188] == 0) { if (this_188 == 0) { error210("Nullpointer exception when calling B.blub", "when calling error in protectedInOtherPackage2, line 10"); } else { error210("Called B.blub on invalid object.", "when calling error in protectedInOtherPackage2, line 10"); }; } else { }; wurst_stack_148[wurst_stack_depth_918] = "when calling blub in protectedInOtherPackage2, line 10"; wurst_stack_depth_918 = (wurst_stack_depth_918 + 1); wurst_stack_148[wurst_stack_depth_918] = "when calling show in protectedInOtherPackage2, line 11"; wurst_stack_depth_918 = (wurst_stack_depth_918 + 1); if (A_typeId_528[this_188] == 0) { if (this_188 == 0) { error210("Nullpointer exception when calling A.show", "when calling error in protectedInOtherPackage2, line 4"); } else { error210("Called A.show on invalid object.", "when calling error in protectedInOtherPackage2, line 4"); }; } else { }; testSuccess192(); wurst_stack_depth_918 = (((wurst_stack_depth_918 - 1) - 1) - 1); }