array A_nextFree291 integer A_firstFree773 integer A_maxIndex163 array A_x534 integer A_firstFree773 = 0 integer A_maxIndex163 = 0 function initGlobals117() { A_firstFree_773 = 0; A_maxIndex_163 = 0; } function main746() { initGlobals117(); init_test718(); } function config958() { } function init_test718() { local integer a116 local integer b132 local integer i201 local integer j291 a_116 = new_A820(42); b_132 = new_A820(43); i_201 = (a_116 castTo integer); j_291 = (b_132 castTo integer); if (A_x_534[(((((2 * i_201) + j_291) - j_291) - i_201) castTo integer)] == 42) { testSuccess166(); } else { }; } IS_NATIVE function testSuccess166() { } function A_init168(integer this145) { A_x_534[this_145] = 1; } function new_A820(integer x750) returns integer { local integer this207 this_207 = alloc_A140(); construct_A155(this_207, x_750); return this_207; } function construct_A155(integer this133, integer x115) { A_init168(this_133); A_x_534[this_133] = x_115; } function alloc_A140() returns integer { local integer this211 if (A_firstFree_773 == 0) { if (A_maxIndex_163 < 32768) { A_maxIndex_163 = (A_maxIndex_163 + 1); this_211 = A_maxIndex_163; } else { error785("Out of memory: Could not create A."); this_211 = 0; }; } else { A_firstFree_773 = (A_firstFree_773 - 1); this_211 = A_nextFree_291[A_firstFree_773]; }; return this_211; } function error785(string msg956) { $debugPrint999((msg_956 + (" " + #getStackTrace()))); }