@sml_check_flag=external local_unnamed_addr global i32
@a=private unnamed_addr constant<{[4x i8],i32,i8*,i32}><{[4x i8]zeroinitializer,i32 -805306360,i8*null,i32 1}>,align 8
@b=private unnamed_addr constant<{[4x i8],i32,i8*,i32}><{[4x i8]zeroinitializer,i32 -805306360,i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,i8*,i32}>,<{[4x i8],i32,i8*,i32}>*@a,i32 0,i32 0,i32 0),i32 8),i32 1}>,align 8
@c=private unnamed_addr constant<{[4x i8],i32,i8*,i32,[4x i8],i32}><{[4x i8]zeroinitializer,i32 -805306352,i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,i8*,i32}>,<{[4x i8],i32,i8*,i32}>*@b,i32 0,i32 0,i32 0),i32 8),i32 1,[4x i8]zeroinitializer,i32 1}>,align 8
@d=private unnamed_addr constant<{[4x i8],i32,i32,[4x i8],i8*,i32}><{[4x i8]zeroinitializer,i32 -805306352,i32 2,[4x i8]zeroinitializer,i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,i8*,i32,[4x i8],i32}>,<{[4x i8],i32,i8*,i32,[4x i8],i32}>*@c,i32 0,i32 0,i32 0),i32 8),i32 2}>,align 8
@e=private unnamed_addr constant<{[4x i8],i32,[4x i8]}><{[4x i8]zeroinitializer,i32 -2147483644,[4x i8]c"...\00"}>,align 8
@f=private unnamed_addr constant<{[4x i8],i32,i32,[4x i8],i8*,i32}><{[4x i8]zeroinitializer,i32 -805306352,i32 3,[4x i8]zeroinitializer,i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,[4x i8]}>,<{[4x i8],i32,[4x i8]}>*@e,i32 0,i32 0,i32 0),i32 8),i32 2}>,align 8
@g=private unnamed_addr constant<{[4x i8],i32,i32,[4x i8],i8*,i32}><{[4x i8]zeroinitializer,i32 -805306352,i32 6,[4x i8]zeroinitializer,i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i8*,i32}>,<{[4x i8],i32,i32,[4x i8],i8*,i32}>*@f,i32 0,i32 0,i32 0),i32 8),i32 2}>,align 8
@h=private unnamed_addr constant<{[4x i8],i32,i8*,i8*,i32}><{[4x i8]zeroinitializer,i32 -805306352,i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i8*,i32}>,<{[4x i8],i32,i32,[4x i8],i8*,i32}>*@g,i32 0,i32 0,i32 0),i32 8),i8*null,i32 3}>,align 8
@i=private unnamed_addr constant<{[4x i8],i32,i8*,i8*,i32}><{[4x i8]zeroinitializer,i32 -805306352,i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i8*,i32}>,<{[4x i8],i32,i32,[4x i8],i8*,i32}>*@d,i32 0,i32 0,i32 0),i32 8),i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,i8*,i8*,i32}>,<{[4x i8],i32,i8*,i8*,i32}>*@h,i32 0,i32 0,i32 0),i32 8),i32 3}>,align 8
@j=private unnamed_addr constant<{[4x i8],i32,i8*,i8*,i32}><{[4x i8]zeroinitializer,i32 -805306352,i8*null,i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,i8*,i8*,i32}>,<{[4x i8],i32,i8*,i8*,i32}>*@i,i32 0,i32 0,i32 0),i32 8),i32 3}>,align 8
@k=private unnamed_addr constant<{[4x i8],i32,i32,[4x i8],i8*,i32}><{[4x i8]zeroinitializer,i32 -805306352,i32 1,[4x i8]zeroinitializer,i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,i8*,i8*,i32}>,<{[4x i8],i32,i8*,i8*,i32}>*@j,i32 0,i32 0,i32 0),i32 8),i32 2}>,align 8
@l=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i32)*@_SMLLL13isCutOffDepth_69 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLL13isCutOffDepth_76 to void(...)*),i32 -2147483647}>,align 8
@m=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN9Truncator8truncateE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN9Truncator8truncateE_78 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN9Truncator8truncateE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@m,i64 0,i32 2)to i8*)
@_SML_ftab89187b999d299782_Truncator=external global i8
@n=internal unnamed_addr global i1 false
declare void@llvm.gcroot(i8**,i8*)#0
declare i8*@sml_alloc(i32 inreg)local_unnamed_addr#0
declare void@sml_check(i32 inreg)local_unnamed_addr
declare void@sml_gcroot(i8*,void()*,i8*,i8*)local_unnamed_addr#0
define private void@_SML_tabb89187b999d299782_Truncator()#1{
unreachable
}
define void@_SML_load89187b999d299782_Truncator(i8*%a)local_unnamed_addr#0{
%b=load i1,i1*@n,align 1
br i1%b,label%c,label%d
c:
ret void
d:
store i1 true,i1*@n,align 1
tail call void@sml_gcroot(i8*%a,void()*@_SML_tabb89187b999d299782_Truncator,i8*@_SML_ftab89187b999d299782_Truncator,i8*null)#0
ret void
}
define void@_SML_main89187b999d299782_Truncator()local_unnamed_addr#2 gc"smlsharp"{
ret void
}
define internal fastcc i32@_SMLLL13isCutOffDepth_68(i8*inreg%a,i32 inreg%b)#2 gc"smlsharp"{
%c=bitcast i8*%a to i32*
%d=load i32,i32*%c,align 4
%e=icmp sle i32%d,%b
%f=zext i1%e to i32
ret i32%f
}
define internal fastcc i32@_SMLLL13isCutOffDepth_69(i32 inreg%a)#2 gc"smlsharp"{
ret i32 0
}
define internal fastcc i8*@_SMLLL5visit_71(i8*inreg%a,i32 inreg%b,i8*inreg%c)#3 gc"smlsharp"{
q:
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
%h=alloca i8*,align 8
%i=alloca i8*,align 8
%j=alloca i8*,align 8
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
call void@llvm.gcroot(i8**%h,i8*null)#0
call void@llvm.gcroot(i8**%i,i8*null)#0
call void@llvm.gcroot(i8**%j,i8*null)#0
store i8*%a,i8**%h,align 8
store i8*%c,i8**%d,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**%d,align 8
br label%o
o:
%p=phi i8*[%n,%m],[%c,%q]
%r=bitcast i8*%p to i32*
%s=load i32,i32*%r,align 4
%t=icmp eq i32%s,1
br i1%t,label%w,label%u
u:
%v=phi i8*[%p,%o],[bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i8*,i32}>,<{[4x i8],i32,i32,[4x i8],i8*,i32}>*@k,i64 0,i32 2)to i8*),%w]
ret i8*%v
w:
%x=getelementptr inbounds i8,i8*%p,i64 8
%y=bitcast i8*%x to i8**
%z=load i8*,i8**%y,align 8
%A=bitcast i8*%z to i8**
%B=load i8*,i8**%A,align 8
store i8*%B,i8**%d,align 8
%C=getelementptr inbounds i8,i8*%z,i64 8
%D=bitcast i8*%C to i8**
%E=load i8*,i8**%D,align 8
store i8*%E,i8**%e,align 8
%F=load i8*,i8**%h,align 8
%G=getelementptr inbounds i8,i8*%F,i64 8
%H=bitcast i8*%G to i8**
%I=load i8*,i8**%H,align 8
%J=getelementptr inbounds i8,i8*%I,i64 16
%K=bitcast i8*%J to i8*(i8*,i8*)**
%L=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%K,align 8
%M=bitcast i8*%I to i8**
%N=load i8*,i8**%M,align 8
store i8*%N,i8**%f,align 8
%O=call i8*@sml_alloc(i32 inreg 4)#0
%P=bitcast i8*%O to i32*
%Q=getelementptr inbounds i8,i8*%O,i64 -4
%R=bitcast i8*%Q to i32*
store i32 4,i32*%R,align 4
store i32%b,i32*%P,align 4
%S=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%T=call fastcc i8*%L(i8*inreg%S,i8*inreg%O)
%U=bitcast i8*%T to i32*
%V=load i32,i32*%U,align 4
%W=icmp eq i32%V,0
br i1%W,label%X,label%u
X:
%Y=bitcast i8**%h to i8***
%Z=load i8**,i8***%Y,align 8
%aa=load i8*,i8**%Z,align 8
%ab=getelementptr inbounds i8,i8*%aa,i64 32
%ac=bitcast i8*%ab to i8**
%ad=load i8*,i8**%ac,align 8
%ae=icmp eq i8*%ad,null
br i1%ae,label%af,label%ag
af:
store i8*null,i8**%h,align 8
br label%eo
ag:
%ah=bitcast i8*%ad to i32*
%ai=load i32,i32*%ah,align 4
%aj=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
store i8*null,i8**%f,align 8
%ak=add nsw i32%b,1
br label%al
al:
%am=phi i32[%ai,%ag],[%bE,%bB]
%an=phi i8*[%aj,%ag],[%bD,%bB]
%ao=icmp eq i32%am,0
br label%ap
ap:
%aq=phi i8*[%an,%al],[%aG,%aF]
%ar=bitcast i8*%aq to i8**
br i1%ao,label%bW,label%as
as:
%at=icmp eq i8*%aq,null
br i1%at,label%au,label%aH
au:
%av=load i8*,i8**%f,align 8
%aw=icmp eq i8*%av,null
br i1%aw,label%ax,label%az
ax:
store i8*null,i8**%f,align 8
store i8*null,i8**%h,align 8
%ay=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
br label%em
az:
%aA=bitcast i8*%av to i8**
%aB=load i8*,i8**%aA,align 8
%aC=getelementptr inbounds i8,i8*%av,i64 8
%aD=bitcast i8*%aC to i8**
%aE=load i8*,i8**%aD,align 8
store i8*%aE,i8**%f,align 8
br label%aF
aF:
%aG=phi i8*[%aB,%az],[%a1,%aL],[%bj,%a2]
br label%ap
aH:
%aI=load i8*,i8**%ar,align 8
%aJ=bitcast i8*%aI to i32*
%aK=load i32,i32*%aJ,align 4
switch i32%aK,label%aL[
i32 6,label%bF
i32 1,label%bk
i32 4,label%a2
]
aL:
%aM=getelementptr inbounds i8,i8*%aq,i64 8
%aN=bitcast i8*%aM to i8**
%aO=load i8*,i8**%aN,align 8
store i8*%aO,i8**%g,align 8
%aP=load i8*,i8**%h,align 8
%aQ=call fastcc i8*@_SMLLL5visit_71(i8*inreg%aP,i32 inreg%ak,i8*inreg%aI)
store i8*%aQ,i8**%i,align 8
%aR=call i8*@sml_alloc(i32 inreg 20)#0
%aS=getelementptr inbounds i8,i8*%aR,i64 -4
%aT=bitcast i8*%aS to i32*
store i32 1342177296,i32*%aT,align 4
%aU=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%aV=bitcast i8*%aR to i8**
store i8*%aU,i8**%aV,align 8
%aW=load i8*,i8**%e,align 8
%aX=getelementptr inbounds i8,i8*%aR,i64 8
%aY=bitcast i8*%aX to i8**
store i8*%aW,i8**%aY,align 8
%aZ=getelementptr inbounds i8,i8*%aR,i64 16
%a0=bitcast i8*%aZ to i32*
store i32 3,i32*%a0,align 4
%a1=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
store i8*%aR,i8**%e,align 8
br label%aF
a2:
%a3=getelementptr inbounds i8,i8*%aI,i64 8
%a4=bitcast i8*%a3 to i8**
%a5=load i8*,i8**%a4,align 8
store i8*%a5,i8**%i,align 8
%a6=getelementptr inbounds i8,i8*%aq,i64 8
%a7=bitcast i8*%a6 to i8**
%a8=load i8*,i8**%a7,align 8
store i8*%a8,i8**%g,align 8
%a9=call i8*@sml_alloc(i32 inreg 20)#0
%ba=getelementptr inbounds i8,i8*%a9,i64 -4
%bb=bitcast i8*%ba to i32*
store i32 1342177296,i32*%bb,align 4
%bc=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%bd=bitcast i8*%a9 to i8**
store i8*%bc,i8**%bd,align 8
%be=load i8*,i8**%f,align 8
%bf=getelementptr inbounds i8,i8*%a9,i64 8
%bg=bitcast i8*%bf to i8**
store i8*%be,i8**%bg,align 8
%bh=getelementptr inbounds i8,i8*%a9,i64 16
%bi=bitcast i8*%bh to i32*
store i32 3,i32*%bi,align 4
%bj=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
store i8*%a9,i8**%f,align 8
br label%aF
bk:
%bl=getelementptr inbounds i8,i8*%aq,i64 8
%bm=bitcast i8*%bl to i8**
%bn=load i8*,i8**%bm,align 8
store i8*%bn,i8**%g,align 8
%bo=load i8*,i8**%h,align 8
%bp=call fastcc i8*@_SMLLL5visit_71(i8*inreg%bo,i32 inreg%ak,i8*inreg%aI)
store i8*%bp,i8**%i,align 8
%bq=call i8*@sml_alloc(i32 inreg 20)#0
%br=getelementptr inbounds i8,i8*%bq,i64 -4
%bs=bitcast i8*%br to i32*
store i32 1342177296,i32*%bs,align 4
%bt=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%bu=bitcast i8*%bq to i8**
store i8*%bt,i8**%bu,align 8
%bv=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%bw=getelementptr inbounds i8,i8*%bq,i64 8
%bx=bitcast i8*%bw to i8**
store i8*%bv,i8**%bx,align 8
%by=getelementptr inbounds i8,i8*%bq,i64 16
%bz=bitcast i8*%by to i32*
store i32 3,i32*%bz,align 4
%bA=load i8*,i8**%g,align 8
br label%bB
bB:
%bC=phi i8*[%bq,%bk],[%bL,%bF]
%bD=phi i8*[%bA,%bk],[%bV,%bF]
store i8*null,i8**%g,align 8
%bE=add nsw i32%am,-1
store i8*%bC,i8**%e,align 8
br label%al
bF:
%bG=getelementptr inbounds i8,i8*%aq,i64 8
%bH=bitcast i8*%bG to i8**
%bI=load i8*,i8**%bH,align 8
store i8*%bI,i8**%g,align 8
%bJ=load i8*,i8**%h,align 8
%bK=call fastcc i8*@_SMLLL5visit_71(i8*inreg%bJ,i32 inreg%ak,i8*inreg%aI)
store i8*%bK,i8**%i,align 8
%bL=call i8*@sml_alloc(i32 inreg 20)#0
%bM=getelementptr inbounds i8,i8*%bL,i64 -4
%bN=bitcast i8*%bM to i32*
store i32 1342177296,i32*%bN,align 4
%bO=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%bP=bitcast i8*%bL to i8**
store i8*%bO,i8**%bP,align 8
%bQ=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%bR=getelementptr inbounds i8,i8*%bL,i64 8
%bS=bitcast i8*%bR to i8**
store i8*%bQ,i8**%bS,align 8
%bT=getelementptr inbounds i8,i8*%bL,i64 16
%bU=bitcast i8*%bT to i32*
store i32 3,i32*%bU,align 4
%bV=load i8*,i8**%g,align 8
br label%bB
bW:
store i8*null,i8**%h,align 8
%bX=icmp eq i8*%an,null
br i1%bX,label%bY,label%b5
bY:
%bZ=load i8*,i8**%f,align 8
%b0=icmp eq i8*%bZ,null
br i1%b0,label%b1,label%b3
b1:
store i8*null,i8**%f,align 8
%b2=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
br label%em
b3:
%b4=load i8*,i8**%e,align 8
store i8*null,i8**%f,align 8
store i8*%b4,i8**%e,align 8
br label%cl
b5:
%b6=bitcast i8*%an to i32**
%b7=load i32*,i32**%b6,align 8
%b8=load i32,i32*%b7,align 4
switch i32%b8,label%b9[
i32 6,label%ci
i32 1,label%cf
i32 4,label%cc
]
b9:
%ca=load i8*,i8**%e,align 8
%cb=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
store i8*%ca,i8**%e,align 8
br label%cl
cc:
%cd=load i8*,i8**%e,align 8
%ce=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
store i8*%cd,i8**%e,align 8
br label%cl
cf:
%cg=load i8*,i8**%e,align 8
%ch=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
store i8*%cg,i8**%e,align 8
br label%cl
ci:
%cj=load i8*,i8**%e,align 8
%ck=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
store i8*%cj,i8**%e,align 8
br label%cl
cl:
%cm=phi i8*[%bZ,%b3],[%cb,%b9],[%ce,%cc],[%ch,%cf],[%ck,%ci]
store i8*%cm,i8**%f,align 8
store i8*null,i8**%g,align 8
br label%cn
cn:
%co=phi i8*[%an,%cl],[%c5,%c4]
%cp=icmp eq i8*%co,null
br i1%cp,label%cq,label%c6
cq:
%cr=load i8*,i8**%f,align 8
%cs=icmp eq i8*%cr,null
br i1%cs,label%ct,label%cY
ct:
store i8*null,i8**%f,align 8
%cu=call i8*@sml_alloc(i32 inreg 20)#0
%cv=getelementptr inbounds i8,i8*%cu,i64 -4
%cw=bitcast i8*%cv to i32*
store i32 1342177296,i32*%cw,align 4
store i8*%cu,i8**%f,align 8
%cx=bitcast i8*%cu to i8**
store i8*bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i8*,i32}>,<{[4x i8],i32,i32,[4x i8],i8*,i32}>*@k,i64 0,i32 2)to i8*),i8**%cx,align 8
%cy=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%cz=getelementptr inbounds i8,i8*%cu,i64 8
%cA=bitcast i8*%cz to i8**
store i8*%cy,i8**%cA,align 8
%cB=getelementptr inbounds i8,i8*%cu,i64 16
%cC=bitcast i8*%cB to i32*
store i32 3,i32*%cC,align 4
%cD=call i8*@sml_alloc(i32 inreg 20)#0
%cE=getelementptr inbounds i8,i8*%cD,i64 -4
%cF=bitcast i8*%cE to i32*
store i32 1342177296,i32*%cF,align 4
store i8*%cD,i8**%g,align 8
%cG=getelementptr inbounds i8,i8*%cD,i64 4
%cH=bitcast i8*%cG to i32*
store i32 0,i32*%cH,align 1
%cI=bitcast i8*%cD to i32*
store i32 4,i32*%cI,align 4
%cJ=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%cK=getelementptr inbounds i8,i8*%cD,i64 8
%cL=bitcast i8*%cK to i8**
store i8*%cJ,i8**%cL,align 8
%cM=getelementptr inbounds i8,i8*%cD,i64 16
%cN=bitcast i8*%cM to i32*
store i32 2,i32*%cN,align 4
%cO=call i8*@sml_alloc(i32 inreg 20)#0
%cP=getelementptr inbounds i8,i8*%cO,i64 -4
%cQ=bitcast i8*%cP to i32*
store i32 1342177296,i32*%cQ,align 4
%cR=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%cS=bitcast i8*%cO to i8**
store i8*%cR,i8**%cS,align 8
%cT=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%cU=getelementptr inbounds i8,i8*%cO,i64 8
%cV=bitcast i8*%cU to i8**
store i8*%cT,i8**%cV,align 8
%cW=getelementptr inbounds i8,i8*%cO,i64 16
%cX=bitcast i8*%cW to i32*
store i32 3,i32*%cX,align 4
br label%em
cY:
%cZ=bitcast i8*%cr to i8**
%c0=load i8*,i8**%cZ,align 8
%c1=getelementptr inbounds i8,i8*%cr,i64 8
%c2=bitcast i8*%c1 to i8**
%c3=load i8*,i8**%c2,align 8
store i8*%c3,i8**%f,align 8
br label%c4
c4:
%c5=phi i8*[%c0,%cY],[%d3,%d1],[%el,%d4]
br label%cn
c6:
%c7=bitcast i8*%co to i8**
%c8=load i8*,i8**%c7,align 8
store i8*%c8,i8**%h,align 8
%c9=bitcast i8*%c8 to i32*
%da=load i32,i32*%c9,align 4
%db=icmp eq i32%da,4
br i1%db,label%d4,label%dc
dc:
%dd=getelementptr inbounds i8,i8*%co,i64 8
%de=bitcast i8*%dd to i8**
%df=load i8*,i8**%de,align 8
store i8*%df,i8**%i,align 8
%dg=load i32,i32*%c9,align 4
switch i32%dg,label%dZ[
i32 5,label%dh
i32 0,label%dh
]
dh:
%di=load i8*,i8**%g,align 8
%dj=icmp eq i8*%di,null
br i1%dj,label%dk,label%du
dk:
store i8*null,i8**%g,align 8
%dl=call i8*@sml_alloc(i32 inreg 20)#0
%dm=getelementptr inbounds i8,i8*%dl,i64 -4
%dn=bitcast i8*%dm to i32*
store i32 1342177296,i32*%dn,align 4
%do=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%dp=bitcast i8*%dl to i8**
store i8*%do,i8**%dp,align 8
%dq=getelementptr inbounds i8,i8*%dl,i64 8
%dr=bitcast i8*%dq to i8**
store i8*null,i8**%dr,align 8
%ds=getelementptr inbounds i8,i8*%dl,i64 16
%dt=bitcast i8*%ds to i32*
store i32 3,i32*%dt,align 4
br label%d1
du:
%dv=call i8*@sml_alloc(i32 inreg 20)#0
%dw=getelementptr inbounds i8,i8*%dv,i64 -4
%dx=bitcast i8*%dw to i32*
store i32 1342177296,i32*%dx,align 4
store i8*%dv,i8**%j,align 8
%dy=getelementptr inbounds i8,i8*%dv,i64 4
%dz=bitcast i8*%dy to i32*
store i32 0,i32*%dz,align 1
%dA=bitcast i8*%dv to i32*
store i32 4,i32*%dA,align 4
%dB=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%dC=getelementptr inbounds i8,i8*%dv,i64 8
%dD=bitcast i8*%dC to i8**
store i8*%dB,i8**%dD,align 8
%dE=getelementptr inbounds i8,i8*%dv,i64 16
%dF=bitcast i8*%dE to i32*
store i32 2,i32*%dF,align 4
%dG=call i8*@sml_alloc(i32 inreg 20)#0
%dH=getelementptr inbounds i8,i8*%dG,i64 -4
%dI=bitcast i8*%dH to i32*
store i32 1342177296,i32*%dI,align 4
store i8*%dG,i8**%g,align 8
%dJ=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%dK=bitcast i8*%dG to i8**
store i8*%dJ,i8**%dK,align 8
%dL=getelementptr inbounds i8,i8*%dG,i64 8
%dM=bitcast i8*%dL to i8**
store i8*null,i8**%dM,align 8
%dN=getelementptr inbounds i8,i8*%dG,i64 16
%dO=bitcast i8*%dN to i32*
store i32 3,i32*%dO,align 4
%dP=call i8*@sml_alloc(i32 inreg 20)#0
%dQ=getelementptr inbounds i8,i8*%dP,i64 -4
%dR=bitcast i8*%dQ to i32*
store i32 1342177296,i32*%dR,align 4
%dS=load i8*,i8**%j,align 8
store i8*null,i8**%j,align 8
%dT=bitcast i8*%dP to i8**
store i8*%dS,i8**%dT,align 8
%dU=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%dV=getelementptr inbounds i8,i8*%dP,i64 8
%dW=bitcast i8*%dV to i8**
store i8*%dU,i8**%dW,align 8
%dX=getelementptr inbounds i8,i8*%dP,i64 16
%dY=bitcast i8*%dX to i32*
store i32 3,i32*%dY,align 4
br label%d1
dZ:
store i8*null,i8**%h,align 8
%d0=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
br label%d1
d1:
%d2=phi i8*[%d0,%dZ],[%dl,%dk],[%dP,%du]
%d3=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
store i8*%d2,i8**%g,align 8
br label%c4
d4:
%d5=getelementptr inbounds i8,i8*%c8,i64 8
%d6=bitcast i8*%d5 to i8**
%d7=load i8*,i8**%d6,align 8
store i8*%d7,i8**%i,align 8
%d8=getelementptr inbounds i8,i8*%co,i64 8
%d9=bitcast i8*%d8 to i8**
%ea=load i8*,i8**%d9,align 8
store i8*%ea,i8**%h,align 8
%eb=call i8*@sml_alloc(i32 inreg 20)#0
%ec=getelementptr inbounds i8,i8*%eb,i64 -4
%ed=bitcast i8*%ec to i32*
store i32 1342177296,i32*%ed,align 4
%ee=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%ef=bitcast i8*%eb to i8**
store i8*%ee,i8**%ef,align 8
%eg=load i8*,i8**%f,align 8
%eh=getelementptr inbounds i8,i8*%eb,i64 8
%ei=bitcast i8*%eh to i8**
store i8*%eg,i8**%ei,align 8
%ej=getelementptr inbounds i8,i8*%eb,i64 16
%ek=bitcast i8*%ej to i32*
store i32 3,i32*%ek,align 4
%el=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
store i8*%eb,i8**%f,align 8
br label%c4
em:
%en=phi i8*[%cO,%ct],[%ay,%ax],[%b2,%b1]
store i8*%en,i8**%e,align 8
br label%eo
eo:
%ep=call i8*@sml_alloc(i32 inreg 20)#0
%eq=getelementptr inbounds i8,i8*%ep,i64 -4
%er=bitcast i8*%eq to i32*
store i32 1342177296,i32*%er,align 4
store i8*%ep,i8**%f,align 8
%es=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%et=bitcast i8*%ep to i8**
store i8*%es,i8**%et,align 8
%eu=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%ev=getelementptr inbounds i8,i8*%ep,i64 8
%ew=bitcast i8*%ev to i8**
store i8*%eu,i8**%ew,align 8
%ex=getelementptr inbounds i8,i8*%ep,i64 16
%ey=bitcast i8*%ex to i32*
store i32 3,i32*%ey,align 4
%ez=call i8*@sml_alloc(i32 inreg 20)#0
%eA=bitcast i8*%ez to i32*
%eB=getelementptr inbounds i8,i8*%ez,i64 -4
%eC=bitcast i8*%eB to i32*
store i32 1342177296,i32*%eC,align 4
%eD=getelementptr inbounds i8,i8*%ez,i64 4
%eE=bitcast i8*%eD to i32*
store i32 0,i32*%eE,align 1
store i32 1,i32*%eA,align 4
%eF=load i8*,i8**%f,align 8
%eG=getelementptr inbounds i8,i8*%ez,i64 8
%eH=bitcast i8*%eG to i8**
store i8*%eF,i8**%eH,align 8
%eI=getelementptr inbounds i8,i8*%ez,i64 16
%eJ=bitcast i8*%eI to i32*
store i32 2,i32*%eJ,align 4
ret i8*%ez
}
define internal fastcc i8*@_SMLLLN9Truncator8truncateE_72(i8*inreg%a,i8*inreg%b)#3 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%o
k:
call void@sml_check(i32 inreg%g)
%l=load i8*,i8**%d,align 8
%m=bitcast i8**%c to i8***
%n=load i8**,i8***%m,align 8
br label%o
o:
%p=phi i8**[%n,%k],[%j,%i]
%q=phi i8*[%l,%k],[%b,%i]
store i8*null,i8**%d,align 8
%r=load i8*,i8**%p,align 8
%s=getelementptr inbounds i8,i8*%r,i64 24
%t=bitcast i8*%s to i8**
%u=load i8*,i8**%t,align 8
%v=icmp eq i8*%u,null
br i1%v,label%w,label%C
w:
%x=getelementptr inbounds i8,i8*%r,i64 32
%y=bitcast i8*%x to i8**
%z=load i8*,i8**%y,align 8
%A=icmp eq i8*%z,null
br i1%A,label%B,label%C
B:
ret i8*%q
C:
store i8*null,i8**%c,align 8
%D=load i8*,i8**%p,align 8
store i8*%D,i8**%c,align 8
store i8*%q,i8**%d,align 8
%E=getelementptr inbounds i8,i8*%D,i64 24
%F=bitcast i8*%E to i8**
%G=load i8*,i8**%F,align 8
%H=icmp eq i8*%G,null
br i1%H,label%ac,label%I
I:
%J=bitcast i8*%G to i32*
%K=load i32,i32*%J,align 4
%L=call i8*@sml_alloc(i32 inreg 12)#0
%M=bitcast i8*%L to i32*
%N=getelementptr inbounds i8,i8*%L,i64 -4
%O=bitcast i8*%N to i32*
store i32 1342177288,i32*%O,align 4
store i8*%L,i8**%e,align 8
store i32%K,i32*%M,align 4
%P=getelementptr inbounds i8,i8*%L,i64 8
%Q=bitcast i8*%P to i32*
store i32 0,i32*%Q,align 4
%R=call i8*@sml_alloc(i32 inreg 28)#0
%S=getelementptr inbounds i8,i8*%R,i64 -4
%T=bitcast i8*%S to i32*
store i32 1342177304,i32*%T,align 4
%U=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%V=bitcast i8*%R to i8**
store i8*%U,i8**%V,align 8
%W=getelementptr inbounds i8,i8*%R,i64 8
%X=bitcast i8*%W to void(...)**
store void(...)*bitcast(i32(i8*,i32)*@_SMLLL13isCutOffDepth_68 to void(...)*),void(...)**%X,align 8
%Y=getelementptr inbounds i8,i8*%R,i64 16
%Z=bitcast i8*%Y to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLL13isCutOffDepth_75 to void(...)*),void(...)**%Z,align 8
%aa=getelementptr inbounds i8,i8*%R,i64 24
%ab=bitcast i8*%aa to i32*
store i32 -2147483647,i32*%ab,align 4
br label%ac
ac:
%ad=phi i8*[%R,%I],[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*),%C]
store i8*%ad,i8**%e,align 8
%ae=call i8*@sml_alloc(i32 inreg 20)#0
%af=getelementptr inbounds i8,i8*%ae,i64 -4
%ag=bitcast i8*%af to i32*
store i32 1342177296,i32*%ag,align 4
store i8*%ae,i8**%f,align 8
%ah=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ai=bitcast i8*%ae to i8**
store i8*%ah,i8**%ai,align 8
%aj=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%ak=getelementptr inbounds i8,i8*%ae,i64 8
%al=bitcast i8*%ak to i8**
store i8*%aj,i8**%al,align 8
%am=getelementptr inbounds i8,i8*%ae,i64 16
%an=bitcast i8*%am to i32*
store i32 3,i32*%an,align 4
%ao=call i8*@sml_alloc(i32 inreg 28)#0
%ap=getelementptr inbounds i8,i8*%ao,i64 -4
%aq=bitcast i8*%ap to i32*
store i32 1342177304,i32*%aq,align 4
%ar=load i8*,i8**%f,align 8
%as=bitcast i8*%ao to i8**
store i8*%ar,i8**%as,align 8
%at=getelementptr inbounds i8,i8*%ao,i64 8
%au=bitcast i8*%at to void(...)**
store void(...)*bitcast(i8*(i8*,i32,i8*)*@_SMLLL5visit_71 to void(...)*),void(...)**%au,align 8
%av=getelementptr inbounds i8,i8*%ao,i64 16
%aw=bitcast i8*%av to void(...)**
store void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLL5visit_77 to void(...)*),void(...)**%aw,align 8
%ax=getelementptr inbounds i8,i8*%ao,i64 24
%ay=bitcast i8*%ax to i32*
store i32 -2147483647,i32*%ay,align 4
%az=load i8*,i8**%d,align 8
%aA=tail call fastcc i8*@_SMLLL5visit_71(i8*inreg%ar,i32 inreg 0,i8*inreg%az)
ret i8*%aA
}
define fastcc i8*@_SMLFN9Truncator8truncateE(i8*inreg%a)#2 gc"smlsharp"{
%b=alloca i8*,align 8
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%b,align 8
%d=call i8*@sml_alloc(i32 inreg 12)#0
%e=getelementptr inbounds i8,i8*%d,i64 -4
%f=bitcast i8*%e to i32*
store i32 1342177288,i32*%f,align 4
store i8*%d,i8**%c,align 8
%g=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%h=bitcast i8*%d to i8**
store i8*%g,i8**%h,align 8
%i=getelementptr inbounds i8,i8*%d,i64 8
%j=bitcast i8*%i to i32*
store i32 1,i32*%j,align 4
%k=call i8*@sml_alloc(i32 inreg 28)#0
%l=getelementptr inbounds i8,i8*%k,i64 -4
%m=bitcast i8*%l to i32*
store i32 1342177304,i32*%m,align 4
%n=load i8*,i8**%c,align 8
%o=bitcast i8*%k to i8**
store i8*%n,i8**%o,align 8
%p=getelementptr inbounds i8,i8*%k,i64 8
%q=bitcast i8*%p to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN9Truncator8truncateE_72 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*)*@_SMLLLN9Truncator8truncateE_72 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*@_SMLLL13isCutOffDepth_75(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=bitcast i8*%a to i32*
%f=load i32,i32*%e,align 4
%g=icmp sle i32%f,%d
%h=zext i1%g to i32
%i=tail call i8*@sml_alloc(i32 inreg 4)#0
%j=bitcast i8*%i to i32*
%k=getelementptr inbounds i8,i8*%i,i64 -4
%l=bitcast i8*%k to i32*
store i32 4,i32*%l,align 4
store i32%h,i32*%j,align 4
ret i8*%i
}
define internal fastcc i8*@_SMLLL13isCutOffDepth_76(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%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*@_SMLLL5visit_77(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=tail call fastcc i8*@_SMLLL5visit_71(i8*inreg%a,i32 inreg%e,i8*inreg%c)
ret i8*%f
}
define internal fastcc i8*@_SMLLLN9Truncator8truncateE_78(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN9Truncator8truncateE(i8*inreg%b)
ret i8*%c
}
attributes#0={nounwind}
attributes#1={noreturn nounwind}
attributes#2={nounwind uwtable}
attributes#3={uwtable}
