array A_nextFree146 integer A_firstFree453 integer A_maxIndex124 array A_i156 integer A_firstFree453 = 0 integer A_maxIndex124 = 0 function initGlobals331() { A_firstFree_453 = 0; A_maxIndex_124 = 0; } function main134() { initGlobals331(); init_test115(); } function config144() { } function init_test115() { local integer a593 a_593 = new_A768(); if (A_i_156[a_593] == 1) { testSuccess170(); } else { }; } IS_NATIVE function testSuccess170() { } function A_init174(integer this909) { A_i_156[this_909] = (this_909 castTo integer); } function new_A768() returns integer { local integer this189 this_189 = alloc_A183(); construct_A175(this_189); return this_189; } function construct_A175(integer this769) { A_init174(this_769); } function alloc_A183() returns integer { local integer this446 if (A_firstFree_453 == 0) { if (A_maxIndex_124 < 32768) { A_maxIndex_124 = (A_maxIndex_124 + 1); this_446 = A_maxIndex_124; } else { error396("Out of memory: Could not create A."); this_446 = 0; }; } else { A_firstFree_453 = (A_firstFree_453 - 1); this_446 = A_nextFree_146[A_firstFree_453]; }; return this_446; } function error396(string msg189) { $debugPrint187((msg_189 + (" " + #getStackTrace()))); }