array C_nextFree652 integer C_firstFree204 integer C_maxIndex202 array C_v_0187 array C_v_1187 array C_v_2178 integer C_firstFree204 = 0 integer C_maxIndex202 = 0 function initGlobals214() { } function main540() { initGlobals214(); init_test105(); } function config857() { } function init_test105() { local integer c194 c_194 = new_C156(); if (((C_v_get301(c_194, 0) == 7) and (C_v_get301(c_194, 1) == 8)) and (C_v_get301(c_194, 2) == 9)) { testSuccess201(); } else { }; } IS_NATIVE function testSuccess201() { } function C_init206(integer this850) { C_v_set751(this_850, 0, 7); C_v_set751(this_850, 1, 8); C_v_set751(this_850, 2, 9); } function new_C156() returns integer { local integer this205 this_205 = alloc_C712(); construct_C183(this_205); return this_205; } function construct_C183(integer this145) { C_init206(this_145); } function alloc_C712() returns integer { local integer this354 if (C_firstFree_204 == 0) { if (C_maxIndex_202 < 32768) { C_maxIndex_202 = (C_maxIndex_202 + 1); this_354 = C_maxIndex_202; } else { error370("Out of memory: Could not create C."); this_354 = 0; }; } else { C_firstFree_204 = (C_firstFree_204 - 1); this_354 = C_nextFree_652[C_firstFree_204]; }; return this_354; } function error370(string msg239) { $debugPrint140((msg_239 + (" " + #getStackTrace()))); } function C_v_set751(integer instanceId158, integer arrayIndex909, integer value206) { if ((arrayIndex_909 < 0) or (arrayIndex_909 >= 3)) { error370("Index out of Bounds"); } else { if (arrayIndex_909 <= 1) { if (arrayIndex_909 <= 0) { C_v_0_187[instanceId_158] = value_206; } else { C_v_1_187[instanceId_158] = value_206; }; } else { C_v_2_178[instanceId_158] = value_206; }; }; } function C_v_get301(integer index1178, integer index2738) returns integer { local integer returnVal152 if ((index2_738 < 0) or (index2_738 >= 3)) { error370("Index out of Bounds"); } else { if (index2_738 <= 1) { if (index2_738 <= 0) { returnVal_152 = C_v_0_187[index1_178]; } else { returnVal_152 = C_v_1_187[index1_178]; }; } else { returnVal_152 = C_v_2_178[index1_178]; }; }; return returnVal_152; }