array<real> test_vs_x508
array<real> test_vs_y258
array<real> test_vs_z114
real vec3_trim_return_x978




function initGlobals202() { 
}


function main175() { 
    initGlobals202();
    init_test872();
}


function config160() { 
}


function init_test872() { 
    local real tuple_temp177
    local real tuple_temp224
    local real tuple_temp130
    tuple_temp_177 = 3.;
    tuple_temp_224 = 15.;
    tuple_temp_130 = 4.;
    test_vs_x_508[0] = tuple_temp_177;
    test_vs_y_258[0] = tuple_temp_224;
    test_vs_z_114[0] = tuple_temp_130;
    if (3 > 2) {
        vec3_trim439(test_vs_x_508[0], test_vs_y_258[0], test_vs_z_114[0], 5.);
    } else {
    };
}


function vec3_trim439(real this_x887, real this_y563, real this_z160, real value160) returns real { 
    local real result_x143
    local real result_y103
    local real result_z156
    local real tuple_temp114
    local real tuple_temp147
    local real tuple_temp130
    tuple_temp_114 = this_x_887;
    tuple_temp_147 = this_y_563;
    tuple_temp_130 = this_z_160;
    result_x_143 = tuple_temp_114;
    result_y_103 = tuple_temp_147;
    result_z_156 = tuple_temp_130;
    if ((result_x_143 > (- value_160)) and (result_x_143 < value_160)) {
        result_x_143 = 0.;
    } else {
    };
    if ((result_y_103 > (- value_160)) and (result_y_103 < value_160)) {
        result_y_103 = 0.;
    } else {
    };
    if ((result_z_156 > (- value_160)) and (result_z_156 < value_160)) {
        result_z_156 = 0.;
    } else {
    };
    vec3_trim_return_x_978 = result_x_143;
    return vec3_trim_return_x_978;
}