array A_nextFree935 integer A_firstFree582 integer A_maxIndex129 integer A_firstFree582 = 0 integer A_maxIndex129 = 0 function initGlobals597() { A_firstFree_582 = 0; A_maxIndex_129 = 0; } function main176() { initGlobals597(); init_test319(); } function config138() { } function init_test319() { new_A120(1); testSuccess180(); } IS_NATIVE function testSuccess180() { } function A_init152(integer this202) { } function new_A120(integer i135) returns integer { local integer this166 this_166 = alloc_A138(); construct_A171(this_166, i_135); return this_166; } function construct_A171(integer this155, integer i281) { A_init152(this_155); } function alloc_A138() returns integer { local integer this518 if (A_firstFree_582 == 0) { if (A_maxIndex_129 < 32768) { A_maxIndex_129 = (A_maxIndex_129 + 1); this_518 = A_maxIndex_129; } else { error155("Out of memory: Could not create A."); this_518 = 0; }; } else { A_firstFree_582 = (A_firstFree_582 - 1); this_518 = A_nextFree_935[A_firstFree_582]; }; return this_518; } function error155(string msg699) { $debugPrint628((msg_699 + (" " + #getStackTrace()))); }