integer FoldClosure_firstFree397 integer FoldClosure_maxIndex976 array LinkedList_nextFree152 integer LinkedList_firstFree717 integer LinkedList_maxIndex130 array LinkedList_typeId369 integer wurst_stack_depth302 array wurst_stack964 integer FoldClosure_firstFree397 = 0 integer FoldClosure_maxIndex976 = 0 integer LinkedList_firstFree717 = 0 integer LinkedList_maxIndex130 = 0 integer wurst_stack_depth302 = 0 function initGlobals981() { } function main154() { initGlobals981(); init_test768("when calling init_test in strangeFoldl, line 1"); } function config929() { } function init_test768(string __wurst_stackPos193) { local integer x179 wurst_stack_964[wurst_stack_depth_302] = __wurst_stackPos_193; wurst_stack_depth_302 = (wurst_stack_depth_302 + 1); x_179 = new_LinkedList150("when calling new_LinkedList in strangeFoldl, line 10"); wurst_stack_964[wurst_stack_depth_302] = "when calling alloc_FoldClosure_foldl_test in strangeFoldl, line 11"; wurst_stack_depth_302 = (wurst_stack_depth_302 + 1); if (FoldClosure_firstFree_397 == 0) { if (FoldClosure_maxIndex_976 < 32768) { FoldClosure_maxIndex_976 = (FoldClosure_maxIndex_976 + 1); } else { error150("Out of memory: Could not create FoldClosure_foldl_test.", "when calling error in strangeFoldl, line 11"); }; } else { FoldClosure_firstFree_397 = (FoldClosure_firstFree_397 - 1); }; wurst_stack_depth_302 = (wurst_stack_depth_302 - 1); wurst_stack_964[wurst_stack_depth_302] = "when calling foldl in strangeFoldl, line 11"; wurst_stack_depth_302 = (wurst_stack_depth_302 + 1); if (LinkedList_typeId_369[x_179] == 0) { if (x_179 == 0) { error150("Nullpointer exception when calling LinkedList.foldl", "when calling error in strangeFoldl, line 5"); } else { error150("Called LinkedList.foldl on invalid object.", "when calling error in strangeFoldl, line 5"); }; } else { }; wurst_stack_depth_302 = ((wurst_stack_depth_302 - 1) - 1); } function new_LinkedList150(string __wurst_stackPos182) returns integer { local integer this771 wurst_stack_964[wurst_stack_depth_302] = __wurst_stackPos_182; wurst_stack_depth_302 = (wurst_stack_depth_302 + 1); wurst_stack_964[wurst_stack_depth_302] = "when calling alloc_LinkedList in strangeFoldl, line 3"; wurst_stack_depth_302 = (wurst_stack_depth_302 + 1); if (LinkedList_firstFree_717 == 0) { if (LinkedList_maxIndex_130 < 32768) { LinkedList_maxIndex_130 = (LinkedList_maxIndex_130 + 1); this_771 = LinkedList_maxIndex_130; LinkedList_typeId_369[this_771] = 3; } else { error150("Out of memory: Could not create LinkedList.", "when calling error in strangeFoldl, line 3"); this_771 = 0; }; } else { LinkedList_firstFree_717 = (LinkedList_firstFree_717 - 1); this_771 = LinkedList_nextFree_152[LinkedList_firstFree_717]; LinkedList_typeId_369[this_771] = 3; }; wurst_stack_depth_302 = ((wurst_stack_depth_302 - 1) - 1); return this_771; } function error150(string msg560, string __wurst_stackPos153) { local integer stacktraceIndex180 local integer stacktraceLimit116 wurst_stack_964[wurst_stack_depth_302] = __wurst_stackPos_153; wurst_stack_depth_302 = (wurst_stack_depth_302 + 1); __wurst_stackPos_153 = ""; stacktraceIndex_180 = wurst_stack_depth_302; stacktraceLimit_116 = 0; loop { stacktraceIndex_180 = (stacktraceIndex_180 - 1); stacktraceLimit_116 = (stacktraceLimit_116 + 1); exitwhen ((stacktraceLimit_116 > 20) or (stacktraceIndex_180 < 0)); __wurst_stackPos_153 = (__wurst_stackPos_153 + (" " + wurst_stack_964[stacktraceIndex_180])); }; $debugPrint317((msg_560 + (" " + __wurst_stackPos_153))); wurst_stack_depth_302 = (wurst_stack_depth_302 - 1); }