// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage

shader
test_min_u_float_u_float (output color Cout = 0)
{
    float  val = 1.0/(2*raytype("camera"));
    float val2 = val/2;
              
    float numerator = 0.3;
    float red = 0.0;
    float green = 0.5;
    float blue = 1.0;
    
    red = min(numerator, val);
    green = min(numerator, 0.0);
    blue =  min(val,numerator);
    
    if (int(P[0]*64)%2==0) {    
        red = min(numerator,val2);
        green = min(numerator,0.0);
        blue =  min(val2,numerator);
    }
        
    Cout = color(red,green,blue);
}
