@sml_check_flag=external local_unnamed_addr global i32
@_SMLZN3Bug10debugPrintE=external local_unnamed_addr global i8*
@_SMLZN3Bug3BugE=external local_unnamed_addr global i8*
@_SMLZN5OTSet5emptyE=external local_unnamed_addr global i8*
@_SMLZN5Types15emptyPropertiesE=external local_unnamed_addr global i8*
@_SMLZN5Types8univKindE=external local_unnamed_addr global i8*
@_SMLZ5Match=external unnamed_addr constant i8*
@a=private unnamed_addr constant<{[4x i8],i32,[17x i8]}><{[4x i8]zeroinitializer,i32 -2147483631,[17x i8]c"EvalIty.EVALTFUN\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,[17x i8]}>,<{[4x i8],i32,[17x i8]}>*@a,i32 0,i32 0,i32 0),i32 8),i32 0,[4x i8]zeroinitializer,i32 1}>,align 8
@_SMLDL102=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(i8*(i8*)*@_SMLL9opaqueRep_108 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLL9opaqueRep_199 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*)*@_SMLL12interfaceRep_110 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLL12interfaceRep_200 to void(...)*),i32 -2147483647}>,align 8
@e=private unnamed_addr constant<{[4x i8],i32,[60x i8]}><{[4x i8]zeroinitializer,i32 -2147483588,[60x i8]c"src/compiler/compilerIRs/idcalc/main/EvalIty.sml:48.6(1442)\00"}>,align 8
@f=private unnamed_addr constant<{[4x i8],i32,[62x i8]}><{[4x i8]zeroinitializer,i32 -2147483586,[62x i8]c"src/compiler/compilerIRs/idcalc/main/EvalIty.sml:100.14(3310)\00"}>,align 8
@g=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLLN7EvalIty8evalTfunE_114 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN7EvalIty8evalTfunE_201 to void(...)*),i32 -2147483647}>,align 8
@h=private unnamed_addr constant<{[4x i8],i32,[21x i8]}><{[4x i8]zeroinitializer,i32 -2147483627,[21x i8]c"TFV_SPEC in evalTfun\00"}>,align 8
@i=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,[10x i8]}>,<{[4x i8],i32,[10x i8]}>*@w,i32 0,i32 0,i32 0),i32 8),i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,[21x i8]}>,<{[4x i8],i32,[21x i8]}>*@h,i32 0,i32 0,i32 0),i32 8),i32 3}>,align 8
@j=private unnamed_addr constant<{[4x i8],i32,[24x i8]}><{[4x i8]zeroinitializer,i32 -2147483624,[24x i8]c"****** evalTfun ******\0A\00"}>,align 8
@k=private unnamed_addr constant<{[4x i8],i32,[6x i8]}><{[4x i8]zeroinitializer,i32 -2147483642,[6x i8]c"tfun\0A\00"}>,align 8
@l=private unnamed_addr constant<{[4x i8],i32,[20x i8]}><{[4x i8]zeroinitializer,i32 -2147483628,[20x i8]c"TFV_DTY in evalTfun\00"}>,align 8
@m=private unnamed_addr constant<{[4x i8],i32,i8*,i8*,i32}><{[4x i8]zeroinitializer,i32 -805306352,i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,[10x i8]}>,<{[4x i8],i32,[10x i8]}>*@w,i32 0,i32 0,i32 0),i32 8),i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,[20x i8]}>,<{[4x i8],i32,[20x i8]}>*@l,i32 0,i32 0,i32 0),i32 8),i32 3}>,align 8
@n=private unnamed_addr constant<{[4x i8],i32,[61x i8]}><{[4x i8]zeroinitializer,i32 -2147483587,[61x i8]c"src/compiler/compilerIRs/idcalc/main/EvalIty.sml:102.9(3445)\00"}>,align 8
@o=private unnamed_addr constant<{[4x i8],i32,[60x i8]}><{[4x i8]zeroinitializer,i32 -2147483588,[60x i8]c"src/compiler/compilerIRs/idcalc/main/EvalIty.sml:98.6(3217)\00"}>,align 8
@p=private unnamed_addr constant<{[4x i8],i32,[24x i8]}><{[4x i8]zeroinitializer,i32 -2147483624,[24x i8]c"evalIty tvar not found\0A\00"}>,align 8
@q=private unnamed_addr constant<{[4x i8],i32,[2x i8]}><{[4x i8]zeroinitializer,i32 -2147483646,[2x i8]c"\0A\00"}>,align 8
@r=private unnamed_addr constant<{[4x i8],i32,[11x i8]}><{[4x i8]zeroinitializer,i32 -2147483637,[11x i8]c"free tvar:\00"}>,align 8
@s=private unnamed_addr constant<{[4x i8],i32,[18x i8]}><{[4x i8]zeroinitializer,i32 -2147483630,[18x i8]c"TYCONSTRUCT ARITY\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,[10x i8]}>,<{[4x i8],i32,[10x i8]}>*@w,i32 0,i32 0,i32 0),i32 8),i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,[18x i8]}>,<{[4x i8],i32,[18x i8]}>*@s,i32 0,i32 0,i32 0),i32 8),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*)*@_SMLL7tvarEnv_149 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLL7tvarEnv_204 to void(...)*),i32 -2147483647}>,align 8
@v=private unnamed_addr constant<{[4x i8],i32,[60x i8]}><{[4x i8]zeroinitializer,i32 -2147483588,[60x i8]c"src/compiler/compilerIRs/idcalc/main/EvalIty.sml:14.14(258)\00"}>,align 8
@w=private unnamed_addr constant<{[4x i8],i32,[10x i8]}><{[4x i8]zeroinitializer,i32 -2147483638,[10x i8]c"EvalITy: \00"}>,align 8
@x=private unnamed_addr constant<{[4x i8],i32,[12x i8]}><{[4x i8]zeroinitializer,i32 -2147483636,[12x i8]c"not tyvarty\00"}>,align 8
@y=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,[10x i8]}>,<{[4x i8],i32,[10x i8]}>*@w,i32 0,i32 0,i32 0),i32 8),i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,[12x i8]}>,<{[4x i8],i32,[12x i8]}>*@x,i32 0,i32 0,i32 0),i32 8),i32 3}>,align 8
@z=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLL10boundOtset_156 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLL10boundOtset_205 to void(...)*),i32 -2147483647}>,align 8
@A=private unnamed_addr constant<{[4x i8],i32,[62x i8]}><{[4x i8]zeroinitializer,i32 -2147483586,[62x i8]c"src/compiler/compilerIRs/idcalc/main/EvalIty.sml:265.32(9778)\00"}>,align 8
@B=private unnamed_addr constant<{[4x i8],i32,[13x i8]}><{[4x i8]zeroinitializer,i32 -2147483635,[13x i8]c"generalizeTy\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*)*@_SMLL4btvs_161 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLL4btvs_207 to void(...)*),i32 -2147483647}>,align 8
@D=private unnamed_addr constant<{[4x i8],i32,[61x i8]}><{[4x i8]zeroinitializer,i32 -2147483587,[61x i8]c"src/compiler/compilerIRs/idcalc/main/EvalIty.sml:173.7(6302)\00"}>,align 8
@E=private unnamed_addr constant<{[4x i8],i32,[62x i8]}><{[4x i8]zeroinitializer,i32 -2147483586,[62x i8]c"src/compiler/compilerIRs/idcalc/main/EvalIty.sml:153.12(5538)\00"}>,align 8
@F=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLL6genBtv_166 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLL6genBtv_208 to void(...)*),i32 -2147483647}>,align 8
@G=private unnamed_addr constant<{[4x i8],i32,[63x i8]}><{[4x i8]zeroinitializer,i32 -2147483585,[63x i8]c"src/compiler/compilerIRs/idcalc/main/EvalIty.sml:288.12(10848)\00"}>,align 8
@_SMLZN7EvalIty8EVALTFUNE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*}>,<{[4x i8],i32,i8*}>*@_SMLDL102,i64 0,i32 2)to i8*)
@_SML_gvarcdb1ceba8ced3301_EvalIty=private global<{[4x i8],i32,[5x i8*]}><{[4x i8]zeroinitializer,i32 -1342177240,[5x i8*]zeroinitializer}>,align 8
@H=private unnamed_addr global[2x i64][i64 1,i64 sub(i64 ptrtoint(i8**getelementptr inbounds(<{[4x i8],i32,[5x i8*]}>,<{[4x i8],i32,[5x i8*]}>*@_SML_gvarcdb1ceba8ced3301_EvalIty,i32 0,i32 2,i32 0)to i64),i64 ptrtoint([2x i64]*@H to i64))]
@_SML_ftabcdb1ceba8ced3301_EvalIty=external global i8
@I=private unnamed_addr global i8 0
@_SMLZN7EvalIty12emptyContextE=alias i8*,getelementptr inbounds(<{[4x i8],i32,[5x i8*]}>,<{[4x i8],i32,[5x i8*]}>*@_SML_gvarcdb1ceba8ced3301_EvalIty,i32 0,i32 2,i32 0)
@_SMLZN7EvalIty18evalKindedTvarListE=alias i8*,getelementptr inbounds(<{[4x i8],i32,[5x i8*]}>,<{[4x i8],i32,[5x i8*]}>*@_SML_gvarcdb1ceba8ced3301_EvalIty,i32 0,i32 2,i32 1)
@_SMLZN7EvalIty11evalDtyKindE=alias i8*,getelementptr inbounds(<{[4x i8],i32,[5x i8*]}>,<{[4x i8],i32,[5x i8*]}>*@_SML_gvarcdb1ceba8ced3301_EvalIty,i32 0,i32 2,i32 2)
@_SMLZN7EvalIty8evalTfunE=alias i8*,getelementptr inbounds(<{[4x i8],i32,[5x i8*]}>,<{[4x i8],i32,[5x i8*]}>*@_SML_gvarcdb1ceba8ced3301_EvalIty,i32 0,i32 2,i32 3)
@_SMLZN7EvalIty7evalItyE=alias i8*,getelementptr inbounds(<{[4x i8],i32,[5x i8*]}>,<{[4x i8],i32,[5x i8*]}>*@_SML_gvarcdb1ceba8ced3301_EvalIty,i32 0,i32 2,i32 4)
declare void@llvm.gcroot(i8**,i8*)#0
declare i8*@sml_alloc(i32 inreg)local_unnamed_addr#0
declare void@sml_check(i32 inreg)local_unnamed_addr
declare void@sml_end()local_unnamed_addr#0
declare void@sml_gcroot(i8*,void()*,i8*,i8*)local_unnamed_addr#0
declare void@sml_matchcomp_bug()local_unnamed_addr
declare i32@sml_personality(...)#0
declare void@sml_raise(i8*inreg)local_unnamed_addr#1
declare void@sml_save_exn(i8*inreg)local_unnamed_addr#0
declare void@sml_start(i8*inreg)local_unnamed_addr#0
declare void@sml_write(i8*inreg,i8**inreg,i8*inreg)local_unnamed_addr#0
declare i8*@_SMLFN11RecordLabel3Map3mapE(i32 inreg,i32 inreg,i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN11TypesBasics10freshSubstE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN11TypesBasics10substBTvarE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN11TypesBasics4EFTVE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN14BoundTypeVarID3Map5emptyE(i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN14BoundTypeVarID3Map5foldlE(i32 inreg,i32 inreg,i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN14BoundTypeVarID3Map6insertE(i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN14BoundTypeVarID3Map7isEmptyE(i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i32@_SMLFN14BoundTypeVarID8generateE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN3Bug11prettyPrintE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN4IEnv5foldlE(i32 inreg,i32 inreg,i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN4IEnv6filterE(i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN4List3mapE(i32 inreg,i32 inreg,i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN4List5foldlE(i32 inreg,i32 inreg,i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN4List5foldrE(i32 inreg,i32 inreg,i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN4List6lengthE(i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN5OTSet3addE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i32@_SMLFN5OTSet6memberE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN5Types13addPropertiesE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN5Types19newtyWithRecordKindE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN5Types5newtyE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare void@_SMLFN5Unify5unifyE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN6IDCalc11format__tfunE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN6IDCalc13liftedTysToTyE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN6IDCalc9format__tyE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN6Option3mapE(i32 inreg,i32 inreg,i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN6String1_ZE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare void@_SMLFN6TextIO5printE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN6TvarID3Map4findE(i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN6TvarID3Map5emptyE(i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN6TvarID3Map6insertE(i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN6VarMap5emptyE(i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN7TvarMap4findE(i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN7TvarMap5emptyE(i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN7TvarMap6insertE(i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN8ListPair3zipE(i32 inreg,i32 inreg,i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN8OPrimMap5emptyE(i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN9SymbolEnv3mapE(i32 inreg,i32 inreg,i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main03d87556ec7f64b2_List()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main7aa263535439ee1c_ListPair()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main3a60343781315c1e_Option()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main1ef93e13728790b1_String()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main3446b7b079949ccf_text_io()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main44ca35c4c731682b_Symbol()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main60e750412e2bb4fe_RecordLabel()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_maineaa0aca8fbe4101a_Bug()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main7374574ddb619c6a_LocalID()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main04a904d40099ecf0_IEnv()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main606b245a3d2b48d6_Types_ppg()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main4483b5c900167763_VarInfoEnv()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_mainfe1ef0bb7943f949_TvarMap()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main2aaf2b808f82ee2e_TypesBasics()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main8d80f531f2346bfa_Unify()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_mainaa02729a939cde89_VarMap()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main7348eea1b328a903_OPrimMap()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main1d614b123e80cc95_IDCalc_ppg()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_load03d87556ec7f64b2_List(i8*)local_unnamed_addr
declare void@_SML_load7aa263535439ee1c_ListPair(i8*)local_unnamed_addr
declare void@_SML_load3a60343781315c1e_Option(i8*)local_unnamed_addr
declare void@_SML_load1ef93e13728790b1_String(i8*)local_unnamed_addr
declare void@_SML_load3446b7b079949ccf_text_io(i8*)local_unnamed_addr
declare void@_SML_load44ca35c4c731682b_Symbol(i8*)local_unnamed_addr
declare void@_SML_load60e750412e2bb4fe_RecordLabel(i8*)local_unnamed_addr
declare void@_SML_loadeaa0aca8fbe4101a_Bug(i8*)local_unnamed_addr
declare void@_SML_load7374574ddb619c6a_LocalID(i8*)local_unnamed_addr
declare void@_SML_load04a904d40099ecf0_IEnv(i8*)local_unnamed_addr
declare void@_SML_load606b245a3d2b48d6_Types_ppg(i8*)local_unnamed_addr
declare void@_SML_load4483b5c900167763_VarInfoEnv(i8*)local_unnamed_addr
declare void@_SML_loadfe1ef0bb7943f949_TvarMap(i8*)local_unnamed_addr
declare void@_SML_load2aaf2b808f82ee2e_TypesBasics(i8*)local_unnamed_addr
declare void@_SML_load8d80f531f2346bfa_Unify(i8*)local_unnamed_addr
declare void@_SML_loadaa02729a939cde89_VarMap(i8*)local_unnamed_addr
declare void@_SML_load7348eea1b328a903_OPrimMap(i8*)local_unnamed_addr
declare void@_SML_load1d614b123e80cc95_IDCalc_ppg(i8*)local_unnamed_addr
define private void@_SML_tabbcdb1ceba8ced3301_EvalIty()#3{
unreachable
}
define void@_SML_loadcdb1ceba8ced3301_EvalIty(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_load03d87556ec7f64b2_List(i8*%a)#0
tail call void@_SML_load7aa263535439ee1c_ListPair(i8*%a)#0
tail call void@_SML_load3a60343781315c1e_Option(i8*%a)#0
tail call void@_SML_load1ef93e13728790b1_String(i8*%a)#0
tail call void@_SML_load3446b7b079949ccf_text_io(i8*%a)#0
tail call void@_SML_load44ca35c4c731682b_Symbol(i8*%a)#0
tail call void@_SML_load60e750412e2bb4fe_RecordLabel(i8*%a)#0
tail call void@_SML_loadeaa0aca8fbe4101a_Bug(i8*%a)#0
tail call void@_SML_load7374574ddb619c6a_LocalID(i8*%a)#0
tail call void@_SML_load04a904d40099ecf0_IEnv(i8*%a)#0
tail call void@_SML_load606b245a3d2b48d6_Types_ppg(i8*%a)#0
tail call void@_SML_load4483b5c900167763_VarInfoEnv(i8*%a)#0
tail call void@_SML_loadfe1ef0bb7943f949_TvarMap(i8*%a)#0
tail call void@_SML_load2aaf2b808f82ee2e_TypesBasics(i8*%a)#0
tail call void@_SML_load8d80f531f2346bfa_Unify(i8*%a)#0
tail call void@_SML_loadaa02729a939cde89_VarMap(i8*%a)#0
tail call void@_SML_load7348eea1b328a903_OPrimMap(i8*%a)#0
tail call void@_SML_load1d614b123e80cc95_IDCalc_ppg(i8*%a)#0
tail call void@sml_gcroot(i8*%a,void()*@_SML_tabbcdb1ceba8ced3301_EvalIty,i8*@_SML_ftabcdb1ceba8ced3301_EvalIty,i8*bitcast([2x i64]*@H to i8*))#0
ret void
}
define void@_SML_maincdb1ceba8ced3301_EvalIty()local_unnamed_addr#2 gc"smlsharp"personality i32(...)*@sml_personality{
%a=alloca[3x i8*],align 8
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
%h=load i8,i8*@I,align 1
%i=and i8%h,2
%j=icmp eq i8%i,0
br i1%j,label%l,label%k
k:
ret void
l:
store i8 3,i8*@I,align 1
tail call void@_SML_main03d87556ec7f64b2_List()#2
tail call void@_SML_main7aa263535439ee1c_ListPair()#2
tail call void@_SML_main3a60343781315c1e_Option()#2
tail call void@_SML_main1ef93e13728790b1_String()#2
tail call void@_SML_main3446b7b079949ccf_text_io()#2
tail call void@_SML_main44ca35c4c731682b_Symbol()#2
tail call void@_SML_main60e750412e2bb4fe_RecordLabel()#2
tail call void@_SML_maineaa0aca8fbe4101a_Bug()#2
tail call void@_SML_main7374574ddb619c6a_LocalID()#2
tail call void@_SML_main04a904d40099ecf0_IEnv()#2
tail call void@_SML_main606b245a3d2b48d6_Types_ppg()#2
tail call void@_SML_main4483b5c900167763_VarInfoEnv()#2
tail call void@_SML_mainfe1ef0bb7943f949_TvarMap()#2
tail call void@_SML_main2aaf2b808f82ee2e_TypesBasics()#2
tail call void@_SML_main8d80f531f2346bfa_Unify()#2
tail call void@_SML_mainaa02729a939cde89_VarMap()#2
tail call void@_SML_main7348eea1b328a903_OPrimMap()#2
tail call void@_SML_main1d614b123e80cc95_IDCalc_ppg()#2
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
%m=bitcast[3x i8*]*%a to i8*
call void@sml_start(i8*inreg%m)#0
%n=load atomic i32,i32*@sml_check_flag unordered,align 4
%o=icmp eq i32%n,0
br i1%o,label%q,label%p
p:
invoke void@sml_check(i32 inreg%n)
to label%q unwind label%df
q:
%r=call i8*@sml_alloc(i32 inreg 8)#0
%s=getelementptr inbounds i8,i8*%r,i64 -4
%t=bitcast i8*%s to i32*
store i32 805306376,i32*%t,align 4
store i8*%r,i8**%b,align 8
%u=bitcast i8*%r to i64*
store i64 0,i64*%u,align 1
%v=invoke fastcc i8*@_SMLFN6TvarID3Map5emptyE(i32 inreg 1,i32 inreg 8)
to label%w unwind label%df
w:
%x=load i8*,i8**%b,align 8
%y=bitcast i8*%x to i8**
call void@sml_write(i8*inreg%x,i8**inreg%y,i8*inreg%v)#0
%z=call i8*@sml_alloc(i32 inreg 12)#0
%A=getelementptr inbounds i8,i8*%z,i64 -4
%B=bitcast i8*%A to i32*
store i32 1342177288,i32*%B,align 4
store i8*%z,i8**%f,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 i32*
store i32 1,i32*%F,align 4
%G=call i8*@sml_alloc(i32 inreg 28)#0
%H=getelementptr inbounds i8,i8*%G,i64 -4
%I=bitcast i8*%H to i32*
store i32 1342177304,i32*%I,align 4
%J=load i8*,i8**%f,align 8
%K=bitcast i8*%G to i8**
store i8*%J,i8**%K,align 8
%L=getelementptr inbounds i8,i8*%G,i64 8
%M=bitcast i8*%L to void(...)**
store void(...)*bitcast(void(i8*,i8*)*@_SMLLN7EvalIty14setFreeTvarEnvE_99 to void(...)*),void(...)**%M,align 8
%N=getelementptr inbounds i8,i8*%G,i64 16
%O=bitcast i8*%N to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN7EvalIty14setFreeTvarEnvE_198 to void(...)*),void(...)**%O,align 8
%P=getelementptr inbounds i8,i8*%G,i64 24
%Q=bitcast i8*%P to i32*
store i32 -2147483647,i32*%Q,align 4
%R=invoke fastcc i8*@_SMLFN8OPrimMap5emptyE(i32 inreg 1,i32 inreg 8)
to label%S unwind label%df
S:
store i8*%R,i8**%c,align 8
%T=invoke fastcc i8*@_SMLFN7TvarMap5emptyE(i32 inreg 1,i32 inreg 8)
to label%U unwind label%df
U:
store i8*%T,i8**%d,align 8
%V=invoke fastcc i8*@_SMLFN6VarMap5emptyE(i32 inreg 1,i32 inreg 8)
to label%W unwind label%df
W:
store i8*%V,i8**%e,align 8
%X=call i8*@sml_alloc(i32 inreg 28)#0
%Y=getelementptr inbounds i8,i8*%X,i64 -4
%Z=bitcast i8*%Y to i32*
store i32 1342177304,i32*%Z,align 4
store i8*%X,i8**%b,align 8
%aa=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ab=bitcast i8*%X to i8**
store i8*%aa,i8**%ab,align 8
%ac=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%ad=getelementptr inbounds i8,i8*%X,i64 8
%ae=bitcast i8*%ad to i8**
store i8*%ac,i8**%ae,align 8
%af=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%ag=getelementptr inbounds i8,i8*%X,i64 16
%ah=bitcast i8*%ag to i8**
store i8*%af,i8**%ah,align 8
%ai=getelementptr inbounds i8,i8*%X,i64 24
%aj=bitcast i8*%ai to i32*
store i32 7,i32*%aj,align 4
%ak=call i8*@sml_alloc(i32 inreg 12)#0
%al=getelementptr inbounds i8,i8*%ak,i64 -4
%am=bitcast i8*%al to i32*
store i32 1342177288,i32*%am,align 4
store i8*%ak,i8**%c,align 8
%an=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%ao=bitcast i8*%ak to i8**
store i8*%an,i8**%ao,align 8
%ap=getelementptr inbounds i8,i8*%ak,i64 8
%aq=bitcast i8*%ap to i32*
store i32 1,i32*%aq,align 4
%ar=call i8*@sml_alloc(i32 inreg 28)#0
%as=getelementptr inbounds i8,i8*%ar,i64 -4
%at=bitcast i8*%as to i32*
store i32 1342177304,i32*%at,align 4
%au=load i8*,i8**%c,align 8
%av=bitcast i8*%ar to i8**
store i8*%au,i8**%av,align 8
%aw=getelementptr inbounds i8,i8*%ar,i64 8
%ax=bitcast i8*%aw to void(...)**
store void(...)*bitcast(i8*(i8*,i32,i32,i32,i32)*@_SMLLL173 to void(...)*),void(...)**%ax,align 8
%ay=getelementptr inbounds i8,i8*%ar,i64 16
%az=bitcast i8*%ay to void(...)**
store void(...)*bitcast(i8*(i8*,i8*,i8*,i8*,i8*)*@_SMLLL209 to void(...)*),void(...)**%az,align 8
%aA=getelementptr inbounds i8,i8*%ar,i64 24
%aB=bitcast i8*%aA to i32*
store i32 -2147483647,i32*%aB,align 4
%aC=call i8*@sml_alloc(i32 inreg 12)#0
%aD=getelementptr inbounds i8,i8*%aC,i64 -4
%aE=bitcast i8*%aD to i32*
store i32 1342177288,i32*%aE,align 4
store i8*%aC,i8**%d,align 8
%aF=load i8*,i8**%c,align 8
%aG=bitcast i8*%aC to i8**
store i8*%aF,i8**%aG,align 8
%aH=getelementptr inbounds i8,i8*%aC,i64 8
%aI=bitcast i8*%aH to i32*
store i32 1,i32*%aI,align 4
%aJ=call i8*@sml_alloc(i32 inreg 28)#0
%aK=getelementptr inbounds i8,i8*%aJ,i64 -4
%aL=bitcast i8*%aK to i32*
store i32 1342177304,i32*%aL,align 4
%aM=load i8*,i8**%d,align 8
%aN=bitcast i8*%aJ to i8**
store i8*%aM,i8**%aN,align 8
%aO=getelementptr inbounds i8,i8*%aJ,i64 8
%aP=bitcast i8*%aO to void(...)**
store void(...)*bitcast(i8*(i8*,i32,i32,i32,i32)*@_SMLLN7EvalIty11evalDtyKindE_174 to void(...)*),void(...)**%aP,align 8
%aQ=getelementptr inbounds i8,i8*%aJ,i64 16
%aR=bitcast i8*%aQ to void(...)**
store void(...)*bitcast(i8*(i8*,i8*,i8*,i8*,i8*)*@_SMLLN7EvalIty11evalDtyKindE_210 to void(...)*),void(...)**%aR,align 8
%aS=getelementptr inbounds i8,i8*%aJ,i64 24
%aT=bitcast i8*%aS to i32*
store i32 -2147483647,i32*%aT,align 4
%aU=call i8*@sml_alloc(i32 inreg 12)#0
%aV=getelementptr inbounds i8,i8*%aU,i64 -4
%aW=bitcast i8*%aV to i32*
store i32 1342177288,i32*%aW,align 4
store i8*%aU,i8**%e,align 8
%aX=load i8*,i8**%c,align 8
%aY=bitcast i8*%aU to i8**
store i8*%aX,i8**%aY,align 8
%aZ=getelementptr inbounds i8,i8*%aU,i64 8
%a0=bitcast i8*%aZ to i32*
store i32 1,i32*%a0,align 4
%a1=call i8*@sml_alloc(i32 inreg 28)#0
%a2=getelementptr inbounds i8,i8*%a1,i64 -4
%a3=bitcast i8*%a2 to i32*
store i32 1342177304,i32*%a3,align 4
%a4=load i8*,i8**%e,align 8
%a5=bitcast i8*%a1 to i8**
store i8*%a4,i8**%a5,align 8
%a6=getelementptr inbounds i8,i8*%a1,i64 8
%a7=bitcast i8*%a6 to void(...)**
store void(...)*bitcast(i8*(i8*,i32,i32,i32,i32)*@_SMLLN7EvalIty8evalTfunE_175 to void(...)*),void(...)**%a7,align 8
%a8=getelementptr inbounds i8,i8*%a1,i64 16
%a9=bitcast i8*%a8 to void(...)**
store void(...)*bitcast(i8*(i8*,i8*,i8*,i8*,i8*)*@_SMLLN7EvalIty8evalTfunE_211 to void(...)*),void(...)**%a9,align 8
%ba=getelementptr inbounds i8,i8*%a1,i64 24
%bb=bitcast i8*%ba to i32*
store i32 -2147483647,i32*%bb,align 4
%bc=call i8*@sml_alloc(i32 inreg 12)#0
%bd=getelementptr inbounds i8,i8*%bc,i64 -4
%be=bitcast i8*%bd to i32*
store i32 1342177288,i32*%be,align 4
store i8*%bc,i8**%f,align 8
%bf=load i8*,i8**%c,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 i32*
store i32 1,i32*%bi,align 4
%bj=call i8*@sml_alloc(i32 inreg 28)#0
%bk=getelementptr inbounds i8,i8*%bj,i64 -4
%bl=bitcast i8*%bk to i32*
store i32 1342177304,i32*%bl,align 4
%bm=load i8*,i8**%f,align 8
%bn=bitcast i8*%bj to i8**
store i8*%bm,i8**%bn,align 8
%bo=getelementptr inbounds i8,i8*%bj,i64 8
%bp=bitcast i8*%bo to void(...)**
store void(...)*bitcast(i8*(i8*,i32,i32,i32,i32)*@_SMLLN7EvalIty7evalItyE_176 to void(...)*),void(...)**%bp,align 8
%bq=getelementptr inbounds i8,i8*%bj,i64 16
%br=bitcast i8*%bq to void(...)**
store void(...)*bitcast(i8*(i8*,i8*,i8*,i8*,i8*)*@_SMLLN7EvalIty7evalItyE_212 to void(...)*),void(...)**%br,align 8
%bs=getelementptr inbounds i8,i8*%bj,i64 24
%bt=bitcast i8*%bs to i32*
store i32 -2147483647,i32*%bt,align 4
%bu=call i8*@sml_alloc(i32 inreg 12)#0
%bv=getelementptr inbounds i8,i8*%bu,i64 -4
%bw=bitcast i8*%bv to i32*
store i32 1342177288,i32*%bw,align 4
store i8*%bu,i8**%g,align 8
%bx=load i8*,i8**%c,align 8
%by=bitcast i8*%bu to i8**
store i8*%bx,i8**%by,align 8
%bz=getelementptr inbounds i8,i8*%bu,i64 8
%bA=bitcast i8*%bz to i32*
store i32 1,i32*%bA,align 4
%bB=call i8*@sml_alloc(i32 inreg 28)#0
%bC=getelementptr inbounds i8,i8*%bB,i64 -4
%bD=bitcast i8*%bC to i32*
store i32 1342177304,i32*%bD,align 4
%bE=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%bF=bitcast i8*%bB to i8**
store i8*%bE,i8**%bF,align 8
%bG=getelementptr inbounds i8,i8*%bB,i64 8
%bH=bitcast i8*%bG to void(...)**
store void(...)*bitcast(i8*(i8*,i32,i32,i32,i32)*@_SMLLN7EvalIty12evalFreeTvarE_177 to void(...)*),void(...)**%bH,align 8
%bI=getelementptr inbounds i8,i8*%bB,i64 16
%bJ=bitcast i8*%bI to void(...)**
store void(...)*bitcast(i8*(i8*,i8*,i8*,i8*,i8*)*@_SMLLN7EvalIty12evalFreeTvarE_213 to void(...)*),void(...)**%bJ,align 8
%bK=getelementptr inbounds i8,i8*%bB,i64 24
%bL=bitcast i8*%bK to i32*
store i32 -2147483647,i32*%bL,align 4
%bM=call i8*@sml_alloc(i32 inreg 12)#0
%bN=getelementptr inbounds i8,i8*%bM,i64 -4
%bO=bitcast i8*%bN to i32*
store i32 1342177288,i32*%bO,align 4
store i8*%bM,i8**%g,align 8
%bP=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bQ=bitcast i8*%bM to i8**
store i8*%bP,i8**%bQ,align 8
%bR=getelementptr inbounds i8,i8*%bM,i64 8
%bS=bitcast i8*%bR to i32*
store i32 1,i32*%bS,align 4
%bT=call i8*@sml_alloc(i32 inreg 28)#0
%bU=getelementptr inbounds i8,i8*%bT,i64 -4
%bV=bitcast i8*%bU to i32*
store i32 1342177304,i32*%bV,align 4
%bW=load i8*,i8**%g,align 8
%bX=bitcast i8*%bT to i8**
store i8*%bW,i8**%bX,align 8
%bY=getelementptr inbounds i8,i8*%bT,i64 8
%bZ=bitcast i8*%bY to void(...)**
store void(...)*bitcast(i8*(i8*,i32,i32,i32,i32)*@_SMLLN7EvalIty18evalKindedTvarListE_178 to void(...)*),void(...)**%bZ,align 8
%b0=getelementptr inbounds i8,i8*%bT,i64 16
%b1=bitcast i8*%b0 to void(...)**
store void(...)*bitcast(i8*(i8*,i8*,i8*,i8*,i8*)*@_SMLLN7EvalIty18evalKindedTvarListE_214 to void(...)*),void(...)**%b1,align 8
%b2=getelementptr inbounds i8,i8*%bT,i64 24
%b3=bitcast i8*%b2 to i32*
store i32 -2147483647,i32*%b3,align 4
%b4=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
call void@sml_write(i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,[5x i8*]}>,<{[4x i8],i32,[5x i8*]}>*@_SML_gvarcdb1ceba8ced3301_EvalIty,i64 0,i32 2,i64 0)to i8*),i8**inreg getelementptr inbounds(<{[4x i8],i32,[5x i8*]}>,<{[4x i8],i32,[5x i8*]}>*@_SML_gvarcdb1ceba8ced3301_EvalIty,i64 0,i32 2,i64 0),i8*inreg%b4)#0
%b5=call i8*@sml_alloc(i32 inreg 12)#0
%b6=getelementptr inbounds i8,i8*%b5,i64 -4
%b7=bitcast i8*%b6 to i32*
store i32 1342177288,i32*%b7,align 4
store i8*%b5,i8**%b,align 8
%b8=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%b9=bitcast i8*%b5 to i8**
store i8*%b8,i8**%b9,align 8
%ca=getelementptr inbounds i8,i8*%b5,i64 8
%cb=bitcast i8*%ca to i32*
store i32 1,i32*%cb,align 4
%cc=call i8*@sml_alloc(i32 inreg 28)#0
%cd=getelementptr inbounds i8,i8*%cc,i64 -4
%ce=bitcast i8*%cd to i32*
store i32 1342177304,i32*%ce,align 4
%cf=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%cg=bitcast i8*%cc to i8**
store i8*%cf,i8**%cg,align 8
%ch=getelementptr inbounds i8,i8*%cc,i64 8
%ci=bitcast i8*%ch to void(...)**
store void(...)*bitcast(i8*(i8*,i32,i32,i32,i32)*@_SMLLN7EvalIty18evalKindedTvarListE_181 to void(...)*),void(...)**%ci,align 8
%cj=getelementptr inbounds i8,i8*%cc,i64 16
%ck=bitcast i8*%cj to void(...)**
store void(...)*bitcast(i8*(i8*,i8*,i8*,i8*,i8*)*@_SMLLN7EvalIty18evalKindedTvarListE_215 to void(...)*),void(...)**%ck,align 8
%cl=getelementptr inbounds i8,i8*%cc,i64 24
%cm=bitcast i8*%cl to i32*
store i32 -2147483647,i32*%cm,align 4
call void@sml_write(i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,[5x i8*]}>,<{[4x i8],i32,[5x i8*]}>*@_SML_gvarcdb1ceba8ced3301_EvalIty,i64 0,i32 2,i64 0)to i8*),i8**inreg getelementptr inbounds(<{[4x i8],i32,[5x i8*]}>,<{[4x i8],i32,[5x i8*]}>*@_SML_gvarcdb1ceba8ced3301_EvalIty,i64 0,i32 2,i64 1),i8*inreg%cc)#0
%cn=call i8*@sml_alloc(i32 inreg 12)#0
%co=getelementptr inbounds i8,i8*%cn,i64 -4
%cp=bitcast i8*%co to i32*
store i32 1342177288,i32*%cp,align 4
store i8*%cn,i8**%b,align 8
%cq=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%cr=bitcast i8*%cn to i8**
store i8*%cq,i8**%cr,align 8
%cs=getelementptr inbounds i8,i8*%cn,i64 8
%ct=bitcast i8*%cs to i32*
store i32 1,i32*%ct,align 4
%cu=call i8*@sml_alloc(i32 inreg 28)#0
%cv=getelementptr inbounds i8,i8*%cu,i64 -4
%cw=bitcast i8*%cv to i32*
store i32 1342177304,i32*%cw,align 4
%cx=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%cy=bitcast i8*%cu to i8**
store i8*%cx,i8**%cy,align 8
%cz=getelementptr inbounds i8,i8*%cu,i64 8
%cA=bitcast i8*%cz to void(...)**
store void(...)*bitcast(i8*(i8*,i32,i32,i32,i32)*@_SMLLN7EvalIty11evalDtyKindE_185 to void(...)*),void(...)**%cA,align 8
%cB=getelementptr inbounds i8,i8*%cu,i64 16
%cC=bitcast i8*%cB to void(...)**
store void(...)*bitcast(i8*(i8*,i8*,i8*,i8*,i8*)*@_SMLLN7EvalIty11evalDtyKindE_217 to void(...)*),void(...)**%cC,align 8
%cD=getelementptr inbounds i8,i8*%cu,i64 24
%cE=bitcast i8*%cD to i32*
store i32 -2147483647,i32*%cE,align 4
call void@sml_write(i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,[5x i8*]}>,<{[4x i8],i32,[5x i8*]}>*@_SML_gvarcdb1ceba8ced3301_EvalIty,i64 0,i32 2,i64 0)to i8*),i8**inreg getelementptr inbounds(<{[4x i8],i32,[5x i8*]}>,<{[4x i8],i32,[5x i8*]}>*@_SML_gvarcdb1ceba8ced3301_EvalIty,i64 0,i32 2,i64 2),i8*inreg%cu)#0
%cF=call i8*@sml_alloc(i32 inreg 12)#0
%cG=getelementptr inbounds i8,i8*%cF,i64 -4
%cH=bitcast i8*%cG to i32*
store i32 1342177288,i32*%cH,align 4
store i8*%cF,i8**%b,align 8
%cI=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%cJ=bitcast i8*%cF to i8**
store i8*%cI,i8**%cJ,align 8
%cK=getelementptr inbounds i8,i8*%cF,i64 8
%cL=bitcast i8*%cK to i32*
store i32 1,i32*%cL,align 4
%cM=call i8*@sml_alloc(i32 inreg 28)#0
%cN=getelementptr inbounds i8,i8*%cM,i64 -4
%cO=bitcast i8*%cN to i32*
store i32 1342177304,i32*%cO,align 4
%cP=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%cQ=bitcast i8*%cM to i8**
store i8*%cP,i8**%cQ,align 8
%cR=getelementptr inbounds i8,i8*%cM,i64 8
%cS=bitcast i8*%cR to void(...)**
store void(...)*bitcast(i8*(i8*,i32,i32,i32,i32)*@_SMLLN7EvalIty8evalTfunE_189 to void(...)*),void(...)**%cS,align 8
%cT=getelementptr inbounds i8,i8*%cM,i64 16
%cU=bitcast i8*%cT to void(...)**
store void(...)*bitcast(i8*(i8*,i8*,i8*,i8*,i8*)*@_SMLLN7EvalIty8evalTfunE_219 to void(...)*),void(...)**%cU,align 8
%cV=getelementptr inbounds i8,i8*%cM,i64 24
%cW=bitcast i8*%cV to i32*
store i32 -2147483647,i32*%cW,align 4
call void@sml_write(i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,[5x i8*]}>,<{[4x i8],i32,[5x i8*]}>*@_SML_gvarcdb1ceba8ced3301_EvalIty,i64 0,i32 2,i64 0)to i8*),i8**inreg getelementptr inbounds(<{[4x i8],i32,[5x i8*]}>,<{[4x i8],i32,[5x i8*]}>*@_SML_gvarcdb1ceba8ced3301_EvalIty,i64 0,i32 2,i64 3),i8*inreg%cM)#0
%cX=call i8*@sml_alloc(i32 inreg 12)#0
%cY=getelementptr inbounds i8,i8*%cX,i64 -4
%cZ=bitcast i8*%cY to i32*
store i32 1342177288,i32*%cZ,align 4
store i8*%cX,i8**%b,align 8
%c0=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%c1=bitcast i8*%cX to i8**
store i8*%c0,i8**%c1,align 8
%c2=getelementptr inbounds i8,i8*%cX,i64 8
%c3=bitcast i8*%c2 to i32*
store i32 1,i32*%c3,align 4
%c4=call i8*@sml_alloc(i32 inreg 28)#0
%c5=getelementptr inbounds i8,i8*%c4,i64 -4
%c6=bitcast i8*%c5 to i32*
store i32 1342177304,i32*%c6,align 4
%c7=load i8*,i8**%b,align 8
%c8=bitcast i8*%c4 to i8**
store i8*%c7,i8**%c8,align 8
%c9=getelementptr inbounds i8,i8*%c4,i64 8
%da=bitcast i8*%c9 to void(...)**
store void(...)*bitcast(i8*(i8*,i32,i32,i32,i32)*@_SMLLN7EvalIty7evalItyE_193 to void(...)*),void(...)**%da,align 8
%db=getelementptr inbounds i8,i8*%c4,i64 16
%dc=bitcast i8*%db to void(...)**
store void(...)*bitcast(i8*(i8*,i8*,i8*,i8*,i8*)*@_SMLLN7EvalIty7evalItyE_221 to void(...)*),void(...)**%dc,align 8
%dd=getelementptr inbounds i8,i8*%c4,i64 24
%de=bitcast i8*%dd to i32*
store i32 -2147483647,i32*%de,align 4
call void@sml_write(i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,[5x i8*]}>,<{[4x i8],i32,[5x i8*]}>*@_SML_gvarcdb1ceba8ced3301_EvalIty,i64 0,i32 2,i64 0)to i8*),i8**inreg getelementptr inbounds(<{[4x i8],i32,[5x i8*]}>,<{[4x i8],i32,[5x i8*]}>*@_SML_gvarcdb1ceba8ced3301_EvalIty,i64 0,i32 2,i64 4),i8*inreg%c4)#0
call void@sml_end()#0
ret void
df:
%dg=landingpad{i8*,i8*}
cleanup
%dh=extractvalue{i8*,i8*}%dg,1
call void@sml_save_exn(i8*inreg%dh)#0
call void@sml_end()#0
resume{i8*,i8*}%dg
}
define internal fastcc void@_SMLLN7EvalIty9printTfunE_94(i8*inreg%a)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]
store i8*null,i8**%b,align 8
%j=call fastcc i8*@_SMLFN6IDCalc11format__tfunE(i8*inreg%h)
%k=call fastcc i8*@_SMLFN3Bug11prettyPrintE(i8*inreg%j)
%l=load i32*,i32**bitcast(i8**@_SMLZN3Bug10debugPrintE to i32**),align 8
%m=load i32,i32*%l,align 4
%n=icmp eq i32%m,0
br i1%n,label%p,label%o
o:
tail call fastcc void@_SMLFN6TextIO5printE(i8*inreg%k)
ret void
p:
ret void
}
define internal fastcc void@_SMLLN7EvalIty14setFreeTvarEnvE_99(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
m:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
store i8*%a,i8**%f,align 8
store i8*%b,i8**%c,align 8
%g=load atomic i32,i32*@sml_check_flag unordered,align 4
%h=icmp eq i32%g,0
br i1%h,label%k,label%i
i:
call void@sml_check(i32 inreg%g)
%j=load i8*,i8**%c,align 8
br label%k
k:
%l=phi i8*[%j,%i],[%b,%m]
store i8*null,i8**%c,align 8
%n=bitcast i8*%l to i32*
%o=load i32,i32*%n,align 4
%p=getelementptr inbounds i8,i8*%l,i64 8
%q=bitcast i8*%p to i8**
%r=load i8*,i8**%q,align 8
store i8*%r,i8**%d,align 8
%s=call fastcc i8*@_SMLFN6TvarID3Map4findE(i32 inreg 1,i32 inreg 8)
%t=getelementptr inbounds i8,i8*%s,i64 16
%u=bitcast i8*%t to i8*(i8*,i8*)**
%v=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%u,align 8
%w=bitcast i8*%s to i8**
%x=load i8*,i8**%w,align 8
store i8*%x,i8**%e,align 8
%y=bitcast i8**%f to i8****
%z=load i8***,i8****%y,align 8
%A=load i8**,i8***%z,align 8
%B=load i8*,i8**%A,align 8
store i8*%B,i8**%c,align 8
%C=call i8*@sml_alloc(i32 inreg 20)#0
%D=getelementptr inbounds i8,i8*%C,i64 -4
%E=bitcast i8*%D to i32*
store i32 1342177296,i32*%E,align 4
%F=getelementptr inbounds i8,i8*%C,i64 12
%G=bitcast i8*%F to i32*
store i32 0,i32*%G,align 1
%H=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%I=bitcast i8*%C to i8**
store i8*%H,i8**%I,align 8
%J=getelementptr inbounds i8,i8*%C,i64 8
%K=bitcast i8*%J to i32*
store i32%o,i32*%K,align 4
%L=getelementptr inbounds i8,i8*%C,i64 16
%M=bitcast i8*%L to i32*
store i32 1,i32*%M,align 4
%N=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%O=call fastcc i8*%v(i8*inreg%N,i8*inreg%C)
%P=icmp eq i8*%O,null
br i1%P,label%am,label%Q
Q:
%R=bitcast i8*%O to i8**
%S=load i8*,i8**%R,align 8
store i8*%S,i8**%e,align 8
%T=call i8*@sml_alloc(i32 inreg 20)#0
%U=getelementptr inbounds i8,i8*%T,i64 -4
%V=bitcast i8*%U to i32*
store i32 1342177296,i32*%V,align 4
store i8*%T,i8**%c,align 8
%W=load i8*,i8**%d,align 8
%X=bitcast i8*%T to i8**
store i8*%W,i8**%X,align 8
%Y=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%Z=getelementptr inbounds i8,i8*%T,i64 8
%aa=bitcast i8*%Z to i8**
store i8*%Y,i8**%aa,align 8
%ab=getelementptr inbounds i8,i8*%T,i64 16
%ac=bitcast i8*%ab to i32*
store i32 3,i32*%ac,align 4
%ad=call i8*@sml_alloc(i32 inreg 20)#0
%ae=getelementptr inbounds i8,i8*%ad,i64 -4
%af=bitcast i8*%ae to i32*
store i32 1342177296,i32*%af,align 4
%ag=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ah=bitcast i8*%ad to i8**
store i8*%ag,i8**%ah,align 8
%ai=getelementptr inbounds i8,i8*%ad,i64 8
%aj=bitcast i8*%ai to i8**
store i8*null,i8**%aj,align 8
%ak=getelementptr inbounds i8,i8*%ad,i64 16
%al=bitcast i8*%ak to i32*
store i32 3,i32*%al,align 4
call fastcc void@_SMLFN5Unify5unifyE(i8*inreg%ad)
br label%am
am:
%an=call fastcc i8*@_SMLFN6TvarID3Map6insertE(i32 inreg 1,i32 inreg 8)
%ao=getelementptr inbounds i8,i8*%an,i64 16
%ap=bitcast i8*%ao to i8*(i8*,i8*)**
%aq=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%ap,align 8
%ar=bitcast i8*%an to i8**
%as=load i8*,i8**%ar,align 8
store i8*%as,i8**%e,align 8
%at=load i8***,i8****%y,align 8
%au=load i8**,i8***%at,align 8
%av=load i8*,i8**%au,align 8
store i8*%av,i8**%c,align 8
%aw=call i8*@sml_alloc(i32 inreg 28)#0
%ax=getelementptr inbounds i8,i8*%aw,i64 -4
%ay=bitcast i8*%ax to i32*
store i32 1342177304,i32*%ay,align 4
%az=getelementptr inbounds i8,i8*%aw,i64 12
%aA=bitcast i8*%az to i32*
store i32 0,i32*%aA,align 1
%aB=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aC=bitcast i8*%aw to i8**
store i8*%aB,i8**%aC,align 8
%aD=getelementptr inbounds i8,i8*%aw,i64 8
%aE=bitcast i8*%aD to i32*
store i32%o,i32*%aE,align 4
%aF=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aG=getelementptr inbounds i8,i8*%aw,i64 16
%aH=bitcast i8*%aG to i8**
store i8*%aF,i8**%aH,align 8
%aI=getelementptr inbounds i8,i8*%aw,i64 24
%aJ=bitcast i8*%aI to i32*
store i32 5,i32*%aJ,align 4
%aK=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%aL=call fastcc i8*%aq(i8*inreg%aK,i8*inreg%aw)
%aM=bitcast i8**%f to i8***
%aN=load i8**,i8***%aM,align 8
%aO=load i8*,i8**%aN,align 8
%aP=bitcast i8*%aO to i8**
call void@sml_write(i8*inreg%aO,i8**inreg%aP,i8*inreg%aL)#0
ret void
}
define internal fastcc i8*@_SMLL9opaqueRep_108(i8*inreg%a)#4 gc"smlsharp"{
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%b,align 8
%e=load i8*,i8**@_SMLZN5Types15emptyPropertiesE,align 8
store i8*%e,i8**%c,align 8
%f=call i8*@sml_alloc(i32 inreg 20)#0
%g=getelementptr inbounds i8,i8*%f,i64 -4
%h=bitcast i8*%g to i32*
store i32 1342177296,i32*%h,align 4
store i8*%f,i8**%d,align 8
%i=getelementptr inbounds i8,i8*%f,i64 4
%j=bitcast i8*%i to i32*
store i32 0,i32*%j,align 1
%k=bitcast i8*%f to i32*
store i32 1,i32*%k,align 4
%l=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%m=getelementptr inbounds i8,i8*%f,i64 8
%n=bitcast i8*%m to i8**
store i8*%l,i8**%n,align 8
%o=getelementptr inbounds i8,i8*%f,i64 16
%p=bitcast i8*%o to i32*
store i32 2,i32*%p,align 4
%q=call i8*@sml_alloc(i32 inreg 20)#0
%r=getelementptr inbounds i8,i8*%q,i64 -4
%s=bitcast i8*%r to i32*
store i32 1342177296,i32*%s,align 4
%t=load i8*,i8**%b,align 8
%u=bitcast i8*%q to i8**
store i8*%t,i8**%u,align 8
%v=load i8*,i8**%d,align 8
%w=getelementptr inbounds i8,i8*%q,i64 8
%x=bitcast i8*%w to i8**
store i8*%v,i8**%x,align 8
%y=getelementptr inbounds i8,i8*%q,i64 16
%z=bitcast i8*%y to i32*
store i32 3,i32*%z,align 4
ret i8*%q
}
define internal fastcc i8*@_SMLL12interfaceRep_110(i8*inreg%a)#4 gc"smlsharp"{
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%b,align 8
%e=load i8*,i8**@_SMLZN5Types15emptyPropertiesE,align 8
store i8*%e,i8**%c,align 8
%f=call i8*@sml_alloc(i32 inreg 20)#0
%g=getelementptr inbounds i8,i8*%f,i64 -4
%h=bitcast i8*%g to i32*
store i32 1342177296,i32*%h,align 4
store i8*%f,i8**%d,align 8
%i=getelementptr inbounds i8,i8*%f,i64 4
%j=bitcast i8*%i to i32*
store i32 0,i32*%j,align 1
%k=bitcast i8*%f to i32*
store i32 1,i32*%k,align 4
%l=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%m=getelementptr inbounds i8,i8*%f,i64 8
%n=bitcast i8*%m to i8**
store i8*%l,i8**%n,align 8
%o=getelementptr inbounds i8,i8*%f,i64 16
%p=bitcast i8*%o to i32*
store i32 2,i32*%p,align 4
%q=call i8*@sml_alloc(i32 inreg 20)#0
%r=getelementptr inbounds i8,i8*%q,i64 -4
%s=bitcast i8*%r to i32*
store i32 1342177296,i32*%s,align 4
%t=load i8*,i8**%b,align 8
%u=bitcast i8*%q to i8**
store i8*%t,i8**%u,align 8
%v=load i8*,i8**%d,align 8
%w=getelementptr inbounds i8,i8*%q,i64 8
%x=bitcast i8*%w to i8**
store i8*%v,i8**%x,align 8
%y=getelementptr inbounds i8,i8*%q,i64 16
%z=bitcast i8*%y to i32*
store i32 3,i32*%z,align 4
ret i8*%q
}
define internal fastcc i8*@_SMLLN7EvalIty8evalTfunE_114(i8*inreg%a)#4 gc"smlsharp"{
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%b,align 8
%e=load i8*,i8**@_SMLZN5Types15emptyPropertiesE,align 8
store i8*%e,i8**%c,align 8
%f=call i8*@sml_alloc(i32 inreg 20)#0
%g=getelementptr inbounds i8,i8*%f,i64 -4
%h=bitcast i8*%g to i32*
store i32 1342177296,i32*%h,align 4
store i8*%f,i8**%d,align 8
%i=getelementptr inbounds i8,i8*%f,i64 4
%j=bitcast i8*%i to i32*
store i32 0,i32*%j,align 1
%k=bitcast i8*%f to i32*
store i32 1,i32*%k,align 4
%l=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%m=getelementptr inbounds i8,i8*%f,i64 8
%n=bitcast i8*%m to i8**
store i8*%l,i8**%n,align 8
%o=getelementptr inbounds i8,i8*%f,i64 16
%p=bitcast i8*%o to i32*
store i32 2,i32*%p,align 4
%q=call i8*@sml_alloc(i32 inreg 20)#0
%r=getelementptr inbounds i8,i8*%q,i64 -4
%s=bitcast i8*%r to i32*
store i32 1342177296,i32*%s,align 4
%t=load i8*,i8**%b,align 8
%u=bitcast i8*%q to i8**
store i8*%t,i8**%u,align 8
%v=load i8*,i8**%d,align 8
%w=getelementptr inbounds i8,i8*%q,i64 8
%x=bitcast i8*%w to i8**
store i8*%v,i8**%x,align 8
%y=getelementptr inbounds i8,i8*%q,i64 16
%z=bitcast i8*%y to i32*
store i32 3,i32*%z,align 4
ret i8*%q
}
define internal fastcc i8*@_SMLL7argTyFn_116(i8*inreg%a,i32 inreg%b)#2 gc"smlsharp"{
m:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
store i8*%a,i8**%d,align 8
%g=load atomic i32,i32*@sml_check_flag unordered,align 4
%h=icmp eq i32%g,0
br i1%h,label%k,label%i
i:
call void@sml_check(i32 inreg%g)
%j=load i8*,i8**%d,align 8
br label%k
k:
%l=phi i8*[%j,%i],[%a,%m]
%n=getelementptr inbounds i8,i8*%l,i64 24
%o=bitcast i8*%n to i8**
%p=load i8*,i8**%o,align 8
%q=getelementptr inbounds i8,i8*%l,i64 16
%r=bitcast i8*%q to i8***
%s=load i8**,i8***%r,align 8
%t=load i8*,i8**%s,align 8
%u=getelementptr inbounds i8,i8*%l,i64 8
%v=bitcast i8*%u to i8**
%w=load i8*,i8**%v,align 8
%x=call fastcc i8*@_SMLLN7EvalIty7evalItyE_105(i8*inreg%p,i8*inreg%t,i8*inreg%w)
store i8*%x,i8**%c,align 8
%y=bitcast i8**%d to i8***
%z=load i8**,i8***%y,align 8
%A=load i8*,i8**%z,align 8
store i8*%A,i8**%d,align 8
%B=call i8*@sml_alloc(i32 inreg 28)#0
%C=getelementptr inbounds i8,i8*%B,i64 -4
%D=bitcast i8*%C to i32*
store i32 1342177304,i32*%D,align 4
%E=load i8*,i8**%c,align 8
%F=bitcast i8*%B to i8**
store i8*%E,i8**%F,align 8
%G=load i8*,i8**%d,align 8
%H=getelementptr inbounds i8,i8*%B,i64 8
%I=bitcast i8*%H to i8**
store i8*%G,i8**%I,align 8
%J=getelementptr inbounds i8,i8*%B,i64 16
%K=bitcast i8*%J to i8**
store i8*null,i8**%K,align 8
%L=getelementptr inbounds i8,i8*%B,i64 24
%M=bitcast i8*%L to i32*
store i32 7,i32*%M,align 4
store i8*null,i8**%e,align 8
%N=call i8*@sml_alloc(i32 inreg 28)#0
%O=getelementptr inbounds i8,i8*%N,i64 -4
%P=bitcast i8*%O to i32*
store i32 1342177304,i32*%P,align 4
store i8*%N,i8**%f,align 8
%Q=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%R=bitcast i8*%N to i8**
store i8*%Q,i8**%R,align 8
%S=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%T=getelementptr inbounds i8,i8*%N,i64 8
%U=bitcast i8*%T to i8**
store i8*%S,i8**%U,align 8
%V=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%W=getelementptr inbounds i8,i8*%N,i64 16
%X=bitcast i8*%W to i8**
store i8*%V,i8**%X,align 8
%Y=getelementptr inbounds i8,i8*%N,i64 24
%Z=bitcast i8*%Y to i32*
store i32 7,i32*%Z,align 4
%aa=call i8*@sml_alloc(i32 inreg 20)#0
%ab=bitcast i8*%aa to i32*
%ac=getelementptr inbounds i8,i8*%aa,i64 -4
%ad=bitcast i8*%ac to i32*
store i32 1342177296,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 7,i32*%ab,align 4
%ag=load i8*,i8**%f,align 8
%ah=getelementptr inbounds i8,i8*%aa,i64 8
%ai=bitcast i8*%ah to i8**
store i8*%ag,i8**%ai,align 8
%aj=getelementptr inbounds i8,i8*%aa,i64 16
%ak=bitcast i8*%aj to i32*
store i32 2,i32*%ak,align 4
ret i8*%aa
}
define internal fastcc i8*@_SMLL7argTyFn_117(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
store i8*%b,i8**%c,align 8
%h=bitcast i8*%a to i8**
%i=load i8*,i8**%h,align 8
store i8*%i,i8**%d,align 8
%j=getelementptr inbounds i8,i8*%a,i64 8
%k=bitcast i8*%j to i8**
%l=load i8*,i8**%k,align 8
store i8*%l,i8**%e,align 8
%m=getelementptr inbounds i8,i8*%a,i64 16
%n=bitcast i8*%m to i8**
%o=load i8*,i8**%n,align 8
store i8*%o,i8**%f,align 8
%p=call i8*@sml_alloc(i32 inreg 36)#0
%q=getelementptr inbounds i8,i8*%p,i64 -4
%r=bitcast i8*%q to i32*
store i32 1342177312,i32*%r,align 4
store i8*%p,i8**%g,align 8
%s=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%t=bitcast i8*%p to i8**
store i8*%s,i8**%t,align 8
%u=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%v=getelementptr inbounds i8,i8*%p,i64 8
%w=bitcast i8*%v to i8**
store i8*%u,i8**%w,align 8
%x=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%y=getelementptr inbounds i8,i8*%p,i64 16
%z=bitcast i8*%y to i8**
store i8*%x,i8**%z,align 8
%A=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%B=getelementptr inbounds i8,i8*%p,i64 24
%C=bitcast i8*%B to i8**
store i8*%A,i8**%C,align 8
%D=getelementptr inbounds i8,i8*%p,i64 32
%E=bitcast i8*%D to i32*
store i32 15,i32*%E,align 4
%F=call i8*@sml_alloc(i32 inreg 28)#0
%G=getelementptr inbounds i8,i8*%F,i64 -4
%H=bitcast i8*%G to i32*
store i32 1342177304,i32*%H,align 4
%I=load i8*,i8**%g,align 8
%J=bitcast i8*%F to i8**
store i8*%I,i8**%J,align 8
%K=getelementptr inbounds i8,i8*%F,i64 8
%L=bitcast i8*%K to void(...)**
store void(...)*bitcast(i8*(i8*,i32)*@_SMLL7argTyFn_116 to void(...)*),void(...)**%L,align 8
%M=getelementptr inbounds i8,i8*%F,i64 16
%N=bitcast i8*%M to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL7argTyFn_202 to void(...)*),void(...)**%N,align 8
%O=getelementptr inbounds i8,i8*%F,i64 24
%P=bitcast i8*%O to i32*
store i32 -2147483647,i32*%P,align 4
ret i8*%F
}
define internal fastcc i8*@_SMLL7argTyFn_118(i8*inreg%a,i32 inreg%b)#2 gc"smlsharp"{
j:
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%c,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%h,label%f
f:
call void@sml_check(i32 inreg%d)
%g=load i8*,i8**%c,align 8
br label%h
h:
%i=phi i8*[%g,%f],[%a,%j]
%k=getelementptr inbounds i8,i8*%i,i64 16
%l=bitcast i8*%k to i8**
%m=load i8*,i8**%l,align 8
%n=getelementptr inbounds i8,i8*%i,i64 8
%o=bitcast i8*%n to i8***
%p=load i8**,i8***%o,align 8
%q=load i8*,i8**%p,align 8
%r=bitcast i8*%i to i8**
%s=load i8*,i8**%r,align 8
%t=tail call fastcc i8*@_SMLLN7EvalIty7evalItyE_105(i8*inreg%m,i8*inreg%q,i8*inreg%s)
ret i8*%t
}
define internal fastcc i8*@_SMLL7argTyFn_119(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
store i8*%b,i8**%c,align 8
%g=bitcast i8*%a to i8**
%h=load i8*,i8**%g,align 8
store i8*%h,i8**%d,align 8
%i=getelementptr inbounds i8,i8*%a,i64 8
%j=bitcast i8*%i to i8**
%k=load i8*,i8**%j,align 8
store i8*%k,i8**%e,align 8
%l=call i8*@sml_alloc(i32 inreg 28)#0
%m=getelementptr inbounds i8,i8*%l,i64 -4
%n=bitcast i8*%m to i32*
store i32 1342177304,i32*%n,align 4
store i8*%l,i8**%f,align 8
%o=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%p=bitcast i8*%l to i8**
store i8*%o,i8**%p,align 8
%q=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%r=getelementptr inbounds i8,i8*%l,i64 8
%s=bitcast i8*%r to i8**
store i8*%q,i8**%s,align 8
%t=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%u=getelementptr inbounds i8,i8*%l,i64 16
%v=bitcast i8*%u to i8**
store i8*%t,i8**%v,align 8
%w=getelementptr inbounds i8,i8*%l,i64 24
%x=bitcast i8*%w to i32*
store i32 7,i32*%x,align 4
%y=call i8*@sml_alloc(i32 inreg 28)#0
%z=getelementptr inbounds i8,i8*%y,i64 -4
%A=bitcast i8*%z to i32*
store i32 1342177304,i32*%A,align 4
%B=load i8*,i8**%f,align 8
%C=bitcast i8*%y to i8**
store i8*%B,i8**%C,align 8
%D=getelementptr inbounds i8,i8*%y,i64 8
%E=bitcast i8*%D to void(...)**
store void(...)*bitcast(i8*(i8*,i32)*@_SMLL7argTyFn_118 to void(...)*),void(...)**%E,align 8
%F=getelementptr inbounds i8,i8*%y,i64 16
%G=bitcast i8*%F to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL7argTyFn_203 to void(...)*),void(...)**%G,align 8
%H=getelementptr inbounds i8,i8*%y,i64 24
%I=bitcast i8*%H to i32*
store i32 -2147483647,i32*%I,align 4
ret i8*%y
}
define internal fastcc i8*@_SMLLN7EvalIty8evalTfunE_120(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
l:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%c,align 8
store i8*%b,i8**%d,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%j,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%d,align 8
%i=load i8*,i8**%c,align 8
br label%j
j:
%k=phi i8*[%i,%g],[%a,%l]
%m=phi i8*[%h,%g],[%b,%l]
%n=getelementptr inbounds i8,i8*%k,i64 8
%o=bitcast i8*%n to i8**
%p=load i8*,i8**%o,align 8
%q=bitcast i8*%k to i8**
%r=load i8*,i8**%q,align 8
%s=tail call fastcc i8*@_SMLLN7EvalIty7evalItyE_105(i8*inreg%p,i8*inreg%r,i8*inreg%m)
ret i8*%s
}
define internal fastcc i8*@_SMLL6fields_142(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
l:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%c,align 8
store i8*%b,i8**%d,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%j,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%d,align 8
%i=load i8*,i8**%c,align 8
br label%j
j:
%k=phi i8*[%i,%g],[%a,%l]
%m=phi i8*[%h,%g],[%b,%l]
%n=getelementptr inbounds i8,i8*%k,i64 8
%o=bitcast i8*%n to i8**
%p=load i8*,i8**%o,align 8
%q=bitcast i8*%k to i8**
%r=load i8*,i8**%q,align 8
%s=tail call fastcc i8*@_SMLLN7EvalIty7evalItyE_105(i8*inreg%p,i8*inreg%r,i8*inreg%m)
ret i8*%s
}
define internal fastcc i8*@_SMLL4args_143(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
l:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%c,align 8
store i8*%b,i8**%d,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%j,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%d,align 8
%i=load i8*,i8**%c,align 8
br label%j
j:
%k=phi i8*[%i,%g],[%a,%l]
%m=phi i8*[%h,%g],[%b,%l]
%n=getelementptr inbounds i8,i8*%k,i64 8
%o=bitcast i8*%n to i8**
%p=load i8*,i8**%o,align 8
%q=bitcast i8*%k to i8**
%r=load i8*,i8**%q,align 8
%s=tail call fastcc i8*@_SMLLN7EvalIty7evalItyE_105(i8*inreg%p,i8*inreg%r,i8*inreg%m)
ret i8*%s
}
define internal fastcc i8*@_SMLL4args_148(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
l:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%c,align 8
store i8*%b,i8**%d,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%j,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%d,align 8
%i=load i8*,i8**%c,align 8
br label%j
j:
%k=phi i8*[%i,%g],[%a,%l]
%m=phi i8*[%h,%g],[%b,%l]
%n=getelementptr inbounds i8,i8*%k,i64 8
%o=bitcast i8*%n to i8**
%p=load i8*,i8**%o,align 8
%q=bitcast i8*%k to i8**
%r=load i8*,i8**%q,align 8
%s=tail call fastcc i8*@_SMLLN7EvalIty7evalItyE_105(i8*inreg%p,i8*inreg%r,i8*inreg%m)
ret i8*%s
}
define internal fastcc i8*@_SMLL7tvarEnv_149(i8*inreg%a)#2 gc"smlsharp"{
l:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%b,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%j,label%h
h:
call void@sml_check(i32 inreg%f)
%i=load i8*,i8**%b,align 8
br label%j
j:
%k=phi i8*[%i,%h],[%a,%l]
%m=bitcast i8*%k to i8**
%n=bitcast i8*%k to i8***
%o=load i8**,i8***%n,align 8
%p=load i8*,i8**%o,align 8
store i8*%p,i8**%b,align 8
%q=load i8*,i8**%m,align 8
%r=getelementptr inbounds i8,i8*%q,i64 8
%s=bitcast i8*%r to i8**
%t=load i8*,i8**%s,align 8
store i8*%t,i8**%c,align 8
%u=getelementptr inbounds i8,i8*%k,i64 8
%v=bitcast i8*%u to i8**
%w=load i8*,i8**%v,align 8
store i8*%w,i8**%d,align 8
%x=call fastcc i8*@_SMLFN7TvarMap6insertE(i32 inreg 1,i32 inreg 8)
%y=getelementptr inbounds i8,i8*%x,i64 16
%z=bitcast i8*%y to i8*(i8*,i8*)**
%A=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%z,align 8
%B=bitcast i8*%x to i8**
%C=load i8*,i8**%B,align 8
store i8*%C,i8**%e,align 8
%D=call i8*@sml_alloc(i32 inreg 28)#0
%E=getelementptr inbounds i8,i8*%D,i64 -4
%F=bitcast i8*%E to i32*
store i32 1342177304,i32*%F,align 4
%G=load i8*,i8**%d,align 8
%H=bitcast i8*%D to i8**
store i8*%G,i8**%H,align 8
%I=load i8*,i8**%b,align 8
%J=getelementptr inbounds i8,i8*%D,i64 8
%K=bitcast i8*%J to i8**
store i8*%I,i8**%K,align 8
%L=load i8*,i8**%c,align 8
%M=getelementptr inbounds i8,i8*%D,i64 16
%N=bitcast i8*%M to i8**
store i8*%L,i8**%N,align 8
%O=getelementptr inbounds i8,i8*%D,i64 24
%P=bitcast i8*%O to i32*
store i32 7,i32*%P,align 4
%Q=load i8*,i8**%e,align 8
%R=tail call fastcc i8*%A(i8*inreg%Q,i8*inreg%D)
ret i8*%R
}
define internal fastcc i8*@_SMLLN7EvalIty7evalItyE_151(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
l:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%c,align 8
store i8*%b,i8**%d,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%j,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%d,align 8
%i=load i8*,i8**%c,align 8
br label%j
j:
%k=phi i8*[%i,%g],[%a,%l]
%m=phi i8*[%h,%g],[%b,%l]
%n=getelementptr inbounds i8,i8*%k,i64 8
%o=bitcast i8*%n to i8**
%p=load i8*,i8**%o,align 8
%q=bitcast i8*%k to i8**
%r=load i8*,i8**%q,align 8
%s=tail call fastcc i8*@_SMLLN7EvalIty7evalItyE_105(i8*inreg%p,i8*inreg%r,i8*inreg%m)
ret i8*%s
}
define internal fastcc i8*@_SMLL10boundOtset_156(i8*inreg%a)#2 gc"smlsharp"{
k:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%b,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%i,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%b,align 8
br label%i
i:
%j=phi i8*[%h,%g],[%a,%k]
%l=bitcast i8*%j to i8**
%m=load i8*,i8**%l,align 8
%n=icmp eq i8*%m,null
br i1%n,label%P,label%o
o:
%p=bitcast i8*%m to i32*
%q=load i32,i32*%p,align 4
%r=icmp eq i32%q,10
br i1%r,label%s,label%P
s:
%t=getelementptr inbounds i8,i8*%m,i64 8
%u=bitcast i8*%t to i8**
%v=load i8*,i8**%u,align 8
store i8*%v,i8**%b,align 8
%w=bitcast i8*%v to i32**
%x=load i32*,i32**%w,align 8
%y=load i32,i32*%x,align 4
%z=icmp eq i32%y,1
br i1%z,label%A,label%P
A:
%B=getelementptr inbounds i8,i8*%j,i64 8
%C=bitcast i8*%B to i8**
%D=load i8*,i8**%C,align 8
store i8*%D,i8**%c,align 8
%E=call i8*@sml_alloc(i32 inreg 20)#0
%F=getelementptr inbounds i8,i8*%E,i64 -4
%G=bitcast i8*%F to i32*
store i32 1342177296,i32*%G,align 4
%H=load i8*,i8**%c,align 8
%I=bitcast i8*%E to i8**
store i8*%H,i8**%I,align 8
%J=load i8*,i8**%b,align 8
%K=getelementptr inbounds i8,i8*%E,i64 8
%L=bitcast i8*%K to i8**
store i8*%J,i8**%L,align 8
%M=getelementptr inbounds i8,i8*%E,i64 16
%N=bitcast i8*%M to i32*
store i32 3,i32*%N,align 4
%O=tail call fastcc i8*@_SMLFN5OTSet3addE(i8*inreg%E)
ret i8*%O
P:
%Q=load i8*,i8**@_SMLZN3Bug3BugE,align 8
store i8*%Q,i8**%b,align 8
%R=call fastcc i8*@_SMLFN6String1_ZE(i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,i8*,i32}>,<{[4x i8],i32,i8*,i8*,i32}>*@y,i64 0,i32 2)to i8*))
store i8*%R,i8**%c,align 8
%S=call i8*@sml_alloc(i32 inreg 28)#0
%T=getelementptr inbounds i8,i8*%S,i64 -4
%U=bitcast i8*%T to i32*
store i32 1342177304,i32*%U,align 4
store i8*%S,i8**%d,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,[60x i8]}>,<{[4x i8],i32,[60x i8]}>*@v,i64 0,i32 2,i64 0),i8**%Y,align 8
%Z=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aa=getelementptr inbounds i8,i8*%S,i64 16
%ab=bitcast i8*%aa to i8**
store i8*%Z,i8**%ab,align 8
%ac=getelementptr inbounds i8,i8*%S,i64 24
%ad=bitcast i8*%ac to i32*
store i32 7,i32*%ad,align 4
%ae=call i8*@sml_alloc(i32 inreg 60)#0
%af=getelementptr inbounds i8,i8*%ae,i64 -4
%ag=bitcast i8*%af to i32*
store i32 1342177336,i32*%ag,align 4
%ah=getelementptr inbounds i8,i8*%ae,i64 56
%ai=bitcast i8*%ah to i32*
store i32 1,i32*%ai,align 4
%aj=load i8*,i8**%d,align 8
%ak=bitcast i8*%ae to i8**
store i8*%aj,i8**%ak,align 8
call void@sml_raise(i8*inreg%ae)#1
unreachable
}
define internal fastcc i32@_SMLL4tids_158(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%d,align 8
store i8*%b,i8**%c,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%g,label%i
g:
%h=bitcast i8*%a to i8**
br label%l
i:
call void@sml_check(i32 inreg%e)
%j=bitcast i8**%d to i8***
%k=load i8**,i8***%j,align 8
br label%l
l:
%m=phi i8**[%k,%i],[%h,%g]
%n=load i8*,i8**%m,align 8
store i8*%n,i8**%d,align 8
%o=call i8*@sml_alloc(i32 inreg 20)#0
%p=getelementptr inbounds i8,i8*%o,i64 -4
%q=bitcast i8*%p to i32*
store i32 1342177296,i32*%q,align 4
%r=load i8*,i8**%d,align 8
%s=bitcast i8*%o to i8**
store i8*%r,i8**%s,align 8
%t=load i8*,i8**%c,align 8
%u=getelementptr inbounds i8,i8*%o,i64 8
%v=bitcast i8*%u to i8**
store i8*%t,i8**%v,align 8
%w=getelementptr inbounds i8,i8*%o,i64 16
%x=bitcast i8*%w to i32*
store i32 3,i32*%x,align 4
%y=tail call fastcc i32@_SMLFN5OTSet6memberE(i8*inreg%o)
ret i32%y
}
define internal fastcc i8*@_SMLL4btvs_161(i8*inreg%a)#2 gc"smlsharp"{
l:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%b,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%j,label%h
h:
call void@sml_check(i32 inreg%f)
%i=load i8*,i8**%b,align 8
br label%j
j:
%k=phi i8*[%i,%h],[%a,%l]
%m=bitcast i8*%k to i8**
%n=load i8*,i8**%m,align 8
store i8*%n,i8**%b,align 8
%o=bitcast i8*%n to i8**
%p=load i8*,i8**%o,align 8
%q=bitcast i8*%p to i32*
%r=load i32,i32*%q,align 4
%s=icmp eq i32%r,1
br i1%s,label%N,label%t
t:
%u=load i8*,i8**@_SMLZN3Bug3BugE,align 8
store i8*%u,i8**%b,align 8
%v=call i8*@sml_alloc(i32 inreg 28)#0
%w=getelementptr inbounds i8,i8*%v,i64 -4
%x=bitcast i8*%w to i32*
store i32 1342177304,i32*%x,align 4
store i8*%v,i8**%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
%A=getelementptr inbounds i8,i8*%v,i64 8
%B=bitcast i8*%A to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[62x i8]}>,<{[4x i8],i32,[62x i8]}>*@A,i64 0,i32 2,i64 0),i8**%B,align 8
%C=getelementptr inbounds i8,i8*%v,i64 16
%D=bitcast i8*%C to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[13x i8]}>,<{[4x i8],i32,[13x i8]}>*@B,i64 0,i32 2,i64 0),i8**%D,align 8
%E=getelementptr inbounds i8,i8*%v,i64 24
%F=bitcast i8*%E to i32*
store i32 7,i32*%F,align 4
%G=call i8*@sml_alloc(i32 inreg 60)#0
%H=getelementptr inbounds i8,i8*%G,i64 -4
%I=bitcast i8*%H to i32*
store i32 1342177336,i32*%I,align 4
%J=getelementptr inbounds i8,i8*%G,i64 56
%K=bitcast i8*%J to i32*
store i32 1,i32*%K,align 4
%L=load i8*,i8**%c,align 8
%M=bitcast i8*%G to i8**
store i8*%L,i8**%M,align 8
call void@sml_raise(i8*inreg%G)#1
unreachable
N:
%O=getelementptr inbounds i8,i8*%p,i64 8
%P=bitcast i8*%O to i8**
%Q=load i8*,i8**%P,align 8
%R=getelementptr inbounds i8,i8*%Q,i64 8
%S=bitcast i8*%R to i8**
%T=load i8*,i8**%S,align 8
store i8*%T,i8**%c,align 8
%U=getelementptr inbounds i8,i8*%k,i64 8
%V=bitcast i8*%U to i8**
%W=load i8*,i8**%V,align 8
store i8*%W,i8**%d,align 8
%X=call fastcc i32@_SMLFN14BoundTypeVarID8generateE(i32 inreg 0)
%Y=call i8*@sml_alloc(i32 inreg 12)#0
%Z=bitcast i8*%Y to i32*
%aa=getelementptr inbounds i8,i8*%Y,i64 -4
%ab=bitcast i8*%aa to i32*
store i32 1342177288,i32*%ab,align 4
store i8*%Y,i8**%e,align 8
store i32 1,i32*%Z,align 4
%ac=getelementptr inbounds i8,i8*%Y,i64 4
%ad=bitcast i8*%ac to i32*
store i32%X,i32*%ad,align 4
%ae=getelementptr inbounds i8,i8*%Y,i64 8
%af=bitcast i8*%ae to i32*
store i32 0,i32*%af,align 4
%ag=call i8*@sml_alloc(i32 inreg 20)#0
%ah=getelementptr inbounds i8,i8*%ag,i64 -4
%ai=bitcast i8*%ah to i32*
store i32 1342177296,i32*%ai,align 4
%aj=bitcast i8*%ag to i64*
store i64 0,i64*%aj,align 4
%ak=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%al=getelementptr inbounds i8,i8*%ag,i64 8
%am=bitcast i8*%al to i8**
store i8*%ak,i8**%am,align 8
%an=getelementptr inbounds i8,i8*%ag,i64 16
%ao=bitcast i8*%an to i32*
store i32 2,i32*%ao,align 4
%ap=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aq=bitcast i8*%ap to i8**
call void@sml_write(i8*inreg%ap,i8**inreg%aq,i8*inreg%ag)#0
%ar=call fastcc i8*@_SMLFN14BoundTypeVarID3Map6insertE(i32 inreg 1,i32 inreg 8)
%as=getelementptr inbounds i8,i8*%ar,i64 16
%at=bitcast i8*%as to i8*(i8*,i8*)**
%au=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%at,align 8
%av=bitcast i8*%ar to i8**
%aw=load i8*,i8**%av,align 8
store i8*%aw,i8**%b,align 8
%ax=call i8*@sml_alloc(i32 inreg 28)#0
%ay=getelementptr inbounds i8,i8*%ax,i64 -4
%az=bitcast i8*%ay to i32*
store i32 1342177304,i32*%az,align 4
%aA=getelementptr inbounds i8,i8*%ax,i64 12
%aB=bitcast i8*%aA to i32*
store i32 0,i32*%aB,align 1
%aC=load i8*,i8**%d,align 8
%aD=bitcast i8*%ax to i8**
store i8*%aC,i8**%aD,align 8
%aE=getelementptr inbounds i8,i8*%ax,i64 8
%aF=bitcast i8*%aE to i32*
store i32%X,i32*%aF,align 4
%aG=load i8*,i8**%c,align 8
%aH=getelementptr inbounds i8,i8*%ax,i64 16
%aI=bitcast i8*%aH to i8**
store i8*%aG,i8**%aI,align 8
%aJ=getelementptr inbounds i8,i8*%ax,i64 24
%aK=bitcast i8*%aJ to i32*
store i32 5,i32*%aK,align 4
%aL=load i8*,i8**%b,align 8
%aM=tail call fastcc i8*%au(i8*inreg%aL,i8*inreg%ax)
ret i8*%aM
}
define internal fastcc i8*@_SMLLN7EvalIty12evalFreeTvarE_164(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
l:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%c,align 8
store i8*%b,i8**%d,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%j,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%d,align 8
%i=load i8*,i8**%c,align 8
br label%j
j:
%k=phi i8*[%i,%g],[%a,%l]
%m=phi i8*[%h,%g],[%b,%l]
%n=getelementptr inbounds i8,i8*%k,i64 8
%o=bitcast i8*%n to i8**
%p=load i8*,i8**%o,align 8
%q=bitcast i8*%k to i8**
%r=load i8*,i8**%q,align 8
%s=tail call fastcc i8*@_SMLLN7EvalIty7evalItyE_105(i8*inreg%p,i8*inreg%r,i8*inreg%m)
ret i8*%s
}
define internal fastcc i8*@_SMLL6genBtv_166(i8*inreg%a)#2 gc"smlsharp"{
n:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
store i8*%a,i8**%b,align 8
%h=load atomic i32,i32*@sml_check_flag unordered,align 4
%i=icmp eq i32%h,0
br i1%i,label%l,label%j
j:
call void@sml_check(i32 inreg%h)
%k=load i8*,i8**%b,align 8
br label%l
l:
%m=phi i8*[%k,%j],[%a,%n]
%o=bitcast i8*%m to i8**
%p=bitcast i8*%m to i8***
%q=load i8**,i8***%p,align 8
%r=load i8*,i8**%q,align 8
store i8*%r,i8**%b,align 8
%s=getelementptr inbounds i8,i8*%r,i64 4
%t=bitcast i8*%s to i32*
%u=load i32,i32*%t,align 4
%v=load i8*,i8**%o,align 8
%w=getelementptr inbounds i8,i8*%v,i64 8
%x=bitcast i8*%w to i8**
%y=load i8*,i8**%x,align 8
store i8*%y,i8**%c,align 8
%z=getelementptr inbounds i8,i8*%m,i64 8
%A=bitcast i8*%z to i8***
%B=load i8**,i8***%A,align 8
%C=load i8*,i8**%B,align 8
store i8*%C,i8**%d,align 8
%D=getelementptr inbounds i8*,i8**%B,i64 1
%E=load i8*,i8**%D,align 8
store i8*%E,i8**%e,align 8
%F=call fastcc i32@_SMLFN14BoundTypeVarID8generateE(i32 inreg 0)
%G=call i8*@sml_alloc(i32 inreg 12)#0
%H=bitcast i8*%G to i32*
%I=getelementptr inbounds i8,i8*%G,i64 -4
%J=bitcast i8*%I to i32*
store i32 1342177288,i32*%J,align 4
store i8*%G,i8**%g,align 8
store i32 1,i32*%H,align 4
%K=getelementptr inbounds i8,i8*%G,i64 4
%L=bitcast i8*%K to i32*
store i32%F,i32*%L,align 4
%M=getelementptr inbounds i8,i8*%G,i64 8
%N=bitcast i8*%M to i32*
store i32 0,i32*%N,align 4
%O=call fastcc i8*@_SMLFN7TvarMap6insertE(i32 inreg 1,i32 inreg 8)
%P=getelementptr inbounds i8,i8*%O,i64 16
%Q=bitcast i8*%P to i8*(i8*,i8*)**
%R=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%Q,align 8
%S=bitcast i8*%O to i8**
%T=load i8*,i8**%S,align 8
store i8*%T,i8**%f,align 8
%U=call i8*@sml_alloc(i32 inreg 28)#0
%V=getelementptr inbounds i8,i8*%U,i64 -4
%W=bitcast i8*%V to i32*
store i32 1342177304,i32*%W,align 4
%X=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%Y=bitcast i8*%U to i8**
store i8*%X,i8**%Y,align 8
%Z=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aa=getelementptr inbounds i8,i8*%U,i64 8
%ab=bitcast i8*%aa to i8**
store i8*%Z,i8**%ab,align 8
%ac=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%ad=getelementptr inbounds i8,i8*%U,i64 16
%ae=bitcast i8*%ad to i8**
store i8*%ac,i8**%ae,align 8
%af=getelementptr inbounds i8,i8*%U,i64 24
%ag=bitcast i8*%af to i32*
store i32 7,i32*%ag,align 4
%ah=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%ai=call fastcc i8*%R(i8*inreg%ah,i8*inreg%U)
store i8*%ai,i8**%b,align 8
%aj=call i8*@sml_alloc(i32 inreg 20)#0
%ak=bitcast i8*%aj to i32*
%al=getelementptr inbounds i8,i8*%aj,i64 -4
%am=bitcast i8*%al to i32*
store i32 1342177296,i32*%am,align 4
store i8*%aj,i8**%e,align 8
store i32%F,i32*%ak,align 4
%an=getelementptr inbounds i8,i8*%aj,i64 4
%ao=bitcast i8*%an to i32*
store i32%u,i32*%ao,align 4
%ap=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aq=getelementptr inbounds i8,i8*%aj,i64 8
%ar=bitcast i8*%aq to i8**
store i8*%ap,i8**%ar,align 8
%as=getelementptr inbounds i8,i8*%aj,i64 16
%at=bitcast i8*%as to i32*
store i32 2,i32*%at,align 4
%au=call i8*@sml_alloc(i32 inreg 20)#0
%av=getelementptr inbounds i8,i8*%au,i64 -4
%aw=bitcast i8*%av to i32*
store i32 1342177296,i32*%aw,align 4
store i8*%au,i8**%c,align 8
%ax=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%ay=bitcast i8*%au to i8**
store i8*%ax,i8**%ay,align 8
%az=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aA=getelementptr inbounds i8,i8*%au,i64 8
%aB=bitcast i8*%aA to i8**
store i8*%az,i8**%aB,align 8
%aC=getelementptr inbounds i8,i8*%au,i64 16
%aD=bitcast i8*%aC to i32*
store i32 3,i32*%aD,align 4
%aE=call i8*@sml_alloc(i32 inreg 20)#0
%aF=getelementptr inbounds i8,i8*%aE,i64 -4
%aG=bitcast i8*%aF to i32*
store i32 1342177296,i32*%aG,align 4
%aH=load i8*,i8**%c,align 8
%aI=bitcast i8*%aE to i8**
store i8*%aH,i8**%aI,align 8
%aJ=load i8*,i8**%b,align 8
%aK=getelementptr inbounds i8,i8*%aE,i64 8
%aL=bitcast i8*%aK to i8**
store i8*%aJ,i8**%aL,align 8
%aM=getelementptr inbounds i8,i8*%aE,i64 16
%aN=bitcast i8*%aM to i32*
store i32 3,i32*%aN,align 4
ret i8*%aE
}
define internal fastcc i8*@_SMLL8evalKind_168(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
l:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%c,align 8
store i8*%b,i8**%d,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%j,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%d,align 8
%i=load i8*,i8**%c,align 8
br label%j
j:
%k=phi i8*[%i,%g],[%a,%l]
%m=phi i8*[%h,%g],[%b,%l]
%n=getelementptr inbounds i8,i8*%k,i64 8
%o=bitcast i8*%n to i8**
%p=load i8*,i8**%o,align 8
%q=bitcast i8*%k to i8**
%r=load i8*,i8**%q,align 8
%s=tail call fastcc i8*@_SMLLN7EvalIty7evalItyE_105(i8*inreg%p,i8*inreg%r,i8*inreg%m)
ret i8*%s
}
define internal fastcc i8*@_SMLL8evalKind_170(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
o:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
%h=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
call void@llvm.gcroot(i8**%h,i8*null)#0
store i8*%a,i8**%e,align 8
store i8*%b,i8**%c,align 8
%i=load atomic i32,i32*@sml_check_flag unordered,align 4
%j=icmp eq i32%i,0
br i1%j,label%m,label%k
k:
call void@sml_check(i32 inreg%i)
%l=load i8*,i8**%c,align 8
br label%m
m:
%n=phi i8*[%l,%k],[%b,%o]
%p=bitcast i8*%n to i32*
%q=load i32,i32*%p,align 4
switch i32%q,label%r[
i32 1,label%a2
i32 0,label%J
]
r:
store i8*null,i8**%e,align 8
call void@sml_matchcomp_bug()
%s=load i8*,i8**@_SMLZ5Match,align 8
store i8*%s,i8**%c,align 8
%t=call i8*@sml_alloc(i32 inreg 20)#0
%u=getelementptr inbounds i8,i8*%t,i64 -4
%v=bitcast i8*%u to i32*
store i32 1342177296,i32*%v,align 4
store i8*%t,i8**%d,align 8
%w=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%x=bitcast i8*%t to i8**
store i8*%w,i8**%x,align 8
%y=getelementptr inbounds i8,i8*%t,i64 8
%z=bitcast i8*%y to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[63x i8]}>,<{[4x i8],i32,[63x i8]}>*@G,i64 0,i32 2,i64 0),i8**%z,align 8
%A=getelementptr inbounds i8,i8*%t,i64 16
%B=bitcast i8*%A to i32*
store i32 3,i32*%B,align 4
%C=call i8*@sml_alloc(i32 inreg 60)#0
%D=getelementptr inbounds i8,i8*%C,i64 -4
%E=bitcast i8*%D to i32*
store i32 1342177336,i32*%E,align 4
%F=getelementptr inbounds i8,i8*%C,i64 56
%G=bitcast i8*%F to i32*
store i32 1,i32*%G,align 4
%H=load i8*,i8**%d,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:
%K=getelementptr inbounds i8,i8*%n,i64 8
%L=bitcast i8*%K to i8**
%M=load i8*,i8**%L,align 8
store i8*%M,i8**%c,align 8
%N=bitcast i8*%M to i8**
%O=load i8*,i8**%N,align 8
store i8*%O,i8**%d,align 8
%P=call fastcc i8*@_SMLFN11RecordLabel3Map3mapE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%Q=getelementptr inbounds i8,i8*%P,i64 16
%R=bitcast i8*%Q to i8*(i8*,i8*)**
%S=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%R,align 8
%T=bitcast i8*%P to i8**
%U=load i8*,i8**%T,align 8
store i8*%U,i8**%g,align 8
%V=bitcast i8**%e to i8***
%W=load i8**,i8***%V,align 8
%X=load i8*,i8**%W,align 8
store i8*%X,i8**%f,align 8
%Y=getelementptr inbounds i8*,i8**%W,i64 1
%Z=load i8*,i8**%Y,align 8
store i8*%Z,i8**%e,align 8
%aa=call i8*@sml_alloc(i32 inreg 20)#0
%ab=getelementptr inbounds i8,i8*%aa,i64 -4
%ac=bitcast i8*%ab to i32*
store i32 1342177296,i32*%ac,align 4
store i8*%aa,i8**%h,align 8
%ad=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%ae=bitcast i8*%aa to i8**
store i8*%ad,i8**%ae,align 8
%af=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%ag=getelementptr inbounds i8,i8*%aa,i64 8
%ah=bitcast i8*%ag to i8**
store i8*%af,i8**%ah,align 8
%ai=getelementptr inbounds i8,i8*%aa,i64 16
%aj=bitcast i8*%ai to i32*
store i32 3,i32*%aj,align 4
%ak=call i8*@sml_alloc(i32 inreg 28)#0
%al=getelementptr inbounds i8,i8*%ak,i64 -4
%am=bitcast i8*%al to i32*
store i32 1342177304,i32*%am,align 4
%an=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%ao=bitcast i8*%ak to i8**
store i8*%an,i8**%ao,align 8
%ap=getelementptr inbounds i8,i8*%ak,i64 8
%aq=bitcast i8*%ap to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL8evalKind_168 to void(...)*),void(...)**%aq,align 8
%ar=getelementptr inbounds i8,i8*%ak,i64 16
%as=bitcast i8*%ar to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL8evalKind_168 to void(...)*),void(...)**%as,align 8
%at=getelementptr inbounds i8,i8*%ak,i64 24
%au=bitcast i8*%at to i32*
store i32 -2147483647,i32*%au,align 4
%av=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%aw=call fastcc i8*%S(i8*inreg%av,i8*inreg%ak)
%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
%aA=bitcast i8*%aw to i8**
%aB=load i8*,i8**%aA,align 8
%aC=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aD=getelementptr inbounds i8,i8*%aC,i64 8
%aE=bitcast i8*%aD to i8**
%aF=load i8*,i8**%aE,align 8
%aG=call fastcc i8*%az(i8*inreg%aB,i8*inreg%aF)
store i8*%aG,i8**%c,align 8
%aH=call i8*@sml_alloc(i32 inreg 20)#0
%aI=getelementptr inbounds i8,i8*%aH,i64 -4
%aJ=bitcast i8*%aI to i32*
store i32 1342177296,i32*%aJ,align 4
store i8*%aH,i8**%e,align 8
%aK=getelementptr inbounds i8,i8*%aH,i64 4
%aL=bitcast i8*%aK to i32*
store i32 0,i32*%aL,align 1
%aM=bitcast i8*%aH to i32*
store i32 2,i32*%aM,align 4
%aN=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aO=getelementptr inbounds i8,i8*%aH,i64 8
%aP=bitcast i8*%aO to i8**
store i8*%aN,i8**%aP,align 8
%aQ=getelementptr inbounds i8,i8*%aH,i64 16
%aR=bitcast i8*%aQ to i32*
store i32 2,i32*%aR,align 4
%aS=call i8*@sml_alloc(i32 inreg 20)#0
%aT=getelementptr inbounds i8,i8*%aS,i64 -4
%aU=bitcast i8*%aT to i32*
store i32 1342177296,i32*%aU,align 4
%aV=load i8*,i8**%d,align 8
%aW=bitcast i8*%aS to i8**
store i8*%aV,i8**%aW,align 8
%aX=load i8*,i8**%e,align 8
%aY=getelementptr inbounds i8,i8*%aS,i64 8
%aZ=bitcast i8*%aY to i8**
store i8*%aX,i8**%aZ,align 8
%a0=getelementptr inbounds i8,i8*%aS,i64 16
%a1=bitcast i8*%a0 to i32*
store i32 3,i32*%a1,align 4
ret i8*%aS
a2:
store i8*null,i8**%e,align 8
%a3=getelementptr inbounds i8,i8*%n,i64 8
%a4=bitcast i8*%a3 to i8**
%a5=load i8*,i8**%a4,align 8
store i8*%a5,i8**%c,align 8
%a6=call i8*@sml_alloc(i32 inreg 20)#0
%a7=getelementptr inbounds i8,i8*%a6,i64 -4
%a8=bitcast i8*%a7 to i32*
store i32 1342177296,i32*%a8,align 4
%a9=load i8*,i8**%c,align 8
%ba=bitcast i8*%a6 to i8**
store i8*%a9,i8**%ba,align 8
%bb=getelementptr inbounds i8,i8*%a6,i64 8
%bc=bitcast i8*%bb to i8**
store i8*null,i8**%bc,align 8
%bd=getelementptr inbounds i8,i8*%a6,i64 16
%be=bitcast i8*%bd to i32*
store i32 3,i32*%be,align 4
ret i8*%a6
}
define internal fastcc i8*@_SMLL8evalKind_171(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
%f=bitcast i8*%a to i8**
%g=load i8*,i8**%f,align 8
store i8*%g,i8**%c,align 8
%h=getelementptr inbounds i8,i8*%a,i64 8
%i=bitcast i8*%h to i8**
%j=load i8*,i8**%i,align 8
store i8*%j,i8**%d,align 8
%k=call i8*@sml_alloc(i32 inreg 20)#0
%l=getelementptr inbounds i8,i8*%k,i64 -4
%m=bitcast i8*%l to i32*
store i32 1342177296,i32*%m,align 4
store i8*%k,i8**%e,align 8
%n=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%o=bitcast i8*%k to i8**
store i8*%n,i8**%o,align 8
%p=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%q=getelementptr inbounds i8,i8*%k,i64 8
%r=bitcast i8*%q to i8**
store i8*%p,i8**%r,align 8
%s=getelementptr inbounds i8,i8*%k,i64 16
%t=bitcast i8*%s to i32*
store i32 3,i32*%t,align 4
%u=call i8*@sml_alloc(i32 inreg 28)#0
%v=getelementptr inbounds i8,i8*%u,i64 -4
%w=bitcast i8*%v to i32*
store i32 1342177304,i32*%w,align 4
%x=load i8*,i8**%e,align 8
%y=bitcast i8*%u to i8**
store i8*%x,i8**%y,align 8
%z=getelementptr inbounds i8,i8*%u,i64 8
%A=bitcast i8*%z to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL8evalKind_170 to void(...)*),void(...)**%A,align 8
%B=getelementptr inbounds i8,i8*%u,i64 16
%C=bitcast i8*%B to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL8evalKind_170 to void(...)*),void(...)**%C,align 8
%D=getelementptr inbounds i8,i8*%u,i64 24
%E=bitcast i8*%D to i32*
store i32 -2147483647,i32*%E,align 4
ret i8*%u
}
define internal fastcc i8*@_SMLL6btvEnv_172(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
o:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
store i8*%a,i8**%c,align 8
store i8*%b,i8**%d,align 8
%h=load atomic i32,i32*@sml_check_flag unordered,align 4
%i=icmp eq i32%h,0
br i1%i,label%m,label%j
j:
call void@sml_check(i32 inreg%h)
%k=load i8*,i8**%d,align 8
%l=load i8*,i8**%c,align 8
br label%m
m:
%n=phi i8*[%l,%j],[%a,%o]
%p=phi i8*[%k,%j],[%b,%o]
%q=bitcast i8*%p to i32**
%r=load i32*,i32**%q,align 8
%s=load i32,i32*%r,align 4
%t=getelementptr inbounds i8,i8*%p,i64 8
%u=bitcast i8*%t to i8**
%v=load i8*,i8**%u,align 8
store i8*%v,i8**%f,align 8
%w=getelementptr inbounds i8,i8*%n,i64 8
%x=bitcast i8*%w to i8**
%y=load i8*,i8**%x,align 8
store i8*null,i8**%c,align 8
%z=bitcast i8*%n to i8**
%A=load i8*,i8**%z,align 8
%B=call fastcc i8*@_SMLL8evalKind_171(i8*inreg%y,i8*inreg%A)
%C=getelementptr inbounds i8,i8*%B,i64 16
%D=bitcast i8*%C to i8*(i8*,i8*)**
%E=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%D,align 8
%F=bitcast i8*%B to i8**
%G=load i8*,i8**%F,align 8
%H=bitcast i8**%d to i8***
%I=load i8**,i8***%H,align 8
%J=load i8*,i8**%I,align 8
%K=getelementptr inbounds i8,i8*%J,i64 8
%L=bitcast i8*%K to i8**
%M=load i8*,i8**%L,align 8
%N=call fastcc i8*%E(i8*inreg%G,i8*inreg%M)
store i8*%N,i8**%e,align 8
%O=getelementptr inbounds i8,i8*%N,i64 8
%P=bitcast i8*%O to i8**
%Q=load i8*,i8**%P,align 8
store i8*%Q,i8**%c,align 8
%R=load i8**,i8***%H,align 8
%S=load i8*,i8**%R,align 8
%T=getelementptr inbounds i8,i8*%S,i64 4
%U=bitcast i8*%T to i32*
%V=load i32,i32*%U,align 4
%W=icmp eq i32%V,0
br i1%W,label%ai,label%X
X:
%Y=call fastcc i8*@_SMLFN5Types13addPropertiesE(i32 inreg 1)
%Z=getelementptr inbounds i8,i8*%Y,i64 16
%aa=bitcast i8*%Z to i8*(i8*,i8*)**
%ab=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aa,align 8
%ac=bitcast i8*%Y to i8**
%ad=load i8*,i8**%ac,align 8
%ae=bitcast i8**%e to i8***
%af=load i8**,i8***%ae,align 8
store i8*null,i8**%e,align 8
%ag=load i8*,i8**%af,align 8
%ah=call fastcc i8*%ab(i8*inreg%ad,i8*inreg%ag)
br label%al
ai:
%aj=bitcast i8*%N to i8**
store i8*null,i8**%e,align 8
%ak=load i8*,i8**%aj,align 8
br label%al
al:
%am=phi i8*[%ak,%ai],[%ah,%X]
store i8*%am,i8**%d,align 8
%an=call fastcc i8*@_SMLFN14BoundTypeVarID3Map6insertE(i32 inreg 1,i32 inreg 8)
%ao=getelementptr inbounds i8,i8*%an,i64 16
%ap=bitcast i8*%ao to i8*(i8*,i8*)**
%aq=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%ap,align 8
%ar=bitcast i8*%an to i8**
%as=load i8*,i8**%ar,align 8
store i8*%as,i8**%e,align 8
%at=call i8*@sml_alloc(i32 inreg 28)#0
%au=getelementptr inbounds i8,i8*%at,i64 -4
%av=bitcast i8*%au to i32*
store i32 1342177304,i32*%av,align 4
store i8*%at,i8**%g,align 8
%aw=bitcast i8*%at to i8**
store i8*null,i8**%aw,align 8
%ax=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%ay=getelementptr inbounds i8,i8*%at,i64 8
%az=bitcast i8*%ay to i8**
store i8*%ax,i8**%az,align 8
%aA=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aB=getelementptr inbounds i8,i8*%at,i64 16
%aC=bitcast i8*%aB to i8**
store i8*%aA,i8**%aC,align 8
%aD=getelementptr inbounds i8,i8*%at,i64 24
%aE=bitcast i8*%aD to i32*
store i32 7,i32*%aE,align 4
%aF=call i8*@sml_alloc(i32 inreg 28)#0
%aG=getelementptr inbounds i8,i8*%aF,i64 -4
%aH=bitcast i8*%aG to i32*
store i32 1342177304,i32*%aH,align 4
%aI=getelementptr inbounds i8,i8*%aF,i64 12
%aJ=bitcast i8*%aI to i32*
store i32 0,i32*%aJ,align 1
%aK=load i8*,i8**%f,align 8
%aL=bitcast i8*%aF to i8**
store i8*%aK,i8**%aL,align 8
%aM=getelementptr inbounds i8,i8*%aF,i64 8
%aN=bitcast i8*%aM to i32*
store i32%s,i32*%aN,align 4
%aO=load i8*,i8**%g,align 8
%aP=getelementptr inbounds i8,i8*%aF,i64 16
%aQ=bitcast i8*%aP to i8**
store i8*%aO,i8**%aQ,align 8
%aR=getelementptr inbounds i8,i8*%aF,i64 24
%aS=bitcast i8*%aR to i32*
store i32 5,i32*%aS,align 4
%aT=load i8*,i8**%e,align 8
%aU=tail call fastcc i8*%aq(i8*inreg%aT,i8*inreg%aF)
ret i8*%aU
}
define internal fastcc i8*@_SMLLN7EvalIty11evalDtyKindE_103(i8*inreg%a,i8*inreg%b,i8*inreg%c)#2 gc"smlsharp"personality i32(...)*@sml_personality{
n:
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
store i8*%a,i8**%e,align 8
store i8*%b,i8**%d,align 8
store i8*%c,i8**%f,align 8
%g=load atomic i32,i32*@sml_check_flag unordered,align 4
%h=icmp eq i32%g,0
br i1%h,label%l,label%i
i:
call void@sml_check(i32 inreg%g)
%j=load i8*,i8**%f,align 8
%k=load i8*,i8**%d,align 8
br label%l
l:
%m=phi i8*[%k,%i],[%b,%n]
%o=phi i8*[%j,%i],[%c,%n]
store i8*null,i8**%f,align 8
%p=bitcast i8*%o to i32*
%q=load i32,i32*%p,align 4
switch i32%q,label%r[
i32 2,label%eZ
i32 0,label%eM
i32 1,label%ez
i32 4,label%b6
i32 3,label%J
]
r:
store i8*null,i8**%e,align 8
call void@sml_matchcomp_bug()
%s=load i8*,i8**@_SMLZ5Match,align 8
store i8*%s,i8**%d,align 8
%t=call i8*@sml_alloc(i32 inreg 20)#0
%u=getelementptr inbounds i8,i8*%t,i64 -4
%v=bitcast i8*%u to i32*
store i32 1342177296,i32*%v,align 4
store i8*%t,i8**%e,align 8
%w=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%x=bitcast i8*%t to i8**
store i8*%w,i8**%x,align 8
%y=getelementptr inbounds i8,i8*%t,i64 8
%z=bitcast i8*%y to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[60x i8]}>,<{[4x i8],i32,[60x i8]}>*@e,i64 0,i32 2,i64 0),i8**%z,align 8
%A=getelementptr inbounds i8,i8*%t,i64 16
%B=bitcast i8*%A to i32*
store i32 3,i32*%B,align 4
%C=call i8*@sml_alloc(i32 inreg 60)#0
%D=getelementptr inbounds i8,i8*%C,i64 -4
%E=bitcast i8*%D to i32*
store i32 1342177336,i32*%E,align 4
%F=getelementptr inbounds i8,i8*%C,i64 56
%G=bitcast i8*%F to i32*
store i32 1,i32*%G,align 4
%H=load i8*,i8**%e,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:
%K=getelementptr inbounds i8,i8*%o,i64 8
%L=bitcast i8*%K to i8**
%M=load i8*,i8**%L,align 8
%N=load i8*,i8**%e,align 8
%O=invoke fastcc i8*@_SMLLN7EvalIty8evalTfunE_104(i8*inreg%N,i8*inreg%m,i8*inreg%M)
to label%P unwind label%X
P:
store i8*%O,i8**%f,align 8
store i8*null,i8**%d,align 8
store i8*null,i8**%e,align 8
%Q=call i8*@sml_alloc(i32 inreg 20)#0
%R=bitcast i8*%Q to i32*
%S=getelementptr inbounds i8,i8*%Q,i64 -4
%T=bitcast i8*%S to i32*
store i32 1342177296,i32*%T,align 4
%U=getelementptr inbounds i8,i8*%Q,i64 4
%V=bitcast i8*%U to i32*
store i32 0,i32*%V,align 1
store i32 1,i32*%R,align 4
%W=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
br label%bO
X:
%Y=landingpad{i8*,i8*}
catch i8*null
%Z=extractvalue{i8*,i8*}%Y,1
%aa=bitcast i8*%Z to i8**
%ab=load i8*,i8**%aa,align 8
store i8*%ab,i8**%f,align 8
%ac=bitcast i8*%ab to i8**
%ad=load i8*,i8**%ac,align 8
%ae=icmp eq i8*%ad,bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*}>,<{[4x i8],i32,i8*}>*@_SMLDL102,i64 0,i32 2)to i8*)
br i1%ae,label%af,label%bG
af:
%ag=getelementptr inbounds i8,i8*%ab,i64 16
%ah=bitcast i8*%ag to i8**
%ai=load i8*,i8**%ah,align 8
store i8*%ai,i8**%f,align 8
%aj=bitcast i8*%ai to i32*
%ak=load i32,i32*%aj,align 4
%al=call fastcc i8*@_SMLFN4List3mapE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%am=getelementptr inbounds i8,i8*%al,i64 16
%an=bitcast i8*%am to i8*(i8*,i8*)**
%ao=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%an,align 8
%ap=bitcast i8*%al to i8**
%aq=load i8*,i8**%ap,align 8
%ar=call fastcc i8*%ao(i8*inreg%aq,i8*inreg 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*))
%as=getelementptr inbounds i8,i8*%ar,i64 16
%at=bitcast i8*%as to i8*(i8*,i8*)**
%au=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%at,align 8
%av=bitcast i8*%ar to i8**
%aw=load i8*,i8**%av,align 8
%ax=load i8*,i8**%f,align 8
%ay=getelementptr inbounds i8,i8*%ax,i64 8
%az=bitcast i8*%ay to i8**
%aA=load i8*,i8**%az,align 8
%aB=call fastcc i8*%au(i8*inreg%aw,i8*inreg%aA)
%aC=load i8*,i8**%d,align 8
%aD=load i8*,i8**%e,align 8
store i8*null,i8**%d,align 8
%aE=call fastcc i8*@_SMLLN7EvalIty18evalKindedTvarListE_107(i8*inreg%aD,i8*inreg%aC,i8*inreg%aB)
%aF=getelementptr inbounds i8,i8*%aE,i64 8
%aG=bitcast i8*%aF to i8**
%aH=load i8*,i8**%aG,align 8
store i8*%aH,i8**%d,align 8
%aI=bitcast i8*%aE to i8**
%aJ=load i8*,i8**%aI,align 8
%aK=load i8*,i8**%f,align 8
%aL=getelementptr inbounds i8,i8*%aK,i64 24
%aM=bitcast i8*%aL to i8**
%aN=load i8*,i8**%aM,align 8
%aO=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%aP=call fastcc i8*@_SMLLN7EvalIty7evalItyE_105(i8*inreg%aO,i8*inreg%aJ,i8*inreg%aN)
store i8*%aP,i8**%e,align 8
%aQ=call fastcc i8*@_SMLFN4List6lengthE(i32 inreg 1,i32 inreg 8)
%aR=getelementptr inbounds i8,i8*%aQ,i64 16
%aS=bitcast i8*%aR to i8*(i8*,i8*)**
%aT=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aS,align 8
%aU=bitcast i8*%aQ to i8**
%aV=load i8*,i8**%aU,align 8
%aW=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%aX=getelementptr inbounds i8,i8*%aW,i64 8
%aY=bitcast i8*%aX to i8**
%aZ=load i8*,i8**%aY,align 8
%a0=call fastcc i8*%aT(i8*inreg%aV,i8*inreg%aZ)
%a1=bitcast i8*%a0 to i32*
%a2=load i32,i32*%a1,align 4
%a3=call i8*@sml_alloc(i32 inreg 28)#0
%a4=getelementptr inbounds i8,i8*%a3,i64 -4
%a5=bitcast i8*%a4 to i32*
store i32 1342177304,i32*%a5,align 4
store i8*%a3,i8**%f,align 8
%a6=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%a7=bitcast i8*%a3 to i8**
store i8*%a6,i8**%a7,align 8
%a8=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%a9=getelementptr inbounds i8,i8*%a3,i64 8
%ba=bitcast i8*%a9 to i8**
store i8*%a8,i8**%ba,align 8
%bb=getelementptr inbounds i8,i8*%a3,i64 16
%bc=bitcast i8*%bb to i8**
store i8*null,i8**%bc,align 8
%bd=getelementptr inbounds i8,i8*%a3,i64 24
%be=bitcast i8*%bd to i32*
store i32 7,i32*%be,align 4
%bf=call i8*@sml_alloc(i32 inreg 20)#0
%bg=getelementptr inbounds i8,i8*%bf,i64 -4
%bh=bitcast i8*%bg to i32*
store i32 1342177296,i32*%bh,align 4
store i8*%bf,i8**%e,align 8
%bi=getelementptr inbounds i8,i8*%bf,i64 4
%bj=bitcast i8*%bi to i32*
store i32 0,i32*%bj,align 1
%bk=bitcast i8*%bf to i32*
store i32 7,i32*%bk,align 4
%bl=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%bm=getelementptr inbounds i8,i8*%bf,i64 8
%bn=bitcast i8*%bm to i8**
store i8*%bl,i8**%bn,align 8
%bo=getelementptr inbounds i8,i8*%bf,i64 16
%bp=bitcast i8*%bo to i32*
store i32 2,i32*%bp,align 4
%bq=call i8*@sml_alloc(i32 inreg 20)#0
%br=bitcast i8*%bq to i32*
%bs=getelementptr inbounds i8,i8*%bq,i64 -4
%bt=bitcast i8*%bs to i32*
store i32 1342177296,i32*%bt,align 4
store i8*%bq,i8**%d,align 8
store i32%ak,i32*%br,align 4
%bu=getelementptr inbounds i8,i8*%bq,i64 4
%bv=bitcast i8*%bu to i32*
store i32%a2,i32*%bv,align 4
%bw=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%bx=getelementptr inbounds i8,i8*%bq,i64 8
%by=bitcast i8*%bx to i8**
store i8*%bw,i8**%by,align 8
%bz=getelementptr inbounds i8,i8*%bq,i64 16
%bA=bitcast i8*%bz to i32*
store i32 2,i32*%bA,align 4
%bB=call i8*@sml_alloc(i32 inreg 20)#0
%bC=getelementptr inbounds i8,i8*%bB,i64 -4
%bD=bitcast i8*%bC to i32*
store i32 1342177296,i32*%bD,align 4
%bE=bitcast i8*%bB to i64*
store i64 0,i64*%bE,align 4
%bF=load i8*,i8**%d,align 8
br label%bO
bG:
store i8*null,i8**%d,align 8
store i8*null,i8**%e,align 8
%bH=call i8*@sml_alloc(i32 inreg 60)#0
%bI=getelementptr inbounds i8,i8*%bH,i64 -4
%bJ=bitcast i8*%bI to i32*
store i32 1342177336,i32*%bJ,align 4
%bK=getelementptr inbounds i8,i8*%bH,i64 56
%bL=bitcast i8*%bK to i32*
store i32 1,i32*%bL,align 4
%bM=load i8*,i8**%f,align 8
%bN=bitcast i8*%bH to i8**
store i8*%bM,i8**%bN,align 8
call void@sml_raise(i8*inreg%bH)#1
unreachable
bO:
%bP=phi i8*[%bB,%af],[%Q,%P]
%bQ=phi i8*[%bF,%af],[%W,%P]
%bR=getelementptr inbounds i8,i8*%bP,i64 8
%bS=bitcast i8*%bR to i8**
store i8*%bQ,i8**%bS,align 8
%bT=getelementptr inbounds i8,i8*%bP,i64 16
%bU=bitcast i8*%bT to i32*
store i32 2,i32*%bU,align 4
store i8*%bP,i8**%d,align 8
%bV=call i8*@sml_alloc(i32 inreg 20)#0
%bW=bitcast i8*%bV to i32*
%bX=getelementptr inbounds i8,i8*%bV,i64 -4
%bY=bitcast i8*%bX to i32*
store i32 1342177296,i32*%bY,align 4
%bZ=getelementptr inbounds i8,i8*%bV,i64 4
%b0=bitcast i8*%bZ to i32*
store i32 0,i32*%b0,align 1
store i32 1,i32*%bW,align 4
%b1=load i8*,i8**%d,align 8
%b2=getelementptr inbounds i8,i8*%bV,i64 8
%b3=bitcast i8*%b2 to i8**
store i8*%b1,i8**%b3,align 8
%b4=getelementptr inbounds i8,i8*%bV,i64 16
%b5=bitcast i8*%b4 to i32*
store i32 2,i32*%b5,align 4
ret i8*%bV
b6:
%b7=getelementptr inbounds i8,i8*%o,i64 8
%b8=bitcast i8*%b7 to i8**
%b9=load i8*,i8**%b8,align 8
%ca=bitcast i8*%b9 to i32*
%cb=load i32,i32*%ca,align 4
%cc=getelementptr inbounds i8,i8*%b9,i64 8
%cd=bitcast i8*%cc to i8**
%ce=load i8*,i8**%cd,align 8
%cf=load i8*,i8**%e,align 8
%cg=invoke fastcc i8*@_SMLLN7EvalIty8evalTfunE_104(i8*inreg%cf,i8*inreg%m,i8*inreg%ce)
to label%ch unwind label%cp
ch:
store i8*%cg,i8**%f,align 8
store i8*null,i8**%d,align 8
store i8*null,i8**%e,align 8
%ci=call i8*@sml_alloc(i32 inreg 20)#0
%cj=bitcast i8*%ci to i32*
%ck=getelementptr inbounds i8,i8*%ci,i64 -4
%cl=bitcast i8*%ck to i32*
store i32 1342177296,i32*%cl,align 4
%cm=getelementptr inbounds i8,i8*%ci,i64 4
%cn=bitcast i8*%cm to i32*
store i32 0,i32*%cn,align 1
store i32 1,i32*%cj,align 4
%co=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
br label%d6
cp:
%cq=landingpad{i8*,i8*}
catch i8*null
%cr=extractvalue{i8*,i8*}%cq,1
%cs=bitcast i8*%cr to i8**
%ct=load i8*,i8**%cs,align 8
store i8*%ct,i8**%f,align 8
%cu=bitcast i8*%ct to i8**
%cv=load i8*,i8**%cu,align 8
%cw=icmp eq i8*%cv,bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*}>,<{[4x i8],i32,i8*}>*@_SMLDL102,i64 0,i32 2)to i8*)
br i1%cw,label%cx,label%dY
cx:
%cy=getelementptr inbounds i8,i8*%ct,i64 16
%cz=bitcast i8*%cy to i8**
%cA=load i8*,i8**%cz,align 8
store i8*%cA,i8**%f,align 8
%cB=bitcast i8*%cA to i32*
%cC=load i32,i32*%cB,align 4
%cD=call fastcc i8*@_SMLFN4List3mapE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%cE=getelementptr inbounds i8,i8*%cD,i64 16
%cF=bitcast i8*%cE to i8*(i8*,i8*)**
%cG=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%cF,align 8
%cH=bitcast i8*%cD to i8**
%cI=load i8*,i8**%cH,align 8
%cJ=call fastcc i8*%cG(i8*inreg%cI,i8*inreg 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*))
%cK=getelementptr inbounds i8,i8*%cJ,i64 16
%cL=bitcast i8*%cK to i8*(i8*,i8*)**
%cM=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%cL,align 8
%cN=bitcast i8*%cJ to i8**
%cO=load i8*,i8**%cN,align 8
%cP=load i8*,i8**%f,align 8
%cQ=getelementptr inbounds i8,i8*%cP,i64 8
%cR=bitcast i8*%cQ to i8**
%cS=load i8*,i8**%cR,align 8
%cT=call fastcc i8*%cM(i8*inreg%cO,i8*inreg%cS)
%cU=load i8*,i8**%d,align 8
%cV=load i8*,i8**%e,align 8
store i8*null,i8**%d,align 8
%cW=call fastcc i8*@_SMLLN7EvalIty18evalKindedTvarListE_107(i8*inreg%cV,i8*inreg%cU,i8*inreg%cT)
%cX=getelementptr inbounds i8,i8*%cW,i64 8
%cY=bitcast i8*%cX to i8**
%cZ=load i8*,i8**%cY,align 8
store i8*%cZ,i8**%d,align 8
%c0=bitcast i8*%cW to i8**
%c1=load i8*,i8**%c0,align 8
%c2=load i8*,i8**%f,align 8
%c3=getelementptr inbounds i8,i8*%c2,i64 24
%c4=bitcast i8*%c3 to i8**
%c5=load i8*,i8**%c4,align 8
%c6=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%c7=call fastcc i8*@_SMLLN7EvalIty7evalItyE_105(i8*inreg%c6,i8*inreg%c1,i8*inreg%c5)
store i8*%c7,i8**%e,align 8
%c8=call fastcc i8*@_SMLFN4List6lengthE(i32 inreg 1,i32 inreg 8)
%c9=getelementptr inbounds i8,i8*%c8,i64 16
%da=bitcast i8*%c9 to i8*(i8*,i8*)**
%db=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%da,align 8
%dc=bitcast i8*%c8 to i8**
%dd=load i8*,i8**%dc,align 8
%de=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%df=getelementptr inbounds i8,i8*%de,i64 8
%dg=bitcast i8*%df to i8**
%dh=load i8*,i8**%dg,align 8
%di=call fastcc i8*%db(i8*inreg%dd,i8*inreg%dh)
%dj=bitcast i8*%di to i32*
%dk=load i32,i32*%dj,align 4
%dl=call i8*@sml_alloc(i32 inreg 28)#0
%dm=getelementptr inbounds i8,i8*%dl,i64 -4
%dn=bitcast i8*%dm to i32*
store i32 1342177304,i32*%dn,align 4
store i8*%dl,i8**%f,align 8
%do=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%dp=bitcast i8*%dl to i8**
store i8*%do,i8**%dp,align 8
%dq=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%dr=getelementptr inbounds i8,i8*%dl,i64 8
%ds=bitcast i8*%dr to i8**
store i8*%dq,i8**%ds,align 8
%dt=getelementptr inbounds i8,i8*%dl,i64 16
%du=bitcast i8*%dt to i8**
store i8*null,i8**%du,align 8
%dv=getelementptr inbounds i8,i8*%dl,i64 24
%dw=bitcast i8*%dv to i32*
store i32 7,i32*%dw,align 4
%dx=call i8*@sml_alloc(i32 inreg 20)#0
%dy=getelementptr inbounds i8,i8*%dx,i64 -4
%dz=bitcast i8*%dy to i32*
store i32 1342177296,i32*%dz,align 4
store i8*%dx,i8**%e,align 8
%dA=getelementptr inbounds i8,i8*%dx,i64 4
%dB=bitcast i8*%dA to i32*
store i32 0,i32*%dB,align 1
%dC=bitcast i8*%dx to i32*
store i32 7,i32*%dC,align 4
%dD=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%dE=getelementptr inbounds i8,i8*%dx,i64 8
%dF=bitcast i8*%dE to i8**
store i8*%dD,i8**%dF,align 8
%dG=getelementptr inbounds i8,i8*%dx,i64 16
%dH=bitcast i8*%dG to i32*
store i32 2,i32*%dH,align 4
%dI=call i8*@sml_alloc(i32 inreg 20)#0
%dJ=bitcast i8*%dI to i32*
%dK=getelementptr inbounds i8,i8*%dI,i64 -4
%dL=bitcast i8*%dK to i32*
store i32 1342177296,i32*%dL,align 4
store i8*%dI,i8**%d,align 8
store i32%cC,i32*%dJ,align 4
%dM=getelementptr inbounds i8,i8*%dI,i64 4
%dN=bitcast i8*%dM to i32*
store i32%dk,i32*%dN,align 4
%dO=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%dP=getelementptr inbounds i8,i8*%dI,i64 8
%dQ=bitcast i8*%dP to i8**
store i8*%dO,i8**%dQ,align 8
%dR=getelementptr inbounds i8,i8*%dI,i64 16
%dS=bitcast i8*%dR to i32*
store i32 2,i32*%dS,align 4
%dT=call i8*@sml_alloc(i32 inreg 20)#0
%dU=getelementptr inbounds i8,i8*%dT,i64 -4
%dV=bitcast i8*%dU to i32*
store i32 1342177296,i32*%dV,align 4
%dW=bitcast i8*%dT to i64*
store i64 0,i64*%dW,align 4
%dX=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
br label%d6
dY:
store i8*null,i8**%d,align 8
store i8*null,i8**%e,align 8
%dZ=call i8*@sml_alloc(i32 inreg 60)#0
%d0=getelementptr inbounds i8,i8*%dZ,i64 -4
%d1=bitcast i8*%d0 to i32*
store i32 1342177336,i32*%d1,align 4
%d2=getelementptr inbounds i8,i8*%dZ,i64 56
%d3=bitcast i8*%d2 to i32*
store i32 1,i32*%d3,align 4
%d4=load i8*,i8**%f,align 8
%d5=bitcast i8*%dZ to i8**
store i8*%d4,i8**%d5,align 8
call void@sml_raise(i8*inreg%dZ)#1
unreachable
d6:
%d7=phi i8*[%dT,%cx],[%ci,%ch]
%d8=phi i8*[%dX,%cx],[%co,%ch]
%d9=getelementptr inbounds i8,i8*%d7,i64 8
%ea=bitcast i8*%d9 to i8**
store i8*%d8,i8**%ea,align 8
%eb=getelementptr inbounds i8,i8*%d7,i64 16
%ec=bitcast i8*%eb to i32*
store i32 2,i32*%ec,align 4
store i8*%d7,i8**%e,align 8
%ed=call i8*@sml_alloc(i32 inreg 20)#0
%ee=getelementptr inbounds i8,i8*%ed,i64 -4
%ef=bitcast i8*%ee to i32*
store i32 1342177296,i32*%ef,align 4
store i8*%ed,i8**%d,align 8
%eg=getelementptr inbounds i8,i8*%ed,i64 12
%eh=bitcast i8*%eg to i32*
store i32 0,i32*%eh,align 1
%ei=bitcast i8*%ed to i8**
%ej=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
store i8*%ej,i8**%ei,align 8
%ek=getelementptr inbounds i8,i8*%ed,i64 8
%el=bitcast i8*%ek to i32*
store i32%cb,i32*%el,align 4
%em=getelementptr inbounds i8,i8*%ed,i64 16
%en=bitcast i8*%em to i32*
store i32 1,i32*%en,align 4
%eo=call i8*@sml_alloc(i32 inreg 20)#0
%ep=bitcast i8*%eo to i32*
%eq=getelementptr inbounds i8,i8*%eo,i64 -4
%er=bitcast i8*%eq to i32*
store i32 1342177296,i32*%er,align 4
%es=getelementptr inbounds i8,i8*%eo,i64 4
%et=bitcast i8*%es to i32*
store i32 0,i32*%et,align 1
store i32 2,i32*%ep,align 4
%eu=load i8*,i8**%d,align 8
%ev=getelementptr inbounds i8,i8*%eo,i64 8
%ew=bitcast i8*%ev to i8**
store i8*%eu,i8**%ew,align 8
%ex=getelementptr inbounds i8,i8*%eo,i64 16
%ey=bitcast i8*%ex to i32*
store i32 2,i32*%ey,align 4
ret i8*%eo
ez:
store i8*null,i8**%e,align 8
%eA=getelementptr inbounds i8,i8*%o,i64 8
%eB=bitcast i8*%eA to i8**
%eC=load i8*,i8**%eB,align 8
store i8*%eC,i8**%d,align 8
%eD=call i8*@sml_alloc(i32 inreg 20)#0
%eE=getelementptr inbounds i8,i8*%eD,i64 -4
%eF=bitcast i8*%eE to i32*
store i32 1342177296,i32*%eF,align 4
%eG=bitcast i8*%eD to i64*
store i64 0,i64*%eG,align 4
%eH=load i8*,i8**%d,align 8
%eI=getelementptr inbounds i8,i8*%eD,i64 8
%eJ=bitcast i8*%eI to i8**
store i8*%eH,i8**%eJ,align 8
%eK=getelementptr inbounds i8,i8*%eD,i64 16
%eL=bitcast i8*%eK to i32*
store i32 2,i32*%eL,align 4
ret i8*%eD
eM:
store i8*null,i8**%e,align 8
%eN=getelementptr inbounds i8,i8*%o,i64 8
%eO=bitcast i8*%eN to i8**
%eP=load i8*,i8**%eO,align 8
store i8*%eP,i8**%d,align 8
%eQ=call i8*@sml_alloc(i32 inreg 20)#0
%eR=getelementptr inbounds i8,i8*%eQ,i64 -4
%eS=bitcast i8*%eR to i32*
store i32 1342177296,i32*%eS,align 4
%eT=bitcast i8*%eQ to i64*
store i64 0,i64*%eT,align 4
%eU=load i8*,i8**%d,align 8
%eV=getelementptr inbounds i8,i8*%eQ,i64 8
%eW=bitcast i8*%eV to i8**
store i8*%eU,i8**%eW,align 8
%eX=getelementptr inbounds i8,i8*%eQ,i64 16
%eY=bitcast i8*%eX to i32*
store i32 2,i32*%eY,align 4
ret i8*%eQ
eZ:
store i8*null,i8**%e,align 8
%e0=getelementptr inbounds i8,i8*%o,i64 8
%e1=bitcast i8*%e0 to i8**
%e2=load i8*,i8**%e1,align 8
store i8*%e2,i8**%d,align 8
%e3=call i8*@sml_alloc(i32 inreg 20)#0
%e4=getelementptr inbounds i8,i8*%e3,i64 -4
%e5=bitcast i8*%e4 to i32*
store i32 1342177296,i32*%e5,align 4
%e6=bitcast i8*%e3 to i64*
store i64 0,i64*%e6,align 4
%e7=load i8*,i8**%d,align 8
%e8=getelementptr inbounds i8,i8*%e3,i64 8
%e9=bitcast i8*%e8 to i8**
store i8*%e7,i8**%e9,align 8
%fa=getelementptr inbounds i8,i8*%e3,i64 16
%fb=bitcast i8*%fa to i32*
store i32 2,i32*%fb,align 4
ret i8*%e3
}
define internal fastcc i8*@_SMLLN7EvalIty8evalTfunE_104(i8*inreg%a,i8*inreg%b,i8*inreg%c)#2 gc"smlsharp"{
n:
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
%h=alloca i8*,align 8
%i=alloca i8*,align 8
%j=alloca i8*,align 8
%k=alloca i8*,align 8
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
call void@llvm.gcroot(i8**%h,i8*null)#0
call void@llvm.gcroot(i8**%i,i8*null)#0
call void@llvm.gcroot(i8**%j,i8*null)#0
call void@llvm.gcroot(i8**%k,i8*null)#0
store i8*%a,i8**%j,align 8
store i8*%b,i8**%e,align 8
store i8*%c,i8**%d,align 8
br label%l
l:
%m=phi i8*[%c,%n],[%ay,%ax]
%o=phi i8*[%b,%n],[%w,%ax]
%p=load atomic i32,i32*@sml_check_flag unordered,align 4
%q=icmp eq i32%p,0
br i1%q,label%u,label%r
r:
call void@sml_check(i32 inreg%p)
%s=load i8*,i8**%e,align 8
%t=load i8*,i8**%d,align 8
br label%u
u:
%v=phi i8*[%t,%r],[%m,%l]
%w=phi i8*[%s,%r],[%o,%l]
store i8*%w,i8**%f,align 8
%x=bitcast i8*%v to i32*
%y=load i32,i32*%x,align 4
switch i32%y,label%z[
i32 0,label%fi
i32 1,label%R
]
z:
store i8*null,i8**%f,align 8
store i8*null,i8**%j,align 8
call void@sml_matchcomp_bug()
%A=load i8*,i8**@_SMLZ5Match,align 8
store i8*%A,i8**%d,align 8
%B=call i8*@sml_alloc(i32 inreg 20)#0
%C=getelementptr inbounds i8,i8*%B,i64 -4
%D=bitcast i8*%C to i32*
store i32 1342177296,i32*%D,align 4
store i8*%B,i8**%e,align 8
%E=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%F=bitcast i8*%B to i8**
store i8*%E,i8**%F,align 8
%G=getelementptr inbounds i8,i8*%B,i64 8
%H=bitcast i8*%G to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[60x i8]}>,<{[4x i8],i32,[60x i8]}>*@o,i64 0,i32 2,i64 0),i8**%H,align 8
%I=getelementptr inbounds i8,i8*%B,i64 16
%J=bitcast i8*%I to i32*
store i32 3,i32*%J,align 4
%K=call i8*@sml_alloc(i32 inreg 60)#0
%L=getelementptr inbounds i8,i8*%K,i64 -4
%M=bitcast i8*%L to i32*
store i32 1342177336,i32*%M,align 4
%N=getelementptr inbounds i8,i8*%K,i64 56
%O=bitcast i8*%N to i32*
store i32 1,i32*%O,align 4
%P=load i8*,i8**%e,align 8
%Q=bitcast i8*%K to i8**
store i8*%P,i8**%Q,align 8
call void@sml_raise(i8*inreg%K)#1
unreachable
R:
%S=getelementptr inbounds i8,i8*%v,i64 8
%T=bitcast i8*%S to i8***
%U=load i8**,i8***%T,align 8
%V=load i8*,i8**%U,align 8
%W=bitcast i8*%V to i32*
%X=load i32,i32*%W,align 4
switch i32%X,label%Y[
i32 3,label%bX
i32 5,label%bm
i32 4,label%aL
i32 2,label%aE
i32 1,label%az
i32 0,label%aq
]
Y:
store i8*null,i8**%f,align 8
store i8*null,i8**%j,align 8
call void@sml_matchcomp_bug()
%Z=load i8*,i8**@_SMLZ5Match,align 8
store i8*%Z,i8**%d,align 8
%aa=call i8*@sml_alloc(i32 inreg 20)#0
%ab=getelementptr inbounds i8,i8*%aa,i64 -4
%ac=bitcast i8*%ab to i32*
store i32 1342177296,i32*%ac,align 4
store i8*%aa,i8**%e,align 8
%ad=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%ae=bitcast i8*%aa to i8**
store i8*%ad,i8**%ae,align 8
%af=getelementptr inbounds i8,i8*%aa,i64 8
%ag=bitcast i8*%af to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[61x i8]}>,<{[4x i8],i32,[61x i8]}>*@n,i64 0,i32 2,i64 0),i8**%ag,align 8
%ah=getelementptr inbounds i8,i8*%aa,i64 16
%ai=bitcast i8*%ah to i32*
store i32 3,i32*%ai,align 4
%aj=call i8*@sml_alloc(i32 inreg 60)#0
%ak=getelementptr inbounds i8,i8*%aj,i64 -4
%al=bitcast i8*%ak to i32*
store i32 1342177336,i32*%al,align 4
%am=getelementptr inbounds i8,i8*%aj,i64 56
%an=bitcast i8*%am to i32*
store i32 1,i32*%an,align 4
%ao=load i8*,i8**%e,align 8
%ap=bitcast i8*%aj to i8**
store i8*%ao,i8**%ap,align 8
call void@sml_raise(i8*inreg%aj)#1
unreachable
aq:
%ar=getelementptr inbounds i8,i8*%V,i64 8
%as=bitcast i8*%ar to i8**
%at=load i8*,i8**%as,align 8
%au=getelementptr inbounds i8,i8*%at,i64 32
%av=bitcast i8*%au to i8**
%aw=load i8*,i8**%av,align 8
store i8*null,i8**%f,align 8
store i8*%aw,i8**%d,align 8
br label%ax
ax:
%ay=phi i8*[%aw,%aq],[%aD,%az],[%aK,%aE]
br label%l
az:
store i8*null,i8**%d,align 8
%aA=getelementptr inbounds i8,i8*%V,i64 8
%aB=bitcast i8*%aA to i8***
%aC=load i8**,i8***%aB,align 8
%aD=load i8*,i8**%aC,align 8
store i8*null,i8**%f,align 8
store i8*%aD,i8**%d,align 8
br label%ax
aE:
%aF=getelementptr inbounds i8,i8*%V,i64 8
%aG=bitcast i8*%aF to i8**
%aH=load i8*,i8**%aG,align 8
%aI=getelementptr inbounds i8,i8*%aH,i64 8
%aJ=bitcast i8*%aI to i8**
%aK=load i8*,i8**%aJ,align 8
store i8*null,i8**%f,align 8
store i8*%aK,i8**%d,align 8
br label%ax
aL:
store i8*null,i8**%f,align 8
store i8*null,i8**%j,align 8
%aM=load i32*,i32**bitcast(i8**@_SMLZN3Bug10debugPrintE to i32**),align 8
%aN=load i32,i32*%aM,align 4
%aO=icmp eq i32%aN,0
br i1%aO,label%aU,label%aP
aP:
call fastcc void@_SMLFN6TextIO5printE(i8*inreg getelementptr inbounds(<{[4x i8],i32,[24x i8]}>,<{[4x i8],i32,[24x i8]}>*@j,i64 0,i32 2,i64 0))
%aQ=load i32*,i32**bitcast(i8**@_SMLZN3Bug10debugPrintE to i32**),align 8
%aR=load i32,i32*%aQ,align 4
%aS=icmp eq i32%aR,0
br i1%aS,label%aU,label%aT
aT:
call fastcc void@_SMLFN6TextIO5printE(i8*inreg getelementptr inbounds(<{[4x i8],i32,[6x i8]}>,<{[4x i8],i32,[6x i8]}>*@k,i64 0,i32 2,i64 0))
br label%aU
aU:
%aV=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
call fastcc void@_SMLLN7EvalIty9printTfunE_94(i8*inreg%aV)
%aW=load i32*,i32**bitcast(i8**@_SMLZN3Bug10debugPrintE to i32**),align 8
%aX=load i32,i32*%aW,align 4
%aY=icmp eq i32%aX,0
br i1%aY,label%a0,label%aZ
aZ:
call fastcc void@_SMLFN6TextIO5printE(i8*inreg getelementptr inbounds(<{[4x i8],i32,[2x i8]}>,<{[4x i8],i32,[2x i8]}>*@q,i64 0,i32 2,i64 0))
br label%a0
a0:
%a1=load i8*,i8**@_SMLZN3Bug3BugE,align 8
store i8*%a1,i8**%d,align 8
%a2=call fastcc i8*@_SMLFN6String1_ZE(i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,i8*,i32}>,<{[4x i8],i32,i8*,i8*,i32}>*@m,i64 0,i32 2)to i8*))
store i8*%a2,i8**%e,align 8
%a3=call i8*@sml_alloc(i32 inreg 28)#0
%a4=getelementptr inbounds i8,i8*%a3,i64 -4
%a5=bitcast i8*%a4 to i32*
store i32 1342177304,i32*%a5,align 4
store i8*%a3,i8**%f,align 8
%a6=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%a7=bitcast i8*%a3 to i8**
store i8*%a6,i8**%a7,align 8
%a8=getelementptr inbounds i8,i8*%a3,i64 8
%a9=bitcast i8*%a8 to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[60x i8]}>,<{[4x i8],i32,[60x i8]}>*@v,i64 0,i32 2,i64 0),i8**%a9,align 8
%ba=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%bb=getelementptr inbounds i8,i8*%a3,i64 16
%bc=bitcast i8*%bb to i8**
store i8*%ba,i8**%bc,align 8
%bd=getelementptr inbounds i8,i8*%a3,i64 24
%be=bitcast i8*%bd to i32*
store i32 7,i32*%be,align 4
%bf=call i8*@sml_alloc(i32 inreg 60)#0
%bg=getelementptr inbounds i8,i8*%bf,i64 -4
%bh=bitcast i8*%bg to i32*
store i32 1342177336,i32*%bh,align 4
%bi=getelementptr inbounds i8,i8*%bf,i64 56
%bj=bitcast i8*%bi to i32*
store i32 1,i32*%bj,align 4
%bk=load i8*,i8**%f,align 8
%bl=bitcast i8*%bf to i8**
store i8*%bk,i8**%bl,align 8
call void@sml_raise(i8*inreg%bf)#1
unreachable
bm:
store i8*null,i8**%f,align 8
store i8*null,i8**%j,align 8
%bn=load i32*,i32**bitcast(i8**@_SMLZN3Bug10debugPrintE to i32**),align 8
%bo=load i32,i32*%bn,align 4
%bp=icmp eq i32%bo,0
br i1%bp,label%bv,label%bq
bq:
call fastcc void@_SMLFN6TextIO5printE(i8*inreg getelementptr inbounds(<{[4x i8],i32,[24x i8]}>,<{[4x i8],i32,[24x i8]}>*@j,i64 0,i32 2,i64 0))
%br=load i32*,i32**bitcast(i8**@_SMLZN3Bug10debugPrintE to i32**),align 8
%bs=load i32,i32*%br,align 4
%bt=icmp eq i32%bs,0
br i1%bt,label%bv,label%bu
bu:
call fastcc void@_SMLFN6TextIO5printE(i8*inreg getelementptr inbounds(<{[4x i8],i32,[6x i8]}>,<{[4x i8],i32,[6x i8]}>*@k,i64 0,i32 2,i64 0))
br label%bv
bv:
%bw=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
call fastcc void@_SMLLN7EvalIty9printTfunE_94(i8*inreg%bw)
%bx=load i32*,i32**bitcast(i8**@_SMLZN3Bug10debugPrintE to i32**),align 8
%by=load i32,i32*%bx,align 4
%bz=icmp eq i32%by,0
br i1%bz,label%bB,label%bA
bA:
call fastcc void@_SMLFN6TextIO5printE(i8*inreg getelementptr inbounds(<{[4x i8],i32,[2x i8]}>,<{[4x i8],i32,[2x i8]}>*@q,i64 0,i32 2,i64 0))
br label%bB
bB:
%bC=load i8*,i8**@_SMLZN3Bug3BugE,align 8
store i8*%bC,i8**%d,align 8
%bD=call fastcc i8*@_SMLFN6String1_ZE(i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,i8*,i32}>,<{[4x i8],i32,i8*,i8*,i32}>*@i,i64 0,i32 2)to i8*))
store i8*%bD,i8**%e,align 8
%bE=call i8*@sml_alloc(i32 inreg 28)#0
%bF=getelementptr inbounds i8,i8*%bE,i64 -4
%bG=bitcast i8*%bF to i32*
store i32 1342177304,i32*%bG,align 4
store i8*%bE,i8**%f,align 8
%bH=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%bI=bitcast i8*%bE to i8**
store i8*%bH,i8**%bI,align 8
%bJ=getelementptr inbounds i8,i8*%bE,i64 8
%bK=bitcast i8*%bJ to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[60x i8]}>,<{[4x i8],i32,[60x i8]}>*@v,i64 0,i32 2,i64 0),i8**%bK,align 8
%bL=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%bM=getelementptr inbounds i8,i8*%bE,i64 16
%bN=bitcast i8*%bM to i8**
store i8*%bL,i8**%bN,align 8
%bO=getelementptr inbounds i8,i8*%bE,i64 24
%bP=bitcast i8*%bO to i32*
store i32 7,i32*%bP,align 4
%bQ=call i8*@sml_alloc(i32 inreg 60)#0
%bR=getelementptr inbounds i8,i8*%bQ,i64 -4
%bS=bitcast i8*%bR to i32*
store i32 1342177336,i32*%bS,align 4
%bT=getelementptr inbounds i8,i8*%bQ,i64 56
%bU=bitcast i8*%bT to i32*
store i32 1,i32*%bU,align 4
%bV=load i8*,i8**%f,align 8
%bW=bitcast i8*%bQ to i8**
store i8*%bV,i8**%bW,align 8
call void@sml_raise(i8*inreg%bQ)#1
unreachable
bX:
store i8*null,i8**%d,align 8
%bY=getelementptr inbounds i8,i8*%V,i64 8
%bZ=bitcast i8*%bY to i8**
%b0=load i8*,i8**%bZ,align 8
store i8*%b0,i8**%g,align 8
%b1=bitcast i8*%b0 to i32*
%b2=load i32,i32*%b1,align 4
%b3=getelementptr inbounds i8,i8*%b0,i64 8
%b4=bitcast i8*%b3 to i8**
%b5=load i8*,i8**%b4,align 8
store i8*%b5,i8**%h,align 8
%b6=getelementptr inbounds i8,i8*%b0,i64 40
%b7=bitcast i8*%b6 to i32*
%b8=load i32,i32*%b7,align 4
%b9=getelementptr inbounds i8,i8*%b0,i64 56
%ca=bitcast i8*%b9 to i8**
%cb=load i8*,i8**%ca,align 8
store i8*%cb,i8**%i,align 8
%cc=call fastcc i8*@_SMLFN4List3mapE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%cd=getelementptr inbounds i8,i8*%cc,i64 16
%ce=bitcast i8*%cd to i8*(i8*,i8*)**
%cf=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%ce,align 8
%cg=bitcast i8*%cc to i8**
%ch=load i8*,i8**%cg,align 8
%ci=call fastcc i8*%cf(i8*inreg%ch,i8*inreg 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*))
%cj=getelementptr inbounds i8,i8*%ci,i64 16
%ck=bitcast i8*%cj to i8*(i8*,i8*)**
%cl=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%ck,align 8
%cm=bitcast i8*%ci to i8**
%cn=load i8*,i8**%cm,align 8
%co=load i8*,i8**%g,align 8
%cp=getelementptr inbounds i8,i8*%co,i64 32
%cq=bitcast i8*%cp to i8**
%cr=load i8*,i8**%cq,align 8
%cs=call fastcc i8*%cl(i8*inreg%cn,i8*inreg%cr)
%ct=load i8*,i8**%f,align 8
%cu=load i8*,i8**%j,align 8
%cv=call fastcc i8*@_SMLLN7EvalIty18evalKindedTvarListE_107(i8*inreg%cu,i8*inreg%ct,i8*inreg%cs)
store i8*%cv,i8**%e,align 8
%cw=getelementptr inbounds i8,i8*%cv,i64 8
%cx=bitcast i8*%cw to i8**
%cy=load i8*,i8**%cx,align 8
store i8*%cy,i8**%d,align 8
%cz=call fastcc i8*@_SMLFN14BoundTypeVarID3Map7isEmptyE(i32 inreg 1,i32 inreg 8)
%cA=getelementptr inbounds i8,i8*%cz,i64 16
%cB=bitcast i8*%cA to i8*(i8*,i8*)**
%cC=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%cB,align 8
%cD=bitcast i8*%cz to i8**
%cE=load i8*,i8**%cD,align 8
%cF=load i8*,i8**%d,align 8
%cG=call fastcc i8*%cC(i8*inreg%cE,i8*inreg%cF)
%cH=bitcast i8*%cG to i32*
%cI=load i32,i32*%cH,align 4
%cJ=icmp eq i32%cI,0
br i1%cJ,label%cZ,label%cK
cK:
store i8*null,i8**%d,align 8
%cL=call i8*@sml_alloc(i32 inreg 20)#0
%cM=getelementptr inbounds i8,i8*%cL,i64 -4
%cN=bitcast i8*%cM to i32*
store i32 1342177296,i32*%cN,align 4
store i8*%cL,i8**%d,align 8
%cO=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%cP=bitcast i8*%cL to i8**
store i8*%cO,i8**%cP,align 8
%cQ=load i8*,i8**%j,align 8
%cR=getelementptr inbounds i8,i8*%cL,i64 8
%cS=bitcast i8*%cR to i8**
store i8*%cQ,i8**%cS,align 8
%cT=getelementptr inbounds i8,i8*%cL,i64 16
%cU=bitcast i8*%cT to i32*
store i32 3,i32*%cU,align 4
%cV=call i8*@sml_alloc(i32 inreg 28)#0
%cW=getelementptr inbounds i8,i8*%cV,i64 -4
%cX=bitcast i8*%cW to i32*
store i32 1342177304,i32*%cX,align 4
%cY=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
br label%dh
cZ:
%c0=call i8*@sml_alloc(i32 inreg 28)#0
%c1=getelementptr inbounds i8,i8*%c0,i64 -4
%c2=bitcast i8*%c1 to i32*
store i32 1342177304,i32*%c2,align 4
store i8*%c0,i8**%k,align 8
%c3=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%c4=bitcast i8*%c0 to i8**
store i8*%c3,i8**%c4,align 8
%c5=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%c6=getelementptr inbounds i8,i8*%c0,i64 8
%c7=bitcast i8*%c6 to i8**
store i8*%c5,i8**%c7,align 8
%c8=load i8*,i8**%j,align 8
%c9=getelementptr inbounds i8,i8*%c0,i64 16
%da=bitcast i8*%c9 to i8**
store i8*%c8,i8**%da,align 8
%db=getelementptr inbounds i8,i8*%c0,i64 24
%dc=bitcast i8*%db to i32*
store i32 7,i32*%dc,align 4
%dd=call i8*@sml_alloc(i32 inreg 28)#0
%de=getelementptr inbounds i8,i8*%dd,i64 -4
%df=bitcast i8*%de to i32*
store i32 1342177304,i32*%df,align 4
%dg=load i8*,i8**%k,align 8
store i8*null,i8**%k,align 8
br label%dh
dh:
%di=phi i8*[%dd,%cZ],[%cV,%cK]
%dj=phi i8*[%dg,%cZ],[%cY,%cK]
%dk=phi void(...)*[bitcast(i8*(i8*,i8*)*@_SMLL7argTyFn_117 to void(...)*),%cZ],[bitcast(i8*(i8*,i8*)*@_SMLL7argTyFn_119 to void(...)*),%cK]
%dl=bitcast i8*%di to i8**
store i8*%dj,i8**%dl,align 8
%dm=getelementptr inbounds i8,i8*%di,i64 8
%dn=bitcast i8*%dm to void(...)**
store void(...)*%dk,void(...)**%dn,align 8
%do=getelementptr inbounds i8,i8*%di,i64 16
%dp=bitcast i8*%do to void(...)**
store void(...)*%dk,void(...)**%dp,align 8
%dq=getelementptr inbounds i8,i8*%di,i64 24
%dr=bitcast i8*%dq to i32*
store i32 -2147483647,i32*%dr,align 4
store i8*%di,i8**%d,align 8
%ds=call fastcc i8*@_SMLFN4List6lengthE(i32 inreg 1,i32 inreg 8)
%dt=getelementptr inbounds i8,i8*%ds,i64 16
%du=bitcast i8*%dt to i8*(i8*,i8*)**
%dv=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%du,align 8
%dw=bitcast i8*%ds to i8**
%dx=load i8*,i8**%dw,align 8
%dy=load i8*,i8**%g,align 8
%dz=getelementptr inbounds i8,i8*%dy,i64 32
%dA=bitcast i8*%dz to i8**
%dB=load i8*,i8**%dA,align 8
%dC=call fastcc i8*%dv(i8*inreg%dx,i8*inreg%dB)
%dD=bitcast i8*%dC to i32*
%dE=load i32,i32*%dD,align 4
%dF=call fastcc i8*@_SMLFN9SymbolEnv3mapE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%dG=getelementptr inbounds i8,i8*%dF,i64 16
%dH=bitcast i8*%dG to i8*(i8*,i8*)**
%dI=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%dH,align 8
%dJ=bitcast i8*%dF to i8**
%dK=load i8*,i8**%dJ,align 8
store i8*%dK,i8**%e,align 8
%dL=call fastcc i8*@_SMLFN6Option3mapE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%dM=getelementptr inbounds i8,i8*%dL,i64 16
%dN=bitcast i8*%dM to i8*(i8*,i8*)**
%dO=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%dN,align 8
%dP=bitcast i8*%dL to i8**
%dQ=load i8*,i8**%dP,align 8
%dR=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%dS=call fastcc i8*%dO(i8*inreg%dQ,i8*inreg%dR)
%dT=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%dU=call fastcc i8*%dI(i8*inreg%dT,i8*inreg%dS)
%dV=getelementptr inbounds i8,i8*%dU,i64 16
%dW=bitcast i8*%dV to i8*(i8*,i8*)**
%dX=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%dW,align 8
%dY=bitcast i8*%dU to i8**
%dZ=load i8*,i8**%dY,align 8
%d0=load i8*,i8**%g,align 8
%d1=getelementptr inbounds i8,i8*%d0,i64 16
%d2=bitcast i8*%d1 to i8**
%d3=load i8*,i8**%d2,align 8
%d4=call fastcc i8*%dX(i8*inreg%dZ,i8*inreg%d3)
store i8*%d4,i8**%d,align 8
%d5=call fastcc i8*@_SMLFN4List3mapE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%d6=getelementptr inbounds i8,i8*%d5,i64 16
%d7=bitcast i8*%d6 to i8*(i8*,i8*)**
%d8=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%d7,align 8
%d9=bitcast i8*%d5 to i8**
%ea=load i8*,i8**%d9,align 8
store i8*%ea,i8**%e,align 8
%eb=call i8*@sml_alloc(i32 inreg 20)#0
%ec=getelementptr inbounds i8,i8*%eb,i64 -4
%ed=bitcast i8*%ec to i32*
store i32 1342177296,i32*%ed,align 4
store i8*%eb,i8**%k,align 8
%ee=load i8*,i8**%f,align 8
%ef=bitcast i8*%eb to i8**
store i8*%ee,i8**%ef,align 8
%eg=load i8*,i8**%j,align 8
%eh=getelementptr inbounds i8,i8*%eb,i64 8
%ei=bitcast i8*%eh to i8**
store i8*%eg,i8**%ei,align 8
%ej=getelementptr inbounds i8,i8*%eb,i64 16
%ek=bitcast i8*%ej to i32*
store i32 3,i32*%ek,align 4
%el=call i8*@sml_alloc(i32 inreg 28)#0
%em=getelementptr inbounds i8,i8*%el,i64 -4
%en=bitcast i8*%em to i32*
store i32 1342177304,i32*%en,align 4
%eo=load i8*,i8**%k,align 8
store i8*null,i8**%k,align 8
%ep=bitcast i8*%el to i8**
store i8*%eo,i8**%ep,align 8
%eq=getelementptr inbounds i8,i8*%el,i64 8
%er=bitcast i8*%eq to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN7EvalIty8evalTfunE_120 to void(...)*),void(...)**%er,align 8
%es=getelementptr inbounds i8,i8*%el,i64 16
%et=bitcast i8*%es to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN7EvalIty8evalTfunE_120 to void(...)*),void(...)**%et,align 8
%eu=getelementptr inbounds i8,i8*%el,i64 24
%ev=bitcast i8*%eu to i32*
store i32 -2147483647,i32*%ev,align 4
%ew=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%ex=call fastcc i8*%d8(i8*inreg%ew,i8*inreg%el)
%ey=getelementptr inbounds i8,i8*%ex,i64 16
%ez=bitcast i8*%ey to i8*(i8*,i8*)**
%eA=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%ez,align 8
%eB=bitcast i8*%ex to i8**
%eC=load i8*,i8**%eB,align 8
store i8*%eC,i8**%e,align 8
%eD=load i8*,i8**%g,align 8
%eE=getelementptr inbounds i8,i8*%eD,i64 48
%eF=bitcast i8*%eE to i8**
%eG=load i8*,i8**%eF,align 8
%eH=call fastcc i8*@_SMLFN6IDCalc13liftedTysToTyE(i8*inreg%eG)
%eI=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%eJ=call fastcc i8*%eA(i8*inreg%eI,i8*inreg%eH)
store i8*%eJ,i8**%e,align 8
%eK=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%eL=getelementptr inbounds i8,i8*%eK,i64 24
%eM=bitcast i8*%eL to i8**
%eN=load i8*,i8**%eM,align 8
%eO=load i8*,i8**%f,align 8
%eP=load i8*,i8**%j,align 8
store i8*null,i8**%f,align 8
store i8*null,i8**%j,align 8
%eQ=call fastcc i8*@_SMLLN7EvalIty11evalDtyKindE_103(i8*inreg%eP,i8*inreg%eO,i8*inreg%eN)
store i8*%eQ,i8**%f,align 8
%eR=call i8*@sml_alloc(i32 inreg 60)#0
%eS=bitcast i8*%eR to i32*
%eT=getelementptr inbounds i8,i8*%eR,i64 -4
%eU=bitcast i8*%eT to i32*
store i32 1342177336,i32*%eU,align 4
%eV=getelementptr inbounds i8,i8*%eR,i64 44
%eW=bitcast i8*%eV to i32*
store i32 0,i32*%eW,align 1
store i32%b2,i32*%eS,align 4
%eX=getelementptr inbounds i8,i8*%eR,i64 4
%eY=bitcast i8*%eX to i32*
store i32%dE,i32*%eY,align 4
%eZ=load i8*,i8**%h,align 8
%e0=getelementptr inbounds i8,i8*%eR,i64 8
%e1=bitcast i8*%e0 to i8**
store i8*%eZ,i8**%e1,align 8
%e2=load i8*,i8**%d,align 8
%e3=getelementptr inbounds i8,i8*%eR,i64 16
%e4=bitcast i8*%e3 to i8**
store i8*%e2,i8**%e4,align 8
%e5=load i8*,i8**%f,align 8
%e6=getelementptr inbounds i8,i8*%eR,i64 24
%e7=bitcast i8*%e6 to i8**
store i8*%e5,i8**%e7,align 8
%e8=load i8*,i8**%e,align 8
%e9=getelementptr inbounds i8,i8*%eR,i64 32
%fa=bitcast i8*%e9 to i8**
store i8*%e8,i8**%fa,align 8
%fb=getelementptr inbounds i8,i8*%eR,i64 40
%fc=bitcast i8*%fb to i32*
store i32%b8,i32*%fc,align 4
%fd=load i8*,i8**%i,align 8
%fe=getelementptr inbounds i8,i8*%eR,i64 48
%ff=bitcast i8*%fe to i8**
store i8*%fd,i8**%ff,align 8
%fg=getelementptr inbounds i8,i8*%eR,i64 56
%fh=bitcast i8*%fg to i32*
store i32 94,i32*%fh,align 4
ret i8*%eR
fi:
store i8*null,i8**%j,align 8
%fj=getelementptr inbounds i8,i8*%v,i64 8
%fk=bitcast i8*%fj to i8**
%fl=load i8*,i8**%fk,align 8
%fm=bitcast i8*%fl to i32*
%fn=load i32,i32*%fm,align 4
%fo=getelementptr inbounds i8,i8*%fl,i64 8
%fp=bitcast i8*%fo to i8**
%fq=load i8*,i8**%fp,align 8
store i8*%fq,i8**%d,align 8
%fr=getelementptr inbounds i8,i8*%fl,i64 16
%fs=bitcast i8*%fr to i8**
%ft=load i8*,i8**%fs,align 8
store i8*%ft,i8**%e,align 8
%fu=getelementptr inbounds i8,i8*%fl,i64 24
%fv=bitcast i8*%fu to i8**
%fw=load i8*,i8**%fv,align 8
store i8*%fw,i8**%f,align 8
%fx=call i8*@sml_alloc(i32 inreg 36)#0
%fy=getelementptr inbounds i8,i8*%fx,i64 -4
%fz=bitcast i8*%fy to i32*
store i32 1342177312,i32*%fz,align 4
store i8*%fx,i8**%g,align 8
%fA=getelementptr inbounds i8,i8*%fx,i64 4
%fB=bitcast i8*%fA to i32*
store i32 0,i32*%fB,align 1
%fC=bitcast i8*%fx to i32*
store i32%fn,i32*%fC,align 4
%fD=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%fE=getelementptr inbounds i8,i8*%fx,i64 8
%fF=bitcast i8*%fE to i8**
store i8*%fD,i8**%fF,align 8
%fG=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%fH=getelementptr inbounds i8,i8*%fx,i64 16
%fI=bitcast i8*%fH to i8**
store i8*%fG,i8**%fI,align 8
%fJ=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%fK=getelementptr inbounds i8,i8*%fx,i64 24
%fL=bitcast i8*%fK to i8**
store i8*%fJ,i8**%fL,align 8
%fM=getelementptr inbounds i8,i8*%fx,i64 32
%fN=bitcast i8*%fM to i32*
store i32 14,i32*%fN,align 4
%fO=call i8*@sml_alloc(i32 inreg 28)#0
%fP=getelementptr inbounds i8,i8*%fO,i64 -4
%fQ=bitcast i8*%fP to i32*
store i32 1342177304,i32*%fQ,align 4
store i8*%fO,i8**%d,align 8
%fR=bitcast i8*%fO to i8**
store i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*}>,<{[4x i8],i32,i8*}>*@_SMLDL102,i64 0,i32 2)to i8*),i8**%fR,align 8
%fS=getelementptr inbounds i8,i8*%fO,i64 8
%fT=bitcast i8*%fS to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[62x i8]}>,<{[4x i8],i32,[62x i8]}>*@f,i64 0,i32 2,i64 0),i8**%fT,align 8
%fU=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%fV=getelementptr inbounds i8,i8*%fO,i64 16
%fW=bitcast i8*%fV to i8**
store i8*%fU,i8**%fW,align 8
%fX=getelementptr inbounds i8,i8*%fO,i64 24
%fY=bitcast i8*%fX to i32*
store i32 7,i32*%fY,align 4
%fZ=call i8*@sml_alloc(i32 inreg 60)#0
%f0=getelementptr inbounds i8,i8*%fZ,i64 -4
%f1=bitcast i8*%f0 to i32*
store i32 1342177336,i32*%f1,align 4
%f2=getelementptr inbounds i8,i8*%fZ,i64 56
%f3=bitcast i8*%f2 to i32*
store i32 1,i32*%f3,align 4
%f4=load i8*,i8**%d,align 8
%f5=bitcast i8*%fZ to i8**
store i8*%f4,i8**%f5,align 8
call void@sml_raise(i8*inreg%fZ)#1
unreachable
}
define internal fastcc i8*@_SMLLN7EvalIty7evalItyE_105(i8*inreg%a,i8*inreg%b,i8*inreg%c)#2 gc"smlsharp"personality i32(...)*@sml_personality{
o:
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
%h=alloca i8*,align 8
%i=alloca i8*,align 8
%j=alloca i8*,align 8
%k=alloca i8*,align 8
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
call void@llvm.gcroot(i8**%h,i8*null)#0
call void@llvm.gcroot(i8**%i,i8*null)#0
call void@llvm.gcroot(i8**%j,i8*null)#0
call void@llvm.gcroot(i8**%k,i8*null)#0
store i8*%a,i8**%j,align 8
%l=bitcast i8**%g to i8***
br label%m
m:
%n=phi i8*[%b,%o],[%ip,%iL]
%p=phi i8*[%c,%o],[%iS,%iL]
store i8*%n,i8**%f,align 8
store i8*%p,i8**%e,align 8
%q=load atomic i32,i32*@sml_check_flag unordered,align 4
%r=icmp eq i32%q,0
br i1%r,label%u,label%s
s:
call void@sml_check(i32 inreg%q)
%t=load i8*,i8**%e,align 8
br label%u
u:
%v=phi i8*[%t,%s],[%p,%m]
%w=load i8*,i8**%j,align 8
%x=getelementptr inbounds i8,i8*%w,i64 12
%y=bitcast i8*%x to i32*
%z=load i32,i32*%y,align 4
%A=add i32%z,-1
%B=sub i32 0,%z
%C=and i32%A,%B
%D=add i32%z,7
%E=add i32%D,%C
%F=and i32%E,-8
%G=getelementptr inbounds i8,i8*%w,i64 20
%H=bitcast i8*%G to i32*
%I=load i32,i32*%H,align 4
%J=add i32%I,7
%K=add i32%J,%F
%L=sub i32 0,%I
%M=and i32%K,%L
%N=add i32%J,%M
%O=and i32%N,-8
%P=lshr i32%M,3
%Q=lshr i32%E,3
%R=sub nsw i32%P,%Q
%S=lshr i32%C,3
%T=sub nsw i32%Q,%S
%U=getelementptr inbounds i8,i8*%w,i64 16
%V=bitcast i8*%U to i32*
%W=load i32,i32*%V,align 4
%X=shl i32%W,%R
%Y=or i32%X,1
%Z=shl i32%Y,%T
%aa=getelementptr inbounds i8,i8*%w,i64 8
%ab=bitcast i8*%aa to i32*
%ac=load i32,i32*%ab,align 4
%ad=or i32%Z,%ac
%ae=or i32%O,4
%af=bitcast i8*%v to i32*
%ag=load i32,i32*%af,align 4
switch i32%ag,label%ah[
i32 8,label%l7
i32 2,label%jn
i32 7,label%kt
i32 3,label%kn
i32 6,label%jp
i32 1,label%ef
i32 4,label%c8
i32 5,label%aD
i32 0,label%az
]
ah:
store i8*null,i8**%f,align 8
store i8*null,i8**%j,align 8
call void@sml_matchcomp_bug()
%ai=load i8*,i8**@_SMLZ5Match,align 8
store i8*%ai,i8**%e,align 8
%aj=call i8*@sml_alloc(i32 inreg 20)#0
%ak=getelementptr inbounds i8,i8*%aj,i64 -4
%al=bitcast i8*%ak to i32*
store i32 1342177296,i32*%al,align 4
store i8*%aj,i8**%f,align 8
%am=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%an=bitcast i8*%aj to i8**
store i8*%am,i8**%an,align 8
%ao=getelementptr inbounds i8,i8*%aj,i64 8
%ap=bitcast i8*%ao to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[61x i8]}>,<{[4x i8],i32,[61x i8]}>*@D,i64 0,i32 2,i64 0),i8**%ap,align 8
%aq=getelementptr inbounds i8,i8*%aj,i64 16
%ar=bitcast i8*%aq to i32*
store i32 3,i32*%ar,align 4
%as=call i8*@sml_alloc(i32 inreg 60)#0
%at=getelementptr inbounds i8,i8*%as,i64 -4
%au=bitcast i8*%at to i32*
store i32 1342177336,i32*%au,align 4
%av=getelementptr inbounds i8,i8*%as,i64 56
%aw=bitcast i8*%av to i32*
store i32 1,i32*%aw,align 4
%ax=load i8*,i8**%f,align 8
%ay=bitcast i8*%as to i8**
store i8*%ax,i8**%ay,align 8
call void@sml_raise(i8*inreg%as)#1
unreachable
az:
%aA=getelementptr inbounds i8,i8*%v,i64 8
%aB=bitcast i8*%aA to i8**
%aC=load i8*,i8**%aB,align 8
ret i8*%aC
aD:
%aE=getelementptr inbounds i8,i8*%v,i64 8
%aF=bitcast i8*%aE to i8**
%aG=load i8*,i8**%aF,align 8
store i8*%aG,i8**%e,align 8
%aH=bitcast i8*%aG to i8**
%aI=load i8*,i8**%aH,align 8
%aJ=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%aK=call fastcc i8*@_SMLLN7EvalIty18evalKindedTvarListE_107(i8*inreg%w,i8*inreg%aJ,i8*inreg%aI)
store i8*%aK,i8**%f,align 8
%aL=bitcast i8*%aK to i8**
%aM=load i8*,i8**%aL,align 8
%aN=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%aO=getelementptr inbounds i8,i8*%aN,i64 8
%aP=bitcast i8*%aO to i8**
%aQ=load i8*,i8**%aP,align 8
%aR=load i8*,i8**%j,align 8
store i8*null,i8**%j,align 8
%aS=call fastcc i8*@_SMLLN7EvalIty7evalItyE_105(i8*inreg%aR,i8*inreg%aM,i8*inreg%aQ)
store i8*%aS,i8**%e,align 8
%aT=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%aU=getelementptr inbounds i8,i8*%aT,i64 8
%aV=bitcast i8*%aU to i8**
%aW=load i8*,i8**%aV,align 8
%aX=call fastcc i8*@_SMLFN11TypesBasics10freshSubstE(i8*inreg%aW)
store i8*%aX,i8**%f,align 8
%aY=call fastcc i8*@_SMLFN11TypesBasics10substBTvarE(i8*inreg%aX)
%aZ=getelementptr inbounds i8,i8*%aY,i64 16
%a0=bitcast i8*%aZ to i8*(i8*,i8*)**
%a1=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%a0,align 8
%a2=bitcast i8*%aY to i8**
%a3=load i8*,i8**%a2,align 8
%a4=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%a5=call fastcc i8*%a1(i8*inreg%a3,i8*inreg%a4)
store i8*%a5,i8**%e,align 8
%a6=call i8*@sml_alloc(i32 inreg 20)#0
%a7=getelementptr inbounds i8,i8*%a6,i64 -4
%a8=bitcast i8*%a7 to i32*
store i32 1342177296,i32*%a8,align 4
%a9=load i8*,i8**%e,align 8
%ba=bitcast i8*%a6 to i8**
store i8*%a9,i8**%ba,align 8
%bb=getelementptr inbounds i8,i8*%a6,i64 8
%bc=bitcast i8*%bb to i8**
store i8*null,i8**%bc,align 8
%bd=getelementptr inbounds i8,i8*%a6,i64 16
%be=bitcast i8*%bd to i32*
store i32 3,i32*%be,align 4
%bf=call fastcc i8*@_SMLFN11TypesBasics4EFTVE(i8*inreg%a6)
store i8*%bf,i8**%g,align 8
%bg=call fastcc i8*@_SMLFN14BoundTypeVarID3Map5foldlE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%bh=getelementptr inbounds i8,i8*%bg,i64 16
%bi=bitcast i8*%bh to i8*(i8*,i8*)**
%bj=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bi,align 8
%bk=bitcast i8*%bg to i8**
%bl=load i8*,i8**%bk,align 8
%bm=call fastcc i8*%bj(i8*inreg%bl,i8*inreg 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*))
%bn=getelementptr inbounds i8,i8*%bm,i64 16
%bo=bitcast i8*%bn to i8*(i8*,i8*)**
%bp=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bo,align 8
%bq=bitcast i8*%bm to i8**
%br=load i8*,i8**%bq,align 8
%bs=load i8*,i8**@_SMLZN5OTSet5emptyE,align 8
%bt=call fastcc i8*%bp(i8*inreg%br,i8*inreg%bs)
%bu=getelementptr inbounds i8,i8*%bt,i64 16
%bv=bitcast i8*%bu to i8*(i8*,i8*)**
%bw=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bv,align 8
%bx=bitcast i8*%bt to i8**
%by=load i8*,i8**%bx,align 8
%bz=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%bA=call fastcc i8*%bw(i8*inreg%by,i8*inreg%bz)
store i8*%bA,i8**%f,align 8
%bB=call fastcc i8*@_SMLFN4IEnv6filterE(i32 inreg 1,i32 inreg 8)
%bC=getelementptr inbounds i8,i8*%bB,i64 16
%bD=bitcast i8*%bC to i8*(i8*,i8*)**
%bE=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bD,align 8
%bF=bitcast i8*%bB to i8**
%bG=load i8*,i8**%bF,align 8
store i8*%bG,i8**%h,align 8
%bH=call i8*@sml_alloc(i32 inreg 12)#0
%bI=getelementptr inbounds i8,i8*%bH,i64 -4
%bJ=bitcast i8*%bI to i32*
store i32 1342177288,i32*%bJ,align 4
store i8*%bH,i8**%i,align 8
%bK=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%bL=bitcast i8*%bH to i8**
store i8*%bK,i8**%bL,align 8
%bM=getelementptr inbounds i8,i8*%bH,i64 8
%bN=bitcast i8*%bM to i32*
store i32 1,i32*%bN,align 4
%bO=call i8*@sml_alloc(i32 inreg 28)#0
%bP=getelementptr inbounds i8,i8*%bO,i64 -4
%bQ=bitcast i8*%bP to i32*
store i32 1342177304,i32*%bQ,align 4
%bR=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%bS=bitcast i8*%bO to i8**
store i8*%bR,i8**%bS,align 8
%bT=getelementptr inbounds i8,i8*%bO,i64 8
%bU=bitcast i8*%bT to void(...)**
store void(...)*bitcast(i32(i8*,i8*)*@_SMLL4tids_158 to void(...)*),void(...)**%bU,align 8
%bV=getelementptr inbounds i8,i8*%bO,i64 16
%bW=bitcast i8*%bV to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL4tids_206 to void(...)*),void(...)**%bW,align 8
%bX=getelementptr inbounds i8,i8*%bO,i64 24
%bY=bitcast i8*%bX to i32*
store i32 -2147483647,i32*%bY,align 4
%bZ=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%b0=call fastcc i8*%bE(i8*inreg%bZ,i8*inreg%bO)
%b1=getelementptr inbounds i8,i8*%b0,i64 16
%b2=bitcast i8*%b1 to i8*(i8*,i8*)**
%b3=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%b2,align 8
%b4=bitcast i8*%b0 to i8**
%b5=load i8*,i8**%b4,align 8
%b6=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%b7=getelementptr inbounds i8,i8*%b6,i64 16
%b8=bitcast i8*%b7 to i8**
%b9=load i8*,i8**%b8,align 8
%ca=call fastcc i8*%b3(i8*inreg%b5,i8*inreg%b9)
store i8*%ca,i8**%f,align 8
%cb=call fastcc i8*@_SMLFN4IEnv5foldlE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%cc=getelementptr inbounds i8,i8*%cb,i64 16
%cd=bitcast i8*%cc to i8*(i8*,i8*)**
%ce=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%cd,align 8
%cf=bitcast i8*%cb to i8**
%cg=load i8*,i8**%cf,align 8
%ch=call fastcc i8*%ce(i8*inreg%cg,i8*inreg 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*))
%ci=getelementptr inbounds i8,i8*%ch,i64 16
%cj=bitcast i8*%ci to i8*(i8*,i8*)**
%ck=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%cj,align 8
%cl=bitcast i8*%ch to i8**
%cm=load i8*,i8**%cl,align 8
store i8*%cm,i8**%g,align 8
%cn=call fastcc i8*@_SMLFN14BoundTypeVarID3Map5emptyE(i32 inreg 1,i32 inreg 8)
%co=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%cp=call fastcc i8*%ck(i8*inreg%co,i8*inreg%cn)
%cq=getelementptr inbounds i8,i8*%cp,i64 16
%cr=bitcast i8*%cq to i8*(i8*,i8*)**
%cs=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%cr,align 8
%ct=bitcast i8*%cp to i8**
%cu=load i8*,i8**%ct,align 8
%cv=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%cw=call fastcc i8*%cs(i8*inreg%cu,i8*inreg%cv)
store i8*%cw,i8**%f,align 8
%cx=call fastcc i8*@_SMLFN14BoundTypeVarID3Map7isEmptyE(i32 inreg 1,i32 inreg 8)
%cy=getelementptr inbounds i8,i8*%cx,i64 16
%cz=bitcast i8*%cy to i8*(i8*,i8*)**
%cA=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%cz,align 8
%cB=bitcast i8*%cx to i8**
%cC=load i8*,i8**%cB,align 8
%cD=load i8*,i8**%f,align 8
%cE=call fastcc i8*%cA(i8*inreg%cC,i8*inreg%cD)
%cF=bitcast i8*%cE to i32*
%cG=load i32,i32*%cF,align 4
%cH=icmp eq i32%cG,0
br i1%cH,label%cK,label%cI
cI:
%cJ=load i8*,i8**%e,align 8
ret i8*%cJ
cK:
%cL=call i8*@sml_alloc(i32 inreg 28)#0
%cM=getelementptr inbounds i8,i8*%cL,i64 -4
%cN=bitcast i8*%cM to i32*
store i32 1342177304,i32*%cN,align 4
store i8*%cL,i8**%g,align 8
%cO=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%cP=bitcast i8*%cL to i8**
store i8*%cO,i8**%cP,align 8
%cQ=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%cR=getelementptr inbounds i8,i8*%cL,i64 8
%cS=bitcast i8*%cR to i8**
store i8*%cQ,i8**%cS,align 8
%cT=getelementptr inbounds i8,i8*%cL,i64 16
%cU=bitcast i8*%cT to i8**
store i8*null,i8**%cU,align 8
%cV=getelementptr inbounds i8,i8*%cL,i64 24
%cW=bitcast i8*%cV to i32*
store i32 7,i32*%cW,align 4
%cX=call i8*@sml_alloc(i32 inreg 20)#0
%cY=bitcast i8*%cX to i32*
%cZ=getelementptr inbounds i8,i8*%cX,i64 -4
%c0=bitcast i8*%cZ to i32*
store i32 1342177296,i32*%c0,align 4
%c1=getelementptr inbounds i8,i8*%cX,i64 4
%c2=bitcast i8*%c1 to i32*
store i32 0,i32*%c2,align 1
store i32 7,i32*%cY,align 4
%c3=load i8*,i8**%g,align 8
%c4=getelementptr inbounds i8,i8*%cX,i64 8
%c5=bitcast i8*%c4 to i8**
store i8*%c3,i8**%c5,align 8
%c6=getelementptr inbounds i8,i8*%cX,i64 16
%c7=bitcast i8*%c6 to i32*
store i32 2,i32*%c7,align 4
ret i8*%cX
c8:
store i8*null,i8**%e,align 8
%c9=getelementptr inbounds i8,i8*%v,i64 8
%da=bitcast i8*%c9 to i8**
%db=load i8*,i8**%da,align 8
store i8*%db,i8**%g,align 8
%dc=call fastcc i8*@_SMLFN4List3mapE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%dd=getelementptr inbounds i8,i8*%dc,i64 16
%de=bitcast i8*%dd to i8*(i8*,i8*)**
%df=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%de,align 8
%dg=bitcast i8*%dc to i8**
%dh=load i8*,i8**%dg,align 8
store i8*%dh,i8**%e,align 8
%di=call i8*@sml_alloc(i32 inreg 20)#0
%dj=getelementptr inbounds i8,i8*%di,i64 -4
%dk=bitcast i8*%dj to i32*
store i32 1342177296,i32*%dk,align 4
store i8*%di,i8**%h,align 8
%dl=load i8*,i8**%f,align 8
%dm=bitcast i8*%di to i8**
store i8*%dl,i8**%dm,align 8
%dn=load i8*,i8**%j,align 8
%do=getelementptr inbounds i8,i8*%di,i64 8
%dp=bitcast i8*%do to i8**
store i8*%dn,i8**%dp,align 8
%dq=getelementptr inbounds i8,i8*%di,i64 16
%dr=bitcast i8*%dq to i32*
store i32 3,i32*%dr,align 4
%ds=call i8*@sml_alloc(i32 inreg 28)#0
%dt=getelementptr inbounds i8,i8*%ds,i64 -4
%du=bitcast i8*%dt to i32*
store i32 1342177304,i32*%du,align 4
%dv=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%dw=bitcast i8*%ds to i8**
store i8*%dv,i8**%dw,align 8
%dx=getelementptr inbounds i8,i8*%ds,i64 8
%dy=bitcast i8*%dx to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN7EvalIty7evalItyE_151 to void(...)*),void(...)**%dy,align 8
%dz=getelementptr inbounds i8,i8*%ds,i64 16
%dA=bitcast i8*%dz to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN7EvalIty7evalItyE_151 to void(...)*),void(...)**%dA,align 8
%dB=getelementptr inbounds i8,i8*%ds,i64 24
%dC=bitcast i8*%dB to i32*
store i32 -2147483647,i32*%dC,align 4
%dD=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%dE=call fastcc i8*%df(i8*inreg%dD,i8*inreg%ds)
%dF=getelementptr inbounds i8,i8*%dE,i64 16
%dG=bitcast i8*%dF to i8*(i8*,i8*)**
%dH=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%dG,align 8
%dI=bitcast i8*%dE to i8**
%dJ=load i8*,i8**%dI,align 8
%dK=load i8**,i8***%l,align 8
%dL=load i8*,i8**%dK,align 8
%dM=call fastcc i8*%dH(i8*inreg%dJ,i8*inreg%dL)
store i8*%dM,i8**%e,align 8
%dN=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%dO=getelementptr inbounds i8,i8*%dN,i64 8
%dP=bitcast i8*%dO to i8**
%dQ=load i8*,i8**%dP,align 8
%dR=load i8*,i8**%f,align 8
%dS=load i8*,i8**%j,align 8
store i8*null,i8**%f,align 8
store i8*null,i8**%j,align 8
%dT=call fastcc i8*@_SMLLN7EvalIty7evalItyE_105(i8*inreg%dS,i8*inreg%dR,i8*inreg%dQ)
store i8*%dT,i8**%f,align 8
%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**%g,align 8
%dX=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%dY=bitcast i8*%dU to i8**
store i8*%dX,i8**%dY,align 8
%dZ=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%d0=getelementptr inbounds i8,i8*%dU,i64 8
%d1=bitcast i8*%d0 to i8**
store i8*%dZ,i8**%d1,align 8
%d2=getelementptr inbounds i8,i8*%dU,i64 16
%d3=bitcast i8*%d2 to i32*
store i32 3,i32*%d3,align 4
%d4=call i8*@sml_alloc(i32 inreg 20)#0
%d5=bitcast i8*%d4 to i32*
%d6=getelementptr inbounds i8,i8*%d4,i64 -4
%d7=bitcast i8*%d6 to i32*
store i32 1342177296,i32*%d7,align 4
%d8=getelementptr inbounds i8,i8*%d4,i64 4
%d9=bitcast i8*%d8 to i32*
store i32 0,i32*%d9,align 1
store i32 6,i32*%d5,align 4
%ea=load i8*,i8**%g,align 8
%eb=getelementptr inbounds i8,i8*%d4,i64 8
%ec=bitcast i8*%eb to i8**
store i8*%ea,i8**%ec,align 8
%ed=getelementptr inbounds i8,i8*%d4,i64 16
%ee=bitcast i8*%ed to i32*
store i32 2,i32*%ee,align 4
ret i8*%d4
ef:
store i8*null,i8**%e,align 8
%eg=getelementptr inbounds i8,i8*%v,i64 8
%eh=bitcast i8*%eg to i8**
%ei=load i8*,i8**%eh,align 8
store i8*%ei,i8**%g,align 8
%ej=invoke fastcc i8*@_SMLFN4List3mapE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
to label%ek unwind label%fs
ek:
%el=getelementptr inbounds i8,i8*%ej,i64 16
%em=bitcast i8*%el to i8*(i8*,i8*)**
%en=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%em,align 8
%eo=bitcast i8*%ej to i8**
%ep=load i8*,i8**%eo,align 8
store i8*%ep,i8**%e,align 8
%eq=call i8*@sml_alloc(i32 inreg 20)#0
%er=getelementptr inbounds i8,i8*%eq,i64 -4
%es=bitcast i8*%er to i32*
store i32 1342177296,i32*%es,align 4
store i8*%eq,i8**%h,align 8
%et=load i8*,i8**%f,align 8
%eu=bitcast i8*%eq to i8**
store i8*%et,i8**%eu,align 8
%ev=load i8*,i8**%j,align 8
%ew=getelementptr inbounds i8,i8*%eq,i64 8
%ex=bitcast i8*%ew to i8**
store i8*%ev,i8**%ex,align 8
%ey=getelementptr inbounds i8,i8*%eq,i64 16
%ez=bitcast i8*%ey to i32*
store i32 3,i32*%ez,align 4
%eA=call i8*@sml_alloc(i32 inreg 28)#0
%eB=getelementptr inbounds i8,i8*%eA,i64 -4
%eC=bitcast i8*%eB to i32*
store i32 1342177304,i32*%eC,align 4
%eD=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%eE=bitcast i8*%eA to i8**
store i8*%eD,i8**%eE,align 8
%eF=getelementptr inbounds i8,i8*%eA,i64 8
%eG=bitcast i8*%eF to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL4args_143 to void(...)*),void(...)**%eG,align 8
%eH=getelementptr inbounds i8,i8*%eA,i64 16
%eI=bitcast i8*%eH to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL4args_143 to void(...)*),void(...)**%eI,align 8
%eJ=getelementptr inbounds i8,i8*%eA,i64 24
%eK=bitcast i8*%eJ to i32*
store i32 -2147483647,i32*%eK,align 4
%eL=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%eM=invoke fastcc i8*%en(i8*inreg%eL,i8*inreg%eA)
to label%eN unwind label%fs
eN:
%eO=getelementptr inbounds i8,i8*%eM,i64 16
%eP=bitcast i8*%eO to i8*(i8*,i8*)**
%eQ=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%eP,align 8
%eR=bitcast i8*%eM to i8**
%eS=load i8*,i8**%eR,align 8
%eT=load i8**,i8***%l,align 8
%eU=load i8*,i8**%eT,align 8
%eV=invoke fastcc i8*%eQ(i8*inreg%eS,i8*inreg%eU)
to label%eW unwind label%fs
eW:
store i8*%eV,i8**%e,align 8
%eX=load i8*,i8**%g,align 8
%eY=getelementptr inbounds i8,i8*%eX,i64 8
%eZ=bitcast i8*%eY to i8**
%e0=load i8*,i8**%eZ,align 8
%e1=load i8*,i8**%f,align 8
%e2=load i8*,i8**%j,align 8
%e3=invoke fastcc i8*@_SMLLN7EvalIty8evalTfunE_104(i8*inreg%e2,i8*inreg%e1,i8*inreg%e0)
to label%e4 unwind label%fq
e4:
store i8*null,i8**%f,align 8
store i8*null,i8**%j,align 8
store i8*%e3,i8**%g,align 8
%e5=call i8*@sml_alloc(i32 inreg 20)#0
%e6=getelementptr inbounds i8,i8*%e5,i64 -4
%e7=bitcast i8*%e6 to i32*
store i32 1342177296,i32*%e7,align 4
store i8*%e5,i8**%f,align 8
%e8=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%e9=bitcast i8*%e5 to i8**
store i8*%e8,i8**%e9,align 8
%fa=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%fb=getelementptr inbounds i8,i8*%e5,i64 8
%fc=bitcast i8*%fb to i8**
store i8*%fa,i8**%fc,align 8
%fd=getelementptr inbounds i8,i8*%e5,i64 16
%fe=bitcast i8*%fd to i32*
store i32 3,i32*%fe,align 4
%ff=call i8*@sml_alloc(i32 inreg 20)#0
%fg=bitcast i8*%ff to i32*
%fh=getelementptr inbounds i8,i8*%ff,i64 -4
%fi=bitcast i8*%fh to i32*
store i32 1342177296,i32*%fi,align 4
%fj=getelementptr inbounds i8,i8*%ff,i64 4
%fk=bitcast i8*%fj to i32*
store i32 0,i32*%fk,align 1
store i32 2,i32*%fg,align 4
%fl=load i8*,i8**%f,align 8
%fm=getelementptr inbounds i8,i8*%ff,i64 8
%fn=bitcast i8*%fm to i8**
store i8*%fl,i8**%fn,align 8
%fo=getelementptr inbounds i8,i8*%ff,i64 16
%fp=bitcast i8*%fo to i32*
store i32 2,i32*%fp,align 4
br label%jn
fq:
%fr=landingpad{i8*,i8*}
catch i8*null
br label%fu
fs:
%ft=landingpad{i8*,i8*}
catch i8*null
br label%fu
fu:
%fv=phi{i8*,i8*}[%ft,%fs],[%fr,%fq]
%fw=extractvalue{i8*,i8*}%fv,1
%fx=bitcast i8*%fw to i8**
%fy=load i8*,i8**%fx,align 8
store i8*%fy,i8**%e,align 8
%fz=bitcast i8*%fy to i8**
%fA=load i8*,i8**%fz,align 8
%fB=icmp eq i8*%fA,bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*}>,<{[4x i8],i32,i8*}>*@_SMLDL102,i64 0,i32 2)to i8*)
br i1%fB,label%fC,label%jf
fC:
store i8*null,i8**%e,align 8
%fD=getelementptr inbounds i8,i8*%fy,i64 16
%fE=bitcast i8*%fD to i8**
%fF=load i8*,i8**%fE,align 8
store i8*%fF,i8**%h,align 8
%fG=getelementptr inbounds i8,i8*%fF,i64 8
%fH=bitcast i8*%fG to i8**
%fI=load i8*,i8**%fH,align 8
store i8*%fI,i8**%i,align 8
%fJ=call fastcc i8*@_SMLFN4List6lengthE(i32 inreg 1,i32 inreg 8)
%fK=getelementptr inbounds i8,i8*%fJ,i64 16
%fL=bitcast i8*%fK to i8*(i8*,i8*)**
%fM=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%fL,align 8
%fN=bitcast i8*%fJ to i8**
%fO=load i8*,i8**%fN,align 8
%fP=load i8*,i8**%i,align 8
%fQ=call fastcc i8*%fM(i8*inreg%fO,i8*inreg%fP)
%fR=bitcast i8*%fQ to i32*
%fS=load i32,i32*%fR,align 4
%fT=call fastcc i8*@_SMLFN4List6lengthE(i32 inreg 1,i32 inreg 8)
%fU=getelementptr inbounds i8,i8*%fT,i64 16
%fV=bitcast i8*%fU to i8*(i8*,i8*)**
%fW=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%fV,align 8
%fX=bitcast i8*%fT to i8**
%fY=load i8*,i8**%fX,align 8
%fZ=load i8**,i8***%l,align 8
%f0=load i8*,i8**%fZ,align 8
%f1=call fastcc i8*%fW(i8*inreg%fY,i8*inreg%f0)
%f2=bitcast i8*%f1 to i32*
%f3=load i32,i32*%f2,align 4
%f4=icmp eq i32%fS,%f3
br i1%f4,label%f5,label%iT
f5:
%f6=call fastcc i8*@_SMLFN4List3mapE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%f7=getelementptr inbounds i8,i8*%f6,i64 16
%f8=bitcast i8*%f7 to i8*(i8*,i8*)**
%f9=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%f8,align 8
%ga=bitcast i8*%f6 to i8**
%gb=load i8*,i8**%ga,align 8
store i8*%gb,i8**%e,align 8
%gc=call i8*@sml_alloc(i32 inreg 20)#0
%gd=getelementptr inbounds i8,i8*%gc,i64 -4
%ge=bitcast i8*%gd to i32*
store i32 1342177296,i32*%ge,align 4
store i8*%gc,i8**%k,align 8
%gf=load i8*,i8**%f,align 8
%gg=bitcast i8*%gc to i8**
store i8*%gf,i8**%gg,align 8
%gh=load i8*,i8**%j,align 8
%gi=getelementptr inbounds i8,i8*%gc,i64 8
%gj=bitcast i8*%gi to i8**
store i8*%gh,i8**%gj,align 8
%gk=getelementptr inbounds i8,i8*%gc,i64 16
%gl=bitcast i8*%gk to i32*
store i32 3,i32*%gl,align 4
%gm=call i8*@sml_alloc(i32 inreg 28)#0
%gn=getelementptr inbounds i8,i8*%gm,i64 -4
%go=bitcast i8*%gn to i32*
store i32 1342177304,i32*%go,align 4
%gp=load i8*,i8**%k,align 8
store i8*null,i8**%k,align 8
%gq=bitcast i8*%gm to i8**
store i8*%gp,i8**%gq,align 8
%gr=getelementptr inbounds i8,i8*%gm,i64 8
%gs=bitcast i8*%gr to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL4args_148 to void(...)*),void(...)**%gs,align 8
%gt=getelementptr inbounds i8,i8*%gm,i64 16
%gu=bitcast i8*%gt to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL4args_148 to void(...)*),void(...)**%gu,align 8
%gv=getelementptr inbounds i8,i8*%gm,i64 24
%gw=bitcast i8*%gv to i32*
store i32 -2147483647,i32*%gw,align 4
%gx=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%gy=call fastcc i8*%f9(i8*inreg%gx,i8*inreg%gm)
%gz=getelementptr inbounds i8,i8*%gy,i64 16
%gA=bitcast i8*%gz to i8*(i8*,i8*)**
%gB=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%gA,align 8
%gC=bitcast i8*%gy to i8**
%gD=load i8*,i8**%gC,align 8
%gE=load i8**,i8***%l,align 8
store i8*null,i8**%g,align 8
%gF=load i8*,i8**%gE,align 8
%gG=call fastcc i8*%gB(i8*inreg%gD,i8*inreg%gF)
store i8*%gG,i8**%e,align 8
%gH=call fastcc i8*@_SMLFN8ListPair3zipE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%gI=getelementptr inbounds i8,i8*%gH,i64 16
%gJ=bitcast i8*%gI to i8*(i8*,i8*)**
%gK=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%gJ,align 8
%gL=bitcast i8*%gH to i8**
%gM=load i8*,i8**%gL,align 8
store i8*%gM,i8**%g,align 8
%gN=call i8*@sml_alloc(i32 inreg 20)#0
%gO=getelementptr inbounds i8,i8*%gN,i64 -4
%gP=bitcast i8*%gO to i32*
store i32 1342177296,i32*%gP,align 4
%gQ=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%gR=bitcast i8*%gN to i8**
store i8*%gQ,i8**%gR,align 8
%gS=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%gT=getelementptr inbounds i8,i8*%gN,i64 8
%gU=bitcast i8*%gT to i8**
store i8*%gS,i8**%gU,align 8
%gV=getelementptr inbounds i8,i8*%gN,i64 16
%gW=bitcast i8*%gV to i32*
store i32 3,i32*%gW,align 4
%gX=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%gY=call fastcc i8*%gK(i8*inreg%gX,i8*inreg%gN)
store i8*%gY,i8**%e,align 8
%gZ=call fastcc i8*@_SMLFN4List5foldrE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%g0=getelementptr inbounds i8,i8*%gZ,i64 16
%g1=bitcast i8*%g0 to i8*(i8*,i8*)**
%g2=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%g1,align 8
%g3=bitcast i8*%gZ to i8**
%g4=load i8*,i8**%g3,align 8
%g5=call fastcc i8*%g2(i8*inreg%g4,i8*inreg 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*))
%g6=getelementptr inbounds i8,i8*%g5,i64 16
%g7=bitcast i8*%g6 to i8*(i8*,i8*)**
%g8=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%g7,align 8
%g9=bitcast i8*%g5 to i8**
%ha=load i8*,i8**%g9,align 8
%hb=load i8*,i8**%f,align 8
%hc=sext i32%F to i64
%hd=getelementptr inbounds i8,i8*%hb,i64%hc
%he=bitcast i8*%hd to i8**
%hf=load i8*,i8**%he,align 8
%hg=call fastcc i8*%g8(i8*inreg%ha,i8*inreg%hf)
%hh=getelementptr inbounds i8,i8*%hg,i64 16
%hi=bitcast i8*%hh to i8*(i8*,i8*)**
%hj=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%hi,align 8
%hk=bitcast i8*%hg to i8**
%hl=load i8*,i8**%hk,align 8
%hm=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%hn=call fastcc i8*%hj(i8*inreg%hl,i8*inreg%hm)
store i8*%hn,i8**%e,align 8
%ho=load i8*,i8**%j,align 8
%hp=getelementptr inbounds i8,i8*%ho,i64 8
%hq=bitcast i8*%hp to i32*
%hr=load i32,i32*%hq,align 4
%hs=icmp eq i32%hr,0
br i1%hs,label%hz,label%ht
ht:
%hu=load i8*,i8**%f,align 8
%hv=sext i32%C to i64
%hw=getelementptr inbounds i8,i8*%hu,i64%hv
%hx=bitcast i8*%hw to i8**
%hy=load i8*,i8**%hx,align 8
br label%hN
hz:
%hA=getelementptr inbounds i8,i8*%ho,i64 12
%hB=bitcast i8*%hA to i32*
%hC=load i32,i32*%hB,align 4
%hD=call i8*@sml_alloc(i32 inreg%hC)#0
%hE=getelementptr inbounds i8,i8*%hD,i64 -4
%hF=bitcast i8*%hE to i32*
store i32%hC,i32*%hF,align 4
%hG=load i8*,i8**%f,align 8
%hH=sext i32%C to i64
%hI=getelementptr inbounds i8,i8*%hG,i64%hH
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%hD,i8*%hI,i32%hC,i1 false)
%hJ=load i8*,i8**%j,align 8
%hK=getelementptr inbounds i8,i8*%hJ,i64 8
%hL=bitcast i8*%hK to i32*
%hM=load i32,i32*%hL,align 4
br label%hN
hN:
%hO=phi i8*[%hG,%hz],[%hu,%ht]
%hP=phi i32[%hM,%hz],[%hr,%ht]
%hQ=phi i8*[%hJ,%hz],[%ho,%ht]
%hR=phi i8*[%hD,%hz],[%hy,%ht]
store i8*%hR,i8**%g,align 8
%hS=getelementptr inbounds i8,i8*%hQ,i64 12
%hT=bitcast i8*%hS to i32*
%hU=load i32,i32*%hT,align 4
%hV=getelementptr inbounds i8,i8*%hQ,i64 16
%hW=bitcast i8*%hV to i32*
%hX=load i32,i32*%hW,align 4
%hY=icmp eq i32%hX,0
br i1%hY,label%h4,label%hZ
hZ:
store i8*null,i8**%f,align 8
%h0=sext i32%M to i64
%h1=getelementptr inbounds i8,i8*%hO,i64%h0
%h2=bitcast i8*%h1 to i8**
%h3=load i8*,i8**%h2,align 8
br label%ii
h4:
%h5=getelementptr inbounds i8,i8*%hQ,i64 20
%h6=bitcast i8*%h5 to i32*
%h7=load i32,i32*%h6,align 4
%h8=call i8*@sml_alloc(i32 inreg%h7)#0
%h9=getelementptr inbounds i8,i8*%h8,i64 -4
%ia=bitcast i8*%h9 to i32*
store i32%h7,i32*%ia,align 4
%ib=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%ic=sext i32%M to i64
%id=getelementptr inbounds i8,i8*%ib,i64%ic
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%h8,i8*%id,i32%h7,i1 false)
%ie=load i8*,i8**%j,align 8
%if=getelementptr inbounds i8,i8*%ie,i64 16
%ig=bitcast i8*%if to i32*
%ih=load i32,i32*%ig,align 4
br label%ii
ii:
%ij=phi i32[%ih,%h4],[%hX,%hZ]
%ik=phi i8*[%ie,%h4],[%hQ,%hZ]
%il=phi i8*[%h8,%h4],[%h3,%hZ]
store i8*%il,i8**%f,align 8
%im=getelementptr inbounds i8,i8*%ik,i64 20
%in=bitcast i8*%im to i32*
%io=load i32,i32*%in,align 4
%ip=call i8*@sml_alloc(i32 inreg%ae)#0
%iq=or i32%O,1342177280
%ir=getelementptr inbounds i8,i8*%ip,i64 -4
%is=bitcast i8*%ir to i32*
store i32%iq,i32*%is,align 4
call void@llvm.memset.p0i8.i32(i8*%ip,i8 0,i32%ae,i1 false)
%it=icmp eq i32%hP,0
%iu=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%iv=sext i32%C to i64
%iw=getelementptr inbounds i8,i8*%ip,i64%iv
br i1%it,label%iz,label%ix
ix:
%iy=bitcast i8*%iw to i8**
store i8*%iu,i8**%iy,align 8
br label%iA
iz:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%iw,i8*%iu,i32%hU,i1 false)
br label%iA
iA:
%iB=load i8*,i8**%e,align 8
%iC=getelementptr inbounds i8,i8*%ip,i64%hc
%iD=bitcast i8*%iC to i8**
store i8*%iB,i8**%iD,align 8
%iE=icmp eq i32%ij,0
%iF=load i8*,i8**%f,align 8
%iG=sext i32%M to i64
%iH=getelementptr inbounds i8,i8*%ip,i64%iG
br i1%iE,label%iK,label%iI
iI:
%iJ=bitcast i8*%iH to i8**
store i8*%iF,i8**%iJ,align 8
br label%iL
iK:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%iH,i8*%iF,i32%io,i1 false)
br label%iL
iL:
%iM=sext i32%O to i64
%iN=getelementptr inbounds i8,i8*%ip,i64%iM
%iO=bitcast i8*%iN to i32*
store i32%ad,i32*%iO,align 4
%iP=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%iQ=getelementptr inbounds i8,i8*%iP,i64 24
%iR=bitcast i8*%iQ to i8**
%iS=load i8*,i8**%iR,align 8
br label%m
iT:
store i8*null,i8**%f,align 8
store i8*null,i8**%g,align 8
store i8*null,i8**%h,align 8
store i8*null,i8**%i,align 8
store i8*null,i8**%j,align 8
%iU=load i8*,i8**@_SMLZN3Bug3BugE,align 8
store i8*%iU,i8**%e,align 8
%iV=call fastcc i8*@_SMLFN6String1_ZE(i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,i8*,i32}>,<{[4x i8],i32,i8*,i8*,i32}>*@t,i64 0,i32 2)to i8*))
store i8*%iV,i8**%f,align 8
%iW=call i8*@sml_alloc(i32 inreg 28)#0
%iX=getelementptr inbounds i8,i8*%iW,i64 -4
%iY=bitcast i8*%iX to i32*
store i32 1342177304,i32*%iY,align 4
store i8*%iW,i8**%g,align 8
%iZ=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%i0=bitcast i8*%iW to i8**
store i8*%iZ,i8**%i0,align 8
%i1=getelementptr inbounds i8,i8*%iW,i64 8
%i2=bitcast i8*%i1 to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[60x i8]}>,<{[4x i8],i32,[60x i8]}>*@v,i64 0,i32 2,i64 0),i8**%i2,align 8
%i3=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%i4=getelementptr inbounds i8,i8*%iW,i64 16
%i5=bitcast i8*%i4 to i8**
store i8*%i3,i8**%i5,align 8
%i6=getelementptr inbounds i8,i8*%iW,i64 24
%i7=bitcast i8*%i6 to i32*
store i32 7,i32*%i7,align 4
%i8=call i8*@sml_alloc(i32 inreg 60)#0
%i9=getelementptr inbounds i8,i8*%i8,i64 -4
%ja=bitcast i8*%i9 to i32*
store i32 1342177336,i32*%ja,align 4
%jb=getelementptr inbounds i8,i8*%i8,i64 56
%jc=bitcast i8*%jb to i32*
store i32 1,i32*%jc,align 4
%jd=load i8*,i8**%g,align 8
%je=bitcast i8*%i8 to i8**
store i8*%jd,i8**%je,align 8
call void@sml_raise(i8*inreg%i8)#1
unreachable
jf:
store i8*null,i8**%f,align 8
store i8*null,i8**%g,align 8
store i8*null,i8**%j,align 8
%jg=call i8*@sml_alloc(i32 inreg 60)#0
%jh=getelementptr inbounds i8,i8*%jg,i64 -4
%ji=bitcast i8*%jh to i32*
store i32 1342177336,i32*%ji,align 4
%jj=getelementptr inbounds i8,i8*%jg,i64 56
%jk=bitcast i8*%jj to i32*
store i32 1,i32*%jk,align 4
%jl=load i8*,i8**%e,align 8
%jm=bitcast i8*%jg to i8**
store i8*%jl,i8**%jm,align 8
call void@sml_raise(i8*inreg%jg)#1
unreachable
jn:
%jo=phi i8*[%ff,%e4],[null,%u]
ret i8*%jo
jp:
store i8*null,i8**%e,align 8
%jq=getelementptr inbounds i8,i8*%v,i64 8
%jr=bitcast i8*%jq to i8**
%js=load i8*,i8**%jr,align 8
store i8*%js,i8**%g,align 8
%jt=call fastcc i8*@_SMLFN11RecordLabel3Map3mapE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%ju=getelementptr inbounds i8,i8*%jt,i64 16
%jv=bitcast i8*%ju to i8*(i8*,i8*)**
%jw=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%jv,align 8
%jx=bitcast i8*%jt to i8**
%jy=load i8*,i8**%jx,align 8
store i8*%jy,i8**%e,align 8
%jz=call i8*@sml_alloc(i32 inreg 20)#0
%jA=getelementptr inbounds i8,i8*%jz,i64 -4
%jB=bitcast i8*%jA to i32*
store i32 1342177296,i32*%jB,align 4
store i8*%jz,i8**%h,align 8
%jC=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%jD=bitcast i8*%jz to i8**
store i8*%jC,i8**%jD,align 8
%jE=load i8*,i8**%j,align 8
store i8*null,i8**%j,align 8
%jF=getelementptr inbounds i8,i8*%jz,i64 8
%jG=bitcast i8*%jF to i8**
store i8*%jE,i8**%jG,align 8
%jH=getelementptr inbounds i8,i8*%jz,i64 16
%jI=bitcast i8*%jH to i32*
store i32 3,i32*%jI,align 4
%jJ=call i8*@sml_alloc(i32 inreg 28)#0
%jK=getelementptr inbounds i8,i8*%jJ,i64 -4
%jL=bitcast i8*%jK to i32*
store i32 1342177304,i32*%jL,align 4
%jM=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%jN=bitcast i8*%jJ to i8**
store i8*%jM,i8**%jN,align 8
%jO=getelementptr inbounds i8,i8*%jJ,i64 8
%jP=bitcast i8*%jO to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL6fields_142 to void(...)*),void(...)**%jP,align 8
%jQ=getelementptr inbounds i8,i8*%jJ,i64 16
%jR=bitcast i8*%jQ to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL6fields_142 to void(...)*),void(...)**%jR,align 8
%jS=getelementptr inbounds i8,i8*%jJ,i64 24
%jT=bitcast i8*%jS to i32*
store i32 -2147483647,i32*%jT,align 4
%jU=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%jV=call fastcc i8*%jw(i8*inreg%jU,i8*inreg%jJ)
%jW=getelementptr inbounds i8,i8*%jV,i64 16
%jX=bitcast i8*%jW to i8*(i8*,i8*)**
%jY=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%jX,align 8
%jZ=bitcast i8*%jV to i8**
%j0=load i8*,i8**%jZ,align 8
%j1=load i8**,i8***%l,align 8
%j2=load i8*,i8**%j1,align 8
%j3=call fastcc i8*%jY(i8*inreg%j0,i8*inreg%j2)
store i8*%j3,i8**%e,align 8
%j4=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%j5=getelementptr inbounds i8,i8*%j4,i64 8
%j6=bitcast i8*%j5 to i32*
%j7=load i32,i32*%j6,align 4
%j8=icmp eq i32%j7,0
br i1%j8,label%kb,label%j9
j9:
%ka=tail call fastcc i8*@_SMLFN5Types19newtyWithRecordKindE(i8*inreg%j3)
ret i8*%ka
kb:
%kc=call i8*@sml_alloc(i32 inreg 20)#0
%kd=bitcast i8*%kc to i32*
%ke=getelementptr inbounds i8,i8*%kc,i64 -4
%kf=bitcast i8*%ke to i32*
store i32 1342177296,i32*%kf,align 4
%kg=getelementptr inbounds i8,i8*%kc,i64 4
%kh=bitcast i8*%kg to i32*
store i32 0,i32*%kh,align 1
store i32 8,i32*%kd,align 4
%ki=load i8*,i8**%e,align 8
%kj=getelementptr inbounds i8,i8*%kc,i64 8
%kk=bitcast i8*%kj to i8**
store i8*%ki,i8**%kk,align 8
%kl=getelementptr inbounds i8,i8*%kc,i64 16
%km=bitcast i8*%kl to i32*
store i32 2,i32*%km,align 4
ret i8*%kc
kn:
%ko=load i8*,i8**%f,align 8
%kp=getelementptr inbounds i8,i8*%v,i64 8
%kq=bitcast i8*%kp to i8**
%kr=load i8*,i8**%kq,align 8
%ks=tail call fastcc i8*@_SMLLN7EvalIty12evalFreeTvarE_106(i8*inreg%w,i8*inreg%ko,i8*inreg%kr)
ret i8*%ks
kt:
store i8*null,i8**%j,align 8
%ku=getelementptr inbounds i8,i8*%v,i64 8
%kv=bitcast i8*%ku to i8**
%kw=load i8*,i8**%kv,align 8
store i8*%kw,i8**%g,align 8
%kx=call fastcc i8*@_SMLFN7TvarMap4findE(i32 inreg 1,i32 inreg 8)
%ky=getelementptr inbounds i8,i8*%kx,i64 16
%kz=bitcast i8*%ky to i8*(i8*,i8*)**
%kA=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%kz,align 8
%kB=bitcast i8*%kx to i8**
%kC=load i8*,i8**%kB,align 8
store i8*%kC,i8**%h,align 8
%kD=load i8*,i8**%f,align 8
%kE=sext i32%F to i64
%kF=getelementptr inbounds i8,i8*%kD,i64%kE
%kG=bitcast i8*%kF to i8**
%kH=load i8*,i8**%kG,align 8
store i8*%kH,i8**%f,align 8
%kI=call i8*@sml_alloc(i32 inreg 20)#0
%kJ=getelementptr inbounds i8,i8*%kI,i64 -4
%kK=bitcast i8*%kJ to i32*
store i32 1342177296,i32*%kK,align 4
%kL=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%kM=bitcast i8*%kI to i8**
store i8*%kL,i8**%kM,align 8
%kN=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%kO=getelementptr inbounds i8,i8*%kI,i64 8
%kP=bitcast i8*%kO to i8**
store i8*%kN,i8**%kP,align 8
%kQ=getelementptr inbounds i8,i8*%kI,i64 16
%kR=bitcast i8*%kQ to i32*
store i32 3,i32*%kR,align 4
%kS=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%kT=call fastcc i8*%kA(i8*inreg%kS,i8*inreg%kI)
%kU=icmp eq i8*%kT,null
br i1%kU,label%kV,label%l4
kV:
%kW=load i32*,i32**bitcast(i8**@_SMLZN3Bug10debugPrintE to i32**),align 8
%kX=load i32,i32*%kW,align 4
%kY=icmp eq i32%kX,0
br i1%kY,label%k0,label%kZ
kZ:
call fastcc void@_SMLFN6TextIO5printE(i8*inreg getelementptr inbounds(<{[4x i8],i32,[24x i8]}>,<{[4x i8],i32,[24x i8]}>*@p,i64 0,i32 2,i64 0))
br label%k0
k0:
%k1=load i8*,i8**%e,align 8
%k2=bitcast i8**%d to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%k2)
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%k1,i8**%d,align 8
%k3=load atomic i32,i32*@sml_check_flag unordered,align 4
%k4=icmp eq i32%k3,0
br i1%k4,label%k7,label%k5
k5:
call void@sml_check(i32 inreg%k3)
%k6=load i8*,i8**%d,align 8
br label%k7
k7:
%k8=phi i8*[%k6,%k5],[%k1,%k0]
store i8*null,i8**%d,align 8
%k9=call fastcc i8*@_SMLFN6IDCalc9format__tyE(i8*inreg%k8)
%la=call fastcc i8*@_SMLFN3Bug11prettyPrintE(i8*inreg%k9)
%lb=load i32*,i32**bitcast(i8**@_SMLZN3Bug10debugPrintE to i32**),align 8
%lc=load i32,i32*%lb,align 4
%ld=icmp eq i32%lc,0
br i1%ld,label%lg,label%le
le:
call fastcc void@_SMLFN6TextIO5printE(i8*inreg%la)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%k2)
%lf=load i32*,i32**bitcast(i8**@_SMLZN3Bug10debugPrintE to i32**),align 8
br label%lh
lg:
call void@llvm.lifetime.end.p0i8(i64 8,i8*%k2)
br label%lh
lh:
%li=phi i32*[%lb,%lg],[%lf,%le]
%lj=load i32,i32*%li,align 4
%lk=icmp eq i32%lj,0
br i1%lk,label%lm,label%ll
ll:
call fastcc void@_SMLFN6TextIO5printE(i8*inreg getelementptr inbounds(<{[4x i8],i32,[2x i8]}>,<{[4x i8],i32,[2x i8]}>*@q,i64 0,i32 2,i64 0))
br label%lm
lm:
%ln=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%lo=call fastcc i8*@_SMLFN6IDCalc9format__tyE(i8*inreg%ln)
%lp=call fastcc i8*@_SMLFN3Bug11prettyPrintE(i8*inreg%lo)
store i8*%lp,i8**%e,align 8
%lq=call i8*@sml_alloc(i32 inreg 20)#0
%lr=getelementptr inbounds i8,i8*%lq,i64 -4
%ls=bitcast i8*%lr to i32*
store i32 1342177296,i32*%ls,align 4
%lt=bitcast i8*%lq to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[11x i8]}>,<{[4x i8],i32,[11x i8]}>*@r,i64 0,i32 2,i64 0),i8**%lt,align 8
%lu=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%lv=getelementptr inbounds i8,i8*%lq,i64 8
%lw=bitcast i8*%lv to i8**
store i8*%lu,i8**%lw,align 8
%lx=getelementptr inbounds i8,i8*%lq,i64 16
%ly=bitcast i8*%lx to i32*
store i32 3,i32*%ly,align 4
%lz=call fastcc i8*@_SMLFN6String1_ZE(i8*inreg%lq)
store i8*%lz,i8**%e,align 8
%lA=load i8*,i8**@_SMLZN3Bug3BugE,align 8
store i8*%lA,i8**%f,align 8
%lB=call i8*@sml_alloc(i32 inreg 20)#0
%lC=getelementptr inbounds i8,i8*%lB,i64 -4
%lD=bitcast i8*%lC to i32*
store i32 1342177296,i32*%lD,align 4
%lE=bitcast i8*%lB to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[10x i8]}>,<{[4x i8],i32,[10x i8]}>*@w,i64 0,i32 2,i64 0),i8**%lE,align 8
%lF=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%lG=getelementptr inbounds i8,i8*%lB,i64 8
%lH=bitcast i8*%lG to i8**
store i8*%lF,i8**%lH,align 8
%lI=getelementptr inbounds i8,i8*%lB,i64 16
%lJ=bitcast i8*%lI to i32*
store i32 3,i32*%lJ,align 4
%lK=call fastcc i8*@_SMLFN6String1_ZE(i8*inreg%lB)
store i8*%lK,i8**%e,align 8
%lL=call i8*@sml_alloc(i32 inreg 28)#0
%lM=getelementptr inbounds i8,i8*%lL,i64 -4
%lN=bitcast i8*%lM to i32*
store i32 1342177304,i32*%lN,align 4
store i8*%lL,i8**%g,align 8
%lO=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%lP=bitcast i8*%lL to i8**
store i8*%lO,i8**%lP,align 8
%lQ=getelementptr inbounds i8,i8*%lL,i64 8
%lR=bitcast i8*%lQ to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[60x i8]}>,<{[4x i8],i32,[60x i8]}>*@v,i64 0,i32 2,i64 0),i8**%lR,align 8
%lS=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%lT=getelementptr inbounds i8,i8*%lL,i64 16
%lU=bitcast i8*%lT to i8**
store i8*%lS,i8**%lU,align 8
%lV=getelementptr inbounds i8,i8*%lL,i64 24
%lW=bitcast i8*%lV to i32*
store i32 7,i32*%lW,align 4
%lX=call i8*@sml_alloc(i32 inreg 60)#0
%lY=getelementptr inbounds i8,i8*%lX,i64 -4
%lZ=bitcast i8*%lY to i32*
store i32 1342177336,i32*%lZ,align 4
%l0=getelementptr inbounds i8,i8*%lX,i64 56
%l1=bitcast i8*%l0 to i32*
store i32 1,i32*%l1,align 4
%l2=load i8*,i8**%g,align 8
%l3=bitcast i8*%lX to i8**
store i8*%l2,i8**%l3,align 8
call void@sml_raise(i8*inreg%lX)#1
unreachable
l4:
%l5=bitcast i8*%kT to i8**
%l6=load i8*,i8**%l5,align 8
ret i8*%l6
l7:
%l8=load i8*,i8**@_SMLZN5Types8univKindE,align 8
%l9=tail call fastcc i8*@_SMLFN5Types5newtyE(i8*inreg%l8)
ret i8*%l9
}
define internal fastcc i8*@_SMLLN7EvalIty12evalFreeTvarE_106(i8*inreg%a,i8*inreg%b,i8*inreg%c)#2 gc"smlsharp"{
q:
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
%h=alloca i8*,align 8
%i=alloca i8*,align 8
%j=alloca i8*,align 8
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
call void@llvm.gcroot(i8**%h,i8*null)#0
call void@llvm.gcroot(i8**%i,i8*null)#0
call void@llvm.gcroot(i8**%j,i8*null)#0
store i8*%b,i8**%d,align 8
store i8*%c,i8**%e,align 8
store i8*%a,i8**%i,align 8
%k=load atomic i32,i32*@sml_check_flag unordered,align 4
%l=icmp eq i32%k,0
br i1%l,label%o,label%m
m:
call void@sml_check(i32 inreg%k)
%n=load i8*,i8**%e,align 8
br label%o
o:
%p=phi i8*[%n,%m],[%c,%q]
store i8*%p,i8**%f,align 8
%r=bitcast i8*%p to i32*
%s=load i32,i32*%r,align 4
%t=getelementptr inbounds i8,i8*%p,i64 16
%u=bitcast i8*%t to i8**
%v=load i8*,i8**%u,align 8
%w=bitcast i8*%v to i32*
%x=load i32,i32*%w,align 4
switch i32%x,label%y[
i32 1,label%a0
i32 0,label%Q
]
y:
store i8*null,i8**%f,align 8
store i8*null,i8**%i,align 8
call void@sml_matchcomp_bug()
%z=load i8*,i8**@_SMLZ5Match,align 8
store i8*%z,i8**%d,align 8
%A=call i8*@sml_alloc(i32 inreg 20)#0
%B=getelementptr inbounds i8,i8*%A,i64 -4
%C=bitcast i8*%B to i32*
store i32 1342177296,i32*%C,align 4
store i8*%A,i8**%e,align 8
%D=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%E=bitcast i8*%A to i8**
store i8*%D,i8**%E,align 8
%F=getelementptr inbounds i8,i8*%A,i64 8
%G=bitcast i8*%F to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[62x i8]}>,<{[4x i8],i32,[62x i8]}>*@E,i64 0,i32 2,i64 0),i8**%G,align 8
%H=getelementptr inbounds i8,i8*%A,i64 16
%I=bitcast i8*%H to i32*
store i32 3,i32*%I,align 4
%J=call 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**%e,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=getelementptr inbounds i8,i8*%v,i64 8
%S=bitcast i8*%R to i8**
%T=load i8*,i8**%S,align 8
store i8*%T,i8**%e,align 8
%U=bitcast i8*%T to i8**
%V=load i8*,i8**%U,align 8
store i8*%V,i8**%g,align 8
%W=call fastcc i8*@_SMLFN11RecordLabel3Map3mapE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%X=getelementptr inbounds i8,i8*%W,i64 16
%Y=bitcast i8*%X to i8*(i8*,i8*)**
%Z=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%Y,align 8
%aa=bitcast i8*%W to i8**
%ab=load i8*,i8**%aa,align 8
store i8*%ab,i8**%h,align 8
%ac=call i8*@sml_alloc(i32 inreg 20)#0
%ad=getelementptr inbounds i8,i8*%ac,i64 -4
%ae=bitcast i8*%ad to i32*
store i32 1342177296,i32*%ae,align 4
store i8*%ac,i8**%j,align 8
%af=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%ag=bitcast i8*%ac to i8**
store i8*%af,i8**%ag,align 8
%ah=load i8*,i8**%i,align 8
%ai=getelementptr inbounds i8,i8*%ac,i64 8
%aj=bitcast i8*%ai to i8**
store i8*%ah,i8**%aj,align 8
%ak=getelementptr inbounds i8,i8*%ac,i64 16
%al=bitcast i8*%ak to i32*
store i32 3,i32*%al,align 4
%am=call i8*@sml_alloc(i32 inreg 28)#0
%an=getelementptr inbounds i8,i8*%am,i64 -4
%ao=bitcast i8*%an to i32*
store i32 1342177304,i32*%ao,align 4
%ap=load i8*,i8**%j,align 8
store i8*null,i8**%j,align 8
%aq=bitcast i8*%am to i8**
store i8*%ap,i8**%aq,align 8
%ar=getelementptr inbounds i8,i8*%am,i64 8
%as=bitcast i8*%ar to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN7EvalIty12evalFreeTvarE_164 to void(...)*),void(...)**%as,align 8
%at=getelementptr inbounds i8,i8*%am,i64 16
%au=bitcast i8*%at to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN7EvalIty12evalFreeTvarE_164 to void(...)*),void(...)**%au,align 8
%av=getelementptr inbounds i8,i8*%am,i64 24
%aw=bitcast i8*%av to i32*
store i32 -2147483647,i32*%aw,align 4
%ax=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%ay=call fastcc i8*%Z(i8*inreg%ax,i8*inreg%am)
%az=getelementptr inbounds i8,i8*%ay,i64 16
%aA=bitcast i8*%az to i8*(i8*,i8*)**
%aB=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aA,align 8
%aC=bitcast i8*%ay to i8**
%aD=load i8*,i8**%aC,align 8
%aE=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%aF=getelementptr inbounds i8,i8*%aE,i64 8
%aG=bitcast i8*%aF to i8**
%aH=load i8*,i8**%aG,align 8
%aI=call fastcc i8*%aB(i8*inreg%aD,i8*inreg%aH)
store i8*%aI,i8**%d,align 8
%aJ=call i8*@sml_alloc(i32 inreg 20)#0
%aK=getelementptr inbounds i8,i8*%aJ,i64 -4
%aL=bitcast i8*%aK to i32*
store i32 1342177296,i32*%aL,align 4
store i8*%aJ,i8**%e,align 8
%aM=getelementptr inbounds i8,i8*%aJ,i64 4
%aN=bitcast i8*%aM to i32*
store i32 0,i32*%aN,align 1
%aO=bitcast i8*%aJ to i32*
store i32 2,i32*%aO,align 4
%aP=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aQ=getelementptr inbounds i8,i8*%aJ,i64 8
%aR=bitcast i8*%aQ to i8**
store i8*%aP,i8**%aR,align 8
%aS=getelementptr inbounds i8,i8*%aJ,i64 16
%aT=bitcast i8*%aS to i32*
store i32 2,i32*%aT,align 4
%aU=call i8*@sml_alloc(i32 inreg 20)#0
%aV=getelementptr inbounds i8,i8*%aU,i64 -4
%aW=bitcast i8*%aV to i32*
store i32 1342177296,i32*%aW,align 4
%aX=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%aY=bitcast i8*%aU to i8**
store i8*%aX,i8**%aY,align 8
%aZ=load i8*,i8**%e,align 8
br label%a9
a0:
%a1=getelementptr inbounds i8,i8*%v,i64 8
%a2=bitcast i8*%a1 to i8**
%a3=load i8*,i8**%a2,align 8
store i8*%a3,i8**%d,align 8
%a4=call i8*@sml_alloc(i32 inreg 20)#0
%a5=getelementptr inbounds i8,i8*%a4,i64 -4
%a6=bitcast i8*%a5 to i32*
store i32 1342177296,i32*%a6,align 4
%a7=load i8*,i8**%d,align 8
%a8=bitcast i8*%a4 to i8**
store i8*%a7,i8**%a8,align 8
br label%a9
a9:
%ba=phi i8*[%a4,%a0],[%aU,%Q]
%bb=phi i8*[null,%a0],[%aZ,%Q]
%bc=phi i8*[%a7,%a0],[%aX,%Q]
%bd=getelementptr inbounds i8,i8*%ba,i64 8
%be=bitcast i8*%bd to i8**
store i8*%bb,i8**%be,align 8
%bf=getelementptr inbounds i8,i8*%ba,i64 16
%bg=bitcast i8*%bf to i32*
store i32 3,i32*%bg,align 4
store i8*%ba,i8**%e,align 8
store i8*%bb,i8**%d,align 8
%bh=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%bi=getelementptr inbounds i8,i8*%bh,i64 4
%bj=bitcast i8*%bi to i32*
%bk=load i32,i32*%bj,align 4
%bl=icmp eq i32%bk,0
br i1%bl,label%bx,label%bm
bm:
%bn=call fastcc i8*@_SMLFN5Types13addPropertiesE(i32 inreg 1)
%bo=getelementptr inbounds i8,i8*%bn,i64 16
%bp=bitcast i8*%bo to i8*(i8*,i8*)**
%bq=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bp,align 8
%br=bitcast i8*%bn to i8**
%bs=load i8*,i8**%br,align 8
%bt=bitcast i8**%e to i8***
%bu=load i8**,i8***%bt,align 8
store i8*null,i8**%e,align 8
%bv=load i8*,i8**%bu,align 8
%bw=call fastcc i8*%bq(i8*inreg%bs,i8*inreg%bv)
br label%by
bx:
store i8*null,i8**%e,align 8
br label%by
by:
%bz=phi i8*[%bc,%bx],[%bw,%bm]
store i8*%bz,i8**%e,align 8
%bA=call i8*@sml_alloc(i32 inreg 28)#0
%bB=getelementptr inbounds i8,i8*%bA,i64 -4
%bC=bitcast i8*%bB to i32*
store i32 1342177304,i32*%bC,align 4
store i8*%bA,i8**%f,align 8
%bD=bitcast i8*%bA to i8**
store i8*null,i8**%bD,align 8
%bE=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%bF=getelementptr inbounds i8,i8*%bA,i64 8
%bG=bitcast i8*%bF to i8**
store i8*%bE,i8**%bG,align 8
%bH=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%bI=getelementptr inbounds i8,i8*%bA,i64 16
%bJ=bitcast i8*%bI to i8**
store i8*%bH,i8**%bJ,align 8
%bK=getelementptr inbounds i8,i8*%bA,i64 24
%bL=bitcast i8*%bK to i32*
store i32 7,i32*%bL,align 4
%bM=call i8*@sml_alloc(i32 inreg 20)#0
%bN=getelementptr inbounds i8,i8*%bM,i64 -4
%bO=bitcast i8*%bN to i32*
store i32 1342177296,i32*%bO,align 4
%bP=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%bQ=bitcast i8*%bM to i8**
store i8*%bP,i8**%bQ,align 8
%bR=getelementptr inbounds i8,i8*%bM,i64 8
%bS=bitcast i8*%bR to i8**
store i8*null,i8**%bS,align 8
%bT=getelementptr inbounds i8,i8*%bM,i64 16
%bU=bitcast i8*%bT to i32*
store i32 3,i32*%bU,align 4
%bV=call fastcc i8*@_SMLFN5Types5newtyE(i8*inreg%bM)
store i8*%bV,i8**%d,align 8
%bW=bitcast i8**%i to i8***
%bX=load i8**,i8***%bW,align 8
store i8*null,i8**%i,align 8
%bY=load i8*,i8**%bX,align 8
store i8*%bY,i8**%e,align 8
%bZ=call i8*@sml_alloc(i32 inreg 20)#0
%b0=bitcast i8*%bZ to i32*
%b1=getelementptr inbounds i8,i8*%bZ,i64 -4
%b2=bitcast i8*%b1 to i32*
store i32 1342177296,i32*%b2,align 4
%b3=getelementptr inbounds i8,i8*%bZ,i64 4
%b4=bitcast i8*%b3 to i32*
store i32 0,i32*%b4,align 1
store i32%s,i32*%b0,align 4
%b5=load i8*,i8**%d,align 8
%b6=getelementptr inbounds i8,i8*%bZ,i64 8
%b7=bitcast i8*%b6 to i8**
store i8*%b5,i8**%b7,align 8
%b8=getelementptr inbounds i8,i8*%bZ,i64 16
%b9=bitcast i8*%b8 to i32*
store i32 2,i32*%b9,align 4
%ca=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
call fastcc void@_SMLLN7EvalIty14setFreeTvarEnvE_99(i8*inreg%ca,i8*inreg%bZ)
%cb=load i8*,i8**%d,align 8
ret i8*%cb
}
define internal fastcc i8*@_SMLLN7EvalIty18evalKindedTvarListE_107(i8*inreg%a,i8*inreg%b,i8*inreg%c)#2 gc"smlsharp"{
p:
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
%h=alloca i8*,align 8
%i=alloca i8*,align 8
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
call void@llvm.gcroot(i8**%h,i8*null)#0
call void@llvm.gcroot(i8**%i,i8*null)#0
store i8*%b,i8**%e,align 8
store i8*%c,i8**%d,align 8
store i8*%a,i8**%i,align 8
%j=load atomic i32,i32*@sml_check_flag unordered,align 4
%k=icmp eq i32%j,0
br i1%k,label%n,label%l
l:
call void@sml_check(i32 inreg%j)
%m=load i8*,i8**%i,align 8
br label%n
n:
%o=phi i8*[%m,%l],[%a,%p]
%q=getelementptr inbounds i8,i8*%o,i64 12
%r=bitcast i8*%q to i32*
%s=load i32,i32*%r,align 4
%t=add i32%s,-1
%u=sub i32 0,%s
%v=and i32%t,%u
%w=add i32%s,7
%x=add i32%w,%v
%y=and i32%x,-8
%z=getelementptr inbounds i8,i8*%o,i64 20
%A=bitcast i8*%z to i32*
%B=load i32,i32*%A,align 4
%C=add i32%B,7
%D=add i32%C,%y
%E=sub i32 0,%B
%F=and i32%D,%E
%G=add i32%C,%F
%H=and i32%G,-8
%I=lshr i32%F,3
%J=lshr i32%x,3
%K=sub nsw i32%I,%J
%L=lshr i32%v,3
%M=sub nsw i32%J,%L
%N=getelementptr inbounds i8,i8*%o,i64 16
%O=bitcast i8*%N to i32*
%P=load i32,i32*%O,align 4
%Q=shl i32%P,%K
%R=or i32%Q,1
%S=shl i32%R,%M
%T=getelementptr inbounds i8,i8*%o,i64 8
%U=bitcast i8*%T to i32*
%V=load i32,i32*%U,align 4
%W=or i32%S,%V
%X=or i32%H,4
%Y=icmp eq i32%V,0
br i1%Y,label%af,label%Z
Z:
%aa=load i8*,i8**%e,align 8
%ab=sext i32%v to i64
%ac=getelementptr inbounds i8,i8*%aa,i64%ab
%ad=bitcast i8*%ac to i8**
%ae=load i8*,i8**%ad,align 8
br label%aq
af:
%ag=call i8*@sml_alloc(i32 inreg%s)#0
%ah=getelementptr inbounds i8,i8*%ag,i64 -4
%ai=bitcast i8*%ah to i32*
store i32%s,i32*%ai,align 4
%aj=load i8*,i8**%e,align 8
%ak=sext i32%v to i64
%al=getelementptr inbounds i8,i8*%aj,i64%ak
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%ag,i8*%al,i32%s,i1 false)
%am=load i8*,i8**%i,align 8
%an=getelementptr inbounds i8,i8*%am,i64 16
%ao=bitcast i8*%an to i32*
%ap=load i32,i32*%ao,align 4
br label%aq
aq:
%ar=phi i32[%ap,%af],[%P,%Z]
%as=phi i8*[%am,%af],[%o,%Z]
%at=phi i8*[%aj,%af],[%aa,%Z]
%au=phi i8*[%ag,%af],[%ae,%Z]
store i8*%au,i8**%g,align 8
%av=sext i32%y to i64
%aw=getelementptr inbounds i8,i8*%at,i64%av
%ax=bitcast i8*%aw to i8**
%ay=load i8*,i8**%ax,align 8
store i8*%ay,i8**%f,align 8
%az=icmp eq i32%ar,0
br i1%az,label%aF,label%aA
aA:
store i8*null,i8**%e,align 8
%aB=sext i32%F to i64
%aC=getelementptr inbounds i8,i8*%at,i64%aB
%aD=bitcast i8*%aC to i8**
%aE=load i8*,i8**%aD,align 8
br label%aP
aF:
%aG=getelementptr inbounds i8,i8*%as,i64 20
%aH=bitcast i8*%aG to i32*
%aI=load i32,i32*%aH,align 4
%aJ=call i8*@sml_alloc(i32 inreg%aI)#0
%aK=getelementptr inbounds i8,i8*%aJ,i64 -4
%aL=bitcast i8*%aK to i32*
store i32%aI,i32*%aL,align 4
%aM=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%aN=sext i32%F to i64
%aO=getelementptr inbounds i8,i8*%aM,i64%aN
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%aJ,i8*%aO,i32%aI,i1 false)
br label%aP
aP:
%aQ=phi i8*[%aJ,%aF],[%aE,%aA]
store i8*%aQ,i8**%h,align 8
%aR=call fastcc i8*@_SMLFN4List5foldlE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%aS=getelementptr inbounds i8,i8*%aR,i64 16
%aT=bitcast i8*%aS to i8*(i8*,i8*)**
%aU=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aT,align 8
%aV=bitcast i8*%aR to i8**
%aW=load i8*,i8**%aV,align 8
%aX=call fastcc i8*%aU(i8*inreg%aW,i8*inreg 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*))
%aY=getelementptr inbounds i8,i8*%aX,i64 16
%aZ=bitcast i8*%aY to i8*(i8*,i8*)**
%a0=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aZ,align 8
%a1=bitcast i8*%aX to i8**
%a2=load i8*,i8**%a1,align 8
store i8*%a2,i8**%e,align 8
%a3=call i8*@sml_alloc(i32 inreg 20)#0
%a4=getelementptr inbounds i8,i8*%a3,i64 -4
%a5=bitcast i8*%a4 to i32*
store i32 1342177296,i32*%a5,align 4
%a6=bitcast i8*%a3 to i8**
store i8*null,i8**%a6,align 8
%a7=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%a8=getelementptr inbounds i8,i8*%a3,i64 8
%a9=bitcast i8*%a8 to i8**
store i8*%a7,i8**%a9,align 8
%ba=getelementptr inbounds i8,i8*%a3,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*%a0(i8*inreg%bc,i8*inreg%a3)
%be=getelementptr inbounds i8,i8*%bd,i64 16
%bf=bitcast i8*%be to i8*(i8*,i8*)**
%bg=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bf,align 8
%bh=bitcast i8*%bd to i8**
%bi=load i8*,i8**%bh,align 8
%bj=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%bk=call fastcc i8*%bg(i8*inreg%bi,i8*inreg%bj)
store i8*%bk,i8**%f,align 8
%bl=getelementptr inbounds i8,i8*%bk,i64 8
%bm=bitcast i8*%bl to i8**
%bn=load i8*,i8**%bm,align 8
store i8*%bn,i8**%d,align 8
%bo=load i8*,i8**%i,align 8
%bp=getelementptr inbounds i8,i8*%bo,i64 12
%bq=bitcast i8*%bp to i32*
%br=load i32,i32*%bq,align 4
%bs=getelementptr inbounds i8,i8*%bo,i64 8
%bt=bitcast i8*%bs to i32*
%bu=load i32,i32*%bt,align 4
%bv=getelementptr inbounds i8,i8*%bo,i64 20
%bw=bitcast i8*%bv to i32*
%bx=load i32,i32*%bw,align 4
%by=getelementptr inbounds i8,i8*%bo,i64 16
%bz=bitcast i8*%by to i32*
%bA=load i32,i32*%bz,align 4
%bB=call i8*@sml_alloc(i32 inreg%X)#0
%bC=or i32%H,1342177280
%bD=getelementptr inbounds i8,i8*%bB,i64 -4
%bE=bitcast i8*%bD to i32*
store i32%bC,i32*%bE,align 4
store i8*%bB,i8**%e,align 8
call void@llvm.memset.p0i8.i32(i8*%bB,i8 0,i32%X,i1 false)
%bF=icmp eq i32%bu,0
%bG=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%bH=sext i32%v to i64
%bI=getelementptr inbounds i8,i8*%bB,i64%bH
br i1%bF,label%bL,label%bJ
bJ:
%bK=bitcast i8*%bI to i8**
store i8*%bG,i8**%bK,align 8
br label%bM
bL:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%bI,i8*%bG,i32%br,i1 false)
br label%bM
bM:
%bN=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%bO=getelementptr inbounds i8,i8*%bB,i64%av
%bP=bitcast i8*%bO to i8**
store i8*%bN,i8**%bP,align 8
%bQ=icmp eq i32%bA,0
%bR=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%bS=sext i32%F to i64
%bT=getelementptr inbounds i8,i8*%bB,i64%bS
br i1%bQ,label%bW,label%bU
bU:
%bV=bitcast i8*%bT to i8**
store i8*%bR,i8**%bV,align 8
br label%bX
bW:
call void@llvm.memcpy.p0i8.p0i8.i32(i8*%bT,i8*%bR,i32%bx,i1 false)
br label%bX
bX:
%bY=sext i32%H to i64
%bZ=getelementptr inbounds i8,i8*%bB,i64%bY
%b0=bitcast i8*%bZ to i32*
store i32%W,i32*%b0,align 4
%b1=call i8*@sml_alloc(i32 inreg 20)#0
%b2=getelementptr inbounds i8,i8*%b1,i64 -4
%b3=bitcast i8*%b2 to i32*
store i32 1342177296,i32*%b3,align 4
store i8*%b1,i8**%g,align 8
%b4=load i8*,i8**%e,align 8
%b5=bitcast i8*%b1 to i8**
store i8*%b4,i8**%b5,align 8
%b6=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%b7=getelementptr inbounds i8,i8*%b1,i64 8
%b8=bitcast i8*%b7 to i8**
store i8*%b6,i8**%b8,align 8
%b9=getelementptr inbounds i8,i8*%b1,i64 16
%ca=bitcast i8*%b9 to i32*
store i32 3,i32*%ca,align 4
%cb=call i8*@sml_alloc(i32 inreg 28)#0
%cc=getelementptr inbounds i8,i8*%cb,i64 -4
%cd=bitcast i8*%cc to i32*
store i32 1342177304,i32*%cd,align 4
%ce=load i8*,i8**%g,align 8
%cf=bitcast i8*%cb to i8**
store i8*%ce,i8**%cf,align 8
%cg=getelementptr inbounds i8,i8*%cb,i64 8
%ch=bitcast i8*%cg to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL8evalKind_171 to void(...)*),void(...)**%ch,align 8
%ci=getelementptr inbounds i8,i8*%cb,i64 16
%cj=bitcast i8*%ci to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL8evalKind_171 to void(...)*),void(...)**%cj,align 8
%ck=getelementptr inbounds i8,i8*%cb,i64 24
%cl=bitcast i8*%ck to i32*
store i32 -2147483647,i32*%cl,align 4
%cm=call fastcc i8*@_SMLFN4List5foldlE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%cn=getelementptr inbounds i8,i8*%cm,i64 16
%co=bitcast i8*%cn to i8*(i8*,i8*)**
%cp=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%co,align 8
%cq=bitcast i8*%cm to i8**
%cr=load i8*,i8**%cq,align 8
store i8*%cr,i8**%d,align 8
%cs=call i8*@sml_alloc(i32 inreg 20)#0
%ct=getelementptr inbounds i8,i8*%cs,i64 -4
%cu=bitcast i8*%ct to i32*
store i32 1342177296,i32*%cu,align 4
store i8*%cs,i8**%h,align 8
%cv=load i8*,i8**%e,align 8
%cw=bitcast i8*%cs to i8**
store i8*%cv,i8**%cw,align 8
%cx=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%cy=getelementptr inbounds i8,i8*%cs,i64 8
%cz=bitcast i8*%cy to i8**
store i8*%cx,i8**%cz,align 8
%cA=getelementptr inbounds i8,i8*%cs,i64 16
%cB=bitcast i8*%cA to i32*
store i32 3,i32*%cB,align 4
%cC=call i8*@sml_alloc(i32 inreg 28)#0
%cD=getelementptr inbounds i8,i8*%cC,i64 -4
%cE=bitcast i8*%cD to i32*
store i32 1342177304,i32*%cE,align 4
%cF=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%cG=bitcast i8*%cC to i8**
store i8*%cF,i8**%cG,align 8
%cH=getelementptr inbounds i8,i8*%cC,i64 8
%cI=bitcast i8*%cH to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL6btvEnv_172 to void(...)*),void(...)**%cI,align 8
%cJ=getelementptr inbounds i8,i8*%cC,i64 16
%cK=bitcast i8*%cJ to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL6btvEnv_172 to void(...)*),void(...)**%cK,align 8
%cL=getelementptr inbounds i8,i8*%cC,i64 24
%cM=bitcast i8*%cL to i32*
store i32 -2147483647,i32*%cM,align 4
%cN=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%cO=call fastcc i8*%cp(i8*inreg%cN,i8*inreg%cC)
%cP=getelementptr inbounds i8,i8*%cO,i64 16
%cQ=bitcast i8*%cP to i8*(i8*,i8*)**
%cR=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%cQ,align 8
%cS=bitcast i8*%cO to i8**
%cT=load i8*,i8**%cS,align 8
store i8*%cT,i8**%d,align 8
%cU=call fastcc i8*@_SMLFN14BoundTypeVarID3Map5emptyE(i32 inreg 1,i32 inreg 8)
%cV=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%cW=call fastcc i8*%cR(i8*inreg%cV,i8*inreg%cU)
%cX=getelementptr inbounds i8,i8*%cW,i64 16
%cY=bitcast i8*%cX to i8*(i8*,i8*)**
%cZ=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%cY,align 8
%c0=bitcast i8*%cW to i8**
%c1=load i8*,i8**%c0,align 8
%c2=bitcast i8**%f to i8***
%c3=load i8**,i8***%c2,align 8
store i8*null,i8**%f,align 8
%c4=load i8*,i8**%c3,align 8
%c5=call fastcc i8*%cZ(i8*inreg%c1,i8*inreg%c4)
store i8*%c5,i8**%d,align 8
%c6=call i8*@sml_alloc(i32 inreg 20)#0
%c7=getelementptr inbounds i8,i8*%c6,i64 -4
%c8=bitcast i8*%c7 to i32*
store i32 1342177296,i32*%c8,align 4
%c9=load i8*,i8**%e,align 8
%da=bitcast i8*%c6 to i8**
store i8*%c9,i8**%da,align 8
%db=load i8*,i8**%d,align 8
%dc=getelementptr inbounds i8,i8*%c6,i64 8
%dd=bitcast i8*%dc to i8**
store i8*%db,i8**%dd,align 8
%de=getelementptr inbounds i8,i8*%c6,i64 16
%df=bitcast i8*%de to i32*
store i32 3,i32*%df,align 4
ret i8*%c6
}
define internal fastcc i8*@_SMLLL173(i8*inreg%a,i32 inreg%b,i32 inreg%c,i32 inreg%d,i32 inreg%e)#4 gc"smlsharp"{
%f=alloca i8*,align 8
%g=alloca i8*,align 8
%h=alloca i8*,align 8
%i=alloca i8*,align 8
%j=alloca i8*,align 8
%k=alloca i8*,align 8
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
call void@llvm.gcroot(i8**%h,i8*null)#0
call void@llvm.gcroot(i8**%i,i8*null)#0
call void@llvm.gcroot(i8**%j,i8*null)#0
call void@llvm.gcroot(i8**%k,i8*null)#0
%l=bitcast i8*%a to i8**
%m=load i8*,i8**%l,align 8
store i8*%m,i8**%f,align 8
%n=call i8*@sml_alloc(i32 inreg 28)#0
%o=getelementptr inbounds i8,i8*%n,i64 -4
%p=bitcast i8*%o to i32*
store i32 1342177304,i32*%p,align 4
store i8*%n,i8**%g,align 8
%q=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%r=bitcast i8*%n to i8**
store i8*%q,i8**%r,align 8
%s=getelementptr inbounds i8,i8*%n,i64 8
%t=bitcast i8*%s to i32*
store i32%b,i32*%t,align 4
%u=getelementptr inbounds i8,i8*%n,i64 12
%v=bitcast i8*%u to i32*
store i32%c,i32*%v,align 4
%w=getelementptr inbounds i8,i8*%n,i64 16
%x=bitcast i8*%w to i32*
store i32%d,i32*%x,align 4
%y=getelementptr inbounds i8,i8*%n,i64 20
%z=bitcast i8*%y to i32*
store i32%e,i32*%z,align 4
%A=getelementptr inbounds i8,i8*%n,i64 24
%B=bitcast i8*%A to i32*
store i32 1,i32*%B,align 4
%C=call i8*@sml_alloc(i32 inreg 28)#0
%D=getelementptr inbounds i8,i8*%C,i64 -4
%E=bitcast i8*%D to i32*
store i32 1342177304,i32*%E,align 4
store i8*%C,i8**%f,align 8
%F=load i8*,i8**%g,align 8
%G=bitcast i8*%C to i8**
store i8*%F,i8**%G,align 8
%H=getelementptr inbounds i8,i8*%C,i64 8
%I=bitcast i8*%H to void(...)**
store void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLN7EvalIty11evalDtyKindE_103 to void(...)*),void(...)**%I,align 8
%J=getelementptr inbounds i8,i8*%C,i64 16
%K=bitcast i8*%J to void(...)**
store void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLN7EvalIty11evalDtyKindE_103 to void(...)*),void(...)**%K,align 8
%L=getelementptr inbounds i8,i8*%C,i64 24
%M=bitcast i8*%L to i32*
store i32 -2147483647,i32*%M,align 4
%N=call i8*@sml_alloc(i32 inreg 28)#0
%O=getelementptr inbounds i8,i8*%N,i64 -4
%P=bitcast i8*%O to i32*
store i32 1342177304,i32*%P,align 4
store i8*%N,i8**%h,align 8
%Q=load i8*,i8**%g,align 8
%R=bitcast i8*%N to i8**
store i8*%Q,i8**%R,align 8
%S=getelementptr inbounds i8,i8*%N,i64 8
%T=bitcast i8*%S to void(...)**
store void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLN7EvalIty8evalTfunE_104 to void(...)*),void(...)**%T,align 8
%U=getelementptr inbounds i8,i8*%N,i64 16
%V=bitcast i8*%U to void(...)**
store void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLN7EvalIty8evalTfunE_104 to void(...)*),void(...)**%V,align 8
%W=getelementptr inbounds i8,i8*%N,i64 24
%X=bitcast i8*%W to i32*
store i32 -2147483647,i32*%X,align 4
%Y=call i8*@sml_alloc(i32 inreg 28)#0
%Z=getelementptr inbounds i8,i8*%Y,i64 -4
%aa=bitcast i8*%Z to i32*
store i32 1342177304,i32*%aa,align 4
store i8*%Y,i8**%i,align 8
%ab=load i8*,i8**%g,align 8
%ac=bitcast i8*%Y to i8**
store i8*%ab,i8**%ac,align 8
%ad=getelementptr inbounds i8,i8*%Y,i64 8
%ae=bitcast i8*%ad to void(...)**
store void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLN7EvalIty7evalItyE_105 to void(...)*),void(...)**%ae,align 8
%af=getelementptr inbounds i8,i8*%Y,i64 16
%ag=bitcast i8*%af to void(...)**
store void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLN7EvalIty7evalItyE_105 to void(...)*),void(...)**%ag,align 8
%ah=getelementptr inbounds i8,i8*%Y,i64 24
%ai=bitcast i8*%ah to i32*
store i32 -2147483647,i32*%ai,align 4
%aj=call i8*@sml_alloc(i32 inreg 28)#0
%ak=getelementptr inbounds i8,i8*%aj,i64 -4
%al=bitcast i8*%ak to i32*
store i32 1342177304,i32*%al,align 4
store i8*%aj,i8**%j,align 8
%am=load i8*,i8**%g,align 8
%an=bitcast i8*%aj to i8**
store i8*%am,i8**%an,align 8
%ao=getelementptr inbounds i8,i8*%aj,i64 8
%ap=bitcast i8*%ao to void(...)**
store void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLN7EvalIty12evalFreeTvarE_106 to void(...)*),void(...)**%ap,align 8
%aq=getelementptr inbounds i8,i8*%aj,i64 16
%ar=bitcast i8*%aq to void(...)**
store void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLN7EvalIty12evalFreeTvarE_106 to void(...)*),void(...)**%ar,align 8
%as=getelementptr inbounds i8,i8*%aj,i64 24
%at=bitcast i8*%as to i32*
store i32 -2147483647,i32*%at,align 4
%au=call i8*@sml_alloc(i32 inreg 28)#0
%av=getelementptr inbounds i8,i8*%au,i64 -4
%aw=bitcast i8*%av to i32*
store i32 1342177304,i32*%aw,align 4
store i8*%au,i8**%k,align 8
%ax=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%ay=bitcast i8*%au to i8**
store i8*%ax,i8**%ay,align 8
%az=getelementptr inbounds i8,i8*%au,i64 8
%aA=bitcast i8*%az to void(...)**
store void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLN7EvalIty18evalKindedTvarListE_107 to void(...)*),void(...)**%aA,align 8
%aB=getelementptr inbounds i8,i8*%au,i64 16
%aC=bitcast i8*%aB to void(...)**
store void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLLN7EvalIty18evalKindedTvarListE_107 to void(...)*),void(...)**%aC,align 8
%aD=getelementptr inbounds i8,i8*%au,i64 24
%aE=bitcast i8*%aD to i32*
store i32 -2147483647,i32*%aE,align 4
%aF=call i8*@sml_alloc(i32 inreg 44)#0
%aG=getelementptr inbounds i8,i8*%aF,i64 -4
%aH=bitcast i8*%aG to i32*
store i32 1342177320,i32*%aH,align 4
%aI=load i8*,i8**%f,align 8
%aJ=bitcast i8*%aF to i8**
store i8*%aI,i8**%aJ,align 8
%aK=load i8*,i8**%h,align 8
%aL=getelementptr inbounds i8,i8*%aF,i64 8
%aM=bitcast i8*%aL to i8**
store i8*%aK,i8**%aM,align 8
%aN=load i8*,i8**%i,align 8
%aO=getelementptr inbounds i8,i8*%aF,i64 16
%aP=bitcast i8*%aO to i8**
store i8*%aN,i8**%aP,align 8
%aQ=load i8*,i8**%j,align 8
%aR=getelementptr inbounds i8,i8*%aF,i64 24
%aS=bitcast i8*%aR to i8**
store i8*%aQ,i8**%aS,align 8
%aT=load i8*,i8**%k,align 8
%aU=getelementptr inbounds i8,i8*%aF,i64 32
%aV=bitcast i8*%aU to i8**
store i8*%aT,i8**%aV,align 8
%aW=getelementptr inbounds i8,i8*%aF,i64 40
%aX=bitcast i8*%aW to i32*
store i32 31,i32*%aX,align 4
ret i8*%aF
}
define internal fastcc i8*@_SMLLN7EvalIty11evalDtyKindE_174(i8*inreg%a,i32 inreg%b,i32 inreg%c,i32 inreg%d,i32 inreg%e)#2 gc"smlsharp"{
%f=alloca i8*,align 8
call void@llvm.gcroot(i8**%f,i8*null)#0
store i8*%a,i8**%f,align 8
%g=load atomic i32,i32*@sml_check_flag unordered,align 4
%h=icmp eq i32%g,0
br i1%h,label%i,label%k
i:
%j=bitcast i8*%a to i8**
br label%n
k:
call void@sml_check(i32 inreg%g)
%l=bitcast i8**%f to i8***
%m=load i8**,i8***%l,align 8
br label%n
n:
%o=phi i8**[%m,%k],[%j,%i]
store i8*null,i8**%f,align 8
%p=load i8*,i8**%o,align 8
%q=call fastcc i8*@_SMLLL173(i8*inreg%p,i32 inreg%b,i32 inreg%c,i32 inreg%d,i32 inreg%e)
%r=bitcast i8*%q to i8**
%s=load i8*,i8**%r,align 8
ret i8*%s
}
define internal fastcc i8*@_SMLLN7EvalIty8evalTfunE_175(i8*inreg%a,i32 inreg%b,i32 inreg%c,i32 inreg%d,i32 inreg%e)#2 gc"smlsharp"{
%f=alloca i8*,align 8
call void@llvm.gcroot(i8**%f,i8*null)#0
store i8*%a,i8**%f,align 8
%g=load atomic i32,i32*@sml_check_flag unordered,align 4
%h=icmp eq i32%g,0
br i1%h,label%i,label%k
i:
%j=bitcast i8*%a to i8**
br label%n
k:
call void@sml_check(i32 inreg%g)
%l=bitcast i8**%f to i8***
%m=load i8**,i8***%l,align 8
br label%n
n:
%o=phi i8**[%m,%k],[%j,%i]
store i8*null,i8**%f,align 8
%p=load i8*,i8**%o,align 8
%q=call fastcc i8*@_SMLLL173(i8*inreg%p,i32 inreg%b,i32 inreg%c,i32 inreg%d,i32 inreg%e)
%r=getelementptr inbounds i8,i8*%q,i64 8
%s=bitcast i8*%r to i8**
%t=load i8*,i8**%s,align 8
ret i8*%t
}
define internal fastcc i8*@_SMLLN7EvalIty7evalItyE_176(i8*inreg%a,i32 inreg%b,i32 inreg%c,i32 inreg%d,i32 inreg%e)#2 gc"smlsharp"{
%f=alloca i8*,align 8
call void@llvm.gcroot(i8**%f,i8*null)#0
store i8*%a,i8**%f,align 8
%g=load atomic i32,i32*@sml_check_flag unordered,align 4
%h=icmp eq i32%g,0
br i1%h,label%i,label%k
i:
%j=bitcast i8*%a to i8**
br label%n
k:
call void@sml_check(i32 inreg%g)
%l=bitcast i8**%f to i8***
%m=load i8**,i8***%l,align 8
br label%n
n:
%o=phi i8**[%m,%k],[%j,%i]
store i8*null,i8**%f,align 8
%p=load i8*,i8**%o,align 8
%q=call fastcc i8*@_SMLLL173(i8*inreg%p,i32 inreg%b,i32 inreg%c,i32 inreg%d,i32 inreg%e)
%r=getelementptr inbounds i8,i8*%q,i64 16
%s=bitcast i8*%r to i8**
%t=load i8*,i8**%s,align 8
ret i8*%t
}
define internal fastcc i8*@_SMLLN7EvalIty12evalFreeTvarE_177(i8*inreg%a,i32 inreg%b,i32 inreg%c,i32 inreg%d,i32 inreg%e)#2 gc"smlsharp"{
%f=alloca i8*,align 8
call void@llvm.gcroot(i8**%f,i8*null)#0
store i8*%a,i8**%f,align 8
%g=load atomic i32,i32*@sml_check_flag unordered,align 4
%h=icmp eq i32%g,0
br i1%h,label%i,label%k
i:
%j=bitcast i8*%a to i8**
br label%n
k:
call void@sml_check(i32 inreg%g)
%l=bitcast i8**%f to i8***
%m=load i8**,i8***%l,align 8
br label%n
n:
%o=phi i8**[%m,%k],[%j,%i]
store i8*null,i8**%f,align 8
%p=load i8*,i8**%o,align 8
%q=call fastcc i8*@_SMLLL173(i8*inreg%p,i32 inreg%b,i32 inreg%c,i32 inreg%d,i32 inreg%e)
%r=getelementptr inbounds i8,i8*%q,i64 24
%s=bitcast i8*%r to i8**
%t=load i8*,i8**%s,align 8
ret i8*%t
}
define internal fastcc i8*@_SMLLN7EvalIty18evalKindedTvarListE_178(i8*inreg%a,i32 inreg%b,i32 inreg%c,i32 inreg%d,i32 inreg%e)#2 gc"smlsharp"{
%f=alloca i8*,align 8
call void@llvm.gcroot(i8**%f,i8*null)#0
store i8*%a,i8**%f,align 8
%g=load atomic i32,i32*@sml_check_flag unordered,align 4
%h=icmp eq i32%g,0
br i1%h,label%i,label%k
i:
%j=bitcast i8*%a to i8**
br label%n
k:
call void@sml_check(i32 inreg%g)
%l=bitcast i8**%f to i8***
%m=load i8**,i8***%l,align 8
br label%n
n:
%o=phi i8**[%m,%k],[%j,%i]
store i8*null,i8**%f,align 8
%p=load i8*,i8**%o,align 8
%q=call fastcc i8*@_SMLLL173(i8*inreg%p,i32 inreg%b,i32 inreg%c,i32 inreg%d,i32 inreg%e)
%r=getelementptr inbounds i8,i8*%q,i64 32
%s=bitcast i8*%r to i8**
%t=load i8*,i8**%s,align 8
ret i8*%t
}
define internal fastcc i8*@_SMLLN7EvalIty18evalKindedTvarListE_179(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
k:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%d,align 8
store i8*%b,i8**%c,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%i,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%d,align 8
br label%i
i:
%j=phi i8*[%h,%g],[%a,%k]
%l=getelementptr inbounds i8,i8*%j,i64 8
%m=bitcast i8*%l to i8**
%n=load i8*,i8**%m,align 8
%o=getelementptr inbounds i8,i8*%j,i64 16
%p=bitcast i8*%o to i32*
%q=load i32,i32*%p,align 4
%r=getelementptr inbounds i8,i8*%j,i64 20
%s=bitcast i8*%r to i32*
%t=load i32,i32*%s,align 4
%u=getelementptr inbounds i8,i8*%j,i64 24
%v=bitcast i8*%u to i32*
%w=load i32,i32*%v,align 4
%x=getelementptr inbounds i8,i8*%j,i64 28
%y=bitcast i8*%x to i32*
%z=load i32,i32*%y,align 4
%A=call fastcc i8*@_SMLLN7EvalIty18evalKindedTvarListE_178(i8*inreg%n,i32 inreg%q,i32 inreg%t,i32 inreg%w,i32 inreg%z)
%B=getelementptr inbounds i8,i8*%A,i64 16
%C=bitcast i8*%B to i8*(i8*,i8*,i8*)**
%D=load i8*(i8*,i8*,i8*)*,i8*(i8*,i8*,i8*)**%C,align 8
%E=bitcast i8*%A to i8**
%F=load i8*,i8**%E,align 8
%G=bitcast i8**%d to i8***
%H=load i8**,i8***%G,align 8
%I=load i8*,i8**%H,align 8
%J=load i8*,i8**%c,align 8
%K=tail call fastcc i8*%D(i8*inreg%F,i8*inreg%I,i8*inreg%J)
ret i8*%K
}
define internal fastcc i8*@_SMLLN7EvalIty18evalKindedTvarListE_180(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%b,i8**%c,align 8
%f=bitcast i8*%a to i8**
%g=load i8*,i8**%f,align 8
store i8*%g,i8**%d,align 8
%h=getelementptr inbounds i8,i8*%a,i64 8
%i=bitcast i8*%h to i32*
%j=load i32,i32*%i,align 4
%k=getelementptr inbounds i8,i8*%a,i64 12
%l=bitcast i8*%k to i32*
%m=load i32,i32*%l,align 4
%n=getelementptr inbounds i8,i8*%a,i64 16
%o=bitcast i8*%n to i32*
%p=load i32,i32*%o,align 4
%q=getelementptr inbounds i8,i8*%a,i64 20
%r=bitcast i8*%q to i32*
%s=load i32,i32*%r,align 4
%t=call i8*@sml_alloc(i32 inreg 36)#0
%u=getelementptr inbounds i8,i8*%t,i64 -4
%v=bitcast i8*%u to i32*
store i32 1342177312,i32*%v,align 4
store i8*%t,i8**%e,align 8
%w=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%x=bitcast i8*%t to i8**
store i8*%w,i8**%x,align 8
%y=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%z=getelementptr inbounds i8,i8*%t,i64 8
%A=bitcast i8*%z to i8**
store i8*%y,i8**%A,align 8
%B=getelementptr inbounds i8,i8*%t,i64 16
%C=bitcast i8*%B to i32*
store i32%j,i32*%C,align 4
%D=getelementptr inbounds i8,i8*%t,i64 20
%E=bitcast i8*%D to i32*
store i32%m,i32*%E,align 4
%F=getelementptr inbounds i8,i8*%t,i64 24
%G=bitcast i8*%F to i32*
store i32%p,i32*%G,align 4
%H=getelementptr inbounds i8,i8*%t,i64 28
%I=bitcast i8*%H to i32*
store i32%s,i32*%I,align 4
%J=getelementptr inbounds i8,i8*%t,i64 32
%K=bitcast i8*%J to i32*
store i32 3,i32*%K,align 4
%L=call i8*@sml_alloc(i32 inreg 28)#0
%M=getelementptr inbounds i8,i8*%L,i64 -4
%N=bitcast i8*%M to i32*
store i32 1342177304,i32*%N,align 4
%O=load i8*,i8**%e,align 8
%P=bitcast i8*%L to i8**
store i8*%O,i8**%P,align 8
%Q=getelementptr inbounds i8,i8*%L,i64 8
%R=bitcast i8*%Q to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN7EvalIty18evalKindedTvarListE_179 to void(...)*),void(...)**%R,align 8
%S=getelementptr inbounds i8,i8*%L,i64 16
%T=bitcast i8*%S to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN7EvalIty18evalKindedTvarListE_179 to void(...)*),void(...)**%T,align 8
%U=getelementptr inbounds i8,i8*%L,i64 24
%V=bitcast i8*%U to i32*
store i32 -2147483647,i32*%V,align 4
ret i8*%L
}
define internal fastcc i8*@_SMLLN7EvalIty18evalKindedTvarListE_181(i8*inreg%a,i32 inreg%b,i32 inreg%c,i32 inreg%d,i32 inreg%e)#4 gc"smlsharp"{
%f=alloca i8*,align 8
%g=alloca i8*,align 8
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
%h=bitcast i8*%a to i8**
%i=load i8*,i8**%h,align 8
store i8*%i,i8**%f,align 8
%j=call i8*@sml_alloc(i32 inreg 28)#0
%k=getelementptr inbounds i8,i8*%j,i64 -4
%l=bitcast i8*%k to i32*
store i32 1342177304,i32*%l,align 4
store i8*%j,i8**%g,align 8
%m=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%n=bitcast i8*%j to i8**
store i8*%m,i8**%n,align 8
%o=getelementptr inbounds i8,i8*%j,i64 8
%p=bitcast i8*%o to i32*
store i32%b,i32*%p,align 4
%q=getelementptr inbounds i8,i8*%j,i64 12
%r=bitcast i8*%q to i32*
store i32%c,i32*%r,align 4
%s=getelementptr inbounds i8,i8*%j,i64 16
%t=bitcast i8*%s to i32*
store i32%d,i32*%t,align 4
%u=getelementptr inbounds i8,i8*%j,i64 20
%v=bitcast i8*%u to i32*
store i32%e,i32*%v,align 4
%w=getelementptr inbounds i8,i8*%j,i64 24
%x=bitcast i8*%w to i32*
store i32 1,i32*%x,align 4
%y=call i8*@sml_alloc(i32 inreg 28)#0
%z=getelementptr inbounds i8,i8*%y,i64 -4
%A=bitcast i8*%z to i32*
store i32 1342177304,i32*%A,align 4
%B=load i8*,i8**%g,align 8
%C=bitcast i8*%y to i8**
store i8*%B,i8**%C,align 8
%D=getelementptr inbounds i8,i8*%y,i64 8
%E=bitcast i8*%D to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN7EvalIty18evalKindedTvarListE_180 to void(...)*),void(...)**%E,align 8
%F=getelementptr inbounds i8,i8*%y,i64 16
%G=bitcast i8*%F to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN7EvalIty18evalKindedTvarListE_180 to void(...)*),void(...)**%G,align 8
%H=getelementptr inbounds i8,i8*%y,i64 24
%I=bitcast i8*%H to i32*
store i32 -2147483647,i32*%I,align 4
ret i8*%y
}
define fastcc i8*@_SMLFN7EvalIty18evalKindedTvarListE(i32 inreg%a,i32 inreg%b,i32 inreg%c,i32 inreg%d)local_unnamed_addr#2 gc"smlsharp"{
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
%h=alloca i8*,align 8
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
call void@llvm.gcroot(i8**%h,i8*null)#0
%i=load atomic i32,i32*@sml_check_flag unordered,align 4
%j=icmp eq i32%i,0
br i1%j,label%l,label%k
k:
call void@sml_check(i32 inreg%i)
br label%l
l:
%m=load i8*,i8**getelementptr inbounds(<{[4x i8],i32,[5x i8*]}>,<{[4x i8],i32,[5x i8*]}>*@_SML_gvarcdb1ceba8ced3301_EvalIty,i64 0,i32 2,i64 1),align 8
%n=getelementptr inbounds i8,i8*%m,i64 16
%o=bitcast i8*%n to i8*(i8*,i8*,i8*,i8*,i8*)**
%p=load i8*(i8*,i8*,i8*,i8*,i8*)*,i8*(i8*,i8*,i8*,i8*,i8*)**%o,align 8
%q=bitcast i8*%m to i8**
%r=load i8*,i8**%q,align 8
store i8*%r,i8**%e,align 8
%s=call i8*@sml_alloc(i32 inreg 4)#0
%t=bitcast i8*%s to i32*
%u=getelementptr inbounds i8,i8*%s,i64 -4
%v=bitcast i8*%u to i32*
store i32 4,i32*%v,align 4
store i8*%s,i8**%f,align 8
store i32%a,i32*%t,align 4
%w=call i8*@sml_alloc(i32 inreg 4)#0
%x=bitcast i8*%w to i32*
%y=getelementptr inbounds i8,i8*%w,i64 -4
%z=bitcast i8*%y to i32*
store i32 4,i32*%z,align 4
store i8*%w,i8**%g,align 8
store i32%b,i32*%x,align 4
%A=call i8*@sml_alloc(i32 inreg 4)#0
%B=bitcast i8*%A to i32*
%C=getelementptr inbounds i8,i8*%A,i64 -4
%D=bitcast i8*%C to i32*
store i32 4,i32*%D,align 4
store i8*%A,i8**%h,align 8
store i32%c,i32*%B,align 4
%E=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
%I=load i8*,i8**%e,align 8
%J=load i8*,i8**%f,align 8
%K=load i8*,i8**%g,align 8
%L=load i8*,i8**%h,align 8
%M=call fastcc i8*%p(i8*inreg%I,i8*inreg%J,i8*inreg%K,i8*inreg%L,i8*inreg%E)
ret i8*%M
}
define internal fastcc i8*@_SMLLN7EvalIty11evalDtyKindE_183(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
k:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%d,align 8
store i8*%b,i8**%c,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%i,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%d,align 8
br label%i
i:
%j=phi i8*[%h,%g],[%a,%k]
%l=getelementptr inbounds i8,i8*%j,i64 8
%m=bitcast i8*%l to i8**
%n=load i8*,i8**%m,align 8
%o=getelementptr inbounds i8,i8*%j,i64 16
%p=bitcast i8*%o to i32*
%q=load i32,i32*%p,align 4
%r=getelementptr inbounds i8,i8*%j,i64 20
%s=bitcast i8*%r to i32*
%t=load i32,i32*%s,align 4
%u=getelementptr inbounds i8,i8*%j,i64 24
%v=bitcast i8*%u to i32*
%w=load i32,i32*%v,align 4
%x=getelementptr inbounds i8,i8*%j,i64 28
%y=bitcast i8*%x to i32*
%z=load i32,i32*%y,align 4
%A=call fastcc i8*@_SMLLN7EvalIty11evalDtyKindE_174(i8*inreg%n,i32 inreg%q,i32 inreg%t,i32 inreg%w,i32 inreg%z)
%B=getelementptr inbounds i8,i8*%A,i64 16
%C=bitcast i8*%B to i8*(i8*,i8*,i8*)**
%D=load i8*(i8*,i8*,i8*)*,i8*(i8*,i8*,i8*)**%C,align 8
%E=bitcast i8*%A to i8**
%F=load i8*,i8**%E,align 8
%G=bitcast i8**%d to i8***
%H=load i8**,i8***%G,align 8
%I=load i8*,i8**%H,align 8
%J=load i8*,i8**%c,align 8
%K=tail call fastcc i8*%D(i8*inreg%F,i8*inreg%I,i8*inreg%J)
ret i8*%K
}
define internal fastcc i8*@_SMLLN7EvalIty11evalDtyKindE_184(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%b,i8**%c,align 8
%f=bitcast i8*%a to i8**
%g=load i8*,i8**%f,align 8
store i8*%g,i8**%d,align 8
%h=getelementptr inbounds i8,i8*%a,i64 8
%i=bitcast i8*%h to i32*
%j=load i32,i32*%i,align 4
%k=getelementptr inbounds i8,i8*%a,i64 12
%l=bitcast i8*%k to i32*
%m=load i32,i32*%l,align 4
%n=getelementptr inbounds i8,i8*%a,i64 16
%o=bitcast i8*%n to i32*
%p=load i32,i32*%o,align 4
%q=getelementptr inbounds i8,i8*%a,i64 20
%r=bitcast i8*%q to i32*
%s=load i32,i32*%r,align 4
%t=call i8*@sml_alloc(i32 inreg 36)#0
%u=getelementptr inbounds i8,i8*%t,i64 -4
%v=bitcast i8*%u to i32*
store i32 1342177312,i32*%v,align 4
store i8*%t,i8**%e,align 8
%w=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%x=bitcast i8*%t to i8**
store i8*%w,i8**%x,align 8
%y=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%z=getelementptr inbounds i8,i8*%t,i64 8
%A=bitcast i8*%z to i8**
store i8*%y,i8**%A,align 8
%B=getelementptr inbounds i8,i8*%t,i64 16
%C=bitcast i8*%B to i32*
store i32%j,i32*%C,align 4
%D=getelementptr inbounds i8,i8*%t,i64 20
%E=bitcast i8*%D to i32*
store i32%m,i32*%E,align 4
%F=getelementptr inbounds i8,i8*%t,i64 24
%G=bitcast i8*%F to i32*
store i32%p,i32*%G,align 4
%H=getelementptr inbounds i8,i8*%t,i64 28
%I=bitcast i8*%H to i32*
store i32%s,i32*%I,align 4
%J=getelementptr inbounds i8,i8*%t,i64 32
%K=bitcast i8*%J to i32*
store i32 3,i32*%K,align 4
%L=call i8*@sml_alloc(i32 inreg 28)#0
%M=getelementptr inbounds i8,i8*%L,i64 -4
%N=bitcast i8*%M to i32*
store i32 1342177304,i32*%N,align 4
%O=load i8*,i8**%e,align 8
%P=bitcast i8*%L to i8**
store i8*%O,i8**%P,align 8
%Q=getelementptr inbounds i8,i8*%L,i64 8
%R=bitcast i8*%Q to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN7EvalIty11evalDtyKindE_183 to void(...)*),void(...)**%R,align 8
%S=getelementptr inbounds i8,i8*%L,i64 16
%T=bitcast i8*%S to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN7EvalIty11evalDtyKindE_183 to void(...)*),void(...)**%T,align 8
%U=getelementptr inbounds i8,i8*%L,i64 24
%V=bitcast i8*%U to i32*
store i32 -2147483647,i32*%V,align 4
ret i8*%L
}
define internal fastcc i8*@_SMLLN7EvalIty11evalDtyKindE_185(i8*inreg%a,i32 inreg%b,i32 inreg%c,i32 inreg%d,i32 inreg%e)#4 gc"smlsharp"{
%f=alloca i8*,align 8
%g=alloca i8*,align 8
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
%h=bitcast i8*%a to i8**
%i=load i8*,i8**%h,align 8
store i8*%i,i8**%f,align 8
%j=call i8*@sml_alloc(i32 inreg 28)#0
%k=getelementptr inbounds i8,i8*%j,i64 -4
%l=bitcast i8*%k to i32*
store i32 1342177304,i32*%l,align 4
store i8*%j,i8**%g,align 8
%m=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%n=bitcast i8*%j to i8**
store i8*%m,i8**%n,align 8
%o=getelementptr inbounds i8,i8*%j,i64 8
%p=bitcast i8*%o to i32*
store i32%b,i32*%p,align 4
%q=getelementptr inbounds i8,i8*%j,i64 12
%r=bitcast i8*%q to i32*
store i32%c,i32*%r,align 4
%s=getelementptr inbounds i8,i8*%j,i64 16
%t=bitcast i8*%s to i32*
store i32%d,i32*%t,align 4
%u=getelementptr inbounds i8,i8*%j,i64 20
%v=bitcast i8*%u to i32*
store i32%e,i32*%v,align 4
%w=getelementptr inbounds i8,i8*%j,i64 24
%x=bitcast i8*%w to i32*
store i32 1,i32*%x,align 4
%y=call i8*@sml_alloc(i32 inreg 28)#0
%z=getelementptr inbounds i8,i8*%y,i64 -4
%A=bitcast i8*%z to i32*
store i32 1342177304,i32*%A,align 4
%B=load i8*,i8**%g,align 8
%C=bitcast i8*%y to i8**
store i8*%B,i8**%C,align 8
%D=getelementptr inbounds i8,i8*%y,i64 8
%E=bitcast i8*%D to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN7EvalIty11evalDtyKindE_184 to void(...)*),void(...)**%E,align 8
%F=getelementptr inbounds i8,i8*%y,i64 16
%G=bitcast i8*%F to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN7EvalIty11evalDtyKindE_184 to void(...)*),void(...)**%G,align 8
%H=getelementptr inbounds i8,i8*%y,i64 24
%I=bitcast i8*%H to i32*
store i32 -2147483647,i32*%I,align 4
ret i8*%y
}
define fastcc i8*@_SMLFN7EvalIty11evalDtyKindE(i32 inreg%a,i32 inreg%b,i32 inreg%c,i32 inreg%d)local_unnamed_addr#2 gc"smlsharp"{
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
%h=alloca i8*,align 8
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
call void@llvm.gcroot(i8**%h,i8*null)#0
%i=load atomic i32,i32*@sml_check_flag unordered,align 4
%j=icmp eq i32%i,0
br i1%j,label%l,label%k
k:
call void@sml_check(i32 inreg%i)
br label%l
l:
%m=load i8*,i8**getelementptr inbounds(<{[4x i8],i32,[5x i8*]}>,<{[4x i8],i32,[5x i8*]}>*@_SML_gvarcdb1ceba8ced3301_EvalIty,i64 0,i32 2,i64 2),align 8
%n=getelementptr inbounds i8,i8*%m,i64 16
%o=bitcast i8*%n to i8*(i8*,i8*,i8*,i8*,i8*)**
%p=load i8*(i8*,i8*,i8*,i8*,i8*)*,i8*(i8*,i8*,i8*,i8*,i8*)**%o,align 8
%q=bitcast i8*%m to i8**
%r=load i8*,i8**%q,align 8
store i8*%r,i8**%e,align 8
%s=call i8*@sml_alloc(i32 inreg 4)#0
%t=bitcast i8*%s to i32*
%u=getelementptr inbounds i8,i8*%s,i64 -4
%v=bitcast i8*%u to i32*
store i32 4,i32*%v,align 4
store i8*%s,i8**%f,align 8
store i32%a,i32*%t,align 4
%w=call i8*@sml_alloc(i32 inreg 4)#0
%x=bitcast i8*%w to i32*
%y=getelementptr inbounds i8,i8*%w,i64 -4
%z=bitcast i8*%y to i32*
store i32 4,i32*%z,align 4
store i8*%w,i8**%g,align 8
store i32%b,i32*%x,align 4
%A=call i8*@sml_alloc(i32 inreg 4)#0
%B=bitcast i8*%A to i32*
%C=getelementptr inbounds i8,i8*%A,i64 -4
%D=bitcast i8*%C to i32*
store i32 4,i32*%D,align 4
store i8*%A,i8**%h,align 8
store i32%c,i32*%B,align 4
%E=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
%I=load i8*,i8**%e,align 8
%J=load i8*,i8**%f,align 8
%K=load i8*,i8**%g,align 8
%L=load i8*,i8**%h,align 8
%M=call fastcc i8*%p(i8*inreg%I,i8*inreg%J,i8*inreg%K,i8*inreg%L,i8*inreg%E)
ret i8*%M
}
define internal fastcc i8*@_SMLLN7EvalIty8evalTfunE_187(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
k:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%d,align 8
store i8*%b,i8**%c,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%i,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%d,align 8
br label%i
i:
%j=phi i8*[%h,%g],[%a,%k]
%l=getelementptr inbounds i8,i8*%j,i64 8
%m=bitcast i8*%l to i8**
%n=load i8*,i8**%m,align 8
%o=getelementptr inbounds i8,i8*%j,i64 16
%p=bitcast i8*%o to i32*
%q=load i32,i32*%p,align 4
%r=getelementptr inbounds i8,i8*%j,i64 20
%s=bitcast i8*%r to i32*
%t=load i32,i32*%s,align 4
%u=getelementptr inbounds i8,i8*%j,i64 24
%v=bitcast i8*%u to i32*
%w=load i32,i32*%v,align 4
%x=getelementptr inbounds i8,i8*%j,i64 28
%y=bitcast i8*%x to i32*
%z=load i32,i32*%y,align 4
%A=call fastcc i8*@_SMLLN7EvalIty8evalTfunE_175(i8*inreg%n,i32 inreg%q,i32 inreg%t,i32 inreg%w,i32 inreg%z)
%B=getelementptr inbounds i8,i8*%A,i64 16
%C=bitcast i8*%B to i8*(i8*,i8*,i8*)**
%D=load i8*(i8*,i8*,i8*)*,i8*(i8*,i8*,i8*)**%C,align 8
%E=bitcast i8*%A to i8**
%F=load i8*,i8**%E,align 8
%G=bitcast i8**%d to i8***
%H=load i8**,i8***%G,align 8
%I=load i8*,i8**%H,align 8
%J=load i8*,i8**%c,align 8
%K=tail call fastcc i8*%D(i8*inreg%F,i8*inreg%I,i8*inreg%J)
ret i8*%K
}
define internal fastcc i8*@_SMLLN7EvalIty8evalTfunE_188(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%b,i8**%c,align 8
%f=bitcast i8*%a to i8**
%g=load i8*,i8**%f,align 8
store i8*%g,i8**%d,align 8
%h=getelementptr inbounds i8,i8*%a,i64 8
%i=bitcast i8*%h to i32*
%j=load i32,i32*%i,align 4
%k=getelementptr inbounds i8,i8*%a,i64 12
%l=bitcast i8*%k to i32*
%m=load i32,i32*%l,align 4
%n=getelementptr inbounds i8,i8*%a,i64 16
%o=bitcast i8*%n to i32*
%p=load i32,i32*%o,align 4
%q=getelementptr inbounds i8,i8*%a,i64 20
%r=bitcast i8*%q to i32*
%s=load i32,i32*%r,align 4
%t=call i8*@sml_alloc(i32 inreg 36)#0
%u=getelementptr inbounds i8,i8*%t,i64 -4
%v=bitcast i8*%u to i32*
store i32 1342177312,i32*%v,align 4
store i8*%t,i8**%e,align 8
%w=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%x=bitcast i8*%t to i8**
store i8*%w,i8**%x,align 8
%y=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%z=getelementptr inbounds i8,i8*%t,i64 8
%A=bitcast i8*%z to i8**
store i8*%y,i8**%A,align 8
%B=getelementptr inbounds i8,i8*%t,i64 16
%C=bitcast i8*%B to i32*
store i32%j,i32*%C,align 4
%D=getelementptr inbounds i8,i8*%t,i64 20
%E=bitcast i8*%D to i32*
store i32%m,i32*%E,align 4
%F=getelementptr inbounds i8,i8*%t,i64 24
%G=bitcast i8*%F to i32*
store i32%p,i32*%G,align 4
%H=getelementptr inbounds i8,i8*%t,i64 28
%I=bitcast i8*%H to i32*
store i32%s,i32*%I,align 4
%J=getelementptr inbounds i8,i8*%t,i64 32
%K=bitcast i8*%J to i32*
store i32 3,i32*%K,align 4
%L=call i8*@sml_alloc(i32 inreg 28)#0
%M=getelementptr inbounds i8,i8*%L,i64 -4
%N=bitcast i8*%M to i32*
store i32 1342177304,i32*%N,align 4
%O=load i8*,i8**%e,align 8
%P=bitcast i8*%L to i8**
store i8*%O,i8**%P,align 8
%Q=getelementptr inbounds i8,i8*%L,i64 8
%R=bitcast i8*%Q to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN7EvalIty8evalTfunE_187 to void(...)*),void(...)**%R,align 8
%S=getelementptr inbounds i8,i8*%L,i64 16
%T=bitcast i8*%S to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN7EvalIty8evalTfunE_187 to void(...)*),void(...)**%T,align 8
%U=getelementptr inbounds i8,i8*%L,i64 24
%V=bitcast i8*%U to i32*
store i32 -2147483647,i32*%V,align 4
ret i8*%L
}
define internal fastcc i8*@_SMLLN7EvalIty8evalTfunE_189(i8*inreg%a,i32 inreg%b,i32 inreg%c,i32 inreg%d,i32 inreg%e)#4 gc"smlsharp"{
%f=alloca i8*,align 8
%g=alloca i8*,align 8
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
%h=bitcast i8*%a to i8**
%i=load i8*,i8**%h,align 8
store i8*%i,i8**%f,align 8
%j=call i8*@sml_alloc(i32 inreg 28)#0
%k=getelementptr inbounds i8,i8*%j,i64 -4
%l=bitcast i8*%k to i32*
store i32 1342177304,i32*%l,align 4
store i8*%j,i8**%g,align 8
%m=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%n=bitcast i8*%j to i8**
store i8*%m,i8**%n,align 8
%o=getelementptr inbounds i8,i8*%j,i64 8
%p=bitcast i8*%o to i32*
store i32%b,i32*%p,align 4
%q=getelementptr inbounds i8,i8*%j,i64 12
%r=bitcast i8*%q to i32*
store i32%c,i32*%r,align 4
%s=getelementptr inbounds i8,i8*%j,i64 16
%t=bitcast i8*%s to i32*
store i32%d,i32*%t,align 4
%u=getelementptr inbounds i8,i8*%j,i64 20
%v=bitcast i8*%u to i32*
store i32%e,i32*%v,align 4
%w=getelementptr inbounds i8,i8*%j,i64 24
%x=bitcast i8*%w to i32*
store i32 1,i32*%x,align 4
%y=call i8*@sml_alloc(i32 inreg 28)#0
%z=getelementptr inbounds i8,i8*%y,i64 -4
%A=bitcast i8*%z to i32*
store i32 1342177304,i32*%A,align 4
%B=load i8*,i8**%g,align 8
%C=bitcast i8*%y to i8**
store i8*%B,i8**%C,align 8
%D=getelementptr inbounds i8,i8*%y,i64 8
%E=bitcast i8*%D to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN7EvalIty8evalTfunE_188 to void(...)*),void(...)**%E,align 8
%F=getelementptr inbounds i8,i8*%y,i64 16
%G=bitcast i8*%F to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN7EvalIty8evalTfunE_188 to void(...)*),void(...)**%G,align 8
%H=getelementptr inbounds i8,i8*%y,i64 24
%I=bitcast i8*%H to i32*
store i32 -2147483647,i32*%I,align 4
ret i8*%y
}
define fastcc i8*@_SMLFN7EvalIty8evalTfunE(i32 inreg%a,i32 inreg%b,i32 inreg%c,i32 inreg%d)local_unnamed_addr#2 gc"smlsharp"{
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
%h=alloca i8*,align 8
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
call void@llvm.gcroot(i8**%h,i8*null)#0
%i=load atomic i32,i32*@sml_check_flag unordered,align 4
%j=icmp eq i32%i,0
br i1%j,label%l,label%k
k:
call void@sml_check(i32 inreg%i)
br label%l
l:
%m=load i8*,i8**getelementptr inbounds(<{[4x i8],i32,[5x i8*]}>,<{[4x i8],i32,[5x i8*]}>*@_SML_gvarcdb1ceba8ced3301_EvalIty,i64 0,i32 2,i64 3),align 8
%n=getelementptr inbounds i8,i8*%m,i64 16
%o=bitcast i8*%n to i8*(i8*,i8*,i8*,i8*,i8*)**
%p=load i8*(i8*,i8*,i8*,i8*,i8*)*,i8*(i8*,i8*,i8*,i8*,i8*)**%o,align 8
%q=bitcast i8*%m to i8**
%r=load i8*,i8**%q,align 8
store i8*%r,i8**%e,align 8
%s=call i8*@sml_alloc(i32 inreg 4)#0
%t=bitcast i8*%s to i32*
%u=getelementptr inbounds i8,i8*%s,i64 -4
%v=bitcast i8*%u to i32*
store i32 4,i32*%v,align 4
store i8*%s,i8**%f,align 8
store i32%a,i32*%t,align 4
%w=call i8*@sml_alloc(i32 inreg 4)#0
%x=bitcast i8*%w to i32*
%y=getelementptr inbounds i8,i8*%w,i64 -4
%z=bitcast i8*%y to i32*
store i32 4,i32*%z,align 4
store i8*%w,i8**%g,align 8
store i32%b,i32*%x,align 4
%A=call i8*@sml_alloc(i32 inreg 4)#0
%B=bitcast i8*%A to i32*
%C=getelementptr inbounds i8,i8*%A,i64 -4
%D=bitcast i8*%C to i32*
store i32 4,i32*%D,align 4
store i8*%A,i8**%h,align 8
store i32%c,i32*%B,align 4
%E=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
%I=load i8*,i8**%e,align 8
%J=load i8*,i8**%f,align 8
%K=load i8*,i8**%g,align 8
%L=load i8*,i8**%h,align 8
%M=call fastcc i8*%p(i8*inreg%I,i8*inreg%J,i8*inreg%K,i8*inreg%L,i8*inreg%E)
ret i8*%M
}
define internal fastcc i8*@_SMLLN7EvalIty7evalItyE_191(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
k:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%d,align 8
store i8*%b,i8**%c,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%i,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%d,align 8
br label%i
i:
%j=phi i8*[%h,%g],[%a,%k]
%l=getelementptr inbounds i8,i8*%j,i64 8
%m=bitcast i8*%l to i8**
%n=load i8*,i8**%m,align 8
%o=getelementptr inbounds i8,i8*%j,i64 16
%p=bitcast i8*%o to i32*
%q=load i32,i32*%p,align 4
%r=getelementptr inbounds i8,i8*%j,i64 20
%s=bitcast i8*%r to i32*
%t=load i32,i32*%s,align 4
%u=getelementptr inbounds i8,i8*%j,i64 24
%v=bitcast i8*%u to i32*
%w=load i32,i32*%v,align 4
%x=getelementptr inbounds i8,i8*%j,i64 28
%y=bitcast i8*%x to i32*
%z=load i32,i32*%y,align 4
%A=call fastcc i8*@_SMLLN7EvalIty7evalItyE_176(i8*inreg%n,i32 inreg%q,i32 inreg%t,i32 inreg%w,i32 inreg%z)
%B=getelementptr inbounds i8,i8*%A,i64 16
%C=bitcast i8*%B to i8*(i8*,i8*,i8*)**
%D=load i8*(i8*,i8*,i8*)*,i8*(i8*,i8*,i8*)**%C,align 8
%E=bitcast i8*%A to i8**
%F=load i8*,i8**%E,align 8
%G=bitcast i8**%d to i8***
%H=load i8**,i8***%G,align 8
%I=load i8*,i8**%H,align 8
%J=load i8*,i8**%c,align 8
%K=tail call fastcc i8*%D(i8*inreg%F,i8*inreg%I,i8*inreg%J)
ret i8*%K
}
define internal fastcc i8*@_SMLLN7EvalIty7evalItyE_192(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%b,i8**%c,align 8
%f=bitcast i8*%a to i8**
%g=load i8*,i8**%f,align 8
store i8*%g,i8**%d,align 8
%h=getelementptr inbounds i8,i8*%a,i64 8
%i=bitcast i8*%h to i32*
%j=load i32,i32*%i,align 4
%k=getelementptr inbounds i8,i8*%a,i64 12
%l=bitcast i8*%k to i32*
%m=load i32,i32*%l,align 4
%n=getelementptr inbounds i8,i8*%a,i64 16
%o=bitcast i8*%n to i32*
%p=load i32,i32*%o,align 4
%q=getelementptr inbounds i8,i8*%a,i64 20
%r=bitcast i8*%q to i32*
%s=load i32,i32*%r,align 4
%t=call i8*@sml_alloc(i32 inreg 36)#0
%u=getelementptr inbounds i8,i8*%t,i64 -4
%v=bitcast i8*%u to i32*
store i32 1342177312,i32*%v,align 4
store i8*%t,i8**%e,align 8
%w=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%x=bitcast i8*%t to i8**
store i8*%w,i8**%x,align 8
%y=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%z=getelementptr inbounds i8,i8*%t,i64 8
%A=bitcast i8*%z to i8**
store i8*%y,i8**%A,align 8
%B=getelementptr inbounds i8,i8*%t,i64 16
%C=bitcast i8*%B to i32*
store i32%j,i32*%C,align 4
%D=getelementptr inbounds i8,i8*%t,i64 20
%E=bitcast i8*%D to i32*
store i32%m,i32*%E,align 4
%F=getelementptr inbounds i8,i8*%t,i64 24
%G=bitcast i8*%F to i32*
store i32%p,i32*%G,align 4
%H=getelementptr inbounds i8,i8*%t,i64 28
%I=bitcast i8*%H to i32*
store i32%s,i32*%I,align 4
%J=getelementptr inbounds i8,i8*%t,i64 32
%K=bitcast i8*%J to i32*
store i32 3,i32*%K,align 4
%L=call i8*@sml_alloc(i32 inreg 28)#0
%M=getelementptr inbounds i8,i8*%L,i64 -4
%N=bitcast i8*%M to i32*
store i32 1342177304,i32*%N,align 4
%O=load i8*,i8**%e,align 8
%P=bitcast i8*%L to i8**
store i8*%O,i8**%P,align 8
%Q=getelementptr inbounds i8,i8*%L,i64 8
%R=bitcast i8*%Q to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN7EvalIty7evalItyE_191 to void(...)*),void(...)**%R,align 8
%S=getelementptr inbounds i8,i8*%L,i64 16
%T=bitcast i8*%S to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN7EvalIty7evalItyE_191 to void(...)*),void(...)**%T,align 8
%U=getelementptr inbounds i8,i8*%L,i64 24
%V=bitcast i8*%U to i32*
store i32 -2147483647,i32*%V,align 4
ret i8*%L
}
define internal fastcc i8*@_SMLLN7EvalIty7evalItyE_193(i8*inreg%a,i32 inreg%b,i32 inreg%c,i32 inreg%d,i32 inreg%e)#4 gc"smlsharp"{
%f=alloca i8*,align 8
%g=alloca i8*,align 8
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
%h=bitcast i8*%a to i8**
%i=load i8*,i8**%h,align 8
store i8*%i,i8**%f,align 8
%j=call i8*@sml_alloc(i32 inreg 28)#0
%k=getelementptr inbounds i8,i8*%j,i64 -4
%l=bitcast i8*%k to i32*
store i32 1342177304,i32*%l,align 4
store i8*%j,i8**%g,align 8
%m=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%n=bitcast i8*%j to i8**
store i8*%m,i8**%n,align 8
%o=getelementptr inbounds i8,i8*%j,i64 8
%p=bitcast i8*%o to i32*
store i32%b,i32*%p,align 4
%q=getelementptr inbounds i8,i8*%j,i64 12
%r=bitcast i8*%q to i32*
store i32%c,i32*%r,align 4
%s=getelementptr inbounds i8,i8*%j,i64 16
%t=bitcast i8*%s to i32*
store i32%d,i32*%t,align 4
%u=getelementptr inbounds i8,i8*%j,i64 20
%v=bitcast i8*%u to i32*
store i32%e,i32*%v,align 4
%w=getelementptr inbounds i8,i8*%j,i64 24
%x=bitcast i8*%w to i32*
store i32 1,i32*%x,align 4
%y=call i8*@sml_alloc(i32 inreg 28)#0
%z=getelementptr inbounds i8,i8*%y,i64 -4
%A=bitcast i8*%z to i32*
store i32 1342177304,i32*%A,align 4
%B=load i8*,i8**%g,align 8
%C=bitcast i8*%y to i8**
store i8*%B,i8**%C,align 8
%D=getelementptr inbounds i8,i8*%y,i64 8
%E=bitcast i8*%D to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN7EvalIty7evalItyE_192 to void(...)*),void(...)**%E,align 8
%F=getelementptr inbounds i8,i8*%y,i64 16
%G=bitcast i8*%F to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN7EvalIty7evalItyE_192 to void(...)*),void(...)**%G,align 8
%H=getelementptr inbounds i8,i8*%y,i64 24
%I=bitcast i8*%H to i32*
store i32 -2147483647,i32*%I,align 4
ret i8*%y
}
define fastcc i8*@_SMLFN7EvalIty7evalItyE(i32 inreg%a,i32 inreg%b,i32 inreg%c,i32 inreg%d)local_unnamed_addr#2 gc"smlsharp"{
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
%h=alloca i8*,align 8
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
call void@llvm.gcroot(i8**%h,i8*null)#0
%i=load atomic i32,i32*@sml_check_flag unordered,align 4
%j=icmp eq i32%i,0
br i1%j,label%l,label%k
k:
call void@sml_check(i32 inreg%i)
br label%l
l:
%m=load i8*,i8**getelementptr inbounds(<{[4x i8],i32,[5x i8*]}>,<{[4x i8],i32,[5x i8*]}>*@_SML_gvarcdb1ceba8ced3301_EvalIty,i64 0,i32 2,i64 4),align 8
%n=getelementptr inbounds i8,i8*%m,i64 16
%o=bitcast i8*%n to i8*(i8*,i8*,i8*,i8*,i8*)**
%p=load i8*(i8*,i8*,i8*,i8*,i8*)*,i8*(i8*,i8*,i8*,i8*,i8*)**%o,align 8
%q=bitcast i8*%m to i8**
%r=load i8*,i8**%q,align 8
store i8*%r,i8**%e,align 8
%s=call i8*@sml_alloc(i32 inreg 4)#0
%t=bitcast i8*%s to i32*
%u=getelementptr inbounds i8,i8*%s,i64 -4
%v=bitcast i8*%u to i32*
store i32 4,i32*%v,align 4
store i8*%s,i8**%f,align 8
store i32%a,i32*%t,align 4
%w=call i8*@sml_alloc(i32 inreg 4)#0
%x=bitcast i8*%w to i32*
%y=getelementptr inbounds i8,i8*%w,i64 -4
%z=bitcast i8*%y to i32*
store i32 4,i32*%z,align 4
store i8*%w,i8**%g,align 8
store i32%b,i32*%x,align 4
%A=call i8*@sml_alloc(i32 inreg 4)#0
%B=bitcast i8*%A to i32*
%C=getelementptr inbounds i8,i8*%A,i64 -4
%D=bitcast i8*%C to i32*
store i32 4,i32*%D,align 4
store i8*%A,i8**%h,align 8
store i32%c,i32*%B,align 4
%E=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
%I=load i8*,i8**%e,align 8
%J=load i8*,i8**%f,align 8
%K=load i8*,i8**%g,align 8
%L=load i8*,i8**%h,align 8
%M=call fastcc i8*%p(i8*inreg%I,i8*inreg%J,i8*inreg%K,i8*inreg%L,i8*inreg%E)
ret i8*%M
}
define internal fastcc i8*@_SMLLN7EvalIty14setFreeTvarEnvE_198(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLLN7EvalIty14setFreeTvarEnvE_99(i8*inreg%a,i8*inreg%b)
%c=tail call i8*@sml_alloc(i32 inreg 4)#0
%d=bitcast i8*%c to i32*
%e=getelementptr inbounds i8,i8*%c,i64 -4
%f=bitcast i8*%e to i32*
store i32 4,i32*%f,align 4
store i32 0,i32*%d,align 4
ret i8*%c
}
define internal fastcc i8*@_SMLL9opaqueRep_199(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLL9opaqueRep_108(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLL12interfaceRep_200(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLL12interfaceRep_110(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLN7EvalIty8evalTfunE_201(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLLN7EvalIty8evalTfunE_114(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLL7argTyFn_202(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*@_SMLL7argTyFn_116(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLL7argTyFn_203(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*@_SMLL7argTyFn_118(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLL7tvarEnv_204(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLL7tvarEnv_149(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLL10boundOtset_205(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLL10boundOtset_156(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLL4tids_206(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLL4tids_158(i8*inreg%a,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*@_SMLL4btvs_207(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLL4btvs_161(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLL6genBtv_208(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLL6genBtv_166(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLL209(i8*inreg%a,i8*inreg%b,i8*inreg%c,i8*inreg%d,i8*inreg%e)#4 gc"smlsharp"{
%f=bitcast i8*%b to i32*
%g=load i32,i32*%f,align 4
%h=bitcast i8*%c to i32*
%i=load i32,i32*%h,align 4
%j=bitcast i8*%d to i32*
%k=load i32,i32*%j,align 4
%l=bitcast i8*%e to i32*
%m=load i32,i32*%l,align 4
%n=tail call fastcc i8*@_SMLLL173(i8*inreg%a,i32 inreg%g,i32 inreg%i,i32 inreg%k,i32 inreg%m)
ret i8*%n
}
define internal fastcc i8*@_SMLLN7EvalIty11evalDtyKindE_210(i8*inreg%a,i8*inreg%b,i8*inreg%c,i8*inreg%d,i8*inreg%e)#2 gc"smlsharp"{
%f=bitcast i8*%b to i32*
%g=load i32,i32*%f,align 4
%h=bitcast i8*%c to i32*
%i=load i32,i32*%h,align 4
%j=bitcast i8*%d to i32*
%k=load i32,i32*%j,align 4
%l=bitcast i8*%e to i32*
%m=load i32,i32*%l,align 4
%n=tail call fastcc i8*@_SMLLN7EvalIty11evalDtyKindE_174(i8*inreg%a,i32 inreg%g,i32 inreg%i,i32 inreg%k,i32 inreg%m)
ret i8*%n
}
define internal fastcc i8*@_SMLLN7EvalIty8evalTfunE_211(i8*inreg%a,i8*inreg%b,i8*inreg%c,i8*inreg%d,i8*inreg%e)#2 gc"smlsharp"{
%f=bitcast i8*%b to i32*
%g=load i32,i32*%f,align 4
%h=bitcast i8*%c to i32*
%i=load i32,i32*%h,align 4
%j=bitcast i8*%d to i32*
%k=load i32,i32*%j,align 4
%l=bitcast i8*%e to i32*
%m=load i32,i32*%l,align 4
%n=tail call fastcc i8*@_SMLLN7EvalIty8evalTfunE_175(i8*inreg%a,i32 inreg%g,i32 inreg%i,i32 inreg%k,i32 inreg%m)
ret i8*%n
}
define internal fastcc i8*@_SMLLN7EvalIty7evalItyE_212(i8*inreg%a,i8*inreg%b,i8*inreg%c,i8*inreg%d,i8*inreg%e)#2 gc"smlsharp"{
%f=bitcast i8*%b to i32*
%g=load i32,i32*%f,align 4
%h=bitcast i8*%c to i32*
%i=load i32,i32*%h,align 4
%j=bitcast i8*%d to i32*
%k=load i32,i32*%j,align 4
%l=bitcast i8*%e to i32*
%m=load i32,i32*%l,align 4
%n=tail call fastcc i8*@_SMLLN7EvalIty7evalItyE_176(i8*inreg%a,i32 inreg%g,i32 inreg%i,i32 inreg%k,i32 inreg%m)
ret i8*%n
}
define internal fastcc i8*@_SMLLN7EvalIty12evalFreeTvarE_213(i8*inreg%a,i8*inreg%b,i8*inreg%c,i8*inreg%d,i8*inreg%e)#2 gc"smlsharp"{
%f=bitcast i8*%b to i32*
%g=load i32,i32*%f,align 4
%h=bitcast i8*%c to i32*
%i=load i32,i32*%h,align 4
%j=bitcast i8*%d to i32*
%k=load i32,i32*%j,align 4
%l=bitcast i8*%e to i32*
%m=load i32,i32*%l,align 4
%n=tail call fastcc i8*@_SMLLN7EvalIty12evalFreeTvarE_177(i8*inreg%a,i32 inreg%g,i32 inreg%i,i32 inreg%k,i32 inreg%m)
ret i8*%n
}
define internal fastcc i8*@_SMLLN7EvalIty18evalKindedTvarListE_214(i8*inreg%a,i8*inreg%b,i8*inreg%c,i8*inreg%d,i8*inreg%e)#2 gc"smlsharp"{
%f=bitcast i8*%b to i32*
%g=load i32,i32*%f,align 4
%h=bitcast i8*%c to i32*
%i=load i32,i32*%h,align 4
%j=bitcast i8*%d to i32*
%k=load i32,i32*%j,align 4
%l=bitcast i8*%e to i32*
%m=load i32,i32*%l,align 4
%n=tail call fastcc i8*@_SMLLN7EvalIty18evalKindedTvarListE_178(i8*inreg%a,i32 inreg%g,i32 inreg%i,i32 inreg%k,i32 inreg%m)
ret i8*%n
}
define internal fastcc i8*@_SMLLN7EvalIty18evalKindedTvarListE_215(i8*inreg%a,i8*inreg%b,i8*inreg%c,i8*inreg%d,i8*inreg%e)#4 gc"smlsharp"{
%f=bitcast i8*%b to i32*
%g=load i32,i32*%f,align 4
%h=bitcast i8*%c to i32*
%i=load i32,i32*%h,align 4
%j=bitcast i8*%d to i32*
%k=load i32,i32*%j,align 4
%l=bitcast i8*%e to i32*
%m=load i32,i32*%l,align 4
%n=tail call fastcc i8*@_SMLLN7EvalIty18evalKindedTvarListE_181(i8*inreg%a,i32 inreg%g,i32 inreg%i,i32 inreg%k,i32 inreg%m)
ret i8*%n
}
define internal fastcc i8*@_SMLLN7EvalIty11evalDtyKindE_217(i8*inreg%a,i8*inreg%b,i8*inreg%c,i8*inreg%d,i8*inreg%e)#4 gc"smlsharp"{
%f=bitcast i8*%b to i32*
%g=load i32,i32*%f,align 4
%h=bitcast i8*%c to i32*
%i=load i32,i32*%h,align 4
%j=bitcast i8*%d to i32*
%k=load i32,i32*%j,align 4
%l=bitcast i8*%e to i32*
%m=load i32,i32*%l,align 4
%n=tail call fastcc i8*@_SMLLN7EvalIty11evalDtyKindE_185(i8*inreg%a,i32 inreg%g,i32 inreg%i,i32 inreg%k,i32 inreg%m)
ret i8*%n
}
define internal fastcc i8*@_SMLLN7EvalIty8evalTfunE_219(i8*inreg%a,i8*inreg%b,i8*inreg%c,i8*inreg%d,i8*inreg%e)#4 gc"smlsharp"{
%f=bitcast i8*%b to i32*
%g=load i32,i32*%f,align 4
%h=bitcast i8*%c to i32*
%i=load i32,i32*%h,align 4
%j=bitcast i8*%d to i32*
%k=load i32,i32*%j,align 4
%l=bitcast i8*%e to i32*
%m=load i32,i32*%l,align 4
%n=tail call fastcc i8*@_SMLLN7EvalIty8evalTfunE_189(i8*inreg%a,i32 inreg%g,i32 inreg%i,i32 inreg%k,i32 inreg%m)
ret i8*%n
}
define internal fastcc i8*@_SMLLN7EvalIty7evalItyE_221(i8*inreg%a,i8*inreg%b,i8*inreg%c,i8*inreg%d,i8*inreg%e)#4 gc"smlsharp"{
%f=bitcast i8*%b to i32*
%g=load i32,i32*%f,align 4
%h=bitcast i8*%c to i32*
%i=load i32,i32*%h,align 4
%j=bitcast i8*%d to i32*
%k=load i32,i32*%j,align 4
%l=bitcast i8*%e to i32*
%m=load i32,i32*%l,align 4
%n=tail call fastcc i8*@_SMLLN7EvalIty7evalItyE_193(i8*inreg%a,i32 inreg%g,i32 inreg%i,i32 inreg%k,i32 inreg%m)
ret i8*%n
}
declare void@llvm.memcpy.p0i8.p0i8.i32(i8*,i8*,i32,i1)#0
declare void@llvm.memset.p0i8.i32(i8*,i8,i32,i1)#0
declare void@llvm.lifetime.start.p0i8(i64,i8*)#0
declare void@llvm.lifetime.end.p0i8(i64,i8*)#0
attributes#0={nounwind}
attributes#1={noreturn}
attributes#2={uwtable}
attributes#3={noreturn nounwind}
attributes#4={nounwind uwtable}
