array C_nextFree984 integer C_firstFree804 integer C_maxIndex780 array C_typeId330 integer wurst_stack_depth508 array wurst_stack661 integer C_firstFree804 = 0 integer C_maxIndex780 = 0 integer wurst_stack_depth508 = 0 function initGlobals829() { } function main184() { initGlobals829(); init_test111("when calling init_test in genericToIndexVarargs, line 1"); } function config101() { } function init_test111(string __wurst_stackPos158) { local integer c112 wurst_stack_661[wurst_stack_depth_508] = __wurst_stackPos_158; wurst_stack_depth_508 = (wurst_stack_depth_508 + 1); c_112 = new_C405("when calling new_C in genericToIndexVarargs, line 15"); wurst_stack_661[wurst_stack_depth_508] = "when calling setX in genericToIndexVarargs, line 16"; wurst_stack_depth_508 = (wurst_stack_depth_508 + 1); if (C_typeId_330[c_112] == 0) { if (c_112 == 0) { error646("Nullpointer exception when calling C.setX", "when calling error in genericToIndexVarargs, line 5"); } else { error646("Called C.setX on invalid object.", "when calling error in genericToIndexVarargs, line 5"); }; } else { }; wurst_stack_depth_508 = (wurst_stack_depth_508 - 1); wurst_stack_661[wurst_stack_depth_508] = "when calling getX in genericToIndexVarargs, line 17"; wurst_stack_depth_508 = (wurst_stack_depth_508 + 1); if (C_typeId_330[c_112] == 0) { if (c_112 == 0) { error646("Nullpointer exception when calling C.getX", "when calling error in genericToIndexVarargs, line 8"); } else { error646("Called C.getX on invalid object.", "when calling error in genericToIndexVarargs, line 8"); }; } else { }; wurst_stack_depth_508 = (wurst_stack_depth_508 - 1); if ("42" == "42") { testSuccess315(); } else { }; wurst_stack_depth_508 = (wurst_stack_depth_508 - 1); } IS_NATIVE function testSuccess315() { } function new_C405(string __wurst_stackPos105) returns integer { local integer this136 wurst_stack_661[wurst_stack_depth_508] = __wurst_stackPos_105; wurst_stack_depth_508 = (wurst_stack_depth_508 + 1); wurst_stack_661[wurst_stack_depth_508] = "when calling alloc_C in genericToIndexVarargs, line 3"; wurst_stack_depth_508 = (wurst_stack_depth_508 + 1); if (C_firstFree_804 == 0) { if (C_maxIndex_780 < 32768) { C_maxIndex_780 = (C_maxIndex_780 + 1); this_136 = C_maxIndex_780; C_typeId_330[this_136] = 1; } else { error646("Out of memory: Could not create C.", "when calling error in genericToIndexVarargs, line 3"); this_136 = 0; }; } else { C_firstFree_804 = (C_firstFree_804 - 1); this_136 = C_nextFree_984[C_firstFree_804]; C_typeId_330[this_136] = 1; }; wurst_stack_depth_508 = ((wurst_stack_depth_508 - 1) - 1); return this_136; } function error646(string msg153, string __wurst_stackPos198) { local integer stacktraceIndex368 local integer stacktraceLimit791 wurst_stack_661[wurst_stack_depth_508] = __wurst_stackPos_198; wurst_stack_depth_508 = (wurst_stack_depth_508 + 1); __wurst_stackPos_198 = ""; stacktraceIndex_368 = wurst_stack_depth_508; stacktraceLimit_791 = 0; loop { stacktraceIndex_368 = (stacktraceIndex_368 - 1); stacktraceLimit_791 = (stacktraceLimit_791 + 1); exitwhen ((stacktraceLimit_791 > 20) or (stacktraceIndex_368 < 0)); __wurst_stackPos_198 = (__wurst_stackPos_198 + (" " + wurst_stack_661[stacktraceIndex_368])); }; $debugPrint124((msg_153 + (" " + __wurst_stackPos_198))); wurst_stack_depth_508 = (wurst_stack_depth_508 - 1); }