@sml_check_flag=external local_unnamed_addr global i32
@_SMLZN16SMLSharp__Runtime6SysErrE=external local_unnamed_addr global i8*
@_SMLZ4Size=external unnamed_addr constant i8*
@a=private unnamed_addr constant<{[4x i8],i32,[11x i8]}><{[4x i8]zeroinitializer,i32 -2147483637,[11x i8]c"OS.IO.Poll\00"}>,align 8
@b=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,[11x i8]}>,<{[4x i8],i32,[11x i8]}>*@a,i32 0,i32 0,i32 0),i32 8),i32 0,[4x i8]zeroinitializer,i32 1}>,align 8
@_SMLDL90=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}>*@b,i32 0,i32 0,i32 0),i32 8)}>,align 8
@c=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i8*)*@_SMLFN13SMLSharp__OSIO7compareE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN13SMLSharp__OSIO7compareE_155 to void(...)*),i32 -2147483647}>,align 8
@d=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN13SMLSharp__OSIO4statE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN13SMLSharp__OSIO4statE_156 to void(...)*),i32 -2147483647}>,align 8
@e=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN13SMLSharp__OSIO5lstatE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN13SMLSharp__OSIO5lstatE_157 to void(...)*),i32 -2147483647}>,align 8
@f=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32)*@_SMLFN13SMLSharp__OSIO5fstatE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN13SMLSharp__OSIO5fstatE_158 to void(...)*),i32 -2147483647}>,align 8
@g=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32)*@_SMLFN13SMLSharp__OSIO8pollDescE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN13SMLSharp__OSIO8pollDescE_160 to void(...)*),i32 -2147483647}>,align 8
@h=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i8*)*@_SMLFN13SMLSharp__OSIO12pollToIODescE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN13SMLSharp__OSIO12pollToIODescE_161 to void(...)*),i32 -2147483647}>,align 8
@i=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN13SMLSharp__OSIO6pollInE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN13SMLSharp__OSIO6pollInE_162 to void(...)*),i32 -2147483647}>,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*)*@_SMLFN13SMLSharp__OSIO7pollOutE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN13SMLSharp__OSIO7pollOutE_163 to void(...)*),i32 -2147483647}>,align 8
@k=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN13SMLSharp__OSIO7pollPriE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN13SMLSharp__OSIO7pollPriE_164 to void(...)*),i32 -2147483647}>,align 8
@l=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i8*)*@_SMLFN13SMLSharp__OSIO4isInE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN13SMLSharp__OSIO4isInE_165 to void(...)*),i32 -2147483647}>,align 8
@m=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i8*)*@_SMLFN13SMLSharp__OSIO5isOutE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN13SMLSharp__OSIO5isOutE_166 to void(...)*),i32 -2147483647}>,align 8
@n=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i8*)*@_SMLFN13SMLSharp__OSIO5isPriE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN13SMLSharp__OSIO5isPriE_167 to void(...)*),i32 -2147483647}>,align 8
@o=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN13SMLSharp__OSIO14infoToPollDescE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN13SMLSharp__OSIO14infoToPollDescE_168 to void(...)*),i32 -2147483647}>,align 8
@p=private unnamed_addr constant<{[4x i8],i32,[46x i8]}><{[4x i8]zeroinitializer,i32 -2147483602,[46x i8]c"src/basis/main/SMLSharp_OSIO.sml:185.20(5063)\00"}>,align 8
@q=private unnamed_addr constant[6x i8]c"F4240\00"
@r=private unnamed_addr constant<{[4x i8],i32,[46x i8]}><{[4x i8]zeroinitializer,i32 -2147483602,[46x i8]c"src/basis/main/SMLSharp_OSIO.sml:201.27(5614)\00"}>,align 8
@s=private unnamed_addr constant<{[4x i8],i32,[17x i8]}><{[4x i8]zeroinitializer,i32 -2147483631,[17x i8]c"nagative timeout\00"}>,align 8
@t=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,[17x i8]}>,<{[4x i8],i32,[17x i8]}>*@s,i32 0,i32 0,i32 0),i32 8),i8*null,i32 3}>,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*)*@_SMLFN13SMLSharp__OSIO4pollE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN13SMLSharp__OSIO4pollE_169 to void(...)*),i32 -2147483647}>,align 8
@v=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i8*)*@_SMLFN13SMLSharp__OSIO2ST4sizeE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN13SMLSharp__OSIO2ST4sizeE_171 to void(...)*),i32 -2147483647}>,align 8
@w=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i32)*@_SMLFN13SMLSharp__OSIO5closeE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN13SMLSharp__OSIO5closeE_172 to void(...)*),i32 -2147483647}>,align 8
@x=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i8*)*@_SMLFN13SMLSharp__OSIO5openfE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN13SMLSharp__OSIO5openfE_173 to void(...)*),i32 -2147483647}>,align 8
@y=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i8*)*@_SMLFN13SMLSharp__OSIO5lseekE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN13SMLSharp__OSIO5lseekE_174 to void(...)*),i32 -2147483647}>,align 8
@z=private unnamed_addr constant<{[4x i8],i32,[46x i8]}><{[4x i8]zeroinitializer,i32 -2147483602,[46x i8]c"src/basis/main/SMLSharp_OSIO.sml:275.18(7741)\00"}>,align 8
@A=private unnamed_addr constant<{[4x i8],i32,[46x i8]}><{[4x i8]zeroinitializer,i32 -2147483602,[46x i8]c"src/basis/main/SMLSharp_OSIO.sml:283.22(8027)\00"}>,align 8
@B=private unnamed_addr constant<{[4x i8],i32,[46x i8]}><{[4x i8]zeroinitializer,i32 -2147483602,[46x i8]c"src/basis/main/SMLSharp_OSIO.sml:273.28(7703)\00"}>,align 8
@C=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN13SMLSharp__OSIO7readVecE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN13SMLSharp__OSIO7readVecE_175 to void(...)*),i32 -2147483647}>,align 8
@D=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i8*)*@_SMLFN13SMLSharp__OSIO7readArrE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN13SMLSharp__OSIO7readArrE_176 to void(...)*),i32 -2147483647}>,align 8
@E=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i8*)*@_SMLFN13SMLSharp__OSIO8writeVecE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN13SMLSharp__OSIO8writeVecE_177 to void(...)*),i32 -2147483647}>,align 8
@F=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i8*)*@_SMLFN13SMLSharp__OSIO8writeArrE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN13SMLSharp__OSIO8writeArrE_178 to void(...)*),i32 -2147483647}>,align 8
@G=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i32)*@_SMLFN13SMLSharp__OSIO4hashE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN13SMLSharp__OSIO4hashE_179 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN13SMLSharp__OSIO4hashE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@G,i64 0,i32 2)to i8*)
@_SMLZN13SMLSharp__OSIO7compareE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@c,i64 0,i32 2)to i8*)
@_SMLZN13SMLSharp__OSIO4Kind4fileE=local_unnamed_addr global i32 0
@_SMLZN13SMLSharp__OSIO4Kind3dirE=local_unnamed_addr global i32 0
@_SMLZN13SMLSharp__OSIO4Kind7symlinkE=local_unnamed_addr global i32 0
@_SMLZN13SMLSharp__OSIO4Kind3ttyE=local_unnamed_addr global i32 0
@_SMLZN13SMLSharp__OSIO4Kind4pipeE=local_unnamed_addr global i32 0
@_SMLZN13SMLSharp__OSIO4Kind6socketE=local_unnamed_addr global i32 0
@_SMLZN13SMLSharp__OSIO4Kind6deviceE=local_unnamed_addr global i32 0
@_SMLZN13SMLSharp__OSIO8pollDescE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@g,i64 0,i32 2)to i8*)
@_SMLZN13SMLSharp__OSIO12pollToIODescE=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*)
@_SMLZN13SMLSharp__OSIO4PollE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*}>,<{[4x i8],i32,i8*}>*@_SMLDL90,i64 0,i32 2)to i8*)
@_SMLZN13SMLSharp__OSIO6pollInE=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*)
@_SMLZN13SMLSharp__OSIO7pollOutE=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*)
@_SMLZN13SMLSharp__OSIO7pollPriE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@k,i64 0,i32 2)to i8*)
@_SMLZN13SMLSharp__OSIO4pollE=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*)
@_SMLZN13SMLSharp__OSIO4isInE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@l,i64 0,i32 2)to i8*)
@_SMLZN13SMLSharp__OSIO5isOutE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@m,i64 0,i32 2)to i8*)
@_SMLZN13SMLSharp__OSIO5isPriE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@n,i64 0,i32 2)to i8*)
@_SMLZN13SMLSharp__OSIO14infoToPollDescE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@o,i64 0,i32 2)to i8*)
@_SMLZN13SMLSharp__OSIO6S__IFMTE=local_unnamed_addr global i32 0
@_SMLZN13SMLSharp__OSIO7S__IFIFOE=local_unnamed_addr global i32 0
@_SMLZN13SMLSharp__OSIO7S__IFCHRE=local_unnamed_addr global i32 0
@_SMLZN13SMLSharp__OSIO7S__IFDIRE=local_unnamed_addr global i32 0
@_SMLZN13SMLSharp__OSIO7S__IFBLKE=local_unnamed_addr global i32 0
@_SMLZN13SMLSharp__OSIO7S__IFREGE=local_unnamed_addr global i32 0
@_SMLZN13SMLSharp__OSIO7S__IFLNKE=local_unnamed_addr global i32 0
@_SMLZN13SMLSharp__OSIO8S__IFSOCKE=local_unnamed_addr global i32 0
@_SMLZN13SMLSharp__OSIO7S__ISUIDE=local_unnamed_addr global i32 0
@_SMLZN13SMLSharp__OSIO7S__ISGIDE=local_unnamed_addr global i32 0
@_SMLZN13SMLSharp__OSIO7S__ISVTXE=local_unnamed_addr global i32 0
@_SMLZN13SMLSharp__OSIO7S__IRUSRE=local_unnamed_addr global i32 0
@_SMLZN13SMLSharp__OSIO7S__IWUSRE=local_unnamed_addr global i32 0
@_SMLZN13SMLSharp__OSIO7S__IXUSRE=local_unnamed_addr global i32 0
@_SMLZN13SMLSharp__OSIO4statE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@d,i64 0,i32 2)to i8*)
@_SMLZN13SMLSharp__OSIO5lstatE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@e,i64 0,i32 2)to i8*)
@_SMLZN13SMLSharp__OSIO5fstatE=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*)
@_SMLZN13SMLSharp__OSIO2ST4sizeE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@v,i64 0,i32 2)to i8*)
@_SMLZN13SMLSharp__OSIO8SEEK__SETE=local_unnamed_addr global i32 0
@_SMLZN13SMLSharp__OSIO8SEEK__CURE=local_unnamed_addr global i32 0
@_SMLZN13SMLSharp__OSIO5closeE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@w,i64 0,i32 2)to i8*)
@_SMLZN13SMLSharp__OSIO5openfE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@x,i64 0,i32 2)to i8*)
@_SMLZN13SMLSharp__OSIO5lseekE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@y,i64 0,i32 2)to i8*)
@_SMLZN13SMLSharp__OSIO7readVecE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@C,i64 0,i32 2)to i8*)
@_SMLZN13SMLSharp__OSIO7readArrE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@D,i64 0,i32 2)to i8*)
@_SMLZN13SMLSharp__OSIO8writeVecE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@E,i64 0,i32 2)to i8*)
@_SMLZN13SMLSharp__OSIO8writeArrE=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*)
@_SMLZN13SMLSharp__OSIO5stdinE=local_unnamed_addr constant i32 0
@_SMLZN13SMLSharp__OSIO6stdoutE=local_unnamed_addr constant i32 1
@_SMLZN13SMLSharp__OSIO6stderrE=local_unnamed_addr constant i32 2
@_SML_gvar741b333153f7e9d0_SMLSharp_OSIO=private global<{[4x i8],i32,[2x i8*]}><{[4x i8]zeroinitializer,i32 -1342177264,[2x i8*]zeroinitializer}>,align 8
@H=private unnamed_addr global[2x i64][i64 1,i64 sub(i64 ptrtoint(i8**getelementptr inbounds(<{[4x i8],i32,[2x i8*]}>,<{[4x i8],i32,[2x i8*]}>*@_SML_gvar741b333153f7e9d0_SMLSharp_OSIO,i32 0,i32 2,i32 0)to i64),i64 ptrtoint([2x i64]*@H to i64))]
@_SML_ftab741b333153f7e9d0_SMLSharp_OSIO=external global i8
@I=private unnamed_addr global i8 0
@_SMLZN13SMLSharp__OSIO4kindE=alias i8*,getelementptr inbounds(<{[4x i8],i32,[2x i8*]}>,<{[4x i8],i32,[2x i8*]}>*@_SML_gvar741b333153f7e9d0_SMLSharp_OSIO,i32 0,i32 2,i32 0)
@_SMLZN13SMLSharp__OSIO2ST5isRegE=alias i8*,getelementptr inbounds(<{[4x i8],i32,[2x i8*]}>,<{[4x i8],i32,[2x i8*]}>*@_SML_gvar741b333153f7e9d0_SMLSharp_OSIO,i32 0,i32 2,i32 1)
declare i32@close(i32)local_unnamed_addr
declare void@llvm.gcroot(i8**,i8*)#0
declare i32@prim_GenericOS_fstat(i32,i8*)local_unnamed_addr
declare i32@prim_GenericOS_lseek(i32,i32,i32)local_unnamed_addr
declare i32@prim_GenericOS_lstat(i8*,i8*)local_unnamed_addr
declare i32@prim_GenericOS_open(i8*,i8*)local_unnamed_addr
declare i32@prim_GenericOS_poll(i8*,i8*,i32,i32)local_unnamed_addr
declare i32@prim_GenericOS_read(i32,i8*,i32,i32)local_unnamed_addr
declare i32@prim_GenericOS_stat(i8*,i8*)local_unnamed_addr
declare i32@prim_GenericOS_write(i32,i8*,i32,i32)local_unnamed_addr
declare i32@prim_const_SEEK_CUR()local_unnamed_addr
declare i32@prim_const_SEEK_SET()local_unnamed_addr
declare i32@prim_const_S_IFBLK()local_unnamed_addr
declare i32@prim_const_S_IFCHR()local_unnamed_addr
declare i32@prim_const_S_IFDIR()local_unnamed_addr
declare i32@prim_const_S_IFIFO()local_unnamed_addr
declare i32@prim_const_S_IFLNK()local_unnamed_addr
declare i32@prim_const_S_IFMT()local_unnamed_addr
declare i32@prim_const_S_IFREG()local_unnamed_addr
declare i32@prim_const_S_IFSOCK()local_unnamed_addr
declare i32@prim_const_S_IRUSR()local_unnamed_addr
declare i32@prim_const_S_ISGID()local_unnamed_addr
declare i32@prim_const_S_ISUID()local_unnamed_addr
declare i32@prim_const_S_ISVTX()local_unnamed_addr
declare i32@prim_const_S_IWUSR()local_unnamed_addr
declare i32@prim_const_S_IXUSR()local_unnamed_addr
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_enter()local_unnamed_addr#0
declare void@sml_gcroot(i8*,void()*,i8*,i8*)local_unnamed_addr#0
declare void@sml_leave()local_unnamed_addr#0
declare i8*@sml_load_intinf(i8*inreg)local_unnamed_addr#0
declare i32@sml_personality(...)#0
declare void@sml_raise(i8*inreg)local_unnamed_addr#1
declare i8*@sml_save()local_unnamed_addr#0
declare void@sml_save_exn(i8*inreg)local_unnamed_addr#0
declare void@sml_start(i8*inreg)local_unnamed_addr#0
declare void@sml_unsave()local_unnamed_addr#0
declare i8*@sml_unsave_exn(i8*inreg)local_unnamed_addr#0
declare void@sml_write(i8*inreg,i8**inreg,i8*inreg)local_unnamed_addr#0
declare i8*@_SMLFN15Word8ArraySlice4baseE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN16SMLSharp__Runtime9OS__SysErrE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN16Word8VectorSlice4baseE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN4Time14toMicrosecondsE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i32@_SMLFN6IntInf4signE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i32@_SMLFN6IntInf5toIntE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN6IntInf6divModE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main5d4c3ea7bd6f9540_IntInf()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main00d884c96265bfea_SMLSharp_Runtime()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main23870d5de35409ab_Time()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main78563455976a8f16_Word8VectorSlice()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_maind090c7e00210ea66_Word8ArraySlice()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_load5d4c3ea7bd6f9540_IntInf(i8*)local_unnamed_addr
declare void@_SML_load00d884c96265bfea_SMLSharp_Runtime(i8*)local_unnamed_addr
declare void@_SML_load23870d5de35409ab_Time(i8*)local_unnamed_addr
declare void@_SML_load78563455976a8f16_Word8VectorSlice(i8*)local_unnamed_addr
declare void@_SML_loadd090c7e00210ea66_Word8ArraySlice(i8*)local_unnamed_addr
define private void@_SML_tabb741b333153f7e9d0_SMLSharp_OSIO()#3{
unreachable
}
define void@_SML_load741b333153f7e9d0_SMLSharp_OSIO(i8*%a)local_unnamed_addr#0{
%b=load i8,i8*@I,align 1
%c=icmp eq i8%b,0
br i1%c,label%e,label%d
d:
ret void
e:
store i8 1,i8*@I,align 1
tail call void@_SML_load5d4c3ea7bd6f9540_IntInf(i8*%a)#0
tail call void@_SML_load00d884c96265bfea_SMLSharp_Runtime(i8*%a)#0
tail call void@_SML_load23870d5de35409ab_Time(i8*%a)#0
tail call void@_SML_load78563455976a8f16_Word8VectorSlice(i8*%a)#0
tail call void@_SML_loadd090c7e00210ea66_Word8ArraySlice(i8*%a)#0
tail call void@sml_gcroot(i8*%a,void()*@_SML_tabb741b333153f7e9d0_SMLSharp_OSIO,i8*@_SML_ftab741b333153f7e9d0_SMLSharp_OSIO,i8*bitcast([2x i64]*@H to i8*))#0
ret void
}
define void@_SML_main741b333153f7e9d0_SMLSharp_OSIO()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=load i8,i8*@I,align 1
%e=and i8%d,2
%f=icmp eq i8%e,0
br i1%f,label%h,label%g
g:
ret void
h:
store i8 3,i8*@I,align 1
tail call void@_SML_main5d4c3ea7bd6f9540_IntInf()#2
tail call void@_SML_main00d884c96265bfea_SMLSharp_Runtime()#2
tail call void@_SML_main23870d5de35409ab_Time()#2
tail call void@_SML_main78563455976a8f16_Word8VectorSlice()#2
tail call void@_SML_maind090c7e00210ea66_Word8ArraySlice()#2
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
%i=bitcast[3x i8*]*%a to i8*
call void@sml_start(i8*inreg%i)#0
%j=load atomic i32,i32*@sml_check_flag unordered,align 4
%k=icmp eq i32%j,0
br i1%k,label%m,label%l
l:
invoke void@sml_check(i32 inreg%j)
to label%m unwind label%aE
m:
%n=invoke i32@prim_const_S_IFMT()
to label%o unwind label%aE
o:
%p=invoke i32@prim_const_S_IFIFO()
to label%q unwind label%aE
q:
%r=invoke i32@prim_const_S_IFCHR()
to label%s unwind label%aE
s:
%t=invoke i32@prim_const_S_IFDIR()
to label%u unwind label%aE
u:
%v=invoke i32@prim_const_S_IFBLK()
to label%w unwind label%aE
w:
%x=invoke i32@prim_const_S_IFREG()
to label%y unwind label%aE
y:
%z=invoke i32@prim_const_S_IFLNK()
to label%A unwind label%aE
A:
%B=invoke i32@prim_const_S_IFSOCK()
to label%C unwind label%aE
C:
%D=invoke i32@prim_const_S_ISUID()
to label%E unwind label%aE
E:
%F=invoke i32@prim_const_S_ISGID()
to label%G unwind label%aE
G:
%H=invoke i32@prim_const_S_ISVTX()
to label%I unwind label%aE
I:
%J=invoke i32@prim_const_S_IRUSR()
to label%K unwind label%aE
K:
%L=invoke i32@prim_const_S_IWUSR()
to label%M unwind label%aE
M:
%N=invoke i32@prim_const_S_IXUSR()
to label%O unwind label%aE
O:
%P=call i8*@sml_alloc(i32 inreg 12)#0
%Q=bitcast i8*%P to i32*
%R=getelementptr inbounds i8,i8*%P,i64 -4
%S=bitcast i8*%R to i32*
store i32 1342177288,i32*%S,align 4
store i8*%P,i8**%b,align 8
store i32%n,i32*%Q,align 4
%T=getelementptr inbounds i8,i8*%P,i64 8
%U=bitcast i8*%T to i32*
store i32 0,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
store i8*%V,i8**%c,align 8
%Y=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%Z=bitcast i8*%V to i8**
store i8*%Y,i8**%Z,align 8
%aa=getelementptr inbounds i8,i8*%V,i64 8
%ab=bitcast i8*%aa to void(...)**
store void(...)*bitcast(i32(i8*,i32)*@_SMLLLN13SMLSharp__OSIO4kindE_103 to void(...)*),void(...)**%ab,align 8
%ac=getelementptr inbounds i8,i8*%V,i64 16
%ad=bitcast i8*%ac to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN13SMLSharp__OSIO4kindE_159 to void(...)*),void(...)**%ad,align 8
%ae=getelementptr inbounds i8,i8*%V,i64 24
%af=bitcast i8*%ae to i32*
store i32 -2147483647,i32*%af,align 4
%ag=invoke i32@prim_const_SEEK_SET()
to label%ah unwind label%aE
ah:
%ai=invoke i32@prim_const_SEEK_CUR()
to label%aj unwind label%aE
aj:
%ak=call i8*@sml_alloc(i32 inreg 12)#0
%al=bitcast i8*%ak to i32*
%am=getelementptr inbounds i8,i8*%ak,i64 -4
%an=bitcast i8*%am to i32*
store i32 1342177288,i32*%an,align 4
store i8*%ak,i8**%b,align 8
store i32%n,i32*%al,align 4
%ao=getelementptr inbounds i8,i8*%ak,i64 4
%ap=bitcast i8*%ao to i32*
store i32%t,i32*%ap,align 4
%aq=getelementptr inbounds i8,i8*%ak,i64 8
%ar=bitcast i8*%aq to i32*
store i32 0,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
%av=load i8*,i8**%b,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 void(...)**
store void(...)*bitcast(i32(i8*,i8*)*@_SMLLLN13SMLSharp__OSIO2ST5isRegE_131 to void(...)*),void(...)**%ay,align 8
%az=getelementptr inbounds i8,i8*%as,i64 16
%aA=bitcast i8*%az to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN13SMLSharp__OSIO2ST5isRegE_170 to void(...)*),void(...)**%aA,align 8
%aB=getelementptr inbounds i8,i8*%as,i64 24
%aC=bitcast i8*%aB to i32*
store i32 -2147483647,i32*%aC,align 4
%aD=load i8*,i8**%c,align 8
call void@sml_write(i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,[2x i8*]}>,<{[4x i8],i32,[2x i8*]}>*@_SML_gvar741b333153f7e9d0_SMLSharp_OSIO,i64 0,i32 2,i64 0)to i8*),i8**inreg getelementptr inbounds(<{[4x i8],i32,[2x i8*]}>,<{[4x i8],i32,[2x i8*]}>*@_SML_gvar741b333153f7e9d0_SMLSharp_OSIO,i64 0,i32 2,i64 0),i8*inreg%aD)#0
store i32%x,i32*@_SMLZN13SMLSharp__OSIO4Kind4fileE,align 4
store i32%t,i32*@_SMLZN13SMLSharp__OSIO4Kind3dirE,align 4
store i32%z,i32*@_SMLZN13SMLSharp__OSIO4Kind7symlinkE,align 4
store i32%r,i32*@_SMLZN13SMLSharp__OSIO4Kind3ttyE,align 4
store i32%p,i32*@_SMLZN13SMLSharp__OSIO4Kind4pipeE,align 4
store i32%B,i32*@_SMLZN13SMLSharp__OSIO4Kind6socketE,align 4
store i32%v,i32*@_SMLZN13SMLSharp__OSIO4Kind6deviceE,align 4
store i32%n,i32*@_SMLZN13SMLSharp__OSIO6S__IFMTE,align 4
store i32%p,i32*@_SMLZN13SMLSharp__OSIO7S__IFIFOE,align 4
store i32%r,i32*@_SMLZN13SMLSharp__OSIO7S__IFCHRE,align 4
store i32%t,i32*@_SMLZN13SMLSharp__OSIO7S__IFDIRE,align 4
store i32%v,i32*@_SMLZN13SMLSharp__OSIO7S__IFBLKE,align 4
store i32%x,i32*@_SMLZN13SMLSharp__OSIO7S__IFREGE,align 4
store i32%z,i32*@_SMLZN13SMLSharp__OSIO7S__IFLNKE,align 4
store i32%B,i32*@_SMLZN13SMLSharp__OSIO8S__IFSOCKE,align 4
store i32%D,i32*@_SMLZN13SMLSharp__OSIO7S__ISUIDE,align 4
store i32%F,i32*@_SMLZN13SMLSharp__OSIO7S__ISGIDE,align 4
store i32%H,i32*@_SMLZN13SMLSharp__OSIO7S__ISVTXE,align 4
store i32%J,i32*@_SMLZN13SMLSharp__OSIO7S__IRUSRE,align 4
store i32%L,i32*@_SMLZN13SMLSharp__OSIO7S__IWUSRE,align 4
store i32%N,i32*@_SMLZN13SMLSharp__OSIO7S__IXUSRE,align 4
call void@sml_write(i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,[2x i8*]}>,<{[4x i8],i32,[2x i8*]}>*@_SML_gvar741b333153f7e9d0_SMLSharp_OSIO,i64 0,i32 2,i64 0)to i8*),i8**inreg getelementptr inbounds(<{[4x i8],i32,[2x i8*]}>,<{[4x i8],i32,[2x i8*]}>*@_SML_gvar741b333153f7e9d0_SMLSharp_OSIO,i64 0,i32 2,i64 1),i8*inreg%as)#0
store i32%ag,i32*@_SMLZN13SMLSharp__OSIO8SEEK__SETE,align 4
store i32%ai,i32*@_SMLZN13SMLSharp__OSIO8SEEK__CURE,align 4
call void@sml_end()#0
ret void
aE:
%aF=landingpad{i8*,i8*}
cleanup
%aG=extractvalue{i8*,i8*}%aF,1
call void@sml_save_exn(i8*inreg%aG)#0
call void@sml_end()#0
resume{i8*,i8*}%aF
}
define fastcc i32@_SMLFN13SMLSharp__OSIO7compareE(i8*inreg%a)#4 gc"smlsharp"{
%b=bitcast i8*%a to i32*
%c=load i32,i32*%b,align 4
%d=getelementptr inbounds i8,i8*%a,i64 4
%e=bitcast i8*%d to i32*
%f=load i32,i32*%e,align 4
%g=icmp slt i32%c,%f
%h=icmp sgt i32%c,%f
%i=zext i1%h to i32
%j=select i1%g,i32 2,i32%i
ret i32%j
}
define fastcc i8*@_SMLFN13SMLSharp__OSIO4statE(i8*inreg%a)#2 gc"smlsharp"personality i32(...)*@sml_personality{
%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%g,label%f
f:
call void@sml_check(i32 inreg%d)
br label%g
g:
%h=call i8*@sml_alloc(i32 inreg 24)#0
%i=getelementptr inbounds i8,i8*%h,i64 -4
%j=bitcast i8*%i to i32*
store i32 536870936,i32*%j,align 4
store i8*%h,i8**%c,align 8
%k=load i8*,i8**%b,align 8
call void@sml_leave()#0
%l=invoke i32@prim_GenericOS_stat(i8*%k,i8*%h)
to label%m unwind label%o
m:
call void@sml_enter()#0
store i8*null,i8**%b,align 8
%n=icmp sgt i32%l,-1
br i1%n,label%B,label%s
o:
%p=landingpad{i8*,i8*}
cleanup
%q=extractvalue{i8*,i8*}%p,1
call void@sml_enter()#0
%r=call i8*@sml_unsave_exn(i8*inreg%q)#0
resume{i8*,i8*}%p
s:
store i8*null,i8**%c,align 8
%t=call fastcc i8*@_SMLFN16SMLSharp__Runtime9OS__SysErrE(i32 inreg 0)
store i8*%t,i8**%b,align 8
%u=call i8*@sml_alloc(i32 inreg 60)#0
%v=getelementptr inbounds i8,i8*%u,i64 -4
%w=bitcast i8*%v to i32*
store i32 1342177336,i32*%w,align 4
%x=getelementptr inbounds i8,i8*%u,i64 56
%y=bitcast i8*%x to i32*
store i32 1,i32*%y,align 4
%z=load i8*,i8**%b,align 8
%A=bitcast i8*%u to i8**
store i8*%z,i8**%A,align 8
call void@sml_raise(i8*inreg%u)#1
unreachable
B:
%C=load i8*,i8**%c,align 8
%D=bitcast i8*%C to i32*
%E=load i32,i32*%D,align 4
%F=getelementptr inbounds i8,i8*%C,i64 4
%G=bitcast i8*%F to i32*
%H=load i32,i32*%G,align 4
%I=getelementptr inbounds i8,i8*%C,i64 8
%J=bitcast i8*%I to i32*
%K=load i32,i32*%J,align 4
%L=getelementptr inbounds i8,i8*%C,i64 12
%M=bitcast i8*%L to i32*
%N=load i32,i32*%M,align 4
%O=getelementptr inbounds i8,i8*%C,i64 16
%P=bitcast i8*%O to i32*
%Q=load i32,i32*%P,align 4
store i8*null,i8**%c,align 8
%R=getelementptr inbounds i8,i8*%C,i64 20
%S=bitcast i8*%R to i32*
%T=load i32,i32*%S,align 4
%U=call i8*@sml_alloc(i32 inreg 28)#0
%V=bitcast i8*%U to i32*
%W=getelementptr inbounds i8,i8*%U,i64 -4
%X=bitcast i8*%W to i32*
store i32 1342177304,i32*%X,align 4
store i32%N,i32*%V,align 4
%Y=getelementptr inbounds i8,i8*%U,i64 4
%Z=bitcast i8*%Y to i32*
store i32%E,i32*%Z,align 4
%aa=getelementptr inbounds i8,i8*%U,i64 8
%ab=bitcast i8*%aa to i32*
store i32%H,i32*%ab,align 4
%ac=getelementptr inbounds i8,i8*%U,i64 12
%ad=bitcast i8*%ac to i32*
store i32%K,i32*%ad,align 4
%ae=getelementptr inbounds i8,i8*%U,i64 16
%af=bitcast i8*%ae to i32*
store i32%Q,i32*%af,align 4
%ag=getelementptr inbounds i8,i8*%U,i64 20
%ah=bitcast i8*%ag to i32*
store i32%T,i32*%ah,align 4
%ai=getelementptr inbounds i8,i8*%U,i64 24
%aj=bitcast i8*%ai to i32*
store i32 0,i32*%aj,align 4
ret i8*%U
}
define fastcc i8*@_SMLFN13SMLSharp__OSIO5lstatE(i8*inreg%a)#2 gc"smlsharp"personality i32(...)*@sml_personality{
%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%g,label%f
f:
call void@sml_check(i32 inreg%d)
br label%g
g:
%h=call i8*@sml_alloc(i32 inreg 24)#0
%i=getelementptr inbounds i8,i8*%h,i64 -4
%j=bitcast i8*%i to i32*
store i32 536870936,i32*%j,align 4
store i8*%h,i8**%c,align 8
%k=load i8*,i8**%b,align 8
call void@sml_leave()#0
%l=invoke i32@prim_GenericOS_lstat(i8*%k,i8*%h)
to label%m unwind label%o
m:
call void@sml_enter()#0
store i8*null,i8**%b,align 8
%n=icmp sgt i32%l,-1
br i1%n,label%B,label%s
o:
%p=landingpad{i8*,i8*}
cleanup
%q=extractvalue{i8*,i8*}%p,1
call void@sml_enter()#0
%r=call i8*@sml_unsave_exn(i8*inreg%q)#0
resume{i8*,i8*}%p
s:
store i8*null,i8**%c,align 8
%t=call fastcc i8*@_SMLFN16SMLSharp__Runtime9OS__SysErrE(i32 inreg 0)
store i8*%t,i8**%b,align 8
%u=call i8*@sml_alloc(i32 inreg 60)#0
%v=getelementptr inbounds i8,i8*%u,i64 -4
%w=bitcast i8*%v to i32*
store i32 1342177336,i32*%w,align 4
%x=getelementptr inbounds i8,i8*%u,i64 56
%y=bitcast i8*%x to i32*
store i32 1,i32*%y,align 4
%z=load i8*,i8**%b,align 8
%A=bitcast i8*%u to i8**
store i8*%z,i8**%A,align 8
call void@sml_raise(i8*inreg%u)#1
unreachable
B:
%C=load i8*,i8**%c,align 8
%D=bitcast i8*%C to i32*
%E=load i32,i32*%D,align 4
%F=getelementptr inbounds i8,i8*%C,i64 4
%G=bitcast i8*%F to i32*
%H=load i32,i32*%G,align 4
%I=getelementptr inbounds i8,i8*%C,i64 8
%J=bitcast i8*%I to i32*
%K=load i32,i32*%J,align 4
%L=getelementptr inbounds i8,i8*%C,i64 12
%M=bitcast i8*%L to i32*
%N=load i32,i32*%M,align 4
%O=getelementptr inbounds i8,i8*%C,i64 16
%P=bitcast i8*%O to i32*
%Q=load i32,i32*%P,align 4
store i8*null,i8**%c,align 8
%R=getelementptr inbounds i8,i8*%C,i64 20
%S=bitcast i8*%R to i32*
%T=load i32,i32*%S,align 4
%U=call i8*@sml_alloc(i32 inreg 28)#0
%V=bitcast i8*%U to i32*
%W=getelementptr inbounds i8,i8*%U,i64 -4
%X=bitcast i8*%W to i32*
store i32 1342177304,i32*%X,align 4
store i32%N,i32*%V,align 4
%Y=getelementptr inbounds i8,i8*%U,i64 4
%Z=bitcast i8*%Y to i32*
store i32%E,i32*%Z,align 4
%aa=getelementptr inbounds i8,i8*%U,i64 8
%ab=bitcast i8*%aa to i32*
store i32%H,i32*%ab,align 4
%ac=getelementptr inbounds i8,i8*%U,i64 12
%ad=bitcast i8*%ac to i32*
store i32%K,i32*%ad,align 4
%ae=getelementptr inbounds i8,i8*%U,i64 16
%af=bitcast i8*%ae to i32*
store i32%Q,i32*%af,align 4
%ag=getelementptr inbounds i8,i8*%U,i64 20
%ah=bitcast i8*%ag to i32*
store i32%T,i32*%ah,align 4
%ai=getelementptr inbounds i8,i8*%U,i64 24
%aj=bitcast i8*%ai to i32*
store i32 0,i32*%aj,align 4
ret i8*%U
}
define fastcc i8*@_SMLFN13SMLSharp__OSIO5fstatE(i32 inreg%a)#2 gc"smlsharp"personality i32(...)*@sml_personality{
%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 atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%g,label%f
f:
call void@sml_check(i32 inreg%d)
br label%g
g:
%h=call i8*@sml_alloc(i32 inreg 24)#0
%i=getelementptr inbounds i8,i8*%h,i64 -4
%j=bitcast i8*%i to i32*
store i32 536870936,i32*%j,align 4
store i8*%h,i8**%b,align 8
call void@sml_leave()#0
%k=invoke i32@prim_GenericOS_fstat(i32%a,i8*%h)
to label%l unwind label%n
l:
call void@sml_enter()#0
%m=icmp sgt i32%k,-1
br i1%m,label%A,label%r
n:
%o=landingpad{i8*,i8*}
cleanup
%p=extractvalue{i8*,i8*}%o,1
call void@sml_enter()#0
%q=call i8*@sml_unsave_exn(i8*inreg%p)#0
resume{i8*,i8*}%o
r:
store i8*null,i8**%b,align 8
%s=call fastcc i8*@_SMLFN16SMLSharp__Runtime9OS__SysErrE(i32 inreg 0)
store i8*%s,i8**%b,align 8
%t=call i8*@sml_alloc(i32 inreg 60)#0
%u=getelementptr inbounds i8,i8*%t,i64 -4
%v=bitcast i8*%u to i32*
store i32 1342177336,i32*%v,align 4
%w=getelementptr inbounds i8,i8*%t,i64 56
%x=bitcast i8*%w to i32*
store i32 1,i32*%x,align 4
%y=load i8*,i8**%b,align 8
%z=bitcast i8*%t to i8**
store i8*%y,i8**%z,align 8
call void@sml_raise(i8*inreg%t)#1
unreachable
A:
%B=load i8*,i8**%b,align 8
%C=bitcast i8*%B to i32*
%D=load i32,i32*%C,align 4
%E=getelementptr inbounds i8,i8*%B,i64 4
%F=bitcast i8*%E to i32*
%G=load i32,i32*%F,align 4
%H=getelementptr inbounds i8,i8*%B,i64 8
%I=bitcast i8*%H to i32*
%J=load i32,i32*%I,align 4
%K=getelementptr inbounds i8,i8*%B,i64 12
%L=bitcast i8*%K to i32*
%M=load i32,i32*%L,align 4
%N=getelementptr inbounds i8,i8*%B,i64 16
%O=bitcast i8*%N to i32*
%P=load i32,i32*%O,align 4
store i8*null,i8**%b,align 8
%Q=getelementptr inbounds i8,i8*%B,i64 20
%R=bitcast i8*%Q to i32*
%S=load i32,i32*%R,align 4
%T=call i8*@sml_alloc(i32 inreg 28)#0
%U=bitcast i8*%T to i32*
%V=getelementptr inbounds i8,i8*%T,i64 -4
%W=bitcast i8*%V to i32*
store i32 1342177304,i32*%W,align 4
store i32%M,i32*%U,align 4
%X=getelementptr inbounds i8,i8*%T,i64 4
%Y=bitcast i8*%X to i32*
store i32%D,i32*%Y,align 4
%Z=getelementptr inbounds i8,i8*%T,i64 8
%aa=bitcast i8*%Z to i32*
store i32%G,i32*%aa,align 4
%ab=getelementptr inbounds i8,i8*%T,i64 12
%ac=bitcast i8*%ab to i32*
store i32%J,i32*%ac,align 4
%ad=getelementptr inbounds i8,i8*%T,i64 16
%ae=bitcast i8*%ad to i32*
store i32%P,i32*%ae,align 4
%af=getelementptr inbounds i8,i8*%T,i64 20
%ag=bitcast i8*%af to i32*
store i32%S,i32*%ag,align 4
%ah=getelementptr inbounds i8,i8*%T,i64 24
%ai=bitcast i8*%ah to i32*
store i32 0,i32*%ai,align 4
ret i8*%T
}
define internal fastcc i32@_SMLLLN13SMLSharp__OSIO4kindE_103(i8*inreg%a,i32 inreg%b)#2 gc"smlsharp"personality i32(...)*@sml_personality{
%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=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 24)#0
%j=getelementptr inbounds i8,i8*%i,i64 -4
%k=bitcast i8*%j to i32*
store i32 536870936,i32*%k,align 4
store i8*%i,i8**%c,align 8
call void@sml_leave()#0
%l=invoke i32@prim_GenericOS_fstat(i32%b,i8*%i)
to label%m unwind label%o
m:
call void@sml_enter()#0
%n=icmp sgt i32%l,-1
br i1%n,label%B,label%s
o:
%p=landingpad{i8*,i8*}
cleanup
%q=extractvalue{i8*,i8*}%p,1
call void@sml_enter()#0
%r=call i8*@sml_unsave_exn(i8*inreg%q)#0
resume{i8*,i8*}%p
s:
store i8*null,i8**%c,align 8
store i8*null,i8**%d,align 8
%t=call fastcc i8*@_SMLFN16SMLSharp__Runtime9OS__SysErrE(i32 inreg 0)
store i8*%t,i8**%c,align 8
%u=call i8*@sml_alloc(i32 inreg 60)#0
%v=getelementptr inbounds i8,i8*%u,i64 -4
%w=bitcast i8*%v to i32*
store i32 1342177336,i32*%w,align 4
%x=getelementptr inbounds i8,i8*%u,i64 56
%y=bitcast i8*%x to i32*
store i32 1,i32*%y,align 4
%z=load i8*,i8**%c,align 8
%A=bitcast i8*%u to i8**
store i8*%z,i8**%A,align 8
call void@sml_raise(i8*inreg%u)#1
unreachable
B:
%C=load i8*,i8**%c,align 8
%D=getelementptr inbounds i8,i8*%C,i64 8
%E=bitcast i8*%D to i32*
%F=load i32,i32*%E,align 4
%G=bitcast i8**%d to i32**
%H=load i32*,i32**%G,align 8
%I=load i32,i32*%H,align 4
%J=and i32%I,%F
ret i32%J
}
define fastcc i8*@_SMLFN13SMLSharp__OSIO8pollDescE(i32 inreg%a)#4 gc"smlsharp"{
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
%c=call i8*@sml_alloc(i32 inreg 12)#0
%d=bitcast i8*%c to i32*
%e=getelementptr inbounds i8,i8*%c,i64 -4
%f=bitcast i8*%e to i32*
store i32 1342177288,i32*%f,align 4
store i8*%c,i8**%b,align 8
store i32%a,i32*%d,align 4
%g=getelementptr inbounds i8,i8*%c,i64 4
%h=bitcast i8*%g to i32*
store i32 0,i32*%h,align 4
%i=getelementptr inbounds i8,i8*%c,i64 8
%j=bitcast i8*%i to i32*
store i32 0,i32*%j,align 4
%k=call i8*@sml_alloc(i32 inreg 12)#0
%l=getelementptr inbounds i8,i8*%k,i64 -4
%m=bitcast i8*%l to i32*
store i32 1342177288,i32*%m,align 4
%n=load i8*,i8**%b,align 8
%o=bitcast i8*%k to i8**
store i8*%n,i8**%o,align 8
%p=getelementptr inbounds i8,i8*%k,i64 8
%q=bitcast i8*%p to i32*
store i32 1,i32*%q,align 4
ret i8*%k
}
define fastcc i32@_SMLFN13SMLSharp__OSIO12pollToIODescE(i8*inreg%a)#4 gc"smlsharp"{
%b=bitcast i8*%a to i32*
%c=load i32,i32*%b,align 4
ret i32%c
}
define fastcc i8*@_SMLFN13SMLSharp__OSIO6pollInE(i8*inreg%a)#4 gc"smlsharp"{
%b=bitcast i8*%a to i32*
%c=load i32,i32*%b,align 4
%d=getelementptr inbounds i8,i8*%a,i64 4
%e=bitcast i8*%d to i32*
%f=load i32,i32*%e,align 4
%g=or i32%f,1
%h=tail call i8*@sml_alloc(i32 inreg 12)#0
%i=bitcast i8*%h to i32*
%j=getelementptr inbounds i8,i8*%h,i64 -4
%k=bitcast i8*%j to i32*
store i32 1342177288,i32*%k,align 4
store i32%c,i32*%i,align 4
%l=getelementptr inbounds i8,i8*%h,i64 4
%m=bitcast i8*%l to i32*
store i32%g,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
ret i8*%h
}
define fastcc i8*@_SMLFN13SMLSharp__OSIO7pollOutE(i8*inreg%a)#4 gc"smlsharp"{
%b=bitcast i8*%a to i32*
%c=load i32,i32*%b,align 4
%d=getelementptr inbounds i8,i8*%a,i64 4
%e=bitcast i8*%d to i32*
%f=load i32,i32*%e,align 4
%g=or i32%f,2
%h=tail call i8*@sml_alloc(i32 inreg 12)#0
%i=bitcast i8*%h to i32*
%j=getelementptr inbounds i8,i8*%h,i64 -4
%k=bitcast i8*%j to i32*
store i32 1342177288,i32*%k,align 4
store i32%c,i32*%i,align 4
%l=getelementptr inbounds i8,i8*%h,i64 4
%m=bitcast i8*%l to i32*
store i32%g,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
ret i8*%h
}
define fastcc i8*@_SMLFN13SMLSharp__OSIO7pollPriE(i8*inreg%a)#4 gc"smlsharp"{
%b=bitcast i8*%a to i32*
%c=load i32,i32*%b,align 4
%d=getelementptr inbounds i8,i8*%a,i64 4
%e=bitcast i8*%d to i32*
%f=load i32,i32*%e,align 4
%g=or i32%f,4
%h=tail call i8*@sml_alloc(i32 inreg 12)#0
%i=bitcast i8*%h to i32*
%j=getelementptr inbounds i8,i8*%h,i64 -4
%k=bitcast i8*%j to i32*
store i32 1342177288,i32*%k,align 4
store i32%c,i32*%i,align 4
%l=getelementptr inbounds i8,i8*%h,i64 4
%m=bitcast i8*%l to i32*
store i32%g,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
ret i8*%h
}
define fastcc i32@_SMLFN13SMLSharp__OSIO4isInE(i8*inreg%a)#4 gc"smlsharp"{
%b=getelementptr inbounds i8,i8*%a,i64 4
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=icmp ugt i32%d,1
%f=zext i1%e to i32
ret i32%f
}
define fastcc i32@_SMLFN13SMLSharp__OSIO5isOutE(i8*inreg%a)#4 gc"smlsharp"{
%b=getelementptr inbounds i8,i8*%a,i64 4
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=and i32%d,-3
%f=icmp ne i32%e,0
%g=zext i1%f to i32
ret i32%g
}
define fastcc i32@_SMLFN13SMLSharp__OSIO5isPriE(i8*inreg%a)#4 gc"smlsharp"{
%b=getelementptr inbounds i8,i8*%a,i64 4
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=and i32%d,-5
%f=icmp ne i32%e,0
%g=zext i1%f to i32
ret i32%g
}
define fastcc i8*@_SMLFN13SMLSharp__OSIO14infoToPollDescE(i8*inreg%a)#4 gc"smlsharp"{
ret i8*%a
}
define fastcc i8*@_SMLFN13SMLSharp__OSIO4pollE(i8*inreg%a)#2 gc"smlsharp"personality i32(...)*@sml_personality{
t:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
%g=bitcast i8*%a to i8**
%h=load i8*,i8**%g,align 8
store i8*%h,i8**%b,align 8
%i=getelementptr inbounds i8,i8*%a,i64 8
%j=bitcast i8*%i to i8**
%k=load i8*,i8**%j,align 8
store i8*%k,i8**%c,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
%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**%b,align 8
br label%r
r:
%s=phi i8*[%X,%P],[%l,%t]
%u=phi i8*[%ac,%P],[%q,%t]
%v=phi i32[%W,%P],[0,%t]
%w=bitcast i8*%s to i8**
store i8*%u,i8**%w,align 8
%x=getelementptr inbounds i8,i8*%s,i64 8
%y=bitcast i8*%x to i32*
store i32%v,i32*%y,align 4
%z=getelementptr inbounds i8,i8*%s,i64 16
%A=bitcast i8*%z to i32*
store i32 1,i32*%A,align 4
store i8*%s,i8**%d,align 8
%B=load atomic i32,i32*@sml_check_flag unordered,align 4
%C=icmp eq i32%B,0
br i1%C,label%F,label%D
D:
call void@sml_check(i32 inreg%B)
%E=load i8*,i8**%d,align 8
br label%F
F:
%G=phi i8*[%E,%D],[%s,%r]
%H=bitcast i8*%G to i8**
%I=load i8*,i8**%H,align 8
%J=icmp eq i8*%I,null
br i1%J,label%K,label%P
K:
store i8*null,i8**%d,align 8
%L=getelementptr inbounds i8,i8*%G,i64 8
%M=bitcast i8*%L to i32*
%N=load i32,i32*%M,align 4
%O=icmp ugt i32%N,67108863
br i1%O,label%ad,label%av
P:
%Q=getelementptr inbounds i8,i8*%I,i64 8
%R=bitcast i8*%Q to i8**
%S=load i8*,i8**%R,align 8
store i8*%S,i8**%e,align 8
store i8*null,i8**%d,align 8
%T=getelementptr inbounds i8,i8*%G,i64 8
%U=bitcast i8*%T to i32*
%V=load i32,i32*%U,align 4
%W=add nsw i32%V,1
%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
%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**%e,align 8
store i8*null,i8**%e,align 8
br label%r
ad:
store i8*null,i8**%c,align 8
%ae=load i8*,i8**@_SMLZ4Size,align 8
store i8*%ae,i8**%b,align 8
%af=call i8*@sml_alloc(i32 inreg 20)#0
%ag=getelementptr inbounds i8,i8*%af,i64 -4
%ah=bitcast i8*%ag to i32*
store i32 1342177296,i32*%ah,align 4
store i8*%af,i8**%c,align 8
%ai=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aj=bitcast i8*%af to i8**
store i8*%ai,i8**%aj,align 8
%ak=getelementptr inbounds i8,i8*%af,i64 8
%al=bitcast i8*%ak to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[46x i8]}>,<{[4x i8],i32,[46x i8]}>*@p,i64 0,i32 2,i64 0),i8**%al,align 8
%am=getelementptr inbounds i8,i8*%af,i64 16
%an=bitcast i8*%am to i32*
store i32 3,i32*%an,align 4
%ao=call i8*@sml_alloc(i32 inreg 60)#0
%ap=getelementptr inbounds i8,i8*%ao,i64 -4
%aq=bitcast i8*%ap to i32*
store i32 1342177336,i32*%aq,align 4
%ar=getelementptr inbounds i8,i8*%ao,i64 56
%as=bitcast i8*%ar to i32*
store i32 1,i32*%as,align 4
%at=load i8*,i8**%c,align 8
%au=bitcast i8*%ao to i8**
store i8*%at,i8**%au,align 8
call void@sml_raise(i8*inreg%ao)#1
unreachable
av:
%aw=shl nsw i32%N,2
%ax=call i8*@sml_alloc(i32 inreg%aw)#0
%ay=or i32%aw,536870912
%az=getelementptr inbounds i8,i8*%ax,i64 -4
%aA=bitcast i8*%az to i32*
store i32%ay,i32*%aA,align 4
store i8*%ax,i8**%d,align 8
%aB=call i8*@sml_alloc(i32 inreg%aw)#0
%aC=getelementptr inbounds i8,i8*%aB,i64 -4
%aD=bitcast i8*%aC to i32*
store i32%ay,i32*%aD,align 4
store i8*%aB,i8**%e,align 8
%aE=call i8*@sml_alloc(i32 inreg 20)#0
%aF=getelementptr inbounds i8,i8*%aE,i64 -4
%aG=bitcast i8*%aF to i32*
store i32 1342177296,i32*%aG,align 4
%aH=bitcast i8*%aE to i64*
store i64 0,i64*%aH,align 4
br label%aI
aI:
%aJ=phi i8*[%bl,%a1],[%aE,%av]
%aK=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aL=getelementptr inbounds i8,i8*%aJ,i64 8
%aM=bitcast i8*%aL to i8**
store i8*%aK,i8**%aM,align 8
%aN=getelementptr inbounds i8,i8*%aJ,i64 16
%aO=bitcast i8*%aN to i32*
store i32 2,i32*%aO,align 4
store i8*%aJ,i8**%b,align 8
%aP=load atomic i32,i32*@sml_check_flag unordered,align 4
%aQ=icmp eq i32%aP,0
br i1%aQ,label%aT,label%aR
aR:
call void@sml_check(i32 inreg%aP)
%aS=load i8*,i8**%b,align 8
br label%aT
aT:
%aU=phi i8*[%aS,%aR],[%aJ,%aI]
%aV=bitcast i8*%aU to i32*
%aW=load i32,i32*%aV,align 4
store i8*null,i8**%b,align 8
%aX=getelementptr inbounds i8,i8*%aU,i64 8
%aY=bitcast i8*%aX to i8**
%aZ=load i8*,i8**%aY,align 8
%a0=icmp eq i8*%aZ,null
br i1%a0,label%br,label%a1
a1:
%a2=bitcast i8*%aZ to i8**
%a3=load i8*,i8**%a2,align 8
%a4=bitcast i8*%a3 to i32*
%a5=load i32,i32*%a4,align 4
%a6=getelementptr inbounds i8,i8*%a3,i64 4
%a7=bitcast i8*%a6 to i32*
%a8=load i32,i32*%a7,align 4
%a9=getelementptr inbounds i8,i8*%aZ,i64 8
%ba=bitcast i8*%a9 to i8**
%bb=load i8*,i8**%ba,align 8
store i8*%bb,i8**%b,align 8
%bc=load i8*,i8**%d,align 8
%bd=shl i32%aW,2
%be=sext i32%bd to i64
%bf=getelementptr inbounds i8,i8*%bc,i64%be
%bg=bitcast i8*%bf to i32*
store i32%a5,i32*%bg,align 4
%bh=load i8*,i8**%e,align 8
%bi=getelementptr inbounds i8,i8*%bh,i64%be
%bj=bitcast i8*%bi to i32*
store i32%a8,i32*%bj,align 4
%bk=add nsw i32%aW,1
%bl=call i8*@sml_alloc(i32 inreg 20)#0
%bm=bitcast i8*%bl to i32*
%bn=getelementptr inbounds i8,i8*%bl,i64 -4
%bo=bitcast i8*%bn to i32*
store i32 1342177296,i32*%bo,align 4
%bp=getelementptr inbounds i8,i8*%bl,i64 4
%bq=bitcast i8*%bp to i32*
store i32 0,i32*%bq,align 1
store i32%bk,i32*%bm,align 4
br label%aI
br:
%bs=load i8*,i8**%c,align 8
%bt=icmp eq i8*%bs,null
store i8*null,i8**%c,align 8
br i1%bt,label%co,label%bu
bu:
%bv=bitcast i8*%bs to i8**
%bw=load i8*,i8**%bv,align 8
%bx=call fastcc i8*@_SMLFN4Time14toMicrosecondsE(i8*inreg%bw)
store i8*%bx,i8**%b,align 8
%by=call fastcc i32@_SMLFN6IntInf4signE(i8*inreg%bx)
%bz=icmp sgt i32%by,-1
br i1%bz,label%bU,label%bA
bA:
store i8*null,i8**%d,align 8
store i8*null,i8**%e,align 8
%bB=load i8*,i8**@_SMLZN16SMLSharp__Runtime6SysErrE,align 8
store i8*%bB,i8**%b,align 8
%bC=call i8*@sml_alloc(i32 inreg 28)#0
%bD=getelementptr inbounds i8,i8*%bC,i64 -4
%bE=bitcast i8*%bD to i32*
store i32 1342177304,i32*%bE,align 4
store i8*%bC,i8**%c,align 8
%bF=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%bG=bitcast i8*%bC to i8**
store i8*%bF,i8**%bG,align 8
%bH=getelementptr inbounds i8,i8*%bC,i64 8
%bI=bitcast i8*%bH to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[46x i8]}>,<{[4x i8],i32,[46x i8]}>*@r,i64 0,i32 2,i64 0),i8**%bI,align 8
%bJ=getelementptr inbounds i8,i8*%bC,i64 16
%bK=bitcast i8*%bJ to i8**
store i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,i8*,i32}>,<{[4x i8],i32,i8*,i8*,i32}>*@t,i64 0,i32 2)to i8*),i8**%bK,align 8
%bL=getelementptr inbounds i8,i8*%bC,i64 24
%bM=bitcast i8*%bL to i32*
store i32 7,i32*%bM,align 4
%bN=call i8*@sml_alloc(i32 inreg 60)#0
%bO=getelementptr inbounds i8,i8*%bN,i64 -4
%bP=bitcast i8*%bO to i32*
store i32 1342177336,i32*%bP,align 4
%bQ=getelementptr inbounds i8,i8*%bN,i64 56
%bR=bitcast i8*%bQ to i32*
store i32 1,i32*%bR,align 4
%bS=load i8*,i8**%c,align 8
%bT=bitcast i8*%bN to i8**
store i8*%bS,i8**%bT,align 8
call void@sml_raise(i8*inreg%bN)#1
unreachable
bU:
%bV=call i8*@sml_save()#0
%bW=call i8*@sml_load_intinf(i8*inreg getelementptr inbounds([6x i8],[6x i8]*@q,i64 0,i64 0))#0
call void@sml_unsave()#0
store i8*%bW,i8**%c,align 8
%bX=call i8*@sml_alloc(i32 inreg 20)#0
%bY=getelementptr inbounds i8,i8*%bX,i64 -4
%bZ=bitcast i8*%bY to i32*
store i32 1342177296,i32*%bZ,align 4
%b0=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%b1=bitcast i8*%bX to i8**
store i8*%b0,i8**%b1,align 8
%b2=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%b3=getelementptr inbounds i8,i8*%bX,i64 8
%b4=bitcast i8*%b3 to i8**
store i8*%b2,i8**%b4,align 8
%b5=getelementptr inbounds i8,i8*%bX,i64 16
%b6=bitcast i8*%b5 to i32*
store i32 3,i32*%b6,align 4
%b7=call fastcc i8*@_SMLFN6IntInf6divModE(i8*inreg%bX)
%b8=bitcast i8*%b7 to i8**
%b9=load i8*,i8**%b8,align 8
%ca=getelementptr inbounds i8,i8*%b7,i64 8
%cb=bitcast i8*%ca to i8**
%cc=load i8*,i8**%cb,align 8
store i8*%cc,i8**%b,align 8
%cd=call fastcc i32@_SMLFN6IntInf5toIntE(i8*inreg%b9)
%ce=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%cf=call fastcc i32@_SMLFN6IntInf5toIntE(i8*inreg%ce)
%cg=call i8*@sml_alloc(i32 inreg 12)#0
%ch=bitcast i8*%cg to i32*
%ci=getelementptr inbounds i8,i8*%cg,i64 -4
%cj=bitcast i8*%ci to i32*
store i32 1342177288,i32*%cj,align 4
store i32%cd,i32*%ch,align 4
%ck=getelementptr inbounds i8,i8*%cg,i64 4
%cl=bitcast i8*%ck to i32*
store i32%cf,i32*%cl,align 4
%cm=getelementptr inbounds i8,i8*%cg,i64 8
%cn=bitcast i8*%cm to i32*
store i32 0,i32*%cn,align 4
br label%co
co:
%cp=phi i32[%cf,%bU],[-1,%br]
%cq=phi i32[%cd,%bU],[-1,%br]
%cr=load i8*,i8**%d,align 8
%cs=load i8*,i8**%e,align 8
call void@sml_leave()#0
%ct=invoke i32@prim_GenericOS_poll(i8*%cr,i8*%cs,i32%cq,i32%cp)
to label%cu unwind label%cw
cu:
call void@sml_enter()#0
%cv=icmp sgt i32%ct,-1
br i1%cv,label%cJ,label%cA
cw:
%cx=landingpad{i8*,i8*}
cleanup
%cy=extractvalue{i8*,i8*}%cx,1
call void@sml_enter()#0
%cz=call i8*@sml_unsave_exn(i8*inreg%cy)#0
resume{i8*,i8*}%cx
cA:
store i8*null,i8**%d,align 8
store i8*null,i8**%e,align 8
%cB=call fastcc i8*@_SMLFN16SMLSharp__Runtime9OS__SysErrE(i32 inreg 0)
store i8*%cB,i8**%b,align 8
%cC=call i8*@sml_alloc(i32 inreg 60)#0
%cD=getelementptr inbounds i8,i8*%cC,i64 -4
%cE=bitcast i8*%cD to i32*
store i32 1342177336,i32*%cE,align 4
%cF=getelementptr inbounds i8,i8*%cC,i64 56
%cG=bitcast i8*%cF to i32*
store i32 1,i32*%cG,align 4
%cH=load i8*,i8**%b,align 8
%cI=bitcast i8*%cC to i8**
store i8*%cH,i8**%cI,align 8
call void@sml_raise(i8*inreg%cC)#1
unreachable
cJ:
%cK=call i8*@sml_alloc(i32 inreg 20)#0
%cL=bitcast i8*%cK to i32*
%cM=getelementptr inbounds i8,i8*%cK,i64 -4
%cN=bitcast i8*%cM to i32*
store i32 1342177296,i32*%cN,align 4
%cO=getelementptr inbounds i8,i8*%cK,i64 4
%cP=bitcast i8*%cO to i32*
store i32 0,i32*%cP,align 1
store i32%N,i32*%cL,align 4
br label%cQ
cQ:
%cR=phi i8*[%dE,%da],[%cK,%cJ]
%cS=phi i8*[%dK,%da],[null,%cJ]
%cT=getelementptr inbounds i8,i8*%cR,i64 8
%cU=bitcast i8*%cT to i8**
store i8*%cS,i8**%cU,align 8
%cV=getelementptr inbounds i8,i8*%cR,i64 16
%cW=bitcast i8*%cV to i32*
store i32 2,i32*%cW,align 4
store i8*%cR,i8**%b,align 8
%cX=load atomic i32,i32*@sml_check_flag unordered,align 4
%cY=icmp eq i32%cX,0
br i1%cY,label%c1,label%cZ
cZ:
call void@sml_check(i32 inreg%cX)
%c0=load i8*,i8**%b,align 8
br label%c1
c1:
%c2=phi i8*[%c0,%cZ],[%cR,%cQ]
%c3=bitcast i8*%c2 to i32*
%c4=load i32,i32*%c3,align 4
%c5=getelementptr inbounds i8,i8*%c2,i64 8
%c6=bitcast i8*%c5 to i8**
%c7=load i8*,i8**%c6,align 8
store i8*%c7,i8**%b,align 8
%c8=icmp sgt i32%c4,-1
br i1%c8,label%da,label%c9
c9:
ret i8*%c7
da:
%db=add nsw i32%c4,-1
%dc=load i8*,i8**%d,align 8
%dd=shl i32%c4,2
%de=sext i32%dd to i64
%df=getelementptr inbounds i8,i8*%dc,i64%de
%dg=bitcast i8*%df to i32*
%dh=load i32,i32*%dg,align 4
%di=load i8*,i8**%e,align 8
%dj=getelementptr inbounds i8,i8*%di,i64%de
%dk=bitcast i8*%dj to i32*
%dl=load i32,i32*%dk,align 4
%dm=call i8*@sml_alloc(i32 inreg 12)#0
%dn=bitcast i8*%dm to i32*
%do=getelementptr inbounds i8,i8*%dm,i64 -4
%dp=bitcast i8*%do to i32*
store i32 1342177288,i32*%dp,align 4
store i8*%dm,i8**%c,align 8
store i32%dh,i32*%dn,align 4
%dq=getelementptr inbounds i8,i8*%dm,i64 4
%dr=bitcast i8*%dq to i32*
store i32%dl,i32*%dr,align 4
%ds=getelementptr inbounds i8,i8*%dm,i64 8
%dt=bitcast i8*%ds to i32*
store i32 0,i32*%dt,align 4
%du=call i8*@sml_alloc(i32 inreg 20)#0
%dv=getelementptr inbounds i8,i8*%du,i64 -4
%dw=bitcast i8*%dv to i32*
store i32 1342177296,i32*%dw,align 4
store i8*%du,i8**%f,align 8
%dx=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%dy=bitcast i8*%du to i8**
store i8*%dx,i8**%dy,align 8
%dz=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%dA=getelementptr inbounds i8,i8*%du,i64 8
%dB=bitcast i8*%dA to i8**
store i8*%dz,i8**%dB,align 8
%dC=getelementptr inbounds i8,i8*%du,i64 16
%dD=bitcast i8*%dC to i32*
store i32 3,i32*%dD,align 4
%dE=call i8*@sml_alloc(i32 inreg 20)#0
%dF=bitcast i8*%dE to i32*
%dG=getelementptr inbounds i8,i8*%dE,i64 -4
%dH=bitcast i8*%dG to i32*
store i32 1342177296,i32*%dH,align 4
%dI=getelementptr inbounds i8,i8*%dE,i64 4
%dJ=bitcast i8*%dI to i32*
store i32 0,i32*%dJ,align 1
store i32%db,i32*%dF,align 4
%dK=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
br label%cQ
}
define internal fastcc i32@_SMLLLN13SMLSharp__OSIO2ST5isRegE_131(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=getelementptr inbounds i8,i8*%b,i64 12
%d=bitcast i8*%c to i32*
%e=load i32,i32*%d,align 4
%f=bitcast i8*%a to i32*
%g=load i32,i32*%f,align 4
%h=and i32%g,%e
%i=getelementptr inbounds i8,i8*%a,i64 4
%j=bitcast i8*%i to i32*
%k=load i32,i32*%j,align 4
%l=icmp eq i32%h,%k
%m=zext i1%l to i32
ret i32%m
}
define fastcc i32@_SMLFN13SMLSharp__OSIO2ST4sizeE(i8*inreg%a)#4 gc"smlsharp"{
%b=getelementptr inbounds i8,i8*%a,i64 20
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
ret i32%d
}
define fastcc void@_SMLFN13SMLSharp__OSIO5closeE(i32 inreg%a)#2 gc"smlsharp"personality i32(...)*@sml_personality{
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%f,label%e
e:
call void@sml_check(i32 inreg%c)
br label%f
f:
call void@sml_leave()#0
%g=invoke i32@close(i32%a)
to label%h unwind label%j
h:
call void@sml_enter()#0
%i=icmp sgt i32%g,-1
br i1%i,label%w,label%n
j:
%k=landingpad{i8*,i8*}
cleanup
%l=extractvalue{i8*,i8*}%k,1
call void@sml_enter()#0
%m=call i8*@sml_unsave_exn(i8*inreg%l)#0
resume{i8*,i8*}%k
n:
%o=call fastcc i8*@_SMLFN16SMLSharp__Runtime9OS__SysErrE(i32 inreg 0)
store i8*%o,i8**%b,align 8
%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**%b,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:
ret void
}
define fastcc i32@_SMLFN13SMLSharp__OSIO5openfE(i8*inreg%a)#2 gc"smlsharp"personality i32(...)*@sml_personality{
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 i8**
%o=load i8*,i8**%n,align 8
store i8*%o,i8**%c,align 8
call void@sml_leave()#0
%p=invoke i32@prim_GenericOS_open(i8*%l,i8*%o)
to label%q unwind label%C
q:
call void@sml_enter()#0
store i8*null,i8**%b,align 8
store i8*null,i8**%c,align 8
%r=icmp sgt i32%p,-1
br i1%r,label%B,label%s
s:
%t=call fastcc i8*@_SMLFN16SMLSharp__Runtime9OS__SysErrE(i32 inreg 0)
store i8*%t,i8**%b,align 8
%u=call i8*@sml_alloc(i32 inreg 60)#0
%v=getelementptr inbounds i8,i8*%u,i64 -4
%w=bitcast i8*%v to i32*
store i32 1342177336,i32*%w,align 4
%x=getelementptr inbounds i8,i8*%u,i64 56
%y=bitcast i8*%x to i32*
store i32 1,i32*%y,align 4
%z=load i8*,i8**%b,align 8
%A=bitcast i8*%u to i8**
store i8*%z,i8**%A,align 8
call void@sml_raise(i8*inreg%u)#1
unreachable
B:
ret i32%p
C:
%D=landingpad{i8*,i8*}
cleanup
%E=extractvalue{i8*,i8*}%D,1
call void@sml_enter()#0
%F=call i8*@sml_unsave_exn(i8*inreg%E)#0
resume{i8*,i8*}%D
}
define fastcc i32@_SMLFN13SMLSharp__OSIO5lseekE(i8*inreg%a)#2 gc"smlsharp"personality i32(...)*@sml_personality{
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 i32*
%k=load i32,i32*%j,align 4
%l=getelementptr inbounds i8,i8*%h,i64 4
%m=bitcast i8*%l to i32*
%n=load i32,i32*%m,align 4
%o=getelementptr inbounds i8,i8*%h,i64 8
%p=bitcast i8*%o to i32*
%q=load i32,i32*%p,align 4
call void@sml_leave()#0
%r=invoke i32@prim_GenericOS_lseek(i32%k,i32%n,i32%q)
to label%s unwind label%E
s:
call void@sml_enter()#0
%t=icmp sgt i32%r,-1
br i1%t,label%D,label%u
u:
%v=call fastcc i8*@_SMLFN16SMLSharp__Runtime9OS__SysErrE(i32 inreg 0)
store i8*%v,i8**%b,align 8
%w=call i8*@sml_alloc(i32 inreg 60)#0
%x=getelementptr inbounds i8,i8*%w,i64 -4
%y=bitcast i8*%x to i32*
store i32 1342177336,i32*%y,align 4
%z=getelementptr inbounds i8,i8*%w,i64 56
%A=bitcast i8*%z to i32*
store i32 1,i32*%A,align 4
%B=load i8*,i8**%b,align 8
%C=bitcast i8*%w to i8**
store i8*%B,i8**%C,align 8
call void@sml_raise(i8*inreg%w)#1
unreachable
D:
ret i32%r
E:
%F=landingpad{i8*,i8*}
cleanup
%G=extractvalue{i8*,i8*}%F,1
call void@sml_enter()#0
%H=call i8*@sml_unsave_exn(i8*inreg%G)#0
resume{i8*,i8*}%F
}
define fastcc i8*@_SMLFN13SMLSharp__OSIO7readVecE(i8*inreg%a)#2 gc"smlsharp"personality i32(...)*@sml_personality{
j:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%b,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%h,label%f
f:
call void@sml_check(i32 inreg%d)
%g=load i8*,i8**%b,align 8
br label%h
h:
%i=phi i8*[%g,%f],[%a,%j]
store i8*null,i8**%b,align 8
%k=bitcast i8*%i to i32*
%l=load i32,i32*%k,align 4
%m=getelementptr inbounds i8,i8*%i,i64 4
%n=bitcast i8*%m to i32*
%o=load i32,i32*%n,align 4
%p=icmp sgt i32%o,-1
br i1%p,label%I,label%q
q:
%r=load i8*,i8**@_SMLZ4Size,align 8
store i8*%r,i8**%b,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**%c,align 8
%v=load i8*,i8**%b,align 8
store i8*null,i8**%b,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,[46x i8]}>,<{[4x i8],i32,[46x i8]}>*@B,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**%c,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=icmp sgt i32%o,268435455
br i1%J,label%P,label%K
K:
%L=call i8*@sml_alloc(i32 inreg%o)#0
%M=getelementptr inbounds i8,i8*%L,i64 -4
%N=bitcast i8*%M to i32*
store i32%o,i32*%N,align 4
store i8*%L,i8**%b,align 8
call void@sml_leave()#0
%O=invoke i32@prim_GenericOS_read(i32%l,i8*%L,i32 0,i32%o)
to label%ah unwind label%aV
P:
%Q=load i8*,i8**@_SMLZ4Size,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,[46x i8]}>,<{[4x i8],i32,[46x i8]}>*@z,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:
call void@sml_enter()#0
%ai=icmp sgt i32%O,-1
br i1%ai,label%as,label%aj
aj:
store i8*null,i8**%b,align 8
%ak=call fastcc i8*@_SMLFN16SMLSharp__Runtime9OS__SysErrE(i32 inreg 0)
store i8*%ak,i8**%b,align 8
%al=call i8*@sml_alloc(i32 inreg 60)#0
%am=getelementptr inbounds i8,i8*%al,i64 -4
%an=bitcast i8*%am to i32*
store i32 1342177336,i32*%an,align 4
%ao=getelementptr inbounds i8,i8*%al,i64 56
%ap=bitcast i8*%ao to i32*
store i32 1,i32*%ap,align 4
%aq=load i8*,i8**%b,align 8
%ar=bitcast i8*%al to i8**
store i8*%aq,i8**%ar,align 8
call void@sml_raise(i8*inreg%al)#1
unreachable
as:
%at=icmp eq i32%O,%o
br i1%at,label%au,label%aw
au:
%av=load i8*,i8**%b,align 8
ret i8*%av
aw:
%ax=icmp sgt i32%O,268435455
br i1%ax,label%aD,label%ay
ay:
%az=call i8*@sml_alloc(i32 inreg%O)#0
%aA=getelementptr inbounds i8,i8*%az,i64 -4
%aB=bitcast i8*%aA to i32*
store i32%O,i32*%aB,align 4
%aC=load i8*,i8**%b,align 8
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%az,i8*%aC,i32%O,i1 false)
ret i8*%az
aD:
%aE=load i8*,i8**@_SMLZ4Size,align 8
store i8*%aE,i8**%b,align 8
%aF=call i8*@sml_alloc(i32 inreg 20)#0
%aG=getelementptr inbounds i8,i8*%aF,i64 -4
%aH=bitcast i8*%aG to i32*
store i32 1342177296,i32*%aH,align 4
store i8*%aF,i8**%c,align 8
%aI=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aJ=bitcast i8*%aF to i8**
store i8*%aI,i8**%aJ,align 8
%aK=getelementptr inbounds i8,i8*%aF,i64 8
%aL=bitcast i8*%aK to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[46x i8]}>,<{[4x i8],i32,[46x i8]}>*@A,i64 0,i32 2,i64 0),i8**%aL,align 8
%aM=getelementptr inbounds i8,i8*%aF,i64 16
%aN=bitcast i8*%aM to i32*
store i32 3,i32*%aN,align 4
%aO=call i8*@sml_alloc(i32 inreg 60)#0
%aP=getelementptr inbounds i8,i8*%aO,i64 -4
%aQ=bitcast i8*%aP to i32*
store i32 1342177336,i32*%aQ,align 4
%aR=getelementptr inbounds i8,i8*%aO,i64 56
%aS=bitcast i8*%aR to i32*
store i32 1,i32*%aS,align 4
%aT=load i8*,i8**%c,align 8
%aU=bitcast i8*%aO to i8**
store i8*%aT,i8**%aU,align 8
call void@sml_raise(i8*inreg%aO)#1
unreachable
aV:
%aW=landingpad{i8*,i8*}
cleanup
%aX=extractvalue{i8*,i8*}%aW,1
call void@sml_enter()#0
%aY=call i8*@sml_unsave_exn(i8*inreg%aX)#0
resume{i8*,i8*}%aW
}
define fastcc i32@_SMLFN13SMLSharp__OSIO7readArrE(i8*inreg%a)#2 gc"smlsharp"personality i32(...)*@sml_personality{
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 i32*
%k=load i32,i32*%j,align 4
%l=getelementptr inbounds i8,i8*%h,i64 8
%m=bitcast i8*%l to i8**
%n=load i8*,i8**%m,align 8
%o=call fastcc i8*@_SMLFN15Word8ArraySlice4baseE(i8*inreg%n)
%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*%o,i64 8
%s=bitcast i8*%r to i32*
%t=load i32,i32*%s,align 4
%u=getelementptr inbounds i8,i8*%o,i64 12
%v=bitcast i8*%u to i32*
%w=load i32,i32*%v,align 4
call void@sml_leave()#0
%x=invoke i32@prim_GenericOS_read(i32%k,i8*%q,i32%t,i32%w)
to label%y unwind label%K
y:
call void@sml_enter()#0
store i8*null,i8**%b,align 8
%z=icmp sgt i32%x,-1
br i1%z,label%J,label%A
A:
%B=call fastcc i8*@_SMLFN16SMLSharp__Runtime9OS__SysErrE(i32 inreg 0)
store i8*%B,i8**%b,align 8
%C=call i8*@sml_alloc(i32 inreg 60)#0
%D=getelementptr inbounds i8,i8*%C,i64 -4
%E=bitcast i8*%D to i32*
store i32 1342177336,i32*%E,align 4
%F=getelementptr inbounds i8,i8*%C,i64 56
%G=bitcast i8*%F to i32*
store i32 1,i32*%G,align 4
%H=load i8*,i8**%b,align 8
%I=bitcast i8*%C to i8**
store i8*%H,i8**%I,align 8
call void@sml_raise(i8*inreg%C)#1
unreachable
J:
ret i32%x
K:
%L=landingpad{i8*,i8*}
cleanup
%M=extractvalue{i8*,i8*}%L,1
call void@sml_enter()#0
%N=call i8*@sml_unsave_exn(i8*inreg%M)#0
resume{i8*,i8*}%L
}
define fastcc i32@_SMLFN13SMLSharp__OSIO8writeVecE(i8*inreg%a)#2 gc"smlsharp"personality i32(...)*@sml_personality{
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 i32*
%k=load i32,i32*%j,align 4
%l=getelementptr inbounds i8,i8*%h,i64 8
%m=bitcast i8*%l to i8**
%n=load i8*,i8**%m,align 8
%o=call fastcc i8*@_SMLFN16Word8VectorSlice4baseE(i8*inreg%n)
%p=bitcast i8*%o to i8**
%q=load i8*,i8**%p,align 8
%r=getelementptr inbounds i8,i8*%o,i64 8
%s=bitcast i8*%r to i32*
%t=load i32,i32*%s,align 4
%u=getelementptr inbounds i8,i8*%o,i64 12
%v=bitcast i8*%u to i32*
%w=load i32,i32*%v,align 4
call void@sml_leave()#0
%x=invoke i32@prim_GenericOS_write(i32%k,i8*%q,i32%t,i32%w)
to label%y unwind label%K
y:
call void@sml_enter()#0
%z=icmp sgt i32%x,-1
br i1%z,label%J,label%A
A:
%B=call fastcc i8*@_SMLFN16SMLSharp__Runtime9OS__SysErrE(i32 inreg 0)
store i8*%B,i8**%b,align 8
%C=call i8*@sml_alloc(i32 inreg 60)#0
%D=getelementptr inbounds i8,i8*%C,i64 -4
%E=bitcast i8*%D to i32*
store i32 1342177336,i32*%E,align 4
%F=getelementptr inbounds i8,i8*%C,i64 56
%G=bitcast i8*%F to i32*
store i32 1,i32*%G,align 4
%H=load i8*,i8**%b,align 8
%I=bitcast i8*%C to i8**
store i8*%H,i8**%I,align 8
call void@sml_raise(i8*inreg%C)#1
unreachable
J:
ret i32%x
K:
%L=landingpad{i8*,i8*}
cleanup
%M=extractvalue{i8*,i8*}%L,1
call void@sml_enter()#0
%N=call i8*@sml_unsave_exn(i8*inreg%M)#0
resume{i8*,i8*}%L
}
define fastcc i32@_SMLFN13SMLSharp__OSIO8writeArrE(i8*inreg%a)#2 gc"smlsharp"personality i32(...)*@sml_personality{
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 i32*
%k=load i32,i32*%j,align 4
%l=getelementptr inbounds i8,i8*%h,i64 8
%m=bitcast i8*%l to i8**
%n=load i8*,i8**%m,align 8
%o=call fastcc i8*@_SMLFN15Word8ArraySlice4baseE(i8*inreg%n)
%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*%o,i64 8
%s=bitcast i8*%r to i32*
%t=load i32,i32*%s,align 4
%u=getelementptr inbounds i8,i8*%o,i64 12
%v=bitcast i8*%u to i32*
%w=load i32,i32*%v,align 4
call void@sml_leave()#0
%x=invoke i32@prim_GenericOS_write(i32%k,i8*%q,i32%t,i32%w)
to label%y unwind label%K
y:
call void@sml_enter()#0
store i8*null,i8**%b,align 8
%z=icmp sgt i32%x,-1
br i1%z,label%J,label%A
A:
%B=call fastcc i8*@_SMLFN16SMLSharp__Runtime9OS__SysErrE(i32 inreg 0)
store i8*%B,i8**%b,align 8
%C=call i8*@sml_alloc(i32 inreg 60)#0
%D=getelementptr inbounds i8,i8*%C,i64 -4
%E=bitcast i8*%D to i32*
store i32 1342177336,i32*%E,align 4
%F=getelementptr inbounds i8,i8*%C,i64 56
%G=bitcast i8*%F to i32*
store i32 1,i32*%G,align 4
%H=load i8*,i8**%b,align 8
%I=bitcast i8*%C to i8**
store i8*%H,i8**%I,align 8
call void@sml_raise(i8*inreg%C)#1
unreachable
J:
ret i32%x
K:
%L=landingpad{i8*,i8*}
cleanup
%M=extractvalue{i8*,i8*}%L,1
call void@sml_enter()#0
%N=call i8*@sml_unsave_exn(i8*inreg%M)#0
resume{i8*,i8*}%L
}
define fastcc i32@_SMLFN13SMLSharp__OSIO4hashE(i32 inreg%a)#4 gc"smlsharp"{
ret i32%a
}
define fastcc i32@_SMLFN13SMLSharp__OSIO4kindE(i32 inreg%a)local_unnamed_addr#2 gc"smlsharp"{
%b=load atomic i32,i32*@sml_check_flag unordered,align 4
%c=icmp eq i32%b,0
br i1%c,label%e,label%d
d:
tail call void@sml_check(i32 inreg%b)
br label%e
e:
%f=load i8**,i8***bitcast(i8**getelementptr inbounds(<{[4x i8],i32,[2x i8*]}>,<{[4x i8],i32,[2x i8*]}>*@_SML_gvar741b333153f7e9d0_SMLSharp_OSIO,i64 0,i32 2,i64 0)to i8***),align 8
%g=load i8*,i8**%f,align 8
%h=tail call fastcc i32@_SMLLLN13SMLSharp__OSIO4kindE_103(i8*inreg%g,i32 inreg%a)
ret i32%h
}
define fastcc i32@_SMLFN13SMLSharp__OSIO2ST5isRegE(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,[2x i8*]}>,<{[4x i8],i32,[2x i8*]}>*@_SML_gvar741b333153f7e9d0_SMLSharp_OSIO,i64 0,i32 2,i64 1)to i8***),align 8
%k=load i8*,i8**%j,align 8
%l=getelementptr inbounds i8,i8*%h,i64 12
%m=bitcast i8*%l to i32*
%n=load i32,i32*%m,align 4
%o=bitcast i8*%k to i32*
%p=load i32,i32*%o,align 4
%q=and i32%p,%n
%r=getelementptr inbounds i8,i8*%k,i64 4
%s=bitcast i8*%r to i32*
%t=load i32,i32*%s,align 4
%u=icmp eq i32%q,%t
%v=zext i1%u to i32
ret i32%v
}
define internal fastcc i8*@_SMLLLN13SMLSharp__OSIO7compareE_155(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=getelementptr inbounds i8,i8*%b,i64 4
%f=bitcast i8*%e to i32*
%g=load i32,i32*%f,align 4
%h=icmp slt i32%d,%g
%i=icmp sgt i32%d,%g
%j=zext i1%i to i32
%k=select i1%h,i32 2,i32%j
%l=tail call i8*@sml_alloc(i32 inreg 4)#0
%m=bitcast i8*%l to i32*
%n=getelementptr inbounds i8,i8*%l,i64 -4
%o=bitcast i8*%n to i32*
store i32 4,i32*%o,align 4
store i32%k,i32*%m,align 4
ret i8*%l
}
define internal fastcc i8*@_SMLLLN13SMLSharp__OSIO4statE_156(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN13SMLSharp__OSIO4statE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN13SMLSharp__OSIO5lstatE_157(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN13SMLSharp__OSIO5lstatE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN13SMLSharp__OSIO5fstatE_158(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*@_SMLFN13SMLSharp__OSIO5fstatE(i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLLN13SMLSharp__OSIO4kindE_159(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 i32@_SMLLLN13SMLSharp__OSIO4kindE_103(i8*inreg%a,i32 inreg%d)
%f=tail call i8*@sml_alloc(i32 inreg 4)#0
%g=bitcast i8*%f to i32*
%h=getelementptr inbounds i8,i8*%f,i64 -4
%i=bitcast i8*%h to i32*
store i32 4,i32*%i,align 4
store i32%e,i32*%g,align 4
ret i8*%f
}
define internal fastcc i8*@_SMLLLN13SMLSharp__OSIO8pollDescE_160(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=tail call fastcc i8*@_SMLFN13SMLSharp__OSIO8pollDescE(i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLLN13SMLSharp__OSIO12pollToIODescE_161(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=tail call 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%d,i32*%f,align 4
ret i8*%e
}
define internal fastcc i8*@_SMLLLN13SMLSharp__OSIO6pollInE_162(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN13SMLSharp__OSIO6pollInE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN13SMLSharp__OSIO7pollOutE_163(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN13SMLSharp__OSIO7pollOutE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN13SMLSharp__OSIO7pollPriE_164(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN13SMLSharp__OSIO7pollPriE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN13SMLSharp__OSIO4isInE_165(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=getelementptr inbounds i8,i8*%b,i64 4
%d=bitcast i8*%c to i32*
%e=load i32,i32*%d,align 4
%f=icmp ugt i32%e,1
%g=zext i1%f to i32
%h=tail call i8*@sml_alloc(i32 inreg 4)#0
%i=bitcast i8*%h to i32*
%j=getelementptr inbounds i8,i8*%h,i64 -4
%k=bitcast i8*%j to i32*
store i32 4,i32*%k,align 4
store i32%g,i32*%i,align 4
ret i8*%h
}
define internal fastcc i8*@_SMLLLN13SMLSharp__OSIO5isOutE_166(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=getelementptr inbounds i8,i8*%b,i64 4
%d=bitcast i8*%c to i32*
%e=load i32,i32*%d,align 4
%f=and i32%e,-3
%g=icmp ne i32%f,0
%h=zext i1%g to i32
%i=tail call i8*@sml_alloc(i32 inreg 4)#0
%j=bitcast i8*%i to i32*
%k=getelementptr inbounds i8,i8*%i,i64 -4
%l=bitcast i8*%k to i32*
store i32 4,i32*%l,align 4
store i32%h,i32*%j,align 4
ret i8*%i
}
define internal fastcc i8*@_SMLLLN13SMLSharp__OSIO5isPriE_167(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=getelementptr inbounds i8,i8*%b,i64 4
%d=bitcast i8*%c to i32*
%e=load i32,i32*%d,align 4
%f=and i32%e,-5
%g=icmp ne i32%f,0
%h=zext i1%g to i32
%i=tail call i8*@sml_alloc(i32 inreg 4)#0
%j=bitcast i8*%i to i32*
%k=getelementptr inbounds i8,i8*%i,i64 -4
%l=bitcast i8*%k to i32*
store i32 4,i32*%l,align 4
store i32%h,i32*%j,align 4
ret i8*%i
}
define internal fastcc i8*@_SMLLLN13SMLSharp__OSIO14infoToPollDescE_168(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
ret i8*%b
}
define internal fastcc i8*@_SMLLLN13SMLSharp__OSIO4pollE_169(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN13SMLSharp__OSIO4pollE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN13SMLSharp__OSIO2ST5isRegE_170(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=getelementptr inbounds i8,i8*%b,i64 12
%d=bitcast i8*%c to i32*
%e=load i32,i32*%d,align 4
%f=bitcast i8*%a to i32*
%g=load i32,i32*%f,align 4
%h=and i32%g,%e
%i=getelementptr inbounds i8,i8*%a,i64 4
%j=bitcast i8*%i to i32*
%k=load i32,i32*%j,align 4
%l=icmp eq i32%h,%k
%m=zext i1%l to i32
%n=tail call i8*@sml_alloc(i32 inreg 4)#0
%o=bitcast i8*%n to i32*
%p=getelementptr inbounds i8,i8*%n,i64 -4
%q=bitcast i8*%p to i32*
store i32 4,i32*%q,align 4
store i32%m,i32*%o,align 4
ret i8*%n
}
define internal fastcc i8*@_SMLLLN13SMLSharp__OSIO2ST4sizeE_171(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=getelementptr inbounds i8,i8*%b,i64 20
%d=bitcast i8*%c to i32*
%e=load i32,i32*%d,align 4
%f=tail call i8*@sml_alloc(i32 inreg 4)#0
%g=bitcast i8*%f to i32*
%h=getelementptr inbounds i8,i8*%f,i64 -4
%i=bitcast i8*%h to i32*
store i32 4,i32*%i,align 4
store i32%e,i32*%g,align 4
ret i8*%f
}
define internal fastcc i8*@_SMLLLN13SMLSharp__OSIO5closeE_172(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@_SMLFN13SMLSharp__OSIO5closeE(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*@_SMLLLN13SMLSharp__OSIO5openfE_173(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLFN13SMLSharp__OSIO5openfE(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*@_SMLLLN13SMLSharp__OSIO5lseekE_174(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLFN13SMLSharp__OSIO5lseekE(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*@_SMLLLN13SMLSharp__OSIO7readVecE_175(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN13SMLSharp__OSIO7readVecE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN13SMLSharp__OSIO7readArrE_176(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLFN13SMLSharp__OSIO7readArrE(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*@_SMLLLN13SMLSharp__OSIO8writeVecE_177(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLFN13SMLSharp__OSIO8writeVecE(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*@_SMLLLN13SMLSharp__OSIO8writeArrE_178(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLFN13SMLSharp__OSIO8writeArrE(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*@_SMLLLN13SMLSharp__OSIO4hashE_179(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=tail call 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%d,i32*%f,align 4
ret i8*%e
}
declare void@llvm.memcpy.p0i8.p0i8.i32(i8*,i8*,i32,i1)#0
attributes#0={nounwind}
attributes#1={noreturn}
attributes#2={uwtable}
attributes#3={noreturn nounwind}
attributes#4={nounwind uwtable}
