array C_nextFree156 integer C_firstFree183 integer C_maxIndex166 integer C_firstFree183 = 0 integer C_maxIndex166 = 0 function initGlobals207() { C_firstFree_183 = 0; C_maxIndex_166 = 0; } function main115() { initGlobals207(); init_test112(); } function config660() { } function init_test112() { local integer a363 local integer b187 a_363 = new_C750(); b_187 = identity725(a_363); if (a_363 == b_187) { testSuccess128(); } else { }; } function identity725(any a166) returns any { return a_166; } IS_NATIVE function testSuccess128() { } function C_init701(integer this168) { } function new_C750() returns integer { local integer this172 this_172 = alloc_C189(); construct_C471(this_172); return this_172; } function construct_C471(integer this299) { C_init701(this_299); } function alloc_C189() returns integer { local integer this504 if (C_firstFree_183 == 0) { if (C_maxIndex_166 < 32768) { C_maxIndex_166 = (C_maxIndex_166 + 1); this_504 = C_maxIndex_166; } else { error132("Out of memory: Could not create C."); this_504 = 0; }; } else { C_firstFree_183 = (C_firstFree_183 - 1); this_504 = C_nextFree_156[C_firstFree_183]; }; return this_504; } function error132(string msg160) { $debugPrint113((msg_160 + (" " + #getStackTrace()))); }