array Blub_nextFree550 integer Blub_firstFree191 integer Blub_maxIndex130 array Blub_typeId764 integer wurst_stack_depth893 array wurst_stack127 integer Blub_firstFree191 = 0 integer Blub_maxIndex130 = 0 integer wurst_stack_depth893 = 0 function initGlobals105() { } function main952() { local integer blub385 initGlobals105(); wurst_stack_127[wurst_stack_depth_893] = "when calling init_B in test_import_class, line 5"; wurst_stack_depth_893 = (wurst_stack_depth_893 + 1); blub_385 = new_Blub200("when calling new_Blub in test_import_class, line 8"); wurst_stack_127[wurst_stack_depth_893] = "when calling foo in test_import_class, line 9"; wurst_stack_depth_893 = (wurst_stack_depth_893 + 1); if (Blub_typeId_764[blub_385] == 0) { if (blub_385 == 0) { error792("Nullpointer exception when calling Blub.foo", "when calling error in test_import_class, line 3"); } else { error792("Called Blub.foo on invalid object.", "when calling error in test_import_class, line 3"); }; } else { }; wurst_stack_depth_893 = ((wurst_stack_depth_893 - 1) - 1); } function config136() { } function new_Blub200(string __wurst_stackPos143) returns integer { local integer this109 wurst_stack_127[wurst_stack_depth_893] = __wurst_stackPos_143; wurst_stack_depth_893 = (wurst_stack_depth_893 + 1); wurst_stack_127[wurst_stack_depth_893] = "when calling alloc_Blub in test_import_class, line 2"; wurst_stack_depth_893 = (wurst_stack_depth_893 + 1); if (Blub_firstFree_191 == 0) { if (Blub_maxIndex_130 < 32768) { Blub_maxIndex_130 = (Blub_maxIndex_130 + 1); this_109 = Blub_maxIndex_130; Blub_typeId_764[this_109] = 1; } else { error792("Out of memory: Could not create Blub.", "when calling error in test_import_class, line 2"); this_109 = 0; }; } else { Blub_firstFree_191 = (Blub_firstFree_191 - 1); this_109 = Blub_nextFree_550[Blub_firstFree_191]; Blub_typeId_764[this_109] = 1; }; wurst_stack_depth_893 = ((wurst_stack_depth_893 - 1) - 1); return this_109; } function error792(string msg188, string __wurst_stackPos714) { local integer stacktraceIndex187 local integer stacktraceLimit200 wurst_stack_127[wurst_stack_depth_893] = __wurst_stackPos_714; wurst_stack_depth_893 = (wurst_stack_depth_893 + 1); __wurst_stackPos_714 = ""; stacktraceIndex_187 = wurst_stack_depth_893; stacktraceLimit_200 = 0; loop { stacktraceIndex_187 = (stacktraceIndex_187 - 1); stacktraceLimit_200 = (stacktraceLimit_200 + 1); exitwhen ((stacktraceLimit_200 > 20) or (stacktraceIndex_187 < 0)); __wurst_stackPos_714 = (__wurst_stackPos_714 + (" " + wurst_stack_127[stacktraceIndex_187])); }; $debugPrint408((msg_188 + (" " + __wurst_stackPos_714))); wurst_stack_depth_893 = (wurst_stack_depth_893 - 1); }