array test_s940 integer test_s_max181 array FoldClosure_nextFree140 integer FoldClosure_firstFree108 integer FoldClosure_maxIndex133 array FoldClosure_typeId135 array LinkedList_nextFree394 integer LinkedList_firstFree783 integer LinkedList_maxIndex106 array LinkedList_typeId134 array LinkedList_x533 integer wurst_stack_depth185 array wurst_stack803 integer test_s_max181 = -1 integer FoldClosure_firstFree108 = 0 integer FoldClosure_maxIndex133 = 0 integer LinkedList_firstFree783 = 0 integer LinkedList_maxIndex106 = 0 integer wurst_stack_depth185 = 0 function initGlobals209() { } function main694() { initGlobals209(); init_test590("when calling init_test in normalFoldlInfer, line 1"); } function config139() { } function init_test590(string __wurst_stackPos138) { local integer x195 wurst_stack_803[wurst_stack_depth_185] = __wurst_stackPos_138; wurst_stack_depth_185 = (wurst_stack_depth_185 + 1); test_s_max_181 = -1; x_195 = new_LinkedList347("when calling new_LinkedList in normalFoldlInfer, line 22"); LinkedList_x_533[x_195] = 5; wurst_stack_803[wurst_stack_depth_185] = "when calling toString in normalFoldlInfer, line 24"; wurst_stack_depth_185 = (wurst_stack_depth_185 + 1); if (LinkedList_typeId_134[x_195] == 0) { if (x_195 == 0) { error161("Nullpointer exception when calling LinkedList.toString", "when calling error in normalFoldlInfer, line 16"); } else { error161("Called LinkedList.toString on invalid object.", "when calling error in normalFoldlInfer, line 16"); }; } else { }; __wurst_stackPos_138 = LinkedList_toString181(x_195, "when calling toString in normalFoldlInfer, line 16"); wurst_stack_depth_185 = (wurst_stack_depth_185 - 1); if (__wurst_stackPos_138 == "[5,]") { testSuccess166(); } else { }; wurst_stack_depth_185 = (wurst_stack_depth_185 - 1); } IS_NATIVE IS_EXTERN @extern function I2S209(integer i117) returns string { } IS_NATIVE function testSuccess166() { } function run_wrapper675(integer this261, any t830, any q116) returns any { local string b104 b_104 = ((test_s_940[q_116] + I2S209((t_830 castTo integer))) + ","); test_s_max_181 = (test_s_max_181 + 1); test_s_940[test_s_max_181] = b_104; return test_s_max_181; } function LinkedList_toString181(integer this198, string __wurst_stackPos545) returns string { local integer temp193 local integer this175 wurst_stack_803[wurst_stack_depth_185] = __wurst_stackPos_545; wurst_stack_depth_185 = (wurst_stack_depth_185 + 1); test_s_max_181 = (test_s_max_181 + 1); test_s_940[test_s_max_181] = "["; temp_193 = test_s_max_181; wurst_stack_803[wurst_stack_depth_185] = "when calling alloc_FoldClosure_foldl_LinkedList_test in normalFoldlInfer, line 17"; wurst_stack_depth_185 = (wurst_stack_depth_185 + 1); if (FoldClosure_firstFree_108 == 0) { if (FoldClosure_maxIndex_133 < 32768) { FoldClosure_maxIndex_133 = (FoldClosure_maxIndex_133 + 1); this_175 = FoldClosure_maxIndex_133; FoldClosure_typeId_135[this_175] = 2; } else { error161("Out of memory: Could not create FoldClosure_foldl_LinkedList_test.", "when calling error in normalFoldlInfer, line 17"); this_175 = 0; }; } else { FoldClosure_firstFree_108 = (FoldClosure_firstFree_108 - 1); this_175 = FoldClosure_nextFree_140[FoldClosure_firstFree_108]; FoldClosure_typeId_135[this_175] = 2; }; wurst_stack_depth_185 = (wurst_stack_depth_185 - 1); __wurst_stackPos_545 = test_s_940[dispatch_LinkedList_test_LinkedList_foldl647(this_198, temp_193, this_175, "when calling foldl in normalFoldlInfer, line 17")]; wurst_stack_depth_185 = (wurst_stack_depth_185 - 1); return (__wurst_stackPos_545 + "]"); } function new_LinkedList347(string __wurst_stackPos111) returns integer { local integer this634 wurst_stack_803[wurst_stack_depth_185] = __wurst_stackPos_111; wurst_stack_depth_185 = (wurst_stack_depth_185 + 1); wurst_stack_803[wurst_stack_depth_185] = "when calling alloc_LinkedList in normalFoldlInfer, line 12"; wurst_stack_depth_185 = (wurst_stack_depth_185 + 1); if (LinkedList_firstFree_783 == 0) { if (LinkedList_maxIndex_106 < 32768) { LinkedList_maxIndex_106 = (LinkedList_maxIndex_106 + 1); this_634 = LinkedList_maxIndex_106; LinkedList_typeId_134[this_634] = 3; } else { error161("Out of memory: Could not create LinkedList.", "when calling error in normalFoldlInfer, line 12"); this_634 = 0; }; } else { LinkedList_firstFree_783 = (LinkedList_firstFree_783 - 1); this_634 = LinkedList_nextFree_394[LinkedList_firstFree_783]; LinkedList_typeId_134[this_634] = 3; }; wurst_stack_depth_185 = ((wurst_stack_depth_185 - 1) - 1); return this_634; } function error161(string msg414, string __wurst_stackPos209) { local integer stacktraceIndex121 local integer stacktraceLimit600 wurst_stack_803[wurst_stack_depth_185] = __wurst_stackPos_209; wurst_stack_depth_185 = (wurst_stack_depth_185 + 1); __wurst_stackPos_209 = ""; stacktraceIndex_121 = wurst_stack_depth_185; stacktraceLimit_600 = 0; loop { stacktraceIndex_121 = (stacktraceIndex_121 - 1); stacktraceLimit_600 = (stacktraceLimit_600 + 1); exitwhen ((stacktraceLimit_600 > 20) or (stacktraceIndex_121 < 0)); __wurst_stackPos_209 = (__wurst_stackPos_209 + (" " + wurst_stack_803[stacktraceIndex_121])); }; $debugPrint177((msg_414 + (" " + __wurst_stackPos_209))); wurst_stack_depth_185 = (wurst_stack_depth_185 - 1); } function dispatch_LinkedList_test_LinkedList_foldl647(integer this147, any startValue107, integer predicate112, string __wurst_stackPos208) returns any { local any t331 wurst_stack_803[wurst_stack_depth_185] = __wurst_stackPos_208; wurst_stack_depth_185 = (wurst_stack_depth_185 + 1); if (LinkedList_typeId_134[this_147] == 0) { if (this_147 == 0) { error161("Nullpointer exception when calling LinkedList.foldl", "when calling error in normalFoldlInfer, line 14"); } else { error161("Called LinkedList.foldl on invalid object.", "when calling error in normalFoldlInfer, line 14"); }; } else { }; wurst_stack_803[wurst_stack_depth_185] = "when calling foldl in normalFoldlInfer, line 14"; wurst_stack_depth_185 = (wurst_stack_depth_185 + 1); t_331 = LinkedList_x_533[this_147]; wurst_stack_803[wurst_stack_depth_185] = "when calling run in normalFoldlInfer, line 15"; wurst_stack_depth_185 = (wurst_stack_depth_185 + 1); if (FoldClosure_typeId_135[predicate_112] == 0) { if (predicate_112 == 0) { error161("Nullpointer exception when calling FoldClosure.run", "when calling error in normalFoldlInfer, line 20"); } else { error161("Called FoldClosure.run on invalid object.", "when calling error in normalFoldlInfer, line 20"); }; } else { }; startValue_107 = run_wrapper675(predicate_112, t_331, startValue_107); wurst_stack_depth_185 = (((wurst_stack_depth_185 - 1) - 1) - 1); return startValue_107; }