array I_nextFree207 integer I_firstFree146 integer I_maxIndex886 array I_typeId210 integer C_firstFree697 integer C_maxIndex196 integer D_firstFree164 integer D_maxIndex105 integer wurst_stack_depth125 array wurst_stack542 integer I_firstFree146 = 0 integer I_maxIndex886 = 0 integer C_firstFree697 = 0 integer C_maxIndex196 = 0 integer D_firstFree164 = 0 integer D_maxIndex105 = 0 integer wurst_stack_depth125 = 0 function initGlobals730() { } function main956() { initGlobals730(); init_Test190("when calling init_Test in genericsSubstitute2, line 1"); } function config107() { } function init_Test190(string __wurst_stackPos968) { local integer b376 wurst_stack_542[wurst_stack_depth_125] = __wurst_stackPos_968; wurst_stack_depth_125 = (wurst_stack_depth_125 + 1); b_376 = new_B167("when calling new_B in genericsSubstitute2, line 11"); wurst_stack_542[wurst_stack_depth_125] = "when calling new_D in genericsSubstitute2, line 12"; wurst_stack_depth_125 = (wurst_stack_depth_125 + 1); wurst_stack_542[wurst_stack_depth_125] = "when calling alloc_D in genericsSubstitute2, line 9"; wurst_stack_depth_125 = (wurst_stack_depth_125 + 1); if (D_firstFree_164 == 0) { if (D_maxIndex_105 < 32768) { D_maxIndex_105 = (D_maxIndex_105 + 1); } else { error206("Out of memory: Could not create D.", "when calling error in genericsSubstitute2, line 9"); }; } else { D_firstFree_164 = (D_firstFree_164 - 1); }; wurst_stack_depth_125 = ((wurst_stack_depth_125 - 1) - 1); wurst_stack_542[wurst_stack_depth_125] = "when calling new_C in genericsSubstitute2, line 12"; wurst_stack_depth_125 = (wurst_stack_depth_125 + 1); wurst_stack_542[wurst_stack_depth_125] = "when calling alloc_C in genericsSubstitute2, line 8"; wurst_stack_depth_125 = (wurst_stack_depth_125 + 1); if (C_firstFree_697 == 0) { if (C_maxIndex_196 < 32768) { C_maxIndex_196 = (C_maxIndex_196 + 1); } else { error206("Out of memory: Could not create C.", "when calling error in genericsSubstitute2, line 8"); }; } else { C_firstFree_697 = (C_firstFree_697 - 1); }; wurst_stack_depth_125 = ((wurst_stack_depth_125 - 1) - 1); wurst_stack_542[wurst_stack_depth_125] = "when calling bla in genericsSubstitute2, line 12"; wurst_stack_depth_125 = (wurst_stack_depth_125 + 1); if (I_typeId_210[b_376] == 0) { if (b_376 == 0) { error206("Nullpointer exception when calling I.bla", "when calling error in genericsSubstitute2, line 4"); } else { error206("Called I.bla on invalid object.", "when calling error in genericsSubstitute2, line 4"); }; } else { }; wurst_stack_depth_125 = ((wurst_stack_depth_125 - 1) - 1); } function new_B167(string __wurst_stackPos109) returns integer { local integer this108 wurst_stack_542[wurst_stack_depth_125] = __wurst_stackPos_109; wurst_stack_depth_125 = (wurst_stack_depth_125 + 1); wurst_stack_542[wurst_stack_depth_125] = "when calling alloc_B in genericsSubstitute2, line 7"; wurst_stack_depth_125 = (wurst_stack_depth_125 + 1); if (I_firstFree_146 == 0) { if (I_maxIndex_886 < 32768) { I_maxIndex_886 = (I_maxIndex_886 + 1); this_108 = I_maxIndex_886; I_typeId_210[this_108] = 5; } else { error206("Out of memory: Could not create B.", "when calling error in genericsSubstitute2, line 7"); this_108 = 0; }; } else { I_firstFree_146 = (I_firstFree_146 - 1); this_108 = I_nextFree_207[I_firstFree_146]; I_typeId_210[this_108] = 5; }; wurst_stack_depth_125 = ((wurst_stack_depth_125 - 1) - 1); return this_108; } function error206(string msg575, string __wurst_stackPos595) { local integer stacktraceIndex174 local integer stacktraceLimit471 wurst_stack_542[wurst_stack_depth_125] = __wurst_stackPos_595; wurst_stack_depth_125 = (wurst_stack_depth_125 + 1); __wurst_stackPos_595 = ""; stacktraceIndex_174 = wurst_stack_depth_125; stacktraceLimit_471 = 0; loop { stacktraceIndex_174 = (stacktraceIndex_174 - 1); stacktraceLimit_471 = (stacktraceLimit_471 + 1); exitwhen ((stacktraceLimit_471 > 20) or (stacktraceIndex_174 < 0)); __wurst_stackPos_595 = (__wurst_stackPos_595 + (" " + wurst_stack_542[stacktraceIndex_174])); }; $debugPrint107((msg_575 + (" " + __wurst_stackPos_595))); wurst_stack_depth_125 = (wurst_stack_depth_125 - 1); }