array C_nextFree175 integer C_firstFree610 integer C_maxIndex329 array C_v_0152 array C_v_1469 array C_v_2143 integer C_firstFree610 = 0 integer C_maxIndex329 = 0 function initGlobals582() { } function main115() { local integer c109 initGlobals582(); c_109 = new_C638(); if (((C_v_get118(c_109, 0) == 7) and (C_v_get118(c_109, 1) == 8)) and (C_v_get118(c_109, 2) == 9)) { testSuccess133(); } else { }; } function config516() { } IS_NATIVE function testSuccess133() { } function new_C638() returns integer { local integer this186 if (C_firstFree_610 == 0) { if (C_maxIndex_329 < 32768) { C_maxIndex_329 = (C_maxIndex_329 + 1); this_186 = C_maxIndex_329; } else { error132("Out of memory: Could not create C."); this_186 = 0; }; } else { C_firstFree_610 = (C_firstFree_610 - 1); this_186 = C_nextFree_175[C_firstFree_610]; }; C_v_set181(this_186, 0, 7); C_v_set181(this_186, 1, 8); C_v_set181(this_186, 2, 9); return this_186; } function error132(string msg211) { $debugPrint117((msg_211 + (" " + #getStackTrace()))); } function C_v_set181(integer instanceId194, integer arrayIndex123, integer value869) { if ((arrayIndex_123 < 0) or (arrayIndex_123 >= 3)) { error132("Index out of Bounds"); } else { if (arrayIndex_123 <= 1) { if (arrayIndex_123 <= 0) { C_v_0_152[instanceId_194] = value_869; } else { C_v_1_469[instanceId_194] = value_869; }; } else { C_v_2_143[instanceId_194] = value_869; }; }; } function C_v_get118(integer index1143, integer index2122) returns integer { local integer returnVal481 if ((index2_122 < 0) or (index2_122 >= 3)) { error132("Index out of Bounds"); } else { if (index2_122 <= 1) { if (index2_122 <= 0) { returnVal_481 = C_v_0_152[index1_143]; } else { returnVal_481 = C_v_1_469[index1_143]; }; } else { returnVal_481 = C_v_2_143[index1_143]; }; }; return returnVal_481; }