OpenShadingLanguage 1.01
# Compiled by oslc 1.6.2
surface granite
param	float	Kd	0.80000001		%read{41,41} %write{2147483647,-1}
param	float	Ka	0.2		%read{42,42} %write{2147483647,-1}
global	point	P	%read{27,28} %write{2147483647,-1} %derivs
global	vector	I	%read{6,18} %write{2147483647,-1}
global	normal	N	%read{15,15} %write{2147483647,-1}
global	normal	Ng	%read{18,18} %write{2147483647,-1}
global	color	C	%read{44,44} %write{44,44}
global	vector	L	%read{34,34} %write{2147483647,-1}
global	color	Cl	%read{32,32} %write{2147483647,-1}
local	color	___278_C	%read{26,40} %write{25,39}
local	float	___279___nondiffuse	%read{26,39} %write{26,39}
local	float	sum	%read{2,43} %write{0,14}
local	float	freq	%read{2,14} %write{1,14}
local	int	___291_i	%read{2,14} %write{2,14}
const	int	$const1	0		%read{0,29} %write{2147483647,-1}
const	float	$const2	1		%read{1,31} %write{2147483647,-1}
const	int	$const3	6		%read{4,4} %write{2147483647,-1}
temp	int	$tmp1	%read{2,14} %write{2,14}
temp	float	$tmp2	%read{10,10} %write{9,9}
const	float	$const4	0.5		%read{8,8} %write{2147483647,-1}
temp	float	$tmp3	%read{8,8} %write{7,7}
temp	float	$tmp4	%read{6,6} %write{5,5}
const	float	$const6	4		%read{5,5} %write{2147483647,-1}
temp	vector	$tmp5	%read{7,7} %write{6,6}
temp	float	$tmp6	%read{9,9} %write{8,8}
temp	float	$tmp7	%read{11,11} %write{10,10}
const	float	$const8	2		%read{12,12} %write{2147483647,-1}
const	int	$const9	1		%read{14,14} %write{2147483647,-1}
temp	int	$tmp8	%read{2147483647,-1} %write{13,13}
temp	color	$tmp9	%read{41,41} %write{40,40}
temp	vector	$tmp10	%read{26,39} %write{21,39}
temp	normal	$tmp11	%read{21,22} %write{15,15}
const	string	$const10	"faceforward"		%read{16,17} %write{2147483647,-1}
temp	float	$tmp12	%read{19,19} %write{18,18}
temp	int	$tmp13	%read{20,20} %write{19,19}
const	string	$const11	"diffuse"		%read{24,24} %write{2147483647,-1}
const	float	$const12	1.5707964		%read{27,28} %write{2147483647,-1}
temp	int	$tmp14	%read{26,39} %write{26,39}
temp	int	$tmp15	%read{2147483647,-1} %write{30,30}
const	string	$const13	"light"		%read{30,30} %write{2147483647,-1}
const	string	$const14	"__nondiffuse"		%read{30,30} %write{2147483647,-1}
temp	float	$tmp16	%read{32,32} %write{31,31}
temp	color	$tmp17	%read{38,38} %write{32,32}
temp	color	$tmp18	%read{38,38} %write{37,37}
const	float	$const15	0		%read{33,33} %write{2147483647,-1}
temp	color	$tmp19	%read{37,37} %write{33,33}
temp	float	$tmp20	%read{36,36} %write{35,35}
temp	vector	$tmp21	%read{35,35} %write{34,34}
temp	color	$tmp22	%read{37,37} %write{36,36}
temp	color	$tmp23	%read{26,39} %write{26,39}
temp	color	$tmp24	%read{42,42} %write{41,41}
temp	color	$tmp25	%read{43,43} %write{42,42}
temp	color	$tmp26	%read{44,44} %write{43,43}
code ___main___
# D:\\xrt.git\\src\\osl\\shaders\\granite.osl:14
# 	float freq = 1.0; /* Try other values for example, 7.0 */
	assign		sum $const1 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\granite.osl"} %line{14} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\granite.osl:15
# 
	assign		freq $const2 	%line{15} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\granite.osl:17
