array C_nextFree686 integer C_firstFree153 integer C_maxIndex869 array C_v_x_0200 array C_v_x_1930 array C_v_x_2731 array C_v_x_3811 array C_v_x_4646 array C_v_y_0172 array C_v_y_1191 array C_v_y_2158 array C_v_y_3306 array C_v_y_4806 array C_v_z_0139 array C_v_z_1811 array C_v_z_2832 array C_v_z_3845 array C_v_z_4278 integer C_firstFree153 = 0 integer C_maxIndex869 = 0 function initGlobals141() { } function main909() { initGlobals141(); init_test115(); } function config201() { } function init_test115() { local integer c105 local real tuple_temp991 local real tuple_temp458 local real tuple_temp467 c_105 = new_C142(); tuple_temp_991 = 1.; tuple_temp_458 = 2.; tuple_temp_467 = 3.; C_v_x_set205(c_105, 0, tuple_temp_991); C_v_y_set692(c_105, 0, tuple_temp_458); C_v_z_set210(c_105, 0, tuple_temp_467); C_v_x_set205(c_105, 1, 5.); C_v_y_set692(c_105, 1, 6.); C_v_z_set210(c_105, 1, 7.); println364(R2S794(C_v_x_get701(c_105, 0))); println364(R2S794(C_v_z_get168(c_105, 0))); println364(R2S794(C_v_y_get163(c_105, 1))); if (((C_v_x_get701(c_105, 0) == 1.) and (C_v_z_get168(c_105, 0) == 3.)) and (C_v_y_get163(c_105, 1) == 6.)) { testSuccess114(); } else { }; } IS_NATIVE IS_EXTERN @extern function R2S794(real r104) returns string { } IS_NATIVE function println364(string s925) { } IS_NATIVE function testSuccess114() { } function new_C142() returns integer { local integer this122 local integer this186 if (C_firstFree_153 == 0) { if (C_maxIndex_869 < 32768) { C_maxIndex_869 = (C_maxIndex_869 + 1); this_186 = C_maxIndex_869; } else { error617("Out of memory: Could not create C."); this_186 = 0; }; } else { C_firstFree_153 = (C_firstFree_153 - 1); this_186 = C_nextFree_686[C_firstFree_153]; }; this_122 = this_186; return this_122; } function error617(string msg115) { $debugPrint187((msg_115 + (" " + #getStackTrace()))); } function C_v_x_set205(integer instanceId101, integer arrayIndex429, real value346) { if ((arrayIndex_429 < 0) or (arrayIndex_429 >= 5)) { error617("Index out of Bounds"); } else { if (arrayIndex_429 <= 2) { if (arrayIndex_429 <= 1) { if (arrayIndex_429 <= 0) { C_v_x_0_200[instanceId_101] = value_346; } else { C_v_x_1_930[instanceId_101] = value_346; }; } else { C_v_x_2_731[instanceId_101] = value_346; }; } else { if (arrayIndex_429 <= 3) { C_v_x_3_811[instanceId_101] = value_346; } else { C_v_x_4_646[instanceId_101] = value_346; }; }; }; } function C_v_x_get701(integer index1657, integer index2175) returns real { local real returnVal716 if ((index2_175 < 0) or (index2_175 >= 5)) { error617("Index out of Bounds"); } else { if (index2_175 <= 2) { if (index2_175 <= 1) { if (index2_175 <= 0) { returnVal_716 = C_v_x_0_200[index1_657]; } else { returnVal_716 = C_v_x_1_930[index1_657]; }; } else { returnVal_716 = C_v_x_2_731[index1_657]; }; } else { if (index2_175 <= 3) { returnVal_716 = C_v_x_3_811[index1_657]; } else { returnVal_716 = C_v_x_4_646[index1_657]; }; }; }; return returnVal_716; } function C_v_y_set692(integer instanceId275, integer arrayIndex354, real value101) { if ((arrayIndex_354 < 0) or (arrayIndex_354 >= 5)) { error617("Index out of Bounds"); } else { if (arrayIndex_354 <= 2) { if (arrayIndex_354 <= 1) { if (arrayIndex_354 <= 0) { C_v_y_0_172[instanceId_275] = value_101; } else { C_v_y_1_191[instanceId_275] = value_101; }; } else { C_v_y_2_158[instanceId_275] = value_101; }; } else { if (arrayIndex_354 <= 3) { C_v_y_3_306[instanceId_275] = value_101; } else { C_v_y_4_806[instanceId_275] = value_101; }; }; }; } function C_v_y_get163(integer index1423, integer index2985) returns real { local real returnVal257 if ((index2_985 < 0) or (index2_985 >= 5)) { error617("Index out of Bounds"); } else { if (index2_985 <= 2) { if (index2_985 <= 1) { if (index2_985 <= 0) { returnVal_257 = C_v_y_0_172[index1_423]; } else { returnVal_257 = C_v_y_1_191[index1_423]; }; } else { returnVal_257 = C_v_y_2_158[index1_423]; }; } else { if (index2_985 <= 3) { returnVal_257 = C_v_y_3_306[index1_423]; } else { returnVal_257 = C_v_y_4_806[index1_423]; }; }; }; return returnVal_257; } function C_v_z_set210(integer instanceId470, integer arrayIndex796, real value194) { if ((arrayIndex_796 < 0) or (arrayIndex_796 >= 5)) { error617("Index out of Bounds"); } else { if (arrayIndex_796 <= 2) { if (arrayIndex_796 <= 1) { if (arrayIndex_796 <= 0) { C_v_z_0_139[instanceId_470] = value_194; } else { C_v_z_1_811[instanceId_470] = value_194; }; } else { C_v_z_2_832[instanceId_470] = value_194; }; } else { if (arrayIndex_796 <= 3) { C_v_z_3_845[instanceId_470] = value_194; } else { C_v_z_4_278[instanceId_470] = value_194; }; }; }; } function C_v_z_get168(integer index1884, integer index2186) returns real { local real returnVal145 if ((index2_186 < 0) or (index2_186 >= 5)) { error617("Index out of Bounds"); } else { if (index2_186 <= 2) { if (index2_186 <= 1) { if (index2_186 <= 0) { returnVal_145 = C_v_z_0_139[index1_884]; } else { returnVal_145 = C_v_z_1_811[index1_884]; }; } else { returnVal_145 = C_v_z_2_832[index1_884]; }; } else { if (index2_186 <= 3) { returnVal_145 = C_v_z_3_845[index1_884]; } else { returnVal_145 = C_v_z_4_278[index1_884]; }; }; }; return returnVal_145; }