@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*)*@_SMLLN10ULexBuffer8mkStreamE_164 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,[22x i8]}><{[4x i8]zeroinitializer,i32 -2147483626,[22x i8]c"ULexBuffer.Incomplete\00"}>,align 8
@i=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]}>*@h,i32 0,i32 0,i32 0),i32 8),i32 0,[4x i8]zeroinitializer,i32 1}>,align 8
@_SMLDL93=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}>*@i,i32 0,i32 0,i32 0),i32 8)}>,align 8
@j=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
@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:115.11(3317)\00"}>,align 8
@l=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
@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:97.23(2707)\00"}>,align 8
@n=private unnamed_addr constant<{[4x i8],i32,[11x i8]}><{[4x i8]zeroinitializer,i32 -2147483637,[11x i8]c"impossible\00"}>,align 8
@o=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
@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:90.36(2474)\00"}>,align 8
@q=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
@r=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*}>*@_SMLDL93,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]}>*@q,i32 0,i32 0,i32 0),i32 8),i32 3}>,align 8
@s=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
@t=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*}>*@_SMLDL93,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]}>*@s,i32 0,i32 0,i32 0),i32 8),i32 3}>,align 8
@u=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
@v=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*}>*@_SMLDL93,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]}>*@u,i32 0,i32 0,i32 0),i32 8),i32 3}>,align 8
@w=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*)*@_SMLLN10ULexBuffer6getposE_170 to void(...)*),i32 -2147483647}>,align 8
@x=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
@y=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
@z=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
@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:130.10(3862)\00"}>,align 8
@_SMLZN10ULexBuffer10IncompleteE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*}>,<{[4x i8],i32,i8*}>*@_SMLDL93,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*)
@B=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*)*@_SMLLN10ULexBuffer4getcE_172 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN10ULexBuffer4getcE=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*)
@C=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*)*@_SMLLN10ULexBuffer4getuE_173 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN10ULexBuffer4getuE=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*)
@_SMLZN10ULexBuffer6getposE=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*)
@D=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*)*@_SMLLN10ULexBuffer8subtractE_174 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN10ULexBuffer8subtractE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@D,i64 0,i32 2)to i8*)
@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*)*@_SMLLN10ULexBuffer3eofE_175 to void(...)*),i32 -2147483647}>,align 8
@_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*)
@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*)*@_SMLLN10ULexBuffer9lastWasNLE_176 to void(...)*),i32 -2147483647}>,align 8
@_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*@_SMLLN10ULexBuffer7advanceE_79(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=getelementptr inbounds i8,i8*%l,i64 8
%o=bitcast i8*%n to i8**
%p=load i8*,i8**%o,align 8
store i8*%p,i8**%c,align 8
%q=getelementptr inbounds i8,i8*%l,i64 16
%r=bitcast i8*%q to i32*
%s=load i32,i32*%r,align 4
%t=getelementptr inbounds i8,i8*%l,i64 24
%u=bitcast i8*%t to i8**
%v=load i8*,i8**%u,align 8
store i8*%v,i8**%d,align 8
%w=bitcast i8*%v to i8**
%x=load i8*,i8**%w,align 8
%y=bitcast i8*%x to i32*
%z=load i32,i32*%y,align 4
%A=icmp eq i32%z,1
br i1%A,label%C,label%B
B:
ret i8*%x
C:
%D=getelementptr inbounds i8,i8*%p,i64 16
%E=bitcast i8*%D to i8*(i8*,i8*)**
%F=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%E,align 8
%G=bitcast i8*%p to i8**
%H=load i8*,i8**%G,align 8
store i8*%H,i8**%e,align 8
%I=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 0,i32*%J,align 4
%M=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%N=call fastcc i8*%F(i8*inreg%M,i8*inreg%I)
store i8*%N,i8**%e,align 8
%O=getelementptr inbounds i8,i8*%N,i64 -4
%P=bitcast i8*%O to i32*
%Q=load i32,i32*%P,align 4
%R=and i32%Q,268435455
%S=icmp eq i32%R,1
br i1%S,label%T,label%W
T:
%U=load i8*,i8**%d,align 8
%V=bitcast i8*%U to i8**
call void@sml_write(i8*inreg%U,i8**inreg%V,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*)
W:
%X=bitcast i8**%b to i32***
%Y=load i32**,i32***%X,align 8
store i8*null,i8**%b,align 8
%Z=load i32*,i32**%Y,align 8
%aa=getelementptr inbounds i32,i32*%Z,i64 -1
%ab=load i32,i32*%aa,align 4
%ac=and i32%ab,268435455
%ad=add nsw i32%ac,-1
%ae=call i8*@sml_alloc(i32 inreg 12)#0
%af=bitcast i8*%ae to i32*
%ag=getelementptr inbounds i8,i8*%ae,i64 -4
%ah=bitcast i8*%ag to i32*
store i32 1342177288,i32*%ah,align 4
store i32%s,i32*%af,align 4
%ai=getelementptr inbounds i8,i8*%ae,i64 4
%aj=bitcast i8*%ai to i32*
store i32%ad,i32*%aj,align 4
%ak=getelementptr inbounds i8,i8*%ae,i64 8
%al=bitcast i8*%ak to i32*
store i32 0,i32*%al,align 4
%am=call fastcc i32@_SMLFN14AntlrStreamPos7forwardE(i8*inreg%ae)
%an=call i8*@sml_alloc(i32 inreg 8)#0
%ao=getelementptr inbounds i8,i8*%an,i64 -4
%ap=bitcast i8*%ao to i32*
store i32 805306376,i32*%ap,align 4
store i8*%an,i8**%b,align 8
%aq=bitcast i8*%an to i64*
store i64 0,i64*%aq,align 1
%ar=bitcast i8*%an to i8**
call void@sml_write(i8*inreg%an,i8**inreg%ar,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
%as=call i8*@sml_alloc(i32 inreg 36)#0
%at=getelementptr inbounds i8,i8*%as,i64 -4
%au=bitcast i8*%at to i32*
store i32 1342177312,i32*%au,align 4
store i8*%as,i8**%f,align 8
%av=getelementptr inbounds i8,i8*%as,i64 4
%aw=bitcast i8*%av to i32*
store i32 0,i32*%aw,align 1
%ax=bitcast i8*%as to i32*
store i32%am,i32*%ax,align 4
%ay=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%az=getelementptr inbounds i8,i8*%as,i64 8
%aA=bitcast i8*%az to i8**
store i8*%ay,i8**%aA,align 8
%aB=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aC=getelementptr inbounds i8,i8*%as,i64 16
%aD=bitcast i8*%aC to i8**
store i8*%aB,i8**%aD,align 8
%aE=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aF=getelementptr inbounds i8,i8*%as,i64 24
%aG=bitcast i8*%aF to i8**
store i8*%aE,i8**%aG,align 8
%aH=getelementptr inbounds i8,i8*%as,i64 32
%aI=bitcast i8*%aH to i32*
store i32 14,i32*%aI,align 4
%aJ=call i8*@sml_alloc(i32 inreg 20)#0
%aK=bitcast i8*%aJ to i32*
%aL=getelementptr inbounds i8,i8*%aJ,i64 -4
%aM=bitcast i8*%aL to i32*
store i32 1342177296,i32*%aM,align 4
%aN=getelementptr inbounds i8,i8*%aJ,i64 4
%aO=bitcast i8*%aN to i32*
store i32 0,i32*%aO,align 1
store i32 2,i32*%aK,align 4
%aP=load i8*,i8**%f,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=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aV=bitcast i8*%aU to i8**
call void@sml_write(i8*inreg%aU,i8**inreg%aV,i8*inreg%aJ)#0
%aW=call i8*@sml_alloc(i32 inreg 20)#0
%aX=bitcast i8*%aW to i32*
%aY=getelementptr inbounds i8,i8*%aW,i64 -4
%aZ=bitcast i8*%aY to i32*
store i32 1342177296,i32*%aZ,align 4
%a0=getelementptr inbounds i8,i8*%aW,i64 4
%a1=bitcast i8*%a0 to i32*
store i32 0,i32*%a1,align 1
store i32 2,i32*%aX,align 4
%a2=load i8*,i8**%f,align 8
%a3=getelementptr inbounds i8,i8*%aW,i64 8
%a4=bitcast i8*%a3 to i8**
store i8*%a2,i8**%a4,align 8
%a5=getelementptr inbounds i8,i8*%aW,i64 16
%a6=bitcast i8*%a5 to i32*
store i32 2,i32*%a6,align 4
ret i8*%aW
}
define internal fastcc i8*@_SMLLN10ULexBuffer4getcE_81(i8*inreg%a)unnamed_addr#2 gc"smlsharp"{
h:
%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
br label%f
f:
%g=phi i8*[%bD,%bz],[%a,%h]
store i8*%g,i8**%b,align 8
%i=load atomic i32,i32*@sml_check_flag unordered,align 4
%j=icmp eq i32%i,0
br i1%j,label%m,label%k
k:
call void@sml_check(i32 inreg%i)
%l=load i8*,i8**%b,align 8
br label%m
m:
%n=phi i8*[%l,%k],[%g,%f]
%o=bitcast i8*%n to i8**
%p=load i8*,i8**%o,align 8
store i8*%p,i8**%b,align 8
%q=bitcast i8*%p to i32*
%r=load i32,i32*%q,align 4
%s=getelementptr inbounds i8,i8*%p,i64 8
%t=bitcast i8*%s to i8**
%u=load i8*,i8**%t,align 8
store i8*%u,i8**%c,align 8
%v=getelementptr inbounds i8,i8*%p,i64 16
%w=bitcast i8*%v to i8**
%x=load i8*,i8**%w,align 8
store i8*%x,i8**%d,align 8
%y=getelementptr inbounds i8,i8*%p,i64 24
%z=bitcast i8*%y to i8**
%A=load i8*,i8**%z,align 8
store i8*%A,i8**%e,align 8
%B=getelementptr inbounds i8,i8*%n,i64 8
%C=bitcast i8*%B to i32*
%D=load i32,i32*%C,align 4
%E=getelementptr inbounds i8,i8*%n,i64 12
%F=bitcast i8*%E to i32*
%G=load i32,i32*%F,align 4
%H=getelementptr inbounds i8,i8*%u,i64 -4
%I=bitcast i8*%H to i32*
%J=load i32,i32*%I,align 4
%K=and i32%J,268435455
%L=add nsw i32%K,-1
%M=icmp slt i32%D,%L
br i1%M,label%N,label%aV
N:
store i8*null,i8**%d,align 8
store i8*null,i8**%e,align 8
%O=icmp slt i32%D,0
br i1%O,label%aD,label%P
P:
%Q=bitcast i8*%H to i32*
%R=load i32,i32*%Q,align 4
%S=and i32%R,268435455
%T=add nsw i32%S,-1
%U=icmp slt i32%D,%T
br i1%U,label%V,label%aD
V:
store i8*null,i8**%c,align 8
%W=sext i32%D to i64
%X=getelementptr inbounds i8,i8*%u,i64%W
%Y=load i8,i8*%X,align 1
%Z=add nsw i32%D,1
%aa=icmp eq i8%Y,10
%ab=zext i1%aa to i32
%ac=call i8*@sml_alloc(i32 inreg 20)#0
%ad=getelementptr inbounds i8,i8*%ac,i64 -4
%ae=bitcast i8*%ad to i32*
store i32 1342177296,i32*%ae,align 4
store i8*%ac,i8**%c,align 8
%af=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%ag=bitcast i8*%ac to i8**
store i8*%af,i8**%ag,align 8
%ah=getelementptr inbounds i8,i8*%ac,i64 8
%ai=bitcast i8*%ah to i32*
store i32%Z,i32*%ai,align 4
%aj=getelementptr inbounds i8,i8*%ac,i64 12
%ak=bitcast i8*%aj to i32*
store i32%ab,i32*%ak,align 4
%al=getelementptr inbounds i8,i8*%ac,i64 16
%am=bitcast i8*%al to i32*
store i32 1,i32*%am,align 4
%an=call i8*@sml_alloc(i32 inreg 20)#0
%ao=getelementptr inbounds i8,i8*%an,i64 -4
%ap=bitcast i8*%ao to i32*
store i32 1342177296,i32*%ap,align 4
store i8*%an,i8**%b,align 8
%aq=getelementptr inbounds i8,i8*%an,i64 1
call void@llvm.memset.p0i8.i32(i8*%aq,i8 0,i32 7,i1 false)
store i8%Y,i8*%an,align 1
%ar=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%as=getelementptr inbounds i8,i8*%an,i64 8
%at=bitcast i8*%as to i8**
store i8*%ar,i8**%at,align 8
%au=getelementptr inbounds i8,i8*%an,i64 16
%av=bitcast i8*%au to i32*
store i32 2,i32*%av,align 4
%aw=call i8*@sml_alloc(i32 inreg 12)#0
%ax=getelementptr inbounds i8,i8*%aw,i64 -4
%ay=bitcast i8*%ax to i32*
store i32 1342177288,i32*%ay,align 4
%az=load i8*,i8**%b,align 8
%aA=bitcast i8*%aw to i8**
store i8*%az,i8**%aA,align 8
%aB=getelementptr inbounds i8,i8*%aw,i64 8
%aC=bitcast i8*%aB to i32*
store i32 1,i32*%aC,align 4
ret i8*%aw
aD:
store i8*null,i8**%c,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]}>*@g,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:
store i8*null,i8**%b,align 8
%aW=call i8*@sml_alloc(i32 inreg 36)#0
%aX=getelementptr inbounds i8,i8*%aW,i64 -4
%aY=bitcast i8*%aX to i32*
store i32 1342177312,i32*%aY,align 4
%aZ=getelementptr inbounds i8,i8*%aW,i64 20
%a0=bitcast i8*%aZ to i32*
store i32 0,i32*%a0,align 1
%a1=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%a2=bitcast i8*%aW to i8**
store i8*%a1,i8**%a2,align 8
%a3=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%a4=getelementptr inbounds i8,i8*%aW,i64 8
%a5=bitcast i8*%a4 to i8**
store i8*%a3,i8**%a5,align 8
%a6=getelementptr inbounds i8,i8*%aW,i64 16
%a7=bitcast i8*%a6 to i32*
store i32%r,i32*%a7,align 4
%a8=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%a9=getelementptr inbounds i8,i8*%aW,i64 24
%ba=bitcast i8*%a9 to i8**
store i8*%a8,i8**%ba,align 8
%bb=getelementptr inbounds i8,i8*%aW,i64 32
%bc=bitcast i8*%bb to i32*
store i32 11,i32*%bc,align 4
%bd=call fastcc i8*@_SMLLN10ULexBuffer7advanceE_79(i8*inreg%aW)
%be=bitcast i8*%bd to i32*
%bf=load i32,i32*%be,align 4
switch i32%bf,label%bg[
i32 1,label%bO
i32 2,label%bz
i32 0,label%by
]
bg:
call void@sml_matchcomp_bug()
%bh=load i8*,i8**@_SMLZ5Match,align 8
store i8*%bh,i8**%b,align 8
%bi=call i8*@sml_alloc(i32 inreg 20)#0
%bj=getelementptr inbounds i8,i8*%bi,i64 -4
%bk=bitcast i8*%bj to i32*
store i32 1342177296,i32*%bk,align 4
store i8*%bi,i8**%c,align 8
%bl=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%bm=bitcast i8*%bi to i8**
store i8*%bl,i8**%bm,align 8
%bn=getelementptr inbounds i8,i8*%bi,i64 8
%bo=bitcast i8*%bn to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@f,i64 0,i32 2,i64 0),i8**%bo,align 8
%bp=getelementptr inbounds i8,i8*%bi,i64 16
%bq=bitcast i8*%bp to i32*
store i32 3,i32*%bq,align 4
%br=call i8*@sml_alloc(i32 inreg 60)#0
%bs=getelementptr inbounds i8,i8*%br,i64 -4
%bt=bitcast i8*%bs to i32*
store i32 1342177336,i32*%bt,align 4
%bu=getelementptr inbounds i8,i8*%br,i64 56
%bv=bitcast i8*%bu to i32*
store i32 1,i32*%bv,align 4
%bw=load i8*,i8**%c,align 8
%bx=bitcast i8*%br to i8**
store i8*%bw,i8**%bx,align 8
call void@sml_raise(i8*inreg%br)#1
unreachable
by:
ret i8*null
bz:
%bA=getelementptr inbounds i8,i8*%bd,i64 8
%bB=bitcast i8*%bA to i8**
%bC=load i8*,i8**%bB,align 8
store i8*%bC,i8**%b,align 8
%bD=call i8*@sml_alloc(i32 inreg 20)#0
%bE=getelementptr inbounds i8,i8*%bD,i64 -4
%bF=bitcast i8*%bE to i32*
store i32 1342177296,i32*%bF,align 4
%bG=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%bH=bitcast i8*%bD to i8**
store i8*%bG,i8**%bH,align 8
%bI=getelementptr inbounds i8,i8*%bD,i64 8
%bJ=bitcast i8*%bI to i32*
store i32 0,i32*%bJ,align 4
%bK=getelementptr inbounds i8,i8*%bD,i64 12
%bL=bitcast i8*%bK to i32*
store i32%G,i32*%bL,align 4
%bM=getelementptr inbounds i8,i8*%bD,i64 16
%bN=bitcast i8*%bM to i32*
store i32 1,i32*%bN,align 4
br label%f
bO:
%bP=load i8*,i8**@_SMLZ4Fail,align 8
store i8*%bP,i8**%b,align 8
%bQ=call i8*@sml_alloc(i32 inreg 28)#0
%bR=getelementptr inbounds i8,i8*%bQ,i64 -4
%bS=bitcast i8*%bR to i32*
store i32 1342177304,i32*%bS,align 4
store i8*%bQ,i8**%c,align 8
%bT=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%bU=bitcast i8*%bQ to i8**
store i8*%bT,i8**%bU,align 8
%bV=getelementptr inbounds i8,i8*%bQ,i64 8
%bW=bitcast i8*%bV to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@e,i64 0,i32 2,i64 0),i8**%bW,align 8
%bX=getelementptr inbounds i8,i8*%bQ,i64 16
%bY=bitcast i8*%bX to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[11x i8]}>,<{[4x i8],i32,[11x i8]}>*@n,i64 0,i32 2,i64 0),i8**%bY,align 8
%bZ=getelementptr inbounds i8,i8*%bQ,i64 24
%b0=bitcast i8*%bZ to i32*
store i32 7,i32*%b0,align 4
%b1=call i8*@sml_alloc(i32 inreg 60)#0
%b2=getelementptr inbounds i8,i8*%b1,i64 -4
%b3=bitcast i8*%b2 to i32*
store i32 1342177336,i32*%b3,align 4
%b4=getelementptr inbounds i8,i8*%b1,i64 56
%b5=bitcast i8*%b4 to i32*
store i32 1,i32*%b5,align 4
%b6=load i8*,i8**%c,align 8
%b7=bitcast i8*%b1 to i8**
store i8*%b6,i8**%b7,align 8
call void@sml_raise(i8*inreg%b1)#1
unreachable
}
define internal fastcc i8*@_SMLL11getContByte_136(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**%f,i8*null)#0
store i8*%a,i8**%f,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**%f,align 8
br label%k
k:
%l=phi i8*[%j,%i],[%a,%m]
store i8*null,i8**%f,align 8
%n=bitcast i8*%l to i32*
%o=load i32,i32*%n,align 4
%p=getelementptr inbounds i8,i8*%l,i64 8
%q=bitcast i8*%p to i8**
%r=load i8*,i8**%q,align 8
%s=bitcast i8**%b to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%s)
%t=bitcast i8**%c to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%t)
%u=bitcast i8**%d to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%u)
%v=bitcast i8**%e to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%v)
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
br label%w
w:
%x=phi i8*[%bi,%be],[%r,%k]
store i8*%x,i8**%b,align 8
%y=load atomic i32,i32*@sml_check_flag unordered,align 4
%z=icmp eq i32%y,0
br i1%z,label%C,label%A
A:
call void@sml_check(i32 inreg%y)
%B=load i8*,i8**%b,align 8
br label%C
C:
%D=phi i8*[%B,%A],[%x,%w]
%E=bitcast i8*%D to i8**
%F=load i8*,i8**%E,align 8
store i8*%F,i8**%b,align 8
%G=bitcast i8*%F to i32*
%H=load i32,i32*%G,align 4
%I=getelementptr inbounds i8,i8*%F,i64 8
%J=bitcast i8*%I to i8**
%K=load i8*,i8**%J,align 8
store i8*%K,i8**%c,align 8
%L=getelementptr inbounds i8,i8*%F,i64 16
%M=bitcast i8*%L to i8**
%N=load i8*,i8**%M,align 8
store i8*%N,i8**%d,align 8
%O=getelementptr inbounds i8,i8*%F,i64 24
%P=bitcast i8*%O to i8**
%Q=load i8*,i8**%P,align 8
store i8*%Q,i8**%e,align 8
%R=getelementptr inbounds i8,i8*%D,i64 8
%S=bitcast i8*%R to i32*
%T=load i32,i32*%S,align 4
%U=getelementptr inbounds i8,i8*%K,i64 -4
%V=bitcast i8*%U to i32*
%W=load i32,i32*%V,align 4
%X=and i32%W,268435455
%Y=add nsw i32%X,-1
%Z=icmp slt i32%T,%Y
br i1%Z,label%aa,label%aA
aa:
store i8*null,i8**%d,align 8
store i8*null,i8**%e,align 8
%ab=icmp slt i32%T,0
br i1%ab,label%ai,label%ac
ac:
%ad=bitcast i8*%U to i32*
%ae=load i32,i32*%ad,align 4
%af=and i32%ae,268435455
%ag=add nsw i32%af,-1
%ah=icmp slt i32%T,%ag
br i1%ah,label%bN,label%ai
ai:
store i8*null,i8**%c,align 8
%aj=load i8*,i8**@_SMLZ9Subscript,align 8
store i8*%aj,i8**%b,align 8
%ak=call i8*@sml_alloc(i32 inreg 20)#0
%al=getelementptr inbounds i8,i8*%ak,i64 -4
%am=bitcast i8*%al to i32*
store i32 1342177296,i32*%am,align 4
store i8*%ak,i8**%c,align 8
%an=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%ao=bitcast i8*%ak to i8**
store i8*%an,i8**%ao,align 8
%ap=getelementptr inbounds i8,i8*%ak,i64 8
%aq=bitcast i8*%ap to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@p,i64 0,i32 2,i64 0),i8**%aq,align 8
%ar=getelementptr inbounds i8,i8*%ak,i64 16
%as=bitcast i8*%ar to i32*
store i32 3,i32*%as,align 4
%at=call i8*@sml_alloc(i32 inreg 60)#0
%au=getelementptr inbounds i8,i8*%at,i64 -4
%av=bitcast i8*%au to i32*
store i32 1342177336,i32*%av,align 4
%aw=getelementptr inbounds i8,i8*%at,i64 56
%ax=bitcast i8*%aw to i32*
store i32 1,i32*%ax,align 4
%ay=load i8*,i8**%c,align 8
%az=bitcast i8*%at to i8**
store i8*%ay,i8**%az,align 8
call void@sml_raise(i8*inreg%at)#1
unreachable
aA:
store i8*null,i8**%b,align 8
%aB=call i8*@sml_alloc(i32 inreg 36)#0
%aC=getelementptr inbounds i8,i8*%aB,i64 -4
%aD=bitcast i8*%aC to i32*
store i32 1342177312,i32*%aD,align 4
%aE=getelementptr inbounds i8,i8*%aB,i64 20
%aF=bitcast i8*%aE to i32*
store i32 0,i32*%aF,align 1
%aG=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aH=bitcast i8*%aB to i8**
store i8*%aG,i8**%aH,align 8
%aI=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aJ=getelementptr inbounds i8,i8*%aB,i64 8
%aK=bitcast i8*%aJ to i8**
store i8*%aI,i8**%aK,align 8
%aL=getelementptr inbounds i8,i8*%aB,i64 16
%aM=bitcast i8*%aL to i32*
store i32%H,i32*%aM,align 4
%aN=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%aO=getelementptr inbounds i8,i8*%aB,i64 24
%aP=bitcast i8*%aO to i8**
store i8*%aN,i8**%aP,align 8
%aQ=getelementptr inbounds i8,i8*%aB,i64 32
%aR=bitcast i8*%aQ to i32*
store i32 11,i32*%aR,align 4
%aS=call fastcc i8*@_SMLLN10ULexBuffer7advanceE_79(i8*inreg%aB)
%aT=bitcast i8*%aS to i32*
%aU=load i32,i32*%aT,align 4
switch i32%aU,label%aV[
i32 1,label%bt
i32 2,label%be
i32 0,label%bd
]
aV:
call void@sml_matchcomp_bug()
%aW=load i8*,i8**@_SMLZ5Match,align 8
store i8*%aW,i8**%b,align 8
%aX=call i8*@sml_alloc(i32 inreg 20)#0
%aY=getelementptr inbounds i8,i8*%aX,i64 -4
%aZ=bitcast i8*%aY to i32*
store i32 1342177296,i32*%aZ,align 4
store i8*%aX,i8**%c,align 8
%a0=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%a1=bitcast i8*%aX to i8**
store i8*%a0,i8**%a1,align 8
%a2=getelementptr inbounds i8,i8*%aX,i64 8
%a3=bitcast i8*%a2 to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@o,i64 0,i32 2,i64 0),i8**%a3,align 8
%a4=getelementptr inbounds i8,i8*%aX,i64 16
%a5=bitcast i8*%a4 to i32*
store i32 3,i32*%a5,align 4
%a6=call i8*@sml_alloc(i32 inreg 60)#0
%a7=getelementptr inbounds i8,i8*%a6,i64 -4
%a8=bitcast i8*%a7 to i32*
store i32 1342177336,i32*%a8,align 4
%a9=getelementptr inbounds i8,i8*%a6,i64 56
%ba=bitcast i8*%a9 to i32*
store i32 1,i32*%ba,align 4
%bb=load i8*,i8**%c,align 8
%bc=bitcast i8*%a6 to i8**
store i8*%bb,i8**%bc,align 8
call void@sml_raise(i8*inreg%a6)#1
unreachable
bd:
call void@llvm.lifetime.end.p0i8(i64 8,i8*%s)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%t)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%u)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%v)
br label%cn
be:
%bf=getelementptr inbounds i8,i8*%aS,i64 8
%bg=bitcast i8*%bf to i8**
%bh=load i8*,i8**%bg,align 8
store i8*%bh,i8**%b,align 8
%bi=call i8*@sml_alloc(i32 inreg 20)#0
%bj=getelementptr inbounds i8,i8*%bi,i64 -4
%bk=bitcast i8*%bj to i32*
store i32 1342177296,i32*%bk,align 4
%bl=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%bm=bitcast i8*%bi to i8**
store i8*%bl,i8**%bm,align 8
%bn=getelementptr inbounds i8,i8*%bi,i64 8
%bo=bitcast i8*%bn to i32*
store i32 0,i32*%bo,align 4
%bp=getelementptr inbounds i8,i8*%bi,i64 12
%bq=bitcast i8*%bp to i32*
store i32 0,i32*%bq,align 4
%br=getelementptr inbounds i8,i8*%bi,i64 16
%bs=bitcast i8*%br to i32*
store i32 1,i32*%bs,align 4
br label%w
bt:
%bu=load i8*,i8**@_SMLZ4Fail,align 8
store i8*%bu,i8**%b,align 8
%bv=call i8*@sml_alloc(i32 inreg 28)#0
%bw=getelementptr inbounds i8,i8*%bv,i64 -4
%bx=bitcast i8*%bw to i32*
store i32 1342177304,i32*%bx,align 4
store i8*%bv,i8**%c,align 8
%by=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%bz=bitcast i8*%bv to i8**
store i8*%by,i8**%bz,align 8
%bA=getelementptr inbounds i8,i8*%bv,i64 8
%bB=bitcast i8*%bA to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@m,i64 0,i32 2,i64 0),i8**%bB,align 8
%bC=getelementptr inbounds i8,i8*%bv,i64 16
%bD=bitcast i8*%bC to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[11x i8]}>,<{[4x i8],i32,[11x i8]}>*@n,i64 0,i32 2,i64 0),i8**%bD,align 8
%bE=getelementptr inbounds i8,i8*%bv,i64 24
%bF=bitcast i8*%bE to i32*
store i32 7,i32*%bF,align 4
%bG=call i8*@sml_alloc(i32 inreg 60)#0
%bH=getelementptr inbounds i8,i8*%bG,i64 -4
%bI=bitcast i8*%bH to i32*
store i32 1342177336,i32*%bI,align 4
%bJ=getelementptr inbounds i8,i8*%bG,i64 56
%bK=bitcast i8*%bJ to i32*
store i32 1,i32*%bK,align 4
%bL=load i8*,i8**%c,align 8
%bM=bitcast i8*%bG to i8**
store i8*%bL,i8**%bM,align 8
call void@sml_raise(i8*inreg%bG)#1
unreachable
bN:
store i8*null,i8**%c,align 8
%bO=sext i32%T to i64
%bP=getelementptr inbounds i8,i8*%K,i64%bO
%bQ=load i8,i8*%bP,align 1
%bR=zext i8%bQ to i32
%bS=add nsw i32%T,1
%bT=call i8*@sml_alloc(i32 inreg 20)#0
%bU=getelementptr inbounds i8,i8*%bT,i64 -4
%bV=bitcast i8*%bU to i32*
store i32 1342177296,i32*%bV,align 4
store i8*%bT,i8**%c,align 8
%bW=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%bX=bitcast i8*%bT to i8**
store i8*%bW,i8**%bX,align 8
%bY=getelementptr inbounds i8,i8*%bT,i64 8
%bZ=bitcast i8*%bY to i32*
store i32%bS,i32*%bZ,align 4
%b0=getelementptr inbounds i8,i8*%bT,i64 12
%b1=bitcast i8*%b0 to i32*
store i32 0,i32*%b1,align 4
%b2=getelementptr inbounds i8,i8*%bT,i64 16
%b3=bitcast i8*%b2 to i32*
store i32 1,i32*%b3,align 4
%b4=call i8*@sml_alloc(i32 inreg 20)#0
%b5=getelementptr inbounds i8,i8*%b4,i64 -4
%b6=bitcast i8*%b5 to i32*
store i32 1342177296,i32*%b6,align 4
store i8*%b4,i8**%b,align 8
%b7=getelementptr inbounds i8,i8*%b4,i64 4
%b8=bitcast i8*%b7 to i32*
store i32 0,i32*%b8,align 1
%b9=bitcast i8*%b4 to i32*
store i32%bR,i32*%b9,align 4
%ca=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%cb=getelementptr inbounds i8,i8*%b4,i64 8
%cc=bitcast i8*%cb to i8**
store i8*%ca,i8**%cc,align 8
%cd=getelementptr inbounds i8,i8*%b4,i64 16
%ce=bitcast i8*%cd to i32*
store i32 2,i32*%ce,align 4
%cf=call i8*@sml_alloc(i32 inreg 12)#0
%cg=getelementptr inbounds i8,i8*%cf,i64 -4
%ch=bitcast i8*%cg to i32*
store i32 1342177288,i32*%ch,align 4
%ci=load i8*,i8**%b,align 8
%cj=bitcast i8*%cf to i8**
store i8*%ci,i8**%cj,align 8
%ck=getelementptr inbounds i8,i8*%cf,i64 8
%cl=bitcast i8*%ck to i32*
store i32 1,i32*%cl,align 4
call void@llvm.lifetime.end.p0i8(i64 8,i8*%s)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%t)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%u)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%v)
%cm=icmp eq i8*%cf,null
br i1%cm,label%cn,label%cu
cn:
%co=call i8*@sml_alloc(i32 inreg 60)#0
%cp=getelementptr inbounds i8,i8*%co,i64 -4
%cq=bitcast i8*%cp to i32*
store i32 1342177336,i32*%cq,align 4
%cr=getelementptr inbounds i8,i8*%co,i64 56
%cs=bitcast i8*%cr to i32*
store i32 1,i32*%cs,align 4
%ct=bitcast i8*%co to i8**
store i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,i8*,i32}>,<{[4x i8],i32,i8*,i8*,i32}>*@t,i64 0,i32 2)to i8*),i8**%ct,align 8
call void@sml_raise(i8*inreg%co)#1
unreachable
cu:
%cv=bitcast i8*%ci to i32*
%cw=load i32,i32*%cv,align 4
%cx=getelementptr inbounds i8,i8*%ci,i64 8
%cy=bitcast i8*%cx to i8**
%cz=load i8*,i8**%cy,align 8
store i8*%cz,i8**%f,align 8
%cA=and i32%cw,192
%cB=icmp eq i32%cA,128
br i1%cB,label%cC,label%cR
cC:
%cD=shl i32%o,6
%cE=and i32%cw,63
%cF=or i32%cE,%cD
%cG=call i8*@sml_alloc(i32 inreg 20)#0
%cH=bitcast i8*%cG to i32*
%cI=getelementptr inbounds i8,i8*%cG,i64 -4
%cJ=bitcast i8*%cI to i32*
store i32 1342177296,i32*%cJ,align 4
%cK=getelementptr inbounds i8,i8*%cG,i64 4
%cL=bitcast i8*%cK to i32*
store i32 0,i32*%cL,align 1
store i32%cF,i32*%cH,align 4
%cM=load i8*,i8**%f,align 8
%cN=getelementptr inbounds i8,i8*%cG,i64 8
%cO=bitcast i8*%cN to i8**
store i8*%cM,i8**%cO,align 8
%cP=getelementptr inbounds i8,i8*%cG,i64 16
%cQ=bitcast i8*%cP to i32*
store i32 2,i32*%cQ,align 4
ret i8*%cG
cR:
store i8*null,i8**%f,align 8
%cS=call i8*@sml_alloc(i32 inreg 60)#0
%cT=getelementptr inbounds i8,i8*%cS,i64 -4
%cU=bitcast i8*%cT to i32*
store i32 1342177336,i32*%cU,align 4
%cV=getelementptr inbounds i8,i8*%cS,i64 56
%cW=bitcast i8*%cV to i32*
store i32 1,i32*%cW,align 4
%cX=bitcast i8*%cS to i8**
store i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,i8*,i32}>,<{[4x i8],i32,i8*,i8*,i32}>*@r,i64 0,i32 2)to i8*),i8**%cX,align 8
call void@sml_raise(i8*inreg%cS)#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 internal fastcc i8*@_SMLLN10ULexBuffer8subtractE_142(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]
store i8*%l,i8**%c,align 8
%n=bitcast i8*%l to i8**
%o=load i8*,i8**%n,align 8
store i8*%o,i8**%e,align 8
%p=bitcast i8*%o to i8**
%q=load i8*,i8**%p,align 8
%r=bitcast i8*%q to i32*
%s=load i32,i32*%r,align 4
%t=getelementptr inbounds i8,i8*%q,i64 8
%u=bitcast i8*%t to i8**
%v=load i8*,i8**%u,align 8
store i8*%v,i8**%b,align 8
%w=getelementptr inbounds i8,i8*%o,i64 8
%x=bitcast i8*%w to i32*
%y=load i32,i32*%x,align 4
%z=call i8*@sml_alloc(i32 inreg 20)#0
%A=getelementptr inbounds i8,i8*%z,i64 -4
%B=bitcast i8*%A to i32*
store i32 1342177296,i32*%B,align 4
%C=load i8*,i8**%b,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 i32*
store i32%s,i32*%F,align 4
%G=getelementptr inbounds i8,i8*%z,i64 12
%H=bitcast i8*%G to i32*
store i32%y,i32*%H,align 4
%I=getelementptr inbounds i8,i8*%z,i64 16
%J=bitcast i8*%I to i32*
store i32 1,i32*%J,align 4
%K=load i8*,i8**%c,align 8
%L=getelementptr inbounds i8,i8*%K,i64 8
%M=bitcast i8*%L to i8**
%N=load i8*,i8**%M,align 8
%O=bitcast i8*%N to i8**
%P=load i8*,i8**%O,align 8
%Q=bitcast i8*%P to i32*
%R=load i32,i32*%Q,align 4
%S=getelementptr inbounds i8,i8*%P,i64 8
%T=bitcast i8*%S to i8**
%U=load i8*,i8**%T,align 8
store i8*%U,i8**%c,align 8
%V=getelementptr inbounds i8,i8*%P,i64 16
%W=bitcast i8*%V to i8**
%X=load i8*,i8**%W,align 8
store i8*%X,i8**%d,align 8
%Y=getelementptr inbounds i8,i8*%P,i64 24
%Z=bitcast i8*%Y to i8**
%aa=load i8*,i8**%Z,align 8
store i8*%aa,i8**%f,align 8
%ab=getelementptr inbounds i8,i8*%N,i64 8
%ac=bitcast i8*%ab to i32*
%ad=load i32,i32*%ac,align 4
%ae=call i8*@sml_alloc(i32 inreg 44)#0
%af=getelementptr inbounds i8,i8*%ae,i64 -4
%ag=bitcast i8*%af to i32*
store i32 1342177320,i32*%ag,align 4
%ah=getelementptr inbounds i8,i8*%ae,i64 12
call void@llvm.memset.p0i8.i32(i8*%ah,i8 0,i32 28,i1 false)
%ai=load i8*,i8**%c,align 8
%aj=bitcast i8*%ae to i8**
store i8*%ai,i8**%aj,align 8
%ak=getelementptr inbounds i8,i8*%ae,i64 8
%al=bitcast i8*%ak to i32*
store i32%R,i32*%al,align 4
%am=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%an=getelementptr inbounds i8,i8*%ae,i64 16
%ao=bitcast i8*%an to i8**
store i8*%am,i8**%ao,align 8
%ap=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aq=getelementptr inbounds i8,i8*%ae,i64 24
%ar=bitcast i8*%aq to i8**
store i8*%ap,i8**%ar,align 8
%as=getelementptr inbounds i8,i8*%ae,i64 32
%at=bitcast i8*%as to i32*
store i32%ad,i32*%at,align 4
%au=getelementptr inbounds i8,i8*%ae,i64 40
%av=bitcast i8*%au to i32*
store i32 13,i32*%av,align 4
%aw=icmp eq i32%s,%R
br i1%aw,label%ax,label%aL
ax:
store i8*null,i8**%c,align 8
store i8*null,i8**%e,align 8
%ay=sub nsw i32%y,%ad
%az=call i8*@sml_alloc(i32 inreg 20)#0
%aA=getelementptr inbounds i8,i8*%az,i64 -4
%aB=bitcast i8*%aA to i32*
store i32 1342177296,i32*%aB,align 4
%aC=load i8*,i8**%b,align 8
%aD=bitcast i8*%az to i8**
store i8*%aC,i8**%aD,align 8
%aE=getelementptr inbounds i8,i8*%az,i64 8
%aF=bitcast i8*%aE to i32*
store i32%ad,i32*%aF,align 4
%aG=getelementptr inbounds i8,i8*%az,i64 12
%aH=bitcast i8*%aG to i32*
store i32%ay,i32*%aH,align 4
%aI=getelementptr inbounds i8,i8*%az,i64 16
%aJ=bitcast i8*%aI to i32*
store i32 1,i32*%aJ,align 4
%aK=tail call fastcc i8*@_SMLFN9Substring9substringE(i8*inreg%az)
ret i8*%aK
aL:
%aM=bitcast i8*%am to i8**
%aN=load i8*,i8**%aM,align 8
%aO=bitcast i8*%aN to i32*
%aP=load i32,i32*%aO,align 4
switch i32%aP,label%aQ[
i32 1,label%c2
i32 2,label%bs
i32 0,label%a8
]
aQ:
store i8*null,i8**%c,align 8
store i8*null,i8**%e,align 8
call void@sml_matchcomp_bug()
%aR=load i8*,i8**@_SMLZ5Match,align 8
store i8*%aR,i8**%b,align 8
%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
store i8*%aS,i8**%c,align 8
%aV=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aW=bitcast i8*%aS to i8**
store i8*%aV,i8**%aW,align 8
%aX=getelementptr inbounds i8,i8*%aS,i64 8
%aY=bitcast i8*%aX to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@A,i64 0,i32 2,i64 0),i8**%aY,align 8
%aZ=getelementptr inbounds i8,i8*%aS,i64 16
%a0=bitcast i8*%aZ to i32*
store i32 3,i32*%a0,align 4
%a1=call i8*@sml_alloc(i32 inreg 60)#0
%a2=getelementptr inbounds i8,i8*%a1,i64 -4
%a3=bitcast i8*%a2 to i32*
store i32 1342177336,i32*%a3,align 4
%a4=getelementptr inbounds i8,i8*%a1,i64 56
%a5=bitcast i8*%a4 to i32*
store i32 1,i32*%a5,align 4
%a6=load i8*,i8**%c,align 8
%a7=bitcast i8*%a1 to i8**
store i8*%a6,i8**%a7,align 8
call void@sml_raise(i8*inreg%a1)#1
unreachable
a8:
store i8*null,i8**%c,align 8
store i8*null,i8**%e,align 8
%a9=load i8*,i8**@_SMLZ4Fail,align 8
store i8*%a9,i8**%b,align 8
%ba=call i8*@sml_alloc(i32 inreg 28)#0
%bb=getelementptr inbounds i8,i8*%ba,i64 -4
%bc=bitcast i8*%bb to i32*
store i32 1342177304,i32*%bc,align 4
store i8*%ba,i8**%c,align 8
%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 i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@y,i64 0,i32 2,i64 0),i8**%bg,align 8
%bh=getelementptr inbounds i8,i8*%ba,i64 16
%bi=bitcast i8*%bh to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[52x i8]}>,<{[4x i8],i32,[52x i8]}>*@z,i64 0,i32 2,i64 0),i8**%bi,align 8
%bj=getelementptr inbounds i8,i8*%ba,i64 24
%bk=bitcast i8*%bj to i32*
store i32 7,i32*%bk,align 4
%bl=call i8*@sml_alloc(i32 inreg 60)#0
%bm=getelementptr inbounds i8,i8*%bl,i64 -4
%bn=bitcast i8*%bm to i32*
store i32 1342177336,i32*%bn,align 4
%bo=getelementptr inbounds i8,i8*%bl,i64 56
%bp=bitcast i8*%bo to i32*
store i32 1,i32*%bp,align 4
%bq=load i8*,i8**%c,align 8
%br=bitcast i8*%bl to i8**
store i8*%bq,i8**%br,align 8
call void@sml_raise(i8*inreg%bl)#1
unreachable
bs:
%bt=getelementptr inbounds i8,i8*%aN,i64 8
%bu=bitcast i8*%bt to i8**
%bv=load i8*,i8**%bu,align 8
store i8*%bv,i8**%b,align 8
%bw=call i8*@sml_alloc(i32 inreg 28)#0
%bx=getelementptr inbounds i8,i8*%bw,i64 -4
%by=bitcast i8*%bx to i32*
store i32 1342177304,i32*%by,align 4
%bz=getelementptr inbounds i8,i8*%bw,i64 12
%bA=bitcast i8*%bz to i32*
store i32 0,i32*%bA,align 1
%bB=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bC=bitcast i8*%bw to i8**
store i8*%bB,i8**%bC,align 8
%bD=getelementptr inbounds i8,i8*%bw,i64 8
%bE=bitcast i8*%bD to i32*
store i32%ad,i32*%bE,align 4
%bF=getelementptr inbounds i8,i8*%bw,i64 16
%bG=bitcast i8*%bF to i8**
store i8*null,i8**%bG,align 8
%bH=getelementptr inbounds i8,i8*%bw,i64 24
%bI=bitcast i8*%bH to i32*
store i32 5,i32*%bI,align 4
%bJ=call fastcc i8*@_SMLFN9Substring7extractE(i8*inreg%bw)
store i8*%bJ,i8**%d,align 8
%bK=call i8*@sml_alloc(i32 inreg 20)#0
%bL=getelementptr inbounds i8,i8*%bK,i64 -4
%bM=bitcast i8*%bL to i32*
store i32 1342177296,i32*%bM,align 4
store i8*%bK,i8**%c,align 8
%bN=load i8*,i8**%b,align 8
store i8*null,i8**%b,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 0,i32*%bQ,align 4
%bR=getelementptr inbounds i8,i8*%bK,i64 12
%bS=bitcast i8*%bR to i32*
store i32 0,i32*%bS,align 4
%bT=getelementptr inbounds i8,i8*%bK,i64 16
%bU=bitcast i8*%bT to i32*
store i32 1,i32*%bU,align 4
%bV=call i8*@sml_alloc(i32 inreg 20)#0
%bW=getelementptr inbounds i8,i8*%bV,i64 -4
%bX=bitcast i8*%bW to i32*
store i32 1342177296,i32*%bX,align 4
%bY=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%bZ=bitcast i8*%bV to i8**
store i8*%bY,i8**%bZ,align 8
%b0=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%b1=getelementptr inbounds i8,i8*%bV,i64 8
%b2=bitcast i8*%b1 to i8**
store i8*%b0,i8**%b2,align 8
%b3=getelementptr inbounds i8,i8*%bV,i64 16
%b4=bitcast i8*%b3 to i32*
store i32 3,i32*%b4,align 4
%b5=call fastcc i8*@_SMLLN10ULexBuffer8subtractE_142(i8*inreg%bV)
store i8*%b5,i8**%b,align 8
%b6=call i8*@sml_alloc(i32 inreg 20)#0
%b7=getelementptr inbounds i8,i8*%b6,i64 -4
%b8=bitcast i8*%b7 to i32*
store i32 1342177296,i32*%b8,align 4
%b9=load i8*,i8**%b,align 8
%ca=bitcast i8*%b6 to i8**
store i8*%b9,i8**%ca,align 8
%cb=getelementptr inbounds i8,i8*%b6,i64 8
%cc=bitcast i8*%cb to i8**
store i8*null,i8**%cc,align 8
%cd=getelementptr inbounds i8,i8*%b6,i64 16
%ce=bitcast i8*%cd to i32*
store i32 3,i32*%ce,align 4
store i8*null,i8**%c,align 8
%cf=call i8*@sml_alloc(i32 inreg 20)#0
%cg=getelementptr inbounds i8,i8*%cf,i64 -4
%ch=bitcast i8*%cg to i32*
store i32 1342177296,i32*%ch,align 4
store i8*%cf,i8**%e,align 8
%ci=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%cj=bitcast i8*%cf to i8**
store i8*%ci,i8**%cj,align 8
%ck=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%cl=getelementptr inbounds i8,i8*%cf,i64 8
%cm=bitcast i8*%cl to i8**
store i8*%ck,i8**%cm,align 8
%cn=getelementptr inbounds i8,i8*%cf,i64 16
%co=bitcast i8*%cn to i32*
store i32 3,i32*%co,align 4
%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
%cs=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%ct=bitcast i8*%cp to i8**
store i8*%cs,i8**%ct,align 8
%cu=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%cv=getelementptr inbounds i8,i8*%cp,i64 8
%cw=bitcast i8*%cv to i8**
store i8*%cu,i8**%cw,align 8
%cx=getelementptr inbounds i8,i8*%cp,i64 16
%cy=bitcast i8*%cx to i32*
store i32 3,i32*%cy,align 4
%cz=call fastcc i8*@_SMLFN9Substring6concatE(i8*inreg%cp)
store i8*%cz,i8**%b,align 8
%cA=call i8*@sml_alloc(i32 inreg 28)#0
%cB=getelementptr inbounds i8,i8*%cA,i64 -4
%cC=bitcast i8*%cB to i32*
store i32 1342177304,i32*%cC,align 4
%cD=getelementptr inbounds i8,i8*%cA,i64 12
%cE=bitcast i8*%cD to i32*
store i32 0,i32*%cE,align 1
%cF=load i8*,i8**%b,align 8
%cG=bitcast i8*%cA to i8**
store i8*%cF,i8**%cG,align 8
%cH=getelementptr inbounds i8,i8*%cA,i64 8
%cI=bitcast i8*%cH to i32*
store i32 0,i32*%cI,align 4
%cJ=getelementptr inbounds i8,i8*%cA,i64 16
%cK=bitcast i8*%cJ to i8**
store i8*null,i8**%cK,align 8
%cL=getelementptr inbounds i8,i8*%cA,i64 24
%cM=bitcast i8*%cL to i32*
store i32 5,i32*%cM,align 4
store i8*null,i8**%c,align 8
%cN=call i8*@sml_alloc(i32 inreg 28)#0
%cO=getelementptr inbounds i8,i8*%cN,i64 -4
%cP=bitcast i8*%cO to i32*
store i32 1342177304,i32*%cP,align 4
%cQ=getelementptr inbounds i8,i8*%cN,i64 12
%cR=bitcast i8*%cQ to i32*
store i32 0,i32*%cR,align 1
%cS=load i8*,i8**%b,align 8
%cT=bitcast i8*%cN to i8**
store i8*%cS,i8**%cT,align 8
%cU=getelementptr inbounds i8,i8*%cN,i64 8
%cV=bitcast i8*%cU to i32*
store i32 0,i32*%cV,align 4
%cW=load i8*,i8**%c,align 8
%cX=getelementptr inbounds i8,i8*%cN,i64 16
%cY=bitcast i8*%cX to i8**
store i8*%cW,i8**%cY,align 8
%cZ=getelementptr inbounds i8,i8*%cN,i64 24
%c0=bitcast i8*%cZ to i32*
store i32 5,i32*%c0,align 4
%c1=tail call fastcc i8*@_SMLFN9Substring7extractE(i8*inreg%cN)
ret i8*%c1
c2:
store i8*null,i8**%c,align 8
store i8*null,i8**%e,align 8
%c3=load i8*,i8**@_SMLZ4Fail,align 8
store i8*%c3,i8**%b,align 8
%c4=call i8*@sml_alloc(i32 inreg 28)#0
%c5=getelementptr inbounds i8,i8*%c4,i64 -4
%c6=bitcast i8*%c5 to i32*
store i32 1342177304,i32*%c6,align 4
store i8*%c4,i8**%c,align 8
%c7=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%c8=bitcast i8*%c4 to i8**
store i8*%c7,i8**%c8,align 8
%c9=getelementptr inbounds i8,i8*%c4,i64 8
%da=bitcast i8*%c9 to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@x,i64 0,i32 2,i64 0),i8**%da,align 8
%db=getelementptr inbounds i8,i8*%c4,i64 16
%dc=bitcast i8*%db to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[52x i8]}>,<{[4x i8],i32,[52x i8]}>*@z,i64 0,i32 2,i64 0),i8**%dc,align 8
%dd=getelementptr inbounds i8,i8*%c4,i64 24
%de=bitcast i8*%dd to i32*
store i32 7,i32*%de,align 4
%df=call i8*@sml_alloc(i32 inreg 60)#0
%dg=getelementptr inbounds i8,i8*%df,i64 -4
%dh=bitcast i8*%dg to i32*
store i32 1342177336,i32*%dh,align 4
%di=getelementptr inbounds i8,i8*%df,i64 56
%dj=bitcast i8*%di to i32*
store i32 1,i32*%dj,align 4
%dk=load i8*,i8**%c,align 8
%dl=bitcast i8*%df to i8**
store i8*%dk,i8**%dl,align 8
call void@sml_raise(i8*inreg%df)#1
unreachable
}
define fastcc i8*@_SMLFN10ULexBuffer4getcE(i8*inreg%a)#2 gc"smlsharp"{
i:
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%g,label%e
e:
call void@sml_check(i32 inreg%c)
%f=load i8*,i8**%b,align 8
br label%g
g:
%h=phi i8*[%f,%e],[%a,%i]
%j=tail call fastcc i8*@_SMLLN10ULexBuffer4getcE_81(i8*inreg%h)
ret i8*%j
}
define fastcc i8*@_SMLFN10ULexBuffer4getuE(i8*inreg%a)#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**%f,i8*null)#0
store i8*%a,i8**%f,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**%f,align 8
br label%k
k:
%l=phi i8*[%j,%i],[%a,%m]
%n=bitcast i8**%b to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%n)
%o=bitcast i8**%c to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%o)
%p=bitcast i8**%d to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%p)
%q=bitcast i8**%e to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%q)
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
br label%r
r:
%s=phi i8*[%cR,%cN],[%l,%k]
store i8*%s,i8**%b,align 8
%t=load atomic i32,i32*@sml_check_flag unordered,align 4
%u=icmp eq i32%t,0
br i1%u,label%x,label%v
v:
call void@sml_check(i32 inreg%t)
%w=load i8*,i8**%b,align 8
br label%x
x:
%y=phi i8*[%w,%v],[%s,%r]
%z=bitcast i8*%y to i8**
%A=load i8*,i8**%z,align 8
store i8*%A,i8**%b,align 8
%B=bitcast i8*%A to i32*
%C=load i32,i32*%B,align 4
%D=getelementptr inbounds i8,i8*%A,i64 8
%E=bitcast i8*%D to i8**
%F=load i8*,i8**%E,align 8
store i8*%F,i8**%c,align 8
%G=getelementptr inbounds i8,i8*%A,i64 16
%H=bitcast i8*%G to i8**
%I=load i8*,i8**%H,align 8
store i8*%I,i8**%d,align 8
%J=getelementptr inbounds i8,i8*%A,i64 24
%K=bitcast i8*%J to i8**
%L=load i8*,i8**%K,align 8
store i8*%L,i8**%e,align 8
%M=getelementptr inbounds i8,i8*%y,i64 8
%N=bitcast i8*%M to i32*
%O=load i32,i32*%N,align 4
%P=getelementptr inbounds i8,i8*%F,i64 -4
%Q=bitcast i8*%P to i32*
%R=load i32,i32*%Q,align 4
%S=and i32%R,268435455
%T=add nsw i32%S,-1
%U=icmp slt i32%O,%T
br i1%U,label%V,label%b9
V:
store i8*null,i8**%d,align 8
store i8*null,i8**%e,align 8
%W=icmp slt i32%O,0
br i1%W,label%ak,label%X
X:
%Y=bitcast i8*%P to i32*
%Z=load i32,i32*%Y,align 4
%aa=and i32%Z,268435455
%ab=add nsw i32%aa,-1
%ac=icmp slt i32%O,%ab
br i1%ac,label%ad,label%ak
ad:
store i8*null,i8**%c,align 8
%ae=sext i32%O to i64
%af=getelementptr inbounds i8,i8*%F,i64%ae
%ag=load i8,i8*%af,align 1
%ah=zext i8%ag to i32
%ai=icmp slt i8%ag,0
%aj=add nsw i32%O,1
br i1%ai,label%a8,label%aC
ak:
store i8*null,i8**%c,align 8
%al=load i8*,i8**@_SMLZ9Subscript,align 8
store i8*%al,i8**%b,align 8
%am=call i8*@sml_alloc(i32 inreg 20)#0
%an=getelementptr inbounds i8,i8*%am,i64 -4
%ao=bitcast i8*%an to i32*
store i32 1342177296,i32*%ao,align 4
store i8*%am,i8**%c,align 8
%ap=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aq=bitcast i8*%am to i8**
store i8*%ap,i8**%aq,align 8
%ar=getelementptr inbounds i8,i8*%am,i64 8
%as=bitcast i8*%ar to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@l,i64 0,i32 2,i64 0),i8**%as,align 8
%at=getelementptr inbounds i8,i8*%am,i64 16
%au=bitcast i8*%at to i32*
store i32 3,i32*%au,align 4
%av=call i8*@sml_alloc(i32 inreg 60)#0
%aw=getelementptr inbounds i8,i8*%av,i64 -4
%ax=bitcast i8*%aw to i32*
store i32 1342177336,i32*%ax,align 4
%ay=getelementptr inbounds i8,i8*%av,i64 56
%az=bitcast i8*%ay to i32*
store i32 1,i32*%az,align 4
%aA=load i8*,i8**%c,align 8
%aB=bitcast i8*%av to i8**
store i8*%aA,i8**%aB,align 8
call void@sml_raise(i8*inreg%av)#1
unreachable
aC:
%aD=icmp eq i8%ag,10
%aE=zext i1%aD to i32
%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 i32*
store i32%aj,i32*%aL,align 4
%aM=getelementptr inbounds i8,i8*%aF,i64 12
%aN=bitcast i8*%aM to i32*
store i32%aE,i32*%aN,align 4
%aO=getelementptr inbounds i8,i8*%aF,i64 16
%aP=bitcast i8*%aO to i32*
store i32 1,i32*%aP,align 4
%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**%b,align 8
%aT=getelementptr inbounds i8,i8*%aQ,i64 4
%aU=bitcast i8*%aT to i32*
store i32 0,i32*%aU,align 1
%aV=bitcast i8*%aQ to i32*
store i32%ah,i32*%aV,align 4
%aW=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aX=getelementptr inbounds i8,i8*%aQ,i64 8
%aY=bitcast i8*%aX to i8**
store i8*%aW,i8**%aY,align 8
%aZ=getelementptr inbounds i8,i8*%aQ,i64 16
%a0=bitcast i8*%aZ to i32*
store i32 2,i32*%a0,align 4
%a1=call i8*@sml_alloc(i32 inreg 12)#0
%a2=getelementptr inbounds i8,i8*%a1,i64 -4
%a3=bitcast i8*%a2 to i32*
store i32 1342177288,i32*%a3,align 4
%a4=load i8*,i8**%b,align 8
%a5=bitcast i8*%a1 to i8**
store i8*%a4,i8**%a5,align 8
%a6=getelementptr inbounds i8,i8*%a1,i64 8
%a7=bitcast i8*%a6 to i32*
store i32 1,i32*%a7,align 4
call void@llvm.lifetime.end.p0i8(i64 8,i8*%n)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%o)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%p)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%q)
br label%dm
a8:
%a9=call i8*@sml_alloc(i32 inreg 20)#0
%ba=getelementptr inbounds i8,i8*%a9,i64 -4
%bb=bitcast i8*%ba to i32*
store i32 1342177296,i32*%bb,align 4
store i8*%a9,i8**%c,align 8
%bc=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%bd=bitcast i8*%a9 to i8**
store i8*%bc,i8**%bd,align 8
%be=getelementptr inbounds i8,i8*%a9,i64 8
%bf=bitcast i8*%be to i32*
store i32%aj,i32*%bf,align 4
%bg=getelementptr inbounds i8,i8*%a9,i64 12
%bh=bitcast i8*%bg to i32*
store i32 0,i32*%bh,align 4
%bi=getelementptr inbounds i8,i8*%a9,i64 16
%bj=bitcast i8*%bi to i32*
store i32 1,i32*%bj,align 4
%bk=and i8%ag,-32
switch i8%bk,label%bl[
i8 -64,label%bO
i8 -32,label%bs
]
bl:
store i8*null,i8**%c,align 8
%bm=call i8*@sml_alloc(i32 inreg 60)#0
%bn=getelementptr inbounds i8,i8*%bm,i64 -4
%bo=bitcast i8*%bn to i32*
store i32 1342177336,i32*%bo,align 4
%bp=getelementptr inbounds i8,i8*%bm,i64 56
%bq=bitcast i8*%bp to i32*
store i32 1,i32*%bq,align 4
%br=bitcast i8*%bm to i8**
store i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,i8*,i32}>,<{[4x i8],i32,i8*,i8*,i32}>*@v,i64 0,i32 2)to i8*),i8**%br,align 8
call void@sml_raise(i8*inreg%bm)#1
unreachable
bs:
%bt=and i32%ah,15
%bu=call i8*@sml_alloc(i32 inreg 20)#0
%bv=bitcast i8*%bu to i32*
%bw=getelementptr inbounds i8,i8*%bu,i64 -4
%bx=bitcast i8*%bw to i32*
store i32 1342177296,i32*%bx,align 4
%by=getelementptr inbounds i8,i8*%bu,i64 4
%bz=bitcast i8*%by to i32*
store i32 0,i32*%bz,align 1
store i32%bt,i32*%bv,align 4
%bA=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bB=getelementptr inbounds i8,i8*%bu,i64 8
%bC=bitcast i8*%bB to i8**
store i8*%bA,i8**%bC,align 8
%bD=getelementptr inbounds i8,i8*%bu,i64 16
%bE=bitcast i8*%bD to i32*
store i32 2,i32*%bE,align 4
%bF=call fastcc i8*@_SMLL11getContByte_136(i8*inreg%bu)
%bG=call fastcc i8*@_SMLL11getContByte_136(i8*inreg%bF)
store i8*%bG,i8**%b,align 8
%bH=call i8*@sml_alloc(i32 inreg 12)#0
%bI=getelementptr inbounds i8,i8*%bH,i64 -4
%bJ=bitcast i8*%bI to i32*
store i32 1342177288,i32*%bJ,align 4
%bK=load i8*,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 1,i32*%bN,align 4
call void@llvm.lifetime.end.p0i8(i64 8,i8*%n)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%o)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%p)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%q)
br label%dm
bO:
%bP=and i32%ah,31
%bQ=call i8*@sml_alloc(i32 inreg 20)#0
%bR=bitcast i8*%bQ to i32*
%bS=getelementptr inbounds i8,i8*%bQ,i64 -4
%bT=bitcast i8*%bS to i32*
store i32 1342177296,i32*%bT,align 4
%bU=getelementptr inbounds i8,i8*%bQ,i64 4
%bV=bitcast i8*%bU to i32*
store i32 0,i32*%bV,align 1
store i32%bP,i32*%bR,align 4
%bW=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bX=getelementptr inbounds i8,i8*%bQ,i64 8
%bY=bitcast i8*%bX to i8**
store i8*%bW,i8**%bY,align 8
%bZ=getelementptr inbounds i8,i8*%bQ,i64 16
%b0=bitcast i8*%bZ to i32*
store i32 2,i32*%b0,align 4
%b1=call fastcc i8*@_SMLL11getContByte_136(i8*inreg%bQ)
store i8*%b1,i8**%b,align 8
%b2=call i8*@sml_alloc(i32 inreg 12)#0
%b3=getelementptr inbounds i8,i8*%b2,i64 -4
%b4=bitcast i8*%b3 to i32*
store i32 1342177288,i32*%b4,align 4
%b5=load i8*,i8**%b,align 8
%b6=bitcast i8*%b2 to i8**
store i8*%b5,i8**%b6,align 8
%b7=getelementptr inbounds i8,i8*%b2,i64 8
%b8=bitcast i8*%b7 to i32*
store i32 1,i32*%b8,align 4
call void@llvm.lifetime.end.p0i8(i64 8,i8*%n)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%o)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%p)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%q)
br label%dm
b9:
store i8*null,i8**%b,align 8
%ca=call i8*@sml_alloc(i32 inreg 36)#0
%cb=getelementptr inbounds i8,i8*%ca,i64 -4
%cc=bitcast i8*%cb to i32*
store i32 1342177312,i32*%cc,align 4
%cd=getelementptr inbounds i8,i8*%ca,i64 20
%ce=bitcast i8*%cd to i32*
store i32 0,i32*%ce,align 1
%cf=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%cg=bitcast i8*%ca to i8**
store i8*%cf,i8**%cg,align 8
%ch=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%ci=getelementptr inbounds i8,i8*%ca,i64 8
%cj=bitcast i8*%ci to i8**
store i8*%ch,i8**%cj,align 8
%ck=getelementptr inbounds i8,i8*%ca,i64 16
%cl=bitcast i8*%ck to i32*
store i32%C,i32*%cl,align 4
%cm=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%cn=getelementptr inbounds i8,i8*%ca,i64 24
%co=bitcast i8*%cn to i8**
store i8*%cm,i8**%co,align 8
%cp=getelementptr inbounds i8,i8*%ca,i64 32
%cq=bitcast i8*%cp to i32*
store i32 11,i32*%cq,align 4
%cr=call fastcc i8*@_SMLLN10ULexBuffer7advanceE_79(i8*inreg%ca)
%cs=bitcast i8*%cr to i32*
%ct=load i32,i32*%cs,align 4
switch i32%ct,label%cu[
i32 1,label%c2
i32 2,label%cN
i32 0,label%cM
]
cu:
call void@sml_matchcomp_bug()
%cv=load i8*,i8**@_SMLZ5Match,align 8
store i8*%cv,i8**%b,align 8
%cw=call i8*@sml_alloc(i32 inreg 20)#0
%cx=getelementptr inbounds i8,i8*%cw,i64 -4
%cy=bitcast i8*%cx to i32*
store i32 1342177296,i32*%cy,align 4
store i8*%cw,i8**%c,align 8
%cz=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%cA=bitcast i8*%cw to i8**
store i8*%cz,i8**%cA,align 8
%cB=getelementptr inbounds i8,i8*%cw,i64 8
%cC=bitcast i8*%cB to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@k,i64 0,i32 2,i64 0),i8**%cC,align 8
%cD=getelementptr inbounds i8,i8*%cw,i64 16
%cE=bitcast i8*%cD to i32*
store i32 3,i32*%cE,align 4
%cF=call i8*@sml_alloc(i32 inreg 60)#0
%cG=getelementptr inbounds i8,i8*%cF,i64 -4
%cH=bitcast i8*%cG to i32*
store i32 1342177336,i32*%cH,align 4
%cI=getelementptr inbounds i8,i8*%cF,i64 56
%cJ=bitcast i8*%cI to i32*
store i32 1,i32*%cJ,align 4
%cK=load i8*,i8**%c,align 8
%cL=bitcast i8*%cF to i8**
store i8*%cK,i8**%cL,align 8
call void@sml_raise(i8*inreg%cF)#1
unreachable
cM:
call void@llvm.lifetime.end.p0i8(i64 8,i8*%n)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%o)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%p)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%q)
br label%dm
cN:
%cO=getelementptr inbounds i8,i8*%cr,i64 8
%cP=bitcast i8*%cO to i8**
%cQ=load i8*,i8**%cP,align 8
store i8*%cQ,i8**%b,align 8
%cR=call i8*@sml_alloc(i32 inreg 20)#0
%cS=getelementptr inbounds i8,i8*%cR,i64 -4
%cT=bitcast i8*%cS to i32*
store i32 1342177296,i32*%cT,align 4
%cU=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%cV=bitcast i8*%cR to i8**
store i8*%cU,i8**%cV,align 8
%cW=getelementptr inbounds i8,i8*%cR,i64 8
%cX=bitcast i8*%cW to i32*
store i32 0,i32*%cX,align 4
%cY=getelementptr inbounds i8,i8*%cR,i64 12
%cZ=bitcast i8*%cY to i32*
store i32 0,i32*%cZ,align 4
%c0=getelementptr inbounds i8,i8*%cR,i64 16
%c1=bitcast i8*%c0 to i32*
store i32 1,i32*%c1,align 4
br label%r
c2:
%c3=load i8*,i8**@_SMLZ4Fail,align 8
store i8*%c3,i8**%b,align 8
%c4=call i8*@sml_alloc(i32 inreg 28)#0
%c5=getelementptr inbounds i8,i8*%c4,i64 -4
%c6=bitcast i8*%c5 to i32*
store i32 1342177304,i32*%c6,align 4
store i8*%c4,i8**%c,align 8
%c7=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%c8=bitcast i8*%c4 to i8**
store i8*%c7,i8**%c8,align 8
%c9=getelementptr inbounds i8,i8*%c4,i64 8
%da=bitcast i8*%c9 to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@j,i64 0,i32 2,i64 0),i8**%da,align 8
%db=getelementptr inbounds i8,i8*%c4,i64 16
%dc=bitcast i8*%db to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[11x i8]}>,<{[4x i8],i32,[11x i8]}>*@n,i64 0,i32 2,i64 0),i8**%dc,align 8
%dd=getelementptr inbounds i8,i8*%c4,i64 24
%de=bitcast i8*%dd to i32*
store i32 7,i32*%de,align 4
%df=call i8*@sml_alloc(i32 inreg 60)#0
%dg=getelementptr inbounds i8,i8*%df,i64 -4
%dh=bitcast i8*%dg to i32*
store i32 1342177336,i32*%dh,align 4
%di=getelementptr inbounds i8,i8*%df,i64 56
%dj=bitcast i8*%di to i32*
store i32 1,i32*%dj,align 4
%dk=load i8*,i8**%c,align 8
%dl=bitcast i8*%df to i8**
store i8*%dk,i8**%dl,align 8
call void@sml_raise(i8*inreg%df)#1
unreachable
dm:
%dn=phi i8*[%a1,%aC],[%bH,%bs],[%b2,%bO],[null,%cM]
ret i8*%dn
}
define fastcc i8*@_SMLFN10ULexBuffer8subtractE(i8*inreg%a)#2 gc"smlsharp"{
i:
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%g,label%e
e:
call void@sml_check(i32 inreg%c)
%f=load i8*,i8**%b,align 8
br label%g
g:
%h=phi i8*[%f,%e],[%a,%i]
%j=tail call fastcc i8*@_SMLLN10ULexBuffer8subtractE_142(i8*inreg%h)
ret i8*%j
}
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*@_SMLLN10ULexBuffer4getcE_81(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*@_SMLLN10ULexBuffer8mkStreamE_164(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*@_SMLLN10ULexBuffer6getposE_170(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*@_SMLLN10ULexBuffer4getcE_172(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*@_SMLLN10ULexBuffer4getuE_173(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*@_SMLLN10ULexBuffer8subtractE_174(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*@_SMLLN10ULexBuffer3eofE_175(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*@_SMLLN10ULexBuffer9lastWasNLE_176(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
declare void@llvm.lifetime.start.p0i8(i64,i8*)#0
declare void@llvm.lifetime.end.p0i8(i64,i8*)#0
attributes#0={nounwind}
attributes#1={noreturn}
attributes#2={uwtable}
attributes#3={noreturn nounwind}
attributes#4={nounwind uwtable}
