array C_nextFree202 integer C_firstFree208 integer C_maxIndex635 array D_nextFree138 integer D_firstFree100 integer D_maxIndex182 integer C_firstFree208 = 0 integer C_maxIndex635 = 0 integer D_firstFree100 = 0 integer D_maxIndex182 = 0 function initGlobals356() { C_firstFree_208 = 0; C_maxIndex_635 = 0; D_firstFree_100 = 0; D_maxIndex_182 = 0; } function main131() { initGlobals356(); init_test140(); } function config183() { } function init_test140() { new_C100(); new_D137(); } function C_init233(integer this432) { construct_C_M196(this_432); } function construct_C_M196(integer this207) { } function new_C100() returns integer { local integer this288 this_288 = alloc_C885(); construct_C813(this_288); return this_288; } function construct_C813(integer this545) { C_init233(this_545); } function D_init144(integer this169) { } function new_D137() returns integer { local integer this120 this_120 = alloc_D119(); construct_D173(this_120); return this_120; } function construct_D173(integer this148) { D_init144(this_148); } function alloc_C885() returns integer { local integer this123 if (C_firstFree_208 == 0) { if (C_maxIndex_635 < 32768) { C_maxIndex_635 = (C_maxIndex_635 + 1); this_123 = C_maxIndex_635; } else { error737("Out of memory: Could not create C."); this_123 = 0; }; } else { C_firstFree_208 = (C_firstFree_208 - 1); this_123 = C_nextFree_202[C_firstFree_208]; }; return this_123; } function error737(string msg334) { $debugPrint616((msg_334 + (" " + #getStackTrace()))); } function alloc_D119() returns integer { local integer this148 if (D_firstFree_100 == 0) { if (D_maxIndex_182 < 32768) { D_maxIndex_182 = (D_maxIndex_182 + 1); this_148 = D_maxIndex_182; } else { error737("Out of memory: Could not create D."); this_148 = 0; }; } else { D_firstFree_100 = (D_firstFree_100 - 1); this_148 = D_nextFree_138[D_firstFree_100]; }; return this_148; }