array C_nextFree100 integer C_firstFree175 integer C_maxIndex157 integer C_firstFree175 = 0 integer C_maxIndex157 = 0 function initGlobals577() { } function main161() { local integer zeroInt739 initGlobals577(); zeroInt_739 = (0 castTo integer); takesInt173((0 castTo integer)); takesInt173(zeroInt_739); takesInt173(((zeroInt_739 castTo integer) castTo integer)); testClass634(); } function config154() { } IS_NATIVE function takesInt173(integer i155) { } function testClass634() { local integer cObj913 local integer cInt209 cObj_913 = new_C178(); cInt_209 = (cObj_913 castTo integer); takesC845(cObj_913); takesInt173(cInt_209); takesC845((cInt_209 castTo integer)); } IS_NATIVE function takesC845(integer c971) { } function new_C178() returns integer { local integer this270 if (C_firstFree_175 == 0) { if (C_maxIndex_157 < 32768) { C_maxIndex_157 = (C_maxIndex_157 + 1); this_270 = C_maxIndex_157; } else { error159("Out of memory: Could not create C."); this_270 = 0; }; } else { C_firstFree_175 = (C_firstFree_175 - 1); this_270 = C_nextFree_100[C_firstFree_175]; }; return this_270; } function error159(string msg513) { $debugPrint184((msg_513 + (" " + #getStackTrace()))); }