array I_nextFree810 integer I_firstFree250 integer I_maxIndex158 code ref_function_code__foo_test385 integer I_firstFree250 = 0 integer I_maxIndex158 = 0 code ref_function_code__foo_test385 = function code__foo_test function initGlobals104() { I_firstFree_250 = 0; I_maxIndex_158 = 0; ref_function_code__foo_test_385 = function code__foo_test; } function main170() { initGlobals104(); init_test116(); } function config167() { } function init_test116() { foo112(ref_function_code__foo_test_385); } function foo112(code c109) { } function bar132(integer i444) { } function code__foo_test131() { local integer clVar640 clVar_640 = alloc_I_bar_foo_test916(); bar132(clVar_640); } function alloc_I_bar_foo_test916() returns integer { local integer this214 if (I_firstFree_250 == 0) { if (I_maxIndex_158 < 32768) { I_maxIndex_158 = (I_maxIndex_158 + 1); this_214 = I_maxIndex_158; } else { error228("Out of memory: Could not create I_bar_foo_test."); this_214 = 0; }; } else { I_firstFree_250 = (I_firstFree_250 - 1); this_214 = I_nextFree_810[I_firstFree_250]; }; return this_214; } function error228(string msg215) { $debugPrint107((msg_215 + (" " + #getStackTrace()))); }