@sml_check_flag=external local_unnamed_addr global i32
@_SMLZ5Match=external unnamed_addr constant i8*
@a=private unnamed_addr constant<{[4x i8],i32,[80x i8]}><{[4x i8]zeroinitializer,i32 -2147483568,[80x i8]c"src/compiler/compilePhases/nameevaluation/main/RenameLongsymbol.sml:33.18(1119)\00"}>,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*)*@_SMLFN16RenameLongsymbol21replaceLongsymbolTfunE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN16RenameLongsymbol21replaceLongsymbolTfunE_198 to void(...)*),i32 -2147483647}>,align 8
@c=private unnamed_addr constant<{[4x i8],i32,[81x i8]}><{[4x i8]zeroinitializer,i32 -2147483567,[81x i8]c"src/compiler/compilePhases/nameevaluation/main/RenameLongsymbol.sml:100.18(3783)\00"}>,align 8
@d=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN16RenameLongsymbol15replacePathTfunE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN16RenameLongsymbol15replacePathTfunE_200 to void(...)*),i32 -2147483647}>,align 8
@e=private unnamed_addr constant<{[4x i8],i32,[80x i8]}><{[4x i8]zeroinitializer,i32 -2147483568,[80x i8]c"src/compiler/compilePhases/nameevaluation/main/RenameLongsymbol.sml:170.6(6741)\00"}>,align 8
@f=private unnamed_addr constant<{[4x i8],i32,[80x i8]}><{[4x i8]zeroinitializer,i32 -2147483568,[80x i8]c"src/compiler/compilePhases/nameevaluation/main/RenameLongsymbol.sml:223.6(8602)\00"}>,align 8
@g=private unnamed_addr constant<{[4x i8],i32,[80x i8]}><{[4x i8]zeroinitializer,i32 -2147483568,[80x i8]c"src/compiler/compilePhases/nameevaluation/main/RenameLongsymbol.sml:254.6(9705)\00"}>,align 8
@h=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN16RenameLongsymbol24renameLongsymbolIdstatusE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN16RenameLongsymbol24renameLongsymbolIdstatusE_207 to void(...)*),i32 -2147483647}>,align 8
@i=private unnamed_addr constant<{[4x i8],i32,[81x i8]}><{[4x i8]zeroinitializer,i32 -2147483567,[81x i8]c"src/compiler/compilePhases/nameevaluation/main/RenameLongsymbol.sml:291.6(11678)\00"}>,align 8
@_SMLZN16RenameLongsymbol15replacePathTfunE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@d,i64 0,i32 2)to i8*)
@_SMLZN16RenameLongsymbol21replaceLongsymbolTfunE=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*)
@j=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN16RenameLongsymbol14replacePathEnvE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN16RenameLongsymbol14replacePathEnvE_212 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN16RenameLongsymbol14replacePathEnvE=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*)
@_SMLZN16RenameLongsymbol24renameLongsymbolIdstatusE=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*)
@k=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN16RenameLongsymbol20renameLongsymbolVarEE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN16RenameLongsymbol20renameLongsymbolVarEE_213 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN16RenameLongsymbol20renameLongsymbolVarEE=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*)
@l=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN16RenameLongsymbol22renameLomgsymbolTopEnvE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN16RenameLongsymbol22renameLomgsymbolTopEnvE_214 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN16RenameLongsymbol22renameLomgsymbolTopEnvE=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*)
@_SML_ftabba6eef7652e1b556_RenameLongsymbol=external global i8
@m=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 void@sml_matchcomp_bug()local_unnamed_addr
declare void@sml_raise(i8*inreg)local_unnamed_addr#1
declare void@sml_write(i8*inreg,i8**inreg,i8*inreg)local_unnamed_addr#0
declare i8*@_SMLFN11RecordLabel3Map3mapE(i32 inreg,i32 inreg,i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN4List3mapE(i32 inreg,i32 inreg,i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i32@_SMLFN5TypID2eqE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN5TypID3Map4findE(i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN5TypID3Map6insertE(i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN6Option3mapE(i32 inreg,i32 inreg,i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN6Symbol10lastSymbolE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN6Symbol10prefixPathE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN9SymbolEnv3mapE(i32 inreg,i32 inreg,i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN9SymbolEnv5emptyE(i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN9SymbolEnv6foldriE(i32 inreg,i32 inreg,i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN9SymbolEnv6insertE(i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main03d87556ec7f64b2_List()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main3a60343781315c1e_Option()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main44ca35c4c731682b_Symbol()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main60e750412e2bb4fe_RecordLabel()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main7374574ddb619c6a_LocalID()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_load03d87556ec7f64b2_List(i8*)local_unnamed_addr
declare void@_SML_load3a60343781315c1e_Option(i8*)local_unnamed_addr
declare void@_SML_load44ca35c4c731682b_Symbol(i8*)local_unnamed_addr
declare void@_SML_load60e750412e2bb4fe_RecordLabel(i8*)local_unnamed_addr
declare void@_SML_load7374574ddb619c6a_LocalID(i8*)local_unnamed_addr
define private void@_SML_tabbba6eef7652e1b556_RenameLongsymbol()#3{
unreachable
}
define void@_SML_loadba6eef7652e1b556_RenameLongsymbol(i8*%a)local_unnamed_addr#0{
%b=load i8,i8*@m,align 1
%c=icmp eq i8%b,0
br i1%c,label%e,label%d
d:
ret void
e:
store i8 1,i8*@m,align 1
tail call void@_SML_load03d87556ec7f64b2_List(i8*%a)#0
tail call void@_SML_load3a60343781315c1e_Option(i8*%a)#0
tail call void@_SML_load44ca35c4c731682b_Symbol(i8*%a)#0
tail call void@_SML_load60e750412e2bb4fe_RecordLabel(i8*%a)#0
tail call void@_SML_load7374574ddb619c6a_LocalID(i8*%a)#0
tail call void@sml_gcroot(i8*%a,void()*@_SML_tabbba6eef7652e1b556_RenameLongsymbol,i8*@_SML_ftabba6eef7652e1b556_RenameLongsymbol,i8*null)#0
ret void
}
define void@_SML_mainba6eef7652e1b556_RenameLongsymbol()local_unnamed_addr#2 gc"smlsharp"{
%a=load i8,i8*@m,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*@m,align 1
tail call void@_SML_main03d87556ec7f64b2_List()#2
tail call void@_SML_main3a60343781315c1e_Option()#2
tail call void@_SML_main44ca35c4c731682b_Symbol()#2
tail call void@_SML_main60e750412e2bb4fe_RecordLabel()#2
tail call void@_SML_main7374574ddb619c6a_LocalID()#2
br label%d
}
define internal fastcc i32@_SMLL6isSelf_116(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**%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%i,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%d,align 8
br label%i
i:
%j=phi i8*[%h,%g],[%b,%k]
store i8*null,i8**%d,align 8
%l=bitcast i8*%j to i32*
%m=load i32,i32*%l,align 4
%n=icmp eq i32%m,1
br i1%n,label%o,label%P
o:
%p=getelementptr inbounds i8,i8*%j,i64 8
%q=bitcast i8*%p to i8***
%r=load i8**,i8***%q,align 8
%s=load i8*,i8**%r,align 8
%t=bitcast i8*%s to i32*
%u=load i32,i32*%t,align 4
%v=icmp eq i32%u,3
br i1%v,label%w,label%P
w:
%x=getelementptr inbounds i8,i8*%s,i64 8
%y=bitcast i8*%x to i8**
%z=load i8*,i8**%y,align 8
%A=getelementptr inbounds i8,i8*%z,i64 40
%B=bitcast i8*%A to i32*
%C=load i32,i32*%B,align 4
%D=bitcast i8**%c to i32**
%E=load i32*,i32**%D,align 8
store i8*null,i8**%c,align 8
%F=load i32,i32*%E,align 4
%G=call i8*@sml_alloc(i32 inreg 12)#0
%H=bitcast i8*%G to i32*
%I=getelementptr inbounds i8,i8*%G,i64 -4
%J=bitcast i8*%I to i32*
store i32 1342177288,i32*%J,align 4
store i32%C,i32*%H,align 4
%K=getelementptr inbounds i8,i8*%G,i64 4
%L=bitcast i8*%K to i32*
store i32%F,i32*%L,align 4
%M=getelementptr inbounds i8,i8*%G,i64 8
%N=bitcast i8*%M to i32*
store i32 0,i32*%N,align 4
%O=tail call fastcc i32@_SMLFN5TypID2eqE(i8*inreg%G)
ret i32%O
P:
ret i32 0
}
define internal fastcc i8*@_SMLL13replaceTfunTy_118(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]
%p=load i8*,i8**%n,align 8
%q=tail call fastcc i8*@_SMLL13replaceTfunTy_117(i8*inreg%p,i8*inreg%o)
ret i8*%q
}
define internal fastcc i8*@_SMLL13replaceTfunTy_119(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]
%p=load i8*,i8**%n,align 8
%q=tail call fastcc i8*@_SMLL13replaceTfunTy_117(i8*inreg%p,i8*inreg%o)
ret i8*%q
}
define internal fastcc i8*@_SMLL13replaceTfunTy_120(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]
%p=load i8*,i8**%n,align 8
%q=tail call fastcc i8*@_SMLL13replaceTfunTy_117(i8*inreg%p,i8*inreg%o)
ret i8*%q
}
define internal fastcc i8*@_SMLL13replaceTfunTy_117(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
n:
%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
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
store i8*%a,i8**%e,align 8
store i8*%b,i8**%c,align 8
%h=load atomic i32,i32*@sml_check_flag unordered,align 4
%i=icmp eq i32%h,0
br i1%i,label%l,label%j
j:
call void@sml_check(i32 inreg%h)
%k=load i8*,i8**%c,align 8
br label%l
l:
%m=phi i8*[%k,%j],[%b,%n]
%o=bitcast i8*%m to i32*
%p=load i32,i32*%o,align 4
switch i32%p,label%q[
i32 8,label%I
i32 2,label%I
i32 7,label%I
i32 3,label%I
i32 6,label%cH
i32 1,label%bt
i32 4,label%ap
i32 5,label%J
i32 0,label%I
]
q:
store i8*null,i8**%e,align 8
call void@sml_matchcomp_bug()
%r=load i8*,i8**@_SMLZ5Match,align 8
store i8*%r,i8**%c,align 8
%s=call i8*@sml_alloc(i32 inreg 20)#0
%t=getelementptr inbounds i8,i8*%s,i64 -4
%u=bitcast i8*%t to i32*
store i32 1342177296,i32*%u,align 4
store i8*%s,i8**%d,align 8
%v=load i8*,i8**%c,align 8
store i8*null,i8**%c,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 i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[80x i8]}>,<{[4x i8],i32,[80x i8]}>*@a,i64 0,i32 2,i64 0),i8**%y,align 8
%z=getelementptr inbounds i8,i8*%s,i64 16
%A=bitcast i8*%z to i32*
store i32 3,i32*%A,align 4
%B=call i8*@sml_alloc(i32 inreg 60)#0
%C=getelementptr inbounds i8,i8*%B,i64 -4
%D=bitcast i8*%C to i32*
store i32 1342177336,i32*%D,align 4
%E=getelementptr inbounds i8,i8*%B,i64 56
%F=bitcast i8*%E to i32*
store i32 1,i32*%F,align 4
%G=load i8*,i8**%d,align 8
%H=bitcast i8*%B to i8**
store i8*%G,i8**%H,align 8
call void@sml_raise(i8*inreg%B)#1
unreachable
I:
ret i8*%m
J:
%K=getelementptr inbounds i8,i8*%m,i64 8
%L=bitcast i8*%K to i8**
%M=load i8*,i8**%L,align 8
%N=bitcast i8*%M to i8**
%O=load i8*,i8**%N,align 8
store i8*%O,i8**%d,align 8
%P=getelementptr inbounds i8,i8*%M,i64 8
%Q=bitcast i8*%P to i8**
%R=load i8*,i8**%Q,align 8
%S=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%T=call fastcc i8*@_SMLL13replaceTfunTy_117(i8*inreg%S,i8*inreg%R)
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**%e,align 8
%X=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%Y=bitcast i8*%U to i8**
store i8*%X,i8**%Y,align 8
%Z=load i8*,i8**%c,align 8
store i8*null,i8**%c,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 i8*@sml_alloc(i32 inreg 20)#0
%af=bitcast i8*%ae to i32*
%ag=getelementptr inbounds i8,i8*%ae,i64 -4
%ah=bitcast i8*%ag to i32*
store i32 1342177296,i32*%ah,align 4
%ai=getelementptr inbounds i8,i8*%ae,i64 4
%aj=bitcast i8*%ai to i32*
store i32 0,i32*%aj,align 1
store i32 5,i32*%af,align 4
%ak=load i8*,i8**%e,align 8
%al=getelementptr inbounds i8,i8*%ae,i64 8
%am=bitcast i8*%al to i8**
store i8*%ak,i8**%am,align 8
%an=getelementptr inbounds i8,i8*%ae,i64 16
%ao=bitcast i8*%an to i32*
store i32 2,i32*%ao,align 4
ret i8*%ae
ap:
%aq=getelementptr inbounds i8,i8*%m,i64 8
%ar=bitcast i8*%aq to i8**
%as=load i8*,i8**%ar,align 8
store i8*%as,i8**%d,align 8
%at=call fastcc i8*@_SMLFN4List3mapE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%au=getelementptr inbounds i8,i8*%at,i64 16
%av=bitcast i8*%au to i8*(i8*,i8*)**
%aw=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%av,align 8
%ax=bitcast i8*%at to i8**
%ay=load i8*,i8**%ax,align 8
store i8*%ay,i8**%c,align 8
%az=call i8*@sml_alloc(i32 inreg 12)#0
%aA=getelementptr inbounds i8,i8*%az,i64 -4
%aB=bitcast i8*%aA to i32*
store i32 1342177288,i32*%aB,align 4
store i8*%az,i8**%f,align 8
%aC=load i8*,i8**%e,align 8
%aD=bitcast i8*%az to i8**
store i8*%aC,i8**%aD,align 8
%aE=getelementptr inbounds i8,i8*%az,i64 8
%aF=bitcast i8*%aE to i32*
store i32 1,i32*%aF,align 4
%aG=call i8*@sml_alloc(i32 inreg 28)#0
%aH=getelementptr inbounds i8,i8*%aG,i64 -4
%aI=bitcast i8*%aH to i32*
store i32 1342177304,i32*%aI,align 4
%aJ=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%aK=bitcast i8*%aG to i8**
store i8*%aJ,i8**%aK,align 8
%aL=getelementptr inbounds i8,i8*%aG,i64 8
%aM=bitcast i8*%aL to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL13replaceTfunTy_120 to void(...)*),void(...)**%aM,align 8
%aN=getelementptr inbounds i8,i8*%aG,i64 16
%aO=bitcast i8*%aN to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL13replaceTfunTy_120 to void(...)*),void(...)**%aO,align 8
%aP=getelementptr inbounds i8,i8*%aG,i64 24
%aQ=bitcast i8*%aP to i32*
store i32 -2147483647,i32*%aQ,align 4
%aR=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aS=call fastcc i8*%aw(i8*inreg%aR,i8*inreg%aG)
%aT=getelementptr inbounds i8,i8*%aS,i64 16
%aU=bitcast i8*%aT to i8*(i8*,i8*)**
%aV=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aU,align 8
%aW=bitcast i8*%aS to i8**
%aX=load i8*,i8**%aW,align 8
%aY=bitcast i8**%d to i8***
%aZ=load i8**,i8***%aY,align 8
%a0=load i8*,i8**%aZ,align 8
%a1=call fastcc i8*%aV(i8*inreg%aX,i8*inreg%a0)
store i8*%a1,i8**%c,align 8
%a2=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%a3=getelementptr inbounds i8,i8*%a2,i64 8
%a4=bitcast i8*%a3 to i8**
%a5=load i8*,i8**%a4,align 8
%a6=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%a7=call fastcc i8*@_SMLL13replaceTfunTy_117(i8*inreg%a6,i8*inreg%a5)
store i8*%a7,i8**%d,align 8
%a8=call i8*@sml_alloc(i32 inreg 20)#0
%a9=getelementptr inbounds i8,i8*%a8,i64 -4
%ba=bitcast i8*%a9 to i32*
store i32 1342177296,i32*%ba,align 4
store i8*%a8,i8**%e,align 8
%bb=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bc=bitcast i8*%a8 to i8**
store i8*%bb,i8**%bc,align 8
%bd=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%be=getelementptr inbounds i8,i8*%a8,i64 8
%bf=bitcast i8*%be to i8**
store i8*%bd,i8**%bf,align 8
%bg=getelementptr inbounds i8,i8*%a8,i64 16
%bh=bitcast i8*%bg to i32*
store i32 3,i32*%bh,align 4
%bi=call i8*@sml_alloc(i32 inreg 20)#0
%bj=bitcast i8*%bi to i32*
%bk=getelementptr inbounds i8,i8*%bi,i64 -4
%bl=bitcast i8*%bk to i32*
store i32 1342177296,i32*%bl,align 4
%bm=getelementptr inbounds i8,i8*%bi,i64 4
%bn=bitcast i8*%bm to i32*
store i32 0,i32*%bn,align 1
store i32 4,i32*%bj,align 4
%bo=load i8*,i8**%e,align 8
%bp=getelementptr inbounds i8,i8*%bi,i64 8
%bq=bitcast i8*%bp to i8**
store i8*%bo,i8**%bq,align 8
%br=getelementptr inbounds i8,i8*%bi,i64 16
%bs=bitcast i8*%br to i32*
store i32 2,i32*%bs,align 4
ret i8*%bi
bt:
%bu=getelementptr inbounds i8,i8*%m,i64 8
%bv=bitcast i8*%bu to i8**
%bw=load i8*,i8**%bv,align 8
store i8*%bw,i8**%d,align 8
%bx=load i8*,i8**%e,align 8
%by=getelementptr inbounds i8,i8*%bx,i64 8
%bz=bitcast i8*%by to i8**
%bA=load i8*,i8**%bz,align 8
%bB=getelementptr inbounds i8,i8*%bw,i64 8
%bC=bitcast i8*%bB to i8**
%bD=load i8*,i8**%bC,align 8
%bE=call fastcc i32@_SMLL6isSelf_116(i8*inreg%bA,i8*inreg%bD)
%bF=icmp eq i32%bE,0
%bG=load i8*,i8**%d,align 8
%bH=getelementptr inbounds i8,i8*%bG,i64 8
%bI=bitcast i8*%bH to i8**
%bJ=bitcast i8**%e to i8***
%bK=load i8**,i8***%bJ,align 8
%bL=select i1%bF,i8**%bI,i8**%bK
%bM=load i8*,i8**%bL,align 8
store i8*%bM,i8**%c,align 8
%bN=call fastcc i8*@_SMLFN4List3mapE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%bO=getelementptr inbounds i8,i8*%bN,i64 16
%bP=bitcast i8*%bO to i8*(i8*,i8*)**
%bQ=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bP,align 8
%bR=bitcast i8*%bN to i8**
%bS=load i8*,i8**%bR,align 8
store i8*%bS,i8**%f,align 8
%bT=call i8*@sml_alloc(i32 inreg 12)#0
%bU=getelementptr inbounds i8,i8*%bT,i64 -4
%bV=bitcast i8*%bU to i32*
store i32 1342177288,i32*%bV,align 4
store i8*%bT,i8**%g,align 8
%bW=load i8*,i8**%e,align 8
store i8*null,i8**%e,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 i32*
store i32 1,i32*%bZ,align 4
%b0=call i8*@sml_alloc(i32 inreg 28)#0
%b1=getelementptr inbounds i8,i8*%b0,i64 -4
%b2=bitcast i8*%b1 to i32*
store i32 1342177304,i32*%b2,align 4
%b3=load i8*,i8**%g,align 8
store i8*null,i8**%g,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 void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL13replaceTfunTy_119 to void(...)*),void(...)**%b6,align 8
%b7=getelementptr inbounds i8,i8*%b0,i64 16
%b8=bitcast i8*%b7 to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL13replaceTfunTy_119 to void(...)*),void(...)**%b8,align 8
%b9=getelementptr inbounds i8,i8*%b0,i64 24
%ca=bitcast i8*%b9 to i32*
store i32 -2147483647,i32*%ca,align 4
%cb=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%cc=call fastcc i8*%bQ(i8*inreg%cb,i8*inreg%b0)
%cd=getelementptr inbounds i8,i8*%cc,i64 16
%ce=bitcast i8*%cd to i8*(i8*,i8*)**
%cf=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%ce,align 8
%cg=bitcast i8*%cc to i8**
%ch=load i8*,i8**%cg,align 8
%ci=bitcast i8**%d to i8***
%cj=load i8**,i8***%ci,align 8
store i8*null,i8**%d,align 8
%ck=load i8*,i8**%cj,align 8
%cl=call fastcc i8*%cf(i8*inreg%ch,i8*inreg%ck)
store i8*%cl,i8**%d,align 8
%cm=call i8*@sml_alloc(i32 inreg 20)#0
%cn=getelementptr inbounds i8,i8*%cm,i64 -4
%co=bitcast i8*%cn to i32*
store i32 1342177296,i32*%co,align 4
store i8*%cm,i8**%e,align 8
%cp=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%cq=bitcast i8*%cm to i8**
store i8*%cp,i8**%cq,align 8
%cr=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%cs=getelementptr inbounds i8,i8*%cm,i64 8
%ct=bitcast i8*%cs to i8**
store i8*%cr,i8**%ct,align 8
%cu=getelementptr inbounds i8,i8*%cm,i64 16
%cv=bitcast i8*%cu to i32*
store i32 3,i32*%cv,align 4
%cw=call i8*@sml_alloc(i32 inreg 20)#0
%cx=bitcast i8*%cw to i32*
%cy=getelementptr inbounds i8,i8*%cw,i64 -4
%cz=bitcast i8*%cy to i32*
store i32 1342177296,i32*%cz,align 4
%cA=getelementptr inbounds i8,i8*%cw,i64 4
%cB=bitcast i8*%cA to i32*
store i32 0,i32*%cB,align 1
store i32 1,i32*%cx,align 4
%cC=load i8*,i8**%e,align 8
%cD=getelementptr inbounds i8,i8*%cw,i64 8
%cE=bitcast i8*%cD to i8**
store i8*%cC,i8**%cE,align 8
%cF=getelementptr inbounds i8,i8*%cw,i64 16
%cG=bitcast i8*%cF to i32*
store i32 2,i32*%cG,align 4
ret i8*%cw
cH:
%cI=getelementptr inbounds i8,i8*%m,i64 8
%cJ=bitcast i8*%cI to i8**
%cK=load i8*,i8**%cJ,align 8
store i8*%cK,i8**%c,align 8
%cL=getelementptr inbounds i8,i8*%cK,i64 8
%cM=bitcast i8*%cL to i32*
%cN=load i32,i32*%cM,align 4
%cO=call fastcc i8*@_SMLFN11RecordLabel3Map3mapE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%cP=getelementptr inbounds i8,i8*%cO,i64 16
%cQ=bitcast i8*%cP to i8*(i8*,i8*)**
%cR=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%cQ,align 8
%cS=bitcast i8*%cO to i8**
%cT=load i8*,i8**%cS,align 8
store i8*%cT,i8**%d,align 8
%cU=call i8*@sml_alloc(i32 inreg 12)#0
%cV=getelementptr inbounds i8,i8*%cU,i64 -4
%cW=bitcast i8*%cV to i32*
store i32 1342177288,i32*%cW,align 4
store i8*%cU,i8**%f,align 8
%cX=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%cY=bitcast i8*%cU to i8**
store i8*%cX,i8**%cY,align 8
%cZ=getelementptr inbounds i8,i8*%cU,i64 8
%c0=bitcast i8*%cZ to i32*
store i32 1,i32*%c0,align 4
%c1=call i8*@sml_alloc(i32 inreg 28)#0
%c2=getelementptr inbounds i8,i8*%c1,i64 -4
%c3=bitcast i8*%c2 to i32*
store i32 1342177304,i32*%c3,align 4
%c4=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%c5=bitcast i8*%c1 to i8**
store i8*%c4,i8**%c5,align 8
%c6=getelementptr inbounds i8,i8*%c1,i64 8
%c7=bitcast i8*%c6 to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL13replaceTfunTy_118 to void(...)*),void(...)**%c7,align 8
%c8=getelementptr inbounds i8,i8*%c1,i64 16
%c9=bitcast i8*%c8 to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL13replaceTfunTy_118 to void(...)*),void(...)**%c9,align 8
%da=getelementptr inbounds i8,i8*%c1,i64 24
%db=bitcast i8*%da to i32*
store i32 -2147483647,i32*%db,align 4
%dc=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%dd=call fastcc i8*%cR(i8*inreg%dc,i8*inreg%c1)
%de=getelementptr inbounds i8,i8*%dd,i64 16
%df=bitcast i8*%de to i8*(i8*,i8*)**
%dg=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%df,align 8
%dh=bitcast i8*%dd to i8**
%di=load i8*,i8**%dh,align 8
%dj=bitcast i8**%c to i8***
%dk=load i8**,i8***%dj,align 8
store i8*null,i8**%c,align 8
%dl=load i8*,i8**%dk,align 8
%dm=call fastcc i8*%dg(i8*inreg%di,i8*inreg%dl)
store i8*%dm,i8**%c,align 8
%dn=call i8*@sml_alloc(i32 inreg 20)#0
%do=getelementptr inbounds i8,i8*%dn,i64 -4
%dp=bitcast i8*%do to i32*
store i32 1342177296,i32*%dp,align 4
store i8*%dn,i8**%d,align 8
%dq=getelementptr inbounds i8,i8*%dn,i64 12
%dr=bitcast i8*%dq to i32*
store i32 0,i32*%dr,align 1
%ds=load i8*,i8**%c,align 8
%dt=bitcast i8*%dn to i8**
store i8*null,i8**%c,align 8
store i8*%ds,i8**%dt,align 8
%du=getelementptr inbounds i8,i8*%dn,i64 8
%dv=bitcast i8*%du to i32*
store i32%cN,i32*%dv,align 4
%dw=getelementptr inbounds i8,i8*%dn,i64 16
%dx=bitcast i8*%dw to i32*
store i32 1,i32*%dx,align 4
%dy=call i8*@sml_alloc(i32 inreg 20)#0
%dz=bitcast i8*%dy to i32*
%dA=getelementptr inbounds i8,i8*%dy,i64 -4
%dB=bitcast i8*%dA to i32*
store i32 1342177296,i32*%dB,align 4
%dC=getelementptr inbounds i8,i8*%dy,i64 4
%dD=bitcast i8*%dC to i32*
store i32 0,i32*%dD,align 1
store i32 6,i32*%dz,align 4
%dE=load i8*,i8**%d,align 8
%dF=getelementptr inbounds i8,i8*%dy,i64 8
%dG=bitcast i8*%dF to i8**
store i8*%dE,i8**%dG,align 8
%dH=getelementptr inbounds i8,i8*%dy,i64 16
%dI=bitcast i8*%dH to i32*
store i32 2,i32*%dI,align 4
ret i8*%dy
}
define internal fastcc i8*@_SMLL10newConSpec_122(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]
%p=load i8*,i8**%n,align 8
%q=tail call fastcc i8*@_SMLL13replaceTfunTy_117(i8*inreg%p,i8*inreg%o)
ret i8*%q
}
define internal fastcc i8*@_SMLLN16RenameLongsymbol21replaceLongsymbolTfunE_123(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
u:
%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**%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
store i8*%a,i8**%h,align 8
store i8*%b,i8**%c,align 8
%o=load atomic i32,i32*@sml_check_flag unordered,align 4
%p=icmp eq i32%o,0
br i1%p,label%s,label%q
q:
call void@sml_check(i32 inreg%o)
%r=load i8*,i8**%c,align 8
br label%s
s:
%t=phi i8*[%r,%q],[%b,%u]
%v=bitcast i8*%t to i32*
%w=load i32,i32*%v,align 4
%x=icmp eq i32%w,1
br i1%x,label%y,label%dJ
y:
%z=getelementptr inbounds i8,i8*%t,i64 8
%A=bitcast i8*%z to i8***
%B=load i8**,i8***%A,align 8
%C=load i8*,i8**%B,align 8
%D=bitcast i8*%C to i32*
%E=load i32,i32*%D,align 4
%F=icmp eq i32%E,3
br i1%F,label%G,label%dJ
G:
%H=getelementptr inbounds i8,i8*%C,i64 8
%I=bitcast i8*%H to i8**
%J=load i8*,i8**%I,align 8
%K=bitcast i8*%J to i32*
%L=load i32,i32*%K,align 4
%M=getelementptr inbounds i8,i8*%J,i64 8
%N=bitcast i8*%M to i8**
%O=load i8*,i8**%N,align 8
store i8*%O,i8**%d,align 8
%P=getelementptr inbounds i8,i8*%J,i64 16
%Q=bitcast i8*%P to i8**
%R=load i8*,i8**%Q,align 8
store i8*%R,i8**%c,align 8
%S=getelementptr inbounds i8,i8*%J,i64 24
%T=bitcast i8*%S to i8**
%U=load i8*,i8**%T,align 8
store i8*%U,i8**%e,align 8
%V=getelementptr inbounds i8,i8*%J,i64 32
%W=bitcast i8*%V to i8**
%X=load i8*,i8**%W,align 8
store i8*%X,i8**%f,align 8
%Y=getelementptr inbounds i8,i8*%J,i64 40
%Z=bitcast i8*%Y to i32*
%aa=load i32,i32*%Z,align 4
%ab=getelementptr inbounds i8,i8*%J,i64 48
%ac=bitcast i8*%ab to i8**
%ad=load i8*,i8**%ac,align 8
store i8*%ad,i8**%g,align 8
%ae=call i8*@sml_alloc(i32 inreg 8)#0
%af=getelementptr inbounds i8,i8*%ae,i64 -4
%ag=bitcast i8*%af to i32*
store i32 805306376,i32*%ag,align 4
store i8*%ae,i8**%k,align 8
%ah=bitcast i8*%ae to i64*
store i64 0,i64*%ah,align 1
%ai=load i8*,i8**%h,align 8
%aj=getelementptr inbounds i8,i8*%ai,i64 8
%ak=bitcast i8*%aj to i8**
%al=load i8*,i8**%ak,align 8
store i8*%al,i8**%i,align 8
%am=call i8*@sml_alloc(i32 inreg 68)#0
%an=getelementptr inbounds i8,i8*%am,i64 -4
%ao=bitcast i8*%an to i32*
store i32 1342177344,i32*%ao,align 4
store i8*%am,i8**%j,align 8
%ap=getelementptr inbounds i8,i8*%am,i64 4
call void@llvm.memset.p0i8.i32(i8*%ap,i8 0,i32 44,i1 false)
%aq=bitcast i8*%am to i32*
store i32%L,i32*%aq,align 4
%ar=load i8*,i8**%d,align 8
%as=getelementptr inbounds i8,i8*%am,i64 8
%at=bitcast i8*%as to i8**
store i8*%ar,i8**%at,align 8
%au=load i8*,i8**%c,align 8
%av=getelementptr inbounds i8,i8*%am,i64 16
%aw=bitcast i8*%av to i8**
store i8*%au,i8**%aw,align 8
%ax=load i8*,i8**%e,align 8
%ay=getelementptr inbounds i8,i8*%am,i64 24
%az=bitcast i8*%ay to i8**
store i8*%ax,i8**%az,align 8
%aA=load i8*,i8**%f,align 8
%aB=getelementptr inbounds i8,i8*%am,i64 32
%aC=bitcast i8*%aB to i8**
store i8*%aA,i8**%aC,align 8
%aD=getelementptr inbounds i8,i8*%am,i64 40
%aE=bitcast i8*%aD to i32*
store i32%aa,i32*%aE,align 4
%aF=load i8*,i8**%g,align 8
%aG=getelementptr inbounds i8,i8*%am,i64 48
%aH=bitcast i8*%aG to i8**
store i8*%aF,i8**%aH,align 8
%aI=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%aJ=getelementptr inbounds i8,i8*%am,i64 56
%aK=bitcast i8*%aJ to i8**
store i8*%aI,i8**%aK,align 8
%aL=getelementptr inbounds i8,i8*%am,i64 64
%aM=bitcast i8*%aL to i32*
store i32 222,i32*%aM,align 4
%aN=call i8*@sml_alloc(i32 inreg 20)#0
%aO=bitcast i8*%aN to i32*
%aP=getelementptr inbounds i8,i8*%aN,i64 -4
%aQ=bitcast i8*%aP to i32*
store i32 1342177296,i32*%aQ,align 4
%aR=getelementptr inbounds i8,i8*%aN,i64 4
%aS=bitcast i8*%aR to i32*
store i32 0,i32*%aS,align 1
store i32 3,i32*%aO,align 4
%aT=load i8*,i8**%j,align 8
store i8*null,i8**%j,align 8
%aU=getelementptr inbounds i8,i8*%aN,i64 8
%aV=bitcast i8*%aU to i8**
store i8*%aT,i8**%aV,align 8
%aW=getelementptr inbounds i8,i8*%aN,i64 16
%aX=bitcast i8*%aW to i32*
store i32 2,i32*%aX,align 4
%aY=load i8*,i8**%k,align 8
%aZ=bitcast i8*%aY to i8**
call void@sml_write(i8*inreg%aY,i8**inreg%aZ,i8*inreg%aN)#0
%a0=call i8*@sml_alloc(i32 inreg 20)#0
%a1=getelementptr inbounds i8,i8*%a0,i64 -4
%a2=bitcast i8*%a1 to i32*
store i32 1342177296,i32*%a2,align 4
store i8*%a0,i8**%l,align 8
%a3=getelementptr inbounds i8,i8*%a0,i64 4
%a4=bitcast i8*%a3 to i32*
store i32 0,i32*%a4,align 1
%a5=bitcast i8*%a0 to i32*
store i32 1,i32*%a5,align 4
%a6=load i8*,i8**%k,align 8
%a7=getelementptr inbounds i8,i8*%a0,i64 8
%a8=bitcast i8*%a7 to i8**
store i8*%a6,i8**%a8,align 8
%a9=getelementptr inbounds i8,i8*%a0,i64 16
%ba=bitcast i8*%a9 to i32*
store i32 2,i32*%ba,align 4
%bb=call i8*@sml_alloc(i32 inreg 12)#0
%bc=bitcast i8*%bb to i32*
%bd=getelementptr inbounds i8,i8*%bb,i64 -4
%be=bitcast i8*%bd to i32*
store i32 1342177288,i32*%be,align 4
store i8*%bb,i8**%i,align 8
store i32%aa,i32*%bc,align 4
%bf=getelementptr inbounds i8,i8*%bb,i64 8
%bg=bitcast i8*%bf to i32*
store i32 0,i32*%bg,align 4
%bh=call i8*@sml_alloc(i32 inreg 28)#0
%bi=getelementptr inbounds i8,i8*%bh,i64 -4
%bj=bitcast i8*%bi to i32*
store i32 1342177304,i32*%bj,align 4
%bk=load i8*,i8**%i,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 void(...)**
store void(...)*bitcast(i32(i8*,i8*)*@_SMLL6isSelf_116 to void(...)*),void(...)**%bn,align 8
%bo=getelementptr inbounds i8,i8*%bh,i64 16
%bp=bitcast i8*%bo to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL6isSelf_197 to void(...)*),void(...)**%bp,align 8
%bq=getelementptr inbounds i8,i8*%bh,i64 24
%br=bitcast i8*%bq to i32*
store i32 -2147483647,i32*%br,align 4
%bs=call i8*@sml_alloc(i32 inreg 20)#0
%bt=getelementptr inbounds i8,i8*%bs,i64 -4
%bu=bitcast i8*%bt to i32*
store i32 1342177296,i32*%bu,align 4
store i8*%bs,i8**%m,align 8
%bv=load i8*,i8**%l,align 8
%bw=bitcast i8*%bs to i8**
store i8*%bv,i8**%bw,align 8
%bx=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%by=getelementptr inbounds i8,i8*%bs,i64 8
%bz=bitcast i8*%by to i8**
store i8*%bx,i8**%bz,align 8
%bA=getelementptr inbounds i8,i8*%bs,i64 16
%bB=bitcast i8*%bA to i32*
store i32 3,i32*%bB,align 4
%bC=call i8*@sml_alloc(i32 inreg 28)#0
%bD=getelementptr inbounds i8,i8*%bC,i64 -4
%bE=bitcast i8*%bD to i32*
store i32 1342177304,i32*%bE,align 4
%bF=load i8*,i8**%m,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 void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL13replaceTfunTy_117 to void(...)*),void(...)**%bI,align 8
%bJ=getelementptr inbounds i8,i8*%bC,i64 16
%bK=bitcast i8*%bJ to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL13replaceTfunTy_117 to void(...)*),void(...)**%bK,align 8
%bL=getelementptr inbounds i8,i8*%bC,i64 24
%bM=bitcast i8*%bL to i32*
store i32 -2147483647,i32*%bM,align 4
%bN=call fastcc i8*@_SMLFN9SymbolEnv3mapE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%bO=getelementptr inbounds i8,i8*%bN,i64 16
%bP=bitcast i8*%bO to i8*(i8*,i8*)**
%bQ=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bP,align 8
%bR=bitcast i8*%bN to i8**
%bS=load i8*,i8**%bR,align 8
store i8*%bS,i8**%j,align 8
%bT=call fastcc i8*@_SMLFN6Option3mapE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%bU=getelementptr inbounds i8,i8*%bT,i64 16
%bV=bitcast i8*%bU to i8*(i8*,i8*)**
%bW=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bV,align 8
%bX=bitcast i8*%bT to i8**
%bY=load i8*,i8**%bX,align 8
store i8*%bY,i8**%i,align 8
%bZ=call i8*@sml_alloc(i32 inreg 12)#0
%b0=getelementptr inbounds i8,i8*%bZ,i64 -4
%b1=bitcast i8*%b0 to i32*
store i32 1342177288,i32*%b1,align 4
store i8*%bZ,i8**%n,align 8
%b2=load i8*,i8**%m,align 8
store i8*null,i8**%m,align 8
%b3=bitcast i8*%bZ to i8**
store i8*%b2,i8**%b3,align 8
%b4=getelementptr inbounds i8,i8*%bZ,i64 8
%b5=bitcast i8*%b4 to i32*
store i32 1,i32*%b5,align 4
%b6=call i8*@sml_alloc(i32 inreg 28)#0
%b7=getelementptr inbounds i8,i8*%b6,i64 -4
%b8=bitcast i8*%b7 to i32*
store i32 1342177304,i32*%b8,align 4
%b9=load i8*,i8**%n,align 8
store i8*null,i8**%n,align 8
%ca=bitcast i8*%b6 to i8**
store i8*%b9,i8**%ca,align 8
%cb=getelementptr inbounds i8,i8*%b6,i64 8
%cc=bitcast i8*%cb to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL10newConSpec_122 to void(...)*),void(...)**%cc,align 8
%cd=getelementptr inbounds i8,i8*%b6,i64 16
%ce=bitcast i8*%cd to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL10newConSpec_122 to void(...)*),void(...)**%ce,align 8
%cf=getelementptr inbounds i8,i8*%b6,i64 24
%cg=bitcast i8*%cf to i32*
store i32 -2147483647,i32*%cg,align 4
%ch=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%ci=call fastcc i8*%bW(i8*inreg%ch,i8*inreg%b6)
%cj=load i8*,i8**%j,align 8
store i8*null,i8**%j,align 8
%ck=call fastcc i8*%bQ(i8*inreg%cj,i8*inreg%ci)
%cl=getelementptr inbounds i8,i8*%ck,i64 16
%cm=bitcast i8*%cl to i8*(i8*,i8*)**
%cn=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%cm,align 8
%co=bitcast i8*%ck to i8**
%cp=load i8*,i8**%co,align 8
%cq=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%cr=call fastcc i8*%cn(i8*inreg%cp,i8*inreg%cq)
store i8*%cr,i8**%c,align 8
%cs=load i8*,i8**%h,align 8
%ct=getelementptr inbounds i8,i8*%cs,i64 8
%cu=bitcast i8*%ct to i8**
%cv=load i8*,i8**%cu,align 8
store i8*%cv,i8**%i,align 8
%cw=call i8*@sml_alloc(i32 inreg 68)#0
%cx=getelementptr inbounds i8,i8*%cw,i64 -4
%cy=bitcast i8*%cx to i32*
store i32 1342177344,i32*%cy,align 4
store i8*%cw,i8**%j,align 8
%cz=getelementptr inbounds i8,i8*%cw,i64 4
call void@llvm.memset.p0i8.i32(i8*%cz,i8 0,i32 44,i1 false)
%cA=bitcast i8*%cw to i32*
store i32%L,i32*%cA,align 4
%cB=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%cC=getelementptr inbounds i8,i8*%cw,i64 8
%cD=bitcast i8*%cC to i8**
store i8*%cB,i8**%cD,align 8
%cE=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%cF=getelementptr inbounds i8,i8*%cw,i64 16
%cG=bitcast i8*%cF to i8**
store i8*%cE,i8**%cG,align 8
%cH=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%cI=getelementptr inbounds i8,i8*%cw,i64 24
%cJ=bitcast i8*%cI to i8**
store i8*%cH,i8**%cJ,align 8
%cK=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%cL=getelementptr inbounds i8,i8*%cw,i64 32
%cM=bitcast i8*%cL to i8**
store i8*%cK,i8**%cM,align 8
%cN=getelementptr inbounds i8,i8*%cw,i64 40
%cO=bitcast i8*%cN to i32*
store i32%aa,i32*%cO,align 4
%cP=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%cQ=getelementptr inbounds i8,i8*%cw,i64 48
%cR=bitcast i8*%cQ to i8**
store i8*%cP,i8**%cR,align 8
%cS=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%cT=getelementptr inbounds i8,i8*%cw,i64 56
%cU=bitcast i8*%cT to i8**
store i8*%cS,i8**%cU,align 8
%cV=getelementptr inbounds i8,i8*%cw,i64 64
%cW=bitcast i8*%cV to i32*
store i32 222,i32*%cW,align 4
%cX=call i8*@sml_alloc(i32 inreg 20)#0
%cY=bitcast i8*%cX to i32*
%cZ=getelementptr inbounds i8,i8*%cX,i64 -4
%c0=bitcast i8*%cZ to i32*
store i32 1342177296,i32*%c0,align 4
%c1=getelementptr inbounds i8,i8*%cX,i64 4
%c2=bitcast i8*%c1 to i32*
store i32 0,i32*%c2,align 1
store i32 3,i32*%cY,align 4
%c3=load i8*,i8**%j,align 8
store i8*null,i8**%j,align 8
%c4=getelementptr inbounds i8,i8*%cX,i64 8
%c5=bitcast i8*%c4 to i8**
store i8*%c3,i8**%c5,align 8
%c6=getelementptr inbounds i8,i8*%cX,i64 16
%c7=bitcast i8*%c6 to i32*
store i32 2,i32*%c7,align 4
%c8=load i8*,i8**%k,align 8
store i8*null,i8**%k,align 8
%c9=bitcast i8*%c8 to i8**
call void@sml_write(i8*inreg%c8,i8**inreg%c9,i8*inreg%cX)#0
%da=call fastcc i8*@_SMLFN5TypID3Map6insertE(i32 inreg 1,i32 inreg 8)
%db=getelementptr inbounds i8,i8*%da,i64 16
%dc=bitcast i8*%db to i8*(i8*,i8*)**
%dd=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%dc,align 8
%de=bitcast i8*%da to i8**
%df=load i8*,i8**%de,align 8
store i8*%df,i8**%d,align 8
%dg=bitcast i8**%h to i8***
%dh=load i8**,i8***%dg,align 8
store i8*null,i8**%h,align 8
%di=load i8*,i8**%dh,align 8
store i8*%di,i8**%c,align 8
%dj=call i8*@sml_alloc(i32 inreg 28)#0
%dk=getelementptr inbounds i8,i8*%dj,i64 -4
%dl=bitcast i8*%dk to i32*
store i32 1342177304,i32*%dl,align 4
%dm=getelementptr inbounds i8,i8*%dj,i64 12
%dn=bitcast i8*%dm to i32*
store i32 0,i32*%dn,align 1
%do=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%dp=bitcast i8*%dj to i8**
store i8*%do,i8**%dp,align 8
%dq=getelementptr inbounds i8,i8*%dj,i64 8
%dr=bitcast i8*%dq to i32*
store i32%aa,i32*%dr,align 4
%ds=load i8*,i8**%l,align 8
%dt=getelementptr inbounds i8,i8*%dj,i64 16
%du=bitcast i8*%dt to i8**
store i8*%ds,i8**%du,align 8
%dv=getelementptr inbounds i8,i8*%dj,i64 24
%dw=bitcast i8*%dv to i32*
store i32 5,i32*%dw,align 4
%dx=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%dy=call fastcc i8*%dd(i8*inreg%dx,i8*inreg%dj)
store i8*%dy,i8**%c,align 8
%dz=call i8*@sml_alloc(i32 inreg 20)#0
%dA=getelementptr inbounds i8,i8*%dz,i64 -4
%dB=bitcast i8*%dA to i32*
store i32 1342177296,i32*%dB,align 4
%dC=load i8*,i8**%l,align 8
%dD=bitcast i8*%dz to i8**
store i8*%dC,i8**%dD,align 8
%dE=load i8*,i8**%c,align 8
%dF=getelementptr inbounds i8,i8*%dz,i64 8
%dG=bitcast i8*%dF to i8**
store i8*%dE,i8**%dG,align 8
%dH=getelementptr inbounds i8,i8*%dz,i64 16
%dI=bitcast i8*%dH to i32*
store i32 3,i32*%dI,align 4
ret i8*%dz
dJ:
%dK=bitcast i8**%h to i8***
%dL=load i8**,i8***%dK,align 8
store i8*null,i8**%h,align 8
%dM=load i8*,i8**%dL,align 8
store i8*%dM,i8**%d,align 8
%dN=call i8*@sml_alloc(i32 inreg 20)#0
%dO=getelementptr inbounds i8,i8*%dN,i64 -4
%dP=bitcast i8*%dO to i32*
store i32 1342177296,i32*%dP,align 4
%dQ=load i8*,i8**%c,align 8
%dR=bitcast i8*%dN to i8**
store i8*%dQ,i8**%dR,align 8
%dS=load i8*,i8**%d,align 8
%dT=getelementptr inbounds i8,i8*%dN,i64 8
%dU=bitcast i8*%dT to i8**
store i8*%dS,i8**%dU,align 8
%dV=getelementptr inbounds i8,i8*%dN,i64 16
%dW=bitcast i8*%dV to i32*
store i32 3,i32*%dW,align 4
ret i8*%dN
}
define internal fastcc i8*@_SMLLN16RenameLongsymbol21replaceLongsymbolTfunE_124(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=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=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%n=getelementptr inbounds i8,i8*%h,i64 8
%o=bitcast i8*%n to i8**
store i8*%m,i8**%o,align 8
%p=getelementptr inbounds i8,i8*%h,i64 16
%q=bitcast i8*%p to i32*
store i32 3,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
%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(i8*(i8*,i8*)*@_SMLLN16RenameLongsymbol21replaceLongsymbolTfunE_123 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*)*@_SMLLN16RenameLongsymbol21replaceLongsymbolTfunE_123 to void(...)*),void(...)**%z,align 8
%A=getelementptr inbounds i8,i8*%r,i64 24
%B=bitcast i8*%A to i32*
store i32 -2147483647,i32*%B,align 4
ret i8*%r
}
define fastcc i8*@_SMLFN16RenameLongsymbol21replaceLongsymbolTfunE(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(i8*(i8*,i8*)*@_SMLLN16RenameLongsymbol21replaceLongsymbolTfunE_124 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*)*@_SMLLN16RenameLongsymbol21replaceLongsymbolTfunE_124 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@_SMLL6isSelf_127(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**%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%i,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%d,align 8
br label%i
i:
%j=phi i8*[%h,%g],[%b,%k]
store i8*null,i8**%d,align 8
%l=bitcast i8*%j to i32*
%m=load i32,i32*%l,align 4
%n=icmp eq i32%m,1
br i1%n,label%o,label%P
o:
%p=getelementptr inbounds i8,i8*%j,i64 8
%q=bitcast i8*%p to i8***
%r=load i8**,i8***%q,align 8
%s=load i8*,i8**%r,align 8
%t=bitcast i8*%s to i32*
%u=load i32,i32*%t,align 4
%v=icmp eq i32%u,3
br i1%v,label%w,label%P
w:
%x=getelementptr inbounds i8,i8*%s,i64 8
%y=bitcast i8*%x to i8**
%z=load i8*,i8**%y,align 8
%A=getelementptr inbounds i8,i8*%z,i64 40
%B=bitcast i8*%A to i32*
%C=load i32,i32*%B,align 4
%D=bitcast i8**%c to i32**
%E=load i32*,i32**%D,align 8
store i8*null,i8**%c,align 8
%F=load i32,i32*%E,align 4
%G=call i8*@sml_alloc(i32 inreg 12)#0
%H=bitcast i8*%G to i32*
%I=getelementptr inbounds i8,i8*%G,i64 -4
%J=bitcast i8*%I to i32*
store i32 1342177288,i32*%J,align 4
store i32%C,i32*%H,align 4
%K=getelementptr inbounds i8,i8*%G,i64 4
%L=bitcast i8*%K to i32*
store i32%F,i32*%L,align 4
%M=getelementptr inbounds i8,i8*%G,i64 8
%N=bitcast i8*%M to i32*
store i32 0,i32*%N,align 4
%O=tail call fastcc i32@_SMLFN5TypID2eqE(i8*inreg%G)
ret i32%O
P:
ret i32 0
}
define internal fastcc i8*@_SMLL13replaceTfunTy_129(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]
%p=load i8*,i8**%n,align 8
%q=tail call fastcc i8*@_SMLL13replaceTfunTy_128(i8*inreg%p,i8*inreg%o)
ret i8*%q
}
define internal fastcc i8*@_SMLL13replaceTfunTy_130(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]
%p=load i8*,i8**%n,align 8
%q=tail call fastcc i8*@_SMLL13replaceTfunTy_128(i8*inreg%p,i8*inreg%o)
ret i8*%q
}
define internal fastcc i8*@_SMLL13replaceTfunTy_131(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]
%p=load i8*,i8**%n,align 8
%q=tail call fastcc i8*@_SMLL13replaceTfunTy_128(i8*inreg%p,i8*inreg%o)
ret i8*%q
}
define internal fastcc i8*@_SMLL13replaceTfunTy_128(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
n:
%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
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
store i8*%a,i8**%e,align 8
store i8*%b,i8**%c,align 8
%h=load atomic i32,i32*@sml_check_flag unordered,align 4
%i=icmp eq i32%h,0
br i1%i,label%l,label%j
j:
call void@sml_check(i32 inreg%h)
%k=load i8*,i8**%c,align 8
br label%l
l:
%m=phi i8*[%k,%j],[%b,%n]
%o=bitcast i8*%m to i32*
%p=load i32,i32*%o,align 4
switch i32%p,label%q[
i32 8,label%I
i32 2,label%I
i32 7,label%I
i32 3,label%I
i32 6,label%cH
i32 1,label%bt
i32 4,label%ap
i32 5,label%J
i32 0,label%I
]
q:
store i8*null,i8**%e,align 8
call void@sml_matchcomp_bug()
%r=load i8*,i8**@_SMLZ5Match,align 8
store i8*%r,i8**%c,align 8
%s=call i8*@sml_alloc(i32 inreg 20)#0
%t=getelementptr inbounds i8,i8*%s,i64 -4
%u=bitcast i8*%t to i32*
store i32 1342177296,i32*%u,align 4
store i8*%s,i8**%d,align 8
%v=load i8*,i8**%c,align 8
store i8*null,i8**%c,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 i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[81x i8]}>,<{[4x i8],i32,[81x i8]}>*@c,i64 0,i32 2,i64 0),i8**%y,align 8
%z=getelementptr inbounds i8,i8*%s,i64 16
%A=bitcast i8*%z to i32*
store i32 3,i32*%A,align 4
%B=call i8*@sml_alloc(i32 inreg 60)#0
%C=getelementptr inbounds i8,i8*%B,i64 -4
%D=bitcast i8*%C to i32*
store i32 1342177336,i32*%D,align 4
%E=getelementptr inbounds i8,i8*%B,i64 56
%F=bitcast i8*%E to i32*
store i32 1,i32*%F,align 4
%G=load i8*,i8**%d,align 8
%H=bitcast i8*%B to i8**
store i8*%G,i8**%H,align 8
call void@sml_raise(i8*inreg%B)#1
unreachable
I:
ret i8*%m
J:
%K=getelementptr inbounds i8,i8*%m,i64 8
%L=bitcast i8*%K to i8**
%M=load i8*,i8**%L,align 8
%N=bitcast i8*%M to i8**
%O=load i8*,i8**%N,align 8
store i8*%O,i8**%d,align 8
%P=getelementptr inbounds i8,i8*%M,i64 8
%Q=bitcast i8*%P to i8**
%R=load i8*,i8**%Q,align 8
%S=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%T=call fastcc i8*@_SMLL13replaceTfunTy_128(i8*inreg%S,i8*inreg%R)
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**%e,align 8
%X=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%Y=bitcast i8*%U to i8**
store i8*%X,i8**%Y,align 8
%Z=load i8*,i8**%c,align 8
store i8*null,i8**%c,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 i8*@sml_alloc(i32 inreg 20)#0
%af=bitcast i8*%ae to i32*
%ag=getelementptr inbounds i8,i8*%ae,i64 -4
%ah=bitcast i8*%ag to i32*
store i32 1342177296,i32*%ah,align 4
%ai=getelementptr inbounds i8,i8*%ae,i64 4
%aj=bitcast i8*%ai to i32*
store i32 0,i32*%aj,align 1
store i32 5,i32*%af,align 4
%ak=load i8*,i8**%e,align 8
%al=getelementptr inbounds i8,i8*%ae,i64 8
%am=bitcast i8*%al to i8**
store i8*%ak,i8**%am,align 8
%an=getelementptr inbounds i8,i8*%ae,i64 16
%ao=bitcast i8*%an to i32*
store i32 2,i32*%ao,align 4
ret i8*%ae
ap:
%aq=getelementptr inbounds i8,i8*%m,i64 8
%ar=bitcast i8*%aq to i8**
%as=load i8*,i8**%ar,align 8
store i8*%as,i8**%d,align 8
%at=call fastcc i8*@_SMLFN4List3mapE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%au=getelementptr inbounds i8,i8*%at,i64 16
%av=bitcast i8*%au to i8*(i8*,i8*)**
%aw=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%av,align 8
%ax=bitcast i8*%at to i8**
%ay=load i8*,i8**%ax,align 8
store i8*%ay,i8**%c,align 8
%az=call i8*@sml_alloc(i32 inreg 12)#0
%aA=getelementptr inbounds i8,i8*%az,i64 -4
%aB=bitcast i8*%aA to i32*
store i32 1342177288,i32*%aB,align 4
store i8*%az,i8**%f,align 8
%aC=load i8*,i8**%e,align 8
%aD=bitcast i8*%az to i8**
store i8*%aC,i8**%aD,align 8
%aE=getelementptr inbounds i8,i8*%az,i64 8
%aF=bitcast i8*%aE to i32*
store i32 1,i32*%aF,align 4
%aG=call i8*@sml_alloc(i32 inreg 28)#0
%aH=getelementptr inbounds i8,i8*%aG,i64 -4
%aI=bitcast i8*%aH to i32*
store i32 1342177304,i32*%aI,align 4
%aJ=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%aK=bitcast i8*%aG to i8**
store i8*%aJ,i8**%aK,align 8
%aL=getelementptr inbounds i8,i8*%aG,i64 8
%aM=bitcast i8*%aL to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL13replaceTfunTy_131 to void(...)*),void(...)**%aM,align 8
%aN=getelementptr inbounds i8,i8*%aG,i64 16
%aO=bitcast i8*%aN to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL13replaceTfunTy_131 to void(...)*),void(...)**%aO,align 8
%aP=getelementptr inbounds i8,i8*%aG,i64 24
%aQ=bitcast i8*%aP to i32*
store i32 -2147483647,i32*%aQ,align 4
%aR=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aS=call fastcc i8*%aw(i8*inreg%aR,i8*inreg%aG)
%aT=getelementptr inbounds i8,i8*%aS,i64 16
%aU=bitcast i8*%aT to i8*(i8*,i8*)**
%aV=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aU,align 8
%aW=bitcast i8*%aS to i8**
%aX=load i8*,i8**%aW,align 8
%aY=bitcast i8**%d to i8***
%aZ=load i8**,i8***%aY,align 8
%a0=load i8*,i8**%aZ,align 8
%a1=call fastcc i8*%aV(i8*inreg%aX,i8*inreg%a0)
store i8*%a1,i8**%c,align 8
%a2=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%a3=getelementptr inbounds i8,i8*%a2,i64 8
%a4=bitcast i8*%a3 to i8**
%a5=load i8*,i8**%a4,align 8
%a6=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%a7=call fastcc i8*@_SMLL13replaceTfunTy_128(i8*inreg%a6,i8*inreg%a5)
store i8*%a7,i8**%d,align 8
%a8=call i8*@sml_alloc(i32 inreg 20)#0
%a9=getelementptr inbounds i8,i8*%a8,i64 -4
%ba=bitcast i8*%a9 to i32*
store i32 1342177296,i32*%ba,align 4
store i8*%a8,i8**%e,align 8
%bb=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bc=bitcast i8*%a8 to i8**
store i8*%bb,i8**%bc,align 8
%bd=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%be=getelementptr inbounds i8,i8*%a8,i64 8
%bf=bitcast i8*%be to i8**
store i8*%bd,i8**%bf,align 8
%bg=getelementptr inbounds i8,i8*%a8,i64 16
%bh=bitcast i8*%bg to i32*
store i32 3,i32*%bh,align 4
%bi=call i8*@sml_alloc(i32 inreg 20)#0
%bj=bitcast i8*%bi to i32*
%bk=getelementptr inbounds i8,i8*%bi,i64 -4
%bl=bitcast i8*%bk to i32*
store i32 1342177296,i32*%bl,align 4
%bm=getelementptr inbounds i8,i8*%bi,i64 4
%bn=bitcast i8*%bm to i32*
store i32 0,i32*%bn,align 1
store i32 4,i32*%bj,align 4
%bo=load i8*,i8**%e,align 8
%bp=getelementptr inbounds i8,i8*%bi,i64 8
%bq=bitcast i8*%bp to i8**
store i8*%bo,i8**%bq,align 8
%br=getelementptr inbounds i8,i8*%bi,i64 16
%bs=bitcast i8*%br to i32*
store i32 2,i32*%bs,align 4
ret i8*%bi
bt:
%bu=getelementptr inbounds i8,i8*%m,i64 8
%bv=bitcast i8*%bu to i8**
%bw=load i8*,i8**%bv,align 8
store i8*%bw,i8**%d,align 8
%bx=load i8*,i8**%e,align 8
%by=getelementptr inbounds i8,i8*%bx,i64 8
%bz=bitcast i8*%by to i8**
%bA=load i8*,i8**%bz,align 8
%bB=getelementptr inbounds i8,i8*%bw,i64 8
%bC=bitcast i8*%bB to i8**
%bD=load i8*,i8**%bC,align 8
%bE=call fastcc i32@_SMLL6isSelf_127(i8*inreg%bA,i8*inreg%bD)
%bF=icmp eq i32%bE,0
%bG=load i8*,i8**%d,align 8
%bH=getelementptr inbounds i8,i8*%bG,i64 8
%bI=bitcast i8*%bH to i8**
%bJ=bitcast i8**%e to i8***
%bK=load i8**,i8***%bJ,align 8
%bL=select i1%bF,i8**%bI,i8**%bK
%bM=load i8*,i8**%bL,align 8
store i8*%bM,i8**%c,align 8
%bN=call fastcc i8*@_SMLFN4List3mapE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%bO=getelementptr inbounds i8,i8*%bN,i64 16
%bP=bitcast i8*%bO to i8*(i8*,i8*)**
%bQ=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bP,align 8
%bR=bitcast i8*%bN to i8**
%bS=load i8*,i8**%bR,align 8
store i8*%bS,i8**%f,align 8
%bT=call i8*@sml_alloc(i32 inreg 12)#0
%bU=getelementptr inbounds i8,i8*%bT,i64 -4
%bV=bitcast i8*%bU to i32*
store i32 1342177288,i32*%bV,align 4
store i8*%bT,i8**%g,align 8
%bW=load i8*,i8**%e,align 8
store i8*null,i8**%e,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 i32*
store i32 1,i32*%bZ,align 4
%b0=call i8*@sml_alloc(i32 inreg 28)#0
%b1=getelementptr inbounds i8,i8*%b0,i64 -4
%b2=bitcast i8*%b1 to i32*
store i32 1342177304,i32*%b2,align 4
%b3=load i8*,i8**%g,align 8
store i8*null,i8**%g,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 void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL13replaceTfunTy_130 to void(...)*),void(...)**%b6,align 8
%b7=getelementptr inbounds i8,i8*%b0,i64 16
%b8=bitcast i8*%b7 to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL13replaceTfunTy_130 to void(...)*),void(...)**%b8,align 8
%b9=getelementptr inbounds i8,i8*%b0,i64 24
%ca=bitcast i8*%b9 to i32*
store i32 -2147483647,i32*%ca,align 4
%cb=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%cc=call fastcc i8*%bQ(i8*inreg%cb,i8*inreg%b0)
%cd=getelementptr inbounds i8,i8*%cc,i64 16
%ce=bitcast i8*%cd to i8*(i8*,i8*)**
%cf=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%ce,align 8
%cg=bitcast i8*%cc to i8**
%ch=load i8*,i8**%cg,align 8
%ci=bitcast i8**%d to i8***
%cj=load i8**,i8***%ci,align 8
store i8*null,i8**%d,align 8
%ck=load i8*,i8**%cj,align 8
%cl=call fastcc i8*%cf(i8*inreg%ch,i8*inreg%ck)
store i8*%cl,i8**%d,align 8
%cm=call i8*@sml_alloc(i32 inreg 20)#0
%cn=getelementptr inbounds i8,i8*%cm,i64 -4
%co=bitcast i8*%cn to i32*
store i32 1342177296,i32*%co,align 4
store i8*%cm,i8**%e,align 8
%cp=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%cq=bitcast i8*%cm to i8**
store i8*%cp,i8**%cq,align 8
%cr=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%cs=getelementptr inbounds i8,i8*%cm,i64 8
%ct=bitcast i8*%cs to i8**
store i8*%cr,i8**%ct,align 8
%cu=getelementptr inbounds i8,i8*%cm,i64 16
%cv=bitcast i8*%cu to i32*
store i32 3,i32*%cv,align 4
%cw=call i8*@sml_alloc(i32 inreg 20)#0
%cx=bitcast i8*%cw to i32*
%cy=getelementptr inbounds i8,i8*%cw,i64 -4
%cz=bitcast i8*%cy to i32*
store i32 1342177296,i32*%cz,align 4
%cA=getelementptr inbounds i8,i8*%cw,i64 4
%cB=bitcast i8*%cA to i32*
store i32 0,i32*%cB,align 1
store i32 1,i32*%cx,align 4
%cC=load i8*,i8**%e,align 8
%cD=getelementptr inbounds i8,i8*%cw,i64 8
%cE=bitcast i8*%cD to i8**
store i8*%cC,i8**%cE,align 8
%cF=getelementptr inbounds i8,i8*%cw,i64 16
%cG=bitcast i8*%cF to i32*
store i32 2,i32*%cG,align 4
ret i8*%cw
cH:
%cI=getelementptr inbounds i8,i8*%m,i64 8
%cJ=bitcast i8*%cI to i8**
%cK=load i8*,i8**%cJ,align 8
store i8*%cK,i8**%c,align 8
%cL=getelementptr inbounds i8,i8*%cK,i64 8
%cM=bitcast i8*%cL to i32*
%cN=load i32,i32*%cM,align 4
%cO=call fastcc i8*@_SMLFN11RecordLabel3Map3mapE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%cP=getelementptr inbounds i8,i8*%cO,i64 16
%cQ=bitcast i8*%cP to i8*(i8*,i8*)**
%cR=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%cQ,align 8
%cS=bitcast i8*%cO to i8**
%cT=load i8*,i8**%cS,align 8
store i8*%cT,i8**%d,align 8
%cU=call i8*@sml_alloc(i32 inreg 12)#0
%cV=getelementptr inbounds i8,i8*%cU,i64 -4
%cW=bitcast i8*%cV to i32*
store i32 1342177288,i32*%cW,align 4
store i8*%cU,i8**%f,align 8
%cX=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%cY=bitcast i8*%cU to i8**
store i8*%cX,i8**%cY,align 8
%cZ=getelementptr inbounds i8,i8*%cU,i64 8
%c0=bitcast i8*%cZ to i32*
store i32 1,i32*%c0,align 4
%c1=call i8*@sml_alloc(i32 inreg 28)#0
%c2=getelementptr inbounds i8,i8*%c1,i64 -4
%c3=bitcast i8*%c2 to i32*
store i32 1342177304,i32*%c3,align 4
%c4=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%c5=bitcast i8*%c1 to i8**
store i8*%c4,i8**%c5,align 8
%c6=getelementptr inbounds i8,i8*%c1,i64 8
%c7=bitcast i8*%c6 to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL13replaceTfunTy_129 to void(...)*),void(...)**%c7,align 8
%c8=getelementptr inbounds i8,i8*%c1,i64 16
%c9=bitcast i8*%c8 to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL13replaceTfunTy_129 to void(...)*),void(...)**%c9,align 8
%da=getelementptr inbounds i8,i8*%c1,i64 24
%db=bitcast i8*%da to i32*
store i32 -2147483647,i32*%db,align 4
%dc=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%dd=call fastcc i8*%cR(i8*inreg%dc,i8*inreg%c1)
%de=getelementptr inbounds i8,i8*%dd,i64 16
%df=bitcast i8*%de to i8*(i8*,i8*)**
%dg=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%df,align 8
%dh=bitcast i8*%dd to i8**
%di=load i8*,i8**%dh,align 8
%dj=bitcast i8**%c to i8***
%dk=load i8**,i8***%dj,align 8
store i8*null,i8**%c,align 8
%dl=load i8*,i8**%dk,align 8
%dm=call fastcc i8*%dg(i8*inreg%di,i8*inreg%dl)
store i8*%dm,i8**%c,align 8
%dn=call i8*@sml_alloc(i32 inreg 20)#0
%do=getelementptr inbounds i8,i8*%dn,i64 -4
%dp=bitcast i8*%do to i32*
store i32 1342177296,i32*%dp,align 4
store i8*%dn,i8**%d,align 8
%dq=getelementptr inbounds i8,i8*%dn,i64 12
%dr=bitcast i8*%dq to i32*
store i32 0,i32*%dr,align 1
%ds=load i8*,i8**%c,align 8
%dt=bitcast i8*%dn to i8**
store i8*null,i8**%c,align 8
store i8*%ds,i8**%dt,align 8
%du=getelementptr inbounds i8,i8*%dn,i64 8
%dv=bitcast i8*%du to i32*
store i32%cN,i32*%dv,align 4
%dw=getelementptr inbounds i8,i8*%dn,i64 16
%dx=bitcast i8*%dw to i32*
store i32 1,i32*%dx,align 4
%dy=call i8*@sml_alloc(i32 inreg 20)#0
%dz=bitcast i8*%dy to i32*
%dA=getelementptr inbounds i8,i8*%dy,i64 -4
%dB=bitcast i8*%dA to i32*
store i32 1342177296,i32*%dB,align 4
%dC=getelementptr inbounds i8,i8*%dy,i64 4
%dD=bitcast i8*%dC to i32*
store i32 0,i32*%dD,align 1
store i32 6,i32*%dz,align 4
%dE=load i8*,i8**%d,align 8
%dF=getelementptr inbounds i8,i8*%dy,i64 8
%dG=bitcast i8*%dF to i8**
store i8*%dE,i8**%dG,align 8
%dH=getelementptr inbounds i8,i8*%dy,i64 16
%dI=bitcast i8*%dH to i32*
store i32 2,i32*%dI,align 4
ret i8*%dy
}
define internal fastcc i8*@_SMLL10newConSpec_133(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]
%p=load i8*,i8**%n,align 8
%q=tail call fastcc i8*@_SMLL13replaceTfunTy_128(i8*inreg%p,i8*inreg%o)
ret i8*%q
}
define internal fastcc i8*@_SMLLN16RenameLongsymbol15replacePathTfunE_134(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
v:
%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**%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**%k,align 8
store i8*%b,i8**%c,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**%c,align 8
br label%t
t:
%u=phi i8*[%s,%r],[%b,%v]
%w=bitcast i8*%u to i32*
%x=load i32,i32*%w,align 4
%y=icmp eq i32%x,1
br i1%y,label%z,label%ed
z:
%A=getelementptr inbounds i8,i8*%u,i64 8
%B=bitcast i8*%A to i8***
%C=load i8**,i8***%B,align 8
%D=load i8*,i8**%C,align 8
%E=bitcast i8*%D to i32*
%F=load i32,i32*%E,align 4
%G=icmp eq i32%F,3
br i1%G,label%H,label%ed
H:
store i8*null,i8**%c,align 8
%I=getelementptr inbounds i8,i8*%D,i64 8
%J=bitcast i8*%I to i8**
%K=load i8*,i8**%J,align 8
%L=bitcast i8*%K to i32*
%M=load i32,i32*%L,align 4
%N=getelementptr inbounds i8,i8*%K,i64 8
%O=bitcast i8*%N to i8**
%P=load i8*,i8**%O,align 8
store i8*%P,i8**%e,align 8
%Q=getelementptr inbounds i8,i8*%K,i64 16
%R=bitcast i8*%Q to i8**
%S=load i8*,i8**%R,align 8
store i8*%S,i8**%d,align 8
%T=getelementptr inbounds i8,i8*%K,i64 24
%U=bitcast i8*%T to i8**
%V=load i8*,i8**%U,align 8
store i8*%V,i8**%f,align 8
%W=getelementptr inbounds i8,i8*%K,i64 32
%X=bitcast i8*%W to i8**
%Y=load i8*,i8**%X,align 8
store i8*%Y,i8**%g,align 8
%Z=getelementptr inbounds i8,i8*%K,i64 40
%aa=bitcast i8*%Z to i32*
%ab=load i32,i32*%aa,align 4
%ac=getelementptr inbounds i8,i8*%K,i64 48
%ad=bitcast i8*%ac to i8**
%ae=load i8*,i8**%ad,align 8
store i8*%ae,i8**%h,align 8
%af=getelementptr inbounds i8,i8*%K,i64 56
%ag=bitcast i8*%af to i8**
%ah=load i8*,i8**%ag,align 8
store i8*%ah,i8**%i,align 8
%ai=call i8*@sml_alloc(i32 inreg 8)#0
%aj=getelementptr inbounds i8,i8*%ai,i64 -4
%ak=bitcast i8*%aj to i32*
store i32 805306376,i32*%ak,align 4
store i8*%ai,i8**%l,align 8
%al=bitcast i8*%ai to i64*
store i64 0,i64*%al,align 1
%am=load i8*,i8**%k,align 8
%an=getelementptr inbounds i8,i8*%am,i64 8
%ao=bitcast i8*%an to i8**
%ap=load i8*,i8**%ao,align 8
store i8*%ap,i8**%c,align 8
%aq=load i8*,i8**%i,align 8
%ar=call fastcc i8*@_SMLFN6Symbol10lastSymbolE(i8*inreg%aq)
store i8*%ar,i8**%j,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
%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=load i8*,i8**%j,align 8
store i8*null,i8**%j,align 8
%ay=getelementptr inbounds i8,i8*%as,i64 8
%az=bitcast i8*%ay to i8**
store i8*%ax,i8**%az,align 8
%aA=getelementptr inbounds i8,i8*%as,i64 16
%aB=bitcast i8*%aA to i32*
store i32 3,i32*%aB,align 4
%aC=call fastcc i8*@_SMLFN6Symbol10prefixPathE(i8*inreg%as)
store i8*%aC,i8**%c,align 8
%aD=call i8*@sml_alloc(i32 inreg 68)#0
%aE=getelementptr inbounds i8,i8*%aD,i64 -4
%aF=bitcast i8*%aE to i32*
store i32 1342177344,i32*%aF,align 4
store i8*%aD,i8**%j,align 8
%aG=getelementptr inbounds i8,i8*%aD,i64 4
call void@llvm.memset.p0i8.i32(i8*%aG,i8 0,i32 44,i1 false)
%aH=bitcast i8*%aD to i32*
store i32%M,i32*%aH,align 4
%aI=load i8*,i8**%e,align 8
%aJ=getelementptr inbounds i8,i8*%aD,i64 8
%aK=bitcast i8*%aJ to i8**
store i8*%aI,i8**%aK,align 8
%aL=load i8*,i8**%d,align 8
%aM=getelementptr inbounds i8,i8*%aD,i64 16
%aN=bitcast i8*%aM to i8**
store i8*%aL,i8**%aN,align 8
%aO=load i8*,i8**%f,align 8
%aP=getelementptr inbounds i8,i8*%aD,i64 24
%aQ=bitcast i8*%aP to i8**
store i8*%aO,i8**%aQ,align 8
%aR=load i8*,i8**%g,align 8
%aS=getelementptr inbounds i8,i8*%aD,i64 32
%aT=bitcast i8*%aS to i8**
store i8*%aR,i8**%aT,align 8
%aU=getelementptr inbounds i8,i8*%aD,i64 40
%aV=bitcast i8*%aU to i32*
store i32%ab,i32*%aV,align 4
%aW=load i8*,i8**%h,align 8
%aX=getelementptr inbounds i8,i8*%aD,i64 48
%aY=bitcast i8*%aX to i8**
store i8*%aW,i8**%aY,align 8
%aZ=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%a0=getelementptr inbounds i8,i8*%aD,i64 56
%a1=bitcast i8*%a0 to i8**
store i8*%aZ,i8**%a1,align 8
%a2=getelementptr inbounds i8,i8*%aD,i64 64
%a3=bitcast i8*%a2 to i32*
store i32 222,i32*%a3,align 4
%a4=call i8*@sml_alloc(i32 inreg 20)#0
%a5=bitcast i8*%a4 to i32*
%a6=getelementptr inbounds i8,i8*%a4,i64 -4
%a7=bitcast i8*%a6 to i32*
store i32 1342177296,i32*%a7,align 4
%a8=getelementptr inbounds i8,i8*%a4,i64 4
%a9=bitcast i8*%a8 to i32*
store i32 0,i32*%a9,align 1
store i32 3,i32*%a5,align 4
%ba=load i8*,i8**%j,align 8
store i8*null,i8**%j,align 8
%bb=getelementptr inbounds i8,i8*%a4,i64 8
%bc=bitcast i8*%bb to i8**
store i8*%ba,i8**%bc,align 8
%bd=getelementptr inbounds i8,i8*%a4,i64 16
%be=bitcast i8*%bd to i32*
store i32 2,i32*%be,align 4
%bf=load i8*,i8**%l,align 8
%bg=bitcast i8*%bf to i8**
call void@sml_write(i8*inreg%bf,i8**inreg%bg,i8*inreg%a4)#0
%bh=call i8*@sml_alloc(i32 inreg 20)#0
%bi=getelementptr inbounds i8,i8*%bh,i64 -4
%bj=bitcast i8*%bi to i32*
store i32 1342177296,i32*%bj,align 4
store i8*%bh,i8**%m,align 8
%bk=getelementptr inbounds i8,i8*%bh,i64 4
%bl=bitcast i8*%bk to i32*
store i32 0,i32*%bl,align 1
%bm=bitcast i8*%bh to i32*
store i32 1,i32*%bm,align 4
%bn=load i8*,i8**%l,align 8
%bo=getelementptr inbounds i8,i8*%bh,i64 8
%bp=bitcast i8*%bo to i8**
store i8*%bn,i8**%bp,align 8
%bq=getelementptr inbounds i8,i8*%bh,i64 16
%br=bitcast i8*%bq to i32*
store i32 2,i32*%br,align 4
%bs=call i8*@sml_alloc(i32 inreg 12)#0
%bt=bitcast i8*%bs to i32*
%bu=getelementptr inbounds i8,i8*%bs,i64 -4
%bv=bitcast i8*%bu to i32*
store i32 1342177288,i32*%bv,align 4
store i8*%bs,i8**%c,align 8
store i32%ab,i32*%bt,align 4
%bw=getelementptr inbounds i8,i8*%bs,i64 8
%bx=bitcast i8*%bw to i32*
store i32 0,i32*%bx,align 4
%by=call i8*@sml_alloc(i32 inreg 28)#0
%bz=getelementptr inbounds i8,i8*%by,i64 -4
%bA=bitcast i8*%bz to i32*
store i32 1342177304,i32*%bA,align 4
%bB=load i8*,i8**%c,align 8
%bC=bitcast i8*%by to i8**
store i8*%bB,i8**%bC,align 8
%bD=getelementptr inbounds i8,i8*%by,i64 8
%bE=bitcast i8*%bD to void(...)**
store void(...)*bitcast(i32(i8*,i8*)*@_SMLL6isSelf_127 to void(...)*),void(...)**%bE,align 8
%bF=getelementptr inbounds i8,i8*%by,i64 16
%bG=bitcast i8*%bF to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL6isSelf_199 to void(...)*),void(...)**%bG,align 8
%bH=getelementptr inbounds i8,i8*%by,i64 24
%bI=bitcast i8*%bH to i32*
store i32 -2147483647,i32*%bI,align 4
%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**%n,align 8
%bM=load i8*,i8**%m,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
%bW=load i8*,i8**%n,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*,i8*)*@_SMLL13replaceTfunTy_128 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*)*@_SMLL13replaceTfunTy_128 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 fastcc i8*@_SMLFN9SymbolEnv3mapE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%b5=getelementptr inbounds i8,i8*%b4,i64 16
%b6=bitcast i8*%b5 to i8*(i8*,i8*)**
%b7=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%b6,align 8
%b8=bitcast i8*%b4 to i8**
%b9=load i8*,i8**%b8,align 8
store i8*%b9,i8**%j,align 8
%ca=call fastcc i8*@_SMLFN6Option3mapE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%cb=getelementptr inbounds i8,i8*%ca,i64 16
%cc=bitcast i8*%cb to i8*(i8*,i8*)**
%cd=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%cc,align 8
%ce=bitcast i8*%ca to i8**
%cf=load i8*,i8**%ce,align 8
store i8*%cf,i8**%c,align 8
%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**%o,align 8
%cj=load i8*,i8**%n,align 8
store i8*null,i8**%n,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
%cq=load i8*,i8**%o,align 8
store i8*null,i8**%o,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*,i8*)*@_SMLL10newConSpec_133 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*)*@_SMLL10newConSpec_133 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=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%cz=call fastcc i8*%cd(i8*inreg%cy,i8*inreg%cn)
%cA=load i8*,i8**%j,align 8
store i8*null,i8**%j,align 8
%cB=call fastcc i8*%b7(i8*inreg%cA,i8*inreg%cz)
%cC=getelementptr inbounds i8,i8*%cB,i64 16
%cD=bitcast i8*%cC to i8*(i8*,i8*)**
%cE=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%cD,align 8
%cF=bitcast i8*%cB to i8**
%cG=load i8*,i8**%cF,align 8
%cH=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%cI=call fastcc i8*%cE(i8*inreg%cG,i8*inreg%cH)
store i8*%cI,i8**%c,align 8
%cJ=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%cK=call fastcc i8*@_SMLFN6Symbol10lastSymbolE(i8*inreg%cJ)
store i8*%cK,i8**%d,align 8
%cL=load i8*,i8**%k,align 8
%cM=getelementptr inbounds i8,i8*%cL,i64 8
%cN=bitcast i8*%cM to i8**
%cO=load i8*,i8**%cN,align 8
store i8*%cO,i8**%i,align 8
%cP=call i8*@sml_alloc(i32 inreg 20)#0
%cQ=getelementptr inbounds i8,i8*%cP,i64 -4
%cR=bitcast i8*%cQ to i32*
store i32 1342177296,i32*%cR,align 4
%cS=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%cT=bitcast i8*%cP to i8**
store i8*%cS,i8**%cT,align 8
%cU=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%cV=getelementptr inbounds i8,i8*%cP,i64 8
%cW=bitcast i8*%cV to i8**
store i8*%cU,i8**%cW,align 8
%cX=getelementptr inbounds i8,i8*%cP,i64 16
%cY=bitcast i8*%cX to i32*
store i32 3,i32*%cY,align 4
%cZ=call fastcc i8*@_SMLFN6Symbol10prefixPathE(i8*inreg%cP)
store i8*%cZ,i8**%d,align 8
%c0=call i8*@sml_alloc(i32 inreg 68)#0
%c1=getelementptr inbounds i8,i8*%c0,i64 -4
%c2=bitcast i8*%c1 to i32*
store i32 1342177344,i32*%c2,align 4
store i8*%c0,i8**%i,align 8
%c3=getelementptr inbounds i8,i8*%c0,i64 4
call void@llvm.memset.p0i8.i32(i8*%c3,i8 0,i32 44,i1 false)
%c4=bitcast i8*%c0 to i32*
store i32%M,i32*%c4,align 4
%c5=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%c6=getelementptr inbounds i8,i8*%c0,i64 8
%c7=bitcast i8*%c6 to i8**
store i8*%c5,i8**%c7,align 8
%c8=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%c9=getelementptr inbounds i8,i8*%c0,i64 16
%da=bitcast i8*%c9 to i8**
store i8*%c8,i8**%da,align 8
%db=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%dc=getelementptr inbounds i8,i8*%c0,i64 24
%dd=bitcast i8*%dc to i8**
store i8*%db,i8**%dd,align 8
%de=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%df=getelementptr inbounds i8,i8*%c0,i64 32
%dg=bitcast i8*%df to i8**
store i8*%de,i8**%dg,align 8
%dh=getelementptr inbounds i8,i8*%c0,i64 40
%di=bitcast i8*%dh to i32*
store i32%ab,i32*%di,align 4
%dj=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%dk=getelementptr inbounds i8,i8*%c0,i64 48
%dl=bitcast i8*%dk to i8**
store i8*%dj,i8**%dl,align 8
%dm=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%dn=getelementptr inbounds i8,i8*%c0,i64 56
%do=bitcast i8*%dn to i8**
store i8*%dm,i8**%do,align 8
%dp=getelementptr inbounds i8,i8*%c0,i64 64
%dq=bitcast i8*%dp to i32*
store i32 222,i32*%dq,align 4
%dr=call i8*@sml_alloc(i32 inreg 20)#0
%ds=bitcast i8*%dr to i32*
%dt=getelementptr inbounds i8,i8*%dr,i64 -4
%du=bitcast i8*%dt to i32*
store i32 1342177296,i32*%du,align 4
%dv=getelementptr inbounds i8,i8*%dr,i64 4
%dw=bitcast i8*%dv to i32*
store i32 0,i32*%dw,align 1
store i32 3,i32*%ds,align 4
%dx=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%dy=getelementptr inbounds i8,i8*%dr,i64 8
%dz=bitcast i8*%dy to i8**
store i8*%dx,i8**%dz,align 8
%dA=getelementptr inbounds i8,i8*%dr,i64 16
%dB=bitcast i8*%dA to i32*
store i32 2,i32*%dB,align 4
%dC=load i8*,i8**%l,align 8
store i8*null,i8**%l,align 8
%dD=bitcast i8*%dC to i8**
call void@sml_write(i8*inreg%dC,i8**inreg%dD,i8*inreg%dr)#0
%dE=call fastcc i8*@_SMLFN5TypID3Map6insertE(i32 inreg 1,i32 inreg 8)
%dF=getelementptr inbounds i8,i8*%dE,i64 16
%dG=bitcast i8*%dF to i8*(i8*,i8*)**
%dH=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%dG,align 8
%dI=bitcast i8*%dE to i8**
%dJ=load i8*,i8**%dI,align 8
store i8*%dJ,i8**%d,align 8
%dK=bitcast i8**%k to i8***
%dL=load i8**,i8***%dK,align 8
store i8*null,i8**%k,align 8
%dM=load i8*,i8**%dL,align 8
store i8*%dM,i8**%c,align 8
%dN=call i8*@sml_alloc(i32 inreg 28)#0
%dO=getelementptr inbounds i8,i8*%dN,i64 -4
%dP=bitcast i8*%dO to i32*
store i32 1342177304,i32*%dP,align 4
%dQ=getelementptr inbounds i8,i8*%dN,i64 12
%dR=bitcast i8*%dQ to i32*
store i32 0,i32*%dR,align 1
%dS=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%dT=bitcast i8*%dN to i8**
store i8*%dS,i8**%dT,align 8
%dU=getelementptr inbounds i8,i8*%dN,i64 8
%dV=bitcast i8*%dU to i32*
store i32%ab,i32*%dV,align 4
%dW=load i8*,i8**%m,align 8
%dX=getelementptr inbounds i8,i8*%dN,i64 16
%dY=bitcast i8*%dX to i8**
store i8*%dW,i8**%dY,align 8
%dZ=getelementptr inbounds i8,i8*%dN,i64 24
%d0=bitcast i8*%dZ to i32*
store i32 5,i32*%d0,align 4
%d1=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%d2=call fastcc i8*%dH(i8*inreg%d1,i8*inreg%dN)
store i8*%d2,i8**%c,align 8
%d3=call i8*@sml_alloc(i32 inreg 20)#0
%d4=getelementptr inbounds i8,i8*%d3,i64 -4
%d5=bitcast i8*%d4 to i32*
store i32 1342177296,i32*%d5,align 4
%d6=load i8*,i8**%m,align 8
%d7=bitcast i8*%d3 to i8**
store i8*%d6,i8**%d7,align 8
%d8=load i8*,i8**%c,align 8
%d9=getelementptr inbounds i8,i8*%d3,i64 8
%ea=bitcast i8*%d9 to i8**
store i8*%d8,i8**%ea,align 8
%eb=getelementptr inbounds i8,i8*%d3,i64 16
%ec=bitcast i8*%eb to i32*
store i32 3,i32*%ec,align 4
ret i8*%d3
ed:
%ee=bitcast i8**%k to i8***
%ef=load i8**,i8***%ee,align 8
store i8*null,i8**%k,align 8
%eg=load i8*,i8**%ef,align 8
store i8*%eg,i8**%d,align 8
%eh=call i8*@sml_alloc(i32 inreg 20)#0
%ei=getelementptr inbounds i8,i8*%eh,i64 -4
%ej=bitcast i8*%ei to i32*
store i32 1342177296,i32*%ej,align 4
%ek=load i8*,i8**%c,align 8
%el=bitcast i8*%eh to i8**
store i8*%ek,i8**%el,align 8
%em=load i8*,i8**%d,align 8
%en=getelementptr inbounds i8,i8*%eh,i64 8
%eo=bitcast i8*%en to i8**
store i8*%em,i8**%eo,align 8
%ep=getelementptr inbounds i8,i8*%eh,i64 16
%eq=bitcast i8*%ep to i32*
store i32 3,i32*%eq,align 4
ret i8*%eh
}
define internal fastcc i8*@_SMLLN16RenameLongsymbol15replacePathTfunE_135(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=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=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%n=getelementptr inbounds i8,i8*%h,i64 8
%o=bitcast i8*%n to i8**
store i8*%m,i8**%o,align 8
%p=getelementptr inbounds i8,i8*%h,i64 16
%q=bitcast i8*%p to i32*
store i32 3,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
%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(i8*(i8*,i8*)*@_SMLLN16RenameLongsymbol15replacePathTfunE_134 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*)*@_SMLLN16RenameLongsymbol15replacePathTfunE_134 to void(...)*),void(...)**%z,align 8
%A=getelementptr inbounds i8,i8*%r,i64 24
%B=bitcast i8*%A to i32*
store i32 -2147483647,i32*%B,align 4
ret i8*%r
}
define fastcc i8*@_SMLFN16RenameLongsymbol15replacePathTfunE(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(i8*(i8*,i8*)*@_SMLLN16RenameLongsymbol15replacePathTfunE_135 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*)*@_SMLLN16RenameLongsymbol15replacePathTfunE_135 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*@_SMLLN16RenameLongsymbol15replacePathTstrE_139(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
p:
%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**%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
store i8*%a,i8**%c,align 8
store i8*%b,i8**%d,align 8
%j=load atomic i32,i32*@sml_check_flag unordered,align 4
%k=icmp eq i32%j,0
br i1%k,label%n,label%l
l:
call void@sml_check(i32 inreg%j)
%m=load i8*,i8**%d,align 8
br label%n
n:
%o=phi i8*[%m,%l],[%b,%p]
%q=bitcast i8*%o to i32*
%r=load i32,i32*%q,align 4
switch i32%r,label%s[
i32 0,label%be
i32 1,label%K
]
s:
call void@sml_matchcomp_bug()
%t=load i8*,i8**@_SMLZ5Match,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,[80x i8]}>,<{[4x i8],i32,[80x i8]}>*@e,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=getelementptr inbounds i8,i8*%o,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**%c to i8***
%P=load i8**,i8***%O,align 8
%Q=load i8*,i8**%P,align 8
%R=call fastcc i8*@_SMLFN16RenameLongsymbol15replacePathTfunE(i8*inreg%Q)
%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
%X=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%Y=getelementptr inbounds i8,i8*%X,i64 8
%Z=bitcast i8*%Y to i8**
%aa=load i8*,i8**%Z,align 8
%ab=call fastcc i8*%U(i8*inreg%W,i8*inreg%aa)
%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**%d,align 8
%ai=getelementptr inbounds i8,i8*%ah,i64 24
%aj=bitcast i8*%ai to i8**
%ak=load i8*,i8**%aj,align 8
%al=call fastcc i8*%ae(i8*inreg%ag,i8*inreg%ak)
%am=getelementptr inbounds i8,i8*%al,i64 8
%an=bitcast i8*%am to i8**
%ao=load i8*,i8**%an,align 8
store i8*%ao,i8**%c,align 8
%ap=bitcast i8**%d to i8***
%aq=load i8**,i8***%ap,align 8
%ar=load i8*,i8**%aq,align 8
store i8*%ar,i8**%e,align 8
%as=getelementptr inbounds i8*,i8**%aq,i64 1
%at=load i8*,i8**%as,align 8
store i8*%at,i8**%f,align 8
%au=getelementptr inbounds i8*,i8**%aq,i64 2
%av=load i8*,i8**%au,align 8
store i8*%av,i8**%g,align 8
%aw=bitcast i8*%al to i8**
%ax=load i8*,i8**%aw,align 8
store i8*%ax,i8**%h,align 8
%ay=getelementptr inbounds i8*,i8**%aq,i64 4
%az=load i8*,i8**%ay,align 8
store i8*%az,i8**%d,align 8
%aA=call i8*@sml_alloc(i32 inreg 44)#0
%aB=getelementptr inbounds i8,i8*%aA,i64 -4
%aC=bitcast i8*%aB to i32*
store i32 1342177320,i32*%aC,align 4
store i8*%aA,i8**%i,align 8
%aD=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%aE=bitcast i8*%aA to i8**
store i8*%aD,i8**%aE,align 8
%aF=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%aG=getelementptr inbounds i8,i8*%aA,i64 8
%aH=bitcast i8*%aG to i8**
store i8*%aF,i8**%aH,align 8
%aI=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%aJ=getelementptr inbounds i8,i8*%aA,i64 16
%aK=bitcast i8*%aJ to i8**
store i8*%aI,i8**%aK,align 8
%aL=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%aM=getelementptr inbounds i8,i8*%aA,i64 24
%aN=bitcast i8*%aM to i8**
store i8*%aL,i8**%aN,align 8
%aO=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aP=getelementptr inbounds i8,i8*%aA,i64 32
%aQ=bitcast i8*%aP to i8**
store i8*%aO,i8**%aQ,align 8
%aR=getelementptr inbounds i8,i8*%aA,i64 40
%aS=bitcast i8*%aR to i32*
store i32 31,i32*%aS,align 4
%aT=call i8*@sml_alloc(i32 inreg 20)#0
%aU=getelementptr inbounds i8,i8*%aT,i64 -4
%aV=bitcast i8*%aU to i32*
store i32 1342177296,i32*%aV,align 4
store i8*%aT,i8**%d,align 8
%aW=getelementptr inbounds i8,i8*%aT,i64 4
%aX=bitcast i8*%aW to i32*
store i32 0,i32*%aX,align 1
%aY=bitcast i8*%aT to i32*
store i32 1,i32*%aY,align 4
%aZ=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%a0=getelementptr inbounds i8,i8*%aT,i64 8
%a1=bitcast i8*%a0 to i8**
store i8*%aZ,i8**%a1,align 8
%a2=getelementptr inbounds i8,i8*%aT,i64 16
%a3=bitcast i8*%a2 to i32*
store i32 2,i32*%a3,align 4
%a4=call i8*@sml_alloc(i32 inreg 20)#0
%a5=getelementptr inbounds i8,i8*%a4,i64 -4
%a6=bitcast i8*%a5 to i32*
store i32 1342177296,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=load i8*,i8**%c,align 8
%ba=getelementptr inbounds i8,i8*%a4,i64 8
%bb=bitcast i8*%ba to i8**
store i8*%a9,i8**%bb,align 8
%bc=getelementptr inbounds i8,i8*%a4,i64 16
%bd=bitcast i8*%bc to i32*
store i32 3,i32*%bd,align 4
ret i8*%a4
be:
%bf=getelementptr inbounds i8,i8*%o,i64 8
%bg=bitcast i8*%bf to i8**
%bh=load i8*,i8**%bg,align 8
store i8*%bh,i8**%d,align 8
%bi=bitcast i8**%c to i8***
%bj=load i8**,i8***%bi,align 8
%bk=load i8*,i8**%bj,align 8
%bl=call fastcc i8*@_SMLFN16RenameLongsymbol15replacePathTfunE(i8*inreg%bk)
%bm=getelementptr inbounds i8,i8*%bl,i64 16
%bn=bitcast i8*%bm to i8*(i8*,i8*)**
%bo=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bn,align 8
%bp=bitcast i8*%bl to i8**
%bq=load i8*,i8**%bp,align 8
%br=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bs=getelementptr inbounds i8,i8*%br,i64 8
%bt=bitcast i8*%bs to i8**
%bu=load i8*,i8**%bt,align 8
%bv=call fastcc i8*%bo(i8*inreg%bq,i8*inreg%bu)
%bw=getelementptr inbounds i8,i8*%bv,i64 16
%bx=bitcast i8*%bw to i8*(i8*,i8*)**
%by=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bx,align 8
%bz=bitcast i8*%bv to i8**
%bA=load i8*,i8**%bz,align 8
%bB=load i8*,i8**%d,align 8
%bC=getelementptr inbounds i8,i8*%bB,i64 8
%bD=bitcast i8*%bC to i8**
%bE=load i8*,i8**%bD,align 8
%bF=call fastcc i8*%by(i8*inreg%bA,i8*inreg%bE)
%bG=getelementptr inbounds i8,i8*%bF,i64 8
%bH=bitcast i8*%bG to i8**
%bI=load i8*,i8**%bH,align 8
store i8*%bI,i8**%c,align 8
%bJ=bitcast i8**%d to i8***
%bK=load i8**,i8***%bJ,align 8
%bL=load i8*,i8**%bK,align 8
store i8*%bL,i8**%d,align 8
%bM=bitcast i8*%bF to i8**
%bN=load i8*,i8**%bM,align 8
store i8*%bN,i8**%e,align 8
%bO=call i8*@sml_alloc(i32 inreg 20)#0
%bP=getelementptr inbounds i8,i8*%bO,i64 -4
%bQ=bitcast i8*%bP to i32*
store i32 1342177296,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=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%bU=getelementptr inbounds i8,i8*%bO,i64 8
%bV=bitcast i8*%bU to i8**
store i8*%bT,i8**%bV,align 8
%bW=getelementptr inbounds i8,i8*%bO,i64 16
%bX=bitcast i8*%bW to i32*
store i32 3,i32*%bX,align 4
%bY=call i8*@sml_alloc(i32 inreg 20)#0
%bZ=getelementptr inbounds i8,i8*%bY,i64 -4
%b0=bitcast i8*%bZ to i32*
store i32 1342177296,i32*%b0,align 4
store i8*%bY,i8**%d,align 8
%b1=bitcast i8*%bY to i64*
store i64 0,i64*%b1,align 4
%b2=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%b3=getelementptr inbounds i8,i8*%bY,i64 8
%b4=bitcast i8*%b3 to i8**
store i8*%b2,i8**%b4,align 8
%b5=getelementptr inbounds i8,i8*%bY,i64 16
%b6=bitcast i8*%b5 to i32*
store i32 2,i32*%b6,align 4
%b7=call i8*@sml_alloc(i32 inreg 20)#0
%b8=getelementptr inbounds i8,i8*%b7,i64 -4
%b9=bitcast i8*%b8 to i32*
store i32 1342177296,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=load i8*,i8**%c,align 8
%cd=getelementptr inbounds i8,i8*%b7,i64 8
%ce=bitcast i8*%cd to i8**
store i8*%cc,i8**%ce,align 8
%cf=getelementptr inbounds i8,i8*%b7,i64 16
%cg=bitcast i8*%cf to i32*
store i32 3,i32*%cg,align 4
ret i8*%b7
}
define internal fastcc i8*@_SMLLN16RenameLongsymbol15replacePathTstrE_140(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=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=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%n=getelementptr inbounds i8,i8*%h,i64 8
%o=bitcast i8*%n to i8**
store i8*%m,i8**%o,align 8
%p=getelementptr inbounds i8,i8*%h,i64 16
%q=bitcast i8*%p to i32*
store i32 3,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
%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(i8*(i8*,i8*)*@_SMLLN16RenameLongsymbol15replacePathTstrE_139 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*)*@_SMLLN16RenameLongsymbol15replacePathTstrE_139 to void(...)*),void(...)**%z,align 8
%A=getelementptr inbounds i8,i8*%r,i64 24
%B=bitcast i8*%A to i32*
store i32 -2147483647,i32*%B,align 4
ret i8*%r
}
define internal fastcc i8*@_SMLLN16RenameLongsymbol14replacePathTyEE_143(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
p:
%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**%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
store i8*%a,i8**%e,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%n,label%l
l:
call void@sml_check(i32 inreg%j)
%m=load i8*,i8**%f,align 8
br label%n
n:
%o=phi i8*[%m,%l],[%b,%p]
%q=bitcast i8*%o to i8**
%r=load i8*,i8**%q,align 8
store i8*%r,i8**%f,align 8
%s=getelementptr inbounds i8,i8*%o,i64 8
%t=bitcast i8*%s to i8**
%u=load i8*,i8**%t,align 8
store i8*%u,i8**%g,align 8
%v=getelementptr inbounds i8,i8*%o,i64 16
%w=bitcast i8*%v to i8***
%x=load i8**,i8***%w,align 8
%y=load i8*,i8**%x,align 8
store i8*%y,i8**%h,align 8
%z=getelementptr inbounds i8*,i8**%x,i64 1
%A=load i8*,i8**%z,align 8
%B=bitcast i8**%c to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%B)
%C=bitcast i8**%d to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%C)
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
%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**%d,align 8
%G=load i8*,i8**%c,align 8
store i8*null,i8**%c,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**%d,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*)*@_SMLLN16RenameLongsymbol15replacePathTstrE_140 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*)*@_SMLLN16RenameLongsymbol15replacePathTstrE_140 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
call void@llvm.lifetime.end.p0i8(i64 8,i8*%B)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%C)
%V=bitcast i8**%e to i8***
%W=load i8**,i8***%V,align 8
store i8*null,i8**%e,align 8
%X=load i8*,i8**%W,align 8
%Y=call fastcc i8*@_SMLLN16RenameLongsymbol15replacePathTstrE_140(i8*inreg%N,i8*inreg%X)
%Z=getelementptr inbounds i8,i8*%Y,i64 16
%aa=bitcast i8*%Z to i8*(i8*,i8*)**
%ab=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aa,align 8
%ac=bitcast i8*%Y to i8**
%ad=load i8*,i8**%ac,align 8
%ae=load i8*,i8**%g,align 8
%af=call fastcc i8*%ab(i8*inreg%ad,i8*inreg%ae)
%ag=getelementptr inbounds i8,i8*%af,i64 8
%ah=bitcast i8*%ag to i8**
%ai=load i8*,i8**%ah,align 8
store i8*%ai,i8**%e,align 8
%aj=call fastcc i8*@_SMLFN9SymbolEnv6insertE(i32 inreg 1,i32 inreg 8)
%ak=getelementptr inbounds i8,i8*%aj,i64 16
%al=bitcast i8*%ak to i8*(i8*,i8*)**
%am=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%al,align 8
%an=bitcast i8*%aj to i8**
%ao=load i8*,i8**%an,align 8
store i8*%ao,i8**%i,align 8
%ap=call i8*@sml_alloc(i32 inreg 28)#0
%aq=getelementptr inbounds i8,i8*%ap,i64 -4
%ar=bitcast i8*%aq to i32*
store i32 1342177304,i32*%ar,align 4
%as=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%at=bitcast i8*%ap to i8**
store i8*%as,i8**%at,align 8
%au=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%av=getelementptr inbounds i8,i8*%ap,i64 8
%aw=bitcast i8*%av to i8**
store i8*%au,i8**%aw,align 8
%ax=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%ay=getelementptr inbounds i8,i8*%ap,i64 16
%az=bitcast i8*%ay to i8**
store i8*%ax,i8**%az,align 8
%aA=getelementptr inbounds i8,i8*%ap,i64 24
%aB=bitcast i8*%aA to i32*
store i32 7,i32*%aB,align 4
%aC=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%aD=call fastcc i8*%am(i8*inreg%aC,i8*inreg%ap)
store i8*%aD,i8**%f,align 8
%aE=call i8*@sml_alloc(i32 inreg 20)#0
%aF=getelementptr inbounds i8,i8*%aE,i64 -4
%aG=bitcast i8*%aF to i32*
store i32 1342177296,i32*%aG,align 4
%aH=load i8*,i8**%f,align 8
%aI=bitcast i8*%aE to i8**
store i8*%aH,i8**%aI,align 8
%aJ=load i8*,i8**%e,align 8
%aK=getelementptr inbounds i8,i8*%aE,i64 8
%aL=bitcast i8*%aK to i8**
store i8*%aJ,i8**%aL,align 8
%aM=getelementptr inbounds i8,i8*%aE,i64 16
%aN=bitcast i8*%aM to i32*
store i32 3,i32*%aN,align 4
ret i8*%aE
}
define internal fastcc i8*@_SMLLN16RenameLongsymbol14replacePathTyEE_144(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
%g=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
call void@llvm.gcroot(i8**%g,i8*null)#0
store i8*%a,i8**%d,align 8
store i8*%b,i8**%e,align 8
%h=load atomic i32,i32*@sml_check_flag unordered,align 4
%i=icmp eq i32%h,0
br i1%i,label%k,label%j
j:
call void@sml_check(i32 inreg%h)
br label%k
k:
%l=call fastcc i8*@_SMLFN9SymbolEnv6foldriE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 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**%f,align 8
%r=load i8*,i8**%d,align 8
%s=getelementptr inbounds i8,i8*%r,i64 8
%t=bitcast i8*%s to i8**
%u=load i8*,i8**%t,align 8
store i8*%u,i8**%c,align 8
%v=call i8*@sml_alloc(i32 inreg 12)#0
%w=getelementptr inbounds i8,i8*%v,i64 -4
%x=bitcast i8*%w to i32*
store i32 1342177288,i32*%x,align 4
store i8*%v,i8**%g,align 8
%y=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%z=bitcast i8*%v to i8**
store i8*%y,i8**%z,align 8
%A=getelementptr inbounds i8,i8*%v,i64 8
%B=bitcast i8*%A to i32*
store i32 1,i32*%B,align 4
%C=call i8*@sml_alloc(i32 inreg 28)#0
%D=getelementptr inbounds i8,i8*%C,i64 -4
%E=bitcast i8*%D to i32*
store i32 1342177304,i32*%E,align 4
%F=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%G=bitcast i8*%C to i8**
store i8*%F,i8**%G,align 8
%H=getelementptr inbounds i8,i8*%C,i64 8
%I=bitcast i8*%H to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN16RenameLongsymbol14replacePathTyEE_143 to void(...)*),void(...)**%I,align 8
%J=getelementptr inbounds i8,i8*%C,i64 16
%K=bitcast i8*%J to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN16RenameLongsymbol14replacePathTyEE_143 to void(...)*),void(...)**%K,align 8
%L=getelementptr inbounds i8,i8*%C,i64 24
%M=bitcast i8*%L to i32*
store i32 -2147483647,i32*%M,align 4
%N=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%O=call fastcc i8*%o(i8*inreg%N,i8*inreg%C)
%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**%f,align 8
%U=call fastcc i8*@_SMLFN9SymbolEnv5emptyE(i32 inreg 1,i32 inreg 8)
store i8*%U,i8**%c,align 8
%V=bitcast i8**%d to i8***
%W=load i8**,i8***%V,align 8
%X=load i8*,i8**%W,align 8
store i8*%X,i8**%d,align 8
%Y=call i8*@sml_alloc(i32 inreg 20)#0
%Z=getelementptr inbounds i8,i8*%Y,i64 -4
%aa=bitcast i8*%Z to i32*
store i32 1342177296,i32*%aa,align 4
%ab=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ac=bitcast i8*%Y to i8**
store i8*%ab,i8**%ac,align 8
%ad=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%ae=getelementptr inbounds i8,i8*%Y,i64 8
%af=bitcast i8*%ae to i8**
store i8*%ad,i8**%af,align 8
%ag=getelementptr inbounds i8,i8*%Y,i64 16
%ah=bitcast i8*%ag to i32*
store i32 3,i32*%ah,align 4
%ai=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%aj=call fastcc i8*%R(i8*inreg%ai,i8*inreg%Y)
%ak=getelementptr inbounds i8,i8*%aj,i64 16
%al=bitcast i8*%ak to i8*(i8*,i8*)**
%am=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%al,align 8
%an=bitcast i8*%aj to i8**
%ao=load i8*,i8**%an,align 8
%ap=load i8*,i8**%e,align 8
%aq=tail call fastcc i8*%am(i8*inreg%ao,i8*inreg%ap)
ret i8*%aq
}
define internal fastcc i8*@_SMLLN16RenameLongsymbol14replacePathTyEE_145(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=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=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%n=getelementptr inbounds i8,i8*%h,i64 8
%o=bitcast i8*%n to i8**
store i8*%m,i8**%o,align 8
%p=getelementptr inbounds i8,i8*%h,i64 16
%q=bitcast i8*%p to i32*
store i32 3,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
%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(i8*(i8*,i8*)*@_SMLLN16RenameLongsymbol14replacePathTyEE_144 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*)*@_SMLLN16RenameLongsymbol14replacePathTyEE_144 to void(...)*),void(...)**%z,align 8
%A=getelementptr inbounds i8,i8*%r,i64 24
%B=bitcast i8*%A to i32*
store i32 -2147483647,i32*%B,align 4
ret i8*%r
}
define internal fastcc i8*@_SMLLN16RenameLongsymbol14replacePathEnvE_151(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
%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
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
store i8*%a,i8**%c,align 8
store i8*%b,i8**%d,align 8
%l=load atomic i32,i32*@sml_check_flag unordered,align 4
%m=icmp eq i32%l,0
br i1%m,label%n,label%q
n:
%o=bitcast i8*%a to i8**
%p=bitcast i8*%b to i8**
br label%v
q:
call void@sml_check(i32 inreg%l)
%r=bitcast i8**%d to i8***
%s=load i8**,i8***%r,align 8
%t=bitcast i8**%c to i8***
%u=load i8**,i8***%t,align 8
br label%v
v:
%w=phi i8**[%u,%q],[%o,%n]
%x=phi i8**[%s,%q],[%p,%n]
%y=load i8*,i8**%x,align 8
store i8*%y,i8**%f,align 8
%z=getelementptr inbounds i8*,i8**%x,i64 2
%A=bitcast i8**%z to i8***
%B=load i8**,i8***%A,align 8
%C=load i8*,i8**%B,align 8
store i8*%C,i8**%g,align 8
%D=load i8*,i8**%w,align 8
store i8*%D,i8**%c,align 8
%E=call i8*@sml_alloc(i32 inreg 20)#0
%F=getelementptr inbounds i8,i8*%E,i64 -4
%G=bitcast i8*%F to i32*
store i32 1342177296,i32*%G,align 4
%H=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%I=bitcast i8*%E to i8**
store i8*%H,i8**%I,align 8
%J=load i8*,i8**%f,align 8
%K=getelementptr inbounds i8,i8*%E,i64 8
%L=bitcast i8*%K to i8**
store i8*%J,i8**%L,align 8
%M=getelementptr inbounds i8,i8*%E,i64 16
%N=bitcast i8*%M to i32*
store i32 3,i32*%N,align 4
%O=call fastcc i8*@_SMLFN6Symbol10prefixPathE(i8*inreg%E)
%P=load i8*,i8**%d,align 8
%Q=getelementptr inbounds i8,i8*%P,i64 16
%R=bitcast i8*%Q to i8**
%S=load i8*,i8**%R,align 8
%T=getelementptr inbounds i8,i8*%S,i64 8
%U=bitcast i8*%T to i8**
%V=load i8*,i8**%U,align 8
%W=getelementptr inbounds i8,i8*%P,i64 8
%X=bitcast i8*%W to i8**
%Y=load i8*,i8**%X,align 8
%Z=getelementptr inbounds i8,i8*%Y,i64 8
%aa=bitcast i8*%Z to i8**
%ab=load i8*,i8**%aa,align 8
%ac=call fastcc i8*@_SMLLN16RenameLongsymbol14replacePathEnvE_148(i8*inreg%V,i8*inreg%O,i8*inreg%ab)
store i8*%ac,i8**%e,align 8
%ad=getelementptr inbounds i8,i8*%ac,i64 8
%ae=bitcast i8*%ad to i8**
%af=load i8*,i8**%ae,align 8
store i8*%af,i8**%c,align 8
%ag=call fastcc i8*@_SMLFN9SymbolEnv6insertE(i32 inreg 1,i32 inreg 8)
%ah=getelementptr inbounds i8,i8*%ag,i64 16
%ai=bitcast i8*%ah to i8*(i8*,i8*)**
%aj=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%ai,align 8
%ak=bitcast i8*%ag to i8**
%al=load i8*,i8**%ak,align 8
store i8*%al,i8**%k,align 8
%am=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%an=getelementptr inbounds i8,i8*%am,i64 8
%ao=bitcast i8*%an to i8**
%ap=load i8*,i8**%ao,align 8
%aq=bitcast i8*%ap to i8**
%ar=load i8*,i8**%aq,align 8
store i8*%ar,i8**%h,align 8
%as=bitcast i8**%e to i8***
%at=load i8**,i8***%as,align 8
%au=load i8*,i8**%at,align 8
store i8*%au,i8**%e,align 8
%av=getelementptr inbounds i8,i8*%ap,i64 16
%aw=bitcast i8*%av to i8**
%ax=load i8*,i8**%aw,align 8
store i8*%ax,i8**%i,align 8
%ay=getelementptr inbounds i8,i8*%ap,i64 24
%az=bitcast i8*%ay to i8**
%aA=load i8*,i8**%az,align 8
store i8*%aA,i8**%j,align 8
%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**%d,align 8
%aE=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%aF=bitcast i8*%aB to i8**
store i8*%aE,i8**%aF,align 8
%aG=load i8*,i8**%e,align 8
store i8*null,i8**%e,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**%i,align 8
store i8*null,i8**%i,align 8
%aK=getelementptr inbounds i8,i8*%aB,i64 16
%aL=bitcast i8*%aK to i8**
store i8*%aJ,i8**%aL,align 8
%aM=load i8*,i8**%j,align 8
store i8*null,i8**%j,align 8
%aN=getelementptr inbounds i8,i8*%aB,i64 24
%aO=bitcast i8*%aN to i8**
store i8*%aM,i8**%aO,align 8
%aP=getelementptr inbounds i8,i8*%aB,i64 32
%aQ=bitcast i8*%aP to i32*
store i32 15,i32*%aQ,align 4
%aR=call i8*@sml_alloc(i32 inreg 28)#0
%aS=getelementptr inbounds i8,i8*%aR,i64 -4
%aT=bitcast i8*%aS to i32*
store i32 1342177304,i32*%aT,align 4
%aU=load i8*,i8**%g,align 8
%aV=bitcast i8*%aR to i8**
store i8*%aU,i8**%aV,align 8
%aW=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%aX=getelementptr inbounds i8,i8*%aR,i64 8
%aY=bitcast i8*%aX to i8**
store i8*%aW,i8**%aY,align 8
%aZ=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%a0=getelementptr inbounds i8,i8*%aR,i64 16
%a1=bitcast i8*%a0 to i8**
store i8*%aZ,i8**%a1,align 8
%a2=getelementptr inbounds i8,i8*%aR,i64 24
%a3=bitcast i8*%a2 to i32*
store i32 7,i32*%a3,align 4
%a4=load i8*,i8**%k,align 8
store i8*null,i8**%k,align 8
%a5=call fastcc i8*%aj(i8*inreg%a4,i8*inreg%aR)
%a6=call i8*@sml_alloc(i32 inreg 20)#0
%a7=getelementptr inbounds i8,i8*%a6,i64 -4
%a8=bitcast i8*%a7 to i32*
store i32 1342177296,i32*%a8,align 4
%a9=load i8*,i8**%g,align 8
%ba=bitcast i8*%a6 to i8**
store i8*%a9,i8**%ba,align 8
%bb=load i8*,i8**%c,align 8
%bc=getelementptr inbounds i8,i8*%a6,i64 8
%bd=bitcast i8*%bc to i8**
store i8*%bb,i8**%bd,align 8
%be=getelementptr inbounds i8,i8*%a6,i64 16
%bf=bitcast i8*%be to i32*
store i32 3,i32*%bf,align 4
ret i8*%a6
}
define internal fastcc i8*@_SMLLN16RenameLongsymbol14replacePathEnvE_148(i8*inreg%a,i8*inreg%b,i8*inreg%c)unnamed_addr#2 gc"smlsharp"{
%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
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
store i8*%a,i8**%g,align 8
store i8*%b,i8**%h,align 8
store i8*%c,i8**%f,align 8
%m=load atomic i32,i32*@sml_check_flag unordered,align 4
%n=icmp eq i32%m,0
br i1%n,label%o,label%q
o:
%p=bitcast i8*%c to i8**
br label%u
q:
call void@sml_check(i32 inreg%m)
%r=bitcast i8**%f to i8***
%s=load i8**,i8***%r,align 8
%t=load i8*,i8**%g,align 8
br label%u
u:
%v=phi i8*[%t,%q],[%a,%o]
%w=phi i8**[%s,%q],[%p,%o]
%x=load i8*,i8**%w,align 8
store i8*%x,i8**%k,align 8
%y=getelementptr inbounds i8*,i8**%w,i64 2
%z=load i8*,i8**%y,align 8
store i8*%z,i8**%i,align 8
store i8*null,i8**%g,align 8
%A=bitcast i8**%d to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%A)
%B=bitcast i8**%e to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%B)
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%v,i8**%d,align 8
%C=call i8*@sml_alloc(i32 inreg 12)#0
%D=getelementptr inbounds i8,i8*%C,i64 -4
%E=bitcast i8*%D to i32*
store i32 1342177288,i32*%E,align 4
store i8*%C,i8**%e,align 8
%F=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%G=bitcast i8*%C to i8**
store i8*%F,i8**%G,align 8
%H=getelementptr inbounds i8,i8*%C,i64 8
%I=bitcast i8*%H to i32*
store i32 1,i32*%I,align 4
%J=call i8*@sml_alloc(i32 inreg 28)#0
%K=getelementptr inbounds i8,i8*%J,i64 -4
%L=bitcast i8*%K to i32*
store i32 1342177304,i32*%L,align 4
%M=load i8*,i8**%e,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 void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN16RenameLongsymbol14replacePathTyEE_145 to void(...)*),void(...)**%P,align 8
%Q=getelementptr inbounds i8,i8*%J,i64 16
%R=bitcast i8*%Q to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN16RenameLongsymbol14replacePathTyEE_145 to void(...)*),void(...)**%R,align 8
%S=getelementptr inbounds i8,i8*%J,i64 24
%T=bitcast i8*%S to i32*
store i32 -2147483647,i32*%T,align 4
call void@llvm.lifetime.end.p0i8(i64 8,i8*%A)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%B)
%U=load i8*,i8**%h,align 8
%V=call fastcc i8*@_SMLLN16RenameLongsymbol14replacePathTyEE_145(i8*inreg%M,i8*inreg%U)
%W=getelementptr inbounds i8,i8*%V,i64 16
%X=bitcast i8*%W to i8*(i8*,i8*)**
%Y=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%X,align 8
%Z=bitcast i8*%V to i8**
%aa=load i8*,i8**%Z,align 8
%ab=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%ac=getelementptr inbounds i8,i8*%ab,i64 8
%ad=bitcast i8*%ac to i8**
%ae=load i8*,i8**%ad,align 8
%af=call fastcc i8*%Y(i8*inreg%aa,i8*inreg%ae)
%ag=bitcast i8*%af to i8**
%ah=load i8*,i8**%ag,align 8
store i8*%ah,i8**%f,align 8
%ai=getelementptr inbounds i8,i8*%af,i64 8
%aj=bitcast i8*%ai to i8**
%ak=load i8*,i8**%aj,align 8
store i8*%ak,i8**%g,align 8
%al=call fastcc i8*@_SMLFN9SymbolEnv6foldriE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%am=getelementptr inbounds i8,i8*%al,i64 16
%an=bitcast i8*%am to i8*(i8*,i8*)**
%ao=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%an,align 8
%ap=bitcast i8*%al to i8**
%aq=load i8*,i8**%ap,align 8
store i8*%aq,i8**%j,align 8
%ar=call i8*@sml_alloc(i32 inreg 12)#0
%as=getelementptr inbounds i8,i8*%ar,i64 -4
%at=bitcast i8*%as to i32*
store i32 1342177288,i32*%at,align 4
store i8*%ar,i8**%l,align 8
%au=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%av=bitcast i8*%ar to i8**
store i8*%au,i8**%av,align 8
%aw=getelementptr inbounds i8,i8*%ar,i64 8
%ax=bitcast i8*%aw to i32*
store i32 1,i32*%ax,align 4
%ay=call i8*@sml_alloc(i32 inreg 28)#0
%az=getelementptr inbounds i8,i8*%ay,i64 -4
%aA=bitcast i8*%az to i32*
store i32 1342177304,i32*%aA,align 4
%aB=load i8*,i8**%l,align 8
store i8*null,i8**%l,align 8
%aC=bitcast i8*%ay to i8**
store i8*%aB,i8**%aC,align 8
%aD=getelementptr inbounds i8,i8*%ay,i64 8
%aE=bitcast i8*%aD to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN16RenameLongsymbol14replacePathEnvE_151 to void(...)*),void(...)**%aE,align 8
%aF=getelementptr inbounds i8,i8*%ay,i64 16
%aG=bitcast i8*%aF to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN16RenameLongsymbol14replacePathEnvE_151 to void(...)*),void(...)**%aG,align 8
%aH=getelementptr inbounds i8,i8*%ay,i64 24
%aI=bitcast i8*%aH to i32*
store i32 -2147483647,i32*%aI,align 4
%aJ=load i8*,i8**%j,align 8
store i8*null,i8**%j,align 8
%aK=call fastcc i8*%ao(i8*inreg%aJ,i8*inreg%ay)
%aL=getelementptr inbounds i8,i8*%aK,i64 16
%aM=bitcast i8*%aL to i8*(i8*,i8*)**
%aN=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aM,align 8
%aO=bitcast i8*%aK to i8**
%aP=load i8*,i8**%aO,align 8
store i8*%aP,i8**%j,align 8
%aQ=call fastcc i8*@_SMLFN9SymbolEnv5emptyE(i32 inreg 1,i32 inreg 8)
store i8*%aQ,i8**%h,align 8
%aR=call i8*@sml_alloc(i32 inreg 20)#0
%aS=getelementptr inbounds i8,i8*%aR,i64 -4
%aT=bitcast i8*%aS to i32*
store i32 1342177296,i32*%aT,align 4
%aU=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%aV=bitcast i8*%aR to i8**
store i8*%aU,i8**%aV,align 8
%aW=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%aX=getelementptr inbounds i8,i8*%aR,i64 8
%aY=bitcast i8*%aX to i8**
store i8*%aW,i8**%aY,align 8
%aZ=getelementptr inbounds i8,i8*%aR,i64 16
%a0=bitcast i8*%aZ to i32*
store i32 3,i32*%a0,align 4
%a1=load i8*,i8**%j,align 8
store i8*null,i8**%j,align 8
%a2=call fastcc i8*%aN(i8*inreg%a1,i8*inreg%aR)
%a3=getelementptr inbounds i8,i8*%a2,i64 16
%a4=bitcast i8*%a3 to i8*(i8*,i8*)**
%a5=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%a4,align 8
%a6=bitcast i8*%a2 to i8**
%a7=load i8*,i8**%a6,align 8
%a8=load i8*,i8**%k,align 8
%a9=call fastcc i8*%a5(i8*inreg%a7,i8*inreg%a8)
%ba=getelementptr inbounds i8,i8*%a9,i64 8
%bb=bitcast i8*%ba to i8**
%bc=load i8*,i8**%bb,align 8
store i8*%bc,i8**%g,align 8
%bd=call i8*@sml_alloc(i32 inreg 28)#0
%be=getelementptr inbounds i8,i8*%bd,i64 -4
%bf=bitcast i8*%be to i32*
store i32 1342177304,i32*%bf,align 4
store i8*%bd,i8**%h,align 8
%bg=load i8*,i8**%k,align 8
store i8*null,i8**%k,align 8
%bh=bitcast i8*%bd to i8**
store i8*%bg,i8**%bh,align 8
%bi=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%bj=getelementptr inbounds i8,i8*%bd,i64 8
%bk=bitcast i8*%bj to i8**
store i8*%bi,i8**%bk,align 8
%bl=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%bm=getelementptr inbounds i8,i8*%bd,i64 16
%bn=bitcast i8*%bm to i8**
store i8*%bl,i8**%bn,align 8
%bo=getelementptr inbounds i8,i8*%bd,i64 24
%bp=bitcast i8*%bo to i32*
store i32 7,i32*%bp,align 4
%bq=call i8*@sml_alloc(i32 inreg 20)#0
%br=getelementptr inbounds i8,i8*%bq,i64 -4
%bs=bitcast i8*%br to i32*
store i32 1342177296,i32*%bs,align 4
%bt=load i8*,i8**%h,align 8
%bu=bitcast i8*%bq to i8**
store i8*%bt,i8**%bu,align 8
%bv=load i8*,i8**%g,align 8
%bw=getelementptr inbounds i8,i8*%bq,i64 8
%bx=bitcast i8*%bw to i8**
store i8*%bv,i8**%bx,align 8
%by=getelementptr inbounds i8,i8*%bq,i64 16
%bz=bitcast i8*%by to i32*
store i32 3,i32*%bz,align 4
ret i8*%bq
}
define internal fastcc i8*@_SMLLN16RenameLongsymbol20renameLongsymbolTfunE_152(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**%c,align 8
br label%j
j:
%k=phi i8*[%i,%h],[%b,%l]
%m=bitcast i8*%k to i32*
%n=load i32,i32*%m,align 4
%o=icmp eq i32%n,1
br i1%o,label%p,label%ag
p:
%q=getelementptr inbounds i8,i8*%k,i64 8
%r=bitcast i8*%q to i8***
%s=load i8**,i8***%r,align 8
%t=load i8*,i8**%s,align 8
%u=bitcast i8*%t to i32*
%v=load i32,i32*%u,align 4
%w=icmp eq i32%v,3
br i1%w,label%x,label%ag
x:
%y=getelementptr inbounds i8,i8*%t,i64 8
%z=bitcast i8*%y to i8**
%A=load i8*,i8**%z,align 8
%B=getelementptr inbounds i8,i8*%A,i64 40
%C=bitcast i8*%B to i32*
%D=load i32,i32*%C,align 4
%E=call fastcc i8*@_SMLFN5TypID3Map4findE(i32 inreg 1,i32 inreg 8)
%F=getelementptr inbounds i8,i8*%E,i64 16
%G=bitcast i8*%F to i8*(i8*,i8*)**
%H=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%G,align 8
%I=bitcast i8*%E to i8**
%J=load i8*,i8**%I,align 8
store i8*%J,i8**%e,align 8
%K=bitcast i8**%d to i8***
%L=load i8**,i8***%K,align 8
%M=load i8*,i8**%L,align 8
store i8*%M,i8**%d,align 8
%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
%Q=getelementptr inbounds i8,i8*%N,i64 12
%R=bitcast i8*%Q to i32*
store i32 0,i32*%R,align 1
%S=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%T=bitcast i8*%N to i8**
store i8*%S,i8**%T,align 8
%U=getelementptr inbounds i8,i8*%N,i64 8
%V=bitcast i8*%U to i32*
store i32%D,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=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%Z=call fastcc i8*%H(i8*inreg%Y,i8*inreg%N)
%aa=icmp eq i8*%Z,null
br i1%aa,label%ab,label%ad
ab:
%ac=load i8*,i8**%c,align 8
ret i8*%ac
ad:
%ae=bitcast i8*%Z to i8**
%af=load i8*,i8**%ae,align 8
ret i8*%af
ag:
ret i8*%k
}
define internal fastcc i8*@_SMLLN16RenameLongsymbol18renameLongsymbolTyE_161(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]
%p=load i8*,i8**%n,align 8
%q=tail call fastcc i8*@_SMLLN16RenameLongsymbol18renameLongsymbolTyE_155(i8*inreg%p,i8*inreg%o)
ret i8*%q
}
define internal fastcc i8*@_SMLLN16RenameLongsymbol18renameLongsymbolTyE_162(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]
%p=load i8*,i8**%n,align 8
%q=tail call fastcc i8*@_SMLLN16RenameLongsymbol18renameLongsymbolTyE_155(i8*inreg%p,i8*inreg%o)
ret i8*%q
}
define internal fastcc i8*@_SMLLN16RenameLongsymbol18renameLongsymbolTyE_163(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]
%p=load i8*,i8**%n,align 8
%q=tail call fastcc i8*@_SMLLN16RenameLongsymbol18renameLongsymbolTyE_155(i8*inreg%p,i8*inreg%o)
ret i8*%q
}
define internal fastcc i8*@_SMLLN16RenameLongsymbol18renameLongsymbolTyE_155(i8*inreg%a,i8*inreg%b)unnamed_addr#2 gc"smlsharp"{
p:
%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**%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
store i8*%a,i8**%g,align 8
store i8*%b,i8**%e,align 8
%j=load atomic i32,i32*@sml_check_flag unordered,align 4
%k=icmp eq i32%j,0
br i1%k,label%n,label%l
l:
call void@sml_check(i32 inreg%j)
%m=load i8*,i8**%e,align 8
br label%n
n:
%o=phi i8*[%m,%l],[%b,%p]
%q=bitcast i8*%o to i32*
%r=load i32,i32*%q,align 4
switch i32%r,label%s[
i32 8,label%K
i32 2,label%K
i32 7,label%K
i32 3,label%K
i32 6,label%cT
i32 1,label%bv
i32 4,label%ar
i32 5,label%L
i32 0,label%K
]
s:
store i8*null,i8**%g,align 8
call void@sml_matchcomp_bug()
%t=load i8*,i8**@_SMLZ5Match,align 8
store i8*%t,i8**%e,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**%f,align 8
%x=load i8*,i8**%e,align 8
store i8*null,i8**%e,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,[80x i8]}>,<{[4x i8],i32,[80x i8]}>*@f,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**%f,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:
ret i8*%o
L:
%M=getelementptr inbounds i8,i8*%o,i64 8
%N=bitcast i8*%M to i8**
%O=load i8*,i8**%N,align 8
%P=bitcast i8*%O to i8**
%Q=load i8*,i8**%P,align 8
store i8*%Q,i8**%f,align 8
%R=getelementptr inbounds i8,i8*%O,i64 8
%S=bitcast i8*%R to i8**
%T=load i8*,i8**%S,align 8
%U=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%V=call fastcc i8*@_SMLLN16RenameLongsymbol18renameLongsymbolTyE_155(i8*inreg%U,i8*inreg%T)
store i8*%V,i8**%e,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**%g,align 8
%Z=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%aa=bitcast i8*%W to i8**
store i8*%Z,i8**%aa,align 8
%ab=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%ac=getelementptr inbounds i8,i8*%W,i64 8
%ad=bitcast i8*%ac to i8**
store i8*%ab,i8**%ad,align 8
%ae=getelementptr inbounds i8,i8*%W,i64 16
%af=bitcast i8*%ae to i32*
store i32 3,i32*%af,align 4
%ag=call i8*@sml_alloc(i32 inreg 20)#0
%ah=bitcast i8*%ag to i32*
%ai=getelementptr inbounds i8,i8*%ag,i64 -4
%aj=bitcast i8*%ai to i32*
store i32 1342177296,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 5,i32*%ah,align 4
%am=load i8*,i8**%g,align 8
%an=getelementptr inbounds i8,i8*%ag,i64 8
%ao=bitcast i8*%an to i8**
store i8*%am,i8**%ao,align 8
%ap=getelementptr inbounds i8,i8*%ag,i64 16
%aq=bitcast i8*%ap to i32*
store i32 2,i32*%aq,align 4
ret i8*%ag
ar:
%as=getelementptr inbounds i8,i8*%o,i64 8
%at=bitcast i8*%as to i8**
%au=load i8*,i8**%at,align 8
store i8*%au,i8**%f,align 8
%av=call fastcc i8*@_SMLFN4List3mapE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%aw=getelementptr inbounds i8,i8*%av,i64 16
%ax=bitcast i8*%aw to i8*(i8*,i8*)**
%ay=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%ax,align 8
%az=bitcast i8*%av to i8**
%aA=load i8*,i8**%az,align 8
store i8*%aA,i8**%e,align 8
%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**%h,align 8
%aE=load i8*,i8**%g,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
%aL=load i8*,i8**%h,align 8
store i8*null,i8**%h,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*)*@_SMLLN16RenameLongsymbol18renameLongsymbolTyE_163 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*)*@_SMLLN16RenameLongsymbol18renameLongsymbolTyE_163 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=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%aU=call fastcc i8*%ay(i8*inreg%aT,i8*inreg%aI)
%aV=getelementptr inbounds i8,i8*%aU,i64 16
%aW=bitcast i8*%aV to i8*(i8*,i8*)**
%aX=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aW,align 8
%aY=bitcast i8*%aU to i8**
%aZ=load i8*,i8**%aY,align 8
%a0=bitcast i8**%f to i8***
%a1=load i8**,i8***%a0,align 8
%a2=load i8*,i8**%a1,align 8
%a3=call fastcc i8*%aX(i8*inreg%aZ,i8*inreg%a2)
store i8*%a3,i8**%e,align 8
%a4=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%a5=getelementptr inbounds i8,i8*%a4,i64 8
%a6=bitcast i8*%a5 to i8**
%a7=load i8*,i8**%a6,align 8
%a8=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%a9=call fastcc i8*@_SMLLN16RenameLongsymbol18renameLongsymbolTyE_155(i8*inreg%a8,i8*inreg%a7)
store i8*%a9,i8**%f,align 8
%ba=call i8*@sml_alloc(i32 inreg 20)#0
%bb=getelementptr inbounds i8,i8*%ba,i64 -4
%bc=bitcast i8*%bb to i32*
store i32 1342177296,i32*%bc,align 4
store i8*%ba,i8**%g,align 8
%bd=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%be=bitcast i8*%ba to i8**
store i8*%bd,i8**%be,align 8
%bf=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%bg=getelementptr inbounds i8,i8*%ba,i64 8
%bh=bitcast i8*%bg to i8**
store i8*%bf,i8**%bh,align 8
%bi=getelementptr inbounds i8,i8*%ba,i64 16
%bj=bitcast i8*%bi to i32*
store i32 3,i32*%bj,align 4
%bk=call i8*@sml_alloc(i32 inreg 20)#0
%bl=bitcast i8*%bk to i32*
%bm=getelementptr inbounds i8,i8*%bk,i64 -4
%bn=bitcast i8*%bm to i32*
store i32 1342177296,i32*%bn,align 4
%bo=getelementptr inbounds i8,i8*%bk,i64 4
%bp=bitcast i8*%bo to i32*
store i32 0,i32*%bp,align 1
store i32 4,i32*%bl,align 4
%bq=load i8*,i8**%g,align 8
%br=getelementptr inbounds i8,i8*%bk,i64 8
%bs=bitcast i8*%br to i8**
store i8*%bq,i8**%bs,align 8
%bt=getelementptr inbounds i8,i8*%bk,i64 16
%bu=bitcast i8*%bt to i32*
store i32 2,i32*%bu,align 4
ret i8*%bk
bv:
%bw=getelementptr inbounds i8,i8*%o,i64 8
%bx=bitcast i8*%bw to i8**
%by=load i8*,i8**%bx,align 8
store i8*%by,i8**%f,align 8
%bz=load i8*,i8**%g,align 8
%bA=bitcast i8**%c to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%bA)
%bB=bitcast i8**%d to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%bB)
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%bz,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=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=load i8*,i8**%d,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 void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN16RenameLongsymbol20renameLongsymbolTfunE_152 to void(...)*),void(...)**%bP,align 8
%bQ=getelementptr inbounds i8,i8*%bJ,i64 16
%bR=bitcast i8*%bQ to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN16RenameLongsymbol20renameLongsymbolTfunE_152 to void(...)*),void(...)**%bR,align 8
%bS=getelementptr inbounds i8,i8*%bJ,i64 24
%bT=bitcast i8*%bS to i32*
store i32 -2147483647,i32*%bT,align 4
call void@llvm.lifetime.end.p0i8(i64 8,i8*%bA)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%bB)
%bU=load i8*,i8**%f,align 8
%bV=getelementptr inbounds i8,i8*%bU,i64 8
%bW=bitcast i8*%bV to i8**
%bX=load i8*,i8**%bW,align 8
%bY=call fastcc i8*@_SMLLN16RenameLongsymbol20renameLongsymbolTfunE_152(i8*inreg%bM,i8*inreg%bX)
store i8*%bY,i8**%e,align 8
%bZ=call fastcc i8*@_SMLFN4List3mapE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%b0=getelementptr inbounds i8,i8*%bZ,i64 16
%b1=bitcast i8*%b0 to i8*(i8*,i8*)**
%b2=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%b1,align 8
%b3=bitcast i8*%bZ to i8**
%b4=load i8*,i8**%b3,align 8
store i8*%b4,i8**%h,align 8
%b5=call i8*@sml_alloc(i32 inreg 12)#0
%b6=getelementptr inbounds i8,i8*%b5,i64 -4
%b7=bitcast i8*%b6 to i32*
store i32 1342177288,i32*%b7,align 4
store i8*%b5,i8**%i,align 8
%b8=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%b9=bitcast i8*%b5 to i8**
store i8*%b8,i8**%b9,align 8
%ca=getelementptr inbounds i8,i8*%b5,i64 8
%cb=bitcast i8*%ca to i32*
store i32 1,i32*%cb,align 4
%cc=call i8*@sml_alloc(i32 inreg 28)#0
%cd=getelementptr inbounds i8,i8*%cc,i64 -4
%ce=bitcast i8*%cd to i32*
store i32 1342177304,i32*%ce,align 4
%cf=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%cg=bitcast i8*%cc to i8**
store i8*%cf,i8**%cg,align 8
%ch=getelementptr inbounds i8,i8*%cc,i64 8
%ci=bitcast i8*%ch to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN16RenameLongsymbol18renameLongsymbolTyE_162 to void(...)*),void(...)**%ci,align 8
%cj=getelementptr inbounds i8,i8*%cc,i64 16
%ck=bitcast i8*%cj to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN16RenameLongsymbol18renameLongsymbolTyE_162 to void(...)*),void(...)**%ck,align 8
%cl=getelementptr inbounds i8,i8*%cc,i64 24
%cm=bitcast i8*%cl to i32*
store i32 -2147483647,i32*%cm,align 4
%cn=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%co=call fastcc i8*%b2(i8*inreg%cn,i8*inreg%cc)
%cp=getelementptr inbounds i8,i8*%co,i64 16
%cq=bitcast i8*%cp to i8*(i8*,i8*)**
%cr=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%cq,align 8
%cs=bitcast i8*%co to i8**
%ct=load i8*,i8**%cs,align 8
%cu=bitcast i8**%f to i8***
%cv=load i8**,i8***%cu,align 8
store i8*null,i8**%f,align 8
%cw=load i8*,i8**%cv,align 8
%cx=call fastcc i8*%cr(i8*inreg%ct,i8*inreg%cw)
store i8*%cx,i8**%f,align 8
%cy=call i8*@sml_alloc(i32 inreg 20)#0
%cz=getelementptr inbounds i8,i8*%cy,i64 -4
%cA=bitcast i8*%cz to i32*
store i32 1342177296,i32*%cA,align 4
store i8*%cy,i8**%g,align 8
%cB=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%cC=bitcast i8*%cy to i8**
store i8*%cB,i8**%cC,align 8
%cD=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%cE=getelementptr inbounds i8,i8*%cy,i64 8
%cF=bitcast i8*%cE to i8**
store i8*%cD,i8**%cF,align 8
%cG=getelementptr inbounds i8,i8*%cy,i64 16
%cH=bitcast i8*%cG to i32*
store i32 3,i32*%cH,align 4
%cI=call i8*@sml_alloc(i32 inreg 20)#0
%cJ=bitcast i8*%cI to i32*
%cK=getelementptr inbounds i8,i8*%cI,i64 -4
%cL=bitcast i8*%cK to i32*
store i32 1342177296,i32*%cL,align 4
%cM=getelementptr inbounds i8,i8*%cI,i64 4
%cN=bitcast i8*%cM to i32*
store i32 0,i32*%cN,align 1
store i32 1,i32*%cJ,align 4
%cO=load i8*,i8**%g,align 8
%cP=getelementptr inbounds i8,i8*%cI,i64 8
%cQ=bitcast i8*%cP to i8**
store i8*%cO,i8**%cQ,align 8
%cR=getelementptr inbounds i8,i8*%cI,i64 16
%cS=bitcast i8*%cR to i32*
store i32 2,i32*%cS,align 4
ret i8*%cI
cT:
%cU=getelementptr inbounds i8,i8*%o,i64 8
%cV=bitcast i8*%cU to i8**
%cW=load i8*,i8**%cV,align 8
store i8*%cW,i8**%e,align 8
%cX=getelementptr inbounds i8,i8*%cW,i64 8
%cY=bitcast i8*%cX to i32*
%cZ=load i32,i32*%cY,align 4
%c0=call fastcc i8*@_SMLFN11RecordLabel3Map3mapE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%c1=getelementptr inbounds i8,i8*%c0,i64 16
%c2=bitcast i8*%c1 to i8*(i8*,i8*)**
%c3=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%c2,align 8
%c4=bitcast i8*%c0 to i8**
%c5=load i8*,i8**%c4,align 8
store i8*%c5,i8**%f,align 8
%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**%h,align 8
%c9=load i8*,i8**%g,align 8
store i8*null,i8**%g,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 28)#0
%de=getelementptr inbounds i8,i8*%dd,i64 -4
%df=bitcast i8*%de to i32*
store i32 1342177304,i32*%df,align 4
%dg=load i8*,i8**%h,align 8
store i8*null,i8**%h,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(i8*(i8*,i8*)*@_SMLLN16RenameLongsymbol18renameLongsymbolTyE_161 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*)*@_SMLLN16RenameLongsymbol18renameLongsymbolTyE_161 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=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%dp=call fastcc i8*%c3(i8*inreg%do,i8*inreg%dd)
%dq=getelementptr inbounds i8,i8*%dp,i64 16
%dr=bitcast i8*%dq to i8*(i8*,i8*)**
%ds=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%dr,align 8
%dt=bitcast i8*%dp to i8**
%du=load i8*,i8**%dt,align 8
%dv=bitcast i8**%e to i8***
%dw=load i8**,i8***%dv,align 8
store i8*null,i8**%e,align 8
%dx=load i8*,i8**%dw,align 8
%dy=call fastcc i8*%ds(i8*inreg%du,i8*inreg%dx)
store i8*%dy,i8**%e,align 8
%dz=call i8*@sml_alloc(i32 inreg 20)#0
%dA=getelementptr inbounds i8,i8*%dz,i64 -4
%dB=bitcast i8*%dA to i32*
store i32 1342177296,i32*%dB,align 4
store i8*%dz,i8**%f,align 8
%dC=getelementptr inbounds i8,i8*%dz,i64 12
%dD=bitcast i8*%dC to i32*
store i32 0,i32*%dD,align 1
%dE=load i8*,i8**%e,align 8
%dF=bitcast i8*%dz to i8**
store i8*null,i8**%e,align 8
store i8*%dE,i8**%dF,align 8
%dG=getelementptr inbounds i8,i8*%dz,i64 8
%dH=bitcast i8*%dG to i32*
store i32%cZ,i32*%dH,align 4
%dI=getelementptr inbounds i8,i8*%dz,i64 16
%dJ=bitcast i8*%dI to i32*
store i32 1,i32*%dJ,align 4
%dK=call i8*@sml_alloc(i32 inreg 20)#0
%dL=bitcast i8*%dK to i32*
%dM=getelementptr inbounds i8,i8*%dK,i64 -4
%dN=bitcast i8*%dM to i32*
store i32 1342177296,i32*%dN,align 4
%dO=getelementptr inbounds i8,i8*%dK,i64 4
%dP=bitcast i8*%dO to i32*
store i32 0,i32*%dP,align 1
store i32 6,i32*%dL,align 4
%dQ=load i8*,i8**%f,align 8
%dR=getelementptr inbounds i8,i8*%dK,i64 8
%dS=bitcast i8*%dR to i8**
store i8*%dQ,i8**%dS,align 8
%dT=getelementptr inbounds i8,i8*%dK,i64 16
%dU=bitcast i8*%dT to i32*
store i32 2,i32*%dU,align 4
ret i8*%dK
}
define internal fastcc i8*@_SMLL10newConSpec_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]
%p=load i8*,i8**%n,align 8
%q=tail call fastcc i8*@_SMLLN16RenameLongsymbol18renameLongsymbolTyE_155(i8*inreg%p,i8*inreg%o)
ret i8*%q
}
define internal fastcc i8*@_SMLLN16RenameLongsymbol24renameLongsymbolTfunSelfE_166(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
u:
%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**%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
store i8*%a,i8**%k,align 8
store i8*%b,i8**%c,align 8
%o=load atomic i32,i32*@sml_check_flag unordered,align 4
%p=icmp eq i32%o,0
br i1%p,label%s,label%q
q:
call void@sml_check(i32 inreg%o)
%r=load i8*,i8**%c,align 8
br label%s
s:
%t=phi i8*[%r,%q],[%b,%u]
%v=bitcast i8*%t to i32*
%w=load i32,i32*%v,align 4
%x=icmp eq i32%w,1
br i1%x,label%y,label%co
y:
%z=getelementptr inbounds i8,i8*%t,i64 8
%A=bitcast i8*%z to i8***
%B=load i8**,i8***%A,align 8
%C=load i8*,i8**%B,align 8
%D=bitcast i8*%C to i32*
%E=load i32,i32*%D,align 4
%F=icmp eq i32%E,3
br i1%F,label%G,label%co
G:
%H=getelementptr inbounds i8,i8*%C,i64 8
%I=bitcast i8*%H to i8**
%J=load i8*,i8**%I,align 8
%K=getelementptr inbounds i8,i8*%J,i64 40
%L=bitcast i8*%K to i32*
%M=load i32,i32*%L,align 4
%N=call fastcc i8*@_SMLFN5TypID3Map4findE(i32 inreg 1,i32 inreg 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**%e,align 8
%T=bitcast i8**%k to i8***
%U=load i8**,i8***%T,align 8
%V=load i8*,i8**%U,align 8
store i8*%V,i8**%d,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=getelementptr inbounds i8,i8*%W,i64 12
%aa=bitcast i8*%Z to i32*
store i32 0,i32*%aa,align 1
%ab=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%ac=bitcast i8*%W to i8**
store i8*%ab,i8**%ac,align 8
%ad=getelementptr inbounds i8,i8*%W,i64 8
%ae=bitcast i8*%ad to i32*
store i32%M,i32*%ae,align 4
%af=getelementptr inbounds i8,i8*%W,i64 16
%ag=bitcast i8*%af to i32*
store i32 1,i32*%ag,align 4
%ah=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%ai=call fastcc i8*%Q(i8*inreg%ah,i8*inreg%W)
%aj=icmp eq i8*%ai,null
br i1%aj,label%ak,label%am
ak:
%al=load i8*,i8**%c,align 8
ret i8*%al
am:
%an=bitcast i8*%ai to i8**
%ao=load i8*,i8**%an,align 8
store i8*%ao,i8**%d,align 8
%ap=bitcast i8*%ao to i32*
%aq=load i32,i32*%ap,align 4
%ar=icmp eq i32%aq,1
br i1%ar,label%as,label%co
as:
%at=getelementptr inbounds i8,i8*%ao,i64 8
%au=bitcast i8*%at to i8**
%av=load i8*,i8**%au,align 8
store i8*%av,i8**%e,align 8
%aw=bitcast i8*%av to i8**
%ax=load i8*,i8**%aw,align 8
%ay=bitcast i8*%ax to i32*
%az=load i32,i32*%ay,align 4
%aA=icmp eq i32%az,3
br i1%aA,label%aB,label%co
aB:
%aC=getelementptr inbounds i8,i8*%ax,i64 8
%aD=bitcast i8*%aC to i8**
%aE=load i8*,i8**%aD,align 8
store i8*%aE,i8**%c,align 8
%aF=bitcast i8*%aE to i32*
%aG=load i32,i32*%aF,align 4
%aH=getelementptr inbounds i8,i8*%aE,i64 8
%aI=bitcast i8*%aH to i8**
%aJ=load i8*,i8**%aI,align 8
store i8*%aJ,i8**%f,align 8
%aK=getelementptr inbounds i8,i8*%aE,i64 24
%aL=bitcast i8*%aK to i8**
%aM=load i8*,i8**%aL,align 8
store i8*%aM,i8**%g,align 8
%aN=getelementptr inbounds i8,i8*%aE,i64 32
%aO=bitcast i8*%aN to i8**
%aP=load i8*,i8**%aO,align 8
store i8*%aP,i8**%h,align 8
%aQ=getelementptr inbounds i8,i8*%aE,i64 40
%aR=bitcast i8*%aQ to i32*
%aS=load i32,i32*%aR,align 4
%aT=getelementptr inbounds i8,i8*%aE,i64 48
%aU=bitcast i8*%aT to i8**
%aV=load i8*,i8**%aU,align 8
store i8*%aV,i8**%i,align 8
%aW=getelementptr inbounds i8,i8*%aE,i64 56
%aX=bitcast i8*%aW to i8**
%aY=load i8*,i8**%aX,align 8
store i8*%aY,i8**%j,align 8
%aZ=call fastcc i8*@_SMLFN9SymbolEnv3mapE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%a0=getelementptr inbounds i8,i8*%aZ,i64 16
%a1=bitcast i8*%a0 to i8*(i8*,i8*)**
%a2=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%a1,align 8
%a3=bitcast i8*%aZ to i8**
%a4=load i8*,i8**%a3,align 8
store i8*%a4,i8**%m,align 8
%a5=call fastcc i8*@_SMLFN6Option3mapE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%a6=getelementptr inbounds i8,i8*%a5,i64 16
%a7=bitcast i8*%a6 to i8*(i8*,i8*)**
%a8=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%a7,align 8
%a9=bitcast i8*%a5 to i8**
%ba=load i8*,i8**%a9,align 8
store i8*%ba,i8**%l,align 8
%bb=load i8**,i8***%T,align 8
%bc=load i8*,i8**%bb,align 8
store i8*%bc,i8**%k,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
store i8*%bd,i8**%n,align 8
%bg=load i8*,i8**%k,align 8
store i8*null,i8**%k,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=call i8*@sml_alloc(i32 inreg 28)#0
%bl=getelementptr inbounds i8,i8*%bk,i64 -4
%bm=bitcast i8*%bl to i32*
store i32 1342177304,i32*%bm,align 4
%bn=load i8*,i8**%n,align 8
store i8*null,i8**%n,align 8
%bo=bitcast i8*%bk to i8**
store i8*%bn,i8**%bo,align 8
%bp=getelementptr inbounds i8,i8*%bk,i64 8
%bq=bitcast i8*%bp to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL10newConSpec_165 to void(...)*),void(...)**%bq,align 8
%br=getelementptr inbounds i8,i8*%bk,i64 16
%bs=bitcast i8*%br to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL10newConSpec_165 to void(...)*),void(...)**%bs,align 8
%bt=getelementptr inbounds i8,i8*%bk,i64 24
%bu=bitcast i8*%bt to i32*
store i32 -2147483647,i32*%bu,align 4
%bv=load i8*,i8**%l,align 8
store i8*null,i8**%l,align 8
%bw=call fastcc i8*%a8(i8*inreg%bv,i8*inreg%bk)
%bx=load i8*,i8**%m,align 8
store i8*null,i8**%m,align 8
%by=call fastcc i8*%a2(i8*inreg%bx,i8*inreg%bw)
%bz=getelementptr inbounds i8,i8*%by,i64 16
%bA=bitcast i8*%bz to i8*(i8*,i8*)**
%bB=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bA,align 8
%bC=bitcast i8*%by to i8**
%bD=load i8*,i8**%bC,align 8
%bE=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bF=getelementptr inbounds i8,i8*%bE,i64 16
%bG=bitcast i8*%bF to i8**
%bH=load i8*,i8**%bG,align 8
%bI=call fastcc i8*%bB(i8*inreg%bD,i8*inreg%bH)
store i8*%bI,i8**%c,align 8
%bJ=call i8*@sml_alloc(i32 inreg 68)#0
%bK=getelementptr inbounds i8,i8*%bJ,i64 -4
%bL=bitcast i8*%bK to i32*
store i32 1342177344,i32*%bL,align 4
store i8*%bJ,i8**%k,align 8
%bM=getelementptr inbounds i8,i8*%bJ,i64 4
call void@llvm.memset.p0i8.i32(i8*%bM,i8 0,i32 44,i1 false)
%bN=bitcast i8*%bJ to i32*
store i32%aG,i32*%bN,align 4
%bO=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%bP=getelementptr inbounds i8,i8*%bJ,i64 8
%bQ=bitcast i8*%bP to i8**
store i8*%bO,i8**%bQ,align 8
%bR=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bS=getelementptr inbounds i8,i8*%bJ,i64 16
%bT=bitcast i8*%bS to i8**
store i8*%bR,i8**%bT,align 8
%bU=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%bV=getelementptr inbounds i8,i8*%bJ,i64 24
%bW=bitcast i8*%bV to i8**
store i8*%bU,i8**%bW,align 8
%bX=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%bY=getelementptr inbounds i8,i8*%bJ,i64 32
%bZ=bitcast i8*%bY to i8**
store i8*%bX,i8**%bZ,align 8
%b0=getelementptr inbounds i8,i8*%bJ,i64 40
%b1=bitcast i8*%b0 to i32*
store i32%aS,i32*%b1,align 4
%b2=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%b3=getelementptr inbounds i8,i8*%bJ,i64 48
%b4=bitcast i8*%b3 to i8**
store i8*%b2,i8**%b4,align 8
%b5=load i8*,i8**%j,align 8
store i8*null,i8**%j,align 8
%b6=getelementptr inbounds i8,i8*%bJ,i64 56
%b7=bitcast i8*%b6 to i8**
store i8*%b5,i8**%b7,align 8
%b8=getelementptr inbounds i8,i8*%bJ,i64 64
%b9=bitcast i8*%b8 to i32*
store i32 222,i32*%b9,align 4
%ca=call i8*@sml_alloc(i32 inreg 20)#0
%cb=bitcast i8*%ca to i32*
%cc=getelementptr inbounds i8,i8*%ca,i64 -4
%cd=bitcast i8*%cc to i32*
store i32 1342177296,i32*%cd,align 4
%ce=getelementptr inbounds i8,i8*%ca,i64 4
%cf=bitcast i8*%ce to i32*
store i32 0,i32*%cf,align 1
store i32 3,i32*%cb,align 4
%cg=load i8*,i8**%k,align 8
%ch=getelementptr inbounds i8,i8*%ca,i64 8
%ci=bitcast i8*%ch to i8**
store i8*%cg,i8**%ci,align 8
%cj=getelementptr inbounds i8,i8*%ca,i64 16
%ck=bitcast i8*%cj to i32*
store i32 2,i32*%ck,align 4
%cl=load i8*,i8**%e,align 8
%cm=bitcast i8*%cl to i8**
call void@sml_write(i8*inreg%cl,i8**inreg%cm,i8*inreg%ca)#0
%cn=load i8*,i8**%d,align 8
ret i8*%cn
co:
%cp=phi i8*[%ao,%as],[%ao,%am],[%t,%y],[%t,%s]
ret i8*%cp
}
define internal fastcc i8*@_SMLLN16RenameLongsymbol24renameLongsymbolTfunSelfE_167(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*)*@_SMLLN16RenameLongsymbol24renameLongsymbolTfunSelfE_166 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*)*@_SMLLN16RenameLongsymbol24renameLongsymbolTfunSelfE_166 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*@_SMLLN16RenameLongsymbol24renameLongsymbolIdstatusE_170(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
p:
%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**%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
store i8*%a,i8**%c,align 8
store i8*%b,i8**%d,align 8
%j=load atomic i32,i32*@sml_check_flag unordered,align 4
%k=icmp eq i32%j,0
br i1%k,label%n,label%l
l:
call void@sml_check(i32 inreg%j)
%m=load i8*,i8**%d,align 8
br label%n
n:
%o=phi i8*[%m,%l],[%b,%p]
%q=bitcast i8*%o to i32*
%r=load i32,i32*%q,align 4
switch i32%r,label%s[
i32 12,label%K
i32 13,label%K
i32 6,label%cO
i32 7,label%K
i32 0,label%cc
i32 1,label%br
i32 4,label%aG
i32 5,label%L
i32 2,label%K
i32 3,label%K
i32 8,label%K
i32 11,label%K
i32 10,label%K
i32 9,label%K
]
s:
call void@sml_matchcomp_bug()
%t=load i8*,i8**@_SMLZ5Match,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,[80x i8]}>,<{[4x i8],i32,[80x i8]}>*@g,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:
ret i8*%o
L:
%M=getelementptr inbounds i8,i8*%o,i64 8
%N=bitcast i8*%M to i8**
%O=load i8*,i8**%N,align 8
%P=bitcast i8*%O to i8**
%Q=load i8*,i8**%P,align 8
store i8*%Q,i8**%d,align 8
%R=getelementptr inbounds i8,i8*%O,i64 8
%S=bitcast i8*%R to i32*
%T=load i32,i32*%S,align 4
%U=getelementptr inbounds i8,i8*%O,i64 16
%V=bitcast i8*%U to i8**
%W=load i8*,i8**%V,align 8
store i8*%W,i8**%e,align 8
%X=bitcast i8**%c to i8***
%Y=load i8**,i8***%X,align 8
store i8*null,i8**%c,align 8
%Z=load i8*,i8**%Y,align 8
%aa=getelementptr inbounds i8,i8*%O,i64 24
%ab=bitcast i8*%aa to i8**
%ac=load i8*,i8**%ab,align 8
%ad=call fastcc i8*@_SMLLN16RenameLongsymbol18renameLongsymbolTyE_155(i8*inreg%Z,i8*inreg%ac)
store i8*%ad,i8**%c,align 8
%ae=call i8*@sml_alloc(i32 inreg 36)#0
%af=getelementptr inbounds i8,i8*%ae,i64 -4
%ag=bitcast i8*%af to i32*
store i32 1342177312,i32*%ag,align 4
store i8*%ae,i8**%f,align 8
%ah=getelementptr inbounds i8,i8*%ae,i64 12
%ai=bitcast i8*%ah to i32*
store i32 0,i32*%ai,align 1
%aj=load i8*,i8**%d,align 8
%ak=bitcast i8*%ae to i8**
store i8*null,i8**%d,align 8
store i8*%aj,i8**%ak,align 8
%al=getelementptr inbounds i8,i8*%ae,i64 8
%am=bitcast i8*%al to i32*
store i32%T,i32*%am,align 4
%an=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%ao=getelementptr inbounds i8,i8*%ae,i64 16
%ap=bitcast i8*%ao to i8**
store i8*%an,i8**%ap,align 8
%aq=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ar=getelementptr inbounds i8,i8*%ae,i64 24
%as=bitcast i8*%ar to i8**
store i8*%aq,i8**%as,align 8
%at=getelementptr inbounds i8,i8*%ae,i64 32
%au=bitcast i8*%at to i32*
store i32 13,i32*%au,align 4
%av=call i8*@sml_alloc(i32 inreg 20)#0
%aw=bitcast i8*%av to i32*
%ax=getelementptr inbounds i8,i8*%av,i64 -4
%ay=bitcast i8*%ax to i32*
store i32 1342177296,i32*%ay,align 4
%az=getelementptr inbounds i8,i8*%av,i64 4
%aA=bitcast i8*%az to i32*
store i32 0,i32*%aA,align 1
store i32 5,i32*%aw,align 4
%aB=load i8*,i8**%f,align 8
%aC=getelementptr inbounds i8,i8*%av,i64 8
%aD=bitcast i8*%aC to i8**
store i8*%aB,i8**%aD,align 8
%aE=getelementptr inbounds i8,i8*%av,i64 16
%aF=bitcast i8*%aE to i32*
store i32 2,i32*%aF,align 4
ret i8*%av
aG:
%aH=getelementptr inbounds i8,i8*%o,i64 8
%aI=bitcast i8*%aH to i8**
%aJ=load i8*,i8**%aI,align 8
%aK=bitcast i8*%aJ to i8**
%aL=load i8*,i8**%aK,align 8
store i8*%aL,i8**%d,align 8
%aM=getelementptr inbounds i8,i8*%aJ,i64 8
%aN=bitcast i8*%aM to i32*
%aO=load i32,i32*%aN,align 4
%aP=getelementptr inbounds i8,i8*%aJ,i64 16
%aQ=bitcast i8*%aP to i8**
%aR=load i8*,i8**%aQ,align 8
store i8*%aR,i8**%e,align 8
%aS=bitcast i8**%c to i8***
%aT=load i8**,i8***%aS,align 8
store i8*null,i8**%c,align 8
%aU=load i8*,i8**%aT,align 8
%aV=getelementptr inbounds i8,i8*%aJ,i64 24
%aW=bitcast i8*%aV to i8**
%aX=load i8*,i8**%aW,align 8
%aY=call fastcc i8*@_SMLLN16RenameLongsymbol18renameLongsymbolTyE_155(i8*inreg%aU,i8*inreg%aX)
store i8*%aY,i8**%c,align 8
%aZ=call i8*@sml_alloc(i32 inreg 36)#0
%a0=getelementptr inbounds i8,i8*%aZ,i64 -4
%a1=bitcast i8*%a0 to i32*
store i32 1342177312,i32*%a1,align 4
store i8*%aZ,i8**%f,align 8
%a2=getelementptr inbounds i8,i8*%aZ,i64 12
%a3=bitcast i8*%a2 to i32*
store i32 0,i32*%a3,align 1
%a4=load i8*,i8**%d,align 8
%a5=bitcast i8*%aZ to i8**
store i8*null,i8**%d,align 8
store i8*%a4,i8**%a5,align 8
%a6=getelementptr inbounds i8,i8*%aZ,i64 8
%a7=bitcast i8*%a6 to i32*
store i32%aO,i32*%a7,align 4
%a8=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%a9=getelementptr inbounds i8,i8*%aZ,i64 16
%ba=bitcast i8*%a9 to i8**
store i8*%a8,i8**%ba,align 8
%bb=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bc=getelementptr inbounds i8,i8*%aZ,i64 24
%bd=bitcast i8*%bc to i8**
store i8*%bb,i8**%bd,align 8
%be=getelementptr inbounds i8,i8*%aZ,i64 32
%bf=bitcast i8*%be to i32*
store i32 13,i32*%bf,align 4
%bg=call i8*@sml_alloc(i32 inreg 20)#0
%bh=bitcast i8*%bg to i32*
%bi=getelementptr inbounds i8,i8*%bg,i64 -4
%bj=bitcast i8*%bi to i32*
store i32 1342177296,i32*%bj,align 4
%bk=getelementptr inbounds i8,i8*%bg,i64 4
%bl=bitcast i8*%bk to i32*
store i32 0,i32*%bl,align 1
store i32 4,i32*%bh,align 4
%bm=load i8*,i8**%f,align 8
%bn=getelementptr inbounds i8,i8*%bg,i64 8
%bo=bitcast i8*%bn to i8**
store i8*%bm,i8**%bo,align 8
%bp=getelementptr inbounds i8,i8*%bg,i64 16
%bq=bitcast i8*%bp to i32*
store i32 2,i32*%bq,align 4
ret i8*%bg
br:
%bs=getelementptr inbounds i8,i8*%o,i64 8
%bt=bitcast i8*%bs to i8**
%bu=load i8*,i8**%bt,align 8
%bv=bitcast i8*%bu to i8**
%bw=load i8*,i8**%bv,align 8
store i8*%bw,i8**%d,align 8
%bx=getelementptr inbounds i8,i8*%bu,i64 8
%by=bitcast i8*%bx to i32*
%bz=load i32,i32*%by,align 4
%bA=getelementptr inbounds i8,i8*%bu,i64 16
%bB=bitcast i8*%bA to i8**
%bC=load i8*,i8**%bB,align 8
store i8*%bC,i8**%e,align 8
%bD=bitcast i8**%c to i8***
%bE=load i8**,i8***%bD,align 8
store i8*null,i8**%c,align 8
%bF=load i8*,i8**%bE,align 8
%bG=getelementptr inbounds i8,i8*%bu,i64 24
%bH=bitcast i8*%bG to i8**
%bI=load i8*,i8**%bH,align 8
%bJ=call fastcc i8*@_SMLLN16RenameLongsymbol18renameLongsymbolTyE_155(i8*inreg%bF,i8*inreg%bI)
store i8*%bJ,i8**%c,align 8
%bK=call i8*@sml_alloc(i32 inreg 36)#0
%bL=getelementptr inbounds i8,i8*%bK,i64 -4
%bM=bitcast i8*%bL to i32*
store i32 1342177312,i32*%bM,align 4
store i8*%bK,i8**%f,align 8
%bN=getelementptr inbounds i8,i8*%bK,i64 12
%bO=bitcast i8*%bN to i32*
store i32 0,i32*%bO,align 1
%bP=load i8*,i8**%d,align 8
%bQ=bitcast i8*%bK to i8**
store i8*null,i8**%d,align 8
store i8*%bP,i8**%bQ,align 8
%bR=getelementptr inbounds i8,i8*%bK,i64 8
%bS=bitcast i8*%bR to i32*
store i32%bz,i32*%bS,align 4
%bT=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%bU=getelementptr inbounds i8,i8*%bK,i64 16
%bV=bitcast i8*%bU to i8**
store i8*%bT,i8**%bV,align 8
%bW=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bX=getelementptr inbounds i8,i8*%bK,i64 24
%bY=bitcast i8*%bX to i8**
store i8*%bW,i8**%bY,align 8
%bZ=getelementptr inbounds i8,i8*%bK,i64 32
%b0=bitcast i8*%bZ to i32*
store i32 13,i32*%b0,align 4
%b1=call i8*@sml_alloc(i32 inreg 20)#0
%b2=bitcast i8*%b1 to i32*
%b3=getelementptr inbounds i8,i8*%b1,i64 -4
%b4=bitcast i8*%b3 to i32*
store i32 1342177296,i32*%b4,align 4
%b5=getelementptr inbounds i8,i8*%b1,i64 4
%b6=bitcast i8*%b5 to i32*
store i32 0,i32*%b6,align 1
store i32 1,i32*%b2,align 4
%b7=load i8*,i8**%f,align 8
%b8=getelementptr inbounds i8,i8*%b1,i64 8
%b9=bitcast i8*%b8 to i8**
store i8*%b7,i8**%b9,align 8
%ca=getelementptr inbounds i8,i8*%b1,i64 16
%cb=bitcast i8*%ca to i32*
store i32 2,i32*%cb,align 4
ret i8*%b1
cc:
%cd=getelementptr inbounds i8,i8*%o,i64 8
%ce=bitcast i8*%cd to i8**
%cf=load i8*,i8**%ce,align 8
%cg=bitcast i8*%cf to i8**
%ch=load i8*,i8**%cg,align 8
store i8*%ch,i8**%d,align 8
%ci=getelementptr inbounds i8,i8*%cf,i64 8
%cj=bitcast i8*%ci to i8**
%ck=load i8*,i8**%cj,align 8
store i8*%ck,i8**%e,align 8
%cl=bitcast i8**%c to i8***
%cm=load i8**,i8***%cl,align 8
store i8*null,i8**%c,align 8
%cn=load i8*,i8**%cm,align 8
%co=getelementptr inbounds i8,i8*%cf,i64 16
%cp=bitcast i8*%co to i8**
%cq=load i8*,i8**%cp,align 8
%cr=call fastcc i8*@_SMLLN16RenameLongsymbol18renameLongsymbolTyE_155(i8*inreg%cn,i8*inreg%cq)
store i8*%cr,i8**%c,align 8
%cs=call i8*@sml_alloc(i32 inreg 28)#0
%ct=getelementptr inbounds i8,i8*%cs,i64 -4
%cu=bitcast i8*%ct to i32*
store i32 1342177304,i32*%cu,align 4
store i8*%cs,i8**%f,align 8
%cv=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%cw=bitcast i8*%cs to i8**
store i8*%cv,i8**%cw,align 8
%cx=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%cy=getelementptr inbounds i8,i8*%cs,i64 8
%cz=bitcast i8*%cy to i8**
store i8*%cx,i8**%cz,align 8
%cA=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%cB=getelementptr inbounds i8,i8*%cs,i64 16
%cC=bitcast i8*%cB to i8**
store i8*%cA,i8**%cC,align 8
%cD=getelementptr inbounds i8,i8*%cs,i64 24
%cE=bitcast i8*%cD to i32*
store i32 7,i32*%cE,align 4
%cF=call i8*@sml_alloc(i32 inreg 20)#0
%cG=getelementptr inbounds i8,i8*%cF,i64 -4
%cH=bitcast i8*%cG to i32*
store i32 1342177296,i32*%cH,align 4
%cI=bitcast i8*%cF to i64*
store i64 0,i64*%cI,align 4
%cJ=load i8*,i8**%f,align 8
%cK=getelementptr inbounds i8,i8*%cF,i64 8
%cL=bitcast i8*%cK to i8**
store i8*%cJ,i8**%cL,align 8
%cM=getelementptr inbounds i8,i8*%cF,i64 16
%cN=bitcast i8*%cM to i32*
store i32 2,i32*%cN,align 4
ret i8*%cF
cO:
%cP=getelementptr inbounds i8,i8*%o,i64 8
%cQ=bitcast i8*%cP to i8**
%cR=load i8*,i8**%cQ,align 8
%cS=bitcast i8*%cR to i8**
%cT=load i8*,i8**%cS,align 8
store i8*%cT,i8**%e,align 8
%cU=getelementptr inbounds i8,i8*%cR,i64 8
%cV=bitcast i8*%cU to i8***
%cW=load i8**,i8***%cV,align 8
%cX=load i8*,i8**%cW,align 8
store i8*%cX,i8**%f,align 8
%cY=getelementptr inbounds i8*,i8**%cW,i64 2
%cZ=load i8*,i8**%cY,align 8
store i8*%cZ,i8**%g,align 8
%c0=getelementptr inbounds i8*,i8**%cW,i64 3
%c1=load i8*,i8**%c0,align 8
store i8*%c1,i8**%h,align 8
%c2=getelementptr inbounds i8,i8*%cR,i64 16
%c3=bitcast i8*%c2 to i8**
%c4=load i8*,i8**%c3,align 8
store i8*%c4,i8**%i,align 8
%c5=bitcast i8**%c to i8***
%c6=load i8**,i8***%c5,align 8
store i8*null,i8**%c,align 8
%c7=load i8*,i8**%c6,align 8
%c8=getelementptr inbounds i8*,i8**%cW,i64 1
%c9=load i8*,i8**%c8,align 8
%da=call fastcc i8*@_SMLLN16RenameLongsymbol18renameLongsymbolTyE_155(i8*inreg%c7,i8*inreg%c9)
store i8*%da,i8**%c,align 8
%db=call i8*@sml_alloc(i32 inreg 36)#0
%dc=getelementptr inbounds i8,i8*%db,i64 -4
%dd=bitcast i8*%dc to i32*
store i32 1342177312,i32*%dd,align 4
store i8*%db,i8**%d,align 8
%de=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%df=bitcast i8*%db to i8**
store i8*%de,i8**%df,align 8
%dg=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%dh=getelementptr inbounds i8,i8*%db,i64 8
%di=bitcast i8*%dh to i8**
store i8*%dg,i8**%di,align 8
%dj=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%dk=getelementptr inbounds i8,i8*%db,i64 16
%dl=bitcast i8*%dk to i8**
store i8*%dj,i8**%dl,align 8
%dm=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%dn=getelementptr inbounds i8,i8*%db,i64 24
%do=bitcast i8*%dn to i8**
store i8*%dm,i8**%do,align 8
%dp=getelementptr inbounds i8,i8*%db,i64 32
%dq=bitcast i8*%dp to i32*
store i32 15,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**%c,align 8
%du=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%dv=bitcast i8*%dr to i8**
store i8*%du,i8**%dv,align 8
%dw=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%dx=getelementptr inbounds i8,i8*%dr,i64 8
%dy=bitcast i8*%dx to i8**
store i8*%dw,i8**%dy,align 8
%dz=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%dA=getelementptr inbounds i8,i8*%dr,i64 16
%dB=bitcast i8*%dA to i8**
store i8*%dz,i8**%dB,align 8
%dC=getelementptr inbounds i8,i8*%dr,i64 24
%dD=bitcast i8*%dC to i32*
store i32 7,i32*%dD,align 4
%dE=call i8*@sml_alloc(i32 inreg 20)#0
%dF=bitcast i8*%dE to i32*
%dG=getelementptr inbounds i8,i8*%dE,i64 -4
%dH=bitcast i8*%dG to i32*
store i32 1342177296,i32*%dH,align 4
%dI=getelementptr inbounds i8,i8*%dE,i64 4
%dJ=bitcast i8*%dI to i32*
store i32 0,i32*%dJ,align 1
store i32 6,i32*%dF,align 4
%dK=load i8*,i8**%c,align 8
%dL=getelementptr inbounds i8,i8*%dE,i64 8
%dM=bitcast i8*%dL to i8**
store i8*%dK,i8**%dM,align 8
%dN=getelementptr inbounds i8,i8*%dE,i64 16
%dO=bitcast i8*%dN to i32*
store i32 2,i32*%dO,align 4
ret i8*%dE
}
define fastcc i8*@_SMLFN16RenameLongsymbol24renameLongsymbolIdstatusE(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(i8*(i8*,i8*)*@_SMLLN16RenameLongsymbol24renameLongsymbolIdstatusE_170 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*)*@_SMLLN16RenameLongsymbol24renameLongsymbolIdstatusE_170 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*@_SMLLN16RenameLongsymbol23renameLongsymbolConSpecE_173(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**%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%i,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%d,align 8
br label%i
i:
%j=phi i8*[%h,%g],[%b,%k]
store i8*null,i8**%d,align 8
%l=icmp eq i8*%j,null
br i1%l,label%m,label%n
m:
ret i8*null
n:
%o=bitcast i8*%j to i8**
%p=load i8*,i8**%o,align 8
%q=bitcast i8**%c to i8***
%r=load i8**,i8***%q,align 8
store i8*null,i8**%c,align 8
%s=load i8*,i8**%r,align 8
%t=call fastcc i8*@_SMLLN16RenameLongsymbol18renameLongsymbolTyE_155(i8*inreg%s,i8*inreg%p)
store i8*%t,i8**%c,align 8
%u=call i8*@sml_alloc(i32 inreg 12)#0
%v=getelementptr inbounds i8,i8*%u,i64 -4
%w=bitcast i8*%v to i32*
store i32 1342177288,i32*%w,align 4
%x=load i8*,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 i32*
store i32 1,i32*%A,align 4
ret i8*%u
}
define internal fastcc i8*@_SMLLN16RenameLongsymbol23renameLongsymbolConSpecE_174(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**%c,align 8
store i8*%b,i8**%d,align 8
%g=load atomic i32,i32*@sml_check_flag unordered,align 4
%h=icmp eq i32%g,0
br i1%h,label%j,label%i
i:
call void@sml_check(i32 inreg%g)
br label%j
j:
%k=call fastcc i8*@_SMLFN9SymbolEnv3mapE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%l=getelementptr inbounds i8,i8*%k,i64 16
%m=bitcast i8*%l to i8*(i8*,i8*)**
%n=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%m,align 8
%o=bitcast i8*%k to i8**
%p=load i8*,i8**%o,align 8
store i8*%p,i8**%e,align 8
%q=bitcast i8**%c to i8***
%r=load i8**,i8***%q,align 8
%s=load i8*,i8**%r,align 8
store i8*%s,i8**%c,align 8
%t=call i8*@sml_alloc(i32 inreg 12)#0
%u=getelementptr inbounds i8,i8*%t,i64 -4
%v=bitcast i8*%u to i32*
store i32 1342177288,i32*%v,align 4
store i8*%t,i8**%f,align 8
%w=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%x=bitcast i8*%t to i8**
store i8*%w,i8**%x,align 8
%y=getelementptr inbounds i8,i8*%t,i64 8
%z=bitcast i8*%y to i32*
store i32 1,i32*%z,align 4
%A=call i8*@sml_alloc(i32 inreg 28)#0
%B=getelementptr inbounds i8,i8*%A,i64 -4
%C=bitcast i8*%B to i32*
store i32 1342177304,i32*%C,align 4
%D=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%E=bitcast i8*%A to i8**
store i8*%D,i8**%E,align 8
%F=getelementptr inbounds i8,i8*%A,i64 8
%G=bitcast i8*%F to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN16RenameLongsymbol23renameLongsymbolConSpecE_173 to void(...)*),void(...)**%G,align 8
%H=getelementptr inbounds i8,i8*%A,i64 16
%I=bitcast i8*%H to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN16RenameLongsymbol23renameLongsymbolConSpecE_173 to void(...)*),void(...)**%I,align 8
%J=getelementptr inbounds i8,i8*%A,i64 24
%K=bitcast i8*%J to i32*
store i32 -2147483647,i32*%K,align 4
%L=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%M=call fastcc i8*%n(i8*inreg%L,i8*inreg%A)
%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**%d,align 8
%T=tail call fastcc i8*%P(i8*inreg%R,i8*inreg%S)
ret i8*%T
}
define internal fastcc i8*@_SMLLN16RenameLongsymbol20renameLongsymbolTstrE_178(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
q:
%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**%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
store i8*%a,i8**%j,align 8
store i8*%b,i8**%e,align 8
%k=load atomic i32,i32*@sml_check_flag unordered,align 4
%l=icmp eq i32%k,0
br i1%l,label%o,label%m
m:
call void@sml_check(i32 inreg%k)
%n=load i8*,i8**%e,align 8
br label%o
o:
%p=phi i8*[%n,%m],[%b,%q]
%r=bitcast i8*%p to i32*
%s=load i32,i32*%r,align 4
switch i32%s,label%t[
i32 0,label%by
i32 1,label%L
]
t:
store i8*null,i8**%j,align 8
call void@sml_matchcomp_bug()
%u=load i8*,i8**@_SMLZ5Match,align 8
store i8*%u,i8**%e,align 8
%v=call i8*@sml_alloc(i32 inreg 20)#0
%w=getelementptr inbounds i8,i8*%v,i64 -4
%x=bitcast i8*%w to i32*
store i32 1342177296,i32*%x,align 4
store i8*%v,i8**%f,align 8
%y=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%z=bitcast i8*%v to i8**
store i8*%y,i8**%z,align 8
%A=getelementptr inbounds i8,i8*%v,i64 8
%B=bitcast i8*%A to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[81x i8]}>,<{[4x i8],i32,[81x i8]}>*@i,i64 0,i32 2,i64 0),i8**%B,align 8
%C=getelementptr inbounds i8,i8*%v,i64 16
%D=bitcast i8*%C to i32*
store i32 3,i32*%D,align 4
%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**%f,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=getelementptr inbounds i8,i8*%p,i64 8
%N=bitcast i8*%M to i8**
%O=load i8*,i8**%N,align 8
store i8*%O,i8**%g,align 8
%P=getelementptr inbounds i8,i8*%O,i64 8
%Q=bitcast i8*%P to i8**
%R=load i8*,i8**%Q,align 8
store i8*%R,i8**%h,align 8
%S=getelementptr inbounds i8,i8*%O,i64 16
%T=bitcast i8*%S to i8**
%U=load i8*,i8**%T,align 8
store i8*%U,i8**%i,align 8
%V=bitcast i8**%j to i8***
%W=load i8**,i8***%V,align 8
%X=load i8*,i8**%W,align 8
%Y=call fastcc i8*@_SMLLN16RenameLongsymbol24renameLongsymbolTfunSelfE_167(i8*inreg%X)
%Z=getelementptr inbounds i8,i8*%Y,i64 16
%aa=bitcast i8*%Z to i8*(i8*,i8*)**
%ab=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aa,align 8
%ac=bitcast i8*%Y to i8**
%ad=load i8*,i8**%ac,align 8
%ae=load i8*,i8**%g,align 8
%af=getelementptr inbounds i8,i8*%ae,i64 24
%ag=bitcast i8*%af to i8**
%ah=load i8*,i8**%ag,align 8
%ai=call fastcc i8*%ab(i8*inreg%ad,i8*inreg%ah)
store i8*%ai,i8**%e,align 8
%aj=call fastcc i8*@_SMLFN9SymbolEnv3mapE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%ak=getelementptr inbounds i8,i8*%aj,i64 16
%al=bitcast i8*%ak to i8*(i8*,i8*)**
%am=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%al,align 8
%an=bitcast i8*%aj to i8**
%ao=load i8*,i8**%an,align 8
store i8*%ao,i8**%f,align 8
%ap=load i8**,i8***%V,align 8
%aq=load i8*,i8**%ap,align 8
%ar=call fastcc i8*@_SMLFN16RenameLongsymbol24renameLongsymbolIdstatusE(i8*inreg%aq)
%as=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%at=call fastcc i8*%am(i8*inreg%as,i8*inreg%ar)
%au=getelementptr inbounds i8,i8*%at,i64 16
%av=bitcast i8*%au to i8*(i8*,i8*)**
%aw=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%av,align 8
%ax=bitcast i8*%at to i8**
%ay=load i8*,i8**%ax,align 8
%az=load i8*,i8**%g,align 8
%aA=getelementptr inbounds i8,i8*%az,i64 32
%aB=bitcast i8*%aA to i8**
%aC=load i8*,i8**%aB,align 8
%aD=call fastcc i8*%aw(i8*inreg%ay,i8*inreg%aC)
store i8*%aD,i8**%f,align 8
%aE=load i8**,i8***%V,align 8
store i8*null,i8**%j,align 8
%aF=load i8*,i8**%aE,align 8
%aG=bitcast i8**%c to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%aG)
%aH=bitcast i8**%d to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%aH)
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%aF,i8**%c,align 8
%aI=call i8*@sml_alloc(i32 inreg 12)#0
%aJ=getelementptr inbounds i8,i8*%aI,i64 -4
%aK=bitcast i8*%aJ to i32*
store i32 1342177288,i32*%aK,align 4
store i8*%aI,i8**%d,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 i32*
store i32 1,i32*%aO,align 4
%aP=call i8*@sml_alloc(i32 inreg 28)#0
%aQ=getelementptr inbounds i8,i8*%aP,i64 -4
%aR=bitcast i8*%aQ to i32*
store i32 1342177304,i32*%aR,align 4
%aS=load i8*,i8**%d,align 8
%aT=bitcast i8*%aP to i8**
store i8*%aS,i8**%aT,align 8
%aU=getelementptr inbounds i8,i8*%aP,i64 8
%aV=bitcast i8*%aU to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN16RenameLongsymbol23renameLongsymbolConSpecE_174 to void(...)*),void(...)**%aV,align 8
%aW=getelementptr inbounds i8,i8*%aP,i64 16
%aX=bitcast i8*%aW to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN16RenameLongsymbol23renameLongsymbolConSpecE_174 to void(...)*),void(...)**%aX,align 8
%aY=getelementptr inbounds i8,i8*%aP,i64 24
%aZ=bitcast i8*%aY to i32*
store i32 -2147483647,i32*%aZ,align 4
call void@llvm.lifetime.end.p0i8(i64 8,i8*%aG)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%aH)
%a0=bitcast i8**%g to i8***
%a1=load i8**,i8***%a0,align 8
store i8*null,i8**%g,align 8
%a2=load i8*,i8**%a1,align 8
%a3=call fastcc i8*@_SMLLN16RenameLongsymbol23renameLongsymbolConSpecE_174(i8*inreg%aS,i8*inreg%a2)
store i8*%a3,i8**%g,align 8
%a4=call i8*@sml_alloc(i32 inreg 44)#0
%a5=getelementptr inbounds i8,i8*%a4,i64 -4
%a6=bitcast i8*%a5 to i32*
store i32 1342177320,i32*%a6,align 4
store i8*%a4,i8**%j,align 8
%a7=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%a8=bitcast i8*%a4 to i8**
store i8*%a7,i8**%a8,align 8
%a9=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%ba=getelementptr inbounds i8,i8*%a4,i64 8
%bb=bitcast i8*%ba to i8**
store i8*%a9,i8**%bb,align 8
%bc=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%bd=getelementptr inbounds i8,i8*%a4,i64 16
%be=bitcast i8*%bd to i8**
store i8*%bc,i8**%be,align 8
%bf=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%bg=getelementptr inbounds i8,i8*%a4,i64 24
%bh=bitcast i8*%bg to i8**
store i8*%bf,i8**%bh,align 8
%bi=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%bj=getelementptr inbounds i8,i8*%a4,i64 32
%bk=bitcast i8*%bj to i8**
store i8*%bi,i8**%bk,align 8
%bl=getelementptr inbounds i8,i8*%a4,i64 40
%bm=bitcast i8*%bl to i32*
store i32 31,i32*%bm,align 4
%bn=call i8*@sml_alloc(i32 inreg 20)#0
%bo=bitcast i8*%bn to i32*
%bp=getelementptr inbounds i8,i8*%bn,i64 -4
%bq=bitcast i8*%bp to i32*
store i32 1342177296,i32*%bq,align 4
%br=getelementptr inbounds i8,i8*%bn,i64 4
%bs=bitcast i8*%br to i32*
store i32 0,i32*%bs,align 1
store i32 1,i32*%bo,align 4
%bt=load i8*,i8**%j,align 8
%bu=getelementptr inbounds i8,i8*%bn,i64 8
%bv=bitcast i8*%bu to i8**
store i8*%bt,i8**%bv,align 8
%bw=getelementptr inbounds i8,i8*%bn,i64 16
%bx=bitcast i8*%bw to i32*
store i32 2,i32*%bx,align 4
ret i8*%bn
by:
%bz=getelementptr inbounds i8,i8*%p,i64 8
%bA=bitcast i8*%bz to i8**
%bB=load i8*,i8**%bA,align 8
store i8*%bB,i8**%e,align 8
%bC=bitcast i8*%bB to i8**
%bD=load i8*,i8**%bC,align 8
store i8*%bD,i8**%f,align 8
%bE=bitcast i8**%j to i8***
%bF=load i8**,i8***%bE,align 8
store i8*null,i8**%j,align 8
%bG=load i8*,i8**%bF,align 8
%bH=call fastcc i8*@_SMLLN16RenameLongsymbol24renameLongsymbolTfunSelfE_167(i8*inreg%bG)
%bI=getelementptr inbounds i8,i8*%bH,i64 16
%bJ=bitcast i8*%bI to i8*(i8*,i8*)**
%bK=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bJ,align 8
%bL=bitcast i8*%bH to i8**
%bM=load i8*,i8**%bL,align 8
%bN=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%bO=getelementptr inbounds i8,i8*%bN,i64 8
%bP=bitcast i8*%bO to i8**
%bQ=load i8*,i8**%bP,align 8
%bR=call fastcc i8*%bK(i8*inreg%bM,i8*inreg%bQ)
store i8*%bR,i8**%e,align 8
%bS=call i8*@sml_alloc(i32 inreg 20)#0
%bT=getelementptr inbounds i8,i8*%bS,i64 -4
%bU=bitcast i8*%bT to i32*
store i32 1342177296,i32*%bU,align 4
store i8*%bS,i8**%g,align 8
%bV=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%bW=bitcast i8*%bS to i8**
store i8*%bV,i8**%bW,align 8
%bX=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%bY=getelementptr inbounds i8,i8*%bS,i64 8
%bZ=bitcast i8*%bY to i8**
store i8*%bX,i8**%bZ,align 8
%b0=getelementptr inbounds i8,i8*%bS,i64 16
%b1=bitcast i8*%b0 to i32*
store i32 3,i32*%b1,align 4
%b2=call i8*@sml_alloc(i32 inreg 20)#0
%b3=getelementptr inbounds i8,i8*%b2,i64 -4
%b4=bitcast i8*%b3 to i32*
store i32 1342177296,i32*%b4,align 4
%b5=bitcast i8*%b2 to i64*
store i64 0,i64*%b5,align 4
%b6=load i8*,i8**%g,align 8
%b7=getelementptr inbounds i8,i8*%b2,i64 8
%b8=bitcast i8*%b7 to i8**
store i8*%b6,i8**%b8,align 8
%b9=getelementptr inbounds i8,i8*%b2,i64 16
%ca=bitcast i8*%b9 to i32*
store i32 2,i32*%ca,align 4
ret i8*%b2
}
define internal fastcc i8*@_SMLLN16RenameLongsymbol19renameLomgsymbolEnvE_184(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**%d,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%l
i:
%j=bitcast i8*%a to i8**
%k=bitcast i8*%b to i8**
br label%r
l:
call void@sml_check(i32 inreg%g)
%m=bitcast i8**%c to i8***
%n=load i8**,i8***%m,align 8
%o=bitcast i8**%d to i8***
%p=load i8**,i8***%o,align 8
%q=bitcast i8**%n to i8*
br label%r
r:
%s=phi i8*[%q,%l],[%b,%i]
%t=phi i8**[%p,%l],[%j,%i]
%u=phi i8**[%n,%l],[%k,%i]
%v=load i8*,i8**%u,align 8
store i8*%v,i8**%e,align 8
store i8*null,i8**%d,align 8
%w=load i8*,i8**%t,align 8
%x=getelementptr inbounds i8,i8*%s,i64 8
%y=bitcast i8*%x to i8**
%z=load i8*,i8**%y,align 8
%A=call fastcc i8*@_SMLLN16RenameLongsymbol19renameLomgsymbolEnvE_181(i8*inreg%w,i8*inreg%z)
store i8*%A,i8**%d,align 8
%B=load i8*,i8**%c,align 8
%C=getelementptr inbounds i8,i8*%B,i64 16
%D=bitcast i8*%C to i8**
%E=load i8*,i8**%D,align 8
store i8*%E,i8**%f,align 8
%F=getelementptr inbounds i8,i8*%B,i64 24
%G=bitcast i8*%F to i8**
%H=load i8*,i8**%G,align 8
store i8*%H,i8**%c,align 8
%I=call i8*@sml_alloc(i32 inreg 36)#0
%J=getelementptr inbounds i8,i8*%I,i64 -4
%K=bitcast i8*%J to i32*
store i32 1342177312,i32*%K,align 4
%L=load i8*,i8**%e,align 8
%M=bitcast i8*%I to i8**
store i8*%L,i8**%M,align 8
%N=load i8*,i8**%d,align 8
%O=getelementptr inbounds i8,i8*%I,i64 8
%P=bitcast i8*%O to i8**
store i8*%N,i8**%P,align 8
%Q=load i8*,i8**%f,align 8
%R=getelementptr inbounds i8,i8*%I,i64 16
%S=bitcast i8*%R to i8**
store i8*%Q,i8**%S,align 8
%T=load i8*,i8**%c,align 8
%U=getelementptr inbounds i8,i8*%I,i64 24
%V=bitcast i8*%U to i8**
store i8*%T,i8**%V,align 8
%W=getelementptr inbounds i8,i8*%I,i64 32
%X=bitcast i8*%W to i32*
store i32 15,i32*%X,align 4
ret i8*%I
}
define internal fastcc i8*@_SMLLN16RenameLongsymbol19renameLomgsymbolEnvE_181(i8*inreg%a,i8*inreg%b)unnamed_addr#2 gc"smlsharp"{
q:
%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**%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
store i8*%a,i8**%g,align 8
store i8*%b,i8**%e,align 8
%k=load atomic i32,i32*@sml_check_flag unordered,align 4
%l=icmp eq i32%k,0
br i1%l,label%o,label%m
m:
call void@sml_check(i32 inreg%k)
%n=load i8*,i8**%e,align 8
br label%o
o:
%p=phi i8*[%n,%m],[%b,%q]
store i8*null,i8**%e,align 8
store i8*%p,i8**%f,align 8
%r=bitcast i8*%p to i8**
%s=load i8*,i8**%r,align 8
store i8*%s,i8**%i,align 8
%t=call fastcc i8*@_SMLFN9SymbolEnv3mapE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 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**%e,align 8
%z=load i8*,i8**%g,align 8
%A=call fastcc i8*@_SMLFN16RenameLongsymbol24renameLongsymbolIdstatusE(i8*inreg%z)
%B=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%C=call fastcc i8*%w(i8*inreg%B,i8*inreg%A)
%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
%I=load i8*,i8**%f,align 8
%J=getelementptr inbounds i8,i8*%I,i64 16
%K=bitcast i8*%J to i8**
%L=load i8*,i8**%K,align 8
%M=call fastcc i8*%F(i8*inreg%H,i8*inreg%L)
store i8*%M,i8**%e,align 8
%N=call fastcc i8*@_SMLFN9SymbolEnv3mapE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 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**%h,align 8
%T=load i8*,i8**%g,align 8
%U=bitcast i8**%c to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%U)
%V=bitcast i8**%d to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%V)
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%T,i8**%c,align 8
%W=call i8*@sml_alloc(i32 inreg 12)#0
%X=getelementptr inbounds i8,i8*%W,i64 -4
%Y=bitcast i8*%X to i32*
store i32 1342177288,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
%aa=bitcast i8*%W to i8**
store i8*%Z,i8**%aa,align 8
%ab=getelementptr inbounds i8,i8*%W,i64 8
%ac=bitcast i8*%ab to i32*
store i32 1,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*)*@_SMLLN16RenameLongsymbol20renameLongsymbolTstrE_178 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*)*@_SMLLN16RenameLongsymbol20renameLongsymbolTstrE_178 to void(...)*),void(...)**%al,align 8
%am=getelementptr inbounds i8,i8*%ad,i64 24
%an=bitcast i8*%am to i32*
store i32 -2147483647,i32*%an,align 4
call void@llvm.lifetime.end.p0i8(i64 8,i8*%U)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%V)
%ao=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%ap=call fastcc i8*%Q(i8*inreg%ao,i8*inreg%ad)
%aq=getelementptr inbounds i8,i8*%ap,i64 16
%ar=bitcast i8*%aq to i8*(i8*,i8*)**
%as=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%ar,align 8
%at=bitcast i8*%ap to i8**
%au=load i8*,i8**%at,align 8
%av=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%aw=getelementptr inbounds i8,i8*%av,i64 8
%ax=bitcast i8*%aw to i8**
%ay=load i8*,i8**%ax,align 8
%az=call fastcc i8*%as(i8*inreg%au,i8*inreg%ay)
store i8*%az,i8**%f,align 8
%aA=call fastcc i8*@_SMLFN9SymbolEnv3mapE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%aB=getelementptr inbounds i8,i8*%aA,i64 16
%aC=bitcast i8*%aB to i8*(i8*,i8*)**
%aD=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aC,align 8
%aE=bitcast i8*%aA to i8**
%aF=load i8*,i8**%aE,align 8
store i8*%aF,i8**%h,align 8
%aG=call i8*@sml_alloc(i32 inreg 12)#0
%aH=getelementptr inbounds i8,i8*%aG,i64 -4
%aI=bitcast i8*%aH to i32*
store i32 1342177288,i32*%aI,align 4
store i8*%aG,i8**%j,align 8
%aJ=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%aK=bitcast i8*%aG to i8**
store i8*%aJ,i8**%aK,align 8
%aL=getelementptr inbounds i8,i8*%aG,i64 8
%aM=bitcast i8*%aL to i32*
store i32 1,i32*%aM,align 4
%aN=call i8*@sml_alloc(i32 inreg 28)#0
%aO=getelementptr inbounds i8,i8*%aN,i64 -4
%aP=bitcast i8*%aO to i32*
store i32 1342177304,i32*%aP,align 4
%aQ=load i8*,i8**%j,align 8
store i8*null,i8**%j,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 void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN16RenameLongsymbol19renameLomgsymbolEnvE_184 to void(...)*),void(...)**%aT,align 8
%aU=getelementptr inbounds i8,i8*%aN,i64 16
%aV=bitcast i8*%aU to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN16RenameLongsymbol19renameLomgsymbolEnvE_184 to void(...)*),void(...)**%aV,align 8
%aW=getelementptr inbounds i8,i8*%aN,i64 24
%aX=bitcast i8*%aW to i32*
store i32 -2147483647,i32*%aX,align 4
%aY=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%aZ=call fastcc i8*%aD(i8*inreg%aY,i8*inreg%aN)
%a0=getelementptr inbounds i8,i8*%aZ,i64 16
%a1=bitcast i8*%a0 to i8*(i8*,i8*)**
%a2=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%a1,align 8
%a3=bitcast i8*%aZ to i8**
%a4=load i8*,i8**%a3,align 8
%a5=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%a6=call fastcc i8*%a2(i8*inreg%a4,i8*inreg%a5)
store i8*%a6,i8**%g,align 8
%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
%ba=load i8*,i8**%g,align 8
%bb=bitcast i8*%a7 to i8**
store i8*%ba,i8**%bb,align 8
%bc=load i8*,i8**%f,align 8
%bd=getelementptr inbounds i8,i8*%a7,i64 8
%be=bitcast i8*%bd to i8**
store i8*%bc,i8**%be,align 8
%bf=load i8*,i8**%e,align 8
%bg=getelementptr inbounds i8,i8*%a7,i64 16
%bh=bitcast i8*%bg to i8**
store i8*%bf,i8**%bh,align 8
%bi=getelementptr inbounds i8,i8*%a7,i64 24
%bj=bitcast i8*%bi to i32*
store i32 7,i32*%bj,align 4
ret i8*%a7
}
define internal fastcc i8*@_SMLLN16RenameLongsymbol22renameLomgsymbolTopEnvE_185(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**%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%h,label%j
h:
%i=bitcast i8*%a to i8**
br label%n
j:
call void@sml_check(i32 inreg%f)
%k=load i8*,i8**%d,align 8
%l=bitcast i8**%c to i8***
%m=load i8**,i8***%l,align 8
br label%n
n:
%o=phi i8**[%m,%j],[%i,%h]
%p=phi i8*[%k,%j],[%b,%h]
%q=getelementptr inbounds i8,i8*%p,i64 8
%r=bitcast i8*%q to i8**
%s=load i8*,i8**%r,align 8
store i8*%s,i8**%d,align 8
%t=getelementptr inbounds i8,i8*%p,i64 16
%u=bitcast i8*%t to i8**
%v=load i8*,i8**%u,align 8
store i8*%v,i8**%e,align 8
store i8*null,i8**%c,align 8
%w=load i8*,i8**%o,align 8
%x=bitcast i8*%p to i8**
%y=load i8*,i8**%x,align 8
%z=call fastcc i8*@_SMLLN16RenameLongsymbol19renameLomgsymbolEnvE_181(i8*inreg%w,i8*inreg%y)
store i8*%z,i8**%c,align 8
%A=call i8*@sml_alloc(i32 inreg 28)#0
%B=getelementptr inbounds i8,i8*%A,i64 -4
%C=bitcast i8*%B to i32*
store i32 1342177304,i32*%C,align 4
%D=load i8*,i8**%c,align 8
%E=bitcast i8*%A to i8**
store i8*%D,i8**%E,align 8
%F=load i8*,i8**%d,align 8
%G=getelementptr inbounds i8,i8*%A,i64 8
%H=bitcast i8*%G to i8**
store i8*%F,i8**%H,align 8
%I=load i8*,i8**%e,align 8
%J=getelementptr inbounds i8,i8*%A,i64 16
%K=bitcast i8*%J to i8**
store i8*%I,i8**%K,align 8
%L=getelementptr inbounds i8,i8*%A,i64 24
%M=bitcast i8*%L to i32*
store i32 7,i32*%M,align 4
ret i8*%A
}
define internal fastcc i8*@_SMLLN16RenameLongsymbol14replacePathEnvE_188(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
l:
%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%j,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%d,align 8
%i=load i8*,i8**%c,align 8
br label%j
j:
%k=phi i8*[%i,%g],[%a,%l]
%m=phi i8*[%h,%g],[%b,%l]
%n=bitcast i8*%k to i8**
%o=load i8*,i8**%n,align 8
%p=getelementptr inbounds i8,i8*%k,i64 8
%q=bitcast i8*%p to i8**
%r=load i8*,i8**%q,align 8
%s=tail call fastcc i8*@_SMLLN16RenameLongsymbol14replacePathEnvE_148(i8*inreg%o,i8*inreg%r,i8*inreg%m)
ret i8*%s
}
define internal fastcc i8*@_SMLLN16RenameLongsymbol14replacePathEnvE_189(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=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=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%n=getelementptr inbounds i8,i8*%h,i64 8
%o=bitcast i8*%n to i8**
store i8*%m,i8**%o,align 8
%p=getelementptr inbounds i8,i8*%h,i64 16
%q=bitcast i8*%p to i32*
store i32 3,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
%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(i8*(i8*,i8*)*@_SMLLN16RenameLongsymbol14replacePathEnvE_188 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*)*@_SMLLN16RenameLongsymbol14replacePathEnvE_188 to void(...)*),void(...)**%z,align 8
%A=getelementptr inbounds i8,i8*%r,i64 24
%B=bitcast i8*%A to i32*
store i32 -2147483647,i32*%B,align 4
ret i8*%r
}
define fastcc i8*@_SMLFN16RenameLongsymbol14replacePathEnvE(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(i8*(i8*,i8*)*@_SMLLN16RenameLongsymbol14replacePathEnvE_189 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*)*@_SMLLN16RenameLongsymbol14replacePathEnvE_189 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*@_SMLLN16RenameLongsymbol20renameLongsymbolVarEE_192(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**%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%i,label%h
h:
call void@sml_check(i32 inreg%f)
br label%i
i:
%j=call fastcc i8*@_SMLFN9SymbolEnv3mapE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 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
store i8*%o,i8**%e,align 8
%p=bitcast i8**%c to i8***
%q=load i8**,i8***%p,align 8
store i8*null,i8**%c,align 8
%r=load i8*,i8**%q,align 8
%s=call fastcc i8*@_SMLFN16RenameLongsymbol24renameLongsymbolIdstatusE(i8*inreg%r)
%t=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%u=call fastcc i8*%m(i8*inreg%t,i8*inreg%s)
%v=getelementptr inbounds i8,i8*%u,i64 16
%w=bitcast i8*%v to i8*(i8*,i8*)**
%x=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%w,align 8
%y=bitcast i8*%u to i8**
%z=load i8*,i8**%y,align 8
%A=load i8*,i8**%d,align 8
%B=tail call fastcc i8*%x(i8*inreg%z,i8*inreg%A)
ret i8*%B
}
define fastcc i8*@_SMLFN16RenameLongsymbol20renameLongsymbolVarEE(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(i8*(i8*,i8*)*@_SMLLN16RenameLongsymbol20renameLongsymbolVarEE_192 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*)*@_SMLLN16RenameLongsymbol20renameLongsymbolVarEE_192 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 i8*@_SMLFN16RenameLongsymbol22renameLomgsymbolTopEnvE(i8*inreg%a)#2 gc"smlsharp"{
k:
%b=alloca i8*,align 8
%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%i,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%d,align 8
br label%i
i:
%j=phi i8*[%h,%g],[%a,%k]
%l=bitcast i8**%b to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%l)
%m=bitcast i8**%c to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%m)
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%j,i8**%b,align 8
%n=call i8*@sml_alloc(i32 inreg 12)#0
%o=getelementptr inbounds i8,i8*%n,i64 -4
%p=bitcast i8*%o to i32*
store i32 1342177288,i32*%p,align 4
store i8*%n,i8**%c,align 8
%q=load i8*,i8**%b,align 8
store i8*null,i8**%b,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 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**%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 void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN16RenameLongsymbol22renameLomgsymbolTopEnvE_185 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*)*@_SMLLN16RenameLongsymbol22renameLomgsymbolTopEnvE_185 to void(...)*),void(...)**%C,align 8
%D=getelementptr inbounds i8,i8*%u,i64 24
%E=bitcast i8*%D to i32*
store i32 -2147483647,i32*%E,align 4
call void@llvm.lifetime.end.p0i8(i64 8,i8*%l)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%m)
ret i8*%u
}
define internal fastcc i8*@_SMLL6isSelf_197(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLL6isSelf_116(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*@_SMLLN16RenameLongsymbol21replaceLongsymbolTfunE_198(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN16RenameLongsymbol21replaceLongsymbolTfunE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLL6isSelf_199(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLL6isSelf_127(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*@_SMLLN16RenameLongsymbol15replacePathTfunE_200(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN16RenameLongsymbol15replacePathTfunE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLN16RenameLongsymbol24renameLongsymbolIdstatusE_207(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN16RenameLongsymbol24renameLongsymbolIdstatusE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLN16RenameLongsymbol14replacePathEnvE_212(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN16RenameLongsymbol14replacePathEnvE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLN16RenameLongsymbol20renameLongsymbolVarEE_213(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN16RenameLongsymbol20renameLongsymbolVarEE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLN16RenameLongsymbol22renameLomgsymbolTopEnvE_214(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN16RenameLongsymbol22renameLomgsymbolTopEnvE(i8*inreg%b)
ret i8*%c
}
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
attributes#0={nounwind}
attributes#1={noreturn}
attributes#2={uwtable}
attributes#3={noreturn nounwind}
attributes#4={nounwind uwtable}
