OpenShadingLanguage 1.00
# Compiled by oslc 1.3.0
shader node_vector_math
param	string	type	"Add" 		 %read{0,38} %write{2147483647,-1}
param	vector	Vector1	0 0 0 		 %read{2,41} %write{2147483647,-1}
param	vector	Vector2	0 0 0 		 %read{2,35} %write{2147483647,-1}
oparam	float	Value	0 		 %read{2147483647,-1} %write{11,40}
oparam	vector	Vector	0 0 0 		 %read{3,20} %write{2,41}
local	vector	___297_c	 %read{36,37} %write{35,35}
const	string	$const1	"Add"		 %read{0,0} %write{2147483647,-1}
temp	int	$tmp1	 %read{1,1} %write{0,0}
temp	float	$tmp2	 %read{7,7} %write{4,4}
const	int	$const2	0		 %read{3,15} %write{2147483647,-1}
temp	float	$tmp3	 %read{4,4} %write{3,3}
temp	float	$tmp4	 %read{7,7} %write{6,6}
const	int	$const3	1		 %read{5,17} %write{2147483647,-1}
temp	float	$tmp5	 %read{6,6} %write{5,5}
temp	float	$tmp6	 %read{10,10} %write{7,7}
temp	float	$tmp7	 %read{10,10} %write{9,9}
const	int	$const4	2		 %read{8,20} %write{2147483647,-1}
temp	float	$tmp8	 %read{9,9} %write{8,8}
temp	float	$tmp9	 %read{11,11} %write{10,10}
const	float	$const5	3		 %read{11,23} %write{2147483647,-1}
const	string	$const6	"Subtract"		 %read{12,12} %write{2147483647,-1}
temp	int	$tmp10	 %read{13,13} %write{12,12}
temp	float	$tmp11	 %read{19,19} %write{16,16}
temp	float	$tmp12	 %read{16,16} %write{15,15}
temp	float	$tmp13	 %read{19,19} %write{18,18}
temp	float	$tmp14	 %read{18,18} %write{17,17}
temp	float	$tmp15	 %read{22,22} %write{19,19}
temp	float	$tmp16	 %read{22,22} %write{21,21}
temp	float	$tmp17	 %read{21,21} %write{20,20}
temp	float	$tmp18	 %read{23,23} %write{22,22}
const	string	$const7	"Average"		 %read{24,24} %write{2147483647,-1}
temp	int	$tmp19	 %read{25,25} %write{24,24}
temp	vector	$tmp20	 %read{27,27} %write{26,26}
temp	vector	$tmp21	 %read{29,29} %write{28,28}
const	string	$const8	"Dot Product"		 %read{30,30} %write{2147483647,-1}
temp	int	$tmp22	 %read{31,31} %write{30,30}
const	string	$const9	"Cross Product"		 %read{33,33} %write{2147483647,-1}
temp	int	$tmp23	 %read{34,34} %write{33,33}
const	string	$const10	"Normalize"		 %read{38,38} %write{2147483647,-1}
temp	int	$tmp24	 %read{39,39} %write{38,38}
code ___main___
# D:\\blender_dev\\code\\trunk\\intern\\cycles\\kernel\\shaders\\node_vector_math.osl:29
# 		Vector = Vector1 + Vector2;
	eq		$tmp1 type $const1 	%filename{"D:\\blender_dev\\code\\trunk\\intern\\cycles\\kernel\\shaders\\node_vector_math.osl"} %line{29} %argrw{"wrr"}
	if		$tmp1 12 12 	%argrw{"r"}
# D:\\blender_dev\\code\\trunk\\intern\\cycles\\kernel\\shaders\\node_vector_math.osl:30
# 		Value = (abs(Vector[0]) + abs(Vector[1]) + abs(Vector[2])) / 3.0;
	add		Vector Vector1 Vector2 	%line{30} %argrw{"wrr"}
# D:\\blender_dev\\code\\trunk\\intern\\cycles\\kernel\\shaders\\node_vector_math.osl:31
# 	}
	compref		$tmp3 Vector $const2 	%line{31} %argrw{"wrr"}
	abs		$tmp2 $tmp3 	%argrw{"wr"}
	compref		$tmp5 Vector $const3 	%argrw{"wrr"}
	abs		$tmp4 $tmp5 	%argrw{"wr"}
	add		$tmp6 $tmp2 $tmp4 	%argrw{"wrr"}
	compref		$tmp8 Vector $const4 	%argrw{"wrr"}
	abs		$tmp7 $tmp8 	%argrw{"wr"}
	add		$tmp9 $tmp6 $tmp7 	%argrw{"wrr"}
	div		Value $tmp9 $const5 	%argrw{"wrr"}
