array Cell_nextFree101 integer Cell_firstFree345 integer Cell_maxIndex458 array Cell_typeId533 array Cell_elem821 integer Cell_firstFree345 = 0 integer Cell_maxIndex458 = 0 function initGlobals138() { } function main140() { initGlobals138(); init_test134(); } function config103() { } function init_test134() { local integer c104 c_104 = new_Cell140(); if (Cell_typeId_533[c_104] == 0) { if (c_104 == 0) { error109("Nullpointer exception when calling Cell.set"); } else { error109("Called Cell.set on invalid object."); }; } else { }; Cell_elem_821[c_104] = 5; if (Cell_typeId_533[c_104] == 0) { if (c_104 == 0) { error109("Nullpointer exception when calling Cell.get"); } else { error109("Called Cell.get on invalid object."); }; } else { }; if (Cell_elem_821[c_104] == 5) { testSuccess534(); } else { }; } IS_NATIVE function testSuccess534() { } function new_Cell140() returns integer { local integer this646 if (Cell_firstFree_345 == 0) { if (Cell_maxIndex_458 < 32768) { Cell_maxIndex_458 = (Cell_maxIndex_458 + 1); this_646 = Cell_maxIndex_458; Cell_typeId_533[this_646] = 1; } else { error109("Out of memory: Could not create Cell."); this_646 = 0; }; } else { Cell_firstFree_345 = (Cell_firstFree_345 - 1); this_646 = Cell_nextFree_101[Cell_firstFree_345]; Cell_typeId_533[this_646] = 1; }; return this_646; } function error109(string msg117) { $debugPrint121((msg_117 + (" " + #getStackTrace()))); }