array A_nextFree723 integer A_firstFree154 integer A_maxIndex140 array A_x651 integer A_firstFree154 = 0 integer A_maxIndex140 = 0 function initGlobals145() { } function main209() { initGlobals145(); init_test117(); } function config391() { } function init_test117() { local integer i136 local integer j179 i_136 = (new_A198(42) castTo integer); j_179 = (new_A198(43) castTo integer); if (A_x_651[(((((2 * i_136) + j_179) - j_179) - i_136) castTo integer)] == 42) { testSuccess133(); } else { }; } IS_NATIVE function testSuccess133() { } function A_init182(integer this202) { A_x_651[this_202] = 1; } function new_A198(integer x810) returns integer { local integer this329 this_329 = alloc_A131(); construct_A174(this_329, x_810); return this_329; } function construct_A174(integer this442, integer x206) { A_init182(this_442); A_x_651[this_442] = x_206; } function alloc_A131() returns integer { local integer this171 if (A_firstFree_154 == 0) { if (A_maxIndex_140 < 32768) { A_maxIndex_140 = (A_maxIndex_140 + 1); this_171 = A_maxIndex_140; } else { error179("Out of memory: Could not create A."); this_171 = 0; }; } else { A_firstFree_154 = (A_firstFree_154 - 1); this_171 = A_nextFree_723[A_firstFree_154]; }; return this_171; } function error179(string msg972) { $debugPrint142((msg_972 + (" " + #getStackTrace()))); }