array Cell_nextFree340 integer Cell_firstFree160 integer Cell_maxIndex985 integer Cell_firstFree160 = 0 integer Cell_maxIndex985 = 0 function initGlobals182() { Cell_firstFree_160 = 0; Cell_maxIndex_985 = 0; } function main880() { initGlobals182(); init_test181(); } function config639() { } function init_test181() { new_Cell175(); } function Cell_init101(integer this148) { } function new_Cell175() returns integer { local integer this172 this_172 = alloc_Cell146(); construct_Cell140(this_172); return this_172; } function construct_Cell140(integer this177) { Cell_init101(this_177); } function alloc_Cell146() returns integer { local integer this534 if (Cell_firstFree_160 == 0) { if (Cell_maxIndex_985 < 32768) { Cell_maxIndex_985 = (Cell_maxIndex_985 + 1); this_534 = Cell_maxIndex_985; } else { error184("Out of memory: Could not create Cell."); this_534 = 0; }; } else { Cell_firstFree_160 = (Cell_firstFree_160 - 1); this_534 = Cell_nextFree_340[Cell_firstFree_160]; }; return this_534; } function error184(string msg138) { $debugPrint718((msg_138 + (" " + #getStackTrace()))); }