@sml_check_flag=external local_unnamed_addr global i32
@_SMLZ9Subscript=external unnamed_addr constant i8*
@_SMLZ4Size=external unnamed_addr constant i8*
@_SMLZ8Overflow=external unnamed_addr constant i8*
@a=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/basis/main/Slice_common.sml:61.53(1984)\00"}>,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*)*@_SMLFN16Word8VectorSlice3subE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common3subE_331 to void(...)*),i32 -2147483647}>,align 8
@c=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN16Word8VectorSlice6vectorE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common6vectorE_335 to void(...)*),i32 -2147483647}>,align 8
@d=private unnamed_addr constant<{[4x i8],i32,[45x i8]}><{[4x i8]zeroinitializer,i32 -2147483603,[45x i8]c"src/basis/main/Slice_common.sml:132.28(4633)\00"}>,align 8
@e=private unnamed_addr constant<{[4x i8],i32,[45x i8]}><{[4x i8]zeroinitializer,i32 -2147483603,[45x i8]c"src/basis/main/Slice_common.sml:133.67(4723)\00"}>,align 8
@f=private unnamed_addr constant<{[4x i8],i32,[45x i8]}><{[4x i8]zeroinitializer,i32 -2147483603,[45x i8]c"src/basis/main/Slice_common.sml:134.18(4746)\00"}>,align 8
@g=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN16Word8VectorSlice6concatE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common6concatE_341 to void(...)*),i32 -2147483647}>,align 8
@h=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN16Word8VectorSlice7collateE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common7collateE_344 to void(...)*),i32 -2147483647}>,align 8
@i=private unnamed_addr constant<{[4x i8],i32,[45x i8]}><{[4x i8]zeroinitializer,i32 -2147483603,[45x i8]c"src/basis/main/Slice_common.sml:205.19(7202)\00"}>,align 8
@j=private unnamed_addr constant<{[4x i8],i32,[45x i8]}><{[4x i8]zeroinitializer,i32 -2147483603,[45x i8]c"src/basis/main/Slice_common.sml:214.51(7466)\00"}>,align 8
@k=private unnamed_addr constant<{[4x i8],i32,[45x i8]}><{[4x i8]zeroinitializer,i32 -2147483603,[45x i8]c"src/basis/main/Slice_common.sml:223.64(7836)\00"}>,align 8
@l=private unnamed_addr constant<{[4x i8],i32,[45x i8]}><{[4x i8]zeroinitializer,i32 -2147483603,[45x i8]c"src/basis/main/Slice_common.sml:219.54(7648)\00"}>,align 8
@m=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN16Word8VectorSlice8subsliceE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common8subsliceE_348 to void(...)*),i32 -2147483647}>,align 8
@n=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN16Word8VectorSlice7getItemE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common7getItemE_349 to void(...)*),i32 -2147483647}>,align 8
@o=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN16Word8VectorSlice5findiE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common5findiE_361 to void(...)*),i32 -2147483647}>,align 8
@p=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN16Word8VectorSlice4findE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common4findE_363 to void(...)*),i32 -2147483647}>,align 8
@q=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN16Word8VectorSlice6existsE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common6existsE_366 to void(...)*),i32 -2147483647}>,align 8
@r=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN16Word8VectorSlice3allE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common3allE_369 to void(...)*),i32 -2147483647}>,align 8
@s=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i8*)*@_SMLFN16Word8VectorSlice6lengthE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN16Word8VectorSlice6lengthE_380 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN16Word8VectorSlice6lengthE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@s,i64 0,i32 2)to i8*)
@_SMLZN16Word8VectorSlice3subE=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*)
@t=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN16Word8VectorSlice4fullE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN16Word8VectorSlice4fullE_381 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN16Word8VectorSlice4fullE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@t,i64 0,i32 2)to i8*)
@u=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN16Word8VectorSlice5sliceE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN16Word8VectorSlice5sliceE_382 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN16Word8VectorSlice5sliceE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@u,i64 0,i32 2)to i8*)
@_SMLZN16Word8VectorSlice8subsliceE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@m,i64 0,i32 2)to i8*)
@v=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN16Word8VectorSlice4baseE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN16Word8VectorSlice4baseE_383 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN16Word8VectorSlice4baseE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@v,i64 0,i32 2)to i8*)
@_SMLZN16Word8VectorSlice6vectorE=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*)
@w=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i8*)*@_SMLFN16Word8VectorSlice7isEmptyE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN16Word8VectorSlice7isEmptyE_384 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN16Word8VectorSlice7isEmptyE=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*)
@_SMLZN16Word8VectorSlice7getItemE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@n,i64 0,i32 2)to i8*)
@x=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32,i32)*@_SMLFN16Word8VectorSlice6foldliE to void(...)*),void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLN16Word8VectorSlice6foldliE_385 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN16Word8VectorSlice6foldliE=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*)
@y=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32,i32)*@_SMLFN16Word8VectorSlice5foldlE to void(...)*),void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLN16Word8VectorSlice5foldlE_386 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN16Word8VectorSlice5foldlE=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*)
@z=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32,i32)*@_SMLFN16Word8VectorSlice6foldriE to void(...)*),void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLN16Word8VectorSlice6foldriE_387 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN16Word8VectorSlice6foldriE=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*)
@A=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32,i32)*@_SMLFN16Word8VectorSlice5foldrE to void(...)*),void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLN16Word8VectorSlice5foldrE_388 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN16Word8VectorSlice5foldrE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@A,i64 0,i32 2)to i8*)
@B=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN16Word8VectorSlice4appiE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN16Word8VectorSlice4appiE_389 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN16Word8VectorSlice4appiE=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*)*@_SMLFN16Word8VectorSlice3appE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN16Word8VectorSlice3appE_390 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN16Word8VectorSlice3appE=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*)
@_SMLZN16Word8VectorSlice5findiE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@o,i64 0,i32 2)to i8*)
@_SMLZN16Word8VectorSlice4findE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@p,i64 0,i32 2)to i8*)
@_SMLZN16Word8VectorSlice6existsE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@q,i64 0,i32 2)to i8*)
@_SMLZN16Word8VectorSlice3allE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@r,i64 0,i32 2)to i8*)
@_SMLZN16Word8VectorSlice7collateE=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*)
@_SMLZN16Word8VectorSlice6concatE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@g,i64 0,i32 2)to i8*)
@D=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN16Word8VectorSlice4mapiE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN16Word8VectorSlice4mapiE_391 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN16Word8VectorSlice4mapiE=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(i8*(i8*)*@_SMLFN16Word8VectorSlice3mapE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN16Word8VectorSlice3mapE_392 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN16Word8VectorSlice3mapE=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*)
@_SML_ftab78563455976a8f16_Word8VectorSlice=external global i8
@F=internal unnamed_addr global i1 false
declare void@llvm.gcroot(i8**,i8*)#0
declare{i32,i1}@llvm.sadd.with.overflow.i32(i32,i32)#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 i32@sml_personality(...)#0
declare void@sml_raise(i8*inreg)local_unnamed_addr#1
define private void@_SML_tabb78563455976a8f16_Word8VectorSlice()#2{
unreachable
}
define void@_SML_load78563455976a8f16_Word8VectorSlice(i8*%a)local_unnamed_addr#0{
%b=load i1,i1*@F,align 1
br i1%b,label%c,label%d
c:
ret void
d:
store i1 true,i1*@F,align 1
tail call void@sml_gcroot(i8*%a,void()*@_SML_tabb78563455976a8f16_Word8VectorSlice,i8*@_SML_ftab78563455976a8f16_Word8VectorSlice,i8*null)#0
ret void
}
define void@_SML_main78563455976a8f16_Word8VectorSlice()local_unnamed_addr#3 gc"smlsharp"{
ret void
}
define fastcc i8@_SMLFN16Word8VectorSlice3subE(i8*inreg%a)#4 gc"smlsharp"{
%b=alloca i8*,align 8
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
%d=bitcast i8*%a to i8**
%e=load i8*,i8**%d,align 8
%f=getelementptr inbounds i8,i8*%e,i64 12
%g=bitcast i8*%f to i32*
%h=load i32,i32*%g,align 4
%i=getelementptr inbounds i8,i8*%a,i64 8
%j=bitcast i8*%i to i32*
%k=load i32,i32*%j,align 4
%l=icmp sgt i32%k,-1
%m=icmp sgt i32%h,%k
%n=and i1%l,%m
br i1%n,label%G,label%o
o:
%p=load i8*,i8**@_SMLZ9Subscript,align 8
store i8*%p,i8**%b,align 8
%q=call i8*@sml_alloc(i32 inreg 20)#0
%r=getelementptr inbounds i8,i8*%q,i64 -4
%s=bitcast i8*%r to i32*
store i32 1342177296,i32*%s,align 4
store i8*%q,i8**%c,align 8
%t=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%u=bitcast i8*%q to i8**
store i8*%t,i8**%u,align 8
%v=getelementptr inbounds i8,i8*%q,i64 8
%w=bitcast i8*%v to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@a,i64 0,i32 2,i64 0),i8**%w,align 8
%x=getelementptr inbounds i8,i8*%q,i64 16
%y=bitcast i8*%x to i32*
store i32 3,i32*%y,align 4
%z=call i8*@sml_alloc(i32 inreg 60)#0
%A=getelementptr inbounds i8,i8*%z,i64 -4
%B=bitcast i8*%A to i32*
store i32 1342177336,i32*%B,align 4
%C=getelementptr inbounds i8,i8*%z,i64 56
%D=bitcast i8*%C to i32*
store i32 1,i32*%D,align 4
%E=load i8*,i8**%c,align 8
%F=bitcast i8*%z to i8**
store i8*%E,i8**%F,align 8
call void@sml_raise(i8*inreg%z)#1
unreachable
G:
%H=getelementptr inbounds i8,i8*%e,i64 8
%I=bitcast i8*%H to i32*
%J=load i32,i32*%I,align 4
%K=bitcast i8*%e to i8**
%L=load i8*,i8**%K,align 8
%M=add nsw i32%J,%k
%N=sext i32%M to i64
%O=getelementptr inbounds i8,i8*%L,i64%N
%P=load i8,i8*%O,align 1
ret i8%P
}
define fastcc i8*@_SMLFN16Word8VectorSlice6vectorE(i8*inreg%a)#3 gc"smlsharp"{
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=getelementptr inbounds i8,i8*%a,i64 8
%d=bitcast i8*%c to i32*
%e=load i32,i32*%d,align 4
%f=getelementptr inbounds i8,i8*%a,i64 12
%g=bitcast i8*%f to i32*
%h=load i32,i32*%g,align 4
%i=call i8*@sml_alloc(i32 inreg%h)#0
%j=getelementptr inbounds i8,i8*%i,i64 -4
%k=bitcast i8*%j to i32*
store i32%h,i32*%k,align 4
%l=bitcast i8**%b to i8***
%m=load i8**,i8***%l,align 8
%n=load i8*,i8**%m,align 8
%o=sext i32%e to i64
%p=getelementptr inbounds i8,i8*%n,i64%o
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%i,i8*%p,i32%h,i1 false)
ret i8*%i
}
define internal fastcc void@_SMLL4loop_215(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
h:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%d,align 8
%e=bitcast i8**%d to i8***
br label%f
f:
%g=phi i8*[%R,%v],[%b,%h]
store i8*%g,i8**%c,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**%c,align 8
br label%m
m:
%n=phi i8*[%l,%k],[%g,%f]
%o=bitcast i8*%n to i32*
%p=load i32,i32*%o,align 4
%q=getelementptr inbounds i8,i8*%n,i64 8
%r=bitcast i8*%q to i8**
%s=load i8*,i8**%r,align 8
%t=icmp eq i8*%s,null
br i1%t,label%u,label%v
u:
ret void
v:
%w=bitcast i8*%s to i8**
%x=load i8*,i8**%w,align 8
%y=getelementptr inbounds i8,i8*%x,i64 8
%z=bitcast i8*%y to i32*
%A=load i32,i32*%z,align 4
%B=getelementptr inbounds i8,i8*%x,i64 12
%C=bitcast i8*%B to i32*
%D=load i32,i32*%C,align 4
%E=getelementptr inbounds i8,i8*%s,i64 8
%F=bitcast i8*%E to i8**
%G=load i8*,i8**%F,align 8
store i8*%G,i8**%c,align 8
%H=bitcast i8*%s to i8***
%I=load i8**,i8***%H,align 8
%J=load i8*,i8**%I,align 8
%K=load i8**,i8***%e,align 8
%L=load i8*,i8**%K,align 8
%M=sext i32%p to i64
%N=getelementptr inbounds i8,i8*%L,i64%M
%O=sext i32%A to i64
%P=getelementptr inbounds i8,i8*%J,i64%O
call void@llvm.memmove.p0i8.p0i8.i32(i8*%N,i8*%P,i32%D,i1 false)
%Q=add nsw i32%D,%p
%R=call i8*@sml_alloc(i32 inreg 20)#0
%S=bitcast i8*%R to i32*
%T=getelementptr inbounds i8,i8*%R,i64 -4
%U=bitcast i8*%T to i32*
store i32 1342177296,i32*%U,align 4
%V=getelementptr inbounds i8,i8*%R,i64 4
%W=bitcast i8*%V to i32*
store i32 0,i32*%W,align 1
store i32%Q,i32*%S,align 4
%X=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%Y=getelementptr inbounds i8,i8*%R,i64 8
%Z=bitcast i8*%Y to i8**
store i8*%X,i8**%Z,align 8
%aa=getelementptr inbounds i8,i8*%R,i64 16
%ab=bitcast i8*%aa to i32*
store i32 2,i32*%ab,align 4
br label%f
}
define fastcc i8*@_SMLFN16Word8VectorSlice6concatE(i8*inreg%a)#4 gc"smlsharp"personality i32(...)*@sml_personality{
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**%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**%d,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**%d,align 8
br label%k
k:
%l=phi i8*[%j,%i],[%a,%m]
store i8*null,i8**%d,align 8
store i8*%l,i8**%e,align 8
%n=icmp eq i8*%l,null
br i1%n,label%o,label%s
o:
store i8*null,i8**%e,align 8
%p=call i8*@sml_alloc(i32 inreg 0)#0
%q=getelementptr inbounds i8,i8*%p,i64 -4
%r=bitcast i8*%q to i32*
store i32 0,i32*%r,align 4
ret i8*%p
s:
%t=getelementptr inbounds i8,i8*%l,i64 8
%u=bitcast i8*%t to i8**
%v=load i8*,i8**%u,align 8
%w=icmp eq i8*%v,null
br i1%w,label%x,label%B
x:
%y=bitcast i8*%l to i8**
%z=load i8*,i8**%y,align 8
%A=tail call fastcc i8*@_SMLFN16Word8VectorSlice6vectorE(i8*inreg%z)
ret i8*%A
B:
%C=call i8*@sml_alloc(i32 inreg 20)#0
%D=getelementptr inbounds i8,i8*%C,i64 -4
%E=bitcast i8*%D to i32*
store i32 1342177296,i32*%E,align 4
%F=getelementptr inbounds i8,i8*%C,i64 12
%G=bitcast i8*%F to i32*
store i32 0,i32*%G,align 1
%H=load i8*,i8**%e,align 8
%I=bitcast i8*%C to i8**
store i8*%H,i8**%I,align 8
%J=getelementptr inbounds i8,i8*%C,i64 8
%K=bitcast i8*%J to i32*
store i32 0,i32*%K,align 4
%L=getelementptr inbounds i8,i8*%C,i64 16
%M=bitcast i8*%L to i32*
store i32 1,i32*%M,align 4
%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)
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
br label%P
P:
%Q=phi i8*[%aK,%aI],[%C,%B]
store i8*%Q,i8**%b,align 8
%R=load atomic i32,i32*@sml_check_flag unordered,align 4
%S=icmp eq i32%R,0
br i1%S,label%W,label%T
T:
invoke void@sml_check(i32 inreg%R)
to label%U unwind label%aV
U:
%V=load i8*,i8**%b,align 8
br label%W
W:
%X=phi i8*[%V,%U],[%Q,%P]
%Y=bitcast i8*%X to i8**
%Z=load i8*,i8**%Y,align 8
%aa=icmp eq i8*%Z,null
br i1%aa,label%bz,label%ab
ab:
%ac=bitcast i8*%Z to i8**
%ad=load i8*,i8**%ac,align 8
%ae=getelementptr inbounds i8,i8*%ad,i64 12
%af=bitcast i8*%ae to i32*
%ag=load i32,i32*%af,align 4
%ah=getelementptr inbounds i8,i8*%Z,i64 8
%ai=bitcast i8*%ah to i8**
%aj=load i8*,i8**%ai,align 8
store i8*%aj,i8**%b,align 8
%ak=getelementptr inbounds i8,i8*%X,i64 8
%al=bitcast i8*%ak to i32*
%am=load i32,i32*%al,align 4
%an=call{i32,i1}@llvm.sadd.with.overflow.i32(i32%ag,i32%am)#0
%ao=extractvalue{i32,i1}%an,1
br i1%ao,label%ap,label%aI
ap:
%aq=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%aq,i8**%b,align 8
%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**%c,align 8
%au=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%av=bitcast i8*%ar to i8**
store i8*%au,i8**%av,align 8
%aw=getelementptr inbounds i8,i8*%ar,i64 8
%ax=bitcast i8*%aw to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@d,i64 0,i32 2,i64 0),i8**%ax,align 8
%ay=getelementptr inbounds i8,i8*%ar,i64 16
%az=bitcast i8*%ay to i32*
store i32 3,i32*%az,align 4
%aA=call i8*@sml_alloc(i32 inreg 60)#0
%aB=getelementptr inbounds i8,i8*%aA,i64 -4
%aC=bitcast i8*%aB to i32*
store i32 1342177336,i32*%aC,align 4
%aD=getelementptr inbounds i8,i8*%aA,i64 56
%aE=bitcast i8*%aD to i32*
store i32 1,i32*%aE,align 4
%aF=load i8*,i8**%c,align 8
%aG=bitcast i8*%aA to i8**
store i8*%aF,i8**%aG,align 8
invoke void@sml_raise(i8*inreg%aA)#1
to label%aH unwind label%aY
aH:
unreachable
aI:
%aJ=add nsw i32%am,%ag
%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
%aN=getelementptr inbounds i8,i8*%aK,i64 12
%aO=bitcast i8*%aN to i32*
store i32 0,i32*%aO,align 1
%aP=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aQ=bitcast i8*%aK to i8**
store i8*%aP,i8**%aQ,align 8
%aR=getelementptr inbounds i8,i8*%aK,i64 8
%aS=bitcast i8*%aR to i32*
store i32%aJ,i32*%aS,align 4
%aT=getelementptr inbounds i8,i8*%aK,i64 16
%aU=bitcast i8*%aT to i32*
store i32 1,i32*%aU,align 4
br label%P
aV:
%aW=landingpad{i8*,i8*}
catch i8*null
%aX=load i8*,i8**@_SMLZ8Overflow,align 8
br label%a0
aY:
%aZ=landingpad{i8*,i8*}
catch i8*null
br label%a0
a0:
%a1=phi i8*[%aX,%aV],[%aq,%aY]
%a2=phi{i8*,i8*}[%aW,%aV],[%aZ,%aY]
%a3=extractvalue{i8*,i8*}%a2,1
%a4=bitcast i8*%a3 to i8**
%a5=load i8*,i8**%a4,align 8
store i8*null,i8**%e,align 8
store i8*%a5,i8**%d,align 8
%a6=bitcast i8*%a5 to i8**
%a7=load i8*,i8**%a6,align 8
%a8=icmp eq i8*%a7,%a1
br i1%a8,label%a9,label%br
a9:
%ba=load i8*,i8**@_SMLZ4Size,align 8
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**%d,align 8
store i8*null,i8**%d,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 i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@e,i64 0,i32 2,i64 0),i8**%bh,align 8
%bi=getelementptr inbounds i8,i8*%bb,i64 16
%bj=bitcast i8*%bi to i32*
store i32 3,i32*%bj,align 4
%bk=call i8*@sml_alloc(i32 inreg 60)#0
%bl=getelementptr inbounds i8,i8*%bk,i64 -4
%bm=bitcast i8*%bl to i32*
store i32 1342177336,i32*%bm,align 4
%bn=getelementptr inbounds i8,i8*%bk,i64 56
%bo=bitcast i8*%bn to i32*
store i32 1,i32*%bo,align 4
%bp=load i8*,i8**%e,align 8
%bq=bitcast i8*%bk to i8**
store i8*%bp,i8**%bq,align 8
call void@sml_raise(i8*inreg%bk)#1
unreachable
br:
%bs=call i8*@sml_alloc(i32 inreg 60)#0
%bt=getelementptr inbounds i8,i8*%bs,i64 -4
%bu=bitcast i8*%bt to i32*
store i32 1342177336,i32*%bu,align 4
%bv=getelementptr inbounds i8,i8*%bs,i64 56
%bw=bitcast i8*%bv to i32*
store i32 1,i32*%bw,align 4
%bx=load i8*,i8**%d,align 8
%by=bitcast i8*%bs to i8**
store i8*%bx,i8**%by,align 8
call void@sml_raise(i8*inreg%bs)#1
unreachable
bz:
%bA=getelementptr inbounds i8,i8*%X,i64 8
%bB=bitcast i8*%bA to i32*
%bC=load i32,i32*%bB,align 4
call void@llvm.lifetime.end.p0i8(i64 8,i8*%N)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%O)
%bD=icmp ugt i32%bC,268435455
br i1%bD,label%cb,label%bE
bE:
%bF=call i8*@sml_alloc(i32 inreg%bC)#0
%bG=getelementptr inbounds i8,i8*%bF,i64 -4
%bH=bitcast i8*%bG to i32*
store i32%bC,i32*%bH,align 4
store i8*%bF,i8**%d,align 8
%bI=call i8*@sml_alloc(i32 inreg 12)#0
%bJ=getelementptr inbounds i8,i8*%bI,i64 -4
%bK=bitcast i8*%bJ to i32*
store i32 1342177288,i32*%bK,align 4
store i8*%bI,i8**%f,align 8
%bL=load i8*,i8**%d,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 1,i32*%bO,align 4
%bP=call i8*@sml_alloc(i32 inreg 28)#0
%bQ=getelementptr inbounds i8,i8*%bP,i64 -4
%bR=bitcast i8*%bQ to i32*
store i32 1342177304,i32*%bR,align 4
%bS=load i8*,i8**%f,align 8
%bT=bitcast i8*%bP to i8**
store i8*%bS,i8**%bT,align 8
%bU=getelementptr inbounds i8,i8*%bP,i64 8
%bV=bitcast i8*%bU to void(...)**
store void(...)*bitcast(void(i8*,i8*)*@_SMLL4loop_215 to void(...)*),void(...)**%bV,align 8
%bW=getelementptr inbounds i8,i8*%bP,i64 16
%bX=bitcast i8*%bW to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL4loop_340 to void(...)*),void(...)**%bX,align 8
%bY=getelementptr inbounds i8,i8*%bP,i64 24
%bZ=bitcast i8*%bY to i32*
store i32 -2147483647,i32*%bZ,align 4
%b0=call i8*@sml_alloc(i32 inreg 20)#0
%b1=getelementptr inbounds i8,i8*%b0,i64 -4
%b2=bitcast i8*%b1 to i32*
store i32 1342177296,i32*%b2,align 4
%b3=bitcast i8*%b0 to i64*
store i64 0,i64*%b3,align 4
%b4=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%b5=getelementptr inbounds i8,i8*%b0,i64 8
%b6=bitcast i8*%b5 to i8**
store i8*%b4,i8**%b6,align 8
%b7=getelementptr inbounds i8,i8*%b0,i64 16
%b8=bitcast i8*%b7 to i32*
store i32 2,i32*%b8,align 4
%b9=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
call fastcc void@_SMLL4loop_215(i8*inreg%b9,i8*inreg%b0)
%ca=load i8*,i8**%d,align 8
ret i8*%ca
cb:
store i8*null,i8**%e,align 8
%cc=load i8*,i8**@_SMLZ4Size,align 8
store i8*%cc,i8**%d,align 8
%cd=call i8*@sml_alloc(i32 inreg 20)#0
%ce=getelementptr inbounds i8,i8*%cd,i64 -4
%cf=bitcast i8*%ce to i32*
store i32 1342177296,i32*%cf,align 4
store i8*%cd,i8**%e,align 8
%cg=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%ch=bitcast i8*%cd to i8**
store i8*%cg,i8**%ch,align 8
%ci=getelementptr inbounds i8,i8*%cd,i64 8
%cj=bitcast i8*%ci to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@f,i64 0,i32 2,i64 0),i8**%cj,align 8
%ck=getelementptr inbounds i8,i8*%cd,i64 16
%cl=bitcast i8*%ck to i32*
store i32 3,i32*%cl,align 4
%cm=call i8*@sml_alloc(i32 inreg 60)#0
%cn=getelementptr inbounds i8,i8*%cm,i64 -4
%co=bitcast i8*%cn to i32*
store i32 1342177336,i32*%co,align 4
%cp=getelementptr inbounds i8,i8*%cm,i64 56
%cq=bitcast i8*%cp to i32*
store i32 1,i32*%cq,align 4
%cr=load i8*,i8**%e,align 8
%cs=bitcast i8*%cm to i8**
store i8*%cr,i8**%cs,align 8
call void@sml_raise(i8*inreg%cm)#1
unreachable
}
define internal fastcc i32@_SMLL4loop_218(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
g:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%c,align 8
br label%e
e:
%f=phi i8*[%at,%ao],[%b,%g]
store i8*%f,i8**%d,align 8
%h=load atomic i32,i32*@sml_check_flag unordered,align 4
%i=icmp eq i32%h,0
br i1%i,label%l,label%j
j:
call void@sml_check(i32 inreg%h)
%k=load i8*,i8**%d,align 8
br label%l
l:
%m=phi i8*[%k,%j],[%f,%e]
%n=bitcast i8*%m to i32*
%o=load i32,i32*%n,align 4
%p=getelementptr inbounds i8,i8*%m,i64 4
%q=bitcast i8*%p to i32*
%r=load i32,i32*%q,align 4
%s=icmp eq i32%r,0
br i1%s,label%aF,label%t
t:
%u=getelementptr inbounds i8,i8*%m,i64 8
%v=bitcast i8*%u to i32*
%w=load i32,i32*%v,align 4
%x=getelementptr inbounds i8,i8*%m,i64 12
%y=bitcast i8*%x to i32*
%z=load i32,i32*%y,align 4
%A=icmp eq i32%z,0
br i1%A,label%am,label%B
B:
%C=load i8*,i8**%c,align 8
%D=getelementptr inbounds i8,i8*%C,i64 8
%E=bitcast i8*%D to i8**
%F=load i8*,i8**%E,align 8
%G=bitcast i8*%F to i8***
%H=load i8**,i8***%G,align 8
%I=load i8*,i8**%H,align 8
%J=sext i32%o to i64
%K=getelementptr inbounds i8,i8*%I,i64%J
%L=load i8,i8*%K,align 1
%M=getelementptr inbounds i8,i8*%F,i64 8
%N=bitcast i8*%M to i8***
%O=load i8**,i8***%N,align 8
%P=load i8*,i8**%O,align 8
%Q=sext i32%w to i64
%R=getelementptr inbounds i8,i8*%P,i64%Q
%S=load i8,i8*%R,align 1
%T=bitcast i8*%C to i8**
%U=load i8*,i8**%T,align 8
%V=getelementptr inbounds i8,i8*%U,i64 16
%W=bitcast i8*%V to i8*(i8*,i8*)**
%X=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%W,align 8
%Y=bitcast i8*%U to i8**
%Z=load i8*,i8**%Y,align 8
store i8*%Z,i8**%d,align 8
%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=getelementptr inbounds i8,i8*%aa,i64 2
call void@llvm.memset.p0i8.i32(i8*%ad,i8 0,i32 6,i1 false)
store i8%L,i8*%aa,align 1
%ae=getelementptr inbounds i8,i8*%aa,i64 1
store i8%S,i8*%ae,align 1
%af=getelementptr inbounds i8,i8*%aa,i64 8
%ag=bitcast i8*%af to i32*
store i32 0,i32*%ag,align 4
%ah=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%ai=call fastcc i8*%X(i8*inreg%ah,i8*inreg%aa)
%aj=bitcast i8*%ai to i32*
%ak=load i32,i32*%aj,align 4
%al=icmp eq i32%ak,0
br i1%al,label%ao,label%am
am:
%an=phi i32[%aK,%aF],[1,%t],[%ak,%B]
ret i32%an
ao:
%ap=add nsw i32%o,1
%aq=add nsw i32%r,-1
%ar=add nsw i32%w,1
%as=add nsw i32%z,-1
%at=call i8*@sml_alloc(i32 inreg 20)#0
%au=bitcast i8*%at to i32*
%av=getelementptr inbounds i8,i8*%at,i64 -4
%aw=bitcast i8*%av to i32*
store i32 1342177296,i32*%aw,align 4
store i32%ap,i32*%au,align 4
%ax=getelementptr inbounds i8,i8*%at,i64 4
%ay=bitcast i8*%ax to i32*
store i32%aq,i32*%ay,align 4
%az=getelementptr inbounds i8,i8*%at,i64 8
%aA=bitcast i8*%az to i32*
store i32%ar,i32*%aA,align 4
%aB=getelementptr inbounds i8,i8*%at,i64 12
%aC=bitcast i8*%aB to i32*
store i32%as,i32*%aC,align 4
%aD=getelementptr inbounds i8,i8*%at,i64 16
%aE=bitcast i8*%aD to i32*
store i32 0,i32*%aE,align 4
br label%e
aF:
%aG=getelementptr inbounds i8,i8*%m,i64 12
%aH=bitcast i8*%aG to i32*
%aI=load i32,i32*%aH,align 4
%aJ=icmp eq i32%aI,0
%aK=select i1%aJ,i32 0,i32 2
br label%am
}
define internal fastcc i32@_SMLLN12Slice__common7collateE_219(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%d,align 8
store i8*%b,i8**%c,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%h,label%j
h:
%i=bitcast i8*%a to i8**
br label%n
j:
call void@sml_check(i32 inreg%f)
%k=load i8*,i8**%c,align 8
%l=bitcast i8**%d to i8***
%m=load i8**,i8***%l,align 8
br label%n
n:
%o=phi i8**[%m,%j],[%i,%h]
%p=phi i8*[%k,%j],[%b,%h]
%q=bitcast i8*%p to i8**
%r=load i8*,i8**%q,align 8
%s=getelementptr inbounds i8,i8*%r,i64 8
%t=bitcast i8*%s to i32*
%u=load i32,i32*%t,align 4
%v=getelementptr inbounds i8,i8*%r,i64 12
%w=bitcast i8*%v to i32*
%x=load i32,i32*%w,align 4
%y=getelementptr inbounds i8,i8*%p,i64 8
%z=bitcast i8*%y to i8**
%A=load i8*,i8**%z,align 8
%B=getelementptr inbounds i8,i8*%A,i64 8
%C=bitcast i8*%B to i32*
%D=load i32,i32*%C,align 4
%E=getelementptr inbounds i8,i8*%A,i64 12
%F=bitcast i8*%E to i32*
%G=load i32,i32*%F,align 4
%H=load i8*,i8**%o,align 8
store i8*%H,i8**%d,align 8
%I=call i8*@sml_alloc(i32 inreg 20)#0
%J=getelementptr inbounds i8,i8*%I,i64 -4
%K=bitcast i8*%J to i32*
store i32 1342177296,i32*%K,align 4
store i8*%I,i8**%e,align 8
%L=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%M=bitcast i8*%I to i8**
store i8*%L,i8**%M,align 8
%N=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%O=getelementptr inbounds i8,i8*%I,i64 8
%P=bitcast i8*%O to i8**
store i8*%N,i8**%P,align 8
%Q=getelementptr inbounds i8,i8*%I,i64 16
%R=bitcast i8*%Q to i32*
store i32 3,i32*%R,align 4
%S=call i8*@sml_alloc(i32 inreg 28)#0
%T=getelementptr inbounds i8,i8*%S,i64 -4
%U=bitcast i8*%T to i32*
store i32 1342177304,i32*%U,align 4
%V=load i8*,i8**%e,align 8
%W=bitcast i8*%S to i8**
store i8*%V,i8**%W,align 8
%X=getelementptr inbounds i8,i8*%S,i64 8
%Y=bitcast i8*%X to void(...)**
store void(...)*bitcast(i32(i8*,i8*)*@_SMLL4loop_218 to void(...)*),void(...)**%Y,align 8
%Z=getelementptr inbounds i8,i8*%S,i64 16
%aa=bitcast i8*%Z to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL4loop_342 to void(...)*),void(...)**%aa,align 8
%ab=getelementptr inbounds i8,i8*%S,i64 24
%ac=bitcast i8*%ab to i32*
store i32 -2147483647,i32*%ac,align 4
%ad=call i8*@sml_alloc(i32 inreg 20)#0
%ae=bitcast i8*%ad to i32*
%af=getelementptr inbounds i8,i8*%ad,i64 -4
%ag=bitcast i8*%af to i32*
store i32 1342177296,i32*%ag,align 4
store i32%u,i32*%ae,align 4
%ah=getelementptr inbounds i8,i8*%ad,i64 4
%ai=bitcast i8*%ah to i32*
store i32%x,i32*%ai,align 4
%aj=getelementptr inbounds i8,i8*%ad,i64 8
%ak=bitcast i8*%aj to i32*
store i32%D,i32*%ak,align 4
%al=getelementptr inbounds i8,i8*%ad,i64 12
%am=bitcast i8*%al to i32*
store i32%G,i32*%am,align 4
%an=getelementptr inbounds i8,i8*%ad,i64 16
%ao=bitcast i8*%an to i32*
store i32 0,i32*%ao,align 4
%ap=load i8*,i8**%e,align 8
%aq=tail call fastcc i32@_SMLL4loop_218(i8*inreg%ap,i8*inreg%ad)
ret i32%aq
}
define fastcc i8*@_SMLFN16Word8VectorSlice7collateE(i8*inreg%a)#3 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=call i8*@sml_alloc(i32 inreg 12)#0
%e=getelementptr inbounds i8,i8*%d,i64 -4
%f=bitcast i8*%e to i32*
store i32 1342177288,i32*%f,align 4
store i8*%d,i8**%c,align 8
%g=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%h=bitcast i8*%d to i8**
store i8*%g,i8**%h,align 8
%i=getelementptr inbounds i8,i8*%d,i64 8
%j=bitcast i8*%i to i32*
store i32 1,i32*%j,align 4
%k=call i8*@sml_alloc(i32 inreg 28)#0
%l=getelementptr inbounds i8,i8*%k,i64 -4
%m=bitcast i8*%l to i32*
store i32 1342177304,i32*%m,align 4
%n=load i8*,i8**%c,align 8
%o=bitcast i8*%k to i8**
store i8*%n,i8**%o,align 8
%p=getelementptr inbounds i8,i8*%k,i64 8
%q=bitcast i8*%p to void(...)**
store void(...)*bitcast(i32(i8*,i8*)*@_SMLLN12Slice__common7collateE_219 to void(...)*),void(...)**%q,align 8
%r=getelementptr inbounds i8,i8*%k,i64 16
%s=bitcast i8*%r to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common7collateE_343 to void(...)*),void(...)**%s,align 8
%t=getelementptr inbounds i8,i8*%k,i64 24
%u=bitcast i8*%t to i32*
store i32 -2147483647,i32*%u,align 4
ret i8*%k
}
define fastcc i8*@_SMLFN16Word8VectorSlice8subsliceE(i8*inreg%a)#4 gc"smlsharp"{
%b=alloca i8*,align 8
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
%d=bitcast i8*%a to i8***
%e=load i8**,i8***%d,align 8
%f=load i8*,i8**%e,align 8
store i8*%f,i8**%b,align 8
%g=bitcast i8**%e to i8*
%h=getelementptr inbounds i8*,i8**%e,i64 1
%i=bitcast i8**%h to i32*
%j=load i32,i32*%i,align 4
%k=getelementptr inbounds i8,i8*%g,i64 12
%l=bitcast i8*%k to i32*
%m=load i32,i32*%l,align 4
%n=getelementptr inbounds i8,i8*%a,i64 8
%o=bitcast i8*%n to i32*
%p=load i32,i32*%o,align 4
%q=icmp sgt i32%p,-1
%r=icmp sge i32%m,%p
%s=and i1%q,%r
br i1%s,label%L,label%t
t:
%u=load i8*,i8**@_SMLZ9Subscript,align 8
store i8*%u,i8**%b,align 8
%v=call i8*@sml_alloc(i32 inreg 20)#0
%w=getelementptr inbounds i8,i8*%v,i64 -4
%x=bitcast i8*%w to i32*
store i32 1342177296,i32*%x,align 4
store i8*%v,i8**%c,align 8
%y=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%z=bitcast i8*%v to i8**
store i8*%y,i8**%z,align 8
%A=getelementptr inbounds i8,i8*%v,i64 8
%B=bitcast i8*%A to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@l,i64 0,i32 2,i64 0),i8**%B,align 8
%C=getelementptr inbounds i8,i8*%v,i64 16
%D=bitcast i8*%C to i32*
store i32 3,i32*%D,align 4
%E=call i8*@sml_alloc(i32 inreg 60)#0
%F=getelementptr inbounds i8,i8*%E,i64 -4
%G=bitcast i8*%F to i32*
store i32 1342177336,i32*%G,align 4
%H=getelementptr inbounds i8,i8*%E,i64 56
%I=bitcast i8*%H to i32*
store i32 1,i32*%I,align 4
%J=load i8*,i8**%c,align 8
%K=bitcast i8*%E to i8**
store i8*%J,i8**%K,align 8
call void@sml_raise(i8*inreg%E)#1
unreachable
L:
%M=getelementptr inbounds i8,i8*%a,i64 16
%N=bitcast i8*%M to i8**
%O=load i8*,i8**%N,align 8
%P=icmp eq i8*%O,null
br i1%P,label%Q,label%ae
Q:
%R=add nsw i32%p,%j
%S=sub nsw i32%m,%p
%T=call i8*@sml_alloc(i32 inreg 20)#0
%U=getelementptr inbounds i8,i8*%T,i64 -4
%V=bitcast i8*%U to i32*
store i32 1342177296,i32*%V,align 4
%W=load i8*,i8**%b,align 8
%X=bitcast i8*%T to i8**
store i8*%W,i8**%X,align 8
%Y=getelementptr inbounds i8,i8*%T,i64 8
%Z=bitcast i8*%Y to i32*
store i32%R,i32*%Z,align 4
%aa=getelementptr inbounds i8,i8*%T,i64 12
%ab=bitcast i8*%aa to i32*
store i32%S,i32*%ab,align 4
%ac=getelementptr inbounds i8,i8*%T,i64 16
%ad=bitcast i8*%ac to i32*
store i32 1,i32*%ad,align 4
ret i8*%T
ae:
%af=bitcast i8*%O to i32*
%ag=load i32,i32*%af,align 4
%ah=icmp sgt i32%ag,-1
%ai=sub nsw i32%m,%p
%aj=icmp sge i32%ai,%ag
%ak=and i1%ah,%aj
br i1%ak,label%aD,label%al
al:
%am=load i8*,i8**@_SMLZ9Subscript,align 8
store i8*%am,i8**%b,align 8
%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**%c,align 8
%aq=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%ar=bitcast i8*%an to i8**
store i8*%aq,i8**%ar,align 8
%as=getelementptr inbounds i8,i8*%an,i64 8
%at=bitcast i8*%as to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@k,i64 0,i32 2,i64 0),i8**%at,align 8
%au=getelementptr inbounds i8,i8*%an,i64 16
%av=bitcast i8*%au to i32*
store i32 3,i32*%av,align 4
%aw=call i8*@sml_alloc(i32 inreg 60)#0
%ax=getelementptr inbounds i8,i8*%aw,i64 -4
%ay=bitcast i8*%ax to i32*
store i32 1342177336,i32*%ay,align 4
%az=getelementptr inbounds i8,i8*%aw,i64 56
%aA=bitcast i8*%az to i32*
store i32 1,i32*%aA,align 4
%aB=load i8*,i8**%c,align 8
%aC=bitcast i8*%aw to i8**
store i8*%aB,i8**%aC,align 8
call void@sml_raise(i8*inreg%aw)#1
unreachable
aD:
%aE=add nsw i32%p,%j
%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
%aI=load i8*,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%aE,i32*%aL,align 4
%aM=getelementptr inbounds i8,i8*%aF,i64 12
%aN=bitcast i8*%aM to i32*
store i32%ag,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
ret i8*%aF
}
define fastcc i8*@_SMLFN16Word8VectorSlice7getItemE(i8*inreg%a)#3 gc"smlsharp"{
%b=alloca i8*,align 8
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
%d=bitcast i8*%a to i8**
%e=load i8*,i8**%d,align 8
store i8*%e,i8**%c,align 8
%f=getelementptr inbounds i8,i8*%a,i64 8
%g=bitcast i8*%f to i32*
%h=load i32,i32*%g,align 4
%i=getelementptr inbounds i8,i8*%a,i64 12
%j=bitcast i8*%i to i32*
%k=load i32,i32*%j,align 4
%l=icmp sgt i32%k,0
br i1%l,label%n,label%m
m:
ret i8*null
n:
%o=sext i32%h to i64
%p=getelementptr inbounds i8,i8*%e,i64%o
%q=load i8,i8*%p,align 1
%r=add nsw i32%h,1
%s=add nsw i32%k,-1
%t=call i8*@sml_alloc(i32 inreg 20)#0
%u=getelementptr inbounds i8,i8*%t,i64 -4
%v=bitcast i8*%u to i32*
store i32 1342177296,i32*%v,align 4
store i8*%t,i8**%b,align 8
%w=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%x=bitcast i8*%t to i8**
store i8*%w,i8**%x,align 8
%y=getelementptr inbounds i8,i8*%t,i64 8
%z=bitcast i8*%y to i32*
store i32%r,i32*%z,align 4
%A=getelementptr inbounds i8,i8*%t,i64 12
%B=bitcast i8*%A to i32*
store i32%s,i32*%B,align 4
%C=getelementptr inbounds i8,i8*%t,i64 16
%D=bitcast i8*%C to i32*
store i32 1,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
store i8*%E,i8**%c,align 8
%H=getelementptr inbounds i8,i8*%E,i64 1
call void@llvm.memset.p0i8.i32(i8*%H,i8 0,i32 7,i1 false)
store i8%q,i8*%E,align 1
%I=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%J=getelementptr inbounds i8,i8*%E,i64 8
%K=bitcast i8*%J to i8**
store i8*%I,i8**%K,align 8
%L=getelementptr inbounds i8,i8*%E,i64 16
%M=bitcast i8*%L to i32*
store i32 2,i32*%M,align 4
%N=call i8*@sml_alloc(i32 inreg 12)#0
%O=getelementptr inbounds i8,i8*%N,i64 -4
%P=bitcast i8*%O to i32*
store i32 1342177288,i32*%P,align 4
%Q=load i8*,i8**%c,align 8
%R=bitcast i8*%N to i8**
store i8*%Q,i8**%R,align 8
%S=getelementptr inbounds i8,i8*%N,i64 8
%T=bitcast i8*%S to i32*
store i32 1,i32*%T,align 4
ret i8*%N
}
define internal fastcc i8*@_SMLL4loop_237(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
h:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%d,align 8
br label%f
f:
%g=phi i8*[%ba,%bm],[%b,%h]
store i8*%g,i8**%c,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**%c,align 8
br label%m
m:
%n=phi i8*[%l,%k],[%g,%f]
%o=load i8*,i8**%d,align 8
%p=getelementptr inbounds i8,i8*%o,i64 28
%q=bitcast i8*%p to i32*
%r=load i32,i32*%q,align 4
%s=add i32%r,3
%t=sub i32 0,%r
%u=and i32%s,%t
%v=add i32%r,4
%w=and i32%v,%t
%x=add i32%r,7
%y=add i32%x,%w
%z=and i32%y,-8
%A=lshr i32%w,3
%B=getelementptr inbounds i8,i8*%o,i64 24
%C=bitcast i8*%B to i32*
%D=load i32,i32*%C,align 4
%E=shl i32%D,%A
%F=or i32%z,4
%G=add i32%x,%u
%H=and i32%G,-8
%I=lshr i32%u,3
%J=shl i32%D,%I
%K=or i32%H,4
%L=bitcast i8*%n to i32*
%M=load i32,i32*%L,align 4
%N=icmp eq i32%D,0
br i1%N,label%T,label%O
O:
store i8*null,i8**%c,align 8
%P=sext i32%u to i64
%Q=getelementptr inbounds i8,i8*%n,i64%P
%R=bitcast i8*%Q to i8**
%S=load i8*,i8**%R,align 8
br label%ab
T:
%U=call i8*@sml_alloc(i32 inreg%r)#0
%V=getelementptr inbounds i8,i8*%U,i64 -4
%W=bitcast i8*%V to i32*
store i32%r,i32*%W,align 4
%X=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%Y=sext i32%u to i64
%Z=getelementptr inbounds i8,i8*%X,i64%Y
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%U,i8*%Z,i32%r,i1 false)
%aa=load i8*,i8**%d,align 8
br label%ab
ab:
%ac=phi i8*[%aa,%T],[%o,%O]
%ad=phi i8*[%U,%T],[%S,%O]
store i8*%ad,i8**%c,align 8
%ae=getelementptr inbounds i8,i8*%ac,i64 16
%af=bitcast i8*%ae to i32*
%ag=load i32,i32*%af,align 4
%ah=getelementptr inbounds i8,i8*%ac,i64 20
%ai=bitcast i8*%ah to i32*
%aj=load i32,i32*%ai,align 4
%ak=add nsw i32%aj,%ag
%al=icmp slt i32%M,%ak
br i1%al,label%an,label%am
am:
ret i8*%ad
an:
%ao=getelementptr inbounds i8,i8*%ac,i64 8
%ap=bitcast i8*%ao to i8***
%aq=load i8**,i8***%ap,align 8
%ar=load i8*,i8**%aq,align 8
%as=sext i32%M to i64
%at=getelementptr inbounds i8,i8*%ar,i64%as
%au=load i8,i8*%at,align 1
%av=add nsw i32%M,1
%aw=bitcast i8*%ac to i8**
%ax=load i8*,i8**%aw,align 8
%ay=getelementptr inbounds i8,i8*%ax,i64 16
%az=bitcast i8*%ay to i8*(i8*,i8*)**
%aA=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%az,align 8
%aB=bitcast i8*%ax to i8**
%aC=load i8*,i8**%aB,align 8
store i8*%aC,i8**%e,align 8
%aD=sub nsw i32%M,%ag
%aE=getelementptr inbounds i8,i8*%ac,i64 28
%aF=bitcast i8*%aE to i32*
%aG=load i32,i32*%aF,align 4
%aH=getelementptr inbounds i8,i8*%ac,i64 24
%aI=bitcast i8*%aH to i32*
%aJ=load i32,i32*%aI,align 4
%aK=call i8*@sml_alloc(i32 inreg%F)#0
%aL=or i32%z,1342177280
%aM=bitcast i8*%aK to i32*
%aN=getelementptr inbounds i8,i8*%aK,i64 -4
%aO=bitcast i8*%aN to i32*
store i32%aL,i32*%aO,align 4
call void@llvm.memset.p0i8.i32(i8*%aK,i8 0,i32%F,i1 false)
store i32%aD,i32*%aM,align 4
%aP=getelementptr inbounds i8,i8*%aK,i64 4
store i8%au,i8*%aP,align 1
%aQ=icmp eq i32%aJ,0
%aR=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aS=sext i32%w to i64
%aT=getelementptr inbounds i8,i8*%aK,i64%aS
br i1%aQ,label%aW,label%aU
aU:
%aV=bitcast i8*%aT to i8**
store i8*%aR,i8**%aV,align 8
br label%aX
aW:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%aT,i8*%aR,i32%aG,i1 false)
br label%aX
aX:
%aY=sext i32%z to i64
%aZ=getelementptr inbounds i8,i8*%aK,i64%aY
%a0=bitcast i8*%aZ to i32*
store i32%E,i32*%a0,align 4
%a1=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%a2=call fastcc i8*%aA(i8*inreg%a1,i8*inreg%aK)
store i8*%a2,i8**%c,align 8
%a3=load i8*,i8**%d,align 8
%a4=getelementptr inbounds i8,i8*%a3,i64 28
%a5=bitcast i8*%a4 to i32*
%a6=load i32,i32*%a5,align 4
%a7=getelementptr inbounds i8,i8*%a3,i64 24
%a8=bitcast i8*%a7 to i32*
%a9=load i32,i32*%a8,align 4
%ba=call i8*@sml_alloc(i32 inreg%K)#0
%bb=or i32%H,1342177280
%bc=bitcast i8*%ba to i32*
%bd=getelementptr inbounds i8,i8*%ba,i64 -4
%be=bitcast i8*%bd to i32*
store i32%bb,i32*%be,align 4
call void@llvm.memset.p0i8.i32(i8*%ba,i8 0,i32%K,i1 false)
store i32%av,i32*%bc,align 4
%bf=icmp eq i32%a9,0
%bg=load i8*,i8**%c,align 8
%bh=sext i32%u to i64
%bi=getelementptr inbounds i8,i8*%ba,i64%bh
br i1%bf,label%bl,label%bj
bj:
%bk=bitcast i8*%bi to i8**
store i8*%bg,i8**%bk,align 8
br label%bm
bl:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%bi,i8*%bg,i32%a6,i1 false)
br label%bm
bm:
%bn=sext i32%H to i64
%bo=getelementptr inbounds i8,i8*%ba,i64%bn
%bp=bitcast i8*%bo to i32*
store i32%J,i32*%bp,align 4
br label%f
}
define internal fastcc i8*@_SMLLN12Slice__common6foldliE_238(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
n:
%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**%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**%d,align 8
store i8*%b,i8**%c,align 8
%g=load atomic i32,i32*@sml_check_flag unordered,align 4
%h=icmp eq i32%g,0
br i1%h,label%l,label%i
i:
call void@sml_check(i32 inreg%g)
%j=load i8*,i8**%c,align 8
%k=load i8*,i8**%d,align 8
br label%l
l:
%m=phi i8*[%k,%i],[%a,%n]
%o=phi i8*[%j,%i],[%b,%n]
%p=getelementptr inbounds i8,i8*%m,i64 20
%q=bitcast i8*%p to i32*
%r=load i32,i32*%q,align 4
%s=add i32%r,3
%t=sub i32 0,%r
%u=and i32%s,%t
%v=add i32%r,7
%w=add i32%v,%u
%x=and i32%w,-8
%y=lshr i32%u,3
%z=getelementptr inbounds i8,i8*%m,i64 16
%A=bitcast i8*%z to i32*
%B=load i32,i32*%A,align 4
%C=shl i32%B,%y
%D=or i32%x,4
%E=getelementptr inbounds i8,i8*%o,i64 8
%F=bitcast i8*%E to i32*
%G=load i32,i32*%F,align 4
%H=getelementptr inbounds i8,i8*%o,i64 12
%I=bitcast i8*%H to i32*
%J=load i32,i32*%I,align 4
%K=bitcast i8*%m to i8**
%L=load i8*,i8**%K,align 8
store i8*%L,i8**%e,align 8
%M=call i8*@sml_alloc(i32 inreg 36)#0
%N=getelementptr inbounds i8,i8*%M,i64 -4
%O=bitcast i8*%N to i32*
store i32 1342177312,i32*%O,align 4
store i8*%M,i8**%f,align 8
%P=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%Q=bitcast i8*%M to i8**
store i8*%P,i8**%Q,align 8
%R=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%S=getelementptr inbounds i8,i8*%M,i64 8
%T=bitcast i8*%S to i8**
store i8*%R,i8**%T,align 8
%U=getelementptr inbounds i8,i8*%M,i64 16
%V=bitcast i8*%U to i32*
store i32%G,i32*%V,align 4
%W=getelementptr inbounds i8,i8*%M,i64 20
%X=bitcast i8*%W to i32*
store i32%J,i32*%X,align 4
%Y=getelementptr inbounds i8,i8*%M,i64 24
%Z=bitcast i8*%Y to i32*
store i32%B,i32*%Z,align 4
%aa=getelementptr inbounds i8,i8*%M,i64 28
%ab=bitcast i8*%aa to i32*
store i32%r,i32*%ab,align 4
%ac=getelementptr inbounds i8,i8*%M,i64 32
%ad=bitcast i8*%ac to i32*
store i32 3,i32*%ad,align 4
%ae=call i8*@sml_alloc(i32 inreg 28)#0
%af=getelementptr inbounds i8,i8*%ae,i64 -4
%ag=bitcast i8*%af to i32*
store i32 1342177304,i32*%ag,align 4
%ah=load i8*,i8**%f,align 8
%ai=bitcast i8*%ae to i8**
store i8*%ah,i8**%ai,align 8
%aj=getelementptr inbounds i8,i8*%ae,i64 8
%ak=bitcast i8*%aj to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL4loop_237 to void(...)*),void(...)**%ak,align 8
%al=getelementptr inbounds i8,i8*%ae,i64 16
%am=bitcast i8*%al to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL4loop_237 to void(...)*),void(...)**%am,align 8
%an=getelementptr inbounds i8,i8*%ae,i64 24
%ao=bitcast i8*%an to i32*
store i32 1,i32*%ao,align 4
%ap=load i8*,i8**%d,align 8
%aq=getelementptr inbounds i8,i8*%ap,i64 16
%ar=bitcast i8*%aq to i32*
%as=load i32,i32*%ar,align 4
%at=icmp eq i32%as,0
br i1%at,label%ay,label%au
au:
%av=getelementptr inbounds i8,i8*%ap,i64 8
%aw=bitcast i8*%av to i8**
%ax=load i8*,i8**%aw,align 8
br label%aK
ay:
%az=getelementptr inbounds i8,i8*%ap,i64 20
%aA=bitcast i8*%az to i32*
%aB=load i32,i32*%aA,align 4
%aC=call i8*@sml_alloc(i32 inreg%aB)#0
%aD=getelementptr inbounds i8,i8*%aC,i64 -4
%aE=bitcast i8*%aD to i32*
store i32%aB,i32*%aE,align 4
%aF=load i8*,i8**%d,align 8
%aG=getelementptr inbounds i8,i8*%aF,i64 8
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%aC,i8*%aG,i32%aB,i1 false)
%aH=getelementptr inbounds i8,i8*%aF,i64 16
%aI=bitcast i8*%aH to i32*
%aJ=load i32,i32*%aI,align 4
br label%aK
aK:
%aL=phi i32[%aJ,%ay],[%as,%au]
%aM=phi i8*[%aF,%ay],[%ap,%au]
%aN=phi i8*[%aC,%ay],[%ax,%au]
store i8*%aN,i8**%c,align 8
%aO=getelementptr inbounds i8,i8*%aM,i64 20
%aP=bitcast i8*%aO to i32*
%aQ=load i32,i32*%aP,align 4
store i8*null,i8**%d,align 8
%aR=call i8*@sml_alloc(i32 inreg%D)#0
%aS=or i32%x,1342177280
%aT=bitcast i8*%aR to i32*
%aU=getelementptr inbounds i8,i8*%aR,i64 -4
%aV=bitcast i8*%aU to i32*
store i32%aS,i32*%aV,align 4
call void@llvm.memset.p0i8.i32(i8*%aR,i8 0,i32%D,i1 false)
store i32%G,i32*%aT,align 4
%aW=icmp eq i32%aL,0
%aX=load i8*,i8**%c,align 8
%aY=sext i32%u to i64
%aZ=getelementptr inbounds i8,i8*%aR,i64%aY
br i1%aW,label%a2,label%a0
a0:
%a1=bitcast i8*%aZ to i8**
store i8*%aX,i8**%a1,align 8
br label%a3
a2:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%aZ,i8*%aX,i32%aQ,i1 false)
br label%a3
a3:
%a4=sext i32%x to i64
%a5=getelementptr inbounds i8,i8*%aR,i64%a4
%a6=bitcast i8*%a5 to i32*
store i32%C,i32*%a6,align 4
%a7=load i8*,i8**%f,align 8
%a8=tail call fastcc i8*@_SMLL4loop_237(i8*inreg%a7,i8*inreg%aR)
ret i8*%a8
}
define internal fastcc i8*@_SMLLN12Slice__common6foldliE_239(i8*inreg%a,i8*inreg%b)#3 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%b,i8**%c,align 8
%f=getelementptr inbounds i8,i8*%a,i64 8
%g=bitcast i8*%f to i32*
%h=load i32,i32*%g,align 4
%i=shl i32%h,1
%j=or i32%i,1
%k=bitcast i8*%a to i8**
%l=load i8*,i8**%k,align 8
store i8*%l,i8**%d,align 8
%m=getelementptr inbounds i8,i8*%a,i64 12
%n=bitcast i8*%m to i32*
%o=load i32,i32*%n,align 4
%p=call i8*@sml_alloc(i32 inreg 28)#0
%q=getelementptr inbounds i8,i8*%p,i64 -4
%r=bitcast i8*%q to i32*
store i32 1342177304,i32*%r,align 4
store i8*%p,i8**%e,align 8
%s=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%t=bitcast i8*%p to i8**
store i8*%s,i8**%t,align 8
%u=icmp eq i32%h,0
%v=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%w=getelementptr inbounds i8,i8*%p,i64 8
br i1%u,label%z,label%x
x:
%y=bitcast i8*%w to i8**
store i8*%v,i8**%y,align 8
br label%A
z:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%w,i8*%v,i32%o,i1 false)
br label%A
A:
%B=getelementptr inbounds i8,i8*%p,i64 16
%C=bitcast i8*%B to i32*
store i32%h,i32*%C,align 4
%D=getelementptr inbounds i8,i8*%p,i64 20
%E=bitcast i8*%D to i32*
store i32%o,i32*%E,align 4
%F=getelementptr inbounds i8,i8*%p,i64 24
%G=bitcast i8*%F to i32*
store i32%j,i32*%G,align 4
%H=call i8*@sml_alloc(i32 inreg 28)#0
%I=getelementptr inbounds i8,i8*%H,i64 -4
%J=bitcast i8*%I to i32*
store i32 1342177304,i32*%J,align 4
%K=load i8*,i8**%e,align 8
%L=bitcast i8*%H to i8**
store i8*%K,i8**%L,align 8
%M=getelementptr inbounds i8,i8*%H,i64 8
%N=bitcast i8*%M to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common6foldliE_238 to void(...)*),void(...)**%N,align 8
%O=getelementptr inbounds i8,i8*%H,i64 16
%P=bitcast i8*%O to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common6foldliE_238 to void(...)*),void(...)**%P,align 8
%Q=getelementptr inbounds i8,i8*%H,i64 24
%R=bitcast i8*%Q to i32*
store i32 1,i32*%R,align 4
ret i8*%H
}
define internal fastcc i8*@_SMLLN12Slice__common6foldliE_240(i8*inreg%a,i8*inreg%b)#3 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%b,i8**%c,align 8
%e=bitcast i8*%a to i32*
%f=load i32,i32*%e,align 4
%g=getelementptr inbounds i8,i8*%a,i64 4
%h=bitcast i8*%g to i32*
%i=load i32,i32*%h,align 4
%j=call i8*@sml_alloc(i32 inreg 20)#0
%k=getelementptr inbounds i8,i8*%j,i64 -4
%l=bitcast i8*%k to i32*
store i32 1342177296,i32*%l,align 4
store i8*%j,i8**%d,align 8
%m=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%n=bitcast i8*%j to i8**
store i8*%m,i8**%n,align 8
%o=getelementptr inbounds i8,i8*%j,i64 8
%p=bitcast i8*%o to i32*
store i32%f,i32*%p,align 4
%q=getelementptr inbounds i8,i8*%j,i64 12
%r=bitcast i8*%q to i32*
store i32%i,i32*%r,align 4
%s=getelementptr inbounds i8,i8*%j,i64 16
%t=bitcast i8*%s to i32*
store i32 1,i32*%t,align 4
%u=call i8*@sml_alloc(i32 inreg 28)#0
%v=getelementptr inbounds i8,i8*%u,i64 -4
%w=bitcast i8*%v to i32*
store i32 1342177304,i32*%w,align 4
%x=load i8*,i8**%d,align 8
%y=bitcast i8*%u to i8**
store i8*%x,i8**%y,align 8
%z=getelementptr inbounds i8,i8*%u,i64 8
%A=bitcast i8*%z to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common6foldliE_239 to void(...)*),void(...)**%A,align 8
%B=getelementptr inbounds i8,i8*%u,i64 16
%C=bitcast i8*%B to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common6foldliE_239 to void(...)*),void(...)**%C,align 8
%D=getelementptr inbounds i8,i8*%u,i64 24
%E=bitcast i8*%D to i32*
store i32 1,i32*%E,align 4
ret i8*%u
}
define internal fastcc i8*@_SMLL4loop_243(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
h:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%d,align 8
br label%f
f:
%g=phi i8*[%a6,%bi],[%b,%h]
store i8*%g,i8**%c,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**%c,align 8
br label%m
m:
%n=phi i8*[%l,%k],[%g,%f]
%o=load i8*,i8**%d,align 8
%p=getelementptr inbounds i8,i8*%o,i64 28
%q=bitcast i8*%p to i32*
%r=load i32,i32*%q,align 4
%s=add i32%r,3
%t=sub i32 0,%r
%u=and i32%s,%t
%v=and i32%r,%t
%w=add i32%r,7
%x=add i32%w,%v
%y=and i32%x,-8
%z=lshr i32%v,3
%A=getelementptr inbounds i8,i8*%o,i64 24
%B=bitcast i8*%A to i32*
%C=load i32,i32*%B,align 4
%D=shl i32%C,%z
%E=or i32%y,4
%F=add i32%w,%u
%G=and i32%F,-8
%H=lshr i32%u,3
%I=shl i32%C,%H
%J=or i32%G,4
%K=bitcast i8*%n to i32*
%L=load i32,i32*%K,align 4
%M=icmp eq i32%C,0
br i1%M,label%S,label%N
N:
store i8*null,i8**%c,align 8
%O=sext i32%u to i64
%P=getelementptr inbounds i8,i8*%n,i64%O
%Q=bitcast i8*%P to i8**
%R=load i8*,i8**%Q,align 8
br label%aa
S:
%T=call i8*@sml_alloc(i32 inreg%r)#0
%U=getelementptr inbounds i8,i8*%T,i64 -4
%V=bitcast i8*%U to i32*
store i32%r,i32*%V,align 4
%W=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%X=sext i32%u to i64
%Y=getelementptr inbounds i8,i8*%W,i64%X
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%T,i8*%Y,i32%r,i1 false)
%Z=load i8*,i8**%d,align 8
br label%aa
aa:
%ab=phi i8*[%Z,%S],[%o,%N]
%ac=phi i8*[%T,%S],[%R,%N]
store i8*%ac,i8**%c,align 8
%ad=getelementptr inbounds i8,i8*%ab,i64 16
%ae=bitcast i8*%ad to i32*
%af=load i32,i32*%ae,align 4
%ag=getelementptr inbounds i8,i8*%ab,i64 20
%ah=bitcast i8*%ag to i32*
%ai=load i32,i32*%ah,align 4
%aj=add nsw i32%ai,%af
%ak=icmp slt i32%L,%aj
br i1%ak,label%am,label%al
al:
ret i8*%ac
am:
%an=getelementptr inbounds i8,i8*%ab,i64 8
%ao=bitcast i8*%an to i8***
%ap=load i8**,i8***%ao,align 8
%aq=load i8*,i8**%ap,align 8
%ar=sext i32%L to i64
%as=getelementptr inbounds i8,i8*%aq,i64%ar
%at=load i8,i8*%as,align 1
%au=add nsw i32%L,1
%av=bitcast i8*%ab to i8**
%aw=load i8*,i8**%av,align 8
%ax=getelementptr inbounds i8,i8*%aw,i64 16
%ay=bitcast i8*%ax to i8*(i8*,i8*)**
%az=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%ay,align 8
%aA=bitcast i8*%aw to i8**
%aB=load i8*,i8**%aA,align 8
store i8*%aB,i8**%e,align 8
%aC=getelementptr inbounds i8,i8*%ab,i64 28
%aD=bitcast i8*%aC to i32*
%aE=load i32,i32*%aD,align 4
%aF=getelementptr inbounds i8,i8*%ab,i64 24
%aG=bitcast i8*%aF to i32*
%aH=load i32,i32*%aG,align 4
%aI=call i8*@sml_alloc(i32 inreg%E)#0
%aJ=or i32%y,1342177280
%aK=getelementptr inbounds i8,i8*%aI,i64 -4
%aL=bitcast i8*%aK to i32*
store i32%aJ,i32*%aL,align 4
call void@llvm.memset.p0i8.i32(i8*%aI,i8 0,i32%E,i1 false)
store i8%at,i8*%aI,align 1
%aM=icmp eq i32%aH,0
%aN=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aO=sext i32%v to i64
%aP=getelementptr inbounds i8,i8*%aI,i64%aO
br i1%aM,label%aS,label%aQ
aQ:
%aR=bitcast i8*%aP to i8**
store i8*%aN,i8**%aR,align 8
br label%aT
aS:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%aP,i8*%aN,i32%aE,i1 false)
br label%aT
aT:
%aU=sext i32%y to i64
%aV=getelementptr inbounds i8,i8*%aI,i64%aU
%aW=bitcast i8*%aV to i32*
store i32%D,i32*%aW,align 4
%aX=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%aY=call fastcc i8*%az(i8*inreg%aX,i8*inreg%aI)
store i8*%aY,i8**%c,align 8
%aZ=load i8*,i8**%d,align 8
%a0=getelementptr inbounds i8,i8*%aZ,i64 28
%a1=bitcast i8*%a0 to i32*
%a2=load i32,i32*%a1,align 4
%a3=getelementptr inbounds i8,i8*%aZ,i64 24
%a4=bitcast i8*%a3 to i32*
%a5=load i32,i32*%a4,align 4
%a6=call i8*@sml_alloc(i32 inreg%J)#0
%a7=or i32%G,1342177280
%a8=bitcast i8*%a6 to i32*
%a9=getelementptr inbounds i8,i8*%a6,i64 -4
%ba=bitcast i8*%a9 to i32*
store i32%a7,i32*%ba,align 4
call void@llvm.memset.p0i8.i32(i8*%a6,i8 0,i32%J,i1 false)
store i32%au,i32*%a8,align 4
%bb=icmp eq i32%a5,0
%bc=load i8*,i8**%c,align 8
%bd=sext i32%u to i64
%be=getelementptr inbounds i8,i8*%a6,i64%bd
br i1%bb,label%bh,label%bf
bf:
%bg=bitcast i8*%be to i8**
store i8*%bc,i8**%bg,align 8
br label%bi
bh:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%be,i8*%bc,i32%a2,i1 false)
br label%bi
bi:
%bj=sext i32%G to i64
%bk=getelementptr inbounds i8,i8*%a6,i64%bj
%bl=bitcast i8*%bk to i32*
store i32%I,i32*%bl,align 4
br label%f
}
define internal fastcc i8*@_SMLLN12Slice__common5foldlE_244(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
n:
%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**%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**%d,align 8
store i8*%b,i8**%c,align 8
%g=load atomic i32,i32*@sml_check_flag unordered,align 4
%h=icmp eq i32%g,0
br i1%h,label%l,label%i
i:
call void@sml_check(i32 inreg%g)
%j=load i8*,i8**%c,align 8
%k=load i8*,i8**%d,align 8
br label%l
l:
%m=phi i8*[%k,%i],[%a,%n]
%o=phi i8*[%j,%i],[%b,%n]
%p=getelementptr inbounds i8,i8*%m,i64 20
%q=bitcast i8*%p to i32*
%r=load i32,i32*%q,align 4
%s=add i32%r,3
%t=sub i32 0,%r
%u=and i32%s,%t
%v=add i32%r,7
%w=add i32%v,%u
%x=and i32%w,-8
%y=lshr i32%u,3
%z=getelementptr inbounds i8,i8*%m,i64 16
%A=bitcast i8*%z to i32*
%B=load i32,i32*%A,align 4
%C=shl i32%B,%y
%D=or i32%x,4
%E=getelementptr inbounds i8,i8*%o,i64 8
%F=bitcast i8*%E to i32*
%G=load i32,i32*%F,align 4
%H=getelementptr inbounds i8,i8*%o,i64 12
%I=bitcast i8*%H to i32*
%J=load i32,i32*%I,align 4
%K=bitcast i8*%m to i8**
%L=load i8*,i8**%K,align 8
store i8*%L,i8**%e,align 8
%M=call i8*@sml_alloc(i32 inreg 36)#0
%N=getelementptr inbounds i8,i8*%M,i64 -4
%O=bitcast i8*%N to i32*
store i32 1342177312,i32*%O,align 4
store i8*%M,i8**%f,align 8
%P=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%Q=bitcast i8*%M to i8**
store i8*%P,i8**%Q,align 8
%R=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%S=getelementptr inbounds i8,i8*%M,i64 8
%T=bitcast i8*%S to i8**
store i8*%R,i8**%T,align 8
%U=getelementptr inbounds i8,i8*%M,i64 16
%V=bitcast i8*%U to i32*
store i32%G,i32*%V,align 4
%W=getelementptr inbounds i8,i8*%M,i64 20
%X=bitcast i8*%W to i32*
store i32%J,i32*%X,align 4
%Y=getelementptr inbounds i8,i8*%M,i64 24
%Z=bitcast i8*%Y to i32*
store i32%B,i32*%Z,align 4
%aa=getelementptr inbounds i8,i8*%M,i64 28
%ab=bitcast i8*%aa to i32*
store i32%r,i32*%ab,align 4
%ac=getelementptr inbounds i8,i8*%M,i64 32
%ad=bitcast i8*%ac to i32*
store i32 3,i32*%ad,align 4
%ae=call i8*@sml_alloc(i32 inreg 28)#0
%af=getelementptr inbounds i8,i8*%ae,i64 -4
%ag=bitcast i8*%af to i32*
store i32 1342177304,i32*%ag,align 4
%ah=load i8*,i8**%f,align 8
%ai=bitcast i8*%ae to i8**
store i8*%ah,i8**%ai,align 8
%aj=getelementptr inbounds i8,i8*%ae,i64 8
%ak=bitcast i8*%aj to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL4loop_243 to void(...)*),void(...)**%ak,align 8
%al=getelementptr inbounds i8,i8*%ae,i64 16
%am=bitcast i8*%al to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL4loop_243 to void(...)*),void(...)**%am,align 8
%an=getelementptr inbounds i8,i8*%ae,i64 24
%ao=bitcast i8*%an to i32*
store i32 1,i32*%ao,align 4
%ap=load i8*,i8**%d,align 8
%aq=getelementptr inbounds i8,i8*%ap,i64 16
%ar=bitcast i8*%aq to i32*
%as=load i32,i32*%ar,align 4
%at=icmp eq i32%as,0
br i1%at,label%ay,label%au
au:
%av=getelementptr inbounds i8,i8*%ap,i64 8
%aw=bitcast i8*%av to i8**
%ax=load i8*,i8**%aw,align 8
br label%aK
ay:
%az=getelementptr inbounds i8,i8*%ap,i64 20
%aA=bitcast i8*%az to i32*
%aB=load i32,i32*%aA,align 4
%aC=call i8*@sml_alloc(i32 inreg%aB)#0
%aD=getelementptr inbounds i8,i8*%aC,i64 -4
%aE=bitcast i8*%aD to i32*
store i32%aB,i32*%aE,align 4
%aF=load i8*,i8**%d,align 8
%aG=getelementptr inbounds i8,i8*%aF,i64 8
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%aC,i8*%aG,i32%aB,i1 false)
%aH=getelementptr inbounds i8,i8*%aF,i64 16
%aI=bitcast i8*%aH to i32*
%aJ=load i32,i32*%aI,align 4
br label%aK
aK:
%aL=phi i32[%aJ,%ay],[%as,%au]
%aM=phi i8*[%aF,%ay],[%ap,%au]
%aN=phi i8*[%aC,%ay],[%ax,%au]
store i8*%aN,i8**%c,align 8
%aO=getelementptr inbounds i8,i8*%aM,i64 20
%aP=bitcast i8*%aO to i32*
%aQ=load i32,i32*%aP,align 4
store i8*null,i8**%d,align 8
%aR=call i8*@sml_alloc(i32 inreg%D)#0
%aS=or i32%x,1342177280
%aT=bitcast i8*%aR to i32*
%aU=getelementptr inbounds i8,i8*%aR,i64 -4
%aV=bitcast i8*%aU to i32*
store i32%aS,i32*%aV,align 4
call void@llvm.memset.p0i8.i32(i8*%aR,i8 0,i32%D,i1 false)
store i32%G,i32*%aT,align 4
%aW=icmp eq i32%aL,0
%aX=load i8*,i8**%c,align 8
%aY=sext i32%u to i64
%aZ=getelementptr inbounds i8,i8*%aR,i64%aY
br i1%aW,label%a2,label%a0
a0:
%a1=bitcast i8*%aZ to i8**
store i8*%aX,i8**%a1,align 8
br label%a3
a2:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%aZ,i8*%aX,i32%aQ,i1 false)
br label%a3
a3:
%a4=sext i32%x to i64
%a5=getelementptr inbounds i8,i8*%aR,i64%a4
%a6=bitcast i8*%a5 to i32*
store i32%C,i32*%a6,align 4
%a7=load i8*,i8**%f,align 8
%a8=tail call fastcc i8*@_SMLL4loop_243(i8*inreg%a7,i8*inreg%aR)
ret i8*%a8
}
define internal fastcc i8*@_SMLLN12Slice__common5foldlE_245(i8*inreg%a,i8*inreg%b)#3 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%b,i8**%c,align 8
%f=getelementptr inbounds i8,i8*%a,i64 8
%g=bitcast i8*%f to i32*
%h=load i32,i32*%g,align 4
%i=shl i32%h,1
%j=or i32%i,1
%k=bitcast i8*%a to i8**
%l=load i8*,i8**%k,align 8
store i8*%l,i8**%d,align 8
%m=getelementptr inbounds i8,i8*%a,i64 12
%n=bitcast i8*%m to i32*
%o=load i32,i32*%n,align 4
%p=call i8*@sml_alloc(i32 inreg 28)#0
%q=getelementptr inbounds i8,i8*%p,i64 -4
%r=bitcast i8*%q to i32*
store i32 1342177304,i32*%r,align 4
store i8*%p,i8**%e,align 8
%s=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%t=bitcast i8*%p to i8**
store i8*%s,i8**%t,align 8
%u=icmp eq i32%h,0
%v=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%w=getelementptr inbounds i8,i8*%p,i64 8
br i1%u,label%z,label%x
x:
%y=bitcast i8*%w to i8**
store i8*%v,i8**%y,align 8
br label%A
z:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%w,i8*%v,i32%o,i1 false)
br label%A
A:
%B=getelementptr inbounds i8,i8*%p,i64 16
%C=bitcast i8*%B to i32*
store i32%h,i32*%C,align 4
%D=getelementptr inbounds i8,i8*%p,i64 20
%E=bitcast i8*%D to i32*
store i32%o,i32*%E,align 4
%F=getelementptr inbounds i8,i8*%p,i64 24
%G=bitcast i8*%F to i32*
store i32%j,i32*%G,align 4
%H=call i8*@sml_alloc(i32 inreg 28)#0
%I=getelementptr inbounds i8,i8*%H,i64 -4
%J=bitcast i8*%I to i32*
store i32 1342177304,i32*%J,align 4
%K=load i8*,i8**%e,align 8
%L=bitcast i8*%H to i8**
store i8*%K,i8**%L,align 8
%M=getelementptr inbounds i8,i8*%H,i64 8
%N=bitcast i8*%M to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common5foldlE_244 to void(...)*),void(...)**%N,align 8
%O=getelementptr inbounds i8,i8*%H,i64 16
%P=bitcast i8*%O to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common5foldlE_244 to void(...)*),void(...)**%P,align 8
%Q=getelementptr inbounds i8,i8*%H,i64 24
%R=bitcast i8*%Q to i32*
store i32 1,i32*%R,align 4
ret i8*%H
}
define internal fastcc i8*@_SMLLN12Slice__common5foldlE_246(i8*inreg%a,i8*inreg%b)#3 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%b,i8**%c,align 8
%e=bitcast i8*%a to i32*
%f=load i32,i32*%e,align 4
%g=getelementptr inbounds i8,i8*%a,i64 4
%h=bitcast i8*%g to i32*
%i=load i32,i32*%h,align 4
%j=call i8*@sml_alloc(i32 inreg 20)#0
%k=getelementptr inbounds i8,i8*%j,i64 -4
%l=bitcast i8*%k to i32*
store i32 1342177296,i32*%l,align 4
store i8*%j,i8**%d,align 8
%m=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%n=bitcast i8*%j to i8**
store i8*%m,i8**%n,align 8
%o=getelementptr inbounds i8,i8*%j,i64 8
%p=bitcast i8*%o to i32*
store i32%f,i32*%p,align 4
%q=getelementptr inbounds i8,i8*%j,i64 12
%r=bitcast i8*%q to i32*
store i32%i,i32*%r,align 4
%s=getelementptr inbounds i8,i8*%j,i64 16
%t=bitcast i8*%s to i32*
store i32 1,i32*%t,align 4
%u=call i8*@sml_alloc(i32 inreg 28)#0
%v=getelementptr inbounds i8,i8*%u,i64 -4
%w=bitcast i8*%v to i32*
store i32 1342177304,i32*%w,align 4
%x=load i8*,i8**%d,align 8
%y=bitcast i8*%u to i8**
store i8*%x,i8**%y,align 8
%z=getelementptr inbounds i8,i8*%u,i64 8
%A=bitcast i8*%z to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common5foldlE_245 to void(...)*),void(...)**%A,align 8
%B=getelementptr inbounds i8,i8*%u,i64 16
%C=bitcast i8*%B to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common5foldlE_245 to void(...)*),void(...)**%C,align 8
%D=getelementptr inbounds i8,i8*%u,i64 24
%E=bitcast i8*%D to i32*
store i32 1,i32*%E,align 4
ret i8*%u
}
define internal fastcc i8*@_SMLL4loop_249(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
h:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%d,align 8
br label%f
f:
%g=phi i8*[%a6,%bi],[%b,%h]
store i8*%g,i8**%c,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**%c,align 8
br label%m
m:
%n=phi i8*[%l,%k],[%g,%f]
%o=load i8*,i8**%d,align 8
%p=getelementptr inbounds i8,i8*%o,i64 24
%q=bitcast i8*%p to i32*
%r=load i32,i32*%q,align 4
%s=add i32%r,3
%t=sub i32 0,%r
%u=and i32%s,%t
%v=add i32%r,4
%w=and i32%v,%t
%x=add i32%r,7
%y=add i32%x,%w
%z=and i32%y,-8
%A=lshr i32%w,3
%B=getelementptr inbounds i8,i8*%o,i64 20
%C=bitcast i8*%B to i32*
%D=load i32,i32*%C,align 4
%E=shl i32%D,%A
%F=or i32%z,4
%G=add i32%x,%u
%H=and i32%G,-8
%I=lshr i32%u,3
%J=shl i32%D,%I
%K=or i32%H,4
%L=bitcast i8*%n to i32*
%M=load i32,i32*%L,align 4
%N=icmp eq i32%D,0
br i1%N,label%T,label%O
O:
store i8*null,i8**%c,align 8
%P=sext i32%u to i64
%Q=getelementptr inbounds i8,i8*%n,i64%P
%R=bitcast i8*%Q to i8**
%S=load i8*,i8**%R,align 8
br label%ab
T:
%U=call i8*@sml_alloc(i32 inreg%r)#0
%V=getelementptr inbounds i8,i8*%U,i64 -4
%W=bitcast i8*%V to i32*
store i32%r,i32*%W,align 4
%X=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%Y=sext i32%u to i64
%Z=getelementptr inbounds i8,i8*%X,i64%Y
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%U,i8*%Z,i32%r,i1 false)
%aa=load i8*,i8**%d,align 8
br label%ab
ab:
%ac=phi i8*[%aa,%T],[%o,%O]
%ad=phi i8*[%U,%T],[%S,%O]
store i8*%ad,i8**%c,align 8
%ae=getelementptr inbounds i8,i8*%ac,i64 16
%af=bitcast i8*%ae to i32*
%ag=load i32,i32*%af,align 4
%ah=icmp slt i32%M,%ag
br i1%ah,label%ai,label%aj
ai:
ret i8*%ad
aj:
%ak=getelementptr inbounds i8,i8*%ac,i64 8
%al=bitcast i8*%ak to i8***
%am=load i8**,i8***%al,align 8
%an=load i8*,i8**%am,align 8
%ao=sext i32%M to i64
%ap=getelementptr inbounds i8,i8*%an,i64%ao
%aq=load i8,i8*%ap,align 1
%ar=add nsw i32%M,-1
%as=bitcast i8*%ac to i8**
%at=load i8*,i8**%as,align 8
%au=getelementptr inbounds i8,i8*%at,i64 16
%av=bitcast i8*%au to i8*(i8*,i8*)**
%aw=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%av,align 8
%ax=bitcast i8*%at to i8**
%ay=load i8*,i8**%ax,align 8
store i8*%ay,i8**%e,align 8
%az=sub nsw i32%M,%ag
%aA=getelementptr inbounds i8,i8*%ac,i64 24
%aB=bitcast i8*%aA to i32*
%aC=load i32,i32*%aB,align 4
%aD=getelementptr inbounds i8,i8*%ac,i64 20
%aE=bitcast i8*%aD to i32*
%aF=load i32,i32*%aE,align 4
%aG=call i8*@sml_alloc(i32 inreg%F)#0
%aH=or i32%z,1342177280
%aI=bitcast i8*%aG to i32*
%aJ=getelementptr inbounds i8,i8*%aG,i64 -4
%aK=bitcast i8*%aJ to i32*
store i32%aH,i32*%aK,align 4
call void@llvm.memset.p0i8.i32(i8*%aG,i8 0,i32%F,i1 false)
store i32%az,i32*%aI,align 4
%aL=getelementptr inbounds i8,i8*%aG,i64 4
store i8%aq,i8*%aL,align 1
%aM=icmp eq i32%aF,0
%aN=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aO=sext i32%w to i64
%aP=getelementptr inbounds i8,i8*%aG,i64%aO
br i1%aM,label%aS,label%aQ
aQ:
%aR=bitcast i8*%aP to i8**
store i8*%aN,i8**%aR,align 8
br label%aT
aS:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%aP,i8*%aN,i32%aC,i1 false)
br label%aT
aT:
%aU=sext i32%z to i64
%aV=getelementptr inbounds i8,i8*%aG,i64%aU
%aW=bitcast i8*%aV to i32*
store i32%E,i32*%aW,align 4
%aX=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%aY=call fastcc i8*%aw(i8*inreg%aX,i8*inreg%aG)
store i8*%aY,i8**%c,align 8
%aZ=load i8*,i8**%d,align 8
%a0=getelementptr inbounds i8,i8*%aZ,i64 24
%a1=bitcast i8*%a0 to i32*
%a2=load i32,i32*%a1,align 4
%a3=getelementptr inbounds i8,i8*%aZ,i64 20
%a4=bitcast i8*%a3 to i32*
%a5=load i32,i32*%a4,align 4
%a6=call i8*@sml_alloc(i32 inreg%K)#0
%a7=or i32%H,1342177280
%a8=bitcast i8*%a6 to i32*
%a9=getelementptr inbounds i8,i8*%a6,i64 -4
%ba=bitcast i8*%a9 to i32*
store i32%a7,i32*%ba,align 4
call void@llvm.memset.p0i8.i32(i8*%a6,i8 0,i32%K,i1 false)
store i32%ar,i32*%a8,align 4
%bb=icmp eq i32%a5,0
%bc=load i8*,i8**%c,align 8
%bd=sext i32%u to i64
%be=getelementptr inbounds i8,i8*%a6,i64%bd
br i1%bb,label%bh,label%bf
bf:
%bg=bitcast i8*%be to i8**
store i8*%bc,i8**%bg,align 8
br label%bi
bh:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%be,i8*%bc,i32%a2,i1 false)
br label%bi
bi:
%bj=sext i32%H to i64
%bk=getelementptr inbounds i8,i8*%a6,i64%bj
%bl=bitcast i8*%bk to i32*
store i32%J,i32*%bl,align 4
br label%f
}
define internal fastcc i8*@_SMLLN12Slice__common6foldriE_250(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
n:
%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**%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**%d,align 8
store i8*%b,i8**%c,align 8
%g=load atomic i32,i32*@sml_check_flag unordered,align 4
%h=icmp eq i32%g,0
br i1%h,label%l,label%i
i:
call void@sml_check(i32 inreg%g)
%j=load i8*,i8**%c,align 8
%k=load i8*,i8**%d,align 8
br label%l
l:
%m=phi i8*[%k,%i],[%a,%n]
%o=phi i8*[%j,%i],[%b,%n]
%p=getelementptr inbounds i8,i8*%m,i64 20
%q=bitcast i8*%p to i32*
%r=load i32,i32*%q,align 4
%s=add i32%r,3
%t=sub i32 0,%r
%u=and i32%s,%t
%v=add i32%r,7
%w=add i32%v,%u
%x=and i32%w,-8
%y=lshr i32%u,3
%z=getelementptr inbounds i8,i8*%m,i64 16
%A=bitcast i8*%z to i32*
%B=load i32,i32*%A,align 4
%C=shl i32%B,%y
%D=or i32%x,4
%E=getelementptr inbounds i8,i8*%o,i64 8
%F=bitcast i8*%E to i32*
%G=load i32,i32*%F,align 4
%H=getelementptr inbounds i8,i8*%o,i64 12
%I=bitcast i8*%H to i32*
%J=load i32,i32*%I,align 4
%K=bitcast i8*%m to i8**
%L=load i8*,i8**%K,align 8
store i8*%L,i8**%e,align 8
%M=call i8*@sml_alloc(i32 inreg 36)#0
%N=getelementptr inbounds i8,i8*%M,i64 -4
%O=bitcast i8*%N to i32*
store i32 1342177312,i32*%O,align 4
store i8*%M,i8**%f,align 8
%P=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%Q=bitcast i8*%M to i8**
store i8*%P,i8**%Q,align 8
%R=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%S=getelementptr inbounds i8,i8*%M,i64 8
%T=bitcast i8*%S to i8**
store i8*%R,i8**%T,align 8
%U=getelementptr inbounds i8,i8*%M,i64 16
%V=bitcast i8*%U to i32*
store i32%G,i32*%V,align 4
%W=getelementptr inbounds i8,i8*%M,i64 20
%X=bitcast i8*%W to i32*
store i32%B,i32*%X,align 4
%Y=getelementptr inbounds i8,i8*%M,i64 24
%Z=bitcast i8*%Y to i32*
store i32%r,i32*%Z,align 4
%aa=getelementptr inbounds i8,i8*%M,i64 32
%ab=bitcast i8*%aa to i32*
store i32 3,i32*%ab,align 4
%ac=call i8*@sml_alloc(i32 inreg 28)#0
%ad=getelementptr inbounds i8,i8*%ac,i64 -4
%ae=bitcast i8*%ad to i32*
store i32 1342177304,i32*%ae,align 4
%af=load i8*,i8**%f,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 void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL4loop_249 to void(...)*),void(...)**%ai,align 8
%aj=getelementptr inbounds i8,i8*%ac,i64 16
%ak=bitcast i8*%aj to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL4loop_249 to void(...)*),void(...)**%ak,align 8
%al=getelementptr inbounds i8,i8*%ac,i64 24
%am=bitcast i8*%al to i32*
store i32 1,i32*%am,align 4
%an=add i32%G,-1
%ao=add i32%an,%J
%ap=load i8*,i8**%d,align 8
%aq=getelementptr inbounds i8,i8*%ap,i64 16
%ar=bitcast i8*%aq to i32*
%as=load i32,i32*%ar,align 4
%at=icmp eq i32%as,0
br i1%at,label%ay,label%au
au:
%av=getelementptr inbounds i8,i8*%ap,i64 8
%aw=bitcast i8*%av to i8**
%ax=load i8*,i8**%aw,align 8
br label%aK
ay:
%az=getelementptr inbounds i8,i8*%ap,i64 20
%aA=bitcast i8*%az to i32*
%aB=load i32,i32*%aA,align 4
%aC=call i8*@sml_alloc(i32 inreg%aB)#0
%aD=getelementptr inbounds i8,i8*%aC,i64 -4
%aE=bitcast i8*%aD to i32*
store i32%aB,i32*%aE,align 4
%aF=load i8*,i8**%d,align 8
%aG=getelementptr inbounds i8,i8*%aF,i64 8
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%aC,i8*%aG,i32%aB,i1 false)
%aH=getelementptr inbounds i8,i8*%aF,i64 16
%aI=bitcast i8*%aH to i32*
%aJ=load i32,i32*%aI,align 4
br label%aK
aK:
%aL=phi i32[%aJ,%ay],[%as,%au]
%aM=phi i8*[%aF,%ay],[%ap,%au]
%aN=phi i8*[%aC,%ay],[%ax,%au]
store i8*%aN,i8**%c,align 8
%aO=getelementptr inbounds i8,i8*%aM,i64 20
%aP=bitcast i8*%aO to i32*
%aQ=load i32,i32*%aP,align 4
store i8*null,i8**%d,align 8
%aR=call i8*@sml_alloc(i32 inreg%D)#0
%aS=or i32%x,1342177280
%aT=bitcast i8*%aR to i32*
%aU=getelementptr inbounds i8,i8*%aR,i64 -4
%aV=bitcast i8*%aU to i32*
store i32%aS,i32*%aV,align 4
call void@llvm.memset.p0i8.i32(i8*%aR,i8 0,i32%D,i1 false)
store i32%ao,i32*%aT,align 4
%aW=icmp eq i32%aL,0
%aX=load i8*,i8**%c,align 8
%aY=sext i32%u to i64
%aZ=getelementptr inbounds i8,i8*%aR,i64%aY
br i1%aW,label%a2,label%a0
a0:
%a1=bitcast i8*%aZ to i8**
store i8*%aX,i8**%a1,align 8
br label%a3
a2:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%aZ,i8*%aX,i32%aQ,i1 false)
br label%a3
a3:
%a4=sext i32%x to i64
%a5=getelementptr inbounds i8,i8*%aR,i64%a4
%a6=bitcast i8*%a5 to i32*
store i32%C,i32*%a6,align 4
%a7=load i8*,i8**%f,align 8
%a8=tail call fastcc i8*@_SMLL4loop_249(i8*inreg%a7,i8*inreg%aR)
ret i8*%a8
}
define internal fastcc i8*@_SMLLN12Slice__common6foldriE_251(i8*inreg%a,i8*inreg%b)#3 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%b,i8**%c,align 8
%f=getelementptr inbounds i8,i8*%a,i64 8
%g=bitcast i8*%f to i32*
%h=load i32,i32*%g,align 4
%i=shl i32%h,1
%j=or i32%i,1
%k=bitcast i8*%a to i8**
%l=load i8*,i8**%k,align 8
store i8*%l,i8**%d,align 8
%m=getelementptr inbounds i8,i8*%a,i64 12
%n=bitcast i8*%m to i32*
%o=load i32,i32*%n,align 4
%p=call i8*@sml_alloc(i32 inreg 28)#0
%q=getelementptr inbounds i8,i8*%p,i64 -4
%r=bitcast i8*%q to i32*
store i32 1342177304,i32*%r,align 4
store i8*%p,i8**%e,align 8
%s=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%t=bitcast i8*%p to i8**
store i8*%s,i8**%t,align 8
%u=icmp eq i32%h,0
%v=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%w=getelementptr inbounds i8,i8*%p,i64 8
br i1%u,label%z,label%x
x:
%y=bitcast i8*%w to i8**
store i8*%v,i8**%y,align 8
br label%A
z:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%w,i8*%v,i32%o,i1 false)
br label%A
A:
%B=getelementptr inbounds i8,i8*%p,i64 16
%C=bitcast i8*%B to i32*
store i32%h,i32*%C,align 4
%D=getelementptr inbounds i8,i8*%p,i64 20
%E=bitcast i8*%D to i32*
store i32%o,i32*%E,align 4
%F=getelementptr inbounds i8,i8*%p,i64 24
%G=bitcast i8*%F to i32*
store i32%j,i32*%G,align 4
%H=call i8*@sml_alloc(i32 inreg 28)#0
%I=getelementptr inbounds i8,i8*%H,i64 -4
%J=bitcast i8*%I to i32*
store i32 1342177304,i32*%J,align 4
%K=load i8*,i8**%e,align 8
%L=bitcast i8*%H to i8**
store i8*%K,i8**%L,align 8
%M=getelementptr inbounds i8,i8*%H,i64 8
%N=bitcast i8*%M to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common6foldriE_250 to void(...)*),void(...)**%N,align 8
%O=getelementptr inbounds i8,i8*%H,i64 16
%P=bitcast i8*%O to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common6foldriE_250 to void(...)*),void(...)**%P,align 8
%Q=getelementptr inbounds i8,i8*%H,i64 24
%R=bitcast i8*%Q to i32*
store i32 1,i32*%R,align 4
ret i8*%H
}
define internal fastcc i8*@_SMLLN12Slice__common6foldriE_252(i8*inreg%a,i8*inreg%b)#3 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%b,i8**%c,align 8
%e=bitcast i8*%a to i32*
%f=load i32,i32*%e,align 4
%g=getelementptr inbounds i8,i8*%a,i64 4
%h=bitcast i8*%g to i32*
%i=load i32,i32*%h,align 4
%j=call i8*@sml_alloc(i32 inreg 20)#0
%k=getelementptr inbounds i8,i8*%j,i64 -4
%l=bitcast i8*%k to i32*
store i32 1342177296,i32*%l,align 4
store i8*%j,i8**%d,align 8
%m=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%n=bitcast i8*%j to i8**
store i8*%m,i8**%n,align 8
%o=getelementptr inbounds i8,i8*%j,i64 8
%p=bitcast i8*%o to i32*
store i32%f,i32*%p,align 4
%q=getelementptr inbounds i8,i8*%j,i64 12
%r=bitcast i8*%q to i32*
store i32%i,i32*%r,align 4
%s=getelementptr inbounds i8,i8*%j,i64 16
%t=bitcast i8*%s to i32*
store i32 1,i32*%t,align 4
%u=call i8*@sml_alloc(i32 inreg 28)#0
%v=getelementptr inbounds i8,i8*%u,i64 -4
%w=bitcast i8*%v to i32*
store i32 1342177304,i32*%w,align 4
%x=load i8*,i8**%d,align 8
%y=bitcast i8*%u to i8**
store i8*%x,i8**%y,align 8
%z=getelementptr inbounds i8,i8*%u,i64 8
%A=bitcast i8*%z to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common6foldriE_251 to void(...)*),void(...)**%A,align 8
%B=getelementptr inbounds i8,i8*%u,i64 16
%C=bitcast i8*%B to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common6foldriE_251 to void(...)*),void(...)**%C,align 8
%D=getelementptr inbounds i8,i8*%u,i64 24
%E=bitcast i8*%D to i32*
store i32 1,i32*%E,align 4
ret i8*%u
}
define internal fastcc i8*@_SMLL4loop_255(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
h:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%d,align 8
br label%f
f:
%g=phi i8*[%a2,%be],[%b,%h]
store i8*%g,i8**%c,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**%c,align 8
br label%m
m:
%n=phi i8*[%l,%k],[%g,%f]
%o=load i8*,i8**%d,align 8
%p=getelementptr inbounds i8,i8*%o,i64 24
%q=bitcast i8*%p to i32*
%r=load i32,i32*%q,align 4
%s=add i32%r,3
%t=sub i32 0,%r
%u=and i32%s,%t
%v=and i32%r,%t
%w=add i32%r,7
%x=add i32%w,%v
%y=and i32%x,-8
%z=lshr i32%v,3
%A=getelementptr inbounds i8,i8*%o,i64 20
%B=bitcast i8*%A to i32*
%C=load i32,i32*%B,align 4
%D=shl i32%C,%z
%E=or i32%y,4
%F=add i32%w,%u
%G=and i32%F,-8
%H=lshr i32%u,3
%I=shl i32%C,%H
%J=or i32%G,4
%K=bitcast i8*%n to i32*
%L=load i32,i32*%K,align 4
%M=icmp eq i32%C,0
br i1%M,label%S,label%N
N:
store i8*null,i8**%c,align 8
%O=sext i32%u to i64
%P=getelementptr inbounds i8,i8*%n,i64%O
%Q=bitcast i8*%P to i8**
%R=load i8*,i8**%Q,align 8
br label%aa
S:
%T=call i8*@sml_alloc(i32 inreg%r)#0
%U=getelementptr inbounds i8,i8*%T,i64 -4
%V=bitcast i8*%U to i32*
store i32%r,i32*%V,align 4
%W=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%X=sext i32%u to i64
%Y=getelementptr inbounds i8,i8*%W,i64%X
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%T,i8*%Y,i32%r,i1 false)
%Z=load i8*,i8**%d,align 8
br label%aa
aa:
%ab=phi i8*[%Z,%S],[%o,%N]
%ac=phi i8*[%T,%S],[%R,%N]
store i8*%ac,i8**%c,align 8
%ad=getelementptr inbounds i8,i8*%ab,i64 16
%ae=bitcast i8*%ad to i32*
%af=load i32,i32*%ae,align 4
%ag=icmp slt i32%L,%af
br i1%ag,label%ah,label%ai
ah:
ret i8*%ac
ai:
%aj=getelementptr inbounds i8,i8*%ab,i64 8
%ak=bitcast i8*%aj to i8***
%al=load i8**,i8***%ak,align 8
%am=load i8*,i8**%al,align 8
%an=sext i32%L to i64
%ao=getelementptr inbounds i8,i8*%am,i64%an
%ap=load i8,i8*%ao,align 1
%aq=add nsw i32%L,-1
%ar=bitcast i8*%ab to i8**
%as=load i8*,i8**%ar,align 8
%at=getelementptr inbounds i8,i8*%as,i64 16
%au=bitcast i8*%at to i8*(i8*,i8*)**
%av=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%au,align 8
%aw=bitcast i8*%as to i8**
%ax=load i8*,i8**%aw,align 8
store i8*%ax,i8**%e,align 8
%ay=getelementptr inbounds i8,i8*%ab,i64 24
%az=bitcast i8*%ay to i32*
%aA=load i32,i32*%az,align 4
%aB=getelementptr inbounds i8,i8*%ab,i64 20
%aC=bitcast i8*%aB to i32*
%aD=load i32,i32*%aC,align 4
%aE=call i8*@sml_alloc(i32 inreg%E)#0
%aF=or i32%y,1342177280
%aG=getelementptr inbounds i8,i8*%aE,i64 -4
%aH=bitcast i8*%aG to i32*
store i32%aF,i32*%aH,align 4
call void@llvm.memset.p0i8.i32(i8*%aE,i8 0,i32%E,i1 false)
store i8%ap,i8*%aE,align 1
%aI=icmp eq i32%aD,0
%aJ=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aK=sext i32%v to i64
%aL=getelementptr inbounds i8,i8*%aE,i64%aK
br i1%aI,label%aO,label%aM
aM:
%aN=bitcast i8*%aL to i8**
store i8*%aJ,i8**%aN,align 8
br label%aP
aO:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%aL,i8*%aJ,i32%aA,i1 false)
br label%aP
aP:
%aQ=sext i32%y to i64
%aR=getelementptr inbounds i8,i8*%aE,i64%aQ
%aS=bitcast i8*%aR to i32*
store i32%D,i32*%aS,align 4
%aT=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%aU=call fastcc i8*%av(i8*inreg%aT,i8*inreg%aE)
store i8*%aU,i8**%c,align 8
%aV=load i8*,i8**%d,align 8
%aW=getelementptr inbounds i8,i8*%aV,i64 24
%aX=bitcast i8*%aW to i32*
%aY=load i32,i32*%aX,align 4
%aZ=getelementptr inbounds i8,i8*%aV,i64 20
%a0=bitcast i8*%aZ to i32*
%a1=load i32,i32*%a0,align 4
%a2=call i8*@sml_alloc(i32 inreg%J)#0
%a3=or i32%G,1342177280
%a4=bitcast i8*%a2 to i32*
%a5=getelementptr inbounds i8,i8*%a2,i64 -4
%a6=bitcast i8*%a5 to i32*
store i32%a3,i32*%a6,align 4
call void@llvm.memset.p0i8.i32(i8*%a2,i8 0,i32%J,i1 false)
store i32%aq,i32*%a4,align 4
%a7=icmp eq i32%a1,0
%a8=load i8*,i8**%c,align 8
%a9=sext i32%u to i64
%ba=getelementptr inbounds i8,i8*%a2,i64%a9
br i1%a7,label%bd,label%bb
bb:
%bc=bitcast i8*%ba to i8**
store i8*%a8,i8**%bc,align 8
br label%be
bd:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%ba,i8*%a8,i32%aY,i1 false)
br label%be
be:
%bf=sext i32%G to i64
%bg=getelementptr inbounds i8,i8*%a2,i64%bf
%bh=bitcast i8*%bg to i32*
store i32%I,i32*%bh,align 4
br label%f
}
define internal fastcc i8*@_SMLLN12Slice__common5foldrE_256(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
n:
%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**%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**%d,align 8
store i8*%b,i8**%c,align 8
%g=load atomic i32,i32*@sml_check_flag unordered,align 4
%h=icmp eq i32%g,0
br i1%h,label%l,label%i
i:
call void@sml_check(i32 inreg%g)
%j=load i8*,i8**%c,align 8
%k=load i8*,i8**%d,align 8
br label%l
l:
%m=phi i8*[%k,%i],[%a,%n]
%o=phi i8*[%j,%i],[%b,%n]
%p=getelementptr inbounds i8,i8*%m,i64 20
%q=bitcast i8*%p to i32*
%r=load i32,i32*%q,align 4
%s=add i32%r,3
%t=sub i32 0,%r
%u=and i32%s,%t
%v=add i32%r,7
%w=add i32%v,%u
%x=and i32%w,-8
%y=lshr i32%u,3
%z=getelementptr inbounds i8,i8*%m,i64 16
%A=bitcast i8*%z to i32*
%B=load i32,i32*%A,align 4
%C=shl i32%B,%y
%D=or i32%x,4
%E=getelementptr inbounds i8,i8*%o,i64 8
%F=bitcast i8*%E to i32*
%G=load i32,i32*%F,align 4
%H=getelementptr inbounds i8,i8*%o,i64 12
%I=bitcast i8*%H to i32*
%J=load i32,i32*%I,align 4
%K=bitcast i8*%m to i8**
%L=load i8*,i8**%K,align 8
store i8*%L,i8**%e,align 8
%M=call i8*@sml_alloc(i32 inreg 36)#0
%N=getelementptr inbounds i8,i8*%M,i64 -4
%O=bitcast i8*%N to i32*
store i32 1342177312,i32*%O,align 4
store i8*%M,i8**%f,align 8
%P=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%Q=bitcast i8*%M to i8**
store i8*%P,i8**%Q,align 8
%R=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%S=getelementptr inbounds i8,i8*%M,i64 8
%T=bitcast i8*%S to i8**
store i8*%R,i8**%T,align 8
%U=getelementptr inbounds i8,i8*%M,i64 16
%V=bitcast i8*%U to i32*
store i32%G,i32*%V,align 4
%W=getelementptr inbounds i8,i8*%M,i64 20
%X=bitcast i8*%W to i32*
store i32%B,i32*%X,align 4
%Y=getelementptr inbounds i8,i8*%M,i64 24
%Z=bitcast i8*%Y to i32*
store i32%r,i32*%Z,align 4
%aa=getelementptr inbounds i8,i8*%M,i64 32
%ab=bitcast i8*%aa to i32*
store i32 3,i32*%ab,align 4
%ac=call i8*@sml_alloc(i32 inreg 28)#0
%ad=getelementptr inbounds i8,i8*%ac,i64 -4
%ae=bitcast i8*%ad to i32*
store i32 1342177304,i32*%ae,align 4
%af=load i8*,i8**%f,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 void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL4loop_255 to void(...)*),void(...)**%ai,align 8
%aj=getelementptr inbounds i8,i8*%ac,i64 16
%ak=bitcast i8*%aj to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL4loop_255 to void(...)*),void(...)**%ak,align 8
%al=getelementptr inbounds i8,i8*%ac,i64 24
%am=bitcast i8*%al to i32*
store i32 1,i32*%am,align 4
%an=add i32%G,-1
%ao=add i32%an,%J
%ap=load i8*,i8**%d,align 8
%aq=getelementptr inbounds i8,i8*%ap,i64 16
%ar=bitcast i8*%aq to i32*
%as=load i32,i32*%ar,align 4
%at=icmp eq i32%as,0
br i1%at,label%ay,label%au
au:
%av=getelementptr inbounds i8,i8*%ap,i64 8
%aw=bitcast i8*%av to i8**
%ax=load i8*,i8**%aw,align 8
br label%aK
ay:
%az=getelementptr inbounds i8,i8*%ap,i64 20
%aA=bitcast i8*%az to i32*
%aB=load i32,i32*%aA,align 4
%aC=call i8*@sml_alloc(i32 inreg%aB)#0
%aD=getelementptr inbounds i8,i8*%aC,i64 -4
%aE=bitcast i8*%aD to i32*
store i32%aB,i32*%aE,align 4
%aF=load i8*,i8**%d,align 8
%aG=getelementptr inbounds i8,i8*%aF,i64 8
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%aC,i8*%aG,i32%aB,i1 false)
%aH=getelementptr inbounds i8,i8*%aF,i64 16
%aI=bitcast i8*%aH to i32*
%aJ=load i32,i32*%aI,align 4
br label%aK
aK:
%aL=phi i32[%aJ,%ay],[%as,%au]
%aM=phi i8*[%aF,%ay],[%ap,%au]
%aN=phi i8*[%aC,%ay],[%ax,%au]
store i8*%aN,i8**%c,align 8
%aO=getelementptr inbounds i8,i8*%aM,i64 20
%aP=bitcast i8*%aO to i32*
%aQ=load i32,i32*%aP,align 4
store i8*null,i8**%d,align 8
%aR=call i8*@sml_alloc(i32 inreg%D)#0
%aS=or i32%x,1342177280
%aT=bitcast i8*%aR to i32*
%aU=getelementptr inbounds i8,i8*%aR,i64 -4
%aV=bitcast i8*%aU to i32*
store i32%aS,i32*%aV,align 4
call void@llvm.memset.p0i8.i32(i8*%aR,i8 0,i32%D,i1 false)
store i32%ao,i32*%aT,align 4
%aW=icmp eq i32%aL,0
%aX=load i8*,i8**%c,align 8
%aY=sext i32%u to i64
%aZ=getelementptr inbounds i8,i8*%aR,i64%aY
br i1%aW,label%a2,label%a0
a0:
%a1=bitcast i8*%aZ to i8**
store i8*%aX,i8**%a1,align 8
br label%a3
a2:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%aZ,i8*%aX,i32%aQ,i1 false)
br label%a3
a3:
%a4=sext i32%x to i64
%a5=getelementptr inbounds i8,i8*%aR,i64%a4
%a6=bitcast i8*%a5 to i32*
store i32%C,i32*%a6,align 4
%a7=load i8*,i8**%f,align 8
%a8=tail call fastcc i8*@_SMLL4loop_255(i8*inreg%a7,i8*inreg%aR)
ret i8*%a8
}
define internal fastcc i8*@_SMLLN12Slice__common5foldrE_257(i8*inreg%a,i8*inreg%b)#3 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%b,i8**%c,align 8
%f=getelementptr inbounds i8,i8*%a,i64 8
%g=bitcast i8*%f to i32*
%h=load i32,i32*%g,align 4
%i=shl i32%h,1
%j=or i32%i,1
%k=bitcast i8*%a to i8**
%l=load i8*,i8**%k,align 8
store i8*%l,i8**%d,align 8
%m=getelementptr inbounds i8,i8*%a,i64 12
%n=bitcast i8*%m to i32*
%o=load i32,i32*%n,align 4
%p=call i8*@sml_alloc(i32 inreg 28)#0
%q=getelementptr inbounds i8,i8*%p,i64 -4
%r=bitcast i8*%q to i32*
store i32 1342177304,i32*%r,align 4
store i8*%p,i8**%e,align 8
%s=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%t=bitcast i8*%p to i8**
store i8*%s,i8**%t,align 8
%u=icmp eq i32%h,0
%v=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%w=getelementptr inbounds i8,i8*%p,i64 8
br i1%u,label%z,label%x
x:
%y=bitcast i8*%w to i8**
store i8*%v,i8**%y,align 8
br label%A
z:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%w,i8*%v,i32%o,i1 false)
br label%A
A:
%B=getelementptr inbounds i8,i8*%p,i64 16
%C=bitcast i8*%B to i32*
store i32%h,i32*%C,align 4
%D=getelementptr inbounds i8,i8*%p,i64 20
%E=bitcast i8*%D to i32*
store i32%o,i32*%E,align 4
%F=getelementptr inbounds i8,i8*%p,i64 24
%G=bitcast i8*%F to i32*
store i32%j,i32*%G,align 4
%H=call i8*@sml_alloc(i32 inreg 28)#0
%I=getelementptr inbounds i8,i8*%H,i64 -4
%J=bitcast i8*%I to i32*
store i32 1342177304,i32*%J,align 4
%K=load i8*,i8**%e,align 8
%L=bitcast i8*%H to i8**
store i8*%K,i8**%L,align 8
%M=getelementptr inbounds i8,i8*%H,i64 8
%N=bitcast i8*%M to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common5foldrE_256 to void(...)*),void(...)**%N,align 8
%O=getelementptr inbounds i8,i8*%H,i64 16
%P=bitcast i8*%O to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common5foldrE_256 to void(...)*),void(...)**%P,align 8
%Q=getelementptr inbounds i8,i8*%H,i64 24
%R=bitcast i8*%Q to i32*
store i32 1,i32*%R,align 4
ret i8*%H
}
define internal fastcc i8*@_SMLLN12Slice__common5foldrE_258(i8*inreg%a,i8*inreg%b)#3 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%b,i8**%c,align 8
%e=bitcast i8*%a to i32*
%f=load i32,i32*%e,align 4
%g=getelementptr inbounds i8,i8*%a,i64 4
%h=bitcast i8*%g to i32*
%i=load i32,i32*%h,align 4
%j=call i8*@sml_alloc(i32 inreg 20)#0
%k=getelementptr inbounds i8,i8*%j,i64 -4
%l=bitcast i8*%k to i32*
store i32 1342177296,i32*%l,align 4
store i8*%j,i8**%d,align 8
%m=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%n=bitcast i8*%j to i8**
store i8*%m,i8**%n,align 8
%o=getelementptr inbounds i8,i8*%j,i64 8
%p=bitcast i8*%o to i32*
store i32%f,i32*%p,align 4
%q=getelementptr inbounds i8,i8*%j,i64 12
%r=bitcast i8*%q to i32*
store i32%i,i32*%r,align 4
%s=getelementptr inbounds i8,i8*%j,i64 16
%t=bitcast i8*%s to i32*
store i32 1,i32*%t,align 4
%u=call i8*@sml_alloc(i32 inreg 28)#0
%v=getelementptr inbounds i8,i8*%u,i64 -4
%w=bitcast i8*%v to i32*
store i32 1342177304,i32*%w,align 4
%x=load i8*,i8**%d,align 8
%y=bitcast i8*%u to i8**
store i8*%x,i8**%y,align 8
%z=getelementptr inbounds i8,i8*%u,i64 8
%A=bitcast i8*%z to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common5foldrE_257 to void(...)*),void(...)**%A,align 8
%B=getelementptr inbounds i8,i8*%u,i64 16
%C=bitcast i8*%B to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common5foldrE_257 to void(...)*),void(...)**%C,align 8
%D=getelementptr inbounds i8,i8*%u,i64 24
%E=bitcast i8*%D to i32*
store i32 1,i32*%E,align 4
ret i8*%u
}
define internal fastcc void@_SMLL4loop_261(i8*inreg%a,i32 inreg%b)#4 gc"smlsharp"{
g:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%c,align 8
br label%e
e:
%f=phi i32[%b,%g],[%V,%v]
%h=load atomic i32,i32*@sml_check_flag unordered,align 4
%i=icmp eq i32%h,0
br i1%i,label%k,label%j
j:
call void@sml_check(i32 inreg%h)
br label%k
k:
%l=load i8*,i8**%c,align 8
%m=getelementptr inbounds i8,i8*%l,i64 16
%n=bitcast i8*%m to i32*
%o=load i32,i32*%n,align 4
%p=getelementptr inbounds i8,i8*%l,i64 20
%q=bitcast i8*%p to i32*
%r=load i32,i32*%q,align 4
%s=add nsw i32%r,%o
%t=icmp slt i32%f,%s
br i1%t,label%v,label%u
u:
ret void
v:
%w=getelementptr inbounds i8,i8*%l,i64 8
%x=bitcast i8*%w to i8***
%y=load i8**,i8***%x,align 8
%z=load i8*,i8**%y,align 8
%A=sext i32%f to i64
%B=getelementptr inbounds i8,i8*%z,i64%A
%C=load i8,i8*%B,align 1
%D=bitcast i8*%l to i8**
%E=load i8*,i8**%D,align 8
%F=getelementptr inbounds i8,i8*%E,i64 16
%G=bitcast i8*%F to i8*(i8*,i8*)**
%H=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%G,align 8
%I=bitcast i8*%E to i8**
%J=load i8*,i8**%I,align 8
store i8*%J,i8**%d,align 8
%K=sub nsw i32%f,%o
%L=call i8*@sml_alloc(i32 inreg 12)#0
%M=bitcast i8*%L to i32*
%N=getelementptr inbounds i8,i8*%L,i64 -4
%O=bitcast i8*%N to i32*
store i32 1342177288,i32*%O,align 4
%P=getelementptr inbounds i8,i8*%L,i64 5
call void@llvm.memset.p0i8.i32(i8*%P,i8 0,i32 3,i1 false)
store i32%K,i32*%M,align 4
%Q=getelementptr inbounds i8,i8*%L,i64 4
store i8%C,i8*%Q,align 1
%R=getelementptr inbounds i8,i8*%L,i64 8
%S=bitcast i8*%R to i32*
store i32 0,i32*%S,align 4
%T=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%U=call fastcc i8*%H(i8*inreg%T,i8*inreg%L)
%V=add nsw i32%f,1
br label%e
}
define internal fastcc void@_SMLLN12Slice__common4appiE_262(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%d,align 8
store i8*%b,i8**%c,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%h,label%j
h:
%i=bitcast i8*%a to i8**
br label%n
j:
call void@sml_check(i32 inreg%f)
%k=load i8*,i8**%c,align 8
%l=bitcast i8**%d to i8***
%m=load i8**,i8***%l,align 8
br label%n
n:
%o=phi i8**[%m,%j],[%i,%h]
%p=phi i8*[%k,%j],[%b,%h]
%q=getelementptr inbounds i8,i8*%p,i64 8
%r=bitcast i8*%q to i32*
%s=load i32,i32*%r,align 4
%t=getelementptr inbounds i8,i8*%p,i64 12
%u=bitcast i8*%t to i32*
%v=load i32,i32*%u,align 4
%w=load i8*,i8**%o,align 8
store i8*%w,i8**%d,align 8
%x=call i8*@sml_alloc(i32 inreg 28)#0
%y=getelementptr inbounds i8,i8*%x,i64 -4
%z=bitcast i8*%y to i32*
store i32 1342177304,i32*%z,align 4
store i8*%x,i8**%e,align 8
%A=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%B=bitcast i8*%x to i8**
store i8*%A,i8**%B,align 8
%C=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%D=getelementptr inbounds i8,i8*%x,i64 8
%E=bitcast i8*%D to i8**
store i8*%C,i8**%E,align 8
%F=getelementptr inbounds i8,i8*%x,i64 16
%G=bitcast i8*%F to i32*
store i32%s,i32*%G,align 4
%H=getelementptr inbounds i8,i8*%x,i64 20
%I=bitcast i8*%H to i32*
store i32%v,i32*%I,align 4
%J=getelementptr inbounds i8,i8*%x,i64 24
%K=bitcast i8*%J to i32*
store i32 3,i32*%K,align 4
%L=call i8*@sml_alloc(i32 inreg 28)#0
%M=getelementptr inbounds i8,i8*%L,i64 -4
%N=bitcast i8*%M to i32*
store i32 1342177304,i32*%N,align 4
%O=load i8*,i8**%e,align 8
%P=bitcast i8*%L to i8**
store i8*%O,i8**%P,align 8
%Q=getelementptr inbounds i8,i8*%L,i64 8
%R=bitcast i8*%Q to void(...)**
store void(...)*bitcast(void(i8*,i32)*@_SMLL4loop_261 to void(...)*),void(...)**%R,align 8
%S=getelementptr inbounds i8,i8*%L,i64 16
%T=bitcast i8*%S to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL4loop_354 to void(...)*),void(...)**%T,align 8
%U=getelementptr inbounds i8,i8*%L,i64 24
%V=bitcast i8*%U to i32*
store i32 -2147483647,i32*%V,align 4
tail call fastcc void@_SMLL4loop_261(i8*inreg%O,i32 inreg%s)
ret void
}
define internal fastcc void@_SMLL4loop_265(i8*inreg%a,i32 inreg%b)#4 gc"smlsharp"{
g:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%c,align 8
br label%e
e:
%f=phi i32[%b,%g],[%P,%v]
%h=load atomic i32,i32*@sml_check_flag unordered,align 4
%i=icmp eq i32%h,0
br i1%i,label%k,label%j
j:
call void@sml_check(i32 inreg%h)
br label%k
k:
%l=load i8*,i8**%c,align 8
%m=getelementptr inbounds i8,i8*%l,i64 16
%n=bitcast i8*%m to i32*
%o=load i32,i32*%n,align 4
%p=getelementptr inbounds i8,i8*%l,i64 20
%q=bitcast i8*%p to i32*
%r=load i32,i32*%q,align 4
%s=add nsw i32%r,%o
%t=icmp slt i32%f,%s
br i1%t,label%v,label%u
u:
ret void
v:
%w=getelementptr inbounds i8,i8*%l,i64 8
%x=bitcast i8*%w to i8***
%y=load i8**,i8***%x,align 8
%z=load i8*,i8**%y,align 8
%A=sext i32%f to i64
%B=getelementptr inbounds i8,i8*%z,i64%A
%C=load i8,i8*%B,align 1
%D=bitcast i8*%l to i8**
%E=load i8*,i8**%D,align 8
%F=getelementptr inbounds i8,i8*%E,i64 16
%G=bitcast i8*%F to i8*(i8*,i8*)**
%H=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%G,align 8
%I=bitcast i8*%E to i8**
%J=load i8*,i8**%I,align 8
store i8*%J,i8**%d,align 8
%K=call i8*@sml_alloc(i32 inreg 1)#0
%L=getelementptr inbounds i8,i8*%K,i64 -4
%M=bitcast i8*%L to i32*
store i32 1,i32*%M,align 4
store i8%C,i8*%K,align 1
%N=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%O=call fastcc i8*%H(i8*inreg%N,i8*inreg%K)
%P=add nsw i32%f,1
br label%e
}
define internal fastcc void@_SMLLN12Slice__common3appE_266(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%d,align 8
store i8*%b,i8**%c,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%h,label%j
h:
%i=bitcast i8*%a to i8**
br label%n
j:
call void@sml_check(i32 inreg%f)
%k=load i8*,i8**%c,align 8
%l=bitcast i8**%d to i8***
%m=load i8**,i8***%l,align 8
br label%n
n:
%o=phi i8**[%m,%j],[%i,%h]
%p=phi i8*[%k,%j],[%b,%h]
%q=getelementptr inbounds i8,i8*%p,i64 8
%r=bitcast i8*%q to i32*
%s=load i32,i32*%r,align 4
%t=getelementptr inbounds i8,i8*%p,i64 12
%u=bitcast i8*%t to i32*
%v=load i32,i32*%u,align 4
%w=load i8*,i8**%o,align 8
store i8*%w,i8**%d,align 8
%x=call i8*@sml_alloc(i32 inreg 28)#0
%y=getelementptr inbounds i8,i8*%x,i64 -4
%z=bitcast i8*%y to i32*
store i32 1342177304,i32*%z,align 4
store i8*%x,i8**%e,align 8
%A=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%B=bitcast i8*%x to i8**
store i8*%A,i8**%B,align 8
%C=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%D=getelementptr inbounds i8,i8*%x,i64 8
%E=bitcast i8*%D to i8**
store i8*%C,i8**%E,align 8
%F=getelementptr inbounds i8,i8*%x,i64 16
%G=bitcast i8*%F to i32*
store i32%s,i32*%G,align 4
%H=getelementptr inbounds i8,i8*%x,i64 20
%I=bitcast i8*%H to i32*
store i32%v,i32*%I,align 4
%J=getelementptr inbounds i8,i8*%x,i64 24
%K=bitcast i8*%J to i32*
store i32 3,i32*%K,align 4
%L=call i8*@sml_alloc(i32 inreg 28)#0
%M=getelementptr inbounds i8,i8*%L,i64 -4
%N=bitcast i8*%M to i32*
store i32 1342177304,i32*%N,align 4
%O=load i8*,i8**%e,align 8
%P=bitcast i8*%L to i8**
store i8*%O,i8**%P,align 8
%Q=getelementptr inbounds i8,i8*%L,i64 8
%R=bitcast i8*%Q to void(...)**
store void(...)*bitcast(void(i8*,i32)*@_SMLL4loop_265 to void(...)*),void(...)**%R,align 8
%S=getelementptr inbounds i8,i8*%L,i64 16
%T=bitcast i8*%S to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL4loop_357 to void(...)*),void(...)**%T,align 8
%U=getelementptr inbounds i8,i8*%L,i64 24
%V=bitcast i8*%U to i32*
store i32 -2147483647,i32*%V,align 4
tail call fastcc void@_SMLL4loop_265(i8*inreg%O,i32 inreg%s)
ret void
}
define internal fastcc i8*@_SMLL4loop_269(i8*inreg%a,i32 inreg%b)#4 gc"smlsharp"{
g:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%c,align 8
br label%e
e:
%f=phi i32[%b,%g],[%au,%at]
%h=load atomic i32,i32*@sml_check_flag unordered,align 4
%i=icmp eq i32%h,0
br i1%i,label%k,label%j
j:
call void@sml_check(i32 inreg%h)
br label%k
k:
%l=load i8*,i8**%c,align 8
%m=getelementptr inbounds i8,i8*%l,i64 16
%n=bitcast i8*%m to i32*
%o=load i32,i32*%n,align 4
%p=getelementptr inbounds i8,i8*%l,i64 20
%q=bitcast i8*%p to i32*
%r=load i32,i32*%q,align 4
%s=add nsw i32%r,%o
%t=icmp slt i32%f,%s
br i1%t,label%v,label%u
u:
ret i8*null
v:
%w=getelementptr inbounds i8,i8*%l,i64 8
%x=bitcast i8*%w to i8***
%y=load i8**,i8***%x,align 8
%z=load i8*,i8**%y,align 8
%A=sext i32%f to i64
%B=getelementptr inbounds i8,i8*%z,i64%A
%C=load i8,i8*%B,align 1
%D=bitcast i8*%l to i8**
%E=load i8*,i8**%D,align 8
%F=getelementptr inbounds i8,i8*%E,i64 16
%G=bitcast i8*%F to i8*(i8*,i8*)**
%H=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%G,align 8
%I=bitcast i8*%E to i8**
%J=load i8*,i8**%I,align 8
store i8*%J,i8**%d,align 8
%K=sub nsw i32%f,%o
%L=call i8*@sml_alloc(i32 inreg 12)#0
%M=bitcast i8*%L to i32*
%N=getelementptr inbounds i8,i8*%L,i64 -4
%O=bitcast i8*%N to i32*
store i32 1342177288,i32*%O,align 4
%P=getelementptr inbounds i8,i8*%L,i64 5
call void@llvm.memset.p0i8.i32(i8*%P,i8 0,i32 3,i1 false)
store i32%K,i32*%M,align 4
%Q=getelementptr inbounds i8,i8*%L,i64 4
store i8%C,i8*%Q,align 1
%R=getelementptr inbounds i8,i8*%L,i64 8
%S=bitcast i8*%R to i32*
store i32 0,i32*%S,align 4
%T=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%U=call fastcc i8*%H(i8*inreg%T,i8*inreg%L)
%V=bitcast i8*%U to i32*
%W=load i32,i32*%V,align 4
%X=icmp eq i32%W,0
br i1%X,label%at,label%Y
Y:
%Z=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aa=getelementptr inbounds i8,i8*%Z,i64 16
%ab=bitcast i8*%aa to i32*
%ac=load i32,i32*%ab,align 4
%ad=sub nsw i32%f,%ac
%ae=call i8*@sml_alloc(i32 inreg 12)#0
%af=getelementptr inbounds i8,i8*%ae,i64 -4
%ag=bitcast i8*%af to i32*
store i32 1342177288,i32*%ag,align 4
store i8*%ae,i8**%c,align 8
%ah=getelementptr inbounds i8,i8*%ae,i64 5
call void@llvm.memset.p0i8.i32(i8*%ah,i8 0,i32 3,i1 false)
%ai=bitcast i8*%ae to i32*
store i32%ad,i32*%ai,align 4
%aj=getelementptr inbounds i8,i8*%ae,i64 4
store i8%C,i8*%aj,align 1
%ak=getelementptr inbounds i8,i8*%ae,i64 8
%al=bitcast i8*%ak to i32*
store i32 0,i32*%al,align 4
%am=call i8*@sml_alloc(i32 inreg 12)#0
%an=getelementptr inbounds i8,i8*%am,i64 -4
%ao=bitcast i8*%an to i32*
store i32 1342177288,i32*%ao,align 4
%ap=load i8*,i8**%c,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 i32*
store i32 1,i32*%as,align 4
ret i8*%am
at:
%au=add nsw i32%f,1
br label%e
}
define internal fastcc i8*@_SMLLN12Slice__common5findiE_270(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%d,align 8
store i8*%b,i8**%c,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%h,label%j
h:
%i=bitcast i8*%a to i8**
br label%n
j:
call void@sml_check(i32 inreg%f)
%k=load i8*,i8**%c,align 8
%l=bitcast i8**%d to i8***
%m=load i8**,i8***%l,align 8
br label%n
n:
%o=phi i8**[%m,%j],[%i,%h]
%p=phi i8*[%k,%j],[%b,%h]
%q=getelementptr inbounds i8,i8*%p,i64 8
%r=bitcast i8*%q to i32*
%s=load i32,i32*%r,align 4
%t=getelementptr inbounds i8,i8*%p,i64 12
%u=bitcast i8*%t to i32*
%v=load i32,i32*%u,align 4
%w=load i8*,i8**%o,align 8
store i8*%w,i8**%d,align 8
%x=call i8*@sml_alloc(i32 inreg 28)#0
%y=getelementptr inbounds i8,i8*%x,i64 -4
%z=bitcast i8*%y to i32*
store i32 1342177304,i32*%z,align 4
store i8*%x,i8**%e,align 8
%A=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%B=bitcast i8*%x to i8**
store i8*%A,i8**%B,align 8
%C=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%D=getelementptr inbounds i8,i8*%x,i64 8
%E=bitcast i8*%D to i8**
store i8*%C,i8**%E,align 8
%F=getelementptr inbounds i8,i8*%x,i64 16
%G=bitcast i8*%F to i32*
store i32%s,i32*%G,align 4
%H=getelementptr inbounds i8,i8*%x,i64 20
%I=bitcast i8*%H to i32*
store i32%v,i32*%I,align 4
%J=getelementptr inbounds i8,i8*%x,i64 24
%K=bitcast i8*%J to i32*
store i32 3,i32*%K,align 4
%L=call i8*@sml_alloc(i32 inreg 28)#0
%M=getelementptr inbounds i8,i8*%L,i64 -4
%N=bitcast i8*%M to i32*
store i32 1342177304,i32*%N,align 4
%O=load i8*,i8**%e,align 8
%P=bitcast i8*%L to i8**
store i8*%O,i8**%P,align 8
%Q=getelementptr inbounds i8,i8*%L,i64 8
%R=bitcast i8*%Q to void(...)**
store void(...)*bitcast(i8*(i8*,i32)*@_SMLL4loop_269 to void(...)*),void(...)**%R,align 8
%S=getelementptr inbounds i8,i8*%L,i64 16
%T=bitcast i8*%S to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL4loop_360 to void(...)*),void(...)**%T,align 8
%U=getelementptr inbounds i8,i8*%L,i64 24
%V=bitcast i8*%U to i32*
store i32 -2147483647,i32*%V,align 4
%W=tail call fastcc i8*@_SMLL4loop_269(i8*inreg%O,i32 inreg%s)
ret i8*%W
}
define fastcc i8*@_SMLFN16Word8VectorSlice5findiE(i8*inreg%a)#3 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=call i8*@sml_alloc(i32 inreg 12)#0
%e=getelementptr inbounds i8,i8*%d,i64 -4
%f=bitcast i8*%e to i32*
store i32 1342177288,i32*%f,align 4
store i8*%d,i8**%c,align 8
%g=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%h=bitcast i8*%d to i8**
store i8*%g,i8**%h,align 8
%i=getelementptr inbounds i8,i8*%d,i64 8
%j=bitcast i8*%i to i32*
store i32 1,i32*%j,align 4
%k=call i8*@sml_alloc(i32 inreg 28)#0
%l=getelementptr inbounds i8,i8*%k,i64 -4
%m=bitcast i8*%l to i32*
store i32 1342177304,i32*%m,align 4
%n=load i8*,i8**%c,align 8
%o=bitcast i8*%k to i8**
store i8*%n,i8**%o,align 8
%p=getelementptr inbounds i8,i8*%k,i64 8
%q=bitcast i8*%p to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common5findiE_270 to void(...)*),void(...)**%q,align 8
%r=getelementptr inbounds i8,i8*%k,i64 16
%s=bitcast i8*%r to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common5findiE_270 to void(...)*),void(...)**%s,align 8
%t=getelementptr inbounds i8,i8*%k,i64 24
%u=bitcast i8*%t to i32*
store i32 -2147483647,i32*%u,align 4
ret i8*%k
}
define internal fastcc i8*@_SMLL4loop_273(i8*inreg%a,i32 inreg%b)#4 gc"smlsharp"{
g:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%c,align 8
br label%e
e:
%f=phi i32[%b,%g],[%S,%v]
%h=load atomic i32,i32*@sml_check_flag unordered,align 4
%i=icmp eq i32%h,0
br i1%i,label%k,label%j
j:
call void@sml_check(i32 inreg%h)
br label%k
k:
%l=load i8*,i8**%c,align 8
%m=getelementptr inbounds i8,i8*%l,i64 16
%n=bitcast i8*%m to i32*
%o=load i32,i32*%n,align 4
%p=getelementptr inbounds i8,i8*%l,i64 20
%q=bitcast i8*%p to i32*
%r=load i32,i32*%q,align 4
%s=add nsw i32%r,%o
%t=icmp slt i32%f,%s
br i1%t,label%v,label%u
u:
ret i8*null
v:
%w=getelementptr inbounds i8,i8*%l,i64 8
%x=bitcast i8*%w to i8***
%y=load i8**,i8***%x,align 8
%z=load i8*,i8**%y,align 8
%A=sext i32%f to i64
%B=getelementptr inbounds i8,i8*%z,i64%A
%C=load i8,i8*%B,align 1
%D=bitcast i8*%l to i8**
%E=load i8*,i8**%D,align 8
%F=getelementptr inbounds i8,i8*%E,i64 16
%G=bitcast i8*%F to i8*(i8*,i8*)**
%H=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%G,align 8
%I=bitcast i8*%E to i8**
%J=load i8*,i8**%I,align 8
store i8*%J,i8**%d,align 8
%K=call i8*@sml_alloc(i32 inreg 1)#0
%L=getelementptr inbounds i8,i8*%K,i64 -4
%M=bitcast i8*%L to i32*
store i32 1,i32*%M,align 4
store i8%C,i8*%K,align 1
%N=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%O=call fastcc i8*%H(i8*inreg%N,i8*inreg%K)
%P=bitcast i8*%O to i32*
%Q=load i32,i32*%P,align 4
%R=icmp eq i32%Q,0
%S=add nsw i32%f,1
br i1%R,label%e,label%T
T:
store i8*null,i8**%c,align 8
%U=call i8*@sml_alloc(i32 inreg 12)#0
%V=getelementptr inbounds i8,i8*%U,i64 -4
%W=bitcast i8*%V to i32*
store i32 1342177288,i32*%W,align 4
%X=getelementptr inbounds i8,i8*%U,i64 1
call void@llvm.memset.p0i8.i32(i8*%X,i8 0,i32 7,i1 false)
store i8%C,i8*%U,align 1
%Y=getelementptr inbounds i8,i8*%U,i64 8
%Z=bitcast i8*%Y to i32*
store i32 0,i32*%Z,align 4
ret i8*%U
}
define internal fastcc i8*@_SMLLN12Slice__common4findE_274(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%d,align 8
store i8*%b,i8**%c,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%h,label%j
h:
%i=bitcast i8*%a to i8**
br label%n
j:
call void@sml_check(i32 inreg%f)
%k=load i8*,i8**%c,align 8
%l=bitcast i8**%d to i8***
%m=load i8**,i8***%l,align 8
br label%n
n:
%o=phi i8**[%m,%j],[%i,%h]
%p=phi i8*[%k,%j],[%b,%h]
%q=getelementptr inbounds i8,i8*%p,i64 8
%r=bitcast i8*%q to i32*
%s=load i32,i32*%r,align 4
%t=getelementptr inbounds i8,i8*%p,i64 12
%u=bitcast i8*%t to i32*
%v=load i32,i32*%u,align 4
%w=load i8*,i8**%o,align 8
store i8*%w,i8**%d,align 8
%x=call i8*@sml_alloc(i32 inreg 28)#0
%y=getelementptr inbounds i8,i8*%x,i64 -4
%z=bitcast i8*%y to i32*
store i32 1342177304,i32*%z,align 4
store i8*%x,i8**%e,align 8
%A=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%B=bitcast i8*%x to i8**
store i8*%A,i8**%B,align 8
%C=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%D=getelementptr inbounds i8,i8*%x,i64 8
%E=bitcast i8*%D to i8**
store i8*%C,i8**%E,align 8
%F=getelementptr inbounds i8,i8*%x,i64 16
%G=bitcast i8*%F to i32*
store i32%s,i32*%G,align 4
%H=getelementptr inbounds i8,i8*%x,i64 20
%I=bitcast i8*%H to i32*
store i32%v,i32*%I,align 4
%J=getelementptr inbounds i8,i8*%x,i64 24
%K=bitcast i8*%J to i32*
store i32 3,i32*%K,align 4
%L=call i8*@sml_alloc(i32 inreg 28)#0
%M=getelementptr inbounds i8,i8*%L,i64 -4
%N=bitcast i8*%M to i32*
store i32 1342177304,i32*%N,align 4
%O=load i8*,i8**%e,align 8
%P=bitcast i8*%L to i8**
store i8*%O,i8**%P,align 8
%Q=getelementptr inbounds i8,i8*%L,i64 8
%R=bitcast i8*%Q to void(...)**
store void(...)*bitcast(i8*(i8*,i32)*@_SMLL4loop_273 to void(...)*),void(...)**%R,align 8
%S=getelementptr inbounds i8,i8*%L,i64 16
%T=bitcast i8*%S to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL4loop_362 to void(...)*),void(...)**%T,align 8
%U=getelementptr inbounds i8,i8*%L,i64 24
%V=bitcast i8*%U to i32*
store i32 -2147483647,i32*%V,align 4
%W=tail call fastcc i8*@_SMLL4loop_273(i8*inreg%O,i32 inreg%s)
ret i8*%W
}
define fastcc i8*@_SMLFN16Word8VectorSlice4findE(i8*inreg%a)#3 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=call i8*@sml_alloc(i32 inreg 12)#0
%e=getelementptr inbounds i8,i8*%d,i64 -4
%f=bitcast i8*%e to i32*
store i32 1342177288,i32*%f,align 4
store i8*%d,i8**%c,align 8
%g=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%h=bitcast i8*%d to i8**
store i8*%g,i8**%h,align 8
%i=getelementptr inbounds i8,i8*%d,i64 8
%j=bitcast i8*%i to i32*
store i32 1,i32*%j,align 4
%k=call i8*@sml_alloc(i32 inreg 28)#0
%l=getelementptr inbounds i8,i8*%k,i64 -4
%m=bitcast i8*%l to i32*
store i32 1342177304,i32*%m,align 4
%n=load i8*,i8**%c,align 8
%o=bitcast i8*%k to i8**
store i8*%n,i8**%o,align 8
%p=getelementptr inbounds i8,i8*%k,i64 8
%q=bitcast i8*%p to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common4findE_274 to void(...)*),void(...)**%q,align 8
%r=getelementptr inbounds i8,i8*%k,i64 16
%s=bitcast i8*%r to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common4findE_274 to void(...)*),void(...)**%s,align 8
%t=getelementptr inbounds i8,i8*%k,i64 24
%u=bitcast i8*%t to i32*
store i32 -2147483647,i32*%u,align 4
ret i8*%k
}
define internal fastcc i32@_SMLL4loop_277(i8*inreg%a,i32 inreg%b)#4 gc"smlsharp"{
g:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%c,align 8
br label%e
e:
%f=phi i32[%b,%g],[%T,%w]
%h=load atomic i32,i32*@sml_check_flag unordered,align 4
%i=icmp eq i32%h,0
br i1%i,label%k,label%j
j:
call void@sml_check(i32 inreg%h)
br label%k
k:
%l=load i8*,i8**%c,align 8
%m=getelementptr inbounds i8,i8*%l,i64 16
%n=bitcast i8*%m to i32*
%o=load i32,i32*%n,align 4
%p=getelementptr inbounds i8,i8*%l,i64 20
%q=bitcast i8*%p to i32*
%r=load i32,i32*%q,align 4
%s=add nsw i32%r,%o
%t=icmp slt i32%f,%s
br i1%t,label%w,label%u
u:
%v=phi i32[0,%k],[1,%w]
ret i32%v
w:
%x=bitcast i8*%l to i8**
%y=load i8*,i8**%x,align 8
%z=getelementptr inbounds i8,i8*%y,i64 16
%A=bitcast i8*%z to i8*(i8*,i8*)**
%B=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%A,align 8
%C=bitcast i8*%y to i8**
%D=load i8*,i8**%C,align 8
store i8*%D,i8**%d,align 8
%E=getelementptr inbounds i8,i8*%l,i64 8
%F=bitcast i8*%E to i8***
%G=load i8**,i8***%F,align 8
%H=load i8*,i8**%G,align 8
%I=sext i32%f to i64
%J=getelementptr inbounds i8,i8*%H,i64%I
%K=load i8,i8*%J,align 1
%L=call i8*@sml_alloc(i32 inreg 1)#0
%M=getelementptr inbounds i8,i8*%L,i64 -4
%N=bitcast i8*%M to i32*
store i32 1,i32*%N,align 4
store i8%K,i8*%L,align 1
%O=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%P=call fastcc i8*%B(i8*inreg%O,i8*inreg%L)
%Q=bitcast i8*%P to i32*
%R=load i32,i32*%Q,align 4
%S=icmp eq i32%R,0
%T=add nsw i32%f,1
br i1%S,label%e,label%u
}
define internal fastcc i32@_SMLLN12Slice__common6existsE_278(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%d,align 8
store i8*%b,i8**%c,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%h,label%j
h:
%i=bitcast i8*%a to i8**
br label%n
j:
call void@sml_check(i32 inreg%f)
%k=load i8*,i8**%c,align 8
%l=bitcast i8**%d to i8***
%m=load i8**,i8***%l,align 8
br label%n
n:
%o=phi i8**[%m,%j],[%i,%h]
%p=phi i8*[%k,%j],[%b,%h]
%q=getelementptr inbounds i8,i8*%p,i64 8
%r=bitcast i8*%q to i32*
%s=load i32,i32*%r,align 4
%t=getelementptr inbounds i8,i8*%p,i64 12
%u=bitcast i8*%t to i32*
%v=load i32,i32*%u,align 4
%w=load i8*,i8**%o,align 8
store i8*%w,i8**%d,align 8
%x=call i8*@sml_alloc(i32 inreg 28)#0
%y=getelementptr inbounds i8,i8*%x,i64 -4
%z=bitcast i8*%y to i32*
store i32 1342177304,i32*%z,align 4
store i8*%x,i8**%e,align 8
%A=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%B=bitcast i8*%x to i8**
store i8*%A,i8**%B,align 8
%C=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%D=getelementptr inbounds i8,i8*%x,i64 8
%E=bitcast i8*%D to i8**
store i8*%C,i8**%E,align 8
%F=getelementptr inbounds i8,i8*%x,i64 16
%G=bitcast i8*%F to i32*
store i32%s,i32*%G,align 4
%H=getelementptr inbounds i8,i8*%x,i64 20
%I=bitcast i8*%H to i32*
store i32%v,i32*%I,align 4
%J=getelementptr inbounds i8,i8*%x,i64 24
%K=bitcast i8*%J to i32*
store i32 3,i32*%K,align 4
%L=call i8*@sml_alloc(i32 inreg 28)#0
%M=getelementptr inbounds i8,i8*%L,i64 -4
%N=bitcast i8*%M to i32*
store i32 1342177304,i32*%N,align 4
%O=load i8*,i8**%e,align 8
%P=bitcast i8*%L to i8**
store i8*%O,i8**%P,align 8
%Q=getelementptr inbounds i8,i8*%L,i64 8
%R=bitcast i8*%Q to void(...)**
store void(...)*bitcast(i32(i8*,i32)*@_SMLL4loop_277 to void(...)*),void(...)**%R,align 8
%S=getelementptr inbounds i8,i8*%L,i64 16
%T=bitcast i8*%S to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL4loop_364 to void(...)*),void(...)**%T,align 8
%U=getelementptr inbounds i8,i8*%L,i64 24
%V=bitcast i8*%U to i32*
store i32 -2147483647,i32*%V,align 4
%W=tail call fastcc i32@_SMLL4loop_277(i8*inreg%O,i32 inreg%s)
ret i32%W
}
define fastcc i8*@_SMLFN16Word8VectorSlice6existsE(i8*inreg%a)#3 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=call i8*@sml_alloc(i32 inreg 12)#0
%e=getelementptr inbounds i8,i8*%d,i64 -4
%f=bitcast i8*%e to i32*
store i32 1342177288,i32*%f,align 4
store i8*%d,i8**%c,align 8
%g=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%h=bitcast i8*%d to i8**
store i8*%g,i8**%h,align 8
%i=getelementptr inbounds i8,i8*%d,i64 8
%j=bitcast i8*%i to i32*
store i32 1,i32*%j,align 4
%k=call i8*@sml_alloc(i32 inreg 28)#0
%l=getelementptr inbounds i8,i8*%k,i64 -4
%m=bitcast i8*%l to i32*
store i32 1342177304,i32*%m,align 4
%n=load i8*,i8**%c,align 8
%o=bitcast i8*%k to i8**
store i8*%n,i8**%o,align 8
%p=getelementptr inbounds i8,i8*%k,i64 8
%q=bitcast i8*%p to void(...)**
store void(...)*bitcast(i32(i8*,i8*)*@_SMLLN12Slice__common6existsE_278 to void(...)*),void(...)**%q,align 8
%r=getelementptr inbounds i8,i8*%k,i64 16
%s=bitcast i8*%r to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common6existsE_365 to void(...)*),void(...)**%s,align 8
%t=getelementptr inbounds i8,i8*%k,i64 24
%u=bitcast i8*%t to i32*
store i32 -2147483647,i32*%u,align 4
ret i8*%k
}
define internal fastcc i32@_SMLL4loop_281(i8*inreg%a,i32 inreg%b)#4 gc"smlsharp"{
g:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%c,align 8
br label%e
e:
%f=phi i32[%b,%g],[%T,%w]
%h=load atomic i32,i32*@sml_check_flag unordered,align 4
%i=icmp eq i32%h,0
br i1%i,label%k,label%j
j:
call void@sml_check(i32 inreg%h)
br label%k
k:
%l=load i8*,i8**%c,align 8
%m=getelementptr inbounds i8,i8*%l,i64 16
%n=bitcast i8*%m to i32*
%o=load i32,i32*%n,align 4
%p=getelementptr inbounds i8,i8*%l,i64 20
%q=bitcast i8*%p to i32*
%r=load i32,i32*%q,align 4
%s=add nsw i32%r,%o
%t=icmp slt i32%f,%s
br i1%t,label%w,label%u
u:
%v=phi i32[1,%k],[0,%w]
ret i32%v
w:
%x=bitcast i8*%l to i8**
%y=load i8*,i8**%x,align 8
%z=getelementptr inbounds i8,i8*%y,i64 16
%A=bitcast i8*%z to i8*(i8*,i8*)**
%B=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%A,align 8
%C=bitcast i8*%y to i8**
%D=load i8*,i8**%C,align 8
store i8*%D,i8**%d,align 8
%E=getelementptr inbounds i8,i8*%l,i64 8
%F=bitcast i8*%E to i8***
%G=load i8**,i8***%F,align 8
%H=load i8*,i8**%G,align 8
%I=sext i32%f to i64
%J=getelementptr inbounds i8,i8*%H,i64%I
%K=load i8,i8*%J,align 1
%L=call i8*@sml_alloc(i32 inreg 1)#0
%M=getelementptr inbounds i8,i8*%L,i64 -4
%N=bitcast i8*%M to i32*
store i32 1,i32*%N,align 4
store i8%K,i8*%L,align 1
%O=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%P=call fastcc i8*%B(i8*inreg%O,i8*inreg%L)
%Q=bitcast i8*%P to i32*
%R=load i32,i32*%Q,align 4
%S=icmp eq i32%R,0
%T=add nsw i32%f,1
br i1%S,label%u,label%e
}
define internal fastcc i32@_SMLLN12Slice__common3allE_282(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%d,align 8
store i8*%b,i8**%c,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%h,label%j
h:
%i=bitcast i8*%a to i8**
br label%n
j:
call void@sml_check(i32 inreg%f)
%k=load i8*,i8**%c,align 8
%l=bitcast i8**%d to i8***
%m=load i8**,i8***%l,align 8
br label%n
n:
%o=phi i8**[%m,%j],[%i,%h]
%p=phi i8*[%k,%j],[%b,%h]
%q=getelementptr inbounds i8,i8*%p,i64 8
%r=bitcast i8*%q to i32*
%s=load i32,i32*%r,align 4
%t=getelementptr inbounds i8,i8*%p,i64 12
%u=bitcast i8*%t to i32*
%v=load i32,i32*%u,align 4
%w=load i8*,i8**%o,align 8
store i8*%w,i8**%d,align 8
%x=call i8*@sml_alloc(i32 inreg 28)#0
%y=getelementptr inbounds i8,i8*%x,i64 -4
%z=bitcast i8*%y to i32*
store i32 1342177304,i32*%z,align 4
store i8*%x,i8**%e,align 8
%A=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%B=bitcast i8*%x to i8**
store i8*%A,i8**%B,align 8
%C=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%D=getelementptr inbounds i8,i8*%x,i64 8
%E=bitcast i8*%D to i8**
store i8*%C,i8**%E,align 8
%F=getelementptr inbounds i8,i8*%x,i64 16
%G=bitcast i8*%F to i32*
store i32%s,i32*%G,align 4
%H=getelementptr inbounds i8,i8*%x,i64 20
%I=bitcast i8*%H to i32*
store i32%v,i32*%I,align 4
%J=getelementptr inbounds i8,i8*%x,i64 24
%K=bitcast i8*%J to i32*
store i32 3,i32*%K,align 4
%L=call i8*@sml_alloc(i32 inreg 28)#0
%M=getelementptr inbounds i8,i8*%L,i64 -4
%N=bitcast i8*%M to i32*
store i32 1342177304,i32*%N,align 4
%O=load i8*,i8**%e,align 8
%P=bitcast i8*%L to i8**
store i8*%O,i8**%P,align 8
%Q=getelementptr inbounds i8,i8*%L,i64 8
%R=bitcast i8*%Q to void(...)**
store void(...)*bitcast(i32(i8*,i32)*@_SMLL4loop_281 to void(...)*),void(...)**%R,align 8
%S=getelementptr inbounds i8,i8*%L,i64 16
%T=bitcast i8*%S to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL4loop_367 to void(...)*),void(...)**%T,align 8
%U=getelementptr inbounds i8,i8*%L,i64 24
%V=bitcast i8*%U to i32*
store i32 -2147483647,i32*%V,align 4
%W=tail call fastcc i32@_SMLL4loop_281(i8*inreg%O,i32 inreg%s)
ret i32%W
}
define fastcc i8*@_SMLFN16Word8VectorSlice3allE(i8*inreg%a)#3 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=call i8*@sml_alloc(i32 inreg 12)#0
%e=getelementptr inbounds i8,i8*%d,i64 -4
%f=bitcast i8*%e to i32*
store i32 1342177288,i32*%f,align 4
store i8*%d,i8**%c,align 8
%g=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%h=bitcast i8*%d to i8**
store i8*%g,i8**%h,align 8
%i=getelementptr inbounds i8,i8*%d,i64 8
%j=bitcast i8*%i to i32*
store i32 1,i32*%j,align 4
%k=call i8*@sml_alloc(i32 inreg 28)#0
%l=getelementptr inbounds i8,i8*%k,i64 -4
%m=bitcast i8*%l to i32*
store i32 1342177304,i32*%m,align 4
%n=load i8*,i8**%c,align 8
%o=bitcast i8*%k to i8**
store i8*%n,i8**%o,align 8
%p=getelementptr inbounds i8,i8*%k,i64 8
%q=bitcast i8*%p to void(...)**
store void(...)*bitcast(i32(i8*,i8*)*@_SMLLN12Slice__common3allE_282 to void(...)*),void(...)**%q,align 8
%r=getelementptr inbounds i8,i8*%k,i64 16
%s=bitcast i8*%r to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common3allE_368 to void(...)*),void(...)**%s,align 8
%t=getelementptr inbounds i8,i8*%k,i64 24
%u=bitcast i8*%t to i32*
store i32 -2147483647,i32*%u,align 4
ret i8*%k
}
define internal fastcc void@_SMLL4loop_285(i8*inreg%a,i32 inreg%b)#4 gc"smlsharp"{
h:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%c,align 8
br label%f
f:
%g=phi i32[%b,%h],[%ad,%w]
%i=load atomic i32,i32*@sml_check_flag unordered,align 4
%j=icmp eq i32%i,0
br i1%j,label%l,label%k
k:
call void@sml_check(i32 inreg%i)
br label%l
l:
%m=load i8*,i8**%c,align 8
%n=getelementptr inbounds i8,i8*%m,i64 24
%o=bitcast i8*%n to i32*
%p=load i32,i32*%o,align 4
%q=getelementptr inbounds i8,i8*%m,i64 28
%r=bitcast i8*%q to i32*
%s=load i32,i32*%r,align 4
%t=add nsw i32%s,%p
%u=icmp slt i32%g,%t
br i1%u,label%w,label%v
v:
ret void
w:
%x=getelementptr inbounds i8,i8*%m,i64 16
%y=bitcast i8*%x to i8***
%z=load i8**,i8***%y,align 8
%A=load i8*,i8**%z,align 8
%B=sext i32%g to i64
%C=getelementptr inbounds i8,i8*%A,i64%B
%D=load i8,i8*%C,align 1
%E=bitcast i8*%m to i8**
%F=load i8*,i8**%E,align 8
store i8*%F,i8**%e,align 8
%G=sub nsw i32%g,%p
%H=getelementptr inbounds i8,i8*%m,i64 8
%I=bitcast i8*%H to i8**
%J=load i8*,i8**%I,align 8
%K=getelementptr inbounds i8,i8*%J,i64 16
%L=bitcast i8*%K to i8*(i8*,i8*)**
%M=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%L,align 8
%N=bitcast i8*%J to i8**
%O=load i8*,i8**%N,align 8
store i8*%O,i8**%d,align 8
%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
%T=getelementptr inbounds i8,i8*%P,i64 5
call void@llvm.memset.p0i8.i32(i8*%T,i8 0,i32 3,i1 false)
store i32%G,i32*%Q,align 4
%U=getelementptr inbounds i8,i8*%P,i64 4
store i8%D,i8*%U,align 1
%V=getelementptr inbounds i8,i8*%P,i64 8
%W=bitcast i8*%V to i32*
store i32 0,i32*%W,align 4
%X=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%Y=call fastcc i8*%M(i8*inreg%X,i8*inreg%P)
%Z=load i8,i8*%Y,align 1
%aa=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%ab=sext i32%G to i64
%ac=getelementptr inbounds i8,i8*%aa,i64%ab
store i8%Z,i8*%ac,align 1
%ad=add nsw i32%g,1
br label%f
}
define internal fastcc i8*@_SMLLN12Slice__common4mapiE_286(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
m:
%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**%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**%e,align 8
store i8*%b,i8**%c,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**%c,align 8
br label%k
k:
%l=phi i8*[%j,%i],[%b,%m]
store i8*null,i8**%c,align 8
store i8*%l,i8**%d,align 8
%n=getelementptr inbounds i8,i8*%l,i64 8
%o=bitcast i8*%n to i32*
%p=load i32,i32*%o,align 4
%q=getelementptr inbounds i8,i8*%l,i64 12
%r=bitcast i8*%q to i32*
%s=load i32,i32*%r,align 4
%t=call i8*@sml_alloc(i32 inreg%s)#0
%u=getelementptr inbounds i8,i8*%t,i64 -4
%v=bitcast i8*%u to i32*
store i32%s,i32*%v,align 4
store i8*%t,i8**%c,align 8
%w=bitcast i8**%e to i8***
%x=load i8**,i8***%w,align 8
%y=load i8*,i8**%x,align 8
store i8*%y,i8**%e,align 8
%z=call i8*@sml_alloc(i32 inreg 36)#0
%A=getelementptr inbounds i8,i8*%z,i64 -4
%B=bitcast i8*%A to i32*
store i32 1342177312,i32*%B,align 4
store i8*%z,i8**%f,align 8
%C=load i8*,i8**%c,align 8
%D=bitcast i8*%z to i8**
store i8*%C,i8**%D,align 8
%E=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%F=getelementptr inbounds i8,i8*%z,i64 8
%G=bitcast i8*%F to i8**
store i8*%E,i8**%G,align 8
%H=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%I=getelementptr inbounds i8,i8*%z,i64 16
%J=bitcast i8*%I to i8**
store i8*%H,i8**%J,align 8
%K=getelementptr inbounds i8,i8*%z,i64 24
%L=bitcast i8*%K to i32*
store i32%p,i32*%L,align 4
%M=getelementptr inbounds i8,i8*%z,i64 28
%N=bitcast i8*%M to i32*
store i32%s,i32*%N,align 4
%O=getelementptr inbounds i8,i8*%z,i64 32
%P=bitcast i8*%O to i32*
store i32 7,i32*%P,align 4
%Q=call i8*@sml_alloc(i32 inreg 28)#0
%R=getelementptr inbounds i8,i8*%Q,i64 -4
%S=bitcast i8*%R to i32*
store i32 1342177304,i32*%S,align 4
%T=load i8*,i8**%f,align 8
%U=bitcast i8*%Q to i8**
store i8*%T,i8**%U,align 8
%V=getelementptr inbounds i8,i8*%Q,i64 8
%W=bitcast i8*%V to void(...)**
store void(...)*bitcast(void(i8*,i32)*@_SMLL4loop_285 to void(...)*),void(...)**%W,align 8
%X=getelementptr inbounds i8,i8*%Q,i64 16
%Y=bitcast i8*%X to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL4loop_370 to void(...)*),void(...)**%Y,align 8
%Z=getelementptr inbounds i8,i8*%Q,i64 24
%aa=bitcast i8*%Z to i32*
store i32 -2147483647,i32*%aa,align 4
store i8*null,i8**%f,align 8
call fastcc void@_SMLL4loop_285(i8*inreg%T,i32 inreg%p)
%ab=load i8*,i8**%c,align 8
ret i8*%ab
}
define internal fastcc void@_SMLL4loop_289(i8*inreg%a,i32 inreg%b)#4 gc"smlsharp"{
h:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%c,align 8
br label%f
f:
%g=phi i32[%b,%h],[%Y,%w]
%i=load atomic i32,i32*@sml_check_flag unordered,align 4
%j=icmp eq i32%i,0
br i1%j,label%l,label%k
k:
call void@sml_check(i32 inreg%i)
br label%l
l:
%m=load i8*,i8**%c,align 8
%n=getelementptr inbounds i8,i8*%m,i64 24
%o=bitcast i8*%n to i32*
%p=load i32,i32*%o,align 4
%q=getelementptr inbounds i8,i8*%m,i64 28
%r=bitcast i8*%q to i32*
%s=load i32,i32*%r,align 4
%t=add nsw i32%s,%p
%u=icmp slt i32%g,%t
br i1%u,label%w,label%v
v:
ret void
w:
%x=getelementptr inbounds i8,i8*%m,i64 16
%y=bitcast i8*%x to i8***
%z=load i8**,i8***%y,align 8
%A=load i8*,i8**%z,align 8
%B=sext i32%g to i64
%C=getelementptr inbounds i8,i8*%A,i64%B
%D=load i8,i8*%C,align 1
%E=bitcast i8*%m to i8**
%F=load i8*,i8**%E,align 8
store i8*%F,i8**%e,align 8
%G=sub nsw i32%g,%p
%H=getelementptr inbounds i8,i8*%m,i64 8
%I=bitcast i8*%H to i8**
%J=load i8*,i8**%I,align 8
%K=getelementptr inbounds i8,i8*%J,i64 16
%L=bitcast i8*%K to i8*(i8*,i8*)**
%M=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%L,align 8
%N=bitcast i8*%J to i8**
%O=load i8*,i8**%N,align 8
store i8*%O,i8**%d,align 8
%P=call i8*@sml_alloc(i32 inreg 1)#0
%Q=getelementptr inbounds i8,i8*%P,i64 -4
%R=bitcast i8*%Q to i32*
store i32 1,i32*%R,align 4
store i8%D,i8*%P,align 1
%S=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%T=call fastcc i8*%M(i8*inreg%S,i8*inreg%P)
%U=load i8,i8*%T,align 1
%V=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%W=sext i32%G to i64
%X=getelementptr inbounds i8,i8*%V,i64%W
store i8%U,i8*%X,align 1
%Y=add nsw i32%g,1
br label%f
}
define internal fastcc i8*@_SMLLN12Slice__common3mapE_290(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
m:
%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**%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**%e,align 8
store i8*%b,i8**%c,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**%c,align 8
br label%k
k:
%l=phi i8*[%j,%i],[%b,%m]
store i8*null,i8**%c,align 8
store i8*%l,i8**%d,align 8
%n=getelementptr inbounds i8,i8*%l,i64 8
%o=bitcast i8*%n to i32*
%p=load i32,i32*%o,align 4
%q=getelementptr inbounds i8,i8*%l,i64 12
%r=bitcast i8*%q to i32*
%s=load i32,i32*%r,align 4
%t=call i8*@sml_alloc(i32 inreg%s)#0
%u=getelementptr inbounds i8,i8*%t,i64 -4
%v=bitcast i8*%u to i32*
store i32%s,i32*%v,align 4
store i8*%t,i8**%c,align 8
%w=bitcast i8**%e to i8***
%x=load i8**,i8***%w,align 8
%y=load i8*,i8**%x,align 8
store i8*%y,i8**%e,align 8
%z=call i8*@sml_alloc(i32 inreg 36)#0
%A=getelementptr inbounds i8,i8*%z,i64 -4
%B=bitcast i8*%A to i32*
store i32 1342177312,i32*%B,align 4
store i8*%z,i8**%f,align 8
%C=load i8*,i8**%c,align 8
%D=bitcast i8*%z to i8**
store i8*%C,i8**%D,align 8
%E=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%F=getelementptr inbounds i8,i8*%z,i64 8
%G=bitcast i8*%F to i8**
store i8*%E,i8**%G,align 8
%H=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%I=getelementptr inbounds i8,i8*%z,i64 16
%J=bitcast i8*%I to i8**
store i8*%H,i8**%J,align 8
%K=getelementptr inbounds i8,i8*%z,i64 24
%L=bitcast i8*%K to i32*
store i32%p,i32*%L,align 4
%M=getelementptr inbounds i8,i8*%z,i64 28
%N=bitcast i8*%M to i32*
store i32%s,i32*%N,align 4
%O=getelementptr inbounds i8,i8*%z,i64 32
%P=bitcast i8*%O to i32*
store i32 7,i32*%P,align 4
%Q=call i8*@sml_alloc(i32 inreg 28)#0
%R=getelementptr inbounds i8,i8*%Q,i64 -4
%S=bitcast i8*%R to i32*
store i32 1342177304,i32*%S,align 4
%T=load i8*,i8**%f,align 8
%U=bitcast i8*%Q to i8**
store i8*%T,i8**%U,align 8
%V=getelementptr inbounds i8,i8*%Q,i64 8
%W=bitcast i8*%V to void(...)**
store void(...)*bitcast(void(i8*,i32)*@_SMLL4loop_289 to void(...)*),void(...)**%W,align 8
%X=getelementptr inbounds i8,i8*%Q,i64 16
%Y=bitcast i8*%X to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL4loop_372 to void(...)*),void(...)**%Y,align 8
%Z=getelementptr inbounds i8,i8*%Q,i64 24
%aa=bitcast i8*%Z to i32*
store i32 -2147483647,i32*%aa,align 4
store i8*null,i8**%f,align 8
call fastcc void@_SMLL4loop_289(i8*inreg%T,i32 inreg%p)
%ab=load i8*,i8**%c,align 8
ret i8*%ab
}
define fastcc i32@_SMLFN16Word8VectorSlice6lengthE(i8*inreg%a)#3 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 fastcc i8*@_SMLFN16Word8VectorSlice4fullE(i8*inreg%a)#3 gc"smlsharp"{
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=getelementptr inbounds i8,i8*%a,i64 -4
%d=bitcast i8*%c to i32*
%e=load i32,i32*%d,align 4
%f=and i32%e,268435455
%g=call i8*@sml_alloc(i32 inreg 20)#0
%h=getelementptr inbounds i8,i8*%g,i64 -4
%i=bitcast i8*%h to i32*
store i32 1342177296,i32*%i,align 4
%j=load i8*,i8**%b,align 8
%k=bitcast i8*%g to i8**
store i8*%j,i8**%k,align 8
%l=getelementptr inbounds i8,i8*%g,i64 8
%m=bitcast i8*%l to i32*
store i32 0,i32*%m,align 4
%n=getelementptr inbounds i8,i8*%g,i64 12
%o=bitcast i8*%n to i32*
store i32%f,i32*%o,align 4
%p=getelementptr inbounds i8,i8*%g,i64 16
%q=bitcast i8*%p to i32*
store i32 1,i32*%q,align 4
ret i8*%g
}
define fastcc i8*@_SMLFN16Word8VectorSlice5sliceE(i8*inreg%a)#4 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**%d to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%n)
%o=bitcast i8**%e to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%o)
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%l,i8**%d,align 8
%p=load atomic i32,i32*@sml_check_flag unordered,align 4
%q=icmp eq i32%p,0
br i1%q,label%t,label%r
r:
call void@sml_check(i32 inreg%p)
%s=load i8*,i8**%d,align 8
br label%t
t:
%u=phi i8*[%s,%r],[%l,%k]
%v=bitcast i8*%u to i8**
%w=load i8*,i8**%v,align 8
store i8*%w,i8**%d,align 8
%x=getelementptr inbounds i8,i8*%u,i64 8
%y=bitcast i8*%x to i32*
%z=load i32,i32*%y,align 4
%A=getelementptr inbounds i8,i8*%u,i64 16
%B=bitcast i8*%A to i8**
%C=load i8*,i8**%B,align 8
%D=icmp eq i8*%C,null
br i1%D,label%E,label%ap
E:
%F=getelementptr inbounds i8,i8*%w,i64 -4
%G=bitcast i8*%F to i32*
%H=load i32,i32*%G,align 4
%I=and i32%H,268435455
%J=icmp ult i32%I,%z
br i1%J,label%K,label%ac
K:
%L=load i8*,i8**@_SMLZ9Subscript,align 8
store i8*%L,i8**%d,align 8
%M=call i8*@sml_alloc(i32 inreg 20)#0
%N=getelementptr inbounds i8,i8*%M,i64 -4
%O=bitcast i8*%N to i32*
store i32 1342177296,i32*%O,align 4
store i8*%M,i8**%e,align 8
%P=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%Q=bitcast i8*%M to i8**
store i8*%P,i8**%Q,align 8
%R=getelementptr inbounds i8,i8*%M,i64 8
%S=bitcast i8*%R to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@j,i64 0,i32 2,i64 0),i8**%S,align 8
%T=getelementptr inbounds i8,i8*%M,i64 16
%U=bitcast i8*%T to i32*
store i32 3,i32*%U,align 4
%V=call i8*@sml_alloc(i32 inreg 60)#0
%W=getelementptr inbounds i8,i8*%V,i64 -4
%X=bitcast i8*%W to i32*
store i32 1342177336,i32*%X,align 4
%Y=getelementptr inbounds i8,i8*%V,i64 56
%Z=bitcast i8*%Y to i32*
store i32 1,i32*%Z,align 4
%aa=load i8*,i8**%e,align 8
%ab=bitcast i8*%V to i8**
store i8*%aa,i8**%ab,align 8
call void@sml_raise(i8*inreg%V)#1
unreachable
ac:
%ad=sub nsw i32%I,%z
%ae=call i8*@sml_alloc(i32 inreg 20)#0
%af=getelementptr inbounds i8,i8*%ae,i64 -4
%ag=bitcast i8*%af to i32*
store i32 1342177296,i32*%ag,align 4
%ah=load i8*,i8**%d,align 8
%ai=bitcast i8*%ae to i8**
store i8*%ah,i8**%ai,align 8
%aj=getelementptr inbounds i8,i8*%ae,i64 8
%ak=bitcast i8*%aj to i32*
store i32%z,i32*%ak,align 4
%al=getelementptr inbounds i8,i8*%ae,i64 12
%am=bitcast i8*%al to i32*
store i32%ad,i32*%am,align 4
%an=getelementptr inbounds i8,i8*%ae,i64 16
%ao=bitcast i8*%an to i32*
store i32 1,i32*%ao,align 4
call void@llvm.lifetime.end.p0i8(i64 8,i8*%n)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%o)
br label%bj
ap:
%aq=bitcast i8*%C to i32*
%ar=load i32,i32*%aq,align 4
%as=call i8*@sml_alloc(i32 inreg 20)#0
%at=getelementptr inbounds i8,i8*%as,i64 -4
%au=bitcast i8*%at to i32*
store i32 1342177296,i32*%au,align 4
%av=load i8*,i8**%d,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 i32*
store i32%z,i32*%ay,align 4
%az=getelementptr inbounds i8,i8*%as,i64 12
%aA=bitcast i8*%az to i32*
store i32%ar,i32*%aA,align 4
%aB=getelementptr inbounds i8,i8*%as,i64 16
%aC=bitcast i8*%aB to i32*
store i32 1,i32*%aC,align 4
%aD=bitcast i8**%b to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%aD)
%aE=bitcast i8**%c to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%aE)
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%av,i8**%b,align 8
%aF=getelementptr inbounds i8,i8*%av,i64 -4
%aG=bitcast i8*%aF to i32*
%aH=load i32,i32*%aG,align 4
%aI=and i32%aH,268435455
%aJ=icmp ult i32%aI,%z
%aK=icmp slt i32%ar,0
%aL=sub nsw i32%aI,%z
%aM=icmp slt i32%aL,%ar
%aN=or i1%aK,%aJ
%aO=or i1%aM,%aN
br i1%aO,label%aP,label%a7
aP:
%aQ=load i8*,i8**@_SMLZ9Subscript,align 8
store i8*%aQ,i8**%b,align 8
%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**%c,align 8
%aU=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aV=bitcast i8*%aR to i8**
store i8*%aU,i8**%aV,align 8
%aW=getelementptr inbounds i8,i8*%aR,i64 8
%aX=bitcast i8*%aW to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@i,i64 0,i32 2,i64 0),i8**%aX,align 8
%aY=getelementptr inbounds i8,i8*%aR,i64 16
%aZ=bitcast i8*%aY to i32*
store i32 3,i32*%aZ,align 4
%a0=call i8*@sml_alloc(i32 inreg 60)#0
%a1=getelementptr inbounds i8,i8*%a0,i64 -4
%a2=bitcast i8*%a1 to i32*
store i32 1342177336,i32*%a2,align 4
%a3=getelementptr inbounds i8,i8*%a0,i64 56
%a4=bitcast i8*%a3 to i32*
store i32 1,i32*%a4,align 4
%a5=load i8*,i8**%c,align 8
%a6=bitcast i8*%a0 to i8**
store i8*%a5,i8**%a6,align 8
call void@sml_raise(i8*inreg%a0)#1
unreachable
a7:
%a8=call i8*@sml_alloc(i32 inreg 20)#0
%a9=getelementptr inbounds i8,i8*%a8,i64 -4
%ba=bitcast i8*%a9 to i32*
store i32 1342177296,i32*%ba,align 4
%bb=load i8*,i8**%b,align 8
%bc=bitcast i8*%a8 to i8**
store i8*%bb,i8**%bc,align 8
%bd=getelementptr inbounds i8,i8*%a8,i64 8
%be=bitcast i8*%bd to i32*
store i32%z,i32*%be,align 4
%bf=getelementptr inbounds i8,i8*%a8,i64 12
%bg=bitcast i8*%bf to i32*
store i32%ar,i32*%bg,align 4
%bh=getelementptr inbounds i8,i8*%a8,i64 16
%bi=bitcast i8*%bh to i32*
store i32 1,i32*%bi,align 4
call void@llvm.lifetime.end.p0i8(i64 8,i8*%aD)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%aE)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%n)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%o)
br label%bj
bj:
%bk=phi i8*[%ae,%ac],[%a8,%a7]
ret i8*%bk
}
define fastcc i8*@_SMLFN16Word8VectorSlice4baseE(i8*inreg%a)#3 gc"smlsharp"{
ret i8*%a
}
define fastcc i32@_SMLFN16Word8VectorSlice7isEmptyE(i8*inreg%a)#3 gc"smlsharp"{
%b=getelementptr inbounds i8,i8*%a,i64 12
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=icmp eq i32%d,0
%f=zext i1%e to i32
ret i32%f
}
define internal fastcc i8*@_SMLLN16Word8VectorSlice6foldliE_311(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
l:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%e,align 8
store i8*%b,i8**%d,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%j,label%h
h:
call void@sml_check(i32 inreg%f)
%i=load i8*,i8**%e,align 8
br label%j
j:
%k=phi i8*[%i,%h],[%a,%l]
%m=bitcast i8*%k to i32*
%n=load i32,i32*%m,align 4
store i8*null,i8**%e,align 8
%o=getelementptr inbounds i8,i8*%k,i64 4
%p=bitcast i8*%o to i32*
%q=load i32,i32*%p,align 4
%r=bitcast i8**%c to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%r)
call void@llvm.gcroot(i8**%c,i8*null)#0
%s=call i8*@sml_alloc(i32 inreg 12)#0
%t=bitcast i8*%s to i32*
%u=getelementptr inbounds i8,i8*%s,i64 -4
%v=bitcast i8*%u to i32*
store i32 1342177288,i32*%v,align 4
store i8*%s,i8**%c,align 8
store i32%n,i32*%t,align 4
%w=getelementptr inbounds i8,i8*%s,i64 4
%x=bitcast i8*%w to i32*
store i32%q,i32*%x,align 4
%y=getelementptr inbounds i8,i8*%s,i64 8
%z=bitcast i8*%y to i32*
store i32 0,i32*%z,align 4
%A=call i8*@sml_alloc(i32 inreg 28)#0
%B=getelementptr inbounds i8,i8*%A,i64 -4
%C=bitcast i8*%B to i32*
store i32 1342177304,i32*%C,align 4
%D=load i8*,i8**%c,align 8
%E=bitcast i8*%A to i8**
store i8*%D,i8**%E,align 8
%F=getelementptr inbounds i8,i8*%A,i64 8
%G=bitcast i8*%F to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common6foldliE_240 to void(...)*),void(...)**%G,align 8
%H=getelementptr inbounds i8,i8*%A,i64 16
%I=bitcast i8*%H to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common6foldliE_240 to void(...)*),void(...)**%I,align 8
%J=getelementptr inbounds i8,i8*%A,i64 24
%K=bitcast i8*%J to i32*
store i32 -2147483647,i32*%K,align 4
call void@llvm.lifetime.end.p0i8(i64 8,i8*%r)
%L=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%M=call fastcc i8*@_SMLLN12Slice__common6foldliE_240(i8*inreg%D,i8*inreg%L)
ret i8*%M
}
define fastcc i8*@_SMLFN16Word8VectorSlice6foldliE(i32 inreg%a,i32 inreg%b)#3 gc"smlsharp"{
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
%d=call i8*@sml_alloc(i32 inreg 12)#0
%e=bitcast i8*%d to i32*
%f=getelementptr inbounds i8,i8*%d,i64 -4
%g=bitcast i8*%f to i32*
store i32 1342177288,i32*%g,align 4
store i8*%d,i8**%c,align 8
store i32%a,i32*%e,align 4
%h=getelementptr inbounds i8,i8*%d,i64 4
%i=bitcast i8*%h to i32*
store i32%b,i32*%i,align 4
%j=getelementptr inbounds i8,i8*%d,i64 8
%k=bitcast i8*%j to i32*
store i32 0,i32*%k,align 4
%l=call i8*@sml_alloc(i32 inreg 28)#0
%m=getelementptr inbounds i8,i8*%l,i64 -4
%n=bitcast i8*%m to i32*
store i32 1342177304,i32*%n,align 4
%o=load i8*,i8**%c,align 8
%p=bitcast i8*%l to i8**
store i8*%o,i8**%p,align 8
%q=getelementptr inbounds i8,i8*%l,i64 8
%r=bitcast i8*%q to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN16Word8VectorSlice6foldliE_311 to void(...)*),void(...)**%r,align 8
%s=getelementptr inbounds i8,i8*%l,i64 16
%t=bitcast i8*%s to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN16Word8VectorSlice6foldliE_311 to void(...)*),void(...)**%t,align 8
%u=getelementptr inbounds i8,i8*%l,i64 24
%v=bitcast i8*%u to i32*
store i32 -2147483647,i32*%v,align 4
ret i8*%l
}
define internal fastcc i8*@_SMLLN16Word8VectorSlice5foldlE_314(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
l:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%e,align 8
store i8*%b,i8**%d,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%j,label%h
h:
call void@sml_check(i32 inreg%f)
%i=load i8*,i8**%e,align 8
br label%j
j:
%k=phi i8*[%i,%h],[%a,%l]
%m=bitcast i8*%k to i32*
%n=load i32,i32*%m,align 4
store i8*null,i8**%e,align 8
%o=getelementptr inbounds i8,i8*%k,i64 4
%p=bitcast i8*%o to i32*
%q=load i32,i32*%p,align 4
%r=bitcast i8**%c to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%r)
call void@llvm.gcroot(i8**%c,i8*null)#0
%s=call i8*@sml_alloc(i32 inreg 12)#0
%t=bitcast i8*%s to i32*
%u=getelementptr inbounds i8,i8*%s,i64 -4
%v=bitcast i8*%u to i32*
store i32 1342177288,i32*%v,align 4
store i8*%s,i8**%c,align 8
store i32%n,i32*%t,align 4
%w=getelementptr inbounds i8,i8*%s,i64 4
%x=bitcast i8*%w to i32*
store i32%q,i32*%x,align 4
%y=getelementptr inbounds i8,i8*%s,i64 8
%z=bitcast i8*%y to i32*
store i32 0,i32*%z,align 4
%A=call i8*@sml_alloc(i32 inreg 28)#0
%B=getelementptr inbounds i8,i8*%A,i64 -4
%C=bitcast i8*%B to i32*
store i32 1342177304,i32*%C,align 4
%D=load i8*,i8**%c,align 8
%E=bitcast i8*%A to i8**
store i8*%D,i8**%E,align 8
%F=getelementptr inbounds i8,i8*%A,i64 8
%G=bitcast i8*%F to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common5foldlE_246 to void(...)*),void(...)**%G,align 8
%H=getelementptr inbounds i8,i8*%A,i64 16
%I=bitcast i8*%H to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common5foldlE_246 to void(...)*),void(...)**%I,align 8
%J=getelementptr inbounds i8,i8*%A,i64 24
%K=bitcast i8*%J to i32*
store i32 -2147483647,i32*%K,align 4
call void@llvm.lifetime.end.p0i8(i64 8,i8*%r)
%L=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%M=call fastcc i8*@_SMLLN12Slice__common5foldlE_246(i8*inreg%D,i8*inreg%L)
ret i8*%M
}
define fastcc i8*@_SMLFN16Word8VectorSlice5foldlE(i32 inreg%a,i32 inreg%b)#3 gc"smlsharp"{
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
%d=call i8*@sml_alloc(i32 inreg 12)#0
%e=bitcast i8*%d to i32*
%f=getelementptr inbounds i8,i8*%d,i64 -4
%g=bitcast i8*%f to i32*
store i32 1342177288,i32*%g,align 4
store i8*%d,i8**%c,align 8
store i32%a,i32*%e,align 4
%h=getelementptr inbounds i8,i8*%d,i64 4
%i=bitcast i8*%h to i32*
store i32%b,i32*%i,align 4
%j=getelementptr inbounds i8,i8*%d,i64 8
%k=bitcast i8*%j to i32*
store i32 0,i32*%k,align 4
%l=call i8*@sml_alloc(i32 inreg 28)#0
%m=getelementptr inbounds i8,i8*%l,i64 -4
%n=bitcast i8*%m to i32*
store i32 1342177304,i32*%n,align 4
%o=load i8*,i8**%c,align 8
%p=bitcast i8*%l to i8**
store i8*%o,i8**%p,align 8
%q=getelementptr inbounds i8,i8*%l,i64 8
%r=bitcast i8*%q to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN16Word8VectorSlice5foldlE_314 to void(...)*),void(...)**%r,align 8
%s=getelementptr inbounds i8,i8*%l,i64 16
%t=bitcast i8*%s to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN16Word8VectorSlice5foldlE_314 to void(...)*),void(...)**%t,align 8
%u=getelementptr inbounds i8,i8*%l,i64 24
%v=bitcast i8*%u to i32*
store i32 -2147483647,i32*%v,align 4
ret i8*%l
}
define internal fastcc i8*@_SMLLN16Word8VectorSlice6foldriE_317(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
l:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%e,align 8
store i8*%b,i8**%d,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%j,label%h
h:
call void@sml_check(i32 inreg%f)
%i=load i8*,i8**%e,align 8
br label%j
j:
%k=phi i8*[%i,%h],[%a,%l]
%m=bitcast i8*%k to i32*
%n=load i32,i32*%m,align 4
store i8*null,i8**%e,align 8
%o=getelementptr inbounds i8,i8*%k,i64 4
%p=bitcast i8*%o to i32*
%q=load i32,i32*%p,align 4
%r=bitcast i8**%c to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%r)
call void@llvm.gcroot(i8**%c,i8*null)#0
%s=call i8*@sml_alloc(i32 inreg 12)#0
%t=bitcast i8*%s to i32*
%u=getelementptr inbounds i8,i8*%s,i64 -4
%v=bitcast i8*%u to i32*
store i32 1342177288,i32*%v,align 4
store i8*%s,i8**%c,align 8
store i32%n,i32*%t,align 4
%w=getelementptr inbounds i8,i8*%s,i64 4
%x=bitcast i8*%w to i32*
store i32%q,i32*%x,align 4
%y=getelementptr inbounds i8,i8*%s,i64 8
%z=bitcast i8*%y to i32*
store i32 0,i32*%z,align 4
%A=call i8*@sml_alloc(i32 inreg 28)#0
%B=getelementptr inbounds i8,i8*%A,i64 -4
%C=bitcast i8*%B to i32*
store i32 1342177304,i32*%C,align 4
%D=load i8*,i8**%c,align 8
%E=bitcast i8*%A to i8**
store i8*%D,i8**%E,align 8
%F=getelementptr inbounds i8,i8*%A,i64 8
%G=bitcast i8*%F to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common6foldriE_252 to void(...)*),void(...)**%G,align 8
%H=getelementptr inbounds i8,i8*%A,i64 16
%I=bitcast i8*%H to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common6foldriE_252 to void(...)*),void(...)**%I,align 8
%J=getelementptr inbounds i8,i8*%A,i64 24
%K=bitcast i8*%J to i32*
store i32 -2147483647,i32*%K,align 4
call void@llvm.lifetime.end.p0i8(i64 8,i8*%r)
%L=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%M=call fastcc i8*@_SMLLN12Slice__common6foldriE_252(i8*inreg%D,i8*inreg%L)
ret i8*%M
}
define fastcc i8*@_SMLFN16Word8VectorSlice6foldriE(i32 inreg%a,i32 inreg%b)#3 gc"smlsharp"{
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
%d=call i8*@sml_alloc(i32 inreg 12)#0
%e=bitcast i8*%d to i32*
%f=getelementptr inbounds i8,i8*%d,i64 -4
%g=bitcast i8*%f to i32*
store i32 1342177288,i32*%g,align 4
store i8*%d,i8**%c,align 8
store i32%a,i32*%e,align 4
%h=getelementptr inbounds i8,i8*%d,i64 4
%i=bitcast i8*%h to i32*
store i32%b,i32*%i,align 4
%j=getelementptr inbounds i8,i8*%d,i64 8
%k=bitcast i8*%j to i32*
store i32 0,i32*%k,align 4
%l=call i8*@sml_alloc(i32 inreg 28)#0
%m=getelementptr inbounds i8,i8*%l,i64 -4
%n=bitcast i8*%m to i32*
store i32 1342177304,i32*%n,align 4
%o=load i8*,i8**%c,align 8
%p=bitcast i8*%l to i8**
store i8*%o,i8**%p,align 8
%q=getelementptr inbounds i8,i8*%l,i64 8
%r=bitcast i8*%q to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN16Word8VectorSlice6foldriE_317 to void(...)*),void(...)**%r,align 8
%s=getelementptr inbounds i8,i8*%l,i64 16
%t=bitcast i8*%s to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN16Word8VectorSlice6foldriE_317 to void(...)*),void(...)**%t,align 8
%u=getelementptr inbounds i8,i8*%l,i64 24
%v=bitcast i8*%u to i32*
store i32 -2147483647,i32*%v,align 4
ret i8*%l
}
define internal fastcc i8*@_SMLLN16Word8VectorSlice5foldrE_320(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
l:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%e,align 8
store i8*%b,i8**%d,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%j,label%h
h:
call void@sml_check(i32 inreg%f)
%i=load i8*,i8**%e,align 8
br label%j
j:
%k=phi i8*[%i,%h],[%a,%l]
%m=bitcast i8*%k to i32*
%n=load i32,i32*%m,align 4
store i8*null,i8**%e,align 8
%o=getelementptr inbounds i8,i8*%k,i64 4
%p=bitcast i8*%o to i32*
%q=load i32,i32*%p,align 4
%r=bitcast i8**%c to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%r)
call void@llvm.gcroot(i8**%c,i8*null)#0
%s=call i8*@sml_alloc(i32 inreg 12)#0
%t=bitcast i8*%s to i32*
%u=getelementptr inbounds i8,i8*%s,i64 -4
%v=bitcast i8*%u to i32*
store i32 1342177288,i32*%v,align 4
store i8*%s,i8**%c,align 8
store i32%n,i32*%t,align 4
%w=getelementptr inbounds i8,i8*%s,i64 4
%x=bitcast i8*%w to i32*
store i32%q,i32*%x,align 4
%y=getelementptr inbounds i8,i8*%s,i64 8
%z=bitcast i8*%y to i32*
store i32 0,i32*%z,align 4
%A=call i8*@sml_alloc(i32 inreg 28)#0
%B=getelementptr inbounds i8,i8*%A,i64 -4
%C=bitcast i8*%B to i32*
store i32 1342177304,i32*%C,align 4
%D=load i8*,i8**%c,align 8
%E=bitcast i8*%A to i8**
store i8*%D,i8**%E,align 8
%F=getelementptr inbounds i8,i8*%A,i64 8
%G=bitcast i8*%F to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common5foldrE_258 to void(...)*),void(...)**%G,align 8
%H=getelementptr inbounds i8,i8*%A,i64 16
%I=bitcast i8*%H to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common5foldrE_258 to void(...)*),void(...)**%I,align 8
%J=getelementptr inbounds i8,i8*%A,i64 24
%K=bitcast i8*%J to i32*
store i32 -2147483647,i32*%K,align 4
call void@llvm.lifetime.end.p0i8(i64 8,i8*%r)
%L=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%M=call fastcc i8*@_SMLLN12Slice__common5foldrE_258(i8*inreg%D,i8*inreg%L)
ret i8*%M
}
define fastcc i8*@_SMLFN16Word8VectorSlice5foldrE(i32 inreg%a,i32 inreg%b)#3 gc"smlsharp"{
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
%d=call i8*@sml_alloc(i32 inreg 12)#0
%e=bitcast i8*%d to i32*
%f=getelementptr inbounds i8,i8*%d,i64 -4
%g=bitcast i8*%f to i32*
store i32 1342177288,i32*%g,align 4
store i8*%d,i8**%c,align 8
store i32%a,i32*%e,align 4
%h=getelementptr inbounds i8,i8*%d,i64 4
%i=bitcast i8*%h to i32*
store i32%b,i32*%i,align 4
%j=getelementptr inbounds i8,i8*%d,i64 8
%k=bitcast i8*%j to i32*
store i32 0,i32*%k,align 4
%l=call i8*@sml_alloc(i32 inreg 28)#0
%m=getelementptr inbounds i8,i8*%l,i64 -4
%n=bitcast i8*%m to i32*
store i32 1342177304,i32*%n,align 4
%o=load i8*,i8**%c,align 8
%p=bitcast i8*%l to i8**
store i8*%o,i8**%p,align 8
%q=getelementptr inbounds i8,i8*%l,i64 8
%r=bitcast i8*%q to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN16Word8VectorSlice5foldrE_320 to void(...)*),void(...)**%r,align 8
%s=getelementptr inbounds i8,i8*%l,i64 16
%t=bitcast i8*%s to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN16Word8VectorSlice5foldrE_320 to void(...)*),void(...)**%t,align 8
%u=getelementptr inbounds i8,i8*%l,i64 24
%v=bitcast i8*%u to i32*
store i32 -2147483647,i32*%v,align 4
ret i8*%l
}
define fastcc i8*@_SMLFN16Word8VectorSlice4appiE(i8*inreg%a)#4 gc"smlsharp"{
k:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%d,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%i,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%d,align 8
br label%i
i:
%j=phi i8*[%h,%g],[%a,%k]
store i8*null,i8**%d,align 8
%l=bitcast i8**%b to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%l)
%m=bitcast i8**%c to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%m)
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%j,i8**%b,align 8
%n=call i8*@sml_alloc(i32 inreg 12)#0
%o=getelementptr inbounds i8,i8*%n,i64 -4
%p=bitcast i8*%o to i32*
store i32 1342177288,i32*%p,align 4
store i8*%n,i8**%c,align 8
%q=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%r=bitcast i8*%n to i8**
store i8*%q,i8**%r,align 8
%s=getelementptr inbounds i8,i8*%n,i64 8
%t=bitcast i8*%s to i32*
store i32 1,i32*%t,align 4
%u=call i8*@sml_alloc(i32 inreg 28)#0
%v=getelementptr inbounds i8,i8*%u,i64 -4
%w=bitcast i8*%v to i32*
store i32 1342177304,i32*%w,align 4
%x=load i8*,i8**%c,align 8
%y=bitcast i8*%u to i8**
store i8*%x,i8**%y,align 8
%z=getelementptr inbounds i8,i8*%u,i64 8
%A=bitcast i8*%z to void(...)**
store void(...)*bitcast(void(i8*,i8*)*@_SMLLN12Slice__common4appiE_262 to void(...)*),void(...)**%A,align 8
%B=getelementptr inbounds i8,i8*%u,i64 16
%C=bitcast i8*%B to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common4appiE_355 to void(...)*),void(...)**%C,align 8
%D=getelementptr inbounds i8,i8*%u,i64 24
%E=bitcast i8*%D to i32*
store i32 -2147483647,i32*%E,align 4
call void@llvm.lifetime.end.p0i8(i64 8,i8*%l)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%m)
ret i8*%u
}
define fastcc i8*@_SMLFN16Word8VectorSlice3appE(i8*inreg%a)#4 gc"smlsharp"{
k:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%d,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%i,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%d,align 8
br label%i
i:
%j=phi i8*[%h,%g],[%a,%k]
store i8*null,i8**%d,align 8
%l=bitcast i8**%b to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%l)
%m=bitcast i8**%c to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%m)
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%j,i8**%b,align 8
%n=call i8*@sml_alloc(i32 inreg 12)#0
%o=getelementptr inbounds i8,i8*%n,i64 -4
%p=bitcast i8*%o to i32*
store i32 1342177288,i32*%p,align 4
store i8*%n,i8**%c,align 8
%q=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%r=bitcast i8*%n to i8**
store i8*%q,i8**%r,align 8
%s=getelementptr inbounds i8,i8*%n,i64 8
%t=bitcast i8*%s to i32*
store i32 1,i32*%t,align 4
%u=call i8*@sml_alloc(i32 inreg 28)#0
%v=getelementptr inbounds i8,i8*%u,i64 -4
%w=bitcast i8*%v to i32*
store i32 1342177304,i32*%w,align 4
%x=load i8*,i8**%c,align 8
%y=bitcast i8*%u to i8**
store i8*%x,i8**%y,align 8
%z=getelementptr inbounds i8,i8*%u,i64 8
%A=bitcast i8*%z to void(...)**
store void(...)*bitcast(void(i8*,i8*)*@_SMLLN12Slice__common3appE_266 to void(...)*),void(...)**%A,align 8
%B=getelementptr inbounds i8,i8*%u,i64 16
%C=bitcast i8*%B to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common3appE_358 to void(...)*),void(...)**%C,align 8
%D=getelementptr inbounds i8,i8*%u,i64 24
%E=bitcast i8*%D to i32*
store i32 -2147483647,i32*%E,align 4
call void@llvm.lifetime.end.p0i8(i64 8,i8*%l)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%m)
ret i8*%u
}
define fastcc i8*@_SMLFN16Word8VectorSlice4mapiE(i8*inreg%a)#4 gc"smlsharp"{
k:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%d,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%i,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%d,align 8
br label%i
i:
%j=phi i8*[%h,%g],[%a,%k]
store i8*null,i8**%d,align 8
%l=bitcast i8**%b to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%l)
%m=bitcast i8**%c to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%m)
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%j,i8**%b,align 8
%n=call i8*@sml_alloc(i32 inreg 12)#0
%o=getelementptr inbounds i8,i8*%n,i64 -4
%p=bitcast i8*%o to i32*
store i32 1342177288,i32*%p,align 4
store i8*%n,i8**%c,align 8
%q=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%r=bitcast i8*%n to i8**
store i8*%q,i8**%r,align 8
%s=getelementptr inbounds i8,i8*%n,i64 8
%t=bitcast i8*%s to i32*
store i32 1,i32*%t,align 4
%u=call i8*@sml_alloc(i32 inreg 28)#0
%v=getelementptr inbounds i8,i8*%u,i64 -4
%w=bitcast i8*%v to i32*
store i32 1342177304,i32*%w,align 4
%x=load i8*,i8**%c,align 8
%y=bitcast i8*%u to i8**
store i8*%x,i8**%y,align 8
%z=getelementptr inbounds i8,i8*%u,i64 8
%A=bitcast i8*%z to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common4mapiE_286 to void(...)*),void(...)**%A,align 8
%B=getelementptr inbounds i8,i8*%u,i64 16
%C=bitcast i8*%B to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common4mapiE_286 to void(...)*),void(...)**%C,align 8
%D=getelementptr inbounds i8,i8*%u,i64 24
%E=bitcast i8*%D to i32*
store i32 -2147483647,i32*%E,align 4
call void@llvm.lifetime.end.p0i8(i64 8,i8*%l)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%m)
ret i8*%u
}
define fastcc i8*@_SMLFN16Word8VectorSlice3mapE(i8*inreg%a)#4 gc"smlsharp"{
k:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%d,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%i,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%d,align 8
br label%i
i:
%j=phi i8*[%h,%g],[%a,%k]
store i8*null,i8**%d,align 8
%l=bitcast i8**%b to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%l)
%m=bitcast i8**%c to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%m)
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%j,i8**%b,align 8
%n=call i8*@sml_alloc(i32 inreg 12)#0
%o=getelementptr inbounds i8,i8*%n,i64 -4
%p=bitcast i8*%o to i32*
store i32 1342177288,i32*%p,align 4
store i8*%n,i8**%c,align 8
%q=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%r=bitcast i8*%n to i8**
store i8*%q,i8**%r,align 8
%s=getelementptr inbounds i8,i8*%n,i64 8
%t=bitcast i8*%s to i32*
store i32 1,i32*%t,align 4
%u=call i8*@sml_alloc(i32 inreg 28)#0
%v=getelementptr inbounds i8,i8*%u,i64 -4
%w=bitcast i8*%v to i32*
store i32 1342177304,i32*%w,align 4
%x=load i8*,i8**%c,align 8
%y=bitcast i8*%u to i8**
store i8*%x,i8**%y,align 8
%z=getelementptr inbounds i8,i8*%u,i64 8
%A=bitcast i8*%z to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common3mapE_290 to void(...)*),void(...)**%A,align 8
%B=getelementptr inbounds i8,i8*%u,i64 16
%C=bitcast i8*%B to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN12Slice__common3mapE_290 to void(...)*),void(...)**%C,align 8
%D=getelementptr inbounds i8,i8*%u,i64 24
%E=bitcast i8*%D to i32*
store i32 -2147483647,i32*%E,align 4
call void@llvm.lifetime.end.p0i8(i64 8,i8*%l)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%m)
ret i8*%u
}
define internal fastcc i8*@_SMLLN12Slice__common3subE_331(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i8@_SMLFN16Word8VectorSlice3subE(i8*inreg%b)
%d=tail call i8*@sml_alloc(i32 inreg 1)#0
%e=getelementptr inbounds i8,i8*%d,i64 -4
%f=bitcast i8*%e to i32*
store i32 1,i32*%f,align 4
store i8%c,i8*%d,align 1
ret i8*%d
}
define internal fastcc i8*@_SMLLN12Slice__common6vectorE_335(i8*inreg%a,i8*inreg%b)#3 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN16Word8VectorSlice6vectorE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLL4loop_340(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
tail call fastcc void@_SMLL4loop_215(i8*inreg%a,i8*inreg%b)
%c=tail call i8*@sml_alloc(i32 inreg 4)#0
%d=bitcast i8*%c to i32*
%e=getelementptr inbounds i8,i8*%c,i64 -4
%f=bitcast i8*%e to i32*
store i32 4,i32*%f,align 4
store i32 0,i32*%d,align 4
ret i8*%c
}
define internal fastcc i8*@_SMLLN12Slice__common6concatE_341(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN16Word8VectorSlice6concatE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLL4loop_342(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i32@_SMLL4loop_218(i8*inreg%a,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*@_SMLLN12Slice__common7collateE_343(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i32@_SMLLN12Slice__common7collateE_219(i8*inreg%a,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*@_SMLLN12Slice__common7collateE_344(i8*inreg%a,i8*inreg%b)#3 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN16Word8VectorSlice7collateE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLN12Slice__common8subsliceE_348(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN16Word8VectorSlice8subsliceE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLN12Slice__common7getItemE_349(i8*inreg%a,i8*inreg%b)#3 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN16Word8VectorSlice7getItemE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLL4loop_354(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
tail call fastcc void@_SMLL4loop_261(i8*inreg%a,i32 inreg%d)
%e=tail call i8*@sml_alloc(i32 inreg 4)#0
%f=bitcast i8*%e to i32*
%g=getelementptr inbounds i8,i8*%e,i64 -4
%h=bitcast i8*%g to i32*
store i32 4,i32*%h,align 4
store i32 0,i32*%f,align 4
ret i8*%e
}
define internal fastcc i8*@_SMLLN12Slice__common4appiE_355(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
tail call fastcc void@_SMLLN12Slice__common4appiE_262(i8*inreg%a,i8*inreg%b)
%c=tail call i8*@sml_alloc(i32 inreg 4)#0
%d=bitcast i8*%c to i32*
%e=getelementptr inbounds i8,i8*%c,i64 -4
%f=bitcast i8*%e to i32*
store i32 4,i32*%f,align 4
store i32 0,i32*%d,align 4
ret i8*%c
}
define internal fastcc i8*@_SMLL4loop_357(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
tail call fastcc void@_SMLL4loop_265(i8*inreg%a,i32 inreg%d)
%e=tail call i8*@sml_alloc(i32 inreg 4)#0
%f=bitcast i8*%e to i32*
%g=getelementptr inbounds i8,i8*%e,i64 -4
%h=bitcast i8*%g to i32*
store i32 4,i32*%h,align 4
store i32 0,i32*%f,align 4
ret i8*%e
}
define internal fastcc i8*@_SMLLN12Slice__common3appE_358(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
tail call fastcc void@_SMLLN12Slice__common3appE_266(i8*inreg%a,i8*inreg%b)
%c=tail call i8*@sml_alloc(i32 inreg 4)#0
%d=bitcast i8*%c to i32*
%e=getelementptr inbounds i8,i8*%c,i64 -4
%f=bitcast i8*%e to i32*
store i32 4,i32*%f,align 4
store i32 0,i32*%d,align 4
ret i8*%c
}
define internal fastcc i8*@_SMLL4loop_360(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=tail call fastcc i8*@_SMLL4loop_269(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLN12Slice__common5findiE_361(i8*inreg%a,i8*inreg%b)#3 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN16Word8VectorSlice5findiE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLL4loop_362(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=tail call fastcc i8*@_SMLL4loop_273(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLN12Slice__common4findE_363(i8*inreg%a,i8*inreg%b)#3 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN16Word8VectorSlice4findE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLL4loop_364(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=tail call fastcc i32@_SMLL4loop_277(i8*inreg%a,i32 inreg%d)
%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
}
define internal fastcc i8*@_SMLLN12Slice__common6existsE_365(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i32@_SMLLN12Slice__common6existsE_278(i8*inreg%a,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*@_SMLLN12Slice__common6existsE_366(i8*inreg%a,i8*inreg%b)#3 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN16Word8VectorSlice6existsE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLL4loop_367(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=tail call fastcc i32@_SMLL4loop_281(i8*inreg%a,i32 inreg%d)
%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
}
define internal fastcc i8*@_SMLLN12Slice__common3allE_368(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i32@_SMLLN12Slice__common3allE_282(i8*inreg%a,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*@_SMLLN12Slice__common3allE_369(i8*inreg%a,i8*inreg%b)#3 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN16Word8VectorSlice3allE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLL4loop_370(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
tail call fastcc void@_SMLL4loop_285(i8*inreg%a,i32 inreg%d)
%e=tail call i8*@sml_alloc(i32 inreg 4)#0
%f=bitcast i8*%e to i32*
%g=getelementptr inbounds i8,i8*%e,i64 -4
%h=bitcast i8*%g to i32*
store i32 4,i32*%h,align 4
store i32 0,i32*%f,align 4
ret i8*%e
}
define internal fastcc i8*@_SMLL4loop_372(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
tail call fastcc void@_SMLL4loop_289(i8*inreg%a,i32 inreg%d)
%e=tail call i8*@sml_alloc(i32 inreg 4)#0
%f=bitcast i8*%e to i32*
%g=getelementptr inbounds i8,i8*%e,i64 -4
%h=bitcast i8*%g to i32*
store i32 4,i32*%h,align 4
store i32 0,i32*%f,align 4
ret i8*%e
}
define internal fastcc i8*@_SMLLN16Word8VectorSlice6lengthE_380(i8*inreg%a,i8*inreg%b)#3 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
}
define internal fastcc i8*@_SMLLN16Word8VectorSlice4fullE_381(i8*inreg%a,i8*inreg%b)#3 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN16Word8VectorSlice4fullE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLN16Word8VectorSlice5sliceE_382(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN16Word8VectorSlice5sliceE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLN16Word8VectorSlice4baseE_383(i8*inreg%a,i8*inreg%b)#3 gc"smlsharp"{
ret i8*%b
}
define internal fastcc i8*@_SMLLN16Word8VectorSlice7isEmptyE_384(i8*inreg%a,i8*inreg%b)#3 gc"smlsharp"{
%c=getelementptr inbounds i8,i8*%b,i64 12
%d=bitcast i8*%c to i32*
%e=load i32,i32*%d,align 4
%f=icmp eq i32%e,0
%g=zext i1%f to i32
%h=tail call i8*@sml_alloc(i32 inreg 4)#0
%i=bitcast i8*%h to i32*
%j=getelementptr inbounds i8,i8*%h,i64 -4
%k=bitcast i8*%j to i32*
store i32 4,i32*%k,align 4
store i32%g,i32*%i,align 4
ret i8*%h
}
define internal fastcc i8*@_SMLLN16Word8VectorSlice6foldliE_385(i8*inreg%a,i8*inreg%b,i8*inreg%c)#3 gc"smlsharp"{
%d=bitcast i8*%b to i32*
%e=load i32,i32*%d,align 4
%f=bitcast i8*%c to i32*
%g=load i32,i32*%f,align 4
%h=tail call fastcc i8*@_SMLFN16Word8VectorSlice6foldliE(i32 inreg%e,i32 inreg%g)
ret i8*%h
}
define internal fastcc i8*@_SMLLN16Word8VectorSlice5foldlE_386(i8*inreg%a,i8*inreg%b,i8*inreg%c)#3 gc"smlsharp"{
%d=bitcast i8*%b to i32*
%e=load i32,i32*%d,align 4
%f=bitcast i8*%c to i32*
%g=load i32,i32*%f,align 4
%h=tail call fastcc i8*@_SMLFN16Word8VectorSlice5foldlE(i32 inreg%e,i32 inreg%g)
ret i8*%h
}
define internal fastcc i8*@_SMLLN16Word8VectorSlice6foldriE_387(i8*inreg%a,i8*inreg%b,i8*inreg%c)#3 gc"smlsharp"{
%d=bitcast i8*%b to i32*
%e=load i32,i32*%d,align 4
%f=bitcast i8*%c to i32*
%g=load i32,i32*%f,align 4
%h=tail call fastcc i8*@_SMLFN16Word8VectorSlice6foldriE(i32 inreg%e,i32 inreg%g)
ret i8*%h
}
define internal fastcc i8*@_SMLLN16Word8VectorSlice5foldrE_388(i8*inreg%a,i8*inreg%b,i8*inreg%c)#3 gc"smlsharp"{
%d=bitcast i8*%b to i32*
%e=load i32,i32*%d,align 4
%f=bitcast i8*%c to i32*
%g=load i32,i32*%f,align 4
%h=tail call fastcc i8*@_SMLFN16Word8VectorSlice5foldrE(i32 inreg%e,i32 inreg%g)
ret i8*%h
}
define internal fastcc i8*@_SMLLN16Word8VectorSlice4appiE_389(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN16Word8VectorSlice4appiE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLN16Word8VectorSlice3appE_390(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN16Word8VectorSlice3appE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLN16Word8VectorSlice4mapiE_391(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN16Word8VectorSlice4mapiE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLN16Word8VectorSlice3mapE_392(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN16Word8VectorSlice3mapE(i8*inreg%b)
ret i8*%c
}
declare void@llvm.memcpy.p0i8.p0i8.i32(i8*,i8*,i32,i1)#0
declare void@llvm.memmove.p0i8.p0i8.i32(i8*,i8*,i32,i1)#0
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={noreturn nounwind}
attributes#3={nounwind uwtable}
attributes#4={uwtable}
