array A_nextFree386 integer A_firstFree152 integer A_maxIndex148 array A_typeId104 integer wurst_stack_depth134 array wurst_stack174 integer A_firstFree152 = 0 integer A_maxIndex148 = 0 integer wurst_stack_depth134 = 0 function initGlobals202() { } function main212() { initGlobals202(); init_test177("when calling init_test in genericsNull, line 1"); } function config610() { } function init_test177(string __wurst_stackPos209) { local integer this795 wurst_stack_174[wurst_stack_depth_134] = __wurst_stackPos_209; wurst_stack_depth_134 = (wurst_stack_depth_134 + 1); this_795 = new_A154("when calling new_A in genericsNull, line 9"); wurst_stack_174[wurst_stack_depth_134] = "when calling foo in genericsNull, line 9"; wurst_stack_depth_134 = (wurst_stack_depth_134 + 1); if (A_typeId_104[this_795] == 0) { if (this_795 == 0) { error180("Nullpointer exception when calling A.foo", "when calling error in genericsNull, line 3"); } else { error180("Called A.foo on invalid object.", "when calling error in genericsNull, line 3"); }; } else { }; wurst_stack_depth_134 = ((wurst_stack_depth_134 - 1) - 1); } function new_A154(string __wurst_stackPos957) returns integer { local integer this637 wurst_stack_174[wurst_stack_depth_134] = __wurst_stackPos_957; wurst_stack_depth_134 = (wurst_stack_depth_134 + 1); wurst_stack_174[wurst_stack_depth_134] = "when calling alloc_A in genericsNull, line 2"; wurst_stack_depth_134 = (wurst_stack_depth_134 + 1); if (A_firstFree_152 == 0) { if (A_maxIndex_148 < 32768) { A_maxIndex_148 = (A_maxIndex_148 + 1); this_637 = A_maxIndex_148; A_typeId_104[this_637] = 1; } else { error180("Out of memory: Could not create A.", "when calling error in genericsNull, line 2"); this_637 = 0; }; } else { A_firstFree_152 = (A_firstFree_152 - 1); this_637 = A_nextFree_386[A_firstFree_152]; A_typeId_104[this_637] = 1; }; wurst_stack_depth_134 = ((wurst_stack_depth_134 - 1) - 1); return this_637; } function error180(string msg115, string __wurst_stackPos201) { local integer stacktraceIndex187 local integer stacktraceLimit164 wurst_stack_174[wurst_stack_depth_134] = __wurst_stackPos_201; wurst_stack_depth_134 = (wurst_stack_depth_134 + 1); __wurst_stackPos_201 = ""; stacktraceIndex_187 = wurst_stack_depth_134; stacktraceLimit_164 = 0; loop { stacktraceIndex_187 = (stacktraceIndex_187 - 1); stacktraceLimit_164 = (stacktraceLimit_164 + 1); exitwhen ((stacktraceLimit_164 > 20) or (stacktraceIndex_187 < 0)); __wurst_stackPos_201 = (__wurst_stackPos_201 + (" " + wurst_stack_174[stacktraceIndex_187])); }; $debugPrint114((msg_115 + (" " + __wurst_stackPos_201))); wurst_stack_depth_134 = (wurst_stack_depth_134 - 1); }