array Person_nextFree730 integer Person_firstFree214 integer Person_maxIndex514 array Person_typeId705 array Person_name828 integer Person_firstFree214 = 0 integer Person_maxIndex514 = 0 function initGlobals764() { } function main157() { initGlobals764(); init_test813(); } function config109() { } function init_test813() { local integer p252 local string n148 local integer this415 local integer this438 local integer this188 local string n131 local integer this110 local string test_Person_getName_result946 local integer this915 local integer this909 local string n204 local integer this151 local string n208 local integer this813 local string test_Person_getName_result413 local integer this111 n_148 = "peq"; if (Person_firstFree_214 == 0) { if (Person_maxIndex_514 < 32768) { Person_maxIndex_514 = (Person_maxIndex_514 + 1); this_438 = Person_maxIndex_514; Person_typeId_705[this_438] = 1; } else { error148("Out of memory: Could not create Person."); this_438 = 0; }; } else { Person_firstFree_214 = (Person_firstFree_214 - 1); this_438 = Person_nextFree_730[Person_firstFree_214]; Person_typeId_705[this_438] = 1; }; this_415 = this_438; this_188 = this_415; n_131 = n_148; Person_name_828[this_188] = n_131; p_252 = this_415; this_110 = p_252; if (Person_typeId_705[this_110] == 0) { if (this_110 == 0) { error148("Nullpointer exception when calling Person.getName"); } else { error148("Called Person.getName on invalid object."); }; } else { }; this_915 = this_110; test_Person_getName_result_946 = Person_name_828[this_915]; if (test_Person_getName_result_946 != "peq") { testFail118("name != peq"); } else { this_909 = p_252; n_204 = "Frotty"; if (Person_typeId_705[this_909] == 0) { if (this_909 == 0) { error148("Nullpointer exception when calling Person.setName"); } else { error148("Called Person.setName on invalid object."); }; } else { }; this_151 = this_909; n_208 = n_204; Person_name_828[this_151] = n_208; this_813 = p_252; if (Person_typeId_705[this_813] == 0) { if (this_813 == 0) { error148("Nullpointer exception when calling Person.getName"); } else { error148("Called Person.getName on invalid object."); }; } else { }; this_111 = this_813; test_Person_getName_result_413 = Person_name_828[this_111]; if (test_Person_getName_result_413 == "Frotty") { testSuccess186(); } else { testFail118("name != Frotty."); }; }; } IS_NATIVE function testFail118(string msg113) { } IS_NATIVE function testSuccess186() { } function error148(string msg920) { $debugPrint361((msg_920 + (" " + #getStackTrace()))); }