OpenShadingLanguage 1.00
# Compiled by oslc 1.15.3.0
# options: -q -O2 -I/build/blender/src/blender/intern/cycles/kernel/osl/shaders -I/usr/share/OSL/shaders -o /build/blender/src/build/intern/cycles/kernel/osl/shaders/node_mix_float.oso
shader node_mix_float
param	int	use_clamp	0		%read{0,0} %write{2147483647,-1}
param	float	Factor	0.5		%read{2,4} %write{2147483647,-1}
param	float	A	0		%read{5,5} %write{2147483647,-1}
param	float	B	0		%read{5,5} %write{2147483647,-1}
oparam	float	Result	0		%read{2147483647,-1} %write{5,5}
local	float	t	%read{5,5} %write{3,4}
const	float	$const1	0		%read{3,3} %write{2147483647,-1}
const	float	$const2	1		%read{2,2} %write{2147483647,-1}
const	string	$const3	"clamp"		%read{1,1} %write{2147483647,-1}
temp	float	$tmp1	%read{3,3} %write{2,2}
code ___main___
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_mix_float.osl:10
#   float t = (use_clamp) ? clamp(Factor, 0.0, 1.0) : Factor;
	if		use_clamp 4 5 	%filename{"/build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_mix_float.osl"} %line{10} %argrw{"r"}
	functioncall	$const3 4 	%argrw{"r"}
# /usr/share/OSL/shaders/stdosl.h:141
# float  clamp (float x, float minval, float maxval) { return max(min(x,maxval),minval); }
	min		$tmp1 Factor $const2 	%filename{"/usr/share/OSL/shaders/stdosl.h"} %line{141} %argrw{"wrr"}
	max		t $tmp1 $const1 	%argrw{"wrr"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_mix_float.osl:10
#   float t = (use_clamp) ? clamp(Factor, 0.0, 1.0) : Factor;
	assign		t Factor 	%filename{"/build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_mix_float.osl"} %line{10} %argrw{"wr"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_mix_float.osl:11
#   Result = mix(A, B, t);
	mix		Result A B t 	%line{11} %argrw{"wrrr"}
	end
