@sml_check_flag=external local_unnamed_addr global i32
@_SMLZN16SMLSharp__Runtime6SysErrE=external local_unnamed_addr global i8*
@_SMLZN6TextIO6stdErrE=external local_unnamed_addr global i8*
@_SMLZN7Control12printCommandE=external local_unnamed_addr global i8*
@a=private unnamed_addr constant<{[4x i8],i32,[2x i8]}><{[4x i8]zeroinitializer,i32 -2147483646,[2x i8]c"\0A\00"}>,align 8
@b=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i8*)*@_SMLFN9CoreUtils9testExistE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN9CoreUtils9testExistE_130 to void(...)*),i32 -2147483647}>,align 8
@c=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i8*)*@_SMLFN9CoreUtils7testDirE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN9CoreUtils7testDirE_131 to void(...)*),i32 -2147483647}>,align 8
@d=private unnamed_addr constant<{[4x i8],i32,[7x i8]}><{[4x i8]zeroinitializer,i32 -2147483641,[7x i8]c"rm -f \00"}>,align 8
@e=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLFN9CoreUtils4rm__fE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN9CoreUtils4rm__fE_132 to void(...)*),i32 -2147483647}>,align 8
@f=private unnamed_addr constant<{[4x i8],i32,[7x i8]}><{[4x i8]zeroinitializer,i32 -2147483641,[7x i8]c"rmdir \00"}>,align 8
@g=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLFN9CoreUtils7rmdir__fE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN9CoreUtils7rmdir__fE_133 to void(...)*),i32 -2147483647}>,align 8
@h=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLFN9CoreUtils12makeTextFileE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN9CoreUtils12makeTextFileE_136 to void(...)*),i32 -2147483647}>,align 8
@i=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLFN9CoreUtils11makeBinFileE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN9CoreUtils11makeBinFileE_137 to void(...)*),i32 -2147483647}>,align 8
@j=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLFN9CoreUtils13makeTextFile_GE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN9CoreUtils13makeTextFile_GE_139 to void(...)*),i32 -2147483647}>,align 8
@k=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN9CoreUtils12readTextFileE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN9CoreUtils12readTextFileE_140 to void(...)*),i32 -2147483647}>,align 8
@l=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN9CoreUtils11readBinFileE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN9CoreUtils11readBinFileE_141 to void(...)*),i32 -2147483647}>,align 8
@m=private unnamed_addr constant<{[4x i8],i32,[4x i8]}><{[4x i8]zeroinitializer,i32 -2147483644,[4x i8]c"cp \00"}>,align 8
@n=private unnamed_addr constant<{[4x i8],i32,[2x i8]}><{[4x i8]zeroinitializer,i32 -2147483646,[2x i8]c" \00"}>,align 8
@o=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN9CoreUtils2cpE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN9CoreUtils2cpE_145 to void(...)*),i32 -2147483647}>,align 8
@p=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLFN9CoreUtils7newFileE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN9CoreUtils7newFileE_147 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN9CoreUtils7newFileE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@p,i64 0,i32 2)to i8*)
@_SMLZN9CoreUtils9testExistE=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*)
@_SMLZN9CoreUtils7testDirE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@c,i64 0,i32 2)to i8*)
@_SMLZN9CoreUtils4rm__fE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@e,i64 0,i32 2)to i8*)
@q=private unnamed_addr constant<{[4x i8],i32,[7x i8]}><{[4x i8]zeroinitializer,i32 -2147483641,[7x i8]c"mkdir \00"}>,align 8
@r=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLFN9CoreUtils5mkdirE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN9CoreUtils5mkdirE_148 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN9CoreUtils5mkdirE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@r,i64 0,i32 2)to i8*)
@_SMLZN9CoreUtils7rmdir__fE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@g,i64 0,i32 2)to i8*)
@s=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32,i32)*@_SMLFN9CoreUtils5chdirE to void(...)*),void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLN9CoreUtils5chdirE_149 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN9CoreUtils5chdirE=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*)
@_SMLZN9CoreUtils12makeTextFileE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@h,i64 0,i32 2)to i8*)
@_SMLZN9CoreUtils11makeBinFileE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@i,i64 0,i32 2)to i8*)
@_SMLZN9CoreUtils13makeTextFile_GE=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*)
@_SMLZN9CoreUtils12readTextFileE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@k,i64 0,i32 2)to i8*)
@_SMLZN9CoreUtils11readBinFileE=local_unnamed_addr constant 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*)
@_SMLZN9CoreUtils2cpE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@o,i64 0,i32 2)to i8*)
@t=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN9CoreUtils3catE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN9CoreUtils3catE_151 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN9CoreUtils3catE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@t,i64 0,i32 2)to i8*)
@_SML_ftabbda7a2fa42fa5d88_CoreUtils=external global i8
@u=private unnamed_addr global i8 0
declare void@llvm.gcroot(i8**,i8*)#0
declare i8*@sml_alloc(i32 inreg)local_unnamed_addr#0
declare void@sml_check(i32 inreg)local_unnamed_addr
declare void@sml_gcroot(i8*,void()*,i8*,i8*)local_unnamed_addr#0
declare i32@sml_personality(...)#0
declare void@sml_raise(i8*inreg)local_unnamed_addr#1
declare i32@_SMLFN11Word8Vector6lengthE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN16SMLSharp__Runtime9errorNameE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare void@_SMLFN18SMLSharp__OSFileSys5chDirE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i32@_SMLFN18SMLSharp__OSFileSys5isDirE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare void@_SMLFN18SMLSharp__OSFileSys5mkDirE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare void@_SMLFN18SMLSharp__OSFileSys5rmDirE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN18SMLSharp__OSFileSys6getDirE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare void@_SMLFN18SMLSharp__OSFileSys6removeE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i32@_SMLFN18SMLSharp__OSFileSys8fileSizeE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN5BinIO10openAppendE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN5BinIO6inputNE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare void@_SMLFN5BinIO6outputE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare void@_SMLFN5BinIO7closeInE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare void@_SMLFN5BinIO8closeOutE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN5BinIO8inputAllE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN6String1_ZE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN6TextIO6inputNE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare void@_SMLFN6TextIO6outputE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare void@_SMLFN6TextIO7closeInE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare void@_SMLFN6TextIO8closeOutE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN6TextIO8inputAllE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN8Filename5BinIO6openInE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN8Filename5BinIO7openOutE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN8Filename6TextIO6openInE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN8Filename6TextIO7openOutE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN8Filename8toStringE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_maine08a2a3237fbaf1b_Word8Vector()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_mainb802741546ad758e_SMLSharp_OSFileSys()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main00d884c96265bfea_SMLSharp_Runtime()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main21c7617ebc9dc739_bin_io()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main1ef93e13728790b1_String()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main3446b7b079949ccf_text_io()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_maina8c984cf5ab1458f_Control()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_maine29d9c3af819282f_Filename()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_loade08a2a3237fbaf1b_Word8Vector(i8*)local_unnamed_addr
declare void@_SML_loadb802741546ad758e_SMLSharp_OSFileSys(i8*)local_unnamed_addr
declare void@_SML_load00d884c96265bfea_SMLSharp_Runtime(i8*)local_unnamed_addr
declare void@_SML_load21c7617ebc9dc739_bin_io(i8*)local_unnamed_addr
declare void@_SML_load1ef93e13728790b1_String(i8*)local_unnamed_addr
declare void@_SML_load3446b7b079949ccf_text_io(i8*)local_unnamed_addr
declare void@_SML_loada8c984cf5ab1458f_Control(i8*)local_unnamed_addr
declare void@_SML_loade29d9c3af819282f_Filename(i8*)local_unnamed_addr
define private void@_SML_tabbbda7a2fa42fa5d88_CoreUtils()#3{
unreachable
}
define void@_SML_loadbda7a2fa42fa5d88_CoreUtils(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_loade08a2a3237fbaf1b_Word8Vector(i8*%a)#0
tail call void@_SML_loadb802741546ad758e_SMLSharp_OSFileSys(i8*%a)#0
tail call void@_SML_load00d884c96265bfea_SMLSharp_Runtime(i8*%a)#0
tail call void@_SML_load21c7617ebc9dc739_bin_io(i8*%a)#0
tail call void@_SML_load1ef93e13728790b1_String(i8*%a)#0
tail call void@_SML_load3446b7b079949ccf_text_io(i8*%a)#0
tail call void@_SML_loada8c984cf5ab1458f_Control(i8*%a)#0
tail call void@_SML_loade29d9c3af819282f_Filename(i8*%a)#0
tail call void@sml_gcroot(i8*%a,void()*@_SML_tabbbda7a2fa42fa5d88_CoreUtils,i8*@_SML_ftabbda7a2fa42fa5d88_CoreUtils,i8*null)#0
ret void
}
define void@_SML_mainbda7a2fa42fa5d88_CoreUtils()local_unnamed_addr#2 gc"smlsharp"{
%a=load i8,i8*@u,align 1
%b=and i8%a,2
%c=icmp eq i8%b,0
br i1%c,label%e,label%d
d:
ret void
e:
store i8 3,i8*@u,align 1
tail call void@_SML_maine08a2a3237fbaf1b_Word8Vector()#2
tail call void@_SML_mainb802741546ad758e_SMLSharp_OSFileSys()#2
tail call void@_SML_main00d884c96265bfea_SMLSharp_Runtime()#2
tail call void@_SML_main21c7617ebc9dc739_bin_io()#2
tail call void@_SML_main1ef93e13728790b1_String()#2
tail call void@_SML_main3446b7b079949ccf_text_io()#2
tail call void@_SML_maina8c984cf5ab1458f_Control()#2
tail call void@_SML_maine29d9c3af819282f_Filename()#2
br label%d
}
define internal fastcc void@_SMLLN9CoreUtils3logE_79(i8*inreg%a)unnamed_addr#2 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=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%g,label%f
f:
call void@sml_check(i32 inreg%d)
br label%g
g:
%h=load i32*,i32**bitcast(i8**@_SMLZN7Control12printCommandE to i32**),align 8
%i=load i32,i32*%h,align 4
%j=icmp eq i32%i,0
br i1%j,label%G,label%k
k:
%l=call i8*@sml_alloc(i32 inreg 20)#0
%m=getelementptr inbounds i8,i8*%l,i64 -4
%n=bitcast i8*%m to i32*
store i32 1342177296,i32*%n,align 4
%o=load i8*,i8**%b,align 8
store i8*null,i8**%b,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 i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[2x i8]}>,<{[4x i8],i32,[2x i8]}>*@a,i64 0,i32 2,i64 0),i8**%r,align 8
%s=getelementptr inbounds i8,i8*%l,i64 16
%t=bitcast i8*%s to i32*
store i32 3,i32*%t,align 4
%u=call fastcc i8*@_SMLFN6String1_ZE(i8*inreg%l)
store i8*%u,i8**%b,align 8
%v=load i8*,i8**@_SMLZN6TextIO6stdErrE,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
%z=load i8*,i8**%c,align 8
%A=bitcast i8*%w to i8**
store i8*%z,i8**%A,align 8
%B=load i8*,i8**%b,align 8
%C=getelementptr inbounds i8,i8*%w,i64 8
%D=bitcast i8*%C to i8**
store i8*%B,i8**%D,align 8
%E=getelementptr inbounds i8,i8*%w,i64 16
%F=bitcast i8*%E to i32*
store i32 3,i32*%F,align 4
tail call fastcc void@_SMLFN6TextIO6outputE(i8*inreg%w)
ret void
G:
ret void
}
define fastcc i32@_SMLFN9CoreUtils9testExistE(i8*inreg%a)#2 gc"smlsharp"personality i32(...)*@sml_personality{
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=invoke fastcc i8*@_SMLFN8Filename8toStringE(i8*inreg%h)
to label%k unwind label%m
k:
%l=invoke fastcc i32@_SMLFN18SMLSharp__OSFileSys8fileSizeE(i8*inreg%j)
to label%aq unwind label%m
m:
%n=landingpad{i8*,i8*}
catch i8*null
%o=extractvalue{i8*,i8*}%n,1
%p=bitcast i8*%o to i8**
%q=load i8*,i8**%p,align 8
store i8*%q,i8**%b,align 8
%r=bitcast i8*%q to i8**
%s=load i8*,i8**%r,align 8
%t=load i8*,i8**@_SMLZN16SMLSharp__Runtime6SysErrE,align 8
%u=icmp eq i8*%s,%t
br i1%u,label%v,label%a8
v:
%w=getelementptr inbounds i8,i8*%q,i64 16
%x=bitcast i8*%w to i8**
%y=load i8*,i8**%x,align 8
%z=getelementptr inbounds i8,i8*%y,i64 8
%A=bitcast i8*%z to i8**
%B=load i8*,i8**%A,align 8
%C=icmp eq i8*%B,null
br i1%C,label%D,label%L
D:
%E=call i8*@sml_alloc(i32 inreg 60)#0
%F=getelementptr inbounds i8,i8*%E,i64 -4
%G=bitcast i8*%F to i32*
store i32 1342177336,i32*%G,align 4
%H=getelementptr inbounds i8,i8*%E,i64 56
%I=bitcast i8*%H to i32*
store i32 1,i32*%I,align 4
%J=load i8*,i8**%b,align 8
%K=bitcast i8*%E to i8**
store i8*%J,i8**%K,align 8
call void@sml_raise(i8*inreg%E)#1
unreachable
L:
%M=bitcast i8*%B to i32*
%N=load i32,i32*%M,align 4
%O=call fastcc i8*@_SMLFN16SMLSharp__Runtime9errorNameE(i32 inreg%N)
%P=getelementptr inbounds i8,i8*%O,i64 -4
%Q=bitcast i8*%P to i32*
%R=load i32,i32*%Q,align 4
%S=trunc i32%R to i28
switch i28%S,label%a0[
i28 6,label%as
i28 7,label%T
]
T:
%U=load i8,i8*%O,align 1
%V=icmp eq i8%U,101
br i1%V,label%W,label%a0
W:
%X=getelementptr inbounds i8,i8*%O,i64 1
%Y=load i8,i8*%X,align 1
%Z=icmp eq i8%Y,102
br i1%Z,label%aa,label%a0
aa:
%ab=getelementptr inbounds i8,i8*%O,i64 2
%ac=load i8,i8*%ab,align 1
%ad=icmp eq i8%ac,97
br i1%ad,label%ae,label%a0
ae:
%af=getelementptr inbounds i8,i8*%O,i64 3
%ag=load i8,i8*%af,align 1
%ah=icmp eq i8%ag,117
br i1%ah,label%ai,label%a0
ai:
%aj=getelementptr inbounds i8,i8*%O,i64 4
%ak=load i8,i8*%aj,align 1
%al=icmp eq i8%ak,108
br i1%al,label%am,label%a0
am:
%an=getelementptr inbounds i8,i8*%O,i64 5
%ao=load i8,i8*%an,align 1
%ap=icmp eq i8%ao,116
br i1%ap,label%aq,label%a0
aq:
%ar=phi i32[0,%aG],[0,%am],[1,%aW],[1,%k]
ret i32%ar
as:
%at=load i8,i8*%O,align 1
switch i8%at,label%a0[
i8 97,label%aK
i8 110,label%au
]
au:
%av=getelementptr inbounds i8,i8*%O,i64 1
%aw=load i8,i8*%av,align 1
%ax=icmp eq i8%aw,111
br i1%ax,label%ay,label%a0
ay:
%az=getelementptr inbounds i8,i8*%O,i64 2
%aA=load i8,i8*%az,align 1
%aB=icmp eq i8%aA,101
br i1%aB,label%aC,label%a0
aC:
%aD=getelementptr inbounds i8,i8*%O,i64 3
%aE=load i8,i8*%aD,align 1
%aF=icmp eq i8%aE,110
br i1%aF,label%aG,label%a0
aG:
%aH=getelementptr inbounds i8,i8*%O,i64 4
%aI=load i8,i8*%aH,align 1
%aJ=icmp eq i8%aI,116
br i1%aJ,label%aq,label%a0
aK:
%aL=getelementptr inbounds i8,i8*%O,i64 1
%aM=load i8,i8*%aL,align 1
%aN=icmp eq i8%aM,99
br i1%aN,label%aO,label%a0
aO:
%aP=getelementptr inbounds i8,i8*%O,i64 2
%aQ=load i8,i8*%aP,align 1
%aR=icmp eq i8%aQ,99
br i1%aR,label%aS,label%a0
aS:
%aT=getelementptr inbounds i8,i8*%O,i64 3
%aU=load i8,i8*%aT,align 1
%aV=icmp eq i8%aU,101
br i1%aV,label%aW,label%a0
aW:
%aX=getelementptr inbounds i8,i8*%O,i64 4
%aY=load i8,i8*%aX,align 1
%aZ=icmp eq i8%aY,115
br i1%aZ,label%aq,label%a0
a0:
%a1=call i8*@sml_alloc(i32 inreg 60)#0
%a2=getelementptr inbounds i8,i8*%a1,i64 -4
%a3=bitcast i8*%a2 to i32*
store i32 1342177336,i32*%a3,align 4
%a4=getelementptr inbounds i8,i8*%a1,i64 56
%a5=bitcast i8*%a4 to i32*
store i32 1,i32*%a5,align 4
%a6=load i8*,i8**%b,align 8
%a7=bitcast i8*%a1 to i8**
store i8*%a6,i8**%a7,align 8
call void@sml_raise(i8*inreg%a1)#1
unreachable
a8:
%a9=call i8*@sml_alloc(i32 inreg 60)#0
%ba=getelementptr inbounds i8,i8*%a9,i64 -4
%bb=bitcast i8*%ba to i32*
store i32 1342177336,i32*%bb,align 4
%bc=getelementptr inbounds i8,i8*%a9,i64 56
%bd=bitcast i8*%bc to i32*
store i32 1,i32*%bd,align 4
%be=load i8*,i8**%b,align 8
%bf=bitcast i8*%a9 to i8**
store i8*%be,i8**%bf,align 8
call void@sml_raise(i8*inreg%a9)#1
unreachable
}
define fastcc i32@_SMLFN9CoreUtils7testDirE(i8*inreg%a)#2 gc"smlsharp"personality i32(...)*@sml_personality{
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=invoke fastcc i8*@_SMLFN8Filename8toStringE(i8*inreg%h)
to label%k unwind label%m
k:
%l=invoke fastcc i32@_SMLFN18SMLSharp__OSFileSys5isDirE(i8*inreg%j)
to label%aq unwind label%m
m:
%n=landingpad{i8*,i8*}
catch i8*null
%o=extractvalue{i8*,i8*}%n,1
%p=bitcast i8*%o to i8**
%q=load i8*,i8**%p,align 8
store i8*%q,i8**%b,align 8
%r=bitcast i8*%q to i8**
%s=load i8*,i8**%r,align 8
%t=load i8*,i8**@_SMLZN16SMLSharp__Runtime6SysErrE,align 8
%u=icmp eq i8*%s,%t
br i1%u,label%v,label%a8
v:
%w=getelementptr inbounds i8,i8*%q,i64 16
%x=bitcast i8*%w to i8**
%y=load i8*,i8**%x,align 8
%z=getelementptr inbounds i8,i8*%y,i64 8
%A=bitcast i8*%z to i8**
%B=load i8*,i8**%A,align 8
%C=icmp eq i8*%B,null
br i1%C,label%D,label%L
D:
%E=call i8*@sml_alloc(i32 inreg 60)#0
%F=getelementptr inbounds i8,i8*%E,i64 -4
%G=bitcast i8*%F to i32*
store i32 1342177336,i32*%G,align 4
%H=getelementptr inbounds i8,i8*%E,i64 56
%I=bitcast i8*%H to i32*
store i32 1,i32*%I,align 4
%J=load i8*,i8**%b,align 8
%K=bitcast i8*%E to i8**
store i8*%J,i8**%K,align 8
call void@sml_raise(i8*inreg%E)#1
unreachable
L:
%M=bitcast i8*%B to i32*
%N=load i32,i32*%M,align 4
%O=call fastcc i8*@_SMLFN16SMLSharp__Runtime9errorNameE(i32 inreg%N)
%P=getelementptr inbounds i8,i8*%O,i64 -4
%Q=bitcast i8*%P to i32*
%R=load i32,i32*%Q,align 4
%S=trunc i32%R to i28
switch i28%S,label%a0[
i28 6,label%as
i28 7,label%T
]
T:
%U=load i8,i8*%O,align 1
%V=icmp eq i8%U,101
br i1%V,label%W,label%a0
W:
%X=getelementptr inbounds i8,i8*%O,i64 1
%Y=load i8,i8*%X,align 1
%Z=icmp eq i8%Y,102
br i1%Z,label%aa,label%a0
aa:
%ab=getelementptr inbounds i8,i8*%O,i64 2
%ac=load i8,i8*%ab,align 1
%ad=icmp eq i8%ac,97
br i1%ad,label%ae,label%a0
ae:
%af=getelementptr inbounds i8,i8*%O,i64 3
%ag=load i8,i8*%af,align 1
%ah=icmp eq i8%ag,117
br i1%ah,label%ai,label%a0
ai:
%aj=getelementptr inbounds i8,i8*%O,i64 4
%ak=load i8,i8*%aj,align 1
%al=icmp eq i8%ak,108
br i1%al,label%am,label%a0
am:
%an=getelementptr inbounds i8,i8*%O,i64 5
%ao=load i8,i8*%an,align 1
%ap=icmp eq i8%ao,116
br i1%ap,label%aq,label%a0
aq:
%ar=phi i32[0,%aG],[0,%am],[1,%aW],[%l,%k]
ret i32%ar
as:
%at=load i8,i8*%O,align 1
switch i8%at,label%a0[
i8 97,label%aK
i8 110,label%au
]
au:
%av=getelementptr inbounds i8,i8*%O,i64 1
%aw=load i8,i8*%av,align 1
%ax=icmp eq i8%aw,111
br i1%ax,label%ay,label%a0
ay:
%az=getelementptr inbounds i8,i8*%O,i64 2
%aA=load i8,i8*%az,align 1
%aB=icmp eq i8%aA,101
br i1%aB,label%aC,label%a0
aC:
%aD=getelementptr inbounds i8,i8*%O,i64 3
%aE=load i8,i8*%aD,align 1
%aF=icmp eq i8%aE,110
br i1%aF,label%aG,label%a0
aG:
%aH=getelementptr inbounds i8,i8*%O,i64 4
%aI=load i8,i8*%aH,align 1
%aJ=icmp eq i8%aI,116
br i1%aJ,label%aq,label%a0
aK:
%aL=getelementptr inbounds i8,i8*%O,i64 1
%aM=load i8,i8*%aL,align 1
%aN=icmp eq i8%aM,99
br i1%aN,label%aO,label%a0
aO:
%aP=getelementptr inbounds i8,i8*%O,i64 2
%aQ=load i8,i8*%aP,align 1
%aR=icmp eq i8%aQ,99
br i1%aR,label%aS,label%a0
aS:
%aT=getelementptr inbounds i8,i8*%O,i64 3
%aU=load i8,i8*%aT,align 1
%aV=icmp eq i8%aU,101
br i1%aV,label%aW,label%a0
aW:
%aX=getelementptr inbounds i8,i8*%O,i64 4
%aY=load i8,i8*%aX,align 1
%aZ=icmp eq i8%aY,115
br i1%aZ,label%aq,label%a0
a0:
%a1=call i8*@sml_alloc(i32 inreg 60)#0
%a2=getelementptr inbounds i8,i8*%a1,i64 -4
%a3=bitcast i8*%a2 to i32*
store i32 1342177336,i32*%a3,align 4
%a4=getelementptr inbounds i8,i8*%a1,i64 56
%a5=bitcast i8*%a4 to i32*
store i32 1,i32*%a5,align 4
%a6=load i8*,i8**%b,align 8
%a7=bitcast i8*%a1 to i8**
store i8*%a6,i8**%a7,align 8
call void@sml_raise(i8*inreg%a1)#1
unreachable
a8:
%a9=call i8*@sml_alloc(i32 inreg 60)#0
%ba=getelementptr inbounds i8,i8*%a9,i64 -4
%bb=bitcast i8*%ba to i32*
store i32 1342177336,i32*%bb,align 4
%bc=getelementptr inbounds i8,i8*%a9,i64 56
%bd=bitcast i8*%bc to i32*
store i32 1,i32*%bd,align 4
%be=load i8*,i8**%b,align 8
%bf=bitcast i8*%a9 to i8**
store i8*%be,i8**%bf,align 8
call void@sml_raise(i8*inreg%a9)#1
unreachable
}
define fastcc void@_SMLFN9CoreUtils4rm__fE(i8*inreg%a)#2 gc"smlsharp"personality i32(...)*@sml_personality{
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=call fastcc i8*@_SMLFN8Filename8toStringE(i8*inreg%h)
store i8*%j,i8**%b,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
%n=bitcast i8*%k to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[7x i8]}>,<{[4x i8],i32,[7x i8]}>*@d,i64 0,i32 2,i64 0),i8**%n,align 8
%o=load i8*,i8**%b,align 8
%p=getelementptr inbounds i8,i8*%k,i64 8
%q=bitcast i8*%p to i8**
store i8*%o,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 fastcc i8*@_SMLFN6String1_ZE(i8*inreg%k)
call fastcc void@_SMLLN9CoreUtils3logE_79(i8*inreg%t)
%u=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
invoke fastcc void@_SMLFN18SMLSharp__OSFileSys6removeE(i8*inreg%u)
to label%az unwind label%v
v:
%w=landingpad{i8*,i8*}
catch i8*null
%x=extractvalue{i8*,i8*}%w,1
%y=bitcast i8*%x to i8**
%z=load i8*,i8**%y,align 8
store i8*%z,i8**%b,align 8
%A=bitcast i8*%z to i8**
%B=load i8*,i8**%A,align 8
%C=load i8*,i8**@_SMLZN16SMLSharp__Runtime6SysErrE,align 8
%D=icmp eq i8*%B,%C
br i1%D,label%E,label%bw
E:
%F=getelementptr inbounds i8,i8*%z,i64 16
%G=bitcast i8*%F to i8**
%H=load i8*,i8**%G,align 8
%I=getelementptr inbounds i8,i8*%H,i64 8
%J=bitcast i8*%I to i8**
%K=load i8*,i8**%J,align 8
%L=icmp eq i8*%K,null
br i1%L,label%M,label%U
M:
%N=call i8*@sml_alloc(i32 inreg 60)#0
%O=getelementptr inbounds i8,i8*%N,i64 -4
%P=bitcast i8*%O to i32*
store i32 1342177336,i32*%P,align 4
%Q=getelementptr inbounds i8,i8*%N,i64 56
%R=bitcast i8*%Q to i32*
store i32 1,i32*%R,align 4
%S=load i8*,i8**%b,align 8
%T=bitcast i8*%N to i8**
store i8*%S,i8**%T,align 8
call void@sml_raise(i8*inreg%N)#1
unreachable
U:
%V=bitcast i8*%K to i32*
%W=load i32,i32*%V,align 4
%X=call fastcc i8*@_SMLFN16SMLSharp__Runtime9errorNameE(i32 inreg%W)
%Y=getelementptr inbounds i8,i8*%X,i64 -4
%Z=bitcast i8*%Y to i32*
%aa=load i32,i32*%Z,align 4
%ab=trunc i32%aa to i28
switch i28%ab,label%bo[
i28 6,label%aA
i28 7,label%ac
]
ac:
%ad=load i8,i8*%X,align 1
%ae=icmp eq i8%ad,101
br i1%ae,label%af,label%bo
af:
%ag=getelementptr inbounds i8,i8*%X,i64 1
%ah=load i8,i8*%ag,align 1
%ai=icmp eq i8%ah,102
br i1%ai,label%aj,label%bo
aj:
%ak=getelementptr inbounds i8,i8*%X,i64 2
%al=load i8,i8*%ak,align 1
%am=icmp eq i8%al,97
br i1%am,label%an,label%bo
an:
%ao=getelementptr inbounds i8,i8*%X,i64 3
%ap=load i8,i8*%ao,align 1
%aq=icmp eq i8%ap,117
br i1%aq,label%ar,label%bo
ar:
%as=getelementptr inbounds i8,i8*%X,i64 4
%at=load i8,i8*%as,align 1
%au=icmp eq i8%at,108
br i1%au,label%av,label%bo
av:
%aw=getelementptr inbounds i8,i8*%X,i64 5
%ax=load i8,i8*%aw,align 1
%ay=icmp eq i8%ax,116
br i1%ay,label%az,label%bo
az:
ret void
aA:
%aB=load i8,i8*%X,align 1
switch i8%aB,label%bo[
i8 97,label%a8
i8 105,label%aS
i8 110,label%aC
]
aC:
%aD=getelementptr inbounds i8,i8*%X,i64 1
%aE=load i8,i8*%aD,align 1
%aF=icmp eq i8%aE,111
br i1%aF,label%aG,label%bo
aG:
%aH=getelementptr inbounds i8,i8*%X,i64 2
%aI=load i8,i8*%aH,align 1
%aJ=icmp eq i8%aI,101
br i1%aJ,label%aK,label%bo
aK:
%aL=getelementptr inbounds i8,i8*%X,i64 3
%aM=load i8,i8*%aL,align 1
%aN=icmp eq i8%aM,110
br i1%aN,label%aO,label%bo
aO:
%aP=getelementptr inbounds i8,i8*%X,i64 4
%aQ=load i8,i8*%aP,align 1
%aR=icmp eq i8%aQ,116
br i1%aR,label%az,label%bo
aS:
%aT=getelementptr inbounds i8,i8*%X,i64 1
%aU=load i8,i8*%aT,align 1
%aV=icmp eq i8%aU,115
br i1%aV,label%aW,label%bo
aW:
%aX=getelementptr inbounds i8,i8*%X,i64 2
%aY=load i8,i8*%aX,align 1
%aZ=icmp eq i8%aY,100
br i1%aZ,label%a0,label%bo
a0:
%a1=getelementptr inbounds i8,i8*%X,i64 3
%a2=load i8,i8*%a1,align 1
%a3=icmp eq i8%a2,105
br i1%a3,label%a4,label%bo
a4:
%a5=getelementptr inbounds i8,i8*%X,i64 4
%a6=load i8,i8*%a5,align 1
%a7=icmp eq i8%a6,114
br i1%a7,label%az,label%bo
a8:
%a9=getelementptr inbounds i8,i8*%X,i64 1
%ba=load i8,i8*%a9,align 1
%bb=icmp eq i8%ba,99
br i1%bb,label%bc,label%bo
bc:
%bd=getelementptr inbounds i8,i8*%X,i64 2
%be=load i8,i8*%bd,align 1
%bf=icmp eq i8%be,99
br i1%bf,label%bg,label%bo
bg:
%bh=getelementptr inbounds i8,i8*%X,i64 3
%bi=load i8,i8*%bh,align 1
%bj=icmp eq i8%bi,101
br i1%bj,label%bk,label%bo
bk:
%bl=getelementptr inbounds i8,i8*%X,i64 4
%bm=load i8,i8*%bl,align 1
%bn=icmp eq i8%bm,115
br i1%bn,label%az,label%bo
bo:
%bp=call i8*@sml_alloc(i32 inreg 60)#0
%bq=getelementptr inbounds i8,i8*%bp,i64 -4
%br=bitcast i8*%bq to i32*
store i32 1342177336,i32*%br,align 4
%bs=getelementptr inbounds i8,i8*%bp,i64 56
%bt=bitcast i8*%bs to i32*
store i32 1,i32*%bt,align 4
%bu=load i8*,i8**%b,align 8
%bv=bitcast i8*%bp to i8**
store i8*%bu,i8**%bv,align 8
call void@sml_raise(i8*inreg%bp)#1
unreachable
bw:
%bx=call i8*@sml_alloc(i32 inreg 60)#0
%by=getelementptr inbounds i8,i8*%bx,i64 -4
%bz=bitcast i8*%by to i32*
store i32 1342177336,i32*%bz,align 4
%bA=getelementptr inbounds i8,i8*%bx,i64 56
%bB=bitcast i8*%bA to i32*
store i32 1,i32*%bB,align 4
%bC=load i8*,i8**%b,align 8
%bD=bitcast i8*%bx to i8**
store i8*%bC,i8**%bD,align 8
call void@sml_raise(i8*inreg%bx)#1
unreachable
}
define fastcc void@_SMLFN9CoreUtils7rmdir__fE(i8*inreg%a)#2 gc"smlsharp"personality i32(...)*@sml_personality{
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=call fastcc i8*@_SMLFN8Filename8toStringE(i8*inreg%h)
store i8*%j,i8**%b,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
%n=bitcast i8*%k to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[7x i8]}>,<{[4x i8],i32,[7x i8]}>*@f,i64 0,i32 2,i64 0),i8**%n,align 8
%o=load i8*,i8**%b,align 8
%p=getelementptr inbounds i8,i8*%k,i64 8
%q=bitcast i8*%p to i8**
store i8*%o,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 fastcc i8*@_SMLFN6String1_ZE(i8*inreg%k)
call fastcc void@_SMLLN9CoreUtils3logE_79(i8*inreg%t)
%u=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
invoke fastcc void@_SMLFN18SMLSharp__OSFileSys5rmDirE(i8*inreg%u)
to label%ay unwind label%v
v:
%w=landingpad{i8*,i8*}
catch i8*null
%x=extractvalue{i8*,i8*}%w,1
%y=bitcast i8*%x to i8**
%z=load i8*,i8**%y,align 8
store i8*%z,i8**%b,align 8
%A=bitcast i8*%z to i8**
%B=load i8*,i8**%A,align 8
%C=load i8*,i8**@_SMLZN16SMLSharp__Runtime6SysErrE,align 8
%D=icmp eq i8*%B,%C
br i1%D,label%E,label%bz
E:
%F=getelementptr inbounds i8,i8*%z,i64 16
%G=bitcast i8*%F to i8**
%H=load i8*,i8**%G,align 8
%I=getelementptr inbounds i8,i8*%H,i64 8
%J=bitcast i8*%I to i8**
%K=load i8*,i8**%J,align 8
%L=icmp eq i8*%K,null
br i1%L,label%M,label%U
M:
%N=call i8*@sml_alloc(i32 inreg 60)#0
%O=getelementptr inbounds i8,i8*%N,i64 -4
%P=bitcast i8*%O to i32*
store i32 1342177336,i32*%P,align 4
%Q=getelementptr inbounds i8,i8*%N,i64 56
%R=bitcast i8*%Q to i32*
store i32 1,i32*%R,align 4
%S=load i8*,i8**%b,align 8
%T=bitcast i8*%N to i8**
store i8*%S,i8**%T,align 8
call void@sml_raise(i8*inreg%N)#1
unreachable
U:
%V=bitcast i8*%K to i32*
%W=load i32,i32*%V,align 4
%X=call fastcc i8*@_SMLFN16SMLSharp__Runtime9errorNameE(i32 inreg%W)
%Y=getelementptr inbounds i8,i8*%X,i64 -4
%Z=bitcast i8*%Y to i32*
%aa=load i32,i32*%Z,align 4
%ab=trunc i32%aa to i28
switch i28%ab,label%br[
i28 6,label%aT
i28 7,label%ac
]
ac:
%ad=load i8,i8*%X,align 1
switch i8%ad,label%br[
i8 101,label%az
i8 110,label%ae
]
ae:
%af=getelementptr inbounds i8,i8*%X,i64 1
%ag=load i8,i8*%af,align 1
%ah=icmp eq i8%ag,111
br i1%ah,label%ai,label%br
ai:
%aj=getelementptr inbounds i8,i8*%X,i64 2
%ak=load i8,i8*%aj,align 1
%al=icmp eq i8%ak,116
br i1%al,label%am,label%br
am:
%an=getelementptr inbounds i8,i8*%X,i64 3
%ao=load i8,i8*%an,align 1
%ap=icmp eq i8%ao,100
br i1%ap,label%aq,label%br
aq:
%ar=getelementptr inbounds i8,i8*%X,i64 4
%as=load i8,i8*%ar,align 1
%at=icmp eq i8%as,105
br i1%at,label%au,label%br
au:
%av=getelementptr inbounds i8,i8*%X,i64 5
%aw=load i8,i8*%av,align 1
%ax=icmp eq i8%aw,114
br i1%ax,label%ay,label%br
ay:
ret void
az:
%aA=getelementptr inbounds i8,i8*%X,i64 1
%aB=load i8,i8*%aA,align 1
%aC=icmp eq i8%aB,102
br i1%aC,label%aD,label%br
aD:
%aE=getelementptr inbounds i8,i8*%X,i64 2
%aF=load i8,i8*%aE,align 1
%aG=icmp eq i8%aF,97
br i1%aG,label%aH,label%br
aH:
%aI=getelementptr inbounds i8,i8*%X,i64 3
%aJ=load i8,i8*%aI,align 1
%aK=icmp eq i8%aJ,117
br i1%aK,label%aL,label%br
aL:
%aM=getelementptr inbounds i8,i8*%X,i64 4
%aN=load i8,i8*%aM,align 1
%aO=icmp eq i8%aN,108
br i1%aO,label%aP,label%br
aP:
%aQ=getelementptr inbounds i8,i8*%X,i64 5
%aR=load i8,i8*%aQ,align 1
%aS=icmp eq i8%aR,116
br i1%aS,label%ay,label%br
aT:
%aU=load i8,i8*%X,align 1
switch i8%aU,label%br[
i8 97,label%bb
i8 110,label%aV
]
aV:
%aW=getelementptr inbounds i8,i8*%X,i64 1
%aX=load i8,i8*%aW,align 1
%aY=icmp eq i8%aX,111
br i1%aY,label%aZ,label%br
aZ:
%a0=getelementptr inbounds i8,i8*%X,i64 2
%a1=load i8,i8*%a0,align 1
%a2=icmp eq i8%a1,101
br i1%a2,label%a3,label%br
a3:
%a4=getelementptr inbounds i8,i8*%X,i64 3
%a5=load i8,i8*%a4,align 1
%a6=icmp eq i8%a5,110
br i1%a6,label%a7,label%br
a7:
%a8=getelementptr inbounds i8,i8*%X,i64 4
%a9=load i8,i8*%a8,align 1
%ba=icmp eq i8%a9,116
br i1%ba,label%ay,label%br
bb:
%bc=getelementptr inbounds i8,i8*%X,i64 1
%bd=load i8,i8*%bc,align 1
%be=icmp eq i8%bd,99
br i1%be,label%bf,label%br
bf:
%bg=getelementptr inbounds i8,i8*%X,i64 2
%bh=load i8,i8*%bg,align 1
%bi=icmp eq i8%bh,99
br i1%bi,label%bj,label%br
bj:
%bk=getelementptr inbounds i8,i8*%X,i64 3
%bl=load i8,i8*%bk,align 1
%bm=icmp eq i8%bl,101
br i1%bm,label%bn,label%br
bn:
%bo=getelementptr inbounds i8,i8*%X,i64 4
%bp=load i8,i8*%bo,align 1
%bq=icmp eq i8%bp,115
br i1%bq,label%ay,label%br
br:
%bs=call i8*@sml_alloc(i32 inreg 60)#0
%bt=getelementptr inbounds i8,i8*%bs,i64 -4
%bu=bitcast i8*%bt to i32*
store i32 1342177336,i32*%bu,align 4
%bv=getelementptr inbounds i8,i8*%bs,i64 56
%bw=bitcast i8*%bv to i32*
store i32 1,i32*%bw,align 4
%bx=load i8*,i8**%b,align 8
%by=bitcast i8*%bs to i8**
store i8*%bx,i8**%by,align 8
call void@sml_raise(i8*inreg%bs)#1
unreachable
bz:
%bA=call i8*@sml_alloc(i32 inreg 60)#0
%bB=getelementptr inbounds i8,i8*%bA,i64 -4
%bC=bitcast i8*%bB to i32*
store i32 1342177336,i32*%bC,align 4
%bD=getelementptr inbounds i8,i8*%bA,i64 56
%bE=bitcast i8*%bD to i32*
store i32 1,i32*%bE,align 4
%bF=load i8*,i8**%b,align 8
%bG=bitcast i8*%bA to i8**
store i8*%bF,i8**%bG,align 8
call void@sml_raise(i8*inreg%bA)#1
unreachable
}
define internal fastcc i8*@_SMLLN9CoreUtils5chdirE_91(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"personality i32(...)*@sml_personality{
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 i8*@_SMLFN18SMLSharp__OSFileSys6getDirE(i32 inreg 0)
store i8*%m,i8**%c,align 8
%n=bitcast i8**%e to i8***
%o=load i8**,i8***%n,align 8
store i8*null,i8**%e,align 8
%p=load i8*,i8**%o,align 8
%q=call fastcc i8*@_SMLFN8Filename8toStringE(i8*inreg%p)
call fastcc void@_SMLFN18SMLSharp__OSFileSys5chDirE(i8*inreg%q)
%r=load i8*,i8**%d,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=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**%d,align 8
store i8*null,i8**%d,align 8
%C=invoke fastcc i8*%u(i8*inreg%B,i8*inreg%x)
to label%D unwind label%H
D:
store i8*%C,i8**%d,align 8
%E=load i8*,i8**%c,align 8
invoke fastcc void@_SMLFN18SMLSharp__OSFileSys5chDirE(i8*inreg%E)
to label%F unwind label%H
F:
%G=load i8*,i8**%d,align 8
ret i8*%G
H:
%I=landingpad{i8*,i8*}
catch i8*null
%J=extractvalue{i8*,i8*}%I,1
%K=bitcast i8*%J to i8**
%L=load i8*,i8**%K,align 8
store i8*%L,i8**%d,align 8
%M=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
call fastcc void@_SMLFN18SMLSharp__OSFileSys5chDirE(i8*inreg%M)
%N=call i8*@sml_alloc(i32 inreg 60)#0
%O=getelementptr inbounds i8,i8*%N,i64 -4
%P=bitcast i8*%O to i32*
store i32 1342177336,i32*%P,align 4
%Q=getelementptr inbounds i8,i8*%N,i64 56
%R=bitcast i8*%Q to i32*
store i32 1,i32*%R,align 4
%S=load i8*,i8**%d,align 8
%T=bitcast i8*%N to i8**
store i8*%S,i8**%T,align 8
call void@sml_raise(i8*inreg%N)#1
unreachable
}
define internal fastcc i8*@_SMLLN9CoreUtils5chdirE_92(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 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**%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 1,i32*%n,align 4
%o=call i8*@sml_alloc(i32 inreg 28)#0
%p=getelementptr inbounds i8,i8*%o,i64 -4
%q=bitcast i8*%p to i32*
store i32 1342177304,i32*%q,align 4
%r=load i8*,i8**%e,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 void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN9CoreUtils5chdirE_91 to void(...)*),void(...)**%u,align 8
%v=getelementptr inbounds i8,i8*%o,i64 16
%w=bitcast i8*%v to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN9CoreUtils5chdirE_91 to void(...)*),void(...)**%w,align 8
%x=getelementptr inbounds i8,i8*%o,i64 24
%y=bitcast i8*%x to i32*
store i32 1,i32*%y,align 4
ret i8*%o
}
define fastcc void@_SMLFN9CoreUtils12makeTextFileE(i8*inreg%a)#2 gc"smlsharp"personality i32(...)*@sml_personality{
k:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=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
store i8*%a,i8**%b,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**%b,align 8
br label%i
i:
%j=phi i8*[%h,%g],[%a,%k]
store i8*null,i8**%b,align 8
store i8*%j,i8**%c,align 8
%l=getelementptr inbounds i8,i8*%j,i64 8
%m=bitcast i8*%l to i8**
%n=load i8*,i8**%m,align 8
store i8*%n,i8**%d,align 8
%o=bitcast i8*%j to i8**
%p=load i8*,i8**%o,align 8
%q=call fastcc i8*@_SMLFN8Filename6TextIO7openOutE(i8*inreg%p)
store i8*%q,i8**%b,align 8
%r=call i8*@sml_alloc(i32 inreg 20)#0
%s=getelementptr inbounds i8,i8*%r,i64 -4
%t=bitcast i8*%s to i32*
store i32 1342177296,i32*%t,align 4
%u=load i8*,i8**%b,align 8
%v=bitcast i8*%r to i8**
store i8*%u,i8**%v,align 8
%w=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%x=getelementptr inbounds i8,i8*%r,i64 8
%y=bitcast i8*%x to i8**
store i8*%w,i8**%y,align 8
%z=getelementptr inbounds i8,i8*%r,i64 16
%A=bitcast i8*%z to i32*
store i32 3,i32*%A,align 4
invoke fastcc void@_SMLFN6TextIO6outputE(i8*inreg%r)
to label%R unwind label%B
B:
%C=landingpad{i8*,i8*}
catch i8*null
%D=extractvalue{i8*,i8*}%C,1
%E=bitcast i8*%D to i8**
%F=load i8*,i8**%E,align 8
store i8*%F,i8**%d,align 8
%G=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
call fastcc void@_SMLFN6TextIO8closeOutE(i8*inreg%G)
%H=bitcast i8**%c to i8***
%I=load i8**,i8***%H,align 8
store i8*null,i8**%c,align 8
%J=load i8*,i8**%I,align 8
call fastcc void@_SMLFN9CoreUtils4rm__fE(i8*inreg%J)
%K=call i8*@sml_alloc(i32 inreg 60)#0
%L=getelementptr inbounds i8,i8*%K,i64 -4
%M=bitcast i8*%L to i32*
store i32 1342177336,i32*%M,align 4
%N=getelementptr inbounds i8,i8*%K,i64 56
%O=bitcast i8*%N to i32*
store i32 1,i32*%O,align 4
%P=load i8*,i8**%d,align 8
%Q=bitcast i8*%K to i8**
store i8*%P,i8**%Q,align 8
call void@sml_raise(i8*inreg%K)#1
unreachable
R:
%S=load i8*,i8**%b,align 8
tail call fastcc void@_SMLFN6TextIO8closeOutE(i8*inreg%S)
ret void
}
define fastcc void@_SMLFN9CoreUtils11makeBinFileE(i8*inreg%a)#2 gc"smlsharp"personality i32(...)*@sml_personality{
k:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=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
store i8*%a,i8**%b,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**%b,align 8
br label%i
i:
%j=phi i8*[%h,%g],[%a,%k]
store i8*null,i8**%b,align 8
store i8*%j,i8**%c,align 8
%l=getelementptr inbounds i8,i8*%j,i64 8
%m=bitcast i8*%l to i8**
%n=load i8*,i8**%m,align 8
store i8*%n,i8**%d,align 8
%o=bitcast i8*%j to i8**
%p=load i8*,i8**%o,align 8
%q=call fastcc i8*@_SMLFN8Filename5BinIO7openOutE(i8*inreg%p)
store i8*%q,i8**%b,align 8
%r=call i8*@sml_alloc(i32 inreg 20)#0
%s=getelementptr inbounds i8,i8*%r,i64 -4
%t=bitcast i8*%s to i32*
store i32 1342177296,i32*%t,align 4
%u=load i8*,i8**%b,align 8
%v=bitcast i8*%r to i8**
store i8*%u,i8**%v,align 8
%w=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%x=getelementptr inbounds i8,i8*%r,i64 8
%y=bitcast i8*%x to i8**
store i8*%w,i8**%y,align 8
%z=getelementptr inbounds i8,i8*%r,i64 16
%A=bitcast i8*%z to i32*
store i32 3,i32*%A,align 4
invoke fastcc void@_SMLFN5BinIO6outputE(i8*inreg%r)
to label%R unwind label%B
B:
%C=landingpad{i8*,i8*}
catch i8*null
%D=extractvalue{i8*,i8*}%C,1
%E=bitcast i8*%D to i8**
%F=load i8*,i8**%E,align 8
store i8*%F,i8**%d,align 8
%G=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
call fastcc void@_SMLFN5BinIO8closeOutE(i8*inreg%G)
%H=bitcast i8**%c to i8***
%I=load i8**,i8***%H,align 8
store i8*null,i8**%c,align 8
%J=load i8*,i8**%I,align 8
call fastcc void@_SMLFN9CoreUtils4rm__fE(i8*inreg%J)
%K=call i8*@sml_alloc(i32 inreg 60)#0
%L=getelementptr inbounds i8,i8*%K,i64 -4
%M=bitcast i8*%L to i32*
store i32 1342177336,i32*%M,align 4
%N=getelementptr inbounds i8,i8*%K,i64 56
%O=bitcast i8*%N to i32*
store i32 1,i32*%O,align 4
%P=load i8*,i8**%d,align 8
%Q=bitcast i8*%K to i8**
store i8*%P,i8**%Q,align 8
call void@sml_raise(i8*inreg%K)#1
unreachable
R:
%S=load i8*,i8**%b,align 8
tail call fastcc void@_SMLFN5BinIO8closeOutE(i8*inreg%S)
ret void
}
define internal fastcc void@_SMLLN9CoreUtils13makeTextFile_GE_99(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**%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%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]
%n=load i8*,i8**%m,align 8
store i8*%n,i8**%d,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
%r=load i8*,i8**%d,align 8
%s=bitcast i8*%o to i8**
store i8*%r,i8**%s,align 8
%t=load i8*,i8**%c,align 8
%u=getelementptr inbounds i8,i8*%o,i64 8
%v=bitcast i8*%u to i8**
store i8*%t,i8**%v,align 8
%w=getelementptr inbounds i8,i8*%o,i64 16
%x=bitcast i8*%w to i32*
store i32 3,i32*%x,align 4
tail call fastcc void@_SMLFN6TextIO6outputE(i8*inreg%o)
ret void
}
define fastcc void@_SMLFN9CoreUtils13makeTextFile_GE(i8*inreg%a)#2 gc"smlsharp"personality i32(...)*@sml_personality{
l:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=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
store i8*%a,i8**%b,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**%b,align 8
br label%j
j:
%k=phi i8*[%i,%h],[%a,%l]
store i8*null,i8**%b,align 8
store i8*%k,i8**%c,align 8
%m=bitcast i8*%k to i8**
%n=load i8*,i8**%m,align 8
%o=call fastcc i8*@_SMLFN8Filename6TextIO7openOutE(i8*inreg%n)
store i8*%o,i8**%b,align 8
%p=load i8*,i8**%c,align 8
%q=getelementptr inbounds i8,i8*%p,i64 8
%r=bitcast i8*%q to i8**
%s=load i8*,i8**%r,align 8
%t=getelementptr inbounds i8,i8*%s,i64 16
%u=bitcast i8*%t to i8*(i8*,i8*)**
%v=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%u,align 8
%w=bitcast i8*%s to i8**
%x=load i8*,i8**%w,align 8
store i8*%x,i8**%d,align 8
%y=call i8*@sml_alloc(i32 inreg 12)#0
%z=getelementptr inbounds i8,i8*%y,i64 -4
%A=bitcast i8*%z to i32*
store i32 1342177288,i32*%A,align 4
store i8*%y,i8**%e,align 8
%B=load i8*,i8**%b,align 8
%C=bitcast i8*%y to i8**
store i8*%B,i8**%C,align 8
%D=getelementptr inbounds i8,i8*%y,i64 8
%E=bitcast i8*%D to i32*
store i32 1,i32*%E,align 4
%F=call i8*@sml_alloc(i32 inreg 28)#0
%G=getelementptr inbounds i8,i8*%F,i64 -4
%H=bitcast i8*%G to i32*
store i32 1342177304,i32*%H,align 4
%I=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%J=bitcast i8*%F to i8**
store i8*%I,i8**%J,align 8
%K=getelementptr inbounds i8,i8*%F,i64 8
%L=bitcast i8*%K to void(...)**
store void(...)*bitcast(void(i8*,i8*)*@_SMLLN9CoreUtils13makeTextFile_GE_99 to void(...)*),void(...)**%L,align 8
%M=getelementptr inbounds i8,i8*%F,i64 16
%N=bitcast i8*%M to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN9CoreUtils13makeTextFile_GE_138 to void(...)*),void(...)**%N,align 8
%O=getelementptr inbounds i8,i8*%F,i64 24
%P=bitcast i8*%O to i32*
store i32 -2147483647,i32*%P,align 4
%Q=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%R=invoke fastcc i8*%v(i8*inreg%Q,i8*inreg%F)
to label%S unwind label%U
S:
%T=load i8*,i8**%b,align 8
tail call fastcc void@_SMLFN6TextIO8closeOutE(i8*inreg%T)
ret void
U:
%V=landingpad{i8*,i8*}
catch i8*null
%W=extractvalue{i8*,i8*}%V,1
%X=bitcast i8*%W to i8**
%Y=load i8*,i8**%X,align 8
store i8*%Y,i8**%d,align 8
%Z=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
call fastcc void@_SMLFN6TextIO8closeOutE(i8*inreg%Z)
%aa=bitcast i8**%c to i8***
%ab=load i8**,i8***%aa,align 8
store i8*null,i8**%c,align 8
%ac=load i8*,i8**%ab,align 8
call fastcc void@_SMLFN9CoreUtils4rm__fE(i8*inreg%ac)
%ad=call i8*@sml_alloc(i32 inreg 60)#0
%ae=getelementptr inbounds i8,i8*%ad,i64 -4
%af=bitcast i8*%ae to i32*
store i32 1342177336,i32*%af,align 4
%ag=getelementptr inbounds i8,i8*%ad,i64 56
%ah=bitcast i8*%ag to i32*
store i32 1,i32*%ah,align 4
%ai=load i8*,i8**%d,align 8
%aj=bitcast i8*%ad to i8**
store i8*%ai,i8**%aj,align 8
call void@sml_raise(i8*inreg%ad)#1
unreachable
}
define fastcc i8*@_SMLFN9CoreUtils12readTextFileE(i8*inreg%a)#2 gc"smlsharp"personality i32(...)*@sml_personality{
j:
%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=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%h,label%f
f:
call void@sml_check(i32 inreg%d)
%g=load i8*,i8**%b,align 8
br label%h
h:
%i=phi i8*[%g,%f],[%a,%j]
store i8*null,i8**%b,align 8
%k=call fastcc i8*@_SMLFN8Filename6TextIO6openInE(i8*inreg%i)
store i8*%k,i8**%b,align 8
%l=invoke fastcc i8*@_SMLFN6TextIO8inputAllE(i8*inreg%k)
to label%m unwind label%p
m:
store i8*%l,i8**%c,align 8
%n=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
call fastcc void@_SMLFN6TextIO7closeInE(i8*inreg%n)
%o=load i8*,i8**%c,align 8
ret i8*%o
p:
%q=landingpad{i8*,i8*}
catch i8*null
%r=extractvalue{i8*,i8*}%q,1
%s=bitcast i8*%r to i8**
%t=load i8*,i8**%s,align 8
store i8*%t,i8**%c,align 8
%u=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
call fastcc void@_SMLFN6TextIO7closeInE(i8*inreg%u)
%v=call i8*@sml_alloc(i32 inreg 60)#0
%w=getelementptr inbounds i8,i8*%v,i64 -4
%x=bitcast i8*%w to i32*
store i32 1342177336,i32*%x,align 4
%y=getelementptr inbounds i8,i8*%v,i64 56
%z=bitcast i8*%y to i32*
store i32 1,i32*%z,align 4
%A=load i8*,i8**%c,align 8
%B=bitcast i8*%v to i8**
store i8*%A,i8**%B,align 8
call void@sml_raise(i8*inreg%v)#1
unreachable
}
define fastcc i8*@_SMLFN9CoreUtils11readBinFileE(i8*inreg%a)#2 gc"smlsharp"personality i32(...)*@sml_personality{
j:
%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=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%h,label%f
f:
call void@sml_check(i32 inreg%d)
%g=load i8*,i8**%b,align 8
br label%h
h:
%i=phi i8*[%g,%f],[%a,%j]
store i8*null,i8**%b,align 8
%k=call fastcc i8*@_SMLFN8Filename5BinIO6openInE(i8*inreg%i)
store i8*%k,i8**%b,align 8
%l=invoke fastcc i8*@_SMLFN5BinIO8inputAllE(i8*inreg%k)
to label%m unwind label%p
m:
store i8*%l,i8**%c,align 8
%n=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
call fastcc void@_SMLFN5BinIO7closeInE(i8*inreg%n)
%o=load i8*,i8**%c,align 8
ret i8*%o
p:
%q=landingpad{i8*,i8*}
catch i8*null
%r=extractvalue{i8*,i8*}%q,1
%s=bitcast i8*%r to i8**
%t=load i8*,i8**%s,align 8
store i8*%t,i8**%c,align 8
%u=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
call fastcc void@_SMLFN5BinIO7closeInE(i8*inreg%u)
%v=call i8*@sml_alloc(i32 inreg 60)#0
%w=getelementptr inbounds i8,i8*%v,i64 -4
%x=bitcast i8*%w to i32*
store i32 1342177336,i32*%x,align 4
%y=getelementptr inbounds i8,i8*%v,i64 56
%z=bitcast i8*%y to i32*
store i32 1,i32*%z,align 4
%A=load i8*,i8**%c,align 8
%B=bitcast i8*%v to i8**
store i8*%A,i8**%B,align 8
call void@sml_raise(i8*inreg%v)#1
unreachable
}
define internal fastcc void@_SMLLN9CoreUtils2cpE_112(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"personality i32(...)*@sml_personality{
%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
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
store i8*%a,i8**%i,align 8
store i8*%b,i8**%f,align 8
%j=load atomic i32,i32*@sml_check_flag unordered,align 4
%k=icmp eq i32%j,0
br i1%k,label%l,label%o
l:
%m=bitcast i8*%a to i8**
%n=bitcast i8**%i to i8***
br label%s
o:
call void@sml_check(i32 inreg%j)
%p=load i8*,i8**%f,align 8
%q=bitcast i8**%i to i8***
%r=load i8**,i8***%q,align 8
br label%s
s:
%t=phi i8***[%n,%l],[%q,%o]
%u=phi i8**[%m,%l],[%r,%o]
%v=phi i8*[%b,%l],[%p,%o]
store i8*null,i8**%f,align 8
store i8*%v,i8**%g,align 8
%w=load i8*,i8**%u,align 8
%x=call fastcc i8*@_SMLFN8Filename8toStringE(i8*inreg%w)
store i8*%x,i8**%f,align 8
%y=call i8*@sml_alloc(i32 inreg 20)#0
%z=getelementptr inbounds i8,i8*%y,i64 -4
%A=bitcast i8*%z to i32*
store i32 1342177296,i32*%A,align 4
%B=bitcast i8*%y to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[4x i8]}>,<{[4x i8],i32,[4x i8]}>*@m,i64 0,i32 2,i64 0),i8**%B,align 8
%C=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%D=getelementptr inbounds i8,i8*%y,i64 8
%E=bitcast i8*%D to i8**
store i8*%C,i8**%E,align 8
%F=getelementptr inbounds i8,i8*%y,i64 16
%G=bitcast i8*%F to i32*
store i32 3,i32*%G,align 4
%H=call fastcc i8*@_SMLFN6String1_ZE(i8*inreg%y)
store i8*%H,i8**%f,align 8
%I=call i8*@sml_alloc(i32 inreg 20)#0
%J=getelementptr inbounds i8,i8*%I,i64 -4
%K=bitcast i8*%J to i32*
store i32 1342177296,i32*%K,align 4
%L=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%M=bitcast i8*%I to i8**
store i8*%L,i8**%M,align 8
%N=getelementptr inbounds i8,i8*%I,i64 8
%O=bitcast i8*%N to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[2x i8]}>,<{[4x i8],i32,[2x i8]}>*@n,i64 0,i32 2,i64 0),i8**%O,align 8
%P=getelementptr inbounds i8,i8*%I,i64 16
%Q=bitcast i8*%P to i32*
store i32 3,i32*%Q,align 4
%R=call fastcc i8*@_SMLFN6String1_ZE(i8*inreg%I)
store i8*%R,i8**%f,align 8
%S=load i8*,i8**%g,align 8
%T=call fastcc i8*@_SMLFN8Filename8toStringE(i8*inreg%S)
store i8*%T,i8**%h,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
%X=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%Y=bitcast i8*%U to i8**
store i8*%X,i8**%Y,align 8
%Z=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%aa=getelementptr inbounds i8,i8*%U,i64 8
%ab=bitcast i8*%aa to i8**
store i8*%Z,i8**%ab,align 8
%ac=getelementptr inbounds i8,i8*%U,i64 16
%ad=bitcast i8*%ac to i32*
store i32 3,i32*%ad,align 4
%ae=call fastcc i8*@_SMLFN6String1_ZE(i8*inreg%U)
call fastcc void@_SMLLN9CoreUtils3logE_79(i8*inreg%ae)
%af=load i8**,i8***%t,align 8
store i8*null,i8**%i,align 8
%ag=load i8*,i8**%af,align 8
%ah=call fastcc i8*@_SMLFN8Filename5BinIO6openInE(i8*inreg%ag)
store i8*%ah,i8**%f,align 8
%ai=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%aj=invoke fastcc i8*@_SMLFN8Filename5BinIO7openOutE(i8*inreg%ai)
to label%ak unwind label%bd
ak:
store i8*%aj,i8**%g,align 8
%al=load i8*,i8**%f,align 8
%am=bitcast i8**%c to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%am)
%an=bitcast i8**%d to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%an)
%ao=bitcast i8**%e to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%ao)
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
br label%ap
ap:
%aq=phi i8*[%al,%ak],[%a2,%a0]
%ar=phi i8*[%aj,%ak],[%a1,%a0]
store i8*%aq,i8**%c,align 8
store i8*%ar,i8**%d,align 8
%as=load atomic i32,i32*@sml_check_flag unordered,align 4
%at=icmp eq i32%as,0
br i1%at,label%ax,label%au
au:
invoke void@sml_check(i32 inreg%as)
to label%av unwind label%a3
av:
%aw=load i8*,i8**%c,align 8
br label%ax
ax:
%ay=phi i8*[%aw,%av],[%aq,%ap]
store i8*null,i8**%c,align 8
store i8*%ay,i8**%e,align 8
%az=call i8*@sml_alloc(i32 inreg 20)#0
%aA=getelementptr inbounds i8,i8*%az,i64 -4
%aB=bitcast i8*%aA to i32*
store i32 1342177296,i32*%aB,align 4
%aC=getelementptr inbounds i8,i8*%az,i64 12
%aD=bitcast i8*%aC to i32*
store i32 0,i32*%aD,align 1
%aE=load i8*,i8**%e,align 8
%aF=bitcast i8*%az to i8**
store i8*%aE,i8**%aF,align 8
%aG=getelementptr inbounds i8,i8*%az,i64 8
%aH=bitcast i8*%aG to i32*
store i32 4092,i32*%aH,align 4
%aI=getelementptr inbounds i8,i8*%az,i64 16
%aJ=bitcast i8*%aI to i32*
store i32 1,i32*%aJ,align 4
%aK=invoke fastcc i8*@_SMLFN5BinIO6inputNE(i8*inreg%az)
to label%aL unwind label%a3
aL:
store i8*%aK,i8**%c,align 8
%aM=invoke fastcc i32@_SMLFN11Word8Vector6lengthE(i8*inreg%aK)
to label%aN unwind label%a3
aN:
%aO=icmp eq i32%aM,0
br i1%aO,label%bb,label%aP
aP:
%aQ=call i8*@sml_alloc(i32 inreg 20)#0
%aR=getelementptr inbounds i8,i8*%aQ,i64 -4
%aS=bitcast i8*%aR to i32*
store i32 1342177296,i32*%aS,align 4
%aT=load i8*,i8**%d,align 8
%aU=bitcast i8*%aQ to i8**
store i8*%aT,i8**%aU,align 8
%aV=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aW=getelementptr inbounds i8,i8*%aQ,i64 8
%aX=bitcast i8*%aW to i8**
store i8*%aV,i8**%aX,align 8
%aY=getelementptr inbounds i8,i8*%aQ,i64 16
%aZ=bitcast i8*%aY to i32*
store i32 3,i32*%aZ,align 4
invoke fastcc void@_SMLFN5BinIO6outputE(i8*inreg%aQ)
to label%a0 unwind label%a3
a0:
%a1=load i8*,i8**%d,align 8
%a2=load i8*,i8**%e,align 8
store i8*null,i8**%d,align 8
store i8*null,i8**%e,align 8
br label%ap
a3:
%a4=landingpad{i8*,i8*}
catch i8*null
%a5=extractvalue{i8*,i8*}%a4,1
%a6=bitcast i8*%a5 to i8**
%a7=load i8*,i8**%a6,align 8
store i8*%a7,i8**%h,align 8
%a8=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
invoke fastcc void@_SMLFN5BinIO8closeOutE(i8*inreg%a8)
to label%a9 unwind label%bd
a9:
%ba=load i8*,i8**%h,align 8
br label%bi
bb:
call void@llvm.lifetime.end.p0i8(i64 8,i8*%am)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%an)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%ao)
%bc=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
invoke fastcc void@_SMLFN5BinIO8closeOutE(i8*inreg%bc)
to label%bs unwind label%bd
bd:
%be=landingpad{i8*,i8*}
catch i8*null
%bf=extractvalue{i8*,i8*}%be,1
%bg=bitcast i8*%bf to i8**
%bh=load i8*,i8**%bg,align 8
store i8*null,i8**%g,align 8
br label%bi
bi:
%bj=phi i8*[%ba,%a9],[%bh,%bd]
store i8*null,i8**%h,align 8
store i8*%bj,i8**%g,align 8
%bk=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
call fastcc void@_SMLFN5BinIO7closeInE(i8*inreg%bk)
%bl=call i8*@sml_alloc(i32 inreg 60)#0
%bm=getelementptr inbounds i8,i8*%bl,i64 -4
%bn=bitcast i8*%bm to i32*
store i32 1342177336,i32*%bn,align 4
%bo=getelementptr inbounds i8,i8*%bl,i64 56
%bp=bitcast i8*%bo to i32*
store i32 1,i32*%bp,align 4
%bq=load i8*,i8**%g,align 8
%br=bitcast i8*%bl to i8**
store i8*%bq,i8**%br,align 8
call void@sml_raise(i8*inreg%bl)#1
unreachable
bs:
%bt=load i8*,i8**%f,align 8
tail call fastcc void@_SMLFN5BinIO7closeInE(i8*inreg%bt)
ret void
}
define fastcc i8*@_SMLFN9CoreUtils2cpE(i8*inreg%a)#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(void(i8*,i8*)*@_SMLLN9CoreUtils2cpE_112 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*)*@_SMLLN9CoreUtils2cpE_144 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 fastcc void@_SMLFN9CoreUtils7newFileE(i8*inreg%a)#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=call fastcc i8*@_SMLFN8Filename8toStringE(i8*inreg%h)
%k=call fastcc i8*@_SMLFN5BinIO10openAppendE(i8*inreg%j)
tail call fastcc void@_SMLFN5BinIO8closeOutE(i8*inreg%k)
ret void
}
define fastcc void@_SMLFN9CoreUtils5mkdirE(i8*inreg%a)#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=call fastcc i8*@_SMLFN8Filename8toStringE(i8*inreg%h)
store i8*%j,i8**%b,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
%n=bitcast i8*%k to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[7x i8]}>,<{[4x i8],i32,[7x i8]}>*@q,i64 0,i32 2,i64 0),i8**%n,align 8
%o=load i8*,i8**%b,align 8
%p=getelementptr inbounds i8,i8*%k,i64 8
%q=bitcast i8*%p to i8**
store i8*%o,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 fastcc i8*@_SMLFN6String1_ZE(i8*inreg%k)
call fastcc void@_SMLLN9CoreUtils3logE_79(i8*inreg%t)
%u=load i8*,i8**%b,align 8
tail call fastcc void@_SMLFN18SMLSharp__OSFileSys5mkDirE(i8*inreg%u)
ret void
}
define internal fastcc i8*@_SMLLN9CoreUtils5chdirE_122(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%n
j:
call void@sml_check(i32 inreg%f)
%k=bitcast i8**%d to i8***
%l=load i8**,i8***%k,align 8
%m=bitcast i8**%l to i8*
br label%n
n:
%o=phi i8*[%m,%j],[%a,%h]
%p=phi i8**[%l,%j],[%i,%h]
%q=load i8*,i8**%p,align 8
%r=getelementptr inbounds i8,i8*%q,i64 16
%s=bitcast i8*%r to i8*(i8*,i8*,i8*)**
%t=load i8*(i8*,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**%e,align 8
%w=getelementptr inbounds i8,i8*%o,i64 8
%x=bitcast i8*%w to i32*
%y=load i32,i32*%x,align 4
store i8*null,i8**%d,align 8
%z=getelementptr inbounds i8,i8*%o,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 i8*%C,i8**%d,align 8
store i32%y,i32*%D,align 4
%G=call i8*@sml_alloc(i32 inreg 4)#0
%H=bitcast i8*%G to i32*
%I=getelementptr inbounds i8,i8*%G,i64 -4
%J=bitcast i8*%I to i32*
store i32 4,i32*%J,align 4
store i32%B,i32*%H,align 4
%K=load i8*,i8**%e,align 8
%L=load i8*,i8**%d,align 8
store i8*null,i8**%e,align 8
store i8*null,i8**%d,align 8
%M=call fastcc i8*%t(i8*inreg%K,i8*inreg%L,i8*inreg%G)
%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)
ret i8*%T
}
define internal fastcc i8*@_SMLLN9CoreUtils5chdirE_123(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
%f=alloca i8*,align 8
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
store i8*%a,i8**%f,align 8
store i8*%b,i8**%e,align 8
%g=load atomic i32,i32*@sml_check_flag unordered,align 4
%h=icmp eq i32%g,0
br i1%h,label%k,label%i
i:
call void@sml_check(i32 inreg%g)
%j=load i8*,i8**%e,align 8
br label%k
k:
%l=phi i8*[%j,%i],[%b,%m]
store i8*null,i8**%e,align 8
%n=bitcast i8**%c to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%n)
%o=bitcast i8**%d to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%o)
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%l,i8**%c,align 8
%p=call i8*@sml_alloc(i32 inreg 12)#0
%q=getelementptr inbounds i8,i8*%p,i64 -4
%r=bitcast i8*%q to i32*
store i32 1342177288,i32*%r,align 4
store i8*%p,i8**%d,align 8
%s=load i8*,i8**%c,align 8
store i8*null,i8**%c,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 i32*
store i32 1,i32*%v,align 4
%w=call i8*@sml_alloc(i32 inreg 28)#0
%x=getelementptr inbounds i8,i8*%w,i64 -4
%y=bitcast i8*%x to i32*
store i32 1342177304,i32*%y,align 4
%z=load i8*,i8**%d,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 void(...)**
store void(...)*bitcast(i8*(i8*,i32,i32)*@_SMLLN9CoreUtils5chdirE_92 to void(...)*),void(...)**%C,align 8
%D=getelementptr inbounds i8,i8*%w,i64 16
%E=bitcast i8*%D to void(...)**
store void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLN9CoreUtils5chdirE_134 to void(...)*),void(...)**%E,align 8
%F=getelementptr inbounds i8,i8*%w,i64 24
%G=bitcast i8*%F to i32*
store i32 -2147483647,i32*%G,align 4
call void@llvm.lifetime.end.p0i8(i64 8,i8*%n)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%o)
store i8*%w,i8**%e,align 8
%H=load i8*,i8**%f,align 8
%I=bitcast i8*%H to i32*
%J=load i32,i32*%I,align 4
store i8*null,i8**%f,align 8
%K=getelementptr inbounds i8,i8*%H,i64 4
%L=bitcast i8*%K to i32*
%M=load i32,i32*%L,align 4
%N=call i8*@sml_alloc(i32 inreg 20)#0
%O=getelementptr inbounds i8,i8*%N,i64 -4
%P=bitcast i8*%O to i32*
store i32 1342177296,i32*%P,align 4
store i8*%N,i8**%f,align 8
%Q=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%R=bitcast i8*%N to i8**
store i8*%Q,i8**%R,align 8
%S=getelementptr inbounds i8,i8*%N,i64 8
%T=bitcast i8*%S to i32*
store i32%J,i32*%T,align 4
%U=getelementptr inbounds i8,i8*%N,i64 12
%V=bitcast i8*%U to i32*
store i32%M,i32*%V,align 4
%W=getelementptr inbounds i8,i8*%N,i64 16
%X=bitcast i8*%W to i32*
store i32 1,i32*%X,align 4
%Y=call i8*@sml_alloc(i32 inreg 28)#0
%Z=getelementptr inbounds i8,i8*%Y,i64 -4
%aa=bitcast i8*%Z to i32*
store i32 1342177304,i32*%aa,align 4
%ab=load i8*,i8**%f,align 8
%ac=bitcast i8*%Y to i8**
store i8*%ab,i8**%ac,align 8
%ad=getelementptr inbounds i8,i8*%Y,i64 8
%ae=bitcast i8*%ad to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN9CoreUtils5chdirE_122 to void(...)*),void(...)**%ae,align 8
%af=getelementptr inbounds i8,i8*%Y,i64 16
%ag=bitcast i8*%af to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN9CoreUtils5chdirE_122 to void(...)*),void(...)**%ag,align 8
%ah=getelementptr inbounds i8,i8*%Y,i64 24
%ai=bitcast i8*%ah to i32*
store i32 1,i32*%ai,align 4
ret i8*%Y
}
define fastcc i8*@_SMLFN9CoreUtils5chdirE(i32 inreg%a,i32 inreg%b)#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*)*@_SMLLN9CoreUtils5chdirE_123 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*)*@_SMLLN9CoreUtils5chdirE_123 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 void@_SMLLN9CoreUtils3catE_126(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"personality i32(...)*@sml_personality{
%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
call void@llvm.gcroot(i8**%i,i8*null)#0
call void@llvm.gcroot(i8**%j,i8*null)#0
store i8*%a,i8**%i,align 8
store i8*%b,i8**%j,align 8
%k=load atomic i32,i32*@sml_check_flag unordered,align 4
%l=icmp eq i32%k,0
br i1%l,label%m,label%o
m:
%n=bitcast i8*%a to i8**
br label%s
o:
call void@sml_check(i32 inreg%k)
%p=load i8*,i8**%j,align 8
%q=bitcast i8**%i to i8***
%r=load i8**,i8***%q,align 8
br label%s
s:
%t=phi i8**[%r,%o],[%n,%m]
%u=phi i8*[%p,%o],[%b,%m]
%v=load i8*,i8**%t,align 8
%w=bitcast i8**%f to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%w)
%x=bitcast i8**%g to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%x)
%y=bitcast i8**%h to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%y)
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
%z=bitcast i8**%c to i8*
%A=bitcast i8**%d to i8*
%B=bitcast i8**%e to i8*
br label%C
C:
%D=phi i8*[%v,%s],[%aZ,%aU]
%E=phi i8*[%u,%s],[%a0,%aU]
store i8*%D,i8**%f,align 8
store i8*%E,i8**%g,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**%f,align 8
br label%J
J:
%K=phi i8*[%I,%H],[%D,%C]
store i8*null,i8**%f,align 8
store i8*%K,i8**%h,align 8
%L=icmp eq i8*%K,null
br i1%L,label%a1,label%M
M:
%N=bitcast i8*%K to i8**
%O=load i8*,i8**%N,align 8
%P=call fastcc i8*@_SMLFN8Filename6TextIO6openInE(i8*inreg%O)
store i8*%P,i8**%f,align 8
%Q=load i8*,i8**%g,align 8
call void@llvm.lifetime.start.p0i8(i64 8,i8*%z)
call void@llvm.lifetime.start.p0i8(i64 8,i8*%A)
call void@llvm.lifetime.start.p0i8(i64 8,i8*%B)
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
br label%R
R:
%S=phi i8*[%P,%M],[%aG,%aE]
%T=phi i8*[%Q,%M],[%aF,%aE]
store i8*%S,i8**%c,align 8
store i8*%T,i8**%d,align 8
%U=load atomic i32,i32*@sml_check_flag unordered,align 4
%V=icmp eq i32%U,0
br i1%V,label%Z,label%W
W:
invoke void@sml_check(i32 inreg%U)
to label%X unwind label%aH
X:
%Y=load i8*,i8**%c,align 8
br label%Z
Z:
%aa=phi i8*[%Y,%X],[%S,%R]
store i8*null,i8**%c,align 8
store i8*%aa,i8**%e,align 8
%ab=call i8*@sml_alloc(i32 inreg 20)#0
%ac=getelementptr inbounds i8,i8*%ab,i64 -4
%ad=bitcast i8*%ac to i32*
store i32 1342177296,i32*%ad,align 4
%ae=getelementptr inbounds i8,i8*%ab,i64 12
%af=bitcast i8*%ae to i32*
store i32 0,i32*%af,align 1
%ag=load i8*,i8**%e,align 8
%ah=bitcast i8*%ab to i8**
store i8*%ag,i8**%ah,align 8
%ai=getelementptr inbounds i8,i8*%ab,i64 8
%aj=bitcast i8*%ai to i32*
store i32 4092,i32*%aj,align 4
%ak=getelementptr inbounds i8,i8*%ab,i64 16
%al=bitcast i8*%ak to i32*
store i32 1,i32*%al,align 4
%am=invoke fastcc i8*@_SMLFN6TextIO6inputNE(i8*inreg%ab)
to label%an unwind label%aH
an:
store i8*%am,i8**%c,align 8
%ao=getelementptr inbounds i8,i8*%am,i64 -4
%ap=bitcast i8*%ao to i32*
%aq=load i32,i32*%ap,align 4
%ar=and i32%aq,268435455
%as=icmp eq i32%ar,1
br i1%as,label%aU,label%at
at:
%au=call i8*@sml_alloc(i32 inreg 20)#0
%av=getelementptr inbounds i8,i8*%au,i64 -4
%aw=bitcast i8*%av to i32*
store i32 1342177296,i32*%aw,align 4
%ax=load i8*,i8**%d,align 8
%ay=bitcast i8*%au to i8**
store i8*%ax,i8**%ay,align 8
%az=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aA=getelementptr inbounds i8,i8*%au,i64 8
%aB=bitcast i8*%aA to i8**
store i8*%az,i8**%aB,align 8
%aC=getelementptr inbounds i8,i8*%au,i64 16
%aD=bitcast i8*%aC to i32*
store i32 3,i32*%aD,align 4
invoke fastcc void@_SMLFN6TextIO6outputE(i8*inreg%au)
to label%aE unwind label%aH
aE:
%aF=load i8*,i8**%d,align 8
%aG=load i8*,i8**%e,align 8
store i8*null,i8**%d,align 8
store i8*null,i8**%e,align 8
br label%R
aH:
%aI=landingpad{i8*,i8*}
catch i8*null
%aJ=extractvalue{i8*,i8*}%aI,1
%aK=bitcast i8*%aJ to i8**
%aL=load i8*,i8**%aK,align 8
store i8*null,i8**%h,align 8
store i8*%aL,i8**%g,align 8
%aM=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
call fastcc void@_SMLFN6TextIO7closeInE(i8*inreg%aM)
%aN=call i8*@sml_alloc(i32 inreg 60)#0
%aO=getelementptr inbounds i8,i8*%aN,i64 -4
%aP=bitcast i8*%aO to i32*
store i32 1342177336,i32*%aP,align 4
%aQ=getelementptr inbounds i8,i8*%aN,i64 56
%aR=bitcast i8*%aQ to i32*
store i32 1,i32*%aR,align 4
%aS=load i8*,i8**%g,align 8
%aT=bitcast i8*%aN to i8**
store i8*%aS,i8**%aT,align 8
call void@sml_raise(i8*inreg%aN)#1
unreachable
aU:
call void@llvm.lifetime.end.p0i8(i64 8,i8*%z)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%A)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%B)
%aV=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
call fastcc void@_SMLFN6TextIO7closeInE(i8*inreg%aV)
%aW=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%aX=getelementptr inbounds i8,i8*%aW,i64 8
%aY=bitcast i8*%aX to i8**
%aZ=load i8*,i8**%aY,align 8
%a0=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
br label%C
a1:
call void@llvm.lifetime.end.p0i8(i64 8,i8*%w)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%x)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%y)
ret void
}
define fastcc i8*@_SMLFN9CoreUtils3catE(i8*inreg%a)#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(void(i8*,i8*)*@_SMLLN9CoreUtils3catE_126 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*)*@_SMLLN9CoreUtils3catE_150 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*@_SMLLN9CoreUtils9testExistE_130(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLFN9CoreUtils9testExistE(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*@_SMLLN9CoreUtils7testDirE_131(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLFN9CoreUtils7testDirE(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*@_SMLLN9CoreUtils4rm__fE_132(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLFN9CoreUtils4rm__fE(i8*inreg%b)
%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 0,i32*%d,align 4
ret i8*%c
}
define internal fastcc i8*@_SMLLN9CoreUtils7rmdir__fE_133(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLFN9CoreUtils7rmdir__fE(i8*inreg%b)
%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 0,i32*%d,align 4
ret i8*%c
}
define internal fastcc i8*@_SMLLN9CoreUtils5chdirE_134(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*@_SMLLN9CoreUtils5chdirE_92(i8*inreg%a,i32 inreg%e,i32 inreg%g)
ret i8*%h
}
define internal fastcc i8*@_SMLLN9CoreUtils12makeTextFileE_136(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLFN9CoreUtils12makeTextFileE(i8*inreg%b)
%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 0,i32*%d,align 4
ret i8*%c
}
define internal fastcc i8*@_SMLLN9CoreUtils11makeBinFileE_137(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLFN9CoreUtils11makeBinFileE(i8*inreg%b)
%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 0,i32*%d,align 4
ret i8*%c
}
define internal fastcc i8*@_SMLLN9CoreUtils13makeTextFile_GE_138(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLLN9CoreUtils13makeTextFile_GE_99(i8*inreg%a,i8*inreg%b)
%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 0,i32*%d,align 4
ret i8*%c
}
define internal fastcc i8*@_SMLLN9CoreUtils13makeTextFile_GE_139(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLFN9CoreUtils13makeTextFile_GE(i8*inreg%b)
%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 0,i32*%d,align 4
ret i8*%c
}
define internal fastcc i8*@_SMLLN9CoreUtils12readTextFileE_140(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN9CoreUtils12readTextFileE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLN9CoreUtils11readBinFileE_141(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN9CoreUtils11readBinFileE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLN9CoreUtils2cpE_144(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLLN9CoreUtils2cpE_112(i8*inreg%a,i8*inreg%b)
%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 0,i32*%d,align 4
ret i8*%c
}
define internal fastcc i8*@_SMLLN9CoreUtils2cpE_145(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN9CoreUtils2cpE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLN9CoreUtils7newFileE_147(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLFN9CoreUtils7newFileE(i8*inreg%b)
%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 0,i32*%d,align 4
ret i8*%c
}
define internal fastcc i8*@_SMLLN9CoreUtils5mkdirE_148(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLFN9CoreUtils5mkdirE(i8*inreg%b)
%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 0,i32*%d,align 4
ret i8*%c
}
define internal fastcc i8*@_SMLLN9CoreUtils5chdirE_149(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*@_SMLFN9CoreUtils5chdirE(i32 inreg%e,i32 inreg%g)
ret i8*%h
}
define internal fastcc i8*@_SMLLN9CoreUtils3catE_150(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLLN9CoreUtils3catE_126(i8*inreg%a,i8*inreg%b)
%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 0,i32*%d,align 4
ret i8*%c
}
define internal fastcc i8*@_SMLLN9CoreUtils3catE_151(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN9CoreUtils3catE(i8*inreg%b)
ret i8*%c
}
declare void@llvm.lifetime.start.p0i8(i64,i8*)#0
declare void@llvm.lifetime.end.p0i8(i64,i8*)#0
attributes#0={nounwind}
attributes#1={noreturn}
attributes#2={uwtable}
attributes#3={noreturn nounwind}
attributes#4={nounwind uwtable}
