array C_nextFree204 integer C_firstFree406 integer C_maxIndex726 array C_v_0501 array C_v_1200 array C_v_2187 integer C_firstFree406 = 0 integer C_maxIndex726 = 0 function initGlobals107() { } function main206() { initGlobals107(); init_test202(); } function config540() { } function init_test202() { local integer c208 c_208 = new_C214(); if (((C_v_get187(c_208, 0) == 7) and (C_v_get187(c_208, 1) == 8)) and (C_v_get187(c_208, 2) == 9)) { testSuccess105(); } else { }; } IS_NATIVE function testSuccess105() { } function C_init201(integer this177) { C_v_set178(this_177, 0, 7); C_v_set178(this_177, 1, 8); C_v_set178(this_177, 2, 9); } function new_C214() returns integer { local integer this380 this_380 = alloc_C161(); construct_C156(this_380); return this_380; } function construct_C156(integer this850) { C_init201(this_850); } function alloc_C161() returns integer { local integer this288 if (C_firstFree_406 == 0) { if (C_maxIndex_726 < 32768) { C_maxIndex_726 = (C_maxIndex_726 + 1); this_288 = C_maxIndex_726; } else { error775("Out of memory: Could not create C."); this_288 = 0; }; } else { C_firstFree_406 = (C_firstFree_406 - 1); this_288 = C_nextFree_204[C_firstFree_406]; }; return this_288; } function error775(string msg354) { $debugPrint370((msg_354 + (" " + #getStackTrace()))); } function C_v_set178(integer instanceId301, integer arrayIndex751, integer value158) { if ((arrayIndex_751 < 0) or (arrayIndex_751 >= 3)) { error775("Index out of Bounds"); } else { if (arrayIndex_751 <= 1) { if (arrayIndex_751 <= 0) { C_v_0_501[instanceId_301] = value_158; } else { C_v_1_200[instanceId_301] = value_158; }; } else { C_v_2_187[instanceId_301] = value_158; }; }; } function C_v_get187(integer index1909, integer index2206) returns integer { local integer returnVal178 if ((index2_206 < 0) or (index2_206 >= 3)) { error775("Index out of Bounds"); } else { if (index2_206 <= 1) { if (index2_206 <= 0) { returnVal_178 = C_v_0_501[index1_909]; } else { returnVal_178 = C_v_1_200[index1_909]; }; } else { returnVal_178 = C_v_2_187[index1_909]; }; }; return returnVal_178; }