@sml_check_flag=external local_unnamed_addr global i32
@_SMLZN13SMLSharp__OSIO6S__IFMTE=external local_unnamed_addr global i32
@_SMLZN13SMLSharp__OSIO7S__IFDIRE=external local_unnamed_addr global i32
@_SMLZN13SMLSharp__OSIO7S__IFLNKE=external local_unnamed_addr global i32
@_SMLZN13SMLSharp__OSIO7S__IRUSRE=external local_unnamed_addr global i32
@_SMLZN13SMLSharp__OSIO7S__IWUSRE=external local_unnamed_addr global i32
@_SMLZN13SMLSharp__OSIO7S__IXUSRE=external local_unnamed_addr global i32
@_SMLZN16SMLSharp__Runtime6SysErrE=external local_unnamed_addr global i8*
@_SMLZ5Match=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(i8*(i8*)*@_SMLFN18SMLSharp__OSFileSys7openDirE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN18SMLSharp__OSFileSys7openDirE_165 to void(...)*),i32 -2147483647}>,align 8
@b=private unnamed_addr constant<{[4x i8],i32,[50x i8]}><{[4x i8]zeroinitializer,i32 -2147483598,[50x i8]c"src/basis/main/SMLSharp_OSFileSys.sml:50.17(1388)\00"}>,align 8
@c=private unnamed_addr constant<{[4x i8],i32,[28x i8]}><{[4x i8]zeroinitializer,i32 -2147483620,[28x i8]c"readdir on closed dirstream\00"}>,align 8
@d=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,[28x i8]}>,<{[4x i8],i32,[28x i8]}>*@c,i32 0,i32 0,i32 0),i32 8),i8*null,i32 3}>,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*)*@_SMLFN18SMLSharp__OSFileSys7readDirE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN18SMLSharp__OSFileSys7readDirE_166 to void(...)*),i32 -2147483647}>,align 8
@f=private unnamed_addr constant<{[4x i8],i32,[50x i8]}><{[4x i8]zeroinitializer,i32 -2147483598,[50x i8]c"src/basis/main/SMLSharp_OSFileSys.sml:55.17(1559)\00"}>,align 8
@g=private unnamed_addr constant<{[4x i8],i32,[30x i8]}><{[4x i8]zeroinitializer,i32 -2147483618,[30x i8]c"rewinddir on closed dirstream\00"}>,align 8
@h=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,[30x i8]}>,<{[4x i8],i32,[30x i8]}>*@g,i32 0,i32 0,i32 0),i32 8),i8*null,i32 3}>,align 8
@i=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLFN18SMLSharp__OSFileSys9rewindDirE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN18SMLSharp__OSFileSys9rewindDirE_167 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(void(i8*)*@_SMLFN18SMLSharp__OSFileSys8closeDirE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN18SMLSharp__OSFileSys8closeDirE_168 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(void(i8*)*@_SMLFN18SMLSharp__OSFileSys5chDirE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN18SMLSharp__OSFileSys5chDirE_169 to void(...)*),i32 -2147483647}>,align 8
@l=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i32)*@_SMLFN18SMLSharp__OSFileSys6getDirE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN18SMLSharp__OSFileSys6getDirE_170 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(void(i8*)*@_SMLFN18SMLSharp__OSFileSys5mkDirE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN18SMLSharp__OSFileSys5mkDirE_171 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(void(i8*)*@_SMLFN18SMLSharp__OSFileSys5rmDirE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN18SMLSharp__OSFileSys5rmDirE_172 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(i32(i8*)*@_SMLFN18SMLSharp__OSFileSys5isDirE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN18SMLSharp__OSFileSys5isDirE_173 to void(...)*),i32 -2147483647}>,align 8
@p=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i8*)*@_SMLFN18SMLSharp__OSFileSys6isLinkE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN18SMLSharp__OSFileSys6isLinkE_174 to void(...)*),i32 -2147483647}>,align 8
@q=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN18SMLSharp__OSFileSys8readLinkE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN18SMLSharp__OSFileSys8readLinkE_175 to void(...)*),i32 -2147483647}>,align 8
@r=private unnamed_addr constant<{[4x i8],i32,[51x i8]}><{[4x i8]zeroinitializer,i32 -2147483597,[51x i8]c"src/basis/main/SMLSharp_OSFileSys.sml:132.18(3852)\00"}>,align 8
@s=private unnamed_addr constant<{[4x i8],i32,[15x i8]}><{[4x i8]zeroinitializer,i32 -2147483633,[15x i8]c"too many links\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,[15x i8]}>,<{[4x i8],i32,[15x 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*)*@_SMLFN18SMLSharp__OSFileSys8fullPathE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN18SMLSharp__OSFileSys8fullPathE_176 to void(...)*),i32 -2147483647}>,align 8
@v=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN18SMLSharp__OSFileSys8realPathE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN18SMLSharp__OSFileSys8realPathE_177 to void(...)*),i32 -2147483647}>,align 8
@w=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN18SMLSharp__OSFileSys7modTimeE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN18SMLSharp__OSFileSys7modTimeE_178 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*)*@_SMLFN18SMLSharp__OSFileSys8fileSizeE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN18SMLSharp__OSFileSys8fileSizeE_179 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(void(i8*)*@_SMLFN18SMLSharp__OSFileSys7setTimeE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN18SMLSharp__OSFileSys7setTimeE_180 to void(...)*),i32 -2147483647}>,align 8
@z=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLFN18SMLSharp__OSFileSys6removeE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN18SMLSharp__OSFileSys6removeE_181 to void(...)*),i32 -2147483647}>,align 8
@A=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLFN18SMLSharp__OSFileSys6renameE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN18SMLSharp__OSFileSys6renameE_182 to void(...)*),i32 -2147483647}>,align 8
@B=private unnamed_addr constant<{[4x i8],i32,[6x i8]}><{[4x i8]zeroinitializer,i32 -2147483642,[6x i8]c"noent\00"}>,align 8
@C=private unnamed_addr constant<{[4x i8],i32,[5x i8]}><{[4x i8]zeroinitializer,i32 -2147483643,[5x i8]c"perm\00"}>,align 8
@D=private unnamed_addr constant<{[4x i8],i32,[51x i8]}><{[4x i8]zeroinitializer,i32 -2147483597,[51x i8]c"src/basis/main/SMLSharp_OSFileSys.sml:219.29(6618)\00"}>,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*)*@_SMLFN18SMLSharp__OSFileSys6accessE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN18SMLSharp__OSFileSys6accessE_183 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)*@_SMLFN18SMLSharp__OSFileSys7tmpNameE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN18SMLSharp__OSFileSys7tmpNameE_184 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(i8*)*@_SMLFN18SMLSharp__OSFileSys4hashE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN18SMLSharp__OSFileSys4hashE_185 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*)*@_SMLFN18SMLSharp__OSFileSys7compareE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN18SMLSharp__OSFileSys7compareE_186 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN18SMLSharp__OSFileSys7openDirE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@a,i64 0,i32 2)to i8*)
@_SMLZN18SMLSharp__OSFileSys7readDirE=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*)
@_SMLZN18SMLSharp__OSFileSys9rewindDirE=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*)
@_SMLZN18SMLSharp__OSFileSys8closeDirE=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*)
@_SMLZN18SMLSharp__OSFileSys5chDirE=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*)
@_SMLZN18SMLSharp__OSFileSys6getDirE=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*)
@_SMLZN18SMLSharp__OSFileSys5mkDirE=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*)
@_SMLZN18SMLSharp__OSFileSys5rmDirE=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*)
@_SMLZN18SMLSharp__OSFileSys5isDirE=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*)
@_SMLZN18SMLSharp__OSFileSys6isLinkE=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*)
@_SMLZN18SMLSharp__OSFileSys8readLinkE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@q,i64 0,i32 2)to i8*)
@_SMLZN18SMLSharp__OSFileSys8fullPathE=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*)
@_SMLZN18SMLSharp__OSFileSys8realPathE=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*)
@_SMLZN18SMLSharp__OSFileSys7modTimeE=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*)
@_SMLZN18SMLSharp__OSFileSys8fileSizeE=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*)
@_SMLZN18SMLSharp__OSFileSys7setTimeE=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*)
@_SMLZN18SMLSharp__OSFileSys6removeE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@z,i64 0,i32 2)to i8*)
@_SMLZN18SMLSharp__OSFileSys6renameE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@A,i64 0,i32 2)to i8*)
@_SMLZN18SMLSharp__OSFileSys6accessE=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*)
@_SMLZN18SMLSharp__OSFileSys7tmpNameE=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*)
@_SMLZN18SMLSharp__OSFileSys4hashE=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*)
@_SMLZN18SMLSharp__OSFileSys7compareE=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*)
@_SML_ftabb802741546ad758e_SMLSharp_OSFileSys=external global i8
@I=private unnamed_addr global i8 0
@J=private unnamed_addr constant[3x i32*][i32*@_SMLZN13SMLSharp__OSIO7S__IXUSRE,i32*@_SMLZN13SMLSharp__OSIO7S__IRUSRE,i32*@_SMLZN13SMLSharp__OSIO7S__IWUSRE]
declare void@llvm.gcroot(i8**,i8*)#0
declare i32@prim_GenericOS_chdir(i8*)local_unnamed_addr
declare i32@prim_GenericOS_closedir(i8*)local_unnamed_addr
declare i8*@prim_GenericOS_getcwd()local_unnamed_addr
declare i32@prim_GenericOS_mkdir(i8*,i32)local_unnamed_addr
declare i8*@prim_GenericOS_opendir(i8*)local_unnamed_addr
declare i8*@prim_GenericOS_readdir(i8*)local_unnamed_addr
declare i8*@prim_GenericOS_readlink(i8*)local_unnamed_addr
declare void@prim_GenericOS_rewinddir(i8*)local_unnamed_addr
declare i32@prim_GenericOS_utime(i8*,i32,i32)local_unnamed_addr
declare i8*@prim_tmpName()local_unnamed_addr
declare i32@rename(i8*,i8*)local_unnamed_addr#0
declare i32@rmdir(i8*)local_unnamed_addr#0
declare i8*@sml_alloc(i32 inreg)local_unnamed_addr#0
declare void@sml_check(i32 inreg)local_unnamed_addr
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 void@sml_matchcomp_bug()local_unnamed_addr
declare i32@sml_obj_equal(i8*inreg,i8*inreg)local_unnamed_addr#0
declare i32@sml_personality(...)#0
declare void@sml_raise(i8*inreg)local_unnamed_addr#1
declare i8*@sml_unsave_exn(i8*inreg)local_unnamed_addr#0
declare i32@unlink(i8*)local_unnamed_addr#0
declare i8*@_SMLFN13SMLSharp__OSIO4statE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN13SMLSharp__OSIO5lstatE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN16SMLSharp__Runtime14str__new__optionE(i64 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN16SMLSharp__Runtime4freeE(i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN16SMLSharp__Runtime8syserrorE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN16SMLSharp__Runtime9OS__SysErrE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN22SMLSharp__SMLNJ__OS__Path10fromStringE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i32@_SMLFN22SMLSharp__SMLNJ__OS__Path10isAbsoluteE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN22SMLSharp__SMLNJ__OS__Path10mkRelativeE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN22SMLSharp__SMLNJ__OS__Path8toStringE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN4List1_VE(i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN4List3revE(i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN4Time11fromSecondsE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN4Time3nowE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN4Time9toSecondsE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i32@_SMLFN6IntInf5toIntE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN6IntInf7fromIntE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main5d4c3ea7bd6f9540_IntInf()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main03d87556ec7f64b2_List()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main23870d5de35409ab_Time()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main741b333153f7e9d0_SMLSharp_OSIO()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main00d884c96265bfea_SMLSharp_Runtime()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_maind140b1de0a56705c_os_path()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_load5d4c3ea7bd6f9540_IntInf(i8*)local_unnamed_addr
declare void@_SML_load03d87556ec7f64b2_List(i8*)local_unnamed_addr
declare void@_SML_load23870d5de35409ab_Time(i8*)local_unnamed_addr
declare void@_SML_load741b333153f7e9d0_SMLSharp_OSIO(i8*)local_unnamed_addr
declare void@_SML_load00d884c96265bfea_SMLSharp_Runtime(i8*)local_unnamed_addr
declare void@_SML_loadd140b1de0a56705c_os_path(i8*)local_unnamed_addr
define private void@_SML_tabbb802741546ad758e_SMLSharp_OSFileSys()#3{
unreachable
}
define void@_SML_loadb802741546ad758e_SMLSharp_OSFileSys(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_load03d87556ec7f64b2_List(i8*%a)#0
tail call void@_SML_load23870d5de35409ab_Time(i8*%a)#0
tail call void@_SML_load741b333153f7e9d0_SMLSharp_OSIO(i8*%a)#0
tail call void@_SML_load00d884c96265bfea_SMLSharp_Runtime(i8*%a)#0
tail call void@_SML_loadd140b1de0a56705c_os_path(i8*%a)#0
tail call void@sml_gcroot(i8*%a,void()*@_SML_tabbb802741546ad758e_SMLSharp_OSFileSys,i8*@_SML_ftabb802741546ad758e_SMLSharp_OSFileSys,i8*null)#0
ret void
}
define void@_SML_mainb802741546ad758e_SMLSharp_OSFileSys()local_unnamed_addr#2 gc"smlsharp"{
%a=load i8,i8*@I,align 1
%b=and i8%a,2
%c=icmp eq i8%b,0
br i1%c,label%e,label%d
d:
ret void
e:
store i8 3,i8*@I,align 1
tail call void@_SML_main5d4c3ea7bd6f9540_IntInf()#2
tail call void@_SML_main03d87556ec7f64b2_List()#2
tail call void@_SML_main23870d5de35409ab_Time()#2
tail call void@_SML_main741b333153f7e9d0_SMLSharp_OSIO()#2
tail call void@_SML_main00d884c96265bfea_SMLSharp_Runtime()#2
tail call void@_SML_maind140b1de0a56705c_os_path()#2
br label%d
}
define fastcc i8*@_SMLFN18SMLSharp__OSFileSys7openDirE(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]
call void@sml_leave()#0
%j=invoke i8*@prim_GenericOS_opendir(i8*%h)
to label%k unwind label%J
k:
call void@sml_enter()#0
store i8*null,i8**%b,align 8
%l=icmp eq i8*%j,null
br i1%l,label%m,label%v
m:
%n=call fastcc i8*@_SMLFN16SMLSharp__Runtime9OS__SysErrE(i32 inreg 0)
store i8*%n,i8**%b,align 8
%o=call i8*@sml_alloc(i32 inreg 60)#0
%p=getelementptr inbounds i8,i8*%o,i64 -4
%q=bitcast i8*%p to i32*
store i32 1342177336,i32*%q,align 4
%r=getelementptr inbounds i8,i8*%o,i64 56
%s=bitcast i8*%r to i32*
store i32 1,i32*%s,align 4
%t=load i8*,i8**%b,align 8
%u=bitcast i8*%o to i8**
store i8*%t,i8**%u,align 8
call void@sml_raise(i8*inreg%o)#1
unreachable
v:
%w=call i8*@sml_alloc(i32 inreg 4)#0
%x=bitcast i8*%w to i32*
%y=getelementptr inbounds i8,i8*%w,i64 -4
%z=bitcast i8*%y to i32*
store i32 536870916,i32*%z,align 4
store i8*%w,i8**%b,align 8
store i32 1,i32*%x,align 4
%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=bitcast i8*%A to i8**
store i8*%j,i8**%D,align 8
%E=load i8*,i8**%b,align 8
%F=getelementptr inbounds i8,i8*%A,i64 8
%G=bitcast i8*%F to i8**
store i8*%E,i8**%G,align 8
%H=getelementptr inbounds i8,i8*%A,i64 16
%I=bitcast i8*%H to i32*
store i32 2,i32*%I,align 4
ret i8*%A
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
}
define fastcc i8*@_SMLFN18SMLSharp__OSFileSys7readDirE(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=getelementptr inbounds i8,i8*%i,i64 8
%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%A,label%p
p:
%q=bitcast i8*%i to i8**
%r=load i8*,i8**%q,align 8
call void@sml_leave()#0
%s=invoke i8*@prim_GenericOS_readdir(i8*%r)
to label%t unwind label%w
t:
call void@sml_enter()#0
%u=ptrtoint i8*%s to i64
%v=tail call fastcc i8*@_SMLFN16SMLSharp__Runtime14str__new__optionE(i64 inreg%u)
ret i8*%v
w:
%x=landingpad{i8*,i8*}
cleanup
%y=extractvalue{i8*,i8*}%x,1
call void@sml_enter()#0
%z=call i8*@sml_unsave_exn(i8*inreg%y)#0
resume{i8*,i8*}%x
A:
%B=load i8*,i8**@_SMLZN16SMLSharp__Runtime6SysErrE,align 8
store i8*%B,i8**%b,align 8
%C=call i8*@sml_alloc(i32 inreg 28)#0
%D=getelementptr inbounds i8,i8*%C,i64 -4
%E=bitcast i8*%D to i32*
store i32 1342177304,i32*%E,align 4
store i8*%C,i8**%c,align 8
%F=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%G=bitcast i8*%C to i8**
store i8*%F,i8**%G,align 8
%H=getelementptr inbounds i8,i8*%C,i64 8
%I=bitcast i8*%H to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[50x i8]}>,<{[4x i8],i32,[50x i8]}>*@b,i64 0,i32 2,i64 0),i8**%I,align 8
%J=getelementptr inbounds i8,i8*%C,i64 16
%K=bitcast i8*%J to i8**
store i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,i8*,i32}>,<{[4x i8],i32,i8*,i8*,i32}>*@d,i64 0,i32 2)to i8*),i8**%K,align 8
%L=getelementptr inbounds i8,i8*%C,i64 24
%M=bitcast i8*%L to i32*
store i32 7,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 fastcc void@_SMLFN18SMLSharp__OSFileSys9rewindDirE(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=getelementptr inbounds i8,i8*%i,i64 8
%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%x,label%p
p:
%q=bitcast i8*%i to i8**
%r=load i8*,i8**%q,align 8
call void@sml_leave()#0
invoke void@prim_GenericOS_rewinddir(i8*%r)
to label%s unwind label%t
s:
call void@sml_enter()#0
ret void
t:
%u=landingpad{i8*,i8*}
cleanup
%v=extractvalue{i8*,i8*}%u,1
call void@sml_enter()#0
%w=call i8*@sml_unsave_exn(i8*inreg%v)#0
resume{i8*,i8*}%u
x:
%y=load i8*,i8**@_SMLZN16SMLSharp__Runtime6SysErrE,align 8
store i8*%y,i8**%b,align 8
%z=call i8*@sml_alloc(i32 inreg 28)#0
%A=getelementptr inbounds i8,i8*%z,i64 -4
%B=bitcast i8*%A to i32*
store i32 1342177304,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,[50x i8]}>,<{[4x i8],i32,[50x i8]}>*@f,i64 0,i32 2,i64 0),i8**%F,align 8
%G=getelementptr inbounds i8,i8*%z,i64 16
%H=bitcast i8*%G to i8**
store i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,i8*,i32}>,<{[4x i8],i32,i8*,i8*,i32}>*@h,i64 0,i32 2)to i8*),i8**%H,align 8
%I=getelementptr inbounds i8,i8*%z,i64 24
%J=bitcast i8*%I to i32*
store i32 7,i32*%J,align 4
%K=call i8*@sml_alloc(i32 inreg 60)#0
%L=getelementptr inbounds i8,i8*%K,i64 -4
%M=bitcast i8*%L to i32*
store i32 1342177336,i32*%M,align 4
%N=getelementptr inbounds i8,i8*%K,i64 56
%O=bitcast i8*%N to i32*
store i32 1,i32*%O,align 4
%P=load i8*,i8**%c,align 8
%Q=bitcast i8*%K to i8**
store i8*%P,i8**%Q,align 8
call void@sml_raise(i8*inreg%K)#1
unreachable
}
define fastcc void@_SMLFN18SMLSharp__OSFileSys8closeDirE(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]
%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
store i8*%n,i8**%b,align 8
%o=bitcast i8*%n to i32*
%p=load i32,i32*%o,align 4
%q=icmp eq i32%p,0
br i1%q,label%A,label%r
r:
call void@sml_leave()#0
%s=invoke i32@prim_GenericOS_closedir(i8*%k)
to label%t unwind label%w
t:
call void@sml_enter()#0
%u=bitcast i8**%b to i32**
%v=load i32*,i32**%u,align 8
store i32 0,i32*%v,align 4
ret void
w:
%x=landingpad{i8*,i8*}
cleanup
%y=extractvalue{i8*,i8*}%x,1
call void@sml_enter()#0
%z=call i8*@sml_unsave_exn(i8*inreg%y)#0
resume{i8*,i8*}%x
A:
ret void
}
define fastcc void@_SMLFN18SMLSharp__OSFileSys5chDirE(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]
call void@sml_leave()#0
%j=invoke i32@prim_GenericOS_chdir(i8*%h)
to label%k unwind label%m
k:
call void@sml_enter()#0
store i8*null,i8**%b,align 8
%l=icmp sgt i32%j,-1
br i1%l,label%z,label%q
m:
%n=landingpad{i8*,i8*}
cleanup
%o=extractvalue{i8*,i8*}%n,1
call void@sml_enter()#0
%p=call i8*@sml_unsave_exn(i8*inreg%o)#0
resume{i8*,i8*}%n
q:
%r=call fastcc i8*@_SMLFN16SMLSharp__Runtime9OS__SysErrE(i32 inreg 0)
store i8*%r,i8**%b,align 8
%s=call i8*@sml_alloc(i32 inreg 60)#0
%t=getelementptr inbounds i8,i8*%s,i64 -4
%u=bitcast i8*%t to i32*
store i32 1342177336,i32*%u,align 4
%v=getelementptr inbounds i8,i8*%s,i64 56
%w=bitcast i8*%v to i32*
store i32 1,i32*%w,align 4
%x=load i8*,i8**%b,align 8
%y=bitcast i8*%s to i8**
store i8*%x,i8**%y,align 8
call void@sml_raise(i8*inreg%s)#1
unreachable
z:
ret void
}
define fastcc i8*@_SMLFN18SMLSharp__OSFileSys6getDirE(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:
call void@sml_leave()#0
%h=invoke i8*@prim_GenericOS_getcwd()
to label%i unwind label%L
i:
call void@sml_enter()#0
%j=ptrtoint i8*%h to i64
%k=call fastcc i8*@_SMLFN16SMLSharp__Runtime14str__new__optionE(i64 inreg%j)
%l=icmp eq i8*%k,null
br i1%l,label%m,label%v
m:
%n=call fastcc i8*@_SMLFN16SMLSharp__Runtime9OS__SysErrE(i32 inreg 0)
store i8*%n,i8**%b,align 8
%o=call i8*@sml_alloc(i32 inreg 60)#0
%p=getelementptr inbounds i8,i8*%o,i64 -4
%q=bitcast i8*%p to i32*
store i32 1342177336,i32*%q,align 4
%r=getelementptr inbounds i8,i8*%o,i64 56
%s=bitcast i8*%r to i32*
store i32 1,i32*%s,align 4
%t=load i8*,i8**%b,align 8
%u=bitcast i8*%o to i8**
store i8*%t,i8**%u,align 8
call void@sml_raise(i8*inreg%o)#1
unreachable
v:
%w=bitcast i8*%k to i8**
%x=load i8*,i8**%w,align 8
store i8*%x,i8**%b,align 8
%y=call fastcc i8*@_SMLFN16SMLSharp__Runtime4freeE(i32 inreg 0,i32 inreg 1)
%z=getelementptr inbounds i8,i8*%y,i64 16
%A=bitcast i8*%z to i8*(i8*,i8*)**
%B=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%A,align 8
%C=bitcast i8*%y to i8**
%D=load i8*,i8**%C,align 8
store i8*%D,i8**%c,align 8
%E=call i8*@sml_alloc(i32 inreg 8)#0
%F=getelementptr inbounds i8,i8*%E,i64 -4
%G=bitcast i8*%F to i32*
store i32 8,i32*%G,align 4
%H=bitcast i8*%E to i64*
store i64%j,i64*%H,align 4
%I=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%J=call fastcc i8*%B(i8*inreg%I,i8*inreg%E)
%K=load i8*,i8**%b,align 8
ret i8*%K
L:
%M=landingpad{i8*,i8*}
cleanup
%N=extractvalue{i8*,i8*}%M,1
call void@sml_enter()#0
%O=call i8*@sml_unsave_exn(i8*inreg%N)#0
resume{i8*,i8*}%M
}
define fastcc void@_SMLFN18SMLSharp__OSFileSys5mkDirE(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]
call void@sml_leave()#0
%j=invoke i32@prim_GenericOS_mkdir(i8*%h,i32 511)
to label%k unwind label%m
k:
call void@sml_enter()#0
store i8*null,i8**%b,align 8
%l=icmp sgt i32%j,-1
br i1%l,label%z,label%q
m:
%n=landingpad{i8*,i8*}
cleanup
%o=extractvalue{i8*,i8*}%n,1
call void@sml_enter()#0
%p=call i8*@sml_unsave_exn(i8*inreg%o)#0
resume{i8*,i8*}%n
q:
%r=call fastcc i8*@_SMLFN16SMLSharp__Runtime9OS__SysErrE(i32 inreg 0)
store i8*%r,i8**%b,align 8
%s=call i8*@sml_alloc(i32 inreg 60)#0
%t=getelementptr inbounds i8,i8*%s,i64 -4
%u=bitcast i8*%t to i32*
store i32 1342177336,i32*%u,align 4
%v=getelementptr inbounds i8,i8*%s,i64 56
%w=bitcast i8*%v to i32*
store i32 1,i32*%w,align 4
%x=load i8*,i8**%b,align 8
%y=bitcast i8*%s to i8**
store i8*%x,i8**%y,align 8
call void@sml_raise(i8*inreg%s)#1
unreachable
z:
ret void
}
define fastcc void@_SMLFN18SMLSharp__OSFileSys5rmDirE(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]
call void@sml_leave()#0
%j=call i32@rmdir(i8*%h)
call void@sml_enter()#0
store i8*null,i8**%b,align 8
%k=icmp sgt i32%j,-1
br i1%k,label%u,label%l
l:
%m=call fastcc i8*@_SMLFN16SMLSharp__Runtime9OS__SysErrE(i32 inreg 0)
store i8*%m,i8**%b,align 8
%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**%b,align 8
%t=bitcast i8*%n to i8**
store i8*%s,i8**%t,align 8
call void@sml_raise(i8*inreg%n)#1
unreachable
u:
ret void
}
define fastcc i32@_SMLFN18SMLSharp__OSFileSys5isDirE(i8*inreg%a)#2 gc"smlsharp"{
i:
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%g,label%e
e:
call void@sml_check(i32 inreg%c)
%f=load i8*,i8**%b,align 8
br label%g
g:
%h=phi i8*[%f,%e],[%a,%i]
store i8*null,i8**%b,align 8
%j=call fastcc i8*@_SMLFN13SMLSharp__OSIO4statE(i8*inreg%h)
%k=getelementptr inbounds i8,i8*%j,i64 12
%l=bitcast i8*%k to i32*
%m=load i32,i32*%l,align 4
%n=load i32,i32*@_SMLZN13SMLSharp__OSIO6S__IFMTE,align 4
%o=and i32%n,%m
%p=load i32,i32*@_SMLZN13SMLSharp__OSIO7S__IFDIRE,align 4
%q=icmp eq i32%o,%p
%r=zext i1%q to i32
ret i32%r
}
define fastcc i32@_SMLFN18SMLSharp__OSFileSys6isLinkE(i8*inreg%a)#2 gc"smlsharp"{
i:
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%g,label%e
e:
call void@sml_check(i32 inreg%c)
%f=load i8*,i8**%b,align 8
br label%g
g:
%h=phi i8*[%f,%e],[%a,%i]
store i8*null,i8**%b,align 8
%j=call fastcc i8*@_SMLFN13SMLSharp__OSIO5lstatE(i8*inreg%h)
%k=getelementptr inbounds i8,i8*%j,i64 12
%l=bitcast i8*%k to i32*
%m=load i32,i32*%l,align 4
%n=load i32,i32*@_SMLZN13SMLSharp__OSIO6S__IFMTE,align 4
%o=and i32%n,%m
%p=load i32,i32*@_SMLZN13SMLSharp__OSIO7S__IFLNKE,align 4
%q=icmp eq i32%o,%p
%r=zext i1%q to i32
ret i32%r
}
define fastcc i8*@_SMLFN18SMLSharp__OSFileSys8readLinkE(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]
call void@sml_leave()#0
%j=invoke i8*@prim_GenericOS_readlink(i8*%h)
to label%k unwind label%w
k:
call void@sml_enter()#0
store i8*null,i8**%b,align 8
%l=icmp eq i8*%j,null
br i1%l,label%m,label%v
m:
%n=call fastcc i8*@_SMLFN16SMLSharp__Runtime9OS__SysErrE(i32 inreg 0)
store i8*%n,i8**%b,align 8
%o=call i8*@sml_alloc(i32 inreg 60)#0
%p=getelementptr inbounds i8,i8*%o,i64 -4
%q=bitcast i8*%p to i32*
store i32 1342177336,i32*%q,align 4
%r=getelementptr inbounds i8,i8*%o,i64 56
%s=bitcast i8*%r to i32*
store i32 1,i32*%s,align 4
%t=load i8*,i8**%b,align 8
%u=bitcast i8*%o to i8**
store i8*%t,i8**%u,align 8
call void@sml_raise(i8*inreg%o)#1
unreachable
v:
ret i8*%j
w:
%x=landingpad{i8*,i8*}
cleanup
%y=extractvalue{i8*,i8*}%x,1
call void@sml_enter()#0
%z=call i8*@sml_unsave_exn(i8*inreg%y)#0
resume{i8*,i8*}%x
}
define fastcc i8*@_SMLFN18SMLSharp__OSFileSys8fullPathE(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
%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%k,label%j
j:
call void@sml_check(i32 inreg%h)
br label%k
k:
call void@sml_leave()#0
%l=invoke i8*@prim_GenericOS_getcwd()
to label%m unwind label%hl
m:
call void@sml_enter()#0
%n=ptrtoint i8*%l to i64
%o=call fastcc i8*@_SMLFN16SMLSharp__Runtime14str__new__optionE(i64 inreg%n)
%p=icmp eq i8*%o,null
br i1%p,label%q,label%z
q:
store i8*null,i8**%b,align 8
%r=call fastcc i8*@_SMLFN16SMLSharp__Runtime9OS__SysErrE(i32 inreg 0)
store i8*%r,i8**%b,align 8
%s=call i8*@sml_alloc(i32 inreg 60)#0
%t=getelementptr inbounds i8,i8*%s,i64 -4
%u=bitcast i8*%t to i32*
store i32 1342177336,i32*%u,align 4
%v=getelementptr inbounds i8,i8*%s,i64 56
%w=bitcast i8*%v to i32*
store i32 1,i32*%w,align 4
%x=load i8*,i8**%b,align 8
%y=bitcast i8*%s to i8**
store i8*%x,i8**%y,align 8
call void@sml_raise(i8*inreg%s)#1
unreachable
z:
%A=bitcast i8*%o to i8**
%B=load i8*,i8**%A,align 8
store i8*%B,i8**%c,align 8
%C=call fastcc i8*@_SMLFN16SMLSharp__Runtime4freeE(i32 inreg 0,i32 inreg 1)
%D=getelementptr inbounds i8,i8*%C,i64 16
%E=bitcast i8*%D to i8*(i8*,i8*)**
%F=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%E,align 8
%G=bitcast i8*%C to i8**
%H=load i8*,i8**%G,align 8
store i8*%H,i8**%d,align 8
%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 8,i32*%K,align 4
%L=bitcast i8*%I to i64*
store i64%n,i64*%L,align 4
%M=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%N=call fastcc i8*%F(i8*inreg%M,i8*inreg%I)
store i8*null,i8**%c,align 8
%O=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%P=call fastcc i8*@_SMLFN22SMLSharp__SMLNJ__OS__Path10fromStringE(i8*inreg%O)
%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*%P,i64 8
%T=bitcast i8*%S to i32*
%U=load i32,i32*%T,align 4
%V=icmp eq i32%U,0
br i1%V,label%al,label%W
W:
%X=getelementptr inbounds i8,i8*%P,i64 16
%Y=bitcast i8*%X to i8**
%Z=load i8*,i8**%Y,align 8
store i8*%Z,i8**%c,align 8
%aa=call i8*@sml_alloc(i32 inreg 36)#0
%ab=bitcast i8*%aa to i32*
%ac=getelementptr inbounds i8,i8*%aa,i64 -4
%ad=bitcast i8*%ac to i32*
store i32 1342177312,i32*%ad,align 4
%ae=getelementptr inbounds i8,i8*%aa,i64 4
%af=bitcast i8*%ae to i32*
store i32 0,i32*%af,align 1
store i32 64,i32*%ab,align 4
%ag=getelementptr inbounds i8,i8*%aa,i64 8
%ah=bitcast i8*%ag to i8**
store i8*null,i8**%ah,align 8
%ai=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aj=getelementptr inbounds i8,i8*%aa,i64 16
%ak=bitcast i8*%aj to i8**
store i8*%ai,i8**%ak,align 8
br label%bp
al:
call void@sml_leave()#0
%am=invoke i8*@prim_GenericOS_getcwd()
to label%an unwind label%bs
an:
call void@sml_enter()#0
%ao=ptrtoint i8*%am to i64
%ap=call fastcc i8*@_SMLFN16SMLSharp__Runtime14str__new__optionE(i64 inreg%ao)
%aq=icmp eq i8*%ap,null
br i1%aq,label%ar,label%aA
ar:
store i8*null,i8**%b,align 8
%as=call fastcc i8*@_SMLFN16SMLSharp__Runtime9OS__SysErrE(i32 inreg 0)
store i8*%as,i8**%b,align 8
%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**%b,align 8
%az=bitcast i8*%at to i8**
store i8*%ay,i8**%az,align 8
call void@sml_raise(i8*inreg%at)#1
unreachable
aA:
%aB=bitcast i8*%ap to i8**
%aC=load i8*,i8**%aB,align 8
store i8*%aC,i8**%c,align 8
%aD=call fastcc i8*@_SMLFN16SMLSharp__Runtime4freeE(i32 inreg 0,i32 inreg 1)
%aE=getelementptr inbounds i8,i8*%aD,i64 16
%aF=bitcast i8*%aE to i8*(i8*,i8*)**
%aG=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aF,align 8
%aH=bitcast i8*%aD to i8**
%aI=load i8*,i8**%aH,align 8
store i8*%aI,i8**%d,align 8
%aJ=call i8*@sml_alloc(i32 inreg 8)#0
%aK=getelementptr inbounds i8,i8*%aJ,i64 -4
%aL=bitcast i8*%aK to i32*
store i32 8,i32*%aL,align 4
%aM=bitcast i8*%aJ to i64*
store i64%ao,i64*%aM,align 4
%aN=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aO=call fastcc i8*%aG(i8*inreg%aN,i8*inreg%aJ)
%aP=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aQ=call fastcc i8*@_SMLFN22SMLSharp__SMLNJ__OS__Path10fromStringE(i8*inreg%aP)
%aR=bitcast i8*%aQ to i8**
%aS=load i8*,i8**%aR,align 8
store i8*%aS,i8**%c,align 8
%aT=getelementptr inbounds i8,i8*%aQ,i64 16
%aU=bitcast i8*%aT to i8**
%aV=load i8*,i8**%aU,align 8
store i8*%aV,i8**%d,align 8
%aW=call fastcc i8*@_SMLFN4List1_VE(i32 inreg 1,i32 inreg 8)
%aX=getelementptr inbounds i8,i8*%aW,i64 16
%aY=bitcast i8*%aX to i8*(i8*,i8*)**
%aZ=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aY,align 8
%a0=bitcast i8*%aW to i8**
%a1=load i8*,i8**%a0,align 8
store i8*%a1,i8**%e,align 8
%a2=call i8*@sml_alloc(i32 inreg 20)#0
%a3=getelementptr inbounds i8,i8*%a2,i64 -4
%a4=bitcast i8*%a3 to i32*
store i32 1342177296,i32*%a4,align 4
%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=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%a8=getelementptr inbounds i8,i8*%a2,i64 8
%a9=bitcast i8*%a8 to i8**
store i8*%a7,i8**%a9,align 8
%ba=getelementptr inbounds i8,i8*%a2,i64 16
%bb=bitcast i8*%ba to i32*
store i32 3,i32*%bb,align 4
%bc=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%bd=call fastcc i8*%aZ(i8*inreg%bc,i8*inreg%a2)
store i8*%bd,i8**%b,align 8
%be=call i8*@sml_alloc(i32 inreg 36)#0
%bf=bitcast i8*%be to i32*
%bg=getelementptr inbounds i8,i8*%be,i64 -4
%bh=bitcast i8*%bg to i32*
store i32 1342177312,i32*%bh,align 4
%bi=getelementptr inbounds i8,i8*%be,i64 4
%bj=bitcast i8*%bi to i32*
store i32 0,i32*%bj,align 1
store i32 64,i32*%bf,align 4
%bk=getelementptr inbounds i8,i8*%be,i64 8
%bl=bitcast i8*%bk to i8**
store i8*null,i8**%bl,align 8
%bm=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%bn=getelementptr inbounds i8,i8*%be,i64 16
%bo=bitcast i8*%bn to i8**
store i8*%bm,i8**%bo,align 8
br label%bp
bp:
%bq=phi i8*[%be,%aA],[%aa,%W]
%br=load i8*,i8**%b,align 8
br label%bw
bs:
%bt=landingpad{i8*,i8*}
cleanup
%bu=extractvalue{i8*,i8*}%bt,1
call void@sml_enter()#0
%bv=call i8*@sml_unsave_exn(i8*inreg%bu)#0
resume{i8*,i8*}%bt
bw:
%bx=phi i8*[%bq,%bp],[%co,%cn]
%by=phi i8*[%br,%bp],[%cp,%cn]
%bz=getelementptr inbounds i8,i8*%bx,i64 24
%bA=bitcast i8*%bz to i8**
store i8*%by,i8**%bA,align 8
%bB=getelementptr inbounds i8,i8*%bx,i64 32
%bC=bitcast i8*%bB to i32*
store i32 14,i32*%bC,align 4
%bD=bitcast i8*%bx to i32*
%bE=load i32,i32*%bD,align 4
%bF=icmp eq i32%bE,0
%bG=getelementptr inbounds i8,i8*%bx,i64 8
%bH=bitcast i8*%bG to i8**
%bI=load i8*,i8**%bH,align 8
br i1%bF,label%dE,label%bJ
bJ:
%bK=icmp eq i8*%bI,null
br i1%bK,label%bL,label%cF
bL:
%bM=getelementptr inbounds i8,i8*%bx,i64 16
%bN=bitcast i8*%bM to i8**
%bO=load i8*,i8**%bN,align 8
store i8*%bO,i8**%b,align 8
%bP=getelementptr inbounds i8,i8*%bx,i64 24
%bQ=bitcast i8*%bP to i8**
%bR=load i8*,i8**%bQ,align 8
%bS=icmp eq i8*%bR,null
br i1%bS,label%gW,label%bT
bT:
%bU=bitcast i8*%bR to i8**
%bV=load i8*,i8**%bU,align 8
%bW=getelementptr inbounds i8,i8*%bV,i64 -4
%bX=bitcast i8*%bW to i32*
%bY=load i32,i32*%bX,align 4
%bZ=trunc i32%bY to i28
switch i28%bZ,label%cB[
i28 1,label%cx
i28 2,label%cq
i28 3,label%b0
]
b0:
%b1=load i8,i8*%bV,align 1
%b2=icmp eq i8%b1,46
br i1%b2,label%b3,label%cB
b3:
%b4=getelementptr inbounds i8,i8*%bV,i64 1
%b5=load i8,i8*%b4,align 1
%b6=icmp eq i8%b5,46
br i1%b6,label%b7,label%cB
b7:
%b8=getelementptr inbounds i8,i8*%bR,i64 8
%b9=bitcast i8*%b8 to i8**
%ca=load i8*,i8**%b9,align 8
store i8*%ca,i8**%c,align 8
%cb=call i8*@sml_alloc(i32 inreg 36)#0
%cc=bitcast i8*%cb to i32*
%cd=getelementptr inbounds i8,i8*%cb,i64 -4
%ce=bitcast i8*%cd to i32*
store i32 1342177312,i32*%ce,align 4
%cf=getelementptr inbounds i8,i8*%cb,i64 4
%cg=bitcast i8*%cf to i32*
store i32 0,i32*%cg,align 1
store i32%bE,i32*%cc,align 4
%ch=getelementptr inbounds i8,i8*%cb,i64 8
%ci=bitcast i8*%ch to i8**
store i8*null,i8**%ci,align 8
%cj=load i8*,i8**%b,align 8
%ck=getelementptr inbounds i8,i8*%cb,i64 16
%cl=bitcast i8*%ck to i8**
store i8*%cj,i8**%cl,align 8
%cm=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
br label%cn
cn:
%co=phi i8*[%cb,%b7],[%dc,%c8],[%fL,%fC],[%gd,%f2],[%gt,%gq],[%gJ,%gG]
%cp=phi i8*[%cm,%b7],[%do,%c8],[%fX,%fC],[%gp,%f2],[%gF,%gq],[%gV,%gG]
br label%bw
cq:
%cr=load i8,i8*%bV,align 1
%cs=icmp eq i8%cr,46
br i1%cs,label%ct,label%cB
ct:
%cu=getelementptr inbounds i8,i8*%bR,i64 8
%cv=bitcast i8*%cu to i8**
%cw=load i8*,i8**%cv,align 8
br label%gq
cx:
%cy=getelementptr inbounds i8,i8*%bR,i64 8
%cz=bitcast i8*%cy to i8**
%cA=load i8*,i8**%cz,align 8
br label%gG
cB:
%cC=getelementptr inbounds i8,i8*%bR,i64 8
%cD=bitcast i8*%cC to i8**
%cE=load i8*,i8**%cD,align 8
br label%dY
cF:
%cG=getelementptr inbounds i8,i8*%bI,i64 8
%cH=bitcast i8*%cG to i8**
%cI=load i8*,i8**%cH,align 8
store i8*%cI,i8**%b,align 8
%cJ=getelementptr inbounds i8,i8*%bx,i64 16
%cK=bitcast i8*%cJ to i8**
%cL=load i8*,i8**%cK,align 8
store i8*%cL,i8**%c,align 8
%cM=getelementptr inbounds i8,i8*%bx,i64 24
%cN=bitcast i8*%cM to i8**
%cO=load i8*,i8**%cN,align 8
%cP=icmp eq i8*%cO,null
br i1%cP,label%cQ,label%cR
cQ:
store i8*null,i8**%b,align 8
store i8*null,i8**%c,align 8
br label%gW
cR:
%cS=bitcast i8*%cO to i8**
%cT=load i8*,i8**%cS,align 8
%cU=getelementptr inbounds i8,i8*%cT,i64 -4
%cV=bitcast i8*%cU to i32*
%cW=load i32,i32*%cV,align 4
%cX=trunc i32%cW to i28
switch i28%cX,label%cY[
i28 1,label%dw
i28 2,label%dp
i28 3,label%cZ
]
cY:
store i8*null,i8**%b,align 8
br label%dA
cZ:
%c0=load i8,i8*%cT,align 1
%c1=icmp eq i8%c0,46
br i1%c1,label%c3,label%c2
c2:
store i8*null,i8**%b,align 8
br label%dA
c3:
%c4=getelementptr inbounds i8,i8*%cT,i64 1
%c5=load i8,i8*%c4,align 1
%c6=icmp eq i8%c5,46
br i1%c6,label%c8,label%c7
c7:
store i8*null,i8**%b,align 8
br label%dA
c8:
%c9=getelementptr inbounds i8,i8*%cO,i64 8
%da=bitcast i8*%c9 to i8**
%db=load i8*,i8**%da,align 8
store i8*%db,i8**%d,align 8
%dc=call i8*@sml_alloc(i32 inreg 36)#0
%dd=bitcast i8*%dc to i32*
%de=getelementptr inbounds i8,i8*%dc,i64 -4
%df=bitcast i8*%de to i32*
store i32 1342177312,i32*%df,align 4
%dg=getelementptr inbounds i8,i8*%dc,i64 4
%dh=bitcast i8*%dg to i32*
store i32 0,i32*%dh,align 1
store i32%bE,i32*%dd,align 4
%di=load i8*,i8**%b,align 8
%dj=getelementptr inbounds i8,i8*%dc,i64 8
%dk=bitcast i8*%dj to i8**
store i8*%di,i8**%dk,align 8
%dl=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%dm=getelementptr inbounds i8,i8*%dc,i64 16
%dn=bitcast i8*%dm to i8**
store i8*%dl,i8**%dn,align 8
%do=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
br label%cn
dp:
store i8*null,i8**%b,align 8
%dq=load i8,i8*%cT,align 1
%dr=icmp eq i8%dq,46
br i1%dr,label%ds,label%dA
ds:
%dt=getelementptr inbounds i8,i8*%cO,i64 8
%du=bitcast i8*%dt to i8**
%dv=load i8*,i8**%du,align 8
store i8*null,i8**%c,align 8
br label%gq
dw:
store i8*null,i8**%b,align 8
%dx=getelementptr inbounds i8,i8*%cO,i64 8
%dy=bitcast i8*%dx to i8**
%dz=load i8*,i8**%dy,align 8
store i8*null,i8**%c,align 8
br label%gG
dA:
%dB=getelementptr inbounds i8,i8*%cO,i64 8
%dC=bitcast i8*%dB to i8**
%dD=load i8*,i8**%dC,align 8
store i8*null,i8**%c,align 8
br label%dY
dE:
%dF=load i8*,i8**@_SMLZN16SMLSharp__Runtime6SysErrE,align 8
store i8*%dF,i8**%b,align 8
%dG=call i8*@sml_alloc(i32 inreg 28)#0
%dH=getelementptr inbounds i8,i8*%dG,i64 -4
%dI=bitcast i8*%dH to i32*
store i32 1342177304,i32*%dI,align 4
store i8*%dG,i8**%c,align 8
%dJ=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%dK=bitcast i8*%dG to i8**
store i8*%dJ,i8**%dK,align 8
%dL=getelementptr inbounds i8,i8*%dG,i64 8
%dM=bitcast i8*%dL to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[51x i8]}>,<{[4x i8],i32,[51x i8]}>*@r,i64 0,i32 2,i64 0),i8**%dM,align 8
%dN=getelementptr inbounds i8,i8*%dG,i64 16
%dO=bitcast i8*%dN 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**%dO,align 8
%dP=getelementptr inbounds i8,i8*%dG,i64 24
%dQ=bitcast i8*%dP to i32*
store i32 7,i32*%dQ,align 4
%dR=call i8*@sml_alloc(i32 inreg 60)#0
%dS=getelementptr inbounds i8,i8*%dR,i64 -4
%dT=bitcast i8*%dS to i32*
store i32 1342177336,i32*%dT,align 4
%dU=getelementptr inbounds i8,i8*%dR,i64 56
%dV=bitcast i8*%dU to i32*
store i32 1,i32*%dV,align 4
%dW=load i8*,i8**%c,align 8
%dX=bitcast i8*%dR to i8**
store i8*%dW,i8**%dX,align 8
call void@sml_raise(i8*inreg%dR)#1
unreachable
dY:
%dZ=phi i8*[%bO,%cB],[%cL,%dA]
%d0=phi i8*[%bV,%cB],[%cT,%dA]
%d1=phi i8*[%cE,%cB],[%dD,%dA]
store i8*%bI,i8**%b,align 8
store i8*%dZ,i8**%c,align 8
store i8*%d0,i8**%d,align 8
store i8*%d1,i8**%e,align 8
%d2=call i8*@sml_alloc(i32 inreg 20)#0
%d3=getelementptr inbounds i8,i8*%d2,i64 -4
%d4=bitcast i8*%d3 to i32*
store i32 1342177296,i32*%d4,align 4
store i8*%d2,i8**%f,align 8
%d5=load i8*,i8**%d,align 8
%d6=bitcast i8*%d2 to i8**
store i8*%d5,i8**%d6,align 8
%d7=load i8*,i8**%b,align 8
%d8=getelementptr inbounds i8,i8*%d2,i64 8
%d9=bitcast i8*%d8 to i8**
store i8*%d7,i8**%d9,align 8
%ea=getelementptr inbounds i8,i8*%d2,i64 16
%eb=bitcast i8*%ea to i32*
store i32 3,i32*%eb,align 4
%ec=call fastcc i8*@_SMLFN4List3revE(i32 inreg 1,i32 inreg 8)
%ed=getelementptr inbounds i8,i8*%ec,i64 16
%ee=bitcast i8*%ed to i8*(i8*,i8*)**
%ef=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%ee,align 8
%eg=bitcast i8*%ec to i8**
%eh=load i8*,i8**%eg,align 8
%ei=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%ej=call fastcc i8*%ef(i8*inreg%eh,i8*inreg%ei)
store i8*%ej,i8**%f,align 8
%ek=call i8*@sml_alloc(i32 inreg 28)#0
%el=getelementptr inbounds i8,i8*%ek,i64 -4
%em=bitcast i8*%el to i32*
store i32 1342177304,i32*%em,align 4
%en=getelementptr inbounds i8,i8*%ek,i64 12
%eo=bitcast i8*%en to i32*
store i32 0,i32*%eo,align 1
%ep=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%eq=bitcast i8*%ek to i8**
store i8*%ep,i8**%eq,align 8
%er=getelementptr inbounds i8,i8*%ek,i64 8
%es=bitcast i8*%er to i32*
store i32 1,i32*%es,align 4
%et=load i8*,i8**%c,align 8
%eu=getelementptr inbounds i8,i8*%ek,i64 16
%ev=bitcast i8*%eu to i8**
store i8*%et,i8**%ev,align 8
%ew=getelementptr inbounds i8,i8*%ek,i64 24
%ex=bitcast i8*%ew to i32*
store i32 5,i32*%ex,align 4
%ey=call fastcc i8*@_SMLFN22SMLSharp__SMLNJ__OS__Path8toStringE(i8*inreg%ek)
store i8*%ey,i8**%f,align 8
%ez=call fastcc i8*@_SMLFN13SMLSharp__OSIO5lstatE(i8*inreg%ey)
%eA=getelementptr inbounds i8,i8*%ez,i64 12
%eB=bitcast i8*%eA to i32*
%eC=load i32,i32*%eB,align 4
%eD=load i32,i32*@_SMLZN13SMLSharp__OSIO6S__IFMTE,align 4
%eE=and i32%eD,%eC
%eF=load i32,i32*@_SMLZN13SMLSharp__OSIO7S__IFLNKE,align 4
%eG=icmp eq i32%eE,%eF
br i1%eG,label%eH,label%f2
eH:
store i8*null,i8**%d,align 8
%eI=load i8*,i8**%f,align 8
call void@sml_leave()#0
%eJ=invoke i8*@prim_GenericOS_readlink(i8*%eI)
to label%eK unwind label%fY
eK:
call void@sml_enter()#0
store i8*null,i8**%f,align 8
%eL=icmp eq i8*%eJ,null
br i1%eL,label%eM,label%eV
eM:
store i8*null,i8**%b,align 8
store i8*null,i8**%c,align 8
store i8*null,i8**%e,align 8
%eN=call fastcc i8*@_SMLFN16SMLSharp__Runtime9OS__SysErrE(i32 inreg 0)
store i8*%eN,i8**%b,align 8
%eO=call i8*@sml_alloc(i32 inreg 60)#0
%eP=getelementptr inbounds i8,i8*%eO,i64 -4
%eQ=bitcast i8*%eP to i32*
store i32 1342177336,i32*%eQ,align 4
%eR=getelementptr inbounds i8,i8*%eO,i64 56
%eS=bitcast i8*%eR to i32*
store i32 1,i32*%eS,align 4
%eT=load i8*,i8**%b,align 8
%eU=bitcast i8*%eO to i8**
store i8*%eT,i8**%eU,align 8
call void@sml_raise(i8*inreg%eO)#1
unreachable
eV:
%eW=call fastcc i8*@_SMLFN22SMLSharp__SMLNJ__OS__Path10fromStringE(i8*inreg%eJ)
%eX=getelementptr inbounds i8,i8*%eW,i64 8
%eY=bitcast i8*%eX to i32*
%eZ=load i32,i32*%eY,align 4
%e0=bitcast i8*%eW to i8**
%e1=load i8*,i8**%e0,align 8
store i8*%e1,i8**%d,align 8
%e2=getelementptr inbounds i8,i8*%eW,i64 16
%e3=bitcast i8*%e2 to i8**
%e4=load i8*,i8**%e3,align 8
store i8*%e4,i8**%f,align 8
%e5=call fastcc i8*@_SMLFN4List1_VE(i32 inreg 1,i32 inreg 8)
%e6=getelementptr inbounds i8,i8*%e5,i64 16
%e7=bitcast i8*%e6 to i8*(i8*,i8*)**
%e8=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%e7,align 8
%e9=bitcast i8*%e5 to i8**
%fa=load i8*,i8**%e9,align 8
store i8*%fa,i8**%g,align 8
%fb=call i8*@sml_alloc(i32 inreg 20)#0
%fc=getelementptr inbounds i8,i8*%fb,i64 -4
%fd=bitcast i8*%fc to i32*
store i32 1342177296,i32*%fd,align 4
%fe=load i8*,i8**%d,align 8
%ff=bitcast i8*%fb to i8**
store i8*%fe,i8**%ff,align 8
%fg=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%fh=getelementptr inbounds i8,i8*%fb,i64 8
%fi=bitcast i8*%fh to i8**
store i8*%fg,i8**%fi,align 8
%fj=getelementptr inbounds i8,i8*%fb,i64 16
%fk=bitcast i8*%fj to i32*
store i32 3,i32*%fk,align 4
%fl=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%fm=call fastcc i8*%e8(i8*inreg%fl,i8*inreg%fb)
store i8*%fm,i8**%e,align 8
%fn=icmp eq i32%eZ,0
br i1%fn,label%fv,label%fo
fo:
store i8*null,i8**%b,align 8
store i8*null,i8**%c,align 8
%fp=call i8*@sml_alloc(i32 inreg 20)#0
%fq=getelementptr inbounds i8,i8*%fp,i64 -4
%fr=bitcast i8*%fq to i32*
store i32 1342177296,i32*%fr,align 4
%fs=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%ft=bitcast i8*%fp to i8**
store i8*%fs,i8**%ft,align 8
%fu=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
br label%fC
fv:
store i8*null,i8**%d,align 8
store i8*null,i8**%f,align 8
%fw=call i8*@sml_alloc(i32 inreg 20)#0
%fx=getelementptr inbounds i8,i8*%fw,i64 -4
%fy=bitcast i8*%fx to i32*
store i32 1342177296,i32*%fy,align 4
%fz=load i8*,i8**%b,align 8
%fA=bitcast i8*%fw to i8**
store i8*%fz,i8**%fA,align 8
%fB=load i8*,i8**%c,align 8
br label%fC
fC:
%fD=phi i8*[%fw,%fv],[%fp,%fo]
%fE=phi i8*[%fB,%fv],[%fu,%fo]
%fF=phi i8*[%fz,%fv],[%fs,%fo]
%fG=getelementptr inbounds i8,i8*%fD,i64 8
%fH=bitcast i8*%fG to i8**
store i8*%fE,i8**%fH,align 8
%fI=getelementptr inbounds i8,i8*%fD,i64 16
%fJ=bitcast i8*%fI to i32*
store i32 3,i32*%fJ,align 4
store i8*%fF,i8**%b,align 8
store i8*%fE,i8**%c,align 8
%fK=add nsw i32%bE,-1
%fL=call i8*@sml_alloc(i32 inreg 36)#0
%fM=bitcast i8*%fL to i32*
%fN=getelementptr inbounds i8,i8*%fL,i64 -4
%fO=bitcast i8*%fN to i32*
store i32 1342177312,i32*%fO,align 4
%fP=getelementptr inbounds i8,i8*%fL,i64 4
%fQ=bitcast i8*%fP to i32*
store i32 0,i32*%fQ,align 1
store i32%fK,i32*%fM,align 4
%fR=load i8*,i8**%b,align 8
%fS=getelementptr inbounds i8,i8*%fL,i64 8
%fT=bitcast i8*%fS to i8**
store i8*%fR,i8**%fT,align 8
%fU=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%fV=getelementptr inbounds i8,i8*%fL,i64 16
%fW=bitcast i8*%fV to i8**
store i8*%fU,i8**%fW,align 8
%fX=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
br label%cn
fY:
%fZ=landingpad{i8*,i8*}
cleanup
%f0=extractvalue{i8*,i8*}%fZ,1
call void@sml_enter()#0
%f1=call i8*@sml_unsave_exn(i8*inreg%f0)#0
resume{i8*,i8*}%fZ
f2:
store i8*null,i8**%f,align 8
%f3=call i8*@sml_alloc(i32 inreg 20)#0
%f4=getelementptr inbounds i8,i8*%f3,i64 -4
%f5=bitcast i8*%f4 to i32*
store i32 1342177296,i32*%f5,align 4
store i8*%f3,i8**%f,align 8
%f6=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%f7=bitcast i8*%f3 to i8**
store i8*%f6,i8**%f7,align 8
%f8=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%f9=getelementptr inbounds i8,i8*%f3,i64 8
%ga=bitcast i8*%f9 to i8**
store i8*%f8,i8**%ga,align 8
%gb=getelementptr inbounds i8,i8*%f3,i64 16
%gc=bitcast i8*%gb to i32*
store i32 3,i32*%gc,align 4
%gd=call i8*@sml_alloc(i32 inreg 36)#0
%ge=bitcast i8*%gd to i32*
%gf=getelementptr inbounds i8,i8*%gd,i64 -4
%gg=bitcast i8*%gf to i32*
store i32 1342177312,i32*%gg,align 4
%gh=getelementptr inbounds i8,i8*%gd,i64 4
%gi=bitcast i8*%gh to i32*
store i32 0,i32*%gi,align 1
store i32%bE,i32*%ge,align 4
%gj=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%gk=getelementptr inbounds i8,i8*%gd,i64 8
%gl=bitcast i8*%gk to i8**
store i8*%gj,i8**%gl,align 8
%gm=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%gn=getelementptr inbounds i8,i8*%gd,i64 16
%go=bitcast i8*%gn to i8**
store i8*%gm,i8**%go,align 8
%gp=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
br label%cn
gq:
%gr=phi i8*[%cL,%ds],[%bO,%ct]
%gs=phi i8*[%dv,%ds],[%cw,%ct]
store i8*%bI,i8**%b,align 8
store i8*%gr,i8**%c,align 8
store i8*%gs,i8**%d,align 8
%gt=call i8*@sml_alloc(i32 inreg 36)#0
%gu=bitcast i8*%gt to i32*
%gv=getelementptr inbounds i8,i8*%gt,i64 -4
%gw=bitcast i8*%gv to i32*
store i32 1342177312,i32*%gw,align 4
%gx=getelementptr inbounds i8,i8*%gt,i64 4
%gy=bitcast i8*%gx to i32*
store i32 0,i32*%gy,align 1
store i32%bE,i32*%gu,align 4
%gz=load i8*,i8**%b,align 8
%gA=getelementptr inbounds i8,i8*%gt,i64 8
%gB=bitcast i8*%gA to i8**
store i8*%gz,i8**%gB,align 8
%gC=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%gD=getelementptr inbounds i8,i8*%gt,i64 16
%gE=bitcast i8*%gD to i8**
store i8*%gC,i8**%gE,align 8
%gF=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
br label%cn
gG:
%gH=phi i8*[%cL,%dw],[%bO,%cx]
%gI=phi i8*[%dz,%dw],[%cA,%cx]
store i8*%bI,i8**%b,align 8
store i8*%gH,i8**%c,align 8
store i8*%gI,i8**%d,align 8
%gJ=call i8*@sml_alloc(i32 inreg 36)#0
%gK=bitcast i8*%gJ to i32*
%gL=getelementptr inbounds i8,i8*%gJ,i64 -4
%gM=bitcast i8*%gL to i32*
store i32 1342177312,i32*%gM,align 4
%gN=getelementptr inbounds i8,i8*%gJ,i64 4
%gO=bitcast i8*%gN to i32*
store i32 0,i32*%gO,align 1
store i32%bE,i32*%gK,align 4
%gP=load i8*,i8**%b,align 8
%gQ=getelementptr inbounds i8,i8*%gJ,i64 8
%gR=bitcast i8*%gQ to i8**
store i8*%gP,i8**%gR,align 8
%gS=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%gT=getelementptr inbounds i8,i8*%gJ,i64 16
%gU=bitcast i8*%gT to i8**
store i8*%gS,i8**%gU,align 8
%gV=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
br label%cn
gW:
%gX=phi i8*[%cL,%cQ],[%bO,%bL]
store i8*%bI,i8**%b,align 8
store i8*%gX,i8**%c,align 8
%gY=call fastcc i8*@_SMLFN4List3revE(i32 inreg 1,i32 inreg 8)
%gZ=getelementptr inbounds i8,i8*%gY,i64 16
%g0=bitcast i8*%gZ to i8*(i8*,i8*)**
%g1=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%g0,align 8
%g2=bitcast i8*%gY to i8**
%g3=load i8*,i8**%g2,align 8
%g4=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%g5=call fastcc i8*%g1(i8*inreg%g3,i8*inreg%g4)
store i8*%g5,i8**%b,align 8
%g6=call i8*@sml_alloc(i32 inreg 28)#0
%g7=getelementptr inbounds i8,i8*%g6,i64 -4
%g8=bitcast i8*%g7 to i32*
store i32 1342177304,i32*%g8,align 4
%g9=getelementptr inbounds i8,i8*%g6,i64 12
%ha=bitcast i8*%g9 to i32*
store i32 0,i32*%ha,align 1
%hb=load i8*,i8**%b,align 8
%hc=bitcast i8*%g6 to i8**
store i8*%hb,i8**%hc,align 8
%hd=getelementptr inbounds i8,i8*%g6,i64 8
%he=bitcast i8*%hd to i32*
store i32 1,i32*%he,align 4
%hf=load i8*,i8**%c,align 8
%hg=getelementptr inbounds i8,i8*%g6,i64 16
%hh=bitcast i8*%hg to i8**
store i8*%hf,i8**%hh,align 8
%hi=getelementptr inbounds i8,i8*%g6,i64 24
%hj=bitcast i8*%hi to i32*
store i32 5,i32*%hj,align 4
%hk=tail call fastcc i8*@_SMLFN22SMLSharp__SMLNJ__OS__Path8toStringE(i8*inreg%g6)
ret i8*%hk
hl:
%hm=landingpad{i8*,i8*}
cleanup
%hn=extractvalue{i8*,i8*}%hm,1
call void@sml_enter()#0
%ho=call i8*@sml_unsave_exn(i8*inreg%hn)#0
resume{i8*,i8*}%hm
}
define fastcc i8*@_SMLFN18SMLSharp__OSFileSys8realPathE(i8*inreg%a)#2 gc"smlsharp"personality i32(...)*@sml_personality{
k:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%b,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%i,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%b,align 8
br label%i
i:
%j=phi i8*[%h,%g],[%a,%k]
%l=call fastcc i32@_SMLFN22SMLSharp__SMLNJ__OS__Path10isAbsoluteE(i8*inreg%j)
%m=icmp eq i32%l,0
%n=load i8*,i8**%b,align 8
br i1%m,label%q,label%o
o:
%p=tail call fastcc i8*@_SMLFN18SMLSharp__OSFileSys8fullPathE(i8*inreg%n)
ret i8*%p
q:
store i8*null,i8**%b,align 8
%r=call fastcc i8*@_SMLFN18SMLSharp__OSFileSys8fullPathE(i8*inreg%n)
store i8*%r,i8**%b,align 8
call void@sml_leave()#0
%s=invoke i8*@prim_GenericOS_getcwd()
to label%t unwind label%ai
t:
call void@sml_enter()#0
%u=ptrtoint i8*%s to i64
%v=call fastcc i8*@_SMLFN16SMLSharp__Runtime14str__new__optionE(i64 inreg%u)
%w=icmp eq i8*%v,null
br i1%w,label%x,label%G
x:
store i8*null,i8**%b,align 8
%y=call fastcc i8*@_SMLFN16SMLSharp__Runtime9OS__SysErrE(i32 inreg 0)
store i8*%y,i8**%b,align 8
%z=call i8*@sml_alloc(i32 inreg 60)#0
%A=getelementptr inbounds i8,i8*%z,i64 -4
%B=bitcast i8*%A to i32*
store i32 1342177336,i32*%B,align 4
%C=getelementptr inbounds i8,i8*%z,i64 56
%D=bitcast i8*%C to i32*
store i32 1,i32*%D,align 4
%E=load i8*,i8**%b,align 8
%F=bitcast i8*%z to i8**
store i8*%E,i8**%F,align 8
call void@sml_raise(i8*inreg%z)#1
unreachable
G:
%H=bitcast i8*%v to i8**
%I=load i8*,i8**%H,align 8
store i8*%I,i8**%c,align 8
%J=call fastcc i8*@_SMLFN16SMLSharp__Runtime4freeE(i32 inreg 0,i32 inreg 1)
%K=getelementptr inbounds i8,i8*%J,i64 16
%L=bitcast i8*%K to i8*(i8*,i8*)**
%M=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%L,align 8
%N=bitcast i8*%J to i8**
%O=load i8*,i8**%N,align 8
store i8*%O,i8**%d,align 8
%P=call i8*@sml_alloc(i32 inreg 8)#0
%Q=getelementptr inbounds i8,i8*%P,i64 -4
%R=bitcast i8*%Q to i32*
store i32 8,i32*%R,align 4
%S=bitcast i8*%P to i64*
store i64%u,i64*%S,align 4
%T=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%U=call fastcc i8*%M(i8*inreg%T,i8*inreg%P)
%V=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%W=call fastcc i8*@_SMLFN18SMLSharp__OSFileSys8fullPathE(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
%aa=load i8*,i8**%b,align 8
%ab=bitcast i8*%X to i8**
store i8*%aa,i8**%ab,align 8
%ac=load i8*,i8**%c,align 8
%ad=getelementptr inbounds i8,i8*%X,i64 8
%ae=bitcast i8*%ad to i8**
store i8*%ac,i8**%ae,align 8
%af=getelementptr inbounds i8,i8*%X,i64 16
%ag=bitcast i8*%af to i32*
store i32 3,i32*%ag,align 4
%ah=tail call fastcc i8*@_SMLFN22SMLSharp__SMLNJ__OS__Path10mkRelativeE(i8*inreg%X)
ret i8*%ah
ai:
%aj=landingpad{i8*,i8*}
cleanup
%ak=extractvalue{i8*,i8*}%aj,1
call void@sml_enter()#0
%al=call i8*@sml_unsave_exn(i8*inreg%ak)#0
resume{i8*,i8*}%aj
}
define fastcc i8*@_SMLFN18SMLSharp__OSFileSys7modTimeE(i8*inreg%a)#2 gc"smlsharp"{
i:
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%g,label%e
e:
call void@sml_check(i32 inreg%c)
%f=load i8*,i8**%b,align 8
br label%g
g:
%h=phi i8*[%f,%e],[%a,%i]
store i8*null,i8**%b,align 8
%j=call fastcc i8*@_SMLFN13SMLSharp__OSIO4statE(i8*inreg%h)
%k=getelementptr inbounds i8,i8*%j,i64 16
%l=bitcast i8*%k to i32*
%m=load i32,i32*%l,align 4
%n=call fastcc i8*@_SMLFN6IntInf7fromIntE(i32 inreg%m)
%o=tail call fastcc i8*@_SMLFN4Time11fromSecondsE(i8*inreg%n)
ret i8*%o
}
define fastcc i32@_SMLFN18SMLSharp__OSFileSys8fileSizeE(i8*inreg%a)#2 gc"smlsharp"{
i:
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%g,label%e
e:
call void@sml_check(i32 inreg%c)
%f=load i8*,i8**%b,align 8
br label%g
g:
%h=phi i8*[%f,%e],[%a,%i]
store i8*null,i8**%b,align 8
%j=call fastcc i8*@_SMLFN13SMLSharp__OSIO4statE(i8*inreg%h)
%k=getelementptr inbounds i8,i8*%j,i64 20
%l=bitcast i8*%k to i32*
%m=load i32,i32*%l,align 4
ret i32%m
}
define fastcc void@_SMLFN18SMLSharp__OSFileSys7setTimeE(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]
%j=bitcast i8*%h to i8**
%k=load i8*,i8**%j,align 8
store i8*%k,i8**%b,align 8
%l=getelementptr inbounds i8,i8*%h,i64 8
%m=bitcast i8*%l to i8**
%n=load i8*,i8**%m,align 8
%o=icmp eq i8*%n,null
br i1%o,label%p,label%r
p:
%q=call fastcc i8*@_SMLFN4Time3nowE(i32 inreg 0)
br label%u
r:
%s=bitcast i8*%n to i8**
%t=load i8*,i8**%s,align 8
br label%u
u:
%v=phi i8*[%q,%p],[%t,%r]
%w=call fastcc i8*@_SMLFN4Time9toSecondsE(i8*inreg%v)
%x=call fastcc i32@_SMLFN6IntInf5toIntE(i8*inreg%w)
%y=load i8*,i8**%b,align 8
call void@sml_leave()#0
%z=invoke i32@prim_GenericOS_utime(i8*%y,i32%x,i32%x)
to label%A unwind label%C
A:
call void@sml_enter()#0
store i8*null,i8**%b,align 8
%B=icmp sgt i32%z,-1
br i1%B,label%P,label%G
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
G:
%H=call fastcc i8*@_SMLFN16SMLSharp__Runtime9OS__SysErrE(i32 inreg 0)
store i8*%H,i8**%b,align 8
%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**%b,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:
ret void
}
define fastcc void@_SMLFN18SMLSharp__OSFileSys6removeE(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]
call void@sml_leave()#0
%j=call i32@unlink(i8*%h)
call void@sml_enter()#0
store i8*null,i8**%b,align 8
%k=icmp sgt i32%j,-1
br i1%k,label%u,label%l
l:
%m=call fastcc i8*@_SMLFN16SMLSharp__Runtime9OS__SysErrE(i32 inreg 0)
store i8*%m,i8**%b,align 8
%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**%b,align 8
%t=bitcast i8*%n to i8**
store i8*%s,i8**%t,align 8
call void@sml_raise(i8*inreg%n)#1
unreachable
u:
ret void
}
define fastcc void@_SMLFN18SMLSharp__OSFileSys6renameE(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=call i32@rename(i8*%o,i8*%l)
call void@sml_enter()#0
store i8*null,i8**%c,align 8
store i8*null,i8**%b,align 8
%q=icmp sgt i32%p,-1
br i1%q,label%A,label%r
r:
%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:
ret void
}
define fastcc i32@_SMLFN18SMLSharp__OSFileSys6accessE(i8*inreg%a)#2 gc"smlsharp"personality i32(...)*@sml_personality{
k:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%b,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%i,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%b,align 8
br label%i
i:
%j=phi i8*[%h,%g],[%a,%k]
%l=bitcast i8*%j to i8**
%m=load i8*,i8**%l,align 8
%n=getelementptr inbounds i8,i8*%j,i64 8
%o=bitcast i8*%n to i8**
%p=load i8*,i8**%o,align 8
store i8*%p,i8**%b,align 8
%q=invoke fastcc i8*@_SMLFN13SMLSharp__OSIO4statE(i8*inreg%m)
to label%as unwind label%r
r:
%s=landingpad{i8*,i8*}
catch i8*null
%t=extractvalue{i8*,i8*}%s,1
%u=bitcast i8*%t to i8**
%v=load i8*,i8**%u,align 8
store i8*null,i8**%c,align 8
store i8*%v,i8**%d,align 8
%w=bitcast i8*%v to i8**
%x=load i8*,i8**%w,align 8
%y=load i8*,i8**@_SMLZN16SMLSharp__Runtime6SysErrE,align 8
%z=icmp eq i8*%x,%y
br i1%z,label%A,label%ak
A:
%B=getelementptr inbounds i8,i8*%v,i64 16
%C=bitcast i8*%B to i8**
%D=load i8*,i8**%C,align 8
%E=getelementptr inbounds i8,i8*%D,i64 8
%F=bitcast i8*%E to i8**
%G=load i8*,i8**%F,align 8
store i8*%G,i8**%c,align 8
%H=icmp eq i8*%G,null
br i1%H,label%I,label%Q
I:
store i8*null,i8**%b,align 8
store i8*null,i8**%c,align 8
%J=call i8*@sml_alloc(i32 inreg 60)#0
%K=getelementptr inbounds i8,i8*%J,i64 -4
%L=bitcast i8*%K to i32*
store i32 1342177336,i32*%L,align 4
%M=getelementptr inbounds i8,i8*%J,i64 56
%N=bitcast i8*%M to i32*
store i32 1,i32*%N,align 4
%O=load i8*,i8**%d,align 8
%P=bitcast i8*%J to i8**
store i8*%O,i8**%P,align 8
call void@sml_raise(i8*inreg%J)#1
unreachable
Q:
%R=call fastcc i8*@_SMLFN16SMLSharp__Runtime8syserrorE(i8*inreg getelementptr inbounds(<{[4x i8],i32,[6x i8]}>,<{[4x i8],i32,[6x i8]}>*@B,i64 0,i32 2,i64 0))
%S=load i8*,i8**%c,align 8
%T=call i32@sml_obj_equal(i8*inreg%S,i8*inreg%R)#0
%U=icmp eq i32%T,0
br i1%U,label%W,label%V
V:
store i8*null,i8**%c,align 8
store i8*null,i8**%d,align 8
br label%aB
W:
%X=call fastcc i8*@_SMLFN16SMLSharp__Runtime8syserrorE(i8*inreg getelementptr inbounds(<{[4x i8],i32,[5x i8]}>,<{[4x i8],i32,[5x i8]}>*@C,i64 0,i32 2,i64 0))
%Y=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%Z=call i32@sml_obj_equal(i8*inreg%Y,i8*inreg%X)#0
%aa=icmp eq i32%Z,0
br i1%aa,label%ac,label%ab
ab:
store i8*null,i8**%d,align 8
br label%aB
ac:
store i8*null,i8**%b,align 8
%ad=call i8*@sml_alloc(i32 inreg 60)#0
%ae=getelementptr inbounds i8,i8*%ad,i64 -4
%af=bitcast i8*%ae to i32*
store i32 1342177336,i32*%af,align 4
%ag=getelementptr inbounds i8,i8*%ad,i64 56
%ah=bitcast i8*%ag to i32*
store i32 1,i32*%ah,align 4
%ai=load i8*,i8**%d,align 8
%aj=bitcast i8*%ad to i8**
store i8*%ai,i8**%aj,align 8
call void@sml_raise(i8*inreg%ad)#1
unreachable
ak:
store i8*null,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**%d,align 8
%ar=bitcast i8*%al to i8**
store i8*%aq,i8**%ar,align 8
call void@sml_raise(i8*inreg%al)#1
unreachable
as:
store i8*%q,i8**%c,align 8
%at=call i8*@sml_alloc(i32 inreg 12)#0
%au=getelementptr inbounds i8,i8*%at,i64 -4
%av=bitcast i8*%au to i32*
store i32 1342177288,i32*%av,align 4
%aw=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ax=bitcast i8*%at to i8**
store i8*%aw,i8**%ax,align 8
%ay=getelementptr inbounds i8,i8*%at,i64 8
%az=bitcast i8*%ay to i32*
store i32 1,i32*%az,align 4
%aA=icmp eq i8*%at,null
br i1%aA,label%aB,label%aC
aB:
ret i32 0
aC:
%aD=getelementptr inbounds i8,i8*%aw,i64 12
%aE=bitcast i8*%aD to i32*
%aF=load i32,i32*%aE,align 4
%aG=load i8*,i8**%b,align 8
%aH=icmp eq i8*%aG,null
br i1%aH,label%a9,label%aI
aI:
%aJ=bitcast i8*%aG to i32*
%aK=load i32,i32*%aJ,align 4
%aL=icmp ult i32%aK,3
br i1%aL,label%a4,label%aM
aM:
call void@sml_matchcomp_bug()
%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,[51x i8]}>,<{[4x i8],i32,[51x 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**%c,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=sext i32%aK to i64
%a6=getelementptr inbounds[3x i32*],[3x i32*]*@J,i64 0,i64%a5
%a7=load i32*,i32**%a6,align 8
%a8=load i32,i32*%a7,align 4
br label%a9
a9:
%ba=phi i32[%a8,%a4],[0,%aC]
%bb=and i32%ba,%aF
%bc=icmp eq i32%bb,%ba
%bd=zext i1%bc to i32
ret i32%bd
}
define fastcc i8*@_SMLFN18SMLSharp__OSFileSys7tmpNameE(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 i8*@prim_tmpName()
to label%h unwind label%x
h:
call void@sml_enter()#0
%i=getelementptr inbounds i8,i8*%g,i64 -4
%j=bitcast i8*%i to i32*
%k=load i32,i32*%j,align 4
%l=and i32%k,268435455
%m=icmp eq i32%l,1
br i1%m,label%n,label%w
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 i8*%g
x:
%y=landingpad{i8*,i8*}
cleanup
%z=extractvalue{i8*,i8*}%y,1
call void@sml_enter()#0
%A=call i8*@sml_unsave_exn(i8*inreg%z)#0
resume{i8*,i8*}%y
}
define fastcc i32@_SMLFN18SMLSharp__OSFileSys4hashE(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=getelementptr inbounds i8,i8*%a,i64 8
%f=bitcast i8*%e to i32*
%g=load i32,i32*%f,align 4
%h=shl i32%d,16
%i=add i32%h,%g
ret i32%i
}
define fastcc i32@_SMLFN18SMLSharp__OSFileSys7compareE(i8*inreg%a)#4 gc"smlsharp"{
v:
%b=bitcast i8*%a to i8**
%c=load i8*,i8**%b,align 8
%d=getelementptr inbounds i8,i8*%c,i64 4
%e=bitcast i8*%d to i32*
%f=load i32,i32*%e,align 4
%g=getelementptr inbounds i8,i8*%c,i64 8
%h=bitcast i8*%g to i32*
%i=load i32,i32*%h,align 4
%j=getelementptr inbounds i8,i8*%a,i64 8
%k=bitcast i8*%j to i8**
%l=load i8*,i8**%k,align 8
%m=getelementptr inbounds i8,i8*%l,i64 4
%n=bitcast i8*%m to i32*
%o=load i32,i32*%n,align 4
%p=getelementptr inbounds i8,i8*%l,i64 8
%q=bitcast i8*%p to i32*
%r=load i32,i32*%q,align 4
%s=icmp ult i32%f,%o
br i1%s,label%t,label%w
t:
%u=phi i32[2,%v],[1,%w],[2,%y],[%C,%A]
ret i32%u
w:
%x=icmp ugt i32%f,%o
br i1%x,label%t,label%y
y:
%z=icmp ult i32%i,%r
br i1%z,label%t,label%A
A:
%B=icmp ugt i32%i,%r
%C=zext i1%B to i32
br label%t
}
define internal fastcc i8*@_SMLLLN18SMLSharp__OSFileSys7openDirE_165(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN18SMLSharp__OSFileSys7openDirE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN18SMLSharp__OSFileSys7readDirE_166(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN18SMLSharp__OSFileSys7readDirE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN18SMLSharp__OSFileSys9rewindDirE_167(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLFN18SMLSharp__OSFileSys9rewindDirE(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*@_SMLLLN18SMLSharp__OSFileSys8closeDirE_168(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLFN18SMLSharp__OSFileSys8closeDirE(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*@_SMLLLN18SMLSharp__OSFileSys5chDirE_169(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLFN18SMLSharp__OSFileSys5chDirE(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*@_SMLLLN18SMLSharp__OSFileSys6getDirE_170(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN18SMLSharp__OSFileSys6getDirE(i32 inreg undef)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN18SMLSharp__OSFileSys5mkDirE_171(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLFN18SMLSharp__OSFileSys5mkDirE(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*@_SMLLLN18SMLSharp__OSFileSys5rmDirE_172(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLFN18SMLSharp__OSFileSys5rmDirE(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*@_SMLLLN18SMLSharp__OSFileSys5isDirE_173(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLFN18SMLSharp__OSFileSys5isDirE(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*@_SMLLLN18SMLSharp__OSFileSys6isLinkE_174(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLFN18SMLSharp__OSFileSys6isLinkE(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*@_SMLLLN18SMLSharp__OSFileSys8readLinkE_175(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN18SMLSharp__OSFileSys8readLinkE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN18SMLSharp__OSFileSys8fullPathE_176(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN18SMLSharp__OSFileSys8fullPathE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN18SMLSharp__OSFileSys8realPathE_177(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN18SMLSharp__OSFileSys8realPathE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN18SMLSharp__OSFileSys7modTimeE_178(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN18SMLSharp__OSFileSys7modTimeE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN18SMLSharp__OSFileSys8fileSizeE_179(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLFN18SMLSharp__OSFileSys8fileSizeE(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*@_SMLLLN18SMLSharp__OSFileSys7setTimeE_180(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLFN18SMLSharp__OSFileSys7setTimeE(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*@_SMLLLN18SMLSharp__OSFileSys6removeE_181(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLFN18SMLSharp__OSFileSys6removeE(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*@_SMLLLN18SMLSharp__OSFileSys6renameE_182(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLFN18SMLSharp__OSFileSys6renameE(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*@_SMLLLN18SMLSharp__OSFileSys6accessE_183(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLFN18SMLSharp__OSFileSys6accessE(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*@_SMLLLN18SMLSharp__OSFileSys7tmpNameE_184(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN18SMLSharp__OSFileSys7tmpNameE(i32 inreg undef)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN18SMLSharp__OSFileSys4hashE_185(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=getelementptr inbounds i8,i8*%b,i64 8
%g=bitcast i8*%f to i32*
%h=load i32,i32*%g,align 4
%i=shl i32%e,16
%j=add i32%i,%h
%k=tail call i8*@sml_alloc(i32 inreg 4)#0
%l=bitcast i8*%k to i32*
%m=getelementptr inbounds i8,i8*%k,i64 -4
%n=bitcast i8*%m to i32*
store i32 4,i32*%n,align 4
store i32%j,i32*%l,align 4
ret i8*%k
}
define internal fastcc i8*@_SMLLLN18SMLSharp__OSFileSys7compareE_186(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i32@_SMLFN18SMLSharp__OSFileSys7compareE(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
}
attributes#0={nounwind}
attributes#1={noreturn}
attributes#2={uwtable}
attributes#3={noreturn nounwind}
attributes#4={nounwind uwtable}
