array C_nextFree208 integer C_firstFree188 integer C_maxIndex369 array C_typeId818 integer wurst_stack_depth433 array wurst_stack668 integer C_firstFree188 = 0 integer C_maxIndex369 = 0 integer wurst_stack_depth433 = 0 function initGlobals111() { } function main244() { initGlobals111(); init_test224("when calling init_test in modules_abstract, line 1"); } function config133() { } function init_test224(string __wurst_stackPos294) { local integer c120 wurst_stack_668[wurst_stack_depth_433] = __wurst_stackPos_294; wurst_stack_depth_433 = (wurst_stack_depth_433 + 1); c_120 = new_C101("when calling new_C in modules_abstract, line 11"); wurst_stack_668[wurst_stack_depth_433] = "when calling foo in modules_abstract, line 12"; wurst_stack_depth_433 = (wurst_stack_depth_433 + 1); if (C_typeId_818[c_120] == 0) { if (c_120 == 0) { error118("Nullpointer exception when calling C.foo", "when calling error in modules_abstract, line 7"); } else { error118("Called C.foo on invalid object.", "when calling error in modules_abstract, line 7"); }; } else { }; wurst_stack_depth_433 = (wurst_stack_depth_433 - 1); testSuccess825(); wurst_stack_depth_433 = (wurst_stack_depth_433 - 1); } IS_NATIVE function testSuccess825() { } function new_C101(string __wurst_stackPos215) returns integer { local integer this132 wurst_stack_668[wurst_stack_depth_433] = __wurst_stackPos_215; wurst_stack_depth_433 = (wurst_stack_depth_433 + 1); wurst_stack_668[wurst_stack_depth_433] = "when calling alloc_C in modules_abstract, line 5"; wurst_stack_depth_433 = (wurst_stack_depth_433 + 1); if (C_firstFree_188 == 0) { if (C_maxIndex_369 < 32768) { C_maxIndex_369 = (C_maxIndex_369 + 1); this_132 = C_maxIndex_369; C_typeId_818[this_132] = 1; } else { error118("Out of memory: Could not create C.", "when calling error in modules_abstract, line 5"); this_132 = 0; }; } else { C_firstFree_188 = (C_firstFree_188 - 1); this_132 = C_nextFree_208[C_firstFree_188]; C_typeId_818[this_132] = 1; }; wurst_stack_depth_433 = ((wurst_stack_depth_433 - 1) - 1); return this_132; } function error118(string msg176, string __wurst_stackPos456) { local integer stacktraceIndex187 local integer stacktraceLimit175 wurst_stack_668[wurst_stack_depth_433] = __wurst_stackPos_456; wurst_stack_depth_433 = (wurst_stack_depth_433 + 1); __wurst_stackPos_456 = ""; stacktraceIndex_187 = wurst_stack_depth_433; stacktraceLimit_175 = 0; loop { stacktraceIndex_187 = (stacktraceIndex_187 - 1); stacktraceLimit_175 = (stacktraceLimit_175 + 1); exitwhen ((stacktraceLimit_175 > 20) or (stacktraceIndex_187 < 0)); __wurst_stackPos_456 = (__wurst_stackPos_456 + (" " + wurst_stack_668[stacktraceIndex_187])); }; $debugPrint111((msg_176 + (" " + __wurst_stackPos_456))); wurst_stack_depth_433 = (wurst_stack_depth_433 - 1); }