array Cell_nextFree124 integer Cell_firstFree769 integer Cell_maxIndex109 integer Cell_firstFree769 = 0 integer Cell_maxIndex109 = 0 function initGlobals122() { } function main682() { initGlobals122(); init_test196(); } function config150() { } function init_test196() { new_Cell131(); } function Cell_init194(integer this179) { } function new_Cell131() returns integer { local integer this795 this_795 = alloc_Cell229(); construct_Cell140(this_795); return this_795; } function construct_Cell140(integer this418) { Cell_init194(this_418); } function alloc_Cell229() returns integer { local integer this205 if (Cell_firstFree_769 == 0) { if (Cell_maxIndex_109 < 32768) { Cell_maxIndex_109 = (Cell_maxIndex_109 + 1); this_205 = Cell_maxIndex_109; } else { error133("Out of memory: Could not create Cell."); this_205 = 0; }; } else { Cell_firstFree_769 = (Cell_firstFree_769 - 1); this_205 = Cell_nextFree_124[Cell_firstFree_769]; }; return this_205; } function error133(string msg537) { $debugPrint144((msg_537 + (" " + #getStackTrace()))); }