array test_s892 integer test_s_max456 array FoldClosure_nextFree552 integer FoldClosure_firstFree130 integer FoldClosure_maxIndex180 array FoldClosure_typeId146 array LinkedList_nextFree175 integer LinkedList_firstFree142 integer LinkedList_maxIndex166 array LinkedList_typeId182 array LinkedList_x651 integer test_s_max456 = -1 integer FoldClosure_firstFree130 = 0 integer FoldClosure_maxIndex180 = 0 integer LinkedList_firstFree142 = 0 integer LinkedList_maxIndex166 = 0 function initGlobals160() { } function main118() { initGlobals160(); init_test128(); } function config169() { } function init_test128() { local integer x187 local integer this248 local string test_LinkedList_toString_result726 test_s_max_456 = -1; x_187 = new_LinkedList184(); LinkedList_x_651[x_187] = 5; this_248 = x_187; if (LinkedList_typeId_182[this_248] == 0) { if (this_248 == 0) { error101("Nullpointer exception when calling LinkedList.toString"); } else { error101("Called LinkedList.toString on invalid object."); }; } else { }; test_LinkedList_toString_result_726 = LinkedList_toString851(this_248); if (test_LinkedList_toString_result_726 == "[5,]") { testSuccess188(); } else { }; } IS_NATIVE IS_EXTERN @extern function I2S184(integer i525) returns string { } IS_NATIVE function testSuccess188() { } function run_wrapper816(integer this169, any t698, any q190) returns any { local string b129 local any i194 local string q139 local integer i105 i_194 = t_698; i_105 = q_190; q_139 = test_s_892[i_105]; b_129 = ((q_139 + I2S184((i_194 castTo integer))) + ","); test_s_max_456 = (test_s_max_456 + 1); test_s_892[test_s_max_456] = b_129; return test_s_max_456; } function LinkedList_toString851(integer this539) returns string { local string fold820 local integer clVar379 local integer temp815 local integer temp212 local string b659 local integer this100 local integer i142 temp_815 = this_539; b_659 = "["; test_s_max_456 = (test_s_max_456 + 1); test_s_892[test_s_max_456] = b_659; temp_212 = test_s_max_456; if (FoldClosure_firstFree_130 == 0) { if (FoldClosure_maxIndex_180 < 32768) { FoldClosure_maxIndex_180 = (FoldClosure_maxIndex_180 + 1); this_100 = FoldClosure_maxIndex_180; FoldClosure_typeId_146[this_100] = 2; } else { error101("Out of memory: Could not create FoldClosure_foldl_LinkedList_test."); this_100 = 0; }; } else { FoldClosure_firstFree_130 = (FoldClosure_firstFree_130 - 1); this_100 = FoldClosure_nextFree_552[FoldClosure_firstFree_130]; FoldClosure_typeId_146[this_100] = 2; }; clVar_379 = this_100; i_142 = dispatch_LinkedList_test_LinkedList_foldl129(temp_815, temp_212, clVar_379); fold_820 = test_s_892[i_142]; return (fold_820 + "]"); } function new_LinkedList184() returns integer { local integer this438 local integer this165 if (LinkedList_firstFree_142 == 0) { if (LinkedList_maxIndex_166 < 32768) { LinkedList_maxIndex_166 = (LinkedList_maxIndex_166 + 1); this_165 = LinkedList_maxIndex_166; LinkedList_typeId_182[this_165] = 3; } else { error101("Out of memory: Could not create LinkedList."); this_165 = 0; }; } else { LinkedList_firstFree_142 = (LinkedList_firstFree_142 - 1); this_165 = LinkedList_nextFree_175[LinkedList_firstFree_142]; LinkedList_typeId_182[this_165] = 3; }; this_438 = this_165; return this_438; } function error101(string msg687) { $debugPrint417((msg_687 + (" " + #getStackTrace()))); } function dispatch_LinkedList_test_LinkedList_foldl129(integer this108, any startValue189, integer predicate337) returns any { local any test_LinkedList_foldl_result851 local integer this189 local any startValue326 local integer predicate166 local integer this461 local any t111 local any q156 local any test_FoldClosure_run_result395 if (LinkedList_typeId_182[this_108] == 0) { if (this_108 == 0) { error101("Nullpointer exception when calling LinkedList.foldl"); } else { error101("Called LinkedList.foldl on invalid object."); }; } else { }; this_189 = this_108; startValue_326 = startValue_189; predicate_166 = predicate_337; this_461 = predicate_166; t_111 = LinkedList_x_651[this_189]; q_156 = startValue_326; if (FoldClosure_typeId_146[this_461] == 0) { if (this_461 == 0) { error101("Nullpointer exception when calling FoldClosure.run"); } else { error101("Called FoldClosure.run on invalid object."); }; } else { }; test_FoldClosure_run_result_395 = run_wrapper816(this_461, t_111, q_156); test_LinkedList_foldl_result_851 = test_FoldClosure_run_result_395; return test_LinkedList_foldl_result_851; }