array A_nextFree440 integer A_firstFree450 integer A_maxIndex164 array A_i144 integer A_firstFree450 = 0 integer A_maxIndex164 = 0 function initGlobals732() { A_firstFree_450 = 0; A_maxIndex_164 = 0; } function main123() { initGlobals732(); init_test132(); } function config374() { } function init_test132() { local integer a1746 local integer a2145 local integer result183 a1_746 = new_A490(); a2_145 = new_A490(); result_183 = A_op_mult187(a1_746, a2_145); if (result_183 == 4) { testSuccess137(); } else { }; } IS_NATIVE function testSuccess137() { } function A_op_mult187(integer this103, integer a154) returns integer { return (A_i_144[this_103] * A_i_144[a_154]); } function A_init974(integer this653) { A_i_144[this_653] = 2; } function new_A490() returns integer { local integer this187 this_187 = alloc_A160(); construct_A200(this_187); return this_187; } function construct_A200(integer this696) { A_init974(this_696); } function alloc_A160() returns integer { local integer this115 if (A_firstFree_450 == 0) { if (A_maxIndex_164 < 32768) { A_maxIndex_164 = (A_maxIndex_164 + 1); this_115 = A_maxIndex_164; } else { error758("Out of memory: Could not create A."); this_115 = 0; }; } else { A_firstFree_450 = (A_firstFree_450 - 1); this_115 = A_nextFree_440[A_firstFree_450]; }; return this_115; } function error758(string msg685) { $debugPrint102((msg_685 + (" " + #getStackTrace()))); }