array C_nextFree361 integer C_firstFree152 integer C_maxIndex145 array C_typeId171 integer wurst_stack_depth267 array wurst_stack424 integer C_firstFree152 = 0 integer C_maxIndex145 = 0 integer wurst_stack_depth267 = 0 function initGlobals178() { } function main130() { initGlobals178(); init_test354("when calling init_test in modules_abstract, line 1"); } function config166() { } function init_test354(string __wurst_stackPos130) { local integer c142 wurst_stack_424[wurst_stack_depth_267] = __wurst_stackPos_130; wurst_stack_depth_267 = (wurst_stack_depth_267 + 1); c_142 = new_C120("when calling new_C in modules_abstract, line 11"); wurst_stack_424[wurst_stack_depth_267] = "when calling foo in modules_abstract, line 12"; wurst_stack_depth_267 = (wurst_stack_depth_267 + 1); if (C_typeId_171[c_142] == 0) { if (c_142 == 0) { error154("Nullpointer exception when calling C.foo", "when calling error in modules_abstract, line 7"); } else { error154("Called C.foo on invalid object.", "when calling error in modules_abstract, line 7"); }; } else { }; wurst_stack_depth_267 = (wurst_stack_depth_267 - 1); testSuccess183(); wurst_stack_depth_267 = (wurst_stack_depth_267 - 1); } IS_NATIVE function testSuccess183() { } function new_C120(string __wurst_stackPos741) returns integer { local integer this686 wurst_stack_424[wurst_stack_depth_267] = __wurst_stackPos_741; wurst_stack_depth_267 = (wurst_stack_depth_267 + 1); wurst_stack_424[wurst_stack_depth_267] = "when calling alloc_C in modules_abstract, line 5"; wurst_stack_depth_267 = (wurst_stack_depth_267 + 1); if (C_firstFree_152 == 0) { if (C_maxIndex_145 < 32768) { C_maxIndex_145 = (C_maxIndex_145 + 1); this_686 = C_maxIndex_145; C_typeId_171[this_686] = 1; } else { error154("Out of memory: Could not create C.", "when calling error in modules_abstract, line 5"); this_686 = 0; }; } else { C_firstFree_152 = (C_firstFree_152 - 1); this_686 = C_nextFree_361[C_firstFree_152]; C_typeId_171[this_686] = 1; }; wurst_stack_depth_267 = ((wurst_stack_depth_267 - 1) - 1); return this_686; } function error154(string msg146, string __wurst_stackPos862) { local integer stacktraceIndex162 local integer stacktraceLimit179 wurst_stack_424[wurst_stack_depth_267] = __wurst_stackPos_862; wurst_stack_depth_267 = (wurst_stack_depth_267 + 1); __wurst_stackPos_862 = ""; stacktraceIndex_162 = wurst_stack_depth_267; stacktraceLimit_179 = 0; loop { stacktraceIndex_162 = (stacktraceIndex_162 - 1); stacktraceLimit_179 = (stacktraceLimit_179 + 1); exitwhen ((stacktraceLimit_179 > 20) or (stacktraceIndex_162 < 0)); __wurst_stackPos_862 = (__wurst_stackPos_862 + (" " + wurst_stack_424[stacktraceIndex_162])); }; $debugPrint169((msg_146 + (" " + __wurst_stackPos_862))); wurst_stack_depth_267 = (wurst_stack_depth_267 - 1); }