array Cell_nextFree580 integer Cell_firstFree744 integer Cell_maxIndex207 integer Cell_firstFree744 = 0 integer Cell_maxIndex207 = 0 function initGlobals129() { Cell_firstFree_744 = 0; Cell_maxIndex_207 = 0; } function main779() { initGlobals129(); init_test162(); } function config197() { } function init_test162() { new_Cell227(); } function Cell_init847(integer this252) { } function new_Cell227() returns integer { local integer this127 this_127 = alloc_Cell134(); construct_Cell696(this_127); return this_127; } function construct_Cell696(integer this535) { Cell_init847(this_535); } function alloc_Cell134() returns integer { local integer this809 if (Cell_firstFree_744 == 0) { if (Cell_maxIndex_207 < 32768) { Cell_maxIndex_207 = (Cell_maxIndex_207 + 1); this_809 = Cell_maxIndex_207; } else { error671("Out of memory: Could not create Cell."); this_809 = 0; }; } else { Cell_firstFree_744 = (Cell_firstFree_744 - 1); this_809 = Cell_nextFree_580[Cell_firstFree_744]; }; return this_809; } function error671(string msg749) { $debugPrint135((msg_749 + (" " + #getStackTrace()))); }