array Iterator_nextFree988 integer Iterator_firstFree139 integer Iterator_maxIndex128 array Iterator_typeId120 array List_nextFree106 integer List_firstFree198 integer List_maxIndex594 array List_typeId774 integer A_firstFree263 = 0 integer A_maxIndex115 = 0 integer B_firstFree835 = 0 integer B_maxIndex539 = 0 integer C_firstFree883 = 0 integer C_maxIndex180 = 0 integer Iterator_firstFree139 = 0 integer Iterator_maxIndex128 = 0 integer List_firstFree198 = 0 integer List_maxIndex594 = 0 function initGlobals103() { } function main276() { initGlobals103(); init_test107(); } function config936() { } function init_test107() { local integer a204 local integer iterator104 local integer this204 local integer test_List_iterator_result409 local integer this632 local integer this121 local boolean test_Iterator_hasNext_result149 local integer this174 a_204 = new_List755(); this_204 = a_204; if (List_typeId_774[this_204] == 0) { if (this_204 == 0) { error718("Nullpointer exception when calling List.iterator"); } else { error718("Called List.iterator on invalid object."); }; } else { }; this_632 = this_204; test_List_iterator_result_409 = new_Iterator189(this_632); iterator_104 = test_List_iterator_result_409; loop { this_121 = iterator_104; if (Iterator_typeId_120[this_121] == 0) { if (this_121 == 0) { error718("Nullpointer exception when calling Iterator.hasNext"); } else { error718("Called Iterator.hasNext on invalid object."); }; } else { }; test_Iterator_hasNext_result_149 = true; exitwhen (not test_Iterator_hasNext_result_149); this_174 = iterator_104; if (Iterator_typeId_120[this_174] == 0) { if (this_174 == 0) { error718("Nullpointer exception when calling Iterator.next"); } else { error718("Called Iterator.next on invalid object."); }; } else { }; testSuccess186(); }; } IS_NATIVE function testSuccess186() { } function new_Iterator189(integer t896) returns integer { local integer this721 local integer this178 if (Iterator_firstFree_139 == 0) { if (Iterator_maxIndex_128 < 32768) { Iterator_maxIndex_128 = (Iterator_maxIndex_128 + 1); this_178 = Iterator_maxIndex_128; Iterator_typeId_120[this_178] = 4; } else { error718("Out of memory: Could not create Iterator."); this_178 = 0; }; } else { Iterator_firstFree_139 = (Iterator_firstFree_139 - 1); this_178 = Iterator_nextFree_988[Iterator_firstFree_139]; Iterator_typeId_120[this_178] = 4; }; this_721 = this_178; return this_721; } function new_List755() returns integer { local integer this107 local integer this182 if (List_firstFree_198 == 0) { if (List_maxIndex_594 < 32768) { List_maxIndex_594 = (List_maxIndex_594 + 1); this_182 = List_maxIndex_594; List_typeId_774[this_182] = 5; } else { error718("Out of memory: Could not create List."); this_182 = 0; }; } else { List_firstFree_198 = (List_firstFree_198 - 1); this_182 = List_nextFree_106[List_firstFree_198]; List_typeId_774[this_182] = 5; }; this_107 = this_182; return this_107; } function error718(string msg564) { $debugPrint612((msg_564 + (" " + #getStackTrace()))); }