array C_nextFree130 integer C_firstFree202 integer C_maxIndex131 integer C_firstFree202 = 0 integer C_maxIndex131 = 0 function initGlobals182() { } function main165() { initGlobals182(); init_test405(); } function config121() { } function init_test405() { new_C163(); } function C_init179(integer this199) { construct_C_M994(this_199); } function construct_C_M994(integer this101) { } function new_C163() returns integer { local integer this155 this_155 = alloc_C253(); construct_C581(this_155); return this_155; } function construct_C581(integer this592) { C_init179(this_592); } function alloc_C253() returns integer { local integer this153 if (C_firstFree_202 == 0) { if (C_maxIndex_131 < 32768) { C_maxIndex_131 = (C_maxIndex_131 + 1); this_153 = C_maxIndex_131; } else { error763("Out of memory: Could not create C."); this_153 = 0; }; } else { C_firstFree_202 = (C_firstFree_202 - 1); this_153 = C_nextFree_130[C_firstFree_202]; }; return this_153; } function error763(string msg123) { $debugPrint448((msg_123 + (" " + #getStackTrace()))); }