@sml_check_flag=external local_unnamed_addr global i32
@_SMLZN13UserTvarScope15decideInterfaceE=external local_unnamed_addr global i8*
@_SMLZN14ElaborateError22ProvideInfixNotDefinedE=external local_unnamed_addr global i8*
@_SMLZN9UserError10UserErrorsE=external local_unnamed_addr global i8*
@a=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLLLN10Elaborator12extendFixEnvE_40 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN10Elaborator12extendFixEnvE_67 to void(...)*),i32 -2147483647}>,align 8
@b=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN10Elaborator12extendFixEnvE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN10Elaborator12extendFixEnvE_68 to void(...)*),i32 -2147483647}>,align 8
@c=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLLL6fixEnv_44 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLL6fixEnv_69 to void(...)*),i32 -2147483647}>,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*)*@_SMLLL6fixEnv_46 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLL6fixEnv_70 to void(...)*),i32 -2147483647}>,align 8
@e=private unnamed_addr constant<{[4x i8],i32,[69x i8]}><{[4x i8]zeroinitializer,i32 -2147483579,[69x i8]c"src/compiler/compilePhases/elaborate/main/Elaborator.sml:52.41(1901)\00"}>,align 8
@f=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLLLN10Elaborator9elaborateE_49 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN10Elaborator9elaborateE_71 to void(...)*),i32 -2147483647}>,align 8
@g=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLLLN10Elaborator9elaborateE_51 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN10Elaborator9elaborateE_72 to void(...)*),i32 -2147483647}>,align 8
@h=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLLLN10Elaborator9elaborateE_53 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN10Elaborator9elaborateE_73 to void(...)*),i32 -2147483647}>,align 8
@i=private unnamed_addr constant<{[4x i8],i32,[69x i8]}><{[4x i8]zeroinitializer,i32 -2147483579,[69x i8]c"src/compiler/compilePhases/elaborate/main/Elaborator.sml:64.16(2375)\00"}>,align 8
@j=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN10Elaborator9elaborateE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN10Elaborator9elaborateE_74 to void(...)*),i32 -2147483647}>,align 8
@k=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLLL6fixEnv_59 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLL6fixEnv_75 to void(...)*),i32 -2147483647}>,align 8
@l=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLLL12resultFixEnv_61 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLL12resultFixEnv_76 to void(...)*),i32 -2147483647}>,align 8
@m=private unnamed_addr constant<{[4x i8],i32,[69x i8]}><{[4x i8]zeroinitializer,i32 -2147483579,[69x i8]c"src/compiler/compilePhases/elaborate/main/Elaborator.sml:93.16(3659)\00"}>,align 8
@n=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN10Elaborator18elaborateInterfaceE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN10Elaborator18elaborateInterfaceE_77 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN10Elaborator12extendFixEnvE=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*)
@_SMLZN10Elaborator9elaborateE=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*)
@_SMLZN10Elaborator18elaborateInterfaceE=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_ftabfb2a477b084f159d_Elaborator=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_raise(i8*inreg)local_unnamed_addr#1
declare i8*@_SMLFN13UserTvarScope15decideInterfaceE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN13UserTvarScope6decideE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN14UserErrorUtils11getWarningsE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare void@_SMLFN14UserErrorUtils12enqueueErrorE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN14UserErrorUtils20getErrorsAndWarningsE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare void@_SMLFN14UserErrorUtils20initializeErrorQueueE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN14UserErrorUtils9getErrorsE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN15ElaborateModule11elabTopDecsE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN18ElaborateInterface9elaborateE(i8*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*@_SMLFN6Symbol11symbolToLocE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN9SymbolEnv10mergeWithiE(i32 inreg,i32 inreg,i32 inreg,i32 inreg,i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN9SymbolEnv4mapiE(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*@_SMLFN9SymbolEnv9unionWithE(i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main3a60343781315c1e_Option()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main89b8631430c545af_Symbol()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_mainadeb402e3568875f_UserError_ppg()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_mainc86a8a57f9dc856e_UserErrorUtils()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_maind0c024bd2a6395e7_ElaborateError_ppg()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_mainc1a1cd5431cf96e9_ElaborateInterface()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main2d75301891d3037b_ElaborateModule()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main2e68cae8d34e5d95_UserTvarScope()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_load3a60343781315c1e_Option(i8*)local_unnamed_addr
declare void@_SML_load89b8631430c545af_Symbol(i8*)local_unnamed_addr
declare void@_SML_loadadeb402e3568875f_UserError_ppg(i8*)local_unnamed_addr
declare void@_SML_loadc86a8a57f9dc856e_UserErrorUtils(i8*)local_unnamed_addr
declare void@_SML_loadd0c024bd2a6395e7_ElaborateError_ppg(i8*)local_unnamed_addr
declare void@_SML_loadc1a1cd5431cf96e9_ElaborateInterface(i8*)local_unnamed_addr
declare void@_SML_load2d75301891d3037b_ElaborateModule(i8*)local_unnamed_addr
declare void@_SML_load2e68cae8d34e5d95_UserTvarScope(i8*)local_unnamed_addr
define private void@_SML_tabbfb2a477b084f159d_Elaborator()#3{
unreachable
}
define void@_SML_loadfb2a477b084f159d_Elaborator(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_load3a60343781315c1e_Option(i8*%a)#0
tail call void@_SML_load89b8631430c545af_Symbol(i8*%a)#0
tail call void@_SML_loadadeb402e3568875f_UserError_ppg(i8*%a)#0
tail call void@_SML_loadc86a8a57f9dc856e_UserErrorUtils(i8*%a)#0
tail call void@_SML_loadd0c024bd2a6395e7_ElaborateError_ppg(i8*%a)#0
tail call void@_SML_loadc1a1cd5431cf96e9_ElaborateInterface(i8*%a)#0
tail call void@_SML_load2d75301891d3037b_ElaborateModule(i8*%a)#0
tail call void@_SML_load2e68cae8d34e5d95_UserTvarScope(i8*%a)#0
tail call void@sml_gcroot(i8*%a,void()*@_SML_tabbfb2a477b084f159d_Elaborator,i8*@_SML_ftabfb2a477b084f159d_Elaborator,i8*null)#0
ret void
}
define void@_SML_mainfb2a477b084f159d_Elaborator()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_main3a60343781315c1e_Option()#2
tail call void@_SML_main89b8631430c545af_Symbol()#2
tail call void@_SML_mainadeb402e3568875f_UserError_ppg()#2
tail call void@_SML_mainc86a8a57f9dc856e_UserErrorUtils()#2
tail call void@_SML_maind0c024bd2a6395e7_ElaborateError_ppg()#2
tail call void@_SML_mainc1a1cd5431cf96e9_ElaborateInterface()#2
tail call void@_SML_main2d75301891d3037b_ElaborateModule()#2
tail call void@_SML_main2e68cae8d34e5d95_UserTvarScope()#2
br label%d
}
define internal fastcc i8*@_SMLLLN10Elaborator12extendFixEnvE_40(i8*inreg%a)#4 gc"smlsharp"{
%b=getelementptr inbounds i8,i8*%a,i64 8
%c=bitcast i8*%b to i8**
%d=load i8*,i8**%c,align 8
ret i8*%d
}
define fastcc i8*@_SMLFN10Elaborator12extendFixEnvE(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**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%b,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%i,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%b,align 8
br label%i
i:
%j=phi i8*[%h,%g],[%a,%k]
%l=bitcast i8*%j to i8**
%m=load i8*,i8**%l,align 8
store i8*%m,i8**%b,align 8
%n=getelementptr inbounds i8,i8*%j,i64 8
%o=bitcast i8*%n to i8**
%p=load i8*,i8**%o,align 8
store i8*%p,i8**%c,align 8
%q=call fastcc i8*@_SMLFN9SymbolEnv9unionWithE(i32 inreg 1,i32 inreg 8)
%r=getelementptr inbounds i8,i8*%q,i64 16
%s=bitcast i8*%r to i8*(i8*,i8*)**
%t=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%s,align 8
%u=bitcast i8*%q to i8**
%v=load i8*,i8**%u,align 8
%w=call fastcc i8*%t(i8*inreg%v,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*))
%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=call i8*@sml_alloc(i32 inreg 20)#0
%D=getelementptr inbounds i8,i8*%C,i64 -4
%E=bitcast i8*%D to i32*
store i32 1342177296,i32*%E,align 4
%F=load i8*,i8**%b,align 8
%G=bitcast i8*%C to i8**
store i8*%F,i8**%G,align 8
%H=load i8*,i8**%c,align 8
%I=getelementptr inbounds i8,i8*%C,i64 8
%J=bitcast i8*%I to i8**
store i8*%H,i8**%J,align 8
%K=getelementptr inbounds i8,i8*%C,i64 16
%L=bitcast i8*%K to i32*
store i32 3,i32*%L,align 4
%M=load i8*,i8**%d,align 8
%N=tail call fastcc i8*%z(i8*inreg%M,i8*inreg%C)
ret i8*%N
}
define internal fastcc i8*@_SMLLL6fixEnv_44(i8*inreg%a)#4 gc"smlsharp"{
%b=getelementptr inbounds i8,i8*%a,i64 8
%c=bitcast i8*%b to i8**
%d=load i8*,i8**%c,align 8
ret i8*%d
}
define internal fastcc i8*@_SMLLL6fixEnv_46(i8*inreg%a)#4 gc"smlsharp"{
%b=getelementptr inbounds i8,i8*%a,i64 8
%c=bitcast i8*%b to i8**
%d=load i8*,i8**%c,align 8
ret i8*%d
}
define internal fastcc i8*@_SMLLLN10Elaborator9elaborateE_49(i8*inreg%a)#2 gc"smlsharp"{
m:
%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
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
store i8*%a,i8**%b,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**%b,align 8
br label%k
k:
%l=phi i8*[%j,%i],[%a,%m]
%n=bitcast i8*%l to i8**
%o=load i8*,i8**%n,align 8
store i8*%o,i8**%b,align 8
%p=getelementptr inbounds i8,i8*%l,i64 8
%q=bitcast i8*%p to i8**
%r=load i8*,i8**%q,align 8
store i8*%r,i8**%c,align 8
%s=icmp eq i8*%r,null
br i1%s,label%Z,label%t
t:
%u=bitcast i8*%r to i8**
%v=load i8*,i8**%u,align 8
store i8*%v,i8**%d,align 8
%w=getelementptr inbounds i8,i8*%l,i64 16
%x=bitcast i8*%w to i8**
%y=load i8*,i8**%x,align 8
%z=icmp eq i8*%y,null
br i1%z,label%A,label%Z
A:
%B=load i8*,i8**@_SMLZN14ElaborateError22ProvideInfixNotDefinedE,align 8
store i8*%B,i8**%e,align 8
%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
store i8*%C,i8**%f,align 8
%F=load i8*,i8**%e,align 8
store i8*null,i8**%e,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 i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[69x i8]}>,<{[4x i8],i32,[69x i8]}>*@e,i64 0,i32 2,i64 0),i8**%I,align 8
%J=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%K=getelementptr inbounds i8,i8*%C,i64 16
%L=bitcast i8*%K to i8**
store i8*%J,i8**%L,align 8
%M=getelementptr inbounds i8,i8*%C,i64 24
%N=bitcast i8*%M to i32*
store i32 7,i32*%N,align 4
%O=call i8*@sml_alloc(i32 inreg 20)#0
%P=getelementptr inbounds i8,i8*%O,i64 -4
%Q=bitcast i8*%P to i32*
store i32 1342177296,i32*%Q,align 4
%R=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%S=bitcast i8*%O to i8**
store i8*%R,i8**%S,align 8
%T=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%U=getelementptr inbounds i8,i8*%O,i64 8
%V=bitcast i8*%U to i8**
store i8*%T,i8**%V,align 8
%W=getelementptr inbounds i8,i8*%O,i64 16
%X=bitcast i8*%W to i32*
store i32 3,i32*%X,align 4
call fastcc void@_SMLFN14UserErrorUtils12enqueueErrorE(i8*inreg%O)
%Y=load i8*,i8**%c,align 8
ret i8*%Y
Z:
ret i8*%r
}
define internal fastcc i8*@_SMLLLN10Elaborator9elaborateE_51(i8*inreg%a)#2 gc"smlsharp"{
%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%e,label%g
e:
%f=bitcast i8*%a to i8**
br label%j
g:
call void@sml_check(i32 inreg%c)
%h=bitcast i8**%b to i8***
%i=load i8**,i8***%h,align 8
br label%j
j:
%k=phi i8**[%i,%g],[%f,%e]
%l=load i8*,i8**%k,align 8
%m=tail call fastcc i8*@_SMLFN6Symbol11symbolToLocE(i8*inreg%l)
ret i8*%m
}
define internal fastcc i8*@_SMLLLN10Elaborator9elaborateE_53(i8*inreg%a)#2 gc"smlsharp"{
%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%e,label%g
e:
%f=bitcast i8*%a to i8**
br label%j
g:
call void@sml_check(i32 inreg%c)
%h=bitcast i8**%b to i8***
%i=load i8**,i8***%h,align 8
br label%j
j:
%k=phi i8**[%i,%g],[%f,%e]
%l=load i8*,i8**%k,align 8
%m=tail call fastcc i8*@_SMLFN6Symbol11symbolToLocE(i8*inreg%l)
ret i8*%m
}
define internal fastcc i8*@_SMLLLN10Elaborator9elaborateE_56(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**%h,align 8
store i8*%b,i8**%c,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**%c,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**%c,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**%d,align 8
call fastcc void@_SMLFN14UserErrorUtils20initializeErrorQueueE(i32 inreg 0)
%v=load i8*,i8**%c,align 8
%w=icmp eq i8*%v,null
store i8*null,i8**%c,align 8
br i1%w,label%x,label%K
x:
%y=call fastcc i8*@_SMLFN9SymbolEnv5emptyE(i32 inreg 1,i32 inreg 8)
store i8*%y,i8**%c,align 8
%z=call fastcc i8*@_SMLFN9SymbolEnv5emptyE(i32 inreg 1,i32 inreg 8)
store i8*%z,i8**%e,align 8
%A=call i8*@sml_alloc(i32 inreg 36)#0
%B=getelementptr inbounds i8,i8*%A,i64 -4
%C=bitcast i8*%B to i32*
store i32 1342177312,i32*%C,align 4
%D=bitcast i8*%A to i8**
store i8*null,i8**%D,align 8
%E=load i8*,i8**%c,align 8
%F=getelementptr inbounds i8,i8*%A,i64 8
%G=bitcast i8*%F to i8**
store i8*%E,i8**%G,align 8
%H=load i8*,i8**%e,align 8
%I=getelementptr inbounds i8,i8*%A,i64 16
%J=bitcast i8*%I to i8**
store i8*%H,i8**%J,align 8
br label%as
K:
%L=bitcast i8*%v to i8**
%M=load i8*,i8**%L,align 8
%N=call fastcc i8*@_SMLFN18ElaborateInterface9elaborateE(i8*inreg%M)
%O=bitcast i8*%N to i8**
%P=load i8*,i8**%O,align 8
store i8*%P,i8**%c,align 8
%Q=getelementptr inbounds i8,i8*%N,i64 8
%R=bitcast i8*%Q to i8**
%S=load i8*,i8**%R,align 8
store i8*%S,i8**%e,align 8
%T=getelementptr inbounds i8,i8*%N,i64 16
%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*%N,i64 24
%X=bitcast i8*%W to i8**
%Y=load i8*,i8**%X,align 8
store i8*%Y,i8**%g,align 8
%Z=call i8*@sml_alloc(i32 inreg 12)#0
%aa=getelementptr inbounds i8,i8*%Z,i64 -4
%ab=bitcast i8*%aa to i32*
store i32 1342177288,i32*%ab,align 4
store i8*%Z,i8**%i,align 8
%ac=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ad=bitcast i8*%Z to i8**
store i8*%ac,i8**%ad,align 8
%ae=getelementptr inbounds i8,i8*%Z,i64 8
%af=bitcast i8*%ae to i32*
store i32 1,i32*%af,align 4
%ag=call i8*@sml_alloc(i32 inreg 36)#0
%ah=getelementptr inbounds i8,i8*%ag,i64 -4
%ai=bitcast i8*%ah to i32*
store i32 1342177312,i32*%ai,align 4
%aj=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%ak=bitcast i8*%ag to i8**
store i8*%aj,i8**%ak,align 8
%al=load i8*,i8**%f,align 8
%am=getelementptr inbounds i8,i8*%ag,i64 8
%an=bitcast i8*%am to i8**
store i8*%al,i8**%an,align 8
%ao=load i8*,i8**%e,align 8
%ap=getelementptr inbounds i8,i8*%ag,i64 16
%aq=bitcast i8*%ap to i8**
store i8*%ao,i8**%aq,align 8
%ar=load i8*,i8**%g,align 8
br label%as
as:
%at=phi i8*[%ag,%K],[%A,%x]
%au=phi i8*[%ar,%K],[null,%x]
%av=phi i8*[%ao,%K],[%H,%x]
%aw=phi i8*[%al,%K],[%E,%x]
%ax=phi i8*[%aj,%K],[null,%x]
%ay=getelementptr inbounds i8,i8*%at,i64 24
%az=bitcast i8*%ay to i8**
store i8*%au,i8**%az,align 8
%aA=getelementptr inbounds i8,i8*%at,i64 32
%aB=bitcast i8*%aA to i32*
store i32 15,i32*%aB,align 4
store i8*%ax,i8**%c,align 8
store i8*%aw,i8**%e,align 8
store i8*%av,i8**%f,align 8
store i8*%au,i8**%g,align 8
%aC=call fastcc i8*@_SMLFN6Option3mapE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%aD=getelementptr inbounds i8,i8*%aC,i64 16
%aE=bitcast i8*%aD to i8*(i8*,i8*)**
%aF=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aE,align 8
%aG=bitcast i8*%aC to i8**
%aH=load i8*,i8**%aG,align 8
%aI=load i8*,i8**@_SMLZN13UserTvarScope15decideInterfaceE,align 8
%aJ=call fastcc i8*%aF(i8*inreg%aH,i8*inreg%aI)
%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**%c,align 8
store i8*null,i8**%c,align 8
%aQ=call fastcc i8*%aM(i8*inreg%aO,i8*inreg%aP)
store i8*%aQ,i8**%c,align 8
%aR=call fastcc i8*@_SMLFN9SymbolEnv9unionWithE(i32 inreg 1,i32 inreg 8)
%aS=getelementptr inbounds i8,i8*%aR,i64 16
%aT=bitcast i8*%aS to i8*(i8*,i8*)**
%aU=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aT,align 8
%aV=bitcast i8*%aR to i8**
%aW=load i8*,i8**%aV,align 8
%aX=call fastcc i8*%aU(i8*inreg%aW,i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@c,i64 0,i32 2)to i8*))
%aY=getelementptr inbounds i8,i8*%aX,i64 16
%aZ=bitcast i8*%aY to i8*(i8*,i8*)**
%a0=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aZ,align 8
%a1=bitcast i8*%aX to i8**
%a2=load i8*,i8**%a1,align 8
store i8*%a2,i8**%i,align 8
%a3=bitcast i8**%h to i8***
%a4=load i8**,i8***%a3,align 8
%a5=load i8*,i8**%a4,align 8
store i8*%a5,i8**%h,align 8
%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**%h,align 8
store i8*null,i8**%h,align 8
%ba=bitcast i8*%a6 to i8**
store i8*%a9,i8**%ba,align 8
%bb=load i8*,i8**%e,align 8
store i8*null,i8**%e,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
%bg=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%bh=call fastcc i8*%a0(i8*inreg%bg,i8*inreg%a6)
store i8*%bh,i8**%e,align 8
%bi=call fastcc i8*@_SMLFN15ElaborateModule11elabTopDecsE(i8*inreg%bh)
%bj=getelementptr inbounds i8,i8*%bi,i64 16
%bk=bitcast i8*%bj to i8*(i8*,i8*)**
%bl=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bk,align 8
%bm=bitcast i8*%bi to i8**
%bn=load i8*,i8**%bm,align 8
%bo=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%bp=call fastcc i8*%bl(i8*inreg%bn,i8*inreg%bo)
%bq=bitcast i8*%bp to i8**
%br=load i8*,i8**%bq,align 8
%bs=getelementptr inbounds i8,i8*%bp,i64 8
%bt=bitcast i8*%bs to i8**
%bu=load i8*,i8**%bt,align 8
store i8*%bu,i8**%g,align 8
%bv=call fastcc i8*@_SMLFN13UserTvarScope6decideE(i8*inreg%br)
store i8*%bv,i8**%h,align 8
%bw=call fastcc i8*@_SMLFN9SymbolEnv9unionWithE(i32 inreg 1,i32 inreg 8)
%bx=getelementptr inbounds i8,i8*%bw,i64 16
%by=bitcast i8*%bx to i8*(i8*,i8*)**
%bz=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%by,align 8
%bA=bitcast i8*%bw to i8**
%bB=load i8*,i8**%bA,align 8
%bC=call fastcc i8*%bz(i8*inreg%bB,i8*inreg 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*))
%bD=getelementptr inbounds i8,i8*%bC,i64 16
%bE=bitcast i8*%bD to i8*(i8*,i8*)**
%bF=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bE,align 8
%bG=bitcast i8*%bC to i8**
%bH=load i8*,i8**%bG,align 8
store i8*%bH,i8**%i,align 8
%bI=call i8*@sml_alloc(i32 inreg 20)#0
%bJ=getelementptr inbounds i8,i8*%bI,i64 -4
%bK=bitcast i8*%bJ to i32*
store i32 1342177296,i32*%bK,align 4
%bL=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%bM=bitcast i8*%bI to i8**
store i8*%bL,i8**%bM,align 8
%bN=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%bO=getelementptr inbounds i8,i8*%bI,i64 8
%bP=bitcast i8*%bO to i8**
store i8*%bN,i8**%bP,align 8
%bQ=getelementptr inbounds i8,i8*%bI,i64 16
%bR=bitcast i8*%bQ to i32*
store i32 3,i32*%bR,align 4
%bS=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%bT=call fastcc i8*%bF(i8*inreg%bS,i8*inreg%bI)
%bU=call fastcc i8*@_SMLFN15ElaborateModule11elabTopDecsE(i8*inreg%bT)
%bV=getelementptr inbounds i8,i8*%bU,i64 16
%bW=bitcast i8*%bV to i8*(i8*,i8*)**
%bX=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bW,align 8
%bY=bitcast i8*%bU to i8**
%bZ=load i8*,i8**%bY,align 8
%b0=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%b1=call fastcc i8*%bX(i8*inreg%bZ,i8*inreg%b0)
%b2=bitcast i8*%b1 to i8**
%b3=load i8*,i8**%b2,align 8
%b4=getelementptr inbounds i8,i8*%b1,i64 8
%b5=bitcast i8*%b4 to i8**
%b6=load i8*,i8**%b5,align 8
store i8*%b6,i8**%d,align 8
%b7=call fastcc i8*@_SMLFN13UserTvarScope6decideE(i8*inreg%b3)
store i8*%b7,i8**%e,align 8
%b8=call fastcc i8*@_SMLFN9SymbolEnv10mergeWithiE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%b9=getelementptr inbounds i8,i8*%b8,i64 16
%ca=bitcast i8*%b9 to i8*(i8*,i8*)**
%cb=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%ca,align 8
%cc=bitcast i8*%b8 to i8**
%cd=load i8*,i8**%cc,align 8
%ce=call fastcc i8*%cb(i8*inreg%cd,i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@f,i64 0,i32 2)to i8*))
%cf=getelementptr inbounds i8,i8*%ce,i64 16
%cg=bitcast i8*%cf to i8*(i8*,i8*)**
%ch=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%cg,align 8
%ci=bitcast i8*%ce to i8**
%cj=load i8*,i8**%ci,align 8
store i8*%cj,i8**%i,align 8
%ck=call fastcc i8*@_SMLFN9SymbolEnv4mapiE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%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=call fastcc i8*%cn(i8*inreg%cp,i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@g,i64 0,i32 2)to i8*))
%cr=getelementptr inbounds i8,i8*%cq,i64 16
%cs=bitcast i8*%cr to i8*(i8*,i8*)**
%ct=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%cs,align 8
%cu=bitcast i8*%cq to i8**
%cv=load i8*,i8**%cu,align 8
%cw=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%cx=call fastcc i8*%ct(i8*inreg%cv,i8*inreg%cw)
store i8*%cx,i8**%f,align 8
%cy=call fastcc i8*@_SMLFN9SymbolEnv4mapiE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%cz=getelementptr inbounds i8,i8*%cy,i64 16
%cA=bitcast i8*%cz to i8*(i8*,i8*)**
%cB=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%cA,align 8
%cC=bitcast i8*%cy to i8**
%cD=load i8*,i8**%cC,align 8
%cE=call fastcc i8*%cB(i8*inreg%cD,i8*inreg 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*))
%cF=getelementptr inbounds i8,i8*%cE,i64 16
%cG=bitcast i8*%cF to i8*(i8*,i8*)**
%cH=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%cG,align 8
%cI=bitcast i8*%cE to i8**
%cJ=load i8*,i8**%cI,align 8
%cK=load i8*,i8**%d,align 8
%cL=call fastcc i8*%cH(i8*inreg%cJ,i8*inreg%cK)
store i8*%cL,i8**%g,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
%cP=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%cQ=bitcast i8*%cM to i8**
store i8*%cP,i8**%cQ,align 8
%cR=load i8*,i8**%g,align 8
store i8*null,i8**%g,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=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%cX=call fastcc i8*%ch(i8*inreg%cW,i8*inreg%cM)
%cY=call i8*@sml_alloc(i32 inreg 28)#0
%cZ=getelementptr inbounds i8,i8*%cY,i64 -4
%c0=bitcast i8*%cZ to i32*
store i32 1342177304,i32*%c0,align 4
store i8*%cY,i8**%f,align 8
%c1=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%c2=bitcast i8*%cY to i8**
store i8*%c1,i8**%c2,align 8
%c3=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%c4=getelementptr inbounds i8,i8*%cY,i64 8
%c5=bitcast i8*%c4 to i8**
store i8*%c3,i8**%c5,align 8
%c6=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%c7=getelementptr inbounds i8,i8*%cY,i64 16
%c8=bitcast i8*%c7 to i8**
store i8*%c6,i8**%c8,align 8
%c9=getelementptr inbounds i8,i8*%cY,i64 24
%da=bitcast i8*%c9 to i32*
store i32 7,i32*%da,align 4
%db=call fastcc i8*@_SMLFN14UserErrorUtils9getErrorsE(i32 inreg 0)
%dc=icmp eq i8*%db,null
br i1%dc,label%dd,label%ds
dd:
%de=call fastcc i8*@_SMLFN14UserErrorUtils11getWarningsE(i32 inreg 0)
store i8*%de,i8**%c,align 8
%df=call i8*@sml_alloc(i32 inreg 28)#0
%dg=getelementptr inbounds i8,i8*%df,i64 -4
%dh=bitcast i8*%dg to i32*
store i32 1342177304,i32*%dh,align 4
%di=load i8*,i8**%d,align 8
%dj=bitcast i8*%df to i8**
store i8*%di,i8**%dj,align 8
%dk=load i8*,i8**%f,align 8
%dl=getelementptr inbounds i8,i8*%df,i64 8
%dm=bitcast i8*%dl to i8**
store i8*%dk,i8**%dm,align 8
%dn=load i8*,i8**%c,align 8
%do=getelementptr inbounds i8,i8*%df,i64 16
%dp=bitcast i8*%do to i8**
store i8*%dn,i8**%dp,align 8
%dq=getelementptr inbounds i8,i8*%df,i64 24
%dr=bitcast i8*%dq to i32*
store i32 7,i32*%dr,align 4
ret i8*%df
ds:
store i8*null,i8**%d,align 8
store i8*null,i8**%f,align 8
%dt=load i8*,i8**@_SMLZN9UserError10UserErrorsE,align 8
store i8*%dt,i8**%c,align 8
%du=call fastcc i8*@_SMLFN14UserErrorUtils20getErrorsAndWarningsE(i32 inreg 0)
store i8*%du,i8**%d,align 8
%dv=call i8*@sml_alloc(i32 inreg 28)#0
%dw=getelementptr inbounds i8,i8*%dv,i64 -4
%dx=bitcast i8*%dw to i32*
store i32 1342177304,i32*%dx,align 4
store i8*%dv,i8**%e,align 8
%dy=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%dz=bitcast i8*%dv to i8**
store i8*%dy,i8**%dz,align 8
%dA=getelementptr inbounds i8,i8*%dv,i64 8
%dB=bitcast i8*%dA to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[69x i8]}>,<{[4x i8],i32,[69x i8]}>*@i,i64 0,i32 2,i64 0),i8**%dB,align 8
%dC=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%dD=getelementptr inbounds i8,i8*%dv,i64 16
%dE=bitcast i8*%dD to i8**
store i8*%dC,i8**%dE,align 8
%dF=getelementptr inbounds i8,i8*%dv,i64 24
%dG=bitcast i8*%dF to i32*
store i32 7,i32*%dG,align 4
%dH=call i8*@sml_alloc(i32 inreg 60)#0
%dI=getelementptr inbounds i8,i8*%dH,i64 -4
%dJ=bitcast i8*%dI to i32*
store i32 1342177336,i32*%dJ,align 4
%dK=getelementptr inbounds i8,i8*%dH,i64 56
%dL=bitcast i8*%dK to i32*
store i32 1,i32*%dL,align 4
%dM=load i8*,i8**%e,align 8
%dN=bitcast i8*%dH to i8**
store i8*%dM,i8**%dN,align 8
call void@sml_raise(i8*inreg%dH)#1
unreachable
}
define fastcc i8*@_SMLFN10Elaborator9elaborateE(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*)*@_SMLLLN10Elaborator9elaborateE_56 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*)*@_SMLLLN10Elaborator9elaborateE_56 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*@_SMLLL6fixEnv_59(i8*inreg%a)#4 gc"smlsharp"{
%b=getelementptr inbounds i8,i8*%a,i64 8
%c=bitcast i8*%b to i8**
%d=load i8*,i8**%c,align 8
ret i8*%d
}
define internal fastcc i8*@_SMLLL12resultFixEnv_61(i8*inreg%a)#4 gc"smlsharp"{
%b=getelementptr inbounds i8,i8*%a,i64 8
%c=bitcast i8*%b to i8**
%d=load i8*,i8**%c,align 8
ret i8*%d
}
define internal fastcc i8*@_SMLLLN10Elaborator18elaborateInterfaceE_64(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**%f,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 i8**
%p=load i8*,i8**%o,align 8
store i8*%p,i8**%c,align 8
%q=getelementptr inbounds i8,i8*%m,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*%m,i64 16
%u=bitcast i8*%t to i8**
%v=load i8*,i8**%u,align 8
store i8*%v,i8**%e,align 8
call fastcc void@_SMLFN14UserErrorUtils20initializeErrorQueueE(i32 inreg 0)
%w=call i8*@sml_alloc(i32 inreg 36)#0
%x=getelementptr inbounds i8,i8*%w,i64 -4
%y=bitcast i8*%x to i32*
store i32 1342177312,i32*%y,align 4
store i8*%w,i8**%g,align 8
call void@llvm.memset.p0i8.i64(i8*%w,i8 0,i64 16,i1 false)
%z=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%A=getelementptr inbounds i8,i8*%w,i64 16
%B=bitcast i8*%A to i8**
store i8*%z,i8**%B,align 8
%C=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%D=getelementptr inbounds i8,i8*%w,i64 24
%E=bitcast i8*%D to i8**
store i8*%C,i8**%E,align 8
%F=getelementptr inbounds i8,i8*%w,i64 32
%G=bitcast i8*%F to i32*
store i32 15,i32*%G,align 4
%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
%K=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%L=bitcast i8*%H to i8**
store i8*%K,i8**%L,align 8
%M=load i8*,i8**%g,align 8
store i8*null,i8**%g,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 fastcc i8*@_SMLFN18ElaborateInterface9elaborateE(i8*inreg%H)
%S=bitcast i8*%R to i8**
%T=load i8*,i8**%S,align 8
%U=getelementptr inbounds i8,i8*%R,i64 16
%V=bitcast i8*%U to i8**
%W=load i8*,i8**%V,align 8
store i8*%W,i8**%c,align 8
%X=getelementptr inbounds i8,i8*%R,i64 24
%Y=bitcast i8*%X to i8**
%Z=load i8*,i8**%Y,align 8
store i8*%Z,i8**%d,align 8
%aa=call fastcc i8*@_SMLFN13UserTvarScope15decideInterfaceE(i8*inreg%T)
store i8*%aa,i8**%e,align 8
%ab=call fastcc i8*@_SMLFN9SymbolEnv9unionWithE(i32 inreg 1,i32 inreg 8)
%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=call fastcc i8*%ae(i8*inreg%ag,i8*inreg 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*))
%ai=getelementptr inbounds i8,i8*%ah,i64 16
%aj=bitcast i8*%ai to i8*(i8*,i8*)**
%ak=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aj,align 8
%al=bitcast i8*%ah to i8**
%am=load i8*,i8**%al,align 8
store i8*%am,i8**%g,align 8
%an=bitcast i8**%f to i8***
%ao=load i8**,i8***%an,align 8
%ap=load i8*,i8**%ao,align 8
store i8*%ap,i8**%f,align 8
%aq=call i8*@sml_alloc(i32 inreg 20)#0
%ar=getelementptr inbounds i8,i8*%aq,i64 -4
%as=bitcast i8*%ar to i32*
store i32 1342177296,i32*%as,align 4
%at=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%au=bitcast i8*%aq to i8**
store i8*%at,i8**%au,align 8
%av=load i8*,i8**%c,align 8
%aw=getelementptr inbounds i8,i8*%aq,i64 8
%ax=bitcast i8*%aw to i8**
store i8*%av,i8**%ax,align 8
%ay=getelementptr inbounds i8,i8*%aq,i64 16
%az=bitcast i8*%ay to i32*
store i32 3,i32*%az,align 4
%aA=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%aB=call fastcc i8*%ak(i8*inreg%aA,i8*inreg%aq)
%aC=call fastcc i8*@_SMLFN15ElaborateModule11elabTopDecsE(i8*inreg%aB)
%aD=getelementptr inbounds i8,i8*%aC,i64 16
%aE=bitcast i8*%aD to i8*(i8*,i8*)**
%aF=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aE,align 8
%aG=bitcast i8*%aC to i8**
%aH=load i8*,i8**%aG,align 8
%aI=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aJ=call fastcc i8*%aF(i8*inreg%aH,i8*inreg%aI)
%aK=bitcast i8*%aJ to i8**
%aL=load i8*,i8**%aK,align 8
%aM=getelementptr inbounds i8,i8*%aJ,i64 8
%aN=bitcast i8*%aM to i8**
%aO=load i8*,i8**%aN,align 8
store i8*%aO,i8**%d,align 8
%aP=call fastcc i8*@_SMLFN13UserTvarScope6decideE(i8*inreg%aL)
store i8*%aP,i8**%f,align 8
%aQ=call fastcc i8*@_SMLFN9SymbolEnv9unionWithE(i32 inreg 1,i32 inreg 8)
%aR=getelementptr inbounds i8,i8*%aQ,i64 16
%aS=bitcast i8*%aR to i8*(i8*,i8*)**
%aT=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aS,align 8
%aU=bitcast i8*%aQ to i8**
%aV=load i8*,i8**%aU,align 8
%aW=call fastcc i8*%aT(i8*inreg%aV,i8*inreg 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*))
%aX=getelementptr inbounds i8,i8*%aW,i64 16
%aY=bitcast i8*%aX to i8*(i8*,i8*)**
%aZ=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aY,align 8
%a0=bitcast i8*%aW to i8**
%a1=load i8*,i8**%a0,align 8
store i8*%a1,i8**%g,align 8
%a2=call i8*@sml_alloc(i32 inreg 20)#0
%a3=getelementptr inbounds i8,i8*%a2,i64 -4
%a4=bitcast i8*%a3 to i32*
store i32 1342177296,i32*%a4,align 4
%a5=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%a6=bitcast i8*%a2 to i8**
store i8*%a5,i8**%a6,align 8
%a7=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%a8=getelementptr inbounds i8,i8*%a2,i64 8
%a9=bitcast i8*%a8 to i8**
store i8*%a7,i8**%a9,align 8
%ba=getelementptr inbounds i8,i8*%a2,i64 16
%bb=bitcast i8*%ba to i32*
store i32 3,i32*%bb,align 4
%bc=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%bd=call fastcc i8*%aZ(i8*inreg%bc,i8*inreg%a2)
store i8*%bd,i8**%c,align 8
%be=bitcast i8**%e to i8***
%bf=load i8**,i8***%be,align 8
%bg=load i8*,i8**%bf,align 8
store i8*%bg,i8**%g,align 8
%bh=getelementptr inbounds i8*,i8**%bf,i64 3
%bi=load i8*,i8**%bh,align 8
store i8*%bi,i8**%e,align 8
%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
store i8*%bj,i8**%d,align 8
%bm=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%bn=bitcast i8*%bj to i8**
store i8*%bm,i8**%bn,align 8
%bo=load i8*,i8**%e,align 8
store i8*null,i8**%e,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**%f,align 8
store i8*null,i8**%f,align 8
%bs=getelementptr inbounds i8,i8*%bj,i64 16
%bt=bitcast i8*%bs to i8**
store i8*%br,i8**%bt,align 8
%bu=getelementptr inbounds i8,i8*%bj,i64 24
%bv=bitcast i8*%bu to i32*
store i32 7,i32*%bv,align 4
%bw=call fastcc i8*@_SMLFN14UserErrorUtils9getErrorsE(i32 inreg 0)
%bx=icmp eq i8*%bw,null
br i1%bx,label%by,label%bN
by:
%bz=call fastcc i8*@_SMLFN14UserErrorUtils11getWarningsE(i32 inreg 0)
store i8*%bz,i8**%e,align 8
%bA=call i8*@sml_alloc(i32 inreg 28)#0
%bB=getelementptr inbounds i8,i8*%bA,i64 -4
%bC=bitcast i8*%bB to i32*
store i32 1342177304,i32*%bC,align 4
%bD=load i8*,i8**%c,align 8
%bE=bitcast i8*%bA to i8**
store i8*%bD,i8**%bE,align 8
%bF=load i8*,i8**%d,align 8
%bG=getelementptr inbounds i8,i8*%bA,i64 8
%bH=bitcast i8*%bG to i8**
store i8*%bF,i8**%bH,align 8
%bI=load i8*,i8**%e,align 8
%bJ=getelementptr inbounds i8,i8*%bA,i64 16
%bK=bitcast i8*%bJ to i8**
store i8*%bI,i8**%bK,align 8
%bL=getelementptr inbounds i8,i8*%bA,i64 24
%bM=bitcast i8*%bL to i32*
store i32 7,i32*%bM,align 4
ret i8*%bA
bN:
store i8*null,i8**%d,align 8
%bO=load i8*,i8**@_SMLZN9UserError10UserErrorsE,align 8
store i8*%bO,i8**%c,align 8
%bP=call fastcc i8*@_SMLFN14UserErrorUtils20getErrorsAndWarningsE(i32 inreg 0)
store i8*%bP,i8**%d,align 8
%bQ=call i8*@sml_alloc(i32 inreg 28)#0
%bR=getelementptr inbounds i8,i8*%bQ,i64 -4
%bS=bitcast i8*%bR to i32*
store i32 1342177304,i32*%bS,align 4
store i8*%bQ,i8**%e,align 8
%bT=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bU=bitcast i8*%bQ to i8**
store i8*%bT,i8**%bU,align 8
%bV=getelementptr inbounds i8,i8*%bQ,i64 8
%bW=bitcast i8*%bV to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[69x i8]}>,<{[4x i8],i32,[69x i8]}>*@m,i64 0,i32 2,i64 0),i8**%bW,align 8
%bX=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%bY=getelementptr inbounds i8,i8*%bQ,i64 16
%bZ=bitcast i8*%bY to i8**
store i8*%bX,i8**%bZ,align 8
%b0=getelementptr inbounds i8,i8*%bQ,i64 24
%b1=bitcast i8*%b0 to i32*
store i32 7,i32*%b1,align 4
%b2=call i8*@sml_alloc(i32 inreg 60)#0
%b3=getelementptr inbounds i8,i8*%b2,i64 -4
%b4=bitcast i8*%b3 to i32*
store i32 1342177336,i32*%b4,align 4
%b5=getelementptr inbounds i8,i8*%b2,i64 56
%b6=bitcast i8*%b5 to i32*
store i32 1,i32*%b6,align 4
%b7=load i8*,i8**%e,align 8
%b8=bitcast i8*%b2 to i8**
store i8*%b7,i8**%b8,align 8
call void@sml_raise(i8*inreg%b2)#1
unreachable
}
define fastcc i8*@_SMLFN10Elaborator18elaborateInterfaceE(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*)*@_SMLLLN10Elaborator18elaborateInterfaceE_64 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*)*@_SMLLLN10Elaborator18elaborateInterfaceE_64 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*@_SMLLLN10Elaborator12extendFixEnvE_67(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=getelementptr inbounds i8,i8*%b,i64 8
%d=bitcast i8*%c to i8**
%e=load i8*,i8**%d,align 8
ret i8*%e
}
define internal fastcc i8*@_SMLLLN10Elaborator12extendFixEnvE_68(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN10Elaborator12extendFixEnvE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLL6fixEnv_69(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=getelementptr inbounds i8,i8*%b,i64 8
%d=bitcast i8*%c to i8**
%e=load i8*,i8**%d,align 8
ret i8*%e
}
define internal fastcc i8*@_SMLLL6fixEnv_70(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=getelementptr inbounds i8,i8*%b,i64 8
%d=bitcast i8*%c to i8**
%e=load i8*,i8**%d,align 8
ret i8*%e
}
define internal fastcc i8*@_SMLLLN10Elaborator9elaborateE_71(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLLLN10Elaborator9elaborateE_49(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN10Elaborator9elaborateE_72(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLLLN10Elaborator9elaborateE_51(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN10Elaborator9elaborateE_73(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLLLN10Elaborator9elaborateE_53(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN10Elaborator9elaborateE_74(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN10Elaborator9elaborateE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLL6fixEnv_75(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=getelementptr inbounds i8,i8*%b,i64 8
%d=bitcast i8*%c to i8**
%e=load i8*,i8**%d,align 8
ret i8*%e
}
define internal fastcc i8*@_SMLLL12resultFixEnv_76(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=getelementptr inbounds i8,i8*%b,i64 8
%d=bitcast i8*%c to i8**
%e=load i8*,i8**%d,align 8
ret i8*%e
}
define internal fastcc i8*@_SMLLLN10Elaborator18elaborateInterfaceE_77(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN10Elaborator18elaborateInterfaceE(i8*inreg%b)
ret i8*%c
}
declare void@llvm.memset.p0i8.i64(i8*,i8,i64,i1)#0
attributes#0={nounwind}
attributes#1={noreturn}
attributes#2={uwtable}
attributes#3={noreturn nounwind}
attributes#4={nounwind uwtable}
