array A_nextFree147 integer A_firstFree137 integer A_maxIndex715 array A_i204 integer A_firstFree137 = 0 integer A_maxIndex715 = 0 function initGlobals158() { A_firstFree_137 = 0; A_maxIndex_715 = 0; } function main175() { initGlobals158(); init_test240(); } function config598() { } function init_test240() { local integer a1115 local integer a2113 local integer result152 a1_115 = new_A103(); a2_113 = new_A103(); result_152 = A_op_mult489(a1_115, a2_113); if (result_152 == 4) { testSuccess582(); } else { }; } IS_NATIVE function testSuccess582() { } function A_op_mult489(integer this173, integer a740) returns integer { return (A_i_204[this_173] * A_i_204[a_740]); } function A_init516(integer this730) { A_i_204[this_730] = 2; } function new_A103() returns integer { local integer this798 this_798 = alloc_A140(); construct_A152(this_798); return this_798; } function construct_A152(integer this195) { A_init516(this_195); } function alloc_A140() returns integer { local integer this206 if (A_firstFree_137 == 0) { if (A_maxIndex_715 < 32768) { A_maxIndex_715 = (A_maxIndex_715 + 1); this_206 = A_maxIndex_715; } else { error164("Out of memory: Could not create A."); this_206 = 0; }; } else { A_firstFree_137 = (A_firstFree_137 - 1); this_206 = A_nextFree_147[A_firstFree_137]; }; return this_206; } function error164(string msg746) { $debugPrint932((msg_746 + (" " + #getStackTrace()))); }