@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*(i16)*@_SMLFN5Int167toLargeE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN3Int7toLargeE_107 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/Int16.sml:15.20(305)\00"}>,align 8
@c=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i16(i8*)*@_SMLFN5Int169fromLargeE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN3Int9fromLargeE_108 to void(...)*),i32 -2147483647}>,align 8
@d=private unnamed_addr constant<{[4x i8],i32,i32,[4x i8],i32}><{[4x i8]zeroinitializer,i32 -805306360,i32 16,[4x i8]zeroinitializer,i32 0}>,align 8
@e=private unnamed_addr constant<{[4x i8],i32,i16,[6x i8],i32}><{[4x i8]zeroinitializer,i32 -805306360,i16 -32768,[6x i8]zeroinitializer,i32 0}>,align 8
@f=private unnamed_addr constant<{[4x i8],i32,i16,[6x i8],i32}><{[4x i8]zeroinitializer,i32 -805306360,i16 32767,[6x i8]zeroinitializer,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*)*@_SMLFN5Int167compareE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN10Int__common7compareE_109 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(i16(i8*)*@_SMLFN5Int163minE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN10Int__common3minE_110 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(i16(i8*)*@_SMLFN5Int163maxE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN10Int__common3maxE_111 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(i16)*@_SMLFN5Int164signE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN10Int__common4signE_112 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*)*@_SMLFN5Int168sameSignE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN10Int__common8sameSignE_113 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:67.16(1648)\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.66(1968)\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)*@_SMLFN5Int163fmtE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN10Int__common3fmtE_116 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:89.18(2459)\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.44(2564)\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:91.50(2570)\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:91.48(2568)\00"}>,align 8
@t=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
@u=private unnamed_addr constant<{[4x i8],i32,[42x i8]}><{[4x i8]zeroinitializer,i32 -2147483606,[42x i8]c"src/basis/main/Int_common.sml:93.50(2684)\00"}>,align 8
@v=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
@w=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i16)*@_SMLFN5Int168toStringE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN10Int__common8toStringE_118 to void(...)*),i32 -2147483647}>,align 8
@x=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN5Int1610fromStringE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN10Int__common10fromStringE_119 to void(...)*),i32 -2147483647}>,align 8
@y=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32,i32)*@_SMLFN5Int164scanE to void(...)*),void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLLN5Int164scanE_121 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN5Int167toLargeE=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*)
@_SMLZN5Int169fromLargeE=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*)
@_SMLZN5Int169precisionE=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*)
@_SMLZN5Int166minIntE=local_unnamed_addr constant i8*bitcast(i16*getelementptr inbounds(<{[4x i8],i32,i16,[6x i8],i32}>,<{[4x i8],i32,i16,[6x i8],i32}>*@e,i64 0,i32 2)to i8*)
@_SMLZN5Int166maxIntE=local_unnamed_addr constant i8*bitcast(i16*getelementptr inbounds(<{[4x i8],i32,i16,[6x i8],i32}>,<{[4x i8],i32,i16,[6x i8],i32}>*@f,i64 0,i32 2)to i8*)
@_SMLZN5Int167compareE=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*)
@_SMLZN5Int163minE=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*)
@_SMLZN5Int163maxE=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*)
@_SMLZN5Int164signE=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*)
@_SMLZN5Int168sameSignE=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*)
@_SMLZN5Int163fmtE=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*)
@_SMLZN5Int168toStringE=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*)
@_SMLZN5Int164scanE=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*)
@_SMLZN5Int1610fromStringE=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*)
@_SML_ftab20bb944d2a1e9531_Int16=external global i8
@z=private unnamed_addr global i8 0
declare void@llvm.gcroot(i8**,i8*)#0
declare{i16,i1}@llvm.sadd.with.overflow.i16(i16,i16)#0
declare{i16,i1}@llvm.smul.with.overflow.i16(i16,i16)#0
declare{i16,i1}@llvm.ssub.with.overflow.i16(i16,i16)#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 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@_SMLFN6IntInf5toIntE(i8*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_tabb20bb944d2a1e9531_Int16()#3{
unreachable
}
define void@_SML_load20bb944d2a1e9531_Int16(i8*%a)local_unnamed_addr#0{
%b=load i8,i8*@z,align 1
%c=icmp eq i8%b,0
br i1%c,label%e,label%d
d:
ret void
e:
store i8 1,i8*@z,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_tabb20bb944d2a1e9531_Int16,i8*@_SML_ftab20bb944d2a1e9531_Int16,i8*null)#0
ret void
}
define void@_SML_main20bb944d2a1e9531_Int16()local_unnamed_addr#2 gc"smlsharp"{
%a=load i8,i8*@z,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*@z,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*@_SMLFN5Int167toLargeE(i16 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=sext i16%a to i32
%g=tail call fastcc i8*@_SMLFN6IntInf7fromIntE(i32 inreg%f)
ret i8*%g
}
define fastcc i16@_SMLFN5Int169fromLargeE(i8*inreg%a)#2 gc"smlsharp"{
j:
%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%h,label%f
f:
call void@sml_check(i32 inreg%d)
%g=load i8*,i8**%b,align 8
br label%h
h:
%i=phi i8*[%g,%f],[%a,%j]
store i8*null,i8**%b,align 8
%k=call fastcc i32@_SMLFN6IntInf5toIntE(i8*inreg%i)
%l=ashr i32%k,15
%m=add nsw i32%l,1
%n=icmp ugt i32%m,1
br i1%n,label%q,label%o
o:
%p=trunc i32%k to i16
ret i16%p
q:
%r=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%r,i8**%b,align 8
%s=call i8*@sml_alloc(i32 inreg 20)#0
%t=getelementptr inbounds i8,i8*%s,i64 -4
%u=bitcast i8*%t to i32*
store i32 1342177296,i32*%u,align 4
store i8*%s,i8**%c,align 8
%v=load i8*,i8**%b,align 8
store i8*null,i8**%b,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,[36x i8]}>,<{[4x i8],i32,[36x i8]}>*@b,i64 0,i32 2,i64 0),i8**%y,align 8
%z=getelementptr inbounds i8,i8*%s,i64 16
%A=bitcast i8*%z to i32*
store i32 3,i32*%A,align 4
%B=call i8*@sml_alloc(i32 inreg 60)#0
%C=getelementptr inbounds i8,i8*%B,i64 -4
%D=bitcast i8*%C to i32*
store i32 1342177336,i32*%D,align 4
%E=getelementptr inbounds i8,i8*%B,i64 56
%F=bitcast i8*%E to i32*
store i32 1,i32*%F,align 4
%G=load i8*,i8**%c,align 8
%H=bitcast i8*%B to i8**
store i8*%G,i8**%H,align 8
call void@sml_raise(i8*inreg%B)#1
unreachable
}
define fastcc i32@_SMLFN5Int167compareE(i8*inreg%a)#4 gc"smlsharp"{
%b=bitcast i8*%a to i16*
%c=load i16,i16*%b,align 2
%d=getelementptr inbounds i8,i8*%a,i64 2
%e=bitcast i8*%d to i16*
%f=load i16,i16*%e,align 2
%g=icmp slt i16%c,%f
%h=icmp ne i16%c,%f
%i=zext i1%h to i32
%j=select i1%g,i32 2,i32%i
ret i32%j
}
define fastcc i16@_SMLFN5Int163minE(i8*inreg%a)#4 gc"smlsharp"{
%b=bitcast i8*%a to i16*
%c=load i16,i16*%b,align 2
%d=getelementptr inbounds i8,i8*%a,i64 2
%e=bitcast i8*%d to i16*
%f=load i16,i16*%e,align 2
%g=icmp slt i16%c,%f
%h=select i1%g,i16%c,i16%f
ret i16%h
}
define fastcc i16@_SMLFN5Int163maxE(i8*inreg%a)#4 gc"smlsharp"{
%b=bitcast i8*%a to i16*
%c=load i16,i16*%b,align 2
%d=getelementptr inbounds i8,i8*%a,i64 2
%e=bitcast i8*%d to i16*
%f=load i16,i16*%e,align 2
%g=icmp sgt i16%c,%f
%h=select i1%g,i16%c,i16%f
ret i16%h
}
define fastcc i32@_SMLFN5Int164signE(i16 inreg%a)#4 gc"smlsharp"{
%b=icmp sgt i16%a,-1
%c=icmp ne i16%a,0
%d=zext i1%c to i32
%e=select i1%b,i32%d,i32 -1
ret i32%e
}
define fastcc i32@_SMLFN5Int168sameSignE(i8*inreg%a)#4 gc"smlsharp"{
%b=bitcast i8*%a to i16*
%c=load i16,i16*%b,align 2
%d=getelementptr inbounds i8,i8*%a,i64 2
%e=bitcast i8*%d to i16*
%f=load i16,i16*%e,align 2
%g=icmp sgt i16%c,-1
%h=icmp ne i16%c,0
%i=zext i1%h to i32
%j=select i1%g,i32%i,i32 -1
%k=icmp sgt i16%f,-1
%l=icmp ne i16%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_84(i32 inreg%a,i16 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=ashr i32%i,15
%k=add nsw i32%j,1
%l=icmp ugt i32%k,1
br i1%l,label%p,label%m
m:
%n=trunc i32%i to i16
%o=icmp eq i16%b,0
br i1%o,label%H,label%I
p:
%q=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%q,i8**%c,align 8
%r=call i8*@sml_alloc(i32 inreg 20)#0
%s=getelementptr inbounds i8,i8*%r,i64 -4
%t=bitcast i8*%s to i32*
store i32 1342177296,i32*%t,align 4
store i8*%r,i8**%d,align 8
%u=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%v=bitcast i8*%r to i8**
store i8*%u,i8**%v,align 8
%w=getelementptr inbounds i8,i8*%r,i64 8
%x=bitcast i8*%w to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[42x i8]}>,<{[4x i8],i32,[42x i8]}>*@l,i64 0,i32 2,i64 0),i8**%x,align 8
%y=getelementptr inbounds i8,i8*%r,i64 16
%z=bitcast i8*%y to i32*
store i32 3,i32*%z,align 4
%A=call i8*@sml_alloc(i32 inreg 60)#0
%B=getelementptr inbounds i8,i8*%A,i64 -4
%C=bitcast i8*%B to i32*
store i32 1342177336,i32*%C,align 4
%D=getelementptr inbounds i8,i8*%A,i64 56
%E=bitcast i8*%D to i32*
store i32 1,i32*%E,align 4
%F=load i8*,i8**%d,align 8
%G=bitcast i8*%A to i8**
store i8*%F,i8**%G,align 8
call void@sml_raise(i8*inreg%A)#1
unreachable
H:
ret i8*getelementptr inbounds(<{[4x i8],i32,[2x i8]}>,<{[4x i8],i32,[2x i8]}>*@n,i64 0,i32 2,i64 0)
I:
%J=icmp slt i16%b,1
br i1%J,label%aR,label%K
K:
%L=sub nsw i16 0,%b
%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
%P=getelementptr inbounds i8,i8*%M,i64 2
call void@llvm.memset.p0i8.i32(i8*%P,i8 0,i32 6,i1 false)
%Q=bitcast i8*%M to i16*
store i16%L,i16*%Q,align 2
br label%R
R:
%S=phi i8*[%at,%ag],[%M,%K]
%T=phi i8*[%ay,%ag],[null,%K]
%U=phi i16[%ae,%ag],[%L,%K]
%V=getelementptr inbounds i8,i8*%S,i64 8
%W=bitcast i8*%V to i8**
store i8*%T,i8**%W,align 8
%X=getelementptr inbounds i8,i8*%S,i64 16
%Y=bitcast i8*%X to i32*
store i32 2,i32*%Y,align 4
store i8*%T,i8**%c,align 8
%Z=icmp slt i16%U,0
br i1%Z,label%ac,label%aa
aa:
%ab=tail call fastcc i8*@_SMLFN10CharVector8fromListE(i8*inreg%T)
ret i8*%ab
ac:
%ad=srem i16%U,%n
%ae=sdiv i16%U,%n
%af=icmp eq i16%ad,-32768
br i1%af,label%az,label%ag
ag:
%ah=sub nsw i16 0,%ad
%ai=sext i16%ah to i32
%aj=call fastcc i8@_SMLFN17SMLSharp__ScanChar10intToDigitE(i32 inreg%ai)
%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=getelementptr inbounds i8,i8*%ak,i64 1
call void@llvm.memset.p0i8.i32(i8*%an,i8 0,i32 7,i1 false)
store i8%aj,i8*%ak,align 1
%ao=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ap=getelementptr inbounds i8,i8*%ak,i64 8
%aq=bitcast i8*%ap to i8**
store i8*%ao,i8**%aq,align 8
%ar=getelementptr inbounds i8,i8*%ak,i64 16
%as=bitcast i8*%ar to i32*
store i32 2,i32*%as,align 4
%at=call i8*@sml_alloc(i32 inreg 20)#0
%au=getelementptr inbounds i8,i8*%at,i64 -4
%av=bitcast i8*%au to i32*
store i32 1342177296,i32*%av,align 4
%aw=getelementptr inbounds i8,i8*%at,i64 2
call void@llvm.memset.p0i8.i32(i8*%aw,i8 0,i32 6,i1 false)
%ax=bitcast i8*%at to i16*
store i16%ae,i16*%ax,align 2
%ay=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
br label%R
az:
%aA=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%aA,i8**%c,align 8
%aB=call i8*@sml_alloc(i32 inreg 20)#0
%aC=getelementptr inbounds i8,i8*%aB,i64 -4
%aD=bitcast i8*%aC to i32*
store i32 1342177296,i32*%aD,align 4
store i8*%aB,i8**%d,align 8
%aE=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aF=bitcast i8*%aB to i8**
store i8*%aE,i8**%aF,align 8
%aG=getelementptr inbounds i8,i8*%aB,i64 8
%aH=bitcast i8*%aG to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[42x i8]}>,<{[4x i8],i32,[42x i8]}>*@m,i64 0,i32 2,i64 0),i8**%aH,align 8
%aI=getelementptr inbounds i8,i8*%aB,i64 16
%aJ=bitcast i8*%aI to i32*
store i32 3,i32*%aJ,align 4
%aK=call i8*@sml_alloc(i32 inreg 60)#0
%aL=getelementptr inbounds i8,i8*%aK,i64 -4
%aM=bitcast i8*%aL to i32*
store i32 1342177336,i32*%aM,align 4
%aN=getelementptr inbounds i8,i8*%aK,i64 56
%aO=bitcast i8*%aN to i32*
store i32 1,i32*%aO,align 4
%aP=load i8*,i8**%d,align 8
%aQ=bitcast i8*%aK to i8**
store i8*%aP,i8**%aQ,align 8
call void@sml_raise(i8*inreg%aK)#1
unreachable
aR:
%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=getelementptr inbounds i8,i8*%aS,i64 2
call void@llvm.memset.p0i8.i32(i8*%aV,i8 0,i32 6,i1 false)
%aW=bitcast i8*%aS to i16*
store i16%b,i16*%aW,align 2
br label%aX
aX:
%aY=phi i8*[%by,%bl],[%aS,%aR]
%aZ=phi i8*[%bD,%bl],[null,%aR]
%a0=phi i16[%bj,%bl],[%b,%aR]
%a1=getelementptr inbounds i8,i8*%aY,i64 8
%a2=bitcast i8*%a1 to i8**
store i8*%aZ,i8**%a2,align 8
%a3=getelementptr inbounds i8,i8*%aY,i64 16
%a4=bitcast i8*%a3 to i32*
store i32 2,i32*%a4,align 4
store i8*%aZ,i8**%c,align 8
%a5=icmp slt i16%a0,0
br i1%a5,label%bh,label%a6
a6:
store i8*%aZ,i8**%c,align 8
%a7=call i8*@sml_alloc(i32 inreg 20)#0
%a8=getelementptr inbounds i8,i8*%a7,i64 -4
%a9=bitcast i8*%a8 to i32*
store i32 1342177296,i32*%a9,align 4
%ba=getelementptr inbounds i8,i8*%a7,i64 1
call void@llvm.memset.p0i8.i32(i8*%ba,i8 0,i32 7,i1 false)
store i8 126,i8*%a7,align 1
%bb=load i8*,i8**%c,align 8
%bc=getelementptr inbounds i8,i8*%a7,i64 8
%bd=bitcast i8*%bc to i8**
store i8*%bb,i8**%bd,align 8
%be=getelementptr inbounds i8,i8*%a7,i64 16
%bf=bitcast i8*%be to i32*
store i32 2,i32*%bf,align 4
%bg=tail call fastcc i8*@_SMLFN10CharVector8fromListE(i8*inreg%a7)
ret i8*%bg
bh:
%bi=srem i16%a0,%n
%bj=sdiv i16%a0,%n
%bk=icmp eq i16%bi,-32768
br i1%bk,label%bE,label%bl
bl:
%bm=sub nsw i16 0,%bi
%bn=sext i16%bm to i32
%bo=call fastcc i8@_SMLFN17SMLSharp__ScanChar10intToDigitE(i32 inreg%bn)
%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=getelementptr inbounds i8,i8*%bp,i64 1
call void@llvm.memset.p0i8.i32(i8*%bs,i8 0,i32 7,i1 false)
store i8%bo,i8*%bp,align 1
%bt=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bu=getelementptr inbounds i8,i8*%bp,i64 8
%bv=bitcast i8*%bu to i8**
store i8*%bt,i8**%bv,align 8
%bw=getelementptr inbounds i8,i8*%bp,i64 16
%bx=bitcast i8*%bw to i32*
store i32 2,i32*%bx,align 4
%by=call i8*@sml_alloc(i32 inreg 20)#0
%bz=getelementptr inbounds i8,i8*%by,i64 -4
%bA=bitcast i8*%bz to i32*
store i32 1342177296,i32*%bA,align 4
%bB=getelementptr inbounds i8,i8*%by,i64 2
call void@llvm.memset.p0i8.i32(i8*%bB,i8 0,i32 6,i1 false)
%bC=bitcast i8*%by to i16*
store i16%bj,i16*%bC,align 2
%bD=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
br label%aX
bE:
%bF=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%bF,i8**%c,align 8
%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=getelementptr inbounds i8,i8*%bG,i64 8
%bM=bitcast i8*%bL to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[42x i8]}>,<{[4x i8],i32,[42x i8]}>*@m,i64 0,i32 2,i64 0),i8**%bM,align 8
%bN=getelementptr inbounds i8,i8*%bG,i64 16
%bO=bitcast i8*%bN to i32*
store i32 3,i32*%bO,align 4
%bP=call i8*@sml_alloc(i32 inreg 60)#0
%bQ=getelementptr inbounds i8,i8*%bP,i64 -4
%bR=bitcast i8*%bQ to i32*
store i32 1342177336,i32*%bR,align 4
%bS=getelementptr inbounds i8,i8*%bP,i64 56
%bT=bitcast i8*%bS to i32*
store i32 1,i32*%bT,align 4
%bU=load i8*,i8**%d,align 8
%bV=bitcast i8*%bP to i8**
store i8*%bU,i8**%bV,align 8
call void@sml_raise(i8*inreg%bP)#1
unreachable
}
define internal fastcc i8*@_SMLLLN10Int__common3fmtE_86(i8*inreg%a,i16 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_84(i32 inreg%m,i16 inreg%b)
ret i8*%n
}
define fastcc i8*@_SMLFN5Int163fmtE(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*,i16)*@_SMLLLN10Int__common3fmtE_86 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_115 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_96(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,1
%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__ScanChar7scanIntE(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=getelementptr inbounds i8,i8*%ao,i64 12
%av=bitcast i8*%au to i32*
%aw=load i32,i32*%av,align 4
%ax=load i8*,i8**%e,align 8
%ay=getelementptr inbounds i8,i8*%ax,i64 8
%az=bitcast i8*%ay to i32*
%aA=load i32,i32*%az,align 4
%aB=icmp eq i32%aA,0
br i1%aB,label%aH,label%aC
aC:
store i8*null,i8**%c,align 8
%aD=sext i32%r to i64
%aE=getelementptr inbounds i8,i8*%am,i64%aD
%aF=bitcast i8*%aE to i8**
%aG=load i8*,i8**%aF,align 8
br label%aR
aH:
%aI=getelementptr inbounds i8,i8*%ax,i64 12
%aJ=bitcast i8*%aI to i32*
%aK=load i32,i32*%aJ,align 4
%aL=call i8*@sml_alloc(i32 inreg%aK)#0
%aM=getelementptr inbounds i8,i8*%aL,i64 -4
%aN=bitcast i8*%aM to i32*
store i32%aK,i32*%aN,align 4
%aO=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aP=sext i32%r to i64
%aQ=getelementptr inbounds i8,i8*%aO,i64%aP
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%aL,i8*%aQ,i32%aK,i1 false)
br label%aR
aR:
%aS=phi i8*[%aL,%aH],[%aG,%aC]
store i8*%aS,i8**%c,align 8
%aT=ashr i32%aw,15
%aU=add nsw i32%aT,1
%aV=icmp ugt i32%aU,1
br i1%aV,label%a0,label%aW
aW:
%aX=trunc i32%aw to i16
%aY=icmp eq i32%at,0
%aZ=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
br i1%aY,label%c1,label%bi
a0:
store i8*null,i8**%d,align 8
store i8*null,i8**%e,align 8
%a1=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%a1,i8**%c,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
store i8*%a2,i8**%d,align 8
%a5=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%a6=bitcast i8*%a2 to i8**
store i8*%a5,i8**%a6,align 8
%a7=getelementptr inbounds i8,i8*%a2,i64 8
%a8=bitcast i8*%a7 to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[42x i8]}>,<{[4x i8],i32,[42x i8]}>*@p,i64 0,i32 2,i64 0),i8**%a8,align 8
%a9=getelementptr inbounds i8,i8*%a2,i64 16
%ba=bitcast i8*%a9 to i32*
store i32 3,i32*%ba,align 4
%bb=call i8*@sml_alloc(i32 inreg 60)#0
%bc=getelementptr inbounds i8,i8*%bb,i64 -4
%bd=bitcast i8*%bc to i32*
store i32 1342177336,i32*%bd,align 4
%be=getelementptr inbounds i8,i8*%bb,i64 56
%bf=bitcast i8*%be to i32*
store i32 1,i32*%bf,align 4
%bg=load i8*,i8**%d,align 8
%bh=bitcast i8*%bb to i8**
store i8*%bg,i8**%bh,align 8
call void@sml_raise(i8*inreg%bb)#1
unreachable
bi:
%bj=phi i16[%cq,%cm],[0,%aW]
%bk=phi i8*[%bW,%cm],[%aZ,%aW]
%bl=icmp eq i8*%bk,null
br i1%bl,label%bm,label%bR
bm:
%bn=load i8*,i8**%e,align 8
%bo=getelementptr inbounds i8,i8*%bn,i64 12
%bp=bitcast i8*%bo to i32*
%bq=load i32,i32*%bp,align 4
store i8*null,i8**%e,align 8
%br=getelementptr inbounds i8,i8*%bn,i64 8
%bs=bitcast i8*%br to i32*
%bt=load i32,i32*%bs,align 4
%bu=call i8*@sml_alloc(i32 inreg%B)#0
%bv=or i32%v,1342177280
%bw=getelementptr inbounds i8,i8*%bu,i64 -4
%bx=bitcast i8*%bw to i32*
store i32%bv,i32*%bx,align 4
store i8*%bu,i8**%d,align 8
call void@llvm.memset.p0i8.i32(i8*%bu,i8 0,i32%B,i1 false)
%by=bitcast i8*%bu to i16*
store i16%bj,i16*%by,align 2
%bz=icmp eq i32%bt,0
%bA=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bB=sext i32%t to i64
%bC=getelementptr inbounds i8,i8*%bu,i64%bB
br i1%bz,label%bD,label%bE
bD:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%bC,i8*%bA,i32%bq,i1 false)
br label%bG
bE:
%bF=bitcast i8*%bC to i8**
store i8*%bA,i8**%bF,align 8
br label%bG
bG:
%bH=sext i32%v to i64
%bI=getelementptr inbounds i8,i8*%bu,i64%bH
%bJ=bitcast i8*%bI to i32*
store i32%A,i32*%bJ,align 4
%bK=call i8*@sml_alloc(i32 inreg 12)#0
%bL=getelementptr inbounds i8,i8*%bK,i64 -4
%bM=bitcast i8*%bL to i32*
store i32 1342177288,i32*%bM,align 4
%bN=load i8*,i8**%d,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 i32*
store i32 1,i32*%bQ,align 4
ret i8*%bK
bR:
%bS=bitcast i8*%bk to i32*
%bT=load i32,i32*%bS,align 4
%bU=getelementptr inbounds i8,i8*%bk,i64 8
%bV=bitcast i8*%bU to i8**
%bW=load i8*,i8**%bV,align 8
%bX=call{i16,i1}@llvm.smul.with.overflow.i16(i16%bj,i16%aX)#0
%bY=extractvalue{i16,i1}%bX,1
br i1%bY,label%bZ,label%ch
bZ:
store i8*null,i8**%e,align 8
%b0=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%b0,i8**%c,align 8
%b1=call i8*@sml_alloc(i32 inreg 20)#0
%b2=getelementptr inbounds i8,i8*%b1,i64 -4
%b3=bitcast i8*%b2 to i32*
store i32 1342177296,i32*%b3,align 4
store i8*%b1,i8**%d,align 8
%b4=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%b5=bitcast i8*%b1 to i8**
store i8*%b4,i8**%b5,align 8
%b6=getelementptr inbounds i8,i8*%b1,i64 8
%b7=bitcast i8*%b6 to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[42x i8]}>,<{[4x i8],i32,[42x i8]}>*@t,i64 0,i32 2,i64 0),i8**%b7,align 8
%b8=getelementptr inbounds i8,i8*%b1,i64 16
%b9=bitcast i8*%b8 to i32*
store i32 3,i32*%b9,align 4
%ca=call i8*@sml_alloc(i32 inreg 60)#0
%cb=getelementptr inbounds i8,i8*%ca,i64 -4
%cc=bitcast i8*%cb to i32*
store i32 1342177336,i32*%cc,align 4
%cd=getelementptr inbounds i8,i8*%ca,i64 56
%ce=bitcast i8*%cd to i32*
store i32 1,i32*%ce,align 4
%cf=load i8*,i8**%d,align 8
%cg=bitcast i8*%ca to i8**
store i8*%cf,i8**%cg,align 8
call void@sml_raise(i8*inreg%ca)#1
unreachable
ch:
%ci=mul nsw i16%bj,%aX
%cj=ashr i32%bT,15
%ck=add nsw i32%cj,1
%cl=icmp ugt i32%ck,1
br i1%cl,label%cr,label%cm
cm:
%cn=trunc i32%bT to i16
%co=call{i16,i1}@llvm.ssub.with.overflow.i16(i16%ci,i16%cn)#0
%cp=extractvalue{i16,i1}%co,1
%cq=sub nsw i16%ci,%cn
br i1%cp,label%cJ,label%bi
cr:
store i8*null,i8**%e,align 8
%cs=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%cs,i8**%c,align 8
%ct=call i8*@sml_alloc(i32 inreg 20)#0
%cu=getelementptr inbounds i8,i8*%ct,i64 -4
%cv=bitcast i8*%cu to i32*
store i32 1342177296,i32*%cv,align 4
store i8*%ct,i8**%d,align 8
%cw=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%cx=bitcast i8*%ct to i8**
store i8*%cw,i8**%cx,align 8
%cy=getelementptr inbounds i8,i8*%ct,i64 8
%cz=bitcast i8*%cy to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[42x i8]}>,<{[4x i8],i32,[42x i8]}>*@u,i64 0,i32 2,i64 0),i8**%cz,align 8
%cA=getelementptr inbounds i8,i8*%ct,i64 16
%cB=bitcast i8*%cA to i32*
store i32 3,i32*%cB,align 4
%cC=call i8*@sml_alloc(i32 inreg 60)#0
%cD=getelementptr inbounds i8,i8*%cC,i64 -4
%cE=bitcast i8*%cD to i32*
store i32 1342177336,i32*%cE,align 4
%cF=getelementptr inbounds i8,i8*%cC,i64 56
%cG=bitcast i8*%cF to i32*
store i32 1,i32*%cG,align 4
%cH=load i8*,i8**%d,align 8
%cI=bitcast i8*%cC to i8**
store i8*%cH,i8**%cI,align 8
call void@sml_raise(i8*inreg%cC)#1
unreachable
cJ:
store i8*null,i8**%e,align 8
%cK=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%cK,i8**%c,align 8
%cL=call i8*@sml_alloc(i32 inreg 20)#0
%cM=getelementptr inbounds i8,i8*%cL,i64 -4
%cN=bitcast i8*%cM to i32*
store i32 1342177296,i32*%cN,align 4
store i8*%cL,i8**%d,align 8
%cO=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%cP=bitcast i8*%cL to i8**
store i8*%cO,i8**%cP,align 8
%cQ=getelementptr inbounds i8,i8*%cL,i64 8
%cR=bitcast i8*%cQ to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[42x i8]}>,<{[4x i8],i32,[42x i8]}>*@v,i64 0,i32 2,i64 0),i8**%cR,align 8
%cS=getelementptr inbounds i8,i8*%cL,i64 16
%cT=bitcast i8*%cS to i32*
store i32 3,i32*%cT,align 4
%cU=call i8*@sml_alloc(i32 inreg 60)#0
%cV=getelementptr inbounds i8,i8*%cU,i64 -4
%cW=bitcast i8*%cV to i32*
store i32 1342177336,i32*%cW,align 4
%cX=getelementptr inbounds i8,i8*%cU,i64 56
%cY=bitcast i8*%cX to i32*
store i32 1,i32*%cY,align 4
%cZ=load i8*,i8**%d,align 8
%c0=bitcast i8*%cU to i8**
store i8*%cZ,i8**%c0,align 8
call void@sml_raise(i8*inreg%cU)#1
unreachable
c1:
%c2=phi i16[%d9,%d5],[0,%aW]
%c3=phi i8*[%dF,%d5],[%aZ,%aW]
%c4=icmp eq i8*%c3,null
br i1%c4,label%c5,label%dA
c5:
%c6=load i8*,i8**%e,align 8
%c7=getelementptr inbounds i8,i8*%c6,i64 12
%c8=bitcast i8*%c7 to i32*
%c9=load i32,i32*%c8,align 4
store i8*null,i8**%e,align 8
%da=getelementptr inbounds i8,i8*%c6,i64 8
%db=bitcast i8*%da to i32*
%dc=load i32,i32*%db,align 4
%dd=call i8*@sml_alloc(i32 inreg%B)#0
%de=or i32%v,1342177280
%df=getelementptr inbounds i8,i8*%dd,i64 -4
%dg=bitcast i8*%df to i32*
store i32%de,i32*%dg,align 4
store i8*%dd,i8**%d,align 8
call void@llvm.memset.p0i8.i32(i8*%dd,i8 0,i32%B,i1 false)
%dh=bitcast i8*%dd to i16*
store i16%c2,i16*%dh,align 2
%di=icmp eq i32%dc,0
%dj=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%dk=sext i32%t to i64
%dl=getelementptr inbounds i8,i8*%dd,i64%dk
br i1%di,label%dm,label%dn
dm:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%dl,i8*%dj,i32%c9,i1 false)
br label%dp
dn:
%do=bitcast i8*%dl to i8**
store i8*%dj,i8**%do,align 8
br label%dp
dp:
%dq=sext i32%v to i64
%dr=getelementptr inbounds i8,i8*%dd,i64%dq
%ds=bitcast i8*%dr to i32*
store i32%A,i32*%ds,align 4
%dt=call i8*@sml_alloc(i32 inreg 12)#0
%du=getelementptr inbounds i8,i8*%dt,i64 -4
%dv=bitcast i8*%du to i32*
store i32 1342177288,i32*%dv,align 4
%dw=load i8*,i8**%d,align 8
%dx=bitcast i8*%dt to i8**
store i8*%dw,i8**%dx,align 8
%dy=getelementptr inbounds i8,i8*%dt,i64 8
%dz=bitcast i8*%dy to i32*
store i32 1,i32*%dz,align 4
ret i8*%dt
dA:
%dB=bitcast i8*%c3 to i32*
%dC=load i32,i32*%dB,align 4
%dD=getelementptr inbounds i8,i8*%c3,i64 8
%dE=bitcast i8*%dD to i8**
%dF=load i8*,i8**%dE,align 8
%dG=call{i16,i1}@llvm.smul.with.overflow.i16(i16%c2,i16%aX)#0
%dH=extractvalue{i16,i1}%dG,1
br i1%dH,label%dI,label%d0
dI:
store i8*null,i8**%e,align 8
%dJ=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%dJ,i8**%c,align 8
%dK=call i8*@sml_alloc(i32 inreg 20)#0
%dL=getelementptr inbounds i8,i8*%dK,i64 -4
%dM=bitcast i8*%dL to i32*
store i32 1342177296,i32*%dM,align 4
store i8*%dK,i8**%d,align 8
%dN=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%dO=bitcast i8*%dK to i8**
store i8*%dN,i8**%dO,align 8
%dP=getelementptr inbounds i8,i8*%dK,i64 8
%dQ=bitcast i8*%dP to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[42x i8]}>,<{[4x i8],i32,[42x i8]}>*@q,i64 0,i32 2,i64 0),i8**%dQ,align 8
%dR=getelementptr inbounds i8,i8*%dK,i64 16
%dS=bitcast i8*%dR to i32*
store i32 3,i32*%dS,align 4
%dT=call i8*@sml_alloc(i32 inreg 60)#0
%dU=getelementptr inbounds i8,i8*%dT,i64 -4
%dV=bitcast i8*%dU to i32*
store i32 1342177336,i32*%dV,align 4
%dW=getelementptr inbounds i8,i8*%dT,i64 56
%dX=bitcast i8*%dW to i32*
store i32 1,i32*%dX,align 4
%dY=load i8*,i8**%d,align 8
%dZ=bitcast i8*%dT to i8**
store i8*%dY,i8**%dZ,align 8
call void@sml_raise(i8*inreg%dT)#1
unreachable
d0:
%d1=mul nsw i16%c2,%aX
%d2=ashr i32%dC,15
%d3=add nsw i32%d2,1
%d4=icmp ugt i32%d3,1
br i1%d4,label%ea,label%d5
d5:
%d6=trunc i32%dC to i16
%d7=call{i16,i1}@llvm.sadd.with.overflow.i16(i16%d1,i16%d6)#0
%d8=extractvalue{i16,i1}%d7,1
%d9=add nsw i16%d1,%d6
br i1%d8,label%es,label%c1
ea:
store i8*null,i8**%e,align 8
%eb=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%eb,i8**%c,align 8
%ec=call i8*@sml_alloc(i32 inreg 20)#0
%ed=getelementptr inbounds i8,i8*%ec,i64 -4
%ee=bitcast i8*%ed to i32*
store i32 1342177296,i32*%ee,align 4
store i8*%ec,i8**%d,align 8
%ef=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%eg=bitcast i8*%ec to i8**
store i8*%ef,i8**%eg,align 8
%eh=getelementptr inbounds i8,i8*%ec,i64 8
%ei=bitcast i8*%eh to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[42x i8]}>,<{[4x i8],i32,[42x i8]}>*@r,i64 0,i32 2,i64 0),i8**%ei,align 8
%ej=getelementptr inbounds i8,i8*%ec,i64 16
%ek=bitcast i8*%ej to i32*
store i32 3,i32*%ek,align 4
%el=call i8*@sml_alloc(i32 inreg 60)#0
%em=getelementptr inbounds i8,i8*%el,i64 -4
%en=bitcast i8*%em to i32*
store i32 1342177336,i32*%en,align 4
%eo=getelementptr inbounds i8,i8*%el,i64 56
%ep=bitcast i8*%eo to i32*
store i32 1,i32*%ep,align 4
%eq=load i8*,i8**%d,align 8
%er=bitcast i8*%el to i8**
store i8*%eq,i8**%er,align 8
call void@sml_raise(i8*inreg%el)#1
unreachable
es:
store i8*null,i8**%e,align 8
%et=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%et,i8**%c,align 8
%eu=call i8*@sml_alloc(i32 inreg 20)#0
%ev=getelementptr inbounds i8,i8*%eu,i64 -4
%ew=bitcast i8*%ev to i32*
store i32 1342177296,i32*%ew,align 4
store i8*%eu,i8**%d,align 8
%ex=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ey=bitcast i8*%eu to i8**
store i8*%ex,i8**%ey,align 8
%ez=getelementptr inbounds i8,i8*%eu,i64 8
%eA=bitcast i8*%ez to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[42x i8]}>,<{[4x i8],i32,[42x i8]}>*@s,i64 0,i32 2,i64 0),i8**%eA,align 8
%eB=getelementptr inbounds i8,i8*%eu,i64 16
%eC=bitcast i8*%eB to i32*
store i32 3,i32*%eC,align 4
%eD=call i8*@sml_alloc(i32 inreg 60)#0
%eE=getelementptr inbounds i8,i8*%eD,i64 -4
%eF=bitcast i8*%eE to i32*
store i32 1342177336,i32*%eF,align 4
%eG=getelementptr inbounds i8,i8*%eD,i64 56
%eH=bitcast i8*%eG to i32*
store i32 1,i32*%eH,align 4
%eI=load i8*,i8**%d,align 8
%eJ=bitcast i8*%eD to i8**
store i8*%eI,i8**%eJ,align 8
call void@sml_raise(i8*inreg%eD)#1
unreachable
}
define internal fastcc i8*@_SMLLLN10Int__common4scanE_97(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_96 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_96 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_98(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_97 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_97 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*@_SMLFN5Int168toStringE(i16 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_84(i32 inreg 1,i16 inreg%a)
ret i8*%f
}
define fastcc i8*@_SMLFN5Int1610fromStringE(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 2)
%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_98(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*@_SMLLLN5Int164scanE_104(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_98(i32 inreg%l,i32 inreg%o,i32 inreg%b)
ret i8*%p
}
define fastcc i8*@_SMLFN5Int164scanE(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)*@_SMLLLN5Int164scanE_104 to void(...)*),void(...)**%r,align 8
%s=getelementptr inbounds i8,i8*%l,i64 16
%t=bitcast i8*%s to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN5Int164scanE_120 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_107(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=bitcast i8*%b to i16*
%d=load i16,i16*%c,align 2
%e=tail call fastcc i8*@_SMLFN5Int167toLargeE(i16 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLLN3Int9fromLargeE_108(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i16@_SMLFN5Int169fromLargeE(i8*inreg%b)
%d=tail call i8*@sml_alloc(i32 inreg 2)#0
%e=getelementptr inbounds i8,i8*%d,i64 -4
%f=bitcast i8*%e to i32*
store i32 2,i32*%f,align 4
%g=bitcast i8*%d to i16*
store i16%c,i16*%g,align 2
ret i8*%d
}
define internal fastcc i8*@_SMLLLN10Int__common7compareE_109(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=bitcast i8*%b to i16*
%d=load i16,i16*%c,align 2
%e=getelementptr inbounds i8,i8*%b,i64 2
%f=bitcast i8*%e to i16*
%g=load i16,i16*%f,align 2
%h=icmp slt i16%d,%g
%i=icmp ne i16%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_110(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=bitcast i8*%b to i16*
%d=load i16,i16*%c,align 2
%e=getelementptr inbounds i8,i8*%b,i64 2
%f=bitcast i8*%e to i16*
%g=load i16,i16*%f,align 2
%h=icmp slt i16%d,%g
%i=select i1%h,i16%d,i16%g
%j=tail call i8*@sml_alloc(i32 inreg 2)#0
%k=getelementptr inbounds i8,i8*%j,i64 -4
%l=bitcast i8*%k to i32*
store i32 2,i32*%l,align 4
%m=bitcast i8*%j to i16*
store i16%i,i16*%m,align 2
ret i8*%j
}
define internal fastcc i8*@_SMLLLN10Int__common3maxE_111(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=bitcast i8*%b to i16*
%d=load i16,i16*%c,align 2
%e=getelementptr inbounds i8,i8*%b,i64 2
%f=bitcast i8*%e to i16*
%g=load i16,i16*%f,align 2
%h=icmp sgt i16%d,%g
%i=select i1%h,i16%d,i16%g
%j=tail call i8*@sml_alloc(i32 inreg 2)#0
%k=getelementptr inbounds i8,i8*%j,i64 -4
%l=bitcast i8*%k to i32*
store i32 2,i32*%l,align 4
%m=bitcast i8*%j to i16*
store i16%i,i16*%m,align 2
ret i8*%j
}
define internal fastcc i8*@_SMLLLN10Int__common4signE_112(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=bitcast i8*%b to i16*
%d=load i16,i16*%c,align 2
%e=icmp sgt i16%d,-1
%f=icmp ne i16%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_113(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i32@_SMLFN5Int168sameSignE(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_115(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=bitcast i8*%b to i16*
%d=load i16,i16*%c,align 2
%e=tail call fastcc i8*@_SMLLLN10Int__common3fmtE_86(i8*inreg%a,i16 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLLN10Int__common3fmtE_116(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*@_SMLFN5Int163fmtE(i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLLN10Int__common8toStringE_118(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=bitcast i8*%b to i16*
%d=load i16,i16*%c,align 2
%e=tail call fastcc i8*@_SMLFN5Int168toStringE(i16 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLLN10Int__common10fromStringE_119(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN5Int1610fromStringE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN5Int164scanE_120(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*@_SMLLLN5Int164scanE_104(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLLN5Int164scanE_121(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*@_SMLFN5Int164scanE(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}
