array Person_nextFree198 integer Person_firstFree177 integer Person_maxIndex124 array Person_typeId444 array Person_name167 integer Person_firstFree177 = 0 integer Person_maxIndex124 = 0 function initGlobals160() { } function main602() { initGlobals160(); init_test929(); } function config127() { } function init_test929() { local integer p211 local string n177 local integer this179 local integer this105 local integer this176 local string n933 local integer this557 local string test_Person_getName_result184 local integer this686 local integer this106 local string n205 local integer this253 local string n100 local integer this210 local string test_Person_getName_result143 local integer this142 n_177 = "peq"; if (Person_firstFree_177 == 0) { if (Person_maxIndex_124 < 32768) { Person_maxIndex_124 = (Person_maxIndex_124 + 1); this_105 = Person_maxIndex_124; Person_typeId_444[this_105] = 1; } else { error195("Out of memory: Could not create Person."); this_105 = 0; }; } else { Person_firstFree_177 = (Person_firstFree_177 - 1); this_105 = Person_nextFree_198[Person_firstFree_177]; Person_typeId_444[this_105] = 1; }; this_179 = this_105; this_176 = this_179; n_933 = n_177; Person_name_167[this_176] = n_933; p_211 = this_179; this_557 = p_211; if (Person_typeId_444[this_557] == 0) { if (this_557 == 0) { error195("Nullpointer exception when calling Person.getName"); } else { error195("Called Person.getName on invalid object."); }; } else { }; this_686 = this_557; test_Person_getName_result_184 = Person_name_167[this_686]; if (test_Person_getName_result_184 != "peq") { testFail164("name != peq"); } else { this_106 = p_211; n_205 = "Frotty"; if (Person_typeId_444[this_106] == 0) { if (this_106 == 0) { error195("Nullpointer exception when calling Person.setName"); } else { error195("Called Person.setName on invalid object."); }; } else { }; this_253 = this_106; n_100 = n_205; Person_name_167[this_253] = n_100; this_210 = p_211; if (Person_typeId_444[this_210] == 0) { if (this_210 == 0) { error195("Nullpointer exception when calling Person.getName"); } else { error195("Called Person.getName on invalid object."); }; } else { }; this_142 = this_210; test_Person_getName_result_143 = Person_name_167[this_142]; if (test_Person_getName_result_143 == "Frotty") { testSuccess733(); } else { testFail164("name != Frotty."); }; }; } IS_NATIVE function testFail164(string msg208) { } IS_NATIVE function testSuccess733() { } function error195(string msg268) { $debugPrint140((msg_268 + (" " + #getStackTrace()))); }