array C_nextFree199 integer C_firstFree166 integer C_maxIndex234 array C_v_x_0140 array C_v_x_1627 array C_v_x_2162 array C_v_x_3613 array C_v_x_4104 array C_v_y_0942 array C_v_y_1535 array C_v_y_2529 array C_v_y_3933 array C_v_y_4389 array C_v_z_0172 array C_v_z_1166 array C_v_z_2124 array C_v_z_3461 array C_v_z_4482 integer C_firstFree166 = 0 integer C_maxIndex234 = 0 function initGlobals574() { } function main137() { initGlobals574(); init_test240(); } function config711() { } function init_test240() { local integer c148 c_148 = new_C105(); C_v_x_set919(c_148, 0, 1.); C_v_y_set110(c_148, 0, 2.); C_v_z_set481(c_148, 0, 3.); C_v_x_set919(c_148, 1, 5.); C_v_y_set110(c_148, 1, 6.); C_v_z_set481(c_148, 1, 7.); println152(R2S310(C_v_x_get870(c_148, 0))); println152(R2S310(C_v_z_get473(c_148, 0))); println152(R2S310(C_v_y_get149(c_148, 1))); if (((C_v_x_get870(c_148, 0) == 1.) and (C_v_z_get473(c_148, 0) == 3.)) and (C_v_y_get149(c_148, 1) == 6.)) { testSuccess163(); } else { }; } IS_NATIVE IS_EXTERN @extern function R2S310(real r663) returns string { } IS_NATIVE function println152(string s206) { } IS_NATIVE function testSuccess163() { } function new_C105() returns integer { local integer this388 if (C_firstFree_166 == 0) { if (C_maxIndex_234 < 32768) { C_maxIndex_234 = (C_maxIndex_234 + 1); this_388 = C_maxIndex_234; } else { error161("Out of memory: Could not create C."); this_388 = 0; }; } else { C_firstFree_166 = (C_firstFree_166 - 1); this_388 = C_nextFree_199[C_firstFree_166]; }; return this_388; } function error161(string msg959) { $debugPrint768((msg_959 + (" " + #getStackTrace()))); } function C_v_x_set919(integer instanceId154, integer arrayIndex923, real value807) { if ((arrayIndex_923 < 0) or (arrayIndex_923 >= 5)) { error161("Index out of Bounds"); } else { if (arrayIndex_923 <= 2) { if (arrayIndex_923 <= 1) { if (arrayIndex_923 <= 0) { C_v_x_0_140[instanceId_154] = value_807; } else { C_v_x_1_627[instanceId_154] = value_807; }; } else { C_v_x_2_162[instanceId_154] = value_807; }; } else { if (arrayIndex_923 <= 3) { C_v_x_3_613[instanceId_154] = value_807; } else { C_v_x_4_104[instanceId_154] = value_807; }; }; }; } function C_v_x_get870(integer index1136, integer index2926) returns real { local real returnVal174 if ((index2_926 < 0) or (index2_926 >= 5)) { error161("Index out of Bounds"); } else { if (index2_926 <= 2) { if (index2_926 <= 1) { if (index2_926 <= 0) { returnVal_174 = C_v_x_0_140[index1_136]; } else { returnVal_174 = C_v_x_1_627[index1_136]; }; } else { returnVal_174 = C_v_x_2_162[index1_136]; }; } else { if (index2_926 <= 3) { returnVal_174 = C_v_x_3_613[index1_136]; } else { returnVal_174 = C_v_x_4_104[index1_136]; }; }; }; return returnVal_174; } function C_v_y_set110(integer instanceId189, integer arrayIndex130, real value174) { if ((arrayIndex_130 < 0) or (arrayIndex_130 >= 5)) { error161("Index out of Bounds"); } else { if (arrayIndex_130 <= 2) { if (arrayIndex_130 <= 1) { if (arrayIndex_130 <= 0) { C_v_y_0_942[instanceId_189] = value_174; } else { C_v_y_1_535[instanceId_189] = value_174; }; } else { C_v_y_2_529[instanceId_189] = value_174; }; } else { if (arrayIndex_130 <= 3) { C_v_y_3_933[instanceId_189] = value_174; } else { C_v_y_4_389[instanceId_189] = value_174; }; }; }; } function C_v_y_get149(integer index1131, integer index2137) returns real { local real returnVal128 if ((index2_137 < 0) or (index2_137 >= 5)) { error161("Index out of Bounds"); } else { if (index2_137 <= 2) { if (index2_137 <= 1) { if (index2_137 <= 0) { returnVal_128 = C_v_y_0_942[index1_131]; } else { returnVal_128 = C_v_y_1_535[index1_131]; }; } else { returnVal_128 = C_v_y_2_529[index1_131]; }; } else { if (index2_137 <= 3) { returnVal_128 = C_v_y_3_933[index1_131]; } else { returnVal_128 = C_v_y_4_389[index1_131]; }; }; }; return returnVal_128; } function C_v_z_set481(integer instanceId124, integer arrayIndex782, real value211) { if ((arrayIndex_782 < 0) or (arrayIndex_782 >= 5)) { error161("Index out of Bounds"); } else { if (arrayIndex_782 <= 2) { if (arrayIndex_782 <= 1) { if (arrayIndex_782 <= 0) { C_v_z_0_172[instanceId_124] = value_211; } else { C_v_z_1_166[instanceId_124] = value_211; }; } else { C_v_z_2_124[instanceId_124] = value_211; }; } else { if (arrayIndex_782 <= 3) { C_v_z_3_461[instanceId_124] = value_211; } else { C_v_z_4_482[instanceId_124] = value_211; }; }; }; } function C_v_z_get473(integer index1168, integer index2175) returns real { local real returnVal193 if ((index2_175 < 0) or (index2_175 >= 5)) { error161("Index out of Bounds"); } else { if (index2_175 <= 2) { if (index2_175 <= 1) { if (index2_175 <= 0) { returnVal_193 = C_v_z_0_172[index1_168]; } else { returnVal_193 = C_v_z_1_166[index1_168]; }; } else { returnVal_193 = C_v_z_2_124[index1_168]; }; } else { if (index2_175 <= 3) { returnVal_193 = C_v_z_3_461[index1_168]; } else { returnVal_193 = C_v_z_4_482[index1_168]; }; }; }; return returnVal_193; }