@sml_check_flag=external local_unnamed_addr global i32
@_SMLZ5Match=external unnamed_addr constant i8*
@_SMLZ9Subscript=external unnamed_addr constant i8*
@_SMLZ4Fail=external unnamed_addr constant i8*
@a=private unnamed_addr constant<{[4x i8],i32,[1x i8]}><{[4x i8]zeroinitializer,i32 -2147483647,[1x i8]zeroinitializer}>,align 8
@b=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN10ULexBuffer8mkStreamE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN10ULexBuffer8mkStreamE_129 to void(...)*),i32 -2147483647}>,align 8
@c=private unnamed_addr constant<{[4x i8],i32,i32,[4x i8],i32}><{[4x i8]zeroinitializer,i32 -805306360,i32 1,[4x i8]zeroinitializer,i32 0}>,align 8
@d=private unnamed_addr constant<{[4x i8],i32,i32,[4x i8],i32}><{[4x i8]zeroinitializer,i32 -805306360,i32 0,[4x i8]zeroinitializer,i32 0}>,align 8
@e=private unnamed_addr constant<{[4x i8],i32,[43x i8]}><{[4x i8]zeroinitializer,i32 -2147483605,[43x i8]c"src/ml-lpt/lib/ulex-buffer.sml:73.21(1898)\00"}>,align 8
@f=private unnamed_addr constant<{[4x i8],i32,[43x i8]}><{[4x i8]zeroinitializer,i32 -2147483605,[43x i8]c"src/ml-lpt/lib/ulex-buffer.sml:70.11(1768)\00"}>,align 8
@g=private unnamed_addr constant<{[4x i8],i32,[43x i8]}><{[4x i8]zeroinitializer,i32 -2147483605,[43x i8]c"src/ml-lpt/lib/ulex-buffer.sml:66.15(1675)\00"}>,align 8
@h=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN10ULexBuffer4getcE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN10ULexBuffer4getcE_131 to void(...)*),i32 -2147483647}>,align 8
@i=private unnamed_addr constant<{[4x i8],i32,[22x i8]}><{[4x i8]zeroinitializer,i32 -2147483626,[22x i8]c"ULexBuffer.Incomplete\00"}>,align 8
@j=private unnamed_addr constant<{[4x i8],i32,i8*,i32,[4x i8],i32}><{[4x i8]zeroinitializer,i32 -805306352,i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,[22x i8]}>,<{[4x i8],i32,[22x i8]}>*@i,i32 0,i32 0,i32 0),i32 8),i32 0,[4x i8]zeroinitializer,i32 1}>,align 8
@_SMLDL92=private constant<{[4x i8],i32,i8*}><{[4x i8]zeroinitializer,i32 -1879048184,i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,i8*,i32,[4x i8],i32}>,<{[4x i8],i32,i8*,i32,[4x i8],i32}>*@j,i32 0,i32 0,i32 0),i32 8)}>,align 8
@k=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/ml-lpt/lib/ulex-buffer.sml:118.21(3442)\00"}>,align 8
@l=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/ml-lpt/lib/ulex-buffer.sml:115.11(3317)\00"}>,align 8
@m=private unnamed_addr constant<{[4x i8],i32,[43x i8]}><{[4x i8]zeroinitializer,i32 -2147483605,[43x i8]c"src/ml-lpt/lib/ulex-buffer.sml:82.34(2166)\00"}>,align 8
@n=private unnamed_addr constant<{[4x i8],i32,[43x i8]}><{[4x i8]zeroinitializer,i32 -2147483605,[43x i8]c"src/ml-lpt/lib/ulex-buffer.sml:97.23(2707)\00"}>,align 8
@o=private unnamed_addr constant<{[4x i8],i32,[11x i8]}><{[4x i8]zeroinitializer,i32 -2147483637,[11x i8]c"impossible\00"}>,align 8
@p=private unnamed_addr constant<{[4x i8],i32,[43x i8]}><{[4x i8]zeroinitializer,i32 -2147483605,[43x i8]c"src/ml-lpt/lib/ulex-buffer.sml:94.13(2572)\00"}>,align 8
@q=private unnamed_addr constant<{[4x i8],i32,[43x i8]}><{[4x i8]zeroinitializer,i32 -2147483605,[43x i8]c"src/ml-lpt/lib/ulex-buffer.sml:90.36(2474)\00"}>,align 8
@r=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/ml-lpt/lib/ulex-buffer.sml:103.15(2967)\00"}>,align 8
@s=private unnamed_addr constant<{[4x i8],i32,i8*,i8*,i32}><{[4x i8]zeroinitializer,i32 -805306352,i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,i8*}>,<{[4x i8],i32,i8*}>*@_SMLDL92,i32 0,i32 0,i32 0),i32 8),i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@r,i32 0,i32 0,i32 0),i32 8),i32 3}>,align 8
@t=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/ml-lpt/lib/ulex-buffer.sml:100.23(2827)\00"}>,align 8
@u=private unnamed_addr constant<{[4x i8],i32,i8*,i8*,i32}><{[4x i8]zeroinitializer,i32 -805306352,i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,i8*}>,<{[4x i8],i32,i8*}>*@_SMLDL92,i32 0,i32 0,i32 0),i32 8),i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@t,i32 0,i32 0,i32 0),i32 8),i32 3}>,align 8
@v=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/ml-lpt/lib/ulex-buffer.sml:110.16(3227)\00"}>,align 8
@w=private unnamed_addr constant<{[4x i8],i32,i8*,i8*,i32}><{[4x i8]zeroinitializer,i32 -805306352,i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,i8*}>,<{[4x i8],i32,i8*}>*@_SMLDL92,i32 0,i32 0,i32 0),i32 8),i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@v,i32 0,i32 0,i32 0),i32 8),i32 3}>,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*)*@_SMLFN10ULexBuffer4getuE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN10ULexBuffer4getuE_133 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(i32(i8*)*@_SMLFN10ULexBuffer6getposE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN10ULexBuffer6getposE_134 to void(...)*),i32 -2147483647}>,align 8
@z=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN10ULexBuffer8subtractE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN10ULexBuffer8subtractE_135 to void(...)*),i32 -2147483647}>,align 8
@A=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/ml-lpt/lib/ulex-buffer.sml:132.24(3980)\00"}>,align 8
@B=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/ml-lpt/lib/ulex-buffer.sml:131.24(3897)\00"}>,align 8
@C=private unnamed_addr constant<{[4x i8],i32,[52x i8]}><{[4x i8]zeroinitializer,i32 -2147483596,[52x i8]c"BUG: ULexBuffer.subtract, but buffers are unrelated\00"}>,align 8
@D=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/ml-lpt/lib/ulex-buffer.sml:130.10(3862)\00"}>,align 8
@E=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i8*)*@_SMLFN10ULexBuffer3eofE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN10ULexBuffer3eofE_136 to void(...)*),i32 -2147483647}>,align 8
@F=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i8*)*@_SMLFN10ULexBuffer9lastWasNLE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN10ULexBuffer9lastWasNLE_137 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN10ULexBuffer10IncompleteE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*}>,<{[4x i8],i32,i8*}>*@_SMLDL92,i64 0,i32 2)to i8*)
@_SMLZN10ULexBuffer8mkStreamE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@b,i64 0,i32 2)to i8*)
@_SMLZN10ULexBuffer4getcE=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*)
@_SMLZN10ULexBuffer4getuE=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*)
@_SMLZN10ULexBuffer6getposE=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*)
@_SMLZN10ULexBuffer8subtractE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@z,i64 0,i32 2)to i8*)
@_SMLZN10ULexBuffer3eofE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@E,i64 0,i32 2)to i8*)
@_SMLZN10ULexBuffer9lastWasNLE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@F,i64 0,i32 2)to i8*)
@_SML_ftab298d094f01131b0a_ulex_buffer=external global i8
@G=private unnamed_addr global i8 0
declare void@llvm.gcroot(i8**,i8*)#0
declare i8*@sml_alloc(i32 inreg)local_unnamed_addr#0
declare void@sml_check(i32 inreg)local_unnamed_addr
declare void@sml_gcroot(i8*,void()*,i8*,i8*)local_unnamed_addr#0
declare void@sml_matchcomp_bug()local_unnamed_addr
declare void@sml_raise(i8*inreg)local_unnamed_addr#1
declare void@sml_write(i8*inreg,i8**inreg,i8*inreg)local_unnamed_addr#0
declare i32@_SMLFN14AntlrStreamPos7forwardE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i32@_SMLFN4Bool3notE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN6Option6isSomeE(i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN9Substring6concatE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN9Substring7extractE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN9Substring9substringE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main145db56e6796da5b_Substring()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_maindaa180c1799f3810_Bool()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main3a60343781315c1e_Option()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main5ce8eb658c69eaff_antlr_stream_pos()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_load145db56e6796da5b_Substring(i8*)local_unnamed_addr
declare void@_SML_loaddaa180c1799f3810_Bool(i8*)local_unnamed_addr
declare void@_SML_load3a60343781315c1e_Option(i8*)local_unnamed_addr
declare void@_SML_load5ce8eb658c69eaff_antlr_stream_pos(i8*)local_unnamed_addr
define private void@_SML_tabb298d094f01131b0a_ulex_buffer()#3{
unreachable
}
define void@_SML_load298d094f01131b0a_ulex_buffer(i8*%a)local_unnamed_addr#0{
%b=load i8,i8*@G,align 1
%c=icmp eq i8%b,0
br i1%c,label%e,label%d
d:
ret void
e:
store i8 1,i8*@G,align 1
tail call void@_SML_load145db56e6796da5b_Substring(i8*%a)#0
tail call void@_SML_loaddaa180c1799f3810_Bool(i8*%a)#0
tail call void@_SML_load3a60343781315c1e_Option(i8*%a)#0
tail call void@_SML_load5ce8eb658c69eaff_antlr_stream_pos(i8*%a)#0
tail call void@sml_gcroot(i8*%a,void()*@_SML_tabb298d094f01131b0a_ulex_buffer,i8*@_SML_ftab298d094f01131b0a_ulex_buffer,i8*null)#0
ret void
}
define void@_SML_main298d094f01131b0a_ulex_buffer()local_unnamed_addr#2 gc"smlsharp"{
%a=load i8,i8*@G,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*@G,align 1
tail call void@_SML_main145db56e6796da5b_Substring()#2
tail call void@_SML_maindaa180c1799f3810_Bool()#2
tail call void@_SML_main3a60343781315c1e_Option()#2
tail call void@_SML_main5ce8eb658c69eaff_antlr_stream_pos()#2
br label%d
}
define fastcc i8*@_SMLFN10ULexBuffer8mkStreamE(i8*inreg%a)#4 gc"smlsharp"{
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
%e=bitcast i8*%a to i32*
%f=load i32,i32*%e,align 4
%g=getelementptr inbounds i8,i8*%a,i64 8
%h=bitcast i8*%g to i8**
%i=load i8*,i8**%h,align 8
store i8*%i,i8**%b,align 8
%j=call i8*@sml_alloc(i32 inreg 8)#0
%k=getelementptr inbounds i8,i8*%j,i64 -4
%l=bitcast i8*%k to i32*
store i32 805306376,i32*%l,align 4
store i8*%j,i8**%c,align 8
%m=bitcast i8*%j to i64*
store i64 0,i64*%m,align 1
%n=bitcast i8*%j to i8**
call void@sml_write(i8*inreg%j,i8**inreg%n,i8*inreg bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@c,i64 0,i32 2)to i8*))#0
%o=call i8*@sml_alloc(i32 inreg 36)#0
%p=getelementptr inbounds i8,i8*%o,i64 -4
%q=bitcast i8*%p to i32*
store i32 1342177312,i32*%q,align 4
store i8*%o,i8**%d,align 8
%r=getelementptr inbounds i8,i8*%o,i64 4
%s=bitcast i8*%r to i32*
store i32 0,i32*%s,align 1
%t=bitcast i8*%o to i32*
store i32%f,i32*%t,align 4
%u=getelementptr inbounds i8,i8*%o,i64 8
%v=bitcast i8*%u to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[1x i8]}>,<{[4x i8],i32,[1x i8]}>*@a,i64 0,i32 2,i64 0),i8**%v,align 8
%w=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%x=getelementptr inbounds i8,i8*%o,i64 16
%y=bitcast i8*%x to i8**
store i8*%w,i8**%y,align 8
%z=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%A=getelementptr inbounds i8,i8*%o,i64 24
%B=bitcast i8*%A to i8**
store i8*%z,i8**%B,align 8
%C=getelementptr inbounds i8,i8*%o,i64 32
%D=bitcast i8*%C to i32*
store i32 14,i32*%D,align 4
%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**%d,align 8
%I=bitcast i8*%E to i8**
store i8*%H,i8**%I,align 8
%J=getelementptr inbounds i8,i8*%E,i64 8
%K=bitcast i8*%J to i32*
store i32 0,i32*%K,align 4
%L=getelementptr inbounds i8,i8*%E,i64 12
%M=bitcast i8*%L to i32*
store i32 1,i32*%M,align 4
%N=getelementptr inbounds i8,i8*%E,i64 16
%O=bitcast i8*%N to i32*
store i32 1,i32*%O,align 4
ret i8*%E
}
define internal fastcc i8*@_SMLLLN10ULexBuffer7advanceE_82(i8*inreg%a)unnamed_addr#2 gc"smlsharp"{
m:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
store i8*%a,i8**%b,align 8
%g=load atomic i32,i32*@sml_check_flag unordered,align 4
%h=icmp eq i32%g,0
br i1%h,label%k,label%i
i:
call void@sml_check(i32 inreg%g)
%j=load i8*,i8**%b,align 8
br label%k
k:
%l=phi i8*[%j,%i],[%a,%m]
%n=bitcast i8*%l to i8**
%o=load i8*,i8**%n,align 8
store i8*%o,i8**%b,align 8
%p=getelementptr inbounds i8,i8*%l,i64 8
%q=bitcast i8*%p to i8**
%r=load i8*,i8**%q,align 8
store i8*%r,i8**%c,align 8
%s=getelementptr inbounds i8,i8*%l,i64 16
%t=bitcast i8*%s to i32*
%u=load i32,i32*%t,align 4
%v=getelementptr inbounds i8,i8*%l,i64 24
%w=bitcast i8*%v to i8**
%x=load i8*,i8**%w,align 8
store i8*%x,i8**%d,align 8
%y=bitcast i8*%x to i8**
%z=load i8*,i8**%y,align 8
%A=bitcast i8*%z to i32*
%B=load i32,i32*%A,align 4
%C=icmp eq i32%B,1
br i1%C,label%E,label%D
D:
ret i8*%z
E:
%F=getelementptr inbounds i8,i8*%r,i64 16
%G=bitcast i8*%F to i8*(i8*,i8*)**
%H=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%G,align 8
%I=bitcast i8*%r to i8**
%J=load i8*,i8**%I,align 8
store i8*%J,i8**%e,align 8
%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 0,i32*%L,align 4
%O=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%P=call fastcc i8*%H(i8*inreg%O,i8*inreg%K)
store i8*%P,i8**%e,align 8
%Q=getelementptr inbounds i8,i8*%P,i64 -4
%R=bitcast i8*%Q to i32*
%S=load i32,i32*%R,align 4
%T=and i32%S,268435455
%U=icmp eq i32%T,1
br i1%U,label%V,label%Y
V:
%W=load i8*,i8**%d,align 8
%X=bitcast i8*%W to i8**
call void@sml_write(i8*inreg%W,i8**inreg%X,i8*inreg 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*))#0
ret 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*)
Y:
%Z=bitcast i8**%b to i32**
%aa=load i32*,i32**%Z,align 8
store i8*null,i8**%b,align 8
%ab=getelementptr inbounds i32,i32*%aa,i64 -1
%ac=load i32,i32*%ab,align 4
%ad=and i32%ac,268435455
%ae=add nsw i32%ad,-1
%af=call i8*@sml_alloc(i32 inreg 12)#0
%ag=bitcast i8*%af to i32*
%ah=getelementptr inbounds i8,i8*%af,i64 -4
%ai=bitcast i8*%ah to i32*
store i32 1342177288,i32*%ai,align 4
store i32%u,i32*%ag,align 4
%aj=getelementptr inbounds i8,i8*%af,i64 4
%ak=bitcast i8*%aj to i32*
store i32%ae,i32*%ak,align 4
%al=getelementptr inbounds i8,i8*%af,i64 8
%am=bitcast i8*%al to i32*
store i32 0,i32*%am,align 4
%an=call fastcc i32@_SMLFN14AntlrStreamPos7forwardE(i8*inreg%af)
%ao=call i8*@sml_alloc(i32 inreg 8)#0
%ap=getelementptr inbounds i8,i8*%ao,i64 -4
%aq=bitcast i8*%ap to i32*
store i32 805306376,i32*%aq,align 4
store i8*%ao,i8**%f,align 8
%ar=bitcast i8*%ao to i64*
store i64 0,i64*%ar,align 1
%as=bitcast i8*%ao to i8**
call void@sml_write(i8*inreg%ao,i8**inreg%as,i8*inreg bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@c,i64 0,i32 2)to i8*))#0
%at=call i8*@sml_alloc(i32 inreg 36)#0
%au=getelementptr inbounds i8,i8*%at,i64 -4
%av=bitcast i8*%au to i32*
store i32 1342177312,i32*%av,align 4
store i8*%at,i8**%b,align 8
%aw=getelementptr inbounds i8,i8*%at,i64 4
%ax=bitcast i8*%aw to i32*
store i32 0,i32*%ax,align 1
%ay=bitcast i8*%at to i32*
store i32%an,i32*%ay,align 4
%az=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%aA=getelementptr inbounds i8,i8*%at,i64 8
%aB=bitcast i8*%aA to i8**
store i8*%az,i8**%aB,align 8
%aC=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aD=getelementptr inbounds i8,i8*%at,i64 16
%aE=bitcast i8*%aD to i8**
store i8*%aC,i8**%aE,align 8
%aF=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%aG=getelementptr inbounds i8,i8*%at,i64 24
%aH=bitcast i8*%aG to i8**
store i8*%aF,i8**%aH,align 8
%aI=getelementptr inbounds i8,i8*%at,i64 32
%aJ=bitcast i8*%aI to i32*
store i32 14,i32*%aJ,align 4
%aK=call i8*@sml_alloc(i32 inreg 20)#0
%aL=bitcast i8*%aK to i32*
%aM=getelementptr inbounds i8,i8*%aK,i64 -4
%aN=bitcast i8*%aM to i32*
store i32 1342177296,i32*%aN,align 4
%aO=getelementptr inbounds i8,i8*%aK,i64 4
%aP=bitcast i8*%aO to i32*
store i32 0,i32*%aP,align 1
store i32 2,i32*%aL,align 4
%aQ=load i8*,i8**%b,align 8
%aR=getelementptr inbounds i8,i8*%aK,i64 8
%aS=bitcast i8*%aR to i8**
store i8*%aQ,i8**%aS,align 8
%aT=getelementptr inbounds i8,i8*%aK,i64 16
%aU=bitcast i8*%aT to i32*
store i32 2,i32*%aU,align 4
%aV=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aW=bitcast i8*%aV to i8**
call void@sml_write(i8*inreg%aV,i8**inreg%aW,i8*inreg%aK)#0
%aX=call i8*@sml_alloc(i32 inreg 20)#0
%aY=bitcast i8*%aX to i32*
%aZ=getelementptr inbounds i8,i8*%aX,i64 -4
%a0=bitcast i8*%aZ to i32*
store i32 1342177296,i32*%a0,align 4
%a1=getelementptr inbounds i8,i8*%aX,i64 4
%a2=bitcast i8*%a1 to i32*
store i32 0,i32*%a2,align 1
store i32 2,i32*%aY,align 4
%a3=load i8*,i8**%b,align 8
%a4=getelementptr inbounds i8,i8*%aX,i64 8
%a5=bitcast i8*%a4 to i8**
store i8*%a3,i8**%a5,align 8
%a6=getelementptr inbounds i8,i8*%aX,i64 16
%a7=bitcast i8*%a6 to i32*
store i32 2,i32*%a7,align 4
ret i8*%aX
}
define fastcc i8*@_SMLFN10ULexBuffer4getcE(i8*inreg%a)#2 gc"smlsharp"{
j:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
%g=bitcast i8**%b to i8***
br label%h
h:
%i=phi i8*[%bH,%bD],[%a,%j]
store i8*%i,i8**%b,align 8
%k=load atomic i32,i32*@sml_check_flag unordered,align 4
%l=icmp eq i32%k,0
%m=bitcast i8*%i to i8**
br i1%l,label%q,label%n
n:
call void@sml_check(i32 inreg%k)
%o=load i8**,i8***%g,align 8
%p=bitcast i8**%o to i8*
br label%q
q:
%r=phi i8*[%p,%n],[%i,%h]
%s=phi i8**[%o,%n],[%m,%h]
%t=load i8*,i8**%s,align 8
store i8*%t,i8**%c,align 8
%u=bitcast i8*%t to i32*
%v=load i32,i32*%u,align 4
%w=getelementptr inbounds i8,i8*%t,i64 8
%x=bitcast i8*%w to i8**
%y=load i8*,i8**%x,align 8
store i8*%y,i8**%d,align 8
%z=getelementptr inbounds i8,i8*%t,i64 16
%A=bitcast i8*%z to i8**
%B=load i8*,i8**%A,align 8
store i8*%B,i8**%e,align 8
%C=getelementptr inbounds i8,i8*%t,i64 24
%D=bitcast i8*%C to i8**
%E=load i8*,i8**%D,align 8
store i8*%E,i8**%f,align 8
%F=getelementptr inbounds i8,i8*%r,i64 8
%G=bitcast i8*%F to i32*
%H=load i32,i32*%G,align 4
store i8*null,i8**%b,align 8
%I=getelementptr inbounds i8,i8*%r,i64 12
%J=bitcast i8*%I to i32*
%K=load i32,i32*%J,align 4
%L=getelementptr inbounds i8,i8*%y,i64 -4
%M=bitcast i8*%L to i32*
%N=load i32,i32*%M,align 4
%O=and i32%N,268435455
%P=add nsw i32%O,-1
%Q=icmp slt i32%H,%P
br i1%Q,label%R,label%aZ
R:
store i8*null,i8**%e,align 8
store i8*null,i8**%f,align 8
%S=icmp slt i32%H,0
br i1%S,label%aH,label%T
T:
%U=bitcast i8*%L to i32*
%V=load i32,i32*%U,align 4
%W=and i32%V,268435455
%X=add nsw i32%W,-1
%Y=icmp slt i32%H,%X
br i1%Y,label%Z,label%aH
Z:
store i8*null,i8**%d,align 8
%aa=sext i32%H to i64
%ab=getelementptr inbounds i8,i8*%y,i64%aa
%ac=load i8,i8*%ab,align 1
%ad=add nsw i32%H,1
%ae=icmp eq i8%ac,10
%af=zext i1%ae to i32
%ag=call i8*@sml_alloc(i32 inreg 20)#0
%ah=getelementptr inbounds i8,i8*%ag,i64 -4
%ai=bitcast i8*%ah to i32*
store i32 1342177296,i32*%ai,align 4
store i8*%ag,i8**%d,align 8
%aj=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ak=bitcast i8*%ag to i8**
store i8*%aj,i8**%ak,align 8
%al=getelementptr inbounds i8,i8*%ag,i64 8
%am=bitcast i8*%al to i32*
store i32%ad,i32*%am,align 4
%an=getelementptr inbounds i8,i8*%ag,i64 12
%ao=bitcast i8*%an to i32*
store i32%af,i32*%ao,align 4
%ap=getelementptr inbounds i8,i8*%ag,i64 16
%aq=bitcast i8*%ap to i32*
store i32 1,i32*%aq,align 4
%ar=call i8*@sml_alloc(i32 inreg 20)#0
%as=getelementptr inbounds i8,i8*%ar,i64 -4
%at=bitcast i8*%as to i32*
store i32 1342177296,i32*%at,align 4
store i8*%ar,i8**%b,align 8
%au=getelementptr inbounds i8,i8*%ar,i64 1
call void@llvm.memset.p0i8.i32(i8*%au,i8 0,i32 7,i1 false)
store i8%ac,i8*%ar,align 1
%av=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aw=getelementptr inbounds i8,i8*%ar,i64 8
%ax=bitcast i8*%aw to i8**
store i8*%av,i8**%ax,align 8
%ay=getelementptr inbounds i8,i8*%ar,i64 16
%az=bitcast i8*%ay to i32*
store i32 2,i32*%az,align 4
%aA=call i8*@sml_alloc(i32 inreg 12)#0
%aB=getelementptr inbounds i8,i8*%aA,i64 -4
%aC=bitcast i8*%aB to i32*
store i32 1342177288,i32*%aC,align 4
%aD=load i8*,i8**%b,align 8
%aE=bitcast i8*%aA to i8**
store i8*%aD,i8**%aE,align 8
%aF=getelementptr inbounds i8,i8*%aA,i64 8
%aG=bitcast i8*%aF to i32*
store i32 1,i32*%aG,align 4
ret i8*%aA
aH:
store i8*null,i8**%c,align 8
store i8*null,i8**%d,align 8
%aI=load i8*,i8**@_SMLZ9Subscript,align 8
store i8*%aI,i8**%b,align 8
%aJ=call i8*@sml_alloc(i32 inreg 20)#0
%aK=getelementptr inbounds i8,i8*%aJ,i64 -4
%aL=bitcast i8*%aK to i32*
store i32 1342177296,i32*%aL,align 4
store i8*%aJ,i8**%c,align 8
%aM=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aN=bitcast i8*%aJ to i8**
store i8*%aM,i8**%aN,align 8
%aO=getelementptr inbounds i8,i8*%aJ,i64 8
%aP=bitcast i8*%aO to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@g,i64 0,i32 2,i64 0),i8**%aP,align 8
%aQ=getelementptr inbounds i8,i8*%aJ,i64 16
%aR=bitcast i8*%aQ to i32*
store i32 3,i32*%aR,align 4
%aS=call i8*@sml_alloc(i32 inreg 60)#0
%aT=getelementptr inbounds i8,i8*%aS,i64 -4
%aU=bitcast i8*%aT to i32*
store i32 1342177336,i32*%aU,align 4
%aV=getelementptr inbounds i8,i8*%aS,i64 56
%aW=bitcast i8*%aV to i32*
store i32 1,i32*%aW,align 4
%aX=load i8*,i8**%c,align 8
%aY=bitcast i8*%aS to i8**
store i8*%aX,i8**%aY,align 8
call void@sml_raise(i8*inreg%aS)#1
unreachable
aZ:
store i8*null,i8**%c,align 8
%a0=call i8*@sml_alloc(i32 inreg 36)#0
%a1=getelementptr inbounds i8,i8*%a0,i64 -4
%a2=bitcast i8*%a1 to i32*
store i32 1342177312,i32*%a2,align 4
%a3=getelementptr inbounds i8,i8*%a0,i64 20
%a4=bitcast i8*%a3 to i32*
store i32 0,i32*%a4,align 1
%a5=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%a6=bitcast i8*%a0 to i8**
store i8*%a5,i8**%a6,align 8
%a7=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%a8=getelementptr inbounds i8,i8*%a0,i64 8
%a9=bitcast i8*%a8 to i8**
store i8*%a7,i8**%a9,align 8
%ba=getelementptr inbounds i8,i8*%a0,i64 16
%bb=bitcast i8*%ba to i32*
store i32%v,i32*%bb,align 4
%bc=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%bd=getelementptr inbounds i8,i8*%a0,i64 24
%be=bitcast i8*%bd to i8**
store i8*%bc,i8**%be,align 8
%bf=getelementptr inbounds i8,i8*%a0,i64 32
%bg=bitcast i8*%bf to i32*
store i32 11,i32*%bg,align 4
%bh=call fastcc i8*@_SMLLLN10ULexBuffer7advanceE_82(i8*inreg%a0)
%bi=bitcast i8*%bh to i32*
%bj=load i32,i32*%bi,align 4
switch i32%bj,label%bk[
i32 1,label%bS
i32 2,label%bD
i32 0,label%bC
]
bk:
call void@sml_matchcomp_bug()
%bl=load i8*,i8**@_SMLZ5Match,align 8
store i8*%bl,i8**%b,align 8
%bm=call i8*@sml_alloc(i32 inreg 20)#0
%bn=getelementptr inbounds i8,i8*%bm,i64 -4
%bo=bitcast i8*%bn to i32*
store i32 1342177296,i32*%bo,align 4
store i8*%bm,i8**%c,align 8
%bp=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%bq=bitcast i8*%bm to i8**
store i8*%bp,i8**%bq,align 8
%br=getelementptr inbounds i8,i8*%bm,i64 8
%bs=bitcast i8*%br to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@f,i64 0,i32 2,i64 0),i8**%bs,align 8
%bt=getelementptr inbounds i8,i8*%bm,i64 16
%bu=bitcast i8*%bt to i32*
store i32 3,i32*%bu,align 4
%bv=call i8*@sml_alloc(i32 inreg 60)#0
%bw=getelementptr inbounds i8,i8*%bv,i64 -4
%bx=bitcast i8*%bw to i32*
store i32 1342177336,i32*%bx,align 4
%by=getelementptr inbounds i8,i8*%bv,i64 56
%bz=bitcast i8*%by to i32*
store i32 1,i32*%bz,align 4
%bA=load i8*,i8**%c,align 8
%bB=bitcast i8*%bv to i8**
store i8*%bA,i8**%bB,align 8
call void@sml_raise(i8*inreg%bv)#1
unreachable
bC:
ret i8*null
bD:
%bE=getelementptr inbounds i8,i8*%bh,i64 8
%bF=bitcast i8*%bE to i8**
%bG=load i8*,i8**%bF,align 8
store i8*%bG,i8**%b,align 8
%bH=call i8*@sml_alloc(i32 inreg 20)#0
%bI=getelementptr inbounds i8,i8*%bH,i64 -4
%bJ=bitcast i8*%bI to i32*
store i32 1342177296,i32*%bJ,align 4
%bK=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%bL=bitcast i8*%bH to i8**
store i8*%bK,i8**%bL,align 8
%bM=getelementptr inbounds i8,i8*%bH,i64 8
%bN=bitcast i8*%bM to i32*
store i32 0,i32*%bN,align 4
%bO=getelementptr inbounds i8,i8*%bH,i64 12
%bP=bitcast i8*%bO to i32*
store i32%K,i32*%bP,align 4
%bQ=getelementptr inbounds i8,i8*%bH,i64 16
%bR=bitcast i8*%bQ to i32*
store i32 1,i32*%bR,align 4
br label%h
bS:
%bT=load i8*,i8**@_SMLZ4Fail,align 8
store i8*%bT,i8**%b,align 8
%bU=call i8*@sml_alloc(i32 inreg 28)#0
%bV=getelementptr inbounds i8,i8*%bU,i64 -4
%bW=bitcast i8*%bV to i32*
store i32 1342177304,i32*%bW,align 4
store i8*%bU,i8**%c,align 8
%bX=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%bY=bitcast i8*%bU to i8**
store i8*%bX,i8**%bY,align 8
%bZ=getelementptr inbounds i8,i8*%bU,i64 8
%b0=bitcast i8*%bZ to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@e,i64 0,i32 2,i64 0),i8**%b0,align 8
%b1=getelementptr inbounds i8,i8*%bU,i64 16
%b2=bitcast i8*%b1 to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[11x i8]}>,<{[4x i8],i32,[11x i8]}>*@o,i64 0,i32 2,i64 0),i8**%b2,align 8
%b3=getelementptr inbounds i8,i8*%bU,i64 24
%b4=bitcast i8*%b3 to i32*
store i32 7,i32*%b4,align 4
%b5=call i8*@sml_alloc(i32 inreg 60)#0
%b6=getelementptr inbounds i8,i8*%b5,i64 -4
%b7=bitcast i8*%b6 to i32*
store i32 1342177336,i32*%b7,align 4
%b8=getelementptr inbounds i8,i8*%b5,i64 56
%b9=bitcast i8*%b8 to i32*
store i32 1,i32*%b9,align 4
%ca=load i8*,i8**%c,align 8
%cb=bitcast i8*%b5 to i8**
store i8*%ca,i8**%cb,align 8
call void@sml_raise(i8*inreg%b5)#1
unreachable
}
define internal fastcc i8*@_SMLLL11getContByte_105(i8*inreg%a)unnamed_addr#2 gc"smlsharp"{
o:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
%g=bitcast i8*%a to i32*
%h=load i32,i32*%g,align 4
%i=getelementptr inbounds i8,i8*%a,i64 8
%j=bitcast i8*%i to i8**
%k=load i8*,i8**%j,align 8
%l=bitcast i8**%b to i8***
br label%m
m:
%n=phi i8*[%ba,%a6],[%k,%o]
store i8*%n,i8**%b,align 8
%p=load atomic i32,i32*@sml_check_flag unordered,align 4
%q=icmp eq i32%p,0
%r=bitcast i8*%n to i8**
br i1%q,label%v,label%s
s:
call void@sml_check(i32 inreg%p)
%t=load i8**,i8***%l,align 8
%u=bitcast i8**%t to i8*
br label%v
v:
%w=phi i8*[%u,%s],[%n,%m]
%x=phi i8**[%t,%s],[%r,%m]
%y=load i8*,i8**%x,align 8
store i8*%y,i8**%c,align 8
%z=bitcast i8*%y to i32*
%A=load i32,i32*%z,align 4
%B=getelementptr inbounds i8,i8*%y,i64 8
%C=bitcast i8*%B to i8**
%D=load i8*,i8**%C,align 8
store i8*%D,i8**%d,align 8
%E=getelementptr inbounds i8,i8*%y,i64 16
%F=bitcast i8*%E to i8**
%G=load i8*,i8**%F,align 8
store i8*%G,i8**%e,align 8
%H=getelementptr inbounds i8,i8*%y,i64 24
%I=bitcast i8*%H to i8**
%J=load i8*,i8**%I,align 8
store i8*%J,i8**%f,align 8
store i8*null,i8**%b,align 8
%K=getelementptr inbounds i8,i8*%w,i64 8
%L=bitcast i8*%K to i32*
%M=load i32,i32*%L,align 4
%N=getelementptr inbounds i8,i8*%D,i64 -4
%O=bitcast i8*%N to i32*
%P=load i32,i32*%O,align 4
%Q=and i32%P,268435455
%R=add nsw i32%Q,-1
%S=icmp slt i32%M,%R
br i1%S,label%T,label%at
T:
store i8*null,i8**%e,align 8
store i8*null,i8**%f,align 8
%U=icmp slt i32%M,0
br i1%U,label%ab,label%V
V:
%W=bitcast i8*%N to i32*
%X=load i32,i32*%W,align 4
%Y=and i32%X,268435455
%Z=add nsw i32%Y,-1
%aa=icmp slt i32%M,%Z
br i1%aa,label%bF,label%ab
ab:
store i8*null,i8**%c,align 8
store i8*null,i8**%d,align 8
%ac=load i8*,i8**@_SMLZ9Subscript,align 8
store i8*%ac,i8**%b,align 8
%ad=call i8*@sml_alloc(i32 inreg 20)#0
%ae=getelementptr inbounds i8,i8*%ad,i64 -4
%af=bitcast i8*%ae to i32*
store i32 1342177296,i32*%af,align 4
store i8*%ad,i8**%c,align 8
%ag=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%ah=bitcast i8*%ad to i8**
store i8*%ag,i8**%ah,align 8
%ai=getelementptr inbounds i8,i8*%ad,i64 8
%aj=bitcast i8*%ai to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@q,i64 0,i32 2,i64 0),i8**%aj,align 8
%ak=getelementptr inbounds i8,i8*%ad,i64 16
%al=bitcast i8*%ak to i32*
store i32 3,i32*%al,align 4
%am=call i8*@sml_alloc(i32 inreg 60)#0
%an=getelementptr inbounds i8,i8*%am,i64 -4
%ao=bitcast i8*%an to i32*
store i32 1342177336,i32*%ao,align 4
%ap=getelementptr inbounds i8,i8*%am,i64 56
%aq=bitcast i8*%ap to i32*
store i32 1,i32*%aq,align 4
%ar=load i8*,i8**%c,align 8
%as=bitcast i8*%am to i8**
store i8*%ar,i8**%as,align 8
call void@sml_raise(i8*inreg%am)#1
unreachable
at:
store i8*null,i8**%c,align 8
%au=call i8*@sml_alloc(i32 inreg 36)#0
%av=getelementptr inbounds i8,i8*%au,i64 -4
%aw=bitcast i8*%av to i32*
store i32 1342177312,i32*%aw,align 4
%ax=getelementptr inbounds i8,i8*%au,i64 20
%ay=bitcast i8*%ax to i32*
store i32 0,i32*%ay,align 1
%az=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aA=bitcast i8*%au to i8**
store i8*%az,i8**%aA,align 8
%aB=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%aC=getelementptr inbounds i8,i8*%au,i64 8
%aD=bitcast i8*%aC to i8**
store i8*%aB,i8**%aD,align 8
%aE=getelementptr inbounds i8,i8*%au,i64 16
%aF=bitcast i8*%aE to i32*
store i32%A,i32*%aF,align 4
%aG=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%aH=getelementptr inbounds i8,i8*%au,i64 24
%aI=bitcast i8*%aH to i8**
store i8*%aG,i8**%aI,align 8
%aJ=getelementptr inbounds i8,i8*%au,i64 32
%aK=bitcast i8*%aJ to i32*
store i32 11,i32*%aK,align 4
%aL=call fastcc i8*@_SMLLLN10ULexBuffer7advanceE_82(i8*inreg%au)
%aM=bitcast i8*%aL to i32*
%aN=load i32,i32*%aM,align 4
switch i32%aN,label%aO[
i32 1,label%bl
i32 2,label%a6
i32 0,label%cf
]
aO:
call void@sml_matchcomp_bug()
%aP=load i8*,i8**@_SMLZ5Match,align 8
store i8*%aP,i8**%b,align 8
%aQ=call i8*@sml_alloc(i32 inreg 20)#0
%aR=getelementptr inbounds i8,i8*%aQ,i64 -4
%aS=bitcast i8*%aR to i32*
store i32 1342177296,i32*%aS,align 4
store i8*%aQ,i8**%c,align 8
%aT=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aU=bitcast i8*%aQ to i8**
store i8*%aT,i8**%aU,align 8
%aV=getelementptr inbounds i8,i8*%aQ,i64 8
%aW=bitcast i8*%aV to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@p,i64 0,i32 2,i64 0),i8**%aW,align 8
%aX=getelementptr inbounds i8,i8*%aQ,i64 16
%aY=bitcast i8*%aX to i32*
store i32 3,i32*%aY,align 4
%aZ=call i8*@sml_alloc(i32 inreg 60)#0
%a0=getelementptr inbounds i8,i8*%aZ,i64 -4
%a1=bitcast i8*%a0 to i32*
store i32 1342177336,i32*%a1,align 4
%a2=getelementptr inbounds i8,i8*%aZ,i64 56
%a3=bitcast i8*%a2 to i32*
store i32 1,i32*%a3,align 4
%a4=load i8*,i8**%c,align 8
%a5=bitcast i8*%aZ to i8**
store i8*%a4,i8**%a5,align 8
call void@sml_raise(i8*inreg%aZ)#1
unreachable
a6:
%a7=getelementptr inbounds i8,i8*%aL,i64 8
%a8=bitcast i8*%a7 to i8**
%a9=load i8*,i8**%a8,align 8
store i8*%a9,i8**%b,align 8
%ba=call i8*@sml_alloc(i32 inreg 20)#0
%bb=getelementptr inbounds i8,i8*%ba,i64 -4
%bc=bitcast i8*%bb to i32*
store i32 1342177296,i32*%bc,align 4
%bd=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%be=bitcast i8*%ba to i8**
store i8*%bd,i8**%be,align 8
%bf=getelementptr inbounds i8,i8*%ba,i64 8
%bg=bitcast i8*%bf to i32*
store i32 0,i32*%bg,align 4
%bh=getelementptr inbounds i8,i8*%ba,i64 12
%bi=bitcast i8*%bh to i32*
store i32 0,i32*%bi,align 4
%bj=getelementptr inbounds i8,i8*%ba,i64 16
%bk=bitcast i8*%bj to i32*
store i32 1,i32*%bk,align 4
br label%m
bl:
%bm=load i8*,i8**@_SMLZ4Fail,align 8
store i8*%bm,i8**%b,align 8
%bn=call i8*@sml_alloc(i32 inreg 28)#0
%bo=getelementptr inbounds i8,i8*%bn,i64 -4
%bp=bitcast i8*%bo to i32*
store i32 1342177304,i32*%bp,align 4
store i8*%bn,i8**%c,align 8
%bq=load i8*,i8**%b,align 8
store i8*null,i8**%b,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 i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@n,i64 0,i32 2,i64 0),i8**%bt,align 8
%bu=getelementptr inbounds i8,i8*%bn,i64 16
%bv=bitcast i8*%bu to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[11x i8]}>,<{[4x i8],i32,[11x i8]}>*@o,i64 0,i32 2,i64 0),i8**%bv,align 8
%bw=getelementptr inbounds i8,i8*%bn,i64 24
%bx=bitcast i8*%bw to i32*
store i32 7,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**%c,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:
store i8*null,i8**%d,align 8
%bG=sext i32%M to i64
%bH=getelementptr inbounds i8,i8*%D,i64%bG
%bI=load i8,i8*%bH,align 1
%bJ=zext i8%bI to i32
%bK=add nsw i32%M,1
%bL=call i8*@sml_alloc(i32 inreg 20)#0
%bM=getelementptr inbounds i8,i8*%bL,i64 -4
%bN=bitcast i8*%bM to i32*
store i32 1342177296,i32*%bN,align 4
store i8*%bL,i8**%d,align 8
%bO=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bP=bitcast i8*%bL to i8**
store i8*%bO,i8**%bP,align 8
%bQ=getelementptr inbounds i8,i8*%bL,i64 8
%bR=bitcast i8*%bQ to i32*
store i32%bK,i32*%bR,align 4
%bS=getelementptr inbounds i8,i8*%bL,i64 12
%bT=bitcast i8*%bS to i32*
store i32 0,i32*%bT,align 4
%bU=getelementptr inbounds i8,i8*%bL,i64 16
%bV=bitcast i8*%bU to i32*
store i32 1,i32*%bV,align 4
%bW=call i8*@sml_alloc(i32 inreg 20)#0
%bX=getelementptr inbounds i8,i8*%bW,i64 -4
%bY=bitcast i8*%bX to i32*
store i32 1342177296,i32*%bY,align 4
store i8*%bW,i8**%b,align 8
%bZ=getelementptr inbounds i8,i8*%bW,i64 4
%b0=bitcast i8*%bZ to i32*
store i32 0,i32*%b0,align 1
%b1=bitcast i8*%bW to i32*
store i32%bJ,i32*%b1,align 4
%b2=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%b3=getelementptr inbounds i8,i8*%bW,i64 8
%b4=bitcast i8*%b3 to i8**
store i8*%b2,i8**%b4,align 8
%b5=getelementptr inbounds i8,i8*%bW,i64 16
%b6=bitcast i8*%b5 to i32*
store i32 2,i32*%b6,align 4
%b7=call i8*@sml_alloc(i32 inreg 12)#0
%b8=getelementptr inbounds i8,i8*%b7,i64 -4
%b9=bitcast i8*%b8 to i32*
store i32 1342177288,i32*%b9,align 4
%ca=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%cb=bitcast i8*%b7 to i8**
store i8*%ca,i8**%cb,align 8
%cc=getelementptr inbounds i8,i8*%b7,i64 8
%cd=bitcast i8*%cc to i32*
store i32 1,i32*%cd,align 4
%ce=icmp eq i8*%b7,null
br i1%ce,label%cf,label%cm
cf:
%cg=call i8*@sml_alloc(i32 inreg 60)#0
%ch=getelementptr inbounds i8,i8*%cg,i64 -4
%ci=bitcast i8*%ch to i32*
store i32 1342177336,i32*%ci,align 4
%cj=getelementptr inbounds i8,i8*%cg,i64 56
%ck=bitcast i8*%cj to i32*
store i32 1,i32*%ck,align 4
%cl=bitcast i8*%cg to i8**
store i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,i8*,i32}>,<{[4x i8],i32,i8*,i8*,i32}>*@u,i64 0,i32 2)to i8*),i8**%cl,align 8
call void@sml_raise(i8*inreg%cg)#1
unreachable
cm:
%cn=bitcast i8*%ca to i32*
%co=load i32,i32*%cn,align 4
%cp=getelementptr inbounds i8,i8*%ca,i64 8
%cq=bitcast i8*%cp to i8**
%cr=load i8*,i8**%cq,align 8
store i8*%cr,i8**%b,align 8
%cs=and i32%co,192
%ct=icmp eq i32%cs,128
br i1%ct,label%cu,label%cJ
cu:
%cv=shl i32%h,6
%cw=and i32%co,63
%cx=or i32%cw,%cv
%cy=call i8*@sml_alloc(i32 inreg 20)#0
%cz=bitcast i8*%cy to i32*
%cA=getelementptr inbounds i8,i8*%cy,i64 -4
%cB=bitcast i8*%cA to i32*
store i32 1342177296,i32*%cB,align 4
%cC=getelementptr inbounds i8,i8*%cy,i64 4
%cD=bitcast i8*%cC to i32*
store i32 0,i32*%cD,align 1
store i32%cx,i32*%cz,align 4
%cE=load i8*,i8**%b,align 8
%cF=getelementptr inbounds i8,i8*%cy,i64 8
%cG=bitcast i8*%cF to i8**
store i8*%cE,i8**%cG,align 8
%cH=getelementptr inbounds i8,i8*%cy,i64 16
%cI=bitcast i8*%cH to i32*
store i32 2,i32*%cI,align 4
ret i8*%cy
cJ:
store i8*null,i8**%b,align 8
%cK=call i8*@sml_alloc(i32 inreg 60)#0
%cL=getelementptr inbounds i8,i8*%cK,i64 -4
%cM=bitcast i8*%cL to i32*
store i32 1342177336,i32*%cM,align 4
%cN=getelementptr inbounds i8,i8*%cK,i64 56
%cO=bitcast i8*%cN to i32*
store i32 1,i32*%cO,align 4
%cP=bitcast i8*%cK to i8**
store i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,i8*,i32}>,<{[4x i8],i32,i8*,i8*,i32}>*@s,i64 0,i32 2)to i8*),i8**%cP,align 8
call void@sml_raise(i8*inreg%cK)#1
unreachable
}
define fastcc i8*@_SMLFN10ULexBuffer4getuE(i8*inreg%a)#2 gc"smlsharp"{
j:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
%g=bitcast i8**%b to i8***
br label%h
h:
%i=phi i8*[%cK,%cG],[%a,%j]
store i8*%i,i8**%b,align 8
%k=load atomic i32,i32*@sml_check_flag unordered,align 4
%l=icmp eq i32%k,0
%m=bitcast i8*%i to i8**
br i1%l,label%q,label%n
n:
call void@sml_check(i32 inreg%k)
%o=load i8**,i8***%g,align 8
%p=bitcast i8**%o to i8*
br label%q
q:
%r=phi i8*[%p,%n],[%i,%h]
%s=phi i8**[%o,%n],[%m,%h]
%t=load i8*,i8**%s,align 8
store i8*%t,i8**%c,align 8
%u=bitcast i8*%t to i32*
%v=load i32,i32*%u,align 4
%w=getelementptr inbounds i8,i8*%t,i64 8
%x=bitcast i8*%w to i8**
%y=load i8*,i8**%x,align 8
store i8*%y,i8**%d,align 8
%z=getelementptr inbounds i8,i8*%t,i64 16
%A=bitcast i8*%z to i8**
%B=load i8*,i8**%A,align 8
store i8*%B,i8**%e,align 8
%C=getelementptr inbounds i8,i8*%t,i64 24
%D=bitcast i8*%C to i8**
%E=load i8*,i8**%D,align 8
store i8*%E,i8**%f,align 8
store i8*null,i8**%b,align 8
%F=getelementptr inbounds i8,i8*%r,i64 8
%G=bitcast i8*%F to i32*
%H=load i32,i32*%G,align 4
%I=getelementptr inbounds i8,i8*%y,i64 -4
%J=bitcast i8*%I to i32*
%K=load i32,i32*%J,align 4
%L=and i32%K,268435455
%M=add nsw i32%L,-1
%N=icmp slt i32%H,%M
br i1%N,label%O,label%b2
O:
store i8*null,i8**%e,align 8
store i8*null,i8**%f,align 8
%P=icmp slt i32%H,0
br i1%P,label%ad,label%Q
Q:
%R=bitcast i8*%I to i32*
%S=load i32,i32*%R,align 4
%T=and i32%S,268435455
%U=add nsw i32%T,-1
%V=icmp slt i32%H,%U
br i1%V,label%W,label%ad
W:
store i8*null,i8**%d,align 8
%X=sext i32%H to i64
%Y=getelementptr inbounds i8,i8*%y,i64%X
%Z=load i8,i8*%Y,align 1
%aa=zext i8%Z to i32
%ab=icmp slt i8%Z,0
%ac=add nsw i32%H,1
br i1%ab,label%a1,label%av
ad:
store i8*null,i8**%c,align 8
store i8*null,i8**%d,align 8
%ae=load i8*,i8**@_SMLZ9Subscript,align 8
store i8*%ae,i8**%b,align 8
%af=call i8*@sml_alloc(i32 inreg 20)#0
%ag=getelementptr inbounds i8,i8*%af,i64 -4
%ah=bitcast i8*%ag to i32*
store i32 1342177296,i32*%ah,align 4
store i8*%af,i8**%c,align 8
%ai=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aj=bitcast i8*%af to i8**
store i8*%ai,i8**%aj,align 8
%ak=getelementptr inbounds i8,i8*%af,i64 8
%al=bitcast i8*%ak to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@m,i64 0,i32 2,i64 0),i8**%al,align 8
%am=getelementptr inbounds i8,i8*%af,i64 16
%an=bitcast i8*%am to i32*
store i32 3,i32*%an,align 4
%ao=call i8*@sml_alloc(i32 inreg 60)#0
%ap=getelementptr inbounds i8,i8*%ao,i64 -4
%aq=bitcast i8*%ap to i32*
store i32 1342177336,i32*%aq,align 4
%ar=getelementptr inbounds i8,i8*%ao,i64 56
%as=bitcast i8*%ar to i32*
store i32 1,i32*%as,align 4
%at=load i8*,i8**%c,align 8
%au=bitcast i8*%ao to i8**
store i8*%at,i8**%au,align 8
call void@sml_raise(i8*inreg%ao)#1
unreachable
av:
%aw=icmp eq i8%Z,10
%ax=zext i1%aw to i32
%ay=call i8*@sml_alloc(i32 inreg 20)#0
%az=getelementptr inbounds i8,i8*%ay,i64 -4
%aA=bitcast i8*%az to i32*
store i32 1342177296,i32*%aA,align 4
store i8*%ay,i8**%d,align 8
%aB=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aC=bitcast i8*%ay to i8**
store i8*%aB,i8**%aC,align 8
%aD=getelementptr inbounds i8,i8*%ay,i64 8
%aE=bitcast i8*%aD to i32*
store i32%ac,i32*%aE,align 4
%aF=getelementptr inbounds i8,i8*%ay,i64 12
%aG=bitcast i8*%aF to i32*
store i32%ax,i32*%aG,align 4
%aH=getelementptr inbounds i8,i8*%ay,i64 16
%aI=bitcast i8*%aH to i32*
store i32 1,i32*%aI,align 4
%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**%b,align 8
%aM=getelementptr inbounds i8,i8*%aJ,i64 4
%aN=bitcast i8*%aM to i32*
store i32 0,i32*%aN,align 1
%aO=bitcast i8*%aJ to i32*
store i32%aa,i32*%aO,align 4
%aP=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aQ=getelementptr inbounds i8,i8*%aJ,i64 8
%aR=bitcast i8*%aQ to i8**
store i8*%aP,i8**%aR,align 8
%aS=getelementptr inbounds i8,i8*%aJ,i64 16
%aT=bitcast i8*%aS to i32*
store i32 2,i32*%aT,align 4
%aU=call i8*@sml_alloc(i32 inreg 12)#0
%aV=getelementptr inbounds i8,i8*%aU,i64 -4
%aW=bitcast i8*%aV to i32*
store i32 1342177288,i32*%aW,align 4
%aX=load i8*,i8**%b,align 8
%aY=bitcast i8*%aU to i8**
store i8*%aX,i8**%aY,align 8
%aZ=getelementptr inbounds i8,i8*%aU,i64 8
%a0=bitcast i8*%aZ to i32*
store i32 1,i32*%a0,align 4
ret i8*%aU
a1:
%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**%b,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 i32*
store i32%ac,i32*%a8,align 4
%a9=getelementptr inbounds i8,i8*%a2,i64 12
%ba=bitcast i8*%a9 to i32*
store i32 0,i32*%ba,align 4
%bb=getelementptr inbounds i8,i8*%a2,i64 16
%bc=bitcast i8*%bb to i32*
store i32 1,i32*%bc,align 4
%bd=and i8%Z,-32
switch i8%bd,label%be[
i8 -64,label%bH
i8 -32,label%bl
]
be:
store i8*null,i8**%b,align 8
%bf=call i8*@sml_alloc(i32 inreg 60)#0
%bg=getelementptr inbounds i8,i8*%bf,i64 -4
%bh=bitcast i8*%bg to i32*
store i32 1342177336,i32*%bh,align 4
%bi=getelementptr inbounds i8,i8*%bf,i64 56
%bj=bitcast i8*%bi to i32*
store i32 1,i32*%bj,align 4
%bk=bitcast i8*%bf to i8**
store i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,i8*,i32}>,<{[4x i8],i32,i8*,i8*,i32}>*@w,i64 0,i32 2)to i8*),i8**%bk,align 8
call void@sml_raise(i8*inreg%bf)#1
unreachable
bl:
%bm=and i32%aa,15
%bn=call i8*@sml_alloc(i32 inreg 20)#0
%bo=bitcast i8*%bn to i32*
%bp=getelementptr inbounds i8,i8*%bn,i64 -4
%bq=bitcast i8*%bp to i32*
store i32 1342177296,i32*%bq,align 4
%br=getelementptr inbounds i8,i8*%bn,i64 4
%bs=bitcast i8*%br to i32*
store i32 0,i32*%bs,align 1
store i32%bm,i32*%bo,align 4
%bt=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%bu=getelementptr inbounds i8,i8*%bn,i64 8
%bv=bitcast i8*%bu to i8**
store i8*%bt,i8**%bv,align 8
%bw=getelementptr inbounds i8,i8*%bn,i64 16
%bx=bitcast i8*%bw to i32*
store i32 2,i32*%bx,align 4
%by=call fastcc i8*@_SMLLL11getContByte_105(i8*inreg%bn)
%bz=call fastcc i8*@_SMLLL11getContByte_105(i8*inreg%by)
store i8*%bz,i8**%b,align 8
%bA=call i8*@sml_alloc(i32 inreg 12)#0
%bB=getelementptr inbounds i8,i8*%bA,i64 -4
%bC=bitcast i8*%bB to i32*
store i32 1342177288,i32*%bC,align 4
%bD=load i8*,i8**%b,align 8
%bE=bitcast i8*%bA to i8**
store i8*%bD,i8**%bE,align 8
%bF=getelementptr inbounds i8,i8*%bA,i64 8
%bG=bitcast i8*%bF to i32*
store i32 1,i32*%bG,align 4
ret i8*%bA
bH:
%bI=and i32%aa,31
%bJ=call i8*@sml_alloc(i32 inreg 20)#0
%bK=bitcast i8*%bJ to i32*
%bL=getelementptr inbounds i8,i8*%bJ,i64 -4
%bM=bitcast i8*%bL to i32*
store i32 1342177296,i32*%bM,align 4
%bN=getelementptr inbounds i8,i8*%bJ,i64 4
%bO=bitcast i8*%bN to i32*
store i32 0,i32*%bO,align 1
store i32%bI,i32*%bK,align 4
%bP=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%bQ=getelementptr inbounds i8,i8*%bJ,i64 8
%bR=bitcast i8*%bQ to i8**
store i8*%bP,i8**%bR,align 8
%bS=getelementptr inbounds i8,i8*%bJ,i64 16
%bT=bitcast i8*%bS to i32*
store i32 2,i32*%bT,align 4
%bU=call fastcc i8*@_SMLLL11getContByte_105(i8*inreg%bJ)
store i8*%bU,i8**%b,align 8
%bV=call i8*@sml_alloc(i32 inreg 12)#0
%bW=getelementptr inbounds i8,i8*%bV,i64 -4
%bX=bitcast i8*%bW to i32*
store i32 1342177288,i32*%bX,align 4
%bY=load i8*,i8**%b,align 8
%bZ=bitcast i8*%bV to i8**
store i8*%bY,i8**%bZ,align 8
%b0=getelementptr inbounds i8,i8*%bV,i64 8
%b1=bitcast i8*%b0 to i32*
store i32 1,i32*%b1,align 4
ret i8*%bV
b2:
store i8*null,i8**%c,align 8
%b3=call i8*@sml_alloc(i32 inreg 36)#0
%b4=getelementptr inbounds i8,i8*%b3,i64 -4
%b5=bitcast i8*%b4 to i32*
store i32 1342177312,i32*%b5,align 4
%b6=getelementptr inbounds i8,i8*%b3,i64 20
%b7=bitcast i8*%b6 to i32*
store i32 0,i32*%b7,align 1
%b8=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%b9=bitcast i8*%b3 to i8**
store i8*%b8,i8**%b9,align 8
%ca=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%cb=getelementptr inbounds i8,i8*%b3,i64 8
%cc=bitcast i8*%cb to i8**
store i8*%ca,i8**%cc,align 8
%cd=getelementptr inbounds i8,i8*%b3,i64 16
%ce=bitcast i8*%cd to i32*
store i32%v,i32*%ce,align 4
%cf=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%cg=getelementptr inbounds i8,i8*%b3,i64 24
%ch=bitcast i8*%cg to i8**
store i8*%cf,i8**%ch,align 8
%ci=getelementptr inbounds i8,i8*%b3,i64 32
%cj=bitcast i8*%ci to i32*
store i32 11,i32*%cj,align 4
%ck=call fastcc i8*@_SMLLLN10ULexBuffer7advanceE_82(i8*inreg%b3)
%cl=bitcast i8*%ck to i32*
%cm=load i32,i32*%cl,align 4
switch i32%cm,label%cn[
i32 1,label%cV
i32 2,label%cG
i32 0,label%cF
]
cn:
call void@sml_matchcomp_bug()
%co=load i8*,i8**@_SMLZ5Match,align 8
store i8*%co,i8**%b,align 8
%cp=call i8*@sml_alloc(i32 inreg 20)#0
%cq=getelementptr inbounds i8,i8*%cp,i64 -4
%cr=bitcast i8*%cq to i32*
store i32 1342177296,i32*%cr,align 4
store i8*%cp,i8**%c,align 8
%cs=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%ct=bitcast i8*%cp to i8**
store i8*%cs,i8**%ct,align 8
%cu=getelementptr inbounds i8,i8*%cp,i64 8
%cv=bitcast i8*%cu to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@l,i64 0,i32 2,i64 0),i8**%cv,align 8
%cw=getelementptr inbounds i8,i8*%cp,i64 16
%cx=bitcast i8*%cw to i32*
store i32 3,i32*%cx,align 4
%cy=call i8*@sml_alloc(i32 inreg 60)#0
%cz=getelementptr inbounds i8,i8*%cy,i64 -4
%cA=bitcast i8*%cz to i32*
store i32 1342177336,i32*%cA,align 4
%cB=getelementptr inbounds i8,i8*%cy,i64 56
%cC=bitcast i8*%cB to i32*
store i32 1,i32*%cC,align 4
%cD=load i8*,i8**%c,align 8
%cE=bitcast i8*%cy to i8**
store i8*%cD,i8**%cE,align 8
call void@sml_raise(i8*inreg%cy)#1
unreachable
cF:
ret i8*null
cG:
%cH=getelementptr inbounds i8,i8*%ck,i64 8
%cI=bitcast i8*%cH to i8**
%cJ=load i8*,i8**%cI,align 8
store i8*%cJ,i8**%b,align 8
%cK=call i8*@sml_alloc(i32 inreg 20)#0
%cL=getelementptr inbounds i8,i8*%cK,i64 -4
%cM=bitcast i8*%cL to i32*
store i32 1342177296,i32*%cM,align 4
%cN=load i8*,i8**%b,align 8
store i8*null,i8**%b,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 0,i32*%cQ,align 4
%cR=getelementptr inbounds i8,i8*%cK,i64 12
%cS=bitcast i8*%cR to i32*
store i32 0,i32*%cS,align 4
%cT=getelementptr inbounds i8,i8*%cK,i64 16
%cU=bitcast i8*%cT to i32*
store i32 1,i32*%cU,align 4
br label%h
cV:
%cW=load i8*,i8**@_SMLZ4Fail,align 8
store i8*%cW,i8**%b,align 8
%cX=call i8*@sml_alloc(i32 inreg 28)#0
%cY=getelementptr inbounds i8,i8*%cX,i64 -4
%cZ=bitcast i8*%cY to i32*
store i32 1342177304,i32*%cZ,align 4
store i8*%cX,i8**%c,align 8
%c0=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%c1=bitcast i8*%cX to i8**
store i8*%c0,i8**%c1,align 8
%c2=getelementptr inbounds i8,i8*%cX,i64 8
%c3=bitcast i8*%c2 to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@k,i64 0,i32 2,i64 0),i8**%c3,align 8
%c4=getelementptr inbounds i8,i8*%cX,i64 16
%c5=bitcast i8*%c4 to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[11x i8]}>,<{[4x i8],i32,[11x i8]}>*@o,i64 0,i32 2,i64 0),i8**%c5,align 8
%c6=getelementptr inbounds i8,i8*%cX,i64 24
%c7=bitcast i8*%c6 to i32*
store i32 7,i32*%c7,align 4
%c8=call i8*@sml_alloc(i32 inreg 60)#0
%c9=getelementptr inbounds i8,i8*%c8,i64 -4
%da=bitcast i8*%c9 to i32*
store i32 1342177336,i32*%da,align 4
%db=getelementptr inbounds i8,i8*%c8,i64 56
%dc=bitcast i8*%db to i32*
store i32 1,i32*%dc,align 4
%dd=load i8*,i8**%c,align 8
%de=bitcast i8*%c8 to i8**
store i8*%dd,i8**%de,align 8
call void@sml_raise(i8*inreg%c8)#1
unreachable
}
define fastcc i32@_SMLFN10ULexBuffer6getposE(i8*inreg%a)#2 gc"smlsharp"{
i:
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%g,label%e
e:
call void@sml_check(i32 inreg%c)
%f=load i8*,i8**%b,align 8
br label%g
g:
%h=phi i8*[%f,%e],[%a,%i]
store i8*null,i8**%b,align 8
%j=bitcast i8*%h to i32**
%k=load i32*,i32**%j,align 8
%l=load i32,i32*%k,align 4
%m=getelementptr inbounds i8,i8*%h,i64 8
%n=bitcast i8*%m to i32*
%o=load i32,i32*%n,align 4
%p=call i8*@sml_alloc(i32 inreg 12)#0
%q=bitcast i8*%p to i32*
%r=getelementptr inbounds i8,i8*%p,i64 -4
%s=bitcast i8*%r to i32*
store i32 1342177288,i32*%s,align 4
store i32%l,i32*%q,align 4
%t=getelementptr inbounds i8,i8*%p,i64 4
%u=bitcast i8*%t to i32*
store i32%o,i32*%u,align 4
%v=getelementptr inbounds i8,i8*%p,i64 8
%w=bitcast i8*%v to i32*
store i32 0,i32*%w,align 4
%x=tail call fastcc i32@_SMLFN14AntlrStreamPos7forwardE(i8*inreg%p)
ret i32%x
}
define fastcc i8*@_SMLFN10ULexBuffer8subtractE(i8*inreg%a)#2 gc"smlsharp"{
l:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
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**%b,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**%b,align 8
br label%j
j:
%k=phi i8*[%i,%h],[%a,%l]
%m=bitcast i8*%k to i8**
%n=load i8*,i8**%m,align 8
store i8*%n,i8**%b,align 8
%o=getelementptr inbounds i8,i8*%k,i64 8
%p=bitcast i8*%o to i8**
%q=load i8*,i8**%p,align 8
%r=bitcast i8*%n to i8**
%s=load i8*,i8**%r,align 8
%t=bitcast i8*%s to i32*
%u=load i32,i32*%t,align 4
%v=getelementptr inbounds i8,i8*%s,i64 8
%w=bitcast i8*%v to i8**
%x=load i8*,i8**%w,align 8
store i8*%x,i8**%c,align 8
%y=getelementptr inbounds i8,i8*%n,i64 8
%z=bitcast i8*%y to i32*
%A=load i32,i32*%z,align 4
%B=bitcast i8*%q to i8**
%C=load i8*,i8**%B,align 8
%D=bitcast i8*%C to i32*
%E=load i32,i32*%D,align 4
%F=getelementptr inbounds i8,i8*%C,i64 8
%G=bitcast i8*%F to i8**
%H=load i8*,i8**%G,align 8
store i8*%H,i8**%d,align 8
%I=getelementptr inbounds i8,i8*%q,i64 8
%J=bitcast i8*%I to i32*
%K=load i32,i32*%J,align 4
%L=icmp eq i32%u,%E
br i1%L,label%M,label%aa
M:
store i8*null,i8**%b,align 8
store i8*null,i8**%d,align 8
%N=sub nsw i32%A,%K
%O=call i8*@sml_alloc(i32 inreg 20)#0
%P=getelementptr inbounds i8,i8*%O,i64 -4
%Q=bitcast i8*%P to i32*
store i32 1342177296,i32*%Q,align 4
%R=load i8*,i8**%c,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 i32*
store i32%K,i32*%U,align 4
%V=getelementptr inbounds i8,i8*%O,i64 12
%W=bitcast i8*%V to i32*
store i32%N,i32*%W,align 4
%X=getelementptr inbounds i8,i8*%O,i64 16
%Y=bitcast i8*%X to i32*
store i32 1,i32*%Y,align 4
%Z=tail call fastcc i8*@_SMLFN9Substring9substringE(i8*inreg%O)
ret i8*%Z
aa:
%ab=getelementptr inbounds i8,i8*%C,i64 24
%ac=bitcast i8*%ab to i8***
%ad=load i8**,i8***%ac,align 8
store i8*null,i8**%c,align 8
%ae=load i8*,i8**%ad,align 8
%af=bitcast i8*%ae to i32*
%ag=load i32,i32*%af,align 4
switch i32%ag,label%ah[
i32 1,label%b5
i32 2,label%aT
i32 0,label%az
]
ah:
store i8*null,i8**%d,align 8
call void@sml_matchcomp_bug()
%ai=load i8*,i8**@_SMLZ5Match,align 8
store i8*%ai,i8**%b,align 8
%aj=call i8*@sml_alloc(i32 inreg 20)#0
%ak=getelementptr inbounds i8,i8*%aj,i64 -4
%al=bitcast i8*%ak to i32*
store i32 1342177296,i32*%al,align 4
store i8*%aj,i8**%c,align 8
%am=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%an=bitcast i8*%aj to i8**
store i8*%am,i8**%an,align 8
%ao=getelementptr inbounds i8,i8*%aj,i64 8
%ap=bitcast i8*%ao to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@D,i64 0,i32 2,i64 0),i8**%ap,align 8
%aq=getelementptr inbounds i8,i8*%aj,i64 16
%ar=bitcast i8*%aq to i32*
store i32 3,i32*%ar,align 4
%as=call i8*@sml_alloc(i32 inreg 60)#0
%at=getelementptr inbounds i8,i8*%as,i64 -4
%au=bitcast i8*%at to i32*
store i32 1342177336,i32*%au,align 4
%av=getelementptr inbounds i8,i8*%as,i64 56
%aw=bitcast i8*%av to i32*
store i32 1,i32*%aw,align 4
%ax=load i8*,i8**%c,align 8
%ay=bitcast i8*%as to i8**
store i8*%ax,i8**%ay,align 8
call void@sml_raise(i8*inreg%as)#1
unreachable
az:
store i8*null,i8**%d,align 8
%aA=load i8*,i8**@_SMLZ4Fail,align 8
store i8*%aA,i8**%b,align 8
%aB=call i8*@sml_alloc(i32 inreg 28)#0
%aC=getelementptr inbounds i8,i8*%aB,i64 -4
%aD=bitcast i8*%aC to i32*
store i32 1342177304,i32*%aD,align 4
store i8*%aB,i8**%c,align 8
%aE=load i8*,i8**%b,align 8
store i8*null,i8**%b,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,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@B,i64 0,i32 2,i64 0),i8**%aH,align 8
%aI=getelementptr inbounds i8,i8*%aB,i64 16
%aJ=bitcast i8*%aI to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[52x i8]}>,<{[4x i8],i32,[52x i8]}>*@C,i64 0,i32 2,i64 0),i8**%aJ,align 8
%aK=getelementptr inbounds i8,i8*%aB,i64 24
%aL=bitcast i8*%aK to i32*
store i32 7,i32*%aL,align 4
%aM=call i8*@sml_alloc(i32 inreg 60)#0
%aN=getelementptr inbounds i8,i8*%aM,i64 -4
%aO=bitcast i8*%aN to i32*
store i32 1342177336,i32*%aO,align 4
%aP=getelementptr inbounds i8,i8*%aM,i64 56
%aQ=bitcast i8*%aP to i32*
store i32 1,i32*%aQ,align 4
%aR=load i8*,i8**%c,align 8
%aS=bitcast i8*%aM to i8**
store i8*%aR,i8**%aS,align 8
call void@sml_raise(i8*inreg%aM)#1
unreachable
aT:
%aU=getelementptr inbounds i8,i8*%ae,i64 8
%aV=bitcast i8*%aU to i8**
%aW=load i8*,i8**%aV,align 8
store i8*%aW,i8**%c,align 8
%aX=call i8*@sml_alloc(i32 inreg 28)#0
%aY=getelementptr inbounds i8,i8*%aX,i64 -4
%aZ=bitcast i8*%aY to i32*
store i32 1342177304,i32*%aZ,align 4
%a0=getelementptr inbounds i8,i8*%aX,i64 12
%a1=bitcast i8*%a0 to i32*
store i32 0,i32*%a1,align 1
%a2=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%a3=bitcast i8*%aX to i8**
store i8*%a2,i8**%a3,align 8
%a4=getelementptr inbounds i8,i8*%aX,i64 8
%a5=bitcast i8*%a4 to i32*
store i32%K,i32*%a5,align 4
%a6=getelementptr inbounds i8,i8*%aX,i64 16
%a7=bitcast i8*%a6 to i8**
store i8*null,i8**%a7,align 8
%a8=getelementptr inbounds i8,i8*%aX,i64 24
%a9=bitcast i8*%a8 to i32*
store i32 5,i32*%a9,align 4
%ba=call fastcc i8*@_SMLFN9Substring7extractE(i8*inreg%aX)
store i8*%ba,i8**%d,align 8
%bb=call i8*@sml_alloc(i32 inreg 20)#0
%bc=getelementptr inbounds i8,i8*%bb,i64 -4
%bd=bitcast i8*%bc to i32*
store i32 1342177296,i32*%bd,align 4
store i8*%bb,i8**%e,align 8
%be=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bf=bitcast i8*%bb to i8**
store i8*%be,i8**%bf,align 8
%bg=getelementptr inbounds i8,i8*%bb,i64 8
%bh=bitcast i8*%bg to i32*
store i32 0,i32*%bh,align 4
%bi=getelementptr inbounds i8,i8*%bb,i64 12
%bj=bitcast i8*%bi to i32*
store i32 0,i32*%bj,align 4
%bk=getelementptr inbounds i8,i8*%bb,i64 16
%bl=bitcast i8*%bk to i32*
store i32 1,i32*%bl,align 4
%bm=call i8*@sml_alloc(i32 inreg 20)#0
%bn=getelementptr inbounds i8,i8*%bm,i64 -4
%bo=bitcast i8*%bn to i32*
store i32 1342177296,i32*%bo,align 4
%bp=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%bq=bitcast i8*%bm to i8**
store i8*%bp,i8**%bq,align 8
%br=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%bs=getelementptr inbounds i8,i8*%bm,i64 8
%bt=bitcast i8*%bs to i8**
store i8*%br,i8**%bt,align 8
%bu=getelementptr inbounds i8,i8*%bm,i64 16
%bv=bitcast i8*%bu to i32*
store i32 3,i32*%bv,align 4
%bw=call fastcc i8*@_SMLFN10ULexBuffer8subtractE(i8*inreg%bm)
store i8*%bw,i8**%b,align 8
%bx=call i8*@sml_alloc(i32 inreg 20)#0
%by=getelementptr inbounds i8,i8*%bx,i64 -4
%bz=bitcast i8*%by to i32*
store i32 1342177296,i32*%bz,align 4
store i8*%bx,i8**%c,align 8
%bA=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%bB=bitcast i8*%bx to i8**
store i8*%bA,i8**%bB,align 8
%bC=getelementptr inbounds i8,i8*%bx,i64 8
%bD=bitcast i8*%bC to i8**
store i8*null,i8**%bD,align 8
%bE=getelementptr inbounds i8,i8*%bx,i64 16
%bF=bitcast i8*%bE to i32*
store i32 3,i32*%bF,align 4
%bG=call i8*@sml_alloc(i32 inreg 20)#0
%bH=getelementptr inbounds i8,i8*%bG,i64 -4
%bI=bitcast i8*%bH to i32*
store i32 1342177296,i32*%bI,align 4
%bJ=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%bK=bitcast i8*%bG to i8**
store i8*%bJ,i8**%bK,align 8
%bL=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bM=getelementptr inbounds i8,i8*%bG,i64 8
%bN=bitcast i8*%bM to i8**
store i8*%bL,i8**%bN,align 8
%bO=getelementptr inbounds i8,i8*%bG,i64 16
%bP=bitcast i8*%bO to i32*
store i32 3,i32*%bP,align 4
%bQ=call fastcc i8*@_SMLFN9Substring6concatE(i8*inreg%bG)
store i8*%bQ,i8**%b,align 8
%bR=call i8*@sml_alloc(i32 inreg 28)#0
%bS=getelementptr inbounds i8,i8*%bR,i64 -4
%bT=bitcast i8*%bS to i32*
store i32 1342177304,i32*%bT,align 4
%bU=getelementptr inbounds i8,i8*%bR,i64 12
%bV=bitcast i8*%bU to i32*
store i32 0,i32*%bV,align 1
%bW=load i8*,i8**%b,align 8
%bX=bitcast i8*%bR to i8**
store i8*%bW,i8**%bX,align 8
%bY=getelementptr inbounds i8,i8*%bR,i64 8
%bZ=bitcast i8*%bY to i32*
store i32 0,i32*%bZ,align 4
%b0=getelementptr inbounds i8,i8*%bR,i64 16
%b1=bitcast i8*%b0 to i8**
store i8*null,i8**%b1,align 8
%b2=getelementptr inbounds i8,i8*%bR,i64 24
%b3=bitcast i8*%b2 to i32*
store i32 5,i32*%b3,align 4
%b4=tail call fastcc i8*@_SMLFN9Substring7extractE(i8*inreg%bR)
ret i8*%b4
b5:
store i8*null,i8**%d,align 8
%b6=load i8*,i8**@_SMLZ4Fail,align 8
store i8*%b6,i8**%b,align 8
%b7=call i8*@sml_alloc(i32 inreg 28)#0
%b8=getelementptr inbounds i8,i8*%b7,i64 -4
%b9=bitcast i8*%b8 to i32*
store i32 1342177304,i32*%b9,align 4
store i8*%b7,i8**%c,align 8
%ca=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%cb=bitcast i8*%b7 to i8**
store i8*%ca,i8**%cb,align 8
%cc=getelementptr inbounds i8,i8*%b7,i64 8
%cd=bitcast i8*%cc to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@A,i64 0,i32 2,i64 0),i8**%cd,align 8
%ce=getelementptr inbounds i8,i8*%b7,i64 16
%cf=bitcast i8*%ce to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[52x i8]}>,<{[4x i8],i32,[52x i8]}>*@C,i64 0,i32 2,i64 0),i8**%cf,align 8
%cg=getelementptr inbounds i8,i8*%b7,i64 24
%ch=bitcast i8*%cg to i32*
store i32 7,i32*%ch,align 4
%ci=call i8*@sml_alloc(i32 inreg 60)#0
%cj=getelementptr inbounds i8,i8*%ci,i64 -4
%ck=bitcast i8*%cj to i32*
store i32 1342177336,i32*%ck,align 4
%cl=getelementptr inbounds i8,i8*%ci,i64 56
%cm=bitcast i8*%cl to i32*
store i32 1,i32*%cm,align 4
%cn=load i8*,i8**%c,align 8
%co=bitcast i8*%ci to i8**
store i8*%cn,i8**%co,align 8
call void@sml_raise(i8*inreg%ci)#1
unreachable
}
define fastcc i32@_SMLFN10ULexBuffer3eofE(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*@_SMLFN6Option6isSomeE(i32 inreg 1,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=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%o=call fastcc i8*@_SMLFN10ULexBuffer4getcE(i8*inreg%n)
%p=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%q=call fastcc i8*%k(i8*inreg%p,i8*inreg%o)
%r=bitcast i8*%q to i32*
%s=load i32,i32*%r,align 4
%t=tail call fastcc i32@_SMLFN4Bool3notE(i32 inreg%s)
ret i32%t
}
define fastcc i32@_SMLFN10ULexBuffer9lastWasNLE(i8*inreg%a)#4 gc"smlsharp"{
%b=getelementptr inbounds i8,i8*%a,i64 12
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
ret i32%d
}
define internal fastcc i8*@_SMLLLN10ULexBuffer8mkStreamE_129(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN10ULexBuffer8mkStreamE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN10ULexBuffer4getcE_131(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN10ULexBuffer4getcE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN10ULexBuffer4getuE_133(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN10ULexBuffer4getuE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN10ULexBuffer6getposE_134(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLFN10ULexBuffer6getposE(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*@_SMLLLN10ULexBuffer8subtractE_135(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN10ULexBuffer8subtractE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN10ULexBuffer3eofE_136(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLFN10ULexBuffer3eofE(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*@_SMLLLN10ULexBuffer9lastWasNLE_137(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=getelementptr inbounds i8,i8*%b,i64 12
%d=bitcast i8*%c to i32*
%e=load i32,i32*%d,align 4
%f=tail call i8*@sml_alloc(i32 inreg 4)#0
%g=bitcast i8*%f to i32*
%h=getelementptr inbounds i8,i8*%f,i64 -4
%i=bitcast i8*%h to i32*
store i32 4,i32*%i,align 4
store i32%e,i32*%g,align 4
ret i8*%f
}
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}
