@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*)*@_SMLLN9StringCvt7padLeftE_127 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*)*@_SMLLN9StringCvt8padRightE_129 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
@_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*)
@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*)*@_SMLLN9StringCvt6splitlE_137 to void(...)*),i32 -2147483647}>,align 8
@_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*)
@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*)*@_SMLLN9StringCvt5takelE_138 to void(...)*),i32 -2147483647}>,align 8
@_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*)
@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*)*@_SMLLN9StringCvt5droplE_139 to void(...)*),i32 -2147483647}>,align 8
@_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*)
@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*)*@_SMLLN9StringCvt6skipWSE_140 to void(...)*),i32 -2147483647}>,align 8
@_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*)
@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*)*@_SMLLN9StringCvt10scanStringE_141 to void(...)*),i32 -2147483647}>,align 8
@_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 void@_SMLL4loop_69(i8*inreg%a,i32 inreg%b)#4 gc"smlsharp"{
f:
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%c,align 8
br label%d
d:
%e=phi i32[%b,%f],[%x,%q]
%g=load atomic i32,i32*@sml_check_flag unordered,align 4
%h=icmp eq i32%g,0
br i1%h,label%j,label%i
i:
call void@sml_check(i32 inreg%g)
br label%j
j:
%k=load i8*,i8**%c,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 slt i32%e,%n
br i1%o,label%q,label%p
p:
ret void
q:
%r=bitcast i8*%k to i8**
%s=load i8*,i8**%r,align 8
%t=getelementptr inbounds i8,i8*%k,i64 12
%u=load i8,i8*%t,align 1
%v=sext i32%e to i64
%w=getelementptr inbounds i8,i8*%s,i64%v
store i8%u,i8*%w,align 1
%x=add nsw i32%e,1
br label%d
}
define internal fastcc void@_SMLLN9StringCvt4fillE_70(i8*inreg%a)unnamed_addr#4 gc"smlsharp"{
%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%g,label%i
g:
%h=bitcast i8*%a to i8**
br label%m
i:
call void@sml_check(i32 inreg%e)
%j=bitcast i8**%b to i8***
%k=load i8**,i8***%j,align 8
%l=bitcast i8**%k to i8*
br label%m
m:
%n=phi i8*[%l,%i],[%a,%g]
%o=phi i8**[%k,%i],[%h,%g]
%p=load i8*,i8**%o,align 8
store i8*%p,i8**%c,align 8
%q=getelementptr inbounds i8,i8*%n,i64 12
%r=bitcast i8*%q to i32*
%s=load i32,i32*%r,align 4
%t=getelementptr inbounds i8*,i8**%o,i64 2
%u=bitcast i8**%t to i8*
%v=load i8,i8*%u,align 1
%w=call i8*@sml_alloc(i32 inreg 20)#0
%x=getelementptr inbounds i8,i8*%w,i64 -4
%y=bitcast i8*%x to i32*
store i32 1342177296,i32*%y,align 4
store i8*%w,i8**%d,align 8
%z=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%A=bitcast i8*%w to i8**
store i8*%z,i8**%A,align 8
%B=getelementptr inbounds i8,i8*%w,i64 8
%C=bitcast i8*%B to i32*
store i32%s,i32*%C,align 4
%D=getelementptr inbounds i8,i8*%w,i64 12
store i8%v,i8*%D,align 1
%E=getelementptr inbounds i8,i8*%w,i64 16
%F=bitcast i8*%E to i32*
store i32 1,i32*%F,align 4
%G=call i8*@sml_alloc(i32 inreg 28)#0
%H=getelementptr inbounds i8,i8*%G,i64 -4
%I=bitcast i8*%H to i32*
store i32 1342177304,i32*%I,align 4
%J=load i8*,i8**%d,align 8
%K=bitcast i8*%G to i8**
store i8*%J,i8**%K,align 8
%L=getelementptr inbounds i8,i8*%G,i64 8
%M=bitcast i8*%L to void(...)**
store void(...)*bitcast(void(i8*,i32)*@_SMLL4loop_69 to void(...)*),void(...)**%M,align 8
%N=getelementptr inbounds i8,i8*%G,i64 16
%O=bitcast i8*%N to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL4loop_124 to void(...)*),void(...)**%O,align 8
%P=getelementptr inbounds i8,i8*%G,i64 24
%Q=bitcast i8*%P to i32*
store i32 -2147483647,i32*%Q,align 4
%R=load i8*,i8**%b,align 8
%S=getelementptr inbounds i8,i8*%R,i64 8
%T=bitcast i8*%S to i32*
%U=load i32,i32*%T,align 4
tail call fastcc void@_SMLL4loop_69(i8*inreg%J,i32 inreg%U)
ret void
}
define internal fastcc i8*@_SMLLN9StringCvt7padLeftE_73(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=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%h,label%k
h:
%i=bitcast i8*%a to i32*
%j=bitcast i8**%e to i32**
br label%o
k:
call void@sml_check(i32 inreg%f)
%l=load i8*,i8**%c,align 8
%m=bitcast i8**%e to i32**
%n=load i32*,i32**%m,align 8
br label%o
o:
%p=phi i32**[%j,%h],[%m,%k]
%q=phi i32*[%i,%h],[%n,%k]
%r=phi i8*[%b,%h],[%l,%k]
store i8*%r,i8**%d,align 8
%s=getelementptr inbounds i8,i8*%r,i64 -4
%t=bitcast i8*%s to i32*
%u=load i32,i32*%t,align 4
%v=and i32%u,268435455
%w=add nsw i32%v,-1
%x=load i32,i32*%q,align 4
%y=icmp slt i32%x,%v
br i1%y,label%z,label%A
z:
ret i8*%r
A:
%B=icmp ugt i32%x,268435454
br i1%B,label%ai,label%C
C:
%D=add nsw i32%x,1
%E=call i8*@sml_alloc(i32 inreg%D)#0
%F=getelementptr inbounds i8,i8*%E,i64 -4
%G=bitcast i8*%F to i32*
store i32%D,i32*%G,align 4
%H=load i32*,i32**%p,align 8
%I=load i32,i32*%H,align 4
%J=sext i32%I to i64
%K=getelementptr inbounds i8,i8*%E,i64%J
store i8 0,i8*%K,align 1
store i8*%E,i8**%c,align 8
%L=load i32,i32*%H,align 4
%M=sub nsw i32%L,%w
store i8*null,i8**%e,align 8
%N=getelementptr inbounds i32,i32*%H,i64 1
%O=bitcast i32*%N to i8*
%P=load i8,i8*%O,align 1
%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=getelementptr inbounds i8,i8*%Q,i64 17
call void@llvm.memset.p0i8.i32(i8*%T,i8 0,i32 7,i1 false)
%U=load i8*,i8**%c,align 8
%V=bitcast i8*%Q to i8**
store i8*%U,i8**%V,align 8
%W=getelementptr inbounds i8,i8*%Q,i64 8
%X=bitcast i8*%W to i32*
store i32 0,i32*%X,align 4
%Y=getelementptr inbounds i8,i8*%Q,i64 12
%Z=bitcast i8*%Y to i32*
store i32%M,i32*%Z,align 4
%aa=getelementptr inbounds i8,i8*%Q,i64 16
store i8%P,i8*%aa,align 1
%ab=getelementptr inbounds i8,i8*%Q,i64 24
%ac=bitcast i8*%ab to i32*
store i32 1,i32*%ac,align 4
call fastcc void@_SMLLN9StringCvt4fillE_70(i8*inreg%Q)
%ad=load i8*,i8**%c,align 8
%ae=load i8*,i8**%d,align 8
%af=sext i32%M to i64
%ag=getelementptr inbounds i8,i8*%ad,i64%af
call void@llvm.memmove.p0i8.p0i8.i32(i8*%ag,i8*%ae,i32%w,i1 false)
%ah=load i8*,i8**%c,align 8
ret i8*%ah
ai:
store i8*null,i8**%d,align 8
store i8*null,i8**%e,align 8
%aj=load i8*,i8**@_SMLZ4Size,align 8
store i8*%aj,i8**%c,align 8
%ak=call i8*@sml_alloc(i32 inreg 20)#0
%al=getelementptr inbounds i8,i8*%ak,i64 -4
%am=bitcast i8*%al to i32*
store i32 1342177296,i32*%am,align 4
store i8*%ak,i8**%d,align 8
%an=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ao=bitcast i8*%ak to i8**
store i8*%an,i8**%ao,align 8
%ap=getelementptr inbounds i8,i8*%ak,i64 8
%aq=bitcast i8*%ap to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[41x i8]}>,<{[4x i8],i32,[41x i8]}>*@a,i64 0,i32 2,i64 0),i8**%aq,align 8
%ar=getelementptr inbounds i8,i8*%ak,i64 16
%as=bitcast i8*%ar to i32*
store i32 3,i32*%as,align 4
%at=call i8*@sml_alloc(i32 inreg 60)#0
%au=getelementptr inbounds i8,i8*%at,i64 -4
%av=bitcast i8*%au to i32*
store i32 1342177336,i32*%av,align 4
%aw=getelementptr inbounds i8,i8*%at,i64 56
%ax=bitcast i8*%aw to i32*
store i32 1,i32*%ax,align 4
%ay=load i8*,i8**%d,align 8
%az=bitcast i8*%at to i8**
store i8*%ay,i8**%az,align 8
call void@sml_raise(i8*inreg%at)#1
unreachable
}
define internal fastcc i8*@_SMLLN9StringCvt7padLeftE_74(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*)*@_SMLLN9StringCvt7padLeftE_73 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*)*@_SMLLN9StringCvt7padLeftE_73 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)*@_SMLLN9StringCvt7padLeftE_74 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*)*@_SMLLN9StringCvt7padLeftE_126 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*@_SMLLN9StringCvt8padRightE_78(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=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%h,label%k
h:
%i=bitcast i8*%a to i32*
%j=bitcast i8**%e to i32**
br label%o
k:
call void@sml_check(i32 inreg%f)
%l=load i8*,i8**%c,align 8
%m=bitcast i8**%e to i32**
%n=load i32*,i32**%m,align 8
br label%o
o:
%p=phi i32**[%j,%h],[%m,%k]
%q=phi i32*[%i,%h],[%n,%k]
%r=phi i8*[%b,%h],[%l,%k]
store i8*%r,i8**%d,align 8
%s=getelementptr inbounds i8,i8*%r,i64 -4
%t=bitcast i8*%s to i32*
%u=load i32,i32*%t,align 4
%v=and i32%u,268435455
%w=add nsw i32%v,-1
%x=load i32,i32*%q,align 4
%y=icmp slt i32%x,%v
br i1%y,label%z,label%A
z:
ret i8*%r
A:
%B=icmp ugt i32%x,268435454
br i1%B,label%ae,label%C
C:
%D=add nsw i32%x,1
%E=call i8*@sml_alloc(i32 inreg%D)#0
%F=getelementptr inbounds i8,i8*%E,i64 -4
%G=bitcast i8*%F to i32*
store i32%D,i32*%G,align 4
%H=load i32*,i32**%p,align 8
%I=load i32,i32*%H,align 4
%J=sext i32%I to i64
%K=getelementptr inbounds i8,i8*%E,i64%J
store i8 0,i8*%K,align 1
store i8*%E,i8**%c,align 8
%L=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
call void@llvm.memmove.p0i8.p0i8.i32(i8*%E,i8*%L,i32%w,i1 false)
%M=load i32,i32*%H,align 4
store i8*null,i8**%e,align 8
%N=getelementptr inbounds i32,i32*%H,i64 1
%O=bitcast i32*%N to i8*
%P=load i8,i8*%O,align 1
%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=getelementptr inbounds i8,i8*%Q,i64 17
call void@llvm.memset.p0i8.i32(i8*%T,i8 0,i32 7,i1 false)
%U=load i8*,i8**%c,align 8
%V=bitcast i8*%Q to i8**
store i8*%U,i8**%V,align 8
%W=getelementptr inbounds i8,i8*%Q,i64 8
%X=bitcast i8*%W to i32*
store i32%w,i32*%X,align 4
%Y=getelementptr inbounds i8,i8*%Q,i64 12
%Z=bitcast i8*%Y to i32*
store i32%M,i32*%Z,align 4
%aa=getelementptr inbounds i8,i8*%Q,i64 16
store i8%P,i8*%aa,align 1
%ab=getelementptr inbounds i8,i8*%Q,i64 24
%ac=bitcast i8*%ab to i32*
store i32 1,i32*%ac,align 4
call fastcc void@_SMLLN9StringCvt4fillE_70(i8*inreg%Q)
%ad=load i8*,i8**%c,align 8
ret i8*%ad
ae:
store i8*null,i8**%d,align 8
store i8*null,i8**%e,align 8
%af=load i8*,i8**@_SMLZ4Size,align 8
store i8*%af,i8**%c,align 8
%ag=call i8*@sml_alloc(i32 inreg 20)#0
%ah=getelementptr inbounds i8,i8*%ag,i64 -4
%ai=bitcast i8*%ah to i32*
store i32 1342177296,i32*%ai,align 4
store i8*%ag,i8**%d,align 8
%aj=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ak=bitcast i8*%ag to i8**
store i8*%aj,i8**%ak,align 8
%al=getelementptr inbounds i8,i8*%ag,i64 8
%am=bitcast i8*%al to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[41x i8]}>,<{[4x i8],i32,[41x i8]}>*@c,i64 0,i32 2,i64 0),i8**%am,align 8
%an=getelementptr inbounds i8,i8*%ag,i64 16
%ao=bitcast i8*%an to i32*
store i32 3,i32*%ao,align 4
%ap=call i8*@sml_alloc(i32 inreg 60)#0
%aq=getelementptr inbounds i8,i8*%ap,i64 -4
%ar=bitcast i8*%aq to i32*
store i32 1342177336,i32*%ar,align 4
%as=getelementptr inbounds i8,i8*%ap,i64 56
%at=bitcast i8*%as to i32*
store i32 1,i32*%at,align 4
%au=load i8*,i8**%d,align 8
%av=bitcast i8*%ap to i8**
store i8*%au,i8**%av,align 8
call void@sml_raise(i8*inreg%ap)#1
unreachable
}
define internal fastcc i8*@_SMLLN9StringCvt8padRightE_79(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*)*@_SMLLN9StringCvt8padRightE_78 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*)*@_SMLLN9StringCvt8padRightE_78 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)*@_SMLLN9StringCvt8padRightE_79 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*)*@_SMLLN9StringCvt8padRightE_128 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*@_SMLL4scan_82(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
l:
%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
%h=bitcast i8**%c to i8***
%i=bitcast i8**%f to i8***
br label%j
j:
%k=phi i8*[%cf,%cu],[%b,%l]
store i8*%k,i8**%c,align 8
%m=load atomic i32,i32*@sml_check_flag unordered,align 4
%n=icmp eq i32%m,0
%o=bitcast i8*%k to i8**
br i1%n,label%s,label%p
p:
call void@sml_check(i32 inreg%m)
%q=load i8**,i8***%h,align 8
%r=bitcast i8**%q to i8*
br label%s
s:
%t=phi i8*[%r,%p],[%k,%j]
%u=phi i8**[%q,%p],[%o,%j]
%v=load i8*,i8**%f,align 8
%w=getelementptr inbounds i8,i8*%v,i64 20
%x=bitcast i8*%w to i32*
%y=load i32,i32*%x,align 4
%z=add i32%y,11
%A=sub i32 0,%y
%B=and i32%z,%A
%C=and i32%y,%A
%D=add i32%y,7
%E=add i32%D,%B
%F=and i32%E,-8
%G=lshr i32%B,3
%H=add nsw i32%G,-1
%I=getelementptr inbounds i8,i8*%v,i64 16
%J=bitcast i8*%I to i32*
%K=load i32,i32*%J,align 4
%L=shl i32%K,%H
%M=shl i32%L,1
%N=or i32%M,1
%O=or i32%F,4
%P=load i8*,i8**%u,align 8
store i8*%P,i8**%d,align 8
%Q=getelementptr inbounds i8,i8*%t,i64 8
%R=bitcast i8*%Q to i32*
%S=load i32,i32*%R,align 4
%T=icmp eq i32%K,0
br i1%T,label%Z,label%U
U:
store i8*null,i8**%c,align 8
%V=sext i32%B to i64
%W=getelementptr inbounds i8,i8*%t,i64%V
%X=bitcast i8*%W to i8**
%Y=load i8*,i8**%X,align 8
br label%ah
Z:
%aa=call i8*@sml_alloc(i32 inreg%y)#0
%ab=getelementptr inbounds i8,i8*%aa,i64 -4
%ac=bitcast i8*%ab to i32*
store i32%y,i32*%ac,align 4
%ad=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ae=sext i32%B to i64
%af=getelementptr inbounds i8,i8*%ad,i64%ae
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%aa,i8*%af,i32%y,i1 false)
%ag=load i8*,i8**%f,align 8
br label%ah
ah:
%ai=phi i8*[%ag,%Z],[%v,%U]
%aj=phi i8*[%aa,%Z],[%Y,%U]
store i8*%aj,i8**%c,align 8
%ak=getelementptr inbounds i8,i8*%ai,i64 8
%al=bitcast i8*%ak to i8**
%am=load i8*,i8**%al,align 8
%an=getelementptr inbounds i8,i8*%am,i64 16
%ao=bitcast i8*%an to i8*(i8*,i8*)**
%ap=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%ao,align 8
%aq=bitcast i8*%am to i8**
%ar=load i8*,i8**%aq,align 8
%as=call fastcc i8*%ap(i8*inreg%ar,i8*inreg%aj)
%at=icmp eq i8*%as,null
br i1%at,label%au,label%aV
au:
%av=load i8*,i8**%f,align 8
%aw=getelementptr inbounds i8,i8*%av,i64 20
%ax=bitcast i8*%aw to i32*
%ay=load i32,i32*%ax,align 4
store i8*null,i8**%f,align 8
%az=getelementptr inbounds i8,i8*%av,i64 16
%aA=bitcast i8*%az to i32*
%aB=load i32,i32*%aA,align 4
%aC=call i8*@sml_alloc(i32 inreg%O)#0
%aD=or i32%F,1342177280
%aE=getelementptr inbounds i8,i8*%aC,i64 -4
%aF=bitcast i8*%aE to i32*
store i32%aD,i32*%aF,align 4
call void@llvm.memset.p0i8.i32(i8*%aC,i8 0,i32%O,i1 false)
%aG=load i8*,i8**%d,align 8
%aH=bitcast i8*%aC to i8**
store i8*%aG,i8**%aH,align 8
%aI=getelementptr inbounds i8,i8*%aC,i64 8
%aJ=bitcast i8*%aI to i32*
store i32%S,i32*%aJ,align 4
%aK=icmp eq i32%aB,0
%aL=load i8*,i8**%c,align 8
%aM=sext i32%B to i64
%aN=getelementptr inbounds i8,i8*%aC,i64%aM
br i1%aK,label%aQ,label%aO
aO:
%aP=bitcast i8*%aN to i8**
store i8*%aL,i8**%aP,align 8
br label%aR
aQ:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%aN,i8*%aL,i32%ay,i1 false)
br label%aR
aR:
%aS=sext i32%F to i64
%aT=getelementptr inbounds i8,i8*%aC,i64%aS
%aU=bitcast i8*%aT to i32*
store i32%N,i32*%aU,align 4
ret i8*%aC
aV:
%aW=bitcast i8*%as to i8**
%aX=load i8*,i8**%aW,align 8
store i8*%aX,i8**%e,align 8
%aY=load i8,i8*%aX,align 1
%aZ=load i8*,i8**%f,align 8
%a0=getelementptr inbounds i8,i8*%aZ,i64 16
%a1=bitcast i8*%a0 to i32*
%a2=load i32,i32*%a1,align 4
%a3=icmp eq i32%a2,0
br i1%a3,label%ba,label%a4
a4:
%a5=bitcast i8*%aZ to i8**
store i8*null,i8**%e,align 8
%a6=sext i32%C to i64
%a7=getelementptr inbounds i8,i8*%aX,i64%a6
%a8=bitcast i8*%a7 to i8**
%a9=load i8*,i8**%a8,align 8
br label%bl
ba:
%bb=getelementptr inbounds i8,i8*%aZ,i64 20
%bc=bitcast i8*%bb to i32*
%bd=load i32,i32*%bc,align 4
%be=call i8*@sml_alloc(i32 inreg%bd)#0
%bf=getelementptr inbounds i8,i8*%be,i64 -4
%bg=bitcast i8*%bf to i32*
store i32%bd,i32*%bg,align 4
%bh=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%bi=sext i32%C to i64
%bj=getelementptr inbounds i8,i8*%bh,i64%bi
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%be,i8*%bj,i32%bd,i1 false)
%bk=load i8**,i8***%i,align 8
br label%bl
bl:
%bm=phi i8**[%bk,%ba],[%a5,%a4]
%bn=phi i8*[%be,%ba],[%a9,%a4]
store i8*%bn,i8**%e,align 8
%bo=load i8*,i8**%bm,align 8
%bp=getelementptr inbounds i8,i8*%bo,i64 16
%bq=bitcast i8*%bp to i8*(i8*,i8*)**
%br=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bq,align 8
%bs=bitcast i8*%bo to i8**
%bt=load i8*,i8**%bs,align 8
store i8*%bt,i8**%g,align 8
%bu=call i8*@sml_alloc(i32 inreg 1)#0
%bv=getelementptr inbounds i8,i8*%bu,i64 -4
%bw=bitcast i8*%bv to i32*
store i32 1,i32*%bw,align 4
store i8%aY,i8*%bu,align 1
%bx=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%by=call fastcc i8*%br(i8*inreg%bx,i8*inreg%bu)
%bz=bitcast i8*%by to i32*
%bA=load i32,i32*%bz,align 4
%bB=icmp eq i32%bA,0
br i1%bB,label%cy,label%bC
bC:
%bD=call{i32,i1}@llvm.sadd.with.overflow.i32(i32%S,i32 1)#0
%bE=extractvalue{i32,i1}%bD,1
br i1%bE,label%bF,label%bX
bF:
store i8*null,i8**%d,align 8
store i8*null,i8**%e,align 8
store i8*null,i8**%f,align 8
%bG=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%bG,i8**%c,align 8
%bH=call i8*@sml_alloc(i32 inreg 20)#0
%bI=getelementptr inbounds i8,i8*%bH,i64 -4
%bJ=bitcast i8*%bI to i32*
store i32 1342177296,i32*%bJ,align 4
store i8*%bH,i8**%d,align 8
%bK=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bL=bitcast i8*%bH to i8**
store i8*%bK,i8**%bL,align 8
%bM=getelementptr inbounds i8,i8*%bH,i64 8
%bN=bitcast i8*%bM to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[41x i8]}>,<{[4x i8],i32,[41x i8]}>*@e,i64 0,i32 2,i64 0),i8**%bN,align 8
%bO=getelementptr inbounds i8,i8*%bH,i64 16
%bP=bitcast i8*%bO to i32*
store i32 3,i32*%bP,align 4
%bQ=call i8*@sml_alloc(i32 inreg 60)#0
%bR=getelementptr inbounds i8,i8*%bQ,i64 -4
%bS=bitcast i8*%bR to i32*
store i32 1342177336,i32*%bS,align 4
%bT=getelementptr inbounds i8,i8*%bQ,i64 56
%bU=bitcast i8*%bT to i32*
store i32 1,i32*%bU,align 4
%bV=load i8*,i8**%d,align 8
%bW=bitcast i8*%bQ to i8**
store i8*%bV,i8**%bW,align 8
call void@sml_raise(i8*inreg%bQ)#1
unreachable
bX:
%bY=add nsw i32%S,1
%bZ=call i8*@sml_alloc(i32 inreg 20)#0
%b0=getelementptr inbounds i8,i8*%bZ,i64 -4
%b1=bitcast i8*%b0 to i32*
store i32 1342177296,i32*%b1,align 4
store i8*%bZ,i8**%c,align 8
%b2=getelementptr inbounds i8,i8*%bZ,i64 1
call void@llvm.memset.p0i8.i32(i8*%b2,i8 0,i32 7,i1 false)
store i8%aY,i8*%bZ,align 1
%b3=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%b4=getelementptr inbounds i8,i8*%bZ,i64 8
%b5=bitcast i8*%b4 to i8**
store i8*%b3,i8**%b5,align 8
%b6=getelementptr inbounds i8,i8*%bZ,i64 16
%b7=bitcast i8*%b6 to i32*
store i32 2,i32*%b7,align 4
%b8=load i8*,i8**%f,align 8
%b9=getelementptr inbounds i8,i8*%b8,i64 20
%ca=bitcast i8*%b9 to i32*
%cb=load i32,i32*%ca,align 4
%cc=getelementptr inbounds i8,i8*%b8,i64 16
%cd=bitcast i8*%cc to i32*
%ce=load i32,i32*%cd,align 4
%cf=call i8*@sml_alloc(i32 inreg%O)#0
%cg=or i32%F,1342177280
%ch=getelementptr inbounds i8,i8*%cf,i64 -4
%ci=bitcast i8*%ch to i32*
store i32%cg,i32*%ci,align 4
call void@llvm.memset.p0i8.i32(i8*%cf,i8 0,i32%O,i1 false)
%cj=load i8*,i8**%c,align 8
%ck=bitcast i8*%cf to i8**
store i8*%cj,i8**%ck,align 8
%cl=getelementptr inbounds i8,i8*%cf,i64 8
%cm=bitcast i8*%cl to i32*
store i32%bY,i32*%cm,align 4
%cn=icmp eq i32%ce,0
%co=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%cp=sext i32%B to i64
%cq=getelementptr inbounds i8,i8*%cf,i64%cp
br i1%cn,label%ct,label%cr
cr:
%cs=bitcast i8*%cq to i8**
store i8*%co,i8**%cs,align 8
br label%cu
ct:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%cq,i8*%co,i32%cb,i1 false)
br label%cu
cu:
%cv=sext i32%F to i64
%cw=getelementptr inbounds i8,i8*%cf,i64%cv
%cx=bitcast i8*%cw to i32*
store i32%N,i32*%cx,align 4
br label%j
cy:
store i8*null,i8**%e,align 8
%cz=load i8*,i8**%f,align 8
%cA=getelementptr inbounds i8,i8*%cz,i64 20
%cB=bitcast i8*%cA to i32*
%cC=load i32,i32*%cB,align 4
store i8*null,i8**%f,align 8
%cD=getelementptr inbounds i8,i8*%cz,i64 16
%cE=bitcast i8*%cD to i32*
%cF=load i32,i32*%cE,align 4
%cG=call i8*@sml_alloc(i32 inreg%O)#0
%cH=or i32%F,1342177280
%cI=getelementptr inbounds i8,i8*%cG,i64 -4
%cJ=bitcast i8*%cI to i32*
store i32%cH,i32*%cJ,align 4
call void@llvm.memset.p0i8.i32(i8*%cG,i8 0,i32%O,i1 false)
%cK=load i8*,i8**%d,align 8
%cL=bitcast i8*%cG to i8**
store i8*%cK,i8**%cL,align 8
%cM=getelementptr inbounds i8,i8*%cG,i64 8
%cN=bitcast i8*%cM to i32*
store i32%S,i32*%cN,align 4
%cO=icmp eq i32%cF,0
%cP=load i8*,i8**%c,align 8
%cQ=sext i32%B to i64
%cR=getelementptr inbounds i8,i8*%cG,i64%cQ
br i1%cO,label%cU,label%cS
cS:
%cT=bitcast i8*%cR to i8**
store i8*%cP,i8**%cT,align 8
br label%cV
cU:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%cR,i8*%cP,i32%cC,i1 false)
br label%cV
cV:
%cW=sext i32%F to i64
%cX=getelementptr inbounds i8,i8*%cG,i64%cW
%cY=bitcast i8*%cX to i32*
store i32%N,i32*%cY,align 4
ret i8*%cG
}
define internal fastcc void@_SMLL4loop_86(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
h:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%d,align 8
%e=bitcast i8**%d to i8***
br label%f
f:
%g=phi i8*[%F,%v],[%b,%h]
store i8*%g,i8**%c,align 8
%i=load atomic i32,i32*@sml_check_flag unordered,align 4
%j=icmp eq i32%i,0
br i1%j,label%m,label%k
k:
call void@sml_check(i32 inreg%i)
%l=load i8*,i8**%c,align 8
br label%m
m:
%n=phi i8*[%l,%k],[%g,%f]
%o=bitcast i8*%n to i32*
%p=load i32,i32*%o,align 4
%q=getelementptr inbounds i8,i8*%n,i64 8
%r=bitcast i8*%q to i8**
%s=load i8*,i8**%r,align 8
%t=icmp eq i8*%s,null
br i1%t,label%u,label%v
u:
ret void
v:
%w=load i8,i8*%s,align 1
%x=getelementptr inbounds i8,i8*%s,i64 8
%y=bitcast i8*%x to i8**
%z=load i8*,i8**%y,align 8
store i8*%z,i8**%c,align 8
%A=load i8**,i8***%e,align 8
%B=load i8*,i8**%A,align 8
%C=sext i32%p to i64
%D=getelementptr inbounds i8,i8*%B,i64%C
store i8%w,i8*%D,align 1
%E=add nsw i32%p,-1
%F=call i8*@sml_alloc(i32 inreg 20)#0
%G=bitcast i8*%F to i32*
%H=getelementptr inbounds i8,i8*%F,i64 -4
%I=bitcast i8*%H to i32*
store i32 1342177296,i32*%I,align 4
%J=getelementptr inbounds i8,i8*%F,i64 4
%K=bitcast i8*%J to i32*
store i32 0,i32*%K,align 1
store i32%E,i32*%G,align 4
%L=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%M=getelementptr inbounds i8,i8*%F,i64 8
%N=bitcast i8*%M to i8**
store i8*%L,i8**%N,align 8
%O=getelementptr inbounds i8,i8*%F,i64 16
%P=bitcast i8*%O to i32*
store i32 2,i32*%P,align 4
br label%f
}
define internal fastcc i8*@_SMLLN9StringCvt6splitlE_87(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"personality i32(...)*@sml_personality{
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**%f,align 8
br label%l
l:
%m=phi i8*[%k,%j],[%a,%n]
%o=getelementptr inbounds i8,i8*%m,i64 20
%p=bitcast i8*%o to i32*
%q=load i32,i32*%p,align 4
%r=add i32%q,11
%s=sub i32 0,%q
%t=and i32%r,%s
%u=add i32%q,7
%v=add i32%u,%t
%w=and i32%v,-8
%x=lshr i32%t,3
%y=add nsw i32%x,-1
%z=getelementptr inbounds i8,i8*%m,i64 16
%A=bitcast i8*%z to i32*
%B=load i32,i32*%A,align 4
%C=shl i32%B,%y
%D=shl i32%C,1
%E=or i32%D,1
%F=or i32%w,4
%G=and i32%u,%s
%H=add i32%u,%G
%I=and i32%H,-8
%J=lshr i32%G,3
%K=shl i32%B,%J
%L=or i32%K,1
%M=or i32%I,4
%N=bitcast i8*%m to i8**
%O=load i8*,i8**%N,align 8
store i8*%O,i8**%d,align 8
%P=getelementptr inbounds i8,i8*%m,i64 8
%Q=bitcast i8*%P to i8**
%R=load i8*,i8**%Q,align 8
store i8*%R,i8**%e,align 8
%S=call i8*@sml_alloc(i32 inreg 28)#0
%T=getelementptr inbounds i8,i8*%S,i64 -4
%U=bitcast i8*%T to i32*
store i32 1342177304,i32*%U,align 4
store i8*%S,i8**%g,align 8
%V=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%W=bitcast i8*%S to i8**
store i8*%V,i8**%W,align 8
%X=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%Y=getelementptr inbounds i8,i8*%S,i64 8
%Z=bitcast i8*%Y to i8**
store i8*%X,i8**%Z,align 8
%aa=getelementptr inbounds i8,i8*%S,i64 16
%ab=bitcast i8*%aa to i32*
store i32%B,i32*%ab,align 4
%ac=getelementptr inbounds i8,i8*%S,i64 20
%ad=bitcast i8*%ac to i32*
store i32%q,i32*%ad,align 4
%ae=getelementptr inbounds i8,i8*%S,i64 24
%af=bitcast i8*%ae to i32*
store i32 3,i32*%af,align 4
%ag=call i8*@sml_alloc(i32 inreg 28)#0
%ah=getelementptr inbounds i8,i8*%ag,i64 -4
%ai=bitcast i8*%ah to i32*
store i32 1342177304,i32*%ai,align 4
%aj=load i8*,i8**%g,align 8
%ak=bitcast i8*%ag to i8**
store i8*%aj,i8**%ak,align 8
%al=getelementptr inbounds i8,i8*%ag,i64 8
%am=bitcast i8*%al to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL4scan_82 to void(...)*),void(...)**%am,align 8
%an=getelementptr inbounds i8,i8*%ag,i64 16
%ao=bitcast i8*%an to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL4scan_82 to void(...)*),void(...)**%ao,align 8
%ap=getelementptr inbounds i8,i8*%ag,i64 24
%aq=bitcast i8*%ap to i32*
store i32 -2147483647,i32*%aq,align 4
%ar=load i8*,i8**%f,align 8
%as=getelementptr inbounds i8,i8*%ar,i64 20
%at=bitcast i8*%as to i32*
%au=load i32,i32*%at,align 4
%av=getelementptr inbounds i8,i8*%ar,i64 16
%aw=bitcast i8*%av to i32*
%ax=load i32,i32*%aw,align 4
%ay=call i8*@sml_alloc(i32 inreg%F)#0
%az=or i32%w,1342177280
%aA=getelementptr inbounds i8,i8*%ay,i64 -4
%aB=bitcast i8*%aA to i32*
store i32%az,i32*%aB,align 4
call void@llvm.memset.p0i8.i32(i8*%ay,i8 0,i32%F,i1 false)
%aC=bitcast i8*%ay to i8**
store i8*null,i8**%aC,align 8
%aD=getelementptr inbounds i8,i8*%ay,i64 8
%aE=bitcast i8*%aD to i32*
store i32 0,i32*%aE,align 4
%aF=icmp eq i32%ax,0
%aG=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aH=sext i32%t to i64
%aI=getelementptr inbounds i8,i8*%ay,i64%aH
br i1%aF,label%aL,label%aJ
aJ:
%aK=bitcast i8*%aI to i8**
store i8*%aG,i8**%aK,align 8
br label%aM
aL:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%aI,i8*%aG,i32%au,i1 false)
br label%aM
aM:
%aN=sext i32%w to i64
%aO=getelementptr inbounds i8,i8*%ay,i64%aN
%aP=bitcast i8*%aO to i32*
store i32%E,i32*%aP,align 4
%aQ=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%aR=invoke fastcc i8*@_SMLL4scan_82(i8*inreg%aQ,i8*inreg%ay)
to label%aS unwind label%a3
aS:
store i8*%aR,i8**%d,align 8
%aT=bitcast i8*%aR to i8**
%aU=load i8*,i8**%aT,align 8
store i8*%aU,i8**%c,align 8
%aV=getelementptr inbounds i8,i8*%aR,i64 8
%aW=bitcast i8*%aV to i32*
%aX=load i32,i32*%aW,align 4
%aY=load i8*,i8**%f,align 8
%aZ=getelementptr inbounds i8,i8*%aY,i64 16
%a0=bitcast i8*%aZ to i32*
%a1=load i32,i32*%a0,align 4
%a2=icmp eq i32%a1,0
br i1%a2,label%bG,label%bC
a3:
%a4=landingpad{i8*,i8*}
catch i8*null
%a5=extractvalue{i8*,i8*}%a4,1
%a6=bitcast i8*%a5 to i8**
%a7=load i8*,i8**%a6,align 8
store i8*null,i8**%f,align 8
store i8*%a7,i8**%c,align 8
%a8=bitcast i8*%a7 to i8**
%a9=load i8*,i8**%a8,align 8
%ba=load i8*,i8**@_SMLZ8Overflow,align 8
%bb=icmp eq i8*%a9,%ba
br i1%bb,label%bc,label%bu
bc:
%bd=load i8*,i8**@_SMLZ4Size,align 8
store i8*%bd,i8**%c,align 8
%be=call i8*@sml_alloc(i32 inreg 20)#0
%bf=getelementptr inbounds i8,i8*%be,i64 -4
%bg=bitcast i8*%bf to i32*
store i32 1342177296,i32*%bg,align 4
store i8*%be,i8**%d,align 8
%bh=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bi=bitcast i8*%be to i8**
store i8*%bh,i8**%bi,align 8
%bj=getelementptr inbounds i8,i8*%be,i64 8
%bk=bitcast i8*%bj to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[41x i8]}>,<{[4x i8],i32,[41x i8]}>*@f,i64 0,i32 2,i64 0),i8**%bk,align 8
%bl=getelementptr inbounds i8,i8*%be,i64 16
%bm=bitcast i8*%bl to i32*
store i32 3,i32*%bm,align 4
%bn=call i8*@sml_alloc(i32 inreg 60)#0
%bo=getelementptr inbounds i8,i8*%bn,i64 -4
%bp=bitcast i8*%bo to i32*
store i32 1342177336,i32*%bp,align 4
%bq=getelementptr inbounds i8,i8*%bn,i64 56
%br=bitcast i8*%bq to i32*
store i32 1,i32*%br,align 4
%bs=load i8*,i8**%d,align 8
%bt=bitcast i8*%bn to i8**
store i8*%bs,i8**%bt,align 8
call void@sml_raise(i8*inreg%bn)#1
unreachable
bu:
%bv=call i8*@sml_alloc(i32 inreg 60)#0
%bw=getelementptr inbounds i8,i8*%bv,i64 -4
%bx=bitcast i8*%bw to i32*
store i32 1342177336,i32*%bx,align 4
%by=getelementptr inbounds i8,i8*%bv,i64 56
%bz=bitcast i8*%by to i32*
store i32 1,i32*%bz,align 4
%bA=load i8*,i8**%c,align 8
%bB=bitcast i8*%bv to i8**
store i8*%bA,i8**%bB,align 8
call void@sml_raise(i8*inreg%bv)#1
unreachable
bC:
store i8*null,i8**%d,align 8
%bD=getelementptr inbounds i8,i8*%aR,i64%aH
%bE=bitcast i8*%bD to i8**
%bF=load i8*,i8**%bE,align 8
br label%bP
bG:
%bH=getelementptr inbounds i8,i8*%aY,i64 20
%bI=bitcast i8*%bH to i32*
%bJ=load i32,i32*%bI,align 4
%bK=call i8*@sml_alloc(i32 inreg%bJ)#0
%bL=getelementptr inbounds i8,i8*%bK,i64 -4
%bM=bitcast i8*%bL to i32*
store i32%bJ,i32*%bM,align 4
%bN=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%bO=getelementptr inbounds i8,i8*%bN,i64%aH
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%bK,i8*%bO,i32%bJ,i1 false)
br label%bP
bP:
%bQ=phi i8*[%bK,%bG],[%bF,%bC]
store i8*%bQ,i8**%d,align 8
%bR=icmp ugt i32%aX,268435454
br i1%bR,label%cL,label%bS
bS:
%bT=add nsw i32%aX,1
%bU=call i8*@sml_alloc(i32 inreg%bT)#0
%bV=getelementptr inbounds i8,i8*%bU,i64 -4
%bW=bitcast i8*%bV to i32*
store i32%bT,i32*%bW,align 4
%bX=sext i32%aX to i64
%bY=getelementptr inbounds i8,i8*%bU,i64%bX
store i8 0,i8*%bY,align 1
store i8*%bU,i8**%e,align 8
%bZ=call i8*@sml_alloc(i32 inreg 12)#0
%b0=getelementptr inbounds i8,i8*%bZ,i64 -4
%b1=bitcast i8*%b0 to i32*
store i32 1342177288,i32*%b1,align 4
store i8*%bZ,i8**%g,align 8
%b2=load i8*,i8**%e,align 8
%b3=bitcast i8*%bZ to i8**
store i8*%b2,i8**%b3,align 8
%b4=getelementptr inbounds i8,i8*%bZ,i64 8
%b5=bitcast i8*%b4 to i32*
store i32 1,i32*%b5,align 4
%b6=call i8*@sml_alloc(i32 inreg 28)#0
%b7=getelementptr inbounds i8,i8*%b6,i64 -4
%b8=bitcast i8*%b7 to i32*
store i32 1342177304,i32*%b8,align 4
%b9=load i8*,i8**%g,align 8
%ca=bitcast i8*%b6 to i8**
store i8*%b9,i8**%ca,align 8
%cb=getelementptr inbounds i8,i8*%b6,i64 8
%cc=bitcast i8*%cb to void(...)**
store void(...)*bitcast(void(i8*,i8*)*@_SMLL4loop_86 to void(...)*),void(...)**%cc,align 8
%cd=getelementptr inbounds i8,i8*%b6,i64 16
%ce=bitcast i8*%cd to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL4loop_130 to void(...)*),void(...)**%ce,align 8
%cf=getelementptr inbounds i8,i8*%b6,i64 24
%cg=bitcast i8*%cf to i32*
store i32 -2147483647,i32*%cg,align 4
%ch=add nsw i32%aX,-1
%ci=call i8*@sml_alloc(i32 inreg 20)#0
%cj=bitcast i8*%ci to i32*
%ck=getelementptr inbounds i8,i8*%ci,i64 -4
%cl=bitcast i8*%ck to i32*
store i32 1342177296,i32*%cl,align 4
%cm=getelementptr inbounds i8,i8*%ci,i64 4
%cn=bitcast i8*%cm to i32*
store i32 0,i32*%cn,align 1
store i32%ch,i32*%cj,align 4
%co=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%cp=getelementptr inbounds i8,i8*%ci,i64 8
%cq=bitcast i8*%cp to i8**
store i8*%co,i8**%cq,align 8
%cr=getelementptr inbounds i8,i8*%ci,i64 16
%cs=bitcast i8*%cr to i32*
store i32 2,i32*%cs,align 4
%ct=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
call fastcc void@_SMLL4loop_86(i8*inreg%ct,i8*inreg%ci)
%cu=load i8*,i8**%f,align 8
%cv=getelementptr inbounds i8,i8*%cu,i64 20
%cw=bitcast i8*%cv to i32*
%cx=load i32,i32*%cw,align 4
store i8*null,i8**%f,align 8
%cy=getelementptr inbounds i8,i8*%cu,i64 16
%cz=bitcast i8*%cy to i32*
%cA=load i32,i32*%cz,align 4
%cB=call i8*@sml_alloc(i32 inreg%M)#0
%cC=or i32%I,1342177280
%cD=getelementptr inbounds i8,i8*%cB,i64 -4
%cE=bitcast i8*%cD to i32*
store i32%cC,i32*%cE,align 4
call void@llvm.memset.p0i8.i32(i8*%cB,i8 0,i32%M,i1 false)
%cF=load i8*,i8**%e,align 8
%cG=bitcast i8*%cB to i8**
store i8*%cF,i8**%cG,align 8
%cH=icmp eq i32%cA,0
%cI=load i8*,i8**%d,align 8
%cJ=sext i32%G to i64
%cK=getelementptr inbounds i8,i8*%cB,i64%cJ
br i1%cH,label%c5,label%c3
cL:
store i8*null,i8**%d,align 8
store i8*null,i8**%f,align 8
%cM=load i8*,i8**@_SMLZ4Size,align 8
store i8*%cM,i8**%c,align 8
%cN=call i8*@sml_alloc(i32 inreg 20)#0
%cO=getelementptr inbounds i8,i8*%cN,i64 -4
%cP=bitcast i8*%cO to i32*
store i32 1342177296,i32*%cP,align 4
store i8*%cN,i8**%d,align 8
%cQ=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%cR=bitcast i8*%cN to i8**
store i8*%cQ,i8**%cR,align 8
%cS=getelementptr inbounds i8,i8*%cN,i64 8
%cT=bitcast i8*%cS to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[41x i8]}>,<{[4x i8],i32,[41x i8]}>*@g,i64 0,i32 2,i64 0),i8**%cT,align 8
%cU=getelementptr inbounds i8,i8*%cN,i64 16
%cV=bitcast i8*%cU to i32*
store i32 3,i32*%cV,align 4
%cW=call i8*@sml_alloc(i32 inreg 60)#0
%cX=getelementptr inbounds i8,i8*%cW,i64 -4
%cY=bitcast i8*%cX to i32*
store i32 1342177336,i32*%cY,align 4
%cZ=getelementptr inbounds i8,i8*%cW,i64 56
%c0=bitcast i8*%cZ to i32*
store i32 1,i32*%c0,align 4
%c1=load i8*,i8**%d,align 8
%c2=bitcast i8*%cW to i8**
store i8*%c1,i8**%c2,align 8
call void@sml_raise(i8*inreg%cW)#1
unreachable
c3:
%c4=bitcast i8*%cK to i8**
store i8*%cI,i8**%c4,align 8
br label%c6
c5:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%cK,i8*%cI,i32%cx,i1 false)
br label%c6
c6:
%c7=sext i32%I to i64
%c8=getelementptr inbounds i8,i8*%cB,i64%c7
%c9=bitcast i8*%c8 to i32*
store i32%L,i32*%c9,align 4
ret i8*%cB
}
define internal fastcc i8*@_SMLLN9StringCvt6splitlE_88(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*)*@_SMLLN9StringCvt6splitlE_87 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*)*@_SMLLN9StringCvt6splitlE_87 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*@_SMLLN9StringCvt6splitlE_89(i8*inreg%a,i32 inreg%b,i32 inreg%c)#3 gc"smlsharp"{
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
%f=bitcast i8*%a to i8**
%g=load i8*,i8**%f,align 8
store i8*%g,i8**%d,align 8
%h=call i8*@sml_alloc(i32 inreg 20)#0
%i=getelementptr inbounds i8,i8*%h,i64 -4
%j=bitcast i8*%i to i32*
store i32 1342177296,i32*%j,align 4
store i8*%h,i8**%e,align 8
%k=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%l=bitcast i8*%h to i8**
store i8*%k,i8**%l,align 8
%m=getelementptr inbounds i8,i8*%h,i64 8
%n=bitcast i8*%m to i32*
store i32%b,i32*%n,align 4
%o=getelementptr inbounds i8,i8*%h,i64 12
%p=bitcast i8*%o to i32*
store i32%c,i32*%p,align 4
%q=getelementptr inbounds i8,i8*%h,i64 16
%r=bitcast i8*%q to i32*
store i32 1,i32*%r,align 4
%s=call i8*@sml_alloc(i32 inreg 28)#0
%t=getelementptr inbounds i8,i8*%s,i64 -4
%u=bitcast i8*%t to i32*
store i32 1342177304,i32*%u,align 4
%v=load i8*,i8**%e,align 8
%w=bitcast i8*%s to i8**
store i8*%v,i8**%w,align 8
%x=getelementptr inbounds i8,i8*%s,i64 8
%y=bitcast i8*%x to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN9StringCvt6splitlE_88 to void(...)*),void(...)**%y,align 8
%z=getelementptr inbounds i8,i8*%s,i64 16
%A=bitcast i8*%z to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN9StringCvt6splitlE_88 to void(...)*),void(...)**%A,align 8
%B=getelementptr inbounds i8,i8*%s,i64 24
%C=bitcast i8*%B to i32*
store i32 -2147483647,i32*%C,align 4
ret i8*%s
}
define internal fastcc i8*@_SMLLN9StringCvt6splitlE_90(i8*inreg%a)unnamed_addr#3 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*,i32,i32)*@_SMLLN9StringCvt6splitlE_89 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*,i8*)*@_SMLLN9StringCvt6splitlE_131 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*@_SMLLN9StringCvt5droplE_92(i8*inreg%a,i8*inreg%b,i8*inreg%c,i8*inreg%d)#4 gc"smlsharp"{
m:
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
%h=alloca i8*,align 8
%i=alloca i8*,align 8
%j=alloca i8*,align 8
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
call void@llvm.gcroot(i8**%h,i8*null)#0
call void@llvm.gcroot(i8**%i,i8*null)#0
call void@llvm.gcroot(i8**%j,i8*null)#0
store i8*%a,i8**%h,align 8
br label%k
k:
%l=phi i8*[%aC,%az],[%b,%m]
%n=phi i8*[%aB,%az],[%c,%m]
%o=phi i8*[%aA,%az],[%d,%m]
store i8*%l,i8**%f,align 8
store i8*%n,i8**%e,align 8
store i8*%o,i8**%j,align 8
%p=load atomic i32,i32*@sml_check_flag unordered,align 4
%q=icmp eq i32%p,0
br i1%q,label%u,label%r
r:
call void@sml_check(i32 inreg%p)
%s=load i8*,i8**%e,align 8
%t=load i8*,i8**%j,align 8
br label%u
u:
%v=phi i8*[%t,%r],[%o,%k]
%w=phi i8*[%s,%r],[%n,%k]
%x=load i8*,i8**%h,align 8
%y=getelementptr inbounds i8,i8*%x,i64 4
%z=bitcast i8*%y to i32*
%A=load i32,i32*%z,align 4
%B=sub i32 0,%A
%C=and i32%A,%B
%D=getelementptr inbounds i8,i8*%w,i64 16
%E=bitcast i8*%D to i8*(i8*,i8*)**
%F=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%E,align 8
%G=bitcast i8*%w to i8**
%H=load i8*,i8**%G,align 8
%I=call fastcc i8*%F(i8*inreg%H,i8*inreg%v)
%J=icmp eq i8*%I,null
br i1%J,label%K,label%M
K:
%L=load i8*,i8**%j,align 8
ret i8*%L
M:
%N=bitcast i8*%I to i8**
%O=load i8*,i8**%N,align 8
store i8*%O,i8**%g,align 8
%P=load i8*,i8**%f,align 8
%Q=getelementptr inbounds i8,i8*%P,i64 16
%R=bitcast i8*%Q to i8*(i8*,i8*)**
%S=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%R,align 8
%T=bitcast i8*%P to i8**
%U=load i8*,i8**%T,align 8
store i8*%U,i8**%i,align 8
%V=load i8,i8*%O,align 1
%W=call i8*@sml_alloc(i32 inreg 1)#0
%X=getelementptr inbounds i8,i8*%W,i64 -4
%Y=bitcast i8*%X to i32*
store i32 1,i32*%Y,align 4
store i8%V,i8*%W,align 1
%Z=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%aa=call fastcc i8*%S(i8*inreg%Z,i8*inreg%W)
%ab=bitcast i8*%aa to i32*
%ac=load i32,i32*%ab,align 4
%ad=icmp eq i32%ac,0
br i1%ad,label%aD,label%ae
ae:
%af=load i8*,i8**%h,align 8
%ag=bitcast i8*%af to i32*
%ah=load i32,i32*%ag,align 4
%ai=icmp eq i32%ah,0
br i1%ai,label%ap,label%aj
aj:
%ak=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%al=sext i32%C to i64
%am=getelementptr inbounds i8,i8*%ak,i64%al
%an=bitcast i8*%am to i8**
%ao=load i8*,i8**%an,align 8
br label%az
ap:
%aq=getelementptr inbounds i8,i8*%af,i64 4
%ar=bitcast i8*%aq to i32*
%as=load i32,i32*%ar,align 4
%at=call i8*@sml_alloc(i32 inreg%as)#0
%au=getelementptr inbounds i8,i8*%at,i64 -4
%av=bitcast i8*%au to i32*
store i32%as,i32*%av,align 4
%aw=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%ax=sext i32%C to i64
%ay=getelementptr inbounds i8,i8*%aw,i64%ax
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%at,i8*%ay,i32%as,i1 false)
br label%az
az:
%aA=phi i8*[%ao,%aj],[%at,%ap]
%aB=load i8*,i8**%e,align 8
%aC=load i8*,i8**%f,align 8
store i8*null,i8**%e,align 8
br label%k
aD:
%aE=load i8*,i8**%j,align 8
ret i8*%aE
}
define internal fastcc i8*@_SMLLN9StringCvt6skipWSE_95(i8*inreg%a,i8*inreg%b,i8*inreg%c)#4 gc"smlsharp"{
j:
%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**%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**%d,align 8
br label%h
h:
%i=phi i8*[%c,%j],[%af,%ae]
store i8*%i,i8**%g,align 8
%k=load atomic i32,i32*@sml_check_flag unordered,align 4
%l=icmp eq i32%k,0
br i1%l,label%o,label%m
m:
call void@sml_check(i32 inreg%k)
%n=load i8*,i8**%g,align 8
br label%o
o:
%p=phi i8*[%n,%m],[%i,%h]
%q=load i8*,i8**%d,align 8
%r=load i8*,i8**%f,align 8
%s=getelementptr inbounds i8,i8*%r,i64 4
%t=bitcast i8*%s to i32*
%u=load i32,i32*%t,align 4
%v=sub i32 0,%u
%w=and i32%u,%v
%x=getelementptr inbounds i8,i8*%q,i64 16
%y=bitcast i8*%x to i8*(i8*,i8*)**
%z=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%y,align 8
%A=bitcast i8*%q to i8**
%B=load i8*,i8**%A,align 8
%C=call fastcc i8*%z(i8*inreg%B,i8*inreg%p)
%D=icmp eq i8*%C,null
br i1%D,label%E,label%G
E:
%F=load i8*,i8**%g,align 8
ret i8*%F
G:
%H=bitcast i8*%C to i8**
%I=load i8*,i8**%H,align 8
store i8*%I,i8**%e,align 8
%J=load i8,i8*%I,align 1
switch i8%J,label%ag[
i8 9,label%K
i8 10,label%K
i8 11,label%K
i8 12,label%K
i8 13,label%K
i8 32,label%K
]
K:
%L=load i8*,i8**%f,align 8
%M=bitcast i8*%L to i32*
%N=load i32,i32*%M,align 4
%O=icmp eq i32%N,0
br i1%O,label%U,label%P
P:
store i8*null,i8**%e,align 8
%Q=sext i32%w to i64
%R=getelementptr inbounds i8,i8*%I,i64%Q
%S=bitcast i8*%R to i8**
%T=load i8*,i8**%S,align 8
br label%ae
U:
%V=getelementptr inbounds i8,i8*%L,i64 4
%W=bitcast i8*%V to i32*
%X=load i32,i32*%W,align 4
%Y=call i8*@sml_alloc(i32 inreg%X)#0
%Z=getelementptr inbounds i8,i8*%Y,i64 -4
%aa=bitcast i8*%Z to i32*
store i32%X,i32*%aa,align 4
%ab=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%ac=sext i32%w to i64
%ad=getelementptr inbounds i8,i8*%ab,i64%ac
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%Y,i8*%ad,i32%X,i1 false)
br label%ae
ae:
%af=phi i8*[%T,%P],[%Y,%U]
br label%h
ag:
%ah=load i8*,i8**%g,align 8
ret i8*%ah
}
define internal fastcc i8*@_SMLL6reader_98(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*@_SMLLN9StringCvt10scanStringE_99(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)*@_SMLL6reader_98 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*)*@_SMLL6reader_135 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%bf,label%bd
bd:
%be=bitcast i8*%bc to i8**
store i8*%bb,i8**%be,align 8
br label%bg
bf:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%bc,i8*%bb,i32%a5,i1 false)
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*@_SMLLN9StringCvt10scanStringE_100(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*)*@_SMLLN9StringCvt10scanStringE_99 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*)*@_SMLLN9StringCvt10scanStringE_99 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 internal fastcc i8*@_SMLLN9StringCvt6splitlE_103(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*%a to i8**
br label%n
j:
call void@sml_check(i32 inreg%f)
%k=bitcast i8**%d to i8***
%l=load i8**,i8***%k,align 8
%m=bitcast i8**%l to i8*
br label%n
n:
%o=phi i8*[%m,%j],[%a,%h]
%p=phi i8**[%l,%j],[%i,%h]
%q=load i8*,i8**%p,align 8
%r=getelementptr inbounds i8,i8*%q,i64 16
%s=bitcast i8*%r to i8*(i8*,i8*,i8*)**
%t=load i8*(i8*,i8*,i8*)*,i8*(i8*,i8*,i8*)**%s,align 8
%u=bitcast i8*%q to i8**
%v=load i8*,i8**%u,align 8
store i8*%v,i8**%e,align 8
%w=getelementptr inbounds i8,i8*%o,i64 8
%x=bitcast i8*%w to i32*
%y=load i32,i32*%x,align 4
store i8*null,i8**%d,align 8
%z=getelementptr inbounds i8,i8*%o,i64 12
%A=bitcast i8*%z to i32*
%B=load i32,i32*%A,align 4
%C=call i8*@sml_alloc(i32 inreg 4)#0
%D=bitcast i8*%C to i32*
%E=getelementptr inbounds i8,i8*%C,i64 -4
%F=bitcast i8*%E to i32*
store i32 4,i32*%F,align 4
store i8*%C,i8**%d,align 8
store i32%y,i32*%D,align 4
%G=call i8*@sml_alloc(i32 inreg 4)#0
%H=bitcast i8*%G to i32*
%I=getelementptr inbounds i8,i8*%G,i64 -4
%J=bitcast i8*%I to i32*
store i32 4,i32*%J,align 4
store i32%B,i32*%H,align 4
%K=load i8*,i8**%e,align 8
%L=load i8*,i8**%d,align 8
store i8*null,i8**%e,align 8
store i8*null,i8**%d,align 8
%M=call fastcc i8*%t(i8*inreg%K,i8*inreg%L,i8*inreg%G)
%N=getelementptr inbounds i8,i8*%M,i64 16
%O=bitcast i8*%N to i8*(i8*,i8*)**
%P=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%O,align 8
%Q=bitcast i8*%M to i8**
%R=load i8*,i8**%Q,align 8
%S=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%T=call fastcc i8*%P(i8*inreg%R,i8*inreg%S)
ret i8*%T
}
define internal fastcc i8*@_SMLLN9StringCvt6splitlE_104(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
k:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%d,align 8
store i8*%b,i8**%c,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%i,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%c,align 8
br label%i
i:
%j=phi i8*[%h,%g],[%b,%k]
store i8*null,i8**%c,align 8
%l=call fastcc i8*@_SMLLN9StringCvt6splitlE_90(i8*inreg%j)
store i8*%l,i8**%c,align 8
%m=load i8*,i8**%d,align 8
%n=bitcast i8*%m to i32*
%o=load i32,i32*%n,align 4
store i8*null,i8**%d,align 8
%p=getelementptr inbounds i8,i8*%m,i64 4
%q=bitcast i8*%p to i32*
%r=load i32,i32*%q,align 4
%s=call i8*@sml_alloc(i32 inreg 20)#0
%t=getelementptr inbounds i8,i8*%s,i64 -4
%u=bitcast i8*%t to i32*
store i32 1342177296,i32*%u,align 4
store i8*%s,i8**%d,align 8
%v=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%w=bitcast i8*%s to i8**
store i8*%v,i8**%w,align 8
%x=getelementptr inbounds i8,i8*%s,i64 8
%y=bitcast i8*%x to i32*
store i32%o,i32*%y,align 4
%z=getelementptr inbounds i8,i8*%s,i64 12
%A=bitcast i8*%z to i32*
store i32%r,i32*%A,align 4
%B=getelementptr inbounds i8,i8*%s,i64 16
%C=bitcast i8*%B to i32*
store i32 1,i32*%C,align 4
%D=call i8*@sml_alloc(i32 inreg 28)#0
%E=getelementptr inbounds i8,i8*%D,i64 -4
%F=bitcast i8*%E to i32*
store i32 1342177304,i32*%F,align 4
%G=load i8*,i8**%d,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 void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN9StringCvt6splitlE_103 to void(...)*),void(...)**%J,align 8
%K=getelementptr inbounds i8,i8*%D,i64 16
%L=bitcast i8*%K to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN9StringCvt6splitlE_103 to void(...)*),void(...)**%L,align 8
%M=getelementptr inbounds i8,i8*%D,i64 24
%N=bitcast i8*%M to i32*
store i32 -2147483647,i32*%N,align 4
ret i8*%D
}
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*)*@_SMLLN9StringCvt6splitlE_104 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*)*@_SMLLN9StringCvt6splitlE_104 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*@_SMLLN9StringCvt5takelE_107(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
store i8*%a,i8**%c,align 8
store i8*%b,i8**%d,align 8
%g=load atomic i32,i32*@sml_check_flag unordered,align 4
%h=icmp eq i32%g,0
br i1%h,label%i,label%k
i:
%j=bitcast i8*%a to i8**
br label%n
k:
call void@sml_check(i32 inreg%g)
%l=bitcast i8**%c to i8***
%m=load i8**,i8***%l,align 8
br label%n
n:
%o=phi i8**[%m,%k],[%j,%i]
%p=load i8*,i8**%o,align 8
%q=call fastcc i8*@_SMLLN9StringCvt6splitlE_90(i8*inreg%p)
%r=getelementptr inbounds i8,i8*%q,i64 16
%s=bitcast i8*%r to i8*(i8*,i8*,i8*)**
%t=load i8*(i8*,i8*,i8*)*,i8*(i8*,i8*,i8*)**%s,align 8
%u=bitcast i8*%q to i8**
%v=load i8*,i8**%u,align 8
store i8*%v,i8**%e,align 8
%w=load i8*,i8**%c,align 8
%x=getelementptr inbounds i8,i8*%w,i64 16
%y=bitcast i8*%x to i32*
%z=load i32,i32*%y,align 4
%A=getelementptr inbounds i8,i8*%w,i64 20
%B=bitcast i8*%A to i32*
%C=load i32,i32*%B,align 4
%D=call i8*@sml_alloc(i32 inreg 4)#0
%E=bitcast i8*%D to i32*
%F=getelementptr inbounds i8,i8*%D,i64 -4
%G=bitcast i8*%F to i32*
store i32 4,i32*%G,align 4
store i8*%D,i8**%f,align 8
store i32%z,i32*%E,align 4
%H=call i8*@sml_alloc(i32 inreg 4)#0
%I=bitcast i8*%H to i32*
%J=getelementptr inbounds i8,i8*%H,i64 -4
%K=bitcast i8*%J to i32*
store i32 4,i32*%K,align 4
store i32%C,i32*%I,align 4
%L=load i8*,i8**%e,align 8
%M=load i8*,i8**%f,align 8
store i8*null,i8**%e,align 8
store i8*null,i8**%f,align 8
%N=call fastcc i8*%t(i8*inreg%L,i8*inreg%M,i8*inreg%H)
%O=getelementptr inbounds i8,i8*%N,i64 16
%P=bitcast i8*%O to i8*(i8*,i8*)**
%Q=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%P,align 8
%R=bitcast i8*%N to i8**
%S=load i8*,i8**%R,align 8
%T=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%U=getelementptr inbounds i8,i8*%T,i64 8
%V=bitcast i8*%U to i8**
%W=load i8*,i8**%V,align 8
%X=call fastcc i8*%Q(i8*inreg%S,i8*inreg%W)
%Y=getelementptr inbounds i8,i8*%X,i64 16
%Z=bitcast i8*%Y to i8*(i8*,i8*)**
%aa=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%Z,align 8
%ab=bitcast i8*%X to i8**
%ac=load i8*,i8**%ab,align 8
%ad=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%ae=call fastcc i8*%aa(i8*inreg%ac,i8*inreg%ad)
%af=bitcast i8*%ae to i8**
%ag=load i8*,i8**%af,align 8
ret i8*%ag
}
define internal fastcc i8*@_SMLLN9StringCvt5takelE_108(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*)*@_SMLLN9StringCvt5takelE_107 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*)*@_SMLLN9StringCvt5takelE_107 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*@_SMLLN9StringCvt5takelE_109(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*)*@_SMLLN9StringCvt5takelE_108 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*)*@_SMLLN9StringCvt5takelE_108 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*)*@_SMLLN9StringCvt5takelE_109 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*)*@_SMLLN9StringCvt5takelE_109 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*@_SMLLN9StringCvt5droplE_112(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
l:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%d,align 8
store i8*%b,i8**%e,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%j,label%h
h:
call void@sml_check(i32 inreg%f)
%i=load i8*,i8**%d,align 8
br label%j
j:
%k=phi i8*[%i,%h],[%a,%l]
%m=getelementptr inbounds i8,i8*%k,i64 16
%n=bitcast i8*%m to i32*
%o=load i32,i32*%n,align 4
%p=getelementptr inbounds i8,i8*%k,i64 20
%q=bitcast i8*%p to i32*
%r=load i32,i32*%q,align 4
%s=bitcast i8**%c to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%s)
call void@llvm.gcroot(i8**%c,i8*null)#0
%t=call i8*@sml_alloc(i32 inreg 12)#0
%u=bitcast i8*%t to i32*
%v=getelementptr inbounds i8,i8*%t,i64 -4
%w=bitcast i8*%v to i32*
store i32 1342177288,i32*%w,align 4
store i8*%t,i8**%c,align 8
store i32%o,i32*%u,align 4
%x=getelementptr inbounds i8,i8*%t,i64 4
%y=bitcast i8*%x to i32*
store i32%r,i32*%y,align 4
%z=getelementptr inbounds i8,i8*%t,i64 8
%A=bitcast i8*%z to i32*
store i32 0,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**%c,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*,i8*,i8*)*@_SMLLN9StringCvt5droplE_92 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*,i8*,i8*)*@_SMLLN9StringCvt5droplE_92 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
call void@llvm.lifetime.end.p0i8(i64 8,i8*%s)
%M=load i8*,i8**%d,align 8
%N=bitcast i8*%M to i8**
%O=load i8*,i8**%N,align 8
%P=getelementptr inbounds i8,i8*%M,i64 8
%Q=bitcast i8*%P to i8**
%R=load i8*,i8**%Q,align 8
%S=load i8*,i8**%e,align 8
%T=call fastcc i8*@_SMLLN9StringCvt5droplE_92(i8*inreg%E,i8*inreg%O,i8*inreg%R,i8*inreg%S)
ret i8*%T
}
define internal fastcc i8*@_SMLLN9StringCvt5droplE_113(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*)*@_SMLLN9StringCvt5droplE_112 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*)*@_SMLLN9StringCvt5droplE_112 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*@_SMLLN9StringCvt5droplE_114(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*)*@_SMLLN9StringCvt5droplE_113 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*)*@_SMLLN9StringCvt5droplE_113 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*)*@_SMLLN9StringCvt5droplE_114 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*)*@_SMLLN9StringCvt5droplE_114 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*@_SMLLN9StringCvt6skipWSE_117(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
l:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%d,align 8
store i8*%b,i8**%e,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%j,label%h
h:
call void@sml_check(i32 inreg%f)
%i=load i8*,i8**%d,align 8
br label%j
j:
%k=phi i8*[%i,%h],[%a,%l]
%m=getelementptr inbounds i8,i8*%k,i64 8
%n=bitcast i8*%m to i32*
%o=load i32,i32*%n,align 4
%p=getelementptr inbounds i8,i8*%k,i64 12
%q=bitcast i8*%p to i32*
%r=load i32,i32*%q,align 4
%s=bitcast i8**%c to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%s)
call void@llvm.gcroot(i8**%c,i8*null)#0
%t=call i8*@sml_alloc(i32 inreg 12)#0
%u=bitcast i8*%t to i32*
%v=getelementptr inbounds i8,i8*%t,i64 -4
%w=bitcast i8*%v to i32*
store i32 1342177288,i32*%w,align 4
store i8*%t,i8**%c,align 8
store i32%o,i32*%u,align 4
%x=getelementptr inbounds i8,i8*%t,i64 4
%y=bitcast i8*%x to i32*
store i32%r,i32*%y,align 4
%z=getelementptr inbounds i8,i8*%t,i64 8
%A=bitcast i8*%z to i32*
store i32 0,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**%c,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*,i8*)*@_SMLLN9StringCvt6skipWSE_95 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*,i8*)*@_SMLLN9StringCvt6skipWSE_95 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
call void@llvm.lifetime.end.p0i8(i64 8,i8*%s)
%M=bitcast i8**%d to i8***
%N=load i8**,i8***%M,align 8
%O=load i8*,i8**%N,align 8
%P=load i8*,i8**%e,align 8
%Q=tail call fastcc i8*@_SMLLN9StringCvt6skipWSE_95(i8*inreg%E,i8*inreg%O,i8*inreg%P)
ret i8*%Q
}
define internal fastcc i8*@_SMLLN9StringCvt6skipWSE_118(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*)*@_SMLLN9StringCvt6skipWSE_117 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*)*@_SMLLN9StringCvt6skipWSE_117 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*)*@_SMLLN9StringCvt6skipWSE_118 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*)*@_SMLLN9StringCvt6skipWSE_118 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*@_SMLLN9StringCvt10scanStringE_121(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
l:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%e,align 8
store i8*%b,i8**%d,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%j,label%h
h:
call void@sml_check(i32 inreg%f)
%i=load i8*,i8**%e,align 8
br label%j
j:
%k=phi i8*[%i,%h],[%a,%l]
%m=bitcast i8*%k to i32*
%n=load i32,i32*%m,align 4
store i8*null,i8**%e,align 8
%o=getelementptr inbounds i8,i8*%k,i64 4
%p=bitcast i8*%o to i32*
%q=load i32,i32*%p,align 4
%r=bitcast i8**%c to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%r)
call void@llvm.gcroot(i8**%c,i8*null)#0
%s=call i8*@sml_alloc(i32 inreg 12)#0
%t=bitcast i8*%s to i32*
%u=getelementptr inbounds i8,i8*%s,i64 -4
%v=bitcast i8*%u to i32*
store i32 1342177288,i32*%v,align 4
store i8*%s,i8**%c,align 8
store i32%n,i32*%t,align 4
%w=getelementptr inbounds i8,i8*%s,i64 4
%x=bitcast i8*%w to i32*
store i32%q,i32*%x,align 4
%y=getelementptr inbounds i8,i8*%s,i64 8
%z=bitcast i8*%y to i32*
store i32 0,i32*%z,align 4
%A=call i8*@sml_alloc(i32 inreg 28)#0
%B=getelementptr inbounds i8,i8*%A,i64 -4
%C=bitcast i8*%B to i32*
store i32 1342177304,i32*%C,align 4
%D=load i8*,i8**%c,align 8
%E=bitcast i8*%A to i8**
store i8*%D,i8**%E,align 8
%F=getelementptr inbounds i8,i8*%A,i64 8
%G=bitcast i8*%F to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN9StringCvt10scanStringE_100 to void(...)*),void(...)**%G,align 8
%H=getelementptr inbounds i8,i8*%A,i64 16
%I=bitcast i8*%H to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN9StringCvt10scanStringE_100 to void(...)*),void(...)**%I,align 8
%J=getelementptr inbounds i8,i8*%A,i64 24
%K=bitcast i8*%J to i32*
store i32 -2147483647,i32*%K,align 4
call void@llvm.lifetime.end.p0i8(i64 8,i8*%r)
%L=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%M=call fastcc i8*@_SMLLN9StringCvt10scanStringE_100(i8*inreg%D,i8*inreg%L)
ret i8*%M
}
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*)*@_SMLLN9StringCvt10scanStringE_121 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*)*@_SMLLN9StringCvt10scanStringE_121 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*@_SMLL4loop_124(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
tail call fastcc void@_SMLL4loop_69(i8*inreg%a,i32 inreg%d)
%e=tail call i8*@sml_alloc(i32 inreg 4)#0
%f=bitcast i8*%e to i32*
%g=getelementptr inbounds i8,i8*%e,i64 -4
%h=bitcast i8*%g to i32*
store i32 4,i32*%h,align 4
store i32 0,i32*%f,align 4
ret i8*%e
}
define internal fastcc i8*@_SMLLN9StringCvt7padLeftE_126(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*@_SMLLN9StringCvt7padLeftE_74(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLN9StringCvt7padLeftE_127(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*@_SMLLN9StringCvt8padRightE_128(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*@_SMLLN9StringCvt8padRightE_79(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLN9StringCvt8padRightE_129(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*@_SMLL4loop_130(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
tail call fastcc void@_SMLL4loop_86(i8*inreg%a,i8*inreg%b)
%c=tail call i8*@sml_alloc(i32 inreg 4)#0
%d=bitcast i8*%c to i32*
%e=getelementptr inbounds i8,i8*%c,i64 -4
%f=bitcast i8*%e to i32*
store i32 4,i32*%f,align 4
store i32 0,i32*%d,align 4
ret i8*%c
}
define internal fastcc i8*@_SMLLN9StringCvt6splitlE_131(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*@_SMLLN9StringCvt6splitlE_89(i8*inreg%a,i32 inreg%e,i32 inreg%g)
ret i8*%h
}
define internal fastcc i8*@_SMLL6reader_135(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*@_SMLL6reader_98(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLN9StringCvt6splitlE_137(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*@_SMLLN9StringCvt5takelE_138(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*@_SMLLN9StringCvt5droplE_139(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*@_SMLLN9StringCvt6skipWSE_140(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*@_SMLLN9StringCvt10scanStringE_141(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
declare void@llvm.lifetime.start.p0i8(i64,i8*)#0
declare void@llvm.lifetime.end.p0i8(i64,i8*)#0
attributes#0={nounwind}
attributes#1={noreturn}
attributes#2={noreturn nounwind}
attributes#3={nounwind uwtable}
attributes#4={uwtable}
