array I_nextFree120 integer I_firstFree632 integer I_maxIndex123 array I_typeId129 integer C_firstFree122 integer C_maxIndex592 integer D_firstFree542 integer D_maxIndex204 integer wurst_stack_depth154 array wurst_stack211 integer I_firstFree632 = 0 integer I_maxIndex123 = 0 integer C_firstFree122 = 0 integer C_maxIndex592 = 0 integer D_firstFree542 = 0 integer D_maxIndex204 = 0 integer wurst_stack_depth154 = 0 function initGlobals156() { } function main101() { initGlobals156(); init_Test444("when calling init_Test in genericsSubstitute3, line 1"); } function config206() { } function init_Test444(string __wurst_stackPos117) { local integer b190 wurst_stack_211[wurst_stack_depth_154] = __wurst_stackPos_117; wurst_stack_depth_154 = (wurst_stack_depth_154 + 1); b_190 = new_B103("when calling new_B in genericsSubstitute3, line 14"); wurst_stack_211[wurst_stack_depth_154] = "when calling new_D in genericsSubstitute3, line 15"; wurst_stack_depth_154 = (wurst_stack_depth_154 + 1); wurst_stack_211[wurst_stack_depth_154] = "when calling alloc_D in genericsSubstitute3, line 12"; wurst_stack_depth_154 = (wurst_stack_depth_154 + 1); if (D_firstFree_542 == 0) { if (D_maxIndex_204 < 32768) { D_maxIndex_204 = (D_maxIndex_204 + 1); } else { error859("Out of memory: Could not create D.", "when calling error in genericsSubstitute3, line 12"); }; } else { D_firstFree_542 = (D_firstFree_542 - 1); }; wurst_stack_depth_154 = ((wurst_stack_depth_154 - 1) - 1); wurst_stack_211[wurst_stack_depth_154] = "when calling new_C in genericsSubstitute3, line 15"; wurst_stack_depth_154 = (wurst_stack_depth_154 + 1); wurst_stack_211[wurst_stack_depth_154] = "when calling alloc_C in genericsSubstitute3, line 11"; wurst_stack_depth_154 = (wurst_stack_depth_154 + 1); if (C_firstFree_122 == 0) { if (C_maxIndex_592 < 32768) { C_maxIndex_592 = (C_maxIndex_592 + 1); } else { error859("Out of memory: Could not create C.", "when calling error in genericsSubstitute3, line 11"); }; } else { C_firstFree_122 = (C_firstFree_122 - 1); }; wurst_stack_depth_154 = ((wurst_stack_depth_154 - 1) - 1); wurst_stack_211[wurst_stack_depth_154] = "when calling bla in genericsSubstitute3, line 15"; wurst_stack_depth_154 = (wurst_stack_depth_154 + 1); if (I_typeId_129[b_190] == 0) { if (b_190 == 0) { error859("Nullpointer exception when calling I.bla", "when calling error in genericsSubstitute3, line 4"); } else { error859("Called I.bla on invalid object.", "when calling error in genericsSubstitute3, line 4"); }; } else { }; wurst_stack_depth_154 = ((wurst_stack_depth_154 - 1) - 1); } function new_B103(string __wurst_stackPos205) returns integer { local integer this120 wurst_stack_211[wurst_stack_depth_154] = __wurst_stackPos_205; wurst_stack_depth_154 = (wurst_stack_depth_154 + 1); wurst_stack_211[wurst_stack_depth_154] = "when calling alloc_B in genericsSubstitute3, line 10"; wurst_stack_depth_154 = (wurst_stack_depth_154 + 1); if (I_firstFree_632 == 0) { if (I_maxIndex_123 < 32768) { I_maxIndex_123 = (I_maxIndex_123 + 1); this_120 = I_maxIndex_123; I_typeId_129[this_120] = 6; } else { error859("Out of memory: Could not create B.", "when calling error in genericsSubstitute3, line 10"); this_120 = 0; }; } else { I_firstFree_632 = (I_firstFree_632 - 1); this_120 = I_nextFree_120[I_firstFree_632]; I_typeId_129[this_120] = 6; }; wurst_stack_depth_154 = ((wurst_stack_depth_154 - 1) - 1); return this_120; } function error859(string msg504, string __wurst_stackPos558) { local integer stacktraceIndex158 local integer stacktraceLimit158 wurst_stack_211[wurst_stack_depth_154] = __wurst_stackPos_558; wurst_stack_depth_154 = (wurst_stack_depth_154 + 1); __wurst_stackPos_558 = ""; stacktraceIndex_158 = wurst_stack_depth_154; stacktraceLimit_158 = 0; loop { stacktraceIndex_158 = (stacktraceIndex_158 - 1); stacktraceLimit_158 = (stacktraceLimit_158 + 1); exitwhen ((stacktraceLimit_158 > 20) or (stacktraceIndex_158 < 0)); __wurst_stackPos_558 = (__wurst_stackPos_558 + (" " + wurst_stack_211[stacktraceIndex_158])); }; $debugPrint122((msg_504 + (" " + __wurst_stackPos_558))); wurst_stack_depth_154 = (wurst_stack_depth_154 - 1); }