array A_nextFree172 integer A_firstFree811 integer A_maxIndex124 array A_i140 integer A_firstFree811 = 0 integer A_maxIndex124 = 0 function initGlobals545() { A_firstFree_811 = 0; A_maxIndex_124 = 0; } function main298() { initGlobals545(); init_test972(); } function config500() { } function init_test972() { local integer a178 a_178 = new_A106(); if (A_i_140[a_178] == 1) { testSuccess209(); } else { }; } IS_NATIVE function testSuccess209() { } function A_init193(integer this125) { A_i_140[this_125] = (this_125 castTo integer); } function new_A106() returns integer { local integer this101 this_101 = alloc_A195(); construct_A155(this_101); return this_101; } function construct_A155(integer this183) { A_init193(this_183); } function alloc_A195() returns integer { local integer this618 if (A_firstFree_811 == 0) { if (A_maxIndex_124 < 32768) { A_maxIndex_124 = (A_maxIndex_124 + 1); this_618 = A_maxIndex_124; } else { error109("Out of memory: Could not create A."); this_618 = 0; }; } else { A_firstFree_811 = (A_firstFree_811 - 1); this_618 = A_nextFree_172[A_firstFree_811]; }; return this_618; } function error109(string msg868) { $debugPrint114((msg_868 + (" " + #getStackTrace()))); }