@sml_check_flag=external local_unnamed_addr global i32
@_SMLZN3Bug3BugE=external local_unnamed_addr global i8*
@_SMLZ5Match=external unnamed_addr constant i8*
@a=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLLN12OverloadKind14matchToKeyListE_78 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12OverloadKind14matchToKeyListE_118 to void(...)*),i32 -2147483647}>,align 8
@b=private unnamed_addr constant<{[4x i8],i32,[78x i8]}><{[4x i8]zeroinitializer,i32 -2147483570,[78x i8]c"src/compiler/compilePhases/recordcompilation/main/OverloadKind.sml:40.6(1163)\00"}>,align 8
@c=private unnamed_addr constant<{[4x i8],i32,[79x i8]}><{[4x i8]zeroinitializer,i32 -2147483569,[79x i8]c"src/compiler/compilePhases/recordcompilation/main/OverloadKind.sml:53.19(1788)\00"}>,align 8
@d=private unnamed_addr constant<{[4x i8],i32,[13x i8]}><{[4x i8]zeroinitializer,i32 -2147483635,[13x i8]c"compareKeyTy\00"}>,align 8
@e=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i8*)*@_SMLFN12OverloadKind7compareE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12OverloadKind7compareE_122 to void(...)*),i32 -2147483647}>,align 8
@f=private unnamed_addr constant<{[4x i8],i32,[79x i8]}><{[4x i8]zeroinitializer,i32 -2147483569,[79x i8]c"src/compiler/compilePhases/recordcompilation/main/OverloadKind.sml:94.27(3284)\00"}>,align 8
@g=private unnamed_addr constant<{[4x i8],i32,[25x i8]}><{[4x i8]zeroinitializer,i32 -2147483623,[25x i8]c"evalMatch: OVERLOAD_PRIM\00"}>,align 8
@h=private unnamed_addr constant<{[4x i8],i32,[78x i8]}><{[4x i8]zeroinitializer,i32 -2147483570,[78x i8]c"src/compiler/compilePhases/recordcompilation/main/OverloadKind.sml:73.6(2442)\00"}>,align 8
@i=private unnamed_addr constant<{[4x i8],i32,[80x i8]}><{[4x i8]zeroinitializer,i32 -2147483568,[80x i8]c"src/compiler/compilePhases/recordcompilation/main/OverloadKind.sml:125.42(4634)\00"}>,align 8
@j=private unnamed_addr constant<{[4x i8],i32,[20x i8]}><{[4x i8]zeroinitializer,i32 -2147483628,[20x i8]c"generateSingletonTy\00"}>,align 8
@k=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN12OverloadKind11singletonTyE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12OverloadKind11singletonTyE_126 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN12OverloadKind11singletonTyE=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*)*@_SMLFN12OverloadKind12generateArgsE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12OverloadKind12generateArgsE_127 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN12OverloadKind12generateArgsE=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*)
@_SMLZN12OverloadKind7compareE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@e,i64 0,i32 2)to i8*)
@m=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLLN12OverloadKind16generateInstanceE_112 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12OverloadKind16generateInstanceE_128 to void(...)*),i32 -2147483647}>,align 8
@n=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN12OverloadKind16generateInstanceE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12OverloadKind16generateInstanceE_129 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN12OverloadKind16generateInstanceE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@n,i64 0,i32 2)to i8*)
@_SML_ftab7d02e15e3ac75cc1_OverloadKind=external global i8
@o=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 i8*@_SMLFN11TypesBasics7derefTyE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN11TypesBasics7tpappTyE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN14BoundTypeVarID3Map8inDomainE(i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i32@_SMLFN14BoundTypeVarID7compareE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN20PrimitiveTypedLambda7compileE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN4List3appE(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 i8*@_SMLFN4List6concatE(i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN5TypID3Map4findE(i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN5TypID3Map9listItemsE(i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i32@_SMLFN5TypID7compareE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i32@_SMLFN7OPrimID7compareE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main03d87556ec7f64b2_List()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_maineaa0aca8fbe4101a_Bug()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main7374574ddb619c6a_LocalID()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main2aaf2b808f82ee2e_TypesBasics()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main438f04634a4a52b1_PrimitiveTypedLambda()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_load03d87556ec7f64b2_List(i8*)local_unnamed_addr
declare void@_SML_loadeaa0aca8fbe4101a_Bug(i8*)local_unnamed_addr
declare void@_SML_load7374574ddb619c6a_LocalID(i8*)local_unnamed_addr
declare void@_SML_load2aaf2b808f82ee2e_TypesBasics(i8*)local_unnamed_addr
declare void@_SML_load438f04634a4a52b1_PrimitiveTypedLambda(i8*)local_unnamed_addr
define private void@_SML_tabb7d02e15e3ac75cc1_OverloadKind()#3{
unreachable
}
define void@_SML_load7d02e15e3ac75cc1_OverloadKind(i8*%a)local_unnamed_addr#0{
%b=load i8,i8*@o,align 1
%c=icmp eq i8%b,0
br i1%c,label%e,label%d
d:
ret void
e:
store i8 1,i8*@o,align 1
tail call void@_SML_load03d87556ec7f64b2_List(i8*%a)#0
tail call void@_SML_loadeaa0aca8fbe4101a_Bug(i8*%a)#0
tail call void@_SML_load7374574ddb619c6a_LocalID(i8*%a)#0
tail call void@_SML_load2aaf2b808f82ee2e_TypesBasics(i8*%a)#0
tail call void@_SML_load438f04634a4a52b1_PrimitiveTypedLambda(i8*%a)#0
tail call void@sml_gcroot(i8*%a,void()*@_SML_tabb7d02e15e3ac75cc1_OverloadKind,i8*@_SML_ftab7d02e15e3ac75cc1_OverloadKind,i8*null)#0
ret void
}
define void@_SML_main7d02e15e3ac75cc1_OverloadKind()local_unnamed_addr#2 gc"smlsharp"{
%a=load i8,i8*@o,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*@o,align 1
tail call void@_SML_main03d87556ec7f64b2_List()#2
tail call void@_SML_maineaa0aca8fbe4101a_Bug()#2
tail call void@_SML_main7374574ddb619c6a_LocalID()#2
tail call void@_SML_main2aaf2b808f82ee2e_TypesBasics()#2
tail call void@_SML_main438f04634a4a52b1_PrimitiveTypedLambda()#2
br label%d
}
define internal fastcc i8*@_SMLLN12OverloadKind14matchToKeyListE_78(i8*inreg%a)#2 gc"smlsharp"{
i:
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%g,label%e
e:
call void@sml_check(i32 inreg%c)
%f=load i8*,i8**%b,align 8
br label%g
g:
%h=phi i8*[%f,%e],[%a,%i]
%j=tail call fastcc i8*@_SMLLN12OverloadKind14matchToKeyListE_74(i8*inreg%h)
ret i8*%j
}
define internal fastcc i8*@_SMLLN12OverloadKind14matchToKeyListE_74(i8*inreg%a)unnamed_addr#2 gc"smlsharp"{
l:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%b,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%j,label%h
h:
call void@sml_check(i32 inreg%f)
%i=load i8*,i8**%b,align 8
br label%j
j:
%k=phi i8*[%i,%h],[%a,%l]
%m=bitcast i8*%k to i32*
%n=load i32,i32*%m,align 4
switch i32%n,label%o[
i32 1,label%aD
i32 2,label%aD
i32 0,label%G
]
o:
call void@sml_matchcomp_bug()
%p=load i8*,i8**@_SMLZ5Match,align 8
store i8*%p,i8**%b,align 8
%q=call i8*@sml_alloc(i32 inreg 20)#0
%r=getelementptr inbounds i8,i8*%q,i64 -4
%s=bitcast i8*%r to i32*
store i32 1342177296,i32*%s,align 4
store i8*%q,i8**%c,align 8
%t=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%u=bitcast i8*%q to i8**
store i8*%t,i8**%u,align 8
%v=getelementptr inbounds i8,i8*%q,i64 8
%w=bitcast i8*%v to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[78x i8]}>,<{[4x i8],i32,[78x i8]}>*@b,i64 0,i32 2,i64 0),i8**%w,align 8
%x=getelementptr inbounds i8,i8*%q,i64 16
%y=bitcast i8*%x to i32*
store i32 3,i32*%y,align 4
%z=call i8*@sml_alloc(i32 inreg 60)#0
%A=getelementptr inbounds i8,i8*%z,i64 -4
%B=bitcast i8*%A to i32*
store i32 1342177336,i32*%B,align 4
%C=getelementptr inbounds i8,i8*%z,i64 56
%D=bitcast i8*%C to i32*
store i32 1,i32*%D,align 4
%E=load i8*,i8**%c,align 8
%F=bitcast i8*%z to i8**
store i8*%E,i8**%F,align 8
call void@sml_raise(i8*inreg%z)#1
unreachable
G:
%H=getelementptr inbounds i8,i8*%k,i64 8
%I=bitcast i8*%H to i8**
%J=load i8*,i8**%I,align 8
store i8*%J,i8**%b,align 8
%K=bitcast i8*%J to i8**
%L=load i8*,i8**%K,align 8
store i8*%L,i8**%c,align 8
%M=call fastcc i8*@_SMLFN4List6concatE(i32 inreg 1,i32 inreg 8)
%N=getelementptr inbounds i8,i8*%M,i64 16
%O=bitcast i8*%N to i8*(i8*,i8*)**
%P=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%O,align 8
%Q=bitcast i8*%M to i8**
%R=load i8*,i8**%Q,align 8
store i8*%R,i8**%e,align 8
%S=call fastcc i8*@_SMLFN4List3mapE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%T=getelementptr inbounds i8,i8*%S,i64 16
%U=bitcast i8*%T to i8*(i8*,i8*)**
%V=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%U,align 8
%W=bitcast i8*%S to i8**
%X=load i8*,i8**%W,align 8
%Y=call fastcc i8*%V(i8*inreg%X,i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@a,i64 0,i32 2)to i8*))
%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
store i8*%ad,i8**%d,align 8
%ae=call fastcc i8*@_SMLFN5TypID3Map9listItemsE(i32 inreg 1,i32 inreg 8)
%af=getelementptr inbounds i8,i8*%ae,i64 16
%ag=bitcast i8*%af to i8*(i8*,i8*)**
%ah=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%ag,align 8
%ai=bitcast i8*%ae to i8**
%aj=load i8*,i8**%ai,align 8
%ak=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%al=getelementptr inbounds i8,i8*%ak,i64 8
%am=bitcast i8*%al to i8**
%an=load i8*,i8**%am,align 8
%ao=call fastcc i8*%ah(i8*inreg%aj,i8*inreg%an)
%ap=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aq=call fastcc i8*%ab(i8*inreg%ap,i8*inreg%ao)
%ar=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%as=call fastcc i8*%P(i8*inreg%ar,i8*inreg%aq)
store i8*%as,i8**%b,align 8
%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
%aw=load i8*,i8**%c,align 8
%ax=bitcast i8*%at to i8**
store i8*%aw,i8**%ax,align 8
%ay=load i8*,i8**%b,align 8
%az=getelementptr inbounds i8,i8*%at,i64 8
%aA=bitcast i8*%az to i8**
store i8*%ay,i8**%aA,align 8
%aB=getelementptr inbounds i8,i8*%at,i64 16
%aC=bitcast i8*%aB to i32*
store i32 3,i32*%aC,align 4
ret i8*%at
aD:
ret i8*null
}
define fastcc i32@_SMLFN12OverloadKind7compareE(i8*inreg%a)#2 gc"smlsharp"{
p:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
%h=alloca i8*,align 8
%i=alloca i8*,align 8
call void@llvm.gcroot(i8**%h,i8*null)#0
call void@llvm.gcroot(i8**%i,i8*null)#0
store i8*%a,i8**%h,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**%h,align 8
br label%n
n:
%o=phi i8*[%m,%l],[%a,%p]
%q=bitcast i8*%o to i8**
%r=load i8*,i8**%q,align 8
%s=getelementptr inbounds i8,i8*%r,i64 16
%t=bitcast i8*%s to i32*
%u=load i32,i32*%t,align 4
%v=getelementptr inbounds i8,i8*%o,i64 8
%w=bitcast i8*%v to i8**
%x=load i8*,i8**%w,align 8
%y=getelementptr inbounds i8,i8*%x,i64 16
%z=bitcast i8*%y to i32*
%A=load i32,i32*%z,align 4
%B=call i8*@sml_alloc(i32 inreg 12)#0
%C=bitcast i8*%B to i32*
%D=getelementptr inbounds i8,i8*%B,i64 -4
%E=bitcast i8*%D to i32*
store i32 1342177288,i32*%E,align 4
store i32%u,i32*%C,align 4
%F=getelementptr inbounds i8,i8*%B,i64 4
%G=bitcast i8*%F to i32*
store i32%A,i32*%G,align 4
%H=getelementptr inbounds i8,i8*%B,i64 8
%I=bitcast i8*%H to i32*
store i32 0,i32*%I,align 4
%J=call fastcc i32@_SMLFN7OPrimID7compareE(i8*inreg%B)
%K=icmp eq i32%J,0
br i1%K,label%M,label%L
L:
ret i32%J
M:
%N=bitcast i8**%h to i8***
%O=load i8**,i8***%N,align 8
%P=load i8*,i8**%O,align 8
%Q=getelementptr inbounds i8,i8*%P,i64 8
%R=bitcast i8*%Q to i8**
%S=load i8*,i8**%R,align 8
%T=call fastcc i8*@_SMLLN12OverloadKind14matchToKeyListE_74(i8*inreg%S)
store i8*%T,i8**%i,align 8
%U=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%V=getelementptr inbounds i8,i8*%U,i64 8
%W=bitcast i8*%V to i8**
%X=load i8*,i8**%W,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*@_SMLLN12OverloadKind14matchToKeyListE_74(i8*inreg%aa)
store i8*%ab,i8**%h,align 8
%ac=call i8*@sml_alloc(i32 inreg 20)#0
%ad=getelementptr inbounds i8,i8*%ac,i64 -4
%ae=bitcast i8*%ad to i32*
store i32 1342177296,i32*%ae,align 4
%af=load i8*,i8**%i,align 8
%ag=bitcast i8*%ac to i8**
store i8*%af,i8**%ag,align 8
%ah=load i8*,i8**%h,align 8
%ai=getelementptr inbounds i8,i8*%ac,i64 8
%aj=bitcast i8*%ai to i8**
store i8*%ah,i8**%aj,align 8
%ak=getelementptr inbounds i8,i8*%ac,i64 16
%al=bitcast i8*%ak to i32*
store i32 3,i32*%al,align 4
%am=bitcast i8**%d to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%am)
%an=bitcast i8**%e to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%an)
%ao=bitcast i8**%f to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%ao)
%ap=bitcast i8**%g to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%ap)
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
%aq=bitcast i8**%b to i8*
%ar=bitcast i8**%c to i8*
%as=bitcast i8**%b to i8***
br label%at
at:
%au=phi i8*[%cT,%cS],[%ac,%M]
store i8*%au,i8**%d,align 8
%av=load atomic i32,i32*@sml_check_flag unordered,align 4
%aw=icmp eq i32%av,0
br i1%aw,label%az,label%ax
ax:
call void@sml_check(i32 inreg%av)
%ay=load i8*,i8**%d,align 8
br label%az
az:
%aA=phi i8*[%ay,%ax],[%au,%at]
%aB=bitcast i8*%aA to i8**
%aC=load i8*,i8**%aB,align 8
%aD=icmp eq i8*%aC,null
br i1%aD,label%aE,label%aK
aE:
%aF=getelementptr inbounds i8,i8*%aA,i64 8
%aG=bitcast i8*%aF to i8**
%aH=load i8*,i8**%aG,align 8
%aI=icmp eq i8*%aH,null
%aJ=select i1%aI,i32 0,i32 2
br label%c3
aK:
%aL=bitcast i8*%aC to i8**
%aM=load i8*,i8**%aL,align 8
store i8*%aM,i8**%d,align 8
%aN=getelementptr inbounds i8,i8*%aC,i64 8
%aO=bitcast i8*%aN to i8**
%aP=load i8*,i8**%aO,align 8
store i8*%aP,i8**%e,align 8
%aQ=getelementptr inbounds i8,i8*%aA,i64 8
%aR=bitcast i8*%aQ to i8**
%aS=load i8*,i8**%aR,align 8
%aT=icmp eq i8*%aS,null
br i1%aT,label%c3,label%aU
aU:
%aV=bitcast i8*%aS to i8**
%aW=load i8*,i8**%aV,align 8
store i8*%aW,i8**%f,align 8
%aX=getelementptr inbounds i8,i8*%aS,i64 8
%aY=bitcast i8*%aX to i8**
%aZ=load i8*,i8**%aY,align 8
store i8*%aZ,i8**%g,align 8
%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
%a3=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%a4=bitcast i8*%a0 to i8**
store i8*%a3,i8**%a4,align 8
%a5=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%a6=getelementptr inbounds i8,i8*%a0,i64 8
%a7=bitcast i8*%a6 to i8**
store i8*%a5,i8**%a7,align 8
%a8=getelementptr inbounds i8,i8*%a0,i64 16
%a9=bitcast i8*%a8 to i32*
store i32 3,i32*%a9,align 4
call void@llvm.lifetime.start.p0i8(i64 8,i8*%aq)
call void@llvm.lifetime.start.p0i8(i64 8,i8*%ar)
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a0,i8**%b,align 8
%ba=load atomic i32,i32*@sml_check_flag unordered,align 4
%bb=icmp eq i32%ba,0
br i1%bb,label%be,label%bc
bc:
call void@sml_check(i32 inreg%ba)
%bd=load i8**,i8***%as,align 8
br label%be
be:
%bf=phi i8**[%bd,%bc],[%a4,%aU]
%bg=load i8*,i8**%bf,align 8
%bh=call fastcc i8*@_SMLFN11TypesBasics7derefTyE(i8*inreg%bg)
store i8*%bh,i8**%c,align 8
%bi=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%bj=getelementptr inbounds i8,i8*%bi,i64 8
%bk=bitcast i8*%bj to i8**
%bl=load i8*,i8**%bk,align 8
%bm=call fastcc i8*@_SMLFN11TypesBasics7derefTyE(i8*inreg%bl)
store i8*%bm,i8**%b,align 8
%bn=call i8*@sml_alloc(i32 inreg 20)#0
%bo=getelementptr inbounds i8,i8*%bn,i64 -4
%bp=bitcast i8*%bo to i32*
store i32 1342177296,i32*%bp,align 4
%bq=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%br=bitcast i8*%bn to i8**
store i8*%bq,i8**%br,align 8
%bs=load i8*,i8**%b,align 8
%bt=getelementptr inbounds i8,i8*%bn,i64 8
%bu=bitcast i8*%bt to i8**
store i8*%bs,i8**%bu,align 8
%bv=getelementptr inbounds i8,i8*%bn,i64 16
%bw=bitcast i8*%bv to i32*
store i32 3,i32*%bw,align 4
%bx=icmp eq i8*%bq,null
br i1%bx,label%cv,label%by
by:
%bz=bitcast i8*%bq to i32*
%bA=load i32,i32*%bz,align 4
switch i32%bA,label%cv[
i32 1,label%ca
i32 2,label%bB
]
bB:
%bC=getelementptr inbounds i8,i8*%bq,i64 8
%bD=bitcast i8*%bC to i8**
%bE=load i8*,i8**%bD,align 8
%bF=getelementptr inbounds i8,i8*%bE,i64 8
%bG=bitcast i8*%bF to i8**
%bH=load i8*,i8**%bG,align 8
%bI=getelementptr inbounds i8,i8*%bH,i64 40
%bJ=bitcast i8*%bI to i32*
%bK=load i32,i32*%bJ,align 4
%bL=icmp eq i8*%bs,null
br i1%bL,label%cv,label%bM
bM:
%bN=bitcast i8*%bs to i32*
%bO=load i32,i32*%bN,align 4
switch i32%bO,label%cv[
i32 1,label%b8
i32 2,label%bP
]
bP:
%bQ=getelementptr inbounds i8,i8*%bs,i64 8
%bR=bitcast i8*%bQ to i8**
%bS=load i8*,i8**%bR,align 8
%bT=getelementptr inbounds i8,i8*%bS,i64 8
%bU=bitcast i8*%bT to i8**
%bV=load i8*,i8**%bU,align 8
%bW=getelementptr inbounds i8,i8*%bV,i64 40
%bX=bitcast i8*%bW to i32*
%bY=load i32,i32*%bX,align 4
%bZ=call i8*@sml_alloc(i32 inreg 12)#0
%b0=bitcast i8*%bZ to i32*
%b1=getelementptr inbounds i8,i8*%bZ,i64 -4
%b2=bitcast i8*%b1 to i32*
store i32 1342177288,i32*%b2,align 4
store i32%bK,i32*%b0,align 4
%b3=getelementptr inbounds i8,i8*%bZ,i64 4
%b4=bitcast i8*%b3 to i32*
store i32%bY,i32*%b4,align 4
%b5=getelementptr inbounds i8,i8*%bZ,i64 8
%b6=bitcast i8*%b5 to i32*
store i32 0,i32*%b6,align 4
%b7=call fastcc i32@_SMLFN5TypID7compareE(i8*inreg%bZ)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%aq)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%ar)
br label%cP
b8:
%b9=phi i32[%bO,%bM],[%ch,%cf]
call void@llvm.lifetime.end.p0i8(i64 8,i8*%aq)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%ar)
br label%c3
ca:
%cb=getelementptr inbounds i8,i8*%bq,i64 4
%cc=bitcast i8*%cb to i32*
%cd=load i32,i32*%cc,align 4
%ce=icmp eq i8*%bs,null
br i1%ce,label%cv,label%cf
cf:
%cg=bitcast i8*%bs to i32*
%ch=load i32,i32*%cg,align 4
switch i32%ch,label%cv[
i32 1,label%ci
i32 2,label%b8
]
ci:
%cj=getelementptr inbounds i8,i8*%bs,i64 4
%ck=bitcast i8*%cj to i32*
%cl=load i32,i32*%ck,align 4
%cm=call i8*@sml_alloc(i32 inreg 12)#0
%cn=bitcast i8*%cm to i32*
%co=getelementptr inbounds i8,i8*%cm,i64 -4
%cp=bitcast i8*%co to i32*
store i32 1342177288,i32*%cp,align 4
store i32%cd,i32*%cn,align 4
%cq=getelementptr inbounds i8,i8*%cm,i64 4
%cr=bitcast i8*%cq to i32*
store i32%cl,i32*%cr,align 4
%cs=getelementptr inbounds i8,i8*%cm,i64 8
%ct=bitcast i8*%cs to i32*
store i32 0,i32*%ct,align 4
%cu=call fastcc i32@_SMLFN14BoundTypeVarID7compareE(i8*inreg%cm)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%aq)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%ar)
br label%cP
cv:
%cw=load i8*,i8**@_SMLZN3Bug3BugE,align 8
store i8*%cw,i8**%b,align 8
%cx=call i8*@sml_alloc(i32 inreg 28)#0
%cy=getelementptr inbounds i8,i8*%cx,i64 -4
%cz=bitcast i8*%cy to i32*
store i32 1342177304,i32*%cz,align 4
store i8*%cx,i8**%c,align 8
%cA=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%cB=bitcast i8*%cx to i8**
store i8*%cA,i8**%cB,align 8
%cC=getelementptr inbounds i8,i8*%cx,i64 8
%cD=bitcast i8*%cC to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[79x i8]}>,<{[4x i8],i32,[79x i8]}>*@c,i64 0,i32 2,i64 0),i8**%cD,align 8
%cE=getelementptr inbounds i8,i8*%cx,i64 16
%cF=bitcast i8*%cE to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[13x i8]}>,<{[4x i8],i32,[13x i8]}>*@d,i64 0,i32 2,i64 0),i8**%cF,align 8
%cG=getelementptr inbounds i8,i8*%cx,i64 24
%cH=bitcast i8*%cG to i32*
store i32 7,i32*%cH,align 4
%cI=call i8*@sml_alloc(i32 inreg 60)#0
%cJ=getelementptr inbounds i8,i8*%cI,i64 -4
%cK=bitcast i8*%cJ to i32*
store i32 1342177336,i32*%cK,align 4
%cL=getelementptr inbounds i8,i8*%cI,i64 56
%cM=bitcast i8*%cL to i32*
store i32 1,i32*%cM,align 4
%cN=load i8*,i8**%c,align 8
%cO=bitcast i8*%cI to i8**
store i8*%cN,i8**%cO,align 8
call void@sml_raise(i8*inreg%cI)#1
unreachable
cP:
%cQ=phi i32[%b7,%bP],[%cu,%ci]
%cR=icmp eq i32%cQ,0
br i1%cR,label%cS,label%c3
cS:
%cT=call i8*@sml_alloc(i32 inreg 20)#0
%cU=getelementptr inbounds i8,i8*%cT,i64 -4
%cV=bitcast i8*%cU to i32*
store i32 1342177296,i32*%cV,align 4
%cW=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%cX=bitcast i8*%cT to i8**
store i8*%cW,i8**%cX,align 8
%cY=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%cZ=getelementptr inbounds i8,i8*%cT,i64 8
%c0=bitcast i8*%cZ to i8**
store i8*%cY,i8**%c0,align 8
%c1=getelementptr inbounds i8,i8*%cT,i64 16
%c2=bitcast i8*%c1 to i32*
store i32 3,i32*%c2,align 4
br label%at
c3:
%c4=phi i32[%aJ,%aE],[%b9,%b8],[1,%aK],[%cQ,%cP]
call void@llvm.lifetime.end.p0i8(i64 8,i8*%am)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%an)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%ao)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%ap)
ret i32%c4
}
define internal fastcc i8*@_SMLLN12OverloadKind9evalMatchE_97(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
m:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
call void@llvm.gcroot(i8**%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%k,label%i
i:
call void@sml_check(i32 inreg%g)
%j=load i8*,i8**%d,align 8
br label%k
k:
%l=phi i8*[%j,%i],[%a,%m]
%n=getelementptr inbounds i8,i8*%l,i64 8
%o=bitcast i8*%n to i8**
%p=load i8*,i8**%o,align 8
store i8*%p,i8**%e,align 8
%q=bitcast i8*%l to i8**
%r=load i8*,i8**%q,align 8
store i8*%r,i8**%f,align 8
%s=getelementptr inbounds i8,i8*%l,i64 16
%t=bitcast i8*%s to i8**
%u=load i8*,i8**%t,align 8
store i8*%u,i8**%d,align 8
%v=call i8*@sml_alloc(i32 inreg 36)#0
%w=getelementptr inbounds i8,i8*%v,i64 -4
%x=bitcast i8*%w to i32*
store i32 1342177312,i32*%x,align 4
%y=load i8*,i8**%c,align 8
%z=bitcast i8*%v to i8**
store i8*%y,i8**%z,align 8
%A=load i8*,i8**%e,align 8
%B=getelementptr inbounds i8,i8*%v,i64 8
%C=bitcast i8*%B to i8**
store i8*%A,i8**%C,align 8
%D=load i8*,i8**%f,align 8
%E=getelementptr inbounds i8,i8*%v,i64 16
%F=bitcast i8*%E to i8**
store i8*%D,i8**%F,align 8
%G=load i8*,i8**%d,align 8
%H=getelementptr inbounds i8,i8*%v,i64 24
%I=bitcast i8*%H to i8**
store i8*%G,i8**%I,align 8
%J=getelementptr inbounds i8,i8*%v,i64 32
%K=bitcast i8*%J to i32*
store i32 15,i32*%K,align 4
%L=tail call fastcc i8*@_SMLFN20PrimitiveTypedLambda7compileE(i8*inreg%v)
ret i8*%L
}
define internal fastcc void@_SMLLN12OverloadKind12generateArgsE_101(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=call fastcc i8*@_SMLFN11TypesBasics7derefTyE(i8*inreg%j)
%m=icmp eq i8*%l,null
br i1%m,label%r,label%n
n:
%o=bitcast i8*%l to i32*
%p=load i32,i32*%o,align 4
%q=icmp eq i32%p,1
br i1%q,label%s,label%r
r:
ret void
s:
%t=getelementptr inbounds i8,i8*%l,i64 4
%u=bitcast i8*%t to i32*
%v=load i32,i32*%u,align 4
%w=call fastcc i8*@_SMLFN14BoundTypeVarID3Map8inDomainE(i32 inreg 1,i32 inreg 8)
%x=getelementptr inbounds i8,i8*%w,i64 16
%y=bitcast i8*%x to i8*(i8*,i8*)**
%z=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%y,align 8
%A=bitcast i8*%w to i8**
%B=load i8*,i8**%A,align 8
store i8*%B,i8**%d,align 8
%C=bitcast i8**%c to i8***
%D=load i8**,i8***%C,align 8
%E=load i8*,i8**%D,align 8
store i8*%E,i8**%c,align 8
%F=call i8*@sml_alloc(i32 inreg 20)#0
%G=getelementptr inbounds i8,i8*%F,i64 -4
%H=bitcast i8*%G to i32*
store i32 1342177296,i32*%H,align 4
%I=getelementptr inbounds i8,i8*%F,i64 12
%J=bitcast i8*%I to i32*
store i32 0,i32*%J,align 1
%K=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%L=bitcast i8*%F to i8**
store i8*%K,i8**%L,align 8
%M=getelementptr inbounds i8,i8*%F,i64 8
%N=bitcast i8*%M to i32*
store i32%v,i32*%N,align 4
%O=getelementptr inbounds i8,i8*%F,i64 16
%P=bitcast i8*%O to i32*
store i32 1,i32*%P,align 4
%Q=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%R=call fastcc i8*%z(i8*inreg%Q,i8*inreg%F)
%S=bitcast i8*%R to i32*
%T=load i32,i32*%S,align 4
%U=icmp eq i32%T,0
br i1%U,label%V,label%r
V:
%W=load i8*,i8**@_SMLZN3Bug3BugE,align 8
store i8*%W,i8**%c,align 8
%X=call i8*@sml_alloc(i32 inreg 28)#0
%Y=getelementptr inbounds i8,i8*%X,i64 -4
%Z=bitcast i8*%Y to i32*
store i32 1342177304,i32*%Z,align 4
store i8*%X,i8**%d,align 8
%aa=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ab=bitcast i8*%X to i8**
store i8*%aa,i8**%ab,align 8
%ac=getelementptr inbounds i8,i8*%X,i64 8
%ad=bitcast i8*%ac to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[80x i8]}>,<{[4x i8],i32,[80x i8]}>*@i,i64 0,i32 2,i64 0),i8**%ad,align 8
%ae=getelementptr inbounds i8,i8*%X,i64 16
%af=bitcast i8*%ae to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[20x i8]}>,<{[4x i8],i32,[20x i8]}>*@j,i64 0,i32 2,i64 0),i8**%af,align 8
%ag=getelementptr inbounds i8,i8*%X,i64 24
%ah=bitcast i8*%ag to i32*
store i32 7,i32*%ah,align 4
%ai=call i8*@sml_alloc(i32 inreg 60)#0
%aj=getelementptr inbounds i8,i8*%ai,i64 -4
%ak=bitcast i8*%aj to i32*
store i32 1342177336,i32*%ak,align 4
%al=getelementptr inbounds i8,i8*%ai,i64 56
%am=bitcast i8*%al to i32*
store i32 1,i32*%am,align 4
%an=load i8*,i8**%d,align 8
%ao=bitcast i8*%ai to i8**
store i8*%an,i8**%ao,align 8
call void@sml_raise(i8*inreg%ai)#1
unreachable
}
define internal fastcc i8*@_SMLLN12OverloadKind12generateArgsE_102(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%j,label%i
i:
call void@sml_check(i32 inreg%g)
br label%j
j:
%k=call fastcc i8*@_SMLFN4List3appE(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**%d to i8***
%r=load i8**,i8***%q,align 8
%s=load i8*,i8**%r,align 8
store i8*%s,i8**%d,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**%d,align 8
store i8*null,i8**%d,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(void(i8*,i8*)*@_SMLLN12OverloadKind12generateArgsE_101 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*)*@_SMLLN12OverloadKind12generateArgsE_124 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
store i8*%R,i8**%d,align 8
%S=load i8*,i8**%c,align 8
%T=getelementptr inbounds i8,i8*%S,i64 8
%U=bitcast i8*%T to i8**
%V=load i8*,i8**%U,align 8
%W=call fastcc i8*@_SMLLN12OverloadKind14matchToKeyListE_74(i8*inreg%V)
%X=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%Y=call fastcc i8*%P(i8*inreg%X,i8*inreg%W)
%Z=call i8*@sml_alloc(i32 inreg 20)#0
%aa=bitcast i8*%Z to i32*
%ab=getelementptr inbounds i8,i8*%Z,i64 -4
%ac=bitcast i8*%ab to i32*
store i32 1342177296,i32*%ac,align 4
%ad=getelementptr inbounds i8,i8*%Z,i64 4
%ae=bitcast i8*%ad to i32*
store i32 0,i32*%ae,align 1
store i32 1,i32*%aa,align 4
%af=load i8*,i8**%c,align 8
%ag=getelementptr inbounds i8,i8*%Z,i64 8
%ah=bitcast i8*%ag to i8**
store i8*%af,i8**%ah,align 8
%ai=getelementptr inbounds i8,i8*%Z,i64 16
%aj=bitcast i8*%ai to i32*
store i32 2,i32*%aj,align 4
ret i8*%Z
}
define internal fastcc i8*@_SMLLN12OverloadKind12generateArgsE_103(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%j,label%i
i:
call void@sml_check(i32 inreg%g)
br label%j
j:
%k=call fastcc i8*@_SMLFN4List3mapE(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**%d to i8***
%r=load i8**,i8***%q,align 8
%s=load i8*,i8**%r,align 8
store i8*%s,i8**%d,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**%d,align 8
store i8*null,i8**%d,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*)*@_SMLLN12OverloadKind12generateArgsE_102 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*)*@_SMLLN12OverloadKind12generateArgsE_102 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**%c,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*%V,i64 8
%X=bitcast i8*%W to i8**
%Y=load i8*,i8**%X,align 8
%Z=tail call fastcc i8*%P(i8*inreg%R,i8*inreg%Y)
ret i8*%Z
}
define fastcc i8*@_SMLFN12OverloadKind11singletonTyE(i8*inreg%a)#4 gc"smlsharp"{
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=call i8*@sml_alloc(i32 inreg 20)#0
%d=bitcast i8*%c to i32*
%e=getelementptr inbounds i8,i8*%c,i64 -4
%f=bitcast i8*%e to i32*
store i32 1342177296,i32*%f,align 4
%g=getelementptr inbounds i8,i8*%c,i64 4
%h=bitcast i8*%g to i32*
store i32 0,i32*%h,align 1
store i32 1,i32*%d,align 4
%i=load i8*,i8**%b,align 8
%j=getelementptr inbounds i8,i8*%c,i64 8
%k=bitcast i8*%j to i8**
store i8*%i,i8**%k,align 8
%l=getelementptr inbounds i8,i8*%c,i64 16
%m=bitcast i8*%l to i32*
store i32 2,i32*%m,align 4
ret i8*%c
}
define internal fastcc i8*@_SMLLN12OverloadKind12generateArgsE_108(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%c,align 8
store i8*%b,i8**%d,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%g,label%i
g:
%h=bitcast i8*%a to i8**
br label%m
i:
call void@sml_check(i32 inreg%e)
%j=load i8*,i8**%d,align 8
%k=bitcast i8**%c to i8***
%l=load i8**,i8***%k,align 8
br label%m
m:
%n=phi i8**[%l,%i],[%h,%g]
%o=phi i8*[%j,%i],[%b,%g]
store i8*null,i8**%d,align 8
%p=load i8*,i8**%n,align 8
%q=getelementptr inbounds i8,i8*%p,i64 16
%r=bitcast i8*%q to i8*(i8*,i8*)**
%s=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%r,align 8
store i8*null,i8**%c,align 8
%t=bitcast i8**%n to i8***
%u=load i8**,i8***%t,align 8
%v=load i8*,i8**%u,align 8
%w=call fastcc i8*%s(i8*inreg%v,i8*inreg%o)
ret i8*%w
}
define fastcc i8*@_SMLFN12OverloadKind12generateArgsE(i8*inreg%a)#2 gc"smlsharp"{
l:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%d,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%j,label%h
h:
call void@sml_check(i32 inreg%f)
%i=load i8*,i8**%d,align 8
br label%j
j:
%k=phi i8*[%i,%h],[%a,%l]
store i8*null,i8**%d,align 8
%m=bitcast i8**%b to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%m)
%n=bitcast i8**%c to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%n)
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%k,i8**%b,align 8
%o=call i8*@sml_alloc(i32 inreg 12)#0
%p=getelementptr inbounds i8,i8*%o,i64 -4
%q=bitcast i8*%p to i32*
store i32 1342177288,i32*%q,align 4
store i8*%o,i8**%c,align 8
%r=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%s=bitcast i8*%o to i8**
store i8*%r,i8**%s,align 8
%t=getelementptr inbounds i8,i8*%o,i64 8
%u=bitcast i8*%t to i32*
store i32 1,i32*%u,align 4
%v=call i8*@sml_alloc(i32 inreg 28)#0
%w=getelementptr inbounds i8,i8*%v,i64 -4
%x=bitcast i8*%w to i32*
store i32 1342177304,i32*%x,align 4
%y=load i8*,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 void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12OverloadKind12generateArgsE_103 to void(...)*),void(...)**%B,align 8
%C=getelementptr inbounds i8,i8*%v,i64 16
%D=bitcast i8*%C to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12OverloadKind12generateArgsE_103 to void(...)*),void(...)**%D,align 8
%E=getelementptr inbounds i8,i8*%v,i64 24
%F=bitcast i8*%E to i32*
store i32 -2147483647,i32*%F,align 4
call void@llvm.lifetime.end.p0i8(i64 8,i8*%m)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%n)
store i8*%v,i8**%d,align 8
%G=call i8*@sml_alloc(i32 inreg 12)#0
%H=getelementptr inbounds i8,i8*%G,i64 -4
%I=bitcast i8*%H to i32*
store i32 1342177288,i32*%I,align 4
store i8*%G,i8**%e,align 8
%J=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%K=bitcast i8*%G to i8**
store i8*%J,i8**%K,align 8
%L=getelementptr inbounds i8,i8*%G,i64 8
%M=bitcast i8*%L to i32*
store i32 1,i32*%M,align 4
%N=call i8*@sml_alloc(i32 inreg 28)#0
%O=getelementptr inbounds i8,i8*%N,i64 -4
%P=bitcast i8*%O to i32*
store i32 1342177304,i32*%P,align 4
%Q=load i8*,i8**%e,align 8
%R=bitcast i8*%N to i8**
store i8*%Q,i8**%R,align 8
%S=getelementptr inbounds i8,i8*%N,i64 8
%T=bitcast i8*%S to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12OverloadKind12generateArgsE_108 to void(...)*),void(...)**%T,align 8
%U=getelementptr inbounds i8,i8*%N,i64 16
%V=bitcast i8*%U to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12OverloadKind12generateArgsE_108 to void(...)*),void(...)**%V,align 8
%W=getelementptr inbounds i8,i8*%N,i64 24
%X=bitcast i8*%W to i32*
store i32 -2147483647,i32*%X,align 4
ret i8*%N
}
define internal fastcc i8*@_SMLLN12OverloadKind16generateInstanceE_111(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
%l=alloca i8*,align 8
%m=alloca i8*,align 8
%n=alloca i8*,align 8
%o=alloca i8*,align 8
%p=alloca i8*,align 8
%q=alloca i8*,align 8
%r=alloca i8*,align 8
%s=alloca i8*,align 8
%t=alloca i8*,align 8
%u=alloca i8*,align 8
%v=alloca i8*,align 8
%w=alloca i8*,align 8
%x=alloca i8*,align 8
call void@llvm.gcroot(i8**%u,i8*null)#0
call void@llvm.gcroot(i8**%v,i8*null)#0
call void@llvm.gcroot(i8**%w,i8*null)#0
call void@llvm.gcroot(i8**%x,i8*null)#0
store i8*%a,i8**%w,align 8
store i8*%b,i8**%u,align 8
%y=load atomic i32,i32*@sml_check_flag unordered,align 4
%z=icmp eq i32%y,0
br i1%z,label%A,label%C
A:
%B=bitcast i8*%a to i8**
br label%F
C:
call void@sml_check(i32 inreg%y)
%D=bitcast i8**%w to i8***
%E=load i8**,i8***%D,align 8
br label%F
F:
%G=phi i8**[%E,%C],[%B,%A]
%H=load i8*,i8**%G,align 8
%I=getelementptr inbounds i8,i8*%H,i64 8
%J=bitcast i8*%I to i8**
%K=load i8*,i8**%J,align 8
store i8*%K,i8**%v,align 8
%L=load i8*,i8**%G,align 8
store i8*%L,i8**%w,align 8
%M=call i8*@sml_alloc(i32 inreg 20)#0
%N=getelementptr inbounds i8,i8*%M,i64 -4
%O=bitcast i8*%N to i32*
store i32 1342177296,i32*%O,align 4
store i8*%M,i8**%x,align 8
%P=getelementptr inbounds i8,i8*%M,i64 4
%Q=bitcast i8*%P to i32*
store i32 0,i32*%Q,align 1
%R=bitcast i8*%M to i32*
store i32 1,i32*%R,align 4
%S=load i8*,i8**%w,align 8
store i8*null,i8**%w,align 8
%T=getelementptr inbounds i8,i8*%M,i64 8
%U=bitcast i8*%T to i8**
store i8*%S,i8**%U,align 8
%V=getelementptr inbounds i8,i8*%M,i64 16
%W=bitcast i8*%V to i32*
store i32 2,i32*%W,align 4
%X=call i8*@sml_alloc(i32 inreg 28)#0
%Y=getelementptr inbounds i8,i8*%X,i64 -4
%Z=bitcast i8*%Y to i32*
store i32 1342177304,i32*%Z,align 4
%aa=load i8*,i8**%v,align 8
%ab=bitcast i8*%X to i8**
store i8*%aa,i8**%ab,align 8
%ac=load i8*,i8**%x,align 8
%ad=getelementptr inbounds i8,i8*%X,i64 8
%ae=bitcast i8*%ad to i8**
store i8*%ac,i8**%ae,align 8
%af=load i8*,i8**%u,align 8
%ag=getelementptr inbounds i8,i8*%X,i64 16
%ah=bitcast i8*%ag to i8**
store i8*%af,i8**%ah,align 8
%ai=getelementptr inbounds i8,i8*%X,i64 24
%aj=bitcast i8*%ai to i32*
store i32 7,i32*%aj,align 4
%ak=bitcast i8**%n to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%ak)
%al=bitcast i8**%o to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%al)
%am=bitcast i8**%p to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%am)
%an=bitcast i8**%q to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%an)
%ao=bitcast i8**%r to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%ao)
%ap=bitcast i8**%s to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%ap)
%aq=bitcast i8**%t to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%aq)
call void@llvm.gcroot(i8**%n,i8*null)#0
call void@llvm.gcroot(i8**%o,i8*null)#0
call void@llvm.gcroot(i8**%p,i8*null)#0
call void@llvm.gcroot(i8**%q,i8*null)#0
call void@llvm.gcroot(i8**%r,i8*null)#0
call void@llvm.gcroot(i8**%s,i8*null)#0
call void@llvm.gcroot(i8**%t,i8*null)#0
br label%ar
ar:
%as=phi i8*[%bO,%bL],[%X,%F]
store i8*%as,i8**%n,align 8
%at=load atomic i32,i32*@sml_check_flag unordered,align 4
%au=icmp eq i32%at,0
br i1%au,label%ax,label%av
av:
call void@sml_check(i32 inreg%at)
%aw=load i8*,i8**%n,align 8
br label%ax
ax:
%ay=phi i8*[%aw,%av],[%as,%ar]
%az=getelementptr inbounds i8,i8*%ay,i64 8
%aA=bitcast i8*%az to i8**
%aB=load i8*,i8**%aA,align 8
store i8*%aB,i8**%p,align 8
%aC=getelementptr inbounds i8,i8*%ay,i64 16
%aD=bitcast i8*%aC to i8**
%aE=load i8*,i8**%aD,align 8
store i8*%aE,i8**%q,align 8
%aF=bitcast i8*%ay to i8**
%aG=load i8*,i8**%aF,align 8
%aH=bitcast i8*%aG to i32*
%aI=load i32,i32*%aH,align 4
switch i32%aI,label%aJ[
i32 1,label%ep
i32 2,label%b1
i32 0,label%a1
]
aJ:
store i8*null,i8**%p,align 8
store i8*null,i8**%q,align 8
call void@sml_matchcomp_bug()
%aK=load i8*,i8**@_SMLZ5Match,align 8
store i8*%aK,i8**%n,align 8
%aL=call i8*@sml_alloc(i32 inreg 20)#0
%aM=getelementptr inbounds i8,i8*%aL,i64 -4
%aN=bitcast i8*%aM to i32*
store i32 1342177296,i32*%aN,align 4
store i8*%aL,i8**%o,align 8
%aO=load i8*,i8**%n,align 8
store i8*null,i8**%n,align 8
%aP=bitcast i8*%aL to i8**
store i8*%aO,i8**%aP,align 8
%aQ=getelementptr inbounds i8,i8*%aL,i64 8
%aR=bitcast i8*%aQ to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[78x i8]}>,<{[4x i8],i32,[78x i8]}>*@h,i64 0,i32 2,i64 0),i8**%aR,align 8
%aS=getelementptr inbounds i8,i8*%aL,i64 16
%aT=bitcast i8*%aS to i32*
store i32 3,i32*%aT,align 4
%aU=call i8*@sml_alloc(i32 inreg 60)#0
%aV=getelementptr inbounds i8,i8*%aU,i64 -4
%aW=bitcast i8*%aV to i32*
store i32 1342177336,i32*%aW,align 4
%aX=getelementptr inbounds i8,i8*%aU,i64 56
%aY=bitcast i8*%aX to i32*
store i32 1,i32*%aY,align 4
%aZ=load i8*,i8**%o,align 8
%a0=bitcast i8*%aU to i8**
store i8*%aZ,i8**%a0,align 8
call void@sml_raise(i8*inreg%aU)#1
unreachable
a1:
%a2=getelementptr inbounds i8,i8*%aG,i64 8
%a3=bitcast i8*%a2 to i8**
%a4=load i8*,i8**%a3,align 8
%a5=getelementptr inbounds i8,i8*%a4,i64 8
%a6=bitcast i8*%a5 to i8**
%a7=load i8*,i8**%a6,align 8
store i8*%a7,i8**%n,align 8
%a8=bitcast i8*%a4 to i8**
%a9=load i8*,i8**%a8,align 8
%ba=call fastcc i8*@_SMLFN11TypesBasics7derefTyE(i8*inreg%a9)
%bb=icmp eq i8*%ba,null
br i1%bb,label%bg,label%bc
bc:
%bd=bitcast i8*%ba to i32*
%be=load i32,i32*%bd,align 4
%bf=icmp eq i32%be,2
br i1%bf,label%bh,label%bg
bg:
call void@llvm.lifetime.end.p0i8(i64 8,i8*%ak)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%al)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%am)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%an)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%ao)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%ap)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%aq)
br label%ib
bh:
%bi=getelementptr inbounds i8,i8*%ba,i64 8
%bj=bitcast i8*%bi to i8**
%bk=load i8*,i8**%bj,align 8
%bl=getelementptr inbounds i8,i8*%bk,i64 8
%bm=bitcast i8*%bl to i8**
%bn=load i8*,i8**%bm,align 8
%bo=getelementptr inbounds i8,i8*%bn,i64 40
%bp=bitcast i8*%bo to i32*
%bq=load i32,i32*%bp,align 4
%br=call fastcc i8*@_SMLFN5TypID3Map4findE(i32 inreg 1,i32 inreg 8)
%bs=getelementptr inbounds i8,i8*%br,i64 16
%bt=bitcast i8*%bs to i8*(i8*,i8*)**
%bu=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bt,align 8
%bv=bitcast i8*%br to i8**
%bw=load i8*,i8**%bv,align 8
store i8*%bw,i8**%o,align 8
%bx=call i8*@sml_alloc(i32 inreg 20)#0
%by=getelementptr inbounds i8,i8*%bx,i64 -4
%bz=bitcast i8*%by to i32*
store i32 1342177296,i32*%bz,align 4
%bA=getelementptr inbounds i8,i8*%bx,i64 12
%bB=bitcast i8*%bA to i32*
store i32 0,i32*%bB,align 1
%bC=load i8*,i8**%n,align 8
store i8*null,i8**%n,align 8
%bD=bitcast i8*%bx to i8**
store i8*%bC,i8**%bD,align 8
%bE=getelementptr inbounds i8,i8*%bx,i64 8
%bF=bitcast i8*%bE to i32*
store i32%bq,i32*%bF,align 4
%bG=getelementptr inbounds i8,i8*%bx,i64 16
%bH=bitcast i8*%bG to i32*
store i32 1,i32*%bH,align 4
%bI=load i8*,i8**%o,align 8
store i8*null,i8**%o,align 8
%bJ=call fastcc i8*%bu(i8*inreg%bI,i8*inreg%bx)
%bK=icmp eq i8*%bJ,null
br i1%bK,label%bg,label%bL
bL:
%bM=bitcast i8*%bJ to i8**
%bN=load i8*,i8**%bM,align 8
store i8*%bN,i8**%n,align 8
%bO=call i8*@sml_alloc(i32 inreg 28)#0
%bP=getelementptr inbounds i8,i8*%bO,i64 -4
%bQ=bitcast i8*%bP to i32*
store i32 1342177304,i32*%bQ,align 4
%bR=load i8*,i8**%n,align 8
store i8*null,i8**%n,align 8
%bS=bitcast i8*%bO to i8**
store i8*%bR,i8**%bS,align 8
%bT=load i8*,i8**%p,align 8
store i8*null,i8**%p,align 8
%bU=getelementptr inbounds i8,i8*%bO,i64 8
%bV=bitcast i8*%bU to i8**
store i8*%bT,i8**%bV,align 8
%bW=load i8*,i8**%q,align 8
store i8*null,i8**%q,align 8
%bX=getelementptr inbounds i8,i8*%bO,i64 16
%bY=bitcast i8*%bX to i8**
store i8*%bW,i8**%bY,align 8
%bZ=getelementptr inbounds i8,i8*%bO,i64 24
%b0=bitcast i8*%bZ to i32*
store i32 7,i32*%b0,align 4
br label%ar
b1:
%b2=getelementptr inbounds i8,i8*%aG,i64 8
%b3=bitcast i8*%b2 to i8**
%b4=load i8*,i8**%b3,align 8
%b5=bitcast i8*%b4 to i8**
%b6=load i8*,i8**%b5,align 8
store i8*%b6,i8**%r,align 8
%b7=getelementptr inbounds i8,i8*%b4,i64 8
%b8=bitcast i8*%b7 to i8**
%b9=load i8*,i8**%b8,align 8
store i8*%b9,i8**%s,align 8
%ca=icmp eq i8*%b6,null
br i1%ca,label%cb,label%cf
cb:
%cc=getelementptr inbounds i8,i8*%b9,i64 8
%cd=bitcast i8*%cc to i8**
%ce=load i8*,i8**%cd,align 8
br label%cw
cf:
%cg=bitcast i8*%b6 to i8**
%ch=load i8*,i8**%cg,align 8
store i8*%ch,i8**%n,align 8
%ci=getelementptr inbounds i8,i8*%b9,i64 8
%cj=bitcast i8*%ci to i8**
%ck=load i8*,i8**%cj,align 8
store i8*%ck,i8**%o,align 8
%cl=call i8*@sml_alloc(i32 inreg 20)#0
%cm=getelementptr inbounds i8,i8*%cl,i64 -4
%cn=bitcast i8*%cm to i32*
store i32 1342177296,i32*%cn,align 4
%co=load i8*,i8**%o,align 8
store i8*null,i8**%o,align 8
%cp=bitcast i8*%cl to i8**
store i8*%co,i8**%cp,align 8
%cq=load i8*,i8**%n,align 8
store i8*null,i8**%n,align 8
%cr=getelementptr inbounds i8,i8*%cl,i64 8
%cs=bitcast i8*%cr to i8**
store i8*%cq,i8**%cs,align 8
%ct=getelementptr inbounds i8,i8*%cl,i64 16
%cu=bitcast i8*%ct to i32*
store i32 3,i32*%cu,align 4
%cv=call fastcc i8*@_SMLFN11TypesBasics7tpappTyE(i8*inreg%cl)
br label%cw
cw:
%cx=phi i8*[%ce,%cb],[%cv,%cf]
%cy=icmp eq i8*%cx,null
br i1%cy,label%cD,label%cz
cz:
%cA=bitcast i8*%cx to i32*
%cB=load i32,i32*%cA,align 4
%cC=icmp eq i32%cB,6
br i1%cC,label%cE,label%cD
cD:
store i8*null,i8**%p,align 8
store i8*null,i8**%q,align 8
store i8*null,i8**%r,align 8
store i8*null,i8**%s,align 8
br label%d5
cE:
%cF=getelementptr inbounds i8,i8*%cx,i64 8
%cG=bitcast i8*%cF to i8**
%cH=load i8*,i8**%cG,align 8
%cI=bitcast i8*%cH to i8**
%cJ=load i8*,i8**%cI,align 8
%cK=icmp eq i8*%cJ,null
br i1%cK,label%cL,label%cM
cL:
store i8*null,i8**%p,align 8
store i8*null,i8**%q,align 8
store i8*null,i8**%r,align 8
store i8*null,i8**%s,align 8
br label%d5
cM:
%cN=bitcast i8*%cJ to i8**
%cO=load i8*,i8**%cN,align 8
store i8*%cO,i8**%n,align 8
%cP=getelementptr inbounds i8,i8*%cJ,i64 8
%cQ=bitcast i8*%cP to i8**
%cR=load i8*,i8**%cQ,align 8
%cS=icmp eq i8*%cR,null
br i1%cS,label%cT,label%d4
cT:
%cU=getelementptr inbounds i8,i8*%cH,i64 8
%cV=bitcast i8*%cU to i8**
%cW=load i8*,i8**%cV,align 8
store i8*%cW,i8**%o,align 8
%cX=call i8*@sml_alloc(i32 inreg 20)#0
%cY=getelementptr inbounds i8,i8*%cX,i64 -4
%cZ=bitcast i8*%cY to i32*
store i32 1342177296,i32*%cZ,align 4
%c0=load i8*,i8**%n,align 8
%c1=bitcast i8*%cX to i8**
store i8*%c0,i8**%c1,align 8
%c2=load i8*,i8**%o,align 8
%c3=getelementptr inbounds i8,i8*%cX,i64 8
%c4=bitcast i8*%c3 to i8**
store i8*%c2,i8**%c4,align 8
%c5=getelementptr inbounds i8,i8*%cX,i64 16
%c6=bitcast i8*%c5 to i32*
store i32 3,i32*%c6,align 4
%c7=call i8*@sml_alloc(i32 inreg 28)#0
%c8=getelementptr inbounds i8,i8*%c7,i64 -4
%c9=bitcast i8*%c8 to i32*
store i32 1342177304,i32*%c9,align 4
store i8*%c7,i8**%t,align 8
%da=load i8*,i8**%q,align 8
%db=bitcast i8*%c7 to i8**
store i8*%da,i8**%db,align 8
%dc=load i8*,i8**%r,align 8
store i8*null,i8**%r,align 8
%dd=getelementptr inbounds i8,i8*%c7,i64 8
%de=bitcast i8*%dd to i8**
store i8*%dc,i8**%de,align 8
%df=load i8*,i8**%s,align 8
store i8*null,i8**%s,align 8
%dg=getelementptr inbounds i8,i8*%c7,i64 16
%dh=bitcast i8*%dg to i8**
store i8*%df,i8**%dh,align 8
%di=getelementptr inbounds i8,i8*%c7,i64 24
%dj=bitcast i8*%di to i32*
store i32 7,i32*%dj,align 4
%dk=call i8*@sml_alloc(i32 inreg 28)#0
%dl=getelementptr inbounds i8,i8*%dk,i64 -4
%dm=bitcast i8*%dl to i32*
store i32 1342177304,i32*%dm,align 4
store i8*%dk,i8**%s,align 8
%dn=load i8*,i8**%t,align 8
store i8*null,i8**%t,align 8
%do=bitcast i8*%dk to i8**
store i8*%dn,i8**%do,align 8
%dp=getelementptr inbounds i8,i8*%dk,i64 8
%dq=bitcast i8*%dp to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12OverloadKind9evalMatchE_97 to void(...)*),void(...)**%dq,align 8
%dr=getelementptr inbounds i8,i8*%dk,i64 16
%ds=bitcast i8*%dr to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12OverloadKind9evalMatchE_97 to void(...)*),void(...)**%ds,align 8
%dt=getelementptr inbounds i8,i8*%dk,i64 24
%du=bitcast i8*%dt to i32*
store i32 -2147483647,i32*%du,align 4
%dv=call i8*@sml_alloc(i32 inreg 44)#0
%dw=getelementptr inbounds i8,i8*%dv,i64 -4
%dx=bitcast i8*%dw to i32*
store i32 1342177320,i32*%dx,align 4
store i8*%dv,i8**%r,align 8
%dy=load i8*,i8**%s,align 8
store i8*null,i8**%s,align 8
%dz=bitcast i8*%dv to i8**
store i8*%dy,i8**%dz,align 8
%dA=load i8*,i8**%n,align 8
store i8*null,i8**%n,align 8
%dB=getelementptr inbounds i8,i8*%dv,i64 8
%dC=bitcast i8*%dB to i8**
store i8*%dA,i8**%dC,align 8
%dD=load i8*,i8**%o,align 8
store i8*null,i8**%o,align 8
%dE=getelementptr inbounds i8,i8*%dv,i64 16
%dF=bitcast i8*%dE to i8**
store i8*%dD,i8**%dF,align 8
%dG=load i8*,i8**%q,align 8
store i8*null,i8**%q,align 8
%dH=getelementptr inbounds i8,i8*%dv,i64 24
%dI=bitcast i8*%dH to i8**
store i8*%dG,i8**%dI,align 8
%dJ=load i8*,i8**%p,align 8
store i8*null,i8**%p,align 8
%dK=getelementptr inbounds i8,i8*%dv,i64 32
%dL=bitcast i8*%dK to i8**
store i8*%dJ,i8**%dL,align 8
%dM=getelementptr inbounds i8,i8*%dv,i64 40
%dN=bitcast i8*%dM to i32*
store i32 31,i32*%dN,align 4
%dO=call i8*@sml_alloc(i32 inreg 20)#0
%dP=getelementptr inbounds i8,i8*%dO,i64 -4
%dQ=bitcast i8*%dP to i32*
store i32 1342177296,i32*%dQ,align 4
store i8*%dO,i8**%n,align 8
%dR=bitcast i8*%dO to i64*
store i64 0,i64*%dR,align 4
%dS=load i8*,i8**%r,align 8
store i8*null,i8**%r,align 8
%dT=getelementptr inbounds i8,i8*%dO,i64 8
%dU=bitcast i8*%dT to i8**
store i8*%dS,i8**%dU,align 8
%dV=getelementptr inbounds i8,i8*%dO,i64 16
%dW=bitcast i8*%dV to i32*
store i32 2,i32*%dW,align 4
%dX=call i8*@sml_alloc(i32 inreg 12)#0
%dY=getelementptr inbounds i8,i8*%dX,i64 -4
%dZ=bitcast i8*%dY to i32*
store i32 1342177288,i32*%dZ,align 4
%d0=load i8*,i8**%n,align 8
%d1=bitcast i8*%dX to i8**
store i8*%d0,i8**%d1,align 8
%d2=getelementptr inbounds i8,i8*%dX,i64 8
%d3=bitcast i8*%d2 to i32*
store i32 1,i32*%d3,align 4
call void@llvm.lifetime.end.p0i8(i64 8,i8*%ak)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%al)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%am)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%an)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%ao)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%ap)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%aq)
br label%ib
d4:
store i8*null,i8**%p,align 8
store i8*null,i8**%q,align 8
store i8*null,i8**%r,align 8
store i8*null,i8**%s,align 8
br label%d5
d5:
%d6=load i8*,i8**@_SMLZN3Bug3BugE,align 8
store i8*%d6,i8**%n,align 8
%d7=call i8*@sml_alloc(i32 inreg 28)#0
%d8=getelementptr inbounds i8,i8*%d7,i64 -4
%d9=bitcast i8*%d8 to i32*
store i32 1342177304,i32*%d9,align 4
store i8*%d7,i8**%o,align 8
%ea=load i8*,i8**%n,align 8
store i8*null,i8**%n,align 8
%eb=bitcast i8*%d7 to i8**
store i8*%ea,i8**%eb,align 8
%ec=getelementptr inbounds i8,i8*%d7,i64 8
%ed=bitcast i8*%ec to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[79x i8]}>,<{[4x i8],i32,[79x i8]}>*@f,i64 0,i32 2,i64 0),i8**%ed,align 8
%ee=getelementptr inbounds i8,i8*%d7,i64 16
%ef=bitcast i8*%ee to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[25x i8]}>,<{[4x i8],i32,[25x i8]}>*@g,i64 0,i32 2,i64 0),i8**%ef,align 8
%eg=getelementptr inbounds i8,i8*%d7,i64 24
%eh=bitcast i8*%eg to i32*
store i32 7,i32*%eh,align 4
%ei=call i8*@sml_alloc(i32 inreg 60)#0
%ej=getelementptr inbounds i8,i8*%ei,i64 -4
%ek=bitcast i8*%ej to i32*
store i32 1342177336,i32*%ek,align 4
%el=getelementptr inbounds i8,i8*%ei,i64 56
%em=bitcast i8*%el to i32*
store i32 1,i32*%em,align 4
%en=load i8*,i8**%o,align 8
%eo=bitcast i8*%ei to i8**
store i8*%en,i8**%eo,align 8
call void@sml_raise(i8*inreg%ei)#1
unreachable
ep:
%eq=getelementptr inbounds i8,i8*%aG,i64 8
%er=bitcast i8*%eq to i8**
%es=load i8*,i8**%er,align 8
store i8*%es,i8**%o,align 8
%et=bitcast i8*%es to i8**
%eu=load i8*,i8**%et,align 8
store i8*%eu,i8**%n,align 8
%ev=call i8*@sml_alloc(i32 inreg 20)#0
%ew=getelementptr inbounds i8,i8*%ev,i64 -4
%ex=bitcast i8*%ew to i32*
store i32 1342177296,i32*%ex,align 4
store i8*%ev,i8**%r,align 8
%ey=load i8*,i8**%n,align 8
%ez=bitcast i8*%ev to i8**
store i8*%ey,i8**%ez,align 8
%eA=load i8*,i8**%q,align 8
%eB=getelementptr inbounds i8,i8*%ev,i64 8
%eC=bitcast i8*%eB to i8**
store i8*%eA,i8**%eC,align 8
%eD=getelementptr inbounds i8,i8*%ev,i64 16
%eE=bitcast i8*%eD to i32*
store i32 3,i32*%eE,align 4
%eF=call i8*@sml_alloc(i32 inreg 20)#0
%eG=getelementptr inbounds i8,i8*%eF,i64 -4
%eH=bitcast i8*%eG to i32*
store i32 1342177296,i32*%eH,align 4
store i8*%eF,i8**%s,align 8
%eI=getelementptr inbounds i8,i8*%eF,i64 4
%eJ=bitcast i8*%eI to i32*
store i32 0,i32*%eJ,align 1
%eK=bitcast i8*%eF to i32*
store i32 6,i32*%eK,align 4
%eL=load i8*,i8**%r,align 8
%eM=getelementptr inbounds i8,i8*%eF,i64 8
%eN=bitcast i8*%eM to i8**
store i8*%eL,i8**%eN,align 8
%eO=getelementptr inbounds i8,i8*%eF,i64 16
%eP=bitcast i8*%eO to i32*
store i32 2,i32*%eP,align 4
%eQ=load i8*,i8**%n,align 8
store i8*null,i8**%n,align 8
%eR=getelementptr inbounds i8,i8*%eQ,i64 8
%eS=bitcast i8*%eR to i8**
%eT=load i8*,i8**%eS,align 8
store i8*%eT,i8**%r,align 8
%eU=call i8*@sml_alloc(i32 inreg 20)#0
%eV=getelementptr inbounds i8,i8*%eU,i64 -4
%eW=bitcast i8*%eV to i32*
store i32 1342177296,i32*%eW,align 4
store i8*%eU,i8**%n,align 8
%eX=load i8*,i8**%s,align 8
store i8*null,i8**%s,align 8
%eY=bitcast i8*%eU to i8**
store i8*%eX,i8**%eY,align 8
%eZ=load i8*,i8**%r,align 8
store i8*null,i8**%r,align 8
%e0=getelementptr inbounds i8,i8*%eU,i64 8
%e1=bitcast i8*%e0 to i8**
store i8*%eZ,i8**%e1,align 8
%e2=getelementptr inbounds i8,i8*%eU,i64 16
%e3=bitcast i8*%e2 to i32*
store i32 3,i32*%e3,align 4
%e4=load i8*,i8**%o,align 8
%e5=getelementptr inbounds i8,i8*%e4,i64 8
%e6=bitcast i8*%e5 to i8**
%e7=load i8*,i8**%e6,align 8
%e8=icmp eq i8*%e7,null
br i1%e8,label%e9,label%fa
e9:
store i8*null,i8**%o,align 8
br label%gF
fa:
%fb=bitcast i8*%e7 to i8**
%fc=load i8*,i8**%fb,align 8
store i8*%fc,i8**%o,align 8
%fd=call i8*@sml_alloc(i32 inreg 28)#0
%fe=getelementptr inbounds i8,i8*%fd,i64 -4
%ff=bitcast i8*%fe to i32*
store i32 1342177304,i32*%ff,align 4
%fg=load i8*,i8**%n,align 8
store i8*null,i8**%n,align 8
%fh=bitcast i8*%fd to i8**
store i8*%fg,i8**%fh,align 8
%fi=load i8*,i8**%o,align 8
store i8*null,i8**%o,align 8
%fj=getelementptr inbounds i8,i8*%fd,i64 8
%fk=bitcast i8*%fj to i8**
store i8*%fi,i8**%fk,align 8
%fl=load i8*,i8**%q,align 8
%fm=getelementptr inbounds i8,i8*%fd,i64 16
%fn=bitcast i8*%fm to i8**
store i8*%fl,i8**%fn,align 8
%fo=getelementptr inbounds i8,i8*%fd,i64 24
%fp=bitcast i8*%fo to i32*
store i32 7,i32*%fp,align 4
%fq=bitcast i8**%h to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%fq)
%fr=bitcast i8**%i to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%fr)
%fs=bitcast i8**%j to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%fs)
%ft=bitcast i8**%k to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%ft)
%fu=bitcast i8**%l to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%fu)
%fv=bitcast i8**%m to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%fv)
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
store i8*%fd,i8**%h,align 8
%fw=load atomic i32,i32*@sml_check_flag unordered,align 4
%fx=icmp eq i32%fw,0
br i1%fx,label%fH,label%fy
fy:
call void@sml_check(i32 inreg%fw)
%fz=load i8*,i8**%h,align 8
%fA=getelementptr inbounds i8,i8*%fz,i64 8
%fB=bitcast i8*%fA to i8**
%fC=load i8*,i8**%fB,align 8
%fD=getelementptr inbounds i8,i8*%fz,i64 16
%fE=bitcast i8*%fD to i8**
%fF=load i8*,i8**%fE,align 8
%fG=bitcast i8*%fz to i8**
br label%fH
fH:
%fI=phi i8**[%fh,%fa],[%fG,%fy]
%fJ=phi i8*[%fl,%fa],[%fF,%fy]
%fK=phi i8*[%fi,%fa],[%fC,%fy]
%fL=phi i8*[%fd,%fa],[%fz,%fy]
store i8*null,i8**%h,align 8
%fM=bitcast i8*%fL to i8***
%fN=load i8**,i8***%fM,align 8
%fO=load i8*,i8**%fN,align 8
store i8*%fO,i8**%i,align 8
%fP=load i8*,i8**%fI,align 8
%fQ=getelementptr inbounds i8,i8*%fP,i64 8
%fR=bitcast i8*%fQ to i8**
%fS=load i8*,i8**%fR,align 8
store i8*%fS,i8**%j,align 8
store i8*%fK,i8**%k,align 8
store i8*%fJ,i8**%l,align 8
%fT=call i8*@sml_alloc(i32 inreg 20)#0
%fU=getelementptr inbounds i8,i8*%fT,i64 -4
%fV=bitcast i8*%fU to i32*
store i32 1342177296,i32*%fV,align 4
%fW=load i8*,i8**%j,align 8
%fX=bitcast i8*%fT to i8**
store i8*%fW,i8**%fX,align 8
%fY=load i8*,i8**%k,align 8
%fZ=getelementptr inbounds i8,i8*%fT,i64 8
%f0=bitcast i8*%fZ to i8**
store i8*%fY,i8**%f0,align 8
%f1=getelementptr inbounds i8,i8*%fT,i64 16
%f2=bitcast i8*%f1 to i32*
store i32 3,i32*%f2,align 4
%f3=call fastcc i8*@_SMLFN11TypesBasics7tpappTyE(i8*inreg%fT)
store i8*%f3,i8**%h,align 8
%f4=call i8*@sml_alloc(i32 inreg 36)#0
%f5=getelementptr inbounds i8,i8*%f4,i64 -4
%f6=bitcast i8*%f5 to i32*
store i32 1342177312,i32*%f6,align 4
store i8*%f4,i8**%m,align 8
%f7=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%f8=bitcast i8*%f4 to i8**
store i8*%f7,i8**%f8,align 8
%f9=load i8*,i8**%j,align 8
store i8*null,i8**%j,align 8
%ga=getelementptr inbounds i8,i8*%f4,i64 8
%gb=bitcast i8*%ga to i8**
store i8*%f9,i8**%gb,align 8
%gc=load i8*,i8**%k,align 8
store i8*null,i8**%k,align 8
%gd=getelementptr inbounds i8,i8*%f4,i64 16
%ge=bitcast i8*%gd to i8**
store i8*%gc,i8**%ge,align 8
%gf=load i8*,i8**%l,align 8
store i8*null,i8**%l,align 8
%gg=getelementptr inbounds i8,i8*%f4,i64 24
%gh=bitcast i8*%gg to i8**
store i8*%gf,i8**%gh,align 8
%gi=getelementptr inbounds i8,i8*%f4,i64 32
%gj=bitcast i8*%gi to i32*
store i32 15,i32*%gj,align 4
%gk=call i8*@sml_alloc(i32 inreg 20)#0
%gl=getelementptr inbounds i8,i8*%gk,i64 -4
%gm=bitcast i8*%gl to i32*
store i32 1342177296,i32*%gm,align 4
store i8*%gk,i8**%i,align 8
%gn=getelementptr inbounds i8,i8*%gk,i64 4
%go=bitcast i8*%gn to i32*
store i32 0,i32*%go,align 1
%gp=bitcast i8*%gk to i32*
store i32 24,i32*%gp,align 4
%gq=load i8*,i8**%m,align 8
store i8*null,i8**%m,align 8
%gr=getelementptr inbounds i8,i8*%gk,i64 8
%gs=bitcast i8*%gr to i8**
store i8*%gq,i8**%gs,align 8
%gt=getelementptr inbounds i8,i8*%gk,i64 16
%gu=bitcast i8*%gt to i32*
store i32 2,i32*%gu,align 4
%gv=call i8*@sml_alloc(i32 inreg 20)#0
%gw=getelementptr inbounds i8,i8*%gv,i64 -4
%gx=bitcast i8*%gw to i32*
store i32 1342177296,i32*%gx,align 4
%gy=load i8*,i8**%i,align 8
%gz=bitcast i8*%gv to i8**
store i8*%gy,i8**%gz,align 8
%gA=load i8*,i8**%h,align 8
%gB=getelementptr inbounds i8,i8*%gv,i64 8
%gC=bitcast i8*%gB to i8**
store i8*%gA,i8**%gC,align 8
%gD=getelementptr inbounds i8,i8*%gv,i64 16
%gE=bitcast i8*%gD to i32*
store i32 3,i32*%gE,align 4
call void@llvm.lifetime.end.p0i8(i64 8,i8*%fq)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%fr)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%fs)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%ft)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%fu)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%fv)
store i8*%gv,i8**%n,align 8
br label%gF
gF:
%gG=call i8*@sml_alloc(i32 inreg 20)#0
%gH=getelementptr inbounds i8,i8*%gG,i64 -4
%gI=bitcast i8*%gH to i32*
store i32 1342177296,i32*%gI,align 4
store i8*%gG,i8**%o,align 8
%gJ=getelementptr inbounds i8,i8*%gG,i64 4
%gK=bitcast i8*%gJ to i32*
store i32 0,i32*%gK,align 1
%gL=bitcast i8*%gG to i32*
store i32 9,i32*%gL,align 4
%gM=load i8*,i8**%p,align 8
store i8*null,i8**%p,align 8
%gN=getelementptr inbounds i8,i8*%gG,i64 8
%gO=bitcast i8*%gN to i8**
store i8*%gM,i8**%gO,align 8
%gP=getelementptr inbounds i8,i8*%gG,i64 16
%gQ=bitcast i8*%gP to i32*
store i32 2,i32*%gQ,align 4
%gR=call i8*@sml_alloc(i32 inreg 28)#0
%gS=getelementptr inbounds i8,i8*%gR,i64 -4
%gT=bitcast i8*%gS to i32*
store i32 1342177304,i32*%gT,align 4
%gU=load i8*,i8**%n,align 8
store i8*null,i8**%n,align 8
%gV=bitcast i8*%gR to i8**
store i8*%gU,i8**%gV,align 8
%gW=load i8*,i8**%q,align 8
store i8*null,i8**%q,align 8
%gX=getelementptr inbounds i8,i8*%gR,i64 8
%gY=bitcast i8*%gX to i8**
store i8*%gW,i8**%gY,align 8
%gZ=load i8*,i8**%o,align 8
store i8*null,i8**%o,align 8
%g0=getelementptr inbounds i8,i8*%gR,i64 16
%g1=bitcast i8*%g0 to i8**
store i8*%gZ,i8**%g1,align 8
%g2=getelementptr inbounds i8,i8*%gR,i64 24
%g3=bitcast i8*%g2 to i32*
store i32 7,i32*%g3,align 4
%g4=bitcast i8**%c to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%g4)
%g5=bitcast i8**%d to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%g5)
%g6=bitcast i8**%e to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%g6)
%g7=bitcast i8**%f to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%g7)
%g8=bitcast i8**%g to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%g8)
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
%g9=bitcast i8*%gU to i8**
%ha=load i8*,i8**%g9,align 8
store i8*%ha,i8**%c,align 8
%hb=getelementptr inbounds i8,i8*%gU,i64 8
%hc=bitcast i8*%hb to i8**
%hd=load i8*,i8**%hc,align 8
store i8*%hd,i8**%d,align 8
store i8*%gW,i8**%e,align 8
store i8*%gZ,i8**%f,align 8
%he=call i8*@sml_alloc(i32 inreg 44)#0
%hf=getelementptr inbounds i8,i8*%he,i64 -4
%hg=bitcast i8*%hf to i32*
store i32 1342177320,i32*%hg,align 4
store i8*%he,i8**%g,align 8
%hh=getelementptr inbounds i8,i8*%he,i64 4
%hi=bitcast i8*%hh to i32*
store i32 0,i32*%hi,align 1
%hj=bitcast i8*%he to i32*
store i32 1,i32*%hj,align 4
%hk=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%hl=getelementptr inbounds i8,i8*%he,i64 8
%hm=bitcast i8*%hl to i8**
store i8*%hk,i8**%hm,align 8
%hn=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%ho=getelementptr inbounds i8,i8*%he,i64 16
%hp=bitcast i8*%ho to i8**
store i8*%hn,i8**%hp,align 8
%hq=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%hr=getelementptr inbounds i8,i8*%he,i64 24
%hs=bitcast i8*%hr to i8**
store i8*%hq,i8**%hs,align 8
%ht=load i8*,i8**%f,align 8
%hu=getelementptr inbounds i8,i8*%he,i64 32
%hv=bitcast i8*%hu to i8**
store i8*%ht,i8**%hv,align 8
%hw=getelementptr inbounds i8,i8*%he,i64 40
%hx=bitcast i8*%hw to i32*
store i32 30,i32*%hx,align 4
%hy=call i8*@sml_alloc(i32 inreg 20)#0
%hz=getelementptr inbounds i8,i8*%hy,i64 -4
%hA=bitcast i8*%hz to i32*
store i32 1342177296,i32*%hA,align 4
store i8*%hy,i8**%c,align 8
%hB=getelementptr inbounds i8,i8*%hy,i64 4
%hC=bitcast i8*%hB to i32*
store i32 0,i32*%hC,align 1
%hD=bitcast i8*%hy to i32*
store i32 2,i32*%hD,align 4
%hE=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%hF=getelementptr inbounds i8,i8*%hy,i64 8
%hG=bitcast i8*%hF to i8**
store i8*%hE,i8**%hG,align 8
%hH=getelementptr inbounds i8,i8*%hy,i64 16
%hI=bitcast i8*%hH to i32*
store i32 2,i32*%hI,align 4
%hJ=call i8*@sml_alloc(i32 inreg 20)#0
%hK=getelementptr inbounds i8,i8*%hJ,i64 -4
%hL=bitcast i8*%hK to i32*
store i32 1342177296,i32*%hL,align 4
%hM=load i8*,i8**%c,align 8
%hN=bitcast i8*%hJ to i8**
store i8*%hM,i8**%hN,align 8
%hO=load i8*,i8**%f,align 8
%hP=getelementptr inbounds i8,i8*%hJ,i64 8
%hQ=bitcast i8*%hP to i8**
store i8*%hO,i8**%hQ,align 8
%hR=getelementptr inbounds i8,i8*%hJ,i64 16
%hS=bitcast i8*%hR to i32*
store i32 3,i32*%hS,align 4
call void@llvm.lifetime.end.p0i8(i64 8,i8*%g4)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%g5)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%g6)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%g7)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%g8)
store i8*%hM,i8**%n,align 8
%hT=call i8*@sml_alloc(i32 inreg 20)#0
%hU=getelementptr inbounds i8,i8*%hT,i64 -4
%hV=bitcast i8*%hU to i32*
store i32 1342177296,i32*%hV,align 4
store i8*%hT,i8**%o,align 8
%hW=getelementptr inbounds i8,i8*%hT,i64 4
%hX=bitcast i8*%hW to i32*
store i32 0,i32*%hX,align 1
%hY=bitcast i8*%hT to i32*
store i32 1,i32*%hY,align 4
%hZ=load i8*,i8**%n,align 8
store i8*null,i8**%n,align 8
%h0=getelementptr inbounds i8,i8*%hT,i64 8
%h1=bitcast i8*%h0 to i8**
store i8*%hZ,i8**%h1,align 8
%h2=getelementptr inbounds i8,i8*%hT,i64 16
%h3=bitcast i8*%h2 to i32*
store i32 2,i32*%h3,align 4
%h4=call i8*@sml_alloc(i32 inreg 12)#0
%h5=getelementptr inbounds i8,i8*%h4,i64 -4
%h6=bitcast i8*%h5 to i32*
store i32 1342177288,i32*%h6,align 4
%h7=load i8*,i8**%o,align 8
%h8=bitcast i8*%h4 to i8**
store i8*%h7,i8**%h8,align 8
%h9=getelementptr inbounds i8,i8*%h4,i64 8
%ia=bitcast i8*%h9 to i32*
store i32 1,i32*%ia,align 4
call void@llvm.lifetime.end.p0i8(i64 8,i8*%ak)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%al)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%am)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%an)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%ao)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%ap)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%aq)
br label%ib
ib:
%ic=phi i8*[null,%bg],[%dX,%cT],[%h4,%gF]
ret i8*%ic
}
define internal fastcc i8*@_SMLLN12OverloadKind16generateInstanceE_112(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*)*@_SMLLN12OverloadKind16generateInstanceE_111 to void(...)*),void(...)**%q,align 8
%r=getelementptr inbounds i8,i8*%k,i64 16
%s=bitcast i8*%r to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12OverloadKind16generateInstanceE_111 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*@_SMLFN12OverloadKind16generateInstanceE(i8*inreg%a)#4 gc"smlsharp"{
ret i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@m,i64 0,i32 2)to i8*)
}
define internal fastcc i8*@_SMLLN12OverloadKind14matchToKeyListE_118(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLLN12OverloadKind14matchToKeyListE_78(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLN12OverloadKind7compareE_122(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLFN12OverloadKind7compareE(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*@_SMLLN12OverloadKind12generateArgsE_124(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLLN12OverloadKind12generateArgsE_101(i8*inreg%a,i8*inreg%b)
%c=tail call i8*@sml_alloc(i32 inreg 4)#0
%d=bitcast i8*%c to i32*
%e=getelementptr inbounds i8,i8*%c,i64 -4
%f=bitcast i8*%e to i32*
store i32 4,i32*%f,align 4
store i32 0,i32*%d,align 4
ret i8*%c
}
define internal fastcc i8*@_SMLLN12OverloadKind11singletonTyE_126(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN12OverloadKind11singletonTyE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLN12OverloadKind12generateArgsE_127(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN12OverloadKind12generateArgsE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLN12OverloadKind16generateInstanceE_128(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLLN12OverloadKind16generateInstanceE_112(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLN12OverloadKind16generateInstanceE_129(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
ret i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@m,i64 0,i32 2)to i8*)
}
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}
