array I_nextFree173 integer I_firstFree586 integer I_maxIndex125 code ref_function_code__foo_test917 integer I_firstFree586 = 0 integer I_maxIndex125 = 0 code ref_function_code__foo_test917 = function code__foo_test function initGlobals298() { I_firstFree_586 = 0; I_maxIndex_125 = 0; ref_function_code__foo_test_917 = function code__foo_test; } function main872() { initGlobals298(); init_test185(); } function config123() { } function init_test185() { foo114(ref_function_code__foo_test_917); } function foo114(code c974) { } function bar161(integer i986) { } function code__foo_test173() { local integer clVar737 clVar_737 = alloc_I_bar_foo_test170(); bar161(clVar_737); } function alloc_I_bar_foo_test170() returns integer { local integer this108 if (I_firstFree_586 == 0) { if (I_maxIndex_125 < 32768) { I_maxIndex_125 = (I_maxIndex_125 + 1); this_108 = I_maxIndex_125; } else { error983("Out of memory: Could not create I_bar_foo_test."); this_108 = 0; }; } else { I_firstFree_586 = (I_firstFree_586 - 1); this_108 = I_nextFree_173[I_firstFree_586]; }; return this_108; } function error983(string msg187) { $debugPrint633((msg_187 + (" " + #getStackTrace()))); }