@sml_check_flag=external local_unnamed_addr global i32
@_SMLZN19SMLSharp__SQL__Config6DLLEXTE=external local_unnamed_addr global i8*
@a=private unnamed_addr constant<{[4x i8],i32,[24x i8]}><{[4x i8]zeroinitializer,i32 -2147483624,[24x i8]c"SMLSHARP_LIBMYSQLCLIENT\00"}>,align 8
@b=private unnamed_addr constant<{[4x i8],i32,[19x i8]}><{[4x i8]zeroinitializer,i32 -2147483629,[19x i8]c"libmysqlclient.16.\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*(i32)*@_SMLLN18SMLSharp__SQL__MySQL3libE_38 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN18SMLSharp__SQL__MySQL3libE_89 to void(...)*),i32 -2147483647}>,align 8
@d=private unnamed_addr constant<{[4x i8],i32,[11x i8]}><{[4x i8]zeroinitializer,i32 -2147483637,[11x i8]c"mysql_init\00"}>,align 8
@e=private unnamed_addr constant<{[4x i8],i32,[19x i8]}><{[4x i8]zeroinitializer,i32 -2147483629,[19x i8]c"mysql_real_connect\00"}>,align 8
@f=private unnamed_addr constant<{[4x i8],i32,[12x i8]}><{[4x i8]zeroinitializer,i32 -2147483636,[12x i8]c"mysql_errno\00"}>,align 8
@g=private unnamed_addr constant<{[4x i8],i32,[12x i8]}><{[4x i8]zeroinitializer,i32 -2147483636,[12x i8]c"mysql_error\00"}>,align 8
@h=private unnamed_addr constant<{[4x i8],i32,[12x i8]}><{[4x i8]zeroinitializer,i32 -2147483636,[12x i8]c"mysql_query\00"}>,align 8
@i=private unnamed_addr constant<{[4x i8],i32,[19x i8]}><{[4x i8]zeroinitializer,i32 -2147483629,[19x i8]c"mysql_store_result\00"}>,align 8
@j=private unnamed_addr constant<{[4x i8],i32,[17x i8]}><{[4x i8]zeroinitializer,i32 -2147483631,[17x i8]c"mysql_use_result\00"}>,align 8
@k=private unnamed_addr constant<{[4x i8],i32,[16x i8]}><{[4x i8]zeroinitializer,i32 -2147483632,[16x i8]c"mysql_fetch_row\00"}>,align 8
@l=private unnamed_addr constant<{[4x i8],i32,[18x i8]}><{[4x i8]zeroinitializer,i32 -2147483630,[18x i8]c"mysql_free_result\00"}>,align 8
@m=private unnamed_addr constant<{[4x i8],i32,[12x i8]}><{[4x i8]zeroinitializer,i32 -2147483636,[12x i8]c"mysql_close\00"}>,align 8
@n=private unnamed_addr constant<{[4x i8],i32,[16x i8]}><{[4x i8]zeroinitializer,i32 -2147483632,[16x i8]c"mysql_data_seek\00"}>,align 8
@o=private unnamed_addr constant<{[4x i8],i32,[15x i8]}><{[4x i8]zeroinitializer,i32 -2147483633,[15x i8]c"mysql_num_rows\00"}>,align 8
@_SML_gvar1d1ac2f11ce506e3_MySQL=private global<{[4x i8],i32,[11x i8*]}><{[4x i8]zeroinitializer,i32 -1342177192,[11x i8*]zeroinitializer}>,align 8
@p=private unnamed_addr global[2x i64][i64 1,i64 sub(i64 ptrtoint(i8**getelementptr inbounds(<{[4x i8],i32,[11x i8*]}>,<{[4x i8],i32,[11x i8*]}>*@_SML_gvar1d1ac2f11ce506e3_MySQL,i32 0,i32 2,i32 0)to i64),i64 ptrtoint([2x i64]*@p to i64))]
@_SML_ftab1d1ac2f11ce506e3_MySQL=external global i8
@q=private unnamed_addr global i8 0
@_SMLZN18SMLSharp__SQL__MySQL10mysql__initE=alias i8*,getelementptr inbounds(<{[4x i8],i32,[11x i8*]}>,<{[4x i8],i32,[11x i8*]}>*@_SML_gvar1d1ac2f11ce506e3_MySQL,i32 0,i32 2,i32 0)
@_SMLZN18SMLSharp__SQL__MySQL18mysql__real__connectE=alias i8*,getelementptr inbounds(<{[4x i8],i32,[11x i8*]}>,<{[4x i8],i32,[11x i8*]}>*@_SML_gvar1d1ac2f11ce506e3_MySQL,i32 0,i32 2,i32 1)
@_SMLZN18SMLSharp__SQL__MySQL11mysql__errnoE=alias i8*,getelementptr inbounds(<{[4x i8],i32,[11x i8*]}>,<{[4x i8],i32,[11x i8*]}>*@_SML_gvar1d1ac2f11ce506e3_MySQL,i32 0,i32 2,i32 2)
@_SMLZN18SMLSharp__SQL__MySQL11mysql__errorE=alias i8*,getelementptr inbounds(<{[4x i8],i32,[11x i8*]}>,<{[4x i8],i32,[11x i8*]}>*@_SML_gvar1d1ac2f11ce506e3_MySQL,i32 0,i32 2,i32 3)
@_SMLZN18SMLSharp__SQL__MySQL11mysql__queryE=alias i8*,getelementptr inbounds(<{[4x i8],i32,[11x i8*]}>,<{[4x i8],i32,[11x i8*]}>*@_SML_gvar1d1ac2f11ce506e3_MySQL,i32 0,i32 2,i32 4)
@_SMLZN18SMLSharp__SQL__MySQL18mysql__store__resultE=alias i8*,getelementptr inbounds(<{[4x i8],i32,[11x i8*]}>,<{[4x i8],i32,[11x i8*]}>*@_SML_gvar1d1ac2f11ce506e3_MySQL,i32 0,i32 2,i32 5)
@_SMLZN18SMLSharp__SQL__MySQL15mysql__fetch__rowE=alias i8*,getelementptr inbounds(<{[4x i8],i32,[11x i8*]}>,<{[4x i8],i32,[11x i8*]}>*@_SML_gvar1d1ac2f11ce506e3_MySQL,i32 0,i32 2,i32 6)
@_SMLZN18SMLSharp__SQL__MySQL17mysql__free__resultE=alias i8*,getelementptr inbounds(<{[4x i8],i32,[11x i8*]}>,<{[4x i8],i32,[11x i8*]}>*@_SML_gvar1d1ac2f11ce506e3_MySQL,i32 0,i32 2,i32 7)
@_SMLZN18SMLSharp__SQL__MySQL15mysql__data__seekE=alias i8*,getelementptr inbounds(<{[4x i8],i32,[11x i8*]}>,<{[4x i8],i32,[11x i8*]}>*@_SML_gvar1d1ac2f11ce506e3_MySQL,i32 0,i32 2,i32 8)
@_SMLZN18SMLSharp__SQL__MySQL11mysql__closeE=alias i8*,getelementptr inbounds(<{[4x i8],i32,[11x i8*]}>,<{[4x i8],i32,[11x i8*]}>*@_SML_gvar1d1ac2f11ce506e3_MySQL,i32 0,i32 2,i32 9)
@_SMLZN18SMLSharp__SQL__MySQL14mysql__num__rowsE=alias i8*,getelementptr inbounds(<{[4x i8],i32,[11x i8*]}>,<{[4x i8],i32,[11x i8*]}>*@_SML_gvar1d1ac2f11ce506e3_MySQL,i32 0,i32 2,i32 10)
declare void@llvm.gcroot(i8**,i8*)#0
declare i8*@sml_alloc(i32 inreg)local_unnamed_addr#0
declare void@sml_check(i32 inreg)local_unnamed_addr
declare void@sml_end()local_unnamed_addr#0
declare void@sml_enter()local_unnamed_addr#0
declare void@sml_gcroot(i8*,void()*,i8*,i8*)local_unnamed_addr#0
declare void@sml_leave()local_unnamed_addr#0
declare i32@sml_personality(...)#0
declare void@sml_save_exn(i8*inreg)local_unnamed_addr#0
declare void@sml_start(i8*inreg)local_unnamed_addr#0
declare i8*@sml_unsave_exn(i8*inreg)local_unnamed_addr#0
declare void@sml_write(i8*inreg,i8**inreg,i8*inreg)local_unnamed_addr#0
declare void(...)*@_SMLFN11DynamicLink5dlsymE(i8*inreg)local_unnamed_addr#1 gc"smlsharp"
declare i8*@_SMLFN11DynamicLink6dlopenE(i8*inreg)local_unnamed_addr#1 gc"smlsharp"
declare i8*@_SMLFN18SMLSharp__OSProcess6getEnvE(i8*inreg)local_unnamed_addr#1 gc"smlsharp"
declare i8*@_SMLFN6String1_ZE(i8*inreg)local_unnamed_addr#1 gc"smlsharp"
declare void@_SML_main19a59bcdb325454c_SMLSharp_OSProcess()local_unnamed_addr#1 gc"smlsharp"
declare void@_SML_main1ef93e13728790b1_String()local_unnamed_addr#1 gc"smlsharp"
declare void@_SML_mainfb23865721a0c043_SQLConfig()local_unnamed_addr#1 gc"smlsharp"
declare void@_SML_main82bd5aec591c098a_DynamicLink()local_unnamed_addr#1 gc"smlsharp"
declare void@_SML_load19a59bcdb325454c_SMLSharp_OSProcess(i8*)local_unnamed_addr
declare void@_SML_load1ef93e13728790b1_String(i8*)local_unnamed_addr
declare void@_SML_loadfb23865721a0c043_SQLConfig(i8*)local_unnamed_addr
declare void@_SML_load82bd5aec591c098a_DynamicLink(i8*)local_unnamed_addr
define private void@_SML_tabb1d1ac2f11ce506e3_MySQL()#2{
unreachable
}
define void@_SML_load1d1ac2f11ce506e3_MySQL(i8*%a)local_unnamed_addr#0{
%b=load i8,i8*@q,align 1
%c=icmp eq i8%b,0
br i1%c,label%e,label%d
d:
ret void
e:
store i8 1,i8*@q,align 1
tail call void@_SML_load19a59bcdb325454c_SMLSharp_OSProcess(i8*%a)#0
tail call void@_SML_load1ef93e13728790b1_String(i8*%a)#0
tail call void@_SML_loadfb23865721a0c043_SQLConfig(i8*%a)#0
tail call void@_SML_load82bd5aec591c098a_DynamicLink(i8*%a)#0
tail call void@sml_gcroot(i8*%a,void()*@_SML_tabb1d1ac2f11ce506e3_MySQL,i8*@_SML_ftab1d1ac2f11ce506e3_MySQL,i8*bitcast([2x i64]*@p to i8*))#0
ret void
}
define void@_SML_main1d1ac2f11ce506e3_MySQL()local_unnamed_addr#1 gc"smlsharp"personality i32(...)*@sml_personality{
%a=alloca[3x i8*],align 8
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
%h=alloca i8*,align 8
%i=alloca i8*,align 8
%j=alloca i8*,align 8
%k=alloca i8*,align 8
%l=alloca i8*,align 8
%m=alloca i8*,align 8
%n=alloca i8*,align 8
%o=load i8,i8*@q,align 1
%p=and i8%o,2
%q=icmp eq i8%p,0
br i1%q,label%s,label%r
r:
ret void
s:
store i8 3,i8*@q,align 1
tail call void@_SML_main19a59bcdb325454c_SMLSharp_OSProcess()#1
tail call void@_SML_main1ef93e13728790b1_String()#1
tail call void@_SML_mainfb23865721a0c043_SQLConfig()#1
tail call void@_SML_main82bd5aec591c098a_DynamicLink()#1
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
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
%t=bitcast[3x i8*]*%a to i8*
call void@sml_start(i8*inreg%t)#0
%u=load atomic i32,i32*@sml_check_flag unordered,align 4
%v=icmp eq i32%u,0
br i1%v,label%x,label%w
w:
invoke void@sml_check(i32 inreg%u)
to label%x unwind label%fe
x:
%y=call fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL4lazyE_34(i32 inreg 0)
%z=getelementptr inbounds i8,i8*%y,i64 16
%A=bitcast i8*%z to i8*(i8*,i8*)**
%B=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%A,align 8
%C=bitcast i8*%y to i8**
%D=load i8*,i8**%C,align 8
%E=invoke fastcc i8*%B(i8*inreg%D,i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@c,i64 0,i32 2)to i8*))
to label%F unwind label%fe
F:
store i8*%E,i8**%b,align 8
%G=call fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL4lazyE_34(i32 inreg 1)
%H=getelementptr inbounds i8,i8*%G,i64 16
%I=bitcast i8*%H to i8*(i8*,i8*)**
%J=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%I,align 8
%K=bitcast i8*%G to i8**
%L=load i8*,i8**%K,align 8
store i8*%L,i8**%c,align 8
%M=call i8*@sml_alloc(i32 inreg 12)#0
%N=getelementptr inbounds i8,i8*%M,i64 -4
%O=bitcast i8*%N to i32*
store i32 1342177288,i32*%O,align 4
store i8*%M,i8**%d,align 8
%P=load i8*,i8**%b,align 8
%Q=bitcast i8*%M to i8**
store i8*%P,i8**%Q,align 8
%R=getelementptr inbounds i8,i8*%M,i64 8
%S=bitcast i8*%R to i32*
store i32 1,i32*%S,align 4
%T=call i8*@sml_alloc(i32 inreg 28)#0
%U=getelementptr inbounds i8,i8*%T,i64 -4
%V=bitcast i8*%U to i32*
store i32 1342177304,i32*%V,align 4
%W=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%X=bitcast i8*%T to i8**
store i8*%W,i8**%X,align 8
%Y=getelementptr inbounds i8,i8*%T,i64 8
%Z=bitcast i8*%Y to void(...)**
store void(...)*bitcast(i8*(i8*,i32)*@_SMLLN18SMLSharp__SQL__MySQL10mysql__initE_42 to void(...)*),void(...)**%Z,align 8
%aa=getelementptr inbounds i8,i8*%T,i64 16
%ab=bitcast i8*%aa to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN18SMLSharp__SQL__MySQL10mysql__initE_91 to void(...)*),void(...)**%ab,align 8
%ac=getelementptr inbounds i8,i8*%T,i64 24
%ad=bitcast i8*%ac to i32*
store i32 -2147483647,i32*%ad,align 4
%ae=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%af=invoke fastcc i8*%J(i8*inreg%ae,i8*inreg%T)
to label%ag unwind label%fe
ag:
store i8*%af,i8**%c,align 8
%ah=call fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL4lazyE_34(i32 inreg 1)
%ai=getelementptr inbounds i8,i8*%ah,i64 16
%aj=bitcast i8*%ai to i8*(i8*,i8*)**
%ak=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aj,align 8
%al=bitcast i8*%ah to i8**
%am=load i8*,i8**%al,align 8
store i8*%am,i8**%d,align 8
%an=call i8*@sml_alloc(i32 inreg 12)#0
%ao=getelementptr inbounds i8,i8*%an,i64 -4
%ap=bitcast i8*%ao to i32*
store i32 1342177288,i32*%ap,align 4
store i8*%an,i8**%e,align 8
%aq=load i8*,i8**%b,align 8
%ar=bitcast i8*%an to i8**
store i8*%aq,i8**%ar,align 8
%as=getelementptr inbounds i8,i8*%an,i64 8
%at=bitcast i8*%as to i32*
store i32 1,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**%e,align 8
store i8*null,i8**%e,align 8
%ay=bitcast i8*%au to i8**
store i8*%ax,i8**%ay,align 8
%az=getelementptr inbounds i8,i8*%au,i64 8
%aA=bitcast i8*%az to void(...)**
store void(...)*bitcast(i8*(i8*,i32)*@_SMLLN18SMLSharp__SQL__MySQL18mysql__real__connectE_45 to void(...)*),void(...)**%aA,align 8
%aB=getelementptr inbounds i8,i8*%au,i64 16
%aC=bitcast i8*%aB to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN18SMLSharp__SQL__MySQL18mysql__real__connectE_93 to void(...)*),void(...)**%aC,align 8
%aD=getelementptr inbounds i8,i8*%au,i64 24
%aE=bitcast i8*%aD to i32*
store i32 -2147483647,i32*%aE,align 4
%aF=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aG=invoke fastcc i8*%ak(i8*inreg%aF,i8*inreg%au)
to label%aH unwind label%fe
aH:
store i8*%aG,i8**%d,align 8
%aI=call fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL4lazyE_34(i32 inreg 1)
%aJ=getelementptr inbounds i8,i8*%aI,i64 16
%aK=bitcast i8*%aJ to i8*(i8*,i8*)**
%aL=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aK,align 8
%aM=bitcast i8*%aI to i8**
%aN=load i8*,i8**%aM,align 8
store i8*%aN,i8**%e,align 8
%aO=call i8*@sml_alloc(i32 inreg 12)#0
%aP=getelementptr inbounds i8,i8*%aO,i64 -4
%aQ=bitcast i8*%aP to i32*
store i32 1342177288,i32*%aQ,align 4
store i8*%aO,i8**%f,align 8
%aR=load i8*,i8**%b,align 8
%aS=bitcast i8*%aO to i8**
store i8*%aR,i8**%aS,align 8
%aT=getelementptr inbounds i8,i8*%aO,i64 8
%aU=bitcast i8*%aT to i32*
store i32 1,i32*%aU,align 4
%aV=call i8*@sml_alloc(i32 inreg 28)#0
%aW=getelementptr inbounds i8,i8*%aV,i64 -4
%aX=bitcast i8*%aW to i32*
store i32 1342177304,i32*%aX,align 4
%aY=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%aZ=bitcast i8*%aV to i8**
store i8*%aY,i8**%aZ,align 8
%a0=getelementptr inbounds i8,i8*%aV,i64 8
%a1=bitcast i8*%a0 to void(...)**
store void(...)*bitcast(i8*(i8*,i32)*@_SMLLN18SMLSharp__SQL__MySQL11mysql__errnoE_48 to void(...)*),void(...)**%a1,align 8
%a2=getelementptr inbounds i8,i8*%aV,i64 16
%a3=bitcast i8*%a2 to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN18SMLSharp__SQL__MySQL11mysql__errnoE_95 to void(...)*),void(...)**%a3,align 8
%a4=getelementptr inbounds i8,i8*%aV,i64 24
%a5=bitcast i8*%a4 to i32*
store i32 -2147483647,i32*%a5,align 4
%a6=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%a7=invoke fastcc i8*%aL(i8*inreg%a6,i8*inreg%aV)
to label%a8 unwind label%fe
a8:
store i8*%a7,i8**%e,align 8
%a9=call fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL4lazyE_34(i32 inreg 1)
%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**%f,align 8
%bf=call i8*@sml_alloc(i32 inreg 12)#0
%bg=getelementptr inbounds i8,i8*%bf,i64 -4
%bh=bitcast i8*%bg to i32*
store i32 1342177288,i32*%bh,align 4
store i8*%bf,i8**%g,align 8
%bi=load i8*,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 i32*
store i32 1,i32*%bl,align 4
%bm=call i8*@sml_alloc(i32 inreg 28)#0
%bn=getelementptr inbounds i8,i8*%bm,i64 -4
%bo=bitcast i8*%bn to i32*
store i32 1342177304,i32*%bo,align 4
%bp=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%bq=bitcast i8*%bm to i8**
store i8*%bp,i8**%bq,align 8
%br=getelementptr inbounds i8,i8*%bm,i64 8
%bs=bitcast i8*%br to void(...)**
store void(...)*bitcast(i8*(i8*,i32)*@_SMLLN18SMLSharp__SQL__MySQL11mysql__errorE_51 to void(...)*),void(...)**%bs,align 8
%bt=getelementptr inbounds i8,i8*%bm,i64 16
%bu=bitcast i8*%bt to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN18SMLSharp__SQL__MySQL11mysql__errorE_97 to void(...)*),void(...)**%bu,align 8
%bv=getelementptr inbounds i8,i8*%bm,i64 24
%bw=bitcast i8*%bv to i32*
store i32 -2147483647,i32*%bw,align 4
%bx=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%by=invoke fastcc i8*%bc(i8*inreg%bx,i8*inreg%bm)
to label%bz unwind label%fe
bz:
store i8*%by,i8**%f,align 8
%bA=call fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL4lazyE_34(i32 inreg 1)
%bB=getelementptr inbounds i8,i8*%bA,i64 16
%bC=bitcast i8*%bB to i8*(i8*,i8*)**
%bD=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bC,align 8
%bE=bitcast i8*%bA to i8**
%bF=load i8*,i8**%bE,align 8
store i8*%bF,i8**%g,align 8
%bG=call i8*@sml_alloc(i32 inreg 12)#0
%bH=getelementptr inbounds i8,i8*%bG,i64 -4
%bI=bitcast i8*%bH to i32*
store i32 1342177288,i32*%bI,align 4
store i8*%bG,i8**%h,align 8
%bJ=load i8*,i8**%b,align 8
%bK=bitcast i8*%bG to i8**
store i8*%bJ,i8**%bK,align 8
%bL=getelementptr inbounds i8,i8*%bG,i64 8
%bM=bitcast i8*%bL to i32*
store i32 1,i32*%bM,align 4
%bN=call i8*@sml_alloc(i32 inreg 28)#0
%bO=getelementptr inbounds i8,i8*%bN,i64 -4
%bP=bitcast i8*%bO to i32*
store i32 1342177304,i32*%bP,align 4
%bQ=load i8*,i8**%h,align 8
store i8*null,i8**%h,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 void(...)**
store void(...)*bitcast(i8*(i8*,i32)*@_SMLLN18SMLSharp__SQL__MySQL11mysql__queryE_54 to void(...)*),void(...)**%bT,align 8
%bU=getelementptr inbounds i8,i8*%bN,i64 16
%bV=bitcast i8*%bU to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN18SMLSharp__SQL__MySQL11mysql__queryE_99 to void(...)*),void(...)**%bV,align 8
%bW=getelementptr inbounds i8,i8*%bN,i64 24
%bX=bitcast i8*%bW to i32*
store i32 -2147483647,i32*%bX,align 4
%bY=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%bZ=invoke fastcc i8*%bD(i8*inreg%bY,i8*inreg%bN)
to label%b0 unwind label%fe
b0:
store i8*%bZ,i8**%g,align 8
%b1=call fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL4lazyE_34(i32 inreg 1)
%b2=getelementptr inbounds i8,i8*%b1,i64 16
%b3=bitcast i8*%b2 to i8*(i8*,i8*)**
%b4=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%b3,align 8
%b5=bitcast i8*%b1 to i8**
%b6=load i8*,i8**%b5,align 8
store i8*%b6,i8**%h,align 8
%b7=call i8*@sml_alloc(i32 inreg 12)#0
%b8=getelementptr inbounds i8,i8*%b7,i64 -4
%b9=bitcast i8*%b8 to i32*
store i32 1342177288,i32*%b9,align 4
store i8*%b7,i8**%i,align 8
%ca=load i8*,i8**%b,align 8
%cb=bitcast i8*%b7 to i8**
store i8*%ca,i8**%cb,align 8
%cc=getelementptr inbounds i8,i8*%b7,i64 8
%cd=bitcast i8*%cc to i32*
store i32 1,i32*%cd,align 4
%ce=call i8*@sml_alloc(i32 inreg 28)#0
%cf=getelementptr inbounds i8,i8*%ce,i64 -4
%cg=bitcast i8*%cf to i32*
store i32 1342177304,i32*%cg,align 4
%ch=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%ci=bitcast i8*%ce to i8**
store i8*%ch,i8**%ci,align 8
%cj=getelementptr inbounds i8,i8*%ce,i64 8
%ck=bitcast i8*%cj to void(...)**
store void(...)*bitcast(i8*(i8*,i32)*@_SMLLN18SMLSharp__SQL__MySQL18mysql__store__resultE_57 to void(...)*),void(...)**%ck,align 8
%cl=getelementptr inbounds i8,i8*%ce,i64 16
%cm=bitcast i8*%cl to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN18SMLSharp__SQL__MySQL18mysql__store__resultE_101 to void(...)*),void(...)**%cm,align 8
%cn=getelementptr inbounds i8,i8*%ce,i64 24
%co=bitcast i8*%cn to i32*
store i32 -2147483647,i32*%co,align 4
%cp=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%cq=invoke fastcc i8*%b4(i8*inreg%cp,i8*inreg%ce)
to label%cr unwind label%fe
cr:
store i8*%cq,i8**%h,align 8
%cs=call fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL4lazyE_34(i32 inreg 1)
%ct=getelementptr inbounds i8,i8*%cs,i64 16
%cu=bitcast i8*%ct to i8*(i8*,i8*)**
%cv=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%cu,align 8
%cw=bitcast i8*%cs to i8**
%cx=load i8*,i8**%cw,align 8
store i8*%cx,i8**%i,align 8
%cy=call i8*@sml_alloc(i32 inreg 12)#0
%cz=getelementptr inbounds i8,i8*%cy,i64 -4
%cA=bitcast i8*%cz to i32*
store i32 1342177288,i32*%cA,align 4
store i8*%cy,i8**%j,align 8
%cB=load i8*,i8**%b,align 8
%cC=bitcast i8*%cy to i8**
store i8*%cB,i8**%cC,align 8
%cD=getelementptr inbounds i8,i8*%cy,i64 8
%cE=bitcast i8*%cD to i32*
store i32 1,i32*%cE,align 4
%cF=call i8*@sml_alloc(i32 inreg 28)#0
%cG=getelementptr inbounds i8,i8*%cF,i64 -4
%cH=bitcast i8*%cG to i32*
store i32 1342177304,i32*%cH,align 4
%cI=load i8*,i8**%j,align 8
store i8*null,i8**%j,align 8
%cJ=bitcast i8*%cF to i8**
store i8*%cI,i8**%cJ,align 8
%cK=getelementptr inbounds i8,i8*%cF,i64 8
%cL=bitcast i8*%cK to void(...)**
store void(...)*bitcast(i8*(i8*,i32)*@_SMLLN18SMLSharp__SQL__MySQL16mysql__use__resultE_60 to void(...)*),void(...)**%cL,align 8
%cM=getelementptr inbounds i8,i8*%cF,i64 16
%cN=bitcast i8*%cM to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN18SMLSharp__SQL__MySQL16mysql__use__resultE_103 to void(...)*),void(...)**%cN,align 8
%cO=getelementptr inbounds i8,i8*%cF,i64 24
%cP=bitcast i8*%cO to i32*
store i32 -2147483647,i32*%cP,align 4
%cQ=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%cR=invoke fastcc i8*%cv(i8*inreg%cQ,i8*inreg%cF)
to label%cS unwind label%fe
cS:
%cT=call fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL4lazyE_34(i32 inreg 1)
%cU=getelementptr inbounds i8,i8*%cT,i64 16
%cV=bitcast i8*%cU to i8*(i8*,i8*)**
%cW=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%cV,align 8
%cX=bitcast i8*%cT to i8**
%cY=load i8*,i8**%cX,align 8
store i8*%cY,i8**%i,align 8
%cZ=call i8*@sml_alloc(i32 inreg 12)#0
%c0=getelementptr inbounds i8,i8*%cZ,i64 -4
%c1=bitcast i8*%c0 to i32*
store i32 1342177288,i32*%c1,align 4
store i8*%cZ,i8**%j,align 8
%c2=load i8*,i8**%b,align 8
%c3=bitcast i8*%cZ to i8**
store i8*%c2,i8**%c3,align 8
%c4=getelementptr inbounds i8,i8*%cZ,i64 8
%c5=bitcast i8*%c4 to i32*
store i32 1,i32*%c5,align 4
%c6=call i8*@sml_alloc(i32 inreg 28)#0
%c7=getelementptr inbounds i8,i8*%c6,i64 -4
%c8=bitcast i8*%c7 to i32*
store i32 1342177304,i32*%c8,align 4
%c9=load i8*,i8**%j,align 8
store i8*null,i8**%j,align 8
%da=bitcast i8*%c6 to i8**
store i8*%c9,i8**%da,align 8
%db=getelementptr inbounds i8,i8*%c6,i64 8
%dc=bitcast i8*%db to void(...)**
store void(...)*bitcast(i8*(i8*,i32)*@_SMLLN18SMLSharp__SQL__MySQL15mysql__fetch__rowE_63 to void(...)*),void(...)**%dc,align 8
%dd=getelementptr inbounds i8,i8*%c6,i64 16
%de=bitcast i8*%dd to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN18SMLSharp__SQL__MySQL15mysql__fetch__rowE_105 to void(...)*),void(...)**%de,align 8
%df=getelementptr inbounds i8,i8*%c6,i64 24
%dg=bitcast i8*%df to i32*
store i32 -2147483647,i32*%dg,align 4
%dh=load i8*,i8**%i,align 8
store i8*null,i8**%i,align 8
%di=invoke fastcc i8*%cW(i8*inreg%dh,i8*inreg%c6)
to label%dj unwind label%fe
dj:
store i8*%di,i8**%i,align 8
%dk=call fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL4lazyE_34(i32 inreg 1)
%dl=getelementptr inbounds i8,i8*%dk,i64 16
%dm=bitcast i8*%dl to i8*(i8*,i8*)**
%dn=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%dm,align 8
%do=bitcast i8*%dk to i8**
%dp=load i8*,i8**%do,align 8
store i8*%dp,i8**%j,align 8
%dq=call i8*@sml_alloc(i32 inreg 12)#0
%dr=getelementptr inbounds i8,i8*%dq,i64 -4
%ds=bitcast i8*%dr to i32*
store i32 1342177288,i32*%ds,align 4
store i8*%dq,i8**%k,align 8
%dt=load i8*,i8**%b,align 8
%du=bitcast i8*%dq to i8**
store i8*%dt,i8**%du,align 8
%dv=getelementptr inbounds i8,i8*%dq,i64 8
%dw=bitcast i8*%dv to i32*
store i32 1,i32*%dw,align 4
%dx=call i8*@sml_alloc(i32 inreg 28)#0
%dy=getelementptr inbounds i8,i8*%dx,i64 -4
%dz=bitcast i8*%dy to i32*
store i32 1342177304,i32*%dz,align 4
%dA=load i8*,i8**%k,align 8
store i8*null,i8**%k,align 8
%dB=bitcast i8*%dx to i8**
store i8*%dA,i8**%dB,align 8
%dC=getelementptr inbounds i8,i8*%dx,i64 8
%dD=bitcast i8*%dC to void(...)**
store void(...)*bitcast(i8*(i8*,i32)*@_SMLLN18SMLSharp__SQL__MySQL17mysql__free__resultE_66 to void(...)*),void(...)**%dD,align 8
%dE=getelementptr inbounds i8,i8*%dx,i64 16
%dF=bitcast i8*%dE to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN18SMLSharp__SQL__MySQL17mysql__free__resultE_107 to void(...)*),void(...)**%dF,align 8
%dG=getelementptr inbounds i8,i8*%dx,i64 24
%dH=bitcast i8*%dG to i32*
store i32 -2147483647,i32*%dH,align 4
%dI=load i8*,i8**%j,align 8
store i8*null,i8**%j,align 8
%dJ=invoke fastcc i8*%dn(i8*inreg%dI,i8*inreg%dx)
to label%dK unwind label%fe
dK:
store i8*%dJ,i8**%j,align 8
%dL=call fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL4lazyE_34(i32 inreg 1)
%dM=getelementptr inbounds i8,i8*%dL,i64 16
%dN=bitcast i8*%dM to i8*(i8*,i8*)**
%dO=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%dN,align 8
%dP=bitcast i8*%dL to i8**
%dQ=load i8*,i8**%dP,align 8
store i8*%dQ,i8**%k,align 8
%dR=call i8*@sml_alloc(i32 inreg 12)#0
%dS=getelementptr inbounds i8,i8*%dR,i64 -4
%dT=bitcast i8*%dS to i32*
store i32 1342177288,i32*%dT,align 4
store i8*%dR,i8**%l,align 8
%dU=load i8*,i8**%b,align 8
%dV=bitcast i8*%dR to i8**
store i8*%dU,i8**%dV,align 8
%dW=getelementptr inbounds i8,i8*%dR,i64 8
%dX=bitcast i8*%dW to i32*
store i32 1,i32*%dX,align 4
%dY=call i8*@sml_alloc(i32 inreg 28)#0
%dZ=getelementptr inbounds i8,i8*%dY,i64 -4
%d0=bitcast i8*%dZ to i32*
store i32 1342177304,i32*%d0,align 4
%d1=load i8*,i8**%l,align 8
store i8*null,i8**%l,align 8
%d2=bitcast i8*%dY to i8**
store i8*%d1,i8**%d2,align 8
%d3=getelementptr inbounds i8,i8*%dY,i64 8
%d4=bitcast i8*%d3 to void(...)**
store void(...)*bitcast(i8*(i8*,i32)*@_SMLLN18SMLSharp__SQL__MySQL11mysql__closeE_69 to void(...)*),void(...)**%d4,align 8
%d5=getelementptr inbounds i8,i8*%dY,i64 16
%d6=bitcast i8*%d5 to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN18SMLSharp__SQL__MySQL11mysql__closeE_109 to void(...)*),void(...)**%d6,align 8
%d7=getelementptr inbounds i8,i8*%dY,i64 24
%d8=bitcast i8*%d7 to i32*
store i32 -2147483647,i32*%d8,align 4
%d9=load i8*,i8**%k,align 8
store i8*null,i8**%k,align 8
%ea=invoke fastcc i8*%dO(i8*inreg%d9,i8*inreg%dY)
to label%eb unwind label%fe
eb:
store i8*%ea,i8**%k,align 8
%ec=call fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL4lazyE_34(i32 inreg 1)
%ed=getelementptr inbounds i8,i8*%ec,i64 16
%ee=bitcast i8*%ed to i8*(i8*,i8*)**
%ef=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%ee,align 8
%eg=bitcast i8*%ec to i8**
%eh=load i8*,i8**%eg,align 8
store i8*%eh,i8**%l,align 8
%ei=call i8*@sml_alloc(i32 inreg 12)#0
%ej=getelementptr inbounds i8,i8*%ei,i64 -4
%ek=bitcast i8*%ej to i32*
store i32 1342177288,i32*%ek,align 4
store i8*%ei,i8**%m,align 8
%el=load i8*,i8**%b,align 8
%em=bitcast i8*%ei to i8**
store i8*%el,i8**%em,align 8
%en=getelementptr inbounds i8,i8*%ei,i64 8
%eo=bitcast i8*%en to i32*
store i32 1,i32*%eo,align 4
%ep=call i8*@sml_alloc(i32 inreg 28)#0
%eq=getelementptr inbounds i8,i8*%ep,i64 -4
%er=bitcast i8*%eq to i32*
store i32 1342177304,i32*%er,align 4
%es=load i8*,i8**%m,align 8
store i8*null,i8**%m,align 8
%et=bitcast i8*%ep to i8**
store i8*%es,i8**%et,align 8
%eu=getelementptr inbounds i8,i8*%ep,i64 8
%ev=bitcast i8*%eu to void(...)**
store void(...)*bitcast(i8*(i8*,i32)*@_SMLLN18SMLSharp__SQL__MySQL15mysql__data__seekE_72 to void(...)*),void(...)**%ev,align 8
%ew=getelementptr inbounds i8,i8*%ep,i64 16
%ex=bitcast i8*%ew to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN18SMLSharp__SQL__MySQL15mysql__data__seekE_111 to void(...)*),void(...)**%ex,align 8
%ey=getelementptr inbounds i8,i8*%ep,i64 24
%ez=bitcast i8*%ey to i32*
store i32 -2147483647,i32*%ez,align 4
%eA=load i8*,i8**%l,align 8
store i8*null,i8**%l,align 8
%eB=invoke fastcc i8*%ef(i8*inreg%eA,i8*inreg%ep)
to label%eC unwind label%fe
eC:
store i8*%eB,i8**%l,align 8
%eD=call fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL4lazyE_34(i32 inreg 1)
%eE=getelementptr inbounds i8,i8*%eD,i64 16
%eF=bitcast i8*%eE to i8*(i8*,i8*)**
%eG=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%eF,align 8
%eH=bitcast i8*%eD to i8**
%eI=load i8*,i8**%eH,align 8
store i8*%eI,i8**%m,align 8
%eJ=call i8*@sml_alloc(i32 inreg 12)#0
%eK=getelementptr inbounds i8,i8*%eJ,i64 -4
%eL=bitcast i8*%eK to i32*
store i32 1342177288,i32*%eL,align 4
store i8*%eJ,i8**%n,align 8
%eM=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%eN=bitcast i8*%eJ to i8**
store i8*%eM,i8**%eN,align 8
%eO=getelementptr inbounds i8,i8*%eJ,i64 8
%eP=bitcast i8*%eO to i32*
store i32 1,i32*%eP,align 4
%eQ=call i8*@sml_alloc(i32 inreg 28)#0
%eR=getelementptr inbounds i8,i8*%eQ,i64 -4
%eS=bitcast i8*%eR to i32*
store i32 1342177304,i32*%eS,align 4
%eT=load i8*,i8**%n,align 8
store i8*null,i8**%n,align 8
%eU=bitcast i8*%eQ to i8**
store i8*%eT,i8**%eU,align 8
%eV=getelementptr inbounds i8,i8*%eQ,i64 8
%eW=bitcast i8*%eV to void(...)**
store void(...)*bitcast(i8*(i8*,i32)*@_SMLLN18SMLSharp__SQL__MySQL14mysql__num__rowsE_75 to void(...)*),void(...)**%eW,align 8
%eX=getelementptr inbounds i8,i8*%eQ,i64 16
%eY=bitcast i8*%eX to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN18SMLSharp__SQL__MySQL14mysql__num__rowsE_113 to void(...)*),void(...)**%eY,align 8
%eZ=getelementptr inbounds i8,i8*%eQ,i64 24
%e0=bitcast i8*%eZ to i32*
store i32 -2147483647,i32*%e0,align 4
%e1=load i8*,i8**%m,align 8
store i8*null,i8**%m,align 8
%e2=invoke fastcc i8*%eG(i8*inreg%e1,i8*inreg%eQ)
to label%e3 unwind label%fe
e3:
%e4=load i8*,i8**%c,align 8
call void@sml_write(i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,[11x i8*]}>,<{[4x i8],i32,[11x i8*]}>*@_SML_gvar1d1ac2f11ce506e3_MySQL,i64 0,i32 2,i64 0)to i8*),i8**inreg getelementptr inbounds(<{[4x i8],i32,[11x i8*]}>,<{[4x i8],i32,[11x i8*]}>*@_SML_gvar1d1ac2f11ce506e3_MySQL,i64 0,i32 2,i64 0),i8*inreg%e4)#0
%e5=load i8*,i8**%d,align 8
call void@sml_write(i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,[11x i8*]}>,<{[4x i8],i32,[11x i8*]}>*@_SML_gvar1d1ac2f11ce506e3_MySQL,i64 0,i32 2,i64 0)to i8*),i8**inreg getelementptr inbounds(<{[4x i8],i32,[11x i8*]}>,<{[4x i8],i32,[11x i8*]}>*@_SML_gvar1d1ac2f11ce506e3_MySQL,i64 0,i32 2,i64 1),i8*inreg%e5)#0
%e6=load i8*,i8**%e,align 8
call void@sml_write(i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,[11x i8*]}>,<{[4x i8],i32,[11x i8*]}>*@_SML_gvar1d1ac2f11ce506e3_MySQL,i64 0,i32 2,i64 0)to i8*),i8**inreg getelementptr inbounds(<{[4x i8],i32,[11x i8*]}>,<{[4x i8],i32,[11x i8*]}>*@_SML_gvar1d1ac2f11ce506e3_MySQL,i64 0,i32 2,i64 2),i8*inreg%e6)#0
%e7=load i8*,i8**%f,align 8
call void@sml_write(i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,[11x i8*]}>,<{[4x i8],i32,[11x i8*]}>*@_SML_gvar1d1ac2f11ce506e3_MySQL,i64 0,i32 2,i64 0)to i8*),i8**inreg getelementptr inbounds(<{[4x i8],i32,[11x i8*]}>,<{[4x i8],i32,[11x i8*]}>*@_SML_gvar1d1ac2f11ce506e3_MySQL,i64 0,i32 2,i64 3),i8*inreg%e7)#0
%e8=load i8*,i8**%g,align 8
call void@sml_write(i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,[11x i8*]}>,<{[4x i8],i32,[11x i8*]}>*@_SML_gvar1d1ac2f11ce506e3_MySQL,i64 0,i32 2,i64 0)to i8*),i8**inreg getelementptr inbounds(<{[4x i8],i32,[11x i8*]}>,<{[4x i8],i32,[11x i8*]}>*@_SML_gvar1d1ac2f11ce506e3_MySQL,i64 0,i32 2,i64 4),i8*inreg%e8)#0
%e9=load i8*,i8**%h,align 8
call void@sml_write(i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,[11x i8*]}>,<{[4x i8],i32,[11x i8*]}>*@_SML_gvar1d1ac2f11ce506e3_MySQL,i64 0,i32 2,i64 0)to i8*),i8**inreg getelementptr inbounds(<{[4x i8],i32,[11x i8*]}>,<{[4x i8],i32,[11x i8*]}>*@_SML_gvar1d1ac2f11ce506e3_MySQL,i64 0,i32 2,i64 5),i8*inreg%e9)#0
%fa=load i8*,i8**%i,align 8
call void@sml_write(i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,[11x i8*]}>,<{[4x i8],i32,[11x i8*]}>*@_SML_gvar1d1ac2f11ce506e3_MySQL,i64 0,i32 2,i64 0)to i8*),i8**inreg getelementptr inbounds(<{[4x i8],i32,[11x i8*]}>,<{[4x i8],i32,[11x i8*]}>*@_SML_gvar1d1ac2f11ce506e3_MySQL,i64 0,i32 2,i64 6),i8*inreg%fa)#0
%fb=load i8*,i8**%j,align 8
call void@sml_write(i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,[11x i8*]}>,<{[4x i8],i32,[11x i8*]}>*@_SML_gvar1d1ac2f11ce506e3_MySQL,i64 0,i32 2,i64 0)to i8*),i8**inreg getelementptr inbounds(<{[4x i8],i32,[11x i8*]}>,<{[4x i8],i32,[11x i8*]}>*@_SML_gvar1d1ac2f11ce506e3_MySQL,i64 0,i32 2,i64 7),i8*inreg%fb)#0
%fc=load i8*,i8**%l,align 8
call void@sml_write(i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,[11x i8*]}>,<{[4x i8],i32,[11x i8*]}>*@_SML_gvar1d1ac2f11ce506e3_MySQL,i64 0,i32 2,i64 0)to i8*),i8**inreg getelementptr inbounds(<{[4x i8],i32,[11x i8*]}>,<{[4x i8],i32,[11x i8*]}>*@_SML_gvar1d1ac2f11ce506e3_MySQL,i64 0,i32 2,i64 8),i8*inreg%fc)#0
%fd=load i8*,i8**%k,align 8
call void@sml_write(i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,[11x i8*]}>,<{[4x i8],i32,[11x i8*]}>*@_SML_gvar1d1ac2f11ce506e3_MySQL,i64 0,i32 2,i64 0)to i8*),i8**inreg getelementptr inbounds(<{[4x i8],i32,[11x i8*]}>,<{[4x i8],i32,[11x i8*]}>*@_SML_gvar1d1ac2f11ce506e3_MySQL,i64 0,i32 2,i64 9),i8*inreg%fd)#0
call void@sml_write(i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,[11x i8*]}>,<{[4x i8],i32,[11x i8*]}>*@_SML_gvar1d1ac2f11ce506e3_MySQL,i64 0,i32 2,i64 0)to i8*),i8**inreg getelementptr inbounds(<{[4x i8],i32,[11x i8*]}>,<{[4x i8],i32,[11x i8*]}>*@_SML_gvar1d1ac2f11ce506e3_MySQL,i64 0,i32 2,i64 10),i8*inreg%e2)#0
call void@sml_end()#0
ret void
fe:
%ff=landingpad{i8*,i8*}
cleanup
%fg=extractvalue{i8*,i8*}%ff,1
call void@sml_save_exn(i8*inreg%fg)#0
call void@sml_end()#0
resume{i8*,i8*}%ff
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL4lazyE_32(i8*inreg%a,i32 inreg%b)#1 gc"smlsharp"{
k:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%d,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%i,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%d,align 8
br label%i
i:
%j=phi i8*[%h,%g],[%a,%k]
%l=getelementptr inbounds i8,i8*%j,i64 16
%m=bitcast i8*%l to i32*
%n=load i32,i32*%m,align 4
%o=getelementptr inbounds i8,i8*%j,i64 8
%p=bitcast i8*%o to i8***
%q=load i8**,i8***%p,align 8
%r=load i8*,i8**%q,align 8
store i8*%r,i8**%c,align 8
%s=icmp eq i8*%r,null
%t=bitcast i8*%r to i8**
br i1%s,label%u,label%ag
u:
%v=bitcast i8*%j to i8**
%w=load i8*,i8**%v,align 8
%x=getelementptr inbounds i8,i8*%w,i64 16
%y=bitcast i8*%x to i8*(i8*,i8*)**
%z=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%y,align 8
%A=bitcast i8*%w to i8**
%B=load i8*,i8**%A,align 8
store i8*%B,i8**%c,align 8
%C=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
%G=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%H=call fastcc i8*%z(i8*inreg%G,i8*inreg%C)
store i8*%H,i8**%c,align 8
%I=load i8*,i8**%d,align 8
%J=getelementptr inbounds i8,i8*%I,i64 16
%K=bitcast i8*%J to i32*
%L=load i32,i32*%K,align 4
%M=call i8*@sml_alloc(i32 inreg 12)#0
%N=getelementptr inbounds i8,i8*%M,i64 -4
%O=bitcast i8*%N to i32*
store i32 1342177288,i32*%O,align 4
%P=icmp eq i32%L,0
%Q=load i8*,i8**%c,align 8
br i1%P,label%T,label%R
R:
%S=bitcast i8*%M to i8**
store i8*%Q,i8**%S,align 8
br label%X
T:
%U=bitcast i8*%Q to i64*
%V=bitcast i8*%M to i64*
%W=load i64,i64*%U,align 1
store i64%W,i64*%V,align 1
br label%X
X:
%Y=getelementptr inbounds i8,i8*%M,i64 8
%Z=bitcast i8*%Y to i32*
store i32%n,i32*%Z,align 4
%aa=load i8*,i8**%d,align 8
%ab=getelementptr inbounds i8,i8*%aa,i64 8
%ac=bitcast i8*%ab to i8**
%ad=load i8*,i8**%ac,align 8
%ae=bitcast i8*%ad to i8**
call void@sml_write(i8*inreg%ad,i8**inreg%ae,i8*inreg%M)#0
%af=load i8*,i8**%c,align 8
ret i8*%af
ag:
store i8*null,i8**%d,align 8
%ah=icmp eq i32%n,0
br i1%ah,label%ak,label%ai
ai:
%aj=load i8*,i8**%t,align 8
br label%as
ak:
%al=call i8*@sml_alloc(i32 inreg 8)#0
%am=getelementptr inbounds i8,i8*%al,i64 -4
%an=bitcast i8*%am to i32*
store i32 8,i32*%an,align 4
%ao=bitcast i8**%c to i64**
%ap=load i64*,i64**%ao,align 8
%aq=bitcast i8*%al to i64*
%ar=load i64,i64*%ap,align 1
store i64%ar,i64*%aq,align 1
br label%as
as:
%at=phi i8*[%aj,%ai],[%al,%ak]
ret i8*%at
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL4lazyE_33(i8*inreg%a,i8*inreg%b)#3 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%d,align 8
store i8*%b,i8**%c,align 8
%f=call i8*@sml_alloc(i32 inreg 8)#0
%g=getelementptr inbounds i8,i8*%f,i64 -4
%h=bitcast i8*%g to i32*
store i32 805306376,i32*%h,align 4
store i8*%f,i8**%e,align 8
%i=bitcast i8*%f to i64*
store i64 0,i64*%i,align 1
%j=bitcast i8*%f to i8**
call void@sml_write(i8*inreg%f,i8**inreg%j,i8*inreg null)#0
%k=bitcast i8**%d to i32**
%l=load i32*,i32**%k,align 8
store i8*null,i8**%d,align 8
%m=load i32,i32*%l,align 4
%n=call i8*@sml_alloc(i32 inreg 28)#0
%o=getelementptr inbounds i8,i8*%n,i64 -4
%p=bitcast i8*%o to i32*
store i32 1342177304,i32*%p,align 4
store i8*%n,i8**%d,align 8
%q=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%r=bitcast i8*%n to i8**
store i8*%q,i8**%r,align 8
%s=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%t=getelementptr inbounds i8,i8*%n,i64 8
%u=bitcast i8*%t to i8**
store i8*%s,i8**%u,align 8
%v=getelementptr inbounds i8,i8*%n,i64 16
%w=bitcast i8*%v to i32*
store i32%m,i32*%w,align 4
%x=getelementptr inbounds i8,i8*%n,i64 24
%y=bitcast i8*%x to i32*
store i32 3,i32*%y,align 4
%z=call i8*@sml_alloc(i32 inreg 28)#0
%A=getelementptr inbounds i8,i8*%z,i64 -4
%B=bitcast i8*%A to i32*
store i32 1342177304,i32*%B,align 4
%C=load i8*,i8**%d,align 8
%D=bitcast i8*%z to i8**
store i8*%C,i8**%D,align 8
%E=getelementptr inbounds i8,i8*%z,i64 8
%F=bitcast i8*%E to void(...)**
store void(...)*bitcast(i8*(i8*,i32)*@_SMLLN18SMLSharp__SQL__MySQL4lazyE_32 to void(...)*),void(...)**%F,align 8
%G=getelementptr inbounds i8,i8*%z,i64 16
%H=bitcast i8*%G to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN18SMLSharp__SQL__MySQL4lazyE_87 to void(...)*),void(...)**%H,align 8
%I=getelementptr inbounds i8,i8*%z,i64 24
%J=bitcast i8*%I to i32*
store i32 1,i32*%J,align 4
ret i8*%z
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL4lazyE_34(i32 inreg%a)unnamed_addr#3 gc"smlsharp"{
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
%c=call i8*@sml_alloc(i32 inreg 12)#0
%d=bitcast i8*%c to i32*
%e=getelementptr inbounds i8,i8*%c,i64 -4
%f=bitcast i8*%e to i32*
store i32 1342177288,i32*%f,align 4
store i8*%c,i8**%b,align 8
store i32%a,i32*%d,align 4
%g=getelementptr inbounds i8,i8*%c,i64 8
%h=bitcast i8*%g to i32*
store i32 0,i32*%h,align 4
%i=call i8*@sml_alloc(i32 inreg 28)#0
%j=getelementptr inbounds i8,i8*%i,i64 -4
%k=bitcast i8*%j to i32*
store i32 1342177304,i32*%k,align 4
%l=load i8*,i8**%b,align 8
%m=bitcast i8*%i to i8**
store i8*%l,i8**%m,align 8
%n=getelementptr inbounds i8,i8*%i,i64 8
%o=bitcast i8*%n to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN18SMLSharp__SQL__MySQL4lazyE_33 to void(...)*),void(...)**%o,align 8
%p=getelementptr inbounds i8,i8*%i,i64 16
%q=bitcast i8*%p to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN18SMLSharp__SQL__MySQL4lazyE_33 to void(...)*),void(...)**%q,align 8
%r=getelementptr inbounds i8,i8*%i,i64 24
%s=bitcast i8*%r to i32*
store i32 -2147483647,i32*%s,align 4
ret i8*%i
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL3libE_38(i32 inreg%a)#1 gc"smlsharp"{
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%f,label%e
e:
call void@sml_check(i32 inreg%c)
br label%f
f:
%g=call fastcc i8*@_SMLFN18SMLSharp__OSProcess6getEnvE(i8*inreg getelementptr inbounds(<{[4x i8],i32,[24x i8]}>,<{[4x i8],i32,[24x i8]}>*@a,i64 0,i32 2,i64 0))
%h=icmp eq i8*%g,null
br i1%h,label%i,label%v
i:
%j=load i8**,i8***bitcast(i8**@_SMLZN19SMLSharp__SQL__Config6DLLEXTE to i8***),align 8
%k=load i8*,i8**%j,align 8
store i8*%k,i8**%b,align 8
%l=call i8*@sml_alloc(i32 inreg 20)#0
%m=getelementptr inbounds i8,i8*%l,i64 -4
%n=bitcast i8*%m to i32*
store i32 1342177296,i32*%n,align 4
%o=bitcast i8*%l to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[19x i8]}>,<{[4x i8],i32,[19x i8]}>*@b,i64 0,i32 2,i64 0),i8**%o,align 8
%p=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%q=getelementptr inbounds i8,i8*%l,i64 8
%r=bitcast i8*%q to i8**
store i8*%p,i8**%r,align 8
%s=getelementptr inbounds i8,i8*%l,i64 16
%t=bitcast i8*%s to i32*
store i32 3,i32*%t,align 4
%u=call fastcc i8*@_SMLFN6String1_ZE(i8*inreg%l)
br label%y
v:
%w=bitcast i8*%g to i8**
%x=load i8*,i8**%w,align 8
br label%y
y:
%z=phi i8*[%u,%i],[%x,%v]
%A=tail call fastcc i8*@_SMLFN11DynamicLink6dlopenE(i8*inreg%z)
ret i8*%A
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL10mysql__initE_41(i8*inreg%a,i64 inreg%b)#1 gc"smlsharp"personality i32(...)*@sml_personality{
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%c,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%f,label%h
f:
%g=bitcast i8*%a to i8*(i8*)**
br label%k
h:
call void@sml_check(i32 inreg%d)
%i=bitcast i8**%c to i8*(i8*)***
%j=load i8*(i8*)**,i8*(i8*)***%i,align 8
br label%k
k:
%l=phi i8*(i8*)**[%j,%h],[%g,%f]
%m=inttoptr i64%b to i8*
store i8*null,i8**%c,align 8
%n=load i8*(i8*)*,i8*(i8*)**%l,align 8
call void@sml_leave()#0
%o=invoke i8*%n(i8*%m)
to label%p unwind label%q
p:
call void@sml_enter()#0
ret i8*%o
q:
%r=landingpad{i8*,i8*}
cleanup
%s=extractvalue{i8*,i8*}%r,1
call void@sml_enter()#0
%t=call i8*@sml_unsave_exn(i8*inreg%s)#0
resume{i8*,i8*}%r
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL10mysql__initE_42(i8*inreg%a,i32 inreg%b)#1 gc"smlsharp"{
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%c,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%f,label%h
f:
%g=bitcast i8*%a to i8**
br label%k
h:
call void@sml_check(i32 inreg%d)
%i=bitcast i8**%c to i8***
%j=load i8**,i8***%i,align 8
br label%k
k:
%l=phi i8**[%j,%h],[%g,%f]
%m=load i8*,i8**%l,align 8
%n=getelementptr inbounds i8,i8*%m,i64 16
%o=bitcast i8*%n to i8*(i8*,i8*)**
%p=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%o,align 8
%q=bitcast i8*%m to i8**
%r=load i8*,i8**%q,align 8
store i8*%r,i8**%c,align 8
%s=call i8*@sml_alloc(i32 inreg 4)#0
%t=bitcast i8*%s to i32*
%u=getelementptr inbounds i8,i8*%s,i64 -4
%v=bitcast i8*%u to i32*
store i32 4,i32*%v,align 4
store i32 0,i32*%t,align 4
%w=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%x=call fastcc i8*%p(i8*inreg%w,i8*inreg%s)
%y=bitcast i8*%x to i8**
%z=load i8*,i8**%y,align 8
%A=call i8*@sml_alloc(i32 inreg 20)#0
%B=getelementptr inbounds i8,i8*%A,i64 -4
%C=bitcast i8*%B to i32*
store i32 1342177296,i32*%C,align 4
%D=bitcast i8*%A to i8**
store i8*%z,i8**%D,align 8
%E=getelementptr inbounds i8,i8*%A,i64 8
%F=bitcast i8*%E to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[11x i8]}>,<{[4x i8],i32,[11x i8]}>*@d,i64 0,i32 2,i64 0),i8**%F,align 8
%G=getelementptr inbounds i8,i8*%A,i64 16
%H=bitcast i8*%G to i32*
store i32 2,i32*%H,align 4
%I=call fastcc void(...)*@_SMLFN11DynamicLink5dlsymE(i8*inreg%A)
%J=call i8*@sml_alloc(i32 inreg 12)#0
%K=getelementptr inbounds i8,i8*%J,i64 -4
%L=bitcast i8*%K to i32*
store i32 1342177288,i32*%L,align 4
store i8*%J,i8**%c,align 8
%M=bitcast i8*%J to void(...)**
store void(...)*%I,void(...)**%M,align 8
%N=getelementptr inbounds i8,i8*%J,i64 8
%O=bitcast i8*%N to i32*
store i32 0,i32*%O,align 4
%P=call i8*@sml_alloc(i32 inreg 28)#0
%Q=getelementptr inbounds i8,i8*%P,i64 -4
%R=bitcast i8*%Q to i32*
store i32 1342177304,i32*%R,align 4
%S=load i8*,i8**%c,align 8
%T=bitcast i8*%P to i8**
store i8*%S,i8**%T,align 8
%U=getelementptr inbounds i8,i8*%P,i64 8
%V=bitcast i8*%U to void(...)**
store void(...)*bitcast(i8*(i8*,i64)*@_SMLLN18SMLSharp__SQL__MySQL10mysql__initE_41 to void(...)*),void(...)**%V,align 8
%W=getelementptr inbounds i8,i8*%P,i64 16
%X=bitcast i8*%W to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN18SMLSharp__SQL__MySQL10mysql__initE_90 to void(...)*),void(...)**%X,align 8
%Y=getelementptr inbounds i8,i8*%P,i64 24
%Z=bitcast i8*%Y to i32*
store i32 -2147483647,i32*%Z,align 4
ret i8*%P
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL18mysql__real__connectE_44(i8*inreg%a,i8*inreg%b)#1 gc"smlsharp"personality i32(...)*@sml_personality{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
store i8*%a,i8**%c,align 8
store i8*%b,i8**%d,align 8
%g=load atomic i32,i32*@sml_check_flag unordered,align 4
%h=icmp eq i32%g,0
br i1%h,label%i,label%k
i:
%j=bitcast i8*%a to i8*(i8*,i8*,i8*,i8*,i8*,i32,i8*,i32)**
br label%o
k:
call void@sml_check(i32 inreg%g)
%l=load i8*,i8**%d,align 8
%m=bitcast i8**%c to i8*(i8*,i8*,i8*,i8*,i8*,i32,i8*,i32)***
%n=load i8*(i8*,i8*,i8*,i8*,i8*,i32,i8*,i32)**,i8*(i8*,i8*,i8*,i8*,i8*,i32,i8*,i32)***%m,align 8
br label%o
o:
%p=phi i8*(i8*,i8*,i8*,i8*,i8*,i32,i8*,i32)**[%n,%k],[%j,%i]
%q=phi i8*[%l,%k],[%b,%i]
%r=load i8*(i8*,i8*,i8*,i8*,i8*,i32,i8*,i32)*,i8*(i8*,i8*,i8*,i8*,i8*,i32,i8*,i32)**%p,align 8
%s=bitcast i8*%q to i8**
%t=load i8*,i8**%s,align 8
%u=getelementptr inbounds i8,i8*%q,i64 8
%v=bitcast i8*%u to i8**
%w=load i8*,i8**%v,align 8
store i8*%w,i8**%c,align 8
%x=getelementptr inbounds i8,i8*%q,i64 16
%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*%q,i64 24
%B=bitcast i8*%A to i8**
%C=load i8*,i8**%B,align 8
store i8*%C,i8**%e,align 8
%D=getelementptr inbounds i8,i8*%q,i64 32
%E=bitcast i8*%D to i8**
%F=load i8*,i8**%E,align 8
store i8*%F,i8**%f,align 8
%G=getelementptr inbounds i8,i8*%q,i64 40
%H=bitcast i8*%G to i32*
%I=load i32,i32*%H,align 4
%J=getelementptr inbounds i8,i8*%q,i64 48
%K=bitcast i8*%J to i8**
%L=load i8*,i8**%K,align 8
%M=getelementptr inbounds i8,i8*%q,i64 56
%N=bitcast i8*%M to i32*
%O=load i32,i32*%N,align 4
call void@sml_leave()#0
%P=invoke i8*%r(i8*%t,i8*%w,i8*%z,i8*%C,i8*%F,i32%I,i8*%L,i32%O)
to label%Q unwind label%R
Q:
call void@sml_enter()#0
ret i8*%P
R:
%S=landingpad{i8*,i8*}
cleanup
%T=extractvalue{i8*,i8*}%S,1
call void@sml_enter()#0
%U=call i8*@sml_unsave_exn(i8*inreg%T)#0
resume{i8*,i8*}%S
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL18mysql__real__connectE_45(i8*inreg%a,i32 inreg%b)#1 gc"smlsharp"{
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%c,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%f,label%h
f:
%g=bitcast i8*%a to i8**
br label%k
h:
call void@sml_check(i32 inreg%d)
%i=bitcast i8**%c to i8***
%j=load i8**,i8***%i,align 8
br label%k
k:
%l=phi i8**[%j,%h],[%g,%f]
%m=load i8*,i8**%l,align 8
%n=getelementptr inbounds i8,i8*%m,i64 16
%o=bitcast i8*%n to i8*(i8*,i8*)**
%p=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%o,align 8
%q=bitcast i8*%m to i8**
%r=load i8*,i8**%q,align 8
store i8*%r,i8**%c,align 8
%s=call i8*@sml_alloc(i32 inreg 4)#0
%t=bitcast i8*%s to i32*
%u=getelementptr inbounds i8,i8*%s,i64 -4
%v=bitcast i8*%u to i32*
store i32 4,i32*%v,align 4
store i32 0,i32*%t,align 4
%w=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%x=call fastcc i8*%p(i8*inreg%w,i8*inreg%s)
%y=bitcast i8*%x to i8**
%z=load i8*,i8**%y,align 8
%A=call i8*@sml_alloc(i32 inreg 20)#0
%B=getelementptr inbounds i8,i8*%A,i64 -4
%C=bitcast i8*%B to i32*
store i32 1342177296,i32*%C,align 4
%D=bitcast i8*%A to i8**
store i8*%z,i8**%D,align 8
%E=getelementptr inbounds i8,i8*%A,i64 8
%F=bitcast i8*%E to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[19x i8]}>,<{[4x i8],i32,[19x i8]}>*@e,i64 0,i32 2,i64 0),i8**%F,align 8
%G=getelementptr inbounds i8,i8*%A,i64 16
%H=bitcast i8*%G to i32*
store i32 2,i32*%H,align 4
%I=call fastcc void(...)*@_SMLFN11DynamicLink5dlsymE(i8*inreg%A)
%J=call i8*@sml_alloc(i32 inreg 12)#0
%K=getelementptr inbounds i8,i8*%J,i64 -4
%L=bitcast i8*%K to i32*
store i32 1342177288,i32*%L,align 4
store i8*%J,i8**%c,align 8
%M=bitcast i8*%J to void(...)**
store void(...)*%I,void(...)**%M,align 8
%N=getelementptr inbounds i8,i8*%J,i64 8
%O=bitcast i8*%N to i32*
store i32 0,i32*%O,align 4
%P=call i8*@sml_alloc(i32 inreg 28)#0
%Q=getelementptr inbounds i8,i8*%P,i64 -4
%R=bitcast i8*%Q to i32*
store i32 1342177304,i32*%R,align 4
%S=load i8*,i8**%c,align 8
%T=bitcast i8*%P to i8**
store i8*%S,i8**%T,align 8
%U=getelementptr inbounds i8,i8*%P,i64 8
%V=bitcast i8*%U to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN18SMLSharp__SQL__MySQL18mysql__real__connectE_44 to void(...)*),void(...)**%V,align 8
%W=getelementptr inbounds i8,i8*%P,i64 16
%X=bitcast i8*%W to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN18SMLSharp__SQL__MySQL18mysql__real__connectE_92 to void(...)*),void(...)**%X,align 8
%Y=getelementptr inbounds i8,i8*%P,i64 24
%Z=bitcast i8*%Y to i32*
store i32 -2147483647,i32*%Z,align 4
ret i8*%P
}
define internal fastcc i32@_SMLLN18SMLSharp__SQL__MySQL11mysql__errnoE_47(i8*inreg%a,i64 inreg%b)#1 gc"smlsharp"personality i32(...)*@sml_personality{
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%c,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%f,label%h
f:
%g=bitcast i8*%a to i32(i8*)**
br label%k
h:
call void@sml_check(i32 inreg%d)
%i=bitcast i8**%c to i32(i8*)***
%j=load i32(i8*)**,i32(i8*)***%i,align 8
br label%k
k:
%l=phi i32(i8*)**[%j,%h],[%g,%f]
%m=inttoptr i64%b to i8*
store i8*null,i8**%c,align 8
%n=load i32(i8*)*,i32(i8*)**%l,align 8
call void@sml_leave()#0
%o=invoke i32%n(i8*%m)
to label%p unwind label%q
p:
call void@sml_enter()#0
ret i32%o
q:
%r=landingpad{i8*,i8*}
cleanup
%s=extractvalue{i8*,i8*}%r,1
call void@sml_enter()#0
%t=call i8*@sml_unsave_exn(i8*inreg%s)#0
resume{i8*,i8*}%r
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL11mysql__errnoE_48(i8*inreg%a,i32 inreg%b)#1 gc"smlsharp"{
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%c,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%f,label%h
f:
%g=bitcast i8*%a to i8**
br label%k
h:
call void@sml_check(i32 inreg%d)
%i=bitcast i8**%c to i8***
%j=load i8**,i8***%i,align 8
br label%k
k:
%l=phi i8**[%j,%h],[%g,%f]
%m=load i8*,i8**%l,align 8
%n=getelementptr inbounds i8,i8*%m,i64 16
%o=bitcast i8*%n to i8*(i8*,i8*)**
%p=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%o,align 8
%q=bitcast i8*%m to i8**
%r=load i8*,i8**%q,align 8
store i8*%r,i8**%c,align 8
%s=call i8*@sml_alloc(i32 inreg 4)#0
%t=bitcast i8*%s to i32*
%u=getelementptr inbounds i8,i8*%s,i64 -4
%v=bitcast i8*%u to i32*
store i32 4,i32*%v,align 4
store i32 0,i32*%t,align 4
%w=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%x=call fastcc i8*%p(i8*inreg%w,i8*inreg%s)
%y=bitcast i8*%x to i8**
%z=load i8*,i8**%y,align 8
%A=call i8*@sml_alloc(i32 inreg 20)#0
%B=getelementptr inbounds i8,i8*%A,i64 -4
%C=bitcast i8*%B to i32*
store i32 1342177296,i32*%C,align 4
%D=bitcast i8*%A to i8**
store i8*%z,i8**%D,align 8
%E=getelementptr inbounds i8,i8*%A,i64 8
%F=bitcast i8*%E to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[12x i8]}>,<{[4x i8],i32,[12x i8]}>*@f,i64 0,i32 2,i64 0),i8**%F,align 8
%G=getelementptr inbounds i8,i8*%A,i64 16
%H=bitcast i8*%G to i32*
store i32 2,i32*%H,align 4
%I=call fastcc void(...)*@_SMLFN11DynamicLink5dlsymE(i8*inreg%A)
%J=call i8*@sml_alloc(i32 inreg 12)#0
%K=getelementptr inbounds i8,i8*%J,i64 -4
%L=bitcast i8*%K to i32*
store i32 1342177288,i32*%L,align 4
store i8*%J,i8**%c,align 8
%M=bitcast i8*%J to void(...)**
store void(...)*%I,void(...)**%M,align 8
%N=getelementptr inbounds i8,i8*%J,i64 8
%O=bitcast i8*%N to i32*
store i32 0,i32*%O,align 4
%P=call i8*@sml_alloc(i32 inreg 28)#0
%Q=getelementptr inbounds i8,i8*%P,i64 -4
%R=bitcast i8*%Q to i32*
store i32 1342177304,i32*%R,align 4
%S=load i8*,i8**%c,align 8
%T=bitcast i8*%P to i8**
store i8*%S,i8**%T,align 8
%U=getelementptr inbounds i8,i8*%P,i64 8
%V=bitcast i8*%U to void(...)**
store void(...)*bitcast(i32(i8*,i64)*@_SMLLN18SMLSharp__SQL__MySQL11mysql__errnoE_47 to void(...)*),void(...)**%V,align 8
%W=getelementptr inbounds i8,i8*%P,i64 16
%X=bitcast i8*%W to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN18SMLSharp__SQL__MySQL11mysql__errnoE_94 to void(...)*),void(...)**%X,align 8
%Y=getelementptr inbounds i8,i8*%P,i64 24
%Z=bitcast i8*%Y to i32*
store i32 -2147483647,i32*%Z,align 4
ret i8*%P
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL11mysql__errorE_50(i8*inreg%a,i64 inreg%b)#1 gc"smlsharp"personality i32(...)*@sml_personality{
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%c,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%f,label%h
f:
%g=bitcast i8*%a to i8*(i8*)**
br label%k
h:
call void@sml_check(i32 inreg%d)
%i=bitcast i8**%c to i8*(i8*)***
%j=load i8*(i8*)**,i8*(i8*)***%i,align 8
br label%k
k:
%l=phi i8*(i8*)**[%j,%h],[%g,%f]
%m=inttoptr i64%b to i8*
store i8*null,i8**%c,align 8
%n=load i8*(i8*)*,i8*(i8*)**%l,align 8
call void@sml_leave()#0
%o=invoke i8*%n(i8*%m)
to label%p unwind label%q
p:
call void@sml_enter()#0
ret i8*%o
q:
%r=landingpad{i8*,i8*}
cleanup
%s=extractvalue{i8*,i8*}%r,1
call void@sml_enter()#0
%t=call i8*@sml_unsave_exn(i8*inreg%s)#0
resume{i8*,i8*}%r
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL11mysql__errorE_51(i8*inreg%a,i32 inreg%b)#1 gc"smlsharp"{
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%c,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%f,label%h
f:
%g=bitcast i8*%a to i8**
br label%k
h:
call void@sml_check(i32 inreg%d)
%i=bitcast i8**%c to i8***
%j=load i8**,i8***%i,align 8
br label%k
k:
%l=phi i8**[%j,%h],[%g,%f]
%m=load i8*,i8**%l,align 8
%n=getelementptr inbounds i8,i8*%m,i64 16
%o=bitcast i8*%n to i8*(i8*,i8*)**
%p=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%o,align 8
%q=bitcast i8*%m to i8**
%r=load i8*,i8**%q,align 8
store i8*%r,i8**%c,align 8
%s=call i8*@sml_alloc(i32 inreg 4)#0
%t=bitcast i8*%s to i32*
%u=getelementptr inbounds i8,i8*%s,i64 -4
%v=bitcast i8*%u to i32*
store i32 4,i32*%v,align 4
store i32 0,i32*%t,align 4
%w=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%x=call fastcc i8*%p(i8*inreg%w,i8*inreg%s)
%y=bitcast i8*%x to i8**
%z=load i8*,i8**%y,align 8
%A=call i8*@sml_alloc(i32 inreg 20)#0
%B=getelementptr inbounds i8,i8*%A,i64 -4
%C=bitcast i8*%B to i32*
store i32 1342177296,i32*%C,align 4
%D=bitcast i8*%A to i8**
store i8*%z,i8**%D,align 8
%E=getelementptr inbounds i8,i8*%A,i64 8
%F=bitcast i8*%E to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[12x i8]}>,<{[4x i8],i32,[12x i8]}>*@g,i64 0,i32 2,i64 0),i8**%F,align 8
%G=getelementptr inbounds i8,i8*%A,i64 16
%H=bitcast i8*%G to i32*
store i32 2,i32*%H,align 4
%I=call fastcc void(...)*@_SMLFN11DynamicLink5dlsymE(i8*inreg%A)
%J=call i8*@sml_alloc(i32 inreg 12)#0
%K=getelementptr inbounds i8,i8*%J,i64 -4
%L=bitcast i8*%K to i32*
store i32 1342177288,i32*%L,align 4
store i8*%J,i8**%c,align 8
%M=bitcast i8*%J to void(...)**
store void(...)*%I,void(...)**%M,align 8
%N=getelementptr inbounds i8,i8*%J,i64 8
%O=bitcast i8*%N to i32*
store i32 0,i32*%O,align 4
%P=call i8*@sml_alloc(i32 inreg 28)#0
%Q=getelementptr inbounds i8,i8*%P,i64 -4
%R=bitcast i8*%Q to i32*
store i32 1342177304,i32*%R,align 4
%S=load i8*,i8**%c,align 8
%T=bitcast i8*%P to i8**
store i8*%S,i8**%T,align 8
%U=getelementptr inbounds i8,i8*%P,i64 8
%V=bitcast i8*%U to void(...)**
store void(...)*bitcast(i8*(i8*,i64)*@_SMLLN18SMLSharp__SQL__MySQL11mysql__errorE_50 to void(...)*),void(...)**%V,align 8
%W=getelementptr inbounds i8,i8*%P,i64 16
%X=bitcast i8*%W to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN18SMLSharp__SQL__MySQL11mysql__errorE_96 to void(...)*),void(...)**%X,align 8
%Y=getelementptr inbounds i8,i8*%P,i64 24
%Z=bitcast i8*%Y to i32*
store i32 -2147483647,i32*%Z,align 4
ret i8*%P
}
define internal fastcc i32@_SMLLN18SMLSharp__SQL__MySQL11mysql__queryE_53(i8*inreg%a,i8*inreg%b)#1 gc"smlsharp"personality i32(...)*@sml_personality{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%c,align 8
store i8*%b,i8**%d,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%g,label%i
g:
%h=bitcast i8*%a to i32(i8*,i8*)**
br label%m
i:
call void@sml_check(i32 inreg%e)
%j=load i8*,i8**%d,align 8
%k=bitcast i8**%c to i32(i8*,i8*)***
%l=load i32(i8*,i8*)**,i32(i8*,i8*)***%k,align 8
br label%m
m:
%n=phi i32(i8*,i8*)**[%l,%i],[%h,%g]
%o=phi i8*[%j,%i],[%b,%g]
store i8*null,i8**%d,align 8
%p=load i32(i8*,i8*)*,i32(i8*,i8*)**%n,align 8
%q=bitcast i8*%o to i8**
%r=load i8*,i8**%q,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
call void@sml_leave()#0
%v=invoke i32%p(i8*%r,i8*%u)
to label%w unwind label%x
w:
call void@sml_enter()#0
ret i32%v
x:
%y=landingpad{i8*,i8*}
cleanup
%z=extractvalue{i8*,i8*}%y,1
call void@sml_enter()#0
%A=call i8*@sml_unsave_exn(i8*inreg%z)#0
resume{i8*,i8*}%y
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL11mysql__queryE_54(i8*inreg%a,i32 inreg%b)#1 gc"smlsharp"{
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%c,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%f,label%h
f:
%g=bitcast i8*%a to i8**
br label%k
h:
call void@sml_check(i32 inreg%d)
%i=bitcast i8**%c to i8***
%j=load i8**,i8***%i,align 8
br label%k
k:
%l=phi i8**[%j,%h],[%g,%f]
%m=load i8*,i8**%l,align 8
%n=getelementptr inbounds i8,i8*%m,i64 16
%o=bitcast i8*%n to i8*(i8*,i8*)**
%p=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%o,align 8
%q=bitcast i8*%m to i8**
%r=load i8*,i8**%q,align 8
store i8*%r,i8**%c,align 8
%s=call i8*@sml_alloc(i32 inreg 4)#0
%t=bitcast i8*%s to i32*
%u=getelementptr inbounds i8,i8*%s,i64 -4
%v=bitcast i8*%u to i32*
store i32 4,i32*%v,align 4
store i32 0,i32*%t,align 4
%w=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%x=call fastcc i8*%p(i8*inreg%w,i8*inreg%s)
%y=bitcast i8*%x to i8**
%z=load i8*,i8**%y,align 8
%A=call i8*@sml_alloc(i32 inreg 20)#0
%B=getelementptr inbounds i8,i8*%A,i64 -4
%C=bitcast i8*%B to i32*
store i32 1342177296,i32*%C,align 4
%D=bitcast i8*%A to i8**
store i8*%z,i8**%D,align 8
%E=getelementptr inbounds i8,i8*%A,i64 8
%F=bitcast i8*%E to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[12x i8]}>,<{[4x i8],i32,[12x i8]}>*@h,i64 0,i32 2,i64 0),i8**%F,align 8
%G=getelementptr inbounds i8,i8*%A,i64 16
%H=bitcast i8*%G to i32*
store i32 2,i32*%H,align 4
%I=call fastcc void(...)*@_SMLFN11DynamicLink5dlsymE(i8*inreg%A)
%J=call i8*@sml_alloc(i32 inreg 12)#0
%K=getelementptr inbounds i8,i8*%J,i64 -4
%L=bitcast i8*%K to i32*
store i32 1342177288,i32*%L,align 4
store i8*%J,i8**%c,align 8
%M=bitcast i8*%J to void(...)**
store void(...)*%I,void(...)**%M,align 8
%N=getelementptr inbounds i8,i8*%J,i64 8
%O=bitcast i8*%N to i32*
store i32 0,i32*%O,align 4
%P=call i8*@sml_alloc(i32 inreg 28)#0
%Q=getelementptr inbounds i8,i8*%P,i64 -4
%R=bitcast i8*%Q to i32*
store i32 1342177304,i32*%R,align 4
%S=load i8*,i8**%c,align 8
%T=bitcast i8*%P to i8**
store i8*%S,i8**%T,align 8
%U=getelementptr inbounds i8,i8*%P,i64 8
%V=bitcast i8*%U to void(...)**
store void(...)*bitcast(i32(i8*,i8*)*@_SMLLN18SMLSharp__SQL__MySQL11mysql__queryE_53 to void(...)*),void(...)**%V,align 8
%W=getelementptr inbounds i8,i8*%P,i64 16
%X=bitcast i8*%W to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN18SMLSharp__SQL__MySQL11mysql__queryE_98 to void(...)*),void(...)**%X,align 8
%Y=getelementptr inbounds i8,i8*%P,i64 24
%Z=bitcast i8*%Y to i32*
store i32 -2147483647,i32*%Z,align 4
ret i8*%P
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL18mysql__store__resultE_56(i8*inreg%a,i64 inreg%b)#1 gc"smlsharp"personality i32(...)*@sml_personality{
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%c,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%f,label%h
f:
%g=bitcast i8*%a to i8*(i8*)**
br label%k
h:
call void@sml_check(i32 inreg%d)
%i=bitcast i8**%c to i8*(i8*)***
%j=load i8*(i8*)**,i8*(i8*)***%i,align 8
br label%k
k:
%l=phi i8*(i8*)**[%j,%h],[%g,%f]
%m=inttoptr i64%b to i8*
store i8*null,i8**%c,align 8
%n=load i8*(i8*)*,i8*(i8*)**%l,align 8
call void@sml_leave()#0
%o=invoke i8*%n(i8*%m)
to label%p unwind label%q
p:
call void@sml_enter()#0
ret i8*%o
q:
%r=landingpad{i8*,i8*}
cleanup
%s=extractvalue{i8*,i8*}%r,1
call void@sml_enter()#0
%t=call i8*@sml_unsave_exn(i8*inreg%s)#0
resume{i8*,i8*}%r
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL18mysql__store__resultE_57(i8*inreg%a,i32 inreg%b)#1 gc"smlsharp"{
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%c,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%f,label%h
f:
%g=bitcast i8*%a to i8**
br label%k
h:
call void@sml_check(i32 inreg%d)
%i=bitcast i8**%c to i8***
%j=load i8**,i8***%i,align 8
br label%k
k:
%l=phi i8**[%j,%h],[%g,%f]
%m=load i8*,i8**%l,align 8
%n=getelementptr inbounds i8,i8*%m,i64 16
%o=bitcast i8*%n to i8*(i8*,i8*)**
%p=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%o,align 8
%q=bitcast i8*%m to i8**
%r=load i8*,i8**%q,align 8
store i8*%r,i8**%c,align 8
%s=call i8*@sml_alloc(i32 inreg 4)#0
%t=bitcast i8*%s to i32*
%u=getelementptr inbounds i8,i8*%s,i64 -4
%v=bitcast i8*%u to i32*
store i32 4,i32*%v,align 4
store i32 0,i32*%t,align 4
%w=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%x=call fastcc i8*%p(i8*inreg%w,i8*inreg%s)
%y=bitcast i8*%x to i8**
%z=load i8*,i8**%y,align 8
%A=call i8*@sml_alloc(i32 inreg 20)#0
%B=getelementptr inbounds i8,i8*%A,i64 -4
%C=bitcast i8*%B to i32*
store i32 1342177296,i32*%C,align 4
%D=bitcast i8*%A to i8**
store i8*%z,i8**%D,align 8
%E=getelementptr inbounds i8,i8*%A,i64 8
%F=bitcast i8*%E to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[19x i8]}>,<{[4x i8],i32,[19x i8]}>*@i,i64 0,i32 2,i64 0),i8**%F,align 8
%G=getelementptr inbounds i8,i8*%A,i64 16
%H=bitcast i8*%G to i32*
store i32 2,i32*%H,align 4
%I=call fastcc void(...)*@_SMLFN11DynamicLink5dlsymE(i8*inreg%A)
%J=call i8*@sml_alloc(i32 inreg 12)#0
%K=getelementptr inbounds i8,i8*%J,i64 -4
%L=bitcast i8*%K to i32*
store i32 1342177288,i32*%L,align 4
store i8*%J,i8**%c,align 8
%M=bitcast i8*%J to void(...)**
store void(...)*%I,void(...)**%M,align 8
%N=getelementptr inbounds i8,i8*%J,i64 8
%O=bitcast i8*%N to i32*
store i32 0,i32*%O,align 4
%P=call i8*@sml_alloc(i32 inreg 28)#0
%Q=getelementptr inbounds i8,i8*%P,i64 -4
%R=bitcast i8*%Q to i32*
store i32 1342177304,i32*%R,align 4
%S=load i8*,i8**%c,align 8
%T=bitcast i8*%P to i8**
store i8*%S,i8**%T,align 8
%U=getelementptr inbounds i8,i8*%P,i64 8
%V=bitcast i8*%U to void(...)**
store void(...)*bitcast(i8*(i8*,i64)*@_SMLLN18SMLSharp__SQL__MySQL18mysql__store__resultE_56 to void(...)*),void(...)**%V,align 8
%W=getelementptr inbounds i8,i8*%P,i64 16
%X=bitcast i8*%W to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN18SMLSharp__SQL__MySQL18mysql__store__resultE_100 to void(...)*),void(...)**%X,align 8
%Y=getelementptr inbounds i8,i8*%P,i64 24
%Z=bitcast i8*%Y to i32*
store i32 -2147483647,i32*%Z,align 4
ret i8*%P
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL16mysql__use__resultE_59(i8*inreg%a,i64 inreg%b)#1 gc"smlsharp"personality i32(...)*@sml_personality{
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%c,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%f,label%h
f:
%g=bitcast i8*%a to i8*(i8*)**
br label%k
h:
call void@sml_check(i32 inreg%d)
%i=bitcast i8**%c to i8*(i8*)***
%j=load i8*(i8*)**,i8*(i8*)***%i,align 8
br label%k
k:
%l=phi i8*(i8*)**[%j,%h],[%g,%f]
%m=inttoptr i64%b to i8*
store i8*null,i8**%c,align 8
%n=load i8*(i8*)*,i8*(i8*)**%l,align 8
call void@sml_leave()#0
%o=invoke i8*%n(i8*%m)
to label%p unwind label%q
p:
call void@sml_enter()#0
ret i8*%o
q:
%r=landingpad{i8*,i8*}
cleanup
%s=extractvalue{i8*,i8*}%r,1
call void@sml_enter()#0
%t=call i8*@sml_unsave_exn(i8*inreg%s)#0
resume{i8*,i8*}%r
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL16mysql__use__resultE_60(i8*inreg%a,i32 inreg%b)#1 gc"smlsharp"{
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%c,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%f,label%h
f:
%g=bitcast i8*%a to i8**
br label%k
h:
call void@sml_check(i32 inreg%d)
%i=bitcast i8**%c to i8***
%j=load i8**,i8***%i,align 8
br label%k
k:
%l=phi i8**[%j,%h],[%g,%f]
%m=load i8*,i8**%l,align 8
%n=getelementptr inbounds i8,i8*%m,i64 16
%o=bitcast i8*%n to i8*(i8*,i8*)**
%p=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%o,align 8
%q=bitcast i8*%m to i8**
%r=load i8*,i8**%q,align 8
store i8*%r,i8**%c,align 8
%s=call i8*@sml_alloc(i32 inreg 4)#0
%t=bitcast i8*%s to i32*
%u=getelementptr inbounds i8,i8*%s,i64 -4
%v=bitcast i8*%u to i32*
store i32 4,i32*%v,align 4
store i32 0,i32*%t,align 4
%w=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%x=call fastcc i8*%p(i8*inreg%w,i8*inreg%s)
%y=bitcast i8*%x to i8**
%z=load i8*,i8**%y,align 8
%A=call i8*@sml_alloc(i32 inreg 20)#0
%B=getelementptr inbounds i8,i8*%A,i64 -4
%C=bitcast i8*%B to i32*
store i32 1342177296,i32*%C,align 4
%D=bitcast i8*%A to i8**
store i8*%z,i8**%D,align 8
%E=getelementptr inbounds i8,i8*%A,i64 8
%F=bitcast i8*%E to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[17x i8]}>,<{[4x i8],i32,[17x i8]}>*@j,i64 0,i32 2,i64 0),i8**%F,align 8
%G=getelementptr inbounds i8,i8*%A,i64 16
%H=bitcast i8*%G to i32*
store i32 2,i32*%H,align 4
%I=call fastcc void(...)*@_SMLFN11DynamicLink5dlsymE(i8*inreg%A)
%J=call i8*@sml_alloc(i32 inreg 12)#0
%K=getelementptr inbounds i8,i8*%J,i64 -4
%L=bitcast i8*%K to i32*
store i32 1342177288,i32*%L,align 4
store i8*%J,i8**%c,align 8
%M=bitcast i8*%J to void(...)**
store void(...)*%I,void(...)**%M,align 8
%N=getelementptr inbounds i8,i8*%J,i64 8
%O=bitcast i8*%N to i32*
store i32 0,i32*%O,align 4
%P=call i8*@sml_alloc(i32 inreg 28)#0
%Q=getelementptr inbounds i8,i8*%P,i64 -4
%R=bitcast i8*%Q to i32*
store i32 1342177304,i32*%R,align 4
%S=load i8*,i8**%c,align 8
%T=bitcast i8*%P to i8**
store i8*%S,i8**%T,align 8
%U=getelementptr inbounds i8,i8*%P,i64 8
%V=bitcast i8*%U to void(...)**
store void(...)*bitcast(i8*(i8*,i64)*@_SMLLN18SMLSharp__SQL__MySQL16mysql__use__resultE_59 to void(...)*),void(...)**%V,align 8
%W=getelementptr inbounds i8,i8*%P,i64 16
%X=bitcast i8*%W to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN18SMLSharp__SQL__MySQL16mysql__use__resultE_102 to void(...)*),void(...)**%X,align 8
%Y=getelementptr inbounds i8,i8*%P,i64 24
%Z=bitcast i8*%Y to i32*
store i32 -2147483647,i32*%Z,align 4
ret i8*%P
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL15mysql__fetch__rowE_62(i8*inreg%a,i64 inreg%b)#1 gc"smlsharp"personality i32(...)*@sml_personality{
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%c,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%f,label%h
f:
%g=bitcast i8*%a to i8*(i8*)**
br label%k
h:
call void@sml_check(i32 inreg%d)
%i=bitcast i8**%c to i8*(i8*)***
%j=load i8*(i8*)**,i8*(i8*)***%i,align 8
br label%k
k:
%l=phi i8*(i8*)**[%j,%h],[%g,%f]
%m=inttoptr i64%b to i8*
store i8*null,i8**%c,align 8
%n=load i8*(i8*)*,i8*(i8*)**%l,align 8
call void@sml_leave()#0
%o=invoke i8*%n(i8*%m)
to label%p unwind label%q
p:
call void@sml_enter()#0
ret i8*%o
q:
%r=landingpad{i8*,i8*}
cleanup
%s=extractvalue{i8*,i8*}%r,1
call void@sml_enter()#0
%t=call i8*@sml_unsave_exn(i8*inreg%s)#0
resume{i8*,i8*}%r
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL15mysql__fetch__rowE_63(i8*inreg%a,i32 inreg%b)#1 gc"smlsharp"{
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%c,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%f,label%h
f:
%g=bitcast i8*%a to i8**
br label%k
h:
call void@sml_check(i32 inreg%d)
%i=bitcast i8**%c to i8***
%j=load i8**,i8***%i,align 8
br label%k
k:
%l=phi i8**[%j,%h],[%g,%f]
%m=load i8*,i8**%l,align 8
%n=getelementptr inbounds i8,i8*%m,i64 16
%o=bitcast i8*%n to i8*(i8*,i8*)**
%p=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%o,align 8
%q=bitcast i8*%m to i8**
%r=load i8*,i8**%q,align 8
store i8*%r,i8**%c,align 8
%s=call i8*@sml_alloc(i32 inreg 4)#0
%t=bitcast i8*%s to i32*
%u=getelementptr inbounds i8,i8*%s,i64 -4
%v=bitcast i8*%u to i32*
store i32 4,i32*%v,align 4
store i32 0,i32*%t,align 4
%w=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%x=call fastcc i8*%p(i8*inreg%w,i8*inreg%s)
%y=bitcast i8*%x to i8**
%z=load i8*,i8**%y,align 8
%A=call i8*@sml_alloc(i32 inreg 20)#0
%B=getelementptr inbounds i8,i8*%A,i64 -4
%C=bitcast i8*%B to i32*
store i32 1342177296,i32*%C,align 4
%D=bitcast i8*%A to i8**
store i8*%z,i8**%D,align 8
%E=getelementptr inbounds i8,i8*%A,i64 8
%F=bitcast i8*%E to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[16x i8]}>,<{[4x i8],i32,[16x i8]}>*@k,i64 0,i32 2,i64 0),i8**%F,align 8
%G=getelementptr inbounds i8,i8*%A,i64 16
%H=bitcast i8*%G to i32*
store i32 2,i32*%H,align 4
%I=call fastcc void(...)*@_SMLFN11DynamicLink5dlsymE(i8*inreg%A)
%J=call i8*@sml_alloc(i32 inreg 12)#0
%K=getelementptr inbounds i8,i8*%J,i64 -4
%L=bitcast i8*%K to i32*
store i32 1342177288,i32*%L,align 4
store i8*%J,i8**%c,align 8
%M=bitcast i8*%J to void(...)**
store void(...)*%I,void(...)**%M,align 8
%N=getelementptr inbounds i8,i8*%J,i64 8
%O=bitcast i8*%N to i32*
store i32 0,i32*%O,align 4
%P=call i8*@sml_alloc(i32 inreg 28)#0
%Q=getelementptr inbounds i8,i8*%P,i64 -4
%R=bitcast i8*%Q to i32*
store i32 1342177304,i32*%R,align 4
%S=load i8*,i8**%c,align 8
%T=bitcast i8*%P to i8**
store i8*%S,i8**%T,align 8
%U=getelementptr inbounds i8,i8*%P,i64 8
%V=bitcast i8*%U to void(...)**
store void(...)*bitcast(i8*(i8*,i64)*@_SMLLN18SMLSharp__SQL__MySQL15mysql__fetch__rowE_62 to void(...)*),void(...)**%V,align 8
%W=getelementptr inbounds i8,i8*%P,i64 16
%X=bitcast i8*%W to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN18SMLSharp__SQL__MySQL15mysql__fetch__rowE_104 to void(...)*),void(...)**%X,align 8
%Y=getelementptr inbounds i8,i8*%P,i64 24
%Z=bitcast i8*%Y to i32*
store i32 -2147483647,i32*%Z,align 4
ret i8*%P
}
define internal fastcc void@_SMLLN18SMLSharp__SQL__MySQL17mysql__free__resultE_65(i8*inreg%a,i64 inreg%b)#1 gc"smlsharp"personality i32(...)*@sml_personality{
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%c,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%f,label%h
f:
%g=bitcast i8*%a to void(i8*)**
br label%k
h:
call void@sml_check(i32 inreg%d)
%i=bitcast i8**%c to void(i8*)***
%j=load void(i8*)**,void(i8*)***%i,align 8
br label%k
k:
%l=phi void(i8*)**[%j,%h],[%g,%f]
%m=inttoptr i64%b to i8*
store i8*null,i8**%c,align 8
%n=load void(i8*)*,void(i8*)**%l,align 8
call void@sml_leave()#0
invoke void%n(i8*%m)
to label%o unwind label%p
o:
call void@sml_enter()#0
ret void
p:
%q=landingpad{i8*,i8*}
cleanup
%r=extractvalue{i8*,i8*}%q,1
call void@sml_enter()#0
%s=call i8*@sml_unsave_exn(i8*inreg%r)#0
resume{i8*,i8*}%q
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL17mysql__free__resultE_66(i8*inreg%a,i32 inreg%b)#1 gc"smlsharp"{
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%c,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%f,label%h
f:
%g=bitcast i8*%a to i8**
br label%k
h:
call void@sml_check(i32 inreg%d)
%i=bitcast i8**%c to i8***
%j=load i8**,i8***%i,align 8
br label%k
k:
%l=phi i8**[%j,%h],[%g,%f]
%m=load i8*,i8**%l,align 8
%n=getelementptr inbounds i8,i8*%m,i64 16
%o=bitcast i8*%n to i8*(i8*,i8*)**
%p=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%o,align 8
%q=bitcast i8*%m to i8**
%r=load i8*,i8**%q,align 8
store i8*%r,i8**%c,align 8
%s=call i8*@sml_alloc(i32 inreg 4)#0
%t=bitcast i8*%s to i32*
%u=getelementptr inbounds i8,i8*%s,i64 -4
%v=bitcast i8*%u to i32*
store i32 4,i32*%v,align 4
store i32 0,i32*%t,align 4
%w=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%x=call fastcc i8*%p(i8*inreg%w,i8*inreg%s)
%y=bitcast i8*%x to i8**
%z=load i8*,i8**%y,align 8
%A=call i8*@sml_alloc(i32 inreg 20)#0
%B=getelementptr inbounds i8,i8*%A,i64 -4
%C=bitcast i8*%B to i32*
store i32 1342177296,i32*%C,align 4
%D=bitcast i8*%A to i8**
store i8*%z,i8**%D,align 8
%E=getelementptr inbounds i8,i8*%A,i64 8
%F=bitcast i8*%E to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[18x i8]}>,<{[4x i8],i32,[18x i8]}>*@l,i64 0,i32 2,i64 0),i8**%F,align 8
%G=getelementptr inbounds i8,i8*%A,i64 16
%H=bitcast i8*%G to i32*
store i32 2,i32*%H,align 4
%I=call fastcc void(...)*@_SMLFN11DynamicLink5dlsymE(i8*inreg%A)
%J=call i8*@sml_alloc(i32 inreg 12)#0
%K=getelementptr inbounds i8,i8*%J,i64 -4
%L=bitcast i8*%K to i32*
store i32 1342177288,i32*%L,align 4
store i8*%J,i8**%c,align 8
%M=bitcast i8*%J to void(...)**
store void(...)*%I,void(...)**%M,align 8
%N=getelementptr inbounds i8,i8*%J,i64 8
%O=bitcast i8*%N to i32*
store i32 0,i32*%O,align 4
%P=call i8*@sml_alloc(i32 inreg 28)#0
%Q=getelementptr inbounds i8,i8*%P,i64 -4
%R=bitcast i8*%Q to i32*
store i32 1342177304,i32*%R,align 4
%S=load i8*,i8**%c,align 8
%T=bitcast i8*%P to i8**
store i8*%S,i8**%T,align 8
%U=getelementptr inbounds i8,i8*%P,i64 8
%V=bitcast i8*%U to void(...)**
store void(...)*bitcast(void(i8*,i64)*@_SMLLN18SMLSharp__SQL__MySQL17mysql__free__resultE_65 to void(...)*),void(...)**%V,align 8
%W=getelementptr inbounds i8,i8*%P,i64 16
%X=bitcast i8*%W to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN18SMLSharp__SQL__MySQL17mysql__free__resultE_106 to void(...)*),void(...)**%X,align 8
%Y=getelementptr inbounds i8,i8*%P,i64 24
%Z=bitcast i8*%Y to i32*
store i32 -2147483647,i32*%Z,align 4
ret i8*%P
}
define internal fastcc void@_SMLLN18SMLSharp__SQL__MySQL11mysql__closeE_68(i8*inreg%a,i64 inreg%b)#1 gc"smlsharp"personality i32(...)*@sml_personality{
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%c,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%f,label%h
f:
%g=bitcast i8*%a to void(i8*)**
br label%k
h:
call void@sml_check(i32 inreg%d)
%i=bitcast i8**%c to void(i8*)***
%j=load void(i8*)**,void(i8*)***%i,align 8
br label%k
k:
%l=phi void(i8*)**[%j,%h],[%g,%f]
%m=inttoptr i64%b to i8*
store i8*null,i8**%c,align 8
%n=load void(i8*)*,void(i8*)**%l,align 8
call void@sml_leave()#0
invoke void%n(i8*%m)
to label%o unwind label%p
o:
call void@sml_enter()#0
ret void
p:
%q=landingpad{i8*,i8*}
cleanup
%r=extractvalue{i8*,i8*}%q,1
call void@sml_enter()#0
%s=call i8*@sml_unsave_exn(i8*inreg%r)#0
resume{i8*,i8*}%q
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL11mysql__closeE_69(i8*inreg%a,i32 inreg%b)#1 gc"smlsharp"{
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%c,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%f,label%h
f:
%g=bitcast i8*%a to i8**
br label%k
h:
call void@sml_check(i32 inreg%d)
%i=bitcast i8**%c to i8***
%j=load i8**,i8***%i,align 8
br label%k
k:
%l=phi i8**[%j,%h],[%g,%f]
%m=load i8*,i8**%l,align 8
%n=getelementptr inbounds i8,i8*%m,i64 16
%o=bitcast i8*%n to i8*(i8*,i8*)**
%p=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%o,align 8
%q=bitcast i8*%m to i8**
%r=load i8*,i8**%q,align 8
store i8*%r,i8**%c,align 8
%s=call i8*@sml_alloc(i32 inreg 4)#0
%t=bitcast i8*%s to i32*
%u=getelementptr inbounds i8,i8*%s,i64 -4
%v=bitcast i8*%u to i32*
store i32 4,i32*%v,align 4
store i32 0,i32*%t,align 4
%w=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%x=call fastcc i8*%p(i8*inreg%w,i8*inreg%s)
%y=bitcast i8*%x to i8**
%z=load i8*,i8**%y,align 8
%A=call i8*@sml_alloc(i32 inreg 20)#0
%B=getelementptr inbounds i8,i8*%A,i64 -4
%C=bitcast i8*%B to i32*
store i32 1342177296,i32*%C,align 4
%D=bitcast i8*%A to i8**
store i8*%z,i8**%D,align 8
%E=getelementptr inbounds i8,i8*%A,i64 8
%F=bitcast i8*%E to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[12x i8]}>,<{[4x i8],i32,[12x i8]}>*@m,i64 0,i32 2,i64 0),i8**%F,align 8
%G=getelementptr inbounds i8,i8*%A,i64 16
%H=bitcast i8*%G to i32*
store i32 2,i32*%H,align 4
%I=call fastcc void(...)*@_SMLFN11DynamicLink5dlsymE(i8*inreg%A)
%J=call i8*@sml_alloc(i32 inreg 12)#0
%K=getelementptr inbounds i8,i8*%J,i64 -4
%L=bitcast i8*%K to i32*
store i32 1342177288,i32*%L,align 4
store i8*%J,i8**%c,align 8
%M=bitcast i8*%J to void(...)**
store void(...)*%I,void(...)**%M,align 8
%N=getelementptr inbounds i8,i8*%J,i64 8
%O=bitcast i8*%N to i32*
store i32 0,i32*%O,align 4
%P=call i8*@sml_alloc(i32 inreg 28)#0
%Q=getelementptr inbounds i8,i8*%P,i64 -4
%R=bitcast i8*%Q to i32*
store i32 1342177304,i32*%R,align 4
%S=load i8*,i8**%c,align 8
%T=bitcast i8*%P to i8**
store i8*%S,i8**%T,align 8
%U=getelementptr inbounds i8,i8*%P,i64 8
%V=bitcast i8*%U to void(...)**
store void(...)*bitcast(void(i8*,i64)*@_SMLLN18SMLSharp__SQL__MySQL11mysql__closeE_68 to void(...)*),void(...)**%V,align 8
%W=getelementptr inbounds i8,i8*%P,i64 16
%X=bitcast i8*%W to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN18SMLSharp__SQL__MySQL11mysql__closeE_108 to void(...)*),void(...)**%X,align 8
%Y=getelementptr inbounds i8,i8*%P,i64 24
%Z=bitcast i8*%Y to i32*
store i32 -2147483647,i32*%Z,align 4
ret i8*%P
}
define internal fastcc void@_SMLLN18SMLSharp__SQL__MySQL15mysql__data__seekE_71(i8*inreg%a,i8*inreg%b)#1 gc"smlsharp"personality i32(...)*@sml_personality{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%c,align 8
store i8*%b,i8**%d,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%g,label%i
g:
%h=bitcast i8*%a to void(i8*,i64)**
br label%m
i:
call void@sml_check(i32 inreg%e)
%j=load i8*,i8**%d,align 8
%k=bitcast i8**%c to void(i8*,i64)***
%l=load void(i8*,i64)**,void(i8*,i64)***%k,align 8
br label%m
m:
%n=phi void(i8*,i64)**[%l,%i],[%h,%g]
%o=phi i8*[%j,%i],[%b,%g]
store i8*null,i8**%d,align 8
store i8*null,i8**%c,align 8
%p=load void(i8*,i64)*,void(i8*,i64)**%n,align 8
%q=bitcast i8*%o to i8**
%r=load i8*,i8**%q,align 8
%s=getelementptr inbounds i8,i8*%o,i64 8
%t=bitcast i8*%s to i64*
%u=load i64,i64*%t,align 4
call void@sml_leave()#0
invoke void%p(i8*%r,i64%u)
to label%v unwind label%w
v:
call void@sml_enter()#0
ret void
w:
%x=landingpad{i8*,i8*}
cleanup
%y=extractvalue{i8*,i8*}%x,1
call void@sml_enter()#0
%z=call i8*@sml_unsave_exn(i8*inreg%y)#0
resume{i8*,i8*}%x
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL15mysql__data__seekE_72(i8*inreg%a,i32 inreg%b)#1 gc"smlsharp"{
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%c,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%f,label%h
f:
%g=bitcast i8*%a to i8**
br label%k
h:
call void@sml_check(i32 inreg%d)
%i=bitcast i8**%c to i8***
%j=load i8**,i8***%i,align 8
br label%k
k:
%l=phi i8**[%j,%h],[%g,%f]
%m=load i8*,i8**%l,align 8
%n=getelementptr inbounds i8,i8*%m,i64 16
%o=bitcast i8*%n to i8*(i8*,i8*)**
%p=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%o,align 8
%q=bitcast i8*%m to i8**
%r=load i8*,i8**%q,align 8
store i8*%r,i8**%c,align 8
%s=call i8*@sml_alloc(i32 inreg 4)#0
%t=bitcast i8*%s to i32*
%u=getelementptr inbounds i8,i8*%s,i64 -4
%v=bitcast i8*%u to i32*
store i32 4,i32*%v,align 4
store i32 0,i32*%t,align 4
%w=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%x=call fastcc i8*%p(i8*inreg%w,i8*inreg%s)
%y=bitcast i8*%x to i8**
%z=load i8*,i8**%y,align 8
%A=call i8*@sml_alloc(i32 inreg 20)#0
%B=getelementptr inbounds i8,i8*%A,i64 -4
%C=bitcast i8*%B to i32*
store i32 1342177296,i32*%C,align 4
%D=bitcast i8*%A to i8**
store i8*%z,i8**%D,align 8
%E=getelementptr inbounds i8,i8*%A,i64 8
%F=bitcast i8*%E to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[16x i8]}>,<{[4x i8],i32,[16x i8]}>*@n,i64 0,i32 2,i64 0),i8**%F,align 8
%G=getelementptr inbounds i8,i8*%A,i64 16
%H=bitcast i8*%G to i32*
store i32 2,i32*%H,align 4
%I=call fastcc void(...)*@_SMLFN11DynamicLink5dlsymE(i8*inreg%A)
%J=call i8*@sml_alloc(i32 inreg 12)#0
%K=getelementptr inbounds i8,i8*%J,i64 -4
%L=bitcast i8*%K to i32*
store i32 1342177288,i32*%L,align 4
store i8*%J,i8**%c,align 8
%M=bitcast i8*%J to void(...)**
store void(...)*%I,void(...)**%M,align 8
%N=getelementptr inbounds i8,i8*%J,i64 8
%O=bitcast i8*%N to i32*
store i32 0,i32*%O,align 4
%P=call i8*@sml_alloc(i32 inreg 28)#0
%Q=getelementptr inbounds i8,i8*%P,i64 -4
%R=bitcast i8*%Q to i32*
store i32 1342177304,i32*%R,align 4
%S=load i8*,i8**%c,align 8
%T=bitcast i8*%P to i8**
store i8*%S,i8**%T,align 8
%U=getelementptr inbounds i8,i8*%P,i64 8
%V=bitcast i8*%U to void(...)**
store void(...)*bitcast(void(i8*,i8*)*@_SMLLN18SMLSharp__SQL__MySQL15mysql__data__seekE_71 to void(...)*),void(...)**%V,align 8
%W=getelementptr inbounds i8,i8*%P,i64 16
%X=bitcast i8*%W to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN18SMLSharp__SQL__MySQL15mysql__data__seekE_110 to void(...)*),void(...)**%X,align 8
%Y=getelementptr inbounds i8,i8*%P,i64 24
%Z=bitcast i8*%Y to i32*
store i32 -2147483647,i32*%Z,align 4
ret i8*%P
}
define internal fastcc i64@_SMLLN18SMLSharp__SQL__MySQL14mysql__num__rowsE_74(i8*inreg%a,i64 inreg%b)#1 gc"smlsharp"personality i32(...)*@sml_personality{
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%c,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%f,label%h
f:
%g=bitcast i8*%a to i64(i8*)**
br label%k
h:
call void@sml_check(i32 inreg%d)
%i=bitcast i8**%c to i64(i8*)***
%j=load i64(i8*)**,i64(i8*)***%i,align 8
br label%k
k:
%l=phi i64(i8*)**[%j,%h],[%g,%f]
%m=inttoptr i64%b to i8*
store i8*null,i8**%c,align 8
%n=load i64(i8*)*,i64(i8*)**%l,align 8
call void@sml_leave()#0
%o=invoke i64%n(i8*%m)
to label%p unwind label%q
p:
call void@sml_enter()#0
ret i64%o
q:
%r=landingpad{i8*,i8*}
cleanup
%s=extractvalue{i8*,i8*}%r,1
call void@sml_enter()#0
%t=call i8*@sml_unsave_exn(i8*inreg%s)#0
resume{i8*,i8*}%r
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL14mysql__num__rowsE_75(i8*inreg%a,i32 inreg%b)#1 gc"smlsharp"{
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%c,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%f,label%h
f:
%g=bitcast i8*%a to i8**
br label%k
h:
call void@sml_check(i32 inreg%d)
%i=bitcast i8**%c to i8***
%j=load i8**,i8***%i,align 8
br label%k
k:
%l=phi i8**[%j,%h],[%g,%f]
%m=load i8*,i8**%l,align 8
%n=getelementptr inbounds i8,i8*%m,i64 16
%o=bitcast i8*%n to i8*(i8*,i8*)**
%p=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%o,align 8
%q=bitcast i8*%m to i8**
%r=load i8*,i8**%q,align 8
store i8*%r,i8**%c,align 8
%s=call i8*@sml_alloc(i32 inreg 4)#0
%t=bitcast i8*%s to i32*
%u=getelementptr inbounds i8,i8*%s,i64 -4
%v=bitcast i8*%u to i32*
store i32 4,i32*%v,align 4
store i32 0,i32*%t,align 4
%w=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%x=call fastcc i8*%p(i8*inreg%w,i8*inreg%s)
%y=bitcast i8*%x to i8**
%z=load i8*,i8**%y,align 8
%A=call i8*@sml_alloc(i32 inreg 20)#0
%B=getelementptr inbounds i8,i8*%A,i64 -4
%C=bitcast i8*%B to i32*
store i32 1342177296,i32*%C,align 4
%D=bitcast i8*%A to i8**
store i8*%z,i8**%D,align 8
%E=getelementptr inbounds i8,i8*%A,i64 8
%F=bitcast i8*%E to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[15x i8]}>,<{[4x i8],i32,[15x i8]}>*@o,i64 0,i32 2,i64 0),i8**%F,align 8
%G=getelementptr inbounds i8,i8*%A,i64 16
%H=bitcast i8*%G to i32*
store i32 2,i32*%H,align 4
%I=call fastcc void(...)*@_SMLFN11DynamicLink5dlsymE(i8*inreg%A)
%J=call i8*@sml_alloc(i32 inreg 12)#0
%K=getelementptr inbounds i8,i8*%J,i64 -4
%L=bitcast i8*%K to i32*
store i32 1342177288,i32*%L,align 4
store i8*%J,i8**%c,align 8
%M=bitcast i8*%J to void(...)**
store void(...)*%I,void(...)**%M,align 8
%N=getelementptr inbounds i8,i8*%J,i64 8
%O=bitcast i8*%N to i32*
store i32 0,i32*%O,align 4
%P=call i8*@sml_alloc(i32 inreg 28)#0
%Q=getelementptr inbounds i8,i8*%P,i64 -4
%R=bitcast i8*%Q to i32*
store i32 1342177304,i32*%R,align 4
%S=load i8*,i8**%c,align 8
%T=bitcast i8*%P to i8**
store i8*%S,i8**%T,align 8
%U=getelementptr inbounds i8,i8*%P,i64 8
%V=bitcast i8*%U to void(...)**
store void(...)*bitcast(i64(i8*,i64)*@_SMLLN18SMLSharp__SQL__MySQL14mysql__num__rowsE_74 to void(...)*),void(...)**%V,align 8
%W=getelementptr inbounds i8,i8*%P,i64 16
%X=bitcast i8*%W to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN18SMLSharp__SQL__MySQL14mysql__num__rowsE_112 to void(...)*),void(...)**%X,align 8
%Y=getelementptr inbounds i8,i8*%P,i64 24
%Z=bitcast i8*%Y to i32*
store i32 -2147483647,i32*%Z,align 4
ret i8*%P
}
define fastcc i8*@_SMLFN18SMLSharp__SQL__MySQL10mysql__initE(i32 inreg%a)local_unnamed_addr#1 gc"smlsharp"{
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%f,label%e
e:
call void@sml_check(i32 inreg%c)
br label%f
f:
%g=load i8*,i8**getelementptr inbounds(<{[4x i8],i32,[11x i8*]}>,<{[4x i8],i32,[11x i8*]}>*@_SML_gvar1d1ac2f11ce506e3_MySQL,i64 0,i32 2,i64 0),align 8
%h=getelementptr inbounds i8,i8*%g,i64 16
%i=bitcast i8*%h to i8*(i8*,i8*)**
%j=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%i,align 8
%k=bitcast i8*%g to i8**
%l=load i8*,i8**%k,align 8
store i8*%l,i8**%b,align 8
%m=call i8*@sml_alloc(i32 inreg 4)#0
%n=bitcast i8*%m to i32*
%o=getelementptr inbounds i8,i8*%m,i64 -4
%p=bitcast i8*%o to i32*
store i32 4,i32*%p,align 4
store i32%a,i32*%n,align 4
%q=load i8*,i8**%b,align 8
%r=tail call fastcc i8*%j(i8*inreg%q,i8*inreg%m)
ret i8*%r
}
define fastcc i8*@_SMLFN18SMLSharp__SQL__MySQL18mysql__real__connectE(i32 inreg%a)local_unnamed_addr#1 gc"smlsharp"{
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%f,label%e
e:
call void@sml_check(i32 inreg%c)
br label%f
f:
%g=load i8*,i8**getelementptr inbounds(<{[4x i8],i32,[11x i8*]}>,<{[4x i8],i32,[11x i8*]}>*@_SML_gvar1d1ac2f11ce506e3_MySQL,i64 0,i32 2,i64 1),align 8
%h=getelementptr inbounds i8,i8*%g,i64 16
%i=bitcast i8*%h to i8*(i8*,i8*)**
%j=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%i,align 8
%k=bitcast i8*%g to i8**
%l=load i8*,i8**%k,align 8
store i8*%l,i8**%b,align 8
%m=call i8*@sml_alloc(i32 inreg 4)#0
%n=bitcast i8*%m to i32*
%o=getelementptr inbounds i8,i8*%m,i64 -4
%p=bitcast i8*%o to i32*
store i32 4,i32*%p,align 4
store i32%a,i32*%n,align 4
%q=load i8*,i8**%b,align 8
%r=tail call fastcc i8*%j(i8*inreg%q,i8*inreg%m)
ret i8*%r
}
define fastcc i8*@_SMLFN18SMLSharp__SQL__MySQL11mysql__errnoE(i32 inreg%a)local_unnamed_addr#1 gc"smlsharp"{
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%f,label%e
e:
call void@sml_check(i32 inreg%c)
br label%f
f:
%g=load i8*,i8**getelementptr inbounds(<{[4x i8],i32,[11x i8*]}>,<{[4x i8],i32,[11x i8*]}>*@_SML_gvar1d1ac2f11ce506e3_MySQL,i64 0,i32 2,i64 2),align 8
%h=getelementptr inbounds i8,i8*%g,i64 16
%i=bitcast i8*%h to i8*(i8*,i8*)**
%j=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%i,align 8
%k=bitcast i8*%g to i8**
%l=load i8*,i8**%k,align 8
store i8*%l,i8**%b,align 8
%m=call i8*@sml_alloc(i32 inreg 4)#0
%n=bitcast i8*%m to i32*
%o=getelementptr inbounds i8,i8*%m,i64 -4
%p=bitcast i8*%o to i32*
store i32 4,i32*%p,align 4
store i32%a,i32*%n,align 4
%q=load i8*,i8**%b,align 8
%r=tail call fastcc i8*%j(i8*inreg%q,i8*inreg%m)
ret i8*%r
}
define fastcc i8*@_SMLFN18SMLSharp__SQL__MySQL11mysql__errorE(i32 inreg%a)local_unnamed_addr#1 gc"smlsharp"{
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%f,label%e
e:
call void@sml_check(i32 inreg%c)
br label%f
f:
%g=load i8*,i8**getelementptr inbounds(<{[4x i8],i32,[11x i8*]}>,<{[4x i8],i32,[11x i8*]}>*@_SML_gvar1d1ac2f11ce506e3_MySQL,i64 0,i32 2,i64 3),align 8
%h=getelementptr inbounds i8,i8*%g,i64 16
%i=bitcast i8*%h to i8*(i8*,i8*)**
%j=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%i,align 8
%k=bitcast i8*%g to i8**
%l=load i8*,i8**%k,align 8
store i8*%l,i8**%b,align 8
%m=call i8*@sml_alloc(i32 inreg 4)#0
%n=bitcast i8*%m to i32*
%o=getelementptr inbounds i8,i8*%m,i64 -4
%p=bitcast i8*%o to i32*
store i32 4,i32*%p,align 4
store i32%a,i32*%n,align 4
%q=load i8*,i8**%b,align 8
%r=tail call fastcc i8*%j(i8*inreg%q,i8*inreg%m)
ret i8*%r
}
define fastcc i8*@_SMLFN18SMLSharp__SQL__MySQL11mysql__queryE(i32 inreg%a)local_unnamed_addr#1 gc"smlsharp"{
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%f,label%e
e:
call void@sml_check(i32 inreg%c)
br label%f
f:
%g=load i8*,i8**getelementptr inbounds(<{[4x i8],i32,[11x i8*]}>,<{[4x i8],i32,[11x i8*]}>*@_SML_gvar1d1ac2f11ce506e3_MySQL,i64 0,i32 2,i64 4),align 8
%h=getelementptr inbounds i8,i8*%g,i64 16
%i=bitcast i8*%h to i8*(i8*,i8*)**
%j=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%i,align 8
%k=bitcast i8*%g to i8**
%l=load i8*,i8**%k,align 8
store i8*%l,i8**%b,align 8
%m=call i8*@sml_alloc(i32 inreg 4)#0
%n=bitcast i8*%m to i32*
%o=getelementptr inbounds i8,i8*%m,i64 -4
%p=bitcast i8*%o to i32*
store i32 4,i32*%p,align 4
store i32%a,i32*%n,align 4
%q=load i8*,i8**%b,align 8
%r=tail call fastcc i8*%j(i8*inreg%q,i8*inreg%m)
ret i8*%r
}
define fastcc i8*@_SMLFN18SMLSharp__SQL__MySQL18mysql__store__resultE(i32 inreg%a)local_unnamed_addr#1 gc"smlsharp"{
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%f,label%e
e:
call void@sml_check(i32 inreg%c)
br label%f
f:
%g=load i8*,i8**getelementptr inbounds(<{[4x i8],i32,[11x i8*]}>,<{[4x i8],i32,[11x i8*]}>*@_SML_gvar1d1ac2f11ce506e3_MySQL,i64 0,i32 2,i64 5),align 8
%h=getelementptr inbounds i8,i8*%g,i64 16
%i=bitcast i8*%h to i8*(i8*,i8*)**
%j=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%i,align 8
%k=bitcast i8*%g to i8**
%l=load i8*,i8**%k,align 8
store i8*%l,i8**%b,align 8
%m=call i8*@sml_alloc(i32 inreg 4)#0
%n=bitcast i8*%m to i32*
%o=getelementptr inbounds i8,i8*%m,i64 -4
%p=bitcast i8*%o to i32*
store i32 4,i32*%p,align 4
store i32%a,i32*%n,align 4
%q=load i8*,i8**%b,align 8
%r=tail call fastcc i8*%j(i8*inreg%q,i8*inreg%m)
ret i8*%r
}
define fastcc i8*@_SMLFN18SMLSharp__SQL__MySQL15mysql__fetch__rowE(i32 inreg%a)local_unnamed_addr#1 gc"smlsharp"{
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%f,label%e
e:
call void@sml_check(i32 inreg%c)
br label%f
f:
%g=load i8*,i8**getelementptr inbounds(<{[4x i8],i32,[11x i8*]}>,<{[4x i8],i32,[11x i8*]}>*@_SML_gvar1d1ac2f11ce506e3_MySQL,i64 0,i32 2,i64 6),align 8
%h=getelementptr inbounds i8,i8*%g,i64 16
%i=bitcast i8*%h to i8*(i8*,i8*)**
%j=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%i,align 8
%k=bitcast i8*%g to i8**
%l=load i8*,i8**%k,align 8
store i8*%l,i8**%b,align 8
%m=call i8*@sml_alloc(i32 inreg 4)#0
%n=bitcast i8*%m to i32*
%o=getelementptr inbounds i8,i8*%m,i64 -4
%p=bitcast i8*%o to i32*
store i32 4,i32*%p,align 4
store i32%a,i32*%n,align 4
%q=load i8*,i8**%b,align 8
%r=tail call fastcc i8*%j(i8*inreg%q,i8*inreg%m)
ret i8*%r
}
define fastcc i8*@_SMLFN18SMLSharp__SQL__MySQL17mysql__free__resultE(i32 inreg%a)local_unnamed_addr#1 gc"smlsharp"{
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%f,label%e
e:
call void@sml_check(i32 inreg%c)
br label%f
f:
%g=load i8*,i8**getelementptr inbounds(<{[4x i8],i32,[11x i8*]}>,<{[4x i8],i32,[11x i8*]}>*@_SML_gvar1d1ac2f11ce506e3_MySQL,i64 0,i32 2,i64 7),align 8
%h=getelementptr inbounds i8,i8*%g,i64 16
%i=bitcast i8*%h to i8*(i8*,i8*)**
%j=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%i,align 8
%k=bitcast i8*%g to i8**
%l=load i8*,i8**%k,align 8
store i8*%l,i8**%b,align 8
%m=call i8*@sml_alloc(i32 inreg 4)#0
%n=bitcast i8*%m to i32*
%o=getelementptr inbounds i8,i8*%m,i64 -4
%p=bitcast i8*%o to i32*
store i32 4,i32*%p,align 4
store i32%a,i32*%n,align 4
%q=load i8*,i8**%b,align 8
%r=tail call fastcc i8*%j(i8*inreg%q,i8*inreg%m)
ret i8*%r
}
define fastcc i8*@_SMLFN18SMLSharp__SQL__MySQL15mysql__data__seekE(i32 inreg%a)local_unnamed_addr#1 gc"smlsharp"{
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%f,label%e
e:
call void@sml_check(i32 inreg%c)
br label%f
f:
%g=load i8*,i8**getelementptr inbounds(<{[4x i8],i32,[11x i8*]}>,<{[4x i8],i32,[11x i8*]}>*@_SML_gvar1d1ac2f11ce506e3_MySQL,i64 0,i32 2,i64 8),align 8
%h=getelementptr inbounds i8,i8*%g,i64 16
%i=bitcast i8*%h to i8*(i8*,i8*)**
%j=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%i,align 8
%k=bitcast i8*%g to i8**
%l=load i8*,i8**%k,align 8
store i8*%l,i8**%b,align 8
%m=call i8*@sml_alloc(i32 inreg 4)#0
%n=bitcast i8*%m to i32*
%o=getelementptr inbounds i8,i8*%m,i64 -4
%p=bitcast i8*%o to i32*
store i32 4,i32*%p,align 4
store i32%a,i32*%n,align 4
%q=load i8*,i8**%b,align 8
%r=tail call fastcc i8*%j(i8*inreg%q,i8*inreg%m)
ret i8*%r
}
define fastcc i8*@_SMLFN18SMLSharp__SQL__MySQL11mysql__closeE(i32 inreg%a)local_unnamed_addr#1 gc"smlsharp"{
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%f,label%e
e:
call void@sml_check(i32 inreg%c)
br label%f
f:
%g=load i8*,i8**getelementptr inbounds(<{[4x i8],i32,[11x i8*]}>,<{[4x i8],i32,[11x i8*]}>*@_SML_gvar1d1ac2f11ce506e3_MySQL,i64 0,i32 2,i64 9),align 8
%h=getelementptr inbounds i8,i8*%g,i64 16
%i=bitcast i8*%h to i8*(i8*,i8*)**
%j=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%i,align 8
%k=bitcast i8*%g to i8**
%l=load i8*,i8**%k,align 8
store i8*%l,i8**%b,align 8
%m=call i8*@sml_alloc(i32 inreg 4)#0
%n=bitcast i8*%m to i32*
%o=getelementptr inbounds i8,i8*%m,i64 -4
%p=bitcast i8*%o to i32*
store i32 4,i32*%p,align 4
store i32%a,i32*%n,align 4
%q=load i8*,i8**%b,align 8
%r=tail call fastcc i8*%j(i8*inreg%q,i8*inreg%m)
ret i8*%r
}
define fastcc i8*@_SMLFN18SMLSharp__SQL__MySQL14mysql__num__rowsE(i32 inreg%a)local_unnamed_addr#1 gc"smlsharp"{
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%f,label%e
e:
call void@sml_check(i32 inreg%c)
br label%f
f:
%g=load i8*,i8**getelementptr inbounds(<{[4x i8],i32,[11x i8*]}>,<{[4x i8],i32,[11x i8*]}>*@_SML_gvar1d1ac2f11ce506e3_MySQL,i64 0,i32 2,i64 10),align 8
%h=getelementptr inbounds i8,i8*%g,i64 16
%i=bitcast i8*%h to i8*(i8*,i8*)**
%j=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%i,align 8
%k=bitcast i8*%g to i8**
%l=load i8*,i8**%k,align 8
store i8*%l,i8**%b,align 8
%m=call i8*@sml_alloc(i32 inreg 4)#0
%n=bitcast i8*%m to i32*
%o=getelementptr inbounds i8,i8*%m,i64 -4
%p=bitcast i8*%o to i32*
store i32 4,i32*%p,align 4
store i32%a,i32*%n,align 4
%q=load i8*,i8**%b,align 8
%r=tail call fastcc i8*%j(i8*inreg%q,i8*inreg%m)
ret i8*%r
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL4lazyE_87(i8*inreg%a,i8*inreg%b)#1 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=tail call fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL4lazyE_32(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL3libE_89(i8*inreg%a,i8*inreg%b)#1 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=tail call fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL3libE_38(i32 inreg%d)
%f=tail call i8*@sml_alloc(i32 inreg 8)#0
%g=getelementptr inbounds i8,i8*%f,i64 -4
%h=bitcast i8*%g to i32*
store i32 8,i32*%h,align 4
%i=bitcast i8*%f to i8**
store i8*%e,i8**%i,align 8
ret i8*%f
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL10mysql__initE_90(i8*inreg%a,i8*inreg%b)#1 gc"smlsharp"{
%c=bitcast i8*%b to i64*
%d=load i64,i64*%c,align 4
%e=tail call fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL10mysql__initE_41(i8*inreg%a,i64 inreg%d)
%f=tail call i8*@sml_alloc(i32 inreg 8)#0
%g=getelementptr inbounds i8,i8*%f,i64 -4
%h=bitcast i8*%g to i32*
store i32 8,i32*%h,align 4
%i=bitcast i8*%f to i8**
store i8*%e,i8**%i,align 8
ret i8*%f
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL10mysql__initE_91(i8*inreg%a,i8*inreg%b)#1 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=tail call fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL10mysql__initE_42(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL18mysql__real__connectE_92(i8*inreg%a,i8*inreg%b)#1 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL18mysql__real__connectE_44(i8*inreg%a,i8*inreg%b)
%d=tail call i8*@sml_alloc(i32 inreg 8)#0
%e=getelementptr inbounds i8,i8*%d,i64 -4
%f=bitcast i8*%e to i32*
store i32 8,i32*%f,align 4
%g=bitcast i8*%d to i8**
store i8*%c,i8**%g,align 8
ret i8*%d
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL18mysql__real__connectE_93(i8*inreg%a,i8*inreg%b)#1 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=tail call fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL18mysql__real__connectE_45(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL11mysql__errnoE_94(i8*inreg%a,i8*inreg%b)#1 gc"smlsharp"{
%c=bitcast i8*%b to i64*
%d=load i64,i64*%c,align 4
%e=tail call fastcc i32@_SMLLN18SMLSharp__SQL__MySQL11mysql__errnoE_47(i8*inreg%a,i64 inreg%d)
%f=tail call i8*@sml_alloc(i32 inreg 4)#0
%g=bitcast i8*%f to i32*
%h=getelementptr inbounds i8,i8*%f,i64 -4
%i=bitcast i8*%h to i32*
store i32 4,i32*%i,align 4
store i32%e,i32*%g,align 4
ret i8*%f
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL11mysql__errnoE_95(i8*inreg%a,i8*inreg%b)#1 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=tail call fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL11mysql__errnoE_48(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL11mysql__errorE_96(i8*inreg%a,i8*inreg%b)#1 gc"smlsharp"{
%c=bitcast i8*%b to i64*
%d=load i64,i64*%c,align 4
%e=tail call fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL11mysql__errorE_50(i8*inreg%a,i64 inreg%d)
%f=tail call i8*@sml_alloc(i32 inreg 8)#0
%g=getelementptr inbounds i8,i8*%f,i64 -4
%h=bitcast i8*%g to i32*
store i32 8,i32*%h,align 4
%i=bitcast i8*%f to i8**
store i8*%e,i8**%i,align 8
ret i8*%f
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL11mysql__errorE_97(i8*inreg%a,i8*inreg%b)#1 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=tail call fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL11mysql__errorE_51(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL11mysql__queryE_98(i8*inreg%a,i8*inreg%b)#1 gc"smlsharp"{
%c=tail call fastcc i32@_SMLLN18SMLSharp__SQL__MySQL11mysql__queryE_53(i8*inreg%a,i8*inreg%b)
%d=tail call i8*@sml_alloc(i32 inreg 4)#0
%e=bitcast i8*%d to i32*
%f=getelementptr inbounds i8,i8*%d,i64 -4
%g=bitcast i8*%f to i32*
store i32 4,i32*%g,align 4
store i32%c,i32*%e,align 4
ret i8*%d
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL11mysql__queryE_99(i8*inreg%a,i8*inreg%b)#1 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=tail call fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL11mysql__queryE_54(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL18mysql__store__resultE_100(i8*inreg%a,i8*inreg%b)#1 gc"smlsharp"{
%c=bitcast i8*%b to i64*
%d=load i64,i64*%c,align 4
%e=tail call fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL18mysql__store__resultE_56(i8*inreg%a,i64 inreg%d)
%f=tail call i8*@sml_alloc(i32 inreg 8)#0
%g=getelementptr inbounds i8,i8*%f,i64 -4
%h=bitcast i8*%g to i32*
store i32 8,i32*%h,align 4
%i=bitcast i8*%f to i8**
store i8*%e,i8**%i,align 8
ret i8*%f
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL18mysql__store__resultE_101(i8*inreg%a,i8*inreg%b)#1 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=tail call fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL18mysql__store__resultE_57(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL16mysql__use__resultE_102(i8*inreg%a,i8*inreg%b)#1 gc"smlsharp"{
%c=bitcast i8*%b to i64*
%d=load i64,i64*%c,align 4
%e=tail call fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL16mysql__use__resultE_59(i8*inreg%a,i64 inreg%d)
%f=tail call i8*@sml_alloc(i32 inreg 8)#0
%g=getelementptr inbounds i8,i8*%f,i64 -4
%h=bitcast i8*%g to i32*
store i32 8,i32*%h,align 4
%i=bitcast i8*%f to i8**
store i8*%e,i8**%i,align 8
ret i8*%f
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL16mysql__use__resultE_103(i8*inreg%a,i8*inreg%b)#1 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=tail call fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL16mysql__use__resultE_60(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL15mysql__fetch__rowE_104(i8*inreg%a,i8*inreg%b)#1 gc"smlsharp"{
%c=bitcast i8*%b to i64*
%d=load i64,i64*%c,align 4
%e=tail call fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL15mysql__fetch__rowE_62(i8*inreg%a,i64 inreg%d)
%f=tail call i8*@sml_alloc(i32 inreg 8)#0
%g=getelementptr inbounds i8,i8*%f,i64 -4
%h=bitcast i8*%g to i32*
store i32 8,i32*%h,align 4
%i=bitcast i8*%f to i8**
store i8*%e,i8**%i,align 8
ret i8*%f
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL15mysql__fetch__rowE_105(i8*inreg%a,i8*inreg%b)#1 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=tail call fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL15mysql__fetch__rowE_63(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL17mysql__free__resultE_106(i8*inreg%a,i8*inreg%b)#1 gc"smlsharp"{
%c=bitcast i8*%b to i64*
%d=load i64,i64*%c,align 4
tail call fastcc void@_SMLLN18SMLSharp__SQL__MySQL17mysql__free__resultE_65(i8*inreg%a,i64 inreg%d)
%e=tail call i8*@sml_alloc(i32 inreg 4)#0
%f=bitcast i8*%e to i32*
%g=getelementptr inbounds i8,i8*%e,i64 -4
%h=bitcast i8*%g to i32*
store i32 4,i32*%h,align 4
store i32 0,i32*%f,align 4
ret i8*%e
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL17mysql__free__resultE_107(i8*inreg%a,i8*inreg%b)#1 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=tail call fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL17mysql__free__resultE_66(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL11mysql__closeE_108(i8*inreg%a,i8*inreg%b)#1 gc"smlsharp"{
%c=bitcast i8*%b to i64*
%d=load i64,i64*%c,align 4
tail call fastcc void@_SMLLN18SMLSharp__SQL__MySQL11mysql__closeE_68(i8*inreg%a,i64 inreg%d)
%e=tail call i8*@sml_alloc(i32 inreg 4)#0
%f=bitcast i8*%e to i32*
%g=getelementptr inbounds i8,i8*%e,i64 -4
%h=bitcast i8*%g to i32*
store i32 4,i32*%h,align 4
store i32 0,i32*%f,align 4
ret i8*%e
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL11mysql__closeE_109(i8*inreg%a,i8*inreg%b)#1 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=tail call fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL11mysql__closeE_69(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL15mysql__data__seekE_110(i8*inreg%a,i8*inreg%b)#1 gc"smlsharp"{
tail call fastcc void@_SMLLN18SMLSharp__SQL__MySQL15mysql__data__seekE_71(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*@_SMLLN18SMLSharp__SQL__MySQL15mysql__data__seekE_111(i8*inreg%a,i8*inreg%b)#1 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=tail call fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL15mysql__data__seekE_72(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL14mysql__num__rowsE_112(i8*inreg%a,i8*inreg%b)#1 gc"smlsharp"{
%c=bitcast i8*%b to i64*
%d=load i64,i64*%c,align 4
%e=tail call fastcc i64@_SMLLN18SMLSharp__SQL__MySQL14mysql__num__rowsE_74(i8*inreg%a,i64 inreg%d)
%f=tail call i8*@sml_alloc(i32 inreg 8)#0
%g=getelementptr inbounds i8,i8*%f,i64 -4
%h=bitcast i8*%g to i32*
store i32 8,i32*%h,align 4
%i=bitcast i8*%f to i64*
store i64%e,i64*%i,align 4
ret i8*%f
}
define internal fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL14mysql__num__rowsE_113(i8*inreg%a,i8*inreg%b)#1 gc"smlsharp"{
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=tail call fastcc i8*@_SMLLN18SMLSharp__SQL__MySQL14mysql__num__rowsE_75(i8*inreg%a,i32 inreg%d)
ret i8*%e
}
attributes#0={nounwind}
attributes#1={uwtable}
attributes#2={noreturn nounwind}
attributes#3={nounwind uwtable}
