integer Test_x145 array LinkedList_nextFree237 integer LinkedList_firstFree140 integer LinkedList_maxIndex968 array LinkedList_typeId890 array LinkedList_t726 integer Test_x145 = dispatch_LinkedList_Test_LinkedList_getFirst311(asList_1447(asList_1447(42))) integer LinkedList_firstFree140 = 0 integer LinkedList_maxIndex968 = 0 function initGlobals549() { } function main161() { initGlobals549(); init_Test184(); } function config186() { } function init_Test184() { Test_x_145 = dispatch_LinkedList_Test_LinkedList_getFirst311(asList_1447(asList_1447(42))); if (dispatch_LinkedList_Test_LinkedList_getFirst311(Test_x_145) == 42) { testSuccess746(); } else { }; } IS_NATIVE function testSuccess746() { } function LinkedList_add209(integer this125, any t151) { LinkedList_t_726[this_125] = t_151; } function LinkedList_getFirst141(integer this144) returns any { return LinkedList_t_726[this_144]; } function LinkedList_init107(integer this286) { } function new_LinkedList172() returns integer { local integer this127 this_127 = alloc_LinkedList167(); construct_LinkedList511(this_127); return this_127; } function construct_LinkedList511(integer this176) { LinkedList_init107(this_176); } function alloc_LinkedList167() returns integer { local integer this963 if (LinkedList_firstFree_140 == 0) { if (LinkedList_maxIndex_968 < 32768) { LinkedList_maxIndex_968 = (LinkedList_maxIndex_968 + 1); this_963 = LinkedList_maxIndex_968; LinkedList_typeId_890[this_963] = 1; } else { error117("Out of memory: Could not create LinkedList."); this_963 = 0; }; } else { LinkedList_firstFree_140 = (LinkedList_firstFree_140 - 1); this_963 = LinkedList_nextFree_237[LinkedList_firstFree_140]; LinkedList_typeId_890[this_963] = 1; }; return this_963; } function error117(string msg153) { $debugPrint177((msg_153 + (" " + #getStackTrace()))); } function dispatch_LinkedList_Test_LinkedList_add673(integer this938, any t107) { if (LinkedList_typeId_890[this_938] == 0) { if (this_938 == 0) { error117("Nullpointer exception when calling LinkedList.add"); } else { error117("Called LinkedList.add on invalid object."); }; } else { }; LinkedList_add209(this_938, t_107); } function dispatch_LinkedList_Test_LinkedList_getFirst311(integer this113) returns any { if (LinkedList_typeId_890[this_113] == 0) { if (this_113 == 0) { error117("Nullpointer exception when calling LinkedList.getFirst"); } else { error117("Called LinkedList.getFirst on invalid object."); }; } else { }; return LinkedList_getFirst141(this_113); } function asList_1447(any ts_0162) returns integer { local integer ll191 ll_191 = new_LinkedList172(); dispatch_LinkedList_Test_LinkedList_add673(ll_191, ts_0_162); return ll_191; }