@sml_check_flag=external local_unnamed_addr global i32
@_SMLZN2IO12ClosedStreamE=external local_unnamed_addr global i8*
@_SMLZN5Int327compareE=external local_unnamed_addr global i8*
@_SMLZ8Overflow=external unnamed_addr constant i8*
@a=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN10TextPrimIO13augmentReaderE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN10TextPrimIO13augmentReaderE_222 to void(...)*),i32 -2147483647}>,align 8
@b=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN10TextPrimIO13augmentWriterE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN10TextPrimIO13augmentWriterE_233 to void(...)*),i32 -2147483647}>,align 8
@c=private unnamed_addr constant<{[4x i8],i32,[49x i8]}><{[4x i8]zeroinitializer,i32 -2147483599,[49x i8]c"src/smlnj/Basis/IO/prim-io-text.sml:244.20(7685)\00"}>,align 8
@d=private unnamed_addr constant<{[4x i8],i32,[49x i8]}><{[4x i8]zeroinitializer,i32 -2147483599,[49x i8]c"src/smlnj/Basis/IO/prim-io-text.sml:247.34(7763)\00"}>,align 8
@e=private unnamed_addr constant<{[4x i8],i32,[49x i8]}><{[4x i8]zeroinitializer,i32 -2147483599,[49x i8]c"src/smlnj/Basis/IO/prim-io-text.sml:250.14(7807)\00"}>,align 8
@f=private unnamed_addr constant<{[4x i8],i32,[49x i8]}><{[4x i8]zeroinitializer,i32 -2147483599,[49x i8]c"src/smlnj/Basis/IO/prim-io-text.sml:256.34(7966)\00"}>,align 8
@g=private unnamed_addr constant<{[4x i8],i32,[49x i8]}><{[4x i8]zeroinitializer,i32 -2147483599,[49x i8]c"src/smlnj/Basis/IO/prim-io-text.sml:259.14(8010)\00"}>,align 8
@h=private unnamed_addr constant<{[4x i8],i32,[49x i8]}><{[4x i8]zeroinitializer,i32 -2147483599,[49x i8]c"src/smlnj/Basis/IO/prim-io-text.sml:242.44(7619)\00"}>,align 8
@i=private unnamed_addr constant<{[4x i8],i32,[9x i8]}><{[4x i8]zeroinitializer,i32 -2147483639,[9x i8]c"<vector>\00"}>,align 8
@j=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN10TextPrimIO10openVectorE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN10TextPrimIO10openVectorE_246 to void(...)*),i32 -2147483647}>,align 8
@k=private unnamed_addr constant<{[4x i8],i32,i32,[4x i8],i32}><{[4x i8]zeroinitializer,i32 -805306360,i32 0,[4x i8]zeroinitializer,i32 0}>,align 8
@l=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32)*@_SMLLN10TextPrimIO6nullRdE_182 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN10TextPrimIO6nullRdE_249 to void(...)*),i32 -2147483647}>,align 8
@m=private unnamed_addr constant<{[4x i8],i32,[49x i8]}><{[4x i8]zeroinitializer,i32 -2147483599,[49x i8]c"src/smlnj/Basis/IO/prim-io-text.sml:285.44(8737)\00"}>,align 8
@n=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32)*@_SMLFN10TextPrimIO6nullRdE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN10TextPrimIO6nullRdE_252 to void(...)*),i32 -2147483647}>,align 8
@o=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i32)*@_SMLLN10TextPrimIO6nullWrE_200 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN10TextPrimIO6nullWrE_257 to void(...)*),i32 -2147483647}>,align 8
@p=private unnamed_addr constant<{[4x i8],i32,i8*,i32}><{[4x i8]zeroinitializer,i32 -805306360,i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@o,i32 0,i32 0,i32 0),i32 8),i32 1}>,align 8
@q=private unnamed_addr constant<{[4x i8],i32,[49x i8]}><{[4x i8]zeroinitializer,i32 -2147483599,[49x i8]c"src/smlnj/Basis/IO/prim-io-text.sml:307.44(9384)\00"}>,align 8
@r=private unnamed_addr constant<{[4x i8],i32,[7x i8]}><{[4x i8]zeroinitializer,i32 -2147483641,[7x i8]c"<null>\00"}>,align 8
@s=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32)*@_SMLFN10TextPrimIO6nullWrE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN10TextPrimIO6nullWrE_260 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN10TextPrimIO10openVectorE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@j,i64 0,i32 2)to i8*)
@_SMLZN10TextPrimIO6nullRdE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@n,i64 0,i32 2)to i8*)
@_SMLZN10TextPrimIO6nullWrE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@s,i64 0,i32 2)to i8*)
@_SMLZN10TextPrimIO13augmentReaderE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@a,i64 0,i32 2)to i8*)
@_SMLZN10TextPrimIO13augmentWriterE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@b,i64 0,i32 2)to i8*)
@_SML_gvar4f4a36ea37e56c58_prim_io_text=private global<{[4x i8],i32,[1x i8*]}><{[4x i8]zeroinitializer,i32 -1342177272,[1x i8*]zeroinitializer}>,align 8
@t=private unnamed_addr global[2x i64][i64 1,i64 sub(i64 ptrtoint(i8**getelementptr inbounds(<{[4x i8],i32,[1x i8*]}>,<{[4x i8],i32,[1x i8*]}>*@_SML_gvar4f4a36ea37e56c58_prim_io_text,i32 0,i32 2,i32 0)to i64),i64 ptrtoint([2x i64]*@t to i64))]
@_SML_ftab4f4a36ea37e56c58_prim_io_text=external global i8
@u=private unnamed_addr global i8 0
@_SMLZN10TextPrimIO7compareE=alias i8*,getelementptr inbounds(<{[4x i8],i32,[1x i8*]}>,<{[4x i8],i32,[1x i8*]}>*@_SML_gvar4f4a36ea37e56c58_prim_io_text,i32 0,i32 2,i32 0)
declare void@llvm.gcroot(i8**,i8*)#0
declare{i32,i1}@llvm.sadd.with.overflow.i32(i32,i32)#0
declare{i32,i1}@llvm.ssub.with.overflow.i32(i32,i32)#0
declare i8*@sml_alloc(i32 inreg)local_unnamed_addr#0
declare void@sml_check(i32 inreg)local_unnamed_addr
declare void@sml_end()local_unnamed_addr#0
declare void@sml_gcroot(i8*,void()*,i8*,i8*)local_unnamed_addr#0
declare void@sml_raise(i8*inreg)local_unnamed_addr#1
declare void@sml_start(i8*inreg)local_unnamed_addr#0
declare void@sml_write(i8*inreg,i8**inreg,i8*inreg)local_unnamed_addr#0
declare i8*@_SMLFN10CharVector8fromListE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN14CharArraySlice4baseE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN14CharArraySlice4fullE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN14CharArraySlice5sliceE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i32@_SMLFN14CharArraySlice6lengthE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN14CharArraySlice6vectorE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare void@_SMLFN14CharArraySlice7copyVecE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8@_SMLFN15CharVectorSlice3subE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN15CharVectorSlice4fullE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN15CharVectorSlice5sliceE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i32@_SMLFN15CharVectorSlice6lengthE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN15CharVectorSlice6vectorE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN15CharVectorSlice8subsliceE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i32@_SMLFN5Int323minE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN6Option5valOfE(i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN9CharArray5arrayE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare void@_SMLFN9CharArray7copyVecE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main3a60343781315c1e_Option()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main5148a836b3728be9_Int32()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_mainadbb5309e852b68c_CharVector()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main84d772f4dc36a05f_CharVectorSlice()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main83aaee9bdacb8a0e_CharArray()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main4beb4c3c7634547e_CharArraySlice()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_mainfe9066b69eea2866_IO()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_load3a60343781315c1e_Option(i8*)local_unnamed_addr
declare void@_SML_load5148a836b3728be9_Int32(i8*)local_unnamed_addr
declare void@_SML_loadadbb5309e852b68c_CharVector(i8*)local_unnamed_addr
declare void@_SML_load84d772f4dc36a05f_CharVectorSlice(i8*)local_unnamed_addr
declare void@_SML_load83aaee9bdacb8a0e_CharArray(i8*)local_unnamed_addr
declare void@_SML_load4beb4c3c7634547e_CharArraySlice(i8*)local_unnamed_addr
declare void@_SML_loadfe9066b69eea2866_IO(i8*)local_unnamed_addr
define private void@_SML_tabb4f4a36ea37e56c58_prim_io_text()#3{
unreachable
}
define void@_SML_load4f4a36ea37e56c58_prim_io_text(i8*%a)local_unnamed_addr#0{
%b=load i8,i8*@u,align 1
%c=icmp eq i8%b,0
br i1%c,label%e,label%d
d:
ret void
e:
store i8 1,i8*@u,align 1
tail call void@_SML_load3a60343781315c1e_Option(i8*%a)#0
tail call void@_SML_load5148a836b3728be9_Int32(i8*%a)#0
tail call void@_SML_loadadbb5309e852b68c_CharVector(i8*%a)#0
tail call void@_SML_load84d772f4dc36a05f_CharVectorSlice(i8*%a)#0
tail call void@_SML_load83aaee9bdacb8a0e_CharArray(i8*%a)#0
tail call void@_SML_load4beb4c3c7634547e_CharArraySlice(i8*%a)#0
tail call void@_SML_loadfe9066b69eea2866_IO(i8*%a)#0
tail call void@sml_gcroot(i8*%a,void()*@_SML_tabb4f4a36ea37e56c58_prim_io_text,i8*@_SML_ftab4f4a36ea37e56c58_prim_io_text,i8*bitcast([2x i64]*@t to i8*))#0
ret void
}
define void@_SML_main4f4a36ea37e56c58_prim_io_text()local_unnamed_addr#2 gc"smlsharp"{
%a=alloca[3x i8*],align 8
%b=load i8,i8*@u,align 1
%c=and i8%b,2
%d=icmp eq i8%c,0
br i1%d,label%f,label%e
e:
ret void
f:
store i8 3,i8*@u,align 1
tail call void@_SML_main3a60343781315c1e_Option()#2
tail call void@_SML_main5148a836b3728be9_Int32()#2
tail call void@_SML_mainadbb5309e852b68c_CharVector()#2
tail call void@_SML_main84d772f4dc36a05f_CharVectorSlice()#2
tail call void@_SML_main83aaee9bdacb8a0e_CharArray()#2
tail call void@_SML_main4beb4c3c7634547e_CharArraySlice()#2
tail call void@_SML_mainfe9066b69eea2866_IO()#2
%g=bitcast[3x i8*]*%a to i8*
call void@sml_start(i8*inreg%g)#0
%h=load i8*,i8**@_SMLZN5Int327compareE,align 8
call void@sml_write(i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,[1x i8*]}>,<{[4x i8],i32,[1x i8*]}>*@_SML_gvar4f4a36ea37e56c58_prim_io_text,i64 0,i32 2,i64 0)to i8*),i8**inreg getelementptr inbounds(<{[4x i8],i32,[1x i8*]}>,<{[4x i8],i32,[1x i8*]}>*@_SML_gvar4f4a36ea37e56c58_prim_io_text,i64 0,i32 2,i64 0),i8*inreg%h)#0
call void@sml_end()#0
ret void
}
define internal fastcc i8*@_SMLLN10TextPrimIO20nonblockingOperationE_107(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
l:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%c,align 8
store i8*%b,i8**%d,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%j,label%h
h:
call void@sml_check(i32 inreg%f)
%i=load i8*,i8**%c,align 8
br label%j
j:
%k=phi i8*[%i,%h],[%a,%l]
%m=getelementptr inbounds i8,i8*%k,i64 12
%n=bitcast i8*%m to i32*
%o=load i32,i32*%n,align 4
%p=add i32%o,-1
%q=sub i32 0,%o
%r=and i32%p,%q
%s=add i32%o,7
%t=add i32%s,%r
%u=and i32%t,-8
%v=getelementptr inbounds i8,i8*%k,i64 8
%w=bitcast i8*%v to i32*
%x=load i32,i32*%w,align 4
%y=or i32%u,4
%z=bitcast i8*%k to i8**
%A=load i8*,i8**%z,align 8
%B=getelementptr inbounds i8,i8*%A,i64 8
%C=bitcast i8*%B to i8**
%D=load i8*,i8**%C,align 8
%E=getelementptr inbounds i8,i8*%D,i64 16
%F=bitcast i8*%E to i8*(i8*,i8*)**
%G=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%F,align 8
%H=bitcast i8*%D to i8**
%I=load i8*,i8**%H,align 8
store i8*%I,i8**%e,align 8
%J=call i8*@sml_alloc(i32 inreg 4)#0
%K=bitcast i8*%J to i32*
%L=getelementptr inbounds i8,i8*%J,i64 -4
%M=bitcast i8*%L to i32*
store i32 4,i32*%M,align 4
store i32 0,i32*%K,align 4
%N=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%O=call fastcc i8*%G(i8*inreg%N,i8*inreg%J)
%P=bitcast i8*%O to i32*
%Q=load i32,i32*%P,align 4
%R=icmp eq i32%Q,0
br i1%R,label%aA,label%S
S:
%T=bitcast i8**%c to i8****
%U=load i8***,i8****%T,align 8
%V=load i8**,i8***%U,align 8
%W=load i8*,i8**%V,align 8
%X=getelementptr inbounds i8,i8*%W,i64 16
%Y=bitcast i8*%X to i8*(i8*,i8*)**
%Z=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%Y,align 8
%aa=bitcast i8*%W to i8**
%ab=load i8*,i8**%aa,align 8
%ac=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%ad=call fastcc i8*%Z(i8*inreg%ab,i8*inreg%ac)
store i8*%ad,i8**%d,align 8
%ae=load i8*,i8**%c,align 8
%af=getelementptr inbounds i8,i8*%ae,i64 12
%ag=bitcast i8*%af to i32*
%ah=load i32,i32*%ag,align 4
store i8*null,i8**%c,align 8
%ai=getelementptr inbounds i8,i8*%ae,i64 8
%aj=bitcast i8*%ai to i32*
%ak=load i32,i32*%aj,align 4
%al=call i8*@sml_alloc(i32 inreg%y)#0
%am=or i32%u,1342177280
%an=getelementptr inbounds i8,i8*%al,i64 -4
%ao=bitcast i8*%an to i32*
store i32%am,i32*%ao,align 4
call void@llvm.memset.p0i8.i32(i8*%al,i8 0,i32%y,i1 false)
%ap=icmp eq i32%ak,0
%aq=load i8*,i8**%d,align 8
%ar=sext i32%r to i64
%as=getelementptr inbounds i8,i8*%al,i64%ar
br i1%ap,label%av,label%at
at:
%au=bitcast i8*%as to i8**
store i8*%aq,i8**%au,align 8
br label%aw
av:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%as,i8*%aq,i32%ah,i1 false)
br label%aw
aw:
%ax=sext i32%u to i64
%ay=getelementptr inbounds i8,i8*%al,i64%ax
%az=bitcast i8*%ay to i32*
store i32%x,i32*%az,align 4
ret i8*%al
aA:
ret i8*null
}
define internal fastcc i8*@_SMLLN10TextPrimIO20nonblockingOperationE_108(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%b,i8**%c,align 8
%e=bitcast i8*%a to i32*
%f=load i32,i32*%e,align 4
%g=getelementptr inbounds i8,i8*%a,i64 4
%h=bitcast i8*%g to i32*
%i=load i32,i32*%h,align 4
%j=call i8*@sml_alloc(i32 inreg 20)#0
%k=getelementptr inbounds i8,i8*%j,i64 -4
%l=bitcast i8*%k to i32*
store i32 1342177296,i32*%l,align 4
store i8*%j,i8**%d,align 8
%m=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%n=bitcast i8*%j to i8**
store i8*%m,i8**%n,align 8
%o=getelementptr inbounds i8,i8*%j,i64 8
%p=bitcast i8*%o to i32*
store i32%f,i32*%p,align 4
%q=getelementptr inbounds i8,i8*%j,i64 12
%r=bitcast i8*%q to i32*
store i32%i,i32*%r,align 4
%s=getelementptr inbounds i8,i8*%j,i64 16
%t=bitcast i8*%s to i32*
store i32 1,i32*%t,align 4
%u=call i8*@sml_alloc(i32 inreg 28)#0
%v=getelementptr inbounds i8,i8*%u,i64 -4
%w=bitcast i8*%v to i32*
store i32 1342177304,i32*%w,align 4
%x=load i8*,i8**%d,align 8
%y=bitcast i8*%u to i8**
store i8*%x,i8**%y,align 8
%z=getelementptr inbounds i8,i8*%u,i64 8
%A=bitcast i8*%z to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN10TextPrimIO20nonblockingOperationE_107 to void(...)*),void(...)**%A,align 8
%B=getelementptr inbounds i8,i8*%u,i64 16
%C=bitcast i8*%B to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN10TextPrimIO20nonblockingOperationE_107 to void(...)*),void(...)**%C,align 8
%D=getelementptr inbounds i8,i8*%u,i64 24
%E=bitcast i8*%D to i32*
store i32 1,i32*%E,align 4
ret i8*%u
}
define internal fastcc i8*@_SMLLN10TextPrimIO20nonblockingOperationE_109(i32 inreg%a,i32 inreg%b)unnamed_addr#4 gc"smlsharp"{
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
%d=call i8*@sml_alloc(i32 inreg 12)#0
%e=bitcast i8*%d to i32*
%f=getelementptr inbounds i8,i8*%d,i64 -4
%g=bitcast i8*%f to i32*
store i32 1342177288,i32*%g,align 4
store i8*%d,i8**%c,align 8
store i32%a,i32*%e,align 4
%h=getelementptr inbounds i8,i8*%d,i64 4
%i=bitcast i8*%h to i32*
store i32%b,i32*%i,align 4
%j=getelementptr inbounds i8,i8*%d,i64 8
%k=bitcast i8*%j to i32*
store i32 0,i32*%k,align 4
%l=call i8*@sml_alloc(i32 inreg 28)#0
%m=getelementptr inbounds i8,i8*%l,i64 -4
%n=bitcast i8*%m to i32*
store i32 1342177304,i32*%n,align 4
%o=load i8*,i8**%c,align 8
%p=bitcast i8*%l to i8**
store i8*%o,i8**%p,align 8
%q=getelementptr inbounds i8,i8*%l,i64 8
%r=bitcast i8*%q to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN10TextPrimIO20nonblockingOperationE_108 to void(...)*),void(...)**%r,align 8
%s=getelementptr inbounds i8,i8*%l,i64 16
%t=bitcast i8*%s to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN10TextPrimIO20nonblockingOperationE_108 to void(...)*),void(...)**%t,align 8
%u=getelementptr inbounds i8,i8*%l,i64 24
%v=bitcast i8*%u to i32*
store i32 -2147483647,i32*%v,align 4
ret i8*%l
}
define internal fastcc i8*@_SMLL12readaToReadv_111(i8*inreg%a,i32 inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%d,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%h,label%g
g:
call void@sml_check(i32 inreg%e)
br label%h
h:
%i=call i8*@sml_alloc(i32 inreg 12)#0
%j=bitcast i8*%i to i32*
%k=getelementptr inbounds i8,i8*%i,i64 -4
%l=bitcast i8*%k to i32*
store i32 1342177288,i32*%l,align 4
%m=getelementptr inbounds i8,i8*%i,i64 5
call void@llvm.memset.p0i8.i32(i8*%m,i8 0,i32 3,i1 false)
store i32%b,i32*%j,align 4
%n=getelementptr inbounds i8,i8*%i,i64 4
store i8 0,i8*%n,align 1
%o=getelementptr inbounds i8,i8*%i,i64 8
%p=bitcast i8*%o to i32*
store i32 0,i32*%p,align 4
%q=call fastcc i8*@_SMLFN9CharArray5arrayE(i8*inreg%i)
store i8*%q,i8**%c,align 8
%r=bitcast i8**%d to i8***
%s=load i8**,i8***%r,align 8
%t=load i8*,i8**%s,align 8
%u=getelementptr inbounds i8,i8*%t,i64 16
%v=bitcast i8*%u to i8*(i8*,i8*)**
%w=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%v,align 8
%x=bitcast i8*%t to i8**
%y=load i8*,i8**%x,align 8
store i8*%y,i8**%d,align 8
%z=call fastcc i8*@_SMLFN14CharArraySlice4fullE(i8*inreg%q)
%A=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%B=call fastcc i8*%w(i8*inreg%A,i8*inreg%z)
%C=bitcast i8*%B to i32*
%D=load i32,i32*%C,align 4
%E=call i8*@sml_alloc(i32 inreg 12)#0
%F=getelementptr inbounds i8,i8*%E,i64 -4
%G=bitcast i8*%F to i32*
store i32 1342177288,i32*%G,align 4
store i8*%E,i8**%d,align 8
%H=getelementptr inbounds i8,i8*%E,i64 4
%I=bitcast i8*%H to i32*
store i32 0,i32*%I,align 1
%J=bitcast i8*%E to i32*
store i32%D,i32*%J,align 4
%K=getelementptr inbounds i8,i8*%E,i64 8
%L=bitcast i8*%K to i32*
store i32 0,i32*%L,align 4
%M=call i8*@sml_alloc(i32 inreg 28)#0
%N=getelementptr inbounds i8,i8*%M,i64 -4
%O=bitcast i8*%N to i32*
store i32 1342177304,i32*%O,align 4
%P=getelementptr inbounds i8,i8*%M,i64 12
%Q=bitcast i8*%P to i32*
store i32 0,i32*%Q,align 1
%R=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%S=bitcast i8*%M to i8**
store i8*%R,i8**%S,align 8
%T=getelementptr inbounds i8,i8*%M,i64 8
%U=bitcast i8*%T to i32*
store i32 0,i32*%U,align 4
%V=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%W=getelementptr inbounds i8,i8*%M,i64 16
%X=bitcast i8*%W to i8**
store i8*%V,i8**%X,align 8
%Y=getelementptr inbounds i8,i8*%M,i64 24
%Z=bitcast i8*%Y to i32*
store i32 5,i32*%Z,align 4
%aa=call fastcc i8*@_SMLFN14CharArraySlice5sliceE(i8*inreg%M)
%ab=tail call fastcc i8*@_SMLFN14CharArraySlice6vectorE(i8*inreg%aa)
ret i8*%ab
}
define internal fastcc i8*@_SMLL12readaToReadv_112(i8*inreg%a)unnamed_addr#4 gc"smlsharp"{
%b=alloca i8*,align 8
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%b,align 8
%d=call i8*@sml_alloc(i32 inreg 12)#0
%e=getelementptr inbounds i8,i8*%d,i64 -4
%f=bitcast i8*%e to i32*
store i32 1342177288,i32*%f,align 4
store i8*%d,i8**%c,align 8
%g=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%h=bitcast i8*%d to i8**
store i8*%g,i8**%h,align 8
%i=getelementptr inbounds i8,i8*%d,i64 8
%j=bitcast i8*%i to i32*
store i32 1,i32*%j,align 4
%k=call i8*@sml_alloc(i32 inreg 28)#0
%l=getelementptr inbounds i8,i8*%k,i64 -4
%m=bitcast i8*%l to i32*
store i32 1342177304,i32*%m,align 4
%n=load i8*,i8**%c,align 8
%o=bitcast i8*%k to i8**
store i8*%n,i8**%o,align 8
%p=getelementptr inbounds i8,i8*%k,i64 8
%q=bitcast i8*%p to void(...)**
store void(...)*bitcast(i8*(i8*,i32)*@_SMLL12readaToReadv_111 to void(...)*),void(...)**%q,align 8
%r=getelementptr inbounds i8,i8*%k,i64 16
%s=bitcast i8*%r to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL12readaToReadv_211 to void(...)*),void(...)**%s,align 8
%t=getelementptr inbounds i8,i8*%k,i64 24
%u=bitcast i8*%t to i32*
store i32 -2147483647,i32*%u,align 4
ret i8*%k
}
define internal fastcc i8*@_SMLL14readaToReadvNB_114(i8*inreg%a,i32 inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%d,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%h,label%g
g:
call void@sml_check(i32 inreg%e)
br label%h
h:
%i=call i8*@sml_alloc(i32 inreg 12)#0
%j=bitcast i8*%i to i32*
%k=getelementptr inbounds i8,i8*%i,i64 -4
%l=bitcast i8*%k to i32*
store i32 1342177288,i32*%l,align 4
%m=getelementptr inbounds i8,i8*%i,i64 5
call void@llvm.memset.p0i8.i32(i8*%m,i8 0,i32 3,i1 false)
store i32%b,i32*%j,align 4
%n=getelementptr inbounds i8,i8*%i,i64 4
store i8 0,i8*%n,align 1
%o=getelementptr inbounds i8,i8*%i,i64 8
%p=bitcast i8*%o to i32*
store i32 0,i32*%p,align 4
%q=call fastcc i8*@_SMLFN9CharArray5arrayE(i8*inreg%i)
store i8*%q,i8**%c,align 8
%r=bitcast i8**%d to i8***
%s=load i8**,i8***%r,align 8
%t=load i8*,i8**%s,align 8
%u=getelementptr inbounds i8,i8*%t,i64 16
%v=bitcast i8*%u to i8*(i8*,i8*)**
%w=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%v,align 8
%x=bitcast i8*%t to i8**
%y=load i8*,i8**%x,align 8
store i8*%y,i8**%d,align 8
%z=call fastcc i8*@_SMLFN14CharArraySlice4fullE(i8*inreg%q)
%A=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%B=call fastcc i8*%w(i8*inreg%A,i8*inreg%z)
%C=icmp eq i8*%B,null
br i1%C,label%D,label%E
D:
ret i8*null
E:
%F=bitcast i8*%B to i32*
%G=load i32,i32*%F,align 4
%H=call i8*@sml_alloc(i32 inreg 12)#0
%I=getelementptr inbounds i8,i8*%H,i64 -4
%J=bitcast i8*%I to i32*
store i32 1342177288,i32*%J,align 4
store i8*%H,i8**%d,align 8
%K=getelementptr inbounds i8,i8*%H,i64 4
%L=bitcast i8*%K to i32*
store i32 0,i32*%L,align 1
%M=bitcast i8*%H to i32*
store i32%G,i32*%M,align 4
%N=getelementptr inbounds i8,i8*%H,i64 8
%O=bitcast i8*%N to i32*
store i32 0,i32*%O,align 4
%P=call i8*@sml_alloc(i32 inreg 28)#0
%Q=getelementptr inbounds i8,i8*%P,i64 -4
%R=bitcast i8*%Q to i32*
store i32 1342177304,i32*%R,align 4
%S=getelementptr inbounds i8,i8*%P,i64 12
%T=bitcast i8*%S to i32*
store i32 0,i32*%T,align 1
%U=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%V=bitcast i8*%P to i8**
store i8*%U,i8**%V,align 8
%W=getelementptr inbounds i8,i8*%P,i64 8
%X=bitcast i8*%W to i32*
store i32 0,i32*%X,align 4
%Y=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%Z=getelementptr inbounds i8,i8*%P,i64 16
%aa=bitcast i8*%Z to i8**
store i8*%Y,i8**%aa,align 8
%ab=getelementptr inbounds i8,i8*%P,i64 24
%ac=bitcast i8*%ab to i32*
store i32 5,i32*%ac,align 4
%ad=call fastcc i8*@_SMLFN14CharArraySlice5sliceE(i8*inreg%P)
%ae=call fastcc i8*@_SMLFN14CharArraySlice6vectorE(i8*inreg%ad)
store i8*%ae,i8**%c,align 8
%af=call i8*@sml_alloc(i32 inreg 12)#0
%ag=getelementptr inbounds i8,i8*%af,i64 -4
%ah=bitcast i8*%ag to i32*
store i32 1342177288,i32*%ah,align 4
%ai=load i8*,i8**%c,align 8
%aj=bitcast i8*%af to i8**
store i8*%ai,i8**%aj,align 8
%ak=getelementptr inbounds i8,i8*%af,i64 8
%al=bitcast i8*%ak to i32*
store i32 1,i32*%al,align 4
ret i8*%af
}
define internal fastcc i8*@_SMLL14readaToReadvNB_115(i8*inreg%a)unnamed_addr#4 gc"smlsharp"{
%b=alloca i8*,align 8
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%b,align 8
%d=call i8*@sml_alloc(i32 inreg 12)#0
%e=getelementptr inbounds i8,i8*%d,i64 -4
%f=bitcast i8*%e to i32*
store i32 1342177288,i32*%f,align 4
store i8*%d,i8**%c,align 8
%g=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%h=bitcast i8*%d to i8**
store i8*%g,i8**%h,align 8
%i=getelementptr inbounds i8,i8*%d,i64 8
%j=bitcast i8*%i to i32*
store i32 1,i32*%j,align 4
%k=call i8*@sml_alloc(i32 inreg 28)#0
%l=getelementptr inbounds i8,i8*%k,i64 -4
%m=bitcast i8*%l to i32*
store i32 1342177304,i32*%m,align 4
%n=load i8*,i8**%c,align 8
%o=bitcast i8*%k to i8**
store i8*%n,i8**%o,align 8
%p=getelementptr inbounds i8,i8*%k,i64 8
%q=bitcast i8*%p to void(...)**
store void(...)*bitcast(i8*(i8*,i32)*@_SMLL14readaToReadvNB_114 to void(...)*),void(...)**%q,align 8
%r=getelementptr inbounds i8,i8*%k,i64 16
%s=bitcast i8*%r to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL14readaToReadvNB_213 to void(...)*),void(...)**%s,align 8
%t=getelementptr inbounds i8,i8*%k,i64 24
%u=bitcast i8*%t to i32*
store i32 -2147483647,i32*%u,align 4
ret i8*%k
}
define internal fastcc i32@_SMLL12readvToReada_117(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
k:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%d,align 8
store i8*%b,i8**%c,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%i,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%c,align 8
br label%i
i:
%j=phi i8*[%h,%g],[%b,%k]
store i8*null,i8**%c,align 8
%l=call fastcc i8*@_SMLFN14CharArraySlice4baseE(i8*inreg%j)
%m=bitcast i8*%l to i8**
%n=load i8*,i8**%m,align 8
store i8*%n,i8**%c,align 8
%o=getelementptr inbounds i8,i8*%l,i64 8
%p=bitcast i8*%o to i32*
%q=load i32,i32*%p,align 4
%r=bitcast i8**%d to i8***
%s=load i8**,i8***%r,align 8
%t=load i8*,i8**%s,align 8
%u=getelementptr inbounds i8,i8*%t,i64 16
%v=bitcast i8*%u to i8*(i8*,i8*)**
%w=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%v,align 8
%x=bitcast i8*%t to i8**
%y=load i8*,i8**%x,align 8
store i8*%y,i8**%d,align 8
%z=getelementptr inbounds i8,i8*%l,i64 12
%A=bitcast i8*%z to i32*
%B=load i32,i32*%A,align 4
%C=call i8*@sml_alloc(i32 inreg 4)#0
%D=bitcast i8*%C to i32*
%E=getelementptr inbounds i8,i8*%C,i64 -4
%F=bitcast i8*%E to i32*
store i32 4,i32*%F,align 4
store i32%B,i32*%D,align 4
%G=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%H=call fastcc i8*%w(i8*inreg%G,i8*inreg%C)
store i8*%H,i8**%d,align 8
%I=getelementptr inbounds i8,i8*%H,i64 -4
%J=bitcast i8*%I to i32*
%K=load i32,i32*%J,align 4
%L=and i32%K,268435455
%M=add nsw i32%L,-1
%N=call i8*@sml_alloc(i32 inreg 28)#0
%O=bitcast i8*%N to i32*
%P=getelementptr inbounds i8,i8*%N,i64 -4
%Q=bitcast i8*%P to i32*
store i32 1342177304,i32*%Q,align 4
%R=getelementptr inbounds i8,i8*%N,i64 4
%S=bitcast i8*%R to i32*
store i32 0,i32*%S,align 1
store i32%q,i32*%O,align 4
%T=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%U=getelementptr inbounds i8,i8*%N,i64 8
%V=bitcast i8*%U to i8**
store i8*%T,i8**%V,align 8
%W=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%X=getelementptr inbounds i8,i8*%N,i64 16
%Y=bitcast i8*%X to i8**
store i8*%W,i8**%Y,align 8
%Z=getelementptr inbounds i8,i8*%N,i64 24
%aa=bitcast i8*%Z to i32*
store i32 6,i32*%aa,align 4
call fastcc void@_SMLFN9CharArray7copyVecE(i8*inreg%N)
ret i32%M
}
define internal fastcc i8*@_SMLL12readvToReada_118(i8*inreg%a)unnamed_addr#4 gc"smlsharp"{
%b=alloca i8*,align 8
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%b,align 8
%d=call i8*@sml_alloc(i32 inreg 12)#0
%e=getelementptr inbounds i8,i8*%d,i64 -4
%f=bitcast i8*%e to i32*
store i32 1342177288,i32*%f,align 4
store i8*%d,i8**%c,align 8
%g=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%h=bitcast i8*%d to i8**
store i8*%g,i8**%h,align 8
%i=getelementptr inbounds i8,i8*%d,i64 8
%j=bitcast i8*%i to i32*
store i32 1,i32*%j,align 4
%k=call i8*@sml_alloc(i32 inreg 28)#0
%l=getelementptr inbounds i8,i8*%k,i64 -4
%m=bitcast i8*%l to i32*
store i32 1342177304,i32*%m,align 4
%n=load i8*,i8**%c,align 8
%o=bitcast i8*%k to i8**
store i8*%n,i8**%o,align 8
%p=getelementptr inbounds i8,i8*%k,i64 8
%q=bitcast i8*%p to void(...)**
store void(...)*bitcast(i32(i8*,i8*)*@_SMLL12readvToReada_117 to void(...)*),void(...)**%q,align 8
%r=getelementptr inbounds i8,i8*%k,i64 16
%s=bitcast i8*%r to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL12readvToReada_215 to void(...)*),void(...)**%s,align 8
%t=getelementptr inbounds i8,i8*%k,i64 24
%u=bitcast i8*%t to i32*
store i32 -2147483647,i32*%u,align 4
ret i8*%k
}
define internal fastcc i8*@_SMLL14readvToReadaNB_120(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
k:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%d,align 8
store i8*%b,i8**%c,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%i,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%c,align 8
br label%i
i:
%j=phi i8*[%h,%g],[%b,%k]
store i8*null,i8**%c,align 8
%l=call fastcc i8*@_SMLFN14CharArraySlice4baseE(i8*inreg%j)
%m=bitcast i8*%l to i8**
%n=load i8*,i8**%m,align 8
store i8*%n,i8**%c,align 8
%o=getelementptr inbounds i8,i8*%l,i64 8
%p=bitcast i8*%o to i32*
%q=load i32,i32*%p,align 4
%r=bitcast i8**%d to i8***
%s=load i8**,i8***%r,align 8
%t=load i8*,i8**%s,align 8
%u=getelementptr inbounds i8,i8*%t,i64 16
%v=bitcast i8*%u to i8*(i8*,i8*)**
%w=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%v,align 8
%x=bitcast i8*%t to i8**
%y=load i8*,i8**%x,align 8
store i8*%y,i8**%d,align 8
%z=getelementptr inbounds i8,i8*%l,i64 12
%A=bitcast i8*%z to i32*
%B=load i32,i32*%A,align 4
%C=call i8*@sml_alloc(i32 inreg 4)#0
%D=bitcast i8*%C to i32*
%E=getelementptr inbounds i8,i8*%C,i64 -4
%F=bitcast i8*%E to i32*
store i32 4,i32*%F,align 4
store i32%B,i32*%D,align 4
%G=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%H=call fastcc i8*%w(i8*inreg%G,i8*inreg%C)
%I=icmp eq i8*%H,null
br i1%I,label%J,label%K
J:
ret i8*null
K:
%L=bitcast i8*%H to i8**
%M=load i8*,i8**%L,align 8
store i8*%M,i8**%d,align 8
%N=getelementptr inbounds i8,i8*%M,i64 -4
%O=bitcast i8*%N to i32*
%P=load i32,i32*%O,align 4
%Q=and i32%P,268435455
%R=add nsw i32%Q,-1
%S=call i8*@sml_alloc(i32 inreg 28)#0
%T=bitcast i8*%S to i32*
%U=getelementptr inbounds i8,i8*%S,i64 -4
%V=bitcast i8*%U to i32*
store i32 1342177304,i32*%V,align 4
%W=getelementptr inbounds i8,i8*%S,i64 4
%X=bitcast i8*%W to i32*
store i32 0,i32*%X,align 1
store i32%q,i32*%T,align 4
%Y=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%Z=getelementptr inbounds i8,i8*%S,i64 8
%aa=bitcast i8*%Z to i8**
store i8*%Y,i8**%aa,align 8
%ab=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%ac=getelementptr inbounds i8,i8*%S,i64 16
%ad=bitcast i8*%ac to i8**
store i8*%ab,i8**%ad,align 8
%ae=getelementptr inbounds i8,i8*%S,i64 24
%af=bitcast i8*%ae to i32*
store i32 6,i32*%af,align 4
call fastcc void@_SMLFN9CharArray7copyVecE(i8*inreg%S)
%ag=call i8*@sml_alloc(i32 inreg 12)#0
%ah=bitcast i8*%ag to i32*
%ai=getelementptr inbounds i8,i8*%ag,i64 -4
%aj=bitcast i8*%ai to i32*
store i32 1342177288,i32*%aj,align 4
%ak=getelementptr inbounds i8,i8*%ag,i64 4
%al=bitcast i8*%ak to i32*
store i32 0,i32*%al,align 1
store i32%R,i32*%ah,align 4
%am=getelementptr inbounds i8,i8*%ag,i64 8
%an=bitcast i8*%am to i32*
store i32 0,i32*%an,align 4
ret i8*%ag
}
define internal fastcc i8*@_SMLL14readvToReadaNB_121(i8*inreg%a)unnamed_addr#4 gc"smlsharp"{
%b=alloca i8*,align 8
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%b,align 8
%d=call i8*@sml_alloc(i32 inreg 12)#0
%e=getelementptr inbounds i8,i8*%d,i64 -4
%f=bitcast i8*%e to i32*
store i32 1342177288,i32*%f,align 4
store i8*%d,i8**%c,align 8
%g=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%h=bitcast i8*%d to i8**
store i8*%g,i8**%h,align 8
%i=getelementptr inbounds i8,i8*%d,i64 8
%j=bitcast i8*%i to i32*
store i32 1,i32*%j,align 4
%k=call i8*@sml_alloc(i32 inreg 28)#0
%l=getelementptr inbounds i8,i8*%k,i64 -4
%m=bitcast i8*%l to i32*
store i32 1342177304,i32*%m,align 4
%n=load i8*,i8**%c,align 8
%o=bitcast i8*%k to i8**
store i8*%n,i8**%o,align 8
%p=getelementptr inbounds i8,i8*%k,i64 8
%q=bitcast i8*%p to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL14readvToReadaNB_120 to void(...)*),void(...)**%q,align 8
%r=getelementptr inbounds i8,i8*%k,i64 16
%s=bitcast i8*%r to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL14readvToReadaNB_120 to void(...)*),void(...)**%s,align 8
%t=getelementptr inbounds i8,i8*%k,i64 24
%u=bitcast i8*%t to i32*
store i32 -2147483647,i32*%u,align 4
ret i8*%k
}
define internal fastcc i8*@_SMLL8readVec_G_123(i8*inreg%a,i32 inreg%b)#2 gc"smlsharp"{
k:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%c,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%i,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%c,align 8
br label%i
i:
%j=phi i8*[%h,%g],[%a,%k]
%l=getelementptr inbounds i8,i8*%j,i64 8
%m=bitcast i8*%l to i8**
%n=load i8*,i8**%m,align 8
%o=getelementptr inbounds i8,i8*%n,i64 16
%p=bitcast i8*%o to i8*(i8*,i8*)**
%q=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%p,align 8
%r=bitcast i8*%n to i8**
%s=load i8*,i8**%r,align 8
store i8*%s,i8**%d,align 8
%t=call i8*@sml_alloc(i32 inreg 4)#0
%u=bitcast i8*%t to i32*
%v=getelementptr inbounds i8,i8*%t,i64 -4
%w=bitcast i8*%v to i32*
store i32 4,i32*%w,align 4
store i32 0,i32*%u,align 4
%x=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%y=call fastcc i8*%q(i8*inreg%x,i8*inreg%t)
%z=call fastcc i8*@_SMLFN6Option5valOfE(i32 inreg 1,i32 inreg 8)
%A=getelementptr inbounds i8,i8*%z,i64 16
%B=bitcast i8*%A to i8*(i8*,i8*)**
%C=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%B,align 8
%D=bitcast i8*%z to i8**
%E=load i8*,i8**%D,align 8
store i8*%E,i8**%d,align 8
%F=bitcast i8**%c to i8***
%G=load i8**,i8***%F,align 8
%H=load i8*,i8**%G,align 8
%I=getelementptr inbounds i8,i8*%H,i64 16
%J=bitcast i8*%I to i8*(i8*,i8*)**
%K=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%J,align 8
%L=bitcast i8*%H to i8**
%M=load i8*,i8**%L,align 8
store i8*%M,i8**%c,align 8
%N=call i8*@sml_alloc(i32 inreg 4)#0
%O=bitcast i8*%N to i32*
%P=getelementptr inbounds i8,i8*%N,i64 -4
%Q=bitcast i8*%P to i32*
store i32 4,i32*%Q,align 4
store i32%b,i32*%O,align 4
%R=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%S=call fastcc i8*%K(i8*inreg%R,i8*inreg%N)
%T=load i8*,i8**%d,align 8
%U=tail call fastcc i8*%C(i8*inreg%T,i8*inreg%S)
ret i8*%U
}
define internal fastcc i8*@_SMLL8readVec_G_124(i8*inreg%a,i32 inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%c,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%g,label%i
g:
%h=bitcast i8*%a to i8**
br label%l
i:
call void@sml_check(i32 inreg%e)
%j=bitcast i8**%c to i8***
%k=load i8**,i8***%j,align 8
br label%l
l:
%m=phi i8**[%k,%i],[%h,%g]
%n=load i8*,i8**%m,align 8
%o=getelementptr inbounds i8,i8*%n,i64 8
%p=bitcast i8*%o to i8**
%q=load i8*,i8**%p,align 8
%r=getelementptr inbounds i8,i8*%q,i64 16
%s=bitcast i8*%r to i8*(i8*,i8*)**
%t=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%s,align 8
%u=bitcast i8*%q to i8**
%v=load i8*,i8**%u,align 8
store i8*%v,i8**%d,align 8
%w=call i8*@sml_alloc(i32 inreg 4)#0
%x=bitcast i8*%w to i32*
%y=getelementptr inbounds i8,i8*%w,i64 -4
%z=bitcast i8*%y to i32*
store i32 4,i32*%z,align 4
store i32 0,i32*%x,align 4
%A=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%B=call fastcc i8*%t(i8*inreg%A,i8*inreg%w)
%C=call fastcc i8*@_SMLFN6Option5valOfE(i32 inreg 1,i32 inreg 8)
%D=getelementptr inbounds i8,i8*%C,i64 16
%E=bitcast i8*%D to i8*(i8*,i8*)**
%F=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%E,align 8
%G=bitcast i8*%C to i8**
%H=load i8*,i8**%G,align 8
store i8*%H,i8**%d,align 8
%I=bitcast i8**%c to i8****
%J=load i8***,i8****%I,align 8
%K=load i8**,i8***%J,align 8
%L=load i8*,i8**%K,align 8
%M=getelementptr inbounds i8,i8*%L,i64 16
%N=bitcast i8*%M to i8*(i8*,i8*)**
%O=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%N,align 8
%P=bitcast i8*%L to i8**
%Q=load i8*,i8**%P,align 8
store i8*%Q,i8**%c,align 8
%R=call i8*@sml_alloc(i32 inreg 4)#0
%S=bitcast i8*%R to i32*
%T=getelementptr inbounds i8,i8*%R,i64 -4
%U=bitcast i8*%T to i32*
store i32 4,i32*%U,align 4
store i32%b,i32*%S,align 4
%V=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%W=call fastcc i8*%O(i8*inreg%V,i8*inreg%R)
%X=load i8*,i8**%d,align 8
%Y=tail call fastcc i8*%F(i8*inreg%X,i8*inreg%W)
ret i8*%Y
}
define internal fastcc i32@_SMLL8readArr_G_125(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
l:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%d,align 8
store i8*%b,i8**%c,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%j,label%h
h:
call void@sml_check(i32 inreg%f)
%i=load i8*,i8**%d,align 8
br label%j
j:
%k=phi i8*[%i,%h],[%a,%l]
%m=getelementptr inbounds i8,i8*%k,i64 8
%n=bitcast i8*%m to i8**
%o=load i8*,i8**%n,align 8
%p=getelementptr inbounds i8,i8*%o,i64 16
%q=bitcast i8*%p to i8*(i8*,i8*)**
%r=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%q,align 8
%s=bitcast i8*%o to i8**
%t=load i8*,i8**%s,align 8
store i8*%t,i8**%e,align 8
%u=call i8*@sml_alloc(i32 inreg 4)#0
%v=bitcast i8*%u to i32*
%w=getelementptr inbounds i8,i8*%u,i64 -4
%x=bitcast i8*%w to i32*
store i32 4,i32*%x,align 4
store i32 0,i32*%v,align 4
%y=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%z=call fastcc i8*%r(i8*inreg%y,i8*inreg%u)
%A=call fastcc i8*@_SMLFN6Option5valOfE(i32 inreg 0,i32 inreg 4)
%B=getelementptr inbounds i8,i8*%A,i64 16
%C=bitcast i8*%B to i8*(i8*,i8*)**
%D=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%C,align 8
%E=bitcast i8*%A to i8**
%F=load i8*,i8**%E,align 8
store i8*%F,i8**%e,align 8
%G=bitcast i8**%d to i8***
%H=load i8**,i8***%G,align 8
%I=load i8*,i8**%H,align 8
%J=getelementptr inbounds i8,i8*%I,i64 16
%K=bitcast i8*%J to i8*(i8*,i8*)**
%L=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%K,align 8
store i8*null,i8**%d,align 8
%M=bitcast i8**%H to i8***
%N=load i8**,i8***%M,align 8
%O=load i8*,i8**%N,align 8
%P=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%Q=call fastcc i8*%L(i8*inreg%O,i8*inreg%P)
%R=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%S=call fastcc i8*%D(i8*inreg%R,i8*inreg%Q)
%T=bitcast i8*%S to i32*
%U=load i32,i32*%T,align 4
ret i32%U
}
define internal fastcc i32@_SMLL8readArr_G_126(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%d,align 8
store i8*%b,i8**%c,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%h,label%j
h:
%i=bitcast i8*%a to i8**
br label%m
j:
call void@sml_check(i32 inreg%f)
%k=bitcast i8**%d to i8***
%l=load i8**,i8***%k,align 8
br label%m
m:
%n=phi i8**[%l,%j],[%i,%h]
%o=load i8*,i8**%n,align 8
%p=getelementptr inbounds i8,i8*%o,i64 8
%q=bitcast i8*%p to i8**
%r=load i8*,i8**%q,align 8
%s=getelementptr inbounds i8,i8*%r,i64 16
%t=bitcast i8*%s to i8*(i8*,i8*)**
%u=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%t,align 8
%v=bitcast i8*%r to i8**
%w=load i8*,i8**%v,align 8
store i8*%w,i8**%e,align 8
%x=call i8*@sml_alloc(i32 inreg 4)#0
%y=bitcast i8*%x to i32*
%z=getelementptr inbounds i8,i8*%x,i64 -4
%A=bitcast i8*%z to i32*
store i32 4,i32*%A,align 4
store i32 0,i32*%y,align 4
%B=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%C=call fastcc i8*%u(i8*inreg%B,i8*inreg%x)
%D=call fastcc i8*@_SMLFN6Option5valOfE(i32 inreg 0,i32 inreg 4)
%E=getelementptr inbounds i8,i8*%D,i64 16
%F=bitcast i8*%E to i8*(i8*,i8*)**
%G=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%F,align 8
%H=bitcast i8*%D to i8**
%I=load i8*,i8**%H,align 8
store i8*%I,i8**%e,align 8
%J=bitcast i8**%d to i8****
%K=load i8***,i8****%J,align 8
store i8*null,i8**%d,align 8
%L=load i8**,i8***%K,align 8
%M=load i8*,i8**%L,align 8
%N=getelementptr inbounds i8,i8*%M,i64 16
%O=bitcast i8*%N to i8*(i8*,i8*)**
%P=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%O,align 8
%Q=bitcast i8*%M to i8**
%R=load i8*,i8**%Q,align 8
%S=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%T=call fastcc i8*%P(i8*inreg%R,i8*inreg%S)
%U=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%V=call fastcc i8*%G(i8*inreg%U,i8*inreg%T)
%W=bitcast i8*%V to i32*
%X=load i32,i32*%W,align 4
ret i32%X
}
define fastcc i8*@_SMLFN10TextPrimIO13augmentReaderE(i8*inreg%a)#2 gc"smlsharp"{
v:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
%h=alloca i8*,align 8
%i=alloca i8*,align 8
%j=alloca i8*,align 8
%k=alloca i8*,align 8
%l=alloca i8*,align 8
%m=alloca i8*,align 8
%n=alloca i8*,align 8
%o=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
call void@llvm.gcroot(i8**%h,i8*null)#0
call void@llvm.gcroot(i8**%i,i8*null)#0
call void@llvm.gcroot(i8**%j,i8*null)#0
call void@llvm.gcroot(i8**%k,i8*null)#0
call void@llvm.gcroot(i8**%l,i8*null)#0
call void@llvm.gcroot(i8**%m,i8*null)#0
call void@llvm.gcroot(i8**%n,i8*null)#0
call void@llvm.gcroot(i8**%o,i8*null)#0
store i8*%a,i8**%b,align 8
%p=load atomic i32,i32*@sml_check_flag unordered,align 4
%q=icmp eq i32%p,0
br i1%q,label%t,label%r
r:
call void@sml_check(i32 inreg%p)
%s=load i8*,i8**%b,align 8
br label%t
t:
%u=phi i8*[%s,%r],[%a,%v]
store i8*%u,i8**%g,align 8
%w=getelementptr inbounds i8,i8*%u,i64 8
%x=bitcast i8*%w to i8**
%y=load i8*,i8**%x,align 8
%z=icmp eq i8*%y,null
br i1%z,label%A,label%X
A:
%B=getelementptr inbounds i8,i8*%u,i64 72
%C=bitcast i8*%B to i8**
%D=load i8*,i8**%C,align 8
%E=icmp eq i8*%D,null
br i1%E,label%F,label%N
F:
%G=getelementptr inbounds i8,i8*%u,i64 88
%H=bitcast i8*%G to i8**
%I=load i8*,i8**%H,align 8
%J=icmp eq i8*%I,null
br i1%J,label%ct,label%K
K:
%L=bitcast i8*%I to i8**
%M=load i8*,i8**%L,align 8
store i8*%M,i8**%b,align 8
br label%cl
N:
%O=bitcast i8*%D to i8**
%P=load i8*,i8**%O,align 8
%Q=getelementptr inbounds i8,i8*%u,i64 88
%R=bitcast i8*%Q to i8**
%S=load i8*,i8**%R,align 8
%T=icmp eq i8*%S,null
br i1%T,label%cb,label%U
U:
%V=bitcast i8*%S to i8**
%W=load i8*,i8**%V,align 8
store i8*%W,i8**%b,align 8
br label%cl
X:
%Y=bitcast i8*%y to i8**
%Z=load i8*,i8**%Y,align 8
store i8*%Z,i8**%c,align 8
%aa=getelementptr inbounds i8,i8*%u,i64 72
%ab=bitcast i8*%aa to i8**
%ac=load i8*,i8**%ab,align 8
%ad=icmp eq i8*%ac,null
br i1%ad,label%ae,label%bm
ae:
%af=getelementptr inbounds i8,i8*%u,i64 80
%ag=bitcast i8*%af to i8**
%ah=load i8*,i8**%ag,align 8
%ai=icmp eq i8*%ah,null
br i1%ai,label%aj,label%aw
aj:
%ak=getelementptr inbounds i8,i8*%u,i64 88
%al=bitcast i8*%ak to i8**
%am=load i8*,i8**%al,align 8
%an=icmp eq i8*%am,null
br i1%an,label%ao,label%at
ao:
%ap=getelementptr inbounds i8,i8*%u,i64 96
%aq=bitcast i8*%ap to i8**
%ar=load i8*,i8**%aq,align 8
%as=icmp eq i8*%ar,null
br i1%as,label%ct,label%bF
at:
%au=bitcast i8*%am to i8**
store i8*null,i8**%c,align 8
%av=load i8*,i8**%au,align 8
store i8*%av,i8**%b,align 8
br label%cl
aw:
%ax=bitcast i8*%ah to i8**
%ay=load i8*,i8**%ax,align 8
%az=getelementptr inbounds i8,i8*%u,i64 88
%aA=bitcast i8*%az to i8**
%aB=load i8*,i8**%aA,align 8
%aC=icmp eq i8*%aB,null
br i1%aC,label%aD,label%bj
aD:
%aE=getelementptr inbounds i8,i8*%u,i64 96
%aF=bitcast i8*%aE to i8**
%aG=load i8*,i8**%aF,align 8
%aH=icmp eq i8*%aG,null
br i1%aH,label%aI,label%bF
aI:
%aJ=call fastcc i8*@_SMLL14readaToReadvNB_115(i8*inreg%ay)
store i8*%aJ,i8**%b,align 8
%aK=call i8*@sml_alloc(i32 inreg 20)#0
%aL=getelementptr inbounds i8,i8*%aK,i64 -4
%aM=bitcast i8*%aL to i32*
store i32 1342177296,i32*%aM,align 4
store i8*%aK,i8**%d,align 8
%aN=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aO=bitcast i8*%aK to i8**
store i8*%aN,i8**%aO,align 8
%aP=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aQ=getelementptr inbounds i8,i8*%aK,i64 8
%aR=bitcast i8*%aQ to i8**
store i8*%aP,i8**%aR,align 8
%aS=getelementptr inbounds i8,i8*%aK,i64 16
%aT=bitcast i8*%aS to i32*
store i32 3,i32*%aT,align 4
%aU=call i8*@sml_alloc(i32 inreg 12)#0
%aV=getelementptr inbounds i8,i8*%aU,i64 -4
%aW=bitcast i8*%aV to i32*
store i32 1342177288,i32*%aW,align 4
store i8*%aU,i8**%b,align 8
%aX=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aY=bitcast i8*%aU to i8**
store i8*%aX,i8**%aY,align 8
%aZ=getelementptr inbounds i8,i8*%aU,i64 8
%a0=bitcast i8*%aZ to i32*
store i32 1,i32*%a0,align 4
%a1=call i8*@sml_alloc(i32 inreg 28)#0
%a2=getelementptr inbounds i8,i8*%a1,i64 -4
%a3=bitcast i8*%a2 to i32*
store i32 1342177304,i32*%a3,align 4
store i8*%a1,i8**%c,align 8
%a4=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%a5=bitcast i8*%a1 to i8**
store i8*%a4,i8**%a5,align 8
%a6=getelementptr inbounds i8,i8*%a1,i64 8
%a7=bitcast i8*%a6 to void(...)**
store void(...)*bitcast(i8*(i8*,i32)*@_SMLL8readVec_G_124 to void(...)*),void(...)**%a7,align 8
%a8=getelementptr inbounds i8,i8*%a1,i64 16
%a9=bitcast i8*%a8 to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL8readVec_G_219 to void(...)*),void(...)**%a9,align 8
%ba=getelementptr inbounds i8,i8*%a1,i64 24
%bb=bitcast i8*%ba to i32*
store i32 -2147483647,i32*%bb,align 4
%bc=call i8*@sml_alloc(i32 inreg 12)#0
%bd=getelementptr inbounds i8,i8*%bc,i64 -4
%be=bitcast i8*%bd to i32*
store i32 1342177288,i32*%be,align 4
%bf=load i8*,i8**%c,align 8
%bg=bitcast i8*%bc to i8**
store i8*%bf,i8**%bg,align 8
%bh=getelementptr inbounds i8,i8*%bc,i64 8
%bi=bitcast i8*%bh to i32*
store i32 1,i32*%bi,align 4
br label%ct
bj:
%bk=bitcast i8*%aB to i8**
store i8*null,i8**%c,align 8
%bl=load i8*,i8**%bk,align 8
store i8*%bl,i8**%b,align 8
br label%cl
bm:
%bn=bitcast i8*%ac to i8**
store i8*null,i8**%c,align 8
%bo=load i8*,i8**%bn,align 8
%bp=getelementptr inbounds i8,i8*%u,i64 80
%bq=bitcast i8*%bp to i8**
%br=load i8*,i8**%bq,align 8
%bs=icmp eq i8*%br,null
%bt=getelementptr inbounds i8,i8*%u,i64 88
%bu=bitcast i8*%bt to i8**
%bv=load i8*,i8**%bu,align 8
%bw=icmp eq i8*%bv,null
br i1%bs,label%bx,label%bB
bx:
br i1%bw,label%cb,label%by
by:
%bz=bitcast i8*%bv to i8**
%bA=load i8*,i8**%bz,align 8
store i8*%bA,i8**%b,align 8
br label%cl
bB:
br i1%bw,label%cb,label%bC
bC:
%bD=bitcast i8*%bv to i8**
%bE=load i8*,i8**%bD,align 8
store i8*%bE,i8**%b,align 8
br label%cl
bF:
%bG=phi i8*[%ar,%ao],[%aG,%aD]
%bH=bitcast i8*%bG to i8**
%bI=load i8*,i8**%bH,align 8
store i8*%bI,i8**%b,align 8
store i8*%Z,i8**%c,align 8
%bJ=call i8*@sml_alloc(i32 inreg 20)#0
%bK=getelementptr inbounds i8,i8*%bJ,i64 -4
%bL=bitcast i8*%bK to i32*
store i32 1342177296,i32*%bL,align 4
store i8*%bJ,i8**%d,align 8
%bM=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%bN=bitcast i8*%bJ to i8**
store i8*%bM,i8**%bN,align 8
%bO=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bP=getelementptr inbounds i8,i8*%bJ,i64 8
%bQ=bitcast i8*%bP to i8**
store i8*%bO,i8**%bQ,align 8
%bR=getelementptr inbounds i8,i8*%bJ,i64 16
%bS=bitcast i8*%bR to i32*
store i32 3,i32*%bS,align 4
%bT=call i8*@sml_alloc(i32 inreg 28)#0
%bU=getelementptr inbounds i8,i8*%bT,i64 -4
%bV=bitcast i8*%bU to i32*
store i32 1342177304,i32*%bV,align 4
store i8*%bT,i8**%b,align 8
%bW=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%bX=bitcast i8*%bT to i8**
store i8*%bW,i8**%bX,align 8
%bY=getelementptr inbounds i8,i8*%bT,i64 8
%bZ=bitcast i8*%bY to void(...)**
store void(...)*bitcast(i8*(i8*,i32)*@_SMLL8readVec_G_123 to void(...)*),void(...)**%bZ,align 8
%b0=getelementptr inbounds i8,i8*%bT,i64 16
%b1=bitcast i8*%b0 to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL8readVec_G_218 to void(...)*),void(...)**%b1,align 8
%b2=getelementptr inbounds i8,i8*%bT,i64 24
%b3=bitcast i8*%b2 to i32*
store i32 -2147483647,i32*%b3,align 4
%b4=call i8*@sml_alloc(i32 inreg 12)#0
%b5=getelementptr inbounds i8,i8*%b4,i64 -4
%b6=bitcast i8*%b5 to i32*
store i32 1342177288,i32*%b6,align 4
%b7=load i8*,i8**%b,align 8
%b8=bitcast i8*%b4 to i8**
store i8*%b7,i8**%b8,align 8
%b9=getelementptr inbounds i8,i8*%b4,i64 8
%ca=bitcast i8*%b9 to i32*
store i32 1,i32*%ca,align 4
br label%ct
cb:
%cc=phi i8*[%P,%N],[%bo,%bx],[%bo,%bB]
%cd=call fastcc i8*@_SMLL12readaToReadv_112(i8*inreg%cc)
store i8*%cd,i8**%b,align 8
%ce=call i8*@sml_alloc(i32 inreg 12)#0
%cf=getelementptr inbounds i8,i8*%ce,i64 -4
%cg=bitcast i8*%cf to i32*
store i32 1342177288,i32*%cg,align 4
%ch=load i8*,i8**%b,align 8
%ci=bitcast i8*%ce to i8**
store i8*%ch,i8**%ci,align 8
%cj=getelementptr inbounds i8,i8*%ce,i64 8
%ck=bitcast i8*%cj to i32*
store i32 1,i32*%ck,align 4
br label%ct
cl:
%cm=call i8*@sml_alloc(i32 inreg 12)#0
%cn=getelementptr inbounds i8,i8*%cm,i64 -4
%co=bitcast i8*%cn to i32*
store i32 1342177288,i32*%co,align 4
%cp=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%cq=bitcast i8*%cm to i8**
store i8*%cp,i8**%cq,align 8
%cr=getelementptr inbounds i8,i8*%cm,i64 8
%cs=bitcast i8*%cr to i32*
store i32 1,i32*%cs,align 4
br label%ct
ct:
%cu=phi i8*[%cm,%cl],[%ce,%cb],[%b4,%bF],[%bc,%aI],[null,%ao],[null,%F]
store i8*%cu,i8**%b,align 8
%cv=load i8*,i8**%g,align 8
%cw=getelementptr inbounds i8,i8*%cv,i64 8
%cx=bitcast i8*%cw to i8**
%cy=load i8*,i8**%cx,align 8
%cz=icmp eq i8*%cy,null
br i1%cz,label%cA,label%cK
cA:
%cB=getelementptr inbounds i8,i8*%cv,i64 72
%cC=bitcast i8*%cB to i8**
%cD=load i8*,i8**%cC,align 8
%cE=icmp eq i8*%cD,null
br i1%cE,label%cF,label%ex
cF:
%cG=getelementptr inbounds i8,i8*%cv,i64 88
%cH=bitcast i8*%cG to i8**
%cI=load i8*,i8**%cH,align 8
%cJ=icmp eq i8*%cI,null
br i1%cJ,label%eI,label%el
cK:
%cL=bitcast i8*%cy to i8**
%cM=load i8*,i8**%cL,align 8
store i8*%cM,i8**%d,align 8
%cN=getelementptr inbounds i8,i8*%cv,i64 72
%cO=bitcast i8*%cN to i8**
%cP=load i8*,i8**%cO,align 8
%cQ=icmp eq i8*%cP,null
br i1%cQ,label%cR,label%dR
cR:
%cS=getelementptr inbounds i8,i8*%cv,i64 80
%cT=bitcast i8*%cS to i8**
%cU=load i8*,i8**%cT,align 8
%cV=icmp eq i8*%cU,null
br i1%cV,label%cW,label%dK
cW:
%cX=getelementptr inbounds i8,i8*%cv,i64 88
%cY=bitcast i8*%cX to i8**
%cZ=load i8*,i8**%cY,align 8
%c0=icmp eq i8*%cZ,null
br i1%c0,label%c1,label%dJ
c1:
%c2=getelementptr inbounds i8,i8*%cv,i64 96
%c3=bitcast i8*%c2 to i8**
%c4=load i8*,i8**%c3,align 8
%c5=icmp eq i8*%c4,null
br i1%c5,label%eI,label%c6
c6:
%c7=bitcast i8*%c4 to i8**
%c8=load i8*,i8**%c7,align 8
%c9=call fastcc i8*@_SMLL14readvToReadaNB_121(i8*inreg%c8)
store i8*%c9,i8**%c,align 8
%da=call i8*@sml_alloc(i32 inreg 20)#0
%db=getelementptr inbounds i8,i8*%da,i64 -4
%dc=bitcast i8*%db to i32*
store i32 1342177296,i32*%dc,align 4
store i8*%da,i8**%e,align 8
%dd=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%de=bitcast i8*%da to i8**
store i8*%dd,i8**%de,align 8
%df=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%dg=getelementptr inbounds i8,i8*%da,i64 8
%dh=bitcast i8*%dg to i8**
store i8*%df,i8**%dh,align 8
%di=getelementptr inbounds i8,i8*%da,i64 16
%dj=bitcast i8*%di to i32*
store i32 3,i32*%dj,align 4
%dk=call i8*@sml_alloc(i32 inreg 12)#0
%dl=getelementptr inbounds i8,i8*%dk,i64 -4
%dm=bitcast i8*%dl to i32*
store i32 1342177288,i32*%dm,align 4
store i8*%dk,i8**%c,align 8
%dn=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%do=bitcast i8*%dk to i8**
store i8*%dn,i8**%do,align 8
%dp=getelementptr inbounds i8,i8*%dk,i64 8
%dq=bitcast i8*%dp to i32*
store i32 1,i32*%dq,align 4
%dr=call i8*@sml_alloc(i32 inreg 28)#0
%ds=getelementptr inbounds i8,i8*%dr,i64 -4
%dt=bitcast i8*%ds to i32*
store i32 1342177304,i32*%dt,align 4
store i8*%dr,i8**%d,align 8
%du=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%dv=bitcast i8*%dr to i8**
store i8*%du,i8**%dv,align 8
%dw=getelementptr inbounds i8,i8*%dr,i64 8
%dx=bitcast i8*%dw to void(...)**
store void(...)*bitcast(i32(i8*,i8*)*@_SMLL8readArr_G_126 to void(...)*),void(...)**%dx,align 8
%dy=getelementptr inbounds i8,i8*%dr,i64 16
%dz=bitcast i8*%dy to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL8readArr_G_221 to void(...)*),void(...)**%dz,align 8
%dA=getelementptr inbounds i8,i8*%dr,i64 24
%dB=bitcast i8*%dA to i32*
store i32 -2147483647,i32*%dB,align 4
%dC=call i8*@sml_alloc(i32 inreg 12)#0
%dD=getelementptr inbounds i8,i8*%dC,i64 -4
%dE=bitcast i8*%dD to i32*
store i32 1342177288,i32*%dE,align 4
%dF=load i8*,i8**%d,align 8
%dG=bitcast i8*%dC to i8**
store i8*%dF,i8**%dG,align 8
%dH=getelementptr inbounds i8,i8*%dC,i64 8
%dI=bitcast i8*%dH to i32*
store i32 1,i32*%dI,align 4
br label%eI
dJ:
store i8*null,i8**%d,align 8
br label%el
dK:
%dL=bitcast i8*%cU to i8**
%dM=load i8*,i8**%dL,align 8
%dN=getelementptr inbounds i8,i8*%cv,i64 88
%dO=bitcast i8*%dN to i8**
%dP=load i8*,i8**%dO,align 8
%dQ=icmp eq i8*%dP,null
store i8*null,i8**%d,align 8
br i1%dQ,label%dS,label%el
dR:
store i8*null,i8**%d,align 8
br label%ex
dS:
store i8*%dM,i8**%c,align 8
store i8*%cM,i8**%d,align 8
%dT=call i8*@sml_alloc(i32 inreg 20)#0
%dU=getelementptr inbounds i8,i8*%dT,i64 -4
%dV=bitcast i8*%dU to i32*
store i32 1342177296,i32*%dV,align 4
store i8*%dT,i8**%e,align 8
%dW=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%dX=bitcast i8*%dT to i8**
store i8*%dW,i8**%dX,align 8
%dY=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%dZ=getelementptr inbounds i8,i8*%dT,i64 8
%d0=bitcast i8*%dZ to i8**
store i8*%dY,i8**%d0,align 8
%d1=getelementptr inbounds i8,i8*%dT,i64 16
%d2=bitcast i8*%d1 to i32*
store i32 3,i32*%d2,align 4
%d3=call i8*@sml_alloc(i32 inreg 28)#0
%d4=getelementptr inbounds i8,i8*%d3,i64 -4
%d5=bitcast i8*%d4 to i32*
store i32 1342177304,i32*%d5,align 4
store i8*%d3,i8**%c,align 8
%d6=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%d7=bitcast i8*%d3 to i8**
store i8*%d6,i8**%d7,align 8
%d8=getelementptr inbounds i8,i8*%d3,i64 8
%d9=bitcast i8*%d8 to void(...)**
store void(...)*bitcast(i32(i8*,i8*)*@_SMLL8readArr_G_125 to void(...)*),void(...)**%d9,align 8
%ea=getelementptr inbounds i8,i8*%d3,i64 16
%eb=bitcast i8*%ea to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL8readArr_G_220 to void(...)*),void(...)**%eb,align 8
%ec=getelementptr inbounds i8,i8*%d3,i64 24
%ed=bitcast i8*%ec to i32*
store i32 -2147483647,i32*%ed,align 4
%ee=call i8*@sml_alloc(i32 inreg 12)#0
%ef=getelementptr inbounds i8,i8*%ee,i64 -4
%eg=bitcast i8*%ef to i32*
store i32 1342177288,i32*%eg,align 4
%eh=load i8*,i8**%c,align 8
%ei=bitcast i8*%ee to i8**
store i8*%eh,i8**%ei,align 8
%ej=getelementptr inbounds i8,i8*%ee,i64 8
%ek=bitcast i8*%ej to i32*
store i32 1,i32*%ek,align 4
br label%eI
el:
%em=phi i8*[%cZ,%dJ],[%cI,%cF],[%dP,%dK]
%en=bitcast i8*%em to i8**
%eo=load i8*,i8**%en,align 8
%ep=call fastcc i8*@_SMLL12readvToReada_118(i8*inreg%eo)
store i8*%ep,i8**%c,align 8
%eq=call i8*@sml_alloc(i32 inreg 12)#0
%er=getelementptr inbounds i8,i8*%eq,i64 -4
%es=bitcast i8*%er to i32*
store i32 1342177288,i32*%es,align 4
%et=load i8*,i8**%c,align 8
%eu=bitcast i8*%eq to i8**
store i8*%et,i8**%eu,align 8
%ev=getelementptr inbounds i8,i8*%eq,i64 8
%ew=bitcast i8*%ev to i32*
store i32 1,i32*%ew,align 4
br label%eI
ex:
%ey=phi i8*[%cP,%dR],[%cD,%cA]
%ez=bitcast i8*%ey to i8**
%eA=load i8*,i8**%ez,align 8
store i8*%eA,i8**%c,align 8
%eB=call i8*@sml_alloc(i32 inreg 12)#0
%eC=getelementptr inbounds i8,i8*%eB,i64 -4
%eD=bitcast i8*%eC to i32*
store i32 1342177288,i32*%eD,align 4
%eE=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%eF=bitcast i8*%eB to i8**
store i8*%eE,i8**%eF,align 8
%eG=getelementptr inbounds i8,i8*%eB,i64 8
%eH=bitcast i8*%eG to i32*
store i32 1,i32*%eH,align 4
br label%eI
eI:
%eJ=phi i8*[%eB,%ex],[%eq,%el],[%ee,%dS],[%dC,%c6],[null,%c1],[null,%cF]
store i8*%eJ,i8**%c,align 8
%eK=load i8*,i8**%g,align 8
%eL=getelementptr inbounds i8,i8*%eK,i64 16
%eM=bitcast i8*%eL to i8**
%eN=load i8*,i8**%eM,align 8
%eO=icmp eq i8*%eN,null
br i1%eO,label%eP,label%fc
eP:
%eQ=getelementptr inbounds i8,i8*%eK,i64 80
%eR=bitcast i8*%eQ to i8**
%eS=load i8*,i8**%eR,align 8
%eT=icmp eq i8*%eS,null
br i1%eT,label%eU,label%e2
eU:
%eV=getelementptr inbounds i8,i8*%eK,i64 96
%eW=bitcast i8*%eV to i8**
%eX=load i8*,i8**%eW,align 8
%eY=icmp eq i8*%eX,null
br i1%eY,label%hQ,label%eZ
eZ:
%e0=bitcast i8*%eX to i8**
%e1=load i8*,i8**%e0,align 8
store i8*%e1,i8**%d,align 8
br label%hI
e2:
%e3=bitcast i8*%eS to i8**
%e4=load i8*,i8**%e3,align 8
%e5=getelementptr inbounds i8,i8*%eK,i64 96
%e6=bitcast i8*%e5 to i8**
%e7=load i8*,i8**%e6,align 8
%e8=icmp eq i8*%e7,null
br i1%e8,label%hy,label%e9
e9:
%fa=bitcast i8*%e7 to i8**
%fb=load i8*,i8**%fa,align 8
store i8*%fb,i8**%d,align 8
br label%hI
fc:
%fd=bitcast i8*%eN to i8**
%fe=load i8*,i8**%fd,align 8
store i8*%fe,i8**%e,align 8
%ff=getelementptr inbounds i8,i8*%eK,i64 72
%fg=bitcast i8*%ff to i8**
%fh=load i8*,i8**%fg,align 8
%fi=icmp eq i8*%fh,null
br i1%fi,label%fj,label%fX
fj:
%fk=getelementptr inbounds i8,i8*%eK,i64 80
%fl=bitcast i8*%fk to i8**
%fm=load i8*,i8**%fl,align 8
%fn=icmp eq i8*%fm,null
br i1%fn,label%fo,label%fE
fo:
%fp=getelementptr inbounds i8,i8*%eK,i64 88
%fq=bitcast i8*%fp to i8**
%fr=load i8*,i8**%fq,align 8
%fs=icmp eq i8*%fr,null
%ft=getelementptr inbounds i8,i8*%eK,i64 96
%fu=bitcast i8*%ft to i8**
%fv=load i8*,i8**%fu,align 8
%fw=icmp eq i8*%fv,null
%fx=bitcast i8*%fv to i8**
br i1%fs,label%fy,label%fB
fy:
br i1%fw,label%hQ,label%fz
fz:
%fA=load i8*,i8**%fx,align 8
store i8*%fA,i8**%d,align 8
br label%hI
fB:
br i1%fw,label%g5,label%fC
fC:
store i8*null,i8**%e,align 8
%fD=load i8*,i8**%fx,align 8
store i8*%fD,i8**%d,align 8
br label%hI
fE:
%fF=bitcast i8*%fm to i8**
store i8*null,i8**%e,align 8
%fG=load i8*,i8**%fF,align 8
%fH=getelementptr inbounds i8,i8*%eK,i64 88
%fI=bitcast i8*%fH to i8**
%fJ=load i8*,i8**%fI,align 8
%fK=icmp eq i8*%fJ,null
%fL=getelementptr inbounds i8,i8*%eK,i64 96
%fM=bitcast i8*%fL to i8**
%fN=load i8*,i8**%fM,align 8
%fO=icmp eq i8*%fN,null
br i1%fK,label%fP,label%fT
fP:
br i1%fO,label%hy,label%fQ
fQ:
%fR=bitcast i8*%fN to i8**
%fS=load i8*,i8**%fR,align 8
store i8*%fS,i8**%d,align 8
br label%hI
fT:
br i1%fO,label%hy,label%fU
fU:
%fV=bitcast i8*%fN to i8**
%fW=load i8*,i8**%fV,align 8
store i8*%fW,i8**%d,align 8
br label%hI
fX:
%fY=bitcast i8*%fh to i8**
%fZ=load i8*,i8**%fY,align 8
store i8*%fZ,i8**%d,align 8
%f0=getelementptr inbounds i8,i8*%eK,i64 80
%f1=bitcast i8*%f0 to i8**
%f2=load i8*,i8**%f1,align 8
%f3=icmp eq i8*%f2,null
br i1%f3,label%f4,label%gM
f4:
%f5=getelementptr inbounds i8,i8*%eK,i64 88
%f6=bitcast i8*%f5 to i8**
%f7=load i8*,i8**%f6,align 8
%f8=icmp eq i8*%f7,null
%f9=getelementptr inbounds i8,i8*%eK,i64 96
%ga=bitcast i8*%f9 to i8**
%gb=load i8*,i8**%ga,align 8
%gc=icmp eq i8*%gb,null
%gd=bitcast i8*%gb to i8**
br i1%f8,label%ge,label%gJ
ge:
br i1%gc,label%gf,label%gH
gf:
%gg=call fastcc i8*@_SMLLN10TextPrimIO20nonblockingOperationE_109(i32 inreg 1,i32 inreg 8)
%gh=getelementptr inbounds i8,i8*%gg,i64 16
%gi=bitcast i8*%gh to i8*(i8*,i8*)**
%gj=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%gi,align 8
%gk=bitcast i8*%gg to i8**
%gl=load i8*,i8**%gk,align 8
store i8*%gl,i8**%f,align 8
%gm=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%gn=call fastcc i8*@_SMLL12readaToReadv_112(i8*inreg%gm)
store i8*%gn,i8**%d,align 8
%go=call i8*@sml_alloc(i32 inreg 20)#0
%gp=getelementptr inbounds i8,i8*%go,i64 -4
%gq=bitcast i8*%gp to i32*
store i32 1342177296,i32*%gq,align 4
%gr=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%gs=bitcast i8*%go to i8**
store i8*%gr,i8**%gs,align 8
%gt=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%gu=getelementptr inbounds i8,i8*%go,i64 8
%gv=bitcast i8*%gu to i8**
store i8*%gt,i8**%gv,align 8
%gw=getelementptr inbounds i8,i8*%go,i64 16
%gx=bitcast i8*%gw to i32*
store i32 3,i32*%gx,align 4
%gy=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%gz=call fastcc i8*%gj(i8*inreg%gy,i8*inreg%go)
store i8*%gz,i8**%d,align 8
%gA=call i8*@sml_alloc(i32 inreg 12)#0
%gB=getelementptr inbounds i8,i8*%gA,i64 -4
%gC=bitcast i8*%gB to i32*
store i32 1342177288,i32*%gC,align 4
%gD=load i8*,i8**%d,align 8
%gE=bitcast i8*%gA to i8**
store i8*%gD,i8**%gE,align 8
%gF=getelementptr inbounds i8,i8*%gA,i64 8
%gG=bitcast i8*%gF to i32*
store i32 1,i32*%gG,align 4
br label%hQ
gH:
store i8*null,i8**%e,align 8
store i8*null,i8**%d,align 8
%gI=load i8*,i8**%gd,align 8
store i8*%gI,i8**%d,align 8
br label%hI
gJ:
br i1%gc,label%g5,label%gK
gK:
store i8*null,i8**%e,align 8
%gL=load i8*,i8**%gd,align 8
store i8*%gL,i8**%d,align 8
br label%hI
gM:
%gN=bitcast i8*%f2 to i8**
store i8*null,i8**%e,align 8
%gO=load i8*,i8**%gN,align 8
%gP=getelementptr inbounds i8,i8*%eK,i64 88
%gQ=bitcast i8*%gP to i8**
%gR=load i8*,i8**%gQ,align 8
%gS=icmp eq i8*%gR,null
%gT=getelementptr inbounds i8,i8*%eK,i64 96
%gU=bitcast i8*%gT to i8**
%gV=load i8*,i8**%gU,align 8
%gW=icmp eq i8*%gV,null
br i1%gS,label%gX,label%g1
gX:
br i1%gW,label%hy,label%gY
gY:
%gZ=bitcast i8*%gV to i8**
%g0=load i8*,i8**%gZ,align 8
store i8*%g0,i8**%d,align 8
br label%hI
g1:
br i1%gW,label%hy,label%g2
g2:
%g3=bitcast i8*%gV to i8**
%g4=load i8*,i8**%g3,align 8
store i8*%g4,i8**%d,align 8
br label%hI
g5:
%g6=phi i8*[%fr,%fB],[%f7,%gJ]
%g7=bitcast i8*%g6 to i8**
%g8=load i8*,i8**%g7,align 8
store i8*%g8,i8**%d,align 8
store i8*%fe,i8**%e,align 8
%g9=call fastcc i8*@_SMLLN10TextPrimIO20nonblockingOperationE_109(i32 inreg 1,i32 inreg 8)
%ha=getelementptr inbounds i8,i8*%g9,i64 16
%hb=bitcast i8*%ha to i8*(i8*,i8*)**
%hc=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%hb,align 8
%hd=bitcast i8*%g9 to i8**
%he=load i8*,i8**%hd,align 8
store i8*%he,i8**%f,align 8
%hf=call i8*@sml_alloc(i32 inreg 20)#0
%hg=getelementptr inbounds i8,i8*%hf,i64 -4
%hh=bitcast i8*%hg to i32*
store i32 1342177296,i32*%hh,align 4
%hi=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%hj=bitcast i8*%hf to i8**
store i8*%hi,i8**%hj,align 8
%hk=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%hl=getelementptr inbounds i8,i8*%hf,i64 8
%hm=bitcast i8*%hl to i8**
store i8*%hk,i8**%hm,align 8
%hn=getelementptr inbounds i8,i8*%hf,i64 16
%ho=bitcast i8*%hn to i32*
store i32 3,i32*%ho,align 4
%hp=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%hq=call fastcc i8*%hc(i8*inreg%hp,i8*inreg%hf)
store i8*%hq,i8**%d,align 8
%hr=call i8*@sml_alloc(i32 inreg 12)#0
%hs=getelementptr inbounds i8,i8*%hr,i64 -4
%ht=bitcast i8*%hs to i32*
store i32 1342177288,i32*%ht,align 4
%hu=load i8*,i8**%d,align 8
%hv=bitcast i8*%hr to i8**
store i8*%hu,i8**%hv,align 8
%hw=getelementptr inbounds i8,i8*%hr,i64 8
%hx=bitcast i8*%hw to i32*
store i32 1,i32*%hx,align 4
br label%hQ
hy:
%hz=phi i8*[%e4,%e2],[%fG,%fP],[%fG,%fT],[%gO,%gX],[%gO,%g1]
%hA=call fastcc i8*@_SMLL14readaToReadvNB_115(i8*inreg%hz)
store i8*%hA,i8**%d,align 8
%hB=call i8*@sml_alloc(i32 inreg 12)#0
%hC=getelementptr inbounds i8,i8*%hB,i64 -4
%hD=bitcast i8*%hC to i32*
store i32 1342177288,i32*%hD,align 4
%hE=load i8*,i8**%d,align 8
%hF=bitcast i8*%hB to i8**
store i8*%hE,i8**%hF,align 8
%hG=getelementptr inbounds i8,i8*%hB,i64 8
%hH=bitcast i8*%hG to i32*
store i32 1,i32*%hH,align 4
br label%hQ
hI:
%hJ=call i8*@sml_alloc(i32 inreg 12)#0
%hK=getelementptr inbounds i8,i8*%hJ,i64 -4
%hL=bitcast i8*%hK to i32*
store i32 1342177288,i32*%hL,align 4
%hM=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%hN=bitcast i8*%hJ to i8**
store i8*%hM,i8**%hN,align 8
%hO=getelementptr inbounds i8,i8*%hJ,i64 8
%hP=bitcast i8*%hO to i32*
store i32 1,i32*%hP,align 4
br label%hQ
hQ:
%hR=phi i8*[%hJ,%hI],[%hB,%hy],[%hr,%g5],[%gA,%gf],[null,%fy],[null,%eU]
store i8*%hR,i8**%d,align 8
%hS=load i8*,i8**%g,align 8
%hT=getelementptr inbounds i8,i8*%hS,i64 16
%hU=bitcast i8*%hT to i8**
%hV=load i8*,i8**%hU,align 8
%hW=icmp eq i8*%hV,null
br i1%hW,label%hX,label%ic
hX:
%hY=getelementptr inbounds i8,i8*%hS,i64 80
%hZ=bitcast i8*%hY to i8**
%h0=load i8*,i8**%hZ,align 8
%h1=icmp eq i8*%h0,null
br i1%h1,label%h2,label%h9
h2:
%h3=getelementptr inbounds i8,i8*%hS,i64 96
%h4=bitcast i8*%h3 to i8**
%h5=load i8*,i8**%h4,align 8
%h6=icmp eq i8*%h5,null
br i1%h6,label%kl,label%h7
h7:
%h8=bitcast i8*%h5 to i8**
br label%j2
h9:
%ia=bitcast i8*%h0 to i8**
%ib=load i8*,i8**%ia,align 8
store i8*%ib,i8**%e,align 8
br label%kd
ic:
%id=bitcast i8*%hV to i8**
%ie=load i8*,i8**%id,align 8
store i8*%ie,i8**%f,align 8
%if=getelementptr inbounds i8,i8*%hS,i64 72
%ig=bitcast i8*%if to i8**
%ih=load i8*,i8**%ig,align 8
%ii=icmp eq i8*%ih,null
br i1%ii,label%ij,label%je
ij:
%ik=getelementptr inbounds i8,i8*%hS,i64 80
%il=bitcast i8*%ik to i8**
%im=load i8*,i8**%il,align 8
%in=icmp eq i8*%im,null
br i1%in,label%io,label%jb
io:
%ip=getelementptr inbounds i8,i8*%hS,i64 88
%iq=bitcast i8*%ip to i8**
%ir=load i8*,i8**%iq,align 8
%is=icmp eq i8*%ir,null
br i1%is,label%it,label%iA
it:
%iu=getelementptr inbounds i8,i8*%hS,i64 96
%iv=bitcast i8*%iu to i8**
%iw=load i8*,i8**%iv,align 8
%ix=icmp eq i8*%iw,null
br i1%ix,label%kl,label%iy
iy:
%iz=bitcast i8*%iw to i8**
br label%j2
iA:
%iB=bitcast i8*%ir to i8**
%iC=load i8*,i8**%iB,align 8
store i8*%iC,i8**%e,align 8
%iD=getelementptr inbounds i8,i8*%hS,i64 96
%iE=bitcast i8*%iD to i8**
%iF=load i8*,i8**%iE,align 8
%iG=icmp eq i8*%iF,null
br i1%iG,label%iH,label%i9
iH:
%iI=call fastcc i8*@_SMLLN10TextPrimIO20nonblockingOperationE_109(i32 inreg 0,i32 inreg 4)
%iJ=getelementptr inbounds i8,i8*%iI,i64 16
%iK=bitcast i8*%iJ to i8*(i8*,i8*)**
%iL=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%iK,align 8
%iM=bitcast i8*%iI to i8**
%iN=load i8*,i8**%iM,align 8
store i8*%iN,i8**%h,align 8
%iO=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%iP=call fastcc i8*@_SMLL12readvToReada_118(i8*inreg%iO)
store i8*%iP,i8**%e,align 8
%iQ=call i8*@sml_alloc(i32 inreg 20)#0
%iR=getelementptr inbounds i8,i8*%iQ,i64 -4
%iS=bitcast i8*%iR to i32*
store i32 1342177296,i32*%iS,align 4
%iT=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%iU=bitcast i8*%iQ to i8**
store i8*%iT,i8**%iU,align 8
%iV=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%iW=getelementptr inbounds i8,i8*%iQ,i64 8
%iX=bitcast i8*%iW to i8**
store i8*%iV,i8**%iX,align 8
%iY=getelementptr inbounds i8,i8*%iQ,i64 16
%iZ=bitcast i8*%iY to i32*
store i32 3,i32*%iZ,align 4
%i0=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%i1=call fastcc i8*%iL(i8*inreg%i0,i8*inreg%iQ)
store i8*%i1,i8**%e,align 8
%i2=call i8*@sml_alloc(i32 inreg 12)#0
%i3=getelementptr inbounds i8,i8*%i2,i64 -4
%i4=bitcast i8*%i3 to i32*
store i32 1342177288,i32*%i4,align 4
%i5=load i8*,i8**%e,align 8
%i6=bitcast i8*%i2 to i8**
store i8*%i5,i8**%i6,align 8
%i7=getelementptr inbounds i8,i8*%i2,i64 8
%i8=bitcast i8*%i7 to i32*
store i32 1,i32*%i8,align 4
br label%kl
i9:
%ja=bitcast i8*%iF to i8**
store i8*null,i8**%f,align 8
store i8*null,i8**%e,align 8
br label%j2
jb:
%jc=bitcast i8*%im to i8**
store i8*null,i8**%f,align 8
%jd=load i8*,i8**%jc,align 8
store i8*%jd,i8**%e,align 8
br label%kd
je:
%jf=bitcast i8*%ih to i8**
%jg=load i8*,i8**%jf,align 8
%jh=getelementptr inbounds i8,i8*%hS,i64 80
%ji=bitcast i8*%jh to i8**
%jj=load i8*,i8**%ji,align 8
%jk=icmp eq i8*%jj,null
br i1%jk,label%jl,label%jz
jl:
%jm=getelementptr inbounds i8,i8*%hS,i64 88
%jn=bitcast i8*%jm to i8**
%jo=load i8*,i8**%jn,align 8
%jp=icmp eq i8*%jo,null
%jq=getelementptr inbounds i8,i8*%hS,i64 96
%jr=bitcast i8*%jq to i8**
%js=load i8*,i8**%jr,align 8
%jt=icmp eq i8*%js,null
%ju=bitcast i8*%js to i8**
br i1%jp,label%jv,label%jx
jv:
br i1%jt,label%jC,label%jw
jw:
store i8*null,i8**%f,align 8
br label%j2
jx:
br i1%jt,label%jC,label%jy
jy:
store i8*null,i8**%f,align 8
br label%j2
jz:
%jA=bitcast i8*%jj to i8**
store i8*null,i8**%f,align 8
%jB=load i8*,i8**%jA,align 8
store i8*%jB,i8**%e,align 8
br label%kd
jC:
store i8*%jg,i8**%e,align 8
store i8*%ie,i8**%f,align 8
%jD=call fastcc i8*@_SMLLN10TextPrimIO20nonblockingOperationE_109(i32 inreg 0,i32 inreg 4)
%jE=getelementptr inbounds i8,i8*%jD,i64 16
%jF=bitcast i8*%jE to i8*(i8*,i8*)**
%jG=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%jF,align 8
%jH=bitcast i8*%jD to i8**
%jI=load i8*,i8**%jH,align 8
store i8*%jI,i8**%h,align 8
%jJ=call i8*@sml_alloc(i32 inreg 20)#0
%jK=getelementptr inbounds i8,i8*%jJ,i64 -4
%jL=bitcast i8*%jK to i32*
store i32 1342177296,i32*%jL,align 4
%jM=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%jN=bitcast i8*%jJ to i8**
store i8*%jM,i8**%jN,align 8
%jO=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%jP=getelementptr inbounds i8,i8*%jJ,i64 8
%jQ=bitcast i8*%jP to i8**
store i8*%jO,i8**%jQ,align 8
%jR=getelementptr inbounds i8,i8*%jJ,i64 16
%jS=bitcast i8*%jR to i32*
store i32 3,i32*%jS,align 4
%jT=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%jU=call fastcc i8*%jG(i8*inreg%jT,i8*inreg%jJ)
store i8*%jU,i8**%e,align 8
%jV=call i8*@sml_alloc(i32 inreg 12)#0
%jW=getelementptr inbounds i8,i8*%jV,i64 -4
%jX=bitcast i8*%jW to i32*
store i32 1342177288,i32*%jX,align 4
%jY=load i8*,i8**%e,align 8
%jZ=bitcast i8*%jV to i8**
store i8*%jY,i8**%jZ,align 8
%j0=getelementptr inbounds i8,i8*%jV,i64 8
%j1=bitcast i8*%j0 to i32*
store i32 1,i32*%j1,align 4
br label%kl
j2:
%j3=phi i8**[%h8,%h7],[%iz,%iy],[%ja,%i9],[%ju,%jw],[%ju,%jy]
%j4=load i8*,i8**%j3,align 8
%j5=call fastcc i8*@_SMLL14readvToReadaNB_121(i8*inreg%j4)
store i8*%j5,i8**%e,align 8
%j6=call i8*@sml_alloc(i32 inreg 12)#0
%j7=getelementptr inbounds i8,i8*%j6,i64 -4
%j8=bitcast i8*%j7 to i32*
store i32 1342177288,i32*%j8,align 4
%j9=load i8*,i8**%e,align 8
%ka=bitcast i8*%j6 to i8**
store i8*%j9,i8**%ka,align 8
%kb=getelementptr inbounds i8,i8*%j6,i64 8
%kc=bitcast i8*%kb to i32*
store i32 1,i32*%kc,align 4
br label%kl
kd:
%ke=call i8*@sml_alloc(i32 inreg 12)#0
%kf=getelementptr inbounds i8,i8*%ke,i64 -4
%kg=bitcast i8*%kf to i32*
store i32 1342177288,i32*%kg,align 4
%kh=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%ki=bitcast i8*%ke to i8**
store i8*%kh,i8**%ki,align 8
%kj=getelementptr inbounds i8,i8*%ke,i64 8
%kk=bitcast i8*%kj to i32*
store i32 1,i32*%kk,align 4
br label%kl
kl:
%km=phi i8*[%ke,%kd],[%j6,%j2],[%jV,%jC],[%i2,%iH],[null,%it],[null,%h2]
store i8*%km,i8**%e,align 8
%kn=bitcast i8**%g to i8***
%ko=load i8**,i8***%kn,align 8
%kp=load i8*,i8**%ko,align 8
store i8*%kp,i8**%f,align 8
%kq=getelementptr inbounds i8*,i8**%ko,i64 1
%kr=load i8*,i8**%kq,align 8
store i8*%kr,i8**%h,align 8
%ks=getelementptr inbounds i8*,i8**%ko,i64 2
%kt=load i8*,i8**%ks,align 8
store i8*%kt,i8**%i,align 8
%ku=getelementptr inbounds i8*,i8**%ko,i64 3
%kv=bitcast i8**%ku to i32*
%kw=load i32,i32*%kv,align 4
%kx=getelementptr inbounds i8*,i8**%ko,i64 4
%ky=load i8*,i8**%kx,align 8
store i8*%ky,i8**%j,align 8
%kz=getelementptr inbounds i8*,i8**%ko,i64 5
%kA=load i8*,i8**%kz,align 8
store i8*%kA,i8**%k,align 8
%kB=getelementptr inbounds i8*,i8**%ko,i64 6
%kC=load i8*,i8**%kB,align 8
store i8*%kC,i8**%l,align 8
%kD=getelementptr inbounds i8*,i8**%ko,i64 7
%kE=load i8*,i8**%kD,align 8
store i8*%kE,i8**%m,align 8
%kF=getelementptr inbounds i8*,i8**%ko,i64 8
%kG=load i8*,i8**%kF,align 8
store i8*%kG,i8**%n,align 8
%kH=getelementptr inbounds i8*,i8**%ko,i64 13
%kI=load i8*,i8**%kH,align 8
store i8*%kI,i8**%o,align 8
%kJ=getelementptr inbounds i8*,i8**%ko,i64 14
%kK=load i8*,i8**%kJ,align 8
store i8*%kK,i8**%g,align 8
%kL=call i8*@sml_alloc(i32 inreg 124)#0
%kM=getelementptr inbounds i8,i8*%kL,i64 -4
%kN=bitcast i8*%kM to i32*
store i32 1342177400,i32*%kN,align 4
%kO=getelementptr inbounds i8,i8*%kL,i64 28
%kP=bitcast i8*%kO to i32*
store i32 0,i32*%kP,align 1
%kQ=load i8*,i8**%f,align 8
%kR=bitcast i8*%kL to i8**
store i8*%kQ,i8**%kR,align 8
%kS=load i8*,i8**%h,align 8
%kT=getelementptr inbounds i8,i8*%kL,i64 8
%kU=bitcast i8*%kT to i8**
store i8*%kS,i8**%kU,align 8
%kV=load i8*,i8**%i,align 8
%kW=getelementptr inbounds i8,i8*%kL,i64 16
%kX=bitcast i8*%kW to i8**
store i8*%kV,i8**%kX,align 8
%kY=getelementptr inbounds i8,i8*%kL,i64 24
%kZ=bitcast i8*%kY to i32*
store i32%kw,i32*%kZ,align 4
%k0=load i8*,i8**%j,align 8
%k1=getelementptr inbounds i8,i8*%kL,i64 32
%k2=bitcast i8*%k1 to i8**
store i8*%k0,i8**%k2,align 8
%k3=load i8*,i8**%k,align 8
%k4=getelementptr inbounds i8,i8*%kL,i64 40
%k5=bitcast i8*%k4 to i8**
store i8*%k3,i8**%k5,align 8
%k6=load i8*,i8**%l,align 8
%k7=getelementptr inbounds i8,i8*%kL,i64 48
%k8=bitcast i8*%k7 to i8**
store i8*%k6,i8**%k8,align 8
%k9=load i8*,i8**%m,align 8
%la=getelementptr inbounds i8,i8*%kL,i64 56
%lb=bitcast i8*%la to i8**
store i8*%k9,i8**%lb,align 8
%lc=load i8*,i8**%n,align 8
%ld=getelementptr inbounds i8,i8*%kL,i64 64
%le=bitcast i8*%ld to i8**
store i8*%lc,i8**%le,align 8
%lf=load i8*,i8**%c,align 8
%lg=getelementptr inbounds i8,i8*%kL,i64 72
%lh=bitcast i8*%lg to i8**
store i8*%lf,i8**%lh,align 8
%li=load i8*,i8**%e,align 8
%lj=getelementptr inbounds i8,i8*%kL,i64 80
%lk=bitcast i8*%lj to i8**
store i8*%li,i8**%lk,align 8
%ll=load i8*,i8**%b,align 8
%lm=getelementptr inbounds i8,i8*%kL,i64 88
%ln=bitcast i8*%lm to i8**
store i8*%ll,i8**%ln,align 8
%lo=load i8*,i8**%d,align 8
%lp=getelementptr inbounds i8,i8*%kL,i64 96
%lq=bitcast i8*%lp to i8**
store i8*%lo,i8**%lq,align 8
%lr=load i8*,i8**%o,align 8
%ls=getelementptr inbounds i8,i8*%kL,i64 104
%lt=bitcast i8*%ls to i8**
store i8*%lr,i8**%lt,align 8
%lu=load i8*,i8**%g,align 8
%lv=getelementptr inbounds i8,i8*%kL,i64 112
%lw=bitcast i8*%lv to i8**
store i8*%lu,i8**%lw,align 8
%lx=getelementptr inbounds i8,i8*%kL,i64 120
%ly=bitcast i8*%lx to i32*
store i32 32759,i32*%ly,align 4
ret i8*%kL
}
define internal fastcc i32@_SMLL14writeaToWritev_129(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
l:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%e,align 8
store i8*%b,i8**%c,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%j,label%h
h:
call void@sml_check(i32 inreg%f)
%i=load i8*,i8**%c,align 8
br label%j
j:
%k=phi i8*[%i,%h],[%b,%l]
store i8*null,i8**%c,align 8
store i8*%k,i8**%d,align 8
%m=call fastcc i32@_SMLFN15CharVectorSlice6lengthE(i8*inreg%k)
%n=icmp eq i32%m,0
br i1%n,label%aB,label%o
o:
%p=call i8*@sml_alloc(i32 inreg 20)#0
%q=getelementptr inbounds i8,i8*%p,i64 -4
%r=bitcast i8*%q to i32*
store i32 1342177296,i32*%r,align 4
%s=getelementptr inbounds i8,i8*%p,i64 12
%t=bitcast i8*%s to i32*
store i32 0,i32*%t,align 1
%u=load i8*,i8**%d,align 8
%v=bitcast i8*%p to i8**
store i8*%u,i8**%v,align 8
%w=getelementptr inbounds i8,i8*%p,i64 8
%x=bitcast i8*%w to i32*
store i32 0,i32*%x,align 4
%y=getelementptr inbounds i8,i8*%p,i64 16
%z=bitcast i8*%y to i32*
store i32 1,i32*%z,align 4
%A=call fastcc i8@_SMLFN15CharVectorSlice3subE(i8*inreg%p)
%B=call i8*@sml_alloc(i32 inreg 12)#0
%C=bitcast i8*%B to i32*
%D=getelementptr inbounds i8,i8*%B,i64 -4
%E=bitcast i8*%D to i32*
store i32 1342177288,i32*%E,align 4
%F=getelementptr inbounds i8,i8*%B,i64 5
call void@llvm.memset.p0i8.i32(i8*%F,i8 0,i32 3,i1 false)
store i32%m,i32*%C,align 4
%G=getelementptr inbounds i8,i8*%B,i64 4
store i8%A,i8*%G,align 1
%H=getelementptr inbounds i8,i8*%B,i64 8
%I=bitcast i8*%H to i32*
store i32 0,i32*%I,align 4
%J=call fastcc i8*@_SMLFN9CharArray5arrayE(i8*inreg%B)
store i8*%J,i8**%c,align 8
%K=call i8*@sml_alloc(i32 inreg 28)#0
%L=getelementptr inbounds i8,i8*%K,i64 -4
%M=bitcast i8*%L to i32*
store i32 1342177304,i32*%M,align 4
%N=getelementptr inbounds i8,i8*%K,i64 12
%O=bitcast i8*%N to i32*
store i32 0,i32*%O,align 1
%P=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%Q=bitcast i8*%K to i8**
store i8*%P,i8**%Q,align 8
%R=getelementptr inbounds i8,i8*%K,i64 8
%S=bitcast i8*%R to i32*
store i32 1,i32*%S,align 4
%T=getelementptr inbounds i8,i8*%K,i64 16
%U=bitcast i8*%T to i8**
store i8*null,i8**%U,align 8
%V=getelementptr inbounds i8,i8*%K,i64 24
%W=bitcast i8*%V to i32*
store i32 5,i32*%W,align 4
%X=call fastcc i8*@_SMLFN15CharVectorSlice8subsliceE(i8*inreg%K)
store i8*%X,i8**%d,align 8
%Y=call i8*@sml_alloc(i32 inreg 28)#0
%Z=bitcast i8*%Y to i32*
%aa=getelementptr inbounds i8,i8*%Y,i64 -4
%ab=bitcast i8*%aa to i32*
store i32 1342177304,i32*%ab,align 4
%ac=getelementptr inbounds i8,i8*%Y,i64 4
%ad=bitcast i8*%ac to i32*
store i32 0,i32*%ad,align 1
store i32 1,i32*%Z,align 4
%ae=load i8*,i8**%c,align 8
%af=getelementptr inbounds i8,i8*%Y,i64 8
%ag=bitcast i8*%af to i8**
store i8*%ae,i8**%ag,align 8
%ah=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%ai=getelementptr inbounds i8,i8*%Y,i64 16
%aj=bitcast i8*%ai to i8**
store i8*%ah,i8**%aj,align 8
%ak=getelementptr inbounds i8,i8*%Y,i64 24
%al=bitcast i8*%ak to i32*
store i32 6,i32*%al,align 4
call fastcc void@_SMLFN14CharArraySlice7copyVecE(i8*inreg%Y)
%am=bitcast i8**%e to i8***
%an=load i8**,i8***%am,align 8
%ao=load i8*,i8**%an,align 8
%ap=getelementptr inbounds i8,i8*%ao,i64 16
%aq=bitcast i8*%ap to i8*(i8*,i8*)**
%ar=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aq,align 8
store i8*null,i8**%e,align 8
%as=bitcast i8**%an to i8***
%at=load i8**,i8***%as,align 8
%au=load i8*,i8**%at,align 8
store i8*%au,i8**%d,align 8
%av=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aw=call fastcc i8*@_SMLFN14CharArraySlice4fullE(i8*inreg%av)
%ax=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%ay=call fastcc i8*%ar(i8*inreg%ax,i8*inreg%aw)
%az=bitcast i8*%ay to i32*
%aA=load i32,i32*%az,align 4
ret i32%aA
aB:
ret i32 0
}
define internal fastcc i8*@_SMLL14writeaToWritev_130(i8*inreg%a)unnamed_addr#4 gc"smlsharp"{
%b=alloca i8*,align 8
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%b,align 8
%d=call i8*@sml_alloc(i32 inreg 12)#0
%e=getelementptr inbounds i8,i8*%d,i64 -4
%f=bitcast i8*%e to i32*
store i32 1342177288,i32*%f,align 4
store i8*%d,i8**%c,align 8
%g=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%h=bitcast i8*%d to i8**
store i8*%g,i8**%h,align 8
%i=getelementptr inbounds i8,i8*%d,i64 8
%j=bitcast i8*%i to i32*
store i32 1,i32*%j,align 4
%k=call i8*@sml_alloc(i32 inreg 28)#0
%l=getelementptr inbounds i8,i8*%k,i64 -4
%m=bitcast i8*%l to i32*
store i32 1342177304,i32*%m,align 4
%n=load i8*,i8**%c,align 8
%o=bitcast i8*%k to i8**
store i8*%n,i8**%o,align 8
%p=getelementptr inbounds i8,i8*%k,i64 8
%q=bitcast i8*%p to void(...)**
store void(...)*bitcast(i32(i8*,i8*)*@_SMLL14writeaToWritev_129 to void(...)*),void(...)**%q,align 8
%r=getelementptr inbounds i8,i8*%k,i64 16
%s=bitcast i8*%r to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL14writeaToWritev_223 to void(...)*),void(...)**%s,align 8
%t=getelementptr inbounds i8,i8*%k,i64 24
%u=bitcast i8*%t to i32*
store i32 -2147483647,i32*%u,align 4
ret i8*%k
}
define internal fastcc i8*@_SMLL16writeaToWritevNB_133(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
l:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%e,align 8
store i8*%b,i8**%c,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%j,label%h
h:
call void@sml_check(i32 inreg%f)
%i=load i8*,i8**%c,align 8
br label%j
j:
%k=phi i8*[%i,%h],[%b,%l]
store i8*null,i8**%c,align 8
store i8*%k,i8**%d,align 8
%m=call fastcc i32@_SMLFN15CharVectorSlice6lengthE(i8*inreg%k)
%n=icmp eq i32%m,0
br i1%n,label%az,label%o
o:
%p=call i8*@sml_alloc(i32 inreg 20)#0
%q=getelementptr inbounds i8,i8*%p,i64 -4
%r=bitcast i8*%q to i32*
store i32 1342177296,i32*%r,align 4
%s=getelementptr inbounds i8,i8*%p,i64 12
%t=bitcast i8*%s to i32*
store i32 0,i32*%t,align 1
%u=load i8*,i8**%d,align 8
%v=bitcast i8*%p to i8**
store i8*%u,i8**%v,align 8
%w=getelementptr inbounds i8,i8*%p,i64 8
%x=bitcast i8*%w to i32*
store i32 0,i32*%x,align 4
%y=getelementptr inbounds i8,i8*%p,i64 16
%z=bitcast i8*%y to i32*
store i32 1,i32*%z,align 4
%A=call fastcc i8@_SMLFN15CharVectorSlice3subE(i8*inreg%p)
%B=call i8*@sml_alloc(i32 inreg 12)#0
%C=bitcast i8*%B to i32*
%D=getelementptr inbounds i8,i8*%B,i64 -4
%E=bitcast i8*%D to i32*
store i32 1342177288,i32*%E,align 4
%F=getelementptr inbounds i8,i8*%B,i64 5
call void@llvm.memset.p0i8.i32(i8*%F,i8 0,i32 3,i1 false)
store i32%m,i32*%C,align 4
%G=getelementptr inbounds i8,i8*%B,i64 4
store i8%A,i8*%G,align 1
%H=getelementptr inbounds i8,i8*%B,i64 8
%I=bitcast i8*%H to i32*
store i32 0,i32*%I,align 4
%J=call fastcc i8*@_SMLFN9CharArray5arrayE(i8*inreg%B)
store i8*%J,i8**%c,align 8
%K=call i8*@sml_alloc(i32 inreg 28)#0
%L=getelementptr inbounds i8,i8*%K,i64 -4
%M=bitcast i8*%L to i32*
store i32 1342177304,i32*%M,align 4
%N=getelementptr inbounds i8,i8*%K,i64 12
%O=bitcast i8*%N to i32*
store i32 0,i32*%O,align 1
%P=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%Q=bitcast i8*%K to i8**
store i8*%P,i8**%Q,align 8
%R=getelementptr inbounds i8,i8*%K,i64 8
%S=bitcast i8*%R to i32*
store i32 1,i32*%S,align 4
%T=getelementptr inbounds i8,i8*%K,i64 16
%U=bitcast i8*%T to i8**
store i8*null,i8**%U,align 8
%V=getelementptr inbounds i8,i8*%K,i64 24
%W=bitcast i8*%V to i32*
store i32 5,i32*%W,align 4
%X=call fastcc i8*@_SMLFN15CharVectorSlice8subsliceE(i8*inreg%K)
store i8*%X,i8**%d,align 8
%Y=call i8*@sml_alloc(i32 inreg 28)#0
%Z=bitcast i8*%Y to i32*
%aa=getelementptr inbounds i8,i8*%Y,i64 -4
%ab=bitcast i8*%aa to i32*
store i32 1342177304,i32*%ab,align 4
%ac=getelementptr inbounds i8,i8*%Y,i64 4
%ad=bitcast i8*%ac to i32*
store i32 0,i32*%ad,align 1
store i32 1,i32*%Z,align 4
%ae=load i8*,i8**%c,align 8
%af=getelementptr inbounds i8,i8*%Y,i64 8
%ag=bitcast i8*%af to i8**
store i8*%ae,i8**%ag,align 8
%ah=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%ai=getelementptr inbounds i8,i8*%Y,i64 16
%aj=bitcast i8*%ai to i8**
store i8*%ah,i8**%aj,align 8
%ak=getelementptr inbounds i8,i8*%Y,i64 24
%al=bitcast i8*%ak to i32*
store i32 6,i32*%al,align 4
call fastcc void@_SMLFN14CharArraySlice7copyVecE(i8*inreg%Y)
%am=bitcast i8**%e to i8***
%an=load i8**,i8***%am,align 8
%ao=load i8*,i8**%an,align 8
%ap=getelementptr inbounds i8,i8*%ao,i64 16
%aq=bitcast i8*%ap to i8*(i8*,i8*)**
%ar=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aq,align 8
store i8*null,i8**%e,align 8
%as=bitcast i8**%an to i8***
%at=load i8**,i8***%as,align 8
%au=load i8*,i8**%at,align 8
store i8*%au,i8**%d,align 8
%av=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aw=call fastcc i8*@_SMLFN14CharArraySlice4fullE(i8*inreg%av)
%ax=load i8*,i8**%d,align 8
%ay=tail call fastcc i8*%ar(i8*inreg%ax,i8*inreg%aw)
ret i8*%ay
az:
ret i8*bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@k,i64 0,i32 2)to i8*)
}
define internal fastcc i32@_SMLL9writeVec_G_136(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
l:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%d,align 8
store i8*%b,i8**%c,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%j,label%h
h:
call void@sml_check(i32 inreg%f)
%i=load i8*,i8**%d,align 8
br label%j
j:
%k=phi i8*[%i,%h],[%a,%l]
%m=getelementptr inbounds i8,i8*%k,i64 8
%n=bitcast i8*%m to i8**
%o=load i8*,i8**%n,align 8
%p=getelementptr inbounds i8,i8*%o,i64 16
%q=bitcast i8*%p to i8*(i8*,i8*)**
%r=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%q,align 8
%s=bitcast i8*%o to i8**
%t=load i8*,i8**%s,align 8
store i8*%t,i8**%e,align 8
%u=call i8*@sml_alloc(i32 inreg 4)#0
%v=bitcast i8*%u to i32*
%w=getelementptr inbounds i8,i8*%u,i64 -4
%x=bitcast i8*%w to i32*
store i32 4,i32*%x,align 4
store i32 0,i32*%v,align 4
%y=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%z=call fastcc i8*%r(i8*inreg%y,i8*inreg%u)
%A=call fastcc i8*@_SMLFN6Option5valOfE(i32 inreg 0,i32 inreg 4)
%B=getelementptr inbounds i8,i8*%A,i64 16
%C=bitcast i8*%B to i8*(i8*,i8*)**
%D=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%C,align 8
%E=bitcast i8*%A to i8**
%F=load i8*,i8**%E,align 8
store i8*%F,i8**%e,align 8
%G=bitcast i8**%d to i8***
%H=load i8**,i8***%G,align 8
%I=load i8*,i8**%H,align 8
%J=getelementptr inbounds i8,i8*%I,i64 16
%K=bitcast i8*%J to i8*(i8*,i8*)**
%L=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%K,align 8
store i8*null,i8**%d,align 8
%M=bitcast i8**%H to i8***
%N=load i8**,i8***%M,align 8
%O=load i8*,i8**%N,align 8
%P=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%Q=call fastcc i8*%L(i8*inreg%O,i8*inreg%P)
%R=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%S=call fastcc i8*%D(i8*inreg%R,i8*inreg%Q)
%T=bitcast i8*%S to i32*
%U=load i32,i32*%T,align 4
ret i32%U
}
define internal fastcc i32@_SMLL9writeVec_G_137(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%c,align 8
store i8*%b,i8**%d,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%g,label%i
g:
%h=bitcast i8*%a to i8**
br label%n
i:
call void@sml_check(i32 inreg%e)
%j=load i8*,i8**%d,align 8
%k=bitcast i8**%c to i8***
%l=load i8**,i8***%k,align 8
%m=bitcast i8**%l to i8*
br label%n
n:
%o=phi i8*[%m,%i],[%a,%g]
%p=phi i8**[%l,%i],[%h,%g]
%q=phi i8*[%j,%i],[%b,%g]
%r=load i8*,i8**%p,align 8
%s=getelementptr inbounds i8,i8*%r,i64 16
%t=bitcast i8*%s to i8*(i8*,i8*)**
%u=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%t,align 8
%v=bitcast i8*%r to i8**
%w=load i8*,i8**%v,align 8
store i8*%w,i8**%d,align 8
%x=getelementptr inbounds i8,i8*%o,i64 8
%y=bitcast i8*%x to i8**
%z=load i8*,i8**%y,align 8
%A=getelementptr inbounds i8,i8*%z,i64 16
%B=bitcast i8*%A to i8*(i8*,i8*)**
%C=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%B,align 8
store i8*null,i8**%c,align 8
%D=bitcast i8*%z to i8**
%E=load i8*,i8**%D,align 8
%F=call fastcc i8*%C(i8*inreg%E,i8*inreg%q)
%G=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%H=call fastcc i8*%u(i8*inreg%G,i8*inreg%F)
%I=bitcast i8*%H to i32*
%J=load i32,i32*%I,align 4
ret i32%J
}
define internal fastcc i32@_SMLL9writeVec_G_138(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
store i8*%a,i8**%e,align 8
store i8*%b,i8**%c,align 8
%g=load atomic i32,i32*@sml_check_flag unordered,align 4
%h=icmp eq i32%g,0
br i1%h,label%i,label%k
i:
%j=bitcast i8*%a to i8**
br label%n
k:
call void@sml_check(i32 inreg%g)
%l=bitcast i8**%e to i8***
%m=load i8**,i8***%l,align 8
br label%n
n:
%o=phi i8**[%m,%k],[%j,%i]
%p=load i8*,i8**%o,align 8
%q=getelementptr inbounds i8,i8*%p,i64 16
%r=bitcast i8*%q to i8*(i8*,i8*)**
%s=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%r,align 8
%t=bitcast i8*%p to i8**
%u=load i8*,i8**%t,align 8
store i8*%u,i8**%d,align 8
%v=call i8*@sml_alloc(i32 inreg 4)#0
%w=bitcast i8*%v to i32*
%x=getelementptr inbounds i8,i8*%v,i64 -4
%y=bitcast i8*%x to i32*
store i32 4,i32*%y,align 4
store i32 0,i32*%w,align 4
%z=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%A=call fastcc i8*%s(i8*inreg%z,i8*inreg%v)
%B=call fastcc i8*@_SMLFN6Option5valOfE(i32 inreg 0,i32 inreg 4)
store i8*%B,i8**%d,align 8
%C=load i8*,i8**%e,align 8
%D=getelementptr inbounds i8,i8*%C,i64 8
%E=bitcast i8*%D to i8**
%F=load i8*,i8**%E,align 8
store i8*%F,i8**%e,align 8
%G=call i8*@sml_alloc(i32 inreg 20)#0
%H=getelementptr inbounds i8,i8*%G,i64 -4
%I=bitcast i8*%H to i32*
store i32 1342177296,i32*%I,align 4
store i8*%G,i8**%f,align 8
%J=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%K=bitcast i8*%G to i8**
store i8*%J,i8**%K,align 8
%L=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%M=getelementptr inbounds i8,i8*%G,i64 8
%N=bitcast i8*%M to i8**
store i8*%L,i8**%N,align 8
%O=getelementptr inbounds i8,i8*%G,i64 16
%P=bitcast i8*%O to i32*
store i32 3,i32*%P,align 4
%Q=call i8*@sml_alloc(i32 inreg 28)#0
%R=getelementptr inbounds i8,i8*%Q,i64 -4
%S=bitcast i8*%R to i32*
store i32 1342177304,i32*%S,align 4
%T=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%U=bitcast i8*%Q to i8**
store i8*%T,i8**%U,align 8
%V=getelementptr inbounds i8,i8*%Q,i64 8
%W=bitcast i8*%V to void(...)**
store void(...)*bitcast(i32(i8*,i8*)*@_SMLL9writeVec_G_137 to void(...)*),void(...)**%W,align 8
%X=getelementptr inbounds i8,i8*%Q,i64 16
%Y=bitcast i8*%X to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL9writeVec_G_227 to void(...)*),void(...)**%Y,align 8
%Z=getelementptr inbounds i8,i8*%Q,i64 24
%aa=bitcast i8*%Z to i32*
store i32 -2147483647,i32*%aa,align 4
%ab=call fastcc i8*@_SMLL14writeaToWritev_130(i8*inreg%Q)
%ac=getelementptr inbounds i8,i8*%ab,i64 16
%ad=bitcast i8*%ac to i8*(i8*,i8*)**
%ae=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%ad,align 8
%af=bitcast i8*%ab to i8**
%ag=load i8*,i8**%af,align 8
%ah=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ai=call fastcc i8*%ae(i8*inreg%ag,i8*inreg%ah)
%aj=bitcast i8*%ai to i32*
%ak=load i32,i32*%aj,align 4
ret i32%ak
}
define internal fastcc i32@_SMLL9writeArr_G_139(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%c,align 8
store i8*%b,i8**%d,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%g,label%i
g:
%h=bitcast i8*%a to i8**
br label%m
i:
call void@sml_check(i32 inreg%e)
%j=load i8*,i8**%d,align 8
%k=bitcast i8**%c to i8***
%l=load i8**,i8***%k,align 8
br label%m
m:
%n=phi i8**[%l,%i],[%h,%g]
%o=phi i8*[%j,%i],[%b,%g]
store i8*null,i8**%d,align 8
%p=load i8*,i8**%n,align 8
%q=getelementptr inbounds i8,i8*%p,i64 16
%r=bitcast i8*%q to i8*(i8*,i8*)**
%s=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%r,align 8
%t=bitcast i8*%p to i8**
%u=load i8*,i8**%t,align 8
store i8*%u,i8**%c,align 8
%v=call fastcc i8*@_SMLFN14CharArraySlice6vectorE(i8*inreg%o)
%w=call fastcc i8*@_SMLFN15CharVectorSlice4fullE(i8*inreg%v)
%x=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%y=call fastcc i8*%s(i8*inreg%x,i8*inreg%w)
%z=bitcast i8*%y to i32*
%A=load i32,i32*%z,align 4
ret i32%A
}
define internal fastcc i32@_SMLL9writeArr_G_140(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
l:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%d,align 8
store i8*%b,i8**%c,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%j,label%h
h:
call void@sml_check(i32 inreg%f)
%i=load i8*,i8**%d,align 8
br label%j
j:
%k=phi i8*[%i,%h],[%a,%l]
%m=getelementptr inbounds i8,i8*%k,i64 8
%n=bitcast i8*%m to i8**
%o=load i8*,i8**%n,align 8
%p=getelementptr inbounds i8,i8*%o,i64 16
%q=bitcast i8*%p to i8*(i8*,i8*)**
%r=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%q,align 8
%s=bitcast i8*%o to i8**
%t=load i8*,i8**%s,align 8
store i8*%t,i8**%e,align 8
%u=call i8*@sml_alloc(i32 inreg 4)#0
%v=bitcast i8*%u to i32*
%w=getelementptr inbounds i8,i8*%u,i64 -4
%x=bitcast i8*%w to i32*
store i32 4,i32*%x,align 4
store i32 0,i32*%v,align 4
%y=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%z=call fastcc i8*%r(i8*inreg%y,i8*inreg%u)
%A=call fastcc i8*@_SMLFN6Option5valOfE(i32 inreg 0,i32 inreg 4)
%B=getelementptr inbounds i8,i8*%A,i64 16
%C=bitcast i8*%B to i8*(i8*,i8*)**
%D=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%C,align 8
%E=bitcast i8*%A to i8**
%F=load i8*,i8**%E,align 8
store i8*%F,i8**%e,align 8
%G=bitcast i8**%d to i8***
%H=load i8**,i8***%G,align 8
%I=load i8*,i8**%H,align 8
%J=getelementptr inbounds i8,i8*%I,i64 16
%K=bitcast i8*%J to i8*(i8*,i8*)**
%L=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%K,align 8
store i8*null,i8**%d,align 8
%M=bitcast i8**%H to i8***
%N=load i8**,i8***%M,align 8
%O=load i8*,i8**%N,align 8
%P=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%Q=call fastcc i8*%L(i8*inreg%O,i8*inreg%P)
%R=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%S=call fastcc i8*%D(i8*inreg%R,i8*inreg%Q)
%T=bitcast i8*%S to i32*
%U=load i32,i32*%T,align 4
ret i32%U
}
define internal fastcc i8*@_SMLL9writeArr_G_141(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%c,align 8
store i8*%b,i8**%d,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%g,label%i
g:
%h=bitcast i8*%a to i8**
br label%m
i:
call void@sml_check(i32 inreg%e)
%j=load i8*,i8**%d,align 8
%k=bitcast i8**%c to i8***
%l=load i8**,i8***%k,align 8
br label%m
m:
%n=phi i8**[%l,%i],[%h,%g]
%o=phi i8*[%j,%i],[%b,%g]
store i8*null,i8**%d,align 8
%p=load i8*,i8**%n,align 8
%q=getelementptr inbounds i8,i8*%p,i64 16
%r=bitcast i8*%q to i8*(i8*,i8*)**
%s=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%r,align 8
%t=bitcast i8*%p to i8**
%u=load i8*,i8**%t,align 8
store i8*%u,i8**%c,align 8
%v=call fastcc i8*@_SMLFN14CharArraySlice6vectorE(i8*inreg%o)
%w=call fastcc i8*@_SMLFN15CharVectorSlice4fullE(i8*inreg%v)
%x=load i8*,i8**%c,align 8
%y=tail call fastcc i8*%s(i8*inreg%x,i8*inreg%w)
ret i8*%y
}
define internal fastcc i32@_SMLL9writeArr_G_142(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%d,align 8
store i8*%b,i8**%c,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%h,label%j
h:
%i=bitcast i8*%a to i8**
br label%m
j:
call void@sml_check(i32 inreg%f)
%k=bitcast i8**%d to i8***
%l=load i8**,i8***%k,align 8
br label%m
m:
%n=phi i8**[%l,%j],[%i,%h]
%o=load i8*,i8**%n,align 8
%p=getelementptr inbounds i8,i8*%o,i64 8
%q=bitcast i8*%p to i8**
%r=load i8*,i8**%q,align 8
%s=getelementptr inbounds i8,i8*%r,i64 16
%t=bitcast i8*%s to i8*(i8*,i8*)**
%u=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%t,align 8
%v=bitcast i8*%r to i8**
%w=load i8*,i8**%v,align 8
store i8*%w,i8**%e,align 8
%x=call i8*@sml_alloc(i32 inreg 4)#0
%y=bitcast i8*%x to i32*
%z=getelementptr inbounds i8,i8*%x,i64 -4
%A=bitcast i8*%z to i32*
store i32 4,i32*%A,align 4
store i32 0,i32*%y,align 4
%B=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%C=call fastcc i8*%u(i8*inreg%B,i8*inreg%x)
%D=call fastcc i8*@_SMLFN6Option5valOfE(i32 inreg 0,i32 inreg 4)
%E=getelementptr inbounds i8,i8*%D,i64 16
%F=bitcast i8*%E to i8*(i8*,i8*)**
%G=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%F,align 8
%H=bitcast i8*%D to i8**
%I=load i8*,i8**%H,align 8
store i8*%I,i8**%e,align 8
%J=bitcast i8**%d to i8****
%K=load i8***,i8****%J,align 8
store i8*null,i8**%d,align 8
%L=load i8**,i8***%K,align 8
%M=load i8*,i8**%L,align 8
%N=getelementptr inbounds i8,i8*%M,i64 16
%O=bitcast i8*%N to i8*(i8*,i8*)**
%P=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%O,align 8
%Q=bitcast i8*%M to i8**
%R=load i8*,i8**%Q,align 8
%S=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%T=call fastcc i8*%P(i8*inreg%R,i8*inreg%S)
%U=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%V=call fastcc i8*%G(i8*inreg%U,i8*inreg%T)
%W=bitcast i8*%V to i32*
%X=load i32,i32*%W,align 4
ret i32%X
}
define internal fastcc i8*@_SMLL11writeArrNB_G_143(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%c,align 8
store i8*%b,i8**%d,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%g,label%i
g:
%h=bitcast i8*%a to i8**
br label%m
i:
call void@sml_check(i32 inreg%e)
%j=load i8*,i8**%d,align 8
%k=bitcast i8**%c to i8***
%l=load i8**,i8***%k,align 8
br label%m
m:
%n=phi i8**[%l,%i],[%h,%g]
%o=phi i8*[%j,%i],[%b,%g]
store i8*null,i8**%d,align 8
%p=load i8*,i8**%n,align 8
%q=getelementptr inbounds i8,i8*%p,i64 16
%r=bitcast i8*%q to i8*(i8*,i8*)**
%s=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%r,align 8
%t=bitcast i8*%p to i8**
%u=load i8*,i8**%t,align 8
store i8*%u,i8**%c,align 8
%v=call fastcc i8*@_SMLFN14CharArraySlice6vectorE(i8*inreg%o)
%w=call fastcc i8*@_SMLFN15CharVectorSlice4fullE(i8*inreg%v)
%x=load i8*,i8**%c,align 8
%y=tail call fastcc i8*%s(i8*inreg%x,i8*inreg%w)
ret i8*%y
}
define internal fastcc i32@_SMLL11writeArrNB_G_144(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%c,align 8
store i8*%b,i8**%d,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%g,label%i
g:
%h=bitcast i8*%a to i8**
br label%m
i:
call void@sml_check(i32 inreg%e)
%j=load i8*,i8**%d,align 8
%k=bitcast i8**%c to i8***
%l=load i8**,i8***%k,align 8
br label%m
m:
%n=phi i8**[%l,%i],[%h,%g]
%o=phi i8*[%j,%i],[%b,%g]
store i8*null,i8**%d,align 8
%p=load i8*,i8**%n,align 8
%q=getelementptr inbounds i8,i8*%p,i64 16
%r=bitcast i8*%q to i8*(i8*,i8*)**
%s=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%r,align 8
%t=bitcast i8*%p to i8**
%u=load i8*,i8**%t,align 8
store i8*%u,i8**%c,align 8
%v=call fastcc i8*@_SMLFN14CharArraySlice6vectorE(i8*inreg%o)
%w=call fastcc i8*@_SMLFN15CharVectorSlice4fullE(i8*inreg%v)
%x=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%y=call fastcc i8*%s(i8*inreg%x,i8*inreg%w)
%z=bitcast i8*%y to i32*
%A=load i32,i32*%z,align 4
ret i32%A
}
define fastcc i8*@_SMLFN10TextPrimIO13augmentWriterE(i8*inreg%a)#2 gc"smlsharp"{
w:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
%h=alloca i8*,align 8
%i=alloca i8*,align 8
%j=alloca i8*,align 8
%k=alloca i8*,align 8
%l=alloca i8*,align 8
%m=alloca i8*,align 8
%n=alloca i8*,align 8
%o=alloca i8*,align 8
%p=alloca i8*,align 8
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
call void@llvm.gcroot(i8**%h,i8*null)#0
call void@llvm.gcroot(i8**%i,i8*null)#0
call void@llvm.gcroot(i8**%j,i8*null)#0
call void@llvm.gcroot(i8**%k,i8*null)#0
call void@llvm.gcroot(i8**%l,i8*null)#0
call void@llvm.gcroot(i8**%m,i8*null)#0
call void@llvm.gcroot(i8**%n,i8*null)#0
call void@llvm.gcroot(i8**%o,i8*null)#0
call void@llvm.gcroot(i8**%p,i8*null)#0
store i8*%a,i8**%d,align 8
%q=load atomic i32,i32*@sml_check_flag unordered,align 4
%r=icmp eq i32%q,0
br i1%r,label%u,label%s
s:
call void@sml_check(i32 inreg%q)
%t=load i8*,i8**%d,align 8
br label%u
u:
%v=phi i8*[%t,%s],[%a,%w]
store i8*%v,i8**%i,align 8
%x=bitcast i8*%v to i8**
%y=load i8*,i8**%x,align 8
%z=icmp eq i8*%y,null
br i1%z,label%A,label%X
A:
%B=getelementptr inbounds i8,i8*%v,i64 80
%C=bitcast i8*%B to i8**
%D=load i8*,i8**%C,align 8
%E=icmp eq i8*%D,null
br i1%E,label%F,label%N
F:
%G=getelementptr inbounds i8,i8*%v,i64 96
%H=bitcast i8*%G to i8**
%I=load i8*,i8**%H,align 8
%J=icmp eq i8*%I,null
br i1%J,label%cm,label%K
K:
%L=bitcast i8*%I to i8**
%M=load i8*,i8**%L,align 8
store i8*%M,i8**%d,align 8
br label%ce
N:
%O=bitcast i8*%D to i8**
%P=load i8*,i8**%O,align 8
%Q=getelementptr inbounds i8,i8*%v,i64 96
%R=bitcast i8*%Q to i8**
%S=load i8*,i8**%R,align 8
%T=icmp eq i8*%S,null
br i1%T,label%b4,label%U
U:
%V=bitcast i8*%S to i8**
%W=load i8*,i8**%V,align 8
store i8*%W,i8**%d,align 8
br label%ce
X:
%Y=bitcast i8*%y to i8**
%Z=load i8*,i8**%Y,align 8
store i8*%Z,i8**%d,align 8
%aa=getelementptr inbounds i8,i8*%v,i64 80
%ab=bitcast i8*%aa to i8**
%ac=load i8*,i8**%ab,align 8
%ad=icmp eq i8*%ac,null
br i1%ad,label%ae,label%bf
ae:
%af=getelementptr inbounds i8,i8*%v,i64 88
%ag=bitcast i8*%af to i8**
%ah=load i8*,i8**%ag,align 8
%ai=icmp eq i8*%ah,null
br i1%ai,label%aj,label%aw
aj:
%ak=getelementptr inbounds i8,i8*%v,i64 96
%al=bitcast i8*%ak to i8**
%am=load i8*,i8**%al,align 8
%an=icmp eq i8*%am,null
br i1%an,label%ao,label%at
ao:
%ap=getelementptr inbounds i8,i8*%v,i64 104
%aq=bitcast i8*%ap to i8**
%ar=load i8*,i8**%aq,align 8
%as=icmp eq i8*%ar,null
br i1%as,label%cm,label%by
at:
%au=bitcast i8*%am to i8**
%av=load i8*,i8**%au,align 8
store i8*%av,i8**%d,align 8
br label%ce
aw:
%ax=bitcast i8*%ah to i8**
%ay=load i8*,i8**%ax,align 8
store i8*%ay,i8**%e,align 8
%az=getelementptr inbounds i8,i8*%v,i64 96
%aA=bitcast i8*%az to i8**
%aB=load i8*,i8**%aA,align 8
%aC=icmp eq i8*%aB,null
br i1%aC,label%aD,label%bc
aD:
%aE=getelementptr inbounds i8,i8*%v,i64 104
%aF=bitcast i8*%aE to i8**
%aG=load i8*,i8**%aF,align 8
%aH=icmp eq i8*%aG,null
br i1%aH,label%aI,label%bb
aI:
%aJ=call i8*@sml_alloc(i32 inreg 20)#0
%aK=getelementptr inbounds i8,i8*%aJ,i64 -4
%aL=bitcast i8*%aK to i32*
store i32 1342177296,i32*%aL,align 4
store i8*%aJ,i8**%f,align 8
%aM=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aN=bitcast i8*%aJ to i8**
store i8*%aM,i8**%aN,align 8
%aO=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%aP=getelementptr inbounds i8,i8*%aJ,i64 8
%aQ=bitcast i8*%aP to i8**
store i8*%aO,i8**%aQ,align 8
%aR=getelementptr inbounds i8,i8*%aJ,i64 16
%aS=bitcast i8*%aR to i32*
store i32 3,i32*%aS,align 4
%aT=call i8*@sml_alloc(i32 inreg 28)#0
%aU=getelementptr inbounds i8,i8*%aT,i64 -4
%aV=bitcast i8*%aU to i32*
store i32 1342177304,i32*%aV,align 4
store i8*%aT,i8**%d,align 8
%aW=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%aX=bitcast i8*%aT to i8**
store i8*%aW,i8**%aX,align 8
%aY=getelementptr inbounds i8,i8*%aT,i64 8
%aZ=bitcast i8*%aY to void(...)**
store void(...)*bitcast(i32(i8*,i8*)*@_SMLL9writeVec_G_138 to void(...)*),void(...)**%aZ,align 8
%a0=getelementptr inbounds i8,i8*%aT,i64 16
%a1=bitcast i8*%a0 to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL9writeVec_G_228 to void(...)*),void(...)**%a1,align 8
%a2=getelementptr inbounds i8,i8*%aT,i64 24
%a3=bitcast i8*%a2 to i32*
store i32 -2147483647,i32*%a3,align 4
%a4=call i8*@sml_alloc(i32 inreg 12)#0
%a5=getelementptr inbounds i8,i8*%a4,i64 -4
%a6=bitcast i8*%a5 to i32*
store i32 1342177288,i32*%a6,align 4
%a7=load i8*,i8**%d,align 8
%a8=bitcast i8*%a4 to i8**
store i8*%a7,i8**%a8,align 8
%a9=getelementptr inbounds i8,i8*%a4,i64 8
%ba=bitcast i8*%a9 to i32*
store i32 1,i32*%ba,align 4
br label%cm
bb:
store i8*null,i8**%e,align 8
br label%by
bc:
%bd=bitcast i8*%aB to i8**
store i8*null,i8**%e,align 8
%be=load i8*,i8**%bd,align 8
store i8*%be,i8**%d,align 8
br label%ce
bf:
%bg=bitcast i8*%ac to i8**
%bh=load i8*,i8**%bg,align 8
%bi=getelementptr inbounds i8,i8*%v,i64 88
%bj=bitcast i8*%bi to i8**
%bk=load i8*,i8**%bj,align 8
%bl=icmp eq i8*%bk,null
%bm=getelementptr inbounds i8,i8*%v,i64 96
%bn=bitcast i8*%bm to i8**
%bo=load i8*,i8**%bn,align 8
%bp=icmp eq i8*%bo,null
br i1%bl,label%bq,label%bu
bq:
br i1%bp,label%b4,label%br
br:
%bs=bitcast i8*%bo to i8**
%bt=load i8*,i8**%bs,align 8
store i8*%bt,i8**%d,align 8
br label%ce
bu:
br i1%bp,label%b4,label%bv
bv:
%bw=bitcast i8*%bo to i8**
%bx=load i8*,i8**%bw,align 8
store i8*%bx,i8**%d,align 8
br label%ce
by:
%bz=phi i8*[%aG,%bb],[%ar,%ao]
%bA=bitcast i8*%bz to i8**
%bB=load i8*,i8**%bA,align 8
store i8*%bB,i8**%d,align 8
store i8*%Z,i8**%e,align 8
%bC=call i8*@sml_alloc(i32 inreg 20)#0
%bD=getelementptr inbounds i8,i8*%bC,i64 -4
%bE=bitcast i8*%bD to i32*
store i32 1342177296,i32*%bE,align 4
store i8*%bC,i8**%f,align 8
%bF=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%bG=bitcast i8*%bC to i8**
store i8*%bF,i8**%bG,align 8
%bH=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%bI=getelementptr inbounds i8,i8*%bC,i64 8
%bJ=bitcast i8*%bI to i8**
store i8*%bH,i8**%bJ,align 8
%bK=getelementptr inbounds i8,i8*%bC,i64 16
%bL=bitcast i8*%bK to i32*
store i32 3,i32*%bL,align 4
%bM=call i8*@sml_alloc(i32 inreg 28)#0
%bN=getelementptr inbounds i8,i8*%bM,i64 -4
%bO=bitcast i8*%bN to i32*
store i32 1342177304,i32*%bO,align 4
store i8*%bM,i8**%d,align 8
%bP=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%bQ=bitcast i8*%bM to i8**
store i8*%bP,i8**%bQ,align 8
%bR=getelementptr inbounds i8,i8*%bM,i64 8
%bS=bitcast i8*%bR to void(...)**
store void(...)*bitcast(i32(i8*,i8*)*@_SMLL9writeVec_G_136 to void(...)*),void(...)**%bS,align 8
%bT=getelementptr inbounds i8,i8*%bM,i64 16
%bU=bitcast i8*%bT to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL9writeVec_G_226 to void(...)*),void(...)**%bU,align 8
%bV=getelementptr inbounds i8,i8*%bM,i64 24
%bW=bitcast i8*%bV to i32*
store i32 -2147483647,i32*%bW,align 4
%bX=call i8*@sml_alloc(i32 inreg 12)#0
%bY=getelementptr inbounds i8,i8*%bX,i64 -4
%bZ=bitcast i8*%bY to i32*
store i32 1342177288,i32*%bZ,align 4
%b0=load i8*,i8**%d,align 8
%b1=bitcast i8*%bX to i8**
store i8*%b0,i8**%b1,align 8
%b2=getelementptr inbounds i8,i8*%bX,i64 8
%b3=bitcast i8*%b2 to i32*
store i32 1,i32*%b3,align 4
br label%cm
b4:
%b5=phi i8*[%P,%N],[%bh,%bq],[%bh,%bu]
%b6=call fastcc i8*@_SMLL14writeaToWritev_130(i8*inreg%b5)
store i8*%b6,i8**%d,align 8
%b7=call i8*@sml_alloc(i32 inreg 12)#0
%b8=getelementptr inbounds i8,i8*%b7,i64 -4
%b9=bitcast i8*%b8 to i32*
store i32 1342177288,i32*%b9,align 4
%ca=load i8*,i8**%d,align 8
%cb=bitcast i8*%b7 to i8**
store i8*%ca,i8**%cb,align 8
%cc=getelementptr inbounds i8,i8*%b7,i64 8
%cd=bitcast i8*%cc to i32*
store i32 1,i32*%cd,align 4
br label%cm
ce:
%cf=call i8*@sml_alloc(i32 inreg 12)#0
%cg=getelementptr inbounds i8,i8*%cf,i64 -4
%ch=bitcast i8*%cg to i32*
store i32 1342177288,i32*%ch,align 4
%ci=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%cj=bitcast i8*%cf to i8**
store i8*%ci,i8**%cj,align 8
%ck=getelementptr inbounds i8,i8*%cf,i64 8
%cl=bitcast i8*%ck to i32*
store i32 1,i32*%cl,align 4
br label%cm
cm:
%cn=phi i8*[%cf,%ce],[%b7,%b4],[%bX,%by],[%a4,%aI],[null,%ao],[null,%F]
store i8*%cn,i8**%d,align 8
%co=load i8*,i8**%i,align 8
%cp=bitcast i8*%co to i8**
%cq=load i8*,i8**%cp,align 8
%cr=icmp eq i8*%cq,null
br i1%cr,label%cs,label%cF
cs:
%ct=getelementptr inbounds i8,i8*%co,i64 80
%cu=bitcast i8*%ct to i8**
%cv=load i8*,i8**%cu,align 8
%cw=icmp eq i8*%cv,null
br i1%cw,label%cx,label%eX
cx:
%cy=getelementptr inbounds i8,i8*%co,i64 96
%cz=bitcast i8*%cy to i8**
%cA=load i8*,i8**%cz,align 8
%cB=icmp eq i8*%cA,null
br i1%cB,label%e8,label%cC
cC:
%cD=bitcast i8*%cA to i8**
%cE=load i8*,i8**%cD,align 8
store i8*%cE,i8**%e,align 8
br label%ex
cF:
%cG=bitcast i8*%cq to i8**
%cH=load i8*,i8**%cG,align 8
store i8*%cH,i8**%e,align 8
%cI=getelementptr inbounds i8,i8*%co,i64 80
%cJ=bitcast i8*%cI to i8**
%cK=load i8*,i8**%cJ,align 8
%cL=icmp eq i8*%cK,null
br i1%cL,label%cM,label%eX
cM:
%cN=getelementptr inbounds i8,i8*%co,i64 88
%cO=bitcast i8*%cN to i8**
%cP=load i8*,i8**%cO,align 8
%cQ=icmp eq i8*%cP,null
%cR=getelementptr inbounds i8,i8*%co,i64 96
%cS=bitcast i8*%cR to i8**
%cT=load i8*,i8**%cS,align 8
%cU=icmp eq i8*%cT,null
br i1%cQ,label%cV,label%dY
cV:
br i1%cU,label%cW,label%dV
cW:
%cX=getelementptr inbounds i8,i8*%co,i64 104
%cY=bitcast i8*%cX to i8**
%cZ=load i8*,i8**%cY,align 8
%c0=icmp eq i8*%cZ,null
br i1%c0,label%e8,label%c1
c1:
%c2=bitcast i8*%cZ to i8**
%c3=load i8*,i8**%c2,align 8
store i8*%c3,i8**%f,align 8
%c4=call i8*@sml_alloc(i32 inreg 12)#0
%c5=getelementptr inbounds i8,i8*%c4,i64 -4
%c6=bitcast i8*%c5 to i32*
store i32 1342177288,i32*%c6,align 4
store i8*%c4,i8**%g,align 8
%c7=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%c8=bitcast i8*%c4 to i8**
store i8*%c7,i8**%c8,align 8
%c9=getelementptr inbounds i8,i8*%c4,i64 8
%da=bitcast i8*%c9 to i32*
store i32 1,i32*%da,align 4
%db=call i8*@sml_alloc(i32 inreg 28)#0
%dc=getelementptr inbounds i8,i8*%db,i64 -4
%dd=bitcast i8*%dc to i32*
store i32 1342177304,i32*%dd,align 4
store i8*%db,i8**%h,align 8
%de=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%df=bitcast i8*%db to i8**
store i8*%de,i8**%df,align 8
%dg=getelementptr inbounds i8,i8*%db,i64 8
%dh=bitcast i8*%dg to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL9writeArr_G_141 to void(...)*),void(...)**%dh,align 8
%di=getelementptr inbounds i8,i8*%db,i64 16
%dj=bitcast i8*%di to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL9writeArr_G_141 to void(...)*),void(...)**%dj,align 8
%dk=getelementptr inbounds i8,i8*%db,i64 24
%dl=bitcast i8*%dk to i32*
store i32 -2147483647,i32*%dl,align 4
%dm=call i8*@sml_alloc(i32 inreg 20)#0
%dn=getelementptr inbounds i8,i8*%dm,i64 -4
%do=bitcast i8*%dn to i32*
store i32 1342177296,i32*%do,align 4
store i8*%dm,i8**%f,align 8
%dp=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%dq=bitcast i8*%dm to i8**
store i8*%dp,i8**%dq,align 8
%dr=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%ds=getelementptr inbounds i8,i8*%dm,i64 8
%dt=bitcast i8*%ds to i8**
store i8*%dr,i8**%dt,align 8
%du=getelementptr inbounds i8,i8*%dm,i64 16
%dv=bitcast i8*%du to i32*
store i32 3,i32*%dv,align 4
%dw=call i8*@sml_alloc(i32 inreg 12)#0
%dx=getelementptr inbounds i8,i8*%dw,i64 -4
%dy=bitcast i8*%dx to i32*
store i32 1342177288,i32*%dy,align 4
store i8*%dw,i8**%e,align 8
%dz=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%dA=bitcast i8*%dw to i8**
store i8*%dz,i8**%dA,align 8
%dB=getelementptr inbounds i8,i8*%dw,i64 8
%dC=bitcast i8*%dB to i32*
store i32 1,i32*%dC,align 4
%dD=call i8*@sml_alloc(i32 inreg 28)#0
%dE=getelementptr inbounds i8,i8*%dD,i64 -4
%dF=bitcast i8*%dE to i32*
store i32 1342177304,i32*%dF,align 4
store i8*%dD,i8**%f,align 8
%dG=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%dH=bitcast i8*%dD to i8**
store i8*%dG,i8**%dH,align 8
%dI=getelementptr inbounds i8,i8*%dD,i64 8
%dJ=bitcast i8*%dI to void(...)**
store void(...)*bitcast(i32(i8*,i8*)*@_SMLL9writeArr_G_142 to void(...)*),void(...)**%dJ,align 8
%dK=getelementptr inbounds i8,i8*%dD,i64 16
%dL=bitcast i8*%dK to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL9writeArr_G_231 to void(...)*),void(...)**%dL,align 8
%dM=getelementptr inbounds i8,i8*%dD,i64 24
%dN=bitcast i8*%dM to i32*
store i32 -2147483647,i32*%dN,align 4
%dO=call i8*@sml_alloc(i32 inreg 12)#0
%dP=getelementptr inbounds i8,i8*%dO,i64 -4
%dQ=bitcast i8*%dP to i32*
store i32 1342177288,i32*%dQ,align 4
%dR=load i8*,i8**%f,align 8
%dS=bitcast i8*%dO to i8**
store i8*%dR,i8**%dS,align 8
%dT=getelementptr inbounds i8,i8*%dO,i64 8
%dU=bitcast i8*%dT to i32*
store i32 1,i32*%dU,align 4
br label%e8
dV:
%dW=bitcast i8*%cT to i8**
%dX=load i8*,i8**%dW,align 8
store i8*%dX,i8**%e,align 8
br label%ex
dY:
br i1%cU,label%d2,label%dZ
dZ:
%d0=bitcast i8*%cT to i8**
%d1=load i8*,i8**%d0,align 8
store i8*%d1,i8**%e,align 8
br label%ex
d2:
%d3=bitcast i8*%cP to i8**
%d4=load i8*,i8**%d3,align 8
store i8*%d4,i8**%e,align 8
store i8*%cH,i8**%f,align 8
%d5=call i8*@sml_alloc(i32 inreg 20)#0
%d6=getelementptr inbounds i8,i8*%d5,i64 -4
%d7=bitcast i8*%d6 to i32*
store i32 1342177296,i32*%d7,align 4
store i8*%d5,i8**%g,align 8
%d8=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%d9=bitcast i8*%d5 to i8**
store i8*%d8,i8**%d9,align 8
%ea=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%eb=getelementptr inbounds i8,i8*%d5,i64 8
%ec=bitcast i8*%eb to i8**
store i8*%ea,i8**%ec,align 8
%ed=getelementptr inbounds i8,i8*%d5,i64 16
%ee=bitcast i8*%ed to i32*
store i32 3,i32*%ee,align 4
%ef=call i8*@sml_alloc(i32 inreg 28)#0
%eg=getelementptr inbounds i8,i8*%ef,i64 -4
%eh=bitcast i8*%eg to i32*
store i32 1342177304,i32*%eh,align 4
store i8*%ef,i8**%e,align 8
%ei=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%ej=bitcast i8*%ef to i8**
store i8*%ei,i8**%ej,align 8
%ek=getelementptr inbounds i8,i8*%ef,i64 8
%el=bitcast i8*%ek to void(...)**
store void(...)*bitcast(i32(i8*,i8*)*@_SMLL9writeArr_G_140 to void(...)*),void(...)**%el,align 8
%em=getelementptr inbounds i8,i8*%ef,i64 16
%en=bitcast i8*%em to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL9writeArr_G_230 to void(...)*),void(...)**%en,align 8
%eo=getelementptr inbounds i8,i8*%ef,i64 24
%ep=bitcast i8*%eo to i32*
store i32 -2147483647,i32*%ep,align 4
%eq=call i8*@sml_alloc(i32 inreg 12)#0
%er=getelementptr inbounds i8,i8*%eq,i64 -4
%es=bitcast i8*%er to i32*
store i32 1342177288,i32*%es,align 4
%et=load i8*,i8**%e,align 8
%eu=bitcast i8*%eq to i8**
store i8*%et,i8**%eu,align 8
%ev=getelementptr inbounds i8,i8*%eq,i64 8
%ew=bitcast i8*%ev to i32*
store i32 1,i32*%ew,align 4
br label%e8
ex:
%ey=call i8*@sml_alloc(i32 inreg 12)#0
%ez=getelementptr inbounds i8,i8*%ey,i64 -4
%eA=bitcast i8*%ez to i32*
store i32 1342177288,i32*%eA,align 4
store i8*%ey,i8**%f,align 8
%eB=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%eC=bitcast i8*%ey to i8**
store i8*%eB,i8**%eC,align 8
%eD=getelementptr inbounds i8,i8*%ey,i64 8
%eE=bitcast i8*%eD to i32*
store i32 1,i32*%eE,align 4
%eF=call i8*@sml_alloc(i32 inreg 28)#0
%eG=getelementptr inbounds i8,i8*%eF,i64 -4
%eH=bitcast i8*%eG to i32*
store i32 1342177304,i32*%eH,align 4
store i8*%eF,i8**%e,align 8
%eI=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%eJ=bitcast i8*%eF to i8**
store i8*%eI,i8**%eJ,align 8
%eK=getelementptr inbounds i8,i8*%eF,i64 8
%eL=bitcast i8*%eK to void(...)**
store void(...)*bitcast(i32(i8*,i8*)*@_SMLL9writeArr_G_139 to void(...)*),void(...)**%eL,align 8
%eM=getelementptr inbounds i8,i8*%eF,i64 16
%eN=bitcast i8*%eM to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL9writeArr_G_229 to void(...)*),void(...)**%eN,align 8
%eO=getelementptr inbounds i8,i8*%eF,i64 24
%eP=bitcast i8*%eO to i32*
store i32 -2147483647,i32*%eP,align 4
%eQ=call i8*@sml_alloc(i32 inreg 12)#0
%eR=getelementptr inbounds i8,i8*%eQ,i64 -4
%eS=bitcast i8*%eR to i32*
store i32 1342177288,i32*%eS,align 4
%eT=load i8*,i8**%e,align 8
%eU=bitcast i8*%eQ to i8**
store i8*%eT,i8**%eU,align 8
%eV=getelementptr inbounds i8,i8*%eQ,i64 8
%eW=bitcast i8*%eV to i32*
store i32 1,i32*%eW,align 4
br label%e8
eX:
%eY=phi i8*[%cv,%cs],[%cK,%cF]
%eZ=bitcast i8*%eY to i8**
%e0=load i8*,i8**%eZ,align 8
store i8*%e0,i8**%e,align 8
%e1=call i8*@sml_alloc(i32 inreg 12)#0
%e2=getelementptr inbounds i8,i8*%e1,i64 -4
%e3=bitcast i8*%e2 to i32*
store i32 1342177288,i32*%e3,align 4
%e4=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%e5=bitcast i8*%e1 to i8**
store i8*%e4,i8**%e5,align 8
%e6=getelementptr inbounds i8,i8*%e1,i64 8
%e7=bitcast i8*%e6 to i32*
store i32 1,i32*%e7,align 4
br label%e8
e8:
%e9=phi i8*[%e1,%eX],[%eQ,%ex],[%eq,%d2],[%dO,%c1],[null,%cW],[null,%cx]
store i8*%e9,i8**%e,align 8
%fa=load i8*,i8**%i,align 8
%fb=getelementptr inbounds i8,i8*%fa,i64 8
%fc=bitcast i8*%fb to i8**
%fd=load i8*,i8**%fc,align 8
%fe=icmp eq i8*%fd,null
br i1%fe,label%ff,label%fC
ff:
%fg=getelementptr inbounds i8,i8*%fa,i64 88
%fh=bitcast i8*%fg to i8**
%fi=load i8*,i8**%fh,align 8
%fj=icmp eq i8*%fi,null
br i1%fj,label%fk,label%fs
fk:
%fl=getelementptr inbounds i8,i8*%fa,i64 104
%fm=bitcast i8*%fl to i8**
%fn=load i8*,i8**%fm,align 8
%fo=icmp eq i8*%fn,null
br i1%fo,label%iz,label%fp
fp:
%fq=bitcast i8*%fn to i8**
%fr=load i8*,i8**%fq,align 8
store i8*%fr,i8**%f,align 8
br label%ir
fs:
%ft=bitcast i8*%fi to i8**
%fu=load i8*,i8**%ft,align 8
%fv=getelementptr inbounds i8,i8*%fa,i64 104
%fw=bitcast i8*%fv to i8**
%fx=load i8*,i8**%fw,align 8
%fy=icmp eq i8*%fx,null
br i1%fy,label%hY,label%fz
fz:
%fA=bitcast i8*%fx to i8**
%fB=load i8*,i8**%fA,align 8
store i8*%fB,i8**%f,align 8
br label%ir
fC:
%fD=bitcast i8*%fd to i8**
%fE=load i8*,i8**%fD,align 8
store i8*%fE,i8**%g,align 8
%fF=getelementptr inbounds i8,i8*%fa,i64 80
%fG=bitcast i8*%fF to i8**
%fH=load i8*,i8**%fG,align 8
%fI=icmp eq i8*%fH,null
br i1%fI,label%fJ,label%gn
fJ:
%fK=getelementptr inbounds i8,i8*%fa,i64 88
%fL=bitcast i8*%fK to i8**
%fM=load i8*,i8**%fL,align 8
%fN=icmp eq i8*%fM,null
br i1%fN,label%fO,label%f4
fO:
%fP=getelementptr inbounds i8,i8*%fa,i64 96
%fQ=bitcast i8*%fP to i8**
%fR=load i8*,i8**%fQ,align 8
%fS=icmp eq i8*%fR,null
%fT=getelementptr inbounds i8,i8*%fa,i64 104
%fU=bitcast i8*%fT to i8**
%fV=load i8*,i8**%fU,align 8
%fW=icmp eq i8*%fV,null
%fX=bitcast i8*%fV to i8**
br i1%fS,label%fY,label%f1
fY:
br i1%fW,label%iz,label%fZ
fZ:
%f0=load i8*,i8**%fX,align 8
store i8*%f0,i8**%f,align 8
br label%ir
f1:
br i1%fW,label%hv,label%f2
f2:
store i8*null,i8**%g,align 8
%f3=load i8*,i8**%fX,align 8
store i8*%f3,i8**%f,align 8
br label%ir
f4:
%f5=bitcast i8*%fM to i8**
store i8*null,i8**%g,align 8
%f6=load i8*,i8**%f5,align 8
%f7=getelementptr inbounds i8,i8*%fa,i64 96
%f8=bitcast i8*%f7 to i8**
%f9=load i8*,i8**%f8,align 8
%ga=icmp eq i8*%f9,null
%gb=getelementptr inbounds i8,i8*%fa,i64 104
%gc=bitcast i8*%gb to i8**
%gd=load i8*,i8**%gc,align 8
%ge=icmp eq i8*%gd,null
br i1%ga,label%gf,label%gj
gf:
br i1%ge,label%hY,label%gg
gg:
%gh=bitcast i8*%gd to i8**
%gi=load i8*,i8**%gh,align 8
store i8*%gi,i8**%f,align 8
br label%ir
gj:
br i1%ge,label%hY,label%gk
gk:
%gl=bitcast i8*%gd to i8**
%gm=load i8*,i8**%gl,align 8
store i8*%gm,i8**%f,align 8
br label%ir
gn:
%go=bitcast i8*%fH to i8**
%gp=load i8*,i8**%go,align 8
store i8*%gp,i8**%f,align 8
%gq=getelementptr inbounds i8,i8*%fa,i64 88
%gr=bitcast i8*%gq to i8**
%gs=load i8*,i8**%gr,align 8
%gt=icmp eq i8*%gs,null
br i1%gt,label%gu,label%hc
gu:
%gv=getelementptr inbounds i8,i8*%fa,i64 96
%gw=bitcast i8*%gv to i8**
%gx=load i8*,i8**%gw,align 8
%gy=icmp eq i8*%gx,null
%gz=getelementptr inbounds i8,i8*%fa,i64 104
%gA=bitcast i8*%gz to i8**
%gB=load i8*,i8**%gA,align 8
%gC=icmp eq i8*%gB,null
%gD=bitcast i8*%gB to i8**
br i1%gy,label%gE,label%g9
gE:
br i1%gC,label%gF,label%g7
gF:
%gG=call fastcc i8*@_SMLLN10TextPrimIO20nonblockingOperationE_109(i32 inreg 0,i32 inreg 4)
%gH=getelementptr inbounds i8,i8*%gG,i64 16
%gI=bitcast i8*%gH to i8*(i8*,i8*)**
%gJ=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%gI,align 8
%gK=bitcast i8*%gG to i8**
%gL=load i8*,i8**%gK,align 8
store i8*%gL,i8**%h,align 8
%gM=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%gN=call fastcc i8*@_SMLL14writeaToWritev_130(i8*inreg%gM)
store i8*%gN,i8**%f,align 8
%gO=call i8*@sml_alloc(i32 inreg 20)#0
%gP=getelementptr inbounds i8,i8*%gO,i64 -4
%gQ=bitcast i8*%gP to i32*
store i32 1342177296,i32*%gQ,align 4
%gR=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%gS=bitcast i8*%gO to i8**
store i8*%gR,i8**%gS,align 8
%gT=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%gU=getelementptr inbounds i8,i8*%gO,i64 8
%gV=bitcast i8*%gU to i8**
store i8*%gT,i8**%gV,align 8
%gW=getelementptr inbounds i8,i8*%gO,i64 16
%gX=bitcast i8*%gW to i32*
store i32 3,i32*%gX,align 4
%gY=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%gZ=call fastcc i8*%gJ(i8*inreg%gY,i8*inreg%gO)
store i8*%gZ,i8**%f,align 8
%g0=call i8*@sml_alloc(i32 inreg 12)#0
%g1=getelementptr inbounds i8,i8*%g0,i64 -4
%g2=bitcast i8*%g1 to i32*
store i32 1342177288,i32*%g2,align 4
%g3=load i8*,i8**%f,align 8
%g4=bitcast i8*%g0 to i8**
store i8*%g3,i8**%g4,align 8
%g5=getelementptr inbounds i8,i8*%g0,i64 8
%g6=bitcast i8*%g5 to i32*
store i32 1,i32*%g6,align 4
br label%iz
g7:
store i8*null,i8**%g,align 8
store i8*null,i8**%f,align 8
%g8=load i8*,i8**%gD,align 8
store i8*%g8,i8**%f,align 8
br label%ir
g9:
br i1%gC,label%hv,label%ha
ha:
store i8*null,i8**%g,align 8
%hb=load i8*,i8**%gD,align 8
store i8*%hb,i8**%f,align 8
br label%ir
hc:
%hd=bitcast i8*%gs to i8**
store i8*null,i8**%g,align 8
%he=load i8*,i8**%hd,align 8
%hf=getelementptr inbounds i8,i8*%fa,i64 96
%hg=bitcast i8*%hf to i8**
%hh=load i8*,i8**%hg,align 8
%hi=icmp eq i8*%hh,null
%hj=getelementptr inbounds i8,i8*%fa,i64 104
%hk=bitcast i8*%hj to i8**
%hl=load i8*,i8**%hk,align 8
%hm=icmp eq i8*%hl,null
br i1%hi,label%hn,label%hr
hn:
br i1%hm,label%hY,label%ho
ho:
%hp=bitcast i8*%hl to i8**
%hq=load i8*,i8**%hp,align 8
store i8*%hq,i8**%f,align 8
br label%ir
hr:
br i1%hm,label%hY,label%hs
hs:
%ht=bitcast i8*%hl to i8**
%hu=load i8*,i8**%ht,align 8
store i8*%hu,i8**%f,align 8
br label%ir
hv:
%hw=phi i8*[%fR,%f1],[%gx,%g9]
%hx=bitcast i8*%hw to i8**
%hy=load i8*,i8**%hx,align 8
store i8*%hy,i8**%f,align 8
store i8*%fE,i8**%g,align 8
%hz=call fastcc i8*@_SMLLN10TextPrimIO20nonblockingOperationE_109(i32 inreg 0,i32 inreg 4)
%hA=getelementptr inbounds i8,i8*%hz,i64 16
%hB=bitcast i8*%hA to i8*(i8*,i8*)**
%hC=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%hB,align 8
%hD=bitcast i8*%hz to i8**
%hE=load i8*,i8**%hD,align 8
store i8*%hE,i8**%h,align 8
%hF=call i8*@sml_alloc(i32 inreg 20)#0
%hG=getelementptr inbounds i8,i8*%hF,i64 -4
%hH=bitcast i8*%hG to i32*
store i32 1342177296,i32*%hH,align 4
%hI=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%hJ=bitcast i8*%hF to i8**
store i8*%hI,i8**%hJ,align 8
%hK=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%hL=getelementptr inbounds i8,i8*%hF,i64 8
%hM=bitcast i8*%hL to i8**
store i8*%hK,i8**%hM,align 8
%hN=getelementptr inbounds i8,i8*%hF,i64 16
%hO=bitcast i8*%hN to i32*
store i32 3,i32*%hO,align 4
%hP=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%hQ=call fastcc i8*%hC(i8*inreg%hP,i8*inreg%hF)
store i8*%hQ,i8**%f,align 8
%hR=call i8*@sml_alloc(i32 inreg 12)#0
%hS=getelementptr inbounds i8,i8*%hR,i64 -4
%hT=bitcast i8*%hS to i32*
store i32 1342177288,i32*%hT,align 4
%hU=load i8*,i8**%f,align 8
%hV=bitcast i8*%hR to i8**
store i8*%hU,i8**%hV,align 8
%hW=getelementptr inbounds i8,i8*%hR,i64 8
%hX=bitcast i8*%hW to i32*
store i32 1,i32*%hX,align 4
br label%iz
hY:
%hZ=phi i8*[%fu,%fs],[%f6,%gf],[%f6,%gj],[%he,%hn],[%he,%hr]
%h0=bitcast i8**%b to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%h0)
%h1=bitcast i8**%c to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%h1)
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%hZ,i8**%b,align 8
%h2=call i8*@sml_alloc(i32 inreg 12)#0
%h3=getelementptr inbounds i8,i8*%h2,i64 -4
%h4=bitcast i8*%h3 to i32*
store i32 1342177288,i32*%h4,align 4
store i8*%h2,i8**%c,align 8
%h5=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%h6=bitcast i8*%h2 to i8**
store i8*%h5,i8**%h6,align 8
%h7=getelementptr inbounds i8,i8*%h2,i64 8
%h8=bitcast i8*%h7 to i32*
store i32 1,i32*%h8,align 4
%h9=call i8*@sml_alloc(i32 inreg 28)#0
%ia=getelementptr inbounds i8,i8*%h9,i64 -4
%ib=bitcast i8*%ia to i32*
store i32 1342177304,i32*%ib,align 4
%ic=load i8*,i8**%c,align 8
%id=bitcast i8*%h9 to i8**
store i8*%ic,i8**%id,align 8
%ie=getelementptr inbounds i8,i8*%h9,i64 8
%if=bitcast i8*%ie to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL16writeaToWritevNB_133 to void(...)*),void(...)**%if,align 8
%ig=getelementptr inbounds i8,i8*%h9,i64 16
%ih=bitcast i8*%ig to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL16writeaToWritevNB_133 to void(...)*),void(...)**%ih,align 8
%ii=getelementptr inbounds i8,i8*%h9,i64 24
%ij=bitcast i8*%ii to i32*
store i32 -2147483647,i32*%ij,align 4
call void@llvm.lifetime.end.p0i8(i64 8,i8*%h0)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%h1)
store i8*%h9,i8**%f,align 8
%ik=call i8*@sml_alloc(i32 inreg 12)#0
%il=getelementptr inbounds i8,i8*%ik,i64 -4
%im=bitcast i8*%il to i32*
store i32 1342177288,i32*%im,align 4
%in=load i8*,i8**%f,align 8
%io=bitcast i8*%ik to i8**
store i8*%in,i8**%io,align 8
%ip=getelementptr inbounds i8,i8*%ik,i64 8
%iq=bitcast i8*%ip to i32*
store i32 1,i32*%iq,align 4
br label%iz
ir:
%is=call i8*@sml_alloc(i32 inreg 12)#0
%it=getelementptr inbounds i8,i8*%is,i64 -4
%iu=bitcast i8*%it to i32*
store i32 1342177288,i32*%iu,align 4
%iv=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%iw=bitcast i8*%is to i8**
store i8*%iv,i8**%iw,align 8
%ix=getelementptr inbounds i8,i8*%is,i64 8
%iy=bitcast i8*%ix to i32*
store i32 1,i32*%iy,align 4
br label%iz
iz:
%iA=phi i8*[%is,%ir],[%ik,%hY],[%hR,%hv],[%g0,%gF],[null,%fY],[null,%fk]
store i8*%iA,i8**%f,align 8
%iB=load i8*,i8**%i,align 8
%iC=getelementptr inbounds i8,i8*%iB,i64 8
%iD=bitcast i8*%iC to i8**
%iE=load i8*,i8**%iD,align 8
%iF=icmp eq i8*%iE,null
br i1%iF,label%iG,label%iW
iG:
%iH=getelementptr inbounds i8,i8*%iB,i64 88
%iI=bitcast i8*%iH to i8**
%iJ=load i8*,i8**%iI,align 8
%iK=icmp eq i8*%iJ,null
br i1%iK,label%iL,label%iT
iL:
%iM=getelementptr inbounds i8,i8*%iB,i64 104
%iN=bitcast i8*%iM to i8**
%iO=load i8*,i8**%iN,align 8
%iP=icmp eq i8*%iO,null
br i1%iP,label%lE,label%iQ
iQ:
%iR=bitcast i8*%iO to i8**
%iS=load i8*,i8**%iR,align 8
store i8*%iS,i8**%g,align 8
br label%k6
iT:
%iU=bitcast i8*%iJ to i8**
%iV=load i8*,i8**%iU,align 8
store i8*%iV,i8**%g,align 8
br label%lw
iW:
%iX=bitcast i8*%iE to i8**
%iY=load i8*,i8**%iX,align 8
store i8*%iY,i8**%g,align 8
%iZ=getelementptr inbounds i8,i8*%iB,i64 80
%i0=bitcast i8*%iZ to i8**
%i1=load i8*,i8**%i0,align 8
%i2=icmp eq i8*%i1,null
br i1%i2,label%i3,label%kg
i3:
%i4=getelementptr inbounds i8,i8*%iB,i64 88
%i5=bitcast i8*%i4 to i8**
%i6=load i8*,i8**%i5,align 8
%i7=icmp eq i8*%i6,null
br i1%i7,label%i8,label%kd
i8:
%i9=getelementptr inbounds i8,i8*%iB,i64 96
%ja=bitcast i8*%i9 to i8**
%jb=load i8*,i8**%ja,align 8
%jc=icmp eq i8*%jb,null
br i1%jc,label%jd,label%jl
jd:
%je=getelementptr inbounds i8,i8*%iB,i64 104
%jf=bitcast i8*%je to i8**
%jg=load i8*,i8**%jf,align 8
%jh=icmp eq i8*%jg,null
br i1%jh,label%lE,label%ji
ji:
%jj=bitcast i8*%jg to i8**
%jk=load i8*,i8**%jj,align 8
store i8*%jk,i8**%g,align 8
br label%k6
jl:
%jm=bitcast i8*%jb to i8**
%jn=load i8*,i8**%jm,align 8
store i8*%jn,i8**%h,align 8
%jo=getelementptr inbounds i8,i8*%iB,i64 104
%jp=bitcast i8*%jo to i8**
%jq=load i8*,i8**%jp,align 8
%jr=icmp eq i8*%jq,null
br i1%jr,label%js,label%ka
js:
%jt=call fastcc i8*@_SMLLN10TextPrimIO20nonblockingOperationE_109(i32 inreg 0,i32 inreg 4)
%ju=getelementptr inbounds i8,i8*%jt,i64 16
%jv=bitcast i8*%ju to i8*(i8*,i8*)**
%jw=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%jv,align 8
%jx=bitcast i8*%jt to i8**
%jy=load i8*,i8**%jx,align 8
store i8*%jy,i8**%j,align 8
%jz=call i8*@sml_alloc(i32 inreg 12)#0
%jA=getelementptr inbounds i8,i8*%jz,i64 -4
%jB=bitcast i8*%jA to i32*
store i32 1342177288,i32*%jB,align 4
store i8*%jz,i8**%k,align 8
%jC=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%jD=bitcast i8*%jz to i8**
store i8*%jC,i8**%jD,align 8
%jE=getelementptr inbounds i8,i8*%jz,i64 8
%jF=bitcast i8*%jE to i32*
store i32 1,i32*%jF,align 4
%jG=call i8*@sml_alloc(i32 inreg 28)#0
%jH=getelementptr inbounds i8,i8*%jG,i64 -4
%jI=bitcast i8*%jH to i32*
store i32 1342177304,i32*%jI,align 4
store i8*%jG,i8**%h,align 8
%jJ=load i8*,i8**%k,align 8
store i8*null,i8**%k,align 8
%jK=bitcast i8*%jG to i8**
store i8*%jJ,i8**%jK,align 8
%jL=getelementptr inbounds i8,i8*%jG,i64 8
%jM=bitcast i8*%jL to void(...)**
store void(...)*bitcast(i32(i8*,i8*)*@_SMLL11writeArrNB_G_144 to void(...)*),void(...)**%jM,align 8
%jN=getelementptr inbounds i8,i8*%jG,i64 16
%jO=bitcast i8*%jN to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL11writeArrNB_G_232 to void(...)*),void(...)**%jO,align 8
%jP=getelementptr inbounds i8,i8*%jG,i64 24
%jQ=bitcast i8*%jP to i32*
store i32 -2147483647,i32*%jQ,align 4
%jR=call i8*@sml_alloc(i32 inreg 20)#0
%jS=getelementptr inbounds i8,i8*%jR,i64 -4
%jT=bitcast i8*%jS to i32*
store i32 1342177296,i32*%jT,align 4
%jU=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%jV=bitcast i8*%jR to i8**
store i8*%jU,i8**%jV,align 8
%jW=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%jX=getelementptr inbounds i8,i8*%jR,i64 8
%jY=bitcast i8*%jX to i8**
store i8*%jW,i8**%jY,align 8
%jZ=getelementptr inbounds i8,i8*%jR,i64 16
%j0=bitcast i8*%jZ to i32*
store i32 3,i32*%j0,align 4
%j1=load i8*,i8**%j,align 8
store i8*null,i8**%j,align 8
%j2=call fastcc i8*%jw(i8*inreg%j1,i8*inreg%jR)
store i8*%j2,i8**%g,align 8
%j3=call i8*@sml_alloc(i32 inreg 12)#0
%j4=getelementptr inbounds i8,i8*%j3,i64 -4
%j5=bitcast i8*%j4 to i32*
store i32 1342177288,i32*%j5,align 4
%j6=load i8*,i8**%g,align 8
%j7=bitcast i8*%j3 to i8**
store i8*%j6,i8**%j7,align 8
%j8=getelementptr inbounds i8,i8*%j3,i64 8
%j9=bitcast i8*%j8 to i32*
store i32 1,i32*%j9,align 4
br label%lE
ka:
%kb=bitcast i8*%jq to i8**
store i8*null,i8**%g,align 8
store i8*null,i8**%h,align 8
%kc=load i8*,i8**%kb,align 8
store i8*%kc,i8**%g,align 8
br label%k6
kd:
%ke=bitcast i8*%i6 to i8**
%kf=load i8*,i8**%ke,align 8
store i8*%kf,i8**%g,align 8
br label%lw
kg:
%kh=bitcast i8*%i1 to i8**
%ki=load i8*,i8**%kh,align 8
%kj=getelementptr inbounds i8,i8*%iB,i64 88
%kk=bitcast i8*%kj to i8**
%kl=load i8*,i8**%kk,align 8
%km=icmp eq i8*%kl,null
br i1%km,label%kn,label%kD
kn:
%ko=getelementptr inbounds i8,i8*%iB,i64 96
%kp=bitcast i8*%ko to i8**
%kq=load i8*,i8**%kp,align 8
%kr=icmp eq i8*%kq,null
%ks=getelementptr inbounds i8,i8*%iB,i64 104
%kt=bitcast i8*%ks to i8**
%ku=load i8*,i8**%kt,align 8
%kv=icmp eq i8*%ku,null
%kw=bitcast i8*%ku to i8**
br i1%kr,label%kx,label%kA
kx:
br i1%kv,label%kG,label%ky
ky:
store i8*null,i8**%g,align 8
%kz=load i8*,i8**%kw,align 8
store i8*%kz,i8**%g,align 8
br label%k6
kA:
br i1%kv,label%kG,label%kB
kB:
store i8*null,i8**%g,align 8
%kC=load i8*,i8**%kw,align 8
store i8*%kC,i8**%g,align 8
br label%k6
kD:
%kE=bitcast i8*%kl to i8**
%kF=load i8*,i8**%kE,align 8
store i8*%kF,i8**%g,align 8
br label%lw
kG:
store i8*%ki,i8**%g,align 8
store i8*%iY,i8**%h,align 8
%kH=call fastcc i8*@_SMLLN10TextPrimIO20nonblockingOperationE_109(i32 inreg 0,i32 inreg 4)
%kI=getelementptr inbounds i8,i8*%kH,i64 16
%kJ=bitcast i8*%kI to i8*(i8*,i8*)**
%kK=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%kJ,align 8
%kL=bitcast i8*%kH to i8**
%kM=load i8*,i8**%kL,align 8
store i8*%kM,i8**%j,align 8
%kN=call i8*@sml_alloc(i32 inreg 20)#0
%kO=getelementptr inbounds i8,i8*%kN,i64 -4
%kP=bitcast i8*%kO to i32*
store i32 1342177296,i32*%kP,align 4
%kQ=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%kR=bitcast i8*%kN to i8**
store i8*%kQ,i8**%kR,align 8
%kS=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%kT=getelementptr inbounds i8,i8*%kN,i64 8
%kU=bitcast i8*%kT to i8**
store i8*%kS,i8**%kU,align 8
%kV=getelementptr inbounds i8,i8*%kN,i64 16
%kW=bitcast i8*%kV to i32*
store i32 3,i32*%kW,align 4
%kX=load i8*,i8**%j,align 8
store i8*null,i8**%j,align 8
%kY=call fastcc i8*%kK(i8*inreg%kX,i8*inreg%kN)
store i8*%kY,i8**%g,align 8
%kZ=call i8*@sml_alloc(i32 inreg 12)#0
%k0=getelementptr inbounds i8,i8*%kZ,i64 -4
%k1=bitcast i8*%k0 to i32*
store i32 1342177288,i32*%k1,align 4
%k2=load i8*,i8**%g,align 8
%k3=bitcast i8*%kZ to i8**
store i8*%k2,i8**%k3,align 8
%k4=getelementptr inbounds i8,i8*%kZ,i64 8
%k5=bitcast i8*%k4 to i32*
store i32 1,i32*%k5,align 4
br label%lE
k6:
%k7=call i8*@sml_alloc(i32 inreg 12)#0
%k8=getelementptr inbounds i8,i8*%k7,i64 -4
%k9=bitcast i8*%k8 to i32*
store i32 1342177288,i32*%k9,align 4
store i8*%k7,i8**%h,align 8
%la=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%lb=bitcast i8*%k7 to i8**
store i8*%la,i8**%lb,align 8
%lc=getelementptr inbounds i8,i8*%k7,i64 8
%ld=bitcast i8*%lc to i32*
store i32 1,i32*%ld,align 4
%le=call i8*@sml_alloc(i32 inreg 28)#0
%lf=getelementptr inbounds i8,i8*%le,i64 -4
%lg=bitcast i8*%lf to i32*
store i32 1342177304,i32*%lg,align 4
store i8*%le,i8**%g,align 8
%lh=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%li=bitcast i8*%le to i8**
store i8*%lh,i8**%li,align 8
%lj=getelementptr inbounds i8,i8*%le,i64 8
%lk=bitcast i8*%lj to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL11writeArrNB_G_143 to void(...)*),void(...)**%lk,align 8
%ll=getelementptr inbounds i8,i8*%le,i64 16
%lm=bitcast i8*%ll to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL11writeArrNB_G_143 to void(...)*),void(...)**%lm,align 8
%ln=getelementptr inbounds i8,i8*%le,i64 24
%lo=bitcast i8*%ln to i32*
store i32 -2147483647,i32*%lo,align 4
%lp=call i8*@sml_alloc(i32 inreg 12)#0
%lq=getelementptr inbounds i8,i8*%lp,i64 -4
%lr=bitcast i8*%lq to i32*
store i32 1342177288,i32*%lr,align 4
%ls=load i8*,i8**%g,align 8
%lt=bitcast i8*%lp to i8**
store i8*%ls,i8**%lt,align 8
%lu=getelementptr inbounds i8,i8*%lp,i64 8
%lv=bitcast i8*%lu to i32*
store i32 1,i32*%lv,align 4
br label%lE
lw:
%lx=call i8*@sml_alloc(i32 inreg 12)#0
%ly=getelementptr inbounds i8,i8*%lx,i64 -4
%lz=bitcast i8*%ly to i32*
store i32 1342177288,i32*%lz,align 4
%lA=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%lB=bitcast i8*%lx to i8**
store i8*%lA,i8**%lB,align 8
%lC=getelementptr inbounds i8,i8*%lx,i64 8
%lD=bitcast i8*%lC to i32*
store i32 1,i32*%lD,align 4
br label%lE
lE:
%lF=phi i8*[%lx,%lw],[%lp,%k6],[%kZ,%kG],[%j3,%js],[null,%jd],[null,%iL]
store i8*%lF,i8**%g,align 8
%lG=bitcast i8**%i to i8***
%lH=load i8**,i8***%lG,align 8
%lI=load i8*,i8**%lH,align 8
store i8*%lI,i8**%h,align 8
%lJ=getelementptr inbounds i8*,i8**%lH,i64 1
%lK=load i8*,i8**%lJ,align 8
store i8*%lK,i8**%j,align 8
%lL=getelementptr inbounds i8*,i8**%lH,i64 2
%lM=bitcast i8**%lL to i32*
%lN=load i32,i32*%lM,align 4
%lO=getelementptr inbounds i8*,i8**%lH,i64 3
%lP=load i8*,i8**%lO,align 8
store i8*%lP,i8**%k,align 8
%lQ=getelementptr inbounds i8*,i8**%lH,i64 4
%lR=load i8*,i8**%lQ,align 8
store i8*%lR,i8**%l,align 8
%lS=getelementptr inbounds i8*,i8**%lH,i64 5
%lT=load i8*,i8**%lS,align 8
store i8*%lT,i8**%m,align 8
%lU=getelementptr inbounds i8*,i8**%lH,i64 6
%lV=load i8*,i8**%lU,align 8
store i8*%lV,i8**%n,align 8
%lW=getelementptr inbounds i8*,i8**%lH,i64 7
%lX=load i8*,i8**%lW,align 8
store i8*%lX,i8**%o,align 8
%lY=getelementptr inbounds i8*,i8**%lH,i64 8
%lZ=load i8*,i8**%lY,align 8
store i8*%lZ,i8**%p,align 8
%l0=getelementptr inbounds i8*,i8**%lH,i64 9
%l1=load i8*,i8**%l0,align 8
store i8*%l1,i8**%i,align 8
%l2=call i8*@sml_alloc(i32 inreg 116)#0
%l3=getelementptr inbounds i8,i8*%l2,i64 -4
%l4=bitcast i8*%l3 to i32*
store i32 1342177392,i32*%l4,align 4
%l5=getelementptr inbounds i8,i8*%l2,i64 20
%l6=bitcast i8*%l5 to i32*
store i32 0,i32*%l6,align 1
%l7=load i8*,i8**%h,align 8
%l8=bitcast i8*%l2 to i8**
store i8*%l7,i8**%l8,align 8
%l9=load i8*,i8**%j,align 8
%ma=getelementptr inbounds i8,i8*%l2,i64 8
%mb=bitcast i8*%ma to i8**
store i8*%l9,i8**%mb,align 8
%mc=getelementptr inbounds i8,i8*%l2,i64 16
%md=bitcast i8*%mc to i32*
store i32%lN,i32*%md,align 4
%me=load i8*,i8**%k,align 8
%mf=getelementptr inbounds i8,i8*%l2,i64 24
%mg=bitcast i8*%mf to i8**
store i8*%me,i8**%mg,align 8
%mh=load i8*,i8**%l,align 8
%mi=getelementptr inbounds i8,i8*%l2,i64 32
%mj=bitcast i8*%mi to i8**
store i8*%mh,i8**%mj,align 8
%mk=load i8*,i8**%m,align 8
%ml=getelementptr inbounds i8,i8*%l2,i64 40
%mm=bitcast i8*%ml to i8**
store i8*%mk,i8**%mm,align 8
%mn=load i8*,i8**%n,align 8
%mo=getelementptr inbounds i8,i8*%l2,i64 48
%mp=bitcast i8*%mo to i8**
store i8*%mn,i8**%mp,align 8
%mq=load i8*,i8**%o,align 8
%mr=getelementptr inbounds i8,i8*%l2,i64 56
%ms=bitcast i8*%mr to i8**
store i8*%mq,i8**%ms,align 8
%mt=load i8*,i8**%p,align 8
%mu=getelementptr inbounds i8,i8*%l2,i64 64
%mv=bitcast i8*%mu to i8**
store i8*%mt,i8**%mv,align 8
%mw=load i8*,i8**%i,align 8
%mx=getelementptr inbounds i8,i8*%l2,i64 72
%my=bitcast i8*%mx to i8**
store i8*%mw,i8**%my,align 8
%mz=load i8*,i8**%e,align 8
%mA=getelementptr inbounds i8,i8*%l2,i64 80
%mB=bitcast i8*%mA to i8**
store i8*%mz,i8**%mB,align 8
%mC=load i8*,i8**%g,align 8
%mD=getelementptr inbounds i8,i8*%l2,i64 88
%mE=bitcast i8*%mD to i8**
store i8*%mC,i8**%mE,align 8
%mF=load i8*,i8**%d,align 8
%mG=getelementptr inbounds i8,i8*%l2,i64 96
%mH=bitcast i8*%mG to i8**
store i8*%mF,i8**%mH,align 8
%mI=load i8*,i8**%f,align 8
%mJ=getelementptr inbounds i8,i8*%l2,i64 104
%mK=bitcast i8*%mJ to i8**
store i8*%mI,i8**%mK,align 8
%mL=getelementptr inbounds i8,i8*%l2,i64 112
%mM=bitcast i8*%mL to i32*
store i32 16379,i32*%mM,align 4
ret i8*%l2
}
define internal fastcc i32@_SMLL5avail_148(i8*inreg%a,i32 inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
%e=bitcast i8*%a to i32**
%f=load i32*,i32**%e,align 8
%g=load i32,i32*%f,align 4
%h=getelementptr inbounds i8,i8*%a,i64 8
%i=bitcast i8*%h to i32*
%j=load i32,i32*%i,align 4
%k=call{i32,i1}@llvm.ssub.with.overflow.i32(i32%j,i32%g)#0
%l=extractvalue{i32,i1}%k,1
br i1%l,label%m,label%E
m:
%n=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%n,i8**%c,align 8
%o=call i8*@sml_alloc(i32 inreg 20)#0
%p=getelementptr inbounds i8,i8*%o,i64 -4
%q=bitcast i8*%p to i32*
store i32 1342177296,i32*%q,align 4
store i8*%o,i8**%d,align 8
%r=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%s=bitcast i8*%o to i8**
store i8*%r,i8**%s,align 8
%t=getelementptr inbounds i8,i8*%o,i64 8
%u=bitcast i8*%t to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[49x i8]}>,<{[4x i8],i32,[49x i8]}>*@c,i64 0,i32 2,i64 0),i8**%u,align 8
%v=getelementptr inbounds i8,i8*%o,i64 16
%w=bitcast i8*%v to i32*
store i32 3,i32*%w,align 4
%x=call i8*@sml_alloc(i32 inreg 60)#0
%y=getelementptr inbounds i8,i8*%x,i64 -4
%z=bitcast i8*%y to i32*
store i32 1342177336,i32*%z,align 4
%A=getelementptr inbounds i8,i8*%x,i64 56
%B=bitcast i8*%A to i32*
store i32 1,i32*%B,align 4
%C=load i8*,i8**%d,align 8
%D=bitcast i8*%x to i8**
store i8*%C,i8**%D,align 8
call void@sml_raise(i8*inreg%x)#1
unreachable
E:
%F=sub nsw i32%j,%g
ret i32%F
}
define internal fastcc i8*@_SMLL5readV_152(i8*inreg%a,i32 inreg%b)#2 gc"smlsharp"{
k:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%c,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%i,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%c,align 8
br label%i
i:
%j=phi i8*[%h,%g],[%a,%k]
%l=getelementptr inbounds i8,i8*%j,i64 8
%m=bitcast i8*%l to i32**
%n=load i32*,i32**%m,align 8
%o=load i32,i32*%n,align 4
%p=getelementptr inbounds i8,i8*%j,i64 24
%q=bitcast i8*%p to i32*
%r=load i32,i32*%q,align 4
%s=call{i32,i1}@llvm.ssub.with.overflow.i32(i32%r,i32%o)#0
%t=extractvalue{i32,i1}%s,1
br i1%t,label%u,label%M
u:
%v=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%v,i8**%c,align 8
%w=call i8*@sml_alloc(i32 inreg 20)#0
%x=getelementptr inbounds i8,i8*%w,i64 -4
%y=bitcast i8*%x to i32*
store i32 1342177296,i32*%y,align 4
store i8*%w,i8**%d,align 8
%z=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%A=bitcast i8*%w to i8**
store i8*%z,i8**%A,align 8
%B=getelementptr inbounds i8,i8*%w,i64 8
%C=bitcast i8*%B to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[49x i8]}>,<{[4x i8],i32,[49x i8]}>*@d,i64 0,i32 2,i64 0),i8**%C,align 8
%D=getelementptr inbounds i8,i8*%w,i64 16
%E=bitcast i8*%D to i32*
store i32 3,i32*%E,align 4
%F=call i8*@sml_alloc(i32 inreg 60)#0
%G=getelementptr inbounds i8,i8*%F,i64 -4
%H=bitcast i8*%G to i32*
store i32 1342177336,i32*%H,align 4
%I=getelementptr inbounds i8,i8*%F,i64 56
%J=bitcast i8*%I to i32*
store i32 1,i32*%J,align 4
%K=load i8*,i8**%d,align 8
%L=bitcast i8*%F to i8**
store i8*%K,i8**%L,align 8
call void@sml_raise(i8*inreg%F)#1
unreachable
M:
%N=sub nsw i32%r,%o
%O=call i8*@sml_alloc(i32 inreg 12)#0
%P=bitcast i8*%O to i32*
%Q=getelementptr inbounds i8,i8*%O,i64 -4
%R=bitcast i8*%Q to i32*
store i32 1342177288,i32*%R,align 4
store i32%b,i32*%P,align 4
%S=getelementptr inbounds i8,i8*%O,i64 4
%T=bitcast i8*%S to i32*
store i32%N,i32*%T,align 4
%U=getelementptr inbounds i8,i8*%O,i64 8
%V=bitcast i8*%U to i32*
store i32 0,i32*%V,align 4
%W=call fastcc i32@_SMLFN5Int323minE(i8*inreg%O)
%X=load i8*,i8**%c,align 8
%Y=getelementptr inbounds i8,i8*%X,i64 16
%Z=bitcast i8*%Y to i32**
%aa=load i32*,i32**%Z,align 8
%ab=load i32,i32*%aa,align 4
%ac=icmp eq i32%ab,0
br i1%ac,label%av,label%ad
ad:
%ae=load i8*,i8**@_SMLZN2IO12ClosedStreamE,align 8
store i8*%ae,i8**%c,align 8
%af=call i8*@sml_alloc(i32 inreg 20)#0
%ag=getelementptr inbounds i8,i8*%af,i64 -4
%ah=bitcast i8*%ag to i32*
store i32 1342177296,i32*%ah,align 4
store i8*%af,i8**%d,align 8
%ai=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aj=bitcast i8*%af to i8**
store i8*%ai,i8**%aj,align 8
%ak=getelementptr inbounds i8,i8*%af,i64 8
%al=bitcast i8*%ak to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[49x i8]}>,<{[4x i8],i32,[49x i8]}>*@h,i64 0,i32 2,i64 0),i8**%al,align 8
%am=getelementptr inbounds i8,i8*%af,i64 16
%an=bitcast i8*%am to i32*
store i32 3,i32*%an,align 4
%ao=call i8*@sml_alloc(i32 inreg 60)#0
%ap=getelementptr inbounds i8,i8*%ao,i64 -4
%aq=bitcast i8*%ap to i32*
store i32 1342177336,i32*%aq,align 4
%ar=getelementptr inbounds i8,i8*%ao,i64 56
%as=bitcast i8*%ar to i32*
store i32 1,i32*%as,align 4
%at=load i8*,i8**%d,align 8
%au=bitcast i8*%ao to i8**
store i8*%at,i8**%au,align 8
call void@sml_raise(i8*inreg%ao)#1
unreachable
av:
%aw=call{i32,i1}@llvm.sadd.with.overflow.i32(i32%o,i32%W)#0
%ax=extractvalue{i32,i1}%aw,1
br i1%ax,label%ay,label%aQ
ay:
%az=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%az,i8**%c,align 8
%aA=call i8*@sml_alloc(i32 inreg 20)#0
%aB=getelementptr inbounds i8,i8*%aA,i64 -4
%aC=bitcast i8*%aB to i32*
store i32 1342177296,i32*%aC,align 4
store i8*%aA,i8**%d,align 8
%aD=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aE=bitcast i8*%aA to i8**
store i8*%aD,i8**%aE,align 8
%aF=getelementptr inbounds i8,i8*%aA,i64 8
%aG=bitcast i8*%aF to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[49x i8]}>,<{[4x i8],i32,[49x i8]}>*@e,i64 0,i32 2,i64 0),i8**%aG,align 8
%aH=getelementptr inbounds i8,i8*%aA,i64 16
%aI=bitcast i8*%aH to i32*
store i32 3,i32*%aI,align 4
%aJ=call i8*@sml_alloc(i32 inreg 60)#0
%aK=getelementptr inbounds i8,i8*%aJ,i64 -4
%aL=bitcast i8*%aK to i32*
store i32 1342177336,i32*%aL,align 4
%aM=getelementptr inbounds i8,i8*%aJ,i64 56
%aN=bitcast i8*%aM to i32*
store i32 1,i32*%aN,align 4
%aO=load i8*,i8**%d,align 8
%aP=bitcast i8*%aJ to i8**
store i8*%aO,i8**%aP,align 8
call void@sml_raise(i8*inreg%aJ)#1
unreachable
aQ:
%aR=add nsw i32%W,%o
%aS=getelementptr inbounds i8,i8*%X,i64 8
%aT=bitcast i8*%aS to i32**
%aU=load i32*,i32**%aT,align 8
store i32%aR,i32*%aU,align 4
%aV=bitcast i8**%c to i8***
%aW=load i8**,i8***%aV,align 8
%aX=load i8*,i8**%aW,align 8
store i8*%aX,i8**%c,align 8
%aY=call i8*@sml_alloc(i32 inreg 12)#0
%aZ=getelementptr inbounds i8,i8*%aY,i64 -4
%a0=bitcast i8*%aZ to i32*
store i32 1342177288,i32*%a0,align 4
store i8*%aY,i8**%d,align 8
%a1=getelementptr inbounds i8,i8*%aY,i64 4
%a2=bitcast i8*%a1 to i32*
store i32 0,i32*%a2,align 1
%a3=bitcast i8*%aY to i32*
store i32%W,i32*%a3,align 4
%a4=getelementptr inbounds i8,i8*%aY,i64 8
%a5=bitcast i8*%a4 to i32*
store i32 0,i32*%a5,align 4
%a6=call i8*@sml_alloc(i32 inreg 28)#0
%a7=getelementptr inbounds i8,i8*%a6,i64 -4
%a8=bitcast i8*%a7 to i32*
store i32 1342177304,i32*%a8,align 4
%a9=getelementptr inbounds i8,i8*%a6,i64 12
%ba=bitcast i8*%a9 to i32*
store i32 0,i32*%ba,align 1
%bb=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bc=bitcast i8*%a6 to i8**
store i8*%bb,i8**%bc,align 8
%bd=getelementptr inbounds i8,i8*%a6,i64 8
%be=bitcast i8*%bd to i32*
store i32%o,i32*%be,align 4
%bf=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%bg=getelementptr inbounds i8,i8*%a6,i64 16
%bh=bitcast i8*%bg to i8**
store i8*%bf,i8**%bh,align 8
%bi=getelementptr inbounds i8,i8*%a6,i64 24
%bj=bitcast i8*%bi to i32*
store i32 5,i32*%bj,align 4
%bk=call fastcc i8*@_SMLFN15CharVectorSlice5sliceE(i8*inreg%a6)
%bl=tail call fastcc i8*@_SMLFN15CharVectorSlice6vectorE(i8*inreg%bk)
ret i8*%bl
}
define internal fastcc i32@_SMLL5readA_156(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
m:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%d,align 8
store i8*%b,i8**%c,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%k,label%h
h:
call void@sml_check(i32 inreg%f)
%i=load i8*,i8**%c,align 8
%j=load i8*,i8**%d,align 8
br label%k
k:
%l=phi i8*[%j,%h],[%a,%m]
%n=phi i8*[%i,%h],[%b,%m]
store i8*null,i8**%c,align 8
%o=getelementptr inbounds i8,i8*%l,i64 8
%p=bitcast i8*%o to i32**
%q=load i32*,i32**%p,align 8
%r=load i32,i32*%q,align 4
%s=call fastcc i8*@_SMLFN14CharArraySlice4baseE(i8*inreg%n)
%t=bitcast i8*%s to i8**
%u=load i8*,i8**%t,align 8
store i8*%u,i8**%c,align 8
%v=getelementptr inbounds i8,i8*%s,i64 8
%w=bitcast i8*%v to i32*
%x=load i32,i32*%w,align 4
%y=load i8*,i8**%d,align 8
%z=getelementptr inbounds i8,i8*%y,i64 24
%A=bitcast i8*%z to i32*
%B=load i32,i32*%A,align 4
%C=call{i32,i1}@llvm.ssub.with.overflow.i32(i32%B,i32%r)#0
%D=extractvalue{i32,i1}%C,1
br i1%D,label%E,label%W
E:
store i8*null,i8**%d,align 8
%F=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%F,i8**%c,align 8
%G=call i8*@sml_alloc(i32 inreg 20)#0
%H=getelementptr inbounds i8,i8*%G,i64 -4
%I=bitcast i8*%H to i32*
store i32 1342177296,i32*%I,align 4
store i8*%G,i8**%d,align 8
%J=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%K=bitcast i8*%G to i8**
store i8*%J,i8**%K,align 8
%L=getelementptr inbounds i8,i8*%G,i64 8
%M=bitcast i8*%L to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[49x i8]}>,<{[4x i8],i32,[49x i8]}>*@f,i64 0,i32 2,i64 0),i8**%M,align 8
%N=getelementptr inbounds i8,i8*%G,i64 16
%O=bitcast i8*%N to i32*
store i32 3,i32*%O,align 4
%P=call i8*@sml_alloc(i32 inreg 60)#0
%Q=getelementptr inbounds i8,i8*%P,i64 -4
%R=bitcast i8*%Q to i32*
store i32 1342177336,i32*%R,align 4
%S=getelementptr inbounds i8,i8*%P,i64 56
%T=bitcast i8*%S to i32*
store i32 1,i32*%T,align 4
%U=load i8*,i8**%d,align 8
%V=bitcast i8*%P to i8**
store i8*%U,i8**%V,align 8
call void@sml_raise(i8*inreg%P)#1
unreachable
W:
%X=getelementptr inbounds i8,i8*%s,i64 12
%Y=bitcast i8*%X to i32*
%Z=load i32,i32*%Y,align 4
%aa=sub nsw i32%B,%r
%ab=call i8*@sml_alloc(i32 inreg 12)#0
%ac=bitcast i8*%ab to i32*
%ad=getelementptr inbounds i8,i8*%ab,i64 -4
%ae=bitcast i8*%ad to i32*
store i32 1342177288,i32*%ae,align 4
store i32%Z,i32*%ac,align 4
%af=getelementptr inbounds i8,i8*%ab,i64 4
%ag=bitcast i8*%af to i32*
store i32%aa,i32*%ag,align 4
%ah=getelementptr inbounds i8,i8*%ab,i64 8
%ai=bitcast i8*%ah to i32*
store i32 0,i32*%ai,align 4
%aj=call fastcc i32@_SMLFN5Int323minE(i8*inreg%ab)
%ak=load i8*,i8**%d,align 8
%al=getelementptr inbounds i8,i8*%ak,i64 16
%am=bitcast i8*%al to i32**
%an=load i32*,i32**%am,align 8
%ao=load i32,i32*%an,align 4
%ap=icmp eq i32%ao,0
br i1%ap,label%aI,label%aq
aq:
store i8*null,i8**%d,align 8
%ar=load i8*,i8**@_SMLZN2IO12ClosedStreamE,align 8
store i8*%ar,i8**%c,align 8
%as=call i8*@sml_alloc(i32 inreg 20)#0
%at=getelementptr inbounds i8,i8*%as,i64 -4
%au=bitcast i8*%at to i32*
store i32 1342177296,i32*%au,align 4
store i8*%as,i8**%d,align 8
%av=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aw=bitcast i8*%as to i8**
store i8*%av,i8**%aw,align 8
%ax=getelementptr inbounds i8,i8*%as,i64 8
%ay=bitcast i8*%ax to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[49x i8]}>,<{[4x i8],i32,[49x i8]}>*@h,i64 0,i32 2,i64 0),i8**%ay,align 8
%az=getelementptr inbounds i8,i8*%as,i64 16
%aA=bitcast i8*%az to i32*
store i32 3,i32*%aA,align 4
%aB=call i8*@sml_alloc(i32 inreg 60)#0
%aC=getelementptr inbounds i8,i8*%aB,i64 -4
%aD=bitcast i8*%aC to i32*
store i32 1342177336,i32*%aD,align 4
%aE=getelementptr inbounds i8,i8*%aB,i64 56
%aF=bitcast i8*%aE to i32*
store i32 1,i32*%aF,align 4
%aG=load i8*,i8**%d,align 8
%aH=bitcast i8*%aB to i8**
store i8*%aG,i8**%aH,align 8
call void@sml_raise(i8*inreg%aB)#1
unreachable
aI:
%aJ=call{i32,i1}@llvm.sadd.with.overflow.i32(i32%r,i32%aj)#0
%aK=extractvalue{i32,i1}%aJ,1
br i1%aK,label%aL,label%a3
aL:
store i8*null,i8**%d,align 8
%aM=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%aM,i8**%c,align 8
%aN=call i8*@sml_alloc(i32 inreg 20)#0
%aO=getelementptr inbounds i8,i8*%aN,i64 -4
%aP=bitcast i8*%aO to i32*
store i32 1342177296,i32*%aP,align 4
store i8*%aN,i8**%d,align 8
%aQ=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aR=bitcast i8*%aN to i8**
store i8*%aQ,i8**%aR,align 8
%aS=getelementptr inbounds i8,i8*%aN,i64 8
%aT=bitcast i8*%aS to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[49x i8]}>,<{[4x i8],i32,[49x i8]}>*@g,i64 0,i32 2,i64 0),i8**%aT,align 8
%aU=getelementptr inbounds i8,i8*%aN,i64 16
%aV=bitcast i8*%aU to i32*
store i32 3,i32*%aV,align 4
%aW=call i8*@sml_alloc(i32 inreg 60)#0
%aX=getelementptr inbounds i8,i8*%aW,i64 -4
%aY=bitcast i8*%aX to i32*
store i32 1342177336,i32*%aY,align 4
%aZ=getelementptr inbounds i8,i8*%aW,i64 56
%a0=bitcast i8*%aZ to i32*
store i32 1,i32*%a0,align 4
%a1=load i8*,i8**%d,align 8
%a2=bitcast i8*%aW to i8**
store i8*%a1,i8**%a2,align 8
call void@sml_raise(i8*inreg%aW)#1
unreachable
a3:
%a4=add nsw i32%aj,%r
%a5=getelementptr inbounds i8,i8*%ak,i64 8
%a6=bitcast i8*%a5 to i32**
%a7=load i32*,i32**%a6,align 8
store i32%a4,i32*%a7,align 4
%a8=bitcast i8**%d to i8***
%a9=load i8**,i8***%a8,align 8
%ba=load i8*,i8**%a9,align 8
store i8*%ba,i8**%d,align 8
%bb=call i8*@sml_alloc(i32 inreg 12)#0
%bc=getelementptr inbounds i8,i8*%bb,i64 -4
%bd=bitcast i8*%bc to i32*
store i32 1342177288,i32*%bd,align 4
store i8*%bb,i8**%e,align 8
%be=getelementptr inbounds i8,i8*%bb,i64 4
%bf=bitcast i8*%be to i32*
store i32 0,i32*%bf,align 1
%bg=bitcast i8*%bb to i32*
store i32%aj,i32*%bg,align 4
%bh=getelementptr inbounds i8,i8*%bb,i64 8
%bi=bitcast i8*%bh to i32*
store i32 0,i32*%bi,align 4
%bj=call i8*@sml_alloc(i32 inreg 28)#0
%bk=getelementptr inbounds i8,i8*%bj,i64 -4
%bl=bitcast i8*%bk to i32*
store i32 1342177304,i32*%bl,align 4
%bm=getelementptr inbounds i8,i8*%bj,i64 12
%bn=bitcast i8*%bm to i32*
store i32 0,i32*%bn,align 1
%bo=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%bp=bitcast i8*%bj to i8**
store i8*%bo,i8**%bp,align 8
%bq=getelementptr inbounds i8,i8*%bj,i64 8
%br=bitcast i8*%bq to i32*
store i32%r,i32*%br,align 4
%bs=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%bt=getelementptr inbounds i8,i8*%bj,i64 16
%bu=bitcast i8*%bt to i8**
store i8*%bs,i8**%bu,align 8
%bv=getelementptr inbounds i8,i8*%bj,i64 24
%bw=bitcast i8*%bv to i32*
store i32 5,i32*%bw,align 4
%bx=call fastcc i8*@_SMLFN15CharVectorSlice5sliceE(i8*inreg%bj)
store i8*%bx,i8**%d,align 8
%by=call i8*@sml_alloc(i32 inreg 28)#0
%bz=bitcast i8*%by to i32*
%bA=getelementptr inbounds i8,i8*%by,i64 -4
%bB=bitcast i8*%bA to i32*
store i32 1342177304,i32*%bB,align 4
%bC=getelementptr inbounds i8,i8*%by,i64 4
%bD=bitcast i8*%bC to i32*
store i32 0,i32*%bD,align 1
store i32%x,i32*%bz,align 4
%bE=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bF=getelementptr inbounds i8,i8*%by,i64 8
%bG=bitcast i8*%bF to i8**
store i8*%bE,i8**%bG,align 8
%bH=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%bI=getelementptr inbounds i8,i8*%by,i64 16
%bJ=bitcast i8*%bI to i8**
store i8*%bH,i8**%bJ,align 8
%bK=getelementptr inbounds i8,i8*%by,i64 24
%bL=bitcast i8*%bK to i32*
store i32 6,i32*%bL,align 4
call fastcc void@_SMLFN14CharArraySlice7copyVecE(i8*inreg%by)
ret i32%aj
}
define internal fastcc i32@_SMLL7checked_158(i8*inreg%a,i32 inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
%e=bitcast i8*%a to i32**
%f=load i32*,i32**%e,align 8
%g=load i32,i32*%f,align 4
%h=icmp eq i32%g,0
br i1%h,label%A,label%i
i:
%j=load i8*,i8**@_SMLZN2IO12ClosedStreamE,align 8
store i8*%j,i8**%c,align 8
%k=call i8*@sml_alloc(i32 inreg 20)#0
%l=getelementptr inbounds i8,i8*%k,i64 -4
%m=bitcast i8*%l to i32*
store i32 1342177296,i32*%m,align 4
store i8*%k,i8**%d,align 8
%n=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%o=bitcast i8*%k to i8**
store i8*%n,i8**%o,align 8
%p=getelementptr inbounds i8,i8*%k,i64 8
%q=bitcast i8*%p to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[49x i8]}>,<{[4x i8],i32,[49x i8]}>*@h,i64 0,i32 2,i64 0),i8**%q,align 8
%r=getelementptr inbounds i8,i8*%k,i64 16
%s=bitcast i8*%r to i32*
store i32 3,i32*%s,align 4
%t=call i8*@sml_alloc(i32 inreg 60)#0
%u=getelementptr inbounds i8,i8*%t,i64 -4
%v=bitcast i8*%u to i32*
store i32 1342177336,i32*%v,align 4
%w=getelementptr inbounds i8,i8*%t,i64 56
%x=bitcast i8*%w to i32*
store i32 1,i32*%x,align 4
%y=load i8*,i8**%d,align 8
%z=bitcast i8*%t to i8**
store i8*%y,i8**%z,align 8
call void@sml_raise(i8*inreg%t)#1
unreachable
A:
%B=getelementptr inbounds i8,i8*%a,i64 8
%C=bitcast i8*%B to i32*
%D=load i32,i32*%C,align 4
ret i32%D
}
define internal fastcc i8*@_SMLL7checked_159(i8*inreg%a,i32 inreg%b)#4 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
%e=bitcast i8*%a to i8**
%f=load i8*,i8**%e,align 8
store i8*%f,i8**%c,align 8
%g=call i8*@sml_alloc(i32 inreg 20)#0
%h=getelementptr inbounds i8,i8*%g,i64 -4
%i=bitcast i8*%h to i32*
store i32 1342177296,i32*%i,align 4
store i8*%g,i8**%d,align 8
%j=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%k=bitcast i8*%g to i8**
store i8*%j,i8**%k,align 8
%l=getelementptr inbounds i8,i8*%g,i64 8
%m=bitcast i8*%l to i32*
store i32%b,i32*%m,align 4
%n=getelementptr inbounds i8,i8*%g,i64 16
%o=bitcast i8*%n to i32*
store i32 1,i32*%o,align 4
%p=call i8*@sml_alloc(i32 inreg 28)#0
%q=getelementptr inbounds i8,i8*%p,i64 -4
%r=bitcast i8*%q to i32*
store i32 1342177304,i32*%r,align 4
%s=load i8*,i8**%d,align 8
%t=bitcast i8*%p to i8**
store i8*%s,i8**%t,align 8
%u=getelementptr inbounds i8,i8*%p,i64 8
%v=bitcast i8*%u to void(...)**
store void(...)*bitcast(i32(i8*,i32)*@_SMLL7checked_158 to void(...)*),void(...)**%v,align 8
%w=getelementptr inbounds i8,i8*%p,i64 16
%x=bitcast i8*%w to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL7checked_237 to void(...)*),void(...)**%x,align 8
%y=getelementptr inbounds i8,i8*%p,i64 24
%z=bitcast i8*%y to i32*
store i32 -2147483647,i32*%z,align 4
ret i8*%p
}
define internal fastcc i8*@_SMLLN10TextPrimIO10openVectorE_162(i8*inreg%a,i32 inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%d,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%g,label%i
g:
%h=bitcast i8*%a to i8**
br label%l
i:
call void@sml_check(i32 inreg%e)
%j=bitcast i8**%d to i8***
%k=load i8**,i8***%j,align 8
br label%l
l:
%m=phi i8**[%k,%i],[%h,%g]
store i8*null,i8**%d,align 8
%n=load i8*,i8**%m,align 8
%o=call fastcc i8*@_SMLL5readV_152(i8*inreg%n,i32 inreg%b)
%p=bitcast i8**%c to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%p)
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%o,i8**%c,align 8
%q=call i8*@sml_alloc(i32 inreg 12)#0
%r=getelementptr inbounds i8,i8*%q,i64 -4
%s=bitcast i8*%r to i32*
store i32 1342177288,i32*%s,align 4
%t=load i8*,i8**%c,align 8
%u=bitcast i8*%q to i8**
store i8*%t,i8**%u,align 8
%v=getelementptr inbounds i8,i8*%q,i64 8
%w=bitcast i8*%v to i32*
store i32 1,i32*%w,align 4
call void@llvm.lifetime.end.p0i8(i64 8,i8*%p)
ret i8*%q
}
define internal fastcc i8*@_SMLLN10TextPrimIO10openVectorE_165(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%c,align 8
store i8*%b,i8**%d,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%g,label%i
g:
%h=bitcast i8*%a to i8**
br label%m
i:
call void@sml_check(i32 inreg%e)
%j=load i8*,i8**%d,align 8
%k=bitcast i8**%c to i8***
%l=load i8**,i8***%k,align 8
br label%m
m:
%n=phi i8**[%l,%i],[%h,%g]
%o=phi i8*[%j,%i],[%b,%g]
store i8*null,i8**%d,align 8
store i8*null,i8**%c,align 8
%p=load i8*,i8**%n,align 8
%q=call fastcc i32@_SMLL5readA_156(i8*inreg%p,i8*inreg%o)
%r=tail call i8*@sml_alloc(i32 inreg 12)#0
%s=bitcast i8*%r to i32*
%t=getelementptr inbounds i8,i8*%r,i64 -4
%u=bitcast i8*%t to i32*
store i32 1342177288,i32*%u,align 4
%v=getelementptr inbounds i8,i8*%r,i64 4
%w=bitcast i8*%v to i32*
store i32 0,i32*%w,align 1
store i32%q,i32*%s,align 4
%x=getelementptr inbounds i8,i8*%r,i64 8
%y=bitcast i8*%x to i32*
store i32 0,i32*%y,align 4
ret i8*%r
}
define internal fastcc i8*@_SMLLN10TextPrimIO10openVectorE_168(i8*inreg%a,i32 inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%c,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%f,label%h
f:
%g=bitcast i8*%a to i8**
br label%k
h:
call void@sml_check(i32 inreg%d)
%i=bitcast i8**%c to i8***
%j=load i8**,i8***%i,align 8
br label%k
k:
%l=phi i8**[%j,%h],[%g,%f]
store i8*null,i8**%c,align 8
%m=load i8*,i8**%l,align 8
%n=call fastcc i32@_SMLL5avail_148(i8*inreg%m,i32 inreg%b)
%o=tail call i8*@sml_alloc(i32 inreg 12)#0
%p=bitcast i8*%o to i32*
%q=getelementptr inbounds i8,i8*%o,i64 -4
%r=bitcast i8*%q to i32*
store i32 1342177288,i32*%r,align 4
%s=getelementptr inbounds i8,i8*%o,i64 4
%t=bitcast i8*%s to i32*
store i32 0,i32*%t,align 1
store i32%n,i32*%p,align 4
%u=getelementptr inbounds i8,i8*%o,i64 8
%v=bitcast i8*%u to i32*
store i32 0,i32*%v,align 4
ret i8*%o
}
define internal fastcc void@_SMLLN10TextPrimIO10openVectorE_170(i8*inreg%a,i32 inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
%e=bitcast i8*%a to i32**
%f=load i32*,i32**%e,align 8
%g=load i32,i32*%f,align 4
%h=icmp eq i32%g,0
br i1%h,label%A,label%i
i:
%j=load i8*,i8**@_SMLZN2IO12ClosedStreamE,align 8
store i8*%j,i8**%c,align 8
%k=call i8*@sml_alloc(i32 inreg 20)#0
%l=getelementptr inbounds i8,i8*%k,i64 -4
%m=bitcast i8*%l to i32*
store i32 1342177296,i32*%m,align 4
store i8*%k,i8**%d,align 8
%n=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%o=bitcast i8*%k to i8**
store i8*%n,i8**%o,align 8
%p=getelementptr inbounds i8,i8*%k,i64 8
%q=bitcast i8*%p to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[49x i8]}>,<{[4x i8],i32,[49x i8]}>*@h,i64 0,i32 2,i64 0),i8**%q,align 8
%r=getelementptr inbounds i8,i8*%k,i64 16
%s=bitcast i8*%r to i32*
store i32 3,i32*%s,align 4
%t=call i8*@sml_alloc(i32 inreg 60)#0
%u=getelementptr inbounds i8,i8*%t,i64 -4
%v=bitcast i8*%u to i32*
store i32 1342177336,i32*%v,align 4
%w=getelementptr inbounds i8,i8*%t,i64 56
%x=bitcast i8*%w to i32*
store i32 1,i32*%x,align 4
%y=load i8*,i8**%d,align 8
%z=bitcast i8*%t to i8**
store i8*%y,i8**%z,align 8
call void@sml_raise(i8*inreg%t)#1
unreachable
A:
ret void
}
define internal fastcc void@_SMLLN10TextPrimIO10openVectorE_171(i8*inreg%a,i32 inreg%b)#4 gc"smlsharp"{
%c=bitcast i8*%a to i32**
%d=load i32*,i32**%c,align 8
store i32 1,i32*%d,align 4
ret void
}
define fastcc i8*@_SMLFN10TextPrimIO10openVectorE(i8*inreg%a)#2 gc"smlsharp"{
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
%h=alloca i8*,align 8
%i=alloca i8*,align 8
%j=alloca i8*,align 8
%k=alloca i8*,align 8
%l=alloca i8*,align 8
%m=alloca i8*,align 8
%n=alloca i8*,align 8
%o=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
call void@llvm.gcroot(i8**%h,i8*null)#0
call void@llvm.gcroot(i8**%i,i8*null)#0
call void@llvm.gcroot(i8**%j,i8*null)#0
call void@llvm.gcroot(i8**%k,i8*null)#0
call void@llvm.gcroot(i8**%l,i8*null)#0
call void@llvm.gcroot(i8**%m,i8*null)#0
call void@llvm.gcroot(i8**%n,i8*null)#0
call void@llvm.gcroot(i8**%o,i8*null)#0
store i8*%a,i8**%b,align 8
%p=load atomic i32,i32*@sml_check_flag unordered,align 4
%q=icmp eq i32%p,0
br i1%q,label%s,label%r
r:
call void@sml_check(i32 inreg%p)
br label%s
s:
%t=call i8*@sml_alloc(i32 inreg 4)#0
%u=bitcast i8*%t to i32*
%v=getelementptr inbounds i8,i8*%t,i64 -4
%w=bitcast i8*%v to i32*
store i32 536870916,i32*%w,align 4
store i8*%t,i8**%c,align 8
store i32 0,i32*%u,align 4
%x=call i8*@sml_alloc(i32 inreg 4)#0
%y=bitcast i8*%x to i32*
%z=getelementptr inbounds i8,i8*%x,i64 -4
%A=bitcast i8*%z to i32*
store i32 536870916,i32*%A,align 4
store i8*%x,i8**%d,align 8
store i32 0,i32*%y,align 4
%B=bitcast i8**%b to i32**
%C=load i32*,i32**%B,align 8
%D=getelementptr inbounds i32,i32*%C,i64 -1
%E=load i32,i32*%D,align 4
%F=and i32%E,268435455
%G=add nsw i32%F,-1
%H=call i8*@sml_alloc(i32 inreg 20)#0
%I=getelementptr inbounds i8,i8*%H,i64 -4
%J=bitcast i8*%I to i32*
store i32 1342177296,i32*%J,align 4
store i8*%H,i8**%e,align 8
%K=load i8*,i8**%c,align 8
%L=bitcast i8*%H to i8**
store i8*%K,i8**%L,align 8
%M=getelementptr inbounds i8,i8*%H,i64 8
%N=bitcast i8*%M to i32*
store i32%G,i32*%N,align 4
%O=getelementptr inbounds i8,i8*%H,i64 16
%P=bitcast i8*%O to i32*
store i32 1,i32*%P,align 4
%Q=call i8*@sml_alloc(i32 inreg 28)#0
%R=getelementptr inbounds i8,i8*%Q,i64 -4
%S=bitcast i8*%R to i32*
store i32 1342177304,i32*%S,align 4
%T=load i8*,i8**%e,align 8
%U=bitcast i8*%Q to i8**
store i8*%T,i8**%U,align 8
%V=getelementptr inbounds i8,i8*%Q,i64 8
%W=bitcast i8*%V to void(...)**
store void(...)*bitcast(i32(i8*,i32)*@_SMLL5avail_148 to void(...)*),void(...)**%W,align 8
%X=getelementptr inbounds i8,i8*%Q,i64 16
%Y=bitcast i8*%X to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL5avail_234 to void(...)*),void(...)**%Y,align 8
%Z=getelementptr inbounds i8,i8*%Q,i64 24
%aa=bitcast i8*%Z to i32*
store i32 -2147483647,i32*%aa,align 4
%ab=call i8*@sml_alloc(i32 inreg 36)#0
%ac=getelementptr inbounds i8,i8*%ab,i64 -4
%ad=bitcast i8*%ac to i32*
store i32 1342177312,i32*%ad,align 4
store i8*%ab,i8**%f,align 8
%ae=load i8*,i8**%b,align 8
%af=bitcast i8*%ab to i8**
store i8*%ae,i8**%af,align 8
%ag=load i8*,i8**%c,align 8
%ah=getelementptr inbounds i8,i8*%ab,i64 8
%ai=bitcast i8*%ah to i8**
store i8*%ag,i8**%ai,align 8
%aj=load i8*,i8**%d,align 8
%ak=getelementptr inbounds i8,i8*%ab,i64 16
%al=bitcast i8*%ak to i8**
store i8*%aj,i8**%al,align 8
%am=getelementptr inbounds i8,i8*%ab,i64 24
%an=bitcast i8*%am to i32*
store i32%G,i32*%an,align 4
%ao=getelementptr inbounds i8,i8*%ab,i64 32
%ap=bitcast i8*%ao to i32*
store i32 7,i32*%ap,align 4
%aq=call i8*@sml_alloc(i32 inreg 28)#0
%ar=getelementptr inbounds i8,i8*%aq,i64 -4
%as=bitcast i8*%ar to i32*
store i32 1342177304,i32*%as,align 4
store i8*%aq,i8**%g,align 8
%at=load i8*,i8**%f,align 8
%au=bitcast i8*%aq to i8**
store i8*%at,i8**%au,align 8
%av=getelementptr inbounds i8,i8*%aq,i64 8
%aw=bitcast i8*%av to void(...)**
store void(...)*bitcast(i8*(i8*,i32)*@_SMLL5readV_152 to void(...)*),void(...)**%aw,align 8
%ax=getelementptr inbounds i8,i8*%aq,i64 16
%ay=bitcast i8*%ax to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL5readV_235 to void(...)*),void(...)**%ay,align 8
%az=getelementptr inbounds i8,i8*%aq,i64 24
%aA=bitcast i8*%az to i32*
store i32 -2147483647,i32*%aA,align 4
%aB=call i8*@sml_alloc(i32 inreg 36)#0
%aC=getelementptr inbounds i8,i8*%aB,i64 -4
%aD=bitcast i8*%aC to i32*
store i32 1342177312,i32*%aD,align 4
store i8*%aB,i8**%h,align 8
%aE=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aF=bitcast i8*%aB to i8**
store i8*%aE,i8**%aF,align 8
%aG=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aH=getelementptr inbounds i8,i8*%aB,i64 8
%aI=bitcast i8*%aH to i8**
store i8*%aG,i8**%aI,align 8
%aJ=load i8*,i8**%d,align 8
%aK=getelementptr inbounds i8,i8*%aB,i64 16
%aL=bitcast i8*%aK to i8**
store i8*%aJ,i8**%aL,align 8
%aM=getelementptr inbounds i8,i8*%aB,i64 24
%aN=bitcast i8*%aM to i32*
store i32%G,i32*%aN,align 4
%aO=getelementptr inbounds i8,i8*%aB,i64 32
%aP=bitcast i8*%aO to i32*
store i32 7,i32*%aP,align 4
%aQ=call i8*@sml_alloc(i32 inreg 28)#0
%aR=getelementptr inbounds i8,i8*%aQ,i64 -4
%aS=bitcast i8*%aR to i32*
store i32 1342177304,i32*%aS,align 4
store i8*%aQ,i8**%c,align 8
%aT=load i8*,i8**%h,align 8
%aU=bitcast i8*%aQ to i8**
store i8*%aT,i8**%aU,align 8
%aV=getelementptr inbounds i8,i8*%aQ,i64 8
%aW=bitcast i8*%aV to void(...)**
store void(...)*bitcast(i32(i8*,i8*)*@_SMLL5readA_156 to void(...)*),void(...)**%aW,align 8
%aX=getelementptr inbounds i8,i8*%aQ,i64 16
%aY=bitcast i8*%aX to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL5readA_236 to void(...)*),void(...)**%aY,align 8
%aZ=getelementptr inbounds i8,i8*%aQ,i64 24
%a0=bitcast i8*%aZ to i32*
store i32 -2147483647,i32*%a0,align 4
%a1=call i8*@sml_alloc(i32 inreg 12)#0
%a2=getelementptr inbounds i8,i8*%a1,i64 -4
%a3=bitcast i8*%a2 to i32*
store i32 1342177288,i32*%a3,align 4
store i8*%a1,i8**%b,align 8
%a4=load i8*,i8**%d,align 8
%a5=bitcast i8*%a1 to i8**
store i8*%a4,i8**%a5,align 8
%a6=getelementptr inbounds i8,i8*%a1,i64 8
%a7=bitcast i8*%a6 to i32*
store i32 1,i32*%a7,align 4
%a8=call i8*@sml_alloc(i32 inreg 28)#0
%a9=getelementptr inbounds i8,i8*%a8,i64 -4
%ba=bitcast i8*%a9 to i32*
store i32 1342177304,i32*%ba,align 4
%bb=load i8*,i8**%b,align 8
%bc=bitcast i8*%a8 to i8**
store i8*%bb,i8**%bc,align 8
%bd=getelementptr inbounds i8,i8*%a8,i64 8
%be=bitcast i8*%bd to void(...)**
store void(...)*bitcast(i8*(i8*,i32)*@_SMLL7checked_159 to void(...)*),void(...)**%be,align 8
%bf=getelementptr inbounds i8,i8*%a8,i64 16
%bg=bitcast i8*%bf to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL7checked_238 to void(...)*),void(...)**%bg,align 8
%bh=getelementptr inbounds i8,i8*%a8,i64 24
%bi=bitcast i8*%bh to i32*
store i32 -2147483647,i32*%bi,align 4
%bj=call i8*@sml_alloc(i32 inreg 12)#0
%bk=getelementptr inbounds i8,i8*%bj,i64 -4
%bl=bitcast i8*%bk to i32*
store i32 1342177288,i32*%bl,align 4
store i8*%bj,i8**%i,align 8
%bm=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%bn=bitcast i8*%bj to i8**
store i8*%bm,i8**%bn,align 8
%bo=getelementptr inbounds i8,i8*%bj,i64 8
%bp=bitcast i8*%bo to i32*
store i32 1,i32*%bp,align 4
%bq=call i8*@sml_alloc(i32 inreg 28)#0
%br=getelementptr inbounds i8,i8*%bq,i64 -4
%bs=bitcast i8*%br to i32*
store i32 1342177304,i32*%bs,align 4
store i8*%bq,i8**%f,align 8
%bt=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%bu=bitcast i8*%bq to i8**
store i8*%bt,i8**%bu,align 8
%bv=getelementptr inbounds i8,i8*%bq,i64 8
%bw=bitcast i8*%bv to void(...)**
store void(...)*bitcast(i8*(i8*,i32)*@_SMLLN10TextPrimIO10openVectorE_162 to void(...)*),void(...)**%bw,align 8
%bx=getelementptr inbounds i8,i8*%bq,i64 16
%by=bitcast i8*%bx to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN10TextPrimIO10openVectorE_240 to void(...)*),void(...)**%by,align 8
%bz=getelementptr inbounds i8,i8*%bq,i64 24
%bA=bitcast i8*%bz to i32*
store i32 -2147483647,i32*%bA,align 4
%bB=call i8*@sml_alloc(i32 inreg 12)#0
%bC=getelementptr inbounds i8,i8*%bB,i64 -4
%bD=bitcast i8*%bC to i32*
store i32 1342177288,i32*%bD,align 4
store i8*%bB,i8**%i,align 8
%bE=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%bF=bitcast i8*%bB to i8**
store i8*%bE,i8**%bF,align 8
%bG=getelementptr inbounds i8,i8*%bB,i64 8
%bH=bitcast i8*%bG to i32*
store i32 1,i32*%bH,align 4
%bI=call i8*@sml_alloc(i32 inreg 12)#0
%bJ=getelementptr inbounds i8,i8*%bI,i64 -4
%bK=bitcast i8*%bJ to i32*
store i32 1342177288,i32*%bK,align 4
store i8*%bI,i8**%f,align 8
%bL=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%bM=bitcast i8*%bI to i8**
store i8*%bL,i8**%bM,align 8
%bN=getelementptr inbounds i8,i8*%bI,i64 8
%bO=bitcast i8*%bN to i32*
store i32 1,i32*%bO,align 4
%bP=call i8*@sml_alloc(i32 inreg 28)#0
%bQ=getelementptr inbounds i8,i8*%bP,i64 -4
%bR=bitcast i8*%bQ to i32*
store i32 1342177304,i32*%bR,align 4
store i8*%bP,i8**%h,align 8
%bS=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%bT=bitcast i8*%bP to i8**
store i8*%bS,i8**%bT,align 8
%bU=getelementptr inbounds i8,i8*%bP,i64 8
%bV=bitcast i8*%bU to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN10TextPrimIO10openVectorE_165 to void(...)*),void(...)**%bV,align 8
%bW=getelementptr inbounds i8,i8*%bP,i64 16
%bX=bitcast i8*%bW to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN10TextPrimIO10openVectorE_165 to void(...)*),void(...)**%bX,align 8
%bY=getelementptr inbounds i8,i8*%bP,i64 24
%bZ=bitcast i8*%bY to i32*
store i32 -2147483647,i32*%bZ,align 4
%b0=call i8*@sml_alloc(i32 inreg 12)#0
%b1=getelementptr inbounds i8,i8*%b0,i64 -4
%b2=bitcast i8*%b1 to i32*
store i32 1342177288,i32*%b2,align 4
store i8*%b0,i8**%f,align 8
%b3=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%b4=bitcast i8*%b0 to i8**
store i8*%b3,i8**%b4,align 8
%b5=getelementptr inbounds i8,i8*%b0,i64 8
%b6=bitcast i8*%b5 to i32*
store i32 1,i32*%b6,align 4
%b7=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%b8=call fastcc i8*@_SMLL7checked_159(i8*inreg%b7,i32 inreg 1)
store i8*%b8,i8**%b,align 8
%b9=call i8*@sml_alloc(i32 inreg 12)#0
%ca=getelementptr inbounds i8,i8*%b9,i64 -4
%cb=bitcast i8*%ca to i32*
store i32 1342177288,i32*%cb,align 4
store i8*%b9,i8**%h,align 8
%cc=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%cd=bitcast i8*%b9 to i8**
store i8*%cc,i8**%cd,align 8
%ce=getelementptr inbounds i8,i8*%b9,i64 8
%cf=bitcast i8*%ce to i32*
store i32 1,i32*%cf,align 4
%cg=call i8*@sml_alloc(i32 inreg 12)#0
%ch=getelementptr inbounds i8,i8*%cg,i64 -4
%ci=bitcast i8*%ch to i32*
store i32 1342177288,i32*%ci,align 4
store i8*%cg,i8**%b,align 8
%cj=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%ck=bitcast i8*%cg to i8**
store i8*%cj,i8**%ck,align 8
%cl=getelementptr inbounds i8,i8*%cg,i64 8
%cm=bitcast i8*%cl to i32*
store i32 1,i32*%cm,align 4
%cn=call i8*@sml_alloc(i32 inreg 28)#0
%co=getelementptr inbounds i8,i8*%cn,i64 -4
%cp=bitcast i8*%co to i32*
store i32 1342177304,i32*%cp,align 4
store i8*%cn,i8**%e,align 8
%cq=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%cr=bitcast i8*%cn to i8**
store i8*%cq,i8**%cr,align 8
%cs=getelementptr inbounds i8,i8*%cn,i64 8
%ct=bitcast i8*%cs to void(...)**
store void(...)*bitcast(i8*(i8*,i32)*@_SMLLN10TextPrimIO10openVectorE_168 to void(...)*),void(...)**%ct,align 8
%cu=getelementptr inbounds i8,i8*%cn,i64 16
%cv=bitcast i8*%cu to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN10TextPrimIO10openVectorE_243 to void(...)*),void(...)**%cv,align 8
%cw=getelementptr inbounds i8,i8*%cn,i64 24
%cx=bitcast i8*%cw to i32*
store i32 -2147483647,i32*%cx,align 4
%cy=call i8*@sml_alloc(i32 inreg 12)#0
%cz=getelementptr inbounds i8,i8*%cy,i64 -4
%cA=bitcast i8*%cz to i32*
store i32 1342177288,i32*%cA,align 4
store i8*%cy,i8**%b,align 8
%cB=load i8*,i8**%d,align 8
%cC=bitcast i8*%cy to i8**
store i8*%cB,i8**%cC,align 8
%cD=getelementptr inbounds i8,i8*%cy,i64 8
%cE=bitcast i8*%cD to i32*
store i32 1,i32*%cE,align 4
%cF=call i8*@sml_alloc(i32 inreg 28)#0
%cG=getelementptr inbounds i8,i8*%cF,i64 -4
%cH=bitcast i8*%cG to i32*
store i32 1342177304,i32*%cH,align 4
store i8*%cF,i8**%j,align 8
%cI=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%cJ=bitcast i8*%cF to i8**
store i8*%cI,i8**%cJ,align 8
%cK=getelementptr inbounds i8,i8*%cF,i64 8
%cL=bitcast i8*%cK to void(...)**
store void(...)*bitcast(void(i8*,i32)*@_SMLLN10TextPrimIO10openVectorE_170 to void(...)*),void(...)**%cL,align 8
%cM=getelementptr inbounds i8,i8*%cF,i64 16
%cN=bitcast i8*%cM to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN10TextPrimIO10openVectorE_244 to void(...)*),void(...)**%cN,align 8
%cO=getelementptr inbounds i8,i8*%cF,i64 24
%cP=bitcast i8*%cO to i32*
store i32 -2147483647,i32*%cP,align 4
%cQ=call i8*@sml_alloc(i32 inreg 12)#0
%cR=getelementptr inbounds i8,i8*%cQ,i64 -4
%cS=bitcast i8*%cR to i32*
store i32 1342177288,i32*%cS,align 4
store i8*%cQ,i8**%b,align 8
%cT=load i8*,i8**%j,align 8
store i8*null,i8**%j,align 8
%cU=bitcast i8*%cQ to i8**
store i8*%cT,i8**%cU,align 8
%cV=getelementptr inbounds i8,i8*%cQ,i64 8
%cW=bitcast i8*%cV to i32*
store i32 1,i32*%cW,align 4
%cX=call i8*@sml_alloc(i32 inreg 12)#0
%cY=getelementptr inbounds i8,i8*%cX,i64 -4
%cZ=bitcast i8*%cY to i32*
store i32 1342177288,i32*%cZ,align 4
store i8*%cX,i8**%j,align 8
%c0=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%c1=bitcast i8*%cX to i8**
store i8*%c0,i8**%c1,align 8
%c2=getelementptr inbounds i8,i8*%cX,i64 8
%c3=bitcast i8*%c2 to i32*
store i32 1,i32*%c3,align 4
%c4=call i8*@sml_alloc(i32 inreg 28)#0
%c5=getelementptr inbounds i8,i8*%c4,i64 -4
%c6=bitcast i8*%c5 to i32*
store i32 1342177304,i32*%c6,align 4
store i8*%c4,i8**%d,align 8
%c7=load i8*,i8**%j,align 8
store i8*null,i8**%j,align 8
%c8=bitcast i8*%c4 to i8**
store i8*%c7,i8**%c8,align 8
%c9=getelementptr inbounds i8,i8*%c4,i64 8
%da=bitcast i8*%c9 to void(...)**
store void(...)*bitcast(void(i8*,i32)*@_SMLLN10TextPrimIO10openVectorE_171 to void(...)*),void(...)**%da,align 8
%db=getelementptr inbounds i8,i8*%c4,i64 16
%dc=bitcast i8*%db to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN10TextPrimIO10openVectorE_245 to void(...)*),void(...)**%dc,align 8
%dd=getelementptr inbounds i8,i8*%c4,i64 24
%de=bitcast i8*%dd to i32*
store i32 -2147483647,i32*%de,align 4
%df=call i8*@sml_alloc(i32 inreg 12)#0
%dg=getelementptr inbounds i8,i8*%df,i64 -4
%dh=bitcast i8*%dg to i32*
store i32 1342177288,i32*%dh,align 4
store i8*%df,i8**%j,align 8
%di=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%dj=bitcast i8*%df to i8**
store i8*%di,i8**%dj,align 8
%dk=getelementptr inbounds i8,i8*%df,i64 8
%dl=bitcast i8*%dk to i32*
store i32 1,i32*%dl,align 4
%dm=call i8*@sml_alloc(i32 inreg 12)#0
%dn=getelementptr inbounds i8,i8*%dm,i64 -4
%do=bitcast i8*%dn to i32*
store i32 1342177288,i32*%do,align 4
store i8*%dm,i8**%c,align 8
%dp=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%dq=bitcast i8*%dm to i8**
store i8*%dp,i8**%dq,align 8
%dr=getelementptr inbounds i8,i8*%dm,i64 8
%ds=bitcast i8*%dr to i32*
store i32 1,i32*%ds,align 4
%dt=call i8*@sml_alloc(i32 inreg 124)#0
%du=getelementptr inbounds i8,i8*%dt,i64 -4
%dv=bitcast i8*%du to i32*
store i32 1342177400,i32*%dv,align 4
%dw=getelementptr inbounds i8,i8*%dt,i64 28
%dx=bitcast i8*%dw to i32*
store i32 0,i32*%dx,align 1
%dy=load i8*,i8**%e,align 8
%dz=bitcast i8*%dt to i8**
store i8*%dy,i8**%dz,align 8
%dA=load i8*,i8**%b,align 8
%dB=getelementptr inbounds i8,i8*%dt,i64 8
%dC=bitcast i8*%dB to i8**
store i8*%dA,i8**%dC,align 8
%dD=load i8*,i8**%h,align 8
%dE=getelementptr inbounds i8,i8*%dt,i64 16
%dF=bitcast i8*%dE to i8**
store i8*%dD,i8**%dF,align 8
%dG=getelementptr inbounds i8,i8*%dt,i64 24
%dH=bitcast i8*%dG to i32*
store i32%G,i32*%dH,align 4
%dI=load i8*,i8**%d,align 8
%dJ=getelementptr inbounds i8,i8*%dt,i64 32
%dK=bitcast i8*%dJ to i8**
store i8*%dI,i8**%dK,align 8
%dL=getelementptr inbounds i8,i8*%dt,i64 40
%dM=getelementptr inbounds i8,i8*%dt,i64 64
%dN=bitcast i8*%dM to i8**
call void@llvm.memset.p0i8.i64(i8*%dL,i8 0,i64 24,i1 false)
store i8*getelementptr inbounds(<{[4x i8],i32,[9x i8]}>,<{[4x i8],i32,[9x i8]}>*@i,i64 0,i32 2,i64 0),i8**%dN,align 8
%dO=load i8*,i8**%j,align 8
%dP=getelementptr inbounds i8,i8*%dt,i64 72
%dQ=bitcast i8*%dP to i8**
store i8*%dO,i8**%dQ,align 8
%dR=load i8*,i8**%f,align 8
%dS=getelementptr inbounds i8,i8*%dt,i64 80
%dT=bitcast i8*%dS to i8**
store i8*%dR,i8**%dT,align 8
%dU=load i8*,i8**%c,align 8
%dV=getelementptr inbounds i8,i8*%dt,i64 88
%dW=bitcast i8*%dV to i8**
store i8*%dU,i8**%dW,align 8
%dX=load i8*,i8**%i,align 8
%dY=getelementptr inbounds i8,i8*%dt,i64 96
%dZ=bitcast i8*%dY to i8**
store i8*%dX,i8**%dZ,align 8
%d0=getelementptr inbounds i8,i8*%dt,i64 104
%d1=getelementptr inbounds i8,i8*%dt,i64 120
%d2=bitcast i8*%d1 to i32*
call void@llvm.memset.p0i8.i64(i8*%d0,i8 0,i64 16,i1 false)
store i32 32759,i32*%d2,align 4
store i8*%dy,i8**%b,align 8
store i8*%dA,i8**%c,align 8
store i8*%dD,i8**%d,align 8
store i8*%dI,i8**%e,align 8
store i8*null,i8**%f,align 8
store i8*null,i8**%g,align 8
store i8*null,i8**%h,align 8
store i8*getelementptr inbounds(<{[4x i8],i32,[9x i8]}>,<{[4x i8],i32,[9x i8]}>*@i,i64 0,i32 2,i64 0),i8**%i,align 8
store i8*%dR,i8**%k,align 8
store i8*%dU,i8**%l,align 8
store i8*%dX,i8**%m,align 8
store i8*null,i8**%n,align 8
store i8*null,i8**%o,align 8
%d3=call i8*@sml_alloc(i32 inreg 124)#0
%d4=getelementptr inbounds i8,i8*%d3,i64 -4
%d5=bitcast i8*%d4 to i32*
store i32 1342177400,i32*%d5,align 4
%d6=getelementptr inbounds i8,i8*%d3,i64 28
%d7=bitcast i8*%d6 to i32*
store i32 0,i32*%d7,align 1
%d8=load i8*,i8**%b,align 8
%d9=bitcast i8*%d3 to i8**
store i8*%d8,i8**%d9,align 8
%ea=load i8*,i8**%c,align 8
%eb=getelementptr inbounds i8,i8*%d3,i64 8
%ec=bitcast i8*%eb to i8**
store i8*%ea,i8**%ec,align 8
%ed=load i8*,i8**%d,align 8
%ee=getelementptr inbounds i8,i8*%d3,i64 16
%ef=bitcast i8*%ee to i8**
store i8*%ed,i8**%ef,align 8
%eg=getelementptr inbounds i8,i8*%d3,i64 24
%eh=bitcast i8*%eg to i32*
store i32%G,i32*%eh,align 4
%ei=load i8*,i8**%e,align 8
%ej=getelementptr inbounds i8,i8*%d3,i64 32
%ek=bitcast i8*%ej to i8**
store i8*%ei,i8**%ek,align 8
%el=load i8*,i8**%f,align 8
%em=getelementptr inbounds i8,i8*%d3,i64 40
%en=bitcast i8*%em to i8**
store i8*%el,i8**%en,align 8
%eo=load i8*,i8**%g,align 8
%ep=getelementptr inbounds i8,i8*%d3,i64 48
%eq=bitcast i8*%ep to i8**
store i8*%eo,i8**%eq,align 8
%er=load i8*,i8**%h,align 8
%es=getelementptr inbounds i8,i8*%d3,i64 56
%et=bitcast i8*%es to i8**
store i8*%er,i8**%et,align 8
%eu=load i8*,i8**%i,align 8
%ev=getelementptr inbounds i8,i8*%d3,i64 64
%ew=bitcast i8*%ev to i8**
store i8*%eu,i8**%ew,align 8
%ex=load i8*,i8**%j,align 8
%ey=getelementptr inbounds i8,i8*%d3,i64 72
%ez=bitcast i8*%ey to i8**
store i8*%ex,i8**%ez,align 8
%eA=load i8*,i8**%k,align 8
%eB=getelementptr inbounds i8,i8*%d3,i64 80
%eC=bitcast i8*%eB to i8**
store i8*%eA,i8**%eC,align 8
%eD=load i8*,i8**%l,align 8
%eE=getelementptr inbounds i8,i8*%d3,i64 88
%eF=bitcast i8*%eE to i8**
store i8*%eD,i8**%eF,align 8
%eG=load i8*,i8**%m,align 8
%eH=getelementptr inbounds i8,i8*%d3,i64 96
%eI=bitcast i8*%eH to i8**
store i8*%eG,i8**%eI,align 8
%eJ=load i8*,i8**%n,align 8
%eK=getelementptr inbounds i8,i8*%d3,i64 104
%eL=bitcast i8*%eK to i8**
store i8*%eJ,i8**%eL,align 8
%eM=load i8*,i8**%o,align 8
%eN=getelementptr inbounds i8,i8*%d3,i64 112
%eO=bitcast i8*%eN to i8**
store i8*%eM,i8**%eO,align 8
%eP=getelementptr inbounds i8,i8*%d3,i64 120
%eQ=bitcast i8*%eP to i32*
store i32 32759,i32*%eQ,align 4
ret i8*%d3
}
define internal fastcc i8*@_SMLL7checked_176(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%c,align 8
%e=bitcast i8*%a to i32**
%f=load i32*,i32**%e,align 8
%g=load i32,i32*%f,align 4
%h=icmp eq i32%g,0
br i1%h,label%A,label%i
i:
%j=load i8*,i8**@_SMLZN2IO12ClosedStreamE,align 8
store i8*%j,i8**%c,align 8
%k=call i8*@sml_alloc(i32 inreg 20)#0
%l=getelementptr inbounds i8,i8*%k,i64 -4
%m=bitcast i8*%l to i32*
store i32 1342177296,i32*%m,align 4
store i8*%k,i8**%d,align 8
%n=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%o=bitcast i8*%k to i8**
store i8*%n,i8**%o,align 8
%p=getelementptr inbounds i8,i8*%k,i64 8
%q=bitcast i8*%p to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[49x i8]}>,<{[4x i8],i32,[49x i8]}>*@m,i64 0,i32 2,i64 0),i8**%q,align 8
%r=getelementptr inbounds i8,i8*%k,i64 16
%s=bitcast i8*%r to i32*
store i32 3,i32*%s,align 4
%t=call i8*@sml_alloc(i32 inreg 60)#0
%u=getelementptr inbounds i8,i8*%t,i64 -4
%v=bitcast i8*%u to i32*
store i32 1342177336,i32*%v,align 4
%w=getelementptr inbounds i8,i8*%t,i64 56
%x=bitcast i8*%w to i32*
store i32 1,i32*%x,align 4
%y=load i8*,i8**%d,align 8
%z=bitcast i8*%t to i8**
store i8*%y,i8**%z,align 8
call void@sml_raise(i8*inreg%t)#1
unreachable
A:
%B=getelementptr inbounds i8,i8*%a,i64 16
%C=bitcast i8*%B to i32*
%D=load i32,i32*%C,align 4
%E=icmp eq i32%D,0
br i1%E,label%J,label%F
F:
%G=getelementptr inbounds i8,i8*%a,i64 8
%H=bitcast i8*%G to i8**
%I=load i8*,i8**%H,align 8
ret i8*%I
J:
%K=getelementptr inbounds i8,i8*%a,i64 20
%L=bitcast i8*%K to i32*
%M=load i32,i32*%L,align 4
%N=call i8*@sml_alloc(i32 inreg%M)#0
%O=getelementptr inbounds i8,i8*%N,i64 -4
%P=bitcast i8*%O to i32*
store i32%M,i32*%P,align 4
%Q=load i8*,i8**%c,align 8
%R=getelementptr inbounds i8,i8*%Q,i64 8
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%N,i8*%R,i32%M,i1 false)
ret i8*%N
}
define internal fastcc i8*@_SMLL7checked_177(i8*inreg%a,i32 inreg%b,i32 inreg%c)#4 gc"smlsharp"{
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
store i8*%a,i8**%d,align 8
%g=getelementptr inbounds i8,i8*%a,i64 16
%h=bitcast i8*%g to i32*
%i=load i32,i32*%h,align 4
%j=shl i32%i,1
%k=or i32%j,1
%l=bitcast i8*%a to i8**
%m=load i8*,i8**%l,align 8
store i8*%m,i8**%e,align 8
%n=icmp eq i32%i,0
br i1%n,label%s,label%o
o:
%p=getelementptr inbounds i8,i8*%a,i64 8
%q=bitcast i8*%p to i8**
%r=load i8*,i8**%q,align 8
br label%E
s:
%t=getelementptr inbounds i8,i8*%a,i64 20
%u=bitcast i8*%t to i32*
%v=load i32,i32*%u,align 4
%w=call i8*@sml_alloc(i32 inreg%v)#0
%x=getelementptr inbounds i8,i8*%w,i64 -4
%y=bitcast i8*%x to i32*
store i32%v,i32*%y,align 4
%z=load i8*,i8**%d,align 8
%A=getelementptr inbounds i8,i8*%z,i64 8
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%w,i8*%A,i32%v,i1 false)
%B=getelementptr inbounds i8,i8*%z,i64 16
%C=bitcast i8*%B to i32*
%D=load i32,i32*%C,align 4
br label%E
E:
%F=phi i32[%D,%s],[%i,%o]
%G=phi i8*[%z,%s],[%a,%o]
%H=phi i8*[%w,%s],[%r,%o]
store i8*%H,i8**%f,align 8
%I=getelementptr inbounds i8,i8*%G,i64 20
%J=bitcast i8*%I to i32*
%K=load i32,i32*%J,align 4
store i8*null,i8**%d,align 8
%L=call i8*@sml_alloc(i32 inreg 28)#0
%M=getelementptr inbounds i8,i8*%L,i64 -4
%N=bitcast i8*%M to i32*
store i32 1342177304,i32*%N,align 4
store i8*%L,i8**%d,align 8
%O=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%P=bitcast i8*%L to i8**
store i8*%O,i8**%P,align 8
%Q=icmp eq i32%F,0
%R=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%S=getelementptr inbounds i8,i8*%L,i64 8
br i1%Q,label%V,label%T
T:
%U=bitcast i8*%S to i8**
store i8*%R,i8**%U,align 8
br label%W
V:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%S,i8*%R,i32%K,i1 false)
br label%W
W:
%X=getelementptr inbounds i8,i8*%L,i64 16
%Y=bitcast i8*%X to i32*
store i32%F,i32*%Y,align 4
%Z=getelementptr inbounds i8,i8*%L,i64 20
%aa=bitcast i8*%Z to i32*
store i32%K,i32*%aa,align 4
%ab=getelementptr inbounds i8,i8*%L,i64 24
%ac=bitcast i8*%ab to i32*
store i32%k,i32*%ac,align 4
%ad=call i8*@sml_alloc(i32 inreg 28)#0
%ae=getelementptr inbounds i8,i8*%ad,i64 -4
%af=bitcast i8*%ae to i32*
store i32 1342177304,i32*%af,align 4
%ag=load i8*,i8**%d,align 8
%ah=bitcast i8*%ad to i8**
store i8*%ag,i8**%ah,align 8
%ai=getelementptr inbounds i8,i8*%ad,i64 8
%aj=bitcast i8*%ai to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL7checked_176 to void(...)*),void(...)**%aj,align 8
%ak=getelementptr inbounds i8,i8*%ad,i64 16
%al=bitcast i8*%ak to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL7checked_176 to void(...)*),void(...)**%al,align 8
%am=getelementptr inbounds i8,i8*%ad,i64 24
%an=bitcast i8*%am to i32*
store i32 1,i32*%an,align 4
ret i8*%ad
}
define internal fastcc i8*@_SMLL7checked_178(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%b,i8**%c,align 8
%f=getelementptr inbounds i8,i8*%a,i64 8
%g=bitcast i8*%f to i32*
%h=load i32,i32*%g,align 4
%i=shl i32%h,1
%j=or i32%i,1
%k=bitcast i8*%a to i8**
%l=load i8*,i8**%k,align 8
store i8*%l,i8**%d,align 8
%m=getelementptr inbounds i8,i8*%a,i64 12
%n=bitcast i8*%m to i32*
%o=load i32,i32*%n,align 4
%p=call i8*@sml_alloc(i32 inreg 28)#0
%q=getelementptr inbounds i8,i8*%p,i64 -4
%r=bitcast i8*%q to i32*
store i32 1342177304,i32*%r,align 4
store i8*%p,i8**%e,align 8
%s=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%t=bitcast i8*%p to i8**
store i8*%s,i8**%t,align 8
%u=icmp eq i32%h,0
%v=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%w=getelementptr inbounds i8,i8*%p,i64 8
br i1%u,label%z,label%x
x:
%y=bitcast i8*%w to i8**
store i8*%v,i8**%y,align 8
br label%A
z:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%w,i8*%v,i32%o,i1 false)
br label%A
A:
%B=getelementptr inbounds i8,i8*%p,i64 16
%C=bitcast i8*%B to i32*
store i32%h,i32*%C,align 4
%D=getelementptr inbounds i8,i8*%p,i64 20
%E=bitcast i8*%D to i32*
store i32%o,i32*%E,align 4
%F=getelementptr inbounds i8,i8*%p,i64 24
%G=bitcast i8*%F to i32*
store i32%j,i32*%G,align 4
%H=call i8*@sml_alloc(i32 inreg 28)#0
%I=getelementptr inbounds i8,i8*%H,i64 -4
%J=bitcast i8*%I to i32*
store i32 1342177304,i32*%J,align 4
%K=load i8*,i8**%e,align 8
%L=bitcast i8*%H to i8**
store i8*%K,i8**%L,align 8
%M=getelementptr inbounds i8,i8*%H,i64 8
%N=bitcast i8*%M to void(...)**
store void(...)*bitcast(i8*(i8*,i32,i32)*@_SMLL7checked_177 to void(...)*),void(...)**%N,align 8
%O=getelementptr inbounds i8,i8*%H,i64 16
%P=bitcast i8*%O to void(...)**
store void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLL7checked_247 to void(...)*),void(...)**%P,align 8
%Q=getelementptr inbounds i8,i8*%H,i64 24
%R=bitcast i8*%Q to i32*
store i32 -2147483647,i32*%R,align 4
ret i8*%H
}
define internal fastcc i8*@_SMLL7checked_179(i8*inreg%a,i32 inreg%b,i32 inreg%c)#4 gc"smlsharp"{
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
%f=bitcast i8*%a to i8**
%g=load i8*,i8**%f,align 8
store i8*%g,i8**%d,align 8
%h=call i8*@sml_alloc(i32 inreg 20)#0
%i=getelementptr inbounds i8,i8*%h,i64 -4
%j=bitcast i8*%i to i32*
store i32 1342177296,i32*%j,align 4
store i8*%h,i8**%e,align 8
%k=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%l=bitcast i8*%h to i8**
store i8*%k,i8**%l,align 8
%m=getelementptr inbounds i8,i8*%h,i64 8
%n=bitcast i8*%m to i32*
store i32%b,i32*%n,align 4
%o=getelementptr inbounds i8,i8*%h,i64 12
%p=bitcast i8*%o to i32*
store i32%c,i32*%p,align 4
%q=getelementptr inbounds i8,i8*%h,i64 16
%r=bitcast i8*%q to i32*
store i32 1,i32*%r,align 4
%s=call i8*@sml_alloc(i32 inreg 28)#0
%t=getelementptr inbounds i8,i8*%s,i64 -4
%u=bitcast i8*%t to i32*
store i32 1342177304,i32*%u,align 4
%v=load i8*,i8**%e,align 8
%w=bitcast i8*%s to i8**
store i8*%v,i8**%w,align 8
%x=getelementptr inbounds i8,i8*%s,i64 8
%y=bitcast i8*%x to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL7checked_178 to void(...)*),void(...)**%y,align 8
%z=getelementptr inbounds i8,i8*%s,i64 16
%A=bitcast i8*%z to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL7checked_178 to void(...)*),void(...)**%A,align 8
%B=getelementptr inbounds i8,i8*%s,i64 24
%C=bitcast i8*%B to i32*
store i32 1,i32*%C,align 4
ret i8*%s
}
define internal fastcc i8*@_SMLLN10TextPrimIO6nullRdE_182(i32 inreg%a)#4 gc"smlsharp"{
ret i8*bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@k,i64 0,i32 2)to i8*)
}
define internal fastcc void@_SMLLN10TextPrimIO6nullRdE_185(i8*inreg%a,i32 inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
%e=bitcast i8*%a to i32**
%f=load i32*,i32**%e,align 8
%g=load i32,i32*%f,align 4
%h=icmp eq i32%g,0
br i1%h,label%A,label%i
i:
%j=load i8*,i8**@_SMLZN2IO12ClosedStreamE,align 8
store i8*%j,i8**%c,align 8
%k=call i8*@sml_alloc(i32 inreg 20)#0
%l=getelementptr inbounds i8,i8*%k,i64 -4
%m=bitcast i8*%l to i32*
store i32 1342177296,i32*%m,align 4
store i8*%k,i8**%d,align 8
%n=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%o=bitcast i8*%k to i8**
store i8*%n,i8**%o,align 8
%p=getelementptr inbounds i8,i8*%k,i64 8
%q=bitcast i8*%p to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[49x i8]}>,<{[4x i8],i32,[49x i8]}>*@m,i64 0,i32 2,i64 0),i8**%q,align 8
%r=getelementptr inbounds i8,i8*%k,i64 16
%s=bitcast i8*%r to i32*
store i32 3,i32*%s,align 4
%t=call i8*@sml_alloc(i32 inreg 60)#0
%u=getelementptr inbounds i8,i8*%t,i64 -4
%v=bitcast i8*%u to i32*
store i32 1342177336,i32*%v,align 4
%w=getelementptr inbounds i8,i8*%t,i64 56
%x=bitcast i8*%w to i32*
store i32 1,i32*%x,align 4
%y=load i8*,i8**%d,align 8
%z=bitcast i8*%t to i8**
store i8*%y,i8**%z,align 8
call void@sml_raise(i8*inreg%t)#1
unreachable
A:
ret void
}
define internal fastcc void@_SMLLN10TextPrimIO6nullRdE_186(i8*inreg%a,i32 inreg%b)#4 gc"smlsharp"{
%c=bitcast i8*%a to i32**
%d=load i32*,i32**%c,align 8
store i32 1,i32*%d,align 4
ret void
}
define fastcc i8*@_SMLFN10TextPrimIO6nullRdE(i32 inreg%a)#2 gc"smlsharp"{
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
%h=alloca i8*,align 8
%i=alloca i8*,align 8
%j=alloca i8*,align 8
%k=alloca i8*,align 8
%l=alloca i8*,align 8
%m=alloca i8*,align 8
%n=alloca i8*,align 8
%o=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
call void@llvm.gcroot(i8**%h,i8*null)#0
call void@llvm.gcroot(i8**%i,i8*null)#0
call void@llvm.gcroot(i8**%j,i8*null)#0
call void@llvm.gcroot(i8**%k,i8*null)#0
call void@llvm.gcroot(i8**%l,i8*null)#0
call void@llvm.gcroot(i8**%m,i8*null)#0
call void@llvm.gcroot(i8**%n,i8*null)#0
call void@llvm.gcroot(i8**%o,i8*null)#0
%p=load atomic i32,i32*@sml_check_flag unordered,align 4
%q=icmp eq i32%p,0
br i1%q,label%s,label%r
r:
call void@sml_check(i32 inreg%p)
br label%s
s:
%t=call i8*@sml_alloc(i32 inreg 4)#0
%u=bitcast i8*%t to i32*
%v=getelementptr inbounds i8,i8*%t,i64 -4
%w=bitcast i8*%v to i32*
store i32 536870916,i32*%w,align 4
store i8*%t,i8**%b,align 8
store i32 0,i32*%u,align 4
%x=call i8*@sml_alloc(i32 inreg 12)#0
%y=getelementptr inbounds i8,i8*%x,i64 -4
%z=bitcast i8*%y to i32*
store i32 1342177288,i32*%z,align 4
store i8*%x,i8**%e,align 8
%A=load i8*,i8**%b,align 8
%B=bitcast i8*%x to i8**
store i8*%A,i8**%B,align 8
%C=getelementptr inbounds i8,i8*%x,i64 8
%D=bitcast i8*%C to i32*
store i32 1,i32*%D,align 4
%E=call i8*@sml_alloc(i32 inreg 28)#0
%F=getelementptr inbounds i8,i8*%E,i64 -4
%G=bitcast i8*%F to i32*
store i32 1342177304,i32*%G,align 4
%H=load i8*,i8**%e,align 8
%I=bitcast i8*%E to i8**
store i8*%H,i8**%I,align 8
%J=getelementptr inbounds i8,i8*%E,i64 8
%K=bitcast i8*%J to void(...)**
store void(...)*bitcast(i8*(i8*,i32,i32)*@_SMLL7checked_179 to void(...)*),void(...)**%K,align 8
%L=getelementptr inbounds i8,i8*%E,i64 16
%M=bitcast i8*%L to void(...)**
store void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLL7checked_248 to void(...)*),void(...)**%M,align 8
%N=getelementptr inbounds i8,i8*%E,i64 24
%O=bitcast i8*%N to i32*
store i32 -2147483647,i32*%O,align 4
%P=call fastcc i8*@_SMLL7checked_179(i8*inreg%H,i32 inreg 1,i32 inreg 8)
%Q=getelementptr inbounds i8,i8*%P,i64 16
%R=bitcast i8*%Q to i8*(i8*,i8*)**
%S=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%R,align 8
%T=bitcast i8*%P to i8**
%U=load i8*,i8**%T,align 8
store i8*%U,i8**%c,align 8
%V=call fastcc i8*@_SMLFN10CharVector8fromListE(i8*inreg null)
%W=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%X=call fastcc i8*%S(i8*inreg%W,i8*inreg%V)
%Y=getelementptr inbounds i8,i8*%X,i64 16
%Z=bitcast i8*%Y to i8*(i8*,i8*,i8*)**
%aa=load i8*(i8*,i8*,i8*)*,i8*(i8*,i8*,i8*)**%Z,align 8
%ab=bitcast i8*%X to i8**
%ac=load i8*,i8**%ab,align 8
store i8*%ac,i8**%c,align 8
%ad=call i8*@sml_alloc(i32 inreg 4)#0
%ae=bitcast i8*%ad to i32*
%af=getelementptr inbounds i8,i8*%ad,i64 -4
%ag=bitcast i8*%af to i32*
store i32 4,i32*%ag,align 4
store i8*%ad,i8**%d,align 8
store i32 0,i32*%ae,align 4
%ah=call i8*@sml_alloc(i32 inreg 4)#0
%ai=bitcast i8*%ah to i32*
%aj=getelementptr inbounds i8,i8*%ah,i64 -4
%ak=bitcast i8*%aj to i32*
store i32 4,i32*%ak,align 4
store i32 4,i32*%ai,align 4
%al=load i8*,i8**%c,align 8
%am=load i8*,i8**%d,align 8
store i8*null,i8**%c,align 8
store i8*null,i8**%d,align 8
%an=call fastcc i8*%aa(i8*inreg%al,i8*inreg%am,i8*inreg%ah)
store i8*%an,i8**%c,align 8
%ao=call i8*@sml_alloc(i32 inreg 12)#0
%ap=getelementptr inbounds i8,i8*%ao,i64 -4
%aq=bitcast i8*%ap to i32*
store i32 1342177288,i32*%aq,align 4
store i8*%ao,i8**%f,align 8
%ar=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%as=bitcast i8*%ao to i8**
store i8*%ar,i8**%as,align 8
%at=getelementptr inbounds i8,i8*%ao,i64 8
%au=bitcast i8*%at to i32*
store i32 1,i32*%au,align 4
%av=load i8*,i8**%e,align 8
%aw=call fastcc i8*@_SMLL7checked_179(i8*inreg%av,i32 inreg 0,i32 inreg 4)
%ax=getelementptr inbounds i8,i8*%aw,i64 16
%ay=bitcast i8*%ax to i8*(i8*,i8*)**
%az=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%ay,align 8
%aA=bitcast i8*%aw to i8**
%aB=load i8*,i8**%aA,align 8
store i8*%aB,i8**%c,align 8
%aC=call i8*@sml_alloc(i32 inreg 4)#0
%aD=bitcast i8*%aC to i32*
%aE=getelementptr inbounds i8,i8*%aC,i64 -4
%aF=bitcast i8*%aE to i32*
store i32 4,i32*%aF,align 4
store i32 0,i32*%aD,align 4
%aG=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aH=call fastcc i8*%az(i8*inreg%aG,i8*inreg%aC)
%aI=getelementptr inbounds i8,i8*%aH,i64 16
%aJ=bitcast i8*%aI to i8*(i8*,i8*,i8*)**
%aK=load i8*(i8*,i8*,i8*)*,i8*(i8*,i8*,i8*)**%aJ,align 8
%aL=bitcast i8*%aH to i8**
%aM=load i8*,i8**%aL,align 8
store i8*%aM,i8**%c,align 8
%aN=call i8*@sml_alloc(i32 inreg 4)#0
%aO=bitcast i8*%aN to i32*
%aP=getelementptr inbounds i8,i8*%aN,i64 -4
%aQ=bitcast i8*%aP to i32*
store i32 4,i32*%aQ,align 4
store i8*%aN,i8**%d,align 8
store i32 1,i32*%aO,align 4
%aR=call i8*@sml_alloc(i32 inreg 4)#0
%aS=bitcast i8*%aR to i32*
%aT=getelementptr inbounds i8,i8*%aR,i64 -4
%aU=bitcast i8*%aT to i32*
store i32 4,i32*%aU,align 4
store i32 8,i32*%aS,align 4
%aV=load i8*,i8**%c,align 8
%aW=load i8*,i8**%d,align 8
store i8*null,i8**%c,align 8
store i8*null,i8**%d,align 8
%aX=call fastcc i8*%aK(i8*inreg%aV,i8*inreg%aW,i8*inreg%aR)
store i8*%aX,i8**%c,align 8
%aY=call i8*@sml_alloc(i32 inreg 12)#0
%aZ=getelementptr inbounds i8,i8*%aY,i64 -4
%a0=bitcast i8*%aZ to i32*
store i32 1342177288,i32*%a0,align 4
store i8*%aY,i8**%g,align 8
%a1=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%a2=bitcast i8*%aY to i8**
store i8*%a1,i8**%a2,align 8
%a3=getelementptr inbounds i8,i8*%aY,i64 8
%a4=bitcast i8*%a3 to i32*
store i32 1,i32*%a4,align 4
%a5=load i8*,i8**%e,align 8
%a6=call fastcc i8*@_SMLL7checked_179(i8*inreg%a5,i32 inreg 1,i32 inreg 8)
%a7=getelementptr inbounds i8,i8*%a6,i64 16
%a8=bitcast i8*%a7 to i8*(i8*,i8*)**
%a9=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%a8,align 8
%ba=bitcast i8*%a6 to i8**
%bb=load i8*,i8**%ba,align 8
store i8*%bb,i8**%d,align 8
%bc=call fastcc i8*@_SMLFN10CharVector8fromListE(i8*inreg null)
store i8*%bc,i8**%c,align 8
%bd=call i8*@sml_alloc(i32 inreg 12)#0
%be=getelementptr inbounds i8,i8*%bd,i64 -4
%bf=bitcast i8*%be to i32*
store i32 1342177288,i32*%bf,align 4
%bg=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bh=bitcast i8*%bd to i8**
store i8*%bg,i8**%bh,align 8
%bi=getelementptr inbounds i8,i8*%bd,i64 8
%bj=bitcast i8*%bi to i32*
store i32 1,i32*%bj,align 4
%bk=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%bl=call fastcc i8*%a9(i8*inreg%bk,i8*inreg%bd)
%bm=getelementptr inbounds i8,i8*%bl,i64 16
%bn=bitcast i8*%bm to i8*(i8*,i8*,i8*)**
%bo=load i8*(i8*,i8*,i8*)*,i8*(i8*,i8*,i8*)**%bn,align 8
%bp=bitcast i8*%bl to i8**
%bq=load i8*,i8**%bp,align 8
store i8*%bq,i8**%c,align 8
%br=call i8*@sml_alloc(i32 inreg 4)#0
%bs=bitcast i8*%br to i32*
%bt=getelementptr inbounds i8,i8*%br,i64 -4
%bu=bitcast i8*%bt to i32*
store i32 4,i32*%bu,align 4
store i8*%br,i8**%d,align 8
store i32 0,i32*%bs,align 4
%bv=call i8*@sml_alloc(i32 inreg 4)#0
%bw=bitcast i8*%bv to i32*
%bx=getelementptr inbounds i8,i8*%bv,i64 -4
%by=bitcast i8*%bx to i32*
store i32 4,i32*%by,align 4
store i32 4,i32*%bw,align 4
%bz=load i8*,i8**%c,align 8
%bA=load i8*,i8**%d,align 8
store i8*null,i8**%c,align 8
store i8*null,i8**%d,align 8
%bB=call fastcc i8*%bo(i8*inreg%bz,i8*inreg%bA,i8*inreg%bv)
store i8*%bB,i8**%c,align 8
%bC=call i8*@sml_alloc(i32 inreg 12)#0
%bD=getelementptr inbounds i8,i8*%bC,i64 -4
%bE=bitcast i8*%bD to i32*
store i32 1342177288,i32*%bE,align 4
store i8*%bC,i8**%d,align 8
%bF=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bG=bitcast i8*%bC to i8**
store i8*%bF,i8**%bG,align 8
%bH=getelementptr inbounds i8,i8*%bC,i64 8
%bI=bitcast i8*%bH to i32*
store i32 1,i32*%bI,align 4
%bJ=load i8*,i8**%e,align 8
%bK=call fastcc i8*@_SMLL7checked_179(i8*inreg%bJ,i32 inreg 1,i32 inreg 8)
%bL=getelementptr inbounds i8,i8*%bK,i64 16
%bM=bitcast i8*%bL to i8*(i8*,i8*)**
%bN=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bM,align 8
%bO=bitcast i8*%bK to i8**
%bP=load i8*,i8**%bO,align 8
%bQ=call fastcc i8*%bN(i8*inreg%bP,i8*inreg bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@k,i64 0,i32 2)to i8*))
%bR=getelementptr inbounds i8,i8*%bQ,i64 16
%bS=bitcast i8*%bR to i8*(i8*,i8*,i8*)**
%bT=load i8*(i8*,i8*,i8*)*,i8*(i8*,i8*,i8*)**%bS,align 8
%bU=bitcast i8*%bQ to i8**
%bV=load i8*,i8**%bU,align 8
store i8*%bV,i8**%c,align 8
%bW=call i8*@sml_alloc(i32 inreg 4)#0
%bX=bitcast i8*%bW to i32*
%bY=getelementptr inbounds i8,i8*%bW,i64 -4
%bZ=bitcast i8*%bY to i32*
store i32 4,i32*%bZ,align 4
store i8*%bW,i8**%h,align 8
store i32 1,i32*%bX,align 4
%b0=call i8*@sml_alloc(i32 inreg 4)#0
%b1=bitcast i8*%b0 to i32*
%b2=getelementptr inbounds i8,i8*%b0,i64 -4
%b3=bitcast i8*%b2 to i32*
store i32 4,i32*%b3,align 4
store i32 8,i32*%b1,align 4
%b4=load i8*,i8**%c,align 8
%b5=load i8*,i8**%h,align 8
store i8*null,i8**%c,align 8
store i8*null,i8**%h,align 8
%b6=call fastcc i8*%bT(i8*inreg%b4,i8*inreg%b5,i8*inreg%b0)
store i8*%b6,i8**%c,align 8
%b7=call i8*@sml_alloc(i32 inreg 12)#0
%b8=getelementptr inbounds i8,i8*%b7,i64 -4
%b9=bitcast i8*%b8 to i32*
store i32 1342177288,i32*%b9,align 4
store i8*%b7,i8**%h,align 8
%ca=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%cb=bitcast i8*%b7 to i8**
store i8*%ca,i8**%cb,align 8
%cc=getelementptr inbounds i8,i8*%b7,i64 8
%cd=bitcast i8*%cc to i32*
store i32 1,i32*%cd,align 4
%ce=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%cf=call fastcc i8*@_SMLL7checked_179(i8*inreg%ce,i32 inreg 0,i32 inreg 4)
%cg=getelementptr inbounds i8,i8*%cf,i64 16
%ch=bitcast i8*%cg to i8*(i8*,i8*)**
%ci=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%ch,align 8
%cj=bitcast i8*%cf to i8**
%ck=load i8*,i8**%cj,align 8
store i8*%ck,i8**%c,align 8
%cl=call i8*@sml_alloc(i32 inreg 4)#0
%cm=bitcast i8*%cl to i32*
%cn=getelementptr inbounds i8,i8*%cl,i64 -4
%co=bitcast i8*%cn to i32*
store i32 4,i32*%co,align 4
store i32 1,i32*%cm,align 4
%cp=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%cq=call fastcc i8*%ci(i8*inreg%cp,i8*inreg%cl)
%cr=getelementptr inbounds i8,i8*%cq,i64 16
%cs=bitcast i8*%cr to i8*(i8*,i8*,i8*)**
%ct=load i8*(i8*,i8*,i8*)*,i8*(i8*,i8*,i8*)**%cs,align 8
%cu=bitcast i8*%cq to i8**
%cv=load i8*,i8**%cu,align 8
store i8*%cv,i8**%c,align 8
%cw=call i8*@sml_alloc(i32 inreg 4)#0
%cx=bitcast i8*%cw to i32*
%cy=getelementptr inbounds i8,i8*%cw,i64 -4
%cz=bitcast i8*%cy to i32*
store i32 4,i32*%cz,align 4
store i8*%cw,i8**%e,align 8
store i32 0,i32*%cx,align 4
%cA=call i8*@sml_alloc(i32 inreg 4)#0
%cB=bitcast i8*%cA to i32*
%cC=getelementptr inbounds i8,i8*%cA,i64 -4
%cD=bitcast i8*%cC to i32*
store i32 4,i32*%cD,align 4
store i32 4,i32*%cB,align 4
%cE=load i8*,i8**%c,align 8
%cF=load i8*,i8**%e,align 8
store i8*null,i8**%c,align 8
store i8*null,i8**%e,align 8
%cG=call fastcc i8*%ct(i8*inreg%cE,i8*inreg%cF,i8*inreg%cA)
store i8*%cG,i8**%c,align 8
%cH=call i8*@sml_alloc(i32 inreg 12)#0
%cI=getelementptr inbounds i8,i8*%cH,i64 -4
%cJ=bitcast i8*%cI to i32*
store i32 1342177288,i32*%cJ,align 4
store i8*%cH,i8**%e,align 8
%cK=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%cL=bitcast i8*%cH to i8**
store i8*%cK,i8**%cL,align 8
%cM=getelementptr inbounds i8,i8*%cH,i64 8
%cN=bitcast i8*%cM to i32*
store i32 1,i32*%cN,align 4
%cO=call i8*@sml_alloc(i32 inreg 12)#0
%cP=getelementptr inbounds i8,i8*%cO,i64 -4
%cQ=bitcast i8*%cP to i32*
store i32 1342177288,i32*%cQ,align 4
store i8*%cO,i8**%c,align 8
%cR=load i8*,i8**%b,align 8
%cS=bitcast i8*%cO to i8**
store i8*%cR,i8**%cS,align 8
%cT=getelementptr inbounds i8,i8*%cO,i64 8
%cU=bitcast i8*%cT to i32*
store i32 1,i32*%cU,align 4
%cV=call i8*@sml_alloc(i32 inreg 28)#0
%cW=getelementptr inbounds i8,i8*%cV,i64 -4
%cX=bitcast i8*%cW to i32*
store i32 1342177304,i32*%cX,align 4
store i8*%cV,i8**%i,align 8
%cY=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%cZ=bitcast i8*%cV to i8**
store i8*%cY,i8**%cZ,align 8
%c0=getelementptr inbounds i8,i8*%cV,i64 8
%c1=bitcast i8*%c0 to void(...)**
store void(...)*bitcast(void(i8*,i32)*@_SMLLN10TextPrimIO6nullRdE_185 to void(...)*),void(...)**%c1,align 8
%c2=getelementptr inbounds i8,i8*%cV,i64 16
%c3=bitcast i8*%c2 to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN10TextPrimIO6nullRdE_250 to void(...)*),void(...)**%c3,align 8
%c4=getelementptr inbounds i8,i8*%cV,i64 24
%c5=bitcast i8*%c4 to i32*
store i32 -2147483647,i32*%c5,align 4
%c6=call i8*@sml_alloc(i32 inreg 12)#0
%c7=getelementptr inbounds i8,i8*%c6,i64 -4
%c8=bitcast i8*%c7 to i32*
store i32 1342177288,i32*%c8,align 4
store i8*%c6,i8**%c,align 8
%c9=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%da=bitcast i8*%c6 to i8**
store i8*%c9,i8**%da,align 8
%db=getelementptr inbounds i8,i8*%c6,i64 8
%dc=bitcast i8*%db to i32*
store i32 1,i32*%dc,align 4
%dd=call i8*@sml_alloc(i32 inreg 12)#0
%de=getelementptr inbounds i8,i8*%dd,i64 -4
%df=bitcast i8*%de to i32*
store i32 1342177288,i32*%df,align 4
store i8*%dd,i8**%i,align 8
%dg=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%dh=bitcast i8*%dd to i8**
store i8*%dg,i8**%dh,align 8
%di=getelementptr inbounds i8,i8*%dd,i64 8
%dj=bitcast i8*%di to i32*
store i32 1,i32*%dj,align 4
%dk=call i8*@sml_alloc(i32 inreg 28)#0
%dl=getelementptr inbounds i8,i8*%dk,i64 -4
%dm=bitcast i8*%dl to i32*
store i32 1342177304,i32*%dm,align 4
store i8*%dk,i8**%b,align 8
%dn=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%do=bitcast i8*%dk to i8**
store i8*%dn,i8**%do,align 8
%dp=getelementptr inbounds i8,i8*%dk,i64 8
%dq=bitcast i8*%dp to void(...)**
store void(...)*bitcast(void(i8*,i32)*@_SMLLN10TextPrimIO6nullRdE_186 to void(...)*),void(...)**%dq,align 8
%dr=getelementptr inbounds i8,i8*%dk,i64 16
%ds=bitcast i8*%dr to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN10TextPrimIO6nullRdE_251 to void(...)*),void(...)**%ds,align 8
%dt=getelementptr inbounds i8,i8*%dk,i64 24
%du=bitcast i8*%dt to i32*
store i32 -2147483647,i32*%du,align 4
%dv=call i8*@sml_alloc(i32 inreg 124)#0
%dw=getelementptr inbounds i8,i8*%dv,i64 -4
%dx=bitcast i8*%dw to i32*
store i32 1342177400,i32*%dx,align 4
%dy=getelementptr inbounds i8,i8*%dv,i64 28
%dz=bitcast i8*%dy to i32*
store i32 0,i32*%dz,align 1
%dA=bitcast i8*%dv to i8**
store i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@l,i64 0,i32 2)to i8*),i8**%dA,align 8
%dB=load i8*,i8**%c,align 8
%dC=getelementptr inbounds i8,i8*%dv,i64 8
%dD=bitcast i8*%dC to i8**
store i8*%dB,i8**%dD,align 8
%dE=load i8*,i8**%e,align 8
%dF=getelementptr inbounds i8,i8*%dv,i64 16
%dG=bitcast i8*%dF to i8**
store i8*%dE,i8**%dG,align 8
%dH=getelementptr inbounds i8,i8*%dv,i64 24
%dI=bitcast i8*%dH to i32*
store i32 1,i32*%dI,align 4
%dJ=load i8*,i8**%b,align 8
%dK=getelementptr inbounds i8,i8*%dv,i64 32
%dL=bitcast i8*%dK to i8**
store i8*%dJ,i8**%dL,align 8
%dM=getelementptr inbounds i8,i8*%dv,i64 40
%dN=getelementptr inbounds i8,i8*%dv,i64 64
%dO=bitcast i8*%dN to i8**
call void@llvm.memset.p0i8.i64(i8*%dM,i8 0,i64 24,i1 false)
store i8*getelementptr inbounds(<{[4x i8],i32,[7x i8]}>,<{[4x i8],i32,[7x i8]}>*@r,i64 0,i32 2,i64 0),i8**%dO,align 8
%dP=load i8*,i8**%g,align 8
%dQ=getelementptr inbounds i8,i8*%dv,i64 72
%dR=bitcast i8*%dQ to i8**
store i8*%dP,i8**%dR,align 8
%dS=load i8*,i8**%h,align 8
%dT=getelementptr inbounds i8,i8*%dv,i64 80
%dU=bitcast i8*%dT to i8**
store i8*%dS,i8**%dU,align 8
%dV=load i8*,i8**%f,align 8
%dW=getelementptr inbounds i8,i8*%dv,i64 88
%dX=bitcast i8*%dW to i8**
store i8*%dV,i8**%dX,align 8
%dY=load i8*,i8**%d,align 8
%dZ=getelementptr inbounds i8,i8*%dv,i64 96
%d0=bitcast i8*%dZ to i8**
store i8*%dY,i8**%d0,align 8
%d1=getelementptr inbounds i8,i8*%dv,i64 104
%d2=getelementptr inbounds i8,i8*%dv,i64 120
%d3=bitcast i8*%d2 to i32*
call void@llvm.memset.p0i8.i64(i8*%d1,i8 0,i64 16,i1 false)
store i32 32759,i32*%d3,align 4
store i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@l,i64 0,i32 2)to i8*),i8**%b,align 8
store i8*%dE,i8**%d,align 8
store i8*%dJ,i8**%e,align 8
store i8*null,i8**%f,align 8
store i8*null,i8**%g,align 8
store i8*null,i8**%h,align 8
store i8*getelementptr inbounds(<{[4x i8],i32,[7x i8]}>,<{[4x i8],i32,[7x i8]}>*@r,i64 0,i32 2,i64 0),i8**%i,align 8
store i8*%dP,i8**%j,align 8
store i8*%dS,i8**%k,align 8
store i8*%dV,i8**%l,align 8
store i8*%dY,i8**%m,align 8
store i8*null,i8**%n,align 8
store i8*null,i8**%o,align 8
%d4=call i8*@sml_alloc(i32 inreg 124)#0
%d5=getelementptr inbounds i8,i8*%d4,i64 -4
%d6=bitcast i8*%d5 to i32*
store i32 1342177400,i32*%d6,align 4
%d7=getelementptr inbounds i8,i8*%d4,i64 28
%d8=bitcast i8*%d7 to i32*
store i32 0,i32*%d8,align 1
%d9=load i8*,i8**%b,align 8
%ea=bitcast i8*%d4 to i8**
store i8*%d9,i8**%ea,align 8
%eb=load i8*,i8**%c,align 8
%ec=getelementptr inbounds i8,i8*%d4,i64 8
%ed=bitcast i8*%ec to i8**
store i8*%eb,i8**%ed,align 8
%ee=load i8*,i8**%d,align 8
%ef=getelementptr inbounds i8,i8*%d4,i64 16
%eg=bitcast i8*%ef to i8**
store i8*%ee,i8**%eg,align 8
%eh=getelementptr inbounds i8,i8*%d4,i64 24
%ei=bitcast i8*%eh to i32*
store i32 1,i32*%ei,align 4
%ej=load i8*,i8**%e,align 8
%ek=getelementptr inbounds i8,i8*%d4,i64 32
%el=bitcast i8*%ek to i8**
store i8*%ej,i8**%el,align 8
%em=load i8*,i8**%f,align 8
%en=getelementptr inbounds i8,i8*%d4,i64 40
%eo=bitcast i8*%en to i8**
store i8*%em,i8**%eo,align 8
%ep=load i8*,i8**%g,align 8
%eq=getelementptr inbounds i8,i8*%d4,i64 48
%er=bitcast i8*%eq to i8**
store i8*%ep,i8**%er,align 8
%es=load i8*,i8**%h,align 8
%et=getelementptr inbounds i8,i8*%d4,i64 56
%eu=bitcast i8*%et to i8**
store i8*%es,i8**%eu,align 8
%ev=load i8*,i8**%i,align 8
%ew=getelementptr inbounds i8,i8*%d4,i64 64
%ex=bitcast i8*%ew to i8**
store i8*%ev,i8**%ex,align 8
%ey=load i8*,i8**%j,align 8
%ez=getelementptr inbounds i8,i8*%d4,i64 72
%eA=bitcast i8*%ez to i8**
store i8*%ey,i8**%eA,align 8
%eB=load i8*,i8**%k,align 8
%eC=getelementptr inbounds i8,i8*%d4,i64 80
%eD=bitcast i8*%eC to i8**
store i8*%eB,i8**%eD,align 8
%eE=load i8*,i8**%l,align 8
%eF=getelementptr inbounds i8,i8*%d4,i64 88
%eG=bitcast i8*%eF to i8**
store i8*%eE,i8**%eG,align 8
%eH=load i8*,i8**%m,align 8
%eI=getelementptr inbounds i8,i8*%d4,i64 96
%eJ=bitcast i8*%eI to i8**
store i8*%eH,i8**%eJ,align 8
%eK=load i8*,i8**%n,align 8
%eL=getelementptr inbounds i8,i8*%d4,i64 104
%eM=bitcast i8*%eL to i8**
store i8*%eK,i8**%eM,align 8
%eN=load i8*,i8**%o,align 8
%eO=getelementptr inbounds i8,i8*%d4,i64 112
%eP=bitcast i8*%eO to i8**
store i8*%eN,i8**%eP,align 8
%eQ=getelementptr inbounds i8,i8*%d4,i64 120
%eR=bitcast i8*%eQ to i32*
store i32 32759,i32*%eR,align 4
ret i8*%d4
}
define internal fastcc i32@_SMLL8writeVec_191(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%c,align 8
store i8*%b,i8**%d,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%g,label%i
g:
%h=bitcast i8*%a to i32**
br label%m
i:
call void@sml_check(i32 inreg%e)
%j=load i8*,i8**%d,align 8
%k=bitcast i8**%c to i32***
%l=load i32**,i32***%k,align 8
br label%m
m:
%n=phi i32**[%l,%i],[%h,%g]
%o=phi i8*[%j,%i],[%b,%g]
store i8*null,i8**%d,align 8
%p=load i32*,i32**%n,align 8
%q=load i32,i32*%p,align 4
%r=icmp eq i32%q,0
br i1%r,label%K,label%s
s:
%t=load i8*,i8**@_SMLZN2IO12ClosedStreamE,align 8
store i8*%t,i8**%c,align 8
%u=call i8*@sml_alloc(i32 inreg 20)#0
%v=getelementptr inbounds i8,i8*%u,i64 -4
%w=bitcast i8*%v to i32*
store i32 1342177296,i32*%w,align 4
store i8*%u,i8**%d,align 8
%x=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%y=bitcast i8*%u to i8**
store i8*%x,i8**%y,align 8
%z=getelementptr inbounds i8,i8*%u,i64 8
%A=bitcast i8*%z to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[49x i8]}>,<{[4x i8],i32,[49x i8]}>*@q,i64 0,i32 2,i64 0),i8**%A,align 8
%B=getelementptr inbounds i8,i8*%u,i64 16
%C=bitcast i8*%B to i32*
store i32 3,i32*%C,align 4
%D=call i8*@sml_alloc(i32 inreg 60)#0
%E=getelementptr inbounds i8,i8*%D,i64 -4
%F=bitcast i8*%E to i32*
store i32 1342177336,i32*%F,align 4
%G=getelementptr inbounds i8,i8*%D,i64 56
%H=bitcast i8*%G to i32*
store i32 1,i32*%H,align 4
%I=load i8*,i8**%d,align 8
%J=bitcast i8*%D to i8**
store i8*%I,i8**%J,align 8
call void@sml_raise(i8*inreg%D)#1
unreachable
K:
%L=tail call fastcc i32@_SMLFN15CharVectorSlice6lengthE(i8*inreg%o)
ret i32%L
}
define internal fastcc i32@_SMLL8writeArr_193(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%c,align 8
store i8*%b,i8**%d,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%g,label%i
g:
%h=bitcast i8*%a to i32**
br label%m
i:
call void@sml_check(i32 inreg%e)
%j=load i8*,i8**%d,align 8
%k=bitcast i8**%c to i32***
%l=load i32**,i32***%k,align 8
br label%m
m:
%n=phi i32**[%l,%i],[%h,%g]
%o=phi i8*[%j,%i],[%b,%g]
store i8*null,i8**%d,align 8
%p=load i32*,i32**%n,align 8
%q=load i32,i32*%p,align 4
%r=icmp eq i32%q,0
br i1%r,label%K,label%s
s:
%t=load i8*,i8**@_SMLZN2IO12ClosedStreamE,align 8
store i8*%t,i8**%c,align 8
%u=call i8*@sml_alloc(i32 inreg 20)#0
%v=getelementptr inbounds i8,i8*%u,i64 -4
%w=bitcast i8*%v to i32*
store i32 1342177296,i32*%w,align 4
store i8*%u,i8**%d,align 8
%x=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%y=bitcast i8*%u to i8**
store i8*%x,i8**%y,align 8
%z=getelementptr inbounds i8,i8*%u,i64 8
%A=bitcast i8*%z to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[49x i8]}>,<{[4x i8],i32,[49x i8]}>*@q,i64 0,i32 2,i64 0),i8**%A,align 8
%B=getelementptr inbounds i8,i8*%u,i64 16
%C=bitcast i8*%B to i32*
store i32 3,i32*%C,align 4
%D=call i8*@sml_alloc(i32 inreg 60)#0
%E=getelementptr inbounds i8,i8*%D,i64 -4
%F=bitcast i8*%E to i32*
store i32 1342177336,i32*%F,align 4
%G=getelementptr inbounds i8,i8*%D,i64 56
%H=bitcast i8*%G to i32*
store i32 1,i32*%H,align 4
%I=load i8*,i8**%d,align 8
%J=bitcast i8*%D to i8**
store i8*%I,i8**%J,align 8
call void@sml_raise(i8*inreg%D)#1
unreachable
K:
%L=tail call fastcc i32@_SMLFN14CharArraySlice6lengthE(i8*inreg%o)
ret i32%L
}
define internal fastcc i8*@_SMLLN10TextPrimIO6nullWrE_196(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%c,align 8
store i8*%b,i8**%d,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%g,label%i
g:
%h=bitcast i8*%a to i8**
br label%m
i:
call void@sml_check(i32 inreg%e)
%j=load i8*,i8**%d,align 8
%k=bitcast i8**%c to i8***
%l=load i8**,i8***%k,align 8
br label%m
m:
%n=phi i8**[%l,%i],[%h,%g]
%o=phi i8*[%j,%i],[%b,%g]
store i8*null,i8**%d,align 8
store i8*null,i8**%c,align 8
%p=load i8*,i8**%n,align 8
%q=call fastcc i32@_SMLL8writeVec_191(i8*inreg%p,i8*inreg%o)
%r=tail call i8*@sml_alloc(i32 inreg 12)#0
%s=bitcast i8*%r to i32*
%t=getelementptr inbounds i8,i8*%r,i64 -4
%u=bitcast i8*%t to i32*
store i32 1342177288,i32*%u,align 4
%v=getelementptr inbounds i8,i8*%r,i64 4
%w=bitcast i8*%v to i32*
store i32 0,i32*%w,align 1
store i32%q,i32*%s,align 4
%x=getelementptr inbounds i8,i8*%r,i64 8
%y=bitcast i8*%x to i32*
store i32 0,i32*%y,align 4
ret i8*%r
}
define internal fastcc i8*@_SMLLN10TextPrimIO6nullWrE_199(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%c,align 8
store i8*%b,i8**%d,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%g,label%i
g:
%h=bitcast i8*%a to i8**
br label%m
i:
call void@sml_check(i32 inreg%e)
%j=load i8*,i8**%d,align 8
%k=bitcast i8**%c to i8***
%l=load i8**,i8***%k,align 8
br label%m
m:
%n=phi i8**[%l,%i],[%h,%g]
%o=phi i8*[%j,%i],[%b,%g]
store i8*null,i8**%d,align 8
store i8*null,i8**%c,align 8
%p=load i8*,i8**%n,align 8
%q=call fastcc i32@_SMLL8writeArr_193(i8*inreg%p,i8*inreg%o)
%r=tail call i8*@sml_alloc(i32 inreg 12)#0
%s=bitcast i8*%r to i32*
%t=getelementptr inbounds i8,i8*%r,i64 -4
%u=bitcast i8*%t to i32*
store i32 1342177288,i32*%u,align 4
%v=getelementptr inbounds i8,i8*%r,i64 4
%w=bitcast i8*%v to i32*
store i32 0,i32*%w,align 1
store i32%q,i32*%s,align 4
%x=getelementptr inbounds i8,i8*%r,i64 8
%y=bitcast i8*%x to i32*
store i32 0,i32*%y,align 4
ret i8*%r
}
define internal fastcc i32@_SMLLN10TextPrimIO6nullWrE_200(i32 inreg%a)#4 gc"smlsharp"{
ret i32 1
}
define internal fastcc void@_SMLLN10TextPrimIO6nullWrE_204(i8*inreg%a,i32 inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
%e=bitcast i8*%a to i32**
%f=load i32*,i32**%e,align 8
%g=load i32,i32*%f,align 4
%h=icmp eq i32%g,0
br i1%h,label%A,label%i
i:
%j=load i8*,i8**@_SMLZN2IO12ClosedStreamE,align 8
store i8*%j,i8**%c,align 8
%k=call i8*@sml_alloc(i32 inreg 20)#0
%l=getelementptr inbounds i8,i8*%k,i64 -4
%m=bitcast i8*%l to i32*
store i32 1342177296,i32*%m,align 4
store i8*%k,i8**%d,align 8
%n=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%o=bitcast i8*%k to i8**
store i8*%n,i8**%o,align 8
%p=getelementptr inbounds i8,i8*%k,i64 8
%q=bitcast i8*%p to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[49x i8]}>,<{[4x i8],i32,[49x i8]}>*@q,i64 0,i32 2,i64 0),i8**%q,align 8
%r=getelementptr inbounds i8,i8*%k,i64 16
%s=bitcast i8*%r to i32*
store i32 3,i32*%s,align 4
%t=call i8*@sml_alloc(i32 inreg 60)#0
%u=getelementptr inbounds i8,i8*%t,i64 -4
%v=bitcast i8*%u to i32*
store i32 1342177336,i32*%v,align 4
%w=getelementptr inbounds i8,i8*%t,i64 56
%x=bitcast i8*%w to i32*
store i32 1,i32*%x,align 4
%y=load i8*,i8**%d,align 8
%z=bitcast i8*%t to i8**
store i8*%y,i8**%z,align 8
call void@sml_raise(i8*inreg%t)#1
unreachable
A:
ret void
}
define internal fastcc void@_SMLLN10TextPrimIO6nullWrE_205(i8*inreg%a,i32 inreg%b)#4 gc"smlsharp"{
%c=bitcast i8*%a to i32**
%d=load i32*,i32**%c,align 8
store i32 1,i32*%d,align 4
ret void
}
define fastcc i8*@_SMLFN10TextPrimIO6nullWrE(i32 inreg%a)#4 gc"smlsharp"{
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
%h=alloca i8*,align 8
%i=alloca i8*,align 8
%j=alloca i8*,align 8
%k=alloca i8*,align 8
%l=alloca i8*,align 8
%m=alloca i8*,align 8
%n=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
call void@llvm.gcroot(i8**%h,i8*null)#0
call void@llvm.gcroot(i8**%i,i8*null)#0
call void@llvm.gcroot(i8**%j,i8*null)#0
call void@llvm.gcroot(i8**%k,i8*null)#0
call void@llvm.gcroot(i8**%l,i8*null)#0
call void@llvm.gcroot(i8**%m,i8*null)#0
call void@llvm.gcroot(i8**%n,i8*null)#0
%o=call i8*@sml_alloc(i32 inreg 4)#0
%p=bitcast i8*%o to i32*
%q=getelementptr inbounds i8,i8*%o,i64 -4
%r=bitcast i8*%q to i32*
store i32 536870916,i32*%r,align 4
store i8*%o,i8**%b,align 8
store i32 0,i32*%p,align 4
%s=call i8*@sml_alloc(i32 inreg 12)#0
%t=getelementptr inbounds i8,i8*%s,i64 -4
%u=bitcast i8*%t to i32*
store i32 1342177288,i32*%u,align 4
store i8*%s,i8**%c,align 8
%v=load i8*,i8**%b,align 8
%w=bitcast i8*%s to i8**
store i8*%v,i8**%w,align 8
%x=getelementptr inbounds i8,i8*%s,i64 8
%y=bitcast i8*%x to i32*
store i32 1,i32*%y,align 4
%z=call i8*@sml_alloc(i32 inreg 28)#0
%A=getelementptr inbounds i8,i8*%z,i64 -4
%B=bitcast i8*%A to i32*
store i32 1342177304,i32*%B,align 4
store i8*%z,i8**%d,align 8
%C=load i8*,i8**%c,align 8
%D=bitcast i8*%z to i8**
store i8*%C,i8**%D,align 8
%E=getelementptr inbounds i8,i8*%z,i64 8
%F=bitcast i8*%E to void(...)**
store void(...)*bitcast(i32(i8*,i8*)*@_SMLL8writeVec_191 to void(...)*),void(...)**%F,align 8
%G=getelementptr inbounds i8,i8*%z,i64 16
%H=bitcast i8*%G to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL8writeVec_253 to void(...)*),void(...)**%H,align 8
%I=getelementptr inbounds i8,i8*%z,i64 24
%J=bitcast i8*%I to i32*
store i32 -2147483647,i32*%J,align 4
%K=call i8*@sml_alloc(i32 inreg 12)#0
%L=getelementptr inbounds i8,i8*%K,i64 -4
%M=bitcast i8*%L to i32*
store i32 1342177288,i32*%M,align 4
store i8*%K,i8**%e,align 8
%N=load i8*,i8**%b,align 8
%O=bitcast i8*%K to i8**
store i8*%N,i8**%O,align 8
%P=getelementptr inbounds i8,i8*%K,i64 8
%Q=bitcast i8*%P to i32*
store i32 1,i32*%Q,align 4
%R=call i8*@sml_alloc(i32 inreg 28)#0
%S=getelementptr inbounds i8,i8*%R,i64 -4
%T=bitcast i8*%S to i32*
store i32 1342177304,i32*%T,align 4
store i8*%R,i8**%f,align 8
%U=load i8*,i8**%e,align 8
%V=bitcast i8*%R to i8**
store i8*%U,i8**%V,align 8
%W=getelementptr inbounds i8,i8*%R,i64 8
%X=bitcast i8*%W to void(...)**
store void(...)*bitcast(i32(i8*,i8*)*@_SMLL8writeArr_193 to void(...)*),void(...)**%X,align 8
%Y=getelementptr inbounds i8,i8*%R,i64 16
%Z=bitcast i8*%Y to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL8writeArr_254 to void(...)*),void(...)**%Z,align 8
%aa=getelementptr inbounds i8,i8*%R,i64 24
%ab=bitcast i8*%aa to i32*
store i32 -2147483647,i32*%ab,align 4
%ac=call i8*@sml_alloc(i32 inreg 12)#0
%ad=getelementptr inbounds i8,i8*%ac,i64 -4
%ae=bitcast i8*%ad to i32*
store i32 1342177288,i32*%ae,align 4
store i8*%ac,i8**%g,align 8
%af=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ag=bitcast i8*%ac to i8**
store i8*%af,i8**%ag,align 8
%ah=getelementptr inbounds i8,i8*%ac,i64 8
%ai=bitcast i8*%ah to i32*
store i32 1,i32*%ai,align 4
%aj=call i8*@sml_alloc(i32 inreg 28)#0
%ak=getelementptr inbounds i8,i8*%aj,i64 -4
%al=bitcast i8*%ak to i32*
store i32 1342177304,i32*%al,align 4
store i8*%aj,i8**%c,align 8
%am=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%an=bitcast i8*%aj to i8**
store i8*%am,i8**%an,align 8
%ao=getelementptr inbounds i8,i8*%aj,i64 8
%ap=bitcast i8*%ao to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN10TextPrimIO6nullWrE_196 to void(...)*),void(...)**%ap,align 8
%aq=getelementptr inbounds i8,i8*%aj,i64 16
%ar=bitcast i8*%aq to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN10TextPrimIO6nullWrE_196 to void(...)*),void(...)**%ar,align 8
%as=getelementptr inbounds i8,i8*%aj,i64 24
%at=bitcast i8*%as to i32*
store i32 -2147483647,i32*%at,align 4
%au=call i8*@sml_alloc(i32 inreg 12)#0
%av=getelementptr inbounds i8,i8*%au,i64 -4
%aw=bitcast i8*%av to i32*
store i32 1342177288,i32*%aw,align 4
store i8*%au,i8**%g,align 8
%ax=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ay=bitcast i8*%au to i8**
store i8*%ax,i8**%ay,align 8
%az=getelementptr inbounds i8,i8*%au,i64 8
%aA=bitcast i8*%az to i32*
store i32 1,i32*%aA,align 4
%aB=call i8*@sml_alloc(i32 inreg 12)#0
%aC=getelementptr inbounds i8,i8*%aB,i64 -4
%aD=bitcast i8*%aC to i32*
store i32 1342177288,i32*%aD,align 4
store i8*%aB,i8**%c,align 8
%aE=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%aF=bitcast i8*%aB to i8**
store i8*%aE,i8**%aF,align 8
%aG=getelementptr inbounds i8,i8*%aB,i64 8
%aH=bitcast i8*%aG to i32*
store i32 1,i32*%aH,align 4
%aI=call i8*@sml_alloc(i32 inreg 28)#0
%aJ=getelementptr inbounds i8,i8*%aI,i64 -4
%aK=bitcast i8*%aJ to i32*
store i32 1342177304,i32*%aK,align 4
store i8*%aI,i8**%e,align 8
%aL=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aM=bitcast i8*%aI to i8**
store i8*%aL,i8**%aM,align 8
%aN=getelementptr inbounds i8,i8*%aI,i64 8
%aO=bitcast i8*%aN to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN10TextPrimIO6nullWrE_199 to void(...)*),void(...)**%aO,align 8
%aP=getelementptr inbounds i8,i8*%aI,i64 16
%aQ=bitcast i8*%aP to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN10TextPrimIO6nullWrE_199 to void(...)*),void(...)**%aQ,align 8
%aR=getelementptr inbounds i8,i8*%aI,i64 24
%aS=bitcast i8*%aR to i32*
store i32 -2147483647,i32*%aS,align 4
%aT=call i8*@sml_alloc(i32 inreg 12)#0
%aU=getelementptr inbounds i8,i8*%aT,i64 -4
%aV=bitcast i8*%aU to i32*
store i32 1342177288,i32*%aV,align 4
store i8*%aT,i8**%c,align 8
%aW=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%aX=bitcast i8*%aT to i8**
store i8*%aW,i8**%aX,align 8
%aY=getelementptr inbounds i8,i8*%aT,i64 8
%aZ=bitcast i8*%aY to i32*
store i32 1,i32*%aZ,align 4
%a0=call i8*@sml_alloc(i32 inreg 12)#0
%a1=getelementptr inbounds i8,i8*%a0,i64 -4
%a2=bitcast i8*%a1 to i32*
store i32 1342177288,i32*%a2,align 4
store i8*%a0,i8**%e,align 8
%a3=load i8*,i8**%b,align 8
%a4=bitcast i8*%a0 to i8**
store i8*%a3,i8**%a4,align 8
%a5=getelementptr inbounds i8,i8*%a0,i64 8
%a6=bitcast i8*%a5 to i32*
store i32 1,i32*%a6,align 4
%a7=call i8*@sml_alloc(i32 inreg 28)#0
%a8=getelementptr inbounds i8,i8*%a7,i64 -4
%a9=bitcast i8*%a8 to i32*
store i32 1342177304,i32*%a9,align 4
store i8*%a7,i8**%h,align 8
%ba=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%bb=bitcast i8*%a7 to i8**
store i8*%ba,i8**%bb,align 8
%bc=getelementptr inbounds i8,i8*%a7,i64 8
%bd=bitcast i8*%bc to void(...)**
store void(...)*bitcast(void(i8*,i32)*@_SMLLN10TextPrimIO6nullWrE_204 to void(...)*),void(...)**%bd,align 8
%be=getelementptr inbounds i8,i8*%a7,i64 16
%bf=bitcast i8*%be to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN10TextPrimIO6nullWrE_258 to void(...)*),void(...)**%bf,align 8
%bg=getelementptr inbounds i8,i8*%a7,i64 24
%bh=bitcast i8*%bg to i32*
store i32 -2147483647,i32*%bh,align 4
%bi=call i8*@sml_alloc(i32 inreg 12)#0
%bj=getelementptr inbounds i8,i8*%bi,i64 -4
%bk=bitcast i8*%bj to i32*
store i32 1342177288,i32*%bk,align 4
store i8*%bi,i8**%e,align 8
%bl=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%bm=bitcast i8*%bi to i8**
store i8*%bl,i8**%bm,align 8
%bn=getelementptr inbounds i8,i8*%bi,i64 8
%bo=bitcast i8*%bn to i32*
store i32 1,i32*%bo,align 4
%bp=call i8*@sml_alloc(i32 inreg 12)#0
%bq=getelementptr inbounds i8,i8*%bp,i64 -4
%br=bitcast i8*%bq to i32*
store i32 1342177288,i32*%br,align 4
store i8*%bp,i8**%h,align 8
%bs=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%bt=bitcast i8*%bp to i8**
store i8*%bs,i8**%bt,align 8
%bu=getelementptr inbounds i8,i8*%bp,i64 8
%bv=bitcast i8*%bu to i32*
store i32 1,i32*%bv,align 4
%bw=call i8*@sml_alloc(i32 inreg 28)#0
%bx=getelementptr inbounds i8,i8*%bw,i64 -4
%by=bitcast i8*%bx to i32*
store i32 1342177304,i32*%by,align 4
store i8*%bw,i8**%b,align 8
%bz=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%bA=bitcast i8*%bw to i8**
store i8*%bz,i8**%bA,align 8
%bB=getelementptr inbounds i8,i8*%bw,i64 8
%bC=bitcast i8*%bB to void(...)**
store void(...)*bitcast(void(i8*,i32)*@_SMLLN10TextPrimIO6nullWrE_205 to void(...)*),void(...)**%bC,align 8
%bD=getelementptr inbounds i8,i8*%bw,i64 16
%bE=bitcast i8*%bD to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN10TextPrimIO6nullWrE_259 to void(...)*),void(...)**%bE,align 8
%bF=getelementptr inbounds i8,i8*%bw,i64 24
%bG=bitcast i8*%bF to i32*
store i32 -2147483647,i32*%bG,align 4
%bH=call i8*@sml_alloc(i32 inreg 12)#0
%bI=getelementptr inbounds i8,i8*%bH,i64 -4
%bJ=bitcast i8*%bI to i32*
store i32 1342177288,i32*%bJ,align 4
store i8*%bH,i8**%h,align 8
%bK=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%bL=bitcast i8*%bH to i8**
store i8*%bK,i8**%bL,align 8
%bM=getelementptr inbounds i8,i8*%bH,i64 8
%bN=bitcast i8*%bM to i32*
store i32 1,i32*%bN,align 4
%bO=call i8*@sml_alloc(i32 inreg 12)#0
%bP=getelementptr inbounds i8,i8*%bO,i64 -4
%bQ=bitcast i8*%bP to i32*
store i32 1342177288,i32*%bQ,align 4
store i8*%bO,i8**%f,align 8
%bR=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%bS=bitcast i8*%bO to i8**
store i8*%bR,i8**%bS,align 8
%bT=getelementptr inbounds i8,i8*%bO,i64 8
%bU=bitcast i8*%bT to i32*
store i32 1,i32*%bU,align 4
%bV=call i8*@sml_alloc(i32 inreg 116)#0
%bW=getelementptr inbounds i8,i8*%bV,i64 -4
%bX=bitcast i8*%bW to i32*
store i32 1342177392,i32*%bX,align 4
%bY=getelementptr inbounds i8,i8*%bV,i64 20
%bZ=bitcast i8*%bY to i32*
store i32 0,i32*%bZ,align 1
%b0=load i8*,i8**%e,align 8
%b1=bitcast i8*%bV to i8**
store i8*%b0,i8**%b1,align 8
%b2=getelementptr inbounds i8,i8*%bV,i64 8
%b3=bitcast i8*%b2 to i8**
store i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,i32}>,<{[4x i8],i32,i8*,i32}>*@p,i64 0,i32 2)to i8*),i8**%b3,align 8
%b4=getelementptr inbounds i8,i8*%bV,i64 16
%b5=bitcast i8*%b4 to i32*
store i32 1,i32*%b5,align 4
%b6=load i8*,i8**%b,align 8
%b7=getelementptr inbounds i8,i8*%bV,i64 24
%b8=bitcast i8*%b7 to i8**
store i8*%b6,i8**%b8,align 8
%b9=getelementptr inbounds i8,i8*%bV,i64 32
%ca=getelementptr inbounds i8,i8*%bV,i64 56
%cb=bitcast i8*%ca to i8**
call void@llvm.memset.p0i8.i64(i8*%b9,i8 0,i64 24,i1 false)
store i8*getelementptr inbounds(<{[4x i8],i32,[7x i8]}>,<{[4x i8],i32,[7x i8]}>*@r,i64 0,i32 2,i64 0),i8**%cb,align 8
%cc=getelementptr inbounds i8,i8*%bV,i64 64
call void@llvm.memset.p0i8.i64(i8*%cc,i8 0,i64 16,i1 false)
%cd=load i8*,i8**%h,align 8
%ce=getelementptr inbounds i8,i8*%bV,i64 80
%cf=bitcast i8*%ce to i8**
store i8*%cd,i8**%cf,align 8
%cg=load i8*,i8**%c,align 8
%ch=getelementptr inbounds i8,i8*%bV,i64 88
%ci=bitcast i8*%ch to i8**
store i8*%cg,i8**%ci,align 8
%cj=load i8*,i8**%f,align 8
%ck=getelementptr inbounds i8,i8*%bV,i64 96
%cl=bitcast i8*%ck to i8**
store i8*%cj,i8**%cl,align 8
%cm=load i8*,i8**%g,align 8
%cn=getelementptr inbounds i8,i8*%bV,i64 104
%co=bitcast i8*%cn to i8**
store i8*%cm,i8**%co,align 8
%cp=getelementptr inbounds i8,i8*%bV,i64 112
%cq=bitcast i8*%cp to i32*
store i32 16379,i32*%cq,align 4
store i8*%b0,i8**%b,align 8
store i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,i32}>,<{[4x i8],i32,i8*,i32}>*@p,i64 0,i32 2)to i8*),i8**%c,align 8
store i8*%b6,i8**%d,align 8
store i8*null,i8**%e,align 8
store i8*null,i8**%f,align 8
store i8*null,i8**%g,align 8
store i8*getelementptr inbounds(<{[4x i8],i32,[7x i8]}>,<{[4x i8],i32,[7x i8]}>*@r,i64 0,i32 2,i64 0),i8**%h,align 8
store i8*null,i8**%i,align 8
store i8*null,i8**%j,align 8
store i8*%cd,i8**%k,align 8
store i8*%cg,i8**%l,align 8
store i8*%cj,i8**%m,align 8
store i8*%cm,i8**%n,align 8
%cr=call i8*@sml_alloc(i32 inreg 116)#0
%cs=getelementptr inbounds i8,i8*%cr,i64 -4
%ct=bitcast i8*%cs to i32*
store i32 1342177392,i32*%ct,align 4
%cu=getelementptr inbounds i8,i8*%cr,i64 20
%cv=bitcast i8*%cu to i32*
store i32 0,i32*%cv,align 1
%cw=load i8*,i8**%b,align 8
%cx=bitcast i8*%cr to i8**
store i8*%cw,i8**%cx,align 8
%cy=load i8*,i8**%c,align 8
%cz=getelementptr inbounds i8,i8*%cr,i64 8
%cA=bitcast i8*%cz to i8**
store i8*%cy,i8**%cA,align 8
%cB=getelementptr inbounds i8,i8*%cr,i64 16
%cC=bitcast i8*%cB to i32*
store i32 1,i32*%cC,align 4
%cD=load i8*,i8**%d,align 8
%cE=getelementptr inbounds i8,i8*%cr,i64 24
%cF=bitcast i8*%cE to i8**
store i8*%cD,i8**%cF,align 8
%cG=load i8*,i8**%e,align 8
%cH=getelementptr inbounds i8,i8*%cr,i64 32
%cI=bitcast i8*%cH to i8**
store i8*%cG,i8**%cI,align 8
%cJ=load i8*,i8**%f,align 8
%cK=getelementptr inbounds i8,i8*%cr,i64 40
%cL=bitcast i8*%cK to i8**
store i8*%cJ,i8**%cL,align 8
%cM=load i8*,i8**%g,align 8
%cN=getelementptr inbounds i8,i8*%cr,i64 48
%cO=bitcast i8*%cN to i8**
store i8*%cM,i8**%cO,align 8
%cP=load i8*,i8**%h,align 8
%cQ=getelementptr inbounds i8,i8*%cr,i64 56
%cR=bitcast i8*%cQ to i8**
store i8*%cP,i8**%cR,align 8
%cS=load i8*,i8**%i,align 8
%cT=getelementptr inbounds i8,i8*%cr,i64 64
%cU=bitcast i8*%cT to i8**
store i8*%cS,i8**%cU,align 8
%cV=load i8*,i8**%j,align 8
%cW=getelementptr inbounds i8,i8*%cr,i64 72
%cX=bitcast i8*%cW to i8**
store i8*%cV,i8**%cX,align 8
%cY=load i8*,i8**%k,align 8
%cZ=getelementptr inbounds i8,i8*%cr,i64 80
%c0=bitcast i8*%cZ to i8**
store i8*%cY,i8**%c0,align 8
%c1=load i8*,i8**%l,align 8
%c2=getelementptr inbounds i8,i8*%cr,i64 88
%c3=bitcast i8*%c2 to i8**
store i8*%c1,i8**%c3,align 8
%c4=load i8*,i8**%m,align 8
%c5=getelementptr inbounds i8,i8*%cr,i64 96
%c6=bitcast i8*%c5 to i8**
store i8*%c4,i8**%c6,align 8
%c7=load i8*,i8**%n,align 8
%c8=getelementptr inbounds i8,i8*%cr,i64 104
%c9=bitcast i8*%c8 to i8**
store i8*%c7,i8**%c9,align 8
%da=getelementptr inbounds i8,i8*%cr,i64 112
%db=bitcast i8*%da to i32*
store i32 16379,i32*%db,align 4
ret i8*%cr
}
define fastcc i32@_SMLFN10TextPrimIO7compareE(i8*inreg%a)local_unnamed_addr#2 gc"smlsharp"{
i:
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%g,label%e
e:
call void@sml_check(i32 inreg%c)
%f=load i8*,i8**%b,align 8
br label%g
g:
%h=phi i8*[%f,%e],[%a,%i]
store i8*null,i8**%b,align 8
%j=load i8*,i8**getelementptr inbounds(<{[4x i8],i32,[1x i8*]}>,<{[4x i8],i32,[1x i8*]}>*@_SML_gvar4f4a36ea37e56c58_prim_io_text,i64 0,i32 2,i64 0),align 8
%k=getelementptr inbounds i8,i8*%j,i64 16
%l=bitcast i8*%k to i8*(i8*,i8*)**
%m=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%l,align 8
%n=bitcast i8*%j to i8**
%o=load i8*,i8**%n,align 8
%p=call fastcc i8*%m(i8*inreg%o,i8*inreg%h)
%q=bitcast i8*%p to i32*
%r=load i32,i32*%q,align 4
ret i32%r
}
define internal fastcc i8*@_SMLL12readaToReadv_211(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=tail call fastcc i8*@_SMLL12readaToReadv_111(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLL14readaToReadvNB_213(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=tail call fastcc i8*@_SMLL14readaToReadvNB_114(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLL12readvToReada_215(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLL12readvToReada_117(i8*inreg%a,i8*inreg%b)
%d=tail call i8*@sml_alloc(i32 inreg 4)#0
%e=bitcast i8*%d to i32*
%f=getelementptr inbounds i8,i8*%d,i64 -4
%g=bitcast i8*%f to i32*
store i32 4,i32*%g,align 4
store i32%c,i32*%e,align 4
ret i8*%d
}
define internal fastcc i8*@_SMLL8readVec_G_218(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=tail call fastcc i8*@_SMLL8readVec_G_123(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLL8readVec_G_219(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=tail call fastcc i8*@_SMLL8readVec_G_124(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLL8readArr_G_220(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLL8readArr_G_125(i8*inreg%a,i8*inreg%b)
%d=tail call i8*@sml_alloc(i32 inreg 4)#0
%e=bitcast i8*%d to i32*
%f=getelementptr inbounds i8,i8*%d,i64 -4
%g=bitcast i8*%f to i32*
store i32 4,i32*%g,align 4
store i32%c,i32*%e,align 4
ret i8*%d
}
define internal fastcc i8*@_SMLL8readArr_G_221(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLL8readArr_G_126(i8*inreg%a,i8*inreg%b)
%d=tail call i8*@sml_alloc(i32 inreg 4)#0
%e=bitcast i8*%d to i32*
%f=getelementptr inbounds i8,i8*%d,i64 -4
%g=bitcast i8*%f to i32*
store i32 4,i32*%g,align 4
store i32%c,i32*%e,align 4
ret i8*%d
}
define internal fastcc i8*@_SMLLN10TextPrimIO13augmentReaderE_222(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN10TextPrimIO13augmentReaderE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLL14writeaToWritev_223(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLL14writeaToWritev_129(i8*inreg%a,i8*inreg%b)
%d=tail call i8*@sml_alloc(i32 inreg 4)#0
%e=bitcast i8*%d to i32*
%f=getelementptr inbounds i8,i8*%d,i64 -4
%g=bitcast i8*%f to i32*
store i32 4,i32*%g,align 4
store i32%c,i32*%e,align 4
ret i8*%d
}
define internal fastcc i8*@_SMLL9writeVec_G_226(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLL9writeVec_G_136(i8*inreg%a,i8*inreg%b)
%d=tail call i8*@sml_alloc(i32 inreg 4)#0
%e=bitcast i8*%d to i32*
%f=getelementptr inbounds i8,i8*%d,i64 -4
%g=bitcast i8*%f to i32*
store i32 4,i32*%g,align 4
store i32%c,i32*%e,align 4
ret i8*%d
}
define internal fastcc i8*@_SMLL9writeVec_G_227(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLL9writeVec_G_137(i8*inreg%a,i8*inreg%b)
%d=tail call i8*@sml_alloc(i32 inreg 4)#0
%e=bitcast i8*%d to i32*
%f=getelementptr inbounds i8,i8*%d,i64 -4
%g=bitcast i8*%f to i32*
store i32 4,i32*%g,align 4
store i32%c,i32*%e,align 4
ret i8*%d
}
define internal fastcc i8*@_SMLL9writeVec_G_228(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLL9writeVec_G_138(i8*inreg%a,i8*inreg%b)
%d=tail call i8*@sml_alloc(i32 inreg 4)#0
%e=bitcast i8*%d to i32*
%f=getelementptr inbounds i8,i8*%d,i64 -4
%g=bitcast i8*%f to i32*
store i32 4,i32*%g,align 4
store i32%c,i32*%e,align 4
ret i8*%d
}
define internal fastcc i8*@_SMLL9writeArr_G_229(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLL9writeArr_G_139(i8*inreg%a,i8*inreg%b)
%d=tail call i8*@sml_alloc(i32 inreg 4)#0
%e=bitcast i8*%d to i32*
%f=getelementptr inbounds i8,i8*%d,i64 -4
%g=bitcast i8*%f to i32*
store i32 4,i32*%g,align 4
store i32%c,i32*%e,align 4
ret i8*%d
}
define internal fastcc i8*@_SMLL9writeArr_G_230(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLL9writeArr_G_140(i8*inreg%a,i8*inreg%b)
%d=tail call i8*@sml_alloc(i32 inreg 4)#0
%e=bitcast i8*%d to i32*
%f=getelementptr inbounds i8,i8*%d,i64 -4
%g=bitcast i8*%f to i32*
store i32 4,i32*%g,align 4
store i32%c,i32*%e,align 4
ret i8*%d
}
define internal fastcc i8*@_SMLL9writeArr_G_231(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLL9writeArr_G_142(i8*inreg%a,i8*inreg%b)
%d=tail call i8*@sml_alloc(i32 inreg 4)#0
%e=bitcast i8*%d to i32*
%f=getelementptr inbounds i8,i8*%d,i64 -4
%g=bitcast i8*%f to i32*
store i32 4,i32*%g,align 4
store i32%c,i32*%e,align 4
ret i8*%d
}
define internal fastcc i8*@_SMLL11writeArrNB_G_232(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLL11writeArrNB_G_144(i8*inreg%a,i8*inreg%b)
%d=tail call i8*@sml_alloc(i32 inreg 4)#0
%e=bitcast i8*%d to i32*
%f=getelementptr inbounds i8,i8*%d,i64 -4
%g=bitcast i8*%f to i32*
store i32 4,i32*%g,align 4
store i32%c,i32*%e,align 4
ret i8*%d
}
define internal fastcc i8*@_SMLLN10TextPrimIO13augmentWriterE_233(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN10TextPrimIO13augmentWriterE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLL5avail_234(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=tail call fastcc i32@_SMLL5avail_148(i8*inreg%a,i32 inreg%d)
%f=tail call i8*@sml_alloc(i32 inreg 4)#0
%g=bitcast i8*%f to i32*
%h=getelementptr inbounds i8,i8*%f,i64 -4
%i=bitcast i8*%h to i32*
store i32 4,i32*%i,align 4
store i32%e,i32*%g,align 4
ret i8*%f
}
define internal fastcc i8*@_SMLL5readV_235(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=tail call fastcc i8*@_SMLL5readV_152(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLL5readA_236(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLL5readA_156(i8*inreg%a,i8*inreg%b)
%d=tail call i8*@sml_alloc(i32 inreg 4)#0
%e=bitcast i8*%d to i32*
%f=getelementptr inbounds i8,i8*%d,i64 -4
%g=bitcast i8*%f to i32*
store i32 4,i32*%g,align 4
store i32%c,i32*%e,align 4
ret i8*%d
}
define internal fastcc i8*@_SMLL7checked_237(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=tail call fastcc i32@_SMLL7checked_158(i8*inreg%a,i32 inreg%d)
%f=tail call i8*@sml_alloc(i32 inreg 4)#0
%g=bitcast i8*%f to i32*
%h=getelementptr inbounds i8,i8*%f,i64 -4
%i=bitcast i8*%h to i32*
store i32 4,i32*%i,align 4
store i32%e,i32*%g,align 4
ret i8*%f
}
define internal fastcc i8*@_SMLL7checked_238(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=tail call fastcc i8*@_SMLL7checked_159(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLN10TextPrimIO10openVectorE_240(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=tail call fastcc i8*@_SMLLN10TextPrimIO10openVectorE_162(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLN10TextPrimIO10openVectorE_243(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=tail call fastcc i8*@_SMLLN10TextPrimIO10openVectorE_168(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLN10TextPrimIO10openVectorE_244(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
tail call fastcc void@_SMLLN10TextPrimIO10openVectorE_170(i8*inreg%a,i32 inreg%d)
%e=tail call i8*@sml_alloc(i32 inreg 4)#0
%f=bitcast i8*%e to i32*
%g=getelementptr inbounds i8,i8*%e,i64 -4
%h=bitcast i8*%g to i32*
store i32 4,i32*%h,align 4
store i32 0,i32*%f,align 4
ret i8*%e
}
define internal fastcc i8*@_SMLLN10TextPrimIO10openVectorE_245(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=bitcast i8*%a to i32**
%d=load i32*,i32**%c,align 8
store i32 1,i32*%d,align 4
%e=tail call i8*@sml_alloc(i32 inreg 4)#0
%f=bitcast i8*%e to i32*
%g=getelementptr inbounds i8,i8*%e,i64 -4
%h=bitcast i8*%g to i32*
store i32 4,i32*%h,align 4
store i32 0,i32*%f,align 4
ret i8*%e
}
define internal fastcc i8*@_SMLLN10TextPrimIO10openVectorE_246(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN10TextPrimIO10openVectorE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLL7checked_247(i8*inreg%a,i8*inreg%b,i8*inreg%c)#4 gc"smlsharp"{
%d=bitcast i8*%b to i32*
%e=load i32,i32*%d,align 4
%f=bitcast i8*%c to i32*
%g=load i32,i32*%f,align 4
%h=tail call fastcc i8*@_SMLL7checked_177(i8*inreg%a,i32 inreg%e,i32 inreg%g)
ret i8*%h
}
define internal fastcc i8*@_SMLL7checked_248(i8*inreg%a,i8*inreg%b,i8*inreg%c)#4 gc"smlsharp"{
%d=bitcast i8*%b to i32*
%e=load i32,i32*%d,align 4
%f=bitcast i8*%c to i32*
%g=load i32,i32*%f,align 4
%h=tail call fastcc i8*@_SMLL7checked_179(i8*inreg%a,i32 inreg%e,i32 inreg%g)
ret i8*%h
}
define internal fastcc i8*@_SMLLN10TextPrimIO6nullRdE_249(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
ret i8*bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@k,i64 0,i32 2)to i8*)
}
define internal fastcc i8*@_SMLLN10TextPrimIO6nullRdE_250(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
tail call fastcc void@_SMLLN10TextPrimIO6nullRdE_185(i8*inreg%a,i32 inreg%d)
%e=tail call i8*@sml_alloc(i32 inreg 4)#0
%f=bitcast i8*%e to i32*
%g=getelementptr inbounds i8,i8*%e,i64 -4
%h=bitcast i8*%g to i32*
store i32 4,i32*%h,align 4
store i32 0,i32*%f,align 4
ret i8*%e
}
define internal fastcc i8*@_SMLLN10TextPrimIO6nullRdE_251(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=bitcast i8*%a to i32**
%d=load i32*,i32**%c,align 8
store i32 1,i32*%d,align 4
%e=tail call i8*@sml_alloc(i32 inreg 4)#0
%f=bitcast i8*%e to i32*
%g=getelementptr inbounds i8,i8*%e,i64 -4
%h=bitcast i8*%g to i32*
store i32 4,i32*%h,align 4
store i32 0,i32*%f,align 4
ret i8*%e
}
define internal fastcc i8*@_SMLLN10TextPrimIO6nullRdE_252(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN10TextPrimIO6nullRdE(i32 inreg undef)
ret i8*%c
}
define internal fastcc i8*@_SMLL8writeVec_253(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLL8writeVec_191(i8*inreg%a,i8*inreg%b)
%d=tail call i8*@sml_alloc(i32 inreg 4)#0
%e=bitcast i8*%d to i32*
%f=getelementptr inbounds i8,i8*%d,i64 -4
%g=bitcast i8*%f to i32*
store i32 4,i32*%g,align 4
store i32%c,i32*%e,align 4
ret i8*%d
}
define internal fastcc i8*@_SMLL8writeArr_254(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLL8writeArr_193(i8*inreg%a,i8*inreg%b)
%d=tail call i8*@sml_alloc(i32 inreg 4)#0
%e=bitcast i8*%d to i32*
%f=getelementptr inbounds i8,i8*%d,i64 -4
%g=bitcast i8*%f to i32*
store i32 4,i32*%g,align 4
store i32%c,i32*%e,align 4
ret i8*%d
}
define internal fastcc i8*@_SMLLN10TextPrimIO6nullWrE_257(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call i8*@sml_alloc(i32 inreg 4)#0
%d=bitcast i8*%c to i32*
%e=getelementptr inbounds i8,i8*%c,i64 -4
%f=bitcast i8*%e to i32*
store i32 4,i32*%f,align 4
store i32 1,i32*%d,align 4
ret i8*%c
}
define internal fastcc i8*@_SMLLN10TextPrimIO6nullWrE_258(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
tail call fastcc void@_SMLLN10TextPrimIO6nullWrE_204(i8*inreg%a,i32 inreg%d)
%e=tail call i8*@sml_alloc(i32 inreg 4)#0
%f=bitcast i8*%e to i32*
%g=getelementptr inbounds i8,i8*%e,i64 -4
%h=bitcast i8*%g to i32*
store i32 4,i32*%h,align 4
store i32 0,i32*%f,align 4
ret i8*%e
}
define internal fastcc i8*@_SMLLN10TextPrimIO6nullWrE_259(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=bitcast i8*%a to i32**
%d=load i32*,i32**%c,align 8
store i32 1,i32*%d,align 4
%e=tail call i8*@sml_alloc(i32 inreg 4)#0
%f=bitcast i8*%e to i32*
%g=getelementptr inbounds i8,i8*%e,i64 -4
%h=bitcast i8*%g to i32*
store i32 4,i32*%h,align 4
store i32 0,i32*%f,align 4
ret i8*%e
}
define internal fastcc i8*@_SMLLN10TextPrimIO6nullWrE_260(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN10TextPrimIO6nullWrE(i32 inreg undef)
ret i8*%c
}
declare void@llvm.memcpy.p0i8.p0i8.i32(i8*,i8*,i32,i1)#0
declare void@llvm.memset.p0i8.i32(i8*,i8,i32,i1)#0
declare void@llvm.lifetime.start.p0i8(i64,i8*)#0
declare void@llvm.lifetime.end.p0i8(i64,i8*)#0
declare void@llvm.memset.p0i8.i64(i8*,i8,i64,i1)#0
attributes#0={nounwind}
attributes#1={noreturn}
attributes#2={uwtable}
attributes#3={noreturn nounwind}
attributes#4={nounwind uwtable}