# 		sum = sum + abs(.5 - noise( 4 * freq * I))/freq ;
	for		$tmp1 4 5 13 15 	%line{17} %argrw{"r"}
	assign		___291_i $const1 	%argrw{"wr"}
	lt		$tmp1 ___291_i $const3 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\granite.osl:18
# 		freq *= 2;
	mul		$tmp4 $const6 freq 	%line{18} %argrw{"wrr"}
	mul		$tmp5 $tmp4 I 	%argrw{"wrr"}
	noise		$tmp3 $tmp5 	%argrw{"wr"}
	sub		$tmp6 $const4 $tmp3 	%argrw{"wrr"}
	abs		$tmp2 $tmp6 	%argrw{"wr"}
	div		$tmp7 $tmp2 freq 	%argrw{"wrr"}
	add		sum sum $tmp7 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\granite.osl:19
# 	}
	mul		freq freq $const8 	%line{19} %argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\granite.osl:17
# 		sum = sum + abs(.5 - noise( 4 * freq * I))/freq ;
	assign		$tmp8 ___291_i 	%line{17} %argrw{"wr"}
	add		___291_i ___291_i $const9 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\granite.osl:21
# }
	normalize	$tmp11 N 	%line{21} %argrw{"wr"}
	functioncall	$const10 24 	%argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:196
# vector cross (vector a, vector b) BUILTIN;
	functioncall	$const10 24 	%filename{"D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h"} %line{196} %argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:192
#     return (dot(I,Nref) > 0) ? -N : N;
	dot		$tmp12 I Ng 	%line{192} %argrw{"wrr"}
	gt		$tmp13 $tmp12 $const1 	%argrw{"wrr"}
	if		$tmp13 22 23 	%argrw{"r"}
	neg		$tmp10 $tmp11 	%argrw{"wr"}
	assign		$tmp10 $tmp11 	%argrw{"wr"}
	return
# D:\\xrt.git\\src\\osl\\shaders\\granite.osl:21
# }
	functioncall	$const11 41 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\granite.osl"} %line{21} %argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:501
# // Define concat in terms of shorter concat
	assign		___278_C $const1 	%filename{"D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h"} %line{501} %argrw{"wr"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:503
#     return concat(concat(a,b), c);
	for		$tmp14 28 29 40 40 	%line{503} %argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:507
# }
	lights_begin	P $tmp10 $const12 	%line{507} %argrw{"rrr"}
	lights		$tmp14 P $tmp10 $const12 	%argrw{"wrrr"} %argderivs{1}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:504
# 		float __nondiffuse = 0;
	assign		___279___nondiffuse $const1 	%line{504} %argrw{"wr"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:505
# 		getmessage ("light", "__nondiffuse", __nondiffuse);
	getmessage	$tmp15 $const13 $const14 ___279___nondiffuse 	%line{505} %argrw{"wrrw"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:506
# 		C += Cl * (1-__nondiffuse) * max (0, dot (N, normalize (L)));
	sub		$tmp16 $const2 ___279___nondiffuse 	%line{506} %argrw{"wrr"}
	mul		$tmp17 Cl $tmp16 	%argrw{"wrr"}
	assign		$tmp19 $const15 	%argrw{"wr"}
	normalize	$tmp21 L 	%argrw{"wr"}
	dot		$tmp20 $tmp10 $tmp21 	%argrw{"wrr"}
	assign		$tmp22 $tmp20 	%argrw{"wr"}
	max		$tmp18 $tmp19 $tmp22 	%argrw{"wrr"}
	mul		$tmp23 $tmp17 $tmp18 	%argrw{"wrr"}
	add		___278_C ___278_C $tmp23 	%argrw{"wrr"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:508
# 	return C;
	assign		$tmp9 ___278_C 	%line{508} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\granite.osl:21
# }
	mul		$tmp24 Kd $tmp9 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\granite.osl"} %line{21} %argrw{"wrr"}
	add		$tmp25 Ka $tmp24 	%argrw{"wrr"}
	mul		$tmp26 sum $tmp25 	%argrw{"wrr"}
	mul		C C $tmp26 	%argrw{"wrr"}
	end
