array I_nextFree123 integer I_firstFree165 integer I_maxIndex114 array I_typeId136 integer C_firstFree113 integer C_maxIndex383 integer D_firstFree387 integer D_maxIndex412 integer wurst_stack_depth748 array wurst_stack138 integer I_firstFree165 = 0 integer I_maxIndex114 = 0 integer C_firstFree113 = 0 integer C_maxIndex383 = 0 integer D_firstFree387 = 0 integer D_maxIndex412 = 0 integer wurst_stack_depth748 = 0 function initGlobals169() { } function main136() { initGlobals169(); init_Test211("when calling init_Test in genericsSubstitute2, line 1"); } function config119() { } function init_Test211(string __wurst_stackPos725) { local integer b394 wurst_stack_138[wurst_stack_depth_748] = __wurst_stackPos_725; wurst_stack_depth_748 = (wurst_stack_depth_748 + 1); b_394 = new_B968("when calling new_B in genericsSubstitute2, line 11"); wurst_stack_138[wurst_stack_depth_748] = "when calling new_D in genericsSubstitute2, line 12"; wurst_stack_depth_748 = (wurst_stack_depth_748 + 1); wurst_stack_138[wurst_stack_depth_748] = "when calling alloc_D in genericsSubstitute2, line 9"; wurst_stack_depth_748 = (wurst_stack_depth_748 + 1); if (D_firstFree_387 == 0) { if (D_maxIndex_412 < 32768) { D_maxIndex_412 = (D_maxIndex_412 + 1); } else { error139("Out of memory: Could not create D.", "when calling error in genericsSubstitute2, line 9"); }; } else { D_firstFree_387 = (D_firstFree_387 - 1); }; wurst_stack_depth_748 = ((wurst_stack_depth_748 - 1) - 1); wurst_stack_138[wurst_stack_depth_748] = "when calling new_C in genericsSubstitute2, line 12"; wurst_stack_depth_748 = (wurst_stack_depth_748 + 1); wurst_stack_138[wurst_stack_depth_748] = "when calling alloc_C in genericsSubstitute2, line 8"; wurst_stack_depth_748 = (wurst_stack_depth_748 + 1); if (C_firstFree_113 == 0) { if (C_maxIndex_383 < 32768) { C_maxIndex_383 = (C_maxIndex_383 + 1); } else { error139("Out of memory: Could not create C.", "when calling error in genericsSubstitute2, line 8"); }; } else { C_firstFree_113 = (C_firstFree_113 - 1); }; wurst_stack_depth_748 = ((wurst_stack_depth_748 - 1) - 1); wurst_stack_138[wurst_stack_depth_748] = "when calling bla in genericsSubstitute2, line 12"; wurst_stack_depth_748 = (wurst_stack_depth_748 + 1); if (I_typeId_136[b_394] == 0) { if (b_394 == 0) { error139("Nullpointer exception when calling I.bla", "when calling error in genericsSubstitute2, line 4"); } else { error139("Called I.bla on invalid object.", "when calling error in genericsSubstitute2, line 4"); }; } else { }; wurst_stack_depth_748 = ((wurst_stack_depth_748 - 1) - 1); } function new_B968(string __wurst_stackPos854) returns integer { local integer this202 wurst_stack_138[wurst_stack_depth_748] = __wurst_stackPos_854; wurst_stack_depth_748 = (wurst_stack_depth_748 + 1); wurst_stack_138[wurst_stack_depth_748] = "when calling alloc_B in genericsSubstitute2, line 7"; wurst_stack_depth_748 = (wurst_stack_depth_748 + 1); if (I_firstFree_165 == 0) { if (I_maxIndex_114 < 32768) { I_maxIndex_114 = (I_maxIndex_114 + 1); this_202 = I_maxIndex_114; I_typeId_136[this_202] = 5; } else { error139("Out of memory: Could not create B.", "when calling error in genericsSubstitute2, line 7"); this_202 = 0; }; } else { I_firstFree_165 = (I_firstFree_165 - 1); this_202 = I_nextFree_123[I_firstFree_165]; I_typeId_136[this_202] = 5; }; wurst_stack_depth_748 = ((wurst_stack_depth_748 - 1) - 1); return this_202; } function error139(string msg205, string __wurst_stackPos139) { local integer stacktraceIndex559 local integer stacktraceLimit681 wurst_stack_138[wurst_stack_depth_748] = __wurst_stackPos_139; wurst_stack_depth_748 = (wurst_stack_depth_748 + 1); __wurst_stackPos_139 = ""; stacktraceIndex_559 = wurst_stack_depth_748; stacktraceLimit_681 = 0; loop { stacktraceIndex_559 = (stacktraceIndex_559 - 1); stacktraceLimit_681 = (stacktraceLimit_681 + 1); exitwhen ((stacktraceLimit_681 > 20) or (stacktraceIndex_559 < 0)); __wurst_stackPos_139 = (__wurst_stackPos_139 + (" " + wurst_stack_138[stacktraceIndex_559])); }; $debugPrint342((msg_205 + (" " + __wurst_stackPos_139))); wurst_stack_depth_748 = (wurst_stack_depth_748 - 1); }