OpenShadingLanguage 1.00
# Compiled by oslc 1.3.0
shader node_rgb_ramp
param	color[256]	ramp_color	0 0 0 		 %read{9,16} %write{2147483647,-1}
param	float[256]	ramp_alpha	0 		 %read{10,22} %write{2147483647,-1}
param	float	Fac	0 		 %read{1,1} %write{2147483647,-1}
oparam	color	Color	0 0 0 		 %read{14,14} %write{9,18}
oparam	float	Alpha	1 		 %read{20,20} %write{10,24}
local	float	f	 %read{6,8} %write{5,5}
local	int	i	 %read{7,21} %write{6,6}
local	float	t	 %read{11,23} %write{8,8}
temp	float	$tmp1	 %read{5,5} %write{2,2}
const	float	$const1	0		 %read{2,11} %write{2147483647,-1}
const	float	$const2	1		 %read{1,19} %write{2147483647,-1}
const	string	$const3	"clamp"		 %read{0,0} %write{2147483647,-1}
temp	float	$tmp2	 %read{2,2} %write{1,1}
const	int	$const4	256		 %read{3,3} %write{2147483647,-1}
const	int	$const5	1		 %read{3,21} %write{2147483647,-1}
temp	int	$tmp3	 %read{4,4} %write{3,3}
temp	float	$tmp4	 %read{5,5} %write{4,4}
temp	float	$tmp5	 %read{8,8} %write{7,7}
temp	int	$tmp6	 %read{12,12} %write{11,11}
temp	float	$tmp7	 %read{14,14} %write{13,13}
temp	color	$tmp8	 %read{18,18} %write{14,14}
temp	int	$tmp9	 %read{16,16} %write{15,15}
temp	color	$tmp10	 %read{17,17} %write{16,16}
temp	color	$tmp11	 %read{18,18} %write{17,17}
temp	float	$tmp12	 %read{20,20} %write{19,19}
temp	float	$tmp13	 %read{24,24} %write{20,20}
temp	int	$tmp14	 %read{22,22} %write{21,21}
temp	float	$tmp15	 %read{23,23} %write{22,22}
temp	float	$tmp16	 %read{24,24} %write{23,23}
code ___main___
# D:\\blender_dev\\code\\trunk\\intern\\cycles\\kernel\\shaders\\node_rgb_ramp.osl:31
# 
	functioncall	$const3 3 	%filename{"D:\\blender_dev\\code\\trunk\\intern\\cycles\\kernel\\shaders\\node_rgb_ramp.osl"} %line{31} %argrw{"r"}
# D:/blender_dev\\code\\trunk\\intern\\cycles\\kernel\\shaders\\stdosl.h:142
# PERCOMP1 (sqrt)
	min		$tmp2 Fac $const2 	%filename{"D:/blender_dev\\code\\trunk\\intern\\cycles\\kernel\\shaders\\stdosl.h"} %line{142} %argrw{"wrr"}
	max		$tmp1 $tmp2 $const1 	%argrw{"wrr"}
# D:\\blender_dev\\code\\trunk\\intern\\cycles\\kernel\\shaders\\node_rgb_ramp.osl:31
# 
	sub		$tmp3 $const4 $const5 	%filename{"D:\\blender_dev\\code\\trunk\\intern\\cycles\\kernel\\shaders\\node_rgb_ramp.osl"} %line{31} %argrw{"wrr"}
	assign		$tmp4 $tmp3 	%argrw{"wr"}
	mul		f $tmp1 $tmp4 	%argrw{"wrr"}
# D:\\blender_dev\\code\\trunk\\intern\\cycles\\kernel\\shaders\\node_rgb_ramp.osl:33
# 	float t = f - (float)i;
	assign		i f 	%line{33} %argrw{"wr"}
# D:\\blender_dev\\code\\trunk\\intern\\cycles\\kernel\\shaders\\node_rgb_ramp.osl:34
# 
	assign		$tmp5 i 	%line{34} %argrw{"wr"}
	sub		t f $tmp5 	%argrw{"wrr"}
# D:\\blender_dev\\code\\trunk\\intern\\cycles\\kernel\\shaders\\node_rgb_ramp.osl:36
# 	Alpha = ramp_alpha[i];
	aref		Color ramp_color i 	%line{36} %argrw{"wrr"}
# D:\\blender_dev\\code\\trunk\\intern\\cycles\\kernel\\shaders\\node_rgb_ramp.osl:37
# 
	aref		Alpha ramp_alpha i 	%line{37} %argrw{"wrr"}
# D:\\blender_dev\\code\\trunk\\intern\\cycles\\kernel\\shaders\\node_rgb_ramp.osl:39
# 		Color = (1.0 - t) * Color + t * ramp_color[i + 1];
	gt		$tmp6 t $const1 	%line{39} %argrw{"wrr"}
	if		$tmp6 25 25 	%argrw{"r"}
# D:\\blender_dev\\code\\trunk\\intern\\cycles\\kernel\\shaders\\node_rgb_ramp.osl:40
# 		Alpha = (1.0 - t) * Alpha + t * ramp_alpha[i + 1];
	sub		$tmp7 $const2 t 	%line{40} %argrw{"wrr"}
	mul		$tmp8 $tmp7 Color 	%argrw{"wrr"}
	add		$tmp9 i $const5 	%argrw{"wrr"}
	aref		$tmp10 ramp_color $tmp9 	%argrw{"wrr"}
	mul		$tmp11 t $tmp10 	%argrw{"wrr"}
	add		Color $tmp8 $tmp11 	%argrw{"wrr"}
# D:\\blender_dev\\code\\trunk\\intern\\cycles\\kernel\\shaders\\node_rgb_ramp.osl:41
# 	}
	sub		$tmp12 $const2 t 	%line{41} %argrw{"wrr"}
	mul		$tmp13 $tmp12 Alpha 	%argrw{"wrr"}
	add		$tmp14 i $const5 	%argrw{"wrr"}
	aref		$tmp15 ramp_alpha $tmp14 	%argrw{"wrr"}
	mul		$tmp16 t $tmp15 	%argrw{"wrr"}
	add		Alpha $tmp13 $tmp16 	%argrw{"wrr"}
	end
