array Cell_nextFree802 integer Cell_firstFree245 integer Cell_maxIndex184 integer Cell_firstFree245 = 0 integer Cell_maxIndex184 = 0 function initGlobals187() { Cell_firstFree_245 = 0; Cell_maxIndex_184 = 0; } function main146() { initGlobals187(); init_test781(); } function config210() { } function init_test781() { new_Cell383(); } function Cell_init363(integer this540) { } function new_Cell383() returns integer { local integer this989 this_989 = alloc_Cell557(); construct_Cell985(this_989); return this_989; } function construct_Cell985(integer this131) { Cell_init363(this_131); } function alloc_Cell557() returns integer { local integer this182 if (Cell_firstFree_245 == 0) { if (Cell_maxIndex_184 < 32768) { Cell_maxIndex_184 = (Cell_maxIndex_184 + 1); this_182 = Cell_maxIndex_184; } else { error113("Out of memory: Could not create Cell."); this_182 = 0; }; } else { Cell_firstFree_245 = (Cell_firstFree_245 - 1); this_182 = Cell_nextFree_802[Cell_firstFree_245]; }; return this_182; } function error113(string msg778) { $debugPrint914((msg_778 + (" " + #getStackTrace()))); }