array A_nextFree804 integer A_firstFree962 integer A_maxIndex190 array A_x530 integer A_firstFree962 = 0 integer A_maxIndex190 = 0 function initGlobals167() { A_firstFree_962 = 0; A_maxIndex_190 = 0; } function main519() { initGlobals167(); init_test352(); } function config161() { } function init_test352() { local integer a974 local integer i598 a_974 = new_A897(42); i_598 = blub627(a_974); if (A_x_530[(((2 * i_598) - i_598) castTo integer)] == 42) { testSuccess441(); } else { }; } function blub627(any x110) returns integer { return (x_110 castTo integer); } IS_NATIVE function testSuccess441() { } function A_init920(integer this372) { A_x_530[this_372] = 1; } function new_A897(integer x204) returns integer { local integer this159 this_159 = alloc_A516(); construct_A165(this_159, x_204); return this_159; } function construct_A165(integer this979, integer x179) { A_init920(this_979); A_x_530[this_979] = x_179; } function alloc_A516() returns integer { local integer this637 if (A_firstFree_962 == 0) { if (A_maxIndex_190 < 32768) { A_maxIndex_190 = (A_maxIndex_190 + 1); this_637 = A_maxIndex_190; } else { error169("Out of memory: Could not create A."); this_637 = 0; }; } else { A_firstFree_962 = (A_firstFree_962 - 1); this_637 = A_nextFree_804[A_firstFree_962]; }; return this_637; } function error169(string msg110) { $debugPrint170((msg_110 + (" " + #getStackTrace()))); }