array test_s869 integer test_s_max166 array FoldClosure_nextFree149 integer FoldClosure_firstFree516 integer FoldClosure_maxIndex156 array FoldClosure_typeId210 array LinkedList_nextFree961 integer LinkedList_firstFree141 integer LinkedList_maxIndex208 array LinkedList_typeId116 array LinkedList_x533 integer test_s_max166 = -1 integer FoldClosure_firstFree516 = 0 integer FoldClosure_maxIndex156 = 0 integer LinkedList_firstFree141 = 0 integer LinkedList_maxIndex208 = 0 function initGlobals258() { } function main843() { initGlobals258(); init_test202(); } function config181() { } function init_test202() { local integer x409 test_s_max_166 = -1; x_409 = new_LinkedList155(); LinkedList_x_533[x_409] = 5; if (dispatch_LinkedList_test_LinkedList_toString157(x_409) == "[5,]") { testSuccess129(); } else { }; } function stringToIndex431(string b650) returns integer { test_s_max_166 = (test_s_max_166 + 1); test_s_869[test_s_max_166] = b_650; return test_s_max_166; } function stringFromIndex170(integer i118) returns string { return test_s_869[i_118]; } IS_NATIVE IS_EXTERN @extern function I2S232(integer i190) returns string { } IS_NATIVE function testSuccess129() { } function run_wrapper133(integer this128, any t184, any q123) returns any { return stringToIndex431(run_foldl_LinkedList_test190(this_128, t_184, stringFromIndex170(q_123))); } function LinkedList_foldl119(integer this146, any startValue919, integer predicate146) returns any { return dispatch_FoldClosure_test_FoldClosure_run195(predicate_146, LinkedList_x_533[this_146], startValue_919); } function LinkedList_toString194(integer this201) returns string { return (stringFromIndex170(dispatch_LinkedList_test_LinkedList_foldl360(this_201, stringToIndex431("["), alloc_FoldClosure_foldl_LinkedList_test208())) + "]"); } function LinkedList_init130(integer this194) { } function new_LinkedList155() returns integer { local integer this125 this_125 = alloc_LinkedList202(); construct_LinkedList167(this_125); return this_125; } function construct_LinkedList167(integer this500) { LinkedList_init130(this_500); } function run_foldl_LinkedList_test190(integer this110, any i155, string q603) returns string { return ((q_603 + I2S232((i_155 castTo integer))) + ","); } function error156(string msg350) { $debugPrint142((msg_350 + (" " + #getStackTrace()))); } function alloc_LinkedList202() returns integer { local integer this144 if (LinkedList_firstFree_141 == 0) { if (LinkedList_maxIndex_208 < 32768) { LinkedList_maxIndex_208 = (LinkedList_maxIndex_208 + 1); this_144 = LinkedList_maxIndex_208; LinkedList_typeId_116[this_144] = 3; } else { error156("Out of memory: Could not create LinkedList."); this_144 = 0; }; } else { LinkedList_firstFree_141 = (LinkedList_firstFree_141 - 1); this_144 = LinkedList_nextFree_961[LinkedList_firstFree_141]; LinkedList_typeId_116[this_144] = 3; }; return this_144; } function alloc_FoldClosure_foldl_LinkedList_test208() returns integer { local integer this426 if (FoldClosure_firstFree_516 == 0) { if (FoldClosure_maxIndex_156 < 32768) { FoldClosure_maxIndex_156 = (FoldClosure_maxIndex_156 + 1); this_426 = FoldClosure_maxIndex_156; FoldClosure_typeId_210[this_426] = 2; } else { error156("Out of memory: Could not create FoldClosure_foldl_LinkedList_test."); this_426 = 0; }; } else { FoldClosure_firstFree_516 = (FoldClosure_firstFree_516 - 1); this_426 = FoldClosure_nextFree_149[FoldClosure_firstFree_516]; FoldClosure_typeId_210[this_426] = 2; }; return this_426; } function dispatch_FoldClosure_test_FoldClosure_run195(integer this116, any t132, any q129) returns any { if (FoldClosure_typeId_210[this_116] == 0) { if (this_116 == 0) { error156("Nullpointer exception when calling FoldClosure.run"); } else { error156("Called FoldClosure.run on invalid object."); }; } else { }; return run_wrapper133(this_116, t_132, q_129); } function dispatch_LinkedList_test_LinkedList_foldl360(integer this183, any startValue579, integer predicate126) returns any { if (LinkedList_typeId_116[this_183] == 0) { if (this_183 == 0) { error156("Nullpointer exception when calling LinkedList.foldl"); } else { error156("Called LinkedList.foldl on invalid object."); }; } else { }; return LinkedList_foldl119(this_183, startValue_579, predicate_126); } function dispatch_LinkedList_test_LinkedList_toString157(integer this196) returns string { if (LinkedList_typeId_116[this_196] == 0) { if (this_196 == 0) { error156("Nullpointer exception when calling LinkedList.toString"); } else { error156("Called LinkedList.toString on invalid object."); }; } else { }; return LinkedList_toString194(this_196); }