array A_nextFree150 integer A_firstFree152 integer A_maxIndex128 array A_x136 integer A_firstFree152 = 0 integer A_maxIndex128 = 0 function initGlobals377() { A_firstFree_152 = 0; A_maxIndex_128 = 0; } function main646() { initGlobals377(); init_test802(); } function config765() { } function init_test802() { local integer a429 local integer i240 a_429 = new_A624(42); i_240 = blub739(a_429); if (A_x_136[(((2 * i_240) - i_240) castTo integer)] == 42) { testSuccess258(); } else { }; } function blub739(any x193) returns integer { return (x_193 castTo integer); } IS_NATIVE function testSuccess258() { } function A_init163(integer this139) { A_x_136[this_139] = 1; } function new_A624(integer x171) returns integer { local integer this259 this_259 = alloc_A567(); construct_A403(this_259, x_171); return this_259; } function construct_A403(integer this739, integer x266) { A_init163(this_739); A_x_136[this_739] = x_266; } function alloc_A567() returns integer { local integer this137 if (A_firstFree_152 == 0) { if (A_maxIndex_128 < 32768) { A_maxIndex_128 = (A_maxIndex_128 + 1); this_137 = A_maxIndex_128; } else { error717("Out of memory: Could not create A."); this_137 = 0; }; } else { A_firstFree_152 = (A_firstFree_152 - 1); this_137 = A_nextFree_150[A_firstFree_152]; }; return this_137; } function error717(string msg575) { $debugPrint199((msg_575 + (" " + #getStackTrace()))); }