array C_nextFree172 integer C_firstFree513 integer C_maxIndex377 array C_typeId127 integer wurst_stack_depth185 array wurst_stack175 integer C_firstFree513 = 0 integer C_maxIndex377 = 0 integer wurst_stack_depth185 = 0 function initGlobals154() { } function main115() { initGlobals154(); init_test258("when calling init_test in modules_abstract, line 1"); } function config822() { } function init_test258(string __wurst_stackPos137) { local integer c194 wurst_stack_175[wurst_stack_depth_185] = __wurst_stackPos_137; wurst_stack_depth_185 = (wurst_stack_depth_185 + 1); c_194 = new_C400("when calling new_C in modules_abstract, line 11"); wurst_stack_175[wurst_stack_depth_185] = "when calling foo in modules_abstract, line 12"; wurst_stack_depth_185 = (wurst_stack_depth_185 + 1); if (C_typeId_127[c_194] == 0) { if (c_194 == 0) { error167("Nullpointer exception when calling C.foo", "when calling error in modules_abstract, line 7"); } else { error167("Called C.foo on invalid object.", "when calling error in modules_abstract, line 7"); }; } else { }; wurst_stack_depth_185 = (wurst_stack_depth_185 - 1); testSuccess636(); wurst_stack_depth_185 = (wurst_stack_depth_185 - 1); } IS_NATIVE function testSuccess636() { } function new_C400(string __wurst_stackPos178) returns integer { local integer this108 wurst_stack_175[wurst_stack_depth_185] = __wurst_stackPos_178; wurst_stack_depth_185 = (wurst_stack_depth_185 + 1); wurst_stack_175[wurst_stack_depth_185] = "when calling alloc_C in modules_abstract, line 5"; wurst_stack_depth_185 = (wurst_stack_depth_185 + 1); if (C_firstFree_513 == 0) { if (C_maxIndex_377 < 32768) { C_maxIndex_377 = (C_maxIndex_377 + 1); this_108 = C_maxIndex_377; C_typeId_127[this_108] = 1; } else { error167("Out of memory: Could not create C.", "when calling error in modules_abstract, line 5"); this_108 = 0; }; } else { C_firstFree_513 = (C_firstFree_513 - 1); this_108 = C_nextFree_172[C_firstFree_513]; C_typeId_127[this_108] = 1; }; wurst_stack_depth_185 = ((wurst_stack_depth_185 - 1) - 1); return this_108; } function error167(string msg150, string __wurst_stackPos142) { local integer stacktraceIndex659 local integer stacktraceLimit183 wurst_stack_175[wurst_stack_depth_185] = __wurst_stackPos_142; wurst_stack_depth_185 = (wurst_stack_depth_185 + 1); __wurst_stackPos_142 = ""; stacktraceIndex_659 = wurst_stack_depth_185; stacktraceLimit_183 = 0; loop { stacktraceIndex_659 = (stacktraceIndex_659 - 1); stacktraceLimit_183 = (stacktraceLimit_183 + 1); exitwhen ((stacktraceLimit_183 > 20) or (stacktraceIndex_659 < 0)); __wurst_stackPos_142 = (__wurst_stackPos_142 + (" " + wurst_stack_175[stacktraceIndex_659])); }; $debugPrint786((msg_150 + (" " + __wurst_stackPos_142))); wurst_stack_depth_185 = (wurst_stack_depth_185 - 1); }