@sml_check_flag=external local_unnamed_addr global i32
@_SMLZ8Overflow=external unnamed_addr constant i8*
@_SMLZ3Div=external unnamed_addr constant i8*
@a=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32)*@_SMLFN6Word3210toLargeIntE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN4Word10toLargeIntE_88 to void(...)*),i32 -2147483647}>,align 8
@b=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32)*@_SMLFN6Word3211toLargeIntXE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN4Word11toLargeIntXE_89 to void(...)*),i32 -2147483647}>,align 8
@c=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i8*)*@_SMLFN6Word3212fromLargeIntE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN4Word12fromLargeIntE_90 to void(...)*),i32 -2147483647}>,align 8
@d=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i8*)*@_SMLFN6Word327compareE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11Word__common7compareE_91 to void(...)*),i32 -2147483647}>,align 8
@e=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i8*)*@_SMLFN6Word323minE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11Word__common3minE_92 to void(...)*),i32 -2147483647}>,align 8
@f=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i8*)*@_SMLFN6Word323maxE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11Word__common3maxE_93 to void(...)*),i32 -2147483647}>,align 8
@g=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32)*@_SMLFN6Word323fmtE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11Word__common3fmtE_95 to void(...)*),i32 -2147483647}>,align 8
@h=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/basis/main/Word_common.sml:103.38(2584)\00"}>,align 8
@i=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/basis/main/Word_common.sml:108.58(2779)\00"}>,align 8
@j=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/basis/main/Word_common.sml:110.53(2871)\00"}>,align 8
@k=private unnamed_addr constant<{[4x i8],i32,[43x i8]}><{[4x i8]zeroinitializer,i32 -2147483605,[43x i8]c"src/basis/main/Word_common.sml:89.31(2106)\00"}>,align 8
@l=private unnamed_addr constant<{[4x i8],i32,[2x i8]}><{[4x i8]zeroinitializer,i32 -2147483646,[2x i8]c"0\00"}>,align 8
@m=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32)*@_SMLFN6Word328toStringE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11Word__common8toStringE_97 to void(...)*),i32 -2147483647}>,align 8
@n=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN6Word3210fromStringE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11Word__common10fromStringE_98 to void(...)*),i32 -2147483647}>,align 8
@o=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32,i32)*@_SMLFN6Word324scanE to void(...)*),void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLLN6Word324scanE_100 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN6Word328wordSizeE=local_unnamed_addr constant i32 32
@_SMLZN6Word3210toLargeIntE=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*)
@_SMLZN6Word3211toLargeIntXE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@b,i64 0,i32 2)to i8*)
@_SMLZN6Word3212fromLargeIntE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@c,i64 0,i32 2)to i8*)
@_SMLZN6Word327compareE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@d,i64 0,i32 2)to i8*)
@_SMLZN6Word323minE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@e,i64 0,i32 2)to i8*)
@_SMLZN6Word323maxE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@f,i64 0,i32 2)to i8*)
@_SMLZN6Word323fmtE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@g,i64 0,i32 2)to i8*)
@_SMLZN6Word328toStringE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@m,i64 0,i32 2)to i8*)
@_SMLZN6Word324scanE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@o,i64 0,i32 2)to i8*)
@_SMLZN6Word3210fromStringE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@n,i64 0,i32 2)to i8*)
@_SML_ftabf19563e8df97169c_Word32=external global i8
@p=private unnamed_addr global i8 0
declare void@llvm.gcroot(i8**,i8*)#0
declare i8*@prim_IntInf_fromWord(i32)local_unnamed_addr
declare i32@prim_IntInf_toWord(i8*)local_unnamed_addr
declare i8*@sml_alloc(i32 inreg)local_unnamed_addr#0
declare void@sml_check(i32 inreg)local_unnamed_addr
declare void@sml_gcroot(i8*,void()*,i8*,i8*)local_unnamed_addr#0
declare i32@sml_personality(...)#0
declare void@sml_raise(i8*inreg)local_unnamed_addr#1
declare i8*@sml_save()local_unnamed_addr#0
declare void@sml_unsave()local_unnamed_addr#0
declare i8*@sml_unsave_exn(i8*inreg)local_unnamed_addr#0
declare i8*@_SMLFN10CharVector8fromListE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8@_SMLFN17SMLSharp__ScanChar10intToDigitE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i32@_SMLFN17SMLSharp__ScanChar10radixToIntE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN17SMLSharp__ScanChar8scanWordE(i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN6IntInf7fromIntE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN9StringCvt10scanStringE(i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main5c37eb24573fc5f9_StringCvt()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main5d4c3ea7bd6f9540_IntInf()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main4fb8d2c1f12728b2_SMLSharp_ScanChar()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_mainadbb5309e852b68c_CharVector()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_load5c37eb24573fc5f9_StringCvt(i8*)local_unnamed_addr
declare void@_SML_load5d4c3ea7bd6f9540_IntInf(i8*)local_unnamed_addr
declare void@_SML_load4fb8d2c1f12728b2_SMLSharp_ScanChar(i8*)local_unnamed_addr
declare void@_SML_loadadbb5309e852b68c_CharVector(i8*)local_unnamed_addr
define private void@_SML_tabbf19563e8df97169c_Word32()#3{
unreachable
}
define void@_SML_loadf19563e8df97169c_Word32(i8*%a)local_unnamed_addr#0{
%b=load i8,i8*@p,align 1
%c=icmp eq i8%b,0
br i1%c,label%e,label%d
d:
ret void
e:
store i8 1,i8*@p,align 1
tail call void@_SML_load5c37eb24573fc5f9_StringCvt(i8*%a)#0
tail call void@_SML_load5d4c3ea7bd6f9540_IntInf(i8*%a)#0
tail call void@_SML_load4fb8d2c1f12728b2_SMLSharp_ScanChar(i8*%a)#0
tail call void@_SML_loadadbb5309e852b68c_CharVector(i8*%a)#0
tail call void@sml_gcroot(i8*%a,void()*@_SML_tabbf19563e8df97169c_Word32,i8*@_SML_ftabf19563e8df97169c_Word32,i8*null)#0
ret void
}
define void@_SML_mainf19563e8df97169c_Word32()local_unnamed_addr#2 gc"smlsharp"{
%a=load i8,i8*@p,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*@p,align 1
tail call void@_SML_main5c37eb24573fc5f9_StringCvt()#2
tail call void@_SML_main5d4c3ea7bd6f9540_IntInf()#2
tail call void@_SML_main4fb8d2c1f12728b2_SMLSharp_ScanChar()#2
tail call void@_SML_mainadbb5309e852b68c_CharVector()#2
br label%d
}
define fastcc i8*@_SMLFN6Word3210toLargeIntE(i32 inreg%a)#2 gc"smlsharp"personality i32(...)*@sml_personality{
%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 i8*@sml_save()#0
%g=invoke i8*@prim_IntInf_fromWord(i32%a)
to label%h unwind label%i
h:
tail call void@sml_unsave()#0
ret i8*%g
i:
%j=landingpad{i8*,i8*}
cleanup
%k=extractvalue{i8*,i8*}%j,1
tail call void@sml_unsave()#0
%l=tail call i8*@sml_unsave_exn(i8*inreg%k)#0
resume{i8*,i8*}%j
}
define fastcc i8*@_SMLFN6Word3211toLargeIntXE(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*@_SMLFN6IntInf7fromIntE(i32 inreg%a)
ret i8*%f
}
define fastcc i32@_SMLFN6Word3212fromLargeIntE(i8*inreg%a)#2 gc"smlsharp"{
i:
%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%g,label%e
e:
call void@sml_check(i32 inreg%c)
%f=load i8*,i8**%b,align 8
br label%g
g:
%h=phi i8*[%f,%e],[%a,%i]
%j=call i32@prim_IntInf_toWord(i8*%h)
ret i32%j
}
define fastcc i32@_SMLFN6Word327compareE(i8*inreg%a)#4 gc"smlsharp"{
%b=bitcast i8*%a to i32*
%c=load i32,i32*%b,align 4
%d=getelementptr inbounds i8,i8*%a,i64 4
%e=bitcast i8*%d to i32*
%f=load i32,i32*%e,align 4
%g=icmp eq i32%c,%f
%h=icmp ult i32%c,%f
%i=select i1%h,i32 2,i32 1
%j=select i1%g,i32 0,i32%i
ret i32%j
}
define fastcc i32@_SMLFN6Word323minE(i8*inreg%a)#4 gc"smlsharp"{
%b=bitcast i8*%a to i32*
%c=load i32,i32*%b,align 4
%d=getelementptr inbounds i8,i8*%a,i64 4
%e=bitcast i8*%d to i32*
%f=load i32,i32*%e,align 4
%g=icmp ult i32%c,%f
%h=select i1%g,i32%c,i32%f
ret i32%h
}
define fastcc i32@_SMLFN6Word323maxE(i8*inreg%a)#4 gc"smlsharp"{
%b=bitcast i8*%a to i32*
%c=load i32,i32*%b,align 4
%d=getelementptr inbounds i8,i8*%a,i64 4
%e=bitcast i8*%d to i32*
%f=load i32,i32*%e,align 4
%g=icmp ugt i32%c,%f
%h=select i1%g,i32%c,i32%f
ret i32%h
}
define internal fastcc i8*@_SMLLLN11Word__common3fmtE_68(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 i32*
br label%l
i:
call void@sml_check(i32 inreg%e)
%j=bitcast i8**%c to i32**
%k=load i32*,i32**%j,align 8
br label%l
l:
%m=phi i32*[%k,%i],[%h,%g]
store i8*null,i8**%c,align 8
%n=load i32,i32*%m,align 4
%o=call fastcc i32@_SMLFN17SMLSharp__ScanChar10radixToIntE(i32 inreg%n)
%p=icmp eq i32%b,0
br i1%p,label%q,label%r
q:
ret i8*getelementptr inbounds(<{[4x i8],i32,[2x i8]}>,<{[4x i8],i32,[2x i8]}>*@l,i64 0,i32 2,i64 0)
r:
%s=call i8*@sml_alloc(i32 inreg 20)#0
%t=bitcast i8*%s to i32*
%u=getelementptr inbounds i8,i8*%s,i64 -4
%v=bitcast i8*%u to i32*
store i32 1342177296,i32*%v,align 4
%w=getelementptr inbounds i8,i8*%s,i64 4
%x=bitcast i8*%w to i32*
store i32 0,i32*%x,align 1
store i32%b,i32*%t,align 4
%y=getelementptr inbounds i8,i8*%s,i64 8
%z=bitcast i8*%y to i8**
store i8*null,i8**%z,align 8
%A=getelementptr inbounds i8,i8*%s,i64 16
%B=bitcast i8*%A to i32*
store i32 2,i32*%B,align 4
%C=icmp eq i32%o,0
br label%D
D:
%E=phi i8*[null,%r],[%ad,%K]
%F=phi i32[%b,%r],[%L,%K]
store i8*%E,i8**%c,align 8
%G=icmp eq i32%F,0
br i1%G,label%H,label%J
H:
%I=tail call fastcc i8*@_SMLFN10CharVector8fromListE(i8*inreg%E)
ret i8*%I
J:
br i1%C,label%ai,label%K
K:
%L=udiv i32%F,%o
%M=urem i32%F,%o
%N=call fastcc i8@_SMLFN17SMLSharp__ScanChar10intToDigitE(i32 inreg%M)
%O=call i8*@sml_alloc(i32 inreg 20)#0
%P=getelementptr inbounds i8,i8*%O,i64 -4
%Q=bitcast i8*%P to i32*
store i32 1342177296,i32*%Q,align 4
store i8*%O,i8**%d,align 8
%R=getelementptr inbounds i8,i8*%O,i64 1
call void@llvm.memset.p0i8.i32(i8*%R,i8 0,i32 7,i1 false)
store i8%N,i8*%O,align 1
%S=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%T=getelementptr inbounds i8,i8*%O,i64 8
%U=bitcast i8*%T to i8**
store i8*%S,i8**%U,align 8
%V=getelementptr inbounds i8,i8*%O,i64 16
%W=bitcast i8*%V to i32*
store i32 2,i32*%W,align 4
%X=call i8*@sml_alloc(i32 inreg 20)#0
%Y=bitcast i8*%X to i32*
%Z=getelementptr inbounds i8,i8*%X,i64 -4
%aa=bitcast i8*%Z to i32*
store i32 1342177296,i32*%aa,align 4
%ab=getelementptr inbounds i8,i8*%X,i64 4
%ac=bitcast i8*%ab to i32*
store i32 0,i32*%ac,align 1
store i32%L,i32*%Y,align 4
%ad=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%ae=getelementptr inbounds i8,i8*%X,i64 8
%af=bitcast i8*%ae to i8**
store i8*%ad,i8**%af,align 8
%ag=getelementptr inbounds i8,i8*%X,i64 16
%ah=bitcast i8*%ag to i32*
store i32 2,i32*%ah,align 4
br label%D
ai:
%aj=load i8*,i8**@_SMLZ3Div,align 8
store i8*%aj,i8**%c,align 8
%ak=call i8*@sml_alloc(i32 inreg 20)#0
%al=getelementptr inbounds i8,i8*%ak,i64 -4
%am=bitcast i8*%al to i32*
store i32 1342177296,i32*%am,align 4
store i8*%ak,i8**%d,align 8
%an=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ao=bitcast i8*%ak to i8**
store i8*%an,i8**%ao,align 8
%ap=getelementptr inbounds i8,i8*%ak,i64 8
%aq=bitcast i8*%ap to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@k,i64 0,i32 2,i64 0),i8**%aq,align 8
%ar=getelementptr inbounds i8,i8*%ak,i64 16
%as=bitcast i8*%ar to i32*
store i32 3,i32*%as,align 4
%at=call i8*@sml_alloc(i32 inreg 60)#0
%au=getelementptr inbounds i8,i8*%at,i64 -4
%av=bitcast i8*%au to i32*
store i32 1342177336,i32*%av,align 4
%aw=getelementptr inbounds i8,i8*%at,i64 56
%ax=bitcast i8*%aw to i32*
store i32 1,i32*%ax,align 4
%ay=load i8*,i8**%d,align 8
%az=bitcast i8*%at to i8**
store i8*%ay,i8**%az,align 8
call void@sml_raise(i8*inreg%at)#1
unreachable
}
define fastcc i8*@_SMLFN6Word323fmtE(i32 inreg%a)#4 gc"smlsharp"{
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
%c=call i8*@sml_alloc(i32 inreg 12)#0
%d=bitcast i8*%c to i32*
%e=getelementptr inbounds i8,i8*%c,i64 -4
%f=bitcast i8*%e to i32*
store i32 1342177288,i32*%f,align 4
store i8*%c,i8**%b,align 8
store i32%a,i32*%d,align 4
%g=getelementptr inbounds i8,i8*%c,i64 8
%h=bitcast i8*%g to i32*
store i32 0,i32*%h,align 4
%i=call i8*@sml_alloc(i32 inreg 28)#0
%j=getelementptr inbounds i8,i8*%i,i64 -4
%k=bitcast i8*%j to i32*
store i32 1342177304,i32*%k,align 4
%l=load i8*,i8**%b,align 8
%m=bitcast i8*%i to i8**
store i8*%l,i8**%m,align 8
%n=getelementptr inbounds i8,i8*%i,i64 8
%o=bitcast i8*%n to void(...)**
store void(...)*bitcast(i8*(i8*,i32)*@_SMLLLN11Word__common3fmtE_68 to void(...)*),void(...)**%o,align 8
%p=getelementptr inbounds i8,i8*%i,i64 16
%q=bitcast i8*%p to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11Word__common3fmtE_94 to void(...)*),void(...)**%q,align 8
%r=getelementptr inbounds i8,i8*%i,i64 24
%s=bitcast i8*%r to i32*
store i32 -2147483647,i32*%s,align 4
ret i8*%i
}
define internal fastcc i8*@_SMLLLN11Word__common4scanE_74(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**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%e,align 8
store i8*%b,i8**%c,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%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=getelementptr inbounds i8,i8*%k,i64 12
%n=bitcast i8*%m to i32*
%o=load i32,i32*%n,align 4
%p=add i32%o,7
%q=sub i32 0,%o
%r=and i32%p,%q
%s=add i32%o,3
%t=and i32%s,%q
%u=add i32%p,%t
%v=and i32%u,-8
%w=lshr i32%t,3
%x=getelementptr inbounds i8,i8*%k,i64 8
%y=bitcast i8*%x to i32*
%z=load i32,i32*%y,align 4
%A=shl i32%z,%w
%B=or i32%v,4
%C=call fastcc i8*@_SMLFN17SMLSharp__ScanChar8scanWordE(i32 inreg%z,i32 inreg%o)
%D=getelementptr inbounds i8,i8*%C,i64 16
%E=bitcast i8*%D to i8*(i8*,i8*)**
%F=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%E,align 8
%G=bitcast i8*%C to i8**
%H=load i8*,i8**%G,align 8
store i8*%H,i8**%d,align 8
%I=load i8*,i8**%e,align 8
%J=getelementptr inbounds i8,i8*%I,i64 16
%K=bitcast i8*%J to i32*
%L=load i32,i32*%K,align 4
%M=call i8*@sml_alloc(i32 inreg 4)#0
%N=bitcast i8*%M to i32*
%O=getelementptr inbounds i8,i8*%M,i64 -4
%P=bitcast i8*%O to i32*
store i32 4,i32*%P,align 4
store i32%L,i32*%N,align 4
%Q=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%R=call fastcc i8*%F(i8*inreg%Q,i8*inreg%M)
%S=getelementptr inbounds i8,i8*%R,i64 16
%T=bitcast i8*%S to i8*(i8*,i8*)**
%U=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%T,align 8
%V=bitcast i8*%R to i8**
%W=load i8*,i8**%V,align 8
%X=bitcast i8**%e to i8***
%Y=load i8**,i8***%X,align 8
%Z=load i8*,i8**%Y,align 8
%aa=call fastcc i8*%U(i8*inreg%W,i8*inreg%Z)
%ab=getelementptr inbounds i8,i8*%aa,i64 16
%ac=bitcast i8*%ab to i8*(i8*,i8*)**
%ad=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%ac,align 8
%ae=bitcast i8*%aa to i8**
%af=load i8*,i8**%ae,align 8
%ag=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ah=call fastcc i8*%ad(i8*inreg%af,i8*inreg%ag)
%ai=icmp eq i8*%ah,null
br i1%ai,label%aj,label%ak
aj:
ret i8*null
ak:
%al=bitcast i8*%ah to i8**
%am=load i8*,i8**%al,align 8
store i8*%am,i8**%c,align 8
%an=bitcast i8*%am to i8**
%ao=load i8*,i8**%an,align 8
%ap=bitcast i8*%ao to i8**
%aq=load i8*,i8**%ap,align 8
store i8*%aq,i8**%d,align 8
%ar=getelementptr inbounds i8,i8*%ao,i64 8
%as=bitcast i8*%ar to i32*
%at=load i32,i32*%as,align 4
%au=load i8*,i8**%e,align 8
%av=getelementptr inbounds i8,i8*%au,i64 8
%aw=bitcast i8*%av to i32*
%ax=load i32,i32*%aw,align 4
%ay=icmp eq i32%ax,0
br i1%ay,label%aE,label%az
az:
store i8*null,i8**%c,align 8
%aA=sext i32%r to i64
%aB=getelementptr inbounds i8,i8*%am,i64%aA
%aC=bitcast i8*%aB to i8**
%aD=load i8*,i8**%aC,align 8
br label%aO
aE:
%aF=getelementptr inbounds i8,i8*%au,i64 12
%aG=bitcast i8*%aF to i32*
%aH=load i32,i32*%aG,align 4
%aI=call i8*@sml_alloc(i32 inreg%aH)#0
%aJ=getelementptr inbounds i8,i8*%aI,i64 -4
%aK=bitcast i8*%aJ to i32*
store i32%aH,i32*%aK,align 4
%aL=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aM=sext i32%r to i64
%aN=getelementptr inbounds i8,i8*%aL,i64%aM
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%aI,i8*%aN,i32%aH,i1 false)
br label%aO
aO:
%aP=phi i8*[%aI,%aE],[%aD,%az]
store i8*%aP,i8**%c,align 8
%aQ=icmp eq i32%at,0
br i1%aQ,label%aU,label%aR
aR:
%aS=udiv i32 -1,%at
%aT=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
br label%bc
aU:
store i8*null,i8**%d,align 8
store i8*null,i8**%e,align 8
%aV=load i8*,i8**@_SMLZ3Div,align 8
store i8*%aV,i8**%c,align 8
%aW=call i8*@sml_alloc(i32 inreg 20)#0
%aX=getelementptr inbounds i8,i8*%aW,i64 -4
%aY=bitcast i8*%aX to i32*
store i32 1342177296,i32*%aY,align 4
store i8*%aW,i8**%d,align 8
%aZ=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%a0=bitcast i8*%aW to i8**
store i8*%aZ,i8**%a0,align 8
%a1=getelementptr inbounds i8,i8*%aW,i64 8
%a2=bitcast i8*%a1 to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@h,i64 0,i32 2,i64 0),i8**%a2,align 8
%a3=getelementptr inbounds i8,i8*%aW,i64 16
%a4=bitcast i8*%a3 to i32*
store i32 3,i32*%a4,align 4
%a5=call i8*@sml_alloc(i32 inreg 60)#0
%a6=getelementptr inbounds i8,i8*%a5,i64 -4
%a7=bitcast i8*%a6 to i32*
store i32 1342177336,i32*%a7,align 4
%a8=getelementptr inbounds i8,i8*%a5,i64 56
%a9=bitcast i8*%a8 to i32*
store i32 1,i32*%a9,align 4
%ba=load i8*,i8**%d,align 8
%bb=bitcast i8*%a5 to i8**
store i8*%ba,i8**%bb,align 8
call void@sml_raise(i8*inreg%a5)#1
unreachable
bc:
%bd=phi i32[0,%aR],[%bU,%bO]
%be=phi i8*[%aT,%aR],[%bR,%bO]
%bf=bitcast i8*%be to i32*
%bg=icmp eq i8*%be,null
br i1%bg,label%bh,label%bM
bh:
%bi=load i8*,i8**%e,align 8
%bj=getelementptr inbounds i8,i8*%bi,i64 12
%bk=bitcast i8*%bj to i32*
%bl=load i32,i32*%bk,align 4
store i8*null,i8**%e,align 8
%bm=getelementptr inbounds i8,i8*%bi,i64 8
%bn=bitcast i8*%bm to i32*
%bo=load i32,i32*%bn,align 4
%bp=call i8*@sml_alloc(i32 inreg%B)#0
%bq=or i32%v,1342177280
%br=getelementptr inbounds i8,i8*%bp,i64 -4
%bs=bitcast i8*%br to i32*
store i32%bq,i32*%bs,align 4
store i8*%bp,i8**%d,align 8
call void@llvm.memset.p0i8.i32(i8*%bp,i8 0,i32%B,i1 false)
%bt=bitcast i8*%bp to i32*
store i32%bd,i32*%bt,align 4
%bu=icmp eq i32%bo,0
%bv=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bw=sext i32%t to i64
%bx=getelementptr inbounds i8,i8*%bp,i64%bw
br i1%bu,label%by,label%bz
by:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%bx,i8*%bv,i32%bl,i1 false)
br label%bB
bz:
%bA=bitcast i8*%bx to i8**
store i8*%bv,i8**%bA,align 8
br label%bB
bB:
%bC=sext i32%v to i64
%bD=getelementptr inbounds i8,i8*%bp,i64%bC
%bE=bitcast i8*%bD to i32*
store i32%A,i32*%bE,align 4
%bF=call i8*@sml_alloc(i32 inreg 12)#0
%bG=getelementptr inbounds i8,i8*%bF,i64 -4
%bH=bitcast i8*%bG to i32*
store i32 1342177288,i32*%bH,align 4
%bI=load i8*,i8**%d,align 8
%bJ=bitcast i8*%bF to i8**
store i8*%bI,i8**%bJ,align 8
%bK=getelementptr inbounds i8,i8*%bF,i64 8
%bL=bitcast i8*%bK to i32*
store i32 1,i32*%bL,align 4
ret i8*%bF
bM:
%bN=icmp ugt i32%bd,%aS
br i1%bN,label%bW,label%bO
bO:
%bP=getelementptr inbounds i8,i8*%be,i64 8
%bQ=bitcast i8*%bP to i8**
%bR=load i8*,i8**%bQ,align 8
%bS=load i32,i32*%bf,align 4
%bT=mul i32%bd,%at
%bU=add i32%bS,%bT
%bV=icmp ult i32%bU,%bT
br i1%bV,label%ce,label%bc
bW:
store i8*null,i8**%e,align 8
%bX=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%bX,i8**%c,align 8
%bY=call i8*@sml_alloc(i32 inreg 20)#0
%bZ=getelementptr inbounds i8,i8*%bY,i64 -4
%b0=bitcast i8*%bZ to i32*
store i32 1342177296,i32*%b0,align 4
store i8*%bY,i8**%d,align 8
%b1=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%b2=bitcast i8*%bY to i8**
store i8*%b1,i8**%b2,align 8
%b3=getelementptr inbounds i8,i8*%bY,i64 8
%b4=bitcast i8*%b3 to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@i,i64 0,i32 2,i64 0),i8**%b4,align 8
%b5=getelementptr inbounds i8,i8*%bY,i64 16
%b6=bitcast i8*%b5 to i32*
store i32 3,i32*%b6,align 4
%b7=call i8*@sml_alloc(i32 inreg 60)#0
%b8=getelementptr inbounds i8,i8*%b7,i64 -4
%b9=bitcast i8*%b8 to i32*
store i32 1342177336,i32*%b9,align 4
%ca=getelementptr inbounds i8,i8*%b7,i64 56
%cb=bitcast i8*%ca to i32*
store i32 1,i32*%cb,align 4
%cc=load i8*,i8**%d,align 8
%cd=bitcast i8*%b7 to i8**
store i8*%cc,i8**%cd,align 8
call void@sml_raise(i8*inreg%b7)#1
unreachable
ce:
store i8*null,i8**%e,align 8
%cf=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%cf,i8**%c,align 8
%cg=call i8*@sml_alloc(i32 inreg 20)#0
%ch=getelementptr inbounds i8,i8*%cg,i64 -4
%ci=bitcast i8*%ch to i32*
store i32 1342177296,i32*%ci,align 4
store i8*%cg,i8**%d,align 8
%cj=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ck=bitcast i8*%cg to i8**
store i8*%cj,i8**%ck,align 8
%cl=getelementptr inbounds i8,i8*%cg,i64 8
%cm=bitcast i8*%cl to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@j,i64 0,i32 2,i64 0),i8**%cm,align 8
%cn=getelementptr inbounds i8,i8*%cg,i64 16
%co=bitcast i8*%cn to i32*
store i32 3,i32*%co,align 4
%cp=call i8*@sml_alloc(i32 inreg 60)#0
%cq=getelementptr inbounds i8,i8*%cp,i64 -4
%cr=bitcast i8*%cq to i32*
store i32 1342177336,i32*%cr,align 4
%cs=getelementptr inbounds i8,i8*%cp,i64 56
%ct=bitcast i8*%cs to i32*
store i32 1,i32*%ct,align 4
%cu=load i8*,i8**%d,align 8
%cv=bitcast i8*%cp to i8**
store i8*%cu,i8**%cv,align 8
call void@sml_raise(i8*inreg%cp)#1
unreachable
}
define internal fastcc i8*@_SMLLLN11Word__common4scanE_75(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=getelementptr inbounds i8,i8*%a,i64 8
%k=bitcast i8*%j to i32*
%l=load i32,i32*%k,align 4
%m=call i8*@sml_alloc(i32 inreg 28)#0
%n=getelementptr inbounds i8,i8*%m,i64 -4
%o=bitcast i8*%n to i32*
store i32 1342177304,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 i32*
store i32%f,i32*%s,align 4
%t=getelementptr inbounds i8,i8*%m,i64 12
%u=bitcast i8*%t to i32*
store i32%i,i32*%u,align 4
%v=getelementptr inbounds i8,i8*%m,i64 16
%w=bitcast i8*%v to i32*
store i32%l,i32*%w,align 4
%x=getelementptr inbounds i8,i8*%m,i64 24
%y=bitcast i8*%x to i32*
store i32 1,i32*%y,align 4
%z=call i8*@sml_alloc(i32 inreg 28)#0
%A=getelementptr inbounds i8,i8*%z,i64 -4
%B=bitcast i8*%A to i32*
store i32 1342177304,i32*%B,align 4
%C=load i8*,i8**%d,align 8
%D=bitcast i8*%z to i8**
store i8*%C,i8**%D,align 8
%E=getelementptr inbounds i8,i8*%z,i64 8
%F=bitcast i8*%E to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11Word__common4scanE_74 to void(...)*),void(...)**%F,align 8
%G=getelementptr inbounds i8,i8*%z,i64 16
%H=bitcast i8*%G to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11Word__common4scanE_74 to void(...)*),void(...)**%H,align 8
%I=getelementptr inbounds i8,i8*%z,i64 24
%J=bitcast i8*%I to i32*
store i32 1,i32*%J,align 4
ret i8*%z
}
define internal fastcc i8*@_SMLLLN11Word__common4scanE_76(i32 inreg%a,i32 inreg%b,i32 inreg%c)unnamed_addr#4 gc"smlsharp"{
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%d,i8*null)#0
%e=call i8*@sml_alloc(i32 inreg 20)#0
%f=bitcast i8*%e to i32*
%g=getelementptr inbounds i8,i8*%e,i64 -4
%h=bitcast i8*%g to i32*
store i32 1342177296,i32*%h,align 4
store i8*%e,i8**%d,align 8
store i32%a,i32*%f,align 4
%i=getelementptr inbounds i8,i8*%e,i64 4
%j=bitcast i8*%i to i32*
store i32%b,i32*%j,align 4
%k=getelementptr inbounds i8,i8*%e,i64 8
%l=bitcast i8*%k to i32*
store i32%c,i32*%l,align 4
%m=getelementptr inbounds i8,i8*%e,i64 16
%n=bitcast i8*%m to i32*
store i32 0,i32*%n,align 4
%o=call i8*@sml_alloc(i32 inreg 28)#0
%p=getelementptr inbounds i8,i8*%o,i64 -4
%q=bitcast i8*%p to i32*
store i32 1342177304,i32*%q,align 4
%r=load i8*,i8**%d,align 8
%s=bitcast i8*%o to i8**
store i8*%r,i8**%s,align 8
%t=getelementptr inbounds i8,i8*%o,i64 8
%u=bitcast i8*%t to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11Word__common4scanE_75 to void(...)*),void(...)**%u,align 8
%v=getelementptr inbounds i8,i8*%o,i64 16
%w=bitcast i8*%v to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11Word__common4scanE_75 to void(...)*),void(...)**%w,align 8
%x=getelementptr inbounds i8,i8*%o,i64 24
%y=bitcast i8*%x to i32*
store i32 -2147483647,i32*%y,align 4
ret i8*%o
}
define fastcc i8*@_SMLFN6Word328toStringE(i32 inreg%a)#2 gc"smlsharp"{
%b=alloca i8*,align 8
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%g,label%f
f:
call void@sml_check(i32 inreg%d)
br label%g
g:
%h=call fastcc i32@_SMLFN17SMLSharp__ScanChar10radixToIntE(i32 inreg 2)
%i=icmp eq i32%a,0
br i1%i,label%j,label%k
j:
ret i8*getelementptr inbounds(<{[4x i8],i32,[2x i8]}>,<{[4x i8],i32,[2x i8]}>*@l,i64 0,i32 2,i64 0)
k:
%l=call i8*@sml_alloc(i32 inreg 20)#0
%m=bitcast i8*%l to i32*
%n=getelementptr inbounds i8,i8*%l,i64 -4
%o=bitcast i8*%n to i32*
store i32 1342177296,i32*%o,align 4
%p=getelementptr inbounds i8,i8*%l,i64 4
%q=bitcast i8*%p to i32*
store i32 0,i32*%q,align 1
store i32%a,i32*%m,align 4
%r=getelementptr inbounds i8,i8*%l,i64 8
%s=bitcast i8*%r to i8**
store i8*null,i8**%s,align 8
%t=getelementptr inbounds i8,i8*%l,i64 16
%u=bitcast i8*%t to i32*
store i32 2,i32*%u,align 4
%v=icmp eq i32%h,0
br label%w
w:
%x=phi i8*[null,%k],[%W,%D]
%y=phi i32[%a,%k],[%E,%D]
store i8*%x,i8**%b,align 8
%z=icmp eq i32%y,0
br i1%z,label%A,label%C
A:
%B=tail call fastcc i8*@_SMLFN10CharVector8fromListE(i8*inreg%x)
ret i8*%B
C:
br i1%v,label%ab,label%D
D:
%E=udiv i32%y,%h
%F=urem i32%y,%h
%G=call fastcc i8@_SMLFN17SMLSharp__ScanChar10intToDigitE(i32 inreg%F)
%H=call i8*@sml_alloc(i32 inreg 20)#0
%I=getelementptr inbounds i8,i8*%H,i64 -4
%J=bitcast i8*%I to i32*
store i32 1342177296,i32*%J,align 4
store i8*%H,i8**%c,align 8
%K=getelementptr inbounds i8,i8*%H,i64 1
call void@llvm.memset.p0i8.i32(i8*%K,i8 0,i32 7,i1 false)
store i8%G,i8*%H,align 1
%L=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%M=getelementptr inbounds i8,i8*%H,i64 8
%N=bitcast i8*%M to i8**
store i8*%L,i8**%N,align 8
%O=getelementptr inbounds i8,i8*%H,i64 16
%P=bitcast i8*%O to i32*
store i32 2,i32*%P,align 4
%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%E,i32*%R,align 4
%W=load i8*,i8**%c,align 8
store i8*null,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
br label%w
ab:
%ac=load i8*,i8**@_SMLZ3Div,align 8
store i8*%ac,i8**%b,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**%c,align 8
%ag=load i8*,i8**%b,align 8
store i8*null,i8**%b,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,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@k,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**%c,align 8
%as=bitcast i8*%am to i8**
store i8*%ar,i8**%as,align 8
call void@sml_raise(i8*inreg%am)#1
unreachable
}
define fastcc i8*@_SMLFN6Word3210fromStringE(i8*inreg%a)#2 gc"smlsharp"{
%b=alloca i8*,align 8
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%b,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%g,label%f
f:
call void@sml_check(i32 inreg%d)
br label%g
g:
%h=call fastcc i8*@_SMLFN9StringCvt10scanStringE(i32 inreg 0,i32 inreg 4)
%i=getelementptr inbounds i8,i8*%h,i64 16
%j=bitcast i8*%i to i8*(i8*,i8*)**
%k=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%j,align 8
%l=bitcast i8*%h to i8**
%m=load i8*,i8**%l,align 8
store i8*%m,i8**%c,align 8
%n=call fastcc i8*@_SMLLLN11Word__common4scanE_76(i32 inreg 0,i32 inreg 4,i32 inreg 2)
%o=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%p=call fastcc i8*%k(i8*inreg%o,i8*inreg%n)
%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
%v=load i8*,i8**%b,align 8
%w=tail call fastcc i8*%s(i8*inreg%u,i8*inreg%v)
ret i8*%w
}
define internal fastcc i8*@_SMLLLN6Word324scanE_85(i8*inreg%a,i32 inreg%b)#2 gc"smlsharp"{
j:
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%c,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%h,label%f
f:
call void@sml_check(i32 inreg%d)
%g=load i8*,i8**%c,align 8
br label%h
h:
%i=phi i8*[%g,%f],[%a,%j]
%k=bitcast i8*%i to i32*
%l=load i32,i32*%k,align 4
%m=getelementptr inbounds i8,i8*%i,i64 4
%n=bitcast i8*%m to i32*
%o=load i32,i32*%n,align 4
%p=tail call fastcc i8*@_SMLLLN11Word__common4scanE_76(i32 inreg%l,i32 inreg%o,i32 inreg%b)
ret i8*%p
}
define fastcc i8*@_SMLFN6Word324scanE(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*,i32)*@_SMLLLN6Word324scanE_85 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*)*@_SMLLLN6Word324scanE_99 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*@_SMLLLN4Word10toLargeIntE_88(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*@_SMLFN6Word3210toLargeIntE(i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLLN4Word11toLargeIntXE_89(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*@_SMLFN6Word3211toLargeIntXE(i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLLN4Word12fromLargeIntE_90(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLFN6Word3212fromLargeIntE(i8*inreg%b)
%d=tail call i8*@sml_alloc(i32 inreg 4)#0
%e=bitcast i8*%d to i32*
%f=getelementptr inbounds i8,i8*%d,i64 -4
%g=bitcast i8*%f to i32*
store i32 4,i32*%g,align 4
store i32%c,i32*%e,align 4
ret i8*%d
}
define internal fastcc i8*@_SMLLLN11Word__common7compareE_91(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=getelementptr inbounds i8,i8*%b,i64 4
%f=bitcast i8*%e to i32*
%g=load i32,i32*%f,align 4
%h=icmp eq i32%d,%g
%i=icmp ult i32%d,%g
%j=select i1%i,i32 2,i32 1
%k=select i1%h,i32 0,i32%j
%l=tail call i8*@sml_alloc(i32 inreg 4)#0
%m=bitcast i8*%l to i32*
%n=getelementptr inbounds i8,i8*%l,i64 -4
%o=bitcast i8*%n to i32*
store i32 4,i32*%o,align 4
store i32%k,i32*%m,align 4
ret i8*%l
}
define internal fastcc i8*@_SMLLLN11Word__common3minE_92(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=getelementptr inbounds i8,i8*%b,i64 4
%f=bitcast i8*%e to i32*
%g=load i32,i32*%f,align 4
%h=icmp ult i32%d,%g
%i=select i1%h,i32%d,i32%g
%j=tail call i8*@sml_alloc(i32 inreg 4)#0
%k=bitcast i8*%j to i32*
%l=getelementptr inbounds i8,i8*%j,i64 -4
%m=bitcast i8*%l to i32*
store i32 4,i32*%m,align 4
store i32%i,i32*%k,align 4
ret i8*%j
}
define internal fastcc i8*@_SMLLLN11Word__common3maxE_93(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=getelementptr inbounds i8,i8*%b,i64 4
%f=bitcast i8*%e to i32*
%g=load i32,i32*%f,align 4
%h=icmp ugt i32%d,%g
%i=select i1%h,i32%d,i32%g
%j=tail call i8*@sml_alloc(i32 inreg 4)#0
%k=bitcast i8*%j to i32*
%l=getelementptr inbounds i8,i8*%j,i64 -4
%m=bitcast i8*%l to i32*
store i32 4,i32*%m,align 4
store i32%i,i32*%k,align 4
ret i8*%j
}
define internal fastcc i8*@_SMLLLN11Word__common3fmtE_94(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*@_SMLLLN11Word__common3fmtE_68(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLLN11Word__common3fmtE_95(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=tail call fastcc i8*@_SMLFN6Word323fmtE(i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLLN11Word__common8toStringE_97(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*@_SMLFN6Word328toStringE(i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLLN11Word__common10fromStringE_98(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN6Word3210fromStringE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN6Word324scanE_99(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*@_SMLLLN6Word324scanE_85(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLLN6Word324scanE_100(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*@_SMLFN6Word324scanE(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
attributes#0={nounwind}
attributes#1={noreturn}
attributes#2={uwtable}
attributes#3={noreturn nounwind}
attributes#4={nounwind uwtable}
