@sml_check_flag=external local_unnamed_addr global i32
@_SMLZN12BuiltinTypes8refTyConE=external local_unnamed_addr global i8*
@_SMLZN3Bug3BugE=external local_unnamed_addr global i8*
@_SMLZN3Loc5nolocE=external local_unnamed_addr global i8*
@_SMLZN8ListPair14UnequalLengthsE=external local_unnamed_addr global i8*
@_SMLZ5Match=external unnamed_addr constant i8*
@a=private unnamed_addr constant<{[4x i8],i32,[69x i8]}><{[4x i8]zeroinitializer,i32 -2147483579,[69x i8]c"src/compiler/compilerIRs/typedcalc/main/TypedCalcUtils.sml:22.6(611)\00"}>,align 8
@b=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN14TypedCalcUtils11getLocOfExpE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN14TypedCalcUtils11getLocOfExpE_277 to void(...)*),i32 -2147483647}>,align 8
@c=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i8*)*@_SMLLN14TypedCalcUtils9expansiveE_195 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN14TypedCalcUtils9expansiveE_278 to void(...)*),i32 -2147483647}>,align 8
@d=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i8*)*@_SMLLN14TypedCalcUtils9expansiveE_197 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN14TypedCalcUtils9expansiveE_279 to void(...)*),i32 -2147483647}>,align 8
@e=private unnamed_addr constant<{[4x i8],i32,[70x i8]}><{[4x i8]zeroinitializer,i32 -2147483578,[70x i8]c"src/compiler/compilerIRs/typedcalc/main/TypedCalcUtils.sml:75.6(2582)\00"}>,align 8
@f=private unnamed_addr constant<{[4x i8],i32,[72x i8]}><{[4x i8]zeroinitializer,i32 -2147483576,[72x i8]c"src/compiler/compilerIRs/typedcalc/main/TypedCalcUtils.sml:166.37(6325)\00"}>,align 8
@g=private unnamed_addr constant<{[4x i8],i32,[25x i8]}><{[4x i8]zeroinitializer,i32 -2147483623,[25x i8]c"instantiateTv OCONSTkind\00"}>,align 8
@h=private unnamed_addr constant<{[4x i8],i32,[72x i8]}><{[4x i8]zeroinitializer,i32 -2147483576,[72x i8]c"src/compiler/compilerIRs/typedcalc/main/TypedCalcUtils.sml:169.17(6498)\00"}>,align 8
@i=private unnamed_addr constant<{[4x i8],i32,[24x i8]}><{[4x i8]zeroinitializer,i32 -2147483624,[24x i8]c"instantiateTv OPRIMkind\00"}>,align 8
@j=private unnamed_addr constant<{[4x i8],i32,[71x i8]}><{[4x i8]zeroinitializer,i32 -2147483577,[71x i8]c"src/compiler/compilerIRs/typedcalc/main/TypedCalcUtils.sml:164.9(6215)\00"}>,align 8
@k=private unnamed_addr constant<{[4x i8],i32,[71x i8]}><{[4x i8]zeroinitializer,i32 -2147483577,[71x i8]c"src/compiler/compilerIRs/typedcalc/main/TypedCalcUtils.sml:162.6(6133)\00"}>,align 8
@l=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLFN14TypedCalcUtils13instantiateTvE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN14TypedCalcUtils13instantiateTvE_281 to void(...)*),i32 -2147483647}>,align 8
@m=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLLN14TypedCalcUtils9freshInstE_225 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN14TypedCalcUtils9freshInstE_282 to void(...)*),i32 -2147483647}>,align 8
@n=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLL10argVarList_228 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLL10argVarList_283 to void(...)*),i32 -2147483647}>,align 8
@o=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLL10argExpList_230 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLL10argExpList_284 to void(...)*),i32 -2147483647}>,align 8
@p=private unnamed_addr constant<{[4x i8],i32,[10x i8]}><{[4x i8]zeroinitializer,i32 -2147483638,[10x i8]c"freshInst\00"}>,align 8
@q=private unnamed_addr constant<{[4x i8],i32,[70x i8]}><{[4x i8]zeroinitializer,i32 -2147483578,[70x i8]c"src/compiler/compilerIRs/typedcalc/main/TypedCalcUtils.sml:13.14(388)\00"}>,align 8
@r=private unnamed_addr constant<{[4x i8],i32,[16x i8]}><{[4x i8]zeroinitializer,i32 -2147483632,[16x i8]c"TypedCalcUtil: \00"}>,align 8
@s=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,[16x i8]}>,<{[4x i8],i32,[16x i8]}>*@r,i32 0,i32 0,i32 0),i32 8),i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,[10x i8]}>,<{[4x i8],i32,[10x i8]}>*@p,i32 0,i32 0,i32 0),i32 8),i32 3}>,align 8
@t=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLLN14TypedCalcUtils10groundInstE_240 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN14TypedCalcUtils10groundInstE_286 to void(...)*),i32 -2147483647}>,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*)*@_SMLFN14TypedCalcUtils10groundInstE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN14TypedCalcUtils10groundInstE_287 to void(...)*),i32 -2147483647}>,align 8
@v=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN14TypedCalcUtils17freshToplevelInstE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN14TypedCalcUtils17freshToplevelInstE_288 to void(...)*),i32 -2147483647}>,align 8
@w=private unnamed_addr constant<{[4x i8],i32,[73x i8]}><{[4x i8]zeroinitializer,i32 -2147483575,[73x i8]c"src/compiler/compilerIRs/typedcalc/main/TypedCalcUtils.sml:451.20(19548)\00"}>,align 8
@x=private unnamed_addr constant<{[4x i8],i32,[73x i8]}><{[4x i8]zeroinitializer,i32 -2147483575,[73x i8]c"src/compiler/compilerIRs/typedcalc/main/TypedCalcUtils.sml:455.31(19754)\00"}>,align 8
@y=private unnamed_addr constant<{[4x i8],i32,[23x i8]}><{[4x i8]zeroinitializer,i32 -2147483625,[23x i8]c"toplevelInstWithInstTy\00"}>,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*)*@_SMLFN14TypedCalcUtils22toplevelInstWithInstTyE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN14TypedCalcUtils22toplevelInstWithInstTyE_290 to void(...)*),i32 -2147483647}>,align 8
@A=private unnamed_addr constant<{[4x i8],i32,[42x i8]}><{[4x i8]zeroinitializer,i32 -2147483606,[42x i8]c"TypedCalcUtils.ToplevelInstWithInstTyList\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,[42x i8]}>,<{[4x i8],i32,[42x i8]}>*@A,i32 0,i32 0,i32 0),i32 8),i32 0,[4x i8]zeroinitializer,i32 1}>,align 8
@_SMLDL256=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,[73x i8]}><{[4x i8]zeroinitializer,i32 -2147483575,[73x i8]c"src/compiler/compilerIRs/typedcalc/main/TypedCalcUtils.sml:470.20(20154)\00"}>,align 8
@D=private unnamed_addr constant<{[4x i8],i32,[48x i8]}><{[4x i8]zeroinitializer,i32 -2147483600,[48x i8]c"toplevelInstWithInstTy with non-nil constraints\00"}>,align 8
@E=private unnamed_addr constant<{[4x i8],i32,[73x i8]}><{[4x i8]zeroinitializer,i32 -2147483575,[73x i8]c"src/compiler/compilerIRs/typedcalc/main/TypedCalcUtils.sml:475.29(20391)\00"}>,align 8
@F=private unnamed_addr constant<{[4x i8],i32,[27x i8]}><{[4x i8]zeroinitializer,i32 -2147483621,[27x i8]c"toplevelInstWithInstTyList\00"}>,align 8
@G=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLLN14TypedCalcUtils26toplevelInstWithInstTyListE_261 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN14TypedCalcUtils26toplevelInstWithInstTyListE_291 to void(...)*),i32 -2147483647}>,align 8
@H=private unnamed_addr constant<{[4x i8],i32,[73x i8]}><{[4x i8]zeroinitializer,i32 -2147483575,[73x i8]c"src/compiler/compilerIRs/typedcalc/main/TypedCalcUtils.sml:478.25(20535)\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,i8*}>,<{[4x i8],i32,i8*}>*@_SMLDL256,i32 0,i32 0,i32 0),i32 8),i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,[73x i8]}>,<{[4x i8],i32,[73x i8]}>*@H,i32 0,i32 0,i32 0),i32 8),i32 3}>,align 8
@J=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN14TypedCalcUtils26toplevelInstWithInstTyListE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN14TypedCalcUtils26toplevelInstWithInstTyListE_292 to void(...)*),i32 -2147483647}>,align 8
@K=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLLN14TypedCalcUtils12newTCVarInfoE_267 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN14TypedCalcUtils12newTCVarInfoE_293 to void(...)*),i32 -2147483647}>,align 8
@L=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN14TypedCalcUtils12newTCVarInfoE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN14TypedCalcUtils12newTCVarInfoE_294 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN14TypedCalcUtils12newTCVarInfoE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@L,i64 0,i32 2)to i8*)
@_SMLZN14TypedCalcUtils11getLocOfExpE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@b,i64 0,i32 2)to i8*)
@_SMLZN14TypedCalcUtils13instantiateTvE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@l,i64 0,i32 2)to i8*)
@M=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN14TypedCalcUtils9freshInstE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN14TypedCalcUtils9freshInstE_295 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN14TypedCalcUtils9freshInstE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@M,i64 0,i32 2)to i8*)
@_SMLZN14TypedCalcUtils10groundInstE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@u,i64 0,i32 2)to i8*)
@_SMLZN14TypedCalcUtils17freshToplevelInstE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@v,i64 0,i32 2)to i8*)
@_SMLZN14TypedCalcUtils22toplevelInstWithInstTyE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@z,i64 0,i32 2)to i8*)
@_SMLZN14TypedCalcUtils26ToplevelInstWithInstTyListE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*}>,<{[4x i8],i32,i8*}>*@_SMLDL256,i64 0,i32 2)to i8*)
@_SMLZN14TypedCalcUtils26toplevelInstWithInstTyListE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@J,i64 0,i32 2)to i8*)
@N=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i8*)*@_SMLFN14TypedCalcUtils9expansiveE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN14TypedCalcUtils9expansiveE_296 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN14TypedCalcUtils9expansiveE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@N,i64 0,i32 2)to i8*)
@O=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i8*)*@_SMLFN14TypedCalcUtils6isAtomE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN14TypedCalcUtils6isAtomE_297 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN14TypedCalcUtils6isAtomE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@O,i64 0,i32 2)to i8*)
@_SML_ftab24fddff04936f2e2_TypedCalcUtils=external global i8
@P=private unnamed_addr global i8 0
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_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_write(i8*inreg,i8**inreg,i8*inreg)local_unnamed_addr#0
declare i8*@_SMLFN11RecordLabel3Map4findE(i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN11RecordLabel3Map5emptyE(i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN11RecordLabel3Map6foldliE(i32 inreg,i32 inreg,i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN11RecordLabel3Map6insertE(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*@_SMLFN11TypesBasics14tyConFromConTyE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i32@_SMLFN11TypesBasics6monoTyE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN14BoundTypeVarID3Map9listItemsE(i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN4List1_VE(i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN4List3appE(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*@_SMLFN4List3revE(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 i32@_SMLFN5TypID2eqE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i32@_SMLFN5VarID8generateE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN6String1_ZE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN6Symbol15longsymbolToLocE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN8ListPair5appEqE(i32 inreg,i32 inreg,i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i32@_SMLFN9DummyTyID8generateE(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_main1ef93e13728790b1_String()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main67a5b28ff146c353_Loc()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_mainf05fe994141c896f_DummyTyID()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main2aaf2b808f82ee2e_TypesBasics()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_maincf60e58028aea790_BuiltinTypes()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_load1ef93e13728790b1_String(i8*)local_unnamed_addr
declare void@_SML_load67a5b28ff146c353_Loc(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_loadf05fe994141c896f_DummyTyID(i8*)local_unnamed_addr
declare void@_SML_load2aaf2b808f82ee2e_TypesBasics(i8*)local_unnamed_addr
declare void@_SML_loadcf60e58028aea790_BuiltinTypes(i8*)local_unnamed_addr
define private void@_SML_tabb24fddff04936f2e2_TypedCalcUtils()#3{
unreachable
}
define void@_SML_load24fddff04936f2e2_TypedCalcUtils(i8*%a)local_unnamed_addr#0{
%b=load i8,i8*@P,align 1
%c=icmp eq i8%b,0
br i1%c,label%e,label%d
d:
ret void
e:
store i8 1,i8*@P,align 1
tail call void@_SML_load03d87556ec7f64b2_List(i8*%a)#0
tail call void@_SML_load7aa263535439ee1c_ListPair(i8*%a)#0
tail call void@_SML_load1ef93e13728790b1_String(i8*%a)#0
tail call void@_SML_load67a5b28ff146c353_Loc(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_loadf05fe994141c896f_DummyTyID(i8*%a)#0
tail call void@_SML_load2aaf2b808f82ee2e_TypesBasics(i8*%a)#0
tail call void@_SML_loadcf60e58028aea790_BuiltinTypes(i8*%a)#0
tail call void@sml_gcroot(i8*%a,void()*@_SML_tabb24fddff04936f2e2_TypedCalcUtils,i8*@_SML_ftab24fddff04936f2e2_TypedCalcUtils,i8*null)#0
ret void
}
define void@_SML_main24fddff04936f2e2_TypedCalcUtils()local_unnamed_addr#2 gc"smlsharp"{
%a=load i8,i8*@P,align 1
%b=and i8%a,2
%c=icmp eq i8%b,0
br i1%c,label%e,label%d
d:
ret void
e:
store i8 3,i8*@P,align 1
tail call void@_SML_main03d87556ec7f64b2_List()#2
tail call void@_SML_main7aa263535439ee1c_ListPair()#2
tail call void@_SML_main1ef93e13728790b1_String()#2
tail call void@_SML_main67a5b28ff146c353_Loc()#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_mainf05fe994141c896f_DummyTyID()#2
tail call void@_SML_main2aaf2b808f82ee2e_TypesBasics()#2
tail call void@_SML_maincf60e58028aea790_BuiltinTypes()#2
br label%d
}
define fastcc i8*@_SMLFN14TypedCalcUtils11getLocOfExpE(i8*inreg%a)#2 gc"smlsharp"{
j:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%b,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%h,label%f
f:
call void@sml_check(i32 inreg%d)
%g=load i8*,i8**%b,align 8
br label%h
h:
%i=phi i8*[%g,%f],[%a,%j]
%k=icmp eq i8*%i,null
br i1%k,label%dv,label%l
l:
%m=bitcast i8*%i to i32*
%n=load i32,i32*%m,align 4
switch i32%n,label%o[
i32 0,label%ek
i32 2,label%ed
i32 37,label%d6
i32 3,label%dZ
i32 5,label%dS
i32 6,label%dL
i32 8,label%dE
i32 9,label%dx
i32 14,label%dv
i32 16,label%do
i32 17,label%dh
i32 15,label%da
i32 18,label%c3
i32 19,label%cW
i32 22,label%cR
i32 21,label%cK
i32 1,label%cD
i32 20,label%cw
i32 23,label%cp
i32 4,label%ci
i32 39,label%cb
i32 25,label%b4
i32 26,label%bX
i32 27,label%bQ
i32 28,label%bJ
i32 29,label%bC
i32 30,label%bv
i32 31,label%bo
i32 32,label%bd
i32 33,label%a6
i32 35,label%aZ
i32 36,label%aS
i32 38,label%aL
i32 40,label%aD
i32 24,label%aw
i32 7,label%ap
i32 10,label%ai
i32 11,label%ab
i32 12,label%U
i32 13,label%N
i32 34,label%G
]
o:
call void@sml_matchcomp_bug()
%p=load i8*,i8**@_SMLZ5Match,align 8
store i8*%p,i8**%b,align 8
%q=call i8*@sml_alloc(i32 inreg 20)#0
%r=getelementptr inbounds i8,i8*%q,i64 -4
%s=bitcast i8*%r to i32*
store i32 1342177296,i32*%s,align 4
store i8*%q,i8**%c,align 8
%t=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%u=bitcast i8*%q to i8**
store i8*%t,i8**%u,align 8
%v=getelementptr inbounds i8,i8*%q,i64 8
%w=bitcast i8*%v to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[69x i8]}>,<{[4x i8],i32,[69x i8]}>*@a,i64 0,i32 2,i64 0),i8**%w,align 8
%x=getelementptr inbounds i8,i8*%q,i64 16
%y=bitcast i8*%x to i32*
store i32 3,i32*%y,align 4
%z=call i8*@sml_alloc(i32 inreg 60)#0
%A=getelementptr inbounds i8,i8*%z,i64 -4
%B=bitcast i8*%A to i32*
store i32 1342177336,i32*%B,align 4
%C=getelementptr inbounds i8,i8*%z,i64 56
%D=bitcast i8*%C to i32*
store i32 1,i32*%D,align 4
%E=load i8*,i8**%c,align 8
%F=bitcast i8*%z to i8**
store i8*%E,i8**%F,align 8
call void@sml_raise(i8*inreg%z)#1
unreachable
G:
%H=getelementptr inbounds i8,i8*%i,i64 8
%I=bitcast i8*%H to i8**
%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
ret i8*%M
N:
%O=getelementptr inbounds i8,i8*%i,i64 8
%P=bitcast i8*%O to i8**
%Q=load i8*,i8**%P,align 8
%R=getelementptr inbounds i8,i8*%Q,i64 24
%S=bitcast i8*%R to i8**
%T=load i8*,i8**%S,align 8
ret i8*%T
U:
%V=getelementptr inbounds i8,i8*%i,i64 8
%W=bitcast i8*%V to i8**
%X=load i8*,i8**%W,align 8
%Y=getelementptr inbounds i8,i8*%X,i64 8
%Z=bitcast i8*%Y to i8**
%aa=load i8*,i8**%Z,align 8
ret i8*%aa
ab:
%ac=getelementptr inbounds i8,i8*%i,i64 8
%ad=bitcast i8*%ac to i8**
%ae=load i8*,i8**%ad,align 8
%af=getelementptr inbounds i8,i8*%ae,i64 8
%ag=bitcast i8*%af to i8**
%ah=load i8*,i8**%ag,align 8
ret i8*%ah
ai:
%aj=getelementptr inbounds i8,i8*%i,i64 8
%ak=bitcast i8*%aj to i8**
%al=load i8*,i8**%ak,align 8
%am=getelementptr inbounds i8,i8*%al,i64 24
%an=bitcast i8*%am to i8**
%ao=load i8*,i8**%an,align 8
ret i8*%ao
ap:
%aq=getelementptr inbounds i8,i8*%i,i64 8
%ar=bitcast i8*%aq to i8**
%as=load i8*,i8**%ar,align 8
%at=getelementptr inbounds i8,i8*%as,i64 24
%au=bitcast i8*%at to i8**
%av=load i8*,i8**%au,align 8
ret i8*%av
aw:
%ax=getelementptr inbounds i8,i8*%i,i64 8
%ay=bitcast i8*%ax to i8**
%az=load i8*,i8**%ay,align 8
%aA=getelementptr inbounds i8,i8*%az,i64 24
%aB=bitcast i8*%aA to i8**
%aC=load i8*,i8**%aB,align 8
ret i8*%aC
aD:
%aE=getelementptr inbounds i8,i8*%i,i64 8
%aF=bitcast i8*%aE to i8**
%aG=load i8*,i8**%aF,align 8
%aH=getelementptr inbounds i8,i8*%aG,i64 8
%aI=bitcast i8*%aH to i8**
%aJ=load i8*,i8**%aI,align 8
%aK=tail call fastcc i8*@_SMLFN6Symbol15longsymbolToLocE(i8*inreg%aJ)
ret i8*%aK
aL:
%aM=getelementptr inbounds i8,i8*%i,i64 8
%aN=bitcast i8*%aM to i8**
%aO=load i8*,i8**%aN,align 8
%aP=getelementptr inbounds i8,i8*%aO,i64 24
%aQ=bitcast i8*%aP to i8**
%aR=load i8*,i8**%aQ,align 8
ret i8*%aR
aS:
%aT=getelementptr inbounds i8,i8*%i,i64 8
%aU=bitcast i8*%aT to i8**
%aV=load i8*,i8**%aU,align 8
%aW=getelementptr inbounds i8,i8*%aV,i64 8
%aX=bitcast i8*%aW to i8**
%aY=load i8*,i8**%aX,align 8
ret i8*%aY
aZ:
%a0=getelementptr inbounds i8,i8*%i,i64 8
%a1=bitcast i8*%a0 to i8**
%a2=load i8*,i8**%a1,align 8
%a3=getelementptr inbounds i8,i8*%a2,i64 24
%a4=bitcast i8*%a3 to i8**
%a5=load i8*,i8**%a4,align 8
ret i8*%a5
a6:
%a7=getelementptr inbounds i8,i8*%i,i64 8
%a8=bitcast i8*%a7 to i8**
%a9=load i8*,i8**%a8,align 8
%ba=getelementptr inbounds i8,i8*%a9,i64 8
%bb=bitcast i8*%ba to i8**
%bc=load i8*,i8**%bb,align 8
ret i8*%bc
bd:
%be=getelementptr inbounds i8,i8*%i,i64 8
%bf=bitcast i8*%be to i8**
%bg=load i8*,i8**%bf,align 8
%bh=getelementptr inbounds i8,i8*%bg,i64 8
%bi=bitcast i8*%bh to i8**
%bj=load i8*,i8**%bi,align 8
%bk=getelementptr inbounds i8,i8*%bj,i64 8
%bl=bitcast i8*%bk to i8**
%bm=load i8*,i8**%bl,align 8
%bn=tail call fastcc i8*@_SMLFN6Symbol15longsymbolToLocE(i8*inreg%bm)
ret i8*%bn
bo:
%bp=getelementptr inbounds i8,i8*%i,i64 8
%bq=bitcast i8*%bp to i8**
%br=load i8*,i8**%bq,align 8
%bs=getelementptr inbounds i8,i8*%br,i64 8
%bt=bitcast i8*%bs to i8**
%bu=load i8*,i8**%bt,align 8
ret i8*%bu
bv:
%bw=getelementptr inbounds i8,i8*%i,i64 8
%bx=bitcast i8*%bw to i8**
%by=load i8*,i8**%bx,align 8
%bz=getelementptr inbounds i8,i8*%by,i64 16
%bA=bitcast i8*%bz to i8**
%bB=load i8*,i8**%bA,align 8
ret i8*%bB
bC:
%bD=getelementptr inbounds i8,i8*%i,i64 8
%bE=bitcast i8*%bD to i8**
%bF=load i8*,i8**%bE,align 8
%bG=getelementptr inbounds i8,i8*%bF,i64 32
%bH=bitcast i8*%bG to i8**
%bI=load i8*,i8**%bH,align 8
ret i8*%bI
bJ:
%bK=getelementptr inbounds i8,i8*%i,i64 8
%bL=bitcast i8*%bK to i8**
%bM=load i8*,i8**%bL,align 8
%bN=getelementptr inbounds i8,i8*%bM,i64 16
%bO=bitcast i8*%bN to i8**
%bP=load i8*,i8**%bO,align 8
ret i8*%bP
bQ:
%bR=getelementptr inbounds i8,i8*%i,i64 8
%bS=bitcast i8*%bR to i8**
%bT=load i8*,i8**%bS,align 8
%bU=getelementptr inbounds i8,i8*%bT,i64 16
%bV=bitcast i8*%bU to i8**
%bW=load i8*,i8**%bV,align 8
ret i8*%bW
bX:
%bY=getelementptr inbounds i8,i8*%i,i64 8
%bZ=bitcast i8*%bY to i8**
%b0=load i8*,i8**%bZ,align 8
%b1=getelementptr inbounds i8,i8*%b0,i64 24
%b2=bitcast i8*%b1 to i8**
%b3=load i8*,i8**%b2,align 8
ret i8*%b3
b4:
%b5=getelementptr inbounds i8,i8*%i,i64 8
%b6=bitcast i8*%b5 to i8**
%b7=load i8*,i8**%b6,align 8
%b8=getelementptr inbounds i8,i8*%b7,i64 16
%b9=bitcast i8*%b8 to i8**
%ca=load i8*,i8**%b9,align 8
ret i8*%ca
cb:
%cc=getelementptr inbounds i8,i8*%i,i64 8
%cd=bitcast i8*%cc to i8**
%ce=load i8*,i8**%cd,align 8
%cf=getelementptr inbounds i8,i8*%ce,i64 16
%cg=bitcast i8*%cf to i8**
%ch=load i8*,i8**%cg,align 8
ret i8*%ch
ci:
%cj=getelementptr inbounds i8,i8*%i,i64 8
%ck=bitcast i8*%cj to i8**
%cl=load i8*,i8**%ck,align 8
%cm=getelementptr inbounds i8,i8*%cl,i64 24
%cn=bitcast i8*%cm to i8**
%co=load i8*,i8**%cn,align 8
ret i8*%co
cp:
%cq=getelementptr inbounds i8,i8*%i,i64 8
%cr=bitcast i8*%cq to i8**
%cs=load i8*,i8**%cr,align 8
%ct=getelementptr inbounds i8,i8*%cs,i64 24
%cu=bitcast i8*%ct to i8**
%cv=load i8*,i8**%cu,align 8
ret i8*%cv
cw:
%cx=getelementptr inbounds i8,i8*%i,i64 8
%cy=bitcast i8*%cx to i8**
%cz=load i8*,i8**%cy,align 8
%cA=getelementptr inbounds i8,i8*%cz,i64 24
%cB=bitcast i8*%cA to i8**
%cC=load i8*,i8**%cB,align 8
ret i8*%cC
cD:
%cE=getelementptr inbounds i8,i8*%i,i64 8
%cF=bitcast i8*%cE to i8**
%cG=load i8*,i8**%cF,align 8
%cH=getelementptr inbounds i8,i8*%cG,i64 24
%cI=bitcast i8*%cH to i8**
%cJ=load i8*,i8**%cI,align 8
ret i8*%cJ
cK:
%cL=getelementptr inbounds i8,i8*%i,i64 8
%cM=bitcast i8*%cL to i8**
%cN=load i8*,i8**%cM,align 8
%cO=getelementptr inbounds i8,i8*%cN,i64 24
%cP=bitcast i8*%cO to i8**
%cQ=load i8*,i8**%cP,align 8
ret i8*%cQ
cR:
%cS=getelementptr inbounds i8,i8*%i,i64 8
%cT=bitcast i8*%cS to i8***
%cU=load i8**,i8***%cT,align 8
%cV=load i8*,i8**%cU,align 8
ret i8*%cV
cW:
%cX=getelementptr inbounds i8,i8*%i,i64 8
%cY=bitcast i8*%cX to i8**
%cZ=load i8*,i8**%cY,align 8
%c0=getelementptr inbounds i8,i8*%cZ,i64 16
%c1=bitcast i8*%c0 to i8**
%c2=load i8*,i8**%c1,align 8
ret i8*%c2
c3:
%c4=getelementptr inbounds i8,i8*%i,i64 8
%c5=bitcast i8*%c4 to i8**
%c6=load i8*,i8**%c5,align 8
%c7=getelementptr inbounds i8,i8*%c6,i64 8
%c8=bitcast i8*%c7 to i8**
%c9=load i8*,i8**%c8,align 8
ret i8*%c9
da:
%db=getelementptr inbounds i8,i8*%i,i64 8
%dc=bitcast i8*%db to i8**
%dd=load i8*,i8**%dc,align 8
%de=getelementptr inbounds i8,i8*%dd,i64 8
%df=bitcast i8*%de to i8**
%dg=load i8*,i8**%df,align 8
ret i8*%dg
dh:
%di=getelementptr inbounds i8,i8*%i,i64 8
%dj=bitcast i8*%di to i8**
%dk=load i8*,i8**%dj,align 8
%dl=getelementptr inbounds i8,i8*%dk,i64 8
%dm=bitcast i8*%dl to i8**
%dn=load i8*,i8**%dm,align 8
ret i8*%dn
do:
%dp=getelementptr inbounds i8,i8*%i,i64 8
%dq=bitcast i8*%dp to i8**
%dr=load i8*,i8**%dq,align 8
%ds=getelementptr inbounds i8,i8*%dr,i64 16
%dt=bitcast i8*%ds to i8**
%du=load i8*,i8**%dt,align 8
ret i8*%du
dv:
%dw=load i8*,i8**@_SMLZN3Loc5nolocE,align 8
ret i8*%dw
dx:
%dy=getelementptr inbounds i8,i8*%i,i64 8
%dz=bitcast i8*%dy to i8**
%dA=load i8*,i8**%dz,align 8
%dB=getelementptr inbounds i8,i8*%dA,i64 32
%dC=bitcast i8*%dB to i8**
%dD=load i8*,i8**%dC,align 8
ret i8*%dD
dE:
%dF=getelementptr inbounds i8,i8*%i,i64 8
%dG=bitcast i8*%dF to i8**
%dH=load i8*,i8**%dG,align 8
%dI=getelementptr inbounds i8,i8*%dH,i64 40
%dJ=bitcast i8*%dI to i8**
%dK=load i8*,i8**%dJ,align 8
ret i8*%dK
dL:
%dM=getelementptr inbounds i8,i8*%i,i64 8
%dN=bitcast i8*%dM to i8**
%dO=load i8*,i8**%dN,align 8
%dP=getelementptr inbounds i8,i8*%dO,i64 24
%dQ=bitcast i8*%dP to i8**
%dR=load i8*,i8**%dQ,align 8
ret i8*%dR
dS:
%dT=getelementptr inbounds i8,i8*%i,i64 8
%dU=bitcast i8*%dT to i8**
%dV=load i8*,i8**%dU,align 8
%dW=getelementptr inbounds i8,i8*%dV,i64 8
%dX=bitcast i8*%dW to i8**
%dY=load i8*,i8**%dX,align 8
ret i8*%dY
dZ:
%d0=getelementptr inbounds i8,i8*%i,i64 8
%d1=bitcast i8*%d0 to i8**
%d2=load i8*,i8**%d1,align 8
%d3=getelementptr inbounds i8,i8*%d2,i64 16
%d4=bitcast i8*%d3 to i8**
%d5=load i8*,i8**%d4,align 8
ret i8*%d5
d6:
%d7=getelementptr inbounds i8,i8*%i,i64 8
%d8=bitcast i8*%d7 to i8**
%d9=load i8*,i8**%d8,align 8
%ea=getelementptr inbounds i8,i8*%d9,i64 24
%eb=bitcast i8*%ea to i8**
%ec=load i8*,i8**%eb,align 8
ret i8*%ec
ed:
%ee=getelementptr inbounds i8,i8*%i,i64 8
%ef=bitcast i8*%ee to i8**
%eg=load i8*,i8**%ef,align 8
%eh=getelementptr inbounds i8,i8*%eg,i64 24
%ei=bitcast i8*%eh to i8**
%ej=load i8*,i8**%ei,align 8
ret i8*%ej
ek:
%el=getelementptr inbounds i8,i8*%i,i64 8
%em=bitcast i8*%el to i8**
%en=load i8*,i8**%em,align 8
%eo=getelementptr inbounds i8,i8*%en,i64 24
%ep=bitcast i8*%eo to i8**
%eq=load i8*,i8**%ep,align 8
ret i8*%eq
}
define internal fastcc i32@_SMLLN14TypedCalcUtils9expansiveE_195(i8*inreg%a)#2 gc"smlsharp"{
i:
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%g,label%e
e:
call void@sml_check(i32 inreg%c)
%f=load i8*,i8**%b,align 8
br label%g
g:
%h=phi i8*[%f,%e],[%a,%i]
%j=getelementptr inbounds i8,i8*%h,i64 8
%k=bitcast i8*%j to i32*
%l=load i32,i32*%k,align 4
%m=icmp eq i32%l,0
br i1%m,label%o,label%n
n:
ret i32 1
o:
%p=bitcast i8*%h 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
%u=tail call fastcc i32@_SMLLN14TypedCalcUtils9expansiveE_188(i8*inreg%t)
ret i32%u
}
define internal fastcc i32@_SMLLN14TypedCalcUtils9expansiveE_197(i8*inreg%a)#2 gc"smlsharp"{
i:
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%g,label%e
e:
call void@sml_check(i32 inreg%c)
%f=load i8*,i8**%b,align 8
br label%g
g:
%h=phi i8*[%f,%e],[%a,%i]
%j=getelementptr inbounds i8,i8*%h,i64 16
%k=bitcast i8*%j to i32*
%l=load i32,i32*%k,align 4
%m=icmp eq i32%l,0
br i1%m,label%o,label%n
n:
ret i32 1
o:
%p=getelementptr inbounds i8,i8*%h,i64 8
%q=bitcast i8*%p to i8**
%r=load i8*,i8**%q,align 8
%s=tail call fastcc i32@_SMLLN14TypedCalcUtils9expansiveE_188(i8*inreg%r)
ret i32%s
}
define internal fastcc i32@_SMLLN14TypedCalcUtils9expansiveE_188(i8*inreg%a)unnamed_addr#2 gc"smlsharp"{
%b=alloca i8*,align 8
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%b,align 8
br label%d
d:
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%h,label%g
g:
call void@sml_check(i32 inreg%e)
br label%h
h:
%i=load i8*,i8**%b,align 8
%j=icmp eq i8*%i,null
br i1%j,label%ce,label%k
k:
%l=bitcast i8*%i to i32*
%m=load i32,i32*%l,align 4
switch i32%m,label%n[
i32 0,label%c1
i32 2,label%c0
i32 37,label%cZ
i32 3,label%cT
i32 5,label%F
i32 6,label%cl
i32 8,label%ck
i32 9,label%cj
i32 14,label%ce
i32 16,label%b8
i32 17,label%F
i32 15,label%F
i32 18,label%F
i32 19,label%bC
i32 22,label%F
i32 21,label%bB
i32 1,label%F
i32 20,label%F
i32 23,label%bA
i32 4,label%bz
i32 39,label%by
i32 25,label%bx
i32 26,label%bw
i32 27,label%aU
i32 28,label%aT
i32 29,label%aM
i32 30,label%aL
i32 31,label%aK
i32 32,label%F
i32 33,label%ad
i32 35,label%Y
i32 36,label%X
i32 38,label%S
i32 40,label%F
i32 24,label%R
i32 7,label%Q
i32 10,label%P
i32 11,label%F
i32 12,label%F
i32 13,label%H
i32 34,label%F
]
n:
call void@sml_matchcomp_bug()
%o=load i8*,i8**@_SMLZ5Match,align 8
store i8*%o,i8**%b,align 8
%p=call i8*@sml_alloc(i32 inreg 20)#0
%q=getelementptr inbounds i8,i8*%p,i64 -4
%r=bitcast i8*%q to i32*
store i32 1342177296,i32*%r,align 4
store i8*%p,i8**%c,align 8
%s=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%t=bitcast i8*%p to i8**
store i8*%s,i8**%t,align 8
%u=getelementptr inbounds i8,i8*%p,i64 8
%v=bitcast i8*%u to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[70x i8]}>,<{[4x i8],i32,[70x i8]}>*@e,i64 0,i32 2,i64 0),i8**%v,align 8
%w=getelementptr inbounds i8,i8*%p,i64 16
%x=bitcast i8*%w to i32*
store i32 3,i32*%x,align 4
%y=call i8*@sml_alloc(i32 inreg 60)#0
%z=getelementptr inbounds i8,i8*%y,i64 -4
%A=bitcast i8*%z to i32*
store i32 1342177336,i32*%A,align 4
%B=getelementptr inbounds i8,i8*%y,i64 56
%C=bitcast i8*%B to i32*
store i32 1,i32*%C,align 4
%D=load i8*,i8**%c,align 8
%E=bitcast i8*%y to i8**
store i8*%D,i8**%E,align 8
call void@sml_raise(i8*inreg%y)#1
unreachable
F:
%G=phi i32[1,%P],[1,%Q],[1,%R],[1,%X],[1,%aK],[1,%aL],[1,%aT],[1,%bw],[1,%bx],[1,%by],[1,%bz],[1,%bA],[1,%bB],[%cf,%ce],[1,%cj],[1,%ck],[1,%cZ],[1,%c0],[1,%c1],[0,%k],[0,%k],[0,%k],[0,%k],[0,%k],[0,%k],[0,%k],[0,%k],[0,%k],[0,%k],[0,%k],[0,%k],[%bK,%bC]
ret i32%G
H:
%I=getelementptr inbounds i8,i8*%i,i64 8
%J=bitcast i8*%I to i8**
%K=load i8*,i8**%J,align 8
%L=getelementptr inbounds i8,i8*%K,i64 16
%M=bitcast i8*%L to i8**
%N=load i8*,i8**%M,align 8
store i8*%N,i8**%b,align 8
br label%O
O:
br label%d
P:
br label%F
Q:
br label%F
R:
br label%F
S:
%T=getelementptr inbounds i8,i8*%i,i64 8
%U=bitcast i8*%T to i8***
%V=load i8**,i8***%U,align 8
%W=load i8*,i8**%V,align 8
store i8*%W,i8**%b,align 8
br label%O
X:
br label%F
Y:
%Z=getelementptr inbounds i8,i8*%i,i64 8
%aa=bitcast i8*%Z to i8***
%ab=load i8**,i8***%aa,align 8
%ac=load i8*,i8**%ab,align 8
store i8*%ac,i8**%b,align 8
br label%O
ad:
%ae=getelementptr inbounds i8,i8*%i,i64 8
%af=bitcast i8*%ae to i8**
%ag=load i8*,i8**%af,align 8
store i8*%ag,i8**%b,align 8
%ah=call fastcc i8*@_SMLFN11RecordLabel3Map6foldliE(i32 inreg 1,i32 inreg 8,i32 inreg 0,i32 inreg 4)
%ai=getelementptr inbounds i8,i8*%ah,i64 16
%aj=bitcast i8*%ai to i8*(i8*,i8*)**
%ak=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aj,align 8
%al=bitcast i8*%ah to i8**
%am=load i8*,i8**%al,align 8
%an=call fastcc i8*%ak(i8*inreg%am,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*))
%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**%c,align 8
%at=call i8*@sml_alloc(i32 inreg 4)#0
%au=bitcast i8*%at to i32*
%av=getelementptr inbounds i8,i8*%at,i64 -4
%aw=bitcast i8*%av to i32*
store i32 4,i32*%aw,align 4
store i32 0,i32*%au,align 4
%ax=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ay=call fastcc i8*%aq(i8*inreg%ax,i8*inreg%at)
%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=bitcast i8**%b to i8***
%aF=load i8**,i8***%aE,align 8
store i8*null,i8**%b,align 8
%aG=load i8*,i8**%aF,align 8
%aH=call fastcc i8*%aB(i8*inreg%aD,i8*inreg%aG)
%aI=bitcast i8*%aH to i32*
%aJ=load i32,i32*%aI,align 4
ret i32%aJ
aK:
br label%F
aL:
br label%F
aM:
%aN=getelementptr inbounds i8,i8*%i,i64 8
%aO=bitcast i8*%aN to i8**
%aP=load i8*,i8**%aO,align 8
%aQ=getelementptr inbounds i8,i8*%aP,i64 16
%aR=bitcast i8*%aQ to i8**
%aS=load i8*,i8**%aR,align 8
store i8*%aS,i8**%b,align 8
br label%O
aT:
br label%F
aU:
%aV=getelementptr inbounds i8,i8*%i,i64 8
%aW=bitcast i8*%aV to i8**
%aX=load i8*,i8**%aW,align 8
store i8*%aX,i8**%b,align 8
%aY=call fastcc i8*@_SMLFN4List5foldlE(i32 inreg 1,i32 inreg 8,i32 inreg 0,i32 inreg 4)
%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=call fastcc i8*%a1(i8*inreg%a3,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*))
%a5=getelementptr inbounds i8,i8*%a4,i64 16
%a6=bitcast i8*%a5 to i8*(i8*,i8*)**
%a7=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%a6,align 8
%a8=bitcast i8*%a4 to i8**
%a9=load i8*,i8**%a8,align 8
store i8*%a9,i8**%c,align 8
%ba=load i8*,i8**%b,align 8
%bb=getelementptr inbounds i8,i8*%ba,i64 8
%bc=bitcast i8*%bb to i8**
%bd=load i8*,i8**%bc,align 8
%be=call fastcc i32@_SMLLN14TypedCalcUtils9expansiveE_188(i8*inreg%bd)
%bf=call i8*@sml_alloc(i32 inreg 4)#0
%bg=bitcast i8*%bf to i32*
%bh=getelementptr inbounds i8,i8*%bf,i64 -4
%bi=bitcast i8*%bh to i32*
store i32 4,i32*%bi,align 4
store i32%be,i32*%bg,align 4
%bj=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bk=call fastcc i8*%a7(i8*inreg%bj,i8*inreg%bf)
%bl=getelementptr inbounds i8,i8*%bk,i64 16
%bm=bitcast i8*%bl to i8*(i8*,i8*)**
%bn=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bm,align 8
%bo=bitcast i8*%bk to i8**
%bp=load i8*,i8**%bo,align 8
%bq=bitcast i8**%b to i8***
%br=load i8**,i8***%bq,align 8
store i8*null,i8**%b,align 8
%bs=load i8*,i8**%br,align 8
%bt=call fastcc i8*%bn(i8*inreg%bp,i8*inreg%bs)
%bu=bitcast i8*%bt to i32*
%bv=load i32,i32*%bu,align 4
ret i32%bv
bw:
br label%F
bx:
br label%F
by:
br label%F
bz:
br label%F
bA:
br label%F
bB:
br label%F
bC:
%bD=getelementptr inbounds i8,i8*%i,i64 8
%bE=bitcast i8*%bD to i8**
%bF=load i8*,i8**%bE,align 8
%bG=getelementptr inbounds i8,i8*%bF,i64 8
%bH=bitcast i8*%bG to i8**
%bI=load i8*,i8**%bH,align 8
%bJ=bitcast i8*%bI to i32*
%bK=load i32,i32*%bJ,align 4
switch i32%bK,label%bL[
i32 1,label%b3
i32 0,label%F
]
bL:
call void@sml_matchcomp_bug()
%bM=load i8*,i8**@_SMLZ5Match,align 8
store i8*%bM,i8**%b,align 8
%bN=call i8*@sml_alloc(i32 inreg 20)#0
%bO=getelementptr inbounds i8,i8*%bN,i64 -4
%bP=bitcast i8*%bO to i32*
store i32 1342177296,i32*%bP,align 4
store i8*%bN,i8**%c,align 8
%bQ=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%bR=bitcast i8*%bN to i8**
store i8*%bQ,i8**%bR,align 8
%bS=getelementptr inbounds i8,i8*%bN,i64 8
%bT=bitcast i8*%bS to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[70x i8]}>,<{[4x i8],i32,[70x i8]}>*@e,i64 0,i32 2,i64 0),i8**%bT,align 8
%bU=getelementptr inbounds i8,i8*%bN,i64 16
%bV=bitcast i8*%bU to i32*
store i32 3,i32*%bV,align 4
%bW=call i8*@sml_alloc(i32 inreg 60)#0
%bX=getelementptr inbounds i8,i8*%bW,i64 -4
%bY=bitcast i8*%bX to i32*
store i32 1342177336,i32*%bY,align 4
%bZ=getelementptr inbounds i8,i8*%bW,i64 56
%b0=bitcast i8*%bZ to i32*
store i32 1,i32*%b0,align 4
%b1=load i8*,i8**%c,align 8
%b2=bitcast i8*%bW to i8**
store i8*%b1,i8**%b2,align 8
call void@sml_raise(i8*inreg%bW)#1
unreachable
b3:
%b4=getelementptr inbounds i8,i8*%bI,i64 8
%b5=bitcast i8*%b4 to i8***
%b6=load i8**,i8***%b5,align 8
%b7=load i8*,i8**%b6,align 8
store i8*%b7,i8**%b,align 8
br label%O
b8:
%b9=getelementptr inbounds i8,i8*%i,i64 8
%ca=bitcast i8*%b9 to i8***
%cb=load i8**,i8***%ca,align 8
%cc=load i8*,i8**%cb,align 8
%cd=icmp eq i8*%cc,null
br i1%cd,label%ce,label%cg
ce:
%cf=phi i32[0,%b8],[1,%k],[0,%cl],[1,%cs],[1,%h]
br label%F
cg:
%ch=bitcast i8*%cc to i8**
%ci=load i8*,i8**%ch,align 8
store i8*%ci,i8**%b,align 8
br label%O
cj:
br label%F
ck:
br label%F
cl:
%cm=getelementptr inbounds i8,i8*%i,i64 8
%cn=bitcast i8*%cm to i8**
%co=load i8*,i8**%cn,align 8
%cp=bitcast i8*%co to i8**
%cq=load i8*,i8**%cp,align 8
%cr=icmp eq i8*%cq,null
br i1%cr,label%ce,label%cs
cs:
%ct=bitcast i8*%cq to i8**
%cu=load i8*,i8**%ct,align 8
store i8*%cu,i8**%b,align 8
%cv=getelementptr inbounds i8,i8*%co,i64 8
%cw=bitcast i8*%cv to i8**
%cx=load i8*,i8**%cw,align 8
%cy=getelementptr inbounds i8,i8*%cx,i64 16
%cz=bitcast i8*%cy to i8**
%cA=load i8*,i8**%cz,align 8
%cB=call fastcc i8*@_SMLFN11TypesBasics14tyConFromConTyE(i8*inreg%cA)
%cC=getelementptr inbounds i8,i8*%cB,i64 40
%cD=bitcast i8*%cC to i32*
%cE=load i32,i32*%cD,align 4
%cF=load i8*,i8**@_SMLZN12BuiltinTypes8refTyConE,align 8
%cG=getelementptr inbounds i8,i8*%cF,i64 40
%cH=bitcast i8*%cG to i32*
%cI=load i32,i32*%cH,align 4
%cJ=call i8*@sml_alloc(i32 inreg 12)#0
%cK=bitcast i8*%cJ to i32*
%cL=getelementptr inbounds i8,i8*%cJ,i64 -4
%cM=bitcast i8*%cL to i32*
store i32 1342177288,i32*%cM,align 4
store i32%cE,i32*%cK,align 4
%cN=getelementptr inbounds i8,i8*%cJ,i64 4
%cO=bitcast i8*%cN to i32*
store i32%cI,i32*%cO,align 4
%cP=getelementptr inbounds i8,i8*%cJ,i64 8
%cQ=bitcast i8*%cP to i32*
store i32 0,i32*%cQ,align 4
%cR=call fastcc i32@_SMLFN5TypID2eqE(i8*inreg%cJ)
%cS=icmp eq i32%cR,0
br i1%cS,label%O,label%ce
cT:
%cU=getelementptr inbounds i8,i8*%i,i64 8
%cV=bitcast i8*%cU to i8****
%cW=load i8***,i8****%cV,align 8
%cX=load i8**,i8***%cW,align 8
%cY=load i8*,i8**%cX,align 8
store i8*%cY,i8**%b,align 8
br label%O
cZ:
br label%F
c0:
br label%F
c1:
br label%F
}
define fastcc void@_SMLFN14TypedCalcUtils13instantiateTvE(i8*inreg%a)#2 gc"smlsharp"{
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%b,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%g,label%i
g:
%h=bitcast i8*%a to i8**
br label%l
i:
call void@sml_check(i32 inreg%e)
%j=bitcast i8**%b to i8***
%k=load i8**,i8***%j,align 8
br label%l
l:
%m=phi i8**[%k,%i],[%h,%g]
%n=load i8*,i8**%m,align 8
%o=bitcast i8*%n to i32*
%p=load i32,i32*%o,align 4
switch i32%p,label%q[
i32 1,label%J
i32 0,label%I
]
q:
call void@sml_matchcomp_bug()
%r=load i8*,i8**@_SMLZ5Match,align 8
store i8*%r,i8**%b,align 8
%s=call i8*@sml_alloc(i32 inreg 20)#0
%t=getelementptr inbounds i8,i8*%s,i64 -4
%u=bitcast i8*%t to i32*
store i32 1342177296,i32*%u,align 4
store i8*%s,i8**%c,align 8
%v=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%w=bitcast i8*%s to i8**
store i8*%v,i8**%w,align 8
%x=getelementptr inbounds i8,i8*%s,i64 8
%y=bitcast i8*%x to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[71x i8]}>,<{[4x i8],i32,[71x i8]}>*@k,i64 0,i32 2,i64 0),i8**%y,align 8
%z=getelementptr inbounds i8,i8*%s,i64 16
%A=bitcast i8*%z to i32*
store i32 3,i32*%A,align 4
%B=call i8*@sml_alloc(i32 inreg 60)#0
%C=getelementptr inbounds i8,i8*%B,i64 -4
%D=bitcast i8*%C to i32*
store i32 1342177336,i32*%D,align 4
%E=getelementptr inbounds i8,i8*%B,i64 56
%F=bitcast i8*%E to i32*
store i32 1,i32*%F,align 4
%G=load i8*,i8**%c,align 8
%H=bitcast i8*%B to i8**
store i8*%G,i8**%H,align 8
call void@sml_raise(i8*inreg%B)#1
unreachable
I:
ret void
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=getelementptr inbounds i8,i8*%M,i64 8
%O=bitcast i8*%N to i8**
%P=load i8*,i8**%O,align 8
%Q=getelementptr inbounds i8,i8*%P,i64 16
%R=bitcast i8*%Q to i8**
%S=load i8*,i8**%R,align 8
%T=icmp eq i8*%S,null
br i1%T,label%a2,label%U
U:
%V=bitcast i8*%S to i32*
%W=load i32,i32*%V,align 4
switch i32%W,label%X[
i32 0,label%cf
i32 1,label%bB
i32 3,label%a2
i32 2,label%ap
]
X:
store i8*null,i8**%c,align 8
call void@sml_matchcomp_bug()
%Y=load i8*,i8**@_SMLZ5Match,align 8
store i8*%Y,i8**%b,align 8
%Z=call i8*@sml_alloc(i32 inreg 20)#0
%aa=getelementptr inbounds i8,i8*%Z,i64 -4
%ab=bitcast i8*%aa to i32*
store i32 1342177296,i32*%ab,align 4
store i8*%Z,i8**%c,align 8
%ac=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%ad=bitcast i8*%Z to i8**
store i8*%ac,i8**%ad,align 8
%ae=getelementptr inbounds i8,i8*%Z,i64 8
%af=bitcast i8*%ae to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[71x i8]}>,<{[4x i8],i32,[71x i8]}>*@j,i64 0,i32 2,i64 0),i8**%af,align 8
%ag=getelementptr inbounds i8,i8*%Z,i64 16
%ah=bitcast i8*%ag to i32*
store i32 3,i32*%ah,align 4
%ai=call i8*@sml_alloc(i32 inreg 60)#0
%aj=getelementptr inbounds i8,i8*%ai,i64 -4
%ak=bitcast i8*%aj to i32*
store i32 1342177336,i32*%ak,align 4
%al=getelementptr inbounds i8,i8*%ai,i64 56
%am=bitcast i8*%al to i32*
store i32 1,i32*%am,align 4
%an=load i8*,i8**%c,align 8
%ao=bitcast i8*%ai to i8**
store i8*%an,i8**%ao,align 8
call void@sml_raise(i8*inreg%ai)#1
unreachable
ap:
%aq=call fastcc i32@_SMLFN9DummyTyID8generateE(i32 inreg 0)
%ar=load i8*,i8**%c,align 8
%as=getelementptr inbounds i8,i8*%ar,i64 8
%at=bitcast i8*%as to i8**
%au=load i8*,i8**%at,align 8
store i8*%au,i8**%c,align 8
%av=call i8*@sml_alloc(i32 inreg 20)#0
%aw=getelementptr inbounds i8,i8*%av,i64 -4
%ax=bitcast i8*%aw to i32*
store i32 1342177296,i32*%ax,align 4
store i8*%av,i8**%d,align 8
%ay=getelementptr inbounds i8,i8*%av,i64 4
%az=bitcast i8*%ay to i32*
store i32 0,i32*%az,align 1
%aA=bitcast i8*%av to i32*
store i32%aq,i32*%aA,align 4
%aB=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aC=getelementptr inbounds i8,i8*%av,i64 8
%aD=bitcast i8*%aC to i8**
store i8*%aB,i8**%aD,align 8
%aE=getelementptr inbounds i8,i8*%av,i64 16
%aF=bitcast i8*%aE to i32*
store i32 2,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
store i8*%aG,i8**%c,align 8
%aJ=getelementptr inbounds i8,i8*%aG,i64 4
%aK=bitcast i8*%aJ to i32*
store i32 0,i32*%aK,align 1
%aL=bitcast i8*%aG to i32*
store i32 3,i32*%aL,align 4
%aM=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aN=getelementptr inbounds i8,i8*%aG,i64 8
%aO=bitcast i8*%aN to i8**
store i8*%aM,i8**%aO,align 8
%aP=getelementptr inbounds i8,i8*%aG,i64 16
%aQ=bitcast i8*%aP to i32*
store i32 2,i32*%aQ,align 4
%aR=call i8*@sml_alloc(i32 inreg 20)#0
%aS=getelementptr inbounds i8,i8*%aR,i64 -4
%aT=bitcast i8*%aS to i32*
store i32 1342177296,i32*%aT,align 4
%aU=bitcast i8*%aR to i64*
store i64 0,i64*%aU,align 4
%aV=load i8*,i8**%c,align 8
%aW=getelementptr inbounds i8,i8*%aR,i64 8
%aX=bitcast i8*%aW to i8**
store i8*%aV,i8**%aX,align 8
%aY=getelementptr inbounds i8,i8*%aR,i64 16
%aZ=bitcast i8*%aY to i32*
store i32 2,i32*%aZ,align 4
%a0=load i8*,i8**%b,align 8
%a1=bitcast i8*%a0 to i8**
call void@sml_write(i8*inreg%a0,i8**inreg%a1,i8*inreg%aR)#0
ret void
a2:
store i8*%P,i8**%c,align 8
%a3=call fastcc i32@_SMLFN9DummyTyID8generateE(i32 inreg 0)
%a4=call i8*@sml_alloc(i32 inreg 20)#0
%a5=getelementptr inbounds i8,i8*%a4,i64 -4
%a6=bitcast i8*%a5 to i32*
store i32 1342177296,i32*%a6,align 4
store i8*%a4,i8**%d,align 8
%a7=getelementptr inbounds i8,i8*%a4,i64 4
%a8=bitcast i8*%a7 to i32*
store i32 0,i32*%a8,align 1
%a9=bitcast i8*%a4 to i32*
store i32%a3,i32*%a9,align 4
%ba=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bb=getelementptr inbounds i8,i8*%a4,i64 8
%bc=bitcast i8*%bb to i8**
store i8*%ba,i8**%bc,align 8
%bd=getelementptr inbounds i8,i8*%a4,i64 16
%be=bitcast i8*%bd to i32*
store i32 2,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**%c,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 3,i32*%bk,align 4
%bl=load i8*,i8**%d,align 8
store i8*null,i8**%d,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=getelementptr inbounds i8,i8*%bq,i64 -4
%bs=bitcast i8*%br to i32*
store i32 1342177296,i32*%bs,align 4
%bt=bitcast i8*%bq to i64*
store i64 0,i64*%bt,align 4
%bu=load i8*,i8**%c,align 8
%bv=getelementptr inbounds i8,i8*%bq,i64 8
%bw=bitcast i8*%bv to i8**
store i8*%bu,i8**%bw,align 8
%bx=getelementptr inbounds i8,i8*%bq,i64 16
%by=bitcast i8*%bx to i32*
store i32 2,i32*%by,align 4
%bz=load i8*,i8**%b,align 8
%bA=bitcast i8*%bz to i8**
call void@sml_write(i8*inreg%bz,i8**inreg%bA,i8*inreg%bq)#0
ret void
bB:
%bC=getelementptr inbounds i8,i8*%S,i64 8
%bD=bitcast i8*%bC to i8***
%bE=load i8**,i8***%bD,align 8
%bF=load i8*,i8**%bE,align 8
%bG=icmp eq i8*%bF,null
br i1%bG,label%bH,label%b1
bH:
%bI=load i8*,i8**@_SMLZN3Bug3BugE,align 8
store i8*%bI,i8**%b,align 8
%bJ=call i8*@sml_alloc(i32 inreg 28)#0
%bK=getelementptr inbounds i8,i8*%bJ,i64 -4
%bL=bitcast i8*%bK to i32*
store i32 1342177304,i32*%bL,align 4
store i8*%bJ,i8**%c,align 8
%bM=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%bN=bitcast i8*%bJ to i8**
store i8*%bM,i8**%bN,align 8
%bO=getelementptr inbounds i8,i8*%bJ,i64 8
%bP=bitcast i8*%bO to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[72x i8]}>,<{[4x i8],i32,[72x i8]}>*@h,i64 0,i32 2,i64 0),i8**%bP,align 8
%bQ=getelementptr inbounds i8,i8*%bJ,i64 16
%bR=bitcast i8*%bQ to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[24x i8]}>,<{[4x i8],i32,[24x i8]}>*@i,i64 0,i32 2,i64 0),i8**%bR,align 8
%bS=getelementptr inbounds i8,i8*%bJ,i64 24
%bT=bitcast i8*%bS to i32*
store i32 7,i32*%bT,align 4
%bU=call i8*@sml_alloc(i32 inreg 60)#0
%bV=getelementptr inbounds i8,i8*%bU,i64 -4
%bW=bitcast i8*%bV to i32*
store i32 1342177336,i32*%bW,align 4
%bX=getelementptr inbounds i8,i8*%bU,i64 56
%bY=bitcast i8*%bX to i32*
store i32 1,i32*%bY,align 4
%bZ=load i8*,i8**%c,align 8
%b0=bitcast i8*%bU to i8**
store i8*%bZ,i8**%b0,align 8
call void@sml_raise(i8*inreg%bU)#1
unreachable
b1:
%b2=bitcast i8*%bF to i8**
%b3=load i8*,i8**%b2,align 8
store i8*%b3,i8**%c,align 8
%b4=call i8*@sml_alloc(i32 inreg 20)#0
%b5=getelementptr inbounds i8,i8*%b4,i64 -4
%b6=bitcast i8*%b5 to i32*
store i32 1342177296,i32*%b6,align 4
%b7=bitcast i8*%b4 to i64*
store i64 0,i64*%b7,align 4
%b8=load i8*,i8**%c,align 8
%b9=getelementptr inbounds i8,i8*%b4,i64 8
%ca=bitcast i8*%b9 to i8**
store i8*%b8,i8**%ca,align 8
%cb=getelementptr inbounds i8,i8*%b4,i64 16
%cc=bitcast i8*%cb to i32*
store i32 2,i32*%cc,align 4
%cd=load i8*,i8**%b,align 8
%ce=bitcast i8*%cd to i8**
call void@sml_write(i8*inreg%cd,i8**inreg%ce,i8*inreg%b4)#0
ret void
cf:
%cg=getelementptr inbounds i8,i8*%S,i64 8
%ch=bitcast i8*%cg to i8**
%ci=load i8*,i8**%ch,align 8
%cj=icmp eq i8*%ci,null
br i1%cj,label%ck,label%cE
ck:
%cl=load i8*,i8**@_SMLZN3Bug3BugE,align 8
store i8*%cl,i8**%b,align 8
%cm=call i8*@sml_alloc(i32 inreg 28)#0
%cn=getelementptr inbounds i8,i8*%cm,i64 -4
%co=bitcast i8*%cn to i32*
store i32 1342177304,i32*%co,align 4
store i8*%cm,i8**%c,align 8
%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 i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[72x i8]}>,<{[4x i8],i32,[72x i8]}>*@f,i64 0,i32 2,i64 0),i8**%cs,align 8
%ct=getelementptr inbounds i8,i8*%cm,i64 16
%cu=bitcast i8*%ct to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[25x i8]}>,<{[4x i8],i32,[25x i8]}>*@g,i64 0,i32 2,i64 0),i8**%cu,align 8
%cv=getelementptr inbounds i8,i8*%cm,i64 24
%cw=bitcast i8*%cv to i32*
store i32 7,i32*%cw,align 4
%cx=call i8*@sml_alloc(i32 inreg 60)#0
%cy=getelementptr inbounds i8,i8*%cx,i64 -4
%cz=bitcast i8*%cy to i32*
store i32 1342177336,i32*%cz,align 4
%cA=getelementptr inbounds i8,i8*%cx,i64 56
%cB=bitcast i8*%cA to i32*
store i32 1,i32*%cB,align 4
%cC=load i8*,i8**%c,align 8
%cD=bitcast i8*%cx to i8**
store i8*%cC,i8**%cD,align 8
call void@sml_raise(i8*inreg%cx)#1
unreachable
cE:
%cF=bitcast i8*%ci to i8**
%cG=load i8*,i8**%cF,align 8
store i8*%cG,i8**%c,align 8
%cH=call i8*@sml_alloc(i32 inreg 20)#0
%cI=getelementptr inbounds i8,i8*%cH,i64 -4
%cJ=bitcast i8*%cI to i32*
store i32 1342177296,i32*%cJ,align 4
%cK=bitcast i8*%cH to i64*
store i64 0,i64*%cK,align 4
%cL=load i8*,i8**%c,align 8
%cM=getelementptr inbounds i8,i8*%cH,i64 8
%cN=bitcast i8*%cM to i8**
store i8*%cL,i8**%cN,align 8
%cO=getelementptr inbounds i8,i8*%cH,i64 16
%cP=bitcast i8*%cO to i32*
store i32 2,i32*%cP,align 4
%cQ=load i8*,i8**%b,align 8
%cR=bitcast i8*%cQ to i8**
call void@sml_write(i8*inreg%cQ,i8**inreg%cR,i8*inreg%cH)#0
ret void
}
define internal fastcc i8*@_SMLLN14TypedCalcUtils9freshInstE_225(i8*inreg%a)#4 gc"smlsharp"{
ret i8*%a
}
define internal fastcc i8*@_SMLLN14TypedCalcUtils9freshInstE_227(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*%a,i8**%g,align 8
store i8*%b,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
%k=bitcast i8*%j to i32*
%l=load i32,i32*%k,align 4
%m=getelementptr inbounds i8,i8*%j,i64 4
%n=bitcast i8*%m to i32*
%o=load i32,i32*%n,align 4
%p=getelementptr inbounds i8,i8*%j,i64 8
%q=bitcast i8*%p to i8**
%r=load i8*,i8**%q,align 8
store i8*%r,i8**%d,align 8
%s=getelementptr inbounds i8,i8*%j,i64 16
%t=bitcast i8*%s to i8**
%u=load i8*,i8**%t,align 8
store i8*%u,i8**%e,align 8
%v=call i8*@sml_alloc(i32 inreg 28)#0
%w=bitcast i8*%v to i32*
%x=getelementptr inbounds i8,i8*%v,i64 -4
%y=bitcast i8*%x to i32*
store i32 1342177304,i32*%y,align 4
store i8*%v,i8**%f,align 8
store i32%l,i32*%w,align 4
%z=getelementptr inbounds i8,i8*%v,i64 4
%A=bitcast i8*%z to i32*
store i32%o,i32*%A,align 4
%B=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%C=getelementptr inbounds i8,i8*%v,i64 8
%D=bitcast i8*%C to i8**
store i8*%B,i8**%D,align 8
%E=load i8*,i8**%e,align 8
%F=getelementptr inbounds i8,i8*%v,i64 16
%G=bitcast i8*%F to i8**
store i8*%E,i8**%G,align 8
%H=getelementptr inbounds i8,i8*%v,i64 24
%I=bitcast i8*%H to i32*
store i32 6,i32*%I,align 4
%J=load i8*,i8**%g,align 8
%K=getelementptr inbounds i8,i8*%J,i64 16
%L=bitcast i8*%K to i8**
%M=load i8*,i8**%L,align 8
store i8*%M,i8**%e,align 8
%N=call i8*@sml_alloc(i32 inreg 20)#0
%O=getelementptr inbounds i8,i8*%N,i64 -4
%P=bitcast i8*%O to i32*
store i32 1342177296,i32*%P,align 4
store i8*%N,i8**%d,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=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%T=getelementptr inbounds i8,i8*%N,i64 8
%U=bitcast i8*%T to i8**
store i8*%S,i8**%U,align 8
%V=getelementptr inbounds i8,i8*%N,i64 16
%W=bitcast i8*%V to i32*
store i32 3,i32*%W,align 4
%X=call i8*@sml_alloc(i32 inreg 20)#0
%Y=getelementptr inbounds i8,i8*%X,i64 -4
%Z=bitcast i8*%Y to i32*
store i32 1342177296,i32*%Z,align 4
store i8*%X,i8**%f,align 8
%aa=load i8*,i8**%d,align 8
%ab=bitcast i8*%X to i8**
store i8*%aa,i8**%ab,align 8
%ac=getelementptr inbounds i8,i8*%X,i64 8
%ad=bitcast i8*%ac to i8**
store i8*null,i8**%ad,align 8
%ae=getelementptr inbounds i8,i8*%X,i64 16
%af=bitcast i8*%ae to i32*
store i32 3,i32*%af,align 4
%ag=bitcast i8**%g to i8***
%ah=load i8**,i8***%ag,align 8
store i8*null,i8**%g,align 8
%ai=load i8*,i8**%ah,align 8
store i8*%ai,i8**%d,align 8
%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**%e,align 8
%am=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%an=bitcast i8*%aj to i8**
store i8*%am,i8**%an,align 8
%ao=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ap=getelementptr inbounds i8,i8*%aj,i64 8
%aq=bitcast i8*%ap to i8**
store i8*%ao,i8**%aq,align 8
%ar=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%as=getelementptr inbounds i8,i8*%aj,i64 16
%at=bitcast i8*%as to i8**
store i8*%ar,i8**%at,align 8
%au=getelementptr inbounds i8,i8*%aj,i64 24
%av=bitcast i8*%au to i32*
store i32 7,i32*%av,align 4
%aw=call i8*@sml_alloc(i32 inreg 20)#0
%ax=bitcast i8*%aw to i32*
%ay=getelementptr inbounds i8,i8*%aw,i64 -4
%az=bitcast i8*%ay to i32*
store i32 1342177296,i32*%az,align 4
%aA=getelementptr inbounds i8,i8*%aw,i64 4
%aB=bitcast i8*%aA to i32*
store i32 0,i32*%aB,align 1
store i32 27,i32*%ax,align 4
%aC=load i8*,i8**%e,align 8
%aD=getelementptr inbounds i8,i8*%aw,i64 8
%aE=bitcast i8*%aD to i8**
store i8*%aC,i8**%aE,align 8
%aF=getelementptr inbounds i8,i8*%aw,i64 16
%aG=bitcast i8*%aF to i32*
store i32 2,i32*%aG,align 4
ret i8*%aw
}
define internal fastcc i8*@_SMLL10argVarList_228(i8*inreg%a)#2 gc"smlsharp"{
%b=alloca i8*,align 8
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%b,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%g,label%f
f:
call void@sml_check(i32 inreg%d)
br label%g
g:
%h=call fastcc i32@_SMLFN5VarID8generateE(i32 inreg 0)
%i=call i8*@sml_alloc(i32 inreg 28)#0
%j=bitcast i8*%i to i32*
%k=getelementptr inbounds i8,i8*%i,i64 -4
%l=bitcast i8*%k to i32*
store i32 1342177304,i32*%l,align 4
store i32%h,i32*%j,align 4
%m=getelementptr inbounds i8,i8*%i,i64 4
%n=bitcast i8*%m to i32*
store i32 0,i32*%n,align 4
%o=getelementptr inbounds i8,i8*%i,i64 8
%p=bitcast i8*%o to i8**
store i8*null,i8**%p,align 8
%q=load i8*,i8**%b,align 8
%r=getelementptr inbounds i8,i8*%i,i64 16
%s=bitcast i8*%r to i8**
store i8*%q,i8**%s,align 8
%t=getelementptr inbounds i8,i8*%i,i64 24
%u=bitcast i8*%t to i32*
store i32 6,i32*%u,align 4
store i8*null,i8**%b,align 8
store i8*%q,i8**%c,align 8
%v=call i8*@sml_alloc(i32 inreg 28)#0
%w=bitcast i8*%v to i32*
%x=getelementptr inbounds i8,i8*%v,i64 -4
%y=bitcast i8*%x to i32*
store i32 1342177304,i32*%y,align 4
store i32%h,i32*%w,align 4
%z=getelementptr inbounds i8,i8*%v,i64 4
%A=bitcast i8*%z to i32*
store i32 0,i32*%A,align 4
%B=load i8*,i8**%b,align 8
%C=getelementptr inbounds i8,i8*%v,i64 8
%D=bitcast i8*%C to i8**
store i8*%B,i8**%D,align 8
%E=load i8*,i8**%c,align 8
%F=getelementptr inbounds i8,i8*%v,i64 16
%G=bitcast i8*%F to i8**
store i8*%E,i8**%G,align 8
%H=getelementptr inbounds i8,i8*%v,i64 24
%I=bitcast i8*%H to i32*
store i32 6,i32*%I,align 4
ret i8*%v
}
define internal fastcc i8*@_SMLL10argExpList_230(i8*inreg%a)#4 gc"smlsharp"{
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=call i8*@sml_alloc(i32 inreg 20)#0
%d=bitcast i8*%c to i32*
%e=getelementptr inbounds i8,i8*%c,i64 -4
%f=bitcast i8*%e to i32*
store i32 1342177296,i32*%f,align 4
%g=getelementptr inbounds i8,i8*%c,i64 4
%h=bitcast i8*%g to i32*
store i32 0,i32*%h,align 1
store i32 40,i32*%d,align 4
%i=load i8*,i8**%b,align 8
%j=getelementptr inbounds i8,i8*%c,i64 8
%k=bitcast i8*%j to i8**
store i8*%i,i8**%k,align 8
%l=getelementptr inbounds i8,i8*%c,i64 16
%m=bitcast i8*%l to i32*
store i32 2,i32*%m,align 4
ret i8*%c
}
define internal fastcc i8*@_SMLLN14TypedCalcUtils9freshInstE_236(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
v:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
%h=alloca i8*,align 8
%i=alloca i8*,align 8
%j=alloca i8*,align 8
%k=alloca i8*,align 8
%l=alloca i8*,align 8
%m=alloca i8*,align 8
%n=alloca i8*,align 8
%o=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
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
call void@llvm.gcroot(i8**%l,i8*null)#0
call void@llvm.gcroot(i8**%m,i8*null)#0
call void@llvm.gcroot(i8**%n,i8*null)#0
call void@llvm.gcroot(i8**%o,i8*null)#0
store i8*%a,i8**%d,align 8
store i8*%b,i8**%c,align 8
%p=load atomic i32,i32*@sml_check_flag unordered,align 4
%q=icmp eq i32%p,0
br i1%q,label%t,label%r
r:
call void@sml_check(i32 inreg%p)
%s=load i8*,i8**%c,align 8
br label%t
t:
%u=phi i8*[%s,%r],[%b,%v]
%w=bitcast i8*%u to i8**
%x=load i8*,i8**%w,align 8
store i8*%x,i8**%j,align 8
%y=getelementptr inbounds i8,i8*%u,i64 8
%z=bitcast i8*%y to i8**
%A=load i8*,i8**%z,align 8
store i8*%A,i8**%c,align 8
%B=getelementptr inbounds i8,i8*%u,i64 16
%C=bitcast i8*%B to i8***
%D=load i8**,i8***%C,align 8
%E=load i8*,i8**%D,align 8
store i8*%E,i8**%k,align 8
%F=getelementptr inbounds i8*,i8**%D,i64 1
%G=load i8*,i8**%F,align 8
store i8*%G,i8**%l,align 8
%H=getelementptr inbounds i8*,i8**%D,i64 2
%I=load i8*,i8**%H,align 8
store i8*%I,i8**%m,align 8
%J=getelementptr inbounds i8*,i8**%D,i64 3
%K=load i8*,i8**%J,align 8
store i8*%K,i8**%g,align 8
%L=getelementptr inbounds i8*,i8**%D,i64 4
%M=load i8*,i8**%L,align 8
store i8*%M,i8**%n,align 8
%N=call fastcc i8*@_SMLFN11RecordLabel3Map4findE(i32 inreg 1,i32 inreg 8)
%O=getelementptr inbounds i8,i8*%N,i64 16
%P=bitcast i8*%O to i8*(i8*,i8*)**
%Q=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%P,align 8
%R=bitcast i8*%N to i8**
%S=load i8*,i8**%R,align 8
store i8*%S,i8**%e,align 8
%T=bitcast i8**%d to i8***
%U=load i8**,i8***%T,align 8
%V=load i8*,i8**%U,align 8
store i8*%V,i8**%d,align 8
%W=call i8*@sml_alloc(i32 inreg 20)#0
%X=getelementptr inbounds i8,i8*%W,i64 -4
%Y=bitcast i8*%X to i32*
store i32 1342177296,i32*%Y,align 4
%Z=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aa=bitcast i8*%W to i8**
store i8*%Z,i8**%aa,align 8
%ab=load i8*,i8**%j,align 8
%ac=getelementptr inbounds i8,i8*%W,i64 8
%ad=bitcast i8*%ac to i8**
store i8*%ab,i8**%ad,align 8
%ae=getelementptr inbounds i8,i8*%W,i64 16
%af=bitcast i8*%ae to i32*
store i32 3,i32*%af,align 4
%ag=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%ah=call fastcc i8*%Q(i8*inreg%ag,i8*inreg%W)
%ai=icmp eq i8*%ah,null
br i1%ai,label%aj,label%aF
aj:
store i8*null,i8**%j,align 8
store i8*null,i8**%k,align 8
store i8*null,i8**%l,align 8
store i8*null,i8**%m,align 8
store i8*null,i8**%g,align 8
store i8*null,i8**%n,align 8
%ak=load i8*,i8**@_SMLZN3Bug3BugE,align 8
store i8*%ak,i8**%c,align 8
%al=call fastcc i8*@_SMLFN6String1_ZE(i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,i8*,i32}>,<{[4x i8],i32,i8*,i8*,i32}>*@s,i64 0,i32 2)to i8*))
store i8*%al,i8**%d,align 8
%am=call i8*@sml_alloc(i32 inreg 28)#0
%an=getelementptr inbounds i8,i8*%am,i64 -4
%ao=bitcast i8*%an to i32*
store i32 1342177304,i32*%ao,align 4
store i8*%am,i8**%e,align 8
%ap=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aq=bitcast i8*%am to i8**
store i8*%ap,i8**%aq,align 8
%ar=getelementptr inbounds i8,i8*%am,i64 8
%as=bitcast i8*%ar to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[70x i8]}>,<{[4x i8],i32,[70x i8]}>*@q,i64 0,i32 2,i64 0),i8**%as,align 8
%at=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%au=getelementptr inbounds i8,i8*%am,i64 16
%av=bitcast i8*%au to i8**
store i8*%at,i8**%av,align 8
%aw=getelementptr inbounds i8,i8*%am,i64 24
%ax=bitcast i8*%aw to i32*
store i32 7,i32*%ax,align 4
%ay=call i8*@sml_alloc(i32 inreg 60)#0
%az=getelementptr inbounds i8,i8*%ay,i64 -4
%aA=bitcast i8*%az to i32*
store i32 1342177336,i32*%aA,align 4
%aB=getelementptr inbounds i8,i8*%ay,i64 56
%aC=bitcast i8*%aB to i32*
store i32 1,i32*%aC,align 4
%aD=load i8*,i8**%e,align 8
%aE=bitcast i8*%ay to i8**
store i8*%aD,i8**%aE,align 8
call void@sml_raise(i8*inreg%ay)#1
unreachable
aF:
%aG=bitcast i8*%ah to i8**
%aH=load i8*,i8**%aG,align 8
store i8*%aH,i8**%d,align 8
%aI=call i8*@sml_alloc(i32 inreg 20)#0
%aJ=getelementptr inbounds i8,i8*%aI,i64 -4
%aK=bitcast i8*%aJ to i32*
store i32 1342177296,i32*%aK,align 4
%aL=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aM=bitcast i8*%aI to i8**
store i8*%aL,i8**%aM,align 8
%aN=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aO=getelementptr inbounds i8,i8*%aI,i64 8
%aP=bitcast i8*%aO to i8**
store i8*%aN,i8**%aP,align 8
%aQ=getelementptr inbounds i8,i8*%aI,i64 16
%aR=bitcast i8*%aQ to i32*
store i32 3,i32*%aR,align 4
%aS=call fastcc i8*@_SMLLN14TypedCalcUtils9freshInstE_208(i8*inreg%aI)
%aT=bitcast i8*%aS to i8**
%aU=load i8*,i8**%aT,align 8
store i8*%aU,i8**%c,align 8
%aV=getelementptr inbounds i8,i8*%aS,i64 8
%aW=bitcast i8*%aV to i8**
%aX=load i8*,i8**%aW,align 8
store i8*%aX,i8**%d,align 8
%aY=getelementptr inbounds i8,i8*%aS,i64 16
%aZ=bitcast i8*%aY to i8**
%a0=load i8*,i8**%aZ,align 8
store i8*%a0,i8**%e,align 8
%a1=getelementptr inbounds i8,i8*%aS,i64 24
%a2=bitcast i8*%a1 to i8**
%a3=load i8*,i8**%a2,align 8
store i8*%a3,i8**%f,align 8
%a4=call fastcc i8*@_SMLFN11RecordLabel3Map6insertE(i32 inreg 1,i32 inreg 8)
%a5=getelementptr inbounds i8,i8*%a4,i64 16
%a6=bitcast i8*%a5 to i8*(i8*,i8*)**
%a7=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%a6,align 8
%a8=bitcast i8*%a4 to i8**
%a9=load i8*,i8**%a8,align 8
store i8*%a9,i8**%h,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
%bd=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%be=bitcast i8*%ba to i8**
store i8*%bd,i8**%be,align 8
%bf=load i8*,i8**%j,align 8
%bg=getelementptr inbounds i8,i8*%ba,i64 8
%bh=bitcast i8*%bg to i8**
store i8*%bf,i8**%bh,align 8
%bi=load i8*,i8**%c,align 8
%bj=getelementptr inbounds i8,i8*%ba,i64 16
%bk=bitcast i8*%bj to i8**
store i8*%bi,i8**%bk,align 8
%bl=getelementptr inbounds i8,i8*%ba,i64 24
%bm=bitcast i8*%bl to i32*
store i32 7,i32*%bm,align 4
%bn=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%bo=call fastcc i8*%a7(i8*inreg%bn,i8*inreg%ba)
store i8*%bo,i8**%g,align 8
%bp=load i8*,i8**%f,align 8
%bq=icmp eq i8*%bp,null
br i1%bq,label%bW,label%br
br:
%bs=bitcast i8*%bp to i32*
%bt=load i32,i32*%bs,align 4
switch i32%bt,label%bW[
i32 5,label%bu
i32 18,label%bu
i32 22,label%bu
i32 32,label%bu
i32 40,label%bu
]
bu:
store i8*null,i8**%c,align 8
%bv=call fastcc i8*@_SMLFN11RecordLabel3Map6insertE(i32 inreg 1,i32 inreg 8)
%bw=getelementptr inbounds i8,i8*%bv,i64 16
%bx=bitcast i8*%bw to i8*(i8*,i8*)**
%by=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bx,align 8
%bz=bitcast i8*%bv to i8**
%bA=load i8*,i8**%bz,align 8
store i8*%bA,i8**%c,align 8
%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**%n,align 8
store i8*null,i8**%n,align 8
%bF=bitcast i8*%bB to i8**
store i8*%bE,i8**%bF,align 8
%bG=load i8*,i8**%j,align 8
store i8*null,i8**%j,align 8
%bH=getelementptr inbounds i8,i8*%bB,i64 8
%bI=bitcast i8*%bH to i8**
store i8*%bG,i8**%bI,align 8
%bJ=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%bK=getelementptr inbounds i8,i8*%bB,i64 16
%bL=bitcast i8*%bK to i8**
store i8*%bJ,i8**%bL,align 8
%bM=getelementptr inbounds i8,i8*%bB,i64 24
%bN=bitcast i8*%bM to i32*
store i32 7,i32*%bN,align 4
%bO=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bP=call fastcc i8*%by(i8*inreg%bO,i8*inreg%bB)
store i8*%bP,i8**%c,align 8
%bQ=call i8*@sml_alloc(i32 inreg 20)#0
%bR=getelementptr inbounds i8,i8*%bQ,i64 -4
%bS=bitcast i8*%bR to i32*
store i32 1342177296,i32*%bS,align 4
%bT=load i8*,i8**%k,align 8
store i8*null,i8**%k,align 8
%bU=bitcast i8*%bQ to i8**
store i8*%bT,i8**%bU,align 8
%bV=load i8*,i8**%c,align 8
br label%dL
bW:
%bX=call fastcc i32@_SMLFN5VarID8generateE(i32 inreg 0)
%bY=call i8*@sml_alloc(i32 inreg 28)#0
%bZ=bitcast i8*%bY to i32*
%b0=getelementptr inbounds i8,i8*%bY,i64 -4
%b1=bitcast i8*%b0 to i32*
store i32 1342177304,i32*%b1,align 4
store i8*%bY,i8**%h,align 8
store i32%bX,i32*%bZ,align 4
%b2=getelementptr inbounds i8,i8*%bY,i64 4
%b3=bitcast i8*%b2 to i32*
store i32 0,i32*%b3,align 4
%b4=getelementptr inbounds i8,i8*%bY,i64 8
%b5=bitcast i8*%b4 to i8**
store i8*null,i8**%b5,align 8
%b6=load i8*,i8**%c,align 8
%b7=getelementptr inbounds i8,i8*%bY,i64 16
%b8=bitcast i8*%b7 to i8**
store i8*%b6,i8**%b8,align 8
%b9=getelementptr inbounds i8,i8*%bY,i64 24
%ca=bitcast i8*%b9 to i32*
store i32 6,i32*%ca,align 4
store i8*null,i8**%c,align 8
store i8*%b6,i8**%i,align 8
%cb=call i8*@sml_alloc(i32 inreg 28)#0
%cc=bitcast i8*%cb to i32*
%cd=getelementptr inbounds i8,i8*%cb,i64 -4
%ce=bitcast i8*%cd to i32*
store i32 1342177304,i32*%ce,align 4
store i8*%cb,i8**%o,align 8
store i32%bX,i32*%cc,align 4
%cf=getelementptr inbounds i8,i8*%cb,i64 4
%cg=bitcast i8*%cf to i32*
store i32 0,i32*%cg,align 4
%ch=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ci=getelementptr inbounds i8,i8*%cb,i64 8
%cj=bitcast i8*%ci to i8**
store i8*%ch,i8**%cj,align 8
%ck=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%cl=getelementptr inbounds i8,i8*%cb,i64 16
%cm=bitcast i8*%cl to i8**
store i8*%ck,i8**%cm,align 8
%cn=getelementptr inbounds i8,i8*%cb,i64 24
%co=bitcast i8*%cn to i32*
store i32 6,i32*%co,align 4
%cp=call i8*@sml_alloc(i32 inreg 20)#0
%cq=getelementptr inbounds i8,i8*%cp,i64 -4
%cr=bitcast i8*%cq to i32*
store i32 1342177296,i32*%cr,align 4
store i8*%cp,i8**%i,align 8
%cs=getelementptr inbounds i8,i8*%cp,i64 4
%ct=bitcast i8*%cs to i32*
store i32 0,i32*%ct,align 1
%cu=bitcast i8*%cp to i32*
store i32 40,i32*%cu,align 4
%cv=load i8*,i8**%o,align 8
store i8*null,i8**%o,align 8
%cw=getelementptr inbounds i8,i8*%cp,i64 8
%cx=bitcast i8*%cw to i8**
store i8*%cv,i8**%cx,align 8
%cy=getelementptr inbounds i8,i8*%cp,i64 16
%cz=bitcast i8*%cy to i32*
store i32 2,i32*%cz,align 4
%cA=call fastcc i8*@_SMLFN11RecordLabel3Map6insertE(i32 inreg 1,i32 inreg 8)
%cB=getelementptr inbounds i8,i8*%cA,i64 16
%cC=bitcast i8*%cB to i8*(i8*,i8*)**
%cD=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%cC,align 8
%cE=bitcast i8*%cA to i8**
%cF=load i8*,i8**%cE,align 8
store i8*%cF,i8**%c,align 8
%cG=call i8*@sml_alloc(i32 inreg 28)#0
%cH=getelementptr inbounds i8,i8*%cG,i64 -4
%cI=bitcast i8*%cH to i32*
store i32 1342177304,i32*%cI,align 4
%cJ=load i8*,i8**%n,align 8
store i8*null,i8**%n,align 8
%cK=bitcast i8*%cG to i8**
store i8*%cJ,i8**%cK,align 8
%cL=load i8*,i8**%j,align 8
store i8*null,i8**%j,align 8
%cM=getelementptr inbounds i8,i8*%cG,i64 8
%cN=bitcast i8*%cM to i8**
store i8*%cL,i8**%cN,align 8
%cO=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%cP=getelementptr inbounds i8,i8*%cG,i64 16
%cQ=bitcast i8*%cP to i8**
store i8*%cO,i8**%cQ,align 8
%cR=getelementptr inbounds i8,i8*%cG,i64 24
%cS=bitcast i8*%cR to i32*
store i32 7,i32*%cS,align 4
%cT=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%cU=call fastcc i8*%cD(i8*inreg%cT,i8*inreg%cG)
store i8*%cU,i8**%c,align 8
%cV=load i8*,i8**%h,align 8
%cW=bitcast i8*%cV to i32*
%cX=load i32,i32*%cW,align 4
%cY=getelementptr inbounds i8,i8*%cV,i64 4
%cZ=bitcast i8*%cY to i32*
%c0=load i32,i32*%cZ,align 4
%c1=getelementptr inbounds i8,i8*%cV,i64 8
%c2=bitcast i8*%c1 to i8**
%c3=load i8*,i8**%c2,align 8
store i8*%c3,i8**%i,align 8
%c4=getelementptr inbounds i8,i8*%cV,i64 16
%c5=bitcast i8*%c4 to i8**
%c6=load i8*,i8**%c5,align 8
store i8*%c6,i8**%h,align 8
%c7=call i8*@sml_alloc(i32 inreg 28)#0
%c8=bitcast i8*%c7 to i32*
%c9=getelementptr inbounds i8,i8*%c7,i64 -4
%da=bitcast i8*%c9 to i32*
store i32 1342177304,i32*%da,align 4
store i8*%c7,i8**%j,align 8
store i32%cX,i32*%c8,align 4
%db=getelementptr inbounds i8,i8*%c7,i64 4
%dc=bitcast i8*%db to i32*
store i32%c0,i32*%dc,align 4
%dd=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%de=getelementptr inbounds i8,i8*%c7,i64 8
%df=bitcast i8*%de to i8**
store i8*%dd,i8**%df,align 8
%dg=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%dh=getelementptr inbounds i8,i8*%c7,i64 16
%di=bitcast i8*%dh to i8**
store i8*%dg,i8**%di,align 8
%dj=getelementptr inbounds i8,i8*%c7,i64 24
%dk=bitcast i8*%dj to i32*
store i32 6,i32*%dk,align 4
%dl=call i8*@sml_alloc(i32 inreg 20)#0
%dm=getelementptr inbounds i8,i8*%dl,i64 -4
%dn=bitcast i8*%dm to i32*
store i32 1342177296,i32*%dn,align 4
store i8*%dl,i8**%h,align 8
%do=load i8*,i8**%j,align 8
store i8*null,i8**%j,align 8
%dp=bitcast i8*%dl to i8**
store i8*%do,i8**%dp,align 8
%dq=load i8*,i8**%f,align 8
store i8*null,i8**%f,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 i32*
store i32 3,i32*%du,align 4
%dv=call i8*@sml_alloc(i32 inreg 20)#0
%dw=getelementptr inbounds i8,i8*%dv,i64 -4
%dx=bitcast i8*%dw to i32*
store i32 1342177296,i32*%dx,align 4
store i8*%dv,i8**%f,align 8
%dy=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%dz=bitcast i8*%dv to i8**
store i8*%dy,i8**%dz,align 8
%dA=load i8*,i8**%k,align 8
store i8*null,i8**%k,align 8
%dB=getelementptr inbounds i8,i8*%dv,i64 8
%dC=bitcast i8*%dB to i8**
store i8*%dA,i8**%dC,align 8
%dD=getelementptr inbounds i8,i8*%dv,i64 16
%dE=bitcast i8*%dD to i32*
store i32 3,i32*%dE,align 4
%dF=call i8*@sml_alloc(i32 inreg 20)#0
%dG=getelementptr inbounds i8,i8*%dF,i64 -4
%dH=bitcast i8*%dG to i32*
store i32 1342177296,i32*%dH,align 4
%dI=load i8*,i8**%f,align 8
%dJ=bitcast i8*%dF to i8**
store i8*%dI,i8**%dJ,align 8
%dK=load i8*,i8**%c,align 8
br label%dL
dL:
%dM=phi i8*[%dF,%bW],[%bQ,%bu]
%dN=phi i8*[%dK,%bW],[%bV,%bu]
%dO=phi i8*[%dI,%bW],[%bT,%bu]
%dP=getelementptr inbounds i8,i8*%dM,i64 8
%dQ=bitcast i8*%dP to i8**
store i8*%dN,i8**%dQ,align 8
%dR=getelementptr inbounds i8,i8*%dM,i64 16
%dS=bitcast i8*%dR to i32*
store i32 3,i32*%dS,align 4
store i8*%dO,i8**%c,align 8
store i8*%dN,i8**%f,align 8
%dT=call fastcc i8*@_SMLFN4List1_VE(i32 inreg 1,i32 inreg 8)
%dU=getelementptr inbounds i8,i8*%dT,i64 16
%dV=bitcast i8*%dU to i8*(i8*,i8*)**
%dW=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%dV,align 8
%dX=bitcast i8*%dT to i8**
%dY=load i8*,i8**%dX,align 8
store i8*%dY,i8**%h,align 8
%dZ=call i8*@sml_alloc(i32 inreg 20)#0
%d0=getelementptr inbounds i8,i8*%dZ,i64 -4
%d1=bitcast i8*%d0 to i32*
store i32 1342177296,i32*%d1,align 4
%d2=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%d3=bitcast i8*%dZ to i8**
store i8*%d2,i8**%d3,align 8
%d4=load i8*,i8**%m,align 8
store i8*null,i8**%m,align 8
%d5=getelementptr inbounds i8,i8*%dZ,i64 8
%d6=bitcast i8*%d5 to i8**
store i8*%d4,i8**%d6,align 8
%d7=getelementptr inbounds i8,i8*%dZ,i64 16
%d8=bitcast i8*%d7 to i32*
store i32 3,i32*%d8,align 4
%d9=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%ea=call fastcc i8*%dW(i8*inreg%d9,i8*inreg%dZ)
store i8*%ea,i8**%e,align 8
%eb=call fastcc i8*@_SMLFN4List1_VE(i32 inreg 1,i32 inreg 8)
%ec=getelementptr inbounds i8,i8*%eb,i64 16
%ed=bitcast i8*%ec to i8*(i8*,i8*)**
%ee=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%ed,align 8
%ef=bitcast i8*%eb to i8**
%eg=load i8*,i8**%ef,align 8
store i8*%eg,i8**%h,align 8
%eh=call i8*@sml_alloc(i32 inreg 20)#0
%ei=getelementptr inbounds i8,i8*%eh,i64 -4
%ej=bitcast i8*%ei to i32*
store i32 1342177296,i32*%ej,align 4
%ek=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%el=bitcast i8*%eh to i8**
store i8*%ek,i8**%el,align 8
%em=load i8*,i8**%l,align 8
store i8*null,i8**%l,align 8
%en=getelementptr inbounds i8,i8*%eh,i64 8
%eo=bitcast i8*%en to i8**
store i8*%em,i8**%eo,align 8
%ep=getelementptr inbounds i8,i8*%eh,i64 16
%eq=bitcast i8*%ep to i32*
store i32 3,i32*%eq,align 4
%er=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%es=call fastcc i8*%ee(i8*inreg%er,i8*inreg%eh)
store i8*%es,i8**%d,align 8
%et=call i8*@sml_alloc(i32 inreg 44)#0
%eu=getelementptr inbounds i8,i8*%et,i64 -4
%ev=bitcast i8*%eu to i32*
store i32 1342177320,i32*%ev,align 4
%ew=load i8*,i8**%c,align 8
%ex=bitcast i8*%et to i8**
store i8*%ew,i8**%ex,align 8
%ey=load i8*,i8**%d,align 8
%ez=getelementptr inbounds i8,i8*%et,i64 8
%eA=bitcast i8*%ez to i8**
store i8*%ey,i8**%eA,align 8
%eB=load i8*,i8**%e,align 8
%eC=getelementptr inbounds i8,i8*%et,i64 16
%eD=bitcast i8*%eC to i8**
store i8*%eB,i8**%eD,align 8
%eE=load i8*,i8**%g,align 8
%eF=getelementptr inbounds i8,i8*%et,i64 24
%eG=bitcast i8*%eF to i8**
store i8*%eE,i8**%eG,align 8
%eH=load i8*,i8**%f,align 8
%eI=getelementptr inbounds i8,i8*%et,i64 32
%eJ=bitcast i8*%eI to i8**
store i8*%eH,i8**%eJ,align 8
%eK=getelementptr inbounds i8,i8*%et,i64 40
%eL=bitcast i8*%eK to i32*
store i32 31,i32*%eL,align 4
ret i8*%et
}
define internal fastcc i8*@_SMLLN14TypedCalcUtils9freshInstE_237(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
y:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
%h=alloca i8*,align 8
%i=alloca i8*,align 8
%j=alloca i8*,align 8
%k=alloca i8*,align 8
%l=alloca i8*,align 8
%m=alloca i8*,align 8
%n=alloca i8*,align 8
%o=alloca i8*,align 8
%p=alloca i8*,align 8
%q=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
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
call void@llvm.gcroot(i8**%l,i8*null)#0
call void@llvm.gcroot(i8**%m,i8*null)#0
call void@llvm.gcroot(i8**%n,i8*null)#0
call void@llvm.gcroot(i8**%o,i8*null)#0
call void@llvm.gcroot(i8**%p,i8*null)#0
call void@llvm.gcroot(i8**%q,i8*null)#0
store i8*%a,i8**%d,align 8
store i8*%b,i8**%c,align 8
%r=load atomic i32,i32*@sml_check_flag unordered,align 4
%s=icmp eq i32%r,0
br i1%s,label%w,label%t
t:
call void@sml_check(i32 inreg%r)
%u=load i8*,i8**%c,align 8
%v=load i8*,i8**%d,align 8
br label%w
w:
%x=phi i8*[%v,%t],[%a,%y]
%z=phi i8*[%u,%t],[%b,%y]
%A=bitcast i8*%x to i8**
%B=bitcast i8*%z to i8**
%C=load i8*,i8**%B,align 8
store i8*%C,i8**%k,align 8
%D=getelementptr inbounds i8,i8*%z,i64 8
%E=bitcast i8*%D to i8**
%F=load i8*,i8**%E,align 8
store i8*%F,i8**%c,align 8
%G=getelementptr inbounds i8,i8*%z,i64 16
%H=bitcast i8*%G to i8***
%I=load i8**,i8***%H,align 8
%J=load i8*,i8**%I,align 8
store i8*%J,i8**%l,align 8
%K=getelementptr inbounds i8*,i8**%I,i64 1
%L=load i8*,i8**%K,align 8
store i8*%L,i8**%j,align 8
%M=getelementptr inbounds i8*,i8**%I,i64 2
%N=load i8*,i8**%M,align 8
store i8*%N,i8**%m,align 8
%O=getelementptr inbounds i8*,i8**%I,i64 3
%P=load i8*,i8**%O,align 8
store i8*%P,i8**%n,align 8
%Q=getelementptr inbounds i8*,i8**%I,i64 4
%R=load i8*,i8**%Q,align 8
store i8*%R,i8**%o,align 8
%S=getelementptr inbounds i8,i8*%x,i64 8
%T=bitcast i8*%S to i8**
%U=load i8*,i8**%T,align 8
store i8*%U,i8**%e,align 8
%V=getelementptr inbounds i8,i8*%x,i64 16
%W=bitcast i8*%V to i8**
%X=load i8*,i8**%W,align 8
store i8*%X,i8**%f,align 8
%Y=load i8*,i8**%A,align 8
store i8*%Y,i8**%d,align 8
%Z=call i8*@sml_alloc(i32 inreg 44)#0
%aa=getelementptr inbounds i8,i8*%Z,i64 -4
%ab=bitcast i8*%aa to i32*
store i32 1342177320,i32*%ab,align 4
store i8*%Z,i8**%g,align 8
%ac=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%ad=bitcast i8*%Z to i8**
store i8*%ac,i8**%ad,align 8
%ae=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%af=getelementptr inbounds i8,i8*%Z,i64 8
%ag=bitcast i8*%af to i8**
store i8*%ae,i8**%ag,align 8
%ah=load i8*,i8**%k,align 8
%ai=getelementptr inbounds i8,i8*%Z,i64 16
%aj=bitcast i8*%ai to i8**
store i8*%ah,i8**%aj,align 8
%ak=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%al=getelementptr inbounds i8,i8*%Z,i64 24
%am=bitcast i8*%al to i8**
store i8*%ak,i8**%am,align 8
%an=load i8*,i8**%c,align 8
%ao=getelementptr inbounds i8,i8*%Z,i64 32
%ap=bitcast i8*%ao to i8**
store i8*%an,i8**%ap,align 8
%aq=getelementptr inbounds i8,i8*%Z,i64 40
%ar=bitcast i8*%aq to i32*
store i32 31,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
store i8*%as,i8**%d,align 8
%av=getelementptr inbounds i8,i8*%as,i64 4
%aw=bitcast i8*%av to i32*
store i32 0,i32*%aw,align 1
%ax=bitcast i8*%as to i32*
store i32 35,i32*%ax,align 4
%ay=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%az=getelementptr inbounds i8,i8*%as,i64 8
%aA=bitcast i8*%az to i8**
store i8*%ay,i8**%aA,align 8
%aB=getelementptr inbounds i8,i8*%as,i64 16
%aC=bitcast i8*%aB to i32*
store i32 2,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=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aJ=getelementptr inbounds i8,i8*%aD,i64 8
%aK=bitcast i8*%aJ to i8**
store i8*%aI,i8**%aK,align 8
%aL=getelementptr inbounds i8,i8*%aD,i64 16
%aM=bitcast i8*%aL to i32*
store i32 3,i32*%aM,align 4
%aN=call fastcc i8*@_SMLLN14TypedCalcUtils9freshInstE_208(i8*inreg%aD)
%aO=bitcast i8*%aN to i8**
%aP=load i8*,i8**%aO,align 8
store i8*%aP,i8**%c,align 8
%aQ=getelementptr inbounds i8,i8*%aN,i64 8
%aR=bitcast i8*%aQ to i8**
%aS=load i8*,i8**%aR,align 8
store i8*%aS,i8**%d,align 8
%aT=getelementptr inbounds i8,i8*%aN,i64 16
%aU=bitcast i8*%aT to i8**
%aV=load i8*,i8**%aU,align 8
store i8*%aV,i8**%e,align 8
%aW=getelementptr inbounds i8,i8*%aN,i64 24
%aX=bitcast i8*%aW to i8**
%aY=load i8*,i8**%aX,align 8
store i8*%aY,i8**%f,align 8
%aZ=call fastcc i32@_SMLFN5VarID8generateE(i32 inreg 0)
%a0=call i8*@sml_alloc(i32 inreg 28)#0
%a1=bitcast i8*%a0 to i32*
%a2=getelementptr inbounds i8,i8*%a0,i64 -4
%a3=bitcast i8*%a2 to i32*
store i32 1342177304,i32*%a3,align 4
store i8*%a0,i8**%g,align 8
store i32%aZ,i32*%a1,align 4
%a4=getelementptr inbounds i8,i8*%a0,i64 4
%a5=bitcast i8*%a4 to i32*
store i32 0,i32*%a5,align 4
%a6=getelementptr inbounds i8,i8*%a0,i64 8
%a7=bitcast i8*%a6 to i8**
store i8*null,i8**%a7,align 8
%a8=load i8*,i8**%c,align 8
%a9=getelementptr inbounds i8,i8*%a0,i64 16
%ba=bitcast i8*%a9 to i8**
store i8*%a8,i8**%ba,align 8
%bb=getelementptr inbounds i8,i8*%a0,i64 24
%bc=bitcast i8*%bb to i32*
store i32 6,i32*%bc,align 4
store i8*null,i8**%h,align 8
store i8*%a8,i8**%i,align 8
%bd=call i8*@sml_alloc(i32 inreg 28)#0
%be=bitcast i8*%bd to i32*
%bf=getelementptr inbounds i8,i8*%bd,i64 -4
%bg=bitcast i8*%bf to i32*
store i32 1342177304,i32*%bg,align 4
store i8*%bd,i8**%p,align 8
store i32%aZ,i32*%be,align 4
%bh=getelementptr inbounds i8,i8*%bd,i64 4
%bi=bitcast i8*%bh to i32*
store i32 0,i32*%bi,align 4
%bj=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%bk=getelementptr inbounds i8,i8*%bd,i64 8
%bl=bitcast i8*%bk to i8**
store i8*%bj,i8**%bl,align 8
%bm=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%bn=getelementptr inbounds i8,i8*%bd,i64 16
%bo=bitcast i8*%bn to i8**
store i8*%bm,i8**%bo,align 8
%bp=getelementptr inbounds i8,i8*%bd,i64 24
%bq=bitcast i8*%bp to i32*
store i32 6,i32*%bq,align 4
%br=call i8*@sml_alloc(i32 inreg 20)#0
%bs=getelementptr inbounds i8,i8*%br,i64 -4
%bt=bitcast i8*%bs to i32*
store i32 1342177296,i32*%bt,align 4
store i8*%br,i8**%q,align 8
%bu=getelementptr inbounds i8,i8*%br,i64 4
%bv=bitcast i8*%bu to i32*
store i32 0,i32*%bv,align 1
%bw=bitcast i8*%br to i32*
store i32 40,i32*%bw,align 4
%bx=load i8*,i8**%p,align 8
store i8*null,i8**%p,align 8
%by=getelementptr inbounds i8,i8*%br,i64 8
%bz=bitcast i8*%by to i8**
store i8*%bx,i8**%bz,align 8
%bA=getelementptr inbounds i8,i8*%br,i64 16
%bB=bitcast i8*%bA to i32*
store i32 2,i32*%bB,align 4
%bC=call fastcc i8*@_SMLFN4List1_VE(i32 inreg 1,i32 inreg 8)
%bD=getelementptr inbounds i8,i8*%bC,i64 16
%bE=bitcast i8*%bD to i8*(i8*,i8*)**
%bF=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bE,align 8
%bG=bitcast i8*%bC to i8**
%bH=load i8*,i8**%bG,align 8
store i8*%bH,i8**%h,align 8
%bI=call i8*@sml_alloc(i32 inreg 20)#0
%bJ=getelementptr inbounds i8,i8*%bI,i64 -4
%bK=bitcast i8*%bJ to i32*
store i32 1342177296,i32*%bK,align 4
%bL=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%bM=bitcast i8*%bI to i8**
store i8*%bL,i8**%bM,align 8
%bN=load i8*,i8**%j,align 8
store i8*null,i8**%j,align 8
%bO=getelementptr inbounds i8,i8*%bI,i64 8
%bP=bitcast i8*%bO to i8**
store i8*%bN,i8**%bP,align 8
%bQ=getelementptr inbounds i8,i8*%bI,i64 16
%bR=bitcast i8*%bQ to i32*
store i32 3,i32*%bR,align 4
%bS=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%bT=call fastcc i8*%bF(i8*inreg%bS,i8*inreg%bI)
store i8*%bT,i8**%h,align 8
%bU=call fastcc i8*@_SMLFN4List1_VE(i32 inreg 1,i32 inreg 8)
%bV=getelementptr inbounds i8,i8*%bU,i64 16
%bW=bitcast i8*%bV to i8*(i8*,i8*)**
%bX=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bW,align 8
%bY=bitcast i8*%bU to i8**
%bZ=load i8*,i8**%bY,align 8
store i8*%bZ,i8**%d,align 8
%b0=call i8*@sml_alloc(i32 inreg 20)#0
%b1=getelementptr inbounds i8,i8*%b0,i64 -4
%b2=bitcast i8*%b1 to i32*
store i32 1342177296,i32*%b2,align 4
%b3=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%b4=bitcast i8*%b0 to i8**
store i8*%b3,i8**%b4,align 8
%b5=load i8*,i8**%m,align 8
store i8*null,i8**%m,align 8
%b6=getelementptr inbounds i8,i8*%b0,i64 8
%b7=bitcast i8*%b6 to i8**
store i8*%b5,i8**%b7,align 8
%b8=getelementptr inbounds i8,i8*%b0,i64 16
%b9=bitcast i8*%b8 to i32*
store i32 3,i32*%b9,align 4
%ca=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%cb=call fastcc i8*%bX(i8*inreg%ca,i8*inreg%b0)
store i8*%cb,i8**%i,align 8
%cc=call fastcc i8*@_SMLFN11RecordLabel3Map6insertE(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
store i8*%ch,i8**%d,align 8
%ci=call i8*@sml_alloc(i32 inreg 28)#0
%cj=getelementptr inbounds i8,i8*%ci,i64 -4
%ck=bitcast i8*%cj to i32*
store i32 1342177304,i32*%ck,align 4
%cl=load i8*,i8**%n,align 8
store i8*null,i8**%n,align 8
%cm=bitcast i8*%ci to i8**
store i8*%cl,i8**%cm,align 8
%cn=load i8*,i8**%k,align 8
%co=getelementptr inbounds i8,i8*%ci,i64 8
%cp=bitcast i8*%co to i8**
store i8*%cn,i8**%cp,align 8
%cq=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%cr=getelementptr inbounds i8,i8*%ci,i64 16
%cs=bitcast i8*%cr to i8**
store i8*%cq,i8**%cs,align 8
%ct=getelementptr inbounds i8,i8*%ci,i64 24
%cu=bitcast i8*%ct to i32*
store i32 7,i32*%cu,align 4
%cv=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%cw=call fastcc i8*%cf(i8*inreg%cv,i8*inreg%ci)
store i8*%cw,i8**%j,align 8
%cx=call fastcc i8*@_SMLFN11RecordLabel3Map6insertE(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
store i8*%cC,i8**%c,align 8
%cD=call i8*@sml_alloc(i32 inreg 28)#0
%cE=getelementptr inbounds i8,i8*%cD,i64 -4
%cF=bitcast i8*%cE to i32*
store i32 1342177304,i32*%cF,align 4
%cG=load i8*,i8**%o,align 8
store i8*null,i8**%o,align 8
%cH=bitcast i8*%cD to i8**
store i8*%cG,i8**%cH,align 8
%cI=load i8*,i8**%k,align 8
store i8*null,i8**%k,align 8
%cJ=getelementptr inbounds i8,i8*%cD,i64 8
%cK=bitcast i8*%cJ to i8**
store i8*%cI,i8**%cK,align 8
%cL=load i8*,i8**%q,align 8
store i8*null,i8**%q,align 8
%cM=getelementptr inbounds i8,i8*%cD,i64 16
%cN=bitcast i8*%cM to i8**
store i8*%cL,i8**%cN,align 8
%cO=getelementptr inbounds i8,i8*%cD,i64 24
%cP=bitcast i8*%cO to i32*
store i32 7,i32*%cP,align 4
%cQ=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%cR=call fastcc i8*%cA(i8*inreg%cQ,i8*inreg%cD)
store i8*%cR,i8**%k,align 8
%cS=load i8*,i8**%g,align 8
%cT=bitcast i8*%cS to i32*
%cU=load i32,i32*%cT,align 4
%cV=getelementptr inbounds i8,i8*%cS,i64 4
%cW=bitcast i8*%cV to i32*
%cX=load i32,i32*%cW,align 4
%cY=getelementptr inbounds i8,i8*%cS,i64 8
%cZ=bitcast i8*%cY to i8**
%c0=load i8*,i8**%cZ,align 8
store i8*%c0,i8**%c,align 8
store i8*null,i8**%g,align 8
%c1=getelementptr inbounds i8,i8*%cS,i64 16
%c2=bitcast i8*%c1 to i8**
%c3=load i8*,i8**%c2,align 8
store i8*%c3,i8**%d,align 8
%c4=call i8*@sml_alloc(i32 inreg 28)#0
%c5=bitcast i8*%c4 to i32*
%c6=getelementptr inbounds i8,i8*%c4,i64 -4
%c7=bitcast i8*%c6 to i32*
store i32 1342177304,i32*%c7,align 4
store i8*%c4,i8**%e,align 8
store i32%cU,i32*%c5,align 4
%c8=getelementptr inbounds i8,i8*%c4,i64 4
%c9=bitcast i8*%c8 to i32*
store i32%cX,i32*%c9,align 4
%da=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%db=getelementptr inbounds i8,i8*%c4,i64 8
%dc=bitcast i8*%db to i8**
store i8*%da,i8**%dc,align 8
%dd=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%de=getelementptr inbounds i8,i8*%c4,i64 16
%df=bitcast i8*%de to i8**
store i8*%dd,i8**%df,align 8
%dg=getelementptr inbounds i8,i8*%c4,i64 24
%dh=bitcast i8*%dg to i32*
store i32 6,i32*%dh,align 4
%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**%c,align 8
%dl=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%dm=bitcast i8*%di to i8**
store i8*%dl,i8**%dm,align 8
%dn=load i8*,i8**%f,align 8
store i8*null,i8**%f,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 20)#0
%dt=getelementptr inbounds i8,i8*%ds,i64 -4
%du=bitcast i8*%dt to i32*
store i32 1342177296,i32*%du,align 4
store i8*%ds,i8**%d,align 8
%dv=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%dw=bitcast i8*%ds to i8**
store i8*%dv,i8**%dw,align 8
%dx=load i8*,i8**%l,align 8
store i8*null,i8**%l,align 8
%dy=getelementptr inbounds i8,i8*%ds,i64 8
%dz=bitcast i8*%dy to i8**
store i8*%dx,i8**%dz,align 8
%dA=getelementptr inbounds i8,i8*%ds,i64 16
%dB=bitcast i8*%dA to i32*
store i32 3,i32*%dB,align 4
%dC=call i8*@sml_alloc(i32 inreg 44)#0
%dD=getelementptr inbounds i8,i8*%dC,i64 -4
%dE=bitcast i8*%dD to i32*
store i32 1342177320,i32*%dE,align 4
%dF=load i8*,i8**%d,align 8
%dG=bitcast i8*%dC to i8**
store i8*%dF,i8**%dG,align 8
%dH=load i8*,i8**%h,align 8
%dI=getelementptr inbounds i8,i8*%dC,i64 8
%dJ=bitcast i8*%dI to i8**
store i8*%dH,i8**%dJ,align 8
%dK=load i8*,i8**%i,align 8
%dL=getelementptr inbounds i8,i8*%dC,i64 16
%dM=bitcast i8*%dL to i8**
store i8*%dK,i8**%dM,align 8
%dN=load i8*,i8**%j,align 8
%dO=getelementptr inbounds i8,i8*%dC,i64 24
%dP=bitcast i8*%dO to i8**
store i8*%dN,i8**%dP,align 8
%dQ=load i8*,i8**%k,align 8
%dR=getelementptr inbounds i8,i8*%dC,i64 32
%dS=bitcast i8*%dR to i8**
store i8*%dQ,i8**%dS,align 8
%dT=getelementptr inbounds i8,i8*%dC,i64 40
%dU=bitcast i8*%dT to i32*
store i32 31,i32*%dU,align 4
ret i8*%dC
}
define internal fastcc i8*@_SMLLN14TypedCalcUtils9freshInstE_238(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
y:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
%h=alloca i8*,align 8
%i=alloca i8*,align 8
%j=alloca i8*,align 8
%k=alloca i8*,align 8
%l=alloca i8*,align 8
%m=alloca i8*,align 8
%n=alloca i8*,align 8
%o=alloca i8*,align 8
%p=alloca i8*,align 8
%q=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
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
call void@llvm.gcroot(i8**%l,i8*null)#0
call void@llvm.gcroot(i8**%m,i8*null)#0
call void@llvm.gcroot(i8**%n,i8*null)#0
call void@llvm.gcroot(i8**%o,i8*null)#0
call void@llvm.gcroot(i8**%p,i8*null)#0
call void@llvm.gcroot(i8**%q,i8*null)#0
store i8*%a,i8**%d,align 8
store i8*%b,i8**%c,align 8
%r=load atomic i32,i32*@sml_check_flag unordered,align 4
%s=icmp eq i32%r,0
br i1%s,label%w,label%t
t:
call void@sml_check(i32 inreg%r)
%u=load i8*,i8**%c,align 8
%v=load i8*,i8**%d,align 8
br label%w
w:
%x=phi i8*[%v,%t],[%a,%y]
%z=phi i8*[%u,%t],[%b,%y]
%A=bitcast i8*%x to i8**
%B=bitcast i8*%z to i8**
%C=load i8*,i8**%B,align 8
store i8*%C,i8**%k,align 8
%D=getelementptr inbounds i8,i8*%z,i64 8
%E=bitcast i8*%D to i8**
%F=load i8*,i8**%E,align 8
store i8*%F,i8**%c,align 8
%G=getelementptr inbounds i8,i8*%z,i64 16
%H=bitcast i8*%G to i8***
%I=load i8**,i8***%H,align 8
%J=load i8*,i8**%I,align 8
store i8*%J,i8**%l,align 8
%K=getelementptr inbounds i8*,i8**%I,i64 1
%L=load i8*,i8**%K,align 8
store i8*%L,i8**%j,align 8
%M=getelementptr inbounds i8*,i8**%I,i64 2
%N=load i8*,i8**%M,align 8
store i8*%N,i8**%m,align 8
%O=getelementptr inbounds i8*,i8**%I,i64 3
%P=load i8*,i8**%O,align 8
store i8*%P,i8**%n,align 8
%Q=getelementptr inbounds i8*,i8**%I,i64 4
%R=load i8*,i8**%Q,align 8
store i8*%R,i8**%o,align 8
%S=getelementptr inbounds i8,i8*%x,i64 16
%T=bitcast i8*%S to i8**
%U=load i8*,i8**%T,align 8
store i8*%U,i8**%e,align 8
%V=getelementptr inbounds i8,i8*%x,i64 8
%W=bitcast i8*%V to i8**
%X=load i8*,i8**%W,align 8
store i8*%X,i8**%f,align 8
%Y=load i8*,i8**%A,align 8
store i8*%Y,i8**%d,align 8
%Z=call i8*@sml_alloc(i32 inreg 44)#0
%aa=getelementptr inbounds i8,i8*%Z,i64 -4
%ab=bitcast i8*%aa to i32*
store i32 1342177320,i32*%ab,align 4
store i8*%Z,i8**%g,align 8
%ac=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%ad=bitcast i8*%Z to i8**
store i8*%ac,i8**%ad,align 8
%ae=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%af=getelementptr inbounds i8,i8*%Z,i64 8
%ag=bitcast i8*%af to i8**
store i8*%ae,i8**%ag,align 8
%ah=load i8*,i8**%k,align 8
%ai=getelementptr inbounds i8,i8*%Z,i64 16
%aj=bitcast i8*%ai to i8**
store i8*%ah,i8**%aj,align 8
%ak=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%al=getelementptr inbounds i8,i8*%Z,i64 24
%am=bitcast i8*%al to i8**
store i8*%ak,i8**%am,align 8
%an=load i8*,i8**%c,align 8
%ao=getelementptr inbounds i8,i8*%Z,i64 32
%ap=bitcast i8*%ao to i8**
store i8*%an,i8**%ap,align 8
%aq=getelementptr inbounds i8,i8*%Z,i64 40
%ar=bitcast i8*%aq to i32*
store i32 31,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
store i8*%as,i8**%d,align 8
%av=getelementptr inbounds i8,i8*%as,i64 4
%aw=bitcast i8*%av to i32*
store i32 0,i32*%aw,align 1
%ax=bitcast i8*%as to i32*
store i32 35,i32*%ax,align 4
%ay=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%az=getelementptr inbounds i8,i8*%as,i64 8
%aA=bitcast i8*%az to i8**
store i8*%ay,i8**%aA,align 8
%aB=getelementptr inbounds i8,i8*%as,i64 16
%aC=bitcast i8*%aB to i32*
store i32 2,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=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aJ=getelementptr inbounds i8,i8*%aD,i64 8
%aK=bitcast i8*%aJ to i8**
store i8*%aI,i8**%aK,align 8
%aL=getelementptr inbounds i8,i8*%aD,i64 16
%aM=bitcast i8*%aL to i32*
store i32 3,i32*%aM,align 4
%aN=call fastcc i8*@_SMLLN14TypedCalcUtils9freshInstE_208(i8*inreg%aD)
%aO=bitcast i8*%aN to i8**
%aP=load i8*,i8**%aO,align 8
store i8*%aP,i8**%c,align 8
%aQ=getelementptr inbounds i8,i8*%aN,i64 8
%aR=bitcast i8*%aQ to i8**
%aS=load i8*,i8**%aR,align 8
store i8*%aS,i8**%d,align 8
%aT=getelementptr inbounds i8,i8*%aN,i64 16
%aU=bitcast i8*%aT to i8**
%aV=load i8*,i8**%aU,align 8
store i8*%aV,i8**%e,align 8
%aW=getelementptr inbounds i8,i8*%aN,i64 24
%aX=bitcast i8*%aW to i8**
%aY=load i8*,i8**%aX,align 8
store i8*%aY,i8**%f,align 8
%aZ=call fastcc i32@_SMLFN5VarID8generateE(i32 inreg 0)
%a0=call i8*@sml_alloc(i32 inreg 28)#0
%a1=bitcast i8*%a0 to i32*
%a2=getelementptr inbounds i8,i8*%a0,i64 -4
%a3=bitcast i8*%a2 to i32*
store i32 1342177304,i32*%a3,align 4
store i8*%a0,i8**%g,align 8
store i32%aZ,i32*%a1,align 4
%a4=getelementptr inbounds i8,i8*%a0,i64 4
%a5=bitcast i8*%a4 to i32*
store i32 0,i32*%a5,align 4
%a6=getelementptr inbounds i8,i8*%a0,i64 8
%a7=bitcast i8*%a6 to i8**
store i8*null,i8**%a7,align 8
%a8=load i8*,i8**%c,align 8
%a9=getelementptr inbounds i8,i8*%a0,i64 16
%ba=bitcast i8*%a9 to i8**
store i8*%a8,i8**%ba,align 8
%bb=getelementptr inbounds i8,i8*%a0,i64 24
%bc=bitcast i8*%bb to i32*
store i32 6,i32*%bc,align 4
store i8*null,i8**%h,align 8
store i8*%a8,i8**%i,align 8
%bd=call i8*@sml_alloc(i32 inreg 28)#0
%be=bitcast i8*%bd to i32*
%bf=getelementptr inbounds i8,i8*%bd,i64 -4
%bg=bitcast i8*%bf to i32*
store i32 1342177304,i32*%bg,align 4
store i8*%bd,i8**%p,align 8
store i32%aZ,i32*%be,align 4
%bh=getelementptr inbounds i8,i8*%bd,i64 4
%bi=bitcast i8*%bh to i32*
store i32 0,i32*%bi,align 4
%bj=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%bk=getelementptr inbounds i8,i8*%bd,i64 8
%bl=bitcast i8*%bk to i8**
store i8*%bj,i8**%bl,align 8
%bm=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%bn=getelementptr inbounds i8,i8*%bd,i64 16
%bo=bitcast i8*%bn to i8**
store i8*%bm,i8**%bo,align 8
%bp=getelementptr inbounds i8,i8*%bd,i64 24
%bq=bitcast i8*%bp to i32*
store i32 6,i32*%bq,align 4
%br=call i8*@sml_alloc(i32 inreg 20)#0
%bs=getelementptr inbounds i8,i8*%br,i64 -4
%bt=bitcast i8*%bs to i32*
store i32 1342177296,i32*%bt,align 4
store i8*%br,i8**%q,align 8
%bu=getelementptr inbounds i8,i8*%br,i64 4
%bv=bitcast i8*%bu to i32*
store i32 0,i32*%bv,align 1
%bw=bitcast i8*%br to i32*
store i32 40,i32*%bw,align 4
%bx=load i8*,i8**%p,align 8
store i8*null,i8**%p,align 8
%by=getelementptr inbounds i8,i8*%br,i64 8
%bz=bitcast i8*%by to i8**
store i8*%bx,i8**%bz,align 8
%bA=getelementptr inbounds i8,i8*%br,i64 16
%bB=bitcast i8*%bA to i32*
store i32 2,i32*%bB,align 4
%bC=call fastcc i8*@_SMLFN4List1_VE(i32 inreg 1,i32 inreg 8)
%bD=getelementptr inbounds i8,i8*%bC,i64 16
%bE=bitcast i8*%bD to i8*(i8*,i8*)**
%bF=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bE,align 8
%bG=bitcast i8*%bC to i8**
%bH=load i8*,i8**%bG,align 8
store i8*%bH,i8**%h,align 8
%bI=call i8*@sml_alloc(i32 inreg 20)#0
%bJ=getelementptr inbounds i8,i8*%bI,i64 -4
%bK=bitcast i8*%bJ to i32*
store i32 1342177296,i32*%bK,align 4
%bL=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%bM=bitcast i8*%bI to i8**
store i8*%bL,i8**%bM,align 8
%bN=load i8*,i8**%j,align 8
store i8*null,i8**%j,align 8
%bO=getelementptr inbounds i8,i8*%bI,i64 8
%bP=bitcast i8*%bO to i8**
store i8*%bN,i8**%bP,align 8
%bQ=getelementptr inbounds i8,i8*%bI,i64 16
%bR=bitcast i8*%bQ to i32*
store i32 3,i32*%bR,align 4
%bS=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%bT=call fastcc i8*%bF(i8*inreg%bS,i8*inreg%bI)
store i8*%bT,i8**%h,align 8
%bU=call fastcc i8*@_SMLFN4List1_VE(i32 inreg 1,i32 inreg 8)
%bV=getelementptr inbounds i8,i8*%bU,i64 16
%bW=bitcast i8*%bV to i8*(i8*,i8*)**
%bX=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bW,align 8
%bY=bitcast i8*%bU to i8**
%bZ=load i8*,i8**%bY,align 8
store i8*%bZ,i8**%d,align 8
%b0=call i8*@sml_alloc(i32 inreg 20)#0
%b1=getelementptr inbounds i8,i8*%b0,i64 -4
%b2=bitcast i8*%b1 to i32*
store i32 1342177296,i32*%b2,align 4
%b3=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%b4=bitcast i8*%b0 to i8**
store i8*%b3,i8**%b4,align 8
%b5=load i8*,i8**%m,align 8
store i8*null,i8**%m,align 8
%b6=getelementptr inbounds i8,i8*%b0,i64 8
%b7=bitcast i8*%b6 to i8**
store i8*%b5,i8**%b7,align 8
%b8=getelementptr inbounds i8,i8*%b0,i64 16
%b9=bitcast i8*%b8 to i32*
store i32 3,i32*%b9,align 4
%ca=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%cb=call fastcc i8*%bX(i8*inreg%ca,i8*inreg%b0)
store i8*%cb,i8**%i,align 8
%cc=call fastcc i8*@_SMLFN11RecordLabel3Map6insertE(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
store i8*%ch,i8**%d,align 8
%ci=call i8*@sml_alloc(i32 inreg 28)#0
%cj=getelementptr inbounds i8,i8*%ci,i64 -4
%ck=bitcast i8*%cj to i32*
store i32 1342177304,i32*%ck,align 4
%cl=load i8*,i8**%n,align 8
store i8*null,i8**%n,align 8
%cm=bitcast i8*%ci to i8**
store i8*%cl,i8**%cm,align 8
%cn=load i8*,i8**%k,align 8
%co=getelementptr inbounds i8,i8*%ci,i64 8
%cp=bitcast i8*%co to i8**
store i8*%cn,i8**%cp,align 8
%cq=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%cr=getelementptr inbounds i8,i8*%ci,i64 16
%cs=bitcast i8*%cr to i8**
store i8*%cq,i8**%cs,align 8
%ct=getelementptr inbounds i8,i8*%ci,i64 24
%cu=bitcast i8*%ct to i32*
store i32 7,i32*%cu,align 4
%cv=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%cw=call fastcc i8*%cf(i8*inreg%cv,i8*inreg%ci)
store i8*%cw,i8**%j,align 8
%cx=call fastcc i8*@_SMLFN11RecordLabel3Map6insertE(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
store i8*%cC,i8**%c,align 8
%cD=call i8*@sml_alloc(i32 inreg 28)#0
%cE=getelementptr inbounds i8,i8*%cD,i64 -4
%cF=bitcast i8*%cE to i32*
store i32 1342177304,i32*%cF,align 4
%cG=load i8*,i8**%o,align 8
store i8*null,i8**%o,align 8
%cH=bitcast i8*%cD to i8**
store i8*%cG,i8**%cH,align 8
%cI=load i8*,i8**%k,align 8
store i8*null,i8**%k,align 8
%cJ=getelementptr inbounds i8,i8*%cD,i64 8
%cK=bitcast i8*%cJ to i8**
store i8*%cI,i8**%cK,align 8
%cL=load i8*,i8**%q,align 8
store i8*null,i8**%q,align 8
%cM=getelementptr inbounds i8,i8*%cD,i64 16
%cN=bitcast i8*%cM to i8**
store i8*%cL,i8**%cN,align 8
%cO=getelementptr inbounds i8,i8*%cD,i64 24
%cP=bitcast i8*%cO to i32*
store i32 7,i32*%cP,align 4
%cQ=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%cR=call fastcc i8*%cA(i8*inreg%cQ,i8*inreg%cD)
store i8*%cR,i8**%k,align 8
%cS=load i8*,i8**%g,align 8
%cT=bitcast i8*%cS to i32*
%cU=load i32,i32*%cT,align 4
%cV=getelementptr inbounds i8,i8*%cS,i64 4
%cW=bitcast i8*%cV to i32*
%cX=load i32,i32*%cW,align 4
%cY=getelementptr inbounds i8,i8*%cS,i64 8
%cZ=bitcast i8*%cY to i8**
%c0=load i8*,i8**%cZ,align 8
store i8*%c0,i8**%c,align 8
store i8*null,i8**%g,align 8
%c1=getelementptr inbounds i8,i8*%cS,i64 16
%c2=bitcast i8*%c1 to i8**
%c3=load i8*,i8**%c2,align 8
store i8*%c3,i8**%d,align 8
%c4=call i8*@sml_alloc(i32 inreg 28)#0
%c5=bitcast i8*%c4 to i32*
%c6=getelementptr inbounds i8,i8*%c4,i64 -4
%c7=bitcast i8*%c6 to i32*
store i32 1342177304,i32*%c7,align 4
store i8*%c4,i8**%e,align 8
store i32%cU,i32*%c5,align 4
%c8=getelementptr inbounds i8,i8*%c4,i64 4
%c9=bitcast i8*%c8 to i32*
store i32%cX,i32*%c9,align 4
%da=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%db=getelementptr inbounds i8,i8*%c4,i64 8
%dc=bitcast i8*%db to i8**
store i8*%da,i8**%dc,align 8
%dd=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%de=getelementptr inbounds i8,i8*%c4,i64 16
%df=bitcast i8*%de to i8**
store i8*%dd,i8**%df,align 8
%dg=getelementptr inbounds i8,i8*%c4,i64 24
%dh=bitcast i8*%dg to i32*
store i32 6,i32*%dh,align 4
%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**%c,align 8
%dl=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%dm=bitcast i8*%di to i8**
store i8*%dl,i8**%dm,align 8
%dn=load i8*,i8**%f,align 8
store i8*null,i8**%f,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 20)#0
%dt=getelementptr inbounds i8,i8*%ds,i64 -4
%du=bitcast i8*%dt to i32*
store i32 1342177296,i32*%du,align 4
store i8*%ds,i8**%d,align 8
%dv=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%dw=bitcast i8*%ds to i8**
store i8*%dv,i8**%dw,align 8
%dx=load i8*,i8**%l,align 8
store i8*null,i8**%l,align 8
%dy=getelementptr inbounds i8,i8*%ds,i64 8
%dz=bitcast i8*%dy to i8**
store i8*%dx,i8**%dz,align 8
%dA=getelementptr inbounds i8,i8*%ds,i64 16
%dB=bitcast i8*%dA to i32*
store i32 3,i32*%dB,align 4
%dC=call i8*@sml_alloc(i32 inreg 44)#0
%dD=getelementptr inbounds i8,i8*%dC,i64 -4
%dE=bitcast i8*%dD to i32*
store i32 1342177320,i32*%dE,align 4
%dF=load i8*,i8**%d,align 8
%dG=bitcast i8*%dC to i8**
store i8*%dF,i8**%dG,align 8
%dH=load i8*,i8**%h,align 8
%dI=getelementptr inbounds i8,i8*%dC,i64 8
%dJ=bitcast i8*%dI to i8**
store i8*%dH,i8**%dJ,align 8
%dK=load i8*,i8**%i,align 8
%dL=getelementptr inbounds i8,i8*%dC,i64 16
%dM=bitcast i8*%dL to i8**
store i8*%dK,i8**%dM,align 8
%dN=load i8*,i8**%j,align 8
%dO=getelementptr inbounds i8,i8*%dC,i64 24
%dP=bitcast i8*%dO to i8**
store i8*%dN,i8**%dP,align 8
%dQ=load i8*,i8**%k,align 8
%dR=getelementptr inbounds i8,i8*%dC,i64 32
%dS=bitcast i8*%dR to i8**
store i8*%dQ,i8**%dS,align 8
%dT=getelementptr inbounds i8,i8*%dC,i64 40
%dU=bitcast i8*%dT to i32*
store i32 31,i32*%dU,align 4
ret i8*%dC
}
define internal fastcc i8*@_SMLL12bconstraints_239(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
store i8*%a,i8**%f,align 8
store i8*%b,i8**%c,align 8
%h=load atomic i32,i32*@sml_check_flag unordered,align 4
%i=icmp eq i32%h,0
br i1%i,label%j,label%m
j:
%k=bitcast i8*%a to i8**
%l=bitcast i8**%f to i8***
br label%q
m:
call void@sml_check(i32 inreg%h)
%n=load i8*,i8**%c,align 8
%o=bitcast i8**%f to i8***
%p=load i8**,i8***%o,align 8
br label%q
q:
%r=phi i8***[%l,%j],[%o,%m]
%s=phi i8**[%k,%j],[%p,%m]
%t=phi i8*[%b,%j],[%n,%m]
%u=getelementptr inbounds i8,i8*%t,i64 8
%v=bitcast i8*%u to i8**
%w=load i8*,i8**%v,align 8
store i8*%w,i8**%g,align 8
%x=load i8*,i8**%s,align 8
%y=call fastcc i8*@_SMLFN11TypesBasics10substBTvarE(i8*inreg%x)
%z=getelementptr inbounds i8,i8*%y,i64 16
%A=bitcast i8*%z to i8*(i8*,i8*)**
%B=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%A,align 8
%C=bitcast i8*%y to i8**
%D=load i8*,i8**%C,align 8
%E=load i8*,i8**%c,align 8
%F=getelementptr inbounds i8,i8*%E,i64 16
%G=bitcast i8*%F to i8**
%H=load i8*,i8**%G,align 8
%I=call fastcc i8*%B(i8*inreg%D,i8*inreg%H)
store i8*%I,i8**%e,align 8
%J=load i8**,i8***%r,align 8
%K=load i8*,i8**%J,align 8
%L=call fastcc i8*@_SMLFN11TypesBasics10substBTvarE(i8*inreg%K)
%M=getelementptr inbounds i8,i8*%L,i64 16
%N=bitcast i8*%M to i8*(i8*,i8*)**
%O=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%N,align 8
%P=bitcast i8*%L to i8**
%Q=load i8*,i8**%P,align 8
%R=bitcast i8**%c to i8****
%S=load i8***,i8****%R,align 8
%T=load i8**,i8***%S,align 8
%U=load i8*,i8**%T,align 8
%V=call fastcc i8*%O(i8*inreg%Q,i8*inreg%U)
store i8*%V,i8**%d,align 8
%W=load i8**,i8***%r,align 8
store i8*null,i8**%f,align 8
%X=load i8*,i8**%W,align 8
%Y=call fastcc i8*@_SMLFN11TypesBasics10substBTvarE(i8*inreg%X)
%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**%c to i8***
%af=load i8**,i8***%ae,align 8
store i8*null,i8**%c,align 8
%ag=load i8*,i8**%af,align 8
%ah=getelementptr inbounds i8,i8*%ag,i64 8
%ai=bitcast i8*%ah to i8**
%aj=load i8*,i8**%ai,align 8
%ak=call fastcc i8*%ab(i8*inreg%ad,i8*inreg%aj)
store i8*%ak,i8**%c,align 8
%al=call i8*@sml_alloc(i32 inreg 20)#0
%am=getelementptr inbounds i8,i8*%al,i64 -4
%an=bitcast i8*%am to i32*
store i32 1342177296,i32*%an,align 4
store i8*%al,i8**%f,align 8
%ao=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%ap=bitcast i8*%al to i8**
store i8*%ao,i8**%ap,align 8
%aq=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ar=getelementptr inbounds i8,i8*%al,i64 8
%as=bitcast i8*%ar to i8**
store i8*%aq,i8**%as,align 8
%at=getelementptr inbounds i8,i8*%al,i64 16
%au=bitcast i8*%at to i32*
store i32 3,i32*%au,align 4
%av=call i8*@sml_alloc(i32 inreg 28)#0
%aw=getelementptr inbounds i8,i8*%av,i64 -4
%ax=bitcast i8*%aw to i32*
store i32 1342177304,i32*%ax,align 4
%ay=load i8*,i8**%f,align 8
%az=bitcast i8*%av to i8**
store i8*%ay,i8**%az,align 8
%aA=load i8*,i8**%g,align 8
%aB=getelementptr inbounds i8,i8*%av,i64 8
%aC=bitcast i8*%aB to i8**
store i8*%aA,i8**%aC,align 8
%aD=load i8*,i8**%e,align 8
%aE=getelementptr inbounds i8,i8*%av,i64 16
%aF=bitcast i8*%aE to i8**
store i8*%aD,i8**%aF,align 8
%aG=getelementptr inbounds i8,i8*%av,i64 24
%aH=bitcast i8*%aG to i32*
store i32 7,i32*%aH,align 4
ret i8*%av
}
define internal fastcc i8*@_SMLLN14TypedCalcUtils9freshInstE_208(i8*inreg%a)unnamed_addr#2 gc"smlsharp"{
q:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
%h=alloca i8*,align 8
%i=alloca i8*,align 8
%j=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
call void@llvm.gcroot(i8**%h,i8*null)#0
call void@llvm.gcroot(i8**%i,i8*null)#0
call void@llvm.gcroot(i8**%j,i8*null)#0
store i8*%a,i8**%b,align 8
%k=load atomic i32,i32*@sml_check_flag unordered,align 4
%l=icmp eq i32%k,0
br i1%l,label%o,label%m
m:
call void@sml_check(i32 inreg%k)
%n=load i8*,i8**%b,align 8
br label%o
o:
%p=phi i8*[%n,%m],[%a,%q]
store i8*null,i8**%b,align 8
%r=bitcast i8*%p to i8**
%s=load i8*,i8**%r,align 8
store i8*%s,i8**%f,align 8
%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**%g,align 8
%w=call fastcc i32@_SMLFN11TypesBasics6monoTyE(i8*inreg%s)
%x=icmp eq i32%w,0
br i1%x,label%K,label%y
y:
%z=call i8*@sml_alloc(i32 inreg 36)#0
%A=getelementptr inbounds i8,i8*%z,i64 -4
%B=bitcast i8*%A to i32*
store i32 1342177312,i32*%B,align 4
%C=load i8*,i8**%f,align 8
%D=bitcast i8*%z to i8**
store i8*%C,i8**%D,align 8
%E=getelementptr inbounds i8,i8*%z,i64 8
call void@llvm.memset.p0i8.i64(i8*%E,i8 0,i64 16,i1 false)
%F=load i8*,i8**%g,align 8
%G=getelementptr inbounds i8,i8*%z,i64 24
%H=bitcast i8*%G to i8**
store i8*%F,i8**%H,align 8
%I=getelementptr inbounds i8,i8*%z,i64 32
%J=bitcast i8*%I to i32*
store i32 15,i32*%J,align 4
ret i8*%z
K:
%L=load i8*,i8**%g,align 8
%M=call fastcc i8*@_SMLFN14TypedCalcUtils11getLocOfExpE(i8*inreg%L)
store i8*%M,i8**%b,align 8
%N=load i8*,i8**%f,align 8
%O=icmp eq i8*%N,null
br i1%O,label%S,label%P
P:
%Q=bitcast i8*%N to i32*
%R=load i32,i32*%Q,align 4
switch i32%R,label%S[
i32 6,label%nF
i32 8,label%ei
i32 7,label%ae
]
S:
store i8*null,i8**%b,align 8
%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
%W=load i8*,i8**%f,align 8
%X=bitcast i8*%T to i8**
store i8*%W,i8**%X,align 8
%Y=getelementptr inbounds i8,i8*%T,i64 8
call void@llvm.memset.p0i8.i64(i8*%Y,i8 0,i64 16,i1 false)
%Z=load i8*,i8**%g,align 8
%aa=getelementptr inbounds i8,i8*%T,i64 24
%ab=bitcast i8*%aa to i8**
store i8*%Z,i8**%ab,align 8
%ac=getelementptr inbounds i8,i8*%T,i64 32
%ad=bitcast i8*%ac to i32*
store i32 15,i32*%ad,align 4
ret i8*%T
ae:
%af=getelementptr inbounds i8,i8*%N,i64 8
%ag=bitcast i8*%af to i8**
%ah=load i8*,i8**%ag,align 8
store i8*%ah,i8**%h,align 8
%ai=getelementptr inbounds i8,i8*%ah,i64 8
%aj=bitcast i8*%ai to i8**
%ak=load i8*,i8**%aj,align 8
%al=call fastcc i8*@_SMLFN11TypesBasics10freshSubstE(i8*inreg%ak)
store i8*%al,i8**%c,align 8
%am=call fastcc i8*@_SMLFN11TypesBasics10substBTvarE(i8*inreg%al)
%an=getelementptr inbounds i8,i8*%am,i64 16
%ao=bitcast i8*%an to i8*(i8*,i8*)**
%ap=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%ao,align 8
%aq=bitcast i8*%am to i8**
%ar=load i8*,i8**%aq,align 8
%as=bitcast i8**%h to i8***
%at=load i8**,i8***%as,align 8
%au=load i8*,i8**%at,align 8
%av=call fastcc i8*%ap(i8*inreg%ar,i8*inreg%au)
store i8*%av,i8**%d,align 8
%aw=load i8*,i8**%g,align 8
%ax=icmp eq i8*%aw,null
br i1%ax,label%bM,label%ay
ay:
%az=bitcast i8*%aw to i32*
%aA=load i32,i32*%az,align 4
%aB=icmp eq i32%aA,6
br i1%aB,label%aC,label%bM
aC:
%aD=getelementptr inbounds i8,i8*%aw,i64 8
%aE=bitcast i8*%aD to i8**
%aF=load i8*,i8**%aE,align 8
%aG=bitcast i8*%aF to i8**
%aH=load i8*,i8**%aG,align 8
%aI=icmp eq i8*%aH,null
br i1%aI,label%aJ,label%bM
aJ:
%aK=getelementptr inbounds i8,i8*%aF,i64 8
%aL=bitcast i8*%aK to i8**
%aM=load i8*,i8**%aL,align 8
store i8*%aM,i8**%e,align 8
%aN=getelementptr inbounds i8,i8*%aF,i64 16
%aO=bitcast i8*%aN to i8**
%aP=load i8*,i8**%aO,align 8
%aQ=icmp eq i8*%aP,null
br i1%aQ,label%aR,label%bL
aR:
store i8*null,i8**%f,align 8
store i8*null,i8**%g,align 8
%aS=getelementptr inbounds i8,i8*%aF,i64 24
%aT=bitcast i8*%aS to i8**
%aU=load i8*,i8**%aT,align 8
store i8*%aU,i8**%b,align 8
%aV=call fastcc i8*@_SMLFN14BoundTypeVarID3Map9listItemsE(i32 inreg 1,i32 inreg 8)
%aW=getelementptr inbounds i8,i8*%aV,i64 16
%aX=bitcast i8*%aW to i8*(i8*,i8*)**
%aY=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aX,align 8
%aZ=bitcast i8*%aV to i8**
%a0=load i8*,i8**%aZ,align 8
%a1=load i8*,i8**%c,align 8
%a2=call fastcc i8*%aY(i8*inreg%a0,i8*inreg%a1)
store i8*%a2,i8**%f,align 8
%a3=call i8*@sml_alloc(i32 inreg 12)#0
%a4=getelementptr inbounds i8,i8*%a3,i64 -4
%a5=bitcast i8*%a4 to i32*
store i32 1342177288,i32*%a5,align 4
store i8*%a3,i8**%g,align 8
%a6=load i8*,i8**%f,align 8
store i8*null,i8**%f,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 i32*
store i32 1,i32*%a9,align 4
%ba=call i8*@sml_alloc(i32 inreg 36)#0
%bb=getelementptr inbounds i8,i8*%ba,i64 -4
%bc=bitcast i8*%bb to i32*
store i32 1342177312,i32*%bc,align 4
%bd=bitcast i8*%ba to i8**
store i8*null,i8**%bd,align 8
%be=load i8*,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**%g,align 8
%bi=getelementptr inbounds i8,i8*%ba,i64 16
%bj=bitcast i8*%bi to i8**
store i8*%bh,i8**%bj,align 8
%bk=load i8*,i8**%b,align 8
%bl=getelementptr inbounds i8,i8*%ba,i64 24
%bm=bitcast i8*%bl to i8**
store i8*%bk,i8**%bm,align 8
%bn=getelementptr inbounds i8,i8*%ba,i64 32
%bo=bitcast i8*%bn to i32*
store i32 15,i32*%bo,align 4
store i8*null,i8**%b,align 8
store i8*%bh,i8**%f,align 8
store i8*%bk,i8**%g,align 8
%bp=call i8*@sml_alloc(i32 inreg 36)#0
%bq=getelementptr inbounds i8,i8*%bp,i64 -4
%br=bitcast i8*%bq to i32*
store i32 1342177312,i32*%br,align 4
store i8*%bp,i8**%i,align 8
%bs=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%bt=bitcast i8*%bp to i8**
store i8*%bs,i8**%bt,align 8
%bu=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%bv=getelementptr inbounds i8,i8*%bp,i64 8
%bw=bitcast i8*%bv to i8**
store i8*%bu,i8**%bw,align 8
%bx=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%by=getelementptr inbounds i8,i8*%bp,i64 16
%bz=bitcast i8*%by to i8**
store i8*%bx,i8**%bz,align 8
%bA=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%bB=getelementptr inbounds i8,i8*%bp,i64 24
%bC=bitcast i8*%bB to i8**
store i8*%bA,i8**%bC,align 8
%bD=getelementptr inbounds i8,i8*%bp,i64 32
%bE=bitcast i8*%bD to i32*
store i32 15,i32*%bE,align 4
%bF=call i8*@sml_alloc(i32 inreg 20)#0
%bG=bitcast i8*%bF to i32*
%bH=getelementptr inbounds i8,i8*%bF,i64 -4
%bI=bitcast i8*%bH to i32*
store i32 1342177296,i32*%bI,align 4
%bJ=getelementptr inbounds i8,i8*%bF,i64 4
%bK=bitcast i8*%bJ to i32*
store i32 0,i32*%bK,align 1
store i32 6,i32*%bG,align 4
br label%ch
bL:
store i8*null,i8**%e,align 8
br label%bM
bM:
%bN=call fastcc i8*@_SMLFN14BoundTypeVarID3Map9listItemsE(i32 inreg 1,i32 inreg 8)
%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=load i8*,i8**%c,align 8
%bU=call fastcc i8*%bQ(i8*inreg%bS,i8*inreg%bT)
store i8*%bU,i8**%e,align 8
%bV=call i8*@sml_alloc(i32 inreg 36)#0
%bW=getelementptr inbounds i8,i8*%bV,i64 -4
%bX=bitcast i8*%bW to i32*
store i32 1342177312,i32*%bX,align 4
store i8*%bV,i8**%i,align 8
%bY=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%bZ=bitcast i8*%bV to i8**
store i8*%bY,i8**%bZ,align 8
%b0=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%b1=getelementptr inbounds i8,i8*%bV,i64 8
%b2=bitcast i8*%b1 to i8**
store i8*%b0,i8**%b2,align 8
%b3=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%b4=getelementptr inbounds i8,i8*%bV,i64 16
%b5=bitcast i8*%b4 to i8**
store i8*%b3,i8**%b5,align 8
%b6=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%b7=getelementptr inbounds i8,i8*%bV,i64 24
%b8=bitcast i8*%b7 to i8**
store i8*%b6,i8**%b8,align 8
%b9=getelementptr inbounds i8,i8*%bV,i64 32
%ca=bitcast i8*%b9 to i32*
store i32 15,i32*%ca,align 4
%cb=call i8*@sml_alloc(i32 inreg 20)#0
%cc=bitcast i8*%cb to i32*
%cd=getelementptr inbounds i8,i8*%cb,i64 -4
%ce=bitcast i8*%cd to i32*
store i32 1342177296,i32*%ce,align 4
%cf=getelementptr inbounds i8,i8*%cb,i64 4
%cg=bitcast i8*%cf to i32*
store i32 0,i32*%cg,align 1
store i32 38,i32*%cc,align 4
br label%ch
ch:
%ci=phi i8*[%cb,%bM],[%bF,%aR]
%cj=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%ck=getelementptr inbounds i8,i8*%ci,i64 8
%cl=bitcast i8*%ck to i8**
store i8*%cj,i8**%cl,align 8
%cm=getelementptr inbounds i8,i8*%ci,i64 16
%cn=bitcast i8*%cm to i32*
store i32 2,i32*%cn,align 4
store i8*%ci,i8**%b,align 8
%co=call fastcc i8*@_SMLFN4List3mapE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%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**%e,align 8
%cu=call i8*@sml_alloc(i32 inreg 12)#0
%cv=getelementptr inbounds i8,i8*%cu,i64 -4
%cw=bitcast i8*%cv to i32*
store i32 1342177288,i32*%cw,align 4
store i8*%cu,i8**%f,align 8
%cx=load i8*,i8**%c,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 i32*
store i32 1,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**%f,align 8
store i8*null,i8**%f,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*)*@_SMLL12bconstraints_239 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*)*@_SMLL12bconstraints_239 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=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%cN=call fastcc i8*%cr(i8*inreg%cM,i8*inreg%cB)
%cO=getelementptr inbounds i8,i8*%cN,i64 16
%cP=bitcast i8*%cO to i8*(i8*,i8*)**
%cQ=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%cP,align 8
%cR=bitcast i8*%cN to i8**
%cS=load i8*,i8**%cR,align 8
%cT=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%cU=getelementptr inbounds i8,i8*%cT,i64 16
%cV=bitcast i8*%cU to i8**
%cW=load i8*,i8**%cV,align 8
%cX=call fastcc i8*%cQ(i8*inreg%cS,i8*inreg%cW)
store i8*%cX,i8**%e,align 8
%cY=call i8*@sml_alloc(i32 inreg 20)#0
%cZ=getelementptr inbounds i8,i8*%cY,i64 -4
%c0=bitcast i8*%cZ to i32*
store i32 1342177296,i32*%c0,align 4
%c1=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%c2=bitcast i8*%cY to i8**
store i8*%c1,i8**%c2,align 8
%c3=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%c4=getelementptr inbounds i8,i8*%cY,i64 8
%c5=bitcast i8*%c4 to i8**
store i8*%c3,i8**%c5,align 8
%c6=getelementptr inbounds i8,i8*%cY,i64 16
%c7=bitcast i8*%c6 to i32*
store i32 3,i32*%c7,align 4
%c8=call fastcc i8*@_SMLLN14TypedCalcUtils9freshInstE_208(i8*inreg%cY)
%c9=bitcast i8*%c8 to i8**
%da=load i8*,i8**%c9,align 8
store i8*%da,i8**%b,align 8
%db=getelementptr inbounds i8,i8*%c8,i64 8
%dc=bitcast i8*%db to i8**
%dd=load i8*,i8**%dc,align 8
store i8*%dd,i8**%d,align 8
%de=getelementptr inbounds i8,i8*%c8,i64 16
%df=bitcast i8*%de to i8**
%dg=load i8*,i8**%df,align 8
store i8*%dg,i8**%f,align 8
%dh=getelementptr inbounds i8,i8*%c8,i64 24
%di=bitcast i8*%dh to i8**
%dj=load i8*,i8**%di,align 8
store i8*%dj,i8**%g,align 8
%dk=call fastcc i8*@_SMLFN4List1_VE(i32 inreg 1,i32 inreg 8)
%dl=getelementptr inbounds i8,i8*%dk,i64 16
%dm=bitcast i8*%dl to i8*(i8*,i8*)**
%dn=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%dm,align 8
%do=bitcast i8*%dk to i8**
%dp=load i8*,i8**%do,align 8
store i8*%dp,i8**%h,align 8
%dq=call fastcc i8*@_SMLFN14BoundTypeVarID3Map9listItemsE(i32 inreg 1,i32 inreg 8)
%dr=getelementptr inbounds i8,i8*%dq,i64 16
%ds=bitcast i8*%dr to i8*(i8*,i8*)**
%dt=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%ds,align 8
%du=bitcast i8*%dq to i8**
%dv=load i8*,i8**%du,align 8
%dw=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%dx=call fastcc i8*%dt(i8*inreg%dv,i8*inreg%dw)
store i8*%dx,i8**%c,align 8
%dy=call i8*@sml_alloc(i32 inreg 20)#0
%dz=getelementptr inbounds i8,i8*%dy,i64 -4
%dA=bitcast i8*%dz to i32*
store i32 1342177296,i32*%dA,align 4
%dB=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%dC=bitcast i8*%dy to i8**
store i8*%dB,i8**%dC,align 8
%dD=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%dE=getelementptr inbounds i8,i8*%dy,i64 8
%dF=bitcast i8*%dE to i8**
store i8*%dD,i8**%dF,align 8
%dG=getelementptr inbounds i8,i8*%dy,i64 16
%dH=bitcast i8*%dG to i32*
store i32 3,i32*%dH,align 4
%dI=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%dJ=call fastcc i8*%dn(i8*inreg%dI,i8*inreg%dy)
store i8*%dJ,i8**%c,align 8
%dK=call fastcc i8*@_SMLFN4List1_VE(i32 inreg 1,i32 inreg 8)
%dL=getelementptr inbounds i8,i8*%dK,i64 16
%dM=bitcast i8*%dL to i8*(i8*,i8*)**
%dN=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%dM,align 8
%dO=bitcast i8*%dK to i8**
%dP=load i8*,i8**%dO,align 8
store i8*%dP,i8**%d,align 8
%dQ=call i8*@sml_alloc(i32 inreg 20)#0
%dR=getelementptr inbounds i8,i8*%dQ,i64 -4
%dS=bitcast i8*%dR to i32*
store i32 1342177296,i32*%dS,align 4
%dT=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%dU=bitcast i8*%dQ to i8**
store i8*%dT,i8**%dU,align 8
%dV=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%dW=getelementptr inbounds i8,i8*%dQ,i64 8
%dX=bitcast i8*%dW to i8**
store i8*%dV,i8**%dX,align 8
%dY=getelementptr inbounds i8,i8*%dQ,i64 16
%dZ=bitcast i8*%dY to i32*
store i32 3,i32*%dZ,align 4
%d0=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%d1=call fastcc i8*%dN(i8*inreg%d0,i8*inreg%dQ)
store i8*%d1,i8**%d,align 8
%d2=call i8*@sml_alloc(i32 inreg 36)#0
%d3=getelementptr inbounds i8,i8*%d2,i64 -4
%d4=bitcast i8*%d3 to i32*
store i32 1342177312,i32*%d4,align 4
%d5=load i8*,i8**%b,align 8
%d6=bitcast i8*%d2 to i8**
store i8*%d5,i8**%d6,align 8
%d7=load i8*,i8**%c,align 8
%d8=getelementptr inbounds i8,i8*%d2,i64 8
%d9=bitcast i8*%d8 to i8**
store i8*%d7,i8**%d9,align 8
%ea=load i8*,i8**%d,align 8
%eb=getelementptr inbounds i8,i8*%d2,i64 16
%ec=bitcast i8*%eb to i8**
store i8*%ea,i8**%ec,align 8
%ed=load i8*,i8**%g,align 8
%ee=getelementptr inbounds i8,i8*%d2,i64 24
%ef=bitcast i8*%ee to i8**
store i8*%ed,i8**%ef,align 8
%eg=getelementptr inbounds i8,i8*%d2,i64 32
%eh=bitcast i8*%eg to i32*
store i32 15,i32*%eh,align 4
ret i8*%d2
ei:
%ej=getelementptr inbounds i8,i8*%N,i64 8
%ek=bitcast i8*%ej to i8**
%el=load i8*,i8**%ek,align 8
store i8*%el,i8**%h,align 8
%em=load i8*,i8**%g,align 8
%en=icmp eq i8*%em,null
br i1%en,label%g4,label%eo
eo:
%ep=bitcast i8*%em to i32*
%eq=load i32,i32*%ep,align 4
switch i32%eq,label%g4[
i32 33,label%k0
i32 5,label%er
i32 18,label%er
i32 22,label%er
i32 32,label%er
i32 40,label%er
]
er:
%es=call fastcc i8*@_SMLFN11RecordLabel3Map6foldliE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%et=getelementptr inbounds i8,i8*%es,i64 16
%eu=bitcast i8*%et to i8*(i8*,i8*)**
%ev=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%eu,align 8
%ew=bitcast i8*%es to i8**
%ex=load i8*,i8**%ew,align 8
store i8*%ex,i8**%c,align 8
%ey=call i8*@sml_alloc(i32 inreg 28)#0
%ez=getelementptr inbounds i8,i8*%ey,i64 -4
%eA=bitcast i8*%ez to i32*
store i32 1342177304,i32*%eA,align 4
store i8*%ey,i8**%d,align 8
%eB=load i8*,i8**%b,align 8
%eC=bitcast i8*%ey to i8**
store i8*%eB,i8**%eC,align 8
%eD=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%eE=getelementptr inbounds i8,i8*%ey,i64 8
%eF=bitcast i8*%eE to i8**
store i8*%eD,i8**%eF,align 8
%eG=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%eH=getelementptr inbounds i8,i8*%ey,i64 16
%eI=bitcast i8*%eH to i8**
store i8*%eG,i8**%eI,align 8
%eJ=getelementptr inbounds i8,i8*%ey,i64 24
%eK=bitcast i8*%eJ to i32*
store i32 7,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**%d,align 8
store i8*null,i8**%d,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*)*@_SMLLN14TypedCalcUtils9freshInstE_238 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*)*@_SMLLN14TypedCalcUtils9freshInstE_238 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**%c,align 8
store i8*null,i8**%c,align 8
%eX=call fastcc i8*%ev(i8*inreg%eW,i8*inreg%eL)
%eY=getelementptr inbounds i8,i8*%eX,i64 16
%eZ=bitcast i8*%eY to i8*(i8*,i8*)**
%e0=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%eZ,align 8
%e1=bitcast i8*%eX to i8**
%e2=load i8*,i8**%e1,align 8
store i8*%e2,i8**%e,align 8
%e3=call fastcc i8*@_SMLFN11RecordLabel3Map5emptyE(i32 inreg 1,i32 inreg 8)
store i8*%e3,i8**%c,align 8
%e4=call fastcc i8*@_SMLFN11RecordLabel3Map5emptyE(i32 inreg 1,i32 inreg 8)
store i8*%e4,i8**%d,align 8
%e5=call i8*@sml_alloc(i32 inreg 44)#0
%e6=getelementptr inbounds i8,i8*%e5,i64 -4
%e7=bitcast i8*%e6 to i32*
store i32 1342177320,i32*%e7,align 4
call void@llvm.memset.p0i8.i64(i8*%e5,i8 0,i64 24,i1 false)
%e8=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%e9=getelementptr inbounds i8,i8*%e5,i64 24
%fa=bitcast i8*%e9 to i8**
store i8*%e8,i8**%fa,align 8
%fb=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%fc=getelementptr inbounds i8,i8*%e5,i64 32
%fd=bitcast i8*%fc to i8**
store i8*%fb,i8**%fd,align 8
%fe=getelementptr inbounds i8,i8*%e5,i64 40
%ff=bitcast i8*%fe to i32*
store i32 31,i32*%ff,align 4
%fg=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%fh=call fastcc i8*%e0(i8*inreg%fg,i8*inreg%e5)
%fi=getelementptr inbounds i8,i8*%fh,i64 16
%fj=bitcast i8*%fi to i8*(i8*,i8*)**
%fk=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%fj,align 8
%fl=bitcast i8*%fh to i8**
%fm=load i8*,i8**%fl,align 8
%fn=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%fo=call fastcc i8*%fk(i8*inreg%fm,i8*inreg%fn)
store i8*%fo,i8**%g,align 8
%fp=getelementptr inbounds i8,i8*%fo,i64 8
%fq=bitcast i8*%fp to i8**
%fr=load i8*,i8**%fq,align 8
store i8*%fr,i8**%c,align 8
%fs=getelementptr inbounds i8,i8*%fo,i64 16
%ft=bitcast i8*%fs to i8**
%fu=load i8*,i8**%ft,align 8
store i8*%fu,i8**%d,align 8
%fv=getelementptr inbounds i8,i8*%fo,i64 24
%fw=bitcast i8*%fv to i8**
%fx=load i8*,i8**%fw,align 8
store i8*%fx,i8**%e,align 8
%fy=getelementptr inbounds i8,i8*%fo,i64 32
%fz=bitcast i8*%fy to i8**
%fA=load i8*,i8**%fz,align 8
store i8*%fA,i8**%f,align 8
%fB=call fastcc i8*@_SMLFN4List3revE(i32 inreg 1,i32 inreg 8)
%fC=getelementptr inbounds i8,i8*%fB,i64 16
%fD=bitcast i8*%fC to i8*(i8*,i8*)**
%fE=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%fD,align 8
%fF=bitcast i8*%fB to i8**
%fG=load i8*,i8**%fF,align 8
%fH=bitcast i8**%g to i8***
%fI=load i8**,i8***%fH,align 8
store i8*null,i8**%g,align 8
%fJ=load i8*,i8**%fI,align 8
%fK=call fastcc i8*%fE(i8*inreg%fG,i8*inreg%fJ)
store i8*%fK,i8**%g,align 8
%fL=call i8*@sml_alloc(i32 inreg 28)#0
%fM=getelementptr inbounds i8,i8*%fL,i64 -4
%fN=bitcast i8*%fM to i32*
store i32 1342177304,i32*%fN,align 4
store i8*%fL,i8**%h,align 8
%fO=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%fP=bitcast i8*%fL to i8**
store i8*%fO,i8**%fP,align 8
%fQ=load i8*,i8**%b,align 8
%fR=getelementptr inbounds i8,i8*%fL,i64 8
%fS=bitcast i8*%fR to i8**
store i8*%fQ,i8**%fS,align 8
%fT=load i8*,i8**%e,align 8
%fU=getelementptr inbounds i8,i8*%fL,i64 16
%fV=bitcast i8*%fU to i8**
store i8*%fT,i8**%fV,align 8
%fW=getelementptr inbounds i8,i8*%fL,i64 24
%fX=bitcast i8*%fW to i32*
store i32 7,i32*%fX,align 4
%fY=call i8*@sml_alloc(i32 inreg 20)#0
%fZ=getelementptr inbounds i8,i8*%fY,i64 -4
%f0=bitcast i8*%fZ to i32*
store i32 1342177296,i32*%f0,align 4
store i8*%fY,i8**%i,align 8
%f1=getelementptr inbounds i8,i8*%fY,i64 4
%f2=bitcast i8*%f1 to i32*
store i32 0,i32*%f2,align 1
%f3=bitcast i8*%fY to i32*
store i32 33,i32*%f3,align 4
%f4=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%f5=getelementptr inbounds i8,i8*%fY,i64 8
%f6=bitcast i8*%f5 to i8**
store i8*%f4,i8**%f6,align 8
%f7=getelementptr inbounds i8,i8*%fY,i64 16
%f8=bitcast i8*%f7 to i32*
store i32 2,i32*%f8,align 4
%f9=load i8*,i8**%g,align 8
%ga=icmp eq i8*%f9,null
br i1%ga,label%gb,label%gc
gb:
store i8*null,i8**%b,align 8
store i8*null,i8**%g,align 8
store i8*null,i8**%i,align 8
br label%gB
gc:
%gd=call i8*@sml_alloc(i32 inreg 28)#0
%ge=getelementptr inbounds i8,i8*%gd,i64 -4
%gf=bitcast i8*%ge to i32*
store i32 1342177304,i32*%gf,align 4
store i8*%gd,i8**%f,align 8
%gg=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%gh=bitcast i8*%gd to i8**
store i8*%gg,i8**%gh,align 8
%gi=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%gj=getelementptr inbounds i8,i8*%gd,i64 8
%gk=bitcast i8*%gj to i8**
store i8*%gi,i8**%gk,align 8
%gl=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%gm=getelementptr inbounds i8,i8*%gd,i64 16
%gn=bitcast i8*%gm to i8**
store i8*%gl,i8**%gn,align 8
%go=getelementptr inbounds i8,i8*%gd,i64 24
%gp=bitcast i8*%go to i32*
store i32 7,i32*%gp,align 4
%gq=call i8*@sml_alloc(i32 inreg 20)#0
%gr=bitcast i8*%gq to i32*
%gs=getelementptr inbounds i8,i8*%gq,i64 -4
%gt=bitcast i8*%gs to i32*
store i32 1342177296,i32*%gt,align 4
%gu=getelementptr inbounds i8,i8*%gq,i64 4
%gv=bitcast i8*%gu to i32*
store i32 0,i32*%gv,align 1
store i32 27,i32*%gr,align 4
%gw=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%gx=getelementptr inbounds i8,i8*%gq,i64 8
%gy=bitcast i8*%gx to i8**
store i8*%gw,i8**%gy,align 8
%gz=getelementptr inbounds i8,i8*%gq,i64 16
%gA=bitcast i8*%gz to i32*
store i32 2,i32*%gA,align 4
br label%gB
gB:
%gC=phi i8*[%gq,%gc],[%fY,%gb]
store i8*%gC,i8**%b,align 8
%gD=call i8*@sml_alloc(i32 inreg 20)#0
%gE=getelementptr inbounds i8,i8*%gD,i64 -4
%gF=bitcast i8*%gE to i32*
store i32 1342177296,i32*%gF,align 4
store i8*%gD,i8**%f,align 8
%gG=getelementptr inbounds i8,i8*%gD,i64 4
%gH=bitcast i8*%gG to i32*
store i32 0,i32*%gH,align 1
%gI=bitcast i8*%gD to i32*
store i32 8,i32*%gI,align 4
%gJ=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%gK=getelementptr inbounds i8,i8*%gD,i64 8
%gL=bitcast i8*%gK to i8**
store i8*%gJ,i8**%gL,align 8
%gM=getelementptr inbounds i8,i8*%gD,i64 16
%gN=bitcast i8*%gM to i32*
store i32 2,i32*%gN,align 4
%gO=call i8*@sml_alloc(i32 inreg 36)#0
%gP=getelementptr inbounds i8,i8*%gO,i64 -4
%gQ=bitcast i8*%gP to i32*
store i32 1342177312,i32*%gQ,align 4
%gR=load i8*,i8**%f,align 8
%gS=bitcast i8*%gO to i8**
store i8*%gR,i8**%gS,align 8
%gT=load i8*,i8**%c,align 8
%gU=getelementptr inbounds i8,i8*%gO,i64 8
%gV=bitcast i8*%gU to i8**
store i8*%gT,i8**%gV,align 8
%gW=load i8*,i8**%d,align 8
%gX=getelementptr inbounds i8,i8*%gO,i64 16
%gY=bitcast i8*%gX to i8**
store i8*%gW,i8**%gY,align 8
%gZ=load i8*,i8**%b,align 8
%g0=getelementptr inbounds i8,i8*%gO,i64 24
%g1=bitcast i8*%g0 to i8**
store i8*%gZ,i8**%g1,align 8
%g2=getelementptr inbounds i8,i8*%gO,i64 32
%g3=bitcast i8*%g2 to i32*
store i32 15,i32*%g3,align 4
ret i8*%gO
g4:
%g5=call fastcc i32@_SMLFN5VarID8generateE(i32 inreg 0)
%g6=call i8*@sml_alloc(i32 inreg 28)#0
%g7=bitcast i8*%g6 to i32*
%g8=getelementptr inbounds i8,i8*%g6,i64 -4
%g9=bitcast i8*%g8 to i32*
store i32 1342177304,i32*%g9,align 4
store i8*%g6,i8**%c,align 8
store i32%g5,i32*%g7,align 4
%ha=getelementptr inbounds i8,i8*%g6,i64 4
%hb=bitcast i8*%ha to i32*
store i32 0,i32*%hb,align 4
%hc=getelementptr inbounds i8,i8*%g6,i64 8
%hd=bitcast i8*%hc to i8**
store i8*null,i8**%hd,align 8
%he=load i8*,i8**%f,align 8
%hf=getelementptr inbounds i8,i8*%g6,i64 16
%hg=bitcast i8*%hf to i8**
store i8*%he,i8**%hg,align 8
%hh=getelementptr inbounds i8,i8*%g6,i64 24
%hi=bitcast i8*%hh to i32*
store i32 6,i32*%hi,align 4
store i8*null,i8**%d,align 8
store i8*%he,i8**%e,align 8
%hj=call i8*@sml_alloc(i32 inreg 28)#0
%hk=bitcast i8*%hj to i32*
%hl=getelementptr inbounds i8,i8*%hj,i64 -4
%hm=bitcast i8*%hl to i32*
store i32 1342177304,i32*%hm,align 4
store i8*%hj,i8**%i,align 8
store i32%g5,i32*%hk,align 4
%hn=getelementptr inbounds i8,i8*%hj,i64 4
%ho=bitcast i8*%hn to i32*
store i32 0,i32*%ho,align 4
%hp=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%hq=getelementptr inbounds i8,i8*%hj,i64 8
%hr=bitcast i8*%hq to i8**
store i8*%hp,i8**%hr,align 8
%hs=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%ht=getelementptr inbounds i8,i8*%hj,i64 16
%hu=bitcast i8*%ht to i8**
store i8*%hs,i8**%hu,align 8
%hv=getelementptr inbounds i8,i8*%hj,i64 24
%hw=bitcast i8*%hv to i32*
store i32 6,i32*%hw,align 4
%hx=call i8*@sml_alloc(i32 inreg 20)#0
%hy=getelementptr inbounds i8,i8*%hx,i64 -4
%hz=bitcast i8*%hy to i32*
store i32 1342177296,i32*%hz,align 4
store i8*%hx,i8**%e,align 8
%hA=getelementptr inbounds i8,i8*%hx,i64 4
%hB=bitcast i8*%hA to i32*
store i32 0,i32*%hB,align 1
%hC=bitcast i8*%hx to i32*
store i32 40,i32*%hC,align 4
%hD=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%hE=getelementptr inbounds i8,i8*%hx,i64 8
%hF=bitcast i8*%hE to i8**
store i8*%hD,i8**%hF,align 8
%hG=getelementptr inbounds i8,i8*%hx,i64 16
%hH=bitcast i8*%hG to i32*
store i32 2,i32*%hH,align 4
%hI=call fastcc i8*@_SMLFN11RecordLabel3Map6foldliE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%hJ=getelementptr inbounds i8,i8*%hI,i64 16
%hK=bitcast i8*%hJ to i8*(i8*,i8*)**
%hL=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%hK,align 8
%hM=bitcast i8*%hI to i8**
%hN=load i8*,i8**%hM,align 8
store i8*%hN,i8**%d,align 8
%hO=call i8*@sml_alloc(i32 inreg 28)#0
%hP=getelementptr inbounds i8,i8*%hO,i64 -4
%hQ=bitcast i8*%hP to i32*
store i32 1342177304,i32*%hQ,align 4
store i8*%hO,i8**%i,align 8
%hR=load i8*,i8**%b,align 8
%hS=bitcast i8*%hO to i8**
store i8*%hR,i8**%hS,align 8
%hT=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%hU=getelementptr inbounds i8,i8*%hO,i64 8
%hV=bitcast i8*%hU to i8**
store i8*%hT,i8**%hV,align 8
%hW=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%hX=getelementptr inbounds i8,i8*%hO,i64 16
%hY=bitcast i8*%hX to i8**
store i8*%hW,i8**%hY,align 8
%hZ=getelementptr inbounds i8,i8*%hO,i64 24
%h0=bitcast i8*%hZ to i32*
store i32 7,i32*%h0,align 4
%h1=call i8*@sml_alloc(i32 inreg 28)#0
%h2=getelementptr inbounds i8,i8*%h1,i64 -4
%h3=bitcast i8*%h2 to i32*
store i32 1342177304,i32*%h3,align 4
%h4=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%h5=bitcast i8*%h1 to i8**
store i8*%h4,i8**%h5,align 8
%h6=getelementptr inbounds i8,i8*%h1,i64 8
%h7=bitcast i8*%h6 to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN14TypedCalcUtils9freshInstE_237 to void(...)*),void(...)**%h7,align 8
%h8=getelementptr inbounds i8,i8*%h1,i64 16
%h9=bitcast i8*%h8 to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN14TypedCalcUtils9freshInstE_237 to void(...)*),void(...)**%h9,align 8
%ia=getelementptr inbounds i8,i8*%h1,i64 24
%ib=bitcast i8*%ia to i32*
store i32 -2147483647,i32*%ib,align 4
%ic=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%id=call fastcc i8*%hL(i8*inreg%ic,i8*inreg%h1)
%ie=getelementptr inbounds i8,i8*%id,i64 16
%if=bitcast i8*%ie to i8*(i8*,i8*)**
%ig=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%if,align 8
%ih=bitcast i8*%id to i8**
%ii=load i8*,i8**%ih,align 8
store i8*%ii,i8**%f,align 8
%ij=load i8*,i8**%c,align 8
%ik=bitcast i8*%ij to i32*
%il=load i32,i32*%ik,align 4
%im=getelementptr inbounds i8,i8*%ij,i64 4
%in=bitcast i8*%im to i32*
%io=load i32,i32*%in,align 4
%ip=getelementptr inbounds i8,i8*%ij,i64 8
%iq=bitcast i8*%ip to i8**
%ir=load i8*,i8**%iq,align 8
store i8*%ir,i8**%d,align 8
%is=getelementptr inbounds i8,i8*%ij,i64 16
%it=bitcast i8*%is to i8**
%iu=load i8*,i8**%it,align 8
store i8*%iu,i8**%c,align 8
%iv=call i8*@sml_alloc(i32 inreg 28)#0
%iw=bitcast i8*%iv to i32*
%ix=getelementptr inbounds i8,i8*%iv,i64 -4
%iy=bitcast i8*%ix to i32*
store i32 1342177304,i32*%iy,align 4
store i8*%iv,i8**%e,align 8
store i32%il,i32*%iw,align 4
%iz=getelementptr inbounds i8,i8*%iv,i64 4
%iA=bitcast i8*%iz to i32*
store i32%io,i32*%iA,align 4
%iB=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%iC=getelementptr inbounds i8,i8*%iv,i64 8
%iD=bitcast i8*%iC to i8**
store i8*%iB,i8**%iD,align 8
%iE=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%iF=getelementptr inbounds i8,i8*%iv,i64 16
%iG=bitcast i8*%iF to i8**
store i8*%iE,i8**%iG,align 8
%iH=getelementptr inbounds i8,i8*%iv,i64 24
%iI=bitcast i8*%iH to i32*
store i32 6,i32*%iI,align 4
%iJ=call i8*@sml_alloc(i32 inreg 20)#0
%iK=getelementptr inbounds i8,i8*%iJ,i64 -4
%iL=bitcast i8*%iK to i32*
store i32 1342177296,i32*%iL,align 4
store i8*%iJ,i8**%c,align 8
%iM=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%iN=bitcast i8*%iJ to i8**
store i8*%iM,i8**%iN,align 8
%iO=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%iP=getelementptr inbounds i8,i8*%iJ,i64 8
%iQ=bitcast i8*%iP to i8**
store i8*%iO,i8**%iQ,align 8
%iR=getelementptr inbounds i8,i8*%iJ,i64 16
%iS=bitcast i8*%iR to i32*
store i32 3,i32*%iS,align 4
%iT=call i8*@sml_alloc(i32 inreg 20)#0
%iU=getelementptr inbounds i8,i8*%iT,i64 -4
%iV=bitcast i8*%iU to i32*
store i32 1342177296,i32*%iV,align 4
store i8*%iT,i8**%e,align 8
%iW=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%iX=bitcast i8*%iT to i8**
store i8*%iW,i8**%iX,align 8
%iY=getelementptr inbounds i8,i8*%iT,i64 8
%iZ=bitcast i8*%iY to i8**
store i8*null,i8**%iZ,align 8
%i0=getelementptr inbounds i8,i8*%iT,i64 16
%i1=bitcast i8*%i0 to i32*
store i32 3,i32*%i1,align 4
%i2=call fastcc i8*@_SMLFN11RecordLabel3Map5emptyE(i32 inreg 1,i32 inreg 8)
store i8*%i2,i8**%c,align 8
%i3=call fastcc i8*@_SMLFN11RecordLabel3Map5emptyE(i32 inreg 1,i32 inreg 8)
store i8*%i3,i8**%d,align 8
%i4=call i8*@sml_alloc(i32 inreg 44)#0
%i5=getelementptr inbounds i8,i8*%i4,i64 -4
%i6=bitcast i8*%i5 to i32*
store i32 1342177320,i32*%i6,align 4
%i7=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%i8=bitcast i8*%i4 to i8**
store i8*%i7,i8**%i8,align 8
%i9=getelementptr inbounds i8,i8*%i4,i64 8
call void@llvm.memset.p0i8.i64(i8*%i9,i8 0,i64 16,i1 false)
%ja=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%jb=getelementptr inbounds i8,i8*%i4,i64 24
%jc=bitcast i8*%jb to i8**
store i8*%ja,i8**%jc,align 8
%jd=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%je=getelementptr inbounds i8,i8*%i4,i64 32
%jf=bitcast i8*%je to i8**
store i8*%jd,i8**%jf,align 8
%jg=getelementptr inbounds i8,i8*%i4,i64 40
%jh=bitcast i8*%jg to i32*
store i32 31,i32*%jh,align 4
%ji=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%jj=call fastcc i8*%ig(i8*inreg%ji,i8*inreg%i4)
%jk=getelementptr inbounds i8,i8*%jj,i64 16
%jl=bitcast i8*%jk to i8*(i8*,i8*)**
%jm=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%jl,align 8
%jn=bitcast i8*%jj to i8**
%jo=load i8*,i8**%jn,align 8
%jp=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%jq=call fastcc i8*%jm(i8*inreg%jo,i8*inreg%jp)
store i8*%jq,i8**%g,align 8
%jr=getelementptr inbounds i8,i8*%jq,i64 8
%js=bitcast i8*%jr to i8**
%jt=load i8*,i8**%js,align 8
store i8*%jt,i8**%c,align 8
%ju=getelementptr inbounds i8,i8*%jq,i64 16
%jv=bitcast i8*%ju to i8**
%jw=load i8*,i8**%jv,align 8
store i8*%jw,i8**%d,align 8
%jx=getelementptr inbounds i8,i8*%jq,i64 24
%jy=bitcast i8*%jx to i8**
%jz=load i8*,i8**%jy,align 8
store i8*%jz,i8**%e,align 8
%jA=getelementptr inbounds i8,i8*%jq,i64 32
%jB=bitcast i8*%jA to i8**
%jC=load i8*,i8**%jB,align 8
store i8*%jC,i8**%f,align 8
%jD=call fastcc i8*@_SMLFN4List3revE(i32 inreg 1,i32 inreg 8)
%jE=getelementptr inbounds i8,i8*%jD,i64 16
%jF=bitcast i8*%jE to i8*(i8*,i8*)**
%jG=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%jF,align 8
%jH=bitcast i8*%jD to i8**
%jI=load i8*,i8**%jH,align 8
%jJ=bitcast i8**%g to i8***
%jK=load i8**,i8***%jJ,align 8
store i8*null,i8**%g,align 8
%jL=load i8*,i8**%jK,align 8
%jM=call fastcc i8*%jG(i8*inreg%jI,i8*inreg%jL)
store i8*%jM,i8**%g,align 8
%jN=call i8*@sml_alloc(i32 inreg 28)#0
%jO=getelementptr inbounds i8,i8*%jN,i64 -4
%jP=bitcast i8*%jO to i32*
store i32 1342177304,i32*%jP,align 4
store i8*%jN,i8**%h,align 8
%jQ=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%jR=bitcast i8*%jN to i8**
store i8*%jQ,i8**%jR,align 8
%jS=load i8*,i8**%b,align 8
%jT=getelementptr inbounds i8,i8*%jN,i64 8
%jU=bitcast i8*%jT to i8**
store i8*%jS,i8**%jU,align 8
%jV=load i8*,i8**%e,align 8
%jW=getelementptr inbounds i8,i8*%jN,i64 16
%jX=bitcast i8*%jW to i8**
store i8*%jV,i8**%jX,align 8
%jY=getelementptr inbounds i8,i8*%jN,i64 24
%jZ=bitcast i8*%jY to i32*
store i32 7,i32*%jZ,align 4
%j0=call i8*@sml_alloc(i32 inreg 20)#0
%j1=getelementptr inbounds i8,i8*%j0,i64 -4
%j2=bitcast i8*%j1 to i32*
store i32 1342177296,i32*%j2,align 4
store i8*%j0,i8**%i,align 8
%j3=getelementptr inbounds i8,i8*%j0,i64 4
%j4=bitcast i8*%j3 to i32*
store i32 0,i32*%j4,align 1
%j5=bitcast i8*%j0 to i32*
store i32 33,i32*%j5,align 4
%j6=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%j7=getelementptr inbounds i8,i8*%j0,i64 8
%j8=bitcast i8*%j7 to i8**
store i8*%j6,i8**%j8,align 8
%j9=getelementptr inbounds i8,i8*%j0,i64 16
%ka=bitcast i8*%j9 to i32*
store i32 2,i32*%ka,align 4
%kb=call i8*@sml_alloc(i32 inreg 28)#0
%kc=getelementptr inbounds i8,i8*%kb,i64 -4
%kd=bitcast i8*%kc to i32*
store i32 1342177304,i32*%kd,align 4
store i8*%kb,i8**%f,align 8
%ke=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%kf=bitcast i8*%kb to i8**
store i8*%ke,i8**%kf,align 8
%kg=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%kh=getelementptr inbounds i8,i8*%kb,i64 8
%ki=bitcast i8*%kh to i8**
store i8*%kg,i8**%ki,align 8
%kj=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%kk=getelementptr inbounds i8,i8*%kb,i64 16
%kl=bitcast i8*%kk to i8**
store i8*%kj,i8**%kl,align 8
%km=getelementptr inbounds i8,i8*%kb,i64 24
%kn=bitcast i8*%km to i32*
store i32 7,i32*%kn,align 4
%ko=call i8*@sml_alloc(i32 inreg 20)#0
%kp=getelementptr inbounds i8,i8*%ko,i64 -4
%kq=bitcast i8*%kp to i32*
store i32 1342177296,i32*%kq,align 4
store i8*%ko,i8**%b,align 8
%kr=getelementptr inbounds i8,i8*%ko,i64 4
%ks=bitcast i8*%kr to i32*
store i32 0,i32*%ks,align 1
%kt=bitcast i8*%ko to i32*
store i32 27,i32*%kt,align 4
%ku=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%kv=getelementptr inbounds i8,i8*%ko,i64 8
%kw=bitcast i8*%kv to i8**
store i8*%ku,i8**%kw,align 8
%kx=getelementptr inbounds i8,i8*%ko,i64 16
%ky=bitcast i8*%kx to i32*
store i32 2,i32*%ky,align 4
%kz=call i8*@sml_alloc(i32 inreg 20)#0
%kA=getelementptr inbounds i8,i8*%kz,i64 -4
%kB=bitcast i8*%kA to i32*
store i32 1342177296,i32*%kB,align 4
store i8*%kz,i8**%f,align 8
%kC=getelementptr inbounds i8,i8*%kz,i64 4
%kD=bitcast i8*%kC to i32*
store i32 0,i32*%kD,align 1
%kE=bitcast i8*%kz to i32*
store i32 8,i32*%kE,align 4
%kF=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%kG=getelementptr inbounds i8,i8*%kz,i64 8
%kH=bitcast i8*%kG to i8**
store i8*%kF,i8**%kH,align 8
%kI=getelementptr inbounds i8,i8*%kz,i64 16
%kJ=bitcast i8*%kI to i32*
store i32 2,i32*%kJ,align 4
%kK=call i8*@sml_alloc(i32 inreg 36)#0
%kL=getelementptr inbounds i8,i8*%kK,i64 -4
%kM=bitcast i8*%kL to i32*
store i32 1342177312,i32*%kM,align 4
%kN=load i8*,i8**%f,align 8
%kO=bitcast i8*%kK to i8**
store i8*%kN,i8**%kO,align 8
%kP=load i8*,i8**%c,align 8
%kQ=getelementptr inbounds i8,i8*%kK,i64 8
%kR=bitcast i8*%kQ to i8**
store i8*%kP,i8**%kR,align 8
%kS=load i8*,i8**%d,align 8
%kT=getelementptr inbounds i8,i8*%kK,i64 16
%kU=bitcast i8*%kT to i8**
store i8*%kS,i8**%kU,align 8
%kV=load i8*,i8**%b,align 8
%kW=getelementptr inbounds i8,i8*%kK,i64 24
%kX=bitcast i8*%kW to i8**
store i8*%kV,i8**%kX,align 8
%kY=getelementptr inbounds i8,i8*%kK,i64 32
%kZ=bitcast i8*%kY to i32*
store i32 15,i32*%kZ,align 4
ret i8*%kK
k0:
store i8*null,i8**%f,align 8
%k1=getelementptr inbounds i8,i8*%em,i64 8
%k2=bitcast i8*%k1 to i8**
%k3=load i8*,i8**%k2,align 8
%k4=bitcast i8*%k3 to i8**
%k5=load i8*,i8**%k4,align 8
store i8*%k5,i8**%b,align 8
%k6=getelementptr inbounds i8,i8*%k3,i64 8
%k7=bitcast i8*%k6 to i8**
%k8=load i8*,i8**%k7,align 8
store i8*%k8,i8**%g,align 8
%k9=call fastcc i8*@_SMLFN11RecordLabel3Map6foldliE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%la=getelementptr inbounds i8,i8*%k9,i64 16
%lb=bitcast i8*%la to i8*(i8*,i8*)**
%lc=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%lb,align 8
%ld=bitcast i8*%k9 to i8**
%le=load i8*,i8**%ld,align 8
store i8*%le,i8**%c,align 8
%lf=call i8*@sml_alloc(i32 inreg 12)#0
%lg=getelementptr inbounds i8,i8*%lf,i64 -4
%lh=bitcast i8*%lg to i32*
store i32 1342177288,i32*%lh,align 4
store i8*%lf,i8**%d,align 8
%li=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%lj=bitcast i8*%lf to i8**
store i8*%li,i8**%lj,align 8
%lk=getelementptr inbounds i8,i8*%lf,i64 8
%ll=bitcast i8*%lk to i32*
store i32 1,i32*%ll,align 4
%lm=call i8*@sml_alloc(i32 inreg 28)#0
%ln=getelementptr inbounds i8,i8*%lm,i64 -4
%lo=bitcast i8*%ln to i32*
store i32 1342177304,i32*%lo,align 4
%lp=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%lq=bitcast i8*%lm to i8**
store i8*%lp,i8**%lq,align 8
%lr=getelementptr inbounds i8,i8*%lm,i64 8
%ls=bitcast i8*%lr to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN14TypedCalcUtils9freshInstE_236 to void(...)*),void(...)**%ls,align 8
%lt=getelementptr inbounds i8,i8*%lm,i64 16
%lu=bitcast i8*%lt to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN14TypedCalcUtils9freshInstE_236 to void(...)*),void(...)**%lu,align 8
%lv=getelementptr inbounds i8,i8*%lm,i64 24
%lw=bitcast i8*%lv to i32*
store i32 -2147483647,i32*%lw,align 4
%lx=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ly=call fastcc i8*%lc(i8*inreg%lx,i8*inreg%lm)
%lz=getelementptr inbounds i8,i8*%ly,i64 16
%lA=bitcast i8*%lz to i8*(i8*,i8*)**
%lB=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%lA,align 8
%lC=bitcast i8*%ly to i8**
%lD=load i8*,i8**%lC,align 8
store i8*%lD,i8**%d,align 8
%lE=call fastcc i8*@_SMLFN11RecordLabel3Map5emptyE(i32 inreg 1,i32 inreg 8)
store i8*%lE,i8**%b,align 8
%lF=call fastcc i8*@_SMLFN11RecordLabel3Map5emptyE(i32 inreg 1,i32 inreg 8)
store i8*%lF,i8**%c,align 8
%lG=call i8*@sml_alloc(i32 inreg 44)#0
%lH=getelementptr inbounds i8,i8*%lG,i64 -4
%lI=bitcast i8*%lH to i32*
store i32 1342177320,i32*%lI,align 4
call void@llvm.memset.p0i8.i64(i8*%lG,i8 0,i64 24,i1 false)
%lJ=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%lK=getelementptr inbounds i8,i8*%lG,i64 24
%lL=bitcast i8*%lK to i8**
store i8*%lJ,i8**%lL,align 8
%lM=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%lN=getelementptr inbounds i8,i8*%lG,i64 32
%lO=bitcast i8*%lN to i8**
store i8*%lM,i8**%lO,align 8
%lP=getelementptr inbounds i8,i8*%lG,i64 40
%lQ=bitcast i8*%lP to i32*
store i32 31,i32*%lQ,align 4
%lR=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%lS=call fastcc i8*%lB(i8*inreg%lR,i8*inreg%lG)
%lT=getelementptr inbounds i8,i8*%lS,i64 16
%lU=bitcast i8*%lT to i8*(i8*,i8*)**
%lV=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%lU,align 8
%lW=bitcast i8*%lS to i8**
%lX=load i8*,i8**%lW,align 8
%lY=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%lZ=call fastcc i8*%lV(i8*inreg%lX,i8*inreg%lY)
store i8*%lZ,i8**%f,align 8
%l0=getelementptr inbounds i8,i8*%lZ,i64 8
%l1=bitcast i8*%l0 to i8**
%l2=load i8*,i8**%l1,align 8
store i8*%l2,i8**%b,align 8
%l3=getelementptr inbounds i8,i8*%lZ,i64 16
%l4=bitcast i8*%l3 to i8**
%l5=load i8*,i8**%l4,align 8
store i8*%l5,i8**%c,align 8
%l6=getelementptr inbounds i8,i8*%lZ,i64 24
%l7=bitcast i8*%l6 to i8**
%l8=load i8*,i8**%l7,align 8
store i8*%l8,i8**%d,align 8
%l9=getelementptr inbounds i8,i8*%lZ,i64 32
%ma=bitcast i8*%l9 to i8**
%mb=load i8*,i8**%ma,align 8
store i8*%mb,i8**%e,align 8
%mc=call fastcc i8*@_SMLFN4List3revE(i32 inreg 1,i32 inreg 8)
%md=getelementptr inbounds i8,i8*%mc,i64 16
%me=bitcast i8*%md to i8*(i8*,i8*)**
%mf=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%me,align 8
%mg=bitcast i8*%mc to i8**
%mh=load i8*,i8**%mg,align 8
%mi=bitcast i8**%f to i8***
%mj=load i8**,i8***%mi,align 8
store i8*null,i8**%f,align 8
%mk=load i8*,i8**%mj,align 8
%ml=call fastcc i8*%mf(i8*inreg%mh,i8*inreg%mk)
store i8*%ml,i8**%f,align 8
%mm=call i8*@sml_alloc(i32 inreg 28)#0
%mn=getelementptr inbounds i8,i8*%mm,i64 -4
%mo=bitcast i8*%mn to i32*
store i32 1342177304,i32*%mo,align 4
store i8*%mm,i8**%h,align 8
%mp=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%mq=bitcast i8*%mm to i8**
store i8*%mp,i8**%mq,align 8
%mr=load i8*,i8**%g,align 8
%ms=getelementptr inbounds i8,i8*%mm,i64 8
%mt=bitcast i8*%ms to i8**
store i8*%mr,i8**%mt,align 8
%mu=load i8*,i8**%d,align 8
%mv=getelementptr inbounds i8,i8*%mm,i64 16
%mw=bitcast i8*%mv to i8**
store i8*%mu,i8**%mw,align 8
%mx=getelementptr inbounds i8,i8*%mm,i64 24
%my=bitcast i8*%mx to i32*
store i32 7,i32*%my,align 4
%mz=call i8*@sml_alloc(i32 inreg 20)#0
%mA=getelementptr inbounds i8,i8*%mz,i64 -4
%mB=bitcast i8*%mA to i32*
store i32 1342177296,i32*%mB,align 4
store i8*%mz,i8**%i,align 8
%mC=getelementptr inbounds i8,i8*%mz,i64 4
%mD=bitcast i8*%mC to i32*
store i32 0,i32*%mD,align 1
%mE=bitcast i8*%mz to i32*
store i32 33,i32*%mE,align 4
%mF=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%mG=getelementptr inbounds i8,i8*%mz,i64 8
%mH=bitcast i8*%mG to i8**
store i8*%mF,i8**%mH,align 8
%mI=getelementptr inbounds i8,i8*%mz,i64 16
%mJ=bitcast i8*%mI to i32*
store i32 2,i32*%mJ,align 4
%mK=load i8*,i8**%f,align 8
%mL=icmp eq i8*%mK,null
br i1%mL,label%mM,label%mN
mM:
store i8*null,i8**%f,align 8
store i8*null,i8**%g,align 8
store i8*null,i8**%i,align 8
br label%nc
mN:
%mO=call i8*@sml_alloc(i32 inreg 28)#0
%mP=getelementptr inbounds i8,i8*%mO,i64 -4
%mQ=bitcast i8*%mP to i32*
store i32 1342177304,i32*%mQ,align 4
store i8*%mO,i8**%e,align 8
%mR=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%mS=bitcast i8*%mO to i8**
store i8*%mR,i8**%mS,align 8
%mT=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%mU=getelementptr inbounds i8,i8*%mO,i64 8
%mV=bitcast i8*%mU to i8**
store i8*%mT,i8**%mV,align 8
%mW=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%mX=getelementptr inbounds i8,i8*%mO,i64 16
%mY=bitcast i8*%mX to i8**
store i8*%mW,i8**%mY,align 8
%mZ=getelementptr inbounds i8,i8*%mO,i64 24
%m0=bitcast i8*%mZ to i32*
store i32 7,i32*%m0,align 4
%m1=call i8*@sml_alloc(i32 inreg 20)#0
%m2=bitcast i8*%m1 to i32*
%m3=getelementptr inbounds i8,i8*%m1,i64 -4
%m4=bitcast i8*%m3 to i32*
store i32 1342177296,i32*%m4,align 4
%m5=getelementptr inbounds i8,i8*%m1,i64 4
%m6=bitcast i8*%m5 to i32*
store i32 0,i32*%m6,align 1
store i32 27,i32*%m2,align 4
%m7=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%m8=getelementptr inbounds i8,i8*%m1,i64 8
%m9=bitcast i8*%m8 to i8**
store i8*%m7,i8**%m9,align 8
%na=getelementptr inbounds i8,i8*%m1,i64 16
%nb=bitcast i8*%na to i32*
store i32 2,i32*%nb,align 4
br label%nc
nc:
%nd=phi i8*[%m1,%mN],[%mz,%mM]
store i8*%nd,i8**%e,align 8
%ne=call i8*@sml_alloc(i32 inreg 20)#0
%nf=getelementptr inbounds i8,i8*%ne,i64 -4
%ng=bitcast i8*%nf to i32*
store i32 1342177296,i32*%ng,align 4
store i8*%ne,i8**%f,align 8
%nh=getelementptr inbounds i8,i8*%ne,i64 4
%ni=bitcast i8*%nh to i32*
store i32 0,i32*%ni,align 1
%nj=bitcast i8*%ne to i32*
store i32 8,i32*%nj,align 4
%nk=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%nl=getelementptr inbounds i8,i8*%ne,i64 8
%nm=bitcast i8*%nl to i8**
store i8*%nk,i8**%nm,align 8
%nn=getelementptr inbounds i8,i8*%ne,i64 16
%no=bitcast i8*%nn to i32*
store i32 2,i32*%no,align 4
%np=call i8*@sml_alloc(i32 inreg 36)#0
%nq=getelementptr inbounds i8,i8*%np,i64 -4
%nr=bitcast i8*%nq to i32*
store i32 1342177312,i32*%nr,align 4
%ns=load i8*,i8**%f,align 8
%nt=bitcast i8*%np to i8**
store i8*%ns,i8**%nt,align 8
%nu=load i8*,i8**%b,align 8
%nv=getelementptr inbounds i8,i8*%np,i64 8
%nw=bitcast i8*%nv to i8**
store i8*%nu,i8**%nw,align 8
%nx=load i8*,i8**%c,align 8
%ny=getelementptr inbounds i8,i8*%np,i64 16
%nz=bitcast i8*%ny to i8**
store i8*%nx,i8**%nz,align 8
%nA=load i8*,i8**%e,align 8
%nB=getelementptr inbounds i8,i8*%np,i64 24
%nC=bitcast i8*%nB to i8**
store i8*%nA,i8**%nC,align 8
%nD=getelementptr inbounds i8,i8*%np,i64 32
%nE=bitcast i8*%nD to i32*
store i32 15,i32*%nE,align 4
ret i8*%np
nF:
%nG=getelementptr inbounds i8,i8*%N,i64 8
%nH=bitcast i8*%nG to i8**
%nI=load i8*,i8**%nH,align 8
%nJ=bitcast i8*%nI to i8**
%nK=load i8*,i8**%nJ,align 8
store i8*%nK,i8**%i,align 8
%nL=getelementptr inbounds i8,i8*%nI,i64 8
%nM=bitcast i8*%nL to i8**
%nN=load i8*,i8**%nM,align 8
store i8*%nN,i8**%j,align 8
%nO=load i8*,i8**%g,align 8
%nP=call fastcc i32@_SMLLN14TypedCalcUtils9expansiveE_188(i8*inreg%nO)
%nQ=icmp eq i32%nP,0
br i1%nQ,label%oZ,label%nR
nR:
%nS=call fastcc i32@_SMLFN5VarID8generateE(i32 inreg 0)
%nT=call i8*@sml_alloc(i32 inreg 28)#0
%nU=bitcast i8*%nT to i32*
%nV=getelementptr inbounds i8,i8*%nT,i64 -4
%nW=bitcast i8*%nV to i32*
store i32 1342177304,i32*%nW,align 4
store i8*%nT,i8**%c,align 8
store i32%nS,i32*%nU,align 4
%nX=getelementptr inbounds i8,i8*%nT,i64 4
%nY=bitcast i8*%nX to i32*
store i32 0,i32*%nY,align 4
%nZ=getelementptr inbounds i8,i8*%nT,i64 8
%n0=bitcast i8*%nZ to i8**
store i8*null,i8**%n0,align 8
%n1=load i8*,i8**%f,align 8
%n2=getelementptr inbounds i8,i8*%nT,i64 16
%n3=bitcast i8*%n2 to i8**
store i8*%n1,i8**%n3,align 8
%n4=getelementptr inbounds i8,i8*%nT,i64 24
%n5=bitcast i8*%n4 to i32*
store i32 6,i32*%n5,align 4
store i8*null,i8**%d,align 8
store i8*%n1,i8**%e,align 8
%n6=call i8*@sml_alloc(i32 inreg 28)#0
%n7=bitcast i8*%n6 to i32*
%n8=getelementptr inbounds i8,i8*%n6,i64 -4
%n9=bitcast i8*%n8 to i32*
store i32 1342177304,i32*%n9,align 4
store i8*%n6,i8**%h,align 8
store i32%nS,i32*%n7,align 4
%oa=getelementptr inbounds i8,i8*%n6,i64 4
%ob=bitcast i8*%oa to i32*
store i32 0,i32*%ob,align 4
%oc=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%od=getelementptr inbounds i8,i8*%n6,i64 8
%oe=bitcast i8*%od to i8**
store i8*%oc,i8**%oe,align 8
%of=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%og=getelementptr inbounds i8,i8*%n6,i64 16
%oh=bitcast i8*%og to i8**
store i8*%of,i8**%oh,align 8
%oi=getelementptr inbounds i8,i8*%n6,i64 24
%oj=bitcast i8*%oi to i32*
store i32 6,i32*%oj,align 4
%ok=call i8*@sml_alloc(i32 inreg 20)#0
%ol=getelementptr inbounds i8,i8*%ok,i64 -4
%om=bitcast i8*%ol to i32*
store i32 1342177296,i32*%om,align 4
store i8*%ok,i8**%d,align 8
%on=getelementptr inbounds i8,i8*%ok,i64 4
%oo=bitcast i8*%on to i32*
store i32 0,i32*%oo,align 1
%op=bitcast i8*%ok to i32*
store i32 40,i32*%op,align 4
%oq=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%or=getelementptr inbounds i8,i8*%ok,i64 8
%os=bitcast i8*%or to i8**
store i8*%oq,i8**%os,align 8
%ot=getelementptr inbounds i8,i8*%ok,i64 16
%ou=bitcast i8*%ot to i32*
store i32 2,i32*%ou,align 4
%ov=call i8*@sml_alloc(i32 inreg 28)#0
%ow=getelementptr inbounds i8,i8*%ov,i64 -4
%ox=bitcast i8*%ow to i32*
store i32 1342177304,i32*%ox,align 4
store i8*%ov,i8**%e,align 8
%oy=load i8*,i8**%b,align 8
%oz=bitcast i8*%ov to i8**
store i8*%oy,i8**%oz,align 8
%oA=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%oB=getelementptr inbounds i8,i8*%ov,i64 8
%oC=bitcast i8*%oB to i8**
store i8*%oA,i8**%oC,align 8
%oD=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%oE=getelementptr inbounds i8,i8*%ov,i64 16
%oF=bitcast i8*%oE to i8**
store i8*%oD,i8**%oF,align 8
%oG=getelementptr inbounds i8,i8*%ov,i64 24
%oH=bitcast i8*%oG to i32*
store i32 7,i32*%oH,align 4
%oI=call i8*@sml_alloc(i32 inreg 28)#0
%oJ=getelementptr inbounds i8,i8*%oI,i64 -4
%oK=bitcast i8*%oJ to i32*
store i32 1342177304,i32*%oK,align 4
store i8*%oI,i8**%c,align 8
%oL=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%oM=bitcast i8*%oI to i8**
store i8*%oL,i8**%oM,align 8
%oN=getelementptr inbounds i8,i8*%oI,i64 8
%oO=bitcast i8*%oN to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN14TypedCalcUtils9freshInstE_227 to void(...)*),void(...)**%oO,align 8
%oP=getelementptr inbounds i8,i8*%oI,i64 16
%oQ=bitcast i8*%oP to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN14TypedCalcUtils9freshInstE_227 to void(...)*),void(...)**%oQ,align 8
%oR=getelementptr inbounds i8,i8*%oI,i64 24
%oS=bitcast i8*%oR to i32*
store i32 -2147483647,i32*%oS,align 4
%oT=call i8*@sml_alloc(i32 inreg 20)#0
%oU=getelementptr inbounds i8,i8*%oT,i64 -4
%oV=bitcast i8*%oU to i32*
store i32 1342177296,i32*%oV,align 4
%oW=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%oX=bitcast i8*%oT to i8**
store i8*%oW,i8**%oX,align 8
%oY=load i8*,i8**%c,align 8
br label%o5
oZ:
%o0=call i8*@sml_alloc(i32 inreg 20)#0
%o1=getelementptr inbounds i8,i8*%o0,i64 -4
%o2=bitcast i8*%o1 to i32*
store i32 1342177296,i32*%o2,align 4
%o3=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%o4=bitcast i8*%o0 to i8**
store i8*%o3,i8**%o4,align 8
br label%o5
o5:
%o6=phi i8*[%o0,%oZ],[%oT,%nR]
%o7=phi i8*[bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@m,i64 0,i32 2)to i8*),%oZ],[%oY,%nR]
%o8=phi i8*[%o3,%oZ],[%oW,%nR]
%o9=getelementptr inbounds i8,i8*%o6,i64 8
%pa=bitcast i8*%o9 to i8**
store i8*%o7,i8**%pa,align 8
%pb=getelementptr inbounds i8,i8*%o6,i64 16
%pc=bitcast i8*%pb to i32*
store i32 3,i32*%pc,align 4
store i8*%o6,i8**%h,align 8
store i8*%o8,i8**%c,align 8
%pd=call fastcc i8*@_SMLFN4List3mapE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%pe=getelementptr inbounds i8,i8*%pd,i64 16
%pf=bitcast i8*%pe to i8*(i8*,i8*)**
%pg=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%pf,align 8
%ph=bitcast i8*%pd to i8**
%pi=load i8*,i8**%ph,align 8
%pj=call fastcc i8*%pg(i8*inreg%pi,i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@n,i64 0,i32 2)to i8*))
%pk=getelementptr inbounds i8,i8*%pj,i64 16
%pl=bitcast i8*%pk to i8*(i8*,i8*)**
%pm=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%pl,align 8
%pn=bitcast i8*%pj to i8**
%po=load i8*,i8**%pn,align 8
%pp=load i8*,i8**%i,align 8
%pq=call fastcc i8*%pm(i8*inreg%po,i8*inreg%pp)
store i8*%pq,i8**%d,align 8
%pr=call fastcc i8*@_SMLFN4List3mapE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%ps=getelementptr inbounds i8,i8*%pr,i64 16
%pt=bitcast i8*%ps to i8*(i8*,i8*)**
%pu=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%pt,align 8
%pv=bitcast i8*%pr to i8**
%pw=load i8*,i8**%pv,align 8
%px=call fastcc i8*%pu(i8*inreg%pw,i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@o,i64 0,i32 2)to i8*))
%py=getelementptr inbounds i8,i8*%px,i64 16
%pz=bitcast i8*%py to i8*(i8*,i8*)**
%pA=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%pz,align 8
%pB=bitcast i8*%px to i8**
%pC=load i8*,i8**%pB,align 8
%pD=load i8*,i8**%d,align 8
%pE=call fastcc i8*%pA(i8*inreg%pC,i8*inreg%pD)
store i8*%pE,i8**%e,align 8
%pF=call i8*@sml_alloc(i32 inreg 36)#0
%pG=getelementptr inbounds i8,i8*%pF,i64 -4
%pH=bitcast i8*%pG to i32*
store i32 1342177312,i32*%pH,align 4
store i8*%pF,i8**%g,align 8
%pI=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%pJ=bitcast i8*%pF to i8**
store i8*%pI,i8**%pJ,align 8
%pK=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%pL=getelementptr inbounds i8,i8*%pF,i64 8
%pM=bitcast i8*%pL to i8**
store i8*%pK,i8**%pM,align 8
%pN=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%pO=getelementptr inbounds i8,i8*%pF,i64 16
%pP=bitcast i8*%pO to i8**
store i8*%pN,i8**%pP,align 8
%pQ=load i8*,i8**%b,align 8
%pR=getelementptr inbounds i8,i8*%pF,i64 24
%pS=bitcast i8*%pR to i8**
store i8*%pQ,i8**%pS,align 8
%pT=getelementptr inbounds i8,i8*%pF,i64 32
%pU=bitcast i8*%pT to i32*
store i32 15,i32*%pU,align 4
%pV=call i8*@sml_alloc(i32 inreg 20)#0
%pW=getelementptr inbounds i8,i8*%pV,i64 -4
%pX=bitcast i8*%pW to i32*
store i32 1342177296,i32*%pX,align 4
store i8*%pV,i8**%c,align 8
%pY=bitcast i8*%pV to i64*
store i64 0,i64*%pY,align 4
%pZ=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%p0=getelementptr inbounds i8,i8*%pV,i64 8
%p1=bitcast i8*%p0 to i8**
store i8*%pZ,i8**%p1,align 8
%p2=getelementptr inbounds i8,i8*%pV,i64 16
%p3=bitcast i8*%p2 to i32*
store i32 2,i32*%p3,align 4
%p4=call i8*@sml_alloc(i32 inreg 20)#0
%p5=getelementptr inbounds i8,i8*%p4,i64 -4
%p6=bitcast i8*%p5 to i32*
store i32 1342177296,i32*%p6,align 4
%p7=load i8*,i8**%j,align 8
store i8*null,i8**%j,align 8
%p8=bitcast i8*%p4 to i8**
store i8*%p7,i8**%p8,align 8
%p9=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%qa=getelementptr inbounds i8,i8*%p4,i64 8
%qb=bitcast i8*%qa to i8**
store i8*%p9,i8**%qb,align 8
%qc=getelementptr inbounds i8,i8*%p4,i64 16
%qd=bitcast i8*%qc to i32*
store i32 3,i32*%qd,align 4
%qe=call fastcc i8*@_SMLLN14TypedCalcUtils9freshInstE_208(i8*inreg%p4)
%qf=bitcast i8*%qe to i8**
%qg=load i8*,i8**%qf,align 8
store i8*%qg,i8**%c,align 8
%qh=getelementptr inbounds i8,i8*%qe,i64 8
%qi=bitcast i8*%qh to i8**
%qj=load i8*,i8**%qi,align 8
store i8*%qj,i8**%e,align 8
%qk=getelementptr inbounds i8,i8*%qe,i64 16
%ql=bitcast i8*%qk to i8**
%qm=load i8*,i8**%ql,align 8
store i8*%qm,i8**%f,align 8
%qn=getelementptr inbounds i8,i8*%qe,i64 24
%qo=bitcast i8*%qn to i8**
%qp=load i8*,i8**%qo,align 8
store i8*%qp,i8**%g,align 8
%qq=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%qr=getelementptr inbounds i8,i8*%qq,i64 8
%qs=bitcast i8*%qr to i8**
%qt=load i8*,i8**%qs,align 8
%qu=getelementptr inbounds i8,i8*%qt,i64 16
%qv=bitcast i8*%qu to i8*(i8*,i8*)**
%qw=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%qv,align 8
%qx=bitcast i8*%qt to i8**
%qy=load i8*,i8**%qx,align 8
store i8*%qy,i8**%j,align 8
%qz=call i8*@sml_alloc(i32 inreg 36)#0
%qA=getelementptr inbounds i8,i8*%qz,i64 -4
%qB=bitcast i8*%qA to i32*
store i32 1342177312,i32*%qB,align 4
store i8*%qz,i8**%h,align 8
%qC=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%qD=bitcast i8*%qz to i8**
store i8*%qC,i8**%qD,align 8
%qE=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%qF=getelementptr inbounds i8,i8*%qz,i64 8
%qG=bitcast i8*%qF to i8**
store i8*%qE,i8**%qG,align 8
%qH=load i8*,i8**%c,align 8
%qI=getelementptr inbounds i8,i8*%qz,i64 16
%qJ=bitcast i8*%qI to i8**
store i8*%qH,i8**%qJ,align 8
%qK=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%qL=getelementptr inbounds i8,i8*%qz,i64 24
%qM=bitcast i8*%qL to i8**
store i8*%qK,i8**%qM,align 8
%qN=getelementptr inbounds i8,i8*%qz,i64 32
%qO=bitcast i8*%qN to i32*
store i32 15,i32*%qO,align 4
%qP=call i8*@sml_alloc(i32 inreg 20)#0
%qQ=bitcast i8*%qP to i32*
%qR=getelementptr inbounds i8,i8*%qP,i64 -4
%qS=bitcast i8*%qR to i32*
store i32 1342177296,i32*%qS,align 4
%qT=getelementptr inbounds i8,i8*%qP,i64 4
%qU=bitcast i8*%qT to i32*
store i32 0,i32*%qU,align 1
store i32 20,i32*%qQ,align 4
%qV=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%qW=getelementptr inbounds i8,i8*%qP,i64 8
%qX=bitcast i8*%qW to i8**
store i8*%qV,i8**%qX,align 8
%qY=getelementptr inbounds i8,i8*%qP,i64 16
%qZ=bitcast i8*%qY to i32*
store i32 2,i32*%qZ,align 4
%q0=load i8*,i8**%j,align 8
store i8*null,i8**%j,align 8
%q1=call fastcc i8*%qw(i8*inreg%q0,i8*inreg%qP)
store i8*%q1,i8**%b,align 8
%q2=call i8*@sml_alloc(i32 inreg 20)#0
%q3=getelementptr inbounds i8,i8*%q2,i64 -4
%q4=bitcast i8*%q3 to i32*
store i32 1342177296,i32*%q4,align 4
store i8*%q2,i8**%d,align 8
%q5=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%q6=bitcast i8*%q2 to i8**
store i8*%q5,i8**%q6,align 8
%q7=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%q8=getelementptr inbounds i8,i8*%q2,i64 8
%q9=bitcast i8*%q8 to i8**
store i8*%q7,i8**%q9,align 8
%ra=getelementptr inbounds i8,i8*%q2,i64 16
%rb=bitcast i8*%ra to i32*
store i32 3,i32*%rb,align 4
%rc=call i8*@sml_alloc(i32 inreg 20)#0
%rd=getelementptr inbounds i8,i8*%rc,i64 -4
%re=bitcast i8*%rd to i32*
store i32 1342177296,i32*%re,align 4
store i8*%rc,i8**%c,align 8
%rf=getelementptr inbounds i8,i8*%rc,i64 4
%rg=bitcast i8*%rf to i32*
store i32 0,i32*%rg,align 1
%rh=bitcast i8*%rc to i32*
store i32 6,i32*%rh,align 4
%ri=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%rj=getelementptr inbounds i8,i8*%rc,i64 8
%rk=bitcast i8*%rj to i8**
store i8*%ri,i8**%rk,align 8
%rl=getelementptr inbounds i8,i8*%rc,i64 16
%rm=bitcast i8*%rl to i32*
store i32 2,i32*%rm,align 4
%rn=call i8*@sml_alloc(i32 inreg 36)#0
%ro=getelementptr inbounds i8,i8*%rn,i64 -4
%rp=bitcast i8*%ro to i32*
store i32 1342177312,i32*%rp,align 4
%rq=load i8*,i8**%c,align 8
%rr=bitcast i8*%rn to i8**
store i8*%rq,i8**%rr,align 8
%rs=load i8*,i8**%e,align 8
%rt=getelementptr inbounds i8,i8*%rn,i64 8
%ru=bitcast i8*%rt to i8**
store i8*%rs,i8**%ru,align 8
%rv=load i8*,i8**%f,align 8
%rw=getelementptr inbounds i8,i8*%rn,i64 16
%rx=bitcast i8*%rw to i8**
store i8*%rv,i8**%rx,align 8
%ry=load i8*,i8**%b,align 8
%rz=getelementptr inbounds i8,i8*%rn,i64 24
%rA=bitcast i8*%rz to i8**
store i8*%ry,i8**%rA,align 8
%rB=getelementptr inbounds i8,i8*%rn,i64 32
%rC=bitcast i8*%rB to i32*
store i32 15,i32*%rC,align 4
ret i8*%rn
}
define internal fastcc void@_SMLLN14TypedCalcUtils10groundInstE_240(i8*inreg%a)#2 gc"smlsharp"{
i:
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%g,label%e
e:
call void@sml_check(i32 inreg%c)
%f=load i8*,i8**%b,align 8
br label%g
g:
%h=phi i8*[%f,%e],[%a,%i]
%j=icmp eq i8*%h,null
br i1%j,label%o,label%k
k:
%l=bitcast i8*%h to i32*
%m=load i32,i32*%l,align 4
%n=icmp eq i32%m,10
br i1%n,label%p,label%o
o:
ret void
p:
%q=getelementptr inbounds i8,i8*%h,i64 8
%r=bitcast i8*%q to i8**
%s=load i8*,i8**%r,align 8
tail call fastcc void@_SMLFN14TypedCalcUtils13instantiateTvE(i8*inreg%s)
ret void
}
define fastcc i8*@_SMLFN14TypedCalcUtils10groundInstE(i8*inreg%a)#2 gc"smlsharp"{
k:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%b,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%i,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%b,align 8
br label%i
i:
%j=phi i8*[%h,%g],[%a,%k]
%l=bitcast i8*%j to i8**
%m=load i8*,i8**%l,align 8
store i8*%m,i8**%b,align 8
%n=getelementptr inbounds i8,i8*%j,i64 8
%o=bitcast i8*%n to i8**
%p=load i8*,i8**%o,align 8
store i8*%p,i8**%c,align 8
%q=call i8*@sml_alloc(i32 inreg 20)#0
%r=getelementptr inbounds i8,i8*%q,i64 -4
%s=bitcast i8*%r to i32*
store i32 1342177296,i32*%s,align 4
%t=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%u=bitcast i8*%q to i8**
store i8*%t,i8**%u,align 8
%v=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%w=getelementptr inbounds i8,i8*%q,i64 8
%x=bitcast i8*%w to i8**
store i8*%v,i8**%x,align 8
%y=getelementptr inbounds i8,i8*%q,i64 16
%z=bitcast i8*%y to i32*
store i32 3,i32*%z,align 4
%A=call fastcc i8*@_SMLLN14TypedCalcUtils9freshInstE_208(i8*inreg%q)
store i8*%A,i8**%d,align 8
%B=bitcast i8*%A to i8**
%C=load i8*,i8**%B,align 8
store i8*%C,i8**%b,align 8
%D=getelementptr inbounds i8,i8*%A,i64 24
%E=bitcast i8*%D to i8**
%F=load i8*,i8**%E,align 8
store i8*%F,i8**%c,align 8
%G=call fastcc i8*@_SMLFN4List3appE(i32 inreg 1,i32 inreg 8)
%H=getelementptr inbounds i8,i8*%G,i64 16
%I=bitcast i8*%H to i8*(i8*,i8*)**
%J=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%I,align 8
%K=bitcast i8*%G to i8**
%L=load i8*,i8**%K,align 8
%M=call fastcc i8*%J(i8*inreg%L,i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@t,i64 0,i32 2)to i8*))
%N=getelementptr inbounds i8,i8*%M,i64 16
%O=bitcast i8*%N to i8*(i8*,i8*)**
%P=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%O,align 8
%Q=bitcast i8*%M to i8**
%R=load i8*,i8**%Q,align 8
%S=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%T=getelementptr inbounds i8,i8*%S,i64 8
%U=bitcast i8*%T to i8**
%V=load i8*,i8**%U,align 8
%W=call fastcc i8*%P(i8*inreg%R,i8*inreg%V)
%X=call i8*@sml_alloc(i32 inreg 20)#0
%Y=getelementptr inbounds i8,i8*%X,i64 -4
%Z=bitcast i8*%Y to i32*
store i32 1342177296,i32*%Z,align 4
%aa=load i8*,i8**%c,align 8
%ab=bitcast i8*%X to i8**
store i8*%aa,i8**%ab,align 8
%ac=load i8*,i8**%b,align 8
%ad=getelementptr inbounds i8,i8*%X,i64 8
%ae=bitcast i8*%ad to i8**
store i8*%ac,i8**%ae,align 8
%af=getelementptr inbounds i8,i8*%X,i64 16
%ag=bitcast i8*%af to i32*
store i32 3,i32*%ag,align 4
ret i8*%X
}
define internal fastcc i8*@_SMLL11constraints_244(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
store i8*%a,i8**%f,align 8
store i8*%b,i8**%c,align 8
%h=load atomic i32,i32*@sml_check_flag unordered,align 4
%i=icmp eq i32%h,0
br i1%i,label%j,label%m
j:
%k=bitcast i8*%a to i8**
%l=bitcast i8**%f to i8***
br label%q
m:
call void@sml_check(i32 inreg%h)
%n=load i8*,i8**%c,align 8
%o=bitcast i8**%f to i8***
%p=load i8**,i8***%o,align 8
br label%q
q:
%r=phi i8***[%l,%j],[%o,%m]
%s=phi i8**[%k,%j],[%p,%m]
%t=phi i8*[%b,%j],[%n,%m]
%u=getelementptr inbounds i8,i8*%t,i64 8
%v=bitcast i8*%u to i8**
%w=load i8*,i8**%v,align 8
store i8*%w,i8**%g,align 8
%x=load i8*,i8**%s,align 8
%y=call fastcc i8*@_SMLFN11TypesBasics10substBTvarE(i8*inreg%x)
%z=getelementptr inbounds i8,i8*%y,i64 16
%A=bitcast i8*%z to i8*(i8*,i8*)**
%B=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%A,align 8
%C=bitcast i8*%y to i8**
%D=load i8*,i8**%C,align 8
%E=load i8*,i8**%c,align 8
%F=getelementptr inbounds i8,i8*%E,i64 16
%G=bitcast i8*%F to i8**
%H=load i8*,i8**%G,align 8
%I=call fastcc i8*%B(i8*inreg%D,i8*inreg%H)
store i8*%I,i8**%e,align 8
%J=load i8**,i8***%r,align 8
%K=load i8*,i8**%J,align 8
%L=call fastcc i8*@_SMLFN11TypesBasics10substBTvarE(i8*inreg%K)
%M=getelementptr inbounds i8,i8*%L,i64 16
%N=bitcast i8*%M to i8*(i8*,i8*)**
%O=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%N,align 8
%P=bitcast i8*%L to i8**
%Q=load i8*,i8**%P,align 8
%R=bitcast i8**%c to i8****
%S=load i8***,i8****%R,align 8
%T=load i8**,i8***%S,align 8
%U=load i8*,i8**%T,align 8
%V=call fastcc i8*%O(i8*inreg%Q,i8*inreg%U)
store i8*%V,i8**%d,align 8
%W=load i8**,i8***%r,align 8
store i8*null,i8**%f,align 8
%X=load i8*,i8**%W,align 8
%Y=call fastcc i8*@_SMLFN11TypesBasics10substBTvarE(i8*inreg%X)
%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**%c to i8***
%af=load i8**,i8***%ae,align 8
store i8*null,i8**%c,align 8
%ag=load i8*,i8**%af,align 8
%ah=getelementptr inbounds i8,i8*%ag,i64 8
%ai=bitcast i8*%ah to i8**
%aj=load i8*,i8**%ai,align 8
%ak=call fastcc i8*%ab(i8*inreg%ad,i8*inreg%aj)
store i8*%ak,i8**%c,align 8
%al=call i8*@sml_alloc(i32 inreg 20)#0
%am=getelementptr inbounds i8,i8*%al,i64 -4
%an=bitcast i8*%am to i32*
store i32 1342177296,i32*%an,align 4
store i8*%al,i8**%f,align 8
%ao=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%ap=bitcast i8*%al to i8**
store i8*%ao,i8**%ap,align 8
%aq=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ar=getelementptr inbounds i8,i8*%al,i64 8
%as=bitcast i8*%ar to i8**
store i8*%aq,i8**%as,align 8
%at=getelementptr inbounds i8,i8*%al,i64 16
%au=bitcast i8*%at to i32*
store i32 3,i32*%au,align 4
%av=call i8*@sml_alloc(i32 inreg 28)#0
%aw=getelementptr inbounds i8,i8*%av,i64 -4
%ax=bitcast i8*%aw to i32*
store i32 1342177304,i32*%ax,align 4
%ay=load i8*,i8**%f,align 8
%az=bitcast i8*%av to i8**
store i8*%ay,i8**%az,align 8
%aA=load i8*,i8**%g,align 8
%aB=getelementptr inbounds i8,i8*%av,i64 8
%aC=bitcast i8*%aB to i8**
store i8*%aA,i8**%aC,align 8
%aD=load i8*,i8**%e,align 8
%aE=getelementptr inbounds i8,i8*%av,i64 16
%aF=bitcast i8*%aE to i8**
store i8*%aD,i8**%aF,align 8
%aG=getelementptr inbounds i8,i8*%av,i64 24
%aH=bitcast i8*%aG to i32*
store i32 7,i32*%aH,align 4
ret i8*%av
}
define fastcc i8*@_SMLFN14TypedCalcUtils17freshToplevelInstE(i8*inreg%a)#2 gc"smlsharp"{
p:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
%h=alloca i8*,align 8
%i=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
call void@llvm.gcroot(i8**%h,i8*null)#0
call void@llvm.gcroot(i8**%i,i8*null)#0
store i8*%a,i8**%b,align 8
%j=load atomic i32,i32*@sml_check_flag unordered,align 4
%k=icmp eq i32%j,0
br i1%k,label%n,label%l
l:
call void@sml_check(i32 inreg%j)
%m=load i8*,i8**%b,align 8
br label%n
n:
%o=phi i8*[%m,%l],[%a,%p]
store i8*null,i8**%b,align 8
%q=bitcast i8*%o to i8**
%r=load i8*,i8**%q,align 8
store i8*%r,i8**%f,align 8
%s=getelementptr inbounds i8,i8*%o,i64 8
%t=bitcast i8*%s to i8**
%u=load i8*,i8**%t,align 8
store i8*%u,i8**%g,align 8
%v=call fastcc i32@_SMLFN11TypesBasics6monoTyE(i8*inreg%r)
%w=icmp eq i32%v,0
br i1%w,label%J,label%x
x:
%y=call i8*@sml_alloc(i32 inreg 36)#0
%z=getelementptr inbounds i8,i8*%y,i64 -4
%A=bitcast i8*%z to i32*
store i32 1342177312,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
call void@llvm.memset.p0i8.i64(i8*%D,i8 0,i64 16,i1 false)
%E=load i8*,i8**%g,align 8
%F=getelementptr inbounds i8,i8*%y,i64 24
%G=bitcast i8*%F to i8**
store i8*%E,i8**%G,align 8
%H=getelementptr inbounds i8,i8*%y,i64 32
%I=bitcast i8*%H to i32*
store i32 15,i32*%I,align 4
ret i8*%y
J:
%K=load i8*,i8**%f,align 8
%L=icmp eq i8*%K,null
br i1%L,label%Q,label%M
M:
%N=bitcast i8*%K to i32*
%O=load i32,i32*%N,align 4
%P=icmp eq i32%O,7
br i1%P,label%ac,label%Q
Q:
%R=call i8*@sml_alloc(i32 inreg 36)#0
%S=getelementptr inbounds i8,i8*%R,i64 -4
%T=bitcast i8*%S to i32*
store i32 1342177312,i32*%T,align 4
%U=load i8*,i8**%f,align 8
%V=bitcast i8*%R to i8**
store i8*%U,i8**%V,align 8
%W=getelementptr inbounds i8,i8*%R,i64 8
call void@llvm.memset.p0i8.i64(i8*%W,i8 0,i64 16,i1 false)
%X=load i8*,i8**%g,align 8
%Y=getelementptr inbounds i8,i8*%R,i64 24
%Z=bitcast i8*%Y to i8**
store i8*%X,i8**%Z,align 8
%aa=getelementptr inbounds i8,i8*%R,i64 32
%ab=bitcast i8*%aa to i32*
store i32 15,i32*%ab,align 4
ret i8*%R
ac:
%ad=getelementptr inbounds i8,i8*%K,i64 8
%ae=bitcast i8*%ad to i8**
%af=load i8*,i8**%ae,align 8
store i8*%af,i8**%h,align 8
%ag=getelementptr inbounds i8,i8*%af,i64 8
%ah=bitcast i8*%ag to i8**
%ai=load i8*,i8**%ah,align 8
%aj=call fastcc i8*@_SMLFN11TypesBasics10freshSubstE(i8*inreg%ai)
store i8*%aj,i8**%b,align 8
%ak=call fastcc i8*@_SMLFN11TypesBasics10substBTvarE(i8*inreg%aj)
%al=getelementptr inbounds i8,i8*%ak,i64 16
%am=bitcast i8*%al to i8*(i8*,i8*)**
%an=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%am,align 8
%ao=bitcast i8*%ak to i8**
%ap=load i8*,i8**%ao,align 8
%aq=bitcast i8**%h to i8***
%ar=load i8**,i8***%aq,align 8
%as=load i8*,i8**%ar,align 8
%at=call fastcc i8*%an(i8*inreg%ap,i8*inreg%as)
store i8*%at,i8**%c,align 8
%au=load i8*,i8**%g,align 8
%av=icmp eq i8*%au,null
br i1%av,label%bK,label%aw
aw:
%ax=bitcast i8*%au to i32*
%ay=load i32,i32*%ax,align 4
%az=icmp eq i32%ay,6
br i1%az,label%aA,label%bK
aA:
%aB=getelementptr inbounds i8,i8*%au,i64 8
%aC=bitcast i8*%aB to i8**
%aD=load i8*,i8**%aC,align 8
%aE=bitcast i8*%aD to i8**
%aF=load i8*,i8**%aE,align 8
%aG=icmp eq i8*%aF,null
br i1%aG,label%aH,label%bK
aH:
%aI=getelementptr inbounds i8,i8*%aD,i64 8
%aJ=bitcast i8*%aI to i8**
%aK=load i8*,i8**%aJ,align 8
store i8*%aK,i8**%d,align 8
%aL=getelementptr inbounds i8,i8*%aD,i64 16
%aM=bitcast i8*%aL to i8**
%aN=load i8*,i8**%aM,align 8
%aO=icmp eq i8*%aN,null
br i1%aO,label%aP,label%bJ
aP:
store i8*null,i8**%f,align 8
store i8*null,i8**%g,align 8
%aQ=getelementptr inbounds i8,i8*%aD,i64 24
%aR=bitcast i8*%aQ to i8**
%aS=load i8*,i8**%aR,align 8
store i8*%aS,i8**%e,align 8
%aT=call fastcc i8*@_SMLFN14BoundTypeVarID3Map9listItemsE(i32 inreg 1,i32 inreg 8)
%aU=getelementptr inbounds i8,i8*%aT,i64 16
%aV=bitcast i8*%aU to i8*(i8*,i8*)**
%aW=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aV,align 8
%aX=bitcast i8*%aT to i8**
%aY=load i8*,i8**%aX,align 8
%aZ=load i8*,i8**%b,align 8
%a0=call fastcc i8*%aW(i8*inreg%aY,i8*inreg%aZ)
store i8*%a0,i8**%f,align 8
%a1=call i8*@sml_alloc(i32 inreg 12)#0
%a2=getelementptr inbounds i8,i8*%a1,i64 -4
%a3=bitcast i8*%a2 to i32*
store i32 1342177288,i32*%a3,align 4
store i8*%a1,i8**%g,align 8
%a4=load i8*,i8**%f,align 8
store i8*null,i8**%f,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 i32*
store i32 1,i32*%a7,align 4
%a8=call i8*@sml_alloc(i32 inreg 36)#0
%a9=getelementptr inbounds i8,i8*%a8,i64 -4
%ba=bitcast i8*%a9 to i32*
store i32 1342177312,i32*%ba,align 4
%bb=bitcast i8*%a8 to i8**
store i8*null,i8**%bb,align 8
%bc=load i8*,i8**%d,align 8
%bd=getelementptr inbounds i8,i8*%a8,i64 8
%be=bitcast i8*%bd to i8**
store i8*%bc,i8**%be,align 8
%bf=load i8*,i8**%g,align 8
%bg=getelementptr inbounds i8,i8*%a8,i64 16
%bh=bitcast i8*%bg to i8**
store i8*%bf,i8**%bh,align 8
%bi=load i8*,i8**%e,align 8
%bj=getelementptr inbounds i8,i8*%a8,i64 24
%bk=bitcast i8*%bj to i8**
store i8*%bi,i8**%bk,align 8
%bl=getelementptr inbounds i8,i8*%a8,i64 32
%bm=bitcast i8*%bl to i32*
store i32 15,i32*%bm,align 4
store i8*null,i8**%d,align 8
store i8*%bc,i8**%e,align 8
store i8*%bf,i8**%f,align 8
store i8*%bi,i8**%g,align 8
%bn=call i8*@sml_alloc(i32 inreg 36)#0
%bo=getelementptr inbounds i8,i8*%bn,i64 -4
%bp=bitcast i8*%bo to i32*
store i32 1342177312,i32*%bp,align 4
store i8*%bn,i8**%i,align 8
%bq=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%br=bitcast i8*%bn to i8**
store i8*%bq,i8**%br,align 8
%bs=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%bt=getelementptr inbounds i8,i8*%bn,i64 8
%bu=bitcast i8*%bt to i8**
store i8*%bs,i8**%bu,align 8
%bv=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%bw=getelementptr inbounds i8,i8*%bn,i64 16
%bx=bitcast i8*%bw to i8**
store i8*%bv,i8**%bx,align 8
%by=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%bz=getelementptr inbounds i8,i8*%bn,i64 24
%bA=bitcast i8*%bz to i8**
store i8*%by,i8**%bA,align 8
%bB=getelementptr inbounds i8,i8*%bn,i64 32
%bC=bitcast i8*%bB to i32*
store i32 15,i32*%bC,align 4
%bD=call i8*@sml_alloc(i32 inreg 20)#0
%bE=bitcast i8*%bD to i32*
%bF=getelementptr inbounds i8,i8*%bD,i64 -4
%bG=bitcast i8*%bF to i32*
store i32 1342177296,i32*%bG,align 4
%bH=getelementptr inbounds i8,i8*%bD,i64 4
%bI=bitcast i8*%bH to i32*
store i32 0,i32*%bI,align 1
store i32 6,i32*%bE,align 4
br label%ch
bJ:
store i8*null,i8**%d,align 8
br label%bK
bK:
%bL=call fastcc i8*@_SMLFN14BoundTypeVarID3Map9listItemsE(i32 inreg 1,i32 inreg 8)
%bM=getelementptr inbounds i8,i8*%bL,i64 16
%bN=bitcast i8*%bM to i8*(i8*,i8*)**
%bO=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bN,align 8
%bP=bitcast i8*%bL to i8**
%bQ=load i8*,i8**%bP,align 8
%bR=load i8*,i8**%b,align 8
%bS=call fastcc i8*%bO(i8*inreg%bQ,i8*inreg%bR)
store i8*%bS,i8**%d,align 8
%bT=load i8*,i8**%g,align 8
%bU=call fastcc i8*@_SMLFN14TypedCalcUtils11getLocOfExpE(i8*inreg%bT)
store i8*%bU,i8**%e,align 8
%bV=call i8*@sml_alloc(i32 inreg 36)#0
%bW=getelementptr inbounds i8,i8*%bV,i64 -4
%bX=bitcast i8*%bW to i32*
store i32 1342177312,i32*%bX,align 4
store i8*%bV,i8**%i,align 8
%bY=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%bZ=bitcast i8*%bV to i8**
store i8*%bY,i8**%bZ,align 8
%b0=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%b1=getelementptr inbounds i8,i8*%bV,i64 8
%b2=bitcast i8*%b1 to i8**
store i8*%b0,i8**%b2,align 8
%b3=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%b4=getelementptr inbounds i8,i8*%bV,i64 16
%b5=bitcast i8*%b4 to i8**
store i8*%b3,i8**%b5,align 8
%b6=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%b7=getelementptr inbounds i8,i8*%bV,i64 24
%b8=bitcast i8*%b7 to i8**
store i8*%b6,i8**%b8,align 8
%b9=getelementptr inbounds i8,i8*%bV,i64 32
%ca=bitcast i8*%b9 to i32*
store i32 15,i32*%ca,align 4
%cb=call i8*@sml_alloc(i32 inreg 20)#0
%cc=bitcast i8*%cb to i32*
%cd=getelementptr inbounds i8,i8*%cb,i64 -4
%ce=bitcast i8*%cd to i32*
store i32 1342177296,i32*%ce,align 4
%cf=getelementptr inbounds i8,i8*%cb,i64 4
%cg=bitcast i8*%cf to i32*
store i32 0,i32*%cg,align 1
store i32 38,i32*%cc,align 4
br label%ch
ch:
%ci=phi i8*[%cb,%bK],[%bD,%aP]
%cj=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%ck=getelementptr inbounds i8,i8*%ci,i64 8
%cl=bitcast i8*%ck to i8**
store i8*%cj,i8**%cl,align 8
%cm=getelementptr inbounds i8,i8*%ci,i64 16
%cn=bitcast i8*%cm to i32*
store i32 2,i32*%cn,align 4
store i8*%ci,i8**%d,align 8
%co=call fastcc i8*@_SMLFN4List3mapE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%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**%e,align 8
%cu=call i8*@sml_alloc(i32 inreg 12)#0
%cv=getelementptr inbounds i8,i8*%cu,i64 -4
%cw=bitcast i8*%cv to i32*
store i32 1342177288,i32*%cw,align 4
store i8*%cu,i8**%f,align 8
%cx=load i8*,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 i32*
store i32 1,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**%f,align 8
store i8*null,i8**%f,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*)*@_SMLL11constraints_244 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*)*@_SMLL11constraints_244 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=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%cN=call fastcc i8*%cr(i8*inreg%cM,i8*inreg%cB)
%cO=getelementptr inbounds i8,i8*%cN,i64 16
%cP=bitcast i8*%cO to i8*(i8*,i8*)**
%cQ=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%cP,align 8
%cR=bitcast i8*%cN to i8**
%cS=load i8*,i8**%cR,align 8
%cT=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%cU=getelementptr inbounds i8,i8*%cT,i64 16
%cV=bitcast i8*%cU to i8**
%cW=load i8*,i8**%cV,align 8
%cX=call fastcc i8*%cQ(i8*inreg%cS,i8*inreg%cW)
store i8*%cX,i8**%e,align 8
%cY=call fastcc i8*@_SMLFN14BoundTypeVarID3Map9listItemsE(i32 inreg 1,i32 inreg 8)
%cZ=getelementptr inbounds i8,i8*%cY,i64 16
%c0=bitcast i8*%cZ to i8*(i8*,i8*)**
%c1=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%c0,align 8
%c2=bitcast i8*%cY to i8**
%c3=load i8*,i8**%c2,align 8
%c4=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%c5=call fastcc i8*%c1(i8*inreg%c3,i8*inreg%c4)
store i8*%c5,i8**%b,align 8
%c6=call i8*@sml_alloc(i32 inreg 36)#0
%c7=getelementptr inbounds i8,i8*%c6,i64 -4
%c8=bitcast i8*%c7 to i32*
store i32 1342177312,i32*%c8,align 4
%c9=load i8*,i8**%c,align 8
%da=bitcast i8*%c6 to i8**
store i8*%c9,i8**%da,align 8
%db=load i8*,i8**%b,align 8
%dc=getelementptr inbounds i8,i8*%c6,i64 8
%dd=bitcast i8*%dc to i8**
store i8*%db,i8**%dd,align 8
%de=load i8*,i8**%e,align 8
%df=getelementptr inbounds i8,i8*%c6,i64 16
%dg=bitcast i8*%df to i8**
store i8*%de,i8**%dg,align 8
%dh=load i8*,i8**%d,align 8
%di=getelementptr inbounds i8,i8*%c6,i64 24
%dj=bitcast i8*%di to i8**
store i8*%dh,i8**%dj,align 8
%dk=getelementptr inbounds i8,i8*%c6,i64 32
%dl=bitcast i8*%dk to i32*
store i32 15,i32*%dl,align 4
ret i8*%c6
}
define internal fastcc void@_SMLLN14TypedCalcUtils22toplevelInstWithInstTyE_251(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
%e=icmp eq i8*%b,null
br i1%e,label%I,label%f
f:
%g=bitcast i8*%b to i32*
%h=load i32,i32*%g,align 4
%i=icmp eq i32%h,10
br i1%i,label%j,label%I
j:
%k=getelementptr inbounds i8,i8*%b,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 i32**
%o=load i32*,i32**%n,align 8
%p=load i32,i32*%o,align 4
%q=icmp eq i32%p,1
br i1%q,label%r,label%I
r:
%s=bitcast i8*%a to i8**
%t=load i8*,i8**%s,align 8
%u=getelementptr inbounds i8,i8*%t,i64 8
%v=bitcast i8*%u to i8**
%w=load i8*,i8**%v,align 8
store i8*%w,i8**%d,align 8
%x=call i8*@sml_alloc(i32 inreg 20)#0
%y=getelementptr inbounds i8,i8*%x,i64 -4
%z=bitcast i8*%y to i32*
store i32 1342177296,i32*%z,align 4
%A=bitcast i8*%x to i64*
store i64 0,i64*%A,align 4
%B=load i8*,i8**%d,align 8
%C=getelementptr inbounds i8,i8*%x,i64 8
%D=bitcast i8*%C to i8**
store i8*%B,i8**%D,align 8
%E=getelementptr inbounds i8,i8*%x,i64 16
%F=bitcast i8*%E to i32*
store i32 2,i32*%F,align 4
%G=load i8*,i8**%c,align 8
%H=bitcast i8*%G to i8**
call void@sml_write(i8*inreg%G,i8**inreg%H,i8*inreg%x)#0
ret void
I:
%J=load i8*,i8**@_SMLZN3Bug3BugE,align 8
store i8*%J,i8**%c,align 8
%K=call i8*@sml_alloc(i32 inreg 28)#0
%L=getelementptr inbounds i8,i8*%K,i64 -4
%M=bitcast i8*%L to i32*
store i32 1342177304,i32*%M,align 4
store i8*%K,i8**%d,align 8
%N=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%O=bitcast i8*%K to i8**
store i8*%N,i8**%O,align 8
%P=getelementptr inbounds i8,i8*%K,i64 8
%Q=bitcast i8*%P to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[73x i8]}>,<{[4x i8],i32,[73x i8]}>*@x,i64 0,i32 2,i64 0),i8**%Q,align 8
%R=getelementptr inbounds i8,i8*%K,i64 16
%S=bitcast i8*%R to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[23x i8]}>,<{[4x i8],i32,[23x i8]}>*@y,i64 0,i32 2,i64 0),i8**%S,align 8
%T=getelementptr inbounds i8,i8*%K,i64 24
%U=bitcast i8*%T to i32*
store i32 7,i32*%U,align 4
%V=call i8*@sml_alloc(i32 inreg 60)#0
%W=getelementptr inbounds i8,i8*%V,i64 -4
%X=bitcast i8*%W to i32*
store i32 1342177336,i32*%X,align 4
%Y=getelementptr inbounds i8,i8*%V,i64 56
%Z=bitcast i8*%Y to i32*
store i32 1,i32*%Z,align 4
%aa=load i8*,i8**%d,align 8
%ab=bitcast i8*%V to i8**
store i8*%aa,i8**%ab,align 8
call void@sml_raise(i8*inreg%V)#1
unreachable
}
define fastcc i8*@_SMLFN14TypedCalcUtils22toplevelInstWithInstTyE(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]
store i8*%m,i8**%d,align 8
%o=bitcast i8*%m to i8**
%p=load i8*,i8**%o,align 8
store i8*%p,i8**%b,align 8
%q=getelementptr inbounds i8,i8*%m,i64 16
%r=bitcast i8*%q to i8**
%s=load i8*,i8**%r,align 8
store i8*%s,i8**%c,align 8
%t=call i8*@sml_alloc(i32 inreg 20)#0
%u=getelementptr inbounds i8,i8*%t,i64 -4
%v=bitcast i8*%u to i32*
store i32 1342177296,i32*%v,align 4
%w=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%x=bitcast i8*%t to i8**
store i8*%w,i8**%x,align 8
%y=load i8*,i8**%b,align 8
store i8*null,i8**%b,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 3,i32*%C,align 4
%D=call fastcc i8*@_SMLFN14TypedCalcUtils17freshToplevelInstE(i8*inreg%t)
store i8*%D,i8**%e,align 8
%E=bitcast i8*%D to i8**
%F=load i8*,i8**%E,align 8
store i8*%F,i8**%b,align 8
%G=getelementptr inbounds i8,i8*%D,i64 24
%H=bitcast i8*%G to i8**
%I=load i8*,i8**%H,align 8
store i8*%I,i8**%c,align 8
%J=getelementptr inbounds i8,i8*%D,i64 16
%K=bitcast i8*%J to i8**
%L=load i8*,i8**%K,align 8
%M=icmp eq i8*%L,null
br i1%M,label%ah,label%N
N:
store i8*null,i8**%c,align 8
store i8*null,i8**%d,align 8
store i8*null,i8**%e,align 8
%O=load i8*,i8**@_SMLZN3Bug3BugE,align 8
store i8*%O,i8**%b,align 8
%P=call i8*@sml_alloc(i32 inreg 28)#0
%Q=getelementptr inbounds i8,i8*%P,i64 -4
%R=bitcast i8*%Q to i32*
store i32 1342177304,i32*%R,align 4
store i8*%P,i8**%c,align 8
%S=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%T=bitcast i8*%P to i8**
store i8*%S,i8**%T,align 8
%U=getelementptr inbounds i8,i8*%P,i64 8
%V=bitcast i8*%U to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[73x i8]}>,<{[4x i8],i32,[73x i8]}>*@w,i64 0,i32 2,i64 0),i8**%V,align 8
%W=getelementptr inbounds i8,i8*%P,i64 16
%X=bitcast i8*%W to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[48x i8]}>,<{[4x i8],i32,[48x i8]}>*@D,i64 0,i32 2,i64 0),i8**%X,align 8
%Y=getelementptr inbounds i8,i8*%P,i64 24
%Z=bitcast i8*%Y to i32*
store i32 7,i32*%Z,align 4
%aa=call i8*@sml_alloc(i32 inreg 60)#0
%ab=getelementptr inbounds i8,i8*%aa,i64 -4
%ac=bitcast i8*%ab to i32*
store i32 1342177336,i32*%ac,align 4
%ad=getelementptr inbounds i8,i8*%aa,i64 56
%ae=bitcast i8*%ad to i32*
store i32 1,i32*%ae,align 4
%af=load i8*,i8**%c,align 8
%ag=bitcast i8*%aa to i8**
store i8*%af,i8**%ag,align 8
call void@sml_raise(i8*inreg%aa)#1
unreachable
ah:
%ai=call fastcc i8*@_SMLFN4List3appE(i32 inreg 1,i32 inreg 8)
%aj=getelementptr inbounds i8,i8*%ai,i64 16
%ak=bitcast i8*%aj to i8*(i8*,i8*)**
%al=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%ak,align 8
%am=bitcast i8*%ai to i8**
%an=load i8*,i8**%am,align 8
store i8*%an,i8**%f,align 8
%ao=call i8*@sml_alloc(i32 inreg 12)#0
%ap=getelementptr inbounds i8,i8*%ao,i64 -4
%aq=bitcast i8*%ap to i32*
store i32 1342177288,i32*%aq,align 4
store i8*%ao,i8**%g,align 8
%ar=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%as=bitcast i8*%ao to i8**
store i8*%ar,i8**%as,align 8
%at=getelementptr inbounds i8,i8*%ao,i64 8
%au=bitcast i8*%at to i32*
store i32 1,i32*%au,align 4
%av=call i8*@sml_alloc(i32 inreg 28)#0
%aw=getelementptr inbounds i8,i8*%av,i64 -4
%ax=bitcast i8*%aw to i32*
store i32 1342177304,i32*%ax,align 4
%ay=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%az=bitcast i8*%av to i8**
store i8*%ay,i8**%az,align 8
%aA=getelementptr inbounds i8,i8*%av,i64 8
%aB=bitcast i8*%aA to void(...)**
store void(...)*bitcast(void(i8*,i8*)*@_SMLLN14TypedCalcUtils22toplevelInstWithInstTyE_251 to void(...)*),void(...)**%aB,align 8
%aC=getelementptr inbounds i8,i8*%av,i64 16
%aD=bitcast i8*%aC to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN14TypedCalcUtils22toplevelInstWithInstTyE_289 to void(...)*),void(...)**%aD,align 8
%aE=getelementptr inbounds i8,i8*%av,i64 24
%aF=bitcast i8*%aE to i32*
store i32 -2147483647,i32*%aF,align 4
%aG=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%aH=call fastcc i8*%al(i8*inreg%aG,i8*inreg%av)
%aI=getelementptr inbounds i8,i8*%aH,i64 16
%aJ=bitcast i8*%aI to i8*(i8*,i8*)**
%aK=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aJ,align 8
%aL=bitcast i8*%aH 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=call fastcc i8*%aK(i8*inreg%aM,i8*inreg%aQ)
%aS=call i8*@sml_alloc(i32 inreg 20)#0
%aT=getelementptr inbounds i8,i8*%aS,i64 -4
%aU=bitcast i8*%aT to i32*
store i32 1342177296,i32*%aU,align 4
%aV=load i8*,i8**%c,align 8
%aW=bitcast i8*%aS to i8**
store i8*%aV,i8**%aW,align 8
%aX=load i8*,i8**%b,align 8
%aY=getelementptr inbounds i8,i8*%aS,i64 8
%aZ=bitcast i8*%aY to i8**
store i8*%aX,i8**%aZ,align 8
%a0=getelementptr inbounds i8,i8*%aS,i64 16
%a1=bitcast i8*%a0 to i32*
store i32 3,i32*%a1,align 4
ret i8*%aS
}
define internal fastcc void@_SMLLN14TypedCalcUtils26toplevelInstWithInstTyListE_261(i8*inreg%a)#2 gc"smlsharp"{
%b=alloca i8*,align 8
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
%d=bitcast i8*%a to i8**
%e=load i8*,i8**%d,align 8
%f=icmp eq i8*%e,null
br i1%f,label%H,label%g
g:
%h=bitcast i8*%e to i32*
%i=load i32,i32*%h,align 4
%j=icmp eq i32%i,10
br i1%j,label%k,label%H
k:
%l=getelementptr inbounds i8,i8*%e,i64 8
%m=bitcast i8*%l to i8**
%n=load i8*,i8**%m,align 8
store i8*%n,i8**%b,align 8
%o=bitcast i8*%n to i32**
%p=load i32*,i32**%o,align 8
%q=load i32,i32*%p,align 4
%r=icmp eq i32%q,1
br i1%r,label%s,label%H
s:
%t=getelementptr inbounds i8,i8*%a,i64 8
%u=bitcast i8*%t to i8**
%v=load i8*,i8**%u,align 8
store i8*%v,i8**%c,align 8
%w=call i8*@sml_alloc(i32 inreg 20)#0
%x=getelementptr inbounds i8,i8*%w,i64 -4
%y=bitcast i8*%x to i32*
store i32 1342177296,i32*%y,align 4
%z=bitcast i8*%w to i64*
store i64 0,i64*%z,align 4
%A=load i8*,i8**%c,align 8
%B=getelementptr inbounds i8,i8*%w,i64 8
%C=bitcast i8*%B to i8**
store i8*%A,i8**%C,align 8
%D=getelementptr inbounds i8,i8*%w,i64 16
%E=bitcast i8*%D to i32*
store i32 2,i32*%E,align 4
%F=load i8*,i8**%b,align 8
%G=bitcast i8*%F to i8**
call void@sml_write(i8*inreg%F,i8**inreg%G,i8*inreg%w)#0
ret void
H:
%I=load i8*,i8**@_SMLZN3Bug3BugE,align 8
store i8*%I,i8**%b,align 8
%J=call i8*@sml_alloc(i32 inreg 28)#0
%K=getelementptr inbounds i8,i8*%J,i64 -4
%L=bitcast i8*%K to i32*
store i32 1342177304,i32*%L,align 4
store i8*%J,i8**%c,align 8
%M=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%N=bitcast i8*%J to i8**
store i8*%M,i8**%N,align 8
%O=getelementptr inbounds i8,i8*%J,i64 8
%P=bitcast i8*%O to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[73x i8]}>,<{[4x i8],i32,[73x i8]}>*@E,i64 0,i32 2,i64 0),i8**%P,align 8
%Q=getelementptr inbounds i8,i8*%J,i64 16
%R=bitcast i8*%Q to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[27x i8]}>,<{[4x i8],i32,[27x i8]}>*@F,i64 0,i32 2,i64 0),i8**%R,align 8
%S=getelementptr inbounds i8,i8*%J,i64 24
%T=bitcast i8*%S to i32*
store i32 7,i32*%T,align 4
%U=call i8*@sml_alloc(i32 inreg 60)#0
%V=getelementptr inbounds i8,i8*%U,i64 -4
%W=bitcast i8*%V to i32*
store i32 1342177336,i32*%W,align 4
%X=getelementptr inbounds i8,i8*%U,i64 56
%Y=bitcast i8*%X to i32*
store i32 1,i32*%Y,align 4
%Z=load i8*,i8**%c,align 8
%aa=bitcast i8*%U to i8**
store i8*%Z,i8**%aa,align 8
call void@sml_raise(i8*inreg%U)#1
unreachable
}
define fastcc i8*@_SMLFN14TypedCalcUtils26toplevelInstWithInstTyListE(i8*inreg%a)#2 gc"smlsharp"personality i32(...)*@sml_personality{
m:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
store i8*%a,i8**%b,align 8
%g=load atomic i32,i32*@sml_check_flag unordered,align 4
%h=icmp eq i32%g,0
br i1%h,label%k,label%i
i:
call void@sml_check(i32 inreg%g)
%j=load i8*,i8**%b,align 8
br label%k
k:
%l=phi i8*[%j,%i],[%a,%m]
%n=bitcast i8*%l to i8**
%o=load i8*,i8**%n,align 8
store i8*%o,i8**%b,align 8
%p=getelementptr inbounds i8,i8*%l,i64 8
%q=bitcast i8*%p to i8**
%r=load i8*,i8**%q,align 8
store i8*%r,i8**%e,align 8
%s=getelementptr inbounds i8,i8*%l,i64 16
%t=bitcast i8*%s to i8**
%u=load i8*,i8**%t,align 8
store i8*%u,i8**%c,align 8
%v=call i8*@sml_alloc(i32 inreg 20)#0
%w=getelementptr inbounds i8,i8*%v,i64 -4
%x=bitcast i8*%w to i32*
store i32 1342177296,i32*%x,align 4
%y=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%z=bitcast i8*%v to i8**
store i8*%y,i8**%z,align 8
%A=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%B=getelementptr inbounds i8,i8*%v,i64 8
%C=bitcast i8*%B to i8**
store i8*%A,i8**%C,align 8
%D=getelementptr inbounds i8,i8*%v,i64 16
%E=bitcast i8*%D to i32*
store i32 3,i32*%E,align 4
%F=call fastcc i8*@_SMLFN14TypedCalcUtils17freshToplevelInstE(i8*inreg%v)
%G=bitcast i8*%F to i8**
%H=load i8*,i8**%G,align 8
store i8*%H,i8**%b,align 8
%I=getelementptr inbounds i8,i8*%F,i64 8
%J=bitcast i8*%I to i8**
%K=load i8*,i8**%J,align 8
store i8*%K,i8**%c,align 8
%L=getelementptr inbounds i8,i8*%F,i64 24
%M=bitcast i8*%L to i8**
%N=load i8*,i8**%M,align 8
store i8*%N,i8**%d,align 8
%O=getelementptr inbounds i8,i8*%F,i64 16
%P=bitcast i8*%O to i8**
%Q=load i8*,i8**%P,align 8
%R=icmp eq i8*%Q,null
br i1%R,label%am,label%S
S:
store i8*null,i8**%c,align 8
store i8*null,i8**%d,align 8
store i8*null,i8**%e,align 8
%T=load i8*,i8**@_SMLZN3Bug3BugE,align 8
store i8*%T,i8**%b,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
store i8*%U,i8**%c,align 8
%X=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%Y=bitcast i8*%U to i8**
store i8*%X,i8**%Y,align 8
%Z=getelementptr inbounds i8,i8*%U,i64 8
%aa=bitcast i8*%Z to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[73x i8]}>,<{[4x i8],i32,[73x i8]}>*@C,i64 0,i32 2,i64 0),i8**%aa,align 8
%ab=getelementptr inbounds i8,i8*%U,i64 16
%ac=bitcast i8*%ab to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[48x i8]}>,<{[4x i8],i32,[48x i8]}>*@D,i64 0,i32 2,i64 0),i8**%ac,align 8
%ad=getelementptr inbounds i8,i8*%U,i64 24
%ae=bitcast i8*%ad to i32*
store i32 7,i32*%ae,align 4
%af=call i8*@sml_alloc(i32 inreg 60)#0
%ag=getelementptr inbounds i8,i8*%af,i64 -4
%ah=bitcast i8*%ag to i32*
store i32 1342177336,i32*%ah,align 4
%ai=getelementptr inbounds i8,i8*%af,i64 56
%aj=bitcast i8*%ai to i32*
store i32 1,i32*%aj,align 4
%ak=load i8*,i8**%c,align 8
%al=bitcast i8*%af to i8**
store i8*%ak,i8**%al,align 8
call void@sml_raise(i8*inreg%af)#1
unreachable
am:
%an=invoke fastcc i8*@_SMLFN8ListPair5appEqE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
to label%ao unwind label%aY
ao:
%ap=getelementptr inbounds i8,i8*%an,i64 16
%aq=bitcast i8*%ap to i8*(i8*,i8*)**
%ar=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aq,align 8
%as=bitcast i8*%an to i8**
%at=load i8*,i8**%as,align 8
%au=invoke fastcc i8*%ar(i8*inreg%at,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*))
to label%av unwind label%aY
av:
%aw=getelementptr inbounds i8,i8*%au,i64 16
%ax=bitcast i8*%aw to i8*(i8*,i8*)**
%ay=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%ax,align 8
%az=bitcast i8*%au to i8**
%aA=load i8*,i8**%az,align 8
store i8*%aA,i8**%f,align 8
%aB=call i8*@sml_alloc(i32 inreg 20)#0
%aC=getelementptr inbounds i8,i8*%aB,i64 -4
%aD=bitcast i8*%aC to i32*
store i32 1342177296,i32*%aD,align 4
%aE=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aF=bitcast i8*%aB to i8**
store i8*%aE,i8**%aF,align 8
%aG=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%aH=getelementptr inbounds i8,i8*%aB,i64 8
%aI=bitcast i8*%aH to i8**
store i8*%aG,i8**%aI,align 8
%aJ=getelementptr inbounds i8,i8*%aB,i64 16
%aK=bitcast i8*%aJ to i32*
store i32 3,i32*%aK,align 4
%aL=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%aM=invoke fastcc i8*%ay(i8*inreg%aL,i8*inreg%aB)
to label%aN unwind label%aY
aN:
%aO=call i8*@sml_alloc(i32 inreg 20)#0
%aP=getelementptr inbounds i8,i8*%aO,i64 -4
%aQ=bitcast i8*%aP to i32*
store i32 1342177296,i32*%aQ,align 4
%aR=load i8*,i8**%d,align 8
%aS=bitcast i8*%aO to i8**
store i8*%aR,i8**%aS,align 8
%aT=load i8*,i8**%b,align 8
%aU=getelementptr inbounds i8,i8*%aO,i64 8
%aV=bitcast i8*%aU to i8**
store i8*%aT,i8**%aV,align 8
%aW=getelementptr inbounds i8,i8*%aO,i64 16
%aX=bitcast i8*%aW to i32*
store i32 3,i32*%aX,align 4
ret i8*%aO
aY:
%aZ=landingpad{i8*,i8*}
catch i8*null
%a0=extractvalue{i8*,i8*}%aZ,1
%a1=bitcast i8*%a0 to i8**
%a2=load i8*,i8**%a1,align 8
store i8*null,i8**%c,align 8
store i8*null,i8**%d,align 8
store i8*null,i8**%e,align 8
store i8*%a2,i8**%b,align 8
%a3=bitcast i8*%a2 to i8**
%a4=load i8*,i8**%a3,align 8
%a5=load i8*,i8**@_SMLZN8ListPair14UnequalLengthsE,align 8
%a6=icmp eq i8*%a4,%a5
br i1%a6,label%a7,label%be
a7:
store i8*null,i8**%b,align 8
%a8=call i8*@sml_alloc(i32 inreg 60)#0
%a9=getelementptr inbounds i8,i8*%a8,i64 -4
%ba=bitcast i8*%a9 to i32*
store i32 1342177336,i32*%ba,align 4
%bb=getelementptr inbounds i8,i8*%a8,i64 56
%bc=bitcast i8*%bb to i32*
store i32 1,i32*%bc,align 4
%bd=bitcast i8*%a8 to i8**
store i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,i8*,i32}>,<{[4x i8],i32,i8*,i8*,i32}>*@I,i64 0,i32 2)to i8*),i8**%bd,align 8
call void@sml_raise(i8*inreg%a8)#1
unreachable
be:
%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**%b,align 8
%bl=bitcast i8*%bf to i8**
store i8*%bk,i8**%bl,align 8
call void@sml_raise(i8*inreg%bf)#1
unreachable
}
define internal fastcc i8*@_SMLLN14TypedCalcUtils12newTCVarInfoE_267(i8*inreg%a)#2 gc"smlsharp"{
%b=alloca i8*,align 8
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%b,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%g,label%f
f:
call void@sml_check(i32 inreg%d)
br label%g
g:
%h=call fastcc i32@_SMLFN5VarID8generateE(i32 inreg 0)
%i=call i8*@sml_alloc(i32 inreg 28)#0
%j=bitcast i8*%i to i32*
%k=getelementptr inbounds i8,i8*%i,i64 -4
%l=bitcast i8*%k to i32*
store i32 1342177304,i32*%l,align 4
store i32%h,i32*%j,align 4
%m=getelementptr inbounds i8,i8*%i,i64 4
%n=bitcast i8*%m to i32*
store i32 0,i32*%n,align 4
%o=getelementptr inbounds i8,i8*%i,i64 8
%p=bitcast i8*%o to i8**
store i8*null,i8**%p,align 8
%q=load i8*,i8**%b,align 8
%r=getelementptr inbounds i8,i8*%i,i64 16
%s=bitcast i8*%r to i8**
store i8*%q,i8**%s,align 8
%t=getelementptr inbounds i8,i8*%i,i64 24
%u=bitcast i8*%t to i32*
store i32 6,i32*%u,align 4
store i8*null,i8**%b,align 8
store i8*%q,i8**%c,align 8
%v=call i8*@sml_alloc(i32 inreg 28)#0
%w=bitcast i8*%v to i32*
%x=getelementptr inbounds i8,i8*%v,i64 -4
%y=bitcast i8*%x to i32*
store i32 1342177304,i32*%y,align 4
store i32%h,i32*%w,align 4
%z=getelementptr inbounds i8,i8*%v,i64 4
%A=bitcast i8*%z to i32*
store i32 0,i32*%A,align 4
%B=load i8*,i8**%b,align 8
%C=getelementptr inbounds i8,i8*%v,i64 8
%D=bitcast i8*%C to i8**
store i8*%B,i8**%D,align 8
%E=load i8*,i8**%c,align 8
%F=getelementptr inbounds i8,i8*%v,i64 16
%G=bitcast i8*%F to i8**
store i8*%E,i8**%G,align 8
%H=getelementptr inbounds i8,i8*%v,i64 24
%I=bitcast i8*%H to i32*
store i32 6,i32*%I,align 4
ret i8*%v
}
define fastcc i8*@_SMLFN14TypedCalcUtils12newTCVarInfoE(i8*inreg%a)#4 gc"smlsharp"{
ret i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@K,i64 0,i32 2)to i8*)
}
define fastcc i8*@_SMLFN14TypedCalcUtils9freshInstE(i8*inreg%a)#2 gc"smlsharp"{
i:
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%g,label%e
e:
call void@sml_check(i32 inreg%c)
%f=load i8*,i8**%b,align 8
br label%g
g:
%h=phi i8*[%f,%e],[%a,%i]
%j=tail call fastcc i8*@_SMLLN14TypedCalcUtils9freshInstE_208(i8*inreg%h)
ret i8*%j
}
define fastcc i32@_SMLFN14TypedCalcUtils9expansiveE(i8*inreg%a)#2 gc"smlsharp"{
i:
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%g,label%e
e:
call void@sml_check(i32 inreg%c)
%f=load i8*,i8**%b,align 8
br label%g
g:
%h=phi i8*[%f,%e],[%a,%i]
%j=tail call fastcc i32@_SMLLN14TypedCalcUtils9expansiveE_188(i8*inreg%h)
ret i32%j
}
define fastcc i32@_SMLFN14TypedCalcUtils6isAtomE(i8*inreg%a)#4 gc"smlsharp"{
h:
%b=icmp eq i8*%a,null
br i1%b,label%f,label%c
c:
%d=bitcast i8*%a to i32*
%e=load i32,i32*%d,align 4
switch i32%e,label%f[
i32 5,label%m
i32 18,label%l
i32 22,label%k
i32 32,label%j
i32 40,label%i
]
f:
%g=phi i32[0,%c],[1,%i],[1,%j],[1,%k],[1,%l],[1,%m],[0,%h]
ret i32%g
i:
br label%f
j:
br label%f
k:
br label%f
l:
br label%f
m:
br label%f
}
define internal fastcc i8*@_SMLLN14TypedCalcUtils11getLocOfExpE_277(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN14TypedCalcUtils11getLocOfExpE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLN14TypedCalcUtils9expansiveE_278(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLLN14TypedCalcUtils9expansiveE_195(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*@_SMLLN14TypedCalcUtils9expansiveE_279(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLLN14TypedCalcUtils9expansiveE_197(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*@_SMLLN14TypedCalcUtils13instantiateTvE_281(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLFN14TypedCalcUtils13instantiateTvE(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*@_SMLLN14TypedCalcUtils9freshInstE_282(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
ret i8*%b
}
define internal fastcc i8*@_SMLL10argVarList_283(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLL10argVarList_228(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLL10argExpList_284(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLL10argExpList_230(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLN14TypedCalcUtils10groundInstE_286(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLLN14TypedCalcUtils10groundInstE_240(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*@_SMLLN14TypedCalcUtils10groundInstE_287(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN14TypedCalcUtils10groundInstE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLN14TypedCalcUtils17freshToplevelInstE_288(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN14TypedCalcUtils17freshToplevelInstE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLN14TypedCalcUtils22toplevelInstWithInstTyE_289(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLLN14TypedCalcUtils22toplevelInstWithInstTyE_251(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*@_SMLLN14TypedCalcUtils22toplevelInstWithInstTyE_290(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN14TypedCalcUtils22toplevelInstWithInstTyE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLN14TypedCalcUtils26toplevelInstWithInstTyListE_291(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLLN14TypedCalcUtils26toplevelInstWithInstTyListE_261(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*@_SMLLN14TypedCalcUtils26toplevelInstWithInstTyListE_292(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN14TypedCalcUtils26toplevelInstWithInstTyListE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLN14TypedCalcUtils12newTCVarInfoE_293(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLLN14TypedCalcUtils12newTCVarInfoE_267(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLN14TypedCalcUtils12newTCVarInfoE_294(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
ret i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@K,i64 0,i32 2)to i8*)
}
define internal fastcc i8*@_SMLLN14TypedCalcUtils9freshInstE_295(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN14TypedCalcUtils9freshInstE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLN14TypedCalcUtils9expansiveE_296(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i32@_SMLFN14TypedCalcUtils9expansiveE(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*@_SMLLN14TypedCalcUtils6isAtomE_297(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i32@_SMLFN14TypedCalcUtils6isAtomE(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
}
declare void@llvm.memset.p0i8.i64(i8*,i8,i64,i1)#0
attributes#0={nounwind}
attributes#1={noreturn}
attributes#2={uwtable}
attributes#3={noreturn nounwind}
attributes#4={nounwind uwtable}
