array Person_nextFree141 integer Person_firstFree676 integer Person_maxIndex362 array Person_typeId109 array Person_name212 integer Person_firstFree676 = 0 integer Person_maxIndex362 = 0 function initGlobals125() { } function main742() { initGlobals125(); init_test115(); } function config722() { } function init_test115() { local integer this236 if (Person_firstFree_676 == 0) { if (Person_maxIndex_362 < 32768) { Person_maxIndex_362 = (Person_maxIndex_362 + 1); this_236 = Person_maxIndex_362; Person_typeId_109[this_236] = 1; } else { error818("Out of memory: Could not create Person."); this_236 = 0; }; } else { Person_firstFree_676 = (Person_firstFree_676 - 1); this_236 = Person_nextFree_141[Person_firstFree_676]; Person_typeId_109[this_236] = 1; }; Person_name_212[this_236] = "peq"; if (Person_typeId_109[this_236] == 0) { if (this_236 == 0) { error818("Nullpointer exception when calling Person.getName"); } else { error818("Called Person.getName on invalid object."); }; } else { }; if (Person_name_212[this_236] != "peq") { testFail742("name != peq"); } else { if (Person_typeId_109[this_236] == 0) { if (this_236 == 0) { error818("Nullpointer exception when calling Person.setName"); } else { error818("Called Person.setName on invalid object."); }; } else { }; Person_name_212[this_236] = "Frotty"; if (Person_typeId_109[this_236] == 0) { if (this_236 == 0) { error818("Nullpointer exception when calling Person.getName"); } else { error818("Called Person.getName on invalid object."); }; } else { }; if (Person_name_212[this_236] == "Frotty") { testSuccess545(); } else { testFail742("name != Frotty."); }; }; } IS_NATIVE function testFail742(string msg987) { } IS_NATIVE function testSuccess545() { } function error818(string msg534) { $debugPrint201((msg_534 + (" " + #getStackTrace()))); }