array A_nextFree423 integer A_firstFree193 integer A_maxIndex589 array A_typeId115 integer C_firstFree535 integer C_maxIndex390 integer wurst_stack_depth140 array wurst_stack238 integer A_firstFree193 = 0 integer A_maxIndex589 = 0 integer C_firstFree535 = 0 integer C_maxIndex390 = 0 integer wurst_stack_depth140 = 0 function initGlobals146() { } function main390() { initGlobals146(); init_Test125("when calling init_Test in genericsSubstitute1, line 1"); } function config172() { } function init_Test125(string __wurst_stackPos799) { local integer b616 wurst_stack_238[wurst_stack_depth_140] = __wurst_stackPos_799; wurst_stack_depth_140 = (wurst_stack_depth_140 + 1); b_616 = new_B841("when calling new_B in genericsSubstitute1, line 8"); wurst_stack_238[wurst_stack_depth_140] = "when calling new_C in genericsSubstitute1, line 9"; wurst_stack_depth_140 = (wurst_stack_depth_140 + 1); wurst_stack_238[wurst_stack_depth_140] = "when calling alloc_C in genericsSubstitute1, line 6"; wurst_stack_depth_140 = (wurst_stack_depth_140 + 1); if (C_firstFree_535 == 0) { if (C_maxIndex_390 < 32768) { C_maxIndex_390 = (C_maxIndex_390 + 1); } else { error190("Out of memory: Could not create C.", "when calling error in genericsSubstitute1, line 6"); }; } else { C_firstFree_535 = (C_firstFree_535 - 1); }; wurst_stack_depth_140 = ((wurst_stack_depth_140 - 1) - 1); wurst_stack_238[wurst_stack_depth_140] = "when calling bla in genericsSubstitute1, line 9"; wurst_stack_depth_140 = (wurst_stack_depth_140 + 1); if (A_typeId_115[b_616] == 0) { if (b_616 == 0) { error190("Nullpointer exception when calling A.bla", "when calling error in genericsSubstitute1, line 4"); } else { error190("Called A.bla on invalid object.", "when calling error in genericsSubstitute1, line 4"); }; } else { }; wurst_stack_depth_140 = ((wurst_stack_depth_140 - 1) - 1); } function new_B841(string __wurst_stackPos118) returns integer { local integer this143 wurst_stack_238[wurst_stack_depth_140] = __wurst_stackPos_118; wurst_stack_depth_140 = (wurst_stack_depth_140 + 1); wurst_stack_238[wurst_stack_depth_140] = "when calling alloc_B in genericsSubstitute1, line 5"; wurst_stack_depth_140 = (wurst_stack_depth_140 + 1); if (A_firstFree_193 == 0) { if (A_maxIndex_589 < 32768) { A_maxIndex_589 = (A_maxIndex_589 + 1); this_143 = A_maxIndex_589; A_typeId_115[this_143] = 2; } else { error190("Out of memory: Could not create B.", "when calling error in genericsSubstitute1, line 5"); this_143 = 0; }; } else { A_firstFree_193 = (A_firstFree_193 - 1); this_143 = A_nextFree_423[A_firstFree_193]; A_typeId_115[this_143] = 2; }; wurst_stack_depth_140 = ((wurst_stack_depth_140 - 1) - 1); return this_143; } function error190(string msg710, string __wurst_stackPos951) { local integer stacktraceIndex175 local integer stacktraceLimit605 wurst_stack_238[wurst_stack_depth_140] = __wurst_stackPos_951; wurst_stack_depth_140 = (wurst_stack_depth_140 + 1); __wurst_stackPos_951 = ""; stacktraceIndex_175 = wurst_stack_depth_140; stacktraceLimit_605 = 0; loop { stacktraceIndex_175 = (stacktraceIndex_175 - 1); stacktraceLimit_605 = (stacktraceLimit_605 + 1); exitwhen ((stacktraceLimit_605 > 20) or (stacktraceIndex_175 < 0)); __wurst_stackPos_951 = (__wurst_stackPos_951 + (" " + wurst_stack_238[stacktraceIndex_175])); }; $debugPrint357((msg_710 + (" " + __wurst_stackPos_951))); wurst_stack_depth_140 = (wurst_stack_depth_140 - 1); }