@sml_check_flag=external local_unnamed_addr global i32
@_SMLZ4Size=external unnamed_addr constant i8*
@_SMLZ8Overflow=external unnamed_addr constant i8*
@a=private unnamed_addr constant<{[4x i8],i32,[41x i8]}><{[4x i8]zeroinitializer,i32 -2147483607,[41x i8]c"src/basis/main/StringCvt.sml:45.20(1112)\00"}>,align 8
@b=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8)*@_SMLFN9StringCvt7padLeftE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN9StringCvt7padLeftE_106 to void(...)*),i32 -2147483647}>,align 8
@c=private unnamed_addr constant<{[4x i8],i32,[41x i8]}><{[4x i8]zeroinitializer,i32 -2147483607,[41x i8]c"src/basis/main/StringCvt.sml:61.20(1568)\00"}>,align 8
@d=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8)*@_SMLFN9StringCvt8padRightE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN9StringCvt8padRightE_108 to void(...)*),i32 -2147483647}>,align 8
@e=private unnamed_addr constant<{[4x i8],i32,[41x i8]}><{[4x i8]zeroinitializer,i32 -2147483607,[41x i8]c"src/basis/main/StringCvt.sml:77.39(2087)\00"}>,align 8
@f=private unnamed_addr constant<{[4x i8],i32,[41x i8]}><{[4x i8]zeroinitializer,i32 -2147483607,[41x i8]c"src/basis/main/StringCvt.sml:80.58(2245)\00"}>,align 8
@g=private unnamed_addr constant<{[4x i8],i32,[41x i8]}><{[4x i8]zeroinitializer,i32 -2147483607,[41x i8]c"src/basis/main/StringCvt.sml:81.18(2268)\00"}>,align 8
@h=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32,i32)*@_SMLFN9StringCvt6splitlE to void(...)*),void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLLN9StringCvt6splitlE_110 to void(...)*),i32 -2147483647}>,align 8
@i=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32,i32)*@_SMLFN9StringCvt5takelE to void(...)*),void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLLN9StringCvt5takelE_111 to void(...)*),i32 -2147483647}>,align 8
@j=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32,i32)*@_SMLFN9StringCvt5droplE to void(...)*),void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLLN9StringCvt5droplE_112 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*(i32,i32)*@_SMLFN9StringCvt6skipWSE to void(...)*),void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLLN9StringCvt6skipWSE_113 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*(i32,i32)*@_SMLFN9StringCvt10scanStringE to void(...)*),void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLLN9StringCvt10scanStringE_115 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN9StringCvt7padLeftE=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*)
@_SMLZN9StringCvt8padRightE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@d,i64 0,i32 2)to i8*)
@_SMLZN9StringCvt6splitlE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@h,i64 0,i32 2)to i8*)
@_SMLZN9StringCvt5takelE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@i,i64 0,i32 2)to i8*)
@_SMLZN9StringCvt5droplE=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*)
@_SMLZN9StringCvt6skipWSE=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*)
@_SMLZN9StringCvt10scanStringE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@l,i64 0,i32 2)to i8*)
@_SML_ftab5c37eb24573fc5f9_StringCvt=external global i8
@m=internal unnamed_addr global i1 false
declare void@llvm.gcroot(i8**,i8*)#0
declare{i32,i1}@llvm.sadd.with.overflow.i32(i32,i32)#0
declare i8*@sml_alloc(i32 inreg)local_unnamed_addr#0
declare void@sml_check(i32 inreg)local_unnamed_addr
declare void@sml_gcroot(i8*,void()*,i8*,i8*)local_unnamed_addr#0
declare i32@sml_personality(...)#0
declare void@sml_raise(i8*inreg)local_unnamed_addr#1
define private void@_SML_tabb5c37eb24573fc5f9_StringCvt()#2{
unreachable
}
define void@_SML_load5c37eb24573fc5f9_StringCvt(i8*%a)local_unnamed_addr#0{
%b=load i1,i1*@m,align 1
br i1%b,label%c,label%d
c:
ret void
d:
store i1 true,i1*@m,align 1
tail call void@sml_gcroot(i8*%a,void()*@_SML_tabb5c37eb24573fc5f9_StringCvt,i8*@_SML_ftab5c37eb24573fc5f9_StringCvt,i8*null)#0
ret void
}
define void@_SML_main5c37eb24573fc5f9_StringCvt()local_unnamed_addr#3 gc"smlsharp"{
ret void
}
define internal fastcc i8*@_SMLLLN9StringCvt7padLeftE_67(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%e,align 8
store i8*%b,i8**%c,align 8
%f=getelementptr inbounds i8,i8*%b,i64 -4
%g=bitcast i8*%f to i32*
%h=load i32,i32*%g,align 4
%i=and i32%h,268435455
%j=add nsw i32%i,-1
%k=bitcast i8**%e to i32**
%l=bitcast i8*%a to i32*
%m=load i32,i32*%l,align 4
%n=icmp slt i32%m,%i
br i1%n,label%o,label%p
o:
ret i8*%b
p:
%q=icmp ugt i32%m,268435454
br i1%q,label%C,label%r
r:
%s=add nsw i32%m,1
%t=call i8*@sml_alloc(i32 inreg%s)#0
%u=getelementptr inbounds i8,i8*%t,i64 -4
%v=bitcast i8*%u to i32*
store i32%s,i32*%v,align 4
%w=load i32*,i32**%k,align 8
%x=load i32,i32*%w,align 4
%y=sext i32%x to i64
%z=getelementptr inbounds i8,i8*%t,i64%y
store i8 0,i8*%z,align 1
store i8*%t,i8**%d,align 8
%A=load i32,i32*%w,align 4
%B=sub nsw i32%A,%j
br label%U
C:
store i8*null,i8**%e,align 8
%D=load i8*,i8**@_SMLZ4Size,align 8
store i8*%D,i8**%c,align 8
%E=call i8*@sml_alloc(i32 inreg 20)#0
%F=getelementptr inbounds i8,i8*%E,i64 -4
%G=bitcast i8*%F to i32*
store i32 1342177296,i32*%G,align 4
store i8*%E,i8**%d,align 8
%H=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%I=bitcast i8*%E to i8**
store i8*%H,i8**%I,align 8
%J=getelementptr inbounds i8,i8*%E,i64 8
%K=bitcast i8*%J to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[41x i8]}>,<{[4x i8],i32,[41x i8]}>*@a,i64 0,i32 2,i64 0),i8**%K,align 8
%L=getelementptr inbounds i8,i8*%E,i64 16
%M=bitcast i8*%L to i32*
store i32 3,i32*%M,align 4
%N=call i8*@sml_alloc(i32 inreg 60)#0
%O=getelementptr inbounds i8,i8*%N,i64 -4
%P=bitcast i8*%O to i32*
store i32 1342177336,i32*%P,align 4
%Q=getelementptr inbounds i8,i8*%N,i64 56
%R=bitcast i8*%Q to i32*
store i32 1,i32*%R,align 4
%S=load i8*,i8**%d,align 8
%T=bitcast i8*%N to i8**
store i8*%S,i8**%T,align 8
call void@sml_raise(i8*inreg%N)#1
unreachable
U:
%V=phi i32[0,%r],[%ai,%ab]
%W=load atomic i32,i32*@sml_check_flag unordered,align 4
%X=icmp eq i32%W,0
br i1%X,label%Z,label%Y
Y:
call void@sml_check(i32 inreg%W)
br label%Z
Z:
%aa=icmp slt i32%V,%B
br i1%aa,label%ab,label%aj
ab:
%ac=load i8*,i8**%e,align 8
%ad=getelementptr inbounds i8,i8*%ac,i64 4
%ae=load i8,i8*%ad,align 1
%af=load i8*,i8**%d,align 8
%ag=zext i32%V to i64
%ah=getelementptr inbounds i8,i8*%af,i64%ag
store i8%ae,i8*%ah,align 1
%ai=add nuw nsw i32%V,1
br label%U
aj:
%ak=load i8*,i8**%c,align 8
%al=load i8*,i8**%d,align 8
%am=sext i32%B to i64
%an=getelementptr inbounds i8,i8*%al,i64%am
call void@llvm.memmove.p0i8.p0i8.i32(i8*%an,i8*%ak,i32%j,i1 false)
%ao=load i8*,i8**%d,align 8
ret i8*%ao
}
define internal fastcc i8*@_SMLLLN9StringCvt7padLeftE_68(i8*inreg%a,i32 inreg%b)#3 gc"smlsharp"{
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
%d=load i8,i8*%a,align 1
%e=call i8*@sml_alloc(i32 inreg 12)#0
%f=bitcast i8*%e to i32*
%g=getelementptr inbounds i8,i8*%e,i64 -4
%h=bitcast i8*%g to i32*
store i32 1342177288,i32*%h,align 4
store i8*%e,i8**%c,align 8
store i32%b,i32*%f,align 4
%i=getelementptr inbounds i8,i8*%e,i64 4
store i8%d,i8*%i,align 1
%j=getelementptr inbounds i8,i8*%e,i64 8
%k=bitcast i8*%j to i32*
store i32 0,i32*%k,align 4
%l=call i8*@sml_alloc(i32 inreg 28)#0
%m=getelementptr inbounds i8,i8*%l,i64 -4
%n=bitcast i8*%m to i32*
store i32 1342177304,i32*%n,align 4
%o=load i8*,i8**%c,align 8
%p=bitcast i8*%l to i8**
store i8*%o,i8**%p,align 8
%q=getelementptr inbounds i8,i8*%l,i64 8
%r=bitcast i8*%q to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN9StringCvt7padLeftE_67 to void(...)*),void(...)**%r,align 8
%s=getelementptr inbounds i8,i8*%l,i64 16
%t=bitcast i8*%s to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN9StringCvt7padLeftE_67 to void(...)*),void(...)**%t,align 8
%u=getelementptr inbounds i8,i8*%l,i64 24
%v=bitcast i8*%u to i32*
store i32 -2147483647,i32*%v,align 4
ret i8*%l
}
define fastcc i8*@_SMLFN9StringCvt7padLeftE(i8 inreg%a)#3 gc"smlsharp"{
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
%c=call i8*@sml_alloc(i32 inreg 12)#0
%d=getelementptr inbounds i8,i8*%c,i64 -4
%e=bitcast i8*%d to i32*
store i32 1342177288,i32*%e,align 4
store i8*%c,i8**%b,align 8
store i8%a,i8*%c,align 1
%f=getelementptr inbounds i8,i8*%c,i64 8
%g=bitcast i8*%f to i32*
store i32 0,i32*%g,align 4
%h=call i8*@sml_alloc(i32 inreg 28)#0
%i=getelementptr inbounds i8,i8*%h,i64 -4
%j=bitcast i8*%i to i32*
store i32 1342177304,i32*%j,align 4
%k=load i8*,i8**%b,align 8
%l=bitcast i8*%h to i8**
store i8*%k,i8**%l,align 8
%m=getelementptr inbounds i8,i8*%h,i64 8
%n=bitcast i8*%m to void(...)**
store void(...)*bitcast(i8*(i8*,i32)*@_SMLLLN9StringCvt7padLeftE_68 to void(...)*),void(...)**%n,align 8
%o=getelementptr inbounds i8,i8*%h,i64 16
%p=bitcast i8*%o to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN9StringCvt7padLeftE_105 to void(...)*),void(...)**%p,align 8
%q=getelementptr inbounds i8,i8*%h,i64 24
%r=bitcast i8*%q to i32*
store i32 -2147483647,i32*%r,align 4
ret i8*%h
}
define internal fastcc i8*@_SMLLLN9StringCvt8padRightE_72(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%e,align 8
store i8*%b,i8**%c,align 8
%f=getelementptr inbounds i8,i8*%b,i64 -4
%g=bitcast i8*%f to i32*
%h=load i32,i32*%g,align 4
%i=and i32%h,268435455
%j=add nsw i32%i,-1
%k=bitcast i8**%e to i32**
%l=bitcast i8*%a to i32*
%m=load i32,i32*%l,align 4
%n=icmp slt i32%m,%i
br i1%n,label%o,label%p
o:
ret i8*%b
p:
%q=icmp ugt i32%m,268435454
br i1%q,label%B,label%r
r:
%s=add nsw i32%m,1
%t=call i8*@sml_alloc(i32 inreg%s)#0
%u=getelementptr inbounds i8,i8*%t,i64 -4
%v=bitcast i8*%u to i32*
store i32%s,i32*%v,align 4
%w=load i32*,i32**%k,align 8
%x=load i32,i32*%w,align 4
%y=sext i32%x to i64
%z=getelementptr inbounds i8,i8*%t,i64%y
store i8 0,i8*%z,align 1
store i8*%t,i8**%d,align 8
%A=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
call void@llvm.memmove.p0i8.p0i8.i32(i8*%t,i8*%A,i32%j,i1 false)
br label%T
B:
store i8*null,i8**%e,align 8
%C=load i8*,i8**@_SMLZ4Size,align 8
store i8*%C,i8**%c,align 8
%D=call i8*@sml_alloc(i32 inreg 20)#0
%E=getelementptr inbounds i8,i8*%D,i64 -4
%F=bitcast i8*%E to i32*
store i32 1342177296,i32*%F,align 4
store i8*%D,i8**%d,align 8
%G=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%H=bitcast i8*%D to i8**
store i8*%G,i8**%H,align 8
%I=getelementptr inbounds i8,i8*%D,i64 8
%J=bitcast i8*%I to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[41x i8]}>,<{[4x i8],i32,[41x i8]}>*@c,i64 0,i32 2,i64 0),i8**%J,align 8
%K=getelementptr inbounds i8,i8*%D,i64 16
%L=bitcast i8*%K to i32*
store i32 3,i32*%L,align 4
%M=call i8*@sml_alloc(i32 inreg 60)#0
%N=getelementptr inbounds i8,i8*%M,i64 -4
%O=bitcast i8*%N to i32*
store i32 1342177336,i32*%O,align 4
%P=getelementptr inbounds i8,i8*%M,i64 56
%Q=bitcast i8*%P to i32*
store i32 1,i32*%Q,align 4
%R=load i8*,i8**%d,align 8
%S=bitcast i8*%M to i8**
store i8*%R,i8**%S,align 8
call void@sml_raise(i8*inreg%M)#1
unreachable
T:
%U=phi i32[%j,%r],[%aj,%ad]
%V=load atomic i32,i32*@sml_check_flag unordered,align 4
%W=icmp eq i32%V,0
br i1%W,label%Y,label%X
X:
call void@sml_check(i32 inreg%V)
br label%Y
Y:
%Z=load i8*,i8**%e,align 8
%aa=bitcast i8*%Z to i32*
%ab=load i32,i32*%aa,align 4
%ac=icmp slt i32%U,%ab
br i1%ac,label%ad,label%ak
ad:
%ae=getelementptr inbounds i8,i8*%Z,i64 4
%af=load i8,i8*%ae,align 1
%ag=load i8*,i8**%d,align 8
%ah=sext i32%U to i64
%ai=getelementptr inbounds i8,i8*%ag,i64%ah
store i8%af,i8*%ai,align 1
%aj=add nsw i32%U,1
br label%T
ak:
%al=load i8*,i8**%d,align 8
ret i8*%al
}
define internal fastcc i8*@_SMLLLN9StringCvt8padRightE_73(i8*inreg%a,i32 inreg%b)#3 gc"smlsharp"{
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
%d=load i8,i8*%a,align 1
%e=call i8*@sml_alloc(i32 inreg 12)#0
%f=bitcast i8*%e to i32*
%g=getelementptr inbounds i8,i8*%e,i64 -4
%h=bitcast i8*%g to i32*
store i32 1342177288,i32*%h,align 4
store i8*%e,i8**%c,align 8
store i32%b,i32*%f,align 4
%i=getelementptr inbounds i8,i8*%e,i64 4
store i8%d,i8*%i,align 1
%j=getelementptr inbounds i8,i8*%e,i64 8
%k=bitcast i8*%j to i32*
store i32 0,i32*%k,align 4
%l=call i8*@sml_alloc(i32 inreg 28)#0
%m=getelementptr inbounds i8,i8*%l,i64 -4
%n=bitcast i8*%m to i32*
store i32 1342177304,i32*%n,align 4
%o=load i8*,i8**%c,align 8
%p=bitcast i8*%l to i8**
store i8*%o,i8**%p,align 8
%q=getelementptr inbounds i8,i8*%l,i64 8
%r=bitcast i8*%q to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN9StringCvt8padRightE_72 to void(...)*),void(...)**%r,align 8
%s=getelementptr inbounds i8,i8*%l,i64 16
%t=bitcast i8*%s to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN9StringCvt8padRightE_72 to void(...)*),void(...)**%t,align 8
%u=getelementptr inbounds i8,i8*%l,i64 24
%v=bitcast i8*%u to i32*
store i32 -2147483647,i32*%v,align 4
ret i8*%l
}
define fastcc i8*@_SMLFN9StringCvt8padRightE(i8 inreg%a)#3 gc"smlsharp"{
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
%c=call i8*@sml_alloc(i32 inreg 12)#0
%d=getelementptr inbounds i8,i8*%c,i64 -4
%e=bitcast i8*%d to i32*
store i32 1342177288,i32*%e,align 4
store i8*%c,i8**%b,align 8
store i8%a,i8*%c,align 1
%f=getelementptr inbounds i8,i8*%c,i64 8
%g=bitcast i8*%f to i32*
store i32 0,i32*%g,align 4
%h=call i8*@sml_alloc(i32 inreg 28)#0
%i=getelementptr inbounds i8,i8*%h,i64 -4
%j=bitcast i8*%i to i32*
store i32 1342177304,i32*%j,align 4
%k=load i8*,i8**%b,align 8
%l=bitcast i8*%h to i8**
store i8*%k,i8**%l,align 8
%m=getelementptr inbounds i8,i8*%h,i64 8
%n=bitcast i8*%m to void(...)**
store void(...)*bitcast(i8*(i8*,i32)*@_SMLLLN9StringCvt8padRightE_73 to void(...)*),void(...)**%n,align 8
%o=getelementptr inbounds i8,i8*%h,i64 16
%p=bitcast i8*%o to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN9StringCvt8padRightE_107 to void(...)*),void(...)**%p,align 8
%q=getelementptr inbounds i8,i8*%h,i64 24
%r=bitcast i8*%q to i32*
store i32 -2147483647,i32*%r,align 4
ret i8*%h
}
define internal fastcc i8*@_SMLLLN9StringCvt6splitlE_79(i8*inreg%a,i32 inreg%b,i32 inreg%c,i8*inreg%d,i8*inreg%e)unnamed_addr#4 gc"smlsharp"personality i32(...)*@sml_personality{
%f=alloca i8*,align 8
%g=alloca i8*,align 8
%h=alloca i8*,align 8
%i=alloca i8*,align 8
%j=alloca i8*,align 8
%k=alloca i8*,align 8
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
call void@llvm.gcroot(i8**%h,i8*null)#0
call void@llvm.gcroot(i8**%i,i8*null)#0
call void@llvm.gcroot(i8**%j,i8*null)#0
call void@llvm.gcroot(i8**%k,i8*null)#0
store i8*%a,i8**%f,align 8
store i8*%d,i8**%g,align 8
store i8*%e,i8**%h,align 8
%l=load atomic i32,i32*@sml_check_flag unordered,align 4
%m=icmp eq i32%l,0
br i1%m,label%o,label%n
n:
call void@sml_check(i32 inreg%l)
br label%o
o:
%p=add i32%c,11
%q=sub i32 0,%c
%r=and i32%p,%q
%s=add i32%c,7
%t=add i32%s,%r
%u=and i32%t,-8
%v=lshr i32%r,3
%w=add nsw i32%v,-1
%x=shl i32%b,%w
%y=shl i32%x,1
%z=or i32%y,1
%A=or i32%u,4
%B=and i32%q,%c
%C=and i32%s,%q
%D=add i32%s,%C
%E=and i32%D,-8
%F=lshr i32%C,3
%G=shl i32%b,%F
%H=or i32%G,1
%I=or i32%E,4
%J=call i8*@sml_alloc(i32 inreg%A)#0
%K=or i32%u,1342177280
%L=getelementptr inbounds i8,i8*%J,i64 -4
%M=bitcast i8*%L to i32*
store i32%K,i32*%M,align 4
call void@llvm.memset.p0i8.i32(i8*%J,i8 0,i32%A,i1 false)
%N=bitcast i8*%J to i8**
store i8*null,i8**%N,align 8
%O=getelementptr inbounds i8,i8*%J,i64 8
%P=bitcast i8*%O to i32*
store i32 0,i32*%P,align 4
%Q=icmp eq i32%b,0
%R=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%S=sext i32%r to i64
%T=getelementptr inbounds i8,i8*%J,i64%S
br i1%Q,label%U,label%V
U:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%T,i8*%R,i32%c,i1 false)
br label%X
V:
%W=bitcast i8*%T to i8**
store i8*%R,i8**%W,align 8
br label%X
X:
%Y=sext i32%u to i64
%Z=getelementptr inbounds i8,i8*%J,i64%Y
%aa=bitcast i8*%Z to i32*
store i32%z,i32*%aa,align 4
%ab=sext i32%B to i64
br label%ac
ac:
%ad=phi i8*[%bL,%bX],[%J,%X]
store i8*%ad,i8**%h,align 8
%ae=bitcast i8*%ad to i8**
%af=load i8*,i8**%ae,align 8
store i8*%af,i8**%i,align 8
%ag=getelementptr inbounds i8,i8*%ad,i64 8
%ah=bitcast i8*%ag to i32*
%ai=load i32,i32*%ah,align 4
br i1%Q,label%an,label%aj
aj:
store i8*null,i8**%h,align 8
%ak=getelementptr inbounds i8,i8*%ad,i64%S
%al=bitcast i8*%ak to i8**
%am=load i8*,i8**%al,align 8
br label%at
an:
%ao=call i8*@sml_alloc(i32 inreg%c)#0
%ap=getelementptr inbounds i8,i8*%ao,i64 -4
%aq=bitcast i8*%ap to i32*
store i32%c,i32*%aq,align 4
%ar=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%as=getelementptr inbounds i8,i8*%ar,i64%S
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%ao,i8*%as,i32%c,i1 false)
br label%at
at:
%au=phi i8*[%ao,%an],[%am,%aj]
store i8*%au,i8**%h,align 8
%av=load i8*,i8**%g,align 8
%aw=getelementptr inbounds i8,i8*%av,i64 16
%ax=bitcast i8*%aw to i8*(i8*,i8*)**
%ay=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%ax,align 8
%az=bitcast i8*%av to i8**
%aA=load i8*,i8**%az,align 8
%aB=invoke fastcc i8*%ay(i8*inreg%aA,i8*inreg%au)
to label%aC unwind label%cl
aC:
%aD=icmp eq i8*%aB,null
br i1%aD,label%aE,label%aR
aE:
store i8*null,i8**%f,align 8
store i8*null,i8**%g,align 8
%aF=call i8*@sml_alloc(i32 inreg%A)#0
%aG=getelementptr inbounds i8,i8*%aF,i64 -4
%aH=bitcast i8*%aG to i32*
store i32%K,i32*%aH,align 4
call void@llvm.memset.p0i8.i32(i8*%aF,i8 0,i32%A,i1 false)
%aI=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%aJ=bitcast i8*%aF to i8**
store i8*%aI,i8**%aJ,align 8
%aK=getelementptr inbounds i8,i8*%aF,i64 8
%aL=bitcast i8*%aK to i32*
store i32%ai,i32*%aL,align 4
%aM=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%aN=getelementptr inbounds i8,i8*%aF,i64%S
br i1%Q,label%aO,label%aP
aO:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%aN,i8*%aM,i32%c,i1 false)
br label%cd
aP:
%aQ=bitcast i8*%aN to i8**
store i8*%aM,i8**%aQ,align 8
br label%cd
aR:
%aS=bitcast i8*%aB to i8**
%aT=load i8*,i8**%aS,align 8
store i8*%aT,i8**%j,align 8
%aU=load i8,i8*%aT,align 1
br i1%Q,label%aZ,label%aV
aV:
store i8*null,i8**%j,align 8
%aW=getelementptr inbounds i8,i8*%aT,i64%ab
%aX=bitcast i8*%aW to i8**
%aY=load i8*,i8**%aX,align 8
br label%a5
aZ:
%a0=call i8*@sml_alloc(i32 inreg%c)#0
%a1=getelementptr inbounds i8,i8*%a0,i64 -4
%a2=bitcast i8*%a1 to i32*
store i32%c,i32*%a2,align 4
%a3=load i8*,i8**%j,align 8
store i8*null,i8**%j,align 8
%a4=getelementptr inbounds i8,i8*%a3,i64%ab
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%a0,i8*%a4,i32%c,i1 false)
br label%a5
a5:
%a6=phi i8*[%a0,%aZ],[%aY,%aV]
store i8*%a6,i8**%j,align 8
%a7=load i8*,i8**%f,align 8
%a8=getelementptr inbounds i8,i8*%a7,i64 16
%a9=bitcast i8*%a8 to i8*(i8*,i8*)**
%ba=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%a9,align 8
%bb=bitcast i8*%a7 to i8**
%bc=load i8*,i8**%bb,align 8
store i8*%bc,i8**%k,align 8
%bd=call i8*@sml_alloc(i32 inreg 1)#0
%be=getelementptr inbounds i8,i8*%bd,i64 -4
%bf=bitcast i8*%be to i32*
store i32 1,i32*%bf,align 4
store i8%aU,i8*%bd,align 1
%bg=load i8*,i8**%k,align 8
store i8*null,i8**%k,align 8
%bh=invoke fastcc i8*%ba(i8*inreg%bg,i8*inreg%bd)
to label%bi unwind label%cl
bi:
%bj=bitcast i8*%bh to i32*
%bk=load i32,i32*%bj,align 4
%bl=icmp eq i32%bk,0
br i1%bl,label%b0,label%bm
bm:
store i8*null,i8**%h,align 8
%bn=call{i32,i1}@llvm.sadd.with.overflow.i32(i32%ai,i32 1)#0
%bo=extractvalue{i32,i1}%bn,1
br i1%bo,label%bp,label%bA
bp:
store i8*null,i8**%g,align 8
store i8*null,i8**%i,align 8
store i8*null,i8**%j,align 8
%bq=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%bq,i8**%f,align 8
%br=call i8*@sml_alloc(i32 inreg 20)#0
%bs=getelementptr inbounds i8,i8*%br,i64 -4
%bt=bitcast i8*%bs to i32*
store i32 1342177296,i32*%bt,align 4
%bu=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%bv=bitcast i8*%br to i8**
store i8*%bu,i8**%bv,align 8
%bw=getelementptr inbounds i8,i8*%br,i64 8
%bx=bitcast i8*%bw to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[41x i8]}>,<{[4x i8],i32,[41x i8]}>*@e,i64 0,i32 2,i64 0),i8**%bx,align 8
%by=getelementptr inbounds i8,i8*%br,i64 16
%bz=bitcast i8*%by to i32*
store i32 3,i32*%bz,align 4
br label%cr
bA:
%bB=add nsw i32%ai,1
%bC=call i8*@sml_alloc(i32 inreg 20)#0
%bD=getelementptr inbounds i8,i8*%bC,i64 -4
%bE=bitcast i8*%bD to i32*
store i32 1342177296,i32*%bE,align 4
store i8*%bC,i8**%h,align 8
%bF=getelementptr inbounds i8,i8*%bC,i64 1
call void@llvm.memset.p0i8.i32(i8*%bF,i8 0,i32 7,i1 false)
store i8%aU,i8*%bC,align 1
%bG=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%bH=getelementptr inbounds i8,i8*%bC,i64 8
%bI=bitcast i8*%bH to i8**
store i8*%bG,i8**%bI,align 8
%bJ=getelementptr inbounds i8,i8*%bC,i64 16
%bK=bitcast i8*%bJ to i32*
store i32 2,i32*%bK,align 4
%bL=call i8*@sml_alloc(i32 inreg%A)#0
%bM=getelementptr inbounds i8,i8*%bL,i64 -4
%bN=bitcast i8*%bM to i32*
store i32%K,i32*%bN,align 4
call void@llvm.memset.p0i8.i32(i8*%bL,i8 0,i32%A,i1 false)
%bO=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%bP=bitcast i8*%bL to i8**
store i8*%bO,i8**%bP,align 8
%bQ=getelementptr inbounds i8,i8*%bL,i64 8
%bR=bitcast i8*%bQ to i32*
store i32%bB,i32*%bR,align 4
%bS=load i8*,i8**%j,align 8
store i8*null,i8**%j,align 8
%bT=getelementptr inbounds i8,i8*%bL,i64%S
br i1%Q,label%bU,label%bV
bU:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%bT,i8*%bS,i32%c,i1 false)
br label%bX
bV:
%bW=bitcast i8*%bT to i8**
store i8*%bS,i8**%bW,align 8
br label%bX
bX:
%bY=getelementptr inbounds i8,i8*%bL,i64%Y
%bZ=bitcast i8*%bY to i32*
store i32%z,i32*%bZ,align 4
br label%ac
b0:
store i8*null,i8**%f,align 8
store i8*null,i8**%g,align 8
store i8*null,i8**%j,align 8
%b1=call i8*@sml_alloc(i32 inreg%A)#0
%b2=getelementptr inbounds i8,i8*%b1,i64 -4
%b3=bitcast i8*%b2 to i32*
store i32%K,i32*%b3,align 4
call void@llvm.memset.p0i8.i32(i8*%b1,i8 0,i32%A,i1 false)
%b4=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%b5=bitcast i8*%b1 to i8**
store i8*%b4,i8**%b5,align 8
%b6=getelementptr inbounds i8,i8*%b1,i64 8
%b7=bitcast i8*%b6 to i32*
store i32%ai,i32*%b7,align 4
%b8=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%b9=getelementptr inbounds i8,i8*%b1,i64%S
br i1%Q,label%ca,label%cb
ca:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%b9,i8*%b8,i32%c,i1 false)
br label%cd
cb:
%cc=bitcast i8*%b9 to i8**
store i8*%b8,i8**%cc,align 8
br label%cd
cd:
%ce=phi i8*[%aF,%aP],[%aF,%aO],[%b1,%cb],[%b1,%ca]
%cf=phi i32*[%aL,%aP],[%aL,%aO],[%b7,%cb],[%b7,%ca]
%cg=phi i8**[%aJ,%aP],[%aJ,%aO],[%b5,%cb],[%b5,%ca]
%ch=getelementptr inbounds i8,i8*%ce,i64%Y
%ci=bitcast i8*%ch to i32*
store i32%z,i32*%ci,align 4
store i8*%ce,i8**%g,align 8
%cj=load i8*,i8**%cg,align 8
store i8*%cj,i8**%f,align 8
%ck=load i32,i32*%cf,align 4
br i1%Q,label%c1,label%cX
cl:
%cm=landingpad{i8*,i8*}
catch i8*null
%cn=extractvalue{i8*,i8*}%cm,1
%co=bitcast i8*%cn to i8**
%cp=load i8*,i8**%co,align 8
store i8*null,i8**%f,align 8
store i8*null,i8**%g,align 8
store i8*null,i8**%i,align 8
store i8*null,i8**%h,align 8
store i8*null,i8**%j,align 8
%cq=bitcast i8*%cp to i8**
br label%cr
cr:
%cs=phi i8**[%cq,%cl],[%bv,%bp]
%ct=phi i8*[%cp,%cl],[%br,%bp]
store i8*%ct,i8**%f,align 8
%cu=load i8*,i8**%cs,align 8
%cv=load i8*,i8**@_SMLZ8Overflow,align 8
%cw=icmp eq i8*%cu,%cv
br i1%cw,label%cx,label%cP
cx:
%cy=load i8*,i8**@_SMLZ4Size,align 8
store i8*%cy,i8**%f,align 8
%cz=call i8*@sml_alloc(i32 inreg 20)#0
%cA=getelementptr inbounds i8,i8*%cz,i64 -4
%cB=bitcast i8*%cA to i32*
store i32 1342177296,i32*%cB,align 4
store i8*%cz,i8**%g,align 8
%cC=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%cD=bitcast i8*%cz to i8**
store i8*%cC,i8**%cD,align 8
%cE=getelementptr inbounds i8,i8*%cz,i64 8
%cF=bitcast i8*%cE to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[41x i8]}>,<{[4x i8],i32,[41x i8]}>*@f,i64 0,i32 2,i64 0),i8**%cF,align 8
%cG=getelementptr inbounds i8,i8*%cz,i64 16
%cH=bitcast i8*%cG to i32*
store i32 3,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**%g,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=call i8*@sml_alloc(i32 inreg 60)#0
%cR=getelementptr inbounds i8,i8*%cQ,i64 -4
%cS=bitcast i8*%cR to i32*
store i32 1342177336,i32*%cS,align 4
%cT=getelementptr inbounds i8,i8*%cQ,i64 56
%cU=bitcast i8*%cT to i32*
store i32 1,i32*%cU,align 4
%cV=load i8*,i8**%f,align 8
%cW=bitcast i8*%cQ to i8**
store i8*%cV,i8**%cW,align 8
call void@sml_raise(i8*inreg%cQ)#1
unreachable
cX:
store i8*null,i8**%g,align 8
%cY=getelementptr inbounds i8,i8*%ce,i64%S
%cZ=bitcast i8*%cY to i8**
%c0=load i8*,i8**%cZ,align 8
br label%c7
c1:
%c2=call i8*@sml_alloc(i32 inreg%c)#0
%c3=getelementptr inbounds i8,i8*%c2,i64 -4
%c4=bitcast i8*%c3 to i32*
store i32%c,i32*%c4,align 4
%c5=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%c6=getelementptr inbounds i8,i8*%c5,i64%S
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%c2,i8*%c6,i32%c,i1 false)
br label%c7
c7:
%c8=phi i8*[%c2,%c1],[%c0,%cX]
store i8*%c8,i8**%g,align 8
%c9=icmp ugt i32%ck,268435454
br i1%c9,label%dp,label%da
da:
%db=add nsw i32%ck,1
%dc=call i8*@sml_alloc(i32 inreg%db)#0
%dd=getelementptr inbounds i8,i8*%dc,i64 -4
%de=bitcast i8*%dd to i32*
store i32%db,i32*%de,align 4
%df=sext i32%ck to i64
%dg=getelementptr inbounds i8,i8*%dc,i64%df
store i8 0,i8*%dg,align 1
store i8*%dc,i8**%h,align 8
%dh=add nsw i32%ck,-1
%di=call i8*@sml_alloc(i32 inreg 20)#0
%dj=bitcast i8*%di to i32*
%dk=getelementptr inbounds i8,i8*%di,i64 -4
%dl=bitcast i8*%dk to i32*
store i32 1342177296,i32*%dl,align 4
%dm=getelementptr inbounds i8,i8*%di,i64 4
%dn=bitcast i8*%dm to i32*
store i32 0,i32*%dn,align 1
store i32%dh,i32*%dj,align 4
%do=load i8*,i8**%f,align 8
br label%dH
dp:
store i8*null,i8**%g,align 8
%dq=load i8*,i8**@_SMLZ4Size,align 8
store i8*%dq,i8**%f,align 8
%dr=call i8*@sml_alloc(i32 inreg 20)#0
%ds=getelementptr inbounds i8,i8*%dr,i64 -4
%dt=bitcast i8*%ds to i32*
store i32 1342177296,i32*%dt,align 4
store i8*%dr,i8**%g,align 8
%du=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%dv=bitcast i8*%dr to i8**
store i8*%du,i8**%dv,align 8
%dw=getelementptr inbounds i8,i8*%dr,i64 8
%dx=bitcast i8*%dw to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[41x i8]}>,<{[4x i8],i32,[41x i8]}>*@g,i64 0,i32 2,i64 0),i8**%dx,align 8
%dy=getelementptr inbounds i8,i8*%dr,i64 16
%dz=bitcast i8*%dy to i32*
store i32 3,i32*%dz,align 4
%dA=call i8*@sml_alloc(i32 inreg 60)#0
%dB=getelementptr inbounds i8,i8*%dA,i64 -4
%dC=bitcast i8*%dB to i32*
store i32 1342177336,i32*%dC,align 4
%dD=getelementptr inbounds i8,i8*%dA,i64 56
%dE=bitcast i8*%dD to i32*
store i32 1,i32*%dE,align 4
%dF=load i8*,i8**%g,align 8
%dG=bitcast i8*%dA to i8**
store i8*%dF,i8**%dG,align 8
call void@sml_raise(i8*inreg%dA)#1
unreachable
dH:
%dI=phi i8*[%dZ,%dQ],[%di,%da]
%dJ=phi i8*[%d5,%dQ],[%do,%da]
%dK=phi i32[%dY,%dQ],[%dh,%da]
store i8*null,i8**%f,align 8
%dL=getelementptr inbounds i8,i8*%dI,i64 8
%dM=bitcast i8*%dL to i8**
store i8*%dJ,i8**%dM,align 8
%dN=getelementptr inbounds i8,i8*%dI,i64 16
%dO=bitcast i8*%dN to i32*
store i32 2,i32*%dO,align 4
%dP=icmp eq i8*%dJ,null
br i1%dP,label%d6,label%dQ
dQ:
%dR=load i8,i8*%dJ,align 1
%dS=getelementptr inbounds i8,i8*%dJ,i64 8
%dT=bitcast i8*%dS to i8**
%dU=load i8*,i8**%dT,align 8
store i8*%dU,i8**%f,align 8
%dV=load i8*,i8**%h,align 8
%dW=sext i32%dK to i64
%dX=getelementptr inbounds i8,i8*%dV,i64%dW
store i8%dR,i8*%dX,align 1
%dY=add nsw i32%dK,-1
%dZ=call i8*@sml_alloc(i32 inreg 20)#0
%d0=bitcast i8*%dZ to i32*
%d1=getelementptr inbounds i8,i8*%dZ,i64 -4
%d2=bitcast i8*%d1 to i32*
store i32 1342177296,i32*%d2,align 4
%d3=getelementptr inbounds i8,i8*%dZ,i64 4
%d4=bitcast i8*%d3 to i32*
store i32 0,i32*%d4,align 1
store i32%dY,i32*%d0,align 4
%d5=load i8*,i8**%f,align 8
br label%dH
d6:
%d7=call i8*@sml_alloc(i32 inreg%I)#0
%d8=or i32%E,1342177280
%d9=getelementptr inbounds i8,i8*%d7,i64 -4
%ea=bitcast i8*%d9 to i32*
store i32%d8,i32*%ea,align 4
call void@llvm.memset.p0i8.i32(i8*%d7,i8 0,i32%I,i1 false)
%eb=load i8*,i8**%h,align 8
%ec=bitcast i8*%d7 to i8**
store i8*%eb,i8**%ec,align 8
%ed=load i8*,i8**%g,align 8
%ee=sext i32%C to i64
%ef=getelementptr inbounds i8,i8*%d7,i64%ee
br i1%Q,label%eg,label%eh
eg:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%ef,i8*%ed,i32%c,i1 false)
br label%ej
eh:
%ei=bitcast i8*%ef to i8**
store i8*%ed,i8**%ei,align 8
br label%ej
ej:
%ek=sext i32%E to i64
%el=getelementptr inbounds i8,i8*%d7,i64%ek
%em=bitcast i8*%el to i32*
store i32%H,i32*%em,align 4
ret i8*%d7
}
define internal fastcc i8*@_SMLLLN9StringCvt6splitlE_81(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
l:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%c,align 8
store i8*%b,i8**%d,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%j,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%c,align 8
%i=load i8*,i8**%d,align 8
br label%j
j:
%k=phi i8*[%i,%g],[%b,%l]
%m=phi i8*[%h,%g],[%a,%l]
%n=bitcast i8*%m to i8**
%o=load i8*,i8**%n,align 8
%p=getelementptr inbounds i8,i8*%m,i64 16
%q=bitcast i8*%p to i32*
%r=load i32,i32*%q,align 4
%s=getelementptr inbounds i8,i8*%m,i64 20
%t=bitcast i8*%s to i32*
%u=load i32,i32*%t,align 4
%v=getelementptr inbounds i8,i8*%m,i64 8
%w=bitcast i8*%v to i8**
%x=load i8*,i8**%w,align 8
%y=call fastcc i8*@_SMLLLN9StringCvt6splitlE_79(i8*inreg%o,i32 inreg%r,i32 inreg%u,i8*inreg%x,i8*inreg%k)
ret i8*%y
}
define internal fastcc i8*@_SMLLLN9StringCvt6splitlE_82(i8*inreg%a,i8*inreg%b)#3 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%b,i8**%c,align 8
%f=bitcast i8*%a to i8**
%g=load i8*,i8**%f,align 8
store i8*%g,i8**%d,align 8
%h=getelementptr inbounds i8,i8*%a,i64 8
%i=bitcast i8*%h to i32*
%j=load i32,i32*%i,align 4
%k=getelementptr inbounds i8,i8*%a,i64 12
%l=bitcast i8*%k to i32*
%m=load i32,i32*%l,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
store i8*%n,i8**%e,align 8
%q=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%r=bitcast i8*%n to i8**
store i8*%q,i8**%r,align 8
%s=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%t=getelementptr inbounds i8,i8*%n,i64 8
%u=bitcast i8*%t to i8**
store i8*%s,i8**%u,align 8
%v=getelementptr inbounds i8,i8*%n,i64 16
%w=bitcast i8*%v to i32*
store i32%j,i32*%w,align 4
%x=getelementptr inbounds i8,i8*%n,i64 20
%y=bitcast i8*%x to i32*
store i32%m,i32*%y,align 4
%z=getelementptr inbounds i8,i8*%n,i64 24
%A=bitcast i8*%z to i32*
store i32 3,i32*%A,align 4
%B=call i8*@sml_alloc(i32 inreg 28)#0
%C=getelementptr inbounds i8,i8*%B,i64 -4
%D=bitcast i8*%C to i32*
store i32 1342177304,i32*%D,align 4
%E=load i8*,i8**%e,align 8
%F=bitcast i8*%B to i8**
store i8*%E,i8**%F,align 8
%G=getelementptr inbounds i8,i8*%B,i64 8
%H=bitcast i8*%G to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN9StringCvt6splitlE_81 to void(...)*),void(...)**%H,align 8
%I=getelementptr inbounds i8,i8*%B,i64 16
%J=bitcast i8*%I to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN9StringCvt6splitlE_81 to void(...)*),void(...)**%J,align 8
%K=getelementptr inbounds i8,i8*%B,i64 24
%L=bitcast i8*%K to i32*
store i32 1,i32*%L,align 4
ret i8*%B
}
define internal fastcc i8*@_SMLLLN9StringCvt6splitlE_83(i8*inreg%a,i8*inreg%b)#3 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%b,i8**%c,align 8
%e=bitcast i8*%a to i32*
%f=load i32,i32*%e,align 4
%g=getelementptr inbounds i8,i8*%a,i64 4
%h=bitcast i8*%g to i32*
%i=load i32,i32*%h,align 4
%j=call i8*@sml_alloc(i32 inreg 20)#0
%k=getelementptr inbounds i8,i8*%j,i64 -4
%l=bitcast i8*%k to i32*
store i32 1342177296,i32*%l,align 4
store i8*%j,i8**%d,align 8
%m=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%n=bitcast i8*%j to i8**
store i8*%m,i8**%n,align 8
%o=getelementptr inbounds i8,i8*%j,i64 8
%p=bitcast i8*%o to i32*
store i32%f,i32*%p,align 4
%q=getelementptr inbounds i8,i8*%j,i64 12
%r=bitcast i8*%q to i32*
store i32%i,i32*%r,align 4
%s=getelementptr inbounds i8,i8*%j,i64 16
%t=bitcast i8*%s to i32*
store i32 1,i32*%t,align 4
%u=call i8*@sml_alloc(i32 inreg 28)#0
%v=getelementptr inbounds i8,i8*%u,i64 -4
%w=bitcast i8*%v to i32*
store i32 1342177304,i32*%w,align 4
%x=load i8*,i8**%d,align 8
%y=bitcast i8*%u to i8**
store i8*%x,i8**%y,align 8
%z=getelementptr inbounds i8,i8*%u,i64 8
%A=bitcast i8*%z to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN9StringCvt6splitlE_82 to void(...)*),void(...)**%A,align 8
%B=getelementptr inbounds i8,i8*%u,i64 16
%C=bitcast i8*%B to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN9StringCvt6splitlE_82 to void(...)*),void(...)**%C,align 8
%D=getelementptr inbounds i8,i8*%u,i64 24
%E=bitcast i8*%D to i32*
store i32 -2147483647,i32*%E,align 4
ret i8*%u
}
define fastcc i8*@_SMLFN9StringCvt6splitlE(i32 inreg%a,i32 inreg%b)#3 gc"smlsharp"{
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
%d=call i8*@sml_alloc(i32 inreg 12)#0
%e=bitcast i8*%d to i32*
%f=getelementptr inbounds i8,i8*%d,i64 -4
%g=bitcast i8*%f to i32*
store i32 1342177288,i32*%g,align 4
store i8*%d,i8**%c,align 8
store i32%a,i32*%e,align 4
%h=getelementptr inbounds i8,i8*%d,i64 4
%i=bitcast i8*%h to i32*
store i32%b,i32*%i,align 4
%j=getelementptr inbounds i8,i8*%d,i64 8
%k=bitcast i8*%j to i32*
store i32 0,i32*%k,align 4
%l=call i8*@sml_alloc(i32 inreg 28)#0
%m=getelementptr inbounds i8,i8*%l,i64 -4
%n=bitcast i8*%m to i32*
store i32 1342177304,i32*%n,align 4
%o=load i8*,i8**%c,align 8
%p=bitcast i8*%l to i8**
store i8*%o,i8**%p,align 8
%q=getelementptr inbounds i8,i8*%l,i64 8
%r=bitcast i8*%q to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN9StringCvt6splitlE_83 to void(...)*),void(...)**%r,align 8
%s=getelementptr inbounds i8,i8*%l,i64 16
%t=bitcast i8*%s to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN9StringCvt6splitlE_83 to void(...)*),void(...)**%t,align 8
%u=getelementptr inbounds i8,i8*%l,i64 24
%v=bitcast i8*%u to i32*
store i32 -2147483647,i32*%v,align 4
ret i8*%l
}
define internal fastcc i8*@_SMLLLN9StringCvt5takelE_86(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
l:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%c,align 8
store i8*%b,i8**%d,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%j,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%c,align 8
%i=load i8*,i8**%d,align 8
br label%j
j:
%k=phi i8*[%i,%g],[%b,%l]
%m=phi i8*[%h,%g],[%a,%l]
%n=bitcast i8*%m to i8**
%o=load i8*,i8**%n,align 8
%p=getelementptr inbounds i8,i8*%m,i64 16
%q=bitcast i8*%p to i32*
%r=load i32,i32*%q,align 4
%s=getelementptr inbounds i8,i8*%m,i64 20
%t=bitcast i8*%s to i32*
%u=load i32,i32*%t,align 4
store i8*null,i8**%c,align 8
%v=getelementptr inbounds i8,i8*%m,i64 8
%w=bitcast i8*%v to i8**
%x=load i8*,i8**%w,align 8
store i8*null,i8**%d,align 8
%y=call fastcc i8*@_SMLLLN9StringCvt6splitlE_79(i8*inreg%o,i32 inreg%r,i32 inreg%u,i8*inreg%x,i8*inreg%k)
%z=bitcast i8*%y to i8**
%A=load i8*,i8**%z,align 8
ret i8*%A
}
define internal fastcc i8*@_SMLLLN9StringCvt5takelE_87(i8*inreg%a,i8*inreg%b)#3 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%b,i8**%c,align 8
%f=bitcast i8*%a to i8**
%g=load i8*,i8**%f,align 8
store i8*%g,i8**%d,align 8
%h=getelementptr inbounds i8,i8*%a,i64 8
%i=bitcast i8*%h to i32*
%j=load i32,i32*%i,align 4
%k=getelementptr inbounds i8,i8*%a,i64 12
%l=bitcast i8*%k to i32*
%m=load i32,i32*%l,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
store i8*%n,i8**%e,align 8
%q=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%r=bitcast i8*%n to i8**
store i8*%q,i8**%r,align 8
%s=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%t=getelementptr inbounds i8,i8*%n,i64 8
%u=bitcast i8*%t to i8**
store i8*%s,i8**%u,align 8
%v=getelementptr inbounds i8,i8*%n,i64 16
%w=bitcast i8*%v to i32*
store i32%j,i32*%w,align 4
%x=getelementptr inbounds i8,i8*%n,i64 20
%y=bitcast i8*%x to i32*
store i32%m,i32*%y,align 4
%z=getelementptr inbounds i8,i8*%n,i64 24
%A=bitcast i8*%z to i32*
store i32 3,i32*%A,align 4
%B=call i8*@sml_alloc(i32 inreg 28)#0
%C=getelementptr inbounds i8,i8*%B,i64 -4
%D=bitcast i8*%C to i32*
store i32 1342177304,i32*%D,align 4
%E=load i8*,i8**%e,align 8
%F=bitcast i8*%B to i8**
store i8*%E,i8**%F,align 8
%G=getelementptr inbounds i8,i8*%B,i64 8
%H=bitcast i8*%G to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN9StringCvt5takelE_86 to void(...)*),void(...)**%H,align 8
%I=getelementptr inbounds i8,i8*%B,i64 16
%J=bitcast i8*%I to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN9StringCvt5takelE_86 to void(...)*),void(...)**%J,align 8
%K=getelementptr inbounds i8,i8*%B,i64 24
%L=bitcast i8*%K to i32*
store i32 1,i32*%L,align 4
ret i8*%B
}
define internal fastcc i8*@_SMLLLN9StringCvt5takelE_88(i8*inreg%a,i8*inreg%b)#3 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%b,i8**%c,align 8
%e=bitcast i8*%a to i32*
%f=load i32,i32*%e,align 4
%g=getelementptr inbounds i8,i8*%a,i64 4
%h=bitcast i8*%g to i32*
%i=load i32,i32*%h,align 4
%j=call i8*@sml_alloc(i32 inreg 20)#0
%k=getelementptr inbounds i8,i8*%j,i64 -4
%l=bitcast i8*%k to i32*
store i32 1342177296,i32*%l,align 4
store i8*%j,i8**%d,align 8
%m=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%n=bitcast i8*%j to i8**
store i8*%m,i8**%n,align 8
%o=getelementptr inbounds i8,i8*%j,i64 8
%p=bitcast i8*%o to i32*
store i32%f,i32*%p,align 4
%q=getelementptr inbounds i8,i8*%j,i64 12
%r=bitcast i8*%q to i32*
store i32%i,i32*%r,align 4
%s=getelementptr inbounds i8,i8*%j,i64 16
%t=bitcast i8*%s to i32*
store i32 1,i32*%t,align 4
%u=call i8*@sml_alloc(i32 inreg 28)#0
%v=getelementptr inbounds i8,i8*%u,i64 -4
%w=bitcast i8*%v to i32*
store i32 1342177304,i32*%w,align 4
%x=load i8*,i8**%d,align 8
%y=bitcast i8*%u to i8**
store i8*%x,i8**%y,align 8
%z=getelementptr inbounds i8,i8*%u,i64 8
%A=bitcast i8*%z to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN9StringCvt5takelE_87 to void(...)*),void(...)**%A,align 8
%B=getelementptr inbounds i8,i8*%u,i64 16
%C=bitcast i8*%B to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN9StringCvt5takelE_87 to void(...)*),void(...)**%C,align 8
%D=getelementptr inbounds i8,i8*%u,i64 24
%E=bitcast i8*%D to i32*
store i32 -2147483647,i32*%E,align 4
ret i8*%u
}
define fastcc i8*@_SMLFN9StringCvt5takelE(i32 inreg%a,i32 inreg%b)#3 gc"smlsharp"{
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
%d=call i8*@sml_alloc(i32 inreg 12)#0
%e=bitcast i8*%d to i32*
%f=getelementptr inbounds i8,i8*%d,i64 -4
%g=bitcast i8*%f to i32*
store i32 1342177288,i32*%g,align 4
store i8*%d,i8**%c,align 8
store i32%a,i32*%e,align 4
%h=getelementptr inbounds i8,i8*%d,i64 4
%i=bitcast i8*%h to i32*
store i32%b,i32*%i,align 4
%j=getelementptr inbounds i8,i8*%d,i64 8
%k=bitcast i8*%j to i32*
store i32 0,i32*%k,align 4
%l=call i8*@sml_alloc(i32 inreg 28)#0
%m=getelementptr inbounds i8,i8*%l,i64 -4
%n=bitcast i8*%m to i32*
store i32 1342177304,i32*%n,align 4
%o=load i8*,i8**%c,align 8
%p=bitcast i8*%l to i8**
store i8*%o,i8**%p,align 8
%q=getelementptr inbounds i8,i8*%l,i64 8
%r=bitcast i8*%q to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN9StringCvt5takelE_88 to void(...)*),void(...)**%r,align 8
%s=getelementptr inbounds i8,i8*%l,i64 16
%t=bitcast i8*%s to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN9StringCvt5takelE_88 to void(...)*),void(...)**%t,align 8
%u=getelementptr inbounds i8,i8*%l,i64 24
%v=bitcast i8*%u to i32*
store i32 -2147483647,i32*%v,align 4
ret i8*%l
}
define internal fastcc i8*@_SMLLLN9StringCvt5droplE_91(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
p:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
store i8*%a,i8**%e,align 8
%g=getelementptr inbounds i8,i8*%a,i64 20
%h=bitcast i8*%g to i32*
%i=load i32,i32*%h,align 4
%j=sub i32 0,%i
%k=and i32%i,%j
%l=sext i32%k to i64
%m=bitcast i8**%e to i8***
br label%n
n:
%o=phi i8*[%az,%ay],[%b,%p]
store i8*%o,i8**%c,align 8
%q=load atomic i32,i32*@sml_check_flag unordered,align 4
%r=icmp eq i32%q,0
br i1%r,label%u,label%s
s:
call void@sml_check(i32 inreg%q)
%t=load i8*,i8**%c,align 8
br label%u
u:
%v=phi i8*[%t,%s],[%o,%n]
%w=load i8*,i8**%e,align 8
%x=getelementptr inbounds i8,i8*%w,i64 8
%y=bitcast i8*%x to i8**
%z=load i8*,i8**%y,align 8
%A=getelementptr inbounds i8,i8*%z,i64 16
%B=bitcast i8*%A to i8*(i8*,i8*)**
%C=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%B,align 8
%D=bitcast i8*%z to i8**
%E=load i8*,i8**%D,align 8
%F=call fastcc i8*%C(i8*inreg%E,i8*inreg%v)
%G=icmp eq i8*%F,null
br i1%G,label%H,label%J
H:
%I=load i8*,i8**%c,align 8
ret i8*%I
J:
%K=bitcast i8*%F to i8**
%L=load i8*,i8**%K,align 8
store i8*%L,i8**%d,align 8
%M=load i8,i8*%L,align 1
%N=load i8*,i8**%e,align 8
%O=getelementptr inbounds i8,i8*%N,i64 16
%P=bitcast i8*%O to i32*
%Q=load i32,i32*%P,align 4
%R=icmp eq i32%Q,0
br i1%R,label%X,label%S
S:
%T=bitcast i8*%N to i8**
store i8*null,i8**%d,align 8
%U=getelementptr inbounds i8,i8*%L,i64%l
%V=bitcast i8*%U to i8**
%W=load i8*,i8**%V,align 8
br label%ah
X:
%Y=getelementptr inbounds i8,i8*%N,i64 20
%Z=bitcast i8*%Y to i32*
%aa=load i32,i32*%Z,align 4
%ab=call i8*@sml_alloc(i32 inreg%aa)#0
%ac=getelementptr inbounds i8,i8*%ab,i64 -4
%ad=bitcast i8*%ac to i32*
store i32%aa,i32*%ad,align 4
%ae=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%af=getelementptr inbounds i8,i8*%ae,i64%l
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%ab,i8*%af,i32%aa,i1 false)
%ag=load i8**,i8***%m,align 8
br label%ah
ah:
%ai=phi i8**[%ag,%X],[%T,%S]
%aj=phi i8*[%ab,%X],[%W,%S]
store i8*%aj,i8**%d,align 8
%ak=load i8*,i8**%ai,align 8
%al=getelementptr inbounds i8,i8*%ak,i64 16
%am=bitcast i8*%al to i8*(i8*,i8*)**
%an=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%am,align 8
%ao=bitcast i8*%ak to i8**
%ap=load i8*,i8**%ao,align 8
store i8*%ap,i8**%f,align 8
%aq=call i8*@sml_alloc(i32 inreg 1)#0
%ar=getelementptr inbounds i8,i8*%aq,i64 -4
%as=bitcast i8*%ar to i32*
store i32 1,i32*%as,align 4
store i8%M,i8*%aq,align 1
%at=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%au=call fastcc i8*%an(i8*inreg%at,i8*inreg%aq)
%av=bitcast i8*%au to i32*
%aw=load i32,i32*%av,align 4
%ax=icmp eq i32%aw,0
br i1%ax,label%aA,label%ay
ay:
store i8*null,i8**%c,align 8
%az=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
br label%n
aA:
%aB=load i8*,i8**%c,align 8
ret i8*%aB
}
define internal fastcc i8*@_SMLLLN9StringCvt5droplE_92(i8*inreg%a,i8*inreg%b)#3 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%b,i8**%c,align 8
%f=bitcast i8*%a to i8**
%g=load i8*,i8**%f,align 8
store i8*%g,i8**%d,align 8
%h=getelementptr inbounds i8,i8*%a,i64 8
%i=bitcast i8*%h to i32*
%j=load i32,i32*%i,align 4
%k=getelementptr inbounds i8,i8*%a,i64 12
%l=bitcast i8*%k to i32*
%m=load i32,i32*%l,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
store i8*%n,i8**%e,align 8
%q=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%r=bitcast i8*%n to i8**
store i8*%q,i8**%r,align 8
%s=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%t=getelementptr inbounds i8,i8*%n,i64 8
%u=bitcast i8*%t to i8**
store i8*%s,i8**%u,align 8
%v=getelementptr inbounds i8,i8*%n,i64 16
%w=bitcast i8*%v to i32*
store i32%j,i32*%w,align 4
%x=getelementptr inbounds i8,i8*%n,i64 20
%y=bitcast i8*%x to i32*
store i32%m,i32*%y,align 4
%z=getelementptr inbounds i8,i8*%n,i64 24
%A=bitcast i8*%z to i32*
store i32 3,i32*%A,align 4
%B=call i8*@sml_alloc(i32 inreg 28)#0
%C=getelementptr inbounds i8,i8*%B,i64 -4
%D=bitcast i8*%C to i32*
store i32 1342177304,i32*%D,align 4
%E=load i8*,i8**%e,align 8
%F=bitcast i8*%B to i8**
store i8*%E,i8**%F,align 8
%G=getelementptr inbounds i8,i8*%B,i64 8
%H=bitcast i8*%G to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN9StringCvt5droplE_91 to void(...)*),void(...)**%H,align 8
%I=getelementptr inbounds i8,i8*%B,i64 16
%J=bitcast i8*%I to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN9StringCvt5droplE_91 to void(...)*),void(...)**%J,align 8
%K=getelementptr inbounds i8,i8*%B,i64 24
%L=bitcast i8*%K to i32*
store i32 1,i32*%L,align 4
ret i8*%B
}
define internal fastcc i8*@_SMLLLN9StringCvt5droplE_93(i8*inreg%a,i8*inreg%b)#3 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%b,i8**%c,align 8
%e=bitcast i8*%a to i32*
%f=load i32,i32*%e,align 4
%g=getelementptr inbounds i8,i8*%a,i64 4
%h=bitcast i8*%g to i32*
%i=load i32,i32*%h,align 4
%j=call i8*@sml_alloc(i32 inreg 20)#0
%k=getelementptr inbounds i8,i8*%j,i64 -4
%l=bitcast i8*%k to i32*
store i32 1342177296,i32*%l,align 4
store i8*%j,i8**%d,align 8
%m=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%n=bitcast i8*%j to i8**
store i8*%m,i8**%n,align 8
%o=getelementptr inbounds i8,i8*%j,i64 8
%p=bitcast i8*%o to i32*
store i32%f,i32*%p,align 4
%q=getelementptr inbounds i8,i8*%j,i64 12
%r=bitcast i8*%q to i32*
store i32%i,i32*%r,align 4
%s=getelementptr inbounds i8,i8*%j,i64 16
%t=bitcast i8*%s to i32*
store i32 1,i32*%t,align 4
%u=call i8*@sml_alloc(i32 inreg 28)#0
%v=getelementptr inbounds i8,i8*%u,i64 -4
%w=bitcast i8*%v to i32*
store i32 1342177304,i32*%w,align 4
%x=load i8*,i8**%d,align 8
%y=bitcast i8*%u to i8**
store i8*%x,i8**%y,align 8
%z=getelementptr inbounds i8,i8*%u,i64 8
%A=bitcast i8*%z to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN9StringCvt5droplE_92 to void(...)*),void(...)**%A,align 8
%B=getelementptr inbounds i8,i8*%u,i64 16
%C=bitcast i8*%B to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN9StringCvt5droplE_92 to void(...)*),void(...)**%C,align 8
%D=getelementptr inbounds i8,i8*%u,i64 24
%E=bitcast i8*%D to i32*
store i32 -2147483647,i32*%E,align 4
ret i8*%u
}
define fastcc i8*@_SMLFN9StringCvt5droplE(i32 inreg%a,i32 inreg%b)#3 gc"smlsharp"{
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
%d=call i8*@sml_alloc(i32 inreg 12)#0
%e=bitcast i8*%d to i32*
%f=getelementptr inbounds i8,i8*%d,i64 -4
%g=bitcast i8*%f to i32*
store i32 1342177288,i32*%g,align 4
store i8*%d,i8**%c,align 8
store i32%a,i32*%e,align 4
%h=getelementptr inbounds i8,i8*%d,i64 4
%i=bitcast i8*%h to i32*
store i32%b,i32*%i,align 4
%j=getelementptr inbounds i8,i8*%d,i64 8
%k=bitcast i8*%j to i32*
store i32 0,i32*%k,align 4
%l=call i8*@sml_alloc(i32 inreg 28)#0
%m=getelementptr inbounds i8,i8*%l,i64 -4
%n=bitcast i8*%m to i32*
store i32 1342177304,i32*%n,align 4
%o=load i8*,i8**%c,align 8
%p=bitcast i8*%l to i8**
store i8*%o,i8**%p,align 8
%q=getelementptr inbounds i8,i8*%l,i64 8
%r=bitcast i8*%q to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN9StringCvt5droplE_93 to void(...)*),void(...)**%r,align 8
%s=getelementptr inbounds i8,i8*%l,i64 16
%t=bitcast i8*%s to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN9StringCvt5droplE_93 to void(...)*),void(...)**%t,align 8
%u=getelementptr inbounds i8,i8*%l,i64 24
%v=bitcast i8*%u to i32*
store i32 -2147483647,i32*%v,align 4
ret i8*%l
}
define internal fastcc i8*@_SMLLLN9StringCvt6skipWSE_96(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
o:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%e,align 8
%f=getelementptr inbounds i8,i8*%a,i64 12
%g=bitcast i8*%f to i32*
%h=load i32,i32*%g,align 4
%i=sub i32 0,%h
%j=and i32%h,%i
%k=bitcast i8**%e to i8***
%l=sext i32%j to i64
br label%m
m:
%n=phi i8*[%b,%o],[%ad,%ae]
store i8*%n,i8**%c,align 8
%p=load atomic i32,i32*@sml_check_flag unordered,align 4
%q=icmp eq i32%p,0
br i1%q,label%t,label%r
r:
call void@sml_check(i32 inreg%p)
%s=load i8*,i8**%c,align 8
br label%t
t:
%u=phi i8*[%s,%r],[%n,%m]
%v=load i8**,i8***%k,align 8
%w=load i8*,i8**%v,align 8
%x=getelementptr inbounds i8,i8*%w,i64 16
%y=bitcast i8*%x to i8*(i8*,i8*)**
%z=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%y,align 8
%A=bitcast i8*%w to i8**
%B=load i8*,i8**%A,align 8
%C=call fastcc i8*%z(i8*inreg%B,i8*inreg%u)
%D=icmp eq i8*%C,null
br i1%D,label%E,label%G
E:
%F=load i8*,i8**%c,align 8
ret i8*%F
G:
%H=bitcast i8*%C to i8**
%I=load i8*,i8**%H,align 8
store i8*%I,i8**%d,align 8
%J=load i8,i8*%I,align 1
%K=load i8*,i8**%e,align 8
%L=getelementptr inbounds i8,i8*%K,i64 8
%M=bitcast i8*%L to i32*
%N=load i32,i32*%M,align 4
%O=icmp eq i32%N,0
br i1%O,label%T,label%P
P:
store i8*null,i8**%d,align 8
%Q=getelementptr inbounds i8,i8*%I,i64%l
%R=bitcast i8*%Q to i8**
%S=load i8*,i8**%R,align 8
br label%ac
T:
%U=getelementptr inbounds i8,i8*%K,i64 12
%V=bitcast i8*%U to i32*
%W=load i32,i32*%V,align 4
%X=call i8*@sml_alloc(i32 inreg%W)#0
%Y=getelementptr inbounds i8,i8*%X,i64 -4
%Z=bitcast i8*%Y to i32*
store i32%W,i32*%Z,align 4
%aa=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%ab=getelementptr inbounds i8,i8*%aa,i64%l
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%X,i8*%ab,i32%W,i1 false)
br label%ac
ac:
%ad=phi i8*[%S,%P],[%X,%T]
switch i8%J,label%af[
i8 9,label%ae
i8 10,label%ae
i8 11,label%ae
i8 12,label%ae
i8 13,label%ae
i8 32,label%ae
]
ae:
br label%m
af:
%ag=load i8*,i8**%c,align 8
ret i8*%ag
}
define internal fastcc i8*@_SMLLLN9StringCvt6skipWSE_97(i8*inreg%a,i8*inreg%b)#3 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%b,i8**%c,align 8
%e=bitcast i8*%a to i32*
%f=load i32,i32*%e,align 4
%g=getelementptr inbounds i8,i8*%a,i64 4
%h=bitcast i8*%g to i32*
%i=load i32,i32*%h,align 4
%j=call i8*@sml_alloc(i32 inreg 20)#0
%k=getelementptr inbounds i8,i8*%j,i64 -4
%l=bitcast i8*%k to i32*
store i32 1342177296,i32*%l,align 4
store i8*%j,i8**%d,align 8
%m=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%n=bitcast i8*%j to i8**
store i8*%m,i8**%n,align 8
%o=getelementptr inbounds i8,i8*%j,i64 8
%p=bitcast i8*%o to i32*
store i32%f,i32*%p,align 4
%q=getelementptr inbounds i8,i8*%j,i64 12
%r=bitcast i8*%q to i32*
store i32%i,i32*%r,align 4
%s=getelementptr inbounds i8,i8*%j,i64 16
%t=bitcast i8*%s to i32*
store i32 1,i32*%t,align 4
%u=call i8*@sml_alloc(i32 inreg 28)#0
%v=getelementptr inbounds i8,i8*%u,i64 -4
%w=bitcast i8*%v to i32*
store i32 1342177304,i32*%w,align 4
%x=load i8*,i8**%d,align 8
%y=bitcast i8*%u to i8**
store i8*%x,i8**%y,align 8
%z=getelementptr inbounds i8,i8*%u,i64 8
%A=bitcast i8*%z to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN9StringCvt6skipWSE_96 to void(...)*),void(...)**%A,align 8
%B=getelementptr inbounds i8,i8*%u,i64 16
%C=bitcast i8*%B to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN9StringCvt6skipWSE_96 to void(...)*),void(...)**%C,align 8
%D=getelementptr inbounds i8,i8*%u,i64 24
%E=bitcast i8*%D to i32*
store i32 1,i32*%E,align 4
ret i8*%u
}
define fastcc i8*@_SMLFN9StringCvt6skipWSE(i32 inreg%a,i32 inreg%b)#3 gc"smlsharp"{
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
%d=call i8*@sml_alloc(i32 inreg 12)#0
%e=bitcast i8*%d to i32*
%f=getelementptr inbounds i8,i8*%d,i64 -4
%g=bitcast i8*%f to i32*
store i32 1342177288,i32*%g,align 4
store i8*%d,i8**%c,align 8
store i32%a,i32*%e,align 4
%h=getelementptr inbounds i8,i8*%d,i64 4
%i=bitcast i8*%h to i32*
store i32%b,i32*%i,align 4
%j=getelementptr inbounds i8,i8*%d,i64 8
%k=bitcast i8*%j to i32*
store i32 0,i32*%k,align 4
%l=call i8*@sml_alloc(i32 inreg 28)#0
%m=getelementptr inbounds i8,i8*%l,i64 -4
%n=bitcast i8*%m to i32*
store i32 1342177304,i32*%n,align 4
%o=load i8*,i8**%c,align 8
%p=bitcast i8*%l to i8**
store i8*%o,i8**%p,align 8
%q=getelementptr inbounds i8,i8*%l,i64 8
%r=bitcast i8*%q to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN9StringCvt6skipWSE_97 to void(...)*),void(...)**%r,align 8
%s=getelementptr inbounds i8,i8*%l,i64 16
%t=bitcast i8*%s to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN9StringCvt6skipWSE_97 to void(...)*),void(...)**%t,align 8
%u=getelementptr inbounds i8,i8*%l,i64 24
%v=bitcast i8*%u to i32*
store i32 -2147483647,i32*%v,align 4
ret i8*%l
}
define internal fastcc i8*@_SMLLL6reader_100(i8*inreg%a,i32 inreg%b)#3 gc"smlsharp"{
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
%d=getelementptr inbounds i8,i8*%a,i64 8
%e=bitcast i8*%d to i32*
%f=load i32,i32*%e,align 4
%g=icmp sgt i32%f,%b
br i1%g,label%i,label%h
h:
ret i8*null
i:
%j=bitcast i8*%a to i8**
%k=load i8*,i8**%j,align 8
%l=sext i32%b to i64
%m=getelementptr inbounds i8,i8*%k,i64%l
%n=load i8,i8*%m,align 1
%o=add nsw i32%b,1
%p=call i8*@sml_alloc(i32 inreg 12)#0
%q=getelementptr inbounds i8,i8*%p,i64 -4
%r=bitcast i8*%q to i32*
store i32 1342177288,i32*%r,align 4
store i8*%p,i8**%c,align 8
%s=getelementptr inbounds i8,i8*%p,i64 1
call void@llvm.memset.p0i8.i32(i8*%s,i8 0,i32 3,i1 false)
store i8%n,i8*%p,align 1
%t=getelementptr inbounds i8,i8*%p,i64 4
%u=bitcast i8*%t to i32*
store i32%o,i32*%u,align 4
%v=getelementptr inbounds i8,i8*%p,i64 8
%w=bitcast i8*%v to i32*
store i32 0,i32*%w,align 4
%x=call i8*@sml_alloc(i32 inreg 12)#0
%y=getelementptr inbounds i8,i8*%x,i64 -4
%z=bitcast i8*%y to i32*
store i32 1342177288,i32*%z,align 4
%A=load i8*,i8**%c,align 8
%B=bitcast i8*%x to i8**
store i8*%A,i8**%B,align 8
%C=getelementptr inbounds i8,i8*%x,i64 8
%D=bitcast i8*%C to i32*
store i32 1,i32*%D,align 4
ret i8*%x
}
define internal fastcc i8*@_SMLLLN9StringCvt10scanStringE_101(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%d,align 8
store i8*%b,i8**%c,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%h,label%j
h:
%i=bitcast i8*%b to i32*
br label%n
j:
call void@sml_check(i32 inreg%f)
%k=bitcast i8**%c to i32**
%l=load i32*,i32**%k,align 8
%m=load i8*,i8**%d,align 8
br label%n
n:
%o=phi i8*[%m,%j],[%a,%h]
%p=phi i32*[%l,%j],[%i,%h]
%q=getelementptr inbounds i8,i8*%o,i64 12
%r=bitcast i8*%q to i32*
%s=load i32,i32*%r,align 4
%t=add i32%s,-1
%u=sub i32 0,%s
%v=and i32%t,%u
%w=add i32%s,7
%x=add i32%w,%v
%y=and i32%x,-8
%z=getelementptr inbounds i8,i8*%o,i64 8
%A=bitcast i8*%z to i32*
%B=load i32,i32*%A,align 4
%C=or i32%y,4
%D=getelementptr inbounds i32,i32*%p,i64 -1
%E=load i32,i32*%D,align 4
%F=and i32%E,268435455
%G=add nsw i32%F,-1
%H=call i8*@sml_alloc(i32 inreg 20)#0
%I=getelementptr inbounds i8,i8*%H,i64 -4
%J=bitcast i8*%I to i32*
store i32 1342177296,i32*%J,align 4
store i8*%H,i8**%e,align 8
%K=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%L=bitcast i8*%H to i8**
store i8*%K,i8**%L,align 8
%M=getelementptr inbounds i8,i8*%H,i64 8
%N=bitcast i8*%M to i32*
store i32%G,i32*%N,align 4
%O=getelementptr inbounds i8,i8*%H,i64 16
%P=bitcast i8*%O to i32*
store i32 1,i32*%P,align 4
%Q=call i8*@sml_alloc(i32 inreg 28)#0
%R=getelementptr inbounds i8,i8*%Q,i64 -4
%S=bitcast i8*%R to i32*
store i32 1342177304,i32*%S,align 4
%T=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%U=bitcast i8*%Q to i8**
store i8*%T,i8**%U,align 8
%V=getelementptr inbounds i8,i8*%Q,i64 8
%W=bitcast i8*%V to void(...)**
store void(...)*bitcast(i8*(i8*,i32)*@_SMLLL6reader_100 to void(...)*),void(...)**%W,align 8
%X=getelementptr inbounds i8,i8*%Q,i64 16
%Y=bitcast i8*%X to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLL6reader_114 to void(...)*),void(...)**%Y,align 8
%Z=getelementptr inbounds i8,i8*%Q,i64 24
%aa=bitcast i8*%Z to i32*
store i32 -2147483647,i32*%aa,align 4
%ab=bitcast i8**%d to i8***
%ac=load i8**,i8***%ab,align 8
%ad=load i8*,i8**%ac,align 8
%ae=getelementptr inbounds i8,i8*%ad,i64 16
%af=bitcast i8*%ae to i8*(i8*,i8*)**
%ag=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%af,align 8
%ah=bitcast i8*%ad to i8**
%ai=load i8*,i8**%ah,align 8
%aj=call fastcc i8*%ag(i8*inreg%ai,i8*inreg%Q)
%ak=getelementptr inbounds i8,i8*%aj,i64 16
%al=bitcast i8*%ak to i8*(i8*,i8*)**
%am=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%al,align 8
%an=bitcast i8*%aj to i8**
%ao=load i8*,i8**%an,align 8
store i8*%ao,i8**%c,align 8
%ap=call i8*@sml_alloc(i32 inreg 4)#0
%aq=bitcast i8*%ap to i32*
%ar=getelementptr inbounds i8,i8*%ap,i64 -4
%as=bitcast i8*%ar to i32*
store i32 4,i32*%as,align 4
store i32 0,i32*%aq,align 4
%at=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%au=call fastcc i8*%am(i8*inreg%at,i8*inreg%ap)
%av=icmp eq i8*%au,null
br i1%av,label%aw,label%ax
aw:
ret i8*null
ax:
%ay=bitcast i8*%au to i8**
%az=load i8*,i8**%ay,align 8
store i8*%az,i8**%c,align 8
%aA=load i8*,i8**%d,align 8
%aB=getelementptr inbounds i8,i8*%aA,i64 8
%aC=bitcast i8*%aB to i32*
%aD=load i32,i32*%aC,align 4
%aE=icmp eq i32%aD,0
br i1%aE,label%aK,label%aF
aF:
store i8*null,i8**%c,align 8
%aG=sext i32%v to i64
%aH=getelementptr inbounds i8,i8*%az,i64%aG
%aI=bitcast i8*%aH to i8**
%aJ=load i8*,i8**%aI,align 8
br label%aY
aK:
%aL=getelementptr inbounds i8,i8*%aA,i64 12
%aM=bitcast i8*%aL to i32*
%aN=load i32,i32*%aM,align 4
%aO=call i8*@sml_alloc(i32 inreg%aN)#0
%aP=getelementptr inbounds i8,i8*%aO,i64 -4
%aQ=bitcast i8*%aP to i32*
store i32%aN,i32*%aQ,align 4
%aR=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aS=sext i32%v to i64
%aT=getelementptr inbounds i8,i8*%aR,i64%aS
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%aO,i8*%aT,i32%aN,i1 false)
%aU=load i8*,i8**%d,align 8
%aV=getelementptr inbounds i8,i8*%aU,i64 8
%aW=bitcast i8*%aV to i32*
%aX=load i32,i32*%aW,align 4
br label%aY
aY:
%aZ=phi i64[%aS,%aK],[%aG,%aF]
%a0=phi i32[%aX,%aK],[%aD,%aF]
%a1=phi i8*[%aU,%aK],[%aA,%aF]
%a2=phi i8*[%aO,%aK],[%aJ,%aF]
store i8*%a2,i8**%c,align 8
%a3=getelementptr inbounds i8,i8*%a1,i64 12
%a4=bitcast i8*%a3 to i32*
%a5=load i32,i32*%a4,align 4
store i8*null,i8**%d,align 8
%a6=call i8*@sml_alloc(i32 inreg%C)#0
%a7=or i32%y,1342177280
%a8=getelementptr inbounds i8,i8*%a6,i64 -4
%a9=bitcast i8*%a8 to i32*
store i32%a7,i32*%a9,align 4
call void@llvm.memset.p0i8.i32(i8*%a6,i8 0,i32%C,i1 false)
%ba=icmp eq i32%a0,0
%bb=load i8*,i8**%c,align 8
%bc=getelementptr inbounds i8,i8*%a6,i64%aZ
br i1%ba,label%bd,label%be
bd:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%bc,i8*%bb,i32%a5,i1 false)
br label%bg
be:
%bf=bitcast i8*%bc to i8**
store i8*%bb,i8**%bf,align 8
br label%bg
bg:
%bh=sext i32%y to i64
%bi=getelementptr inbounds i8,i8*%a6,i64%bh
%bj=bitcast i8*%bi to i32*
store i32%B,i32*%bj,align 4
ret i8*%a6
}
define internal fastcc i8*@_SMLLLN9StringCvt10scanStringE_102(i8*inreg%a,i8*inreg%b)#3 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%b,i8**%c,align 8
%e=bitcast i8*%a to i32*
%f=load i32,i32*%e,align 4
%g=getelementptr inbounds i8,i8*%a,i64 4
%h=bitcast i8*%g to i32*
%i=load i32,i32*%h,align 4
%j=call i8*@sml_alloc(i32 inreg 20)#0
%k=getelementptr inbounds i8,i8*%j,i64 -4
%l=bitcast i8*%k to i32*
store i32 1342177296,i32*%l,align 4
store i8*%j,i8**%d,align 8
%m=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%n=bitcast i8*%j to i8**
store i8*%m,i8**%n,align 8
%o=getelementptr inbounds i8,i8*%j,i64 8
%p=bitcast i8*%o to i32*
store i32%f,i32*%p,align 4
%q=getelementptr inbounds i8,i8*%j,i64 12
%r=bitcast i8*%q to i32*
store i32%i,i32*%r,align 4
%s=getelementptr inbounds i8,i8*%j,i64 16
%t=bitcast i8*%s to i32*
store i32 1,i32*%t,align 4
%u=call i8*@sml_alloc(i32 inreg 28)#0
%v=getelementptr inbounds i8,i8*%u,i64 -4
%w=bitcast i8*%v to i32*
store i32 1342177304,i32*%w,align 4
%x=load i8*,i8**%d,align 8
%y=bitcast i8*%u to i8**
store i8*%x,i8**%y,align 8
%z=getelementptr inbounds i8,i8*%u,i64 8
%A=bitcast i8*%z to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN9StringCvt10scanStringE_101 to void(...)*),void(...)**%A,align 8
%B=getelementptr inbounds i8,i8*%u,i64 16
%C=bitcast i8*%B to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN9StringCvt10scanStringE_101 to void(...)*),void(...)**%C,align 8
%D=getelementptr inbounds i8,i8*%u,i64 24
%E=bitcast i8*%D to i32*
store i32 -2147483647,i32*%E,align 4
ret i8*%u
}
define fastcc i8*@_SMLFN9StringCvt10scanStringE(i32 inreg%a,i32 inreg%b)#3 gc"smlsharp"{
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
%d=call i8*@sml_alloc(i32 inreg 12)#0
%e=bitcast i8*%d to i32*
%f=getelementptr inbounds i8,i8*%d,i64 -4
%g=bitcast i8*%f to i32*
store i32 1342177288,i32*%g,align 4
store i8*%d,i8**%c,align 8
store i32%a,i32*%e,align 4
%h=getelementptr inbounds i8,i8*%d,i64 4
%i=bitcast i8*%h to i32*
store i32%b,i32*%i,align 4
%j=getelementptr inbounds i8,i8*%d,i64 8
%k=bitcast i8*%j to i32*
store i32 0,i32*%k,align 4
%l=call i8*@sml_alloc(i32 inreg 28)#0
%m=getelementptr inbounds i8,i8*%l,i64 -4
%n=bitcast i8*%m to i32*
store i32 1342177304,i32*%n,align 4
%o=load i8*,i8**%c,align 8
%p=bitcast i8*%l to i8**
store i8*%o,i8**%p,align 8
%q=getelementptr inbounds i8,i8*%l,i64 8
%r=bitcast i8*%q to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN9StringCvt10scanStringE_102 to void(...)*),void(...)**%r,align 8
%s=getelementptr inbounds i8,i8*%l,i64 16
%t=bitcast i8*%s to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN9StringCvt10scanStringE_102 to void(...)*),void(...)**%t,align 8
%u=getelementptr inbounds i8,i8*%l,i64 24
%v=bitcast i8*%u to i32*
store i32 -2147483647,i32*%v,align 4
ret i8*%l
}
define internal fastcc i8*@_SMLLLN9StringCvt7padLeftE_105(i8*inreg%a,i8*inreg%b)#3 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=tail call fastcc i8*@_SMLLLN9StringCvt7padLeftE_68(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLLN9StringCvt7padLeftE_106(i8*inreg%a,i8*inreg%b)#3 gc"smlsharp"{
%c=load i8,i8*%b,align 1
%d=tail call fastcc i8*@_SMLFN9StringCvt7padLeftE(i8 inreg%c)
ret i8*%d
}
define internal fastcc i8*@_SMLLLN9StringCvt8padRightE_107(i8*inreg%a,i8*inreg%b)#3 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=tail call fastcc i8*@_SMLLLN9StringCvt8padRightE_73(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLLN9StringCvt8padRightE_108(i8*inreg%a,i8*inreg%b)#3 gc"smlsharp"{
%c=load i8,i8*%b,align 1
%d=tail call fastcc i8*@_SMLFN9StringCvt8padRightE(i8 inreg%c)
ret i8*%d
}
define internal fastcc i8*@_SMLLLN9StringCvt6splitlE_110(i8*inreg%a,i8*inreg%b,i8*inreg%c)#3 gc"smlsharp"{
%d=bitcast i8*%b to i32*
%e=load i32,i32*%d,align 4
%f=bitcast i8*%c to i32*
%g=load i32,i32*%f,align 4
%h=tail call fastcc i8*@_SMLFN9StringCvt6splitlE(i32 inreg%e,i32 inreg%g)
ret i8*%h
}
define internal fastcc i8*@_SMLLLN9StringCvt5takelE_111(i8*inreg%a,i8*inreg%b,i8*inreg%c)#3 gc"smlsharp"{
%d=bitcast i8*%b to i32*
%e=load i32,i32*%d,align 4
%f=bitcast i8*%c to i32*
%g=load i32,i32*%f,align 4
%h=tail call fastcc i8*@_SMLFN9StringCvt5takelE(i32 inreg%e,i32 inreg%g)
ret i8*%h
}
define internal fastcc i8*@_SMLLLN9StringCvt5droplE_112(i8*inreg%a,i8*inreg%b,i8*inreg%c)#3 gc"smlsharp"{
%d=bitcast i8*%b to i32*
%e=load i32,i32*%d,align 4
%f=bitcast i8*%c to i32*
%g=load i32,i32*%f,align 4
%h=tail call fastcc i8*@_SMLFN9StringCvt5droplE(i32 inreg%e,i32 inreg%g)
ret i8*%h
}
define internal fastcc i8*@_SMLLLN9StringCvt6skipWSE_113(i8*inreg%a,i8*inreg%b,i8*inreg%c)#3 gc"smlsharp"{
%d=bitcast i8*%b to i32*
%e=load i32,i32*%d,align 4
%f=bitcast i8*%c to i32*
%g=load i32,i32*%f,align 4
%h=tail call fastcc i8*@_SMLFN9StringCvt6skipWSE(i32 inreg%e,i32 inreg%g)
ret i8*%h
}
define internal fastcc i8*@_SMLLL6reader_114(i8*inreg%a,i8*inreg%b)#3 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=tail call fastcc i8*@_SMLLL6reader_100(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLLN9StringCvt10scanStringE_115(i8*inreg%a,i8*inreg%b,i8*inreg%c)#3 gc"smlsharp"{
%d=bitcast i8*%b to i32*
%e=load i32,i32*%d,align 4
%f=bitcast i8*%c to i32*
%g=load i32,i32*%f,align 4
%h=tail call fastcc i8*@_SMLFN9StringCvt10scanStringE(i32 inreg%e,i32 inreg%g)
ret i8*%h
}
declare void@llvm.memcpy.p0i8.p0i8.i32(i8*,i8*,i32,i1)#0
declare void@llvm.memmove.p0i8.p0i8.i32(i8*,i8*,i32,i1)#0
declare void@llvm.memset.p0i8.i32(i8*,i8,i32,i1)#0
attributes#0={nounwind}
attributes#1={noreturn}
attributes#2={noreturn nounwind}
attributes#3={nounwind uwtable}
attributes#4={uwtable}
