@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,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i8*)*@_SMLLLN11VectorSlice6lengthE_190 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11VectorSlice6lengthE_288 to void(...)*),i32 -2147483647}>,align 8
@b=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32,i32)*@_SMLFN11VectorSlice6lengthE to void(...)*),void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLLN11VectorSlice6lengthE_289 to void(...)*),i32 -2147483647}>,align 8
@c=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
@d=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32,i32)*@_SMLFN11VectorSlice3subE to void(...)*),void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLLN11VectorSlice3subE_290 to void(...)*),i32 -2147483647}>,align 8
@e=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32,i32)*@_SMLFN11VectorSlice4fullE to void(...)*),void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLLN11VectorSlice4fullE_291 to void(...)*),i32 -2147483647}>,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:205.19(7202)\00"}>,align 8
@g=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
@h=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32,i32)*@_SMLFN11VectorSlice5sliceE to void(...)*),void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLLN11VectorSlice5sliceE_292 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:223.64(7836)\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:219.54(7648)\00"}>,align 8
@k=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLLLN11VectorSlice8subsliceE_208 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11VectorSlice8subsliceE_293 to void(...)*),i32 -2147483647}>,align 8
@l=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32,i32)*@_SMLFN11VectorSlice8subsliceE to void(...)*),void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLLN11VectorSlice8subsliceE_294 to void(...)*),i32 -2147483647}>,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*)*@_SMLLLN11VectorSlice4baseE_212 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11VectorSlice4baseE_295 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*(i32,i32)*@_SMLFN11VectorSlice4baseE to void(...)*),void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLLN11VectorSlice4baseE_296 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*(i32,i32)*@_SMLFN11VectorSlice6vectorE to void(...)*),void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLLN11VectorSlice6vectorE_297 to void(...)*),i32 -2147483647}>,align 8
@p=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
@q=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
@r=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
@s=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32,i32)*@_SMLFN11VectorSlice6concatE to void(...)*),void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLLN11VectorSlice6concatE_298 to void(...)*),i32 -2147483647}>,align 8
@t=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i8*)*@_SMLLLN11VectorSlice7isEmptyE_225 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11VectorSlice7isEmptyE_299 to void(...)*),i32 -2147483647}>,align 8
@u=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32,i32)*@_SMLFN11VectorSlice7isEmptyE to void(...)*),void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLLN11VectorSlice7isEmptyE_300 to void(...)*),i32 -2147483647}>,align 8
@v=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32,i32)*@_SMLFN11VectorSlice7getItemE to void(...)*),void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLLN11VectorSlice7getItemE_301 to void(...)*),i32 -2147483647}>,align 8
@w=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32,i32)*@_SMLFN11VectorSlice4appiE to void(...)*),void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLLN11VectorSlice4appiE_303 to void(...)*),i32 -2147483647}>,align 8
@x=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32,i32)*@_SMLFN11VectorSlice3appE to void(...)*),void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLLN11VectorSlice3appE_305 to void(...)*),i32 -2147483647}>,align 8
@y=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32,i32,i32,i32)*@_SMLFN11VectorSlice4mapiE to void(...)*),void(...)*bitcast(i8*(i8*,i8*,i8*,i8*,i8*)*@_SMLLLN11VectorSlice4mapiE_306 to void(...)*),i32 -2147483647}>,align 8
@z=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32,i32,i32,i32)*@_SMLFN11VectorSlice3mapE to void(...)*),void(...)*bitcast(i8*(i8*,i8*,i8*,i8*,i8*)*@_SMLLLN11VectorSlice3mapE_307 to void(...)*),i32 -2147483647}>,align 8
@A=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32,i32,i32,i32)*@_SMLFN11VectorSlice6foldliE to void(...)*),void(...)*bitcast(i8*(i8*,i8*,i8*,i8*,i8*)*@_SMLLLN11VectorSlice6foldliE_308 to void(...)*),i32 -2147483647}>,align 8
@B=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32,i32,i32,i32)*@_SMLFN11VectorSlice6foldriE to void(...)*),void(...)*bitcast(i8*(i8*,i8*,i8*,i8*,i8*)*@_SMLLLN11VectorSlice6foldriE_309 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*(i32,i32,i32,i32)*@_SMLFN11VectorSlice5foldlE to void(...)*),void(...)*bitcast(i8*(i8*,i8*,i8*,i8*,i8*)*@_SMLLLN11VectorSlice5foldlE_310 to void(...)*),i32 -2147483647}>,align 8
@D=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32,i32,i32,i32)*@_SMLFN11VectorSlice5foldrE to void(...)*),void(...)*bitcast(i8*(i8*,i8*,i8*,i8*,i8*)*@_SMLLLN11VectorSlice5foldrE_311 to void(...)*),i32 -2147483647}>,align 8
@E=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32,i32)*@_SMLFN11VectorSlice5findiE to void(...)*),void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLLN11VectorSlice5findiE_312 to void(...)*),i32 -2147483647}>,align 8
@F=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32,i32)*@_SMLFN11VectorSlice4findE to void(...)*),void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLLN11VectorSlice4findE_313 to void(...)*),i32 -2147483647}>,align 8
@G=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32,i32)*@_SMLFN11VectorSlice6existsE to void(...)*),void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLLN11VectorSlice6existsE_315 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*(i32,i32)*@_SMLFN11VectorSlice3allE to void(...)*),void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLLN11VectorSlice3allE_317 to void(...)*),i32 -2147483647}>,align 8
@I=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32,i32)*@_SMLFN11VectorSlice7collateE to void(...)*),void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLLN11VectorSlice7collateE_319 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN11VectorSlice6lengthE=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*)
@_SMLZN11VectorSlice3subE=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*)
@_SMLZN11VectorSlice4fullE=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*)
@_SMLZN11VectorSlice5sliceE=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*)
@_SMLZN11VectorSlice8subsliceE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@l,i64 0,i32 2)to i8*)
@_SMLZN11VectorSlice4baseE=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*)
@_SMLZN11VectorSlice6vectorE=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*)
@_SMLZN11VectorSlice6concatE=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*)
@_SMLZN11VectorSlice7isEmptyE=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*)
@_SMLZN11VectorSlice7getItemE=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*)
@_SMLZN11VectorSlice4appiE=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*)
@_SMLZN11VectorSlice3appE=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*)
@_SMLZN11VectorSlice4mapiE=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*)
@_SMLZN11VectorSlice3mapE=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*)
@_SMLZN11VectorSlice6foldliE=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*)
@_SMLZN11VectorSlice6foldriE=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*)
@_SMLZN11VectorSlice5foldlE=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*)
@_SMLZN11VectorSlice5foldrE=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*)
@_SMLZN11VectorSlice5findiE=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*)
@_SMLZN11VectorSlice4findE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@F,i64 0,i32 2)to i8*)
@_SMLZN11VectorSlice6existsE=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*)
@_SMLZN11VectorSlice3allE=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*)
@_SMLZN11VectorSlice7collateE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@I,i64 0,i32 2)to i8*)
@_SML_ftab2cf4c9e547773021_VectorSlice=external global i8
@J=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_copyary(i8**,i32,i8**,i32,i32)local_unnamed_addr#0
declare void@sml_gcroot(i8*,void()*,i8*,i8*)local_unnamed_addr#0
declare i32@sml_personality(...)#0
declare void@sml_raise(i8*inreg)local_unnamed_addr#1
declare i8*@sml_save()local_unnamed_addr#0
declare void@sml_unsave()local_unnamed_addr#0
declare void@sml_write(i8*inreg,i8**inreg,i8*inreg)local_unnamed_addr#0
define private void@_SML_tabb2cf4c9e547773021_VectorSlice()#2{
unreachable
}
define void@_SML_load2cf4c9e547773021_VectorSlice(i8*%a)local_unnamed_addr#0{
%b=load i1,i1*@J,align 1
br i1%b,label%c,label%d
c:
ret void
d:
store i1 true,i1*@J,align 1
tail call void@sml_gcroot(i8*%a,void()*@_SML_tabb2cf4c9e547773021_VectorSlice,i8*@_SML_ftab2cf4c9e547773021_VectorSlice,i8*null)#0
ret void
}
define void@_SML_main2cf4c9e547773021_VectorSlice()local_unnamed_addr#3 gc"smlsharp"{
ret void
}
define internal fastcc i32@_SMLLLN11VectorSlice6lengthE_190(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*@_SMLFN11VectorSlice6lengthE(i32 inreg%a,i32 inreg%b)#3 gc"smlsharp"{
ret 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*)
}
define internal fastcc i8*@_SMLLLN11VectorSlice3subE_195(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
%e=bitcast i8*%b to i8**
%f=load i8*,i8**%e,align 8
%g=bitcast i8*%f to i8**
%h=load i8*,i8**%g,align 8
store i8*%h,i8**%c,align 8
%i=getelementptr inbounds i8,i8*%f,i64 12
%j=bitcast i8*%i to i32*
%k=load i32,i32*%j,align 4
%l=getelementptr inbounds i8,i8*%b,i64 8
%m=bitcast i8*%l to i32*
%n=load i32,i32*%m,align 4
%o=icmp sgt i32%n,-1
%p=icmp sgt i32%k,%n
%q=and i1%o,%p
br i1%q,label%J,label%r
r:
%s=load i8*,i8**@_SMLZ9Subscript,align 8
store i8*%s,i8**%c,align 8
%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**%d,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 i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@c,i64 0,i32 2,i64 0),i8**%z,align 8
%A=getelementptr inbounds i8,i8*%t,i64 16
%B=bitcast i8*%A to i32*
store i32 3,i32*%B,align 4
%C=call i8*@sml_alloc(i32 inreg 60)#0
%D=getelementptr inbounds i8,i8*%C,i64 -4
%E=bitcast i8*%D to i32*
store i32 1342177336,i32*%E,align 4
%F=getelementptr inbounds i8,i8*%C,i64 56
%G=bitcast i8*%F to i32*
store i32 1,i32*%G,align 4
%H=load i8*,i8**%d,align 8
%I=bitcast i8*%C to i8**
store i8*%H,i8**%I,align 8
call void@sml_raise(i8*inreg%C)#1
unreachable
J:
%K=getelementptr inbounds i8,i8*%f,i64 8
%L=bitcast i8*%K to i32*
%M=load i32,i32*%L,align 4
%N=add nsw i32%M,%n
%O=getelementptr inbounds i8,i8*%a,i64 4
%P=bitcast i8*%O to i32*
%Q=load i32,i32*%P,align 4
%R=bitcast i8*%a to i32*
%S=load i32,i32*%R,align 4
%T=icmp eq i32%S,0
br i1%T,label%aa,label%U
U:
%V=mul i32%Q,%N
%W=sext i32%V to i64
%X=getelementptr inbounds i8,i8*%h,i64%W
%Y=bitcast i8*%X to i8**
%Z=load i8*,i8**%Y,align 8
ret i8*%Z
aa:
%ab=call i8*@sml_alloc(i32 inreg%Q)#0
%ac=getelementptr inbounds i8,i8*%ab,i64 -4
%ad=bitcast i8*%ac to i32*
store i32%Q,i32*%ad,align 4
%ae=load i8*,i8**%c,align 8
%af=mul i32%Q,%N
%ag=sext i32%af to i64
%ah=getelementptr inbounds i8,i8*%ae,i64%ag
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%ab,i8*%ah,i32%Q,i1 false)
ret i8*%ab
}
define fastcc i8*@_SMLFN11VectorSlice3subE(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*)*@_SMLLLN11VectorSlice3subE_195 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*)*@_SMLLLN11VectorSlice3subE_195 to void(...)*),void(...)**%t,align 8
%u=getelementptr inbounds i8,i8*%l,i64 24
%v=bitcast i8*%u to i32*
store i32 1,i32*%v,align 4
ret i8*%l
}
define internal fastcc i8*@_SMLLLN11VectorSlice4fullE_198(i8*inreg%a,i8*inreg%b)#3 gc"smlsharp"{
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%b,i8**%c,align 8
%d=getelementptr inbounds i8,i8*%b,i64 -4
%e=bitcast i8*%d to i32*
%f=load i32,i32*%e,align 4
%g=and i32%f,268435455
%h=bitcast i8*%a to i32*
%i=load i32,i32*%h,align 4
%j=udiv i32%g,%i
%k=call i8*@sml_alloc(i32 inreg 20)#0
%l=getelementptr inbounds i8,i8*%k,i64 -4
%m=bitcast i8*%l to i32*
store i32 1342177296,i32*%m,align 4
%n=load i8*,i8**%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 i32*
store i32 0,i32*%q,align 4
%r=getelementptr inbounds i8,i8*%k,i64 12
%s=bitcast i8*%r to i32*
store i32%j,i32*%s,align 4
%t=getelementptr inbounds i8,i8*%k,i64 16
%u=bitcast i8*%t to i32*
store i32 1,i32*%u,align 4
ret i8*%k
}
define fastcc i8*@_SMLFN11VectorSlice4fullE(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%b,i32*%e,align 4
%h=getelementptr inbounds i8,i8*%d,i64 8
%i=bitcast i8*%h to i32*
store i32 0,i32*%i,align 4
%j=call i8*@sml_alloc(i32 inreg 28)#0
%k=getelementptr inbounds i8,i8*%j,i64 -4
%l=bitcast i8*%k to i32*
store i32 1342177304,i32*%l,align 4
%m=load i8*,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 void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11VectorSlice4fullE_198 to void(...)*),void(...)**%p,align 8
%q=getelementptr inbounds i8,i8*%j,i64 16
%r=bitcast i8*%q to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11VectorSlice4fullE_198 to void(...)*),void(...)**%r,align 8
%s=getelementptr inbounds i8,i8*%j,i64 24
%t=bitcast i8*%s to i32*
store i32 -2147483647,i32*%t,align 4
ret i8*%j
}
define internal fastcc i8*@_SMLLLN11VectorSlice5sliceE_203(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
%e=bitcast i8*%b to i8**
%f=load i8*,i8**%e,align 8
store i8*%f,i8**%c,align 8
%g=getelementptr inbounds i8,i8*%b,i64 8
%h=bitcast i8*%g to i32*
%i=load i32,i32*%h,align 4
%j=getelementptr inbounds i8,i8*%b,i64 16
%k=bitcast i8*%j to i8**
%l=load i8*,i8**%k,align 8
%m=icmp eq i8*%l,null
br i1%m,label%n,label%ab
n:
%o=getelementptr inbounds i8,i8*%f,i64 -4
%p=bitcast i8*%o to i32*
%q=load i32,i32*%p,align 4
%r=and i32%q,268435455
%s=bitcast i8*%a to i32*
%t=load i32,i32*%s,align 4
%u=udiv i32%r,%t
%v=icmp ult i32%u,%i
br i1%v,label%w,label%O
w:
%x=load i8*,i8**@_SMLZ9Subscript,align 8
store i8*%x,i8**%c,align 8
%y=call i8*@sml_alloc(i32 inreg 20)#0
%z=getelementptr inbounds i8,i8*%y,i64 -4
%A=bitcast i8*%z to i32*
store i32 1342177296,i32*%A,align 4
store i8*%y,i8**%d,align 8
%B=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%C=bitcast i8*%y to i8**
store i8*%B,i8**%C,align 8
%D=getelementptr inbounds i8,i8*%y,i64 8
%E=bitcast i8*%D to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@g,i64 0,i32 2,i64 0),i8**%E,align 8
%F=getelementptr inbounds i8,i8*%y,i64 16
%G=bitcast i8*%F to i32*
store i32 3,i32*%G,align 4
%H=call i8*@sml_alloc(i32 inreg 60)#0
%I=getelementptr inbounds i8,i8*%H,i64 -4
%J=bitcast i8*%I to i32*
store i32 1342177336,i32*%J,align 4
%K=getelementptr inbounds i8,i8*%H,i64 56
%L=bitcast i8*%K to i32*
store i32 1,i32*%L,align 4
%M=load i8*,i8**%d,align 8
%N=bitcast i8*%H to i8**
store i8*%M,i8**%N,align 8
call void@sml_raise(i8*inreg%H)#1
unreachable
O:
%P=sub nsw i32%u,%i
%Q=call i8*@sml_alloc(i32 inreg 20)#0
%R=getelementptr inbounds i8,i8*%Q,i64 -4
%S=bitcast i8*%R to i32*
store i32 1342177296,i32*%S,align 4
%T=load i8*,i8**%c,align 8
%U=bitcast i8*%Q to i8**
store i8*%T,i8**%U,align 8
%V=getelementptr inbounds i8,i8*%Q,i64 8
%W=bitcast i8*%V to i32*
store i32%i,i32*%W,align 4
%X=getelementptr inbounds i8,i8*%Q,i64 12
%Y=bitcast i8*%X to i32*
store i32%P,i32*%Y,align 4
%Z=getelementptr inbounds i8,i8*%Q,i64 16
%aa=bitcast i8*%Z to i32*
store i32 1,i32*%aa,align 4
ret i8*%Q
ab:
%ac=bitcast i8*%l to i32*
%ad=load i32,i32*%ac,align 4
%ae=getelementptr inbounds i8,i8*%f,i64 -4
%af=bitcast i8*%ae to i32*
%ag=load i32,i32*%af,align 4
%ah=and i32%ag,268435455
%ai=bitcast i8*%a to i32*
%aj=load i32,i32*%ai,align 4
%ak=udiv i32%ah,%aj
%al=icmp ult i32%ak,%i
%am=icmp slt i32%ad,0
%an=sub nsw i32%ak,%i
%ao=icmp slt i32%an,%ad
%ap=or i1%am,%al
%aq=or i1%ao,%ap
br i1%aq,label%ar,label%aJ
ar:
%as=load i8*,i8**@_SMLZ9Subscript,align 8
store i8*%as,i8**%c,align 8
%at=call i8*@sml_alloc(i32 inreg 20)#0
%au=getelementptr inbounds i8,i8*%at,i64 -4
%av=bitcast i8*%au to i32*
store i32 1342177296,i32*%av,align 4
store i8*%at,i8**%d,align 8
%aw=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ax=bitcast i8*%at to i8**
store i8*%aw,i8**%ax,align 8
%ay=getelementptr inbounds i8,i8*%at,i64 8
%az=bitcast i8*%ay to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@f,i64 0,i32 2,i64 0),i8**%az,align 8
%aA=getelementptr inbounds i8,i8*%at,i64 16
%aB=bitcast i8*%aA to i32*
store i32 3,i32*%aB,align 4
%aC=call i8*@sml_alloc(i32 inreg 60)#0
%aD=getelementptr inbounds i8,i8*%aC,i64 -4
%aE=bitcast i8*%aD to i32*
store i32 1342177336,i32*%aE,align 4
%aF=getelementptr inbounds i8,i8*%aC,i64 56
%aG=bitcast i8*%aF to i32*
store i32 1,i32*%aG,align 4
%aH=load i8*,i8**%d,align 8
%aI=bitcast i8*%aC to i8**
store i8*%aH,i8**%aI,align 8
call void@sml_raise(i8*inreg%aC)#1
unreachable
aJ:
%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=load i8*,i8**%c,align 8
%aO=bitcast i8*%aK to i8**
store i8*%aN,i8**%aO,align 8
%aP=getelementptr inbounds i8,i8*%aK,i64 8
%aQ=bitcast i8*%aP to i32*
store i32%i,i32*%aQ,align 4
%aR=getelementptr inbounds i8,i8*%aK,i64 12
%aS=bitcast i8*%aR to i32*
store i32%ad,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
ret i8*%aK
}
define fastcc i8*@_SMLFN11VectorSlice5sliceE(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%b,i32*%e,align 4
%h=getelementptr inbounds i8,i8*%d,i64 8
%i=bitcast i8*%h to i32*
store i32 0,i32*%i,align 4
%j=call i8*@sml_alloc(i32 inreg 28)#0
%k=getelementptr inbounds i8,i8*%j,i64 -4
%l=bitcast i8*%k to i32*
store i32 1342177304,i32*%l,align 4
%m=load i8*,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 void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11VectorSlice5sliceE_203 to void(...)*),void(...)**%p,align 8
%q=getelementptr inbounds i8,i8*%j,i64 16
%r=bitcast i8*%q to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11VectorSlice5sliceE_203 to void(...)*),void(...)**%r,align 8
%s=getelementptr inbounds i8,i8*%j,i64 24
%t=bitcast i8*%s to i32*
store i32 -2147483647,i32*%t,align 4
ret i8*%j
}
define internal fastcc i8*@_SMLLLN11VectorSlice8subsliceE_208(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=bitcast i8*%e to i8**
%g=load i8*,i8**%f,align 8
store i8*%g,i8**%b,align 8
%h=getelementptr inbounds i8,i8*%e,i64 8
%i=bitcast i8*%h to i32*
%j=load i32,i32*%i,align 4
%k=getelementptr inbounds i8,i8*%e,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=getelementptr inbounds i8,i8*%a,i64 16
%r=bitcast i8*%q to i8**
%s=load i8*,i8**%r,align 8
%t=icmp sgt i32%p,-1
%u=icmp sge i32%m,%p
%v=and i1%t,%u
br i1%v,label%O,label%w
w:
%x=load i8*,i8**@_SMLZ9Subscript,align 8
store i8*%x,i8**%b,align 8
%y=call i8*@sml_alloc(i32 inreg 20)#0
%z=getelementptr inbounds i8,i8*%y,i64 -4
%A=bitcast i8*%z to i32*
store i32 1342177296,i32*%A,align 4
store i8*%y,i8**%c,align 8
%B=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%C=bitcast i8*%y to i8**
store i8*%B,i8**%C,align 8
%D=getelementptr inbounds i8,i8*%y,i64 8
%E=bitcast i8*%D to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@j,i64 0,i32 2,i64 0),i8**%E,align 8
%F=getelementptr inbounds i8,i8*%y,i64 16
%G=bitcast i8*%F to i32*
store i32 3,i32*%G,align 4
%H=call i8*@sml_alloc(i32 inreg 60)#0
%I=getelementptr inbounds i8,i8*%H,i64 -4
%J=bitcast i8*%I to i32*
store i32 1342177336,i32*%J,align 4
%K=getelementptr inbounds i8,i8*%H,i64 56
%L=bitcast i8*%K to i32*
store i32 1,i32*%L,align 4
%M=load i8*,i8**%c,align 8
%N=bitcast i8*%H to i8**
store i8*%M,i8**%N,align 8
call void@sml_raise(i8*inreg%H)#1
unreachable
O:
%P=icmp eq i8*%s,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*%s 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]}>*@i,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*@_SMLFN11VectorSlice8subsliceE(i32 inreg%a,i32 inreg%b)#3 gc"smlsharp"{
ret i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@k,i64 0,i32 2)to i8*)
}
define internal fastcc i8*@_SMLLLN11VectorSlice4baseE_212(i8*inreg%a)#3 gc"smlsharp"{
ret i8*%a
}
define fastcc i8*@_SMLFN11VectorSlice4baseE(i32 inreg%a,i32 inreg%b)#3 gc"smlsharp"{
ret 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*)
}
define internal fastcc i8*@_SMLLLN11VectorSlice6vectorE_216(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*%a,i8**%d,align 8
%e=bitcast i8*%b to i8**
%f=load i8*,i8**%e,align 8
store i8*%f,i8**%c,align 8
%g=getelementptr inbounds i8,i8*%b,i64 8
%h=bitcast i8*%g to i32*
%i=load i32,i32*%h,align 4
%j=getelementptr inbounds i8,i8*%b,i64 12
%k=bitcast i8*%j to i32*
%l=load i32,i32*%k,align 4
%m=bitcast i8*%a to i32*
%n=load i32,i32*%m,align 4
%o=getelementptr inbounds i8,i8*%a,i64 4
%p=bitcast i8*%o to i32*
%q=load i32,i32*%p,align 4
%r=mul nsw i32%q,%l
%s=call i8*@sml_alloc(i32 inreg%r)#0
%t=shl i32%n,28
%u=or i32%r,%t
%v=getelementptr inbounds i8,i8*%s,i64 -4
%w=bitcast i8*%v to i32*
store i32%u,i32*%w,align 4
%x=icmp eq i32%n,0
br i1%x,label%z,label%y
y:
call void@llvm.memset.p0i8.i32(i8*%s,i8 0,i32%r,i1 false)
br label%z
z:
%A=load i8*,i8**%d,align 8
%B=bitcast i8*%A to i32*
%C=load i32,i32*%B,align 4
%D=getelementptr inbounds i8,i8*%A,i64 4
%E=bitcast i8*%D to i32*
%F=load i32,i32*%E,align 4
%G=icmp eq i32%C,0
%H=load i8*,i8**%c,align 8
br i1%G,label%I,label%N
I:
%J=mul i32%F,%i
%K=sext i32%J to i64
%L=getelementptr inbounds i8,i8*%H,i64%K
%M=mul nuw i32%F,%l
call void@llvm.memmove.p0i8.p0i8.i32(i8*%s,i8*%L,i32%M,i1 false)
br label%R
N:
%O=bitcast i8*%s to i8**
%P=bitcast i8*%H to i8**
%Q=call i8*@sml_save()#0
call void@sml_copyary(i8**%P,i32%i,i8**%O,i32 0,i32%l)#0
call void@sml_unsave()#0
br label%R
R:
ret i8*%s
}
define fastcc i8*@_SMLFN11VectorSlice6vectorE(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*)*@_SMLLLN11VectorSlice6vectorE_216 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*)*@_SMLLLN11VectorSlice6vectorE_216 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*@_SMLLLN11VectorSlice6concatE_222(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"personality i32(...)*@sml_personality{
%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**%f,align 8
store i8*%b,i8**%c,align 8
%g=icmp eq i8*%b,null
%h=bitcast i8*%a to i32*
br i1%g,label%i,label%p
i:
store i8*null,i8**%c,align 8
%j=load i32,i32*%h,align 4
store i8*null,i8**%f,align 8
%k=call i8*@sml_alloc(i32 inreg 0)#0
%l=shl i32%j,28
%m=getelementptr inbounds i8,i8*%k,i64 -4
%n=bitcast i8*%m to i32*
store i32%l,i32*%n,align 4
ret i8*%k
o:
ret i8*%K
p:
%q=bitcast i8*%b to i8**
%r=load i8*,i8**%q,align 8
%s=getelementptr inbounds i8,i8*%b,i64 8
%t=bitcast i8*%s to i8**
%u=load i8*,i8**%t,align 8
%v=icmp eq i8*%u,null
br i1%v,label%w,label%aj
w:
%x=bitcast i8*%r to i8**
%y=load i8*,i8**%x,align 8
store i8*%y,i8**%c,align 8
%z=getelementptr inbounds i8,i8*%r,i64 8
%A=bitcast i8*%z to i32*
%B=load i32,i32*%A,align 4
%C=getelementptr inbounds i8,i8*%r,i64 12
%D=bitcast i8*%C to i32*
%E=load i32,i32*%D,align 4
%F=load i32,i32*%h,align 4
%G=getelementptr inbounds i8,i8*%a,i64 4
%H=bitcast i8*%G to i32*
%I=load i32,i32*%H,align 4
%J=mul nsw i32%I,%E
%K=call i8*@sml_alloc(i32 inreg%J)#0
%L=shl i32%F,28
%M=or i32%J,%L
%N=getelementptr inbounds i8,i8*%K,i64 -4
%O=bitcast i8*%N to i32*
store i32%M,i32*%O,align 4
%P=icmp eq i32%F,0
br i1%P,label%R,label%Q
Q:
call void@llvm.memset.p0i8.i32(i8*%K,i8 0,i32%J,i1 false)
br label%R
R:
%S=load i8*,i8**%f,align 8
%T=bitcast i8*%S to i32*
%U=load i32,i32*%T,align 4
%V=getelementptr inbounds i8,i8*%S,i64 4
%W=bitcast i8*%V to i32*
%X=load i32,i32*%W,align 4
%Y=icmp eq i32%U,0
%Z=load i8*,i8**%c,align 8
br i1%Y,label%aa,label%af
aa:
%ab=mul i32%X,%B
%ac=sext i32%ab to i64
%ad=getelementptr inbounds i8,i8*%Z,i64%ac
%ae=mul nuw i32%X,%E
call void@llvm.memmove.p0i8.p0i8.i32(i8*%K,i8*%ad,i32%ae,i1 false)
br label%o
af:
%ag=bitcast i8*%K to i8**
%ah=bitcast i8*%Z to i8**
%ai=call i8*@sml_save()#0
call void@sml_copyary(i8**%ah,i32%B,i8**%ag,i32 0,i32%E)#0
call void@sml_unsave()#0
br label%o
aj:
%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**%c,align 8
br label%aq
aq:
%ar=phi i8*[%bf,%bd],[%ak,%aj]
%as=phi i8*[%bk,%bd],[%ap,%aj]
%at=phi i32[%be,%bd],[0,%aj]
%au=bitcast i8*%ar to i8**
store i8*%as,i8**%au,align 8
%av=getelementptr inbounds i8,i8*%ar,i64 8
%aw=bitcast i8*%av to i32*
store i32%at,i32*%aw,align 4
%ax=getelementptr inbounds i8,i8*%ar,i64 16
%ay=bitcast i8*%ax to i32*
store i32 1,i32*%ay,align 4
store i8*%ar,i8**%d,align 8
%az=load atomic i32,i32*@sml_check_flag unordered,align 4
%aA=icmp eq i32%az,0
br i1%aA,label%aD,label%aB
aB:
call void@sml_check(i32 inreg%az)
%aC=load i8*,i8**%d,align 8
br label%aD
aD:
%aE=phi i8*[%aC,%aB],[%ar,%aq]
%aF=bitcast i8*%aE to i8**
%aG=load i8*,i8**%aF,align 8
%aH=icmp eq i8*%aG,null
br i1%aH,label%aI,label%aN
aI:
store i8*null,i8**%d,align 8
%aJ=getelementptr inbounds i8,i8*%aE,i64 8
%aK=bitcast i8*%aJ to i32*
%aL=load i32,i32*%aK,align 4
%aM=icmp slt i32%aL,0
br i1%aM,label%b8,label%bL
aN:
%aO=bitcast i8*%aG to i8**
%aP=load i8*,i8**%aO,align 8
%aQ=getelementptr inbounds i8,i8*%aP,i64 12
%aR=bitcast i8*%aQ to i32*
%aS=load i32,i32*%aR,align 4
%aT=getelementptr inbounds i8,i8*%aG,i64 8
%aU=bitcast i8*%aT to i8**
%aV=load i8*,i8**%aU,align 8
store i8*%aV,i8**%e,align 8
store i8*null,i8**%d,align 8
%aW=getelementptr inbounds i8,i8*%aE,i64 8
%aX=bitcast i8*%aW to i32*
%aY=load i32,i32*%aX,align 4
%aZ=call{i32,i1}@llvm.sadd.with.overflow.i32(i32%aS,i32%aY)#0
%a0=extractvalue{i32,i1}%aZ,1
br i1%a0,label%a1,label%bd
a1:
store i8*null,i8**%e,align 8
store i8*null,i8**%f,align 8
%a2=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%a2,i8**%c,align 8
%a3=call i8*@sml_alloc(i32 inreg 20)#0
%a4=getelementptr inbounds i8,i8*%a3,i64 -4
%a5=bitcast i8*%a4 to i32*
store i32 1342177296,i32*%a5,align 4
%a6=load i8*,i8**%c,align 8
%a7=bitcast i8*%a3 to i8**
store i8*%a6,i8**%a7,align 8
%a8=getelementptr inbounds i8,i8*%a3,i64 8
%a9=bitcast i8*%a8 to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@p,i64 0,i32 2,i64 0),i8**%a9,align 8
%ba=getelementptr inbounds i8,i8*%a3,i64 16
%bb=bitcast i8*%ba to i32*
store i32 3,i32*%bb,align 4
store i8*%a3,i8**%c,align 8
%bc=icmp eq i8*%a6,%a2
br i1%bc,label%bl,label%bD
bd:
%be=add nsw i32%aY,%aS
%bf=call i8*@sml_alloc(i32 inreg 20)#0
%bg=getelementptr inbounds i8,i8*%bf,i64 -4
%bh=bitcast i8*%bg to i32*
store i32 1342177296,i32*%bh,align 4
%bi=getelementptr inbounds i8,i8*%bf,i64 12
%bj=bitcast i8*%bi to i32*
store i32 0,i32*%bj,align 1
%bk=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
br label%aq
bl:
%bm=load i8*,i8**@_SMLZ4Size,align 8
store i8*%bm,i8**%c,align 8
%bn=call i8*@sml_alloc(i32 inreg 20)#0
%bo=getelementptr inbounds i8,i8*%bn,i64 -4
%bp=bitcast i8*%bo to i32*
store i32 1342177296,i32*%bp,align 4
store i8*%bn,i8**%d,align 8
%bq=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%br=bitcast i8*%bn to i8**
store i8*%bq,i8**%br,align 8
%bs=getelementptr inbounds i8,i8*%bn,i64 8
%bt=bitcast i8*%bs to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@q,i64 0,i32 2,i64 0),i8**%bt,align 8
%bu=getelementptr inbounds i8,i8*%bn,i64 16
%bv=bitcast i8*%bu to i32*
store i32 3,i32*%bv,align 4
%bw=call i8*@sml_alloc(i32 inreg 60)#0
%bx=getelementptr inbounds i8,i8*%bw,i64 -4
%by=bitcast i8*%bx to i32*
store i32 1342177336,i32*%by,align 4
%bz=getelementptr inbounds i8,i8*%bw,i64 56
%bA=bitcast i8*%bz to i32*
store i32 1,i32*%bA,align 4
%bB=load i8*,i8**%d,align 8
%bC=bitcast i8*%bw to i8**
store i8*%bB,i8**%bC,align 8
call void@sml_raise(i8*inreg%bw)#1
unreachable
bD:
%bE=call i8*@sml_alloc(i32 inreg 60)#0
%bF=getelementptr inbounds i8,i8*%bE,i64 -4
%bG=bitcast i8*%bF to i32*
store i32 1342177336,i32*%bG,align 4
%bH=getelementptr inbounds i8,i8*%bE,i64 56
%bI=bitcast i8*%bH to i32*
store i32 1,i32*%bI,align 4
%bJ=load i8*,i8**%c,align 8
%bK=bitcast i8*%bE to i8**
store i8*%bJ,i8**%bK,align 8
call void@sml_raise(i8*inreg%bE)#1
unreachable
bL:
%bM=load i8*,i8**%f,align 8
%bN=getelementptr inbounds i8,i8*%bM,i64 4
%bO=bitcast i8*%bN to i32*
%bP=load i32,i32*%bO,align 4
%bQ=udiv i32 268435455,%bP
%bR=icmp sgt i32%aL,%bQ
br i1%bR,label%b8,label%bS
bS:
%bT=bitcast i8*%bM to i32*
%bU=load i32,i32*%bT,align 4
%bV=mul nsw i32%bP,%aL
%bW=call i8*@sml_alloc(i32 inreg%bV)#0
%bX=shl i32%bU,28
%bY=or i32%bX,%bV
%bZ=getelementptr inbounds i8,i8*%bW,i64 -4
%b0=bitcast i8*%bZ to i32*
store i32%bY,i32*%b0,align 4
%b1=icmp eq i32%bU,0
br i1%b1,label%b3,label%b2
b2:
call void@llvm.memset.p0i8.i32(i8*%bW,i8 0,i32%bV,i1 false)
br label%b3
b3:
store i8*%bW,i8**%d,align 8
%b4=call i8*@sml_alloc(i32 inreg 20)#0
%b5=getelementptr inbounds i8,i8*%b4,i64 -4
%b6=bitcast i8*%b5 to i32*
store i32 1342177296,i32*%b6,align 4
%b7=bitcast i8*%b4 to i64*
store i64 0,i64*%b7,align 4
br label%cq
b8:
store i8*null,i8**%f,align 8
%b9=load i8*,i8**@_SMLZ4Size,align 8
store i8*%b9,i8**%c,align 8
%ca=call i8*@sml_alloc(i32 inreg 20)#0
%cb=getelementptr inbounds i8,i8*%ca,i64 -4
%cc=bitcast i8*%cb to i32*
store i32 1342177296,i32*%cc,align 4
store i8*%ca,i8**%d,align 8
%cd=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ce=bitcast i8*%ca to i8**
store i8*%cd,i8**%ce,align 8
%cf=getelementptr inbounds i8,i8*%ca,i64 8
%cg=bitcast i8*%cf to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@r,i64 0,i32 2,i64 0),i8**%cg,align 8
%ch=getelementptr inbounds i8,i8*%ca,i64 16
%ci=bitcast i8*%ch to i32*
store i32 3,i32*%ci,align 4
%cj=call i8*@sml_alloc(i32 inreg 60)#0
%ck=getelementptr inbounds i8,i8*%cj,i64 -4
%cl=bitcast i8*%ck to i32*
store i32 1342177336,i32*%cl,align 4
%cm=getelementptr inbounds i8,i8*%cj,i64 56
%cn=bitcast i8*%cm to i32*
store i32 1,i32*%cn,align 4
%co=load i8*,i8**%d,align 8
%cp=bitcast i8*%cj to i8**
store i8*%co,i8**%cp,align 8
call void@sml_raise(i8*inreg%cj)#1
unreachable
cq:
%cr=phi i8*[%dj,%dh],[%b4,%b3]
%cs=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ct=getelementptr inbounds i8,i8*%cr,i64 8
%cu=bitcast i8*%ct to i8**
store i8*%cs,i8**%cu,align 8
%cv=getelementptr inbounds i8,i8*%cr,i64 16
%cw=bitcast i8*%cv to i32*
store i32 2,i32*%cw,align 4
store i8*%cr,i8**%c,align 8
%cx=load atomic i32,i32*@sml_check_flag unordered,align 4
%cy=icmp eq i32%cx,0
br i1%cy,label%cB,label%cz
cz:
call void@sml_check(i32 inreg%cx)
%cA=load i8*,i8**%c,align 8
br label%cB
cB:
%cC=phi i8*[%cA,%cz],[%cr,%cq]
%cD=bitcast i8*%cC to i32*
%cE=load i32,i32*%cD,align 4
%cF=getelementptr inbounds i8,i8*%cC,i64 8
%cG=bitcast i8*%cF to i8**
%cH=load i8*,i8**%cG,align 8
%cI=icmp eq i8*%cH,null
br i1%cI,label%dp,label%cJ
cJ:
%cK=bitcast i8*%cH to i8**
%cL=load i8*,i8**%cK,align 8
%cM=bitcast i8*%cL to i8**
%cN=load i8*,i8**%cM,align 8
%cO=getelementptr inbounds i8,i8*%cL,i64 8
%cP=bitcast i8*%cO to i32*
%cQ=load i32,i32*%cP,align 4
%cR=getelementptr inbounds i8,i8*%cL,i64 12
%cS=bitcast i8*%cR to i32*
%cT=load i32,i32*%cS,align 4
%cU=getelementptr inbounds i8,i8*%cH,i64 8
%cV=bitcast i8*%cU to i8**
%cW=load i8*,i8**%cV,align 8
store i8*%cW,i8**%c,align 8
%cX=load i8*,i8**%f,align 8
%cY=bitcast i8*%cX to i32*
%cZ=load i32,i32*%cY,align 4
%c0=getelementptr inbounds i8,i8*%cX,i64 4
%c1=bitcast i8*%c0 to i32*
%c2=load i32,i32*%c1,align 4
%c3=icmp eq i32%cZ,0
%c4=load i8*,i8**%d,align 8
br i1%c3,label%c5,label%dd
c5:
%c6=mul i32%c2,%cE
%c7=sext i32%c6 to i64
%c8=getelementptr inbounds i8,i8*%c4,i64%c7
%c9=mul i32%c2,%cQ
%da=sext i32%c9 to i64
%db=getelementptr inbounds i8,i8*%cN,i64%da
%dc=mul nuw i32%c2,%cT
call void@llvm.memmove.p0i8.p0i8.i32(i8*%c8,i8*%db,i32%dc,i1 false)
br label%dh
dd:
%de=bitcast i8*%c4 to i8**
%df=bitcast i8*%cN to i8**
%dg=call i8*@sml_save()#0
call void@sml_copyary(i8**%df,i32%cQ,i8**%de,i32%cE,i32%cT)#0
call void@sml_unsave()#0
br label%dh
dh:
%di=add nsw i32%cT,%cE
%dj=call i8*@sml_alloc(i32 inreg 20)#0
%dk=bitcast i8*%dj to i32*
%dl=getelementptr inbounds i8,i8*%dj,i64 -4
%dm=bitcast i8*%dl to i32*
store i32 1342177296,i32*%dm,align 4
%dn=getelementptr inbounds i8,i8*%dj,i64 4
%do=bitcast i8*%dn to i32*
store i32 0,i32*%do,align 1
store i32%di,i32*%dk,align 4
br label%cq
dp:
%dq=load i8*,i8**%d,align 8
ret i8*%dq
}
define fastcc i8*@_SMLFN11VectorSlice6concatE(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*)*@_SMLLLN11VectorSlice6concatE_222 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*)*@_SMLLLN11VectorSlice6concatE_222 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 i32@_SMLLLN11VectorSlice7isEmptyE_225(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 fastcc i8*@_SMLFN11VectorSlice7isEmptyE(i32 inreg%a,i32 inreg%b)#3 gc"smlsharp"{
ret 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*)
}
define internal fastcc i8*@_SMLLLN11VectorSlice7getItemE_229(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*%a,i8**%d,align 8
%f=getelementptr inbounds i8,i8*%a,i64 4
%g=bitcast i8*%f to i32*
%h=load i32,i32*%g,align 4
%i=add i32%h,-1
%j=sub i32 0,%h
%k=and i32%i,%j
%l=add i32%h,7
%m=add i32%l,%k
%n=and i32%m,-8
%o=add i32%n,15
%p=and i32%o,-8
%q=lshr i32%m,3
%r=lshr i32%k,3
%s=sub nsw i32%q,%r
%t=shl i32 1,%s
%u=bitcast i8*%a to i32*
%v=load i32,i32*%u,align 4
%w=or i32%t,%v
%x=or i32%p,4
%y=bitcast i8*%b to i8**
%z=load i8*,i8**%y,align 8
store i8*%z,i8**%c,align 8
%A=getelementptr inbounds i8,i8*%b,i64 8
%B=bitcast i8*%A to i32*
%C=load i32,i32*%B,align 4
%D=getelementptr inbounds i8,i8*%b,i64 12
%E=bitcast i8*%D to i32*
%F=load i32,i32*%E,align 4
%G=icmp sgt i32%F,0
br i1%G,label%I,label%H
H:
ret i8*null
I:
%J=icmp eq i32%v,0
br i1%J,label%Q,label%K
K:
%L=mul i32%h,%C
%M=sext i32%L to i64
%N=getelementptr inbounds i8,i8*%z,i64%M
%O=bitcast i8*%N to i8**
%P=load i8*,i8**%O,align 8
br label%ac
Q:
%R=call i8*@sml_alloc(i32 inreg%h)#0
%S=getelementptr inbounds i8,i8*%R,i64 -4
%T=bitcast i8*%S to i32*
store i32%h,i32*%T,align 4
%U=load i8*,i8**%c,align 8
%V=mul i32%h,%C
%W=sext i32%V to i64
%X=getelementptr inbounds i8,i8*%U,i64%W
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%R,i8*%X,i32%h,i1 false)
%Y=load i8*,i8**%d,align 8
%Z=getelementptr inbounds i8,i8*%Y,i64 4
%aa=bitcast i8*%Z to i32*
%ab=bitcast i8*%Y to i32*
br label%ac
ac:
%ad=phi i32*[%ab,%Q],[%u,%K]
%ae=phi i32*[%aa,%Q],[%g,%K]
%af=phi i8*[%R,%Q],[%P,%K]
store i8*%af,i8**%e,align 8
%ag=load i32,i32*%ae,align 4
store i8*null,i8**%d,align 8
%ah=load i32,i32*%ad,align 4
%ai=add nsw i32%C,1
%aj=add nsw i32%F,-1
%ak=call i8*@sml_alloc(i32 inreg 20)#0
%al=getelementptr inbounds i8,i8*%ak,i64 -4
%am=bitcast i8*%al to i32*
store i32 1342177296,i32*%am,align 4
store i8*%ak,i8**%d,align 8
%an=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ao=bitcast i8*%ak to i8**
store i8*%an,i8**%ao,align 8
%ap=getelementptr inbounds i8,i8*%ak,i64 8
%aq=bitcast i8*%ap to i32*
store i32%ai,i32*%aq,align 4
%ar=getelementptr inbounds i8,i8*%ak,i64 12
%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
%av=call i8*@sml_alloc(i32 inreg%x)#0
%aw=or i32%p,1342177280
%ax=getelementptr inbounds i8,i8*%av,i64 -4
%ay=bitcast i8*%ax to i32*
store i32%aw,i32*%ay,align 4
store i8*%av,i8**%c,align 8
call void@llvm.memset.p0i8.i32(i8*%av,i8 0,i32%x,i1 false)
%az=icmp eq i32%ah,0
%aA=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%aB=sext i32%k to i64
%aC=getelementptr inbounds i8,i8*%av,i64%aB
br i1%az,label%aD,label%aE
aD:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%aC,i8*%aA,i32%ag,i1 false)
br label%aG
aE:
%aF=bitcast i8*%aC to i8**
store i8*%aA,i8**%aF,align 8
br label%aG
aG:
%aH=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aI=sext i32%n to i64
%aJ=getelementptr inbounds i8,i8*%av,i64%aI
%aK=bitcast i8*%aJ to i8**
store i8*%aH,i8**%aK,align 8
%aL=sext i32%p to i64
%aM=getelementptr inbounds i8,i8*%av,i64%aL
%aN=bitcast i8*%aM to i32*
store i32%w,i32*%aN,align 4
%aO=call i8*@sml_alloc(i32 inreg 12)#0
%aP=getelementptr inbounds i8,i8*%aO,i64 -4
%aQ=bitcast i8*%aP to i32*
store i32 1342177288,i32*%aQ,align 4
%aR=load i8*,i8**%c,align 8
%aS=bitcast i8*%aO to i8**
store i8*%aR,i8**%aS,align 8
%aT=getelementptr inbounds i8,i8*%aO,i64 8
%aU=bitcast i8*%aT to i32*
store i32 1,i32*%aU,align 4
ret i8*%aO
}
define fastcc i8*@_SMLFN11VectorSlice7getItemE(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*)*@_SMLLLN11VectorSlice7getItemE_229 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*)*@_SMLLLN11VectorSlice7getItemE_229 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 void@_SMLLLN11VectorSlice4appiE_232(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
K:
%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
%g=getelementptr inbounds i8,i8*%a,i64 12
%h=bitcast i8*%g to i32*
%i=load i32,i32*%h,align 4
%j=add i32%i,3
%k=sub i32 0,%i
%l=and i32%j,%k
%m=add i32%i,7
%n=add i32%m,%l
%o=and i32%n,-8
%p=lshr i32%l,3
%q=getelementptr inbounds i8,i8*%a,i64 8
%r=bitcast i8*%q to i32*
%s=load i32,i32*%r,align 4
%t=shl i32%s,%p
%u=or i32%o,4
%v=bitcast i8*%b to i8**
%w=load i8*,i8**%v,align 8
store i8*%w,i8**%c,align 8
%x=getelementptr inbounds i8,i8*%b,i64 8
%y=bitcast i8*%x to i32*
%z=load i32,i32*%y,align 4
%A=getelementptr inbounds i8,i8*%b,i64 12
%B=bitcast i8*%A to i32*
%C=load i32,i32*%B,align 4
%D=add nsw i32%C,%z
%E=bitcast i8**%e to i8***
%F=or i32%o,1342177280
%G=sext i32%l to i64
%H=sext i32%o to i64
br label%I
I:
%J=phi i32[%z,%K],[%aZ,%aU]
%L=load atomic i32,i32*@sml_check_flag unordered,align 4
%M=icmp eq i32%L,0
br i1%M,label%O,label%N
N:
call void@sml_check(i32 inreg%L)
br label%O
O:
%P=icmp slt i32%J,%D
br i1%P,label%R,label%Q
Q:
ret void
R:
%S=load i8*,i8**%e,align 8
%T=getelementptr inbounds i8,i8*%S,i64 12
%U=bitcast i8*%T to i32*
%V=load i32,i32*%U,align 4
%W=getelementptr inbounds i8,i8*%S,i64 8
%X=bitcast i8*%W to i32*
%Y=load i32,i32*%X,align 4
%Z=icmp eq i32%Y,0
br i1%Z,label%ai,label%aa
aa:
%ab=bitcast i8*%S to i8**
%ac=load i8*,i8**%c,align 8
%ad=mul i32%V,%J
%ae=sext i32%ad to i64
%af=getelementptr inbounds i8,i8*%ac,i64%ae
%ag=bitcast i8*%af to i8**
%ah=load i8*,i8**%ag,align 8
br label%ay
ai:
%aj=call i8*@sml_alloc(i32 inreg%V)#0
%ak=getelementptr inbounds i8,i8*%aj,i64 -4
%al=bitcast i8*%ak to i32*
store i32%V,i32*%al,align 4
%am=load i8*,i8**%c,align 8
%an=mul i32%V,%J
%ao=sext i32%an to i64
%ap=getelementptr inbounds i8,i8*%am,i64%ao
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%aj,i8*%ap,i32%V,i1 false)
%aq=load i8**,i8***%E,align 8
%ar=bitcast i8**%aq to i8*
%as=getelementptr inbounds i8,i8*%ar,i64 12
%at=bitcast i8*%as to i32*
%au=load i32,i32*%at,align 4
%av=getelementptr inbounds i8*,i8**%aq,i64 1
%aw=bitcast i8**%av to i32*
%ax=load i32,i32*%aw,align 4
br label%ay
ay:
%az=phi i32[%ax,%ai],[%Y,%aa]
%aA=phi i32[%au,%ai],[%V,%aa]
%aB=phi i8**[%aq,%ai],[%ab,%aa]
%aC=phi i8*[%aj,%ai],[%ah,%aa]
store i8*%aC,i8**%d,align 8
%aD=load i8*,i8**%aB,align 8
%aE=getelementptr inbounds i8,i8*%aD,i64 16
%aF=bitcast i8*%aE to i8*(i8*,i8*)**
%aG=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aF,align 8
%aH=bitcast i8*%aD to i8**
%aI=load i8*,i8**%aH,align 8
store i8*%aI,i8**%f,align 8
%aJ=sub nsw i32%J,%z
%aK=call i8*@sml_alloc(i32 inreg%u)#0
%aL=bitcast i8*%aK to i32*
%aM=getelementptr inbounds i8,i8*%aK,i64 -4
%aN=bitcast i8*%aM to i32*
store i32%F,i32*%aN,align 4
call void@llvm.memset.p0i8.i32(i8*%aK,i8 0,i32%u,i1 false)
store i32%aJ,i32*%aL,align 4
%aO=icmp eq i32%az,0
%aP=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aQ=getelementptr inbounds i8,i8*%aK,i64%G
br i1%aO,label%aR,label%aS
aR:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%aQ,i8*%aP,i32%aA,i1 false)
br label%aU
aS:
%aT=bitcast i8*%aQ to i8**
store i8*%aP,i8**%aT,align 8
br label%aU
aU:
%aV=getelementptr inbounds i8,i8*%aK,i64%H
%aW=bitcast i8*%aV to i32*
store i32%t,i32*%aW,align 4
%aX=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%aY=call fastcc i8*%aG(i8*inreg%aX,i8*inreg%aK)
%aZ=add nsw i32%J,1
br label%I
}
define internal fastcc i8*@_SMLLLN11VectorSlice4appiE_233(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(void(i8*,i8*)*@_SMLLLN11VectorSlice4appiE_232 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*)*@_SMLLLN11VectorSlice4appiE_302 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
ret i8*%u
}
define fastcc i8*@_SMLFN11VectorSlice4appiE(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*)*@_SMLLLN11VectorSlice4appiE_233 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*)*@_SMLLLN11VectorSlice4appiE_233 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 void@_SMLLLN11VectorSlice3appE_236(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
q:
%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*%b to i8**
%f=load i8*,i8**%e,align 8
store i8*%f,i8**%c,align 8
%g=getelementptr inbounds i8,i8*%b,i64 8
%h=bitcast i8*%g to i32*
%i=load i32,i32*%h,align 4
%j=getelementptr inbounds i8,i8*%b,i64 12
%k=bitcast i8*%j to i32*
%l=load i32,i32*%k,align 4
%m=add nsw i32%l,%i
%n=bitcast i8**%d to i8***
br label%o
o:
%p=phi i32[%i,%q],[%ah,%X]
%r=load atomic i32,i32*@sml_check_flag unordered,align 4
%s=icmp eq i32%r,0
br i1%s,label%u,label%t
t:
call void@sml_check(i32 inreg%r)
br label%u
u:
%v=icmp slt i32%p,%m
br i1%v,label%x,label%w
w:
ret void
x:
%y=load i8*,i8**%d,align 8
%z=getelementptr inbounds i8,i8*%y,i64 12
%A=bitcast i8*%z to i32*
%B=load i32,i32*%A,align 4
%C=getelementptr inbounds i8,i8*%y,i64 8
%D=bitcast i8*%C to i32*
%E=load i32,i32*%D,align 4
%F=icmp eq i32%E,0
br i1%F,label%O,label%G
G:
%H=bitcast i8*%y to i8**
%I=load i8*,i8**%c,align 8
%J=mul i32%B,%p
%K=sext i32%J to i64
%L=getelementptr inbounds i8,i8*%I,i64%K
%M=bitcast i8*%L to i8**
%N=load i8*,i8**%M,align 8
br label%X
O:
%P=call i8*@sml_alloc(i32 inreg%B)#0
%Q=getelementptr inbounds i8,i8*%P,i64 -4
%R=bitcast i8*%Q to i32*
store i32%B,i32*%R,align 4
%S=load i8*,i8**%c,align 8
%T=mul i32%B,%p
%U=sext i32%T to i64
%V=getelementptr inbounds i8,i8*%S,i64%U
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%P,i8*%V,i32%B,i1 false)
%W=load i8**,i8***%n,align 8
br label%X
X:
%Y=phi i8**[%H,%G],[%W,%O]
%Z=phi i8*[%N,%G],[%P,%O]
%aa=load i8*,i8**%Y,align 8
%ab=getelementptr inbounds i8,i8*%aa,i64 16
%ac=bitcast i8*%ab to i8*(i8*,i8*)**
%ad=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%ac,align 8
%ae=bitcast i8*%aa to i8**
%af=load i8*,i8**%ae,align 8
%ag=call fastcc i8*%ad(i8*inreg%af,i8*inreg%Z)
%ah=add nsw i32%p,1
br label%o
}
define internal fastcc i8*@_SMLLLN11VectorSlice3appE_237(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(void(i8*,i8*)*@_SMLLLN11VectorSlice3appE_236 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*)*@_SMLLLN11VectorSlice3appE_304 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
ret i8*%u
}
define fastcc i8*@_SMLFN11VectorSlice3appE(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*)*@_SMLLLN11VectorSlice3appE_237 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*)*@_SMLLLN11VectorSlice3appE_237 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*@_SMLLLN11VectorSlice4mapiE_240(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
o:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=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
call void@llvm.gcroot(i8**%g,i8*null)#0
store i8*%a,i8**%f,align 8
store i8*%b,i8**%c,align 8
%h=load atomic i32,i32*@sml_check_flag unordered,align 4
%i=icmp eq i32%h,0
br i1%i,label%m,label%j
j:
call void@sml_check(i32 inreg%h)
%k=load i8*,i8**%c,align 8
%l=load i8*,i8**%f,align 8
br label%m
m:
%n=phi i8*[%l,%j],[%a,%o]
%p=phi i8*[%k,%j],[%b,%o]
%q=getelementptr inbounds i8,i8*%n,i64 12
%r=bitcast i8*%q to i32*
%s=load i32,i32*%r,align 4
%t=add i32%s,3
%u=sub i32 0,%s
%v=and i32%t,%u
%w=add i32%s,7
%x=add i32%w,%v
%y=and i32%x,-8
%z=lshr i32%v,3
%A=getelementptr inbounds i8,i8*%n,i64 8
%B=bitcast i8*%A to i32*
%C=load i32,i32*%B,align 4
%D=shl i32%C,%z
%E=or i32%y,4
%F=bitcast i8*%p to i8**
%G=load i8*,i8**%F,align 8
store i8*%G,i8**%c,align 8
%H=getelementptr inbounds i8,i8*%p,i64 8
%I=bitcast i8*%H to i32*
%J=load i32,i32*%I,align 4
%K=getelementptr inbounds i8,i8*%p,i64 12
%L=bitcast i8*%K to i32*
%M=load i32,i32*%L,align 4
%N=getelementptr inbounds i8,i8*%n,i64 16
%O=bitcast i8*%N to i32*
%P=load i32,i32*%O,align 4
%Q=getelementptr inbounds i8,i8*%n,i64 20
%R=bitcast i8*%Q to i32*
%S=load i32,i32*%R,align 4
%T=mul nsw i32%S,%M
%U=call i8*@sml_alloc(i32 inreg%T)#0
%V=shl i32%P,28
%W=or i32%T,%V
%X=getelementptr inbounds i8,i8*%U,i64 -4
%Y=bitcast i8*%X to i32*
store i32%W,i32*%Y,align 4
store i8*%U,i8**%d,align 8
%Z=icmp eq i32%P,0
br i1%Z,label%ab,label%aa
aa:
call void@llvm.memset.p0i8.i32(i8*%U,i8 0,i32%T,i1 false)
br label%ab
ab:
%ac=add nsw i32%M,%J
%ad=bitcast i8**%f to i8***
%ae=or i32%y,1342177280
%af=sext i32%v to i64
%ag=sext i32%y to i64
br label%ah
ah:
%ai=phi i32[%J,%ab],[%by,%bx]
%aj=icmp slt i32%ai,%ac
br i1%aj,label%ak,label%bz
ak:
%al=load i8*,i8**%f,align 8
%am=getelementptr inbounds i8,i8*%al,i64 12
%an=bitcast i8*%am to i32*
%ao=load i32,i32*%an,align 4
%ap=getelementptr inbounds i8,i8*%al,i64 8
%aq=bitcast i8*%ap to i32*
%ar=load i32,i32*%aq,align 4
%as=icmp eq i32%ar,0
br i1%as,label%aB,label%at
at:
%au=bitcast i8*%al to i8**
%av=load i8*,i8**%c,align 8
%aw=mul i32%ao,%ai
%ax=sext i32%aw to i64
%ay=getelementptr inbounds i8,i8*%av,i64%ax
%az=bitcast i8*%ay to i8**
%aA=load i8*,i8**%az,align 8
br label%aR
aB:
%aC=call i8*@sml_alloc(i32 inreg%ao)#0
%aD=getelementptr inbounds i8,i8*%aC,i64 -4
%aE=bitcast i8*%aD to i32*
store i32%ao,i32*%aE,align 4
%aF=load i8*,i8**%c,align 8
%aG=mul i32%ao,%ai
%aH=sext i32%aG to i64
%aI=getelementptr inbounds i8,i8*%aF,i64%aH
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%aC,i8*%aI,i32%ao,i1 false)
%aJ=load i8**,i8***%ad,align 8
%aK=bitcast i8**%aJ to i8*
%aL=getelementptr inbounds i8,i8*%aK,i64 12
%aM=bitcast i8*%aL to i32*
%aN=load i32,i32*%aM,align 4
%aO=getelementptr inbounds i8*,i8**%aJ,i64 1
%aP=bitcast i8**%aO to i32*
%aQ=load i32,i32*%aP,align 4
br label%aR
aR:
%aS=phi i32[%aQ,%aB],[%ar,%at]
%aT=phi i32[%aN,%aB],[%ao,%at]
%aU=phi i8**[%aJ,%aB],[%au,%at]
%aV=phi i8*[%aC,%aB],[%aA,%at]
store i8*%aV,i8**%e,align 8
%aW=sub nsw i32%ai,%J
%aX=load i8*,i8**%aU,align 8
%aY=getelementptr inbounds i8,i8*%aX,i64 16
%aZ=bitcast i8*%aY to i8*(i8*,i8*)**
%a0=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aZ,align 8
%a1=bitcast i8*%aX to i8**
%a2=load i8*,i8**%a1,align 8
store i8*%a2,i8**%g,align 8
%a3=call i8*@sml_alloc(i32 inreg%E)#0
%a4=bitcast i8*%a3 to i32*
%a5=getelementptr inbounds i8,i8*%a3,i64 -4
%a6=bitcast i8*%a5 to i32*
store i32%ae,i32*%a6,align 4
call void@llvm.memset.p0i8.i32(i8*%a3,i8 0,i32%E,i1 false)
store i32%aW,i32*%a4,align 4
%a7=icmp eq i32%aS,0
%a8=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%a9=getelementptr inbounds i8,i8*%a3,i64%af
br i1%a7,label%ba,label%bb
ba:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%a9,i8*%a8,i32%aT,i1 false)
br label%bd
bb:
%bc=bitcast i8*%a9 to i8**
store i8*%a8,i8**%bc,align 8
br label%bd
bd:
%be=getelementptr inbounds i8,i8*%a3,i64%ag
%bf=bitcast i8*%be to i32*
store i32%D,i32*%bf,align 4
%bg=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%bh=call fastcc i8*%a0(i8*inreg%bg,i8*inreg%a3)
%bi=load i8*,i8**%f,align 8
%bj=getelementptr inbounds i8,i8*%bi,i64 20
%bk=bitcast i8*%bj to i32*
%bl=load i32,i32*%bk,align 4
%bm=getelementptr inbounds i8,i8*%bi,i64 16
%bn=bitcast i8*%bm to i32*
%bo=load i32,i32*%bn,align 4
%bp=icmp eq i32%bo,0
%bq=load i8*,i8**%d,align 8
%br=mul i32%bl,%aW
%bs=sext i32%br to i64
%bt=getelementptr inbounds i8,i8*%bq,i64%bs
br i1%bp,label%bw,label%bu
bu:
%bv=bitcast i8*%bt to i8**
call void@sml_write(i8*inreg%bq,i8**inreg%bv,i8*inreg%bh)#0
br label%bx
bw:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%bt,i8*%bh,i32%bl,i1 false)
br label%bx
bx:
%by=add nsw i32%ai,1
br label%ah
bz:
%bA=load i8*,i8**%d,align 8
ret i8*%bA
}
define internal fastcc i8*@_SMLLLN11VectorSlice4mapiE_241(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=getelementptr inbounds i8,i8*%a,i64 8
%k=bitcast i8*%j to i32*
%l=load i32,i32*%k,align 4
%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**%d,align 8
%s=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%t=bitcast i8*%p to i8**
store i8*%s,i8**%t,align 8
%u=getelementptr inbounds i8,i8*%p,i64 8
%v=bitcast i8*%u to i32*
store i32%f,i32*%v,align 4
%w=getelementptr inbounds i8,i8*%p,i64 12
%x=bitcast i8*%w to i32*
store i32%i,i32*%x,align 4
%y=getelementptr inbounds i8,i8*%p,i64 16
%z=bitcast i8*%y to i32*
store i32%l,i32*%z,align 4
%A=getelementptr inbounds i8,i8*%p,i64 20
%B=bitcast i8*%A to i32*
store i32%o,i32*%B,align 4
%C=getelementptr inbounds i8,i8*%p,i64 24
%D=bitcast i8*%C to i32*
store i32 1,i32*%D,align 4
%E=call i8*@sml_alloc(i32 inreg 28)#0
%F=getelementptr inbounds i8,i8*%E,i64 -4
%G=bitcast i8*%F to i32*
store i32 1342177304,i32*%G,align 4
%H=load i8*,i8**%d,align 8
%I=bitcast i8*%E to i8**
store i8*%H,i8**%I,align 8
%J=getelementptr inbounds i8,i8*%E,i64 8
%K=bitcast i8*%J to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11VectorSlice4mapiE_240 to void(...)*),void(...)**%K,align 8
%L=getelementptr inbounds i8,i8*%E,i64 16
%M=bitcast i8*%L to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11VectorSlice4mapiE_240 to void(...)*),void(...)**%M,align 8
%N=getelementptr inbounds i8,i8*%E,i64 24
%O=bitcast i8*%N to i32*
store i32 -2147483647,i32*%O,align 4
ret i8*%E
}
define fastcc i8*@_SMLFN11VectorSlice4mapiE(i32 inreg%a,i32 inreg%b,i32 inreg%c,i32 inreg%d)#3 gc"smlsharp"{
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%e,i8*null)#0
%f=call i8*@sml_alloc(i32 inreg 20)#0
%g=bitcast i8*%f to i32*
%h=getelementptr inbounds i8,i8*%f,i64 -4
%i=bitcast i8*%h to i32*
store i32 1342177296,i32*%i,align 4
store i8*%f,i8**%e,align 8
store i32%a,i32*%g,align 4
%j=getelementptr inbounds i8,i8*%f,i64 4
%k=bitcast i8*%j to i32*
store i32%b,i32*%k,align 4
%l=getelementptr inbounds i8,i8*%f,i64 8
%m=bitcast i8*%l to i32*
store i32%c,i32*%m,align 4
%n=getelementptr inbounds i8,i8*%f,i64 12
%o=bitcast i8*%n to i32*
store i32%d,i32*%o,align 4
%p=getelementptr inbounds i8,i8*%f,i64 16
%q=bitcast i8*%p to i32*
store i32 0,i32*%q,align 4
%r=call i8*@sml_alloc(i32 inreg 28)#0
%s=getelementptr inbounds i8,i8*%r,i64 -4
%t=bitcast i8*%s to i32*
store i32 1342177304,i32*%t,align 4
%u=load i8*,i8**%e,align 8
%v=bitcast i8*%r to i8**
store i8*%u,i8**%v,align 8
%w=getelementptr inbounds i8,i8*%r,i64 8
%x=bitcast i8*%w to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11VectorSlice4mapiE_241 to void(...)*),void(...)**%x,align 8
%y=getelementptr inbounds i8,i8*%r,i64 16
%z=bitcast i8*%y to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11VectorSlice4mapiE_241 to void(...)*),void(...)**%z,align 8
%A=getelementptr inbounds i8,i8*%r,i64 24
%B=bitcast i8*%A to i32*
store i32 -2147483647,i32*%B,align 4
ret i8*%r
}
define internal fastcc i8*@_SMLLLN11VectorSlice3mapE_244(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
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%e,align 8
store i8*%b,i8**%c,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%k,label%h
h:
call void@sml_check(i32 inreg%f)
%i=load i8*,i8**%c,align 8
%j=load i8*,i8**%e,align 8
br label%k
k:
%l=phi i8*[%j,%h],[%a,%m]
%n=phi i8*[%i,%h],[%b,%m]
%o=bitcast i8*%n to i8**
%p=load i8*,i8**%o,align 8
store i8*%p,i8**%c,align 8
%q=getelementptr inbounds i8,i8*%n,i64 8
%r=bitcast i8*%q to i32*
%s=load i32,i32*%r,align 4
%t=getelementptr inbounds i8,i8*%n,i64 12
%u=bitcast i8*%t to i32*
%v=load i32,i32*%u,align 4
%w=getelementptr inbounds i8,i8*%l,i64 16
%x=bitcast i8*%w to i32*
%y=load i32,i32*%x,align 4
%z=getelementptr inbounds i8,i8*%l,i64 20
%A=bitcast i8*%z to i32*
%B=load i32,i32*%A,align 4
%C=mul nsw i32%B,%v
%D=call i8*@sml_alloc(i32 inreg%C)#0
%E=shl i32%y,28
%F=or i32%C,%E
%G=getelementptr inbounds i8,i8*%D,i64 -4
%H=bitcast i8*%G to i32*
store i32%F,i32*%H,align 4
store i8*%D,i8**%d,align 8
%I=icmp eq i32%y,0
br i1%I,label%K,label%J
J:
call void@llvm.memset.p0i8.i32(i8*%D,i8 0,i32%C,i1 false)
br label%K
K:
%L=add nsw i32%v,%s
%M=bitcast i8**%e to i8***
br label%N
N:
%O=phi i32[%s,%K],[%aR,%aQ]
%P=icmp slt i32%O,%L
br i1%P,label%Q,label%aS
Q:
%R=load i8*,i8**%e,align 8
%S=getelementptr inbounds i8,i8*%R,i64 12
%T=bitcast i8*%S to i32*
%U=load i32,i32*%T,align 4
%V=getelementptr inbounds i8,i8*%R,i64 8
%W=bitcast i8*%V to i32*
%X=load i32,i32*%W,align 4
%Y=icmp eq i32%X,0
br i1%Y,label%ah,label%Z
Z:
%aa=bitcast i8*%R to i8**
%ab=load i8*,i8**%c,align 8
%ac=mul i32%U,%O
%ad=sext i32%ac to i64
%ae=getelementptr inbounds i8,i8*%ab,i64%ad
%af=bitcast i8*%ae to i8**
%ag=load i8*,i8**%af,align 8
br label%aq
ah:
%ai=call i8*@sml_alloc(i32 inreg%U)#0
%aj=getelementptr inbounds i8,i8*%ai,i64 -4
%ak=bitcast i8*%aj to i32*
store i32%U,i32*%ak,align 4
%al=load i8*,i8**%c,align 8
%am=mul i32%U,%O
%an=sext i32%am to i64
%ao=getelementptr inbounds i8,i8*%al,i64%an
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%ai,i8*%ao,i32%U,i1 false)
%ap=load i8**,i8***%M,align 8
br label%aq
aq:
%ar=phi i8**[%aa,%Z],[%ap,%ah]
%as=phi i8*[%ag,%Z],[%ai,%ah]
%at=sub nsw i32%O,%s
%au=load i8*,i8**%ar,align 8
%av=getelementptr inbounds i8,i8*%au,i64 16
%aw=bitcast i8*%av to i8*(i8*,i8*)**
%ax=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aw,align 8
%ay=bitcast i8*%au to i8**
%az=load i8*,i8**%ay,align 8
%aA=call fastcc i8*%ax(i8*inreg%az,i8*inreg%as)
%aB=load i8*,i8**%e,align 8
%aC=getelementptr inbounds i8,i8*%aB,i64 20
%aD=bitcast i8*%aC to i32*
%aE=load i32,i32*%aD,align 4
%aF=getelementptr inbounds i8,i8*%aB,i64 16
%aG=bitcast i8*%aF to i32*
%aH=load i32,i32*%aG,align 4
%aI=icmp eq i32%aH,0
%aJ=load i8*,i8**%d,align 8
%aK=mul i32%aE,%at
%aL=sext i32%aK to i64
%aM=getelementptr inbounds i8,i8*%aJ,i64%aL
br i1%aI,label%aP,label%aN
aN:
%aO=bitcast i8*%aM to i8**
call void@sml_write(i8*inreg%aJ,i8**inreg%aO,i8*inreg%aA)#0
br label%aQ
aP:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%aM,i8*%aA,i32%aE,i1 false)
br label%aQ
aQ:
%aR=add nsw i32%O,1
br label%N
aS:
%aT=load i8*,i8**%d,align 8
ret i8*%aT
}
define internal fastcc i8*@_SMLLLN11VectorSlice3mapE_245(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=getelementptr inbounds i8,i8*%a,i64 8
%k=bitcast i8*%j to i32*
%l=load i32,i32*%k,align 4
%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**%d,align 8
%s=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%t=bitcast i8*%p to i8**
store i8*%s,i8**%t,align 8
%u=getelementptr inbounds i8,i8*%p,i64 8
%v=bitcast i8*%u to i32*
store i32%f,i32*%v,align 4
%w=getelementptr inbounds i8,i8*%p,i64 12
%x=bitcast i8*%w to i32*
store i32%i,i32*%x,align 4
%y=getelementptr inbounds i8,i8*%p,i64 16
%z=bitcast i8*%y to i32*
store i32%l,i32*%z,align 4
%A=getelementptr inbounds i8,i8*%p,i64 20
%B=bitcast i8*%A to i32*
store i32%o,i32*%B,align 4
%C=getelementptr inbounds i8,i8*%p,i64 24
%D=bitcast i8*%C to i32*
store i32 1,i32*%D,align 4
%E=call i8*@sml_alloc(i32 inreg 28)#0
%F=getelementptr inbounds i8,i8*%E,i64 -4
%G=bitcast i8*%F to i32*
store i32 1342177304,i32*%G,align 4
%H=load i8*,i8**%d,align 8
%I=bitcast i8*%E to i8**
store i8*%H,i8**%I,align 8
%J=getelementptr inbounds i8,i8*%E,i64 8
%K=bitcast i8*%J to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11VectorSlice3mapE_244 to void(...)*),void(...)**%K,align 8
%L=getelementptr inbounds i8,i8*%E,i64 16
%M=bitcast i8*%L to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11VectorSlice3mapE_244 to void(...)*),void(...)**%M,align 8
%N=getelementptr inbounds i8,i8*%E,i64 24
%O=bitcast i8*%N to i32*
store i32 -2147483647,i32*%O,align 4
ret i8*%E
}
define fastcc i8*@_SMLFN11VectorSlice3mapE(i32 inreg%a,i32 inreg%b,i32 inreg%c,i32 inreg%d)#3 gc"smlsharp"{
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%e,i8*null)#0
%f=call i8*@sml_alloc(i32 inreg 20)#0
%g=bitcast i8*%f to i32*
%h=getelementptr inbounds i8,i8*%f,i64 -4
%i=bitcast i8*%h to i32*
store i32 1342177296,i32*%i,align 4
store i8*%f,i8**%e,align 8
store i32%a,i32*%g,align 4
%j=getelementptr inbounds i8,i8*%f,i64 4
%k=bitcast i8*%j to i32*
store i32%b,i32*%k,align 4
%l=getelementptr inbounds i8,i8*%f,i64 8
%m=bitcast i8*%l to i32*
store i32%c,i32*%m,align 4
%n=getelementptr inbounds i8,i8*%f,i64 12
%o=bitcast i8*%n to i32*
store i32%d,i32*%o,align 4
%p=getelementptr inbounds i8,i8*%f,i64 16
%q=bitcast i8*%p to i32*
store i32 0,i32*%q,align 4
%r=call i8*@sml_alloc(i32 inreg 28)#0
%s=getelementptr inbounds i8,i8*%r,i64 -4
%t=bitcast i8*%s to i32*
store i32 1342177304,i32*%t,align 4
%u=load i8*,i8**%e,align 8
%v=bitcast i8*%r to i8**
store i8*%u,i8**%v,align 8
%w=getelementptr inbounds i8,i8*%r,i64 8
%x=bitcast i8*%w to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11VectorSlice3mapE_245 to void(...)*),void(...)**%x,align 8
%y=getelementptr inbounds i8,i8*%r,i64 16
%z=bitcast i8*%y to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11VectorSlice3mapE_245 to void(...)*),void(...)**%z,align 8
%A=getelementptr inbounds i8,i8*%r,i64 24
%B=bitcast i8*%A to i32*
store i32 -2147483647,i32*%B,align 4
ret i8*%r
}
define internal fastcc i8*@_SMLLLN11VectorSlice6foldliE_248(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
o:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=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
call void@llvm.gcroot(i8**%g,i8*null)#0
store i8*%a,i8**%f,align 8
store i8*%b,i8**%c,align 8
%h=load atomic i32,i32*@sml_check_flag unordered,align 4
%i=icmp eq i32%h,0
br i1%i,label%m,label%j
j:
call void@sml_check(i32 inreg%h)
%k=load i8*,i8**%c,align 8
%l=load i8*,i8**%f,align 8
br label%m
m:
%n=phi i8*[%l,%j],[%a,%o]
%p=phi i8*[%k,%j],[%b,%o]
%q=getelementptr inbounds i8,i8*%n,i64 28
%r=bitcast i8*%q to i32*
%s=load i32,i32*%r,align 4
%t=add i32%s,3
%u=sub i32 0,%s
%v=and i32%t,%u
%w=add i32%s,7
%x=add i32%w,%v
%y=and i32%x,-8
%z=lshr i32%v,3
%A=getelementptr inbounds i8,i8*%n,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=getelementptr inbounds i8,i8*%n,i64 20
%G=bitcast i8*%F to i32*
%H=load i32,i32*%G,align 4
%I=add i32%H,3
%J=sub i32 0,%H
%K=and i32%I,%J
%L=add i32%s,-1
%M=add i32%L,%H
%N=add i32%M,%K
%O=and i32%N,%u
%P=add i32%w,%O
%Q=and i32%P,-8
%R=lshr i32%O,3
%S=lshr i32%K,3
%T=sub nsw i32%R,%S
%U=shl i32%C,%T
%V=getelementptr inbounds i8,i8*%n,i64 16
%W=bitcast i8*%V to i32*
%X=load i32,i32*%W,align 4
%Y=or i32%U,%X
%Z=shl i32%Y,%S
%aa=or i32%Q,4
%ab=bitcast i8*%p to i8**
%ac=load i8*,i8**%ab,align 8
store i8*%ac,i8**%c,align 8
%ad=getelementptr inbounds i8,i8*%p,i64 8
%ae=bitcast i8*%ad to i32*
%af=load i32,i32*%ae,align 4
%ag=getelementptr inbounds i8,i8*%p,i64 12
%ah=bitcast i8*%ag to i32*
%ai=load i32,i32*%ah,align 4
%aj=icmp eq i32%C,0
br i1%aj,label%ao,label%ak
ak:
%al=getelementptr inbounds i8,i8*%n,i64 8
%am=bitcast i8*%al to i8**
%an=load i8*,i8**%am,align 8
br label%aA
ao:
%ap=call i8*@sml_alloc(i32 inreg%s)#0
%aq=getelementptr inbounds i8,i8*%ap,i64 -4
%ar=bitcast i8*%aq to i32*
store i32%s,i32*%ar,align 4
%as=load i8*,i8**%f,align 8
%at=getelementptr inbounds i8,i8*%as,i64 8
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%ap,i8*%at,i32%s,i1 false)
%au=getelementptr inbounds i8,i8*%as,i64 28
%av=bitcast i8*%au to i32*
%aw=load i32,i32*%av,align 4
%ax=getelementptr inbounds i8,i8*%as,i64 24
%ay=bitcast i8*%ax to i32*
%az=load i32,i32*%ay,align 4
br label%aA
aA:
%aB=phi i32[%az,%ao],[%C,%ak]
%aC=phi i32[%aw,%ao],[%s,%ak]
%aD=phi i8*[%ap,%ao],[%an,%ak]
store i8*%aD,i8**%d,align 8
%aE=call i8*@sml_alloc(i32 inreg%E)#0
%aF=or i32%y,1342177280
%aG=bitcast i8*%aE to i32*
%aH=getelementptr inbounds i8,i8*%aE,i64 -4
%aI=bitcast i8*%aH to i32*
store i32%aF,i32*%aI,align 4
call void@llvm.memset.p0i8.i32(i8*%aE,i8 0,i32%E,i1 false)
store i32%af,i32*%aG,align 4
%aJ=icmp eq i32%aB,0
%aK=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aL=sext i32%v to i64
%aM=getelementptr inbounds i8,i8*%aE,i64%aL
br i1%aJ,label%aN,label%aO
aN:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%aM,i8*%aK,i32%aC,i1 false)
br label%aQ
aO:
%aP=bitcast i8*%aM to i8**
store i8*%aK,i8**%aP,align 8
br label%aQ
aQ:
%aR=sext i32%y to i64
%aS=getelementptr inbounds i8,i8*%aE,i64%aR
%aT=bitcast i8*%aS to i32*
store i32%D,i32*%aT,align 4
%aU=add nsw i32%ai,%af
%aV=bitcast i8**%f to i8***
%aW=or i32%Q,1342177280
%aX=sext i32%K to i64
%aY=sext i32%O to i64
%aZ=sext i32%Q to i64
br label%a0
a0:
%a1=phi i8*[%cK,%cU],[%aE,%aQ]
store i8*%a1,i8**%d,align 8
%a2=bitcast i8*%a1 to i32*
%a3=load i32,i32*%a2,align 4
%a4=load i8*,i8**%f,align 8
%a5=getelementptr inbounds i8,i8*%a4,i64 24
%a6=bitcast i8*%a5 to i32*
%a7=load i32,i32*%a6,align 4
%a8=icmp eq i32%a7,0
br i1%a8,label%bd,label%a9
a9:
store i8*null,i8**%d,align 8
%ba=getelementptr inbounds i8,i8*%a1,i64%aL
%bb=bitcast i8*%ba to i8**
%bc=load i8*,i8**%bb,align 8
br label%bm
bd:
%be=getelementptr inbounds i8,i8*%a4,i64 28
%bf=bitcast i8*%be to i32*
%bg=load i32,i32*%bf,align 4
%bh=call i8*@sml_alloc(i32 inreg%bg)#0
%bi=getelementptr inbounds i8,i8*%bh,i64 -4
%bj=bitcast i8*%bi to i32*
store i32%bg,i32*%bj,align 4
%bk=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%bl=getelementptr inbounds i8,i8*%bk,i64%aL
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%bh,i8*%bl,i32%bg,i1 false)
br label%bm
bm:
%bn=phi i8*[%bh,%bd],[%bc,%a9]
store i8*%bn,i8**%d,align 8
%bo=icmp slt i32%a3,%aU
br i1%bo,label%bq,label%bp
bp:
ret i8*%bn
bq:
%br=load i8*,i8**%f,align 8
%bs=getelementptr inbounds i8,i8*%br,i64 20
%bt=bitcast i8*%bs to i32*
%bu=load i32,i32*%bt,align 4
%bv=getelementptr inbounds i8,i8*%br,i64 16
%bw=bitcast i8*%bv to i32*
%bx=load i32,i32*%bw,align 4
%by=icmp eq i32%bx,0
br i1%by,label%bH,label%bz
bz:
%bA=bitcast i8*%br to i8**
%bB=load i8*,i8**%c,align 8
%bC=mul i32%bu,%a3
%bD=sext i32%bC to i64
%bE=getelementptr inbounds i8,i8*%bB,i64%bD
%bF=bitcast i8*%bE to i8**
%bG=load i8*,i8**%bF,align 8
br label%bX
bH:
%bI=call i8*@sml_alloc(i32 inreg%bu)#0
%bJ=getelementptr inbounds i8,i8*%bI,i64 -4
%bK=bitcast i8*%bJ to i32*
store i32%bu,i32*%bK,align 4
%bL=load i8*,i8**%c,align 8
%bM=mul i32%bu,%a3
%bN=sext i32%bM to i64
%bO=getelementptr inbounds i8,i8*%bL,i64%bN
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%bI,i8*%bO,i32%bu,i1 false)
%bP=load i8**,i8***%aV,align 8
%bQ=bitcast i8**%bP to i8*
%bR=getelementptr inbounds i8,i8*%bQ,i64 20
%bS=bitcast i8*%bR to i32*
%bT=load i32,i32*%bS,align 4
%bU=getelementptr inbounds i8*,i8**%bP,i64 2
%bV=bitcast i8**%bU to i32*
%bW=load i32,i32*%bV,align 4
br label%bX
bX:
%bY=phi i32[%bW,%bH],[%bx,%bz]
%bZ=phi i32[%bT,%bH],[%bu,%bz]
%b0=phi i8*[%bQ,%bH],[%br,%bz]
%b1=phi i8**[%bP,%bH],[%bA,%bz]
%b2=phi i8*[%bI,%bH],[%bG,%bz]
store i8*%b2,i8**%e,align 8
%b3=add nsw i32%a3,1
%b4=load i8*,i8**%b1,align 8
%b5=getelementptr inbounds i8,i8*%b4,i64 16
%b6=bitcast i8*%b5 to i8*(i8*,i8*)**
%b7=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%b6,align 8
%b8=bitcast i8*%b4 to i8**
%b9=load i8*,i8**%b8,align 8
store i8*%b9,i8**%g,align 8
%ca=sub nsw i32%a3,%af
%cb=getelementptr inbounds i8,i8*%b0,i64 28
%cc=bitcast i8*%cb to i32*
%cd=load i32,i32*%cc,align 4
%ce=getelementptr inbounds i8,i8*%b0,i64 24
%cf=bitcast i8*%ce to i32*
%cg=load i32,i32*%cf,align 4
%ch=call i8*@sml_alloc(i32 inreg%aa)#0
%ci=bitcast i8*%ch to i32*
%cj=getelementptr inbounds i8,i8*%ch,i64 -4
%ck=bitcast i8*%cj to i32*
store i32%aW,i32*%ck,align 4
call void@llvm.memset.p0i8.i32(i8*%ch,i8 0,i32%aa,i1 false)
store i32%ca,i32*%ci,align 4
%cl=icmp eq i32%bY,0
%cm=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%cn=getelementptr inbounds i8,i8*%ch,i64%aX
br i1%cl,label%co,label%cp
co:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%cn,i8*%cm,i32%bZ,i1 false)
br label%cr
cp:
%cq=bitcast i8*%cn to i8**
store i8*%cm,i8**%cq,align 8
br label%cr
cr:
%cs=icmp eq i32%cg,0
%ct=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%cu=getelementptr inbounds i8,i8*%ch,i64%aY
br i1%cs,label%cv,label%cw
cv:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%cu,i8*%ct,i32%cd,i1 false)
br label%cy
cw:
%cx=bitcast i8*%cu to i8**
store i8*%ct,i8**%cx,align 8
br label%cy
cy:
%cz=getelementptr inbounds i8,i8*%ch,i64%aZ
%cA=bitcast i8*%cz to i32*
store i32%Z,i32*%cA,align 4
%cB=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%cC=call fastcc i8*%b7(i8*inreg%cB,i8*inreg%ch)
store i8*%cC,i8**%d,align 8
%cD=load i8*,i8**%f,align 8
%cE=getelementptr inbounds i8,i8*%cD,i64 28
%cF=bitcast i8*%cE to i32*
%cG=load i32,i32*%cF,align 4
%cH=getelementptr inbounds i8,i8*%cD,i64 24
%cI=bitcast i8*%cH to i32*
%cJ=load i32,i32*%cI,align 4
%cK=call i8*@sml_alloc(i32 inreg%E)#0
%cL=bitcast i8*%cK to i32*
%cM=getelementptr inbounds i8,i8*%cK,i64 -4
%cN=bitcast i8*%cM to i32*
store i32%aF,i32*%cN,align 4
call void@llvm.memset.p0i8.i32(i8*%cK,i8 0,i32%E,i1 false)
store i32%b3,i32*%cL,align 4
%cO=icmp eq i32%cJ,0
%cP=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%cQ=getelementptr inbounds i8,i8*%cK,i64%aL
br i1%cO,label%cR,label%cS
cR:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%cQ,i8*%cP,i32%cG,i1 false)
br label%cU
cS:
%cT=bitcast i8*%cQ to i8**
store i8*%cP,i8**%cT,align 8
br label%cU
cU:
%cV=getelementptr inbounds i8,i8*%cK,i64%aR
%cW=bitcast i8*%cV to i32*
store i32%D,i32*%cW,align 4
br label%a0
}
define internal fastcc i8*@_SMLLLN11VectorSlice6foldliE_249(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 16
%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 20
%n=bitcast i8*%m to i32*
%o=load i32,i32*%n,align 4
%p=getelementptr inbounds i8,i8*%a,i64 8
%q=bitcast i8*%p to i32*
%r=load i32,i32*%q,align 4
%s=getelementptr inbounds i8,i8*%a,i64 12
%t=bitcast i8*%s to i32*
%u=load i32,i32*%t,align 4
%v=call i8*@sml_alloc(i32 inreg 36)#0
%w=getelementptr inbounds i8,i8*%v,i64 -4
%x=bitcast i8*%w to i32*
store i32 1342177312,i32*%x,align 4
store i8*%v,i8**%e,align 8
%y=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%z=bitcast i8*%v to i8**
store i8*%y,i8**%z,align 8
%A=icmp eq i32%h,0
%B=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%C=getelementptr inbounds i8,i8*%v,i64 8
br i1%A,label%D,label%E
D:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%C,i8*%B,i32%o,i1 false)
br label%G
E:
%F=bitcast i8*%C to i8**
store i8*%B,i8**%F,align 8
br label%G
G:
%H=getelementptr inbounds i8,i8*%v,i64 16
%I=bitcast i8*%H to i32*
store i32%r,i32*%I,align 4
%J=getelementptr inbounds i8,i8*%v,i64 20
%K=bitcast i8*%J to i32*
store i32%u,i32*%K,align 4
%L=getelementptr inbounds i8,i8*%v,i64 24
%M=bitcast i8*%L to i32*
store i32%h,i32*%M,align 4
%N=getelementptr inbounds i8,i8*%v,i64 28
%O=bitcast i8*%N to i32*
store i32%o,i32*%O,align 4
%P=getelementptr inbounds i8,i8*%v,i64 32
%Q=bitcast i8*%P to i32*
store i32%j,i32*%Q,align 4
%R=call i8*@sml_alloc(i32 inreg 28)#0
%S=getelementptr inbounds i8,i8*%R,i64 -4
%T=bitcast i8*%S to i32*
store i32 1342177304,i32*%T,align 4
%U=load i8*,i8**%e,align 8
%V=bitcast i8*%R to i8**
store i8*%U,i8**%V,align 8
%W=getelementptr inbounds i8,i8*%R,i64 8
%X=bitcast i8*%W to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11VectorSlice6foldliE_248 to void(...)*),void(...)**%X,align 8
%Y=getelementptr inbounds i8,i8*%R,i64 16
%Z=bitcast i8*%Y to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11VectorSlice6foldliE_248 to void(...)*),void(...)**%Z,align 8
%aa=getelementptr inbounds i8,i8*%R,i64 24
%ab=bitcast i8*%aa to i32*
store i32 1,i32*%ab,align 4
ret i8*%R
}
define internal fastcc i8*@_SMLLLN11VectorSlice6foldliE_250(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=getelementptr inbounds i8,i8*%a,i64 8
%k=bitcast i8*%j to i32*
%l=load i32,i32*%k,align 4
%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**%d,align 8
%s=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%t=bitcast i8*%p to i8**
store i8*%s,i8**%t,align 8
%u=getelementptr inbounds i8,i8*%p,i64 8
%v=bitcast i8*%u to i32*
store i32%f,i32*%v,align 4
%w=getelementptr inbounds i8,i8*%p,i64 12
%x=bitcast i8*%w to i32*
store i32%i,i32*%x,align 4
%y=getelementptr inbounds i8,i8*%p,i64 16
%z=bitcast i8*%y to i32*
store i32%l,i32*%z,align 4
%A=getelementptr inbounds i8,i8*%p,i64 20
%B=bitcast i8*%A to i32*
store i32%o,i32*%B,align 4
%C=getelementptr inbounds i8,i8*%p,i64 24
%D=bitcast i8*%C to i32*
store i32 1,i32*%D,align 4
%E=call i8*@sml_alloc(i32 inreg 28)#0
%F=getelementptr inbounds i8,i8*%E,i64 -4
%G=bitcast i8*%F to i32*
store i32 1342177304,i32*%G,align 4
%H=load i8*,i8**%d,align 8
%I=bitcast i8*%E to i8**
store i8*%H,i8**%I,align 8
%J=getelementptr inbounds i8,i8*%E,i64 8
%K=bitcast i8*%J to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11VectorSlice6foldliE_249 to void(...)*),void(...)**%K,align 8
%L=getelementptr inbounds i8,i8*%E,i64 16
%M=bitcast i8*%L to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11VectorSlice6foldliE_249 to void(...)*),void(...)**%M,align 8
%N=getelementptr inbounds i8,i8*%E,i64 24
%O=bitcast i8*%N to i32*
store i32 1,i32*%O,align 4
ret i8*%E
}
define fastcc i8*@_SMLFN11VectorSlice6foldliE(i32 inreg%a,i32 inreg%b,i32 inreg%c,i32 inreg%d)#3 gc"smlsharp"{
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%e,i8*null)#0
%f=call i8*@sml_alloc(i32 inreg 20)#0
%g=bitcast i8*%f to i32*
%h=getelementptr inbounds i8,i8*%f,i64 -4
%i=bitcast i8*%h to i32*
store i32 1342177296,i32*%i,align 4
store i8*%f,i8**%e,align 8
store i32%a,i32*%g,align 4
%j=getelementptr inbounds i8,i8*%f,i64 4
%k=bitcast i8*%j to i32*
store i32%b,i32*%k,align 4
%l=getelementptr inbounds i8,i8*%f,i64 8
%m=bitcast i8*%l to i32*
store i32%c,i32*%m,align 4
%n=getelementptr inbounds i8,i8*%f,i64 12
%o=bitcast i8*%n to i32*
store i32%d,i32*%o,align 4
%p=getelementptr inbounds i8,i8*%f,i64 16
%q=bitcast i8*%p to i32*
store i32 0,i32*%q,align 4
%r=call i8*@sml_alloc(i32 inreg 28)#0
%s=getelementptr inbounds i8,i8*%r,i64 -4
%t=bitcast i8*%s to i32*
store i32 1342177304,i32*%t,align 4
%u=load i8*,i8**%e,align 8
%v=bitcast i8*%r to i8**
store i8*%u,i8**%v,align 8
%w=getelementptr inbounds i8,i8*%r,i64 8
%x=bitcast i8*%w to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11VectorSlice6foldliE_250 to void(...)*),void(...)**%x,align 8
%y=getelementptr inbounds i8,i8*%r,i64 16
%z=bitcast i8*%y to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11VectorSlice6foldliE_250 to void(...)*),void(...)**%z,align 8
%A=getelementptr inbounds i8,i8*%r,i64 24
%B=bitcast i8*%A to i32*
store i32 -2147483647,i32*%B,align 4
ret i8*%r
}
define internal fastcc i8*@_SMLLLN11VectorSlice6foldriE_253(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
o:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=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
call void@llvm.gcroot(i8**%g,i8*null)#0
store i8*%a,i8**%f,align 8
store i8*%b,i8**%c,align 8
%h=load atomic i32,i32*@sml_check_flag unordered,align 4
%i=icmp eq i32%h,0
br i1%i,label%m,label%j
j:
call void@sml_check(i32 inreg%h)
%k=load i8*,i8**%c,align 8
%l=load i8*,i8**%f,align 8
br label%m
m:
%n=phi i8*[%l,%j],[%a,%o]
%p=phi i8*[%k,%j],[%b,%o]
%q=getelementptr inbounds i8,i8*%n,i64 28
%r=bitcast i8*%q to i32*
%s=load i32,i32*%r,align 4
%t=add i32%s,3
%u=sub i32 0,%s
%v=and i32%t,%u
%w=add i32%s,7
%x=add i32%w,%v
%y=and i32%x,-8
%z=lshr i32%v,3
%A=getelementptr inbounds i8,i8*%n,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=getelementptr inbounds i8,i8*%n,i64 20
%G=bitcast i8*%F to i32*
%H=load i32,i32*%G,align 4
%I=add i32%H,3
%J=sub i32 0,%H
%K=and i32%I,%J
%L=add i32%s,-1
%M=add i32%L,%H
%N=add i32%M,%K
%O=and i32%N,%u
%P=add i32%w,%O
%Q=and i32%P,-8
%R=lshr i32%O,3
%S=lshr i32%K,3
%T=sub nsw i32%R,%S
%U=shl i32%C,%T
%V=getelementptr inbounds i8,i8*%n,i64 16
%W=bitcast i8*%V to i32*
%X=load i32,i32*%W,align 4
%Y=or i32%U,%X
%Z=shl i32%Y,%S
%aa=or i32%Q,4
%ab=bitcast i8*%p to i8**
%ac=load i8*,i8**%ab,align 8
store i8*%ac,i8**%c,align 8
%ad=getelementptr inbounds i8,i8*%p,i64 8
%ae=bitcast i8*%ad to i32*
%af=load i32,i32*%ae,align 4
%ag=getelementptr inbounds i8,i8*%p,i64 12
%ah=bitcast i8*%ag to i32*
%ai=load i32,i32*%ah,align 4
%aj=add i32%af,-1
%ak=add i32%aj,%ai
%al=icmp eq i32%C,0
br i1%al,label%aq,label%am
am:
%an=getelementptr inbounds i8,i8*%n,i64 8
%ao=bitcast i8*%an to i8**
%ap=load i8*,i8**%ao,align 8
br label%aC
aq:
%ar=call i8*@sml_alloc(i32 inreg%s)#0
%as=getelementptr inbounds i8,i8*%ar,i64 -4
%at=bitcast i8*%as to i32*
store i32%s,i32*%at,align 4
%au=load i8*,i8**%f,align 8
%av=getelementptr inbounds i8,i8*%au,i64 8
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%ar,i8*%av,i32%s,i1 false)
%aw=getelementptr inbounds i8,i8*%au,i64 28
%ax=bitcast i8*%aw to i32*
%ay=load i32,i32*%ax,align 4
%az=getelementptr inbounds i8,i8*%au,i64 24
%aA=bitcast i8*%az to i32*
%aB=load i32,i32*%aA,align 4
br label%aC
aC:
%aD=phi i32[%aB,%aq],[%C,%am]
%aE=phi i32[%ay,%aq],[%s,%am]
%aF=phi i8*[%ar,%aq],[%ap,%am]
store i8*%aF,i8**%d,align 8
%aG=call i8*@sml_alloc(i32 inreg%E)#0
%aH=or i32%y,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%E,i1 false)
store i32%ak,i32*%aI,align 4
%aL=icmp eq i32%aD,0
%aM=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aN=sext i32%v to i64
%aO=getelementptr inbounds i8,i8*%aG,i64%aN
br i1%aL,label%aP,label%aQ
aP:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%aO,i8*%aM,i32%aE,i1 false)
br label%aS
aQ:
%aR=bitcast i8*%aO to i8**
store i8*%aM,i8**%aR,align 8
br label%aS
aS:
%aT=sext i32%y to i64
%aU=getelementptr inbounds i8,i8*%aG,i64%aT
%aV=bitcast i8*%aU to i32*
store i32%D,i32*%aV,align 4
%aW=bitcast i8**%f to i8***
%aX=or i32%Q,1342177280
%aY=sext i32%K to i64
%aZ=sext i32%O to i64
%a0=sext i32%Q to i64
br label%a1
a1:
%a2=phi i8*[%cL,%cV],[%aG,%aS]
store i8*%a2,i8**%d,align 8
%a3=bitcast i8*%a2 to i32*
%a4=load i32,i32*%a3,align 4
%a5=load i8*,i8**%f,align 8
%a6=getelementptr inbounds i8,i8*%a5,i64 24
%a7=bitcast i8*%a6 to i32*
%a8=load i32,i32*%a7,align 4
%a9=icmp eq i32%a8,0
br i1%a9,label%be,label%ba
ba:
store i8*null,i8**%d,align 8
%bb=getelementptr inbounds i8,i8*%a2,i64%aN
%bc=bitcast i8*%bb to i8**
%bd=load i8*,i8**%bc,align 8
br label%bn
be:
%bf=getelementptr inbounds i8,i8*%a5,i64 28
%bg=bitcast i8*%bf to i32*
%bh=load i32,i32*%bg,align 4
%bi=call i8*@sml_alloc(i32 inreg%bh)#0
%bj=getelementptr inbounds i8,i8*%bi,i64 -4
%bk=bitcast i8*%bj to i32*
store i32%bh,i32*%bk,align 4
%bl=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%bm=getelementptr inbounds i8,i8*%bl,i64%aN
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%bi,i8*%bm,i32%bh,i1 false)
br label%bn
bn:
%bo=phi i8*[%bi,%be],[%bd,%ba]
store i8*%bo,i8**%d,align 8
%bp=icmp slt i32%a4,%af
br i1%bp,label%bq,label%br
bq:
ret i8*%bo
br:
%bs=load i8*,i8**%f,align 8
%bt=getelementptr inbounds i8,i8*%bs,i64 20
%bu=bitcast i8*%bt to i32*
%bv=load i32,i32*%bu,align 4
%bw=getelementptr inbounds i8,i8*%bs,i64 16
%bx=bitcast i8*%bw to i32*
%by=load i32,i32*%bx,align 4
%bz=icmp eq i32%by,0
br i1%bz,label%bI,label%bA
bA:
%bB=bitcast i8*%bs to i8**
%bC=load i8*,i8**%c,align 8
%bD=mul i32%bv,%a4
%bE=sext i32%bD to i64
%bF=getelementptr inbounds i8,i8*%bC,i64%bE
%bG=bitcast i8*%bF to i8**
%bH=load i8*,i8**%bG,align 8
br label%bY
bI:
%bJ=call i8*@sml_alloc(i32 inreg%bv)#0
%bK=getelementptr inbounds i8,i8*%bJ,i64 -4
%bL=bitcast i8*%bK to i32*
store i32%bv,i32*%bL,align 4
%bM=load i8*,i8**%c,align 8
%bN=mul i32%bv,%a4
%bO=sext i32%bN to i64
%bP=getelementptr inbounds i8,i8*%bM,i64%bO
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%bJ,i8*%bP,i32%bv,i1 false)
%bQ=load i8**,i8***%aW,align 8
%bR=bitcast i8**%bQ to i8*
%bS=getelementptr inbounds i8,i8*%bR,i64 20
%bT=bitcast i8*%bS to i32*
%bU=load i32,i32*%bT,align 4
%bV=getelementptr inbounds i8*,i8**%bQ,i64 2
%bW=bitcast i8**%bV to i32*
%bX=load i32,i32*%bW,align 4
br label%bY
bY:
%bZ=phi i32[%bX,%bI],[%by,%bA]
%b0=phi i32[%bU,%bI],[%bv,%bA]
%b1=phi i8*[%bR,%bI],[%bs,%bA]
%b2=phi i8**[%bQ,%bI],[%bB,%bA]
%b3=phi i8*[%bJ,%bI],[%bH,%bA]
store i8*%b3,i8**%e,align 8
%b4=add nsw i32%a4,-1
%b5=load i8*,i8**%b2,align 8
%b6=getelementptr inbounds i8,i8*%b5,i64 16
%b7=bitcast i8*%b6 to i8*(i8*,i8*)**
%b8=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%b7,align 8
%b9=bitcast i8*%b5 to i8**
%ca=load i8*,i8**%b9,align 8
store i8*%ca,i8**%g,align 8
%cb=sub nsw i32%a4,%af
%cc=getelementptr inbounds i8,i8*%b1,i64 28
%cd=bitcast i8*%cc to i32*
%ce=load i32,i32*%cd,align 4
%cf=getelementptr inbounds i8,i8*%b1,i64 24
%cg=bitcast i8*%cf to i32*
%ch=load i32,i32*%cg,align 4
%ci=call i8*@sml_alloc(i32 inreg%aa)#0
%cj=bitcast i8*%ci to i32*
%ck=getelementptr inbounds i8,i8*%ci,i64 -4
%cl=bitcast i8*%ck to i32*
store i32%aX,i32*%cl,align 4
call void@llvm.memset.p0i8.i32(i8*%ci,i8 0,i32%aa,i1 false)
store i32%cb,i32*%cj,align 4
%cm=icmp eq i32%bZ,0
%cn=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%co=getelementptr inbounds i8,i8*%ci,i64%aY
br i1%cm,label%cp,label%cq
cp:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%co,i8*%cn,i32%b0,i1 false)
br label%cs
cq:
%cr=bitcast i8*%co to i8**
store i8*%cn,i8**%cr,align 8
br label%cs
cs:
%ct=icmp eq i32%ch,0
%cu=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%cv=getelementptr inbounds i8,i8*%ci,i64%aZ
br i1%ct,label%cw,label%cx
cw:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%cv,i8*%cu,i32%ce,i1 false)
br label%cz
cx:
%cy=bitcast i8*%cv to i8**
store i8*%cu,i8**%cy,align 8
br label%cz
cz:
%cA=getelementptr inbounds i8,i8*%ci,i64%a0
%cB=bitcast i8*%cA to i32*
store i32%Z,i32*%cB,align 4
%cC=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%cD=call fastcc i8*%b8(i8*inreg%cC,i8*inreg%ci)
store i8*%cD,i8**%d,align 8
%cE=load i8*,i8**%f,align 8
%cF=getelementptr inbounds i8,i8*%cE,i64 28
%cG=bitcast i8*%cF to i32*
%cH=load i32,i32*%cG,align 4
%cI=getelementptr inbounds i8,i8*%cE,i64 24
%cJ=bitcast i8*%cI to i32*
%cK=load i32,i32*%cJ,align 4
%cL=call i8*@sml_alloc(i32 inreg%E)#0
%cM=bitcast i8*%cL to i32*
%cN=getelementptr inbounds i8,i8*%cL,i64 -4
%cO=bitcast i8*%cN to i32*
store i32%aH,i32*%cO,align 4
call void@llvm.memset.p0i8.i32(i8*%cL,i8 0,i32%E,i1 false)
store i32%b4,i32*%cM,align 4
%cP=icmp eq i32%cK,0
%cQ=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%cR=getelementptr inbounds i8,i8*%cL,i64%aN
br i1%cP,label%cS,label%cT
cS:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%cR,i8*%cQ,i32%cH,i1 false)
br label%cV
cT:
%cU=bitcast i8*%cR to i8**
store i8*%cQ,i8**%cU,align 8
br label%cV
cV:
%cW=getelementptr inbounds i8,i8*%cL,i64%aT
%cX=bitcast i8*%cW to i32*
store i32%D,i32*%cX,align 4
br label%a1
}
define internal fastcc i8*@_SMLLLN11VectorSlice6foldriE_254(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 16
%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 20
%n=bitcast i8*%m to i32*
%o=load i32,i32*%n,align 4
%p=getelementptr inbounds i8,i8*%a,i64 8
%q=bitcast i8*%p to i32*
%r=load i32,i32*%q,align 4
%s=getelementptr inbounds i8,i8*%a,i64 12
%t=bitcast i8*%s to i32*
%u=load i32,i32*%t,align 4
%v=call i8*@sml_alloc(i32 inreg 36)#0
%w=getelementptr inbounds i8,i8*%v,i64 -4
%x=bitcast i8*%w to i32*
store i32 1342177312,i32*%x,align 4
store i8*%v,i8**%e,align 8
%y=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%z=bitcast i8*%v to i8**
store i8*%y,i8**%z,align 8
%A=icmp eq i32%h,0
%B=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%C=getelementptr inbounds i8,i8*%v,i64 8
br i1%A,label%D,label%E
D:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%C,i8*%B,i32%o,i1 false)
br label%G
E:
%F=bitcast i8*%C to i8**
store i8*%B,i8**%F,align 8
br label%G
G:
%H=getelementptr inbounds i8,i8*%v,i64 16
%I=bitcast i8*%H to i32*
store i32%r,i32*%I,align 4
%J=getelementptr inbounds i8,i8*%v,i64 20
%K=bitcast i8*%J to i32*
store i32%u,i32*%K,align 4
%L=getelementptr inbounds i8,i8*%v,i64 24
%M=bitcast i8*%L to i32*
store i32%h,i32*%M,align 4
%N=getelementptr inbounds i8,i8*%v,i64 28
%O=bitcast i8*%N to i32*
store i32%o,i32*%O,align 4
%P=getelementptr inbounds i8,i8*%v,i64 32
%Q=bitcast i8*%P to i32*
store i32%j,i32*%Q,align 4
%R=call i8*@sml_alloc(i32 inreg 28)#0
%S=getelementptr inbounds i8,i8*%R,i64 -4
%T=bitcast i8*%S to i32*
store i32 1342177304,i32*%T,align 4
%U=load i8*,i8**%e,align 8
%V=bitcast i8*%R to i8**
store i8*%U,i8**%V,align 8
%W=getelementptr inbounds i8,i8*%R,i64 8
%X=bitcast i8*%W to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11VectorSlice6foldriE_253 to void(...)*),void(...)**%X,align 8
%Y=getelementptr inbounds i8,i8*%R,i64 16
%Z=bitcast i8*%Y to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11VectorSlice6foldriE_253 to void(...)*),void(...)**%Z,align 8
%aa=getelementptr inbounds i8,i8*%R,i64 24
%ab=bitcast i8*%aa to i32*
store i32 1,i32*%ab,align 4
ret i8*%R
}
define internal fastcc i8*@_SMLLLN11VectorSlice6foldriE_255(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=getelementptr inbounds i8,i8*%a,i64 8
%k=bitcast i8*%j to i32*
%l=load i32,i32*%k,align 4
%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**%d,align 8
%s=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%t=bitcast i8*%p to i8**
store i8*%s,i8**%t,align 8
%u=getelementptr inbounds i8,i8*%p,i64 8
%v=bitcast i8*%u to i32*
store i32%f,i32*%v,align 4
%w=getelementptr inbounds i8,i8*%p,i64 12
%x=bitcast i8*%w to i32*
store i32%i,i32*%x,align 4
%y=getelementptr inbounds i8,i8*%p,i64 16
%z=bitcast i8*%y to i32*
store i32%l,i32*%z,align 4
%A=getelementptr inbounds i8,i8*%p,i64 20
%B=bitcast i8*%A to i32*
store i32%o,i32*%B,align 4
%C=getelementptr inbounds i8,i8*%p,i64 24
%D=bitcast i8*%C to i32*
store i32 1,i32*%D,align 4
%E=call i8*@sml_alloc(i32 inreg 28)#0
%F=getelementptr inbounds i8,i8*%E,i64 -4
%G=bitcast i8*%F to i32*
store i32 1342177304,i32*%G,align 4
%H=load i8*,i8**%d,align 8
%I=bitcast i8*%E to i8**
store i8*%H,i8**%I,align 8
%J=getelementptr inbounds i8,i8*%E,i64 8
%K=bitcast i8*%J to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11VectorSlice6foldriE_254 to void(...)*),void(...)**%K,align 8
%L=getelementptr inbounds i8,i8*%E,i64 16
%M=bitcast i8*%L to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11VectorSlice6foldriE_254 to void(...)*),void(...)**%M,align 8
%N=getelementptr inbounds i8,i8*%E,i64 24
%O=bitcast i8*%N to i32*
store i32 1,i32*%O,align 4
ret i8*%E
}
define fastcc i8*@_SMLFN11VectorSlice6foldriE(i32 inreg%a,i32 inreg%b,i32 inreg%c,i32 inreg%d)#3 gc"smlsharp"{
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%e,i8*null)#0
%f=call i8*@sml_alloc(i32 inreg 20)#0
%g=bitcast i8*%f to i32*
%h=getelementptr inbounds i8,i8*%f,i64 -4
%i=bitcast i8*%h to i32*
store i32 1342177296,i32*%i,align 4
store i8*%f,i8**%e,align 8
store i32%a,i32*%g,align 4
%j=getelementptr inbounds i8,i8*%f,i64 4
%k=bitcast i8*%j to i32*
store i32%b,i32*%k,align 4
%l=getelementptr inbounds i8,i8*%f,i64 8
%m=bitcast i8*%l to i32*
store i32%c,i32*%m,align 4
%n=getelementptr inbounds i8,i8*%f,i64 12
%o=bitcast i8*%n to i32*
store i32%d,i32*%o,align 4
%p=getelementptr inbounds i8,i8*%f,i64 16
%q=bitcast i8*%p to i32*
store i32 0,i32*%q,align 4
%r=call i8*@sml_alloc(i32 inreg 28)#0
%s=getelementptr inbounds i8,i8*%r,i64 -4
%t=bitcast i8*%s to i32*
store i32 1342177304,i32*%t,align 4
%u=load i8*,i8**%e,align 8
%v=bitcast i8*%r to i8**
store i8*%u,i8**%v,align 8
%w=getelementptr inbounds i8,i8*%r,i64 8
%x=bitcast i8*%w to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11VectorSlice6foldriE_255 to void(...)*),void(...)**%x,align 8
%y=getelementptr inbounds i8,i8*%r,i64 16
%z=bitcast i8*%y to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11VectorSlice6foldriE_255 to void(...)*),void(...)**%z,align 8
%A=getelementptr inbounds i8,i8*%r,i64 24
%B=bitcast i8*%A to i32*
store i32 -2147483647,i32*%B,align 4
ret i8*%r
}
define internal fastcc i8*@_SMLLLN11VectorSlice5foldlE_258(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
o:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=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
call void@llvm.gcroot(i8**%g,i8*null)#0
store i8*%a,i8**%f,align 8
store i8*%b,i8**%c,align 8
%h=load atomic i32,i32*@sml_check_flag unordered,align 4
%i=icmp eq i32%h,0
br i1%i,label%m,label%j
j:
call void@sml_check(i32 inreg%h)
%k=load i8*,i8**%c,align 8
%l=load i8*,i8**%f,align 8
br label%m
m:
%n=phi i8*[%l,%j],[%a,%o]
%p=phi i8*[%k,%j],[%b,%o]
%q=getelementptr inbounds i8,i8*%n,i64 28
%r=bitcast i8*%q to i32*
%s=load i32,i32*%r,align 4
%t=add i32%s,3
%u=sub i32 0,%s
%v=and i32%t,%u
%w=add i32%s,7
%x=add i32%w,%v
%y=and i32%x,-8
%z=lshr i32%v,3
%A=getelementptr inbounds i8,i8*%n,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=getelementptr inbounds i8,i8*%n,i64 20
%G=bitcast i8*%F to i32*
%H=load i32,i32*%G,align 4
%I=add i32%H,-1
%J=sub i32 0,%H
%K=and i32%I,%J
%L=add i32%I,%s
%M=add i32%L,%K
%N=and i32%M,%u
%O=add i32%w,%N
%P=and i32%O,-8
%Q=lshr i32%N,3
%R=lshr i32%K,3
%S=sub nsw i32%Q,%R
%T=shl i32%C,%S
%U=getelementptr inbounds i8,i8*%n,i64 16
%V=bitcast i8*%U to i32*
%W=load i32,i32*%V,align 4
%X=or i32%T,%W
%Y=or i32%P,4
%Z=bitcast i8*%p to i8**
%aa=load i8*,i8**%Z,align 8
store i8*%aa,i8**%c,align 8
%ab=getelementptr inbounds i8,i8*%p,i64 8
%ac=bitcast i8*%ab to i32*
%ad=load i32,i32*%ac,align 4
%ae=getelementptr inbounds i8,i8*%p,i64 12
%af=bitcast i8*%ae to i32*
%ag=load i32,i32*%af,align 4
%ah=icmp eq i32%C,0
br i1%ah,label%am,label%ai
ai:
%aj=getelementptr inbounds i8,i8*%n,i64 8
%ak=bitcast i8*%aj to i8**
%al=load i8*,i8**%ak,align 8
br label%ay
am:
%an=call i8*@sml_alloc(i32 inreg%s)#0
%ao=getelementptr inbounds i8,i8*%an,i64 -4
%ap=bitcast i8*%ao to i32*
store i32%s,i32*%ap,align 4
%aq=load i8*,i8**%f,align 8
%ar=getelementptr inbounds i8,i8*%aq,i64 8
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%an,i8*%ar,i32%s,i1 false)
%as=getelementptr inbounds i8,i8*%aq,i64 28
%at=bitcast i8*%as to i32*
%au=load i32,i32*%at,align 4
%av=getelementptr inbounds i8,i8*%aq,i64 24
%aw=bitcast i8*%av to i32*
%ax=load i32,i32*%aw,align 4
br label%ay
ay:
%az=phi i32[%ax,%am],[%C,%ai]
%aA=phi i32[%au,%am],[%s,%ai]
%aB=phi i8*[%an,%am],[%al,%ai]
store i8*%aB,i8**%d,align 8
%aC=call i8*@sml_alloc(i32 inreg%E)#0
%aD=or i32%y,1342177280
%aE=bitcast i8*%aC to i32*
%aF=getelementptr inbounds i8,i8*%aC,i64 -4
%aG=bitcast i8*%aF to i32*
store i32%aD,i32*%aG,align 4
call void@llvm.memset.p0i8.i32(i8*%aC,i8 0,i32%E,i1 false)
store i32%ad,i32*%aE,align 4
%aH=icmp eq i32%az,0
%aI=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aJ=sext i32%v to i64
%aK=getelementptr inbounds i8,i8*%aC,i64%aJ
br i1%aH,label%aL,label%aM
aL:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%aK,i8*%aI,i32%aA,i1 false)
br label%aO
aM:
%aN=bitcast i8*%aK to i8**
store i8*%aI,i8**%aN,align 8
br label%aO
aO:
%aP=sext i32%y to i64
%aQ=getelementptr inbounds i8,i8*%aC,i64%aP
%aR=bitcast i8*%aQ to i32*
store i32%D,i32*%aR,align 4
%aS=add nsw i32%ag,%ad
%aT=bitcast i8**%f to i8***
%aU=or i32%P,1342177280
%aV=sext i32%K to i64
%aW=sext i32%N to i64
%aX=sext i32%P to i64
br label%aY
aY:
%aZ=phi i8*[%cG,%cQ],[%aC,%aO]
store i8*%aZ,i8**%d,align 8
%a0=bitcast i8*%aZ to i32*
%a1=load i32,i32*%a0,align 4
%a2=load i8*,i8**%f,align 8
%a3=getelementptr inbounds i8,i8*%a2,i64 24
%a4=bitcast i8*%a3 to i32*
%a5=load i32,i32*%a4,align 4
%a6=icmp eq i32%a5,0
br i1%a6,label%bb,label%a7
a7:
store i8*null,i8**%d,align 8
%a8=getelementptr inbounds i8,i8*%aZ,i64%aJ
%a9=bitcast i8*%a8 to i8**
%ba=load i8*,i8**%a9,align 8
br label%bk
bb:
%bc=getelementptr inbounds i8,i8*%a2,i64 28
%bd=bitcast i8*%bc to i32*
%be=load i32,i32*%bd,align 4
%bf=call i8*@sml_alloc(i32 inreg%be)#0
%bg=getelementptr inbounds i8,i8*%bf,i64 -4
%bh=bitcast i8*%bg to i32*
store i32%be,i32*%bh,align 4
%bi=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%bj=getelementptr inbounds i8,i8*%bi,i64%aJ
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%bf,i8*%bj,i32%be,i1 false)
br label%bk
bk:
%bl=phi i8*[%bf,%bb],[%ba,%a7]
store i8*%bl,i8**%d,align 8
%bm=icmp slt i32%a1,%aS
br i1%bm,label%bo,label%bn
bn:
ret i8*%bl
bo:
%bp=load i8*,i8**%f,align 8
%bq=getelementptr inbounds i8,i8*%bp,i64 20
%br=bitcast i8*%bq to i32*
%bs=load i32,i32*%br,align 4
%bt=getelementptr inbounds i8,i8*%bp,i64 16
%bu=bitcast i8*%bt to i32*
%bv=load i32,i32*%bu,align 4
%bw=icmp eq i32%bv,0
br i1%bw,label%bF,label%bx
bx:
%by=bitcast i8*%bp to i8**
%bz=load i8*,i8**%c,align 8
%bA=mul i32%bs,%a1
%bB=sext i32%bA to i64
%bC=getelementptr inbounds i8,i8*%bz,i64%bB
%bD=bitcast i8*%bC to i8**
%bE=load i8*,i8**%bD,align 8
br label%bV
bF:
%bG=call i8*@sml_alloc(i32 inreg%bs)#0
%bH=getelementptr inbounds i8,i8*%bG,i64 -4
%bI=bitcast i8*%bH to i32*
store i32%bs,i32*%bI,align 4
%bJ=load i8*,i8**%c,align 8
%bK=mul i32%bs,%a1
%bL=sext i32%bK to i64
%bM=getelementptr inbounds i8,i8*%bJ,i64%bL
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%bG,i8*%bM,i32%bs,i1 false)
%bN=load i8**,i8***%aT,align 8
%bO=bitcast i8**%bN to i8*
%bP=getelementptr inbounds i8,i8*%bO,i64 20
%bQ=bitcast i8*%bP to i32*
%bR=load i32,i32*%bQ,align 4
%bS=getelementptr inbounds i8*,i8**%bN,i64 2
%bT=bitcast i8**%bS to i32*
%bU=load i32,i32*%bT,align 4
br label%bV
bV:
%bW=phi i32[%bU,%bF],[%bv,%bx]
%bX=phi i32[%bR,%bF],[%bs,%bx]
%bY=phi i8*[%bO,%bF],[%bp,%bx]
%bZ=phi i8**[%bN,%bF],[%by,%bx]
%b0=phi i8*[%bG,%bF],[%bE,%bx]
store i8*%b0,i8**%e,align 8
%b1=add nsw i32%a1,1
%b2=load i8*,i8**%bZ,align 8
%b3=getelementptr inbounds i8,i8*%b2,i64 16
%b4=bitcast i8*%b3 to i8*(i8*,i8*)**
%b5=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%b4,align 8
%b6=bitcast i8*%b2 to i8**
%b7=load i8*,i8**%b6,align 8
store i8*%b7,i8**%g,align 8
%b8=getelementptr inbounds i8,i8*%bY,i64 28
%b9=bitcast i8*%b8 to i32*
%ca=load i32,i32*%b9,align 4
%cb=getelementptr inbounds i8,i8*%bY,i64 24
%cc=bitcast i8*%cb to i32*
%cd=load i32,i32*%cc,align 4
%ce=call i8*@sml_alloc(i32 inreg%Y)#0
%cf=getelementptr inbounds i8,i8*%ce,i64 -4
%cg=bitcast i8*%cf to i32*
store i32%aU,i32*%cg,align 4
call void@llvm.memset.p0i8.i32(i8*%ce,i8 0,i32%Y,i1 false)
%ch=icmp eq i32%bW,0
%ci=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%cj=getelementptr inbounds i8,i8*%ce,i64%aV
br i1%ch,label%ck,label%cl
ck:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%cj,i8*%ci,i32%bX,i1 false)
br label%cn
cl:
%cm=bitcast i8*%cj to i8**
store i8*%ci,i8**%cm,align 8
br label%cn
cn:
%co=icmp eq i32%cd,0
%cp=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%cq=getelementptr inbounds i8,i8*%ce,i64%aW
br i1%co,label%cr,label%cs
cr:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%cq,i8*%cp,i32%ca,i1 false)
br label%cu
cs:
%ct=bitcast i8*%cq to i8**
store i8*%cp,i8**%ct,align 8
br label%cu
cu:
%cv=getelementptr inbounds i8,i8*%ce,i64%aX
%cw=bitcast i8*%cv to i32*
store i32%X,i32*%cw,align 4
%cx=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%cy=call fastcc i8*%b5(i8*inreg%cx,i8*inreg%ce)
store i8*%cy,i8**%d,align 8
%cz=load i8*,i8**%f,align 8
%cA=getelementptr inbounds i8,i8*%cz,i64 28
%cB=bitcast i8*%cA to i32*
%cC=load i32,i32*%cB,align 4
%cD=getelementptr inbounds i8,i8*%cz,i64 24
%cE=bitcast i8*%cD to i32*
%cF=load i32,i32*%cE,align 4
%cG=call i8*@sml_alloc(i32 inreg%E)#0
%cH=bitcast i8*%cG to i32*
%cI=getelementptr inbounds i8,i8*%cG,i64 -4
%cJ=bitcast i8*%cI to i32*
store i32%aD,i32*%cJ,align 4
call void@llvm.memset.p0i8.i32(i8*%cG,i8 0,i32%E,i1 false)
store i32%b1,i32*%cH,align 4
%cK=icmp eq i32%cF,0
%cL=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%cM=getelementptr inbounds i8,i8*%cG,i64%aJ
br i1%cK,label%cN,label%cO
cN:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%cM,i8*%cL,i32%cC,i1 false)
br label%cQ
cO:
%cP=bitcast i8*%cM to i8**
store i8*%cL,i8**%cP,align 8
br label%cQ
cQ:
%cR=getelementptr inbounds i8,i8*%cG,i64%aP
%cS=bitcast i8*%cR to i32*
store i32%D,i32*%cS,align 4
br label%aY
}
define internal fastcc i8*@_SMLLLN11VectorSlice5foldlE_259(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 16
%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 20
%n=bitcast i8*%m to i32*
%o=load i32,i32*%n,align 4
%p=getelementptr inbounds i8,i8*%a,i64 8
%q=bitcast i8*%p to i32*
%r=load i32,i32*%q,align 4
%s=getelementptr inbounds i8,i8*%a,i64 12
%t=bitcast i8*%s to i32*
%u=load i32,i32*%t,align 4
%v=call i8*@sml_alloc(i32 inreg 36)#0
%w=getelementptr inbounds i8,i8*%v,i64 -4
%x=bitcast i8*%w to i32*
store i32 1342177312,i32*%x,align 4
store i8*%v,i8**%e,align 8
%y=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%z=bitcast i8*%v to i8**
store i8*%y,i8**%z,align 8
%A=icmp eq i32%h,0
%B=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%C=getelementptr inbounds i8,i8*%v,i64 8
br i1%A,label%D,label%E
D:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%C,i8*%B,i32%o,i1 false)
br label%G
E:
%F=bitcast i8*%C to i8**
store i8*%B,i8**%F,align 8
br label%G
G:
%H=getelementptr inbounds i8,i8*%v,i64 16
%I=bitcast i8*%H to i32*
store i32%r,i32*%I,align 4
%J=getelementptr inbounds i8,i8*%v,i64 20
%K=bitcast i8*%J to i32*
store i32%u,i32*%K,align 4
%L=getelementptr inbounds i8,i8*%v,i64 24
%M=bitcast i8*%L to i32*
store i32%h,i32*%M,align 4
%N=getelementptr inbounds i8,i8*%v,i64 28
%O=bitcast i8*%N to i32*
store i32%o,i32*%O,align 4
%P=getelementptr inbounds i8,i8*%v,i64 32
%Q=bitcast i8*%P to i32*
store i32%j,i32*%Q,align 4
%R=call i8*@sml_alloc(i32 inreg 28)#0
%S=getelementptr inbounds i8,i8*%R,i64 -4
%T=bitcast i8*%S to i32*
store i32 1342177304,i32*%T,align 4
%U=load i8*,i8**%e,align 8
%V=bitcast i8*%R to i8**
store i8*%U,i8**%V,align 8
%W=getelementptr inbounds i8,i8*%R,i64 8
%X=bitcast i8*%W to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11VectorSlice5foldlE_258 to void(...)*),void(...)**%X,align 8
%Y=getelementptr inbounds i8,i8*%R,i64 16
%Z=bitcast i8*%Y to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11VectorSlice5foldlE_258 to void(...)*),void(...)**%Z,align 8
%aa=getelementptr inbounds i8,i8*%R,i64 24
%ab=bitcast i8*%aa to i32*
store i32 1,i32*%ab,align 4
ret i8*%R
}
define internal fastcc i8*@_SMLLLN11VectorSlice5foldlE_260(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=getelementptr inbounds i8,i8*%a,i64 8
%k=bitcast i8*%j to i32*
%l=load i32,i32*%k,align 4
%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**%d,align 8
%s=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%t=bitcast i8*%p to i8**
store i8*%s,i8**%t,align 8
%u=getelementptr inbounds i8,i8*%p,i64 8
%v=bitcast i8*%u to i32*
store i32%f,i32*%v,align 4
%w=getelementptr inbounds i8,i8*%p,i64 12
%x=bitcast i8*%w to i32*
store i32%i,i32*%x,align 4
%y=getelementptr inbounds i8,i8*%p,i64 16
%z=bitcast i8*%y to i32*
store i32%l,i32*%z,align 4
%A=getelementptr inbounds i8,i8*%p,i64 20
%B=bitcast i8*%A to i32*
store i32%o,i32*%B,align 4
%C=getelementptr inbounds i8,i8*%p,i64 24
%D=bitcast i8*%C to i32*
store i32 1,i32*%D,align 4
%E=call i8*@sml_alloc(i32 inreg 28)#0
%F=getelementptr inbounds i8,i8*%E,i64 -4
%G=bitcast i8*%F to i32*
store i32 1342177304,i32*%G,align 4
%H=load i8*,i8**%d,align 8
%I=bitcast i8*%E to i8**
store i8*%H,i8**%I,align 8
%J=getelementptr inbounds i8,i8*%E,i64 8
%K=bitcast i8*%J to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11VectorSlice5foldlE_259 to void(...)*),void(...)**%K,align 8
%L=getelementptr inbounds i8,i8*%E,i64 16
%M=bitcast i8*%L to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11VectorSlice5foldlE_259 to void(...)*),void(...)**%M,align 8
%N=getelementptr inbounds i8,i8*%E,i64 24
%O=bitcast i8*%N to i32*
store i32 1,i32*%O,align 4
ret i8*%E
}
define fastcc i8*@_SMLFN11VectorSlice5foldlE(i32 inreg%a,i32 inreg%b,i32 inreg%c,i32 inreg%d)#3 gc"smlsharp"{
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%e,i8*null)#0
%f=call i8*@sml_alloc(i32 inreg 20)#0
%g=bitcast i8*%f to i32*
%h=getelementptr inbounds i8,i8*%f,i64 -4
%i=bitcast i8*%h to i32*
store i32 1342177296,i32*%i,align 4
store i8*%f,i8**%e,align 8
store i32%a,i32*%g,align 4
%j=getelementptr inbounds i8,i8*%f,i64 4
%k=bitcast i8*%j to i32*
store i32%b,i32*%k,align 4
%l=getelementptr inbounds i8,i8*%f,i64 8
%m=bitcast i8*%l to i32*
store i32%c,i32*%m,align 4
%n=getelementptr inbounds i8,i8*%f,i64 12
%o=bitcast i8*%n to i32*
store i32%d,i32*%o,align 4
%p=getelementptr inbounds i8,i8*%f,i64 16
%q=bitcast i8*%p to i32*
store i32 0,i32*%q,align 4
%r=call i8*@sml_alloc(i32 inreg 28)#0
%s=getelementptr inbounds i8,i8*%r,i64 -4
%t=bitcast i8*%s to i32*
store i32 1342177304,i32*%t,align 4
%u=load i8*,i8**%e,align 8
%v=bitcast i8*%r to i8**
store i8*%u,i8**%v,align 8
%w=getelementptr inbounds i8,i8*%r,i64 8
%x=bitcast i8*%w to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11VectorSlice5foldlE_260 to void(...)*),void(...)**%x,align 8
%y=getelementptr inbounds i8,i8*%r,i64 16
%z=bitcast i8*%y to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11VectorSlice5foldlE_260 to void(...)*),void(...)**%z,align 8
%A=getelementptr inbounds i8,i8*%r,i64 24
%B=bitcast i8*%A to i32*
store i32 -2147483647,i32*%B,align 4
ret i8*%r
}
define internal fastcc i8*@_SMLLLN11VectorSlice5foldrE_263(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
o:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=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
call void@llvm.gcroot(i8**%g,i8*null)#0
store i8*%a,i8**%f,align 8
store i8*%b,i8**%c,align 8
%h=load atomic i32,i32*@sml_check_flag unordered,align 4
%i=icmp eq i32%h,0
br i1%i,label%m,label%j
j:
call void@sml_check(i32 inreg%h)
%k=load i8*,i8**%c,align 8
%l=load i8*,i8**%f,align 8
br label%m
m:
%n=phi i8*[%l,%j],[%a,%o]
%p=phi i8*[%k,%j],[%b,%o]
%q=getelementptr inbounds i8,i8*%n,i64 28
%r=bitcast i8*%q to i32*
%s=load i32,i32*%r,align 4
%t=add i32%s,3
%u=sub i32 0,%s
%v=and i32%t,%u
%w=add i32%s,7
%x=add i32%w,%v
%y=and i32%x,-8
%z=lshr i32%v,3
%A=getelementptr inbounds i8,i8*%n,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=getelementptr inbounds i8,i8*%n,i64 20
%G=bitcast i8*%F to i32*
%H=load i32,i32*%G,align 4
%I=add i32%H,-1
%J=sub i32 0,%H
%K=and i32%I,%J
%L=add i32%I,%s
%M=add i32%L,%K
%N=and i32%M,%u
%O=add i32%w,%N
%P=and i32%O,-8
%Q=lshr i32%N,3
%R=lshr i32%K,3
%S=sub nsw i32%Q,%R
%T=shl i32%C,%S
%U=getelementptr inbounds i8,i8*%n,i64 16
%V=bitcast i8*%U to i32*
%W=load i32,i32*%V,align 4
%X=or i32%T,%W
%Y=or i32%P,4
%Z=bitcast i8*%p to i8**
%aa=load i8*,i8**%Z,align 8
store i8*%aa,i8**%c,align 8
%ab=getelementptr inbounds i8,i8*%p,i64 8
%ac=bitcast i8*%ab to i32*
%ad=load i32,i32*%ac,align 4
%ae=getelementptr inbounds i8,i8*%p,i64 12
%af=bitcast i8*%ae to i32*
%ag=load i32,i32*%af,align 4
%ah=add i32%ad,-1
%ai=add i32%ah,%ag
%aj=icmp eq i32%C,0
br i1%aj,label%ao,label%ak
ak:
%al=getelementptr inbounds i8,i8*%n,i64 8
%am=bitcast i8*%al to i8**
%an=load i8*,i8**%am,align 8
br label%aA
ao:
%ap=call i8*@sml_alloc(i32 inreg%s)#0
%aq=getelementptr inbounds i8,i8*%ap,i64 -4
%ar=bitcast i8*%aq to i32*
store i32%s,i32*%ar,align 4
%as=load i8*,i8**%f,align 8
%at=getelementptr inbounds i8,i8*%as,i64 8
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%ap,i8*%at,i32%s,i1 false)
%au=getelementptr inbounds i8,i8*%as,i64 28
%av=bitcast i8*%au to i32*
%aw=load i32,i32*%av,align 4
%ax=getelementptr inbounds i8,i8*%as,i64 24
%ay=bitcast i8*%ax to i32*
%az=load i32,i32*%ay,align 4
br label%aA
aA:
%aB=phi i32[%az,%ao],[%C,%ak]
%aC=phi i32[%aw,%ao],[%s,%ak]
%aD=phi i8*[%ap,%ao],[%an,%ak]
store i8*%aD,i8**%d,align 8
%aE=call i8*@sml_alloc(i32 inreg%E)#0
%aF=or i32%y,1342177280
%aG=bitcast i8*%aE to i32*
%aH=getelementptr inbounds i8,i8*%aE,i64 -4
%aI=bitcast i8*%aH to i32*
store i32%aF,i32*%aI,align 4
call void@llvm.memset.p0i8.i32(i8*%aE,i8 0,i32%E,i1 false)
store i32%ai,i32*%aG,align 4
%aJ=icmp eq i32%aB,0
%aK=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aL=sext i32%v to i64
%aM=getelementptr inbounds i8,i8*%aE,i64%aL
br i1%aJ,label%aN,label%aO
aN:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%aM,i8*%aK,i32%aC,i1 false)
br label%aQ
aO:
%aP=bitcast i8*%aM to i8**
store i8*%aK,i8**%aP,align 8
br label%aQ
aQ:
%aR=sext i32%y to i64
%aS=getelementptr inbounds i8,i8*%aE,i64%aR
%aT=bitcast i8*%aS to i32*
store i32%D,i32*%aT,align 4
%aU=bitcast i8**%f to i8***
%aV=or i32%P,1342177280
%aW=sext i32%K to i64
%aX=sext i32%N to i64
%aY=sext i32%P to i64
br label%aZ
aZ:
%a0=phi i8*[%cH,%cR],[%aE,%aQ]
store i8*%a0,i8**%d,align 8
%a1=bitcast i8*%a0 to i32*
%a2=load i32,i32*%a1,align 4
%a3=load i8*,i8**%f,align 8
%a4=getelementptr inbounds i8,i8*%a3,i64 24
%a5=bitcast i8*%a4 to i32*
%a6=load i32,i32*%a5,align 4
%a7=icmp eq i32%a6,0
br i1%a7,label%bc,label%a8
a8:
store i8*null,i8**%d,align 8
%a9=getelementptr inbounds i8,i8*%a0,i64%aL
%ba=bitcast i8*%a9 to i8**
%bb=load i8*,i8**%ba,align 8
br label%bl
bc:
%bd=getelementptr inbounds i8,i8*%a3,i64 28
%be=bitcast i8*%bd to i32*
%bf=load i32,i32*%be,align 4
%bg=call i8*@sml_alloc(i32 inreg%bf)#0
%bh=getelementptr inbounds i8,i8*%bg,i64 -4
%bi=bitcast i8*%bh to i32*
store i32%bf,i32*%bi,align 4
%bj=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%bk=getelementptr inbounds i8,i8*%bj,i64%aL
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%bg,i8*%bk,i32%bf,i1 false)
br label%bl
bl:
%bm=phi i8*[%bg,%bc],[%bb,%a8]
store i8*%bm,i8**%d,align 8
%bn=icmp slt i32%a2,%ad
br i1%bn,label%bo,label%bp
bo:
ret i8*%bm
bp:
%bq=load i8*,i8**%f,align 8
%br=getelementptr inbounds i8,i8*%bq,i64 20
%bs=bitcast i8*%br to i32*
%bt=load i32,i32*%bs,align 4
%bu=getelementptr inbounds i8,i8*%bq,i64 16
%bv=bitcast i8*%bu to i32*
%bw=load i32,i32*%bv,align 4
%bx=icmp eq i32%bw,0
br i1%bx,label%bG,label%by
by:
%bz=bitcast i8*%bq to i8**
%bA=load i8*,i8**%c,align 8
%bB=mul i32%bt,%a2
%bC=sext i32%bB to i64
%bD=getelementptr inbounds i8,i8*%bA,i64%bC
%bE=bitcast i8*%bD to i8**
%bF=load i8*,i8**%bE,align 8
br label%bW
bG:
%bH=call i8*@sml_alloc(i32 inreg%bt)#0
%bI=getelementptr inbounds i8,i8*%bH,i64 -4
%bJ=bitcast i8*%bI to i32*
store i32%bt,i32*%bJ,align 4
%bK=load i8*,i8**%c,align 8
%bL=mul i32%bt,%a2
%bM=sext i32%bL to i64
%bN=getelementptr inbounds i8,i8*%bK,i64%bM
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%bH,i8*%bN,i32%bt,i1 false)
%bO=load i8**,i8***%aU,align 8
%bP=bitcast i8**%bO to i8*
%bQ=getelementptr inbounds i8,i8*%bP,i64 20
%bR=bitcast i8*%bQ to i32*
%bS=load i32,i32*%bR,align 4
%bT=getelementptr inbounds i8*,i8**%bO,i64 2
%bU=bitcast i8**%bT to i32*
%bV=load i32,i32*%bU,align 4
br label%bW
bW:
%bX=phi i32[%bV,%bG],[%bw,%by]
%bY=phi i32[%bS,%bG],[%bt,%by]
%bZ=phi i8*[%bP,%bG],[%bq,%by]
%b0=phi i8**[%bO,%bG],[%bz,%by]
%b1=phi i8*[%bH,%bG],[%bF,%by]
store i8*%b1,i8**%e,align 8
%b2=add nsw i32%a2,-1
%b3=load i8*,i8**%b0,align 8
%b4=getelementptr inbounds i8,i8*%b3,i64 16
%b5=bitcast i8*%b4 to i8*(i8*,i8*)**
%b6=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%b5,align 8
%b7=bitcast i8*%b3 to i8**
%b8=load i8*,i8**%b7,align 8
store i8*%b8,i8**%g,align 8
%b9=getelementptr inbounds i8,i8*%bZ,i64 28
%ca=bitcast i8*%b9 to i32*
%cb=load i32,i32*%ca,align 4
%cc=getelementptr inbounds i8,i8*%bZ,i64 24
%cd=bitcast i8*%cc to i32*
%ce=load i32,i32*%cd,align 4
%cf=call i8*@sml_alloc(i32 inreg%Y)#0
%cg=getelementptr inbounds i8,i8*%cf,i64 -4
%ch=bitcast i8*%cg to i32*
store i32%aV,i32*%ch,align 4
call void@llvm.memset.p0i8.i32(i8*%cf,i8 0,i32%Y,i1 false)
%ci=icmp eq i32%bX,0
%cj=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%ck=getelementptr inbounds i8,i8*%cf,i64%aW
br i1%ci,label%cl,label%cm
cl:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%ck,i8*%cj,i32%bY,i1 false)
br label%co
cm:
%cn=bitcast i8*%ck to i8**
store i8*%cj,i8**%cn,align 8
br label%co
co:
%cp=icmp eq i32%ce,0
%cq=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%cr=getelementptr inbounds i8,i8*%cf,i64%aX
br i1%cp,label%cs,label%ct
cs:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%cr,i8*%cq,i32%cb,i1 false)
br label%cv
ct:
%cu=bitcast i8*%cr to i8**
store i8*%cq,i8**%cu,align 8
br label%cv
cv:
%cw=getelementptr inbounds i8,i8*%cf,i64%aY
%cx=bitcast i8*%cw to i32*
store i32%X,i32*%cx,align 4
%cy=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%cz=call fastcc i8*%b6(i8*inreg%cy,i8*inreg%cf)
store i8*%cz,i8**%d,align 8
%cA=load i8*,i8**%f,align 8
%cB=getelementptr inbounds i8,i8*%cA,i64 28
%cC=bitcast i8*%cB to i32*
%cD=load i32,i32*%cC,align 4
%cE=getelementptr inbounds i8,i8*%cA,i64 24
%cF=bitcast i8*%cE to i32*
%cG=load i32,i32*%cF,align 4
%cH=call i8*@sml_alloc(i32 inreg%E)#0
%cI=bitcast i8*%cH to i32*
%cJ=getelementptr inbounds i8,i8*%cH,i64 -4
%cK=bitcast i8*%cJ to i32*
store i32%aF,i32*%cK,align 4
call void@llvm.memset.p0i8.i32(i8*%cH,i8 0,i32%E,i1 false)
store i32%b2,i32*%cI,align 4
%cL=icmp eq i32%cG,0
%cM=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%cN=getelementptr inbounds i8,i8*%cH,i64%aL
br i1%cL,label%cO,label%cP
cO:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%cN,i8*%cM,i32%cD,i1 false)
br label%cR
cP:
%cQ=bitcast i8*%cN to i8**
store i8*%cM,i8**%cQ,align 8
br label%cR
cR:
%cS=getelementptr inbounds i8,i8*%cH,i64%aR
%cT=bitcast i8*%cS to i32*
store i32%D,i32*%cT,align 4
br label%aZ
}
define internal fastcc i8*@_SMLLLN11VectorSlice5foldrE_264(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 16
%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 20
%n=bitcast i8*%m to i32*
%o=load i32,i32*%n,align 4
%p=getelementptr inbounds i8,i8*%a,i64 8
%q=bitcast i8*%p to i32*
%r=load i32,i32*%q,align 4
%s=getelementptr inbounds i8,i8*%a,i64 12
%t=bitcast i8*%s to i32*
%u=load i32,i32*%t,align 4
%v=call i8*@sml_alloc(i32 inreg 36)#0
%w=getelementptr inbounds i8,i8*%v,i64 -4
%x=bitcast i8*%w to i32*
store i32 1342177312,i32*%x,align 4
store i8*%v,i8**%e,align 8
%y=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%z=bitcast i8*%v to i8**
store i8*%y,i8**%z,align 8
%A=icmp eq i32%h,0
%B=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%C=getelementptr inbounds i8,i8*%v,i64 8
br i1%A,label%D,label%E
D:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%C,i8*%B,i32%o,i1 false)
br label%G
E:
%F=bitcast i8*%C to i8**
store i8*%B,i8**%F,align 8
br label%G
G:
%H=getelementptr inbounds i8,i8*%v,i64 16
%I=bitcast i8*%H to i32*
store i32%r,i32*%I,align 4
%J=getelementptr inbounds i8,i8*%v,i64 20
%K=bitcast i8*%J to i32*
store i32%u,i32*%K,align 4
%L=getelementptr inbounds i8,i8*%v,i64 24
%M=bitcast i8*%L to i32*
store i32%h,i32*%M,align 4
%N=getelementptr inbounds i8,i8*%v,i64 28
%O=bitcast i8*%N to i32*
store i32%o,i32*%O,align 4
%P=getelementptr inbounds i8,i8*%v,i64 32
%Q=bitcast i8*%P to i32*
store i32%j,i32*%Q,align 4
%R=call i8*@sml_alloc(i32 inreg 28)#0
%S=getelementptr inbounds i8,i8*%R,i64 -4
%T=bitcast i8*%S to i32*
store i32 1342177304,i32*%T,align 4
%U=load i8*,i8**%e,align 8
%V=bitcast i8*%R to i8**
store i8*%U,i8**%V,align 8
%W=getelementptr inbounds i8,i8*%R,i64 8
%X=bitcast i8*%W to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11VectorSlice5foldrE_263 to void(...)*),void(...)**%X,align 8
%Y=getelementptr inbounds i8,i8*%R,i64 16
%Z=bitcast i8*%Y to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11VectorSlice5foldrE_263 to void(...)*),void(...)**%Z,align 8
%aa=getelementptr inbounds i8,i8*%R,i64 24
%ab=bitcast i8*%aa to i32*
store i32 1,i32*%ab,align 4
ret i8*%R
}
define internal fastcc i8*@_SMLLLN11VectorSlice5foldrE_265(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=getelementptr inbounds i8,i8*%a,i64 8
%k=bitcast i8*%j to i32*
%l=load i32,i32*%k,align 4
%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**%d,align 8
%s=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%t=bitcast i8*%p to i8**
store i8*%s,i8**%t,align 8
%u=getelementptr inbounds i8,i8*%p,i64 8
%v=bitcast i8*%u to i32*
store i32%f,i32*%v,align 4
%w=getelementptr inbounds i8,i8*%p,i64 12
%x=bitcast i8*%w to i32*
store i32%i,i32*%x,align 4
%y=getelementptr inbounds i8,i8*%p,i64 16
%z=bitcast i8*%y to i32*
store i32%l,i32*%z,align 4
%A=getelementptr inbounds i8,i8*%p,i64 20
%B=bitcast i8*%A to i32*
store i32%o,i32*%B,align 4
%C=getelementptr inbounds i8,i8*%p,i64 24
%D=bitcast i8*%C to i32*
store i32 1,i32*%D,align 4
%E=call i8*@sml_alloc(i32 inreg 28)#0
%F=getelementptr inbounds i8,i8*%E,i64 -4
%G=bitcast i8*%F to i32*
store i32 1342177304,i32*%G,align 4
%H=load i8*,i8**%d,align 8
%I=bitcast i8*%E to i8**
store i8*%H,i8**%I,align 8
%J=getelementptr inbounds i8,i8*%E,i64 8
%K=bitcast i8*%J to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11VectorSlice5foldrE_264 to void(...)*),void(...)**%K,align 8
%L=getelementptr inbounds i8,i8*%E,i64 16
%M=bitcast i8*%L to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11VectorSlice5foldrE_264 to void(...)*),void(...)**%M,align 8
%N=getelementptr inbounds i8,i8*%E,i64 24
%O=bitcast i8*%N to i32*
store i32 1,i32*%O,align 4
ret i8*%E
}
define fastcc i8*@_SMLFN11VectorSlice5foldrE(i32 inreg%a,i32 inreg%b,i32 inreg%c,i32 inreg%d)#3 gc"smlsharp"{
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%e,i8*null)#0
%f=call i8*@sml_alloc(i32 inreg 20)#0
%g=bitcast i8*%f to i32*
%h=getelementptr inbounds i8,i8*%f,i64 -4
%i=bitcast i8*%h to i32*
store i32 1342177296,i32*%i,align 4
store i8*%f,i8**%e,align 8
store i32%a,i32*%g,align 4
%j=getelementptr inbounds i8,i8*%f,i64 4
%k=bitcast i8*%j to i32*
store i32%b,i32*%k,align 4
%l=getelementptr inbounds i8,i8*%f,i64 8
%m=bitcast i8*%l to i32*
store i32%c,i32*%m,align 4
%n=getelementptr inbounds i8,i8*%f,i64 12
%o=bitcast i8*%n to i32*
store i32%d,i32*%o,align 4
%p=getelementptr inbounds i8,i8*%f,i64 16
%q=bitcast i8*%p to i32*
store i32 0,i32*%q,align 4
%r=call i8*@sml_alloc(i32 inreg 28)#0
%s=getelementptr inbounds i8,i8*%r,i64 -4
%t=bitcast i8*%s to i32*
store i32 1342177304,i32*%t,align 4
%u=load i8*,i8**%e,align 8
%v=bitcast i8*%r to i8**
store i8*%u,i8**%v,align 8
%w=getelementptr inbounds i8,i8*%r,i64 8
%x=bitcast i8*%w to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11VectorSlice5foldrE_265 to void(...)*),void(...)**%x,align 8
%y=getelementptr inbounds i8,i8*%r,i64 16
%z=bitcast i8*%y to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN11VectorSlice5foldrE_265 to void(...)*),void(...)**%z,align 8
%A=getelementptr inbounds i8,i8*%r,i64 24
%B=bitcast i8*%A to i32*
store i32 -2147483647,i32*%B,align 4
ret i8*%r
}
define internal fastcc i8*@_SMLLLN11VectorSlice5findiE_268(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
K:
%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
%g=getelementptr inbounds i8,i8*%a,i64 12
%h=bitcast i8*%g to i32*
%i=load i32,i32*%h,align 4
%j=add i32%i,3
%k=sub i32 0,%i
%l=and i32%j,%k
%m=add i32%i,7
%n=add i32%m,%l
%o=and i32%n,-8
%p=lshr i32%l,3
%q=getelementptr inbounds i8,i8*%a,i64 8
%r=bitcast i8*%q to i32*
%s=load i32,i32*%r,align 4
%t=shl i32%s,%p
%u=or i32%o,4
%v=bitcast i8*%b to i8**
%w=load i8*,i8**%v,align 8
store i8*%w,i8**%c,align 8
%x=getelementptr inbounds i8,i8*%b,i64 8
%y=bitcast i8*%x to i32*
%z=load i32,i32*%y,align 4
%A=getelementptr inbounds i8,i8*%b,i64 12
%B=bitcast i8*%A to i32*
%C=load i32,i32*%B,align 4
%D=add nsw i32%C,%z
%E=bitcast i8**%e to i8***
%F=or i32%o,1342177280
%G=sext i32%l to i64
%H=sext i32%o to i64
br label%I
I:
%J=phi i32[%z,%K],[%bv,%bu]
%L=load atomic i32,i32*@sml_check_flag unordered,align 4
%M=icmp eq i32%L,0
br i1%M,label%O,label%N
N:
call void@sml_check(i32 inreg%L)
br label%O
O:
%P=icmp slt i32%J,%D
br i1%P,label%R,label%Q
Q:
ret i8*null
R:
%S=load i8*,i8**%e,align 8
%T=getelementptr inbounds i8,i8*%S,i64 12
%U=bitcast i8*%T to i32*
%V=load i32,i32*%U,align 4
%W=getelementptr inbounds i8,i8*%S,i64 8
%X=bitcast i8*%W to i32*
%Y=load i32,i32*%X,align 4
%Z=icmp eq i32%Y,0
br i1%Z,label%ai,label%aa
aa:
%ab=bitcast i8*%S to i8**
%ac=load i8*,i8**%c,align 8
%ad=mul i32%V,%J
%ae=sext i32%ad to i64
%af=getelementptr inbounds i8,i8*%ac,i64%ae
%ag=bitcast i8*%af to i8**
%ah=load i8*,i8**%ag,align 8
br label%ay
ai:
%aj=call i8*@sml_alloc(i32 inreg%V)#0
%ak=getelementptr inbounds i8,i8*%aj,i64 -4
%al=bitcast i8*%ak to i32*
store i32%V,i32*%al,align 4
%am=load i8*,i8**%c,align 8
%an=mul i32%V,%J
%ao=sext i32%an to i64
%ap=getelementptr inbounds i8,i8*%am,i64%ao
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%aj,i8*%ap,i32%V,i1 false)
%aq=load i8**,i8***%E,align 8
%ar=bitcast i8**%aq to i8*
%as=getelementptr inbounds i8,i8*%ar,i64 12
%at=bitcast i8*%as to i32*
%au=load i32,i32*%at,align 4
%av=getelementptr inbounds i8*,i8**%aq,i64 1
%aw=bitcast i8**%av to i32*
%ax=load i32,i32*%aw,align 4
br label%ay
ay:
%az=phi i32[%ax,%ai],[%Y,%aa]
%aA=phi i32[%au,%ai],[%V,%aa]
%aB=phi i8**[%aq,%ai],[%ab,%aa]
%aC=phi i8*[%aj,%ai],[%ah,%aa]
store i8*%aC,i8**%d,align 8
%aD=load i8*,i8**%aB,align 8
%aE=getelementptr inbounds i8,i8*%aD,i64 16
%aF=bitcast i8*%aE to i8*(i8*,i8*)**
%aG=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aF,align 8
%aH=bitcast i8*%aD to i8**
%aI=load i8*,i8**%aH,align 8
store i8*%aI,i8**%f,align 8
%aJ=sub nsw i32%J,%z
%aK=call i8*@sml_alloc(i32 inreg%u)#0
%aL=bitcast i8*%aK to i32*
%aM=getelementptr inbounds i8,i8*%aK,i64 -4
%aN=bitcast i8*%aM to i32*
store i32%F,i32*%aN,align 4
call void@llvm.memset.p0i8.i32(i8*%aK,i8 0,i32%u,i1 false)
store i32%aJ,i32*%aL,align 4
%aO=icmp eq i32%az,0
%aP=load i8*,i8**%d,align 8
%aQ=getelementptr inbounds i8,i8*%aK,i64%G
br i1%aO,label%aR,label%aS
aR:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%aQ,i8*%aP,i32%aA,i1 false)
br label%aU
aS:
%aT=bitcast i8*%aQ to i8**
store i8*%aP,i8**%aT,align 8
br label%aU
aU:
%aV=getelementptr inbounds i8,i8*%aK,i64%H
%aW=bitcast i8*%aV to i32*
store i32%t,i32*%aW,align 4
%aX=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%aY=call fastcc i8*%aG(i8*inreg%aX,i8*inreg%aK)
%aZ=bitcast i8*%aY to i32*
%a0=load i32,i32*%aZ,align 4
%a1=icmp eq i32%a0,0
br i1%a1,label%bu,label%a2
a2:
store i8*null,i8**%c,align 8
%a3=load i8*,i8**%e,align 8
%a4=getelementptr inbounds i8,i8*%a3,i64 12
%a5=bitcast i8*%a4 to i32*
%a6=load i32,i32*%a5,align 4
store i8*null,i8**%e,align 8
%a7=getelementptr inbounds i8,i8*%a3,i64 8
%a8=bitcast i8*%a7 to i32*
%a9=load i32,i32*%a8,align 4
%ba=call i8*@sml_alloc(i32 inreg%u)#0
%bb=getelementptr inbounds i8,i8*%ba,i64 -4
%bc=bitcast i8*%bb to i32*
store i32%F,i32*%bc,align 4
store i8*%ba,i8**%c,align 8
call void@llvm.memset.p0i8.i32(i8*%ba,i8 0,i32%u,i1 false)
%bd=bitcast i8*%ba to i32*
store i32%aJ,i32*%bd,align 4
%be=icmp eq i32%a9,0
%bf=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%bg=getelementptr inbounds i8,i8*%ba,i64%G
br i1%be,label%bh,label%bi
bh:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%bg,i8*%bf,i32%a6,i1 false)
br label%bk
bi:
%bj=bitcast i8*%bg to i8**
store i8*%bf,i8**%bj,align 8
br label%bk
bk:
%bl=getelementptr inbounds i8,i8*%ba,i64%H
%bm=bitcast i8*%bl to i32*
store i32%t,i32*%bm,align 4
%bn=call i8*@sml_alloc(i32 inreg 12)#0
%bo=getelementptr inbounds i8,i8*%bn,i64 -4
%bp=bitcast i8*%bo to i32*
store i32 1342177288,i32*%bp,align 4
%bq=load i8*,i8**%c,align 8
%br=bitcast i8*%bn to i8**
store i8*%bq,i8**%br,align 8
%bs=getelementptr inbounds i8,i8*%bn,i64 8
%bt=bitcast i8*%bs to i32*
store i32 1,i32*%bt,align 4
ret i8*%bn
bu:
store i8*null,i8**%d,align 8
%bv=add nsw i32%J,1
br label%I
}
define internal fastcc i8*@_SMLLLN11VectorSlice5findiE_269(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*)*@_SMLLLN11VectorSlice5findiE_268 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*)*@_SMLLLN11VectorSlice5findiE_268 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
ret i8*%u
}
define fastcc i8*@_SMLFN11VectorSlice5findiE(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*)*@_SMLLLN11VectorSlice5findiE_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*)*@_SMLLLN11VectorSlice5findiE_269 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*@_SMLLLN11VectorSlice4findE_272(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
E:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%e,align 8
%f=getelementptr inbounds i8,i8*%a,i64 12
%g=bitcast i8*%f to i32*
%h=load i32,i32*%g,align 4
%i=add i32%h,-1
%j=sub i32 0,%h
%k=and i32%i,%j
%l=add i32%h,7
%m=add i32%l,%k
%n=and i32%m,-8
%o=getelementptr inbounds i8,i8*%a,i64 8
%p=bitcast i8*%o to i32*
%q=load i32,i32*%p,align 4
%r=or i32%n,4
%s=bitcast i8*%b to i8**
%t=load i8*,i8**%s,align 8
store i8*%t,i8**%c,align 8
%u=getelementptr inbounds i8,i8*%b,i64 8
%v=bitcast i8*%u to i32*
%w=load i32,i32*%v,align 4
%x=getelementptr inbounds i8,i8*%b,i64 12
%y=bitcast i8*%x to i32*
%z=load i32,i32*%y,align 4
%A=add nsw i32%z,%w
%B=bitcast i8**%e to i8***
br label%C
C:
%D=phi i32[%w,%E],[%aW,%aV]
%F=load atomic i32,i32*@sml_check_flag unordered,align 4
%G=icmp eq i32%F,0
br i1%G,label%I,label%H
H:
call void@sml_check(i32 inreg%F)
br label%I
I:
%J=icmp slt i32%D,%A
br i1%J,label%L,label%K
K:
ret i8*null
L:
%M=load i8*,i8**%e,align 8
%N=getelementptr inbounds i8,i8*%M,i64 12
%O=bitcast i8*%N to i32*
%P=load i32,i32*%O,align 4
%Q=getelementptr inbounds i8,i8*%M,i64 8
%R=bitcast i8*%Q to i32*
%S=load i32,i32*%R,align 4
%T=icmp eq i32%S,0
br i1%T,label%ac,label%U
U:
%V=bitcast i8*%M to i8**
%W=load i8*,i8**%c,align 8
%X=mul i32%P,%D
%Y=sext i32%X to i64
%Z=getelementptr inbounds i8,i8*%W,i64%Y
%aa=bitcast i8*%Z to i8**
%ab=load i8*,i8**%aa,align 8
br label%al
ac:
%ad=call i8*@sml_alloc(i32 inreg%P)#0
%ae=getelementptr inbounds i8,i8*%ad,i64 -4
%af=bitcast i8*%ae to i32*
store i32%P,i32*%af,align 4
%ag=load i8*,i8**%c,align 8
%ah=mul i32%P,%D
%ai=sext i32%ah to i64
%aj=getelementptr inbounds i8,i8*%ag,i64%ai
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%ad,i8*%aj,i32%P,i1 false)
%ak=load i8**,i8***%B,align 8
br label%al
al:
%am=phi i8**[%ak,%ac],[%V,%U]
%an=phi i8*[%ad,%ac],[%ab,%U]
store i8*%an,i8**%d,align 8
%ao=load i8*,i8**%am,align 8
%ap=getelementptr inbounds i8,i8*%ao,i64 16
%aq=bitcast i8*%ap to i8*(i8*,i8*)**
%ar=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aq,align 8
%as=bitcast i8*%ao to i8**
%at=load i8*,i8**%as,align 8
%au=call fastcc i8*%ar(i8*inreg%at,i8*inreg%an)
%av=bitcast i8*%au to i32*
%aw=load i32,i32*%av,align 4
%ax=icmp eq i32%aw,0
br i1%ax,label%aV,label%ay
ay:
store i8*null,i8**%c,align 8
%az=load i8*,i8**%e,align 8
%aA=getelementptr inbounds i8,i8*%az,i64 12
%aB=bitcast i8*%aA to i32*
%aC=load i32,i32*%aB,align 4
store i8*null,i8**%e,align 8
%aD=getelementptr inbounds i8,i8*%az,i64 8
%aE=bitcast i8*%aD to i32*
%aF=load i32,i32*%aE,align 4
%aG=call i8*@sml_alloc(i32 inreg%r)#0
%aH=or i32%n,1342177280
%aI=getelementptr inbounds i8,i8*%aG,i64 -4
%aJ=bitcast i8*%aI to i32*
store i32%aH,i32*%aJ,align 4
call void@llvm.memset.p0i8.i32(i8*%aG,i8 0,i32%r,i1 false)
%aK=icmp eq i32%aF,0
%aL=load i8*,i8**%d,align 8
%aM=sext i32%k to i64
%aN=getelementptr inbounds i8,i8*%aG,i64%aM
br i1%aK,label%aO,label%aP
aO:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%aN,i8*%aL,i32%aC,i1 false)
br label%aR
aP:
%aQ=bitcast i8*%aN to i8**
store i8*%aL,i8**%aQ,align 8
br label%aR
aR:
%aS=sext i32%n to i64
%aT=getelementptr inbounds i8,i8*%aG,i64%aS
%aU=bitcast i8*%aT to i32*
store i32%q,i32*%aU,align 4
ret i8*%aG
aV:
store i8*null,i8**%d,align 8
%aW=add nsw i32%D,1
br label%C
}
define internal fastcc i8*@_SMLLLN11VectorSlice4findE_273(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*)*@_SMLLLN11VectorSlice4findE_272 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*)*@_SMLLLN11VectorSlice4findE_272 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
ret i8*%u
}
define fastcc i8*@_SMLFN11VectorSlice4findE(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*)*@_SMLLLN11VectorSlice4findE_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*)*@_SMLLLN11VectorSlice4findE_273 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 i32@_SMLLLN11VectorSlice6existsE_276(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
r:
%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
%f=bitcast i8*%b to i8**
%g=load i8*,i8**%f,align 8
store i8*%g,i8**%c,align 8
%h=getelementptr inbounds i8,i8*%b,i64 8
%i=bitcast i8*%h to i32*
%j=load i32,i32*%i,align 4
%k=getelementptr inbounds i8,i8*%b,i64 12
%l=bitcast i8*%k to i32*
%m=load i32,i32*%l,align 4
%n=add nsw i32%m,%j
%o=bitcast i8**%d to i8***
br label%p
p:
%q=phi i32[%j,%r],[%am,%af]
%s=load atomic i32,i32*@sml_check_flag unordered,align 4
%t=icmp eq i32%s,0
br i1%t,label%v,label%u
u:
call void@sml_check(i32 inreg%s)
br label%v
v:
%w=icmp slt i32%q,%n
br i1%w,label%z,label%x
x:
%y=phi i32[0,%v],[1,%af]
ret i32%y
z:
%A=load i8**,i8***%o,align 8
%B=load i8*,i8**%A,align 8
%C=getelementptr inbounds i8,i8*%B,i64 16
%D=bitcast i8*%C to i8*(i8*,i8*)**
%E=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%D,align 8
%F=bitcast i8*%B to i8**
%G=load i8*,i8**%F,align 8
store i8*%G,i8**%e,align 8
%H=bitcast i8**%A to i8*
%I=getelementptr inbounds i8,i8*%H,i64 12
%J=bitcast i8*%I to i32*
%K=load i32,i32*%J,align 4
%L=getelementptr inbounds i8*,i8**%A,i64 1
%M=bitcast i8**%L to i32*
%N=load i32,i32*%M,align 4
%O=icmp eq i32%N,0
br i1%O,label%W,label%P
P:
%Q=load i8*,i8**%c,align 8
%R=mul i32%K,%q
%S=sext i32%R to i64
%T=getelementptr inbounds i8,i8*%Q,i64%S
%U=bitcast i8*%T to i8**
%V=load i8*,i8**%U,align 8
br label%af
W:
%X=call i8*@sml_alloc(i32 inreg%K)#0
%Y=getelementptr inbounds i8,i8*%X,i64 -4
%Z=bitcast i8*%Y to i32*
store i32%K,i32*%Z,align 4
%aa=load i8*,i8**%c,align 8
%ab=mul i32%K,%q
%ac=sext i32%ab to i64
%ad=getelementptr inbounds i8,i8*%aa,i64%ac
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%X,i8*%ad,i32%K,i1 false)
%ae=load i8*,i8**%e,align 8
br label%af
af:
%ag=phi i8*[%G,%P],[%ae,%W]
%ah=phi i8*[%V,%P],[%X,%W]
store i8*null,i8**%e,align 8
%ai=call fastcc i8*%E(i8*inreg%ag,i8*inreg%ah)
%aj=bitcast i8*%ai to i32*
%ak=load i32,i32*%aj,align 4
%al=icmp eq i32%ak,0
%am=add nsw i32%q,1
br i1%al,label%p,label%x
}
define internal fastcc i8*@_SMLLLN11VectorSlice6existsE_277(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(i32(i8*,i8*)*@_SMLLLN11VectorSlice6existsE_276 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*)*@_SMLLLN11VectorSlice6existsE_314 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
ret i8*%u
}
define fastcc i8*@_SMLFN11VectorSlice6existsE(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*)*@_SMLLLN11VectorSlice6existsE_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*)*@_SMLLLN11VectorSlice6existsE_277 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 i32@_SMLLLN11VectorSlice3allE_280(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
r:
%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
%f=bitcast i8*%b to i8**
%g=load i8*,i8**%f,align 8
store i8*%g,i8**%c,align 8
%h=getelementptr inbounds i8,i8*%b,i64 8
%i=bitcast i8*%h to i32*
%j=load i32,i32*%i,align 4
%k=getelementptr inbounds i8,i8*%b,i64 12
%l=bitcast i8*%k to i32*
%m=load i32,i32*%l,align 4
%n=add nsw i32%m,%j
%o=bitcast i8**%d to i8***
br label%p
p:
%q=phi i32[%j,%r],[%am,%af]
%s=load atomic i32,i32*@sml_check_flag unordered,align 4
%t=icmp eq i32%s,0
br i1%t,label%v,label%u
u:
call void@sml_check(i32 inreg%s)
br label%v
v:
%w=icmp slt i32%q,%n
br i1%w,label%z,label%x
x:
%y=phi i32[1,%v],[0,%af]
ret i32%y
z:
%A=load i8**,i8***%o,align 8
%B=load i8*,i8**%A,align 8
%C=getelementptr inbounds i8,i8*%B,i64 16
%D=bitcast i8*%C to i8*(i8*,i8*)**
%E=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%D,align 8
%F=bitcast i8*%B to i8**
%G=load i8*,i8**%F,align 8
store i8*%G,i8**%e,align 8
%H=bitcast i8**%A to i8*
%I=getelementptr inbounds i8,i8*%H,i64 12
%J=bitcast i8*%I to i32*
%K=load i32,i32*%J,align 4
%L=getelementptr inbounds i8*,i8**%A,i64 1
%M=bitcast i8**%L to i32*
%N=load i32,i32*%M,align 4
%O=icmp eq i32%N,0
br i1%O,label%W,label%P
P:
%Q=load i8*,i8**%c,align 8
%R=mul i32%K,%q
%S=sext i32%R to i64
%T=getelementptr inbounds i8,i8*%Q,i64%S
%U=bitcast i8*%T to i8**
%V=load i8*,i8**%U,align 8
br label%af
W:
%X=call i8*@sml_alloc(i32 inreg%K)#0
%Y=getelementptr inbounds i8,i8*%X,i64 -4
%Z=bitcast i8*%Y to i32*
store i32%K,i32*%Z,align 4
%aa=load i8*,i8**%c,align 8
%ab=mul i32%K,%q
%ac=sext i32%ab to i64
%ad=getelementptr inbounds i8,i8*%aa,i64%ac
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%X,i8*%ad,i32%K,i1 false)
%ae=load i8*,i8**%e,align 8
br label%af
af:
%ag=phi i8*[%G,%P],[%ae,%W]
%ah=phi i8*[%V,%P],[%X,%W]
store i8*null,i8**%e,align 8
%ai=call fastcc i8*%E(i8*inreg%ag,i8*inreg%ah)
%aj=bitcast i8*%ai to i32*
%ak=load i32,i32*%aj,align 4
%al=icmp eq i32%ak,0
%am=add nsw i32%q,1
br i1%al,label%x,label%p
}
define internal fastcc i8*@_SMLLLN11VectorSlice3allE_281(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(i32(i8*,i8*)*@_SMLLLN11VectorSlice3allE_280 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*)*@_SMLLLN11VectorSlice3allE_316 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
ret i8*%u
}
define fastcc i8*@_SMLFN11VectorSlice3allE(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*)*@_SMLLLN11VectorSlice3allE_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*)*@_SMLLLN11VectorSlice3allE_281 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 i32@_SMLLLN11VectorSlice7collateE_284(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
as:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
%h=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
call void@llvm.gcroot(i8**%g,i8*null)#0
call void@llvm.gcroot(i8**%h,i8*null)#0
store i8*%a,i8**%g,align 8
%i=getelementptr inbounds i8,i8*%a,i64 12
%j=bitcast i8*%i to i32*
%k=load i32,i32*%j,align 4
%l=add i32%k,-1
%m=sub i32 0,%k
%n=and i32%l,%m
%o=shl i32%k,1
%p=add i32%o,-1
%q=add i32%p,%n
%r=and i32%q,%m
%s=add i32%k,7
%t=add i32%s,%r
%u=and i32%t,-8
%v=lshr i32%r,3
%w=lshr i32%n,3
%x=sub nsw i32%v,%w
%y=getelementptr inbounds i8,i8*%a,i64 8
%z=bitcast i8*%y to i32*
%A=load i32,i32*%z,align 4
%B=shl i32%A,%x
%C=or i32%B,%A
%D=or i32%u,4
%E=bitcast i8*%b to i8**
%F=load i8*,i8**%E,align 8
%G=bitcast i8*%F to i8**
%H=load i8*,i8**%G,align 8
store i8*%H,i8**%c,align 8
%I=getelementptr inbounds i8,i8*%F,i64 8
%J=bitcast i8*%I to i32*
%K=load i32,i32*%J,align 4
%L=getelementptr inbounds i8,i8*%F,i64 12
%M=bitcast i8*%L to i32*
%N=load i32,i32*%M,align 4
%O=getelementptr inbounds i8,i8*%b,i64 8
%P=bitcast i8*%O to i8**
%Q=load i8*,i8**%P,align 8
%R=bitcast i8*%Q to i8**
%S=load i8*,i8**%R,align 8
store i8*%S,i8**%d,align 8
%T=getelementptr inbounds i8,i8*%Q,i64 8
%U=bitcast i8*%T to i32*
%V=load i32,i32*%U,align 4
%W=getelementptr inbounds i8,i8*%Q,i64 12
%X=bitcast i8*%W to i32*
%Y=load i32,i32*%X,align 4
%Z=call i8*@sml_alloc(i32 inreg 20)#0
%aa=bitcast i8*%Z to i32*
%ab=getelementptr inbounds i8,i8*%Z,i64 -4
%ac=bitcast i8*%ab to i32*
store i32 1342177296,i32*%ac,align 4
store i32%K,i32*%aa,align 4
%ad=getelementptr inbounds i8,i8*%Z,i64 4
%ae=bitcast i8*%ad to i32*
store i32%N,i32*%ae,align 4
%af=getelementptr inbounds i8,i8*%Z,i64 8
%ag=bitcast i8*%af to i32*
store i32%V,i32*%ag,align 4
%ah=getelementptr inbounds i8,i8*%Z,i64 12
%ai=bitcast i8*%ah to i32*
store i32%Y,i32*%ai,align 4
%aj=getelementptr inbounds i8,i8*%Z,i64 16
%ak=bitcast i8*%aj to i32*
store i32 0,i32*%ak,align 4
%al=bitcast i8**%g to i8***
%am=or i32%u,1342177280
%an=sext i32%n to i64
%ao=sext i32%r to i64
%ap=sext i32%u to i64
br label%aq
aq:
%ar=phi i8*[%co,%cj],[%Z,%as]
store i8*%ar,i8**%e,align 8
%at=load atomic i32,i32*@sml_check_flag unordered,align 4
%au=icmp eq i32%at,0
br i1%au,label%ax,label%av
av:
call void@sml_check(i32 inreg%at)
%aw=load i8*,i8**%e,align 8
br label%ax
ax:
%ay=phi i8*[%aw,%av],[%ar,%aq]
%az=bitcast i8*%ay to i32*
%aA=load i32,i32*%az,align 4
%aB=getelementptr inbounds i8,i8*%ay,i64 4
%aC=bitcast i8*%aB to i32*
%aD=load i32,i32*%aC,align 4
%aE=icmp eq i32%aD,0
br i1%aE,label%cA,label%aF
aF:
%aG=getelementptr inbounds i8,i8*%ay,i64 8
%aH=bitcast i8*%aG to i32*
%aI=load i32,i32*%aH,align 4
store i8*null,i8**%e,align 8
%aJ=getelementptr inbounds i8,i8*%ay,i64 12
%aK=bitcast i8*%aJ to i32*
%aL=load i32,i32*%aK,align 4
%aM=icmp eq i32%aL,0
br i1%aM,label%ch,label%aN
aN:
%aO=load i8*,i8**%g,align 8
%aP=getelementptr inbounds i8,i8*%aO,i64 12
%aQ=bitcast i8*%aP to i32*
%aR=load i32,i32*%aQ,align 4
%aS=getelementptr inbounds i8,i8*%aO,i64 8
%aT=bitcast i8*%aS to i32*
%aU=load i32,i32*%aT,align 4
%aV=icmp eq i32%aU,0
br i1%aV,label%a3,label%aW
aW:
%aX=load i8*,i8**%c,align 8
%aY=mul i32%aR,%aA
%aZ=sext i32%aY to i64
%a0=getelementptr inbounds i8,i8*%aX,i64%aZ
%a1=bitcast i8*%a0 to i8**
%a2=load i8*,i8**%a1,align 8
store i8*%a2,i8**%e,align 8
br label%bj
a3:
%a4=call i8*@sml_alloc(i32 inreg%aR)#0
%a5=getelementptr inbounds i8,i8*%a4,i64 -4
%a6=bitcast i8*%a5 to i32*
store i32%aR,i32*%a6,align 4
%a7=load i8*,i8**%c,align 8
%a8=mul i32%aR,%aA
%a9=sext i32%a8 to i64
%ba=getelementptr inbounds i8,i8*%a7,i64%a9
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%a4,i8*%ba,i32%aR,i1 false)
%bb=load i8*,i8**%g,align 8
%bc=getelementptr inbounds i8,i8*%bb,i64 12
%bd=bitcast i8*%bc to i32*
%be=load i32,i32*%bd,align 4
%bf=getelementptr inbounds i8,i8*%bb,i64 8
%bg=bitcast i8*%bf to i32*
%bh=load i32,i32*%bg,align 4
store i8*%a4,i8**%e,align 8
%bi=icmp eq i32%bh,0
br i1%bi,label%bu,label%bj
bj:
%bk=phi i32[%aR,%aW],[%be,%a3]
%bl=phi i32[%aU,%aW],[%bh,%a3]
%bm=phi i8*[%aO,%aW],[%bb,%a3]
%bn=bitcast i8*%bm to i8**
%bo=load i8*,i8**%d,align 8
%bp=mul i32%bk,%aI
%bq=sext i32%bp to i64
%br=getelementptr inbounds i8,i8*%bo,i64%bq
%bs=bitcast i8*%br to i8**
%bt=load i8*,i8**%bs,align 8
br label%bK
bu:
%bv=call i8*@sml_alloc(i32 inreg%be)#0
%bw=getelementptr inbounds i8,i8*%bv,i64 -4
%bx=bitcast i8*%bw to i32*
store i32%be,i32*%bx,align 4
%by=load i8*,i8**%d,align 8
%bz=mul i32%be,%aI
%bA=sext i32%bz to i64
%bB=getelementptr inbounds i8,i8*%by,i64%bA
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%bv,i8*%bB,i32%be,i1 false)
%bC=load i8**,i8***%al,align 8
%bD=bitcast i8**%bC to i8*
%bE=getelementptr inbounds i8,i8*%bD,i64 12
%bF=bitcast i8*%bE to i32*
%bG=load i32,i32*%bF,align 4
%bH=getelementptr inbounds i8*,i8**%bC,i64 1
%bI=bitcast i8**%bH to i32*
%bJ=load i32,i32*%bI,align 4
br label%bK
bK:
%bL=phi i32[%bJ,%bu],[%bl,%bj]
%bM=phi i32[%bG,%bu],[%bk,%bj]
%bN=phi i8**[%bC,%bu],[%bn,%bj]
%bO=phi i8*[%bv,%bu],[%bt,%bj]
store i8*%bO,i8**%f,align 8
%bP=load i8*,i8**%bN,align 8
%bQ=getelementptr inbounds i8,i8*%bP,i64 16
%bR=bitcast i8*%bQ to i8*(i8*,i8*)**
%bS=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bR,align 8
%bT=bitcast i8*%bP to i8**
%bU=load i8*,i8**%bT,align 8
store i8*%bU,i8**%h,align 8
%bV=call i8*@sml_alloc(i32 inreg%D)#0
%bW=getelementptr inbounds i8,i8*%bV,i64 -4
%bX=bitcast i8*%bW to i32*
store i32%am,i32*%bX,align 4
call void@llvm.memset.p0i8.i32(i8*%bV,i8 0,i32%D,i1 false)
%bY=icmp eq i32%bL,0
%bZ=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%b0=getelementptr inbounds i8,i8*%bV,i64%an
br i1%bY,label%b1,label%b4
b1:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%b0,i8*%bZ,i32%bM,i1 false)
%b2=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%b3=getelementptr inbounds i8,i8*%bV,i64%ao
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%b3,i8*%b2,i32%bM,i1 false)
br label%b9
b4:
%b5=bitcast i8*%b0 to i8**
store i8*%bZ,i8**%b5,align 8
%b6=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%b7=getelementptr inbounds i8,i8*%bV,i64%ao
%b8=bitcast i8*%b7 to i8**
store i8*%b6,i8**%b8,align 8
br label%b9
b9:
%ca=getelementptr inbounds i8,i8*%bV,i64%ap
%cb=bitcast i8*%ca to i32*
store i32%C,i32*%cb,align 4
%cc=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%cd=call fastcc i8*%bS(i8*inreg%cc,i8*inreg%bV)
%ce=bitcast i8*%cd to i32*
%cf=load i32,i32*%ce,align 4
%cg=icmp eq i32%cf,0
br i1%cg,label%cj,label%ch
ch:
%ci=phi i32[%cF,%cA],[1,%aF],[%cf,%b9]
ret i32%ci
cj:
%ck=add nsw i32%aA,1
%cl=add nsw i32%aD,-1
%cm=add nsw i32%aI,1
%cn=add nsw i32%aL,-1
%co=call i8*@sml_alloc(i32 inreg 20)#0
%cp=bitcast i8*%co to i32*
%cq=getelementptr inbounds i8,i8*%co,i64 -4
%cr=bitcast i8*%cq to i32*
store i32 1342177296,i32*%cr,align 4
store i32%ck,i32*%cp,align 4
%cs=getelementptr inbounds i8,i8*%co,i64 4
%ct=bitcast i8*%cs to i32*
store i32%cl,i32*%ct,align 4
%cu=getelementptr inbounds i8,i8*%co,i64 8
%cv=bitcast i8*%cu to i32*
store i32%cm,i32*%cv,align 4
%cw=getelementptr inbounds i8,i8*%co,i64 12
%cx=bitcast i8*%cw to i32*
store i32%cn,i32*%cx,align 4
%cy=getelementptr inbounds i8,i8*%co,i64 16
%cz=bitcast i8*%cy to i32*
store i32 0,i32*%cz,align 4
br label%aq
cA:
%cB=getelementptr inbounds i8,i8*%ay,i64 12
%cC=bitcast i8*%cB to i32*
%cD=load i32,i32*%cC,align 4
%cE=icmp eq i32%cD,0
%cF=select i1%cE,i32 0,i32 2
br label%ch
}
define internal fastcc i8*@_SMLLLN11VectorSlice7collateE_285(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(i32(i8*,i8*)*@_SMLLLN11VectorSlice7collateE_284 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*)*@_SMLLLN11VectorSlice7collateE_318 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
ret i8*%u
}
define fastcc i8*@_SMLFN11VectorSlice7collateE(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*)*@_SMLLLN11VectorSlice7collateE_285 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*)*@_SMLLLN11VectorSlice7collateE_285 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*@_SMLLLN11VectorSlice6lengthE_288(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*@_SMLLLN11VectorSlice6lengthE_289(i8*inreg%a,i8*inreg%b,i8*inreg%c)#3 gc"smlsharp"{
ret 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*)
}
define internal fastcc i8*@_SMLLLN11VectorSlice3subE_290(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*@_SMLFN11VectorSlice3subE(i32 inreg%e,i32 inreg%g)
ret i8*%h
}
define internal fastcc i8*@_SMLLLN11VectorSlice4fullE_291(i8*inreg%a,i8*inreg%b,i8*inreg%c)#3 gc"smlsharp"{
%d=bitcast i8*%c to i32*
%e=load i32,i32*%d,align 4
%f=tail call fastcc i8*@_SMLFN11VectorSlice4fullE(i32 inreg undef,i32 inreg%e)
ret i8*%f
}
define internal fastcc i8*@_SMLLLN11VectorSlice5sliceE_292(i8*inreg%a,i8*inreg%b,i8*inreg%c)#3 gc"smlsharp"{
%d=bitcast i8*%c to i32*
%e=load i32,i32*%d,align 4
%f=tail call fastcc i8*@_SMLFN11VectorSlice5sliceE(i32 inreg undef,i32 inreg%e)
ret i8*%f
}
define internal fastcc i8*@_SMLLLN11VectorSlice8subsliceE_293(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLLLN11VectorSlice8subsliceE_208(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN11VectorSlice8subsliceE_294(i8*inreg%a,i8*inreg%b,i8*inreg%c)#3 gc"smlsharp"{
ret i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@k,i64 0,i32 2)to i8*)
}
define internal fastcc i8*@_SMLLLN11VectorSlice4baseE_295(i8*inreg%a,i8*inreg%b)#3 gc"smlsharp"{
ret i8*%b
}
define internal fastcc i8*@_SMLLLN11VectorSlice4baseE_296(i8*inreg%a,i8*inreg%b,i8*inreg%c)#3 gc"smlsharp"{
ret 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*)
}
define internal fastcc i8*@_SMLLLN11VectorSlice6vectorE_297(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*@_SMLFN11VectorSlice6vectorE(i32 inreg%e,i32 inreg%g)
ret i8*%h
}
define internal fastcc i8*@_SMLLLN11VectorSlice6concatE_298(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*@_SMLFN11VectorSlice6concatE(i32 inreg%e,i32 inreg%g)
ret i8*%h
}
define internal fastcc i8*@_SMLLLN11VectorSlice7isEmptyE_299(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*@_SMLLLN11VectorSlice7isEmptyE_300(i8*inreg%a,i8*inreg%b,i8*inreg%c)#3 gc"smlsharp"{
ret 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*)
}
define internal fastcc i8*@_SMLLLN11VectorSlice7getItemE_301(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*@_SMLFN11VectorSlice7getItemE(i32 inreg%e,i32 inreg%g)
ret i8*%h
}
define internal fastcc i8*@_SMLLLN11VectorSlice4appiE_302(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
tail call fastcc void@_SMLLLN11VectorSlice4appiE_232(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*@_SMLLLN11VectorSlice4appiE_303(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*@_SMLFN11VectorSlice4appiE(i32 inreg%e,i32 inreg%g)
ret i8*%h
}
define internal fastcc i8*@_SMLLLN11VectorSlice3appE_304(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
tail call fastcc void@_SMLLLN11VectorSlice3appE_236(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*@_SMLLLN11VectorSlice3appE_305(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*@_SMLFN11VectorSlice3appE(i32 inreg%e,i32 inreg%g)
ret i8*%h
}
define internal fastcc i8*@_SMLLLN11VectorSlice4mapiE_306(i8*inreg%a,i8*inreg%b,i8*inreg%c,i8*inreg%d,i8*inreg%e)#3 gc"smlsharp"{
%f=bitcast i8*%b to i32*
%g=load i32,i32*%f,align 4
%h=bitcast i8*%c to i32*
%i=load i32,i32*%h,align 4
%j=bitcast i8*%d to i32*
%k=load i32,i32*%j,align 4
%l=bitcast i8*%e to i32*
%m=load i32,i32*%l,align 4
%n=tail call fastcc i8*@_SMLFN11VectorSlice4mapiE(i32 inreg%g,i32 inreg%i,i32 inreg%k,i32 inreg%m)
ret i8*%n
}
define internal fastcc i8*@_SMLLLN11VectorSlice3mapE_307(i8*inreg%a,i8*inreg%b,i8*inreg%c,i8*inreg%d,i8*inreg%e)#3 gc"smlsharp"{
%f=bitcast i8*%b to i32*
%g=load i32,i32*%f,align 4
%h=bitcast i8*%c to i32*
%i=load i32,i32*%h,align 4
%j=bitcast i8*%d to i32*
%k=load i32,i32*%j,align 4
%l=bitcast i8*%e to i32*
%m=load i32,i32*%l,align 4
%n=tail call fastcc i8*@_SMLFN11VectorSlice3mapE(i32 inreg%g,i32 inreg%i,i32 inreg%k,i32 inreg%m)
ret i8*%n
}
define internal fastcc i8*@_SMLLLN11VectorSlice6foldliE_308(i8*inreg%a,i8*inreg%b,i8*inreg%c,i8*inreg%d,i8*inreg%e)#3 gc"smlsharp"{
%f=bitcast i8*%b to i32*
%g=load i32,i32*%f,align 4
%h=bitcast i8*%c to i32*
%i=load i32,i32*%h,align 4
%j=bitcast i8*%d to i32*
%k=load i32,i32*%j,align 4
%l=bitcast i8*%e to i32*
%m=load i32,i32*%l,align 4
%n=tail call fastcc i8*@_SMLFN11VectorSlice6foldliE(i32 inreg%g,i32 inreg%i,i32 inreg%k,i32 inreg%m)
ret i8*%n
}
define internal fastcc i8*@_SMLLLN11VectorSlice6foldriE_309(i8*inreg%a,i8*inreg%b,i8*inreg%c,i8*inreg%d,i8*inreg%e)#3 gc"smlsharp"{
%f=bitcast i8*%b to i32*
%g=load i32,i32*%f,align 4
%h=bitcast i8*%c to i32*
%i=load i32,i32*%h,align 4
%j=bitcast i8*%d to i32*
%k=load i32,i32*%j,align 4
%l=bitcast i8*%e to i32*
%m=load i32,i32*%l,align 4
%n=tail call fastcc i8*@_SMLFN11VectorSlice6foldriE(i32 inreg%g,i32 inreg%i,i32 inreg%k,i32 inreg%m)
ret i8*%n
}
define internal fastcc i8*@_SMLLLN11VectorSlice5foldlE_310(i8*inreg%a,i8*inreg%b,i8*inreg%c,i8*inreg%d,i8*inreg%e)#3 gc"smlsharp"{
%f=bitcast i8*%b to i32*
%g=load i32,i32*%f,align 4
%h=bitcast i8*%c to i32*
%i=load i32,i32*%h,align 4
%j=bitcast i8*%d to i32*
%k=load i32,i32*%j,align 4
%l=bitcast i8*%e to i32*
%m=load i32,i32*%l,align 4
%n=tail call fastcc i8*@_SMLFN11VectorSlice5foldlE(i32 inreg%g,i32 inreg%i,i32 inreg%k,i32 inreg%m)
ret i8*%n
}
define internal fastcc i8*@_SMLLLN11VectorSlice5foldrE_311(i8*inreg%a,i8*inreg%b,i8*inreg%c,i8*inreg%d,i8*inreg%e)#3 gc"smlsharp"{
%f=bitcast i8*%b to i32*
%g=load i32,i32*%f,align 4
%h=bitcast i8*%c to i32*
%i=load i32,i32*%h,align 4
%j=bitcast i8*%d to i32*
%k=load i32,i32*%j,align 4
%l=bitcast i8*%e to i32*
%m=load i32,i32*%l,align 4
%n=tail call fastcc i8*@_SMLFN11VectorSlice5foldrE(i32 inreg%g,i32 inreg%i,i32 inreg%k,i32 inreg%m)
ret i8*%n
}
define internal fastcc i8*@_SMLLLN11VectorSlice5findiE_312(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*@_SMLFN11VectorSlice5findiE(i32 inreg%e,i32 inreg%g)
ret i8*%h
}
define internal fastcc i8*@_SMLLLN11VectorSlice4findE_313(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*@_SMLFN11VectorSlice4findE(i32 inreg%e,i32 inreg%g)
ret i8*%h
}
define internal fastcc i8*@_SMLLLN11VectorSlice6existsE_314(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i32@_SMLLLN11VectorSlice6existsE_276(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*@_SMLLLN11VectorSlice6existsE_315(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*@_SMLFN11VectorSlice6existsE(i32 inreg%e,i32 inreg%g)
ret i8*%h
}
define internal fastcc i8*@_SMLLLN11VectorSlice3allE_316(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i32@_SMLLLN11VectorSlice3allE_280(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*@_SMLLLN11VectorSlice3allE_317(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*@_SMLFN11VectorSlice3allE(i32 inreg%e,i32 inreg%g)
ret i8*%h
}
define internal fastcc i8*@_SMLLLN11VectorSlice7collateE_318(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i32@_SMLLLN11VectorSlice7collateE_284(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*@_SMLLLN11VectorSlice7collateE_319(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*@_SMLFN11VectorSlice7collateE(i32 inreg%e,i32 inreg%g)
ret i8*%h
}
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
attributes#0={nounwind}
attributes#1={noreturn}
attributes#2={noreturn nounwind}
attributes#3={nounwind uwtable}
attributes#4={uwtable}
