array A_nextFree624 integer A_firstFree170 integer A_maxIndex848 array A_x925 integer A_firstFree170 = 0 integer A_maxIndex848 = 0 function initGlobals903() { A_firstFree_170 = 0; A_maxIndex_848 = 0; } function main997() { initGlobals903(); init_test109(); } function config149() { } function init_test109() { local integer a494 local integer b656 local integer i171 local integer j993 a_494 = new_A192(42); b_656 = new_A192(43); i_171 = (a_494 castTo integer); j_993 = (b_656 castTo integer); if (A_x_925[(((((2 * i_171) + j_993) - j_993) - i_171) castTo integer)] == 42) { testSuccess164(); } else { }; } IS_NATIVE function testSuccess164() { } function A_init732(integer this505) { A_x_925[this_505] = 1; } function new_A192(integer x131) returns integer { local integer this198 this_198 = alloc_A191(); construct_A809(this_198, x_131); return this_198; } function construct_A809(integer this157, integer x110) { A_init732(this_157); A_x_925[this_157] = x_110; } function alloc_A191() returns integer { local integer this159 if (A_firstFree_170 == 0) { if (A_maxIndex_848 < 32768) { A_maxIndex_848 = (A_maxIndex_848 + 1); this_159 = A_maxIndex_848; } else { error613("Out of memory: Could not create A."); this_159 = 0; }; } else { A_firstFree_170 = (A_firstFree_170 - 1); this_159 = A_nextFree_624[A_firstFree_170]; }; return this_159; } function error613(string msg767) { $debugPrint153((msg_767 + (" " + #getStackTrace()))); }