@sml_check_flag=external local_unnamed_addr global i32
@_SMLZ8Overflow=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*(i64)*@_SMLFN5Int647toLargeE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN3Int7toLargeE_109 to void(...)*),i32 -2147483647}>,align 8
@b=private unnamed_addr constant<{[4x i8],i32,[36x i8]}><{[4x i8]zeroinitializer,i32 -2147483612,[36x i8]c"src/basis/main/Int64.sml:25.17(688)\00"}>,align 8
@c=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i64(i8*)*@_SMLFN5Int649fromLargeE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN3Int9fromLargeE_110 to void(...)*),i32 -2147483647}>,align 8
@d=private unnamed_addr constant<{[4x i8],i32,i32,[4x i8],i32}><{[4x i8]zeroinitializer,i32 -805306360,i32 64,[4x i8]zeroinitializer,i32 0}>,align 8
@e=private unnamed_addr constant<{[4x i8],i32,i64,i32}><{[4x i8]zeroinitializer,i32 -805306360,i64 -9223372036854775808,i32 0}>,align 8
@f=private unnamed_addr constant<{[4x i8],i32,i64,i32}><{[4x i8]zeroinitializer,i32 -805306360,i64 9223372036854775807,i32 0}>,align 8
@g=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i8*)*@_SMLFN5Int647compareE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN10Int__common7compareE_111 to void(...)*),i32 -2147483647}>,align 8
@h=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i64(i8*)*@_SMLFN5Int643minE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN10Int__common3minE_112 to void(...)*),i32 -2147483647}>,align 8
@i=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i64(i8*)*@_SMLFN5Int643maxE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN10Int__common3maxE_113 to void(...)*),i32 -2147483647}>,align 8
@j=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i64)*@_SMLFN5Int644signE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN10Int__common4signE_114 to void(...)*),i32 -2147483647}>,align 8
@k=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i8*)*@_SMLFN5Int648sameSignE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN10Int__common8sameSignE_115 to void(...)*),i32 -2147483647}>,align 8
@l=private unnamed_addr constant<{[4x i8],i32,[42x i8]}><{[4x i8]zeroinitializer,i32 -2147483606,[42x i8]c"src/basis/main/Int_common.sml:73.66(1968)\00"}>,align 8
@m=private unnamed_addr constant<{[4x i8],i32,[42x i8]}><{[4x i8]zeroinitializer,i32 -2147483606,[42x i8]c"src/basis/main/Int_common.sml:73.59(1961)\00"}>,align 8
@n=private unnamed_addr constant<{[4x i8],i32,[2x i8]}><{[4x i8]zeroinitializer,i32 -2147483646,[2x i8]c"0\00"}>,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)*@_SMLFN5Int643fmtE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN10Int__common3fmtE_118 to void(...)*),i32 -2147483647}>,align 8
@p=private unnamed_addr constant<{[4x i8],i32,[42x i8]}><{[4x i8]zeroinitializer,i32 -2147483606,[42x i8]c"src/basis/main/Int_common.sml:91.44(2564)\00"}>,align 8
@q=private unnamed_addr constant<{[4x i8],i32,[42x i8]}><{[4x i8]zeroinitializer,i32 -2147483606,[42x i8]c"src/basis/main/Int_common.sml:91.48(2568)\00"}>,align 8
@r=private unnamed_addr constant<{[4x i8],i32,[42x i8]}><{[4x i8]zeroinitializer,i32 -2147483606,[42x i8]c"src/basis/main/Int_common.sml:93.44(2678)\00"}>,align 8
@s=private unnamed_addr constant<{[4x i8],i32,[42x i8]}><{[4x i8]zeroinitializer,i32 -2147483606,[42x i8]c"src/basis/main/Int_common.sml:93.48(2682)\00"}>,align 8
@t=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i64)*@_SMLFN5Int648toStringE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN10Int__common8toStringE_120 to void(...)*),i32 -2147483647}>,align 8
@u=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN5Int6410fromStringE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN10Int__common10fromStringE_121 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)*@_SMLFN5Int644scanE to void(...)*),void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLLN5Int644scanE_123 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN5Int647toLargeE=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*)
@_SMLZN5Int649fromLargeE=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*)
@_SMLZN5Int649precisionE=local_unnamed_addr constant i8*bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@d,i64 0,i32 2)to i8*)
@_SMLZN5Int646minIntE=local_unnamed_addr constant i8*bitcast(i64*getelementptr inbounds(<{[4x i8],i32,i64,i32}>,<{[4x i8],i32,i64,i32}>*@e,i64 0,i32 2)to i8*)
@_SMLZN5Int646maxIntE=local_unnamed_addr constant i8*bitcast(i64*getelementptr inbounds(<{[4x i8],i32,i64,i32}>,<{[4x i8],i32,i64,i32}>*@f,i64 0,i32 2)to i8*)
@_SMLZN5Int647compareE=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*)
@_SMLZN5Int643minE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@h,i64 0,i32 2)to i8*)
@_SMLZN5Int643maxE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@i,i64 0,i32 2)to i8*)
@_SMLZN5Int644signE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@j,i64 0,i32 2)to i8*)
@_SMLZN5Int648sameSignE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@k,i64 0,i32 2)to i8*)
@_SMLZN5Int643fmtE=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*)
@_SMLZN5Int648toStringE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@t,i64 0,i32 2)to i8*)
@_SMLZN5Int644scanE=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*)
@_SMLZN5Int6410fromStringE=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_ftab57e5311c66ed4aab_Int64=external global i8
@w=private unnamed_addr global i8 0
declare void@llvm.gcroot(i8**,i8*)#0
declare{i64,i1}@llvm.sadd.with.overflow.i64(i64,i64)#0
declare{i64,i1}@llvm.smul.with.overflow.i64(i64,i64)#0
declare{i64,i1}@llvm.ssub.with.overflow.i64(i64,i64)#0
declare i8*@prim_IntInf_fromInt64(i64)local_unnamed_addr
declare i64@prim_IntInf_toWord64(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__ScanChar7scanIntE(i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i32@_SMLFN6IntInf1_RE(i8*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_tabb57e5311c66ed4aab_Int64()#3{
unreachable
}
define void@_SML_load57e5311c66ed4aab_Int64(i8*%a)local_unnamed_addr#0{
%b=load i8,i8*@w,align 1
%c=icmp eq i8%b,0
br i1%c,label%e,label%d
d:
ret void
e:
store i8 1,i8*@w,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_tabb57e5311c66ed4aab_Int64,i8*@_SML_ftab57e5311c66ed4aab_Int64,i8*null)#0
ret void
}
define void@_SML_main57e5311c66ed4aab_Int64()local_unnamed_addr#2 gc"smlsharp"{
%a=load i8,i8*@w,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*@w,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*@_SMLFN5Int647toLargeE(i64 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_fromInt64(i64%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 i64@_SMLFN5Int649fromLargeE(i8*inreg%a)#2 gc"smlsharp"personality i32(...)*@sml_personality{
%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 i8*@sml_save()#0
%i=invoke i8*@prim_IntInf_fromInt64(i64 -9223372036854775808)
to label%j unwind label%w
j:
call void@sml_unsave()#0
store i8*%i,i8**%c,align 8
%k=call i8*@sml_alloc(i32 inreg 20)#0
%l=getelementptr inbounds i8,i8*%k,i64 -4
%m=bitcast i8*%l to i32*
store i32 1342177296,i32*%m,align 4
%n=load i8*,i8**%b,align 8
%o=bitcast i8*%k to i8**
store i8*%n,i8**%o,align 8
%p=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%q=getelementptr inbounds i8,i8*%k,i64 8
%r=bitcast i8*%q to i8**
store i8*%p,i8**%r,align 8
%s=getelementptr inbounds i8,i8*%k,i64 16
%t=bitcast i8*%s to i32*
store i32 3,i32*%t,align 4
%u=call fastcc i32@_SMLFN6IntInf1_RE(i8*inreg%k)
%v=icmp eq i32%u,0
br i1%v,label%A,label%U
w:
%x=landingpad{i8*,i8*}
cleanup
%y=extractvalue{i8*,i8*}%x,1
call void@sml_unsave()#0
%z=call i8*@sml_unsave_exn(i8*inreg%y)#0
resume{i8*,i8*}%x
A:
%B=call i8*@sml_save()#0
%C=invoke i8*@prim_IntInf_fromInt64(i64 9223372036854775807)
to label%D unwind label%Q
D:
call void@sml_unsave()#0
store i8*%C,i8**%c,align 8
%E=call i8*@sml_alloc(i32 inreg 20)#0
%F=getelementptr inbounds i8,i8*%E,i64 -4
%G=bitcast i8*%F to i32*
store i32 1342177296,i32*%G,align 4
%H=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%I=bitcast i8*%E to i8**
store i8*%H,i8**%I,align 8
%J=load i8*,i8**%b,align 8
%K=getelementptr inbounds i8,i8*%E,i64 8
%L=bitcast i8*%K to i8**
store i8*%J,i8**%L,align 8
%M=getelementptr inbounds i8,i8*%E,i64 16
%N=bitcast i8*%M to i32*
store i32 3,i32*%N,align 4
%O=call fastcc i32@_SMLFN6IntInf1_RE(i8*inreg%E)
%P=icmp eq i32%O,0
br i1%P,label%am,label%U
Q:
%R=landingpad{i8*,i8*}
cleanup
%S=extractvalue{i8*,i8*}%R,1
call void@sml_unsave()#0
%T=call i8*@sml_unsave_exn(i8*inreg%S)#0
resume{i8*,i8*}%R
U:
%V=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%V,i8**%b,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
store i8*%W,i8**%c,align 8
%Z=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aa=bitcast i8*%W to i8**
store i8*%Z,i8**%aa,align 8
%ab=getelementptr inbounds i8,i8*%W,i64 8
%ac=bitcast i8*%ab to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[36x i8]}>,<{[4x i8],i32,[36x i8]}>*@b,i64 0,i32 2,i64 0),i8**%ac,align 8
%ad=getelementptr inbounds i8,i8*%W,i64 16
%ae=bitcast i8*%ad to i32*
store i32 3,i32*%ae,align 4
%af=call i8*@sml_alloc(i32 inreg 60)#0
%ag=getelementptr inbounds i8,i8*%af,i64 -4
%ah=bitcast i8*%ag to i32*
store i32 1342177336,i32*%ah,align 4
%ai=getelementptr inbounds i8,i8*%af,i64 56
%aj=bitcast i8*%ai to i32*
store i32 1,i32*%aj,align 4
%ak=load i8*,i8**%c,align 8
%al=bitcast i8*%af to i8**
store i8*%ak,i8**%al,align 8
call void@sml_raise(i8*inreg%af)#1
unreachable
am:
%an=load i8*,i8**%b,align 8
%ao=call i64@prim_IntInf_toWord64(i8*%an)
ret i64%ao
}
define fastcc i32@_SMLFN5Int647compareE(i8*inreg%a)#4 gc"smlsharp"{
%b=bitcast i8*%a to i64*
%c=load i64,i64*%b,align 4
%d=getelementptr inbounds i8,i8*%a,i64 8
%e=bitcast i8*%d to i64*
%f=load i64,i64*%e,align 4
%g=icmp slt i64%c,%f
%h=icmp ne i64%c,%f
%i=zext i1%h to i32
%j=select i1%g,i32 2,i32%i
ret i32%j
}
define fastcc i64@_SMLFN5Int643minE(i8*inreg%a)#4 gc"smlsharp"{
%b=bitcast i8*%a to i64*
%c=load i64,i64*%b,align 4
%d=getelementptr inbounds i8,i8*%a,i64 8
%e=bitcast i8*%d to i64*
%f=load i64,i64*%e,align 4
%g=icmp slt i64%c,%f
%h=select i1%g,i64%c,i64%f
ret i64%h
}
define fastcc i64@_SMLFN5Int643maxE(i8*inreg%a)#4 gc"smlsharp"{
%b=bitcast i8*%a to i64*
%c=load i64,i64*%b,align 4
%d=getelementptr inbounds i8,i8*%a,i64 8
%e=bitcast i8*%d to i64*
%f=load i64,i64*%e,align 4
%g=icmp sgt i64%c,%f
%h=select i1%g,i64%c,i64%f
ret i64%h
}
define fastcc i32@_SMLFN5Int644signE(i64 inreg%a)#4 gc"smlsharp"{
%b=icmp sgt i64%a,-1
%c=icmp ne i64%a,0
%d=zext i1%c to i32
%e=select i1%b,i32%d,i32 -1
ret i32%e
}
define fastcc i32@_SMLFN5Int648sameSignE(i8*inreg%a)#4 gc"smlsharp"{
%b=bitcast i8*%a to i64*
%c=load i64,i64*%b,align 4
%d=getelementptr inbounds i8,i8*%a,i64 8
%e=bitcast i8*%d to i64*
%f=load i64,i64*%e,align 4
%g=icmp sgt i64%c,-1
%h=icmp ne i64%c,0
%i=zext i1%h to i32
%j=select i1%g,i32%i,i32 -1
%k=icmp sgt i64%f,-1
%l=icmp ne i64%f,0
%m=zext i1%l to i32
%n=select i1%k,i32%m,i32 -1
%o=icmp eq i32%j,%n
%p=zext i1%o to i32
ret i32%p
}
define internal fastcc i8*@_SMLLLN10Int__common3fmtE_89(i32 inreg%a,i64 inreg%b)unnamed_addr#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
%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=call fastcc i32@_SMLFN17SMLSharp__ScanChar10radixToIntE(i32 inreg%a)
%j=sext i32%i to i64
%k=icmp eq i64%b,0
br i1%k,label%l,label%m
l:
ret i8*getelementptr inbounds(<{[4x i8],i32,[2x i8]}>,<{[4x i8],i32,[2x i8]}>*@n,i64 0,i32 2,i64 0)
m:
%n=icmp slt i64%b,1
br i1%n,label%aP,label%o
o:
%p=sub nsw i64 0,%b
%q=call i8*@sml_alloc(i32 inreg 20)#0
%r=getelementptr inbounds i8,i8*%q,i64 -4
%s=bitcast i8*%r to i32*
store i32 1342177296,i32*%s,align 4
%t=bitcast i8*%q to i64*
store i64%p,i64*%t,align 4
br label%u
u:
%v=phi i8*[%as,%ag],[%q,%o]
%w=phi i8*[%aw,%ag],[null,%o]
%x=phi i64[%G,%ag],[%p,%o]
%y=getelementptr inbounds i8,i8*%v,i64 8
%z=bitcast i8*%y to i8**
store i8*%w,i8**%z,align 8
%A=getelementptr inbounds i8,i8*%v,i64 16
%B=bitcast i8*%A to i32*
store i32 2,i32*%B,align 4
store i8*%w,i8**%c,align 8
%C=icmp slt i64%x,0
br i1%C,label%F,label%D
D:
%E=tail call fastcc i8*@_SMLFN10CharVector8fromListE(i8*inreg%w)
ret i8*%E
F:
%G=sdiv i64%x,%j
%H=srem i64%x,%j
%I=icmp eq i64%H,-9223372036854775808
br i1%I,label%O,label%J
J:
%K=sub nsw i64 0,%H
%L=ashr i64%K,31
%M=add nsw i64%L,1
%N=icmp ugt i64%M,1
br i1%N,label%ax,label%ag
O:
%P=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%P,i8**%c,align 8
%Q=call i8*@sml_alloc(i32 inreg 20)#0
%R=getelementptr inbounds i8,i8*%Q,i64 -4
%S=bitcast i8*%R to i32*
store i32 1342177296,i32*%S,align 4
store i8*%Q,i8**%d,align 8
%T=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%U=bitcast i8*%Q to i8**
store i8*%T,i8**%U,align 8
%V=getelementptr inbounds i8,i8*%Q,i64 8
%W=bitcast i8*%V to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[42x i8]}>,<{[4x i8],i32,[42x i8]}>*@l,i64 0,i32 2,i64 0),i8**%W,align 8
%X=getelementptr inbounds i8,i8*%Q,i64 16
%Y=bitcast i8*%X to i32*
store i32 3,i32*%Y,align 4
%Z=call i8*@sml_alloc(i32 inreg 60)#0
%aa=getelementptr inbounds i8,i8*%Z,i64 -4
%ab=bitcast i8*%aa to i32*
store i32 1342177336,i32*%ab,align 4
%ac=getelementptr inbounds i8,i8*%Z,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*%Z to i8**
store i8*%ae,i8**%af,align 8
call void@sml_raise(i8*inreg%Z)#1
unreachable
ag:
%ah=trunc i64%K to i32
%ai=call fastcc i8@_SMLFN17SMLSharp__ScanChar10intToDigitE(i32 inreg%ah)
%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
store i8*%aj,i8**%d,align 8
%am=getelementptr inbounds i8,i8*%aj,i64 1
call void@llvm.memset.p0i8.i32(i8*%am,i8 0,i32 7,i1 false)
store i8%ai,i8*%aj,align 1
%an=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ao=getelementptr inbounds i8,i8*%aj,i64 8
%ap=bitcast i8*%ao to i8**
store i8*%an,i8**%ap,align 8
%aq=getelementptr inbounds i8,i8*%aj,i64 16
%ar=bitcast i8*%aq to i32*
store i32 2,i32*%ar,align 4
%as=call i8*@sml_alloc(i32 inreg 20)#0
%at=getelementptr inbounds i8,i8*%as,i64 -4
%au=bitcast i8*%at to i32*
store i32 1342177296,i32*%au,align 4
%av=bitcast i8*%as to i64*
store i64%G,i64*%av,align 4
%aw=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
br label%u
ax:
%ay=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%ay,i8**%c,align 8
%az=call i8*@sml_alloc(i32 inreg 20)#0
%aA=getelementptr inbounds i8,i8*%az,i64 -4
%aB=bitcast i8*%aA to i32*
store i32 1342177296,i32*%aB,align 4
store i8*%az,i8**%d,align 8
%aC=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aD=bitcast i8*%az to i8**
store i8*%aC,i8**%aD,align 8
%aE=getelementptr inbounds i8,i8*%az,i64 8
%aF=bitcast i8*%aE to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[42x i8]}>,<{[4x i8],i32,[42x i8]}>*@m,i64 0,i32 2,i64 0),i8**%aF,align 8
%aG=getelementptr inbounds i8,i8*%az,i64 16
%aH=bitcast i8*%aG to i32*
store i32 3,i32*%aH,align 4
%aI=call i8*@sml_alloc(i32 inreg 60)#0
%aJ=getelementptr inbounds i8,i8*%aI,i64 -4
%aK=bitcast i8*%aJ to i32*
store i32 1342177336,i32*%aK,align 4
%aL=getelementptr inbounds i8,i8*%aI,i64 56
%aM=bitcast i8*%aL to i32*
store i32 1,i32*%aM,align 4
%aN=load i8*,i8**%d,align 8
%aO=bitcast i8*%aI to i8**
store i8*%aN,i8**%aO,align 8
call void@sml_raise(i8*inreg%aI)#1
unreachable
aP:
%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
%aT=bitcast i8*%aQ to i64*
store i64%b,i64*%aT,align 4
br label%aU
aU:
%aV=phi i8*[%bR,%bF],[%aQ,%aP]
%aW=phi i8*[%bV,%bF],[null,%aP]
%aX=phi i64[%bf,%bF],[%b,%aP]
%aY=getelementptr inbounds i8,i8*%aV,i64 8
%aZ=bitcast i8*%aY to i8**
store i8*%aW,i8**%aZ,align 8
%a0=getelementptr inbounds i8,i8*%aV,i64 16
%a1=bitcast i8*%a0 to i32*
store i32 2,i32*%a1,align 4
store i8*%aW,i8**%c,align 8
%a2=icmp slt i64%aX,0
br i1%a2,label%be,label%a3
a3:
store i8*%aW,i8**%c,align 8
%a4=call i8*@sml_alloc(i32 inreg 20)#0
%a5=getelementptr inbounds i8,i8*%a4,i64 -4
%a6=bitcast i8*%a5 to i32*
store i32 1342177296,i32*%a6,align 4
%a7=getelementptr inbounds i8,i8*%a4,i64 1
call void@llvm.memset.p0i8.i32(i8*%a7,i8 0,i32 7,i1 false)
store i8 126,i8*%a4,align 1
%a8=load i8*,i8**%c,align 8
%a9=getelementptr inbounds i8,i8*%a4,i64 8
%ba=bitcast i8*%a9 to i8**
store i8*%a8,i8**%ba,align 8
%bb=getelementptr inbounds i8,i8*%a4,i64 16
%bc=bitcast i8*%bb to i32*
store i32 2,i32*%bc,align 4
%bd=tail call fastcc i8*@_SMLFN10CharVector8fromListE(i8*inreg%a4)
ret i8*%bd
be:
%bf=sdiv i64%aX,%j
%bg=srem i64%aX,%j
%bh=icmp eq i64%bg,-9223372036854775808
br i1%bh,label%bn,label%bi
bi:
%bj=sub nsw i64 0,%bg
%bk=ashr i64%bj,31
%bl=add nsw i64%bk,1
%bm=icmp ugt i64%bl,1
br i1%bm,label%bW,label%bF
bn:
%bo=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%bo,i8**%c,align 8
%bp=call i8*@sml_alloc(i32 inreg 20)#0
%bq=getelementptr inbounds i8,i8*%bp,i64 -4
%br=bitcast i8*%bq to i32*
store i32 1342177296,i32*%br,align 4
store i8*%bp,i8**%d,align 8
%bs=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bt=bitcast i8*%bp to i8**
store i8*%bs,i8**%bt,align 8
%bu=getelementptr inbounds i8,i8*%bp,i64 8
%bv=bitcast i8*%bu to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[42x i8]}>,<{[4x i8],i32,[42x i8]}>*@l,i64 0,i32 2,i64 0),i8**%bv,align 8
%bw=getelementptr inbounds i8,i8*%bp,i64 16
%bx=bitcast i8*%bw to i32*
store i32 3,i32*%bx,align 4
%by=call i8*@sml_alloc(i32 inreg 60)#0
%bz=getelementptr inbounds i8,i8*%by,i64 -4
%bA=bitcast i8*%bz to i32*
store i32 1342177336,i32*%bA,align 4
%bB=getelementptr inbounds i8,i8*%by,i64 56
%bC=bitcast i8*%bB to i32*
store i32 1,i32*%bC,align 4
%bD=load i8*,i8**%d,align 8
%bE=bitcast i8*%by to i8**
store i8*%bD,i8**%bE,align 8
call void@sml_raise(i8*inreg%by)#1
unreachable
bF:
%bG=trunc i64%bj to i32
%bH=call fastcc i8@_SMLFN17SMLSharp__ScanChar10intToDigitE(i32 inreg%bG)
%bI=call i8*@sml_alloc(i32 inreg 20)#0
%bJ=getelementptr inbounds i8,i8*%bI,i64 -4
%bK=bitcast i8*%bJ to i32*
store i32 1342177296,i32*%bK,align 4
store i8*%bI,i8**%d,align 8
%bL=getelementptr inbounds i8,i8*%bI,i64 1
call void@llvm.memset.p0i8.i32(i8*%bL,i8 0,i32 7,i1 false)
store i8%bH,i8*%bI,align 1
%bM=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bN=getelementptr inbounds i8,i8*%bI,i64 8
%bO=bitcast i8*%bN to i8**
store i8*%bM,i8**%bO,align 8
%bP=getelementptr inbounds i8,i8*%bI,i64 16
%bQ=bitcast i8*%bP to i32*
store i32 2,i32*%bQ,align 4
%bR=call i8*@sml_alloc(i32 inreg 20)#0
%bS=getelementptr inbounds i8,i8*%bR,i64 -4
%bT=bitcast i8*%bS to i32*
store i32 1342177296,i32*%bT,align 4
%bU=bitcast i8*%bR to i64*
store i64%bf,i64*%bU,align 4
%bV=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
br label%aU
bW:
%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,[42x i8]}>,<{[4x i8],i32,[42x i8]}>*@m,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
}
define internal fastcc i8*@_SMLLLN10Int__common3fmtE_91(i8*inreg%a,i64 inreg%b)#2 gc"smlsharp"{
%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%f,label%h
f:
%g=bitcast i8*%a to i32*
br label%k
h:
call void@sml_check(i32 inreg%d)
%i=bitcast i8**%c to i32**
%j=load i32*,i32**%i,align 8
br label%k
k:
%l=phi i32*[%j,%h],[%g,%f]
%m=load i32,i32*%l,align 4
%n=tail call fastcc i8*@_SMLLLN10Int__common3fmtE_89(i32 inreg%m,i64 inreg%b)
ret i8*%n
}
define fastcc i8*@_SMLFN5Int643fmtE(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*,i64)*@_SMLLLN10Int__common3fmtE_91 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*)*@_SMLLLN10Int__common3fmtE_117 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*@_SMLLLN10Int__common4scanE_98(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%p,%r
%t=and i32%s,-8
%u=lshr i32%r,3
%v=getelementptr inbounds i8,i8*%k,i64 8
%w=bitcast i8*%v to i32*
%x=load i32,i32*%w,align 4
%y=shl i32%x,%u
%z=or i32%t,4
%A=call fastcc i8*@_SMLFN17SMLSharp__ScanChar7scanIntE(i32 inreg%x,i32 inreg%o)
%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**%d,align 8
%G=load i8*,i8**%e,align 8
%H=getelementptr inbounds i8,i8*%G,i64 16
%I=bitcast i8*%H to i32*
%J=load i32,i32*%I,align 4
%K=call i8*@sml_alloc(i32 inreg 4)#0
%L=bitcast i8*%K to i32*
%M=getelementptr inbounds i8,i8*%K,i64 -4
%N=bitcast i8*%M to i32*
store i32 4,i32*%N,align 4
store i32%J,i32*%L,align 4
%O=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%P=call fastcc i8*%D(i8*inreg%O,i8*inreg%K)
%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=bitcast i8**%e to i8***
%W=load i8**,i8***%V,align 8
%X=load i8*,i8**%W,align 8
%Y=call fastcc i8*%S(i8*inreg%U,i8*inreg%X)
%Z=getelementptr inbounds i8,i8*%Y,i64 16
%aa=bitcast i8*%Z to i8*(i8*,i8*)**
%ab=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aa,align 8
%ac=bitcast i8*%Y to i8**
%ad=load i8*,i8**%ac,align 8
%ae=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%af=call fastcc i8*%ab(i8*inreg%ad,i8*inreg%ae)
%ag=icmp eq i8*%af,null
br i1%ag,label%ah,label%ai
ah:
ret i8*null
ai:
%aj=bitcast i8*%af to i8**
%ak=load i8*,i8**%aj,align 8
store i8*%ak,i8**%c,align 8
%al=bitcast i8*%ak to i8**
%am=load i8*,i8**%al,align 8
%an=bitcast i8*%am to i8**
%ao=load i8*,i8**%an,align 8
store i8*%ao,i8**%d,align 8
%ap=getelementptr inbounds i8,i8*%am,i64 8
%aq=bitcast i8*%ap to i32*
%ar=load i32,i32*%aq,align 4
%as=getelementptr inbounds i8,i8*%am,i64 12
%at=bitcast i8*%as to i32*
%au=load i32,i32*%at,align 4
%av=load i8*,i8**%e,align 8
%aw=getelementptr inbounds i8,i8*%av,i64 8
%ax=bitcast i8*%aw to i32*
%ay=load i32,i32*%ax,align 4
%az=icmp eq i32%ay,0
br i1%az,label%aF,label%aA
aA:
store i8*null,i8**%c,align 8
%aB=sext i32%r to i64
%aC=getelementptr inbounds i8,i8*%ak,i64%aB
%aD=bitcast i8*%aC to i8**
%aE=load i8*,i8**%aD,align 8
br label%aQ
aF:
%aG=getelementptr inbounds i8,i8*%av,i64 12
%aH=bitcast i8*%aG to i32*
%aI=load i32,i32*%aH,align 4
%aJ=call i8*@sml_alloc(i32 inreg%aI)#0
%aK=getelementptr inbounds i8,i8*%aJ,i64 -4
%aL=bitcast i8*%aK to i32*
store i32%aI,i32*%aL,align 4
%aM=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aN=sext i32%r to i64
%aO=getelementptr inbounds i8,i8*%aM,i64%aN
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%aJ,i8*%aO,i32%aI,i1 false)
%aP=load i8*,i8**%d,align 8
br label%aQ
aQ:
%aR=phi i8*[%aP,%aF],[%ao,%aA]
%aS=phi i8*[%aJ,%aF],[%aE,%aA]
store i8*%aS,i8**%c,align 8
%aT=sext i32%au to i64
%aU=icmp eq i32%ar,0
store i8*null,i8**%d,align 8
br i1%aU,label%ci,label%aV
aV:
%aW=phi i64[%bZ,%bP],[0,%aQ]
%aX=phi i8*[%bS,%bP],[%aR,%aQ]
%aY=icmp eq i8*%aX,null
br i1%aY,label%aZ,label%bu
aZ:
%a0=load i8*,i8**%e,align 8
%a1=getelementptr inbounds i8,i8*%a0,i64 12
%a2=bitcast i8*%a1 to i32*
%a3=load i32,i32*%a2,align 4
store i8*null,i8**%e,align 8
%a4=getelementptr inbounds i8,i8*%a0,i64 8
%a5=bitcast i8*%a4 to i32*
%a6=load i32,i32*%a5,align 4
%a7=call i8*@sml_alloc(i32 inreg%z)#0
%a8=or i32%t,1342177280
%a9=getelementptr inbounds i8,i8*%a7,i64 -4
%ba=bitcast i8*%a9 to i32*
store i32%a8,i32*%ba,align 4
store i8*%a7,i8**%d,align 8
call void@llvm.memset.p0i8.i32(i8*%a7,i8 0,i32%z,i1 false)
%bb=bitcast i8*%a7 to i64*
store i64%aW,i64*%bb,align 4
%bc=icmp eq i32%a6,0
%bd=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%be=sext i32%r to i64
%bf=getelementptr inbounds i8,i8*%a7,i64%be
br i1%bc,label%bg,label%bh
bg:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%bf,i8*%bd,i32%a3,i1 false)
br label%bj
bh:
%bi=bitcast i8*%bf to i8**
store i8*%bd,i8**%bi,align 8
br label%bj
bj:
%bk=sext i32%t to i64
%bl=getelementptr inbounds i8,i8*%a7,i64%bk
%bm=bitcast i8*%bl to i32*
store i32%y,i32*%bm,align 4
%bn=call i8*@sml_alloc(i32 inreg 12)#0
%bo=getelementptr inbounds i8,i8*%bn,i64 -4
%bp=bitcast i8*%bo to i32*
store i32 1342177288,i32*%bp,align 4
%bq=load i8*,i8**%d,align 8
%br=bitcast i8*%bn to i8**
store i8*%bq,i8**%br,align 8
%bs=getelementptr inbounds i8,i8*%bn,i64 8
%bt=bitcast i8*%bs to i32*
store i32 1,i32*%bt,align 4
ret i8*%bn
bu:
%bv=call{i64,i1}@llvm.smul.with.overflow.i64(i64%aW,i64%aT)#0
%bw=extractvalue{i64,i1}%bv,1
br i1%bw,label%bx,label%bP
bx:
store i8*null,i8**%e,align 8
%by=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%by,i8**%c,align 8
%bz=call i8*@sml_alloc(i32 inreg 20)#0
%bA=getelementptr inbounds i8,i8*%bz,i64 -4
%bB=bitcast i8*%bA to i32*
store i32 1342177296,i32*%bB,align 4
store i8*%bz,i8**%d,align 8
%bC=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bD=bitcast i8*%bz to i8**
store i8*%bC,i8**%bD,align 8
%bE=getelementptr inbounds i8,i8*%bz,i64 8
%bF=bitcast i8*%bE to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[42x i8]}>,<{[4x i8],i32,[42x i8]}>*@r,i64 0,i32 2,i64 0),i8**%bF,align 8
%bG=getelementptr inbounds i8,i8*%bz,i64 16
%bH=bitcast i8*%bG to i32*
store i32 3,i32*%bH,align 4
%bI=call i8*@sml_alloc(i32 inreg 60)#0
%bJ=getelementptr inbounds i8,i8*%bI,i64 -4
%bK=bitcast i8*%bJ to i32*
store i32 1342177336,i32*%bK,align 4
%bL=getelementptr inbounds i8,i8*%bI,i64 56
%bM=bitcast i8*%bL to i32*
store i32 1,i32*%bM,align 4
%bN=load i8*,i8**%d,align 8
%bO=bitcast i8*%bI to i8**
store i8*%bN,i8**%bO,align 8
call void@sml_raise(i8*inreg%bI)#1
unreachable
bP:
%bQ=getelementptr inbounds i8,i8*%aX,i64 8
%bR=bitcast i8*%bQ to i8**
%bS=load i8*,i8**%bR,align 8
%bT=bitcast i8*%aX to i32*
%bU=load i32,i32*%bT,align 4
%bV=mul nsw i64%aW,%aT
%bW=sext i32%bU to i64
%bX=call{i64,i1}@llvm.ssub.with.overflow.i64(i64%bV,i64%bW)#0
%bY=extractvalue{i64,i1}%bX,1
%bZ=sub nsw i64%bV,%bW
br i1%bY,label%b0,label%aV
b0:
store i8*null,i8**%e,align 8
%b1=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%b1,i8**%c,align 8
%b2=call i8*@sml_alloc(i32 inreg 20)#0
%b3=getelementptr inbounds i8,i8*%b2,i64 -4
%b4=bitcast i8*%b3 to i32*
store i32 1342177296,i32*%b4,align 4
store i8*%b2,i8**%d,align 8
%b5=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%b6=bitcast i8*%b2 to i8**
store i8*%b5,i8**%b6,align 8
%b7=getelementptr inbounds i8,i8*%b2,i64 8
%b8=bitcast i8*%b7 to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[42x i8]}>,<{[4x i8],i32,[42x i8]}>*@s,i64 0,i32 2,i64 0),i8**%b8,align 8
%b9=getelementptr inbounds i8,i8*%b2,i64 16
%ca=bitcast i8*%b9 to i32*
store i32 3,i32*%ca,align 4
%cb=call i8*@sml_alloc(i32 inreg 60)#0
%cc=getelementptr inbounds i8,i8*%cb,i64 -4
%cd=bitcast i8*%cc to i32*
store i32 1342177336,i32*%cd,align 4
%ce=getelementptr inbounds i8,i8*%cb,i64 56
%cf=bitcast i8*%ce to i32*
store i32 1,i32*%cf,align 4
%cg=load i8*,i8**%d,align 8
%ch=bitcast i8*%cb to i8**
store i8*%cg,i8**%ch,align 8
call void@sml_raise(i8*inreg%cb)#1
unreachable
ci:
%cj=phi i64[%dm,%dc],[0,%aQ]
%ck=phi i8*[%df,%dc],[%aR,%aQ]
%cl=icmp eq i8*%ck,null
br i1%cl,label%cm,label%cR
cm:
%cn=load i8*,i8**%e,align 8
%co=getelementptr inbounds i8,i8*%cn,i64 12
%cp=bitcast i8*%co to i32*
%cq=load i32,i32*%cp,align 4
store i8*null,i8**%e,align 8
%cr=getelementptr inbounds i8,i8*%cn,i64 8
%cs=bitcast i8*%cr to i32*
%ct=load i32,i32*%cs,align 4
%cu=call i8*@sml_alloc(i32 inreg%z)#0
%cv=or i32%t,1342177280
%cw=getelementptr inbounds i8,i8*%cu,i64 -4
%cx=bitcast i8*%cw to i32*
store i32%cv,i32*%cx,align 4
store i8*%cu,i8**%d,align 8
call void@llvm.memset.p0i8.i32(i8*%cu,i8 0,i32%z,i1 false)
%cy=bitcast i8*%cu to i64*
store i64%cj,i64*%cy,align 4
%cz=icmp eq i32%ct,0
%cA=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%cB=sext i32%r to i64
%cC=getelementptr inbounds i8,i8*%cu,i64%cB
br i1%cz,label%cD,label%cE
cD:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%cC,i8*%cA,i32%cq,i1 false)
br label%cG
cE:
%cF=bitcast i8*%cC to i8**
store i8*%cA,i8**%cF,align 8
br label%cG
cG:
%cH=sext i32%t to i64
%cI=getelementptr inbounds i8,i8*%cu,i64%cH
%cJ=bitcast i8*%cI to i32*
store i32%y,i32*%cJ,align 4
%cK=call i8*@sml_alloc(i32 inreg 12)#0
%cL=getelementptr inbounds i8,i8*%cK,i64 -4
%cM=bitcast i8*%cL to i32*
store i32 1342177288,i32*%cM,align 4
%cN=load i8*,i8**%d,align 8
%cO=bitcast i8*%cK to i8**
store i8*%cN,i8**%cO,align 8
%cP=getelementptr inbounds i8,i8*%cK,i64 8
%cQ=bitcast i8*%cP to i32*
store i32 1,i32*%cQ,align 4
ret i8*%cK
cR:
%cS=call{i64,i1}@llvm.smul.with.overflow.i64(i64%cj,i64%aT)#0
%cT=extractvalue{i64,i1}%cS,1
br i1%cT,label%cU,label%dc
cU:
store i8*null,i8**%e,align 8
%cV=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%cV,i8**%c,align 8
%cW=call i8*@sml_alloc(i32 inreg 20)#0
%cX=getelementptr inbounds i8,i8*%cW,i64 -4
%cY=bitcast i8*%cX to i32*
store i32 1342177296,i32*%cY,align 4
store i8*%cW,i8**%d,align 8
%cZ=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%c0=bitcast i8*%cW to i8**
store i8*%cZ,i8**%c0,align 8
%c1=getelementptr inbounds i8,i8*%cW,i64 8
%c2=bitcast i8*%c1 to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[42x i8]}>,<{[4x i8],i32,[42x i8]}>*@p,i64 0,i32 2,i64 0),i8**%c2,align 8
%c3=getelementptr inbounds i8,i8*%cW,i64 16
%c4=bitcast i8*%c3 to i32*
store i32 3,i32*%c4,align 4
%c5=call i8*@sml_alloc(i32 inreg 60)#0
%c6=getelementptr inbounds i8,i8*%c5,i64 -4
%c7=bitcast i8*%c6 to i32*
store i32 1342177336,i32*%c7,align 4
%c8=getelementptr inbounds i8,i8*%c5,i64 56
%c9=bitcast i8*%c8 to i32*
store i32 1,i32*%c9,align 4
%da=load i8*,i8**%d,align 8
%db=bitcast i8*%c5 to i8**
store i8*%da,i8**%db,align 8
call void@sml_raise(i8*inreg%c5)#1
unreachable
dc:
%dd=getelementptr inbounds i8,i8*%ck,i64 8
%de=bitcast i8*%dd to i8**
%df=load i8*,i8**%de,align 8
%dg=bitcast i8*%ck to i32*
%dh=load i32,i32*%dg,align 4
%di=mul nsw i64%cj,%aT
%dj=sext i32%dh to i64
%dk=call{i64,i1}@llvm.sadd.with.overflow.i64(i64%di,i64%dj)#0
%dl=extractvalue{i64,i1}%dk,1
%dm=add nsw i64%di,%dj
br i1%dl,label%dn,label%ci
dn:
store i8*null,i8**%e,align 8
%do=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%do,i8**%c,align 8
%dp=call i8*@sml_alloc(i32 inreg 20)#0
%dq=getelementptr inbounds i8,i8*%dp,i64 -4
%dr=bitcast i8*%dq to i32*
store i32 1342177296,i32*%dr,align 4
store i8*%dp,i8**%d,align 8
%ds=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%dt=bitcast i8*%dp to i8**
store i8*%ds,i8**%dt,align 8
%du=getelementptr inbounds i8,i8*%dp,i64 8
%dv=bitcast i8*%du to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[42x i8]}>,<{[4x i8],i32,[42x i8]}>*@q,i64 0,i32 2,i64 0),i8**%dv,align 8
%dw=getelementptr inbounds i8,i8*%dp,i64 16
%dx=bitcast i8*%dw to i32*
store i32 3,i32*%dx,align 4
%dy=call i8*@sml_alloc(i32 inreg 60)#0
%dz=getelementptr inbounds i8,i8*%dy,i64 -4
%dA=bitcast i8*%dz to i32*
store i32 1342177336,i32*%dA,align 4
%dB=getelementptr inbounds i8,i8*%dy,i64 56
%dC=bitcast i8*%dB to i32*
store i32 1,i32*%dC,align 4
%dD=load i8*,i8**%d,align 8
%dE=bitcast i8*%dy to i8**
store i8*%dD,i8**%dE,align 8
call void@sml_raise(i8*inreg%dy)#1
unreachable
}
define internal fastcc i8*@_SMLLLN10Int__common4scanE_99(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*)*@_SMLLLN10Int__common4scanE_98 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*)*@_SMLLLN10Int__common4scanE_98 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*@_SMLLLN10Int__common4scanE_100(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*)*@_SMLLLN10Int__common4scanE_99 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*)*@_SMLLLN10Int__common4scanE_99 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*@_SMLFN5Int648toStringE(i64 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*@_SMLLLN10Int__common3fmtE_89(i32 inreg 1,i64 inreg%a)
ret i8*%f
}
define fastcc i8*@_SMLFN5Int6410fromStringE(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 8)
%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*@_SMLLLN10Int__common4scanE_100(i32 inreg 0,i32 inreg 4,i32 inreg 1)
%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*@_SMLLLN5Int644scanE_106(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*@_SMLLLN10Int__common4scanE_100(i32 inreg%l,i32 inreg%o,i32 inreg%b)
ret i8*%p
}
define fastcc i8*@_SMLFN5Int644scanE(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)*@_SMLLLN5Int644scanE_106 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*)*@_SMLLLN5Int644scanE_122 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*@_SMLLLN3Int7toLargeE_109(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=bitcast i8*%b to i64*
%d=load i64,i64*%c,align 4
%e=tail call fastcc i8*@_SMLFN5Int647toLargeE(i64 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLLN3Int9fromLargeE_110(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i64@_SMLFN5Int649fromLargeE(i8*inreg%b)
%d=tail call i8*@sml_alloc(i32 inreg 8)#0
%e=getelementptr inbounds i8,i8*%d,i64 -4
%f=bitcast i8*%e to i32*
store i32 8,i32*%f,align 4
%g=bitcast i8*%d to i64*
store i64%c,i64*%g,align 4
ret i8*%d
}
define internal fastcc i8*@_SMLLLN10Int__common7compareE_111(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=bitcast i8*%b to i64*
%d=load i64,i64*%c,align 4
%e=getelementptr inbounds i8,i8*%b,i64 8
%f=bitcast i8*%e to i64*
%g=load i64,i64*%f,align 4
%h=icmp slt i64%d,%g
%i=icmp ne i64%d,%g
%j=zext i1%i to i32
%k=select i1%h,i32 2,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*@_SMLLLN10Int__common3minE_112(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=bitcast i8*%b to i64*
%d=load i64,i64*%c,align 4
%e=getelementptr inbounds i8,i8*%b,i64 8
%f=bitcast i8*%e to i64*
%g=load i64,i64*%f,align 4
%h=icmp slt i64%d,%g
%i=select i1%h,i64%d,i64%g
%j=tail call i8*@sml_alloc(i32 inreg 8)#0
%k=getelementptr inbounds i8,i8*%j,i64 -4
%l=bitcast i8*%k to i32*
store i32 8,i32*%l,align 4
%m=bitcast i8*%j to i64*
store i64%i,i64*%m,align 4
ret i8*%j
}
define internal fastcc i8*@_SMLLLN10Int__common3maxE_113(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=bitcast i8*%b to i64*
%d=load i64,i64*%c,align 4
%e=getelementptr inbounds i8,i8*%b,i64 8
%f=bitcast i8*%e to i64*
%g=load i64,i64*%f,align 4
%h=icmp sgt i64%d,%g
%i=select i1%h,i64%d,i64%g
%j=tail call i8*@sml_alloc(i32 inreg 8)#0
%k=getelementptr inbounds i8,i8*%j,i64 -4
%l=bitcast i8*%k to i32*
store i32 8,i32*%l,align 4
%m=bitcast i8*%j to i64*
store i64%i,i64*%m,align 4
ret i8*%j
}
define internal fastcc i8*@_SMLLLN10Int__common4signE_114(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=bitcast i8*%b to i64*
%d=load i64,i64*%c,align 4
%e=icmp sgt i64%d,-1
%f=icmp ne i64%d,0
%g=zext i1%f to i32
%h=select i1%e,i32%g,i32 -1
%i=tail call i8*@sml_alloc(i32 inreg 4)#0
%j=bitcast i8*%i to i32*
%k=getelementptr inbounds i8,i8*%i,i64 -4
%l=bitcast i8*%k to i32*
store i32 4,i32*%l,align 4
store i32%h,i32*%j,align 4
ret i8*%i
}
define internal fastcc i8*@_SMLLLN10Int__common8sameSignE_115(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i32@_SMLFN5Int648sameSignE(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*@_SMLLLN10Int__common3fmtE_117(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=bitcast i8*%b to i64*
%d=load i64,i64*%c,align 4
%e=tail call fastcc i8*@_SMLLLN10Int__common3fmtE_91(i8*inreg%a,i64 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLLN10Int__common3fmtE_118(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*@_SMLFN5Int643fmtE(i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLLN10Int__common8toStringE_120(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=bitcast i8*%b to i64*
%d=load i64,i64*%c,align 4
%e=tail call fastcc i8*@_SMLFN5Int648toStringE(i64 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLLN10Int__common10fromStringE_121(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN5Int6410fromStringE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN5Int644scanE_122(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*@_SMLLLN5Int644scanE_106(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLLN5Int644scanE_123(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*@_SMLFN5Int644scanE(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}
