array A_nextFree631 integer A_firstFree126 integer A_maxIndex205 array A_x159 integer A_firstFree126 = 0 integer A_maxIndex205 = 0 function initGlobals621() { A_firstFree_126 = 0; A_maxIndex_205 = 0; } function main130() { initGlobals621(); init_test172(); } function config192() { } function init_test172() { local integer a975 local integer i438 a_975 = new_A821(42); i_438 = blub158(a_975); if (A_x_159[(((2 * i_438) - i_438) castTo integer)] == 42) { testSuccess331(); } else { }; } function blub158(any x131) returns integer { return (x_131 castTo integer); } IS_NATIVE function testSuccess331() { } function A_init951(integer this165) { A_x_159[this_165] = 1; } function new_A821(integer x966) returns integer { local integer this618 this_618 = alloc_A265(); construct_A195(this_618, x_966); return this_618; } function construct_A195(integer this192, integer x132) { A_init951(this_192); A_x_159[this_192] = x_132; } function alloc_A265() returns integer { local integer this158 if (A_firstFree_126 == 0) { if (A_maxIndex_205 < 32768) { A_maxIndex_205 = (A_maxIndex_205 + 1); this_158 = A_maxIndex_205; } else { error116("Out of memory: Could not create A."); this_158 = 0; }; } else { A_firstFree_126 = (A_firstFree_126 - 1); this_158 = A_nextFree_631[A_firstFree_126]; }; return this_158; } function error116(string msg585) { $debugPrint737((msg_585 + (" " + #getStackTrace()))); }