integer ToStringClosure_firstFree858 integer ToStringClosure_maxIndex392 array LinkedList_nextFree151 integer LinkedList_firstFree178 integer LinkedList_maxIndex134 integer wurst_stack_depth775 array wurst_stack849 integer ToStringClosure_firstFree858 = 0 integer ToStringClosure_maxIndex392 = 0 integer LinkedList_firstFree178 = 0 integer LinkedList_maxIndex134 = 0 integer wurst_stack_depth775 = 0 function initGlobals115() { } function main467() { initGlobals115(); init_test952("when calling init_test in genericFunctionOverload, line 1"); } function config161() { } function init_test952(string __wurst_stackPos719) { local integer this547 wurst_stack_849[wurst_stack_depth_775] = __wurst_stackPos_719; wurst_stack_depth_775 = (wurst_stack_depth_775 + 1); wurst_stack_849[wurst_stack_depth_775] = "when calling new_LinkedList in genericFunctionOverload, line 18"; wurst_stack_depth_775 = (wurst_stack_depth_775 + 1); wurst_stack_849[wurst_stack_depth_775] = "when calling alloc_LinkedList in genericFunctionOverload, line 3"; wurst_stack_depth_775 = (wurst_stack_depth_775 + 1); if (LinkedList_firstFree_178 == 0) { if (LinkedList_maxIndex_134 < 32768) { LinkedList_maxIndex_134 = (LinkedList_maxIndex_134 + 1); this_547 = LinkedList_maxIndex_134; } else { error765("Out of memory: Could not create LinkedList.", "when calling error in genericFunctionOverload, line 3"); this_547 = 0; }; } else { LinkedList_firstFree_178 = (LinkedList_firstFree_178 - 1); this_547 = LinkedList_nextFree_151[LinkedList_firstFree_178]; }; wurst_stack_depth_775 = ((wurst_stack_depth_775 - 1) - 1); LinkedList_foo205(this_547, "a", "when calling foo in genericFunctionOverload, line 19"); wurst_stack_depth_775 = (wurst_stack_depth_775 - 1); } function LinkedList_foo205(integer this166, string separator599, string __wurst_stackPos196) returns string { wurst_stack_849[wurst_stack_depth_775] = __wurst_stackPos_196; wurst_stack_depth_775 = (wurst_stack_depth_775 + 1); wurst_stack_849[wurst_stack_depth_775] = "when calling alloc_ToStringClosure_foo_test in genericFunctionOverload, line 10"; wurst_stack_depth_775 = (wurst_stack_depth_775 + 1); if (ToStringClosure_firstFree_858 == 0) { if (ToStringClosure_maxIndex_392 < 32768) { ToStringClosure_maxIndex_392 = (ToStringClosure_maxIndex_392 + 1); } else { error765("Out of memory: Could not create ToStringClosure_foo_test.", "when calling error in genericFunctionOverload, line 10"); }; } else { ToStringClosure_firstFree_858 = (ToStringClosure_firstFree_858 - 1); }; wurst_stack_depth_775 = (wurst_stack_depth_775 - 1); wurst_stack_849[wurst_stack_depth_775] = "when calling alloc_ToStringClosure_foo2_test in genericFunctionOverload, line 11"; wurst_stack_depth_775 = (wurst_stack_depth_775 + 1); if (ToStringClosure_firstFree_858 == 0) { if (ToStringClosure_maxIndex_392 < 32768) { ToStringClosure_maxIndex_392 = (ToStringClosure_maxIndex_392 + 1); } else { error765("Out of memory: Could not create ToStringClosure_foo2_test.", "when calling error in genericFunctionOverload, line 11"); }; } else { ToStringClosure_firstFree_858 = (ToStringClosure_firstFree_858 - 1); }; wurst_stack_depth_775 = ((wurst_stack_depth_775 - 1) - 1); return separator_599; } function error765(string msg391, string __wurst_stackPos201) { local integer stacktraceIndex804 local integer stacktraceLimit100 wurst_stack_849[wurst_stack_depth_775] = __wurst_stackPos_201; wurst_stack_depth_775 = (wurst_stack_depth_775 + 1); __wurst_stackPos_201 = ""; stacktraceIndex_804 = wurst_stack_depth_775; stacktraceLimit_100 = 0; loop { stacktraceIndex_804 = (stacktraceIndex_804 - 1); stacktraceLimit_100 = (stacktraceLimit_100 + 1); exitwhen ((stacktraceLimit_100 > 20) or (stacktraceIndex_804 < 0)); __wurst_stackPos_201 = (__wurst_stackPos_201 + (" " + wurst_stack_849[stacktraceIndex_804])); }; $debugPrint178((msg_391 + (" " + __wurst_stackPos_201))); wurst_stack_depth_775 = (wurst_stack_depth_775 - 1); }