array C_nextFree234 integer C_firstFree155 integer C_maxIndex362 array C_typeId194 integer wurst_stack_depth124 array wurst_stack195 integer C_firstFree155 = 0 integer C_maxIndex362 = 0 integer wurst_stack_depth124 = 0 function initGlobals963() { } function main509() { initGlobals963(); init_test163("when calling init_test in varargOverride, line 1"); } function config755() { } function init_test163(string __wurst_stackPos210) { local integer c829 local integer d165 wurst_stack_195[wurst_stack_depth_124] = __wurst_stackPos_210; wurst_stack_depth_124 = (wurst_stack_depth_124 + 1); c_829 = new_C199("when calling new_C in varargOverride, line 16"); d_165 = new_D409("when calling new_D in varargOverride, line 17"); if (((dispatch_C_test_C_foo_2204(c_829, 1, 2, "when calling foo in varargOverride, line 18") == 3) and (dispatch_C_test_C_foo_2204(d_165, 1, 2, "when calling foo in varargOverride, line 18") == 2)) and (dispatch_C_test_C_foo_4782(d_165, 1, 2, 3, 4, "when calling foo in varargOverride, line 18") == 24)) { testSuccess155(); } else { }; wurst_stack_depth_124 = (wurst_stack_depth_124 - 1); } IS_NATIVE function testSuccess155() { } function new_C199(string __wurst_stackPos651) returns integer { local integer this349 wurst_stack_195[wurst_stack_depth_124] = __wurst_stackPos_651; wurst_stack_depth_124 = (wurst_stack_depth_124 + 1); wurst_stack_195[wurst_stack_depth_124] = "when calling alloc_C in varargOverride, line 3"; wurst_stack_depth_124 = (wurst_stack_depth_124 + 1); if (C_firstFree_155 == 0) { if (C_maxIndex_362 < 32768) { C_maxIndex_362 = (C_maxIndex_362 + 1); this_349 = C_maxIndex_362; C_typeId_194[this_349] = 1; } else { error285("Out of memory: Could not create C.", "when calling error in varargOverride, line 3"); this_349 = 0; }; } else { C_firstFree_155 = (C_firstFree_155 - 1); this_349 = C_nextFree_234[C_firstFree_155]; C_typeId_194[this_349] = 1; }; wurst_stack_depth_124 = ((wurst_stack_depth_124 - 1) - 1); return this_349; } function new_D409(string __wurst_stackPos858) returns integer { local integer this240 wurst_stack_195[wurst_stack_depth_124] = __wurst_stackPos_858; wurst_stack_depth_124 = (wurst_stack_depth_124 + 1); wurst_stack_195[wurst_stack_depth_124] = "when calling alloc_D in varargOverride, line 9"; wurst_stack_depth_124 = (wurst_stack_depth_124 + 1); if (C_firstFree_155 == 0) { if (C_maxIndex_362 < 32768) { C_maxIndex_362 = (C_maxIndex_362 + 1); this_240 = C_maxIndex_362; C_typeId_194[this_240] = 2; } else { error285("Out of memory: Could not create D.", "when calling error in varargOverride, line 9"); this_240 = 0; }; } else { C_firstFree_155 = (C_firstFree_155 - 1); this_240 = C_nextFree_234[C_firstFree_155]; C_typeId_194[this_240] = 2; }; wurst_stack_depth_124 = ((wurst_stack_depth_124 - 1) - 1); return this_240; } function error285(string msg167, string __wurst_stackPos955) { local integer stacktraceIndex859 local integer stacktraceLimit843 wurst_stack_195[wurst_stack_depth_124] = __wurst_stackPos_955; wurst_stack_depth_124 = (wurst_stack_depth_124 + 1); __wurst_stackPos_955 = ""; stacktraceIndex_859 = wurst_stack_depth_124; stacktraceLimit_843 = 0; loop { stacktraceIndex_859 = (stacktraceIndex_859 - 1); stacktraceLimit_843 = (stacktraceLimit_843 + 1); exitwhen ((stacktraceLimit_843 > 20) or (stacktraceIndex_859 < 0)); __wurst_stackPos_955 = (__wurst_stackPos_955 + (" " + wurst_stack_195[stacktraceIndex_859])); }; $debugPrint187((msg_167 + (" " + __wurst_stackPos_955))); wurst_stack_depth_124 = (wurst_stack_depth_124 - 1); } function dispatch_C_test_C_foo_2204(integer this117, integer xs_0212, integer xs_1166, string __wurst_stackPos892) returns integer { wurst_stack_195[wurst_stack_depth_124] = __wurst_stackPos_892; wurst_stack_depth_124 = (wurst_stack_depth_124 + 1); if (C_typeId_194[this_117] == 0) { if (this_117 == 0) { error285("Nullpointer exception when calling C.foo", "when calling error in varargOverride, line 4"); } else { error285("Called C.foo on invalid object.", "when calling error in varargOverride, line 4"); }; } else { }; if (C_typeId_194[this_117] <= 1) { this_117 = ((0 + xs_0_212) + xs_1_166); } else { this_117 = ((1 * xs_0_212) * xs_1_166); }; wurst_stack_depth_124 = (wurst_stack_depth_124 - 1); return this_117; } function dispatch_C_test_C_foo_4782(integer this131, integer xs_0155, integer xs_1473, integer xs_2154, integer xs_3579, string __wurst_stackPos100) returns integer { wurst_stack_195[wurst_stack_depth_124] = __wurst_stackPos_100; wurst_stack_depth_124 = (wurst_stack_depth_124 + 1); if (C_typeId_194[this_131] == 0) { if (this_131 == 0) { error285("Nullpointer exception when calling C.foo", "when calling error in varargOverride, line 4"); } else { error285("Called C.foo on invalid object.", "when calling error in varargOverride, line 4"); }; } else { }; if (C_typeId_194[this_131] <= 1) { this_131 = ((((0 + xs_0_155) + xs_1_473) + xs_2_154) + xs_3_579); } else { this_131 = ((((1 * xs_0_155) * xs_1_473) * xs_2_154) * xs_3_579); }; wurst_stack_depth_124 = (wurst_stack_depth_124 - 1); return this_131; }