array C_nextFree173 integer C_firstFree690 integer C_maxIndex248 array C_v_x_0930 array C_v_x_1496 array C_v_x_2250 array C_v_x_3213 array C_v_x_4172 array C_v_y_0219 array C_v_y_1607 array C_v_y_2144 array C_v_y_3183 array C_v_y_4171 array C_v_z_0505 array C_v_z_1397 array C_v_z_2902 array C_v_z_3776 array C_v_z_4196 integer C_firstFree690 = 0 integer C_maxIndex248 = 0 function initGlobals804() { C_firstFree_690 = 0; C_maxIndex_248 = 0; } function main107() { initGlobals804(); init_test191(); } function config159() { } function init_test191() { local integer c668 local real tuple_temp210 local real tuple_temp655 local real tuple_temp496 c_668 = new_C199(); tuple_temp_210 = 1.; tuple_temp_655 = 2.; tuple_temp_496 = 3.; C_v_x_set196(c_668, 0, tuple_temp_210); C_v_y_set567(c_668, 0, tuple_temp_655); C_v_z_set183(c_668, 0, tuple_temp_496); C_v_x_set196(c_668, 1, 5.); C_v_y_set567(c_668, 1, 6.); C_v_z_set183(c_668, 1, 7.); println338(R2S211(C_v_x_get172(c_668, 0))); println338(R2S211(C_v_z_get458(c_668, 0))); println338(R2S211(C_v_y_get542(c_668, 1))); if (((C_v_x_get172(c_668, 0) == 1.) and (C_v_z_get458(c_668, 0) == 3.)) and (C_v_y_get542(c_668, 1) == 6.)) { testSuccess152(); } else { }; } IS_NATIVE IS_EXTERN @extern function R2S211(real r817) returns string { } IS_NATIVE function println338(string s850) { } IS_NATIVE function testSuccess152() { } function C_init149(integer this707) { } function new_C199() returns integer { local integer this704 this_704 = alloc_C931(); construct_C196(this_704); return this_704; } function construct_C196(integer this157) { C_init149(this_157); } function alloc_C931() returns integer { local integer this141 if (C_firstFree_690 == 0) { if (C_maxIndex_248 < 32768) { C_maxIndex_248 = (C_maxIndex_248 + 1); this_141 = C_maxIndex_248; } else { error113("Out of memory: Could not create C."); this_141 = 0; }; } else { C_firstFree_690 = (C_firstFree_690 - 1); this_141 = C_nextFree_173[C_firstFree_690]; }; return this_141; } function error113(string msg522) { $debugPrint308((msg_522 + (" " + #getStackTrace()))); } function C_v_x_set196(integer instanceId192, integer arrayIndex148, real value167) { if ((arrayIndex_148 < 0) or (arrayIndex_148 >= 5)) { error113("Index out of Bounds"); } else { if (arrayIndex_148 <= 2) { if (arrayIndex_148 <= 1) { if (arrayIndex_148 <= 0) { C_v_x_0_930[instanceId_192] = value_167; } else { C_v_x_1_496[instanceId_192] = value_167; }; } else { C_v_x_2_250[instanceId_192] = value_167; }; } else { if (arrayIndex_148 <= 3) { C_v_x_3_213[instanceId_192] = value_167; } else { C_v_x_4_172[instanceId_192] = value_167; }; }; }; } function C_v_x_get172(integer index1172, integer index2204) returns real { local real returnVal135 if ((index2_204 < 0) or (index2_204 >= 5)) { error113("Index out of Bounds"); } else { if (index2_204 <= 2) { if (index2_204 <= 1) { if (index2_204 <= 0) { returnVal_135 = C_v_x_0_930[index1_172]; } else { returnVal_135 = C_v_x_1_496[index1_172]; }; } else { returnVal_135 = C_v_x_2_250[index1_172]; }; } else { if (index2_204 <= 3) { returnVal_135 = C_v_x_3_213[index1_172]; } else { returnVal_135 = C_v_x_4_172[index1_172]; }; }; }; return returnVal_135; } function C_v_y_set567(integer instanceId241, integer arrayIndex919, real value159) { if ((arrayIndex_919 < 0) or (arrayIndex_919 >= 5)) { error113("Index out of Bounds"); } else { if (arrayIndex_919 <= 2) { if (arrayIndex_919 <= 1) { if (arrayIndex_919 <= 0) { C_v_y_0_219[instanceId_241] = value_159; } else { C_v_y_1_607[instanceId_241] = value_159; }; } else { C_v_y_2_144[instanceId_241] = value_159; }; } else { if (arrayIndex_919 <= 3) { C_v_y_3_183[instanceId_241] = value_159; } else { C_v_y_4_171[instanceId_241] = value_159; }; }; }; } function C_v_y_get542(integer index1104, integer index2127) returns real { local real returnVal116 if ((index2_127 < 0) or (index2_127 >= 5)) { error113("Index out of Bounds"); } else { if (index2_127 <= 2) { if (index2_127 <= 1) { if (index2_127 <= 0) { returnVal_116 = C_v_y_0_219[index1_104]; } else { returnVal_116 = C_v_y_1_607[index1_104]; }; } else { returnVal_116 = C_v_y_2_144[index1_104]; }; } else { if (index2_127 <= 3) { returnVal_116 = C_v_y_3_183[index1_104]; } else { returnVal_116 = C_v_y_4_171[index1_104]; }; }; }; return returnVal_116; } function C_v_z_set183(integer instanceId873, integer arrayIndex359, real value264) { if ((arrayIndex_359 < 0) or (arrayIndex_359 >= 5)) { error113("Index out of Bounds"); } else { if (arrayIndex_359 <= 2) { if (arrayIndex_359 <= 1) { if (arrayIndex_359 <= 0) { C_v_z_0_505[instanceId_873] = value_264; } else { C_v_z_1_397[instanceId_873] = value_264; }; } else { C_v_z_2_902[instanceId_873] = value_264; }; } else { if (arrayIndex_359 <= 3) { C_v_z_3_776[instanceId_873] = value_264; } else { C_v_z_4_196[instanceId_873] = value_264; }; }; }; } function C_v_z_get458(integer index1156, integer index2110) returns real { local real returnVal208 if ((index2_110 < 0) or (index2_110 >= 5)) { error113("Index out of Bounds"); } else { if (index2_110 <= 2) { if (index2_110 <= 1) { if (index2_110 <= 0) { returnVal_208 = C_v_z_0_505[index1_156]; } else { returnVal_208 = C_v_z_1_397[index1_156]; }; } else { returnVal_208 = C_v_z_2_902[index1_156]; }; } else { if (index2_110 <= 3) { returnVal_208 = C_v_z_3_776[index1_156]; } else { returnVal_208 = C_v_z_4_196[index1_156]; }; }; }; return returnVal_208; }