array I_nextFree618 integer I_firstFree784 integer I_maxIndex101 array I_typeId350 integer C_firstFree156 integer C_maxIndex643 integer D_firstFree753 integer D_maxIndex287 integer wurst_stack_depth119 array wurst_stack425 integer I_firstFree784 = 0 integer I_maxIndex101 = 0 integer C_firstFree156 = 0 integer C_maxIndex643 = 0 integer D_firstFree753 = 0 integer D_maxIndex287 = 0 integer wurst_stack_depth119 = 0 function initGlobals139() { } function main166() { initGlobals139(); init_Test106("when calling init_Test in genericsSubstitute3, line 1"); } function config179() { } function init_Test106(string __wurst_stackPos589) { local integer b915 wurst_stack_425[wurst_stack_depth_119] = __wurst_stackPos_589; wurst_stack_depth_119 = (wurst_stack_depth_119 + 1); b_915 = new_B101("when calling new_B in genericsSubstitute3, line 14"); wurst_stack_425[wurst_stack_depth_119] = "when calling new_D in genericsSubstitute3, line 15"; wurst_stack_depth_119 = (wurst_stack_depth_119 + 1); wurst_stack_425[wurst_stack_depth_119] = "when calling alloc_D in genericsSubstitute3, line 12"; wurst_stack_depth_119 = (wurst_stack_depth_119 + 1); if (D_firstFree_753 == 0) { if (D_maxIndex_287 < 32768) { D_maxIndex_287 = (D_maxIndex_287 + 1); } else { error110("Out of memory: Could not create D.", "when calling error in genericsSubstitute3, line 12"); }; } else { D_firstFree_753 = (D_firstFree_753 - 1); }; wurst_stack_depth_119 = ((wurst_stack_depth_119 - 1) - 1); wurst_stack_425[wurst_stack_depth_119] = "when calling new_C in genericsSubstitute3, line 15"; wurst_stack_depth_119 = (wurst_stack_depth_119 + 1); wurst_stack_425[wurst_stack_depth_119] = "when calling alloc_C in genericsSubstitute3, line 11"; wurst_stack_depth_119 = (wurst_stack_depth_119 + 1); if (C_firstFree_156 == 0) { if (C_maxIndex_643 < 32768) { C_maxIndex_643 = (C_maxIndex_643 + 1); } else { error110("Out of memory: Could not create C.", "when calling error in genericsSubstitute3, line 11"); }; } else { C_firstFree_156 = (C_firstFree_156 - 1); }; wurst_stack_depth_119 = ((wurst_stack_depth_119 - 1) - 1); wurst_stack_425[wurst_stack_depth_119] = "when calling bla in genericsSubstitute3, line 15"; wurst_stack_depth_119 = (wurst_stack_depth_119 + 1); if (I_typeId_350[b_915] == 0) { if (b_915 == 0) { error110("Nullpointer exception when calling I.bla", "when calling error in genericsSubstitute3, line 4"); } else { error110("Called I.bla on invalid object.", "when calling error in genericsSubstitute3, line 4"); }; } else { }; wurst_stack_depth_119 = ((wurst_stack_depth_119 - 1) - 1); } function new_B101(string __wurst_stackPos350) returns integer { local integer this153 wurst_stack_425[wurst_stack_depth_119] = __wurst_stackPos_350; wurst_stack_depth_119 = (wurst_stack_depth_119 + 1); wurst_stack_425[wurst_stack_depth_119] = "when calling alloc_B in genericsSubstitute3, line 10"; wurst_stack_depth_119 = (wurst_stack_depth_119 + 1); if (I_firstFree_784 == 0) { if (I_maxIndex_101 < 32768) { I_maxIndex_101 = (I_maxIndex_101 + 1); this_153 = I_maxIndex_101; I_typeId_350[this_153] = 6; } else { error110("Out of memory: Could not create B.", "when calling error in genericsSubstitute3, line 10"); this_153 = 0; }; } else { I_firstFree_784 = (I_firstFree_784 - 1); this_153 = I_nextFree_618[I_firstFree_784]; I_typeId_350[this_153] = 6; }; wurst_stack_depth_119 = ((wurst_stack_depth_119 - 1) - 1); return this_153; } function error110(string msg967, string __wurst_stackPos155) { local integer stacktraceIndex107 local integer stacktraceLimit957 wurst_stack_425[wurst_stack_depth_119] = __wurst_stackPos_155; wurst_stack_depth_119 = (wurst_stack_depth_119 + 1); __wurst_stackPos_155 = ""; stacktraceIndex_107 = wurst_stack_depth_119; stacktraceLimit_957 = 0; loop { stacktraceIndex_107 = (stacktraceIndex_107 - 1); stacktraceLimit_957 = (stacktraceLimit_957 + 1); exitwhen ((stacktraceLimit_957 > 20) or (stacktraceIndex_107 < 0)); __wurst_stackPos_155 = (__wurst_stackPos_155 + (" " + wurst_stack_425[stacktraceIndex_107])); }; $debugPrint637((msg_967 + (" " + __wurst_stackPos_155))); wurst_stack_depth_119 = (wurst_stack_depth_119 - 1); }