array Person_nextFree147 integer Person_firstFree176 integer Person_maxIndex180 array Person_typeId990 array Person_name632 integer Person_firstFree176 = 0 integer Person_maxIndex180 = 0 function initGlobals316() { } function main750() { initGlobals316(); init_test114(); } function config891() { } function init_test114() { local integer p181 local string n201 local integer this635 local integer this158 local integer this138 local string n114 local integer this225 local string test_Person_getName_result161 local integer this113 local integer this645 local string n200 local integer this614 local string n434 local integer this418 local string test_Person_getName_result146 local integer this845 n_201 = "peq"; if (Person_firstFree_176 == 0) { if (Person_maxIndex_180 < 32768) { Person_maxIndex_180 = (Person_maxIndex_180 + 1); this_158 = Person_maxIndex_180; Person_typeId_990[this_158] = 1; } else { error309("Out of memory: Could not create Person."); this_158 = 0; }; } else { Person_firstFree_176 = (Person_firstFree_176 - 1); this_158 = Person_nextFree_147[Person_firstFree_176]; Person_typeId_990[this_158] = 1; }; this_635 = this_158; this_138 = this_635; n_114 = n_201; Person_name_632[this_138] = n_114; p_181 = this_635; this_225 = p_181; if (Person_typeId_990[this_225] == 0) { if (this_225 == 0) { error309("Nullpointer exception when calling Person.getName"); } else { error309("Called Person.getName on invalid object."); }; } else { }; this_113 = this_225; test_Person_getName_result_161 = Person_name_632[this_113]; if (test_Person_getName_result_161 != "peq") { testFail170("name != peq"); } else { this_645 = p_181; n_200 = "Frotty"; if (Person_typeId_990[this_645] == 0) { if (this_645 == 0) { error309("Nullpointer exception when calling Person.setName"); } else { error309("Called Person.setName on invalid object."); }; } else { }; this_614 = this_645; n_434 = n_200; Person_name_632[this_614] = n_434; this_418 = p_181; if (Person_typeId_990[this_418] == 0) { if (this_418 == 0) { error309("Nullpointer exception when calling Person.getName"); } else { error309("Called Person.getName on invalid object."); }; } else { }; this_845 = this_418; test_Person_getName_result_146 = Person_name_632[this_845]; if (test_Person_getName_result_146 == "Frotty") { testSuccess580(); } else { testFail170("name != Frotty."); }; }; } IS_NATIVE function testFail170(string msg977) { } IS_NATIVE function testSuccess580() { } function error309(string msg194) { $debugPrint760((msg_194 + (" " + #getStackTrace()))); }