# D:\\blender_dev\\code\\trunk\\intern\\cycles\\kernel\\shaders\\node_vector_math.osl:33
# 		Vector = Vector1 - Vector2;
	eq		$tmp10 type $const6 	%line{33} %argrw{"wrr"}
	if		$tmp10 24 24 	%argrw{"r"}
# D:\\blender_dev\\code\\trunk\\intern\\cycles\\kernel\\shaders\\node_vector_math.osl:34
# 		Value = (abs(Vector[0]) + abs(Vector[1]) + abs(Vector[2])) / 3.0;
	sub		Vector Vector1 Vector2 	%line{34} %argrw{"wrr"}
# D:\\blender_dev\\code\\trunk\\intern\\cycles\\kernel\\shaders\\node_vector_math.osl:35
# 	}
	compref		$tmp12 Vector $const2 	%line{35} %argrw{"wrr"}
	abs		$tmp11 $tmp12 	%argrw{"wr"}
	compref		$tmp14 Vector $const3 	%argrw{"wrr"}
	abs		$tmp13 $tmp14 	%argrw{"wr"}
	add		$tmp15 $tmp11 $tmp13 	%argrw{"wrr"}
	compref		$tmp17 Vector $const4 	%argrw{"wrr"}
	abs		$tmp16 $tmp17 	%argrw{"wr"}
	add		$tmp18 $tmp15 $tmp16 	%argrw{"wrr"}
	div		Value $tmp18 $const5 	%argrw{"wrr"}
# D:\\blender_dev\\code\\trunk\\intern\\cycles\\kernel\\shaders\\node_vector_math.osl:37
# 		Value = length(Vector1 + Vector2);
	eq		$tmp19 type $const7 	%line{37} %argrw{"wrr"}
	if		$tmp19 30 30 	%argrw{"r"}
# D:\\blender_dev\\code\\trunk\\intern\\cycles\\kernel\\shaders\\node_vector_math.osl:38
# 		Vector = normalize(Vector1 + Vector2);
	add		$tmp20 Vector1 Vector2 	%line{38} %argrw{"wrr"}
	length		Value $tmp20 	%argrw{"wr"}
# D:\\blender_dev\\code\\trunk\\intern\\cycles\\kernel\\shaders\\node_vector_math.osl:39
# 	}
	add		$tmp21 Vector1 Vector2 	%line{39} %argrw{"wrr"}
	normalize	Vector $tmp21 	%argrw{"wr"}
# D:\\blender_dev\\code\\trunk\\intern\\cycles\\kernel\\shaders\\node_vector_math.osl:41
# 		Value = dot(Vector1, Vector2);
	eq		$tmp22 type $const8 	%line{41} %argrw{"wrr"}
	if		$tmp22 33 33 	%argrw{"r"}
# D:\\blender_dev\\code\\trunk\\intern\\cycles\\kernel\\shaders\\node_vector_math.osl:42
# 	}
	dot		Value Vector1 Vector2 	%line{42} %argrw{"wrr"}
# D:\\blender_dev\\code\\trunk\\intern\\cycles\\kernel\\shaders\\node_vector_math.osl:44
# 		vector c = cross(Vector1, Vector2);
	eq		$tmp23 type $const9 	%line{44} %argrw{"wrr"}
	if		$tmp23 38 38 	%argrw{"r"}
# D:\\blender_dev\\code\\trunk\\intern\\cycles\\kernel\\shaders\\node_vector_math.osl:45
# 		Value = length(c);
	cross		___297_c Vector1 Vector2 	%line{45} %argrw{"wrr"}
# D:\\blender_dev\\code\\trunk\\intern\\cycles\\kernel\\shaders\\node_vector_math.osl:46
# 		Vector = normalize(c);
	length		Value ___297_c 	%line{46} %argrw{"wr"}
# D:\\blender_dev\\code\\trunk\\intern\\cycles\\kernel\\shaders\\node_vector_math.osl:47
# 	}
	normalize	Vector ___297_c 	%line{47} %argrw{"wr"}
# D:\\blender_dev\\code\\trunk\\intern\\cycles\\kernel\\shaders\\node_vector_math.osl:49
# 		Value = length(Vector1);
	eq		$tmp24 type $const10 	%line{49} %argrw{"wrr"}
	if		$tmp24 42 42 	%argrw{"r"}
# D:\\blender_dev\\code\\trunk\\intern\\cycles\\kernel\\shaders\\node_vector_math.osl:50
# 		Vector = normalize(Vector1);
	length		Value Vector1 	%line{50} %argrw{"wr"}
# D:\\blender_dev\\code\\trunk\\intern\\cycles\\kernel\\shaders\\node_vector_math.osl:51
# 	}
	normalize	Vector Vector1 	%line{51} %argrw{"wr"}
	end
