array C_nextFree198 integer C_firstFree157 integer C_maxIndex513 array C_v_x_0867 array C_v_x_1100 array C_v_x_2156 array C_v_x_3835 array C_v_x_4140 array C_v_y_0173 array C_v_y_1833 array C_v_y_2191 array C_v_y_3117 array C_v_y_4198 array C_v_z_0172 array C_v_z_1101 array C_v_z_2430 array C_v_z_3138 array C_v_z_4167 integer C_firstFree157 = 0 integer C_maxIndex513 = 0 function initGlobals138() { } function main260() { initGlobals138(); init_test195(); } function config119() { } function init_test195() { local integer c156 c_156 = new_C205(); C_v_x_set185(c_156, 0, 1.); C_v_y_set135(c_156, 0, 2.); C_v_z_set177(c_156, 0, 3.); C_v_x_set185(c_156, 1, 5.); C_v_y_set135(c_156, 1, 6.); C_v_z_set177(c_156, 1, 7.); println178(R2S130(C_v_x_get197(c_156, 0))); println178(R2S130(C_v_z_get726(c_156, 0))); println178(R2S130(C_v_y_get231(c_156, 1))); if (((C_v_x_get197(c_156, 0) == 1.) and (C_v_z_get726(c_156, 0) == 3.)) and (C_v_y_get231(c_156, 1) == 6.)) { testSuccess140(); } else { }; } IS_NATIVE IS_EXTERN @extern function R2S130(real r112) returns string { } IS_NATIVE function println178(string s540) { } IS_NATIVE function testSuccess140() { } function C_init210(integer this121) { } function new_C205() returns integer { local integer this197 this_197 = alloc_C121(); construct_C198(this_197); return this_197; } function construct_C198(integer this678) { C_init210(this_678); } function alloc_C121() returns integer { local integer this300 if (C_firstFree_157 == 0) { if (C_maxIndex_513 < 32768) { C_maxIndex_513 = (C_maxIndex_513 + 1); this_300 = C_maxIndex_513; } else { error102("Out of memory: Could not create C."); this_300 = 0; }; } else { C_firstFree_157 = (C_firstFree_157 - 1); this_300 = C_nextFree_198[C_firstFree_157]; }; return this_300; } function error102(string msg652) { $debugPrint439((msg_652 + (" " + #getStackTrace()))); } function C_v_x_set185(integer instanceId137, integer arrayIndex652, real value190) { if ((arrayIndex_652 < 0) or (arrayIndex_652 >= 5)) { error102("Index out of Bounds"); } else { if (arrayIndex_652 <= 2) { if (arrayIndex_652 <= 1) { if (arrayIndex_652 <= 0) { C_v_x_0_867[instanceId_137] = value_190; } else { C_v_x_1_100[instanceId_137] = value_190; }; } else { C_v_x_2_156[instanceId_137] = value_190; }; } else { if (arrayIndex_652 <= 3) { C_v_x_3_835[instanceId_137] = value_190; } else { C_v_x_4_140[instanceId_137] = value_190; }; }; }; } function C_v_x_get197(integer index1117, integer index2114) returns real { local real returnVal192 if ((index2_114 < 0) or (index2_114 >= 5)) { error102("Index out of Bounds"); } else { if (index2_114 <= 2) { if (index2_114 <= 1) { if (index2_114 <= 0) { returnVal_192 = C_v_x_0_867[index1_117]; } else { returnVal_192 = C_v_x_1_100[index1_117]; }; } else { returnVal_192 = C_v_x_2_156[index1_117]; }; } else { if (index2_114 <= 3) { returnVal_192 = C_v_x_3_835[index1_117]; } else { returnVal_192 = C_v_x_4_140[index1_117]; }; }; }; return returnVal_192; } function C_v_y_set135(integer instanceId137, integer arrayIndex155, real value202) { if ((arrayIndex_155 < 0) or (arrayIndex_155 >= 5)) { error102("Index out of Bounds"); } else { if (arrayIndex_155 <= 2) { if (arrayIndex_155 <= 1) { if (arrayIndex_155 <= 0) { C_v_y_0_173[instanceId_137] = value_202; } else { C_v_y_1_833[instanceId_137] = value_202; }; } else { C_v_y_2_191[instanceId_137] = value_202; }; } else { if (arrayIndex_155 <= 3) { C_v_y_3_117[instanceId_137] = value_202; } else { C_v_y_4_198[instanceId_137] = value_202; }; }; }; } function C_v_y_get231(integer index1159, integer index2156) returns real { local real returnVal933 if ((index2_156 < 0) or (index2_156 >= 5)) { error102("Index out of Bounds"); } else { if (index2_156 <= 2) { if (index2_156 <= 1) { if (index2_156 <= 0) { returnVal_933 = C_v_y_0_173[index1_159]; } else { returnVal_933 = C_v_y_1_833[index1_159]; }; } else { returnVal_933 = C_v_y_2_191[index1_159]; }; } else { if (index2_156 <= 3) { returnVal_933 = C_v_y_3_117[index1_159]; } else { returnVal_933 = C_v_y_4_198[index1_159]; }; }; }; return returnVal_933; } function C_v_z_set177(integer instanceId158, integer arrayIndex697, real value120) { if ((arrayIndex_697 < 0) or (arrayIndex_697 >= 5)) { error102("Index out of Bounds"); } else { if (arrayIndex_697 <= 2) { if (arrayIndex_697 <= 1) { if (arrayIndex_697 <= 0) { C_v_z_0_172[instanceId_158] = value_120; } else { C_v_z_1_101[instanceId_158] = value_120; }; } else { C_v_z_2_430[instanceId_158] = value_120; }; } else { if (arrayIndex_697 <= 3) { C_v_z_3_138[instanceId_158] = value_120; } else { C_v_z_4_167[instanceId_158] = value_120; }; }; }; } function C_v_z_get726(integer index1139, integer index2603) returns real { local real returnVal166 if ((index2_603 < 0) or (index2_603 >= 5)) { error102("Index out of Bounds"); } else { if (index2_603 <= 2) { if (index2_603 <= 1) { if (index2_603 <= 0) { returnVal_166 = C_v_z_0_172[index1_139]; } else { returnVal_166 = C_v_z_1_101[index1_139]; }; } else { returnVal_166 = C_v_z_2_430[index1_139]; }; } else { if (index2_603 <= 3) { returnVal_166 = C_v_z_3_138[index1_139]; } else { returnVal_166 = C_v_z_4_167[index1_139]; }; }; }; return returnVal_166; }