array C_nextFree198 integer C_firstFree121 integer C_maxIndex168 array C_v_0849 array C_v_1515 array C_v_2184 integer C_firstFree121 = 0 integer C_maxIndex168 = 0 function initGlobals163() { C_firstFree_121 = 0; C_maxIndex_168 = 0; } function main153() { initGlobals163(); init_test620(); } function config695() { } function init_test620() { local integer c289 c_289 = new_C176(); if (((C_v_get205(c_289, 0) == 7) and (C_v_get205(c_289, 1) == 8)) and (C_v_get205(c_289, 2) == 9)) { testSuccess143(); } else { }; } IS_NATIVE function testSuccess143() { } function C_init817(integer this921) { C_v_set320(this_921, 0, 7); C_v_set320(this_921, 1, 8); C_v_set320(this_921, 2, 9); } function new_C176() returns integer { local integer this661 this_661 = alloc_C614(); construct_C146(this_661); return this_661; } function construct_C146(integer this462) { C_init817(this_462); } function alloc_C614() returns integer { local integer this104 if (C_firstFree_121 == 0) { if (C_maxIndex_168 < 32768) { C_maxIndex_168 = (C_maxIndex_168 + 1); this_104 = C_maxIndex_168; } else { error116("Out of memory: Could not create C."); this_104 = 0; }; } else { C_firstFree_121 = (C_firstFree_121 - 1); this_104 = C_nextFree_198[C_firstFree_121]; }; return this_104; } function error116(string msg162) { $debugPrint240((msg_162 + (" " + #getStackTrace()))); } function C_v_set320(integer instanceId154, integer arrayIndex124, integer value325) { if ((arrayIndex_124 < 0) or (arrayIndex_124 >= 3)) { error116("Index out of Bounds"); } else { if (arrayIndex_124 <= 1) { if (arrayIndex_124 <= 0) { C_v_0_849[instanceId_154] = value_325; } else { C_v_1_515[instanceId_154] = value_325; }; } else { C_v_2_184[instanceId_154] = value_325; }; }; } function C_v_get205(integer index1162, integer index2301) returns integer { local integer returnVal417 if ((index2_301 < 0) or (index2_301 >= 3)) { error116("Index out of Bounds"); } else { if (index2_301 <= 1) { if (index2_301 <= 0) { returnVal_417 = C_v_0_849[index1_162]; } else { returnVal_417 = C_v_1_515[index1_162]; }; } else { returnVal_417 = C_v_2_184[index1_162]; }; }; return returnVal_417; }