array Cell_nextFree141 integer Cell_firstFree168 integer Cell_maxIndex482 array Cell_typeId227 array Cell_elem809 integer Cell_firstFree168 = 0 integer Cell_maxIndex482 = 0 function initGlobals943() { } function main184() { initGlobals943(); init_test162(); } function config941() { } function init_test162() { local integer c623 c_623 = new_Cell295(); if (Cell_typeId_227[c_623] == 0) { if (c_623 == 0) { error156("Nullpointer exception when calling Cell.set"); } else { error156("Called Cell.set on invalid object."); }; } else { }; Cell_elem_809[c_623] = 5; if (Cell_typeId_227[c_623] == 0) { if (c_623 == 0) { error156("Nullpointer exception when calling Cell.get"); } else { error156("Called Cell.get on invalid object."); }; } else { }; if (Cell_elem_809[c_623] == 5) { testSuccess185(); } else { }; } IS_NATIVE function testSuccess185() { } function new_Cell295() returns integer { local integer this109 if (Cell_firstFree_168 == 0) { if (Cell_maxIndex_482 < 32768) { Cell_maxIndex_482 = (Cell_maxIndex_482 + 1); this_109 = Cell_maxIndex_482; Cell_typeId_227[this_109] = 1; } else { error156("Out of memory: Could not create Cell."); this_109 = 0; }; } else { Cell_firstFree_168 = (Cell_firstFree_168 - 1); this_109 = Cell_nextFree_141[Cell_firstFree_168]; Cell_typeId_227[this_109] = 1; }; return this_109; } function error156(string msg425) { $debugPrint112((msg_425 + (" " + #getStackTrace()))); }