array A_nextFree213 integer A_firstFree897 integer A_maxIndex906 array A_typeId168 integer wurst_stack_depth151 array wurst_stack181 integer A_firstFree897 = 0 integer A_maxIndex906 = 0 integer wurst_stack_depth151 = 0 function initGlobals139() { } function main202() { initGlobals139(); init_test515("when calling init_test in genericsNull, line 1"); } function config635() { } function init_test515(string __wurst_stackPos729) { local integer this680 wurst_stack_181[wurst_stack_depth_151] = __wurst_stackPos_729; wurst_stack_depth_151 = (wurst_stack_depth_151 + 1); this_680 = new_A191("when calling new_A in genericsNull, line 9"); wurst_stack_181[wurst_stack_depth_151] = "when calling foo in genericsNull, line 9"; wurst_stack_depth_151 = (wurst_stack_depth_151 + 1); if (A_typeId_168[this_680] == 0) { if (this_680 == 0) { error127("Nullpointer exception when calling A.foo", "when calling error in genericsNull, line 3"); } else { error127("Called A.foo on invalid object.", "when calling error in genericsNull, line 3"); }; } else { }; wurst_stack_depth_151 = ((wurst_stack_depth_151 - 1) - 1); } function new_A191(string __wurst_stackPos185) returns integer { local integer this204 wurst_stack_181[wurst_stack_depth_151] = __wurst_stackPos_185; wurst_stack_depth_151 = (wurst_stack_depth_151 + 1); wurst_stack_181[wurst_stack_depth_151] = "when calling alloc_A in genericsNull, line 2"; wurst_stack_depth_151 = (wurst_stack_depth_151 + 1); if (A_firstFree_897 == 0) { if (A_maxIndex_906 < 32768) { A_maxIndex_906 = (A_maxIndex_906 + 1); this_204 = A_maxIndex_906; A_typeId_168[this_204] = 1; } else { error127("Out of memory: Could not create A.", "when calling error in genericsNull, line 2"); this_204 = 0; }; } else { A_firstFree_897 = (A_firstFree_897 - 1); this_204 = A_nextFree_213[A_firstFree_897]; A_typeId_168[this_204] = 1; }; wurst_stack_depth_151 = ((wurst_stack_depth_151 - 1) - 1); return this_204; } function error127(string msg162, string __wurst_stackPos158) { local integer stacktraceIndex662 local integer stacktraceLimit902 wurst_stack_181[wurst_stack_depth_151] = __wurst_stackPos_158; wurst_stack_depth_151 = (wurst_stack_depth_151 + 1); __wurst_stackPos_158 = ""; stacktraceIndex_662 = wurst_stack_depth_151; stacktraceLimit_902 = 0; loop { stacktraceIndex_662 = (stacktraceIndex_662 - 1); stacktraceLimit_902 = (stacktraceLimit_902 + 1); exitwhen ((stacktraceLimit_902 > 20) or (stacktraceIndex_662 < 0)); __wurst_stackPos_158 = (__wurst_stackPos_158 + (" " + wurst_stack_181[stacktraceIndex_662])); }; $debugPrint504((msg_162 + (" " + __wurst_stackPos_158))); wurst_stack_depth_151 = (wurst_stack_depth_151 - 1); }