@sml_check_flag=external local_unnamed_addr global i32
@_SMLZN13SMLSharp__OSIO4Kind3ttyE=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*
@_SMLZ9Subscript=external unnamed_addr constant i8*
@_SMLZ4Size=external unnamed_addr constant i8*
@_SMLZ8Overflow=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)*@_SMLLL326 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLL701 to void(...)*),i32 -2147483647}>,align 8
@_SMLDL328=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,[27x i8]}><{[4x i8]zeroinitializer,i32 -2147483621,[27x i8]c"TextIO.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,[27x i8]}>,<{[4x i8],i32,[27x i8]}>*@b,i32 0,i32 0,i32 0),i32 8),i32 0,[4x i8]zeroinitializer,i32 1}>,align 8
@_SMLDL331=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,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/smlnj/Basis/IO/text-io.sml:187.20(5629)\00"}>,align 8
@e=private unnamed_addr constant<{[4x i8],i32,[13x i8]}><{[4x i8]zeroinitializer,i32 -2147483635,[13x i8]c"bogus getBuf\00"}>,align 8
@f=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN6TextIO8StreamIO5inputE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO8StreamIO5inputE_704 to void(...)*),i32 -2147483647}>,align 8
@g=private unnamed_addr constant<{[4x i8],i32,[7x i8]}><{[4x i8]zeroinitializer,i32 -2147483641,[7x i8]c"input1\00"}>,align 8
@h=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/smlnj/Basis/IO/text-io.sml:211.10(6274)\00"}>,align 8
@i=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/smlnj/Basis/IO/text-io.sml:210.14(6226)\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*(i8*)*@_SMLFN6TextIO8StreamIO6input1E to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO8StreamIO6input1E_705 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/text-io.sml:226.22(6789)\00"}>,align 8
@l=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/smlnj/Basis/IO/text-io.sml:232.17(6950)\00"}>,align 8
@m=private unnamed_addr constant<{[4x i8],i32,[7x i8]}><{[4x i8]zeroinitializer,i32 -2147483641,[7x i8]c"inputN\00"}>,align 8
@n=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/smlnj/Basis/IO/text-io.sml:234.56(7026)\00"}>,align 8
@o=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/smlnj/Basis/IO/text-io.sml:229.52(6878)\00"}>,align 8
@p=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN6TextIO8StreamIO6inputNE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO8StreamIO6inputNE_707 to void(...)*),i32 -2147483647}>,align 8
@q=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/smlnj/Basis/IO/text-io.sml:171.18(5095)\00"}>,align 8
@r=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/smlnj/Basis/IO/text-io.sml:174.36(5223)\00"}>,align 8
@s=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/smlnj/Basis/IO/text-io.sml:174.52(5239)\00"}>,align 8
@t=private unnamed_addr constant<{[4x i8],i32,[9x i8]}><{[4x i8]zeroinitializer,i32 -2147483639,[9x i8]c"inputAll\00"}>,align 8
@u=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN6TextIO8StreamIO8inputAllE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO8StreamIO8inputAllE_711 to void(...)*),i32 -2147483647}>,align 8
@v=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/smlnj/Basis/IO/text-io.sml:278.30(8568)\00"}>,align 8
@w=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/smlnj/Basis/IO/text-io.sml:283.23(8785)\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/text-io.sml:287.24(8862)\00"}>,align 8
@y=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/smlnj/Basis/IO/text-io.sml:291.33(9014)\00"}>,align 8
@z=private unnamed_addr constant<{[4x i8],i32,[9x i8]}><{[4x i8]zeroinitializer,i32 -2147483639,[9x i8]c"canInput\00"}>,align 8
@A=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/smlnj/Basis/IO/text-io.sml:296.26(9201)\00"}>,align 8
@B=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/smlnj/Basis/IO/text-io.sml:298.58(9285)\00"}>,align 8
@C=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/smlnj/Basis/IO/text-io.sml:292.36(9055)\00"}>,align 8
@D=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/smlnj/Basis/IO/text-io.sml:289.43(8925)\00"}>,align 8
@E=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/smlnj/Basis/IO/text-io.sml:302.15(9356)\00"}>,align 8
@F=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN6TextIO8StreamIO8canInputE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO8StreamIO8canInputE_712 to void(...)*),i32 -2147483647}>,align 8
@G=private unnamed_addr constant<{[4x i8],i32,[8x i8]}><{[4x i8]zeroinitializer,i32 -2147483640,[8x i8]c"closeIn\00"}>,align 8
@H=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLFN6TextIO8StreamIO7closeInE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO8StreamIO7closeInE_713 to void(...)*),i32 -2147483647}>,align 8
@I=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i8*)*@_SMLFN6TextIO8StreamIO11endOfStreamE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO8StreamIO11endOfStreamE_714 to void(...)*),i32 -2147483647}>,align 8
@J=private unnamed_addr constant<{[4x i8],i32,[45x i8]}><{[4x i8]zeroinitializer,i32 -2147483603,[45x i8]c"src/smlnj/Basis/IO/text-io.sml:329.33(10325)\00"}>,align 8
@K=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32)*@_SMLLL8readVec_G_402 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLL8readVec_G_715 to void(...)*),i32 -2147483647}>,align 8
@L=private unnamed_addr constant<{[4x i8],i32,[45x i8]}><{[4x i8]zeroinitializer,i32 -2147483603,[45x i8]c"src/smlnj/Basis/IO/text-io.sml:336.23(10555)\00"}>,align 8
@M=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*}>*@_SMLDL331,i32 0,i32 0,i32 0),i32 8),i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@L,i32 0,i32 0,i32 0),i32 8),i32 3}>,align 8
@N=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32)*@_SMLLL6getPos_407 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLL6getPos_717 to void(...)*),i32 -2147483647}>,align 8
@O=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
@P=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN6TextIO8StreamIO10mkInstreamE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO8StreamIO10mkInstreamE_722 to void(...)*),i32 -2147483647}>,align 8
@Q=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
@R=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/smlnj/Basis/IO/text-io.sml:201.15(5946)\00"}>,align 8
@S=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN6TextIO8StreamIO9getReaderE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO8StreamIO9getReaderE_724 to void(...)*),i32 -2147483647}>,align 8
@T=private unnamed_addr constant<{[4x i8],i32,[45x i8]}><{[4x i8]zeroinitializer,i32 -2147483603,[45x i8]c"src/smlnj/Basis/IO/text-io.sml:404.16(12767)\00"}>,align 8
@U=private unnamed_addr constant<{[4x i8],i32,[22x i8]}><{[4x i8]zeroinitializer,i32 -2147483626,[22x i8]c"filePosIn: impossible\00"}>,align 8
@V=private unnamed_addr constant<{[4x i8],i32,[45x i8]}><{[4x i8]zeroinitializer,i32 -2147483603,[45x i8]c"src/smlnj/Basis/IO/text-io.sml:396.26(12577)\00"}>,align 8
@W=private unnamed_addr constant<{[4x i8],i32,[15x i8]}><{[4x i8]zeroinitializer,i32 -2147483633,[15x i8]c"bogus position\00"}>,align 8
@X=private unnamed_addr constant<{[4x i8],i32,[45x i8]}><{[4x i8]zeroinitializer,i32 -2147483603,[45x i8]c"src/smlnj/Basis/IO/text-io.sml:397.22(12622)\00"}>,align 8
@Y=private unnamed_addr constant<{[4x i8],i32,[45x i8]}><{[4x i8]zeroinitializer,i32 -2147483603,[45x i8]c"src/smlnj/Basis/IO/text-io.sml:386.35(12203)\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/text-io.sml:137.13(4040)\00"}>,align 8
@aa=private unnamed_addr constant<{[4x i8],i32,[10x i8]}><{[4x i8]zeroinitializer,i32 -2147483638,[10x i8]c"filePosIn\00"}>,align 8
@ab=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i8*)*@_SMLFN6TextIO8StreamIO9filePosInE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO8StreamIO9filePosInE_725 to void(...)*),i32 -2147483647}>,align 8
@ac=private unnamed_addr constant<{[4x i8],i32,[2x i8]}><{[4x i8]zeroinitializer,i32 -2147483646,[2x i8]c"\0A\00"}>,align 8
@ad=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,[2x i8]}>,<{[4x i8],i32,[2x i8]}>*@ac,i32 0,i32 0,i32 0),i32 8),i8*null,i32 3}>,align 8
@ae=private unnamed_addr constant<{[4x i8],i32,[45x i8]}><{[4x i8]zeroinitializer,i32 -2147483603,[45x i8]c"src/smlnj/Basis/IO/text-io.sml:422.22(13402)\00"}>,align 8
@af=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/smlnj/Basis/IO/text-io.sml:415.8(13150)\00"}>,align 8
@ag=private unnamed_addr constant<{[4x i8],i32,[45x i8]}><{[4x i8]zeroinitializer,i32 -2147483603,[45x i8]c"src/smlnj/Basis/IO/text-io.sml:431.14(13707)\00"}>,align 8
@ah=private unnamed_addr constant<{[4x i8],i32,[45x i8]}><{[4x i8]zeroinitializer,i32 -2147483603,[45x i8]c"src/smlnj/Basis/IO/text-io.sml:432.42(13774)\00"}>,align 8
@ai=private unnamed_addr constant<{[4x i8],i32,[10x i8]}><{[4x i8]zeroinitializer,i32 -2147483638,[10x i8]c"inputLine\00"}>,align 8
@aj=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,[1x i8]}>,<{[4x i8],i32,[1x i8]}>*@bK,i32 0,i32 0,i32 0),i32 8),i8*null,i32 3}>,align 8
@ak=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN6TextIO8StreamIO9inputLineE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO8StreamIO9inputLineE_728 to void(...)*),i32 -2147483647}>,align 8
@al=private unnamed_addr constant<{[4x i8],i32,[45x i8]}><{[4x i8]zeroinitializer,i32 -2147483603,[45x i8]c"src/smlnj/Basis/IO/text-io.sml:481.22(15268)\00"}>,align 8
@am=private unnamed_addr constant<{[4x i8],i32,[45x i8]}><{[4x i8]zeroinitializer,i32 -2147483603,[45x i8]c"src/smlnj/Basis/IO/text-io.sml:484.25(15358)\00"}>,align 8
@an=private unnamed_addr constant<{[4x i8],i32,[45x i8]}><{[4x i8]zeroinitializer,i32 -2147483603,[45x i8]c"src/smlnj/Basis/IO/text-io.sml:487.22(15435)\00"}>,align 8
@ao=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i8*)*@_SMLLLN6TextIO8StreamIO14lineBufCopyVecE_468 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO8StreamIO14lineBufCopyVecE_729 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(i32(i8*)*@_SMLLLN6TextIO8StreamIO15blockBufCopyVecE_470 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO8StreamIO15blockBufCopyVecE_730 to void(...)*),i32 -2147483647}>,align 8
@aq=private unnamed_addr constant<{[4x i8],i32,[45x i8]}><{[4x i8]zeroinitializer,i32 -2147483603,[45x i8]c"src/smlnj/Basis/IO/text-io.sml:520.24(16403)\00"}>,align 8
@ar=private unnamed_addr constant<{[4x i8],i32,[45x i8]}><{[4x i8]zeroinitializer,i32 -2147483603,[45x i8]c"src/smlnj/Basis/IO/text-io.sml:539.15(16907)\00"}>,align 8
@as=private unnamed_addr constant<{[4x i8],i32,[7x i8]}><{[4x i8]zeroinitializer,i32 -2147483641,[7x i8]c"output\00"}>,align 8
@at=private unnamed_addr constant<{[4x i8],i32,[45x i8]}><{[4x i8]zeroinitializer,i32 -2147483603,[45x i8]c"src/smlnj/Basis/IO/text-io.sml:531.46(16714)\00"}>,align 8
@au=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/smlnj/Basis/IO/text-io.sml:547.2(17041)\00"}>,align 8
@av=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLFN6TextIO8StreamIO6outputE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO8StreamIO6outputE_731 to void(...)*),i32 -2147483647}>,align 8
@aw=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
@ax=private unnamed_addr constant<{[4x i8],i32,[45x i8]}><{[4x i8]zeroinitializer,i32 -2147483603,[45x i8]c"src/smlnj/Basis/IO/text-io.sml:561.46(17548)\00"}>,align 8
@ay=private unnamed_addr constant<{[4x i8],i32,[45x i8]}><{[4x i8]zeroinitializer,i32 -2147483603,[45x i8]c"src/smlnj/Basis/IO/text-io.sml:568.47(17763)\00"}>,align 8
@az=private unnamed_addr constant<{[4x i8],i32,[8x i8]}><{[4x i8]zeroinitializer,i32 -2147483640,[8x i8]c"output1\00"}>,align 8
@aA=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/smlnj/Basis/IO/text-io.sml:556.7(17330)\00"}>,align 8
@aB=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLFN6TextIO8StreamIO7output1E to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO8StreamIO7output1E_732 to void(...)*),i32 -2147483647}>,align 8
@aC=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLFN6TextIO8StreamIO8flushOutE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO8StreamIO8flushOutE_733 to void(...)*),i32 -2147483647}>,align 8
@aD=private unnamed_addr constant<{[4x i8],i32,[9x i8]}><{[4x i8]zeroinitializer,i32 -2147483639,[9x i8]c"closeOut\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*)*@_SMLFN6TextIO8StreamIO8closeOutE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO8StreamIO8closeOutE_734 to void(...)*),i32 -2147483647}>,align 8
@aF=private unnamed_addr constant<{[4x i8],i32,[45x i8]}><{[4x i8]zeroinitializer,i32 -2147483603,[45x i8]c"src/smlnj/Basis/IO/text-io.sml:602.33(18591)\00"}>,align 8
@aG=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLLL9writeArr_G_513 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLL9writeArr_G_736 to void(...)*),i32 -2147483647}>,align 8
@aH=private unnamed_addr constant<{[4x i8],i32,[45x i8]}><{[4x i8]zeroinitializer,i32 -2147483603,[45x i8]c"src/smlnj/Basis/IO/text-io.sml:606.33(18767)\00"}>,align 8
@aI=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLLL9writeVec_G_517 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLL9writeVec_G_738 to void(...)*),i32 -2147483647}>,align 8
@aJ=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i32)*@_SMLLLN6TextIO8StreamIO11mkOutstreamE_519 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO8StreamIO11mkOutstreamE_739 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(i8*(i8*)*@_SMLFN6TextIO8StreamIO11mkOutstreamE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO8StreamIO11mkOutstreamE_745 to void(...)*),i32 -2147483647}>,align 8
@aL=private unnamed_addr constant<{[4x i8],i32,[10x i8]}><{[4x i8]zeroinitializer,i32 -2147483638,[10x i8]c"getWriter\00"}>,align 8
@aM=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN6TextIO8StreamIO9getWriterE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO8StreamIO9getWriterE_746 to void(...)*),i32 -2147483647}>,align 8
@aN=private unnamed_addr constant<{[4x i8],i32,[45x i8]}><{[4x i8]zeroinitializer,i32 -2147483603,[45x i8]c"src/smlnj/Basis/IO/text-io.sml:650.38(20015)\00"}>,align 8
@aO=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN6TextIO8StreamIO9getPosOutE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO8StreamIO9getPosOutE_747 to void(...)*),i32 -2147483647}>,align 8
@aP=private unnamed_addr constant<{[4x i8],i32,[11x i8]}><{[4x i8]zeroinitializer,i32 -2147483637,[11x i8]c"filePosOut\00"}>,align 8
@aQ=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i8*)*@_SMLFN6TextIO8StreamIO10filePosOutE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO8StreamIO10filePosOutE_748 to void(...)*),i32 -2147483647}>,align 8
@aR=private unnamed_addr constant<{[4x i8],i32,[10x i8]}><{[4x i8]zeroinitializer,i32 -2147483638,[10x i8]c"setPosOut\00"}>,align 8
@aS=private unnamed_addr constant<{[4x i8],i32,[45x i8]}><{[4x i8]zeroinitializer,i32 -2147483603,[45x i8]c"src/smlnj/Basis/IO/text-io.sml:663.38(20445)\00"}>,align 8
@aT=private unnamed_addr constant<{[4x i8],i32,[10x i8]}><{[4x i8]zeroinitializer,i32 -2147483638,[10x i8]c"getPosOut\00"}>,align 8
@aU=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN6TextIO8StreamIO9setPosOutE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO8StreamIO9setPosOutE_749 to void(...)*),i32 -2147483647}>,align 8
@aV=private unnamed_addr constant<{[4x i8],i32,[45x i8]}><{[4x i8]zeroinitializer,i32 -2147483603,[45x i8]c"src/smlnj/Basis/IO/text-io.sml:688.24(21286)\00"}>,align 8
@aW=private unnamed_addr constant<{[4x i8],i32,[45x i8]}><{[4x i8]zeroinitializer,i32 -2147483603,[45x i8]c"src/smlnj/Basis/IO/text-io.sml:709.13(21851)\00"}>,align 8
@aX=private unnamed_addr constant<{[4x i8],i32,[13x i8]}><{[4x i8]zeroinitializer,i32 -2147483635,[13x i8]c"outputSubstr\00"}>,align 8
@aY=private unnamed_addr constant<{[4x i8],i32,[45x i8]}><{[4x i8]zeroinitializer,i32 -2147483603,[45x i8]c"src/smlnj/Basis/IO/text-io.sml:701.28(21630)\00"}>,align 8
@aZ=private unnamed_addr constant<{[4x i8],i32,[45x i8]}><{[4x i8]zeroinitializer,i32 -2147483603,[45x i8]c"src/smlnj/Basis/IO/text-io.sml:701.43(21645)\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/text-io.sml:717.2(21984)\00"}>,align 8
@a1=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLFN6TextIO8StreamIO12outputSubstrE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO8StreamIO12outputSubstrE_750 to void(...)*),i32 -2147483647}>,align 8
@a2=private unnamed_addr constant<{[4x i8],i32,[14x i8]}><{[4x i8]zeroinitializer,i32 -2147483634,[14x i8]c"setBufferMode\00"}>,align 8
@a3=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLFN6TextIO8StreamIO13setBufferModeE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO8StreamIO13setBufferModeE_751 to void(...)*),i32 -2147483647}>,align 8
@a4=private unnamed_addr constant<{[4x i8],i32,[45x i8]}><{[4x i8]zeroinitializer,i32 -2147483603,[45x i8]c"src/smlnj/Basis/IO/text-io.sml:467.30(14760)\00"}>,align 8
@a5=private unnamed_addr constant<{[4x i8],i32,[14x i8]}><{[4x i8]zeroinitializer,i32 -2147483634,[14x i8]c"getBufferMode\00"}>,align 8
@a6=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i8*)*@_SMLFN6TextIO8StreamIO13getBufferModeE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO8StreamIO13getBufferModeE_752 to void(...)*),i32 -2147483647}>,align 8
@a7=private unnamed_addr constant<{[4x i8],i32,[6x i8]}><{[4x i8]zeroinitializer,i32 -2147483642,[6x i8]c"input\00"}>,align 8
@a8=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN6TextIO5inputE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO5inputE_753 to void(...)*),i32 -2147483647}>,align 8
@a9=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN6TextIO6input1E to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO6input1E_754 to void(...)*),i32 -2147483647}>,align 8
@ba=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN6TextIO6inputNE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO6inputNE_755 to void(...)*),i32 -2147483647}>,align 8
@bb=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN6TextIO8inputAllE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO8inputAllE_756 to void(...)*),i32 -2147483647}>,align 8
@bc=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN6TextIO8canInputE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO8canInputE_757 to void(...)*),i32 -2147483647}>,align 8
@bd=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN6TextIO9lookaheadE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO9lookaheadE_758 to void(...)*),i32 -2147483647}>,align 8
@be=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLFN6TextIO7closeInE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO7closeInE_759 to void(...)*),i32 -2147483647}>,align 8
@bf=private unnamed_addr constant<{[4x i8],i32,[12x i8]}><{[4x i8]zeroinitializer,i32 -2147483636,[12x i8]c"endOfStream\00"}>,align 8
@bg=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i8*)*@_SMLFN6TextIO11endOfStreamE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO11endOfStreamE_760 to void(...)*),i32 -2147483647}>,align 8
@bh=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLFN6TextIO6outputE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO6outputE_761 to void(...)*),i32 -2147483647}>,align 8
@bi=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLFN6TextIO7output1E to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO7output1E_762 to void(...)*),i32 -2147483647}>,align 8
@bj=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLFN6TextIO8flushOutE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO8flushOutE_763 to void(...)*),i32 -2147483647}>,align 8
@bk=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLFN6TextIO8closeOutE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO8closeOutE_764 to void(...)*),i32 -2147483647}>,align 8
@bl=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN6TextIO9getPosOutE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO9getPosOutE_765 to void(...)*),i32 -2147483647}>,align 8
@bm=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLFN6TextIO9setPosOutE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO9setPosOutE_766 to void(...)*),i32 -2147483647}>,align 8
@bn=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN6TextIO10mkInstreamE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO10mkInstreamE_767 to void(...)*),i32 -2147483647}>,align 8
@bo=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN6TextIO11getInstreamE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO11getInstreamE_768 to void(...)*),i32 -2147483647}>,align 8
@bp=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLFN6TextIO11setInstreamE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO11setInstreamE_769 to void(...)*),i32 -2147483647}>,align 8
@bq=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN6TextIO11mkOutstreamE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO11mkOutstreamE_770 to void(...)*),i32 -2147483647}>,align 8
@br=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN6TextIO12getOutstreamE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO12getOutstreamE_771 to void(...)*),i32 -2147483647}>,align 8
@bs=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLFN6TextIO12setOutstreamE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO12setOutstreamE_772 to void(...)*),i32 -2147483647}>,align 8
@bt=private unnamed_addr constant<{[4x i8],i32,[45x i8]}><{[4x i8]zeroinitializer,i32 -2147483603,[45x i8]c"src/smlnj/Basis/IO/text-io.sml:807.24(25074)\00"}>,align 8
@bu=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN6TextIO6openInE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO6openInE_773 to void(...)*),i32 -2147483647}>,align 8
@bv=private unnamed_addr constant<{[4x i8],i32,[45x i8]}><{[4x i8]zeroinitializer,i32 -2147483603,[45x i8]c"src/smlnj/Basis/IO/text-io.sml:813.24(25280)\00"}>,align 8
@bw=private unnamed_addr constant<{[4x i8],i32,[8x i8]}><{[4x i8]zeroinitializer,i32 -2147483640,[8x i8]c"openOut\00"}>,align 8
@bx=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN6TextIO7openOutE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO7openOutE_774 to void(...)*),i32 -2147483647}>,align 8
@by=private unnamed_addr constant<{[4x i8],i32,[45x i8]}><{[4x i8]zeroinitializer,i32 -2147483603,[45x i8]c"src/smlnj/Basis/IO/text-io.sml:816.24(25451)\00"}>,align 8
@bz=private unnamed_addr constant<{[4x i8],i32,[11x i8]}><{[4x i8]zeroinitializer,i32 -2147483637,[11x i8]c"openAppend\00"}>,align 8
@bA=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN6TextIO10openAppendE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO10openAppendE_775 to void(...)*),i32 -2147483647}>,align 8
@bB=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN6TextIO9inputLineE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO9inputLineE_776 to void(...)*),i32 -2147483647}>,align 8
@bC=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLFN6TextIO12outputSubstrE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO12outputSubstrE_777 to void(...)*),i32 -2147483647}>,align 8
@bD=private unnamed_addr constant<{[4x i8],i32,[45x i8]}><{[4x i8]zeroinitializer,i32 -2147483603,[45x i8]c"src/smlnj/Basis/IO/text-io.sml:824.24(25824)\00"}>,align 8
@bE=private unnamed_addr constant<{[4x i8],i32,[7x i8]}><{[4x i8]zeroinitializer,i32 -2147483641,[7x i8]c"openIn\00"}>,align 8
@bF=private unnamed_addr constant<{[4x i8],i32,[9x i8]}><{[4x i8]zeroinitializer,i32 -2147483639,[9x i8]c"<string>\00"}>,align 8
@bG=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN6TextIO10openStringE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO10openStringE_778 to void(...)*),i32 -2147483647}>,align 8
@bH=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i32)*@_SMLLLN6TextIO8mkStdOutE_664 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO8mkStdOutE_781 to void(...)*),i32 -2147483647}>,align 8
@bI=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i32)*@_SMLLLN6TextIO8mkStdErrE_674 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO8mkStdErrE_785 to void(...)*),i32 -2147483647}>,align 8
@bJ=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i32)*@_SMLLL679 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLL787 to void(...)*),i32 -2147483647}>,align 8
@bK=private unnamed_addr constant<{[4x i8],i32,[1x i8]}><{[4x i8]zeroinitializer,i32 -2147483647,[1x i8]zeroinitializer}>,align 8
@bL=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i32)*@_SMLLL686 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLL790 to void(...)*),i32 -2147483647}>,align 8
@bM=private unnamed_addr constant<{[4x i8],i32,[45x i8]}><{[4x i8]zeroinitializer,i32 -2147483603,[45x i8]c"src/smlnj/Basis/IO/text-io.sml:461.13(14579)\00"}>,align 8
@bN=private unnamed_addr constant<{[4x i8],i32,[9x i8]}><{[4x i8]zeroinitializer,i32 -2147483639,[9x i8]c"flushOut\00"}>,align 8
@bO=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32,i32)*@_SMLFN6TextIO10scanStreamE to void(...)*),void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLLN6TextIO10scanStreamE_795 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN6TextIO8StreamIO5inputE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@f,i64 0,i32 2)to i8*)
@_SMLZN6TextIO8StreamIO6input1E=local_unnamed_addr constant i8*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*)
@_SMLZN6TextIO8StreamIO6inputNE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@p,i64 0,i32 2)to i8*)
@_SMLZN6TextIO8StreamIO8inputAllE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@u,i64 0,i32 2)to i8*)
@_SMLZN6TextIO8StreamIO8canInputE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@F,i64 0,i32 2)to i8*)
@_SMLZN6TextIO8StreamIO7closeInE=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*)
@_SMLZN6TextIO8StreamIO11endOfStreamE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@I,i64 0,i32 2)to i8*)
@_SMLZN6TextIO8StreamIO6outputE=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*)
@_SMLZN6TextIO8StreamIO7output1E=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@aB,i64 0,i32 2)to i8*)
@_SMLZN6TextIO8StreamIO8flushOutE=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*)
@_SMLZN6TextIO8StreamIO8closeOutE=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*)
@_SMLZN6TextIO8StreamIO10mkInstreamE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@P,i64 0,i32 2)to i8*)
@_SMLZN6TextIO8StreamIO9getReaderE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@S,i64 0,i32 2)to i8*)
@_SMLZN6TextIO8StreamIO9filePosInE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@ab,i64 0,i32 2)to i8*)
@_SMLZN6TextIO8StreamIO13setBufferModeE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@a3,i64 0,i32 2)to i8*)
@_SMLZN6TextIO8StreamIO13getBufferModeE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@a6,i64 0,i32 2)to i8*)
@_SMLZN6TextIO8StreamIO11mkOutstreamE=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*)
@_SMLZN6TextIO8StreamIO9getWriterE=local_unnamed_addr constant i8*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*)
@_SMLZN6TextIO8StreamIO9getPosOutE=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*)
@_SMLZN6TextIO8StreamIO9setPosOutE=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*)
@_SMLZN6TextIO8StreamIO10filePosOutE=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*)
@_SMLZN6TextIO8StreamIO9inputLineE=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*)
@_SMLZN6TextIO8StreamIO12outputSubstrE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@a1,i64 0,i32 2)to i8*)
@_SMLZN6TextIO5inputE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@a8,i64 0,i32 2)to i8*)
@_SMLZN6TextIO6input1E=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@a9,i64 0,i32 2)to i8*)
@_SMLZN6TextIO6inputNE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@ba,i64 0,i32 2)to i8*)
@_SMLZN6TextIO8inputAllE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@bb,i64 0,i32 2)to i8*)
@_SMLZN6TextIO8canInputE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@bc,i64 0,i32 2)to i8*)
@_SMLZN6TextIO9lookaheadE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@bd,i64 0,i32 2)to i8*)
@_SMLZN6TextIO7closeInE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@be,i64 0,i32 2)to i8*)
@_SMLZN6TextIO11endOfStreamE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@bg,i64 0,i32 2)to i8*)
@_SMLZN6TextIO6outputE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@bh,i64 0,i32 2)to i8*)
@_SMLZN6TextIO7output1E=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@bi,i64 0,i32 2)to i8*)
@_SMLZN6TextIO8flushOutE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@bj,i64 0,i32 2)to i8*)
@_SMLZN6TextIO8closeOutE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@bk,i64 0,i32 2)to i8*)
@_SMLZN6TextIO10mkInstreamE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@bn,i64 0,i32 2)to i8*)
@_SMLZN6TextIO11getInstreamE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@bo,i64 0,i32 2)to i8*)
@_SMLZN6TextIO11setInstreamE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@bp,i64 0,i32 2)to i8*)
@_SMLZN6TextIO11mkOutstreamE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@bq,i64 0,i32 2)to i8*)
@_SMLZN6TextIO12getOutstreamE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@br,i64 0,i32 2)to i8*)
@_SMLZN6TextIO12setOutstreamE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@bs,i64 0,i32 2)to i8*)
@_SMLZN6TextIO9getPosOutE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@bl,i64 0,i32 2)to i8*)
@_SMLZN6TextIO9setPosOutE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@bm,i64 0,i32 2)to i8*)
@_SMLZN6TextIO9inputLineE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@bB,i64 0,i32 2)to i8*)
@_SMLZN6TextIO12outputSubstrE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@bC,i64 0,i32 2)to i8*)
@_SMLZN6TextIO6openInE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@bu,i64 0,i32 2)to i8*)
@_SMLZN6TextIO7openOutE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@bx,i64 0,i32 2)to i8*)
@_SMLZN6TextIO10openAppendE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@bA,i64 0,i32 2)to i8*)
@_SMLZN6TextIO10openStringE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@bG,i64 0,i32 2)to i8*)
@_SMLZN6TextIO10scanStreamE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@bO,i64 0,i32 2)to i8*)
@_SML_gvar3446b7b079949ccf_text_io=private global<{[4x i8],i32,[4x i8*]}><{[4x i8]zeroinitializer,i32 -1342177248,[4x i8*]zeroinitializer}>,align 8
@bP=private unnamed_addr global[3x i64][i64 2,i64 sub(i64 ptrtoint(i8**getelementptr inbounds(<{[4x i8],i32,[4x i8*]}>,<{[4x i8],i32,[4x i8*]}>*@_SML_gvar3446b7b079949ccf_text_io,i32 0,i32 2,i32 0)to i64),i64 ptrtoint([3x i64]*@bP to i64)),i64 sub(i64 ptrtoint(i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,i8*}>,<{[4x i8],i32,i8*}>*@_SMLDL328,i32 0,i32 0,i32 0),i32 8)to i64),i64 ptrtoint([3x i64]*@bP to i64))]
@_SML_ftab3446b7b079949ccf_text_io=external global i8
@bQ=private unnamed_addr global i8 0
@_SMLZN6TextIO5stdInE=alias i8*,getelementptr inbounds(<{[4x i8],i32,[4x i8*]}>,<{[4x i8],i32,[4x i8*]}>*@_SML_gvar3446b7b079949ccf_text_io,i32 0,i32 2,i32 0)
@_SMLZN6TextIO6stdOutE=alias i8*,getelementptr inbounds(<{[4x i8],i32,[4x i8*]}>,<{[4x i8],i32,[4x i8*]}>*@_SML_gvar3446b7b079949ccf_text_io,i32 0,i32 2,i32 1)
@_SMLZN6TextIO6stdErrE=alias i8*,getelementptr inbounds(<{[4x i8],i32,[4x i8*]}>,<{[4x i8],i32,[4x i8*]}>*@_SML_gvar3446b7b079949ccf_text_io,i32 0,i32 2,i32 2)
@_SMLZN6TextIO5printE=alias i8*,getelementptr inbounds(<{[4x i8],i32,[4x i8*]}>,<{[4x i8],i32,[4x i8*]}>*@_SML_gvar3446b7b079949ccf_text_io,i32 0,i32 2,i32 3)
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*@_SMLFN10CharVector6concatE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i32@_SMLFN13SMLSharp__OSIO4kindE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN14CharArraySlice4fullE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN14CharArraySlice5sliceE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i32@_SMLFN14CharArraySlice6lengthE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare void@_SMLFN14CharArraySlice7copyVecE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN14CharArraySlice8subsliceE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN15CharVectorSlice4fullE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN15CharVectorSlice5sliceE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i32@_SMLFN15CharVectorSlice6lengthE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN15CharVectorSlice6vectorE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN15CharVectorSlice8subsliceE(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*@_SMLFN30SMLSharp__SMLNJ__PosixTextPrimIO5stdInE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN30SMLSharp__SMLNJ__PosixTextPrimIO6openRdE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN30SMLSharp__SMLNJ__PosixTextPrimIO6openWrE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN30SMLSharp__SMLNJ__PosixTextPrimIO6stdErrE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN30SMLSharp__SMLNJ__PosixTextPrimIO6stdOutE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN30SMLSharp__SMLNJ__PosixTextPrimIO7openAppE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN30SMLSharp__SMLNJ__PosixTextPrimIO9strReaderE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN6Option3mapE(i32 inreg,i32 inreg,i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN9CharArray5arrayE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i32@_SMLFN9CharArray6lengthE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare void@_SMLFN9CharArray6updateE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN9Substring4baseE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main83aaee9bdacb8a0e_CharArray()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_mainadbb5309e852b68c_CharVector()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main84d772f4dc36a05f_CharVectorSlice()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main4beb4c3c7634547e_CharArraySlice()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_mainfe9066b69eea2866_IO()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main741b333153f7e9d0_SMLSharp_OSIO()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main19a59bcdb325454c_SMLSharp_OSProcess()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main145db56e6796da5b_Substring()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main3a60343781315c1e_Option()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main1f45da1ded1f3d8a_posix_text_prim_io()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_load83aaee9bdacb8a0e_CharArray(i8*)local_unnamed_addr
declare void@_SML_loadadbb5309e852b68c_CharVector(i8*)local_unnamed_addr
declare void@_SML_load84d772f4dc36a05f_CharVectorSlice(i8*)local_unnamed_addr
declare void@_SML_load4beb4c3c7634547e_CharArraySlice(i8*)local_unnamed_addr
declare void@_SML_loadfe9066b69eea2866_IO(i8*)local_unnamed_addr
declare void@_SML_load741b333153f7e9d0_SMLSharp_OSIO(i8*)local_unnamed_addr
declare void@_SML_load19a59bcdb325454c_SMLSharp_OSProcess(i8*)local_unnamed_addr
declare void@_SML_load145db56e6796da5b_Substring(i8*)local_unnamed_addr
declare void@_SML_load3a60343781315c1e_Option(i8*)local_unnamed_addr
declare void@_SML_load1f45da1ded1f3d8a_posix_text_prim_io(i8*)local_unnamed_addr
define private void@_SML_tabb3446b7b079949ccf_text_io()#3{
unreachable
}
define void@_SML_load3446b7b079949ccf_text_io(i8*%a)local_unnamed_addr#0{
%b=load i8,i8*@bQ,align 1
%c=icmp eq i8%b,0
br i1%c,label%e,label%d
d:
ret void
e:
store i8 1,i8*@bQ,align 1
tail call void@_SML_load83aaee9bdacb8a0e_CharArray(i8*%a)#0
tail call void@_SML_loadadbb5309e852b68c_CharVector(i8*%a)#0
tail call void@_SML_load84d772f4dc36a05f_CharVectorSlice(i8*%a)#0
tail call void@_SML_load4beb4c3c7634547e_CharArraySlice(i8*%a)#0
tail call void@_SML_loadfe9066b69eea2866_IO(i8*%a)#0
tail call void@_SML_load741b333153f7e9d0_SMLSharp_OSIO(i8*%a)#0
tail call void@_SML_load19a59bcdb325454c_SMLSharp_OSProcess(i8*%a)#0
tail call void@_SML_load145db56e6796da5b_Substring(i8*%a)#0
tail call void@_SML_load3a60343781315c1e_Option(i8*%a)#0
tail call void@_SML_load1f45da1ded1f3d8a_posix_text_prim_io(i8*%a)#0
tail call void@sml_gcroot(i8*%a,void()*@_SML_tabb3446b7b079949ccf_text_io,i8*@_SML_ftab3446b7b079949ccf_text_io,i8*bitcast([3x i64]*@bP to i8*))#0
ret void
}
define void@_SML_main3446b7b079949ccf_text_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=load i8,i8*@bQ,align 1
%g=and i8%f,2
%h=icmp eq i8%g,0
br i1%h,label%j,label%i
i:
ret void
j:
store i8 3,i8*@bQ,align 1
tail call void@_SML_main83aaee9bdacb8a0e_CharArray()#2
tail call void@_SML_mainadbb5309e852b68c_CharVector()#2
tail call void@_SML_main84d772f4dc36a05f_CharVectorSlice()#2
tail call void@_SML_main4beb4c3c7634547e_CharArraySlice()#2
tail call void@_SML_mainfe9066b69eea2866_IO()#2
tail call void@_SML_main741b333153f7e9d0_SMLSharp_OSIO()#2
tail call void@_SML_main19a59bcdb325454c_SMLSharp_OSProcess()#2
tail call void@_SML_main145db56e6796da5b_Substring()#2
tail call void@_SML_main3a60343781315c1e_Option()#2
tail call void@_SML_main1f45da1ded1f3d8a_posix_text_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
%k=bitcast[3x i8*]*%a to i8*
call void@sml_start(i8*inreg%k)#0
%l=load atomic i32,i32*@sml_check_flag unordered,align 4
%m=icmp eq i32%l,0
br i1%m,label%o,label%n
n:
invoke void@sml_check(i32 inreg%l)
to label%o unwind label%a7
o:
%p=invoke fastcc i8*@_SMLFN30SMLSharp__SMLNJ__PosixTextPrimIO5stdInE(i32 inreg 0)
to label%q unwind label%a7
q:
store i8*%p,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
%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,[1x i8]}>,<{[4x i8],i32,[1x i8]}>*@bK,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
%A=invoke fastcc i8*@_SMLFN6TextIO8StreamIO10mkInstreamE(i8*inreg%r)
to label%B unwind label%a7
B:
store i8*%A,i8**%b,align 8
%C=bitcast i8*%A to i8**
%D=load i8*,i8**%C,align 8
%E=getelementptr inbounds i8,i8*%D,i64 16
%F=bitcast i8*%E to i8***
%G=load i8**,i8***%F,align 8
%H=load i8*,i8**%G,align 8
store i8*%H,i8**%c,align 8
%I=call i8*@sml_alloc(i32 inreg 20)#0
%J=getelementptr inbounds i8,i8*%I,i64 -4
%K=bitcast i8*%J to i32*
store i32 1342177296,i32*%K,align 4
%L=load i8*,i8**%c,align 8
store i8*null,i8**%c,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*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@bJ,i64 0,i32 2)to i8*),i8**%O,align 8
%P=getelementptr inbounds i8,i8*%I,i64 16
%Q=bitcast i8*%P to i32*
store i32 3,i32*%Q,align 4
invoke fastcc void@_SMLFN18SMLSharp__OSProcess12rebindAtExitE(i8*inreg%I)
to label%R unwind label%a7
R:
%S=call i8*@sml_alloc(i32 inreg 8)#0
%T=getelementptr inbounds i8,i8*%S,i64 -4
%U=bitcast i8*%T to i32*
store i32 805306376,i32*%U,align 4
store i8*%S,i8**%c,align 8
%V=bitcast i8*%S to i64*
store i64 0,i64*%V,align 1
%W=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%X=bitcast i8*%S to i8**
call void@sml_write(i8*inreg%S,i8**inreg%X,i8*inreg%W)#0
%Y=call i8*@sml_alloc(i32 inreg 8)#0
%Z=getelementptr inbounds i8,i8*%Y,i64 -4
%aa=bitcast i8*%Z to i32*
store i32 805306376,i32*%aa,align 4
store i8*%Y,i8**%b,align 8
%ab=bitcast i8*%Y to i64*
store i64 0,i64*%ab,align 1
%ac=invoke fastcc i8*@_SMLLLN6TextIO8mkStdOutE_666()
to label%ad unwind label%a7
ad:
%ae=load i8*,i8**%b,align 8
%af=bitcast i8*%ae to i8**
call void@sml_write(i8*inreg%ae,i8**inreg%af,i8*inreg%ac)#0
%ag=call i8*@sml_alloc(i32 inreg 8)#0
%ah=getelementptr inbounds i8,i8*%ag,i64 -4
%ai=bitcast i8*%ah to i32*
store i32 805306376,i32*%ai,align 4
store i8*%ag,i8**%d,align 8
%aj=bitcast i8*%ag to i64*
store i64 0,i64*%aj,align 1
%ak=invoke fastcc i8*@_SMLLLN6TextIO8mkStdErrE_676()
to label%al unwind label%a7
al:
%am=load i8*,i8**%d,align 8
%an=bitcast i8*%am to i8**
call void@sml_write(i8*inreg%am,i8**inreg%an,i8*inreg%ak)#0
%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**%e,align 8
%ar=load i8*,i8**%c,align 8
%as=bitcast i8*%ao to i8**
store i8*%ar,i8**%as,align 8
%at=load i8*,i8**%b,align 8
%au=getelementptr inbounds i8,i8*%ao,i64 8
%av=bitcast i8*%au to i8**
store i8*%at,i8**%av,align 8
%aw=load i8*,i8**%d,align 8
%ax=getelementptr inbounds i8,i8*%ao,i64 16
%ay=bitcast i8*%ax to i8**
store i8*%aw,i8**%ay,align 8
%az=getelementptr inbounds i8,i8*%ao,i64 24
%aA=bitcast i8*%az 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
%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 void(...)**
store void(...)*bitcast(void(i8*,i32)*@_SMLLL692 to void(...)*),void(...)**%aH,align 8
%aI=getelementptr inbounds i8,i8*%aB,i64 16
%aJ=bitcast i8*%aI to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLL793 to void(...)*),void(...)**%aJ,align 8
%aK=getelementptr inbounds i8,i8*%aB,i64 24
%aL=bitcast i8*%aK to i32*
store i32 -2147483647,i32*%aL,align 4
call void@sml_write(i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*}>,<{[4x i8],i32,i8*}>*@_SMLDL328,i64 0,i32 2)to i8*),i8**inreg getelementptr inbounds(<{[4x i8],i32,i8*}>,<{[4x i8],i32,i8*}>*@_SMLDL328,i64 0,i32 2),i8*inreg%aB)#0
%aM=call i8*@sml_alloc(i32 inreg 12)#0
%aN=getelementptr inbounds i8,i8*%aM,i64 -4
%aO=bitcast i8*%aN to i32*
store i32 1342177288,i32*%aO,align 4
store i8*%aM,i8**%e,align 8
%aP=load i8*,i8**%b,align 8
%aQ=bitcast i8*%aM to i8**
store i8*%aP,i8**%aQ,align 8
%aR=getelementptr inbounds i8,i8*%aM,i64 8
%aS=bitcast i8*%aR to i32*
store i32 1,i32*%aS,align 4
%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
%aW=load i8*,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 void(...)**
store void(...)*bitcast(void(i8*,i8*)*@_SMLLLN6TextIO5printE_695 to void(...)*),void(...)**%aZ,align 8
%a0=getelementptr inbounds i8,i8*%aT,i64 16
%a1=bitcast i8*%a0 to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO5printE_794 to void(...)*),void(...)**%a1,align 8
%a2=getelementptr inbounds i8,i8*%aT,i64 24
%a3=bitcast i8*%a2 to i32*
store i32 -2147483647,i32*%a3,align 4
%a4=load i8*,i8**%c,align 8
call void@sml_write(i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,[4x i8*]}>,<{[4x i8],i32,[4x i8*]}>*@_SML_gvar3446b7b079949ccf_text_io,i64 0,i32 2,i64 0)to i8*),i8**inreg getelementptr inbounds(<{[4x i8],i32,[4x i8*]}>,<{[4x i8],i32,[4x i8*]}>*@_SML_gvar3446b7b079949ccf_text_io,i64 0,i32 2,i64 0),i8*inreg%a4)#0
%a5=load i8*,i8**%b,align 8
call void@sml_write(i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,[4x i8*]}>,<{[4x i8],i32,[4x i8*]}>*@_SML_gvar3446b7b079949ccf_text_io,i64 0,i32 2,i64 0)to i8*),i8**inreg getelementptr inbounds(<{[4x i8],i32,[4x i8*]}>,<{[4x i8],i32,[4x i8*]}>*@_SML_gvar3446b7b079949ccf_text_io,i64 0,i32 2,i64 1),i8*inreg%a5)#0
%a6=load i8*,i8**%d,align 8
call void@sml_write(i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,[4x i8*]}>,<{[4x i8],i32,[4x i8*]}>*@_SML_gvar3446b7b079949ccf_text_io,i64 0,i32 2,i64 0)to i8*),i8**inreg getelementptr inbounds(<{[4x i8],i32,[4x i8*]}>,<{[4x i8],i32,[4x i8*]}>*@_SML_gvar3446b7b079949ccf_text_io,i64 0,i32 2,i64 2),i8*inreg%a6)#0
call void@sml_write(i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,[4x i8*]}>,<{[4x i8],i32,[4x i8*]}>*@_SML_gvar3446b7b079949ccf_text_io,i64 0,i32 2,i64 0)to i8*),i8**inreg getelementptr inbounds(<{[4x i8],i32,[4x i8*]}>,<{[4x i8],i32,[4x i8*]}>*@_SML_gvar3446b7b079949ccf_text_io,i64 0,i32 2,i64 3),i8*inreg%aT)#0
call void@sml_end()#0
ret void
a7:
%a8=landingpad{i8*,i8*}
cleanup
%a9=extractvalue{i8*,i8*}%a8,1
call void@sml_save_exn(i8*inreg%a9)#0
call void@sml_end()#0
resume{i8*,i8*}%a8
}
define internal fastcc void@_SMLLL326(i32 inreg%a)#4 gc"smlsharp"{
ret void
}
define internal fastcc i8*@_SMLLLN6TextIO8StreamIO12extendStreamE_334(i8*inreg%a)unnamed_addr#2 gc"smlsharp"personality i32(...)*@sml_personality{
o:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
%h=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
call void@llvm.gcroot(i8**%h,i8*null)#0
store i8*%a,i8**%b,align 8
%i=load atomic i32,i32*@sml_check_flag unordered,align 4
%j=icmp eq i32%i,0
br i1%j,label%m,label%k
k:
call void@sml_check(i32 inreg%i)
%l=load i8*,i8**%b,align 8
br label%m
m:
%n=phi i8*[%l,%k],[%a,%o]
%p=bitcast i8*%n to i8**
%q=load i8*,i8**%p,align 8
store i8*%q,i8**%b,align 8
%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**%c,align 8
%u=getelementptr inbounds i8,i8*%n,i64 16
%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*%w,i64 16
%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*%w,i64 24
%B=bitcast i8*%A to i8**
%C=load i8*,i8**%B,align 8
store i8*%C,i8**%f,align 8
%D=getelementptr inbounds i8,i8*%z,i64 16
%E=bitcast i8*%D to i8**
%F=load i8*,i8**%E,align 8
%G=getelementptr inbounds i8,i8*%z,i64 48
%H=bitcast i8*%G to i8**
%I=load i8*,i8**%H,align 8
store i8*%I,i8**%g,align 8
%J=getelementptr inbounds i8,i8*%F,i64 16
%K=bitcast i8*%J to i8*(i8*,i8*)**
%L=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%K,align 8
%M=bitcast i8*%F to i8**
%N=load i8*,i8**%M,align 8
store i8*%N,i8**%h,align 8
%O=call i8*@sml_alloc(i32 inreg 4)#0
%P=bitcast i8*%O to i32*
%Q=getelementptr inbounds i8,i8*%O,i64 -4
%R=bitcast i8*%Q to i32*
store i32 4,i32*%R,align 4
store i32 0,i32*%P,align 4
%S=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%T=invoke fastcc i8*%L(i8*inreg%S,i8*inreg%O)
to label%U unwind label%a7
U:
store i8*%T,i8**%h,align 8
%V=load i8*,i8**%b,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**
%aa=load i8*,i8**%Z,align 8
store i8*%aa,i8**%b,align 8
%ab=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%ac=getelementptr inbounds i8,i8*%ab,i64 16
%ad=bitcast i8*%ac to i8**
%ae=load i8*,i8**%ad,align 8
%af=getelementptr inbounds i8,i8*%ae,i64 40
%ag=bitcast i8*%af to i8**
%ah=load i8*,i8**%ag,align 8
%ai=getelementptr inbounds i8,i8*%ah,i64 24
%aj=bitcast i8*%ai to i32*
%ak=load i32,i32*%aj,align 4
%al=call i8*@sml_alloc(i32 inreg 4)#0
%am=bitcast i8*%al to i32*
%an=getelementptr inbounds i8,i8*%al,i64 -4
%ao=bitcast i8*%an to i32*
store i32 4,i32*%ao,align 4
store i32%ak,i32*%am,align 4
%ap=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aq=invoke fastcc i8*%Y(i8*inreg%ap,i8*inreg%al)
to label%ar unwind label%a7
ar:
store i8*%aq,i8**%b,align 8
store i8*null,i8**%c,align 8
%as=call i8*@sml_alloc(i32 inreg 8)#0
%at=getelementptr inbounds i8,i8*%as,i64 -4
%au=bitcast i8*%at to i32*
store i32 805306376,i32*%au,align 4
store i8*%as,i8**%d,align 8
%av=bitcast i8*%as to i64*
store i64 0,i64*%av,align 1
%aw=bitcast i8*%as to i8**
call void@sml_write(i8*inreg%as,i8**inreg%aw,i8*inreg bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@O,i64 0,i32 2)to i8*))#0
%ax=call i8*@sml_alloc(i32 inreg 36)#0
%ay=getelementptr inbounds i8,i8*%ax,i64 -4
%az=bitcast i8*%ay to i32*
store i32 1342177312,i32*%az,align 4
store i8*%ax,i8**%c,align 8
%aA=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%aB=bitcast i8*%ax to i8**
store i8*%aA,i8**%aB,align 8
%aC=load i8*,i8**%b,align 8
%aD=getelementptr inbounds i8,i8*%ax,i64 8
%aE=bitcast i8*%aD to i8**
store i8*%aC,i8**%aE,align 8
%aF=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%aG=getelementptr inbounds i8,i8*%ax,i64 16
%aH=bitcast i8*%aG to i8**
store i8*%aF,i8**%aH,align 8
%aI=load i8*,i8**%d,align 8
%aJ=getelementptr inbounds i8,i8*%ax,i64 24
%aK=bitcast i8*%aJ to i8**
store i8*%aI,i8**%aK,align 8
%aL=getelementptr inbounds i8,i8*%ax,i64 32
%aM=bitcast i8*%aL to i32*
store i32 15,i32*%aM,align 4
store i8*null,i8**%b,align 8
%aN=getelementptr inbounds i8,i8*%aC,i64 -4
%aO=bitcast i8*%aN to i32*
%aP=load i32,i32*%aO,align 4
%aQ=and i32%aP,268435455
%aR=icmp eq i32%aQ,1
%aS=call i8*@sml_alloc(i32 inreg 20)#0
%aT=bitcast i8*%aS to i32*
%aU=getelementptr inbounds i8,i8*%aS,i64 -4
%aV=bitcast i8*%aU to i32*
store i32 1342177296,i32*%aV,align 4
call void@llvm.memset.p0i8.i32(i8*%aS,i8 0,i32 20,i1 false)
%aW=select i1%aR,i32 0,i32 1
store i32%aW,i32*%aT,align 4
%aX=load i8*,i8**%c,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 2,i32*%a1,align 4
%a2=load i8*,i8**%f,align 8
%a3=bitcast i8*%a2 to i8**
call void@sml_write(i8*inreg%a2,i8**inreg%a3,i8*inreg%aS)#0
%a4=load i8*,i8**%g,align 8
%a5=load i8*,i8**%d,align 8
%a6=bitcast i8*%a4 to i8**
call void@sml_write(i8*inreg%a4,i8**inreg%a6,i8*inreg%a5)#0
ret i8*%aS
a7:
%a8=landingpad{i8*,i8*}
catch i8*null
%a9=extractvalue{i8*,i8*}%a8,1
%ba=bitcast i8*%a9 to i8**
%bb=load i8*,i8**%ba,align 8
store i8*null,i8**%g,align 8
store i8*null,i8**%h,align 8
store i8*%bb,i8**%f,align 8
%bc=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%bc,i8**%b,align 8
%bd=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%be=getelementptr inbounds i8,i8*%bd,i64 40
%bf=bitcast i8*%be to i8**
%bg=load i8*,i8**%bf,align 8
%bh=getelementptr inbounds i8,i8*%bg,i64 64
%bi=bitcast i8*%bh to i8**
%bj=load i8*,i8**%bi,align 8
store i8*%bj,i8**%d,align 8
%bk=call i8*@sml_alloc(i32 inreg 28)#0
%bl=getelementptr inbounds i8,i8*%bk,i64 -4
%bm=bitcast i8*%bl to i32*
store i32 1342177304,i32*%bm,align 4
store i8*%bk,i8**%e,align 8
%bn=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%bo=bitcast i8*%bk to i8**
store i8*%bn,i8**%bo,align 8
%bp=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bq=getelementptr inbounds i8,i8*%bk,i64 8
%br=bitcast i8*%bq to i8**
store i8*%bp,i8**%br,align 8
%bs=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%bt=getelementptr inbounds i8,i8*%bk,i64 16
%bu=bitcast i8*%bt to i8**
store i8*%bs,i8**%bu,align 8
%bv=getelementptr inbounds i8,i8*%bk,i64 24
%bw=bitcast i8*%bv to i32*
store i32 7,i32*%bw,align 4
%bx=call i8*@sml_alloc(i32 inreg 28)#0
%by=getelementptr inbounds i8,i8*%bx,i64 -4
%bz=bitcast i8*%by to i32*
store i32 1342177304,i32*%bz,align 4
store i8*%bx,i8**%c,align 8
%bA=load i8*,i8**%b,align 8
store i8*null,i8**%b,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 i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@Z,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*%bx,i64 16
%bG=bitcast i8*%bF to i8**
store i8*%bE,i8**%bG,align 8
%bH=getelementptr inbounds i8,i8*%bx,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**%c,align 8
%bP=bitcast i8*%bJ to i8**
store i8*%bO,i8**%bP,align 8
call void@sml_raise(i8*inreg%bJ)#1
unreachable
}
define internal fastcc i8*@_SMLLL3get_339(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
k:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
store i8*%a,i8**%f,align 8
%g=bitcast i8**%c to i8***
%h=bitcast i8**%f to i8***
br label%i
i:
%j=phi i8*[%bp,%bl],[%b,%k]
store i8*%j,i8**%c,align 8
%l=load atomic i32,i32*@sml_check_flag unordered,align 4
%m=icmp eq i32%l,0
%n=bitcast i8*%j to i8**
br i1%m,label%r,label%o
o:
call void@sml_check(i32 inreg%l)
%p=load i8**,i8***%g,align 8
%q=bitcast i8**%p to i8*
br label%r
r:
%s=phi i8*[%q,%o],[%j,%i]
%t=phi i8**[%p,%o],[%n,%i]
%u=load i8*,i8**%t,align 8
store i8*%u,i8**%d,align 8
%v=getelementptr inbounds i8,i8*%u,i64 8
%w=bitcast i8*%v to i8**
%x=load i8*,i8**%w,align 8
store i8*%x,i8**%e,align 8
store i8*null,i8**%c,align 8
%y=getelementptr inbounds i8,i8*%s,i64 8
%z=bitcast i8*%y to i32*
%A=load i32,i32*%z,align 4
%B=getelementptr inbounds i8,i8*%x,i64 -4
%C=bitcast i8*%B to i32*
%D=load i32,i32*%C,align 4
%E=and i32%D,268435455
%F=add nsw i32%E,-1
%G=icmp slt i32%A,%F
br i1%G,label%H,label%as
H:
store i8*null,i8**%f,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
%L=getelementptr inbounds i8,i8*%I,i64 12
%M=bitcast i8*%L to i32*
store i32 0,i32*%M,align 1
%N=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%O=bitcast i8*%I to i8**
store i8*%N,i8**%O,align 8
%P=getelementptr inbounds i8,i8*%I,i64 8
%Q=bitcast i8*%P to i32*
store i32%A,i32*%Q,align 4
%R=getelementptr inbounds i8,i8*%I,i64 16
%S=bitcast i8*%R to i8**
store i8*null,i8**%S,align 8
%T=getelementptr inbounds i8,i8*%I,i64 24
%U=bitcast i8*%T to i32*
store i32 5,i32*%U,align 4
%V=call fastcc i8*@_SMLFN15CharVectorSlice5sliceE(i8*inreg%I)
%W=call fastcc i8*@_SMLFN15CharVectorSlice6vectorE(i8*inreg%V)
store i8*%W,i8**%c,align 8
%X=call i8*@sml_alloc(i32 inreg 20)#0
%Y=getelementptr inbounds i8,i8*%X,i64 -4
%Z=bitcast i8*%Y to i32*
store i32 1342177296,i32*%Z,align 4
store i8*%X,i8**%e,align 8
%aa=getelementptr inbounds i8,i8*%X,i64 12
%ab=bitcast i8*%aa to i32*
store i32 0,i32*%ab,align 1
%ac=load i8*,i8**%d,align 8
%ad=bitcast i8*%X to i8**
store i8*null,i8**%d,align 8
store i8*%ac,i8**%ad,align 8
%ae=getelementptr inbounds i8,i8*%X,i64 8
%af=bitcast i8*%ae to i32*
store i32%F,i32*%af,align 4
%ag=getelementptr inbounds i8,i8*%X,i64 16
%ah=bitcast i8*%ag to i32*
store i32 1,i32*%ah,align 4
%ai=call i8*@sml_alloc(i32 inreg 20)#0
%aj=getelementptr inbounds i8,i8*%ai,i64 -4
%ak=bitcast i8*%aj to i32*
store i32 1342177296,i32*%ak,align 4
%al=load i8*,i8**%c,align 8
%am=bitcast i8*%ai to i8**
store i8*%al,i8**%am,align 8
%an=load i8*,i8**%e,align 8
%ao=getelementptr inbounds i8,i8*%ai,i64 8
%ap=bitcast i8*%ao to i8**
store i8*%an,i8**%ap,align 8
%aq=getelementptr inbounds i8,i8*%ai,i64 16
%ar=bitcast i8*%aq to i32*
store i32 3,i32*%ar,align 4
ret i8*%ai
as:
store i8*null,i8**%e,align 8
%at=load i8**,i8***%h,align 8
%au=load i8*,i8**%at,align 8
%av=getelementptr inbounds i8,i8*%au,i64 16
%aw=bitcast i8*%av to i8*(i8*,i8*)**
%ax=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aw,align 8
%ay=bitcast i8*%au to i8**
%az=load i8*,i8**%ay,align 8
store i8*null,i8**%d,align 8
%aA=call fastcc i8*%ax(i8*inreg%az,i8*inreg%u)
%aB=bitcast i8*%aA to i32*
%aC=load i32,i32*%aB,align 4
switch i32%aC,label%aD[
i32 1,label%bl
i32 0,label%aX
]
aD:
store i8*null,i8**%f,align 8
%aE=load i8*,i8**@_SMLZ4Fail,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
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 i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@d,i64 0,i32 2,i64 0),i8**%aL,align 8
%aM=getelementptr inbounds i8,i8*%aF,i64 16
%aN=bitcast i8*%aM to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[13x i8]}>,<{[4x i8],i32,[13x i8]}>*@e,i64 0,i32 2,i64 0),i8**%aN,align 8
%aO=getelementptr inbounds i8,i8*%aF,i64 24
%aP=bitcast i8*%aO to i32*
store i32 7,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**%d,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:
store i8*null,i8**%f,align 8
%aY=getelementptr inbounds i8,i8*%aA,i64 8
%aZ=bitcast i8*%aY to i8**
%a0=load i8*,i8**%aZ,align 8
store i8*%a0,i8**%c,align 8
%a1=call i8*@sml_alloc(i32 inreg 20)#0
%a2=getelementptr inbounds i8,i8*%a1,i64 -4
%a3=bitcast i8*%a2 to i32*
store i32 1342177296,i32*%a3,align 4
store i8*%a1,i8**%d,align 8
%a4=getelementptr inbounds i8,i8*%a1,i64 12
%a5=bitcast i8*%a4 to i32*
store i32 0,i32*%a5,align 1
%a6=load i8*,i8**%c,align 8
%a7=bitcast i8*%a1 to i8**
store i8*null,i8**%c,align 8
store i8*%a6,i8**%a7,align 8
%a8=getelementptr inbounds i8,i8*%a1,i64 8
%a9=bitcast i8*%a8 to i32*
store i32 0,i32*%a9,align 4
%ba=getelementptr inbounds i8,i8*%a1,i64 16
%bb=bitcast i8*%ba to i32*
store i32 1,i32*%bb,align 4
%bc=call i8*@sml_alloc(i32 inreg 20)#0
%bd=getelementptr inbounds i8,i8*%bc,i64 -4
%be=bitcast i8*%bd to i32*
store i32 1342177296,i32*%be,align 4
%bf=bitcast i8*%bc to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[1x i8]}>,<{[4x i8],i32,[1x i8]}>*@bK,i64 0,i32 2,i64 0),i8**%bf,align 8
%bg=load i8*,i8**%d,align 8
%bh=getelementptr inbounds i8,i8*%bc,i64 8
%bi=bitcast i8*%bh to i8**
store i8*%bg,i8**%bi,align 8
%bj=getelementptr inbounds i8,i8*%bc,i64 16
%bk=bitcast i8*%bj to i32*
store i32 3,i32*%bk,align 4
ret i8*%bc
bl:
%bm=getelementptr inbounds i8,i8*%aA,i64 8
%bn=bitcast i8*%bm to i8**
%bo=load i8*,i8**%bn,align 8
store i8*%bo,i8**%c,align 8
%bp=call i8*@sml_alloc(i32 inreg 20)#0
%bq=getelementptr inbounds i8,i8*%bp,i64 -4
%br=bitcast i8*%bq to i32*
store i32 1342177296,i32*%br,align 4
%bs=getelementptr inbounds i8,i8*%bp,i64 12
%bt=bitcast i8*%bs to i32*
store i32 0,i32*%bt,align 1
%bu=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bv=bitcast i8*%bp to i8**
store i8*%bu,i8**%bv,align 8
%bw=getelementptr inbounds i8,i8*%bp,i64 8
%bx=bitcast i8*%bw to i32*
store i32 0,i32*%bx,align 4
%by=getelementptr inbounds i8,i8*%bp,i64 16
%bz=bitcast i8*%by to i32*
store i32 1,i32*%bz,align 4
br label%i
}
define internal fastcc i8*@_SMLLLN6TextIO8StreamIO16generalizedInputE_340(i8*inreg%a)unnamed_addr#4 gc"smlsharp"{
%b=alloca i8*,align 8
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%b,align 8
%d=call i8*@sml_alloc(i32 inreg 12)#0
%e=getelementptr inbounds i8,i8*%d,i64 -4
%f=bitcast i8*%e to i32*
store i32 1342177288,i32*%f,align 4
store i8*%d,i8**%c,align 8
%g=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%h=bitcast i8*%d to i8**
store i8*%g,i8**%h,align 8
%i=getelementptr inbounds i8,i8*%d,i64 8
%j=bitcast i8*%i to i32*
store i32 1,i32*%j,align 4
%k=call i8*@sml_alloc(i32 inreg 28)#0
%l=getelementptr inbounds i8,i8*%k,i64 -4
%m=bitcast i8*%l to i32*
store i32 1342177304,i32*%m,align 4
%n=load i8*,i8**%c,align 8
%o=bitcast i8*%k to i8**
store i8*%n,i8**%o,align 8
%p=getelementptr inbounds i8,i8*%k,i64 8
%q=bitcast i8*%p to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLL3get_339 to void(...)*),void(...)**%q,align 8
%r=getelementptr inbounds i8,i8*%k,i64 16
%s=bitcast i8*%r to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLL3get_339 to void(...)*),void(...)**%s,align 8
%t=getelementptr inbounds i8,i8*%k,i64 24
%u=bitcast i8*%t to i32*
store i32 -2147483647,i32*%u,align 4
ret i8*%k
}
define internal fastcc i8*@_SMLLLN6TextIO8StreamIO5inputE_343(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
k:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%d,align 8
store i8*%b,i8**%c,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%i,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%c,align 8
br label%i
i:
%j=phi i8*[%h,%g],[%b,%k]
%l=getelementptr inbounds i8,i8*%j,i64 24
%m=bitcast i8*%l to i8***
%n=load i8**,i8***%m,align 8
%o=load i8*,i8**%n,align 8
%p=bitcast i8*%o to i32*
%q=load i32,i32*%p,align 4
switch i32%q,label%r[
i32 2,label%C
i32 3,label%s
]
r:
ret i8*%o
s:
store i8*null,i8**%d,align 8
%t=call i8*@sml_alloc(i32 inreg 20)#0
%u=getelementptr inbounds i8,i8*%t,i64 -4
%v=bitcast i8*%u to i32*
store i32 1342177296,i32*%v,align 4
%w=bitcast i8*%t to i64*
store i64 0,i64*%w,align 4
%x=load i8*,i8**%c,align 8
%y=getelementptr inbounds i8,i8*%t,i64 8
%z=bitcast i8*%y to i8**
store i8*%x,i8**%z,align 8
%A=getelementptr inbounds i8,i8*%t,i64 16
%B=bitcast i8*%A to i32*
store i32 2,i32*%B,align 4
ret i8*%t
C:
%D=bitcast i8**%d to i8***
%E=load i8**,i8***%D,align 8
%F=load i8*,i8**%E,align 8
store i8*%F,i8**%d,align 8
%G=call i8*@sml_alloc(i32 inreg 28)#0
%H=getelementptr inbounds i8,i8*%G,i64 -4
%I=bitcast i8*%H to i32*
store i32 1342177304,i32*%I,align 4
%J=load i8*,i8**%d,align 8
%K=bitcast i8*%G to i8**
store i8*%J,i8**%K,align 8
%L=getelementptr inbounds i8,i8*%G,i64 8
%M=bitcast i8*%L to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[6x i8]}>,<{[4x i8],i32,[6x i8]}>*@a7,i64 0,i32 2,i64 0),i8**%M,align 8
%N=load i8*,i8**%c,align 8
%O=getelementptr inbounds i8,i8*%G,i64 16
%P=bitcast i8*%O to i8**
store i8*%N,i8**%P,align 8
%Q=getelementptr inbounds i8,i8*%G,i64 24
%R=bitcast i8*%Q to i32*
store i32 7,i32*%R,align 4
%S=tail call fastcc i8*@_SMLLLN6TextIO8StreamIO12extendStreamE_334(i8*inreg%G)
ret i8*%S
}
define fastcc i8*@_SMLFN6TextIO8StreamIO5inputE(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=getelementptr inbounds i8,i8*%n,i64 16
%p=bitcast i8*%o to i8**
%q=load i8*,i8**%p,align 8
%r=getelementptr inbounds i8,i8*%q,i64 24
%s=bitcast i8*%r to i8**
%t=load i8*,i8**%s,align 8
store i8*%t,i8**%c,align 8
%u=call i8*@sml_alloc(i32 inreg 12)#0
%v=getelementptr inbounds i8,i8*%u,i64 -4
%w=bitcast i8*%v to i32*
store i32 1342177288,i32*%w,align 4
store i8*%u,i8**%d,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
%A=bitcast i8*%z to i32*
store i32 1,i32*%A,align 4
%B=call i8*@sml_alloc(i32 inreg 28)#0
%C=getelementptr inbounds i8,i8*%B,i64 -4
%D=bitcast i8*%C to i32*
store i32 1342177304,i32*%D,align 4
%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 void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO8StreamIO5inputE_343 to void(...)*),void(...)**%H,align 8
%I=getelementptr inbounds i8,i8*%B,i64 16
%J=bitcast i8*%I to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO8StreamIO5inputE_343 to void(...)*),void(...)**%J,align 8
%K=getelementptr inbounds i8,i8*%B,i64 24
%L=bitcast i8*%K to i32*
store i32 -2147483647,i32*%L,align 4
%M=call fastcc i8*@_SMLLLN6TextIO8StreamIO16generalizedInputE_340(i8*inreg%B)
%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
%S=load i8*,i8**%b,align 8
%T=tail call fastcc i8*%P(i8*inreg%R,i8*inreg%S)
ret i8*%T
}
define fastcc i8*@_SMLFN6TextIO8StreamIO6input1E(i8*inreg%a)#2 gc"smlsharp"{
h:
%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***
br label%f
f:
%g=phi i8*[%bz,%by],[%a,%h]
store i8*%g,i8**%b,align 8
%i=load atomic i32,i32*@sml_check_flag unordered,align 4
%j=icmp eq i32%i,0
%k=bitcast i8*%g to i8**
br i1%j,label%n,label%l
l:
call void@sml_check(i32 inreg%i)
%m=load i8**,i8***%e,align 8
br label%n
n:
%o=phi i8**[%m,%l],[%k,%f]
%p=load i8*,i8**%o,align 8
store i8*%p,i8**%c,align 8
store i8*null,i8**%b,align 8
%q=getelementptr inbounds i8*,i8**%o,i64 1
%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*%v,i64 -4
%x=bitcast i8*%w to i32*
%y=load i32,i32*%x,align 4
%z=and i32%y,268435455
%A=add nsw i32%z,-1
%B=icmp slt i32%s,%A
br i1%B,label%C,label%aC
C:
%D=icmp slt i32%s,0
br i1%D,label%E,label%W
E:
store i8*null,i8**%c,align 8
%F=load i8*,i8**@_SMLZ9Subscript,align 8
store i8*%F,i8**%b,align 8
%G=call i8*@sml_alloc(i32 inreg 20)#0
%H=getelementptr inbounds i8,i8*%G,i64 -4
%I=bitcast i8*%H to i32*
store i32 1342177296,i32*%I,align 4
store i8*%G,i8**%c,align 8
%J=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%K=bitcast i8*%G to i8**
store i8*%J,i8**%K,align 8
%L=getelementptr inbounds i8,i8*%G,i64 8
%M=bitcast i8*%L to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@i,i64 0,i32 2,i64 0),i8**%M,align 8
%N=getelementptr inbounds i8,i8*%G,i64 16
%O=bitcast i8*%N to i32*
store i32 3,i32*%O,align 4
%P=call i8*@sml_alloc(i32 inreg 60)#0
%Q=getelementptr inbounds i8,i8*%P,i64 -4
%R=bitcast i8*%Q to i32*
store i32 1342177336,i32*%R,align 4
%S=getelementptr inbounds i8,i8*%P,i64 56
%T=bitcast i8*%S to i32*
store i32 1,i32*%T,align 4
%U=load i8*,i8**%c,align 8
%V=bitcast i8*%P to i8**
store i8*%U,i8**%V,align 8
call void@sml_raise(i8*inreg%P)#1
unreachable
W:
%X=sext i32%s to i64
%Y=getelementptr inbounds i8,i8*%v,i64%X
%Z=load i8,i8*%Y,align 1
%aa=add nsw i32%s,1
%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**%d,align 8
%ae=getelementptr inbounds i8,i8*%ab,i64 12
%af=bitcast i8*%ae to i32*
store i32 0,i32*%af,align 1
%ag=load i8*,i8**%c,align 8
%ah=bitcast i8*%ab to i8**
store i8*null,i8**%c,align 8
store i8*%ag,i8**%ah,align 8
%ai=getelementptr inbounds i8,i8*%ab,i64 8
%aj=bitcast i8*%ai to i32*
store i32%aa,i32*%aj,align 4
%ak=getelementptr inbounds i8,i8*%ab,i64 16
%al=bitcast i8*%ak to i32*
store i32 1,i32*%al,align 4
%am=call i8*@sml_alloc(i32 inreg 20)#0
%an=getelementptr inbounds i8,i8*%am,i64 -4
%ao=bitcast i8*%an to i32*
store i32 1342177296,i32*%ao,align 4
store i8*%am,i8**%b,align 8
%ap=getelementptr inbounds i8,i8*%am,i64 1
call void@llvm.memset.p0i8.i32(i8*%ap,i8 0,i32 7,i1 false)
store i8%Z,i8*%am,align 1
%aq=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%ar=getelementptr inbounds i8,i8*%am,i64 8
%as=bitcast i8*%ar to i8**
store i8*%aq,i8**%as,align 8
%at=getelementptr inbounds i8,i8*%am,i64 16
%au=bitcast i8*%at to i32*
store i32 2,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
%ay=load i8*,i8**%b,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
ret i8*%av
aC:
%aD=getelementptr inbounds i8,i8*%p,i64 24
%aE=bitcast i8*%aD to i8***
%aF=load i8**,i8***%aE,align 8
%aG=load i8*,i8**%aF,align 8
%aH=bitcast i8*%aG to i32*
%aI=load i32,i32*%aH,align 4
switch i32%aI,label%aJ[
i32 1,label%bG
i32 0,label%a1
i32 2,label%a2
i32 3,label%a1
]
aJ:
store i8*null,i8**%c,align 8
call void@sml_matchcomp_bug()
%aK=load i8*,i8**@_SMLZ5Match,align 8
store i8*%aK,i8**%b,align 8
%aL=call i8*@sml_alloc(i32 inreg 20)#0
%aM=getelementptr inbounds i8,i8*%aL,i64 -4
%aN=bitcast i8*%aM to i32*
store i32 1342177296,i32*%aN,align 4
store i8*%aL,i8**%c,align 8
%aO=load i8*,i8**%b,align 8
store i8*null,i8**%b,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]}>*@h,i64 0,i32 2,i64 0),i8**%aR,align 8
%aS=getelementptr inbounds i8,i8*%aL,i64 16
%aT=bitcast i8*%aS to i32*
store i32 3,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**%c,align 8
%a0=bitcast i8*%aU to i8**
store i8*%aZ,i8**%a0,align 8
call void@sml_raise(i8*inreg%aU)#1
unreachable
a1:
ret i8*null
a2:
%a3=getelementptr inbounds i8,i8*%p,i64 16
%a4=bitcast i8*%a3 to i8**
%a5=load i8*,i8**%a4,align 8
%a6=getelementptr inbounds i8,i8*%a5,i64 24
%a7=bitcast i8*%a6 to i8**
%a8=load i8*,i8**%a7,align 8
store i8*%a8,i8**%b,align 8
%a9=call i8*@sml_alloc(i32 inreg 28)#0
%ba=getelementptr inbounds i8,i8*%a9,i64 -4
%bb=bitcast i8*%ba to i32*
store i32 1342177304,i32*%bb,align 4
%bc=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%bd=bitcast i8*%a9 to i8**
store i8*%bc,i8**%bd,align 8
%be=getelementptr inbounds i8,i8*%a9,i64 8
%bf=bitcast i8*%be to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[7x i8]}>,<{[4x i8],i32,[7x i8]}>*@g,i64 0,i32 2,i64 0),i8**%bf,align 8
%bg=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bh=getelementptr inbounds i8,i8*%a9,i64 16
%bi=bitcast i8*%bh to i8**
store i8*%bg,i8**%bi,align 8
%bj=getelementptr inbounds i8,i8*%a9,i64 24
%bk=bitcast i8*%bj to i32*
store i32 7,i32*%bk,align 4
%bl=call fastcc i8*@_SMLLLN6TextIO8StreamIO12extendStreamE_334(i8*inreg%a9)
%bm=bitcast i8*%bl to i32*
%bn=load i32,i32*%bm,align 4
%bo=icmp eq i32%bn,1
br i1%bo,label%bp,label%a1
bp:
%bq=getelementptr inbounds i8,i8*%bl,i64 8
%br=bitcast i8*%bq to i8**
%bs=load i8*,i8**%br,align 8
store i8*%bs,i8**%b,align 8
%bt=call i8*@sml_alloc(i32 inreg 20)#0
%bu=getelementptr inbounds i8,i8*%bt,i64 -4
%bv=bitcast i8*%bu to i32*
store i32 1342177296,i32*%bv,align 4
%bw=getelementptr inbounds i8,i8*%bt,i64 12
%bx=bitcast i8*%bw to i32*
store i32 0,i32*%bx,align 1
br label%by
by:
%bz=phi i8*[%bt,%bp],[%bK,%bG]
%bA=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%bB=bitcast i8*%bz to i8**
store i8*%bA,i8**%bB,align 8
%bC=getelementptr inbounds i8,i8*%bz,i64 8
%bD=bitcast i8*%bC to i32*
store i32 0,i32*%bD,align 4
%bE=getelementptr inbounds i8,i8*%bz,i64 16
%bF=bitcast i8*%bE to i32*
store i32 1,i32*%bF,align 4
br label%f
bG:
store i8*null,i8**%c,align 8
%bH=getelementptr inbounds i8,i8*%aG,i64 8
%bI=bitcast i8*%bH to i8**
%bJ=load i8*,i8**%bI,align 8
store i8*%bJ,i8**%b,align 8
%bK=call i8*@sml_alloc(i32 inreg 20)#0
%bL=getelementptr inbounds i8,i8*%bK,i64 -4
%bM=bitcast i8*%bL to i32*
store i32 1342177296,i32*%bM,align 4
%bN=getelementptr inbounds i8,i8*%bK,i64 12
%bO=bitcast i8*%bN to i32*
store i32 0,i32*%bO,align 1
br label%by
}
define internal fastcc i8*@_SMLLL9inputList_352(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=getelementptr inbounds i8,i8*%q,i64 -4
%y=bitcast i8*%x to i32*
%z=load i32,i32*%y,align 4
%A=and i32%z,268435455
%B=add nsw i32%A,-1
%C=call{i32,i1}@llvm.ssub.with.overflow.i32(i32%B,i32%t)#0
%D=extractvalue{i32,i1}%C,1
br i1%D,label%E,label%W
E:
store i8*null,i8**%c,align 8
%F=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%F,i8**%b,align 8
%G=call i8*@sml_alloc(i32 inreg 20)#0
%H=getelementptr inbounds i8,i8*%G,i64 -4
%I=bitcast i8*%H to i32*
store i32 1342177296,i32*%I,align 4
store i8*%G,i8**%c,align 8
%J=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%K=bitcast i8*%G to i8**
store i8*%J,i8**%K,align 8
%L=getelementptr inbounds i8,i8*%G,i64 8
%M=bitcast i8*%L to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@k,i64 0,i32 2,i64 0),i8**%M,align 8
%N=getelementptr inbounds i8,i8*%G,i64 16
%O=bitcast i8*%N to i32*
store i32 3,i32*%O,align 4
%P=call i8*@sml_alloc(i32 inreg 60)#0
%Q=getelementptr inbounds i8,i8*%P,i64 -4
%R=bitcast i8*%Q to i32*
store i32 1342177336,i32*%R,align 4
%S=getelementptr inbounds i8,i8*%P,i64 56
%T=bitcast i8*%S to i32*
store i32 1,i32*%T,align 4
%U=load i8*,i8**%c,align 8
%V=bitcast i8*%P to i8**
store i8*%U,i8**%V,align 8
call void@sml_raise(i8*inreg%P)#1
unreachable
W:
%X=sub nsw i32%B,%t
%Y=icmp sgt i32%w,%X
br i1%Y,label%bo,label%Z
Z:
%aa=call i8*@sml_alloc(i32 inreg 12)#0
%ab=getelementptr inbounds i8,i8*%aa,i64 -4
%ac=bitcast i8*%ab to i32*
store i32 1342177288,i32*%ac,align 4
store i8*%aa,i8**%d,align 8
%ad=getelementptr inbounds i8,i8*%aa,i64 4
%ae=bitcast i8*%ad to i32*
store i32 0,i32*%ae,align 1
%af=bitcast i8*%aa to i32*
store i32%w,i32*%af,align 4
%ag=getelementptr inbounds i8,i8*%aa,i64 8
%ah=bitcast i8*%ag to i32*
store i32 0,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
%al=getelementptr inbounds i8,i8*%ai,i64 12
%am=bitcast i8*%al to i32*
store i32 0,i32*%am,align 1
%an=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ao=bitcast i8*%ai to i8**
store i8*%an,i8**%ao,align 8
%ap=getelementptr inbounds i8,i8*%ai,i64 8
%aq=bitcast i8*%ap to i32*
store i32%t,i32*%aq,align 4
%ar=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%as=getelementptr inbounds i8,i8*%ai,i64 16
%at=bitcast i8*%as to i8**
store i8*%ar,i8**%at,align 8
%au=getelementptr inbounds i8,i8*%ai,i64 24
%av=bitcast i8*%au to i32*
store i32 5,i32*%av,align 4
%aw=call fastcc i8*@_SMLFN15CharVectorSlice5sliceE(i8*inreg%ai)
%ax=call fastcc i8*@_SMLFN15CharVectorSlice6vectorE(i8*inreg%aw)
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*null,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{i32,i1}@llvm.sadd.with.overflow.i32(i32%t,i32%w)#0
%aI=extractvalue{i32,i1}%aH,1
br i1%aI,label%aJ,label%a1
aJ:
store i8*null,i8**%d,align 8
%aK=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%aK,i8**%b,align 8
%aL=call i8*@sml_alloc(i32 inreg 20)#0
%aM=getelementptr inbounds i8,i8*%aL,i64 -4
%aN=bitcast i8*%aM to i32*
store i32 1342177296,i32*%aN,align 4
store i8*%aL,i8**%c,align 8
%aO=load i8*,i8**%b,align 8
store i8*null,i8**%b,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]}>*@o,i64 0,i32 2,i64 0),i8**%aR,align 8
%aS=getelementptr inbounds i8,i8*%aL,i64 16
%aT=bitcast i8*%aS to i32*
store i32 3,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**%c,align 8
%a0=bitcast i8*%aU to i8**
store i8*%aZ,i8**%a0,align 8
call void@sml_raise(i8*inreg%aU)#1
unreachable
a1:
%a2=add nsw i32%w,%t
%a3=call i8*@sml_alloc(i32 inreg 20)#0
%a4=getelementptr inbounds i8,i8*%a3,i64 -4
%a5=bitcast i8*%a4 to i32*
store i32 1342177296,i32*%a5,align 4
store i8*%a3,i8**%c,align 8
%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**%b,align 8
%a9=bitcast i8*%a3 to i8**
store i8*null,i8**%b,align 8
store i8*%a8,i8**%a9,align 8
%ba=getelementptr inbounds i8,i8*%a3,i64 8
%bb=bitcast i8*%ba to i32*
store i32%a2,i32*%bb,align 4
%bc=getelementptr inbounds i8,i8*%a3,i64 16
%bd=bitcast i8*%bc to i32*
store i32 1,i32*%bd,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=load i8*,i8**%d,align 8
%bi=bitcast i8*%be to i8**
store i8*%bh,i8**%bi,align 8
%bj=load i8*,i8**%c,align 8
%bk=getelementptr inbounds i8,i8*%be,i64 8
%bl=bitcast i8*%bk to i8**
store i8*%bj,i8**%bl,align 8
%bm=getelementptr inbounds i8,i8*%be,i64 16
%bn=bitcast i8*%bm to i32*
store i32 3,i32*%bn,align 4
ret i8*%be
bo:
%bp=call i8*@sml_alloc(i32 inreg 28)#0
%bq=getelementptr inbounds i8,i8*%bp,i64 -4
%br=bitcast i8*%bq to i32*
store i32 1342177304,i32*%br,align 4
%bs=getelementptr inbounds i8,i8*%bp,i64 12
%bt=bitcast i8*%bs to i32*
store i32 0,i32*%bt,align 1
%bu=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bv=bitcast i8*%bp to i8**
store i8*%bu,i8**%bv,align 8
%bw=getelementptr inbounds i8,i8*%bp,i64 8
%bx=bitcast i8*%bw to i32*
store i32%t,i32*%bx,align 4
%by=getelementptr inbounds i8,i8*%bp,i64 16
%bz=bitcast i8*%by to i8**
store i8*null,i8**%bz,align 8
%bA=getelementptr inbounds i8,i8*%bp,i64 24
%bB=bitcast i8*%bA to i32*
store i32 5,i32*%bB,align 4
%bC=call fastcc i8*@_SMLFN15CharVectorSlice5sliceE(i8*inreg%bp)
%bD=call fastcc i8*@_SMLFN15CharVectorSlice6vectorE(i8*inreg%bC)
store i8*%bD,i8**%c,align 8
%bE=call{i32,i1}@llvm.ssub.with.overflow.i32(i32%w,i32%X)#0
%bF=extractvalue{i32,i1}%bE,1
br i1%bF,label%bG,label%bY
bG:
store i8*null,i8**%c,align 8
%bH=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%bH,i8**%b,align 8
%bI=call i8*@sml_alloc(i32 inreg 20)#0
%bJ=getelementptr inbounds i8,i8*%bI,i64 -4
%bK=bitcast i8*%bJ to i32*
store i32 1342177296,i32*%bK,align 4
store i8*%bI,i8**%c,align 8
%bL=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%bM=bitcast i8*%bI to i8**
store i8*%bL,i8**%bM,align 8
%bN=getelementptr inbounds i8,i8*%bI,i64 8
%bO=bitcast i8*%bN to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@l,i64 0,i32 2,i64 0),i8**%bO,align 8
%bP=getelementptr inbounds i8,i8*%bI,i64 16
%bQ=bitcast i8*%bP to i32*
store i32 3,i32*%bQ,align 4
%bR=call i8*@sml_alloc(i32 inreg 60)#0
%bS=getelementptr inbounds i8,i8*%bR,i64 -4
%bT=bitcast i8*%bS to i32*
store i32 1342177336,i32*%bT,align 4
%bU=getelementptr inbounds i8,i8*%bR,i64 56
%bV=bitcast i8*%bU to i32*
store i32 1,i32*%bV,align 4
%bW=load i8*,i8**%c,align 8
%bX=bitcast i8*%bR to i8**
store i8*%bW,i8**%bX,align 8
call void@sml_raise(i8*inreg%bR)#1
unreachable
bY:
%bZ=sub nsw i32%w,%X
%b0=load i8*,i8**%b,align 8
%b1=getelementptr inbounds i8,i8*%b0,i64 8
%b2=bitcast i8*%b1 to i8**
%b3=load i8*,i8**%b2,align 8
store i8*%b3,i8**%d,align 8
%b4=getelementptr inbounds i8,i8*%b0,i64 24
%b5=bitcast i8*%b4 to i8***
%b6=load i8**,i8***%b5,align 8
%b7=load i8*,i8**%b6,align 8
%b8=bitcast i8*%b7 to i32*
%b9=load i32,i32*%b8,align 4
switch i32%b9,label%ca[
i32 1,label%ek
i32 0,label%dW
i32 2,label%cS
i32 3,label%cs
]
ca:
store i8*null,i8**%c,align 8
store i8*null,i8**%d,align 8
call void@sml_matchcomp_bug()
%cb=load i8*,i8**@_SMLZ5Match,align 8
store i8*%cb,i8**%b,align 8
%cc=call i8*@sml_alloc(i32 inreg 20)#0
%cd=getelementptr inbounds i8,i8*%cc,i64 -4
%ce=bitcast i8*%cd to i32*
store i32 1342177296,i32*%ce,align 4
store i8*%cc,i8**%c,align 8
%cf=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%cg=bitcast i8*%cc to i8**
store i8*%cf,i8**%cg,align 8
%ch=getelementptr inbounds i8,i8*%cc,i64 8
%ci=bitcast i8*%ch to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@n,i64 0,i32 2,i64 0),i8**%ci,align 8
%cj=getelementptr inbounds i8,i8*%cc,i64 16
%ck=bitcast i8*%cj to i32*
store i32 3,i32*%ck,align 4
%cl=call i8*@sml_alloc(i32 inreg 60)#0
%cm=getelementptr inbounds i8,i8*%cl,i64 -4
%cn=bitcast i8*%cm to i32*
store i32 1342177336,i32*%cn,align 4
%co=getelementptr inbounds i8,i8*%cl,i64 56
%cp=bitcast i8*%co to i32*
store i32 1,i32*%cp,align 4
%cq=load i8*,i8**%c,align 8
%cr=bitcast i8*%cl to i8**
store i8*%cq,i8**%cr,align 8
call void@sml_raise(i8*inreg%cl)#1
unreachable
cs:
store i8*null,i8**%d,align 8
%ct=getelementptr inbounds i8,i8*%b3,i64 -4
%cu=bitcast i8*%ct to i32*
%cv=load i32,i32*%cu,align 4
%cw=and i32%cv,268435455
%cx=add nsw i32%cw,-1
%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
store i8*%cy,i8**%d,align 8
%cB=getelementptr inbounds i8,i8*%cy,i64 12
%cC=bitcast i8*%cB to i32*
store i32 0,i32*%cC,align 1
%cD=load i8*,i8**%b,align 8
%cE=bitcast i8*%cy to i8**
store i8*null,i8**%b,align 8
store i8*%cD,i8**%cE,align 8
%cF=getelementptr inbounds i8,i8*%cy,i64 8
%cG=bitcast i8*%cF to i32*
store i32%cx,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=call i8*@sml_alloc(i32 inreg 20)#0
%cK=getelementptr inbounds i8,i8*%cJ,i64 -4
%cL=bitcast i8*%cK to i32*
store i32 1342177296,i32*%cL,align 4
%cM=bitcast i8*%cJ to i8**
store i8*null,i8**%cM,align 8
%cN=load i8*,i8**%d,align 8
%cO=getelementptr inbounds i8,i8*%cJ,i64 8
%cP=bitcast i8*%cO to i8**
store i8*%cN,i8**%cP,align 8
%cQ=getelementptr inbounds i8,i8*%cJ,i64 16
%cR=bitcast i8*%cQ to i32*
store i32 3,i32*%cR,align 4
br label%eA
cS:
%cT=getelementptr inbounds i8,i8*%b0,i64 16
%cU=bitcast i8*%cT to i8**
%cV=load i8*,i8**%cU,align 8
%cW=getelementptr inbounds i8,i8*%cV,i64 24
%cX=bitcast i8*%cW to i8**
%cY=load i8*,i8**%cX,align 8
store i8*%cY,i8**%e,align 8
%cZ=call i8*@sml_alloc(i32 inreg 28)#0
%c0=getelementptr inbounds i8,i8*%cZ,i64 -4
%c1=bitcast i8*%c0 to i32*
store i32 1342177304,i32*%c1,align 4
%c2=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%c3=bitcast i8*%cZ to i8**
store i8*%c2,i8**%c3,align 8
%c4=getelementptr inbounds i8,i8*%cZ,i64 8
%c5=bitcast i8*%c4 to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[7x i8]}>,<{[4x i8],i32,[7x i8]}>*@m,i64 0,i32 2,i64 0),i8**%c5,align 8
%c6=load i8*,i8**%b,align 8
%c7=getelementptr inbounds i8,i8*%cZ,i64 16
%c8=bitcast i8*%c7 to i8**
store i8*%c6,i8**%c8,align 8
%c9=getelementptr inbounds i8,i8*%cZ,i64 24
%da=bitcast i8*%c9 to i32*
store i32 7,i32*%da,align 4
%db=call fastcc i8*@_SMLLLN6TextIO8StreamIO12extendStreamE_334(i8*inreg%cZ)
%dc=bitcast i8*%db to i32*
%dd=load i32,i32*%dc,align 4
%de=icmp eq i32%dd,1
br i1%de,label%dG,label%df
df:
%dg=bitcast i8**%d to i32**
%dh=load i32*,i32**%dg,align 8
store i8*null,i8**%d,align 8
%di=getelementptr inbounds i32,i32*%dh,i64 -1
%dj=load i32,i32*%di,align 4
%dk=and i32%dj,268435455
%dl=add nsw i32%dk,-1
%dm=call i8*@sml_alloc(i32 inreg 20)#0
%dn=getelementptr inbounds i8,i8*%dm,i64 -4
%do=bitcast i8*%dn to i32*
store i32 1342177296,i32*%do,align 4
store i8*%dm,i8**%d,align 8
%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**%b,align 8
%ds=bitcast i8*%dm to i8**
store i8*null,i8**%b,align 8
store i8*%dr,i8**%ds,align 8
%dt=getelementptr inbounds i8,i8*%dm,i64 8
%du=bitcast i8*%dt to i32*
store i32%dl,i32*%du,align 4
%dv=getelementptr inbounds i8,i8*%dm,i64 16
%dw=bitcast i8*%dv to i32*
store i32 1,i32*%dw,align 4
%dx=call i8*@sml_alloc(i32 inreg 20)#0
%dy=getelementptr inbounds i8,i8*%dx,i64 -4
%dz=bitcast i8*%dy to i32*
store i32 1342177296,i32*%dz,align 4
%dA=bitcast i8*%dx to i8**
store i8*null,i8**%dA,align 8
%dB=load i8*,i8**%d,align 8
%dC=getelementptr inbounds i8,i8*%dx,i64 8
%dD=bitcast i8*%dC to i8**
store i8*%dB,i8**%dD,align 8
%dE=getelementptr inbounds i8,i8*%dx,i64 16
%dF=bitcast i8*%dE to i32*
store i32 3,i32*%dF,align 4
br label%eA
dG:
store i8*null,i8**%d,align 8
%dH=getelementptr inbounds i8,i8*%db,i64 8
%dI=bitcast i8*%dH to i8**
%dJ=load i8*,i8**%dI,align 8
store i8*%dJ,i8**%b,align 8
%dK=call i8*@sml_alloc(i32 inreg 20)#0
%dL=getelementptr inbounds i8,i8*%dK,i64 -4
%dM=bitcast i8*%dL to i32*
store i32 1342177296,i32*%dM,align 4
%dN=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%dO=bitcast i8*%dK to i8**
store i8*%dN,i8**%dO,align 8
%dP=getelementptr inbounds i8,i8*%dK,i64 8
%dQ=bitcast i8*%dP to i32*
store i32 0,i32*%dQ,align 4
%dR=getelementptr inbounds i8,i8*%dK,i64 12
%dS=bitcast i8*%dR to i32*
store i32%bZ,i32*%dS,align 4
%dT=getelementptr inbounds i8,i8*%dK,i64 16
%dU=bitcast i8*%dT to i32*
store i32 1,i32*%dU,align 4
%dV=call fastcc i8*@_SMLLL9inputList_352(i8*inreg%dK)
br label%eA
dW:
store i8*null,i8**%d,align 8
%dX=getelementptr inbounds i8,i8*%b7,i64 8
%dY=bitcast i8*%dX to i8**
%dZ=load i8*,i8**%dY,align 8
store i8*%dZ,i8**%b,align 8
%d0=call i8*@sml_alloc(i32 inreg 20)#0
%d1=getelementptr inbounds i8,i8*%d0,i64 -4
%d2=bitcast i8*%d1 to i32*
store i32 1342177296,i32*%d2,align 4
store i8*%d0,i8**%d,align 8
%d3=getelementptr inbounds i8,i8*%d0,i64 12
%d4=bitcast i8*%d3 to i32*
store i32 0,i32*%d4,align 1
%d5=load i8*,i8**%b,align 8
%d6=bitcast i8*%d0 to i8**
store i8*null,i8**%b,align 8
store i8*%d5,i8**%d6,align 8
%d7=getelementptr inbounds i8,i8*%d0,i64 8
%d8=bitcast i8*%d7 to i32*
store i32 0,i32*%d8,align 4
%d9=getelementptr inbounds i8,i8*%d0,i64 16
%ea=bitcast i8*%d9 to i32*
store i32 1,i32*%ea,align 4
%eb=call i8*@sml_alloc(i32 inreg 20)#0
%ec=getelementptr inbounds i8,i8*%eb,i64 -4
%ed=bitcast i8*%ec to i32*
store i32 1342177296,i32*%ed,align 4
%ee=bitcast i8*%eb to i8**
store i8*null,i8**%ee,align 8
%ef=load i8*,i8**%d,align 8
%eg=getelementptr inbounds i8,i8*%eb,i64 8
%eh=bitcast i8*%eg to i8**
store i8*%ef,i8**%eh,align 8
%ei=getelementptr inbounds i8,i8*%eb,i64 16
%ej=bitcast i8*%ei to i32*
store i32 3,i32*%ej,align 4
br label%eA
ek:
store i8*null,i8**%d,align 8
%el=getelementptr inbounds i8,i8*%b7,i64 8
%em=bitcast i8*%el to i8**
%en=load i8*,i8**%em,align 8
store i8*%en,i8**%b,align 8
%eo=call i8*@sml_alloc(i32 inreg 20)#0
%ep=getelementptr inbounds i8,i8*%eo,i64 -4
%eq=bitcast i8*%ep to i32*
store i32 1342177296,i32*%eq,align 4
%er=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%es=bitcast i8*%eo to i8**
store i8*%er,i8**%es,align 8
%et=getelementptr inbounds i8,i8*%eo,i64 8
%eu=bitcast i8*%et to i32*
store i32 0,i32*%eu,align 4
%ev=getelementptr inbounds i8,i8*%eo,i64 12
%ew=bitcast i8*%ev to i32*
store i32%bZ,i32*%ew,align 4
%ex=getelementptr inbounds i8,i8*%eo,i64 16
%ey=bitcast i8*%ex to i32*
store i32 1,i32*%ey,align 4
%ez=call fastcc i8*@_SMLLL9inputList_352(i8*inreg%eo)
br label%eA
eA:
%eB=phi i8*[%cJ,%cs],[%eb,%dW],[%ez,%ek],[%dx,%df],[%dV,%dG]
%eC=bitcast i8*%eB to i8**
%eD=load i8*,i8**%eC,align 8
store i8*%eD,i8**%b,align 8
%eE=getelementptr inbounds i8,i8*%eB,i64 8
%eF=bitcast i8*%eE to i8**
%eG=load i8*,i8**%eF,align 8
store i8*%eG,i8**%d,align 8
%eH=call i8*@sml_alloc(i32 inreg 20)#0
%eI=getelementptr inbounds i8,i8*%eH,i64 -4
%eJ=bitcast i8*%eI to i32*
store i32 1342177296,i32*%eJ,align 4
store i8*%eH,i8**%e,align 8
%eK=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%eL=bitcast i8*%eH to i8**
store i8*%eK,i8**%eL,align 8
%eM=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%eN=getelementptr inbounds i8,i8*%eH,i64 8
%eO=bitcast i8*%eN to i8**
store i8*%eM,i8**%eO,align 8
%eP=getelementptr inbounds i8,i8*%eH,i64 16
%eQ=bitcast i8*%eP to i32*
store i32 3,i32*%eQ,align 4
%eR=call i8*@sml_alloc(i32 inreg 20)#0
%eS=getelementptr inbounds i8,i8*%eR,i64 -4
%eT=bitcast i8*%eS to i32*
store i32 1342177296,i32*%eT,align 4
%eU=load i8*,i8**%e,align 8
%eV=bitcast i8*%eR to i8**
store i8*%eU,i8**%eV,align 8
%eW=load i8*,i8**%d,align 8
%eX=getelementptr inbounds i8,i8*%eR,i64 8
%eY=bitcast i8*%eX to i8**
store i8*%eW,i8**%eY,align 8
%eZ=getelementptr inbounds i8,i8*%eR,i64 16
%e0=bitcast i8*%eZ to i32*
store i32 3,i32*%e0,align 4
ret i8*%eR
}
define fastcc i8*@_SMLFN6TextIO8StreamIO6inputNE(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_352(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*@_SMLFN10CharVector6concatE(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_367(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_370(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,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@r,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=sdiv i32%J,%M
%O=bitcast i8*%j to i8**
%P=load i8*,i8**%O,align 8
%Q=getelementptr inbounds i8,i8*%P,i64 16
%R=bitcast i8*%Q to i8*(i8*,i8*)**
%S=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%R,align 8
%T=bitcast i8*%P to i8**
%U=load i8*,i8**%T,align 8
store i8*%U,i8**%d,align 8
%V=call{i32,i1}@llvm.smul.with.overflow.i32(i32%N,i32%M)#0
%W=extractvalue{i32,i1}%V,1
br i1%W,label%X,label%ap
X:
store i8*null,i8**%d,align 8
%Y=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%Y,i8**%c,align 8
%Z=call i8*@sml_alloc(i32 inreg 20)#0
%aa=getelementptr inbounds i8,i8*%Z,i64 -4
%ab=bitcast i8*%aa to i32*
store i32 1342177296,i32*%ab,align 4
store i8*%Z,i8**%d,align 8
%ac=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ad=bitcast i8*%Z to i8**
store i8*%ac,i8**%ad,align 8
%ae=getelementptr inbounds i8,i8*%Z,i64 8
%af=bitcast i8*%ae to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@s,i64 0,i32 2,i64 0),i8**%af,align 8
%ag=getelementptr inbounds i8,i8*%Z,i64 16
%ah=bitcast i8*%ag to i32*
store i32 3,i32*%ah,align 4
%ai=call i8*@sml_alloc(i32 inreg 60)#0
%aj=getelementptr inbounds i8,i8*%ai,i64 -4
%ak=bitcast i8*%aj to i32*
store i32 1342177336,i32*%ak,align 4
%al=getelementptr inbounds i8,i8*%ai,i64 56
%am=bitcast i8*%al to i32*
store i32 1,i32*%am,align 4
%an=load i8*,i8**%d,align 8
%ao=bitcast i8*%ai to i8**
store i8*%an,i8**%ao,align 8
call void@sml_raise(i8*inreg%ai)#1
unreachable
ap:
store i8*null,i8**%c,align 8
%aq=mul nsw i32%N,%M
%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 4,i32*%au,align 4
store i32%aq,i32*%as,align 4
%av=load i8*,i8**%d,align 8
%aw=tail call fastcc i8*%S(i8*inreg%av,i8*inreg%ar)
ret i8*%aw
}
define internal fastcc i8*@_SMLLL8bigChunk_371(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,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@q,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_367 to void(...)*),%aE],[bitcast(i8*(i8*,i32)*@_SMLLL8bigChunk_370 to void(...)*),%ap]
%aS=phi void(...)*[bitcast(i8*(i8*,i8*)*@_SMLLL8bigChunk_708 to void(...)*),%aE],[bitcast(i8*(i8*,i8*)*@_SMLLL8bigChunk_709 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*@_SMLLL8bigInput_373(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
k:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%d,align 8
store i8*%b,i8**%c,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%i,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%c,align 8
br label%i
i:
%j=phi i8*[%h,%g],[%b,%k]
%l=getelementptr inbounds i8,i8*%j,i64 24
%m=bitcast i8*%l to i8***
%n=load i8**,i8***%m,align 8
%o=load i8*,i8**%n,align 8
%p=bitcast i8*%o to i32*
%q=load i32,i32*%p,align 4
switch i32%q,label%r[
i32 2,label%C
i32 3,label%s
]
r:
ret i8*%o
s:
store i8*null,i8**%d,align 8
%t=call i8*@sml_alloc(i32 inreg 20)#0
%u=getelementptr inbounds i8,i8*%t,i64 -4
%v=bitcast i8*%u to i32*
store i32 1342177296,i32*%v,align 4
%w=bitcast i8*%t to i64*
store i64 0,i64*%w,align 4
%x=load i8*,i8**%c,align 8
%y=getelementptr inbounds i8,i8*%t,i64 8
%z=bitcast i8*%y to i8**
store i8*%x,i8**%z,align 8
%A=getelementptr inbounds i8,i8*%t,i64 16
%B=bitcast i8*%A to i32*
store i32 2,i32*%B,align 4
ret i8*%t
C:
%D=bitcast i8**%d to i8***
%E=load i8**,i8***%D,align 8
%F=load i8*,i8**%E,align 8
store i8*%F,i8**%d,align 8
%G=call i8*@sml_alloc(i32 inreg 28)#0
%H=getelementptr inbounds i8,i8*%G,i64 -4
%I=bitcast i8*%H to i32*
store i32 1342177304,i32*%I,align 4
%J=load i8*,i8**%d,align 8
%K=bitcast i8*%G to i8**
store i8*%J,i8**%K,align 8
%L=getelementptr inbounds i8,i8*%G,i64 8
%M=bitcast i8*%L to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[9x i8]}>,<{[4x i8],i32,[9x i8]}>*@t,i64 0,i32 2,i64 0),i8**%M,align 8
%N=load i8*,i8**%c,align 8
%O=getelementptr inbounds i8,i8*%G,i64 16
%P=bitcast i8*%O to i8**
store i8*%N,i8**%P,align 8
%Q=getelementptr inbounds i8,i8*%G,i64 24
%R=bitcast i8*%Q to i32*
store i32 7,i32*%R,align 4
%S=tail call fastcc i8*@_SMLLLN6TextIO8StreamIO12extendStreamE_334(i8*inreg%G)
ret i8*%S
}
define internal fastcc i8*@_SMLLL4loop_374(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=getelementptr inbounds i8,i8*%o,i64 -4
%t=bitcast i8*%s to i32*
%u=load i32,i32*%t,align 4
%v=and i32%u,268435455
%w=icmp eq i32%v,1
br i1%w,label%x,label%H
x:
store i8*null,i8**%c,align 8
store i8*null,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
%B=bitcast i8*%y to i8**
store i8*null,i8**%B,align 8
%C=load i8*,i8**%d,align 8
%D=getelementptr inbounds i8,i8*%y,i64 8
%E=bitcast i8*%D to i8**
store i8*%C,i8**%E,align 8
%F=getelementptr inbounds i8,i8*%y,i64 16
%G=bitcast i8*%F to i32*
store i32 3,i32*%G,align 4
ret i8*%y
H:
%I=bitcast i8**%e to i8***
%J=load i8**,i8***%I,align 8
%K=load i8*,i8**%J,align 8
%L=getelementptr inbounds i8,i8*%K,i64 16
%M=bitcast i8*%L to i8*(i8*,i8*)**
%N=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%M,align 8
%O=bitcast i8*%K to i8**
%P=load i8*,i8**%O,align 8
store i8*null,i8**%d,align 8
%Q=call fastcc i8*%N(i8*inreg%P,i8*inreg%r)
%R=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%S=call fastcc i8*@_SMLLL4loop_374(i8*inreg%R,i8*inreg%Q)
%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*%S,i64 8
%W=bitcast i8*%V to i8**
%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
%aa=bitcast i8*%Z to i32*
store i32 1342177296,i32*%aa,align 4
store i8*%Y,i8**%f,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=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%ae=getelementptr inbounds i8,i8*%Y,i64 8
%af=bitcast i8*%ae to i8**
store i8*%ad,i8**%af,align 8
%ag=getelementptr inbounds i8,i8*%Y,i64 16
%ah=bitcast i8*%ag to i32*
store i32 3,i32*%ah,align 4
%ai=call i8*@sml_alloc(i32 inreg 20)#0
%aj=getelementptr inbounds i8,i8*%ai,i64 -4
%ak=bitcast i8*%aj to i32*
store i32 1342177296,i32*%ak,align 4
%al=load i8*,i8**%f,align 8
%am=bitcast i8*%ai to i8**
store i8*%al,i8**%am,align 8
%an=load i8*,i8**%e,align 8
%ao=getelementptr inbounds i8,i8*%ai,i64 8
%ap=bitcast i8*%ao to i8**
store i8*%an,i8**%ap,align 8
%aq=getelementptr inbounds i8,i8*%ai,i64 16
%ar=bitcast i8*%aq to i32*
store i32 3,i32*%ar,align 4
ret i8*%ai
}
define fastcc i8*@_SMLFN6TextIO8StreamIO8inputAllE(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=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
store i8*%o,i8**%c,align 8
%p=getelementptr inbounds i8,i8*%o,i64 16
%q=bitcast i8*%p to i8**
%r=load i8*,i8**%q,align 8
%s=getelementptr inbounds i8,i8*%r,i64 40
%t=bitcast i8*%s to i8***
%u=load i8**,i8***%t,align 8
%v=load i8*,i8**%u,align 8
store i8*%v,i8**%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**%e,align 8
%z=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%A=bitcast i8*%w to i8**
store i8*%z,i8**%A,align 8
%B=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%C=getelementptr inbounds i8,i8*%w,i64 8
%D=bitcast i8*%C to i8**
store i8*%B,i8**%D,align 8
%E=getelementptr inbounds i8,i8*%w,i64 16
%F=bitcast i8*%E to i32*
store i32 3,i32*%F,align 4
%G=call i8*@sml_alloc(i32 inreg 28)#0
%H=getelementptr inbounds i8,i8*%G,i64 -4
%I=bitcast i8*%H to i32*
store i32 1342177304,i32*%I,align 4
store i8*%G,i8**%c,align 8
%J=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%K=bitcast i8*%G to i8**
store i8*%J,i8**%K,align 8
%L=getelementptr inbounds i8,i8*%G,i64 8
%M=bitcast i8*%L to void(...)**
store void(...)*bitcast(i8*(i8*,i32)*@_SMLLL8bigChunk_371 to void(...)*),void(...)**%M,align 8
%N=getelementptr inbounds i8,i8*%G,i64 16
%O=bitcast i8*%N to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLL8bigChunk_710 to void(...)*),void(...)**%O,align 8
%P=getelementptr inbounds i8,i8*%G,i64 24
%Q=bitcast i8*%P to i32*
store i32 -2147483647,i32*%Q,align 4
%R=call i8*@sml_alloc(i32 inreg 12)#0
%S=getelementptr inbounds i8,i8*%R,i64 -4
%T=bitcast i8*%S to i32*
store i32 1342177288,i32*%T,align 4
store i8*%R,i8**%d,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=getelementptr inbounds i8,i8*%R,i64 8
%X=bitcast i8*%W to i32*
store i32 1,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
%ab=load i8*,i8**%d,align 8
store i8*null,i8**%d,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 void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLL8bigInput_373 to void(...)*),void(...)**%ae,align 8
%af=getelementptr inbounds i8,i8*%Y,i64 16
%ag=bitcast i8*%af to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLL8bigInput_373 to void(...)*),void(...)**%ag,align 8
%ah=getelementptr inbounds i8,i8*%Y,i64 24
%ai=bitcast i8*%ah to i32*
store i32 -2147483647,i32*%ai,align 4
%aj=call fastcc i8*@_SMLLLN6TextIO8StreamIO16generalizedInputE_340(i8*inreg%Y)
store i8*%aj,i8**%c,align 8
%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
store i8*%ak,i8**%d,align 8
%an=load i8*,i8**%c,align 8
%ao=bitcast i8*%ak to i8**
store i8*%an,i8**%ao,align 8
%ap=getelementptr inbounds i8,i8*%ak,i64 8
%aq=bitcast i8*%ap to i32*
store i32 1,i32*%aq,align 4
%ar=call i8*@sml_alloc(i32 inreg 28)#0
%as=getelementptr inbounds i8,i8*%ar,i64 -4
%at=bitcast i8*%as to i32*
store i32 1342177304,i32*%at,align 4
%au=load i8*,i8**%d,align 8
%av=bitcast i8*%ar to i8**
store i8*%au,i8**%av,align 8
%aw=getelementptr inbounds i8,i8*%ar,i64 8
%ax=bitcast i8*%aw to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLL4loop_374 to void(...)*),void(...)**%ax,align 8
%ay=getelementptr inbounds i8,i8*%ar,i64 16
%az=bitcast i8*%ay to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLL4loop_374 to void(...)*),void(...)**%az,align 8
%aA=getelementptr inbounds i8,i8*%ar,i64 24
%aB=bitcast i8*%aA to i32*
store i32 -2147483647,i32*%aB,align 4
%aC=load i8*,i8**%c,align 8
%aD=getelementptr inbounds i8,i8*%aC,i64 16
%aE=bitcast i8*%aD to i8*(i8*,i8*)**
%aF=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aE,align 8
store i8*null,i8**%c,align 8
%aG=bitcast i8*%aC to i8**
%aH=load i8*,i8**%aG,align 8
%aI=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aJ=call fastcc i8*%aF(i8*inreg%aH,i8*inreg%aI)
%aK=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aL=call fastcc i8*@_SMLLL4loop_374(i8*inreg%aK,i8*inreg%aJ)
%aM=bitcast i8*%aL to i8**
%aN=load i8*,i8**%aM,align 8
%aO=getelementptr inbounds i8,i8*%aL,i64 8
%aP=bitcast i8*%aO to i8**
%aQ=load i8*,i8**%aP,align 8
store i8*%aQ,i8**%b,align 8
%aR=call fastcc i8*@_SMLFN10CharVector6concatE(i8*inreg%aN)
store i8*%aR,i8**%c,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
}
define internal fastcc i8*@_SMLLL8tryInput_380(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"personality i32(...)*@sml_personality{
h:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%d,align 8
br label%f
f:
%g=phi i8*[%ex,%et],[%b,%h]
store i8*%g,i8**%c,align 8
%i=load atomic i32,i32*@sml_check_flag unordered,align 4
%j=icmp eq i32%i,0
br i1%j,label%m,label%k
k:
call void@sml_check(i32 inreg%i)
%l=load i8*,i8**%c,align 8
br label%m
m:
%n=phi i8*[%l,%k],[%g,%f]
%o=bitcast i8*%n to i8**
%p=load i8*,i8**%o,align 8
%q=getelementptr inbounds i8,i8*%p,i64 8
%r=bitcast i8*%q to i32**
%s=load i32*,i32**%r,align 8
%t=getelementptr inbounds i8,i8*%n,i64 8
%u=bitcast i8*%t to i32*
%v=load i32,i32*%u,align 4
store i8*null,i8**%c,align 8
%w=getelementptr inbounds i8,i8*%n,i64 12
%x=bitcast i8*%w to i32*
%y=load i32,i32*%x,align 4
%z=getelementptr inbounds i32,i32*%s,i64 -1
%A=load i32,i32*%z,align 4
%B=and i32%A,268435455
%C=add nsw i32%B,-1
%D=call{i32,i1}@llvm.ssub.with.overflow.i32(i32%C,i32%v)#0
%E=extractvalue{i32,i1}%D,1
br i1%E,label%F,label%X
F:
store i8*null,i8**%d,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,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@w,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,%v
%Z=icmp sgt i32%y,%Y
br i1%Z,label%aj,label%aa
aa:
store i8*null,i8**%d,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%y,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%y,i32%Y)#0
%al=extractvalue{i32,i1}%ak,1
br i1%al,label%am,label%aE
am:
store i8*null,i8**%d,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,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@x,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%y,%Y
%aG=getelementptr inbounds i8,i8*%p,i64 24
%aH=bitcast i8*%aG to i8***
%aI=load i8**,i8***%aH,align 8
%aJ=load i8*,i8**%aI,align 8
%aK=bitcast i8*%aJ to i32*
%aL=load i32,i32*%aK,align 4
switch i32%aL,label%aM[
i32 1,label%et
i32 0,label%dU
i32 2,label%bD
i32 3,label%a4
]
aM:
store i8*null,i8**%d,align 8
call void@sml_matchcomp_bug()
%aN=load i8*,i8**@_SMLZ5Match,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,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@D,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
%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**%d,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:
%a5=load i8*,i8**%d,align 8
%a6=getelementptr inbounds i8,i8*%a5,i64 16
%a7=bitcast i8*%a6 to i32*
%a8=load i32,i32*%a7,align 4
%a9=call{i32,i1}@llvm.ssub.with.overflow.i32(i32%a8,i32%aF)#0
%ba=extractvalue{i32,i1}%a9,1
store i8*null,i8**%d,align 8
br i1%ba,label%bb,label%bt
bb:
%bc=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%bc,i8**%c,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**%d,align 8
%bg=load i8*,i8**%c,align 8
store i8*null,i8**%c,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]}>*@C,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=call i8*@sml_alloc(i32 inreg 60)#0
%bn=getelementptr inbounds i8,i8*%bm,i64 -4
%bo=bitcast i8*%bn to i32*
store i32 1342177336,i32*%bo,align 4
%bp=getelementptr inbounds i8,i8*%bm,i64 56
%bq=bitcast i8*%bp to i32*
store i32 1,i32*%bq,align 4
%br=load i8*,i8**%d,align 8
%bs=bitcast i8*%bm to i8**
store i8*%br,i8**%bs,align 8
call void@sml_raise(i8*inreg%bm)#1
unreachable
bt:
%bu=sub nsw i32%a8,%aF
%bv=call i8*@sml_alloc(i32 inreg 12)#0
%bw=bitcast i8*%bv to i32*
%bx=getelementptr inbounds i8,i8*%bv,i64 -4
%by=bitcast i8*%bx to i32*
store i32 1342177288,i32*%by,align 4
%bz=getelementptr inbounds i8,i8*%bv,i64 4
%bA=bitcast i8*%bz to i32*
store i32 0,i32*%bA,align 1
store i32%bu,i32*%bw,align 4
%bB=getelementptr inbounds i8,i8*%bv,i64 8
%bC=bitcast i8*%bB to i32*
store i32 0,i32*%bC,align 4
ret i8*%bv
bD:
%bE=load i8*,i8**%d,align 8
%bF=getelementptr inbounds i8,i8*%bE,i64 8
%bG=bitcast i8*%bF to i8**
%bH=load i8*,i8**%bG,align 8
store i8*%bH,i8**%c,align 8
%bI=bitcast i8*%bE to i8**
%bJ=load i8*,i8**%bI,align 8
store i8*%bJ,i8**%e,align 8
%bK=call i8*@sml_alloc(i32 inreg 28)#0
%bL=getelementptr inbounds i8,i8*%bK,i64 -4
%bM=bitcast i8*%bL to i32*
store i32 1342177304,i32*%bM,align 4
%bN=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bO=bitcast i8*%bK to i8**
store i8*%bN,i8**%bO,align 8
%bP=getelementptr inbounds i8,i8*%bK,i64 8
%bQ=bitcast i8*%bP to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[9x i8]}>,<{[4x i8],i32,[9x i8]}>*@z,i64 0,i32 2,i64 0),i8**%bQ,align 8
%bR=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%bS=getelementptr inbounds i8,i8*%bK,i64 16
%bT=bitcast i8*%bS to i8**
store i8*%bR,i8**%bT,align 8
%bU=getelementptr inbounds i8,i8*%bK,i64 24
%bV=bitcast i8*%bU to i32*
store i32 7,i32*%bV,align 4
%bW=invoke fastcc i8*@_SMLLLN6TextIO8StreamIO12extendStreamE_334(i8*inreg%bK)
to label%bX unwind label%cK
bX:
%bY=bitcast i8*%bW to i32*
%bZ=load i32,i32*%bY,align 4
%b0=icmp eq i32%bZ,1
br i1%b0,label%ct,label%b1
b1:
%b2=load i8*,i8**%d,align 8
%b3=getelementptr inbounds i8,i8*%b2,i64 16
%b4=bitcast i8*%b3 to i32*
%b5=load i32,i32*%b4,align 4
%b6=call{i32,i1}@llvm.ssub.with.overflow.i32(i32%b5,i32%aF)#0
%b7=extractvalue{i32,i1}%b6,1
br i1%b7,label%b8,label%cj
b8:
%b9=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%b9,i8**%c,align 8
%ca=call i8*@sml_alloc(i32 inreg 20)#0
%cb=getelementptr inbounds i8,i8*%ca,i64 -4
%cc=bitcast i8*%cb to i32*
store i32 1342177296,i32*%cc,align 4
%cd=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ce=bitcast i8*%ca to i8**
store i8*%cd,i8**%ce,align 8
%cf=getelementptr inbounds i8,i8*%ca,i64 8
%cg=bitcast i8*%cf to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@A,i64 0,i32 2,i64 0),i8**%cg,align 8
%ch=getelementptr inbounds i8,i8*%ca,i64 16
%ci=bitcast i8*%ch to i32*
store i32 3,i32*%ci,align 4
br label%cQ
cj:
store i8*null,i8**%d,align 8
%ck=sub nsw i32%b5,%aF
%cl=call i8*@sml_alloc(i32 inreg 12)#0
%cm=bitcast i8*%cl to i32*
%cn=getelementptr inbounds i8,i8*%cl,i64 -4
%co=bitcast i8*%cn to i32*
store i32 1342177288,i32*%co,align 4
%cp=getelementptr inbounds i8,i8*%cl,i64 4
%cq=bitcast i8*%cp to i32*
store i32 0,i32*%cq,align 1
store i32%ck,i32*%cm,align 4
%cr=getelementptr inbounds i8,i8*%cl,i64 8
%cs=bitcast i8*%cr to i32*
store i32 0,i32*%cs,align 4
br label%dS
ct:
%cu=getelementptr inbounds i8,i8*%bW,i64 8
%cv=bitcast i8*%cu to i8**
%cw=load i8*,i8**%cv,align 8
store i8*%cw,i8**%c,align 8
%cx=call i8*@sml_alloc(i32 inreg 20)#0
%cy=getelementptr inbounds i8,i8*%cx,i64 -4
%cz=bitcast i8*%cy to i32*
store i32 1342177296,i32*%cz,align 4
%cA=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%cB=bitcast i8*%cx to i8**
store i8*%cA,i8**%cB,align 8
%cC=getelementptr inbounds i8,i8*%cx,i64 8
%cD=bitcast i8*%cC to i32*
store i32 0,i32*%cD,align 4
%cE=getelementptr inbounds i8,i8*%cx,i64 12
%cF=bitcast i8*%cE to i32*
store i32%aF,i32*%cF,align 4
%cG=getelementptr inbounds i8,i8*%cx,i64 16
%cH=bitcast i8*%cG to i32*
store i32 1,i32*%cH,align 4
%cI=load i8*,i8**%d,align 8
%cJ=invoke fastcc i8*@_SMLLL8tryInput_380(i8*inreg%cI,i8*inreg%cx)
to label%dS unwind label%cK
cK:
%cL=landingpad{i8*,i8*}
catch i8*null
%cM=extractvalue{i8*,i8*}%cL,1
%cN=bitcast i8*%cM to i8**
%cO=load i8*,i8**%cN,align 8
%cP=bitcast i8*%cO to i8**
br label%cQ
cQ:
%cR=phi i8**[%cP,%cK],[%ce,%b8]
%cS=phi i8*[%cO,%cK],[%ca,%b8]
store i8*%cS,i8**%c,align 8
%cT=load i8*,i8**%cR,align 8
%cU=load i8*,i8**@_SMLZN2IO2IoE,align 8
%cV=icmp eq i8*%cT,%cU
br i1%cV,label%cW,label%dK
cW:
%cX=getelementptr inbounds i8,i8*%cS,i64 16
%cY=bitcast i8*%cX to i8****
%cZ=load i8***,i8****%cY,align 8
%c0=load i8**,i8***%cZ,align 8
%c1=load i8*,i8**%c0,align 8
%c2=icmp eq i8*%c1,bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*}>,<{[4x i8],i32,i8*}>*@_SMLDL331,i64 0,i32 2)to i8*)
br i1%c2,label%c3,label%dC
c3:
store i8*null,i8**%c,align 8
%c4=load i8*,i8**%d,align 8
%c5=getelementptr inbounds i8,i8*%c4,i64 16
%c6=bitcast i8*%c5 to i32*
%c7=load i32,i32*%c6,align 4
%c8=call{i32,i1}@llvm.ssub.with.overflow.i32(i32%c7,i32%aF)#0
%c9=extractvalue{i32,i1}%c8,1
store i8*null,i8**%d,align 8
br i1%c9,label%da,label%ds
da:
%db=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%db,i8**%c,align 8
%dc=call i8*@sml_alloc(i32 inreg 20)#0
%dd=getelementptr inbounds i8,i8*%dc,i64 -4
%de=bitcast i8*%dd to i32*
store i32 1342177296,i32*%de,align 4
store i8*%dc,i8**%d,align 8
%df=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%dg=bitcast i8*%dc to i8**
store i8*%df,i8**%dg,align 8
%dh=getelementptr inbounds i8,i8*%dc,i64 8
%di=bitcast i8*%dh to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@B,i64 0,i32 2,i64 0),i8**%di,align 8
%dj=getelementptr inbounds i8,i8*%dc,i64 16
%dk=bitcast i8*%dj to i32*
store i32 3,i32*%dk,align 4
%dl=call i8*@sml_alloc(i32 inreg 60)#0
%dm=getelementptr inbounds i8,i8*%dl,i64 -4
%dn=bitcast i8*%dm to i32*
store i32 1342177336,i32*%dn,align 4
%do=getelementptr inbounds i8,i8*%dl,i64 56
%dp=bitcast i8*%do to i32*
store i32 1,i32*%dp,align 4
%dq=load i8*,i8**%d,align 8
%dr=bitcast i8*%dl to i8**
store i8*%dq,i8**%dr,align 8
call void@sml_raise(i8*inreg%dl)#1
unreachable
ds:
%dt=sub nsw i32%c7,%aF
%du=call i8*@sml_alloc(i32 inreg 12)#0
%dv=bitcast i8*%du to i32*
%dw=getelementptr inbounds i8,i8*%du,i64 -4
%dx=bitcast i8*%dw to i32*
store i32 1342177288,i32*%dx,align 4
%dy=getelementptr inbounds i8,i8*%du,i64 4
%dz=bitcast i8*%dy to i32*
store i32 0,i32*%dz,align 1
store i32%dt,i32*%dv,align 4
%dA=getelementptr inbounds i8,i8*%du,i64 8
%dB=bitcast i8*%dA to i32*
store i32 0,i32*%dB,align 4
ret i8*%du
dC:
store i8*null,i8**%d,align 8
%dD=call i8*@sml_alloc(i32 inreg 60)#0
%dE=getelementptr inbounds i8,i8*%dD,i64 -4
%dF=bitcast i8*%dE to i32*
store i32 1342177336,i32*%dF,align 4
%dG=getelementptr inbounds i8,i8*%dD,i64 56
%dH=bitcast i8*%dG to i32*
store i32 1,i32*%dH,align 4
%dI=load i8*,i8**%c,align 8
%dJ=bitcast i8*%dD to i8**
store i8*%dI,i8**%dJ,align 8
call void@sml_raise(i8*inreg%dD)#1
unreachable
dK:
store i8*null,i8**%d,align 8
%dL=call i8*@sml_alloc(i32 inreg 60)#0
%dM=getelementptr inbounds i8,i8*%dL,i64 -4
%dN=bitcast i8*%dM to i32*
store i32 1342177336,i32*%dN,align 4
%dO=getelementptr inbounds i8,i8*%dL,i64 56
%dP=bitcast i8*%dO to i32*
store i32 1,i32*%dP,align 4
%dQ=load i8*,i8**%c,align 8
%dR=bitcast i8*%dL to i8**
store i8*%dQ,i8**%dR,align 8
call void@sml_raise(i8*inreg%dL)#1
unreachable
dS:
%dT=phi i8*[%cl,%cj],[%cJ,%ct]
ret i8*%dT
dU:
%dV=load i8*,i8**%d,align 8
%dW=getelementptr inbounds i8,i8*%dV,i64 16
%dX=bitcast i8*%dW to i32*
%dY=load i32,i32*%dX,align 4
%dZ=call{i32,i1}@llvm.ssub.with.overflow.i32(i32%dY,i32%aF)#0
%d0=extractvalue{i32,i1}%dZ,1
store i8*null,i8**%d,align 8
br i1%d0,label%d1,label%ej
d1:
%d2=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%d2,i8**%c,align 8
%d3=call i8*@sml_alloc(i32 inreg 20)#0
%d4=getelementptr inbounds i8,i8*%d3,i64 -4
%d5=bitcast i8*%d4 to i32*
store i32 1342177296,i32*%d5,align 4
store i8*%d3,i8**%d,align 8
%d6=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%d7=bitcast i8*%d3 to i8**
store i8*%d6,i8**%d7,align 8
%d8=getelementptr inbounds i8,i8*%d3,i64 8
%d9=bitcast i8*%d8 to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@y,i64 0,i32 2,i64 0),i8**%d9,align 8
%ea=getelementptr inbounds i8,i8*%d3,i64 16
%eb=bitcast i8*%ea to i32*
store i32 3,i32*%eb,align 4
%ec=call i8*@sml_alloc(i32 inreg 60)#0
%ed=getelementptr inbounds i8,i8*%ec,i64 -4
%ee=bitcast i8*%ed to i32*
store i32 1342177336,i32*%ee,align 4
%ef=getelementptr inbounds i8,i8*%ec,i64 56
%eg=bitcast i8*%ef to i32*
store i32 1,i32*%eg,align 4
%eh=load i8*,i8**%d,align 8
%ei=bitcast i8*%ec to i8**
store i8*%eh,i8**%ei,align 8
call void@sml_raise(i8*inreg%ec)#1
unreachable
ej:
%ek=sub nsw i32%dY,%aF
%el=call i8*@sml_alloc(i32 inreg 12)#0
%em=bitcast i8*%el to i32*
%en=getelementptr inbounds i8,i8*%el,i64 -4
%eo=bitcast i8*%en to i32*
store i32 1342177288,i32*%eo,align 4
%ep=getelementptr inbounds i8,i8*%el,i64 4
%eq=bitcast i8*%ep to i32*
store i32 0,i32*%eq,align 1
store i32%ek,i32*%em,align 4
%er=getelementptr inbounds i8,i8*%el,i64 8
%es=bitcast i8*%er to i32*
store i32 0,i32*%es,align 4
ret i8*%el
et:
%eu=getelementptr inbounds i8,i8*%aJ,i64 8
%ev=bitcast i8*%eu to i8**
%ew=load i8*,i8**%ev,align 8
store i8*%ew,i8**%c,align 8
%ex=call i8*@sml_alloc(i32 inreg 20)#0
%ey=getelementptr inbounds i8,i8*%ex,i64 -4
%ez=bitcast i8*%ey to i32*
store i32 1342177296,i32*%ez,align 4
%eA=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%eB=bitcast i8*%ex to i8**
store i8*%eA,i8**%eB,align 8
%eC=getelementptr inbounds i8,i8*%ex,i64 8
%eD=bitcast i8*%eC to i32*
store i32 0,i32*%eD,align 4
%eE=getelementptr inbounds i8,i8*%ex,i64 12
%eF=bitcast i8*%eE to i32*
store i32%aF,i32*%eF,align 4
%eG=getelementptr inbounds i8,i8*%ex,i64 16
%eH=bitcast i8*%eG to i32*
store i32 1,i32*%eH,align 4
br label%f
}
define fastcc i8*@_SMLFN6TextIO8StreamIO8canInputE(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,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@v,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]}>*@z,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,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@Z,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_380 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_380 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,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@E,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_380(i8*inreg%bw,i8*inreg%bl)
ret i8*%bx
}
define fastcc void@_SMLFN6TextIO8StreamIO7closeInE(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,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@R,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}>*@Q,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]}>*@G,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,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@Z,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@_SMLFN6TextIO8StreamIO11endOfStreamE(i8*inreg%a)#2 gc"smlsharp"{
j:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%b,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%h,label%f
f:
call void@sml_check(i32 inreg%d)
%g=load i8*,i8**%b,align 8
br label%h
h:
%i=phi i8*[%g,%f],[%a,%j]
%k=bitcast i8*%i to i8**
%l=load i8*,i8**%k,align 8
store i8*%l,i8**%b,align 8
%m=getelementptr inbounds i8,i8*%l,i64 16
%n=bitcast i8*%m to i8**
%o=load i8*,i8**%n,align 8
%p=getelementptr inbounds i8,i8*%o,i64 8
%q=bitcast i8*%p to i32**
%r=load i32*,i32**%q,align 8
%s=getelementptr inbounds i8,i8*%l,i64 24
%t=bitcast i8*%s to i32***
%u=load i32**,i32***%t,align 8
%v=load i32*,i32**%u,align 8
%w=load i32,i32*%v,align 4
%x=icmp eq i32%w,1
br i1%x,label%ak,label%y
y:
%z=getelementptr inbounds i8,i8*%l,i64 8
%A=bitcast i8*%z to i32**
%B=load i32*,i32**%A,align 8
%C=getelementptr inbounds i8,i8*%i,i64 8
%D=bitcast i8*%C to i32*
%E=load i32,i32*%D,align 4
%F=getelementptr inbounds i32,i32*%B,i64 -1
%G=load i32,i32*%F,align 4
%H=and i32%G,268435455
%I=add nsw i32%H,-1
%J=icmp eq i32%E,%I
br i1%J,label%K,label%ak
K:
%L=load i32,i32*%r,align 4
%M=icmp eq i32%w,2
%N=icmp eq i32%L,0
%O=and i1%M,%N
br i1%O,label%P,label%ak
P:
%Q=getelementptr inbounds i8,i8*%o,i64 24
%R=bitcast i8*%Q to i8**
%S=load i8*,i8**%R,align 8
store i8*%S,i8**%c,align 8
%T=call i8*@sml_alloc(i32 inreg 28)#0
%U=getelementptr inbounds i8,i8*%T,i64 -4
%V=bitcast i8*%U to i32*
store i32 1342177304,i32*%V,align 4
%W=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%X=bitcast i8*%T to i8**
store i8*%W,i8**%X,align 8
%Y=getelementptr inbounds i8,i8*%T,i64 8
%Z=bitcast i8*%Y to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[12x i8]}>,<{[4x i8],i32,[12x i8]}>*@bf,i64 0,i32 2,i64 0),i8**%Z,align 8
%aa=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%ab=getelementptr inbounds i8,i8*%T,i64 16
%ac=bitcast i8*%ab to i8**
store i8*%aa,i8**%ac,align 8
%ad=getelementptr inbounds i8,i8*%T,i64 24
%ae=bitcast i8*%ad to i32*
store i32 7,i32*%ae,align 4
%af=call fastcc i8*@_SMLLLN6TextIO8StreamIO12extendStreamE_334(i8*inreg%T)
%ag=bitcast i8*%af to i32*
%ah=load i32,i32*%ag,align 4
%ai=icmp eq i32%ah,0
%aj=zext i1%ai to i32
br label%ak
ak:
%al=phi i32[%aj,%P],[1,%K],[0,%y],[0,%h]
ret i32%al
}
define internal fastcc i8*@_SMLLL8readVec_G_402(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,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@J,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_406(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}>*@M,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_407(i32 inreg%a)#4 gc"smlsharp"{
ret i8*null
}
define internal fastcc i8*@_SMLLL6getPos_409(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@_SMLLLN6TextIO8StreamIO10mkInstreamE_411(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@_SMLLLN6TextIO8StreamIO10mkInstreamE_414(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*@_SMLFN6TextIO8StreamIO10mkInstreamE(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}>*@K,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_406 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_716 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_409 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_718 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}>*@N,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}>*@N,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}>*@O,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)*@_SMLLLN6TextIO8StreamIO10mkInstreamE_411 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*)*@_SMLLLN6TextIO8StreamIO10mkInstreamE_719 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)*@_SMLLLN6TextIO8StreamIO10mkInstreamE_414 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*)*@_SMLLLN6TextIO8StreamIO10mkInstreamE_721 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=bitcast i8**%c to i32**
%cg=load i32*,i32**%cf,align 8
%ch=getelementptr inbounds i32,i32*%cg,i64 -1
%ci=load i32,i32*%ch,align 4
%cj=and i32%ci,268435455
%ck=icmp eq i32%cj,1
br i1%ck,label%cl,label%cx
cl:
%cm=getelementptr inbounds i8,i8*%bY,i64 16
%cn=bitcast i8*%cm to i8*(i8*,i8*)**
%co=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%cn,align 8
store i8*null,i8**%d,align 8
%cp=bitcast i8*%bY to i8**
%cq=load i8*,i8**%cp,align 8
store i8*%cq,i8**%b,align 8
%cr=call i8*@sml_alloc(i32 inreg 4)#0
%cs=bitcast i8*%cr to i32*
%ct=getelementptr inbounds i8,i8*%cr,i64 -4
%cu=bitcast i8*%ct to i32*
store i32 4,i32*%cu,align 4
store i32 0,i32*%cs,align 4
%cv=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%cw=call fastcc i8*%co(i8*inreg%cv,i8*inreg%cr)
br label%cy
cx:
store i8*null,i8**%d,align 8
br label%cy
cy:
%cz=phi i8*[null,%cx],[%cw,%cl]
store i8*%cz,i8**%b,align 8
%cA=call i8*@sml_alloc(i32 inreg 36)#0
%cB=getelementptr inbounds i8,i8*%cA,i64 -4
%cC=bitcast i8*%cB to i32*
store i32 1342177312,i32*%cC,align 4
store i8*%cA,i8**%d,align 8
%cD=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%cE=bitcast i8*%cA to i8**
store i8*%cD,i8**%cE,align 8
%cF=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%cG=getelementptr inbounds i8,i8*%cA,i64 8
%cH=bitcast i8*%cG to i8**
store i8*%cF,i8**%cH,align 8
%cI=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%cJ=getelementptr inbounds i8,i8*%cA,i64 16
%cK=bitcast i8*%cJ to i8**
store i8*%cI,i8**%cK,align 8
%cL=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%cM=getelementptr inbounds i8,i8*%cA,i64 24
%cN=bitcast i8*%cM to i8**
store i8*%cL,i8**%cN,align 8
%cO=getelementptr inbounds i8,i8*%cA,i64 32
%cP=bitcast i8*%cO to i32*
store i32 15,i32*%cP,align 4
%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 12
%cU=bitcast i8*%cT to i32*
store i32 0,i32*%cU,align 1
%cV=load i8*,i8**%d,align 8
%cW=bitcast i8*%cQ to i8**
store i8*%cV,i8**%cW,align 8
%cX=getelementptr inbounds i8,i8*%cQ,i64 8
%cY=bitcast i8*%cX to i32*
store i32 0,i32*%cY,align 4
%cZ=getelementptr inbounds i8,i8*%cQ,i64 16
%c0=bitcast i8*%cZ to i32*
store i32 1,i32*%c0,align 4
ret i8*%cQ
}
define internal fastcc i8*@_SMLLL7getData_417(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_417(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*@_SMLFN6TextIO8StreamIO9getReaderE(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%ag
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,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@R,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:
%af=bitcast i8*%t to i32*
store i8*null,i8**%e,align 8
br label%al
ag:
call fastcc void@_SMLFN18SMLSharp__OSProcess12cancelAtExitE(i8*inreg%E)
%ah=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%ai=bitcast i8*%ah to i8**
call void@sml_write(i8*inreg%ah,i8**inreg%ai,i8*inreg bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@Q,i64 0,i32 2)to i8*))#0
%aj=bitcast i8**%b to i32**
%ak=load i32*,i32**%aj,align 8
br label%al
al:
%am=phi i32*[%ak,%ag],[%af,%ae]
%an=getelementptr inbounds i32,i32*%am,i64 -1
%ao=load i32,i32*%an,align 4
%ap=and i32%ao,268435455
%aq=add nsw i32%ap,-1
%ar=icmp slt i32%q,%aq
br i1%ar,label%as,label%a7
as:
%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
%aw=getelementptr inbounds i8,i8*%at,i64 12
%ax=bitcast i8*%aw to i32*
store i32 0,i32*%ax,align 1
%ay=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%az=bitcast i8*%at to i8**
store i8*%ay,i8**%az,align 8
%aA=getelementptr inbounds i8,i8*%at,i64 8
%aB=bitcast i8*%aA to i32*
store i32%q,i32*%aB,align 4
%aC=getelementptr inbounds i8,i8*%at,i64 16
%aD=bitcast i8*%aC to i8**
store i8*null,i8**%aD,align 8
%aE=getelementptr inbounds i8,i8*%at,i64 24
%aF=bitcast i8*%aE to i32*
store i32 5,i32*%aF,align 4
%aG=call fastcc i8*@_SMLFN15CharVectorSlice5sliceE(i8*inreg%at)
%aH=call fastcc i8*@_SMLFN15CharVectorSlice6vectorE(i8*inreg%aG)
store i8*%aH,i8**%b,align 8
%aI=bitcast i8**%d to i8***
%aJ=load i8**,i8***%aI,align 8
store i8*null,i8**%d,align 8
%aK=load i8*,i8**%aJ,align 8
%aL=call fastcc i8*@_SMLLL7getData_417(i8*inreg%aK)
store i8*%aL,i8**%d,align 8
%aM=call i8*@sml_alloc(i32 inreg 20)#0
%aN=getelementptr inbounds i8,i8*%aM,i64 -4
%aO=bitcast i8*%aN to i32*
store i32 1342177296,i32*%aO,align 4
%aP=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aQ=bitcast i8*%aM to i8**
store i8*%aP,i8**%aQ,align 8
%aR=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aS=getelementptr inbounds i8,i8*%aM,i64 8
%aT=bitcast i8*%aS to i8**
store i8*%aR,i8**%aT,align 8
%aU=getelementptr inbounds i8,i8*%aM,i64 16
%aV=bitcast i8*%aU to i32*
store i32 3,i32*%aV,align 4
%aW=call fastcc i8*@_SMLFN10CharVector6concatE(i8*inreg%aM)
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
%a0=load i8*,i8**%c,align 8
%a1=bitcast i8*%aX to i8**
store i8*%a0,i8**%a1,align 8
%a2=load i8*,i8**%b,align 8
%a3=getelementptr inbounds i8,i8*%aX,i64 8
%a4=bitcast i8*%a3 to i8**
store i8*%a2,i8**%a4,align 8
%a5=getelementptr inbounds i8,i8*%aX,i64 16
%a6=bitcast i8*%a5 to i32*
store i32 3,i32*%a6,align 4
ret i8*%aX
a7:
store i8*null,i8**%b,align 8
%a8=bitcast i8**%d to i8***
%a9=load i8**,i8***%a8,align 8
store i8*null,i8**%d,align 8
%ba=load i8*,i8**%a9,align 8
%bb=call fastcc i8*@_SMLLL7getData_417(i8*inreg%ba)
%bc=call fastcc i8*@_SMLFN10CharVector6concatE(i8*inreg%bb)
store i8*%bc,i8**%b,align 8
%bd=call i8*@sml_alloc(i32 inreg 20)#0
%be=getelementptr inbounds i8,i8*%bd,i64 -4
%bf=bitcast i8*%be to i32*
store i32 1342177296,i32*%bf,align 4
%bg=load i8*,i8**%c,align 8
%bh=bitcast i8*%bd to i8**
store i8*%bg,i8**%bh,align 8
%bi=load i8*,i8**%b,align 8
%bj=getelementptr inbounds i8,i8*%bd,i64 8
%bk=bitcast i8*%bj to i8**
store i8*%bi,i8**%bk,align 8
%bl=getelementptr inbounds i8,i8*%bd,i64 16
%bm=bitcast i8*%bl to i32*
store i32 3,i32*%bm,align 4
ret i8*%bd
}
define fastcc i32@_SMLFN6TextIO8StreamIO9filePosInE(i8*inreg%a)#2 gc"smlsharp"{
m:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
store i8*%a,i8**%b,align 8
%g=load atomic i32,i32*@sml_check_flag unordered,align 4
%h=icmp eq i32%g,0
br i1%h,label%k,label%i
i:
call void@sml_check(i32 inreg%g)
%j=load i8*,i8**%b,align 8
br label%k
k:
%l=phi i8*[%j,%i],[%a,%m]
%n=bitcast i8*%l to i8**
%o=load i8*,i8**%n,align 8
%p=getelementptr inbounds i8,i8*%l,i64 8
%q=bitcast i8*%p to i32*
%r=load i32,i32*%q,align 4
%s=bitcast i8*%o to i8**
%t=load i8*,i8**%s,align 8
%u=icmp eq i8*%t,null
br i1%u,label%v,label%aw
v:
%w=getelementptr inbounds i8,i8*%o,i64 16
%x=bitcast i8*%w to i8**
%y=load i8*,i8**%x,align 8
store i8*%y,i8**%b,align 8
%z=load i8*,i8**@_SMLZN2IO24RandomAccessNotSupportedE,align 8
store i8*%z,i8**%d,align 8
%A=call i8*@sml_alloc(i32 inreg 20)#0
%B=getelementptr inbounds i8,i8*%A,i64 -4
%C=bitcast i8*%B to i32*
store i32 1342177296,i32*%C,align 4
store i8*%A,i8**%c,align 8
%D=load i8*,i8**%d,align 8
%E=bitcast i8*%A to i8**
store i8*%D,i8**%E,align 8
%F=getelementptr inbounds i8,i8*%A,i64 8
%G=bitcast i8*%F to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@Y,i64 0,i32 2,i64 0),i8**%G,align 8
%H=getelementptr inbounds i8,i8*%A,i64 16
%I=bitcast i8*%H to i32*
store i32 3,i32*%I,align 4
%J=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%J,i8**%d,align 8
%K=load i8*,i8**%b,align 8
%L=getelementptr inbounds i8,i8*%K,i64 40
%M=bitcast i8*%L to i8**
%N=load i8*,i8**%M,align 8
%O=getelementptr inbounds i8,i8*%N,i64 64
%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**%e,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=getelementptr inbounds i8,i8*%R,i64 8
%X=bitcast i8*%W to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[10x i8]}>,<{[4x i8],i32,[10x i8]}>*@aa,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**%d,align 8
store i8*null,i8**%d,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]}>*@Z,i64 0,i32 2,i64 0),i8**%aj,align 8
%ak=load i8*,i8**%e,align 8
store i8*null,i8**%e,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*%t to i32*
%ay=load i32,i32*%ax,align 4
%az=getelementptr inbounds i8,i8*%o,i64 16
%aA=bitcast i8*%az to i8**
%aB=load i8*,i8**%aA,align 8
store i8*%aB,i8**%b,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=getelementptr inbounds i8,i8*%aB,i64 40
%aG=bitcast i8*%aF to i8**
%aH=load i8*,i8**%aG,align 8
%aI=getelementptr inbounds i8,i8*%aH,i64 48
%aJ=bitcast i8*%aI to i8**
%aK=load i8*,i8**%aJ,align 8
%aL=getelementptr inbounds i8,i8*%aH,i64 104
%aM=bitcast i8*%aL to i8**
%aN=load i8*,i8**%aM,align 8
%aO=icmp eq i8*%aK,null
br i1%aO,label%aP,label%aQ
aP:
store i8*null,i8**%c,align 8
br label%dm
aQ:
%aR=bitcast i8*%aK to i8**
%aS=load i8*,i8**%aR,align 8
store i8*%aS,i8**%d,align 8
%aT=icmp eq i8*%aN,null
br i1%aT,label%aU,label%aV
aU:
store i8*null,i8**%c,align 8
store i8*null,i8**%d,align 8
br label%dm
aV:
%aW=bitcast i8*%aN to i8**
%aX=load i8*,i8**%aW,align 8
store i8*%aX,i8**%e,align 8
%aY=getelementptr inbounds i8,i8*%aS,i64 16
%aZ=bitcast i8*%aY to i8*(i8*,i8*)**
%a0=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aZ,align 8
%a1=bitcast i8*%aS to i8**
%a2=load i8*,i8**%a1,align 8
store i8*%a2,i8**%f,align 8
%a3=call i8*@sml_alloc(i32 inreg 4)#0
%a4=bitcast i8*%a3 to i32*
%a5=getelementptr inbounds i8,i8*%a3,i64 -4
%a6=bitcast i8*%a5 to i32*
store i32 4,i32*%a6,align 4
store i32 0,i32*%a4,align 4
%a7=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%a8=call fastcc i8*%a0(i8*inreg%a7,i8*inreg%a3)
%a9=bitcast i8*%a8 to i32*
%ba=load i32,i32*%a9,align 4
%bb=load i8*,i8**%e,align 8
%bc=getelementptr inbounds i8,i8*%bb,i64 16
%bd=bitcast i8*%bc to i8*(i8*,i8*)**
%be=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bd,align 8
%bf=bitcast i8*%bb to i8**
%bg=load i8*,i8**%bf,align 8
store i8*%bg,i8**%f,align 8
%bh=call i8*@sml_alloc(i32 inreg 4)#0
%bi=bitcast i8*%bh to i32*
%bj=getelementptr inbounds i8,i8*%bh,i64 -4
%bk=bitcast i8*%bj to i32*
store i32 4,i32*%bk,align 4
store i32%ay,i32*%bi,align 4
%bl=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%bm=call fastcc i8*%be(i8*inreg%bl,i8*inreg%bh)
br label%bn
bn:
%bo=phi i32[%r,%aV],[%bM,%bJ]
%bp=icmp eq i32%bo,0
br i1%bp,label%cV,label%bq
bq:
%br=load i8*,i8**%c,align 8
%bs=getelementptr inbounds i8,i8*%br,i64 16
%bt=bitcast i8*%bs to i8*(i8*,i8*)**
%bu=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bt,align 8
%bv=bitcast i8*%br to i8**
%bw=load i8*,i8**%bv,align 8
store i8*%bw,i8**%f,align 8
%bx=call i8*@sml_alloc(i32 inreg 4)#0
%by=bitcast i8*%bx to i32*
%bz=getelementptr inbounds i8,i8*%bx,i64 -4
%bA=bitcast i8*%bz to i32*
store i32 4,i32*%bA,align 4
store i32%bo,i32*%by,align 4
%bB=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%bC=call fastcc i8*%bu(i8*inreg%bB,i8*inreg%bx)
%bD=getelementptr inbounds i8,i8*%bC,i64 -4
%bE=bitcast i8*%bD to i32*
%bF=load i32,i32*%bE,align 4
%bG=and i32%bF,268435455
%bH=add nsw i32%bG,-1
%bI=icmp eq i32%bH,0
br i1%bI,label%b5,label%bJ
bJ:
%bK=call{i32,i1}@llvm.ssub.with.overflow.i32(i32%bo,i32%bH)#0
%bL=extractvalue{i32,i1}%bK,1
%bM=sub nsw i32%bo,%bH
br i1%bL,label%bN,label%bn
bN:
store i8*null,i8**%c,align 8
store i8*null,i8**%d,align 8
store i8*null,i8**%e,align 8
%bO=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%bO,i8**%b,align 8
%bP=call i8*@sml_alloc(i32 inreg 20)#0
%bQ=getelementptr inbounds i8,i8*%bP,i64 -4
%bR=bitcast i8*%bQ to i32*
store i32 1342177296,i32*%bR,align 4
store i8*%bP,i8**%c,align 8
%bS=load i8*,i8**%b,align 8
store i8*null,i8**%b,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,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@X,i64 0,i32 2,i64 0),i8**%bV,align 8
%bW=getelementptr inbounds i8,i8*%bP,i64 16
%bX=bitcast i8*%bW to i32*
store i32 3,i32*%bX,align 4
%bY=call i8*@sml_alloc(i32 inreg 60)#0
%bZ=getelementptr inbounds i8,i8*%bY,i64 -4
%b0=bitcast i8*%bZ to i32*
store i32 1342177336,i32*%b0,align 4
%b1=getelementptr inbounds i8,i8*%bY,i64 56
%b2=bitcast i8*%b1 to i32*
store i32 1,i32*%b2,align 4
%b3=load i8*,i8**%c,align 8
%b4=bitcast i8*%bY to i8**
store i8*%b3,i8**%b4,align 8
call void@sml_raise(i8*inreg%bY)#1
unreachable
b5:
store i8*null,i8**%c,align 8
store i8*null,i8**%e,align 8
%b6=load i8*,i8**@_SMLZ4Fail,align 8
store i8*%b6,i8**%d,align 8
%b7=call i8*@sml_alloc(i32 inreg 28)#0
%b8=getelementptr inbounds i8,i8*%b7,i64 -4
%b9=bitcast i8*%b8 to i32*
store i32 1342177304,i32*%b9,align 4
store i8*%b7,i8**%c,align 8
%ca=load i8*,i8**%d,align 8
%cb=bitcast i8*%b7 to i8**
store i8*%ca,i8**%cb,align 8
%cc=getelementptr inbounds i8,i8*%b7,i64 8
%cd=bitcast i8*%cc to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@V,i64 0,i32 2,i64 0),i8**%cd,align 8
%ce=getelementptr inbounds i8,i8*%b7,i64 16
%cf=bitcast i8*%ce to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[15x i8]}>,<{[4x i8],i32,[15x i8]}>*@W,i64 0,i32 2,i64 0),i8**%cf,align 8
%cg=getelementptr inbounds i8,i8*%b7,i64 24
%ch=bitcast i8*%cg to i32*
store i32 7,i32*%ch,align 4
%ci=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%ci,i8**%d,align 8
%cj=load i8*,i8**%b,align 8
%ck=getelementptr inbounds i8,i8*%cj,i64 40
%cl=bitcast i8*%ck to i8**
%cm=load i8*,i8**%cl,align 8
%cn=getelementptr inbounds i8,i8*%cm,i64 64
%co=bitcast i8*%cn to i8**
%cp=load i8*,i8**%co,align 8
store i8*%cp,i8**%b,align 8
%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**%e,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,[10x i8]}>,<{[4x i8],i32,[10x i8]}>*@aa,i64 0,i32 2,i64 0),i8**%cw,align 8
%cx=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%cy=getelementptr inbounds i8,i8*%cq,i64 16
%cz=bitcast i8*%cy to i8**
store i8*%cx,i8**%cz,align 8
%cA=getelementptr inbounds i8,i8*%cq,i64 24
%cB=bitcast i8*%cA to i32*
store i32 7,i32*%cB,align 4
%cC=call i8*@sml_alloc(i32 inreg 28)#0
%cD=getelementptr inbounds i8,i8*%cC,i64 -4
%cE=bitcast i8*%cD to i32*
store i32 1342177304,i32*%cE,align 4
store i8*%cC,i8**%b,align 8
%cF=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%cG=bitcast i8*%cC to i8**
store i8*%cF,i8**%cG,align 8
%cH=getelementptr inbounds i8,i8*%cC,i64 8
%cI=bitcast i8*%cH to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@Z,i64 0,i32 2,i64 0),i8**%cI,align 8
%cJ=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%cK=getelementptr inbounds i8,i8*%cC,i64 16
%cL=bitcast i8*%cK to i8**
store i8*%cJ,i8**%cL,align 8
%cM=getelementptr inbounds i8,i8*%cC,i64 24
%cN=bitcast i8*%cM to i32*
store i32 7,i32*%cN,align 4
%cO=call i8*@sml_alloc(i32 inreg 60)#0
%cP=getelementptr inbounds i8,i8*%cO,i64 -4
%cQ=bitcast i8*%cP to i32*
store i32 1342177336,i32*%cQ,align 4
%cR=getelementptr inbounds i8,i8*%cO,i64 56
%cS=bitcast i8*%cR to i32*
store i32 1,i32*%cS,align 4
%cT=load i8*,i8**%b,align 8
%cU=bitcast i8*%cO to i8**
store i8*%cT,i8**%cU,align 8
call void@sml_raise(i8*inreg%cO)#1
unreachable
cV:
store i8*null,i8**%c,align 8
%cW=load i8*,i8**%d,align 8
%cX=getelementptr inbounds i8,i8*%cW,i64 16
%cY=bitcast i8*%cX to i8*(i8*,i8*)**
%cZ=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%cY,align 8
store i8*null,i8**%d,align 8
%c0=bitcast i8*%cW to i8**
%c1=load i8*,i8**%c0,align 8
store i8*%c1,i8**%b,align 8
%c2=call i8*@sml_alloc(i32 inreg 4)#0
%c3=bitcast i8*%c2 to i32*
%c4=getelementptr inbounds i8,i8*%c2,i64 -4
%c5=bitcast i8*%c4 to i32*
store i32 4,i32*%c5,align 4
store i32 0,i32*%c3,align 4
%c6=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%c7=call fastcc i8*%cZ(i8*inreg%c6,i8*inreg%c2)
%c8=bitcast i8*%c7 to i32*
%c9=load i32,i32*%c8,align 4
%da=load i8*,i8**%e,align 8
%db=getelementptr inbounds i8,i8*%da,i64 16
%dc=bitcast i8*%db to i8*(i8*,i8*)**
%dd=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%dc,align 8
store i8*null,i8**%e,align 8
%de=bitcast i8*%da to i8**
%df=load i8*,i8**%de,align 8
store i8*%df,i8**%b,align 8
%dg=call i8*@sml_alloc(i32 inreg 4)#0
%dh=bitcast i8*%dg to i32*
%di=getelementptr inbounds i8,i8*%dg,i64 -4
%dj=bitcast i8*%di to i32*
store i32 4,i32*%dj,align 4
store i32%ba,i32*%dh,align 4
%dk=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%dl=call fastcc i8*%dd(i8*inreg%dk,i8*inreg%dg)
ret i32%c9
dm:
%dn=load i8*,i8**@_SMLZ4Fail,align 8
store i8*%dn,i8**%b,align 8
%do=call i8*@sml_alloc(i32 inreg 28)#0
%dp=getelementptr inbounds i8,i8*%do,i64 -4
%dq=bitcast i8*%dp to i32*
store i32 1342177304,i32*%dq,align 4
store i8*%do,i8**%c,align 8
%dr=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%ds=bitcast i8*%do to i8**
store i8*%dr,i8**%ds,align 8
%dt=getelementptr inbounds i8,i8*%do,i64 8
%du=bitcast i8*%dt to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@T,i64 0,i32 2,i64 0),i8**%du,align 8
%dv=getelementptr inbounds i8,i8*%do,i64 16
%dw=bitcast i8*%dv to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[22x i8]}>,<{[4x i8],i32,[22x i8]}>*@U,i64 0,i32 2,i64 0),i8**%dw,align 8
%dx=getelementptr inbounds i8,i8*%do,i64 24
%dy=bitcast i8*%dx to i32*
store i32 7,i32*%dy,align 4
%dz=call i8*@sml_alloc(i32 inreg 60)#0
%dA=getelementptr inbounds i8,i8*%dz,i64 -4
%dB=bitcast i8*%dA to i32*
store i32 1342177336,i32*%dB,align 4
%dC=getelementptr inbounds i8,i8*%dz,i64 56
%dD=bitcast i8*%dC to i32*
store i32 1,i32*%dD,align 4
%dE=load i8*,i8**%c,align 8
%dF=bitcast i8*%dz to i8**
store i8*%dE,i8**%dF,align 8
call void@sml_raise(i8*inreg%dz)#1
unreachable
}
define internal fastcc i8*@_SMLLL7nextBuf_435(i8*inreg%a)unnamed_addr#2 gc"smlsharp"{
k:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%b,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%i,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%b,align 8
br label%i
i:
%j=phi i8*[%h,%g],[%a,%k]
%l=getelementptr inbounds i8,i8*%j,i64 8
%m=bitcast i8*%l to i8**
%n=load i8*,i8**%m,align 8
store i8*%n,i8**%c,align 8
%o=getelementptr inbounds i8,i8*%j,i64 24
%p=bitcast i8*%o to i8***
%q=load i8**,i8***%p,align 8
%r=load i8*,i8**%q,align 8
%s=bitcast i8*%r to i32*
%t=load i32,i32*%s,align 4
%u=bitcast i8*%n to i32*
switch i32%t,label%v[
i32 1,label%aU
i32 0,label%ba
i32 2,label%N
i32 3,label%ba
]
v:
store i8*null,i8**%c,align 8
call void@sml_matchcomp_bug()
%w=load i8*,i8**@_SMLZ5Match,align 8
store i8*%w,i8**%b,align 8
%x=call i8*@sml_alloc(i32 inreg 20)#0
%y=getelementptr inbounds i8,i8*%x,i64 -4
%z=bitcast i8*%y to i32*
store i32 1342177296,i32*%z,align 4
store i8*%x,i8**%c,align 8
%A=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%B=bitcast i8*%x to i8**
store i8*%A,i8**%B,align 8
%C=getelementptr inbounds i8,i8*%x,i64 8
%D=bitcast i8*%C to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@af,i64 0,i32 2,i64 0),i8**%D,align 8
%E=getelementptr inbounds i8,i8*%x,i64 16
%F=bitcast i8*%E to i32*
store i32 3,i32*%F,align 4
%G=call i8*@sml_alloc(i32 inreg 60)#0
%H=getelementptr inbounds i8,i8*%G,i64 -4
%I=bitcast i8*%H to i32*
store i32 1342177336,i32*%I,align 4
%J=getelementptr inbounds i8,i8*%G,i64 56
%K=bitcast i8*%J to i32*
store i32 1,i32*%K,align 4
%L=load i8*,i8**%c,align 8
%M=bitcast i8*%G to i8**
store i8*%L,i8**%M,align 8
call void@sml_raise(i8*inreg%G)#1
unreachable
N:
%O=getelementptr inbounds i8,i8*%j,i64 16
%P=bitcast i8*%O to i8**
%Q=load i8*,i8**%P,align 8
%R=getelementptr inbounds i8,i8*%Q,i64 24
%S=bitcast i8*%R to i8**
%T=load i8*,i8**%S,align 8
store i8*%T,i8**%d,align 8
%U=call i8*@sml_alloc(i32 inreg 28)#0
%V=getelementptr inbounds i8,i8*%U,i64 -4
%W=bitcast i8*%V to i32*
store i32 1342177304,i32*%W,align 4
%X=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%Y=bitcast i8*%U to i8**
store i8*%X,i8**%Y,align 8
%Z=getelementptr inbounds i8,i8*%U,i64 8
%aa=bitcast i8*%Z to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[10x i8]}>,<{[4x i8],i32,[10x i8]}>*@ai,i64 0,i32 2,i64 0),i8**%aa,align 8
%ab=load i8*,i8**%b,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 fastcc i8*@_SMLLLN6TextIO8StreamIO12extendStreamE_334(i8*inreg%U)
%ah=bitcast i8*%ag to i32*
%ai=load i32,i32*%ah,align 4
switch i32%ai,label%am[
i32 1,label%aE
i32 0,label%aj
]
aj:
%ak=bitcast i8**%c to i32**
%al=load i32*,i32**%ak,align 8
br label%ba
am:
store i8*null,i8**%c,align 8
%an=load i8*,i8**@_SMLZ5Match,align 8
store i8*%an,i8**%b,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**%c,align 8
%ar=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%as=bitcast i8*%ao to i8**
store i8*%ar,i8**%as,align 8
%at=getelementptr inbounds i8,i8*%ao,i64 8
%au=bitcast i8*%at to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@ae,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**%c,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:
store i8*null,i8**%c,align 8
%aF=getelementptr inbounds i8,i8*%ag,i64 8
%aG=bitcast i8*%aF to i8**
%aH=load i8*,i8**%aG,align 8
store i8*%aH,i8**%b,align 8
%aI=call i8*@sml_alloc(i32 inreg 20)#0
%aJ=getelementptr inbounds i8,i8*%aI,i64 -4
%aK=bitcast i8*%aJ to i32*
store i32 1342177296,i32*%aK,align 4
%aL=getelementptr inbounds i8,i8*%aI,i64 12
%aM=bitcast i8*%aL to i32*
store i32 0,i32*%aM,align 1
%aN=load i8*,i8**%b,align 8
%aO=bitcast i8*%aI to i8**
store i8*%aN,i8**%aO,align 8
%aP=getelementptr inbounds i8,i8*%aI,i64 8
%aQ=bitcast i8*%aP to i32*
store i32 0,i32*%aQ,align 4
%aR=getelementptr inbounds i8,i8*%aI,i64 16
%aS=bitcast i8*%aR to i32*
store i32 1,i32*%aS,align 4
%aT=tail call fastcc i8*@_SMLLL8scanData_436(i8*inreg%aI)
ret i8*%aT
aU:
store i8*null,i8**%c,align 8
%aV=getelementptr inbounds i8,i8*%r,i64 8
%aW=bitcast i8*%aV to i8**
%aX=load i8*,i8**%aW,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
%a0=bitcast i8*%aZ to i32*
store i32 1342177296,i32*%a0,align 4
%a1=getelementptr inbounds i8,i8*%aY,i64 12
%a2=bitcast i8*%a1 to i32*
store i32 0,i32*%a2,align 1
%a3=load i8*,i8**%b,align 8
%a4=bitcast i8*%aY to i8**
store i8*%a3,i8**%a4,align 8
%a5=getelementptr inbounds i8,i8*%aY,i64 8
%a6=bitcast i8*%a5 to i32*
store i32 0,i32*%a6,align 4
%a7=getelementptr inbounds i8,i8*%aY,i64 16
%a8=bitcast i8*%a7 to i32*
store i32 1,i32*%a8,align 4
%a9=tail call fastcc i8*@_SMLLL8scanData_436(i8*inreg%aY)
ret i8*%a9
ba:
%bb=phi i32*[%al,%aj],[%u,%i],[%u,%i]
store i8*null,i8**%c,align 8
%bc=getelementptr inbounds i32,i32*%bb,i64 -1
%bd=load i32,i32*%bc,align 4
%be=and i32%bd,268435455
%bf=add nsw i32%be,-1
%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
store i8*%bg,i8**%c,align 8
%bj=getelementptr inbounds i8,i8*%bg,i64 12
%bk=bitcast i8*%bj to i32*
store i32 0,i32*%bk,align 1
%bl=load i8*,i8**%b,align 8
%bm=bitcast i8*%bg to i8**
store i8*null,i8**%b,align 8
store i8*%bl,i8**%bm,align 8
%bn=getelementptr inbounds i8,i8*%bg,i64 8
%bo=bitcast i8*%bn to i32*
store i32%bf,i32*%bo,align 4
%bp=getelementptr inbounds i8,i8*%bg,i64 16
%bq=bitcast i8*%bp to i32*
store i32 1,i32*%bq,align 4
%br=call i8*@sml_alloc(i32 inreg 20)#0
%bs=getelementptr inbounds i8,i8*%br,i64 -4
%bt=bitcast i8*%bs to i32*
store i32 1342177296,i32*%bt,align 4
%bu=bitcast i8*%br to i8**
store i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,i8*,i32}>,<{[4x i8],i32,i8*,i8*,i32}>*@ad,i64 0,i32 2)to i8*),i8**%bu,align 8
%bv=load i8*,i8**%c,align 8
%bw=getelementptr inbounds i8,i8*%br,i64 8
%bx=bitcast i8*%bw to i8**
store i8*%bv,i8**%bx,align 8
%by=getelementptr inbounds i8,i8*%br,i64 16
%bz=bitcast i8*%by to i32*
store i32 3,i32*%bz,align 4
ret i8*%br
}
define internal fastcc i8*@_SMLLL8scanData_436(i8*inreg%a)unnamed_addr#2 gc"smlsharp"{
w:
%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 i8**
%g=load i8*,i8**%f,align 8
store i8*%g,i8**%b,align 8
%h=getelementptr inbounds i8,i8*%g,i64 8
%i=bitcast i8*%h to i8**
%j=load i8*,i8**%i,align 8
store i8*%j,i8**%c,align 8
%k=getelementptr inbounds i8,i8*%a,i64 8
%l=bitcast i8*%k to i32*
%m=load i32,i32*%l,align 4
%n=getelementptr inbounds i8,i8*%j,i64 -4
%o=bitcast i8*%n to i32*
%p=load i32,i32*%o,align 4
%q=and i32%p,268435455
%r=add nsw i32%q,-1
%s=bitcast i8**%c to i32**
%t=icmp slt i32%m,0
br label%u
u:
%v=phi i32[%m,%w],[%aH,%aB]
%x=load atomic i32,i32*@sml_check_flag unordered,align 4
%y=icmp eq i32%x,0
br i1%y,label%A,label%z
z:
call void@sml_check(i32 inreg%x)
br label%A
A:
%B=icmp eq i32%v,%r
br i1%B,label%C,label%at
C:
%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%m,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*@_SMLFN15CharVectorSlice5sliceE(i8*inreg%D)
%R=call fastcc i8*@_SMLFN15CharVectorSlice6vectorE(i8*inreg%Q)
store i8*%R,i8**%c,align 8
%S=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%T=call fastcc i8*@_SMLLL7nextBuf_435(i8*inreg%S)
%U=bitcast i8*%T to i8**
%V=load i8*,i8**%U,align 8
store i8*%V,i8**%b,align 8
%W=getelementptr inbounds i8,i8*%T,i64 8
%X=bitcast i8*%W to i8**
%Y=load i8*,i8**%X,align 8
store i8*%Y,i8**%d,align 8
%Z=call i8*@sml_alloc(i32 inreg 20)#0
%aa=getelementptr inbounds i8,i8*%Z,i64 -4
%ab=bitcast i8*%aa to i32*
store i32 1342177296,i32*%ab,align 4
store i8*%Z,i8**%e,align 8
%ac=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ad=bitcast i8*%Z to i8**
store i8*%ac,i8**%ad,align 8
%ae=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%af=getelementptr inbounds i8,i8*%Z,i64 8
%ag=bitcast i8*%af to i8**
store i8*%ae,i8**%ag,align 8
%ah=getelementptr inbounds i8,i8*%Z,i64 16
%ai=bitcast i8*%ah to i32*
store i32 3,i32*%ai,align 4
%aj=call i8*@sml_alloc(i32 inreg 20)#0
%ak=getelementptr inbounds i8,i8*%aj,i64 -4
%al=bitcast i8*%ak to i32*
store i32 1342177296,i32*%al,align 4
%am=load i8*,i8**%e,align 8
%an=bitcast i8*%aj to i8**
store i8*%am,i8**%an,align 8
%ao=load i8*,i8**%d,align 8
%ap=getelementptr inbounds i8,i8*%aj,i64 8
%aq=bitcast i8*%ap to i8**
store i8*%ao,i8**%aq,align 8
%ar=getelementptr inbounds i8,i8*%aj,i64 16
%as=bitcast i8*%ar to i32*
store i32 3,i32*%as,align 4
ret i8*%aj
at:
br i1%t,label%aI,label%au
au:
%av=load i32*,i32**%s,align 8
%aw=getelementptr inbounds i32,i32*%av,i64 -1
%ax=load i32,i32*%aw,align 4
%ay=and i32%ax,268435455
%az=add nsw i32%ay,-1
%aA=icmp slt i32%v,%az
br i1%aA,label%aB,label%aI
aB:
%aC=bitcast i32*%av to i8*
%aD=sext i32%v to i64
%aE=getelementptr inbounds i8,i8*%aC,i64%aD
%aF=load i8,i8*%aE,align 1
%aG=icmp eq i8%aF,10
%aH=add nsw i32%v,1
br i1%aG,label%a0,label%u
aI:
store i8*null,i8**%c,align 8
%aJ=load i8*,i8**@_SMLZ9Subscript,align 8
store i8*%aJ,i8**%b,align 8
%aK=call i8*@sml_alloc(i32 inreg 20)#0
%aL=getelementptr inbounds i8,i8*%aK,i64 -4
%aM=bitcast i8*%aL to i32*
store i32 1342177296,i32*%aM,align 4
store i8*%aK,i8**%c,align 8
%aN=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aO=bitcast i8*%aK to i8**
store i8*%aN,i8**%aO,align 8
%aP=getelementptr inbounds i8,i8*%aK,i64 8
%aQ=bitcast i8*%aP to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@ag,i64 0,i32 2,i64 0),i8**%aQ,align 8
%aR=getelementptr inbounds i8,i8*%aK,i64 16
%aS=bitcast i8*%aR to i32*
store i32 3,i32*%aS,align 4
%aT=call i8*@sml_alloc(i32 inreg 60)#0
%aU=getelementptr inbounds i8,i8*%aT,i64 -4
%aV=bitcast i8*%aU to i32*
store i32 1342177336,i32*%aV,align 4
%aW=getelementptr inbounds i8,i8*%aT,i64 56
%aX=bitcast i8*%aW to i32*
store i32 1,i32*%aX,align 4
%aY=load i8*,i8**%c,align 8
%aZ=bitcast i8*%aT to i8**
store i8*%aY,i8**%aZ,align 8
call void@sml_raise(i8*inreg%aT)#1
unreachable
a0:
%a1=call{i32,i1}@llvm.ssub.with.overflow.i32(i32%aH,i32%m)#0
%a2=extractvalue{i32,i1}%a1,1
br i1%a2,label%a3,label%bl
a3:
store i8*null,i8**%c,align 8
%a4=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%a4,i8**%b,align 8
%a5=call i8*@sml_alloc(i32 inreg 20)#0
%a6=getelementptr inbounds i8,i8*%a5,i64 -4
%a7=bitcast i8*%a6 to i32*
store i32 1342177296,i32*%a7,align 4
store i8*%a5,i8**%c,align 8
%a8=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%a9=bitcast i8*%a5 to i8**
store i8*%a8,i8**%a9,align 8
%ba=getelementptr inbounds i8,i8*%a5,i64 8
%bb=bitcast i8*%ba to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@ah,i64 0,i32 2,i64 0),i8**%bb,align 8
%bc=getelementptr inbounds i8,i8*%a5,i64 16
%bd=bitcast i8*%bc to i32*
store i32 3,i32*%bd,align 4
%be=call i8*@sml_alloc(i32 inreg 60)#0
%bf=getelementptr inbounds i8,i8*%be,i64 -4
%bg=bitcast i8*%bf to i32*
store i32 1342177336,i32*%bg,align 4
%bh=getelementptr inbounds i8,i8*%be,i64 56
%bi=bitcast i8*%bh to i32*
store i32 1,i32*%bi,align 4
%bj=load i8*,i8**%c,align 8
%bk=bitcast i8*%be to i8**
store i8*%bj,i8**%bk,align 8
call void@sml_raise(i8*inreg%be)#1
unreachable
bl:
%bm=sub nsw i32%aH,%m
%bn=call i8*@sml_alloc(i32 inreg 12)#0
%bo=getelementptr inbounds i8,i8*%bn,i64 -4
%bp=bitcast i8*%bo to i32*
store i32 1342177288,i32*%bp,align 4
store i8*%bn,i8**%d,align 8
%bq=getelementptr inbounds i8,i8*%bn,i64 4
%br=bitcast i8*%bq to i32*
store i32 0,i32*%br,align 1
%bs=bitcast i8*%bn to i32*
store i32%bm,i32*%bs,align 4
%bt=getelementptr inbounds i8,i8*%bn,i64 8
%bu=bitcast i8*%bt to i32*
store i32 0,i32*%bu,align 4
%bv=call i8*@sml_alloc(i32 inreg 28)#0
%bw=getelementptr inbounds i8,i8*%bv,i64 -4
%bx=bitcast i8*%bw to i32*
store i32 1342177304,i32*%bx,align 4
%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**%c,align 8
store i8*null,i8**%c,align 8
%bB=bitcast i8*%bv to i8**
store i8*%bA,i8**%bB,align 8
%bC=getelementptr inbounds i8,i8*%bv,i64 8
%bD=bitcast i8*%bC to i32*
store i32%m,i32*%bD,align 4
%bE=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%bF=getelementptr inbounds i8,i8*%bv,i64 16
%bG=bitcast i8*%bF to i8**
store i8*%bE,i8**%bG,align 8
%bH=getelementptr inbounds i8,i8*%bv,i64 24
%bI=bitcast i8*%bH to i32*
store i32 5,i32*%bI,align 4
%bJ=call fastcc i8*@_SMLFN15CharVectorSlice5sliceE(i8*inreg%bv)
%bK=call fastcc i8*@_SMLFN15CharVectorSlice6vectorE(i8*inreg%bJ)
store i8*%bK,i8**%c,align 8
%bL=call i8*@sml_alloc(i32 inreg 20)#0
%bM=getelementptr inbounds i8,i8*%bL,i64 -4
%bN=bitcast i8*%bM to i32*
store i32 1342177296,i32*%bN,align 4
store i8*%bL,i8**%d,align 8
%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*null,i8**%bR,align 8
%bS=getelementptr inbounds i8,i8*%bL,i64 16
%bT=bitcast i8*%bS to i32*
store i32 3,i32*%bT,align 4
%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
store i8*%bU,i8**%c,align 8
%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**%b,align 8
%b0=bitcast i8*%bU to i8**
store i8*null,i8**%b,align 8
store i8*%bZ,i8**%b0,align 8
%b1=getelementptr inbounds i8,i8*%bU,i64 8
%b2=bitcast i8*%b1 to i32*
store i32%aH,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
%b5=call i8*@sml_alloc(i32 inreg 20)#0
%b6=getelementptr inbounds i8,i8*%b5,i64 -4
%b7=bitcast i8*%b6 to i32*
store i32 1342177296,i32*%b7,align 4
%b8=load i8*,i8**%d,align 8
%b9=bitcast i8*%b5 to i8**
store i8*%b8,i8**%b9,align 8
%ca=load i8*,i8**%c,align 8
%cb=getelementptr inbounds i8,i8*%b5,i64 8
%cc=bitcast i8*%cb to i8**
store i8*%ca,i8**%cc,align 8
%cd=getelementptr inbounds i8,i8*%b5,i64 16
%ce=bitcast i8*%cd to i32*
store i32 3,i32*%ce,align 4
ret i8*%b5
}
define fastcc i8*@_SMLFN6TextIO8StreamIO9inputLineE(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*%m,i64 8
%o=bitcast i8*%n to i32**
%p=load i32*,i32**%o,align 8
%q=getelementptr inbounds i8,i8*%j,i64 8
%r=bitcast i8*%q to i32*
%s=load i32,i32*%r,align 4
%t=getelementptr inbounds i32,i32*%p,i64 -1
%u=load i32,i32*%t,align 4
%v=and i32%u,268435455
%w=add nsw i32%v,-1
%x=icmp eq i32%w,%s
br i1%x,label%y,label%aS
y:
%z=getelementptr inbounds i8,i8*%m,i64 16
%A=bitcast i8*%z to i8**
%B=load i8*,i8**%A,align 8
%C=getelementptr inbounds i8,i8*%B,i64 24
%D=bitcast i8*%C to i8**
%E=load i8*,i8**%D,align 8
store i8*%E,i8**%c,align 8
%F=getelementptr inbounds i8,i8*%m,i64 24
%G=bitcast i8*%F to i8***
%H=load i8**,i8***%G,align 8
%I=load i8*,i8**%H,align 8
%J=bitcast i8*%I to i32*
%K=load i32,i32*%J,align 4
switch i32%K,label%L[
i32 2,label%X
i32 3,label%M
]
L:
store i8*null,i8**%c,align 8
br label%am
M:
store i8*null,i8**%c,align 8
%N=call i8*@sml_alloc(i32 inreg 20)#0
%O=bitcast i8*%N to i32*
%P=getelementptr inbounds i8,i8*%N,i64 -4
%Q=bitcast i8*%P to i32*
store i32 1342177296,i32*%Q,align 4
%R=bitcast i8*%N to i64*
store i64 0,i64*%R,align 4
%S=load i8*,i8**%b,align 8
%T=getelementptr inbounds i8,i8*%N,i64 8
%U=bitcast i8*%T to i8**
store i8*%S,i8**%U,align 8
%V=getelementptr inbounds i8,i8*%N,i64 16
%W=bitcast i8*%V to i32*
store i32 2,i32*%W,align 4
br label%am
X:
%Y=call i8*@sml_alloc(i32 inreg 28)#0
%Z=getelementptr inbounds i8,i8*%Y,i64 -4
%aa=bitcast i8*%Z to i32*
store i32 1342177304,i32*%aa,align 4
%ab=load i8*,i8**%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,[10x i8]}>,<{[4x i8],i32,[10x i8]}>*@ai,i64 0,i32 2,i64 0),i8**%ae,align 8
%af=load i8*,i8**%b,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 fastcc i8*@_SMLLLN6TextIO8StreamIO12extendStreamE_334(i8*inreg%Y)
%al=bitcast i8*%ak to i32*
br label%am
am:
%an=phi i32*[%al,%X],[%O,%M],[%J,%L]
%ao=phi i8*[%ak,%X],[%N,%M],[%I,%L]
%ap=load i32,i32*%an,align 4
%aq=icmp eq i32%ap,0
br i1%aq,label%au,label%ar
ar:
%as=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%at=call fastcc i8*@_SMLLL7nextBuf_435(i8*inreg%as)
br label%a5
au:
%av=getelementptr inbounds i8,i8*%ao,i64 8
%aw=bitcast i8*%av to i8**
%ax=load i8*,i8**%aw,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=getelementptr inbounds i8,i8*%ay,i64 12
%aC=bitcast i8*%aB to i32*
store i32 0,i32*%aC,align 1
%aD=load i8*,i8**%b,align 8
%aE=bitcast i8*%ay to i8**
store i8*null,i8**%b,align 8
store i8*%aD,i8**%aE,align 8
%aF=getelementptr inbounds i8,i8*%ay,i64 8
%aG=bitcast i8*%aF to i32*
store i32 0,i32*%aG,align 4
%aH=getelementptr inbounds i8,i8*%ay,i64 16
%aI=bitcast i8*%aH to i32*
store i32 1,i32*%aI,align 4
%aJ=call i8*@sml_alloc(i32 inreg 20)#0
%aK=getelementptr inbounds i8,i8*%aJ,i64 -4
%aL=bitcast i8*%aK to i32*
store i32 1342177296,i32*%aL,align 4
%aM=bitcast i8*%aJ to i8**
store i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,i8*,i32}>,<{[4x i8],i32,i8*,i8*,i32}>*@aj,i64 0,i32 2)to i8*),i8**%aM,align 8
%aN=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aO=getelementptr inbounds i8,i8*%aJ,i64 8
%aP=bitcast i8*%aO to i8**
store i8*%aN,i8**%aP,align 8
%aQ=getelementptr inbounds i8,i8*%aJ,i64 16
%aR=bitcast i8*%aQ to i32*
store i32 3,i32*%aR,align 4
br label%a5
aS:
%aT=call i8*@sml_alloc(i32 inreg 20)#0
%aU=getelementptr inbounds i8,i8*%aT,i64 -4
%aV=bitcast i8*%aU to i32*
store i32 1342177296,i32*%aV,align 4
%aW=getelementptr inbounds i8,i8*%aT,i64 12
%aX=bitcast i8*%aW to i32*
store i32 0,i32*%aX,align 1
%aY=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aZ=bitcast i8*%aT to i8**
store i8*%aY,i8**%aZ,align 8
%a0=getelementptr inbounds i8,i8*%aT,i64 8
%a1=bitcast i8*%a0 to i32*
store i32%s,i32*%a1,align 4
%a2=getelementptr inbounds i8,i8*%aT,i64 16
%a3=bitcast i8*%a2 to i32*
store i32 1,i32*%a3,align 4
%a4=call fastcc i8*@_SMLLL8scanData_436(i8*inreg%aT)
br label%a5
a5:
%a6=phi i8*[%a4,%aS],[%at,%ar],[%aJ,%au]
%a7=bitcast i8*%a6 to i8**
%a8=load i8*,i8**%a7,align 8
%a9=getelementptr inbounds i8,i8*%a6,i64 8
%ba=bitcast i8*%a9 to i8**
%bb=load i8*,i8**%ba,align 8
store i8*%bb,i8**%b,align 8
%bc=call fastcc i8*@_SMLFN10CharVector6concatE(i8*inreg%a8)
store i8*%bc,i8**%c,align 8
%bd=getelementptr inbounds i8,i8*%bc,i64 -4
%be=bitcast i8*%bd to i32*
%bf=load i32,i32*%be,align 4
%bg=and i32%bf,268435455
%bh=icmp eq i32%bg,1
br i1%bh,label%bi,label%bj
bi:
ret i8*null
bj:
%bk=call i8*@sml_alloc(i32 inreg 20)#0
%bl=getelementptr inbounds i8,i8*%bk,i64 -4
%bm=bitcast i8*%bl to i32*
store i32 1342177296,i32*%bm,align 4
store i8*%bk,i8**%d,align 8
%bn=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bo=bitcast i8*%bk to i8**
store i8*%bn,i8**%bo,align 8
%bp=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%bq=getelementptr inbounds i8,i8*%bk,i64 8
%br=bitcast i8*%bq to i8**
store i8*%bp,i8**%br,align 8
%bs=getelementptr inbounds i8,i8*%bk,i64 16
%bt=bitcast i8*%bs to i32*
store i32 3,i32*%bt,align 4
%bu=call i8*@sml_alloc(i32 inreg 12)#0
%bv=getelementptr inbounds i8,i8*%bu,i64 -4
%bw=bitcast i8*%bv to i32*
store i32 1342177288,i32*%bw,align 4
%bx=load i8*,i8**%d,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 i32*
store i32 1,i32*%bA,align 4
ret i8*%bu
}
define internal fastcc i32@_SMLLLN6TextIO8StreamIO14lineBufCopyVecE_468(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=getelementptr inbounds i8,i8*%i,i64 12
%q=bitcast i8*%p to i32*
%r=load i32,i32*%q,align 4
%s=getelementptr inbounds i8,i8*%i,i64 16
%t=bitcast i8*%s to i8**
%u=load i8*,i8**%t,align 8
store i8*%u,i8**%c,align 8
%v=call{i32,i1}@llvm.sadd.with.overflow.i32(i32%o,i32%r)#0
%w=extractvalue{i32,i1}%v,1
br i1%w,label%x,label%P
x:
store i8*null,i8**%c,align 8
%y=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%y,i8**%b,align 8
%z=call i8*@sml_alloc(i32 inreg 20)#0
%A=getelementptr inbounds i8,i8*%z,i64 -4
%B=bitcast i8*%A to i32*
store i32 1342177296,i32*%B,align 4
store i8*%z,i8**%c,align 8
%C=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%D=bitcast i8*%z to i8**
store i8*%C,i8**%D,align 8
%E=getelementptr inbounds i8,i8*%z,i64 8
%F=bitcast i8*%E to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@al,i64 0,i32 2,i64 0),i8**%F,align 8
%G=getelementptr inbounds i8,i8*%z,i64 16
%H=bitcast i8*%G to i32*
store i32 3,i32*%H,align 4
%I=call i8*@sml_alloc(i32 inreg 60)#0
%J=getelementptr inbounds i8,i8*%I,i64 -4
%K=bitcast i8*%J to i32*
store i32 1342177336,i32*%K,align 4
%L=getelementptr inbounds i8,i8*%I,i64 56
%M=bitcast i8*%L to i32*
store i32 1,i32*%M,align 4
%N=load i8*,i8**%c,align 8
%O=bitcast i8*%I to i8**
store i8*%N,i8**%O,align 8
call void@sml_raise(i8*inreg%I)#1
unreachable
P:
%Q=getelementptr inbounds i8,i8*%i,i64 24
%R=bitcast i8*%Q to i32*
%S=load i32,i32*%R,align 4
%T=add nsw i32%r,%o
%U=call i8*@sml_alloc(i32 inreg 20)#0
%V=bitcast i8*%U to i32*
%W=getelementptr inbounds i8,i8*%U,i64 -4
%X=bitcast i8*%W to i32*
store i32 1342177296,i32*%X,align 4
%Y=getelementptr inbounds i8,i8*%U,i64 12
%Z=bitcast i8*%Y to i32*
store i32 0,i32*%Z,align 1
store i32%o,i32*%V,align 4
%aa=getelementptr inbounds i8,i8*%U,i64 4
%ab=bitcast i8*%aa to i32*
store i32%S,i32*%ab,align 4
%ac=getelementptr inbounds i8,i8*%U,i64 8
%ad=bitcast i8*%ac to i32*
store i32 0,i32*%ad,align 4
%ae=getelementptr inbounds i8,i8*%U,i64 16
%af=bitcast i8*%ae to i32*
store i32 0,i32*%af,align 4
%ag=bitcast i8**%b to i32**
br label%ah
ah:
%ai=phi i32[0,%P],[%bs,%bn]
%aj=phi i32[%S,%P],[%bp,%bn]
%ak=phi i32[%o,%P],[%bo,%bn]
%al=icmp slt i32%ak,%T
br i1%al,label%am,label%bF
am:
%an=icmp slt i32%ak,0
br i1%an,label%aN,label%ao
ao:
%ap=load i32*,i32**%ag,align 8
%aq=getelementptr inbounds i32,i32*%ap,i64 -1
%ar=load i32,i32*%aq,align 4
%as=and i32%ar,268435455
%at=add nsw i32%as,-1
%au=icmp slt i32%ak,%at
br i1%au,label%av,label%aN
av:
%aw=bitcast i32*%ap to i8*
%ax=sext i32%ak to i64
%ay=getelementptr inbounds i8,i8*%aw,i64%ax
%az=load i8,i8*%ay,align 1
%aA=call i8*@sml_alloc(i32 inreg 20)#0
%aB=getelementptr inbounds i8,i8*%aA,i64 -4
%aC=bitcast i8*%aB to i32*
store i32 1342177296,i32*%aC,align 4
%aD=getelementptr inbounds i8,i8*%aA,i64 13
call void@llvm.memset.p0i8.i32(i8*%aD,i8 0,i32 3,i1 false)
%aE=load i8*,i8**%c,align 8
%aF=bitcast i8*%aA to i8**
store i8*%aE,i8**%aF,align 8
%aG=getelementptr inbounds i8,i8*%aA,i64 8
%aH=bitcast i8*%aG to i32*
store i32%aj,i32*%aH,align 4
%aI=getelementptr inbounds i8,i8*%aA,i64 12
store i8%az,i8*%aI,align 1
%aJ=getelementptr inbounds i8,i8*%aA,i64 16
%aK=bitcast i8*%aJ to i32*
store i32 1,i32*%aK,align 4
call fastcc void@_SMLFN9CharArray6updateE(i8*inreg%aA)
%aL=call{i32,i1}@llvm.sadd.with.overflow.i32(i32%aj,i32 1)#0
%aM=extractvalue{i32,i1}%aL,1
br i1%aM,label%a5,label%bn
aN:
store i8*null,i8**%c,align 8
%aO=load i8*,i8**@_SMLZ9Subscript,align 8
store i8*%aO,i8**%b,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**%c,align 8
%aS=load i8*,i8**%b,align 8
store i8*null,i8**%b,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,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@am,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**%c,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:
store i8*null,i8**%c,align 8
%a6=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%a6,i8**%b,align 8
%a7=call i8*@sml_alloc(i32 inreg 20)#0
%a8=getelementptr inbounds i8,i8*%a7,i64 -4
%a9=bitcast i8*%a8 to i32*
store i32 1342177296,i32*%a9,align 4
store i8*%a7,i8**%c,align 8
%ba=load i8*,i8**%b,align 8
store i8*null,i8**%b,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,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@an,i64 0,i32 2,i64 0),i8**%bd,align 8
%be=getelementptr inbounds i8,i8*%a7,i64 16
%bf=bitcast i8*%be to i32*
store i32 3,i32*%bf,align 4
%bg=call i8*@sml_alloc(i32 inreg 60)#0
%bh=getelementptr inbounds i8,i8*%bg,i64 -4
%bi=bitcast i8*%bh to i32*
store i32 1342177336,i32*%bi,align 4
%bj=getelementptr inbounds i8,i8*%bg,i64 56
%bk=bitcast i8*%bj to i32*
store i32 1,i32*%bk,align 4
%bl=load i8*,i8**%c,align 8
%bm=bitcast i8*%bg to i8**
store i8*%bl,i8**%bm,align 8
call void@sml_raise(i8*inreg%bg)#1
unreachable
bn:
%bo=add nsw i32%ak,1
%bp=add nsw i32%aj,1
%bq=icmp eq i8%az,10
%br=zext i1%bq to i32
%bs=or i32%ai,%br
%bt=call i8*@sml_alloc(i32 inreg 20)#0
%bu=bitcast i8*%bt to i32*
%bv=getelementptr inbounds i8,i8*%bt,i64 -4
%bw=bitcast i8*%bv to i32*
store i32 1342177296,i32*%bw,align 4
%bx=getelementptr inbounds i8,i8*%bt,i64 12
%by=bitcast i8*%bx to i32*
store i32 0,i32*%by,align 1
store i32%bo,i32*%bu,align 4
%bz=getelementptr inbounds i8,i8*%bt,i64 4
%bA=bitcast i8*%bz to i32*
store i32%bp,i32*%bA,align 4
%bB=getelementptr inbounds i8,i8*%bt,i64 8
%bC=bitcast i8*%bB to i32*
store i32%bs,i32*%bC,align 4
%bD=getelementptr inbounds i8,i8*%bt,i64 16
%bE=bitcast i8*%bD to i32*
store i32 0,i32*%bE,align 4
br label%ah
bF:
ret i32%ai
}
define internal fastcc i32@_SMLLLN6TextIO8StreamIO15blockBufCopyVecE_470(i8*inreg%a)#2 gc"smlsharp"{
k:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%b,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%i,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%b,align 8
br label%i
i:
%j=phi i8*[%h,%g],[%a,%k]
%l=bitcast i8*%j to i8**
%m=load i8*,i8**%l,align 8
store i8*%m,i8**%b,align 8
%n=getelementptr inbounds i8,i8*%j,i64 8
%o=bitcast i8*%n to i32*
%p=load i32,i32*%o,align 4
%q=getelementptr inbounds i8,i8*%j,i64 12
%r=bitcast i8*%q to i32*
%s=load i32,i32*%r,align 4
%t=getelementptr inbounds i8,i8*%j,i64 16
%u=bitcast i8*%t to i8**
%v=load i8*,i8**%u,align 8
store i8*%v,i8**%c,align 8
%w=getelementptr inbounds i8,i8*%j,i64 24
%x=bitcast i8*%w to i32*
%y=load i32,i32*%x,align 4
%z=call i8*@sml_alloc(i32 inreg 12)#0
%A=getelementptr inbounds i8,i8*%z,i64 -4
%B=bitcast i8*%A to i32*
store i32 1342177288,i32*%B,align 4
store i8*%z,i8**%d,align 8
%C=getelementptr inbounds i8,i8*%z,i64 4
%D=bitcast i8*%C to i32*
store i32 0,i32*%D,align 1
%E=bitcast i8*%z to i32*
store i32%s,i32*%E,align 4
%F=getelementptr inbounds i8,i8*%z,i64 8
%G=bitcast i8*%F to i32*
store i32 0,i32*%G,align 4
%H=call i8*@sml_alloc(i32 inreg 28)#0
%I=getelementptr inbounds i8,i8*%H,i64 -4
%J=bitcast i8*%I to i32*
store i32 1342177304,i32*%J,align 4
%K=getelementptr inbounds i8,i8*%H,i64 12
%L=bitcast i8*%K to i32*
store i32 0,i32*%L,align 1
%M=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%N=bitcast i8*%H to i8**
store i8*%M,i8**%N,align 8
%O=getelementptr inbounds i8,i8*%H,i64 8
%P=bitcast i8*%O to i32*
store i32%p,i32*%P,align 4
%Q=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%R=getelementptr inbounds i8,i8*%H,i64 16
%S=bitcast i8*%R to i8**
store i8*%Q,i8**%S,align 8
%T=getelementptr inbounds i8,i8*%H,i64 24
%U=bitcast i8*%T to i32*
store i32 5,i32*%U,align 4
%V=call fastcc i8*@_SMLFN15CharVectorSlice5sliceE(i8*inreg%H)
store i8*%V,i8**%b,align 8
%W=call i8*@sml_alloc(i32 inreg 28)#0
%X=bitcast i8*%W to i32*
%Y=getelementptr inbounds i8,i8*%W,i64 -4
%Z=bitcast i8*%Y to i32*
store i32 1342177304,i32*%Z,align 4
%aa=getelementptr inbounds i8,i8*%W,i64 4
%ab=bitcast i8*%aa to i32*
store i32 0,i32*%ab,align 1
store i32%y,i32*%X,align 4
%ac=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ad=getelementptr inbounds i8,i8*%W,i64 8
%ae=bitcast i8*%ad to i8**
store i8*%ac,i8**%ae,align 8
%af=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%ag=getelementptr inbounds i8,i8*%W,i64 16
%ah=bitcast i8*%ag to i8**
store i8*%af,i8**%ah,align 8
%ai=getelementptr inbounds i8,i8*%W,i64 24
%aj=bitcast i8*%ai to i32*
store i32 6,i32*%aj,align 4
call fastcc void@_SMLFN14CharArraySlice7copyVecE(i8*inreg%W)
ret i32 0
}
define fastcc void@_SMLFN6TextIO8StreamIO6outputE(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,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@a4,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]}>*@as,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,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@bM,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
switch i32%aF,label%aJ[
i32 2,label%aG
i32 1,label%a1
i32 0,label%a2
]
aG:
%aH=bitcast i8*%aB to i32*
%aI=bitcast i8**%e to i32**
br label%e1
aJ:
store i8*null,i8**%c,align 8
store i8*null,i8**%d,align 8
store i8*null,i8**%e,align 8
call void@sml_matchcomp_bug()
%aK=load i8*,i8**@_SMLZ5Match,align 8
store i8*%aK,i8**%b,align 8
%aL=call i8*@sml_alloc(i32 inreg 20)#0
%aM=getelementptr inbounds i8,i8*%aL,i64 -4
%aN=bitcast i8*%aM to i32*
store i32 1342177296,i32*%aN,align 4
store i8*%aL,i8**%c,align 8
%aO=load i8*,i8**%b,align 8
store i8*null,i8**%b,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]}>*@au,i64 0,i32 2,i64 0),i8**%aR,align 8
%aS=getelementptr inbounds i8,i8*%aL,i64 16
%aT=bitcast i8*%aS to i32*
store i32 3,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**%c,align 8
%a0=bitcast i8*%aU to i8**
store i8*%aZ,i8**%a0,align 8
call void@sml_raise(i8*inreg%aU)#1
unreachable
a1:
br label%a2
a2:
%a3=phi 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*),%a1],[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*),%aw]
store i8*%a3,i8**%f,align 8
%a4=call fastcc i32@_SMLFN9CharArray6lengthE(i8*inreg%ay)
%a5=bitcast i8**%c to i32**
%a6=load i32*,i32**%a5,align 8
%a7=getelementptr inbounds i32,i32*%a6,i64 -1
%a8=load i32,i32*%a7,align 4
%a9=and i32%a8,268435455
%ba=add nsw i32%a9,-1
%bb=icmp sgt i32%a9,%a4
br i1%bb,label%bc,label%bg
bc:
%bd=bitcast i32*%a6 to i8*
store i8*null,i8**%f,align 8
%be=bitcast i8**%e to i32**
%bf=load i32*,i32**%be,align 8
br label%e1
bg:
%bh=bitcast i8**%e to i32**
%bi=load i32*,i32**%bh,align 8
%bj=load i32,i32*%bi,align 4
%bk=call{i32,i1}@llvm.ssub.with.overflow.i32(i32%a4,i32%bj)#0
%bl=extractvalue{i32,i1}%bk,1
br i1%bl,label%bm,label%bE
bm:
store i8*null,i8**%c,align 8
store i8*null,i8**%d,align 8
store i8*null,i8**%e,align 8
store i8*null,i8**%f,align 8
%bn=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%bn,i8**%b,align 8
%bo=call i8*@sml_alloc(i32 inreg 20)#0
%bp=getelementptr inbounds i8,i8*%bo,i64 -4
%bq=bitcast i8*%bp to i32*
store i32 1342177296,i32*%bq,align 4
store i8*%bo,i8**%c,align 8
%br=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%bs=bitcast i8*%bo to i8**
store i8*%br,i8**%bs,align 8
%bt=getelementptr inbounds i8,i8*%bo,i64 8
%bu=bitcast i8*%bt to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@aq,i64 0,i32 2,i64 0),i8**%bu,align 8
%bv=getelementptr inbounds i8,i8*%bo,i64 16
%bw=bitcast i8*%bv to i32*
store i32 3,i32*%bw,align 4
%bx=call i8*@sml_alloc(i32 inreg 60)#0
%by=getelementptr inbounds i8,i8*%bx,i64 -4
%bz=bitcast i8*%by to i32*
store i32 1342177336,i32*%bz,align 4
%bA=getelementptr inbounds i8,i8*%bx,i64 56
%bB=bitcast i8*%bA to i32*
store i32 1,i32*%bB,align 4
%bC=load i8*,i8**%c,align 8
%bD=bitcast i8*%bx to i8**
store i8*%bC,i8**%bD,align 8
call void@sml_raise(i8*inreg%bx)#1
unreachable
bE:
%bF=sub nsw i32%a4,%bj
%bG=icmp sgt i32%ba,%bF
br i1%bG,label%bH,label%d8
bH:
%bI=call i8*@sml_alloc(i32 inreg 12)#0
%bJ=getelementptr inbounds i8,i8*%bI,i64 -4
%bK=bitcast i8*%bJ to i32*
store i32 1342177288,i32*%bK,align 4
store i8*%bI,i8**%g,align 8
%bL=getelementptr inbounds i8,i8*%bI,i64 4
%bM=bitcast i8*%bL to i32*
store i32 0,i32*%bM,align 1
%bN=bitcast i8*%bI to i32*
store i32%bF,i32*%bN,align 4
%bO=getelementptr inbounds i8,i8*%bI,i64 8
%bP=bitcast i8*%bO to i32*
store i32 0,i32*%bP,align 4
%bQ=call i8*@sml_alloc(i32 inreg 28)#0
%bR=getelementptr inbounds i8,i8*%bQ,i64 -4
%bS=bitcast i8*%bR to i32*
store i32 1342177304,i32*%bS,align 4
%bT=getelementptr inbounds i8,i8*%bQ,i64 12
%bU=bitcast i8*%bT to i32*
store i32 0,i32*%bU,align 1
%bV=load i8*,i8**%c,align 8
%bW=bitcast i8*%bQ to i8**
store i8*%bV,i8**%bW,align 8
%bX=getelementptr inbounds i8,i8*%bQ,i64 8
%bY=bitcast i8*%bX to i32*
store i32 0,i32*%bY,align 4
%bZ=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%b0=getelementptr inbounds i8,i8*%bQ,i64 16
%b1=bitcast i8*%b0 to i8**
store i8*%bZ,i8**%b1,align 8
%b2=getelementptr inbounds i8,i8*%bQ,i64 24
%b3=bitcast i8*%b2 to i32*
store i32 5,i32*%b3,align 4
%b4=call fastcc i8*@_SMLFN15CharVectorSlice5sliceE(i8*inreg%bQ)
store i8*%b4,i8**%g,align 8
%b5=call i8*@sml_alloc(i32 inreg 28)#0
%b6=bitcast i8*%b5 to i32*
%b7=getelementptr inbounds i8,i8*%b5,i64 -4
%b8=bitcast i8*%b7 to i32*
store i32 1342177304,i32*%b8,align 4
%b9=getelementptr inbounds i8,i8*%b5,i64 4
%ca=bitcast i8*%b9 to i32*
store i32 0,i32*%ca,align 1
store i32%bj,i32*%b6,align 4
%cb=load i8*,i8**%d,align 8
%cc=getelementptr inbounds i8,i8*%b5,i64 8
%cd=bitcast i8*%cc to i8**
store i8*%cb,i8**%cd,align 8
%ce=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%cf=getelementptr inbounds i8,i8*%b5,i64 16
%cg=bitcast i8*%cf to i8**
store i8*%ce,i8**%cg,align 8
%ch=getelementptr inbounds i8,i8*%b5,i64 24
%ci=bitcast i8*%ch to i32*
store i32 6,i32*%ci,align 4
call fastcc void@_SMLFN14CharArraySlice7copyVecE(i8*inreg%b5)
%cj=load i8*,i8**%b,align 8
%ck=getelementptr inbounds i8,i8*%cj,i64 40
%cl=bitcast i8*%ck to i8**
%cm=load i8*,i8**%cl,align 8
%cn=getelementptr inbounds i8,i8*%cm,i64 16
%co=bitcast i8*%cn to i8*(i8*,i8*)**
%cp=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%co,align 8
%cq=bitcast i8*%cm to i8**
%cr=load i8*,i8**%cq,align 8
store i8*%cr,i8**%g,align 8
%cs=load i8*,i8**%d,align 8
%ct=invoke fastcc i8*@_SMLFN14CharArraySlice4fullE(i8*inreg%cs)
to label%cu unwind label%cG
cu:
%cv=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%cw=invoke fastcc i8*%cp(i8*inreg%cv,i8*inreg%ct)
to label%cx unwind label%cG
cx:
%cy=load i8*,i8**%f,align 8
%cz=getelementptr inbounds i8,i8*%cy,i64 16
%cA=bitcast i8*%cz to i8*(i8*,i8*)**
%cB=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%cA,align 8
%cC=bitcast i8*%cy to i8**
%cD=load i8*,i8**%cC,align 8
store i8*%cD,i8**%f,align 8
%cE=call{i32,i1}@llvm.ssub.with.overflow.i32(i32%ba,i32%bF)#0
%cF=extractvalue{i32,i1}%cE,1
br i1%cF,label%dp,label%dH
cG:
%cH=landingpad{i8*,i8*}
catch i8*null
%cI=extractvalue{i8*,i8*}%cH,1
%cJ=bitcast i8*%cI to i8**
%cK=load i8*,i8**%cJ,align 8
store i8*null,i8**%d,align 8
store i8*null,i8**%g,align 8
store i8*%cK,i8**%f,align 8
%cL=load i32*,i32**%bh,align 8
store i8*null,i8**%e,align 8
store i32%a4,i32*%cL,align 4
%cM=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%cM,i8**%c,align 8
%cN=load i8*,i8**%b,align 8
%cO=getelementptr inbounds i8,i8*%cN,i64 56
%cP=bitcast i8*%cO to i8**
%cQ=load i8*,i8**%cP,align 8
%cR=getelementptr inbounds i8,i8*%cQ,i64 56
%cS=bitcast i8*%cR to i8**
%cT=load i8*,i8**%cS,align 8
store i8*%cT,i8**%b,align 8
%cU=call i8*@sml_alloc(i32 inreg 28)#0
%cV=getelementptr inbounds i8,i8*%cU,i64 -4
%cW=bitcast i8*%cV to i32*
store i32 1342177304,i32*%cW,align 4
store i8*%cU,i8**%d,align 8
%cX=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%cY=bitcast i8*%cU to i8**
store i8*%cX,i8**%cY,align 8
%cZ=getelementptr inbounds i8,i8*%cU,i64 8
%c0=bitcast i8*%cZ to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[7x i8]}>,<{[4x i8],i32,[7x i8]}>*@as,i64 0,i32 2,i64 0),i8**%c0,align 8
%c1=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%c2=getelementptr inbounds i8,i8*%cU,i64 16
%c3=bitcast i8*%c2 to i8**
store i8*%c1,i8**%c3,align 8
%c4=getelementptr inbounds i8,i8*%cU,i64 24
%c5=bitcast i8*%c4 to i32*
store i32 7,i32*%c5,align 4
%c6=call i8*@sml_alloc(i32 inreg 28)#0
%c7=getelementptr inbounds i8,i8*%c6,i64 -4
%c8=bitcast i8*%c7 to i32*
store i32 1342177304,i32*%c8,align 4
store i8*%c6,i8**%b,align 8
%c9=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%da=bitcast i8*%c6 to i8**
store i8*%c9,i8**%da,align 8
%db=getelementptr inbounds i8,i8*%c6,i64 8
%dc=bitcast i8*%db to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@bM,i64 0,i32 2,i64 0),i8**%dc,align 8
%dd=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%de=getelementptr inbounds i8,i8*%c6,i64 16
%df=bitcast i8*%de to i8**
store i8*%dd,i8**%df,align 8
%dg=getelementptr inbounds i8,i8*%c6,i64 24
%dh=bitcast i8*%dg to i32*
store i32 7,i32*%dh,align 4
%di=call i8*@sml_alloc(i32 inreg 60)#0
%dj=getelementptr inbounds i8,i8*%di,i64 -4
%dk=bitcast i8*%dj to i32*
store i32 1342177336,i32*%dk,align 4
%dl=getelementptr inbounds i8,i8*%di,i64 56
%dm=bitcast i8*%dl to i32*
store i32 1,i32*%dm,align 4
%dn=load i8*,i8**%b,align 8
%do=bitcast i8*%di to i8**
store i8*%dn,i8**%do,align 8
call void@sml_raise(i8*inreg%di)#1
unreachable
dp:
store i8*null,i8**%c,align 8
store i8*null,i8**%d,align 8
store i8*null,i8**%e,align 8
store i8*null,i8**%f,align 8
%dq=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%dq,i8**%b,align 8
%dr=call i8*@sml_alloc(i32 inreg 20)#0
%ds=getelementptr inbounds i8,i8*%dr,i64 -4
%dt=bitcast i8*%ds to i32*
store i32 1342177296,i32*%dt,align 4
store i8*%dr,i8**%c,align 8
%du=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%dv=bitcast i8*%dr to i8**
store i8*%du,i8**%dv,align 8
%dw=getelementptr inbounds i8,i8*%dr,i64 8
%dx=bitcast i8*%dw to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@at,i64 0,i32 2,i64 0),i8**%dx,align 8
%dy=getelementptr inbounds i8,i8*%dr,i64 16
%dz=bitcast i8*%dy to i32*
store i32 3,i32*%dz,align 4
%dA=call i8*@sml_alloc(i32 inreg 60)#0
%dB=getelementptr inbounds i8,i8*%dA,i64 -4
%dC=bitcast i8*%dB to i32*
store i32 1342177336,i32*%dC,align 4
%dD=getelementptr inbounds i8,i8*%dA,i64 56
%dE=bitcast i8*%dD to i32*
store i32 1,i32*%dE,align 4
%dF=load i8*,i8**%c,align 8
%dG=bitcast i8*%dA to i8**
store i8*%dF,i8**%dG,align 8
call void@sml_raise(i8*inreg%dA)#1
unreachable
dH:
%dI=sub nsw i32%ba,%bF
%dJ=call i8*@sml_alloc(i32 inreg 36)#0
%dK=getelementptr inbounds i8,i8*%dJ,i64 -4
%dL=bitcast i8*%dK to i32*
store i32 1342177312,i32*%dL,align 4
%dM=getelementptr inbounds i8,i8*%dJ,i64 28
%dN=bitcast i8*%dM to i32*
store i32 0,i32*%dN,align 1
%dO=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%dP=bitcast i8*%dJ to i8**
store i8*%dO,i8**%dP,align 8
%dQ=getelementptr inbounds i8,i8*%dJ,i64 8
%dR=bitcast i8*%dQ to i32*
store i32%bF,i32*%dR,align 4
%dS=getelementptr inbounds i8,i8*%dJ,i64 12
%dT=bitcast i8*%dS to i32*
store i32%dI,i32*%dT,align 4
%dU=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%dV=getelementptr inbounds i8,i8*%dJ,i64 16
%dW=bitcast i8*%dV to i8**
store i8*%dU,i8**%dW,align 8
%dX=getelementptr inbounds i8,i8*%dJ,i64 24
%dY=bitcast i8*%dX to i32*
store i32 0,i32*%dY,align 4
%dZ=getelementptr inbounds i8,i8*%dJ,i64 32
%d0=bitcast i8*%dZ to i32*
store i32 5,i32*%d0,align 4
%d1=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%d2=call fastcc i8*%cB(i8*inreg%d1,i8*inreg%dJ)
%d3=bitcast i8*%d2 to i32*
%d4=load i32,i32*%d3,align 4
%d5=load i32*,i32**%bh,align 8
store i32%dI,i32*%d5,align 4
%d6=icmp eq i32%d4,0
br i1%d6,label%d7,label%gI
d7:
ret void
d8:
%d9=load i8*,i8**%f,align 8
%ea=getelementptr inbounds i8,i8*%d9,i64 16
%eb=bitcast i8*%ea to i8*(i8*,i8*)**
%ec=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%eb,align 8
%ed=bitcast i8*%d9 to i8**
%ee=load i8*,i8**%ed,align 8
store i8*%ee,i8**%f,align 8
%ef=call i8*@sml_alloc(i32 inreg 36)#0
%eg=getelementptr inbounds i8,i8*%ef,i64 -4
%eh=bitcast i8*%eg to i32*
store i32 1342177312,i32*%eh,align 4
%ei=getelementptr inbounds i8,i8*%ef,i64 28
%ej=bitcast i8*%ei to i32*
store i32 0,i32*%ej,align 1
%ek=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%el=bitcast i8*%ef to i8**
store i8*%ek,i8**%el,align 8
%em=getelementptr inbounds i8,i8*%ef,i64 8
%en=bitcast i8*%em to i32*
store i32 0,i32*%en,align 4
%eo=getelementptr inbounds i8,i8*%ef,i64 12
%ep=bitcast i8*%eo to i32*
store i32%ba,i32*%ep,align 4
%eq=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%er=getelementptr inbounds i8,i8*%ef,i64 16
%es=bitcast i8*%er to i8**
store i8*%eq,i8**%es,align 8
%et=getelementptr inbounds i8,i8*%ef,i64 24
%eu=bitcast i8*%et to i32*
store i32%bj,i32*%eu,align 4
%ev=getelementptr inbounds i8,i8*%ef,i64 32
%ew=bitcast i8*%ev to i32*
store i32 5,i32*%ew,align 4
%ex=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%ey=call fastcc i8*%ec(i8*inreg%ex,i8*inreg%ef)
%ez=call{i32,i1}@llvm.sadd.with.overflow.i32(i32%bj,i32%ba)#0
%eA=extractvalue{i32,i1}%ez,1
br i1%eA,label%eB,label%eT
eB:
store i8*null,i8**%e,align 8
%eC=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%eC,i8**%b,align 8
%eD=call i8*@sml_alloc(i32 inreg 20)#0
%eE=getelementptr inbounds i8,i8*%eD,i64 -4
%eF=bitcast i8*%eE to i32*
store i32 1342177296,i32*%eF,align 4
store i8*%eD,i8**%c,align 8
%eG=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%eH=bitcast i8*%eD to i8**
store i8*%eG,i8**%eH,align 8
%eI=getelementptr inbounds i8,i8*%eD,i64 8
%eJ=bitcast i8*%eI to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@ar,i64 0,i32 2,i64 0),i8**%eJ,align 8
%eK=getelementptr inbounds i8,i8*%eD,i64 16
%eL=bitcast i8*%eK to i32*
store i32 3,i32*%eL,align 4
%eM=call i8*@sml_alloc(i32 inreg 60)#0
%eN=getelementptr inbounds i8,i8*%eM,i64 -4
%eO=bitcast i8*%eN to i32*
store i32 1342177336,i32*%eO,align 4
%eP=getelementptr inbounds i8,i8*%eM,i64 56
%eQ=bitcast i8*%eP to i32*
store i32 1,i32*%eQ,align 4
%eR=load i8*,i8**%c,align 8
%eS=bitcast i8*%eM to i8**
store i8*%eR,i8**%eS,align 8
call void@sml_raise(i8*inreg%eM)#1
unreachable
eT:
%eU=bitcast i8*%ey to i32*
%eV=load i32,i32*%eU,align 4
%eW=add nsw i32%bj,%ba
%eX=load i32*,i32**%bh,align 8
store i32%eW,i32*%eX,align 4
%eY=icmp eq i32%eV,0
%eZ=icmp ne i32%ba,%bF
%e0=and i1%eZ,%eY
br i1%e0,label%d7,label%gI
e1:
%e2=phi i32**[%aI,%aG],[%be,%bc]
%e3=phi i8*[%s,%aG],[%bd,%bc]
%e4=phi i32*[%aH,%aG],[%bf,%bc]
%e5=load i32,i32*%e4,align 4
%e6=icmp eq i32%e5,0
br i1%e6,label%fK,label%e7
e7:
%e8=load i8*,i8**%b,align 8
%e9=getelementptr inbounds i8,i8*%e8,i64 40
%fa=bitcast i8*%e9 to i8**
%fb=load i8*,i8**%fa,align 8
%fc=getelementptr inbounds i8,i8*%fb,i64 16
%fd=bitcast i8*%fc to i8*(i8*,i8*)**
%fe=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%fd,align 8
%ff=bitcast i8*%fb to i8**
%fg=load i8*,i8**%ff,align 8
store i8*%fg,i8**%f,align 8
%fh=call i8*@sml_alloc(i32 inreg 12)#0
%fi=getelementptr inbounds i8,i8*%fh,i64 -4
%fj=bitcast i8*%fi to i32*
store i32 1342177288,i32*%fj,align 4
store i8*%fh,i8**%g,align 8
%fk=getelementptr inbounds i8,i8*%fh,i64 4
%fl=bitcast i8*%fk to i32*
store i32 0,i32*%fl,align 1
%fm=bitcast i8*%fh to i32*
store i32%e5,i32*%fm,align 4
%fn=getelementptr inbounds i8,i8*%fh,i64 8
%fo=bitcast i8*%fn to i32*
store i32 0,i32*%fo,align 4
%fp=call i8*@sml_alloc(i32 inreg 28)#0
%fq=getelementptr inbounds i8,i8*%fp,i64 -4
%fr=bitcast i8*%fq to i32*
store i32 1342177304,i32*%fr,align 4
%fs=getelementptr inbounds i8,i8*%fp,i64 12
%ft=bitcast i8*%fs to i32*
store i32 0,i32*%ft,align 1
%fu=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%fv=bitcast i8*%fp to i8**
store i8*%fu,i8**%fv,align 8
%fw=getelementptr inbounds i8,i8*%fp,i64 8
%fx=bitcast i8*%fw to i32*
store i32 0,i32*%fx,align 4
%fy=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%fz=getelementptr inbounds i8,i8*%fp,i64 16
%fA=bitcast i8*%fz to i8**
store i8*%fy,i8**%fA,align 8
%fB=getelementptr inbounds i8,i8*%fp,i64 24
%fC=bitcast i8*%fB to i32*
store i32 5,i32*%fC,align 4
%fD=invoke fastcc i8*@_SMLFN14CharArraySlice5sliceE(i8*inreg%fp)
to label%fE unwind label%f0
fE:
%fF=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%fG=invoke fastcc i8*%fe(i8*inreg%fF,i8*inreg%fD)
to label%fH unwind label%f0
fH:
%fI=load i32*,i32**%e2,align 8
store i8*null,i8**%e,align 8
store i32 0,i32*%fI,align 4
%fJ=load i8*,i8**%c,align 8
br label%fL
fK:
store i8*null,i8**%e,align 8
br label%fL
fL:
%fM=phi i8*[%e3,%fK],[%fJ,%fH]
%fN=load i8*,i8**%b,align 8
%fO=getelementptr inbounds i8,i8*%fN,i64 48
%fP=bitcast i8*%fO to i8**
%fQ=load i8*,i8**%fP,align 8
%fR=getelementptr inbounds i8,i8*%fQ,i64 16
%fS=bitcast i8*%fR to i8*(i8*,i8*)**
%fT=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%fS,align 8
%fU=bitcast i8*%fQ to i8**
%fV=load i8*,i8**%fU,align 8
store i8*%fV,i8**%d,align 8
store i8*null,i8**%c,align 8
%fW=invoke fastcc i8*@_SMLFN15CharVectorSlice4fullE(i8*inreg%fM)
to label%fX unwind label%f0
fX:
%fY=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%fZ=invoke fastcc i8*%fT(i8*inreg%fY,i8*inreg%fW)
to label%d7 unwind label%f0
f0:
%f1=landingpad{i8*,i8*}
catch i8*null
%f2=extractvalue{i8*,i8*}%f1,1
%f3=bitcast i8*%f2 to i8**
%f4=load i8*,i8**%f3,align 8
store i8*null,i8**%f,align 8
store i8*null,i8**%d,align 8
store i8*%f4,i8**%e,align 8
%f5=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%f5,i8**%c,align 8
%f6=load i8*,i8**%b,align 8
%f7=getelementptr inbounds i8,i8*%f6,i64 56
%f8=bitcast i8*%f7 to i8**
%f9=load i8*,i8**%f8,align 8
%ga=getelementptr inbounds i8,i8*%f9,i64 56
%gb=bitcast i8*%ga to i8**
%gc=load i8*,i8**%gb,align 8
store i8*%gc,i8**%b,align 8
%gd=call i8*@sml_alloc(i32 inreg 28)#0
%ge=getelementptr inbounds i8,i8*%gd,i64 -4
%gf=bitcast i8*%ge to i32*
store i32 1342177304,i32*%gf,align 4
store i8*%gd,i8**%d,align 8
%gg=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%gh=bitcast i8*%gd to i8**
store i8*%gg,i8**%gh,align 8
%gi=getelementptr inbounds i8,i8*%gd,i64 8
%gj=bitcast i8*%gi to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[7x i8]}>,<{[4x i8],i32,[7x i8]}>*@as,i64 0,i32 2,i64 0),i8**%gj,align 8
%gk=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%gl=getelementptr inbounds i8,i8*%gd,i64 16
%gm=bitcast i8*%gl to i8**
store i8*%gk,i8**%gm,align 8
%gn=getelementptr inbounds i8,i8*%gd,i64 24
%go=bitcast i8*%gn to i32*
store i32 7,i32*%go,align 4
%gp=call i8*@sml_alloc(i32 inreg 28)#0
%gq=getelementptr inbounds i8,i8*%gp,i64 -4
%gr=bitcast i8*%gq to i32*
store i32 1342177304,i32*%gr,align 4
store i8*%gp,i8**%b,align 8
%gs=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%gt=bitcast i8*%gp to i8**
store i8*%gs,i8**%gt,align 8
%gu=getelementptr inbounds i8,i8*%gp,i64 8
%gv=bitcast i8*%gu to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@bM,i64 0,i32 2,i64 0),i8**%gv,align 8
%gw=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%gx=getelementptr inbounds i8,i8*%gp,i64 16
%gy=bitcast i8*%gx to i8**
store i8*%gw,i8**%gy,align 8
%gz=getelementptr inbounds i8,i8*%gp,i64 24
%gA=bitcast i8*%gz to i32*
store i32 7,i32*%gA,align 4
%gB=call i8*@sml_alloc(i32 inreg 60)#0
%gC=getelementptr inbounds i8,i8*%gB,i64 -4
%gD=bitcast i8*%gC to i32*
store i32 1342177336,i32*%gD,align 4
%gE=getelementptr inbounds i8,i8*%gB,i64 56
%gF=bitcast i8*%gE to i32*
store i32 1,i32*%gF,align 4
%gG=load i8*,i8**%b,align 8
%gH=bitcast i8*%gB to i8**
store i8*%gG,i8**%gH,align 8
call void@sml_raise(i8*inreg%gB)#1
unreachable
gI:
%gJ=bitcast i8**%b to i8***
%gK=load i8**,i8***%gJ,align 8
%gL=load i8*,i8**%gK,align 8
store i8*%gL,i8**%c,align 8
%gM=getelementptr inbounds i8*,i8**%gK,i64 4
%gN=load i8*,i8**%gM,align 8
store i8*%gN,i8**%d,align 8
%gO=getelementptr inbounds i8*,i8**%gK,i64 5
%gP=load i8*,i8**%gO,align 8
%gQ=bitcast i8*%gN to i32*
%gR=load i32,i32*%gQ,align 4
%gS=icmp eq i32%gR,0
br i1%gS,label%d7,label%gT
gT:
%gU=getelementptr inbounds i8,i8*%gP,i64 16
%gV=bitcast i8*%gU to i8*(i8*,i8*)**
%gW=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%gV,align 8
%gX=bitcast i8*%gP to i8**
%gY=load i8*,i8**%gX,align 8
store i8*%gY,i8**%e,align 8
%gZ=call i8*@sml_alloc(i32 inreg 12)#0
%g0=getelementptr inbounds i8,i8*%gZ,i64 -4
%g1=bitcast i8*%g0 to i32*
store i32 1342177288,i32*%g1,align 4
store i8*%gZ,i8**%f,align 8
%g2=getelementptr inbounds i8,i8*%gZ,i64 4
%g3=bitcast i8*%g2 to i32*
store i32 0,i32*%g3,align 1
%g4=bitcast i8*%gZ to i32*
store i32%gR,i32*%g4,align 4
%g5=getelementptr inbounds i8,i8*%gZ,i64 8
%g6=bitcast i8*%g5 to i32*
store i32 0,i32*%g6,align 4
%g7=call i8*@sml_alloc(i32 inreg 28)#0
%g8=getelementptr inbounds i8,i8*%g7,i64 -4
%g9=bitcast i8*%g8 to i32*
store i32 1342177304,i32*%g9,align 4
%ha=getelementptr inbounds i8,i8*%g7,i64 12
%hb=bitcast i8*%ha to i32*
store i32 0,i32*%hb,align 1
%hc=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%hd=bitcast i8*%g7 to i8**
store i8*%hc,i8**%hd,align 8
%he=getelementptr inbounds i8,i8*%g7,i64 8
%hf=bitcast i8*%he to i32*
store i32 0,i32*%hf,align 4
%hg=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%hh=getelementptr inbounds i8,i8*%g7,i64 16
%hi=bitcast i8*%hh to i8**
store i8*%hg,i8**%hi,align 8
%hj=getelementptr inbounds i8,i8*%g7,i64 24
%hk=bitcast i8*%hj to i32*
store i32 5,i32*%hk,align 4
%hl=invoke fastcc i8*@_SMLFN14CharArraySlice5sliceE(i8*inreg%g7)
to label%hm unwind label%hs
hm:
%hn=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%ho=invoke fastcc i8*%gW(i8*inreg%hn,i8*inreg%hl)
to label%hp unwind label%hs
hp:
%hq=bitcast i8**%d to i32**
%hr=load i32*,i32**%hq,align 8
store i32 0,i32*%hr,align 4
ret void
hs:
%ht=landingpad{i8*,i8*}
catch i8*null
%hu=extractvalue{i8*,i8*}%ht,1
%hv=bitcast i8*%hu to i8**
%hw=load i8*,i8**%hv,align 8
store i8*null,i8**%d,align 8
store i8*%hw,i8**%e,align 8
%hx=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%hx,i8**%c,align 8
%hy=load i8*,i8**%b,align 8
%hz=getelementptr inbounds i8,i8*%hy,i64 56
%hA=bitcast i8*%hz to i8**
%hB=load i8*,i8**%hA,align 8
%hC=getelementptr inbounds i8,i8*%hB,i64 56
%hD=bitcast i8*%hC to i8**
%hE=load i8*,i8**%hD,align 8
store i8*%hE,i8**%b,align 8
%hF=call i8*@sml_alloc(i32 inreg 28)#0
%hG=getelementptr inbounds i8,i8*%hF,i64 -4
%hH=bitcast i8*%hG to i32*
store i32 1342177304,i32*%hH,align 4
store i8*%hF,i8**%d,align 8
%hI=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%hJ=bitcast i8*%hF to i8**
store i8*%hI,i8**%hJ,align 8
%hK=getelementptr inbounds i8,i8*%hF,i64 8
%hL=bitcast i8*%hK to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[7x i8]}>,<{[4x i8],i32,[7x i8]}>*@as,i64 0,i32 2,i64 0),i8**%hL,align 8
%hM=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%hN=getelementptr inbounds i8,i8*%hF,i64 16
%hO=bitcast i8*%hN to i8**
store i8*%hM,i8**%hO,align 8
%hP=getelementptr inbounds i8,i8*%hF,i64 24
%hQ=bitcast i8*%hP to i32*
store i32 7,i32*%hQ,align 4
%hR=call i8*@sml_alloc(i32 inreg 28)#0
%hS=getelementptr inbounds i8,i8*%hR,i64 -4
%hT=bitcast i8*%hS to i32*
store i32 1342177304,i32*%hT,align 4
store i8*%hR,i8**%b,align 8
%hU=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%hV=bitcast i8*%hR to i8**
store i8*%hU,i8**%hV,align 8
%hW=getelementptr inbounds i8,i8*%hR,i64 8
%hX=bitcast i8*%hW to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@bM,i64 0,i32 2,i64 0),i8**%hX,align 8
%hY=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%hZ=getelementptr inbounds i8,i8*%hR,i64 16
%h0=bitcast i8*%hZ to i8**
store i8*%hY,i8**%h0,align 8
%h1=getelementptr inbounds i8,i8*%hR,i64 24
%h2=bitcast i8*%h1 to i32*
store i32 7,i32*%h2,align 4
%h3=call i8*@sml_alloc(i32 inreg 60)#0
%h4=getelementptr inbounds i8,i8*%h3,i64 -4
%h5=bitcast i8*%h4 to i32*
store i32 1342177336,i32*%h5,align 4
%h6=getelementptr inbounds i8,i8*%h3,i64 56
%h7=bitcast i8*%h6 to i32*
store i32 1,i32*%h7,align 4
%h8=load i8*,i8**%b,align 8
%h9=bitcast i8*%h3 to i8**
store i8*%h8,i8**%h9,align 8
call void@sml_raise(i8*inreg%h3)#1
unreachable
}
define fastcc void@_SMLFN6TextIO8StreamIO7output1E(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,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@a4,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]}>*@az,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,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@bM,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
switch i32%aH,label%aI[
i32 2,label%fd
i32 1,label%c6
i32 0,label%a0
]
aI:
store i8*null,i8**%c,align 8
store i8*null,i8**%d,align 8
store i8*null,i8**%e,align 8
call void@sml_matchcomp_bug()
%aJ=load i8*,i8**@_SMLZ5Match,align 8
store i8*%aJ,i8**%b,align 8
%aK=call i8*@sml_alloc(i32 inreg 20)#0
%aL=getelementptr inbounds i8,i8*%aK,i64 -4
%aM=bitcast i8*%aL to i32*
store i32 1342177296,i32*%aM,align 4
store i8*%aK,i8**%c,align 8
%aN=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aO=bitcast i8*%aK to i8**
store i8*%aN,i8**%aO,align 8
%aP=getelementptr inbounds i8,i8*%aK,i64 8
%aQ=bitcast i8*%aP to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@aA,i64 0,i32 2,i64 0),i8**%aQ,align 8
%aR=getelementptr inbounds i8,i8*%aK,i64 16
%aS=bitcast i8*%aR to i32*
store i32 3,i32*%aS,align 4
%aT=call i8*@sml_alloc(i32 inreg 60)#0
%aU=getelementptr inbounds i8,i8*%aT,i64 -4
%aV=bitcast i8*%aU to i32*
store i32 1342177336,i32*%aV,align 4
%aW=getelementptr inbounds i8,i8*%aT,i64 56
%aX=bitcast i8*%aW to i32*
store i32 1,i32*%aX,align 4
%aY=load i8*,i8**%c,align 8
%aZ=bitcast i8*%aT to i8**
store i8*%aY,i8**%aZ,align 8
call void@sml_raise(i8*inreg%aT)#1
unreachable
a0:
store i8*null,i8**%e,align 8
%a1=bitcast i8**%d to i32**
%a2=load i32,i32*%H,align 4
%a3=call{i32,i1}@llvm.sadd.with.overflow.i32(i32%a2,i32 1)#0
%a4=extractvalue{i32,i1}%a3,1
br i1%a4,label%a5,label%bn
a5:
store i8*null,i8**%c,align 8
store i8*null,i8**%d,align 8
%a6=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%a6,i8**%b,align 8
%a7=call i8*@sml_alloc(i32 inreg 20)#0
%a8=getelementptr inbounds i8,i8*%a7,i64 -4
%a9=bitcast i8*%a8 to i32*
store i32 1342177296,i32*%a9,align 4
store i8*%a7,i8**%c,align 8
%ba=load i8*,i8**%b,align 8
store i8*null,i8**%b,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,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@ay,i64 0,i32 2,i64 0),i8**%bd,align 8
%be=getelementptr inbounds i8,i8*%a7,i64 16
%bf=bitcast i8*%be to i32*
store i32 3,i32*%bf,align 4
%bg=call i8*@sml_alloc(i32 inreg 60)#0
%bh=getelementptr inbounds i8,i8*%bg,i64 -4
%bi=bitcast i8*%bh to i32*
store i32 1342177336,i32*%bi,align 4
%bj=getelementptr inbounds i8,i8*%bg,i64 56
%bk=bitcast i8*%bj to i32*
store i32 1,i32*%bk,align 4
%bl=load i8*,i8**%c,align 8
%bm=bitcast i8*%bg to i8**
store i8*%bl,i8**%bm,align 8
call void@sml_raise(i8*inreg%bg)#1
unreachable
bn:
%bo=add nsw i32%a2,1
%bp=call i8*@sml_alloc(i32 inreg 20)#0
%bq=getelementptr inbounds i8,i8*%bp,i64 -4
%br=bitcast i8*%bq to i32*
store i32 1342177296,i32*%br,align 4
%bs=getelementptr inbounds i8,i8*%bp,i64 13
call void@llvm.memset.p0i8.i32(i8*%bs,i8 0,i32 3,i1 false)
%bt=load i8*,i8**%c,align 8
%bu=bitcast i8*%bp to i8**
store i8*%bt,i8**%bu,align 8
%bv=getelementptr inbounds i8,i8*%bp,i64 8
%bw=bitcast i8*%bv to i32*
store i32%a2,i32*%bw,align 4
%bx=getelementptr inbounds i8,i8*%bp,i64 12
store i8%B,i8*%bx,align 1
%by=getelementptr inbounds i8,i8*%bp,i64 16
%bz=bitcast i8*%by to i32*
store i32 1,i32*%bz,align 4
call fastcc void@_SMLFN9CharArray6updateE(i8*inreg%bp)
%bA=load i32*,i32**%a1,align 8
store i8*null,i8**%d,align 8
store i32%bo,i32*%bA,align 4
%bB=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bC=call fastcc i32@_SMLFN9CharArray6lengthE(i8*inreg%bB)
%bD=icmp eq i32%bo,%bC
br i1%bD,label%bE,label%c5
bE:
%bF=bitcast i8**%b to i8***
%bG=load i8**,i8***%bF,align 8
%bH=load i8*,i8**%bG,align 8
store i8*%bH,i8**%c,align 8
%bI=getelementptr inbounds i8*,i8**%bG,i64 4
%bJ=load i8*,i8**%bI,align 8
store i8*%bJ,i8**%d,align 8
%bK=getelementptr inbounds i8*,i8**%bG,i64 5
%bL=load i8*,i8**%bK,align 8
%bM=bitcast i8*%bJ to i32*
%bN=load i32,i32*%bM,align 4
%bO=icmp eq i32%bN,0
br i1%bO,label%c5,label%bP
bP:
%bQ=getelementptr inbounds i8,i8*%bL,i64 16
%bR=bitcast i8*%bQ to i8*(i8*,i8*)**
%bS=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bR,align 8
%bT=bitcast i8*%bL to i8**
%bU=load i8*,i8**%bT,align 8
store i8*%bU,i8**%e,align 8
%bV=call i8*@sml_alloc(i32 inreg 12)#0
%bW=getelementptr inbounds i8,i8*%bV,i64 -4
%bX=bitcast i8*%bW to i32*
store i32 1342177288,i32*%bX,align 4
store i8*%bV,i8**%f,align 8
%bY=getelementptr inbounds i8,i8*%bV,i64 4
%bZ=bitcast i8*%bY to i32*
store i32 0,i32*%bZ,align 1
%b0=bitcast i8*%bV to i32*
store i32%bN,i32*%b0,align 4
%b1=getelementptr inbounds i8,i8*%bV,i64 8
%b2=bitcast i8*%b1 to i32*
store i32 0,i32*%b2,align 4
%b3=call i8*@sml_alloc(i32 inreg 28)#0
%b4=getelementptr inbounds i8,i8*%b3,i64 -4
%b5=bitcast i8*%b4 to i32*
store i32 1342177304,i32*%b5,align 4
%b6=getelementptr inbounds i8,i8*%b3,i64 12
%b7=bitcast i8*%b6 to i32*
store i32 0,i32*%b7,align 1
%b8=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%b9=bitcast i8*%b3 to i8**
store i8*%b8,i8**%b9,align 8
%ca=getelementptr inbounds i8,i8*%b3,i64 8
%cb=bitcast i8*%ca to i32*
store i32 0,i32*%cb,align 4
%cc=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%cd=getelementptr inbounds i8,i8*%b3,i64 16
%ce=bitcast i8*%cd to i8**
store i8*%cc,i8**%ce,align 8
%cf=getelementptr inbounds i8,i8*%b3,i64 24
%cg=bitcast i8*%cf to i32*
store i32 5,i32*%cg,align 4
%ch=invoke fastcc i8*@_SMLFN14CharArraySlice5sliceE(i8*inreg%b3)
to label%ci unwind label%cn
ci:
%cj=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%ck=invoke fastcc i8*%bS(i8*inreg%cj,i8*inreg%ch)
to label%cl unwind label%cn
cl:
%cm=load i32*,i32**%a1,align 8
store i32 0,i32*%cm,align 4
ret void
cn:
%co=landingpad{i8*,i8*}
catch i8*null
%cp=extractvalue{i8*,i8*}%co,1
%cq=bitcast i8*%cp to i8**
%cr=load i8*,i8**%cq,align 8
store i8*null,i8**%d,align 8
store i8*%cr,i8**%e,align 8
%cs=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%cs,i8**%c,align 8
%ct=load i8*,i8**%b,align 8
%cu=getelementptr inbounds i8,i8*%ct,i64 56
%cv=bitcast i8*%cu to i8**
%cw=load i8*,i8**%cv,align 8
%cx=getelementptr inbounds i8,i8*%cw,i64 56
%cy=bitcast i8*%cx to i8**
%cz=load i8*,i8**%cy,align 8
store i8*%cz,i8**%b,align 8
%cA=call i8*@sml_alloc(i32 inreg 28)#0
%cB=getelementptr inbounds i8,i8*%cA,i64 -4
%cC=bitcast i8*%cB to i32*
store i32 1342177304,i32*%cC,align 4
store i8*%cA,i8**%d,align 8
%cD=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%cE=bitcast i8*%cA to i8**
store i8*%cD,i8**%cE,align 8
%cF=getelementptr inbounds i8,i8*%cA,i64 8
%cG=bitcast i8*%cF to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[8x i8]}>,<{[4x i8],i32,[8x i8]}>*@az,i64 0,i32 2,i64 0),i8**%cG,align 8
%cH=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%cI=getelementptr inbounds i8,i8*%cA,i64 16
%cJ=bitcast i8*%cI to i8**
store i8*%cH,i8**%cJ,align 8
%cK=getelementptr inbounds i8,i8*%cA,i64 24
%cL=bitcast i8*%cK to i32*
store i32 7,i32*%cL,align 4
%cM=call i8*@sml_alloc(i32 inreg 28)#0
%cN=getelementptr inbounds i8,i8*%cM,i64 -4
%cO=bitcast i8*%cN to i32*
store i32 1342177304,i32*%cO,align 4
store i8*%cM,i8**%b,align 8
%cP=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%cQ=bitcast i8*%cM to i8**
store i8*%cP,i8**%cQ,align 8
%cR=getelementptr inbounds i8,i8*%cM,i64 8
%cS=bitcast i8*%cR to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@bM,i64 0,i32 2,i64 0),i8**%cS,align 8
%cT=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%cU=getelementptr inbounds i8,i8*%cM,i64 16
%cV=bitcast i8*%cU to i8**
store i8*%cT,i8**%cV,align 8
%cW=getelementptr inbounds i8,i8*%cM,i64 24
%cX=bitcast i8*%cW to i32*
store i32 7,i32*%cX,align 4
%cY=call i8*@sml_alloc(i32 inreg 60)#0
%cZ=getelementptr inbounds i8,i8*%cY,i64 -4
%c0=bitcast i8*%cZ to i32*
store i32 1342177336,i32*%c0,align 4
%c1=getelementptr inbounds i8,i8*%cY,i64 56
%c2=bitcast i8*%c1 to i32*
store i32 1,i32*%c2,align 4
%c3=load i8*,i8**%b,align 8
%c4=bitcast i8*%cY to i8**
store i8*%c3,i8**%c4,align 8
call void@sml_raise(i8*inreg%cY)#1
unreachable
c5:
ret void
c6:
store i8*null,i8**%e,align 8
%c7=bitcast i8**%d to i32**
%c8=load i32,i32*%H,align 4
%c9=call{i32,i1}@llvm.sadd.with.overflow.i32(i32%c8,i32 1)#0
%da=extractvalue{i32,i1}%c9,1
br i1%da,label%db,label%dt
db:
store i8*null,i8**%c,align 8
store i8*null,i8**%d,align 8
%dc=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%dc,i8**%b,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**%c,align 8
%dg=load i8*,i8**%b,align 8
store i8*null,i8**%b,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,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@ax,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**%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=add nsw i32%c8,1
%dv=call i8*@sml_alloc(i32 inreg 20)#0
%dw=getelementptr inbounds i8,i8*%dv,i64 -4
%dx=bitcast i8*%dw to i32*
store i32 1342177296,i32*%dx,align 4
%dy=getelementptr inbounds i8,i8*%dv,i64 13
call void@llvm.memset.p0i8.i32(i8*%dy,i8 0,i32 3,i1 false)
%dz=load i8*,i8**%c,align 8
%dA=bitcast i8*%dv to i8**
store i8*%dz,i8**%dA,align 8
%dB=getelementptr inbounds i8,i8*%dv,i64 8
%dC=bitcast i8*%dB to i32*
store i32%c8,i32*%dC,align 4
%dD=getelementptr inbounds i8,i8*%dv,i64 12
store i8%B,i8*%dD,align 1
%dE=getelementptr inbounds i8,i8*%dv,i64 16
%dF=bitcast i8*%dE to i32*
store i32 1,i32*%dF,align 4
call fastcc void@_SMLFN9CharArray6updateE(i8*inreg%dv)
%dG=load i32*,i32**%c7,align 8
store i8*null,i8**%d,align 8
store i32%du,i32*%dG,align 4
%dH=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%dI=call fastcc i32@_SMLFN9CharArray6lengthE(i8*inreg%dH)
%dJ=icmp ne i32%du,%dI
%dK=icmp ne i8%B,10
%dL=and i1%dK,%dJ
br i1%dL,label%c5,label%dM
dM:
%dN=bitcast i8**%b to i8***
%dO=load i8**,i8***%dN,align 8
%dP=load i8*,i8**%dO,align 8
store i8*%dP,i8**%c,align 8
%dQ=getelementptr inbounds i8*,i8**%dO,i64 4
%dR=load i8*,i8**%dQ,align 8
store i8*%dR,i8**%d,align 8
%dS=getelementptr inbounds i8*,i8**%dO,i64 5
%dT=load i8*,i8**%dS,align 8
%dU=bitcast i8*%dR to i32*
%dV=load i32,i32*%dU,align 4
%dW=icmp eq i32%dV,0
br i1%dW,label%c5,label%dX
dX:
%dY=getelementptr inbounds i8,i8*%dT,i64 16
%dZ=bitcast i8*%dY to i8*(i8*,i8*)**
%d0=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%dZ,align 8
%d1=bitcast i8*%dT to i8**
%d2=load i8*,i8**%d1,align 8
store i8*%d2,i8**%e,align 8
%d3=call i8*@sml_alloc(i32 inreg 12)#0
%d4=getelementptr inbounds i8,i8*%d3,i64 -4
%d5=bitcast i8*%d4 to i32*
store i32 1342177288,i32*%d5,align 4
store i8*%d3,i8**%f,align 8
%d6=getelementptr inbounds i8,i8*%d3,i64 4
%d7=bitcast i8*%d6 to i32*
store i32 0,i32*%d7,align 1
%d8=bitcast i8*%d3 to i32*
store i32%dV,i32*%d8,align 4
%d9=getelementptr inbounds i8,i8*%d3,i64 8
%ea=bitcast i8*%d9 to i32*
store i32 0,i32*%ea,align 4
%eb=call i8*@sml_alloc(i32 inreg 28)#0
%ec=getelementptr inbounds i8,i8*%eb,i64 -4
%ed=bitcast i8*%ec to i32*
store i32 1342177304,i32*%ed,align 4
%ee=getelementptr inbounds i8,i8*%eb,i64 12
%ef=bitcast i8*%ee to i32*
store i32 0,i32*%ef,align 1
%eg=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%eh=bitcast i8*%eb to i8**
store i8*%eg,i8**%eh,align 8
%ei=getelementptr inbounds i8,i8*%eb,i64 8
%ej=bitcast i8*%ei to i32*
store i32 0,i32*%ej,align 4
%ek=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%el=getelementptr inbounds i8,i8*%eb,i64 16
%em=bitcast i8*%el to i8**
store i8*%ek,i8**%em,align 8
%en=getelementptr inbounds i8,i8*%eb,i64 24
%eo=bitcast i8*%en to i32*
store i32 5,i32*%eo,align 4
%ep=invoke fastcc i8*@_SMLFN14CharArraySlice5sliceE(i8*inreg%eb)
to label%eq unwind label%ev
eq:
%er=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%es=invoke fastcc i8*%d0(i8*inreg%er,i8*inreg%ep)
to label%et unwind label%ev
et:
%eu=load i32*,i32**%c7,align 8
store i32 0,i32*%eu,align 4
ret void
ev:
%ew=landingpad{i8*,i8*}
catch i8*null
%ex=extractvalue{i8*,i8*}%ew,1
%ey=bitcast i8*%ex to i8**
%ez=load i8*,i8**%ey,align 8
store i8*null,i8**%d,align 8
store i8*%ez,i8**%e,align 8
%eA=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%eA,i8**%c,align 8
%eB=load i8*,i8**%b,align 8
%eC=getelementptr inbounds i8,i8*%eB,i64 56
%eD=bitcast i8*%eC to i8**
%eE=load i8*,i8**%eD,align 8
%eF=getelementptr inbounds i8,i8*%eE,i64 56
%eG=bitcast i8*%eF to i8**
%eH=load i8*,i8**%eG,align 8
store i8*%eH,i8**%b,align 8
%eI=call i8*@sml_alloc(i32 inreg 28)#0
%eJ=getelementptr inbounds i8,i8*%eI,i64 -4
%eK=bitcast i8*%eJ to i32*
store i32 1342177304,i32*%eK,align 4
store i8*%eI,i8**%d,align 8
%eL=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%eM=bitcast i8*%eI to i8**
store i8*%eL,i8**%eM,align 8
%eN=getelementptr inbounds i8,i8*%eI,i64 8
%eO=bitcast i8*%eN to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[8x i8]}>,<{[4x i8],i32,[8x i8]}>*@az,i64 0,i32 2,i64 0),i8**%eO,align 8
%eP=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%eQ=getelementptr inbounds i8,i8*%eI,i64 16
%eR=bitcast i8*%eQ to i8**
store i8*%eP,i8**%eR,align 8
%eS=getelementptr inbounds i8,i8*%eI,i64 24
%eT=bitcast i8*%eS to i32*
store i32 7,i32*%eT,align 4
%eU=call i8*@sml_alloc(i32 inreg 28)#0
%eV=getelementptr inbounds i8,i8*%eU,i64 -4
%eW=bitcast i8*%eV to i32*
store i32 1342177304,i32*%eW,align 4
store i8*%eU,i8**%b,align 8
%eX=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%eY=bitcast i8*%eU to i8**
store i8*%eX,i8**%eY,align 8
%eZ=getelementptr inbounds i8,i8*%eU,i64 8
%e0=bitcast i8*%eZ to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@bM,i64 0,i32 2,i64 0),i8**%e0,align 8
%e1=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%e2=getelementptr inbounds i8,i8*%eU,i64 16
%e3=bitcast i8*%e2 to i8**
store i8*%e1,i8**%e3,align 8
%e4=getelementptr inbounds i8,i8*%eU,i64 24
%e5=bitcast i8*%e4 to i32*
store i32 7,i32*%e5,align 4
%e6=call i8*@sml_alloc(i32 inreg 60)#0
%e7=getelementptr inbounds i8,i8*%e6,i64 -4
%e8=bitcast i8*%e7 to i32*
store i32 1342177336,i32*%e8,align 4
%e9=getelementptr inbounds i8,i8*%e6,i64 56
%fa=bitcast i8*%e9 to i32*
store i32 1,i32*%fa,align 4
%fb=load i8*,i8**%b,align 8
%fc=bitcast i8*%e6 to i8**
store i8*%fb,i8**%fc,align 8
call void@sml_raise(i8*inreg%e6)#1
unreachable
fd:
store i8*null,i8**%d,align 8
%fe=call i8*@sml_alloc(i32 inreg 20)#0
%ff=getelementptr inbounds i8,i8*%fe,i64 -4
%fg=bitcast i8*%ff to i32*
store i32 1342177296,i32*%fg,align 4
%fh=getelementptr inbounds i8,i8*%fe,i64 13
call void@llvm.memset.p0i8.i32(i8*%fh,i8 0,i32 3,i1 false)
%fi=load i8*,i8**%c,align 8
%fj=bitcast i8*%fe to i8**
store i8*%fi,i8**%fj,align 8
%fk=getelementptr inbounds i8,i8*%fe,i64 8
%fl=bitcast i8*%fk to i32*
store i32 0,i32*%fl,align 4
%fm=getelementptr inbounds i8,i8*%fe,i64 12
store i8%B,i8*%fm,align 1
%fn=getelementptr inbounds i8,i8*%fe,i64 16
%fo=bitcast i8*%fn to i32*
store i32 1,i32*%fo,align 4
call fastcc void@_SMLFN9CharArray6updateE(i8*inreg%fe)
%fp=load i8*,i8**%e,align 8
%fq=getelementptr inbounds i8,i8*%fp,i64 16
%fr=bitcast i8*%fq to i8*(i8*,i8*)**
%fs=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%fr,align 8
store i8*null,i8**%e,align 8
%ft=bitcast i8*%fp to i8**
%fu=load i8*,i8**%ft,align 8
store i8*%fu,i8**%d,align 8
%fv=call i8*@sml_alloc(i32 inreg 28)#0
%fw=getelementptr inbounds i8,i8*%fv,i64 -4
%fx=bitcast i8*%fw to i32*
store i32 1342177304,i32*%fx,align 4
%fy=getelementptr inbounds i8,i8*%fv,i64 12
%fz=bitcast i8*%fy to i32*
store i32 0,i32*%fz,align 1
%fA=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%fB=bitcast i8*%fv to i8**
store i8*%fA,i8**%fB,align 8
%fC=getelementptr inbounds i8,i8*%fv,i64 8
%fD=bitcast i8*%fC to i32*
store i32 0,i32*%fD,align 4
%fE=getelementptr inbounds i8,i8*%fv,i64 16
%fF=bitcast i8*%fE to i8**
store i8*bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@aw,i64 0,i32 2)to i8*),i8**%fF,align 8
%fG=getelementptr inbounds i8,i8*%fv,i64 24
%fH=bitcast i8*%fG to i32*
store i32 5,i32*%fH,align 4
%fI=invoke fastcc i8*@_SMLFN14CharArraySlice5sliceE(i8*inreg%fv)
to label%fJ unwind label%fM
fJ:
%fK=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%fL=invoke fastcc i8*%fs(i8*inreg%fK,i8*inreg%fI)
to label%c5 unwind label%fM
fM:
%fN=landingpad{i8*,i8*}
catch i8*null
%fO=extractvalue{i8*,i8*}%fN,1
%fP=bitcast i8*%fO to i8**
%fQ=load i8*,i8**%fP,align 8
store i8*null,i8**%d,align 8
store i8*%fQ,i8**%e,align 8
%fR=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%fR,i8**%c,align 8
%fS=load i8*,i8**%b,align 8
%fT=getelementptr inbounds i8,i8*%fS,i64 56
%fU=bitcast i8*%fT to i8**
%fV=load i8*,i8**%fU,align 8
%fW=getelementptr inbounds i8,i8*%fV,i64 56
%fX=bitcast i8*%fW to i8**
%fY=load i8*,i8**%fX,align 8
store i8*%fY,i8**%b,align 8
%fZ=call i8*@sml_alloc(i32 inreg 28)#0
%f0=getelementptr inbounds i8,i8*%fZ,i64 -4
%f1=bitcast i8*%f0 to i32*
store i32 1342177304,i32*%f1,align 4
store i8*%fZ,i8**%d,align 8
%f2=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%f3=bitcast i8*%fZ to i8**
store i8*%f2,i8**%f3,align 8
%f4=getelementptr inbounds i8,i8*%fZ,i64 8
%f5=bitcast i8*%f4 to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[8x i8]}>,<{[4x i8],i32,[8x i8]}>*@az,i64 0,i32 2,i64 0),i8**%f5,align 8
%f6=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%f7=getelementptr inbounds i8,i8*%fZ,i64 16
%f8=bitcast i8*%f7 to i8**
store i8*%f6,i8**%f8,align 8
%f9=getelementptr inbounds i8,i8*%fZ,i64 24
%ga=bitcast i8*%f9 to i32*
store i32 7,i32*%ga,align 4
%gb=call i8*@sml_alloc(i32 inreg 28)#0
%gc=getelementptr inbounds i8,i8*%gb,i64 -4
%gd=bitcast i8*%gc to i32*
store i32 1342177304,i32*%gd,align 4
store i8*%gb,i8**%b,align 8
%ge=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%gf=bitcast i8*%gb to i8**
store i8*%ge,i8**%gf,align 8
%gg=getelementptr inbounds i8,i8*%gb,i64 8
%gh=bitcast i8*%gg to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@bM,i64 0,i32 2,i64 0),i8**%gh,align 8
%gi=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%gj=getelementptr inbounds i8,i8*%gb,i64 16
%gk=bitcast i8*%gj to i8**
store i8*%gi,i8**%gk,align 8
%gl=getelementptr inbounds i8,i8*%gb,i64 24
%gm=bitcast i8*%gl to i32*
store i32 7,i32*%gm,align 4
%gn=call i8*@sml_alloc(i32 inreg 60)#0
%go=getelementptr inbounds i8,i8*%gn,i64 -4
%gp=bitcast i8*%go to i32*
store i32 1342177336,i32*%gp,align 4
%gq=getelementptr inbounds i8,i8*%gn,i64 56
%gr=bitcast i8*%gq to i32*
store i32 1,i32*%gr,align 4
%gs=load i8*,i8**%b,align 8
%gt=bitcast i8*%gn to i8**
store i8*%gs,i8**%gt,align 8
call void@sml_raise(i8*inreg%gn)#1
unreachable
}
define fastcc void@_SMLFN6TextIO8StreamIO8flushOutE(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*@_SMLFN14CharArraySlice5sliceE(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]}>*@bN,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,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@bM,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@_SMLFN6TextIO8StreamIO8closeOutE(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*@_SMLFN14CharArraySlice5sliceE(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]}>*@aD,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,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@bM,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@_SMLLL9writeArr_G_511(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@_SMLFN14CharArraySlice6lengthE(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*@_SMLFN14CharArraySlice8subsliceE(i8*inreg%D)
br label%f
}
define internal fastcc void@_SMLLL9writeArr_G_513(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,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@aF,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@_SMLLL9writeVec_G_515(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@_SMLFN15CharVectorSlice6lengthE(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*@_SMLFN15CharVectorSlice8subsliceE(i8*inreg%D)
br label%f
}
define internal fastcc void@_SMLLL9writeVec_G_517(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,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@aH,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@_SMLLLN6TextIO8StreamIO11mkOutstreamE_519(i32 inreg%a)#4 gc"smlsharp"{
ret void
}
define internal fastcc void@_SMLLLN6TextIO8StreamIO11mkOutstreamE_525(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@_SMLFN6TextIO8StreamIO8closeOutE(i8*inreg%m)
ret void
}
define internal fastcc void@_SMLLLN6TextIO8StreamIO11mkOutstreamE_528(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*@_SMLFN14CharArraySlice5sliceE(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]}>*@bN,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,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@bM,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@_SMLLLN6TextIO8StreamIO11mkOutstreamE_529(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@_SMLFN6TextIO8StreamIO8closeOutE(i8*inreg%m)
ret void
}
define fastcc i8*@_SMLFN6TextIO8StreamIO11mkOutstreamE(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*)*@_SMLLL9writeArr_G_511 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*)*@_SMLLL9writeArr_G_735 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}>*@aG,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*)*@_SMLLL9writeVec_G_515 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*)*@_SMLLL9writeVec_G_737 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}>*@aI,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}>*@aJ,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*@_SMLFN9CharArray5arrayE(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)*@_SMLLLN6TextIO8StreamIO11mkOutstreamE_525 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*)*@_SMLLLN6TextIO8StreamIO11mkOutstreamE_742 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)*@_SMLLLN6TextIO8StreamIO11mkOutstreamE_528 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*)*@_SMLLLN6TextIO8StreamIO11mkOutstreamE_743 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)*@_SMLLLN6TextIO8StreamIO11mkOutstreamE_529 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*)*@_SMLLLN6TextIO8StreamIO11mkOutstreamE_744 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*@_SMLFN6TextIO8StreamIO9getWriterE(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*@_SMLFN14CharArraySlice5sliceE(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]}>*@aL,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,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@bM,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*@_SMLFN6TextIO8StreamIO9getPosOutE(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*@_SMLFN14CharArraySlice5sliceE(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]}>*@aT,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,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@bM,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,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@aN,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]}>*@aT,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,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@bM,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]}>*@aT,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,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@bM,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@_SMLFN6TextIO8StreamIO10filePosOutE(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,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@a4,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]}>*@aP,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,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@bM,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*@_SMLFN6TextIO8StreamIO9setPosOutE(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,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@a4,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]}>*@aR,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,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@bM,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,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@aS,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]}>*@aT,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,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@bM,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]}>*@aR,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,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@bM,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@_SMLFN6TextIO8StreamIO12outputSubstrE(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 24
%r=bitcast i8*%q to i32**
%s=load i32*,i32**%r,align 8
%t=load i32,i32*%s,align 4
%u=icmp eq i32%t,0
br i1%u,label%at,label%v
v:
%w=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%w,i8**%c,align 8
%x=load i8*,i8**@_SMLZN2IO12ClosedStreamE,align 8
store i8*%x,i8**%d,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**%e,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=getelementptr inbounds i8,i8*%y,i64 8
%E=bitcast i8*%D to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@a4,i64 0,i32 2,i64 0),i8**%E,align 8
%F=getelementptr inbounds i8,i8*%y,i64 16
%G=bitcast i8*%F to i32*
store i32 3,i32*%G,align 4
%H=load i8*,i8**%b,align 8
%I=getelementptr inbounds i8,i8*%H,i64 56
%J=bitcast i8*%I to i8**
%K=load i8*,i8**%J,align 8
%L=getelementptr inbounds i8,i8*%K,i64 56
%M=bitcast i8*%L to i8**
%N=load i8*,i8**%M,align 8
store i8*%N,i8**%b,align 8
%O=call i8*@sml_alloc(i32 inreg 28)#0
%P=getelementptr inbounds i8,i8*%O,i64 -4
%Q=bitcast i8*%P to i32*
store i32 1342177304,i32*%Q,align 4
store i8*%O,i8**%d,align 8
%R=load i8*,i8**%e,align 8
store i8*null,i8**%e,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,[13x i8]}>,<{[4x i8],i32,[13x i8]}>*@aX,i64 0,i32 2,i64 0),i8**%U,align 8
%V=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%W=getelementptr inbounds i8,i8*%O,i64 16
%X=bitcast i8*%W to i8**
store i8*%V,i8**%X,align 8
%Y=getelementptr inbounds i8,i8*%O,i64 24
%Z=bitcast i8*%Y to i32*
store i32 7,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**%b,align 8
%ad=load i8*,i8**%c,align 8
store i8*null,i8**%c,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 i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@bM,i64 0,i32 2,i64 0),i8**%ag,align 8
%ah=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%ai=getelementptr inbounds i8,i8*%aa,i64 16
%aj=bitcast i8*%ai to i8**
store i8*%ah,i8**%aj,align 8
%ak=getelementptr inbounds i8,i8*%aa,i64 24
%al=bitcast i8*%ak to i32*
store i32 7,i32*%al,align 4
%am=call i8*@sml_alloc(i32 inreg 60)#0
%an=getelementptr inbounds i8,i8*%am,i64 -4
%ao=bitcast i8*%an to i32*
store i32 1342177336,i32*%ao,align 4
%ap=getelementptr inbounds i8,i8*%am,i64 56
%aq=bitcast i8*%ap to i32*
store i32 1,i32*%aq,align 4
%ar=load i8*,i8**%b,align 8
%as=bitcast i8*%am to i8**
store i8*%ar,i8**%as,align 8
call void@sml_raise(i8*inreg%am)#1
unreachable
at:
%au=getelementptr inbounds i8,i8*%m,i64 8
%av=bitcast i8*%au to i8**
%aw=load i8*,i8**%av,align 8
%ax=call fastcc i8*@_SMLFN9Substring4baseE(i8*inreg%aw)
%ay=bitcast i8*%ax to i8**
%az=load i8*,i8**%ay,align 8
store i8*%az,i8**%c,align 8
%aA=getelementptr inbounds i8,i8*%ax,i64 8
%aB=bitcast i8*%aA to i32*
%aC=load i32,i32*%aB,align 4
%aD=getelementptr inbounds i8,i8*%ax,i64 12
%aE=bitcast i8*%aD to i32*
%aF=load i32,i32*%aE,align 4
%aG=bitcast i8**%b to i8***
%aH=load i8**,i8***%aG,align 8
%aI=load i8*,i8**%aH,align 8
store i8*%aI,i8**%d,align 8
%aJ=getelementptr inbounds i8*,i8**%aH,i64 4
%aK=load i8*,i8**%aJ,align 8
store i8*%aK,i8**%e,align 8
%aL=getelementptr inbounds i8*,i8**%aH,i64 1
%aM=load i8*,i8**%aL,align 8
store i8*%aM,i8**%f,align 8
%aN=call fastcc i32@_SMLFN9CharArray6lengthE(i8*inreg%aI)
%aO=bitcast i8**%f to i32**
%aP=load i32*,i32**%aO,align 8
store i8*null,i8**%f,align 8
%aQ=load i32,i32*%aP,align 4
switch i32%aQ,label%aR[
i32 2,label%fn
i32 1,label%a9
i32 0,label%ba
]
aR:
store i8*null,i8**%c,align 8
store i8*null,i8**%d,align 8
store i8*null,i8**%e,align 8
call void@sml_matchcomp_bug()
%aS=load i8*,i8**@_SMLZ5Match,align 8
store i8*%aS,i8**%b,align 8
%aT=call i8*@sml_alloc(i32 inreg 20)#0
%aU=getelementptr inbounds i8,i8*%aT,i64 -4
%aV=bitcast i8*%aU to i32*
store i32 1342177296,i32*%aV,align 4
store i8*%aT,i8**%c,align 8
%aW=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aX=bitcast i8*%aT to i8**
store i8*%aW,i8**%aX,align 8
%aY=getelementptr inbounds i8,i8*%aT,i64 8
%aZ=bitcast i8*%aY to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@a0,i64 0,i32 2,i64 0),i8**%aZ,align 8
%a0=getelementptr inbounds i8,i8*%aT,i64 16
%a1=bitcast i8*%a0 to i32*
store i32 3,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**%c,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:
br label%ba
ba:
%bb=phi 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*),%a9],[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*),%at]
store i8*%bb,i8**%f,align 8
%bc=load i8*,i8**%d,align 8
%bd=call fastcc i32@_SMLFN9CharArray6lengthE(i8*inreg%bc)
%be=icmp slt i32%aF,%bd
br i1%be,label%bg,label%bf
bf:
store i8*null,i8**%f,align 8
br label%fn
bg:
%bh=bitcast i8**%e to i32**
%bi=load i32*,i32**%bh,align 8
%bj=load i32,i32*%bi,align 4
%bk=call{i32,i1}@llvm.ssub.with.overflow.i32(i32%bd,i32%bj)#0
%bl=extractvalue{i32,i1}%bk,1
br i1%bl,label%bm,label%bE
bm:
store i8*null,i8**%c,align 8
store i8*null,i8**%d,align 8
store i8*null,i8**%e,align 8
store i8*null,i8**%f,align 8
%bn=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%bn,i8**%b,align 8
%bo=call i8*@sml_alloc(i32 inreg 20)#0
%bp=getelementptr inbounds i8,i8*%bo,i64 -4
%bq=bitcast i8*%bp to i32*
store i32 1342177296,i32*%bq,align 4
store i8*%bo,i8**%c,align 8
%br=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%bs=bitcast i8*%bo to i8**
store i8*%br,i8**%bs,align 8
%bt=getelementptr inbounds i8,i8*%bo,i64 8
%bu=bitcast i8*%bt to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@aV,i64 0,i32 2,i64 0),i8**%bu,align 8
%bv=getelementptr inbounds i8,i8*%bo,i64 16
%bw=bitcast i8*%bv to i32*
store i32 3,i32*%bw,align 4
%bx=call i8*@sml_alloc(i32 inreg 60)#0
%by=getelementptr inbounds i8,i8*%bx,i64 -4
%bz=bitcast i8*%by to i32*
store i32 1342177336,i32*%bz,align 4
%bA=getelementptr inbounds i8,i8*%bx,i64 56
%bB=bitcast i8*%bA to i32*
store i32 1,i32*%bB,align 4
%bC=load i8*,i8**%c,align 8
%bD=bitcast i8*%bx to i8**
store i8*%bC,i8**%bD,align 8
call void@sml_raise(i8*inreg%bx)#1
unreachable
bE:
%bF=sub nsw i32%bd,%bj
%bG=icmp sgt i32%aF,%bF
br i1%bG,label%bH,label%eu
bH:
%bI=call i8*@sml_alloc(i32 inreg 12)#0
%bJ=getelementptr inbounds i8,i8*%bI,i64 -4
%bK=bitcast i8*%bJ to i32*
store i32 1342177288,i32*%bK,align 4
store i8*%bI,i8**%g,align 8
%bL=getelementptr inbounds i8,i8*%bI,i64 4
%bM=bitcast i8*%bL to i32*
store i32 0,i32*%bM,align 1
%bN=bitcast i8*%bI to i32*
store i32%bF,i32*%bN,align 4
%bO=getelementptr inbounds i8,i8*%bI,i64 8
%bP=bitcast i8*%bO to i32*
store i32 0,i32*%bP,align 4
%bQ=call i8*@sml_alloc(i32 inreg 28)#0
%bR=getelementptr inbounds i8,i8*%bQ,i64 -4
%bS=bitcast i8*%bR to i32*
store i32 1342177304,i32*%bS,align 4
%bT=getelementptr inbounds i8,i8*%bQ,i64 12
%bU=bitcast i8*%bT to i32*
store i32 0,i32*%bU,align 1
%bV=load i8*,i8**%c,align 8
%bW=bitcast i8*%bQ to i8**
store i8*%bV,i8**%bW,align 8
%bX=getelementptr inbounds i8,i8*%bQ,i64 8
%bY=bitcast i8*%bX to i32*
store i32%aC,i32*%bY,align 4
%bZ=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%b0=getelementptr inbounds i8,i8*%bQ,i64 16
%b1=bitcast i8*%b0 to i8**
store i8*%bZ,i8**%b1,align 8
%b2=getelementptr inbounds i8,i8*%bQ,i64 24
%b3=bitcast i8*%b2 to i32*
store i32 5,i32*%b3,align 4
%b4=call fastcc i8*@_SMLFN15CharVectorSlice5sliceE(i8*inreg%bQ)
store i8*%b4,i8**%g,align 8
%b5=call i8*@sml_alloc(i32 inreg 28)#0
%b6=bitcast i8*%b5 to i32*
%b7=getelementptr inbounds i8,i8*%b5,i64 -4
%b8=bitcast i8*%b7 to i32*
store i32 1342177304,i32*%b8,align 4
%b9=getelementptr inbounds i8,i8*%b5,i64 4
%ca=bitcast i8*%b9 to i32*
store i32 0,i32*%ca,align 1
store i32%bj,i32*%b6,align 4
%cb=load i8*,i8**%d,align 8
%cc=getelementptr inbounds i8,i8*%b5,i64 8
%cd=bitcast i8*%cc to i8**
store i8*%cb,i8**%cd,align 8
%ce=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%cf=getelementptr inbounds i8,i8*%b5,i64 16
%cg=bitcast i8*%cf to i8**
store i8*%ce,i8**%cg,align 8
%ch=getelementptr inbounds i8,i8*%b5,i64 24
%ci=bitcast i8*%ch to i32*
store i32 6,i32*%ci,align 4
call fastcc void@_SMLFN14CharArraySlice7copyVecE(i8*inreg%b5)
%cj=load i8*,i8**%b,align 8
%ck=getelementptr inbounds i8,i8*%cj,i64 40
%cl=bitcast i8*%ck to i8**
%cm=load i8*,i8**%cl,align 8
%cn=getelementptr inbounds i8,i8*%cm,i64 16
%co=bitcast i8*%cn to i8*(i8*,i8*)**
%cp=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%co,align 8
%cq=bitcast i8*%cm to i8**
%cr=load i8*,i8**%cq,align 8
store i8*%cr,i8**%g,align 8
%cs=load i8*,i8**%d,align 8
%ct=invoke fastcc i8*@_SMLFN14CharArraySlice4fullE(i8*inreg%cs)
to label%cu unwind label%cG
cu:
%cv=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%cw=invoke fastcc i8*%cp(i8*inreg%cv,i8*inreg%ct)
to label%cx unwind label%cG
cx:
%cy=load i8*,i8**%f,align 8
%cz=getelementptr inbounds i8,i8*%cy,i64 16
%cA=bitcast i8*%cz to i8*(i8*,i8*)**
%cB=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%cA,align 8
%cC=bitcast i8*%cy to i8**
%cD=load i8*,i8**%cC,align 8
store i8*%cD,i8**%f,align 8
%cE=call{i32,i1}@llvm.sadd.with.overflow.i32(i32%aC,i32%bF)#0
%cF=extractvalue{i32,i1}%cE,1
br i1%cF,label%dp,label%dH
cG:
%cH=landingpad{i8*,i8*}
catch i8*null
%cI=extractvalue{i8*,i8*}%cH,1
%cJ=bitcast i8*%cI to i8**
%cK=load i8*,i8**%cJ,align 8
store i8*null,i8**%d,align 8
store i8*null,i8**%g,align 8
store i8*%cK,i8**%f,align 8
%cL=load i32*,i32**%bh,align 8
store i8*null,i8**%e,align 8
store i32%bd,i32*%cL,align 4
%cM=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%cM,i8**%c,align 8
%cN=load i8*,i8**%b,align 8
%cO=getelementptr inbounds i8,i8*%cN,i64 56
%cP=bitcast i8*%cO to i8**
%cQ=load i8*,i8**%cP,align 8
%cR=getelementptr inbounds i8,i8*%cQ,i64 56
%cS=bitcast i8*%cR to i8**
%cT=load i8*,i8**%cS,align 8
store i8*%cT,i8**%b,align 8
%cU=call i8*@sml_alloc(i32 inreg 28)#0
%cV=getelementptr inbounds i8,i8*%cU,i64 -4
%cW=bitcast i8*%cV to i32*
store i32 1342177304,i32*%cW,align 4
store i8*%cU,i8**%d,align 8
%cX=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%cY=bitcast i8*%cU to i8**
store i8*%cX,i8**%cY,align 8
%cZ=getelementptr inbounds i8,i8*%cU,i64 8
%c0=bitcast i8*%cZ to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[13x i8]}>,<{[4x i8],i32,[13x i8]}>*@aX,i64 0,i32 2,i64 0),i8**%c0,align 8
%c1=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%c2=getelementptr inbounds i8,i8*%cU,i64 16
%c3=bitcast i8*%c2 to i8**
store i8*%c1,i8**%c3,align 8
%c4=getelementptr inbounds i8,i8*%cU,i64 24
%c5=bitcast i8*%c4 to i32*
store i32 7,i32*%c5,align 4
%c6=call i8*@sml_alloc(i32 inreg 28)#0
%c7=getelementptr inbounds i8,i8*%c6,i64 -4
%c8=bitcast i8*%c7 to i32*
store i32 1342177304,i32*%c8,align 4
store i8*%c6,i8**%b,align 8
%c9=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%da=bitcast i8*%c6 to i8**
store i8*%c9,i8**%da,align 8
%db=getelementptr inbounds i8,i8*%c6,i64 8
%dc=bitcast i8*%db to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@bM,i64 0,i32 2,i64 0),i8**%dc,align 8
%dd=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%de=getelementptr inbounds i8,i8*%c6,i64 16
%df=bitcast i8*%de to i8**
store i8*%dd,i8**%df,align 8
%dg=getelementptr inbounds i8,i8*%c6,i64 24
%dh=bitcast i8*%dg to i32*
store i32 7,i32*%dh,align 4
%di=call i8*@sml_alloc(i32 inreg 60)#0
%dj=getelementptr inbounds i8,i8*%di,i64 -4
%dk=bitcast i8*%dj to i32*
store i32 1342177336,i32*%dk,align 4
%dl=getelementptr inbounds i8,i8*%di,i64 56
%dm=bitcast i8*%dl to i32*
store i32 1,i32*%dm,align 4
%dn=load i8*,i8**%b,align 8
%do=bitcast i8*%di to i8**
store i8*%dn,i8**%do,align 8
call void@sml_raise(i8*inreg%di)#1
unreachable
dp:
store i8*null,i8**%c,align 8
store i8*null,i8**%d,align 8
store i8*null,i8**%e,align 8
store i8*null,i8**%f,align 8
%dq=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%dq,i8**%b,align 8
%dr=call i8*@sml_alloc(i32 inreg 20)#0
%ds=getelementptr inbounds i8,i8*%dr,i64 -4
%dt=bitcast i8*%ds to i32*
store i32 1342177296,i32*%dt,align 4
store i8*%dr,i8**%c,align 8
%du=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%dv=bitcast i8*%dr to i8**
store i8*%du,i8**%dv,align 8
%dw=getelementptr inbounds i8,i8*%dr,i64 8
%dx=bitcast i8*%dw to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@aY,i64 0,i32 2,i64 0),i8**%dx,align 8
%dy=getelementptr inbounds i8,i8*%dr,i64 16
%dz=bitcast i8*%dy to i32*
store i32 3,i32*%dz,align 4
%dA=call i8*@sml_alloc(i32 inreg 60)#0
%dB=getelementptr inbounds i8,i8*%dA,i64 -4
%dC=bitcast i8*%dB to i32*
store i32 1342177336,i32*%dC,align 4
%dD=getelementptr inbounds i8,i8*%dA,i64 56
%dE=bitcast i8*%dD to i32*
store i32 1,i32*%dE,align 4
%dF=load i8*,i8**%c,align 8
%dG=bitcast i8*%dA to i8**
store i8*%dF,i8**%dG,align 8
call void@sml_raise(i8*inreg%dA)#1
unreachable
dH:
%dI=call{i32,i1}@llvm.ssub.with.overflow.i32(i32%aF,i32%bF)#0
%dJ=extractvalue{i32,i1}%dI,1
br i1%dJ,label%dK,label%d2
dK:
store i8*null,i8**%c,align 8
store i8*null,i8**%d,align 8
store i8*null,i8**%e,align 8
store i8*null,i8**%f,align 8
%dL=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%dL,i8**%b,align 8
%dM=call i8*@sml_alloc(i32 inreg 20)#0
%dN=getelementptr inbounds i8,i8*%dM,i64 -4
%dO=bitcast i8*%dN to i32*
store i32 1342177296,i32*%dO,align 4
store i8*%dM,i8**%c,align 8
%dP=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%dQ=bitcast i8*%dM to i8**
store i8*%dP,i8**%dQ,align 8
%dR=getelementptr inbounds i8,i8*%dM,i64 8
%dS=bitcast i8*%dR to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@aZ,i64 0,i32 2,i64 0),i8**%dS,align 8
%dT=getelementptr inbounds i8,i8*%dM,i64 16
%dU=bitcast i8*%dT to i32*
store i32 3,i32*%dU,align 4
%dV=call i8*@sml_alloc(i32 inreg 60)#0
%dW=getelementptr inbounds i8,i8*%dV,i64 -4
%dX=bitcast i8*%dW to i32*
store i32 1342177336,i32*%dX,align 4
%dY=getelementptr inbounds i8,i8*%dV,i64 56
%dZ=bitcast i8*%dY to i32*
store i32 1,i32*%dZ,align 4
%d0=load i8*,i8**%c,align 8
%d1=bitcast i8*%dV to i8**
store i8*%d0,i8**%d1,align 8
call void@sml_raise(i8*inreg%dV)#1
unreachable
d2:
%d3=add nsw i32%bF,%aC
%d4=sub nsw i32%aF,%bF
%d5=call i8*@sml_alloc(i32 inreg 36)#0
%d6=getelementptr inbounds i8,i8*%d5,i64 -4
%d7=bitcast i8*%d6 to i32*
store i32 1342177312,i32*%d7,align 4
%d8=getelementptr inbounds i8,i8*%d5,i64 28
%d9=bitcast i8*%d8 to i32*
store i32 0,i32*%d9,align 1
%ea=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%eb=bitcast i8*%d5 to i8**
store i8*%ea,i8**%eb,align 8
%ec=getelementptr inbounds i8,i8*%d5,i64 8
%ed=bitcast i8*%ec to i32*
store i32%d3,i32*%ed,align 4
%ee=getelementptr inbounds i8,i8*%d5,i64 12
%ef=bitcast i8*%ee to i32*
store i32%d4,i32*%ef,align 4
%eg=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%eh=getelementptr inbounds i8,i8*%d5,i64 16
%ei=bitcast i8*%eh to i8**
store i8*%eg,i8**%ei,align 8
%ej=getelementptr inbounds i8,i8*%d5,i64 24
%ek=bitcast i8*%ej to i32*
store i32 0,i32*%ek,align 4
%el=getelementptr inbounds i8,i8*%d5,i64 32
%em=bitcast i8*%el to i32*
store i32 5,i32*%em,align 4
%en=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%eo=call fastcc i8*%cB(i8*inreg%en,i8*inreg%d5)
%ep=bitcast i8*%eo to i32*
%eq=load i32,i32*%ep,align 4
%er=load i32*,i32**%bh,align 8
store i32%d4,i32*%er,align 4
%es=icmp eq i32%eq,0
br i1%es,label%et,label%hn
et:
ret void
eu:
%ev=load i8*,i8**%f,align 8
%ew=getelementptr inbounds i8,i8*%ev,i64 16
%ex=bitcast i8*%ew to i8*(i8*,i8*)**
%ey=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%ex,align 8
%ez=bitcast i8*%ev to i8**
%eA=load i8*,i8**%ez,align 8
store i8*%eA,i8**%f,align 8
%eB=call i8*@sml_alloc(i32 inreg 36)#0
%eC=getelementptr inbounds i8,i8*%eB,i64 -4
%eD=bitcast i8*%eC to i32*
store i32 1342177312,i32*%eD,align 4
%eE=getelementptr inbounds i8,i8*%eB,i64 28
%eF=bitcast i8*%eE to i32*
store i32 0,i32*%eF,align 1
%eG=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%eH=bitcast i8*%eB to i8**
store i8*%eG,i8**%eH,align 8
%eI=getelementptr inbounds i8,i8*%eB,i64 8
%eJ=bitcast i8*%eI to i32*
store i32%aC,i32*%eJ,align 4
%eK=getelementptr inbounds i8,i8*%eB,i64 12
%eL=bitcast i8*%eK to i32*
store i32%aF,i32*%eL,align 4
%eM=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%eN=getelementptr inbounds i8,i8*%eB,i64 16
%eO=bitcast i8*%eN to i8**
store i8*%eM,i8**%eO,align 8
%eP=getelementptr inbounds i8,i8*%eB,i64 24
%eQ=bitcast i8*%eP to i32*
store i32%bj,i32*%eQ,align 4
%eR=getelementptr inbounds i8,i8*%eB,i64 32
%eS=bitcast i8*%eR to i32*
store i32 5,i32*%eS,align 4
%eT=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%eU=call fastcc i8*%ey(i8*inreg%eT,i8*inreg%eB)
%eV=call{i32,i1}@llvm.sadd.with.overflow.i32(i32%bj,i32%aF)#0
%eW=extractvalue{i32,i1}%eV,1
br i1%eW,label%eX,label%ff
eX:
store i8*null,i8**%e,align 8
%eY=load i8*,i8**@_SMLZ8Overflow,align 8
store i8*%eY,i8**%b,align 8
%eZ=call i8*@sml_alloc(i32 inreg 20)#0
%e0=getelementptr inbounds i8,i8*%eZ,i64 -4
%e1=bitcast i8*%e0 to i32*
store i32 1342177296,i32*%e1,align 4
store i8*%eZ,i8**%c,align 8
%e2=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%e3=bitcast i8*%eZ to i8**
store i8*%e2,i8**%e3,align 8
%e4=getelementptr inbounds i8,i8*%eZ,i64 8
%e5=bitcast i8*%e4 to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@aW,i64 0,i32 2,i64 0),i8**%e5,align 8
%e6=getelementptr inbounds i8,i8*%eZ,i64 16
%e7=bitcast i8*%e6 to i32*
store i32 3,i32*%e7,align 4
%e8=call i8*@sml_alloc(i32 inreg 60)#0
%e9=getelementptr inbounds i8,i8*%e8,i64 -4
%fa=bitcast i8*%e9 to i32*
store i32 1342177336,i32*%fa,align 4
%fb=getelementptr inbounds i8,i8*%e8,i64 56
%fc=bitcast i8*%fb to i32*
store i32 1,i32*%fc,align 4
%fd=load i8*,i8**%c,align 8
%fe=bitcast i8*%e8 to i8**
store i8*%fd,i8**%fe,align 8
call void@sml_raise(i8*inreg%e8)#1
unreachable
ff:
%fg=bitcast i8*%eU to i32*
%fh=load i32,i32*%fg,align 4
%fi=add nsw i32%bj,%aF
%fj=load i32*,i32**%bh,align 8
store i32%fi,i32*%fj,align 4
%fk=icmp eq i32%fh,0
%fl=icmp ne i32%aF,%bF
%fm=and i1%fl,%fk
br i1%fm,label%et,label%hn
fn:
%fo=bitcast i8**%e to i32**
%fp=load i32*,i32**%fo,align 8
%fq=load i32,i32*%fp,align 4
%fr=icmp eq i32%fq,0
br i1%fr,label%f4,label%fs
fs:
%ft=load i8*,i8**%b,align 8
%fu=getelementptr inbounds i8,i8*%ft,i64 40
%fv=bitcast i8*%fu to i8**
%fw=load i8*,i8**%fv,align 8
%fx=getelementptr inbounds i8,i8*%fw,i64 16
%fy=bitcast i8*%fx to i8*(i8*,i8*)**
%fz=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%fy,align 8
%fA=bitcast i8*%fw to i8**
%fB=load i8*,i8**%fA,align 8
store i8*%fB,i8**%f,align 8
%fC=call i8*@sml_alloc(i32 inreg 12)#0
%fD=getelementptr inbounds i8,i8*%fC,i64 -4
%fE=bitcast i8*%fD to i32*
store i32 1342177288,i32*%fE,align 4
store i8*%fC,i8**%g,align 8
%fF=getelementptr inbounds i8,i8*%fC,i64 4
%fG=bitcast i8*%fF to i32*
store i32 0,i32*%fG,align 1
%fH=bitcast i8*%fC to i32*
store i32%fq,i32*%fH,align 4
%fI=getelementptr inbounds i8,i8*%fC,i64 8
%fJ=bitcast i8*%fI to i32*
store i32 0,i32*%fJ,align 4
%fK=call i8*@sml_alloc(i32 inreg 28)#0
%fL=getelementptr inbounds i8,i8*%fK,i64 -4
%fM=bitcast i8*%fL to i32*
store i32 1342177304,i32*%fM,align 4
%fN=getelementptr inbounds i8,i8*%fK,i64 12
%fO=bitcast i8*%fN to i32*
store i32 0,i32*%fO,align 1
%fP=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%fQ=bitcast i8*%fK to i8**
store i8*%fP,i8**%fQ,align 8
%fR=getelementptr inbounds i8,i8*%fK,i64 8
%fS=bitcast i8*%fR to i32*
store i32 0,i32*%fS,align 4
%fT=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%fU=getelementptr inbounds i8,i8*%fK,i64 16
%fV=bitcast i8*%fU to i8**
store i8*%fT,i8**%fV,align 8
%fW=getelementptr inbounds i8,i8*%fK,i64 24
%fX=bitcast i8*%fW to i32*
store i32 5,i32*%fX,align 4
%fY=invoke fastcc i8*@_SMLFN14CharArraySlice5sliceE(i8*inreg%fK)
to label%fZ unwind label%gF
fZ:
%f0=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%f1=invoke fastcc i8*%fz(i8*inreg%f0,i8*inreg%fY)
to label%f2 unwind label%gF
f2:
%f3=load i32*,i32**%fo,align 8
store i8*null,i8**%e,align 8
store i32 0,i32*%f3,align 4
br label%f5
f4:
store i8*null,i8**%e,align 8
br label%f5
f5:
%f6=load i8*,i8**%b,align 8
%f7=getelementptr inbounds i8,i8*%f6,i64 48
%f8=bitcast i8*%f7 to i8**
%f9=load i8*,i8**%f8,align 8
%ga=getelementptr inbounds i8,i8*%f9,i64 16
%gb=bitcast i8*%ga to i8*(i8*,i8*)**
%gc=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%gb,align 8
%gd=bitcast i8*%f9 to i8**
%ge=load i8*,i8**%gd,align 8
store i8*%ge,i8**%d,align 8
%gf=call i8*@sml_alloc(i32 inreg 12)#0
%gg=getelementptr inbounds i8,i8*%gf,i64 -4
%gh=bitcast i8*%gg to i32*
store i32 1342177288,i32*%gh,align 4
store i8*%gf,i8**%e,align 8
%gi=getelementptr inbounds i8,i8*%gf,i64 4
%gj=bitcast i8*%gi to i32*
store i32 0,i32*%gj,align 1
%gk=bitcast i8*%gf to i32*
store i32%aF,i32*%gk,align 4
%gl=getelementptr inbounds i8,i8*%gf,i64 8
%gm=bitcast i8*%gl to i32*
store i32 0,i32*%gm,align 4
%gn=call i8*@sml_alloc(i32 inreg 28)#0
%go=getelementptr inbounds i8,i8*%gn,i64 -4
%gp=bitcast i8*%go to i32*
store i32 1342177304,i32*%gp,align 4
%gq=getelementptr inbounds i8,i8*%gn,i64 12
%gr=bitcast i8*%gq to i32*
store i32 0,i32*%gr,align 1
%gs=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%gt=bitcast i8*%gn to i8**
store i8*%gs,i8**%gt,align 8
%gu=getelementptr inbounds i8,i8*%gn,i64 8
%gv=bitcast i8*%gu to i32*
store i32%aC,i32*%gv,align 4
%gw=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%gx=getelementptr inbounds i8,i8*%gn,i64 16
%gy=bitcast i8*%gx to i8**
store i8*%gw,i8**%gy,align 8
%gz=getelementptr inbounds i8,i8*%gn,i64 24
%gA=bitcast i8*%gz to i32*
store i32 5,i32*%gA,align 4
%gB=invoke fastcc i8*@_SMLFN15CharVectorSlice5sliceE(i8*inreg%gn)
to label%gC unwind label%gF
gC:
%gD=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%gE=invoke fastcc i8*%gc(i8*inreg%gD,i8*inreg%gB)
to label%et unwind label%gF
gF:
%gG=landingpad{i8*,i8*}
catch i8*null
%gH=extractvalue{i8*,i8*}%gG,1
%gI=bitcast i8*%gH to i8**
%gJ=load i8*,i8**%gI,align 8
store i8*null,i8**%f,align 8
store i8*null,i8**%d,align 8
store i8*%gJ,i8**%e,align 8
%gK=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%gK,i8**%c,align 8
%gL=load i8*,i8**%b,align 8
%gM=getelementptr inbounds i8,i8*%gL,i64 56
%gN=bitcast i8*%gM to i8**
%gO=load i8*,i8**%gN,align 8
%gP=getelementptr inbounds i8,i8*%gO,i64 56
%gQ=bitcast i8*%gP to i8**
%gR=load i8*,i8**%gQ,align 8
store i8*%gR,i8**%b,align 8
%gS=call i8*@sml_alloc(i32 inreg 28)#0
%gT=getelementptr inbounds i8,i8*%gS,i64 -4
%gU=bitcast i8*%gT to i32*
store i32 1342177304,i32*%gU,align 4
store i8*%gS,i8**%d,align 8
%gV=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%gW=bitcast i8*%gS to i8**
store i8*%gV,i8**%gW,align 8
%gX=getelementptr inbounds i8,i8*%gS,i64 8
%gY=bitcast i8*%gX to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[13x i8]}>,<{[4x i8],i32,[13x i8]}>*@aX,i64 0,i32 2,i64 0),i8**%gY,align 8
%gZ=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%g0=getelementptr inbounds i8,i8*%gS,i64 16
%g1=bitcast i8*%g0 to i8**
store i8*%gZ,i8**%g1,align 8
%g2=getelementptr inbounds i8,i8*%gS,i64 24
%g3=bitcast i8*%g2 to i32*
store i32 7,i32*%g3,align 4
%g4=call i8*@sml_alloc(i32 inreg 28)#0
%g5=getelementptr inbounds i8,i8*%g4,i64 -4
%g6=bitcast i8*%g5 to i32*
store i32 1342177304,i32*%g6,align 4
store i8*%g4,i8**%b,align 8
%g7=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%g8=bitcast i8*%g4 to i8**
store i8*%g7,i8**%g8,align 8
%g9=getelementptr inbounds i8,i8*%g4,i64 8
%ha=bitcast i8*%g9 to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@bM,i64 0,i32 2,i64 0),i8**%ha,align 8
%hb=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%hc=getelementptr inbounds i8,i8*%g4,i64 16
%hd=bitcast i8*%hc to i8**
store i8*%hb,i8**%hd,align 8
%he=getelementptr inbounds i8,i8*%g4,i64 24
%hf=bitcast i8*%he to i32*
store i32 7,i32*%hf,align 4
%hg=call i8*@sml_alloc(i32 inreg 60)#0
%hh=getelementptr inbounds i8,i8*%hg,i64 -4
%hi=bitcast i8*%hh to i32*
store i32 1342177336,i32*%hi,align 4
%hj=getelementptr inbounds i8,i8*%hg,i64 56
%hk=bitcast i8*%hj to i32*
store i32 1,i32*%hk,align 4
%hl=load i8*,i8**%b,align 8
%hm=bitcast i8*%hg to i8**
store i8*%hl,i8**%hm,align 8
call void@sml_raise(i8*inreg%hg)#1
unreachable
hn:
%ho=load i8**,i8***%aG,align 8
%hp=load i8*,i8**%ho,align 8
store i8*%hp,i8**%c,align 8
%hq=getelementptr inbounds i8*,i8**%ho,i64 4
%hr=load i8*,i8**%hq,align 8
store i8*%hr,i8**%d,align 8
%hs=getelementptr inbounds i8*,i8**%ho,i64 5
%ht=load i8*,i8**%hs,align 8
%hu=bitcast i8*%hr to i32*
%hv=load i32,i32*%hu,align 4
%hw=icmp eq i32%hv,0
br i1%hw,label%et,label%hx
hx:
%hy=getelementptr inbounds i8,i8*%ht,i64 16
%hz=bitcast i8*%hy to i8*(i8*,i8*)**
%hA=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%hz,align 8
%hB=bitcast i8*%ht to i8**
%hC=load i8*,i8**%hB,align 8
store i8*%hC,i8**%e,align 8
%hD=call i8*@sml_alloc(i32 inreg 12)#0
%hE=getelementptr inbounds i8,i8*%hD,i64 -4
%hF=bitcast i8*%hE to i32*
store i32 1342177288,i32*%hF,align 4
store i8*%hD,i8**%f,align 8
%hG=getelementptr inbounds i8,i8*%hD,i64 4
%hH=bitcast i8*%hG to i32*
store i32 0,i32*%hH,align 1
%hI=bitcast i8*%hD to i32*
store i32%hv,i32*%hI,align 4
%hJ=getelementptr inbounds i8,i8*%hD,i64 8
%hK=bitcast i8*%hJ to i32*
store i32 0,i32*%hK,align 4
%hL=call i8*@sml_alloc(i32 inreg 28)#0
%hM=getelementptr inbounds i8,i8*%hL,i64 -4
%hN=bitcast i8*%hM to i32*
store i32 1342177304,i32*%hN,align 4
%hO=getelementptr inbounds i8,i8*%hL,i64 12
%hP=bitcast i8*%hO to i32*
store i32 0,i32*%hP,align 1
%hQ=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%hR=bitcast i8*%hL to i8**
store i8*%hQ,i8**%hR,align 8
%hS=getelementptr inbounds i8,i8*%hL,i64 8
%hT=bitcast i8*%hS to i32*
store i32 0,i32*%hT,align 4
%hU=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%hV=getelementptr inbounds i8,i8*%hL,i64 16
%hW=bitcast i8*%hV to i8**
store i8*%hU,i8**%hW,align 8
%hX=getelementptr inbounds i8,i8*%hL,i64 24
%hY=bitcast i8*%hX to i32*
store i32 5,i32*%hY,align 4
%hZ=invoke fastcc i8*@_SMLFN14CharArraySlice5sliceE(i8*inreg%hL)
to label%h0 unwind label%h6
h0:
%h1=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%h2=invoke fastcc i8*%hA(i8*inreg%h1,i8*inreg%hZ)
to label%h3 unwind label%h6
h3:
%h4=bitcast i8**%d to i32**
%h5=load i32*,i32**%h4,align 8
store i32 0,i32*%h5,align 4
ret void
h6:
%h7=landingpad{i8*,i8*}
catch i8*null
%h8=extractvalue{i8*,i8*}%h7,1
%h9=bitcast i8*%h8 to i8**
%ia=load i8*,i8**%h9,align 8
store i8*null,i8**%d,align 8
store i8*%ia,i8**%e,align 8
%ib=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%ib,i8**%c,align 8
%ic=load i8*,i8**%b,align 8
%id=getelementptr inbounds i8,i8*%ic,i64 56
%ie=bitcast i8*%id to i8**
%if=load i8*,i8**%ie,align 8
%ig=getelementptr inbounds i8,i8*%if,i64 56
%ih=bitcast i8*%ig to i8**
%ii=load i8*,i8**%ih,align 8
store i8*%ii,i8**%b,align 8
%ij=call i8*@sml_alloc(i32 inreg 28)#0
%ik=getelementptr inbounds i8,i8*%ij,i64 -4
%il=bitcast i8*%ik to i32*
store i32 1342177304,i32*%il,align 4
store i8*%ij,i8**%d,align 8
%im=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%in=bitcast i8*%ij to i8**
store i8*%im,i8**%in,align 8
%io=getelementptr inbounds i8,i8*%ij,i64 8
%ip=bitcast i8*%io to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[13x i8]}>,<{[4x i8],i32,[13x i8]}>*@aX,i64 0,i32 2,i64 0),i8**%ip,align 8
%iq=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%ir=getelementptr inbounds i8,i8*%ij,i64 16
%is=bitcast i8*%ir to i8**
store i8*%iq,i8**%is,align 8
%it=getelementptr inbounds i8,i8*%ij,i64 24
%iu=bitcast i8*%it to i32*
store i32 7,i32*%iu,align 4
%iv=call i8*@sml_alloc(i32 inreg 28)#0
%iw=getelementptr inbounds i8,i8*%iv,i64 -4
%ix=bitcast i8*%iw to i32*
store i32 1342177304,i32*%ix,align 4
store i8*%iv,i8**%b,align 8
%iy=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%iz=bitcast i8*%iv to i8**
store i8*%iy,i8**%iz,align 8
%iA=getelementptr inbounds i8,i8*%iv,i64 8
%iB=bitcast i8*%iA to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@bM,i64 0,i32 2,i64 0),i8**%iB,align 8
%iC=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%iD=getelementptr inbounds i8,i8*%iv,i64 16
%iE=bitcast i8*%iD to i8**
store i8*%iC,i8**%iE,align 8
%iF=getelementptr inbounds i8,i8*%iv,i64 24
%iG=bitcast i8*%iF to i32*
store i32 7,i32*%iG,align 4
%iH=call i8*@sml_alloc(i32 inreg 60)#0
%iI=getelementptr inbounds i8,i8*%iH,i64 -4
%iJ=bitcast i8*%iI to i32*
store i32 1342177336,i32*%iJ,align 4
%iK=getelementptr inbounds i8,i8*%iH,i64 56
%iL=bitcast i8*%iK to i32*
store i32 1,i32*%iL,align 4
%iM=load i8*,i8**%b,align 8
%iN=bitcast i8*%iH to i8**
store i8*%iM,i8**%iN,align 8
call void@sml_raise(i8*inreg%iH)#1
unreachable
}
define fastcc void@_SMLFN6TextIO8StreamIO13setBufferModeE(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,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@a4,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]}>*@a2,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,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@bM,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*@_SMLFN14CharArraySlice5sliceE(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]}>*@a2,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,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@bM,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@_SMLFN6TextIO8StreamIO13getBufferModeE(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,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@a4,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]}>*@a5,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,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@bM,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*@_SMLLLN6TextIO5inputE_590(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
k:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%d,align 8
store i8*%b,i8**%c,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%i,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%c,align 8
br label%i
i:
%j=phi i8*[%h,%g],[%b,%k]
%l=getelementptr inbounds i8,i8*%j,i64 24
%m=bitcast i8*%l to i8***
%n=load i8**,i8***%m,align 8
%o=load i8*,i8**%n,align 8
%p=bitcast i8*%o to i32*
%q=load i32,i32*%p,align 4
switch i32%q,label%r[
i32 2,label%C
i32 3,label%s
]
r:
ret i8*%o
s:
store i8*null,i8**%d,align 8
%t=call i8*@sml_alloc(i32 inreg 20)#0
%u=getelementptr inbounds i8,i8*%t,i64 -4
%v=bitcast i8*%u to i32*
store i32 1342177296,i32*%v,align 4
%w=bitcast i8*%t to i64*
store i64 0,i64*%w,align 4
%x=load i8*,i8**%c,align 8
%y=getelementptr inbounds i8,i8*%t,i64 8
%z=bitcast i8*%y to i8**
store i8*%x,i8**%z,align 8
%A=getelementptr inbounds i8,i8*%t,i64 16
%B=bitcast i8*%A to i32*
store i32 2,i32*%B,align 4
ret i8*%t
C:
%D=bitcast i8**%d to i8***
%E=load i8**,i8***%D,align 8
%F=load i8*,i8**%E,align 8
store i8*%F,i8**%d,align 8
%G=call i8*@sml_alloc(i32 inreg 28)#0
%H=getelementptr inbounds i8,i8*%G,i64 -4
%I=bitcast i8*%H to i32*
store i32 1342177304,i32*%I,align 4
%J=load i8*,i8**%d,align 8
%K=bitcast i8*%G to i8**
store i8*%J,i8**%K,align 8
%L=getelementptr inbounds i8,i8*%G,i64 8
%M=bitcast i8*%L to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[6x i8]}>,<{[4x i8],i32,[6x i8]}>*@a7,i64 0,i32 2,i64 0),i8**%M,align 8
%N=load i8*,i8**%c,align 8
%O=getelementptr inbounds i8,i8*%G,i64 16
%P=bitcast i8*%O to i8**
store i8*%N,i8**%P,align 8
%Q=getelementptr inbounds i8,i8*%G,i64 24
%R=bitcast i8*%Q to i32*
store i32 7,i32*%R,align 4
%S=tail call fastcc i8*@_SMLLLN6TextIO8StreamIO12extendStreamE_334(i8*inreg%G)
ret i8*%S
}
define fastcc i8*@_SMLFN6TextIO5inputE(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=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
store i8*%o,i8**%c,align 8
%p=bitcast i8*%o to i8**
%q=load i8*,i8**%p,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 24
%v=bitcast i8*%u to i8**
%w=load i8*,i8**%v,align 8
store i8*%w,i8**%d,align 8
%x=call i8*@sml_alloc(i32 inreg 12)#0
%y=getelementptr inbounds i8,i8*%x,i64 -4
%z=bitcast i8*%y to i32*
store i32 1342177288,i32*%z,align 4
store i8*%x,i8**%e,align 8
%A=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%B=bitcast i8*%x to i8**
store i8*%A,i8**%B,align 8
%C=getelementptr inbounds i8,i8*%x,i64 8
%D=bitcast i8*%C to i32*
store i32 1,i32*%D,align 4
%E=call i8*@sml_alloc(i32 inreg 28)#0
%F=getelementptr inbounds i8,i8*%E,i64 -4
%G=bitcast i8*%F to i32*
store i32 1342177304,i32*%G,align 4
%H=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%I=bitcast i8*%E to i8**
store i8*%H,i8**%I,align 8
%J=getelementptr inbounds i8,i8*%E,i64 8
%K=bitcast i8*%J to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO5inputE_590 to void(...)*),void(...)**%K,align 8
%L=getelementptr inbounds i8,i8*%E,i64 16
%M=bitcast i8*%L to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO5inputE_590 to void(...)*),void(...)**%M,align 8
%N=getelementptr inbounds i8,i8*%E,i64 24
%O=bitcast i8*%N to i32*
store i32 -2147483647,i32*%O,align 4
%P=call fastcc i8*@_SMLLLN6TextIO8StreamIO16generalizedInputE_340(i8*inreg%E)
%Q=getelementptr inbounds i8,i8*%P,i64 16
%R=bitcast i8*%Q to i8*(i8*,i8*)**
%S=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%R,align 8
%T=bitcast i8*%P to i8**
%U=load i8*,i8**%T,align 8
%V=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%W=call fastcc i8*%S(i8*inreg%U,i8*inreg%V)
%X=bitcast i8*%W to i8**
%Y=load i8*,i8**%X,align 8
%Z=getelementptr inbounds i8,i8*%W,i64 8
%aa=bitcast i8*%Z to i8**
%ab=load i8*,i8**%aa,align 8
%ac=load i8*,i8**%b,align 8
%ad=bitcast i8*%ac to i8**
call void@sml_write(i8*inreg%ac,i8**inreg%ad,i8*inreg%ab)#0
ret i8*%Y
}
define fastcc i8*@_SMLFN6TextIO6input1E(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*@_SMLFN6TextIO8StreamIO6input1E(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*@_SMLFN6TextIO6inputNE(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*@_SMLFN6TextIO8StreamIO6inputNE(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 fastcc i8*@_SMLFN6TextIO8inputAllE(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*@_SMLFN6TextIO8StreamIO8inputAllE(i8*inreg%l)
%n=bitcast i8*%m to i8**
%o=load i8*,i8**%n,align 8
%p=getelementptr inbounds i8,i8*%m,i64 8
%q=bitcast i8*%p to i8**
%r=load i8*,i8**%q,align 8
%s=load i8*,i8**%b,align 8
%t=bitcast i8*%s to i8**
call void@sml_write(i8*inreg%s,i8**inreg%t,i8*inreg%r)#0
ret i8*%o
}
define fastcc i8*@_SMLFN6TextIO8canInputE(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*@_SMLFN6TextIO8StreamIO8canInputE(i8*inreg%p)
ret i8*%A
}
define fastcc i8*@_SMLFN6TextIO9lookaheadE(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*@_SMLFN6TextIO8StreamIO6input1E(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@_SMLFN6TextIO7closeInE(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@_SMLFN6TextIO8StreamIO7closeInE(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%P,label%u
u:
%v=getelementptr inbounds i8,i8*%m,i64 8
%w=bitcast i8*%v to i32**
%x=load i32*,i32**%w,align 8
%y=getelementptr inbounds i32,i32*%x,i64 -1
%z=load i32,i32*%y,align 4
%A=and i32%z,268435455
%B=add nsw i32%A,-1
%C=call i8*@sml_alloc(i32 inreg 20)#0
%D=getelementptr inbounds i8,i8*%C,i64 -4
%E=bitcast i8*%D to i32*
store i32 1342177296,i32*%E,align 4
%F=getelementptr inbounds i8,i8*%C,i64 12
%G=bitcast i8*%F to i32*
store i32 0,i32*%G,align 1
%H=load i8*,i8**%c,align 8
%I=bitcast i8*%C to i8**
store i8*%H,i8**%I,align 8
%J=getelementptr inbounds i8,i8*%C,i64 8
%K=bitcast i8*%J to i32*
store i32%B,i32*%K,align 4
%L=getelementptr inbounds i8,i8*%C,i64 16
%M=bitcast i8*%L to i32*
store i32 1,i32*%M,align 4
%N=load i8*,i8**%b,align 8
%O=bitcast i8*%N to i8**
call void@sml_write(i8*inreg%N,i8**inreg%O,i8*inreg%C)#0
ret void
P:
%Q=getelementptr inbounds i8,i8*%q,i64 8
%R=bitcast i8*%Q to i8**
%S=load i8*,i8**%R,align 8
store i8*%S,i8**%c,align 8
br label%h
}
define fastcc i32@_SMLFN6TextIO11endOfStreamE(i8*inreg%a)#2 gc"smlsharp"{
%b=alloca i8*,align 8
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%b,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%f,label%h
f:
%g=bitcast i8*%a to i8**
br label%k
h:
call void@sml_check(i32 inreg%d)
%i=bitcast i8**%b 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=bitcast i8*%m to i8**
%o=load i8*,i8**%n,align 8
store i8*%o,i8**%b,align 8
%p=getelementptr inbounds i8,i8*%o,i64 16
%q=bitcast i8*%p to i8**
%r=load i8*,i8**%q,align 8
%s=getelementptr inbounds i8,i8*%r,i64 8
%t=bitcast i8*%s to i32**
%u=load i32*,i32**%t,align 8
%v=getelementptr inbounds i8,i8*%o,i64 24
%w=bitcast i8*%v to i32***
%x=load i32**,i32***%w,align 8
%y=load i32*,i32**%x,align 8
%z=load i32,i32*%y,align 4
%A=icmp eq i32%z,1
br i1%A,label%an,label%B
B:
%C=getelementptr inbounds i8,i8*%o,i64 8
%D=bitcast i8*%C to i32**
%E=load i32*,i32**%D,align 8
%F=getelementptr inbounds i8,i8*%m,i64 8
%G=bitcast i8*%F to i32*
%H=load i32,i32*%G,align 4
%I=getelementptr inbounds i32,i32*%E,i64 -1
%J=load i32,i32*%I,align 4
%K=and i32%J,268435455
%L=add nsw i32%K,-1
%M=icmp eq i32%H,%L
br i1%M,label%N,label%an
N:
%O=load i32,i32*%u,align 4
%P=icmp eq i32%z,2
%Q=icmp eq i32%O,0
%R=and i1%P,%Q
br i1%R,label%S,label%an
S:
%T=getelementptr inbounds i8,i8*%r,i64 24
%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
%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,[12x i8]}>,<{[4x i8],i32,[12x i8]}>*@bf,i64 0,i32 2,i64 0),i8**%ac,align 8
%ad=load i8*,i8**%b,align 8
store i8*null,i8**%b,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 fastcc i8*@_SMLLLN6TextIO8StreamIO12extendStreamE_334(i8*inreg%W)
%aj=bitcast i8*%ai to i32*
%ak=load i32,i32*%aj,align 4
%al=icmp eq i32%ak,0
%am=zext i1%al to i32
br label%an
an:
%ao=phi i32[%am,%S],[1,%N],[0,%B],[0,%k]
ret i32%ao
}
define fastcc void@_SMLFN6TextIO6outputE(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@_SMLFN6TextIO8StreamIO6outputE(i8*inreg%q)
ret void
}
define fastcc void@_SMLFN6TextIO7output1E(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@_SMLFN6TextIO8StreamIO7output1E(i8*inreg%o)
ret void
}
define fastcc void@_SMLFN6TextIO8flushOutE(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*@_SMLFN14CharArraySlice5sliceE(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]}>*@bN,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,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@bM,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@_SMLFN6TextIO8closeOutE(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@_SMLFN6TextIO8StreamIO8closeOutE(i8*inreg%l)
ret void
}
define fastcc i8*@_SMLFN6TextIO9getPosOutE(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*@_SMLFN6TextIO8StreamIO9getPosOutE(i8*inreg%l)
ret i8*%m
}
define fastcc void@_SMLFN6TextIO9setPosOutE(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*@_SMLFN6TextIO8StreamIO9setPosOutE(i8*inreg%n)
ret void
}
define fastcc i8*@_SMLFN6TextIO10mkInstreamE(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*@_SMLFN6TextIO11getInstreamE(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@_SMLFN6TextIO11setInstreamE(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*@_SMLFN6TextIO11mkOutstreamE(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*@_SMLFN6TextIO12getOutstreamE(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@_SMLFN6TextIO12setOutstreamE(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*@_SMLFN6TextIO6openInE(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*@_SMLFN30SMLSharp__SMLNJ__PosixTextPrimIO6openRdE(i8*inreg%n)
to label%p unwind label%E
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=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%u=bitcast i8*%q to i8**
store i8*%t,i8**%u,align 8
%v=getelementptr inbounds i8,i8*%q,i64 8
%w=bitcast i8*%v to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[1x i8]}>,<{[4x i8],i32,[1x i8]}>*@bK,i64 0,i32 2,i64 0),i8**%w,align 8
%x=getelementptr inbounds i8,i8*%q,i64 16
%y=bitcast i8*%x to i32*
store i32 3,i32*%y,align 4
%z=invoke fastcc i8*@_SMLFN6TextIO8StreamIO10mkInstreamE(i8*inreg%q)
to label%A unwind label%E
A:
%B=load i8*,i8**%d,align 8
%C=bitcast i8*%B to i8**
call void@sml_write(i8*inreg%B,i8**inreg%C,i8*inreg%z)#0
%D=load i8*,i8**%d,align 8
ret i8*%D
E:
%F=landingpad{i8*,i8*}
catch i8*null
%G=extractvalue{i8*,i8*}%F,1
%H=bitcast i8*%G to i8**
%I=load i8*,i8**%H,align 8
store i8*null,i8**%d,align 8
store i8*%I,i8**%e,align 8
%J=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%J,i8**%c,align 8
%K=call i8*@sml_alloc(i32 inreg 28)#0
%L=getelementptr inbounds i8,i8*%K,i64 -4
%M=bitcast i8*%L to i32*
store i32 1342177304,i32*%M,align 4
store i8*%K,i8**%d,align 8
%N=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%O=bitcast i8*%K to i8**
store i8*%N,i8**%O,align 8
%P=getelementptr inbounds i8,i8*%K,i64 8
%Q=bitcast i8*%P to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[7x i8]}>,<{[4x i8],i32,[7x i8]}>*@bE,i64 0,i32 2,i64 0),i8**%Q,align 8
%R=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%S=getelementptr inbounds i8,i8*%K,i64 16
%T=bitcast i8*%S to i8**
store i8*%R,i8**%T,align 8
%U=getelementptr inbounds i8,i8*%K,i64 24
%V=bitcast i8*%U to i32*
store i32 7,i32*%V,align 4
%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**%b,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,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@bt,i64 0,i32 2,i64 0),i8**%ac,align 8
%ad=load i8*,i8**%d,align 8
store i8*null,i8**%d,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 60)#0
%aj=getelementptr inbounds i8,i8*%ai,i64 -4
%ak=bitcast i8*%aj to i32*
store i32 1342177336,i32*%ak,align 4
%al=getelementptr inbounds i8,i8*%ai,i64 56
%am=bitcast i8*%al to i32*
store i32 1,i32*%am,align 4
%an=load i8*,i8**%b,align 8
%ao=bitcast i8*%ai to i8**
store i8*%an,i8**%ao,align 8
call void@sml_raise(i8*inreg%ai)#1
unreachable
}
define fastcc i8*@_SMLFN6TextIO7openOutE(i8*inreg%a)#2 gc"smlsharp"personality i32(...)*@sml_personality{
l:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%b,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%j,label%h
h:
call void@sml_check(i32 inreg%f)
%i=load i8*,i8**%b,align 8
br label%j
j:
%k=phi i8*[%i,%h],[%a,%l]
%m=invoke fastcc i8*@_SMLFN30SMLSharp__SMLNJ__PosixTextPrimIO6openWrE(i8*inreg%k)
to label%n unwind label%X
n:
store i8*%m,i8**%c,align 8
%o=getelementptr inbounds i8,i8*%m,i64 48
%p=bitcast i8*%o to i8**
%q=load i8*,i8**%p,align 8
store i8*%q,i8**%d,align 8
%r=call i8*@sml_alloc(i32 inreg 8)#0
%s=getelementptr inbounds i8,i8*%r,i64 -4
%t=bitcast i8*%s to i32*
store i32 805306376,i32*%t,align 4
store i8*%r,i8**%e,align 8
%u=bitcast i8*%r to i64*
store i64 0,i64*%u,align 1
%v=load i8*,i8**%d,align 8
%w=icmp eq i8*%v,null
store i8*null,i8**%d,align 8
br i1%w,label%F,label%x
x:
%y=bitcast i8*%v to i32*
%z=load i32,i32*%y,align 4
%A=invoke fastcc i32@_SMLFN13SMLSharp__OSIO4kindE(i32 inreg%z)
to label%B unwind label%X
B:
%C=load i32,i32*@_SMLZN13SMLSharp__OSIO4Kind3ttyE,align 4
%D=icmp eq i32%A,%C
%E=zext i1%D to i32
br label%F
F:
%G=phi i32[%E,%B],[0,%n]
%H=call i8*@sml_alloc(i32 inreg 20)#0
%I=getelementptr inbounds i8,i8*%H,i64 -4
%J=bitcast i8*%I to i32*
store i32 1342177296,i32*%J,align 4
%K=getelementptr inbounds i8,i8*%H,i64 12
%L=bitcast i8*%K to i32*
store i32 0,i32*%L,align 1
%M=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%N=bitcast i8*%H to i8**
store i8*%M,i8**%N,align 8
%O=getelementptr inbounds i8,i8*%H,i64 8
%P=bitcast i8*%O to i32*
store i32%G,i32*%P,align 4
%Q=getelementptr inbounds i8,i8*%H,i64 16
%R=bitcast i8*%Q to i32*
store i32 1,i32*%R,align 4
%S=invoke fastcc i8*@_SMLFN6TextIO8StreamIO11mkOutstreamE(i8*inreg%H)
to label%T unwind label%X
T:
%U=load i8*,i8**%e,align 8
%V=bitcast i8*%U to i8**
call void@sml_write(i8*inreg%U,i8**inreg%V,i8*inreg%S)#0
%W=load i8*,i8**%e,align 8
ret i8*%W
X:
%Y=landingpad{i8*,i8*}
catch i8*null
%Z=extractvalue{i8*,i8*}%Y,1
%aa=bitcast i8*%Z to i8**
%ab=load i8*,i8**%aa,align 8
store i8*%ab,i8**%e,align 8
%ac=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%ac,i8**%c,align 8
%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**%d,align 8
%ag=load i8*,i8**%e,align 8
store i8*null,i8**%e,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,[8x i8]}>,<{[4x i8],i32,[8x i8]}>*@bw,i64 0,i32 2,i64 0),i8**%aj,align 8
%ak=load i8*,i8**%b,align 8
store i8*null,i8**%b,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 28)#0
%aq=getelementptr inbounds i8,i8*%ap,i64 -4
%ar=bitcast i8*%aq to i32*
store i32 1342177304,i32*%ar,align 4
store i8*%ap,i8**%b,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,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@bv,i64 0,i32 2,i64 0),i8**%av,align 8
%aw=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%ax=getelementptr inbounds i8,i8*%ap,i64 16
%ay=bitcast i8*%ax to i8**
store i8*%aw,i8**%ay,align 8
%az=getelementptr inbounds i8,i8*%ap,i64 24
%aA=bitcast i8*%az 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
}
define fastcc i8*@_SMLFN6TextIO10openAppendE(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*@_SMLFN30SMLSharp__SMLNJ__PosixTextPrimIO7openAppE(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*@_SMLFN6TextIO8StreamIO11mkOutstreamE(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]}>*@bz,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,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@by,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 internal fastcc i8*@_SMLLLN6TextIO9inputLineE_647(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=bitcast i8*%b to i8**
%d=load i8*,i8**%c,align 8
%e=bitcast i8*%a to i8**
%f=load i8*,i8**%e,align 8
%g=getelementptr inbounds i8,i8*%b,i64 8
%h=bitcast i8*%g to i8**
%i=load i8*,i8**%h,align 8
%j=bitcast i8*%f to i8**
tail call void@sml_write(i8*inreg%f,i8**inreg%j,i8*inreg%i)#0
ret i8*%d
}
define fastcc i8*@_SMLFN6TextIO9inputLineE(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%h,label%g
g:
call void@sml_check(i32 inreg%e)
br label%h
h:
%i=call fastcc i8*@_SMLFN6Option3mapE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%j=getelementptr inbounds i8,i8*%i,i64 16
%k=bitcast i8*%j to i8*(i8*,i8*)**
%l=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%k,align 8
%m=bitcast i8*%i to i8**
%n=load i8*,i8**%m,align 8
store i8*%n,i8**%c,align 8
%o=call i8*@sml_alloc(i32 inreg 12)#0
%p=getelementptr inbounds i8,i8*%o,i64 -4
%q=bitcast i8*%p to i32*
store i32 1342177288,i32*%q,align 4
store i8*%o,i8**%d,align 8
%r=load i8*,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 i32*
store i32 1,i32*%u,align 4
%v=call i8*@sml_alloc(i32 inreg 28)#0
%w=getelementptr inbounds i8,i8*%v,i64 -4
%x=bitcast i8*%w to i32*
store i32 1342177304,i32*%x,align 4
%y=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%z=bitcast i8*%v to i8**
store i8*%y,i8**%z,align 8
%A=getelementptr inbounds i8,i8*%v,i64 8
%B=bitcast i8*%A to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO9inputLineE_647 to void(...)*),void(...)**%B,align 8
%C=getelementptr inbounds i8,i8*%v,i64 16
%D=bitcast i8*%C to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO9inputLineE_647 to void(...)*),void(...)**%D,align 8
%E=getelementptr inbounds i8,i8*%v,i64 24
%F=bitcast i8*%E to i32*
store i32 -2147483647,i32*%F,align 4
%G=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%H=call fastcc i8*%l(i8*inreg%G,i8*inreg%v)
%I=getelementptr inbounds i8,i8*%H,i64 16
%J=bitcast i8*%I to i8*(i8*,i8*)**
%K=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%J,align 8
%L=bitcast i8*%H to i8**
%M=load i8*,i8**%L,align 8
store i8*%M,i8**%c,align 8
%N=bitcast i8**%b to i8***
%O=load i8**,i8***%N,align 8
store i8*null,i8**%b,align 8
%P=load i8*,i8**%O,align 8
%Q=call fastcc i8*@_SMLFN6TextIO8StreamIO9inputLineE(i8*inreg%P)
%R=load i8*,i8**%c,align 8
%S=tail call fastcc i8*%K(i8*inreg%R,i8*inreg%Q)
ret i8*%S
}
define fastcc void@_SMLFN6TextIO12outputSubstrE(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@_SMLFN6TextIO8StreamIO12outputSubstrE(i8*inreg%q)
ret void
}
define fastcc i8*@_SMLFN6TextIO10openStringE(i8*inreg%a)#2 gc"smlsharp"personality i32(...)*@sml_personality{
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%b,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%h,label%g
g:
call void@sml_check(i32 inreg%e)
br label%h
h:
%i=call i8*@sml_alloc(i32 inreg 8)#0
%j=getelementptr inbounds i8,i8*%i,i64 -4
%k=bitcast i8*%j to i32*
store i32 805306376,i32*%k,align 4
store i8*%i,i8**%c,align 8
%l=bitcast i8*%i to i64*
store i64 0,i64*%l,align 1
%m=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%n=invoke fastcc i8*@_SMLFN30SMLSharp__SMLNJ__PosixTextPrimIO9strReaderE(i8*inreg%m)
to label%o unwind label%D
o:
store i8*%n,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=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%t=bitcast i8*%p to i8**
store i8*%s,i8**%t,align 8
%u=getelementptr inbounds i8,i8*%p,i64 8
%v=bitcast i8*%u to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[1x i8]}>,<{[4x i8],i32,[1x i8]}>*@bK,i64 0,i32 2,i64 0),i8**%v,align 8
%w=getelementptr inbounds i8,i8*%p,i64 16
%x=bitcast i8*%w to i32*
store i32 3,i32*%x,align 4
%y=invoke fastcc i8*@_SMLFN6TextIO8StreamIO10mkInstreamE(i8*inreg%p)
to label%z unwind label%D
z:
%A=load i8*,i8**%c,align 8
%B=bitcast i8*%A to i8**
call void@sml_write(i8*inreg%A,i8**inreg%B,i8*inreg%y)#0
%C=load i8*,i8**%c,align 8
ret i8*%C
D:
%E=landingpad{i8*,i8*}
catch i8*null
%F=extractvalue{i8*,i8*}%E,1
%G=bitcast i8*%F to i8**
%H=load i8*,i8**%G,align 8
store i8*null,i8**%c,align 8
store i8*%H,i8**%d,align 8
%I=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%I,i8**%b,align 8
%J=call i8*@sml_alloc(i32 inreg 28)#0
%K=getelementptr inbounds i8,i8*%J,i64 -4
%L=bitcast i8*%K to i32*
store i32 1342177304,i32*%L,align 4
store i8*%J,i8**%c,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 i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[7x i8]}>,<{[4x i8],i32,[7x i8]}>*@bE,i64 0,i32 2,i64 0),i8**%P,align 8
%Q=getelementptr inbounds i8,i8*%J,i64 16
%R=bitcast i8*%Q to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[9x i8]}>,<{[4x i8],i32,[9x i8]}>*@bF,i64 0,i32 2,i64 0),i8**%R,align 8
%S=getelementptr inbounds i8,i8*%J,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**%d,align 8
%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
%aa=bitcast i8*%Z to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@bD,i64 0,i32 2,i64 0),i8**%aa,align 8
%ab=load i8*,i8**%c,align 8
store i8*null,i8**%c,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**%d,align 8
%am=bitcast i8*%ag to i8**
store i8*%al,i8**%am,align 8
call void@sml_raise(i8*inreg%ag)#1
unreachable
}
define internal fastcc void@_SMLLLN6TextIO8mkStdOutE_660(i8*inreg%a,i32 inreg%b)#2 gc"smlsharp"personality i32(...)*@sml_personality{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
store i8*%a,i8**%e,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%n
j:
%k=bitcast i8*%a to i8***
%l=bitcast i8*%a to i8**
%m=bitcast i8*%a to i8**
br label%r
n:
call void@sml_check(i32 inreg%h)
%o=bitcast i8**%e to i8****
%p=load i8***,i8****%o,align 8
%q=bitcast i8***%p to i8**
br label%r
r:
%s=phi i8**[%m,%j],[%q,%n]
%t=phi i8**[%l,%j],[%q,%n]
%u=phi i8***[%k,%j],[%p,%n]
%v=load i8**,i8***%u,align 8
%w=load i8*,i8**%v,align 8
store i8*%w,i8**%c,align 8
%x=load i8*,i8**%s,align 8
%y=getelementptr inbounds i8,i8*%x,i64 32
%z=bitcast i8*%y to i8**
%A=load i8*,i8**%z,align 8
store i8*%A,i8**%d,align 8
%B=bitcast i8**%e to i8***
%C=load i8*,i8**%t,align 8
%D=getelementptr inbounds i8,i8*%C,i64 40
%E=bitcast i8*%D to i8**
%F=load i8*,i8**%E,align 8
%G=bitcast i8*%A to i32*
%H=load i32,i32*%G,align 4
%I=icmp eq i32%H,0
br i1%I,label%bb,label%J
J:
%K=getelementptr inbounds i8,i8*%F,i64 16
%L=bitcast i8*%K to i8*(i8*,i8*)**
%M=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%L,align 8
%N=bitcast i8*%F to i8**
%O=load i8*,i8**%N,align 8
store i8*%O,i8**%f,align 8
%P=call i8*@sml_alloc(i32 inreg 12)#0
%Q=getelementptr inbounds i8,i8*%P,i64 -4
%R=bitcast i8*%Q to i32*
store i32 1342177288,i32*%R,align 4
store i8*%P,i8**%g,align 8
%S=getelementptr inbounds i8,i8*%P,i64 4
%T=bitcast i8*%S to i32*
store i32 0,i32*%T,align 1
%U=bitcast i8*%P to i32*
store i32%H,i32*%U,align 4
%V=getelementptr inbounds i8,i8*%P,i64 8
%W=bitcast i8*%V to i32*
store i32 0,i32*%W,align 4
%X=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
%aa=getelementptr inbounds i8,i8*%X,i64 12
%ab=bitcast i8*%aa to i32*
store i32 0,i32*%ab,align 1
%ac=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ad=bitcast i8*%X to i8**
store i8*%ac,i8**%ad,align 8
%ae=getelementptr inbounds i8,i8*%X,i64 8
%af=bitcast i8*%ae to i32*
store i32 0,i32*%af,align 4
%ag=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%ah=getelementptr inbounds i8,i8*%X,i64 16
%ai=bitcast i8*%ah to i8**
store i8*%ag,i8**%ai,align 8
%aj=getelementptr inbounds i8,i8*%X,i64 24
%ak=bitcast i8*%aj to i32*
store i32 5,i32*%ak,align 4
%al=invoke fastcc i8*@_SMLFN14CharArraySlice5sliceE(i8*inreg%X)
to label%am unwind label%as
am:
%an=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%ao=invoke fastcc i8*%M(i8*inreg%an,i8*inreg%al)
to label%ap unwind label%as
ap:
%aq=bitcast i8**%d to i32**
%ar=load i32*,i32**%aq,align 8
store i32 0,i32*%ar,align 4
ret void
as:
%at=landingpad{i8*,i8*}
catch i8*null
%au=extractvalue{i8*,i8*}%at,1
%av=bitcast i8*%au to i8**
%aw=load i8*,i8**%av,align 8
store i8*null,i8**%d,align 8
store i8*%aw,i8**%f,align 8
%ax=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%ax,i8**%c,align 8
%ay=load i8**,i8***%B,align 8
store i8*null,i8**%e,align 8
%az=load i8*,i8**%ay,align 8
%aA=getelementptr inbounds i8,i8*%az,i64 56
%aB=bitcast i8*%aA to i8**
%aC=load i8*,i8**%aB,align 8
%aD=getelementptr inbounds i8,i8*%aC,i64 56
%aE=bitcast i8*%aD to i8**
%aF=load i8*,i8**%aE,align 8
store i8*%aF,i8**%d,align 8
%aG=call i8*@sml_alloc(i32 inreg 28)#0
%aH=getelementptr inbounds i8,i8*%aG,i64 -4
%aI=bitcast i8*%aH to i32*
store i32 1342177304,i32*%aI,align 4
store i8*%aG,i8**%e,align 8
%aJ=load i8*,i8**%f,align 8
store i8*null,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 i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[9x i8]}>,<{[4x i8],i32,[9x i8]}>*@bN,i64 0,i32 2,i64 0),i8**%aM,align 8
%aN=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aO=getelementptr inbounds i8,i8*%aG,i64 16
%aP=bitcast i8*%aO to i8**
store i8*%aN,i8**%aP,align 8
%aQ=getelementptr inbounds i8,i8*%aG,i64 24
%aR=bitcast i8*%aQ to i32*
store i32 7,i32*%aR,align 4
%aS=call i8*@sml_alloc(i32 inreg 28)#0
%aT=getelementptr inbounds i8,i8*%aS,i64 -4
%aU=bitcast i8*%aT to i32*
store i32 1342177304,i32*%aU,align 4
store i8*%aS,i8**%d,align 8
%aV=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aW=bitcast i8*%aS to i8**
store i8*%aV,i8**%aW,align 8
%aX=getelementptr inbounds i8,i8*%aS,i64 8
%aY=bitcast i8*%aX to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@bM,i64 0,i32 2,i64 0),i8**%aY,align 8
%aZ=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%a0=getelementptr inbounds i8,i8*%aS,i64 16
%a1=bitcast i8*%a0 to i8**
store i8*%aZ,i8**%a1,align 8
%a2=getelementptr inbounds i8,i8*%aS,i64 24
%a3=bitcast i8*%a2 to i32*
store i32 7,i32*%a3,align 4
%a4=call i8*@sml_alloc(i32 inreg 60)#0
%a5=getelementptr inbounds i8,i8*%a4,i64 -4
%a6=bitcast i8*%a5 to i32*
store i32 1342177336,i32*%a6,align 4
%a7=getelementptr inbounds i8,i8*%a4,i64 56
%a8=bitcast i8*%a7 to i32*
store i32 1,i32*%a8,align 4
%a9=load i8*,i8**%d,align 8
%ba=bitcast i8*%a4 to i8**
store i8*%a9,i8**%ba,align 8
call void@sml_raise(i8*inreg%a4)#1
unreachable
bb:
ret void
}
define internal fastcc void@_SMLLLN6TextIO8mkStdOutE_663(i8*inreg%a,i32 inreg%b)#2 gc"smlsharp"personality i32(...)*@sml_personality{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
store i8*%a,i8**%e,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%n
j:
%k=bitcast i8*%a to i8***
%l=bitcast i8*%a to i8**
%m=bitcast i8*%a to i8**
br label%r
n:
call void@sml_check(i32 inreg%h)
%o=bitcast i8**%e to i8****
%p=load i8***,i8****%o,align 8
%q=bitcast i8***%p to i8**
br label%r
r:
%s=phi i8**[%m,%j],[%q,%n]
%t=phi i8**[%l,%j],[%q,%n]
%u=phi i8***[%k,%j],[%p,%n]
%v=load i8**,i8***%u,align 8
%w=load i8*,i8**%v,align 8
store i8*%w,i8**%c,align 8
%x=load i8*,i8**%s,align 8
%y=getelementptr inbounds i8,i8*%x,i64 32
%z=bitcast i8*%y to i8**
%A=load i8*,i8**%z,align 8
store i8*%A,i8**%d,align 8
%B=bitcast i8**%e to i8***
%C=load i8*,i8**%t,align 8
%D=getelementptr inbounds i8,i8*%C,i64 40
%E=bitcast i8*%D to i8**
%F=load i8*,i8**%E,align 8
%G=bitcast i8*%A to i32*
%H=load i32,i32*%G,align 4
%I=icmp eq i32%H,0
br i1%I,label%bb,label%J
J:
%K=getelementptr inbounds i8,i8*%F,i64 16
%L=bitcast i8*%K to i8*(i8*,i8*)**
%M=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%L,align 8
%N=bitcast i8*%F to i8**
%O=load i8*,i8**%N,align 8
store i8*%O,i8**%f,align 8
%P=call i8*@sml_alloc(i32 inreg 12)#0
%Q=getelementptr inbounds i8,i8*%P,i64 -4
%R=bitcast i8*%Q to i32*
store i32 1342177288,i32*%R,align 4
store i8*%P,i8**%g,align 8
%S=getelementptr inbounds i8,i8*%P,i64 4
%T=bitcast i8*%S to i32*
store i32 0,i32*%T,align 1
%U=bitcast i8*%P to i32*
store i32%H,i32*%U,align 4
%V=getelementptr inbounds i8,i8*%P,i64 8
%W=bitcast i8*%V to i32*
store i32 0,i32*%W,align 4
%X=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
%aa=getelementptr inbounds i8,i8*%X,i64 12
%ab=bitcast i8*%aa to i32*
store i32 0,i32*%ab,align 1
%ac=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ad=bitcast i8*%X to i8**
store i8*%ac,i8**%ad,align 8
%ae=getelementptr inbounds i8,i8*%X,i64 8
%af=bitcast i8*%ae to i32*
store i32 0,i32*%af,align 4
%ag=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%ah=getelementptr inbounds i8,i8*%X,i64 16
%ai=bitcast i8*%ah to i8**
store i8*%ag,i8**%ai,align 8
%aj=getelementptr inbounds i8,i8*%X,i64 24
%ak=bitcast i8*%aj to i32*
store i32 5,i32*%ak,align 4
%al=invoke fastcc i8*@_SMLFN14CharArraySlice5sliceE(i8*inreg%X)
to label%am unwind label%as
am:
%an=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%ao=invoke fastcc i8*%M(i8*inreg%an,i8*inreg%al)
to label%ap unwind label%as
ap:
%aq=bitcast i8**%d to i32**
%ar=load i32*,i32**%aq,align 8
store i32 0,i32*%ar,align 4
ret void
as:
%at=landingpad{i8*,i8*}
catch i8*null
%au=extractvalue{i8*,i8*}%at,1
%av=bitcast i8*%au to i8**
%aw=load i8*,i8**%av,align 8
store i8*null,i8**%d,align 8
store i8*%aw,i8**%f,align 8
%ax=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%ax,i8**%c,align 8
%ay=load i8**,i8***%B,align 8
store i8*null,i8**%e,align 8
%az=load i8*,i8**%ay,align 8
%aA=getelementptr inbounds i8,i8*%az,i64 56
%aB=bitcast i8*%aA to i8**
%aC=load i8*,i8**%aB,align 8
%aD=getelementptr inbounds i8,i8*%aC,i64 56
%aE=bitcast i8*%aD to i8**
%aF=load i8*,i8**%aE,align 8
store i8*%aF,i8**%d,align 8
%aG=call i8*@sml_alloc(i32 inreg 28)#0
%aH=getelementptr inbounds i8,i8*%aG,i64 -4
%aI=bitcast i8*%aH to i32*
store i32 1342177304,i32*%aI,align 4
store i8*%aG,i8**%e,align 8
%aJ=load i8*,i8**%f,align 8
store i8*null,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 i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[9x i8]}>,<{[4x i8],i32,[9x i8]}>*@bN,i64 0,i32 2,i64 0),i8**%aM,align 8
%aN=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aO=getelementptr inbounds i8,i8*%aG,i64 16
%aP=bitcast i8*%aO to i8**
store i8*%aN,i8**%aP,align 8
%aQ=getelementptr inbounds i8,i8*%aG,i64 24
%aR=bitcast i8*%aQ to i32*
store i32 7,i32*%aR,align 4
%aS=call i8*@sml_alloc(i32 inreg 28)#0
%aT=getelementptr inbounds i8,i8*%aS,i64 -4
%aU=bitcast i8*%aT to i32*
store i32 1342177304,i32*%aU,align 4
store i8*%aS,i8**%d,align 8
%aV=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aW=bitcast i8*%aS to i8**
store i8*%aV,i8**%aW,align 8
%aX=getelementptr inbounds i8,i8*%aS,i64 8
%aY=bitcast i8*%aX to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@bM,i64 0,i32 2,i64 0),i8**%aY,align 8
%aZ=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%a0=getelementptr inbounds i8,i8*%aS,i64 16
%a1=bitcast i8*%a0 to i8**
store i8*%aZ,i8**%a1,align 8
%a2=getelementptr inbounds i8,i8*%aS,i64 24
%a3=bitcast i8*%a2 to i32*
store i32 7,i32*%a3,align 4
%a4=call i8*@sml_alloc(i32 inreg 60)#0
%a5=getelementptr inbounds i8,i8*%a4,i64 -4
%a6=bitcast i8*%a5 to i32*
store i32 1342177336,i32*%a6,align 4
%a7=getelementptr inbounds i8,i8*%a4,i64 56
%a8=bitcast i8*%a7 to i32*
store i32 1,i32*%a8,align 4
%a9=load i8*,i8**%d,align 8
%ba=bitcast i8*%a4 to i8**
store i8*%a9,i8**%ba,align 8
call void@sml_raise(i8*inreg%a4)#1
unreachable
bb:
ret void
}
define internal fastcc void@_SMLLLN6TextIO8mkStdOutE_664(i32 inreg%a)#4 gc"smlsharp"{
ret void
}
define internal fastcc i8*@_SMLLLN6TextIO8mkStdOutE_666()unnamed_addr#2 gc"smlsharp"{
%a=alloca i8*,align 8
%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**%a,i8*null)#0
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=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 fastcc i8*@_SMLFN30SMLSharp__SMLNJ__PosixTextPrimIO6stdOutE(i32 inreg 0)
store i8*%j,i8**%a,align 8
%k=getelementptr inbounds i8,i8*%j,i64 48
%l=bitcast i8*%k to i8**
%m=load i8*,i8**%l,align 8
%n=icmp eq i8*%m,null
br i1%n,label%v,label%o
o:
%p=bitcast i8*%m to i32*
%q=load i32,i32*%p,align 4
%r=call fastcc i32@_SMLFN13SMLSharp__OSIO4kindE(i32 inreg%q)
%s=load i32,i32*@_SMLZN13SMLSharp__OSIO4Kind3ttyE,align 4
%t=icmp eq i32%r,%s
%u=zext i1%t to i32
br label%v
v:
%w=phi i32[%u,%o],[0,%i]
%x=call i8*@sml_alloc(i32 inreg 20)#0
%y=getelementptr inbounds i8,i8*%x,i64 -4
%z=bitcast i8*%y to i32*
store i32 1342177296,i32*%z,align 4
%A=getelementptr inbounds i8,i8*%x,i64 12
%B=bitcast i8*%A to i32*
store i32 0,i32*%B,align 1
%C=load i8*,i8**%a,align 8
store i8*null,i8**%a,align 8
%D=bitcast i8*%x to i8**
store i8*%C,i8**%D,align 8
%E=getelementptr inbounds i8,i8*%x,i64 8
%F=bitcast i8*%E to i32*
store i32%w,i32*%F,align 4
%G=getelementptr inbounds i8,i8*%x,i64 16
%H=bitcast i8*%G to i32*
store i32 1,i32*%H,align 4
%I=call fastcc i8*@_SMLFN6TextIO8StreamIO11mkOutstreamE(i8*inreg%x)
store i8*%I,i8**%a,align 8
%J=getelementptr inbounds i8,i8*%I,i64 16
%K=bitcast i8*%J to i8**
%L=load i8*,i8**%K,align 8
store i8*%L,i8**%b,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**%c,align 8
%P=load i8*,i8**%a,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 i32*
store i32 1,i32*%S,align 4
%T=call i8*@sml_alloc(i32 inreg 28)#0
%U=getelementptr inbounds i8,i8*%T,i64 -4
%V=bitcast i8*%U to i32*
store i32 1342177304,i32*%V,align 4
store i8*%T,i8**%d,align 8
%W=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%X=bitcast i8*%T to i8**
store i8*%W,i8**%X,align 8
%Y=getelementptr inbounds i8,i8*%T,i64 8
%Z=bitcast i8*%Y to void(...)**
store void(...)*bitcast(void(i8*,i32)*@_SMLLLN6TextIO8mkStdOutE_660 to void(...)*),void(...)**%Z,align 8
%aa=getelementptr inbounds i8,i8*%T,i64 16
%ab=bitcast i8*%aa to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO8mkStdOutE_779 to void(...)*),void(...)**%ab,align 8
%ac=getelementptr inbounds i8,i8*%T,i64 24
%ad=bitcast i8*%ac to i32*
store i32 -2147483647,i32*%ad,align 4
%ae=call i8*@sml_alloc(i32 inreg 12)#0
%af=getelementptr inbounds i8,i8*%ae,i64 -4
%ag=bitcast i8*%af to i32*
store i32 1342177288,i32*%ag,align 4
store i8*%ae,i8**%c,align 8
%ah=load i8*,i8**%a,align 8
%ai=bitcast i8*%ae to i8**
store i8*%ah,i8**%ai,align 8
%aj=getelementptr inbounds i8,i8*%ae,i64 8
%ak=bitcast i8*%aj to i32*
store i32 1,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**%e,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 void(...)**
store void(...)*bitcast(void(i8*,i32)*@_SMLLLN6TextIO8mkStdOutE_663 to void(...)*),void(...)**%ar,align 8
%as=getelementptr inbounds i8,i8*%al,i64 16
%at=bitcast i8*%as to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO8mkStdOutE_780 to void(...)*),void(...)**%at,align 8
%au=getelementptr inbounds i8,i8*%al,i64 24
%av=bitcast i8*%au to i32*
store i32 -2147483647,i32*%av,align 4
%aw=call i8*@sml_alloc(i32 inreg 28)#0
%ax=getelementptr inbounds i8,i8*%aw,i64 -4
%ay=bitcast i8*%ax to i32*
store i32 1342177304,i32*%ay,align 4
%az=load i8*,i8**%d,align 8
%aA=bitcast i8*%aw to i8**
store i8*%az,i8**%aA,align 8
%aB=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%aC=getelementptr inbounds i8,i8*%aw,i64 8
%aD=bitcast i8*%aC to i8**
store i8*%aB,i8**%aD,align 8
%aE=getelementptr inbounds i8,i8*%aw,i64 16
%aF=bitcast i8*%aE to i8**
store i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@bH,i64 0,i32 2)to i8*),i8**%aF,align 8
%aG=getelementptr inbounds i8,i8*%aw,i64 24
%aH=bitcast i8*%aG to i32*
store i32 7,i32*%aH,align 4
%aI=call i8*@sml_alloc(i32 inreg 20)#0
%aJ=getelementptr inbounds i8,i8*%aI,i64 -4
%aK=bitcast i8*%aJ to i32*
store i32 1342177296,i32*%aK,align 4
%aL=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aM=bitcast i8*%aI to i8**
store i8*%aL,i8**%aM,align 8
%aN=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aO=getelementptr inbounds i8,i8*%aI,i64 8
%aP=bitcast i8*%aO to i8**
store i8*%aN,i8**%aP,align 8
%aQ=getelementptr inbounds i8,i8*%aI,i64 16
%aR=bitcast i8*%aQ to i32*
store i32 3,i32*%aR,align 4
call fastcc void@_SMLFN18SMLSharp__OSProcess12rebindAtExitE(i8*inreg%aI)
%aS=load i8*,i8**%a,align 8
ret i8*%aS
}
define internal fastcc void@_SMLLLN6TextIO8mkStdErrE_670(i8*inreg%a,i32 inreg%b)#2 gc"smlsharp"personality i32(...)*@sml_personality{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
store i8*%a,i8**%e,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%n
j:
%k=bitcast i8*%a to i8***
%l=bitcast i8*%a to i8**
%m=bitcast i8*%a to i8**
br label%r
n:
call void@sml_check(i32 inreg%h)
%o=bitcast i8**%e to i8****
%p=load i8***,i8****%o,align 8
%q=bitcast i8***%p to i8**
br label%r
r:
%s=phi i8**[%m,%j],[%q,%n]
%t=phi i8**[%l,%j],[%q,%n]
%u=phi i8***[%k,%j],[%p,%n]
%v=load i8**,i8***%u,align 8
%w=load i8*,i8**%v,align 8
store i8*%w,i8**%c,align 8
%x=load i8*,i8**%s,align 8
%y=getelementptr inbounds i8,i8*%x,i64 32
%z=bitcast i8*%y to i8**
%A=load i8*,i8**%z,align 8
store i8*%A,i8**%d,align 8
%B=bitcast i8**%e to i8***
%C=load i8*,i8**%t,align 8
%D=getelementptr inbounds i8,i8*%C,i64 40
%E=bitcast i8*%D to i8**
%F=load i8*,i8**%E,align 8
%G=bitcast i8*%A to i32*
%H=load i32,i32*%G,align 4
%I=icmp eq i32%H,0
br i1%I,label%bb,label%J
J:
%K=getelementptr inbounds i8,i8*%F,i64 16
%L=bitcast i8*%K to i8*(i8*,i8*)**
%M=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%L,align 8
%N=bitcast i8*%F to i8**
%O=load i8*,i8**%N,align 8
store i8*%O,i8**%f,align 8
%P=call i8*@sml_alloc(i32 inreg 12)#0
%Q=getelementptr inbounds i8,i8*%P,i64 -4
%R=bitcast i8*%Q to i32*
store i32 1342177288,i32*%R,align 4
store i8*%P,i8**%g,align 8
%S=getelementptr inbounds i8,i8*%P,i64 4
%T=bitcast i8*%S to i32*
store i32 0,i32*%T,align 1
%U=bitcast i8*%P to i32*
store i32%H,i32*%U,align 4
%V=getelementptr inbounds i8,i8*%P,i64 8
%W=bitcast i8*%V to i32*
store i32 0,i32*%W,align 4
%X=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
%aa=getelementptr inbounds i8,i8*%X,i64 12
%ab=bitcast i8*%aa to i32*
store i32 0,i32*%ab,align 1
%ac=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ad=bitcast i8*%X to i8**
store i8*%ac,i8**%ad,align 8
%ae=getelementptr inbounds i8,i8*%X,i64 8
%af=bitcast i8*%ae to i32*
store i32 0,i32*%af,align 4
%ag=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%ah=getelementptr inbounds i8,i8*%X,i64 16
%ai=bitcast i8*%ah to i8**
store i8*%ag,i8**%ai,align 8
%aj=getelementptr inbounds i8,i8*%X,i64 24
%ak=bitcast i8*%aj to i32*
store i32 5,i32*%ak,align 4
%al=invoke fastcc i8*@_SMLFN14CharArraySlice5sliceE(i8*inreg%X)
to label%am unwind label%as
am:
%an=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%ao=invoke fastcc i8*%M(i8*inreg%an,i8*inreg%al)
to label%ap unwind label%as
ap:
%aq=bitcast i8**%d to i32**
%ar=load i32*,i32**%aq,align 8
store i32 0,i32*%ar,align 4
ret void
as:
%at=landingpad{i8*,i8*}
catch i8*null
%au=extractvalue{i8*,i8*}%at,1
%av=bitcast i8*%au to i8**
%aw=load i8*,i8**%av,align 8
store i8*null,i8**%d,align 8
store i8*%aw,i8**%f,align 8
%ax=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%ax,i8**%c,align 8
%ay=load i8**,i8***%B,align 8
store i8*null,i8**%e,align 8
%az=load i8*,i8**%ay,align 8
%aA=getelementptr inbounds i8,i8*%az,i64 56
%aB=bitcast i8*%aA to i8**
%aC=load i8*,i8**%aB,align 8
%aD=getelementptr inbounds i8,i8*%aC,i64 56
%aE=bitcast i8*%aD to i8**
%aF=load i8*,i8**%aE,align 8
store i8*%aF,i8**%d,align 8
%aG=call i8*@sml_alloc(i32 inreg 28)#0
%aH=getelementptr inbounds i8,i8*%aG,i64 -4
%aI=bitcast i8*%aH to i32*
store i32 1342177304,i32*%aI,align 4
store i8*%aG,i8**%e,align 8
%aJ=load i8*,i8**%f,align 8
store i8*null,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 i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[9x i8]}>,<{[4x i8],i32,[9x i8]}>*@bN,i64 0,i32 2,i64 0),i8**%aM,align 8
%aN=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aO=getelementptr inbounds i8,i8*%aG,i64 16
%aP=bitcast i8*%aO to i8**
store i8*%aN,i8**%aP,align 8
%aQ=getelementptr inbounds i8,i8*%aG,i64 24
%aR=bitcast i8*%aQ to i32*
store i32 7,i32*%aR,align 4
%aS=call i8*@sml_alloc(i32 inreg 28)#0
%aT=getelementptr inbounds i8,i8*%aS,i64 -4
%aU=bitcast i8*%aT to i32*
store i32 1342177304,i32*%aU,align 4
store i8*%aS,i8**%d,align 8
%aV=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aW=bitcast i8*%aS to i8**
store i8*%aV,i8**%aW,align 8
%aX=getelementptr inbounds i8,i8*%aS,i64 8
%aY=bitcast i8*%aX to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@bM,i64 0,i32 2,i64 0),i8**%aY,align 8
%aZ=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%a0=getelementptr inbounds i8,i8*%aS,i64 16
%a1=bitcast i8*%a0 to i8**
store i8*%aZ,i8**%a1,align 8
%a2=getelementptr inbounds i8,i8*%aS,i64 24
%a3=bitcast i8*%a2 to i32*
store i32 7,i32*%a3,align 4
%a4=call i8*@sml_alloc(i32 inreg 60)#0
%a5=getelementptr inbounds i8,i8*%a4,i64 -4
%a6=bitcast i8*%a5 to i32*
store i32 1342177336,i32*%a6,align 4
%a7=getelementptr inbounds i8,i8*%a4,i64 56
%a8=bitcast i8*%a7 to i32*
store i32 1,i32*%a8,align 4
%a9=load i8*,i8**%d,align 8
%ba=bitcast i8*%a4 to i8**
store i8*%a9,i8**%ba,align 8
call void@sml_raise(i8*inreg%a4)#1
unreachable
bb:
ret void
}
define internal fastcc void@_SMLLLN6TextIO8mkStdErrE_673(i8*inreg%a,i32 inreg%b)#2 gc"smlsharp"personality i32(...)*@sml_personality{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
store i8*%a,i8**%e,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%n
j:
%k=bitcast i8*%a to i8***
%l=bitcast i8*%a to i8**
%m=bitcast i8*%a to i8**
br label%r
n:
call void@sml_check(i32 inreg%h)
%o=bitcast i8**%e to i8****
%p=load i8***,i8****%o,align 8
%q=bitcast i8***%p to i8**
br label%r
r:
%s=phi i8**[%m,%j],[%q,%n]
%t=phi i8**[%l,%j],[%q,%n]
%u=phi i8***[%k,%j],[%p,%n]
%v=load i8**,i8***%u,align 8
%w=load i8*,i8**%v,align 8
store i8*%w,i8**%c,align 8
%x=load i8*,i8**%s,align 8
%y=getelementptr inbounds i8,i8*%x,i64 32
%z=bitcast i8*%y to i8**
%A=load i8*,i8**%z,align 8
store i8*%A,i8**%d,align 8
%B=bitcast i8**%e to i8***
%C=load i8*,i8**%t,align 8
%D=getelementptr inbounds i8,i8*%C,i64 40
%E=bitcast i8*%D to i8**
%F=load i8*,i8**%E,align 8
%G=bitcast i8*%A to i32*
%H=load i32,i32*%G,align 4
%I=icmp eq i32%H,0
br i1%I,label%bb,label%J
J:
%K=getelementptr inbounds i8,i8*%F,i64 16
%L=bitcast i8*%K to i8*(i8*,i8*)**
%M=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%L,align 8
%N=bitcast i8*%F to i8**
%O=load i8*,i8**%N,align 8
store i8*%O,i8**%f,align 8
%P=call i8*@sml_alloc(i32 inreg 12)#0
%Q=getelementptr inbounds i8,i8*%P,i64 -4
%R=bitcast i8*%Q to i32*
store i32 1342177288,i32*%R,align 4
store i8*%P,i8**%g,align 8
%S=getelementptr inbounds i8,i8*%P,i64 4
%T=bitcast i8*%S to i32*
store i32 0,i32*%T,align 1
%U=bitcast i8*%P to i32*
store i32%H,i32*%U,align 4
%V=getelementptr inbounds i8,i8*%P,i64 8
%W=bitcast i8*%V to i32*
store i32 0,i32*%W,align 4
%X=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
%aa=getelementptr inbounds i8,i8*%X,i64 12
%ab=bitcast i8*%aa to i32*
store i32 0,i32*%ab,align 1
%ac=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ad=bitcast i8*%X to i8**
store i8*%ac,i8**%ad,align 8
%ae=getelementptr inbounds i8,i8*%X,i64 8
%af=bitcast i8*%ae to i32*
store i32 0,i32*%af,align 4
%ag=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%ah=getelementptr inbounds i8,i8*%X,i64 16
%ai=bitcast i8*%ah to i8**
store i8*%ag,i8**%ai,align 8
%aj=getelementptr inbounds i8,i8*%X,i64 24
%ak=bitcast i8*%aj to i32*
store i32 5,i32*%ak,align 4
%al=invoke fastcc i8*@_SMLFN14CharArraySlice5sliceE(i8*inreg%X)
to label%am unwind label%as
am:
%an=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%ao=invoke fastcc i8*%M(i8*inreg%an,i8*inreg%al)
to label%ap unwind label%as
ap:
%aq=bitcast i8**%d to i32**
%ar=load i32*,i32**%aq,align 8
store i32 0,i32*%ar,align 4
ret void
as:
%at=landingpad{i8*,i8*}
catch i8*null
%au=extractvalue{i8*,i8*}%at,1
%av=bitcast i8*%au to i8**
%aw=load i8*,i8**%av,align 8
store i8*null,i8**%d,align 8
store i8*%aw,i8**%f,align 8
%ax=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%ax,i8**%c,align 8
%ay=load i8**,i8***%B,align 8
store i8*null,i8**%e,align 8
%az=load i8*,i8**%ay,align 8
%aA=getelementptr inbounds i8,i8*%az,i64 56
%aB=bitcast i8*%aA to i8**
%aC=load i8*,i8**%aB,align 8
%aD=getelementptr inbounds i8,i8*%aC,i64 56
%aE=bitcast i8*%aD to i8**
%aF=load i8*,i8**%aE,align 8
store i8*%aF,i8**%d,align 8
%aG=call i8*@sml_alloc(i32 inreg 28)#0
%aH=getelementptr inbounds i8,i8*%aG,i64 -4
%aI=bitcast i8*%aH to i32*
store i32 1342177304,i32*%aI,align 4
store i8*%aG,i8**%e,align 8
%aJ=load i8*,i8**%f,align 8
store i8*null,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 i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[9x i8]}>,<{[4x i8],i32,[9x i8]}>*@bN,i64 0,i32 2,i64 0),i8**%aM,align 8
%aN=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aO=getelementptr inbounds i8,i8*%aG,i64 16
%aP=bitcast i8*%aO to i8**
store i8*%aN,i8**%aP,align 8
%aQ=getelementptr inbounds i8,i8*%aG,i64 24
%aR=bitcast i8*%aQ to i32*
store i32 7,i32*%aR,align 4
%aS=call i8*@sml_alloc(i32 inreg 28)#0
%aT=getelementptr inbounds i8,i8*%aS,i64 -4
%aU=bitcast i8*%aT to i32*
store i32 1342177304,i32*%aU,align 4
store i8*%aS,i8**%d,align 8
%aV=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aW=bitcast i8*%aS to i8**
store i8*%aV,i8**%aW,align 8
%aX=getelementptr inbounds i8,i8*%aS,i64 8
%aY=bitcast i8*%aX to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@bM,i64 0,i32 2,i64 0),i8**%aY,align 8
%aZ=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%a0=getelementptr inbounds i8,i8*%aS,i64 16
%a1=bitcast i8*%a0 to i8**
store i8*%aZ,i8**%a1,align 8
%a2=getelementptr inbounds i8,i8*%aS,i64 24
%a3=bitcast i8*%a2 to i32*
store i32 7,i32*%a3,align 4
%a4=call i8*@sml_alloc(i32 inreg 60)#0
%a5=getelementptr inbounds i8,i8*%a4,i64 -4
%a6=bitcast i8*%a5 to i32*
store i32 1342177336,i32*%a6,align 4
%a7=getelementptr inbounds i8,i8*%a4,i64 56
%a8=bitcast i8*%a7 to i32*
store i32 1,i32*%a8,align 4
%a9=load i8*,i8**%d,align 8
%ba=bitcast i8*%a4 to i8**
store i8*%a9,i8**%ba,align 8
call void@sml_raise(i8*inreg%a4)#1
unreachable
bb:
ret void
}
define internal fastcc void@_SMLLLN6TextIO8mkStdErrE_674(i32 inreg%a)#4 gc"smlsharp"{
ret void
}
define internal fastcc i8*@_SMLLLN6TextIO8mkStdErrE_676()unnamed_addr#2 gc"smlsharp"{
%a=alloca i8*,align 8
%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**%a,i8*null)#0
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=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 fastcc i8*@_SMLFN30SMLSharp__SMLNJ__PosixTextPrimIO6stdErrE(i32 inreg 0)
store i8*%j,i8**%a,align 8
%k=call i8*@sml_alloc(i32 inreg 20)#0
%l=getelementptr inbounds i8,i8*%k,i64 -4
%m=bitcast i8*%l to i32*
store i32 1342177296,i32*%m,align 4
%n=getelementptr inbounds i8,i8*%k,i64 12
%o=bitcast i8*%n to i32*
store i32 0,i32*%o,align 1
%p=load i8*,i8**%a,align 8
store i8*null,i8**%a,align 8
%q=bitcast i8*%k to i8**
store i8*%p,i8**%q,align 8
%r=getelementptr inbounds i8,i8*%k,i64 8
%s=bitcast i8*%r to i32*
store i32 2,i32*%s,align 4
%t=getelementptr inbounds i8,i8*%k,i64 16
%u=bitcast i8*%t to i32*
store i32 1,i32*%u,align 4
%v=call fastcc i8*@_SMLFN6TextIO8StreamIO11mkOutstreamE(i8*inreg%k)
store i8*%v,i8**%a,align 8
%w=getelementptr inbounds i8,i8*%v,i64 16
%x=bitcast i8*%w to i8**
%y=load i8*,i8**%x,align 8
store i8*%y,i8**%b,align 8
%z=call i8*@sml_alloc(i32 inreg 12)#0
%A=getelementptr inbounds i8,i8*%z,i64 -4
%B=bitcast i8*%A to i32*
store i32 1342177288,i32*%B,align 4
store i8*%z,i8**%c,align 8
%C=load i8*,i8**%a,align 8
%D=bitcast i8*%z to i8**
store i8*%C,i8**%D,align 8
%E=getelementptr inbounds i8,i8*%z,i64 8
%F=bitcast i8*%E to i32*
store i32 1,i32*%F,align 4
%G=call i8*@sml_alloc(i32 inreg 28)#0
%H=getelementptr inbounds i8,i8*%G,i64 -4
%I=bitcast i8*%H to i32*
store i32 1342177304,i32*%I,align 4
store i8*%G,i8**%d,align 8
%J=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%K=bitcast i8*%G to i8**
store i8*%J,i8**%K,align 8
%L=getelementptr inbounds i8,i8*%G,i64 8
%M=bitcast i8*%L to void(...)**
store void(...)*bitcast(void(i8*,i32)*@_SMLLLN6TextIO8mkStdErrE_670 to void(...)*),void(...)**%M,align 8
%N=getelementptr inbounds i8,i8*%G,i64 16
%O=bitcast i8*%N to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO8mkStdErrE_783 to void(...)*),void(...)**%O,align 8
%P=getelementptr inbounds i8,i8*%G,i64 24
%Q=bitcast i8*%P to i32*
store i32 -2147483647,i32*%Q,align 4
%R=call i8*@sml_alloc(i32 inreg 12)#0
%S=getelementptr inbounds i8,i8*%R,i64 -4
%T=bitcast i8*%S to i32*
store i32 1342177288,i32*%T,align 4
store i8*%R,i8**%c,align 8
%U=load i8*,i8**%a,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 i32*
store i32 1,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**%e,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 void(...)**
store void(...)*bitcast(void(i8*,i32)*@_SMLLLN6TextIO8mkStdErrE_673 to void(...)*),void(...)**%ae,align 8
%af=getelementptr inbounds i8,i8*%Y,i64 16
%ag=bitcast i8*%af to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO8mkStdErrE_784 to void(...)*),void(...)**%ag,align 8
%ah=getelementptr inbounds i8,i8*%Y,i64 24
%ai=bitcast i8*%ah to i32*
store i32 -2147483647,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
%am=load i8*,i8**%d,align 8
%an=bitcast i8*%aj to i8**
store i8*%am,i8**%an,align 8
%ao=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%ap=getelementptr inbounds i8,i8*%aj,i64 8
%aq=bitcast i8*%ap to i8**
store i8*%ao,i8**%aq,align 8
%ar=getelementptr inbounds i8,i8*%aj,i64 16
%as=bitcast i8*%ar to i8**
store i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@bI,i64 0,i32 2)to i8*),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 20)#0
%aw=getelementptr inbounds i8,i8*%av,i64 -4
%ax=bitcast i8*%aw to i32*
store i32 1342177296,i32*%ax,align 4
%ay=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%az=bitcast i8*%av to i8**
store i8*%ay,i8**%az,align 8
%aA=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aB=getelementptr inbounds i8,i8*%av,i64 8
%aC=bitcast i8*%aB to i8**
store i8*%aA,i8**%aC,align 8
%aD=getelementptr inbounds i8,i8*%av,i64 16
%aE=bitcast i8*%aD to i32*
store i32 3,i32*%aE,align 4
call fastcc void@_SMLFN18SMLSharp__OSProcess12rebindAtExitE(i8*inreg%av)
%aF=load i8*,i8**%a,align 8
ret i8*%aF
}
define internal fastcc void@_SMLLL679(i32 inreg%a)#4 gc"smlsharp"{
ret void
}
define internal fastcc void@_SMLLL686(i32 inreg%a)#4 gc"smlsharp"{
ret void
}
define internal fastcc void@_SMLLL692(i8*inreg%a,i32 inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%e,align 8
%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 fastcc i8*@_SMLFN30SMLSharp__SMLNJ__PosixTextPrimIO5stdInE(i32 inreg 0)
store i8*%j,i8**%c,align 8
%k=call i8*@sml_alloc(i32 inreg 20)#0
%l=getelementptr inbounds i8,i8*%k,i64 -4
%m=bitcast i8*%l to i32*
store i32 1342177296,i32*%m,align 4
%n=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%o=bitcast i8*%k to i8**
store i8*%n,i8**%o,align 8
%p=getelementptr inbounds i8,i8*%k,i64 8
%q=bitcast i8*%p to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[1x i8]}>,<{[4x i8],i32,[1x i8]}>*@bK,i64 0,i32 2,i64 0),i8**%q,align 8
%r=getelementptr inbounds i8,i8*%k,i64 16
%s=bitcast i8*%r to i32*
store i32 3,i32*%s,align 4
%t=call fastcc i8*@_SMLFN6TextIO8StreamIO10mkInstreamE(i8*inreg%k)
store i8*%t,i8**%c,align 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***
%y=load i8**,i8***%x,align 8
%z=load i8*,i8**%y,align 8
store i8*%z,i8**%d,align 8
%A=call i8*@sml_alloc(i32 inreg 20)#0
%B=getelementptr inbounds i8,i8*%A,i64 -4
%C=bitcast i8*%B to i32*
store i32 1342177296,i32*%C,align 4
%D=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%E=bitcast i8*%A to i8**
store i8*%D,i8**%E,align 8
%F=getelementptr inbounds i8,i8*%A,i64 8
%G=bitcast i8*%F to i8**
store i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@bL,i64 0,i32 2)to i8*),i8**%G,align 8
%H=getelementptr inbounds i8,i8*%A,i64 16
%I=bitcast i8*%H to i32*
store i32 3,i32*%I,align 4
call fastcc void@_SMLFN18SMLSharp__OSProcess12rebindAtExitE(i8*inreg%A)
%J=bitcast i8**%e to i8***
%K=load i8**,i8***%J,align 8
%L=load i8*,i8**%K,align 8
%M=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%N=bitcast i8*%L to i8**
call void@sml_write(i8*inreg%L,i8**inreg%N,i8*inreg%M)#0
%O=call fastcc i8*@_SMLLLN6TextIO8mkStdOutE_666()
%P=load i8*,i8**%e,align 8
%Q=getelementptr inbounds i8,i8*%P,i64 8
%R=bitcast i8*%Q to i8**
%S=load i8*,i8**%R,align 8
%T=bitcast i8*%S to i8**
call void@sml_write(i8*inreg%S,i8**inreg%T,i8*inreg%O)#0
%U=call fastcc i8*@_SMLLLN6TextIO8mkStdErrE_676()
%V=load i8*,i8**%e,align 8
%W=getelementptr inbounds i8,i8*%V,i64 16
%X=bitcast i8*%W to i8**
%Y=load i8*,i8**%X,align 8
%Z=bitcast i8*%Y to i8**
call void@sml_write(i8*inreg%Y,i8**inreg%Z,i8*inreg%U)#0
ret void
}
define internal fastcc void@_SMLLLN6TextIO5printE_695(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"personality i32(...)*@sml_personality{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
store i8*%a,i8**%d,align 8
store i8*%b,i8**%c,align 8
%h=load atomic i32,i32*@sml_check_flag unordered,align 4
%i=icmp eq i32%h,0
br i1%i,label%j,label%m
j:
%k=bitcast i8*%a to i8***
%l=bitcast i8**%d to i8****
br label%p
m:
call void@sml_check(i32 inreg%h)
%n=bitcast i8**%d to i8****
%o=load i8***,i8****%n,align 8
br label%p
p:
%q=phi i8****[%l,%j],[%n,%m]
%r=phi i8***[%k,%j],[%o,%m]
%s=load i8**,i8***%r,align 8
%t=load i8*,i8**%s,align 8
store i8*%t,i8**%e,align 8
%u=call i8*@sml_alloc(i32 inreg 20)#0
%v=getelementptr inbounds i8,i8*%u,i64 -4
%w=bitcast i8*%v to i32*
store i32 1342177296,i32*%w,align 4
%x=load i8*,i8**%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**%c,align 8
store i8*null,i8**%c,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
call fastcc void@_SMLFN6TextIO8StreamIO6outputE(i8*inreg%u)
%E=load i8***,i8****%q,align 8
%F=load i8**,i8***%E,align 8
%G=load i8*,i8**%F,align 8
store i8*%G,i8**%c,align 8
%H=bitcast i8*%G to i8**
%I=load i8*,i8**%H,align 8
store i8*%I,i8**%d,align 8
%J=getelementptr inbounds i8,i8*%G,i64 32
%K=bitcast i8*%J to i8**
%L=load i8*,i8**%K,align 8
store i8*%L,i8**%e,align 8
%M=getelementptr inbounds i8,i8*%G,i64 40
%N=bitcast i8*%M to i8**
%O=load i8*,i8**%N,align 8
%P=bitcast i8*%L to i32*
%Q=load i32,i32*%P,align 4
%R=icmp eq i32%Q,0
br i1%R,label%bj,label%S
S:
%T=getelementptr inbounds i8,i8*%O,i64 16
%U=bitcast i8*%T to i8*(i8*,i8*)**
%V=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%U,align 8
%W=bitcast i8*%O to i8**
%X=load i8*,i8**%W,align 8
store i8*%X,i8**%f,align 8
%Y=call i8*@sml_alloc(i32 inreg 12)#0
%Z=getelementptr inbounds i8,i8*%Y,i64 -4
%aa=bitcast i8*%Z to i32*
store i32 1342177288,i32*%aa,align 4
store i8*%Y,i8**%g,align 8
%ab=getelementptr inbounds i8,i8*%Y,i64 4
%ac=bitcast i8*%ab to i32*
store i32 0,i32*%ac,align 1
%ad=bitcast i8*%Y to i32*
store i32%Q,i32*%ad,align 4
%ae=getelementptr inbounds i8,i8*%Y,i64 8
%af=bitcast i8*%ae to i32*
store i32 0,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=getelementptr inbounds i8,i8*%ag,i64 12
%ak=bitcast i8*%aj to i32*
store i32 0,i32*%ak,align 1
%al=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%am=bitcast i8*%ag to i8**
store i8*%al,i8**%am,align 8
%an=getelementptr inbounds i8,i8*%ag,i64 8
%ao=bitcast i8*%an to i32*
store i32 0,i32*%ao,align 4
%ap=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%aq=getelementptr inbounds i8,i8*%ag,i64 16
%ar=bitcast i8*%aq to i8**
store i8*%ap,i8**%ar,align 8
%as=getelementptr inbounds i8,i8*%ag,i64 24
%at=bitcast i8*%as to i32*
store i32 5,i32*%at,align 4
%au=invoke fastcc i8*@_SMLFN14CharArraySlice5sliceE(i8*inreg%ag)
to label%av unwind label%aB
av:
%aw=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%ax=invoke fastcc i8*%V(i8*inreg%aw,i8*inreg%au)
to label%ay unwind label%aB
ay:
%az=bitcast i8**%e to i32**
%aA=load i32*,i32**%az,align 8
store i32 0,i32*%aA,align 4
ret void
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*null,i8**%e,align 8
store i8*%aF,i8**%f,align 8
%aG=load i8*,i8**@_SMLZN2IO2IoE,align 8
store i8*%aG,i8**%d,align 8
%aH=load i8*,i8**%c,align 8
%aI=getelementptr inbounds i8,i8*%aH,i64 56
%aJ=bitcast i8*%aI to i8**
%aK=load i8*,i8**%aJ,align 8
%aL=getelementptr inbounds i8,i8*%aK,i64 56
%aM=bitcast i8*%aL to i8**
%aN=load i8*,i8**%aM,align 8
store i8*%aN,i8**%c,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**%e,align 8
%aR=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%aS=bitcast i8*%aO to i8**
store i8*%aR,i8**%aS,align 8
%aT=getelementptr inbounds i8,i8*%aO,i64 8
%aU=bitcast i8*%aT to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[9x i8]}>,<{[4x i8],i32,[9x i8]}>*@bN,i64 0,i32 2,i64 0),i8**%aU,align 8
%aV=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aW=getelementptr inbounds i8,i8*%aO,i64 16
%aX=bitcast i8*%aW to i8**
store i8*%aV,i8**%aX,align 8
%aY=getelementptr inbounds i8,i8*%aO,i64 24
%aZ=bitcast i8*%aY to i32*
store i32 7,i32*%aZ,align 4
%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**%c,align 8
%a3=load i8*,i8**%d,align 8
store i8*null,i8**%d,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,[45x i8]}>,<{[4x i8],i32,[45x i8]}>*@bM,i64 0,i32 2,i64 0),i8**%a6,align 8
%a7=load i8*,i8**%e,align 8
store i8*null,i8**%e,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**%c,align 8
%bi=bitcast i8*%bc to i8**
store i8*%bh,i8**%bi,align 8
call void@sml_raise(i8*inreg%bc)#1
unreachable
bj:
ret void
}
define internal fastcc i8*@_SMLLL4doit_696(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**%f,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%k
i:
%j=bitcast i8*%b to i8**
br label%o
k:
call void@sml_check(i32 inreg%g)
%l=bitcast i8**%c to i8***
%m=load i8**,i8***%l,align 8
%n=load i8*,i8**%f,align 8
br label%o
o:
%p=phi i8*[%n,%k],[%a,%i]
%q=phi i8**[%m,%k],[%j,%i]
%r=getelementptr inbounds i8,i8*%p,i64 12
%s=bitcast i8*%r to i32*
%t=load i32,i32*%s,align 4
%u=add i32%t,-1
%v=sub i32 0,%t
%w=and i32%u,%v
%x=add i32%t,7
%y=add i32%x,%w
%z=and i32%y,-8
%A=getelementptr inbounds i8,i8*%p,i64 8
%B=bitcast i8*%A to i32*
%C=load i32,i32*%B,align 4
%D=or i32%z,4
%E=load i8*,i8**%q,align 8
%F=bitcast i8*%p to i8**
%G=load i8*,i8**%F,align 8
%H=getelementptr inbounds i8,i8*%G,i64 16
%I=bitcast i8*%H to i8*(i8*,i8*)**
%J=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%I,align 8
%K=bitcast i8*%G to i8**
%L=load i8*,i8**%K,align 8
%M=call fastcc i8*%J(i8*inreg%L,i8*inreg%E)
%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
store i8*%R,i8**%d,align 8
%S=load i8*,i8**%f,align 8
%T=getelementptr inbounds i8,i8*%S,i64 8
%U=bitcast i8*%T to i32*
%V=load i32,i32*%U,align 4
%W=icmp eq i32%V,0
br i1%W,label%ac,label%X
X:
%Y=sext i32%w to i64
%Z=getelementptr inbounds i8,i8*%R,i64%Y
%aa=bitcast i8*%Z to i8**
%ab=load i8*,i8**%aa,align 8
br label%am
ac:
%ad=getelementptr inbounds i8,i8*%S,i64 12
%ae=bitcast i8*%ad to i32*
%af=load i32,i32*%ae,align 4
%ag=call i8*@sml_alloc(i32 inreg%af)#0
%ah=getelementptr inbounds i8,i8*%ag,i64 -4
%ai=bitcast i8*%ah to i32*
store i32%af,i32*%ai,align 4
%aj=load i8*,i8**%d,align 8
%ak=sext i32%w to i64
%al=getelementptr inbounds i8,i8*%aj,i64%ak
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%ag,i8*%al,i32%af,i1 false)
br label%am
am:
%an=phi i64[%ak,%ac],[%Y,%X]
%ao=phi i8*[%aj,%ac],[%R,%X]
%ap=phi i8*[%ag,%ac],[%ab,%X]
store i8*%ap,i8**%e,align 8
store i8*null,i8**%d,align 8
%aq=sext i32%z to i64
%ar=getelementptr inbounds i8,i8*%ao,i64%aq
%as=bitcast i8*%ar to i8**
%at=load i8*,i8**%as,align 8
%au=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%av=bitcast i8*%au to i8**
call void@sml_write(i8*inreg%au,i8**inreg%av,i8*inreg%at)#0
%aw=load i8*,i8**%f,align 8
%ax=getelementptr inbounds i8,i8*%aw,i64 12
%ay=bitcast i8*%ax to i32*
%az=load i32,i32*%ay,align 4
store i8*null,i8**%f,align 8
%aA=getelementptr inbounds i8,i8*%aw,i64 8
%aB=bitcast i8*%aA to i32*
%aC=load i32,i32*%aB,align 4
%aD=call i8*@sml_alloc(i32 inreg%D)#0
%aE=or i32%z,1342177280
%aF=getelementptr inbounds i8,i8*%aD,i64 -4
%aG=bitcast i8*%aF to i32*
store i32%aE,i32*%aG,align 4
call void@llvm.memset.p0i8.i32(i8*%aD,i8 0,i32%D,i1 false)
%aH=icmp eq i32%aC,0
%aI=load i8*,i8**%e,align 8
%aJ=getelementptr inbounds i8,i8*%aD,i64%an
br i1%aH,label%aK,label%aL
aK:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%aJ,i8*%aI,i32%az,i1 false)
br label%aN
aL:
%aM=bitcast i8*%aJ to i8**
store i8*%aI,i8**%aM,align 8
br label%aN
aN:
%aO=getelementptr inbounds i8,i8*%aD,i64%aq
%aP=bitcast i8*%aO to i32*
store i32%C,i32*%aP,align 4
ret i8*%aD
}
define internal fastcc i8*@_SMLLLN6TextIO10scanStreamE_697(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
k:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%d,align 8
store i8*%b,i8**%c,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%i,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%c,align 8
br label%i
i:
%j=phi i8*[%h,%g],[%b,%k]
store i8*null,i8**%c,align 8
%l=getelementptr inbounds i8,i8*%j,i64 16
%m=bitcast i8*%l to i8*(i8*,i8*)**
%n=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%m,align 8
%o=bitcast i8*%j to i8**
%p=load i8*,i8**%o,align 8
%q=call fastcc i8*%n(i8*inreg%p,i8*inreg 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*))
store i8*%q,i8**%c,align 8
%r=load i8*,i8**%d,align 8
%s=bitcast i8*%r to i32*
%t=load i32,i32*%s,align 4
store i8*null,i8**%d,align 8
%u=getelementptr inbounds i8,i8*%r,i64 4
%v=bitcast i8*%u to i32*
%w=load i32,i32*%v,align 4
%x=call i8*@sml_alloc(i32 inreg 20)#0
%y=getelementptr inbounds i8,i8*%x,i64 -4
%z=bitcast i8*%y to i32*
store i32 1342177296,i32*%z,align 4
store i8*%x,i8**%d,align 8
%A=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%B=bitcast i8*%x to i8**
store i8*%A,i8**%B,align 8
%C=getelementptr inbounds i8,i8*%x,i64 8
%D=bitcast i8*%C to i32*
store i32%t,i32*%D,align 4
%E=getelementptr inbounds i8,i8*%x,i64 12
%F=bitcast i8*%E to i32*
store i32%w,i32*%F,align 4
%G=getelementptr inbounds i8,i8*%x,i64 16
%H=bitcast i8*%G to i32*
store i32 1,i32*%H,align 4
%I=call i8*@sml_alloc(i32 inreg 28)#0
%J=getelementptr inbounds i8,i8*%I,i64 -4
%K=bitcast i8*%J to i32*
store i32 1342177304,i32*%K,align 4
%L=load i8*,i8**%d,align 8
%M=bitcast i8*%I to i8**
store i8*%L,i8**%M,align 8
%N=getelementptr inbounds i8,i8*%I,i64 8
%O=bitcast i8*%N to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLL4doit_696 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*)*@_SMLLL4doit_696 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
ret i8*%I
}
define fastcc i8*@_SMLFN6TextIO10scanStreamE(i32 inreg%a,i32 inreg%b)#4 gc"smlsharp"{
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
%d=call i8*@sml_alloc(i32 inreg 12)#0
%e=bitcast i8*%d to i32*
%f=getelementptr inbounds i8,i8*%d,i64 -4
%g=bitcast i8*%f to i32*
store i32 1342177288,i32*%g,align 4
store i8*%d,i8**%c,align 8
store i32%a,i32*%e,align 4
%h=getelementptr inbounds i8,i8*%d,i64 4
%i=bitcast i8*%h to i32*
store i32%b,i32*%i,align 4
%j=getelementptr inbounds i8,i8*%d,i64 8
%k=bitcast i8*%j to i32*
store i32 0,i32*%k,align 4
%l=call i8*@sml_alloc(i32 inreg 28)#0
%m=getelementptr inbounds i8,i8*%l,i64 -4
%n=bitcast i8*%m to i32*
store i32 1342177304,i32*%n,align 4
%o=load i8*,i8**%c,align 8
%p=bitcast i8*%l to i8**
store i8*%o,i8**%p,align 8
%q=getelementptr inbounds i8,i8*%l,i64 8
%r=bitcast i8*%q to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN6TextIO10scanStreamE_697 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*)*@_SMLLLN6TextIO10scanStreamE_697 to void(...)*),void(...)**%t,align 8
%u=getelementptr inbounds i8,i8*%l,i64 24
%v=bitcast i8*%u to i32*
store i32 -2147483647,i32*%v,align 4
ret i8*%l
}
define fastcc void@_SMLFN6TextIO5printE(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,[4x i8*]}>,<{[4x i8],i32,[4x i8*]}>*@_SML_gvar3446b7b079949ccf_text_io,i64 0,i32 2,i64 3)to i8***),align 8
%k=load i8*,i8**%j,align 8
tail call fastcc void@_SMLLLN6TextIO5printE_695(i8*inreg%k,i8*inreg%h)
ret void
}
define internal fastcc i8*@_SMLLL701(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*@_SMLLLN6TextIO8StreamIO5inputE_704(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN6TextIO8StreamIO5inputE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN6TextIO8StreamIO6input1E_705(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN6TextIO8StreamIO6input1E(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN6TextIO8StreamIO6inputNE_707(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN6TextIO8StreamIO6inputNE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLL8bigChunk_708(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_367(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLL8bigChunk_709(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_370(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLL8bigChunk_710(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_371(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLLN6TextIO8StreamIO8inputAllE_711(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN6TextIO8StreamIO8inputAllE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN6TextIO8StreamIO8canInputE_712(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN6TextIO8StreamIO8canInputE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN6TextIO8StreamIO7closeInE_713(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLFN6TextIO8StreamIO7closeInE(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*@_SMLLLN6TextIO8StreamIO11endOfStreamE_714(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLFN6TextIO8StreamIO11endOfStreamE(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_715(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_402(i32 inreg%d)
unreachable
}
define internal fastcc i8*@_SMLLL10readVecNB_G_716(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_406(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLL6getPos_717(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
ret i8*null
}
define internal fastcc i8*@_SMLLL6getPos_718(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_409(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLLN6TextIO8StreamIO10mkInstreamE_719(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*@_SMLLLN6TextIO8StreamIO10mkInstreamE_721(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*@_SMLLLN6TextIO8StreamIO10mkInstreamE_722(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN6TextIO8StreamIO10mkInstreamE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN6TextIO8StreamIO9getReaderE_724(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN6TextIO8StreamIO9getReaderE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN6TextIO8StreamIO9filePosInE_725(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLFN6TextIO8StreamIO9filePosInE(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*@_SMLLLN6TextIO8StreamIO9inputLineE_728(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN6TextIO8StreamIO9inputLineE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN6TextIO8StreamIO14lineBufCopyVecE_729(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLLLN6TextIO8StreamIO14lineBufCopyVecE_468(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*@_SMLLLN6TextIO8StreamIO15blockBufCopyVecE_730(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLLLN6TextIO8StreamIO15blockBufCopyVecE_470(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 0,i32*%e,align 4
ret i8*%d
}
define internal fastcc i8*@_SMLLLN6TextIO8StreamIO6outputE_731(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLFN6TextIO8StreamIO6outputE(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*@_SMLLLN6TextIO8StreamIO7output1E_732(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLFN6TextIO8StreamIO7output1E(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*@_SMLLLN6TextIO8StreamIO8flushOutE_733(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLFN6TextIO8StreamIO8flushOutE(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*@_SMLLLN6TextIO8StreamIO8closeOutE_734(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLFN6TextIO8StreamIO8closeOutE(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_735(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLLL9writeArr_G_511(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_736(i8*inreg%a,i8*inreg%b)#5 gc"smlsharp"{
tail call fastcc void@_SMLLL9writeArr_G_513(i8*inreg%b)
unreachable
}
define internal fastcc i8*@_SMLLL9writeVec_G_737(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLLL9writeVec_G_515(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_738(i8*inreg%a,i8*inreg%b)#5 gc"smlsharp"{
tail call fastcc void@_SMLLL9writeVec_G_517(i8*inreg%b)
unreachable
}
define internal fastcc i8*@_SMLLLN6TextIO8StreamIO11mkOutstreamE_739(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*@_SMLLLN6TextIO8StreamIO11mkOutstreamE_742(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@_SMLLLN6TextIO8StreamIO11mkOutstreamE_525(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*@_SMLLLN6TextIO8StreamIO11mkOutstreamE_743(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@_SMLLLN6TextIO8StreamIO11mkOutstreamE_528(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*@_SMLLLN6TextIO8StreamIO11mkOutstreamE_744(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@_SMLLLN6TextIO8StreamIO11mkOutstreamE_529(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*@_SMLLLN6TextIO8StreamIO11mkOutstreamE_745(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN6TextIO8StreamIO11mkOutstreamE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN6TextIO8StreamIO9getWriterE_746(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN6TextIO8StreamIO9getWriterE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN6TextIO8StreamIO9getPosOutE_747(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN6TextIO8StreamIO9getPosOutE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN6TextIO8StreamIO10filePosOutE_748(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLFN6TextIO8StreamIO10filePosOutE(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*@_SMLLLN6TextIO8StreamIO9setPosOutE_749(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN6TextIO8StreamIO9setPosOutE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN6TextIO8StreamIO12outputSubstrE_750(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLFN6TextIO8StreamIO12outputSubstrE(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*@_SMLLLN6TextIO8StreamIO13setBufferModeE_751(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLFN6TextIO8StreamIO13setBufferModeE(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*@_SMLLLN6TextIO8StreamIO13getBufferModeE_752(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLFN6TextIO8StreamIO13getBufferModeE(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*@_SMLLLN6TextIO5inputE_753(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN6TextIO5inputE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN6TextIO6input1E_754(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN6TextIO6input1E(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN6TextIO6inputNE_755(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN6TextIO6inputNE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN6TextIO8inputAllE_756(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN6TextIO8inputAllE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN6TextIO8canInputE_757(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN6TextIO8canInputE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN6TextIO9lookaheadE_758(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN6TextIO9lookaheadE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN6TextIO7closeInE_759(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLFN6TextIO7closeInE(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*@_SMLLLN6TextIO11endOfStreamE_760(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLFN6TextIO11endOfStreamE(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*@_SMLLLN6TextIO6outputE_761(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLFN6TextIO6outputE(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*@_SMLLLN6TextIO7output1E_762(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLFN6TextIO7output1E(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*@_SMLLLN6TextIO8flushOutE_763(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLFN6TextIO8flushOutE(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*@_SMLLLN6TextIO8closeOutE_764(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLFN6TextIO8closeOutE(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*@_SMLLLN6TextIO9getPosOutE_765(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN6TextIO9getPosOutE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN6TextIO9setPosOutE_766(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLFN6TextIO9setPosOutE(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*@_SMLLLN6TextIO10mkInstreamE_767(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN6TextIO10mkInstreamE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN6TextIO11getInstreamE_768(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*@_SMLLLN6TextIO11setInstreamE_769(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
tail call fastcc void@_SMLFN6TextIO11setInstreamE(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*@_SMLLLN6TextIO11mkOutstreamE_770(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN6TextIO11mkOutstreamE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN6TextIO12getOutstreamE_771(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*@_SMLLLN6TextIO12setOutstreamE_772(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
tail call fastcc void@_SMLFN6TextIO12setOutstreamE(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*@_SMLLLN6TextIO6openInE_773(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN6TextIO6openInE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN6TextIO7openOutE_774(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN6TextIO7openOutE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN6TextIO10openAppendE_775(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN6TextIO10openAppendE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN6TextIO9inputLineE_776(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN6TextIO9inputLineE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN6TextIO12outputSubstrE_777(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLFN6TextIO12outputSubstrE(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*@_SMLLLN6TextIO10openStringE_778(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN6TextIO10openStringE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN6TextIO8mkStdOutE_779(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@_SMLLLN6TextIO8mkStdOutE_660(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*@_SMLLLN6TextIO8mkStdOutE_780(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@_SMLLLN6TextIO8mkStdOutE_663(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*@_SMLLLN6TextIO8mkStdOutE_781(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*@_SMLLLN6TextIO8mkStdErrE_783(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@_SMLLLN6TextIO8mkStdErrE_670(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*@_SMLLLN6TextIO8mkStdErrE_784(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@_SMLLLN6TextIO8mkStdErrE_673(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*@_SMLLLN6TextIO8mkStdErrE_785(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*@_SMLLL787(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*@_SMLLL790(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*@_SMLLL793(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@_SMLLL692(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*@_SMLLLN6TextIO5printE_794(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLLLN6TextIO5printE_695(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*@_SMLLLN6TextIO10scanStreamE_795(i8*inreg%a,i8*inreg%b,i8*inreg%c)#4 gc"smlsharp"{
%d=bitcast i8*%b to i32*
%e=load i32,i32*%d,align 4
%f=bitcast i8*%c to i32*
%g=load i32,i32*%f,align 4
%h=tail call fastcc i8*@_SMLFN6TextIO10scanStreamE(i32 inreg%e,i32 inreg%g)
ret i8*%h
}
declare void@llvm.memcpy.p0i8.p0i8.i32(i8*,i8*,i32,i1)#0
declare void@llvm.memset.p0i8.i32(i8*,i8,i32,i1)#0
attributes#0={nounwind}
attributes#1={noreturn}
attributes#2={uwtable}
attributes#3={noreturn nounwind}
attributes#4={nounwind uwtable}
attributes#5={noreturn uwtable}
