array Person_nextFree188 integer Person_firstFree202 integer Person_maxIndex302 array Person_typeId137 array Person_name175 integer Person_firstFree202 = 0 integer Person_maxIndex302 = 0 function initGlobals161() { } function main180() { initGlobals161(); init_test164(); } function config105() { } function init_test164() { local integer p211 local string n172 local integer this192 local integer this208 local integer this152 local string n138 local integer this187 local string test_Person_getName_result149 local integer this110 local integer this405 local string n103 local integer this621 local string n115 local integer this206 local string test_Person_getName_result640 local integer this109 n_172 = "peq"; if (Person_firstFree_202 == 0) { if (Person_maxIndex_302 < 32768) { Person_maxIndex_302 = (Person_maxIndex_302 + 1); this_208 = Person_maxIndex_302; Person_typeId_137[this_208] = 1; } else { error189("Out of memory: Could not create Person."); this_208 = 0; }; } else { Person_firstFree_202 = (Person_firstFree_202 - 1); this_208 = Person_nextFree_188[Person_firstFree_202]; Person_typeId_137[this_208] = 1; }; this_192 = this_208; this_152 = this_192; n_138 = n_172; Person_name_175[this_152] = n_138; p_211 = this_192; this_187 = p_211; if (Person_typeId_137[this_187] == 0) { if (this_187 == 0) { error189("Nullpointer exception when calling Person.getName"); } else { error189("Called Person.getName on invalid object."); }; } else { }; this_110 = this_187; test_Person_getName_result_149 = Person_name_175[this_110]; if (test_Person_getName_result_149 != "peq") { testFail853("name != peq"); } else { this_405 = p_211; n_103 = "Frotty"; if (Person_typeId_137[this_405] == 0) { if (this_405 == 0) { error189("Nullpointer exception when calling Person.setName"); } else { error189("Called Person.setName on invalid object."); }; } else { }; this_621 = this_405; n_115 = n_103; Person_name_175[this_621] = n_115; this_206 = p_211; if (Person_typeId_137[this_206] == 0) { if (this_206 == 0) { error189("Nullpointer exception when calling Person.getName"); } else { error189("Called Person.getName on invalid object."); }; } else { }; this_109 = this_206; test_Person_getName_result_640 = Person_name_175[this_109]; if (test_Person_getName_result_640 == "Frotty") { testSuccess122(); } else { testFail853("name != Frotty."); }; }; } IS_NATIVE function testFail853(string msg115) { } IS_NATIVE function testSuccess122() { } function error189(string msg245) { $debugPrint720((msg_245 + (" " + #getStackTrace()))); }