array A_nextFree181 integer A_firstFree395 integer A_maxIndex114 array A_x171 integer A_firstFree395 = 0 integer A_maxIndex114 = 0 function initGlobals597() { A_firstFree_395 = 0; A_maxIndex_114 = 0; } function main916() { initGlobals597(); init_test147(); } function config175() { } function init_test147() { local integer a111 local integer b127 local integer i138 local integer j332 a_111 = new_A108(42); b_127 = new_A108(43); i_138 = (a_111 castTo integer); j_332 = (b_127 castTo integer); if (A_x_171[(((((2 * i_138) + j_332) - j_332) - i_138) castTo integer)] == 42) { testSuccess113(); } else { }; } IS_NATIVE function testSuccess113() { } function A_init406(integer this390) { A_x_171[this_390] = 1; } function new_A108(integer x256) returns integer { local integer this171 this_171 = alloc_A114(); construct_A130(this_171, x_256); return this_171; } function construct_A130(integer this116, integer x166) { A_init406(this_116); A_x_171[this_116] = x_166; } function alloc_A114() returns integer { local integer this337 if (A_firstFree_395 == 0) { if (A_maxIndex_114 < 32768) { A_maxIndex_114 = (A_maxIndex_114 + 1); this_337 = A_maxIndex_114; } else { error210("Out of memory: Could not create A."); this_337 = 0; }; } else { A_firstFree_395 = (A_firstFree_395 - 1); this_337 = A_nextFree_181[A_firstFree_395]; }; return this_337; } function error210(string msg208) { $debugPrint557((msg_208 + (" " + #getStackTrace()))); }