@sml_check_flag=external local_unnamed_addr global i32
@_SMLZN15Word8ArraySlice6lengthE=external local_unnamed_addr global i8*
@_SMLZN15Word8ArraySlice8subsliceE=external local_unnamed_addr global i8*
@_SMLZN16Word8VectorSlice6lengthE=external local_unnamed_addr global i8*
@_SMLZN16Word8VectorSlice8subsliceE=external local_unnamed_addr global i8*
@_SMLZN2IO12ClosedStreamE=external local_unnamed_addr global i8*
@_SMLZN2IO20BlockingNotSupportedE=external local_unnamed_addr global i8*
@_SMLZN2IO23NonblockingNotSupportedE=external local_unnamed_addr global i8*
@_SMLZN2IO24RandomAccessNotSupportedE=external local_unnamed_addr global i8*
@_SMLZN2IO2IoE=external local_unnamed_addr global i8*
@_SMLZ5Match=external unnamed_addr constant i8*
@_SMLZ4Size=external unnamed_addr constant i8*
@_SMLZ8Overflow=external unnamed_addr constant i8*
@_SMLZ3Div=external unnamed_addr constant i8*
@_SMLZ4Fail=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(void(i32)*@_SMLLN7CleanIO11stdStrmHookE_220 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN7CleanIO11stdStrmHookE_467 to void(...)*),i32 -2147483647}>,align 8
@_SMLDN7CleanIO11stdStrmHookE_222=private global<{[4x i8],i32,i8*}><{[4x i8]zeroinitializer,i32 -1342177272,i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@a,i32 0,i32 0,i32 0),i32 8)}>,align 8
@b=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLL10vecExtract_223 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLL10vecExtract_468 to void(...)*),i32 -2147483647}>,align 8
@c=private unnamed_addr constant<{[4x i8],i32,[43x i8]}><{[4x i8]zeroinitializer,i32 -2147483605,[43x i8]c"src/smlnj/Basis/IO/bin-io.sml:133.13(3976)\00"}>,align 8
@d=private unnamed_addr constant<{[4x i8],i32,[26x i8]}><{[4x i8]zeroinitializer,i32 -2147483622,[26x i8]c"BinIO.StreamIO.WouldBlock\00"}>,align 8
@e=private unnamed_addr constant<{[4x i8],i32,i8*,i32,[4x i8],i32}><{[4x i8]zeroinitializer,i32 -805306352,i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,[26x i8]}>,<{[4x i8],i32,[26x i8]}>*@d,i32 0,i32 0,i32 0),i32 8),i32 0,[4x i8]zeroinitializer,i32 1}>,align 8
@_SMLDL236=private constant<{[4x i8],i32,i8*}><{[4x i8]zeroinitializer,i32 -1879048184,i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,i8*,i32,[4x i8],i32}>,<{[4x i8],i32,i8*,i32,[4x i8],i32}>*@e,i32 0,i32 0,i32 0),i32 8)}>,align 8
@f=private unnamed_addr constant<{[4x i8],i32,[43x i8]}><{[4x i8]zeroinitializer,i32 -2147483605,[43x i8]c"src/smlnj/Basis/IO/bin-io.sml:167.18(5031)\00"}>,align 8
@g=private unnamed_addr constant<{[4x i8],i32,[43x i8]}><{[4x i8]zeroinitializer,i32 -2147483605,[43x i8]c"src/smlnj/Basis/IO/bin-io.sml:170.36(5159)\00"}>,align 8
@h=private unnamed_addr constant<{[4x i8],i32,[43x i8]}><{[4x i8]zeroinitializer,i32 -2147483605,[43x i8]c"src/smlnj/Basis/IO/bin-io.sml:170.25(5148)\00"}>,align 8
@i=private unnamed_addr constant<{[4x i8],i32,[43x i8]}><{[4x i8]zeroinitializer,i32 -2147483605,[43x i8]c"src/smlnj/Basis/IO/bin-io.sml:170.52(5175)\00"}>,align 8
@j=private unnamed_addr constant<{[4x i8],i32,[43x i8]}><{[4x i8]zeroinitializer,i32 -2147483605,[43x i8]c"src/smlnj/Basis/IO/bin-io.sml:183.20(5565)\00"}>,align 8
@k=private unnamed_addr constant<{[4x i8],i32,[13x i8]}><{[4x i8]zeroinitializer,i32 -2147483635,[13x i8]c"bogus getBuf\00"}>,align 8
@l=private unnamed_addr constant<{[4x i8],i32,i32,[4x i8],i32}><{[4x i8]zeroinitializer,i32 -805306360,i32 3,[4x i8]zeroinitializer,i32 0}>,align 8
@m=private unnamed_addr constant<{[4x i8],i32,[43x i8]}><{[4x i8]zeroinitializer,i32 -2147483605,[43x i8]c"src/smlnj/Basis/IO/bin-io.sml:196.15(5881)\00"}>,align 8
@n=private unnamed_addr constant<{[4x i8],i32,[6x i8]}><{[4x i8]zeroinitializer,i32 -2147483642,[6x i8]c"input\00"}>,align 8
@o=private unnamed_addr constant<{[4x i8],i32,[7x i8]}><{[4x i8]zeroinitializer,i32 -2147483641,[7x i8]c"input1\00"}>,align 8
@p=private unnamed_addr constant<{[4x i8],i32,[43x i8]}><{[4x i8]zeroinitializer,i32 -2147483605,[43x i8]c"src/smlnj/Basis/IO/bin-io.sml:206.10(6209)\00"}>,align 8
@q=private unnamed_addr constant<{[4x i8],i32,[43x i8]}><{[4x i8]zeroinitializer,i32 -2147483605,[43x i8]c"src/smlnj/Basis/IO/bin-io.sml:221.22(6724)\00"}>,align 8
@r=private unnamed_addr constant<{[4x i8],i32,[43x i8]}><{[4x i8]zeroinitializer,i32 -2147483605,[43x i8]c"src/smlnj/Basis/IO/bin-io.sml:227.17(6885)\00"}>,align 8
@s=private unnamed_addr constant<{[4x i8],i32,[43x i8]}><{[4x i8]zeroinitializer,i32 -2147483605,[43x i8]c"src/smlnj/Basis/IO/bin-io.sml:224.52(6813)\00"}>,align 8
@t=private unnamed_addr constant<{[4x i8],i32,[7x i8]}><{[4x i8]zeroinitializer,i32 -2147483641,[7x i8]c"inputN\00"}>,align 8
@u=private unnamed_addr constant<{[4x i8],i32,[43x i8]}><{[4x i8]zeroinitializer,i32 -2147483605,[43x i8]c"src/smlnj/Basis/IO/bin-io.sml:229.56(6961)\00"}>,align 8
@v=private unnamed_addr constant<{[4x i8],i32,[9x i8]}><{[4x i8]zeroinitializer,i32 -2147483639,[9x i8]c"inputAll\00"}>,align 8
@w=private unnamed_addr constant<{[4x i8],i32,[43x i8]}><{[4x i8]zeroinitializer,i32 -2147483605,[43x i8]c"src/smlnj/Basis/IO/bin-io.sml:271.30(8380)\00"}>,align 8
@x=private unnamed_addr constant<{[4x i8],i32,[43x i8]}><{[4x i8]zeroinitializer,i32 -2147483605,[43x i8]c"src/smlnj/Basis/IO/bin-io.sml:276.23(8597)\00"}>,align 8
@y=private unnamed_addr constant<{[4x i8],i32,[43x i8]}><{[4x i8]zeroinitializer,i32 -2147483605,[43x i8]c"src/smlnj/Basis/IO/bin-io.sml:280.24(8674)\00"}>,align 8
@z=private unnamed_addr constant<{[4x i8],i32,[43x i8]}><{[4x i8]zeroinitializer,i32 -2147483605,[43x i8]c"src/smlnj/Basis/IO/bin-io.sml:284.33(8826)\00"}>,align 8
@A=private unnamed_addr constant<{[4x i8],i32,[9x i8]}><{[4x i8]zeroinitializer,i32 -2147483639,[9x i8]c"canInput\00"}>,align 8
@B=private unnamed_addr constant<{[4x i8],i32,[43x i8]}><{[4x i8]zeroinitializer,i32 -2147483605,[43x i8]c"src/smlnj/Basis/IO/bin-io.sml:289.26(9013)\00"}>,align 8
@C=private unnamed_addr constant<{[4x i8],i32,[43x i8]}><{[4x i8]zeroinitializer,i32 -2147483605,[43x i8]c"src/smlnj/Basis/IO/bin-io.sml:291.58(9097)\00"}>,align 8
@D=private unnamed_addr constant<{[4x i8],i32,[43x i8]}><{[4x i8]zeroinitializer,i32 -2147483605,[43x i8]c"src/smlnj/Basis/IO/bin-io.sml:285.36(8867)\00"}>,align 8
@E=private unnamed_addr constant<{[4x i8],i32,[43x i8]}><{[4x i8]zeroinitializer,i32 -2147483605,[43x i8]c"src/smlnj/Basis/IO/bin-io.sml:282.43(8737)\00"}>,align 8
@F=private unnamed_addr constant<{[4x i8],i32,[43x i8]}><{[4x i8]zeroinitializer,i32 -2147483605,[43x i8]c"src/smlnj/Basis/IO/bin-io.sml:295.15(9168)\00"}>,align 8
@G=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN5BinIO8StreamIO8canInputE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO8StreamIO8canInputE_482 to void(...)*),i32 -2147483647}>,align 8
@H=private unnamed_addr constant<{[4x i8],i32,[8x i8]}><{[4x i8]zeroinitializer,i32 -2147483640,[8x i8]c"closeIn\00"}>,align 8
@I=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLFN5BinIO8StreamIO7closeInE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO8StreamIO7closeInE_483 to void(...)*),i32 -2147483647}>,align 8
@J=private unnamed_addr constant<{[4x i8],i32,[12x i8]}><{[4x i8]zeroinitializer,i32 -2147483636,[12x i8]c"endOfStream\00"}>,align 8
@K=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i8*)*@_SMLFN5BinIO8StreamIO11endOfStreamE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO8StreamIO11endOfStreamE_484 to void(...)*),i32 -2147483647}>,align 8
@L=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/smlnj/Basis/IO/bin-io.sml:322.33(10137)\00"}>,align 8
@M=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32)*@_SMLL8readVec_G_307 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLL8readVec_G_485 to void(...)*),i32 -2147483647}>,align 8
@N=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/smlnj/Basis/IO/bin-io.sml:329.23(10367)\00"}>,align 8
@O=private unnamed_addr constant<{[4x i8],i32,i8*,i8*,i32}><{[4x i8]zeroinitializer,i32 -805306352,i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,i8*}>,<{[4x i8],i32,i8*}>*@_SMLDL236,i32 0,i32 0,i32 0),i32 8),i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@N,i32 0,i32 0,i32 0),i32 8),i32 3}>,align 8
@P=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32)*@_SMLL6getPos_312 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLL6getPos_487 to void(...)*),i32 -2147483647}>,align 8
@Q=private unnamed_addr constant<{[4x i8],i32,i32,[4x i8],i32}><{[4x i8]zeroinitializer,i32 -805306360,i32 2,[4x i8]zeroinitializer,i32 0}>,align 8
@R=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN5BinIO8StreamIO10mkInstreamE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO8StreamIO10mkInstreamE_490 to void(...)*),i32 -2147483647}>,align 8
@S=private unnamed_addr constant<{[4x i8],i32,[10x i8]}><{[4x i8]zeroinitializer,i32 -2147483638,[10x i8]c"filePosIn\00"}>,align 8
@T=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/smlnj/Basis/IO/bin-io.sml:378.35(12014)\00"}>,align 8
@U=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i8*)*@_SMLFN5BinIO8StreamIO9filePosInE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO8StreamIO9filePosInE_492 to void(...)*),i32 -2147483647}>,align 8
@V=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/smlnj/Basis/IO/bin-io.sml:397.13(12519)\00"}>,align 8
@W=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/smlnj/Basis/IO/bin-io.sml:400.30(12656)\00"}>,align 8
@X=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/smlnj/Basis/IO/bin-io.sml:433.24(13682)\00"}>,align 8
@Y=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/smlnj/Basis/IO/bin-io.sml:443.18(13935)\00"}>,align 8
@Z=private unnamed_addr constant<{[4x i8],i32,[7x i8]}><{[4x i8]zeroinitializer,i32 -2147483641,[7x i8]c"output\00"}>,align 8
@aa=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/smlnj/Basis/IO/bin-io.sml:439.29(13817)\00"}>,align 8
@ab=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLL7copyVec_346 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLL7copyVec_499 to void(...)*),i32 -2147483647}>,align 8
@ac=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLFN5BinIO8StreamIO6outputE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO8StreamIO6outputE_500 to void(...)*),i32 -2147483647}>,align 8
@ad=private unnamed_addr constant<{[4x i8],i32,i32,[4x i8],i32}><{[4x i8]zeroinitializer,i32 -805306360,i32 1,[4x i8]zeroinitializer,i32 0}>,align 8
@ae=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/smlnj/Basis/IO/bin-io.sml:467.36(14640)\00"}>,align 8
@af=private unnamed_addr constant<{[4x i8],i32,[8x i8]}><{[4x i8]zeroinitializer,i32 -2147483640,[8x i8]c"output1\00"}>,align 8
@ag=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLFN5BinIO8StreamIO7output1E to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO8StreamIO7output1E_501 to void(...)*),i32 -2147483647}>,align 8
@ah=private unnamed_addr constant<{[4x i8],i32,[9x i8]}><{[4x i8]zeroinitializer,i32 -2147483639,[9x i8]c"closeOut\00"}>,align 8
@ai=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLFN5BinIO8StreamIO8closeOutE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO8StreamIO8closeOutE_502 to void(...)*),i32 -2147483647}>,align 8
@aj=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/smlnj/Basis/IO/bin-io.sml:501.33(15462)\00"}>,align 8
@ak=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLL9writeArr_G_365 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLL9writeArr_G_506 to void(...)*),i32 -2147483647}>,align 8
@al=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/smlnj/Basis/IO/bin-io.sml:505.33(15638)\00"}>,align 8
@am=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLL9writeVec_G_368 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLL9writeVec_G_507 to void(...)*),i32 -2147483647}>,align 8
@an=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i32)*@_SMLL3tag_370 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLL3tag_508 to void(...)*),i32 -2147483647}>,align 8
@ao=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN5BinIO8StreamIO11mkOutstreamE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO8StreamIO11mkOutstreamE_512 to void(...)*),i32 -2147483647}>,align 8
@ap=private unnamed_addr constant<{[4x i8],i32,[10x i8]}><{[4x i8]zeroinitializer,i32 -2147483638,[10x i8]c"getWriter\00"}>,align 8
@aq=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN5BinIO8StreamIO9getWriterE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO8StreamIO9getWriterE_513 to void(...)*),i32 -2147483647}>,align 8
@ar=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/smlnj/Basis/IO/bin-io.sml:549.38(16886)\00"}>,align 8
@as=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN5BinIO8StreamIO9getPosOutE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO8StreamIO9getPosOutE_514 to void(...)*),i32 -2147483647}>,align 8
@at=private unnamed_addr constant<{[4x i8],i32,[11x i8]}><{[4x i8]zeroinitializer,i32 -2147483637,[11x i8]c"filePosOut\00"}>,align 8
@au=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i8*)*@_SMLFN5BinIO8StreamIO10filePosOutE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO8StreamIO10filePosOutE_515 to void(...)*),i32 -2147483647}>,align 8
@av=private unnamed_addr constant<{[4x i8],i32,[10x i8]}><{[4x i8]zeroinitializer,i32 -2147483638,[10x i8]c"setPosOut\00"}>,align 8
@aw=private unnamed_addr constant<{[4x i8],i32,[10x i8]}><{[4x i8]zeroinitializer,i32 -2147483638,[10x i8]c"getPosOut\00"}>,align 8
@ax=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/smlnj/Basis/IO/bin-io.sml:562.38(17316)\00"}>,align 8
@ay=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN5BinIO8StreamIO9setPosOutE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO8StreamIO9setPosOutE_516 to void(...)*),i32 -2147483647}>,align 8
@az=private unnamed_addr constant<{[4x i8],i32,[14x i8]}><{[4x i8]zeroinitializer,i32 -2147483634,[14x i8]c"setBufferMode\00"}>,align 8
@aA=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLFN5BinIO8StreamIO13setBufferModeE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO8StreamIO13setBufferModeE_517 to void(...)*),i32 -2147483647}>,align 8
@aB=private unnamed_addr constant<{[4x i8],i32,[14x i8]}><{[4x i8]zeroinitializer,i32 -2147483634,[14x i8]c"getBufferMode\00"}>,align 8
@aC=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i8*)*@_SMLFN5BinIO8StreamIO13getBufferModeE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO8StreamIO13getBufferModeE_518 to void(...)*),i32 -2147483647}>,align 8
@aD=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN5BinIO6input1E to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO6input1E_519 to void(...)*),i32 -2147483647}>,align 8
@aE=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN5BinIO9lookaheadE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO9lookaheadE_520 to void(...)*),i32 -2147483647}>,align 8
@aF=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLFN5BinIO7closeInE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO7closeInE_522 to void(...)*),i32 -2147483647}>,align 8
@aG=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLFN5BinIO9setPosOutE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO9setPosOutE_523 to void(...)*),i32 -2147483647}>,align 8
@aH=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/smlnj/Basis/IO/bin-io.sml:643.24(20039)\00"}>,align 8
@aI=private unnamed_addr constant<{[4x i8],i32,[7x i8]}><{[4x i8]zeroinitializer,i32 -2147483641,[7x i8]c"openIn\00"}>,align 8
@aJ=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/smlnj/Basis/IO/bin-io.sml:646.24(20208)\00"}>,align 8
@aK=private unnamed_addr constant<{[4x i8],i32,[8x i8]}><{[4x i8]zeroinitializer,i32 -2147483640,[8x i8]c"openOut\00"}>,align 8
@aL=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN5BinIO7openOutE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO7openOutE_524 to void(...)*),i32 -2147483647}>,align 8
@aM=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/smlnj/Basis/IO/bin-io.sml:649.24(20379)\00"}>,align 8
@aN=private unnamed_addr constant<{[4x i8],i32,[11x i8]}><{[4x i8]zeroinitializer,i32 -2147483637,[11x i8]c"openAppend\00"}>,align 8
@aO=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN5BinIO10openAppendE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO10openAppendE_525 to void(...)*),i32 -2147483647}>,align 8
@aP=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN5BinIO8StreamIO6input1E to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO8StreamIO6input1E_527 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN5BinIO8StreamIO6input1E=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@aP,i64 0,i32 2)to i8*)
@_SMLZN5BinIO8StreamIO8canInputE=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*)
@_SMLZN5BinIO8StreamIO7closeInE=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*)
@_SMLZN5BinIO8StreamIO11endOfStreamE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@K,i64 0,i32 2)to i8*)
@_SMLZN5BinIO8StreamIO6outputE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@ac,i64 0,i32 2)to i8*)
@_SMLZN5BinIO8StreamIO7output1E=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@ag,i64 0,i32 2)to i8*)
@aQ=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLFN5BinIO8StreamIO8flushOutE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO8StreamIO8flushOutE_530 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN5BinIO8StreamIO8flushOutE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@aQ,i64 0,i32 2)to i8*)
@_SMLZN5BinIO8StreamIO8closeOutE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@ai,i64 0,i32 2)to i8*)
@_SMLZN5BinIO8StreamIO10mkInstreamE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@R,i64 0,i32 2)to i8*)
@_SMLZN5BinIO8StreamIO9filePosInE=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*)
@_SMLZN5BinIO8StreamIO13setBufferModeE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@aA,i64 0,i32 2)to i8*)
@_SMLZN5BinIO8StreamIO13getBufferModeE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@aC,i64 0,i32 2)to i8*)
@_SMLZN5BinIO8StreamIO11mkOutstreamE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@ao,i64 0,i32 2)to i8*)
@_SMLZN5BinIO8StreamIO9getWriterE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@aq,i64 0,i32 2)to i8*)
@_SMLZN5BinIO8StreamIO9getPosOutE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@as,i64 0,i32 2)to i8*)
@_SMLZN5BinIO8StreamIO9setPosOutE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@ay,i64 0,i32 2)to i8*)
@_SMLZN5BinIO8StreamIO10filePosOutE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@au,i64 0,i32 2)to i8*)
@_SMLZN5BinIO6input1E=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@aD,i64 0,i32 2)to i8*)
@aR=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN5BinIO8canInputE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO8canInputE_535 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN5BinIO8canInputE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@aR,i64 0,i32 2)to i8*)
@_SMLZN5BinIO9lookaheadE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@aE,i64 0,i32 2)to i8*)
@_SMLZN5BinIO7closeInE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@aF,i64 0,i32 2)to i8*)
@aS=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i8*)*@_SMLFN5BinIO11endOfStreamE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO11endOfStreamE_536 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN5BinIO11endOfStreamE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@aS,i64 0,i32 2)to i8*)
@aT=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLFN5BinIO6outputE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO6outputE_537 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN5BinIO6outputE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@aT,i64 0,i32 2)to i8*)
@aU=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLFN5BinIO7output1E to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO7output1E_538 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN5BinIO7output1E=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@aU,i64 0,i32 2)to i8*)
@aV=private unnamed_addr constant<{[4x i8],i32,[9x i8]}><{[4x i8]zeroinitializer,i32 -2147483639,[9x i8]c"flushOut\00"}>,align 8
@aW=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLFN5BinIO8flushOutE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO8flushOutE_539 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN5BinIO8flushOutE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@aW,i64 0,i32 2)to i8*)
@aX=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLFN5BinIO8closeOutE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO8closeOutE_540 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN5BinIO8closeOutE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@aX,i64 0,i32 2)to i8*)
@aY=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN5BinIO10mkInstreamE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO10mkInstreamE_541 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN5BinIO10mkInstreamE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@aY,i64 0,i32 2)to i8*)
@aZ=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN5BinIO11getInstreamE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO11getInstreamE_542 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN5BinIO11getInstreamE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@aZ,i64 0,i32 2)to i8*)
@a0=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLFN5BinIO11setInstreamE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO11setInstreamE_543 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN5BinIO11setInstreamE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@a0,i64 0,i32 2)to i8*)
@a1=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN5BinIO11mkOutstreamE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO11mkOutstreamE_544 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN5BinIO11mkOutstreamE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@a1,i64 0,i32 2)to i8*)
@a2=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN5BinIO12getOutstreamE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO12getOutstreamE_545 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN5BinIO12getOutstreamE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@a2,i64 0,i32 2)to i8*)
@a3=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLFN5BinIO12setOutstreamE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO12setOutstreamE_546 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN5BinIO12setOutstreamE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@a3,i64 0,i32 2)to i8*)
@a4=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN5BinIO9getPosOutE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO9getPosOutE_547 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN5BinIO9getPosOutE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@a4,i64 0,i32 2)to i8*)
@_SMLZN5BinIO9setPosOutE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@aG,i64 0,i32 2)to i8*)
@_SMLZN5BinIO7openOutE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@aL,i64 0,i32 2)to i8*)
@_SMLZN5BinIO10openAppendE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@aO,i64 0,i32 2)to i8*)
@_SML_gvar21c7617ebc9dc739_bin_io=private global<{[4x i8],i32,[8x i8*]}><{[4x i8]zeroinitializer,i32 -1342177216,[8x i8*]zeroinitializer}>,align 8
@a5=private unnamed_addr global[3x i64][i64 2,i64 sub(i64 ptrtoint(i8**getelementptr inbounds(<{[4x i8],i32,[8x i8*]}>,<{[4x i8],i32,[8x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i32 0,i32 2,i32 0)to i64),i64 ptrtoint([3x i64]*@a5 to i64)),i64 sub(i64 ptrtoint(i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,i8*}>,<{[4x i8],i32,i8*}>*@_SMLDN7CleanIO11stdStrmHookE_222,i32 0,i32 0,i32 0),i32 8)to i64),i64 ptrtoint([3x i64]*@a5 to i64))]
@_SML_ftab21c7617ebc9dc739_bin_io=external global i8
@a6=private unnamed_addr global i8 0
@_SMLZN5BinIO8StreamIO5inputE=alias i8*,getelementptr inbounds(<{[4x i8],i32,[8x i8*]}>,<{[4x i8],i32,[8x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i32 0,i32 2,i32 0)
@_SMLZN5BinIO8StreamIO6inputNE=alias i8*,getelementptr inbounds(<{[4x i8],i32,[8x i8*]}>,<{[4x i8],i32,[8x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i32 0,i32 2,i32 1)
@_SMLZN5BinIO8StreamIO8inputAllE=alias i8*,getelementptr inbounds(<{[4x i8],i32,[8x i8*]}>,<{[4x i8],i32,[8x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i32 0,i32 2,i32 2)
@_SMLZN5BinIO8StreamIO9getReaderE=alias i8*,getelementptr inbounds(<{[4x i8],i32,[8x i8*]}>,<{[4x i8],i32,[8x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i32 0,i32 2,i32 3)
@_SMLZN5BinIO5inputE=alias i8*,getelementptr inbounds(<{[4x i8],i32,[8x i8*]}>,<{[4x i8],i32,[8x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i32 0,i32 2,i32 4)
@_SMLZN5BinIO6inputNE=alias i8*,getelementptr inbounds(<{[4x i8],i32,[8x i8*]}>,<{[4x i8],i32,[8x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i32 0,i32 2,i32 5)
@_SMLZN5BinIO8inputAllE=alias i8*,getelementptr inbounds(<{[4x i8],i32,[8x i8*]}>,<{[4x i8],i32,[8x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i32 0,i32 2,i32 6)
@_SMLZN5BinIO6openInE=alias i8*,getelementptr inbounds(<{[4x i8],i32,[8x i8*]}>,<{[4x i8],i32,[8x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i32 0,i32 2,i32 7)
declare void@llvm.gcroot(i8**,i8*)#0
declare{i32,i1}@llvm.sadd.with.overflow.i32(i32,i32)#0
declare{i32,i1}@llvm.smul.with.overflow.i32(i32,i32)#0
declare{i32,i1}@llvm.ssub.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_end()local_unnamed_addr#0
declare void@sml_gcroot(i8*,void()*,i8*,i8*)local_unnamed_addr#0
declare void@sml_matchcomp_bug()local_unnamed_addr
declare i32@sml_personality(...)#0
declare void@sml_raise(i8*inreg)local_unnamed_addr#1
declare void@sml_save_exn(i8*inreg)local_unnamed_addr#0
declare void@sml_start(i8*inreg)local_unnamed_addr#0
declare void@sml_write(i8*inreg,i8**inreg,i8*inreg)local_unnamed_addr#0
declare i8*@_SMLFN10Word8Array5arrayE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i32@_SMLFN10Word8Array6lengthE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare void@_SMLFN10Word8Array6updateE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8@_SMLFN11Word8Vector3subE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN11Word8Vector6concatE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i32@_SMLFN11Word8Vector6lengthE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN11Word8Vector8fromListE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN15Word8ArraySlice4fullE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN15Word8ArraySlice5sliceE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare void@_SMLFN15Word8ArraySlice7copyVecE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN16Word8VectorSlice4fullE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN16Word8VectorSlice5sliceE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN16Word8VectorSlice6vectorE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare void@_SMLFN18SMLSharp__OSProcess12cancelAtExitE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare void@_SMLFN18SMLSharp__OSProcess12rebindAtExitE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN18SMLSharp__OSProcess7atExit_GE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN29SMLSharp__SMLNJ__PosixBinPrimIO6openRdE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN29SMLSharp__SMLNJ__PosixBinPrimIO6openWrE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN29SMLSharp__SMLNJ__PosixBinPrimIO7openAppE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i32@_SMLFN5Int327fromIntE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main19a59bcdb325454c_SMLSharp_OSProcess()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_maine08a2a3237fbaf1b_Word8Vector()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main78563455976a8f16_Word8VectorSlice()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_maincf621abe85ce2376_Word8Array()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_maind090c7e00210ea66_Word8ArraySlice()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main5148a836b3728be9_Int32()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_mainfe9066b69eea2866_IO()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_maind7bed40ec7aa770a_posix_bin_prim_io()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_load19a59bcdb325454c_SMLSharp_OSProcess(i8*)local_unnamed_addr
declare void@_SML_loade08a2a3237fbaf1b_Word8Vector(i8*)local_unnamed_addr
declare void@_SML_load78563455976a8f16_Word8VectorSlice(i8*)local_unnamed_addr
declare void@_SML_loadcf621abe85ce2376_Word8Array(i8*)local_unnamed_addr
declare void@_SML_loadd090c7e00210ea66_Word8ArraySlice(i8*)local_unnamed_addr
declare void@_SML_load5148a836b3728be9_Int32(i8*)local_unnamed_addr
declare void@_SML_loadfe9066b69eea2866_IO(i8*)local_unnamed_addr
declare void@_SML_loadd7bed40ec7aa770a_posix_bin_prim_io(i8*)local_unnamed_addr
define private void@_SML_tabb21c7617ebc9dc739_bin_io()#3{
unreachable
}
define void@_SML_load21c7617ebc9dc739_bin_io(i8*%a)local_unnamed_addr#0{
%b=load i8,i8*@a6,align 1
%c=icmp eq i8%b,0
br i1%c,label%e,label%d
d:
ret void
e:
store i8 1,i8*@a6,align 1
tail call void@_SML_load19a59bcdb325454c_SMLSharp_OSProcess(i8*%a)#0
tail call void@_SML_loade08a2a3237fbaf1b_Word8Vector(i8*%a)#0
tail call void@_SML_load78563455976a8f16_Word8VectorSlice(i8*%a)#0
tail call void@_SML_loadcf621abe85ce2376_Word8Array(i8*%a)#0
tail call void@_SML_loadd090c7e00210ea66_Word8ArraySlice(i8*%a)#0
tail call void@_SML_load5148a836b3728be9_Int32(i8*%a)#0
tail call void@_SML_loadfe9066b69eea2866_IO(i8*%a)#0
tail call void@_SML_loadd7bed40ec7aa770a_posix_bin_prim_io(i8*%a)#0
tail call void@sml_gcroot(i8*%a,void()*@_SML_tabb21c7617ebc9dc739_bin_io,i8*@_SML_ftab21c7617ebc9dc739_bin_io,i8*bitcast([3x i64]*@a5 to i8*))#0
ret void
}
define void@_SML_main21c7617ebc9dc739_bin_io()local_unnamed_addr#2 gc"smlsharp"personality i32(...)*@sml_personality{
%a=alloca[3x i8*],align 8
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
%h=alloca i8*,align 8
%i=alloca i8*,align 8
%j=alloca i8*,align 8
%k=load i8,i8*@a6,align 1
%l=and i8%k,2
%m=icmp eq i8%l,0
br i1%m,label%o,label%n
n:
ret void
o:
store i8 3,i8*@a6,align 1
tail call void@_SML_main19a59bcdb325454c_SMLSharp_OSProcess()#2
tail call void@_SML_maine08a2a3237fbaf1b_Word8Vector()#2
tail call void@_SML_main78563455976a8f16_Word8VectorSlice()#2
tail call void@_SML_maincf621abe85ce2376_Word8Array()#2
tail call void@_SML_maind090c7e00210ea66_Word8ArraySlice()#2
tail call void@_SML_main5148a836b3728be9_Int32()#2
tail call void@_SML_mainfe9066b69eea2866_IO()#2
tail call void@_SML_maind7bed40ec7aa770a_posix_bin_prim_io()#2
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
call void@llvm.gcroot(i8**%h,i8*null)#0
call void@llvm.gcroot(i8**%i,i8*null)#0
call void@llvm.gcroot(i8**%j,i8*null)#0
%p=bitcast[3x i8*]*%a to i8*
call void@sml_start(i8*inreg%p)#0
%q=load atomic i32,i32*@sml_check_flag unordered,align 4
%r=icmp eq i32%q,0
br i1%r,label%t,label%s
s:
invoke void@sml_check(i32 inreg%q)
to label%t unwind label%co
t:
%u=invoke fastcc i8*@_SMLFN11Word8Vector8fromListE(i8*inreg null)
to label%v unwind label%co
v:
store i8*%u,i8**%b,align 8
%w=call i8*@sml_alloc(i32 inreg 20)#0
%x=getelementptr inbounds i8,i8*%w,i64 -4
%y=bitcast i8*%x to i32*
store i32 1342177296,i32*%y,align 4
store i8*%w,i8**%c,align 8
%z=bitcast i8*%w to i8**
store 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*),i8**%z,align 8
%A=load i8*,i8**%b,align 8
%B=getelementptr inbounds i8,i8*%w,i64 8
%C=bitcast i8*%B to i8**
store i8*%A,i8**%C,align 8
%D=getelementptr inbounds i8,i8*%w,i64 16
%E=bitcast i8*%D to i32*
store i32 3,i32*%E,align 4
%F=call i8*@sml_alloc(i32 inreg 28)#0
%G=getelementptr inbounds i8,i8*%F,i64 -4
%H=bitcast i8*%G to i32*
store i32 1342177304,i32*%H,align 4
%I=load i8*,i8**%c,align 8
%J=bitcast i8*%F to i8**
store i8*%I,i8**%J,align 8
%K=getelementptr inbounds i8,i8*%F,i64 8
%L=bitcast i8*%K to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO8StreamIO16generalizedInputE_256 to void(...)*),void(...)**%L,align 8
%M=getelementptr inbounds i8,i8*%F,i64 16
%N=bitcast i8*%M to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO8StreamIO16generalizedInputE_256 to void(...)*),void(...)**%N,align 8
%O=getelementptr inbounds i8,i8*%F,i64 24
%P=bitcast i8*%O to i32*
store i32 -2147483647,i32*%P,align 4
%Q=call i8*@sml_alloc(i32 inreg 12)#0
%R=getelementptr inbounds i8,i8*%Q,i64 -4
%S=bitcast i8*%R to i32*
store i32 1342177288,i32*%S,align 4
store i8*%Q,i8**%d,align 8
%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 1,i32*%W,align 4
%X=call i8*@sml_alloc(i32 inreg 28)#0
%Y=getelementptr inbounds i8,i8*%X,i64 -4
%Z=bitcast i8*%Y to i32*
store i32 1342177304,i32*%Z,align 4
store i8*%X,i8**%e,align 8
%aa=load i8*,i8**%d,align 8
%ab=bitcast i8*%X to i8**
store i8*%aa,i8**%ab,align 8
%ac=getelementptr inbounds i8,i8*%X,i64 8
%ad=bitcast i8*%ac to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO8StreamIO5inputE_262 to void(...)*),void(...)**%ad,align 8
%ae=getelementptr inbounds i8,i8*%X,i64 16
%af=bitcast i8*%ae to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO8StreamIO5inputE_262 to void(...)*),void(...)**%af,align 8
%ag=getelementptr inbounds i8,i8*%X,i64 24
%ah=bitcast i8*%ag to i32*
store i32 -2147483647,i32*%ah,align 4
%ai=call i8*@sml_alloc(i32 inreg 12)#0
%aj=getelementptr inbounds i8,i8*%ai,i64 -4
%ak=bitcast i8*%aj to i32*
store i32 1342177288,i32*%ak,align 4
store i8*%ai,i8**%f,align 8
%al=bitcast i8*%ai to i8**
store 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*),i8**%al,align 8
%am=getelementptr inbounds i8,i8*%ai,i64 8
%an=bitcast i8*%am to i32*
store i32 1,i32*%an,align 4
%ao=call i8*@sml_alloc(i32 inreg 28)#0
%ap=getelementptr inbounds i8,i8*%ao,i64 -4
%aq=bitcast i8*%ap to i32*
store i32 1342177304,i32*%aq,align 4
store i8*%ao,i8**%g,align 8
%ar=load i8*,i8**%f,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 void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO8StreamIO6inputNE_280 to void(...)*),void(...)**%au,align 8
%av=getelementptr inbounds i8,i8*%ao,i64 16
%aw=bitcast i8*%av to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO8StreamIO6inputNE_280 to void(...)*),void(...)**%aw,align 8
%ax=getelementptr inbounds i8,i8*%ao,i64 24
%ay=bitcast i8*%ax to i32*
store i32 -2147483647,i32*%ay,align 4
%az=call i8*@sml_alloc(i32 inreg 12)#0
%aA=getelementptr inbounds i8,i8*%az,i64 -4
%aB=bitcast i8*%aA to i32*
store i32 1342177288,i32*%aB,align 4
store i8*%az,i8**%h,align 8
%aC=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aD=bitcast i8*%az to i8**
store i8*%aC,i8**%aD,align 8
%aE=getelementptr inbounds i8,i8*%az,i64 8
%aF=bitcast i8*%aE to i32*
store i32 1,i32*%aF,align 4
%aG=call i8*@sml_alloc(i32 inreg 28)#0
%aH=getelementptr inbounds i8,i8*%aG,i64 -4
%aI=bitcast i8*%aH to i32*
store i32 1342177304,i32*%aI,align 4
store i8*%aG,i8**%c,align 8
%aJ=load i8*,i8**%h,align 8
%aK=bitcast i8*%aG to i8**
store i8*%aJ,i8**%aK,align 8
%aL=getelementptr inbounds i8,i8*%aG,i64 8
%aM=bitcast i8*%aL to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO8StreamIO8inputAllE_284 to void(...)*),void(...)**%aM,align 8
%aN=getelementptr inbounds i8,i8*%aG,i64 16
%aO=bitcast i8*%aN to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO8StreamIO8inputAllE_284 to void(...)*),void(...)**%aO,align 8
%aP=getelementptr inbounds i8,i8*%aG,i64 24
%aQ=bitcast i8*%aP to i32*
store i32 -2147483647,i32*%aQ,align 4
%aR=call i8*@sml_alloc(i32 inreg 12)#0
%aS=getelementptr inbounds i8,i8*%aR,i64 -4
%aT=bitcast i8*%aS to i32*
store i32 1342177288,i32*%aT,align 4
store i8*%aR,i8**%i,align 8
%aU=bitcast i8*%aR to i8**
store 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*),i8**%aU,align 8
%aV=getelementptr inbounds i8,i8*%aR,i64 8
%aW=bitcast i8*%aV to i32*
store i32 1,i32*%aW,align 4
%aX=call i8*@sml_alloc(i32 inreg 28)#0
%aY=getelementptr inbounds i8,i8*%aX,i64 -4
%aZ=bitcast i8*%aY to i32*
store i32 1342177304,i32*%aZ,align 4
store i8*%aX,i8**%j,align 8
%a0=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%a1=bitcast i8*%aX to i8**
store i8*%a0,i8**%a1,align 8
%a2=getelementptr inbounds i8,i8*%aX,i64 8
%a3=bitcast i8*%a2 to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO8StreamIO9getReaderE_321 to void(...)*),void(...)**%a3,align 8
%a4=getelementptr inbounds i8,i8*%aX,i64 16
%a5=bitcast i8*%a4 to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO8StreamIO9getReaderE_321 to void(...)*),void(...)**%a5,align 8
%a6=getelementptr inbounds i8,i8*%aX,i64 24
%a7=bitcast i8*%a6 to i32*
store i32 -2147483647,i32*%a7,align 4
%a8=call i8*@sml_alloc(i32 inreg 12)#0
%a9=getelementptr inbounds i8,i8*%a8,i64 -4
%ba=bitcast i8*%a9 to i32*
store i32 1342177288,i32*%ba,align 4
store i8*%a8,i8**%i,align 8
%bb=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%bc=bitcast i8*%a8 to i8**
store i8*%bb,i8**%bc,align 8
%bd=getelementptr inbounds i8,i8*%a8,i64 8
%be=bitcast i8*%bd to i32*
store i32 1,i32*%be,align 4
%bf=call i8*@sml_alloc(i32 inreg 28)#0
%bg=getelementptr inbounds i8,i8*%bf,i64 -4
%bh=bitcast i8*%bg to i32*
store i32 1342177304,i32*%bh,align 4
store i8*%bf,i8**%f,align 8
%bi=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%bj=bitcast i8*%bf to i8**
store i8*%bi,i8**%bj,align 8
%bk=getelementptr inbounds i8,i8*%bf,i64 8
%bl=bitcast i8*%bk to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO6inputNE_405 to void(...)*),void(...)**%bl,align 8
%bm=getelementptr inbounds i8,i8*%bf,i64 16
%bn=bitcast i8*%bm to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO6inputNE_405 to void(...)*),void(...)**%bn,align 8
%bo=getelementptr inbounds i8,i8*%bf,i64 24
%bp=bitcast i8*%bo to i32*
store i32 -2147483647,i32*%bp,align 4
%bq=call i8*@sml_alloc(i32 inreg 12)#0
%br=getelementptr inbounds i8,i8*%bq,i64 -4
%bs=bitcast i8*%br to i32*
store i32 1342177288,i32*%bs,align 4
store i8*%bq,i8**%i,align 8
%bt=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%bu=bitcast i8*%bq to i8**
store i8*%bt,i8**%bu,align 8
%bv=getelementptr inbounds i8,i8*%bq,i64 8
%bw=bitcast i8*%bv to i32*
store i32 1,i32*%bw,align 4
%bx=call i8*@sml_alloc(i32 inreg 28)#0
%by=getelementptr inbounds i8,i8*%bx,i64 -4
%bz=bitcast i8*%by to i32*
store i32 1342177304,i32*%bz,align 4
store i8*%bx,i8**%b,align 8
%bA=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%bB=bitcast i8*%bx to i8**
store i8*%bA,i8**%bB,align 8
%bC=getelementptr inbounds i8,i8*%bx,i64 8
%bD=bitcast i8*%bC to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO6openInE_416 to void(...)*),void(...)**%bD,align 8
%bE=getelementptr inbounds i8,i8*%bx,i64 16
%bF=bitcast i8*%bE to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO6openInE_416 to void(...)*),void(...)**%bF,align 8
%bG=getelementptr inbounds i8,i8*%bx,i64 24
%bH=bitcast i8*%bG to i32*
store i32 -2147483647,i32*%bH,align 4
%bI=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
call void@sml_write(i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,[8x i8*]}>,<{[4x i8],i32,[8x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i64 0,i32 2,i64 0)to i8*),i8**inreg getelementptr inbounds(<{[4x i8],i32,[8x i8*]}>,<{[4x i8],i32,[8x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i64 0,i32 2,i64 0),i8*inreg%bI)#0
%bJ=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
call void@sml_write(i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,[8x i8*]}>,<{[4x i8],i32,[8x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i64 0,i32 2,i64 0)to i8*),i8**inreg getelementptr inbounds(<{[4x i8],i32,[8x i8*]}>,<{[4x i8],i32,[8x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i64 0,i32 2,i64 1),i8*inreg%bJ)#0
%bK=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
call void@sml_write(i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,[8x i8*]}>,<{[4x i8],i32,[8x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i64 0,i32 2,i64 0)to i8*),i8**inreg getelementptr inbounds(<{[4x i8],i32,[8x i8*]}>,<{[4x i8],i32,[8x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i64 0,i32 2,i64 2),i8*inreg%bK)#0
%bL=load i8*,i8**%j,align 8
store i8*null,i8**%j,align 8
call void@sml_write(i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,[8x i8*]}>,<{[4x i8],i32,[8x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i64 0,i32 2,i64 0)to i8*),i8**inreg getelementptr inbounds(<{[4x i8],i32,[8x i8*]}>,<{[4x i8],i32,[8x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i64 0,i32 2,i64 3),i8*inreg%bL)#0
%bM=call i8*@sml_alloc(i32 inreg 12)#0
%bN=getelementptr inbounds i8,i8*%bM,i64 -4
%bO=bitcast i8*%bN to i32*
store i32 1342177288,i32*%bO,align 4
store i8*%bM,i8**%c,align 8
%bP=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%bQ=bitcast i8*%bM to i8**
store i8*%bP,i8**%bQ,align 8
%bR=getelementptr inbounds i8,i8*%bM,i64 8
%bS=bitcast i8*%bR to i32*
store i32 1,i32*%bS,align 4
%bT=call i8*@sml_alloc(i32 inreg 28)#0
%bU=getelementptr inbounds i8,i8*%bT,i64 -4
%bV=bitcast i8*%bU to i32*
store i32 1342177304,i32*%bV,align 4
%bW=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bX=bitcast i8*%bT to i8**
store i8*%bW,i8**%bX,align 8
%bY=getelementptr inbounds i8,i8*%bT,i64 8
%bZ=bitcast i8*%bY to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO5inputE_434 to void(...)*),void(...)**%bZ,align 8
%b0=getelementptr inbounds i8,i8*%bT,i64 16
%b1=bitcast i8*%b0 to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO5inputE_434 to void(...)*),void(...)**%b1,align 8
%b2=getelementptr inbounds i8,i8*%bT,i64 24
%b3=bitcast i8*%b2 to i32*
store i32 -2147483647,i32*%b3,align 4
call void@sml_write(i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,[8x i8*]}>,<{[4x i8],i32,[8x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i64 0,i32 2,i64 0)to i8*),i8**inreg getelementptr inbounds(<{[4x i8],i32,[8x i8*]}>,<{[4x i8],i32,[8x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i64 0,i32 2,i64 4),i8*inreg%bT)#0
%b4=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
call void@sml_write(i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,[8x i8*]}>,<{[4x i8],i32,[8x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i64 0,i32 2,i64 0)to i8*),i8**inreg getelementptr inbounds(<{[4x i8],i32,[8x i8*]}>,<{[4x i8],i32,[8x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i64 0,i32 2,i64 5),i8*inreg%b4)#0
%b5=call i8*@sml_alloc(i32 inreg 12)#0
%b6=getelementptr inbounds i8,i8*%b5,i64 -4
%b7=bitcast i8*%b6 to i32*
store i32 1342177288,i32*%b7,align 4
store i8*%b5,i8**%c,align 8
%b8=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%b9=bitcast i8*%b5 to i8**
store i8*%b8,i8**%b9,align 8
%ca=getelementptr inbounds i8,i8*%b5,i64 8
%cb=bitcast i8*%ca to i32*
store i32 1,i32*%cb,align 4
%cc=call i8*@sml_alloc(i32 inreg 28)#0
%cd=getelementptr inbounds i8,i8*%cc,i64 -4
%ce=bitcast i8*%cd to i32*
store i32 1342177304,i32*%ce,align 4
%cf=load i8*,i8**%c,align 8
%cg=bitcast i8*%cc to i8**
store i8*%cf,i8**%cg,align 8
%ch=getelementptr inbounds i8,i8*%cc,i64 8
%ci=bitcast i8*%ch to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO8inputAllE_437 to void(...)*),void(...)**%ci,align 8
%cj=getelementptr inbounds i8,i8*%cc,i64 16
%ck=bitcast i8*%cj to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO8inputAllE_437 to void(...)*),void(...)**%ck,align 8
%cl=getelementptr inbounds i8,i8*%cc,i64 24
%cm=bitcast i8*%cl to i32*
store i32 -2147483647,i32*%cm,align 4
call void@sml_write(i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,[8x i8*]}>,<{[4x i8],i32,[8x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i64 0,i32 2,i64 0)to i8*),i8**inreg getelementptr inbounds(<{[4x i8],i32,[8x i8*]}>,<{[4x i8],i32,[8x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i64 0,i32 2,i64 6),i8*inreg%cc)#0
%cn=load i8*,i8**%b,align 8
call void@sml_write(i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,[8x i8*]}>,<{[4x i8],i32,[8x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i64 0,i32 2,i64 0)to i8*),i8**inreg getelementptr inbounds(<{[4x i8],i32,[8x i8*]}>,<{[4x i8],i32,[8x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i64 0,i32 2,i64 7),i8*inreg%cn)#0
call void@sml_end()#0
ret void
co:
%cp=landingpad{i8*,i8*}
cleanup
%cq=extractvalue{i8*,i8*}%cp,1
call void@sml_save_exn(i8*inreg%cq)#0
call void@sml_end()#0
resume{i8*,i8*}%cp
}
define internal fastcc void@_SMLLN7CleanIO11stdStrmHookE_220(i32 inreg%a)#4 gc"smlsharp"{
ret void
}
define internal fastcc i8*@_SMLL10vecExtract_223(i8*inreg%a)#2 gc"smlsharp"{
i:
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%g,label%e
e:
call void@sml_check(i32 inreg%c)
%f=load i8*,i8**%b,align 8
br label%g
g:
%h=phi i8*[%f,%e],[%a,%i]
store i8*null,i8**%b,align 8
%j=call fastcc i8*@_SMLFN16Word8VectorSlice5sliceE(i8*inreg%h)
%k=tail call fastcc i8*@_SMLFN16Word8VectorSlice6vectorE(i8*inreg%j)
ret i8*%k
}
define internal fastcc i8*@_SMLLN5BinIO8StreamIO8inputExnE_230(i8*inreg%a)unnamed_addr#5 gc"smlsharp"{
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
%g=bitcast i8*%a to i8**
%h=load i8*,i8**%g,align 8
%i=getelementptr inbounds i8,i8*%h,i64 40
%j=bitcast i8*%i to i8**
%k=load i8*,i8**%j,align 8
%l=getelementptr inbounds i8,i8*%k,i64 64
%m=bitcast i8*%l to i8**
%n=load i8*,i8**%m,align 8
store i8*%n,i8**%b,align 8
%o=getelementptr inbounds i8,i8*%a,i64 8
%p=bitcast i8*%o to i8**
%q=load i8*,i8**%p,align 8
store i8*%q,i8**%c,align 8
%r=getelementptr inbounds i8,i8*%a,i64 16
%s=bitcast i8*%r to i8**
%t=load i8*,i8**%s,align 8
store i8*%t,i8**%d,align 8
%u=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%u,i8**%e,align 8
%v=call i8*@sml_alloc(i32 inreg 28)#0
%w=getelementptr inbounds i8,i8*%v,i64 -4
%x=bitcast i8*%w to i32*
store i32 1342177304,i32*%x,align 4
store i8*%v,i8**%f,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=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%B=getelementptr inbounds i8,i8*%v,i64 8
%C=bitcast i8*%B to i8**
store i8*%A,i8**%C,align 8
%D=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%E=getelementptr inbounds i8,i8*%v,i64 16
%F=bitcast i8*%E to i8**
store i8*%D,i8**%F,align 8
%G=getelementptr inbounds i8,i8*%v,i64 24
%H=bitcast i8*%G to i32*
store i32 7,i32*%H,align 4
%I=call i8*@sml_alloc(i32 inreg 28)#0
%J=getelementptr inbounds i8,i8*%I,i64 -4
%K=bitcast i8*%J to i32*
store i32 1342177304,i32*%K,align 4
store i8*%I,i8**%b,align 8
%L=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%M=bitcast i8*%I to i8**
store i8*%L,i8**%M,align 8
%N=getelementptr inbounds i8,i8*%I,i64 8
%O=bitcast i8*%N to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@c,i64 0,i32 2,i64 0),i8**%O,align 8
%P=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%Q=getelementptr inbounds i8,i8*%I,i64 16
%R=bitcast i8*%Q to i8**
store i8*%P,i8**%R,align 8
%S=getelementptr inbounds i8,i8*%I,i64 24
%T=bitcast i8*%S to i32*
store i32 7,i32*%T,align 4
%U=call i8*@sml_alloc(i32 inreg 60)#0
%V=getelementptr inbounds i8,i8*%U,i64 -4
%W=bitcast i8*%V to i32*
store i32 1342177336,i32*%W,align 4
%X=getelementptr inbounds i8,i8*%U,i64 56
%Y=bitcast i8*%X to i32*
store i32 1,i32*%Y,align 4
%Z=load i8*,i8**%b,align 8
%aa=bitcast i8*%U to i8**
store i8*%Z,i8**%aa,align 8
call void@sml_raise(i8*inreg%U)#1
unreachable
}
define internal fastcc i8*@_SMLLN5BinIO8StreamIO12extendStreamE_238(i8*inreg%a)unnamed_addr#2 gc"smlsharp"personality i32(...)*@sml_personality{
o:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
%h=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
call void@llvm.gcroot(i8**%h,i8*null)#0
store i8*%a,i8**%b,align 8
%i=load atomic i32,i32*@sml_check_flag unordered,align 4
%j=icmp eq i32%i,0
br i1%j,label%m,label%k
k:
call void@sml_check(i32 inreg%i)
%l=load i8*,i8**%b,align 8
br label%m
m:
%n=phi i8*[%l,%k],[%a,%o]
store i8*%n,i8**%d,align 8
%p=getelementptr inbounds i8,i8*%n,i64 8
%q=bitcast i8*%p to i8**
%r=load i8*,i8**%q,align 8
store i8*%r,i8**%e,align 8
%s=getelementptr inbounds i8,i8*%n,i64 16
%t=bitcast i8*%s to i8**
%u=load i8*,i8**%t,align 8
%v=getelementptr inbounds i8,i8*%u,i64 16
%w=bitcast i8*%v to i8**
%x=load i8*,i8**%w,align 8
store i8*%x,i8**%f,align 8
%y=getelementptr inbounds i8,i8*%u,i64 24
%z=bitcast i8*%y to i8**
%A=load i8*,i8**%z,align 8
store i8*%A,i8**%g,align 8
%B=getelementptr inbounds i8,i8*%x,i64 16
%C=bitcast i8*%B to i8**
%D=load i8*,i8**%C,align 8
store i8*%D,i8**%b,align 8
%E=getelementptr inbounds i8,i8*%x,i64 48
%F=bitcast i8*%E to i8**
%G=load i8*,i8**%F,align 8
store i8*%G,i8**%c,align 8
%H=call i8*@sml_alloc(i32 inreg 20)#0
%I=getelementptr inbounds i8,i8*%H,i64 -4
%J=bitcast i8*%I to i32*
store i32 1342177296,i32*%J,align 4
%K=load i8*,i8**%b,align 8
%L=bitcast i8*%H to i8**
store i8*%K,i8**%L,align 8
%M=load i8*,i8**%c,align 8
%N=getelementptr inbounds i8,i8*%H,i64 8
%O=bitcast i8*%N to i8**
store i8*%M,i8**%O,align 8
%P=getelementptr inbounds i8,i8*%H,i64 16
%Q=bitcast i8*%P to i32*
store i32 3,i32*%Q,align 4
store i8*%M,i8**%b,align 8
%R=getelementptr inbounds i8,i8*%K,i64 16
%S=bitcast i8*%R to i8*(i8*,i8*)**
%T=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%S,align 8
%U=bitcast i8*%K to i8**
%V=load i8*,i8**%U,align 8
store i8*%V,i8**%c,align 8
%W=call i8*@sml_alloc(i32 inreg 4)#0
%X=bitcast i8*%W to i32*
%Y=getelementptr inbounds i8,i8*%W,i64 -4
%Z=bitcast i8*%Y to i32*
store i32 4,i32*%Z,align 4
store i32 0,i32*%X,align 4
%aa=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ab=invoke fastcc i8*%T(i8*inreg%aa,i8*inreg%W)
to label%ac unwind label%bh
ac:
store i8*%ab,i8**%c,align 8
%ad=bitcast i8**%d to i8***
%ae=load i8**,i8***%ad,align 8
%af=load i8*,i8**%ae,align 8
%ag=getelementptr inbounds i8,i8*%af,i64 16
%ah=bitcast i8*%ag to i8*(i8*,i8*)**
%ai=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%ah,align 8
%aj=bitcast i8*%af to i8**
%ak=load i8*,i8**%aj,align 8
store i8*%ak,i8**%h,align 8
store i8*null,i8**%d,align 8
%al=getelementptr inbounds i8*,i8**%ae,i64 2
%am=load i8*,i8**%al,align 8
%an=getelementptr inbounds i8,i8*%am,i64 16
%ao=bitcast i8*%an to i8**
%ap=load i8*,i8**%ao,align 8
%aq=getelementptr inbounds i8,i8*%ap,i64 40
%ar=bitcast i8*%aq to i8**
%as=load i8*,i8**%ar,align 8
%at=getelementptr inbounds i8,i8*%as,i64 24
%au=bitcast i8*%at to i32*
%av=load i32,i32*%au,align 4
%aw=call i8*@sml_alloc(i32 inreg 4)#0
%ax=bitcast i8*%aw to i32*
%ay=getelementptr inbounds i8,i8*%aw,i64 -4
%az=bitcast i8*%ay to i32*
store i32 4,i32*%az,align 4
store i32%av,i32*%ax,align 4
%aA=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%aB=invoke fastcc i8*%ai(i8*inreg%aA,i8*inreg%aw)
to label%aC unwind label%bh
aC:
store i8*%aB,i8**%d,align 8
%aD=call i8*@sml_alloc(i32 inreg 8)#0
%aE=getelementptr inbounds i8,i8*%aD,i64 -4
%aF=bitcast i8*%aE to i32*
store i32 805306376,i32*%aF,align 4
store i8*%aD,i8**%h,align 8
%aG=bitcast i8*%aD to i64*
store i64 0,i64*%aG,align 1
%aH=bitcast i8*%aD to i8**
call void@sml_write(i8*inreg%aD,i8**inreg%aH,i8*inreg bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@Q,i64 0,i32 2)to i8*))#0
%aI=load i8*,i8**%d,align 8
%aJ=invoke fastcc i32@_SMLFN11Word8Vector6lengthE(i8*inreg%aI)
to label%aK unwind label%bh
aK:
store i8*null,i8**%e,align 8
%aL=icmp eq i32%aJ,0
%aM=call i8*@sml_alloc(i32 inreg 36)#0
%aN=getelementptr inbounds i8,i8*%aM,i64 -4
%aO=bitcast i8*%aN to i32*
store i32 1342177312,i32*%aO,align 4
store i8*%aM,i8**%e,align 8
%aP=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aQ=bitcast i8*%aM to i8**
store i8*%aP,i8**%aQ,align 8
%aR=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aS=getelementptr inbounds i8,i8*%aM,i64 8
%aT=bitcast i8*%aS to i8**
store i8*%aR,i8**%aT,align 8
%aU=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%aV=getelementptr inbounds i8,i8*%aM,i64 16
%aW=bitcast i8*%aV to i8**
store i8*%aU,i8**%aW,align 8
%aX=load i8*,i8**%h,align 8
%aY=getelementptr inbounds i8,i8*%aM,i64 24
%aZ=bitcast i8*%aY to i8**
store i8*%aX,i8**%aZ,align 8
%a0=getelementptr inbounds i8,i8*%aM,i64 32
%a1=bitcast i8*%a0 to i32*
store i32 15,i32*%a1,align 4
%a2=call i8*@sml_alloc(i32 inreg 20)#0
%a3=bitcast i8*%a2 to i32*
%a4=getelementptr inbounds i8,i8*%a2,i64 -4
%a5=bitcast i8*%a4 to i32*
store i32 1342177296,i32*%a5,align 4
call void@llvm.memset.p0i8.i32(i8*%a2,i8 0,i32 20,i1 false)
%a6=select i1%aL,i32 0,i32 1
store i32%a6,i32*%a3,align 4
%a7=load i8*,i8**%e,align 8
%a8=getelementptr inbounds i8,i8*%a2,i64 8
%a9=bitcast i8*%a8 to i8**
store i8*%a7,i8**%a9,align 8
%ba=getelementptr inbounds i8,i8*%a2,i64 16
%bb=bitcast i8*%ba to i32*
store i32 2,i32*%bb,align 4
%bc=load i8*,i8**%g,align 8
%bd=bitcast i8*%bc to i8**
call void@sml_write(i8*inreg%bc,i8**inreg%bd,i8*inreg%a2)#0
%be=load i8*,i8**%b,align 8
%bf=load i8*,i8**%h,align 8
%bg=bitcast i8*%be to i8**
call void@sml_write(i8*inreg%be,i8**inreg%bg,i8*inreg%bf)#0
ret i8*%a2
bh:
%bi=landingpad{i8*,i8*}
catch i8*null
%bj=extractvalue{i8*,i8*}%bi,1
%bk=bitcast i8*%bj to i8**
%bl=load i8*,i8**%bk,align 8
store i8*null,i8**%d,align 8
store i8*null,i8**%g,align 8
store i8*null,i8**%h,align 8
store i8*%bl,i8**%c,align 8
store i8*null,i8**%b,align 8
%bm=call i8*@sml_alloc(i32 inreg 28)#0
%bn=getelementptr inbounds i8,i8*%bm,i64 -4
%bo=bitcast i8*%bn to i32*
store i32 1342177304,i32*%bo,align 4
%bp=load i8*,i8**%f,align 8
%bq=bitcast i8*%bm to i8**
store i8*%bp,i8**%bq,align 8
%br=load i8*,i8**%e,align 8
%bs=getelementptr inbounds i8,i8*%bm,i64 8
%bt=bitcast i8*%bs to i8**
store i8*%br,i8**%bt,align 8
%bu=load i8*,i8**%c,align 8
%bv=getelementptr inbounds i8,i8*%bm,i64 16
%bw=bitcast i8*%bv to i8**
store i8*%bu,i8**%bw,align 8
%bx=getelementptr inbounds i8,i8*%bm,i64 24
%by=bitcast i8*%bx to i32*
store i32 7,i32*%by,align 4
%bz=tail call fastcc i8*@_SMLLN5BinIO8StreamIO8inputExnE_230(i8*inreg%bm)
unreachable
}
define internal fastcc i8*@_SMLLN5BinIO8StreamIO9getBufferE_240(i8*inreg%a,i8*inreg%b)#2 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**%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%h,label%j
h:
%i=bitcast i8*%a to i8***
br label%n
j:
call void@sml_check(i32 inreg%f)
%k=bitcast i8**%e to i8****
%l=load i8***,i8****%k,align 8
%m=load i8*,i8**%c,align 8
br label%n
n:
%o=phi i8*[%m,%j],[%b,%h]
%p=phi i8***[%l,%j],[%i,%h]
%q=load i8**,i8***%p,align 8
%r=load i8*,i8**%q,align 8
store i8*%r,i8**%d,align 8
%s=bitcast i8***%p to i8**
%t=load i8*,i8**%s,align 8
%u=getelementptr inbounds i8,i8*%t,i64 8
%v=bitcast i8*%u to i8**
%w=load i8*,i8**%v,align 8
store i8*%w,i8**%e,align 8
%x=getelementptr inbounds i8,i8*%o,i64 24
%y=bitcast i8*%x to i8***
%z=load i8**,i8***%y,align 8
%A=load i8*,i8**%z,align 8
%B=bitcast i8*%A to i32*
%C=load i32,i32*%B,align 4
switch i32%C,label%D[
i32 2,label%O
i32 3,label%E
]
D:
ret i8*%A
E:
store i8*null,i8**%d,align 8
store i8*null,i8**%e,align 8
%F=call i8*@sml_alloc(i32 inreg 20)#0
%G=getelementptr inbounds i8,i8*%F,i64 -4
%H=bitcast i8*%G to i32*
store i32 1342177296,i32*%H,align 4
%I=bitcast i8*%F to i64*
store i64 0,i64*%I,align 4
%J=load i8*,i8**%c,align 8
%K=getelementptr inbounds i8,i8*%F,i64 8
%L=bitcast i8*%K to i8**
store i8*%J,i8**%L,align 8
%M=getelementptr inbounds i8,i8*%F,i64 16
%N=bitcast i8*%M to i32*
store i32 2,i32*%N,align 4
ret i8*%F
O:
%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
%S=load i8*,i8**%d,align 8
%T=bitcast i8*%P to i8**
store i8*%S,i8**%T,align 8
%U=load i8*,i8**%e,align 8
%V=getelementptr inbounds i8,i8*%P,i64 8
%W=bitcast i8*%V to i8**
store i8*%U,i8**%W,align 8
%X=load i8*,i8**%c,align 8
%Y=getelementptr inbounds i8,i8*%P,i64 16
%Z=bitcast i8*%Y to i8**
store i8*%X,i8**%Z,align 8
%aa=getelementptr inbounds i8,i8*%P,i64 24
%ab=bitcast i8*%aa to i32*
store i32 7,i32*%ab,align 4
%ac=tail call fastcc i8*@_SMLLN5BinIO8StreamIO12extendStreamE_238(i8*inreg%P)
ret i8*%ac
}
define internal fastcc i8*@_SMLLN5BinIO8StreamIO9getBufferE_241(i8*inreg%a)unnamed_addr#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
store i8*%a,i8**%b,align 8
%d=call i8*@sml_alloc(i32 inreg 12)#0
%e=getelementptr inbounds i8,i8*%d,i64 -4
%f=bitcast i8*%e to i32*
store i32 1342177288,i32*%f,align 4
store i8*%d,i8**%c,align 8
%g=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%h=bitcast i8*%d to i8**
store i8*%g,i8**%h,align 8
%i=getelementptr inbounds i8,i8*%d,i64 8
%j=bitcast i8*%i to i32*
store i32 1,i32*%j,align 4
%k=call i8*@sml_alloc(i32 inreg 28)#0
%l=getelementptr inbounds i8,i8*%k,i64 -4
%m=bitcast i8*%l to i32*
store i32 1342177304,i32*%m,align 4
%n=load i8*,i8**%c,align 8
%o=bitcast i8*%k to i8**
store i8*%n,i8**%o,align 8
%p=getelementptr inbounds i8,i8*%k,i64 8
%q=bitcast i8*%p to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO8StreamIO9getBufferE_240 to void(...)*),void(...)**%q,align 8
%r=getelementptr inbounds i8,i8*%k,i64 16
%s=bitcast i8*%r to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO8StreamIO9getBufferE_240 to void(...)*),void(...)**%s,align 8
%t=getelementptr inbounds i8,i8*%k,i64 24
%u=bitcast i8*%t to i32*
store i32 -2147483647,i32*%u,align 4
ret i8*%k
}
define internal fastcc i8*@_SMLLN5BinIO8StreamIO9readChunkE_244(i8*inreg%a,i32 inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%c,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%f,label%h
f:
%g=bitcast i8*%a to i8***
br label%k
h:
call void@sml_check(i32 inreg%d)
%i=bitcast i8**%c to i8****
%j=load i8***,i8****%i,align 8
br label%k
k:
%l=phi i8***[%j,%h],[%g,%f]
%m=load i8**,i8***%l,align 8
%n=load i8*,i8**%m,align 8
%o=getelementptr inbounds i8,i8*%n,i64 16
%p=bitcast i8*%o to i8*(i8*,i8*)**
%q=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%p,align 8
%r=bitcast i8*%n to i8**
%s=load i8*,i8**%r,align 8
store i8*%s,i8**%c,align 8
%t=call i8*@sml_alloc(i32 inreg 4)#0
%u=bitcast i8*%t to i32*
%v=getelementptr inbounds i8,i8*%t,i64 -4
%w=bitcast i8*%v to i32*
store i32 4,i32*%w,align 4
store i32%b,i32*%u,align 4
%x=load i8*,i8**%c,align 8
%y=tail call fastcc i8*%q(i8*inreg%x,i8*inreg%t)
ret i8*%y
}
define internal fastcc i8*@_SMLLN5BinIO8StreamIO9readChunkE_249(i8*inreg%a,i32 inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%c,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%g,label%i
g:
%h=bitcast i8*%a to i8***
br label%m
i:
call void@sml_check(i32 inreg%e)
%j=bitcast i8**%c to i8****
%k=load i8***,i8****%j,align 8
%l=bitcast i8***%k to i8*
br label%m
m:
%n=phi i8*[%l,%i],[%a,%g]
%o=phi i8***[%k,%i],[%h,%g]
%p=load i8**,i8***%o,align 8
%q=load i8*,i8**%p,align 8
%r=getelementptr inbounds i8,i8*%q,i64 16
%s=bitcast i8*%r to i8*(i8*,i8*)**
%t=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%s,align 8
%u=bitcast i8*%q to i8**
%v=load i8*,i8**%u,align 8
store i8*%v,i8**%d,align 8
%w=getelementptr inbounds i8,i8*%n,i64 12
%x=bitcast i8*%w to i32*
%y=load i32,i32*%x,align 4
%z=call{i32,i1}@llvm.sadd.with.overflow.i32(i32%b,i32%y)#0
%A=extractvalue{i32,i1}%z,1
br i1%A,label%B,label%T
B:
store i8*null,i8**%d,align 8
%C=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%C,i8**%c,align 8
%D=call i8*@sml_alloc(i32 inreg 20)#0
%E=getelementptr inbounds i8,i8*%D,i64 -4
%F=bitcast i8*%E to i32*
store i32 1342177296,i32*%F,align 4
store i8*%D,i8**%d,align 8
%G=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%H=bitcast i8*%D to i8**
store i8*%G,i8**%H,align 8
%I=getelementptr inbounds i8,i8*%D,i64 8
%J=bitcast i8*%I to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@g,i64 0,i32 2,i64 0),i8**%J,align 8
%K=getelementptr inbounds i8,i8*%D,i64 16
%L=bitcast i8*%K to i32*
store i32 3,i32*%L,align 4
%M=call i8*@sml_alloc(i32 inreg 60)#0
%N=getelementptr inbounds i8,i8*%M,i64 -4
%O=bitcast i8*%N to i32*
store i32 1342177336,i32*%O,align 4
%P=getelementptr inbounds i8,i8*%M,i64 56
%Q=bitcast i8*%P to i32*
store i32 1,i32*%Q,align 4
%R=load i8*,i8**%d,align 8
%S=bitcast i8*%M to i8**
store i8*%R,i8**%S,align 8
call void@sml_raise(i8*inreg%M)#1
unreachable
T:
%U=add nsw i32%y,%b
%V=getelementptr inbounds i8,i8*%n,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%aA,label%Z
Z:
%aa=xor i32%U,-2147483648
%ab=add i32%X,1
%ac=or i32%ab,%aa
%ad=icmp eq i32%ac,0
br i1%ad,label%ai,label%ae
ae:
%af=sdiv i32%U,%X
%ag=call{i32,i1}@llvm.smul.with.overflow.i32(i32%af,i32%X)#0
%ah=extractvalue{i32,i1}%ag,1
br i1%ah,label%aS,label%ba
ai:
store i8*null,i8**%d,align 8
%aj=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%aj,i8**%c,align 8
%ak=call i8*@sml_alloc(i32 inreg 20)#0
%al=getelementptr inbounds i8,i8*%ak,i64 -4
%am=bitcast i8*%al to i32*
store i32 1342177296,i32*%am,align 4
store i8*%ak,i8**%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 i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@h,i64 0,i32 2,i64 0),i8**%aq,align 8
%ar=getelementptr inbounds i8,i8*%ak,i64 16
%as=bitcast i8*%ar to i32*
store i32 3,i32*%as,align 4
%at=call i8*@sml_alloc(i32 inreg 60)#0
%au=getelementptr inbounds i8,i8*%at,i64 -4
%av=bitcast i8*%au to i32*
store i32 1342177336,i32*%av,align 4
%aw=getelementptr inbounds i8,i8*%at,i64 56
%ax=bitcast i8*%aw to i32*
store i32 1,i32*%ax,align 4
%ay=load i8*,i8**%d,align 8
%az=bitcast i8*%at to i8**
store i8*%ay,i8**%az,align 8
call void@sml_raise(i8*inreg%at)#1
unreachable
aA:
store i8*null,i8**%d,align 8
%aB=load i8*,i8**@_SMLZ3Div,align 8
store i8*%aB,i8**%c,align 8
%aC=call i8*@sml_alloc(i32 inreg 20)#0
%aD=getelementptr inbounds i8,i8*%aC,i64 -4
%aE=bitcast i8*%aD to i32*
store i32 1342177296,i32*%aE,align 4
store i8*%aC,i8**%d,align 8
%aF=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aG=bitcast i8*%aC to i8**
store i8*%aF,i8**%aG,align 8
%aH=getelementptr inbounds i8,i8*%aC,i64 8
%aI=bitcast i8*%aH to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@h,i64 0,i32 2,i64 0),i8**%aI,align 8
%aJ=getelementptr inbounds i8,i8*%aC,i64 16
%aK=bitcast i8*%aJ to i32*
store i32 3,i32*%aK,align 4
%aL=call i8*@sml_alloc(i32 inreg 60)#0
%aM=getelementptr inbounds i8,i8*%aL,i64 -4
%aN=bitcast i8*%aM to i32*
store i32 1342177336,i32*%aN,align 4
%aO=getelementptr inbounds i8,i8*%aL,i64 56
%aP=bitcast i8*%aO to i32*
store i32 1,i32*%aP,align 4
%aQ=load i8*,i8**%d,align 8
%aR=bitcast i8*%aL to i8**
store i8*%aQ,i8**%aR,align 8
call void@sml_raise(i8*inreg%aL)#1
unreachable
aS:
store i8*null,i8**%d,align 8
%aT=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%aT,i8**%c,align 8
%aU=call i8*@sml_alloc(i32 inreg 20)#0
%aV=getelementptr inbounds i8,i8*%aU,i64 -4
%aW=bitcast i8*%aV to i32*
store i32 1342177296,i32*%aW,align 4
store i8*%aU,i8**%d,align 8
%aX=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aY=bitcast i8*%aU to i8**
store i8*%aX,i8**%aY,align 8
%aZ=getelementptr inbounds i8,i8*%aU,i64 8
%a0=bitcast i8*%aZ to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@i,i64 0,i32 2,i64 0),i8**%a0,align 8
%a1=getelementptr inbounds i8,i8*%aU,i64 16
%a2=bitcast i8*%a1 to i32*
store i32 3,i32*%a2,align 4
%a3=call i8*@sml_alloc(i32 inreg 60)#0
%a4=getelementptr inbounds i8,i8*%a3,i64 -4
%a5=bitcast i8*%a4 to i32*
store i32 1342177336,i32*%a5,align 4
%a6=getelementptr inbounds i8,i8*%a3,i64 56
%a7=bitcast i8*%a6 to i32*
store i32 1,i32*%a7,align 4
%a8=load i8*,i8**%d,align 8
%a9=bitcast i8*%a3 to i8**
store i8*%a8,i8**%a9,align 8
call void@sml_raise(i8*inreg%a3)#1
unreachable
ba:
store i8*null,i8**%c,align 8
%bb=mul nsw i32%af,%X
%bc=call i8*@sml_alloc(i32 inreg 4)#0
%bd=bitcast i8*%bc to i32*
%be=getelementptr inbounds i8,i8*%bc,i64 -4
%bf=bitcast i8*%be to i32*
store i32 4,i32*%bf,align 4
store i32%bb,i32*%bd,align 4
%bg=load i8*,i8**%d,align 8
%bh=tail call fastcc i8*%t(i8*inreg%bg,i8*inreg%bc)
ret i8*%bh
}
define internal fastcc i8*@_SMLL3get_252(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
h:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%e,align 8
br label%f
f:
%g=phi i8*[%bw,%bs],[%b,%h]
store i8*%g,i8**%c,align 8
%i=load atomic i32,i32*@sml_check_flag unordered,align 4
%j=icmp eq i32%i,0
br i1%j,label%m,label%k
k:
call void@sml_check(i32 inreg%i)
%l=load i8*,i8**%c,align 8
br label%m
m:
%n=phi i8*[%l,%k],[%g,%f]
%o=bitcast i8*%n to i8**
%p=load i8*,i8**%o,align 8
store i8*%p,i8**%d,align 8
%q=getelementptr inbounds i8,i8*%p,i64 8
%r=bitcast i8*%q to i8**
%s=load i8*,i8**%r,align 8
store i8*%s,i8**%c,align 8
%t=getelementptr inbounds i8,i8*%n,i64 8
%u=bitcast i8*%t to i32*
%v=load i32,i32*%u,align 4
%w=call fastcc i32@_SMLFN11Word8Vector6lengthE(i8*inreg%s)
%x=icmp slt i32%v,%w
br i1%x,label%y,label%ar
y:
%z=bitcast i8**%e to i8***
%A=load i8**,i8***%z,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=call i8*@sml_alloc(i32 inreg 28)#0
%I=getelementptr inbounds i8,i8*%H,i64 -4
%J=bitcast i8*%I to i32*
store i32 1342177304,i32*%J,align 4
%K=getelementptr inbounds i8,i8*%H,i64 12
%L=bitcast i8*%K to i32*
store i32 0,i32*%L,align 1
%M=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%N=bitcast i8*%H to i8**
store i8*%M,i8**%N,align 8
%O=getelementptr inbounds i8,i8*%H,i64 8
%P=bitcast i8*%O to i32*
store i32%v,i32*%P,align 4
%Q=getelementptr inbounds i8,i8*%H,i64 16
%R=bitcast i8*%Q to i8**
store i8*null,i8**%R,align 8
%S=getelementptr inbounds i8,i8*%H,i64 24
%T=bitcast i8*%S to i32*
store i32 5,i32*%T,align 4
%U=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%V=call fastcc i8*%E(i8*inreg%U,i8*inreg%H)
store i8*%V,i8**%c,align 8
%W=call i8*@sml_alloc(i32 inreg 20)#0
%X=getelementptr inbounds i8,i8*%W,i64 -4
%Y=bitcast i8*%X to i32*
store i32 1342177296,i32*%Y,align 4
store i8*%W,i8**%e,align 8
%Z=getelementptr inbounds i8,i8*%W,i64 12
%aa=bitcast i8*%Z to i32*
store i32 0,i32*%aa,align 1
%ab=load i8*,i8**%d,align 8
%ac=bitcast i8*%W to i8**
store i8*null,i8**%d,align 8
store i8*%ab,i8**%ac,align 8
%ad=getelementptr inbounds i8,i8*%W,i64 8
%ae=bitcast i8*%ad to i32*
store i32%w,i32*%ae,align 4
%af=getelementptr inbounds i8,i8*%W,i64 16
%ag=bitcast i8*%af to i32*
store i32 1,i32*%ag,align 4
%ah=call i8*@sml_alloc(i32 inreg 20)#0
%ai=getelementptr inbounds i8,i8*%ah,i64 -4
%aj=bitcast i8*%ai to i32*
store i32 1342177296,i32*%aj,align 4
%ak=load i8*,i8**%c,align 8
%al=bitcast i8*%ah to i8**
store i8*%ak,i8**%al,align 8
%am=load i8*,i8**%e,align 8
%an=getelementptr inbounds i8,i8*%ah,i64 8
%ao=bitcast i8*%an to i8**
store i8*%am,i8**%ao,align 8
%ap=getelementptr inbounds i8,i8*%ah,i64 16
%aq=bitcast i8*%ap to i32*
store i32 3,i32*%aq,align 4
ret i8*%ah
ar:
store i8*null,i8**%c,align 8
%as=load i8*,i8**%e,align 8
%at=getelementptr inbounds i8,i8*%as,i64 16
%au=bitcast i8*%at to i8**
%av=load i8*,i8**%au,align 8
%aw=getelementptr inbounds i8,i8*%av,i64 16
%ax=bitcast i8*%aw to i8*(i8*,i8*)**
%ay=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%ax,align 8
%az=bitcast i8*%av to i8**
%aA=load i8*,i8**%az,align 8
%aB=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aC=call fastcc i8*%ay(i8*inreg%aA,i8*inreg%aB)
%aD=bitcast i8*%aC to i32*
%aE=load i32,i32*%aD,align 4
switch i32%aE,label%aF[
i32 1,label%bs
i32 0,label%aZ
]
aF:
store i8*null,i8**%e,align 8
%aG=load i8*,i8**@_SMLZ4Fail,align 8
store i8*%aG,i8**%c,align 8
%aH=call i8*@sml_alloc(i32 inreg 28)#0
%aI=getelementptr inbounds i8,i8*%aH,i64 -4
%aJ=bitcast i8*%aI to i32*
store i32 1342177304,i32*%aJ,align 4
store i8*%aH,i8**%d,align 8
%aK=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aL=bitcast i8*%aH to i8**
store i8*%aK,i8**%aL,align 8
%aM=getelementptr inbounds i8,i8*%aH,i64 8
%aN=bitcast i8*%aM to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@j,i64 0,i32 2,i64 0),i8**%aN,align 8
%aO=getelementptr inbounds i8,i8*%aH,i64 16
%aP=bitcast i8*%aO to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[13x i8]}>,<{[4x i8],i32,[13x i8]}>*@k,i64 0,i32 2,i64 0),i8**%aP,align 8
%aQ=getelementptr inbounds i8,i8*%aH,i64 24
%aR=bitcast i8*%aQ to i32*
store i32 7,i32*%aR,align 4
%aS=call i8*@sml_alloc(i32 inreg 60)#0
%aT=getelementptr inbounds i8,i8*%aS,i64 -4
%aU=bitcast i8*%aT to i32*
store i32 1342177336,i32*%aU,align 4
%aV=getelementptr inbounds i8,i8*%aS,i64 56
%aW=bitcast i8*%aV to i32*
store i32 1,i32*%aW,align 4
%aX=load i8*,i8**%d,align 8
%aY=bitcast i8*%aS to i8**
store i8*%aX,i8**%aY,align 8
call void@sml_raise(i8*inreg%aS)#1
unreachable
aZ:
%a0=getelementptr inbounds i8,i8*%aC,i64 8
%a1=bitcast i8*%a0 to i8**
%a2=load i8*,i8**%a1,align 8
store i8*%a2,i8**%c,align 8
%a3=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%a4=getelementptr inbounds i8,i8*%a3,i64 8
%a5=bitcast i8*%a4 to i8**
%a6=load i8*,i8**%a5,align 8
store i8*%a6,i8**%d,align 8
%a7=call i8*@sml_alloc(i32 inreg 20)#0
%a8=getelementptr inbounds i8,i8*%a7,i64 -4
%a9=bitcast i8*%a8 to i32*
store i32 1342177296,i32*%a9,align 4
store i8*%a7,i8**%e,align 8
%ba=getelementptr inbounds i8,i8*%a7,i64 12
%bb=bitcast i8*%ba to i32*
store i32 0,i32*%bb,align 1
%bc=load i8*,i8**%c,align 8
%bd=bitcast i8*%a7 to i8**
store i8*null,i8**%c,align 8
store i8*%bc,i8**%bd,align 8
%be=getelementptr inbounds i8,i8*%a7,i64 8
%bf=bitcast i8*%be to i32*
store i32 0,i32*%bf,align 4
%bg=getelementptr inbounds i8,i8*%a7,i64 16
%bh=bitcast i8*%bg to i32*
store i32 1,i32*%bh,align 4
%bi=call i8*@sml_alloc(i32 inreg 20)#0
%bj=getelementptr inbounds i8,i8*%bi,i64 -4
%bk=bitcast i8*%bj to i32*
store i32 1342177296,i32*%bk,align 4
%bl=load i8*,i8**%d,align 8
%bm=bitcast i8*%bi to i8**
store i8*%bl,i8**%bm,align 8
%bn=load i8*,i8**%e,align 8
%bo=getelementptr inbounds i8,i8*%bi,i64 8
%bp=bitcast i8*%bo to i8**
store i8*%bn,i8**%bp,align 8
%bq=getelementptr inbounds i8,i8*%bi,i64 16
%br=bitcast i8*%bq to i32*
store i32 3,i32*%br,align 4
ret i8*%bi
bs:
%bt=getelementptr inbounds i8,i8*%aC,i64 8
%bu=bitcast i8*%bt to i8**
%bv=load i8*,i8**%bu,align 8
store i8*%bv,i8**%c,align 8
%bw=call i8*@sml_alloc(i32 inreg 20)#0
%bx=getelementptr inbounds i8,i8*%bw,i64 -4
%by=bitcast i8*%bx to i32*
store i32 1342177296,i32*%by,align 4
%bz=getelementptr inbounds i8,i8*%bw,i64 12
%bA=bitcast i8*%bz to i32*
store i32 0,i32*%bA,align 1
%bB=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bC=bitcast i8*%bw to i8**
store i8*%bB,i8**%bC,align 8
%bD=getelementptr inbounds i8,i8*%bw,i64 8
%bE=bitcast i8*%bD to i32*
store i32 0,i32*%bE,align 4
%bF=getelementptr inbounds i8,i8*%bw,i64 16
%bG=bitcast i8*%bF to i32*
store i32 1,i32*%bG,align 4
br label%f
}
define internal fastcc i8*@_SMLLN5BinIO8StreamIO16generalizedInputE_255(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%c,align 8
store i8*%b,i8**%d,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%g,label%i
g:
%h=bitcast i8*%a to i8**
br label%m
i:
call void@sml_check(i32 inreg%e)
%j=load i8*,i8**%d,align 8
%k=bitcast i8**%c to i8***
%l=load i8**,i8***%k,align 8
br label%m
m:
%n=phi i8**[%l,%i],[%h,%g]
%o=phi i8*[%j,%i],[%b,%g]
%p=load i8*,i8**%n,align 8
%q=tail call fastcc i8*@_SMLL3get_252(i8*inreg%p,i8*inreg%o)
ret i8*%q
}
define internal fastcc i8*@_SMLLN5BinIO8StreamIO16generalizedInputE_256(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%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*%b,i8**%c,align 8
%g=bitcast i8*%a to i8**
%h=load i8*,i8**%g,align 8
store i8*%h,i8**%d,align 8
%i=getelementptr inbounds i8,i8*%a,i64 8
%j=bitcast i8*%i to i8**
%k=load i8*,i8**%j,align 8
store i8*%k,i8**%e,align 8
%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
store i8*%l,i8**%f,align 8
%o=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%p=bitcast i8*%l to i8**
store i8*%o,i8**%p,align 8
%q=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%r=getelementptr inbounds i8,i8*%l,i64 8
%s=bitcast i8*%r to i8**
store i8*%q,i8**%s,align 8
%t=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%u=getelementptr inbounds i8,i8*%l,i64 16
%v=bitcast i8*%u to i8**
store i8*%t,i8**%v,align 8
%w=getelementptr inbounds i8,i8*%l,i64 24
%x=bitcast i8*%w to i32*
store i32 7,i32*%x,align 4
%y=call i8*@sml_alloc(i32 inreg 28)#0
%z=getelementptr inbounds i8,i8*%y,i64 -4
%A=bitcast i8*%z to i32*
store i32 1342177304,i32*%A,align 4
%B=load i8*,i8**%f,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 void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL3get_252 to void(...)*),void(...)**%E,align 8
%F=getelementptr inbounds i8,i8*%y,i64 16
%G=bitcast i8*%F to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL3get_252 to void(...)*),void(...)**%G,align 8
%H=getelementptr inbounds i8,i8*%y,i64 24
%I=bitcast i8*%H to i32*
store i32 -2147483647,i32*%I,align 4
%J=call i8*@sml_alloc(i32 inreg 12)#0
%K=getelementptr inbounds i8,i8*%J,i64 -4
%L=bitcast i8*%K to i32*
store i32 1342177288,i32*%L,align 4
store i8*%J,i8**%c,align 8
%M=load i8*,i8**%f,align 8
store i8*null,i8**%f,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 1,i32*%P,align 4
%Q=call i8*@sml_alloc(i32 inreg 28)#0
%R=getelementptr inbounds i8,i8*%Q,i64 -4
%S=bitcast i8*%R to i32*
store i32 1342177304,i32*%S,align 4
%T=load i8*,i8**%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 void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO8StreamIO16generalizedInputE_255 to void(...)*),void(...)**%W,align 8
%X=getelementptr inbounds i8,i8*%Q,i64 16
%Y=bitcast i8*%X to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO8StreamIO16generalizedInputE_255 to void(...)*),void(...)**%Y,align 8
%Z=getelementptr inbounds i8,i8*%Q,i64 24
%aa=bitcast i8*%Z to i32*
store i32 -2147483647,i32*%aa,align 4
ret i8*%Q
}
define internal fastcc void@_SMLLN5BinIO8StreamIO9terminateE_259(i8*inreg%a)unnamed_addr#2 gc"smlsharp"{
j:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%b,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%h,label%f
f:
call void@sml_check(i32 inreg%d)
%g=load i8*,i8**%b,align 8
br label%h
h:
%i=phi i8*[%g,%f],[%a,%j]
%k=getelementptr inbounds i8,i8*%i,i64 48
%l=bitcast i8*%k to i8***
%m=load i8**,i8***%l,align 8
%n=load i8*,i8**%m,align 8
store i8*%n,i8**%b,align 8
%o=bitcast i8*%n to i32**
%p=load i32*,i32**%o,align 8
%q=load i32,i32*%p,align 4
switch i32%q,label%r[
i32 2,label%K
i32 3,label%J
]
r:
%s=load i8*,i8**@_SMLZ5Match,align 8
store i8*%s,i8**%b,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**%c,align 8
%w=load i8*,i8**%b,align 8
store i8*null,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 i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@m,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**%c,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:
ret void
K:
%L=bitcast i8*%i to i8**
%M=load i8*,i8**%L,align 8
call fastcc void@_SMLFN18SMLSharp__OSProcess12cancelAtExitE(i8*inreg%M)
%N=load i8*,i8**%b,align 8
%O=bitcast i8*%N to i8**
call void@sml_write(i8*inreg%N,i8**inreg%O,i8*inreg bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@l,i64 0,i32 2)to i8*))#0
ret void
}
define internal fastcc i8*@_SMLLN5BinIO8StreamIO5inputE_262(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%d,align 8
store i8*%b,i8**%c,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%h,label%k
h:
%i=bitcast i8*%b to i8**
%j=bitcast i8*%a to i8**
br label%p
k:
call void@sml_check(i32 inreg%f)
%l=bitcast i8**%d to i8***
%m=load i8**,i8***%l,align 8
%n=bitcast i8**%c to i8***
%o=load i8**,i8***%n,align 8
br label%p
p:
%q=phi i8**[%o,%k],[%i,%h]
%r=phi i8**[%m,%k],[%j,%h]
store i8*null,i8**%d,align 8
%s=load i8*,i8**%r,align 8
store i8*%s,i8**%e,align 8
%t=load i8*,i8**%q,align 8
%u=getelementptr inbounds i8,i8*%t,i64 16
%v=bitcast i8*%u to i8**
%w=load i8*,i8**%v,align 8
%x=getelementptr inbounds i8,i8*%w,i64 24
%y=bitcast i8*%x to i8**
%z=load i8*,i8**%y,align 8
store i8*%z,i8**%d,align 8
%A=call i8*@sml_alloc(i32 inreg 20)#0
%B=getelementptr inbounds i8,i8*%A,i64 -4
%C=bitcast i8*%B to i32*
store i32 1342177296,i32*%C,align 4
%D=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%E=bitcast i8*%A to i8**
store i8*%D,i8**%E,align 8
%F=getelementptr inbounds i8,i8*%A,i64 8
%G=bitcast i8*%F to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[6x i8]}>,<{[4x i8],i32,[6x i8]}>*@n,i64 0,i32 2,i64 0),i8**%G,align 8
%H=getelementptr inbounds i8,i8*%A,i64 16
%I=bitcast i8*%H to i32*
store i32 3,i32*%I,align 4
%J=call fastcc i8*@_SMLLN5BinIO8StreamIO9getBufferE_241(i8*inreg%A)
%K=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%L=call fastcc i8*@_SMLLN5BinIO8StreamIO16generalizedInputE_256(i8*inreg%K,i8*inreg%J)
%M=getelementptr inbounds i8,i8*%L,i64 16
%N=bitcast i8*%M to i8*(i8*,i8*)**
%O=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%N,align 8
%P=bitcast i8*%L to i8**
%Q=load i8*,i8**%P,align 8
%R=load i8*,i8**%c,align 8
%S=tail call fastcc i8*%O(i8*inreg%Q,i8*inreg%R)
ret i8*%S
}
define internal fastcc i8*@_SMLLN5BinIO8StreamIO6input1E_263(i8*inreg%a)unnamed_addr#2 gc"smlsharp"{
h:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
br label%f
f:
%g=phi i8*[%bz,%by],[%a,%h]
store i8*%g,i8**%b,align 8
%i=load atomic i32,i32*@sml_check_flag unordered,align 4
%j=icmp eq i32%i,0
br i1%j,label%m,label%k
k:
call void@sml_check(i32 inreg%i)
%l=load i8*,i8**%b,align 8
br label%m
m:
%n=phi i8*[%l,%k],[%g,%f]
%o=bitcast i8*%n to i8**
%p=load i8*,i8**%o,align 8
store i8*%p,i8**%d,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*%p,i64 8
%u=bitcast i8*%t to i8**
%v=load i8*,i8**%u,align 8
store i8*%v,i8**%b,align 8
%w=getelementptr inbounds i8,i8*%p,i64 24
%x=bitcast i8*%w to i8**
%y=load i8*,i8**%x,align 8
store i8*%y,i8**%e,align 8
%z=call i8*@sml_alloc(i32 inreg 20)#0
%A=getelementptr inbounds i8,i8*%z,i64 -4
%B=bitcast i8*%A to i32*
store i32 1342177296,i32*%B,align 4
store i8*%z,i8**%c,align 8
%C=load i8*,i8**%b,align 8
%D=bitcast i8*%z to i8**
store i8*%C,i8**%D,align 8
%E=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%F=getelementptr inbounds i8,i8*%z,i64 8
%G=bitcast i8*%F to i8**
store i8*%E,i8**%G,align 8
%H=getelementptr inbounds i8,i8*%z,i64 16
%I=bitcast i8*%H to i32*
store i32 3,i32*%I,align 4
%J=call fastcc i32@_SMLFN11Word8Vector6lengthE(i8*inreg%C)
%K=icmp slt i32%s,%J
br i1%K,label%L,label%aA
L:
store i8*null,i8**%c,align 8
%M=call i8*@sml_alloc(i32 inreg 20)#0
%N=getelementptr inbounds i8,i8*%M,i64 -4
%O=bitcast i8*%N to i32*
store i32 1342177296,i32*%O,align 4
%P=getelementptr inbounds i8,i8*%M,i64 12
%Q=bitcast i8*%P to i32*
store i32 0,i32*%Q,align 1
%R=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%S=bitcast i8*%M to i8**
store i8*%R,i8**%S,align 8
%T=getelementptr inbounds i8,i8*%M,i64 8
%U=bitcast i8*%T to i32*
store i32%s,i32*%U,align 4
%V=getelementptr inbounds i8,i8*%M,i64 16
%W=bitcast i8*%V to i32*
store i32 1,i32*%W,align 4
%X=call fastcc i8@_SMLFN11Word8Vector3subE(i8*inreg%M)
%Y=add nsw i32%s,1
%Z=call i8*@sml_alloc(i32 inreg 20)#0
%aa=getelementptr inbounds i8,i8*%Z,i64 -4
%ab=bitcast i8*%aa to i32*
store i32 1342177296,i32*%ab,align 4
store i8*%Z,i8**%c,align 8
%ac=getelementptr inbounds i8,i8*%Z,i64 12
%ad=bitcast i8*%ac to i32*
store i32 0,i32*%ad,align 1
%ae=load i8*,i8**%d,align 8
%af=bitcast i8*%Z to i8**
store i8*null,i8**%d,align 8
store i8*%ae,i8**%af,align 8
%ag=getelementptr inbounds i8,i8*%Z,i64 8
%ah=bitcast i8*%ag to i32*
store i32%Y,i32*%ah,align 4
%ai=getelementptr inbounds i8,i8*%Z,i64 16
%aj=bitcast i8*%ai to i32*
store i32 1,i32*%aj,align 4
%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**%b,align 8
%an=getelementptr inbounds i8,i8*%ak,i64 1
call void@llvm.memset.p0i8.i32(i8*%an,i8 0,i32 7,i1 false)
store i8%X,i8*%ak,align 1
%ao=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ap=getelementptr inbounds i8,i8*%ak,i64 8
%aq=bitcast i8*%ap to i8**
store i8*%ao,i8**%aq,align 8
%ar=getelementptr inbounds i8,i8*%ak,i64 16
%as=bitcast i8*%ar to i32*
store i32 2,i32*%as,align 4
%at=call i8*@sml_alloc(i32 inreg 12)#0
%au=getelementptr inbounds i8,i8*%at,i64 -4
%av=bitcast i8*%au to i32*
store i32 1342177288,i32*%av,align 4
%aw=load i8*,i8**%b,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 i32*
store i32 1,i32*%az,align 4
ret i8*%at
aA:
%aB=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aC=getelementptr inbounds i8,i8*%aB,i64 8
%aD=bitcast i8*%aC to i8***
%aE=load i8**,i8***%aD,align 8
%aF=load i8*,i8**%aE,align 8
%aG=bitcast i8*%aF to i32*
%aH=load i32,i32*%aG,align 4
switch i32%aH,label%aI[
i32 1,label%bG
i32 0,label%a0
i32 2,label%a1
i32 3,label%a0
]
aI:
store i8*null,i8**%d,align 8
call void@sml_matchcomp_bug()
%aJ=load i8*,i8**@_SMLZ5Match,align 8
store i8*%aJ,i8**%b,align 8
%aK=call i8*@sml_alloc(i32 inreg 20)#0
%aL=getelementptr inbounds i8,i8*%aK,i64 -4
%aM=bitcast i8*%aL to i32*
store i32 1342177296,i32*%aM,align 4
store i8*%aK,i8**%c,align 8
%aN=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aO=bitcast i8*%aK to i8**
store i8*%aN,i8**%aO,align 8
%aP=getelementptr inbounds i8,i8*%aK,i64 8
%aQ=bitcast i8*%aP to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@p,i64 0,i32 2,i64 0),i8**%aQ,align 8
%aR=getelementptr inbounds i8,i8*%aK,i64 16
%aS=bitcast i8*%aR to i32*
store i32 3,i32*%aS,align 4
%aT=call i8*@sml_alloc(i32 inreg 60)#0
%aU=getelementptr inbounds i8,i8*%aT,i64 -4
%aV=bitcast i8*%aU to i32*
store i32 1342177336,i32*%aV,align 4
%aW=getelementptr inbounds i8,i8*%aT,i64 56
%aX=bitcast i8*%aW to i32*
store i32 1,i32*%aX,align 4
%aY=load i8*,i8**%c,align 8
%aZ=bitcast i8*%aT to i8**
store i8*%aY,i8**%aZ,align 8
call void@sml_raise(i8*inreg%aT)#1
unreachable
a0:
ret i8*null
a1:
%a2=load i8*,i8**%d,align 8
%a3=getelementptr inbounds i8,i8*%a2,i64 16
%a4=bitcast i8*%a3 to i8**
%a5=load i8*,i8**%a4,align 8
%a6=getelementptr inbounds i8,i8*%a5,i64 24
%a7=bitcast i8*%a6 to i8**
%a8=load i8*,i8**%a7,align 8
store i8*%a8,i8**%b,align 8
%a9=call i8*@sml_alloc(i32 inreg 28)#0
%ba=getelementptr inbounds i8,i8*%a9,i64 -4
%bb=bitcast i8*%ba to i32*
store i32 1342177304,i32*%bb,align 4
%bc=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%bd=bitcast i8*%a9 to i8**
store i8*%bc,i8**%bd,align 8
%be=getelementptr inbounds i8,i8*%a9,i64 8
%bf=bitcast i8*%be to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[7x i8]}>,<{[4x i8],i32,[7x i8]}>*@o,i64 0,i32 2,i64 0),i8**%bf,align 8
%bg=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%bh=getelementptr inbounds i8,i8*%a9,i64 16
%bi=bitcast i8*%bh to i8**
store i8*%bg,i8**%bi,align 8
%bj=getelementptr inbounds i8,i8*%a9,i64 24
%bk=bitcast i8*%bj to i32*
store i32 7,i32*%bk,align 4
%bl=call fastcc i8*@_SMLLN5BinIO8StreamIO12extendStreamE_238(i8*inreg%a9)
%bm=bitcast i8*%bl to i32*
%bn=load i32,i32*%bm,align 4
%bo=icmp eq i32%bn,1
br i1%bo,label%bp,label%a0
bp:
%bq=getelementptr inbounds i8,i8*%bl,i64 8
%br=bitcast i8*%bq to i8**
%bs=load i8*,i8**%br,align 8
store i8*%bs,i8**%b,align 8
%bt=call i8*@sml_alloc(i32 inreg 20)#0
%bu=getelementptr inbounds i8,i8*%bt,i64 -4
%bv=bitcast i8*%bu to i32*
store i32 1342177296,i32*%bv,align 4
%bw=getelementptr inbounds i8,i8*%bt,i64 12
%bx=bitcast i8*%bw to i32*
store i32 0,i32*%bx,align 1
br label%by
by:
%bz=phi i8*[%bt,%bp],[%bK,%bG]
%bA=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%bB=bitcast i8*%bz to i8**
store i8*%bA,i8**%bB,align 8
%bC=getelementptr inbounds i8,i8*%bz,i64 8
%bD=bitcast i8*%bC to i32*
store i32 0,i32*%bD,align 4
%bE=getelementptr inbounds i8,i8*%bz,i64 16
%bF=bitcast i8*%bE to i32*
store i32 1,i32*%bF,align 4
br label%f
bG:
store i8*null,i8**%d,align 8
%bH=getelementptr inbounds i8,i8*%aF,i64 8
%bI=bitcast i8*%bH to i8**
%bJ=load i8*,i8**%bI,align 8
store i8*%bJ,i8**%b,align 8
%bK=call i8*@sml_alloc(i32 inreg 20)#0
%bL=getelementptr inbounds i8,i8*%bK,i64 -4
%bM=bitcast i8*%bL to i32*
store i32 1342177296,i32*%bM,align 4
%bN=getelementptr inbounds i8,i8*%bK,i64 12
%bO=bitcast i8*%bN to i32*
store i32 0,i32*%bO,align 1
br label%by
}
define internal fastcc i8*@_SMLL9inputList_273(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
q:
%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
%i=alloca i8*,align 8
%j=alloca i8*,align 8
call void@llvm.gcroot(i8**%g,i8*null)#0
call void@llvm.gcroot(i8**%h,i8*null)#0
call void@llvm.gcroot(i8**%i,i8*null)#0
call void@llvm.gcroot(i8**%j,i8*null)#0
store i8*%a,i8**%h,align 8
store i8*%b,i8**%g,align 8
%k=load atomic i32,i32*@sml_check_flag unordered,align 4
%l=icmp eq i32%k,0
br i1%l,label%o,label%m
m:
call void@sml_check(i32 inreg%k)
%n=load i8*,i8**%g,align 8
br label%o
o:
%p=phi i8*[%n,%m],[%b,%q]
%r=bitcast i8*%p to i8**
%s=load i8*,i8**%r,align 8
store i8*%s,i8**%i,align 8
%t=getelementptr inbounds i8,i8*%s,i64 8
%u=bitcast i8*%t to i8**
%v=load i8*,i8**%u,align 8
store i8*%v,i8**%g,align 8
%w=getelementptr inbounds i8,i8*%p,i64 8
%x=bitcast i8*%w to i32*
%y=load i32,i32*%x,align 4
%z=getelementptr inbounds i8,i8*%p,i64 12
%A=bitcast i8*%z to i32*
%B=load i32,i32*%A,align 4
%C=call fastcc i32@_SMLFN11Word8Vector6lengthE(i8*inreg%v)
%D=call{i32,i1}@llvm.ssub.with.overflow.i32(i32%C,i32%y)#0
%E=extractvalue{i32,i1}%D,1
br i1%E,label%F,label%X
F:
store i8*null,i8**%i,align 8
store i8*null,i8**%h,align 8
%G=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%G,i8**%g,align 8
%H=call i8*@sml_alloc(i32 inreg 20)#0
%I=getelementptr inbounds i8,i8*%H,i64 -4
%J=bitcast i8*%I to i32*
store i32 1342177296,i32*%J,align 4
store i8*%H,i8**%h,align 8
%K=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%L=bitcast i8*%H to i8**
store i8*%K,i8**%L,align 8
%M=getelementptr inbounds i8,i8*%H,i64 8
%N=bitcast i8*%M to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@q,i64 0,i32 2,i64 0),i8**%N,align 8
%O=getelementptr inbounds i8,i8*%H,i64 16
%P=bitcast i8*%O to i32*
store i32 3,i32*%P,align 4
%Q=call i8*@sml_alloc(i32 inreg 60)#0
%R=getelementptr inbounds i8,i8*%Q,i64 -4
%S=bitcast i8*%R to i32*
store i32 1342177336,i32*%S,align 4
%T=getelementptr inbounds i8,i8*%Q,i64 56
%U=bitcast i8*%T to i32*
store i32 1,i32*%U,align 4
%V=load i8*,i8**%h,align 8
%W=bitcast i8*%Q to i8**
store i8*%V,i8**%W,align 8
call void@sml_raise(i8*inreg%Q)#1
unreachable
X:
%Y=sub nsw i32%C,%y
%Z=icmp sgt i32%B,%Y
%aa=bitcast i8**%h to i8***
%ab=load i8**,i8***%aa,align 8
%ac=load i8*,i8**%ab,align 8
%ad=getelementptr inbounds i8,i8*%ac,i64 16
%ae=bitcast i8*%ad to void(...)**
%af=load void(...)*,void(...)**%ae,align 8
%ag=bitcast i8*%ac to i8**
%ah=load i8*,i8**%ag,align 8
br i1%Z,label%bI,label%ai
ai:
store i8*%ah,i8**%h,align 8
%aj=call i8*@sml_alloc(i32 inreg 12)#0
%ak=getelementptr inbounds i8,i8*%aj,i64 -4
%al=bitcast i8*%ak to i32*
store i32 1342177288,i32*%al,align 4
store i8*%aj,i8**%j,align 8
%am=getelementptr inbounds i8,i8*%aj,i64 4
%an=bitcast i8*%am to i32*
store i32 0,i32*%an,align 1
%ao=bitcast i8*%aj to i32*
store i32%B,i32*%ao,align 4
%ap=getelementptr inbounds i8,i8*%aj,i64 8
%aq=bitcast i8*%ap to i32*
store i32 0,i32*%aq,align 4
%ar=call i8*@sml_alloc(i32 inreg 28)#0
%as=getelementptr inbounds i8,i8*%ar,i64 -4
%at=bitcast i8*%as to i32*
store i32 1342177304,i32*%at,align 4
%au=getelementptr inbounds i8,i8*%ar,i64 12
%av=bitcast i8*%au to i32*
store i32 0,i32*%av,align 1
%aw=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%ax=bitcast i8*%ar to i8**
store i8*%aw,i8**%ax,align 8
%ay=getelementptr inbounds i8,i8*%ar,i64 8
%az=bitcast i8*%ay to i32*
store i32%y,i32*%az,align 4
%aA=load i8*,i8**%j,align 8
store i8*null,i8**%j,align 8
%aB=getelementptr inbounds i8,i8*%ar,i64 16
%aC=bitcast i8*%aB to i8**
store i8*%aA,i8**%aC,align 8
%aD=getelementptr inbounds i8,i8*%ar,i64 24
%aE=bitcast i8*%aD to i32*
store i32 5,i32*%aE,align 4
%aF=bitcast void(...)*%af to i8*(i8*,i8*)*
%aG=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%aH=call fastcc i8*%aF(i8*inreg%aG,i8*inreg%ar)
store i8*%aH,i8**%g,align 8
%aI=call i8*@sml_alloc(i32 inreg 20)#0
%aJ=getelementptr inbounds i8,i8*%aI,i64 -4
%aK=bitcast i8*%aJ to i32*
store i32 1342177296,i32*%aK,align 4
%aL=load i8*,i8**%g,align 8
%aM=bitcast i8*%aI to i8**
store i8*%aL,i8**%aM,align 8
%aN=getelementptr inbounds i8,i8*%aI,i64 8
%aO=bitcast i8*%aN to i8**
store i8*null,i8**%aO,align 8
%aP=getelementptr inbounds i8,i8*%aI,i64 16
%aQ=bitcast i8*%aP to i32*
store i32 3,i32*%aQ,align 4
store i8*null,i8**%h,align 8
%aR=call i8*@sml_alloc(i32 inreg 20)#0
%aS=getelementptr inbounds i8,i8*%aR,i64 -4
%aT=bitcast i8*%aS to i32*
store i32 1342177296,i32*%aT,align 4
store i8*%aR,i8**%j,align 8
%aU=load i8*,i8**%g,align 8
%aV=bitcast i8*%aR to i8**
store i8*%aU,i8**%aV,align 8
%aW=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%aX=getelementptr inbounds i8,i8*%aR,i64 8
%aY=bitcast i8*%aX to i8**
store i8*%aW,i8**%aY,align 8
%aZ=getelementptr inbounds i8,i8*%aR,i64 16
%a0=bitcast i8*%aZ to i32*
store i32 3,i32*%a0,align 4
%a1=call{i32,i1}@llvm.sadd.with.overflow.i32(i32%y,i32%B)#0
%a2=extractvalue{i32,i1}%a1,1
br i1%a2,label%a3,label%bl
a3:
store i8*null,i8**%i,align 8
store i8*null,i8**%j,align 8
%a4=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%a4,i8**%g,align 8
%a5=call i8*@sml_alloc(i32 inreg 20)#0
%a6=getelementptr inbounds i8,i8*%a5,i64 -4
%a7=bitcast i8*%a6 to i32*
store i32 1342177296,i32*%a7,align 4
store i8*%a5,i8**%h,align 8
%a8=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%a9=bitcast i8*%a5 to i8**
store i8*%a8,i8**%a9,align 8
%ba=getelementptr inbounds i8,i8*%a5,i64 8
%bb=bitcast i8*%ba to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@s,i64 0,i32 2,i64 0),i8**%bb,align 8
%bc=getelementptr inbounds i8,i8*%a5,i64 16
%bd=bitcast i8*%bc to i32*
store i32 3,i32*%bd,align 4
%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**%h,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=add nsw i32%B,%y
%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**%g,align 8
%bq=getelementptr inbounds i8,i8*%bn,i64 12
%br=bitcast i8*%bq to i32*
store i32 0,i32*%br,align 1
%bs=load i8*,i8**%i,align 8
%bt=bitcast i8*%bn to i8**
store i8*null,i8**%i,align 8
store i8*%bs,i8**%bt,align 8
%bu=getelementptr inbounds i8,i8*%bn,i64 8
%bv=bitcast i8*%bu to i32*
store i32%bm,i32*%bv,align 4
%bw=getelementptr inbounds i8,i8*%bn,i64 16
%bx=bitcast i8*%bw to i32*
store i32 1,i32*%bx,align 4
%by=call i8*@sml_alloc(i32 inreg 20)#0
%bz=getelementptr inbounds i8,i8*%by,i64 -4
%bA=bitcast i8*%bz to i32*
store i32 1342177296,i32*%bA,align 4
%bB=load i8*,i8**%j,align 8
%bC=bitcast i8*%by to i8**
store i8*%bB,i8**%bC,align 8
%bD=load i8*,i8**%g,align 8
%bE=getelementptr inbounds i8,i8*%by,i64 8
%bF=bitcast i8*%bE to i8**
store i8*%bD,i8**%bF,align 8
%bG=getelementptr inbounds i8,i8*%by,i64 16
%bH=bitcast i8*%bG to i32*
store i32 3,i32*%bH,align 4
ret i8*%by
bI:
store i8*%ah,i8**%j,align 8
%bJ=call i8*@sml_alloc(i32 inreg 28)#0
%bK=getelementptr inbounds i8,i8*%bJ,i64 -4
%bL=bitcast i8*%bK to i32*
store i32 1342177304,i32*%bL,align 4
%bM=getelementptr inbounds i8,i8*%bJ,i64 12
%bN=bitcast i8*%bM to i32*
store i32 0,i32*%bN,align 1
%bO=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%bP=bitcast i8*%bJ to i8**
store i8*%bO,i8**%bP,align 8
%bQ=getelementptr inbounds i8,i8*%bJ,i64 8
%bR=bitcast i8*%bQ to i32*
store i32%y,i32*%bR,align 4
%bS=getelementptr inbounds i8,i8*%bJ,i64 16
%bT=bitcast i8*%bS to i8**
store i8*null,i8**%bT,align 8
%bU=getelementptr inbounds i8,i8*%bJ,i64 24
%bV=bitcast i8*%bU to i32*
store i32 5,i32*%bV,align 4
%bW=bitcast void(...)*%af to i8*(i8*,i8*)*
%bX=load i8*,i8**%j,align 8
store i8*null,i8**%j,align 8
%bY=call fastcc i8*%bW(i8*inreg%bX,i8*inreg%bJ)
store i8*%bY,i8**%g,align 8
%bZ=call{i32,i1}@llvm.ssub.with.overflow.i32(i32%B,i32%Y)#0
%b0=extractvalue{i32,i1}%bZ,1
br i1%b0,label%b1,label%cj
b1:
store i8*null,i8**%i,align 8
store i8*null,i8**%h,align 8
%b2=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%b2,i8**%g,align 8
%b3=call i8*@sml_alloc(i32 inreg 20)#0
%b4=getelementptr inbounds i8,i8*%b3,i64 -4
%b5=bitcast i8*%b4 to i32*
store i32 1342177296,i32*%b5,align 4
store i8*%b3,i8**%h,align 8
%b6=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%b7=bitcast i8*%b3 to i8**
store i8*%b6,i8**%b7,align 8
%b8=getelementptr inbounds i8,i8*%b3,i64 8
%b9=bitcast i8*%b8 to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@r,i64 0,i32 2,i64 0),i8**%b9,align 8
%ca=getelementptr inbounds i8,i8*%b3,i64 16
%cb=bitcast i8*%ca to i32*
store i32 3,i32*%cb,align 4
%cc=call i8*@sml_alloc(i32 inreg 60)#0
%cd=getelementptr inbounds i8,i8*%cc,i64 -4
%ce=bitcast i8*%cd to i32*
store i32 1342177336,i32*%ce,align 4
%cf=getelementptr inbounds i8,i8*%cc,i64 56
%cg=bitcast i8*%cf to i32*
store i32 1,i32*%cg,align 4
%ch=load i8*,i8**%h,align 8
%ci=bitcast i8*%cc to i8**
store i8*%ch,i8**%ci,align 8
call void@sml_raise(i8*inreg%cc)#1
unreachable
cj:
%ck=sub nsw i32%B,%Y
%cl=call i8*@sml_alloc(i32 inreg 20)#0
%cm=getelementptr inbounds i8,i8*%cl,i64 -4
%cn=bitcast i8*%cm to i32*
store i32 1342177296,i32*%cn,align 4
%co=getelementptr inbounds i8,i8*%cl,i64 12
%cp=bitcast i8*%co to i32*
store i32 0,i32*%cp,align 1
%cq=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%cr=bitcast i8*%cl to i8**
store i8*%cq,i8**%cr,align 8
%cs=getelementptr inbounds i8,i8*%cl,i64 8
%ct=bitcast i8*%cs to i32*
store i32%ck,i32*%ct,align 4
%cu=getelementptr inbounds i8,i8*%cl,i64 16
%cv=bitcast i8*%cu to i32*
store i32 1,i32*%cv,align 4
%cw=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%cx=call fastcc i8*@_SMLL7nextBuf_274(i8*inreg%cw,i8*inreg%cl)
store i8*%cx,i8**%h,align 8
%cy=call i8*@sml_alloc(i32 inreg 20)#0
%cz=getelementptr inbounds i8,i8*%cy,i64 -4
%cA=bitcast i8*%cz to i32*
store i32 1342177296,i32*%cA,align 4
%cB=load i8*,i8**%g,align 8
%cC=bitcast i8*%cy to i8**
store i8*%cB,i8**%cC,align 8
%cD=load i8*,i8**%h,align 8
%cE=getelementptr inbounds i8,i8*%cy,i64 8
%cF=bitcast i8*%cE to i8**
store i8*%cD,i8**%cF,align 8
%cG=getelementptr inbounds i8,i8*%cy,i64 16
%cH=bitcast i8*%cG to i32*
store i32 3,i32*%cH,align 4
%cI=bitcast i8**%c to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%cI)
%cJ=bitcast i8**%d to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%cJ)
%cK=bitcast i8**%e to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%cK)
%cL=bitcast i8**%f to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%cL)
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*%cB,i8**%c,align 8
%cM=bitcast i8*%cD to i8**
%cN=load i8*,i8**%cM,align 8
store i8*%cN,i8**%d,align 8
%cO=getelementptr inbounds i8,i8*%cD,i64 8
%cP=bitcast i8*%cO to i8**
%cQ=load i8*,i8**%cP,align 8
store i8*%cQ,i8**%e,align 8
%cR=call i8*@sml_alloc(i32 inreg 20)#0
%cS=getelementptr inbounds i8,i8*%cR,i64 -4
%cT=bitcast i8*%cS to i32*
store i32 1342177296,i32*%cT,align 4
store i8*%cR,i8**%f,align 8
%cU=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%cV=bitcast i8*%cR to i8**
store i8*%cU,i8**%cV,align 8
%cW=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%cX=getelementptr inbounds i8,i8*%cR,i64 8
%cY=bitcast i8*%cX to i8**
store i8*%cW,i8**%cY,align 8
%cZ=getelementptr inbounds i8,i8*%cR,i64 16
%c0=bitcast i8*%cZ to i32*
store i32 3,i32*%c0,align 4
%c1=call i8*@sml_alloc(i32 inreg 20)#0
%c2=getelementptr inbounds i8,i8*%c1,i64 -4
%c3=bitcast i8*%c2 to i32*
store i32 1342177296,i32*%c3,align 4
%c4=load i8*,i8**%f,align 8
%c5=bitcast i8*%c1 to i8**
store i8*%c4,i8**%c5,align 8
%c6=load i8*,i8**%e,align 8
%c7=getelementptr inbounds i8,i8*%c1,i64 8
%c8=bitcast i8*%c7 to i8**
store i8*%c6,i8**%c8,align 8
%c9=getelementptr inbounds i8,i8*%c1,i64 16
%da=bitcast i8*%c9 to i32*
store i32 3,i32*%da,align 4
call void@llvm.lifetime.end.p0i8(i64 8,i8*%cI)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%cJ)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%cK)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%cL)
ret i8*%c1
}
define internal fastcc i8*@_SMLL7nextBuf_274(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
l:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%b,i8**%c,align 8
store i8*%a,i8**%e,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%j,label%h
h:
call void@sml_check(i32 inreg%f)
%i=load i8*,i8**%c,align 8
br label%j
j:
%k=phi i8*[%i,%h],[%b,%l]
%m=bitcast i8*%k to i8**
%n=load i8*,i8**%m,align 8
store i8*%n,i8**%d,align 8
%o=getelementptr inbounds i8,i8*%k,i64 8
%p=bitcast i8*%o to i32*
%q=load i32,i32*%p,align 4
%r=getelementptr inbounds i8,i8*%n,i64 24
%s=bitcast i8*%r to i8***
%t=load i8**,i8***%s,align 8
%u=load i8*,i8**%t,align 8
%v=bitcast i8*%u to i32*
%w=load i32,i32*%v,align 4
switch i32%w,label%x[
i32 1,label%ca
i32 0,label%bM
i32 2,label%ay
i32 3,label%P
]
x:
store i8*null,i8**%d,align 8
store i8*null,i8**%e,align 8
call void@sml_matchcomp_bug()
%y=load i8*,i8**@_SMLZ5Match,align 8
store i8*%y,i8**%c,align 8
%z=call i8*@sml_alloc(i32 inreg 20)#0
%A=getelementptr inbounds i8,i8*%z,i64 -4
%B=bitcast i8*%A to i32*
store i32 1342177296,i32*%B,align 4
store i8*%z,i8**%d,align 8
%C=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%D=bitcast i8*%z to i8**
store i8*%C,i8**%D,align 8
%E=getelementptr inbounds i8,i8*%z,i64 8
%F=bitcast i8*%E to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@u,i64 0,i32 2,i64 0),i8**%F,align 8
%G=getelementptr inbounds i8,i8*%z,i64 16
%H=bitcast i8*%G to i32*
store i32 3,i32*%H,align 4
%I=call i8*@sml_alloc(i32 inreg 60)#0
%J=getelementptr inbounds i8,i8*%I,i64 -4
%K=bitcast i8*%J to i32*
store i32 1342177336,i32*%K,align 4
%L=getelementptr inbounds i8,i8*%I,i64 56
%M=bitcast i8*%L to i32*
store i32 1,i32*%M,align 4
%N=load i8*,i8**%d,align 8
%O=bitcast i8*%I to i8**
store i8*%N,i8**%O,align 8
call void@sml_raise(i8*inreg%I)#1
unreachable
P:
store i8*null,i8**%e,align 8
%Q=getelementptr inbounds i8,i8*%n,i64 8
%R=bitcast i8*%Q to i8**
%S=load i8*,i8**%R,align 8
%T=call fastcc i32@_SMLFN11Word8Vector6lengthE(i8*inreg%S)
%U=call i8*@sml_alloc(i32 inreg 20)#0
%V=getelementptr inbounds i8,i8*%U,i64 -4
%W=bitcast i8*%V to i32*
store i32 1342177296,i32*%W,align 4
store i8*%U,i8**%c,align 8
%X=getelementptr inbounds i8,i8*%U,i64 12
%Y=bitcast i8*%X to i32*
store i32 0,i32*%Y,align 1
%Z=load i8*,i8**%d,align 8
%aa=bitcast i8*%U to i8**
store i8*null,i8**%d,align 8
store i8*%Z,i8**%aa,align 8
%ab=getelementptr inbounds i8,i8*%U,i64 8
%ac=bitcast i8*%ab to i32*
store i32%T,i32*%ac,align 4
%ad=getelementptr inbounds i8,i8*%U,i64 16
%ae=bitcast i8*%ad to i32*
store i32 1,i32*%ae,align 4
%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=bitcast i8*%af to i8**
store i8*null,i8**%ai,align 8
%aj=load i8*,i8**%c,align 8
%ak=getelementptr inbounds i8,i8*%af,i64 8
%al=bitcast i8*%ak to i8**
store i8*%aj,i8**%al,align 8
%am=getelementptr inbounds i8,i8*%af,i64 16
%an=bitcast i8*%am to i32*
store i32 3,i32*%an,align 4
store i8*null,i8**%c,align 8
store i8*%aj,i8**%d,align 8
%ao=call i8*@sml_alloc(i32 inreg 20)#0
%ap=getelementptr inbounds i8,i8*%ao,i64 -4
%aq=bitcast i8*%ap to i32*
store i32 1342177296,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=load i8*,i8**%d,align 8
%au=getelementptr inbounds i8,i8*%ao,i64 8
%av=bitcast i8*%au to i8**
store i8*%at,i8**%av,align 8
%aw=getelementptr inbounds i8,i8*%ao,i64 16
%ax=bitcast i8*%aw to i32*
store i32 3,i32*%ax,align 4
ret i8*%ao
ay:
%az=getelementptr inbounds i8,i8*%n,i64 16
%aA=bitcast i8*%az to i8**
%aB=load i8*,i8**%aA,align 8
%aC=getelementptr inbounds i8,i8*%aB,i64 24
%aD=bitcast i8*%aC to i8**
%aE=load i8*,i8**%aD,align 8
store i8*%aE,i8**%c,align 8
%aF=call i8*@sml_alloc(i32 inreg 28)#0
%aG=getelementptr inbounds i8,i8*%aF,i64 -4
%aH=bitcast i8*%aG to i32*
store i32 1342177304,i32*%aH,align 4
%aI=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aJ=bitcast i8*%aF to i8**
store i8*%aI,i8**%aJ,align 8
%aK=getelementptr inbounds i8,i8*%aF,i64 8
%aL=bitcast i8*%aK to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[7x i8]}>,<{[4x i8],i32,[7x i8]}>*@t,i64 0,i32 2,i64 0),i8**%aL,align 8
%aM=load i8*,i8**%d,align 8
%aN=getelementptr inbounds i8,i8*%aF,i64 16
%aO=bitcast i8*%aN to i8**
store i8*%aM,i8**%aO,align 8
%aP=getelementptr inbounds i8,i8*%aF,i64 24
%aQ=bitcast i8*%aP to i32*
store i32 7,i32*%aQ,align 4
%aR=call fastcc i8*@_SMLLN5BinIO8StreamIO12extendStreamE_238(i8*inreg%aF)
%aS=bitcast i8*%aR to i32*
%aT=load i32,i32*%aS,align 4
%aU=icmp eq i32%aT,1
br i1%aU,label%bv,label%aV
aV:
store i8*null,i8**%e,align 8
%aW=load i8*,i8**%d,align 8
%aX=getelementptr inbounds i8,i8*%aW,i64 8
%aY=bitcast i8*%aX to i8**
%aZ=load i8*,i8**%aY,align 8
%a0=call fastcc i32@_SMLFN11Word8Vector6lengthE(i8*inreg%aZ)
%a1=call i8*@sml_alloc(i32 inreg 20)#0
%a2=getelementptr inbounds i8,i8*%a1,i64 -4
%a3=bitcast i8*%a2 to i32*
store i32 1342177296,i32*%a3,align 4
store i8*%a1,i8**%c,align 8
%a4=getelementptr inbounds i8,i8*%a1,i64 12
%a5=bitcast i8*%a4 to i32*
store i32 0,i32*%a5,align 1
%a6=load i8*,i8**%d,align 8
%a7=bitcast i8*%a1 to i8**
store i8*null,i8**%d,align 8
store i8*%a6,i8**%a7,align 8
%a8=getelementptr inbounds i8,i8*%a1,i64 8
%a9=bitcast i8*%a8 to i32*
store i32%a0,i32*%a9,align 4
%ba=getelementptr inbounds i8,i8*%a1,i64 16
%bb=bitcast i8*%ba to i32*
store i32 1,i32*%bb,align 4
%bc=call i8*@sml_alloc(i32 inreg 20)#0
%bd=getelementptr inbounds i8,i8*%bc,i64 -4
%be=bitcast i8*%bd to i32*
store i32 1342177296,i32*%be,align 4
%bf=bitcast i8*%bc to i8**
store i8*null,i8**%bf,align 8
%bg=load i8*,i8**%c,align 8
%bh=getelementptr inbounds i8,i8*%bc,i64 8
%bi=bitcast i8*%bh to i8**
store i8*%bg,i8**%bi,align 8
%bj=getelementptr inbounds i8,i8*%bc,i64 16
%bk=bitcast i8*%bj to i32*
store i32 3,i32*%bk,align 4
store i8*null,i8**%c,align 8
store i8*%bg,i8**%d,align 8
%bl=call i8*@sml_alloc(i32 inreg 20)#0
%bm=getelementptr inbounds i8,i8*%bl,i64 -4
%bn=bitcast i8*%bm to i32*
store i32 1342177296,i32*%bn,align 4
%bo=load i8*,i8**%c,align 8
%bp=bitcast i8*%bl to i8**
store i8*%bo,i8**%bp,align 8
%bq=load i8*,i8**%d,align 8
%br=getelementptr inbounds i8,i8*%bl,i64 8
%bs=bitcast i8*%br to i8**
store i8*%bq,i8**%bs,align 8
%bt=getelementptr inbounds i8,i8*%bl,i64 16
%bu=bitcast i8*%bt to i32*
store i32 3,i32*%bu,align 4
ret i8*%bl
bv:
store i8*null,i8**%d,align 8
%bw=getelementptr inbounds i8,i8*%aR,i64 8
%bx=bitcast i8*%bw to i8**
%by=load i8*,i8**%bx,align 8
store i8*%by,i8**%c,align 8
%bz=call i8*@sml_alloc(i32 inreg 20)#0
%bA=getelementptr inbounds i8,i8*%bz,i64 -4
%bB=bitcast i8*%bA to i32*
store i32 1342177296,i32*%bB,align 4
%bC=load i8*,i8**%c,align 8
%bD=bitcast i8*%bz to i8**
store i8*%bC,i8**%bD,align 8
%bE=getelementptr inbounds i8,i8*%bz,i64 8
%bF=bitcast i8*%bE to i32*
store i32 0,i32*%bF,align 4
%bG=getelementptr inbounds i8,i8*%bz,i64 12
%bH=bitcast i8*%bG to i32*
store i32%q,i32*%bH,align 4
%bI=getelementptr inbounds i8,i8*%bz,i64 16
%bJ=bitcast i8*%bI to i32*
store i32 1,i32*%bJ,align 4
%bK=load i8*,i8**%e,align 8
%bL=tail call fastcc i8*@_SMLL9inputList_273(i8*inreg%bK,i8*inreg%bz)
ret i8*%bL
bM:
store i8*null,i8**%d,align 8
store i8*null,i8**%e,align 8
%bN=getelementptr inbounds i8,i8*%u,i64 8
%bO=bitcast i8*%bN to i8**
%bP=load i8*,i8**%bO,align 8
store i8*%bP,i8**%c,align 8
%bQ=call i8*@sml_alloc(i32 inreg 20)#0
%bR=getelementptr inbounds i8,i8*%bQ,i64 -4
%bS=bitcast i8*%bR to i32*
store i32 1342177296,i32*%bS,align 4
store i8*%bQ,i8**%d,align 8
%bT=getelementptr inbounds i8,i8*%bQ,i64 12
%bU=bitcast i8*%bT to i32*
store i32 0,i32*%bU,align 1
%bV=load i8*,i8**%c,align 8
%bW=bitcast i8*%bQ to i8**
store i8*null,i8**%c,align 8
store i8*%bV,i8**%bW,align 8
%bX=getelementptr inbounds i8,i8*%bQ,i64 8
%bY=bitcast i8*%bX to i32*
store i32 0,i32*%bY,align 4
%bZ=getelementptr inbounds i8,i8*%bQ,i64 16
%b0=bitcast i8*%bZ to i32*
store i32 1,i32*%b0,align 4
%b1=call i8*@sml_alloc(i32 inreg 20)#0
%b2=getelementptr inbounds i8,i8*%b1,i64 -4
%b3=bitcast i8*%b2 to i32*
store i32 1342177296,i32*%b3,align 4
%b4=bitcast i8*%b1 to i8**
store i8*null,i8**%b4,align 8
%b5=load i8*,i8**%d,align 8
%b6=getelementptr inbounds i8,i8*%b1,i64 8
%b7=bitcast i8*%b6 to i8**
store i8*%b5,i8**%b7,align 8
%b8=getelementptr inbounds i8,i8*%b1,i64 16
%b9=bitcast i8*%b8 to i32*
store i32 3,i32*%b9,align 4
ret i8*%b1
ca:
store i8*null,i8**%d,align 8
%cb=getelementptr inbounds i8,i8*%u,i64 8
%cc=bitcast i8*%cb to i8**
%cd=load i8*,i8**%cc,align 8
store i8*%cd,i8**%c,align 8
%ce=call i8*@sml_alloc(i32 inreg 20)#0
%cf=getelementptr inbounds i8,i8*%ce,i64 -4
%cg=bitcast i8*%cf to i32*
store i32 1342177296,i32*%cg,align 4
%ch=load i8*,i8**%c,align 8
%ci=bitcast i8*%ce to i8**
store i8*%ch,i8**%ci,align 8
%cj=getelementptr inbounds i8,i8*%ce,i64 8
%ck=bitcast i8*%cj to i32*
store i32 0,i32*%ck,align 4
%cl=getelementptr inbounds i8,i8*%ce,i64 12
%cm=bitcast i8*%cl to i32*
store i32%q,i32*%cm,align 4
%cn=getelementptr inbounds i8,i8*%ce,i64 16
%co=bitcast i8*%cn to i32*
store i32 1,i32*%co,align 4
%cp=load i8*,i8**%e,align 8
%cq=tail call fastcc i8*@_SMLL9inputList_273(i8*inreg%cp,i8*inreg%ce)
ret i8*%cq
}
define internal fastcc i8*@_SMLLN5BinIO8StreamIO6inputNE_280(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%d,align 8
store i8*%b,i8**%c,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%h,label%j
h:
%i=bitcast i8*%a to i8**
br label%n
j:
call void@sml_check(i32 inreg%f)
%k=load i8*,i8**%c,align 8
%l=bitcast i8**%d to i8***
%m=load i8**,i8***%l,align 8
br label%n
n:
%o=phi i8**[%m,%j],[%i,%h]
%p=phi i8*[%k,%j],[%b,%h]
%q=bitcast i8*%p to i8**
%r=load i8*,i8**%q,align 8
%s=bitcast i8*%r to i8**
%t=load i8*,i8**%s,align 8
store i8*%t,i8**%c,align 8
%u=getelementptr inbounds i8,i8*%r,i64 8
%v=bitcast i8*%u to i32*
%w=load i32,i32*%v,align 4
%x=getelementptr inbounds i8,i8*%p,i64 8
%y=bitcast i8*%x to i32*
%z=load i32,i32*%y,align 4
%A=load i8*,i8**%o,align 8
store i8*%A,i8**%d,align 8
%B=call i8*@sml_alloc(i32 inreg 12)#0
%C=getelementptr inbounds i8,i8*%B,i64 -4
%D=bitcast i8*%C to i32*
store i32 1342177288,i32*%D,align 4
store i8*%B,i8**%e,align 8
%E=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%F=bitcast i8*%B to i8**
store i8*%E,i8**%F,align 8
%G=getelementptr inbounds i8,i8*%B,i64 8
%H=bitcast i8*%G to i32*
store i32 1,i32*%H,align 4
%I=call i8*@sml_alloc(i32 inreg 28)#0
%J=getelementptr inbounds i8,i8*%I,i64 -4
%K=bitcast i8*%J to i32*
store i32 1342177304,i32*%K,align 4
%L=load i8*,i8**%e,align 8
%M=bitcast i8*%I to i8**
store i8*%L,i8**%M,align 8
%N=getelementptr inbounds i8,i8*%I,i64 8
%O=bitcast i8*%N to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL9inputList_273 to void(...)*),void(...)**%O,align 8
%P=getelementptr inbounds i8,i8*%I,i64 16
%Q=bitcast i8*%P to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL9inputList_273 to void(...)*),void(...)**%Q,align 8
%R=getelementptr inbounds i8,i8*%I,i64 24
%S=bitcast i8*%R to i32*
store i32 -2147483647,i32*%S,align 4
%T=call i8*@sml_alloc(i32 inreg 28)#0
%U=getelementptr inbounds i8,i8*%T,i64 -4
%V=bitcast i8*%U to i32*
store i32 1342177304,i32*%V,align 4
%W=load i8*,i8**%e,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 void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL7nextBuf_274 to void(...)*),void(...)**%Z,align 8
%aa=getelementptr inbounds i8,i8*%T,i64 16
%ab=bitcast i8*%aa to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL7nextBuf_274 to void(...)*),void(...)**%ab,align 8
%ac=getelementptr inbounds i8,i8*%T,i64 24
%ad=bitcast i8*%ac to i32*
store i32 -2147483647,i32*%ad,align 4
%ae=call i8*@sml_alloc(i32 inreg 20)#0
%af=getelementptr inbounds i8,i8*%ae,i64 -4
%ag=bitcast i8*%af to i32*
store i32 1342177296,i32*%ag,align 4
%ah=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ai=bitcast i8*%ae to i8**
store i8*%ah,i8**%ai,align 8
%aj=getelementptr inbounds i8,i8*%ae,i64 8
%ak=bitcast i8*%aj to i32*
store i32%w,i32*%ak,align 4
%al=getelementptr inbounds i8,i8*%ae,i64 12
%am=bitcast i8*%al to i32*
store i32%z,i32*%am,align 4
%an=getelementptr inbounds i8,i8*%ae,i64 16
%ao=bitcast i8*%an to i32*
store i32 1,i32*%ao,align 4
%ap=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%aq=call fastcc i8*@_SMLL9inputList_273(i8*inreg%ap,i8*inreg%ae)
%ar=getelementptr inbounds i8,i8*%aq,i64 8
%as=bitcast i8*%ar to i8**
%at=load i8*,i8**%as,align 8
store i8*%at,i8**%c,align 8
%au=bitcast i8*%aq to i8**
%av=load i8*,i8**%au,align 8
%aw=call fastcc i8*@_SMLFN11Word8Vector6concatE(i8*inreg%av)
store i8*%aw,i8**%d,align 8
%ax=call i8*@sml_alloc(i32 inreg 20)#0
%ay=getelementptr inbounds i8,i8*%ax,i64 -4
%az=bitcast i8*%ay to i32*
store i32 1342177296,i32*%az,align 4
%aA=load i8*,i8**%d,align 8
%aB=bitcast i8*%ax to i8**
store i8*%aA,i8**%aB,align 8
%aC=load i8*,i8**%c,align 8
%aD=getelementptr inbounds i8,i8*%ax,i64 8
%aE=bitcast i8*%aD to i8**
store i8*%aC,i8**%aE,align 8
%aF=getelementptr inbounds i8,i8*%ax,i64 16
%aG=bitcast i8*%aF to i32*
store i32 3,i32*%aG,align 4
ret i8*%ax
}
define internal fastcc i8*@_SMLL8bigChunk_281(i8*inreg%a,i32 inreg%b)#2 gc"smlsharp"{
%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**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
store i8*%a,i8**%e,align 8
%g=load atomic i32,i32*@sml_check_flag unordered,align 4
%h=icmp eq i32%g,0
br i1%h,label%i,label%k
i:
%j=bitcast i8*%a to i8**
br label%n
k:
call void@sml_check(i32 inreg%g)
%l=bitcast i8**%e to i8***
%m=load i8**,i8***%l,align 8
br label%n
n:
%o=phi i8**[%m,%k],[%j,%i]
%p=load i8*,i8**%o,align 8
%q=getelementptr inbounds i8,i8*%p,i64 16
%r=bitcast i8*%q to i8*(i8*,i8*)**
%s=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%r,align 8
%t=bitcast i8*%p to i8**
%u=load i8*,i8**%t,align 8
store i8*%u,i8**%f,align 8
%v=call i8*@sml_alloc(i32 inreg 4)#0
%w=bitcast i8*%v to i32*
%x=getelementptr inbounds i8,i8*%v,i64 -4
%y=bitcast i8*%x to i32*
store i32 4,i32*%y,align 4
store i32 0,i32*%w,align 4
%z=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%A=call fastcc i8*%s(i8*inreg%z,i8*inreg%v)
%B=icmp eq i8*%A,null
%C=load i8*,i8**%e,align 8
%D=getelementptr inbounds i8,i8*%C,i64 8
%E=bitcast i8*%D to i8***
%F=load i8**,i8***%E,align 8
br i1%B,label%G,label%P
G:
%H=load i8*,i8**%F,align 8
%I=getelementptr inbounds i8,i8*%H,i64 16
%J=bitcast i8*%I to i8**
%K=load i8*,i8**%J,align 8
%L=getelementptr inbounds i8,i8*%K,i64 40
%M=bitcast i8*%L to i8**
%N=load i8*,i8**%M,align 8
%O=getelementptr inbounds i8,i8*%N,i64 24
br label%P
P:
%Q=phi i8*[%O,%G],[%A,%n]
%R=bitcast i8*%Q to i32*
%S=load i32,i32*%R,align 4
store i8*null,i8**%e,align 8
%T=load i8*,i8**%F,align 8
%U=bitcast i8**%c to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%U)
%V=bitcast i8**%d to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%V)
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
%W=getelementptr inbounds i8,i8*%T,i64 16
%X=bitcast i8*%W to i8**
%Y=load i8*,i8**%X,align 8
%Z=getelementptr inbounds i8,i8*%Y,i64 24
%aa=bitcast i8*%Z to i8**
%ab=load i8*,i8**%aa,align 8
store i8*%ab,i8**%d,align 8
%ac=getelementptr inbounds i8,i8*%Y,i64 40
%ad=bitcast i8*%ac to i8**
%ae=load i8*,i8**%ad,align 8
%af=getelementptr inbounds i8,i8*%ae,i64 24
%ag=bitcast i8*%af to i32*
%ah=load i32,i32*%ag,align 4
%ai=call i8*@sml_alloc(i32 inreg 20)#0
%aj=getelementptr inbounds i8,i8*%ai,i64 -4
%ak=bitcast i8*%aj to i32*
store i32 1342177296,i32*%ak,align 4
store i8*%ai,i8**%c,align 8
%al=getelementptr inbounds i8,i8*%ai,i64 12
%am=bitcast i8*%al to i32*
store i32 0,i32*%am,align 1
%an=bitcast i8*%ai to i8**
%ao=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
store i8*%ao,i8**%an,align 8
%ap=getelementptr inbounds i8,i8*%ai,i64 8
%aq=bitcast i8*%ap to i32*
store i32%ah,i32*%aq,align 4
%ar=getelementptr inbounds i8,i8*%ai,i64 16
%as=bitcast i8*%ar to i32*
store i32 1,i32*%as,align 4
%at=call{i32,i1}@llvm.ssub.with.overflow.i32(i32%ah,i32 1)#0
%au=extractvalue{i32,i1}%at,1
br i1%au,label%av,label%aN
av:
%aw=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%aw,i8**%c,align 8
%ax=call i8*@sml_alloc(i32 inreg 20)#0
%ay=getelementptr inbounds i8,i8*%ax,i64 -4
%az=bitcast i8*%ay to i32*
store i32 1342177296,i32*%az,align 4
store i8*%ax,i8**%d,align 8
%aA=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aB=bitcast i8*%ax to i8**
store i8*%aA,i8**%aB,align 8
%aC=getelementptr inbounds i8,i8*%ax,i64 8
%aD=bitcast i8*%aC to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@f,i64 0,i32 2,i64 0),i8**%aD,align 8
%aE=getelementptr inbounds i8,i8*%ax,i64 16
%aF=bitcast i8*%aE to i32*
store i32 3,i32*%aF,align 4
%aG=call i8*@sml_alloc(i32 inreg 60)#0
%aH=getelementptr inbounds i8,i8*%aG,i64 -4
%aI=bitcast i8*%aH to i32*
store i32 1342177336,i32*%aI,align 4
%aJ=getelementptr inbounds i8,i8*%aG,i64 56
%aK=bitcast i8*%aJ to i32*
store i32 1,i32*%aK,align 4
%aL=load i8*,i8**%d,align 8
%aM=bitcast i8*%aG to i8**
store i8*%aL,i8**%aM,align 8
call void@sml_raise(i8*inreg%aG)#1
unreachable
aN:
%aO=add nsw i32%ah,-1
%aP=icmp eq i32%aO,0
br i1%aP,label%bd,label%aQ
aQ:
%aR=call i8*@sml_alloc(i32 inreg 20)#0
%aS=getelementptr inbounds i8,i8*%aR,i64 -4
%aT=bitcast i8*%aS to i32*
store i32 1342177296,i32*%aT,align 4
store i8*%aR,i8**%d,align 8
%aU=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aV=bitcast i8*%aR to i8**
store i8*%aU,i8**%aV,align 8
%aW=getelementptr inbounds i8,i8*%aR,i64 8
%aX=bitcast i8*%aW to i32*
store i32%ah,i32*%aX,align 4
%aY=getelementptr inbounds i8,i8*%aR,i64 12
%aZ=bitcast i8*%aY to i32*
store i32%aO,i32*%aZ,align 4
%a0=getelementptr inbounds i8,i8*%aR,i64 16
%a1=bitcast i8*%a0 to i32*
store i32 1,i32*%a1,align 4
%a2=call i8*@sml_alloc(i32 inreg 28)#0
%a3=getelementptr inbounds i8,i8*%a2,i64 -4
%a4=bitcast i8*%a3 to i32*
store i32 1342177304,i32*%a4,align 4
%a5=load i8*,i8**%d,align 8
%a6=bitcast i8*%a2 to i8**
store i8*%a5,i8**%a6,align 8
%a7=getelementptr inbounds i8,i8*%a2,i64 8
%a8=bitcast i8*%a7 to void(...)**
store void(...)*bitcast(i8*(i8*,i32)*@_SMLLN5BinIO8StreamIO9readChunkE_249 to void(...)*),void(...)**%a8,align 8
%a9=getelementptr inbounds i8,i8*%a2,i64 16
%ba=bitcast i8*%a9 to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO8StreamIO9readChunkE_476 to void(...)*),void(...)**%ba,align 8
%bb=getelementptr inbounds i8,i8*%a2,i64 24
%bc=bitcast i8*%bb to i32*
store i32 -2147483647,i32*%bc,align 4
call void@llvm.lifetime.end.p0i8(i64 8,i8*%U)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%V)
br label%bw
bd:
%be=call i8*@sml_alloc(i32 inreg 12)#0
%bf=getelementptr inbounds i8,i8*%be,i64 -4
%bg=bitcast i8*%bf to i32*
store i32 1342177288,i32*%bg,align 4
store i8*%be,i8**%d,align 8
%bh=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bi=bitcast i8*%be to i8**
store i8*%bh,i8**%bi,align 8
%bj=getelementptr inbounds i8,i8*%be,i64 8
%bk=bitcast i8*%bj to i32*
store i32 1,i32*%bk,align 4
%bl=call i8*@sml_alloc(i32 inreg 28)#0
%bm=getelementptr inbounds i8,i8*%bl,i64 -4
%bn=bitcast i8*%bm to i32*
store i32 1342177304,i32*%bn,align 4
%bo=load i8*,i8**%d,align 8
%bp=bitcast i8*%bl to i8**
store i8*%bo,i8**%bp,align 8
%bq=getelementptr inbounds i8,i8*%bl,i64 8
%br=bitcast i8*%bq to void(...)**
store void(...)*bitcast(i8*(i8*,i32)*@_SMLLN5BinIO8StreamIO9readChunkE_244 to void(...)*),void(...)**%br,align 8
%bs=getelementptr inbounds i8,i8*%bl,i64 16
%bt=bitcast i8*%bs to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO8StreamIO9readChunkE_475 to void(...)*),void(...)**%bt,align 8
%bu=getelementptr inbounds i8,i8*%bl,i64 24
%bv=bitcast i8*%bu to i32*
store i32 -2147483647,i32*%bv,align 4
call void@llvm.lifetime.end.p0i8(i64 8,i8*%U)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%V)
br label%bw
bw:
%bx=phi i8*[%bs,%bd],[%a9,%aQ]
%by=phi i8*[%bo,%bd],[%a5,%aQ]
%bz=bitcast i8*%bx to i8*(i8*,i8*)**
%bA=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bz,align 8
store i8*%by,i8**%e,align 8
%bB=call i8*@sml_alloc(i32 inreg 4)#0
%bC=bitcast i8*%bB to i32*
%bD=getelementptr inbounds i8,i8*%bB,i64 -4
%bE=bitcast i8*%bD to i32*
store i32 4,i32*%bE,align 4
store i32%S,i32*%bC,align 4
%bF=load i8*,i8**%e,align 8
%bG=tail call fastcc i8*%bA(i8*inreg%bF,i8*inreg%bB)
ret i8*%bG
}
define internal fastcc i8*@_SMLL4loop_283(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
m:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
store i8*%a,i8**%d,align 8
store i8*%b,i8**%c,align 8
%g=load atomic i32,i32*@sml_check_flag unordered,align 4
%h=icmp eq i32%g,0
br i1%h,label%k,label%i
i:
call void@sml_check(i32 inreg%g)
%j=load i8*,i8**%c,align 8
br label%k
k:
%l=phi i8*[%j,%i],[%b,%m]
%n=bitcast i8*%l to i8**
%o=load i8*,i8**%n,align 8
store i8*%o,i8**%e,align 8
%p=getelementptr inbounds i8,i8*%l,i64 8
%q=bitcast i8*%p to i8**
%r=load i8*,i8**%q,align 8
store i8*%r,i8**%c,align 8
%s=call fastcc i32@_SMLFN11Word8Vector6lengthE(i8*inreg%o)
%t=icmp eq i32%s,0
br i1%t,label%u,label%E
u:
store i8*null,i8**%e,align 8
store i8*null,i8**%d,align 8
%v=call i8*@sml_alloc(i32 inreg 20)#0
%w=getelementptr inbounds i8,i8*%v,i64 -4
%x=bitcast i8*%w to i32*
store i32 1342177296,i32*%x,align 4
%y=bitcast i8*%v to i8**
store i8*null,i8**%y,align 8
%z=load i8*,i8**%c,align 8
%A=getelementptr inbounds i8,i8*%v,i64 8
%B=bitcast i8*%A to i8**
store i8*%z,i8**%B,align 8
%C=getelementptr inbounds i8,i8*%v,i64 16
%D=bitcast i8*%C to i32*
store i32 3,i32*%D,align 4
ret i8*%v
E:
%F=bitcast i8**%d to i8***
%G=load i8**,i8***%F,align 8
%H=load i8*,i8**%G,align 8
%I=getelementptr inbounds i8,i8*%H,i64 16
%J=bitcast i8*%I to i8*(i8*,i8*)**
%K=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%J,align 8
%L=bitcast i8*%H to i8**
%M=load i8*,i8**%L,align 8
%N=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%O=call fastcc i8*%K(i8*inreg%M,i8*inreg%N)
%P=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%Q=call fastcc i8*@_SMLL4loop_283(i8*inreg%P,i8*inreg%O)
%R=bitcast i8*%Q to i8**
%S=load i8*,i8**%R,align 8
store i8*%S,i8**%c,align 8
%T=getelementptr inbounds i8,i8*%Q,i64 8
%U=bitcast i8*%T to i8**
%V=load i8*,i8**%U,align 8
store i8*%V,i8**%d,align 8
%W=call i8*@sml_alloc(i32 inreg 20)#0
%X=getelementptr inbounds i8,i8*%W,i64 -4
%Y=bitcast i8*%X to i32*
store i32 1342177296,i32*%Y,align 4
store i8*%W,i8**%f,align 8
%Z=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%aa=bitcast i8*%W to i8**
store i8*%Z,i8**%aa,align 8
%ab=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ac=getelementptr inbounds i8,i8*%W,i64 8
%ad=bitcast i8*%ac to i8**
store i8*%ab,i8**%ad,align 8
%ae=getelementptr inbounds i8,i8*%W,i64 16
%af=bitcast i8*%ae to i32*
store i32 3,i32*%af,align 4
%ag=call i8*@sml_alloc(i32 inreg 20)#0
%ah=getelementptr inbounds i8,i8*%ag,i64 -4
%ai=bitcast i8*%ah to i32*
store i32 1342177296,i32*%ai,align 4
%aj=load i8*,i8**%f,align 8
%ak=bitcast i8*%ag to i8**
store i8*%aj,i8**%ak,align 8
%al=load i8*,i8**%d,align 8
%am=getelementptr inbounds i8,i8*%ag,i64 8
%an=bitcast i8*%am to i8**
store i8*%al,i8**%an,align 8
%ao=getelementptr inbounds i8,i8*%ag,i64 16
%ap=bitcast i8*%ao to i32*
store i32 3,i32*%ap,align 4
ret i8*%ag
}
define internal fastcc i8*@_SMLLN5BinIO8StreamIO8inputAllE_284(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
m:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
store i8*%a,i8**%e,align 8
store i8*%b,i8**%c,align 8
%g=load atomic i32,i32*@sml_check_flag unordered,align 4
%h=icmp eq i32%g,0
br i1%h,label%k,label%i
i:
call void@sml_check(i32 inreg%g)
%j=load i8*,i8**%c,align 8
br label%k
k:
%l=phi i8*[%j,%i],[%b,%m]
store i8*%l,i8**%d,align 8
%n=bitcast i8*%l to i8**
%o=load i8*,i8**%n,align 8
%p=getelementptr inbounds i8,i8*%o,i64 16
%q=bitcast i8*%p to i8**
%r=load i8*,i8**%q,align 8
%s=getelementptr inbounds i8,i8*%r,i64 40
%t=bitcast i8*%s to i8***
%u=load i8**,i8***%t,align 8
%v=load i8*,i8**%u,align 8
store i8*%v,i8**%c,align 8
%w=call i8*@sml_alloc(i32 inreg 20)#0
%x=getelementptr inbounds i8,i8*%w,i64 -4
%y=bitcast i8*%x to i32*
store i32 1342177296,i32*%y,align 4
store i8*%w,i8**%f,align 8
%z=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%A=bitcast i8*%w to i8**
store i8*%z,i8**%A,align 8
%B=load i8*,i8**%d,align 8
%C=getelementptr inbounds i8,i8*%w,i64 8
%D=bitcast i8*%C to i8**
store i8*%B,i8**%D,align 8
%E=getelementptr inbounds i8,i8*%w,i64 16
%F=bitcast i8*%E to i32*
store i32 3,i32*%F,align 4
%G=call i8*@sml_alloc(i32 inreg 28)#0
%H=getelementptr inbounds i8,i8*%G,i64 -4
%I=bitcast i8*%H to i32*
store i32 1342177304,i32*%I,align 4
store i8*%G,i8**%c,align 8
%J=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%K=bitcast i8*%G to i8**
store i8*%J,i8**%K,align 8
%L=getelementptr inbounds i8,i8*%G,i64 8
%M=bitcast i8*%L to void(...)**
store void(...)*bitcast(i8*(i8*,i32)*@_SMLL8bigChunk_281 to void(...)*),void(...)**%M,align 8
%N=getelementptr inbounds i8,i8*%G,i64 16
%O=bitcast i8*%N to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL8bigChunk_481 to void(...)*),void(...)**%O,align 8
%P=getelementptr inbounds i8,i8*%G,i64 24
%Q=bitcast i8*%P to i32*
store i32 -2147483647,i32*%Q,align 4
%R=bitcast i8**%e to i8***
%S=load i8**,i8***%R,align 8
%T=load i8*,i8**%S,align 8
store i8*%T,i8**%e,align 8
%U=call i8*@sml_alloc(i32 inreg 20)#0
%V=getelementptr inbounds i8,i8*%U,i64 -4
%W=bitcast i8*%V to i32*
store i32 1342177296,i32*%W,align 4
%X=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%Y=bitcast i8*%U to i8**
store i8*%X,i8**%Y,align 8
%Z=getelementptr inbounds i8,i8*%U,i64 8
%aa=bitcast i8*%Z to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[9x i8]}>,<{[4x i8],i32,[9x i8]}>*@v,i64 0,i32 2,i64 0),i8**%aa,align 8
%ab=getelementptr inbounds i8,i8*%U,i64 16
%ac=bitcast i8*%ab to i32*
store i32 3,i32*%ac,align 4
%ad=call fastcc i8*@_SMLLN5BinIO8StreamIO9getBufferE_241(i8*inreg%U)
%ae=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%af=call fastcc i8*@_SMLLN5BinIO8StreamIO16generalizedInputE_256(i8*inreg%ae,i8*inreg%ad)
store i8*%af,i8**%c,align 8
%ag=call i8*@sml_alloc(i32 inreg 12)#0
%ah=getelementptr inbounds i8,i8*%ag,i64 -4
%ai=bitcast i8*%ah to i32*
store i32 1342177288,i32*%ai,align 4
store i8*%ag,i8**%e,align 8
%aj=load i8*,i8**%c,align 8
%ak=bitcast i8*%ag to i8**
store i8*%aj,i8**%ak,align 8
%al=getelementptr inbounds i8,i8*%ag,i64 8
%am=bitcast i8*%al to i32*
store i32 1,i32*%am,align 4
%an=call i8*@sml_alloc(i32 inreg 28)#0
%ao=getelementptr inbounds i8,i8*%an,i64 -4
%ap=bitcast i8*%ao to i32*
store i32 1342177304,i32*%ap,align 4
%aq=load i8*,i8**%e,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 void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL4loop_283 to void(...)*),void(...)**%at,align 8
%au=getelementptr inbounds i8,i8*%an,i64 16
%av=bitcast i8*%au to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL4loop_283 to void(...)*),void(...)**%av,align 8
%aw=getelementptr inbounds i8,i8*%an,i64 24
%ax=bitcast i8*%aw to i32*
store i32 -2147483647,i32*%ax,align 4
%ay=load i8*,i8**%c,align 8
%az=getelementptr inbounds i8,i8*%ay,i64 16
%aA=bitcast i8*%az to i8*(i8*,i8*)**
%aB=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aA,align 8
store i8*null,i8**%c,align 8
%aC=bitcast i8*%ay to i8**
%aD=load i8*,i8**%aC,align 8
%aE=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aF=call fastcc i8*%aB(i8*inreg%aD,i8*inreg%aE)
%aG=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%aH=call fastcc i8*@_SMLL4loop_283(i8*inreg%aG,i8*inreg%aF)
%aI=getelementptr inbounds i8,i8*%aH,i64 8
%aJ=bitcast i8*%aI to i8**
%aK=load i8*,i8**%aJ,align 8
store i8*%aK,i8**%c,align 8
%aL=bitcast i8*%aH to i8**
%aM=load i8*,i8**%aL,align 8
%aN=call fastcc i8*@_SMLFN11Word8Vector6concatE(i8*inreg%aM)
store i8*%aN,i8**%d,align 8
%aO=call i8*@sml_alloc(i32 inreg 20)#0
%aP=getelementptr inbounds i8,i8*%aO,i64 -4
%aQ=bitcast i8*%aP to i32*
store i32 1342177296,i32*%aQ,align 4
%aR=load i8*,i8**%d,align 8
%aS=bitcast i8*%aO to i8**
store i8*%aR,i8**%aS,align 8
%aT=load i8*,i8**%c,align 8
%aU=getelementptr inbounds i8,i8*%aO,i64 8
%aV=bitcast i8*%aU to i8**
store i8*%aT,i8**%aV,align 8
%aW=getelementptr inbounds i8,i8*%aO,i64 16
%aX=bitcast i8*%aW to i32*
store i32 3,i32*%aX,align 4
ret i8*%aO
}
define internal fastcc i8*@_SMLL8tryInput_287(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
k:
%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
store i8*%b,i8**%c,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%i,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%c,align 8
br label%i
i:
%j=phi i8*[%h,%g],[%b,%k]
%l=bitcast i8*%j to i8**
%m=load i8*,i8**%l,align 8
store i8*%m,i8**%c,align 8
%n=getelementptr inbounds i8,i8*%j,i64 8
%o=bitcast i8*%n to i32*
%p=load i32,i32*%o,align 4
%q=getelementptr inbounds i8,i8*%j,i64 12
%r=bitcast i8*%q to i32*
%s=load i32,i32*%r,align 4
%t=getelementptr inbounds i8,i8*%m,i64 8
%u=bitcast i8*%t to i8**
%v=load i8*,i8**%u,align 8
%w=call fastcc i32@_SMLFN11Word8Vector6lengthE(i8*inreg%v)
%x=call{i32,i1}@llvm.ssub.with.overflow.i32(i32%w,i32%p)#0
%y=extractvalue{i32,i1}%x,1
br i1%y,label%z,label%R
z:
store i8*null,i8**%d,align 8
%A=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%A,i8**%c,align 8
%B=call i8*@sml_alloc(i32 inreg 20)#0
%C=getelementptr inbounds i8,i8*%B,i64 -4
%D=bitcast i8*%C to i32*
store i32 1342177296,i32*%D,align 4
store i8*%B,i8**%d,align 8
%E=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%F=bitcast i8*%B to i8**
store i8*%E,i8**%F,align 8
%G=getelementptr inbounds i8,i8*%B,i64 8
%H=bitcast i8*%G to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@x,i64 0,i32 2,i64 0),i8**%H,align 8
%I=getelementptr inbounds i8,i8*%B,i64 16
%J=bitcast i8*%I to i32*
store i32 3,i32*%J,align 4
%K=call i8*@sml_alloc(i32 inreg 60)#0
%L=getelementptr inbounds i8,i8*%K,i64 -4
%M=bitcast i8*%L to i32*
store i32 1342177336,i32*%M,align 4
%N=getelementptr inbounds i8,i8*%K,i64 56
%O=bitcast i8*%N to i32*
store i32 1,i32*%O,align 4
%P=load i8*,i8**%d,align 8
%Q=bitcast i8*%K to i8**
store i8*%P,i8**%Q,align 8
call void@sml_raise(i8*inreg%K)#1
unreachable
R:
%S=sub nsw i32%w,%p
%T=icmp sgt i32%s,%S
br i1%T,label%ad,label%U
U:
store i8*null,i8**%c,align 8
store i8*null,i8**%d,align 8
%V=call i8*@sml_alloc(i32 inreg 12)#0
%W=bitcast i8*%V to i32*
%X=getelementptr inbounds i8,i8*%V,i64 -4
%Y=bitcast i8*%X to i32*
store i32 1342177288,i32*%Y,align 4
%Z=getelementptr inbounds i8,i8*%V,i64 4
%aa=bitcast i8*%Z to i32*
store i32 0,i32*%aa,align 1
store i32%s,i32*%W,align 4
%ab=getelementptr inbounds i8,i8*%V,i64 8
%ac=bitcast i8*%ab to i32*
store i32 0,i32*%ac,align 4
ret i8*%V
ad:
%ae=call{i32,i1}@llvm.ssub.with.overflow.i32(i32%s,i32%S)#0
%af=extractvalue{i32,i1}%ae,1
br i1%af,label%ag,label%ay
ag:
store i8*null,i8**%d,align 8
%ah=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%ah,i8**%c,align 8
%ai=call i8*@sml_alloc(i32 inreg 20)#0
%aj=getelementptr inbounds i8,i8*%ai,i64 -4
%ak=bitcast i8*%aj to i32*
store i32 1342177296,i32*%ak,align 4
store i8*%ai,i8**%d,align 8
%al=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%am=bitcast i8*%ai to i8**
store i8*%al,i8**%am,align 8
%an=getelementptr inbounds i8,i8*%ai,i64 8
%ao=bitcast i8*%an to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@y,i64 0,i32 2,i64 0),i8**%ao,align 8
%ap=getelementptr inbounds i8,i8*%ai,i64 16
%aq=bitcast i8*%ap to i32*
store i32 3,i32*%aq,align 4
%ar=call i8*@sml_alloc(i32 inreg 60)#0
%as=getelementptr inbounds i8,i8*%ar,i64 -4
%at=bitcast i8*%as to i32*
store i32 1342177336,i32*%at,align 4
%au=getelementptr inbounds i8,i8*%ar,i64 56
%av=bitcast i8*%au to i32*
store i32 1,i32*%av,align 4
%aw=load i8*,i8**%d,align 8
%ax=bitcast i8*%ar to i8**
store i8*%aw,i8**%ax,align 8
call void@sml_raise(i8*inreg%ar)#1
unreachable
ay:
%az=sub nsw i32%s,%S
%aA=call i8*@sml_alloc(i32 inreg 20)#0
%aB=getelementptr inbounds i8,i8*%aA,i64 -4
%aC=bitcast i8*%aB to i32*
store i32 1342177296,i32*%aC,align 4
%aD=getelementptr inbounds i8,i8*%aA,i64 12
%aE=bitcast i8*%aD to i32*
store i32 0,i32*%aE,align 1
%aF=load i8*,i8**%c,align 8
%aG=bitcast i8*%aA to i8**
store i8*%aF,i8**%aG,align 8
%aH=getelementptr inbounds i8,i8*%aA,i64 8
%aI=bitcast i8*%aH to i32*
store i32%az,i32*%aI,align 4
%aJ=getelementptr inbounds i8,i8*%aA,i64 16
%aK=bitcast i8*%aJ to i32*
store i32 1,i32*%aK,align 4
%aL=load i8*,i8**%d,align 8
%aM=tail call fastcc i8*@_SMLL7nextBuf_288(i8*inreg%aL,i8*inreg%aA)
ret i8*%aM
}
define internal fastcc i8*@_SMLL7nextBuf_288(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"personality i32(...)*@sml_personality{
l:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%b,i8**%c,align 8
store i8*%a,i8**%e,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%j,label%h
h:
call void@sml_check(i32 inreg%f)
%i=load i8*,i8**%c,align 8
br label%j
j:
%k=phi i8*[%i,%h],[%b,%l]
%m=bitcast i8*%k to i8**
%n=load i8*,i8**%m,align 8
%o=getelementptr inbounds i8,i8*%k,i64 8
%p=bitcast i8*%o to i32*
%q=load i32,i32*%p,align 4
%r=getelementptr inbounds i8,i8*%n,i64 24
%s=bitcast i8*%r to i8***
%t=load i8**,i8***%s,align 8
%u=load i8*,i8**%t,align 8
%v=bitcast i8*%u to i32*
%w=load i32,i32*%v,align 4
switch i32%w,label%x[
i32 1,label%dn
i32 0,label%cO
i32 2,label%ay
i32 3,label%P
]
x:
store i8*null,i8**%e,align 8
call void@sml_matchcomp_bug()
%y=load i8*,i8**@_SMLZ5Match,align 8
store i8*%y,i8**%c,align 8
%z=call i8*@sml_alloc(i32 inreg 20)#0
%A=getelementptr inbounds i8,i8*%z,i64 -4
%B=bitcast i8*%A to i32*
store i32 1342177296,i32*%B,align 4
store i8*%z,i8**%d,align 8
%C=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%D=bitcast i8*%z to i8**
store i8*%C,i8**%D,align 8
%E=getelementptr inbounds i8,i8*%z,i64 8
%F=bitcast i8*%E to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@E,i64 0,i32 2,i64 0),i8**%F,align 8
%G=getelementptr inbounds i8,i8*%z,i64 16
%H=bitcast i8*%G to i32*
store i32 3,i32*%H,align 4
%I=call i8*@sml_alloc(i32 inreg 60)#0
%J=getelementptr inbounds i8,i8*%I,i64 -4
%K=bitcast i8*%J to i32*
store i32 1342177336,i32*%K,align 4
%L=getelementptr inbounds i8,i8*%I,i64 56
%M=bitcast i8*%L to i32*
store i32 1,i32*%M,align 4
%N=load i8*,i8**%d,align 8
%O=bitcast i8*%I to i8**
store i8*%N,i8**%O,align 8
call void@sml_raise(i8*inreg%I)#1
unreachable
P:
%Q=load i8*,i8**%e,align 8
%R=getelementptr inbounds i8,i8*%Q,i64 16
%S=bitcast i8*%R to i32*
%T=load i32,i32*%S,align 4
%U=call{i32,i1}@llvm.ssub.with.overflow.i32(i32%T,i32%q)#0
%V=extractvalue{i32,i1}%U,1
store i8*null,i8**%e,align 8
br i1%V,label%W,label%ao
W:
%X=load i8*,i8**@_SMLZ8Overflow,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
%aa=bitcast i8*%Z to i32*
store i32 1342177296,i32*%aa,align 4
store i8*%Y,i8**%d,align 8
%ab=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ac=bitcast i8*%Y to i8**
store i8*%ab,i8**%ac,align 8
%ad=getelementptr inbounds i8,i8*%Y,i64 8
%ae=bitcast i8*%ad to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@D,i64 0,i32 2,i64 0),i8**%ae,align 8
%af=getelementptr inbounds i8,i8*%Y,i64 16
%ag=bitcast i8*%af to i32*
store i32 3,i32*%ag,align 4
%ah=call i8*@sml_alloc(i32 inreg 60)#0
%ai=getelementptr inbounds i8,i8*%ah,i64 -4
%aj=bitcast i8*%ai to i32*
store i32 1342177336,i32*%aj,align 4
%ak=getelementptr inbounds i8,i8*%ah,i64 56
%al=bitcast i8*%ak to i32*
store i32 1,i32*%al,align 4
%am=load i8*,i8**%d,align 8
%an=bitcast i8*%ah to i8**
store i8*%am,i8**%an,align 8
call void@sml_raise(i8*inreg%ah)#1
unreachable
ao:
%ap=sub nsw i32%T,%q
%aq=call i8*@sml_alloc(i32 inreg 12)#0
%ar=bitcast i8*%aq to i32*
%as=getelementptr inbounds i8,i8*%aq,i64 -4
%at=bitcast i8*%as to i32*
store i32 1342177288,i32*%at,align 4
%au=getelementptr inbounds i8,i8*%aq,i64 4
%av=bitcast i8*%au to i32*
store i32 0,i32*%av,align 1
store i32%ap,i32*%ar,align 4
%aw=getelementptr inbounds i8,i8*%aq,i64 8
%ax=bitcast i8*%aw to i32*
store i32 0,i32*%ax,align 4
ret i8*%aq
ay:
%az=bitcast i8**%e to i8***
%aA=load i8**,i8***%az,align 8
%aB=load i8*,i8**%aA,align 8
store i8*%aB,i8**%c,align 8
%aC=getelementptr inbounds i8*,i8**%aA,i64 1
%aD=load i8*,i8**%aC,align 8
store i8*%aD,i8**%d,align 8
%aE=call i8*@sml_alloc(i32 inreg 28)#0
%aF=getelementptr inbounds i8,i8*%aE,i64 -4
%aG=bitcast i8*%aF to i32*
store i32 1342177304,i32*%aG,align 4
%aH=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aI=bitcast i8*%aE to i8**
store i8*%aH,i8**%aI,align 8
%aJ=getelementptr inbounds i8,i8*%aE,i64 8
%aK=bitcast i8*%aJ to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[9x i8]}>,<{[4x i8],i32,[9x i8]}>*@A,i64 0,i32 2,i64 0),i8**%aK,align 8
%aL=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aM=getelementptr inbounds i8,i8*%aE,i64 16
%aN=bitcast i8*%aM to i8**
store i8*%aL,i8**%aN,align 8
%aO=getelementptr inbounds i8,i8*%aE,i64 24
%aP=bitcast i8*%aO to i32*
store i32 7,i32*%aP,align 4
%aQ=invoke fastcc i8*@_SMLLN5BinIO8StreamIO12extendStreamE_238(i8*inreg%aE)
to label%aR unwind label%bE
aR:
%aS=bitcast i8*%aQ to i32*
%aT=load i32,i32*%aS,align 4
%aU=icmp eq i32%aT,1
br i1%aU,label%bn,label%aV
aV:
%aW=load i8*,i8**%e,align 8
%aX=getelementptr inbounds i8,i8*%aW,i64 16
%aY=bitcast i8*%aX to i32*
%aZ=load i32,i32*%aY,align 4
%a0=call{i32,i1}@llvm.ssub.with.overflow.i32(i32%aZ,i32%q)#0
%a1=extractvalue{i32,i1}%a0,1
br i1%a1,label%a2,label%bd
a2:
%a3=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%a3,i8**%c,align 8
%a4=call i8*@sml_alloc(i32 inreg 20)#0
%a5=getelementptr inbounds i8,i8*%a4,i64 -4
%a6=bitcast i8*%a5 to i32*
store i32 1342177296,i32*%a6,align 4
%a7=load i8*,i8**%c,align 8
%a8=bitcast i8*%a4 to i8**
store i8*%a7,i8**%a8,align 8
%a9=getelementptr inbounds i8,i8*%a4,i64 8
%ba=bitcast i8*%a9 to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@B,i64 0,i32 2,i64 0),i8**%ba,align 8
%bb=getelementptr inbounds i8,i8*%a4,i64 16
%bc=bitcast i8*%bb to i32*
store i32 3,i32*%bc,align 4
br label%bK
bd:
store i8*null,i8**%e,align 8
%be=sub nsw i32%aZ,%q
%bf=call i8*@sml_alloc(i32 inreg 12)#0
%bg=bitcast i8*%bf to i32*
%bh=getelementptr inbounds i8,i8*%bf,i64 -4
%bi=bitcast i8*%bh to i32*
store i32 1342177288,i32*%bi,align 4
%bj=getelementptr inbounds i8,i8*%bf,i64 4
%bk=bitcast i8*%bj to i32*
store i32 0,i32*%bk,align 1
store i32%be,i32*%bg,align 4
%bl=getelementptr inbounds i8,i8*%bf,i64 8
%bm=bitcast i8*%bl to i32*
store i32 0,i32*%bm,align 4
br label%cM
bn:
%bo=getelementptr inbounds i8,i8*%aQ,i64 8
%bp=bitcast i8*%bo to i8**
%bq=load i8*,i8**%bp,align 8
store i8*%bq,i8**%c,align 8
%br=call i8*@sml_alloc(i32 inreg 20)#0
%bs=getelementptr inbounds i8,i8*%br,i64 -4
%bt=bitcast i8*%bs to i32*
store i32 1342177296,i32*%bt,align 4
%bu=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bv=bitcast i8*%br to i8**
store i8*%bu,i8**%bv,align 8
%bw=getelementptr inbounds i8,i8*%br,i64 8
%bx=bitcast i8*%bw to i32*
store i32 0,i32*%bx,align 4
%by=getelementptr inbounds i8,i8*%br,i64 12
%bz=bitcast i8*%by to i32*
store i32%q,i32*%bz,align 4
%bA=getelementptr inbounds i8,i8*%br,i64 16
%bB=bitcast i8*%bA to i32*
store i32 1,i32*%bB,align 4
%bC=load i8*,i8**%e,align 8
%bD=invoke fastcc i8*@_SMLL8tryInput_287(i8*inreg%bC,i8*inreg%br)
to label%cM unwind label%bE
bE:
%bF=landingpad{i8*,i8*}
catch i8*null
%bG=extractvalue{i8*,i8*}%bF,1
%bH=bitcast i8*%bG to i8**
%bI=load i8*,i8**%bH,align 8
%bJ=bitcast i8*%bI to i8**
br label%bK
bK:
%bL=phi i8**[%bJ,%bE],[%a8,%a2]
%bM=phi i8*[%bI,%bE],[%a4,%a2]
store i8*%bM,i8**%c,align 8
%bN=load i8*,i8**%bL,align 8
%bO=load i8*,i8**@_SMLZN2IO2IoE,align 8
%bP=icmp eq i8*%bN,%bO
br i1%bP,label%bQ,label%cE
bQ:
%bR=getelementptr inbounds i8,i8*%bM,i64 16
%bS=bitcast i8*%bR to i8****
%bT=load i8***,i8****%bS,align 8
%bU=load i8**,i8***%bT,align 8
%bV=load i8*,i8**%bU,align 8
%bW=icmp eq i8*%bV,bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*}>,<{[4x i8],i32,i8*}>*@_SMLDL236,i64 0,i32 2)to i8*)
br i1%bW,label%bX,label%cw
bX:
%bY=load i8*,i8**%e,align 8
%bZ=getelementptr inbounds i8,i8*%bY,i64 16
%b0=bitcast i8*%bZ to i32*
%b1=load i32,i32*%b0,align 4
%b2=call{i32,i1}@llvm.ssub.with.overflow.i32(i32%b1,i32%q)#0
%b3=extractvalue{i32,i1}%b2,1
store i8*null,i8**%e,align 8
br i1%b3,label%b4,label%cm
b4:
%b5=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%b5,i8**%c,align 8
%b6=call i8*@sml_alloc(i32 inreg 20)#0
%b7=getelementptr inbounds i8,i8*%b6,i64 -4
%b8=bitcast i8*%b7 to i32*
store i32 1342177296,i32*%b8,align 4
store i8*%b6,i8**%d,align 8
%b9=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ca=bitcast i8*%b6 to i8**
store i8*%b9,i8**%ca,align 8
%cb=getelementptr inbounds i8,i8*%b6,i64 8
%cc=bitcast i8*%cb to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@C,i64 0,i32 2,i64 0),i8**%cc,align 8
%cd=getelementptr inbounds i8,i8*%b6,i64 16
%ce=bitcast i8*%cd to i32*
store i32 3,i32*%ce,align 4
%cf=call i8*@sml_alloc(i32 inreg 60)#0
%cg=getelementptr inbounds i8,i8*%cf,i64 -4
%ch=bitcast i8*%cg to i32*
store i32 1342177336,i32*%ch,align 4
%ci=getelementptr inbounds i8,i8*%cf,i64 56
%cj=bitcast i8*%ci to i32*
store i32 1,i32*%cj,align 4
%ck=load i8*,i8**%d,align 8
%cl=bitcast i8*%cf to i8**
store i8*%ck,i8**%cl,align 8
call void@sml_raise(i8*inreg%cf)#1
unreachable
cm:
%cn=sub nsw i32%b1,%q
%co=call i8*@sml_alloc(i32 inreg 12)#0
%cp=bitcast i8*%co to i32*
%cq=getelementptr inbounds i8,i8*%co,i64 -4
%cr=bitcast i8*%cq to i32*
store i32 1342177288,i32*%cr,align 4
%cs=getelementptr inbounds i8,i8*%co,i64 4
%ct=bitcast i8*%cs to i32*
store i32 0,i32*%ct,align 1
store i32%cn,i32*%cp,align 4
%cu=getelementptr inbounds i8,i8*%co,i64 8
%cv=bitcast i8*%cu to i32*
store i32 0,i32*%cv,align 4
ret i8*%co
cw:
store i8*null,i8**%e,align 8
%cx=call i8*@sml_alloc(i32 inreg 60)#0
%cy=getelementptr inbounds i8,i8*%cx,i64 -4
%cz=bitcast i8*%cy to i32*
store i32 1342177336,i32*%cz,align 4
%cA=getelementptr inbounds i8,i8*%cx,i64 56
%cB=bitcast i8*%cA to i32*
store i32 1,i32*%cB,align 4
%cC=load i8*,i8**%c,align 8
%cD=bitcast i8*%cx to i8**
store i8*%cC,i8**%cD,align 8
call void@sml_raise(i8*inreg%cx)#1
unreachable
cE:
store i8*null,i8**%e,align 8
%cF=call i8*@sml_alloc(i32 inreg 60)#0
%cG=getelementptr inbounds i8,i8*%cF,i64 -4
%cH=bitcast i8*%cG to i32*
store i32 1342177336,i32*%cH,align 4
%cI=getelementptr inbounds i8,i8*%cF,i64 56
%cJ=bitcast i8*%cI to i32*
store i32 1,i32*%cJ,align 4
%cK=load i8*,i8**%c,align 8
%cL=bitcast i8*%cF to i8**
store i8*%cK,i8**%cL,align 8
call void@sml_raise(i8*inreg%cF)#1
unreachable
cM:
%cN=phi i8*[%bf,%bd],[%bD,%bn]
ret i8*%cN
cO:
%cP=load i8*,i8**%e,align 8
%cQ=getelementptr inbounds i8,i8*%cP,i64 16
%cR=bitcast i8*%cQ to i32*
%cS=load i32,i32*%cR,align 4
%cT=call{i32,i1}@llvm.ssub.with.overflow.i32(i32%cS,i32%q)#0
%cU=extractvalue{i32,i1}%cT,1
store i8*null,i8**%e,align 8
br i1%cU,label%cV,label%dd
cV:
%cW=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%cW,i8**%c,align 8
%cX=call i8*@sml_alloc(i32 inreg 20)#0
%cY=getelementptr inbounds i8,i8*%cX,i64 -4
%cZ=bitcast i8*%cY to i32*
store i32 1342177296,i32*%cZ,align 4
store i8*%cX,i8**%d,align 8
%c0=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%c1=bitcast i8*%cX to i8**
store i8*%c0,i8**%c1,align 8
%c2=getelementptr inbounds i8,i8*%cX,i64 8
%c3=bitcast i8*%c2 to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@z,i64 0,i32 2,i64 0),i8**%c3,align 8
%c4=getelementptr inbounds i8,i8*%cX,i64 16
%c5=bitcast i8*%c4 to i32*
store i32 3,i32*%c5,align 4
%c6=call i8*@sml_alloc(i32 inreg 60)#0
%c7=getelementptr inbounds i8,i8*%c6,i64 -4
%c8=bitcast i8*%c7 to i32*
store i32 1342177336,i32*%c8,align 4
%c9=getelementptr inbounds i8,i8*%c6,i64 56
%da=bitcast i8*%c9 to i32*
store i32 1,i32*%da,align 4
%db=load i8*,i8**%d,align 8
%dc=bitcast i8*%c6 to i8**
store i8*%db,i8**%dc,align 8
call void@sml_raise(i8*inreg%c6)#1
unreachable
dd:
%de=sub nsw i32%cS,%q
%df=call i8*@sml_alloc(i32 inreg 12)#0
%dg=bitcast i8*%df to i32*
%dh=getelementptr inbounds i8,i8*%df,i64 -4
%di=bitcast i8*%dh to i32*
store i32 1342177288,i32*%di,align 4
%dj=getelementptr inbounds i8,i8*%df,i64 4
%dk=bitcast i8*%dj to i32*
store i32 0,i32*%dk,align 1
store i32%de,i32*%dg,align 4
%dl=getelementptr inbounds i8,i8*%df,i64 8
%dm=bitcast i8*%dl to i32*
store i32 0,i32*%dm,align 4
ret i8*%df
dn:
%do=getelementptr inbounds i8,i8*%u,i64 8
%dp=bitcast i8*%do to i8**
%dq=load i8*,i8**%dp,align 8
store i8*%dq,i8**%c,align 8
%dr=call i8*@sml_alloc(i32 inreg 20)#0
%ds=getelementptr inbounds i8,i8*%dr,i64 -4
%dt=bitcast i8*%ds to i32*
store i32 1342177296,i32*%dt,align 4
%du=load i8*,i8**%c,align 8
%dv=bitcast i8*%dr to i8**
store i8*%du,i8**%dv,align 8
%dw=getelementptr inbounds i8,i8*%dr,i64 8
%dx=bitcast i8*%dw to i32*
store i32 0,i32*%dx,align 4
%dy=getelementptr inbounds i8,i8*%dr,i64 12
%dz=bitcast i8*%dy to i32*
store i32%q,i32*%dz,align 4
%dA=getelementptr inbounds i8,i8*%dr,i64 16
%dB=bitcast i8*%dA to i32*
store i32 1,i32*%dB,align 4
%dC=load i8*,i8**%e,align 8
%dD=tail call fastcc i8*@_SMLL8tryInput_287(i8*inreg%dC,i8*inreg%dr)
ret i8*%dD
}
define fastcc i8*@_SMLFN5BinIO8StreamIO8canInputE(i8*inreg%a)#2 gc"smlsharp"{
m:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
store i8*%a,i8**%b,align 8
%g=load atomic i32,i32*@sml_check_flag unordered,align 4
%h=icmp eq i32%g,0
br i1%h,label%k,label%i
i:
call void@sml_check(i32 inreg%g)
%j=load i8*,i8**%b,align 8
br label%k
k:
%l=phi i8*[%j,%i],[%a,%m]
%n=bitcast i8*%l to i8**
%o=load i8*,i8**%n,align 8
%p=bitcast i8*%o to i8**
%q=load i8*,i8**%p,align 8
store i8*%q,i8**%c,align 8
%r=getelementptr inbounds i8,i8*%o,i64 8
%s=bitcast i8*%r to i32*
%t=load i32,i32*%s,align 4
%u=getelementptr inbounds i8,i8*%l,i64 8
%v=bitcast i8*%u to i32*
%w=load i32,i32*%v,align 4
%x=getelementptr inbounds i8,i8*%q,i64 16
%y=bitcast i8*%x to i8**
%z=load i8*,i8**%y,align 8
store i8*%z,i8**%b,align 8
%A=getelementptr inbounds i8,i8*%z,i64 32
%B=bitcast i8*%A to i8**
%C=load i8*,i8**%B,align 8
%D=icmp eq i8*%C,null
br i1%D,label%E,label%ac
E:
store i8*null,i8**%e,align 8
%F=load i8*,i8**@_SMLZN2IO23NonblockingNotSupportedE,align 8
store i8*%F,i8**%d,align 8
%G=call i8*@sml_alloc(i32 inreg 20)#0
%H=getelementptr inbounds i8,i8*%G,i64 -4
%I=bitcast i8*%H to i32*
store i32 1342177296,i32*%I,align 4
store i8*%G,i8**%f,align 8
%J=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%K=bitcast i8*%G to i8**
store i8*%J,i8**%K,align 8
%L=getelementptr inbounds i8,i8*%G,i64 8
%M=bitcast i8*%L to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@w,i64 0,i32 2,i64 0),i8**%M,align 8
%N=getelementptr inbounds i8,i8*%G,i64 16
%O=bitcast i8*%N to i32*
store i32 3,i32*%O,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
%S=load i8*,i8**%b,align 8
store i8*null,i8**%b,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 i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[9x i8]}>,<{[4x i8],i32,[9x i8]}>*@A,i64 0,i32 2,i64 0),i8**%V,align 8
%W=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%X=getelementptr inbounds i8,i8*%P,i64 16
%Y=bitcast i8*%X to i8**
store i8*%W,i8**%Y,align 8
%Z=getelementptr inbounds i8,i8*%P,i64 24
%aa=bitcast i8*%Z to i32*
store i32 7,i32*%aa,align 4
store i8*null,i8**%e,align 8
%ab=call fastcc i8*@_SMLLN5BinIO8StreamIO8inputExnE_230(i8*inreg%P)
unreachable
ac:
%ad=bitcast i8*%C to i8**
store i8*null,i8**%b,align 8
%ae=load i8*,i8**%ad,align 8
store i8*%ae,i8**%b,align 8
%af=call i8*@sml_alloc(i32 inreg 28)#0
%ag=getelementptr inbounds i8,i8*%af,i64 -4
%ah=bitcast i8*%ag to i32*
store i32 1342177304,i32*%ah,align 4
store i8*%af,i8**%d,align 8
%ai=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aj=bitcast i8*%af to i8**
store i8*%ai,i8**%aj,align 8
%ak=load i8*,i8**%c,align 8
%al=getelementptr inbounds i8,i8*%af,i64 8
%am=bitcast i8*%al to i8**
store i8*%ak,i8**%am,align 8
%an=getelementptr inbounds i8,i8*%af,i64 16
%ao=bitcast i8*%an to i32*
store i32%w,i32*%ao,align 4
%ap=getelementptr inbounds i8,i8*%af,i64 24
%aq=bitcast i8*%ap to i32*
store i32 3,i32*%aq,align 4
%ar=call i8*@sml_alloc(i32 inreg 28)#0
%as=getelementptr inbounds i8,i8*%ar,i64 -4
%at=bitcast i8*%as to i32*
store i32 1342177304,i32*%at,align 4
%au=load i8*,i8**%d,align 8
%av=bitcast i8*%ar to i8**
store i8*%au,i8**%av,align 8
%aw=getelementptr inbounds i8,i8*%ar,i64 8
%ax=bitcast i8*%aw to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL8tryInput_287 to void(...)*),void(...)**%ax,align 8
%ay=getelementptr inbounds i8,i8*%ar,i64 16
%az=bitcast i8*%ay to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL8tryInput_287 to void(...)*),void(...)**%az,align 8
%aA=getelementptr inbounds i8,i8*%ar,i64 24
%aB=bitcast i8*%aA to i32*
store i32 -2147483647,i32*%aB,align 4
%aC=call i8*@sml_alloc(i32 inreg 28)#0
%aD=getelementptr inbounds i8,i8*%aC,i64 -4
%aE=bitcast i8*%aD to i32*
store i32 1342177304,i32*%aE,align 4
%aF=load i8*,i8**%d,align 8
%aG=bitcast i8*%aC to i8**
store i8*%aF,i8**%aG,align 8
%aH=getelementptr inbounds i8,i8*%aC,i64 8
%aI=bitcast i8*%aH to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL7nextBuf_288 to void(...)*),void(...)**%aI,align 8
%aJ=getelementptr inbounds i8,i8*%aC,i64 16
%aK=bitcast i8*%aJ to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL7nextBuf_288 to void(...)*),void(...)**%aK,align 8
%aL=getelementptr inbounds i8,i8*%aC,i64 24
%aM=bitcast i8*%aL to i32*
store i32 -2147483647,i32*%aM,align 4
%aN=icmp sgt i32%w,-1
br i1%aN,label%a6,label%aO
aO:
store i8*null,i8**%c,align 8
store i8*null,i8**%d,align 8
%aP=load i8*,i8**@_SMLZ4Size,align 8
store i8*%aP,i8**%b,align 8
%aQ=call i8*@sml_alloc(i32 inreg 20)#0
%aR=getelementptr inbounds i8,i8*%aQ,i64 -4
%aS=bitcast i8*%aR to i32*
store i32 1342177296,i32*%aS,align 4
store i8*%aQ,i8**%c,align 8
%aT=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aU=bitcast i8*%aQ to i8**
store i8*%aT,i8**%aU,align 8
%aV=getelementptr inbounds i8,i8*%aQ,i64 8
%aW=bitcast i8*%aV to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@F,i64 0,i32 2,i64 0),i8**%aW,align 8
%aX=getelementptr inbounds i8,i8*%aQ,i64 16
%aY=bitcast i8*%aX to i32*
store i32 3,i32*%aY,align 4
%aZ=call i8*@sml_alloc(i32 inreg 60)#0
%a0=getelementptr inbounds i8,i8*%aZ,i64 -4
%a1=bitcast i8*%a0 to i32*
store i32 1342177336,i32*%a1,align 4
%a2=getelementptr inbounds i8,i8*%aZ,i64 56
%a3=bitcast i8*%a2 to i32*
store i32 1,i32*%a3,align 4
%a4=load i8*,i8**%c,align 8
%a5=bitcast i8*%aZ to i8**
store i8*%a4,i8**%a5,align 8
call void@sml_raise(i8*inreg%aZ)#1
unreachable
a6:
%a7=call i8*@sml_alloc(i32 inreg 20)#0
%a8=getelementptr inbounds i8,i8*%a7,i64 -4
%a9=bitcast i8*%a8 to i32*
store i32 1342177296,i32*%a9,align 4
%ba=load i8*,i8**%c,align 8
%bb=bitcast i8*%a7 to i8**
store i8*%ba,i8**%bb,align 8
%bc=getelementptr inbounds i8,i8*%a7,i64 8
%bd=bitcast i8*%bc to i32*
store i32%t,i32*%bd,align 4
%be=getelementptr inbounds i8,i8*%a7,i64 12
%bf=bitcast i8*%be to i32*
store i32%w,i32*%bf,align 4
%bg=getelementptr inbounds i8,i8*%a7,i64 16
%bh=bitcast i8*%bg to i32*
store i32 1,i32*%bh,align 4
%bi=load i8*,i8**%d,align 8
%bj=tail call fastcc i8*@_SMLL8tryInput_287(i8*inreg%bi,i8*inreg%a7)
ret i8*%bj
}
define fastcc void@_SMLFN5BinIO8StreamIO7closeInE(i8*inreg%a)#2 gc"smlsharp"personality i32(...)*@sml_personality{
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%b,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%g,label%i
g:
%h=bitcast i8*%a to i8**
br label%l
i:
call void@sml_check(i32 inreg%e)
%j=bitcast i8**%b to i8***
%k=load i8**,i8***%j,align 8
br label%l
l:
%m=phi i8**[%k,%i],[%h,%g]
%n=load i8*,i8**%m,align 8
%o=getelementptr inbounds i8,i8*%n,i64 16
%p=bitcast i8*%o to i8**
%q=load i8*,i8**%p,align 8
store i8*%q,i8**%b,align 8
%r=getelementptr inbounds i8,i8*%q,i64 8
%s=bitcast i8*%r to i8**
%t=load i8*,i8**%s,align 8
store i8*%t,i8**%c,align 8
%u=bitcast i8*%t to i32*
%v=load i32,i32*%u,align 4
%w=icmp eq i32%v,0
br i1%w,label%y,label%x
x:
ret void
y:
%z=getelementptr inbounds i8,i8*%q,i64 40
%A=bitcast i8*%z to i8**
%B=load i8*,i8**%A,align 8
store i8*%B,i8**%d,align 8
call fastcc void@_SMLLN5BinIO8StreamIO9terminateE_259(i8*inreg%q)
%C=bitcast i8**%c to i32**
%D=load i32*,i32**%C,align 8
store i32 1,i32*%D,align 4
%E=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%F=getelementptr inbounds i8,i8*%E,i64 32
%G=bitcast i8*%F to i8**
%H=load i8*,i8**%G,align 8
%I=getelementptr inbounds i8,i8*%H,i64 16
%J=bitcast i8*%I to i8*(i8*,i8*)**
%K=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%J,align 8
%L=bitcast i8*%H to i8**
%M=load i8*,i8**%L,align 8
store i8*%M,i8**%c,align 8
%N=call i8*@sml_alloc(i32 inreg 4)#0
%O=bitcast i8*%N to i32*
%P=getelementptr inbounds i8,i8*%N,i64 -4
%Q=bitcast i8*%P to i32*
store i32 4,i32*%Q,align 4
store i32 0,i32*%O,align 4
%R=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%S=invoke fastcc i8*%K(i8*inreg%R,i8*inreg%N)
to label%x unwind label%T
T:
%U=landingpad{i8*,i8*}
catch i8*null
%V=extractvalue{i8*,i8*}%U,1
%W=bitcast i8*%V to i8**
%X=load i8*,i8**%W,align 8
store i8*%X,i8**%d,align 8
store i8*null,i8**%c,align 8
%Y=call i8*@sml_alloc(i32 inreg 28)#0
%Z=getelementptr inbounds i8,i8*%Y,i64 -4
%aa=bitcast i8*%Z to i32*
store i32 1342177304,i32*%aa,align 4
%ab=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%ac=bitcast i8*%Y to i8**
store i8*%ab,i8**%ac,align 8
%ad=getelementptr inbounds i8,i8*%Y,i64 8
%ae=bitcast i8*%ad to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[8x i8]}>,<{[4x i8],i32,[8x i8]}>*@H,i64 0,i32 2,i64 0),i8**%ae,align 8
%af=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%ag=getelementptr inbounds i8,i8*%Y,i64 16
%ah=bitcast i8*%ag to i8**
store i8*%af,i8**%ah,align 8
%ai=getelementptr inbounds i8,i8*%Y,i64 24
%aj=bitcast i8*%ai to i32*
store i32 7,i32*%aj,align 4
store i8*null,i8**%c,align 8
%ak=call fastcc i8*@_SMLLN5BinIO8StreamIO8inputExnE_230(i8*inreg%Y)
unreachable
}
define fastcc i32@_SMLFN5BinIO8StreamIO11endOfStreamE(i8*inreg%a)#2 gc"smlsharp"{
k:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%b,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%i,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%b,align 8
br label%i
i:
%j=phi i8*[%h,%g],[%a,%k]
store i8*null,i8**%b,align 8
%l=bitcast i8*%j to i8**
%m=load i8*,i8**%l,align 8
store i8*%m,i8**%c,align 8
%n=getelementptr inbounds i8,i8*%j,i64 8
%o=bitcast i8*%n to i32*
%p=load i32,i32*%o,align 4
%q=getelementptr inbounds i8,i8*%m,i64 16
%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*%m,i64 24
%u=bitcast i8*%t to i32***
%v=load i32**,i32***%u,align 8
%w=load i32*,i32**%v,align 8
%x=load i32,i32*%w,align 4
%y=icmp eq i32%x,1
br i1%y,label%aF,label%z
z:
%A=getelementptr inbounds i8,i8*%m,i64 8
%B=bitcast i8*%A to i8**
%C=load i8*,i8**%B,align 8
%D=call fastcc i32@_SMLFN11Word8Vector6lengthE(i8*inreg%C)
%E=icmp eq i32%p,%D
br i1%E,label%F,label%aF
F:
%G=load i8*,i8**%c,align 8
%H=getelementptr inbounds i8,i8*%G,i64 24
%I=bitcast i8*%H to i8***
%J=load i8**,i8***%I,align 8
%K=load i8*,i8**%J,align 8
store i8*%K,i8**%b,align 8
%L=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%M=getelementptr inbounds i8,i8*%L,i64 8
%N=bitcast i8*%M to i32**
%O=load i32*,i32**%N,align 8
%P=load i32,i32*%O,align 4
%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=getelementptr inbounds i8,i8*%Q,i64 12
%U=bitcast i8*%T to i32*
store i32 0,i32*%U,align 1
%V=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%W=bitcast i8*%Q to i8**
store i8*%V,i8**%W,align 8
%X=getelementptr inbounds i8,i8*%Q,i64 8
%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
%ab=bitcast i8*%V to i32*
%ac=load i32,i32*%ab,align 4
%ad=icmp eq i32%ac,2
%ae=icmp eq i32%P,0
%af=and i1%ae,%ad
br i1%af,label%ag,label%aF
ag:
%ah=load i8*,i8**%c,align 8
%ai=getelementptr inbounds i8,i8*%ah,i64 16
%aj=bitcast i8*%ai to i8**
%ak=load i8*,i8**%aj,align 8
%al=getelementptr inbounds i8,i8*%ak,i64 24
%am=bitcast i8*%al to i8**
%an=load i8*,i8**%am,align 8
store i8*%an,i8**%b,align 8
%ao=call i8*@sml_alloc(i32 inreg 28)#0
%ap=getelementptr inbounds i8,i8*%ao,i64 -4
%aq=bitcast i8*%ap to i32*
store i32 1342177304,i32*%aq,align 4
%ar=load i8*,i8**%b,align 8
store i8*null,i8**%b,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 i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[12x i8]}>,<{[4x i8],i32,[12x i8]}>*@J,i64 0,i32 2,i64 0),i8**%au,align 8
%av=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aw=getelementptr inbounds i8,i8*%ao,i64 16
%ax=bitcast i8*%aw to i8**
store i8*%av,i8**%ax,align 8
%ay=getelementptr inbounds i8,i8*%ao,i64 24
%az=bitcast i8*%ay to i32*
store i32 7,i32*%az,align 4
%aA=call fastcc i8*@_SMLLN5BinIO8StreamIO12extendStreamE_238(i8*inreg%ao)
%aB=bitcast i8*%aA to i32*
%aC=load i32,i32*%aB,align 4
%aD=icmp eq i32%aC,0
%aE=zext i1%aD to i32
br label%aF
aF:
%aG=phi i32[1,%F],[0,%z],[%aE,%ag],[0,%i]
ret i32%aG
}
define internal fastcc i8*@_SMLL8readVec_G_307(i32 inreg%a)#5 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=load i8*,i8**@_SMLZN2IO20BlockingNotSupportedE,align 8
store i8*%d,i8**%b,align 8
%e=call i8*@sml_alloc(i32 inreg 20)#0
%f=getelementptr inbounds i8,i8*%e,i64 -4
%g=bitcast i8*%f to i32*
store i32 1342177296,i32*%g,align 4
store i8*%e,i8**%c,align 8
%h=load i8*,i8**%b,align 8
store i8*null,i8**%b,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 i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@L,i64 0,i32 2,i64 0),i8**%k,align 8
%l=getelementptr inbounds i8,i8*%e,i64 16
%m=bitcast i8*%l to i32*
store i32 3,i32*%m,align 4
%n=call i8*@sml_alloc(i32 inreg 60)#0
%o=getelementptr inbounds i8,i8*%n,i64 -4
%p=bitcast i8*%o to i32*
store i32 1342177336,i32*%p,align 4
%q=getelementptr inbounds i8,i8*%n,i64 56
%r=bitcast i8*%q to i32*
store i32 1,i32*%r,align 4
%s=load i8*,i8**%c,align 8
%t=bitcast i8*%n to i8**
store i8*%s,i8**%t,align 8
call void@sml_raise(i8*inreg%n)#1
unreachable
}
define internal fastcc i8*@_SMLL10readVecNB_G_311(i8*inreg%a,i32 inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%c,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%f,label%h
f:
%g=bitcast i8*%a to i8**
br label%k
h:
call void@sml_check(i32 inreg%d)
%i=bitcast i8**%c to i8***
%j=load i8**,i8***%i,align 8
br label%k
k:
%l=phi i8**[%j,%h],[%g,%f]
%m=load i8*,i8**%l,align 8
%n=getelementptr inbounds i8,i8*%m,i64 16
%o=bitcast i8*%n to i8*(i8*,i8*)**
%p=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%o,align 8
%q=bitcast i8*%m to i8**
%r=load i8*,i8**%q,align 8
store i8*%r,i8**%c,align 8
%s=call i8*@sml_alloc(i32 inreg 4)#0
%t=bitcast i8*%s to i32*
%u=getelementptr inbounds i8,i8*%s,i64 -4
%v=bitcast i8*%u to i32*
store i32 4,i32*%v,align 4
store i32%b,i32*%t,align 4
%w=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%x=call fastcc i8*%p(i8*inreg%w,i8*inreg%s)
%y=icmp eq i8*%x,null
br i1%y,label%z,label%G
z:
%A=call i8*@sml_alloc(i32 inreg 60)#0
%B=getelementptr inbounds i8,i8*%A,i64 -4
%C=bitcast i8*%B to i32*
store i32 1342177336,i32*%C,align 4
%D=getelementptr inbounds i8,i8*%A,i64 56
%E=bitcast i8*%D to i32*
store i32 1,i32*%E,align 4
%F=bitcast i8*%A to i8**
store i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,i8*,i32}>,<{[4x i8],i32,i8*,i8*,i32}>*@O,i64 0,i32 2)to i8*),i8**%F,align 8
call void@sml_raise(i8*inreg%A)#1
unreachable
G:
%H=bitcast i8*%x to i8**
%I=load i8*,i8**%H,align 8
ret i8*%I
}
define internal fastcc i8*@_SMLL6getPos_312(i32 inreg%a)#4 gc"smlsharp"{
ret i8*null
}
define internal fastcc i8*@_SMLL6getPos_314(i8*inreg%a,i32 inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%c,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%f,label%h
f:
%g=bitcast i8*%a to i8**
br label%k
h:
call void@sml_check(i32 inreg%d)
%i=bitcast i8**%c to i8***
%j=load i8**,i8***%i,align 8
br label%k
k:
%l=phi i8**[%j,%h],[%g,%f]
%m=load i8*,i8**%l,align 8
%n=getelementptr inbounds i8,i8*%m,i64 16
%o=bitcast i8*%n to i8*(i8*,i8*)**
%p=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%o,align 8
%q=bitcast i8*%m to i8**
%r=load i8*,i8**%q,align 8
store i8*%r,i8**%c,align 8
%s=call i8*@sml_alloc(i32 inreg 4)#0
%t=bitcast i8*%s to i32*
%u=getelementptr inbounds i8,i8*%s,i64 -4
%v=bitcast i8*%u to i32*
store i32 4,i32*%v,align 4
store i32 0,i32*%t,align 4
%w=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%x=call fastcc i8*%p(i8*inreg%w,i8*inreg%s)
%y=bitcast i8*%x to i32*
%z=load i32,i32*%y,align 4
%A=call i8*@sml_alloc(i32 inreg 12)#0
%B=bitcast i8*%A to i32*
%C=getelementptr inbounds i8,i8*%A,i64 -4
%D=bitcast i8*%C to i32*
store i32 1342177288,i32*%D,align 4
%E=getelementptr inbounds i8,i8*%A,i64 4
%F=bitcast i8*%E to i32*
store i32 0,i32*%F,align 1
store i32%z,i32*%B,align 4
%G=getelementptr inbounds i8,i8*%A,i64 8
%H=bitcast i8*%G to i32*
store i32 0,i32*%H,align 4
ret i8*%A
}
define internal fastcc void@_SMLL3tag_316(i8*inreg%a,i32 inreg%b)#4 gc"smlsharp"{
%c=bitcast i8*%a to i32**
%d=load i32*,i32**%c,align 8
store i32 1,i32*%d,align 4
ret void
}
define fastcc i8*@_SMLFN5BinIO8StreamIO10mkInstreamE(i8*inreg%a)#2 gc"smlsharp"{
r:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
%h=alloca i8*,align 8
%i=alloca i8*,align 8
%j=alloca i8*,align 8
%k=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
call void@llvm.gcroot(i8**%h,i8*null)#0
call void@llvm.gcroot(i8**%i,i8*null)#0
call void@llvm.gcroot(i8**%j,i8*null)#0
call void@llvm.gcroot(i8**%k,i8*null)#0
store i8*%a,i8**%b,align 8
%l=load atomic i32,i32*@sml_check_flag unordered,align 4
%m=icmp eq i32%l,0
br i1%m,label%p,label%n
n:
call void@sml_check(i32 inreg%l)
%o=load i8*,i8**%b,align 8
br label%p
p:
%q=phi i8*[%o,%n],[%a,%r]
%s=bitcast i8*%q to i8**
%t=load i8*,i8**%s,align 8
store i8*%t,i8**%f,align 8
%u=getelementptr inbounds i8,i8*%q,i64 8
%v=bitcast i8*%u to i8**
%w=load i8*,i8**%v,align 8
store i8*%w,i8**%g,align 8
%x=getelementptr inbounds i8,i8*%t,i64 48
%y=bitcast i8*%x to i8**
%z=load i8*,i8**%y,align 8
store i8*%z,i8**%b,align 8
%A=getelementptr inbounds i8,i8*%t,i64 88
%B=bitcast i8*%A to i8**
%C=load i8*,i8**%B,align 8
store i8*%C,i8**%c,align 8
%D=getelementptr inbounds i8,i8*%t,i64 96
%E=bitcast i8*%D to i8**
%F=load i8*,i8**%E,align 8
store i8*%F,i8**%d,align 8
%G=getelementptr inbounds i8,i8*%t,i64 104
%H=bitcast i8*%G to i8**
%I=load i8*,i8**%H,align 8
store i8*%I,i8**%e,align 8
%J=call i8*@sml_alloc(i32 inreg 36)#0
%K=getelementptr inbounds i8,i8*%J,i64 -4
%L=bitcast i8*%K to i32*
store i32 1342177312,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=load i8*,i8**%d,align 8
%P=getelementptr inbounds i8,i8*%J,i64 8
%Q=bitcast i8*%P to i8**
store i8*%O,i8**%Q,align 8
%R=load i8*,i8**%b,align 8
%S=getelementptr inbounds i8,i8*%J,i64 16
%T=bitcast i8*%S to i8**
store i8*%R,i8**%T,align 8
%U=load i8*,i8**%e,align 8
%V=getelementptr inbounds i8,i8*%J,i64 24
%W=bitcast i8*%V to i8**
store i8*%U,i8**%W,align 8
%X=getelementptr inbounds i8,i8*%J,i64 32
%Y=bitcast i8*%X to i32*
store i32 15,i32*%Y,align 4
store i8*%U,i8**%c,align 8
%Z=icmp eq i8*%M,null
br i1%Z,label%ad,label%aa
aa:
%ab=bitcast i8*%M to i8**
%ac=load i8*,i8**%ab,align 8
br label%ad
ad:
%ae=phi i8*[%ac,%aa],[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*),%p]
store i8*%ae,i8**%d,align 8
%af=icmp eq i8*%O,null
br i1%af,label%aJ,label%ag
ag:
%ah=bitcast i8*%O to i8**
%ai=load i8*,i8**%ah,align 8
store i8*%ai,i8**%e,align 8
%aj=call i8*@sml_alloc(i32 inreg 12)#0
%ak=getelementptr inbounds i8,i8*%aj,i64 -4
%al=bitcast i8*%ak to i32*
store i32 1342177288,i32*%al,align 4
store i8*%aj,i8**%h,align 8
%am=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%an=bitcast i8*%aj to i8**
store i8*%am,i8**%an,align 8
%ao=getelementptr inbounds i8,i8*%aj,i64 8
%ap=bitcast i8*%ao to i32*
store i32 1,i32*%ap,align 4
%aq=call i8*@sml_alloc(i32 inreg 28)#0
%ar=getelementptr inbounds i8,i8*%aq,i64 -4
%as=bitcast i8*%ar to i32*
store i32 1342177304,i32*%as,align 4
store i8*%aq,i8**%e,align 8
%at=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%au=bitcast i8*%aq to i8**
store i8*%at,i8**%au,align 8
%av=getelementptr inbounds i8,i8*%aq,i64 8
%aw=bitcast i8*%av to void(...)**
store void(...)*bitcast(i8*(i8*,i32)*@_SMLL10readVecNB_G_311 to void(...)*),void(...)**%aw,align 8
%ax=getelementptr inbounds i8,i8*%aq,i64 16
%ay=bitcast i8*%ax to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL10readVecNB_G_486 to void(...)*),void(...)**%ay,align 8
%az=getelementptr inbounds i8,i8*%aq,i64 24
%aA=bitcast i8*%az to i32*
store i32 -2147483647,i32*%aA,align 4
%aB=call i8*@sml_alloc(i32 inreg 12)#0
%aC=getelementptr inbounds i8,i8*%aB,i64 -4
%aD=bitcast i8*%aC to i32*
store i32 1342177288,i32*%aD,align 4
%aE=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%aF=bitcast i8*%aB to i8**
store i8*%aE,i8**%aF,align 8
%aG=getelementptr inbounds i8,i8*%aB,i64 8
%aH=bitcast i8*%aG to i32*
store i32 1,i32*%aH,align 4
%aI=load i8*,i8**%b,align 8
br label%aJ
aJ:
%aK=phi i8*[%aI,%ag],[%R,%ad]
%aL=phi i8*[%aB,%ag],[null,%ad]
store i8*%aL,i8**%e,align 8
%aM=icmp eq i8*%aK,null
br i1%aM,label%bb,label%aN
aN:
%aO=bitcast i8*%aK to i8**
%aP=load i8*,i8**%aO,align 8
store i8*%aP,i8**%b,align 8
%aQ=load i8*,i8**%c,align 8
%aR=icmp eq i8*%aQ,null
br i1%aR,label%bb,label%aS
aS:
store i8*null,i8**%c,align 8
%aT=call i8*@sml_alloc(i32 inreg 12)#0
%aU=getelementptr inbounds i8,i8*%aT,i64 -4
%aV=bitcast i8*%aU to i32*
store i32 1342177288,i32*%aV,align 4
store i8*%aT,i8**%c,align 8
%aW=load i8*,i8**%b,align 8
store i8*null,i8**%b,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 i32*
store i32 1,i32*%aZ,align 4
%a0=call i8*@sml_alloc(i32 inreg 28)#0
%a1=getelementptr inbounds i8,i8*%a0,i64 -4
%a2=bitcast i8*%a1 to i32*
store i32 1342177304,i32*%a2,align 4
%a3=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%a4=bitcast i8*%a0 to i8**
store i8*%a3,i8**%a4,align 8
%a5=getelementptr inbounds i8,i8*%a0,i64 8
%a6=bitcast i8*%a5 to void(...)**
store void(...)*bitcast(i8*(i8*,i32)*@_SMLL6getPos_314 to void(...)*),void(...)**%a6,align 8
%a7=getelementptr inbounds i8,i8*%a0,i64 16
%a8=bitcast i8*%a7 to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL6getPos_488 to void(...)*),void(...)**%a8,align 8
%a9=getelementptr inbounds i8,i8*%a0,i64 24
%ba=bitcast i8*%a9 to i32*
store i32 -2147483647,i32*%ba,align 4
br label%bc
bb:
store i8*null,i8**%c,align 8
br label%bc
bc:
%bd=phi i8*[%a0,%aS],[bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@P,i64 0,i32 2)to i8*),%bb]
store i8*%bd,i8**%b,align 8
%be=call i8*@sml_alloc(i32 inreg 8)#0
%bf=getelementptr inbounds i8,i8*%be,i64 -4
%bg=bitcast i8*%bf to i32*
store i32 805306376,i32*%bg,align 4
store i8*%be,i8**%h,align 8
%bh=bitcast i8*%be to i64*
store i64 0,i64*%bh,align 1
%bi=bitcast i8*%be to i8**
call void@sml_write(i8*inreg%be,i8**inreg%bi,i8*inreg bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@Q,i64 0,i32 2)to i8*))#0
%bj=call i8*@sml_alloc(i32 inreg 4)#0
%bk=bitcast i8*%bj to i32*
%bl=getelementptr inbounds i8,i8*%bj,i64 -4
%bm=bitcast i8*%bl to i32*
store i32 536870916,i32*%bm,align 4
store i8*%bj,i8**%i,align 8
store i32 0,i32*%bk,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
store i8*%bn,i8**%c,align 8
%bq=load i8*,i8**%i,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
%bu=call i8*@sml_alloc(i32 inreg 28)#0
%bv=getelementptr inbounds i8,i8*%bu,i64 -4
%bw=bitcast i8*%bv to i32*
store i32 1342177304,i32*%bw,align 4
%bx=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%by=bitcast i8*%bu to i8**
store i8*%bx,i8**%by,align 8
%bz=getelementptr inbounds i8,i8*%bu,i64 8
%bA=bitcast i8*%bz to void(...)**
store void(...)*bitcast(void(i8*,i32)*@_SMLL3tag_316 to void(...)*),void(...)**%bA,align 8
%bB=getelementptr inbounds i8,i8*%bu,i64 16
%bC=bitcast i8*%bB to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL3tag_489 to void(...)*),void(...)**%bC,align 8
%bD=getelementptr inbounds i8,i8*%bu,i64 24
%bE=bitcast i8*%bD to i32*
store i32 -2147483647,i32*%bE,align 4
%bF=call fastcc i8*@_SMLFN18SMLSharp__OSProcess7atExit_GE(i8*inreg%bu)
store i8*%bF,i8**%c,align 8
%bG=call i8*@sml_alloc(i32 inreg 8)#0
%bH=getelementptr inbounds i8,i8*%bG,i64 -4
%bI=bitcast i8*%bH to i32*
store i32 805306376,i32*%bI,align 4
store i8*%bG,i8**%j,align 8
%bJ=bitcast i8*%bG to i64*
store i64 0,i64*%bJ,align 1
%bK=load i8*,i8**%h,align 8
%bL=bitcast i8*%bG to i8**
call void@sml_write(i8*inreg%bG,i8**inreg%bL,i8*inreg%bK)#0
%bM=call i8*@sml_alloc(i32 inreg 60)#0
%bN=getelementptr inbounds i8,i8*%bM,i64 -4
%bO=bitcast i8*%bN to i32*
store i32 1342177336,i32*%bO,align 4
store i8*%bM,i8**%k,align 8
%bP=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bQ=bitcast i8*%bM to i8**
store i8*%bP,i8**%bQ,align 8
%bR=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%bS=getelementptr inbounds i8,i8*%bM,i64 8
%bT=bitcast i8*%bS to i8**
store i8*%bR,i8**%bT,align 8
%bU=load i8*,i8**%b,align 8
%bV=getelementptr inbounds i8,i8*%bM,i64 16
%bW=bitcast i8*%bV to i8**
store i8*%bU,i8**%bW,align 8
%bX=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%bY=getelementptr inbounds i8,i8*%bM,i64 24
%bZ=bitcast i8*%bY to i8**
store i8*%bX,i8**%bZ,align 8
%b0=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%b1=getelementptr inbounds i8,i8*%bM,i64 32
%b2=bitcast i8*%b1 to i8**
store i8*%b0,i8**%b2,align 8
%b3=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%b4=getelementptr inbounds i8,i8*%bM,i64 40
%b5=bitcast i8*%b4 to i8**
store i8*%b3,i8**%b5,align 8
%b6=load i8*,i8**%j,align 8
store i8*null,i8**%j,align 8
%b7=getelementptr inbounds i8,i8*%bM,i64 48
%b8=bitcast i8*%b7 to i8**
store i8*%b6,i8**%b8,align 8
%b9=getelementptr inbounds i8,i8*%bM,i64 56
%ca=bitcast i8*%b9 to i32*
store i32 127,i32*%ca,align 4
%cb=load i8*,i8**%g,align 8
%cc=call fastcc i32@_SMLFN11Word8Vector6lengthE(i8*inreg%cb)
%cd=icmp eq i32%cc,0
br i1%cd,label%ce,label%cr
ce:
%cf=load i8*,i8**%b,align 8
%cg=getelementptr inbounds i8,i8*%cf,i64 16
%ch=bitcast i8*%cg to i8*(i8*,i8*)**
%ci=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%ch,align 8
%cj=bitcast i8*%cf to i8**
%ck=load i8*,i8**%cj,align 8
store i8*%ck,i8**%b,align 8
%cl=call i8*@sml_alloc(i32 inreg 4)#0
%cm=bitcast i8*%cl to i32*
%cn=getelementptr inbounds i8,i8*%cl,i64 -4
%co=bitcast i8*%cn to i32*
store i32 4,i32*%co,align 4
store i32 0,i32*%cm,align 4
%cp=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%cq=call fastcc i8*%ci(i8*inreg%cp,i8*inreg%cl)
br label%cr
cr:
%cs=phi i8*[%cq,%ce],[null,%bc]
store i8*%cs,i8**%b,align 8
%ct=call i8*@sml_alloc(i32 inreg 36)#0
%cu=getelementptr inbounds i8,i8*%ct,i64 -4
%cv=bitcast i8*%cu to i32*
store i32 1342177312,i32*%cv,align 4
store i8*%ct,i8**%c,align 8
%cw=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%cx=bitcast i8*%ct to i8**
store i8*%cw,i8**%cx,align 8
%cy=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%cz=getelementptr inbounds i8,i8*%ct,i64 8
%cA=bitcast i8*%cz to i8**
store i8*%cy,i8**%cA,align 8
%cB=load i8*,i8**%k,align 8
store i8*null,i8**%k,align 8
%cC=getelementptr inbounds i8,i8*%ct,i64 16
%cD=bitcast i8*%cC to i8**
store i8*%cB,i8**%cD,align 8
%cE=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%cF=getelementptr inbounds i8,i8*%ct,i64 24
%cG=bitcast i8*%cF to i8**
store i8*%cE,i8**%cG,align 8
%cH=getelementptr inbounds i8,i8*%ct,i64 32
%cI=bitcast i8*%cH to i32*
store i32 15,i32*%cI,align 4
%cJ=call i8*@sml_alloc(i32 inreg 20)#0
%cK=getelementptr inbounds i8,i8*%cJ,i64 -4
%cL=bitcast i8*%cK to i32*
store i32 1342177296,i32*%cL,align 4
%cM=getelementptr inbounds i8,i8*%cJ,i64 12
%cN=bitcast i8*%cM to i32*
store i32 0,i32*%cN,align 1
%cO=load i8*,i8**%c,align 8
%cP=bitcast i8*%cJ to i8**
store i8*%cO,i8**%cP,align 8
%cQ=getelementptr inbounds i8,i8*%cJ,i64 8
%cR=bitcast i8*%cQ to i32*
store i32 0,i32*%cR,align 4
%cS=getelementptr inbounds i8,i8*%cJ,i64 16
%cT=bitcast i8*%cS to i32*
store i32 1,i32*%cT,align 4
ret i8*%cJ
}
define internal fastcc i8*@_SMLL7getData_319(i8*inreg%a)unnamed_addr#2 gc"smlsharp"{
j:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%b,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%h,label%f
f:
call void@sml_check(i32 inreg%d)
%g=load i8*,i8**%b,align 8
br label%h
h:
%i=phi i8*[%g,%f],[%a,%j]
store i8*null,i8**%b,align 8
%k=bitcast i8*%i to i32*
%l=load i32,i32*%k,align 4
%m=icmp eq i32%l,1
br i1%m,label%o,label%n
n:
ret i8*null
o:
%p=getelementptr inbounds i8,i8*%i,i64 8
%q=bitcast i8*%p to i8**
%r=load i8*,i8**%q,align 8
%s=getelementptr inbounds i8,i8*%r,i64 8
%t=bitcast i8*%s to i8**
%u=load i8*,i8**%t,align 8
store i8*%u,i8**%c,align 8
%v=getelementptr inbounds i8,i8*%r,i64 24
%w=bitcast i8*%v to i8***
%x=load i8**,i8***%w,align 8
%y=load i8*,i8**%x,align 8
%z=call fastcc i8*@_SMLL7getData_319(i8*inreg%y)
store i8*%z,i8**%b,align 8
%A=call i8*@sml_alloc(i32 inreg 20)#0
%B=getelementptr inbounds i8,i8*%A,i64 -4
%C=bitcast i8*%B to i32*
store i32 1342177296,i32*%C,align 4
%D=load i8*,i8**%c,align 8
%E=bitcast i8*%A to i8**
store i8*%D,i8**%E,align 8
%F=load i8*,i8**%b,align 8
%G=getelementptr inbounds i8,i8*%A,i64 8
%H=bitcast i8*%G to i8**
store i8*%F,i8**%H,align 8
%I=getelementptr inbounds i8,i8*%A,i64 16
%J=bitcast i8*%I to i32*
store i32 3,i32*%J,align 4
ret i8*%A
}
define internal fastcc i8*@_SMLLN5BinIO8StreamIO9getReaderE_321(i8*inreg%a,i8*inreg%b)#2 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
%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**%h,align 8
store i8*%b,i8**%c,align 8
%i=load atomic i32,i32*@sml_check_flag unordered,align 4
%j=icmp eq i32%i,0
br i1%j,label%m,label%k
k:
call void@sml_check(i32 inreg%i)
%l=load i8*,i8**%c,align 8
br label%m
m:
%n=phi i8*[%l,%k],[%b,%o]
%p=getelementptr inbounds i8,i8*%n,i64 8
%q=bitcast i8*%p to i32*
%r=load i32,i32*%q,align 4
%s=bitcast i8*%n to i8**
%t=load i8*,i8**%s,align 8
%u=getelementptr inbounds i8,i8*%t,i64 8
%v=bitcast i8*%u to i8**
%w=load i8*,i8**%v,align 8
store i8*%w,i8**%c,align 8
%x=getelementptr inbounds i8,i8*%t,i64 16
%y=bitcast i8*%x to i8**
%z=load i8*,i8**%y,align 8
store i8*%z,i8**%d,align 8
%A=getelementptr inbounds i8,i8*%z,i64 40
%B=bitcast i8*%A to i8**
%C=load i8*,i8**%B,align 8
store i8*%C,i8**%f,align 8
%D=getelementptr inbounds i8,i8*%t,i64 24
%E=bitcast i8*%D to i8**
%F=load i8*,i8**%E,align 8
store i8*%F,i8**%g,align 8
%G=call i8*@sml_alloc(i32 inreg 36)#0
%H=getelementptr inbounds i8,i8*%G,i64 -4
%I=bitcast i8*%H to i32*
store i32 1342177312,i32*%I,align 4
store i8*%G,i8**%e,align 8
%J=load i8*,i8**%c,align 8
%K=bitcast i8*%G to i8**
store i8*%J,i8**%K,align 8
%L=load i8*,i8**%d,align 8
%M=getelementptr inbounds i8,i8*%G,i64 8
%N=bitcast i8*%M to i8**
store i8*%L,i8**%N,align 8
%O=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%P=getelementptr inbounds i8,i8*%G,i64 16
%Q=bitcast i8*%P to i8**
store i8*%O,i8**%Q,align 8
%R=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%S=getelementptr inbounds i8,i8*%G,i64 24
%T=bitcast i8*%S to i8**
store i8*%R,i8**%T,align 8
%U=getelementptr inbounds i8,i8*%G,i64 32
%V=bitcast i8*%U to i32*
store i32 15,i32*%V,align 4
store i8*%O,i8**%d,align 8
call fastcc void@_SMLLN5BinIO8StreamIO9terminateE_259(i8*inreg%L)
%W=load i8*,i8**%c,align 8
%X=call fastcc i32@_SMLFN11Word8Vector6lengthE(i8*inreg%W)
%Y=icmp slt i32%r,%X
br i1%Y,label%Z,label%aZ
Z:
%aa=bitcast i8**%h to i8***
%ab=load i8**,i8***%aa,align 8
%ac=load i8*,i8**%ab,align 8
%ad=getelementptr inbounds i8,i8*%ac,i64 16
%ae=bitcast i8*%ad to i8*(i8*,i8*)**
%af=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%ae,align 8
store i8*null,i8**%h,align 8
%ag=bitcast i8**%ab to i8***
%ah=load i8**,i8***%ag,align 8
%ai=load i8*,i8**%ah,align 8
store i8*%ai,i8**%f,align 8
%aj=call i8*@sml_alloc(i32 inreg 28)#0
%ak=getelementptr inbounds i8,i8*%aj,i64 -4
%al=bitcast i8*%ak to i32*
store i32 1342177304,i32*%al,align 4
%am=getelementptr inbounds i8,i8*%aj,i64 12
%an=bitcast i8*%am to i32*
store i32 0,i32*%an,align 1
%ao=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ap=bitcast i8*%aj to i8**
store i8*%ao,i8**%ap,align 8
%aq=getelementptr inbounds i8,i8*%aj,i64 8
%ar=bitcast i8*%aq to i32*
store i32%r,i32*%ar,align 4
%as=getelementptr inbounds i8,i8*%aj,i64 16
%at=bitcast i8*%as to i8**
store i8*null,i8**%at,align 8
%au=getelementptr inbounds i8,i8*%aj,i64 24
%av=bitcast i8*%au to i32*
store i32 5,i32*%av,align 4
%aw=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%ax=call fastcc i8*%af(i8*inreg%aw,i8*inreg%aj)
store i8*%ax,i8**%c,align 8
%ay=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%az=getelementptr inbounds i8,i8*%ay,i64 24
%aA=bitcast i8*%az to i8***
%aB=load i8**,i8***%aA,align 8
%aC=load i8*,i8**%aB,align 8
%aD=call fastcc i8*@_SMLL7getData_319(i8*inreg%aC)
store i8*%aD,i8**%e,align 8
%aE=call i8*@sml_alloc(i32 inreg 20)#0
%aF=getelementptr inbounds i8,i8*%aE,i64 -4
%aG=bitcast i8*%aF to i32*
store i32 1342177296,i32*%aG,align 4
%aH=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aI=bitcast i8*%aE to i8**
store i8*%aH,i8**%aI,align 8
%aJ=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%aK=getelementptr inbounds i8,i8*%aE,i64 8
%aL=bitcast i8*%aK to i8**
store i8*%aJ,i8**%aL,align 8
%aM=getelementptr inbounds i8,i8*%aE,i64 16
%aN=bitcast i8*%aM to i32*
store i32 3,i32*%aN,align 4
%aO=call fastcc i8*@_SMLFN11Word8Vector6concatE(i8*inreg%aE)
store i8*%aO,i8**%c,align 8
%aP=call i8*@sml_alloc(i32 inreg 20)#0
%aQ=getelementptr inbounds i8,i8*%aP,i64 -4
%aR=bitcast i8*%aQ to i32*
store i32 1342177296,i32*%aR,align 4
%aS=load i8*,i8**%d,align 8
%aT=bitcast i8*%aP to i8**
store i8*%aS,i8**%aT,align 8
%aU=load i8*,i8**%c,align 8
%aV=getelementptr inbounds i8,i8*%aP,i64 8
%aW=bitcast i8*%aV to i8**
store i8*%aU,i8**%aW,align 8
%aX=getelementptr inbounds i8,i8*%aP,i64 16
%aY=bitcast i8*%aX to i32*
store i32 3,i32*%aY,align 4
ret i8*%aP
aZ:
store i8*null,i8**%c,align 8
store i8*null,i8**%h,align 8
%a0=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%a1=getelementptr inbounds i8,i8*%a0,i64 24
%a2=bitcast i8*%a1 to i8***
%a3=load i8**,i8***%a2,align 8
%a4=load i8*,i8**%a3,align 8
%a5=call fastcc i8*@_SMLL7getData_319(i8*inreg%a4)
%a6=call fastcc i8*@_SMLFN11Word8Vector6concatE(i8*inreg%a5)
store i8*%a6,i8**%c,align 8
%a7=call i8*@sml_alloc(i32 inreg 20)#0
%a8=getelementptr inbounds i8,i8*%a7,i64 -4
%a9=bitcast i8*%a8 to i32*
store i32 1342177296,i32*%a9,align 4
%ba=load i8*,i8**%d,align 8
%bb=bitcast i8*%a7 to i8**
store i8*%ba,i8**%bb,align 8
%bc=load i8*,i8**%c,align 8
%bd=getelementptr inbounds i8,i8*%a7,i64 8
%be=bitcast i8*%bd to i8**
store i8*%bc,i8**%be,align 8
%bf=getelementptr inbounds i8,i8*%a7,i64 16
%bg=bitcast i8*%bf to i32*
store i32 3,i32*%bg,align 4
ret i8*%a7
}
define fastcc i32@_SMLFN5BinIO8StreamIO9filePosInE(i8*inreg%a)#2 gc"smlsharp"{
l:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%b,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%j,label%h
h:
call void@sml_check(i32 inreg%f)
%i=load i8*,i8**%b,align 8
br label%j
j:
%k=phi i8*[%i,%h],[%a,%l]
%m=bitcast i8*%k to i8**
%n=load i8*,i8**%m,align 8
%o=bitcast i8*%n to i8**
%p=load i8*,i8**%o,align 8
%q=icmp eq i8*%p,null
br i1%q,label%r,label%S
r:
%s=getelementptr inbounds i8,i8*%n,i64 16
%t=bitcast i8*%s to i8**
%u=load i8*,i8**%t,align 8
store i8*%u,i8**%b,align 8
store i8*null,i8**%d,align 8
%v=load i8*,i8**@_SMLZN2IO24RandomAccessNotSupportedE,align 8
store i8*%v,i8**%c,align 8
%w=call i8*@sml_alloc(i32 inreg 20)#0
%x=getelementptr inbounds i8,i8*%w,i64 -4
%y=bitcast i8*%x to i32*
store i32 1342177296,i32*%y,align 4
store i8*%w,i8**%e,align 8
%z=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%A=bitcast i8*%w to i8**
store i8*%z,i8**%A,align 8
%B=getelementptr inbounds i8,i8*%w,i64 8
%C=bitcast i8*%B to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@T,i64 0,i32 2,i64 0),i8**%C,align 8
%D=getelementptr inbounds i8,i8*%w,i64 16
%E=bitcast i8*%D to i32*
store i32 3,i32*%E,align 4
%F=call i8*@sml_alloc(i32 inreg 28)#0
%G=getelementptr inbounds i8,i8*%F,i64 -4
%H=bitcast i8*%G to i32*
store i32 1342177304,i32*%H,align 4
%I=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%J=bitcast i8*%F to i8**
store i8*%I,i8**%J,align 8
%K=getelementptr inbounds i8,i8*%F,i64 8
%L=bitcast i8*%K to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[10x i8]}>,<{[4x i8],i32,[10x i8]}>*@S,i64 0,i32 2,i64 0),i8**%L,align 8
%M=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%N=getelementptr inbounds i8,i8*%F,i64 16
%O=bitcast i8*%N to i8**
store i8*%M,i8**%O,align 8
%P=getelementptr inbounds i8,i8*%F,i64 24
%Q=bitcast i8*%P to i32*
store i32 7,i32*%Q,align 4
store i8*null,i8**%d,align 8
%R=call fastcc i8*@_SMLLN5BinIO8StreamIO8inputExnE_230(i8*inreg%F)
unreachable
S:
%T=bitcast i8*%p to i32*
%U=load i32,i32*%T,align 4
%V=getelementptr inbounds i8,i8*%k,i64 8
%W=bitcast i8*%V to i32*
%X=load i32,i32*%W,align 4
%Y=call fastcc i32@_SMLFN5Int327fromIntE(i32 inreg%X)
%Z=add nsw i32%Y,%U
ret i32%Z
}
define internal fastcc i8*@_SMLLN5BinIO8StreamIO9outputExnE_327(i8*inreg%a)unnamed_addr#5 gc"smlsharp"{
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
%g=bitcast i8*%a to i8**
%h=load i8*,i8**%g,align 8
%i=getelementptr inbounds i8,i8*%h,i64 56
%j=bitcast i8*%i to i8**
%k=load i8*,i8**%j,align 8
%l=getelementptr inbounds i8,i8*%k,i64 56
%m=bitcast i8*%l to i8**
%n=load i8*,i8**%m,align 8
store i8*%n,i8**%b,align 8
%o=getelementptr inbounds i8,i8*%a,i64 8
%p=bitcast i8*%o to i8**
%q=load i8*,i8**%p,align 8
store i8*%q,i8**%c,align 8
%r=getelementptr inbounds i8,i8*%a,i64 16
%s=bitcast i8*%r to i8**
%t=load i8*,i8**%s,align 8
store i8*%t,i8**%d,align 8
%u=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%u,i8**%e,align 8
%v=call i8*@sml_alloc(i32 inreg 28)#0
%w=getelementptr inbounds i8,i8*%v,i64 -4
%x=bitcast i8*%w to i32*
store i32 1342177304,i32*%x,align 4
store i8*%v,i8**%f,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=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%B=getelementptr inbounds i8,i8*%v,i64 8
%C=bitcast i8*%B to i8**
store i8*%A,i8**%C,align 8
%D=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%E=getelementptr inbounds i8,i8*%v,i64 16
%F=bitcast i8*%E to i8**
store i8*%D,i8**%F,align 8
%G=getelementptr inbounds i8,i8*%v,i64 24
%H=bitcast i8*%G to i32*
store i32 7,i32*%H,align 4
%I=call i8*@sml_alloc(i32 inreg 28)#0
%J=getelementptr inbounds i8,i8*%I,i64 -4
%K=bitcast i8*%J to i32*
store i32 1342177304,i32*%K,align 4
store i8*%I,i8**%b,align 8
%L=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%M=bitcast i8*%I to i8**
store i8*%L,i8**%M,align 8
%N=getelementptr inbounds i8,i8*%I,i64 8
%O=bitcast i8*%N to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@V,i64 0,i32 2,i64 0),i8**%O,align 8
%P=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%Q=getelementptr inbounds i8,i8*%I,i64 16
%R=bitcast i8*%Q to i8**
store i8*%P,i8**%R,align 8
%S=getelementptr inbounds i8,i8*%I,i64 24
%T=bitcast i8*%S to i32*
store i32 7,i32*%T,align 4
%U=call i8*@sml_alloc(i32 inreg 60)#0
%V=getelementptr inbounds i8,i8*%U,i64 -4
%W=bitcast i8*%V to i32*
store i32 1342177336,i32*%W,align 4
%X=getelementptr inbounds i8,i8*%U,i64 56
%Y=bitcast i8*%X to i32*
store i32 1,i32*%Y,align 4
%Z=load i8*,i8**%b,align 8
%aa=bitcast i8*%U to i8**
store i8*%Z,i8**%aa,align 8
call void@sml_raise(i8*inreg%U)#1
unreachable
}
define internal fastcc void@_SMLLN5BinIO8StreamIO11isClosedOutE_332(i8*inreg%a)unnamed_addr#2 gc"smlsharp"{
m:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
store i8*%a,i8**%b,align 8
%g=load atomic i32,i32*@sml_check_flag unordered,align 4
%h=icmp eq i32%g,0
br i1%h,label%k,label%i
i:
call void@sml_check(i32 inreg%g)
%j=load i8*,i8**%b,align 8
br label%k
k:
%l=phi i8*[%j,%i],[%a,%m]
%n=bitcast i8*%l to i8**
%o=load i8*,i8**%n,align 8
store i8*%o,i8**%b,align 8
%p=getelementptr inbounds i8,i8*%o,i64 24
%q=bitcast i8*%p to i32**
%r=load i32*,i32**%q,align 8
%s=load i32,i32*%r,align 4
%t=icmp eq i32%s,0
br i1%t,label%W,label%u
u:
%v=getelementptr inbounds i8,i8*%l,i64 8
%w=bitcast i8*%v to i8**
%x=load i8*,i8**%w,align 8
store i8*%x,i8**%c,align 8
store i8*null,i8**%e,align 8
%y=load i8*,i8**@_SMLZN2IO12ClosedStreamE,align 8
store i8*%y,i8**%d,align 8
%z=call i8*@sml_alloc(i32 inreg 20)#0
%A=getelementptr inbounds i8,i8*%z,i64 -4
%B=bitcast i8*%A to i32*
store i32 1342177296,i32*%B,align 4
store i8*%z,i8**%f,align 8
%C=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%D=bitcast i8*%z to i8**
store i8*%C,i8**%D,align 8
%E=getelementptr inbounds i8,i8*%z,i64 8
%F=bitcast i8*%E to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@W,i64 0,i32 2,i64 0),i8**%F,align 8
%G=getelementptr inbounds i8,i8*%z,i64 16
%H=bitcast i8*%G to i32*
store i32 3,i32*%H,align 4
%I=call i8*@sml_alloc(i32 inreg 28)#0
%J=getelementptr inbounds i8,i8*%I,i64 -4
%K=bitcast i8*%J to i32*
store i32 1342177304,i32*%K,align 4
%L=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%M=bitcast i8*%I to i8**
store i8*%L,i8**%M,align 8
%N=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%O=getelementptr inbounds i8,i8*%I,i64 8
%P=bitcast i8*%O to i8**
store i8*%N,i8**%P,align 8
%Q=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%R=getelementptr inbounds i8,i8*%I,i64 16
%S=bitcast i8*%R to i8**
store i8*%Q,i8**%S,align 8
%T=getelementptr inbounds i8,i8*%I,i64 24
%U=bitcast i8*%T to i32*
store i32 7,i32*%U,align 4
store i8*null,i8**%e,align 8
%V=call fastcc i8*@_SMLLN5BinIO8StreamIO9outputExnE_327(i8*inreg%I)
unreachable
W:
ret void
}
define internal fastcc void@_SMLLN5BinIO8StreamIO11flushBufferE_334(i8*inreg%a)unnamed_addr#2 gc"smlsharp"personality i32(...)*@sml_personality{
n:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
store i8*%a,i8**%b,align 8
%h=load atomic i32,i32*@sml_check_flag unordered,align 4
%i=icmp eq i32%h,0
br i1%i,label%l,label%j
j:
call void@sml_check(i32 inreg%h)
%k=load i8*,i8**%b,align 8
br label%l
l:
%m=phi i8*[%k,%j],[%a,%n]
%o=bitcast i8*%m to i8**
%p=load i8*,i8**%o,align 8
store i8*%p,i8**%b,align 8
%q=bitcast i8*%p to i8**
%r=load i8*,i8**%q,align 8
store i8*%r,i8**%c,align 8
%s=getelementptr inbounds i8,i8*%p,i64 32
%t=bitcast i8*%s to i8**
%u=load i8*,i8**%t,align 8
store i8*%u,i8**%d,align 8
%v=getelementptr inbounds i8,i8*%m,i64 8
%w=bitcast i8*%v to i8**
%x=load i8*,i8**%w,align 8
store i8*%x,i8**%e,align 8
%y=bitcast i8*%u to i32*
%z=load i32,i32*%y,align 4
%A=icmp eq i32%z,0
br i1%A,label%aG,label%B
B:
%C=getelementptr inbounds i8,i8*%p,i64 40
%D=bitcast i8*%C to i8**
%E=load i8*,i8**%D,align 8
%F=getelementptr inbounds i8,i8*%E,i64 16
%G=bitcast i8*%F to i8*(i8*,i8*)**
%H=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%G,align 8
%I=bitcast i8*%E to i8**
%J=load i8*,i8**%I,align 8
store i8*%J,i8**%f,align 8
%K=call i8*@sml_alloc(i32 inreg 12)#0
%L=getelementptr inbounds i8,i8*%K,i64 -4
%M=bitcast i8*%L to i32*
store i32 1342177288,i32*%M,align 4
store i8*%K,i8**%g,align 8
%N=getelementptr inbounds i8,i8*%K,i64 4
%O=bitcast i8*%N to i32*
store i32 0,i32*%O,align 1
%P=bitcast i8*%K to i32*
store i32%z,i32*%P,align 4
%Q=getelementptr inbounds i8,i8*%K,i64 8
%R=bitcast i8*%Q to i32*
store i32 0,i32*%R,align 4
%S=call i8*@sml_alloc(i32 inreg 28)#0
%T=getelementptr inbounds i8,i8*%S,i64 -4
%U=bitcast i8*%T to i32*
store i32 1342177304,i32*%U,align 4
%V=getelementptr inbounds i8,i8*%S,i64 12
%W=bitcast i8*%V to i32*
store i32 0,i32*%W,align 1
%X=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%Y=bitcast i8*%S to i8**
store i8*%X,i8**%Y,align 8
%Z=getelementptr inbounds i8,i8*%S,i64 8
%aa=bitcast i8*%Z to i32*
store i32 0,i32*%aa,align 4
%ab=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%ac=getelementptr inbounds i8,i8*%S,i64 16
%ad=bitcast i8*%ac to i8**
store i8*%ab,i8**%ad,align 8
%ae=getelementptr inbounds i8,i8*%S,i64 24
%af=bitcast i8*%ae to i32*
store i32 5,i32*%af,align 4
%ag=invoke fastcc i8*@_SMLFN15Word8ArraySlice5sliceE(i8*inreg%S)
to label%ah unwind label%an
ah:
%ai=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%aj=invoke fastcc i8*%H(i8*inreg%ai,i8*inreg%ag)
to label%ak unwind label%an
ak:
%al=bitcast i8**%d to i32**
%am=load i32*,i32**%al,align 8
store i32 0,i32*%am,align 4
ret void
an:
%ao=landingpad{i8*,i8*}
catch i8*null
%ap=extractvalue{i8*,i8*}%ao,1
%aq=bitcast i8*%ap to i8**
%ar=load i8*,i8**%aq,align 8
store i8*null,i8**%f,align 8
store i8*%ar,i8**%d,align 8
store i8*null,i8**%c,align 8
%as=call i8*@sml_alloc(i32 inreg 28)#0
%at=getelementptr inbounds i8,i8*%as,i64 -4
%au=bitcast i8*%at to i32*
store i32 1342177304,i32*%au,align 4
%av=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aw=bitcast i8*%as to i8**
store i8*%av,i8**%aw,align 8
%ax=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%ay=getelementptr inbounds i8,i8*%as,i64 8
%az=bitcast i8*%ay to i8**
store i8*%ax,i8**%az,align 8
%aA=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aB=getelementptr inbounds i8,i8*%as,i64 16
%aC=bitcast i8*%aB to i8**
store i8*%aA,i8**%aC,align 8
%aD=getelementptr inbounds i8,i8*%as,i64 24
%aE=bitcast i8*%aD to i32*
store i32 7,i32*%aE,align 4
store i8*null,i8**%c,align 8
%aF=call fastcc i8*@_SMLLN5BinIO8StreamIO9outputExnE_327(i8*inreg%as)
unreachable
aG:
ret void
}
define internal fastcc void@_SMLL11writeDirect_338(i8*inreg%a,i32 inreg%b)#2 gc"smlsharp"personality i32(...)*@sml_personality{
m:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
store i8*%a,i8**%c,align 8
%g=load atomic i32,i32*@sml_check_flag unordered,align 4
%h=icmp eq i32%g,0
br i1%h,label%k,label%i
i:
call void@sml_check(i32 inreg%g)
%j=load i8*,i8**%c,align 8
br label%k
k:
%l=phi i8*[%j,%i],[%a,%m]
%n=getelementptr inbounds i8,i8*%l,i64 8
%o=bitcast i8*%n to i32**
%p=load i32*,i32**%o,align 8
%q=load i32,i32*%p,align 4
%r=icmp eq i32%q,0
br i1%r,label%am,label%s
s:
%t=bitcast i8*%l to i8**
%u=getelementptr inbounds i8,i8*%l,i64 24
%v=bitcast i8*%u to i8**
%w=load i8*,i8**%v,align 8
%x=getelementptr inbounds i8,i8*%w,i64 40
%y=bitcast i8*%x to i8**
%z=load i8*,i8**%y,align 8
%A=getelementptr inbounds i8,i8*%z,i64 16
%B=bitcast i8*%A to i8*(i8*,i8*)**
%C=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%B,align 8
%D=bitcast i8*%z to i8**
%E=load i8*,i8**%D,align 8
store i8*%E,i8**%e,align 8
%F=load i8*,i8**%t,align 8
store i8*%F,i8**%d,align 8
%G=call i8*@sml_alloc(i32 inreg 12)#0
%H=getelementptr inbounds i8,i8*%G,i64 -4
%I=bitcast i8*%H to i32*
store i32 1342177288,i32*%I,align 4
store i8*%G,i8**%f,align 8
%J=getelementptr inbounds i8,i8*%G,i64 4
%K=bitcast i8*%J to i32*
store i32 0,i32*%K,align 1
%L=bitcast i8*%G to i32*
store i32%q,i32*%L,align 4
%M=getelementptr inbounds i8,i8*%G,i64 8
%N=bitcast i8*%M to i32*
store i32 0,i32*%N,align 4
%O=call i8*@sml_alloc(i32 inreg 28)#0
%P=getelementptr inbounds i8,i8*%O,i64 -4
%Q=bitcast i8*%P to i32*
store i32 1342177304,i32*%Q,align 4
%R=getelementptr inbounds i8,i8*%O,i64 12
%S=bitcast i8*%R to i32*
store i32 0,i32*%S,align 1
%T=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%U=bitcast i8*%O to i8**
store i8*%T,i8**%U,align 8
%V=getelementptr inbounds i8,i8*%O,i64 8
%W=bitcast i8*%V to i32*
store i32 0,i32*%W,align 4
%X=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%Y=getelementptr inbounds i8,i8*%O,i64 16
%Z=bitcast i8*%Y to i8**
store i8*%X,i8**%Z,align 8
%aa=getelementptr inbounds i8,i8*%O,i64 24
%ab=bitcast i8*%aa to i32*
store i32 5,i32*%ab,align 4
%ac=invoke fastcc i8*@_SMLFN15Word8ArraySlice5sliceE(i8*inreg%O)
to label%ad unwind label%aH
ad:
%ae=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%af=invoke fastcc i8*%C(i8*inreg%ae,i8*inreg%ac)
to label%ag unwind label%aH
ag:
%ah=load i8*,i8**%c,align 8
%ai=getelementptr inbounds i8,i8*%ah,i64 8
%aj=bitcast i8*%ai to i32**
%ak=load i32*,i32**%aj,align 8
store i32 0,i32*%ak,align 4
%al=load i8*,i8**%c,align 8
br label%am
am:
%an=phi i8*[%l,%k],[%al,%ag]
%ao=getelementptr inbounds i8,i8*%an,i64 24
%ap=bitcast i8*%ao to i8**
%aq=load i8*,i8**%ap,align 8
%ar=getelementptr inbounds i8,i8*%aq,i64 48
%as=bitcast i8*%ar to i8**
%at=load i8*,i8**%as,align 8
%au=getelementptr inbounds i8,i8*%at,i64 16
%av=bitcast i8*%au to i8*(i8*,i8*)**
%aw=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%av,align 8
%ax=bitcast i8*%at to i8**
%ay=load i8*,i8**%ax,align 8
store i8*%ay,i8**%d,align 8
%az=getelementptr inbounds i8,i8*%an,i64 32
%aA=bitcast i8*%az to i8**
%aB=load i8*,i8**%aA,align 8
%aC=invoke fastcc i8*@_SMLFN16Word8VectorSlice4fullE(i8*inreg%aB)
to label%aD unwind label%aH
aD:
%aE=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aF=invoke fastcc i8*%aw(i8*inreg%aE,i8*inreg%aC)
to label%aG unwind label%aH
aG:
ret void
aH:
%aI=landingpad{i8*,i8*}
catch i8*null
%aJ=extractvalue{i8*,i8*}%aI,1
%aK=bitcast i8*%aJ to i8**
%aL=load i8*,i8**%aK,align 8
store i8*%aL,i8**%e,align 8
store i8*null,i8**%d,align 8
%aM=load i8*,i8**%c,align 8
%aN=getelementptr inbounds i8,i8*%aM,i64 16
%aO=bitcast i8*%aN to i8**
%aP=load i8*,i8**%aO,align 8
store i8*%aP,i8**%c,align 8
%aQ=call i8*@sml_alloc(i32 inreg 28)#0
%aR=getelementptr inbounds i8,i8*%aQ,i64 -4
%aS=bitcast i8*%aR to i32*
store i32 1342177304,i32*%aS,align 4
%aT=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aU=bitcast i8*%aQ to i8**
store i8*%aT,i8**%aU,align 8
%aV=getelementptr inbounds i8,i8*%aQ,i64 8
%aW=bitcast i8*%aV to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[7x i8]}>,<{[4x i8],i32,[7x i8]}>*@Z,i64 0,i32 2,i64 0),i8**%aW,align 8
%aX=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%aY=getelementptr inbounds i8,i8*%aQ,i64 16
%aZ=bitcast i8*%aY to i8**
store i8*%aX,i8**%aZ,align 8
%a0=getelementptr inbounds i8,i8*%aQ,i64 24
%a1=bitcast i8*%a0 to i32*
store i32 7,i32*%a1,align 4
store i8*null,i8**%d,align 8
%a2=call fastcc i8*@_SMLLN5BinIO8StreamIO9outputExnE_327(i8*inreg%aQ)
unreachable
}
define internal fastcc void@_SMLL6insert_345(i8*inreg%a,i8*inreg%b)#2 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
%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**%d,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%j,label%l
j:
%k=bitcast i8*%a to i8**
br label%o
l:
call void@sml_check(i32 inreg%h)
%m=bitcast i8**%d to i8***
%n=load i8**,i8***%m,align 8
br label%o
o:
%p=phi i8**[%n,%l],[%k,%j]
%q=load i8*,i8**%p,align 8
%r=call fastcc i32@_SMLFN10Word8Array6lengthE(i8*inreg%q)
%s=load i8*,i8**%d,align 8
%t=getelementptr inbounds i8,i8*%s,i64 32
%u=bitcast i8*%t to i8**
%v=load i8*,i8**%u,align 8
%w=call fastcc i32@_SMLFN11Word8Vector6lengthE(i8*inreg%v)
%x=icmp slt i32%w,%r
%y=load i8*,i8**%d,align 8
br i1%x,label%D,label%z
z:
%A=getelementptr inbounds i8,i8*%y,i64 40
%B=bitcast i8*%A to i8**
%C=load i8*,i8**%B,align 8
tail call fastcc void@_SMLL11writeDirect_338(i8*inreg%C,i32 inreg 0)
ret void
D:
%E=getelementptr inbounds i8,i8*%y,i64 8
%F=bitcast i8*%E to i32**
%G=load i32*,i32**%F,align 8
%H=load i32,i32*%G,align 4
%I=call{i32,i1}@llvm.ssub.with.overflow.i32(i32%r,i32%H)#0
%J=extractvalue{i32,i1}%I,1
br i1%J,label%K,label%ac
K:
store i8*null,i8**%d,align 8
%L=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%L,i8**%c,align 8
%M=call i8*@sml_alloc(i32 inreg 20)#0
%N=getelementptr inbounds i8,i8*%M,i64 -4
%O=bitcast i8*%N to i32*
store i32 1342177296,i32*%O,align 4
store i8*%M,i8**%d,align 8
%P=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%Q=bitcast i8*%M to i8**
store i8*%P,i8**%Q,align 8
%R=getelementptr inbounds i8,i8*%M,i64 8
%S=bitcast i8*%R to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@X,i64 0,i32 2,i64 0),i8**%S,align 8
%T=getelementptr inbounds i8,i8*%M,i64 16
%U=bitcast i8*%T to i32*
store i32 3,i32*%U,align 4
%V=call i8*@sml_alloc(i32 inreg 60)#0
%W=getelementptr inbounds i8,i8*%V,i64 -4
%X=bitcast i8*%W to i32*
store i32 1342177336,i32*%X,align 4
%Y=getelementptr inbounds i8,i8*%V,i64 56
%Z=bitcast i8*%Y to i32*
store i32 1,i32*%Z,align 4
%aa=load i8*,i8**%d,align 8
%ab=bitcast i8*%V to i8**
store i8*%aa,i8**%ab,align 8
call void@sml_raise(i8*inreg%V)#1
unreachable
ac:
%ad=sub nsw i32%r,%H
%ae=icmp sgt i32%w,%ad
%af=load i8*,i8**%c,align 8
%ag=getelementptr inbounds i8,i8*%af,i64 16
%ah=bitcast i8*%ag to void(...)**
%ai=load void(...)*,void(...)**%ah,align 8
%aj=bitcast i8*%af to i8**
%ak=load i8*,i8**%aj,align 8
br i1%ae,label%al,label%cn
al:
store i8*%ak,i8**%g,align 8
%am=getelementptr inbounds i8,i8*%y,i64 32
%an=bitcast i8*%am to i8**
%ao=load i8*,i8**%an,align 8
store i8*%ao,i8**%e,align 8
%ap=bitcast i8*%y to i8**
%aq=load i8*,i8**%ap,align 8
store i8*%aq,i8**%f,align 8
%ar=call i8*@sml_alloc(i32 inreg 36)#0
%as=getelementptr inbounds i8,i8*%ar,i64 -4
%at=bitcast i8*%as to i32*
store i32 1342177312,i32*%at,align 4
%au=getelementptr inbounds i8,i8*%ar,i64 28
%av=bitcast i8*%au to i32*
store i32 0,i32*%av,align 1
%aw=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%ax=bitcast i8*%ar to i8**
store i8*%aw,i8**%ax,align 8
%ay=getelementptr inbounds i8,i8*%ar,i64 8
%az=bitcast i8*%ay to i32*
store i32 0,i32*%az,align 4
%aA=getelementptr inbounds i8,i8*%ar,i64 12
%aB=bitcast i8*%aA to i32*
store i32%ad,i32*%aB,align 4
%aC=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%aD=getelementptr inbounds i8,i8*%ar,i64 16
%aE=bitcast i8*%aD to i8**
store i8*%aC,i8**%aE,align 8
%aF=getelementptr inbounds i8,i8*%ar,i64 24
%aG=bitcast i8*%aF to i32*
store i32%H,i32*%aG,align 4
%aH=getelementptr inbounds i8,i8*%ar,i64 32
%aI=bitcast i8*%aH to i32*
store i32 5,i32*%aI,align 4
%aJ=bitcast void(...)*%ai to i8*(i8*,i8*)*
%aK=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%aL=call fastcc i8*%aJ(i8*inreg%aK,i8*inreg%ar)
%aM=load i8*,i8**%d,align 8
%aN=getelementptr inbounds i8,i8*%aM,i64 24
%aO=bitcast i8*%aN to i8**
%aP=load i8*,i8**%aO,align 8
%aQ=getelementptr inbounds i8,i8*%aP,i64 40
%aR=bitcast i8*%aQ to i8**
%aS=load i8*,i8**%aR,align 8
%aT=getelementptr inbounds i8,i8*%aS,i64 16
%aU=bitcast i8*%aT to i8*(i8*,i8*)**
%aV=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aU,align 8
%aW=bitcast i8*%aS to i8**
%aX=load i8*,i8**%aW,align 8
store i8*%aX,i8**%e,align 8
%aY=bitcast i8*%aM to i8**
%aZ=load i8*,i8**%aY,align 8
%a0=invoke fastcc i8*@_SMLFN15Word8ArraySlice4fullE(i8*inreg%aZ)
to label%a1 unwind label%a4
a1:
%a2=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%a3=invoke fastcc i8*%aV(i8*inreg%a2,i8*inreg%a0)
to label%bq unwind label%a4
a4:
%a5=landingpad{i8*,i8*}
catch i8*null
%a6=extractvalue{i8*,i8*}%a5,1
%a7=bitcast i8*%a6 to i8**
%a8=load i8*,i8**%a7,align 8
store i8*%a8,i8**%g,align 8
store i8*null,i8**%f,align 8
%a9=load i8*,i8**%d,align 8
%ba=getelementptr inbounds i8,i8*%a9,i64 16
%bb=bitcast i8*%ba to i8**
%bc=load i8*,i8**%bb,align 8
store i8*%bc,i8**%e,align 8
%bd=call i8*@sml_alloc(i32 inreg 28)#0
%be=getelementptr inbounds i8,i8*%bd,i64 -4
%bf=bitcast i8*%be to i32*
store i32 1342177304,i32*%bf,align 4
%bg=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%bh=bitcast i8*%bd to i8**
store i8*%bg,i8**%bh,align 8
%bi=getelementptr inbounds i8,i8*%bd,i64 8
%bj=bitcast i8*%bi to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[7x i8]}>,<{[4x i8],i32,[7x i8]}>*@Z,i64 0,i32 2,i64 0),i8**%bj,align 8
%bk=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%bl=getelementptr inbounds i8,i8*%bd,i64 16
%bm=bitcast i8*%bl to i8**
store i8*%bk,i8**%bm,align 8
%bn=getelementptr inbounds i8,i8*%bd,i64 24
%bo=bitcast i8*%bn to i32*
store i32 7,i32*%bo,align 4
store i8*null,i8**%f,align 8
%bp=call fastcc i8*@_SMLLN5BinIO8StreamIO9outputExnE_327(i8*inreg%bd)
unreachable
bq:
%br=load i8*,i8**%c,align 8
%bs=getelementptr inbounds i8,i8*%br,i64 16
%bt=bitcast i8*%bs to i8*(i8*,i8*)**
%bu=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bt,align 8
%bv=bitcast i8*%br to i8**
%bw=load i8*,i8**%bv,align 8
store i8*%bw,i8**%f,align 8
%bx=call{i32,i1}@llvm.ssub.with.overflow.i32(i32%w,i32%ad)#0
%by=extractvalue{i32,i1}%bx,1
br i1%by,label%bz,label%bR
bz:
store i8*null,i8**%d,align 8
store i8*null,i8**%f,align 8
%bA=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%bA,i8**%c,align 8
%bB=call i8*@sml_alloc(i32 inreg 20)#0
%bC=getelementptr inbounds i8,i8*%bB,i64 -4
%bD=bitcast i8*%bC to i32*
store i32 1342177296,i32*%bD,align 4
store i8*%bB,i8**%d,align 8
%bE=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bF=bitcast i8*%bB to i8**
store i8*%bE,i8**%bF,align 8
%bG=getelementptr inbounds i8,i8*%bB,i64 8
%bH=bitcast i8*%bG to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@aa,i64 0,i32 2,i64 0),i8**%bH,align 8
%bI=getelementptr inbounds i8,i8*%bB,i64 16
%bJ=bitcast i8*%bI to i32*
store i32 3,i32*%bJ,align 4
%bK=call i8*@sml_alloc(i32 inreg 60)#0
%bL=getelementptr inbounds i8,i8*%bK,i64 -4
%bM=bitcast i8*%bL to i32*
store i32 1342177336,i32*%bM,align 4
%bN=getelementptr inbounds i8,i8*%bK,i64 56
%bO=bitcast i8*%bN to i32*
store i32 1,i32*%bO,align 4
%bP=load i8*,i8**%d,align 8
%bQ=bitcast i8*%bK to i8**
store i8*%bP,i8**%bQ,align 8
call void@sml_raise(i8*inreg%bK)#1
unreachable
bR:
%bS=sub nsw i32%w,%ad
%bT=load i8*,i8**%d,align 8
%bU=getelementptr inbounds i8,i8*%bT,i64 32
%bV=bitcast i8*%bU to i8**
%bW=load i8*,i8**%bV,align 8
store i8*%bW,i8**%c,align 8
%bX=bitcast i8*%bT to i8**
%bY=load i8*,i8**%bX,align 8
store i8*%bY,i8**%e,align 8
%bZ=call i8*@sml_alloc(i32 inreg 36)#0
%b0=getelementptr inbounds i8,i8*%bZ,i64 -4
%b1=bitcast i8*%b0 to i32*
store i32 1342177312,i32*%b1,align 4
%b2=getelementptr inbounds i8,i8*%bZ,i64 28
%b3=bitcast i8*%b2 to i32*
store i32 0,i32*%b3,align 1
%b4=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%b5=bitcast i8*%bZ to i8**
store i8*%b4,i8**%b5,align 8
%b6=getelementptr inbounds i8,i8*%bZ,i64 8
%b7=bitcast i8*%b6 to i32*
store i32%ad,i32*%b7,align 4
%b8=getelementptr inbounds i8,i8*%bZ,i64 12
%b9=bitcast i8*%b8 to i32*
store i32%bS,i32*%b9,align 4
%ca=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%cb=getelementptr inbounds i8,i8*%bZ,i64 16
%cc=bitcast i8*%cb to i8**
store i8*%ca,i8**%cc,align 8
%cd=getelementptr inbounds i8,i8*%bZ,i64 24
%ce=bitcast i8*%cd to i32*
store i32 0,i32*%ce,align 4
%cf=getelementptr inbounds i8,i8*%bZ,i64 32
%cg=bitcast i8*%cf to i32*
store i32 5,i32*%cg,align 4
%ch=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%ci=call fastcc i8*%bu(i8*inreg%ch,i8*inreg%bZ)
%cj=load i8*,i8**%d,align 8
%ck=getelementptr inbounds i8,i8*%cj,i64 8
%cl=bitcast i8*%ck to i32**
%cm=load i32*,i32**%cl,align 8
store i32%bS,i32*%cm,align 4
ret void
cn:
store i8*%ak,i8**%f,align 8
%co=getelementptr inbounds i8,i8*%y,i64 32
%cp=bitcast i8*%co to i8**
%cq=load i8*,i8**%cp,align 8
store i8*%cq,i8**%c,align 8
%cr=bitcast i8*%y to i8**
%cs=load i8*,i8**%cr,align 8
store i8*%cs,i8**%e,align 8
%ct=call i8*@sml_alloc(i32 inreg 36)#0
%cu=getelementptr inbounds i8,i8*%ct,i64 -4
%cv=bitcast i8*%cu to i32*
store i32 1342177312,i32*%cv,align 4
%cw=getelementptr inbounds i8,i8*%ct,i64 28
%cx=bitcast i8*%cw to i32*
store i32 0,i32*%cx,align 1
%cy=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%cz=bitcast i8*%ct to i8**
store i8*%cy,i8**%cz,align 8
%cA=getelementptr inbounds i8,i8*%ct,i64 8
%cB=bitcast i8*%cA to i32*
store i32 0,i32*%cB,align 4
%cC=getelementptr inbounds i8,i8*%ct,i64 12
%cD=bitcast i8*%cC to i32*
store i32%w,i32*%cD,align 4
%cE=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%cF=getelementptr inbounds i8,i8*%ct,i64 16
%cG=bitcast i8*%cF to i8**
store i8*%cE,i8**%cG,align 8
%cH=getelementptr inbounds i8,i8*%ct,i64 24
%cI=bitcast i8*%cH to i32*
store i32%H,i32*%cI,align 4
%cJ=getelementptr inbounds i8,i8*%ct,i64 32
%cK=bitcast i8*%cJ to i32*
store i32 5,i32*%cK,align 4
%cL=bitcast void(...)*%ai to i8*(i8*,i8*)*
%cM=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%cN=call fastcc i8*%cL(i8*inreg%cM,i8*inreg%ct)
%cO=call{i32,i1}@llvm.sadd.with.overflow.i32(i32%H,i32%w)#0
%cP=extractvalue{i32,i1}%cO,1
br i1%cP,label%cQ,label%c8
cQ:
store i8*null,i8**%d,align 8
%cR=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%cR,i8**%c,align 8
%cS=call i8*@sml_alloc(i32 inreg 20)#0
%cT=getelementptr inbounds i8,i8*%cS,i64 -4
%cU=bitcast i8*%cT to i32*
store i32 1342177296,i32*%cU,align 4
store i8*%cS,i8**%d,align 8
%cV=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%cW=bitcast i8*%cS to i8**
store i8*%cV,i8**%cW,align 8
%cX=getelementptr inbounds i8,i8*%cS,i64 8
%cY=bitcast i8*%cX to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@Y,i64 0,i32 2,i64 0),i8**%cY,align 8
%cZ=getelementptr inbounds i8,i8*%cS,i64 16
%c0=bitcast i8*%cZ to i32*
store i32 3,i32*%c0,align 4
%c1=call i8*@sml_alloc(i32 inreg 60)#0
%c2=getelementptr inbounds i8,i8*%c1,i64 -4
%c3=bitcast i8*%c2 to i32*
store i32 1342177336,i32*%c3,align 4
%c4=getelementptr inbounds i8,i8*%c1,i64 56
%c5=bitcast i8*%c4 to i32*
store i32 1,i32*%c5,align 4
%c6=load i8*,i8**%d,align 8
%c7=bitcast i8*%c1 to i8**
store i8*%c6,i8**%c7,align 8
call void@sml_raise(i8*inreg%c1)#1
unreachable
c8:
%c9=add nsw i32%H,%w
%da=load i8*,i8**%d,align 8
%db=getelementptr inbounds i8,i8*%da,i64 8
%dc=bitcast i8*%db to i32**
%dd=load i32*,i32**%dc,align 8
store i32%c9,i32*%dd,align 4
%de=icmp eq i32%w,%ad
br i1%de,label%df,label%dt
df:
%dg=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%dh=getelementptr inbounds i8,i8*%dg,i64 16
%di=bitcast i8*%dh to i8**
%dj=load i8*,i8**%di,align 8
store i8*%dj,i8**%c,align 8
%dk=call i8*@sml_alloc(i32 inreg 20)#0
%dl=getelementptr inbounds i8,i8*%dk,i64 -4
%dm=bitcast i8*%dl to i32*
store i32 1342177296,i32*%dm,align 4
%dn=load i8*,i8**%c,align 8
%do=bitcast i8*%dk to i8**
store i8*%dn,i8**%do,align 8
%dp=getelementptr inbounds i8,i8*%dk,i64 8
%dq=bitcast i8*%dp to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[7x i8]}>,<{[4x i8],i32,[7x i8]}>*@Z,i64 0,i32 2,i64 0),i8**%dq,align 8
%dr=getelementptr inbounds i8,i8*%dk,i64 16
%ds=bitcast i8*%dr to i32*
store i32 3,i32*%ds,align 4
tail call fastcc void@_SMLLN5BinIO8StreamIO11flushBufferE_334(i8*inreg%dk)
ret void
dt:
ret void
}
define internal fastcc void@_SMLL7copyVec_346(i8*inreg%a)#2 gc"smlsharp"{
k:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%b,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%i,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%b,align 8
br label%i
i:
%j=phi i8*[%h,%g],[%a,%k]
%l=bitcast i8*%j to i8**
%m=load i8*,i8**%l,align 8
store i8*%m,i8**%b,align 8
%n=getelementptr inbounds i8,i8*%j,i64 8
%o=bitcast i8*%n to i32*
%p=load i32,i32*%o,align 4
%q=getelementptr inbounds i8,i8*%j,i64 16
%r=bitcast i8*%q to i8**
%s=load i8*,i8**%r,align 8
store i8*%s,i8**%c,align 8
%t=getelementptr inbounds i8,i8*%j,i64 24
%u=bitcast i8*%t to i32*
%v=load i32,i32*%u,align 4
%w=getelementptr inbounds i8,i8*%j,i64 12
%x=bitcast i8*%w to i32*
%y=load i32,i32*%x,align 4
%z=call i8*@sml_alloc(i32 inreg 12)#0
%A=getelementptr inbounds i8,i8*%z,i64 -4
%B=bitcast i8*%A to i32*
store i32 1342177288,i32*%B,align 4
store i8*%z,i8**%d,align 8
%C=getelementptr inbounds i8,i8*%z,i64 4
%D=bitcast i8*%C to i32*
store i32 0,i32*%D,align 1
%E=bitcast i8*%z to i32*
store i32%y,i32*%E,align 4
%F=getelementptr inbounds i8,i8*%z,i64 8
%G=bitcast i8*%F to i32*
store i32 0,i32*%G,align 4
%H=call i8*@sml_alloc(i32 inreg 28)#0
%I=getelementptr inbounds i8,i8*%H,i64 -4
%J=bitcast i8*%I to i32*
store i32 1342177304,i32*%J,align 4
%K=getelementptr inbounds i8,i8*%H,i64 12
%L=bitcast i8*%K to i32*
store i32 0,i32*%L,align 1
%M=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%N=bitcast i8*%H to i8**
store i8*%M,i8**%N,align 8
%O=getelementptr inbounds i8,i8*%H,i64 8
%P=bitcast i8*%O to i32*
store i32%p,i32*%P,align 4
%Q=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%R=getelementptr inbounds i8,i8*%H,i64 16
%S=bitcast i8*%R to i8**
store i8*%Q,i8**%S,align 8
%T=getelementptr inbounds i8,i8*%H,i64 24
%U=bitcast i8*%T to i32*
store i32 5,i32*%U,align 4
%V=call fastcc i8*@_SMLFN16Word8VectorSlice5sliceE(i8*inreg%H)
store i8*%V,i8**%b,align 8
%W=call i8*@sml_alloc(i32 inreg 28)#0
%X=bitcast i8*%W to i32*
%Y=getelementptr inbounds i8,i8*%W,i64 -4
%Z=bitcast i8*%Y to i32*
store i32 1342177304,i32*%Z,align 4
%aa=getelementptr inbounds i8,i8*%W,i64 4
%ab=bitcast i8*%aa to i32*
store i32 0,i32*%ab,align 1
store i32%v,i32*%X,align 4
%ac=load i8*,i8**%c,align 8
%ad=getelementptr inbounds i8,i8*%W,i64 8
%ae=bitcast i8*%ad to i8**
store i8*%ac,i8**%ae,align 8
%af=load i8*,i8**%b,align 8
%ag=getelementptr inbounds i8,i8*%W,i64 16
%ah=bitcast i8*%ag to i8**
store i8*%af,i8**%ah,align 8
%ai=getelementptr inbounds i8,i8*%W,i64 24
%aj=bitcast i8*%ai to i32*
store i32 6,i32*%aj,align 4
tail call fastcc void@_SMLFN15Word8ArraySlice7copyVecE(i8*inreg%W)
ret void
}
define fastcc void@_SMLFN5BinIO8StreamIO6outputE(i8*inreg%a)#2 gc"smlsharp"{
n:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
store i8*%a,i8**%b,align 8
%h=load atomic i32,i32*@sml_check_flag unordered,align 4
%i=icmp eq i32%h,0
br i1%i,label%l,label%j
j:
call void@sml_check(i32 inreg%h)
%k=load i8*,i8**%b,align 8
br label%l
l:
%m=phi i8*[%k,%j],[%a,%n]
store i8*null,i8**%b,align 8
%o=bitcast i8*%m to i8**
%p=load i8*,i8**%o,align 8
store i8*%p,i8**%d,align 8
%q=getelementptr inbounds i8,i8*%m,i64 8
%r=bitcast i8*%q to i8**
%s=load i8*,i8**%r,align 8
store i8*%s,i8**%e,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
%w=load i8*,i8**%d,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,[7x i8]}>,<{[4x i8],i32,[7x i8]}>*@Z,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
call fastcc void@_SMLLN5BinIO8StreamIO11isClosedOutE_332(i8*inreg%t)
%C=bitcast i8**%d to i8***
%D=load i8**,i8***%C,align 8
%E=load i8*,i8**%D,align 8
store i8*%E,i8**%b,align 8
%F=getelementptr inbounds i8*,i8**%D,i64 4
%G=load i8*,i8**%F,align 8
store i8*%G,i8**%c,align 8
%H=call i8*@sml_alloc(i32 inreg 44)#0
%I=getelementptr inbounds i8,i8*%H,i64 -4
%J=bitcast i8*%I to i32*
store i32 1342177320,i32*%J,align 4
store i8*%H,i8**%f,align 8
%K=load i8*,i8**%b,align 8
%L=bitcast i8*%H to i8**
store i8*%K,i8**%L,align 8
%M=load i8*,i8**%c,align 8
%N=getelementptr inbounds i8,i8*%H,i64 8
%O=bitcast i8*%N to i8**
store i8*%M,i8**%O,align 8
%P=load i8*,i8**%d,align 8
%Q=getelementptr inbounds i8,i8*%H,i64 16
%R=bitcast i8*%Q to i8**
store i8*%P,i8**%R,align 8
%S=getelementptr inbounds i8,i8*%H,i64 24
%T=bitcast i8*%S to i8**
store i8*%P,i8**%T,align 8
%U=load i8*,i8**%e,align 8
%V=getelementptr inbounds i8,i8*%H,i64 32
%W=bitcast i8*%V to i8**
store i8*%U,i8**%W,align 8
%X=getelementptr inbounds i8,i8*%H,i64 40
%Y=bitcast i8*%X to i32*
store i32 31,i32*%Y,align 4
%Z=call i8*@sml_alloc(i32 inreg 28)#0
%aa=getelementptr inbounds i8,i8*%Z,i64 -4
%ab=bitcast i8*%aa to i32*
store i32 1342177304,i32*%ab,align 4
%ac=load i8*,i8**%f,align 8
%ad=bitcast i8*%Z to i8**
store i8*%ac,i8**%ad,align 8
%ae=getelementptr inbounds i8,i8*%Z,i64 8
%af=bitcast i8*%ae to void(...)**
store void(...)*bitcast(void(i8*,i32)*@_SMLL11writeDirect_338 to void(...)*),void(...)**%af,align 8
%ag=getelementptr inbounds i8,i8*%Z,i64 16
%ah=bitcast i8*%ag to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL11writeDirect_497 to void(...)*),void(...)**%ah,align 8
%ai=getelementptr inbounds i8,i8*%Z,i64 24
%aj=bitcast i8*%ai to i32*
store i32 -2147483647,i32*%aj,align 4
%ak=call i8*@sml_alloc(i32 inreg 52)#0
%al=getelementptr inbounds i8,i8*%ak,i64 -4
%am=bitcast i8*%al to i32*
store i32 1342177328,i32*%am,align 4
store i8*%ak,i8**%g,align 8
%an=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%ao=bitcast i8*%ak to i8**
store i8*%an,i8**%ao,align 8
%ap=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aq=getelementptr inbounds i8,i8*%ak,i64 8
%ar=bitcast i8*%aq to i8**
store i8*%ap,i8**%ar,align 8
%as=load i8*,i8**%d,align 8
%at=getelementptr inbounds i8,i8*%ak,i64 16
%au=bitcast i8*%at to i8**
store i8*%as,i8**%au,align 8
%av=getelementptr inbounds i8,i8*%ak,i64 24
%aw=bitcast i8*%av to i8**
store i8*%as,i8**%aw,align 8
%ax=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%ay=getelementptr inbounds i8,i8*%ak,i64 32
%az=bitcast i8*%ay to i8**
store i8*%ax,i8**%az,align 8
%aA=load i8*,i8**%f,align 8
%aB=getelementptr inbounds i8,i8*%ak,i64 40
%aC=bitcast i8*%aB to i8**
store i8*%aA,i8**%aC,align 8
%aD=getelementptr inbounds i8,i8*%ak,i64 48
%aE=bitcast i8*%aD to i32*
store i32 63,i32*%aE,align 4
%aF=call i8*@sml_alloc(i32 inreg 28)#0
%aG=getelementptr inbounds i8,i8*%aF,i64 -4
%aH=bitcast i8*%aG to i32*
store i32 1342177304,i32*%aH,align 4
%aI=load i8*,i8**%g,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 void(...)**
store void(...)*bitcast(void(i8*,i8*)*@_SMLL6insert_345 to void(...)*),void(...)**%aL,align 8
%aM=getelementptr inbounds i8,i8*%aF,i64 16
%aN=bitcast i8*%aM to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL6insert_498 to void(...)*),void(...)**%aN,align 8
%aO=getelementptr inbounds i8,i8*%aF,i64 24
%aP=bitcast i8*%aO to i32*
store i32 -2147483647,i32*%aP,align 4
%aQ=load i8*,i8**%d,align 8
%aR=getelementptr inbounds i8,i8*%aQ,i64 8
%aS=bitcast i8*%aR to i32**
%aT=load i32*,i32**%aS,align 8
%aU=load i32,i32*%aT,align 4
%aV=icmp eq i32%aU,2
br i1%aV,label%aX,label%aW
aW:
tail call fastcc void@_SMLL6insert_345(i8*inreg%aI,i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@ab,i64 0,i32 2)to i8*))
ret void
aX:
%aY=load i8*,i8**%f,align 8
tail call fastcc void@_SMLL11writeDirect_338(i8*inreg%aY,i32 inreg 0)
ret void
}
define fastcc void@_SMLFN5BinIO8StreamIO7output1E(i8*inreg%a)#2 gc"smlsharp"personality i32(...)*@sml_personality{
k:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%b,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%i,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%b,align 8
br label%i
i:
%j=phi i8*[%h,%g],[%a,%k]
%l=bitcast i8*%j to i8**
%m=load i8*,i8**%l,align 8
store i8*%m,i8**%b,align 8
%n=bitcast i8*%m to i8**
%o=load i8*,i8**%n,align 8
store i8*%o,i8**%c,align 8
%p=getelementptr inbounds i8,i8*%m,i64 32
%q=bitcast i8*%p to i8**
%r=load i8*,i8**%q,align 8
store i8*%r,i8**%d,align 8
%s=getelementptr inbounds i8,i8*%j,i64 8
%t=load i8,i8*%s,align 1
%u=call i8*@sml_alloc(i32 inreg 20)#0
%v=getelementptr inbounds i8,i8*%u,i64 -4
%w=bitcast i8*%v to i32*
store i32 1342177296,i32*%w,align 4
%x=load i8*,i8**%b,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 i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[8x i8]}>,<{[4x i8],i32,[8x i8]}>*@af,i64 0,i32 2,i64 0),i8**%A,align 8
%B=getelementptr inbounds i8,i8*%u,i64 16
%C=bitcast i8*%B to i32*
store i32 3,i32*%C,align 4
call fastcc void@_SMLLN5BinIO8StreamIO11isClosedOutE_332(i8*inreg%u)
%D=load i8*,i8**%b,align 8
%E=getelementptr inbounds i8,i8*%D,i64 8
%F=bitcast i8*%E to i32**
%G=load i32*,i32**%F,align 8
%H=load i32,i32*%G,align 4
%I=icmp eq i32%H,2
br i1%I,label%aJ,label%J
J:
%K=bitcast i8**%d to i32**
%L=load i32*,i32**%K,align 8
%M=load i32,i32*%L,align 4
%N=call{i32,i1}@llvm.sadd.with.overflow.i32(i32%M,i32 1)#0
%O=extractvalue{i32,i1}%N,1
br i1%O,label%P,label%ah
P:
store i8*null,i8**%c,align 8
store i8*null,i8**%d,align 8
%Q=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%Q,i8**%b,align 8
%R=call i8*@sml_alloc(i32 inreg 20)#0
%S=getelementptr inbounds i8,i8*%R,i64 -4
%T=bitcast i8*%S to i32*
store i32 1342177296,i32*%T,align 4
store i8*%R,i8**%c,align 8
%U=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%V=bitcast i8*%R to i8**
store i8*%U,i8**%V,align 8
%W=getelementptr inbounds i8,i8*%R,i64 8
%X=bitcast i8*%W to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@ae,i64 0,i32 2,i64 0),i8**%X,align 8
%Y=getelementptr inbounds i8,i8*%R,i64 16
%Z=bitcast i8*%Y to i32*
store i32 3,i32*%Z,align 4
%aa=call i8*@sml_alloc(i32 inreg 60)#0
%ab=getelementptr inbounds i8,i8*%aa,i64 -4
%ac=bitcast i8*%ab to i32*
store i32 1342177336,i32*%ac,align 4
%ad=getelementptr inbounds i8,i8*%aa,i64 56
%ae=bitcast i8*%ad to i32*
store i32 1,i32*%ae,align 4
%af=load i8*,i8**%c,align 8
%ag=bitcast i8*%aa to i8**
store i8*%af,i8**%ag,align 8
call void@sml_raise(i8*inreg%aa)#1
unreachable
ah:
%ai=add nsw i32%M,1
%aj=call i8*@sml_alloc(i32 inreg 20)#0
%ak=getelementptr inbounds i8,i8*%aj,i64 -4
%al=bitcast i8*%ak to i32*
store i32 1342177296,i32*%al,align 4
%am=getelementptr inbounds i8,i8*%aj,i64 13
call void@llvm.memset.p0i8.i32(i8*%am,i8 0,i32 3,i1 false)
%an=load i8*,i8**%c,align 8
%ao=bitcast i8*%aj to i8**
store i8*%an,i8**%ao,align 8
%ap=getelementptr inbounds i8,i8*%aj,i64 8
%aq=bitcast i8*%ap to i32*
store i32%M,i32*%aq,align 4
%ar=getelementptr inbounds i8,i8*%aj,i64 12
store i8%t,i8*%ar,align 1
%as=getelementptr inbounds i8,i8*%aj,i64 16
%at=bitcast i8*%as to i32*
store i32 1,i32*%at,align 4
call fastcc void@_SMLFN10Word8Array6updateE(i8*inreg%aj)
%au=load i32*,i32**%K,align 8
store i8*null,i8**%d,align 8
store i32%ai,i32*%au,align 4
%av=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aw=call fastcc i32@_SMLFN10Word8Array6lengthE(i8*inreg%av)
%ax=icmp eq i32%ai,%aw
br i1%ax,label%ay,label%aI
ay:
%az=call i8*@sml_alloc(i32 inreg 20)#0
%aA=getelementptr inbounds i8,i8*%az,i64 -4
%aB=bitcast i8*%aA to i32*
store i32 1342177296,i32*%aB,align 4
%aC=load i8*,i8**%b,align 8
%aD=bitcast i8*%az to i8**
store i8*%aC,i8**%aD,align 8
%aE=getelementptr inbounds i8,i8*%az,i64 8
%aF=bitcast i8*%aE to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[8x i8]}>,<{[4x i8],i32,[8x i8]}>*@af,i64 0,i32 2,i64 0),i8**%aF,align 8
%aG=getelementptr inbounds i8,i8*%az,i64 16
%aH=bitcast i8*%aG to i32*
store i32 3,i32*%aH,align 4
tail call fastcc void@_SMLLN5BinIO8StreamIO11flushBufferE_334(i8*inreg%az)
ret void
aI:
ret void
aJ:
store i8*null,i8**%d,align 8
%aK=call i8*@sml_alloc(i32 inreg 20)#0
%aL=getelementptr inbounds i8,i8*%aK,i64 -4
%aM=bitcast i8*%aL to i32*
store i32 1342177296,i32*%aM,align 4
%aN=getelementptr inbounds i8,i8*%aK,i64 13
call void@llvm.memset.p0i8.i32(i8*%aN,i8 0,i32 3,i1 false)
%aO=load i8*,i8**%c,align 8
%aP=bitcast i8*%aK to i8**
store i8*%aO,i8**%aP,align 8
%aQ=getelementptr inbounds i8,i8*%aK,i64 8
%aR=bitcast i8*%aQ to i32*
store i32 0,i32*%aR,align 4
%aS=getelementptr inbounds i8,i8*%aK,i64 12
store i8%t,i8*%aS,align 1
%aT=getelementptr inbounds i8,i8*%aK,i64 16
%aU=bitcast i8*%aT to i32*
store i32 1,i32*%aU,align 4
call fastcc void@_SMLFN10Word8Array6updateE(i8*inreg%aK)
%aV=load i8*,i8**%b,align 8
%aW=getelementptr inbounds i8,i8*%aV,i64 40
%aX=bitcast i8*%aW to i8**
%aY=load i8*,i8**%aX,align 8
%aZ=getelementptr inbounds i8,i8*%aY,i64 16
%a0=bitcast i8*%aZ to i8*(i8*,i8*)**
%a1=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%a0,align 8
%a2=bitcast i8*%aY to i8**
%a3=load i8*,i8**%a2,align 8
store i8*%a3,i8**%d,align 8
%a4=call i8*@sml_alloc(i32 inreg 28)#0
%a5=getelementptr inbounds i8,i8*%a4,i64 -4
%a6=bitcast i8*%a5 to i32*
store i32 1342177304,i32*%a6,align 4
%a7=getelementptr inbounds i8,i8*%a4,i64 12
%a8=bitcast i8*%a7 to i32*
store i32 0,i32*%a8,align 1
%a9=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ba=bitcast i8*%a4 to i8**
store i8*%a9,i8**%ba,align 8
%bb=getelementptr inbounds i8,i8*%a4,i64 8
%bc=bitcast i8*%bb to i32*
store i32 0,i32*%bc,align 4
%bd=getelementptr inbounds i8,i8*%a4,i64 16
%be=bitcast i8*%bd to i8**
store i8*bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@ad,i64 0,i32 2)to i8*),i8**%be,align 8
%bf=getelementptr inbounds i8,i8*%a4,i64 24
%bg=bitcast i8*%bf to i32*
store i32 5,i32*%bg,align 4
%bh=invoke fastcc i8*@_SMLFN15Word8ArraySlice5sliceE(i8*inreg%a4)
to label%bi unwind label%bl
bi:
%bj=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%bk=invoke fastcc i8*%a1(i8*inreg%bj,i8*inreg%bh)
to label%aI unwind label%bl
bl:
%bm=landingpad{i8*,i8*}
catch i8*null
%bn=extractvalue{i8*,i8*}%bm,1
%bo=bitcast i8*%bn to i8**
%bp=load i8*,i8**%bo,align 8
store i8*%bp,i8**%d,align 8
store i8*null,i8**%c,align 8
%bq=call i8*@sml_alloc(i32 inreg 28)#0
%br=getelementptr inbounds i8,i8*%bq,i64 -4
%bs=bitcast i8*%br to i32*
store i32 1342177304,i32*%bs,align 4
%bt=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%bu=bitcast i8*%bq to i8**
store i8*%bt,i8**%bu,align 8
%bv=getelementptr inbounds i8,i8*%bq,i64 8
%bw=bitcast i8*%bv to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[8x i8]}>,<{[4x i8],i32,[8x i8]}>*@af,i64 0,i32 2,i64 0),i8**%bw,align 8
%bx=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%by=getelementptr inbounds i8,i8*%bq,i64 16
%bz=bitcast i8*%by to i8**
store i8*%bx,i8**%bz,align 8
%bA=getelementptr inbounds i8,i8*%bq,i64 24
%bB=bitcast i8*%bA to i32*
store i32 7,i32*%bB,align 4
store i8*null,i8**%c,align 8
%bC=call fastcc i8*@_SMLLN5BinIO8StreamIO9outputExnE_327(i8*inreg%bq)
unreachable
}
define fastcc void@_SMLFN5BinIO8StreamIO8closeOutE(i8*inreg%a)#2 gc"smlsharp"{
k:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%b,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%i,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%b,align 8
br label%i
i:
%j=phi i8*[%h,%g],[%a,%k]
%l=getelementptr inbounds i8,i8*%j,i64 24
%m=bitcast i8*%l to i8**
%n=load i8*,i8**%m,align 8
store i8*%n,i8**%c,align 8
%o=getelementptr inbounds i8,i8*%j,i64 56
%p=bitcast i8*%o to i8**
%q=load i8*,i8**%p,align 8
store i8*%q,i8**%d,align 8
%r=bitcast i8*%n to i32*
%s=load i32,i32*%r,align 4
%t=icmp eq i32%s,0
br i1%t,label%v,label%u
u:
ret void
v:
%w=call i8*@sml_alloc(i32 inreg 20)#0
%x=getelementptr inbounds i8,i8*%w,i64 -4
%y=bitcast i8*%x to i32*
store i32 1342177296,i32*%y,align 4
%z=load i8*,i8**%b,align 8
%A=bitcast i8*%w to i8**
store i8*%z,i8**%A,align 8
%B=getelementptr inbounds i8,i8*%w,i64 8
%C=bitcast i8*%B to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[9x i8]}>,<{[4x i8],i32,[9x i8]}>*@ah,i64 0,i32 2,i64 0),i8**%C,align 8
%D=getelementptr inbounds i8,i8*%w,i64 16
%E=bitcast i8*%D to i32*
store i32 3,i32*%E,align 4
call fastcc void@_SMLLN5BinIO8StreamIO11flushBufferE_334(i8*inreg%w)
%F=bitcast i8**%c to i32**
%G=load i32*,i32**%F,align 8
store i8*null,i8**%c,align 8
store i32 1,i32*%G,align 4
%H=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%I=getelementptr inbounds i8,i8*%H,i64 16
%J=bitcast i8*%I to i8**
%K=load i8*,i8**%J,align 8
call fastcc void@_SMLFN18SMLSharp__OSProcess12cancelAtExitE(i8*inreg%K)
%L=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%M=getelementptr inbounds i8,i8*%L,i64 24
%N=bitcast i8*%M to i8**
%O=load i8*,i8**%N,align 8
%P=getelementptr inbounds i8,i8*%O,i64 16
%Q=bitcast i8*%P to i8*(i8*,i8*)**
%R=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%Q,align 8
%S=bitcast i8*%O to i8**
%T=load i8*,i8**%S,align 8
store i8*%T,i8**%b,align 8
%U=call i8*@sml_alloc(i32 inreg 4)#0
%V=bitcast i8*%U to i32*
%W=getelementptr inbounds i8,i8*%U,i64 -4
%X=bitcast i8*%W to i32*
store i32 4,i32*%X,align 4
store i32 0,i32*%V,align 4
%Y=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%Z=call fastcc i8*%R(i8*inreg%Y,i8*inreg%U)
ret void
}
define internal fastcc void@_SMLL2lp_360(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
j:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%c,align 8
%f=bitcast i8**%c to i8***
%g=bitcast i8**%c to i8****
br label%h
h:
%i=phi i8*[%aq,%F],[%b,%j]
store i8*%i,i8**%e,align 8
%k=load atomic i32,i32*@sml_check_flag unordered,align 4
%l=icmp eq i32%k,0
br i1%l,label%o,label%m
m:
call void@sml_check(i32 inreg%k)
%n=load i8*,i8**%e,align 8
br label%o
o:
%p=phi i8*[%n,%m],[%i,%h]
%q=load i8**,i8***%f,align 8
%r=load i8*,i8**%q,align 8
%s=getelementptr inbounds i8,i8*%r,i64 8
%t=bitcast i8*%s to i8**
%u=load i8*,i8**%t,align 8
%v=getelementptr inbounds i8,i8*%u,i64 16
%w=bitcast i8*%v to i8*(i8*,i8*)**
%x=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%w,align 8
%y=bitcast i8*%u to i8**
%z=load i8*,i8**%y,align 8
%A=call fastcc i8*%x(i8*inreg%z,i8*inreg%p)
%B=bitcast i8*%A to i32*
%C=load i32,i32*%B,align 4
%D=icmp eq i32%C,0
br i1%D,label%E,label%F
E:
ret void
F:
%G=load i8***,i8****%g,align 8
%H=load i8**,i8***%G,align 8
%I=load i8*,i8**%H,align 8
%J=getelementptr inbounds i8,i8*%I,i64 16
%K=bitcast i8*%J to i8*(i8*,i8*)**
%L=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%K,align 8
%M=bitcast i8*%I to i8**
%N=load i8*,i8**%M,align 8
%O=load i8*,i8**%e,align 8
%P=call fastcc i8*%L(i8*inreg%N,i8*inreg%O)
%Q=bitcast i8*%P to i32*
%R=load i32,i32*%Q,align 4
%S=load i8**,i8***%f,align 8
%T=load i8*,i8**%S,align 8
%U=getelementptr inbounds i8,i8*%T,i64 16
%V=bitcast i8*%U to i8**
%W=load i8*,i8**%V,align 8
%X=getelementptr inbounds i8,i8*%W,i64 16
%Y=bitcast i8*%X to i8*(i8*,i8*)**
%Z=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%Y,align 8
%aa=bitcast i8*%W to i8**
%ab=load i8*,i8**%aa,align 8
store i8*%ab,i8**%d,align 8
%ac=call i8*@sml_alloc(i32 inreg 28)#0
%ad=getelementptr inbounds i8,i8*%ac,i64 -4
%ae=bitcast i8*%ad to i32*
store i32 1342177304,i32*%ae,align 4
%af=getelementptr inbounds i8,i8*%ac,i64 12
%ag=bitcast i8*%af to i32*
store i32 0,i32*%ag,align 1
%ah=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%ai=bitcast i8*%ac to i8**
store i8*%ah,i8**%ai,align 8
%aj=getelementptr inbounds i8,i8*%ac,i64 8
%ak=bitcast i8*%aj to i32*
store i32%R,i32*%ak,align 4
%al=getelementptr inbounds i8,i8*%ac,i64 16
%am=bitcast i8*%al to i8**
store i8*null,i8**%am,align 8
%an=getelementptr inbounds i8,i8*%ac,i64 24
%ao=bitcast i8*%an to i32*
store i32 5,i32*%ao,align 4
%ap=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aq=call fastcc i8*%Z(i8*inreg%ap,i8*inreg%ac)
br label%h
}
define internal fastcc void@_SMLL7iterate_361(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%c,align 8
store i8*%b,i8**%d,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%g,label%i
g:
%h=bitcast i8*%a to i8**
br label%m
i:
call void@sml_check(i32 inreg%e)
%j=bitcast i8**%c to i8***
%k=load i8**,i8***%j,align 8
%l=load i8*,i8**%d,align 8
br label%m
m:
%n=phi i8*[%l,%i],[%b,%g]
%o=phi i8**[%k,%i],[%h,%g]
%p=load i8*,i8**%o,align 8
tail call fastcc void@_SMLL2lp_360(i8*inreg%p,i8*inreg%n)
ret void
}
define internal fastcc i8*@_SMLL7iterate_362(i8*inreg%a)unnamed_addr#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
store i8*%a,i8**%b,align 8
%d=call i8*@sml_alloc(i32 inreg 12)#0
%e=getelementptr inbounds i8,i8*%d,i64 -4
%f=bitcast i8*%e to i32*
store i32 1342177288,i32*%f,align 4
store i8*%d,i8**%c,align 8
%g=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%h=bitcast i8*%d to i8**
store i8*%g,i8**%h,align 8
%i=getelementptr inbounds i8,i8*%d,i64 8
%j=bitcast i8*%i to i32*
store i32 1,i32*%j,align 4
%k=call i8*@sml_alloc(i32 inreg 28)#0
%l=getelementptr inbounds i8,i8*%k,i64 -4
%m=bitcast i8*%l to i32*
store i32 1342177304,i32*%m,align 4
%n=load i8*,i8**%c,align 8
%o=bitcast i8*%k to i8**
store i8*%n,i8**%o,align 8
%p=getelementptr inbounds i8,i8*%k,i64 8
%q=bitcast i8*%p to void(...)**
store void(...)*bitcast(void(i8*,i8*)*@_SMLL2lp_360 to void(...)*),void(...)**%q,align 8
%r=getelementptr inbounds i8,i8*%k,i64 16
%s=bitcast i8*%r to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL2lp_503 to void(...)*),void(...)**%s,align 8
%t=getelementptr inbounds i8,i8*%k,i64 24
%u=bitcast i8*%t to i32*
store i32 -2147483647,i32*%u,align 4
%v=call i8*@sml_alloc(i32 inreg 12)#0
%w=getelementptr inbounds i8,i8*%v,i64 -4
%x=bitcast i8*%w to i32*
store i32 1342177288,i32*%x,align 4
store i8*%v,i8**%b,align 8
%y=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%z=bitcast i8*%v to i8**
store i8*%y,i8**%z,align 8
%A=getelementptr inbounds i8,i8*%v,i64 8
%B=bitcast i8*%A to i32*
store i32 1,i32*%B,align 4
%C=call i8*@sml_alloc(i32 inreg 28)#0
%D=getelementptr inbounds i8,i8*%C,i64 -4
%E=bitcast i8*%D to i32*
store i32 1342177304,i32*%E,align 4
%F=load i8*,i8**%b,align 8
%G=bitcast i8*%C to i8**
store i8*%F,i8**%G,align 8
%H=getelementptr inbounds i8,i8*%C,i64 8
%I=bitcast i8*%H to void(...)**
store void(...)*bitcast(void(i8*,i8*)*@_SMLL7iterate_361 to void(...)*),void(...)**%I,align 8
%J=getelementptr inbounds i8,i8*%C,i64 16
%K=bitcast i8*%J to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL7iterate_504 to void(...)*),void(...)**%K,align 8
%L=getelementptr inbounds i8,i8*%C,i64 24
%M=bitcast i8*%L to i32*
store i32 -2147483647,i32*%M,align 4
ret i8*%C
}
define internal fastcc void@_SMLL9writeArr_G_365(i8*inreg%a)#5 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=load i8*,i8**@_SMLZN2IO20BlockingNotSupportedE,align 8
store i8*%d,i8**%b,align 8
%e=call i8*@sml_alloc(i32 inreg 20)#0
%f=getelementptr inbounds i8,i8*%e,i64 -4
%g=bitcast i8*%f to i32*
store i32 1342177296,i32*%g,align 4
store i8*%e,i8**%c,align 8
%h=load i8*,i8**%b,align 8
store i8*null,i8**%b,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 i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@aj,i64 0,i32 2,i64 0),i8**%k,align 8
%l=getelementptr inbounds i8,i8*%e,i64 16
%m=bitcast i8*%l to i32*
store i32 3,i32*%m,align 4
%n=call i8*@sml_alloc(i32 inreg 60)#0
%o=getelementptr inbounds i8,i8*%n,i64 -4
%p=bitcast i8*%o to i32*
store i32 1342177336,i32*%p,align 4
%q=getelementptr inbounds i8,i8*%n,i64 56
%r=bitcast i8*%q to i32*
store i32 1,i32*%r,align 4
%s=load i8*,i8**%c,align 8
%t=bitcast i8*%n to i8**
store i8*%s,i8**%t,align 8
call void@sml_raise(i8*inreg%n)#1
unreachable
}
define internal fastcc void@_SMLL9writeVec_G_368(i8*inreg%a)#5 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=load i8*,i8**@_SMLZN2IO20BlockingNotSupportedE,align 8
store i8*%d,i8**%b,align 8
%e=call i8*@sml_alloc(i32 inreg 20)#0
%f=getelementptr inbounds i8,i8*%e,i64 -4
%g=bitcast i8*%f to i32*
store i32 1342177296,i32*%g,align 4
store i8*%e,i8**%c,align 8
%h=load i8*,i8**%b,align 8
store i8*null,i8**%b,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 i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@al,i64 0,i32 2,i64 0),i8**%k,align 8
%l=getelementptr inbounds i8,i8*%e,i64 16
%m=bitcast i8*%l to i32*
store i32 3,i32*%m,align 4
%n=call i8*@sml_alloc(i32 inreg 60)#0
%o=getelementptr inbounds i8,i8*%n,i64 -4
%p=bitcast i8*%o to i32*
store i32 1342177336,i32*%p,align 4
%q=getelementptr inbounds i8,i8*%n,i64 56
%r=bitcast i8*%q to i32*
store i32 1,i32*%r,align 4
%s=load i8*,i8**%c,align 8
%t=bitcast i8*%n to i8**
store i8*%s,i8**%t,align 8
call void@sml_raise(i8*inreg%n)#1
unreachable
}
define internal fastcc void@_SMLL3tag_370(i32 inreg%a)#4 gc"smlsharp"{
ret void
}
define internal fastcc void@_SMLLN5BinIO8StreamIO11mkOutstreamE_372(i8*inreg%a,i32 inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%c,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%f,label%h
f:
%g=bitcast i8*%a to i8**
br label%k
h:
call void@sml_check(i32 inreg%d)
%i=bitcast i8**%c to i8***
%j=load i8**,i8***%i,align 8
br label%k
k:
%l=phi i8**[%j,%h],[%g,%f]
%m=load i8*,i8**%l,align 8
tail call fastcc void@_SMLFN5BinIO8StreamIO8closeOutE(i8*inreg%m)
ret void
}
define internal fastcc void@_SMLLN5BinIO8StreamIO11mkOutstreamE_374(i8*inreg%a,i32 inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%c,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%f,label%h
f:
%g=bitcast i8*%a to i8**
br label%k
h:
call void@sml_check(i32 inreg%d)
%i=bitcast i8**%c to i8***
%j=load i8**,i8***%i,align 8
br label%k
k:
%l=phi i8**[%j,%h],[%g,%f]
%m=load i8*,i8**%l,align 8
store i8*%m,i8**%c,align 8
%n=call i8*@sml_alloc(i32 inreg 20)#0
%o=getelementptr inbounds i8,i8*%n,i64 -4
%p=bitcast i8*%o to i32*
store i32 1342177296,i32*%p,align 4
%q=load i8*,i8**%c,align 8
%r=bitcast i8*%n to i8**
store i8*%q,i8**%r,align 8
%s=getelementptr inbounds i8,i8*%n,i64 8
%t=bitcast i8*%s to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[9x i8]}>,<{[4x i8],i32,[9x i8]}>*@aV,i64 0,i32 2,i64 0),i8**%t,align 8
%u=getelementptr inbounds i8,i8*%n,i64 16
%v=bitcast i8*%u to i32*
store i32 3,i32*%v,align 4
tail call fastcc void@_SMLLN5BinIO8StreamIO11flushBufferE_334(i8*inreg%n)
ret void
}
define internal fastcc void@_SMLLN5BinIO8StreamIO11mkOutstreamE_375(i8*inreg%a,i32 inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%c,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%f,label%h
f:
%g=bitcast i8*%a to i8**
br label%k
h:
call void@sml_check(i32 inreg%d)
%i=bitcast i8**%c to i8***
%j=load i8**,i8***%i,align 8
br label%k
k:
%l=phi i8**[%j,%h],[%g,%f]
%m=load i8*,i8**%l,align 8
tail call fastcc void@_SMLFN5BinIO8StreamIO8closeOutE(i8*inreg%m)
ret void
}
define fastcc i8*@_SMLFN5BinIO8StreamIO11mkOutstreamE(i8*inreg%a)#2 gc"smlsharp"{
q:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
%h=alloca i8*,align 8
%i=alloca i8*,align 8
%j=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
call void@llvm.gcroot(i8**%h,i8*null)#0
call void@llvm.gcroot(i8**%i,i8*null)#0
call void@llvm.gcroot(i8**%j,i8*null)#0
store i8*%a,i8**%b,align 8
%k=load atomic i32,i32*@sml_check_flag unordered,align 4
%l=icmp eq i32%k,0
br i1%l,label%o,label%m
m:
call void@sml_check(i32 inreg%k)
%n=load i8*,i8**%b,align 8
br label%o
o:
%p=phi i8*[%n,%m],[%a,%q]
store i8*%p,i8**%e,align 8
%r=bitcast i8*%p to i8**
%s=load i8*,i8**%r,align 8
store i8*%s,i8**%g,align 8
%t=getelementptr inbounds i8,i8*%s,i64 16
%u=bitcast i8*%t to i32*
%v=load i32,i32*%u,align 4
%w=getelementptr inbounds i8,i8*%s,i64 80
%x=bitcast i8*%w to i8**
%y=load i8*,i8**%x,align 8
%z=icmp eq i8*%y,null
br i1%z,label%U,label%A
A:
%B=bitcast i8*%y to i8**
%C=load i8*,i8**%B,align 8
store i8*%C,i8**%b,align 8
%D=load i8*,i8**@_SMLZN15Word8ArraySlice6lengthE,align 8
store i8*%D,i8**%c,align 8
%E=load i8*,i8**@_SMLZN15Word8ArraySlice8subsliceE,align 8
store i8*%E,i8**%d,align 8
%F=call i8*@sml_alloc(i32 inreg 28)#0
%G=getelementptr inbounds i8,i8*%F,i64 -4
%H=bitcast i8*%G to i32*
store i32 1342177304,i32*%H,align 4
%I=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%J=bitcast i8*%F to i8**
store i8*%I,i8**%J,align 8
%K=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%L=getelementptr inbounds i8,i8*%F,i64 8
%M=bitcast i8*%L to i8**
store i8*%K,i8**%M,align 8
%N=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%O=getelementptr inbounds i8,i8*%F,i64 16
%P=bitcast i8*%O to i8**
store i8*%N,i8**%P,align 8
%Q=getelementptr inbounds i8,i8*%F,i64 24
%R=bitcast i8*%Q to i32*
store i32 7,i32*%R,align 4
%S=call fastcc i8*@_SMLL7iterate_362(i8*inreg%F)
%T=load i8*,i8**%g,align 8
br label%U
U:
%V=phi i8*[%T,%A],[%s,%o]
%W=phi i8*[%S,%A],[bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@ak,i64 0,i32 2)to i8*),%o]
store i8*%W,i8**%b,align 8
%X=getelementptr inbounds i8,i8*%V,i64 96
%Y=bitcast i8*%X to i8**
%Z=load i8*,i8**%Y,align 8
%aa=icmp eq i8*%Z,null
br i1%aa,label%au,label%ab
ab:
%ac=bitcast i8*%Z to i8**
%ad=load i8*,i8**%ac,align 8
store i8*%ad,i8**%c,align 8
%ae=load i8*,i8**@_SMLZN16Word8VectorSlice6lengthE,align 8
store i8*%ae,i8**%d,align 8
%af=load i8*,i8**@_SMLZN16Word8VectorSlice8subsliceE,align 8
store i8*%af,i8**%f,align 8
%ag=call i8*@sml_alloc(i32 inreg 28)#0
%ah=getelementptr inbounds i8,i8*%ag,i64 -4
%ai=bitcast i8*%ah to i32*
store i32 1342177304,i32*%ai,align 4
%aj=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ak=bitcast i8*%ag to i8**
store i8*%aj,i8**%ak,align 8
%al=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%am=getelementptr inbounds i8,i8*%ag,i64 8
%an=bitcast i8*%am to i8**
store i8*%al,i8**%an,align 8
%ao=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%ap=getelementptr inbounds i8,i8*%ag,i64 16
%aq=bitcast i8*%ap to i8**
store i8*%ao,i8**%aq,align 8
%ar=getelementptr inbounds i8,i8*%ag,i64 24
%as=bitcast i8*%ar to i32*
store i32 7,i32*%as,align 4
%at=call fastcc i8*@_SMLL7iterate_362(i8*inreg%ag)
br label%au
au:
%av=phi i8*[%at,%ab],[bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@am,i64 0,i32 2)to i8*),%U]
store i8*%av,i8**%c,align 8
%aw=call fastcc i8*@_SMLFN18SMLSharp__OSProcess7atExit_GE(i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@an,i64 0,i32 2)to i8*))
store i8*%aw,i8**%d,align 8
%ax=call i8*@sml_alloc(i32 inreg 12)#0
%ay=bitcast i8*%ax to i32*
%az=getelementptr inbounds i8,i8*%ax,i64 -4
%aA=bitcast i8*%az to i32*
store i32 1342177288,i32*%aA,align 4
%aB=getelementptr inbounds i8,i8*%ax,i64 5
call void@llvm.memset.p0i8.i32(i8*%aB,i8 0,i32 3,i1 false)
store i32%v,i32*%ay,align 4
%aC=getelementptr inbounds i8,i8*%ax,i64 4
store i8 0,i8*%aC,align 1
%aD=getelementptr inbounds i8,i8*%ax,i64 8
%aE=bitcast i8*%aD to i32*
store i32 0,i32*%aE,align 4
%aF=call fastcc i8*@_SMLFN10Word8Array5arrayE(i8*inreg%ax)
store i8*%aF,i8**%f,align 8
%aG=call i8*@sml_alloc(i32 inreg 4)#0
%aH=bitcast i8*%aG to i32*
%aI=getelementptr inbounds i8,i8*%aG,i64 -4
%aJ=bitcast i8*%aI to i32*
store i32 536870916,i32*%aJ,align 4
store i8*%aG,i8**%h,align 8
store i32 0,i32*%aH,align 4
%aK=call i8*@sml_alloc(i32 inreg 4)#0
%aL=bitcast i8*%aK to i32*
%aM=getelementptr inbounds i8,i8*%aK,i64 -4
%aN=bitcast i8*%aM to i32*
store i32 536870916,i32*%aN,align 4
store i8*%aK,i8**%i,align 8
store i32 0,i32*%aL,align 4
%aO=call i8*@sml_alloc(i32 inreg 4)#0
%aP=getelementptr inbounds i8,i8*%aO,i64 -4
%aQ=bitcast i8*%aP to i32*
store i32 536870916,i32*%aQ,align 4
store i8*%aO,i8**%j,align 8
%aR=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%aS=getelementptr inbounds i8,i8*%aR,i64 8
%aT=bitcast i8*%aS to i32*
%aU=load i32,i32*%aT,align 4
%aV=bitcast i8*%aO to i32*
store i32%aU,i32*%aV,align 4
%aW=call i8*@sml_alloc(i32 inreg 68)#0
%aX=getelementptr inbounds i8,i8*%aW,i64 -4
%aY=bitcast i8*%aX to i32*
store i32 1342177344,i32*%aY,align 4
store i8*%aW,i8**%e,align 8
%aZ=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%a0=bitcast i8*%aW to i8**
store i8*%aZ,i8**%a0,align 8
%a1=load i8*,i8**%j,align 8
store i8*null,i8**%j,align 8
%a2=getelementptr inbounds i8,i8*%aW,i64 8
%a3=bitcast i8*%a2 to i8**
store i8*%a1,i8**%a3,align 8
%a4=load i8*,i8**%d,align 8
%a5=getelementptr inbounds i8,i8*%aW,i64 16
%a6=bitcast i8*%a5 to i8**
store i8*%a4,i8**%a6,align 8
%a7=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%a8=getelementptr inbounds i8,i8*%aW,i64 24
%a9=bitcast i8*%a8 to i8**
store i8*%a7,i8**%a9,align 8
%ba=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%bb=getelementptr inbounds i8,i8*%aW,i64 32
%bc=bitcast i8*%bb to i8**
store i8*%ba,i8**%bc,align 8
%bd=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%be=getelementptr inbounds i8,i8*%aW,i64 40
%bf=bitcast i8*%be to i8**
store i8*%bd,i8**%bf,align 8
%bg=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bh=getelementptr inbounds i8,i8*%aW,i64 48
%bi=bitcast i8*%bh to i8**
store i8*%bg,i8**%bi,align 8
%bj=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%bk=getelementptr inbounds i8,i8*%aW,i64 56
%bl=bitcast i8*%bk to i8**
store i8*%bj,i8**%bl,align 8
%bm=getelementptr inbounds i8,i8*%aW,i64 64
%bn=bitcast i8*%bm to i32*
store i32 255,i32*%bn,align 4
%bo=call i8*@sml_alloc(i32 inreg 12)#0
%bp=getelementptr inbounds i8,i8*%bo,i64 -4
%bq=bitcast i8*%bp to i32*
store i32 1342177288,i32*%bq,align 4
store i8*%bo,i8**%b,align 8
%br=load i8*,i8**%e,align 8
%bs=bitcast i8*%bo to i8**
store i8*%br,i8**%bs,align 8
%bt=getelementptr inbounds i8,i8*%bo,i64 8
%bu=bitcast i8*%bt to i32*
store i32 1,i32*%bu,align 4
%bv=call i8*@sml_alloc(i32 inreg 28)#0
%bw=getelementptr inbounds i8,i8*%bv,i64 -4
%bx=bitcast i8*%bw to i32*
store i32 1342177304,i32*%bx,align 4
store i8*%bv,i8**%c,align 8
%by=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%bz=bitcast i8*%bv to i8**
store i8*%by,i8**%bz,align 8
%bA=getelementptr inbounds i8,i8*%bv,i64 8
%bB=bitcast i8*%bA to void(...)**
store void(...)*bitcast(void(i8*,i32)*@_SMLLN5BinIO8StreamIO11mkOutstreamE_372 to void(...)*),void(...)**%bB,align 8
%bC=getelementptr inbounds i8,i8*%bv,i64 16
%bD=bitcast i8*%bC to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO8StreamIO11mkOutstreamE_509 to void(...)*),void(...)**%bD,align 8
%bE=getelementptr inbounds i8,i8*%bv,i64 24
%bF=bitcast i8*%bE to i32*
store i32 -2147483647,i32*%bF,align 4
%bG=call i8*@sml_alloc(i32 inreg 12)#0
%bH=getelementptr inbounds i8,i8*%bG,i64 -4
%bI=bitcast i8*%bH to i32*
store i32 1342177288,i32*%bI,align 4
store i8*%bG,i8**%b,align 8
%bJ=load i8*,i8**%e,align 8
%bK=bitcast i8*%bG to i8**
store i8*%bJ,i8**%bK,align 8
%bL=getelementptr inbounds i8,i8*%bG,i64 8
%bM=bitcast i8*%bL to i32*
store i32 1,i32*%bM,align 4
%bN=call i8*@sml_alloc(i32 inreg 28)#0
%bO=getelementptr inbounds i8,i8*%bN,i64 -4
%bP=bitcast i8*%bO to i32*
store i32 1342177304,i32*%bP,align 4
store i8*%bN,i8**%f,align 8
%bQ=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%bR=bitcast i8*%bN to i8**
store i8*%bQ,i8**%bR,align 8
%bS=getelementptr inbounds i8,i8*%bN,i64 8
%bT=bitcast i8*%bS to void(...)**
store void(...)*bitcast(void(i8*,i32)*@_SMLLN5BinIO8StreamIO11mkOutstreamE_374 to void(...)*),void(...)**%bT,align 8
%bU=getelementptr inbounds i8,i8*%bN,i64 16
%bV=bitcast i8*%bU to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO8StreamIO11mkOutstreamE_510 to void(...)*),void(...)**%bV,align 8
%bW=getelementptr inbounds i8,i8*%bN,i64 24
%bX=bitcast i8*%bW to i32*
store i32 -2147483647,i32*%bX,align 4
%bY=call i8*@sml_alloc(i32 inreg 12)#0
%bZ=getelementptr inbounds i8,i8*%bY,i64 -4
%b0=bitcast i8*%bZ to i32*
store i32 1342177288,i32*%b0,align 4
store i8*%bY,i8**%b,align 8
%b1=load i8*,i8**%e,align 8
%b2=bitcast i8*%bY to i8**
store i8*%b1,i8**%b2,align 8
%b3=getelementptr inbounds i8,i8*%bY,i64 8
%b4=bitcast i8*%b3 to i32*
store i32 1,i32*%b4,align 4
%b5=call i8*@sml_alloc(i32 inreg 28)#0
%b6=getelementptr inbounds i8,i8*%b5,i64 -4
%b7=bitcast i8*%b6 to i32*
store i32 1342177304,i32*%b7,align 4
store i8*%b5,i8**%g,align 8
%b8=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%b9=bitcast i8*%b5 to i8**
store i8*%b8,i8**%b9,align 8
%ca=getelementptr inbounds i8,i8*%b5,i64 8
%cb=bitcast i8*%ca to void(...)**
store void(...)*bitcast(void(i8*,i32)*@_SMLLN5BinIO8StreamIO11mkOutstreamE_375 to void(...)*),void(...)**%cb,align 8
%cc=getelementptr inbounds i8,i8*%b5,i64 16
%cd=bitcast i8*%cc to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN5BinIO8StreamIO11mkOutstreamE_511 to void(...)*),void(...)**%cd,align 8
%ce=getelementptr inbounds i8,i8*%b5,i64 24
%cf=bitcast i8*%ce to i32*
store i32 -2147483647,i32*%cf,align 4
%cg=call i8*@sml_alloc(i32 inreg 28)#0
%ch=getelementptr inbounds i8,i8*%cg,i64 -4
%ci=bitcast i8*%ch to i32*
store i32 1342177304,i32*%ci,align 4
store i8*%cg,i8**%b,align 8
%cj=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ck=bitcast i8*%cg to i8**
store i8*%cj,i8**%ck,align 8
%cl=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%cm=getelementptr inbounds i8,i8*%cg,i64 8
%cn=bitcast i8*%cm to i8**
store i8*%cl,i8**%cn,align 8
%co=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%cp=getelementptr inbounds i8,i8*%cg,i64 16
%cq=bitcast i8*%cp to i8**
store i8*%co,i8**%cq,align 8
%cr=getelementptr inbounds i8,i8*%cg,i64 24
%cs=bitcast i8*%cr to i32*
store i32 7,i32*%cs,align 4
%ct=call i8*@sml_alloc(i32 inreg 20)#0
%cu=getelementptr inbounds i8,i8*%ct,i64 -4
%cv=bitcast i8*%cu to i32*
store i32 1342177296,i32*%cv,align 4
%cw=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%cx=bitcast i8*%ct to i8**
store i8*%cw,i8**%cx,align 8
%cy=load i8*,i8**%b,align 8
%cz=getelementptr inbounds i8,i8*%ct,i64 8
%cA=bitcast i8*%cz to i8**
store i8*%cy,i8**%cA,align 8
%cB=getelementptr inbounds i8,i8*%ct,i64 16
%cC=bitcast i8*%cB to i32*
store i32 3,i32*%cC,align 4
store i8*%cw,i8**%b,align 8
%cD=bitcast i8*%cy to i8**
%cE=load i8*,i8**%cD,align 8
store i8*%cE,i8**%c,align 8
%cF=call i8*@sml_alloc(i32 inreg 20)#0
%cG=getelementptr inbounds i8,i8*%cF,i64 -4
%cH=bitcast i8*%cG to i32*
store i32 1342177296,i32*%cH,align 4
%cI=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%cJ=bitcast i8*%cF to i8**
store i8*%cI,i8**%cJ,align 8
%cK=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%cL=getelementptr inbounds i8,i8*%cF,i64 8
%cM=bitcast i8*%cL to i8**
store i8*%cK,i8**%cM,align 8
%cN=getelementptr inbounds i8,i8*%cF,i64 16
%cO=bitcast i8*%cN to i32*
store i32 3,i32*%cO,align 4
call fastcc void@_SMLFN18SMLSharp__OSProcess12rebindAtExitE(i8*inreg%cF)
%cP=load i8*,i8**%e,align 8
ret i8*%cP
}
define fastcc i8*@_SMLFN5BinIO8StreamIO9getWriterE(i8*inreg%a)#2 gc"smlsharp"{
j:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%b,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%h,label%f
f:
call void@sml_check(i32 inreg%d)
%g=load i8*,i8**%b,align 8
br label%h
h:
%i=phi i8*[%g,%f],[%a,%j]
%k=getelementptr inbounds i8,i8*%i,i64 56
%l=bitcast i8*%k to i8**
%m=load i8*,i8**%l,align 8
store i8*%m,i8**%c,align 8
%n=call i8*@sml_alloc(i32 inreg 20)#0
%o=getelementptr inbounds i8,i8*%n,i64 -4
%p=bitcast i8*%o to i32*
store i32 1342177296,i32*%p,align 4
%q=load i8*,i8**%b,align 8
%r=bitcast i8*%n to i8**
store i8*%q,i8**%r,align 8
%s=getelementptr inbounds i8,i8*%n,i64 8
%t=bitcast i8*%s to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[10x i8]}>,<{[4x i8],i32,[10x i8]}>*@ap,i64 0,i32 2,i64 0),i8**%t,align 8
%u=getelementptr inbounds i8,i8*%n,i64 16
%v=bitcast i8*%u to i32*
store i32 3,i32*%v,align 4
call fastcc void@_SMLLN5BinIO8StreamIO11flushBufferE_334(i8*inreg%n)
%w=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%x=getelementptr inbounds i8,i8*%w,i64 8
%y=bitcast i8*%x to i32**
%z=load i32*,i32**%y,align 8
%A=load i32,i32*%z,align 4
%B=call i8*@sml_alloc(i32 inreg 20)#0
%C=getelementptr inbounds i8,i8*%B,i64 -4
%D=bitcast i8*%C to i32*
store i32 1342177296,i32*%D,align 4
%E=getelementptr inbounds i8,i8*%B,i64 12
%F=bitcast i8*%E to i32*
store i32 0,i32*%F,align 1
%G=load i8*,i8**%c,align 8
%H=bitcast i8*%B to i8**
store i8*%G,i8**%H,align 8
%I=getelementptr inbounds i8,i8*%B,i64 8
%J=bitcast i8*%I to i32*
store i32%A,i32*%J,align 4
%K=getelementptr inbounds i8,i8*%B,i64 16
%L=bitcast i8*%K to i32*
store i32 1,i32*%L,align 4
ret i8*%B
}
define fastcc i8*@_SMLFN5BinIO8StreamIO9getPosOutE(i8*inreg%a)#2 gc"smlsharp"personality i32(...)*@sml_personality{
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%b,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%i,label%h
h:
call void@sml_check(i32 inreg%f)
br label%i
i:
%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
%m=load i8*,i8**%b,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 i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[10x i8]}>,<{[4x i8],i32,[10x i8]}>*@aw,i64 0,i32 2,i64 0),i8**%p,align 8
%q=getelementptr inbounds i8,i8*%j,i64 16
%r=bitcast i8*%q to i32*
store i32 3,i32*%r,align 4
call fastcc void@_SMLLN5BinIO8StreamIO11flushBufferE_334(i8*inreg%j)
%s=load i8*,i8**%b,align 8
%t=getelementptr inbounds i8,i8*%s,i64 56
%u=bitcast i8*%t to i8**
%v=load i8*,i8**%u,align 8
%w=getelementptr inbounds i8,i8*%v,i64 40
%x=bitcast i8*%w to i8**
%y=load i8*,i8**%x,align 8
%z=icmp eq i8*%y,null
br i1%z,label%A,label%Y
A:
store i8*null,i8**%d,align 8
%B=load i8*,i8**@_SMLZN2IO24RandomAccessNotSupportedE,align 8
store i8*%B,i8**%c,align 8
%C=call i8*@sml_alloc(i32 inreg 20)#0
%D=getelementptr inbounds i8,i8*%C,i64 -4
%E=bitcast i8*%D to i32*
store i32 1342177296,i32*%E,align 4
store i8*%C,i8**%e,align 8
%F=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%G=bitcast i8*%C to i8**
store i8*%F,i8**%G,align 8
%H=getelementptr inbounds i8,i8*%C,i64 8
%I=bitcast i8*%H to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@ar,i64 0,i32 2,i64 0),i8**%I,align 8
%J=getelementptr inbounds i8,i8*%C,i64 16
%K=bitcast i8*%J to i32*
store i32 3,i32*%K,align 4
%L=call i8*@sml_alloc(i32 inreg 28)#0
%M=getelementptr inbounds i8,i8*%L,i64 -4
%N=bitcast i8*%M to i32*
store i32 1342177304,i32*%N,align 4
%O=load i8*,i8**%b,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 i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[10x i8]}>,<{[4x i8],i32,[10x i8]}>*@aw,i64 0,i32 2,i64 0),i8**%R,align 8
%S=load i8*,i8**%e,align 8
%T=getelementptr inbounds i8,i8*%L,i64 16
%U=bitcast i8*%T to i8**
store i8*%S,i8**%U,align 8
%V=getelementptr inbounds i8,i8*%L,i64 24
%W=bitcast i8*%V to i32*
store i32 7,i32*%W,align 4
%X=tail call fastcc i8*@_SMLLN5BinIO8StreamIO9outputExnE_327(i8*inreg%L)
unreachable
Y:
%Z=bitcast i8*%y to i8**
%aa=load i8*,i8**%Z,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
store i8*%af,i8**%c,align 8
%ag=call i8*@sml_alloc(i32 inreg 4)#0
%ah=bitcast i8*%ag to i32*
%ai=getelementptr inbounds i8,i8*%ag,i64 -4
%aj=bitcast i8*%ai to i32*
store i32 4,i32*%aj,align 4
store i32 0,i32*%ah,align 4
%ak=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%al=invoke fastcc i8*%ad(i8*inreg%ak,i8*inreg%ag)
to label%am unwind label%aA
am:
%an=bitcast i8*%al to i32*
%ao=load i32,i32*%an,align 4
%ap=call i8*@sml_alloc(i32 inreg 20)#0
%aq=bitcast i8*%ap to i32*
%ar=getelementptr inbounds i8,i8*%ap,i64 -4
%as=bitcast i8*%ar to i32*
store i32 1342177296,i32*%as,align 4
%at=getelementptr inbounds i8,i8*%ap,i64 4
%au=bitcast i8*%at to i32*
store i32 0,i32*%au,align 1
store i32%ao,i32*%aq,align 4
%av=load i8*,i8**%b,align 8
%aw=getelementptr inbounds i8,i8*%ap,i64 8
%ax=bitcast i8*%aw to i8**
store i8*%av,i8**%ax,align 8
%ay=getelementptr inbounds i8,i8*%ap,i64 16
%az=bitcast i8*%ay to i32*
store i32 2,i32*%az,align 4
ret i8*%ap
aA:
%aB=landingpad{i8*,i8*}
catch i8*null
%aC=extractvalue{i8*,i8*}%aB,1
%aD=bitcast i8*%aC to i8**
%aE=load i8*,i8**%aD,align 8
store i8*%aE,i8**%d,align 8
store i8*null,i8**%c,align 8
%aF=call i8*@sml_alloc(i32 inreg 28)#0
%aG=getelementptr inbounds i8,i8*%aF,i64 -4
%aH=bitcast i8*%aG to i32*
store i32 1342177304,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 i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[10x i8]}>,<{[4x i8],i32,[10x i8]}>*@aw,i64 0,i32 2,i64 0),i8**%aL,align 8
%aM=load i8*,i8**%d,align 8
%aN=getelementptr inbounds i8,i8*%aF,i64 16
%aO=bitcast i8*%aN to i8**
store i8*%aM,i8**%aO,align 8
%aP=getelementptr inbounds i8,i8*%aF,i64 24
%aQ=bitcast i8*%aP to i32*
store i32 7,i32*%aQ,align 4
%aR=tail call fastcc i8*@_SMLLN5BinIO8StreamIO9outputExnE_327(i8*inreg%aF)
unreachable
}
define fastcc i32@_SMLFN5BinIO8StreamIO10filePosOutE(i8*inreg%a)#2 gc"smlsharp"{
j:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%b,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%h,label%f
f:
call void@sml_check(i32 inreg%d)
%g=load i8*,i8**%b,align 8
br label%h
h:
%i=phi i8*[%g,%f],[%a,%j]
%k=getelementptr inbounds i8,i8*%i,i64 8
%l=bitcast i8*%k to i8**
%m=load i8*,i8**%l,align 8
store i8*%m,i8**%c,align 8
%n=call i8*@sml_alloc(i32 inreg 20)#0
%o=getelementptr inbounds i8,i8*%n,i64 -4
%p=bitcast i8*%o to i32*
store i32 1342177296,i32*%p,align 4
%q=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%r=bitcast i8*%n to i8**
store i8*%q,i8**%r,align 8
%s=getelementptr inbounds i8,i8*%n,i64 8
%t=bitcast i8*%s to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[11x i8]}>,<{[4x i8],i32,[11x i8]}>*@at,i64 0,i32 2,i64 0),i8**%t,align 8
%u=getelementptr inbounds i8,i8*%n,i64 16
%v=bitcast i8*%u to i32*
store i32 3,i32*%v,align 4
call fastcc void@_SMLLN5BinIO8StreamIO11isClosedOutE_332(i8*inreg%n)
%w=bitcast i8**%b to i32**
%x=load i32*,i32**%w,align 8
%y=load i32,i32*%x,align 4
ret i32%y
}
define fastcc i8*@_SMLFN5BinIO8StreamIO9setPosOutE(i8*inreg%a)#2 gc"smlsharp"personality i32(...)*@sml_personality{
l:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%b,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%j,label%h
h:
call void@sml_check(i32 inreg%f)
%i=load i8*,i8**%b,align 8
br label%j
j:
%k=phi i8*[%i,%h],[%a,%l]
%m=getelementptr inbounds i8,i8*%k,i64 8
%n=bitcast i8*%m to i8**
%o=load i8*,i8**%n,align 8
store i8*%o,i8**%c,align 8
%p=call i8*@sml_alloc(i32 inreg 20)#0
%q=getelementptr inbounds i8,i8*%p,i64 -4
%r=bitcast i8*%q to i32*
store i32 1342177296,i32*%r,align 4
%s=load i8*,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 i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[10x i8]}>,<{[4x i8],i32,[10x i8]}>*@av,i64 0,i32 2,i64 0),i8**%v,align 8
%w=getelementptr inbounds i8,i8*%p,i64 16
%x=bitcast i8*%w to i32*
store i32 3,i32*%x,align 4
call fastcc void@_SMLLN5BinIO8StreamIO11isClosedOutE_332(i8*inreg%p)
%y=load i8*,i8**%c,align 8
%z=getelementptr inbounds i8,i8*%y,i64 56
%A=bitcast i8*%z to i8**
%B=load i8*,i8**%A,align 8
%C=getelementptr inbounds i8,i8*%B,i64 64
%D=bitcast i8*%C to i8**
%E=load i8*,i8**%D,align 8
%F=icmp eq i8*%E,null
br i1%F,label%G,label%ae
G:
store i8*null,i8**%d,align 8
%H=load i8*,i8**@_SMLZN2IO24RandomAccessNotSupportedE,align 8
store i8*%H,i8**%b,align 8
%I=call i8*@sml_alloc(i32 inreg 20)#0
%J=getelementptr inbounds i8,i8*%I,i64 -4
%K=bitcast i8*%J to i32*
store i32 1342177296,i32*%K,align 4
store i8*%I,i8**%e,align 8
%L=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%M=bitcast i8*%I to i8**
store i8*%L,i8**%M,align 8
%N=getelementptr inbounds i8,i8*%I,i64 8
%O=bitcast i8*%N to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@ax,i64 0,i32 2,i64 0),i8**%O,align 8
%P=getelementptr inbounds i8,i8*%I,i64 16
%Q=bitcast i8*%P to i32*
store i32 3,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**%c,align 8
%V=bitcast i8*%R to i8**
store i8*%U,i8**%V,align 8
%W=getelementptr inbounds i8,i8*%R,i64 8
%X=bitcast i8*%W to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[10x i8]}>,<{[4x i8],i32,[10x i8]}>*@aw,i64 0,i32 2,i64 0),i8**%X,align 8
%Y=load i8*,i8**%e,align 8
%Z=getelementptr inbounds i8,i8*%R,i64 16
%aa=bitcast i8*%Z to i8**
store i8*%Y,i8**%aa,align 8
%ab=getelementptr inbounds i8,i8*%R,i64 24
%ac=bitcast i8*%ab to i32*
store i32 7,i32*%ac,align 4
%ad=tail call fastcc i8*@_SMLLN5BinIO8StreamIO9outputExnE_327(i8*inreg%R)
unreachable
ae:
%af=bitcast i8*%E to i8**
%ag=load i8*,i8**%af,align 8
%ah=getelementptr inbounds i8,i8*%ag,i64 16
%ai=bitcast i8*%ah to i8*(i8*,i8*)**
%aj=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%ai,align 8
%ak=bitcast i8*%ag to i8**
%al=load i8*,i8**%ak,align 8
store i8*%al,i8**%d,align 8
%am=bitcast i8**%b to i32**
%an=load i32*,i32**%am,align 8
store i8*null,i8**%b,align 8
%ao=load i32,i32*%an,align 4
%ap=call i8*@sml_alloc(i32 inreg 4)#0
%aq=bitcast i8*%ap to i32*
%ar=getelementptr inbounds i8,i8*%ap,i64 -4
%as=bitcast i8*%ar to i32*
store i32 4,i32*%as,align 4
store i32%ao,i32*%aq,align 4
%at=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%au=invoke fastcc i8*%aj(i8*inreg%at,i8*inreg%ap)
to label%av unwind label%ax
av:
%aw=load i8*,i8**%c,align 8
ret i8*%aw
ax:
%ay=landingpad{i8*,i8*}
catch i8*null
%az=extractvalue{i8*,i8*}%ay,1
%aA=bitcast i8*%az to i8**
%aB=load i8*,i8**%aA,align 8
store i8*%aB,i8**%d,align 8
store i8*null,i8**%b,align 8
%aC=call i8*@sml_alloc(i32 inreg 28)#0
%aD=getelementptr inbounds i8,i8*%aC,i64 -4
%aE=bitcast i8*%aD to i32*
store i32 1342177304,i32*%aE,align 4
%aF=load i8*,i8**%c,align 8
%aG=bitcast i8*%aC to i8**
store i8*%aF,i8**%aG,align 8
%aH=getelementptr inbounds i8,i8*%aC,i64 8
%aI=bitcast i8*%aH to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[10x i8]}>,<{[4x i8],i32,[10x i8]}>*@av,i64 0,i32 2,i64 0),i8**%aI,align 8
%aJ=load i8*,i8**%d,align 8
%aK=getelementptr inbounds i8,i8*%aC,i64 16
%aL=bitcast i8*%aK to i8**
store i8*%aJ,i8**%aL,align 8
%aM=getelementptr inbounds i8,i8*%aC,i64 24
%aN=bitcast i8*%aM to i32*
store i32 7,i32*%aN,align 4
%aO=tail call fastcc i8*@_SMLLN5BinIO8StreamIO9outputExnE_327(i8*inreg%aC)
unreachable
}
define fastcc void@_SMLFN5BinIO8StreamIO13setBufferModeE(i8*inreg%a)#2 gc"smlsharp"{
j:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%b,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%h,label%f
f:
call void@sml_check(i32 inreg%d)
%g=load i8*,i8**%b,align 8
br label%h
h:
%i=phi i8*[%g,%f],[%a,%j]
%k=bitcast i8*%i to i8**
%l=load i8*,i8**%k,align 8
store i8*%l,i8**%b,align 8
%m=getelementptr inbounds i8,i8*%l,i64 8
%n=bitcast i8*%m to i8**
%o=load i8*,i8**%n,align 8
store i8*%o,i8**%c,align 8
%p=getelementptr inbounds i8,i8*%i,i64 8
%q=bitcast i8*%p to i32*
%r=load i32,i32*%q,align 4
%s=icmp eq i32%r,2
%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
store i8*null,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 i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[14x i8]}>,<{[4x i8],i32,[14x i8]}>*@az,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
br i1%s,label%F,label%C
C:
call fastcc void@_SMLLN5BinIO8StreamIO11isClosedOutE_332(i8*inreg%t)
%D=bitcast i8**%c to i32**
%E=load i32*,i32**%D,align 8
store i32%r,i32*%E,align 4
ret void
F:
call fastcc void@_SMLLN5BinIO8StreamIO11flushBufferE_334(i8*inreg%t)
%G=bitcast i8**%c to i32**
%H=load i32*,i32**%G,align 8
store i32 2,i32*%H,align 4
ret void
}
define fastcc i32@_SMLFN5BinIO8StreamIO13getBufferModeE(i8*inreg%a)#2 gc"smlsharp"{
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%f,label%e
e:
call void@sml_check(i32 inreg%c)
br label%f
f:
%g=call i8*@sml_alloc(i32 inreg 20)#0
%h=getelementptr inbounds i8,i8*%g,i64 -4
%i=bitcast i8*%h to i32*
store i32 1342177296,i32*%i,align 4
%j=load i8*,i8**%b,align 8
%k=bitcast i8*%g to i8**
store i8*%j,i8**%k,align 8
%l=getelementptr inbounds i8,i8*%g,i64 8
%m=bitcast i8*%l to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[14x i8]}>,<{[4x i8],i32,[14x i8]}>*@aB,i64 0,i32 2,i64 0),i8**%m,align 8
%n=getelementptr inbounds i8,i8*%g,i64 16
%o=bitcast i8*%n to i32*
store i32 3,i32*%o,align 4
call fastcc void@_SMLLN5BinIO8StreamIO11isClosedOutE_332(i8*inreg%g)
%p=load i8*,i8**%b,align 8
%q=getelementptr inbounds i8,i8*%p,i64 8
%r=bitcast i8*%q to i32**
%s=load i32*,i32**%r,align 8
%t=load i32,i32*%s,align 4
ret i32%t
}
define fastcc i8*@_SMLFN5BinIO6input1E(i8*inreg%a)#2 gc"smlsharp"{
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%e,label%g
e:
%f=bitcast i8*%a to i8**
br label%j
g:
call void@sml_check(i32 inreg%c)
%h=bitcast i8**%b to i8***
%i=load i8**,i8***%h,align 8
br label%j
j:
%k=phi i8**[%i,%g],[%f,%e]
%l=load i8*,i8**%k,align 8
%m=call fastcc i8*@_SMLLN5BinIO8StreamIO6input1E_263(i8*inreg%l)
%n=icmp eq i8*%m,null
br i1%n,label%o,label%p
o:
ret i8*null
p:
%q=bitcast i8*%m to i8**
%r=load i8*,i8**%q,align 8
%s=getelementptr inbounds i8,i8*%r,i64 8
%t=bitcast i8*%s to i8**
%u=load i8*,i8**%t,align 8
%v=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%w=bitcast i8*%v to i8**
call void@sml_write(i8*inreg%v,i8**inreg%w,i8*inreg%u)#0
%x=load i8,i8*%r,align 1
%y=call i8*@sml_alloc(i32 inreg 12)#0
%z=getelementptr inbounds i8,i8*%y,i64 -4
%A=bitcast i8*%z to i32*
store i32 1342177288,i32*%A,align 4
%B=getelementptr inbounds i8,i8*%y,i64 1
call void@llvm.memset.p0i8.i32(i8*%B,i8 0,i32 7,i1 false)
store i8%x,i8*%y,align 1
%C=getelementptr inbounds i8,i8*%y,i64 8
%D=bitcast i8*%C to i32*
store i32 0,i32*%D,align 4
ret i8*%y
}
define internal fastcc i8*@_SMLLN5BinIO6inputNE_405(i8*inreg%a,i8*inreg%b)#2 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**%c,align 8
store i8*%b,i8**%d,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%h,label%j
h:
%i=bitcast i8*%a to i8**
br label%n
j:
call void@sml_check(i32 inreg%f)
%k=load i8*,i8**%d,align 8
%l=bitcast i8**%c to i8***
%m=load i8**,i8***%l,align 8
br label%n
n:
%o=phi i8**[%m,%j],[%i,%h]
%p=phi i8*[%k,%j],[%b,%h]
%q=bitcast i8*%p to i8**
%r=load i8*,i8**%q,align 8
store i8*%r,i8**%d,align 8
%s=getelementptr inbounds i8,i8*%p,i64 8
%t=bitcast i8*%s to i32*
%u=load i32,i32*%t,align 4
%v=load i8*,i8**%o,align 8
store i8*%v,i8**%e,align 8
%w=bitcast i8*%r to i8**
%x=load i8*,i8**%w,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
%B=getelementptr inbounds i8,i8*%y,i64 12
%C=bitcast i8*%B to i32*
store i32 0,i32*%C,align 1
%D=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%E=bitcast i8*%y to i8**
store i8*%D,i8**%E,align 8
%F=getelementptr inbounds i8,i8*%y,i64 8
%G=bitcast i8*%F to i32*
store i32%u,i32*%G,align 4
%H=getelementptr inbounds i8,i8*%y,i64 16
%I=bitcast i8*%H to i32*
store i32 1,i32*%I,align 4
%J=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%K=call fastcc i8*@_SMLLN5BinIO8StreamIO6inputNE_280(i8*inreg%J,i8*inreg%y)
%L=getelementptr inbounds i8,i8*%K,i64 8
%M=bitcast i8*%L to i8**
%N=load i8*,i8**%M,align 8
%O=load i8*,i8**%d,align 8
%P=bitcast i8*%O to i8**
call void@sml_write(i8*inreg%O,i8**inreg%P,i8*inreg%N)#0
%Q=bitcast i8*%K to i8**
%R=load i8*,i8**%Q,align 8
ret i8*%R
}
define fastcc i8*@_SMLFN5BinIO9lookaheadE(i8*inreg%a)#2 gc"smlsharp"{
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%e,label%g
e:
%f=bitcast i8*%a to i8**
br label%j
g:
call void@sml_check(i32 inreg%c)
%h=bitcast i8**%b to i8***
%i=load i8**,i8***%h,align 8
br label%j
j:
%k=phi i8**[%i,%g],[%f,%e]
store i8*null,i8**%b,align 8
%l=load i8*,i8**%k,align 8
%m=call fastcc i8*@_SMLLN5BinIO8StreamIO6input1E_263(i8*inreg%l)
%n=icmp eq i8*%m,null
br i1%n,label%o,label%p
o:
ret i8*null
p:
%q=bitcast i8*%m to i8**
%r=load i8*,i8**%q,align 8
%s=load i8,i8*%r,align 1
%t=call i8*@sml_alloc(i32 inreg 12)#0
%u=getelementptr inbounds i8,i8*%t,i64 -4
%v=bitcast i8*%u to i32*
store i32 1342177288,i32*%v,align 4
%w=getelementptr inbounds i8,i8*%t,i64 1
call void@llvm.memset.p0i8.i32(i8*%w,i8 0,i32 7,i1 false)
store i8%s,i8*%t,align 1
%x=getelementptr inbounds i8,i8*%t,i64 8
%y=bitcast i8*%x to i32*
store i32 0,i32*%y,align 4
ret i8*%t
}
define fastcc void@_SMLFN5BinIO7closeInE(i8*inreg%a)#2 gc"smlsharp"{
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%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**%c,align 8
%h=load atomic i32,i32*@sml_check_flag unordered,align 4
%i=icmp eq i32%h,0
br i1%i,label%j,label%l
j:
%k=bitcast i8*%a to i8**
br label%o
l:
call void@sml_check(i32 inreg%h)
%m=bitcast i8**%c to i8***
%n=load i8**,i8***%m,align 8
br label%o
o:
%p=phi i8**[%n,%l],[%k,%j]
%q=load i8*,i8**%p,align 8
store i8*%q,i8**%e,align 8
%r=bitcast i8*%q to i8**
%s=load i8*,i8**%r,align 8
store i8*%s,i8**%f,align 8
%t=getelementptr inbounds i8,i8*%s,i64 8
%u=bitcast i8*%t to i8**
%v=load i8*,i8**%u,align 8
store i8*%v,i8**%g,align 8
%w=call i8*@sml_alloc(i32 inreg 28)#0
%x=getelementptr inbounds i8,i8*%w,i64 -4
%y=bitcast i8*%x to i32*
store i32 1342177304,i32*%y,align 4
store i8*%w,i8**%d,align 8
%z=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%A=bitcast i8*%w to i8**
store i8*%z,i8**%A,align 8
%B=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%C=getelementptr inbounds i8,i8*%w,i64 8
%D=bitcast i8*%C to i8**
store i8*%B,i8**%D,align 8
%E=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%F=getelementptr inbounds i8,i8*%w,i64 16
%G=bitcast i8*%F to i8**
store i8*%E,i8**%G,align 8
%H=getelementptr inbounds i8,i8*%w,i64 24
%I=bitcast i8*%H to i32*
store i32 7,i32*%I,align 4
call fastcc void@_SMLFN5BinIO8StreamIO7closeInE(i8*inreg%z)
%J=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%K=getelementptr inbounds i8,i8*%J,i64 8
%L=bitcast i8*%K to i8**
%M=load i8*,i8**%L,align 8
%N=bitcast i8**%b to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%N)
call void@llvm.gcroot(i8**%b,i8*null)#0
br label%O
O:
%P=phi i8*[%ag,%ad],[%M,%o]
store i8*%P,i8**%b,align 8
%Q=load atomic i32,i32*@sml_check_flag unordered,align 4
%R=icmp eq i32%Q,0
br i1%R,label%U,label%S
S:
call void@sml_check(i32 inreg%Q)
%T=load i8*,i8**%b,align 8
br label%U
U:
%V=phi i8*[%T,%S],[%P,%O]
%W=getelementptr inbounds i8,i8*%V,i64 24
%X=bitcast i8*%W to i8***
%Y=load i8**,i8***%X,align 8
%Z=load i8*,i8**%Y,align 8
%aa=bitcast i8*%Z to i32*
%ab=load i32,i32*%aa,align 4
%ac=icmp ult i32%ab,2
br i1%ac,label%ad,label%ah
ad:
store i8*null,i8**%b,align 8
%ae=getelementptr inbounds i8,i8*%Z,i64 8
%af=bitcast i8*%ae to i8**
%ag=load i8*,i8**%af,align 8
br label%O
ah:
%ai=getelementptr inbounds i8,i8*%V,i64 8
%aj=bitcast i8*%ai to i8**
%ak=load i8*,i8**%aj,align 8
%al=call fastcc i32@_SMLFN11Word8Vector6lengthE(i8*inreg%ak)
%am=call i8*@sml_alloc(i32 inreg 20)#0
%an=getelementptr inbounds i8,i8*%am,i64 -4
%ao=bitcast i8*%an to i32*
store i32 1342177296,i32*%ao,align 4
%ap=getelementptr inbounds i8,i8*%am,i64 12
%aq=bitcast i8*%ap to i32*
store i32 0,i32*%aq,align 1
%ar=load i8*,i8**%b,align 8
%as=bitcast i8*%am to i8**
store i8*%ar,i8**%as,align 8
%at=getelementptr inbounds i8,i8*%am,i64 8
%au=bitcast i8*%at to i32*
store i32%al,i32*%au,align 4
%av=getelementptr inbounds i8,i8*%am,i64 16
%aw=bitcast i8*%av to i32*
store i32 1,i32*%aw,align 4
call void@llvm.lifetime.end.p0i8(i64 8,i8*%N)
%ax=load i8*,i8**%c,align 8
%ay=bitcast i8*%ax to i8**
call void@sml_write(i8*inreg%ax,i8**inreg%ay,i8*inreg%am)#0
ret void
}
define fastcc void@_SMLFN5BinIO9setPosOutE(i8*inreg%a)#2 gc"smlsharp"{
i:
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%g,label%e
e:
call void@sml_check(i32 inreg%c)
%f=load i8*,i8**%b,align 8
br label%g
g:
%h=phi i8*[%f,%e],[%a,%i]
store i8*null,i8**%b,align 8
%j=bitcast i8*%h to i8**
%k=load i8*,i8**%j,align 8
%l=getelementptr inbounds i8,i8*%h,i64 8
%m=bitcast i8*%l to i8**
%n=load i8*,i8**%m,align 8
%o=getelementptr inbounds i8,i8*%n,i64 8
%p=bitcast i8*%o to i8**
%q=load i8*,i8**%p,align 8
%r=bitcast i8*%k to i8**
call void@sml_write(i8*inreg%k,i8**inreg%r,i8*inreg%q)#0
%s=load i8*,i8**%m,align 8
%t=call fastcc i8*@_SMLFN5BinIO8StreamIO9setPosOutE(i8*inreg%s)
ret void
}
define internal fastcc i8*@_SMLLN5BinIO6openInE_416(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"personality i32(...)*@sml_personality{
m:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
store i8*%a,i8**%e,align 8
store i8*%b,i8**%c,align 8
%g=load atomic i32,i32*@sml_check_flag unordered,align 4
%h=icmp eq i32%g,0
br i1%h,label%k,label%i
i:
call void@sml_check(i32 inreg%g)
%j=load i8*,i8**%c,align 8
br label%k
k:
%l=phi i8*[%j,%i],[%b,%m]
%n=invoke fastcc i8*@_SMLFN29SMLSharp__SMLNJ__PosixBinPrimIO6openRdE(i8*inreg%l)
to label%o unwind label%K
o:
store i8*%n,i8**%d,align 8
%p=bitcast i8**%e to i8***
%q=load i8**,i8***%p,align 8
%r=load i8*,i8**%q,align 8
store i8*%r,i8**%e,align 8
%s=call i8*@sml_alloc(i32 inreg 20)#0
%t=getelementptr inbounds i8,i8*%s,i64 -4
%u=bitcast i8*%t to i32*
store i32 1342177296,i32*%u,align 4
%v=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%w=bitcast i8*%s to i8**
store i8*%v,i8**%w,align 8
%x=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%y=getelementptr inbounds i8,i8*%s,i64 8
%z=bitcast i8*%y to i8**
store i8*%x,i8**%z,align 8
%A=getelementptr inbounds i8,i8*%s,i64 16
%B=bitcast i8*%A to i32*
store i32 3,i32*%B,align 4
%C=invoke fastcc i8*@_SMLFN5BinIO8StreamIO10mkInstreamE(i8*inreg%s)
to label%D unwind label%K
D:
store i8*%C,i8**%d,align 8
store i8*null,i8**%c,align 8
%E=call i8*@sml_alloc(i32 inreg 8)#0
%F=getelementptr inbounds i8,i8*%E,i64 -4
%G=bitcast i8*%F to i32*
store i32 805306376,i32*%G,align 4
%H=bitcast i8*%E to i64*
store i64 0,i64*%H,align 1
%I=load i8*,i8**%d,align 8
%J=bitcast i8*%E to i8**
call void@sml_write(i8*inreg%E,i8**inreg%J,i8*inreg%I)#0
ret i8*%E
K:
%L=landingpad{i8*,i8*}
catch i8*null
%M=extractvalue{i8*,i8*}%L,1
%N=bitcast i8*%M to i8**
%O=load i8*,i8**%N,align 8
store i8*null,i8**%e,align 8
store i8*%O,i8**%f,align 8
%P=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%P,i8**%d,align 8
%Q=call i8*@sml_alloc(i32 inreg 28)#0
%R=getelementptr inbounds i8,i8*%Q,i64 -4
%S=bitcast i8*%R to i32*
store i32 1342177304,i32*%S,align 4
store i8*%Q,i8**%e,align 8
%T=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%U=bitcast i8*%Q to i8**
store i8*%T,i8**%U,align 8
%V=getelementptr inbounds i8,i8*%Q,i64 8
%W=bitcast i8*%V to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[7x i8]}>,<{[4x i8],i32,[7x i8]}>*@aI,i64 0,i32 2,i64 0),i8**%W,align 8
%X=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%Y=getelementptr inbounds i8,i8*%Q,i64 16
%Z=bitcast i8*%Y to i8**
store i8*%X,i8**%Z,align 8
%aa=getelementptr inbounds i8,i8*%Q,i64 24
%ab=bitcast i8*%aa to i32*
store i32 7,i32*%ab,align 4
%ac=call i8*@sml_alloc(i32 inreg 28)#0
%ad=getelementptr inbounds i8,i8*%ac,i64 -4
%ae=bitcast i8*%ad to i32*
store i32 1342177304,i32*%ae,align 4
store i8*%ac,i8**%c,align 8
%af=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%ag=bitcast i8*%ac to i8**
store i8*%af,i8**%ag,align 8
%ah=getelementptr inbounds i8,i8*%ac,i64 8
%ai=bitcast i8*%ah to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@aH,i64 0,i32 2,i64 0),i8**%ai,align 8
%aj=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%ak=getelementptr inbounds i8,i8*%ac,i64 16
%al=bitcast i8*%ak to i8**
store i8*%aj,i8**%al,align 8
%am=getelementptr inbounds i8,i8*%ac,i64 24
%an=bitcast i8*%am to i32*
store i32 7,i32*%an,align 4
%ao=call i8*@sml_alloc(i32 inreg 60)#0
%ap=getelementptr inbounds i8,i8*%ao,i64 -4
%aq=bitcast i8*%ap to i32*
store i32 1342177336,i32*%aq,align 4
%ar=getelementptr inbounds i8,i8*%ao,i64 56
%as=bitcast i8*%ar to i32*
store i32 1,i32*%as,align 4
%at=load i8*,i8**%c,align 8
%au=bitcast i8*%ao to i8**
store i8*%at,i8**%au,align 8
call void@sml_raise(i8*inreg%ao)#1
unreachable
}
define fastcc i8*@_SMLFN5BinIO7openOutE(i8*inreg%a)#2 gc"smlsharp"personality i32(...)*@sml_personality{
l:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%b,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%j,label%h
h:
call void@sml_check(i32 inreg%f)
%i=load i8*,i8**%b,align 8
br label%j
j:
%k=phi i8*[%i,%h],[%a,%l]
%m=invoke fastcc i8*@_SMLFN29SMLSharp__SMLNJ__PosixBinPrimIO6openWrE(i8*inreg%k)
to label%n unwind label%H
n:
store i8*%m,i8**%c,align 8
%o=call i8*@sml_alloc(i32 inreg 20)#0
%p=getelementptr inbounds i8,i8*%o,i64 -4
%q=bitcast i8*%p to i32*
store i32 1342177296,i32*%q,align 4
%r=getelementptr inbounds i8,i8*%o,i64 12
%s=bitcast i8*%r to i32*
store i32 0,i32*%s,align 1
%t=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%u=bitcast i8*%o to i8**
store i8*%t,i8**%u,align 8
%v=getelementptr inbounds i8,i8*%o,i64 8
%w=bitcast i8*%v to i32*
store i32 0,i32*%w,align 4
%x=getelementptr inbounds i8,i8*%o,i64 16
%y=bitcast i8*%x to i32*
store i32 1,i32*%y,align 4
%z=invoke fastcc i8*@_SMLFN5BinIO8StreamIO11mkOutstreamE(i8*inreg%o)
to label%A unwind label%H
A:
store i8*%z,i8**%c,align 8
store i8*null,i8**%b,align 8
%B=call i8*@sml_alloc(i32 inreg 8)#0
%C=getelementptr inbounds i8,i8*%B,i64 -4
%D=bitcast i8*%C to i32*
store i32 805306376,i32*%D,align 4
%E=bitcast i8*%B to i64*
store i64 0,i64*%E,align 1
%F=load i8*,i8**%c,align 8
%G=bitcast i8*%B to i8**
call void@sml_write(i8*inreg%B,i8**inreg%G,i8*inreg%F)#0
ret i8*%B
H:
%I=landingpad{i8*,i8*}
catch i8*null
%J=extractvalue{i8*,i8*}%I,1
%K=bitcast i8*%J to i8**
%L=load i8*,i8**%K,align 8
store i8*%L,i8**%e,align 8
%M=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%M,i8**%c,align 8
%N=call i8*@sml_alloc(i32 inreg 28)#0
%O=getelementptr inbounds i8,i8*%N,i64 -4
%P=bitcast i8*%O to i32*
store i32 1342177304,i32*%P,align 4
store i8*%N,i8**%d,align 8
%Q=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%R=bitcast i8*%N to i8**
store i8*%Q,i8**%R,align 8
%S=getelementptr inbounds i8,i8*%N,i64 8
%T=bitcast i8*%S to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[8x i8]}>,<{[4x i8],i32,[8x i8]}>*@aK,i64 0,i32 2,i64 0),i8**%T,align 8
%U=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%V=getelementptr inbounds i8,i8*%N,i64 16
%W=bitcast i8*%V to i8**
store i8*%U,i8**%W,align 8
%X=getelementptr inbounds i8,i8*%N,i64 24
%Y=bitcast i8*%X to i32*
store i32 7,i32*%Y,align 4
%Z=call i8*@sml_alloc(i32 inreg 28)#0
%aa=getelementptr inbounds i8,i8*%Z,i64 -4
%ab=bitcast i8*%aa to i32*
store i32 1342177304,i32*%ab,align 4
store i8*%Z,i8**%b,align 8
%ac=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ad=bitcast i8*%Z to i8**
store i8*%ac,i8**%ad,align 8
%ae=getelementptr inbounds i8,i8*%Z,i64 8
%af=bitcast i8*%ae to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@aJ,i64 0,i32 2,i64 0),i8**%af,align 8
%ag=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%ah=getelementptr inbounds i8,i8*%Z,i64 16
%ai=bitcast i8*%ah to i8**
store i8*%ag,i8**%ai,align 8
%aj=getelementptr inbounds i8,i8*%Z,i64 24
%ak=bitcast i8*%aj to i32*
store i32 7,i32*%ak,align 4
%al=call i8*@sml_alloc(i32 inreg 60)#0
%am=getelementptr inbounds i8,i8*%al,i64 -4
%an=bitcast i8*%am to i32*
store i32 1342177336,i32*%an,align 4
%ao=getelementptr inbounds i8,i8*%al,i64 56
%ap=bitcast i8*%ao to i32*
store i32 1,i32*%ap,align 4
%aq=load i8*,i8**%b,align 8
%ar=bitcast i8*%al to i8**
store i8*%aq,i8**%ar,align 8
call void@sml_raise(i8*inreg%al)#1
unreachable
}
define fastcc i8*@_SMLFN5BinIO10openAppendE(i8*inreg%a)#2 gc"smlsharp"personality i32(...)*@sml_personality{
l:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%b,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%j,label%h
h:
call void@sml_check(i32 inreg%f)
%i=load i8*,i8**%b,align 8
br label%j
j:
%k=phi i8*[%i,%h],[%a,%l]
%m=invoke fastcc i8*@_SMLFN29SMLSharp__SMLNJ__PosixBinPrimIO7openAppE(i8*inreg%k)
to label%n unwind label%H
n:
store i8*%m,i8**%c,align 8
%o=call i8*@sml_alloc(i32 inreg 20)#0
%p=getelementptr inbounds i8,i8*%o,i64 -4
%q=bitcast i8*%p to i32*
store i32 1342177296,i32*%q,align 4
%r=getelementptr inbounds i8,i8*%o,i64 12
%s=bitcast i8*%r to i32*
store i32 0,i32*%s,align 1
%t=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%u=bitcast i8*%o to i8**
store i8*%t,i8**%u,align 8
%v=getelementptr inbounds i8,i8*%o,i64 8
%w=bitcast i8*%v to i32*
store i32 2,i32*%w,align 4
%x=getelementptr inbounds i8,i8*%o,i64 16
%y=bitcast i8*%x to i32*
store i32 1,i32*%y,align 4
%z=invoke fastcc i8*@_SMLFN5BinIO8StreamIO11mkOutstreamE(i8*inreg%o)
to label%A unwind label%H
A:
store i8*%z,i8**%c,align 8
store i8*null,i8**%b,align 8
%B=call i8*@sml_alloc(i32 inreg 8)#0
%C=getelementptr inbounds i8,i8*%B,i64 -4
%D=bitcast i8*%C to i32*
store i32 805306376,i32*%D,align 4
%E=bitcast i8*%B to i64*
store i64 0,i64*%E,align 1
%F=load i8*,i8**%c,align 8
%G=bitcast i8*%B to i8**
call void@sml_write(i8*inreg%B,i8**inreg%G,i8*inreg%F)#0
ret i8*%B
H:
%I=landingpad{i8*,i8*}
catch i8*null
%J=extractvalue{i8*,i8*}%I,1
%K=bitcast i8*%J to i8**
%L=load i8*,i8**%K,align 8
store i8*%L,i8**%e,align 8
%M=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%M,i8**%c,align 8
%N=call i8*@sml_alloc(i32 inreg 28)#0
%O=getelementptr inbounds i8,i8*%N,i64 -4
%P=bitcast i8*%O to i32*
store i32 1342177304,i32*%P,align 4
store i8*%N,i8**%d,align 8
%Q=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%R=bitcast i8*%N to i8**
store i8*%Q,i8**%R,align 8
%S=getelementptr inbounds i8,i8*%N,i64 8
%T=bitcast i8*%S to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[11x i8]}>,<{[4x i8],i32,[11x i8]}>*@aN,i64 0,i32 2,i64 0),i8**%T,align 8
%U=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%V=getelementptr inbounds i8,i8*%N,i64 16
%W=bitcast i8*%V to i8**
store i8*%U,i8**%W,align 8
%X=getelementptr inbounds i8,i8*%N,i64 24
%Y=bitcast i8*%X to i32*
store i32 7,i32*%Y,align 4
%Z=call i8*@sml_alloc(i32 inreg 28)#0
%aa=getelementptr inbounds i8,i8*%Z,i64 -4
%ab=bitcast i8*%aa to i32*
store i32 1342177304,i32*%ab,align 4
store i8*%Z,i8**%b,align 8
%ac=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ad=bitcast i8*%Z to i8**
store i8*%ac,i8**%ad,align 8
%ae=getelementptr inbounds i8,i8*%Z,i64 8
%af=bitcast i8*%ae to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@aM,i64 0,i32 2,i64 0),i8**%af,align 8
%ag=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%ah=getelementptr inbounds i8,i8*%Z,i64 16
%ai=bitcast i8*%ah to i8**
store i8*%ag,i8**%ai,align 8
%aj=getelementptr inbounds i8,i8*%Z,i64 24
%ak=bitcast i8*%aj to i32*
store i32 7,i32*%ak,align 4
%al=call i8*@sml_alloc(i32 inreg 60)#0
%am=getelementptr inbounds i8,i8*%al,i64 -4
%an=bitcast i8*%am to i32*
store i32 1342177336,i32*%an,align 4
%ao=getelementptr inbounds i8,i8*%al,i64 56
%ap=bitcast i8*%ao to i32*
store i32 1,i32*%ap,align 4
%aq=load i8*,i8**%b,align 8
%ar=bitcast i8*%al to i8**
store i8*%aq,i8**%ar,align 8
call void@sml_raise(i8*inreg%al)#1
unreachable
}
define fastcc i8*@_SMLFN5BinIO8StreamIO5inputE(i8*inreg%a)local_unnamed_addr#2 gc"smlsharp"{
i:
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%g,label%e
e:
call void@sml_check(i32 inreg%c)
%f=load i8*,i8**%b,align 8
br label%g
g:
%h=phi i8*[%f,%e],[%a,%i]
%j=load i8**,i8***bitcast(i8**getelementptr inbounds(<{[4x i8],i32,[8x i8*]}>,<{[4x i8],i32,[8x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i64 0,i32 2,i64 0)to i8***),align 8
%k=load i8*,i8**%j,align 8
%l=tail call fastcc i8*@_SMLLN5BinIO8StreamIO5inputE_262(i8*inreg%k,i8*inreg%h)
ret i8*%l
}
define fastcc i8*@_SMLFN5BinIO8StreamIO6input1E(i8*inreg%a)#2 gc"smlsharp"{
i:
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%g,label%e
e:
call void@sml_check(i32 inreg%c)
%f=load i8*,i8**%b,align 8
br label%g
g:
%h=phi i8*[%f,%e],[%a,%i]
%j=tail call fastcc i8*@_SMLLN5BinIO8StreamIO6input1E_263(i8*inreg%h)
ret i8*%j
}
define fastcc i8*@_SMLFN5BinIO8StreamIO6inputNE(i8*inreg%a)local_unnamed_addr#2 gc"smlsharp"{
i:
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%g,label%e
e:
call void@sml_check(i32 inreg%c)
%f=load i8*,i8**%b,align 8
br label%g
g:
%h=phi i8*[%f,%e],[%a,%i]
%j=load i8**,i8***bitcast(i8**getelementptr inbounds(<{[4x i8],i32,[8x i8*]}>,<{[4x i8],i32,[8x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i64 0,i32 2,i64 1)to i8***),align 8
%k=load i8*,i8**%j,align 8
%l=tail call fastcc i8*@_SMLLN5BinIO8StreamIO6inputNE_280(i8*inreg%k,i8*inreg%h)
ret i8*%l
}
define fastcc i8*@_SMLFN5BinIO8StreamIO8inputAllE(i8*inreg%a)local_unnamed_addr#2 gc"smlsharp"{
i:
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%g,label%e
e:
call void@sml_check(i32 inreg%c)
%f=load i8*,i8**%b,align 8
br label%g
g:
%h=phi i8*[%f,%e],[%a,%i]
%j=load i8**,i8***bitcast(i8**getelementptr inbounds(<{[4x i8],i32,[8x i8*]}>,<{[4x i8],i32,[8x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i64 0,i32 2,i64 2)to i8***),align 8
%k=load i8*,i8**%j,align 8
%l=tail call fastcc i8*@_SMLLN5BinIO8StreamIO8inputAllE_284(i8*inreg%k,i8*inreg%h)
ret i8*%l
}
define fastcc void@_SMLFN5BinIO8StreamIO8flushOutE(i8*inreg%a)#2 gc"smlsharp"{
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%f,label%e
e:
call void@sml_check(i32 inreg%c)
br label%f
f:
%g=call i8*@sml_alloc(i32 inreg 20)#0
%h=getelementptr inbounds i8,i8*%g,i64 -4
%i=bitcast i8*%h to i32*
store i32 1342177296,i32*%i,align 4
%j=load i8*,i8**%b,align 8
%k=bitcast i8*%g to i8**
store i8*%j,i8**%k,align 8
%l=getelementptr inbounds i8,i8*%g,i64 8
%m=bitcast i8*%l to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[9x i8]}>,<{[4x i8],i32,[9x i8]}>*@aV,i64 0,i32 2,i64 0),i8**%m,align 8
%n=getelementptr inbounds i8,i8*%g,i64 16
%o=bitcast i8*%n to i32*
store i32 3,i32*%o,align 4
tail call fastcc void@_SMLLN5BinIO8StreamIO11flushBufferE_334(i8*inreg%g)
ret void
}
define fastcc i8*@_SMLFN5BinIO8StreamIO9getReaderE(i8*inreg%a)local_unnamed_addr#2 gc"smlsharp"{
i:
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%g,label%e
e:
call void@sml_check(i32 inreg%c)
%f=load i8*,i8**%b,align 8
br label%g
g:
%h=phi i8*[%f,%e],[%a,%i]
%j=load i8**,i8***bitcast(i8**getelementptr inbounds(<{[4x i8],i32,[8x i8*]}>,<{[4x i8],i32,[8x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i64 0,i32 2,i64 3)to i8***),align 8
%k=load i8*,i8**%j,align 8
%l=tail call fastcc i8*@_SMLLN5BinIO8StreamIO9getReaderE_321(i8*inreg%k,i8*inreg%h)
ret i8*%l
}
define internal fastcc i8*@_SMLLN5BinIO5inputE_434(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%d,align 8
store i8*%b,i8**%c,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%g,label%j
g:
%h=bitcast i8*%b to i8**
%i=bitcast i8*%a to i8**
br label%o
j:
call void@sml_check(i32 inreg%e)
%k=bitcast i8**%d to i8***
%l=load i8**,i8***%k,align 8
%m=bitcast i8**%c to i8***
%n=load i8**,i8***%m,align 8
br label%o
o:
%p=phi i8**[%n,%j],[%h,%g]
%q=phi i8**[%l,%j],[%i,%g]
store i8*null,i8**%d,align 8
%r=load i8*,i8**%q,align 8
%s=load i8*,i8**%p,align 8
%t=call fastcc i8*@_SMLLN5BinIO8StreamIO5inputE_262(i8*inreg%r,i8*inreg%s)
%u=getelementptr inbounds i8,i8*%t,i64 8
%v=bitcast i8*%u to i8**
%w=load i8*,i8**%v,align 8
%x=load i8*,i8**%c,align 8
%y=bitcast i8*%x to i8**
call void@sml_write(i8*inreg%x,i8**inreg%y,i8*inreg%w)#0
%z=bitcast i8*%t to i8**
%A=load i8*,i8**%z,align 8
ret i8*%A
}
define fastcc i8*@_SMLFN5BinIO5inputE(i8*inreg%a)local_unnamed_addr#2 gc"smlsharp"{
i:
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%g,label%e
e:
call void@sml_check(i32 inreg%c)
%f=load i8*,i8**%b,align 8
br label%g
g:
%h=phi i8*[%f,%e],[%a,%i]
%j=load i8*,i8**getelementptr inbounds(<{[4x i8],i32,[8x i8*]}>,<{[4x i8],i32,[8x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i64 0,i32 2,i64 4),align 8
%k=getelementptr inbounds i8,i8*%j,i64 16
%l=bitcast i8*%k to i8*(i8*,i8*)**
%m=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%l,align 8
%n=bitcast i8*%j to i8**
%o=load i8*,i8**%n,align 8
%p=tail call fastcc i8*%m(i8*inreg%o,i8*inreg%h)
ret i8*%p
}
define fastcc i8*@_SMLFN5BinIO6inputNE(i8*inreg%a)local_unnamed_addr#2 gc"smlsharp"{
i:
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%g,label%e
e:
call void@sml_check(i32 inreg%c)
%f=load i8*,i8**%b,align 8
br label%g
g:
%h=phi i8*[%f,%e],[%a,%i]
%j=load i8**,i8***bitcast(i8**getelementptr inbounds(<{[4x i8],i32,[8x i8*]}>,<{[4x i8],i32,[8x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i64 0,i32 2,i64 5)to i8***),align 8
%k=load i8*,i8**%j,align 8
%l=tail call fastcc i8*@_SMLLN5BinIO6inputNE_405(i8*inreg%k,i8*inreg%h)
ret i8*%l
}
define internal fastcc i8*@_SMLLN5BinIO8inputAllE_437(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%d,align 8
store i8*%b,i8**%c,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%g,label%j
g:
%h=bitcast i8*%b to i8**
%i=bitcast i8*%a to i8**
br label%o
j:
call void@sml_check(i32 inreg%e)
%k=bitcast i8**%d to i8***
%l=load i8**,i8***%k,align 8
%m=bitcast i8**%c to i8***
%n=load i8**,i8***%m,align 8
br label%o
o:
%p=phi i8**[%n,%j],[%h,%g]
%q=phi i8**[%l,%j],[%i,%g]
store i8*null,i8**%d,align 8
%r=load i8*,i8**%q,align 8
%s=load i8*,i8**%p,align 8
%t=call fastcc i8*@_SMLLN5BinIO8StreamIO8inputAllE_284(i8*inreg%r,i8*inreg%s)
%u=getelementptr inbounds i8,i8*%t,i64 8
%v=bitcast i8*%u to i8**
%w=load i8*,i8**%v,align 8
%x=load i8*,i8**%c,align 8
%y=bitcast i8*%x to i8**
call void@sml_write(i8*inreg%x,i8**inreg%y,i8*inreg%w)#0
%z=bitcast i8*%t to i8**
%A=load i8*,i8**%z,align 8
ret i8*%A
}
define fastcc i8*@_SMLFN5BinIO8inputAllE(i8*inreg%a)local_unnamed_addr#2 gc"smlsharp"{
i:
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%g,label%e
e:
call void@sml_check(i32 inreg%c)
%f=load i8*,i8**%b,align 8
br label%g
g:
%h=phi i8*[%f,%e],[%a,%i]
%j=load i8*,i8**getelementptr inbounds(<{[4x i8],i32,[8x i8*]}>,<{[4x i8],i32,[8x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i64 0,i32 2,i64 6),align 8
%k=getelementptr inbounds i8,i8*%j,i64 16
%l=bitcast i8*%k to i8*(i8*,i8*)**
%m=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%l,align 8
%n=bitcast i8*%j to i8**
%o=load i8*,i8**%n,align 8
%p=tail call fastcc i8*%m(i8*inreg%o,i8*inreg%h)
ret i8*%p
}
define fastcc i8*@_SMLFN5BinIO8canInputE(i8*inreg%a)#2 gc"smlsharp"{
i:
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%g,label%e
e:
call void@sml_check(i32 inreg%c)
%f=load i8*,i8**%b,align 8
br label%g
g:
%h=phi i8*[%f,%e],[%a,%i]
%j=getelementptr inbounds i8,i8*%h,i64 8
%k=bitcast i8*%j to i32*
%l=load i32,i32*%k,align 4
%m=bitcast i8*%h to i8***
%n=load i8**,i8***%m,align 8
%o=load i8*,i8**%n,align 8
store i8*%o,i8**%b,align 8
%p=call i8*@sml_alloc(i32 inreg 20)#0
%q=getelementptr inbounds i8,i8*%p,i64 -4
%r=bitcast i8*%q to i32*
store i32 1342177296,i32*%r,align 4
%s=getelementptr inbounds i8,i8*%p,i64 12
%t=bitcast i8*%s to i32*
store i32 0,i32*%t,align 1
%u=load i8*,i8**%b,align 8
%v=bitcast i8*%p to i8**
store i8*%u,i8**%v,align 8
%w=getelementptr inbounds i8,i8*%p,i64 8
%x=bitcast i8*%w to i32*
store i32%l,i32*%x,align 4
%y=getelementptr inbounds i8,i8*%p,i64 16
%z=bitcast i8*%y to i32*
store i32 1,i32*%z,align 4
%A=tail call fastcc i8*@_SMLFN5BinIO8StreamIO8canInputE(i8*inreg%p)
ret i8*%A
}
define fastcc i32@_SMLFN5BinIO11endOfStreamE(i8*inreg%a)#2 gc"smlsharp"{
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%e,label%g
e:
%f=bitcast i8*%a to i8**
br label%j
g:
call void@sml_check(i32 inreg%c)
%h=bitcast i8**%b to i8***
%i=load i8**,i8***%h,align 8
br label%j
j:
%k=phi i8**[%i,%g],[%f,%e]
%l=load i8*,i8**%k,align 8
%m=tail call fastcc i32@_SMLFN5BinIO8StreamIO11endOfStreamE(i8*inreg%l)
ret i32%m
}
define fastcc void@_SMLFN5BinIO6outputE(i8*inreg%a)#2 gc"smlsharp"{
j:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%b,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%h,label%f
f:
call void@sml_check(i32 inreg%d)
%g=load i8*,i8**%b,align 8
br label%h
h:
%i=phi i8*[%g,%f],[%a,%j]
%k=getelementptr inbounds i8,i8*%i,i64 8
%l=bitcast i8*%k to i8**
%m=load i8*,i8**%l,align 8
store i8*%m,i8**%b,align 8
%n=bitcast i8*%i to i8***
%o=load i8**,i8***%n,align 8
%p=load i8*,i8**%o,align 8
store i8*%p,i8**%c,align 8
%q=call i8*@sml_alloc(i32 inreg 20)#0
%r=getelementptr inbounds i8,i8*%q,i64 -4
%s=bitcast i8*%r to i32*
store i32 1342177296,i32*%s,align 4
%t=load i8*,i8**%c,align 8
%u=bitcast i8*%q to i8**
store i8*%t,i8**%u,align 8
%v=load i8*,i8**%b,align 8
%w=getelementptr inbounds i8,i8*%q,i64 8
%x=bitcast i8*%w to i8**
store i8*%v,i8**%x,align 8
%y=getelementptr inbounds i8,i8*%q,i64 16
%z=bitcast i8*%y to i32*
store i32 3,i32*%z,align 4
tail call fastcc void@_SMLFN5BinIO8StreamIO6outputE(i8*inreg%q)
ret void
}
define fastcc void@_SMLFN5BinIO7output1E(i8*inreg%a)#2 gc"smlsharp"{
i:
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%g,label%e
e:
call void@sml_check(i32 inreg%c)
%f=load i8*,i8**%b,align 8
br label%g
g:
%h=phi i8*[%f,%e],[%a,%i]
%j=getelementptr inbounds i8,i8*%h,i64 8
%k=load i8,i8*%j,align 1
%l=bitcast i8*%h to i8***
%m=load i8**,i8***%l,align 8
%n=load i8*,i8**%m,align 8
store i8*%n,i8**%b,align 8
%o=call i8*@sml_alloc(i32 inreg 20)#0
%p=getelementptr inbounds i8,i8*%o,i64 -4
%q=bitcast i8*%p to i32*
store i32 1342177296,i32*%q,align 4
%r=getelementptr inbounds i8,i8*%o,i64 9
call void@llvm.memset.p0i8.i32(i8*%r,i8 0,i32 7,i1 false)
%s=load i8*,i8**%b,align 8
%t=bitcast i8*%o to i8**
store i8*%s,i8**%t,align 8
%u=getelementptr inbounds i8,i8*%o,i64 8
store i8%k,i8*%u,align 1
%v=getelementptr inbounds i8,i8*%o,i64 16
%w=bitcast i8*%v to i32*
store i32 1,i32*%w,align 4
tail call fastcc void@_SMLFN5BinIO8StreamIO7output1E(i8*inreg%o)
ret void
}
define fastcc void@_SMLFN5BinIO8flushOutE(i8*inreg%a)#2 gc"smlsharp"{
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%e,label%g
e:
%f=bitcast i8*%a to i8**
br label%j
g:
call void@sml_check(i32 inreg%c)
%h=bitcast i8**%b to i8***
%i=load i8**,i8***%h,align 8
br label%j
j:
%k=phi i8**[%i,%g],[%f,%e]
%l=load i8*,i8**%k,align 8
store i8*%l,i8**%b,align 8
%m=call i8*@sml_alloc(i32 inreg 20)#0
%n=getelementptr inbounds i8,i8*%m,i64 -4
%o=bitcast i8*%n to i32*
store i32 1342177296,i32*%o,align 4
%p=load i8*,i8**%b,align 8
%q=bitcast i8*%m to i8**
store i8*%p,i8**%q,align 8
%r=getelementptr inbounds i8,i8*%m,i64 8
%s=bitcast i8*%r to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[9x i8]}>,<{[4x i8],i32,[9x i8]}>*@aV,i64 0,i32 2,i64 0),i8**%s,align 8
%t=getelementptr inbounds i8,i8*%m,i64 16
%u=bitcast i8*%t to i32*
store i32 3,i32*%u,align 4
tail call fastcc void@_SMLLN5BinIO8StreamIO11flushBufferE_334(i8*inreg%m)
ret void
}
define fastcc void@_SMLFN5BinIO8closeOutE(i8*inreg%a)#2 gc"smlsharp"{
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%e,label%g
e:
%f=bitcast i8*%a to i8**
br label%j
g:
call void@sml_check(i32 inreg%c)
%h=bitcast i8**%b to i8***
%i=load i8**,i8***%h,align 8
br label%j
j:
%k=phi i8**[%i,%g],[%f,%e]
%l=load i8*,i8**%k,align 8
tail call fastcc void@_SMLFN5BinIO8StreamIO8closeOutE(i8*inreg%l)
ret void
}
define fastcc i8*@_SMLFN5BinIO10mkInstreamE(i8*inreg%a)#4 gc"smlsharp"{
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=call i8*@sml_alloc(i32 inreg 8)#0
%d=getelementptr inbounds i8,i8*%c,i64 -4
%e=bitcast i8*%d to i32*
store i32 805306376,i32*%e,align 4
%f=bitcast i8*%c to i64*
store i64 0,i64*%f,align 1
%g=load i8*,i8**%b,align 8
%h=bitcast i8*%c to i8**
call void@sml_write(i8*inreg%c,i8**inreg%h,i8*inreg%g)#0
ret i8*%c
}
define fastcc i8*@_SMLFN5BinIO11getInstreamE(i8*inreg%a)#4 gc"smlsharp"{
%b=bitcast i8*%a to i8**
%c=load i8*,i8**%b,align 8
ret i8*%c
}
define fastcc void@_SMLFN5BinIO11setInstreamE(i8*inreg%a)#4 gc"smlsharp"{
%b=bitcast i8*%a to i8**
%c=load i8*,i8**%b,align 8
%d=getelementptr inbounds i8,i8*%a,i64 8
%e=bitcast i8*%d to i8**
%f=load i8*,i8**%e,align 8
%g=bitcast i8*%c to i8**
tail call void@sml_write(i8*inreg%c,i8**inreg%g,i8*inreg%f)#0
ret void
}
define fastcc i8*@_SMLFN5BinIO11mkOutstreamE(i8*inreg%a)#4 gc"smlsharp"{
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=call i8*@sml_alloc(i32 inreg 8)#0
%d=getelementptr inbounds i8,i8*%c,i64 -4
%e=bitcast i8*%d to i32*
store i32 805306376,i32*%e,align 4
%f=bitcast i8*%c to i64*
store i64 0,i64*%f,align 1
%g=load i8*,i8**%b,align 8
%h=bitcast i8*%c to i8**
call void@sml_write(i8*inreg%c,i8**inreg%h,i8*inreg%g)#0
ret i8*%c
}
define fastcc i8*@_SMLFN5BinIO12getOutstreamE(i8*inreg%a)#4 gc"smlsharp"{
%b=bitcast i8*%a to i8**
%c=load i8*,i8**%b,align 8
ret i8*%c
}
define fastcc void@_SMLFN5BinIO12setOutstreamE(i8*inreg%a)#4 gc"smlsharp"{
%b=bitcast i8*%a to i8**
%c=load i8*,i8**%b,align 8
%d=getelementptr inbounds i8,i8*%a,i64 8
%e=bitcast i8*%d to i8**
%f=load i8*,i8**%e,align 8
%g=bitcast i8*%c to i8**
tail call void@sml_write(i8*inreg%c,i8**inreg%g,i8*inreg%f)#0
ret void
}
define fastcc i8*@_SMLFN5BinIO9getPosOutE(i8*inreg%a)#2 gc"smlsharp"{
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%e,label%g
e:
%f=bitcast i8*%a to i8**
br label%j
g:
call void@sml_check(i32 inreg%c)
%h=bitcast i8**%b to i8***
%i=load i8**,i8***%h,align 8
br label%j
j:
%k=phi i8**[%i,%g],[%f,%e]
%l=load i8*,i8**%k,align 8
%m=tail call fastcc i8*@_SMLFN5BinIO8StreamIO9getPosOutE(i8*inreg%l)
ret i8*%m
}
define fastcc i8*@_SMLFN5BinIO6openInE(i8*inreg%a)local_unnamed_addr#2 gc"smlsharp"{
i:
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%g,label%e
e:
call void@sml_check(i32 inreg%c)
%f=load i8*,i8**%b,align 8
br label%g
g:
%h=phi i8*[%f,%e],[%a,%i]
%j=load i8**,i8***bitcast(i8**getelementptr inbounds(<{[4x i8],i32,[8x i8*]}>,<{[4x i8],i32,[8x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i64 0,i32 2,i64 7)to i8***),align 8
%k=load i8*,i8**%j,align 8
%l=tail call fastcc i8*@_SMLLN5BinIO6openInE_416(i8*inreg%k,i8*inreg%h)
ret i8*%l
}
define internal fastcc i8*@_SMLLN7CleanIO11stdStrmHookE_467(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%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*@_SMLL10vecExtract_468(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLL10vecExtract_223(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLN5BinIO8StreamIO9readChunkE_475(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=tail call fastcc i8*@_SMLLN5BinIO8StreamIO9readChunkE_244(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLN5BinIO8StreamIO9readChunkE_476(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=tail call fastcc i8*@_SMLLN5BinIO8StreamIO9readChunkE_249(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLL8bigChunk_481(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=tail call fastcc i8*@_SMLL8bigChunk_281(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLN5BinIO8StreamIO8canInputE_482(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN5BinIO8StreamIO8canInputE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLN5BinIO8StreamIO7closeInE_483(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLFN5BinIO8StreamIO7closeInE(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*@_SMLLN5BinIO8StreamIO11endOfStreamE_484(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLFN5BinIO8StreamIO11endOfStreamE(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*@_SMLL8readVec_G_485(i8*inreg%a,i8*inreg%b)#5 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=tail call fastcc i8*@_SMLL8readVec_G_307(i32 inreg%d)
unreachable
}
define internal fastcc i8*@_SMLL10readVecNB_G_486(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=tail call fastcc i8*@_SMLL10readVecNB_G_311(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLL6getPos_487(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
ret i8*null
}
define internal fastcc i8*@_SMLL6getPos_488(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=tail call fastcc i8*@_SMLL6getPos_314(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLL3tag_489(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=bitcast i8*%a to i32**
%d=load i32*,i32**%c,align 8
store i32 1,i32*%d,align 4
%e=tail call i8*@sml_alloc(i32 inreg 4)#0
%f=bitcast i8*%e to i32*
%g=getelementptr inbounds i8,i8*%e,i64 -4
%h=bitcast i8*%g to i32*
store i32 4,i32*%h,align 4
store i32 0,i32*%f,align 4
ret i8*%e
}
define internal fastcc i8*@_SMLLN5BinIO8StreamIO10mkInstreamE_490(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN5BinIO8StreamIO10mkInstreamE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLN5BinIO8StreamIO9filePosInE_492(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLFN5BinIO8StreamIO9filePosInE(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*@_SMLL11writeDirect_497(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
tail call fastcc void@_SMLL11writeDirect_338(i8*inreg%a,i32 inreg%d)
%e=tail call i8*@sml_alloc(i32 inreg 4)#0
%f=bitcast i8*%e to i32*
%g=getelementptr inbounds i8,i8*%e,i64 -4
%h=bitcast i8*%g to i32*
store i32 4,i32*%h,align 4
store i32 0,i32*%f,align 4
ret i8*%e
}
define internal fastcc i8*@_SMLL6insert_498(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLL6insert_345(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*@_SMLL7copyVec_499(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLL7copyVec_346(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*@_SMLLN5BinIO8StreamIO6outputE_500(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLFN5BinIO8StreamIO6outputE(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*@_SMLLN5BinIO8StreamIO7output1E_501(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLFN5BinIO8StreamIO7output1E(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*@_SMLLN5BinIO8StreamIO8closeOutE_502(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLFN5BinIO8StreamIO8closeOutE(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*@_SMLL2lp_503(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLL2lp_360(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*@_SMLL7iterate_504(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLL7iterate_361(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*@_SMLL9writeArr_G_506(i8*inreg%a,i8*inreg%b)#5 gc"smlsharp"{
tail call fastcc void@_SMLL9writeArr_G_365(i8*inreg%b)
unreachable
}
define internal fastcc i8*@_SMLL9writeVec_G_507(i8*inreg%a,i8*inreg%b)#5 gc"smlsharp"{
tail call fastcc void@_SMLL9writeVec_G_368(i8*inreg%b)
unreachable
}
define internal fastcc i8*@_SMLL3tag_508(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%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*@_SMLLN5BinIO8StreamIO11mkOutstreamE_509(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
tail call fastcc void@_SMLLN5BinIO8StreamIO11mkOutstreamE_372(i8*inreg%a,i32 inreg%d)
%e=tail call i8*@sml_alloc(i32 inreg 4)#0
%f=bitcast i8*%e to i32*
%g=getelementptr inbounds i8,i8*%e,i64 -4
%h=bitcast i8*%g to i32*
store i32 4,i32*%h,align 4
store i32 0,i32*%f,align 4
ret i8*%e
}
define internal fastcc i8*@_SMLLN5BinIO8StreamIO11mkOutstreamE_510(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
tail call fastcc void@_SMLLN5BinIO8StreamIO11mkOutstreamE_374(i8*inreg%a,i32 inreg%d)
%e=tail call i8*@sml_alloc(i32 inreg 4)#0
%f=bitcast i8*%e to i32*
%g=getelementptr inbounds i8,i8*%e,i64 -4
%h=bitcast i8*%g to i32*
store i32 4,i32*%h,align 4
store i32 0,i32*%f,align 4
ret i8*%e
}
define internal fastcc i8*@_SMLLN5BinIO8StreamIO11mkOutstreamE_511(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
tail call fastcc void@_SMLLN5BinIO8StreamIO11mkOutstreamE_375(i8*inreg%a,i32 inreg%d)
%e=tail call i8*@sml_alloc(i32 inreg 4)#0
%f=bitcast i8*%e to i32*
%g=getelementptr inbounds i8,i8*%e,i64 -4
%h=bitcast i8*%g to i32*
store i32 4,i32*%h,align 4
store i32 0,i32*%f,align 4
ret i8*%e
}
define internal fastcc i8*@_SMLLN5BinIO8StreamIO11mkOutstreamE_512(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN5BinIO8StreamIO11mkOutstreamE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLN5BinIO8StreamIO9getWriterE_513(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN5BinIO8StreamIO9getWriterE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLN5BinIO8StreamIO9getPosOutE_514(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN5BinIO8StreamIO9getPosOutE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLN5BinIO8StreamIO10filePosOutE_515(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLFN5BinIO8StreamIO10filePosOutE(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*@_SMLLN5BinIO8StreamIO9setPosOutE_516(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN5BinIO8StreamIO9setPosOutE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLN5BinIO8StreamIO13setBufferModeE_517(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLFN5BinIO8StreamIO13setBufferModeE(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*@_SMLLN5BinIO8StreamIO13getBufferModeE_518(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLFN5BinIO8StreamIO13getBufferModeE(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*@_SMLLN5BinIO6input1E_519(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN5BinIO6input1E(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLN5BinIO9lookaheadE_520(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN5BinIO9lookaheadE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLN5BinIO7closeInE_522(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLFN5BinIO7closeInE(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*@_SMLLN5BinIO9setPosOutE_523(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLFN5BinIO9setPosOutE(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*@_SMLLN5BinIO7openOutE_524(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN5BinIO7openOutE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLN5BinIO10openAppendE_525(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN5BinIO10openAppendE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLN5BinIO8StreamIO6input1E_527(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN5BinIO8StreamIO6input1E(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLN5BinIO8StreamIO8flushOutE_530(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLFN5BinIO8StreamIO8flushOutE(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*@_SMLLN5BinIO8canInputE_535(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN5BinIO8canInputE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLN5BinIO11endOfStreamE_536(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLFN5BinIO11endOfStreamE(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*@_SMLLN5BinIO6outputE_537(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLFN5BinIO6outputE(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*@_SMLLN5BinIO7output1E_538(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLFN5BinIO7output1E(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*@_SMLLN5BinIO8flushOutE_539(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLFN5BinIO8flushOutE(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*@_SMLLN5BinIO8closeOutE_540(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLFN5BinIO8closeOutE(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*@_SMLLN5BinIO10mkInstreamE_541(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN5BinIO10mkInstreamE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLN5BinIO11getInstreamE_542(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=bitcast i8*%b to i8**
%d=load i8*,i8**%c,align 8
ret i8*%d
}
define internal fastcc i8*@_SMLLN5BinIO11setInstreamE_543(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
tail call fastcc void@_SMLFN5BinIO11setInstreamE(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*@_SMLLN5BinIO11mkOutstreamE_544(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN5BinIO11mkOutstreamE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLN5BinIO12getOutstreamE_545(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=bitcast i8*%b to i8**
%d=load i8*,i8**%c,align 8
ret i8*%d
}
define internal fastcc i8*@_SMLLN5BinIO12setOutstreamE_546(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
tail call fastcc void@_SMLFN5BinIO12setOutstreamE(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*@_SMLLN5BinIO9getPosOutE_547(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN5BinIO9getPosOutE(i8*inreg%b)
ret i8*%c
}
declare void@llvm.memset.p0i8.i32(i8*,i8,i32,i1)#0
declare void@llvm.lifetime.start.p0i8(i64,i8*)#0
declare void@llvm.lifetime.end.p0i8(i64,i8*)#0
attributes#0={nounwind}
attributes#1={noreturn}
attributes#2={uwtable}
attributes#3={noreturn nounwind}
attributes#4={nounwind uwtable}
attributes#5={noreturn uwtable}
