array C_nextFree293 integer C_firstFree182 integer C_maxIndex110 integer C_firstFree182 = 0 integer C_maxIndex110 = 0 function initGlobals189() { C_firstFree_182 = 0; C_maxIndex_110 = 0; } function main198() { initGlobals189(); init_Test179(); } function config799() { } function init_Test179() { testEnum176(); testClass487(); } function testEnum176() { local integer zeroEnum983 local integer zeroInt131 local integer zeroEnum2855 zeroEnum_983 = 0; zeroInt_131 = (zeroEnum_983 castTo integer); zeroEnum2_855 = (zeroInt_131 castTo integer); takesInt161((zeroEnum_983 castTo integer)); takesInt161(zeroInt_131); takesInt161((zeroEnum2_855 castTo integer)); } IS_NATIVE function takesInt161(integer i617) { } function testClass487() { local integer cObj117 local integer cInt520 local integer cObj2609 cObj_117 = new_C515(); cInt_520 = (cObj_117 castTo integer); cObj2_609 = (cInt_520 castTo integer); takesC907(cObj_117); takesInt161(cInt_520); takesC907(cObj2_609); } IS_NATIVE function takesC907(integer c110) { } function C_init877(integer this204) { } function new_C515() returns integer { local integer this199 this_199 = alloc_C866(); construct_C550(this_199); return this_199; } function construct_C550(integer this152) { C_init877(this_152); } function alloc_C866() returns integer { local integer this112 if (C_firstFree_182 == 0) { if (C_maxIndex_110 < 32768) { C_maxIndex_110 = (C_maxIndex_110 + 1); this_112 = C_maxIndex_110; } else { error107("Out of memory: Could not create C."); this_112 = 0; }; } else { C_firstFree_182 = (C_firstFree_182 - 1); this_112 = C_nextFree_293[C_firstFree_182]; }; return this_112; } function error107(string msg189) { $debugPrint137((msg_189 + (" " + #getStackTrace()))); }