array I_nextFree101 integer I_firstFree728 integer I_maxIndex115 array I_typeId127 integer C_firstFree181 integer C_maxIndex146 integer D_firstFree754 integer D_maxIndex131 integer wurst_stack_depth207 array wurst_stack138 integer I_firstFree728 = 0 integer I_maxIndex115 = 0 integer C_firstFree181 = 0 integer C_maxIndex146 = 0 integer D_firstFree754 = 0 integer D_maxIndex131 = 0 integer wurst_stack_depth207 = 0 function initGlobals145() { } function main463() { initGlobals145(); init_Test831("when calling init_Test in genericsSubstitute2, line 1"); } function config584() { } function init_Test831(string __wurst_stackPos510) { local integer b145 wurst_stack_138[wurst_stack_depth_207] = __wurst_stackPos_510; wurst_stack_depth_207 = (wurst_stack_depth_207 + 1); b_145 = new_B183("when calling new_B in genericsSubstitute2, line 11"); wurst_stack_138[wurst_stack_depth_207] = "when calling new_D in genericsSubstitute2, line 12"; wurst_stack_depth_207 = (wurst_stack_depth_207 + 1); wurst_stack_138[wurst_stack_depth_207] = "when calling alloc_D in genericsSubstitute2, line 9"; wurst_stack_depth_207 = (wurst_stack_depth_207 + 1); if (D_firstFree_754 == 0) { if (D_maxIndex_131 < 32768) { D_maxIndex_131 = (D_maxIndex_131 + 1); } else { error639("Out of memory: Could not create D.", "when calling error in genericsSubstitute2, line 9"); }; } else { D_firstFree_754 = (D_firstFree_754 - 1); }; wurst_stack_depth_207 = ((wurst_stack_depth_207 - 1) - 1); wurst_stack_138[wurst_stack_depth_207] = "when calling new_C in genericsSubstitute2, line 12"; wurst_stack_depth_207 = (wurst_stack_depth_207 + 1); wurst_stack_138[wurst_stack_depth_207] = "when calling alloc_C in genericsSubstitute2, line 8"; wurst_stack_depth_207 = (wurst_stack_depth_207 + 1); if (C_firstFree_181 == 0) { if (C_maxIndex_146 < 32768) { C_maxIndex_146 = (C_maxIndex_146 + 1); } else { error639("Out of memory: Could not create C.", "when calling error in genericsSubstitute2, line 8"); }; } else { C_firstFree_181 = (C_firstFree_181 - 1); }; wurst_stack_depth_207 = ((wurst_stack_depth_207 - 1) - 1); wurst_stack_138[wurst_stack_depth_207] = "when calling bla in genericsSubstitute2, line 12"; wurst_stack_depth_207 = (wurst_stack_depth_207 + 1); if (I_typeId_127[b_145] == 0) { if (b_145 == 0) { error639("Nullpointer exception when calling I.bla", "when calling error in genericsSubstitute2, line 4"); } else { error639("Called I.bla on invalid object.", "when calling error in genericsSubstitute2, line 4"); }; } else { }; wurst_stack_depth_207 = ((wurst_stack_depth_207 - 1) - 1); } function new_B183(string __wurst_stackPos102) returns integer { local integer this132 wurst_stack_138[wurst_stack_depth_207] = __wurst_stackPos_102; wurst_stack_depth_207 = (wurst_stack_depth_207 + 1); wurst_stack_138[wurst_stack_depth_207] = "when calling alloc_B in genericsSubstitute2, line 7"; wurst_stack_depth_207 = (wurst_stack_depth_207 + 1); if (I_firstFree_728 == 0) { if (I_maxIndex_115 < 32768) { I_maxIndex_115 = (I_maxIndex_115 + 1); this_132 = I_maxIndex_115; I_typeId_127[this_132] = 5; } else { error639("Out of memory: Could not create B.", "when calling error in genericsSubstitute2, line 7"); this_132 = 0; }; } else { I_firstFree_728 = (I_firstFree_728 - 1); this_132 = I_nextFree_101[I_firstFree_728]; I_typeId_127[this_132] = 5; }; wurst_stack_depth_207 = ((wurst_stack_depth_207 - 1) - 1); return this_132; } function error639(string msg891, string __wurst_stackPos128) { local integer stacktraceIndex178 local integer stacktraceLimit524 wurst_stack_138[wurst_stack_depth_207] = __wurst_stackPos_128; wurst_stack_depth_207 = (wurst_stack_depth_207 + 1); __wurst_stackPos_128 = ""; stacktraceIndex_178 = wurst_stack_depth_207; stacktraceLimit_524 = 0; loop { stacktraceIndex_178 = (stacktraceIndex_178 - 1); stacktraceLimit_524 = (stacktraceLimit_524 + 1); exitwhen ((stacktraceLimit_524 > 20) or (stacktraceIndex_178 < 0)); __wurst_stackPos_128 = (__wurst_stackPos_128 + (" " + wurst_stack_138[stacktraceIndex_178])); }; $debugPrint213((msg_891 + (" " + __wurst_stackPos_128))); wurst_stack_depth_207 = (wurst_stack_depth_207 - 1); }