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