@sml_check_flag=external local_unnamed_addr global i32
@_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)*@_SMLLL226 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLL477 to void(...)*),i32 -2147483647}>,align 8
@_SMLDL228=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,[26x i8]}><{[4x i8]zeroinitializer,i32 -2147483622,[26x i8]c"BinIO.StreamIO.WouldBlock\00"}>,align 8
@c=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]}>*@b,i32 0,i32 0,i32 0),i32 8),i32 0,[4x i8]zeroinitializer,i32 1}>,align 8
@_SMLDL231=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}>*@c,i32 0,i32 0,i32 0),i32 8)}>,align 8
@d=private unnamed_addr constant<{[4x i8],i32,[6x i8]}><{[4x i8]zeroinitializer,i32 -2147483642,[6x i8]c"input\00"}>,align 8
@e=private unnamed_addr constant<{[4x i8],i32,[7x i8]}><{[4x i8]zeroinitializer,i32 -2147483641,[7x i8]c"input1\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:206.10(6209)\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*)*@_SMLFN5BinIO8StreamIO6input1E to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN5BinIO8StreamIO6input1E_479 to void(...)*),i32 -2147483647}>,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:221.22(6724)\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:227.17(6885)\00"}>,align 8
@j=private unnamed_addr constant<{[4x i8],i32,[7x i8]}><{[4x i8]zeroinitializer,i32 -2147483641,[7x i8]c"inputN\00"}>,align 8
@k=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
@l=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
@m=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN5BinIO8StreamIO6inputNE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN5BinIO8StreamIO6inputNE_481 to void(...)*),i32 -2147483647}>,align 8
@n=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
@o=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
@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:170.25(5148)\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:170.52(5175)\00"}>,align 8
@r=private unnamed_addr constant<{[4x i8],i32,[9x i8]}><{[4x i8]zeroinitializer,i32 -2147483639,[9x i8]c"inputAll\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:183.20(5565)\00"}>,align 8
@t=private unnamed_addr constant<{[4x i8],i32,[13x i8]}><{[4x i8]zeroinitializer,i32 -2147483635,[13x i8]c"bogus getBuf\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:271.30(8380)\00"}>,align 8
@v=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
@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:280.24(8674)\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:284.33(8826)\00"}>,align 8
@y=private unnamed_addr constant<{[4x i8],i32,[9x i8]}><{[4x i8]zeroinitializer,i32 -2147483639,[9x i8]c"canInput\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:289.26(9013)\00"}>,align 8
@A=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
@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:285.36(8867)\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:282.43(8737)\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:295.15(9168)\00"}>,align 8
@E=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*)*@_SMLLLN5BinIO8StreamIO8canInputE_485 to void(...)*),i32 -2147483647}>,align 8
@F=private unnamed_addr constant<{[4x i8],i32,[8x i8]}><{[4x i8]zeroinitializer,i32 -2147483640,[8x i8]c"closeIn\00"}>,align 8
@G=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*)*@_SMLLLN5BinIO8StreamIO7closeInE_486 to void(...)*),i32 -2147483647}>,align 8
@H=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i8*)*@_SMLFN5BinIO8StreamIO11endOfStreamE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN5BinIO8StreamIO11endOfStreamE_487 to void(...)*),i32 -2147483647}>,align 8
@I=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
@J=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32)*@_SMLLL8readVec_G_299 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLL8readVec_G_488 to void(...)*),i32 -2147483647}>,align 8
@K=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
@L=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*}>*@_SMLDL231,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]}>*@K,i32 0,i32 0,i32 0),i32 8),i32 3}>,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)*@_SMLLL6getPos_304 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLL6getPos_490 to void(...)*),i32 -2147483647}>,align 8
@N=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
@O=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*)*@_SMLLLN5BinIO8StreamIO10mkInstreamE_495 to void(...)*),i32 -2147483647}>,align 8
@P=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
@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:196.15(5881)\00"}>,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*)*@_SMLFN5BinIO8StreamIO9getReaderE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN5BinIO8StreamIO9getReaderE_497 to void(...)*),i32 -2147483647}>,align 8
@S=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
@T=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
@U=private unnamed_addr constant<{[4x i8],i32,[10x i8]}><{[4x i8]zeroinitializer,i32 -2147483638,[10x i8]c"filePosIn\00"}>,align 8
@V=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*)*@_SMLLLN5BinIO8StreamIO9filePosInE_498 to void(...)*),i32 -2147483647}>,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:433.24(13682)\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:443.18(13935)\00"}>,align 8
@Y=private unnamed_addr constant<{[4x i8],i32,[7x i8]}><{[4x i8]zeroinitializer,i32 -2147483641,[7x i8]c"output\00"}>,align 8
@Z=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
@aa=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*)*@_SMLLLN5BinIO8StreamIO6outputE_499 to void(...)*),i32 -2147483647}>,align 8
@ab=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
@ac=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
@ad=private unnamed_addr constant<{[4x i8],i32,[8x i8]}><{[4x i8]zeroinitializer,i32 -2147483640,[8x i8]c"output1\00"}>,align 8
@ae=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*)*@_SMLLLN5BinIO8StreamIO7output1E_500 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*)*@_SMLFN5BinIO8StreamIO8flushOutE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN5BinIO8StreamIO8flushOutE_501 to void(...)*),i32 -2147483647}>,align 8
@ag=private unnamed_addr constant<{[4x i8],i32,[9x i8]}><{[4x i8]zeroinitializer,i32 -2147483639,[9x i8]c"closeOut\00"}>,align 8
@ah=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*)*@_SMLLLN5BinIO8StreamIO8closeOutE_502 to void(...)*),i32 -2147483647}>,align 8
@ai=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
@aj=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLLL9writeArr_G_361 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLL9writeArr_G_504 to void(...)*),i32 -2147483647}>,align 8
@ak=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
@al=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLLL9writeVec_G_365 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLL9writeVec_G_506 to void(...)*),i32 -2147483647}>,align 8
@am=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i32)*@_SMLLLN5BinIO8StreamIO11mkOutstreamE_367 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN5BinIO8StreamIO11mkOutstreamE_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(i8*(i8*)*@_SMLFN5BinIO8StreamIO11mkOutstreamE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN5BinIO8StreamIO11mkOutstreamE_513 to void(...)*),i32 -2147483647}>,align 8
@ao=private unnamed_addr constant<{[4x i8],i32,[10x i8]}><{[4x i8]zeroinitializer,i32 -2147483638,[10x i8]c"getWriter\00"}>,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*)*@_SMLFN5BinIO8StreamIO9getWriterE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN5BinIO8StreamIO9getWriterE_514 to void(...)*),i32 -2147483647}>,align 8
@aq=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
@ar=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*)*@_SMLLLN5BinIO8StreamIO9getPosOutE_515 to void(...)*),i32 -2147483647}>,align 8
@as=private unnamed_addr constant<{[4x i8],i32,[11x i8]}><{[4x i8]zeroinitializer,i32 -2147483637,[11x i8]c"filePosOut\00"}>,align 8
@at=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*)*@_SMLLLN5BinIO8StreamIO10filePosOutE_516 to void(...)*),i32 -2147483647}>,align 8
@au=private unnamed_addr constant<{[4x i8],i32,[10x i8]}><{[4x i8]zeroinitializer,i32 -2147483638,[10x i8]c"setPosOut\00"}>,align 8
@av=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
@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,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN5BinIO8StreamIO9setPosOutE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN5BinIO8StreamIO9setPosOutE_517 to void(...)*),i32 -2147483647}>,align 8
@ay=private unnamed_addr constant<{[4x i8],i32,[14x i8]}><{[4x i8]zeroinitializer,i32 -2147483634,[14x i8]c"setBufferMode\00"}>,align 8
@az=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*)*@_SMLLLN5BinIO8StreamIO13setBufferModeE_518 to void(...)*),i32 -2147483647}>,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:400.30(12656)\00"}>,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*)*@_SMLLLN5BinIO8StreamIO13getBufferModeE_519 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*)*@_SMLLLN5BinIO6input1E_520 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*)*@_SMLFN5BinIO6inputNE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN5BinIO6inputNE_521 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(i8*(i8*)*@_SMLFN5BinIO8canInputE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN5BinIO8canInputE_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(i8*(i8*)*@_SMLFN5BinIO9lookaheadE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN5BinIO9lookaheadE_523 to void(...)*),i32 -2147483647}>,align 8
@aH=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*)*@_SMLLLN5BinIO7closeInE_524 to void(...)*),i32 -2147483647}>,align 8
@aI=private unnamed_addr constant<{[4x i8],i32,[12x i8]}><{[4x i8]zeroinitializer,i32 -2147483636,[12x i8]c"endOfStream\00"}>,align 8
@aJ=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*)*@_SMLLLN5BinIO11endOfStreamE_525 to void(...)*),i32 -2147483647}>,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*)*@_SMLFN5BinIO6outputE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN5BinIO6outputE_526 to void(...)*),i32 -2147483647}>,align 8
@aL=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*)*@_SMLLLN5BinIO7output1E_527 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:397.13(12519)\00"}>,align 8
@aN=private unnamed_addr constant<{[4x i8],i32,[9x i8]}><{[4x i8]zeroinitializer,i32 -2147483639,[9x i8]c"flushOut\00"}>,align 8
@aO=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*)*@_SMLLLN5BinIO8flushOutE_528 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(void(i8*)*@_SMLFN5BinIO8closeOutE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN5BinIO8closeOutE_529 to void(...)*),i32 -2147483647}>,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*)*@_SMLFN5BinIO9getPosOutE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN5BinIO9getPosOutE_530 to void(...)*),i32 -2147483647}>,align 8
@aR=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*)*@_SMLLLN5BinIO9setPosOutE_531 to void(...)*),i32 -2147483647}>,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*)*@_SMLFN5BinIO10mkInstreamE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN5BinIO10mkInstreamE_532 to void(...)*),i32 -2147483647}>,align 8
@aT=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*)*@_SMLLLN5BinIO11getInstreamE_533 to void(...)*),i32 -2147483647}>,align 8
@aU=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*)*@_SMLLLN5BinIO11setInstreamE_534 to void(...)*),i32 -2147483647}>,align 8
@aV=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*)*@_SMLLLN5BinIO11mkOutstreamE_535 to void(...)*),i32 -2147483647}>,align 8
@aW=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*)*@_SMLLLN5BinIO12getOutstreamE_536 to void(...)*),i32 -2147483647}>,align 8
@aX=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*)*@_SMLLLN5BinIO12setOutstreamE_537 to void(...)*),i32 -2147483647}>,align 8
@aY=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
@aZ=private unnamed_addr constant<{[4x i8],i32,[7x i8]}><{[4x i8]zeroinitializer,i32 -2147483641,[7x i8]c"openIn\00"}>,align 8
@a0=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
@a1=private unnamed_addr constant<{[4x i8],i32,[8x i8]}><{[4x i8]zeroinitializer,i32 -2147483640,[8x i8]c"openOut\00"}>,align 8
@a2=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*)*@_SMLLLN5BinIO7openOutE_538 to void(...)*),i32 -2147483647}>,align 8
@a3=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
@a4=private unnamed_addr constant<{[4x i8],i32,[11x i8]}><{[4x i8]zeroinitializer,i32 -2147483637,[11x i8]c"openAppend\00"}>,align 8
@a5=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*)*@_SMLLLN5BinIO10openAppendE_539 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}>*@g,i64 0,i32 2)to i8*)
@_SMLZN5BinIO8StreamIO6inputNE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@m,i64 0,i32 2)to i8*)
@_SMLZN5BinIO8StreamIO8canInputE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@E,i64 0,i32 2)to i8*)
@_SMLZN5BinIO8StreamIO7closeInE=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*)
@_SMLZN5BinIO8StreamIO11endOfStreamE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@H,i64 0,i32 2)to i8*)
@_SMLZN5BinIO8StreamIO6outputE=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*)
@_SMLZN5BinIO8StreamIO7output1E=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*)
@_SMLZN5BinIO8StreamIO8flushOutE=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*)
@_SMLZN5BinIO8StreamIO8closeOutE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@ah,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}>*@O,i64 0,i32 2)to i8*)
@_SMLZN5BinIO8StreamIO9getReaderE=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}>*@V,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}>*@az,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}>*@an,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}>*@ap,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}>*@ar,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}>*@ax,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}>*@at,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*)
@_SMLZN5BinIO6inputNE=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*)
@_SMLZN5BinIO8canInputE=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*)
@_SMLZN5BinIO9lookaheadE=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*)
@_SMLZN5BinIO7closeInE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@aH,i64 0,i32 2)to i8*)
@_SMLZN5BinIO11endOfStreamE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@aJ,i64 0,i32 2)to i8*)
@_SMLZN5BinIO6outputE=local_unnamed_addr constant i8*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*)
@_SMLZN5BinIO7output1E=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*)
@_SMLZN5BinIO8flushOutE=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*)
@_SMLZN5BinIO8closeOutE=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*)
@_SMLZN5BinIO10mkInstreamE=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*)
@_SMLZN5BinIO11getInstreamE=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*)
@_SMLZN5BinIO11setInstreamE=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*)
@_SMLZN5BinIO11mkOutstreamE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@aV,i64 0,i32 2)to i8*)
@_SMLZN5BinIO12getOutstreamE=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*)
@_SMLZN5BinIO12setOutstreamE=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*)
@_SMLZN5BinIO9getPosOutE=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*)
@_SMLZN5BinIO9setPosOutE=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*)
@_SMLZN5BinIO7openOutE=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*)
@_SMLZN5BinIO10openAppendE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@a5,i64 0,i32 2)to i8*)
@_SML_gvar21c7617ebc9dc739_bin_io=private global<{[4x i8],i32,[5x i8*]}><{[4x i8]zeroinitializer,i32 -1342177240,[5x i8*]zeroinitializer}>,align 8
@a6=private unnamed_addr global[3x i64][i64 2,i64 sub(i64 ptrtoint(i8**getelementptr inbounds(<{[4x i8],i32,[5x i8*]}>,<{[4x i8],i32,[5x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i32 0,i32 2,i32 0)to i64),i64 ptrtoint([3x i64]*@a6 to i64)),i64 sub(i64 ptrtoint(i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,i8*}>,<{[4x i8],i32,i8*}>*@_SMLDL228,i32 0,i32 0,i32 0),i32 8)to i64),i64 ptrtoint([3x i64]*@a6 to i64))]
@_SML_ftab21c7617ebc9dc739_bin_io=external global i8
@a7=private unnamed_addr global i8 0
@_SMLZN5BinIO8StreamIO5inputE=alias i8*,getelementptr inbounds(<{[4x i8],i32,[5x i8*]}>,<{[4x i8],i32,[5x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i32 0,i32 2,i32 0)
@_SMLZN5BinIO8StreamIO8inputAllE=alias i8*,getelementptr inbounds(<{[4x i8],i32,[5x i8*]}>,<{[4x i8],i32,[5x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i32 0,i32 2,i32 1)
@_SMLZN5BinIO5inputE=alias i8*,getelementptr inbounds(<{[4x i8],i32,[5x i8*]}>,<{[4x i8],i32,[5x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i32 0,i32 2,i32 2)
@_SMLZN5BinIO8inputAllE=alias i8*,getelementptr inbounds(<{[4x i8],i32,[5x i8*]}>,<{[4x i8],i32,[5x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i32 0,i32 2,i32 3)
@_SMLZN5BinIO6openInE=alias i8*,getelementptr inbounds(<{[4x i8],i32,[5x i8*]}>,<{[4x i8],i32,[5x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i32 0,i32 2,i32 4)
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 i32@_SMLFN15Word8ArraySlice6lengthE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare void@_SMLFN15Word8ArraySlice7copyVecE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN15Word8ArraySlice8subsliceE(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 i32@_SMLFN16Word8VectorSlice6lengthE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN16Word8VectorSlice6vectorE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN16Word8VectorSlice8subsliceE(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*@a7,align 1
%c=icmp eq i8%b,0
br i1%c,label%e,label%d
d:
ret void
e:
store i8 1,i8*@a7,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]*@a6 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=load i8,i8*@a7,align 1
%i=and i8%h,2
%j=icmp eq i8%i,0
br i1%j,label%l,label%k
k:
ret void
l:
store i8 3,i8*@a7,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
%m=bitcast[3x i8*]*%a to i8*
call void@sml_start(i8*inreg%m)#0
%n=load atomic i32,i32*@sml_check_flag unordered,align 4
%o=icmp eq i32%n,0
br i1%o,label%q,label%p
p:
invoke void@sml_check(i32 inreg%n)
to label%q unwind label%a9
q:
%r=invoke fastcc i8*@_SMLFN11Word8Vector8fromListE(i8*inreg null)
to label%s unwind label%a9
s:
store i8*%r,i8**%b,align 8
%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
store i8*%t,i8**%c,align 8
%w=load i8*,i8**%b,align 8
%x=bitcast i8*%t to i8**
store i8*%w,i8**%x,align 8
%y=getelementptr inbounds i8,i8*%t,i64 8
%z=bitcast i8*%y to i32*
store i32 1,i32*%z,align 4
%A=call i8*@sml_alloc(i32 inreg 28)#0
%B=getelementptr inbounds i8,i8*%A,i64 -4
%C=bitcast i8*%B to i32*
store i32 1342177304,i32*%C,align 4
store i8*%A,i8**%d,align 8
%D=load i8*,i8**%c,align 8
%E=bitcast i8*%A to i8**
store i8*%D,i8**%E,align 8
%F=getelementptr inbounds i8,i8*%A,i64 8
%G=bitcast i8*%F to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN5BinIO8StreamIO5inputE_240 to void(...)*),void(...)**%G,align 8
%H=getelementptr inbounds i8,i8*%A,i64 16
%I=bitcast i8*%H to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN5BinIO8StreamIO5inputE_240 to void(...)*),void(...)**%I,align 8
%J=getelementptr inbounds i8,i8*%A,i64 24
%K=bitcast i8*%J to i32*
store i32 -2147483647,i32*%K,align 4
%L=call i8*@sml_alloc(i32 inreg 12)#0
%M=getelementptr inbounds i8,i8*%L,i64 -4
%N=bitcast i8*%M to i32*
store i32 1342177288,i32*%N,align 4
store i8*%L,i8**%e,align 8
%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 i32*
store i32 1,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
store i8*%S,i8**%f,align 8
%V=load i8*,i8**%e,align 8
%W=bitcast i8*%S to i8**
store i8*%V,i8**%W,align 8
%X=getelementptr inbounds i8,i8*%S,i64 8
%Y=bitcast i8*%X to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN5BinIO8StreamIO8inputAllE_273 to void(...)*),void(...)**%Y,align 8
%Z=getelementptr inbounds i8,i8*%S,i64 16
%aa=bitcast i8*%Z to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN5BinIO8StreamIO8inputAllE_273 to void(...)*),void(...)**%aa,align 8
%ab=getelementptr inbounds i8,i8*%S,i64 24
%ac=bitcast i8*%ab to i32*
store i32 -2147483647,i32*%ac,align 4
%ad=call i8*@sml_alloc(i32 inreg 12)#0
%ae=getelementptr inbounds i8,i8*%ad,i64 -4
%af=bitcast i8*%ae to i32*
store i32 1342177288,i32*%af,align 4
store i8*%ad,i8**%g,align 8
%ag=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ah=bitcast i8*%ad to i8**
store i8*%ag,i8**%ah,align 8
%ai=getelementptr inbounds i8,i8*%ad,i64 8
%aj=bitcast i8*%ai to i32*
store i32 1,i32*%aj,align 4
%ak=call i8*@sml_alloc(i32 inreg 28)#0
%al=getelementptr inbounds i8,i8*%ak,i64 -4
%am=bitcast i8*%al to i32*
store i32 1342177304,i32*%am,align 4
store i8*%ak,i8**%c,align 8
%an=load i8*,i8**%g,align 8
store i8*null,i8**%g,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 void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN5BinIO5inputE_420 to void(...)*),void(...)**%aq,align 8
%ar=getelementptr inbounds i8,i8*%ak,i64 16
%as=bitcast i8*%ar to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN5BinIO5inputE_420 to void(...)*),void(...)**%as,align 8
%at=getelementptr inbounds i8,i8*%ak,i64 24
%au=bitcast i8*%at to i32*
store i32 -2147483647,i32*%au,align 4
%av=call i8*@sml_alloc(i32 inreg 12)#0
%aw=getelementptr inbounds i8,i8*%av,i64 -4
%ax=bitcast i8*%aw to i32*
store i32 1342177288,i32*%ax,align 4
store i8*%av,i8**%g,align 8
%ay=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%az=bitcast i8*%av to i8**
store i8*%ay,i8**%az,align 8
%aA=getelementptr inbounds i8,i8*%av,i64 8
%aB=bitcast i8*%aA to i32*
store i32 1,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**%e,align 8
%aF=load i8*,i8**%g,align 8
store i8*null,i8**%g,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*)*@_SMLLLN5BinIO8inputAllE_425 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*)*@_SMLLLN5BinIO8inputAllE_425 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=call i8*@sml_alloc(i32 inreg 12)#0
%aO=getelementptr inbounds i8,i8*%aN,i64 -4
%aP=bitcast i8*%aO to i32*
store i32 1342177288,i32*%aP,align 4
store i8*%aN,i8**%g,align 8
%aQ=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aR=bitcast i8*%aN to i8**
store i8*%aQ,i8**%aR,align 8
%aS=getelementptr inbounds i8,i8*%aN,i64 8
%aT=bitcast i8*%aS to i32*
store i32 1,i32*%aT,align 4
%aU=call i8*@sml_alloc(i32 inreg 28)#0
%aV=getelementptr inbounds i8,i8*%aU,i64 -4
%aW=bitcast i8*%aV to i32*
store i32 1342177304,i32*%aW,align 4
%aX=load i8*,i8**%g,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 void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN5BinIO6openInE_463 to void(...)*),void(...)**%a0,align 8
%a1=getelementptr inbounds i8,i8*%aU,i64 16
%a2=bitcast i8*%a1 to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN5BinIO6openInE_463 to void(...)*),void(...)**%a2,align 8
%a3=getelementptr inbounds i8,i8*%aU,i64 24
%a4=bitcast i8*%a3 to i32*
store i32 -2147483647,i32*%a4,align 4
%a5=load i8*,i8**%d,align 8
call void@sml_write(i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,[5x i8*]}>,<{[4x i8],i32,[5x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i64 0,i32 2,i64 0)to i8*),i8**inreg getelementptr inbounds(<{[4x i8],i32,[5x i8*]}>,<{[4x i8],i32,[5x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i64 0,i32 2,i64 0),i8*inreg%a5)#0
%a6=load i8*,i8**%f,align 8
call void@sml_write(i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,[5x i8*]}>,<{[4x i8],i32,[5x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i64 0,i32 2,i64 0)to i8*),i8**inreg getelementptr inbounds(<{[4x i8],i32,[5x i8*]}>,<{[4x i8],i32,[5x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i64 0,i32 2,i64 1),i8*inreg%a6)#0
%a7=load i8*,i8**%c,align 8
call void@sml_write(i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,[5x i8*]}>,<{[4x i8],i32,[5x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i64 0,i32 2,i64 0)to i8*),i8**inreg getelementptr inbounds(<{[4x i8],i32,[5x i8*]}>,<{[4x i8],i32,[5x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i64 0,i32 2,i64 2),i8*inreg%a7)#0
%a8=load i8*,i8**%e,align 8
call void@sml_write(i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,[5x i8*]}>,<{[4x i8],i32,[5x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i64 0,i32 2,i64 0)to i8*),i8**inreg getelementptr inbounds(<{[4x i8],i32,[5x i8*]}>,<{[4x i8],i32,[5x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i64 0,i32 2,i64 3),i8*inreg%a8)#0
call void@sml_write(i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,[5x i8*]}>,<{[4x i8],i32,[5x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i64 0,i32 2,i64 0)to i8*),i8**inreg getelementptr inbounds(<{[4x i8],i32,[5x i8*]}>,<{[4x i8],i32,[5x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i64 0,i32 2,i64 4),i8*inreg%aU)#0
call void@sml_end()#0
ret void
a9:
%ba=landingpad{i8*,i8*}
cleanup
%bb=extractvalue{i8*,i8*}%ba,1
call void@sml_save_exn(i8*inreg%bb)#0
call void@sml_end()#0
resume{i8*,i8*}%ba
}
define internal fastcc void@_SMLLL226(i32 inreg%a)#4 gc"smlsharp"{
ret void
}
define internal fastcc i8*@_SMLLLN5BinIO8StreamIO12extendStreamE_234(i8*inreg%a)unnamed_addr#2 gc"smlsharp"personality i32(...)*@sml_personality{
p:
%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
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
store i8*%a,i8**%b,align 8
%j=load atomic i32,i32*@sml_check_flag unordered,align 4
%k=icmp eq i32%j,0
br i1%k,label%n,label%l
l:
call void@sml_check(i32 inreg%j)
%m=load i8*,i8**%b,align 8
br label%n
n:
%o=phi i8*[%m,%l],[%a,%p]
%q=bitcast i8*%o to i8**
%r=load i8*,i8**%q,align 8
store i8*%r,i8**%b,align 8
%s=getelementptr inbounds i8,i8*%o,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*%o,i64 16
%w=bitcast i8*%v to i8**
%x=load i8*,i8**%w,align 8
store i8*%x,i8**%d,align 8
%y=getelementptr inbounds i8,i8*%x,i64 16
%z=bitcast i8*%y to i8**
%A=load i8*,i8**%z,align 8
store i8*%A,i8**%e,align 8
%B=getelementptr inbounds i8,i8*%x,i64 24
%C=bitcast i8*%B to i8**
%D=load i8*,i8**%C,align 8
store i8*%D,i8**%f,align 8
%E=getelementptr inbounds i8,i8*%A,i64 16
%F=bitcast i8*%E to i8**
%G=load i8*,i8**%F,align 8
%H=getelementptr inbounds i8,i8*%A,i64 48
%I=bitcast i8*%H to i8**
%J=load i8*,i8**%I,align 8
store i8*%J,i8**%g,align 8
%K=getelementptr inbounds i8,i8*%G,i64 16
%L=bitcast i8*%K to i8*(i8*,i8*)**
%M=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%L,align 8
%N=bitcast i8*%G to i8**
%O=load i8*,i8**%N,align 8
store i8*%O,i8**%h,align 8
%P=call i8*@sml_alloc(i32 inreg 4)#0
%Q=bitcast i8*%P to i32*
%R=getelementptr inbounds i8,i8*%P,i64 -4
%S=bitcast i8*%R to i32*
store i32 4,i32*%S,align 4
store i32 0,i32*%Q,align 4
%T=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%U=invoke fastcc i8*%M(i8*inreg%T,i8*inreg%P)
to label%V unwind label%a6
V:
store i8*%U,i8**%h,align 8
%W=load i8*,i8**%b,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**%b,align 8
%ac=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%ad=getelementptr inbounds i8,i8*%ac,i64 16
%ae=bitcast i8*%ad to i8**
%af=load i8*,i8**%ae,align 8
%ag=getelementptr inbounds i8,i8*%af,i64 40
%ah=bitcast i8*%ag to i8**
%ai=load i8*,i8**%ah,align 8
%aj=getelementptr inbounds i8,i8*%ai,i64 24
%ak=bitcast i8*%aj to i32*
%al=load i32,i32*%ak,align 4
%am=call i8*@sml_alloc(i32 inreg 4)#0
%an=bitcast i8*%am to i32*
%ao=getelementptr inbounds i8,i8*%am,i64 -4
%ap=bitcast i8*%ao to i32*
store i32 4,i32*%ap,align 4
store i32%al,i32*%an,align 4
%aq=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%ar=invoke fastcc i8*%Z(i8*inreg%aq,i8*inreg%am)
to label%as unwind label%a6
as:
store i8*%ar,i8**%b,align 8
%at=call i8*@sml_alloc(i32 inreg 8)#0
%au=getelementptr inbounds i8,i8*%at,i64 -4
%av=bitcast i8*%au to i32*
store i32 805306376,i32*%av,align 4
store i8*%at,i8**%i,align 8
%aw=bitcast i8*%at to i64*
store i64 0,i64*%aw,align 1
%ax=bitcast i8*%at to i8**
call void@sml_write(i8*inreg%at,i8**inreg%ax,i8*inreg bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@N,i64 0,i32 2)to i8*))#0
%ay=call i8*@sml_alloc(i32 inreg 36)#0
%az=getelementptr inbounds i8,i8*%ay,i64 -4
%aA=bitcast i8*%az to i32*
store i32 1342177312,i32*%aA,align 4
store i8*%ay,i8**%d,align 8
%aB=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%aC=bitcast i8*%ay to i8**
store i8*%aB,i8**%aC,align 8
%aD=load i8*,i8**%b,align 8
%aE=getelementptr inbounds i8,i8*%ay,i64 8
%aF=bitcast i8*%aE to i8**
store i8*%aD,i8**%aF,align 8
%aG=load i8*,i8**%e,align 8
%aH=getelementptr inbounds i8,i8*%ay,i64 16
%aI=bitcast i8*%aH to i8**
store i8*%aG,i8**%aI,align 8
%aJ=load i8*,i8**%i,align 8
%aK=getelementptr inbounds i8,i8*%ay,i64 24
%aL=bitcast i8*%aK to i8**
store i8*%aJ,i8**%aL,align 8
%aM=getelementptr inbounds i8,i8*%ay,i64 32
%aN=bitcast i8*%aM to i32*
store i32 15,i32*%aN,align 4
store i8*null,i8**%b,align 8
%aO=invoke fastcc i32@_SMLFN11Word8Vector6lengthE(i8*inreg%aD)
to label%aP unwind label%a6
aP:
store i8*null,i8**%c,align 8
store i8*null,i8**%e,align 8
%aQ=icmp eq i32%aO,0
%aR=call i8*@sml_alloc(i32 inreg 20)#0
%aS=bitcast i8*%aR to i32*
%aT=getelementptr inbounds i8,i8*%aR,i64 -4
%aU=bitcast i8*%aT to i32*
store i32 1342177296,i32*%aU,align 4
call void@llvm.memset.p0i8.i32(i8*%aR,i8 0,i32 20,i1 false)
%aV=select i1%aQ,i32 0,i32 1
store i32%aV,i32*%aS,align 4
%aW=load i8*,i8**%d,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 2,i32*%a0,align 4
%a1=load i8*,i8**%f,align 8
%a2=bitcast i8*%a1 to i8**
call void@sml_write(i8*inreg%a1,i8**inreg%a2,i8*inreg%aR)#0
%a3=load i8*,i8**%g,align 8
%a4=load i8*,i8**%i,align 8
%a5=bitcast i8*%a3 to i8**
call void@sml_write(i8*inreg%a3,i8**inreg%a5,i8*inreg%a4)#0
ret i8*%aR
a6:
%a7=landingpad{i8*,i8*}
catch i8*null
%a8=extractvalue{i8*,i8*}%a7,1
%a9=bitcast i8*%a8 to i8**
%ba=load i8*,i8**%a9,align 8
store i8*null,i8**%g,align 8
store i8*null,i8**%h,align 8
store i8*null,i8**%i,align 8
store i8*%ba,i8**%f,align 8
%bb=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%bb,i8**%b,align 8
%bc=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%bd=getelementptr inbounds i8,i8*%bc,i64 40
%be=bitcast i8*%bd to i8**
%bf=load i8*,i8**%be,align 8
%bg=getelementptr inbounds i8,i8*%bf,i64 64
%bh=bitcast i8*%bg to i8**
%bi=load i8*,i8**%bh,align 8
store i8*%bi,i8**%d,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
store i8*%bj,i8**%e,align 8
%bm=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%bn=bitcast i8*%bj to i8**
store i8*%bm,i8**%bn,align 8
%bo=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bp=getelementptr inbounds i8,i8*%bj,i64 8
%bq=bitcast i8*%bp to i8**
store i8*%bo,i8**%bq,align 8
%br=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%bs=getelementptr inbounds i8,i8*%bj,i64 16
%bt=bitcast i8*%bs to i8**
store i8*%br,i8**%bt,align 8
%bu=getelementptr inbounds i8,i8*%bj,i64 24
%bv=bitcast i8*%bu to i32*
store i32 7,i32*%bv,align 4
%bw=call i8*@sml_alloc(i32 inreg 28)#0
%bx=getelementptr inbounds i8,i8*%bw,i64 -4
%by=bitcast i8*%bx to i32*
store i32 1342177304,i32*%by,align 4
store i8*%bw,i8**%c,align 8
%bz=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%bA=bitcast i8*%bw to i8**
store i8*%bz,i8**%bA,align 8
%bB=getelementptr inbounds i8,i8*%bw,i64 8
%bC=bitcast i8*%bB to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@T,i64 0,i32 2,i64 0),i8**%bC,align 8
%bD=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%bE=getelementptr inbounds i8,i8*%bw,i64 16
%bF=bitcast i8*%bE to i8**
store i8*%bD,i8**%bF,align 8
%bG=getelementptr inbounds i8,i8*%bw,i64 24
%bH=bitcast i8*%bG to i32*
store i32 7,i32*%bH,align 4
%bI=call i8*@sml_alloc(i32 inreg 60)#0
%bJ=getelementptr inbounds i8,i8*%bI,i64 -4
%bK=bitcast i8*%bJ to i32*
store i32 1342177336,i32*%bK,align 4
%bL=getelementptr inbounds i8,i8*%bI,i64 56
%bM=bitcast i8*%bL to i32*
store i32 1,i32*%bM,align 4
%bN=load i8*,i8**%c,align 8
%bO=bitcast i8*%bI to i8**
store i8*%bN,i8**%bO,align 8
call void@sml_raise(i8*inreg%bI)#1
unreachable
}
define internal fastcc i8*@_SMLLL3get_239(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
%f=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
store i8*%a,i8**%f,align 8
%g=bitcast i8**%c to i8***
br label%h
h:
%i=phi i8*[%bU,%bQ],[%b,%j]
store i8*%i,i8**%c,align 8
%k=load atomic i32,i32*@sml_check_flag unordered,align 4
%l=icmp eq i32%k,0
%m=bitcast i8*%i to i8**
br i1%l,label%q,label%n
n:
call void@sml_check(i32 inreg%k)
%o=load i8**,i8***%g,align 8
%p=bitcast i8**%o to i8*
br label%q
q:
%r=phi i8*[%p,%n],[%i,%h]
%s=phi i8**[%o,%n],[%m,%h]
%t=load i8*,i8**%s,align 8
store i8*%t,i8**%d,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
store i8*null,i8**%c,align 8
%x=getelementptr inbounds i8,i8*%r,i64 8
%y=bitcast i8*%x to i32*
%z=load i32,i32*%y,align 4
%A=call fastcc i32@_SMLFN11Word8Vector6lengthE(i8*inreg%w)
%B=icmp slt i32%z,%A
br i1%B,label%C,label%an
C:
store i8*null,i8**%f,align 8
%D=call i8*@sml_alloc(i32 inreg 28)#0
%E=getelementptr inbounds i8,i8*%D,i64 -4
%F=bitcast i8*%E to i32*
store i32 1342177304,i32*%F,align 4
%G=getelementptr inbounds i8,i8*%D,i64 12
%H=bitcast i8*%G to i32*
store i32 0,i32*%H,align 1
%I=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%J=bitcast i8*%D to i8**
store i8*%I,i8**%J,align 8
%K=getelementptr inbounds i8,i8*%D,i64 8
%L=bitcast i8*%K to i32*
store i32%z,i32*%L,align 4
%M=getelementptr inbounds i8,i8*%D,i64 16
%N=bitcast i8*%M to i8**
store i8*null,i8**%N,align 8
%O=getelementptr inbounds i8,i8*%D,i64 24
%P=bitcast i8*%O to i32*
store i32 5,i32*%P,align 4
%Q=call fastcc i8*@_SMLFN16Word8VectorSlice5sliceE(i8*inreg%D)
%R=call fastcc i8*@_SMLFN16Word8VectorSlice6vectorE(i8*inreg%Q)
store i8*%R,i8**%c,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
store i8*%S,i8**%e,align 8
%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**%d,align 8
%Y=bitcast i8*%S to i8**
store i8*null,i8**%d,align 8
store i8*%X,i8**%Y,align 8
%Z=getelementptr inbounds i8,i8*%S,i64 8
%aa=bitcast i8*%Z to i32*
store i32%A,i32*%aa,align 4
%ab=getelementptr inbounds i8,i8*%S,i64 16
%ac=bitcast i8*%ab to i32*
store i32 1,i32*%ac,align 4
%ad=call i8*@sml_alloc(i32 inreg 20)#0
%ae=getelementptr inbounds i8,i8*%ad,i64 -4
%af=bitcast i8*%ae to i32*
store i32 1342177296,i32*%af,align 4
%ag=load i8*,i8**%c,align 8
%ah=bitcast i8*%ad to i8**
store i8*%ag,i8**%ah,align 8
%ai=load i8*,i8**%e,align 8
%aj=getelementptr inbounds i8,i8*%ad,i64 8
%ak=bitcast i8*%aj to i8**
store i8*%ai,i8**%ak,align 8
%al=getelementptr inbounds i8,i8*%ad,i64 16
%am=bitcast i8*%al to i32*
store i32 3,i32*%am,align 4
ret i8*%ad
an:
store i8*null,i8**%e,align 8
%ao=load i8*,i8**%d,align 8
%ap=getelementptr inbounds i8,i8*%ao,i64 24
%aq=bitcast i8*%ap to i8***
%ar=load i8**,i8***%aq,align 8
%as=load i8*,i8**%ar,align 8
%at=bitcast i8*%as to i32*
%au=load i32,i32*%at,align 4
switch i32%au,label%av[
i32 2,label%aH
i32 3,label%aw
]
av:
store i8*null,i8**%d,align 8
br label%a0
aw:
%ax=call i8*@sml_alloc(i32 inreg 20)#0
%ay=bitcast i8*%ax to i32*
%az=getelementptr inbounds i8,i8*%ax,i64 -4
%aA=bitcast i8*%az to i32*
store i32 1342177296,i32*%aA,align 4
%aB=bitcast i8*%ax to i64*
store i64 0,i64*%aB,align 4
%aC=load i8*,i8**%d,align 8
store i8*null,i8**%d,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 2,i32*%aG,align 4
br label%a0
aH:
%aI=load i8*,i8**%f,align 8
%aJ=getelementptr inbounds i8,i8*%aI,i64 8
%aK=bitcast i8*%aJ to i8**
%aL=load i8*,i8**%aK,align 8
store i8*%aL,i8**%c,align 8
%aM=call i8*@sml_alloc(i32 inreg 28)#0
%aN=getelementptr inbounds i8,i8*%aM,i64 -4
%aO=bitcast i8*%aN to i32*
store i32 1342177304,i32*%aO,align 4
%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=getelementptr inbounds i8,i8*%aM,i64 8
%aS=bitcast i8*%aR to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[6x i8]}>,<{[4x i8],i32,[6x i8]}>*@d,i64 0,i32 2,i64 0),i8**%aS,align 8
%aT=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aU=getelementptr inbounds i8,i8*%aM,i64 16
%aV=bitcast i8*%aU to i8**
store i8*%aT,i8**%aV,align 8
%aW=getelementptr inbounds i8,i8*%aM,i64 24
%aX=bitcast i8*%aW to i32*
store i32 7,i32*%aX,align 4
%aY=call fastcc i8*@_SMLLLN5BinIO8StreamIO12extendStreamE_234(i8*inreg%aM)
%aZ=bitcast i8*%aY to i32*
br label%a0
a0:
%a1=phi i32*[%aZ,%aH],[%ay,%aw],[%at,%av]
%a2=phi i8*[%aY,%aH],[%ax,%aw],[%as,%av]
%a3=load i32,i32*%a1,align 4
switch i32%a3,label%a4[
i32 1,label%bQ
i32 0,label%bo
]
a4:
store i8*null,i8**%f,align 8
%a5=load i8*,i8**@_SMLZ4Fail,align 8
store i8*%a5,i8**%c,align 8
%a6=call i8*@sml_alloc(i32 inreg 28)#0
%a7=getelementptr inbounds i8,i8*%a6,i64 -4
%a8=bitcast i8*%a7 to i32*
store i32 1342177304,i32*%a8,align 4
store i8*%a6,i8**%d,align 8
%a9=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ba=bitcast i8*%a6 to i8**
store i8*%a9,i8**%ba,align 8
%bb=getelementptr inbounds i8,i8*%a6,i64 8
%bc=bitcast i8*%bb to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@s,i64 0,i32 2,i64 0),i8**%bc,align 8
%bd=getelementptr inbounds i8,i8*%a6,i64 16
%be=bitcast i8*%bd to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[13x i8]}>,<{[4x i8],i32,[13x i8]}>*@t,i64 0,i32 2,i64 0),i8**%be,align 8
%bf=getelementptr inbounds i8,i8*%a6,i64 24
%bg=bitcast i8*%bf to i32*
store i32 7,i32*%bg,align 4
%bh=call i8*@sml_alloc(i32 inreg 60)#0
%bi=getelementptr inbounds i8,i8*%bh,i64 -4
%bj=bitcast i8*%bi to i32*
store i32 1342177336,i32*%bj,align 4
%bk=getelementptr inbounds i8,i8*%bh,i64 56
%bl=bitcast i8*%bk to i32*
store i32 1,i32*%bl,align 4
%bm=load i8*,i8**%d,align 8
%bn=bitcast i8*%bh to i8**
store i8*%bm,i8**%bn,align 8
call void@sml_raise(i8*inreg%bh)#1
unreachable
bo:
%bp=bitcast i8**%f to i8***
%bq=load i8**,i8***%bp,align 8
store i8*null,i8**%f,align 8
%br=load i8*,i8**%bq,align 8
store i8*%br,i8**%c,align 8
%bs=getelementptr inbounds i8,i8*%a2,i64 8
%bt=bitcast i8*%bs to i8**
%bu=load i8*,i8**%bt,align 8
store i8*%bu,i8**%d,align 8
%bv=call i8*@sml_alloc(i32 inreg 20)#0
%bw=getelementptr inbounds i8,i8*%bv,i64 -4
%bx=bitcast i8*%bw to i32*
store i32 1342177296,i32*%bx,align 4
store i8*%bv,i8**%e,align 8
%by=getelementptr inbounds i8,i8*%bv,i64 12
%bz=bitcast i8*%by to i32*
store i32 0,i32*%bz,align 1
%bA=load i8*,i8**%d,align 8
%bB=bitcast i8*%bv to i8**
store i8*null,i8**%d,align 8
store i8*%bA,i8**%bB,align 8
%bC=getelementptr inbounds i8,i8*%bv,i64 8
%bD=bitcast i8*%bC to i32*
store i32 0,i32*%bD,align 4
%bE=getelementptr inbounds i8,i8*%bv,i64 16
%bF=bitcast i8*%bE to i32*
store i32 1,i32*%bF,align 4
%bG=call i8*@sml_alloc(i32 inreg 20)#0
%bH=getelementptr inbounds i8,i8*%bG,i64 -4
%bI=bitcast i8*%bH to i32*
store i32 1342177296,i32*%bI,align 4
%bJ=load i8*,i8**%c,align 8
%bK=bitcast i8*%bG to i8**
store i8*%bJ,i8**%bK,align 8
%bL=load i8*,i8**%e,align 8
%bM=getelementptr inbounds i8,i8*%bG,i64 8
%bN=bitcast i8*%bM to i8**
store i8*%bL,i8**%bN,align 8
%bO=getelementptr inbounds i8,i8*%bG,i64 16
%bP=bitcast i8*%bO to i32*
store i32 3,i32*%bP,align 4
ret i8*%bG
bQ:
%bR=getelementptr inbounds i8,i8*%a2,i64 8
%bS=bitcast i8*%bR to i8**
%bT=load i8*,i8**%bS,align 8
store i8*%bT,i8**%c,align 8
%bU=call i8*@sml_alloc(i32 inreg 20)#0
%bV=getelementptr inbounds i8,i8*%bU,i64 -4
%bW=bitcast i8*%bV to i32*
store i32 1342177296,i32*%bW,align 4
%bX=getelementptr inbounds i8,i8*%bU,i64 12
%bY=bitcast i8*%bX to i32*
store i32 0,i32*%bY,align 1
%bZ=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%b0=bitcast i8*%bU to i8**
store i8*%bZ,i8**%b0,align 8
%b1=getelementptr inbounds i8,i8*%bU,i64 8
%b2=bitcast i8*%b1 to i32*
store i32 0,i32*%b2,align 4
%b3=getelementptr inbounds i8,i8*%bU,i64 16
%b4=bitcast i8*%b3 to i32*
store i32 1,i32*%b4,align 4
br label%h
}
define internal fastcc i8*@_SMLLLN5BinIO8StreamIO5inputE_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
%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%i,label%l
i:
%j=bitcast i8*%a to i8**
%k=bitcast i8*%b to i8**
br label%q
l:
call void@sml_check(i32 inreg%g)
%m=bitcast i8**%c to i8***
%n=load i8**,i8***%m,align 8
%o=bitcast i8**%e to i8***
%p=load i8**,i8***%o,align 8
br label%q
q:
%r=phi i8**[%p,%l],[%j,%i]
%s=phi i8**[%n,%l],[%k,%i]
%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 24
%y=bitcast i8*%x to i8**
%z=load i8*,i8**%y,align 8
store i8*%z,i8**%d,align 8
%A=load i8*,i8**%r,align 8
store i8*%A,i8**%e,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**%f,align 8
%E=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%F=bitcast i8*%B to i8**
store i8*%E,i8**%F,align 8
%G=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%H=getelementptr inbounds i8,i8*%B,i64 8
%I=bitcast i8*%H to i8**
store i8*%G,i8**%I,align 8
%J=getelementptr inbounds i8,i8*%B,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**%f,align 8
%P=bitcast i8*%L to i8**
store i8*%O,i8**%P,align 8
%Q=getelementptr inbounds i8,i8*%L,i64 8
%R=bitcast i8*%Q to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLL3get_239 to void(...)*),void(...)**%R,align 8
%S=getelementptr inbounds i8,i8*%L,i64 16
%T=bitcast i8*%S to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLL3get_239 to void(...)*),void(...)**%T,align 8
%U=getelementptr inbounds i8,i8*%L,i64 24
%V=bitcast i8*%U to i32*
store i32 -2147483647,i32*%V,align 4
%W=load i8*,i8**%c,align 8
%X=tail call fastcc i8*@_SMLLL3get_239(i8*inreg%O,i8*inreg%W)
ret i8*%X
}
define fastcc i8*@_SMLFN5BinIO8StreamIO6input1E(i8*inreg%a)#2 gc"smlsharp"{
i:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
%e=bitcast i8**%b to i8***
%f=bitcast i8**%d to i8***
br label%g
g:
%h=phi i8*[%bn,%bm],[%a,%i]
store i8*%h,i8**%b,align 8
%j=load atomic i32,i32*@sml_check_flag unordered,align 4
%k=icmp eq i32%j,0
%l=bitcast i8*%h to i8**
br i1%k,label%o,label%m
m:
call void@sml_check(i32 inreg%j)
%n=load i8**,i8***%e,align 8
br label%o
o:
%p=phi i8**[%n,%m],[%l,%g]
%q=load i8*,i8**%p,align 8
store i8*%q,i8**%c,align 8
%r=getelementptr inbounds i8*,i8**%p,i64 1
%s=bitcast i8**%r to i32*
%t=load i32,i32*%s,align 4
%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**%b,align 8
%x=getelementptr inbounds i8,i8*%q,i64 24
%y=bitcast i8*%x to i8**
%z=load i8*,i8**%y,align 8
store i8*%z,i8**%d,align 8
%A=call fastcc i32@_SMLFN11Word8Vector6lengthE(i8*inreg%w)
%B=icmp slt i32%t,%A
br i1%B,label%C,label%ar
C:
store i8*null,i8**%d,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
%G=getelementptr inbounds i8,i8*%D,i64 12
%H=bitcast i8*%G to i32*
store i32 0,i32*%H,align 1
%I=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%J=bitcast i8*%D to i8**
store i8*%I,i8**%J,align 8
%K=getelementptr inbounds i8,i8*%D,i64 8
%L=bitcast i8*%K to i32*
store i32%t,i32*%L,align 4
%M=getelementptr inbounds i8,i8*%D,i64 16
%N=bitcast i8*%M to i32*
store i32 1,i32*%N,align 4
%O=call fastcc i8@_SMLFN11Word8Vector3subE(i8*inreg%D)
%P=add nsw i32%t,1
%Q=call i8*@sml_alloc(i32 inreg 20)#0
%R=getelementptr inbounds i8,i8*%Q,i64 -4
%S=bitcast i8*%R to i32*
store i32 1342177296,i32*%S,align 4
store i8*%Q,i8**%d,align 8
%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**%c,align 8
%W=bitcast i8*%Q to i8**
store i8*null,i8**%c,align 8
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=call i8*@sml_alloc(i32 inreg 20)#0
%ac=getelementptr inbounds i8,i8*%ab,i64 -4
%ad=bitcast i8*%ac to i32*
store i32 1342177296,i32*%ad,align 4
store i8*%ab,i8**%b,align 8
%ae=getelementptr inbounds i8,i8*%ab,i64 1
call void@llvm.memset.p0i8.i32(i8*%ae,i8 0,i32 7,i1 false)
store i8%O,i8*%ab,align 1
%af=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%ag=getelementptr inbounds i8,i8*%ab,i64 8
%ah=bitcast i8*%ag to i8**
store i8*%af,i8**%ah,align 8
%ai=getelementptr inbounds i8,i8*%ab,i64 16
%aj=bitcast i8*%ai to i32*
store i32 2,i32*%aj,align 4
%ak=call i8*@sml_alloc(i32 inreg 12)#0
%al=getelementptr inbounds i8,i8*%ak,i64 -4
%am=bitcast i8*%al to i32*
store i32 1342177288,i32*%am,align 4
%an=load i8*,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 i32*
store i32 1,i32*%aq,align 4
ret i8*%ak
ar:
%as=load i8**,i8***%f,align 8
store i8*null,i8**%d,align 8
%at=load i8*,i8**%as,align 8
%au=bitcast i8*%at to i32*
%av=load i32,i32*%au,align 4
switch i32%av,label%aw[
i32 1,label%bu
i32 0,label%aO
i32 2,label%aP
i32 3,label%aO
]
aw:
store i8*null,i8**%c,align 8
call void@sml_matchcomp_bug()
%ax=load i8*,i8**@_SMLZ5Match,align 8
store i8*%ax,i8**%b,align 8
%ay=call i8*@sml_alloc(i32 inreg 20)#0
%az=getelementptr inbounds i8,i8*%ay,i64 -4
%aA=bitcast i8*%az to i32*
store i32 1342177296,i32*%aA,align 4
store i8*%ay,i8**%c,align 8
%aB=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aC=bitcast i8*%ay to i8**
store i8*%aB,i8**%aC,align 8
%aD=getelementptr inbounds i8,i8*%ay,i64 8
%aE=bitcast i8*%aD to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@f,i64 0,i32 2,i64 0),i8**%aE,align 8
%aF=getelementptr inbounds i8,i8*%ay,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**%c,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:
ret i8*null
aP:
%aQ=load i8*,i8**%c,align 8
%aR=getelementptr inbounds i8,i8*%aQ,i64 16
%aS=bitcast i8*%aR to i8**
%aT=load i8*,i8**%aS,align 8
%aU=getelementptr inbounds i8,i8*%aT,i64 24
%aV=bitcast i8*%aU to i8**
%aW=load i8*,i8**%aV,align 8
store i8*%aW,i8**%b,align 8
%aX=call i8*@sml_alloc(i32 inreg 28)#0
%aY=getelementptr inbounds i8,i8*%aX,i64 -4
%aZ=bitcast i8*%aY to i32*
store i32 1342177304,i32*%aZ,align 4
%a0=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%a1=bitcast i8*%aX to i8**
store i8*%a0,i8**%a1,align 8
%a2=getelementptr inbounds i8,i8*%aX,i64 8
%a3=bitcast i8*%a2 to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[7x i8]}>,<{[4x i8],i32,[7x i8]}>*@e,i64 0,i32 2,i64 0),i8**%a3,align 8
%a4=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%a5=getelementptr inbounds i8,i8*%aX,i64 16
%a6=bitcast i8*%a5 to i8**
store i8*%a4,i8**%a6,align 8
%a7=getelementptr inbounds i8,i8*%aX,i64 24
%a8=bitcast i8*%a7 to i32*
store i32 7,i32*%a8,align 4
%a9=call fastcc i8*@_SMLLLN5BinIO8StreamIO12extendStreamE_234(i8*inreg%aX)
%ba=bitcast i8*%a9 to i32*
%bb=load i32,i32*%ba,align 4
%bc=icmp eq i32%bb,1
br i1%bc,label%bd,label%aO
bd:
%be=getelementptr inbounds i8,i8*%a9,i64 8
%bf=bitcast i8*%be to i8**
%bg=load i8*,i8**%bf,align 8
store i8*%bg,i8**%b,align 8
%bh=call i8*@sml_alloc(i32 inreg 20)#0
%bi=getelementptr inbounds i8,i8*%bh,i64 -4
%bj=bitcast i8*%bi to i32*
store i32 1342177296,i32*%bj,align 4
%bk=getelementptr inbounds i8,i8*%bh,i64 12
%bl=bitcast i8*%bk to i32*
store i32 0,i32*%bl,align 1
br label%bm
bm:
%bn=phi i8*[%bh,%bd],[%by,%bu]
%bo=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%bp=bitcast i8*%bn to i8**
store i8*%bo,i8**%bp,align 8
%bq=getelementptr inbounds i8,i8*%bn,i64 8
%br=bitcast i8*%bq to i32*
store i32 0,i32*%br,align 4
%bs=getelementptr inbounds i8,i8*%bn,i64 16
%bt=bitcast i8*%bs to i32*
store i32 1,i32*%bt,align 4
br label%g
bu:
store i8*null,i8**%c,align 8
%bv=getelementptr inbounds i8,i8*%at,i64 8
%bw=bitcast i8*%bv to i8**
%bx=load i8*,i8**%bw,align 8
store i8*%bx,i8**%b,align 8
%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=getelementptr inbounds i8,i8*%by,i64 12
%bC=bitcast i8*%bB to i32*
store i32 0,i32*%bC,align 1
br label%bm
}
define internal fastcc i8*@_SMLLL9inputList_246(i8*inreg%a)unnamed_addr#2 gc"smlsharp"{
l:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%b,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%j,label%h
h:
call void@sml_check(i32 inreg%f)
%i=load i8*,i8**%b,align 8
br label%j
j:
%k=phi i8*[%i,%h],[%a,%l]
%m=bitcast i8*%k to i8**
%n=load i8*,i8**%m,align 8
store i8*%n,i8**%b,align 8
%o=getelementptr inbounds i8,i8*%n,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*%k,i64 8
%s=bitcast i8*%r to i32*
%t=load i32,i32*%s,align 4
%u=getelementptr inbounds i8,i8*%k,i64 12
%v=bitcast i8*%u to i32*
%w=load i32,i32*%v,align 4
%x=call fastcc i32@_SMLFN11Word8Vector6lengthE(i8*inreg%q)
%y=call{i32,i1}@llvm.ssub.with.overflow.i32(i32%x,i32%t)#0
%z=extractvalue{i32,i1}%y,1
br i1%z,label%A,label%S
A:
store i8*null,i8**%c,align 8
%B=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%B,i8**%b,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**%c,align 8
%F=load i8*,i8**%b,align 8
store i8*null,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 i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@h,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 60)#0
%M=getelementptr inbounds i8,i8*%L,i64 -4
%N=bitcast i8*%M to i32*
store i32 1342177336,i32*%N,align 4
%O=getelementptr inbounds i8,i8*%L,i64 56
%P=bitcast i8*%O to i32*
store i32 1,i32*%P,align 4
%Q=load i8*,i8**%c,align 8
%R=bitcast i8*%L to i8**
store i8*%Q,i8**%R,align 8
call void@sml_raise(i8*inreg%L)#1
unreachable
S:
%T=sub nsw i32%x,%t
%U=icmp sgt i32%w,%T
br i1%U,label%bk,label%V
V:
%W=call i8*@sml_alloc(i32 inreg 12)#0
%X=getelementptr inbounds i8,i8*%W,i64 -4
%Y=bitcast i8*%X to i32*
store i32 1342177288,i32*%Y,align 4
store i8*%W,i8**%d,align 8
%Z=getelementptr inbounds i8,i8*%W,i64 4
%aa=bitcast i8*%Z to i32*
store i32 0,i32*%aa,align 1
%ab=bitcast i8*%W to i32*
store i32%w,i32*%ab,align 4
%ac=getelementptr inbounds i8,i8*%W,i64 8
%ad=bitcast i8*%ac to i32*
store i32 0,i32*%ad,align 4
%ae=call i8*@sml_alloc(i32 inreg 28)#0
%af=getelementptr inbounds i8,i8*%ae,i64 -4
%ag=bitcast i8*%af to i32*
store i32 1342177304,i32*%ag,align 4
%ah=getelementptr inbounds i8,i8*%ae,i64 12
%ai=bitcast i8*%ah to i32*
store i32 0,i32*%ai,align 1
%aj=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ak=bitcast i8*%ae to i8**
store i8*%aj,i8**%ak,align 8
%al=getelementptr inbounds i8,i8*%ae,i64 8
%am=bitcast i8*%al to i32*
store i32%t,i32*%am,align 4
%an=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%ao=getelementptr inbounds i8,i8*%ae,i64 16
%ap=bitcast i8*%ao to i8**
store i8*%an,i8**%ap,align 8
%aq=getelementptr inbounds i8,i8*%ae,i64 24
%ar=bitcast i8*%aq to i32*
store i32 5,i32*%ar,align 4
%as=call fastcc i8*@_SMLFN16Word8VectorSlice5sliceE(i8*inreg%ae)
%at=call fastcc i8*@_SMLFN16Word8VectorSlice6vectorE(i8*inreg%as)
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
%aA=bitcast i8*%az to i8**
store i8*null,i8**%aA,align 8
%aB=getelementptr inbounds i8,i8*%au,i64 16
%aC=bitcast i8*%aB to i32*
store i32 3,i32*%aC,align 4
%aD=call{i32,i1}@llvm.sadd.with.overflow.i32(i32%t,i32%w)#0
%aE=extractvalue{i32,i1}%aD,1
br i1%aE,label%aF,label%aX
aF:
store i8*null,i8**%d,align 8
%aG=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%aG,i8**%b,align 8
%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
store i8*%aH,i8**%c,align 8
%aK=load i8*,i8**%b,align 8
store i8*null,i8**%b,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]}>*@l,i64 0,i32 2,i64 0),i8**%aN,align 8
%aO=getelementptr inbounds i8,i8*%aH,i64 16
%aP=bitcast i8*%aO to i32*
store i32 3,i32*%aP,align 4
%aQ=call i8*@sml_alloc(i32 inreg 60)#0
%aR=getelementptr inbounds i8,i8*%aQ,i64 -4
%aS=bitcast i8*%aR to i32*
store i32 1342177336,i32*%aS,align 4
%aT=getelementptr inbounds i8,i8*%aQ,i64 56
%aU=bitcast i8*%aT to i32*
store i32 1,i32*%aU,align 4
%aV=load i8*,i8**%c,align 8
%aW=bitcast i8*%aQ to i8**
store i8*%aV,i8**%aW,align 8
call void@sml_raise(i8*inreg%aQ)#1
unreachable
aX:
%aY=add nsw i32%w,%t
%aZ=call i8*@sml_alloc(i32 inreg 20)#0
%a0=getelementptr inbounds i8,i8*%aZ,i64 -4
%a1=bitcast i8*%a0 to i32*
store i32 1342177296,i32*%a1,align 4
store i8*%aZ,i8**%c,align 8
%a2=getelementptr inbounds i8,i8*%aZ,i64 12
%a3=bitcast i8*%a2 to i32*
store i32 0,i32*%a3,align 1
%a4=load i8*,i8**%b,align 8
%a5=bitcast i8*%aZ to i8**
store i8*null,i8**%b,align 8
store i8*%a4,i8**%a5,align 8
%a6=getelementptr inbounds i8,i8*%aZ,i64 8
%a7=bitcast i8*%a6 to i32*
store i32%aY,i32*%a7,align 4
%a8=getelementptr inbounds i8,i8*%aZ,i64 16
%a9=bitcast i8*%a8 to i32*
store i32 1,i32*%a9,align 4
%ba=call i8*@sml_alloc(i32 inreg 20)#0
%bb=getelementptr inbounds i8,i8*%ba,i64 -4
%bc=bitcast i8*%bb to i32*
store i32 1342177296,i32*%bc,align 4
%bd=load i8*,i8**%d,align 8
%be=bitcast i8*%ba to i8**
store i8*%bd,i8**%be,align 8
%bf=load i8*,i8**%c,align 8
%bg=getelementptr inbounds i8,i8*%ba,i64 8
%bh=bitcast i8*%bg to i8**
store i8*%bf,i8**%bh,align 8
%bi=getelementptr inbounds i8,i8*%ba,i64 16
%bj=bitcast i8*%bi to i32*
store i32 3,i32*%bj,align 4
ret i8*%ba
bk:
%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=getelementptr inbounds i8,i8*%bl,i64 12
%bp=bitcast i8*%bo to i32*
store i32 0,i32*%bp,align 1
%bq=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%br=bitcast i8*%bl to i8**
store i8*%bq,i8**%br,align 8
%bs=getelementptr inbounds i8,i8*%bl,i64 8
%bt=bitcast i8*%bs to i32*
store i32%t,i32*%bt,align 4
%bu=getelementptr inbounds i8,i8*%bl,i64 16
%bv=bitcast i8*%bu to i8**
store i8*null,i8**%bv,align 8
%bw=getelementptr inbounds i8,i8*%bl,i64 24
%bx=bitcast i8*%bw to i32*
store i32 5,i32*%bx,align 4
%by=call fastcc i8*@_SMLFN16Word8VectorSlice5sliceE(i8*inreg%bl)
%bz=call fastcc i8*@_SMLFN16Word8VectorSlice6vectorE(i8*inreg%by)
store i8*%bz,i8**%c,align 8
%bA=call{i32,i1}@llvm.ssub.with.overflow.i32(i32%w,i32%T)#0
%bB=extractvalue{i32,i1}%bA,1
br i1%bB,label%bC,label%bU
bC:
store i8*null,i8**%c,align 8
%bD=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%bD,i8**%b,align 8
%bE=call i8*@sml_alloc(i32 inreg 20)#0
%bF=getelementptr inbounds i8,i8*%bE,i64 -4
%bG=bitcast i8*%bF to i32*
store i32 1342177296,i32*%bG,align 4
store i8*%bE,i8**%c,align 8
%bH=load i8*,i8**%b,align 8
store i8*null,i8**%b,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 i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@i,i64 0,i32 2,i64 0),i8**%bK,align 8
%bL=getelementptr inbounds i8,i8*%bE,i64 16
%bM=bitcast i8*%bL to i32*
store i32 3,i32*%bM,align 4
%bN=call i8*@sml_alloc(i32 inreg 60)#0
%bO=getelementptr inbounds i8,i8*%bN,i64 -4
%bP=bitcast i8*%bO to i32*
store i32 1342177336,i32*%bP,align 4
%bQ=getelementptr inbounds i8,i8*%bN,i64 56
%bR=bitcast i8*%bQ to i32*
store i32 1,i32*%bR,align 4
%bS=load i8*,i8**%c,align 8
%bT=bitcast i8*%bN to i8**
store i8*%bS,i8**%bT,align 8
call void@sml_raise(i8*inreg%bN)#1
unreachable
bU:
%bV=sub nsw i32%w,%T
%bW=load i8*,i8**%b,align 8
%bX=getelementptr inbounds i8,i8*%bW,i64 8
%bY=bitcast i8*%bX to i8**
%bZ=load i8*,i8**%bY,align 8
store i8*%bZ,i8**%d,align 8
%b0=getelementptr inbounds i8,i8*%bW,i64 24
%b1=bitcast i8*%b0 to i8***
%b2=load i8**,i8***%b1,align 8
%b3=load i8*,i8**%b2,align 8
%b4=bitcast i8*%b3 to i32*
%b5=load i32,i32*%b4,align 4
switch i32%b5,label%b6[
i32 1,label%d8
i32 0,label%dK
i32 2,label%cK
i32 3,label%co
]
b6:
store i8*null,i8**%c,align 8
store i8*null,i8**%d,align 8
call void@sml_matchcomp_bug()
%b7=load i8*,i8**@_SMLZ5Match,align 8
store i8*%b7,i8**%b,align 8
%b8=call i8*@sml_alloc(i32 inreg 20)#0
%b9=getelementptr inbounds i8,i8*%b8,i64 -4
%ca=bitcast i8*%b9 to i32*
store i32 1342177296,i32*%ca,align 4
store i8*%b8,i8**%c,align 8
%cb=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%cc=bitcast i8*%b8 to i8**
store i8*%cb,i8**%cc,align 8
%cd=getelementptr inbounds i8,i8*%b8,i64 8
%ce=bitcast i8*%cd to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@k,i64 0,i32 2,i64 0),i8**%ce,align 8
%cf=getelementptr inbounds i8,i8*%b8,i64 16
%cg=bitcast i8*%cf to i32*
store i32 3,i32*%cg,align 4
%ch=call i8*@sml_alloc(i32 inreg 60)#0
%ci=getelementptr inbounds i8,i8*%ch,i64 -4
%cj=bitcast i8*%ci to i32*
store i32 1342177336,i32*%cj,align 4
%ck=getelementptr inbounds i8,i8*%ch,i64 56
%cl=bitcast i8*%ck to i32*
store i32 1,i32*%cl,align 4
%cm=load i8*,i8**%c,align 8
%cn=bitcast i8*%ch to i8**
store i8*%cm,i8**%cn,align 8
call void@sml_raise(i8*inreg%ch)#1
unreachable
co:
store i8*null,i8**%d,align 8
%cp=call fastcc i32@_SMLFN11Word8Vector6lengthE(i8*inreg%bZ)
%cq=call i8*@sml_alloc(i32 inreg 20)#0
%cr=getelementptr inbounds i8,i8*%cq,i64 -4
%cs=bitcast i8*%cr to i32*
store i32 1342177296,i32*%cs,align 4
store i8*%cq,i8**%d,align 8
%ct=getelementptr inbounds i8,i8*%cq,i64 12
%cu=bitcast i8*%ct to i32*
store i32 0,i32*%cu,align 1
%cv=load i8*,i8**%b,align 8
%cw=bitcast i8*%cq to i8**
store i8*null,i8**%b,align 8
store i8*%cv,i8**%cw,align 8
%cx=getelementptr inbounds i8,i8*%cq,i64 8
%cy=bitcast i8*%cx to i32*
store i32%cp,i32*%cy,align 4
%cz=getelementptr inbounds i8,i8*%cq,i64 16
%cA=bitcast i8*%cz to i32*
store i32 1,i32*%cA,align 4
%cB=call i8*@sml_alloc(i32 inreg 20)#0
%cC=getelementptr inbounds i8,i8*%cB,i64 -4
%cD=bitcast i8*%cC to i32*
store i32 1342177296,i32*%cD,align 4
%cE=bitcast i8*%cB to i8**
store i8*null,i8**%cE,align 8
%cF=load i8*,i8**%d,align 8
%cG=getelementptr inbounds i8,i8*%cB,i64 8
%cH=bitcast i8*%cG to i8**
store i8*%cF,i8**%cH,align 8
%cI=getelementptr inbounds i8,i8*%cB,i64 16
%cJ=bitcast i8*%cI to i32*
store i32 3,i32*%cJ,align 4
br label%eo
cK:
%cL=getelementptr inbounds i8,i8*%bW,i64 16
%cM=bitcast i8*%cL to i8**
%cN=load i8*,i8**%cM,align 8
%cO=getelementptr inbounds i8,i8*%cN,i64 24
%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 28)#0
%cS=getelementptr inbounds i8,i8*%cR,i64 -4
%cT=bitcast i8*%cS to i32*
store i32 1342177304,i32*%cT,align 4
%cU=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%cV=bitcast i8*%cR to i8**
store i8*%cU,i8**%cV,align 8
%cW=getelementptr inbounds i8,i8*%cR,i64 8
%cX=bitcast i8*%cW to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[7x i8]}>,<{[4x i8],i32,[7x i8]}>*@j,i64 0,i32 2,i64 0),i8**%cX,align 8
%cY=load i8*,i8**%b,align 8
%cZ=getelementptr inbounds i8,i8*%cR,i64 16
%c0=bitcast i8*%cZ to i8**
store i8*%cY,i8**%c0,align 8
%c1=getelementptr inbounds i8,i8*%cR,i64 24
%c2=bitcast i8*%c1 to i32*
store i32 7,i32*%c2,align 4
%c3=call fastcc i8*@_SMLLLN5BinIO8StreamIO12extendStreamE_234(i8*inreg%cR)
%c4=bitcast i8*%c3 to i32*
%c5=load i32,i32*%c4,align 4
%c6=icmp eq i32%c5,1
br i1%c6,label%du,label%c7
c7:
%c8=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%c9=call fastcc i32@_SMLFN11Word8Vector6lengthE(i8*inreg%c8)
%da=call i8*@sml_alloc(i32 inreg 20)#0
%db=getelementptr inbounds i8,i8*%da,i64 -4
%dc=bitcast i8*%db to i32*
store i32 1342177296,i32*%dc,align 4
store i8*%da,i8**%d,align 8
%dd=getelementptr inbounds i8,i8*%da,i64 12
%de=bitcast i8*%dd to i32*
store i32 0,i32*%de,align 1
%df=load i8*,i8**%b,align 8
%dg=bitcast i8*%da to i8**
store i8*null,i8**%b,align 8
store i8*%df,i8**%dg,align 8
%dh=getelementptr inbounds i8,i8*%da,i64 8
%di=bitcast i8*%dh to i32*
store i32%c9,i32*%di,align 4
%dj=getelementptr inbounds i8,i8*%da,i64 16
%dk=bitcast i8*%dj to i32*
store i32 1,i32*%dk,align 4
%dl=call i8*@sml_alloc(i32 inreg 20)#0
%dm=getelementptr inbounds i8,i8*%dl,i64 -4
%dn=bitcast i8*%dm to i32*
store i32 1342177296,i32*%dn,align 4
%do=bitcast i8*%dl to i8**
store i8*null,i8**%do,align 8
%dp=load i8*,i8**%d,align 8
%dq=getelementptr inbounds i8,i8*%dl,i64 8
%dr=bitcast i8*%dq to i8**
store i8*%dp,i8**%dr,align 8
%ds=getelementptr inbounds i8,i8*%dl,i64 16
%dt=bitcast i8*%ds to i32*
store i32 3,i32*%dt,align 4
br label%eo
du:
store i8*null,i8**%d,align 8
%dv=getelementptr inbounds i8,i8*%c3,i64 8
%dw=bitcast i8*%dv to i8**
%dx=load i8*,i8**%dw,align 8
store i8*%dx,i8**%b,align 8
%dy=call i8*@sml_alloc(i32 inreg 20)#0
%dz=getelementptr inbounds i8,i8*%dy,i64 -4
%dA=bitcast i8*%dz to i32*
store i32 1342177296,i32*%dA,align 4
%dB=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%dC=bitcast i8*%dy to i8**
store i8*%dB,i8**%dC,align 8
%dD=getelementptr inbounds i8,i8*%dy,i64 8
%dE=bitcast i8*%dD to i32*
store i32 0,i32*%dE,align 4
%dF=getelementptr inbounds i8,i8*%dy,i64 12
%dG=bitcast i8*%dF to i32*
store i32%bV,i32*%dG,align 4
%dH=getelementptr inbounds i8,i8*%dy,i64 16
%dI=bitcast i8*%dH to i32*
store i32 1,i32*%dI,align 4
%dJ=call fastcc i8*@_SMLLL9inputList_246(i8*inreg%dy)
br label%eo
dK:
store i8*null,i8**%d,align 8
%dL=getelementptr inbounds i8,i8*%b3,i64 8
%dM=bitcast i8*%dL to i8**
%dN=load i8*,i8**%dM,align 8
store i8*%dN,i8**%b,align 8
%dO=call i8*@sml_alloc(i32 inreg 20)#0
%dP=getelementptr inbounds i8,i8*%dO,i64 -4
%dQ=bitcast i8*%dP to i32*
store i32 1342177296,i32*%dQ,align 4
store i8*%dO,i8**%d,align 8
%dR=getelementptr inbounds i8,i8*%dO,i64 12
%dS=bitcast i8*%dR to i32*
store i32 0,i32*%dS,align 1
%dT=load i8*,i8**%b,align 8
%dU=bitcast i8*%dO to i8**
store i8*null,i8**%b,align 8
store i8*%dT,i8**%dU,align 8
%dV=getelementptr inbounds i8,i8*%dO,i64 8
%dW=bitcast i8*%dV to i32*
store i32 0,i32*%dW,align 4
%dX=getelementptr inbounds i8,i8*%dO,i64 16
%dY=bitcast i8*%dX to i32*
store i32 1,i32*%dY,align 4
%dZ=call i8*@sml_alloc(i32 inreg 20)#0
%d0=getelementptr inbounds i8,i8*%dZ,i64 -4
%d1=bitcast i8*%d0 to i32*
store i32 1342177296,i32*%d1,align 4
%d2=bitcast i8*%dZ to i8**
store i8*null,i8**%d2,align 8
%d3=load i8*,i8**%d,align 8
%d4=getelementptr inbounds i8,i8*%dZ,i64 8
%d5=bitcast i8*%d4 to i8**
store i8*%d3,i8**%d5,align 8
%d6=getelementptr inbounds i8,i8*%dZ,i64 16
%d7=bitcast i8*%d6 to i32*
store i32 3,i32*%d7,align 4
br label%eo
d8:
store i8*null,i8**%d,align 8
%d9=getelementptr inbounds i8,i8*%b3,i64 8
%ea=bitcast i8*%d9 to i8**
%eb=load i8*,i8**%ea,align 8
store i8*%eb,i8**%b,align 8
%ec=call i8*@sml_alloc(i32 inreg 20)#0
%ed=getelementptr inbounds i8,i8*%ec,i64 -4
%ee=bitcast i8*%ed to i32*
store i32 1342177296,i32*%ee,align 4
%ef=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%eg=bitcast i8*%ec to i8**
store i8*%ef,i8**%eg,align 8
%eh=getelementptr inbounds i8,i8*%ec,i64 8
%ei=bitcast i8*%eh to i32*
store i32 0,i32*%ei,align 4
%ej=getelementptr inbounds i8,i8*%ec,i64 12
%ek=bitcast i8*%ej to i32*
store i32%bV,i32*%ek,align 4
%el=getelementptr inbounds i8,i8*%ec,i64 16
%em=bitcast i8*%el to i32*
store i32 1,i32*%em,align 4
%en=call fastcc i8*@_SMLLL9inputList_246(i8*inreg%ec)
br label%eo
eo:
%ep=phi i8*[%cB,%co],[%dZ,%dK],[%en,%d8],[%dl,%c7],[%dJ,%du]
%eq=bitcast i8*%ep to i8**
%er=load i8*,i8**%eq,align 8
store i8*%er,i8**%b,align 8
%es=getelementptr inbounds i8,i8*%ep,i64 8
%et=bitcast i8*%es to i8**
%eu=load i8*,i8**%et,align 8
store i8*%eu,i8**%d,align 8
%ev=call i8*@sml_alloc(i32 inreg 20)#0
%ew=getelementptr inbounds i8,i8*%ev,i64 -4
%ex=bitcast i8*%ew to i32*
store i32 1342177296,i32*%ex,align 4
store i8*%ev,i8**%e,align 8
%ey=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ez=bitcast i8*%ev to i8**
store i8*%ey,i8**%ez,align 8
%eA=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%eB=getelementptr inbounds i8,i8*%ev,i64 8
%eC=bitcast i8*%eB to i8**
store i8*%eA,i8**%eC,align 8
%eD=getelementptr inbounds i8,i8*%ev,i64 16
%eE=bitcast i8*%eD to i32*
store i32 3,i32*%eE,align 4
%eF=call i8*@sml_alloc(i32 inreg 20)#0
%eG=getelementptr inbounds i8,i8*%eF,i64 -4
%eH=bitcast i8*%eG to i32*
store i32 1342177296,i32*%eH,align 4
%eI=load i8*,i8**%e,align 8
%eJ=bitcast i8*%eF to i8**
store i8*%eI,i8**%eJ,align 8
%eK=load i8*,i8**%d,align 8
%eL=getelementptr inbounds i8,i8*%eF,i64 8
%eM=bitcast i8*%eL to i8**
store i8*%eK,i8**%eM,align 8
%eN=getelementptr inbounds i8,i8*%eF,i64 16
%eO=bitcast i8*%eN to i32*
store i32 3,i32*%eO,align 4
ret i8*%eF
}
define fastcc i8*@_SMLFN5BinIO8StreamIO6inputNE(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
%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*%l,i64 8
%p=bitcast i8*%o to i32*
%q=load i32,i32*%p,align 4
%r=getelementptr inbounds i8,i8*%i,i64 8
%s=bitcast i8*%r to i32*
%t=load i32,i32*%s,align 4
%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
store i8*null,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 i32*
store i32%q,i32*%A,align 4
%B=getelementptr inbounds i8,i8*%u,i64 12
%C=bitcast i8*%B to i32*
store i32%t,i32*%C,align 4
%D=getelementptr inbounds i8,i8*%u,i64 16
%E=bitcast i8*%D to i32*
store i32 1,i32*%E,align 4
%F=call fastcc i8*@_SMLLL9inputList_246(i8*inreg%u)
%G=bitcast i8*%F to i8**
%H=load i8*,i8**%G,align 8
%I=getelementptr inbounds i8,i8*%F,i64 8
%J=bitcast i8*%I to i8**
%K=load i8*,i8**%J,align 8
store i8*%K,i8**%b,align 8
%L=call fastcc i8*@_SMLFN11Word8Vector6concatE(i8*inreg%H)
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
%P=load i8*,i8**%c,align 8
%Q=bitcast i8*%M to i8**
store i8*%P,i8**%Q,align 8
%R=load i8*,i8**%b,align 8
%S=getelementptr inbounds i8,i8*%M,i64 8
%T=bitcast i8*%S to i8**
store i8*%R,i8**%T,align 8
%U=getelementptr inbounds i8,i8*%M,i64 16
%V=bitcast i8*%U to i32*
store i32 3,i32*%V,align 4
ret i8*%M
}
define internal fastcc i8*@_SMLLL8bigChunk_261(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
%x=tail call fastcc i8*%p(i8*inreg%w,i8*inreg%s)
ret i8*%x
}
define internal fastcc i8*@_SMLLL8bigChunk_266(i8*inreg%a,i32 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**%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],[%a,%k]
%l=getelementptr inbounds i8,i8*%j,i64 12
%m=bitcast i8*%l to i32*
%n=load i32,i32*%m,align 4
%o=call{i32,i1}@llvm.sadd.with.overflow.i32(i32%b,i32%n)#0
%p=extractvalue{i32,i1}%o,1
br i1%p,label%q,label%I
q:
%r=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%r,i8**%c,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
store i8*%s,i8**%d,align 8
%v=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%w=bitcast i8*%s to i8**
store i8*%v,i8**%w,align 8
%x=getelementptr inbounds i8,i8*%s,i64 8
%y=bitcast i8*%x to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@o,i64 0,i32 2,i64 0),i8**%y,align 8
%z=getelementptr inbounds i8,i8*%s,i64 16
%A=bitcast i8*%z to i32*
store i32 3,i32*%A,align 4
%B=call i8*@sml_alloc(i32 inreg 60)#0
%C=getelementptr inbounds i8,i8*%B,i64 -4
%D=bitcast i8*%C to i32*
store i32 1342177336,i32*%D,align 4
%E=getelementptr inbounds i8,i8*%B,i64 56
%F=bitcast i8*%E to i32*
store i32 1,i32*%F,align 4
%G=load i8*,i8**%d,align 8
%H=bitcast i8*%B to i8**
store i8*%G,i8**%H,align 8
call void@sml_raise(i8*inreg%B)#1
unreachable
I:
%J=add nsw i32%n,%b
%K=getelementptr inbounds i8,i8*%j,i64 8
%L=bitcast i8*%K to i32*
%M=load i32,i32*%L,align 4
%N=icmp eq i32%M,0
br i1%N,label%aw,label%O
O:
%P=xor i32%J,-2147483648
%Q=add i32%M,1
%R=or i32%Q,%P
%S=icmp eq i32%R,0
br i1%S,label%ae,label%T
T:
%U=sdiv i32%J,%M
%V=bitcast i8*%j 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{i32,i1}@llvm.smul.with.overflow.i32(i32%U,i32%M)#0
%ad=extractvalue{i32,i1}%ac,1
br i1%ad,label%aO,label%a6
ae:
%af=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%af,i8**%c,align 8
%ag=call i8*@sml_alloc(i32 inreg 20)#0
%ah=getelementptr inbounds i8,i8*%ag,i64 -4
%ai=bitcast i8*%ah to i32*
store i32 1342177296,i32*%ai,align 4
store i8*%ag,i8**%d,align 8
%aj=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ak=bitcast i8*%ag to i8**
store i8*%aj,i8**%ak,align 8
%al=getelementptr inbounds i8,i8*%ag,i64 8
%am=bitcast i8*%al to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@p,i64 0,i32 2,i64 0),i8**%am,align 8
%an=getelementptr inbounds i8,i8*%ag,i64 16
%ao=bitcast i8*%an to i32*
store i32 3,i32*%ao,align 4
%ap=call i8*@sml_alloc(i32 inreg 60)#0
%aq=getelementptr inbounds i8,i8*%ap,i64 -4
%ar=bitcast i8*%aq to i32*
store i32 1342177336,i32*%ar,align 4
%as=getelementptr inbounds i8,i8*%ap,i64 56
%at=bitcast i8*%as to i32*
store i32 1,i32*%at,align 4
%au=load i8*,i8**%d,align 8
%av=bitcast i8*%ap to i8**
store i8*%au,i8**%av,align 8
call void@sml_raise(i8*inreg%ap)#1
unreachable
aw:
%ax=load i8*,i8**@_SMLZ3Div,align 8
store i8*%ax,i8**%c,align 8
%ay=call i8*@sml_alloc(i32 inreg 20)#0
%az=getelementptr inbounds i8,i8*%ay,i64 -4
%aA=bitcast i8*%az to i32*
store i32 1342177296,i32*%aA,align 4
store i8*%ay,i8**%d,align 8
%aB=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aC=bitcast i8*%ay to i8**
store i8*%aB,i8**%aC,align 8
%aD=getelementptr inbounds i8,i8*%ay,i64 8
%aE=bitcast i8*%aD to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@p,i64 0,i32 2,i64 0),i8**%aE,align 8
%aF=getelementptr inbounds i8,i8*%ay,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:
store i8*null,i8**%d,align 8
%aP=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%aP,i8**%c,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**%d,align 8
%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,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@q,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**%d,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:
store i8*null,i8**%c,align 8
%a7=mul nsw i32%U,%M
%a8=call i8*@sml_alloc(i32 inreg 4)#0
%a9=bitcast i8*%a8 to i32*
%ba=getelementptr inbounds i8,i8*%a8,i64 -4
%bb=bitcast i8*%ba to i32*
store i32 4,i32*%bb,align 4
store i32%a7,i32*%a9,align 4
%bc=load i8*,i8**%d,align 8
%bd=tail call fastcc i8*%Z(i8*inreg%bc,i8*inreg%a8)
ret i8*%bd
}
define internal fastcc i8*@_SMLLL8bigChunk_267(i8*inreg%a,i32 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**%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],[%a,%k]
%l=getelementptr inbounds i8,i8*%j,i64 8
%m=bitcast i8*%l to i8**
%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**%d,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 0,i32*%u,align 4
%x=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%y=call fastcc i8*%q(i8*inreg%x,i8*inreg%t)
%z=icmp eq i8*%y,null
%A=bitcast i8**%c to i8***
%B=load i8**,i8***%A,align 8
%C=load i8*,i8**%B,align 8
%D=getelementptr inbounds i8,i8*%C,i64 16
%E=bitcast i8*%D to i8**
%F=load i8*,i8**%E,align 8
%G=getelementptr inbounds i8,i8*%F,i64 40
%H=bitcast i8*%G to i8**
%I=load i8*,i8**%H,align 8
%J=getelementptr inbounds i8,i8*%I,i64 24
%K=select i1%z,i8*%J,i8*%y
%L=bitcast i8*%K to i32*
%M=load i32,i32*%L,align 4
%N=getelementptr inbounds i8,i8*%F,i64 24
%O=bitcast i8*%N to i8**
%P=load i8*,i8**%O,align 8
store i8*%P,i8**%c,align 8
%Q=bitcast i8*%J to i32*
%R=load i32,i32*%Q,align 4
%S=call{i32,i1}@llvm.ssub.with.overflow.i32(i32%R,i32 1)#0
%T=extractvalue{i32,i1}%S,1
br i1%T,label%U,label%am
U:
%V=load i8*,i8**@_SMLZ8Overflow,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**%d,align 8
%Z=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aa=bitcast i8*%W to i8**
store i8*%Z,i8**%aa,align 8
%ab=getelementptr inbounds i8,i8*%W,i64 8
%ac=bitcast i8*%ab to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@n,i64 0,i32 2,i64 0),i8**%ac,align 8
%ad=getelementptr inbounds i8,i8*%W,i64 16
%ae=bitcast i8*%ad to i32*
store i32 3,i32*%ae,align 4
%af=call i8*@sml_alloc(i32 inreg 60)#0
%ag=getelementptr inbounds i8,i8*%af,i64 -4
%ah=bitcast i8*%ag to i32*
store i32 1342177336,i32*%ah,align 4
%ai=getelementptr inbounds i8,i8*%af,i64 56
%aj=bitcast i8*%ai to i32*
store i32 1,i32*%aj,align 4
%ak=load i8*,i8**%d,align 8
%al=bitcast i8*%af to i8**
store i8*%ak,i8**%al,align 8
call void@sml_raise(i8*inreg%af)#1
unreachable
am:
%an=add nsw i32%R,-1
%ao=icmp eq i32%an,0
br i1%ao,label%aE,label%ap
ap:
%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**%d,align 8
%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 i32*
store i32%R,i32*%aw,align 4
%ax=getelementptr inbounds i8,i8*%aq,i64 12
%ay=bitcast i8*%ax to i32*
store i32%an,i32*%ay,align 4
%az=getelementptr inbounds i8,i8*%aq,i64 16
%aA=bitcast i8*%az to i32*
store i32 1,i32*%aA,align 4
%aB=call i8*@sml_alloc(i32 inreg 28)#0
%aC=getelementptr inbounds i8,i8*%aB,i64 -4
%aD=bitcast i8*%aC to i32*
store i32 1342177304,i32*%aD,align 4
br label%aP
aE:
%aF=call i8*@sml_alloc(i32 inreg 12)#0
%aG=getelementptr inbounds i8,i8*%aF,i64 -4
%aH=bitcast i8*%aG to i32*
store i32 1342177288,i32*%aH,align 4
store i8*%aF,i8**%d,align 8
%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 i32*
store i32 1,i32*%aL,align 4
%aM=call i8*@sml_alloc(i32 inreg 28)#0
%aN=getelementptr inbounds i8,i8*%aM,i64 -4
%aO=bitcast i8*%aN to i32*
store i32 1342177304,i32*%aO,align 4
br label%aP
aP:
%aQ=phi i8*[%aM,%aE],[%aB,%ap]
%aR=phi void(...)*[bitcast(i8*(i8*,i32)*@_SMLLL8bigChunk_261 to void(...)*),%aE],[bitcast(i8*(i8*,i32)*@_SMLLL8bigChunk_266 to void(...)*),%ap]
%aS=phi void(...)*[bitcast(i8*(i8*,i8*)*@_SMLLL8bigChunk_482 to void(...)*),%aE],[bitcast(i8*(i8*,i8*)*@_SMLLL8bigChunk_483 to void(...)*),%ap]
%aT=load i8*,i8**%d,align 8
store i8*null,i8**%d,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(...)*%aR,void(...)**%aW,align 8
%aX=getelementptr inbounds i8,i8*%aQ,i64 16
%aY=bitcast i8*%aX to void(...)**
store void(...)*%aS,void(...)**%aY,align 8
%aZ=getelementptr inbounds i8,i8*%aQ,i64 24
%a0=bitcast i8*%aZ to i32*
store i32 -2147483647,i32*%a0,align 4
%a1=bitcast void(...)*%aS to i8*(i8*,i8*)*
store i8*%aT,i8**%c,align 8
%a2=call i8*@sml_alloc(i32 inreg 4)#0
%a3=bitcast i8*%a2 to i32*
%a4=getelementptr inbounds i8,i8*%a2,i64 -4
%a5=bitcast i8*%a4 to i32*
store i32 4,i32*%a5,align 4
store i32%M,i32*%a3,align 4
%a6=load i8*,i8**%c,align 8
%a7=tail call fastcc i8*%a1(i8*inreg%a6,i8*inreg%a2)
ret i8*%a7
}
define internal fastcc i8*@_SMLLL3get_271(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
%f=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
store i8*%a,i8**%f,align 8
%g=bitcast i8**%c to i8***
br label%h
h:
%i=phi i8*[%bU,%bQ],[%b,%j]
store i8*%i,i8**%c,align 8
%k=load atomic i32,i32*@sml_check_flag unordered,align 4
%l=icmp eq i32%k,0
%m=bitcast i8*%i to i8**
br i1%l,label%q,label%n
n:
call void@sml_check(i32 inreg%k)
%o=load i8**,i8***%g,align 8
%p=bitcast i8**%o to i8*
br label%q
q:
%r=phi i8*[%p,%n],[%i,%h]
%s=phi i8**[%o,%n],[%m,%h]
%t=load i8*,i8**%s,align 8
store i8*%t,i8**%d,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
store i8*null,i8**%c,align 8
%x=getelementptr inbounds i8,i8*%r,i64 8
%y=bitcast i8*%x to i32*
%z=load i32,i32*%y,align 4
%A=call fastcc i32@_SMLFN11Word8Vector6lengthE(i8*inreg%w)
%B=icmp slt i32%z,%A
br i1%B,label%C,label%an
C:
store i8*null,i8**%f,align 8
%D=call i8*@sml_alloc(i32 inreg 28)#0
%E=getelementptr inbounds i8,i8*%D,i64 -4
%F=bitcast i8*%E to i32*
store i32 1342177304,i32*%F,align 4
%G=getelementptr inbounds i8,i8*%D,i64 12
%H=bitcast i8*%G to i32*
store i32 0,i32*%H,align 1
%I=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%J=bitcast i8*%D to i8**
store i8*%I,i8**%J,align 8
%K=getelementptr inbounds i8,i8*%D,i64 8
%L=bitcast i8*%K to i32*
store i32%z,i32*%L,align 4
%M=getelementptr inbounds i8,i8*%D,i64 16
%N=bitcast i8*%M to i8**
store i8*null,i8**%N,align 8
%O=getelementptr inbounds i8,i8*%D,i64 24
%P=bitcast i8*%O to i32*
store i32 5,i32*%P,align 4
%Q=call fastcc i8*@_SMLFN16Word8VectorSlice5sliceE(i8*inreg%D)
%R=call fastcc i8*@_SMLFN16Word8VectorSlice6vectorE(i8*inreg%Q)
store i8*%R,i8**%c,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
store i8*%S,i8**%e,align 8
%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**%d,align 8
%Y=bitcast i8*%S to i8**
store i8*null,i8**%d,align 8
store i8*%X,i8**%Y,align 8
%Z=getelementptr inbounds i8,i8*%S,i64 8
%aa=bitcast i8*%Z to i32*
store i32%A,i32*%aa,align 4
%ab=getelementptr inbounds i8,i8*%S,i64 16
%ac=bitcast i8*%ab to i32*
store i32 1,i32*%ac,align 4
%ad=call i8*@sml_alloc(i32 inreg 20)#0
%ae=getelementptr inbounds i8,i8*%ad,i64 -4
%af=bitcast i8*%ae to i32*
store i32 1342177296,i32*%af,align 4
%ag=load i8*,i8**%c,align 8
%ah=bitcast i8*%ad to i8**
store i8*%ag,i8**%ah,align 8
%ai=load i8*,i8**%e,align 8
%aj=getelementptr inbounds i8,i8*%ad,i64 8
%ak=bitcast i8*%aj to i8**
store i8*%ai,i8**%ak,align 8
%al=getelementptr inbounds i8,i8*%ad,i64 16
%am=bitcast i8*%al to i32*
store i32 3,i32*%am,align 4
ret i8*%ad
an:
store i8*null,i8**%e,align 8
%ao=load i8*,i8**%d,align 8
%ap=getelementptr inbounds i8,i8*%ao,i64 24
%aq=bitcast i8*%ap to i8***
%ar=load i8**,i8***%aq,align 8
%as=load i8*,i8**%ar,align 8
%at=bitcast i8*%as to i32*
%au=load i32,i32*%at,align 4
switch i32%au,label%av[
i32 2,label%aH
i32 3,label%aw
]
av:
store i8*null,i8**%d,align 8
br label%a0
aw:
%ax=call i8*@sml_alloc(i32 inreg 20)#0
%ay=bitcast i8*%ax to i32*
%az=getelementptr inbounds i8,i8*%ax,i64 -4
%aA=bitcast i8*%az to i32*
store i32 1342177296,i32*%aA,align 4
%aB=bitcast i8*%ax to i64*
store i64 0,i64*%aB,align 4
%aC=load i8*,i8**%d,align 8
store i8*null,i8**%d,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 2,i32*%aG,align 4
br label%a0
aH:
%aI=load i8*,i8**%f,align 8
%aJ=getelementptr inbounds i8,i8*%aI,i64 8
%aK=bitcast i8*%aJ to i8**
%aL=load i8*,i8**%aK,align 8
store i8*%aL,i8**%c,align 8
%aM=call i8*@sml_alloc(i32 inreg 28)#0
%aN=getelementptr inbounds i8,i8*%aM,i64 -4
%aO=bitcast i8*%aN to i32*
store i32 1342177304,i32*%aO,align 4
%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=getelementptr inbounds i8,i8*%aM,i64 8
%aS=bitcast i8*%aR to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[9x i8]}>,<{[4x i8],i32,[9x i8]}>*@r,i64 0,i32 2,i64 0),i8**%aS,align 8
%aT=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aU=getelementptr inbounds i8,i8*%aM,i64 16
%aV=bitcast i8*%aU to i8**
store i8*%aT,i8**%aV,align 8
%aW=getelementptr inbounds i8,i8*%aM,i64 24
%aX=bitcast i8*%aW to i32*
store i32 7,i32*%aX,align 4
%aY=call fastcc i8*@_SMLLLN5BinIO8StreamIO12extendStreamE_234(i8*inreg%aM)
%aZ=bitcast i8*%aY to i32*
br label%a0
a0:
%a1=phi i32*[%aZ,%aH],[%ay,%aw],[%at,%av]
%a2=phi i8*[%aY,%aH],[%ax,%aw],[%as,%av]
%a3=load i32,i32*%a1,align 4
switch i32%a3,label%a4[
i32 1,label%bQ
i32 0,label%bo
]
a4:
store i8*null,i8**%f,align 8
%a5=load i8*,i8**@_SMLZ4Fail,align 8
store i8*%a5,i8**%c,align 8
%a6=call i8*@sml_alloc(i32 inreg 28)#0
%a7=getelementptr inbounds i8,i8*%a6,i64 -4
%a8=bitcast i8*%a7 to i32*
store i32 1342177304,i32*%a8,align 4
store i8*%a6,i8**%d,align 8
%a9=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ba=bitcast i8*%a6 to i8**
store i8*%a9,i8**%ba,align 8
%bb=getelementptr inbounds i8,i8*%a6,i64 8
%bc=bitcast i8*%bb to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@s,i64 0,i32 2,i64 0),i8**%bc,align 8
%bd=getelementptr inbounds i8,i8*%a6,i64 16
%be=bitcast i8*%bd to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[13x i8]}>,<{[4x i8],i32,[13x i8]}>*@t,i64 0,i32 2,i64 0),i8**%be,align 8
%bf=getelementptr inbounds i8,i8*%a6,i64 24
%bg=bitcast i8*%bf to i32*
store i32 7,i32*%bg,align 4
%bh=call i8*@sml_alloc(i32 inreg 60)#0
%bi=getelementptr inbounds i8,i8*%bh,i64 -4
%bj=bitcast i8*%bi to i32*
store i32 1342177336,i32*%bj,align 4
%bk=getelementptr inbounds i8,i8*%bh,i64 56
%bl=bitcast i8*%bk to i32*
store i32 1,i32*%bl,align 4
%bm=load i8*,i8**%d,align 8
%bn=bitcast i8*%bh to i8**
store i8*%bm,i8**%bn,align 8
call void@sml_raise(i8*inreg%bh)#1
unreachable
bo:
%bp=bitcast i8**%f to i8***
%bq=load i8**,i8***%bp,align 8
store i8*null,i8**%f,align 8
%br=load i8*,i8**%bq,align 8
store i8*%br,i8**%c,align 8
%bs=getelementptr inbounds i8,i8*%a2,i64 8
%bt=bitcast i8*%bs to i8**
%bu=load i8*,i8**%bt,align 8
store i8*%bu,i8**%d,align 8
%bv=call i8*@sml_alloc(i32 inreg 20)#0
%bw=getelementptr inbounds i8,i8*%bv,i64 -4
%bx=bitcast i8*%bw to i32*
store i32 1342177296,i32*%bx,align 4
store i8*%bv,i8**%e,align 8
%by=getelementptr inbounds i8,i8*%bv,i64 12
%bz=bitcast i8*%by to i32*
store i32 0,i32*%bz,align 1
%bA=load i8*,i8**%d,align 8
%bB=bitcast i8*%bv to i8**
store i8*null,i8**%d,align 8
store i8*%bA,i8**%bB,align 8
%bC=getelementptr inbounds i8,i8*%bv,i64 8
%bD=bitcast i8*%bC to i32*
store i32 0,i32*%bD,align 4
%bE=getelementptr inbounds i8,i8*%bv,i64 16
%bF=bitcast i8*%bE to i32*
store i32 1,i32*%bF,align 4
%bG=call i8*@sml_alloc(i32 inreg 20)#0
%bH=getelementptr inbounds i8,i8*%bG,i64 -4
%bI=bitcast i8*%bH to i32*
store i32 1342177296,i32*%bI,align 4
%bJ=load i8*,i8**%c,align 8
%bK=bitcast i8*%bG to i8**
store i8*%bJ,i8**%bK,align 8
%bL=load i8*,i8**%e,align 8
%bM=getelementptr inbounds i8,i8*%bG,i64 8
%bN=bitcast i8*%bM to i8**
store i8*%bL,i8**%bN,align 8
%bO=getelementptr inbounds i8,i8*%bG,i64 16
%bP=bitcast i8*%bO to i32*
store i32 3,i32*%bP,align 4
ret i8*%bG
bQ:
%bR=getelementptr inbounds i8,i8*%a2,i64 8
%bS=bitcast i8*%bR to i8**
%bT=load i8*,i8**%bS,align 8
store i8*%bT,i8**%c,align 8
%bU=call i8*@sml_alloc(i32 inreg 20)#0
%bV=getelementptr inbounds i8,i8*%bU,i64 -4
%bW=bitcast i8*%bV to i32*
store i32 1342177296,i32*%bW,align 4
%bX=getelementptr inbounds i8,i8*%bU,i64 12
%bY=bitcast i8*%bX to i32*
store i32 0,i32*%bY,align 1
%bZ=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%b0=bitcast i8*%bU to i8**
store i8*%bZ,i8**%b0,align 8
%b1=getelementptr inbounds i8,i8*%bU,i64 8
%b2=bitcast i8*%b1 to i32*
store i32 0,i32*%b2,align 4
%b3=getelementptr inbounds i8,i8*%bU,i64 16
%b4=bitcast i8*%b3 to i32*
store i32 1,i32*%b4,align 4
br label%h
}
define internal fastcc i8*@_SMLLL4loop_272(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]
%n=bitcast i8*%l to i8**
%o=load i8*,i8**%n,align 8
store i8*%o,i8**%c,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**%d,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**%c,align 8
store i8*null,i8**%e,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**%d,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**%e to i8***
%G=load i8**,i8***%F,align 8
%H=load i8*,i8**%G,align 8
%I=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%J=call fastcc i8*@_SMLLL3get_271(i8*inreg%H,i8*inreg%I)
%K=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%L=call fastcc i8*@_SMLLL4loop_272(i8*inreg%K,i8*inreg%J)
%M=bitcast i8*%L to i8**
%N=load i8*,i8**%M,align 8
store i8*%N,i8**%d,align 8
%O=getelementptr inbounds i8,i8*%L,i64 8
%P=bitcast i8*%O to i8**
%Q=load i8*,i8**%P,align 8
store i8*%Q,i8**%e,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**%f,align 8
%U=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%V=bitcast i8*%R to i8**
store i8*%U,i8**%V,align 8
%W=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%X=getelementptr inbounds i8,i8*%R,i64 8
%Y=bitcast i8*%X to i8**
store i8*%W,i8**%Y,align 8
%Z=getelementptr inbounds i8,i8*%R,i64 16
%aa=bitcast i8*%Z to i32*
store i32 3,i32*%aa,align 4
%ab=call i8*@sml_alloc(i32 inreg 20)#0
%ac=getelementptr inbounds i8,i8*%ab,i64 -4
%ad=bitcast i8*%ac to i32*
store i32 1342177296,i32*%ad,align 4
%ae=load i8*,i8**%f,align 8
%af=bitcast i8*%ab to i8**
store i8*%ae,i8**%af,align 8
%ag=load i8*,i8**%e,align 8
%ah=getelementptr inbounds i8,i8*%ab,i64 8
%ai=bitcast i8*%ah to i8**
store i8*%ag,i8**%ai,align 8
%aj=getelementptr inbounds i8,i8*%ab,i64 16
%ak=bitcast i8*%aj to i32*
store i32 3,i32*%ak,align 4
ret i8*%ab
}
define internal fastcc i8*@_SMLLLN5BinIO8StreamIO8inputAllE_273(i8*inreg%a,i8*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
%g=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
store i8*%a,i8**%f,align 8
store i8*%b,i8**%c,align 8
%h=load atomic i32,i32*@sml_check_flag unordered,align 4
%i=icmp eq i32%h,0
br i1%i,label%j,label%l
j:
%k=bitcast i8*%b 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**%d,align 8
%r=getelementptr inbounds i8,i8*%q,i64 16
%s=bitcast i8*%r to i8**
%t=load i8*,i8**%s,align 8
%u=getelementptr inbounds i8,i8*%t,i64 40
%v=bitcast i8*%u to i8***
%w=load i8**,i8***%v,align 8
%x=load i8*,i8**%w,align 8
store i8*%x,i8**%e,align 8
%y=call i8*@sml_alloc(i32 inreg 20)#0
%z=getelementptr inbounds i8,i8*%y,i64 -4
%A=bitcast i8*%z to i32*
store i32 1342177296,i32*%A,align 4
store i8*%y,i8**%g,align 8
%B=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%C=bitcast i8*%y to i8**
store i8*%B,i8**%C,align 8
%D=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%E=getelementptr inbounds i8,i8*%y,i64 8
%F=bitcast i8*%E to i8**
store i8*%D,i8**%F,align 8
%G=getelementptr inbounds i8,i8*%y,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
store i8*%I,i8**%e,align 8
%L=load i8*,i8**%g,align 8
store i8*null,i8**%g,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*,i32)*@_SMLLL8bigChunk_267 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*)*@_SMLLL8bigChunk_484 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=bitcast i8**%f to i8***
%U=load i8**,i8***%T,align 8
store i8*null,i8**%f,align 8
%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**%d,align 8
store i8*null,i8**%d,align 8
%aa=bitcast i8*%W to i8**
store i8*%Z,i8**%aa,align 8
%ab=load i8*,i8**%e,align 8
store i8*null,i8**%e,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 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**%f,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*)*@_SMLLL3get_271 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*)*@_SMLLL3get_271 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**%d,align 8
%au=load i8*,i8**%f,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 1,i32*%ax,align 4
%ay=call i8*@sml_alloc(i32 inreg 28)#0
%az=getelementptr inbounds i8,i8*%ay,i64 -4
%aA=bitcast i8*%az to i32*
store i32 1342177304,i32*%aA,align 4
%aB=load i8*,i8**%d,align 8
%aC=bitcast i8*%ay to i8**
store i8*%aB,i8**%aC,align 8
%aD=getelementptr inbounds i8,i8*%ay,i64 8
%aE=bitcast i8*%aD to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLL4loop_272 to void(...)*),void(...)**%aE,align 8
%aF=getelementptr inbounds i8,i8*%ay,i64 16
%aG=bitcast i8*%aF to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLL4loop_272 to void(...)*),void(...)**%aG,align 8
%aH=getelementptr inbounds i8,i8*%ay,i64 24
%aI=bitcast i8*%aH to i32*
store i32 -2147483647,i32*%aI,align 4
%aJ=load i8*,i8**%c,align 8
%aK=load i8*,i8**%f,align 8
store i8*null,i8**%c,align 8
store i8*null,i8**%f,align 8
%aL=call fastcc i8*@_SMLLL3get_271(i8*inreg%aK,i8*inreg%aJ)
%aM=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aN=call fastcc i8*@_SMLLL4loop_272(i8*inreg%aM,i8*inreg%aL)
%aO=bitcast i8*%aN to i8**
%aP=load i8*,i8**%aO,align 8
%aQ=getelementptr inbounds i8,i8*%aN,i64 8
%aR=bitcast i8*%aQ to i8**
%aS=load i8*,i8**%aR,align 8
store i8*%aS,i8**%c,align 8
%aT=call fastcc i8*@_SMLFN11Word8Vector6concatE(i8*inreg%aP)
store i8*%aT,i8**%d,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
%aX=load i8*,i8**%d,align 8
%aY=bitcast i8*%aU to i8**
store i8*%aX,i8**%aY,align 8
%aZ=load i8*,i8**%c,align 8
%a0=getelementptr inbounds i8,i8*%aU,i64 8
%a1=bitcast i8*%a0 to i8**
store i8*%aZ,i8**%a1,align 8
%a2=getelementptr inbounds i8,i8*%aU,i64 16
%a3=bitcast i8*%a2 to i32*
store i32 3,i32*%a3,align 4
ret i8*%aU
}
define internal fastcc i8*@_SMLLL8tryInput_277(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"personality i32(...)*@sml_personality{
i:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%e,align 8
%f=bitcast i8**%c to i8***
br label%g
g:
%h=phi i8*[%ey,%eu],[%b,%i]
store i8*%h,i8**%c,align 8
%j=load atomic i32,i32*@sml_check_flag unordered,align 4
%k=icmp eq i32%j,0
%l=bitcast i8*%h to i8**
br i1%k,label%p,label%m
m:
call void@sml_check(i32 inreg%j)
%n=load i8**,i8***%f,align 8
%o=bitcast i8**%n to i8*
br label%p
p:
%q=phi i8*[%o,%m],[%h,%g]
%r=phi i8**[%n,%m],[%l,%g]
%s=load i8*,i8**%r,align 8
store i8*%s,i8**%d,align 8
%t=getelementptr inbounds i8,i8*%s,i64 8
%u=bitcast i8*%t to i8**
%v=load i8*,i8**%u,align 8
%w=getelementptr inbounds i8*,i8**%r,i64 1
%x=bitcast i8**%w to i32*
%y=load i32,i32*%x,align 4
store i8*null,i8**%c,align 8
%z=getelementptr inbounds i8,i8*%q,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**%d,align 8
store i8*null,i8**%e,align 8
%G=load i8*,i8**@_SMLZ8Overflow,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
store i8*%H,i8**%d,align 8
%K=load i8*,i8**%c,align 8
store i8*null,i8**%c,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]}>*@v,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**%d,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
br i1%Z,label%aj,label%aa
aa:
store i8*null,i8**%d,align 8
store i8*null,i8**%e,align 8
%ab=call i8*@sml_alloc(i32 inreg 12)#0
%ac=bitcast i8*%ab to i32*
%ad=getelementptr inbounds i8,i8*%ab,i64 -4
%ae=bitcast i8*%ad to i32*
store i32 1342177288,i32*%ae,align 4
%af=getelementptr inbounds i8,i8*%ab,i64 4
%ag=bitcast i8*%af to i32*
store i32 0,i32*%ag,align 1
store i32%B,i32*%ac,align 4
%ah=getelementptr inbounds i8,i8*%ab,i64 8
%ai=bitcast i8*%ah to i32*
store i32 0,i32*%ai,align 4
ret i8*%ab
aj:
%ak=call{i32,i1}@llvm.ssub.with.overflow.i32(i32%B,i32%Y)#0
%al=extractvalue{i32,i1}%ak,1
br i1%al,label%am,label%aE
am:
store i8*null,i8**%d,align 8
store i8*null,i8**%e,align 8
%an=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%an,i8**%c,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
store i8*%ao,i8**%d,align 8
%ar=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%as=bitcast i8*%ao to i8**
store i8*%ar,i8**%as,align 8
%at=getelementptr inbounds i8,i8*%ao,i64 8
%au=bitcast i8*%at to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@w,i64 0,i32 2,i64 0),i8**%au,align 8
%av=getelementptr inbounds i8,i8*%ao,i64 16
%aw=bitcast i8*%av to i32*
store i32 3,i32*%aw,align 4
%ax=call i8*@sml_alloc(i32 inreg 60)#0
%ay=getelementptr inbounds i8,i8*%ax,i64 -4
%az=bitcast i8*%ay to i32*
store i32 1342177336,i32*%az,align 4
%aA=getelementptr inbounds i8,i8*%ax,i64 56
%aB=bitcast i8*%aA to i32*
store i32 1,i32*%aB,align 4
%aC=load i8*,i8**%d,align 8
%aD=bitcast i8*%ax to i8**
store i8*%aC,i8**%aD,align 8
call void@sml_raise(i8*inreg%ax)#1
unreachable
aE:
%aF=sub nsw i32%B,%Y
%aG=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aH=getelementptr inbounds i8,i8*%aG,i64 24
%aI=bitcast i8*%aH to i8***
%aJ=load i8**,i8***%aI,align 8
%aK=load i8*,i8**%aJ,align 8
%aL=bitcast i8*%aK to i32*
%aM=load i32,i32*%aL,align 4
switch i32%aM,label%aN[
i32 1,label%eu
i32 0,label%dV
i32 2,label%bE
i32 3,label%a5
]
aN:
store i8*null,i8**%e,align 8
call void@sml_matchcomp_bug()
%aO=load i8*,i8**@_SMLZ5Match,align 8
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
store i8*%aP,i8**%d,align 8
%aS=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aT=bitcast i8*%aP to i8**
store i8*%aS,i8**%aT,align 8
%aU=getelementptr inbounds i8,i8*%aP,i64 8
%aV=bitcast i8*%aU to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@C,i64 0,i32 2,i64 0),i8**%aV,align 8
%aW=getelementptr inbounds i8,i8*%aP,i64 16
%aX=bitcast i8*%aW to i32*
store i32 3,i32*%aX,align 4
%aY=call i8*@sml_alloc(i32 inreg 60)#0
%aZ=getelementptr inbounds i8,i8*%aY,i64 -4
%a0=bitcast i8*%aZ to i32*
store i32 1342177336,i32*%a0,align 4
%a1=getelementptr inbounds i8,i8*%aY,i64 56
%a2=bitcast i8*%a1 to i32*
store i32 1,i32*%a2,align 4
%a3=load i8*,i8**%d,align 8
%a4=bitcast i8*%aY to i8**
store i8*%a3,i8**%a4,align 8
call void@sml_raise(i8*inreg%aY)#1
unreachable
a5:
%a6=load i8*,i8**%e,align 8
%a7=getelementptr inbounds i8,i8*%a6,i64 16
%a8=bitcast i8*%a7 to i32*
%a9=load i32,i32*%a8,align 4
%ba=call{i32,i1}@llvm.ssub.with.overflow.i32(i32%a9,i32%aF)#0
%bb=extractvalue{i32,i1}%ba,1
store i8*null,i8**%e,align 8
br i1%bb,label%bc,label%bu
bc:
%bd=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%bd,i8**%c,align 8
%be=call i8*@sml_alloc(i32 inreg 20)#0
%bf=getelementptr inbounds i8,i8*%be,i64 -4
%bg=bitcast i8*%bf to i32*
store i32 1342177296,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 i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@B,i64 0,i32 2,i64 0),i8**%bk,align 8
%bl=getelementptr inbounds i8,i8*%be,i64 16
%bm=bitcast i8*%bl to i32*
store i32 3,i32*%bm,align 4
%bn=call i8*@sml_alloc(i32 inreg 60)#0
%bo=getelementptr inbounds i8,i8*%bn,i64 -4
%bp=bitcast i8*%bo to i32*
store i32 1342177336,i32*%bp,align 4
%bq=getelementptr inbounds i8,i8*%bn,i64 56
%br=bitcast i8*%bq to i32*
store i32 1,i32*%br,align 4
%bs=load i8*,i8**%d,align 8
%bt=bitcast i8*%bn to i8**
store i8*%bs,i8**%bt,align 8
call void@sml_raise(i8*inreg%bn)#1
unreachable
bu:
%bv=sub nsw i32%a9,%aF
%bw=call i8*@sml_alloc(i32 inreg 12)#0
%bx=bitcast i8*%bw to i32*
%by=getelementptr inbounds i8,i8*%bw,i64 -4
%bz=bitcast i8*%by to i32*
store i32 1342177288,i32*%bz,align 4
%bA=getelementptr inbounds i8,i8*%bw,i64 4
%bB=bitcast i8*%bA to i32*
store i32 0,i32*%bB,align 1
store i32%bv,i32*%bx,align 4
%bC=getelementptr inbounds i8,i8*%bw,i64 8
%bD=bitcast i8*%bC to i32*
store i32 0,i32*%bD,align 4
ret i8*%bw
bE:
%bF=load i8*,i8**%e,align 8
%bG=getelementptr inbounds i8,i8*%bF,i64 8
%bH=bitcast i8*%bG to i8**
%bI=load i8*,i8**%bH,align 8
store i8*%bI,i8**%c,align 8
%bJ=bitcast i8*%bF to i8**
%bK=load i8*,i8**%bJ,align 8
store i8*%bK,i8**%d,align 8
%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**%c,align 8
store i8*null,i8**%c,align 8
%bP=bitcast i8*%bL to i8**
store i8*%bO,i8**%bP,align 8
%bQ=getelementptr inbounds i8,i8*%bL,i64 8
%bR=bitcast i8*%bQ to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[9x i8]}>,<{[4x i8],i32,[9x i8]}>*@y,i64 0,i32 2,i64 0),i8**%bR,align 8
%bS=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%bT=getelementptr inbounds i8,i8*%bL,i64 16
%bU=bitcast i8*%bT to i8**
store i8*%bS,i8**%bU,align 8
%bV=getelementptr inbounds i8,i8*%bL,i64 24
%bW=bitcast i8*%bV to i32*
store i32 7,i32*%bW,align 4
%bX=invoke fastcc i8*@_SMLLLN5BinIO8StreamIO12extendStreamE_234(i8*inreg%bL)
to label%bY unwind label%cL
bY:
%bZ=bitcast i8*%bX to i32*
%b0=load i32,i32*%bZ,align 4
%b1=icmp eq i32%b0,1
br i1%b1,label%cu,label%b2
b2:
%b3=load i8*,i8**%e,align 8
%b4=getelementptr inbounds i8,i8*%b3,i64 16
%b5=bitcast i8*%b4 to i32*
%b6=load i32,i32*%b5,align 4
%b7=call{i32,i1}@llvm.ssub.with.overflow.i32(i32%b6,i32%aF)#0
%b8=extractvalue{i32,i1}%b7,1
br i1%b8,label%b9,label%ck
b9:
%ca=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%ca,i8**%c,align 8
%cb=call i8*@sml_alloc(i32 inreg 20)#0
%cc=getelementptr inbounds i8,i8*%cb,i64 -4
%cd=bitcast i8*%cc to i32*
store i32 1342177296,i32*%cd,align 4
%ce=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%cf=bitcast i8*%cb to i8**
store i8*%ce,i8**%cf,align 8
%cg=getelementptr inbounds i8,i8*%cb,i64 8
%ch=bitcast i8*%cg to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@z,i64 0,i32 2,i64 0),i8**%ch,align 8
%ci=getelementptr inbounds i8,i8*%cb,i64 16
%cj=bitcast i8*%ci to i32*
store i32 3,i32*%cj,align 4
br label%cR
ck:
store i8*null,i8**%e,align 8
%cl=sub nsw i32%b6,%aF
%cm=call i8*@sml_alloc(i32 inreg 12)#0
%cn=bitcast i8*%cm to i32*
%co=getelementptr inbounds i8,i8*%cm,i64 -4
%cp=bitcast i8*%co to i32*
store i32 1342177288,i32*%cp,align 4
%cq=getelementptr inbounds i8,i8*%cm,i64 4
%cr=bitcast i8*%cq to i32*
store i32 0,i32*%cr,align 1
store i32%cl,i32*%cn,align 4
%cs=getelementptr inbounds i8,i8*%cm,i64 8
%ct=bitcast i8*%cs to i32*
store i32 0,i32*%ct,align 4
br label%dT
cu:
%cv=getelementptr inbounds i8,i8*%bX,i64 8
%cw=bitcast i8*%cv to i8**
%cx=load i8*,i8**%cw,align 8
store i8*%cx,i8**%c,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**%c,align 8
store i8*null,i8**%c,align 8
%cC=bitcast i8*%cy to i8**
store i8*%cB,i8**%cC,align 8
%cD=getelementptr inbounds i8,i8*%cy,i64 8
%cE=bitcast i8*%cD to i32*
store i32 0,i32*%cE,align 4
%cF=getelementptr inbounds i8,i8*%cy,i64 12
%cG=bitcast i8*%cF to i32*
store i32%aF,i32*%cG,align 4
%cH=getelementptr inbounds i8,i8*%cy,i64 16
%cI=bitcast i8*%cH to i32*
store i32 1,i32*%cI,align 4
%cJ=load i8*,i8**%e,align 8
%cK=invoke fastcc i8*@_SMLLL8tryInput_277(i8*inreg%cJ,i8*inreg%cy)
to label%dT unwind label%cL
cL:
%cM=landingpad{i8*,i8*}
catch i8*null
%cN=extractvalue{i8*,i8*}%cM,1
%cO=bitcast i8*%cN to i8**
%cP=load i8*,i8**%cO,align 8
%cQ=bitcast i8*%cP to i8**
br label%cR
cR:
%cS=phi i8**[%cQ,%cL],[%cf,%b9]
%cT=phi i8*[%cP,%cL],[%cb,%b9]
store i8*%cT,i8**%c,align 8
%cU=load i8*,i8**%cS,align 8
%cV=load i8*,i8**@_SMLZN2IO2IoE,align 8
%cW=icmp eq i8*%cU,%cV
br i1%cW,label%cX,label%dL
cX:
%cY=getelementptr inbounds i8,i8*%cT,i64 16
%cZ=bitcast i8*%cY to i8****
%c0=load i8***,i8****%cZ,align 8
%c1=load i8**,i8***%c0,align 8
%c2=load i8*,i8**%c1,align 8
%c3=icmp eq i8*%c2,bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*}>,<{[4x i8],i32,i8*}>*@_SMLDL231,i64 0,i32 2)to i8*)
br i1%c3,label%c4,label%dD
c4:
store i8*null,i8**%c,align 8
%c5=load i8*,i8**%e,align 8
%c6=getelementptr inbounds i8,i8*%c5,i64 16
%c7=bitcast i8*%c6 to i32*
%c8=load i32,i32*%c7,align 4
%c9=call{i32,i1}@llvm.ssub.with.overflow.i32(i32%c8,i32%aF)#0
%da=extractvalue{i32,i1}%c9,1
store i8*null,i8**%e,align 8
br i1%da,label%db,label%dt
db:
%dc=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%dc,i8**%c,align 8
%dd=call i8*@sml_alloc(i32 inreg 20)#0
%de=getelementptr inbounds i8,i8*%dd,i64 -4
%df=bitcast i8*%de to i32*
store i32 1342177296,i32*%df,align 4
store i8*%dd,i8**%d,align 8
%dg=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%dh=bitcast i8*%dd to i8**
store i8*%dg,i8**%dh,align 8
%di=getelementptr inbounds i8,i8*%dd,i64 8
%dj=bitcast i8*%di to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@A,i64 0,i32 2,i64 0),i8**%dj,align 8
%dk=getelementptr inbounds i8,i8*%dd,i64 16
%dl=bitcast i8*%dk to i32*
store i32 3,i32*%dl,align 4
%dm=call i8*@sml_alloc(i32 inreg 60)#0
%dn=getelementptr inbounds i8,i8*%dm,i64 -4
%do=bitcast i8*%dn to i32*
store i32 1342177336,i32*%do,align 4
%dp=getelementptr inbounds i8,i8*%dm,i64 56
%dq=bitcast i8*%dp to i32*
store i32 1,i32*%dq,align 4
%dr=load i8*,i8**%d,align 8
%ds=bitcast i8*%dm to i8**
store i8*%dr,i8**%ds,align 8
call void@sml_raise(i8*inreg%dm)#1
unreachable
dt:
%du=sub nsw i32%c8,%aF
%dv=call i8*@sml_alloc(i32 inreg 12)#0
%dw=bitcast i8*%dv to i32*
%dx=getelementptr inbounds i8,i8*%dv,i64 -4
%dy=bitcast i8*%dx to i32*
store i32 1342177288,i32*%dy,align 4
%dz=getelementptr inbounds i8,i8*%dv,i64 4
%dA=bitcast i8*%dz to i32*
store i32 0,i32*%dA,align 1
store i32%du,i32*%dw,align 4
%dB=getelementptr inbounds i8,i8*%dv,i64 8
%dC=bitcast i8*%dB to i32*
store i32 0,i32*%dC,align 4
ret i8*%dv
dD:
store i8*null,i8**%e,align 8
%dE=call i8*@sml_alloc(i32 inreg 60)#0
%dF=getelementptr inbounds i8,i8*%dE,i64 -4
%dG=bitcast i8*%dF to i32*
store i32 1342177336,i32*%dG,align 4
%dH=getelementptr inbounds i8,i8*%dE,i64 56
%dI=bitcast i8*%dH to i32*
store i32 1,i32*%dI,align 4
%dJ=load i8*,i8**%c,align 8
%dK=bitcast i8*%dE to i8**
store i8*%dJ,i8**%dK,align 8
call void@sml_raise(i8*inreg%dE)#1
unreachable
dL:
store i8*null,i8**%e,align 8
%dM=call i8*@sml_alloc(i32 inreg 60)#0
%dN=getelementptr inbounds i8,i8*%dM,i64 -4
%dO=bitcast i8*%dN to i32*
store i32 1342177336,i32*%dO,align 4
%dP=getelementptr inbounds i8,i8*%dM,i64 56
%dQ=bitcast i8*%dP to i32*
store i32 1,i32*%dQ,align 4
%dR=load i8*,i8**%c,align 8
%dS=bitcast i8*%dM to i8**
store i8*%dR,i8**%dS,align 8
call void@sml_raise(i8*inreg%dM)#1
unreachable
dT:
%dU=phi i8*[%cm,%ck],[%cK,%cu]
ret i8*%dU
dV:
%dW=load i8*,i8**%e,align 8
%dX=getelementptr inbounds i8,i8*%dW,i64 16
%dY=bitcast i8*%dX to i32*
%dZ=load i32,i32*%dY,align 4
%d0=call{i32,i1}@llvm.ssub.with.overflow.i32(i32%dZ,i32%aF)#0
%d1=extractvalue{i32,i1}%d0,1
store i8*null,i8**%e,align 8
br i1%d1,label%d2,label%ek
d2:
%d3=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%d3,i8**%c,align 8
%d4=call i8*@sml_alloc(i32 inreg 20)#0
%d5=getelementptr inbounds i8,i8*%d4,i64 -4
%d6=bitcast i8*%d5 to i32*
store i32 1342177296,i32*%d6,align 4
store i8*%d4,i8**%d,align 8
%d7=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%d8=bitcast i8*%d4 to i8**
store i8*%d7,i8**%d8,align 8
%d9=getelementptr inbounds i8,i8*%d4,i64 8
%ea=bitcast i8*%d9 to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@x,i64 0,i32 2,i64 0),i8**%ea,align 8
%eb=getelementptr inbounds i8,i8*%d4,i64 16
%ec=bitcast i8*%eb to i32*
store i32 3,i32*%ec,align 4
%ed=call i8*@sml_alloc(i32 inreg 60)#0
%ee=getelementptr inbounds i8,i8*%ed,i64 -4
%ef=bitcast i8*%ee to i32*
store i32 1342177336,i32*%ef,align 4
%eg=getelementptr inbounds i8,i8*%ed,i64 56
%eh=bitcast i8*%eg to i32*
store i32 1,i32*%eh,align 4
%ei=load i8*,i8**%d,align 8
%ej=bitcast i8*%ed to i8**
store i8*%ei,i8**%ej,align 8
call void@sml_raise(i8*inreg%ed)#1
unreachable
ek:
%el=sub nsw i32%dZ,%aF
%em=call i8*@sml_alloc(i32 inreg 12)#0
%en=bitcast i8*%em to i32*
%eo=getelementptr inbounds i8,i8*%em,i64 -4
%ep=bitcast i8*%eo to i32*
store i32 1342177288,i32*%ep,align 4
%eq=getelementptr inbounds i8,i8*%em,i64 4
%er=bitcast i8*%eq to i32*
store i32 0,i32*%er,align 1
store i32%el,i32*%en,align 4
%es=getelementptr inbounds i8,i8*%em,i64 8
%et=bitcast i8*%es to i32*
store i32 0,i32*%et,align 4
ret i8*%em
eu:
%ev=getelementptr inbounds i8,i8*%aK,i64 8
%ew=bitcast i8*%ev to i8**
%ex=load i8*,i8**%ew,align 8
store i8*%ex,i8**%c,align 8
%ey=call i8*@sml_alloc(i32 inreg 20)#0
%ez=getelementptr inbounds i8,i8*%ey,i64 -4
%eA=bitcast i8*%ez to i32*
store i32 1342177296,i32*%eA,align 4
%eB=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%eC=bitcast i8*%ey to i8**
store i8*%eB,i8**%eC,align 8
%eD=getelementptr inbounds i8,i8*%ey,i64 8
%eE=bitcast i8*%eD to i32*
store i32 0,i32*%eE,align 4
%eF=getelementptr inbounds i8,i8*%ey,i64 12
%eG=bitcast i8*%eF to i32*
store i32%aF,i32*%eG,align 4
%eH=getelementptr inbounds i8,i8*%ey,i64 16
%eI=bitcast i8*%eH to i32*
store i32 1,i32*%eI,align 4
br label%g
}
define fastcc i8*@_SMLFN5BinIO8StreamIO8canInputE(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
store i8*%p,i8**%b,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*%k,i64 8
%u=bitcast i8*%t to i32*
%v=load i32,i32*%u,align 4
%w=getelementptr inbounds i8,i8*%p,i64 16
%x=bitcast i8*%w to i8**
%y=load i8*,i8**%x,align 8
store i8*%y,i8**%c,align 8
%z=getelementptr inbounds i8,i8*%y,i64 32
%A=bitcast i8*%z to i8**
%B=load i8*,i8**%A,align 8
%C=icmp eq i8*%B,null
br i1%C,label%D,label%aB
D:
store i8*null,i8**%b,align 8
%E=load i8*,i8**@_SMLZN2IO23NonblockingNotSupportedE,align 8
store i8*%E,i8**%d,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
store i8*%F,i8**%b,align 8
%I=load i8*,i8**%d,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,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@u,i64 0,i32 2,i64 0),i8**%L,align 8
%M=getelementptr inbounds i8,i8*%F,i64 16
%N=bitcast i8*%M to i32*
store i32 3,i32*%N,align 4
%O=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%O,i8**%d,align 8
%P=load i8*,i8**%c,align 8
%Q=getelementptr inbounds i8,i8*%P,i64 40
%R=bitcast i8*%Q to i8**
%S=load i8*,i8**%R,align 8
%T=getelementptr inbounds i8,i8*%S,i64 64
%U=bitcast i8*%T to i8**
%V=load i8*,i8**%U,align 8
store i8*%V,i8**%c,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**%e,align 8
%Z=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aa=bitcast i8*%W to i8**
store i8*%Z,i8**%aa,align 8
%ab=getelementptr inbounds i8,i8*%W,i64 8
%ac=bitcast i8*%ab to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[9x i8]}>,<{[4x i8],i32,[9x i8]}>*@y,i64 0,i32 2,i64 0),i8**%ac,align 8
%ad=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ae=getelementptr inbounds i8,i8*%W,i64 16
%af=bitcast i8*%ae to i8**
store i8*%ad,i8**%af,align 8
%ag=getelementptr inbounds i8,i8*%W,i64 24
%ah=bitcast i8*%ag to i32*
store i32 7,i32*%ah,align 4
%ai=call i8*@sml_alloc(i32 inreg 28)#0
%aj=getelementptr inbounds i8,i8*%ai,i64 -4
%ak=bitcast i8*%aj to i32*
store i32 1342177304,i32*%ak,align 4
store i8*%ai,i8**%b,align 8
%al=load i8*,i8**%d,align 8
store i8*null,i8**%d,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]}>*@T,i64 0,i32 2,i64 0),i8**%ao,align 8
%ap=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%aq=getelementptr inbounds i8,i8*%ai,i64 16
%ar=bitcast i8*%aq to i8**
store i8*%ap,i8**%ar,align 8
%as=getelementptr inbounds i8,i8*%ai,i64 24
%at=bitcast i8*%as to i32*
store i32 7,i32*%at,align 4
%au=call i8*@sml_alloc(i32 inreg 60)#0
%av=getelementptr inbounds i8,i8*%au,i64 -4
%aw=bitcast i8*%av to i32*
store i32 1342177336,i32*%aw,align 4
%ax=getelementptr inbounds i8,i8*%au,i64 56
%ay=bitcast i8*%ax to i32*
store i32 1,i32*%ay,align 4
%az=load i8*,i8**%b,align 8
%aA=bitcast i8*%au to i8**
store i8*%az,i8**%aA,align 8
call void@sml_raise(i8*inreg%au)#1
unreachable
aB:
store i8*null,i8**%c,align 8
%aC=bitcast i8*%B to i8**
%aD=load i8*,i8**%aC,align 8
store i8*%aD,i8**%c,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
store i8*%aE,i8**%d,align 8
%aH=load i8*,i8**%b,align 8
%aI=bitcast i8*%aE to i8**
store i8*%aH,i8**%aI,align 8
%aJ=load i8*,i8**%c,align 8
store i8*null,i8**%c,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%v,i32*%aN,align 4
%aO=getelementptr inbounds i8,i8*%aE,i64 24
%aP=bitcast i8*%aO to i32*
store i32 3,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
%aT=load i8*,i8**%d,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*,i8*)*@_SMLLL8tryInput_277 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*)*@_SMLLL8tryInput_277 to void(...)*),void(...)**%aY,align 8
%aZ=getelementptr inbounds i8,i8*%aQ,i64 24
%a0=bitcast i8*%aZ to i32*
store i32 -2147483647,i32*%a0,align 4
%a1=icmp sgt i32%v,-1
br i1%a1,label%bk,label%a2
a2:
store i8*null,i8**%d,align 8
%a3=load i8*,i8**@_SMLZ4Size,align 8
store i8*%a3,i8**%b,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
store i8*%a4,i8**%c,align 8
%a7=load i8*,i8**%b,align 8
store i8*null,i8**%b,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]}>*@D,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
%bd=call i8*@sml_alloc(i32 inreg 60)#0
%be=getelementptr inbounds i8,i8*%bd,i64 -4
%bf=bitcast i8*%be to i32*
store i32 1342177336,i32*%bf,align 4
%bg=getelementptr inbounds i8,i8*%bd,i64 56
%bh=bitcast i8*%bg to i32*
store i32 1,i32*%bh,align 4
%bi=load i8*,i8**%c,align 8
%bj=bitcast i8*%bd to i8**
store i8*%bi,i8**%bj,align 8
call void@sml_raise(i8*inreg%bd)#1
unreachable
bk:
%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**%b,align 8
%bp=bitcast i8*%bl to i8**
store i8*%bo,i8**%bp,align 8
%bq=getelementptr inbounds i8,i8*%bl,i64 8
%br=bitcast i8*%bq to i32*
store i32%s,i32*%br,align 4
%bs=getelementptr inbounds i8,i8*%bl,i64 12
%bt=bitcast i8*%bs to i32*
store i32%v,i32*%bt,align 4
%bu=getelementptr inbounds i8,i8*%bl,i64 16
%bv=bitcast i8*%bu to i32*
store i32 1,i32*%bv,align 4
%bw=load i8*,i8**%d,align 8
%bx=tail call fastcc i8*@_SMLLL8tryInput_277(i8*inreg%bw,i8*inreg%bl)
ret i8*%bx
}
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
%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%h,label%j
h:
%i=bitcast i8*%a to i8**
br label%m
j:
call void@sml_check(i32 inreg%f)
%k=bitcast i8**%b to i8***
%l=load i8**,i8***%k,align 8
br label%m
m:
%n=phi i8**[%l,%j],[%i,%h]
%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
store i8*%r,i8**%b,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=bitcast i8*%u to i32*
%w=load i32,i32*%v,align 4
%x=icmp eq i32%w,0
br i1%x,label%z,label%y
y:
ret void
z:
%A=getelementptr inbounds i8,i8*%r,i64 40
%B=bitcast i8*%A to i8**
%C=load i8*,i8**%B,align 8
%D=getelementptr inbounds i8,i8*%C,i64 32
%E=bitcast i8*%D to i8**
%F=load i8*,i8**%E,align 8
store i8*%F,i8**%d,align 8
%G=bitcast i8*%r to i8**
%H=load i8*,i8**%G,align 8
%I=getelementptr inbounds i8,i8*%r,i64 48
%J=bitcast i8*%I to i8***
%K=load i8**,i8***%J,align 8
%L=load i8*,i8**%K,align 8
store i8*%L,i8**%e,align 8
%M=bitcast i8*%L to i32**
%N=load i32*,i32**%M,align 8
%O=load i32,i32*%N,align 4
switch i32%O,label%P[
i32 2,label%ai
i32 3,label%ah
]
P:
store i8*null,i8**%c,align 8
store i8*null,i8**%d,align 8
store i8*null,i8**%e,align 8
%Q=load i8*,i8**@_SMLZ5Match,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,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@Q,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:
store i8*null,i8**%e,align 8
br label%an
ai:
call fastcc void@_SMLFN18SMLSharp__OSProcess12cancelAtExitE(i8*inreg%H)
%aj=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%ak=bitcast i8*%aj to i8**
call void@sml_write(i8*inreg%aj,i8**inreg%ak,i8*inreg bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@P,i64 0,i32 2)to i8*))#0
%al=bitcast i8**%c to i32**
%am=load i32*,i32**%al,align 8
br label%an
an:
%ao=phi i32*[%am,%ai],[%v,%ah]
store i32 1,i32*%ao,align 4
%ap=load i8*,i8**%d,align 8
%aq=getelementptr inbounds i8,i8*%ap,i64 16
%ar=bitcast i8*%aq to i8*(i8*,i8*)**
%as=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%ar,align 8
store i8*null,i8**%d,align 8
%at=bitcast i8*%ap to i8**
%au=load i8*,i8**%at,align 8
store i8*%au,i8**%c,align 8
%av=call i8*@sml_alloc(i32 inreg 4)#0
%aw=bitcast i8*%av to i32*
%ax=getelementptr inbounds i8,i8*%av,i64 -4
%ay=bitcast i8*%ax to i32*
store i32 4,i32*%ay,align 4
store i32 0,i32*%aw,align 4
%az=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aA=invoke fastcc i8*%as(i8*inreg%az,i8*inreg%av)
to label%y unwind label%aB
aB:
%aC=landingpad{i8*,i8*}
catch i8*null
%aD=extractvalue{i8*,i8*}%aC,1
%aE=bitcast i8*%aD to i8**
%aF=load i8*,i8**%aE,align 8
store i8*%aF,i8**%e,align 8
%aG=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%aG,i8**%c,align 8
%aH=load i8*,i8**%b,align 8
%aI=getelementptr inbounds i8,i8*%aH,i64 40
%aJ=bitcast i8*%aI to i8**
%aK=load i8*,i8**%aJ,align 8
%aL=getelementptr inbounds i8,i8*%aK,i64 64
%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
store i8*%aO,i8**%d,align 8
%aR=load i8*,i8**%e,align 8
store i8*null,i8**%e,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,[8x i8]}>,<{[4x i8],i32,[8x i8]}>*@F,i64 0,i32 2,i64 0),i8**%aU,align 8
%aV=load i8*,i8**%b,align 8
store i8*null,i8**%b,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
%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
store i8*%a0,i8**%b,align 8
%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 i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@T,i64 0,i32 2,i64 0),i8**%a6,align 8
%a7=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%a8=getelementptr inbounds i8,i8*%a0,i64 16
%a9=bitcast i8*%a8 to i8**
store i8*%a7,i8**%a9,align 8
%ba=getelementptr inbounds i8,i8*%a0,i64 24
%bb=bitcast i8*%ba to i32*
store i32 7,i32*%bb,align 4
%bc=call i8*@sml_alloc(i32 inreg 60)#0
%bd=getelementptr inbounds i8,i8*%bc,i64 -4
%be=bitcast i8*%bd to i32*
store i32 1342177336,i32*%be,align 4
%bf=getelementptr inbounds i8,i8*%bc,i64 56
%bg=bitcast i8*%bf to i32*
store i32 1,i32*%bg,align 4
%bh=load i8*,i8**%b,align 8
%bi=bitcast i8*%bc to i8**
store i8*%bh,i8**%bi,align 8
call void@sml_raise(i8*inreg%bc)#1
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]
%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*%m,i64 8
%r=bitcast i8*%q to i8**
%s=load i8*,i8**%r,align 8
%t=getelementptr inbounds i8,i8*%m,i64 16
%u=bitcast i8*%t to i8**
%v=load i8*,i8**%u,align 8
%w=getelementptr inbounds i8,i8*%v,i64 8
%x=bitcast i8*%w to i8**
%y=load i8*,i8**%x,align 8
store i8*%y,i8**%c,align 8
%z=getelementptr inbounds i8,i8*%m,i64 24
%A=bitcast i8*%z to i8**
%B=load i8*,i8**%A,align 8
store i8*%B,i8**%d,align 8
%C=bitcast i8*%B to i32**
%D=load i32*,i32**%C,align 8
%E=load i32,i32*%D,align 4
%F=icmp eq i32%E,1
br i1%F,label%at,label%G
G:
%H=call fastcc i32@_SMLFN11Word8Vector6lengthE(i8*inreg%s)
%I=icmp eq i32%p,%H
br i1%I,label%J,label%at
J:
%K=bitcast i8**%d to i32***
%L=load i32**,i32***%K,align 8
store i8*null,i8**%d,align 8
%M=load i32*,i32**%L,align 8
%N=bitcast i8**%c to i32**
%O=load i32*,i32**%N,align 8
%P=load i32,i32*%O,align 4
%Q=load i32,i32*%M,align 4
%R=icmp eq i32%Q,2
%S=icmp eq i32%P,0
%T=and i1%S,%R
br i1%T,label%U,label%at
U:
%V=load i8*,i8**%b,align 8
%W=getelementptr inbounds i8,i8*%V,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**%c,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
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,[12x i8]}>,<{[4x i8],i32,[12x i8]}>*@aI,i64 0,i32 2,i64 0),i8**%ai,align 8
%aj=load i8*,i8**%b,align 8
store i8*null,i8**%b,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 fastcc i8*@_SMLLLN5BinIO8StreamIO12extendStreamE_234(i8*inreg%ac)
%ap=bitcast i8*%ao to i32*
%aq=load i32,i32*%ap,align 4
%ar=icmp eq i32%aq,0
%as=zext i1%ar to i32
br label%at
at:
%au=phi i32[%as,%U],[1,%J],[0,%G],[0,%i]
ret i32%au
}
define internal fastcc i8*@_SMLLL8readVec_G_299(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]}>*@I,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*@_SMLLL10readVecNB_G_303(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}>*@L,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*@_SMLLL6getPos_304(i32 inreg%a)#4 gc"smlsharp"{
ret i8*null
}
define internal fastcc i8*@_SMLLL6getPos_306(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@_SMLLLN5BinIO8StreamIO10mkInstreamE_308(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 internal fastcc void@_SMLLLN5BinIO8StreamIO10mkInstreamE_311(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**%b,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**%c,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**%d,align 8
%A=getelementptr inbounds i8,i8*%t,i64 88
%B=bitcast i8*%A to i8**
%C=load i8*,i8**%B,align 8
%D=getelementptr inbounds i8,i8*%t,i64 96
%E=bitcast i8*%D to i8**
%F=load i8*,i8**%E,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=icmp eq i8*%C,null
br i1%J,label%N,label%K
K:
%L=bitcast i8*%C to i8**
%M=load i8*,i8**%L,align 8
br label%N
N:
%O=phi i8*[%M,%K],[bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@J,i64 0,i32 2)to i8*),%p]
store i8*%O,i8**%f,align 8
%P=icmp eq i8*%F,null
br i1%P,label%at,label%Q
Q:
%R=bitcast i8*%F to i8**
%S=load i8*,i8**%R,align 8
store i8*%S,i8**%g,align 8
%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
store i8*%T,i8**%h,align 8
%W=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%X=bitcast i8*%T to i8**
store i8*%W,i8**%X,align 8
%Y=getelementptr inbounds i8,i8*%T,i64 8
%Z=bitcast i8*%Y to i32*
store i32 1,i32*%Z,align 4
%aa=call i8*@sml_alloc(i32 inreg 28)#0
%ab=getelementptr inbounds i8,i8*%aa,i64 -4
%ac=bitcast i8*%ab to i32*
store i32 1342177304,i32*%ac,align 4
store i8*%aa,i8**%g,align 8
%ad=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%ae=bitcast i8*%aa to i8**
store i8*%ad,i8**%ae,align 8
%af=getelementptr inbounds i8,i8*%aa,i64 8
%ag=bitcast i8*%af to void(...)**
store void(...)*bitcast(i8*(i8*,i32)*@_SMLLL10readVecNB_G_303 to void(...)*),void(...)**%ag,align 8
%ah=getelementptr inbounds i8,i8*%aa,i64 16
%ai=bitcast i8*%ah to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLL10readVecNB_G_489 to void(...)*),void(...)**%ai,align 8
%aj=getelementptr inbounds i8,i8*%aa,i64 24
%ak=bitcast i8*%aj to i32*
store i32 -2147483647,i32*%ak,align 4
%al=call i8*@sml_alloc(i32 inreg 12)#0
%am=getelementptr inbounds i8,i8*%al,i64 -4
%an=bitcast i8*%am to i32*
store i32 1342177288,i32*%an,align 4
%ao=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%ap=bitcast i8*%al to i8**
store i8*%ao,i8**%ap,align 8
%aq=getelementptr inbounds i8,i8*%al,i64 8
%ar=bitcast i8*%aq to i32*
store i32 1,i32*%ar,align 4
%as=load i8*,i8**%d,align 8
br label%at
at:
%au=phi i8*[%as,%Q],[%z,%N]
%av=phi i8*[%al,%Q],[null,%N]
store i8*%av,i8**%g,align 8
%aw=icmp eq i8*%au,null
br i1%aw,label%ax,label%ay
ax:
store i8*null,i8**%d,align 8
store i8*null,i8**%e,align 8
br label%aX
ay:
%az=bitcast i8*%au to i8**
%aA=load i8*,i8**%az,align 8
store i8*%aA,i8**%d,align 8
%aB=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%aC=icmp eq i8*%aB,null
br i1%aC,label%aD,label%aE
aD:
store i8*null,i8**%d,align 8
br label%aX
aE:
%aF=call i8*@sml_alloc(i32 inreg 12)#0
%aG=getelementptr inbounds i8,i8*%aF,i64 -4
%aH=bitcast i8*%aG to i32*
store i32 1342177288,i32*%aH,align 4
store i8*%aF,i8**%e,align 8
%aI=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aJ=bitcast i8*%aF to i8**
store i8*%aI,i8**%aJ,align 8
%aK=getelementptr inbounds i8,i8*%aF,i64 8
%aL=bitcast i8*%aK to i32*
store i32 1,i32*%aL,align 4
%aM=call i8*@sml_alloc(i32 inreg 28)#0
%aN=getelementptr inbounds i8,i8*%aM,i64 -4
%aO=bitcast i8*%aN to i32*
store i32 1342177304,i32*%aO,align 4
%aP=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%aQ=bitcast i8*%aM to i8**
store i8*%aP,i8**%aQ,align 8
%aR=getelementptr inbounds i8,i8*%aM,i64 8
%aS=bitcast i8*%aR to void(...)**
store void(...)*bitcast(i8*(i8*,i32)*@_SMLLL6getPos_306 to void(...)*),void(...)**%aS,align 8
%aT=getelementptr inbounds i8,i8*%aM,i64 16
%aU=bitcast i8*%aT to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLL6getPos_491 to void(...)*),void(...)**%aU,align 8
%aV=getelementptr inbounds i8,i8*%aM,i64 24
%aW=bitcast i8*%aV to i32*
store i32 -2147483647,i32*%aW,align 4
br label%aX
aX:
%aY=phi i8*[%aM,%aE],[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*),%aD],[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*),%ax]
store i8*%aY,i8**%d,align 8
%aZ=call i8*@sml_alloc(i32 inreg 8)#0
%a0=getelementptr inbounds i8,i8*%aZ,i64 -4
%a1=bitcast i8*%a0 to i32*
store i32 805306376,i32*%a1,align 4
store i8*%aZ,i8**%i,align 8
%a2=bitcast i8*%aZ to i64*
store i64 0,i64*%a2,align 1
%a3=bitcast i8*%aZ to i8**
call void@sml_write(i8*inreg%aZ,i8**inreg%a3,i8*inreg bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@N,i64 0,i32 2)to i8*))#0
%a4=call i8*@sml_alloc(i32 inreg 4)#0
%a5=bitcast i8*%a4 to i32*
%a6=getelementptr inbounds i8,i8*%a4,i64 -4
%a7=bitcast i8*%a6 to i32*
store i32 536870916,i32*%a7,align 4
store i8*%a4,i8**%j,align 8
store i32 0,i32*%a5,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**%e,align 8
%bb=load i8*,i8**%j,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**%h,align 8
%bi=load i8*,i8**%e,align 8
store i8*null,i8**%e,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(void(i8*,i32)*@_SMLLLN5BinIO8StreamIO10mkInstreamE_308 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*)*@_SMLLLN5BinIO8StreamIO10mkInstreamE_492 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**%e,align 8
%bt=load i8*,i8**%j,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
%bA=load i8*,i8**%e,align 8
store i8*null,i8**%e,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(void(i8*,i32)*@_SMLLLN5BinIO8StreamIO10mkInstreamE_311 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*)*@_SMLLLN5BinIO8StreamIO10mkInstreamE_494 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**%h,align 8
store i8*null,i8**%h,align 8
%bJ=call fastcc i8*@_SMLFN18SMLSharp__OSProcess7atExit_GE(i8*inreg%bI)
store i8*%bJ,i8**%e,align 8
%bK=call i8*@sml_alloc(i32 inreg 8)#0
%bL=getelementptr inbounds i8,i8*%bK,i64 -4
%bM=bitcast i8*%bL to i32*
store i32 805306376,i32*%bM,align 4
store i8*%bK,i8**%k,align 8
%bN=bitcast i8*%bK to i64*
store i64 0,i64*%bN,align 1
%bO=load i8*,i8**%i,align 8
%bP=bitcast i8*%bK to i8**
call void@sml_write(i8*inreg%bK,i8**inreg%bP,i8*inreg%bO)#0
%bQ=call i8*@sml_alloc(i32 inreg 60)#0
%bR=getelementptr inbounds i8,i8*%bQ,i64 -4
%bS=bitcast i8*%bR to i32*
store i32 1342177336,i32*%bS,align 4
store i8*%bQ,i8**%h,align 8
%bT=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%bU=bitcast i8*%bQ to i8**
store i8*%bT,i8**%bU,align 8
%bV=load i8*,i8**%j,align 8
store i8*null,i8**%j,align 8
%bW=getelementptr inbounds i8,i8*%bQ,i64 8
%bX=bitcast i8*%bW to i8**
store i8*%bV,i8**%bX,align 8
%bY=load i8*,i8**%d,align 8
%bZ=getelementptr inbounds i8,i8*%bQ,i64 16
%b0=bitcast i8*%bZ to i8**
store i8*%bY,i8**%b0,align 8
%b1=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%b2=getelementptr inbounds i8,i8*%bQ,i64 24
%b3=bitcast i8*%b2 to i8**
store i8*%b1,i8**%b3,align 8
%b4=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%b5=getelementptr inbounds i8,i8*%bQ,i64 32
%b6=bitcast i8*%b5 to i8**
store i8*%b4,i8**%b6,align 8
%b7=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%b8=getelementptr inbounds i8,i8*%bQ,i64 40
%b9=bitcast i8*%b8 to i8**
store i8*%b7,i8**%b9,align 8
%ca=load i8*,i8**%k,align 8
store i8*null,i8**%k,align 8
%cb=getelementptr inbounds i8,i8*%bQ,i64 48
%cc=bitcast i8*%cb to i8**
store i8*%ca,i8**%cc,align 8
%cd=getelementptr inbounds i8,i8*%bQ,i64 56
%ce=bitcast i8*%cd to i32*
store i32 127,i32*%ce,align 4
%cf=load i8*,i8**%c,align 8
%cg=call fastcc i32@_SMLFN11Word8Vector6lengthE(i8*inreg%cf)
%ch=icmp eq i32%cg,0
br i1%ch,label%ci,label%cv
ci:
%cj=load i8*,i8**%d,align 8
%ck=getelementptr inbounds i8,i8*%cj,i64 16
%cl=bitcast i8*%ck to i8*(i8*,i8*)**
%cm=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%cl,align 8
store i8*null,i8**%d,align 8
%cn=bitcast i8*%cj to i8**
%co=load i8*,i8**%cn,align 8
store i8*%co,i8**%b,align 8
%cp=call i8*@sml_alloc(i32 inreg 4)#0
%cq=bitcast i8*%cp to i32*
%cr=getelementptr inbounds i8,i8*%cp,i64 -4
%cs=bitcast i8*%cr to i32*
store i32 4,i32*%cs,align 4
store i32 0,i32*%cq,align 4
%ct=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%cu=call fastcc i8*%cm(i8*inreg%ct,i8*inreg%cp)
br label%cw
cv:
store i8*null,i8**%d,align 8
br label%cw
cw:
%cx=phi i8*[null,%cv],[%cu,%ci]
store i8*%cx,i8**%b,align 8
%cy=call i8*@sml_alloc(i32 inreg 36)#0
%cz=getelementptr inbounds i8,i8*%cy,i64 -4
%cA=bitcast i8*%cz to i32*
store i32 1342177312,i32*%cA,align 4
store i8*%cy,i8**%d,align 8
%cB=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%cC=bitcast i8*%cy to i8**
store i8*%cB,i8**%cC,align 8
%cD=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%cE=getelementptr inbounds i8,i8*%cy,i64 8
%cF=bitcast i8*%cE to i8**
store i8*%cD,i8**%cF,align 8
%cG=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%cH=getelementptr inbounds i8,i8*%cy,i64 16
%cI=bitcast i8*%cH to i8**
store i8*%cG,i8**%cI,align 8
%cJ=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%cK=getelementptr inbounds i8,i8*%cy,i64 24
%cL=bitcast i8*%cK to i8**
store i8*%cJ,i8**%cL,align 8
%cM=getelementptr inbounds i8,i8*%cy,i64 32
%cN=bitcast i8*%cM to i32*
store i32 15,i32*%cN,align 4
%cO=call i8*@sml_alloc(i32 inreg 20)#0
%cP=getelementptr inbounds i8,i8*%cO,i64 -4
%cQ=bitcast i8*%cP to i32*
store i32 1342177296,i32*%cQ,align 4
%cR=getelementptr inbounds i8,i8*%cO,i64 12
%cS=bitcast i8*%cR to i32*
store i32 0,i32*%cS,align 1
%cT=load i8*,i8**%d,align 8
%cU=bitcast i8*%cO to i8**
store i8*%cT,i8**%cU,align 8
%cV=getelementptr inbounds i8,i8*%cO,i64 8
%cW=bitcast i8*%cV to i32*
store i32 0,i32*%cW,align 4
%cX=getelementptr inbounds i8,i8*%cO,i64 16
%cY=bitcast i8*%cX to i32*
store i32 1,i32*%cY,align 4
ret i8*%cO
}
define internal fastcc i8*@_SMLLL7getData_314(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=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**%b,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*@_SMLLL7getData_314(i8*inreg%y)
store i8*%z,i8**%c,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**%b,align 8
%E=bitcast i8*%A to i8**
store i8*%D,i8**%E,align 8
%F=load i8*,i8**%c,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 fastcc i8*@_SMLFN5BinIO8StreamIO9getReaderE(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=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 8
%s=bitcast i8*%r to i8**
%t=load i8*,i8**%s,align 8
store i8*%t,i8**%b,align 8
%u=getelementptr inbounds i8,i8*%n,i64 16
%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
store i8*%z,i8**%c,align 8
%A=getelementptr inbounds i8,i8*%n,i64 24
%B=bitcast i8*%A to i8**
%C=load i8*,i8**%B,align 8
store i8*%C,i8**%d,align 8
%D=bitcast i8*%w to i8**
%E=load i8*,i8**%D,align 8
%F=getelementptr inbounds i8,i8*%w,i64 48
%G=bitcast i8*%F to i8***
%H=load i8**,i8***%G,align 8
%I=load i8*,i8**%H,align 8
store i8*%I,i8**%e,align 8
%J=bitcast i8*%I to i32**
%K=load i32*,i32**%J,align 8
%L=load i32,i32*%K,align 4
switch i32%L,label%M[
i32 2,label%af
i32 3,label%ae
]
M:
store i8*null,i8**%c,align 8
store i8*null,i8**%d,align 8
store i8*null,i8**%e,align 8
%N=load i8*,i8**@_SMLZ5Match,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
store i8*%O,i8**%c,align 8
%R=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%S=bitcast i8*%O to i8**
store i8*%R,i8**%S,align 8
%T=getelementptr inbounds i8,i8*%O,i64 8
%U=bitcast i8*%T to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@Q,i64 0,i32 2,i64 0),i8**%U,align 8
%V=getelementptr inbounds i8,i8*%O,i64 16
%W=bitcast i8*%V to i32*
store i32 3,i32*%W,align 4
%X=call i8*@sml_alloc(i32 inreg 60)#0
%Y=getelementptr inbounds i8,i8*%X,i64 -4
%Z=bitcast i8*%Y to i32*
store i32 1342177336,i32*%Z,align 4
%aa=getelementptr inbounds i8,i8*%X,i64 56
%ab=bitcast i8*%aa to i32*
store i32 1,i32*%ab,align 4
%ac=load i8*,i8**%c,align 8
%ad=bitcast i8*%X to i8**
store i8*%ac,i8**%ad,align 8
call void@sml_raise(i8*inreg%X)#1
unreachable
ae:
store i8*null,i8**%e,align 8
br label%aj
af:
call fastcc void@_SMLFN18SMLSharp__OSProcess12cancelAtExitE(i8*inreg%E)
%ag=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%ah=bitcast i8*%ag to i8**
call void@sml_write(i8*inreg%ag,i8**inreg%ah,i8*inreg bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@P,i64 0,i32 2)to i8*))#0
%ai=load i8*,i8**%b,align 8
br label%aj
aj:
%ak=phi i8*[%ai,%af],[%t,%ae]
%al=call fastcc i32@_SMLFN11Word8Vector6lengthE(i8*inreg%ak)
%am=icmp slt i32%q,%al
br i1%am,label%an,label%a2
an:
%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=getelementptr inbounds i8,i8*%ao,i64 12
%as=bitcast i8*%ar to i32*
store i32 0,i32*%as,align 1
%at=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%au=bitcast i8*%ao to i8**
store i8*%at,i8**%au,align 8
%av=getelementptr inbounds i8,i8*%ao,i64 8
%aw=bitcast i8*%av to i32*
store i32%q,i32*%aw,align 4
%ax=getelementptr inbounds i8,i8*%ao,i64 16
%ay=bitcast i8*%ax to i8**
store i8*null,i8**%ay,align 8
%az=getelementptr inbounds i8,i8*%ao,i64 24
%aA=bitcast i8*%az to i32*
store i32 5,i32*%aA,align 4
%aB=call fastcc i8*@_SMLFN16Word8VectorSlice5sliceE(i8*inreg%ao)
%aC=call fastcc i8*@_SMLFN16Word8VectorSlice6vectorE(i8*inreg%aB)
store i8*%aC,i8**%b,align 8
%aD=bitcast i8**%d to i8***
%aE=load i8**,i8***%aD,align 8
store i8*null,i8**%d,align 8
%aF=load i8*,i8**%aE,align 8
%aG=call fastcc i8*@_SMLLL7getData_314(i8*inreg%aF)
store i8*%aG,i8**%d,align 8
%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**%b,align 8
store i8*null,i8**%b,align 8
%aL=bitcast i8*%aH to i8**
store i8*%aK,i8**%aL,align 8
%aM=load i8*,i8**%d,align 8
store i8*null,i8**%d,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
%aR=call fastcc i8*@_SMLFN11Word8Vector6concatE(i8*inreg%aH)
store i8*%aR,i8**%b,align 8
%aS=call i8*@sml_alloc(i32 inreg 20)#0
%aT=getelementptr inbounds i8,i8*%aS,i64 -4
%aU=bitcast i8*%aT to i32*
store i32 1342177296,i32*%aU,align 4
%aV=load i8*,i8**%c,align 8
%aW=bitcast i8*%aS to i8**
store i8*%aV,i8**%aW,align 8
%aX=load i8*,i8**%b,align 8
%aY=getelementptr inbounds i8,i8*%aS,i64 8
%aZ=bitcast i8*%aY to i8**
store i8*%aX,i8**%aZ,align 8
%a0=getelementptr inbounds i8,i8*%aS,i64 16
%a1=bitcast i8*%a0 to i32*
store i32 3,i32*%a1,align 4
ret i8*%aS
a2:
store i8*null,i8**%b,align 8
%a3=bitcast i8**%d to i8***
%a4=load i8**,i8***%a3,align 8
store i8*null,i8**%d,align 8
%a5=load i8*,i8**%a4,align 8
%a6=call fastcc i8*@_SMLLL7getData_314(i8*inreg%a5)
%a7=call fastcc i8*@_SMLFN11Word8Vector6concatE(i8*inreg%a6)
store i8*%a7,i8**%b,align 8
%a8=call i8*@sml_alloc(i32 inreg 20)#0
%a9=getelementptr inbounds i8,i8*%a8,i64 -4
%ba=bitcast i8*%a9 to i32*
store i32 1342177296,i32*%ba,align 4
%bb=load i8*,i8**%c,align 8
%bc=bitcast i8*%a8 to i8**
store i8*%bb,i8**%bc,align 8
%bd=load i8*,i8**%b,align 8
%be=getelementptr inbounds i8,i8*%a8,i64 8
%bf=bitcast i8*%be to i8**
store i8*%bd,i8**%bf,align 8
%bg=getelementptr inbounds i8,i8*%a8,i64 16
%bh=bitcast i8*%bg to i32*
store i32 3,i32*%bh,align 4
ret i8*%a8
}
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]
store i8*null,i8**%b,align 8
%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%as
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
%v=load i8*,i8**@_SMLZN2IO24RandomAccessNotSupportedE,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**%c,align 8
%z=load i8*,i8**%d,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]}>*@S,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=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%F,i8**%d,align 8
%G=load i8*,i8**%b,align 8
%H=getelementptr inbounds i8,i8*%G,i64 40
%I=bitcast i8*%H to i8**
%J=load i8*,i8**%I,align 8
%K=getelementptr inbounds i8,i8*%J,i64 64
%L=bitcast i8*%K to i8**
%M=load i8*,i8**%L,align 8
store i8*%M,i8**%b,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**%e,align 8
%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,[10x i8]}>,<{[4x i8],i32,[10x i8]}>*@U,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**%d,align 8
store i8*null,i8**%d,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,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@T,i64 0,i32 2,i64 0),i8**%af,align 8
%ag=load i8*,i8**%e,align 8
store i8*null,i8**%e,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
as:
%at=getelementptr inbounds i8,i8*%k,i64 8
%au=bitcast i8*%at to i32*
%av=load i32,i32*%au,align 4
%aw=bitcast i8*%p to i32*
%ax=load i32,i32*%aw,align 4
%ay=call fastcc i32@_SMLFN5Int327fromIntE(i32 inreg%av)
%az=add nsw i32%ay,%ax
ret i32%az
}
define fastcc void@_SMLFN5BinIO8StreamIO6outputE(i8*inreg%a)#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=getelementptr inbounds i8,i8*%m,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*%p,i64 24
%u=bitcast i8*%t to i32**
%v=load i32*,i32**%u,align 8
%w=load i32,i32*%v,align 4
%x=icmp eq i32%w,0
br i1%x,label%aw,label%y
y:
%z=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%z,i8**%c,align 8
%A=load i8*,i8**@_SMLZN2IO12ClosedStreamE,align 8
store i8*%A,i8**%d,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**%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 i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@aA,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=load i8*,i8**%b,align 8
%L=getelementptr inbounds i8,i8*%K,i64 56
%M=bitcast i8*%L to i8**
%N=load i8*,i8**%M,align 8
%O=getelementptr inbounds i8,i8*%N,i64 56
%P=bitcast i8*%O to i8**
%Q=load i8*,i8**%P,align 8
store i8*%Q,i8**%b,align 8
%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
store i8*%R,i8**%d,align 8
%U=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%V=bitcast i8*%R to i8**
store i8*%U,i8**%V,align 8
%W=getelementptr inbounds i8,i8*%R,i64 8
%X=bitcast i8*%W to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[7x i8]}>,<{[4x i8],i32,[7x i8]}>*@Y,i64 0,i32 2,i64 0),i8**%X,align 8
%Y=load i8*,i8**%b,align 8
store i8*null,i8**%b,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=call i8*@sml_alloc(i32 inreg 28)#0
%ae=getelementptr inbounds i8,i8*%ad,i64 -4
%af=bitcast i8*%ae to i32*
store i32 1342177304,i32*%af,align 4
store i8*%ad,i8**%b,align 8
%ag=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ah=bitcast i8*%ad to i8**
store i8*%ag,i8**%ah,align 8
%ai=getelementptr inbounds i8,i8*%ad,i64 8
%aj=bitcast i8*%ai to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@aM,i64 0,i32 2,i64 0),i8**%aj,align 8
%ak=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%al=getelementptr inbounds i8,i8*%ad,i64 16
%am=bitcast i8*%al to i8**
store i8*%ak,i8**%am,align 8
%an=getelementptr inbounds i8,i8*%ad,i64 24
%ao=bitcast i8*%an to i32*
store i32 7,i32*%ao,align 4
%ap=call i8*@sml_alloc(i32 inreg 60)#0
%aq=getelementptr inbounds i8,i8*%ap,i64 -4
%ar=bitcast i8*%aq to i32*
store i32 1342177336,i32*%ar,align 4
%as=getelementptr inbounds i8,i8*%ap,i64 56
%at=bitcast i8*%as to i32*
store i32 1,i32*%at,align 4
%au=load i8*,i8**%b,align 8
%av=bitcast i8*%ap to i8**
store i8*%au,i8**%av,align 8
call void@sml_raise(i8*inreg%ap)#1
unreachable
aw:
%ax=bitcast i8*%p to i8**
%ay=load i8*,i8**%ax,align 8
store i8*%ay,i8**%d,align 8
%az=getelementptr inbounds i8,i8*%p,i64 32
%aA=bitcast i8*%az to i8**
%aB=load i8*,i8**%aA,align 8
store i8*%aB,i8**%e,align 8
%aC=getelementptr inbounds i8,i8*%p,i64 8
%aD=bitcast i8*%aC to i32**
%aE=load i32*,i32**%aD,align 8
%aF=load i32,i32*%aE,align 4
%aG=icmp eq i32%aF,2
br i1%aG,label%aH,label%aK
aH:
%aI=bitcast i8*%aB to i32*
%aJ=bitcast i8**%e to i32**
br label%f6
aK:
%aL=call fastcc i32@_SMLFN10Word8Array6lengthE(i8*inreg%ay)
%aM=load i8*,i8**%c,align 8
%aN=call fastcc i32@_SMLFN11Word8Vector6lengthE(i8*inreg%aM)
%aO=icmp slt i32%aN,%aL
%aP=bitcast i8**%e to i32**
%aQ=load i32*,i32**%aP,align 8
br i1%aO,label%aR,label%f6
aR:
%aS=load i32,i32*%aQ,align 4
%aT=call{i32,i1}@llvm.ssub.with.overflow.i32(i32%aL,i32%aS)#0
%aU=extractvalue{i32,i1}%aT,1
br i1%aU,label%aV,label%bd
aV:
store i8*null,i8**%c,align 8
store i8*null,i8**%d,align 8
store i8*null,i8**%e,align 8
%aW=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%aW,i8**%b,align 8
%aX=call i8*@sml_alloc(i32 inreg 20)#0
%aY=getelementptr inbounds i8,i8*%aX,i64 -4
%aZ=bitcast i8*%aY to i32*
store i32 1342177296,i32*%aZ,align 4
store i8*%aX,i8**%c,align 8
%a0=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%a1=bitcast i8*%aX to i8**
store i8*%a0,i8**%a1,align 8
%a2=getelementptr inbounds i8,i8*%aX,i64 8
%a3=bitcast i8*%a2 to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@W,i64 0,i32 2,i64 0),i8**%a3,align 8
%a4=getelementptr inbounds i8,i8*%aX,i64 16
%a5=bitcast i8*%a4 to i32*
store i32 3,i32*%a5,align 4
%a6=call i8*@sml_alloc(i32 inreg 60)#0
%a7=getelementptr inbounds i8,i8*%a6,i64 -4
%a8=bitcast i8*%a7 to i32*
store i32 1342177336,i32*%a8,align 4
%a9=getelementptr inbounds i8,i8*%a6,i64 56
%ba=bitcast i8*%a9 to i32*
store i32 1,i32*%ba,align 4
%bb=load i8*,i8**%c,align 8
%bc=bitcast i8*%a6 to i8**
store i8*%bb,i8**%bc,align 8
call void@sml_raise(i8*inreg%a6)#1
unreachable
bd:
%be=sub nsw i32%aL,%aS
%bf=icmp sgt i32%aN,%be
%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**%f,align 8
call void@llvm.memset.p0i8.i32(i8*%bg,i8 0,i32 12,i1 false)
%bj=bitcast i8*%bg to i32*
br i1%bf,label%bk,label%dJ
bk:
store i32%be,i32*%bj,align 4
%bl=getelementptr inbounds i8,i8*%bg,i64 8
%bm=bitcast i8*%bl to i32*
store i32 0,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
%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**%c,align 8
%bt=bitcast i8*%bn to i8**
store i8*%bs,i8**%bt,align 8
%bu=getelementptr inbounds i8,i8*%bn,i64 8
%bv=bitcast i8*%bu to i32*
store i32 0,i32*%bv,align 4
%bw=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%bx=getelementptr inbounds i8,i8*%bn,i64 16
%by=bitcast i8*%bx to i8**
store i8*%bw,i8**%by,align 8
%bz=getelementptr inbounds i8,i8*%bn,i64 24
%bA=bitcast i8*%bz to i32*
store i32 5,i32*%bA,align 4
%bB=call fastcc i8*@_SMLFN16Word8VectorSlice5sliceE(i8*inreg%bn)
store i8*%bB,i8**%f,align 8
%bC=call i8*@sml_alloc(i32 inreg 28)#0
%bD=bitcast i8*%bC to i32*
%bE=getelementptr inbounds i8,i8*%bC,i64 -4
%bF=bitcast i8*%bE to i32*
store i32 1342177304,i32*%bF,align 4
%bG=getelementptr inbounds i8,i8*%bC,i64 4
%bH=bitcast i8*%bG to i32*
store i32 0,i32*%bH,align 1
store i32%aS,i32*%bD,align 4
%bI=load i8*,i8**%d,align 8
%bJ=getelementptr inbounds i8,i8*%bC,i64 8
%bK=bitcast i8*%bJ to i8**
store i8*%bI,i8**%bK,align 8
%bL=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%bM=getelementptr inbounds i8,i8*%bC,i64 16
%bN=bitcast i8*%bM to i8**
store i8*%bL,i8**%bN,align 8
%bO=getelementptr inbounds i8,i8*%bC,i64 24
%bP=bitcast i8*%bO to i32*
store i32 6,i32*%bP,align 4
call fastcc void@_SMLFN15Word8ArraySlice7copyVecE(i8*inreg%bC)
%bQ=load i8*,i8**%b,align 8
%bR=getelementptr inbounds i8,i8*%bQ,i64 40
%bS=bitcast i8*%bR to i8**
%bT=load i8*,i8**%bS,align 8
%bU=getelementptr inbounds i8,i8*%bT,i64 16
%bV=bitcast i8*%bU to i8*(i8*,i8*)**
%bW=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bV,align 8
%bX=bitcast i8*%bT to i8**
%bY=load i8*,i8**%bX,align 8
store i8*%bY,i8**%f,align 8
%bZ=load i8*,i8**%d,align 8
%b0=invoke fastcc i8*@_SMLFN15Word8ArraySlice4fullE(i8*inreg%bZ)
to label%b1 unwind label%b7
b1:
%b2=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%b3=invoke fastcc i8*%bW(i8*inreg%b2,i8*inreg%b0)
to label%b4 unwind label%b7
b4:
store i8*null,i8**%b,align 8
%b5=call{i32,i1}@llvm.ssub.with.overflow.i32(i32%aN,i32%be)#0
%b6=extractvalue{i32,i1}%b5,1
br i1%b6,label%cP,label%c7
b7:
%b8=landingpad{i8*,i8*}
catch i8*null
%b9=extractvalue{i8*,i8*}%b8,1
%ca=bitcast i8*%b9 to i8**
%cb=load i8*,i8**%ca,align 8
store i8*null,i8**%d,align 8
store i8*null,i8**%f,align 8
store i8*%cb,i8**%e,align 8
%cc=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%cc,i8**%c,align 8
%cd=load i8*,i8**%b,align 8
%ce=getelementptr inbounds i8,i8*%cd,i64 56
%cf=bitcast i8*%ce to i8**
%cg=load i8*,i8**%cf,align 8
%ch=getelementptr inbounds i8,i8*%cg,i64 56
%ci=bitcast i8*%ch to i8**
%cj=load i8*,i8**%ci,align 8
store i8*%cj,i8**%b,align 8
%ck=call i8*@sml_alloc(i32 inreg 28)#0
%cl=getelementptr inbounds i8,i8*%ck,i64 -4
%cm=bitcast i8*%cl to i32*
store i32 1342177304,i32*%cm,align 4
store i8*%ck,i8**%d,align 8
%cn=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%co=bitcast i8*%ck to i8**
store i8*%cn,i8**%co,align 8
%cp=getelementptr inbounds i8,i8*%ck,i64 8
%cq=bitcast i8*%cp to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[7x i8]}>,<{[4x i8],i32,[7x i8]}>*@Y,i64 0,i32 2,i64 0),i8**%cq,align 8
%cr=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%cs=getelementptr inbounds i8,i8*%ck,i64 16
%ct=bitcast i8*%cs to i8**
store i8*%cr,i8**%ct,align 8
%cu=getelementptr inbounds i8,i8*%ck,i64 24
%cv=bitcast i8*%cu to i32*
store i32 7,i32*%cv,align 4
%cw=call i8*@sml_alloc(i32 inreg 28)#0
%cx=getelementptr inbounds i8,i8*%cw,i64 -4
%cy=bitcast i8*%cx to i32*
store i32 1342177304,i32*%cy,align 4
store i8*%cw,i8**%b,align 8
%cz=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%cA=bitcast i8*%cw to i8**
store i8*%cz,i8**%cA,align 8
%cB=getelementptr inbounds i8,i8*%cw,i64 8
%cC=bitcast i8*%cB to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@aM,i64 0,i32 2,i64 0),i8**%cC,align 8
%cD=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%cE=getelementptr inbounds i8,i8*%cw,i64 16
%cF=bitcast i8*%cE to i8**
store i8*%cD,i8**%cF,align 8
%cG=getelementptr inbounds i8,i8*%cw,i64 24
%cH=bitcast i8*%cG to i32*
store i32 7,i32*%cH,align 4
%cI=call i8*@sml_alloc(i32 inreg 60)#0
%cJ=getelementptr inbounds i8,i8*%cI,i64 -4
%cK=bitcast i8*%cJ to i32*
store i32 1342177336,i32*%cK,align 4
%cL=getelementptr inbounds i8,i8*%cI,i64 56
%cM=bitcast i8*%cL to i32*
store i32 1,i32*%cM,align 4
%cN=load i8*,i8**%b,align 8
%cO=bitcast i8*%cI to i8**
store i8*%cN,i8**%cO,align 8
call void@sml_raise(i8*inreg%cI)#1
unreachable
cP:
store i8*null,i8**%c,align 8
store i8*null,i8**%d,align 8
store i8*null,i8**%e,align 8
%cQ=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%cQ,i8**%b,align 8
%cR=call i8*@sml_alloc(i32 inreg 20)#0
%cS=getelementptr inbounds i8,i8*%cR,i64 -4
%cT=bitcast i8*%cS to i32*
store i32 1342177296,i32*%cT,align 4
store i8*%cR,i8**%c,align 8
%cU=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%cV=bitcast i8*%cR to i8**
store i8*%cU,i8**%cV,align 8
%cW=getelementptr inbounds i8,i8*%cR,i64 8
%cX=bitcast i8*%cW to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@Z,i64 0,i32 2,i64 0),i8**%cX,align 8
%cY=getelementptr inbounds i8,i8*%cR,i64 16
%cZ=bitcast i8*%cY to i32*
store i32 3,i32*%cZ,align 4
%c0=call i8*@sml_alloc(i32 inreg 60)#0
%c1=getelementptr inbounds i8,i8*%c0,i64 -4
%c2=bitcast i8*%c1 to i32*
store i32 1342177336,i32*%c2,align 4
%c3=getelementptr inbounds i8,i8*%c0,i64 56
%c4=bitcast i8*%c3 to i32*
store i32 1,i32*%c4,align 4
%c5=load i8*,i8**%c,align 8
%c6=bitcast i8*%c0 to i8**
store i8*%c5,i8**%c6,align 8
call void@sml_raise(i8*inreg%c0)#1
unreachable
c7:
%c8=sub nsw i32%aN,%be
%c9=call i8*@sml_alloc(i32 inreg 12)#0
%da=getelementptr inbounds i8,i8*%c9,i64 -4
%db=bitcast i8*%da to i32*
store i32 1342177288,i32*%db,align 4
store i8*%c9,i8**%b,align 8
%dc=getelementptr inbounds i8,i8*%c9,i64 4
%dd=bitcast i8*%dc to i32*
store i32 0,i32*%dd,align 1
%de=bitcast i8*%c9 to i32*
store i32%c8,i32*%de,align 4
%df=getelementptr inbounds i8,i8*%c9,i64 8
%dg=bitcast i8*%df to i32*
store i32 0,i32*%dg,align 4
%dh=call i8*@sml_alloc(i32 inreg 28)#0
%di=getelementptr inbounds i8,i8*%dh,i64 -4
%dj=bitcast i8*%di to i32*
store i32 1342177304,i32*%dj,align 4
%dk=getelementptr inbounds i8,i8*%dh,i64 12
%dl=bitcast i8*%dk to i32*
store i32 0,i32*%dl,align 1
%dm=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%dn=bitcast i8*%dh to i8**
store i8*%dm,i8**%dn,align 8
%do=getelementptr inbounds i8,i8*%dh,i64 8
%dp=bitcast i8*%do to i32*
store i32%be,i32*%dp,align 4
%dq=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%dr=getelementptr inbounds i8,i8*%dh,i64 16
%ds=bitcast i8*%dr to i8**
store i8*%dq,i8**%ds,align 8
%dt=getelementptr inbounds i8,i8*%dh,i64 24
%du=bitcast i8*%dt to i32*
store i32 5,i32*%du,align 4
%dv=call fastcc i8*@_SMLFN16Word8VectorSlice5sliceE(i8*inreg%dh)
store i8*%dv,i8**%b,align 8
%dw=call i8*@sml_alloc(i32 inreg 28)#0
%dx=getelementptr inbounds i8,i8*%dw,i64 -4
%dy=bitcast i8*%dx to i32*
store i32 1342177304,i32*%dy,align 4
%dz=bitcast i8*%dw to i64*
store i64 0,i64*%dz,align 4
%dA=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%dB=getelementptr inbounds i8,i8*%dw,i64 8
%dC=bitcast i8*%dB to i8**
store i8*%dA,i8**%dC,align 8
%dD=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%dE=getelementptr inbounds i8,i8*%dw,i64 16
%dF=bitcast i8*%dE to i8**
store i8*%dD,i8**%dF,align 8
%dG=getelementptr inbounds i8,i8*%dw,i64 24
%dH=bitcast i8*%dG to i32*
store i32 6,i32*%dH,align 4
call fastcc void@_SMLFN15Word8ArraySlice7copyVecE(i8*inreg%dw)
%dI=load i32*,i32**%aP,align 8
store i32%c8,i32*%dI,align 4
ret void
dJ:
store i32%aN,i32*%bj,align 4
%dK=getelementptr inbounds i8,i8*%bg,i64 8
%dL=bitcast i8*%dK to i32*
store i32 0,i32*%dL,align 4
%dM=call i8*@sml_alloc(i32 inreg 28)#0
%dN=getelementptr inbounds i8,i8*%dM,i64 -4
%dO=bitcast i8*%dN to i32*
store i32 1342177304,i32*%dO,align 4
%dP=getelementptr inbounds i8,i8*%dM,i64 12
%dQ=bitcast i8*%dP to i32*
store i32 0,i32*%dQ,align 1
%dR=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%dS=bitcast i8*%dM to i8**
store i8*%dR,i8**%dS,align 8
%dT=getelementptr inbounds i8,i8*%dM,i64 8
%dU=bitcast i8*%dT to i32*
store i32 0,i32*%dU,align 4
%dV=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%dW=getelementptr inbounds i8,i8*%dM,i64 16
%dX=bitcast i8*%dW to i8**
store i8*%dV,i8**%dX,align 8
%dY=getelementptr inbounds i8,i8*%dM,i64 24
%dZ=bitcast i8*%dY to i32*
store i32 5,i32*%dZ,align 4
%d0=call fastcc i8*@_SMLFN16Word8VectorSlice5sliceE(i8*inreg%dM)
store i8*%d0,i8**%c,align 8
%d1=call i8*@sml_alloc(i32 inreg 28)#0
%d2=bitcast i8*%d1 to i32*
%d3=getelementptr inbounds i8,i8*%d1,i64 -4
%d4=bitcast i8*%d3 to i32*
store i32 1342177304,i32*%d4,align 4
%d5=getelementptr inbounds i8,i8*%d1,i64 4
%d6=bitcast i8*%d5 to i32*
store i32 0,i32*%d6,align 1
store i32%aS,i32*%d2,align 4
%d7=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%d8=getelementptr inbounds i8,i8*%d1,i64 8
%d9=bitcast i8*%d8 to i8**
store i8*%d7,i8**%d9,align 8
%ea=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%eb=getelementptr inbounds i8,i8*%d1,i64 16
%ec=bitcast i8*%eb to i8**
store i8*%ea,i8**%ec,align 8
%ed=getelementptr inbounds i8,i8*%d1,i64 24
%ee=bitcast i8*%ed to i32*
store i32 6,i32*%ee,align 4
call fastcc void@_SMLFN15Word8ArraySlice7copyVecE(i8*inreg%d1)
%ef=call{i32,i1}@llvm.sadd.with.overflow.i32(i32%aS,i32%aN)#0
%eg=extractvalue{i32,i1}%ef,1
br i1%eg,label%eh,label%ez
eh:
store i8*null,i8**%e,align 8
%ei=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%ei,i8**%b,align 8
%ej=call i8*@sml_alloc(i32 inreg 20)#0
%ek=getelementptr inbounds i8,i8*%ej,i64 -4
%el=bitcast i8*%ek to i32*
store i32 1342177296,i32*%el,align 4
store i8*%ej,i8**%c,align 8
%em=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%en=bitcast i8*%ej to i8**
store i8*%em,i8**%en,align 8
%eo=getelementptr inbounds i8,i8*%ej,i64 8
%ep=bitcast i8*%eo to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@X,i64 0,i32 2,i64 0),i8**%ep,align 8
%eq=getelementptr inbounds i8,i8*%ej,i64 16
%er=bitcast i8*%eq to i32*
store i32 3,i32*%er,align 4
%es=call i8*@sml_alloc(i32 inreg 60)#0
%et=getelementptr inbounds i8,i8*%es,i64 -4
%eu=bitcast i8*%et to i32*
store i32 1342177336,i32*%eu,align 4
%ev=getelementptr inbounds i8,i8*%es,i64 56
%ew=bitcast i8*%ev to i32*
store i32 1,i32*%ew,align 4
%ex=load i8*,i8**%c,align 8
%ey=bitcast i8*%es to i8**
store i8*%ex,i8**%ey,align 8
call void@sml_raise(i8*inreg%es)#1
unreachable
ez:
%eA=add nsw i32%aS,%aN
%eB=load i32*,i32**%aP,align 8
store i32%eA,i32*%eB,align 4
%eC=icmp eq i32%aN,%be
br i1%eC,label%eD,label%f5
eD:
%eE=bitcast i8**%b to i8***
%eF=load i8**,i8***%eE,align 8
%eG=load i8*,i8**%eF,align 8
store i8*%eG,i8**%c,align 8
%eH=getelementptr inbounds i8*,i8**%eF,i64 4
%eI=load i8*,i8**%eH,align 8
store i8*%eI,i8**%d,align 8
%eJ=getelementptr inbounds i8*,i8**%eF,i64 5
%eK=load i8*,i8**%eJ,align 8
%eL=bitcast i8*%eI to i32*
%eM=load i32,i32*%eL,align 4
%eN=icmp eq i32%eM,0
br i1%eN,label%f5,label%eO
eO:
%eP=getelementptr inbounds i8,i8*%eK,i64 16
%eQ=bitcast i8*%eP to i8*(i8*,i8*)**
%eR=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%eQ,align 8
%eS=bitcast i8*%eK to i8**
%eT=load i8*,i8**%eS,align 8
store i8*%eT,i8**%e,align 8
%eU=call i8*@sml_alloc(i32 inreg 12)#0
%eV=getelementptr inbounds i8,i8*%eU,i64 -4
%eW=bitcast i8*%eV to i32*
store i32 1342177288,i32*%eW,align 4
store i8*%eU,i8**%f,align 8
%eX=getelementptr inbounds i8,i8*%eU,i64 4
%eY=bitcast i8*%eX to i32*
store i32 0,i32*%eY,align 1
%eZ=bitcast i8*%eU to i32*
store i32%eM,i32*%eZ,align 4
%e0=getelementptr inbounds i8,i8*%eU,i64 8
%e1=bitcast i8*%e0 to i32*
store i32 0,i32*%e1,align 4
%e2=call i8*@sml_alloc(i32 inreg 28)#0
%e3=getelementptr inbounds i8,i8*%e2,i64 -4
%e4=bitcast i8*%e3 to i32*
store i32 1342177304,i32*%e4,align 4
%e5=getelementptr inbounds i8,i8*%e2,i64 12
%e6=bitcast i8*%e5 to i32*
store i32 0,i32*%e6,align 1
%e7=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%e8=bitcast i8*%e2 to i8**
store i8*%e7,i8**%e8,align 8
%e9=getelementptr inbounds i8,i8*%e2,i64 8
%fa=bitcast i8*%e9 to i32*
store i32 0,i32*%fa,align 4
%fb=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%fc=getelementptr inbounds i8,i8*%e2,i64 16
%fd=bitcast i8*%fc to i8**
store i8*%fb,i8**%fd,align 8
%fe=getelementptr inbounds i8,i8*%e2,i64 24
%ff=bitcast i8*%fe to i32*
store i32 5,i32*%ff,align 4
%fg=invoke fastcc i8*@_SMLFN15Word8ArraySlice5sliceE(i8*inreg%e2)
to label%fh unwind label%fn
fh:
%fi=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%fj=invoke fastcc i8*%eR(i8*inreg%fi,i8*inreg%fg)
to label%fk unwind label%fn
fk:
%fl=bitcast i8**%d to i32**
%fm=load i32*,i32**%fl,align 8
store i32 0,i32*%fm,align 4
ret void
fn:
%fo=landingpad{i8*,i8*}
catch i8*null
%fp=extractvalue{i8*,i8*}%fo,1
%fq=bitcast i8*%fp to i8**
%fr=load i8*,i8**%fq,align 8
store i8*null,i8**%d,align 8
store i8*%fr,i8**%e,align 8
%fs=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%fs,i8**%c,align 8
%ft=load i8*,i8**%b,align 8
%fu=getelementptr inbounds i8,i8*%ft,i64 56
%fv=bitcast i8*%fu to i8**
%fw=load i8*,i8**%fv,align 8
%fx=getelementptr inbounds i8,i8*%fw,i64 56
%fy=bitcast i8*%fx to i8**
%fz=load i8*,i8**%fy,align 8
store i8*%fz,i8**%b,align 8
%fA=call i8*@sml_alloc(i32 inreg 28)#0
%fB=getelementptr inbounds i8,i8*%fA,i64 -4
%fC=bitcast i8*%fB to i32*
store i32 1342177304,i32*%fC,align 4
store i8*%fA,i8**%d,align 8
%fD=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%fE=bitcast i8*%fA to i8**
store i8*%fD,i8**%fE,align 8
%fF=getelementptr inbounds i8,i8*%fA,i64 8
%fG=bitcast i8*%fF to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[7x i8]}>,<{[4x i8],i32,[7x i8]}>*@Y,i64 0,i32 2,i64 0),i8**%fG,align 8
%fH=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%fI=getelementptr inbounds i8,i8*%fA,i64 16
%fJ=bitcast i8*%fI to i8**
store i8*%fH,i8**%fJ,align 8
%fK=getelementptr inbounds i8,i8*%fA,i64 24
%fL=bitcast i8*%fK to i32*
store i32 7,i32*%fL,align 4
%fM=call i8*@sml_alloc(i32 inreg 28)#0
%fN=getelementptr inbounds i8,i8*%fM,i64 -4
%fO=bitcast i8*%fN to i32*
store i32 1342177304,i32*%fO,align 4
store i8*%fM,i8**%b,align 8
%fP=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%fQ=bitcast i8*%fM to i8**
store i8*%fP,i8**%fQ,align 8
%fR=getelementptr inbounds i8,i8*%fM,i64 8
%fS=bitcast i8*%fR to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@aM,i64 0,i32 2,i64 0),i8**%fS,align 8
%fT=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%fU=getelementptr inbounds i8,i8*%fM,i64 16
%fV=bitcast i8*%fU to i8**
store i8*%fT,i8**%fV,align 8
%fW=getelementptr inbounds i8,i8*%fM,i64 24
%fX=bitcast i8*%fW to i32*
store i32 7,i32*%fX,align 4
%fY=call i8*@sml_alloc(i32 inreg 60)#0
%fZ=getelementptr inbounds i8,i8*%fY,i64 -4
%f0=bitcast i8*%fZ to i32*
store i32 1342177336,i32*%f0,align 4
%f1=getelementptr inbounds i8,i8*%fY,i64 56
%f2=bitcast i8*%f1 to i32*
store i32 1,i32*%f2,align 4
%f3=load i8*,i8**%b,align 8
%f4=bitcast i8*%fY to i8**
store i8*%f3,i8**%f4,align 8
call void@sml_raise(i8*inreg%fY)#1
unreachable
f5:
ret void
f6:
%f7=phi i32**[%aJ,%aH],[%aP,%aK]
%f8=phi i32*[%aI,%aH],[%aQ,%aK]
%f9=load i32,i32*%f8,align 4
%ga=icmp eq i32%f9,0
br i1%ga,label%gN,label%gb
gb:
%gc=load i8*,i8**%b,align 8
%gd=getelementptr inbounds i8,i8*%gc,i64 40
%ge=bitcast i8*%gd to i8**
%gf=load i8*,i8**%ge,align 8
%gg=getelementptr inbounds i8,i8*%gf,i64 16
%gh=bitcast i8*%gg to i8*(i8*,i8*)**
%gi=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%gh,align 8
%gj=bitcast i8*%gf to i8**
%gk=load i8*,i8**%gj,align 8
store i8*%gk,i8**%f,align 8
%gl=call i8*@sml_alloc(i32 inreg 12)#0
%gm=getelementptr inbounds i8,i8*%gl,i64 -4
%gn=bitcast i8*%gm to i32*
store i32 1342177288,i32*%gn,align 4
store i8*%gl,i8**%g,align 8
%go=getelementptr inbounds i8,i8*%gl,i64 4
%gp=bitcast i8*%go to i32*
store i32 0,i32*%gp,align 1
%gq=bitcast i8*%gl to i32*
store i32%f9,i32*%gq,align 4
%gr=getelementptr inbounds i8,i8*%gl,i64 8
%gs=bitcast i8*%gr to i32*
store i32 0,i32*%gs,align 4
%gt=call i8*@sml_alloc(i32 inreg 28)#0
%gu=getelementptr inbounds i8,i8*%gt,i64 -4
%gv=bitcast i8*%gu to i32*
store i32 1342177304,i32*%gv,align 4
%gw=getelementptr inbounds i8,i8*%gt,i64 12
%gx=bitcast i8*%gw to i32*
store i32 0,i32*%gx,align 1
%gy=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%gz=bitcast i8*%gt to i8**
store i8*%gy,i8**%gz,align 8
%gA=getelementptr inbounds i8,i8*%gt,i64 8
%gB=bitcast i8*%gA to i32*
store i32 0,i32*%gB,align 4
%gC=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%gD=getelementptr inbounds i8,i8*%gt,i64 16
%gE=bitcast i8*%gD to i8**
store i8*%gC,i8**%gE,align 8
%gF=getelementptr inbounds i8,i8*%gt,i64 24
%gG=bitcast i8*%gF to i32*
store i32 5,i32*%gG,align 4
%gH=invoke fastcc i8*@_SMLFN15Word8ArraySlice5sliceE(i8*inreg%gt)
to label%gI unwind label%g3
gI:
%gJ=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%gK=invoke fastcc i8*%gi(i8*inreg%gJ,i8*inreg%gH)
to label%gL unwind label%g3
gL:
%gM=load i32*,i32**%f7,align 8
store i8*null,i8**%e,align 8
store i32 0,i32*%gM,align 4
br label%gO
gN:
store i8*null,i8**%e,align 8
br label%gO
gO:
%gP=load i8*,i8**%b,align 8
%gQ=getelementptr inbounds i8,i8*%gP,i64 48
%gR=bitcast i8*%gQ to i8**
%gS=load i8*,i8**%gR,align 8
%gT=getelementptr inbounds i8,i8*%gS,i64 16
%gU=bitcast i8*%gT to i8*(i8*,i8*)**
%gV=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%gU,align 8
%gW=bitcast i8*%gS to i8**
%gX=load i8*,i8**%gW,align 8
store i8*%gX,i8**%d,align 8
%gY=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%gZ=invoke fastcc i8*@_SMLFN16Word8VectorSlice4fullE(i8*inreg%gY)
to label%g0 unwind label%g3
g0:
%g1=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%g2=invoke fastcc i8*%gV(i8*inreg%g1,i8*inreg%gZ)
to label%f5 unwind label%g3
g3:
%g4=landingpad{i8*,i8*}
catch i8*null
%g5=extractvalue{i8*,i8*}%g4,1
%g6=bitcast i8*%g5 to i8**
%g7=load i8*,i8**%g6,align 8
store i8*null,i8**%f,align 8
store i8*null,i8**%d,align 8
store i8*%g7,i8**%e,align 8
%g8=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%g8,i8**%c,align 8
%g9=load i8*,i8**%b,align 8
%ha=getelementptr inbounds i8,i8*%g9,i64 56
%hb=bitcast i8*%ha to i8**
%hc=load i8*,i8**%hb,align 8
%hd=getelementptr inbounds i8,i8*%hc,i64 56
%he=bitcast i8*%hd to i8**
%hf=load i8*,i8**%he,align 8
store i8*%hf,i8**%b,align 8
%hg=call i8*@sml_alloc(i32 inreg 28)#0
%hh=getelementptr inbounds i8,i8*%hg,i64 -4
%hi=bitcast i8*%hh to i32*
store i32 1342177304,i32*%hi,align 4
store i8*%hg,i8**%d,align 8
%hj=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%hk=bitcast i8*%hg to i8**
store i8*%hj,i8**%hk,align 8
%hl=getelementptr inbounds i8,i8*%hg,i64 8
%hm=bitcast i8*%hl to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[7x i8]}>,<{[4x i8],i32,[7x i8]}>*@Y,i64 0,i32 2,i64 0),i8**%hm,align 8
%hn=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%ho=getelementptr inbounds i8,i8*%hg,i64 16
%hp=bitcast i8*%ho to i8**
store i8*%hn,i8**%hp,align 8
%hq=getelementptr inbounds i8,i8*%hg,i64 24
%hr=bitcast i8*%hq to i32*
store i32 7,i32*%hr,align 4
%hs=call i8*@sml_alloc(i32 inreg 28)#0
%ht=getelementptr inbounds i8,i8*%hs,i64 -4
%hu=bitcast i8*%ht to i32*
store i32 1342177304,i32*%hu,align 4
store i8*%hs,i8**%b,align 8
%hv=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%hw=bitcast i8*%hs to i8**
store i8*%hv,i8**%hw,align 8
%hx=getelementptr inbounds i8,i8*%hs,i64 8
%hy=bitcast i8*%hx to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@aM,i64 0,i32 2,i64 0),i8**%hy,align 8
%hz=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%hA=getelementptr inbounds i8,i8*%hs,i64 16
%hB=bitcast i8*%hA to i8**
store i8*%hz,i8**%hB,align 8
%hC=getelementptr inbounds i8,i8*%hs,i64 24
%hD=bitcast i8*%hC to i32*
store i32 7,i32*%hD,align 4
%hE=call i8*@sml_alloc(i32 inreg 60)#0
%hF=getelementptr inbounds i8,i8*%hE,i64 -4
%hG=bitcast i8*%hF to i32*
store i32 1342177336,i32*%hG,align 4
%hH=getelementptr inbounds i8,i8*%hE,i64 56
%hI=bitcast i8*%hH to i32*
store i32 1,i32*%hI,align 4
%hJ=load i8*,i8**%b,align 8
%hK=bitcast i8*%hE to i8**
store i8*%hJ,i8**%hK,align 8
call void@sml_raise(i8*inreg%hE)#1
unreachable
}
define fastcc void@_SMLFN5BinIO8StreamIO7output1E(i8*inreg%a)#2 gc"smlsharp"personality i32(...)*@sml_personality{
m:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
call void@llvm.gcroot(i8**%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=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 8
%u=getelementptr inbounds i8,i8*%o,i64 32
%v=bitcast i8*%u to i8**
%w=load i8*,i8**%v,align 8
store i8*%w,i8**%d,align 8
%x=getelementptr inbounds i8,i8*%o,i64 40
%y=bitcast i8*%x to i8**
%z=load i8*,i8**%y,align 8
store i8*%z,i8**%e,align 8
%A=getelementptr inbounds i8,i8*%l,i64 8
%B=load i8,i8*%A,align 1
%C=getelementptr inbounds i8,i8*%o,i64 24
%D=bitcast i8*%C to i32**
%E=load i32*,i32**%D,align 8
%F=load i32,i32*%E,align 4
%G=icmp eq i32%F,0
%H=bitcast i8*%w to i32*
br i1%G,label%aG,label%I
I:
store i8*null,i8**%e,align 8
%J=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%J,i8**%c,align 8
%K=load i8*,i8**@_SMLZN2IO12ClosedStreamE,align 8
store i8*%K,i8**%d,align 8
%L=call i8*@sml_alloc(i32 inreg 20)#0
%M=getelementptr inbounds i8,i8*%L,i64 -4
%N=bitcast i8*%M to i32*
store i32 1342177296,i32*%N,align 4
store i8*%L,i8**%e,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=getelementptr inbounds i8,i8*%L,i64 8
%R=bitcast i8*%Q to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@aA,i64 0,i32 2,i64 0),i8**%R,align 8
%S=getelementptr inbounds i8,i8*%L,i64 16
%T=bitcast i8*%S to i32*
store i32 3,i32*%T,align 4
%U=load i8*,i8**%b,align 8
%V=getelementptr inbounds i8,i8*%U,i64 56
%W=bitcast i8*%V to i8**
%X=load i8*,i8**%W,align 8
%Y=getelementptr inbounds i8,i8*%X,i64 56
%Z=bitcast i8*%Y to i8**
%aa=load i8*,i8**%Z,align 8
store i8*%aa,i8**%b,align 8
%ab=call i8*@sml_alloc(i32 inreg 28)#0
%ac=getelementptr inbounds i8,i8*%ab,i64 -4
%ad=bitcast i8*%ac to i32*
store i32 1342177304,i32*%ad,align 4
store i8*%ab,i8**%d,align 8
%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 i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[8x i8]}>,<{[4x i8],i32,[8x i8]}>*@ad,i64 0,i32 2,i64 0),i8**%ah,align 8
%ai=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aj=getelementptr inbounds i8,i8*%ab,i64 16
%ak=bitcast i8*%aj to i8**
store i8*%ai,i8**%ak,align 8
%al=getelementptr inbounds i8,i8*%ab,i64 24
%am=bitcast i8*%al to i32*
store i32 7,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
store i8*%an,i8**%b,align 8
%aq=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ar=bitcast i8*%an to i8**
store i8*%aq,i8**%ar,align 8
%as=getelementptr inbounds i8,i8*%an,i64 8
%at=bitcast i8*%as to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@aM,i64 0,i32 2,i64 0),i8**%at,align 8
%au=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%av=getelementptr inbounds i8,i8*%an,i64 16
%aw=bitcast i8*%av to i8**
store i8*%au,i8**%aw,align 8
%ax=getelementptr inbounds i8,i8*%an,i64 24
%ay=bitcast i8*%ax to i32*
store i32 7,i32*%ay,align 4
%az=call i8*@sml_alloc(i32 inreg 60)#0
%aA=getelementptr inbounds i8,i8*%az,i64 -4
%aB=bitcast i8*%aA to i32*
store i32 1342177336,i32*%aB,align 4
%aC=getelementptr inbounds i8,i8*%az,i64 56
%aD=bitcast i8*%aC to i32*
store i32 1,i32*%aD,align 4
%aE=load i8*,i8**%b,align 8
%aF=bitcast i8*%az to i8**
store i8*%aE,i8**%aF,align 8
call void@sml_raise(i8*inreg%az)#1
unreachable
aG:
%aH=load i32,i32*%t,align 4
%aI=icmp eq i32%aH,2
br i1%aI,label%cP,label%aJ
aJ:
store i8*null,i8**%e,align 8
%aK=bitcast i8**%d to i32**
%aL=load i32,i32*%H,align 4
%aM=call{i32,i1}@llvm.sadd.with.overflow.i32(i32%aL,i32 1)#0
%aN=extractvalue{i32,i1}%aM,1
br i1%aN,label%aO,label%a6
aO:
store i8*null,i8**%c,align 8
store i8*null,i8**%d,align 8
%aP=load i8*,i8**@_SMLZ8Overflow,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,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@ac,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=add nsw i32%aL,1
%a8=call i8*@sml_alloc(i32 inreg 20)#0
%a9=getelementptr inbounds i8,i8*%a8,i64 -4
%ba=bitcast i8*%a9 to i32*
store i32 1342177296,i32*%ba,align 4
%bb=getelementptr inbounds i8,i8*%a8,i64 13
call void@llvm.memset.p0i8.i32(i8*%bb,i8 0,i32 3,i1 false)
%bc=load i8*,i8**%c,align 8
%bd=bitcast i8*%a8 to i8**
store i8*%bc,i8**%bd,align 8
%be=getelementptr inbounds i8,i8*%a8,i64 8
%bf=bitcast i8*%be to i32*
store i32%aL,i32*%bf,align 4
%bg=getelementptr inbounds i8,i8*%a8,i64 12
store i8%B,i8*%bg,align 1
%bh=getelementptr inbounds i8,i8*%a8,i64 16
%bi=bitcast i8*%bh to i32*
store i32 1,i32*%bi,align 4
call fastcc void@_SMLFN10Word8Array6updateE(i8*inreg%a8)
%bj=load i32*,i32**%aK,align 8
store i8*null,i8**%d,align 8
store i32%a7,i32*%bj,align 4
%bk=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bl=call fastcc i32@_SMLFN10Word8Array6lengthE(i8*inreg%bk)
%bm=icmp eq i32%a7,%bl
br i1%bm,label%bn,label%cO
bn:
%bo=bitcast i8**%b to i8***
%bp=load i8**,i8***%bo,align 8
%bq=load i8*,i8**%bp,align 8
store i8*%bq,i8**%c,align 8
%br=getelementptr inbounds i8*,i8**%bp,i64 4
%bs=load i8*,i8**%br,align 8
store i8*%bs,i8**%d,align 8
%bt=getelementptr inbounds i8*,i8**%bp,i64 5
%bu=load i8*,i8**%bt,align 8
%bv=bitcast i8*%bs to i32*
%bw=load i32,i32*%bv,align 4
%bx=icmp eq i32%bw,0
br i1%bx,label%cO,label%by
by:
%bz=getelementptr inbounds i8,i8*%bu,i64 16
%bA=bitcast i8*%bz to i8*(i8*,i8*)**
%bB=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bA,align 8
%bC=bitcast i8*%bu to i8**
%bD=load i8*,i8**%bC,align 8
store i8*%bD,i8**%e,align 8
%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**%f,align 8
%bH=getelementptr inbounds i8,i8*%bE,i64 4
%bI=bitcast i8*%bH to i32*
store i32 0,i32*%bI,align 1
%bJ=bitcast i8*%bE to i32*
store i32%bw,i32*%bJ,align 4
%bK=getelementptr inbounds i8,i8*%bE,i64 8
%bL=bitcast i8*%bK to i32*
store i32 0,i32*%bL,align 4
%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=getelementptr inbounds i8,i8*%bM,i64 12
%bQ=bitcast i8*%bP to i32*
store i32 0,i32*%bQ,align 1
%bR=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bS=bitcast i8*%bM to i8**
store i8*%bR,i8**%bS,align 8
%bT=getelementptr inbounds i8,i8*%bM,i64 8
%bU=bitcast i8*%bT to i32*
store i32 0,i32*%bU,align 4
%bV=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%bW=getelementptr inbounds i8,i8*%bM,i64 16
%bX=bitcast i8*%bW to i8**
store i8*%bV,i8**%bX,align 8
%bY=getelementptr inbounds i8,i8*%bM,i64 24
%bZ=bitcast i8*%bY to i32*
store i32 5,i32*%bZ,align 4
%b0=invoke fastcc i8*@_SMLFN15Word8ArraySlice5sliceE(i8*inreg%bM)
to label%b1 unwind label%b6
b1:
%b2=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%b3=invoke fastcc i8*%bB(i8*inreg%b2,i8*inreg%b0)
to label%b4 unwind label%b6
b4:
%b5=load i32*,i32**%aK,align 8
store i32 0,i32*%b5,align 4
ret void
b6:
%b7=landingpad{i8*,i8*}
catch i8*null
%b8=extractvalue{i8*,i8*}%b7,1
%b9=bitcast i8*%b8 to i8**
%ca=load i8*,i8**%b9,align 8
store i8*null,i8**%d,align 8
store i8*%ca,i8**%e,align 8
%cb=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%cb,i8**%c,align 8
%cc=load i8*,i8**%b,align 8
%cd=getelementptr inbounds i8,i8*%cc,i64 56
%ce=bitcast i8*%cd to i8**
%cf=load i8*,i8**%ce,align 8
%cg=getelementptr inbounds i8,i8*%cf,i64 56
%ch=bitcast i8*%cg to i8**
%ci=load i8*,i8**%ch,align 8
store i8*%ci,i8**%b,align 8
%cj=call i8*@sml_alloc(i32 inreg 28)#0
%ck=getelementptr inbounds i8,i8*%cj,i64 -4
%cl=bitcast i8*%ck to i32*
store i32 1342177304,i32*%cl,align 4
store i8*%cj,i8**%d,align 8
%cm=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%cn=bitcast i8*%cj to i8**
store i8*%cm,i8**%cn,align 8
%co=getelementptr inbounds i8,i8*%cj,i64 8
%cp=bitcast i8*%co to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[8x i8]}>,<{[4x i8],i32,[8x i8]}>*@ad,i64 0,i32 2,i64 0),i8**%cp,align 8
%cq=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%cr=getelementptr inbounds i8,i8*%cj,i64 16
%cs=bitcast i8*%cr to i8**
store i8*%cq,i8**%cs,align 8
%ct=getelementptr inbounds i8,i8*%cj,i64 24
%cu=bitcast i8*%ct to i32*
store i32 7,i32*%cu,align 4
%cv=call i8*@sml_alloc(i32 inreg 28)#0
%cw=getelementptr inbounds i8,i8*%cv,i64 -4
%cx=bitcast i8*%cw to i32*
store i32 1342177304,i32*%cx,align 4
store i8*%cv,i8**%b,align 8
%cy=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%cz=bitcast i8*%cv to i8**
store i8*%cy,i8**%cz,align 8
%cA=getelementptr inbounds i8,i8*%cv,i64 8
%cB=bitcast i8*%cA to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@aM,i64 0,i32 2,i64 0),i8**%cB,align 8
%cC=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%cD=getelementptr inbounds i8,i8*%cv,i64 16
%cE=bitcast i8*%cD to i8**
store i8*%cC,i8**%cE,align 8
%cF=getelementptr inbounds i8,i8*%cv,i64 24
%cG=bitcast i8*%cF to i32*
store i32 7,i32*%cG,align 4
%cH=call i8*@sml_alloc(i32 inreg 60)#0
%cI=getelementptr inbounds i8,i8*%cH,i64 -4
%cJ=bitcast i8*%cI to i32*
store i32 1342177336,i32*%cJ,align 4
%cK=getelementptr inbounds i8,i8*%cH,i64 56
%cL=bitcast i8*%cK to i32*
store i32 1,i32*%cL,align 4
%cM=load i8*,i8**%b,align 8
%cN=bitcast i8*%cH to i8**
store i8*%cM,i8**%cN,align 8
call void@sml_raise(i8*inreg%cH)#1
unreachable
cO:
ret void
cP:
store i8*null,i8**%d,align 8
%cQ=call i8*@sml_alloc(i32 inreg 20)#0
%cR=getelementptr inbounds i8,i8*%cQ,i64 -4
%cS=bitcast i8*%cR to i32*
store i32 1342177296,i32*%cS,align 4
%cT=getelementptr inbounds i8,i8*%cQ,i64 13
call void@llvm.memset.p0i8.i32(i8*%cT,i8 0,i32 3,i1 false)
%cU=load i8*,i8**%c,align 8
%cV=bitcast i8*%cQ to i8**
store i8*%cU,i8**%cV,align 8
%cW=getelementptr inbounds i8,i8*%cQ,i64 8
%cX=bitcast i8*%cW to i32*
store i32 0,i32*%cX,align 4
%cY=getelementptr inbounds i8,i8*%cQ,i64 12
store i8%B,i8*%cY,align 1
%cZ=getelementptr inbounds i8,i8*%cQ,i64 16
%c0=bitcast i8*%cZ to i32*
store i32 1,i32*%c0,align 4
call fastcc void@_SMLFN10Word8Array6updateE(i8*inreg%cQ)
%c1=load i8*,i8**%e,align 8
%c2=getelementptr inbounds i8,i8*%c1,i64 16
%c3=bitcast i8*%c2 to i8*(i8*,i8*)**
%c4=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%c3,align 8
store i8*null,i8**%e,align 8
%c5=bitcast i8*%c1 to i8**
%c6=load i8*,i8**%c5,align 8
store i8*%c6,i8**%d,align 8
%c7=call i8*@sml_alloc(i32 inreg 28)#0
%c8=getelementptr inbounds i8,i8*%c7,i64 -4
%c9=bitcast i8*%c8 to i32*
store i32 1342177304,i32*%c9,align 4
%da=getelementptr inbounds i8,i8*%c7,i64 12
%db=bitcast i8*%da to i32*
store i32 0,i32*%db,align 1
%dc=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%dd=bitcast i8*%c7 to i8**
store i8*%dc,i8**%dd,align 8
%de=getelementptr inbounds i8,i8*%c7,i64 8
%df=bitcast i8*%de to i32*
store i32 0,i32*%df,align 4
%dg=getelementptr inbounds i8,i8*%c7,i64 16
%dh=bitcast i8*%dg to i8**
store i8*bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@ab,i64 0,i32 2)to i8*),i8**%dh,align 8
%di=getelementptr inbounds i8,i8*%c7,i64 24
%dj=bitcast i8*%di to i32*
store i32 5,i32*%dj,align 4
%dk=invoke fastcc i8*@_SMLFN15Word8ArraySlice5sliceE(i8*inreg%c7)
to label%dl unwind label%do
dl:
%dm=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%dn=invoke fastcc i8*%c4(i8*inreg%dm,i8*inreg%dk)
to label%cO unwind label%do
do:
%dp=landingpad{i8*,i8*}
catch i8*null
%dq=extractvalue{i8*,i8*}%dp,1
%dr=bitcast i8*%dq to i8**
%ds=load i8*,i8**%dr,align 8
store i8*null,i8**%d,align 8
store i8*%ds,i8**%e,align 8
%dt=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%dt,i8**%c,align 8
%du=load i8*,i8**%b,align 8
%dv=getelementptr inbounds i8,i8*%du,i64 56
%dw=bitcast i8*%dv to i8**
%dx=load i8*,i8**%dw,align 8
%dy=getelementptr inbounds i8,i8*%dx,i64 56
%dz=bitcast i8*%dy to i8**
%dA=load i8*,i8**%dz,align 8
store i8*%dA,i8**%b,align 8
%dB=call i8*@sml_alloc(i32 inreg 28)#0
%dC=getelementptr inbounds i8,i8*%dB,i64 -4
%dD=bitcast i8*%dC to i32*
store i32 1342177304,i32*%dD,align 4
store i8*%dB,i8**%d,align 8
%dE=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%dF=bitcast i8*%dB to i8**
store i8*%dE,i8**%dF,align 8
%dG=getelementptr inbounds i8,i8*%dB,i64 8
%dH=bitcast i8*%dG to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[8x i8]}>,<{[4x i8],i32,[8x i8]}>*@ad,i64 0,i32 2,i64 0),i8**%dH,align 8
%dI=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%dJ=getelementptr inbounds i8,i8*%dB,i64 16
%dK=bitcast i8*%dJ to i8**
store i8*%dI,i8**%dK,align 8
%dL=getelementptr inbounds i8,i8*%dB,i64 24
%dM=bitcast i8*%dL to i32*
store i32 7,i32*%dM,align 4
%dN=call i8*@sml_alloc(i32 inreg 28)#0
%dO=getelementptr inbounds i8,i8*%dN,i64 -4
%dP=bitcast i8*%dO to i32*
store i32 1342177304,i32*%dP,align 4
store i8*%dN,i8**%b,align 8
%dQ=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%dR=bitcast i8*%dN to i8**
store i8*%dQ,i8**%dR,align 8
%dS=getelementptr inbounds i8,i8*%dN,i64 8
%dT=bitcast i8*%dS to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@aM,i64 0,i32 2,i64 0),i8**%dT,align 8
%dU=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%dV=getelementptr inbounds i8,i8*%dN,i64 16
%dW=bitcast i8*%dV to i8**
store i8*%dU,i8**%dW,align 8
%dX=getelementptr inbounds i8,i8*%dN,i64 24
%dY=bitcast i8*%dX to i32*
store i32 7,i32*%dY,align 4
%dZ=call i8*@sml_alloc(i32 inreg 60)#0
%d0=getelementptr inbounds i8,i8*%dZ,i64 -4
%d1=bitcast i8*%d0 to i32*
store i32 1342177336,i32*%d1,align 4
%d2=getelementptr inbounds i8,i8*%dZ,i64 56
%d3=bitcast i8*%d2 to i32*
store i32 1,i32*%d3,align 4
%d4=load i8*,i8**%b,align 8
%d5=bitcast i8*%dZ to i8**
store i8*%d4,i8**%d5,align 8
call void@sml_raise(i8*inreg%dZ)#1
unreachable
}
define fastcc void@_SMLFN5BinIO8StreamIO8flushOutE(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
%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%i,label%k
i:
%j=bitcast i8*%a to i8**
br label%n
k:
call void@sml_check(i32 inreg%g)
%l=bitcast i8**%b 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
store i8*%p,i8**%c,align 8
%q=getelementptr inbounds i8*,i8**%o,i64 4
%r=load i8*,i8**%q,align 8
store i8*%r,i8**%d,align 8
%s=getelementptr inbounds i8*,i8**%o,i64 5
%t=load i8*,i8**%s,align 8
%u=bitcast i8*%r to i32*
%v=load i32,i32*%u,align 4
%w=icmp eq i32%v,0
br i1%w,label%aY,label%x
x:
%y=getelementptr inbounds i8,i8*%t,i64 16
%z=bitcast i8*%y to i8*(i8*,i8*)**
%A=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%z,align 8
%B=bitcast i8*%t to i8**
%C=load i8*,i8**%B,align 8
store i8*%C,i8**%e,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**%f,align 8
%G=getelementptr inbounds i8,i8*%D,i64 4
%H=bitcast i8*%G to i32*
store i32 0,i32*%H,align 1
%I=bitcast i8*%D to i32*
store i32%v,i32*%I,align 4
%J=getelementptr inbounds i8,i8*%D,i64 8
%K=bitcast i8*%J to i32*
store i32 0,i32*%K,align 4
%L=call i8*@sml_alloc(i32 inreg 28)#0
%M=getelementptr inbounds i8,i8*%L,i64 -4
%N=bitcast i8*%M to i32*
store i32 1342177304,i32*%N,align 4
%O=getelementptr inbounds i8,i8*%L,i64 12
%P=bitcast i8*%O to i32*
store i32 0,i32*%P,align 1
%Q=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%R=bitcast i8*%L to i8**
store i8*%Q,i8**%R,align 8
%S=getelementptr inbounds i8,i8*%L,i64 8
%T=bitcast i8*%S to i32*
store i32 0,i32*%T,align 4
%U=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%V=getelementptr inbounds i8,i8*%L,i64 16
%W=bitcast i8*%V to i8**
store i8*%U,i8**%W,align 8
%X=getelementptr inbounds i8,i8*%L,i64 24
%Y=bitcast i8*%X to i32*
store i32 5,i32*%Y,align 4
%Z=invoke fastcc i8*@_SMLFN15Word8ArraySlice5sliceE(i8*inreg%L)
to label%aa unwind label%ag
aa:
%ab=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%ac=invoke fastcc i8*%A(i8*inreg%ab,i8*inreg%Z)
to label%ad unwind label%ag
ad:
%ae=bitcast i8**%d to i32**
%af=load i32*,i32**%ae,align 8
store i32 0,i32*%af,align 4
ret void
ag:
%ah=landingpad{i8*,i8*}
catch i8*null
%ai=extractvalue{i8*,i8*}%ah,1
%aj=bitcast i8*%ai to i8**
%ak=load i8*,i8**%aj,align 8
store i8*null,i8**%d,align 8
store i8*%ak,i8**%e,align 8
%al=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%al,i8**%c,align 8
%am=load i8*,i8**%b,align 8
%an=getelementptr inbounds i8,i8*%am,i64 56
%ao=bitcast i8*%an to i8**
%ap=load i8*,i8**%ao,align 8
%aq=getelementptr inbounds i8,i8*%ap,i64 56
%ar=bitcast i8*%aq to i8**
%as=load i8*,i8**%ar,align 8
store i8*%as,i8**%b,align 8
%at=call i8*@sml_alloc(i32 inreg 28)#0
%au=getelementptr inbounds i8,i8*%at,i64 -4
%av=bitcast i8*%au to i32*
store i32 1342177304,i32*%av,align 4
store i8*%at,i8**%d,align 8
%aw=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%ax=bitcast i8*%at to i8**
store i8*%aw,i8**%ax,align 8
%ay=getelementptr inbounds i8,i8*%at,i64 8
%az=bitcast i8*%ay to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[9x i8]}>,<{[4x i8],i32,[9x i8]}>*@aN,i64 0,i32 2,i64 0),i8**%az,align 8
%aA=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aB=getelementptr inbounds i8,i8*%at,i64 16
%aC=bitcast i8*%aB to i8**
store i8*%aA,i8**%aC,align 8
%aD=getelementptr inbounds i8,i8*%at,i64 24
%aE=bitcast i8*%aD to i32*
store i32 7,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
store i8*%aF,i8**%b,align 8
%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,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@aM,i64 0,i32 2,i64 0),i8**%aL,align 8
%aM=load i8*,i8**%d,align 8
store i8*null,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 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**%b,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:
ret void
}
define fastcc void@_SMLFN5BinIO8StreamIO8closeOutE(i8*inreg%a)#2 gc"smlsharp"personality i32(...)*@sml_personality{
p:
%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
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
store i8*%a,i8**%b,align 8
%j=load atomic i32,i32*@sml_check_flag unordered,align 4
%k=icmp eq i32%j,0
br i1%k,label%n,label%l
l:
call void@sml_check(i32 inreg%j)
%m=load i8*,i8**%b,align 8
br label%n
n:
%o=phi i8*[%m,%l],[%a,%p]
%q=getelementptr inbounds i8,i8*%o,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*%o,i64 24
%u=bitcast i8*%t to i8**
%v=load i8*,i8**%u,align 8
store i8*%v,i8**%d,align 8
%w=getelementptr inbounds i8,i8*%o,i64 56
%x=bitcast i8*%w to i8**
%y=load i8*,i8**%x,align 8
%z=getelementptr inbounds i8,i8*%y,i64 24
%A=bitcast i8*%z to i8**
%B=load i8*,i8**%A,align 8
store i8*%B,i8**%e,align 8
%C=bitcast i8**%d to i32**
%D=bitcast i8*%v to i32*
%E=load i32,i32*%D,align 4
%F=icmp eq i32%E,0
br i1%F,label%H,label%G
G:
ret void
H:
%I=bitcast i8*%o to i8**
%J=load i8*,i8**%I,align 8
store i8*%J,i8**%f,align 8
%K=getelementptr inbounds i8,i8*%o,i64 32
%L=bitcast i8*%K to i8**
%M=load i8*,i8**%L,align 8
store i8*%M,i8**%g,align 8
%N=getelementptr inbounds i8,i8*%o,i64 40
%O=bitcast i8*%N to i8**
%P=load i8*,i8**%O,align 8
%Q=bitcast i8*%M to i32*
%R=load i32,i32*%Q,align 4
%S=icmp eq i32%R,0
br i1%S,label%bl,label%T
T:
%U=getelementptr inbounds i8,i8*%P,i64 16
%V=bitcast i8*%U to i8*(i8*,i8*)**
%W=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%V,align 8
%X=bitcast i8*%P to i8**
%Y=load i8*,i8**%X,align 8
store i8*%Y,i8**%h,align 8
%Z=call i8*@sml_alloc(i32 inreg 12)#0
%aa=getelementptr inbounds i8,i8*%Z,i64 -4
%ab=bitcast i8*%aa to i32*
store i32 1342177288,i32*%ab,align 4
store i8*%Z,i8**%i,align 8
%ac=getelementptr inbounds i8,i8*%Z,i64 4
%ad=bitcast i8*%ac to i32*
store i32 0,i32*%ad,align 1
%ae=bitcast i8*%Z to i32*
store i32%R,i32*%ae,align 4
%af=getelementptr inbounds i8,i8*%Z,i64 8
%ag=bitcast i8*%af to i32*
store i32 0,i32*%ag,align 4
%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
%ak=getelementptr inbounds i8,i8*%ah,i64 12
%al=bitcast i8*%ak to i32*
store i32 0,i32*%al,align 1
%am=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%an=bitcast i8*%ah to i8**
store i8*%am,i8**%an,align 8
%ao=getelementptr inbounds i8,i8*%ah,i64 8
%ap=bitcast i8*%ao to i32*
store i32 0,i32*%ap,align 4
%aq=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%ar=getelementptr inbounds i8,i8*%ah,i64 16
%as=bitcast i8*%ar to i8**
store i8*%aq,i8**%as,align 8
%at=getelementptr inbounds i8,i8*%ah,i64 24
%au=bitcast i8*%at to i32*
store i32 5,i32*%au,align 4
%av=invoke fastcc i8*@_SMLFN15Word8ArraySlice5sliceE(i8*inreg%ah)
to label%aw unwind label%aD
aw:
%ax=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%ay=invoke fastcc i8*%W(i8*inreg%ax,i8*inreg%av)
to label%az unwind label%aD
az:
store i8*null,i8**%b,align 8
%aA=bitcast i8**%g to i32**
%aB=load i32*,i32**%aA,align 8
store i8*null,i8**%g,align 8
store i32 0,i32*%aB,align 4
%aC=load i32*,i32**%C,align 8
br label%bm
aD:
%aE=landingpad{i8*,i8*}
catch i8*null
%aF=extractvalue{i8*,i8*}%aE,1
%aG=bitcast i8*%aF to i8**
%aH=load i8*,i8**%aG,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*%aH,i8**%e,align 8
%aI=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%aI,i8**%c,align 8
%aJ=load i8*,i8**%b,align 8
%aK=getelementptr inbounds i8,i8*%aJ,i64 56
%aL=bitcast i8*%aK to i8**
%aM=load i8*,i8**%aL,align 8
%aN=getelementptr inbounds i8,i8*%aM,i64 56
%aO=bitcast i8*%aN to i8**
%aP=load i8*,i8**%aO,align 8
store i8*%aP,i8**%b,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
store i8*%aQ,i8**%d,align 8
%aT=load i8*,i8**%e,align 8
store i8*null,i8**%e,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,[9x i8]}>,<{[4x i8],i32,[9x i8]}>*@ag,i64 0,i32 2,i64 0),i8**%aW,align 8
%aX=load i8*,i8**%b,align 8
store i8*null,i8**%b,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
%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
store i8*%a2,i8**%b,align 8
%a5=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%a6=bitcast i8*%a2 to i8**
store i8*%a5,i8**%a6,align 8
%a7=getelementptr inbounds i8,i8*%a2,i64 8
%a8=bitcast i8*%a7 to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@aM,i64 0,i32 2,i64 0),i8**%a8,align 8
%a9=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%ba=getelementptr inbounds i8,i8*%a2,i64 16
%bb=bitcast i8*%ba to i8**
store i8*%a9,i8**%bb,align 8
%bc=getelementptr inbounds i8,i8*%a2,i64 24
%bd=bitcast i8*%bc to i32*
store i32 7,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**%b,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:
store i8*null,i8**%b,align 8
store i8*null,i8**%f,align 8
store i8*null,i8**%g,align 8
br label%bm
bm:
%bn=phi i32*[%D,%bl],[%aC,%az]
store i8*null,i8**%d,align 8
store i32 1,i32*%bn,align 4
%bo=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
call fastcc void@_SMLFN18SMLSharp__OSProcess12cancelAtExitE(i8*inreg%bo)
%bp=load i8*,i8**%e,align 8
%bq=getelementptr inbounds i8,i8*%bp,i64 16
%br=bitcast i8*%bq to i8*(i8*,i8*)**
%bs=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%br,align 8
store i8*null,i8**%e,align 8
%bt=bitcast i8*%bp to i8**
%bu=load i8*,i8**%bt,align 8
store i8*%bu,i8**%b,align 8
%bv=call i8*@sml_alloc(i32 inreg 4)#0
%bw=bitcast i8*%bv to i32*
%bx=getelementptr inbounds i8,i8*%bv,i64 -4
%by=bitcast i8*%bx to i32*
store i32 4,i32*%by,align 4
store i32 0,i32*%bw,align 4
%bz=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%bA=call fastcc i8*%bs(i8*inreg%bz,i8*inreg%bv)
ret void
}
define internal fastcc void@_SMLLL2lp_359(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
h:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%d,align 8
%e=bitcast i8**%d to i8***
br label%f
f:
%g=phi i8*[%Q,%r],[%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=call fastcc i32@_SMLFN15Word8ArraySlice6lengthE(i8*inreg%n)
%p=icmp eq i32%o,0
br i1%p,label%q,label%r
q:
ret void
r:
%s=load i8**,i8***%e,align 8
%t=load i8*,i8**%s,align 8
%u=getelementptr inbounds i8,i8*%t,i64 16
%v=bitcast i8*%u to i8*(i8*,i8*)**
%w=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%v,align 8
%x=bitcast i8*%t to i8**
%y=load i8*,i8**%x,align 8
%z=load i8*,i8**%c,align 8
%A=call fastcc i8*%w(i8*inreg%y,i8*inreg%z)
%B=bitcast i8*%A to i32*
%C=load i32,i32*%B,align 4
%D=call i8*@sml_alloc(i32 inreg 28)#0
%E=getelementptr inbounds i8,i8*%D,i64 -4
%F=bitcast i8*%E to i32*
store i32 1342177304,i32*%F,align 4
%G=getelementptr inbounds i8,i8*%D,i64 12
%H=bitcast i8*%G to i32*
store i32 0,i32*%H,align 1
%I=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%J=bitcast i8*%D to i8**
store i8*%I,i8**%J,align 8
%K=getelementptr inbounds i8,i8*%D,i64 8
%L=bitcast i8*%K to i32*
store i32%C,i32*%L,align 4
%M=getelementptr inbounds i8,i8*%D,i64 16
%N=bitcast i8*%M to i8**
store i8*null,i8**%N,align 8
%O=getelementptr inbounds i8,i8*%D,i64 24
%P=bitcast i8*%O to i32*
store i32 5,i32*%P,align 4
%Q=call fastcc i8*@_SMLFN15Word8ArraySlice8subsliceE(i8*inreg%D)
br label%f
}
define internal fastcc void@_SMLLL9writeArr_G_361(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]}>*@ai,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@_SMLLL2lp_363(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
h:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%d,align 8
%e=bitcast i8**%d to i8***
br label%f
f:
%g=phi i8*[%Q,%r],[%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=call fastcc i32@_SMLFN16Word8VectorSlice6lengthE(i8*inreg%n)
%p=icmp eq i32%o,0
br i1%p,label%q,label%r
q:
ret void
r:
%s=load i8**,i8***%e,align 8
%t=load i8*,i8**%s,align 8
%u=getelementptr inbounds i8,i8*%t,i64 16
%v=bitcast i8*%u to i8*(i8*,i8*)**
%w=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%v,align 8
%x=bitcast i8*%t to i8**
%y=load i8*,i8**%x,align 8
%z=load i8*,i8**%c,align 8
%A=call fastcc i8*%w(i8*inreg%y,i8*inreg%z)
%B=bitcast i8*%A to i32*
%C=load i32,i32*%B,align 4
%D=call i8*@sml_alloc(i32 inreg 28)#0
%E=getelementptr inbounds i8,i8*%D,i64 -4
%F=bitcast i8*%E to i32*
store i32 1342177304,i32*%F,align 4
%G=getelementptr inbounds i8,i8*%D,i64 12
%H=bitcast i8*%G to i32*
store i32 0,i32*%H,align 1
%I=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%J=bitcast i8*%D to i8**
store i8*%I,i8**%J,align 8
%K=getelementptr inbounds i8,i8*%D,i64 8
%L=bitcast i8*%K to i32*
store i32%C,i32*%L,align 4
%M=getelementptr inbounds i8,i8*%D,i64 16
%N=bitcast i8*%M to i8**
store i8*null,i8**%N,align 8
%O=getelementptr inbounds i8,i8*%D,i64 24
%P=bitcast i8*%O to i32*
store i32 5,i32*%P,align 4
%Q=call fastcc i8*@_SMLFN16Word8VectorSlice8subsliceE(i8*inreg%D)
br label%f
}
define internal fastcc void@_SMLLL9writeVec_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]}>*@ak,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@_SMLLLN5BinIO8StreamIO11mkOutstreamE_367(i32 inreg%a)#4 gc"smlsharp"{
ret void
}
define internal fastcc void@_SMLLLN5BinIO8StreamIO11mkOutstreamE_373(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@_SMLLLN5BinIO8StreamIO11mkOutstreamE_376(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 24
%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%a0,label%s
s:
%t=getelementptr inbounds i8,i8*%l,i64 8
%u=bitcast i8*%t to i8**
%v=load i8*,i8**%u,align 8
%w=getelementptr inbounds i8,i8*%v,i64 16
%x=bitcast i8*%w to i8*(i8*,i8*)**
%y=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%x,align 8
%z=bitcast i8*%v to i8**
%A=load i8*,i8**%z,align 8
store i8*%A,i8**%e,align 8
%B=getelementptr inbounds i8,i8*%l,i64 16
%C=bitcast i8*%B to i8**
%D=load i8*,i8**%C,align 8
store i8*%D,i8**%d,align 8
%E=call i8*@sml_alloc(i32 inreg 12)#0
%F=getelementptr inbounds i8,i8*%E,i64 -4
%G=bitcast i8*%F to i32*
store i32 1342177288,i32*%G,align 4
store i8*%E,i8**%f,align 8
%H=getelementptr inbounds i8,i8*%E,i64 4
%I=bitcast i8*%H to i32*
store i32 0,i32*%I,align 1
%J=bitcast i8*%E to i32*
store i32%q,i32*%J,align 4
%K=getelementptr inbounds i8,i8*%E,i64 8
%L=bitcast i8*%K to i32*
store i32 0,i32*%L,align 4
%M=call i8*@sml_alloc(i32 inreg 28)#0
%N=getelementptr inbounds i8,i8*%M,i64 -4
%O=bitcast i8*%N to i32*
store i32 1342177304,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**%d,align 8
store i8*null,i8**%d,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 0,i32*%U,align 4
%V=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%W=getelementptr inbounds i8,i8*%M,i64 16
%X=bitcast i8*%W to i8**
store i8*%V,i8**%X,align 8
%Y=getelementptr inbounds i8,i8*%M,i64 24
%Z=bitcast i8*%Y to i32*
store i32 5,i32*%Z,align 4
%aa=invoke fastcc i8*@_SMLFN15Word8ArraySlice5sliceE(i8*inreg%M)
to label%ab unwind label%aj
ab:
%ac=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%ad=invoke fastcc i8*%y(i8*inreg%ac,i8*inreg%aa)
to label%ae unwind label%aj
ae:
%af=load i8*,i8**%c,align 8
%ag=getelementptr inbounds i8,i8*%af,i64 24
%ah=bitcast i8*%ag to i32**
%ai=load i32*,i32**%ah,align 8
store i32 0,i32*%ai,align 4
ret void
aj:
%ak=landingpad{i8*,i8*}
catch i8*null
%al=extractvalue{i8*,i8*}%ak,1
%am=bitcast i8*%al to i8**
%an=load i8*,i8**%am,align 8
store i8*null,i8**%e,align 8
store i8*%an,i8**%f,align 8
%ao=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%ao,i8**%d,align 8
%ap=bitcast i8**%c to i8***
%aq=load i8**,i8***%ap,align 8
%ar=load i8*,i8**%aq,align 8
%as=getelementptr inbounds i8,i8*%ar,i64 56
%at=bitcast i8*%as to i8**
%au=load i8*,i8**%at,align 8
store i8*%au,i8**%c,align 8
%av=call i8*@sml_alloc(i32 inreg 28)#0
%aw=getelementptr inbounds i8,i8*%av,i64 -4
%ax=bitcast i8*%aw to i32*
store i32 1342177304,i32*%ax,align 4
store i8*%av,i8**%e,align 8
%ay=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%az=bitcast i8*%av to i8**
store i8*%ay,i8**%az,align 8
%aA=getelementptr inbounds i8,i8*%av,i64 8
%aB=bitcast i8*%aA to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[9x i8]}>,<{[4x i8],i32,[9x i8]}>*@aN,i64 0,i32 2,i64 0),i8**%aB,align 8
%aC=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aD=getelementptr inbounds i8,i8*%av,i64 16
%aE=bitcast i8*%aD to i8**
store i8*%aC,i8**%aE,align 8
%aF=getelementptr inbounds i8,i8*%av,i64 24
%aG=bitcast i8*%aF to i32*
store i32 7,i32*%aG,align 4
%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**%c,align 8
%aK=load i8*,i8**%d,align 8
store i8*null,i8**%d,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,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@aM,i64 0,i32 2,i64 0),i8**%aN,align 8
%aO=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%aP=getelementptr inbounds i8,i8*%aH,i64 16
%aQ=bitcast i8*%aP to i8**
store i8*%aO,i8**%aQ,align 8
%aR=getelementptr inbounds i8,i8*%aH,i64 24
%aS=bitcast i8*%aR to i32*
store i32 7,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 void
}
define internal fastcc void@_SMLLLN5BinIO8StreamIO11mkOutstreamE_377(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]
%r=bitcast i8*%p to i8**
%s=load i8*,i8**%r,align 8
store i8*%s,i8**%b,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=getelementptr inbounds i8,i8*%s,i64 96
%A=bitcast i8*%z to i8**
%B=load i8*,i8**%A,align 8
store i8*%B,i8**%c,align 8
%C=getelementptr inbounds i8,i8*%p,i64 8
%D=bitcast i8*%C to i32*
%E=load i32,i32*%D,align 4
%F=icmp eq i8*%y,null
br i1%F,label%ac,label%G
G:
%H=bitcast i8*%y to i8**
%I=load i8*,i8**%H,align 8
store i8*%I,i8**%d,align 8
%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**%e,align 8
%M=load i8*,i8**%d,align 8
store i8*null,i8**%d,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**%e,align 8
store i8*null,i8**%e,align 8
%U=bitcast i8*%Q to i8**
store i8*%T,i8**%U,align 8
%V=getelementptr inbounds i8,i8*%Q,i64 8
%W=bitcast i8*%V to void(...)**
store void(...)*bitcast(void(i8*,i8*)*@_SMLLL2lp_359 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*)*@_SMLLL2lp_503 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
%ab=load i8*,i8**%c,align 8
br label%ac
ac:
%ad=phi i8*[%B,%o],[%ab,%G]
%ae=phi i8*[bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@aj,i64 0,i32 2)to i8*),%o],[%Q,%G]
store i8*%ae,i8**%d,align 8
%af=icmp eq i8*%ad,null
br i1%af,label%aB,label%ag
ag:
%ah=bitcast i8*%ad to i8**
%ai=load i8*,i8**%ah,align 8
store i8*%ai,i8**%c,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**%e,align 8
%am=load i8*,i8**%c,align 8
store i8*null,i8**%c,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
%at=load i8*,i8**%e,align 8
store i8*null,i8**%e,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(void(i8*,i8*)*@_SMLLL2lp_363 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*)*@_SMLLL2lp_505 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
br label%aB
aB:
%aC=phi i8*[%aq,%ag],[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*),%ac]
store i8*%aC,i8**%c,align 8
%aD=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}>*@am,i64 0,i32 2)to i8*))
store i8*%aD,i8**%e,align 8
%aE=call i8*@sml_alloc(i32 inreg 12)#0
%aF=bitcast i8*%aE to i32*
%aG=getelementptr inbounds i8,i8*%aE,i64 -4
%aH=bitcast i8*%aG to i32*
store i32 1342177288,i32*%aH,align 4
%aI=getelementptr inbounds i8,i8*%aE,i64 5
call void@llvm.memset.p0i8.i32(i8*%aI,i8 0,i32 3,i1 false)
store i32%v,i32*%aF,align 4
%aJ=getelementptr inbounds i8,i8*%aE,i64 4
store i8 0,i8*%aJ,align 1
%aK=getelementptr inbounds i8,i8*%aE,i64 8
%aL=bitcast i8*%aK to i32*
store i32 0,i32*%aL,align 4
%aM=call fastcc i8*@_SMLFN10Word8Array5arrayE(i8*inreg%aE)
store i8*%aM,i8**%f,align 8
%aN=call i8*@sml_alloc(i32 inreg 4)#0
%aO=bitcast i8*%aN to i32*
%aP=getelementptr inbounds i8,i8*%aN,i64 -4
%aQ=bitcast i8*%aP to i32*
store i32 536870916,i32*%aQ,align 4
store i8*%aN,i8**%h,align 8
store i32 0,i32*%aO,align 4
%aR=call i8*@sml_alloc(i32 inreg 4)#0
%aS=bitcast i8*%aR to i32*
%aT=getelementptr inbounds i8,i8*%aR,i64 -4
%aU=bitcast i8*%aT to i32*
store i32 536870916,i32*%aU,align 4
store i8*%aR,i8**%i,align 8
store i32 0,i32*%aS,align 4
%aV=call i8*@sml_alloc(i32 inreg 4)#0
%aW=bitcast i8*%aV to i32*
%aX=getelementptr inbounds i8,i8*%aV,i64 -4
%aY=bitcast i8*%aX to i32*
store i32 536870916,i32*%aY,align 4
store i8*%aV,i8**%j,align 8
store i32%E,i32*%aW,align 4
%aZ=call i8*@sml_alloc(i32 inreg 68)#0
%a0=getelementptr inbounds i8,i8*%aZ,i64 -4
%a1=bitcast i8*%a0 to i32*
store i32 1342177344,i32*%a1,align 4
store i8*%aZ,i8**%g,align 8
%a2=load i8*,i8**%f,align 8
%a3=bitcast i8*%aZ to i8**
store i8*%a2,i8**%a3,align 8
%a4=load i8*,i8**%j,align 8
store i8*null,i8**%j,align 8
%a5=getelementptr inbounds i8,i8*%aZ,i64 8
%a6=bitcast i8*%a5 to i8**
store i8*%a4,i8**%a6,align 8
%a7=load i8*,i8**%e,align 8
%a8=getelementptr inbounds i8,i8*%aZ,i64 16
%a9=bitcast i8*%a8 to i8**
store i8*%a7,i8**%a9,align 8
%ba=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%bb=getelementptr inbounds i8,i8*%aZ,i64 24
%bc=bitcast i8*%bb to i8**
store i8*%ba,i8**%bc,align 8
%bd=load i8*,i8**%h,align 8
%be=getelementptr inbounds i8,i8*%aZ,i64 32
%bf=bitcast i8*%be to i8**
store i8*%bd,i8**%bf,align 8
%bg=load i8*,i8**%d,align 8
%bh=getelementptr inbounds i8,i8*%aZ,i64 40
%bi=bitcast i8*%bh to i8**
store i8*%bg,i8**%bi,align 8
%bj=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bk=getelementptr inbounds i8,i8*%aZ,i64 48
%bl=bitcast i8*%bk to i8**
store i8*%bj,i8**%bl,align 8
%bm=load i8*,i8**%b,align 8
%bn=getelementptr inbounds i8,i8*%aZ,i64 56
%bo=bitcast i8*%bn to i8**
store i8*%bm,i8**%bo,align 8
%bp=getelementptr inbounds i8,i8*%aZ,i64 64
%bq=bitcast i8*%bp to i32*
store i32 255,i32*%bq,align 4
%br=call i8*@sml_alloc(i32 inreg 12)#0
%bs=getelementptr inbounds i8,i8*%br,i64 -4
%bt=bitcast i8*%bs to i32*
store i32 1342177288,i32*%bt,align 4
store i8*%br,i8**%c,align 8
%bu=load i8*,i8**%g,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 1,i32*%bx,align 4
%by=call i8*@sml_alloc(i32 inreg 28)#0
%bz=getelementptr inbounds i8,i8*%by,i64 -4
%bA=bitcast i8*%bz to i32*
store i32 1342177304,i32*%bA,align 4
store i8*%by,i8**%i,align 8
%bB=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bC=bitcast i8*%by to i8**
store i8*%bB,i8**%bC,align 8
%bD=getelementptr inbounds i8,i8*%by,i64 8
%bE=bitcast i8*%bD to void(...)**
store void(...)*bitcast(void(i8*,i32)*@_SMLLLN5BinIO8StreamIO11mkOutstreamE_373 to void(...)*),void(...)**%bE,align 8
%bF=getelementptr inbounds i8,i8*%by,i64 16
%bG=bitcast i8*%bF to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN5BinIO8StreamIO11mkOutstreamE_510 to void(...)*),void(...)**%bG,align 8
%bH=getelementptr inbounds i8,i8*%by,i64 24
%bI=bitcast i8*%bH to i32*
store i32 -2147483647,i32*%bI,align 4
%bJ=call i8*@sml_alloc(i32 inreg 36)#0
%bK=getelementptr inbounds i8,i8*%bJ,i64 -4
%bL=bitcast i8*%bK to i32*
store i32 1342177312,i32*%bL,align 4
store i8*%bJ,i8**%c,align 8
%bM=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%bN=bitcast i8*%bJ to i8**
store i8*%bM,i8**%bN,align 8
%bO=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%bP=getelementptr inbounds i8,i8*%bJ,i64 8
%bQ=bitcast i8*%bP to i8**
store i8*%bO,i8**%bQ,align 8
%bR=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%bS=getelementptr inbounds i8,i8*%bJ,i64 16
%bT=bitcast i8*%bS to i8**
store i8*%bR,i8**%bT,align 8
%bU=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%bV=getelementptr inbounds i8,i8*%bJ,i64 24
%bW=bitcast i8*%bV to i8**
store i8*%bU,i8**%bW,align 8
%bX=getelementptr inbounds i8,i8*%bJ,i64 32
%bY=bitcast i8*%bX to i32*
store i32 15,i32*%bY,align 4
%bZ=call i8*@sml_alloc(i32 inreg 28)#0
%b0=getelementptr inbounds i8,i8*%bZ,i64 -4
%b1=bitcast i8*%b0 to i32*
store i32 1342177304,i32*%b1,align 4
store i8*%bZ,i8**%b,align 8
%b2=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%b3=bitcast i8*%bZ to i8**
store i8*%b2,i8**%b3,align 8
%b4=getelementptr inbounds i8,i8*%bZ,i64 8
%b5=bitcast i8*%b4 to void(...)**
store void(...)*bitcast(void(i8*,i32)*@_SMLLLN5BinIO8StreamIO11mkOutstreamE_376 to void(...)*),void(...)**%b5,align 8
%b6=getelementptr inbounds i8,i8*%bZ,i64 16
%b7=bitcast i8*%b6 to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN5BinIO8StreamIO11mkOutstreamE_511 to void(...)*),void(...)**%b7,align 8
%b8=getelementptr inbounds i8,i8*%bZ,i64 24
%b9=bitcast i8*%b8 to i32*
store i32 -2147483647,i32*%b9,align 4
%ca=call i8*@sml_alloc(i32 inreg 12)#0
%cb=getelementptr inbounds i8,i8*%ca,i64 -4
%cc=bitcast i8*%cb to i32*
store i32 1342177288,i32*%cc,align 4
store i8*%ca,i8**%c,align 8
%cd=load i8*,i8**%g,align 8
%ce=bitcast i8*%ca to i8**
store i8*%cd,i8**%ce,align 8
%cf=getelementptr inbounds i8,i8*%ca,i64 8
%cg=bitcast i8*%cf to i32*
store i32 1,i32*%cg,align 4
%ch=call i8*@sml_alloc(i32 inreg 28)#0
%ci=getelementptr inbounds i8,i8*%ch,i64 -4
%cj=bitcast i8*%ci to i32*
store i32 1342177304,i32*%cj,align 4
store i8*%ch,i8**%d,align 8
%ck=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%cl=bitcast i8*%ch to i8**
store i8*%ck,i8**%cl,align 8
%cm=getelementptr inbounds i8,i8*%ch,i64 8
%cn=bitcast i8*%cm to void(...)**
store void(...)*bitcast(void(i8*,i32)*@_SMLLLN5BinIO8StreamIO11mkOutstreamE_377 to void(...)*),void(...)**%cn,align 8
%co=getelementptr inbounds i8,i8*%ch,i64 16
%cp=bitcast i8*%co to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN5BinIO8StreamIO11mkOutstreamE_512 to void(...)*),void(...)**%cp,align 8
%cq=getelementptr inbounds i8,i8*%ch,i64 24
%cr=bitcast i8*%cq to i32*
store i32 -2147483647,i32*%cr,align 4
%cs=call i8*@sml_alloc(i32 inreg 28)#0
%ct=getelementptr inbounds i8,i8*%cs,i64 -4
%cu=bitcast i8*%ct to i32*
store i32 1342177304,i32*%cu,align 4
%cv=load i8*,i8**%i,align 8
%cw=bitcast i8*%cs to i8**
store i8*%cv,i8**%cw,align 8
%cx=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%cy=getelementptr inbounds i8,i8*%cs,i64 8
%cz=bitcast i8*%cy to i8**
store i8*%cx,i8**%cz,align 8
%cA=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%cB=getelementptr inbounds i8,i8*%cs,i64 16
%cC=bitcast i8*%cB to i8**
store i8*%cA,i8**%cC,align 8
%cD=getelementptr inbounds i8,i8*%cs,i64 24
%cE=bitcast i8*%cD to i32*
store i32 7,i32*%cE,align 4
%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**%e,align 8
store i8*null,i8**%e,align 8
%cJ=bitcast i8*%cF to i8**
store i8*%cI,i8**%cJ,align 8
%cK=load i8*,i8**%i,align 8
store i8*null,i8**%i,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**%g,align 8
ret i8*%cP
}
define fastcc i8*@_SMLFN5BinIO8StreamIO9getWriterE(i8*inreg%a)#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]
%p=bitcast i8*%n to i8**
%q=getelementptr inbounds i8,i8*%n,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 56
%u=bitcast i8*%t to i8**
%v=load i8*,i8**%u,align 8
store i8*%v,i8**%d,align 8
%w=load i8*,i8**%p,align 8
store i8*%w,i8**%e,align 8
%x=getelementptr inbounds i8,i8*%n,i64 32
%y=bitcast i8*%x to i8**
%z=load i8*,i8**%y,align 8
store i8*%z,i8**%f,align 8
%A=getelementptr inbounds i8,i8*%n,i64 40
%B=bitcast i8*%A to i8**
%C=load i8*,i8**%B,align 8
%D=bitcast i8*%z to i32*
%E=load i32,i32*%D,align 4
%F=icmp eq i32%E,0
br i1%F,label%a9,label%G
G:
%H=getelementptr inbounds i8,i8*%C,i64 16
%I=bitcast i8*%H to i8*(i8*,i8*)**
%J=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%I,align 8
%K=bitcast i8*%C to i8**
%L=load i8*,i8**%K,align 8
store i8*%L,i8**%g,align 8
%M=call i8*@sml_alloc(i32 inreg 12)#0
%N=getelementptr inbounds i8,i8*%M,i64 -4
%O=bitcast i8*%N to i32*
store i32 1342177288,i32*%O,align 4
store i8*%M,i8**%h,align 8
%P=getelementptr inbounds i8,i8*%M,i64 4
%Q=bitcast i8*%P to i32*
store i32 0,i32*%Q,align 1
%R=bitcast i8*%M to i32*
store i32%E,i32*%R,align 4
%S=getelementptr inbounds i8,i8*%M,i64 8
%T=bitcast i8*%S to i32*
store i32 0,i32*%T,align 4
%U=call i8*@sml_alloc(i32 inreg 28)#0
%V=getelementptr inbounds i8,i8*%U,i64 -4
%W=bitcast i8*%V to i32*
store i32 1342177304,i32*%W,align 4
%X=getelementptr inbounds i8,i8*%U,i64 12
%Y=bitcast i8*%X to i32*
store i32 0,i32*%Y,align 1
%Z=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%aa=bitcast i8*%U to i8**
store i8*%Z,i8**%aa,align 8
%ab=getelementptr inbounds i8,i8*%U,i64 8
%ac=bitcast i8*%ab to i32*
store i32 0,i32*%ac,align 4
%ad=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%ae=getelementptr inbounds i8,i8*%U,i64 16
%af=bitcast i8*%ae to i8**
store i8*%ad,i8**%af,align 8
%ag=getelementptr inbounds i8,i8*%U,i64 24
%ah=bitcast i8*%ag to i32*
store i32 5,i32*%ah,align 4
%ai=invoke fastcc i8*@_SMLFN15Word8ArraySlice5sliceE(i8*inreg%U)
to label%aj unwind label%ar
aj:
%ak=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%al=invoke fastcc i8*%J(i8*inreg%ak,i8*inreg%ai)
to label%am unwind label%ar
am:
store i8*null,i8**%b,align 8
%an=bitcast i8**%f to i32**
%ao=load i32*,i32**%an,align 8
store i8*null,i8**%f,align 8
store i32 0,i32*%ao,align 4
%ap=bitcast i8**%c to i32**
%aq=load i32*,i32**%ap,align 8
br label%bb
ar:
%as=landingpad{i8*,i8*}
catch i8*null
%at=extractvalue{i8*,i8*}%as,1
%au=bitcast i8*%at to i8**
%av=load i8*,i8**%au,align 8
store i8*null,i8**%d,align 8
store i8*null,i8**%f,align 8
store i8*null,i8**%g,align 8
store i8*%av,i8**%e,align 8
%aw=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%aw,i8**%c,align 8
%ax=load i8*,i8**%b,align 8
%ay=getelementptr inbounds i8,i8*%ax,i64 56
%az=bitcast i8*%ay to i8**
%aA=load i8*,i8**%az,align 8
%aB=getelementptr inbounds i8,i8*%aA,i64 56
%aC=bitcast i8*%aB to i8**
%aD=load i8*,i8**%aC,align 8
store i8*%aD,i8**%b,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
store i8*%aE,i8**%d,align 8
%aH=load i8*,i8**%e,align 8
store i8*null,i8**%e,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,[10x i8]}>,<{[4x i8],i32,[10x i8]}>*@ao,i64 0,i32 2,i64 0),i8**%aK,align 8
%aL=load i8*,i8**%b,align 8
store i8*null,i8**%b,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=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**%b,align 8
%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,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@aM,i64 0,i32 2,i64 0),i8**%aW,align 8
%aX=load i8*,i8**%d,align 8
store i8*null,i8**%d,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
%a2=call i8*@sml_alloc(i32 inreg 60)#0
%a3=getelementptr inbounds i8,i8*%a2,i64 -4
%a4=bitcast i8*%a3 to i32*
store i32 1342177336,i32*%a4,align 4
%a5=getelementptr inbounds i8,i8*%a2,i64 56
%a6=bitcast i8*%a5 to i32*
store i32 1,i32*%a6,align 4
%a7=load i8*,i8**%b,align 8
%a8=bitcast i8*%a2 to i8**
store i8*%a7,i8**%a8,align 8
call void@sml_raise(i8*inreg%a2)#1
unreachable
a9:
%ba=bitcast i8*%s to i32*
store i8*null,i8**%b,align 8
store i8*null,i8**%e,align 8
store i8*null,i8**%f,align 8
br label%bb
bb:
%bc=phi i32*[%ba,%a9],[%aq,%am]
store i8*null,i8**%c,align 8
%bd=load i32,i32*%bc,align 4
%be=call i8*@sml_alloc(i32 inreg 20)#0
%bf=getelementptr inbounds i8,i8*%be,i64 -4
%bg=bitcast i8*%bf to i32*
store i32 1342177296,i32*%bg,align 4
%bh=getelementptr inbounds i8,i8*%be,i64 12
%bi=bitcast i8*%bh to i32*
store i32 0,i32*%bi,align 1
%bj=load i8*,i8**%d,align 8
%bk=bitcast i8*%be to i8**
store i8*%bj,i8**%bk,align 8
%bl=getelementptr inbounds i8,i8*%be,i64 8
%bm=bitcast i8*%bl to i32*
store i32%bd,i32*%bm,align 4
%bn=getelementptr inbounds i8,i8*%be,i64 16
%bo=bitcast i8*%bn to i32*
store i32 1,i32*%bo,align 4
ret i8*%be
}
define fastcc i8*@_SMLFN5BinIO8StreamIO9getPosOutE(i8*inreg%a)#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=getelementptr inbounds i8,i8*%m,i64 56
%p=bitcast i8*%o to i8**
%q=load i8*,i8**%p,align 8
store i8*%q,i8**%c,align 8
%r=bitcast i8*%m to i8**
%s=load i8*,i8**%r,align 8
store i8*%s,i8**%d,align 8
%t=getelementptr inbounds i8,i8*%m,i64 32
%u=bitcast i8*%t to i8**
%v=load i8*,i8**%u,align 8
store i8*%v,i8**%e,align 8
%w=getelementptr inbounds i8,i8*%m,i64 40
%x=bitcast i8*%w to i8**
%y=load i8*,i8**%x,align 8
%z=bitcast i8*%v to i32*
%A=load i32,i32*%z,align 4
%B=icmp eq i32%A,0
br i1%B,label%a4,label%C
C:
%D=getelementptr inbounds i8,i8*%y,i64 16
%E=bitcast i8*%D to i8*(i8*,i8*)**
%F=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%E,align 8
%G=bitcast i8*%y to i8**
%H=load i8*,i8**%G,align 8
store i8*%H,i8**%f,align 8
%I=call i8*@sml_alloc(i32 inreg 12)#0
%J=getelementptr inbounds i8,i8*%I,i64 -4
%K=bitcast i8*%J to i32*
store i32 1342177288,i32*%K,align 4
store i8*%I,i8**%g,align 8
%L=getelementptr inbounds i8,i8*%I,i64 4
%M=bitcast i8*%L to i32*
store i32 0,i32*%M,align 1
%N=bitcast i8*%I to i32*
store i32%A,i32*%N,align 4
%O=getelementptr inbounds i8,i8*%I,i64 8
%P=bitcast i8*%O to i32*
store i32 0,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=getelementptr inbounds i8,i8*%Q,i64 12
%U=bitcast i8*%T to i32*
store i32 0,i32*%U,align 1
%V=load i8*,i8**%d,align 8
store i8*null,i8**%d,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 0,i32*%Y,align 4
%Z=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%aa=getelementptr inbounds i8,i8*%Q,i64 16
%ab=bitcast i8*%aa to i8**
store i8*%Z,i8**%ab,align 8
%ac=getelementptr inbounds i8,i8*%Q,i64 24
%ad=bitcast i8*%ac to i32*
store i32 5,i32*%ad,align 4
%ae=invoke fastcc i8*@_SMLFN15Word8ArraySlice5sliceE(i8*inreg%Q)
to label%af unwind label%am
af:
%ag=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%ah=invoke fastcc i8*%F(i8*inreg%ag,i8*inreg%ae)
to label%ai unwind label%am
ai:
%aj=bitcast i8**%e to i32**
%ak=load i32*,i32**%aj,align 8
store i8*null,i8**%e,align 8
store i32 0,i32*%ak,align 4
%al=load i8*,i8**%c,align 8
br label%a5
am:
%an=landingpad{i8*,i8*}
catch i8*null
%ao=extractvalue{i8*,i8*}%an,1
%ap=bitcast i8*%ao to i8**
%aq=load i8*,i8**%ap,align 8
store i8*null,i8**%f,align 8
store i8*%aq,i8**%e,align 8
%ar=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%ar,i8**%c,align 8
%as=load i8*,i8**%b,align 8
%at=getelementptr inbounds i8,i8*%as,i64 56
%au=bitcast i8*%at to i8**
%av=load i8*,i8**%au,align 8
%aw=getelementptr inbounds i8,i8*%av,i64 56
%ax=bitcast i8*%aw to i8**
%ay=load i8*,i8**%ax,align 8
store i8*%ay,i8**%b,align 8
%az=call i8*@sml_alloc(i32 inreg 28)#0
%aA=getelementptr inbounds i8,i8*%az,i64 -4
%aB=bitcast i8*%aA to i32*
store i32 1342177304,i32*%aB,align 4
store i8*%az,i8**%d,align 8
%aC=load i8*,i8**%e,align 8
store i8*null,i8**%e,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,[10x i8]}>,<{[4x i8],i32,[10x i8]}>*@aw,i64 0,i32 2,i64 0),i8**%aF,align 8
%aG=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aH=getelementptr inbounds i8,i8*%az,i64 16
%aI=bitcast i8*%aH to i8**
store i8*%aG,i8**%aI,align 8
%aJ=getelementptr inbounds i8,i8*%az,i64 24
%aK=bitcast i8*%aJ to i32*
store i32 7,i32*%aK,align 4
%aL=call i8*@sml_alloc(i32 inreg 28)#0
%aM=getelementptr inbounds i8,i8*%aL,i64 -4
%aN=bitcast i8*%aM to i32*
store i32 1342177304,i32*%aN,align 4
store i8*%aL,i8**%b,align 8
%aO=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aP=bitcast i8*%aL to i8**
store i8*%aO,i8**%aP,align 8
%aQ=getelementptr inbounds i8,i8*%aL,i64 8
%aR=bitcast i8*%aQ to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@aM,i64 0,i32 2,i64 0),i8**%aR,align 8
%aS=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aT=getelementptr inbounds i8,i8*%aL,i64 16
%aU=bitcast i8*%aT to i8**
store i8*%aS,i8**%aU,align 8
%aV=getelementptr inbounds i8,i8*%aL,i64 24
%aW=bitcast i8*%aV to i32*
store i32 7,i32*%aW,align 4
%aX=call i8*@sml_alloc(i32 inreg 60)#0
%aY=getelementptr inbounds i8,i8*%aX,i64 -4
%aZ=bitcast i8*%aY to i32*
store i32 1342177336,i32*%aZ,align 4
%a0=getelementptr inbounds i8,i8*%aX,i64 56
%a1=bitcast i8*%a0 to i32*
store i32 1,i32*%a1,align 4
%a2=load i8*,i8**%b,align 8
%a3=bitcast i8*%aX to i8**
store i8*%a2,i8**%a3,align 8
call void@sml_raise(i8*inreg%aX)#1
unreachable
a4:
store i8*null,i8**%d,align 8
store i8*null,i8**%e,align 8
br label%a5
a5:
%a6=phi i8*[%q,%a4],[%al,%ai]
store i8*null,i8**%c,align 8
%a7=getelementptr inbounds i8,i8*%a6,i64 40
%a8=bitcast i8*%a7 to i8**
%a9=load i8*,i8**%a8,align 8
%ba=icmp eq i8*%a9,null
br i1%ba,label%bb,label%bZ
bb:
%bc=load i8*,i8**@_SMLZN2IO24RandomAccessNotSupportedE,align 8
store i8*%bc,i8**%d,align 8
%bd=call i8*@sml_alloc(i32 inreg 20)#0
%be=getelementptr inbounds i8,i8*%bd,i64 -4
%bf=bitcast i8*%be to i32*
store i32 1342177296,i32*%bf,align 4
store i8*%bd,i8**%c,align 8
%bg=load i8*,i8**%d,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,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@aq,i64 0,i32 2,i64 0),i8**%bj,align 8
%bk=getelementptr inbounds i8,i8*%bd,i64 16
%bl=bitcast i8*%bk to i32*
store i32 3,i32*%bl,align 4
%bm=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%bm,i8**%d,align 8
%bn=load i8*,i8**%b,align 8
%bo=getelementptr inbounds i8,i8*%bn,i64 56
%bp=bitcast i8*%bo to i8**
%bq=load i8*,i8**%bp,align 8
%br=getelementptr inbounds i8,i8*%bq,i64 56
%bs=bitcast i8*%br to i8**
%bt=load i8*,i8**%bs,align 8
store i8*%bt,i8**%b,align 8
%bu=call i8*@sml_alloc(i32 inreg 28)#0
%bv=getelementptr inbounds i8,i8*%bu,i64 -4
%bw=bitcast i8*%bv to i32*
store i32 1342177304,i32*%bw,align 4
store i8*%bu,i8**%e,align 8
%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 i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[10x i8]}>,<{[4x i8],i32,[10x i8]}>*@aw,i64 0,i32 2,i64 0),i8**%bA,align 8
%bB=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%bC=getelementptr inbounds i8,i8*%bu,i64 16
%bD=bitcast i8*%bC to i8**
store i8*%bB,i8**%bD,align 8
%bE=getelementptr inbounds i8,i8*%bu,i64 24
%bF=bitcast i8*%bE to i32*
store i32 7,i32*%bF,align 4
%bG=call i8*@sml_alloc(i32 inreg 28)#0
%bH=getelementptr inbounds i8,i8*%bG,i64 -4
%bI=bitcast i8*%bH to i32*
store i32 1342177304,i32*%bI,align 4
store i8*%bG,i8**%b,align 8
%bJ=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%bK=bitcast i8*%bG to i8**
store i8*%bJ,i8**%bK,align 8
%bL=getelementptr inbounds i8,i8*%bG,i64 8
%bM=bitcast i8*%bL to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@aM,i64 0,i32 2,i64 0),i8**%bM,align 8
%bN=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%bO=getelementptr inbounds i8,i8*%bG,i64 16
%bP=bitcast i8*%bO to i8**
store i8*%bN,i8**%bP,align 8
%bQ=getelementptr inbounds i8,i8*%bG,i64 24
%bR=bitcast i8*%bQ to i32*
store i32 7,i32*%bR,align 4
%bS=call i8*@sml_alloc(i32 inreg 60)#0
%bT=getelementptr inbounds i8,i8*%bS,i64 -4
%bU=bitcast i8*%bT to i32*
store i32 1342177336,i32*%bU,align 4
%bV=getelementptr inbounds i8,i8*%bS,i64 56
%bW=bitcast i8*%bV to i32*
store i32 1,i32*%bW,align 4
%bX=load i8*,i8**%b,align 8
%bY=bitcast i8*%bS to i8**
store i8*%bX,i8**%bY,align 8
call void@sml_raise(i8*inreg%bS)#1
unreachable
bZ:
%b0=bitcast i8*%a9 to i8**
%b1=load i8*,i8**%b0,align 8
%b2=getelementptr inbounds i8,i8*%b1,i64 16
%b3=bitcast i8*%b2 to i8*(i8*,i8*)**
%b4=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%b3,align 8
%b5=bitcast i8*%b1 to i8**
%b6=load i8*,i8**%b5,align 8
store i8*%b6,i8**%c,align 8
%b7=call i8*@sml_alloc(i32 inreg 4)#0
%b8=bitcast i8*%b7 to i32*
%b9=getelementptr inbounds i8,i8*%b7,i64 -4
%ca=bitcast i8*%b9 to i32*
store i32 4,i32*%ca,align 4
store i32 0,i32*%b8,align 4
%cb=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%cc=invoke fastcc i8*%b4(i8*inreg%cb,i8*inreg%b7)
to label%cd unwind label%cr
cd:
%ce=bitcast i8*%cc to i32*
%cf=load i32,i32*%ce,align 4
%cg=call i8*@sml_alloc(i32 inreg 20)#0
%ch=bitcast i8*%cg to i32*
%ci=getelementptr inbounds i8,i8*%cg,i64 -4
%cj=bitcast i8*%ci to i32*
store i32 1342177296,i32*%cj,align 4
%ck=getelementptr inbounds i8,i8*%cg,i64 4
%cl=bitcast i8*%ck to i32*
store i32 0,i32*%cl,align 1
store i32%cf,i32*%ch,align 4
%cm=load i8*,i8**%b,align 8
%cn=getelementptr inbounds i8,i8*%cg,i64 8
%co=bitcast i8*%cn to i8**
store i8*%cm,i8**%co,align 8
%cp=getelementptr inbounds i8,i8*%cg,i64 16
%cq=bitcast i8*%cp to i32*
store i32 2,i32*%cq,align 4
ret i8*%cg
cr:
%cs=landingpad{i8*,i8*}
catch i8*null
%ct=extractvalue{i8*,i8*}%cs,1
%cu=bitcast i8*%ct to i8**
%cv=load i8*,i8**%cu,align 8
store i8*%cv,i8**%e,align 8
%cw=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%cw,i8**%c,align 8
%cx=load i8*,i8**%b,align 8
%cy=getelementptr inbounds i8,i8*%cx,i64 56
%cz=bitcast i8*%cy to i8**
%cA=load i8*,i8**%cz,align 8
%cB=getelementptr inbounds i8,i8*%cA,i64 56
%cC=bitcast i8*%cB to i8**
%cD=load i8*,i8**%cC,align 8
store i8*%cD,i8**%b,align 8
%cE=call i8*@sml_alloc(i32 inreg 28)#0
%cF=getelementptr inbounds i8,i8*%cE,i64 -4
%cG=bitcast i8*%cF to i32*
store i32 1342177304,i32*%cG,align 4
store i8*%cE,i8**%d,align 8
%cH=load i8*,i8**%e,align 8
store i8*null,i8**%e,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 i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[10x i8]}>,<{[4x i8],i32,[10x i8]}>*@aw,i64 0,i32 2,i64 0),i8**%cK,align 8
%cL=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%cM=getelementptr inbounds i8,i8*%cE,i64 16
%cN=bitcast i8*%cM to i8**
store i8*%cL,i8**%cN,align 8
%cO=getelementptr inbounds i8,i8*%cE,i64 24
%cP=bitcast i8*%cO to i32*
store i32 7,i32*%cP,align 4
%cQ=call i8*@sml_alloc(i32 inreg 28)#0
%cR=getelementptr inbounds i8,i8*%cQ,i64 -4
%cS=bitcast i8*%cR to i32*
store i32 1342177304,i32*%cS,align 4
store i8*%cQ,i8**%b,align 8
%cT=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%cU=bitcast i8*%cQ to i8**
store i8*%cT,i8**%cU,align 8
%cV=getelementptr inbounds i8,i8*%cQ,i64 8
%cW=bitcast i8*%cV to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@aM,i64 0,i32 2,i64 0),i8**%cW,align 8
%cX=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%cY=getelementptr inbounds i8,i8*%cQ,i64 16
%cZ=bitcast i8*%cY to i8**
store i8*%cX,i8**%cZ,align 8
%c0=getelementptr inbounds i8,i8*%cQ,i64 24
%c1=bitcast i8*%c0 to i32*
store i32 7,i32*%c1,align 4
%c2=call i8*@sml_alloc(i32 inreg 60)#0
%c3=getelementptr inbounds i8,i8*%c2,i64 -4
%c4=bitcast i8*%c3 to i32*
store i32 1342177336,i32*%c4,align 4
%c5=getelementptr inbounds i8,i8*%c2,i64 56
%c6=bitcast i8*%c5 to i32*
store i32 1,i32*%c6,align 4
%c7=load i8*,i8**%b,align 8
%c8=bitcast i8*%c2 to i8**
store i8*%c7,i8**%c8,align 8
call void@sml_raise(i8*inreg%c2)#1
unreachable
}
define fastcc i32@_SMLFN5BinIO8StreamIO10filePosOutE(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
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
%f=bitcast i8*%a to i32*
%g=load i32,i32*%f,align 4
%h=getelementptr inbounds i8,i8*%a,i64 8
%i=bitcast i8*%h to i8**
%j=load i8*,i8**%i,align 8
store i8*%j,i8**%b,align 8
%k=getelementptr inbounds i8,i8*%j,i64 24
%l=bitcast i8*%k to i32**
%m=load i32*,i32**%l,align 8
%n=load i32,i32*%m,align 4
%o=icmp eq i32%n,0
br i1%o,label%an,label%p
p:
%q=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%q,i8**%c,align 8
%r=load i8*,i8**@_SMLZN2IO12ClosedStreamE,align 8
store i8*%r,i8**%d,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
store i8*%s,i8**%e,align 8
%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=getelementptr inbounds i8,i8*%s,i64 8
%y=bitcast i8*%x to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@aA,i64 0,i32 2,i64 0),i8**%y,align 8
%z=getelementptr inbounds i8,i8*%s,i64 16
%A=bitcast i8*%z to i32*
store i32 3,i32*%A,align 4
%B=load i8*,i8**%b,align 8
%C=getelementptr inbounds i8,i8*%B,i64 56
%D=bitcast i8*%C to i8**
%E=load i8*,i8**%D,align 8
%F=getelementptr inbounds i8,i8*%E,i64 56
%G=bitcast i8*%F to i8**
%H=load i8*,i8**%G,align 8
store i8*%H,i8**%b,align 8
%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**%d,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,[11x i8]}>,<{[4x i8],i32,[11x i8]}>*@as,i64 0,i32 2,i64 0),i8**%O,align 8
%P=load i8*,i8**%b,align 8
store i8*null,i8**%b,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 28)#0
%V=getelementptr inbounds i8,i8*%U,i64 -4
%W=bitcast i8*%V to i32*
store i32 1342177304,i32*%W,align 4
store i8*%U,i8**%b,align 8
%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,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@aM,i64 0,i32 2,i64 0),i8**%aa,align 8
%ab=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%ac=getelementptr inbounds i8,i8*%U,i64 16
%ad=bitcast i8*%ac to i8**
store i8*%ab,i8**%ad,align 8
%ae=getelementptr inbounds i8,i8*%U,i64 24
%af=bitcast i8*%ae to i32*
store i32 7,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**%b,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:
ret i32%g
}
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=bitcast i8*%k to i32*
%n=load i32,i32*%m,align 4
%o=getelementptr inbounds i8,i8*%k,i64 8
%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 24
%s=bitcast i8*%r to i32**
%t=load i32*,i32**%s,align 8
%u=load i32,i32*%t,align 4
%v=icmp eq i32%u,0
br i1%v,label%au,label%w
w:
%x=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%x,i8**%c,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**%e,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]}>*@aA,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=load i8*,i8**%b,align 8
%J=getelementptr inbounds i8,i8*%I,i64 56
%K=bitcast i8*%J to i8**
%L=load i8*,i8**%K,align 8
%M=getelementptr inbounds i8,i8*%L,i64 56
%N=bitcast i8*%M to i8**
%O=load i8*,i8**%N,align 8
store i8*%O,i8**%b,align 8
%P=call i8*@sml_alloc(i32 inreg 28)#0
%Q=getelementptr inbounds i8,i8*%P,i64 -4
%R=bitcast i8*%Q to i32*
store i32 1342177304,i32*%R,align 4
store i8*%P,i8**%d,align 8
%S=load i8*,i8**%e,align 8
store i8*null,i8**%e,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]}>*@au,i64 0,i32 2,i64 0),i8**%V,align 8
%W=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%X=getelementptr inbounds i8,i8*%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
%ab=call i8*@sml_alloc(i32 inreg 28)#0
%ac=getelementptr inbounds i8,i8*%ab,i64 -4
%ad=bitcast i8*%ac to i32*
store i32 1342177304,i32*%ad,align 4
store i8*%ab,i8**%b,align 8
%ae=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%af=bitcast i8*%ab to i8**
store i8*%ae,i8**%af,align 8
%ag=getelementptr inbounds i8,i8*%ab,i64 8
%ah=bitcast i8*%ag to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@aM,i64 0,i32 2,i64 0),i8**%ah,align 8
%ai=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aj=getelementptr inbounds i8,i8*%ab,i64 16
%ak=bitcast i8*%aj to i8**
store i8*%ai,i8**%ak,align 8
%al=getelementptr inbounds i8,i8*%ab,i64 24
%am=bitcast i8*%al to i32*
store i32 7,i32*%am,align 4
%an=call i8*@sml_alloc(i32 inreg 60)#0
%ao=getelementptr inbounds i8,i8*%an,i64 -4
%ap=bitcast i8*%ao to i32*
store i32 1342177336,i32*%ap,align 4
%aq=getelementptr inbounds i8,i8*%an,i64 56
%ar=bitcast i8*%aq to i32*
store i32 1,i32*%ar,align 4
%as=load i8*,i8**%b,align 8
%at=bitcast i8*%an to i8**
store i8*%as,i8**%at,align 8
call void@sml_raise(i8*inreg%an)#1
unreachable
au:
%av=getelementptr inbounds i8,i8*%q,i64 56
%aw=bitcast i8*%av to i8**
%ax=load i8*,i8**%aw,align 8
%ay=getelementptr inbounds i8,i8*%ax,i64 64
%az=bitcast i8*%ay to i8**
%aA=load i8*,i8**%az,align 8
%aB=icmp eq i8*%aA,null
br i1%aB,label%aC,label%bq
aC:
%aD=load i8*,i8**@_SMLZN2IO24RandomAccessNotSupportedE,align 8
store i8*%aD,i8**%d,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
store i8*%aE,i8**%c,align 8
%aH=load i8*,i8**%d,align 8
%aI=bitcast i8*%aE to i8**
store i8*%aH,i8**%aI,align 8
%aJ=getelementptr inbounds i8,i8*%aE,i64 8
%aK=bitcast i8*%aJ to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@av,i64 0,i32 2,i64 0),i8**%aK,align 8
%aL=getelementptr inbounds i8,i8*%aE,i64 16
%aM=bitcast i8*%aL to i32*
store i32 3,i32*%aM,align 4
%aN=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%aN,i8**%d,align 8
%aO=load i8*,i8**%b,align 8
%aP=getelementptr inbounds i8,i8*%aO,i64 56
%aQ=bitcast i8*%aP to i8**
%aR=load i8*,i8**%aQ,align 8
%aS=getelementptr inbounds i8,i8*%aR,i64 56
%aT=bitcast i8*%aS to i8**
%aU=load i8*,i8**%aT,align 8
store i8*%aU,i8**%b,align 8
%aV=call i8*@sml_alloc(i32 inreg 28)#0
%aW=getelementptr inbounds i8,i8*%aV,i64 -4
%aX=bitcast i8*%aW to i32*
store i32 1342177304,i32*%aX,align 4
store i8*%aV,i8**%e,align 8
%aY=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aZ=bitcast i8*%aV to i8**
store i8*%aY,i8**%aZ,align 8
%a0=getelementptr inbounds i8,i8*%aV,i64 8
%a1=bitcast i8*%a0 to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[10x i8]}>,<{[4x i8],i32,[10x i8]}>*@aw,i64 0,i32 2,i64 0),i8**%a1,align 8
%a2=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%a3=getelementptr inbounds i8,i8*%aV,i64 16
%a4=bitcast i8*%a3 to i8**
store i8*%a2,i8**%a4,align 8
%a5=getelementptr inbounds i8,i8*%aV,i64 24
%a6=bitcast i8*%a5 to i32*
store i32 7,i32*%a6,align 4
%a7=call i8*@sml_alloc(i32 inreg 28)#0
%a8=getelementptr inbounds i8,i8*%a7,i64 -4
%a9=bitcast i8*%a8 to i32*
store i32 1342177304,i32*%a9,align 4
store i8*%a7,i8**%b,align 8
%ba=load i8*,i8**%d,align 8
store i8*null,i8**%d,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 i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@aM,i64 0,i32 2,i64 0),i8**%bd,align 8
%be=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%bf=getelementptr inbounds i8,i8*%a7,i64 16
%bg=bitcast i8*%bf to i8**
store i8*%be,i8**%bg,align 8
%bh=getelementptr inbounds i8,i8*%a7,i64 24
%bi=bitcast i8*%bh to i32*
store i32 7,i32*%bi,align 4
%bj=call i8*@sml_alloc(i32 inreg 60)#0
%bk=getelementptr inbounds i8,i8*%bj,i64 -4
%bl=bitcast i8*%bk to i32*
store i32 1342177336,i32*%bl,align 4
%bm=getelementptr inbounds i8,i8*%bj,i64 56
%bn=bitcast i8*%bm to i32*
store i32 1,i32*%bn,align 4
%bo=load i8*,i8**%b,align 8
%bp=bitcast i8*%bj to i8**
store i8*%bo,i8**%bp,align 8
call void@sml_raise(i8*inreg%bj)#1
unreachable
bq:
%br=bitcast i8*%aA to i8**
%bs=load i8*,i8**%br,align 8
%bt=getelementptr inbounds i8,i8*%bs,i64 16
%bu=bitcast i8*%bt to i8*(i8*,i8*)**
%bv=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bu,align 8
%bw=bitcast i8*%bs to i8**
%bx=load i8*,i8**%bw,align 8
store i8*%bx,i8**%c,align 8
%by=call i8*@sml_alloc(i32 inreg 4)#0
%bz=bitcast i8*%by to i32*
%bA=getelementptr inbounds i8,i8*%by,i64 -4
%bB=bitcast i8*%bA to i32*
store i32 4,i32*%bB,align 4
store i32%n,i32*%bz,align 4
%bC=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bD=invoke fastcc i8*%bv(i8*inreg%bC,i8*inreg%by)
to label%bE unwind label%bG
bE:
%bF=load i8*,i8**%b,align 8
ret i8*%bF
bG:
%bH=landingpad{i8*,i8*}
catch i8*null
%bI=extractvalue{i8*,i8*}%bH,1
%bJ=bitcast i8*%bI to i8**
%bK=load i8*,i8**%bJ,align 8
store i8*%bK,i8**%e,align 8
%bL=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%bL,i8**%c,align 8
%bM=load i8*,i8**%b,align 8
%bN=getelementptr inbounds i8,i8*%bM,i64 56
%bO=bitcast i8*%bN to i8**
%bP=load i8*,i8**%bO,align 8
%bQ=getelementptr inbounds i8,i8*%bP,i64 56
%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 28)#0
%bU=getelementptr inbounds i8,i8*%bT,i64 -4
%bV=bitcast i8*%bU to i32*
store i32 1342177304,i32*%bV,align 4
store i8*%bT,i8**%d,align 8
%bW=load i8*,i8**%e,align 8
store i8*null,i8**%e,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 i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[10x i8]}>,<{[4x i8],i32,[10x i8]}>*@au,i64 0,i32 2,i64 0),i8**%bZ,align 8
%b0=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%b1=getelementptr inbounds i8,i8*%bT,i64 16
%b2=bitcast i8*%b1 to i8**
store i8*%b0,i8**%b2,align 8
%b3=getelementptr inbounds i8,i8*%bT,i64 24
%b4=bitcast i8*%b3 to i32*
store i32 7,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**%b,align 8
%b8=load i8*,i8**%c,align 8
store i8*null,i8**%c,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 i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@aM,i64 0,i32 2,i64 0),i8**%cb,align 8
%cc=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%cd=getelementptr inbounds i8,i8*%b5,i64 16
%ce=bitcast i8*%cd to i8**
store i8*%cc,i8**%ce,align 8
%cf=getelementptr inbounds i8,i8*%b5,i64 24
%cg=bitcast i8*%cf to i32*
store i32 7,i32*%cg,align 4
%ch=call i8*@sml_alloc(i32 inreg 60)#0
%ci=getelementptr inbounds i8,i8*%ch,i64 -4
%cj=bitcast i8*%ci to i32*
store i32 1342177336,i32*%cj,align 4
%ck=getelementptr inbounds i8,i8*%ch,i64 56
%cl=bitcast i8*%ck to i32*
store i32 1,i32*%cl,align 4
%cm=load i8*,i8**%b,align 8
%cn=bitcast i8*%ch to i8**
store i8*%cm,i8**%cn,align 8
call void@sml_raise(i8*inreg%ch)#1
unreachable
}
define fastcc void@_SMLFN5BinIO8StreamIO13setBufferModeE(i8*inreg%a)#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=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*%m,i64 8
%u=bitcast i8*%t to i32*
%v=load i32,i32*%u,align 4
%w=icmp eq i32%v,2
%x=bitcast i8*%s to i32*
br i1%w,label%aD,label%y
y:
%z=getelementptr inbounds i8,i8*%p,i64 24
%A=bitcast i8*%z to i32**
%B=load i32*,i32**%A,align 8
%C=load i32,i32*%B,align 4
%D=icmp eq i32%C,0
br i1%D,label%aC,label%E
E:
%F=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%F,i8**%c,align 8
%G=load i8*,i8**@_SMLZN2IO12ClosedStreamE,align 8
store i8*%G,i8**%d,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**%e,align 8
%K=load i8*,i8**%d,align 8
store i8*null,i8**%d,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,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@aA,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=load i8*,i8**%b,align 8
%R=getelementptr inbounds i8,i8*%Q,i64 56
%S=bitcast i8*%R to i8**
%T=load i8*,i8**%S,align 8
%U=getelementptr inbounds i8,i8*%T,i64 56
%V=bitcast i8*%U to i8**
%W=load i8*,i8**%V,align 8
store i8*%W,i8**%b,align 8
%X=call i8*@sml_alloc(i32 inreg 28)#0
%Y=getelementptr inbounds i8,i8*%X,i64 -4
%Z=bitcast i8*%Y to i32*
store i32 1342177304,i32*%Z,align 4
store i8*%X,i8**%d,align 8
%aa=load i8*,i8**%e,align 8
store i8*null,i8**%e,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 i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[14x i8]}>,<{[4x i8],i32,[14x i8]}>*@ay,i64 0,i32 2,i64 0),i8**%ad,align 8
%ae=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%af=getelementptr inbounds i8,i8*%X,i64 16
%ag=bitcast i8*%af to i8**
store i8*%ae,i8**%ag,align 8
%ah=getelementptr inbounds i8,i8*%X,i64 24
%ai=bitcast i8*%ah to i32*
store i32 7,i32*%ai,align 4
%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
store i8*%aj,i8**%b,align 8
%am=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%an=bitcast i8*%aj to i8**
store i8*%am,i8**%an,align 8
%ao=getelementptr inbounds i8,i8*%aj,i64 8
%ap=bitcast i8*%ao to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@aM,i64 0,i32 2,i64 0),i8**%ap,align 8
%aq=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%ar=getelementptr inbounds i8,i8*%aj,i64 16
%as=bitcast i8*%ar to i8**
store i8*%aq,i8**%as,align 8
%at=getelementptr inbounds i8,i8*%aj,i64 24
%au=bitcast i8*%at to i32*
store i32 7,i32*%au,align 4
%av=call i8*@sml_alloc(i32 inreg 60)#0
%aw=getelementptr inbounds i8,i8*%av,i64 -4
%ax=bitcast i8*%aw to i32*
store i32 1342177336,i32*%ax,align 4
%ay=getelementptr inbounds i8,i8*%av,i64 56
%az=bitcast i8*%ay to i32*
store i32 1,i32*%az,align 4
%aA=load i8*,i8**%b,align 8
%aB=bitcast i8*%av to i8**
store i8*%aA,i8**%aB,align 8
call void@sml_raise(i8*inreg%av)#1
unreachable
aC:
store i32%v,i32*%x,align 4
ret void
aD:
%aE=bitcast i8*%p to i8**
%aF=load i8*,i8**%aE,align 8
store i8*%aF,i8**%d,align 8
%aG=getelementptr inbounds i8,i8*%p,i64 32
%aH=bitcast i8*%aG to i8**
%aI=load i8*,i8**%aH,align 8
store i8*%aI,i8**%e,align 8
%aJ=getelementptr inbounds i8,i8*%p,i64 40
%aK=bitcast i8*%aJ to i8**
%aL=load i8*,i8**%aK,align 8
%aM=bitcast i8*%aI to i32*
%aN=load i32,i32*%aM,align 4
%aO=icmp eq i32%aN,0
br i1%aO,label%b8,label%aP
aP:
%aQ=getelementptr inbounds i8,i8*%aL,i64 16
%aR=bitcast i8*%aQ to i8*(i8*,i8*)**
%aS=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aR,align 8
%aT=bitcast i8*%aL to i8**
%aU=load i8*,i8**%aT,align 8
store i8*%aU,i8**%f,align 8
%aV=call i8*@sml_alloc(i32 inreg 12)#0
%aW=getelementptr inbounds i8,i8*%aV,i64 -4
%aX=bitcast i8*%aW to i32*
store i32 1342177288,i32*%aX,align 4
store i8*%aV,i8**%g,align 8
%aY=getelementptr inbounds i8,i8*%aV,i64 4
%aZ=bitcast i8*%aY to i32*
store i32 0,i32*%aZ,align 1
%a0=bitcast i8*%aV to i32*
store i32%aN,i32*%a0,align 4
%a1=getelementptr inbounds i8,i8*%aV,i64 8
%a2=bitcast i8*%a1 to i32*
store i32 0,i32*%a2,align 4
%a3=call i8*@sml_alloc(i32 inreg 28)#0
%a4=getelementptr inbounds i8,i8*%a3,i64 -4
%a5=bitcast i8*%a4 to i32*
store i32 1342177304,i32*%a5,align 4
%a6=getelementptr inbounds i8,i8*%a3,i64 12
%a7=bitcast i8*%a6 to i32*
store i32 0,i32*%a7,align 1
%a8=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%a9=bitcast i8*%a3 to i8**
store i8*%a8,i8**%a9,align 8
%ba=getelementptr inbounds i8,i8*%a3,i64 8
%bb=bitcast i8*%ba to i32*
store i32 0,i32*%bb,align 4
%bc=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%bd=getelementptr inbounds i8,i8*%a3,i64 16
%be=bitcast i8*%bd to i8**
store i8*%bc,i8**%be,align 8
%bf=getelementptr inbounds i8,i8*%a3,i64 24
%bg=bitcast i8*%bf to i32*
store i32 5,i32*%bg,align 4
%bh=invoke fastcc i8*@_SMLFN15Word8ArraySlice5sliceE(i8*inreg%a3)
to label%bi unwind label%bq
bi:
%bj=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%bk=invoke fastcc i8*%aS(i8*inreg%bj,i8*inreg%bh)
to label%bl unwind label%bq
bl:
%bm=bitcast i8**%e to i32**
%bn=load i32*,i32**%bm,align 8
store i32 0,i32*%bn,align 4
%bo=bitcast i8**%c to i32**
%bp=load i32*,i32**%bo,align 8
br label%b8
bq:
%br=landingpad{i8*,i8*}
catch i8*null
%bs=extractvalue{i8*,i8*}%br,1
%bt=bitcast i8*%bs to i8**
%bu=load i8*,i8**%bt,align 8
store i8*null,i8**%f,align 8
store i8*%bu,i8**%e,align 8
%bv=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%bv,i8**%c,align 8
%bw=load i8*,i8**%b,align 8
%bx=getelementptr inbounds i8,i8*%bw,i64 56
%by=bitcast i8*%bx to i8**
%bz=load i8*,i8**%by,align 8
%bA=getelementptr inbounds i8,i8*%bz,i64 56
%bB=bitcast i8*%bA to i8**
%bC=load i8*,i8**%bB,align 8
store i8*%bC,i8**%b,align 8
%bD=call i8*@sml_alloc(i32 inreg 28)#0
%bE=getelementptr inbounds i8,i8*%bD,i64 -4
%bF=bitcast i8*%bE to i32*
store i32 1342177304,i32*%bF,align 4
store i8*%bD,i8**%d,align 8
%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,[14x i8]}>,<{[4x i8],i32,[14x i8]}>*@ay,i64 0,i32 2,i64 0),i8**%bJ,align 8
%bK=load i8*,i8**%b,align 8
store i8*null,i8**%b,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
%bP=call i8*@sml_alloc(i32 inreg 28)#0
%bQ=getelementptr inbounds i8,i8*%bP,i64 -4
%bR=bitcast i8*%bQ to i32*
store i32 1342177304,i32*%bR,align 4
store i8*%bP,i8**%b,align 8
%bS=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bT=bitcast i8*%bP to i8**
store i8*%bS,i8**%bT,align 8
%bU=getelementptr inbounds i8,i8*%bP,i64 8
%bV=bitcast i8*%bU to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@aM,i64 0,i32 2,i64 0),i8**%bV,align 8
%bW=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%bX=getelementptr inbounds i8,i8*%bP,i64 16
%bY=bitcast i8*%bX to i8**
store i8*%bW,i8**%bY,align 8
%bZ=getelementptr inbounds i8,i8*%bP,i64 24
%b0=bitcast i8*%bZ to i32*
store i32 7,i32*%b0,align 4
%b1=call i8*@sml_alloc(i32 inreg 60)#0
%b2=getelementptr inbounds i8,i8*%b1,i64 -4
%b3=bitcast i8*%b2 to i32*
store i32 1342177336,i32*%b3,align 4
%b4=getelementptr inbounds i8,i8*%b1,i64 56
%b5=bitcast i8*%b4 to i32*
store i32 1,i32*%b5,align 4
%b6=load i8*,i8**%b,align 8
%b7=bitcast i8*%b1 to i8**
store i8*%b6,i8**%b7,align 8
call void@sml_raise(i8*inreg%b1)#1
unreachable
b8:
%b9=phi i32*[%bp,%bl],[%x,%aD]
store i32 2,i32*%b9,align 4
ret void
}
define fastcc i32@_SMLFN5BinIO8StreamIO13getBufferModeE(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
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=getelementptr inbounds i8,i8*%a,i64 24
%g=bitcast i8*%f to i32**
%h=load i32*,i32**%g,align 8
%i=load i32,i32*%h,align 4
%j=icmp eq i32%i,0
br i1%j,label%ai,label%k
k:
%l=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%l,i8**%c,align 8
%m=load i8*,i8**@_SMLZN2IO12ClosedStreamE,align 8
store i8*%m,i8**%d,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
store i8*%n,i8**%e,align 8
%q=load i8*,i8**%d,align 8
store i8*null,i8**%d,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,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@aA,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
%w=load i8*,i8**%b,align 8
%x=getelementptr inbounds i8,i8*%w,i64 56
%y=bitcast i8*%x to i8**
%z=load i8*,i8**%y,align 8
%A=getelementptr inbounds i8,i8*%z,i64 56
%B=bitcast i8*%A to i8**
%C=load i8*,i8**%B,align 8
store i8*%C,i8**%b,align 8
%D=call i8*@sml_alloc(i32 inreg 28)#0
%E=getelementptr inbounds i8,i8*%D,i64 -4
%F=bitcast i8*%E to i32*
store i32 1342177304,i32*%F,align 4
store i8*%D,i8**%d,align 8
%G=load i8*,i8**%e,align 8
store i8*null,i8**%e,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,[14x i8]}>,<{[4x i8],i32,[14x i8]}>*@aB,i64 0,i32 2,i64 0),i8**%J,align 8
%K=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%L=getelementptr inbounds i8,i8*%D,i64 16
%M=bitcast i8*%L to i8**
store i8*%K,i8**%M,align 8
%N=getelementptr inbounds i8,i8*%D,i64 24
%O=bitcast i8*%N to i32*
store i32 7,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
store i8*%P,i8**%b,align 8
%S=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%T=bitcast i8*%P to i8**
store i8*%S,i8**%T,align 8
%U=getelementptr inbounds i8,i8*%P,i64 8
%V=bitcast i8*%U to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@aM,i64 0,i32 2,i64 0),i8**%V,align 8
%W=load i8*,i8**%d,align 8
store i8*null,i8**%d,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
%ab=call i8*@sml_alloc(i32 inreg 60)#0
%ac=getelementptr inbounds i8,i8*%ab,i64 -4
%ad=bitcast i8*%ac to i32*
store i32 1342177336,i32*%ad,align 4
%ae=getelementptr inbounds i8,i8*%ab,i64 56
%af=bitcast i8*%ae to i32*
store i32 1,i32*%af,align 4
%ag=load i8*,i8**%b,align 8
%ah=bitcast i8*%ab to i8**
store i8*%ag,i8**%ah,align 8
call void@sml_raise(i8*inreg%ab)#1
unreachable
ai:
%aj=getelementptr inbounds i8,i8*%a,i64 8
%ak=bitcast i8*%aj to i32**
%al=load i32*,i32**%ak,align 8
%am=load i32,i32*%al,align 4
ret i32%am
}
define internal fastcc i8*@_SMLLLN5BinIO5inputE_420(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*@_SMLLLN5BinIO8StreamIO5inputE_240(i8*inreg%r,i8*inreg%s)
%u=bitcast i8*%t to i8**
%v=load i8*,i8**%u,align 8
%w=getelementptr inbounds i8,i8*%t,i64 8
%x=bitcast i8*%w to i8**
%y=load i8*,i8**%x,align 8
%z=load i8*,i8**%c,align 8
%A=bitcast i8*%z to i8**
call void@sml_write(i8*inreg%z,i8**inreg%A,i8*inreg%y)#0
ret i8*%v
}
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*@_SMLFN5BinIO8StreamIO6input1E(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=getelementptr inbounds i8,i8*%r,i64 8
%u=bitcast i8*%t to i8**
%v=load i8*,i8**%u,align 8
%w=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%x=bitcast i8*%w to i8**
call void@sml_write(i8*inreg%w,i8**inreg%x,i8*inreg%v)#0
%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%s,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 fastcc i8*@_SMLFN5BinIO6inputNE(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*%i,i64 8
%n=bitcast i8*%m to i32*
%o=load i32,i32*%n,align 4
%p=bitcast i8*%l to i8**
%q=load i8*,i8**%p,align 8
store i8*%q,i8**%c,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
%u=getelementptr inbounds i8,i8*%r,i64 12
%v=bitcast i8*%u to i32*
store i32 0,i32*%v,align 1
%w=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%x=bitcast i8*%r to i8**
store i8*%w,i8**%x,align 8
%y=getelementptr inbounds i8,i8*%r,i64 8
%z=bitcast i8*%y to i32*
store i32%o,i32*%z,align 4
%A=getelementptr inbounds i8,i8*%r,i64 16
%B=bitcast i8*%A to i32*
store i32 1,i32*%B,align 4
%C=call fastcc i8*@_SMLFN5BinIO8StreamIO6inputNE(i8*inreg%r)
%D=bitcast i8*%C to i8**
%E=load i8*,i8**%D,align 8
%F=getelementptr inbounds i8,i8*%C,i64 8
%G=bitcast i8*%F to i8**
%H=load i8*,i8**%G,align 8
%I=load i8*,i8**%b,align 8
%J=bitcast i8*%I to i8**
call void@sml_write(i8*inreg%I,i8**inreg%J,i8*inreg%H)#0
ret i8*%E
}
define internal fastcc i8*@_SMLLLN5BinIO8inputAllE_425(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*@_SMLLLN5BinIO8StreamIO8inputAllE_273(i8*inreg%r,i8*inreg%s)
%u=bitcast i8*%t to i8**
%v=load i8*,i8**%u,align 8
%w=getelementptr inbounds i8,i8*%t,i64 8
%x=bitcast i8*%w to i8**
%y=load i8*,i8**%x,align 8
%z=load i8*,i8**%c,align 8
%A=bitcast i8*%z to i8**
call void@sml_write(i8*inreg%z,i8**inreg%A,i8*inreg%y)#0
ret i8*%v
}
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=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 i32*
%n=load i32,i32*%m,align 4
%o=load i8*,i8**%k,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%n,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 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*@_SMLFN5BinIO8StreamIO6input1E(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
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=bitcast i8*%a to i8**
%e=load i8*,i8**%d,align 8
%f=bitcast i8*%e to i8**
%g=load i8*,i8**%f,align 8
store i8*%g,i8**%c,align 8
call fastcc void@_SMLFN5BinIO8StreamIO7closeInE(i8*inreg%e)
br label%h
h:
%i=load atomic i32,i32*@sml_check_flag unordered,align 4
%j=icmp eq i32%i,0
br i1%j,label%l,label%k
k:
call void@sml_check(i32 inreg%i)
br label%l
l:
%m=load i8*,i8**%c,align 8
%n=getelementptr inbounds i8,i8*%m,i64 24
%o=bitcast i8*%n to i8***
%p=load i8**,i8***%o,align 8
%q=load i8*,i8**%p,align 8
%r=bitcast i8*%q to i32*
%s=load i32,i32*%r,align 4
%t=icmp ult i32%s,2
br i1%t,label%M,label%u
u:
%v=getelementptr inbounds i8,i8*%m,i64 8
%w=bitcast i8*%v to i8**
%x=load i8*,i8**%w,align 8
%y=call fastcc i32@_SMLFN11Word8Vector6lengthE(i8*inreg%x)
%z=call i8*@sml_alloc(i32 inreg 20)#0
%A=getelementptr inbounds i8,i8*%z,i64 -4
%B=bitcast i8*%A to i32*
store i32 1342177296,i32*%B,align 4
%C=getelementptr inbounds i8,i8*%z,i64 12
%D=bitcast i8*%C to i32*
store i32 0,i32*%D,align 1
%E=load i8*,i8**%c,align 8
%F=bitcast i8*%z to i8**
store i8*%E,i8**%F,align 8
%G=getelementptr inbounds i8,i8*%z,i64 8
%H=bitcast i8*%G to i32*
store i32%y,i32*%H,align 4
%I=getelementptr inbounds i8,i8*%z,i64 16
%J=bitcast i8*%I to i32*
store i32 1,i32*%J,align 4
%K=load i8*,i8**%b,align 8
%L=bitcast i8*%K to i8**
call void@sml_write(i8*inreg%K,i8**inreg%L,i8*inreg%z)#0
ret void
M:
%N=getelementptr inbounds i8,i8*%q,i64 8
%O=bitcast i8*%N to i8**
%P=load i8*,i8**%O,align 8
store i8*%P,i8**%c,align 8
br label%h
}
define fastcc i32@_SMLFN5BinIO11endOfStreamE(i8*inreg%a)#2 gc"smlsharp"{
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
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=bitcast i8*%n to i8**
%p=load i8*,i8**%o,align 8
store i8*%p,i8**%b,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
%w=getelementptr inbounds i8,i8*%p,i64 16
%x=bitcast i8*%w to i8**
%y=load i8*,i8**%x,align 8
%z=getelementptr inbounds i8,i8*%y,i64 8
%A=bitcast i8*%z to i8**
%B=load i8*,i8**%A,align 8
store i8*%B,i8**%c,align 8
%C=getelementptr inbounds i8,i8*%p,i64 24
%D=bitcast i8*%C to i8**
%E=load i8*,i8**%D,align 8
store i8*%E,i8**%d,align 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,1
br i1%I,label%aw,label%J
J:
%K=call fastcc i32@_SMLFN11Word8Vector6lengthE(i8*inreg%v)
%L=icmp eq i32%s,%K
br i1%L,label%M,label%aw
M:
%N=bitcast i8**%d to i32***
%O=load i32**,i32***%N,align 8
store i8*null,i8**%d,align 8
%P=load i32*,i32**%O,align 8
%Q=bitcast i8**%c to i32**
%R=load i32*,i32**%Q,align 8
%S=load i32,i32*%R,align 4
%T=load i32,i32*%P,align 4
%U=icmp eq i32%T,2
%V=icmp eq i32%S,0
%W=and i1%V,%U
br i1%W,label%X,label%aw
X:
%Y=load i8*,i8**%b,align 8
%Z=getelementptr inbounds i8,i8*%Y,i64 16
%aa=bitcast i8*%Z 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,[12x i8]}>,<{[4x i8],i32,[12x i8]}>*@aI,i64 0,i32 2,i64 0),i8**%al,align 8
%am=load i8*,i8**%b,align 8
store i8*null,i8**%b,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*@_SMLLLN5BinIO8StreamIO12extendStreamE_234(i8*inreg%af)
%as=bitcast i8*%ar to i32*
%at=load i32,i32*%as,align 4
%au=icmp eq i32%at,0
%av=zext i1%au to i32
br label%aw
aw:
%ax=phi i32[%av,%X],[1,%M],[0,%J],[0,%l]
ret i32%ax
}
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=bitcast i8*%i to i8***
%l=load i8**,i8***%k,align 8
%m=getelementptr inbounds i8,i8*%i,i64 8
%n=bitcast i8*%m to i8**
%o=load i8*,i8**%n,align 8
store i8*%o,i8**%b,align 8
%p=load i8*,i8**%l,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=bitcast i8*%h to i8***
%k=load i8**,i8***%j,align 8
%l=getelementptr inbounds i8,i8*%h,i64 8
%m=load i8,i8*%l,align 1
%n=load i8*,i8**%k,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%m,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"personality i32(...)*@sml_personality{
%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%i,label%k
i:
%j=bitcast i8*%a to i8**
br label%n
k:
call void@sml_check(i32 inreg%g)
%l=bitcast i8**%b 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
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*%p,i64 40
%w=bitcast i8*%v to i8**
%x=load i8*,i8**%w,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%a2,label%B
B:
%C=getelementptr inbounds i8,i8*%x,i64 16
%D=bitcast i8*%C to i8*(i8*,i8*)**
%E=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%D,align 8
%F=bitcast i8*%x to i8**
%G=load i8*,i8**%F,align 8
store i8*%G,i8**%e,align 8
%H=call i8*@sml_alloc(i32 inreg 12)#0
%I=getelementptr inbounds i8,i8*%H,i64 -4
%J=bitcast i8*%I to i32*
store i32 1342177288,i32*%J,align 4
store i8*%H,i8**%f,align 8
%K=getelementptr inbounds i8,i8*%H,i64 4
%L=bitcast i8*%K to i32*
store i32 0,i32*%L,align 1
%M=bitcast i8*%H to i32*
store i32%z,i32*%M,align 4
%N=getelementptr inbounds i8,i8*%H,i64 8
%O=bitcast i8*%N to i32*
store i32 0,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=getelementptr inbounds i8,i8*%P,i64 12
%T=bitcast i8*%S to i32*
store i32 0,i32*%T,align 1
%U=load i8*,i8**%c,align 8
store i8*null,i8**%c,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 0,i32*%X,align 4
%Y=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%Z=getelementptr inbounds i8,i8*%P,i64 16
%aa=bitcast i8*%Z to i8**
store i8*%Y,i8**%aa,align 8
%ab=getelementptr inbounds i8,i8*%P,i64 24
%ac=bitcast i8*%ab to i32*
store i32 5,i32*%ac,align 4
%ad=invoke fastcc i8*@_SMLFN15Word8ArraySlice5sliceE(i8*inreg%P)
to label%ae unwind label%ak
ae:
%af=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%ag=invoke fastcc i8*%E(i8*inreg%af,i8*inreg%ad)
to label%ah unwind label%ak
ah:
%ai=bitcast i8**%d to i32**
%aj=load i32*,i32**%ai,align 8
store i32 0,i32*%aj,align 4
ret void
ak:
%al=landingpad{i8*,i8*}
catch i8*null
%am=extractvalue{i8*,i8*}%al,1
%an=bitcast i8*%am to i8**
%ao=load i8*,i8**%an,align 8
store i8*null,i8**%d,align 8
store i8*%ao,i8**%e,align 8
%ap=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%ap,i8**%c,align 8
%aq=load i8*,i8**%b,align 8
%ar=getelementptr inbounds i8,i8*%aq,i64 56
%as=bitcast i8*%ar to i8**
%at=load i8*,i8**%as,align 8
%au=getelementptr inbounds i8,i8*%at,i64 56
%av=bitcast i8*%au to i8**
%aw=load i8*,i8**%av,align 8
store i8*%aw,i8**%b,align 8
%ax=call i8*@sml_alloc(i32 inreg 28)#0
%ay=getelementptr inbounds i8,i8*%ax,i64 -4
%az=bitcast i8*%ay to i32*
store i32 1342177304,i32*%az,align 4
store i8*%ax,i8**%d,align 8
%aA=load i8*,i8**%e,align 8
store i8*null,i8**%e,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,[9x i8]}>,<{[4x i8],i32,[9x i8]}>*@aN,i64 0,i32 2,i64 0),i8**%aD,align 8
%aE=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aF=getelementptr inbounds i8,i8*%ax,i64 16
%aG=bitcast i8*%aF to i8**
store i8*%aE,i8**%aG,align 8
%aH=getelementptr inbounds i8,i8*%ax,i64 24
%aI=bitcast i8*%aH to i32*
store i32 7,i32*%aI,align 4
%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
store i8*%aJ,i8**%b,align 8
%aM=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aN=bitcast i8*%aJ to i8**
store i8*%aM,i8**%aN,align 8
%aO=getelementptr inbounds i8,i8*%aJ,i64 8
%aP=bitcast i8*%aO to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@aM,i64 0,i32 2,i64 0),i8**%aP,align 8
%aQ=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aR=getelementptr inbounds i8,i8*%aJ,i64 16
%aS=bitcast i8*%aR to i8**
store i8*%aQ,i8**%aS,align 8
%aT=getelementptr inbounds i8,i8*%aJ,i64 24
%aU=bitcast i8*%aT to i32*
store i32 7,i32*%aU,align 4
%aV=call i8*@sml_alloc(i32 inreg 60)#0
%aW=getelementptr inbounds i8,i8*%aV,i64 -4
%aX=bitcast i8*%aW to i32*
store i32 1342177336,i32*%aX,align 4
%aY=getelementptr inbounds i8,i8*%aV,i64 56
%aZ=bitcast i8*%aY to i32*
store i32 1,i32*%aZ,align 4
%a0=load i8*,i8**%b,align 8
%a1=bitcast i8*%aV to i8**
store i8*%a0,i8**%a1,align 8
call void@sml_raise(i8*inreg%aV)#1
unreachable
a2:
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*@_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 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=call fastcc i8*@_SMLFN5BinIO8StreamIO9setPosOutE(i8*inreg%n)
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 internal fastcc i8*@_SMLLLN5BinIO6openInE_463(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
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%j,label%i
i:
call void@sml_check(i32 inreg%g)
br label%j
j:
%k=call i8*@sml_alloc(i32 inreg 8)#0
%l=getelementptr inbounds i8,i8*%k,i64 -4
%m=bitcast i8*%l to i32*
store i32 805306376,i32*%m,align 4
store i8*%k,i8**%f,align 8
%n=bitcast i8*%k to i64*
store i64 0,i64*%n,align 1
%o=load i8*,i8**%c,align 8
%p=invoke fastcc i8*@_SMLFN29SMLSharp__SMLNJ__PosixBinPrimIO6openRdE(i8*inreg%o)
to label%q unwind label%J
q:
store i8*%p,i8**%e,align 8
%r=bitcast i8**%d to i8***
%s=load i8**,i8***%r,align 8
%t=load i8*,i8**%s,align 8
store i8*%t,i8**%d,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**%e,align 8
store i8*null,i8**%e,align 8
%y=bitcast i8*%u to i8**
store i8*%x,i8**%y,align 8
%z=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%A=getelementptr inbounds i8,i8*%u,i64 8
%B=bitcast i8*%A to i8**
store i8*%z,i8**%B,align 8
%C=getelementptr inbounds i8,i8*%u,i64 16
%D=bitcast i8*%C to i32*
store i32 3,i32*%D,align 4
%E=invoke fastcc i8*@_SMLFN5BinIO8StreamIO10mkInstreamE(i8*inreg%u)
to label%F unwind label%J
F:
%G=load i8*,i8**%f,align 8
%H=bitcast i8*%G to i8**
call void@sml_write(i8*inreg%G,i8**inreg%H,i8*inreg%E)#0
%I=load i8*,i8**%f,align 8
ret i8*%I
J:
%K=landingpad{i8*,i8*}
catch i8*null
%L=extractvalue{i8*,i8*}%K,1
%M=bitcast i8*%L to i8**
%N=load i8*,i8**%M,align 8
store i8*null,i8**%e,align 8
store i8*%N,i8**%f,align 8
%O=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%O,i8**%d,align 8
%P=call i8*@sml_alloc(i32 inreg 28)#0
%Q=getelementptr inbounds i8,i8*%P,i64 -4
%R=bitcast i8*%Q to i32*
store i32 1342177304,i32*%R,align 4
store i8*%P,i8**%e,align 8
%S=load i8*,i8**%f,align 8
store i8*null,i8**%f,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,[7x i8]}>,<{[4x i8],i32,[7x i8]}>*@aZ,i64 0,i32 2,i64 0),i8**%V,align 8
%W=load i8*,i8**%c,align 8
store i8*null,i8**%c,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
%ab=call i8*@sml_alloc(i32 inreg 28)#0
%ac=getelementptr inbounds i8,i8*%ab,i64 -4
%ad=bitcast i8*%ac to i32*
store i32 1342177304,i32*%ad,align 4
store i8*%ab,i8**%c,align 8
%ae=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%af=bitcast i8*%ab to i8**
store i8*%ae,i8**%af,align 8
%ag=getelementptr inbounds i8,i8*%ab,i64 8
%ah=bitcast i8*%ag to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@aY,i64 0,i32 2,i64 0),i8**%ah,align 8
%ai=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%aj=getelementptr inbounds i8,i8*%ab,i64 16
%ak=bitcast i8*%aj to i8**
store i8*%ai,i8**%ak,align 8
%al=getelementptr inbounds i8,i8*%ab,i64 24
%am=bitcast i8*%al to i32*
store i32 7,i32*%am,align 4
%an=call i8*@sml_alloc(i32 inreg 60)#0
%ao=getelementptr inbounds i8,i8*%an,i64 -4
%ap=bitcast i8*%ao to i32*
store i32 1342177336,i32*%ap,align 4
%aq=getelementptr inbounds i8,i8*%an,i64 56
%ar=bitcast i8*%aq to i32*
store i32 1,i32*%ar,align 4
%as=load i8*,i8**%c,align 8
%at=bitcast i8*%an to i8**
store i8*%as,i8**%at,align 8
call void@sml_raise(i8*inreg%an)#1
unreachable
}
define fastcc i8*@_SMLFN5BinIO7openOutE(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 8)#0
%k=getelementptr inbounds i8,i8*%j,i64 -4
%l=bitcast i8*%k to i32*
store i32 805306376,i32*%l,align 4
store i8*%j,i8**%d,align 8
%m=bitcast i8*%j to i64*
store i64 0,i64*%m,align 1
%n=load i8*,i8**%b,align 8
%o=invoke fastcc i8*@_SMLFN29SMLSharp__SMLNJ__PosixBinPrimIO6openWrE(i8*inreg%n)
to label%p unwind label%G
p:
store i8*%o,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=getelementptr inbounds i8,i8*%q,i64 12
%u=bitcast i8*%t to i32*
store i32 0,i32*%u,align 1
%v=load i8*,i8**%c,align 8
store i8*null,i8**%c,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 0,i32*%y,align 4
%z=getelementptr inbounds i8,i8*%q,i64 16
%A=bitcast i8*%z to i32*
store i32 1,i32*%A,align 4
%B=invoke fastcc i8*@_SMLFN5BinIO8StreamIO11mkOutstreamE(i8*inreg%q)
to label%C unwind label%G
C:
%D=load i8*,i8**%d,align 8
%E=bitcast i8*%D to i8**
call void@sml_write(i8*inreg%D,i8**inreg%E,i8*inreg%B)#0
%F=load i8*,i8**%d,align 8
ret i8*%F
G:
%H=landingpad{i8*,i8*}
catch i8*null
%I=extractvalue{i8*,i8*}%H,1
%J=bitcast i8*%I to i8**
%K=load i8*,i8**%J,align 8
store i8*null,i8**%d,align 8
store i8*%K,i8**%e,align 8
%L=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%L,i8**%c,align 8
%M=call i8*@sml_alloc(i32 inreg 28)#0
%N=getelementptr inbounds i8,i8*%M,i64 -4
%O=bitcast i8*%N to i32*
store i32 1342177304,i32*%O,align 4
store i8*%M,i8**%d,align 8
%P=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%Q=bitcast i8*%M to i8**
store i8*%P,i8**%Q,align 8
%R=getelementptr inbounds i8,i8*%M,i64 8
%S=bitcast i8*%R to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[8x i8]}>,<{[4x i8],i32,[8x i8]}>*@a1,i64 0,i32 2,i64 0),i8**%S,align 8
%T=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%U=getelementptr inbounds i8,i8*%M,i64 16
%V=bitcast i8*%U to i8**
store i8*%T,i8**%V,align 8
%W=getelementptr inbounds i8,i8*%M,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
%aa=bitcast i8*%Z to i32*
store i32 1342177304,i32*%aa,align 4
store i8*%Y,i8**%b,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,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@a0,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
%ak=call i8*@sml_alloc(i32 inreg 60)#0
%al=getelementptr inbounds i8,i8*%ak,i64 -4
%am=bitcast i8*%al to i32*
store i32 1342177336,i32*%am,align 4
%an=getelementptr inbounds i8,i8*%ak,i64 56
%ao=bitcast i8*%an to i32*
store i32 1,i32*%ao,align 4
%ap=load i8*,i8**%b,align 8
%aq=bitcast i8*%ak to i8**
store i8*%ap,i8**%aq,align 8
call void@sml_raise(i8*inreg%ak)#1
unreachable
}
define fastcc i8*@_SMLFN5BinIO10openAppendE(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 8)#0
%k=getelementptr inbounds i8,i8*%j,i64 -4
%l=bitcast i8*%k to i32*
store i32 805306376,i32*%l,align 4
store i8*%j,i8**%d,align 8
%m=bitcast i8*%j to i64*
store i64 0,i64*%m,align 1
%n=load i8*,i8**%b,align 8
%o=invoke fastcc i8*@_SMLFN29SMLSharp__SMLNJ__PosixBinPrimIO7openAppE(i8*inreg%n)
to label%p unwind label%G
p:
store i8*%o,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=getelementptr inbounds i8,i8*%q,i64 12
%u=bitcast i8*%t to i32*
store i32 0,i32*%u,align 1
%v=load i8*,i8**%c,align 8
store i8*null,i8**%c,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 2,i32*%y,align 4
%z=getelementptr inbounds i8,i8*%q,i64 16
%A=bitcast i8*%z to i32*
store i32 1,i32*%A,align 4
%B=invoke fastcc i8*@_SMLFN5BinIO8StreamIO11mkOutstreamE(i8*inreg%q)
to label%C unwind label%G
C:
%D=load i8*,i8**%d,align 8
%E=bitcast i8*%D to i8**
call void@sml_write(i8*inreg%D,i8**inreg%E,i8*inreg%B)#0
%F=load i8*,i8**%d,align 8
ret i8*%F
G:
%H=landingpad{i8*,i8*}
catch i8*null
%I=extractvalue{i8*,i8*}%H,1
%J=bitcast i8*%I to i8**
%K=load i8*,i8**%J,align 8
store i8*null,i8**%d,align 8
store i8*%K,i8**%e,align 8
%L=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%L,i8**%c,align 8
%M=call i8*@sml_alloc(i32 inreg 28)#0
%N=getelementptr inbounds i8,i8*%M,i64 -4
%O=bitcast i8*%N to i32*
store i32 1342177304,i32*%O,align 4
store i8*%M,i8**%d,align 8
%P=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%Q=bitcast i8*%M to i8**
store i8*%P,i8**%Q,align 8
%R=getelementptr inbounds i8,i8*%M,i64 8
%S=bitcast i8*%R to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[11x i8]}>,<{[4x i8],i32,[11x i8]}>*@a4,i64 0,i32 2,i64 0),i8**%S,align 8
%T=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%U=getelementptr inbounds i8,i8*%M,i64 16
%V=bitcast i8*%U to i8**
store i8*%T,i8**%V,align 8
%W=getelementptr inbounds i8,i8*%M,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
%aa=bitcast i8*%Z to i32*
store i32 1342177304,i32*%aa,align 4
store i8*%Y,i8**%b,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,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@a3,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
%ak=call i8*@sml_alloc(i32 inreg 60)#0
%al=getelementptr inbounds i8,i8*%ak,i64 -4
%am=bitcast i8*%al to i32*
store i32 1342177336,i32*%am,align 4
%an=getelementptr inbounds i8,i8*%ak,i64 56
%ao=bitcast i8*%an to i32*
store i32 1,i32*%ao,align 4
%ap=load i8*,i8**%b,align 8
%aq=bitcast i8*%ak to i8**
store i8*%ap,i8**%aq,align 8
call void@sml_raise(i8*inreg%ak)#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,[5x i8*]}>,<{[4x i8],i32,[5x 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*@_SMLLLN5BinIO8StreamIO5inputE_240(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,[5x i8*]}>,<{[4x i8],i32,[5x 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*@_SMLLLN5BinIO8StreamIO8inputAllE_273(i8*inreg%k,i8*inreg%h)
ret i8*%l
}
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***bitcast(i8**getelementptr inbounds(<{[4x i8],i32,[5x i8*]}>,<{[4x i8],i32,[5x 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*@_SMLLLN5BinIO5inputE_420(i8*inreg%k,i8*inreg%h)
ret i8*%l
}
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***bitcast(i8**getelementptr inbounds(<{[4x i8],i32,[5x i8*]}>,<{[4x i8],i32,[5x 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*@_SMLLLN5BinIO8inputAllE_425(i8*inreg%k,i8*inreg%h)
ret i8*%l
}
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,[5x i8*]}>,<{[4x i8],i32,[5x i8*]}>*@_SML_gvar21c7617ebc9dc739_bin_io,i64 0,i32 2,i64 4)to i8***),align 8
%k=load i8*,i8**%j,align 8
%l=tail call fastcc i8*@_SMLLLN5BinIO6openInE_463(i8*inreg%k,i8*inreg%h)
ret i8*%l
}
define internal fastcc i8*@_SMLLL477(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*@_SMLLLN5BinIO8StreamIO6input1E_479(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*@_SMLLLN5BinIO8StreamIO6inputNE_481(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN5BinIO8StreamIO6inputNE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLL8bigChunk_482(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*@_SMLLL8bigChunk_261(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLL8bigChunk_483(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*@_SMLLL8bigChunk_266(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLL8bigChunk_484(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*@_SMLLL8bigChunk_267(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLLN5BinIO8StreamIO8canInputE_485(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*@_SMLLLN5BinIO8StreamIO7closeInE_486(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*@_SMLLLN5BinIO8StreamIO11endOfStreamE_487(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*@_SMLLL8readVec_G_488(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*@_SMLLL8readVec_G_299(i32 inreg%d)
unreachable
}
define internal fastcc i8*@_SMLLL10readVecNB_G_489(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*@_SMLLL10readVecNB_G_303(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLL6getPos_490(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
ret i8*null
}
define internal fastcc i8*@_SMLLL6getPos_491(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*@_SMLLL6getPos_306(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLLN5BinIO8StreamIO10mkInstreamE_492(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*@_SMLLLN5BinIO8StreamIO10mkInstreamE_494(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*@_SMLLLN5BinIO8StreamIO10mkInstreamE_495(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*@_SMLLLN5BinIO8StreamIO9getReaderE_497(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN5BinIO8StreamIO9getReaderE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN5BinIO8StreamIO9filePosInE_498(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*@_SMLLLN5BinIO8StreamIO6outputE_499(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*@_SMLLLN5BinIO8StreamIO7output1E_500(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*@_SMLLLN5BinIO8StreamIO8flushOutE_501(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*@_SMLLLN5BinIO8StreamIO8closeOutE_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*@_SMLLL2lp_503(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLLL2lp_359(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*@_SMLLL9writeArr_G_504(i8*inreg%a,i8*inreg%b)#5 gc"smlsharp"{
tail call fastcc void@_SMLLL9writeArr_G_361(i8*inreg%b)
unreachable
}
define internal fastcc i8*@_SMLLL2lp_505(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLLL2lp_363(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*@_SMLLL9writeVec_G_506(i8*inreg%a,i8*inreg%b)#5 gc"smlsharp"{
tail call fastcc void@_SMLLL9writeVec_G_365(i8*inreg%b)
unreachable
}
define internal fastcc i8*@_SMLLLN5BinIO8StreamIO11mkOutstreamE_507(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*@_SMLLLN5BinIO8StreamIO11mkOutstreamE_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@_SMLLLN5BinIO8StreamIO11mkOutstreamE_373(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*@_SMLLLN5BinIO8StreamIO11mkOutstreamE_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@_SMLLLN5BinIO8StreamIO11mkOutstreamE_376(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*@_SMLLLN5BinIO8StreamIO11mkOutstreamE_512(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@_SMLLLN5BinIO8StreamIO11mkOutstreamE_377(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*@_SMLLLN5BinIO8StreamIO11mkOutstreamE_513(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*@_SMLLLN5BinIO8StreamIO9getWriterE_514(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*@_SMLLLN5BinIO8StreamIO9getPosOutE_515(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*@_SMLLLN5BinIO8StreamIO10filePosOutE_516(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*@_SMLLLN5BinIO8StreamIO9setPosOutE_517(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*@_SMLLLN5BinIO8StreamIO13setBufferModeE_518(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*@_SMLLLN5BinIO8StreamIO13getBufferModeE_519(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*@_SMLLLN5BinIO6input1E_520(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*@_SMLLLN5BinIO6inputNE_521(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN5BinIO6inputNE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN5BinIO8canInputE_522(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*@_SMLLLN5BinIO9lookaheadE_523(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*@_SMLLLN5BinIO7closeInE_524(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*@_SMLLLN5BinIO11endOfStreamE_525(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*@_SMLLLN5BinIO6outputE_526(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*@_SMLLLN5BinIO7output1E_527(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*@_SMLLLN5BinIO8flushOutE_528(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*@_SMLLLN5BinIO8closeOutE_529(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*@_SMLLLN5BinIO9getPosOutE_530(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN5BinIO9getPosOutE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN5BinIO9setPosOutE_531(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*@_SMLLLN5BinIO10mkInstreamE_532(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*@_SMLLLN5BinIO11getInstreamE_533(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*@_SMLLLN5BinIO11setInstreamE_534(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*@_SMLLLN5BinIO11mkOutstreamE_535(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*@_SMLLLN5BinIO12getOutstreamE_536(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*@_SMLLLN5BinIO12setOutstreamE_537(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*@_SMLLLN5BinIO7openOutE_538(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*@_SMLLLN5BinIO10openAppendE_539(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN5BinIO10openAppendE(i8*inreg%b)
ret i8*%c
}
declare void@llvm.memset.p0i8.i32(i8*,i8,i32,i1)#0
attributes#0={nounwind}
attributes#1={noreturn}
attributes#2={uwtable}
attributes#3={noreturn nounwind}
attributes#4={nounwind uwtable}
attributes#5={noreturn uwtable}
