@sml_check_flag=external local_unnamed_addr global i32
@_SMLZN19SMLSharp__SQL__Errors4ExecE=external local_unnamed_addr global i8*
@_SMLZN19SMLSharp__SQL__Errors6FormatE=external local_unnamed_addr global i8*
@_SMLZN19SMLSharp__SQL__Errors7ConnectE=external local_unnamed_addr global i8*
@_SMLZN4Char7isSpaceE=external local_unnamed_addr global i8*
@_SMLZN6TextIO6stdErrE=external local_unnamed_addr global i8*
@_SMLZN8UNIXODBC11COLUMN__NAMEE=external local_unnamed_addr global i32
@_SMLZN8UNIXODBC11NULL__HANDLEE=external local_unnamed_addr global i8*
@_SMLZN8UNIXODBC11SQL__NO__DATAE=external local_unnamed_addr global i32
@_SMLZN8UNIXODBC11SQL__SUCCESSE=external local_unnamed_addr global i32
@_SMLZN8UNIXODBC14SQL__HANDLE__DBCE=external local_unnamed_addr global i32
@_SMLZN8UNIXODBC14SQL__HANDLE__ENVE=external local_unnamed_addr global i32
@_SMLZN8UNIXODBC15SQL__HANDLE__STMTE=external local_unnamed_addr global i32
@_SMLZN8UNIXODBC17ATTR__ODBC__VERSIONE=external local_unnamed_addr global i32
@_SMLZN8UNIXODBC21SQL__SUCCESS__WITH__INFOE=external local_unnamed_addr global i32
@_SMLZN8UNIXODBC6C__CHARE=external local_unnamed_addr global i32
@_SMLZN8UNIXODBC8NULLABLEE=external local_unnamed_addr global i32
@_SMLZN8UNIXODBC8OV__ODBC3E=external local_unnamed_addr global i32
@_SMLZN8UNIXODBC9DATA__TYPEE=external local_unnamed_addr global i32
@_SMLZN8UNIXODBC9NULL__DATAE=external local_unnamed_addr global i32
@_SMLZ5Match=external unnamed_addr constant i8*
@_SMLZ9Subscript=external unnamed_addr constant i8*
@a=private unnamed_addr constant<{[4x i8],i32,i32,i8,[3x i8],i32}><{[4x i8]zeroinitializer,i32 -805306360,i32 6,i8 0,[3x i8]zeroinitializer,i32 0}>,align 8
@b=private unnamed_addr constant<{[4x i8],i32,[41x i8]}><{[4x i8]zeroinitializer,i32 -2147483607,[41x i8]c"src/sql/main/ODBCBackend.sml:59.19(1696)\00"}>,align 8
@c=private unnamed_addr constant<{[4x i8],i32,[18x i8]}><{[4x i8]zeroinitializer,i32 -2147483630,[18x i8]c"GetDiagRec failed\00"}>,align 8
@d=private unnamed_addr constant<{[4x i8],i32,[41x i8]}><{[4x i8]zeroinitializer,i32 -2147483607,[41x i8]c"src/sql/main/ODBCBackend.sml:77.17(2156)\00"}>,align 8
@e=private unnamed_addr constant<{[4x i8],i32,[13x i8]}><{[4x i8]zeroinitializer,i32 -2147483635,[13x i8]c"ODBC Error: \00"}>,align 8
@f=private unnamed_addr constant<{[4x i8],i32,[15x i8]}><{[4x i8]zeroinitializer,i32 -2147483633,[15x i8]c"ODBC Warning: \00"}>,align 8
@g=private unnamed_addr constant<{[4x i8],i32,[3x i8]}><{[4x i8]zeroinitializer,i32 -2147483645,[3x i8]c": \00"}>,align 8
@h=private unnamed_addr constant<{[4x i8],i32,[4x i8]}><{[4x i8]zeroinitializer,i32 -2147483644,[4x i8]c" - \00"}>,align 8
@i=private unnamed_addr constant<{[4x i8],i32,[2x i8]}><{[4x i8]zeroinitializer,i32 -2147483646,[2x i8]c"\0A\00"}>,align 8
@_SMLDL146=private global<{[4x i8],i32,i8*}><{[4x i8]zeroinitializer,i32 -1342177272,i8*null}>,align 8
@j=private unnamed_addr constant<{[4x i8],i32,i32,i8,[3x i8],i32}><{[4x i8]zeroinitializer,i32 -805306360,i32 248,i8 0,[3x i8]zeroinitializer,i32 0}>,align 8
@k=private unnamed_addr constant<{[4x i8],i32,[6x i8]}><{[4x i8]zeroinitializer,i32 -2147483642,[6x i8]c"01004\00"}>,align 8
@l=private unnamed_addr constant<{[4x i8],i32,[11x i8]}><{[4x i8]zeroinitializer,i32 -2147483637,[11x i8]c"SQLGetData\00"}>,align 8
@m=private unnamed_addr constant<{[4x i8],i32,i32,[4x i8],i32}><{[4x i8]zeroinitializer,i32 -805306360,i32 247,[4x i8]zeroinitializer,i32 0}>,align 8
@n=private unnamed_addr constant<{[4x i8],i32,[42x i8]}><{[4x i8]zeroinitializer,i32 -2147483606,[42x i8]c"src/sql/main/ODBCBackend.sml:136.24(4538)\00"}>,align 8
@o=private unnamed_addr constant<{[4x i8],i32,[48x i8]}><{[4x i8]zeroinitializer,i32 -2147483600,[48x i8]c"ODBC Error: SQLGetData: unknown indicator value\00"}>,align 8
@p=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN24SMLSharp__SQL__ODBCBackend8getValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN24SMLSharp__SQL__ODBCBackend8getValueE_333 to void(...)*),i32 -2147483647}>,align 8
@q=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i64)*@_SMLFN24SMLSharp__SQL__ODBCBackend5fetchE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN24SMLSharp__SQL__ODBCBackend5fetchE_334 to void(...)*),i32 -2147483647}>,align 8
@r=private unnamed_addr constant<{[4x i8],i32,[14x i8]}><{[4x i8]zeroinitializer,i32 -2147483634,[14x i8]c"SQLExecDirect\00"}>,align 8
@s=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN24SMLSharp__SQL__ODBCBackend9execQueryE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN24SMLSharp__SQL__ODBCBackend9execQueryE_335 to void(...)*),i32 -2147483647}>,align 8
@t=private unnamed_addr constant<{[4x i8],i32,[14x i8]}><{[4x i8]zeroinitializer,i32 -2147483634,[14x i8]c"SQLDisconnect\00"}>,align 8
@u=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i64)*@_SMLFN24SMLSharp__SQL__ODBCBackend9closeConnE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN24SMLSharp__SQL__ODBCBackend9closeConnE_336 to void(...)*),i32 -2147483647}>,align 8
@v=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i64)*@_SMLFN24SMLSharp__SQL__ODBCBackend8closeResE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN24SMLSharp__SQL__ODBCBackend8closeResE_337 to void(...)*),i32 -2147483647}>,align 8
@w=private unnamed_addr constant<{[4x i8],i32,[4x i8]}><{[4x i8]zeroinitializer,i32 -2147483644,[4x i8]c"INT\00"}>,align 8
@x=private unnamed_addr constant<{[4x i8],i32,[5x i8]}><{[4x i8]zeroinitializer,i32 -2147483643,[5x i8]c"TEXT\00"}>,align 8
@y=private unnamed_addr constant<{[4x i8],i32,[6x i8]}><{[4x i8]zeroinitializer,i32 -2147483642,[6x i8]c"FLOAT\00"}>,align 8
@z=private unnamed_addr constant<{[4x i8],i32,[17x i8]}><{[4x i8]zeroinitializer,i32 -2147483631,[17x i8]c"DOUBLE PRECISION\00"}>,align 8
@A=private unnamed_addr constant<{[4x i8],i32,[8x i8]}><{[4x i8]zeroinitializer,i32 -2147483640,[8x i8]c"NUMERIC\00"}>,align 8
@B=private unnamed_addr constant<{[4x i8],i32,[41x i8]}><{[4x i8]zeroinitializer,i32 -2147483607,[41x i8]c"src/sql/main/ODBCBackend.sml:181.6(5913)\00"}>,align 8
@C=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN24SMLSharp__SQL__ODBCBackend14columnTypeNameE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN24SMLSharp__SQL__ODBCBackend14columnTypeNameE_338 to void(...)*),i32 -2147483647}>,align 8
@D=private unnamed_addr constant<{[4x i8],i32,[42x i8]}><{[4x i8]zeroinitializer,i32 -2147483606,[42x i8]c"src/sql/main/ODBCBackend.sml:231.40(8487)\00"}>,align 8
@E=private unnamed_addr constant<{[4x i8],i32,[17x i8]}><{[4x i8]zeroinitializer,i32 -2147483631,[17x i8]c"SQL_UNKNOWN_TYPE\00"}>,align 8
@F=private unnamed_addr constant<{[4x i8],i32,i32,[4x i8],i8*,i32}><{[4x i8]zeroinitializer,i32 -805306352,i32 9,[4x i8]zeroinitializer,i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,[17x i8]}>,<{[4x i8],i32,[17x i8]}>*@E,i32 0,i32 0,i32 0),i32 8),i32 2}>,align 8
@G=private unnamed_addr constant<{[4x i8],i32,i32,[4x i8],i32}><{[4x i8]zeroinitializer,i32 -805306360,i32 4,[4x i8]zeroinitializer,i32 0}>,align 8
@H=private unnamed_addr constant<{[4x i8],i32,i32,[4x i8],i32}><{[4x i8]zeroinitializer,i32 -805306360,i32 2,[4x i8]zeroinitializer,i32 0}>,align 8
@I=private unnamed_addr constant<{[4x i8],i32,i32,[4x i8],i32}><{[4x i8]zeroinitializer,i32 -805306360,i32 6,[4x i8]zeroinitializer,i32 0}>,align 8
@J=private unnamed_addr constant<{[4x i8],i32,i32,[4x i8],i32}><{[4x i8]zeroinitializer,i32 -805306360,i32 5,[4x i8]zeroinitializer,i32 0}>,align 8
@K=private unnamed_addr constant<{[4x i8],i32,[9x i8]}><{[4x i8]zeroinitializer,i32 -2147483639,[9x i8]c"SQL_DATE\00"}>,align 8
@L=private unnamed_addr constant<{[4x i8],i32,i32,[4x i8],i8*,i32}><{[4x i8]zeroinitializer,i32 -805306352,i32 9,[4x i8]zeroinitializer,i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,[9x i8]}>,<{[4x i8],i32,[9x i8]}>*@K,i32 0,i32 0,i32 0),i32 8),i32 2}>,align 8
@M=private unnamed_addr constant<{[4x i8],i32,[11x i8]}><{[4x i8]zeroinitializer,i32 -2147483637,[11x i8]c"SQL_BINARY\00"}>,align 8
@N=private unnamed_addr constant<{[4x i8],i32,i32,[4x i8],i8*,i32}><{[4x i8]zeroinitializer,i32 -805306352,i32 9,[4x i8]zeroinitializer,i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,[11x i8]}>,<{[4x i8],i32,[11x i8]}>*@M,i32 0,i32 0,i32 0),i32 8),i32 2}>,align 8
@O=private unnamed_addr constant<{[4x i8],i32,[14x i8]}><{[4x i8]zeroinitializer,i32 -2147483634,[14x i8]c"SQL_VARBINARY\00"}>,align 8
@P=private unnamed_addr constant<{[4x i8],i32,i32,[4x i8],i8*,i32}><{[4x i8]zeroinitializer,i32 -805306352,i32 9,[4x i8]zeroinitializer,i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,[14x i8]}>,<{[4x i8],i32,[14x i8]}>*@O,i32 0,i32 0,i32 0),i32 8),i32 2}>,align 8
@Q=private unnamed_addr constant<{[4x i8],i32,[18x i8]}><{[4x i8]zeroinitializer,i32 -2147483630,[18x i8]c"SQL_LONGVARBINARY\00"}>,align 8
@R=private unnamed_addr constant<{[4x i8],i32,i32,[4x i8],i8*,i32}><{[4x i8]zeroinitializer,i32 -805306352,i32 9,[4x i8]zeroinitializer,i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,[18x i8]}>,<{[4x i8],i32,[18x i8]}>*@Q,i32 0,i32 0,i32 0),i32 8),i32 2}>,align 8
@S=private unnamed_addr constant<{[4x i8],i32,[11x i8]}><{[4x i8]zeroinitializer,i32 -2147483637,[11x i8]c"SQL_BIGINT\00"}>,align 8
@T=private unnamed_addr constant<{[4x i8],i32,i32,[4x i8],i8*,i32}><{[4x i8]zeroinitializer,i32 -805306352,i32 9,[4x i8]zeroinitializer,i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,[11x i8]}>,<{[4x i8],i32,[11x i8]}>*@S,i32 0,i32 0,i32 0),i32 8),i32 2}>,align 8
@U=private unnamed_addr constant<{[4x i8],i32,[12x i8]}><{[4x i8]zeroinitializer,i32 -2147483636,[12x i8]c"SQL_TINYINT\00"}>,align 8
@V=private unnamed_addr constant<{[4x i8],i32,i32,[4x i8],i8*,i32}><{[4x i8]zeroinitializer,i32 -805306352,i32 9,[4x i8]zeroinitializer,i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,[12x i8]}>,<{[4x i8],i32,[12x i8]}>*@U,i32 0,i32 0,i32 0),i32 8),i32 2}>,align 8
@W=private unnamed_addr constant<{[4x i8],i32,[8x i8]}><{[4x i8]zeroinitializer,i32 -2147483640,[8x i8]c"SQL_BIT\00"}>,align 8
@X=private unnamed_addr constant<{[4x i8],i32,i32,[4x i8],i8*,i32}><{[4x i8]zeroinitializer,i32 -805306352,i32 9,[4x i8]zeroinitializer,i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,[8x i8]}>,<{[4x i8],i32,[8x i8]}>*@W,i32 0,i32 0,i32 0),i32 8),i32 2}>,align 8
@Y=private unnamed_addr constant<{[4x i8],i32,[9x i8]}><{[4x i8]zeroinitializer,i32 -2147483639,[9x i8]c"SQL_TIME\00"}>,align 8
@Z=private unnamed_addr constant<{[4x i8],i32,i32,[4x i8],i8*,i32}><{[4x i8]zeroinitializer,i32 -805306352,i32 9,[4x i8]zeroinitializer,i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,[9x i8]}>,<{[4x i8],i32,[9x i8]}>*@Y,i32 0,i32 0,i32 0),i32 8),i32 2}>,align 8
@aa=private unnamed_addr constant<{[4x i8],i32,[14x i8]}><{[4x i8]zeroinitializer,i32 -2147483634,[14x i8]c"SQL_TIMESTAMP\00"}>,align 8
@ab=private unnamed_addr constant<{[4x i8],i32,i32,[4x i8],i8*,i32}><{[4x i8]zeroinitializer,i32 -805306352,i32 9,[4x i8]zeroinitializer,i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,[14x i8]}>,<{[4x i8],i32,[14x i8]}>*@aa,i32 0,i32 0,i32 0),i32 8),i32 2}>,align 8
@ac=private unnamed_addr constant<{[4x i8],i32,i32,[4x i8],i32}><{[4x i8]zeroinitializer,i32 -805306360,i32 7,[4x i8]zeroinitializer,i32 0}>,align 8
@ad=private unnamed_addr constant<{[4x i8],i32,[14x i8]}><{[4x i8]zeroinitializer,i32 -2147483634,[14x i8]c"SQL_TYPE_DATE\00"}>,align 8
@ae=private unnamed_addr constant<{[4x i8],i32,i32,[4x i8],i8*,i32}><{[4x i8]zeroinitializer,i32 -805306352,i32 9,[4x i8]zeroinitializer,i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,[14x i8]}>,<{[4x i8],i32,[14x i8]}>*@ad,i32 0,i32 0,i32 0),i32 8),i32 2}>,align 8
@af=private unnamed_addr constant<{[4x i8],i32,[14x i8]}><{[4x i8]zeroinitializer,i32 -2147483634,[14x i8]c"SQL_TYPE_TIME\00"}>,align 8
@ag=private unnamed_addr constant<{[4x i8],i32,i32,[4x i8],i8*,i32}><{[4x i8]zeroinitializer,i32 -805306352,i32 9,[4x i8]zeroinitializer,i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,[14x i8]}>,<{[4x i8],i32,[14x i8]}>*@af,i32 0,i32 0,i32 0),i32 8),i32 2}>,align 8
@ah=private unnamed_addr constant<{[4x i8],i32,i32,[4x i8],i32}><{[4x i8]zeroinitializer,i32 -805306360,i32 8,[4x i8]zeroinitializer,i32 0}>,align 8
@ai=private unnamed_addr constant<{[4x i8],i32,[9x i8]}><{[4x i8]zeroinitializer,i32 -2147483639,[9x i8]c"SQL_GUID\00"}>,align 8
@aj=private unnamed_addr constant<{[4x i8],i32,i32,[4x i8],i8*,i32}><{[4x i8]zeroinitializer,i32 -805306352,i32 9,[4x i8]zeroinitializer,i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,[9x i8]}>,<{[4x i8],i32,[9x i8]}>*@ai,i32 0,i32 0,i32 0),i32 8),i32 2}>,align 8
@ak=private unnamed_addr constant<{[4x i8],i32,[42x i8]}><{[4x i8]zeroinitializer,i32 -2147483606,[42x i8]c"src/sql/main/ODBCBackend.sml:234.35(8630)\00"}>,align 8
@al=private unnamed_addr constant<{[4x i8],i32,[42x i8]}><{[4x i8]zeroinitializer,i32 -2147483606,[42x i8]c"src/sql/main/ODBCBackend.sml:238.38(8823)\00"}>,align 8
@am=private unnamed_addr constant<{[4x i8],i32,[9x i8]}><{[4x i8]zeroinitializer,i32 -2147483639,[9x i8]c"SQLFetch\00"}>,align 8
@an=private unnamed_addr constant<{[4x i8],i32,[42x i8]}><{[4x i8]zeroinitializer,i32 -2147483606,[42x i8]c"src/sql/main/ODBCBackend.sml:270.24(9891)\00"}>,align 8
@ao=private unnamed_addr constant<{[4x i8],i32,[11x i8]}><{[4x i8]zeroinitializer,i32 -2147483637,[11x i8]c"TABLE,VIEW\00"}>,align 8
@ap=private unnamed_addr constant<{[4x i8],i32,[10x i8]}><{[4x i8]zeroinitializer,i32 -2147483638,[10x i8]c"SQLTables\00"}>,align 8
@aq=private unnamed_addr constant<{[4x i8],i32,[3x i8]}><{[4x i8]zeroinitializer,i32 -2147483645,[3x i8]c"\5C%\00"}>,align 8
@ar=private unnamed_addr constant<{[4x i8],i32,[3x i8]}><{[4x i8]zeroinitializer,i32 -2147483645,[3x i8]c"\5C\5C\00"}>,align 8
@as=private unnamed_addr constant<{[4x i8],i32,[3x i8]}><{[4x i8]zeroinitializer,i32 -2147483645,[3x i8]c"\5C_\00"}>,align 8
@at=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8)*@_SMLLL3tbl_288 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLL3tbl_341 to void(...)*),i32 -2147483647}>,align 8
@au=private unnamed_addr constant<{[4x i8],i32,[1x i8]}><{[4x i8]zeroinitializer,i32 -2147483647,[1x i8]zeroinitializer}>,align 8
@av=private unnamed_addr constant<{[4x i8],i32,[2x i8]}><{[4x i8]zeroinitializer,i32 -2147483646,[2x i8]c"%\00"}>,align 8
@aw=private unnamed_addr constant<{[4x i8],i32,[11x i8]}><{[4x i8]zeroinitializer,i32 -2147483637,[11x i8]c"SQLColumns\00"}>,align 8
@ax=private unnamed_addr constant<{[4x i8],i32,[14x i8]}><{[4x i8]zeroinitializer,i32 -2147483634,[14x i8]c"SQLFreeHandle\00"}>,align 8
@ay=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i64)*@_SMLFN24SMLSharp__SQL__ODBCBackend17getDatabaseSchemaE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN24SMLSharp__SQL__ODBCBackend17getDatabaseSchemaE_342 to void(...)*),i32 -2147483647}>,align 8
@az=private unnamed_addr constant<{[4x i8],i32,[14x i8]}><{[4x i8]zeroinitializer,i32 -2147483634,[14x i8]c"SQLSetEnvAttr\00"}>,align 8
@aA=private unnamed_addr constant<{[4x i8],i32,[15x i8]}><{[4x i8]zeroinitializer,i32 -2147483633,[15x i8]c"SQLAllocHandle\00"}>,align 8
@aB=private unnamed_addr constant<{[4x i8],i32,[43x i8]}><{[4x i8]zeroinitializer,i32 -2147483605,[43x i8]c"src/sql/main/ODBCBackend.sml:291.25(10615)\00"}>,align 8
@aC=private unnamed_addr constant<{[4x i8],i32,[30x i8]}><{[4x i8]zeroinitializer,i32 -2147483618,[30x i8]c"syntax error in server string\00"}>,align 8
@aD=private unnamed_addr constant<{[4x i8],i32,[11x i8]}><{[4x i8]zeroinitializer,i32 -2147483637,[11x i8]c"SQLConnect\00"}>,align 8
@aE=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN24SMLSharp__SQL__ODBCBackend7connectE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN24SMLSharp__SQL__ODBCBackend7connectE_343 to void(...)*),i32 -2147483647}>,align 8
@aF=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN24SMLSharp__SQL__ODBCBackend8intValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN24SMLSharp__SQL__ODBCBackend8intValueE_344 to void(...)*),i32 -2147483647}>,align 8
@aG=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN24SMLSharp__SQL__ODBCBackend11intInfValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN24SMLSharp__SQL__ODBCBackend11intInfValueE_345 to void(...)*),i32 -2147483647}>,align 8
@aH=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN24SMLSharp__SQL__ODBCBackend9wordValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN24SMLSharp__SQL__ODBCBackend9wordValueE_346 to void(...)*),i32 -2147483647}>,align 8
@aI=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN24SMLSharp__SQL__ODBCBackend9realValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN24SMLSharp__SQL__ODBCBackend9realValueE_347 to void(...)*),i32 -2147483647}>,align 8
@aJ=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN24SMLSharp__SQL__ODBCBackend11real32ValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN24SMLSharp__SQL__ODBCBackend11real32ValueE_348 to void(...)*),i32 -2147483647}>,align 8
@aK=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN24SMLSharp__SQL__ODBCBackend11stringValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN24SMLSharp__SQL__ODBCBackend11stringValueE_349 to void(...)*),i32 -2147483647}>,align 8
@aL=private unnamed_addr constant<{[4x i8],i32,[43x i8]}><{[4x i8]zeroinitializer,i32 -2147483605,[43x i8]c"src/sql/main/ODBCBackend.sml:306.26(11164)\00"}>,align 8
@aM=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN24SMLSharp__SQL__ODBCBackend9charValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN24SMLSharp__SQL__ODBCBackend9charValueE_350 to void(...)*),i32 -2147483647}>,align 8
@aN=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN24SMLSharp__SQL__ODBCBackend14timestampValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN24SMLSharp__SQL__ODBCBackend14timestampValueE_351 to void(...)*),i32 -2147483647}>,align 8
@aO=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN24SMLSharp__SQL__ODBCBackend12numericValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN24SMLSharp__SQL__ODBCBackend12numericValueE_352 to void(...)*),i32 -2147483647}>,align 8
@aP=private unnamed_addr constant<{[4x i8],i32,[43x i8]}><{[4x i8]zeroinitializer,i32 -2147483605,[43x i8]c"src/sql/main/ODBCBackend.sml:312.41(11497)\00"}>,align 8
@aQ=private unnamed_addr constant<{[4x i8],i32,i32,[4x i8],i32}><{[4x i8]zeroinitializer,i32 -805306360,i32 0,[4x i8]zeroinitializer,i32 0}>,align 8
@aR=private unnamed_addr constant<{[4x i8],i32,i32,[4x i8],i32}><{[4x i8]zeroinitializer,i32 -805306360,i32 1,[4x i8]zeroinitializer,i32 0}>,align 8
@aS=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN24SMLSharp__SQL__ODBCBackend9boolValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN24SMLSharp__SQL__ODBCBackend9boolValueE_353 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN24SMLSharp__SQL__ODBCBackend9execQueryE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@s,i64 0,i32 2)to i8*)
@_SMLZN24SMLSharp__SQL__ODBCBackend9closeConnE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@u,i64 0,i32 2)to i8*)
@_SMLZN24SMLSharp__SQL__ODBCBackend8closeResE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@v,i64 0,i32 2)to i8*)
@_SMLZN24SMLSharp__SQL__ODBCBackend17getDatabaseSchemaE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@ay,i64 0,i32 2)to i8*)
@_SMLZN24SMLSharp__SQL__ODBCBackend14columnTypeNameE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@C,i64 0,i32 2)to i8*)
@_SMLZN24SMLSharp__SQL__ODBCBackend7connectE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@aE,i64 0,i32 2)to i8*)
@_SMLZN24SMLSharp__SQL__ODBCBackend5fetchE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@q,i64 0,i32 2)to i8*)
@_SMLZN24SMLSharp__SQL__ODBCBackend8getValueE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@p,i64 0,i32 2)to i8*)
@_SMLZN24SMLSharp__SQL__ODBCBackend8intValueE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@aF,i64 0,i32 2)to i8*)
@_SMLZN24SMLSharp__SQL__ODBCBackend11intInfValueE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@aG,i64 0,i32 2)to i8*)
@_SMLZN24SMLSharp__SQL__ODBCBackend9wordValueE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@aH,i64 0,i32 2)to i8*)
@_SMLZN24SMLSharp__SQL__ODBCBackend9realValueE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@aI,i64 0,i32 2)to i8*)
@_SMLZN24SMLSharp__SQL__ODBCBackend11real32ValueE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@aJ,i64 0,i32 2)to i8*)
@_SMLZN24SMLSharp__SQL__ODBCBackend11stringValueE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@aK,i64 0,i32 2)to i8*)
@_SMLZN24SMLSharp__SQL__ODBCBackend9charValueE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@aM,i64 0,i32 2)to i8*)
@_SMLZN24SMLSharp__SQL__ODBCBackend9boolValueE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@aS,i64 0,i32 2)to i8*)
@_SMLZN24SMLSharp__SQL__ODBCBackend14timestampValueE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@aN,i64 0,i32 2)to i8*)
@_SMLZN24SMLSharp__SQL__ODBCBackend12numericValueE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@aO,i64 0,i32 2)to i8*)
@aT=private unnamed_addr global[2x i64][i64 1,i64 sub(i64 ptrtoint(i8*getelementptr inbounds(i8,i8*getelementptr inbounds(<{[4x i8],i32,i8*}>,<{[4x i8],i32,i8*}>*@_SMLDL146,i32 0,i32 0,i32 0),i32 8)to i64),i64 ptrtoint([2x i64]*@aT to i64))]
@_SML_ftabaf9d6dd29f1d6c57_ODBCBackend=external global i8
@aU=private unnamed_addr global i8 0
declare void@llvm.gcroot(i8**,i8*)#0
declare i8*@sml_alloc(i32 inreg)local_unnamed_addr#0
declare void@sml_check(i32 inreg)local_unnamed_addr
declare void@sml_gcroot(i8*,void()*,i8*,i8*)local_unnamed_addr#0
declare void@sml_matchcomp_bug()local_unnamed_addr
declare i32@sml_obj_equal(i8*inreg,i8*inreg)local_unnamed_addr#0
declare i32@sml_personality(...)#0
declare void@sml_raise(i8*inreg)local_unnamed_addr#1
declare void@sml_write(i8*inreg,i8**inreg,i8*inreg)local_unnamed_addr#0
declare i8*@_SMLFN10Word8Array5arrayE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN15Word8ArraySlice5sliceE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN20SMLSharp__SQL__Numeric10fromStringE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN22SMLSharp__SQL__TimeStamp10fromStringE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN4Byte12unpackStringE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN4List3mapE(i32 inreg,i32 inreg,i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN5Int3210fromStringE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN6IntInf10fromStringE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN6Real3210fromStringE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN6Real6410fromStringE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN6String1_ZE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN6String3strE(i8 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN6String6fieldsE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN6String9translateE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare void@_SMLFN6TextIO6outputE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN6Word324scanE(i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN8UNIXODBC10DisconnectE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN8UNIXODBC10ExecDirectE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN8UNIXODBC10FreeHandleE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN8UNIXODBC10GetDiagRecE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN8UNIXODBC10SetEnvAttrE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN8UNIXODBC11AllocHandleE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN8UNIXODBC5FetchE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN8UNIXODBC6TablesE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN8UNIXODBC7ColumnsE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN8UNIXODBC7ConnectE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN8UNIXODBC7GetDataE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN9StringCvt10scanStringE(i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main5c37eb24573fc5f9_StringCvt()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main9d24bdf03f9e5ec9_Real64()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main5d4c3ea7bd6f9540_IntInf()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main5148a836b3728be9_Int32()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_maind090c7e00210ea66_Word8ArraySlice()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_maincf621abe85ce2376_Word8Array()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main07023b79a356e238_Byte()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_maince7036f3433e1102_Char()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main03d87556ec7f64b2_List()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main629da514a4193178_Real32()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main1ef93e13728790b1_String()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main3446b7b079949ccf_text_io()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_mainf19563e8df97169c_Word32()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main5008f062fc7efcc4_SQLErrors()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main896833c3ab7437b2_UNIXODBC()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_mainf0940cae3cd2cc58_Numeric()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main117fff510d821df0_TimeStamp()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_load5c37eb24573fc5f9_StringCvt(i8*)local_unnamed_addr
declare void@_SML_load9d24bdf03f9e5ec9_Real64(i8*)local_unnamed_addr
declare void@_SML_load5d4c3ea7bd6f9540_IntInf(i8*)local_unnamed_addr
declare void@_SML_load5148a836b3728be9_Int32(i8*)local_unnamed_addr
declare void@_SML_loadd090c7e00210ea66_Word8ArraySlice(i8*)local_unnamed_addr
declare void@_SML_loadcf621abe85ce2376_Word8Array(i8*)local_unnamed_addr
declare void@_SML_load07023b79a356e238_Byte(i8*)local_unnamed_addr
declare void@_SML_loadce7036f3433e1102_Char(i8*)local_unnamed_addr
declare void@_SML_load03d87556ec7f64b2_List(i8*)local_unnamed_addr
declare void@_SML_load629da514a4193178_Real32(i8*)local_unnamed_addr
declare void@_SML_load1ef93e13728790b1_String(i8*)local_unnamed_addr
declare void@_SML_load3446b7b079949ccf_text_io(i8*)local_unnamed_addr
declare void@_SML_loadf19563e8df97169c_Word32(i8*)local_unnamed_addr
declare void@_SML_load5008f062fc7efcc4_SQLErrors(i8*)local_unnamed_addr
declare void@_SML_load896833c3ab7437b2_UNIXODBC(i8*)local_unnamed_addr
declare void@_SML_loadf0940cae3cd2cc58_Numeric(i8*)local_unnamed_addr
declare void@_SML_load117fff510d821df0_TimeStamp(i8*)local_unnamed_addr
define private void@_SML_tabbaf9d6dd29f1d6c57_ODBCBackend()#3{
unreachable
}
define void@_SML_loadaf9d6dd29f1d6c57_ODBCBackend(i8*%a)local_unnamed_addr#0{
%b=load i8,i8*@aU,align 1
%c=icmp eq i8%b,0
br i1%c,label%e,label%d
d:
ret void
e:
store i8 1,i8*@aU,align 1
tail call void@_SML_load5c37eb24573fc5f9_StringCvt(i8*%a)#0
tail call void@_SML_load9d24bdf03f9e5ec9_Real64(i8*%a)#0
tail call void@_SML_load5d4c3ea7bd6f9540_IntInf(i8*%a)#0
tail call void@_SML_load5148a836b3728be9_Int32(i8*%a)#0
tail call void@_SML_loadd090c7e00210ea66_Word8ArraySlice(i8*%a)#0
tail call void@_SML_loadcf621abe85ce2376_Word8Array(i8*%a)#0
tail call void@_SML_load07023b79a356e238_Byte(i8*%a)#0
tail call void@_SML_loadce7036f3433e1102_Char(i8*%a)#0
tail call void@_SML_load03d87556ec7f64b2_List(i8*%a)#0
tail call void@_SML_load629da514a4193178_Real32(i8*%a)#0
tail call void@_SML_load1ef93e13728790b1_String(i8*%a)#0
tail call void@_SML_load3446b7b079949ccf_text_io(i8*%a)#0
tail call void@_SML_loadf19563e8df97169c_Word32(i8*%a)#0
tail call void@_SML_load5008f062fc7efcc4_SQLErrors(i8*%a)#0
tail call void@_SML_load896833c3ab7437b2_UNIXODBC(i8*%a)#0
tail call void@_SML_loadf0940cae3cd2cc58_Numeric(i8*%a)#0
tail call void@_SML_load117fff510d821df0_TimeStamp(i8*%a)#0
tail call void@sml_gcroot(i8*%a,void()*@_SML_tabbaf9d6dd29f1d6c57_ODBCBackend,i8*@_SML_ftabaf9d6dd29f1d6c57_ODBCBackend,i8*bitcast([2x i64]*@aT to i8*))#0
ret void
}
define void@_SML_mainaf9d6dd29f1d6c57_ODBCBackend()local_unnamed_addr#2 gc"smlsharp"{
%a=load i8,i8*@aU,align 1
%b=and i8%a,2
%c=icmp eq i8%b,0
br i1%c,label%e,label%d
d:
ret void
e:
store i8 3,i8*@aU,align 1
tail call void@_SML_main5c37eb24573fc5f9_StringCvt()#2
tail call void@_SML_main9d24bdf03f9e5ec9_Real64()#2
tail call void@_SML_main5d4c3ea7bd6f9540_IntInf()#2
tail call void@_SML_main5148a836b3728be9_Int32()#2
tail call void@_SML_maind090c7e00210ea66_Word8ArraySlice()#2
tail call void@_SML_maincf621abe85ce2376_Word8Array()#2
tail call void@_SML_main07023b79a356e238_Byte()#2
tail call void@_SML_maince7036f3433e1102_Char()#2
tail call void@_SML_main03d87556ec7f64b2_List()#2
tail call void@_SML_main629da514a4193178_Real32()#2
tail call void@_SML_main1ef93e13728790b1_String()#2
tail call void@_SML_main3446b7b079949ccf_text_io()#2
tail call void@_SML_mainf19563e8df97169c_Word32()#2
tail call void@_SML_main5008f062fc7efcc4_SQLErrors()#2
tail call void@_SML_main896833c3ab7437b2_UNIXODBC()#2
tail call void@_SML_mainf0940cae3cd2cc58_Numeric()#2
tail call void@_SML_main117fff510d821df0_TimeStamp()#2
br label%d
}
define internal fastcc i8*@_SMLLLN24SMLSharp__SQL__ODBCBackend7getDiagE_134(i8*inreg%a)unnamed_addr#2 gc"smlsharp"{
m:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
store i8*%a,i8**%b,align 8
%g=load atomic i32,i32*@sml_check_flag unordered,align 4
%h=icmp eq i32%g,0
br i1%h,label%k,label%i
i:
call void@sml_check(i32 inreg%g)
%j=load i8*,i8**%b,align 8
br label%k
k:
%l=phi i8*[%j,%i],[%a,%m]
store i8*null,i8**%b,align 8
%n=bitcast i8*%l to i32*
%o=load i32,i32*%n,align 4
%p=getelementptr inbounds i8,i8*%l,i64 8
%q=bitcast i8*%p to i8**
%r=load i8*,i8**%q,align 8
%s=call fastcc i8*@_SMLFN10Word8Array5arrayE(i8*inreg bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,i8,[3x i8],i32}>,<{[4x i8],i32,i32,i8,[3x i8],i32}>*@a,i64 0,i32 2)to i8*))
store i8*%s,i8**%b,align 8
%t=call i8*@sml_alloc(i32 inreg 4)#0
%u=bitcast i8*%t to i32*
%v=getelementptr inbounds i8,i8*%t,i64 -4
%w=bitcast i8*%v to i32*
store i32 536870916,i32*%w,align 4
store i8*%t,i8**%d,align 8
store i32 0,i32*%u,align 4
%x=call fastcc i8*@_SMLFN10Word8Array5arrayE(i8*inreg bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,i8,[3x i8],i32}>,<{[4x i8],i32,i32,i8,[3x i8],i32}>*@j,i64 0,i32 2)to i8*))
store i8*%x,i8**%c,align 8
%y=call i8*@sml_alloc(i32 inreg 4)#0
%z=bitcast i8*%y to i32*
%A=getelementptr inbounds i8,i8*%y,i64 -4
%B=bitcast i8*%A to i32*
store i32 536870916,i32*%B,align 4
store i8*%y,i8**%e,align 8
store i32 0,i32*%z,align 4
%C=call fastcc i8*@_SMLFN8UNIXODBC10GetDiagRecE(i32 inreg 0)
%D=getelementptr inbounds i8,i8*%C,i64 16
%E=bitcast i8*%D to i8*(i8*,i8*)**
%F=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%E,align 8
%G=bitcast i8*%C to i8**
%H=load i8*,i8**%G,align 8
store i8*%H,i8**%f,align 8
%I=call i8*@sml_alloc(i32 inreg 68)#0
%J=bitcast i8*%I to i32*
%K=getelementptr inbounds i8,i8*%I,i64 -4
%L=bitcast i8*%K to i32*
store i32 1342177344,i32*%L,align 4
%M=getelementptr inbounds i8,i8*%I,i64 4
call void@llvm.memset.p0i8.i32(i8*%M,i8 0,i32 52,i1 false)
store i32%o,i32*%J,align 4
%N=getelementptr inbounds i8,i8*%I,i64 8
%O=bitcast i8*%N to i8**
store i8*%r,i8**%O,align 8
%P=getelementptr inbounds i8,i8*%I,i64 16
%Q=bitcast i8*%P to i32*
store i32 1,i32*%Q,align 4
%R=load i8*,i8**%b,align 8
%S=getelementptr inbounds i8,i8*%I,i64 24
%T=bitcast i8*%S to i8**
store i8*%R,i8**%T,align 8
%U=load i8*,i8**%d,align 8
%V=getelementptr inbounds i8,i8*%I,i64 32
%W=bitcast i8*%V to i8**
store i8*%U,i8**%W,align 8
%X=load i8*,i8**%c,align 8
%Y=getelementptr inbounds i8,i8*%I,i64 40
%Z=bitcast i8*%Y to i8**
store i8*%X,i8**%Z,align 8
%aa=getelementptr inbounds i8,i8*%I,i64 48
%ab=bitcast i8*%aa to i32*
store i32 248,i32*%ab,align 4
%ac=load i8*,i8**%e,align 8
%ad=getelementptr inbounds i8,i8*%I,i64 56
%ae=bitcast i8*%ad to i8**
store i8*%ac,i8**%ae,align 8
%af=getelementptr inbounds i8,i8*%I,i64 64
%ag=bitcast i8*%af to i32*
store i32 184,i32*%ag,align 4
%ah=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%ai=call fastcc i8*%F(i8*inreg%ah,i8*inreg%I)
%aj=bitcast i8*%ai to i32*
%ak=load i32,i32*%aj,align 4
%al=load i32,i32*@_SMLZN8UNIXODBC21SQL__SUCCESS__WITH__INFOE,align 4
%am=icmp eq i32%ak,%al
br i1%am,label%an,label%bk
an:
store i8*null,i8**%c,align 8
%ao=bitcast i8**%e to i32**
%ap=load i32*,i32**%ao,align 8
%aq=load i32,i32*%ap,align 4
%ar=add nsw i32%aq,1
%as=call i8*@sml_alloc(i32 inreg 12)#0
%at=bitcast i8*%as to i32*
%au=getelementptr inbounds i8,i8*%as,i64 -4
%av=bitcast i8*%au to i32*
store i32 1342177288,i32*%av,align 4
%aw=getelementptr inbounds i8,i8*%as,i64 5
call void@llvm.memset.p0i8.i32(i8*%aw,i8 0,i32 3,i1 false)
store i32%ar,i32*%at,align 4
%ax=getelementptr inbounds i8,i8*%as,i64 4
store i8 0,i8*%ax,align 1
%ay=getelementptr inbounds i8,i8*%as,i64 8
%az=bitcast i8*%ay to i32*
store i32 0,i32*%az,align 4
%aA=call fastcc i8*@_SMLFN10Word8Array5arrayE(i8*inreg%as)
store i8*%aA,i8**%c,align 8
%aB=call fastcc i8*@_SMLFN8UNIXODBC10GetDiagRecE(i32 inreg 0)
%aC=getelementptr inbounds i8,i8*%aB,i64 16
%aD=bitcast i8*%aC to i8*(i8*,i8*)**
%aE=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aD,align 8
%aF=bitcast i8*%aB to i8**
%aG=load i8*,i8**%aF,align 8
store i8*%aG,i8**%f,align 8
%aH=load i32*,i32**%ao,align 8
%aI=load i32,i32*%aH,align 4
%aJ=add nsw i32%aI,1
%aK=call i8*@sml_alloc(i32 inreg 68)#0
%aL=bitcast i8*%aK to i32*
%aM=getelementptr inbounds i8,i8*%aK,i64 -4
%aN=bitcast i8*%aM to i32*
store i32 1342177344,i32*%aN,align 4
%aO=getelementptr inbounds i8,i8*%aK,i64 4
call void@llvm.memset.p0i8.i32(i8*%aO,i8 0,i32 52,i1 false)
store i32%o,i32*%aL,align 4
%aP=getelementptr inbounds i8,i8*%aK,i64 8
%aQ=bitcast i8*%aP to i8**
store i8*%r,i8**%aQ,align 8
%aR=getelementptr inbounds i8,i8*%aK,i64 16
%aS=bitcast i8*%aR to i32*
store i32 1,i32*%aS,align 4
%aT=load i8*,i8**%b,align 8
%aU=getelementptr inbounds i8,i8*%aK,i64 24
%aV=bitcast i8*%aU to i8**
store i8*%aT,i8**%aV,align 8
%aW=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aX=getelementptr inbounds i8,i8*%aK,i64 32
%aY=bitcast i8*%aX to i8**
store i8*%aW,i8**%aY,align 8
%aZ=load i8*,i8**%c,align 8
%a0=getelementptr inbounds i8,i8*%aK,i64 40
%a1=bitcast i8*%a0 to i8**
store i8*%aZ,i8**%a1,align 8
%a2=getelementptr inbounds i8,i8*%aK,i64 48
%a3=bitcast i8*%a2 to i32*
store i32%aJ,i32*%a3,align 4
%a4=load i8*,i8**%e,align 8
%a5=getelementptr inbounds i8,i8*%aK,i64 56
%a6=bitcast i8*%a5 to i8**
store i8*%a4,i8**%a6,align 8
%a7=getelementptr inbounds i8,i8*%aK,i64 64
%a8=bitcast i8*%a7 to i32*
store i32 184,i32*%a8,align 4
%a9=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%ba=call fastcc i8*%aE(i8*inreg%a9,i8*inreg%aK)
%bb=bitcast i8*%ba to i32*
%bc=load i32,i32*%bb,align 4
%bd=call i8*@sml_alloc(i32 inreg 20)#0
%be=bitcast i8*%bd to i32*
%bf=getelementptr inbounds i8,i8*%bd,i64 -4
%bg=bitcast i8*%bf to i32*
store i32 1342177296,i32*%bg,align 4
%bh=getelementptr inbounds i8,i8*%bd,i64 4
%bi=bitcast i8*%bh to i32*
store i32 0,i32*%bi,align 1
store i32%bc,i32*%be,align 4
%bj=load i8*,i8**%c,align 8
br label%bs
bk:
store i8*null,i8**%d,align 8
%bl=call i8*@sml_alloc(i32 inreg 20)#0
%bm=bitcast i8*%bl to i32*
%bn=getelementptr inbounds i8,i8*%bl,i64 -4
%bo=bitcast i8*%bn to i32*
store i32 1342177296,i32*%bo,align 4
%bp=getelementptr inbounds i8,i8*%bl,i64 4
%bq=bitcast i8*%bp to i32*
store i32 0,i32*%bq,align 1
store i32%ak,i32*%bm,align 4
%br=load i8*,i8**%c,align 8
br label%bs
bs:
%bt=phi i8*[%bl,%bk],[%bd,%an]
%bu=phi i8*[%br,%bk],[%bj,%an]
%bv=phi i32[%ak,%bk],[%bc,%an]
%bw=getelementptr inbounds i8,i8*%bt,i64 8
%bx=bitcast i8*%bw to i8**
store i8*%bu,i8**%bx,align 8
%by=getelementptr inbounds i8,i8*%bt,i64 16
%bz=bitcast i8*%by to i32*
store i32 2,i32*%bz,align 4
store i8*%bu,i8**%c,align 8
%bA=load i32,i32*@_SMLZN8UNIXODBC11SQL__SUCCESSE,align 4
%bB=icmp eq i32%bv,%bA
br i1%bB,label%bC,label%ct
bC:
%bD=call i8*@sml_alloc(i32 inreg 28)#0
%bE=getelementptr inbounds i8,i8*%bD,i64 -4
%bF=bitcast i8*%bE to i32*
store i32 1342177304,i32*%bF,align 4
%bG=getelementptr inbounds i8,i8*%bD,i64 12
%bH=bitcast i8*%bG to i32*
store i32 0,i32*%bH,align 1
%bI=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%bJ=bitcast i8*%bD to i8**
store i8*%bI,i8**%bJ,align 8
%bK=getelementptr inbounds i8,i8*%bD,i64 8
%bL=bitcast i8*%bK to i32*
store i32 0,i32*%bL,align 4
%bM=getelementptr inbounds i8,i8*%bD,i64 16
%bN=bitcast i8*%bM to i8**
store i8*bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@J,i64 0,i32 2)to i8*),i8**%bN,align 8
%bO=getelementptr inbounds i8,i8*%bD,i64 24
%bP=bitcast i8*%bO to i32*
store i32 5,i32*%bP,align 4
%bQ=call fastcc i8*@_SMLFN15Word8ArraySlice5sliceE(i8*inreg%bD)
%bR=call fastcc i8*@_SMLFN4Byte12unpackStringE(i8*inreg%bQ)
store i8*%bR,i8**%b,align 8
%bS=bitcast i8**%e to i32**
%bT=load i32*,i32**%bS,align 8
store i8*null,i8**%e,align 8
%bU=load i32,i32*%bT,align 4
%bV=call i8*@sml_alloc(i32 inreg 12)#0
%bW=getelementptr inbounds i8,i8*%bV,i64 -4
%bX=bitcast i8*%bW to i32*
store i32 1342177288,i32*%bX,align 4
store i8*%bV,i8**%d,align 8
%bY=getelementptr inbounds i8,i8*%bV,i64 4
%bZ=bitcast i8*%bY to i32*
store i32 0,i32*%bZ,align 1
%b0=bitcast i8*%bV to i32*
store i32%bU,i32*%b0,align 4
%b1=getelementptr inbounds i8,i8*%bV,i64 8
%b2=bitcast i8*%b1 to i32*
store i32 0,i32*%b2,align 4
%b3=call i8*@sml_alloc(i32 inreg 28)#0
%b4=getelementptr inbounds i8,i8*%b3,i64 -4
%b5=bitcast i8*%b4 to i32*
store i32 1342177304,i32*%b5,align 4
%b6=getelementptr inbounds i8,i8*%b3,i64 12
%b7=bitcast i8*%b6 to i32*
store i32 0,i32*%b7,align 1
%b8=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%b9=bitcast i8*%b3 to i8**
store i8*%b8,i8**%b9,align 8
%ca=getelementptr inbounds i8,i8*%b3,i64 8
%cb=bitcast i8*%ca to i32*
store i32 0,i32*%cb,align 4
%cc=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%cd=getelementptr inbounds i8,i8*%b3,i64 16
%ce=bitcast i8*%cd to i8**
store i8*%cc,i8**%ce,align 8
%cf=getelementptr inbounds i8,i8*%b3,i64 24
%cg=bitcast i8*%cf to i32*
store i32 5,i32*%cg,align 4
%ch=call fastcc i8*@_SMLFN15Word8ArraySlice5sliceE(i8*inreg%b3)
%ci=call fastcc i8*@_SMLFN4Byte12unpackStringE(i8*inreg%ch)
store i8*%ci,i8**%c,align 8
%cj=call i8*@sml_alloc(i32 inreg 20)#0
%ck=getelementptr inbounds i8,i8*%cj,i64 -4
%cl=bitcast i8*%ck to i32*
store i32 1342177296,i32*%cl,align 4
%cm=load i8*,i8**%c,align 8
%cn=bitcast i8*%cj to i8**
store i8*%cm,i8**%cn,align 8
%co=load i8*,i8**%b,align 8
%cp=getelementptr inbounds i8,i8*%cj,i64 8
%cq=bitcast i8*%cp to i8**
store i8*%co,i8**%cq,align 8
%cr=getelementptr inbounds i8,i8*%cj,i64 16
%cs=bitcast i8*%cr to i32*
store i32 3,i32*%cs,align 4
ret i8*%cj
ct:
store i8*null,i8**%c,align 8
store i8*null,i8**%e,align 8
%cu=load i8*,i8**@_SMLZN19SMLSharp__SQL__Errors4ExecE,align 8
store i8*%cu,i8**%b,align 8
%cv=call i8*@sml_alloc(i32 inreg 28)#0
%cw=getelementptr inbounds i8,i8*%cv,i64 -4
%cx=bitcast i8*%cw to i32*
store i32 1342177304,i32*%cx,align 4
store i8*%cv,i8**%c,align 8
%cy=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%cz=bitcast i8*%cv to i8**
store i8*%cy,i8**%cz,align 8
%cA=getelementptr inbounds i8,i8*%cv,i64 8
%cB=bitcast i8*%cA to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[41x i8]}>,<{[4x i8],i32,[41x i8]}>*@b,i64 0,i32 2,i64 0),i8**%cB,align 8
%cC=getelementptr inbounds i8,i8*%cv,i64 16
%cD=bitcast i8*%cC to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[18x i8]}>,<{[4x i8],i32,[18x i8]}>*@c,i64 0,i32 2,i64 0),i8**%cD,align 8
%cE=getelementptr inbounds i8,i8*%cv,i64 24
%cF=bitcast i8*%cE to i32*
store i32 7,i32*%cF,align 4
%cG=call i8*@sml_alloc(i32 inreg 60)#0
%cH=getelementptr inbounds i8,i8*%cG,i64 -4
%cI=bitcast i8*%cH to i32*
store i32 1342177336,i32*%cI,align 4
%cJ=getelementptr inbounds i8,i8*%cG,i64 56
%cK=bitcast i8*%cJ to i32*
store i32 1,i32*%cK,align 4
%cL=load i8*,i8**%c,align 8
%cM=bitcast i8*%cG to i8**
store i8*%cL,i8**%cM,align 8
call void@sml_raise(i8*inreg%cG)#1
unreachable
}
define internal fastcc void@_SMLLLN24SMLSharp__SQL__ODBCBackend11checkReturnE_144(i8*inreg%a,i8*inreg%b,i32 inreg%c)unnamed_addr#2 gc"smlsharp"{
n:
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
store i8*%a,i8**%d,align 8
store i8*%b,i8**%e,align 8
%h=load atomic i32,i32*@sml_check_flag unordered,align 4
%i=icmp eq i32%h,0
br i1%i,label%l,label%j
j:
call void@sml_check(i32 inreg%h)
%k=load i8*,i8**%e,align 8
br label%l
l:
%m=phi i8*[%k,%j],[%b,%n]
store i8*null,i8**%e,align 8
%o=load i32,i32*@_SMLZN8UNIXODBC11SQL__SUCCESSE,align 4
%p=icmp eq i32%o,%c
br i1%p,label%q,label%r
q:
ret void
r:
%s=load i32,i32*@_SMLZN8UNIXODBC21SQL__SUCCESS__WITH__INFOE,align 4
%t=icmp eq i32%s,%c
%u=call fastcc i8*@_SMLLLN24SMLSharp__SQL__ODBCBackend7getDiagE_134(i8*inreg%m)
%v=getelementptr inbounds i8,i8*%u,i64 8
%w=bitcast i8*%v to i8**
%x=load i8*,i8**%w,align 8
store i8*%x,i8**%e,align 8
%y=bitcast i8*%u to i8**
%z=load i8*,i8**%y,align 8
store i8*%z,i8**%f,align 8
br i1%t,label%A,label%aW
A:
%B=load i8*,i8**@_SMLZN6TextIO6stdErrE,align 8
store i8*%B,i8**%g,align 8
%C=call i8*@sml_alloc(i32 inreg 20)#0
%D=getelementptr inbounds i8,i8*%C,i64 -4
%E=bitcast i8*%D to i32*
store i32 1342177296,i32*%E,align 4
%F=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%G=bitcast i8*%C to i8**
store i8*%F,i8**%G,align 8
%H=getelementptr inbounds i8,i8*%C,i64 8
%I=bitcast i8*%H to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[3x i8]}>,<{[4x i8],i32,[3x i8]}>*@g,i64 0,i32 2,i64 0),i8**%I,align 8
%J=getelementptr inbounds i8,i8*%C,i64 16
%K=bitcast i8*%J to i32*
store i32 3,i32*%K,align 4
%L=call fastcc i8*@_SMLFN6String1_ZE(i8*inreg%C)
store i8*%L,i8**%d,align 8
%M=call i8*@sml_alloc(i32 inreg 20)#0
%N=getelementptr inbounds i8,i8*%M,i64 -4
%O=bitcast i8*%N to i32*
store i32 1342177296,i32*%O,align 4
%P=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%Q=bitcast i8*%M to i8**
store i8*%P,i8**%Q,align 8
%R=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%S=getelementptr inbounds i8,i8*%M,i64 8
%T=bitcast i8*%S to i8**
store i8*%R,i8**%T,align 8
%U=getelementptr inbounds i8,i8*%M,i64 16
%V=bitcast i8*%U to i32*
store i32 3,i32*%V,align 4
%W=call fastcc i8*@_SMLFN6String1_ZE(i8*inreg%M)
store i8*%W,i8**%d,align 8
%X=call i8*@sml_alloc(i32 inreg 20)#0
%Y=getelementptr inbounds i8,i8*%X,i64 -4
%Z=bitcast i8*%Y to i32*
store i32 1342177296,i32*%Z,align 4
%aa=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%ab=bitcast i8*%X to i8**
store i8*%aa,i8**%ab,align 8
%ac=getelementptr inbounds i8,i8*%X,i64 8
%ad=bitcast i8*%ac to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[4x i8]}>,<{[4x i8],i32,[4x i8]}>*@h,i64 0,i32 2,i64 0),i8**%ad,align 8
%ae=getelementptr inbounds i8,i8*%X,i64 16
%af=bitcast i8*%ae to i32*
store i32 3,i32*%af,align 4
%ag=call fastcc i8*@_SMLFN6String1_ZE(i8*inreg%X)
store i8*%ag,i8**%d,align 8
%ah=call i8*@sml_alloc(i32 inreg 20)#0
%ai=getelementptr inbounds i8,i8*%ah,i64 -4
%aj=bitcast i8*%ai to i32*
store i32 1342177296,i32*%aj,align 4
%ak=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%al=bitcast i8*%ah to i8**
store i8*%ak,i8**%al,align 8
%am=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%an=getelementptr inbounds i8,i8*%ah,i64 8
%ao=bitcast i8*%an to i8**
store i8*%am,i8**%ao,align 8
%ap=getelementptr inbounds i8,i8*%ah,i64 16
%aq=bitcast i8*%ap to i32*
store i32 3,i32*%aq,align 4
%ar=call fastcc i8*@_SMLFN6String1_ZE(i8*inreg%ah)
store i8*%ar,i8**%d,align 8
%as=call i8*@sml_alloc(i32 inreg 20)#0
%at=getelementptr inbounds i8,i8*%as,i64 -4
%au=bitcast i8*%at to i32*
store i32 1342177296,i32*%au,align 4
%av=bitcast i8*%as to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[15x i8]}>,<{[4x i8],i32,[15x i8]}>*@f,i64 0,i32 2,i64 0),i8**%av,align 8
%aw=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%ax=getelementptr inbounds i8,i8*%as,i64 8
%ay=bitcast i8*%ax to i8**
store i8*%aw,i8**%ay,align 8
%az=getelementptr inbounds i8,i8*%as,i64 16
%aA=bitcast i8*%az to i32*
store i32 3,i32*%aA,align 4
%aB=call fastcc i8*@_SMLFN6String1_ZE(i8*inreg%as)
store i8*%aB,i8**%d,align 8
%aC=call i8*@sml_alloc(i32 inreg 20)#0
%aD=getelementptr inbounds i8,i8*%aC,i64 -4
%aE=bitcast i8*%aD to i32*
store i32 1342177296,i32*%aE,align 4
%aF=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aG=bitcast i8*%aC to i8**
store i8*%aF,i8**%aG,align 8
%aH=getelementptr inbounds i8,i8*%aC,i64 8
%aI=bitcast i8*%aH to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[2x i8]}>,<{[4x i8],i32,[2x i8]}>*@i,i64 0,i32 2,i64 0),i8**%aI,align 8
%aJ=getelementptr inbounds i8,i8*%aC,i64 16
%aK=bitcast i8*%aJ to i32*
store i32 3,i32*%aK,align 4
%aL=call fastcc i8*@_SMLFN6String1_ZE(i8*inreg%aC)
store i8*%aL,i8**%d,align 8
%aM=call i8*@sml_alloc(i32 inreg 20)#0
%aN=getelementptr inbounds i8,i8*%aM,i64 -4
%aO=bitcast i8*%aN to i32*
store i32 1342177296,i32*%aO,align 4
%aP=load i8*,i8**%g,align 8
%aQ=bitcast i8*%aM to i8**
store i8*%aP,i8**%aQ,align 8
%aR=load i8*,i8**%d,align 8
%aS=getelementptr inbounds i8,i8*%aM,i64 8
%aT=bitcast i8*%aS to i8**
store i8*%aR,i8**%aT,align 8
%aU=getelementptr inbounds i8,i8*%aM,i64 16
%aV=bitcast i8*%aU to i32*
store i32 3,i32*%aV,align 4
tail call fastcc void@_SMLFN6TextIO6outputE(i8*inreg%aM)
ret void
aW:
%aX=load i8*,i8**@_SMLZN19SMLSharp__SQL__Errors4ExecE,align 8
store i8*%aX,i8**%g,align 8
%aY=call i8*@sml_alloc(i32 inreg 20)#0
%aZ=getelementptr inbounds i8,i8*%aY,i64 -4
%a0=bitcast i8*%aZ to i32*
store i32 1342177296,i32*%a0,align 4
%a1=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%a2=bitcast i8*%aY to i8**
store i8*%a1,i8**%a2,align 8
%a3=getelementptr inbounds i8,i8*%aY,i64 8
%a4=bitcast i8*%a3 to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[3x i8]}>,<{[4x i8],i32,[3x i8]}>*@g,i64 0,i32 2,i64 0),i8**%a4,align 8
%a5=getelementptr inbounds i8,i8*%aY,i64 16
%a6=bitcast i8*%a5 to i32*
store i32 3,i32*%a6,align 4
%a7=call fastcc i8*@_SMLFN6String1_ZE(i8*inreg%aY)
store i8*%a7,i8**%d,align 8
%a8=call i8*@sml_alloc(i32 inreg 20)#0
%a9=getelementptr inbounds i8,i8*%a8,i64 -4
%ba=bitcast i8*%a9 to i32*
store i32 1342177296,i32*%ba,align 4
%bb=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%bc=bitcast i8*%a8 to i8**
store i8*%bb,i8**%bc,align 8
%bd=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%be=getelementptr inbounds i8,i8*%a8,i64 8
%bf=bitcast i8*%be to i8**
store i8*%bd,i8**%bf,align 8
%bg=getelementptr inbounds i8,i8*%a8,i64 16
%bh=bitcast i8*%bg to i32*
store i32 3,i32*%bh,align 4
%bi=call fastcc i8*@_SMLFN6String1_ZE(i8*inreg%a8)
store i8*%bi,i8**%d,align 8
%bj=call i8*@sml_alloc(i32 inreg 20)#0
%bk=getelementptr inbounds i8,i8*%bj,i64 -4
%bl=bitcast i8*%bk to i32*
store i32 1342177296,i32*%bl,align 4
%bm=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%bn=bitcast i8*%bj to i8**
store i8*%bm,i8**%bn,align 8
%bo=getelementptr inbounds i8,i8*%bj,i64 8
%bp=bitcast i8*%bo to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[4x i8]}>,<{[4x i8],i32,[4x i8]}>*@h,i64 0,i32 2,i64 0),i8**%bp,align 8
%bq=getelementptr inbounds i8,i8*%bj,i64 16
%br=bitcast i8*%bq to i32*
store i32 3,i32*%br,align 4
%bs=call fastcc i8*@_SMLFN6String1_ZE(i8*inreg%bj)
store i8*%bs,i8**%d,align 8
%bt=call i8*@sml_alloc(i32 inreg 20)#0
%bu=getelementptr inbounds i8,i8*%bt,i64 -4
%bv=bitcast i8*%bu to i32*
store i32 1342177296,i32*%bv,align 4
%bw=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%bx=bitcast i8*%bt to i8**
store i8*%bw,i8**%bx,align 8
%by=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%bz=getelementptr inbounds i8,i8*%bt,i64 8
%bA=bitcast i8*%bz to i8**
store i8*%by,i8**%bA,align 8
%bB=getelementptr inbounds i8,i8*%bt,i64 16
%bC=bitcast i8*%bB to i32*
store i32 3,i32*%bC,align 4
%bD=call fastcc i8*@_SMLFN6String1_ZE(i8*inreg%bt)
store i8*%bD,i8**%d,align 8
%bE=call i8*@sml_alloc(i32 inreg 20)#0
%bF=getelementptr inbounds i8,i8*%bE,i64 -4
%bG=bitcast i8*%bF to i32*
store i32 1342177296,i32*%bG,align 4
%bH=bitcast i8*%bE to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[13x i8]}>,<{[4x i8],i32,[13x i8]}>*@e,i64 0,i32 2,i64 0),i8**%bH,align 8
%bI=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%bJ=getelementptr inbounds i8,i8*%bE,i64 8
%bK=bitcast i8*%bJ to i8**
store i8*%bI,i8**%bK,align 8
%bL=getelementptr inbounds i8,i8*%bE,i64 16
%bM=bitcast i8*%bL to i32*
store i32 3,i32*%bM,align 4
%bN=call fastcc i8*@_SMLFN6String1_ZE(i8*inreg%bE)
store i8*%bN,i8**%d,align 8
%bO=call i8*@sml_alloc(i32 inreg 28)#0
%bP=getelementptr inbounds i8,i8*%bO,i64 -4
%bQ=bitcast i8*%bP to i32*
store i32 1342177304,i32*%bQ,align 4
store i8*%bO,i8**%e,align 8
%bR=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%bS=bitcast i8*%bO to i8**
store i8*%bR,i8**%bS,align 8
%bT=getelementptr inbounds i8,i8*%bO,i64 8
%bU=bitcast i8*%bT to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[41x i8]}>,<{[4x i8],i32,[41x i8]}>*@d,i64 0,i32 2,i64 0),i8**%bU,align 8
%bV=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%bW=getelementptr inbounds i8,i8*%bO,i64 16
%bX=bitcast i8*%bW to i8**
store i8*%bV,i8**%bX,align 8
%bY=getelementptr inbounds i8,i8*%bO,i64 24
%bZ=bitcast i8*%bY to i32*
store i32 7,i32*%bZ,align 4
%b0=call i8*@sml_alloc(i32 inreg 60)#0
%b1=getelementptr inbounds i8,i8*%b0,i64 -4
%b2=bitcast i8*%b1 to i32*
store i32 1342177336,i32*%b2,align 4
%b3=getelementptr inbounds i8,i8*%b0,i64 56
%b4=bitcast i8*%b3 to i32*
store i32 1,i32*%b4,align 4
%b5=load i8*,i8**%e,align 8
%b6=bitcast i8*%b0 to i8**
store i8*%b5,i8**%b6,align 8
call void@sml_raise(i8*inreg%b0)#1
unreachable
}
define internal fastcc i8*@_SMLLLN24SMLSharp__SQL__ODBCBackend7getDataE_154(i8*inreg%a)unnamed_addr#2 gc"smlsharp"{
l:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%b,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%j,label%h
h:
call void@sml_check(i32 inreg%f)
%i=load i8*,i8**%b,align 8
br label%j
j:
%k=phi i8*[%i,%h],[%a,%l]
store i8*null,i8**%b,align 8
%m=bitcast i8*%k to i8**
%n=load i8*,i8**%m,align 8
%o=getelementptr inbounds i8,i8*%k,i64 8
%p=bitcast i8*%o to i32*
%q=load i32,i32*%p,align 4
%r=call fastcc i8*@_SMLFN10Word8Array5arrayE(i8*inreg bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,i8,[3x i8],i32}>,<{[4x i8],i32,i32,i8,[3x i8],i32}>*@j,i64 0,i32 2)to i8*))
store i8*%r,i8**%b,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 536870916,i32*%v,align 4
store i8*%s,i8**%d,align 8
store i32 0,i32*%t,align 4
%w=call fastcc i8*@_SMLFN8UNIXODBC7GetDataE(i32 inreg 0)
%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=load i32,i32*@_SMLZN8UNIXODBC6C__CHARE,align 4
%D=call i8*@sml_alloc(i32 inreg 44)#0
%E=getelementptr inbounds i8,i8*%D,i64 -4
%F=bitcast i8*%E to i32*
store i32 1342177320,i32*%F,align 4
%G=getelementptr inbounds i8,i8*%D,i64 28
%H=bitcast i8*%G to i32*
store i32 0,i32*%H,align 1
%I=bitcast i8*%D to i8**
store i8*%n,i8**%I,align 8
%J=getelementptr inbounds i8,i8*%D,i64 8
%K=bitcast i8*%J to i32*
store i32%q,i32*%K,align 4
%L=getelementptr inbounds i8,i8*%D,i64 12
%M=bitcast i8*%L to i32*
store i32%C,i32*%M,align 4
%N=load i8*,i8**%b,align 8
%O=getelementptr inbounds i8,i8*%D,i64 16
%P=bitcast i8*%O to i8**
store i8*%N,i8**%P,align 8
%Q=getelementptr inbounds i8,i8*%D,i64 24
%R=bitcast i8*%Q to i32*
store i32 248,i32*%R,align 4
%S=load i8*,i8**%d,align 8
%T=getelementptr inbounds i8,i8*%D,i64 32
%U=bitcast i8*%T to i8**
store i8*%S,i8**%U,align 8
%V=getelementptr inbounds i8,i8*%D,i64 40
%W=bitcast i8*%V to i32*
store i32 20,i32*%W,align 4
%X=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%Y=call fastcc i8*%z(i8*inreg%X,i8*inreg%D)
%Z=bitcast i8*%Y to i32*
%aa=load i32,i32*%Z,align 4
%ab=load i32,i32*@_SMLZN8UNIXODBC11SQL__SUCCESSE,align 4
%ac=icmp eq i32%aa,%ab
br i1%ac,label%ad,label%bd
ad:
%ae=bitcast i8**%d to i32**
%af=load i32*,i32**%ae,align 8
%ag=load i32,i32*%af,align 4
%ah=load i32,i32*@_SMLZN8UNIXODBC9NULL__DATAE,align 4
%ai=icmp eq i32%ag,%ah
br i1%ai,label%aj,label%ak
aj:
ret i8*null
ak:
%al=icmp sgt i32%ag,-1
store i8*null,i8**%d,align 8
br i1%al,label%aG,label%am
am:
%an=load i8*,i8**@_SMLZN19SMLSharp__SQL__Errors4ExecE,align 8
store i8*%an,i8**%b,align 8
%ao=call i8*@sml_alloc(i32 inreg 28)#0
%ap=getelementptr inbounds i8,i8*%ao,i64 -4
%aq=bitcast i8*%ap to i32*
store i32 1342177304,i32*%aq,align 4
store i8*%ao,i8**%c,align 8
%ar=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%as=bitcast i8*%ao to i8**
store i8*%ar,i8**%as,align 8
%at=getelementptr inbounds i8,i8*%ao,i64 8
%au=bitcast i8*%at to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[42x i8]}>,<{[4x i8],i32,[42x i8]}>*@n,i64 0,i32 2,i64 0),i8**%au,align 8
%av=getelementptr inbounds i8,i8*%ao,i64 16
%aw=bitcast i8*%av to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[48x i8]}>,<{[4x i8],i32,[48x i8]}>*@o,i64 0,i32 2,i64 0),i8**%aw,align 8
%ax=getelementptr inbounds i8,i8*%ao,i64 24
%ay=bitcast i8*%ax to i32*
store i32 7,i32*%ay,align 4
%az=call i8*@sml_alloc(i32 inreg 60)#0
%aA=getelementptr inbounds i8,i8*%az,i64 -4
%aB=bitcast i8*%aA to i32*
store i32 1342177336,i32*%aB,align 4
%aC=getelementptr inbounds i8,i8*%az,i64 56
%aD=bitcast i8*%aC to i32*
store i32 1,i32*%aD,align 4
%aE=load i8*,i8**%c,align 8
%aF=bitcast i8*%az to i8**
store i8*%aE,i8**%aF,align 8
call void@sml_raise(i8*inreg%az)#1
unreachable
aG:
%aH=load i32,i32*%af,align 4
%aI=call i8*@sml_alloc(i32 inreg 12)#0
%aJ=getelementptr inbounds i8,i8*%aI,i64 -4
%aK=bitcast i8*%aJ to i32*
store i32 1342177288,i32*%aK,align 4
store i8*%aI,i8**%c,align 8
%aL=getelementptr inbounds i8,i8*%aI,i64 4
%aM=bitcast i8*%aL to i32*
store i32 0,i32*%aM,align 1
%aN=bitcast i8*%aI to i32*
store i32%aH,i32*%aN,align 4
%aO=getelementptr inbounds i8,i8*%aI,i64 8
%aP=bitcast i8*%aO to i32*
store i32 0,i32*%aP,align 4
%aQ=call i8*@sml_alloc(i32 inreg 28)#0
%aR=getelementptr inbounds i8,i8*%aQ,i64 -4
%aS=bitcast i8*%aR to i32*
store i32 1342177304,i32*%aS,align 4
%aT=getelementptr inbounds i8,i8*%aQ,i64 12
%aU=bitcast i8*%aT to i32*
store i32 0,i32*%aU,align 1
%aV=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aW=bitcast i8*%aQ to i8**
store i8*%aV,i8**%aW,align 8
%aX=getelementptr inbounds i8,i8*%aQ,i64 8
%aY=bitcast i8*%aX to i32*
store i32 0,i32*%aY,align 4
%aZ=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%a0=getelementptr inbounds i8,i8*%aQ,i64 16
%a1=bitcast i8*%a0 to i8**
store i8*%aZ,i8**%a1,align 8
%a2=getelementptr inbounds i8,i8*%aQ,i64 24
%a3=bitcast i8*%a2 to i32*
store i32 5,i32*%a3,align 4
%a4=call fastcc i8*@_SMLFN15Word8ArraySlice5sliceE(i8*inreg%aQ)
%a5=call fastcc i8*@_SMLFN4Byte12unpackStringE(i8*inreg%a4)
store i8*%a5,i8**%b,align 8
%a6=call i8*@sml_alloc(i32 inreg 12)#0
%a7=getelementptr inbounds i8,i8*%a6,i64 -4
%a8=bitcast i8*%a7 to i32*
store i32 1342177288,i32*%a8,align 4
%a9=load i8*,i8**%b,align 8
%ba=bitcast i8*%a6 to i8**
store i8*%a9,i8**%ba,align 8
%bb=getelementptr inbounds i8,i8*%a6,i64 8
%bc=bitcast i8*%bb to i32*
store i32 1,i32*%bc,align 4
ret i8*%a6
bd:
%be=load i32,i32*@_SMLZN8UNIXODBC21SQL__SUCCESS__WITH__INFOE,align 4
%bf=icmp eq i32%aa,%be
br i1%bf,label%bg,label%dp
bg:
%bh=load i32,i32*@_SMLZN8UNIXODBC15SQL__HANDLE__STMTE,align 4
%bi=call i8*@sml_alloc(i32 inreg 20)#0
%bj=bitcast i8*%bi to i32*
%bk=getelementptr inbounds i8,i8*%bi,i64 -4
%bl=bitcast i8*%bk to i32*
store i32 1342177296,i32*%bl,align 4
%bm=getelementptr inbounds i8,i8*%bi,i64 4
%bn=bitcast i8*%bm to i32*
store i32 0,i32*%bn,align 1
store i32%bh,i32*%bj,align 4
%bo=getelementptr inbounds i8,i8*%bi,i64 8
%bp=bitcast i8*%bo to i8**
store i8*%n,i8**%bp,align 8
%bq=getelementptr inbounds i8,i8*%bi,i64 16
%br=bitcast i8*%bq to i32*
store i32 0,i32*%br,align 4
%bs=call fastcc i8*@_SMLLLN24SMLSharp__SQL__ODBCBackend7getDiagE_134(i8*inreg%bi)
%bt=getelementptr inbounds i8,i8*%bs,i64 8
%bu=bitcast i8*%bt to i8**
%bv=load i8*,i8**%bu,align 8
%bw=call i32@sml_obj_equal(i8*inreg%bv,i8*inreg getelementptr inbounds(<{[4x i8],i32,[6x i8]}>,<{[4x i8],i32,[6x i8]}>*@k,i64 0,i32 2,i64 0))#0
%bx=icmp eq i32%bw,0
br i1%bx,label%dp,label%by
by:
%bz=bitcast i8**%d to i32**
%bA=load i32*,i32**%bz,align 8
%bB=load i32,i32*%bA,align 4
%bC=add nsw i32%bB,1
%bD=call i8*@sml_alloc(i32 inreg 12)#0
%bE=bitcast i8*%bD to i32*
%bF=getelementptr inbounds i8,i8*%bD,i64 -4
%bG=bitcast i8*%bF to i32*
store i32 1342177288,i32*%bG,align 4
%bH=getelementptr inbounds i8,i8*%bD,i64 5
call void@llvm.memset.p0i8.i32(i8*%bH,i8 0,i32 3,i1 false)
store i32%bC,i32*%bE,align 4
%bI=getelementptr inbounds i8,i8*%bD,i64 4
store i8 0,i8*%bI,align 1
%bJ=getelementptr inbounds i8,i8*%bD,i64 8
%bK=bitcast i8*%bJ to i32*
store i32 0,i32*%bK,align 4
%bL=call fastcc i8*@_SMLFN10Word8Array5arrayE(i8*inreg%bD)
store i8*%bL,i8**%c,align 8
%bM=call fastcc i8*@_SMLFN8UNIXODBC7GetDataE(i32 inreg 0)
%bN=getelementptr inbounds i8,i8*%bM,i64 16
%bO=bitcast i8*%bN to i8*(i8*,i8*)**
%bP=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bO,align 8
%bQ=bitcast i8*%bM to i8**
%bR=load i8*,i8**%bQ,align 8
store i8*%bR,i8**%e,align 8
%bS=load i32,i32*@_SMLZN8UNIXODBC6C__CHARE,align 4
%bT=call i8*@sml_alloc(i32 inreg 44)#0
%bU=getelementptr inbounds i8,i8*%bT,i64 -4
%bV=bitcast i8*%bU to i32*
store i32 1342177320,i32*%bV,align 4
%bW=getelementptr inbounds i8,i8*%bT,i64 28
%bX=bitcast i8*%bW to i32*
store i32 0,i32*%bX,align 1
%bY=bitcast i8*%bT to i8**
store i8*%n,i8**%bY,align 8
%bZ=getelementptr inbounds i8,i8*%bT,i64 8
%b0=bitcast i8*%bZ to i32*
store i32%q,i32*%b0,align 4
%b1=getelementptr inbounds i8,i8*%bT,i64 12
%b2=bitcast i8*%b1 to i32*
store i32%bS,i32*%b2,align 4
%b3=load i8*,i8**%c,align 8
%b4=getelementptr inbounds i8,i8*%bT,i64 16
%b5=bitcast i8*%b4 to i8**
store i8*%b3,i8**%b5,align 8
%b6=getelementptr inbounds i8,i8*%bT,i64 24
%b7=bitcast i8*%b6 to i32*
store i32%bC,i32*%b7,align 4
%b8=load i8*,i8**%d,align 8
%b9=getelementptr inbounds i8,i8*%bT,i64 32
%ca=bitcast i8*%b9 to i8**
store i8*%b8,i8**%ca,align 8
%cb=getelementptr inbounds i8,i8*%bT,i64 40
%cc=bitcast i8*%cb to i32*
store i32 20,i32*%cc,align 4
%cd=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%ce=call fastcc i8*%bP(i8*inreg%cd,i8*inreg%bT)
%cf=bitcast i8*%ce to i32*
%cg=load i32,i32*%cf,align 4
%ch=load i32,i32*@_SMLZN8UNIXODBC15SQL__HANDLE__STMTE,align 4
%ci=call i8*@sml_alloc(i32 inreg 20)#0
%cj=bitcast i8*%ci to i32*
%ck=getelementptr inbounds i8,i8*%ci,i64 -4
%cl=bitcast i8*%ck to i32*
store i32 1342177296,i32*%cl,align 4
%cm=getelementptr inbounds i8,i8*%ci,i64 4
%cn=bitcast i8*%cm to i32*
store i32 0,i32*%cn,align 1
store i32%ch,i32*%cj,align 4
%co=getelementptr inbounds i8,i8*%ci,i64 8
%cp=bitcast i8*%co to i8**
store i8*%n,i8**%cp,align 8
%cq=getelementptr inbounds i8,i8*%ci,i64 16
%cr=bitcast i8*%cq to i32*
store i32 0,i32*%cr,align 4
call fastcc void@_SMLLLN24SMLSharp__SQL__ODBCBackend11checkReturnE_144(i8*inreg getelementptr inbounds(<{[4x i8],i32,[11x i8]}>,<{[4x i8],i32,[11x i8]}>*@l,i64 0,i32 2,i64 0),i8*inreg%ci,i32 inreg%cg)
%cs=call i8*@sml_alloc(i32 inreg 28)#0
%ct=getelementptr inbounds i8,i8*%cs,i64 -4
%cu=bitcast i8*%ct to i32*
store i32 1342177304,i32*%cu,align 4
%cv=getelementptr inbounds i8,i8*%cs,i64 12
%cw=bitcast i8*%cv to i32*
store i32 0,i32*%cw,align 1
%cx=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%cy=bitcast i8*%cs to i8**
store i8*%cx,i8**%cy,align 8
%cz=getelementptr inbounds i8,i8*%cs,i64 8
%cA=bitcast i8*%cz to i32*
store i32 0,i32*%cA,align 4
%cB=getelementptr inbounds i8,i8*%cs,i64 16
%cC=bitcast i8*%cB to i8**
store i8*bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@m,i64 0,i32 2)to i8*),i8**%cC,align 8
%cD=getelementptr inbounds i8,i8*%cs,i64 24
%cE=bitcast i8*%cD to i32*
store i32 5,i32*%cE,align 4
%cF=call fastcc i8*@_SMLFN15Word8ArraySlice5sliceE(i8*inreg%cs)
%cG=call fastcc i8*@_SMLFN4Byte12unpackStringE(i8*inreg%cF)
store i8*%cG,i8**%b,align 8
%cH=load i32*,i32**%bz,align 8
store i8*null,i8**%d,align 8
%cI=load i32,i32*%cH,align 4
%cJ=call i8*@sml_alloc(i32 inreg 12)#0
%cK=getelementptr inbounds i8,i8*%cJ,i64 -4
%cL=bitcast i8*%cK to i32*
store i32 1342177288,i32*%cL,align 4
store i8*%cJ,i8**%d,align 8
%cM=getelementptr inbounds i8,i8*%cJ,i64 4
%cN=bitcast i8*%cM to i32*
store i32 0,i32*%cN,align 1
%cO=bitcast i8*%cJ to i32*
store i32%cI,i32*%cO,align 4
%cP=getelementptr inbounds i8,i8*%cJ,i64 8
%cQ=bitcast i8*%cP to i32*
store i32 0,i32*%cQ,align 4
%cR=call i8*@sml_alloc(i32 inreg 28)#0
%cS=getelementptr inbounds i8,i8*%cR,i64 -4
%cT=bitcast i8*%cS to i32*
store i32 1342177304,i32*%cT,align 4
%cU=getelementptr inbounds i8,i8*%cR,i64 12
%cV=bitcast i8*%cU to i32*
store i32 0,i32*%cV,align 1
%cW=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%cX=bitcast i8*%cR to i8**
store i8*%cW,i8**%cX,align 8
%cY=getelementptr inbounds i8,i8*%cR,i64 8
%cZ=bitcast i8*%cY to i32*
store i32 0,i32*%cZ,align 4
%c0=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%c1=getelementptr inbounds i8,i8*%cR,i64 16
%c2=bitcast i8*%c1 to i8**
store i8*%c0,i8**%c2,align 8
%c3=getelementptr inbounds i8,i8*%cR,i64 24
%c4=bitcast i8*%c3 to i32*
store i32 5,i32*%c4,align 4
%c5=call fastcc i8*@_SMLFN15Word8ArraySlice5sliceE(i8*inreg%cR)
%c6=call fastcc i8*@_SMLFN4Byte12unpackStringE(i8*inreg%c5)
store i8*%c6,i8**%c,align 8
%c7=call i8*@sml_alloc(i32 inreg 20)#0
%c8=getelementptr inbounds i8,i8*%c7,i64 -4
%c9=bitcast i8*%c8 to i32*
store i32 1342177296,i32*%c9,align 4
%da=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%db=bitcast i8*%c7 to i8**
store i8*%da,i8**%db,align 8
%dc=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%dd=getelementptr inbounds i8,i8*%c7,i64 8
%de=bitcast i8*%dd to i8**
store i8*%dc,i8**%de,align 8
%df=getelementptr inbounds i8,i8*%c7,i64 16
%dg=bitcast i8*%df to i32*
store i32 3,i32*%dg,align 4
%dh=call fastcc i8*@_SMLFN6String1_ZE(i8*inreg%c7)
store i8*%dh,i8**%b,align 8
%di=call i8*@sml_alloc(i32 inreg 12)#0
%dj=getelementptr inbounds i8,i8*%di,i64 -4
%dk=bitcast i8*%dj to i32*
store i32 1342177288,i32*%dk,align 4
%dl=load i8*,i8**%b,align 8
%dm=bitcast i8*%di to i8**
store i8*%dl,i8**%dm,align 8
%dn=getelementptr inbounds i8,i8*%di,i64 8
%do=bitcast i8*%dn to i32*
store i32 1,i32*%do,align 4
ret i8*%di
dp:
store i8*null,i8**%b,align 8
store i8*null,i8**%d,align 8
%dq=load i32,i32*@_SMLZN8UNIXODBC15SQL__HANDLE__STMTE,align 4
%dr=call i8*@sml_alloc(i32 inreg 20)#0
%ds=bitcast i8*%dr to i32*
%dt=getelementptr inbounds i8,i8*%dr,i64 -4
%du=bitcast i8*%dt to i32*
store i32 1342177296,i32*%du,align 4
%dv=getelementptr inbounds i8,i8*%dr,i64 4
%dw=bitcast i8*%dv to i32*
store i32 0,i32*%dw,align 1
store i32%dq,i32*%ds,align 4
%dx=getelementptr inbounds i8,i8*%dr,i64 8
%dy=bitcast i8*%dx to i8**
store i8*%n,i8**%dy,align 8
%dz=getelementptr inbounds i8,i8*%dr,i64 16
%dA=bitcast i8*%dz to i32*
store i32 0,i32*%dA,align 4
call fastcc void@_SMLLLN24SMLSharp__SQL__ODBCBackend11checkReturnE_144(i8*inreg getelementptr inbounds(<{[4x i8],i32,[11x i8]}>,<{[4x i8],i32,[11x i8]}>*@l,i64 0,i32 2,i64 0),i8*inreg%dr,i32 inreg%aa)
ret i8*null
}
define fastcc i8*@_SMLFN24SMLSharp__SQL__ODBCBackend8getValueE(i8*inreg%a)#2 gc"smlsharp"{
i:
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%g,label%e
e:
call void@sml_check(i32 inreg%c)
%f=load i8*,i8**%b,align 8
br label%g
g:
%h=phi i8*[%f,%e],[%a,%i]
store i8*null,i8**%b,align 8
%j=bitcast i8*%h to i8**
%k=load i8*,i8**%j,align 8
%l=getelementptr inbounds i8,i8*%h,i64 8
%m=bitcast i8*%l to i32*
%n=load i32,i32*%m,align 4
%o=add i32%n,1
%p=call i8*@sml_alloc(i32 inreg 20)#0
%q=getelementptr inbounds i8,i8*%p,i64 -4
%r=bitcast i8*%q to i32*
store i32 1342177296,i32*%r,align 4
%s=getelementptr inbounds i8,i8*%p,i64 12
%t=bitcast i8*%s to i32*
store i32 0,i32*%t,align 1
%u=bitcast i8*%p to i8**
store i8*%k,i8**%u,align 8
%v=getelementptr inbounds i8,i8*%p,i64 8
%w=bitcast i8*%v to i32*
store i32%o,i32*%w,align 4
%x=getelementptr inbounds i8,i8*%p,i64 16
%y=bitcast i8*%x to i32*
store i32 0,i32*%y,align 4
%z=tail call fastcc i8*@_SMLLLN24SMLSharp__SQL__ODBCBackend7getDataE_154(i8*inreg%p)
ret i8*%z
}
define fastcc i32@_SMLFN24SMLSharp__SQL__ODBCBackend5fetchE(i64 inreg%a)#2 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*@_SMLFN8UNIXODBC5FetchE(i32 inreg 0)
%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 8)#0
%n=getelementptr inbounds i8,i8*%m,i64 -4
%o=bitcast i8*%n to i32*
store i32 8,i32*%o,align 4
%p=bitcast i8*%m to i64*
store i64%a,i64*%p,align 4
%q=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%r=call fastcc i8*%j(i8*inreg%q,i8*inreg%m)
%s=bitcast i8*%r to i32*
%t=load i32,i32*%s,align 4
%u=load i32,i32*@_SMLZN8UNIXODBC11SQL__NO__DATAE,align 4
%v=icmp eq i32%t,%u
br i1%v,label%w,label%x
w:
ret i32 0
x:
%y=inttoptr i64%a to i8*
%z=load i32,i32*@_SMLZN8UNIXODBC15SQL__HANDLE__STMTE,align 4
%A=call i8*@sml_alloc(i32 inreg 20)#0
%B=bitcast i8*%A to i32*
%C=getelementptr inbounds i8,i8*%A,i64 -4
%D=bitcast i8*%C to i32*
store i32 1342177296,i32*%D,align 4
%E=getelementptr inbounds i8,i8*%A,i64 4
%F=bitcast i8*%E to i32*
store i32 0,i32*%F,align 1
store i32%z,i32*%B,align 4
%G=getelementptr inbounds i8,i8*%A,i64 8
%H=bitcast i8*%G to i8**
store i8*%y,i8**%H,align 8
%I=getelementptr inbounds i8,i8*%A,i64 16
%J=bitcast i8*%I to i32*
store i32 0,i32*%J,align 4
call fastcc void@_SMLLLN24SMLSharp__SQL__ODBCBackend11checkReturnE_144(i8*inreg getelementptr inbounds(<{[4x i8],i32,[9x i8]}>,<{[4x i8],i32,[9x i8]}>*@am,i64 0,i32 2,i64 0),i8*inreg%A,i32 inreg%t)
ret i32 1
}
define fastcc i8*@_SMLFN24SMLSharp__SQL__ODBCBackend9execQueryE(i8*inreg%a)#2 gc"smlsharp"{
l:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%b,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%j,label%h
h:
call void@sml_check(i32 inreg%f)
%i=load i8*,i8**%b,align 8
br label%j
j:
%k=phi i8*[%i,%h],[%a,%l]
%m=bitcast i8*%k to i8**
%n=load i8*,i8**%m,align 8
%o=getelementptr inbounds i8,i8*%k,i64 8
%p=bitcast i8*%o to i8**
%q=load i8*,i8**%p,align 8
store i8*%q,i8**%b,align 8
%r=call i8*@sml_alloc(i32 inreg 8)#0
%s=getelementptr inbounds i8,i8*%r,i64 -4
%t=bitcast i8*%s to i32*
store i32 536870920,i32*%t,align 4
store i8*%r,i8**%d,align 8
%u=load i8*,i8**@_SMLZN8UNIXODBC11NULL__HANDLEE,align 8
%v=bitcast i8*%r to i8**
store i8*%u,i8**%v,align 8
%w=load i32,i32*@_SMLZN8UNIXODBC15SQL__HANDLE__STMTE,align 4
%x=call i8*@sml_alloc(i32 inreg 28)#0
%y=getelementptr inbounds i8,i8*%x,i64 -4
%z=bitcast i8*%y to i32*
store i32 1342177304,i32*%z,align 4
store i8*%x,i8**%c,align 8
%A=getelementptr inbounds i8,i8*%x,i64 4
%B=bitcast i8*%A to i32*
store i32 0,i32*%B,align 1
%C=bitcast i8*%x to i32*
store i32%w,i32*%C,align 4
%D=getelementptr inbounds i8,i8*%x,i64 8
%E=bitcast i8*%D to i8**
store i8*%n,i8**%E,align 8
%F=load i8*,i8**%d,align 8
%G=getelementptr inbounds i8,i8*%x,i64 16
%H=bitcast i8*%G to i8**
store i8*%F,i8**%H,align 8
%I=getelementptr inbounds i8,i8*%x,i64 24
%J=bitcast i8*%I to i32*
store i32 4,i32*%J,align 4
%K=load i32,i32*@_SMLZN8UNIXODBC15SQL__HANDLE__STMTE,align 4
%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
store i8*%L,i8**%e,align 8
%O=getelementptr inbounds i8,i8*%L,i64 4
%P=bitcast i8*%O to i32*
store i32 0,i32*%P,align 1
%Q=bitcast i8*%L to i32*
store i32%K,i32*%Q,align 4
%R=getelementptr inbounds i8,i8*%L,i64 8
%S=bitcast i8*%R to i8**
store i8*%n,i8**%S,align 8
%T=getelementptr inbounds i8,i8*%L,i64 16
%U=bitcast i8*%T to i32*
store i32 0,i32*%U,align 4
%V=call fastcc i8*@_SMLFN8UNIXODBC11AllocHandleE(i32 inreg 0)
%W=getelementptr inbounds i8,i8*%V,i64 16
%X=bitcast i8*%W to i8*(i8*,i8*)**
%Y=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%X,align 8
%Z=bitcast i8*%V to i8**
%aa=load i8*,i8**%Z,align 8
%ab=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ac=call fastcc i8*%Y(i8*inreg%aa,i8*inreg%ab)
%ad=bitcast i8*%ac to i32*
%ae=load i32,i32*%ad,align 4
%af=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
call fastcc void@_SMLLLN24SMLSharp__SQL__ODBCBackend11checkReturnE_144(i8*inreg getelementptr inbounds(<{[4x i8],i32,[15x i8]}>,<{[4x i8],i32,[15x i8]}>*@aA,i64 0,i32 2,i64 0),i8*inreg%af,i32 inreg%ae)
%ag=bitcast i8**%d to i8***
%ah=load i8**,i8***%ag,align 8
%ai=load i8*,i8**%ah,align 8
%aj=bitcast i8**%b to i32**
%ak=load i32*,i32**%aj,align 8
%al=getelementptr inbounds i32,i32*%ak,i64 -1
%am=load i32,i32*%al,align 4
%an=and i32%am,268435455
%ao=add nsw i32%an,-1
%ap=call i8*@sml_alloc(i32 inreg 28)#0
%aq=getelementptr inbounds i8,i8*%ap,i64 -4
%ar=bitcast i8*%aq to i32*
store i32 1342177304,i32*%ar,align 4
store i8*%ap,i8**%c,align 8
%as=getelementptr inbounds i8,i8*%ap,i64 20
%at=bitcast i8*%as to i32*
store i32 0,i32*%at,align 1
%au=bitcast i8*%ap to i8**
store i8*%ai,i8**%au,align 8
%av=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aw=getelementptr inbounds i8,i8*%ap,i64 8
%ax=bitcast i8*%aw to i8**
store i8*%av,i8**%ax,align 8
%ay=getelementptr inbounds i8,i8*%ap,i64 16
%az=bitcast i8*%ay to i32*
store i32%ao,i32*%az,align 4
%aA=getelementptr inbounds i8,i8*%ap,i64 24
%aB=bitcast i8*%aA to i32*
store i32 2,i32*%aB,align 4
%aC=load i32,i32*@_SMLZN8UNIXODBC15SQL__HANDLE__STMTE,align 4
%aD=call i8*@sml_alloc(i32 inreg 20)#0
%aE=getelementptr inbounds i8,i8*%aD,i64 -4
%aF=bitcast i8*%aE to i32*
store i32 1342177296,i32*%aF,align 4
store i8*%aD,i8**%b,align 8
%aG=getelementptr inbounds i8,i8*%aD,i64 4
%aH=bitcast i8*%aG to i32*
store i32 0,i32*%aH,align 1
%aI=bitcast i8*%aD to i32*
store i32%aC,i32*%aI,align 4
%aJ=getelementptr inbounds i8,i8*%aD,i64 8
%aK=bitcast i8*%aJ to i8**
store i8*%ai,i8**%aK,align 8
%aL=getelementptr inbounds i8,i8*%aD,i64 16
%aM=bitcast i8*%aL to i32*
store i32 0,i32*%aM,align 4
%aN=call fastcc i8*@_SMLFN8UNIXODBC10ExecDirectE(i32 inreg 0)
%aO=getelementptr inbounds i8,i8*%aN,i64 16
%aP=bitcast i8*%aO to i8*(i8*,i8*)**
%aQ=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aP,align 8
%aR=bitcast i8*%aN to i8**
%aS=load i8*,i8**%aR,align 8
%aT=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aU=call fastcc i8*%aQ(i8*inreg%aS,i8*inreg%aT)
%aV=bitcast i8*%aU to i32*
%aW=load i32,i32*%aV,align 4
%aX=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
call fastcc void@_SMLLLN24SMLSharp__SQL__ODBCBackend11checkReturnE_144(i8*inreg getelementptr inbounds(<{[4x i8],i32,[14x i8]}>,<{[4x i8],i32,[14x i8]}>*@r,i64 0,i32 2,i64 0),i8*inreg%aX,i32 inreg%aW)
%aY=load i8**,i8***%ag,align 8
%aZ=load i8*,i8**%aY,align 8
ret i8*%aZ
}
define fastcc void@_SMLFN24SMLSharp__SQL__ODBCBackend9closeConnE(i64 inreg%a)#2 gc"smlsharp"{
%b=alloca i8*,align 8
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%g,label%f
f:
call void@sml_check(i32 inreg%d)
br label%g
g:
%h=inttoptr i64%a to i8*
%i=load i32,i32*@_SMLZN8UNIXODBC14SQL__HANDLE__DBCE,align 4
%j=call i8*@sml_alloc(i32 inreg 20)#0
%k=getelementptr inbounds i8,i8*%j,i64 -4
%l=bitcast i8*%k to i32*
store i32 1342177296,i32*%l,align 4
store i8*%j,i8**%c,align 8
%m=getelementptr inbounds i8,i8*%j,i64 4
%n=bitcast i8*%m to i32*
store i32 0,i32*%n,align 1
%o=bitcast i8*%j to i32*
store i32%i,i32*%o,align 4
%p=getelementptr inbounds i8,i8*%j,i64 8
%q=bitcast i8*%p to i8**
store i8*%h,i8**%q,align 8
%r=getelementptr inbounds i8,i8*%j,i64 16
%s=bitcast i8*%r to i32*
store i32 0,i32*%s,align 4
%t=call fastcc i8*@_SMLFN8UNIXODBC10DisconnectE(i32 inreg 0)
%u=getelementptr inbounds i8,i8*%t,i64 16
%v=bitcast i8*%u to i8*(i8*,i8*)**
%w=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%v,align 8
%x=bitcast i8*%t to i8**
%y=load i8*,i8**%x,align 8
store i8*%y,i8**%b,align 8
%z=call i8*@sml_alloc(i32 inreg 8)#0
%A=getelementptr inbounds i8,i8*%z,i64 -4
%B=bitcast i8*%A to i32*
store i32 8,i32*%B,align 4
%C=bitcast i8*%z to i64*
store i64%a,i64*%C,align 4
%D=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%E=call fastcc i8*%w(i8*inreg%D,i8*inreg%z)
%F=bitcast i8*%E to i32*
%G=load i32,i32*%F,align 4
%H=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
call fastcc void@_SMLLLN24SMLSharp__SQL__ODBCBackend11checkReturnE_144(i8*inreg getelementptr inbounds(<{[4x i8],i32,[14x i8]}>,<{[4x i8],i32,[14x i8]}>*@t,i64 0,i32 2,i64 0),i8*inreg%H,i32 inreg%G)
%I=load i32,i32*@_SMLZN8UNIXODBC14SQL__HANDLE__DBCE,align 4
%J=call i8*@sml_alloc(i32 inreg 20)#0
%K=getelementptr inbounds i8,i8*%J,i64 -4
%L=bitcast i8*%K to i32*
store i32 1342177296,i32*%L,align 4
store i8*%J,i8**%b,align 8
%M=getelementptr inbounds i8,i8*%J,i64 4
%N=bitcast i8*%M to i32*
store i32 0,i32*%N,align 1
%O=bitcast i8*%J to i32*
store i32%I,i32*%O,align 4
%P=getelementptr inbounds i8,i8*%J,i64 8
%Q=bitcast i8*%P to i8**
store i8*%h,i8**%Q,align 8
%R=getelementptr inbounds i8,i8*%J,i64 16
%S=bitcast i8*%R to i32*
store i32 0,i32*%S,align 4
%T=call fastcc i8*@_SMLFN8UNIXODBC10FreeHandleE(i32 inreg 0)
%U=getelementptr inbounds i8,i8*%T,i64 16
%V=bitcast i8*%U to i8*(i8*,i8*)**
%W=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%V,align 8
%X=bitcast i8*%T to i8**
%Y=load i8*,i8**%X,align 8
%Z=load i8*,i8**%b,align 8
%aa=call fastcc i8*%W(i8*inreg%Y,i8*inreg%Z)
%ab=bitcast i8*%aa to i32*
%ac=load i32,i32*%ab,align 4
%ad=load i8*,i8**%b,align 8
tail call fastcc void@_SMLLLN24SMLSharp__SQL__ODBCBackend11checkReturnE_144(i8*inreg getelementptr inbounds(<{[4x i8],i32,[14x i8]}>,<{[4x i8],i32,[14x i8]}>*@ax,i64 0,i32 2,i64 0),i8*inreg%ad,i32 inreg%ac)
ret void
}
define fastcc void@_SMLFN24SMLSharp__SQL__ODBCBackend8closeResE(i64 inreg%a)#2 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=inttoptr i64%a to i8*
%h=load i32,i32*@_SMLZN8UNIXODBC15SQL__HANDLE__STMTE,align 4
%i=call i8*@sml_alloc(i32 inreg 20)#0
%j=getelementptr inbounds i8,i8*%i,i64 -4
%k=bitcast i8*%j to i32*
store i32 1342177296,i32*%k,align 4
store i8*%i,i8**%b,align 8
%l=getelementptr inbounds i8,i8*%i,i64 4
%m=bitcast i8*%l to i32*
store i32 0,i32*%m,align 1
%n=bitcast i8*%i to i32*
store i32%h,i32*%n,align 4
%o=getelementptr inbounds i8,i8*%i,i64 8
%p=bitcast i8*%o to i8**
store i8*%g,i8**%p,align 8
%q=getelementptr inbounds i8,i8*%i,i64 16
%r=bitcast i8*%q to i32*
store i32 0,i32*%r,align 4
%s=call fastcc i8*@_SMLFN8UNIXODBC10FreeHandleE(i32 inreg 0)
%t=getelementptr inbounds i8,i8*%s,i64 16
%u=bitcast i8*%t to i8*(i8*,i8*)**
%v=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%u,align 8
%w=bitcast i8*%s to i8**
%x=load i8*,i8**%w,align 8
%y=load i8*,i8**%b,align 8
%z=call fastcc i8*%v(i8*inreg%x,i8*inreg%y)
%A=bitcast i8*%z to i32*
%B=load i32,i32*%A,align 4
%C=load i8*,i8**%b,align 8
tail call fastcc void@_SMLLLN24SMLSharp__SQL__ODBCBackend11checkReturnE_144(i8*inreg getelementptr inbounds(<{[4x i8],i32,[14x i8]}>,<{[4x i8],i32,[14x i8]}>*@ax,i64 0,i32 2,i64 0),i8*inreg%C,i32 inreg%B)
ret void
}
define fastcc i8*@_SMLFN24SMLSharp__SQL__ODBCBackend14columnTypeNameE(i8*inreg%a)#2 gc"smlsharp"{
j:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%b,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%h,label%f
f:
call void@sml_check(i32 inreg%d)
%g=load i8*,i8**%b,align 8
br label%h
h:
%i=phi i8*[%g,%f],[%a,%j]
%k=bitcast i8*%i to i32*
%l=load i32,i32*%k,align 4
switch i32%l,label%m[
i32 2,label%S
i32 3,label%R
i32 10,label%Q
i32 1,label%P
i32 7,label%O
i32 5,label%N
i32 6,label%M
i32 0,label%L
i32 8,label%K
i32 4,label%I
i32 9,label%E
]
m:
call void@sml_matchcomp_bug()
%n=load i8*,i8**@_SMLZ5Match,align 8
store i8*%n,i8**%b,align 8
%o=call i8*@sml_alloc(i32 inreg 20)#0
%p=getelementptr inbounds i8,i8*%o,i64 -4
%q=bitcast i8*%p to i32*
store i32 1342177296,i32*%q,align 4
store i8*%o,i8**%c,align 8
%r=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%s=bitcast i8*%o to i8**
store i8*%r,i8**%s,align 8
%t=getelementptr inbounds i8,i8*%o,i64 8
%u=bitcast i8*%t to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[41x i8]}>,<{[4x i8],i32,[41x i8]}>*@B,i64 0,i32 2,i64 0),i8**%u,align 8
%v=getelementptr inbounds i8,i8*%o,i64 16
%w=bitcast i8*%v to i32*
store i32 3,i32*%w,align 4
%x=call i8*@sml_alloc(i32 inreg 60)#0
%y=getelementptr inbounds i8,i8*%x,i64 -4
%z=bitcast i8*%y to i32*
store i32 1342177336,i32*%z,align 4
%A=getelementptr inbounds i8,i8*%x,i64 56
%B=bitcast i8*%A to i32*
store i32 1,i32*%B,align 4
%C=load i8*,i8**%c,align 8
%D=bitcast i8*%x to i8**
store i8*%C,i8**%D,align 8
call void@sml_raise(i8*inreg%x)#1
unreachable
E:
%F=getelementptr inbounds i8,i8*%i,i64 8
%G=bitcast i8*%F to i8**
%H=load i8*,i8**%G,align 8
ret i8*%H
I:
%J=phi i8*[getelementptr inbounds(<{[4x i8],i32,[8x i8]}>,<{[4x i8],i32,[8x i8]}>*@A,i64 0,i32 2,i64 0),%h],[getelementptr inbounds(<{[4x i8],i32,[1x i8]}>,<{[4x i8],i32,[1x i8]}>*@au,i64 0,i32 2,i64 0),%K],[getelementptr inbounds(<{[4x i8],i32,[1x i8]}>,<{[4x i8],i32,[1x i8]}>*@au,i64 0,i32 2,i64 0),%L],[getelementptr inbounds(<{[4x i8],i32,[17x i8]}>,<{[4x i8],i32,[17x i8]}>*@z,i64 0,i32 2,i64 0),%M],[getelementptr inbounds(<{[4x i8],i32,[6x i8]}>,<{[4x i8],i32,[6x i8]}>*@y,i64 0,i32 2,i64 0),%N],[getelementptr inbounds(<{[4x i8],i32,[5x i8]}>,<{[4x i8],i32,[5x i8]}>*@x,i64 0,i32 2,i64 0),%O],[getelementptr inbounds(<{[4x i8],i32,[1x i8]}>,<{[4x i8],i32,[1x i8]}>*@au,i64 0,i32 2,i64 0),%P],[getelementptr inbounds(<{[4x i8],i32,[1x i8]}>,<{[4x i8],i32,[1x i8]}>*@au,i64 0,i32 2,i64 0),%Q],[getelementptr inbounds(<{[4x i8],i32,[1x i8]}>,<{[4x i8],i32,[1x i8]}>*@au,i64 0,i32 2,i64 0),%R],[getelementptr inbounds(<{[4x i8],i32,[4x i8]}>,<{[4x i8],i32,[4x i8]}>*@w,i64 0,i32 2,i64 0),%S]
ret i8*%J
K:
br label%I
L:
br label%I
M:
br label%I
N:
br label%I
O:
br label%I
P:
br label%I
Q:
br label%I
R:
br label%I
S:
br label%I
}
define internal fastcc i8*@_SMLLLN24SMLSharp__SQL__ODBCBackend13getColumnInfoE_185(i64 inreg%a)unnamed_addr#2 gc"smlsharp"{
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%i,label%h
h:
call void@sml_check(i32 inreg%f)
br label%i
i:
%j=inttoptr i64%a to i8*
%k=call fastcc i8*@_SMLFN8UNIXODBC5FetchE(i32 inreg 0)
%l=getelementptr inbounds i8,i8*%k,i64 16
%m=bitcast i8*%l to i8*(i8*,i8*)**
%n=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%m,align 8
%o=bitcast i8*%k to i8**
%p=load i8*,i8**%o,align 8
store i8*%p,i8**%b,align 8
%q=call i8*@sml_alloc(i32 inreg 8)#0
%r=getelementptr inbounds i8,i8*%q,i64 -4
%s=bitcast i8*%r to i32*
store i32 8,i32*%s,align 4
%t=bitcast i8*%q to i64*
store i64%a,i64*%t,align 4
%u=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%v=call fastcc i8*%n(i8*inreg%u,i8*inreg%q)
%w=bitcast i8*%v to i32*
%x=load i32,i32*%w,align 4
%y=load i32,i32*@_SMLZN8UNIXODBC11SQL__NO__DATAE,align 4
%z=icmp eq i32%x,%y
br i1%z,label%do,label%A
A:
%B=load i32,i32*@_SMLZN8UNIXODBC15SQL__HANDLE__STMTE,align 4
%C=call i8*@sml_alloc(i32 inreg 20)#0
%D=bitcast i8*%C to i32*
%E=getelementptr inbounds i8,i8*%C,i64 -4
%F=bitcast i8*%E to i32*
store i32 1342177296,i32*%F,align 4
%G=getelementptr inbounds i8,i8*%C,i64 4
%H=bitcast i8*%G to i32*
store i32 0,i32*%H,align 1
store i32%B,i32*%D,align 4
%I=getelementptr inbounds i8,i8*%C,i64 8
%J=bitcast i8*%I to i8**
store i8*%j,i8**%J,align 8
%K=getelementptr inbounds i8,i8*%C,i64 16
%L=bitcast i8*%K to i32*
store i32 0,i32*%L,align 4
call fastcc void@_SMLLLN24SMLSharp__SQL__ODBCBackend11checkReturnE_144(i8*inreg getelementptr inbounds(<{[4x i8],i32,[9x i8]}>,<{[4x i8],i32,[9x i8]}>*@am,i64 0,i32 2,i64 0),i8*inreg%C,i32 inreg%x)
%M=load i32,i32*@_SMLZN8UNIXODBC11COLUMN__NAMEE,align 4
%N=call i8*@sml_alloc(i32 inreg 20)#0
%O=getelementptr inbounds i8,i8*%N,i64 -4
%P=bitcast i8*%O to i32*
store i32 1342177296,i32*%P,align 4
%Q=getelementptr inbounds i8,i8*%N,i64 12
%R=bitcast i8*%Q to i32*
store i32 0,i32*%R,align 1
%S=bitcast i8*%N to i8**
store i8*%j,i8**%S,align 8
%T=getelementptr inbounds i8,i8*%N,i64 8
%U=bitcast i8*%T to i32*
store i32%M,i32*%U,align 4
%V=getelementptr inbounds i8,i8*%N,i64 16
%W=bitcast i8*%V to i32*
store i32 0,i32*%W,align 4
%X=call fastcc i8*@_SMLLLN24SMLSharp__SQL__ODBCBackend7getDataE_154(i8*inreg%N)
%Y=icmp eq i8*%X,null
br i1%Y,label%Z,label%ar
Z:
%aa=load i8*,i8**@_SMLZN19SMLSharp__SQL__Errors6FormatE,align 8
store i8*%aa,i8**%b,align 8
%ab=call i8*@sml_alloc(i32 inreg 20)#0
%ac=getelementptr inbounds i8,i8*%ab,i64 -4
%ad=bitcast i8*%ac to i32*
store i32 1342177296,i32*%ad,align 4
store i8*%ab,i8**%c,align 8
%ae=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%af=bitcast i8*%ab to i8**
store i8*%ae,i8**%af,align 8
%ag=getelementptr inbounds i8,i8*%ab,i64 8
%ah=bitcast i8*%ag to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[42x i8]}>,<{[4x i8],i32,[42x i8]}>*@D,i64 0,i32 2,i64 0),i8**%ah,align 8
%ai=getelementptr inbounds i8,i8*%ab,i64 16
%aj=bitcast i8*%ai to i32*
store i32 3,i32*%aj,align 4
%ak=call i8*@sml_alloc(i32 inreg 60)#0
%al=getelementptr inbounds i8,i8*%ak,i64 -4
%am=bitcast i8*%al to i32*
store i32 1342177336,i32*%am,align 4
%an=getelementptr inbounds i8,i8*%ak,i64 56
%ao=bitcast i8*%an to i32*
store i32 1,i32*%ao,align 4
%ap=load i8*,i8**%c,align 8
%aq=bitcast i8*%ak to i8**
store i8*%ap,i8**%aq,align 8
call void@sml_raise(i8*inreg%ak)#1
unreachable
ar:
%as=bitcast i8*%X to i8**
%at=load i8*,i8**%as,align 8
store i8*%at,i8**%b,align 8
%au=load i32,i32*@_SMLZN8UNIXODBC9DATA__TYPEE,align 4
%av=call i8*@sml_alloc(i32 inreg 20)#0
%aw=getelementptr inbounds i8,i8*%av,i64 -4
%ax=bitcast i8*%aw to i32*
store i32 1342177296,i32*%ax,align 4
%ay=getelementptr inbounds i8,i8*%av,i64 12
%az=bitcast i8*%ay to i32*
store i32 0,i32*%az,align 1
%aA=bitcast i8*%av to i8**
store i8*%j,i8**%aA,align 8
%aB=getelementptr inbounds i8,i8*%av,i64 8
%aC=bitcast i8*%aB to i32*
store i32%au,i32*%aC,align 4
%aD=getelementptr inbounds i8,i8*%av,i64 16
%aE=bitcast i8*%aD to i32*
store i32 0,i32*%aE,align 4
%aF=call fastcc i8*@_SMLLLN24SMLSharp__SQL__ODBCBackend7getDataE_154(i8*inreg%av)
%aG=icmp eq i8*%aF,null
br i1%aG,label%aH,label%aZ
aH:
%aI=load i8*,i8**@_SMLZN19SMLSharp__SQL__Errors6FormatE,align 8
store i8*%aI,i8**%b,align 8
%aJ=call i8*@sml_alloc(i32 inreg 20)#0
%aK=getelementptr inbounds i8,i8*%aJ,i64 -4
%aL=bitcast i8*%aK to i32*
store i32 1342177296,i32*%aL,align 4
store i8*%aJ,i8**%c,align 8
%aM=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aN=bitcast i8*%aJ to i8**
store i8*%aM,i8**%aN,align 8
%aO=getelementptr inbounds i8,i8*%aJ,i64 8
%aP=bitcast i8*%aO to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[42x i8]}>,<{[4x i8],i32,[42x i8]}>*@ak,i64 0,i32 2,i64 0),i8**%aP,align 8
%aQ=getelementptr inbounds i8,i8*%aJ,i64 16
%aR=bitcast i8*%aQ to i32*
store i32 3,i32*%aR,align 4
%aS=call i8*@sml_alloc(i32 inreg 60)#0
%aT=getelementptr inbounds i8,i8*%aS,i64 -4
%aU=bitcast i8*%aT to i32*
store i32 1342177336,i32*%aU,align 4
%aV=getelementptr inbounds i8,i8*%aS,i64 56
%aW=bitcast i8*%aV to i32*
store i32 1,i32*%aW,align 4
%aX=load i8*,i8**%c,align 8
%aY=bitcast i8*%aS to i8**
store i8*%aX,i8**%aY,align 8
call void@sml_raise(i8*inreg%aS)#1
unreachable
aZ:
%a0=bitcast i8*%aF to i8**
%a1=load i8*,i8**%a0,align 8
store i8*%a1,i8**%c,align 8
%a2=getelementptr inbounds i8,i8*%a1,i64 -4
%a3=bitcast i8*%a2 to i32*
%a4=load i32,i32*%a3,align 4
%a5=trunc i32%a4 to i28
switch i28%a5,label%bT[
i28 2,label%bH
i28 3,label%bi
i28 4,label%a6
]
a6:
%a7=load i8,i8*%a1,align 1
%a8=icmp eq i8%a7,45
br i1%a8,label%a9,label%bT
a9:
%ba=getelementptr inbounds i8,i8*%a1,i64 1
%bb=load i8,i8*%ba,align 1
%bc=icmp eq i8%bb,49
br i1%bc,label%bd,label%bT
bd:
%be=getelementptr inbounds i8,i8*%a1,i64 2
%bf=load i8,i8*%be,align 1
%bg=icmp eq i8%bf,49
br i1%bg,label%bh,label%bT
bh:
store i8*null,i8**%c,align 8
br label%b5
bi:
%bj=load i8,i8*%a1,align 1
switch i8%bj,label%bT[
i8 45,label%bw
i8 49,label%bq
i8 57,label%bk
]
bk:
%bl=getelementptr inbounds i8,i8*%a1,i64 1
%bm=load i8,i8*%bl,align 1
switch i8%bm,label%bT[
i8 49,label%bp
i8 50,label%bo
i8 51,label%bn
]
bn:
store i8*null,i8**%c,align 8
br label%b5
bo:
store i8*null,i8**%c,align 8
br label%b5
bp:
store i8*null,i8**%c,align 8
br label%b5
bq:
%br=getelementptr inbounds i8,i8*%a1,i64 1
%bs=load i8,i8*%br,align 1
switch i8%bs,label%bT[
i8 48,label%bv
i8 49,label%bu
i8 50,label%bt
]
bt:
store i8*null,i8**%c,align 8
br label%b5
bu:
store i8*null,i8**%c,align 8
br label%b5
bv:
store i8*null,i8**%c,align 8
br label%b5
bw:
%bx=getelementptr inbounds i8,i8*%a1,i64 1
%by=load i8,i8*%bx,align 1
switch i8%by,label%bT[
i8 49,label%bG
i8 50,label%bF
i8 51,label%bE
i8 52,label%bD
i8 53,label%bC
i8 54,label%bB
i8 55,label%bA
i8 57,label%bz
]
bz:
store i8*null,i8**%c,align 8
br label%b5
bA:
store i8*null,i8**%c,align 8
br label%b5
bB:
store i8*null,i8**%c,align 8
br label%b5
bC:
store i8*null,i8**%c,align 8
br label%b5
bD:
store i8*null,i8**%c,align 8
br label%b5
bE:
store i8*null,i8**%c,align 8
br label%b5
bF:
store i8*null,i8**%c,align 8
br label%b5
bG:
store i8*null,i8**%c,align 8
br label%b5
bH:
%bI=load i8,i8*%a1,align 1
switch i8%bI,label%bT[
i8 48,label%bS
i8 49,label%bR
i8 50,label%bQ
i8 51,label%bP
i8 52,label%bO
i8 53,label%bN
i8 54,label%bM
i8 55,label%bL
i8 56,label%bK
i8 57,label%bJ
]
bJ:
store i8*null,i8**%c,align 8
br label%b5
bK:
store i8*null,i8**%c,align 8
br label%b5
bL:
store i8*null,i8**%c,align 8
br label%b5
bM:
store i8*null,i8**%c,align 8
br label%b5
bN:
store i8*null,i8**%c,align 8
br label%b5
bO:
store i8*null,i8**%c,align 8
br label%b5
bP:
store i8*null,i8**%c,align 8
br label%b5
bQ:
store i8*null,i8**%c,align 8
br label%b5
bR:
store i8*null,i8**%c,align 8
br label%b5
bS:
store i8*null,i8**%c,align 8
br label%b5
bT:
%bU=call i8*@sml_alloc(i32 inreg 20)#0
%bV=bitcast i8*%bU to i32*
%bW=getelementptr inbounds i8,i8*%bU,i64 -4
%bX=bitcast i8*%bW to i32*
store i32 1342177296,i32*%bX,align 4
%bY=getelementptr inbounds i8,i8*%bU,i64 4
%bZ=bitcast i8*%bY to i32*
store i32 0,i32*%bZ,align 1
store i32 9,i32*%bV,align 4
%b0=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%b1=getelementptr inbounds i8,i8*%bU,i64 8
%b2=bitcast i8*%b1 to i8**
store i8*%b0,i8**%b2,align 8
%b3=getelementptr inbounds i8,i8*%bU,i64 16
%b4=bitcast i8*%b3 to i32*
store i32 2,i32*%b4,align 4
br label%b5
b5:
%b6=phi i8*[%bU,%bT],[bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i8*,i32}>,<{[4x i8],i32,i32,[4x i8],i8*,i32}>*@aj,i64 0,i32 2)to i8*),%bh],[bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@ah,i64 0,i32 2)to i8*),%bn],[bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i8*,i32}>,<{[4x i8],i32,i32,[4x i8],i8*,i32}>*@ag,i64 0,i32 2)to i8*),%bo],[bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i8*,i32}>,<{[4x i8],i32,i32,[4x i8],i8*,i32}>*@ae,i64 0,i32 2)to i8*),%bp],[bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@ac,i64 0,i32 2)to i8*),%bt],[bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i8*,i32}>,<{[4x i8],i32,i32,[4x i8],i8*,i32}>*@ab,i64 0,i32 2)to i8*),%bu],[bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i8*,i32}>,<{[4x i8],i32,i32,[4x i8],i8*,i32}>*@Z,i64 0,i32 2)to i8*),%bv],[bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@ac,i64 0,i32 2)to i8*),%bz],[bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i8*,i32}>,<{[4x i8],i32,i32,[4x i8],i8*,i32}>*@X,i64 0,i32 2)to i8*),%bA],[bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i8*,i32}>,<{[4x i8],i32,i32,[4x i8],i8*,i32}>*@V,i64 0,i32 2)to i8*),%bB],[bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i8*,i32}>,<{[4x i8],i32,i32,[4x i8],i8*,i32}>*@T,i64 0,i32 2)to i8*),%bC],[bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i8*,i32}>,<{[4x i8],i32,i32,[4x i8],i8*,i32}>*@R,i64 0,i32 2)to i8*),%bD],[bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i8*,i32}>,<{[4x i8],i32,i32,[4x i8],i8*,i32}>*@P,i64 0,i32 2)to i8*),%bE],[bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i8*,i32}>,<{[4x i8],i32,i32,[4x i8],i8*,i32}>*@N,i64 0,i32 2)to i8*),%bF],[bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@ac,i64 0,i32 2)to i8*),%bG],[bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i8*,i32}>,<{[4x i8],i32,i32,[4x i8],i8*,i32}>*@L,i64 0,i32 2)to i8*),%bJ],[bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@J,i64 0,i32 2)to i8*),%bK],[bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@I,i64 0,i32 2)to i8*),%bL],[bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@J,i64 0,i32 2)to i8*),%bM],[bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@H,i64 0,i32 2)to i8*),%bN],[bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@H,i64 0,i32 2)to i8*),%bO],[bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@G,i64 0,i32 2)to i8*),%bP],[bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@G,i64 0,i32 2)to i8*),%bQ],[bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@ac,i64 0,i32 2)to i8*),%bR],[bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i8*,i32}>,<{[4x i8],i32,i32,[4x i8],i8*,i32}>*@F,i64 0,i32 2)to i8*),%bS]
store i8*%b6,i8**%c,align 8
%b7=load i32,i32*@_SMLZN8UNIXODBC8NULLABLEE,align 4
%b8=call i8*@sml_alloc(i32 inreg 20)#0
%b9=getelementptr inbounds i8,i8*%b8,i64 -4
%ca=bitcast i8*%b9 to i32*
store i32 1342177296,i32*%ca,align 4
%cb=getelementptr inbounds i8,i8*%b8,i64 12
%cc=bitcast i8*%cb to i32*
store i32 0,i32*%cc,align 1
%cd=bitcast i8*%b8 to i8**
store i8*%j,i8**%cd,align 8
%ce=getelementptr inbounds i8,i8*%b8,i64 8
%cf=bitcast i8*%ce to i32*
store i32%b7,i32*%cf,align 4
%cg=getelementptr inbounds i8,i8*%b8,i64 16
%ch=bitcast i8*%cg to i32*
store i32 0,i32*%ch,align 4
%ci=call fastcc i8*@_SMLLLN24SMLSharp__SQL__ODBCBackend7getDataE_154(i8*inreg%b8)
%cj=icmp eq i8*%ci,null
br i1%cj,label%ck,label%cl
ck:
store i8*null,i8**%c,align 8
br label%cy
cl:
%cm=bitcast i8*%ci to i8**
%cn=load i8*,i8**%cm,align 8
%co=getelementptr inbounds i8,i8*%cn,i64 -4
%cp=bitcast i8*%co to i32*
%cq=load i32,i32*%cp,align 4
%cr=and i32%cq,268435455
%cs=icmp eq i32%cr,2
br i1%cs,label%cu,label%ct
ct:
store i8*null,i8**%c,align 8
br label%cy
cu:
%cv=load i8,i8*%cn,align 1
switch i8%cv,label%cw[
i8 48,label%cx
i8 49,label%cQ
]
cw:
store i8*null,i8**%c,align 8
br label%cy
cx:
br label%cQ
cy:
%cz=load i8*,i8**@_SMLZN19SMLSharp__SQL__Errors6FormatE,align 8
store i8*%cz,i8**%b,align 8
%cA=call i8*@sml_alloc(i32 inreg 20)#0
%cB=getelementptr inbounds i8,i8*%cA,i64 -4
%cC=bitcast i8*%cB to i32*
store i32 1342177296,i32*%cC,align 4
store i8*%cA,i8**%c,align 8
%cD=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%cE=bitcast i8*%cA to i8**
store i8*%cD,i8**%cE,align 8
%cF=getelementptr inbounds i8,i8*%cA,i64 8
%cG=bitcast i8*%cF to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[42x i8]}>,<{[4x i8],i32,[42x i8]}>*@al,i64 0,i32 2,i64 0),i8**%cG,align 8
%cH=getelementptr inbounds i8,i8*%cA,i64 16
%cI=bitcast i8*%cH to i32*
store i32 3,i32*%cI,align 4
%cJ=call i8*@sml_alloc(i32 inreg 60)#0
%cK=getelementptr inbounds i8,i8*%cJ,i64 -4
%cL=bitcast i8*%cK to i32*
store i32 1342177336,i32*%cL,align 4
%cM=getelementptr inbounds i8,i8*%cJ,i64 56
%cN=bitcast i8*%cM to i32*
store i32 1,i32*%cN,align 4
%cO=load i8*,i8**%c,align 8
%cP=bitcast i8*%cJ to i8**
store i8*%cO,i8**%cP,align 8
call void@sml_raise(i8*inreg%cJ)#1
unreachable
cQ:
%cR=phi i32[0,%cx],[1,%cu]
%cS=call fastcc i8*@_SMLLLN24SMLSharp__SQL__ODBCBackend13getColumnInfoE_185(i64 inreg%a)
store i8*%cS,i8**%d,align 8
%cT=call i8*@sml_alloc(i32 inreg 20)#0
%cU=getelementptr inbounds i8,i8*%cT,i64 -4
%cV=bitcast i8*%cU to i32*
store i32 1342177296,i32*%cV,align 4
store i8*%cT,i8**%e,align 8
%cW=getelementptr inbounds i8,i8*%cT,i64 4
%cX=bitcast i8*%cW to i32*
store i32 0,i32*%cX,align 1
%cY=bitcast i8*%cT to i32*
store i32%cR,i32*%cY,align 4
%cZ=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%c0=getelementptr inbounds i8,i8*%cT,i64 8
%c1=bitcast i8*%c0 to i8**
store i8*%cZ,i8**%c1,align 8
%c2=getelementptr inbounds i8,i8*%cT,i64 16
%c3=bitcast i8*%c2 to i32*
store i32 2,i32*%c3,align 4
%c4=call i8*@sml_alloc(i32 inreg 20)#0
%c5=getelementptr inbounds i8,i8*%c4,i64 -4
%c6=bitcast i8*%c5 to i32*
store i32 1342177296,i32*%c6,align 4
store i8*%c4,i8**%c,align 8
%c7=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%c8=bitcast i8*%c4 to i8**
store i8*%c7,i8**%c8,align 8
%c9=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%da=getelementptr inbounds i8,i8*%c4,i64 8
%db=bitcast i8*%da to i8**
store i8*%c9,i8**%db,align 8
%dc=getelementptr inbounds i8,i8*%c4,i64 16
%dd=bitcast i8*%dc to i32*
store i32 3,i32*%dd,align 4
%de=call i8*@sml_alloc(i32 inreg 20)#0
%df=getelementptr inbounds i8,i8*%de,i64 -4
%dg=bitcast i8*%df to i32*
store i32 1342177296,i32*%dg,align 4
%dh=load i8*,i8**%c,align 8
%di=bitcast i8*%de to i8**
store i8*%dh,i8**%di,align 8
%dj=load i8*,i8**%d,align 8
%dk=getelementptr inbounds i8,i8*%de,i64 8
%dl=bitcast i8*%dk to i8**
store i8*%dj,i8**%dl,align 8
%dm=getelementptr inbounds i8,i8*%de,i64 16
%dn=bitcast i8*%dm to i32*
store i32 3,i32*%dn,align 4
ret i8*%de
do:
ret i8*null
}
define internal fastcc i8*@_SMLLLN24SMLSharp__SQL__ODBCBackend12getTableNameE_271(i64 inreg%a)unnamed_addr#2 gc"smlsharp"{
%b=alloca i8*,align 8
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%g,label%f
f:
call void@sml_check(i32 inreg%d)
br label%g
g:
%h=inttoptr i64%a to i8*
%i=call fastcc i8*@_SMLFN8UNIXODBC5FetchE(i32 inreg 0)
%j=getelementptr inbounds i8,i8*%i,i64 16
%k=bitcast i8*%j to i8*(i8*,i8*)**
%l=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%k,align 8
%m=bitcast i8*%i to i8**
%n=load i8*,i8**%m,align 8
store i8*%n,i8**%b,align 8
%o=call i8*@sml_alloc(i32 inreg 8)#0
%p=getelementptr inbounds i8,i8*%o,i64 -4
%q=bitcast i8*%p to i32*
store i32 8,i32*%q,align 4
%r=bitcast i8*%o to i64*
store i64%a,i64*%r,align 4
%s=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%t=call fastcc i8*%l(i8*inreg%s,i8*inreg%o)
%u=bitcast i8*%t to i32*
%v=load i32,i32*%u,align 4
%w=load i32,i32*@_SMLZN8UNIXODBC11SQL__NO__DATAE,align 4
%x=icmp eq i32%v,%w
br i1%x,label%aC,label%y
y:
%z=load i32,i32*@_SMLZN8UNIXODBC15SQL__HANDLE__STMTE,align 4
%A=call i8*@sml_alloc(i32 inreg 20)#0
%B=bitcast i8*%A to i32*
%C=getelementptr inbounds i8,i8*%A,i64 -4
%D=bitcast i8*%C to i32*
store i32 1342177296,i32*%D,align 4
%E=getelementptr inbounds i8,i8*%A,i64 4
%F=bitcast i8*%E to i32*
store i32 0,i32*%F,align 1
store i32%z,i32*%B,align 4
%G=getelementptr inbounds i8,i8*%A,i64 8
%H=bitcast i8*%G to i8**
store i8*%h,i8**%H,align 8
%I=getelementptr inbounds i8,i8*%A,i64 16
%J=bitcast i8*%I to i32*
store i32 0,i32*%J,align 4
call fastcc void@_SMLLLN24SMLSharp__SQL__ODBCBackend11checkReturnE_144(i8*inreg getelementptr inbounds(<{[4x i8],i32,[9x i8]}>,<{[4x i8],i32,[9x i8]}>*@am,i64 0,i32 2,i64 0),i8*inreg%A,i32 inreg%v)
%K=call i8*@sml_alloc(i32 inreg 20)#0
%L=getelementptr inbounds i8,i8*%K,i64 -4
%M=bitcast i8*%L to i32*
store i32 1342177296,i32*%M,align 4
%N=getelementptr inbounds i8,i8*%K,i64 12
%O=bitcast i8*%N to i32*
store i32 0,i32*%O,align 1
%P=bitcast i8*%K to i8**
store i8*%h,i8**%P,align 8
%Q=getelementptr inbounds i8,i8*%K,i64 8
%R=bitcast i8*%Q to i32*
store i32 3,i32*%R,align 4
%S=getelementptr inbounds i8,i8*%K,i64 16
%T=bitcast i8*%S to i32*
store i32 0,i32*%T,align 4
%U=call fastcc i8*@_SMLLLN24SMLSharp__SQL__ODBCBackend7getDataE_154(i8*inreg%K)
%V=icmp eq i8*%U,null
br i1%V,label%W,label%ao
W:
%X=load i8*,i8**@_SMLZN19SMLSharp__SQL__Errors6FormatE,align 8
store i8*%X,i8**%b,align 8
%Y=call i8*@sml_alloc(i32 inreg 20)#0
%Z=getelementptr inbounds i8,i8*%Y,i64 -4
%aa=bitcast i8*%Z to i32*
store i32 1342177296,i32*%aa,align 4
store i8*%Y,i8**%c,align 8
%ab=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%ac=bitcast i8*%Y to i8**
store i8*%ab,i8**%ac,align 8
%ad=getelementptr inbounds i8,i8*%Y,i64 8
%ae=bitcast i8*%ad to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[42x i8]}>,<{[4x i8],i32,[42x i8]}>*@an,i64 0,i32 2,i64 0),i8**%ae,align 8
%af=getelementptr inbounds i8,i8*%Y,i64 16
%ag=bitcast i8*%af to i32*
store i32 3,i32*%ag,align 4
%ah=call i8*@sml_alloc(i32 inreg 60)#0
%ai=getelementptr inbounds i8,i8*%ah,i64 -4
%aj=bitcast i8*%ai to i32*
store i32 1342177336,i32*%aj,align 4
%ak=getelementptr inbounds i8,i8*%ah,i64 56
%al=bitcast i8*%ak to i32*
store i32 1,i32*%al,align 4
%am=load i8*,i8**%c,align 8
%an=bitcast i8*%ah to i8**
store i8*%am,i8**%an,align 8
call void@sml_raise(i8*inreg%ah)#1
unreachable
ao:
%ap=bitcast i8*%U to i8**
%aq=load i8*,i8**%ap,align 8
store i8*%aq,i8**%b,align 8
%ar=call fastcc i8*@_SMLLLN24SMLSharp__SQL__ODBCBackend12getTableNameE_271(i64 inreg%a)
store i8*%ar,i8**%c,align 8
%as=call i8*@sml_alloc(i32 inreg 20)#0
%at=getelementptr inbounds i8,i8*%as,i64 -4
%au=bitcast i8*%at to i32*
store i32 1342177296,i32*%au,align 4
%av=load i8*,i8**%b,align 8
%aw=bitcast i8*%as to i8**
store i8*%av,i8**%aw,align 8
%ax=load i8*,i8**%c,align 8
%ay=getelementptr inbounds i8,i8*%as,i64 8
%az=bitcast i8*%ay to i8**
store i8*%ax,i8**%az,align 8
%aA=getelementptr inbounds i8,i8*%as,i64 16
%aB=bitcast i8*%aA to i32*
store i32 3,i32*%aB,align 4
ret i8*%as
aC:
ret i8*null
}
define internal fastcc i8*@_SMLLL3tbl_288(i8 inreg%a)#2 gc"smlsharp"{
%b=load atomic i32,i32*@sml_check_flag unordered,align 4
%c=icmp eq i32%b,0
br i1%c,label%e,label%d
d:
tail call void@sml_check(i32 inreg%b)
br label%e
e:
switch i8%a,label%f[
i8 37,label%k
i8 92,label%j
i8 95,label%h
]
f:
%g=tail call fastcc i8*@_SMLFN6String3strE(i8 inreg%a)
ret i8*%g
h:
%i=phi i8*[getelementptr inbounds(<{[4x i8],i32,[3x i8]}>,<{[4x i8],i32,[3x i8]}>*@as,i64 0,i32 2,i64 0),%e],[getelementptr inbounds(<{[4x i8],i32,[3x i8]}>,<{[4x i8],i32,[3x i8]}>*@ar,i64 0,i32 2,i64 0),%j],[getelementptr inbounds(<{[4x i8],i32,[3x i8]}>,<{[4x i8],i32,[3x i8]}>*@aq,i64 0,i32 2,i64 0),%k]
ret i8*%i
j:
br label%h
k:
br label%h
}
define internal fastcc i8*@_SMLLLN24SMLSharp__SQL__ODBCBackend17getDatabaseSchemaE_295(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
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**%e,align 8
store i8*%b,i8**%c,align 8
%g=load atomic i32,i32*@sml_check_flag unordered,align 4
%h=icmp eq i32%g,0
br i1%h,label%j,label%i
i:
call void@sml_check(i32 inreg%g)
br label%j
j:
%k=call i8*@sml_alloc(i32 inreg 8)#0
%l=getelementptr inbounds i8,i8*%k,i64 -4
%m=bitcast i8*%l to i32*
store i32 536870920,i32*%m,align 4
store i8*%k,i8**%f,align 8
%n=load i8*,i8**@_SMLZN8UNIXODBC11NULL__HANDLEE,align 8
%o=bitcast i8*%k to i8**
store i8*%n,i8**%o,align 8
%p=load i32,i32*@_SMLZN8UNIXODBC15SQL__HANDLE__STMTE,align 4
%q=bitcast i8**%e to i8***
%r=load i8**,i8***%q,align 8
%s=load i8*,i8**%r,align 8
%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
store i8*%t,i8**%d,align 8
%w=getelementptr inbounds i8,i8*%t,i64 4
%x=bitcast i8*%w to i32*
store i32 0,i32*%x,align 1
%y=bitcast i8*%t to i32*
store i32%p,i32*%y,align 4
%z=getelementptr inbounds i8,i8*%t,i64 8
%A=bitcast i8*%z to i8**
store i8*%s,i8**%A,align 8
%B=load i8*,i8**%f,align 8
%C=getelementptr inbounds i8,i8*%t,i64 16
%D=bitcast i8*%C to i8**
store i8*%B,i8**%D,align 8
%E=getelementptr inbounds i8,i8*%t,i64 24
%F=bitcast i8*%E to i32*
store i32 4,i32*%F,align 4
%G=load i32,i32*@_SMLZN8UNIXODBC15SQL__HANDLE__STMTE,align 4
%H=load i8**,i8***%q,align 8
store i8*null,i8**%e,align 8
%I=load i8*,i8**%H,align 8
%J=call i8*@sml_alloc(i32 inreg 20)#0
%K=getelementptr inbounds i8,i8*%J,i64 -4
%L=bitcast i8*%K to i32*
store i32 1342177296,i32*%L,align 4
store i8*%J,i8**%e,align 8
%M=getelementptr inbounds i8,i8*%J,i64 4
%N=bitcast i8*%M to i32*
store i32 0,i32*%N,align 1
%O=bitcast i8*%J to i32*
store i32%G,i32*%O,align 4
%P=getelementptr inbounds i8,i8*%J,i64 8
%Q=bitcast i8*%P to i8**
store i8*%I,i8**%Q,align 8
%R=getelementptr inbounds i8,i8*%J,i64 16
%S=bitcast i8*%R to i32*
store i32 0,i32*%S,align 4
%T=call fastcc i8*@_SMLFN8UNIXODBC11AllocHandleE(i32 inreg 0)
%U=getelementptr inbounds i8,i8*%T,i64 16
%V=bitcast i8*%U to i8*(i8*,i8*)**
%W=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%V,align 8
%X=bitcast i8*%T to i8**
%Y=load i8*,i8**%X,align 8
%Z=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aa=call fastcc i8*%W(i8*inreg%Y,i8*inreg%Z)
%ab=bitcast i8*%aa to i32*
%ac=load i32,i32*%ab,align 4
%ad=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
call fastcc void@_SMLLLN24SMLSharp__SQL__ODBCBackend11checkReturnE_144(i8*inreg getelementptr inbounds(<{[4x i8],i32,[15x i8]}>,<{[4x i8],i32,[15x i8]}>*@aA,i64 0,i32 2,i64 0),i8*inreg%ad,i32 inreg%ac)
%ae=call fastcc i8*@_SMLFN6String9translateE(i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@at,i64 0,i32 2)to i8*))
%af=getelementptr inbounds i8,i8*%ae,i64 16
%ag=bitcast i8*%af to i8*(i8*,i8*)**
%ah=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%ag,align 8
%ai=bitcast i8*%ae to i8**
%aj=load i8*,i8**%ai,align 8
%ak=load i8*,i8**%c,align 8
%al=call fastcc i8*%ah(i8*inreg%aj,i8*inreg%ak)
store i8*%al,i8**%d,align 8
%am=bitcast i8**%f to i8***
%an=load i8**,i8***%am,align 8
%ao=load i8*,i8**%an,align 8
%ap=getelementptr inbounds i8,i8*%al,i64 -4
%aq=bitcast i8*%ap to i32*
%ar=load i32,i32*%aq,align 4
%as=and i32%ar,268435455
%at=add nsw i32%as,-1
%au=call i8*@sml_alloc(i32 inreg 76)#0
%av=getelementptr inbounds i8,i8*%au,i64 -4
%aw=bitcast i8*%av to i32*
store i32 1342177352,i32*%aw,align 4
store i8*%au,i8**%e,align 8
%ax=getelementptr inbounds i8,i8*%au,i64 20
call void@llvm.memset.p0i8.i32(i8*%ax,i8 0,i32 52,i1 false)
%ay=bitcast i8*%au to i8**
store i8*%ao,i8**%ay,align 8
%az=getelementptr inbounds i8,i8*%au,i64 8
%aA=bitcast i8*%az to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[1x i8]}>,<{[4x i8],i32,[1x i8]}>*@au,i64 0,i32 2,i64 0),i8**%aA,align 8
%aB=getelementptr inbounds i8,i8*%au,i64 16
%aC=bitcast i8*%aB to i32*
store i32 0,i32*%aC,align 4
%aD=getelementptr inbounds i8,i8*%au,i64 24
%aE=bitcast i8*%aD to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[1x i8]}>,<{[4x i8],i32,[1x i8]}>*@au,i64 0,i32 2,i64 0),i8**%aE,align 8
%aF=getelementptr inbounds i8,i8*%au,i64 32
%aG=bitcast i8*%aF to i32*
store i32 0,i32*%aG,align 4
%aH=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aI=getelementptr inbounds i8,i8*%au,i64 40
%aJ=bitcast i8*%aI to i8**
store i8*%aH,i8**%aJ,align 8
%aK=getelementptr inbounds i8,i8*%au,i64 48
%aL=bitcast i8*%aK to i32*
store i32%at,i32*%aL,align 4
%aM=getelementptr inbounds i8,i8*%au,i64 56
%aN=bitcast i8*%aM to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[2x i8]}>,<{[4x i8],i32,[2x i8]}>*@av,i64 0,i32 2,i64 0),i8**%aN,align 8
%aO=getelementptr inbounds i8,i8*%au,i64 64
%aP=bitcast i8*%aO to i32*
store i32 1,i32*%aP,align 4
%aQ=getelementptr inbounds i8,i8*%au,i64 72
%aR=bitcast i8*%aQ to i32*
store i32 170,i32*%aR,align 4
%aS=load i32,i32*@_SMLZN8UNIXODBC15SQL__HANDLE__STMTE,align 4
%aT=call i8*@sml_alloc(i32 inreg 20)#0
%aU=getelementptr inbounds i8,i8*%aT,i64 -4
%aV=bitcast i8*%aU to i32*
store i32 1342177296,i32*%aV,align 4
store i8*%aT,i8**%d,align 8
%aW=getelementptr inbounds i8,i8*%aT,i64 4
%aX=bitcast i8*%aW to i32*
store i32 0,i32*%aX,align 1
%aY=bitcast i8*%aT to i32*
store i32%aS,i32*%aY,align 4
%aZ=getelementptr inbounds i8,i8*%aT,i64 8
%a0=bitcast i8*%aZ to i8**
store i8*%ao,i8**%a0,align 8
%a1=getelementptr inbounds i8,i8*%aT,i64 16
%a2=bitcast i8*%a1 to i32*
store i32 0,i32*%a2,align 4
%a3=call fastcc i8*@_SMLFN8UNIXODBC7ColumnsE(i32 inreg 0)
%a4=getelementptr inbounds i8,i8*%a3,i64 16
%a5=bitcast i8*%a4 to i8*(i8*,i8*)**
%a6=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%a5,align 8
%a7=bitcast i8*%a3 to i8**
%a8=load i8*,i8**%a7,align 8
%a9=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%ba=call fastcc i8*%a6(i8*inreg%a8,i8*inreg%a9)
%bb=bitcast i8*%ba to i32*
%bc=load i32,i32*%bb,align 4
%bd=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
call fastcc void@_SMLLLN24SMLSharp__SQL__ODBCBackend11checkReturnE_144(i8*inreg getelementptr inbounds(<{[4x i8],i32,[11x i8]}>,<{[4x i8],i32,[11x i8]}>*@aw,i64 0,i32 2,i64 0),i8*inreg%bd,i32 inreg%bc)
%be=bitcast i8**%f to i64**
%bf=load i64*,i64**%be,align 8
%bg=load i64,i64*%bf,align 4
%bh=call fastcc i8*@_SMLLLN24SMLSharp__SQL__ODBCBackend13getColumnInfoE_185(i64 inreg%bg)
store i8*%bh,i8**%d,align 8
%bi=load i32,i32*@_SMLZN8UNIXODBC15SQL__HANDLE__STMTE,align 4
%bj=load i8**,i8***%am,align 8
store i8*null,i8**%f,align 8
%bk=load i8*,i8**%bj,align 8
%bl=call i8*@sml_alloc(i32 inreg 20)#0
%bm=getelementptr inbounds i8,i8*%bl,i64 -4
%bn=bitcast i8*%bm to i32*
store i32 1342177296,i32*%bn,align 4
store i8*%bl,i8**%e,align 8
%bo=getelementptr inbounds i8,i8*%bl,i64 4
%bp=bitcast i8*%bo to i32*
store i32 0,i32*%bp,align 1
%bq=bitcast i8*%bl to i32*
store i32%bi,i32*%bq,align 4
%br=getelementptr inbounds i8,i8*%bl,i64 8
%bs=bitcast i8*%br to i8**
store i8*%bk,i8**%bs,align 8
%bt=getelementptr inbounds i8,i8*%bl,i64 16
%bu=bitcast i8*%bt to i32*
store i32 0,i32*%bu,align 4
%bv=call fastcc i8*@_SMLFN8UNIXODBC10FreeHandleE(i32 inreg 0)
%bw=getelementptr inbounds i8,i8*%bv,i64 16
%bx=bitcast i8*%bw to i8*(i8*,i8*)**
%by=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bx,align 8
%bz=bitcast i8*%bv to i8**
%bA=load i8*,i8**%bz,align 8
%bB=load i8*,i8**%e,align 8
%bC=call fastcc i8*%by(i8*inreg%bA,i8*inreg%bB)
%bD=bitcast i8*%bC to i32*
%bE=load i32,i32*%bD,align 4
%bF=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
call fastcc void@_SMLLLN24SMLSharp__SQL__ODBCBackend11checkReturnE_144(i8*inreg getelementptr inbounds(<{[4x i8],i32,[14x i8]}>,<{[4x i8],i32,[14x i8]}>*@ax,i64 0,i32 2,i64 0),i8*inreg%bF,i32 inreg%bE)
%bG=call i8*@sml_alloc(i32 inreg 20)#0
%bH=getelementptr inbounds i8,i8*%bG,i64 -4
%bI=bitcast i8*%bH to i32*
store i32 1342177296,i32*%bI,align 4
%bJ=load i8*,i8**%c,align 8
%bK=bitcast i8*%bG to i8**
store i8*%bJ,i8**%bK,align 8
%bL=load i8*,i8**%d,align 8
%bM=getelementptr inbounds i8,i8*%bG,i64 8
%bN=bitcast i8*%bM to i8**
store i8*%bL,i8**%bN,align 8
%bO=getelementptr inbounds i8,i8*%bG,i64 16
%bP=bitcast i8*%bO to i32*
store i32 3,i32*%bP,align 4
ret i8*%bG
}
define fastcc i8*@_SMLFN24SMLSharp__SQL__ODBCBackend17getDatabaseSchemaE(i64 inreg%a)#2 gc"smlsharp"{
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%h,label%g
g:
call void@sml_check(i32 inreg%e)
br label%h
h:
%i=inttoptr i64%a to i8*
%j=call i8*@sml_alloc(i32 inreg 8)#0
%k=getelementptr inbounds i8,i8*%j,i64 -4
%l=bitcast i8*%k to i32*
store i32 536870920,i32*%l,align 4
store i8*%j,i8**%c,align 8
%m=load i8*,i8**@_SMLZN8UNIXODBC11NULL__HANDLEE,align 8
%n=bitcast i8*%j to i8**
store i8*%m,i8**%n,align 8
%o=load i32,i32*@_SMLZN8UNIXODBC15SQL__HANDLE__STMTE,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
store i8*%p,i8**%b,align 8
%s=getelementptr inbounds i8,i8*%p,i64 4
%t=bitcast i8*%s to i32*
store i32 0,i32*%t,align 1
%u=bitcast i8*%p to i32*
store i32%o,i32*%u,align 4
%v=getelementptr inbounds i8,i8*%p,i64 8
%w=bitcast i8*%v to i8**
store i8*%i,i8**%w,align 8
%x=load i8*,i8**%c,align 8
%y=getelementptr inbounds i8,i8*%p,i64 16
%z=bitcast i8*%y to i8**
store i8*%x,i8**%z,align 8
%A=getelementptr inbounds i8,i8*%p,i64 24
%B=bitcast i8*%A to i32*
store i32 4,i32*%B,align 4
%C=load i32,i32*@_SMLZN8UNIXODBC15SQL__HANDLE__STMTE,align 4
%D=call i8*@sml_alloc(i32 inreg 20)#0
%E=getelementptr inbounds i8,i8*%D,i64 -4
%F=bitcast i8*%E to i32*
store i32 1342177296,i32*%F,align 4
store i8*%D,i8**%d,align 8
%G=getelementptr inbounds i8,i8*%D,i64 4
%H=bitcast i8*%G to i32*
store i32 0,i32*%H,align 1
%I=bitcast i8*%D to i32*
store i32%C,i32*%I,align 4
%J=getelementptr inbounds i8,i8*%D,i64 8
%K=bitcast i8*%J to i8**
store i8*%i,i8**%K,align 8
%L=getelementptr inbounds i8,i8*%D,i64 16
%M=bitcast i8*%L to i32*
store i32 0,i32*%M,align 4
%N=call fastcc i8*@_SMLFN8UNIXODBC11AllocHandleE(i32 inreg 0)
%O=getelementptr inbounds i8,i8*%N,i64 16
%P=bitcast i8*%O to i8*(i8*,i8*)**
%Q=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%P,align 8
%R=bitcast i8*%N to i8**
%S=load i8*,i8**%R,align 8
%T=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%U=call fastcc i8*%Q(i8*inreg%S,i8*inreg%T)
%V=bitcast i8*%U to i32*
%W=load i32,i32*%V,align 4
%X=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
call fastcc void@_SMLLLN24SMLSharp__SQL__ODBCBackend11checkReturnE_144(i8*inreg getelementptr inbounds(<{[4x i8],i32,[15x i8]}>,<{[4x i8],i32,[15x i8]}>*@aA,i64 0,i32 2,i64 0),i8*inreg%X,i32 inreg%W)
%Y=bitcast i8**%c to i8***
%Z=load i8**,i8***%Y,align 8
%aa=load i8*,i8**%Z,align 8
%ab=call i8*@sml_alloc(i32 inreg 76)#0
%ac=getelementptr inbounds i8,i8*%ab,i64 -4
%ad=bitcast i8*%ac to i32*
store i32 1342177352,i32*%ad,align 4
store i8*%ab,i8**%b,align 8
%ae=getelementptr inbounds i8,i8*%ab,i64 20
call void@llvm.memset.p0i8.i32(i8*%ae,i8 0,i32 52,i1 false)
%af=bitcast i8*%ab to i8**
store i8*%aa,i8**%af,align 8
%ag=getelementptr inbounds i8,i8*%ab,i64 8
%ah=bitcast i8*%ag to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[1x i8]}>,<{[4x i8],i32,[1x i8]}>*@au,i64 0,i32 2,i64 0),i8**%ah,align 8
%ai=getelementptr inbounds i8,i8*%ab,i64 16
%aj=bitcast i8*%ai to i32*
store i32 0,i32*%aj,align 4
%ak=getelementptr inbounds i8,i8*%ab,i64 24
%al=bitcast i8*%ak to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[1x i8]}>,<{[4x i8],i32,[1x i8]}>*@au,i64 0,i32 2,i64 0),i8**%al,align 8
%am=getelementptr inbounds i8,i8*%ab,i64 32
%an=bitcast i8*%am to i32*
store i32 0,i32*%an,align 4
%ao=getelementptr inbounds i8,i8*%ab,i64 40
%ap=bitcast i8*%ao to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[2x i8]}>,<{[4x i8],i32,[2x i8]}>*@av,i64 0,i32 2,i64 0),i8**%ap,align 8
%aq=getelementptr inbounds i8,i8*%ab,i64 48
%ar=bitcast i8*%aq to i32*
store i32 1,i32*%ar,align 4
%as=getelementptr inbounds i8,i8*%ab,i64 56
%at=bitcast i8*%as to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[11x i8]}>,<{[4x i8],i32,[11x i8]}>*@ao,i64 0,i32 2,i64 0),i8**%at,align 8
%au=getelementptr inbounds i8,i8*%ab,i64 64
%av=bitcast i8*%au to i32*
store i32 10,i32*%av,align 4
%aw=getelementptr inbounds i8,i8*%ab,i64 72
%ax=bitcast i8*%aw to i32*
store i32 170,i32*%ax,align 4
%ay=load i32,i32*@_SMLZN8UNIXODBC15SQL__HANDLE__STMTE,align 4
%az=call i8*@sml_alloc(i32 inreg 20)#0
%aA=getelementptr inbounds i8,i8*%az,i64 -4
%aB=bitcast i8*%aA to i32*
store i32 1342177296,i32*%aB,align 4
store i8*%az,i8**%d,align 8
%aC=getelementptr inbounds i8,i8*%az,i64 4
%aD=bitcast i8*%aC to i32*
store i32 0,i32*%aD,align 1
%aE=bitcast i8*%az to i32*
store i32%ay,i32*%aE,align 4
%aF=getelementptr inbounds i8,i8*%az,i64 8
%aG=bitcast i8*%aF to i8**
store i8*%aa,i8**%aG,align 8
%aH=getelementptr inbounds i8,i8*%az,i64 16
%aI=bitcast i8*%aH to i32*
store i32 0,i32*%aI,align 4
%aJ=call fastcc i8*@_SMLFN8UNIXODBC6TablesE(i32 inreg 0)
%aK=getelementptr inbounds i8,i8*%aJ,i64 16
%aL=bitcast i8*%aK to i8*(i8*,i8*)**
%aM=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aL,align 8
%aN=bitcast i8*%aJ to i8**
%aO=load i8*,i8**%aN,align 8
%aP=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aQ=call fastcc i8*%aM(i8*inreg%aO,i8*inreg%aP)
%aR=bitcast i8*%aQ to i32*
%aS=load i32,i32*%aR,align 4
%aT=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
call fastcc void@_SMLLLN24SMLSharp__SQL__ODBCBackend11checkReturnE_144(i8*inreg getelementptr inbounds(<{[4x i8],i32,[10x i8]}>,<{[4x i8],i32,[10x i8]}>*@ap,i64 0,i32 2,i64 0),i8*inreg%aT,i32 inreg%aS)
%aU=bitcast i8**%c to i64**
%aV=load i64*,i64**%aU,align 8
%aW=load i64,i64*%aV,align 4
%aX=call fastcc i8*@_SMLLLN24SMLSharp__SQL__ODBCBackend12getTableNameE_271(i64 inreg%aW)
store i8*%aX,i8**%b,align 8
%aY=load i32,i32*@_SMLZN8UNIXODBC15SQL__HANDLE__STMTE,align 4
%aZ=load i8**,i8***%Y,align 8
store i8*null,i8**%c,align 8
%a0=load i8*,i8**%aZ,align 8
%a1=call i8*@sml_alloc(i32 inreg 20)#0
%a2=getelementptr inbounds i8,i8*%a1,i64 -4
%a3=bitcast i8*%a2 to i32*
store i32 1342177296,i32*%a3,align 4
store i8*%a1,i8**%c,align 8
%a4=getelementptr inbounds i8,i8*%a1,i64 4
%a5=bitcast i8*%a4 to i32*
store i32 0,i32*%a5,align 1
%a6=bitcast i8*%a1 to i32*
store i32%aY,i32*%a6,align 4
%a7=getelementptr inbounds i8,i8*%a1,i64 8
%a8=bitcast i8*%a7 to i8**
store i8*%a0,i8**%a8,align 8
%a9=getelementptr inbounds i8,i8*%a1,i64 16
%ba=bitcast i8*%a9 to i32*
store i32 0,i32*%ba,align 4
%bb=call fastcc i8*@_SMLFN8UNIXODBC10FreeHandleE(i32 inreg 0)
%bc=getelementptr inbounds i8,i8*%bb,i64 16
%bd=bitcast i8*%bc to i8*(i8*,i8*)**
%be=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bd,align 8
%bf=bitcast i8*%bb to i8**
%bg=load i8*,i8**%bf,align 8
%bh=load i8*,i8**%c,align 8
%bi=call fastcc i8*%be(i8*inreg%bg,i8*inreg%bh)
%bj=bitcast i8*%bi to i32*
%bk=load i32,i32*%bj,align 4
%bl=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
call fastcc void@_SMLLLN24SMLSharp__SQL__ODBCBackend11checkReturnE_144(i8*inreg getelementptr inbounds(<{[4x i8],i32,[14x i8]}>,<{[4x i8],i32,[14x i8]}>*@ax,i64 0,i32 2,i64 0),i8*inreg%bl,i32 inreg%bk)
%bm=call fastcc i8*@_SMLFN4List3mapE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%bn=getelementptr inbounds i8,i8*%bm,i64 16
%bo=bitcast i8*%bn to i8*(i8*,i8*)**
%bp=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bo,align 8
%bq=bitcast i8*%bm to i8**
%br=load i8*,i8**%bq,align 8
store i8*%br,i8**%c,align 8
%bs=call i8*@sml_alloc(i32 inreg 12)#0
%bt=getelementptr inbounds i8,i8*%bs,i64 -4
%bu=bitcast i8*%bt to i32*
store i32 1342177288,i32*%bu,align 4
store i8*%bs,i8**%d,align 8
%bv=bitcast i8*%bs to i8**
store i8*%i,i8**%bv,align 8
%bw=getelementptr inbounds i8,i8*%bs,i64 8
%bx=bitcast i8*%bw to i32*
store i32 0,i32*%bx,align 4
%by=call i8*@sml_alloc(i32 inreg 28)#0
%bz=getelementptr inbounds i8,i8*%by,i64 -4
%bA=bitcast i8*%bz to i32*
store i32 1342177304,i32*%bA,align 4
%bB=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%bC=bitcast i8*%by to i8**
store i8*%bB,i8**%bC,align 8
%bD=getelementptr inbounds i8,i8*%by,i64 8
%bE=bitcast i8*%bD to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN24SMLSharp__SQL__ODBCBackend17getDatabaseSchemaE_295 to void(...)*),void(...)**%bE,align 8
%bF=getelementptr inbounds i8,i8*%by,i64 16
%bG=bitcast i8*%bF to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN24SMLSharp__SQL__ODBCBackend17getDatabaseSchemaE_295 to void(...)*),void(...)**%bG,align 8
%bH=getelementptr inbounds i8,i8*%by,i64 24
%bI=bitcast i8*%bH to i32*
store i32 -2147483647,i32*%bI,align 4
%bJ=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bK=call fastcc i8*%bp(i8*inreg%bJ,i8*inreg%by)
%bL=getelementptr inbounds i8,i8*%bK,i64 16
%bM=bitcast i8*%bL to i8*(i8*,i8*)**
%bN=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bM,align 8
%bO=bitcast i8*%bK to i8**
%bP=load i8*,i8**%bO,align 8
%bQ=load i8*,i8**%b,align 8
%bR=tail call fastcc i8*%bN(i8*inreg%bP,i8*inreg%bQ)
ret i8*%bR
}
define fastcc i8*@_SMLFN24SMLSharp__SQL__ODBCBackend7connectE(i8*inreg%a)#2 gc"smlsharp"{
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
store i8*%a,i8**%b,align 8
%g=load atomic i32,i32*@sml_check_flag unordered,align 4
%h=icmp eq i32%g,0
br i1%h,label%j,label%i
i:
call void@sml_check(i32 inreg%g)
br label%j
j:
%k=call i8*@sml_alloc(i32 inreg 8)#0
%l=getelementptr inbounds i8,i8*%k,i64 -4
%m=bitcast i8*%l to i32*
store i32 536870920,i32*%m,align 4
store i8*%k,i8**%f,align 8
%n=load i8*,i8**@_SMLZN8UNIXODBC11NULL__HANDLEE,align 8
%o=bitcast i8*%k to i8**
store i8*%n,i8**%o,align 8
%p=load i8*,i8**getelementptr inbounds(<{[4x i8],i32,i8*}>,<{[4x i8],i32,i8*}>*@_SMLDL146,i64 0,i32 2),align 8
%q=icmp eq i8*%p,null
br i1%q,label%r,label%a5
r:
%s=call i8*@sml_alloc(i32 inreg 8)#0
%t=getelementptr inbounds i8,i8*%s,i64 -4
%u=bitcast i8*%t to i32*
store i32 536870920,i32*%u,align 4
store i8*%s,i8**%d,align 8
%v=load i8*,i8**@_SMLZN8UNIXODBC11NULL__HANDLEE,align 8
%w=bitcast i8*%s to i8**
store i8*%v,i8**%w,align 8
%x=load i32,i32*@_SMLZN8UNIXODBC14SQL__HANDLE__ENVE,align 4
%y=call i8*@sml_alloc(i32 inreg 28)#0
%z=getelementptr inbounds i8,i8*%y,i64 -4
%A=bitcast i8*%z to i32*
store i32 1342177304,i32*%A,align 4
store i8*%y,i8**%c,align 8
%B=getelementptr inbounds i8,i8*%y,i64 4
%C=bitcast i8*%B to i32*
store i32 0,i32*%C,align 1
%D=bitcast i8*%y to i32*
store i32%x,i32*%D,align 4
%E=getelementptr inbounds i8,i8*%y,i64 8
%F=bitcast i8*%E to i8**
store i8*%v,i8**%F,align 8
%G=load i8*,i8**%d,align 8
%H=getelementptr inbounds i8,i8*%y,i64 16
%I=bitcast i8*%H to i8**
store i8*%G,i8**%I,align 8
%J=getelementptr inbounds i8,i8*%y,i64 24
%K=bitcast i8*%J to i32*
store i32 4,i32*%K,align 4
%L=load i32,i32*@_SMLZN8UNIXODBC14SQL__HANDLE__ENVE,align 4
%M=load i8*,i8**@_SMLZN8UNIXODBC11NULL__HANDLEE,align 8
%N=call i8*@sml_alloc(i32 inreg 20)#0
%O=getelementptr inbounds i8,i8*%N,i64 -4
%P=bitcast i8*%O to i32*
store i32 1342177296,i32*%P,align 4
store i8*%N,i8**%e,align 8
%Q=getelementptr inbounds i8,i8*%N,i64 4
%R=bitcast i8*%Q to i32*
store i32 0,i32*%R,align 1
%S=bitcast i8*%N to i32*
store i32%L,i32*%S,align 4
%T=getelementptr inbounds i8,i8*%N,i64 8
%U=bitcast i8*%T to i8**
store i8*%M,i8**%U,align 8
%V=getelementptr inbounds i8,i8*%N,i64 16
%W=bitcast i8*%V to i32*
store i32 0,i32*%W,align 4
%X=call fastcc i8*@_SMLFN8UNIXODBC11AllocHandleE(i32 inreg 0)
%Y=getelementptr inbounds i8,i8*%X,i64 16
%Z=bitcast i8*%Y to i8*(i8*,i8*)**
%aa=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%Z,align 8
%ab=bitcast i8*%X to i8**
%ac=load i8*,i8**%ab,align 8
%ad=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ae=call fastcc i8*%aa(i8*inreg%ac,i8*inreg%ad)
%af=bitcast i8*%ae to i32*
%ag=load i32,i32*%af,align 4
%ah=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
call fastcc void@_SMLLLN24SMLSharp__SQL__ODBCBackend11checkReturnE_144(i8*inreg getelementptr inbounds(<{[4x i8],i32,[15x i8]}>,<{[4x i8],i32,[15x i8]}>*@aA,i64 0,i32 2,i64 0),i8*inreg%ah,i32 inreg%ag)
%ai=bitcast i8**%d to i8***
%aj=load i8**,i8***%ai,align 8
%ak=load i8*,i8**%aj,align 8
%al=load i32,i32*@_SMLZN8UNIXODBC17ATTR__ODBC__VERSIONE,align 4
%am=load i32,i32*@_SMLZN8UNIXODBC8OV__ODBC3E,align 4
%an=call i8*@sml_alloc(i32 inreg 28)#0
%ao=getelementptr inbounds i8,i8*%an,i64 -4
%ap=bitcast i8*%ao to i32*
store i32 1342177304,i32*%ap,align 4
store i8*%an,i8**%c,align 8
%aq=getelementptr inbounds i8,i8*%an,i64 20
%ar=bitcast i8*%aq to i32*
store i32 0,i32*%ar,align 1
%as=bitcast i8*%an to i8**
store i8*%ak,i8**%as,align 8
%at=getelementptr inbounds i8,i8*%an,i64 8
%au=bitcast i8*%at to i32*
store i32%al,i32*%au,align 4
%av=getelementptr inbounds i8,i8*%an,i64 12
%aw=bitcast i8*%av to i32*
store i32%am,i32*%aw,align 4
%ax=getelementptr inbounds i8,i8*%an,i64 16
%ay=bitcast i8*%ax to i32*
store i32 0,i32*%ay,align 4
%az=getelementptr inbounds i8,i8*%an,i64 24
%aA=bitcast i8*%az to i32*
store i32 0,i32*%aA,align 4
%aB=load i32,i32*@_SMLZN8UNIXODBC14SQL__HANDLE__ENVE,align 4
%aC=call i8*@sml_alloc(i32 inreg 20)#0
%aD=getelementptr inbounds i8,i8*%aC,i64 -4
%aE=bitcast i8*%aD to i32*
store i32 1342177296,i32*%aE,align 4
store i8*%aC,i8**%e,align 8
%aF=getelementptr inbounds i8,i8*%aC,i64 4
%aG=bitcast i8*%aF to i32*
store i32 0,i32*%aG,align 1
%aH=bitcast i8*%aC to i32*
store i32%aB,i32*%aH,align 4
%aI=getelementptr inbounds i8,i8*%aC,i64 8
%aJ=bitcast i8*%aI to i8**
store i8*%ak,i8**%aJ,align 8
%aK=getelementptr inbounds i8,i8*%aC,i64 16
%aL=bitcast i8*%aK to i32*
store i32 0,i32*%aL,align 4
%aM=call fastcc i8*@_SMLFN8UNIXODBC10SetEnvAttrE(i32 inreg 0)
%aN=getelementptr inbounds i8,i8*%aM,i64 16
%aO=bitcast i8*%aN to i8*(i8*,i8*)**
%aP=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aO,align 8
%aQ=bitcast i8*%aM to i8**
%aR=load i8*,i8**%aQ,align 8
%aS=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aT=call fastcc i8*%aP(i8*inreg%aR,i8*inreg%aS)
%aU=bitcast i8*%aT to i32*
%aV=load i32,i32*%aU,align 4
%aW=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
call fastcc void@_SMLLLN24SMLSharp__SQL__ODBCBackend11checkReturnE_144(i8*inreg getelementptr inbounds(<{[4x i8],i32,[14x i8]}>,<{[4x i8],i32,[14x i8]}>*@az,i64 0,i32 2,i64 0),i8*inreg%aW,i32 inreg%aV)
%aX=load i8**,i8***%ai,align 8
store i8*null,i8**%d,align 8
%aY=load i8*,i8**%aX,align 8
%aZ=call i8*@sml_alloc(i32 inreg 12)#0
%a0=getelementptr inbounds i8,i8*%aZ,i64 -4
%a1=bitcast i8*%a0 to i32*
store i32 1342177288,i32*%a1,align 4
%a2=bitcast i8*%aZ to i8**
store i8*%aY,i8**%a2,align 8
%a3=getelementptr inbounds i8,i8*%aZ,i64 8
%a4=bitcast i8*%a3 to i32*
store i32 0,i32*%a4,align 4
call void@sml_write(i8*inreg bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*}>,<{[4x i8],i32,i8*}>*@_SMLDL146,i64 0,i32 2)to i8*),i8**inreg getelementptr inbounds(<{[4x i8],i32,i8*}>,<{[4x i8],i32,i8*}>*@_SMLDL146,i64 0,i32 2),i8*inreg%aZ)#0
br label%a8
a5:
%a6=bitcast i8*%p to i8**
%a7=load i8*,i8**%a6,align 8
br label%a8
a8:
%a9=phi i8*[%aY,%r],[%a7,%a5]
%ba=load i32,i32*@_SMLZN8UNIXODBC14SQL__HANDLE__DBCE,align 4
%bb=call i8*@sml_alloc(i32 inreg 28)#0
%bc=getelementptr inbounds i8,i8*%bb,i64 -4
%bd=bitcast i8*%bc to i32*
store i32 1342177304,i32*%bd,align 4
store i8*%bb,i8**%c,align 8
%be=getelementptr inbounds i8,i8*%bb,i64 4
%bf=bitcast i8*%be to i32*
store i32 0,i32*%bf,align 1
%bg=bitcast i8*%bb to i32*
store i32%ba,i32*%bg,align 4
%bh=getelementptr inbounds i8,i8*%bb,i64 8
%bi=bitcast i8*%bh to i8**
store i8*%a9,i8**%bi,align 8
%bj=load i8*,i8**%f,align 8
%bk=getelementptr inbounds i8,i8*%bb,i64 16
%bl=bitcast i8*%bk to i8**
store i8*%bj,i8**%bl,align 8
%bm=getelementptr inbounds i8,i8*%bb,i64 24
%bn=bitcast i8*%bm to i32*
store i32 4,i32*%bn,align 4
%bo=load i32,i32*@_SMLZN8UNIXODBC14SQL__HANDLE__DBCE,align 4
%bp=call i8*@sml_alloc(i32 inreg 20)#0
%bq=getelementptr inbounds i8,i8*%bp,i64 -4
%br=bitcast i8*%bq to i32*
store i32 1342177296,i32*%br,align 4
store i8*%bp,i8**%d,align 8
%bs=getelementptr inbounds i8,i8*%bp,i64 4
%bt=bitcast i8*%bs to i32*
store i32 0,i32*%bt,align 1
%bu=bitcast i8*%bp to i32*
store i32%bo,i32*%bu,align 4
%bv=getelementptr inbounds i8,i8*%bp,i64 8
%bw=bitcast i8*%bv to i8**
store i8*%a9,i8**%bw,align 8
%bx=getelementptr inbounds i8,i8*%bp,i64 16
%by=bitcast i8*%bx to i32*
store i32 0,i32*%by,align 4
%bz=call fastcc i8*@_SMLFN8UNIXODBC11AllocHandleE(i32 inreg 0)
%bA=getelementptr inbounds i8,i8*%bz,i64 16
%bB=bitcast i8*%bA to i8*(i8*,i8*)**
%bC=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bB,align 8
%bD=bitcast i8*%bz to i8**
%bE=load i8*,i8**%bD,align 8
%bF=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bG=call fastcc i8*%bC(i8*inreg%bE,i8*inreg%bF)
%bH=bitcast i8*%bG to i32*
%bI=load i32,i32*%bH,align 4
%bJ=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
call fastcc void@_SMLLLN24SMLSharp__SQL__ODBCBackend11checkReturnE_144(i8*inreg getelementptr inbounds(<{[4x i8],i32,[15x i8]}>,<{[4x i8],i32,[15x i8]}>*@aA,i64 0,i32 2,i64 0),i8*inreg%bJ,i32 inreg%bI)
%bK=load i8*,i8**@_SMLZN4Char7isSpaceE,align 8
%bL=call fastcc i8*@_SMLFN6String6fieldsE(i8*inreg%bK)
%bM=getelementptr inbounds i8,i8*%bL,i64 16
%bN=bitcast i8*%bM to i8*(i8*,i8*)**
%bO=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bN,align 8
%bP=bitcast i8*%bL to i8**
%bQ=load i8*,i8**%bP,align 8
%bR=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%bS=call fastcc i8*%bO(i8*inreg%bQ,i8*inreg%bR)
%bT=icmp eq i8*%bS,null
br i1%bT,label%bU,label%bV
bU:
store i8*null,i8**%f,align 8
br label%dz
bV:
%bW=bitcast i8*%bS to i8**
%bX=load i8*,i8**%bW,align 8
store i8*%bX,i8**%b,align 8
%bY=getelementptr inbounds i8,i8*%bS,i64 8
%bZ=bitcast i8*%bY to i8**
%b0=load i8*,i8**%bZ,align 8
%b1=icmp eq i8*%b0,null
br i1%b1,label%b2,label%b3
b2:
store i8*null,i8**%f,align 8
br label%dz
b3:
%b4=bitcast i8*%b0 to i8**
%b5=load i8*,i8**%b4,align 8
store i8*%b5,i8**%c,align 8
%b6=getelementptr inbounds i8,i8*%b0,i64 8
%b7=bitcast i8*%b6 to i8**
%b8=load i8*,i8**%b7,align 8
%b9=icmp eq i8*%b8,null
br i1%b9,label%ca,label%cb
ca:
store i8*null,i8**%c,align 8
store i8*null,i8**%f,align 8
br label%dz
cb:
%cc=bitcast i8*%b8 to i8**
%cd=load i8*,i8**%cc,align 8
store i8*%cd,i8**%d,align 8
%ce=getelementptr inbounds i8,i8*%b8,i64 8
%cf=bitcast i8*%ce to i8**
%cg=load i8*,i8**%cf,align 8
%ch=icmp eq i8*%cg,null
br i1%ch,label%ci,label%dy
ci:
%cj=call i8*@sml_alloc(i32 inreg 28)#0
%ck=getelementptr inbounds i8,i8*%cj,i64 -4
%cl=bitcast i8*%ck to i32*
store i32 1342177304,i32*%cl,align 4
%cm=load i8*,i8**%b,align 8
%cn=bitcast i8*%cj to i8**
store i8*%cm,i8**%cn,align 8
%co=load i8*,i8**%c,align 8
%cp=getelementptr inbounds i8,i8*%cj,i64 8
%cq=bitcast i8*%cp to i8**
store i8*%co,i8**%cq,align 8
%cr=load i8*,i8**%d,align 8
%cs=getelementptr inbounds i8,i8*%cj,i64 16
%ct=bitcast i8*%cs to i8**
store i8*%cr,i8**%ct,align 8
%cu=getelementptr inbounds i8,i8*%cj,i64 24
%cv=bitcast i8*%cu to i32*
store i32 7,i32*%cv,align 4
%cw=bitcast i8**%f to i8***
%cx=load i8**,i8***%cw,align 8
%cy=load i8*,i8**%cx,align 8
%cz=getelementptr inbounds i8,i8*%cm,i64 -4
%cA=bitcast i8*%cz to i32*
%cB=load i32,i32*%cA,align 4
%cC=and i32%cB,268435455
%cD=add nsw i32%cC,-1
%cE=getelementptr inbounds i8,i8*%co,i64 -4
%cF=bitcast i8*%cE to i32*
%cG=load i32,i32*%cF,align 4
%cH=and i32%cG,268435455
%cI=add nsw i32%cH,-1
%cJ=getelementptr inbounds i8,i8*%cr,i64 -4
%cK=bitcast i8*%cJ to i32*
%cL=load i32,i32*%cK,align 4
%cM=and i32%cL,268435455
%cN=add nsw i32%cM,-1
%cO=call i8*@sml_alloc(i32 inreg 60)#0
%cP=getelementptr inbounds i8,i8*%cO,i64 -4
%cQ=bitcast i8*%cP to i32*
store i32 1342177336,i32*%cQ,align 4
store i8*%cO,i8**%e,align 8
%cR=getelementptr inbounds i8,i8*%cO,i64 20
call void@llvm.memset.p0i8.i32(i8*%cR,i8 0,i32 36,i1 false)
%cS=bitcast i8*%cO to i8**
store i8*%cy,i8**%cS,align 8
%cT=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%cU=getelementptr inbounds i8,i8*%cO,i64 8
%cV=bitcast i8*%cU to i8**
store i8*%cT,i8**%cV,align 8
%cW=getelementptr inbounds i8,i8*%cO,i64 16
%cX=bitcast i8*%cW to i32*
store i32%cD,i32*%cX,align 4
%cY=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%cZ=getelementptr inbounds i8,i8*%cO,i64 24
%c0=bitcast i8*%cZ to i8**
store i8*%cY,i8**%c0,align 8
%c1=getelementptr inbounds i8,i8*%cO,i64 32
%c2=bitcast i8*%c1 to i32*
store i32%cI,i32*%c2,align 4
%c3=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%c4=getelementptr inbounds i8,i8*%cO,i64 40
%c5=bitcast i8*%c4 to i8**
store i8*%c3,i8**%c5,align 8
%c6=getelementptr inbounds i8,i8*%cO,i64 48
%c7=bitcast i8*%c6 to i32*
store i32%cN,i32*%c7,align 4
%c8=getelementptr inbounds i8,i8*%cO,i64 56
%c9=bitcast i8*%c8 to i32*
store i32 42,i32*%c9,align 4
%da=load i32,i32*@_SMLZN8UNIXODBC14SQL__HANDLE__DBCE,align 4
%db=call i8*@sml_alloc(i32 inreg 20)#0
%dc=getelementptr inbounds i8,i8*%db,i64 -4
%dd=bitcast i8*%dc to i32*
store i32 1342177296,i32*%dd,align 4
store i8*%db,i8**%b,align 8
%de=getelementptr inbounds i8,i8*%db,i64 4
%df=bitcast i8*%de to i32*
store i32 0,i32*%df,align 1
%dg=bitcast i8*%db to i32*
store i32%da,i32*%dg,align 4
%dh=getelementptr inbounds i8,i8*%db,i64 8
%di=bitcast i8*%dh to i8**
store i8*%cy,i8**%di,align 8
%dj=getelementptr inbounds i8,i8*%db,i64 16
%dk=bitcast i8*%dj to i32*
store i32 0,i32*%dk,align 4
%dl=call fastcc i8*@_SMLFN8UNIXODBC7ConnectE(i32 inreg 0)
%dm=getelementptr inbounds i8,i8*%dl,i64 16
%dn=bitcast i8*%dm to i8*(i8*,i8*)**
%do=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%dn,align 8
%dp=bitcast i8*%dl to i8**
%dq=load i8*,i8**%dp,align 8
%dr=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%ds=call fastcc i8*%do(i8*inreg%dq,i8*inreg%dr)
%dt=bitcast i8*%ds to i32*
%du=load i32,i32*%dt,align 4
%dv=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
call fastcc void@_SMLLLN24SMLSharp__SQL__ODBCBackend11checkReturnE_144(i8*inreg getelementptr inbounds(<{[4x i8],i32,[11x i8]}>,<{[4x i8],i32,[11x i8]}>*@aD,i64 0,i32 2,i64 0),i8*inreg%dv,i32 inreg%du)
%dw=load i8**,i8***%cw,align 8
%dx=load i8*,i8**%dw,align 8
ret i8*%dx
dy:
store i8*null,i8**%c,align 8
store i8*null,i8**%d,align 8
store i8*null,i8**%f,align 8
br label%dz
dz:
%dA=load i8*,i8**@_SMLZN19SMLSharp__SQL__Errors7ConnectE,align 8
store i8*%dA,i8**%b,align 8
%dB=call i8*@sml_alloc(i32 inreg 28)#0
%dC=getelementptr inbounds i8,i8*%dB,i64 -4
%dD=bitcast i8*%dC to i32*
store i32 1342177304,i32*%dD,align 4
store i8*%dB,i8**%c,align 8
%dE=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%dF=bitcast i8*%dB to i8**
store i8*%dE,i8**%dF,align 8
%dG=getelementptr inbounds i8,i8*%dB,i64 8
%dH=bitcast i8*%dG to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@aB,i64 0,i32 2,i64 0),i8**%dH,align 8
%dI=getelementptr inbounds i8,i8*%dB,i64 16
%dJ=bitcast i8*%dI to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[30x i8]}>,<{[4x i8],i32,[30x i8]}>*@aC,i64 0,i32 2,i64 0),i8**%dJ,align 8
%dK=getelementptr inbounds i8,i8*%dB,i64 24
%dL=bitcast i8*%dK to i32*
store i32 7,i32*%dL,align 4
%dM=call i8*@sml_alloc(i32 inreg 60)#0
%dN=getelementptr inbounds i8,i8*%dM,i64 -4
%dO=bitcast i8*%dN to i32*
store i32 1342177336,i32*%dO,align 4
%dP=getelementptr inbounds i8,i8*%dM,i64 56
%dQ=bitcast i8*%dP to i32*
store i32 1,i32*%dQ,align 4
%dR=load i8*,i8**%c,align 8
%dS=bitcast i8*%dM to i8**
store i8*%dR,i8**%dS,align 8
call void@sml_raise(i8*inreg%dM)#1
unreachable
}
define fastcc i8*@_SMLFN24SMLSharp__SQL__ODBCBackend8intValueE(i8*inreg%a)#2 gc"smlsharp"{
i:
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%g,label%e
e:
call void@sml_check(i32 inreg%c)
%f=load i8*,i8**%b,align 8
br label%g
g:
%h=phi i8*[%f,%e],[%a,%i]
%j=tail call fastcc i8*@_SMLFN5Int3210fromStringE(i8*inreg%h)
ret i8*%j
}
define fastcc i8*@_SMLFN24SMLSharp__SQL__ODBCBackend11intInfValueE(i8*inreg%a)#2 gc"smlsharp"{
i:
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%g,label%e
e:
call void@sml_check(i32 inreg%c)
%f=load i8*,i8**%b,align 8
br label%g
g:
%h=phi i8*[%f,%e],[%a,%i]
%j=tail call fastcc i8*@_SMLFN6IntInf10fromStringE(i8*inreg%h)
ret i8*%j
}
define fastcc i8*@_SMLFN24SMLSharp__SQL__ODBCBackend9wordValueE(i8*inreg%a)#2 gc"smlsharp"{
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%b,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%h,label%g
g:
call void@sml_check(i32 inreg%e)
br label%h
h:
%i=call fastcc i8*@_SMLFN9StringCvt10scanStringE(i32 inreg 0,i32 inreg 4)
%j=getelementptr inbounds i8,i8*%i,i64 16
%k=bitcast i8*%j to i8*(i8*,i8*)**
%l=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%k,align 8
%m=bitcast i8*%i to i8**
%n=load i8*,i8**%m,align 8
store i8*%n,i8**%d,align 8
%o=call fastcc i8*@_SMLFN6Word324scanE(i32 inreg 0,i32 inreg 4)
%p=getelementptr inbounds i8,i8*%o,i64 16
%q=bitcast i8*%p to i8*(i8*,i8*)**
%r=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%q,align 8
%s=bitcast i8*%o to i8**
%t=load i8*,i8**%s,align 8
store i8*%t,i8**%c,align 8
%u=call i8*@sml_alloc(i32 inreg 4)#0
%v=bitcast i8*%u to i32*
%w=getelementptr inbounds i8,i8*%u,i64 -4
%x=bitcast i8*%w to i32*
store i32 4,i32*%x,align 4
store i32 1,i32*%v,align 4
%y=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%z=call fastcc i8*%r(i8*inreg%y,i8*inreg%u)
%A=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%B=call fastcc i8*%l(i8*inreg%A,i8*inreg%z)
%C=getelementptr inbounds i8,i8*%B,i64 16
%D=bitcast i8*%C to i8*(i8*,i8*)**
%E=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%D,align 8
%F=bitcast i8*%B to i8**
%G=load i8*,i8**%F,align 8
%H=load i8*,i8**%b,align 8
%I=tail call fastcc i8*%E(i8*inreg%G,i8*inreg%H)
ret i8*%I
}
define fastcc i8*@_SMLFN24SMLSharp__SQL__ODBCBackend9realValueE(i8*inreg%a)#2 gc"smlsharp"{
i:
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%g,label%e
e:
call void@sml_check(i32 inreg%c)
%f=load i8*,i8**%b,align 8
br label%g
g:
%h=phi i8*[%f,%e],[%a,%i]
%j=tail call fastcc i8*@_SMLFN6Real6410fromStringE(i8*inreg%h)
ret i8*%j
}
define fastcc i8*@_SMLFN24SMLSharp__SQL__ODBCBackend11real32ValueE(i8*inreg%a)#2 gc"smlsharp"{
i:
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%g,label%e
e:
call void@sml_check(i32 inreg%c)
%f=load i8*,i8**%b,align 8
br label%g
g:
%h=phi i8*[%f,%e],[%a,%i]
%j=tail call fastcc i8*@_SMLFN6Real3210fromStringE(i8*inreg%h)
ret i8*%j
}
define fastcc i8*@_SMLFN24SMLSharp__SQL__ODBCBackend11stringValueE(i8*inreg%a)#4 gc"smlsharp"{
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=call i8*@sml_alloc(i32 inreg 12)#0
%d=getelementptr inbounds i8,i8*%c,i64 -4
%e=bitcast i8*%d to i32*
store i32 1342177288,i32*%e,align 4
%f=load i8*,i8**%b,align 8
%g=bitcast i8*%c to i8**
store i8*%f,i8**%g,align 8
%h=getelementptr inbounds i8,i8*%c,i64 8
%i=bitcast i8*%h to i32*
store i32 1,i32*%i,align 4
ret i8*%c
}
define fastcc i8*@_SMLFN24SMLSharp__SQL__ODBCBackend9charValueE(i8*inreg%a)#2 gc"smlsharp"personality i32(...)*@sml_personality{
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
%c=getelementptr inbounds i8,i8*%a,i64 -4
%d=bitcast i8*%c to i32*
%e=load i32,i32*%d,align 4
%f=and i32%e,268435454
%g=icmp eq i32%f,0
br i1%g,label%p,label%h
h:
%i=load i8,i8*%a,align 1
%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
%m=getelementptr inbounds i8,i8*%j,i64 1
call void@llvm.memset.p0i8.i32(i8*%m,i8 0,i32 7,i1 false)
store i8%i,i8*%j,align 1
%n=getelementptr inbounds i8,i8*%j,i64 8
%o=bitcast i8*%n to i32*
store i32 0,i32*%o,align 4
br label%B
p:
%q=load i8*,i8**@_SMLZ9Subscript,align 8
store i8*%q,i8**%b,align 8
%r=call i8*@sml_alloc(i32 inreg 20)#0
%s=getelementptr inbounds i8,i8*%r,i64 -4
%t=bitcast i8*%s to i32*
store i32 1342177296,i32*%t,align 4
%u=load i8*,i8**%b,align 8
%v=bitcast i8*%r to i8**
store i8*%u,i8**%v,align 8
%w=getelementptr inbounds i8,i8*%r,i64 8
%x=bitcast i8*%w to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@aL,i64 0,i32 2,i64 0),i8**%x,align 8
%y=getelementptr inbounds i8,i8*%r,i64 16
%z=bitcast i8*%y to i32*
store i32 3,i32*%z,align 4
store i8*%r,i8**%b,align 8
%A=icmp eq i8*%u,%q
br i1%A,label%B,label%D
B:
%C=phi i8*[null,%p],[%j,%h]
ret i8*%C
D:
%E=call i8*@sml_alloc(i32 inreg 60)#0
%F=getelementptr inbounds i8,i8*%E,i64 -4
%G=bitcast i8*%F to i32*
store i32 1342177336,i32*%G,align 4
%H=getelementptr inbounds i8,i8*%E,i64 56
%I=bitcast i8*%H to i32*
store i32 1,i32*%I,align 4
%J=load i8*,i8**%b,align 8
%K=bitcast i8*%E to i8**
store i8*%J,i8**%K,align 8
call void@sml_raise(i8*inreg%E)#1
unreachable
}
define fastcc i8*@_SMLFN24SMLSharp__SQL__ODBCBackend14timestampValueE(i8*inreg%a)#2 gc"smlsharp"{
i:
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%g,label%e
e:
call void@sml_check(i32 inreg%c)
%f=load i8*,i8**%b,align 8
br label%g
g:
%h=phi i8*[%f,%e],[%a,%i]
store i8*null,i8**%b,align 8
%j=call fastcc i8*@_SMLFN22SMLSharp__SQL__TimeStamp10fromStringE(i8*inreg%h)
store i8*%j,i8**%b,align 8
%k=call i8*@sml_alloc(i32 inreg 12)#0
%l=getelementptr inbounds i8,i8*%k,i64 -4
%m=bitcast i8*%l to i32*
store i32 1342177288,i32*%m,align 4
%n=load i8*,i8**%b,align 8
%o=bitcast i8*%k to i8**
store i8*%n,i8**%o,align 8
%p=getelementptr inbounds i8,i8*%k,i64 8
%q=bitcast i8*%p to i32*
store i32 1,i32*%q,align 4
ret i8*%k
}
define fastcc i8*@_SMLFN24SMLSharp__SQL__ODBCBackend12numericValueE(i8*inreg%a)#2 gc"smlsharp"{
i:
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%g,label%e
e:
call void@sml_check(i32 inreg%c)
%f=load i8*,i8**%b,align 8
br label%g
g:
%h=phi i8*[%f,%e],[%a,%i]
%j=tail call fastcc i8*@_SMLFN20SMLSharp__SQL__Numeric10fromStringE(i8*inreg%h)
ret i8*%j
}
define fastcc i8*@_SMLFN24SMLSharp__SQL__ODBCBackend9boolValueE(i8*inreg%a)#2 gc"smlsharp"{
%b=alloca i8*,align 8
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
%d=getelementptr inbounds i8,i8*%a,i64 -4
%e=bitcast i8*%d to i32*
%f=load i32,i32*%e,align 4
%g=and i32%f,268435455
%h=icmp eq i32%g,2
br i1%h,label%i,label%n
i:
%j=load i8,i8*%a,align 1
switch i8%j,label%n[
i8 48,label%m
i8 49,label%k
]
k:
%l=phi i8*[bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@aR,i64 0,i32 2)to i8*),%i],[bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@aQ,i64 0,i32 2)to i8*),%m]
ret i8*%l
m:
br label%k
n:
%o=load i8*,i8**@_SMLZN19SMLSharp__SQL__Errors6FormatE,align 8
store i8*%o,i8**%b,align 8
%p=call i8*@sml_alloc(i32 inreg 20)#0
%q=getelementptr inbounds i8,i8*%p,i64 -4
%r=bitcast i8*%q to i32*
store i32 1342177296,i32*%r,align 4
store i8*%p,i8**%c,align 8
%s=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%t=bitcast i8*%p to i8**
store i8*%s,i8**%t,align 8
%u=getelementptr inbounds i8,i8*%p,i64 8
%v=bitcast i8*%u to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@aP,i64 0,i32 2,i64 0),i8**%v,align 8
%w=getelementptr inbounds i8,i8*%p,i64 16
%x=bitcast i8*%w to i32*
store i32 3,i32*%x,align 4
%y=call i8*@sml_alloc(i32 inreg 60)#0
%z=getelementptr inbounds i8,i8*%y,i64 -4
%A=bitcast i8*%z to i32*
store i32 1342177336,i32*%A,align 4
%B=getelementptr inbounds i8,i8*%y,i64 56
%C=bitcast i8*%B to i32*
store i32 1,i32*%C,align 4
%D=load i8*,i8**%c,align 8
%E=bitcast i8*%y to i8**
store i8*%D,i8**%E,align 8
call void@sml_raise(i8*inreg%y)#1
unreachable
}
define internal fastcc i8*@_SMLLLN24SMLSharp__SQL__ODBCBackend8getValueE_333(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN24SMLSharp__SQL__ODBCBackend8getValueE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN24SMLSharp__SQL__ODBCBackend5fetchE_334(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=bitcast i8*%b to i64*
%d=load i64,i64*%c,align 4
%e=tail call fastcc i32@_SMLFN24SMLSharp__SQL__ODBCBackend5fetchE(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*@_SMLLLN24SMLSharp__SQL__ODBCBackend9execQueryE_335(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN24SMLSharp__SQL__ODBCBackend9execQueryE(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*@_SMLLLN24SMLSharp__SQL__ODBCBackend9closeConnE_336(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=bitcast i8*%b to i64*
%d=load i64,i64*%c,align 4
tail call fastcc void@_SMLFN24SMLSharp__SQL__ODBCBackend9closeConnE(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*@_SMLLLN24SMLSharp__SQL__ODBCBackend8closeResE_337(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=bitcast i8*%b to i64*
%d=load i64,i64*%c,align 4
tail call fastcc void@_SMLFN24SMLSharp__SQL__ODBCBackend8closeResE(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*@_SMLLLN24SMLSharp__SQL__ODBCBackend14columnTypeNameE_338(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN24SMLSharp__SQL__ODBCBackend14columnTypeNameE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLL3tbl_341(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=load i8,i8*%b,align 1
%d=tail call fastcc i8*@_SMLLL3tbl_288(i8 inreg%c)
ret i8*%d
}
define internal fastcc i8*@_SMLLLN24SMLSharp__SQL__ODBCBackend17getDatabaseSchemaE_342(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=bitcast i8*%b to i64*
%d=load i64,i64*%c,align 4
%e=tail call fastcc i8*@_SMLFN24SMLSharp__SQL__ODBCBackend17getDatabaseSchemaE(i64 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLLN24SMLSharp__SQL__ODBCBackend7connectE_343(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN24SMLSharp__SQL__ODBCBackend7connectE(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*@_SMLLLN24SMLSharp__SQL__ODBCBackend8intValueE_344(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN24SMLSharp__SQL__ODBCBackend8intValueE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN24SMLSharp__SQL__ODBCBackend11intInfValueE_345(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN24SMLSharp__SQL__ODBCBackend11intInfValueE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN24SMLSharp__SQL__ODBCBackend9wordValueE_346(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN24SMLSharp__SQL__ODBCBackend9wordValueE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN24SMLSharp__SQL__ODBCBackend9realValueE_347(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN24SMLSharp__SQL__ODBCBackend9realValueE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN24SMLSharp__SQL__ODBCBackend11real32ValueE_348(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN24SMLSharp__SQL__ODBCBackend11real32ValueE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN24SMLSharp__SQL__ODBCBackend11stringValueE_349(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN24SMLSharp__SQL__ODBCBackend11stringValueE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN24SMLSharp__SQL__ODBCBackend9charValueE_350(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN24SMLSharp__SQL__ODBCBackend9charValueE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN24SMLSharp__SQL__ODBCBackend14timestampValueE_351(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN24SMLSharp__SQL__ODBCBackend14timestampValueE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN24SMLSharp__SQL__ODBCBackend12numericValueE_352(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN24SMLSharp__SQL__ODBCBackend12numericValueE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN24SMLSharp__SQL__ODBCBackend9boolValueE_353(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN24SMLSharp__SQL__ODBCBackend9boolValueE(i8*inreg%b)
ret i8*%c
}
declare void@llvm.memset.p0i8.i32(i8*,i8,i32,i1)#0
attributes#0={nounwind}
attributes#1={noreturn}
attributes#2={uwtable}
attributes#3={noreturn nounwind}
attributes#4={nounwind uwtable}
