@sml_check_flag=external local_unnamed_addr global i32
@_SMLZN3Bug3BugE=external local_unnamed_addr global i8*
@_SMLZN4ISet5emptyE=external local_unnamed_addr global i8*
@_SMLZ9Subscript=external unnamed_addr constant i8*
@a=private unnamed_addr constant<{[4x i8],i32,[50x i8]}><{[4x i8]zeroinitializer,i32 -2147483598,[50x i8]c"src/compiler/libs/util/main/Graph.sml:76.23(2379)\00"}>,align 8
@b=private unnamed_addr constant<{[4x i8],i32,[50x i8]}><{[4x i8]zeroinitializer,i32 -2147483598,[50x i8]c"src/compiler/libs/util/main/Graph.sml:77.23(2437)\00"}>,align 8
@c=private unnamed_addr constant<{[4x i8],i32,[50x i8]}><{[4x i8]zeroinitializer,i32 -2147483598,[50x i8]c"src/compiler/libs/util/main/Graph.sml:80.23(2583)\00"}>,align 8
@d=private unnamed_addr constant<{[4x i8],i32,[50x i8]}><{[4x i8]zeroinitializer,i32 -2147483598,[50x i8]c"src/compiler/libs/util/main/Graph.sml:83.21(2727)\00"}>,align 8
@e=private unnamed_addr constant<{[4x i8],i32,[50x i8]}><{[4x i8]zeroinitializer,i32 -2147483598,[50x i8]c"src/compiler/libs/util/main/Graph.sml:99.33(3362)\00"}>,align 8
@f=private unnamed_addr constant<{[4x i8],i32,[51x i8]}><{[4x i8]zeroinitializer,i32 -2147483597,[51x i8]c"src/compiler/libs/util/main/Graph.sml:101.49(3460)\00"}>,align 8
@g=private unnamed_addr constant<{[4x i8],i32,[51x i8]}><{[4x i8]zeroinitializer,i32 -2147483597,[51x i8]c"src/compiler/libs/util/main/Graph.sml:103.36(3551)\00"}>,align 8
@h=private unnamed_addr constant<{[4x i8],i32,[51x i8]}><{[4x i8]zeroinitializer,i32 -2147483597,[51x i8]c"src/compiler/libs/util/main/Graph.sml:104.36(3608)\00"}>,align 8
@i=private unnamed_addr constant<{[4x i8],i32,[50x i8]}><{[4x i8]zeroinitializer,i32 -2147483598,[50x i8]c"src/compiler/libs/util/main/Graph.sml:88.39(2917)\00"}>,align 8
@j=private unnamed_addr constant<{[4x i8],i32,[50x i8]}><{[4x i8]zeroinitializer,i32 -2147483598,[50x i8]c"src/compiler/libs/util/main/Graph.sml:89.39(2977)\00"}>,align 8
@k=private unnamed_addr constant<{[4x i8],i32,[51x i8]}><{[4x i8]zeroinitializer,i32 -2147483597,[51x i8]c"src/compiler/libs/util/main/Graph.sml:117.36(4130)\00"}>,align 8
@l=private unnamed_addr constant<{[4x i8],i32,[56x i8]}><{[4x i8]zeroinitializer,i32 -2147483592,[56x i8]c"nil to getComponent (valrecoptimization/main/Graph.sml)\00"}>,align 8
@m=private unnamed_addr constant<{[4x i8],i32,[51x i8]}><{[4x i8]zeroinitializer,i32 -2147483597,[51x i8]c"src/compiler/libs/util/main/Graph.sml:120.28(4299)\00"}>,align 8
@n=private unnamed_addr constant<{[4x i8],i32,[51x i8]}><{[4x i8]zeroinitializer,i32 -2147483597,[51x i8]c"src/compiler/libs/util/main/Graph.sml:129.26(4575)\00"}>,align 8
@o=private unnamed_addr constant<{[4x i8],i32,[51x i8]}><{[4x i8]zeroinitializer,i32 -2147483597,[51x i8]c"src/compiler/libs/util/main/Graph.sml:130.27(4625)\00"}>,align 8
@p=private unnamed_addr constant<{[4x i8],i32,[51x i8]}><{[4x i8]zeroinitializer,i32 -2147483597,[51x i8]c"src/compiler/libs/util/main/Graph.sml:148.26(5118)\00"}>,align 8
@q=private unnamed_addr constant<{[4x i8],i32,[2x i8]}><{[4x i8]zeroinitializer,i32 -2147483646,[2x i8]c"(\00"}>,align 8
@r=private unnamed_addr constant<{[4x i8],i32,[2x i8]}><{[4x i8]zeroinitializer,i32 -2147483646,[2x i8]c" \00"}>,align 8
@s=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i32)*@_SMLLN5Graph10printNodesE_103 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5Graph10printNodesE_153 to void(...)*),i32 -2147483647}>,align 8
@t=private unnamed_addr constant<{[4x i8],i32,[3x i8]}><{[4x i8]zeroinitializer,i32 -2147483645,[3x i8]c")\0A\00"}>,align 8
@u=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLFN5Graph10printNodesE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5Graph10printNodesE_154 to void(...)*),i32 -2147483647}>,align 8
@v=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32,i32)*@_SMLFN5Graph5emptyE to void(...)*),void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLN5Graph5emptyE_163 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN5Graph5emptyE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@v,i64 0,i32 2)to i8*)
@w=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32,i32)*@_SMLFN5Graph7addNodeE to void(...)*),void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLN5Graph7addNodeE_164 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN5Graph7addNodeE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@w,i64 0,i32 2)to i8*)
@x=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32,i32)*@_SMLFN5Graph7addEdgeE to void(...)*),void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLN5Graph7addEdgeE_165 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN5Graph7addEdgeE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@x,i64 0,i32 2)to i8*)
@y=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32,i32)*@_SMLFN5Graph9listNodesE to void(...)*),void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLN5Graph9listNodesE_166 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN5Graph9listNodesE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@y,i64 0,i32 2)to i8*)
@z=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32,i32)*@_SMLFN5Graph11getNodeInfoE to void(...)*),void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLN5Graph11getNodeInfoE_167 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN5Graph11getNodeInfoE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@z,i64 0,i32 2)to i8*)
@A=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32,i32)*@_SMLFN5Graph3sccE to void(...)*),void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLN5Graph3sccE_168 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN5Graph3sccE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@A,i64 0,i32 2)to i8*)
@_SMLZN5Graph10printNodesE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@u,i64 0,i32 2)to i8*)
@_SML_ftab38a00530c8d1f034_Graph=external global i8
@B=private unnamed_addr global i8 0
declare void@llvm.gcroot(i8**,i8*)#0
declare i8*@sml_alloc(i32 inreg)local_unnamed_addr#0
declare void@sml_check(i32 inreg)local_unnamed_addr
declare void@sml_gcroot(i8*,void()*,i8*,i8*)local_unnamed_addr#0
declare void@sml_raise(i8*inreg)local_unnamed_addr#1
declare void@sml_write(i8*inreg,i8**inreg,i8*inreg)local_unnamed_addr#0
declare i8*@_SMLFN4IEnv10listItemsiE(i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN4IEnv4findE(i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN4IEnv5emptyE(i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN4IEnv6insertE(i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN4ISet3addE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN4ISet9listItemsE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN4ISet9singletonE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN4List3appE(i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN5Array5arrayE(i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN5Int328toStringE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare void@_SMLFN6TextIO5printE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN8ListPair5unzipE(i32 inreg,i32 inreg,i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main5148a836b3728be9_Int32()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_mainfd227ec42a85e2d0_Array()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main03d87556ec7f64b2_List()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main7aa263535439ee1c_ListPair()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main3446b7b079949ccf_text_io()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_maineaa0aca8fbe4101a_Bug()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main04a904d40099ecf0_IEnv()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main6995c0fdca2dd973_ISet()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_load5148a836b3728be9_Int32(i8*)local_unnamed_addr
declare void@_SML_loadfd227ec42a85e2d0_Array(i8*)local_unnamed_addr
declare void@_SML_load03d87556ec7f64b2_List(i8*)local_unnamed_addr
declare void@_SML_load7aa263535439ee1c_ListPair(i8*)local_unnamed_addr
declare void@_SML_load3446b7b079949ccf_text_io(i8*)local_unnamed_addr
declare void@_SML_loadeaa0aca8fbe4101a_Bug(i8*)local_unnamed_addr
declare void@_SML_load04a904d40099ecf0_IEnv(i8*)local_unnamed_addr
declare void@_SML_load6995c0fdca2dd973_ISet(i8*)local_unnamed_addr
define private void@_SML_tabb38a00530c8d1f034_Graph()#3{
unreachable
}
define void@_SML_load38a00530c8d1f034_Graph(i8*%a)local_unnamed_addr#0{
%b=load i8,i8*@B,align 1
%c=icmp eq i8%b,0
br i1%c,label%e,label%d
d:
ret void
e:
store i8 1,i8*@B,align 1
tail call void@_SML_load5148a836b3728be9_Int32(i8*%a)#0
tail call void@_SML_loadfd227ec42a85e2d0_Array(i8*%a)#0
tail call void@_SML_load03d87556ec7f64b2_List(i8*%a)#0
tail call void@_SML_load7aa263535439ee1c_ListPair(i8*%a)#0
tail call void@_SML_load3446b7b079949ccf_text_io(i8*%a)#0
tail call void@_SML_loadeaa0aca8fbe4101a_Bug(i8*%a)#0
tail call void@_SML_load04a904d40099ecf0_IEnv(i8*%a)#0
tail call void@_SML_load6995c0fdca2dd973_ISet(i8*%a)#0
tail call void@sml_gcroot(i8*%a,void()*@_SML_tabb38a00530c8d1f034_Graph,i8*@_SML_ftab38a00530c8d1f034_Graph,i8*null)#0
ret void
}
define void@_SML_main38a00530c8d1f034_Graph()local_unnamed_addr#2 gc"smlsharp"{
%a=load i8,i8*@B,align 1
%b=and i8%a,2
%c=icmp eq i8%b,0
br i1%c,label%e,label%d
d:
ret void
e:
store i8 3,i8*@B,align 1
tail call void@_SML_main5148a836b3728be9_Int32()#2
tail call void@_SML_mainfd227ec42a85e2d0_Array()#2
tail call void@_SML_main03d87556ec7f64b2_List()#2
tail call void@_SML_main7aa263535439ee1c_ListPair()#2
tail call void@_SML_main3446b7b079949ccf_text_io()#2
tail call void@_SML_maineaa0aca8fbe4101a_Bug()#2
tail call void@_SML_main04a904d40099ecf0_IEnv()#2
tail call void@_SML_main6995c0fdca2dd973_ISet()#2
br label%d
}
define internal fastcc i8*@_SMLLN5Graph7addNodeE_65(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
o:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
%h=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
call void@llvm.gcroot(i8**%h,i8*null)#0
store i8*%a,i8**%f,align 8
store i8*%b,i8**%g,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**%f,align 8
br label%m
m:
%n=phi i8*[%l,%k],[%a,%o]
%p=bitcast i8*%n to i8**
%q=getelementptr inbounds i8,i8*%n,i64 12
%r=bitcast i8*%q to i32*
%s=load i32,i32*%r,align 4
%t=add i32%s,11
%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=lshr i32%v,3
%A=add nsw i32%z,-1
%B=getelementptr inbounds i8,i8*%n,i64 8
%C=bitcast i8*%B to i32*
%D=load i32,i32*%C,align 4
%E=shl i32%D,%A
%F=shl i32%E,1
%G=or i32%F,1
%H=or i32%y,4
%I=bitcast i8*%n to i8***
%J=load i8**,i8***%I,align 8
%K=load i8*,i8**%J,align 8
store i8*%K,i8**%d,align 8
%L=load i8*,i8**%p,align 8
%M=getelementptr inbounds i8,i8*%L,i64 8
%N=bitcast i8*%M to i32*
%O=load i32,i32*%N,align 4
%P=getelementptr inbounds i8,i8*%L,i64 16
%Q=bitcast i8*%P to i8**
%R=load i8*,i8**%Q,align 8
store i8*%R,i8**%c,align 8
%S=load i8*,i8**%p,align 8
%T=getelementptr inbounds i8,i8*%S,i64 24
%U=bitcast i8*%T to i8**
%V=load i8*,i8**%U,align 8
store i8*%V,i8**%e,align 8
%W=add nsw i32%O,1
%X=call fastcc i8*@_SMLFN4IEnv6insertE(i32 inreg%D,i32 inreg%s)
%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
store i8*%ac,i8**%h,align 8
%ad=load i8*,i8**%f,align 8
%ae=getelementptr inbounds i8,i8*%ad,i64 12
%af=bitcast i8*%ae to i32*
%ag=load i32,i32*%af,align 4
store i8*null,i8**%f,align 8
%ah=getelementptr inbounds i8,i8*%ad,i64 8
%ai=bitcast i8*%ah to i32*
%aj=load i32,i32*%ai,align 4
%ak=call i8*@sml_alloc(i32 inreg%H)#0
%al=or i32%y,1342177280
%am=getelementptr inbounds i8,i8*%ak,i64 -4
%an=bitcast i8*%am to i32*
store i32%al,i32*%an,align 4
call void@llvm.memset.p0i8.i32(i8*%ak,i8 0,i32%H,i1 false)
%ao=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ap=bitcast i8*%ak to i8**
store i8*%ao,i8**%ap,align 8
%aq=getelementptr inbounds i8,i8*%ak,i64 8
%ar=bitcast i8*%aq to i32*
store i32%W,i32*%ar,align 4
%as=icmp eq i32%aj,0
%at=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%au=sext i32%v to i64
%av=getelementptr inbounds i8,i8*%ak,i64%au
br i1%as,label%ay,label%aw
aw:
%ax=bitcast i8*%av to i8**
store i8*%at,i8**%ax,align 8
br label%az
ay:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%av,i8*%at,i32%ag,i1 false)
br label%az
az:
%aA=sext i32%y to i64
%aB=getelementptr inbounds i8,i8*%ak,i64%aA
%aC=bitcast i8*%aB to i32*
store i32%G,i32*%aC,align 4
%aD=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%aE=call fastcc i8*%aa(i8*inreg%aD,i8*inreg%ak)
store i8*%aE,i8**%c,align 8
%aF=call fastcc i8*@_SMLFN4IEnv6insertE(i32 inreg 1,i32 inreg 8)
%aG=getelementptr inbounds i8,i8*%aF,i64 16
%aH=bitcast i8*%aG to i8*(i8*,i8*)**
%aI=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aH,align 8
%aJ=bitcast i8*%aF to i8**
%aK=load i8*,i8**%aJ,align 8
store i8*%aK,i8**%g,align 8
%aL=load i8*,i8**@_SMLZN4ISet5emptyE,align 8
store i8*%aL,i8**%f,align 8
%aM=call i8*@sml_alloc(i32 inreg 28)#0
%aN=getelementptr inbounds i8,i8*%aM,i64 -4
%aO=bitcast i8*%aN to i32*
store i32 1342177304,i32*%aO,align 4
%aP=getelementptr inbounds i8,i8*%aM,i64 12
%aQ=bitcast i8*%aP to i32*
store i32 0,i32*%aQ,align 1
%aR=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aS=bitcast i8*%aM to i8**
store i8*%aR,i8**%aS,align 8
%aT=getelementptr inbounds i8,i8*%aM,i64 8
%aU=bitcast i8*%aT to i32*
store i32%W,i32*%aU,align 4
%aV=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%aW=getelementptr inbounds i8,i8*%aM,i64 16
%aX=bitcast i8*%aW to i8**
store i8*%aV,i8**%aX,align 8
%aY=getelementptr inbounds i8,i8*%aM,i64 24
%aZ=bitcast i8*%aY to i32*
store i32 5,i32*%aZ,align 4
%a0=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%a1=call fastcc i8*%aI(i8*inreg%a0,i8*inreg%aM)
store i8*%a1,i8**%d,align 8
%a2=call fastcc i8*@_SMLFN4IEnv6insertE(i32 inreg 1,i32 inreg 8)
%a3=getelementptr inbounds i8,i8*%a2,i64 16
%a4=bitcast i8*%a3 to i8*(i8*,i8*)**
%a5=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%a4,align 8
%a6=bitcast i8*%a2 to i8**
%a7=load i8*,i8**%a6,align 8
store i8*%a7,i8**%g,align 8
%a8=load i8*,i8**@_SMLZN4ISet5emptyE,align 8
store i8*%a8,i8**%f,align 8
%a9=call i8*@sml_alloc(i32 inreg 28)#0
%ba=getelementptr inbounds i8,i8*%a9,i64 -4
%bb=bitcast i8*%ba to i32*
store i32 1342177304,i32*%bb,align 4
%bc=getelementptr inbounds i8,i8*%a9,i64 12
%bd=bitcast i8*%bc to i32*
store i32 0,i32*%bd,align 1
%be=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%bf=bitcast i8*%a9 to i8**
store i8*%be,i8**%bf,align 8
%bg=getelementptr inbounds i8,i8*%a9,i64 8
%bh=bitcast i8*%bg to i32*
store i32%W,i32*%bh,align 4
%bi=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%bj=getelementptr inbounds i8,i8*%a9,i64 16
%bk=bitcast i8*%bj to i8**
store i8*%bi,i8**%bk,align 8
%bl=getelementptr inbounds i8,i8*%a9,i64 24
%bm=bitcast i8*%bl to i32*
store i32 5,i32*%bm,align 4
%bn=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%bo=call fastcc i8*%a5(i8*inreg%bn,i8*inreg%a9)
store i8*%bo,i8**%e,align 8
%bp=call i8*@sml_alloc(i32 inreg 36)#0
%bq=getelementptr inbounds i8,i8*%bp,i64 -4
%br=bitcast i8*%bq to i32*
store i32 1342177312,i32*%br,align 4
store i8*%bp,i8**%f,align 8
%bs=getelementptr inbounds i8,i8*%bp,i64 12
%bt=bitcast i8*%bs to i32*
store i32 0,i32*%bt,align 1
%bu=load i8*,i8**%d,align 8
%bv=bitcast i8*%bp to i8**
store i8*null,i8**%d,align 8
store i8*%bu,i8**%bv,align 8
%bw=getelementptr inbounds i8,i8*%bp,i64 8
%bx=bitcast i8*%bw to i32*
store i32%W,i32*%bx,align 4
%by=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bz=getelementptr inbounds i8,i8*%bp,i64 16
%bA=bitcast i8*%bz to i8**
store i8*%by,i8**%bA,align 8
%bB=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%bC=getelementptr inbounds i8,i8*%bp,i64 24
%bD=bitcast i8*%bC to i8**
store i8*%bB,i8**%bD,align 8
%bE=getelementptr inbounds i8,i8*%bp,i64 32
%bF=bitcast i8*%bE to i32*
store i32 13,i32*%bF,align 4
%bG=call i8*@sml_alloc(i32 inreg 20)#0
%bH=getelementptr inbounds i8,i8*%bG,i64 -4
%bI=bitcast i8*%bH to i32*
store i32 1342177296,i32*%bI,align 4
%bJ=getelementptr inbounds i8,i8*%bG,i64 12
%bK=bitcast i8*%bJ to i32*
store i32 0,i32*%bK,align 1
%bL=load i8*,i8**%f,align 8
%bM=bitcast i8*%bG to i8**
store i8*%bL,i8**%bM,align 8
%bN=getelementptr inbounds i8,i8*%bG,i64 8
%bO=bitcast i8*%bN to i32*
store i32%W,i32*%bO,align 4
%bP=getelementptr inbounds i8,i8*%bG,i64 16
%bQ=bitcast i8*%bP to i32*
store i32 1,i32*%bQ,align 4
ret i8*%bG
}
define internal fastcc i8*@_SMLLN5Graph7addNodeE_66(i8*inreg%a,i8*inreg%b)#4 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*)*@_SMLLN5Graph7addNodeE_65 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*)*@_SMLLN5Graph7addNodeE_65 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 internal fastcc i8*@_SMLLN5Graph7addEdgeE_69(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
%h=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
call void@llvm.gcroot(i8**%h,i8*null)#0
store i8*%a,i8**%c,align 8
store i8*%b,i8**%d,align 8
%i=load atomic i32,i32*@sml_check_flag unordered,align 4
%j=icmp eq i32%i,0
br i1%j,label%k,label%o
k:
%l=bitcast i8*%a to i8***
%m=bitcast i8*%a to i8**
%n=bitcast i8*%a to i8**
br label%t
o:
call void@sml_check(i32 inreg%i)
%p=load i8*,i8**%d,align 8
%q=bitcast i8**%c to i8****
%r=load i8***,i8****%q,align 8
%s=bitcast i8***%r to i8**
br label%t
t:
%u=phi i8**[%n,%k],[%s,%o]
%v=phi i8**[%m,%k],[%s,%o]
%w=phi i8***[%l,%k],[%r,%o]
%x=phi i8*[%b,%k],[%p,%o]
store i8*null,i8**%d,align 8
%y=load i8**,i8***%w,align 8
%z=load i8*,i8**%y,align 8
store i8*%z,i8**%e,align 8
%A=load i8*,i8**%u,align 8
%B=getelementptr inbounds i8,i8*%A,i64 8
%C=bitcast i8*%B to i32*
%D=load i32,i32*%C,align 4
%E=getelementptr inbounds i8,i8*%A,i64 16
%F=bitcast i8*%E to i8**
%G=load i8*,i8**%F,align 8
store i8*%G,i8**%f,align 8
store i8*null,i8**%c,align 8
%H=load i8*,i8**%v,align 8
%I=getelementptr inbounds i8,i8*%H,i64 24
%J=bitcast i8*%I to i8**
%K=load i8*,i8**%J,align 8
store i8*%K,i8**%g,align 8
%L=bitcast i8*%x to i32*
%M=load i32,i32*%L,align 4
%N=getelementptr inbounds i8,i8*%x,i64 4
%O=bitcast i8*%N to i32*
%P=load i32,i32*%O,align 4
%Q=call fastcc i8*@_SMLFN4IEnv4findE(i32 inreg 1,i32 inreg 8)
%R=getelementptr inbounds i8,i8*%Q,i64 16
%S=bitcast i8*%R to i8*(i8*,i8*)**
%T=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%S,align 8
%U=bitcast i8*%Q to i8**
%V=load i8*,i8**%U,align 8
store i8*%V,i8**%c,align 8
%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
%Z=getelementptr inbounds i8,i8*%W,i64 12
%aa=bitcast i8*%Z to i32*
store i32 0,i32*%aa,align 1
%ab=load i8*,i8**%e,align 8
%ac=bitcast i8*%W to i8**
store i8*%ab,i8**%ac,align 8
%ad=getelementptr inbounds i8,i8*%W,i64 8
%ae=bitcast i8*%ad to i32*
store i32%M,i32*%ae,align 4
%af=getelementptr inbounds i8,i8*%W,i64 16
%ag=bitcast i8*%af to i32*
store i32 1,i32*%ag,align 4
%ah=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ai=call fastcc i8*%T(i8*inreg%ah,i8*inreg%W)
%aj=icmp eq i8*%ai,null
br i1%aj,label%ak,label%am
ak:
%al=call fastcc i8*@_SMLFN4ISet9singletonE(i32 inreg%P)
br label%aB
am:
%an=bitcast i8*%ai to i8**
%ao=load i8*,i8**%an,align 8
store i8*%ao,i8**%c,align 8
%ap=call i8*@sml_alloc(i32 inreg 20)#0
%aq=getelementptr inbounds i8,i8*%ap,i64 -4
%ar=bitcast i8*%aq to i32*
store i32 1342177296,i32*%ar,align 4
%as=getelementptr inbounds i8,i8*%ap,i64 12
%at=bitcast i8*%as to i32*
store i32 0,i32*%at,align 1
%au=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%av=bitcast i8*%ap to i8**
store i8*%au,i8**%av,align 8
%aw=getelementptr inbounds i8,i8*%ap,i64 8
%ax=bitcast i8*%aw to i32*
store i32%P,i32*%ax,align 4
%ay=getelementptr inbounds i8,i8*%ap,i64 16
%az=bitcast i8*%ay to i32*
store i32 1,i32*%az,align 4
%aA=call fastcc i8*@_SMLFN4ISet3addE(i8*inreg%ap)
br label%aB
aB:
%aC=phi i8*[%aA,%am],[%al,%ak]
store i8*%aC,i8**%c,align 8
%aD=call fastcc i8*@_SMLFN4IEnv4findE(i32 inreg 1,i32 inreg 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
store i8*%aI,i8**%d,align 8
%aJ=call i8*@sml_alloc(i32 inreg 20)#0
%aK=getelementptr inbounds i8,i8*%aJ,i64 -4
%aL=bitcast i8*%aK to i32*
store i32 1342177296,i32*%aL,align 4
%aM=getelementptr inbounds i8,i8*%aJ,i64 12
%aN=bitcast i8*%aM to i32*
store i32 0,i32*%aN,align 1
%aO=load i8*,i8**%g,align 8
%aP=bitcast i8*%aJ to i8**
store i8*%aO,i8**%aP,align 8
%aQ=getelementptr inbounds i8,i8*%aJ,i64 8
%aR=bitcast i8*%aQ to i32*
store i32%P,i32*%aR,align 4
%aS=getelementptr inbounds i8,i8*%aJ,i64 16
%aT=bitcast i8*%aS to i32*
store i32 1,i32*%aT,align 4
%aU=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aV=call fastcc i8*%aG(i8*inreg%aU,i8*inreg%aJ)
%aW=icmp eq i8*%aV,null
br i1%aW,label%aX,label%aZ
aX:
%aY=call fastcc i8*@_SMLFN4ISet9singletonE(i32 inreg%M)
br label%be
aZ:
%a0=bitcast i8*%aV to i8**
%a1=load i8*,i8**%a0,align 8
store i8*%a1,i8**%d,align 8
%a2=call i8*@sml_alloc(i32 inreg 20)#0
%a3=getelementptr inbounds i8,i8*%a2,i64 -4
%a4=bitcast i8*%a3 to i32*
store i32 1342177296,i32*%a4,align 4
%a5=getelementptr inbounds i8,i8*%a2,i64 12
%a6=bitcast i8*%a5 to i32*
store i32 0,i32*%a6,align 1
%a7=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%a8=bitcast i8*%a2 to i8**
store i8*%a7,i8**%a8,align 8
%a9=getelementptr inbounds i8,i8*%a2,i64 8
%ba=bitcast i8*%a9 to i32*
store i32%M,i32*%ba,align 4
%bb=getelementptr inbounds i8,i8*%a2,i64 16
%bc=bitcast i8*%bb to i32*
store i32 1,i32*%bc,align 4
%bd=call fastcc i8*@_SMLFN4ISet3addE(i8*inreg%a2)
br label%be
be:
%bf=phi i8*[%bd,%aZ],[%aY,%aX]
store i8*%bf,i8**%d,align 8
%bg=call fastcc i8*@_SMLFN4IEnv6insertE(i32 inreg 1,i32 inreg 8)
%bh=getelementptr inbounds i8,i8*%bg,i64 16
%bi=bitcast i8*%bh to i8*(i8*,i8*)**
%bj=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bi,align 8
%bk=bitcast i8*%bg to i8**
%bl=load i8*,i8**%bk,align 8
store i8*%bl,i8**%h,align 8
%bm=call i8*@sml_alloc(i32 inreg 28)#0
%bn=getelementptr inbounds i8,i8*%bm,i64 -4
%bo=bitcast i8*%bn to i32*
store i32 1342177304,i32*%bo,align 4
%bp=getelementptr inbounds i8,i8*%bm,i64 12
%bq=bitcast i8*%bp to i32*
store i32 0,i32*%bq,align 1
%br=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%bs=bitcast i8*%bm to i8**
store i8*%br,i8**%bs,align 8
%bt=getelementptr inbounds i8,i8*%bm,i64 8
%bu=bitcast i8*%bt to i32*
store i32%M,i32*%bu,align 4
%bv=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bw=getelementptr inbounds i8,i8*%bm,i64 16
%bx=bitcast i8*%bw to i8**
store i8*%bv,i8**%bx,align 8
%by=getelementptr inbounds i8,i8*%bm,i64 24
%bz=bitcast i8*%by to i32*
store i32 5,i32*%bz,align 4
%bA=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%bB=call fastcc i8*%bj(i8*inreg%bA,i8*inreg%bm)
store i8*%bB,i8**%c,align 8
%bC=call fastcc i8*@_SMLFN4IEnv6insertE(i32 inreg 1,i32 inreg 8)
%bD=getelementptr inbounds i8,i8*%bC,i64 16
%bE=bitcast i8*%bD to i8*(i8*,i8*)**
%bF=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bE,align 8
%bG=bitcast i8*%bC to i8**
%bH=load i8*,i8**%bG,align 8
store i8*%bH,i8**%e,align 8
%bI=call i8*@sml_alloc(i32 inreg 28)#0
%bJ=getelementptr inbounds i8,i8*%bI,i64 -4
%bK=bitcast i8*%bJ to i32*
store i32 1342177304,i32*%bK,align 4
%bL=getelementptr inbounds i8,i8*%bI,i64 12
%bM=bitcast i8*%bL to i32*
store i32 0,i32*%bM,align 1
%bN=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%bO=bitcast i8*%bI to i8**
store i8*%bN,i8**%bO,align 8
%bP=getelementptr inbounds i8,i8*%bI,i64 8
%bQ=bitcast i8*%bP to i32*
store i32%P,i32*%bQ,align 4
%bR=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%bS=getelementptr inbounds i8,i8*%bI,i64 16
%bT=bitcast i8*%bS to i8**
store i8*%bR,i8**%bT,align 8
%bU=getelementptr inbounds i8,i8*%bI,i64 24
%bV=bitcast i8*%bU to i32*
store i32 5,i32*%bV,align 4
%bW=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%bX=call fastcc i8*%bF(i8*inreg%bW,i8*inreg%bI)
store i8*%bX,i8**%d,align 8
%bY=call i8*@sml_alloc(i32 inreg 36)#0
%bZ=getelementptr inbounds i8,i8*%bY,i64 -4
%b0=bitcast i8*%bZ to i32*
store i32 1342177312,i32*%b0,align 4
%b1=getelementptr inbounds i8,i8*%bY,i64 12
%b2=bitcast i8*%b1 to i32*
store i32 0,i32*%b2,align 1
%b3=load i8*,i8**%c,align 8
%b4=bitcast i8*%bY to i8**
store i8*%b3,i8**%b4,align 8
%b5=getelementptr inbounds i8,i8*%bY,i64 8
%b6=bitcast i8*%b5 to i32*
store i32%D,i32*%b6,align 4
%b7=load i8*,i8**%f,align 8
%b8=getelementptr inbounds i8,i8*%bY,i64 16
%b9=bitcast i8*%b8 to i8**
store i8*%b7,i8**%b9,align 8
%ca=load i8*,i8**%d,align 8
%cb=getelementptr inbounds i8,i8*%bY,i64 24
%cc=bitcast i8*%cb to i8**
store i8*%ca,i8**%cc,align 8
%cd=getelementptr inbounds i8,i8*%bY,i64 32
%ce=bitcast i8*%cd to i32*
store i32 13,i32*%ce,align 4
ret i8*%bY
}
define internal fastcc i8*@_SMLLN5Graph16getOutGoingNodesE_72(i8*inreg%a,i32 inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%c,align 8
%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%l
i:
call void@sml_check(i32 inreg%e)
%j=bitcast i8**%c to i8****
%k=load i8***,i8****%j,align 8
br label%l
l:
%m=phi i8***[%k,%i],[%h,%g]
%n=load i8**,i8***%m,align 8
%o=load i8*,i8**%n,align 8
store i8*%o,i8**%c,align 8
%p=call fastcc i8*@_SMLFN4IEnv4findE(i32 inreg 1,i32 inreg 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**%d,align 8
%v=call i8*@sml_alloc(i32 inreg 20)#0
%w=getelementptr inbounds i8,i8*%v,i64 -4
%x=bitcast i8*%w to i32*
store i32 1342177296,i32*%x,align 4
%y=getelementptr inbounds i8,i8*%v,i64 12
%z=bitcast i8*%y to i32*
store i32 0,i32*%z,align 1
%A=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%B=bitcast i8*%v to i8**
store i8*%A,i8**%B,align 8
%C=getelementptr inbounds i8,i8*%v,i64 8
%D=bitcast i8*%C to i32*
store i32%b,i32*%D,align 4
%E=getelementptr inbounds i8,i8*%v,i64 16
%F=bitcast i8*%E to i32*
store i32 1,i32*%F,align 4
%G=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%H=call fastcc i8*%s(i8*inreg%G,i8*inreg%v)
%I=icmp eq i8*%H,null
br i1%I,label%J,label%L
J:
%K=load i8*,i8**@_SMLZN4ISet5emptyE,align 8
ret i8*%K
L:
%M=bitcast i8*%H to i8**
%N=load i8*,i8**%M,align 8
ret i8*%N
}
define internal fastcc void@_SMLL1f_89(i8*inreg%a,i32 inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%c,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%h,label%g
g:
call void@sml_check(i32 inreg%e)
br label%h
h:
%i=icmp slt i32%b,0
br i1%i,label%A,label%j
j:
%k=bitcast i8**%c to i32***
%l=load i32**,i32***%k,align 8
%m=load i32*,i32**%l,align 8
%n=getelementptr inbounds i32,i32*%m,i64 -1
%o=load i32,i32*%n,align 4
%p=lshr i32%o,2
%q=and i32%p,67108863
%r=icmp sgt i32%q,%b
%s=bitcast i32*%m to i8*
br i1%r,label%t,label%A
t:
%u=shl i32%b,2
%v=sext i32%u to i64
%w=getelementptr inbounds i8,i8*%s,i64%v
%x=bitcast i8*%w to i32*
%y=load i32,i32*%x,align 4
%z=icmp eq i32%y,-1
br i1%z,label%S,label%a6
A:
%B=load i8*,i8**@_SMLZ9Subscript,align 8
store i8*%B,i8**%c,align 8
%C=call i8*@sml_alloc(i32 inreg 20)#0
%D=getelementptr inbounds i8,i8*%C,i64 -4
%E=bitcast i8*%D to i32*
store i32 1342177296,i32*%E,align 4
store i8*%C,i8**%d,align 8
%F=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%G=bitcast i8*%C to i8**
store i8*%F,i8**%G,align 8
%H=getelementptr inbounds i8,i8*%C,i64 8
%I=bitcast i8*%H to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[50x i8]}>,<{[4x i8],i32,[50x i8]}>*@d,i64 0,i32 2,i64 0),i8**%I,align 8
%J=getelementptr inbounds i8,i8*%C,i64 16
%K=bitcast i8*%J to i32*
store i32 3,i32*%K,align 4
%L=call i8*@sml_alloc(i32 inreg 60)#0
%M=getelementptr inbounds i8,i8*%L,i64 -4
%N=bitcast i8*%M to i32*
store i32 1342177336,i32*%N,align 4
%O=getelementptr inbounds i8,i8*%L,i64 56
%P=bitcast i8*%O to i32*
store i32 1,i32*%P,align 4
%Q=load i8*,i8**%d,align 8
%R=bitcast i8*%L to i8**
store i8*%Q,i8**%R,align 8
call void@sml_raise(i8*inreg%L)#1
unreachable
S:
%T=getelementptr inbounds i32*,i32**%l,i64 3
%U=bitcast i32**%T to i8**
%V=load i8*,i8**%U,align 8
call fastcc void@_SMLL3dfs_75(i8*inreg%V,i32 inreg%b)
%W=load i8*,i8**%c,align 8
%X=getelementptr inbounds i8,i8*%W,i64 8
%Y=bitcast i8*%X to i32**
%Z=load i32*,i32**%Y,align 8
%aa=getelementptr inbounds i32,i32*%Z,i64 -1
%ab=load i32,i32*%aa,align 4
%ac=lshr i32%ab,2
%ad=and i32%ac,67108863
%ae=icmp sgt i32%ad,%b
%af=bitcast i32*%Z to i8*
br i1%ae,label%ag,label%ao
ag:
%ah=getelementptr inbounds i8,i8*%af,i64%v
%ai=bitcast i8*%ah to i32*
%aj=load i32,i32*%ai,align 4
%ak=getelementptr inbounds i8,i8*%W,i64 32
%al=bitcast i8*%ak to i32*
%am=load i32,i32*%al,align 4
%an=icmp ult i32%am,%ad
br i1%an,label%aY,label%aG
ao:
%ap=load i8*,i8**@_SMLZ9Subscript,align 8
store i8*%ap,i8**%c,align 8
%aq=call i8*@sml_alloc(i32 inreg 20)#0
%ar=getelementptr inbounds i8,i8*%aq,i64 -4
%as=bitcast i8*%ar to i32*
store i32 1342177296,i32*%as,align 4
store i8*%aq,i8**%d,align 8
%at=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%au=bitcast i8*%aq to i8**
store i8*%at,i8**%au,align 8
%av=getelementptr inbounds i8,i8*%aq,i64 8
%aw=bitcast i8*%av to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[50x i8]}>,<{[4x i8],i32,[50x i8]}>*@i,i64 0,i32 2,i64 0),i8**%aw,align 8
%ax=getelementptr inbounds i8,i8*%aq,i64 16
%ay=bitcast i8*%ax to i32*
store i32 3,i32*%ay,align 4
%az=call i8*@sml_alloc(i32 inreg 60)#0
%aA=getelementptr inbounds i8,i8*%az,i64 -4
%aB=bitcast i8*%aA to i32*
store i32 1342177336,i32*%aB,align 4
%aC=getelementptr inbounds i8,i8*%az,i64 56
%aD=bitcast i8*%aC to i32*
store i32 1,i32*%aD,align 4
%aE=load i8*,i8**%d,align 8
%aF=bitcast i8*%az to i8**
store i8*%aE,i8**%aF,align 8
call void@sml_raise(i8*inreg%az)#1
unreachable
aG:
%aH=load i8*,i8**@_SMLZ9Subscript,align 8
store i8*%aH,i8**%c,align 8
%aI=call i8*@sml_alloc(i32 inreg 20)#0
%aJ=getelementptr inbounds i8,i8*%aI,i64 -4
%aK=bitcast i8*%aJ to i32*
store i32 1342177296,i32*%aK,align 4
store i8*%aI,i8**%d,align 8
%aL=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aM=bitcast i8*%aI to i8**
store i8*%aL,i8**%aM,align 8
%aN=getelementptr inbounds i8,i8*%aI,i64 8
%aO=bitcast i8*%aN to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[50x i8]}>,<{[4x i8],i32,[50x i8]}>*@j,i64 0,i32 2,i64 0),i8**%aO,align 8
%aP=getelementptr inbounds i8,i8*%aI,i64 16
%aQ=bitcast i8*%aP to i32*
store i32 3,i32*%aQ,align 4
%aR=call i8*@sml_alloc(i32 inreg 60)#0
%aS=getelementptr inbounds i8,i8*%aR,i64 -4
%aT=bitcast i8*%aS to i32*
store i32 1342177336,i32*%aT,align 4
%aU=getelementptr inbounds i8,i8*%aR,i64 56
%aV=bitcast i8*%aU to i32*
store i32 1,i32*%aV,align 4
%aW=load i8*,i8**%d,align 8
%aX=bitcast i8*%aR to i8**
store i8*%aW,i8**%aX,align 8
call void@sml_raise(i8*inreg%aR)#1
unreachable
aY:
%aZ=shl i32%am,2
%a0=sext i32%aZ to i64
%a1=getelementptr inbounds i8,i8*%af,i64%a0
%a2=bitcast i8*%a1 to i32*
%a3=load i32,i32*%a2,align 4
%a4=icmp sgt i32%aj,%a3
%a5=select i1%a4,i32%a3,i32%aj
store i32%a5,i32*%a2,align 4
ret void
a6:
%a7=getelementptr inbounds i32*,i32**%l,i64 4
%a8=bitcast i32**%a7 to i32*
%a9=load i32,i32*%a8,align 4
%ba=icmp ult i32%a9,%q
br i1%ba,label%bb,label%bi
bb:
%bc=shl i32%a9,2
%bd=sext i32%bc to i64
%be=getelementptr inbounds i8,i8*%s,i64%bd
%bf=bitcast i8*%be to i32*
%bg=load i32,i32*%bf,align 4
%bh=icmp slt i32%y,%bg
br i1%bh,label%bA,label%c0
bi:
%bj=load i8*,i8**@_SMLZ9Subscript,align 8
store i8*%bj,i8**%c,align 8
%bk=call i8*@sml_alloc(i32 inreg 20)#0
%bl=getelementptr inbounds i8,i8*%bk,i64 -4
%bm=bitcast i8*%bl to i32*
store i32 1342177296,i32*%bm,align 4
store i8*%bk,i8**%d,align 8
%bn=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bo=bitcast i8*%bk to i8**
store i8*%bn,i8**%bo,align 8
%bp=getelementptr inbounds i8,i8*%bk,i64 8
%bq=bitcast i8*%bp to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[50x i8]}>,<{[4x i8],i32,[50x i8]}>*@e,i64 0,i32 2,i64 0),i8**%bq,align 8
%br=getelementptr inbounds i8,i8*%bk,i64 16
%bs=bitcast i8*%br to i32*
store i32 3,i32*%bs,align 4
%bt=call i8*@sml_alloc(i32 inreg 60)#0
%bu=getelementptr inbounds i8,i8*%bt,i64 -4
%bv=bitcast i8*%bu to i32*
store i32 1342177336,i32*%bv,align 4
%bw=getelementptr inbounds i8,i8*%bt,i64 56
%bx=bitcast i8*%bw to i32*
store i32 1,i32*%bx,align 4
%by=load i8*,i8**%d,align 8
%bz=bitcast i8*%bt to i8**
store i8*%by,i8**%bz,align 8
call void@sml_raise(i8*inreg%bt)#1
unreachable
bA:
%bB=getelementptr inbounds i32*,i32**%l,i64 2
%bC=load i32*,i32**%bB,align 8
%bD=getelementptr inbounds i32,i32*%bC,i64 -1
%bE=load i32,i32*%bD,align 4
%bF=lshr i32%bE,2
%bG=and i32%bF,67108863
%bH=icmp sgt i32%bG,%b
br i1%bH,label%bI,label%bO
bI:
%bJ=bitcast i32*%bC to i8*
%bK=getelementptr inbounds i8,i8*%bJ,i64%v
%bL=bitcast i8*%bK to i32*
%bM=load i32,i32*%bL,align 4
%bN=icmp eq i32%bM,0
br i1%bN,label%c0,label%b6
bO:
%bP=load i8*,i8**@_SMLZ9Subscript,align 8
store i8*%bP,i8**%c,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
store i8*%bQ,i8**%d,align 8
%bT=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bU=bitcast i8*%bQ to i8**
store i8*%bT,i8**%bU,align 8
%bV=getelementptr inbounds i8,i8*%bQ,i64 8
%bW=bitcast i8*%bV to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[51x i8]}>,<{[4x i8],i32,[51x i8]}>*@f,i64 0,i32 2,i64 0),i8**%bW,align 8
%bX=getelementptr inbounds i8,i8*%bQ,i64 16
%bY=bitcast i8*%bX to i32*
store i32 3,i32*%bY,align 4
%bZ=call i8*@sml_alloc(i32 inreg 60)#0
%b0=getelementptr inbounds i8,i8*%bZ,i64 -4
%b1=bitcast i8*%b0 to i32*
store i32 1342177336,i32*%b1,align 4
%b2=getelementptr inbounds i8,i8*%bZ,i64 56
%b3=bitcast i8*%b2 to i32*
store i32 1,i32*%b3,align 4
%b4=load i8*,i8**%d,align 8
%b5=bitcast i8*%bZ to i8**
store i8*%b4,i8**%b5,align 8
call void@sml_raise(i8*inreg%bZ)#1
unreachable
b6:
%b7=getelementptr inbounds i32*,i32**%l,i64 1
%b8=load i32*,i32**%b7,align 8
%b9=getelementptr inbounds i32,i32*%b8,i64 -1
%ca=load i32,i32*%b9,align 4
%cb=lshr i32%ca,2
%cc=and i32%cb,67108863
%cd=icmp sgt i32%cc,%b
%ce=bitcast i32*%b8 to i8*
br i1%cd,label%cx,label%cf
cf:
%cg=load i8*,i8**@_SMLZ9Subscript,align 8
store i8*%cg,i8**%c,align 8
%ch=call i8*@sml_alloc(i32 inreg 20)#0
%ci=getelementptr inbounds i8,i8*%ch,i64 -4
%cj=bitcast i8*%ci to i32*
store i32 1342177296,i32*%cj,align 4
store i8*%ch,i8**%d,align 8
%ck=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%cl=bitcast i8*%ch to i8**
store i8*%ck,i8**%cl,align 8
%cm=getelementptr inbounds i8,i8*%ch,i64 8
%cn=bitcast i8*%cm to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[51x i8]}>,<{[4x i8],i32,[51x i8]}>*@g,i64 0,i32 2,i64 0),i8**%cn,align 8
%co=getelementptr inbounds i8,i8*%ch,i64 16
%cp=bitcast i8*%co to i32*
store i32 3,i32*%cp,align 4
%cq=call i8*@sml_alloc(i32 inreg 60)#0
%cr=getelementptr inbounds i8,i8*%cq,i64 -4
%cs=bitcast i8*%cr to i32*
store i32 1342177336,i32*%cs,align 4
%ct=getelementptr inbounds i8,i8*%cq,i64 56
%cu=bitcast i8*%ct to i32*
store i32 1,i32*%cu,align 4
%cv=load i8*,i8**%d,align 8
%cw=bitcast i8*%cq to i8**
store i8*%cv,i8**%cw,align 8
call void@sml_raise(i8*inreg%cq)#1
unreachable
cx:
%cy=getelementptr inbounds i8,i8*%ce,i64%v
%cz=bitcast i8*%cy to i32*
%cA=load i32,i32*%cz,align 4
%cB=icmp slt i32%a9,%cc
br i1%cB,label%cU,label%cC
cC:
%cD=load i8*,i8**@_SMLZ9Subscript,align 8
store i8*%cD,i8**%c,align 8
%cE=call i8*@sml_alloc(i32 inreg 20)#0
%cF=getelementptr inbounds i8,i8*%cE,i64 -4
%cG=bitcast i8*%cF to i32*
store i32 1342177296,i32*%cG,align 4
store i8*%cE,i8**%d,align 8
%cH=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%cI=bitcast i8*%cE to i8**
store i8*%cH,i8**%cI,align 8
%cJ=getelementptr inbounds i8,i8*%cE,i64 8
%cK=bitcast i8*%cJ to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[51x i8]}>,<{[4x i8],i32,[51x i8]}>*@h,i64 0,i32 2,i64 0),i8**%cK,align 8
%cL=getelementptr inbounds i8,i8*%cE,i64 16
%cM=bitcast i8*%cL to i32*
store i32 3,i32*%cM,align 4
%cN=call i8*@sml_alloc(i32 inreg 60)#0
%cO=getelementptr inbounds i8,i8*%cN,i64 -4
%cP=bitcast i8*%cO to i32*
store i32 1342177336,i32*%cP,align 4
%cQ=getelementptr inbounds i8,i8*%cN,i64 56
%cR=bitcast i8*%cQ to i32*
store i32 1,i32*%cR,align 4
%cS=load i8*,i8**%d,align 8
%cT=bitcast i8*%cN to i8**
store i8*%cS,i8**%cT,align 8
call void@sml_raise(i8*inreg%cN)#1
unreachable
cU:
%cV=getelementptr inbounds i8,i8*%ce,i64%bd
%cW=bitcast i8*%cV to i32*
%cX=load i32,i32*%cW,align 4
%cY=icmp sgt i32%cA,%cX
%cZ=select i1%cY,i32%cX,i32%cA
store i32%cZ,i32*%cW,align 4
ret void
c0:
ret void
}
define internal fastcc i8*@_SMLL12getComponent_90(i8*inreg%a,i32 inreg%b)#2 gc"smlsharp"{
k:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%d,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%i,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%d,align 8
br label%i
i:
%j=phi i8*[%h,%g],[%a,%k]
%l=getelementptr inbounds i8,i8*%j,i64 8
%m=bitcast i8*%l to i8***
%n=load i8**,i8***%m,align 8
%o=load i8*,i8**%n,align 8
%p=icmp eq i8*%o,null
br i1%p,label%q,label%K
q:
store i8*null,i8**%d,align 8
%r=load i8*,i8**@_SMLZN3Bug3BugE,align 8
store i8*%r,i8**%c,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**%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 i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[51x i8]}>,<{[4x i8],i32,[51x i8]}>*@k,i64 0,i32 2,i64 0),i8**%y,align 8
%z=getelementptr inbounds i8,i8*%s,i64 16
%A=bitcast i8*%z to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[56x i8]}>,<{[4x i8],i32,[56x i8]}>*@l,i64 0,i32 2,i64 0),i8**%A,align 8
%B=getelementptr inbounds i8,i8*%s,i64 24
%C=bitcast i8*%B to i32*
store i32 7,i32*%C,align 4
%D=call i8*@sml_alloc(i32 inreg 60)#0
%E=getelementptr inbounds i8,i8*%D,i64 -4
%F=bitcast i8*%E to i32*
store i32 1342177336,i32*%F,align 4
%G=getelementptr inbounds i8,i8*%D,i64 56
%H=bitcast i8*%G to i32*
store i32 1,i32*%H,align 4
%I=load i8*,i8**%d,align 8
%J=bitcast i8*%D to i8**
store i8*%I,i8**%J,align 8
call void@sml_raise(i8*inreg%D)#1
unreachable
K:
%L=bitcast i8*%o to i32*
%M=load i32,i32*%L,align 4
%N=getelementptr inbounds i8,i8*%o,i64 8
%O=bitcast i8*%N to i8**
%P=load i8*,i8**%O,align 8
store i8*%P,i8**%c,align 8
%Q=call i8*@sml_alloc(i32 inreg 20)#0
%R=bitcast i8*%Q to i32*
%S=getelementptr inbounds i8,i8*%Q,i64 -4
%T=bitcast i8*%S to i32*
store i32 1342177296,i32*%T,align 4
%U=getelementptr inbounds i8,i8*%Q,i64 4
%V=bitcast i8*%U to i32*
store i32 0,i32*%V,align 1
store i32%M,i32*%R,align 4
%W=load i8*,i8**%c,align 8
%X=getelementptr inbounds i8,i8*%Q,i64 8
%Y=bitcast i8*%X to i8**
store i8*%W,i8**%Y,align 8
%Z=getelementptr inbounds i8,i8*%Q,i64 16
%aa=bitcast i8*%Z to i32*
store i32 2,i32*%aa,align 4
%ab=load i8*,i8**%d,align 8
%ac=getelementptr inbounds i8,i8*%ab,i64 8
%ad=bitcast i8*%ac to i8**
%ae=load i8*,i8**%ad,align 8
%af=bitcast i8*%ae to i8**
call void@sml_write(i8*inreg%ae,i8**inreg%af,i8*inreg%W)#0
%ag=icmp slt i32%M,0
br i1%ag,label%aB,label%ah
ah:
%ai=bitcast i8**%d to i32***
%aj=load i32**,i32***%ai,align 8
%ak=load i32*,i32**%aj,align 8
%al=getelementptr inbounds i32,i32*%ak,i64 -1
%am=load i32,i32*%al,align 4
%an=lshr i32%am,2
%ao=and i32%an,67108863
%ap=icmp slt i32%M,%ao
br i1%ap,label%aq,label%aB
aq:
%ar=bitcast i32*%ak to i8*
%as=shl i32%M,2
%at=sext i32%as to i64
%au=getelementptr inbounds i8,i8*%ar,i64%at
%av=bitcast i8*%au to i32*
store i32 0,i32*%av,align 4
%aw=load i8*,i8**%d,align 8
%ax=getelementptr inbounds i8,i8*%aw,i64 16
%ay=bitcast i8*%ax to i32*
%az=load i32,i32*%ay,align 4
%aA=icmp eq i32%M,%az
store i8*null,i8**%d,align 8
br i1%aA,label%aT,label%a4
aB:
store i8*null,i8**%d,align 8
%aC=load i8*,i8**@_SMLZ9Subscript,align 8
store i8*%aC,i8**%c,align 8
%aD=call i8*@sml_alloc(i32 inreg 20)#0
%aE=getelementptr inbounds i8,i8*%aD,i64 -4
%aF=bitcast i8*%aE to i32*
store i32 1342177296,i32*%aF,align 4
store i8*%aD,i8**%d,align 8
%aG=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aH=bitcast i8*%aD to i8**
store i8*%aG,i8**%aH,align 8
%aI=getelementptr inbounds i8,i8*%aD,i64 8
%aJ=bitcast i8*%aI to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[51x i8]}>,<{[4x i8],i32,[51x i8]}>*@m,i64 0,i32 2,i64 0),i8**%aJ,align 8
%aK=getelementptr inbounds i8,i8*%aD,i64 16
%aL=bitcast i8*%aK to i32*
store i32 3,i32*%aL,align 4
%aM=call i8*@sml_alloc(i32 inreg 60)#0
%aN=getelementptr inbounds i8,i8*%aM,i64 -4
%aO=bitcast i8*%aN to i32*
store i32 1342177336,i32*%aO,align 4
%aP=getelementptr inbounds i8,i8*%aM,i64 56
%aQ=bitcast i8*%aP to i32*
store i32 1,i32*%aQ,align 4
%aR=load i8*,i8**%d,align 8
%aS=bitcast i8*%aM to i8**
store i8*%aR,i8**%aS,align 8
call void@sml_raise(i8*inreg%aM)#1
unreachable
aT:
%aU=call i8*@sml_alloc(i32 inreg 20)#0
%aV=bitcast i8*%aU to i32*
%aW=getelementptr inbounds i8,i8*%aU,i64 -4
%aX=bitcast i8*%aW to i32*
store i32 1342177296,i32*%aX,align 4
%aY=getelementptr inbounds i8,i8*%aU,i64 4
%aZ=bitcast i8*%aY to i32*
store i32 0,i32*%aZ,align 1
store i32%M,i32*%aV,align 4
%a0=getelementptr inbounds i8,i8*%aU,i64 8
%a1=bitcast i8*%a0 to i8**
store i8*null,i8**%a1,align 8
%a2=getelementptr inbounds i8,i8*%aU,i64 16
%a3=bitcast i8*%a2 to i32*
store i32 2,i32*%a3,align 4
ret i8*%aU
a4:
%a5=call fastcc i8*@_SMLL12getComponent_90(i8*inreg%aw,i32 inreg 0)
store i8*%a5,i8**%c,align 8
%a6=call i8*@sml_alloc(i32 inreg 20)#0
%a7=bitcast i8*%a6 to i32*
%a8=getelementptr inbounds i8,i8*%a6,i64 -4
%a9=bitcast i8*%a8 to i32*
store i32 1342177296,i32*%a9,align 4
%ba=getelementptr inbounds i8,i8*%a6,i64 4
%bb=bitcast i8*%ba to i32*
store i32 0,i32*%bb,align 1
store i32%M,i32*%a7,align 4
%bc=load i8*,i8**%c,align 8
%bd=getelementptr inbounds i8,i8*%a6,i64 8
%be=bitcast i8*%bd to i8**
store i8*%bc,i8**%be,align 8
%bf=getelementptr inbounds i8,i8*%a6,i64 16
%bg=bitcast i8*%bf to i32*
store i32 2,i32*%bg,align 4
ret i8*%a6
}
define internal fastcc void@_SMLL3dfs_75(i8*inreg%a,i32 inreg%b)#2 gc"smlsharp"{
q:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
%h=alloca i8*,align 8
%i=alloca i8*,align 8
%j=alloca i8*,align 8
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**%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],[%a,%q]
%r=bitcast i8*%p to i32**
%s=load i32*,i32**%r,align 8
%t=load i32,i32*%s,align 4
%u=icmp slt i32%b,0
br i1%u,label%E,label%v
v:
%w=getelementptr inbounds i8,i8*%p,i64 8
%x=bitcast i8*%w to i32**
%y=load i32*,i32**%x,align 8
%z=getelementptr inbounds i32,i32*%y,i64 -1
%A=load i32,i32*%z,align 4
%B=lshr i32%A,2
%C=and i32%B,67108863
%D=icmp sgt i32%C,%b
br i1%D,label%W,label%E
E:
store i8*null,i8**%g,align 8
%F=load i8*,i8**@_SMLZ9Subscript,align 8
store i8*%F,i8**%e,align 8
%G=call i8*@sml_alloc(i32 inreg 20)#0
%H=getelementptr inbounds i8,i8*%G,i64 -4
%I=bitcast i8*%H to i32*
store i32 1342177296,i32*%I,align 4
store i8*%G,i8**%f,align 8
%J=load i8*,i8**%e,align 8
store i8*null,i8**%e,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 i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[50x i8]}>,<{[4x i8],i32,[50x i8]}>*@a,i64 0,i32 2,i64 0),i8**%M,align 8
%N=getelementptr inbounds i8,i8*%G,i64 16
%O=bitcast i8*%N to i32*
store i32 3,i32*%O,align 4
%P=call i8*@sml_alloc(i32 inreg 60)#0
%Q=getelementptr inbounds i8,i8*%P,i64 -4
%R=bitcast i8*%Q to i32*
store i32 1342177336,i32*%R,align 4
%S=getelementptr inbounds i8,i8*%P,i64 56
%T=bitcast i8*%S to i32*
store i32 1,i32*%T,align 4
%U=load i8*,i8**%f,align 8
%V=bitcast i8*%P to i8**
store i8*%U,i8**%V,align 8
call void@sml_raise(i8*inreg%P)#1
unreachable
W:
%X=bitcast i32*%y to i8*
%Y=shl i32%b,2
%Z=sext i32%Y to i64
%aa=getelementptr inbounds i8,i8*%X,i64%Z
%ab=bitcast i8*%aa to i32*
store i32%t,i32*%ab,align 4
%ac=load i8*,i8**%g,align 8
%ad=getelementptr inbounds i8,i8*%ac,i64 16
%ae=bitcast i8*%ad to i32**
%af=load i32*,i32**%ae,align 8
%ag=getelementptr inbounds i32,i32*%af,i64 -1
%ah=load i32,i32*%ag,align 4
%ai=lshr i32%ah,2
%aj=and i32%ai,67108863
%ak=icmp sgt i32%aj,%b
br i1%ak,label%aD,label%al
al:
store i8*null,i8**%g,align 8
%am=load i8*,i8**@_SMLZ9Subscript,align 8
store i8*%am,i8**%e,align 8
%an=call i8*@sml_alloc(i32 inreg 20)#0
%ao=getelementptr inbounds i8,i8*%an,i64 -4
%ap=bitcast i8*%ao to i32*
store i32 1342177296,i32*%ap,align 4
store i8*%an,i8**%f,align 8
%aq=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%ar=bitcast i8*%an to i8**
store i8*%aq,i8**%ar,align 8
%as=getelementptr inbounds i8,i8*%an,i64 8
%at=bitcast i8*%as to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[50x i8]}>,<{[4x i8],i32,[50x i8]}>*@b,i64 0,i32 2,i64 0),i8**%at,align 8
%au=getelementptr inbounds i8,i8*%an,i64 16
%av=bitcast i8*%au to i32*
store i32 3,i32*%av,align 4
%aw=call i8*@sml_alloc(i32 inreg 60)#0
%ax=getelementptr inbounds i8,i8*%aw,i64 -4
%ay=bitcast i8*%ax to i32*
store i32 1342177336,i32*%ay,align 4
%az=getelementptr inbounds i8,i8*%aw,i64 56
%aA=bitcast i8*%az to i32*
store i32 1,i32*%aA,align 4
%aB=load i8*,i8**%f,align 8
%aC=bitcast i8*%aw to i8**
store i8*%aB,i8**%aC,align 8
call void@sml_raise(i8*inreg%aw)#1
unreachable
aD:
%aE=bitcast i32*%af to i8*
%aF=bitcast i8*%ac to i32**
%aG=load i32*,i32**%aF,align 8
%aH=load i32,i32*%aG,align 4
%aI=getelementptr inbounds i8,i8*%aE,i64%Z
%aJ=bitcast i8*%aI to i32*
store i32%aH,i32*%aJ,align 4
%aK=bitcast i8**%g to i32***
%aL=load i32**,i32***%aK,align 8
%aM=load i32*,i32**%aL,align 8
%aN=load i32,i32*%aM,align 4
%aO=add nsw i32%aN,1
store i32%aO,i32*%aM,align 4
%aP=load i8*,i8**%g,align 8
%aQ=getelementptr inbounds i8,i8*%aP,i64 32
%aR=bitcast i8*%aQ to i8***
%aS=load i8**,i8***%aR,align 8
%aT=load i8*,i8**%aS,align 8
store i8*%aT,i8**%e,align 8
%aU=call i8*@sml_alloc(i32 inreg 20)#0
%aV=bitcast i8*%aU to i32*
%aW=getelementptr inbounds i8,i8*%aU,i64 -4
%aX=bitcast i8*%aW to i32*
store i32 1342177296,i32*%aX,align 4
%aY=getelementptr inbounds i8,i8*%aU,i64 4
%aZ=bitcast i8*%aY to i32*
store i32 0,i32*%aZ,align 1
store i32%b,i32*%aV,align 4
%a0=load i8*,i8**%e,align 8
%a1=getelementptr inbounds i8,i8*%aU,i64 8
%a2=bitcast i8*%a1 to i8**
store i8*%a0,i8**%a2,align 8
%a3=getelementptr inbounds i8,i8*%aU,i64 16
%a4=bitcast i8*%a3 to i32*
store i32 2,i32*%a4,align 4
%a5=load i8*,i8**%g,align 8
%a6=getelementptr inbounds i8,i8*%a5,i64 32
%a7=bitcast i8*%a6 to i8**
%a8=load i8*,i8**%a7,align 8
%a9=bitcast i8*%a8 to i8**
call void@sml_write(i8*inreg%a8,i8**inreg%a9,i8*inreg%aU)#0
%ba=load i8*,i8**%g,align 8
%bb=getelementptr inbounds i8,i8*%ba,i64 24
%bc=bitcast i8*%bb to i32**
%bd=load i32*,i32**%bc,align 8
%be=getelementptr inbounds i32,i32*%bd,i64 -1
%bf=load i32,i32*%be,align 4
%bg=lshr i32%bf,2
%bh=and i32%bg,67108863
%bi=icmp sgt i32%bh,%b
br i1%bi,label%bB,label%bj
bj:
store i8*null,i8**%g,align 8
%bk=load i8*,i8**@_SMLZ9Subscript,align 8
store i8*%bk,i8**%e,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
store i8*%bl,i8**%f,align 8
%bo=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%bp=bitcast i8*%bl to i8**
store i8*%bo,i8**%bp,align 8
%bq=getelementptr inbounds i8,i8*%bl,i64 8
%br=bitcast i8*%bq to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[50x i8]}>,<{[4x i8],i32,[50x i8]}>*@c,i64 0,i32 2,i64 0),i8**%br,align 8
%bs=getelementptr inbounds i8,i8*%bl,i64 16
%bt=bitcast i8*%bs to i32*
store i32 3,i32*%bt,align 4
%bu=call i8*@sml_alloc(i32 inreg 60)#0
%bv=getelementptr inbounds i8,i8*%bu,i64 -4
%bw=bitcast i8*%bv to i32*
store i32 1342177336,i32*%bw,align 4
%bx=getelementptr inbounds i8,i8*%bu,i64 56
%by=bitcast i8*%bx to i32*
store i32 1,i32*%by,align 4
%bz=load i8*,i8**%f,align 8
%bA=bitcast i8*%bu to i8**
store i8*%bz,i8**%bA,align 8
call void@sml_raise(i8*inreg%bu)#1
unreachable
bB:
%bC=bitcast i32*%bd to i8*
%bD=getelementptr inbounds i8,i8*%bC,i64%Z
%bE=bitcast i8*%bD to i32*
store i32 1,i32*%bE,align 4
%bF=load i8*,i8**%g,align 8
%bG=getelementptr inbounds i8,i8*%bF,i64 48
%bH=bitcast i8*%bG to i8**
%bI=load i8*,i8**%bH,align 8
%bJ=bitcast i8**%c to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%bJ)
%bK=bitcast i8**%d to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%bK)
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%bI,i8**%c,align 8
%bL=call i8*@sml_alloc(i32 inreg 12)#0
%bM=getelementptr inbounds i8,i8*%bL,i64 -4
%bN=bitcast i8*%bM to i32*
store i32 1342177288,i32*%bN,align 4
store i8*%bL,i8**%d,align 8
%bO=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bP=bitcast i8*%bL to i8**
store i8*%bO,i8**%bP,align 8
%bQ=getelementptr inbounds i8,i8*%bL,i64 8
%bR=bitcast i8*%bQ to i32*
store i32 1,i32*%bR,align 4
%bS=call i8*@sml_alloc(i32 inreg 28)#0
%bT=getelementptr inbounds i8,i8*%bS,i64 -4
%bU=bitcast i8*%bT to i32*
store i32 1342177304,i32*%bU,align 4
%bV=load i8*,i8**%d,align 8
%bW=bitcast i8*%bS to i8**
store i8*%bV,i8**%bW,align 8
%bX=getelementptr inbounds i8,i8*%bS,i64 8
%bY=bitcast i8*%bX to void(...)**
store void(...)*bitcast(i8*(i8*,i32)*@_SMLLN5Graph16getOutGoingNodesE_72 to void(...)*),void(...)**%bY,align 8
%bZ=getelementptr inbounds i8,i8*%bS,i64 16
%b0=bitcast i8*%bZ to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5Graph16getOutGoingNodesE_146 to void(...)*),void(...)**%b0,align 8
%b1=getelementptr inbounds i8,i8*%bS,i64 24
%b2=bitcast i8*%b1 to i32*
store i32 -2147483647,i32*%b2,align 4
call void@llvm.lifetime.end.p0i8(i64 8,i8*%bJ)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%bK)
store i8*%bV,i8**%e,align 8
%b3=call i8*@sml_alloc(i32 inreg 4)#0
%b4=bitcast i8*%b3 to i32*
%b5=getelementptr inbounds i8,i8*%b3,i64 -4
%b6=bitcast i8*%b5 to i32*
store i32 4,i32*%b6,align 4
store i32%b,i32*%b4,align 4
%b7=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%b8=call fastcc i8*@_SMLLN5Graph16getOutGoingNodesE_72(i8*inreg%b7,i32 inreg%b)
%b9=call fastcc i8*@_SMLFN4ISet9listItemsE(i8*inreg%b8)
store i8*%b9,i8**%e,align 8
%ca=load i8*,i8**%g,align 8
%cb=getelementptr inbounds i8,i8*%ca,i64 8
%cc=bitcast i8*%cb to i8**
%cd=load i8*,i8**%cc,align 8
store i8*%cd,i8**%f,align 8
%ce=getelementptr inbounds i8,i8*%ca,i64 16
%cf=bitcast i8*%ce to i8**
%cg=load i8*,i8**%cf,align 8
store i8*%cg,i8**%h,align 8
%ch=getelementptr inbounds i8,i8*%ca,i64 24
%ci=bitcast i8*%ch to i8**
%cj=load i8*,i8**%ci,align 8
store i8*%cj,i8**%i,align 8
%ck=call i8*@sml_alloc(i32 inreg 44)#0
%cl=getelementptr inbounds i8,i8*%ck,i64 -4
%cm=bitcast i8*%cl to i32*
store i32 1342177320,i32*%cm,align 4
store i8*%ck,i8**%j,align 8
%cn=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%co=bitcast i8*%ck to i8**
store i8*%cn,i8**%co,align 8
%cp=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%cq=getelementptr inbounds i8,i8*%ck,i64 8
%cr=bitcast i8*%cq to i8**
store i8*%cp,i8**%cr,align 8
%cs=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%ct=getelementptr inbounds i8,i8*%ck,i64 16
%cu=bitcast i8*%ct to i8**
store i8*%cs,i8**%cu,align 8
%cv=load i8*,i8**%g,align 8
%cw=getelementptr inbounds i8,i8*%ck,i64 24
%cx=bitcast i8*%cw to i8**
store i8*%cv,i8**%cx,align 8
%cy=getelementptr inbounds i8,i8*%ck,i64 32
%cz=bitcast i8*%cy to i32*
store i32%b,i32*%cz,align 4
%cA=getelementptr inbounds i8,i8*%ck,i64 40
%cB=bitcast i8*%cA to i32*
store i32 15,i32*%cB,align 4
%cC=call i8*@sml_alloc(i32 inreg 28)#0
%cD=getelementptr inbounds i8,i8*%cC,i64 -4
%cE=bitcast i8*%cD to i32*
store i32 1342177304,i32*%cE,align 4
store i8*%cC,i8**%i,align 8
%cF=load i8*,i8**%j,align 8
store i8*null,i8**%j,align 8
%cG=bitcast i8*%cC to i8**
store i8*%cF,i8**%cG,align 8
%cH=getelementptr inbounds i8,i8*%cC,i64 8
%cI=bitcast i8*%cH to void(...)**
store void(...)*bitcast(void(i8*,i32)*@_SMLL1f_89 to void(...)*),void(...)**%cI,align 8
%cJ=getelementptr inbounds i8,i8*%cC,i64 16
%cK=bitcast i8*%cJ to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL1f_148 to void(...)*),void(...)**%cK,align 8
%cL=getelementptr inbounds i8,i8*%cC,i64 24
%cM=bitcast i8*%cL to i32*
store i32 -2147483647,i32*%cM,align 4
%cN=load i8*,i8**%g,align 8
%cO=getelementptr inbounds i8,i8*%cN,i64 24
%cP=bitcast i8*%cO to i8**
%cQ=load i8*,i8**%cP,align 8
store i8*%cQ,i8**%f,align 8
%cR=getelementptr inbounds i8,i8*%cN,i64 32
%cS=bitcast i8*%cR to i8**
%cT=load i8*,i8**%cS,align 8
store i8*%cT,i8**%h,align 8
%cU=call i8*@sml_alloc(i32 inreg 28)#0
%cV=getelementptr inbounds i8,i8*%cU,i64 -4
%cW=bitcast i8*%cV to i32*
store i32 1342177304,i32*%cW,align 4
store i8*%cU,i8**%j,align 8
%cX=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%cY=bitcast i8*%cU to i8**
store i8*%cX,i8**%cY,align 8
%cZ=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%c0=getelementptr inbounds i8,i8*%cU,i64 8
%c1=bitcast i8*%c0 to i8**
store i8*%cZ,i8**%c1,align 8
%c2=getelementptr inbounds i8,i8*%cU,i64 16
%c3=bitcast i8*%c2 to i32*
store i32%b,i32*%c3,align 4
%c4=getelementptr inbounds i8,i8*%cU,i64 24
%c5=bitcast i8*%c4 to i32*
store i32 3,i32*%c5,align 4
%c6=call i8*@sml_alloc(i32 inreg 28)#0
%c7=getelementptr inbounds i8,i8*%c6,i64 -4
%c8=bitcast i8*%c7 to i32*
store i32 1342177304,i32*%c8,align 4
%c9=load i8*,i8**%j,align 8
%da=bitcast i8*%c6 to i8**
store i8*%c9,i8**%da,align 8
%db=getelementptr inbounds i8,i8*%c6,i64 8
%dc=bitcast i8*%db to void(...)**
store void(...)*bitcast(i8*(i8*,i32)*@_SMLL12getComponent_90 to void(...)*),void(...)**%dc,align 8
%dd=getelementptr inbounds i8,i8*%c6,i64 16
%de=bitcast i8*%dd to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL12getComponent_149 to void(...)*),void(...)**%de,align 8
%df=getelementptr inbounds i8,i8*%c6,i64 24
%dg=bitcast i8*%df to i32*
store i32 -2147483647,i32*%dg,align 4
%dh=call fastcc i8*@_SMLFN4List3appE(i32 inreg 0,i32 inreg 4)
%di=getelementptr inbounds i8,i8*%dh,i64 16
%dj=bitcast i8*%di to i8*(i8*,i8*)**
%dk=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%dj,align 8
%dl=bitcast i8*%dh to i8**
%dm=load i8*,i8**%dl,align 8
%dn=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%do=call fastcc i8*%dk(i8*inreg%dm,i8*inreg%dn)
%dp=getelementptr inbounds i8,i8*%do,i64 16
%dq=bitcast i8*%dp to i8*(i8*,i8*)**
%dr=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%dq,align 8
%ds=bitcast i8*%do to i8**
%dt=load i8*,i8**%ds,align 8
%du=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%dv=call fastcc i8*%dr(i8*inreg%dt,i8*inreg%du)
%dw=load i8*,i8**%g,align 8
%dx=getelementptr inbounds i8,i8*%dw,i64 16
%dy=bitcast i8*%dx to i32**
%dz=load i32*,i32**%dy,align 8
%dA=getelementptr inbounds i32,i32*%dz,i64 -1
%dB=load i32,i32*%dA,align 4
%dC=lshr i32%dB,2
%dD=and i32%dC,67108863
%dE=icmp sgt i32%dD,%b
%dF=bitcast i32*%dz to i8*
br i1%dE,label%dY,label%dG
dG:
store i8*null,i8**%g,align 8
store i8*null,i8**%j,align 8
%dH=load i8*,i8**@_SMLZ9Subscript,align 8
store i8*%dH,i8**%e,align 8
%dI=call i8*@sml_alloc(i32 inreg 20)#0
%dJ=getelementptr inbounds i8,i8*%dI,i64 -4
%dK=bitcast i8*%dJ to i32*
store i32 1342177296,i32*%dK,align 4
store i8*%dI,i8**%f,align 8
%dL=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%dM=bitcast i8*%dI to i8**
store i8*%dL,i8**%dM,align 8
%dN=getelementptr inbounds i8,i8*%dI,i64 8
%dO=bitcast i8*%dN to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[51x i8]}>,<{[4x i8],i32,[51x i8]}>*@n,i64 0,i32 2,i64 0),i8**%dO,align 8
%dP=getelementptr inbounds i8,i8*%dI,i64 16
%dQ=bitcast i8*%dP to i32*
store i32 3,i32*%dQ,align 4
%dR=call i8*@sml_alloc(i32 inreg 60)#0
%dS=getelementptr inbounds i8,i8*%dR,i64 -4
%dT=bitcast i8*%dS to i32*
store i32 1342177336,i32*%dT,align 4
%dU=getelementptr inbounds i8,i8*%dR,i64 56
%dV=bitcast i8*%dU to i32*
store i32 1,i32*%dV,align 4
%dW=load i8*,i8**%f,align 8
%dX=bitcast i8*%dR to i8**
store i8*%dW,i8**%dX,align 8
call void@sml_raise(i8*inreg%dR)#1
unreachable
dY:
%dZ=getelementptr inbounds i8,i8*%dw,i64 8
%d0=bitcast i8*%dZ to i32**
%d1=load i32*,i32**%d0,align 8
%d2=getelementptr inbounds i32,i32*%d1,i64 -1
%d3=load i32,i32*%d2,align 4
%d4=lshr i32%d3,2
%d5=and i32%d4,67108863
%d6=icmp sgt i32%d5,%b
br i1%d6,label%d7,label%eg
d7:
%d8=bitcast i32*%d1 to i8*
%d9=getelementptr inbounds i8,i8*%dF,i64%Z
%ea=bitcast i8*%d9 to i32*
%eb=load i32,i32*%ea,align 4
%ec=getelementptr inbounds i8,i8*%d8,i64%Z
%ed=bitcast i8*%ec to i32*
%ee=load i32,i32*%ed,align 4
%ef=icmp eq i32%eb,%ee
br i1%ef,label%ey,label%eV
eg:
store i8*null,i8**%g,align 8
store i8*null,i8**%j,align 8
%eh=load i8*,i8**@_SMLZ9Subscript,align 8
store i8*%eh,i8**%e,align 8
%ei=call i8*@sml_alloc(i32 inreg 20)#0
%ej=getelementptr inbounds i8,i8*%ei,i64 -4
%ek=bitcast i8*%ej to i32*
store i32 1342177296,i32*%ek,align 4
store i8*%ei,i8**%f,align 8
%el=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%em=bitcast i8*%ei to i8**
store i8*%el,i8**%em,align 8
%en=getelementptr inbounds i8,i8*%ei,i64 8
%eo=bitcast i8*%en to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[51x i8]}>,<{[4x i8],i32,[51x i8]}>*@o,i64 0,i32 2,i64 0),i8**%eo,align 8
%ep=getelementptr inbounds i8,i8*%ei,i64 16
%eq=bitcast i8*%ep to i32*
store i32 3,i32*%eq,align 4
%er=call i8*@sml_alloc(i32 inreg 60)#0
%es=getelementptr inbounds i8,i8*%er,i64 -4
%et=bitcast i8*%es to i32*
store i32 1342177336,i32*%et,align 4
%eu=getelementptr inbounds i8,i8*%er,i64 56
%ev=bitcast i8*%eu to i32*
store i32 1,i32*%ev,align 4
%ew=load i8*,i8**%f,align 8
%ex=bitcast i8*%er to i8**
store i8*%ew,i8**%ex,align 8
call void@sml_raise(i8*inreg%er)#1
unreachable
ey:
%ez=load i8*,i8**%j,align 8
store i8*null,i8**%j,align 8
%eA=call fastcc i8*@_SMLL12getComponent_90(i8*inreg%ez,i32 inreg 0)
store i8*%eA,i8**%e,align 8
%eB=load i8*,i8**%g,align 8
%eC=getelementptr inbounds i8,i8*%eB,i64 40
%eD=bitcast i8*%eC to i8***
%eE=load i8**,i8***%eD,align 8
%eF=load i8*,i8**%eE,align 8
store i8*%eF,i8**%f,align 8
%eG=call i8*@sml_alloc(i32 inreg 20)#0
%eH=getelementptr inbounds i8,i8*%eG,i64 -4
%eI=bitcast i8*%eH to i32*
store i32 1342177296,i32*%eI,align 4
%eJ=load i8*,i8**%e,align 8
%eK=bitcast i8*%eG to i8**
store i8*%eJ,i8**%eK,align 8
%eL=load i8*,i8**%f,align 8
%eM=getelementptr inbounds i8,i8*%eG,i64 8
%eN=bitcast i8*%eM to i8**
store i8*%eL,i8**%eN,align 8
%eO=getelementptr inbounds i8,i8*%eG,i64 16
%eP=bitcast i8*%eO to i32*
store i32 3,i32*%eP,align 4
%eQ=load i8*,i8**%g,align 8
%eR=getelementptr inbounds i8,i8*%eQ,i64 40
%eS=bitcast i8*%eR to i8**
%eT=load i8*,i8**%eS,align 8
%eU=bitcast i8*%eT to i8**
call void@sml_write(i8*inreg%eT,i8**inreg%eU,i8*inreg%eG)#0
ret void
eV:
ret void
}
define internal fastcc void@_SMLL6dfsAll_96(i8*inreg%a,i8*inreg%b)#2 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 i32***
br label%f
f:
%g=phi i8*[%al,%ah],[%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=icmp eq i8*%n,null
br i1%o,label%p,label%q
p:
ret void
q:
%r=bitcast i8*%n to i32*
%s=load i32,i32*%r,align 4
%t=icmp slt i32%s,0
br i1%t,label%K,label%u
u:
%v=load i32**,i32***%e,align 8
%w=load i32*,i32**%v,align 8
%x=getelementptr inbounds i32,i32*%w,i64 -1
%y=load i32,i32*%x,align 4
%z=lshr i32%y,2
%A=and i32%z,67108863
%B=icmp slt i32%s,%A
br i1%B,label%C,label%K
C:
%D=bitcast i32*%w to i8*
%E=shl i32%s,2
%F=sext i32%E to i64
%G=getelementptr inbounds i8,i8*%D,i64%F
%H=bitcast i8*%G to i32*
%I=load i32,i32*%H,align 4
%J=icmp eq i32%I,-1
br i1%J,label%ac,label%ah
K:
store i8*null,i8**%d,align 8
%L=load i8*,i8**@_SMLZ9Subscript,align 8
store i8*%L,i8**%c,align 8
%M=call i8*@sml_alloc(i32 inreg 20)#0
%N=getelementptr inbounds i8,i8*%M,i64 -4
%O=bitcast i8*%N to i32*
store i32 1342177296,i32*%O,align 4
store i8*%M,i8**%d,align 8
%P=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%Q=bitcast i8*%M to i8**
store i8*%P,i8**%Q,align 8
%R=getelementptr inbounds i8,i8*%M,i64 8
%S=bitcast i8*%R to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[51x i8]}>,<{[4x i8],i32,[51x i8]}>*@p,i64 0,i32 2,i64 0),i8**%S,align 8
%T=getelementptr inbounds i8,i8*%M,i64 16
%U=bitcast i8*%T to i32*
store i32 3,i32*%U,align 4
%V=call i8*@sml_alloc(i32 inreg 60)#0
%W=getelementptr inbounds i8,i8*%V,i64 -4
%X=bitcast i8*%W to i32*
store i32 1342177336,i32*%X,align 4
%Y=getelementptr inbounds i8,i8*%V,i64 56
%Z=bitcast i8*%Y to i32*
store i32 1,i32*%Z,align 4
%aa=load i8*,i8**%d,align 8
%ab=bitcast i8*%V to i8**
store i8*%aa,i8**%ab,align 8
call void@sml_raise(i8*inreg%V)#1
unreachable
ac:
%ad=getelementptr inbounds i32*,i32**%v,i64 1
%ae=bitcast i32**%ad to i8**
%af=load i8*,i8**%ae,align 8
call fastcc void@_SMLL3dfs_75(i8*inreg%af,i32 inreg%s)
%ag=load i8*,i8**%c,align 8
br label%ah
ah:
%ai=phi i8*[%ag,%ac],[%n,%C]
store i8*null,i8**%c,align 8
%aj=getelementptr inbounds i8,i8*%ai,i64 8
%ak=bitcast i8*%aj to i8**
%al=load i8*,i8**%ak,align 8
br label%f
}
define internal fastcc i8*@_SMLLN5Graph3sccE_98(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
r:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
%h=alloca i8*,align 8
%i=alloca i8*,align 8
%j=alloca i8*,align 8
%k=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
call void@llvm.gcroot(i8**%h,i8*null)#0
call void@llvm.gcroot(i8**%i,i8*null)#0
call void@llvm.gcroot(i8**%j,i8*null)#0
call void@llvm.gcroot(i8**%k,i8*null)#0
store i8*%a,i8**%g,align 8
store i8*%b,i8**%c,align 8
%l=load atomic i32,i32*@sml_check_flag unordered,align 4
%m=icmp eq i32%l,0
br i1%m,label%p,label%n
n:
call void@sml_check(i32 inreg%l)
%o=load i8*,i8**%c,align 8
br label%p
p:
%q=phi i8*[%o,%n],[%b,%r]
store i8*null,i8**%c,align 8
store i8*%q,i8**%f,align 8
%s=getelementptr inbounds i8,i8*%q,i64 8
%t=bitcast i8*%s to i32*
%u=load i32,i32*%t,align 4
%v=call i8*@sml_alloc(i32 inreg 4)#0
%w=bitcast i8*%v to i32*
%x=getelementptr inbounds i8,i8*%v,i64 -4
%y=bitcast i8*%x to i32*
store i32 536870916,i32*%y,align 4
store i8*%v,i8**%h,align 8
store i32 1,i32*%w,align 4
%z=add nsw i32%u,1
%A=call fastcc i8*@_SMLFN5Array5arrayE(i32 inreg 0,i32 inreg 4)
%B=getelementptr inbounds i8,i8*%A,i64 16
%C=bitcast i8*%B to i8*(i8*,i8*)**
%D=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%C,align 8
%E=bitcast i8*%A to i8**
%F=load i8*,i8**%E,align 8
store i8*%F,i8**%c,align 8
%G=call i8*@sml_alloc(i32 inreg 12)#0
%H=bitcast i8*%G to i32*
%I=getelementptr inbounds i8,i8*%G,i64 -4
%J=bitcast i8*%I to i32*
store i32 1342177288,i32*%J,align 4
store i32%z,i32*%H,align 4
%K=getelementptr inbounds i8,i8*%G,i64 4
%L=bitcast i8*%K to i32*
store i32 -1,i32*%L,align 4
%M=getelementptr inbounds i8,i8*%G,i64 8
%N=bitcast i8*%M to i32*
store i32 0,i32*%N,align 4
%O=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%P=call fastcc i8*%D(i8*inreg%O,i8*inreg%G)
store i8*%P,i8**%c,align 8
%Q=call fastcc i8*@_SMLFN5Array5arrayE(i32 inreg 0,i32 inreg 4)
%R=getelementptr inbounds i8,i8*%Q,i64 16
%S=bitcast i8*%R to i8*(i8*,i8*)**
%T=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%S,align 8
%U=bitcast i8*%Q to i8**
%V=load i8*,i8**%U,align 8
store i8*%V,i8**%d,align 8
%W=call i8*@sml_alloc(i32 inreg 12)#0
%X=bitcast i8*%W to i32*
%Y=getelementptr inbounds i8,i8*%W,i64 -4
%Z=bitcast i8*%Y to i32*
store i32 1342177288,i32*%Z,align 4
store i32%z,i32*%X,align 4
%aa=getelementptr inbounds i8,i8*%W,i64 4
%ab=bitcast i8*%aa to i32*
store i32 0,i32*%ab,align 4
%ac=getelementptr inbounds i8,i8*%W,i64 8
%ad=bitcast i8*%ac to i32*
store i32 0,i32*%ad,align 4
%ae=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%af=call fastcc i8*%T(i8*inreg%ae,i8*inreg%W)
store i8*%af,i8**%d,align 8
%ag=call fastcc i8*@_SMLFN5Array5arrayE(i32 inreg 0,i32 inreg 4)
%ah=getelementptr inbounds i8,i8*%ag,i64 16
%ai=bitcast i8*%ah to i8*(i8*,i8*)**
%aj=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%ai,align 8
%ak=bitcast i8*%ag to i8**
%al=load i8*,i8**%ak,align 8
store i8*%al,i8**%e,align 8
%am=call i8*@sml_alloc(i32 inreg 12)#0
%an=bitcast i8*%am to i32*
%ao=getelementptr inbounds i8,i8*%am,i64 -4
%ap=bitcast i8*%ao to i32*
store i32 1342177288,i32*%ap,align 4
store i32%z,i32*%an,align 4
%aq=getelementptr inbounds i8,i8*%am,i64 4
%ar=bitcast i8*%aq to i32*
store i32 0,i32*%ar,align 4
%as=getelementptr inbounds i8,i8*%am,i64 8
%at=bitcast i8*%as to i32*
store i32 0,i32*%at,align 4
%au=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%av=call fastcc i8*%aj(i8*inreg%au,i8*inreg%am)
store i8*%av,i8**%e,align 8
%aw=call i8*@sml_alloc(i32 inreg 8)#0
%ax=getelementptr inbounds i8,i8*%aw,i64 -4
%ay=bitcast i8*%ax to i32*
store i32 805306376,i32*%ay,align 4
store i8*%aw,i8**%i,align 8
%az=bitcast i8*%aw to i64*
store i64 0,i64*%az,align 1
%aA=bitcast i8*%aw to i8**
call void@sml_write(i8*inreg%aw,i8**inreg%aA,i8*inreg null)#0
%aB=call i8*@sml_alloc(i32 inreg 8)#0
%aC=getelementptr inbounds i8,i8*%aB,i64 -4
%aD=bitcast i8*%aC to i32*
store i32 805306376,i32*%aD,align 4
store i8*%aB,i8**%j,align 8
%aE=bitcast i8*%aB to i64*
store i64 0,i64*%aE,align 1
%aF=bitcast i8*%aB to i8**
call void@sml_write(i8*inreg%aB,i8**inreg%aF,i8*inreg null)#0
%aG=call i8*@sml_alloc(i32 inreg 60)#0
%aH=getelementptr inbounds i8,i8*%aG,i64 -4
%aI=bitcast i8*%aH to i32*
store i32 1342177336,i32*%aI,align 4
store i8*%aG,i8**%k,align 8
%aJ=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%aK=bitcast i8*%aG to i8**
store i8*%aJ,i8**%aK,align 8
%aL=load i8*,i8**%c,align 8
%aM=getelementptr inbounds i8,i8*%aG,i64 8
%aN=bitcast i8*%aM to i8**
store i8*%aL,i8**%aN,align 8
%aO=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aP=getelementptr inbounds i8,i8*%aG,i64 16
%aQ=bitcast i8*%aP to i8**
store i8*%aO,i8**%aQ,align 8
%aR=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%aS=getelementptr inbounds i8,i8*%aG,i64 24
%aT=bitcast i8*%aS to i8**
store i8*%aR,i8**%aT,align 8
%aU=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%aV=getelementptr inbounds i8,i8*%aG,i64 32
%aW=bitcast i8*%aV to i8**
store i8*%aU,i8**%aW,align 8
%aX=load i8*,i8**%j,align 8
%aY=getelementptr inbounds i8,i8*%aG,i64 40
%aZ=bitcast i8*%aY to i8**
store i8*%aX,i8**%aZ,align 8
%a0=load i8*,i8**%f,align 8
%a1=getelementptr inbounds i8,i8*%aG,i64 48
%a2=bitcast i8*%a1 to i8**
store i8*%a0,i8**%a2,align 8
%a3=getelementptr inbounds i8,i8*%aG,i64 56
%a4=bitcast i8*%a3 to i32*
store i32 127,i32*%a4,align 4
%a5=call i8*@sml_alloc(i32 inreg 28)#0
%a6=getelementptr inbounds i8,i8*%a5,i64 -4
%a7=bitcast i8*%a6 to i32*
store i32 1342177304,i32*%a7,align 4
%a8=load i8*,i8**%k,align 8
%a9=bitcast i8*%a5 to i8**
store i8*%a8,i8**%a9,align 8
%ba=getelementptr inbounds i8,i8*%a5,i64 8
%bb=bitcast i8*%ba to void(...)**
store void(...)*bitcast(void(i8*,i32)*@_SMLL3dfs_75 to void(...)*),void(...)**%bb,align 8
%bc=getelementptr inbounds i8,i8*%a5,i64 16
%bd=bitcast i8*%bc to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL3dfs_150 to void(...)*),void(...)**%bd,align 8
%be=getelementptr inbounds i8,i8*%a5,i64 24
%bf=bitcast i8*%be to i32*
store i32 -2147483647,i32*%bf,align 4
%bg=call i8*@sml_alloc(i32 inreg 20)#0
%bh=getelementptr inbounds i8,i8*%bg,i64 -4
%bi=bitcast i8*%bh to i32*
store i32 1342177296,i32*%bi,align 4
store i8*%bg,i8**%d,align 8
%bj=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bk=bitcast i8*%bg to i8**
store i8*%bj,i8**%bk,align 8
%bl=load i8*,i8**%k,align 8
store i8*null,i8**%k,align 8
%bm=getelementptr inbounds i8,i8*%bg,i64 8
%bn=bitcast i8*%bm to i8**
store i8*%bl,i8**%bn,align 8
%bo=getelementptr inbounds i8,i8*%bg,i64 16
%bp=bitcast i8*%bo to i32*
store i32 3,i32*%bp,align 4
%bq=call i8*@sml_alloc(i32 inreg 28)#0
%br=getelementptr inbounds i8,i8*%bq,i64 -4
%bs=bitcast i8*%br to i32*
store i32 1342177304,i32*%bs,align 4
%bt=load i8*,i8**%d,align 8
%bu=bitcast i8*%bq to i8**
store i8*%bt,i8**%bu,align 8
%bv=getelementptr inbounds i8,i8*%bq,i64 8
%bw=bitcast i8*%bv to void(...)**
store void(...)*bitcast(void(i8*,i8*)*@_SMLL6dfsAll_96 to void(...)*),void(...)**%bw,align 8
%bx=getelementptr inbounds i8,i8*%bq,i64 16
%by=bitcast i8*%bx to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL6dfsAll_151 to void(...)*),void(...)**%by,align 8
%bz=getelementptr inbounds i8,i8*%bq,i64 24
%bA=bitcast i8*%bz to i32*
store i32 -2147483647,i32*%bA,align 4
%bB=load i8*,i8**%g,align 8
%bC=bitcast i8*%bB to i32*
%bD=load i32,i32*%bC,align 4
%bE=getelementptr inbounds i8,i8*%bB,i64 4
%bF=bitcast i8*%bE to i32*
%bG=load i32,i32*%bF,align 4
%bH=call fastcc i8*@_SMLFN8ListPair5unzipE(i32 inreg 0,i32 inreg 4,i32 inreg%bD,i32 inreg%bG)
%bI=getelementptr inbounds i8,i8*%bH,i64 16
%bJ=bitcast i8*%bI to i8*(i8*,i8*)**
%bK=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bJ,align 8
%bL=bitcast i8*%bH to i8**
%bM=load i8*,i8**%bL,align 8
store i8*%bM,i8**%c,align 8
%bN=load i8*,i8**%g,align 8
%bO=bitcast i8*%bN to i32*
%bP=load i32,i32*%bO,align 4
store i8*null,i8**%g,align 8
%bQ=getelementptr inbounds i8,i8*%bN,i64 4
%bR=bitcast i8*%bQ to i32*
%bS=load i32,i32*%bR,align 4
%bT=call fastcc i8*@_SMLFN4IEnv10listItemsiE(i32 inreg%bP,i32 inreg%bS)
%bU=getelementptr inbounds i8,i8*%bT,i64 16
%bV=bitcast i8*%bU to i8*(i8*,i8*)**
%bW=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bV,align 8
%bX=bitcast i8*%bT to i8**
%bY=load i8*,i8**%bX,align 8
%bZ=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%b0=getelementptr inbounds i8,i8*%bZ,i64 16
%b1=bitcast i8*%b0 to i8**
%b2=load i8*,i8**%b1,align 8
%b3=call fastcc i8*%bW(i8*inreg%bY,i8*inreg%b2)
%b4=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%b5=call fastcc i8*%bK(i8*inreg%b4,i8*inreg%b3)
%b6=bitcast i8*%b5 to i8**
%b7=load i8*,i8**%b6,align 8
%b8=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
call fastcc void@_SMLL6dfsAll_96(i8*inreg%b8,i8*inreg%b7)
%b9=bitcast i8**%j to i8***
%ca=load i8**,i8***%b9,align 8
%cb=load i8*,i8**%ca,align 8
ret i8*%cb
}
define internal fastcc void@_SMLLN5Graph10printNodesE_103(i32 inreg%a)#2 gc"smlsharp"{
%b=load atomic i32,i32*@sml_check_flag unordered,align 4
%c=icmp eq i32%b,0
br i1%c,label%e,label%d
d:
tail call void@sml_check(i32 inreg%b)
br label%e
e:
%f=tail call fastcc i8*@_SMLFN5Int328toStringE(i32 inreg%a)
tail call fastcc void@_SMLFN6TextIO5printE(i8*inreg%f)
tail call fastcc void@_SMLFN6TextIO5printE(i8*inreg getelementptr inbounds(<{[4x i8],i32,[2x i8]}>,<{[4x i8],i32,[2x i8]}>*@r,i64 0,i32 2,i64 0))
ret void
}
define fastcc void@_SMLFN5Graph10printNodesE(i8*inreg%a)#2 gc"smlsharp"{
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%f,label%e
e:
call void@sml_check(i32 inreg%c)
br label%f
f:
call fastcc void@_SMLFN6TextIO5printE(i8*inreg getelementptr inbounds(<{[4x i8],i32,[2x i8]}>,<{[4x i8],i32,[2x i8]}>*@q,i64 0,i32 2,i64 0))
%g=call fastcc i8*@_SMLFN4List3appE(i32 inreg 0,i32 inreg 4)
%h=getelementptr inbounds i8,i8*%g,i64 16
%i=bitcast i8*%h to i8*(i8*,i8*)**
%j=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%i,align 8
%k=bitcast i8*%g to i8**
%l=load i8*,i8**%k,align 8
%m=call fastcc i8*%j(i8*inreg%l,i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@s,i64 0,i32 2)to i8*))
%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**%b,align 8
store i8*null,i8**%b,align 8
%t=call fastcc i8*%p(i8*inreg%r,i8*inreg%s)
tail call fastcc void@_SMLFN6TextIO5printE(i8*inreg getelementptr inbounds(<{[4x i8],i32,[3x i8]}>,<{[4x i8],i32,[3x i8]}>*@t,i64 0,i32 2,i64 0))
ret void
}
define internal fastcc i8*@_SMLLN5Graph7addEdgeE_108(i8*inreg%a)unnamed_addr#2 gc"smlsharp"{
k:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%d,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%i,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%d,align 8
br label%i
i:
%j=phi i8*[%h,%g],[%a,%k]
store i8*null,i8**%d,align 8
%l=bitcast i8**%b to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%l)
%m=bitcast i8**%c to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%m)
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%j,i8**%b,align 8
%n=call i8*@sml_alloc(i32 inreg 12)#0
%o=getelementptr inbounds i8,i8*%n,i64 -4
%p=bitcast i8*%o to i32*
store i32 1342177288,i32*%p,align 4
store i8*%n,i8**%c,align 8
%q=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%r=bitcast i8*%n to i8**
store i8*%q,i8**%r,align 8
%s=getelementptr inbounds i8,i8*%n,i64 8
%t=bitcast i8*%s to 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**%c,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*)*@_SMLLN5Graph7addEdgeE_69 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*)*@_SMLLN5Graph7addEdgeE_69 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
call void@llvm.lifetime.end.p0i8(i64 8,i8*%l)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%m)
ret i8*%u
}
define internal fastcc i8*@_SMLLN5Graph7addNodeE_112(i8*inreg%a,i8*inreg%b)#2 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*)*@_SMLLN5Graph7addNodeE_66 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*)*@_SMLLN5Graph7addNodeE_66 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*@_SMLLN5Graph7addNodeE_66(i8*inreg%D,i8*inreg%L)
ret i8*%M
}
define internal fastcc i8*@_SMLLN5Graph11getNodeInfoE_117(i8*inreg%a,i32 inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%d,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%g,label%i
g:
%h=bitcast i8*%a to i8**
br label%m
i:
call void@sml_check(i32 inreg%e)
%j=bitcast i8**%d 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
%q=getelementptr inbounds i8,i8*%p,i64 16
%r=bitcast i8*%q to i8**
%s=load i8*,i8**%r,align 8
store i8*%s,i8**%c,align 8
%t=getelementptr inbounds i8*,i8**%o,i64 1
%u=bitcast i8**%t to i32*
%v=load i32,i32*%u,align 4
store i8*null,i8**%d,align 8
%w=getelementptr inbounds i8,i8*%n,i64 12
%x=bitcast i8*%w to i32*
%y=load i32,i32*%x,align 4
%z=call fastcc i8*@_SMLFN4IEnv4findE(i32 inreg%v,i32 inreg%y)
%A=getelementptr inbounds i8,i8*%z,i64 16
%B=bitcast i8*%A to i8*(i8*,i8*)**
%C=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%B,align 8
%D=bitcast i8*%z to i8**
%E=load i8*,i8**%D,align 8
store i8*%E,i8**%d,align 8
%F=call i8*@sml_alloc(i32 inreg 20)#0
%G=getelementptr inbounds i8,i8*%F,i64 -4
%H=bitcast i8*%G to i32*
store i32 1342177296,i32*%H,align 4
%I=getelementptr inbounds i8,i8*%F,i64 12
%J=bitcast i8*%I to i32*
store i32 0,i32*%J,align 1
%K=load i8*,i8**%c,align 8
%L=bitcast i8*%F to i8**
store i8*%K,i8**%L,align 8
%M=getelementptr inbounds i8,i8*%F,i64 8
%N=bitcast i8*%M to i32*
store i32%b,i32*%N,align 4
%O=getelementptr inbounds i8,i8*%F,i64 16
%P=bitcast i8*%O to i32*
store i32 1,i32*%P,align 4
%Q=load i8*,i8**%d,align 8
%R=tail call fastcc i8*%C(i8*inreg%Q,i8*inreg%F)
ret i8*%R
}
define internal fastcc i8*@_SMLLN5Graph11getNodeInfoE_118(i8*inreg%a,i8*inreg%b)#4 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*,i32)*@_SMLLN5Graph11getNodeInfoE_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*)*@_SMLLN5Graph11getNodeInfoE_159 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*@_SMLLN5Graph9listNodesE_121(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
k:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%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**%d,align 8
br label%i
i:
%j=phi i8*[%h,%g],[%a,%k]
%l=bitcast i8*%j to i32*
%m=load i32,i32*%l,align 4
store i8*null,i8**%d,align 8
%n=getelementptr inbounds i8,i8*%j,i64 4
%o=bitcast i8*%n to i32*
%p=load i32,i32*%o,align 4
%q=call fastcc i8*@_SMLFN4IEnv10listItemsiE(i32 inreg%m,i32 inreg%p)
%r=getelementptr inbounds i8,i8*%q,i64 16
%s=bitcast i8*%r to i8*(i8*,i8*)**
%t=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%s,align 8
%u=bitcast i8*%q to i8**
%v=load i8*,i8**%u,align 8
%w=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%x=getelementptr inbounds i8,i8*%w,i64 16
%y=bitcast i8*%x to i8**
%z=load i8*,i8**%y,align 8
%A=call fastcc i8*%t(i8*inreg%v,i8*inreg%z)
ret i8*%A
}
define internal fastcc i8*@_SMLLN5Graph3sccE_124(i8*inreg%a,i8*inreg%b)#2 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*)*@_SMLLN5Graph3sccE_98 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*)*@_SMLLN5Graph3sccE_98 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*@_SMLLN5Graph3sccE_98(i8*inreg%D,i8*inreg%L)
ret i8*%M
}
define fastcc i8*@_SMLFN5Graph5emptyE(i32 inreg%a,i32 inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%i,label%h
h:
tail call void@sml_check(i32 inreg%f)
br label%i
i:
%j=bitcast i8**%c to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%j)
%k=bitcast i8**%d to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%k)
%l=bitcast i8**%e to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%l)
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
%m=load atomic i32,i32*@sml_check_flag unordered,align 4
%n=icmp eq i32%m,0
br i1%n,label%p,label%o
o:
call void@sml_check(i32 inreg%m)
br label%p
p:
%q=call fastcc i8*@_SMLFN4IEnv5emptyE(i32 inreg 1,i32 inreg 8)
store i8*%q,i8**%c,align 8
%r=call fastcc i8*@_SMLFN4IEnv5emptyE(i32 inreg%a,i32 inreg%b)
store i8*%r,i8**%d,align 8
%s=call fastcc i8*@_SMLFN4IEnv5emptyE(i32 inreg 1,i32 inreg 8)
store i8*%s,i8**%e,align 8
%t=call i8*@sml_alloc(i32 inreg 36)#0
%u=getelementptr inbounds i8,i8*%t,i64 -4
%v=bitcast i8*%u to i32*
store i32 1342177312,i32*%v,align 4
%w=getelementptr inbounds i8,i8*%t,i64 12
%x=bitcast i8*%w to i32*
store i32 0,i32*%x,align 1
%y=load i8*,i8**%c,align 8
%z=bitcast i8*%t to i8**
store i8*%y,i8**%z,align 8
%A=getelementptr inbounds i8,i8*%t,i64 8
%B=bitcast i8*%A to i32*
store i32 0,i32*%B,align 4
%C=load i8*,i8**%d,align 8
%D=getelementptr inbounds i8,i8*%t,i64 16
%E=bitcast i8*%D to i8**
store i8*%C,i8**%E,align 8
%F=load i8*,i8**%e,align 8
%G=getelementptr inbounds i8,i8*%t,i64 24
%H=bitcast i8*%G to i8**
store i8*%F,i8**%H,align 8
%I=getelementptr inbounds i8,i8*%t,i64 32
%J=bitcast i8*%I to i32*
store i32 13,i32*%J,align 4
call void@llvm.lifetime.end.p0i8(i64 8,i8*%j)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%k)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%l)
ret i8*%t
}
define internal fastcc i8*@_SMLLN5Graph7addNodeE_129(i8*inreg%a,i8*inreg%b)#2 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*)*@_SMLLN5Graph7addNodeE_112 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*)*@_SMLLN5Graph7addNodeE_112 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*@_SMLLN5Graph7addNodeE_112(i8*inreg%D,i8*inreg%L)
ret i8*%M
}
define fastcc i8*@_SMLFN5Graph7addNodeE(i32 inreg%a,i32 inreg%b)#4 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*)*@_SMLLN5Graph7addNodeE_129 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*)*@_SMLLN5Graph7addNodeE_129 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*@_SMLLN5Graph7addEdgeE_132(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
k:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%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**%d,align 8
store i8*null,i8**%c,align 8
%l=call fastcc i8*@_SMLLN5Graph7addEdgeE_108(i8*inreg%j)
ret i8*%l
}
define fastcc i8*@_SMLFN5Graph7addEdgeE(i32 inreg%a,i32 inreg%b)#4 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*)*@_SMLLN5Graph7addEdgeE_132 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*)*@_SMLLN5Graph7addEdgeE_132 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*@_SMLLN5Graph9listNodesE_135(i8*inreg%a,i8*inreg%b)#2 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*)*@_SMLLN5Graph9listNodesE_121 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*)*@_SMLLN5Graph9listNodesE_121 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*@_SMLLN5Graph9listNodesE_121(i8*inreg%D,i8*inreg%L)
ret i8*%M
}
define fastcc i8*@_SMLFN5Graph9listNodesE(i32 inreg%a,i32 inreg%b)#4 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*)*@_SMLLN5Graph9listNodesE_135 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*)*@_SMLLN5Graph9listNodesE_135 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*@_SMLLN5Graph11getNodeInfoE_138(i8*inreg%a,i8*inreg%b)#2 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*)*@_SMLLN5Graph11getNodeInfoE_118 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*)*@_SMLLN5Graph11getNodeInfoE_118 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*@_SMLLN5Graph11getNodeInfoE_118(i8*inreg%D,i8*inreg%L)
ret i8*%M
}
define fastcc i8*@_SMLFN5Graph11getNodeInfoE(i32 inreg%a,i32 inreg%b)#4 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*)*@_SMLLN5Graph11getNodeInfoE_138 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*)*@_SMLLN5Graph11getNodeInfoE_138 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*@_SMLLN5Graph3sccE_141(i8*inreg%a,i8*inreg%b)#2 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*)*@_SMLLN5Graph3sccE_124 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*)*@_SMLLN5Graph3sccE_124 to void(...)*),void(...)**%I,align 8
%J=getelementptr inbounds i8,i8*%A,i64 24
%K=bitcast i8*%J to i32*
store i32 -2147483647,i32*%K,align 4
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*@_SMLLN5Graph3sccE_124(i8*inreg%D,i8*inreg%L)
ret i8*%M
}
define fastcc i8*@_SMLFN5Graph3sccE(i32 inreg%a,i32 inreg%b)#4 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*)*@_SMLLN5Graph3sccE_141 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*)*@_SMLLN5Graph3sccE_141 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*@_SMLLN5Graph16getOutGoingNodesE_146(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=tail call fastcc i8*@_SMLLN5Graph16getOutGoingNodesE_72(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLL1f_148(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
tail call fastcc void@_SMLL1f_89(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*@_SMLL12getComponent_149(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=tail call fastcc i8*@_SMLL12getComponent_90(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLL3dfs_150(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
tail call fastcc void@_SMLL3dfs_75(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*@_SMLL6dfsAll_151(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLL6dfsAll_96(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*@_SMLLN5Graph10printNodesE_153(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
tail call fastcc void@_SMLLN5Graph10printNodesE_103(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*@_SMLLN5Graph10printNodesE_154(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLFN5Graph10printNodesE(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*@_SMLLN5Graph11getNodeInfoE_159(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=tail call fastcc i8*@_SMLLN5Graph11getNodeInfoE_117(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLN5Graph5emptyE_163(i8*inreg%a,i8*inreg%b,i8*inreg%c)#2 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*@_SMLFN5Graph5emptyE(i32 inreg%e,i32 inreg%g)
ret i8*%h
}
define internal fastcc i8*@_SMLLN5Graph7addNodeE_164(i8*inreg%a,i8*inreg%b,i8*inreg%c)#4 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*@_SMLFN5Graph7addNodeE(i32 inreg%e,i32 inreg%g)
ret i8*%h
}
define internal fastcc i8*@_SMLLN5Graph7addEdgeE_165(i8*inreg%a,i8*inreg%b,i8*inreg%c)#4 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*@_SMLFN5Graph7addEdgeE(i32 inreg%e,i32 inreg%g)
ret i8*%h
}
define internal fastcc i8*@_SMLLN5Graph9listNodesE_166(i8*inreg%a,i8*inreg%b,i8*inreg%c)#4 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*@_SMLFN5Graph9listNodesE(i32 inreg%e,i32 inreg%g)
ret i8*%h
}
define internal fastcc i8*@_SMLLN5Graph11getNodeInfoE_167(i8*inreg%a,i8*inreg%b,i8*inreg%c)#4 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*@_SMLFN5Graph11getNodeInfoE(i32 inreg%e,i32 inreg%g)
ret i8*%h
}
define internal fastcc i8*@_SMLLN5Graph3sccE_168(i8*inreg%a,i8*inreg%b,i8*inreg%c)#4 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*@_SMLFN5Graph3sccE(i32 inreg%e,i32 inreg%g)
ret i8*%h
}
declare void@llvm.memcpy.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={uwtable}
attributes#3={noreturn nounwind}
attributes#4={nounwind uwtable}
