@sml_check_flag=external local_unnamed_addr global i32
@_SMLZN18SMLSharp__SQL__PGSQL13CONNECTION__OKE=external local_unnamed_addr global i32
@_SMLZN18SMLSharp__SQL__PGSQL15PGRES__TUPLES__OKE=external local_unnamed_addr global i32
@_SMLZN18SMLSharp__SQL__PGSQL16PGRES__COMMAND__OKE=external local_unnamed_addr global i32
@_SMLZN18SMLSharp__SQL__PGSQL17PGRES__FATAL__ERRORE=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*
@_SMLZ5Match=external unnamed_addr constant i8*
@_SMLZ9Subscript=external unnamed_addr constant i8*
@a=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN25SMLSharp__SQL__PGSQLBackend9execQueryE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN25SMLSharp__SQL__PGSQLBackend9execQueryE_163 to void(...)*),i32 -2147483647}>,align 8
@b=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i8*)*@_SMLFN25SMLSharp__SQL__PGSQLBackend5fetchE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN25SMLSharp__SQL__PGSQLBackend5fetchE_164 to void(...)*),i32 -2147483647}>,align 8
@c=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i64)*@_SMLFN25SMLSharp__SQL__PGSQLBackend9closeConnE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN25SMLSharp__SQL__PGSQLBackend9closeConnE_165 to void(...)*),i32 -2147483647}>,align 8
@d=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i8*)*@_SMLFN25SMLSharp__SQL__PGSQLBackend8closeResE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN25SMLSharp__SQL__PGSQLBackend8closeResE_166 to void(...)*),i32 -2147483647}>,align 8
@e=private unnamed_addr constant<{[4x i8],i32,[42x i8]}><{[4x i8]zeroinitializer,i32 -2147483606,[42x i8]c"src/sql/main/PGSQLBackend.sml:54.19(1684)\00"}>,align 8
@f=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN25SMLSharp__SQL__PGSQLBackend7connectE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN25SMLSharp__SQL__PGSQLBackend7connectE_167 to void(...)*),i32 -2147483647}>,align 8
@g=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN25SMLSharp__SQL__PGSQLBackend8getValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN25SMLSharp__SQL__PGSQLBackend8getValueE_168 to void(...)*),i32 -2147483647}>,align 8
@h=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN25SMLSharp__SQL__PGSQLBackend8intValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN25SMLSharp__SQL__PGSQLBackend8intValueE_169 to void(...)*),i32 -2147483647}>,align 8
@i=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN25SMLSharp__SQL__PGSQLBackend11intInfValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN25SMLSharp__SQL__PGSQLBackend11intInfValueE_170 to void(...)*),i32 -2147483647}>,align 8
@j=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN25SMLSharp__SQL__PGSQLBackend9wordValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN25SMLSharp__SQL__PGSQLBackend9wordValueE_171 to void(...)*),i32 -2147483647}>,align 8
@k=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN25SMLSharp__SQL__PGSQLBackend9realValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN25SMLSharp__SQL__PGSQLBackend9realValueE_172 to void(...)*),i32 -2147483647}>,align 8
@l=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN25SMLSharp__SQL__PGSQLBackend11real32ValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN25SMLSharp__SQL__PGSQLBackend11real32ValueE_173 to void(...)*),i32 -2147483647}>,align 8
@m=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN25SMLSharp__SQL__PGSQLBackend11stringValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN25SMLSharp__SQL__PGSQLBackend11stringValueE_174 to void(...)*),i32 -2147483647}>,align 8
@n=private unnamed_addr constant<{[4x i8],i32,[42x i8]}><{[4x i8]zeroinitializer,i32 -2147483606,[42x i8]c"src/sql/main/PGSQLBackend.sml:77.26(2559)\00"}>,align 8
@o=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN25SMLSharp__SQL__PGSQLBackend9charValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN25SMLSharp__SQL__PGSQLBackend9charValueE_175 to void(...)*),i32 -2147483647}>,align 8
@p=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN25SMLSharp__SQL__PGSQLBackend14timestampValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN25SMLSharp__SQL__PGSQLBackend14timestampValueE_176 to void(...)*),i32 -2147483647}>,align 8
@q=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN25SMLSharp__SQL__PGSQLBackend12numericValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN25SMLSharp__SQL__PGSQLBackend12numericValueE_177 to void(...)*),i32 -2147483647}>,align 8
@r=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN25SMLSharp__SQL__PGSQLBackend9boolValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN25SMLSharp__SQL__PGSQLBackend9boolValueE_178 to void(...)*),i32 -2147483647}>,align 8
@s=private unnamed_addr constant<{[4x i8],i32,[41x i8]}><{[4x i8]zeroinitializer,i32 -2147483607,[41x i8]c"src/sql/main/PGSQLBackend.sml:33.16(935)\00"}>,align 8
@t=private unnamed_addr constant<{[4x i8],i32,[5x i8]}><{[4x i8]zeroinitializer,i32 -2147483643,[5x i8]c"NULL\00"}>,align 8
@u=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLLL7fetchFn_129 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLL7fetchFn_181 to void(...)*),i32 -2147483647}>,align 8
@v=private unnamed_addr constant<{[4x i8],i32,[245x i8]}><{[4x i8]zeroinitializer,i32 -2147483403,[245x i8]c"SELECT pg_class.relname, pg_class.oid FROM pg_namespace, pg_class WHERE pg_namespace.oid = pg_class.relnamespace AND pg_namespace.nspname = 'public' AND pg_class.relkind = 'r' or pg_class.relkind = 'v'ORDER BY pg_class.relname, pg_class.relkind\00"}>,align 8
@w=private unnamed_addr constant<{[4x i8],i32,[128x i8]}><{[4x i8]zeroinitializer,i32 -2147483520,[128x i8]c"SELECT pg_attribute.attname, pg_attribute.attnotnull,pg_type.typname FROM pg_class, pg_attribute, pg_type WHERE pg_class.oid = \00"}>,align 8
@x=private unnamed_addr constant<{[4x i8],i32,[140x i8]}><{[4x i8]zeroinitializer,i32 -2147483508,[140x i8]c" AND pg_class.oid = pg_attribute.attrelid AND pg_attribute.attnum > 0 AND pg_attribute.atttypid = pg_type.oid ORDER BY pg_attribute.attname\00"}>,align 8
@y=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
@z=private unnamed_addr constant<{[4x i8],i32,[42x i8]}><{[4x i8]zeroinitializer,i32 -2147483606,[42x i8]c"src/sql/main/PGSQLBackend.sml:95.27(3300)\00"}>,align 8
@A=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
@B=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
@C=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
@D=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
@E=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
@F=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
@G=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLLL7fetchFn_145 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLL7fetchFn_182 to void(...)*),i32 -2147483647}>,align 8
@H=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i64)*@_SMLFN25SMLSharp__SQL__PGSQLBackend17getDatabaseSchemaE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN25SMLSharp__SQL__PGSQLBackend17getDatabaseSchemaE_183 to void(...)*),i32 -2147483647}>,align 8
@I=private unnamed_addr constant<{[4x i8],i32,[4x i8]}><{[4x i8]zeroinitializer,i32 -2147483644,[4x i8]c"INT\00"}>,align 8
@J=private unnamed_addr constant<{[4x i8],i32,[1x i8]}><{[4x i8]zeroinitializer,i32 -2147483647,[1x i8]zeroinitializer}>,align 8
@K=private unnamed_addr constant<{[4x i8],i32,[5x i8]}><{[4x i8]zeroinitializer,i32 -2147483643,[5x i8]c"TEXT\00"}>,align 8
@L=private unnamed_addr constant<{[4x i8],i32,[7x i8]}><{[4x i8]zeroinitializer,i32 -2147483641,[7x i8]c"FLOAT8\00"}>,align 8
@M=private unnamed_addr constant<{[4x i8],i32,[7x i8]}><{[4x i8]zeroinitializer,i32 -2147483641,[7x i8]c"FLOAT4\00"}>,align 8
@N=private unnamed_addr constant<{[4x i8],i32,[8x i8]}><{[4x i8]zeroinitializer,i32 -2147483640,[8x i8]c"BOOLEAN\00"}>,align 8
@O=private unnamed_addr constant<{[4x i8],i32,[10x i8]}><{[4x i8]zeroinitializer,i32 -2147483638,[10x i8]c"TIMESTAMP\00"}>,align 8
@P=private unnamed_addr constant<{[4x i8],i32,[8x i8]}><{[4x i8]zeroinitializer,i32 -2147483640,[8x i8]c"NUMERIC\00"}>,align 8
@Q=private unnamed_addr constant<{[4x i8],i32,[42x i8]}><{[4x i8]zeroinitializer,i32 -2147483606,[42x i8]c"src/sql/main/PGSQLBackend.sml:159.6(5711)\00"}>,align 8
@R=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN25SMLSharp__SQL__PGSQLBackend14columnTypeNameE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN25SMLSharp__SQL__PGSQLBackend14columnTypeNameE_184 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN25SMLSharp__SQL__PGSQLBackend9execQueryE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@a,i64 0,i32 2)to i8*)
@_SMLZN25SMLSharp__SQL__PGSQLBackend9closeConnE=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*)
@_SMLZN25SMLSharp__SQL__PGSQLBackend8closeResE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@d,i64 0,i32 2)to i8*)
@_SMLZN25SMLSharp__SQL__PGSQLBackend17getDatabaseSchemaE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@H,i64 0,i32 2)to i8*)
@_SMLZN25SMLSharp__SQL__PGSQLBackend14columnTypeNameE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@R,i64 0,i32 2)to i8*)
@_SMLZN25SMLSharp__SQL__PGSQLBackend7connectE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@f,i64 0,i32 2)to i8*)
@_SMLZN25SMLSharp__SQL__PGSQLBackend5fetchE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@b,i64 0,i32 2)to i8*)
@_SMLZN25SMLSharp__SQL__PGSQLBackend8getValueE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@g,i64 0,i32 2)to i8*)
@_SMLZN25SMLSharp__SQL__PGSQLBackend8intValueE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@h,i64 0,i32 2)to i8*)
@_SMLZN25SMLSharp__SQL__PGSQLBackend11intInfValueE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@i,i64 0,i32 2)to i8*)
@_SMLZN25SMLSharp__SQL__PGSQLBackend9wordValueE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@j,i64 0,i32 2)to i8*)
@_SMLZN25SMLSharp__SQL__PGSQLBackend9realValueE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@k,i64 0,i32 2)to i8*)
@_SMLZN25SMLSharp__SQL__PGSQLBackend11real32ValueE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@l,i64 0,i32 2)to i8*)
@_SMLZN25SMLSharp__SQL__PGSQLBackend11stringValueE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@m,i64 0,i32 2)to i8*)
@_SMLZN25SMLSharp__SQL__PGSQLBackend9charValueE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@o,i64 0,i32 2)to i8*)
@_SMLZN25SMLSharp__SQL__PGSQLBackend9boolValueE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@r,i64 0,i32 2)to i8*)
@_SMLZN25SMLSharp__SQL__PGSQLBackend14timestampValueE=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*)
@_SMLZN25SMLSharp__SQL__PGSQLBackend12numericValueE=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*)
@_SML_ftab304575c1fb61ce18_PGSQLBackend=external global i8
@S=private unnamed_addr global i8 0
declare void@llvm.gcroot(i8**,i8*)#0
declare i8*@sml_alloc(i32 inreg)local_unnamed_addr#0
declare void@sml_check(i32 inreg)local_unnamed_addr
declare void@sml_gcroot(i8*,void()*,i8*,i8*)local_unnamed_addr#0
declare void@sml_matchcomp_bug()local_unnamed_addr
declare i32@sml_personality(...)#0
declare void@sml_raise(i8*inreg)local_unnamed_addr#1
declare i8*@_SMLFN18SMLSharp__SQL__PGSQL10PQgetvalueE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN18SMLSharp__SQL__PGSQL11PQconnectdbE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN18SMLSharp__SQL__PGSQL11PQgetisnullE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN18SMLSharp__SQL__PGSQL11PQgetlengthE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN18SMLSharp__SQL__PGSQL14PQresultStatusE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN18SMLSharp__SQL__PGSQL15getErrorMessageE(i64 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN18SMLSharp__SQL__PGSQL6PQexecE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN18SMLSharp__SQL__PGSQL7PQclearE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN18SMLSharp__SQL__PGSQL8PQfinishE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN18SMLSharp__SQL__PGSQL8PQstatusE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN18SMLSharp__SQL__PGSQL9PQntuplesE(i32 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 i32@_SMLFN4Bool3notE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN4Byte13bytesToStringE(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*@_SMLFN4List3revE(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*@_SMLFN6Word324scanE(i32 inreg,i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN7Pointer11importBytesE(i8*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_maindaa180c1799f3810_Bool()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main07023b79a356e238_Byte()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_mainf19563e8df97169c_Word32()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main15b022b21c7f9f6b_Pointer()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main5008f062fc7efcc4_SQLErrors()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_maincb21437aa2e6677c_PGSQL()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_loaddaa180c1799f3810_Bool(i8*)local_unnamed_addr
declare void@_SML_load07023b79a356e238_Byte(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_loadf19563e8df97169c_Word32(i8*)local_unnamed_addr
declare void@_SML_load15b022b21c7f9f6b_Pointer(i8*)local_unnamed_addr
declare void@_SML_load5008f062fc7efcc4_SQLErrors(i8*)local_unnamed_addr
declare void@_SML_loadcb21437aa2e6677c_PGSQL(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_tabb304575c1fb61ce18_PGSQLBackend()#3{
unreachable
}
define void@_SML_load304575c1fb61ce18_PGSQLBackend(i8*%a)local_unnamed_addr#0{
%b=load i8,i8*@S,align 1
%c=icmp eq i8%b,0
br i1%c,label%e,label%d
d:
ret void
e:
store i8 1,i8*@S,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_loaddaa180c1799f3810_Bool(i8*%a)#0
tail call void@_SML_load07023b79a356e238_Byte(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_loadf19563e8df97169c_Word32(i8*%a)#0
tail call void@_SML_load15b022b21c7f9f6b_Pointer(i8*%a)#0
tail call void@_SML_load5008f062fc7efcc4_SQLErrors(i8*%a)#0
tail call void@_SML_loadcb21437aa2e6677c_PGSQL(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_tabb304575c1fb61ce18_PGSQLBackend,i8*@_SML_ftab304575c1fb61ce18_PGSQLBackend,i8*null)#0
ret void
}
define void@_SML_main304575c1fb61ce18_PGSQLBackend()local_unnamed_addr#2 gc"smlsharp"{
%a=load i8,i8*@S,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*@S,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_maindaa180c1799f3810_Bool()#2
tail call void@_SML_main07023b79a356e238_Byte()#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_mainf19563e8df97169c_Word32()#2
tail call void@_SML_main15b022b21c7f9f6b_Pointer()#2
tail call void@_SML_main5008f062fc7efcc4_SQLErrors()#2
tail call void@_SML_maincb21437aa2e6677c_PGSQL()#2
tail call void@_SML_mainf0940cae3cd2cc58_Numeric()#2
tail call void@_SML_main117fff510d821df0_TimeStamp()#2
br label%d
}
define fastcc i8*@_SMLFN25SMLSharp__SQL__PGSQLBackend9execQueryE(i8*inreg%a)#2 gc"smlsharp"{
k:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%b,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%i,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%b,align 8
br label%i
i:
%j=phi i8*[%h,%g],[%a,%k]
%l=bitcast i8*%j to i8**
%m=load i8*,i8**%l,align 8
%n=getelementptr inbounds i8,i8*%j,i64 8
%o=bitcast i8*%n to i8**
%p=load i8*,i8**%o,align 8
store i8*%p,i8**%b,align 8
%q=call fastcc i8*@_SMLFN18SMLSharp__SQL__PGSQL6PQexecE(i32 inreg 0)
%r=getelementptr inbounds i8,i8*%q,i64 16
%s=bitcast i8*%r to i8*(i8*,i8*)**
%t=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%s,align 8
%u=bitcast i8*%q to i8**
%v=load i8*,i8**%u,align 8
store i8*%v,i8**%c,align 8
%w=call i8*@sml_alloc(i32 inreg 20)#0
%x=getelementptr inbounds i8,i8*%w,i64 -4
%y=bitcast i8*%x to i32*
store i32 1342177296,i32*%y,align 4
%z=bitcast i8*%w to i8**
store i8*%m,i8**%z,align 8
%A=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%B=getelementptr inbounds i8,i8*%w,i64 8
%C=bitcast i8*%B to i8**
store i8*%A,i8**%C,align 8
%D=getelementptr inbounds i8,i8*%w,i64 16
%E=bitcast i8*%D to i32*
store i32 2,i32*%E,align 4
%F=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%G=call fastcc i8*%t(i8*inreg%F,i8*inreg%w)
%H=bitcast i8*%G to i8**
%I=load i8*,i8**%H,align 8
%J=icmp ne i8*%I,null
br i1%J,label%K,label%Z
K:
%L=call fastcc i8*@_SMLFN18SMLSharp__SQL__PGSQL14PQresultStatusE(i32 inreg 0)
%M=getelementptr inbounds i8,i8*%L,i64 16
%N=bitcast i8*%M to i8*(i8*,i8*)**
%O=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%N,align 8
%P=bitcast i8*%L to i8**
%Q=load i8*,i8**%P,align 8
store i8*%Q,i8**%b,align 8
%R=ptrtoint i8*%I to i64
%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 8,i32*%U,align 4
%V=bitcast i8*%S to i64*
store i64%R,i64*%V,align 4
%W=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%X=call fastcc i8*%O(i8*inreg%W,i8*inreg%S)
%Y=bitcast i8*%X to i32*
br label%Z
Z:
%aa=phi i32*[%Y,%K],[@_SMLZN18SMLSharp__SQL__PGSQL17PGRES__FATAL__ERRORE,%i]
%ab=load i32,i32*%aa,align 4
%ac=load i32,i32*@_SMLZN18SMLSharp__SQL__PGSQL16PGRES__COMMAND__OKE,align 4
%ad=icmp ne i32%ab,%ac
%ae=load i32,i32*@_SMLZN18SMLSharp__SQL__PGSQL15PGRES__TUPLES__OKE,align 4
%af=icmp ne i32%ab,%ae
%ag=and i1%ad,%af
br i1%ag,label%ah,label%aU
ah:
%ai=load i8*,i8**@_SMLZN19SMLSharp__SQL__Errors4ExecE,align 8
store i8*%ai,i8**%b,align 8
br i1%J,label%aj,label%az
aj:
%ak=call fastcc i8*@_SMLFN18SMLSharp__SQL__PGSQL7PQclearE(i32 inreg 0)
%al=getelementptr inbounds i8,i8*%ak,i64 16
%am=bitcast i8*%al to i8*(i8*,i8*)**
%an=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%am,align 8
%ao=bitcast i8*%ak to i8**
%ap=load i8*,i8**%ao,align 8
store i8*%ap,i8**%c,align 8
%aq=ptrtoint i8*%I to i64
%ar=call i8*@sml_alloc(i32 inreg 8)#0
%as=getelementptr inbounds i8,i8*%ar,i64 -4
%at=bitcast i8*%as to i32*
store i32 8,i32*%at,align 4
%au=bitcast i8*%ar to i64*
store i64%aq,i64*%au,align 4
%av=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aw=call fastcc i8*%an(i8*inreg%av,i8*inreg%ar)
%ax=ptrtoint i8*%m to i64
%ay=call fastcc i8*@_SMLFN18SMLSharp__SQL__PGSQL15getErrorMessageE(i64 inreg%ax)
br label%az
az:
%aA=phi i8*[%ay,%aj],[getelementptr inbounds(<{[4x i8],i32,[5x i8]}>,<{[4x i8],i32,[5x i8]}>*@t,i64 0,i32 2,i64 0),%ah]
store i8*%aA,i8**%c,align 8
%aB=call i8*@sml_alloc(i32 inreg 28)#0
%aC=getelementptr inbounds i8,i8*%aB,i64 -4
%aD=bitcast i8*%aC to i32*
store i32 1342177304,i32*%aD,align 4
store i8*%aB,i8**%d,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,[41x i8]}>,<{[4x i8],i32,[41x i8]}>*@s,i64 0,i32 2,i64 0),i8**%aH,align 8
%aI=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aJ=getelementptr inbounds i8,i8*%aB,i64 16
%aK=bitcast i8*%aJ to i8**
store i8*%aI,i8**%aK,align 8
%aL=getelementptr inbounds i8,i8*%aB,i64 24
%aM=bitcast i8*%aL to i32*
store i32 7,i32*%aM,align 4
%aN=call i8*@sml_alloc(i32 inreg 60)#0
%aO=getelementptr inbounds i8,i8*%aN,i64 -4
%aP=bitcast i8*%aO to i32*
store i32 1342177336,i32*%aP,align 4
%aQ=getelementptr inbounds i8,i8*%aN,i64 56
%aR=bitcast i8*%aQ to i32*
store i32 1,i32*%aR,align 4
%aS=load i8*,i8**%d,align 8
%aT=bitcast i8*%aN to i8**
store i8*%aS,i8**%aT,align 8
call void@sml_raise(i8*inreg%aN)#1
unreachable
aU:
%aV=call i8*@sml_alloc(i32 inreg 4)#0
%aW=bitcast i8*%aV to i32*
%aX=getelementptr inbounds i8,i8*%aV,i64 -4
%aY=bitcast i8*%aX to i32*
store i32 536870916,i32*%aY,align 4
store i8*%aV,i8**%b,align 8
store i32 -1,i32*%aW,align 4
%aZ=call fastcc i8*@_SMLFN18SMLSharp__SQL__PGSQL9PQntuplesE(i32 inreg 0)
%a0=getelementptr inbounds i8,i8*%aZ,i64 16
%a1=bitcast i8*%a0 to i8*(i8*,i8*)**
%a2=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%a1,align 8
%a3=bitcast i8*%aZ to i8**
%a4=load i8*,i8**%a3,align 8
store i8*%a4,i8**%c,align 8
%a5=ptrtoint i8*%I to i64
%a6=call i8*@sml_alloc(i32 inreg 8)#0
%a7=getelementptr inbounds i8,i8*%a6,i64 -4
%a8=bitcast i8*%a7 to i32*
store i32 8,i32*%a8,align 4
%a9=bitcast i8*%a6 to i64*
store i64%a5,i64*%a9,align 4
%ba=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bb=call fastcc i8*%a2(i8*inreg%ba,i8*inreg%a6)
%bc=bitcast i8*%bb to i32*
%bd=load i32,i32*%bc,align 4
%be=call i8*@sml_alloc(i32 inreg 28)#0
%bf=bitcast i8*%be to i32*
%bg=getelementptr inbounds i8,i8*%be,i64 -4
%bh=bitcast i8*%bg to i32*
store i32 1342177304,i32*%bh,align 4
%bi=getelementptr inbounds i8,i8*%be,i64 4
%bj=bitcast i8*%bi to i32*
store i32 0,i32*%bj,align 1
store i32%bd,i32*%bf,align 4
%bk=getelementptr inbounds i8,i8*%be,i64 8
%bl=bitcast i8*%bk to i8**
store i8*%I,i8**%bl,align 8
%bm=load i8*,i8**%b,align 8
%bn=getelementptr inbounds i8,i8*%be,i64 16
%bo=bitcast i8*%bn to i8**
store i8*%bm,i8**%bo,align 8
%bp=getelementptr inbounds i8,i8*%be,i64 24
%bq=bitcast i8*%bp to i32*
store i32 4,i32*%bq,align 4
ret i8*%be
}
define fastcc i32@_SMLFN25SMLSharp__SQL__PGSQLBackend5fetchE(i8*inreg%a)#4 gc"smlsharp"{
%b=bitcast i8*%a to i32*
%c=load i32,i32*%b,align 4
%d=getelementptr inbounds i8,i8*%a,i64 16
%e=bitcast i8*%d to i32**
%f=load i32*,i32**%e,align 8
%g=load i32,i32*%f,align 4
%h=add nsw i32%g,1
%i=icmp slt i32%h,%c
br i1%i,label%j,label%k
j:
store i32%h,i32*%f,align 4
ret i32 1
k:
ret i32 0
}
define fastcc void@_SMLFN25SMLSharp__SQL__PGSQLBackend9closeConnE(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*@_SMLFN18SMLSharp__SQL__PGSQL8PQfinishE(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)
ret void
}
define fastcc void@_SMLFN25SMLSharp__SQL__PGSQLBackend8closeResE(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=getelementptr inbounds i8,i8*%h,i64 8
%k=bitcast i8*%j to i64*
%l=load i64,i64*%k,align 4
%m=call fastcc i8*@_SMLFN18SMLSharp__SQL__PGSQL7PQclearE(i32 inreg 0)
%n=getelementptr inbounds i8,i8*%m,i64 16
%o=bitcast i8*%n to i8*(i8*,i8*)**
%p=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%o,align 8
%q=bitcast i8*%m to i8**
%r=load i8*,i8**%q,align 8
store i8*%r,i8**%b,align 8
%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 8,i32*%u,align 4
%v=bitcast i8*%s to i64*
store i64%l,i64*%v,align 4
%w=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%x=call fastcc i8*%p(i8*inreg%w,i8*inreg%s)
ret void
}
define fastcc i8*@_SMLFN25SMLSharp__SQL__PGSQLBackend7connectE(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*@_SMLFN18SMLSharp__SQL__PGSQL11PQconnectdbE(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
%o=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%p=call fastcc i8*%l(i8*inreg%n,i8*inreg%o)
%q=bitcast i8*%p to i8**
%r=load i8*,i8**%q,align 8
%s=icmp eq i8*%r,null
br i1%s,label%O,label%t
t:
%u=call fastcc i8*@_SMLFN18SMLSharp__SQL__PGSQL8PQstatusE(i32 inreg 0)
%v=getelementptr inbounds i8,i8*%u,i64 16
%w=bitcast i8*%v to i8*(i8*,i8*)**
%x=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%w,align 8
%y=bitcast i8*%u to i8**
%z=load i8*,i8**%y,align 8
store i8*%z,i8**%b,align 8
%A=ptrtoint i8*%r to i64
%B=call i8*@sml_alloc(i32 inreg 8)#0
%C=getelementptr inbounds i8,i8*%B,i64 -4
%D=bitcast i8*%C to i32*
store i32 8,i32*%D,align 4
%E=bitcast i8*%B to i64*
store i64%A,i64*%E,align 4
%F=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%G=call fastcc i8*%x(i8*inreg%F,i8*inreg%B)
%H=bitcast i8*%G to i32*
%I=load i32,i32*%H,align 4
%J=load i32,i32*@_SMLZN18SMLSharp__SQL__PGSQL13CONNECTION__OKE,align 4
%K=icmp eq i32%I,%J
br i1%K,label%al,label%L
L:
%M=load i8*,i8**@_SMLZN19SMLSharp__SQL__Errors7ConnectE,align 8
store i8*%M,i8**%b,align 8
%N=call fastcc i8*@_SMLFN18SMLSharp__SQL__PGSQL15getErrorMessageE(i64 inreg%A)
br label%Q
O:
%P=load i8*,i8**@_SMLZN19SMLSharp__SQL__Errors7ConnectE,align 8
store i8*%P,i8**%b,align 8
br label%Q
Q:
%R=phi i8*[%N,%L],[getelementptr inbounds(<{[4x i8],i32,[5x i8]}>,<{[4x i8],i32,[5x i8]}>*@t,i64 0,i32 2,i64 0),%O]
store i8*%R,i8**%c,align 8
%S=call i8*@sml_alloc(i32 inreg 28)#0
%T=getelementptr inbounds i8,i8*%S,i64 -4
%U=bitcast i8*%T to i32*
store i32 1342177304,i32*%U,align 4
store i8*%S,i8**%d,align 8
%V=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%W=bitcast i8*%S to i8**
store i8*%V,i8**%W,align 8
%X=getelementptr inbounds i8,i8*%S,i64 8
%Y=bitcast i8*%X to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[42x i8]}>,<{[4x i8],i32,[42x i8]}>*@e,i64 0,i32 2,i64 0),i8**%Y,align 8
%Z=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aa=getelementptr inbounds i8,i8*%S,i64 16
%ab=bitcast i8*%aa to i8**
store i8*%Z,i8**%ab,align 8
%ac=getelementptr inbounds i8,i8*%S,i64 24
%ad=bitcast i8*%ac to i32*
store i32 7,i32*%ad,align 4
%ae=call i8*@sml_alloc(i32 inreg 60)#0
%af=getelementptr inbounds i8,i8*%ae,i64 -4
%ag=bitcast i8*%af to i32*
store i32 1342177336,i32*%ag,align 4
%ah=getelementptr inbounds i8,i8*%ae,i64 56
%ai=bitcast i8*%ah to i32*
store i32 1,i32*%ai,align 4
%aj=load i8*,i8**%d,align 8
%ak=bitcast i8*%ae to i8**
store i8*%aj,i8**%ak,align 8
call void@sml_raise(i8*inreg%ae)#1
unreachable
al:
ret i8*%r
}
define fastcc i8*@_SMLFN25SMLSharp__SQL__PGSQLBackend8getValueE(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*%k,i64 8
%m=bitcast i8*%l to i8**
%n=load i8*,i8**%m,align 8
%o=getelementptr inbounds i8,i8*%k,i64 16
%p=bitcast i8*%o to i32**
%q=load i32*,i32**%p,align 8
%r=load i32,i32*%q,align 4
%s=getelementptr inbounds i8,i8*%h,i64 8
%t=bitcast i8*%s to i32*
%u=load i32,i32*%t,align 4
%v=call fastcc i8*@_SMLFN18SMLSharp__SQL__PGSQL11PQgetisnullE(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**
%A=load i8*,i8**%z,align 8
store i8*%A,i8**%b,align 8
%B=call i8*@sml_alloc(i32 inreg 20)#0
%C=getelementptr inbounds i8,i8*%B,i64 -4
%D=bitcast i8*%C to i32*
store i32 1342177296,i32*%D,align 4
%E=bitcast i8*%B to i8**
store i8*%n,i8**%E,align 8
%F=getelementptr inbounds i8,i8*%B,i64 8
%G=bitcast i8*%F to i32*
store i32%r,i32*%G,align 4
%H=getelementptr inbounds i8,i8*%B,i64 12
%I=bitcast i8*%H to i32*
store i32%u,i32*%I,align 4
%J=getelementptr inbounds i8,i8*%B,i64 16
%K=bitcast i8*%J to i32*
store i32 0,i32*%K,align 4
%L=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%M=call fastcc i8*%y(i8*inreg%L,i8*inreg%B)
%N=bitcast i8*%M to i32*
%O=load i32,i32*%N,align 4
%P=icmp eq i32%O,0
br i1%P,label%R,label%Q
Q:
ret i8*null
R:
%S=call fastcc i8*@_SMLFN18SMLSharp__SQL__PGSQL10PQgetvalueE(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
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
%ab=bitcast i8*%Y to i8**
store i8*%n,i8**%ab,align 8
%ac=getelementptr inbounds i8,i8*%Y,i64 8
%ad=bitcast i8*%ac to i32*
store i32%r,i32*%ad,align 4
%ae=getelementptr inbounds i8,i8*%Y,i64 12
%af=bitcast i8*%ae to i32*
store i32%u,i32*%af,align 4
%ag=getelementptr inbounds i8,i8*%Y,i64 16
%ah=bitcast i8*%ag to i32*
store i32 0,i32*%ah,align 4
%ai=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aj=call fastcc i8*%V(i8*inreg%ai,i8*inreg%Y)
%ak=bitcast i8*%aj to i8**
%al=load i8*,i8**%ak,align 8
%am=call fastcc i8*@_SMLFN18SMLSharp__SQL__PGSQL11PQgetlengthE(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
store i8*%ar,i8**%b,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*%n,i8**%av,align 8
%aw=getelementptr inbounds i8,i8*%as,i64 8
%ax=bitcast i8*%aw to i32*
store i32%r,i32*%ax,align 4
%ay=getelementptr inbounds i8,i8*%as,i64 12
%az=bitcast i8*%ay to i32*
store i32%u,i32*%az,align 4
%aA=getelementptr inbounds i8,i8*%as,i64 16
%aB=bitcast i8*%aA to i32*
store i32 0,i32*%aB,align 4
%aC=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aD=call fastcc i8*%ap(i8*inreg%aC,i8*inreg%as)
%aE=bitcast i8*%aD to i32*
%aF=load i32,i32*%aE,align 4
%aG=call i8*@sml_alloc(i32 inreg 20)#0
%aH=getelementptr inbounds i8,i8*%aG,i64 -4
%aI=bitcast i8*%aH to i32*
store i32 1342177296,i32*%aI,align 4
%aJ=getelementptr inbounds i8,i8*%aG,i64 12
%aK=bitcast i8*%aJ to i32*
store i32 0,i32*%aK,align 1
%aL=bitcast i8*%aG to i8**
store i8*%al,i8**%aL,align 8
%aM=getelementptr inbounds i8,i8*%aG,i64 8
%aN=bitcast i8*%aM to i32*
store i32%aF,i32*%aN,align 4
%aO=getelementptr inbounds i8,i8*%aG,i64 16
%aP=bitcast i8*%aO to i32*
store i32 0,i32*%aP,align 4
%aQ=call fastcc i8*@_SMLFN7Pointer11importBytesE(i8*inreg%aG)
%aR=call fastcc i8*@_SMLFN4Byte13bytesToStringE(i8*inreg%aQ)
store i8*%aR,i8**%b,align 8
%aS=call i8*@sml_alloc(i32 inreg 12)#0
%aT=getelementptr inbounds i8,i8*%aS,i64 -4
%aU=bitcast i8*%aT to i32*
store i32 1342177288,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=getelementptr inbounds i8,i8*%aS,i64 8
%aY=bitcast i8*%aX to i32*
store i32 1,i32*%aY,align 4
ret i8*%aS
}
define fastcc i8*@_SMLFN25SMLSharp__SQL__PGSQLBackend8intValueE(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*@_SMLFN25SMLSharp__SQL__PGSQLBackend11intInfValueE(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*@_SMLFN25SMLSharp__SQL__PGSQLBackend9wordValueE(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*@_SMLFN25SMLSharp__SQL__PGSQLBackend9realValueE(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*@_SMLFN25SMLSharp__SQL__PGSQLBackend11real32ValueE(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*@_SMLFN25SMLSharp__SQL__PGSQLBackend11stringValueE(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*@_SMLFN25SMLSharp__SQL__PGSQLBackend9charValueE(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,[42x i8]}>,<{[4x i8],i32,[42x i8]}>*@n,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*@_SMLFN25SMLSharp__SQL__PGSQLBackend14timestampValueE(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*@_SMLFN25SMLSharp__SQL__PGSQLBackend12numericValueE(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*@_SMLFN25SMLSharp__SQL__PGSQLBackend9boolValueE(i8*inreg%a)#4 gc"smlsharp"{
o:
%b=getelementptr inbounds i8,i8*%a,i64 -4
%c=bitcast i8*%b to i32*
%d=load i32,i32*%c,align 4
%e=and i32%d,268435455
%f=icmp eq i32%e,2
br i1%f,label%g,label%m
g:
%h=load i8,i8*%a,align 1
%i=icmp eq i8%h,116
%j=select i1%i,i8*bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@y,i64 0,i32 2)to i8*),i8*null
%k=icmp eq i8%h,102
%l=select i1%k,i8*bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@A,i64 0,i32 2)to i8*),i8*%j
br label%m
m:
%n=phi i8*[%l,%g],[null,%o]
ret i8*%n
}
define internal fastcc i8*@_SMLLLN25SMLSharp__SQL__PGSQLBackend9getStringE_123(i8*inreg%a)unnamed_addr#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]
store i8*null,i8**%b,align 8
%k=bitcast i8*%i to i8**
%l=load i8*,i8**%k,align 8
%m=getelementptr inbounds i8,i8*%l,i64 8
%n=bitcast i8*%m to i8**
%o=load i8*,i8**%n,align 8
%p=getelementptr inbounds i8,i8*%l,i64 16
%q=bitcast i8*%p to i32**
%r=load i32*,i32**%q,align 8
%s=load i32,i32*%r,align 4
%t=getelementptr inbounds i8,i8*%i,i64 8
%u=bitcast i8*%t to i32*
%v=load i32,i32*%u,align 4
%w=call fastcc i8*@_SMLFN18SMLSharp__SQL__PGSQL11PQgetisnullE(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**%b,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=bitcast i8*%C to i8**
store i8*%o,i8**%F,align 8
%G=getelementptr inbounds i8,i8*%C,i64 8
%H=bitcast i8*%G to i32*
store i32%s,i32*%H,align 4
%I=getelementptr inbounds i8,i8*%C,i64 12
%J=bitcast i8*%I to i32*
store i32%v,i32*%J,align 4
%K=getelementptr inbounds i8,i8*%C,i64 16
%L=bitcast i8*%K to i32*
store i32 0,i32*%L,align 4
%M=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%N=call fastcc i8*%z(i8*inreg%M,i8*inreg%C)
%O=bitcast i8*%N to i32*
%P=load i32,i32*%O,align 4
%Q=icmp eq i32%P,0
br i1%Q,label%R,label%a0
R:
%S=call fastcc i8*@_SMLFN18SMLSharp__SQL__PGSQL10PQgetvalueE(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
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
%ab=bitcast i8*%Y to i8**
store i8*%o,i8**%ab,align 8
%ac=getelementptr inbounds i8,i8*%Y,i64 8
%ad=bitcast i8*%ac to i32*
store i32%s,i32*%ad,align 4
%ae=getelementptr inbounds i8,i8*%Y,i64 12
%af=bitcast i8*%ae to i32*
store i32%v,i32*%af,align 4
%ag=getelementptr inbounds i8,i8*%Y,i64 16
%ah=bitcast i8*%ag to i32*
store i32 0,i32*%ah,align 4
%ai=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aj=call fastcc i8*%V(i8*inreg%ai,i8*inreg%Y)
%ak=bitcast i8*%aj to i8**
%al=load i8*,i8**%ak,align 8
%am=call fastcc i8*@_SMLFN18SMLSharp__SQL__PGSQL11PQgetlengthE(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
store i8*%ar,i8**%b,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*%o,i8**%av,align 8
%aw=getelementptr inbounds i8,i8*%as,i64 8
%ax=bitcast i8*%aw to i32*
store i32%s,i32*%ax,align 4
%ay=getelementptr inbounds i8,i8*%as,i64 12
%az=bitcast i8*%ay to i32*
store i32%v,i32*%az,align 4
%aA=getelementptr inbounds i8,i8*%as,i64 16
%aB=bitcast i8*%aA to i32*
store i32 0,i32*%aB,align 4
%aC=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aD=call fastcc i8*%ap(i8*inreg%aC,i8*inreg%as)
%aE=bitcast i8*%aD to i32*
%aF=load i32,i32*%aE,align 4
%aG=call i8*@sml_alloc(i32 inreg 20)#0
%aH=getelementptr inbounds i8,i8*%aG,i64 -4
%aI=bitcast i8*%aH to i32*
store i32 1342177296,i32*%aI,align 4
%aJ=getelementptr inbounds i8,i8*%aG,i64 12
%aK=bitcast i8*%aJ to i32*
store i32 0,i32*%aK,align 1
%aL=bitcast i8*%aG to i8**
store i8*%al,i8**%aL,align 8
%aM=getelementptr inbounds i8,i8*%aG,i64 8
%aN=bitcast i8*%aM to i32*
store i32%aF,i32*%aN,align 4
%aO=getelementptr inbounds i8,i8*%aG,i64 16
%aP=bitcast i8*%aO to i32*
store i32 0,i32*%aP,align 4
%aQ=call fastcc i8*@_SMLFN7Pointer11importBytesE(i8*inreg%aG)
%aR=call fastcc i8*@_SMLFN4Byte13bytesToStringE(i8*inreg%aQ)
store i8*%aR,i8**%b,align 8
%aS=call i8*@sml_alloc(i32 inreg 12)#0
%aT=getelementptr inbounds i8,i8*%aS,i64 -4
%aU=bitcast i8*%aT to i32*
store i32 1342177288,i32*%aU,align 4
%aV=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aW=bitcast i8*%aS to i8**
store i8*%aV,i8**%aW,align 8
%aX=getelementptr inbounds i8,i8*%aS,i64 8
%aY=bitcast i8*%aX to i32*
store i32 1,i32*%aY,align 4
%aZ=icmp eq i8*%aS,null
br i1%aZ,label%a0,label%bi
a0:
%a1=load i8*,i8**@_SMLZN19SMLSharp__SQL__Errors6FormatE,align 8
store i8*%a1,i8**%b,align 8
%a2=call i8*@sml_alloc(i32 inreg 20)#0
%a3=getelementptr inbounds i8,i8*%a2,i64 -4
%a4=bitcast i8*%a3 to i32*
store i32 1342177296,i32*%a4,align 4
store i8*%a2,i8**%c,align 8
%a5=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%a6=bitcast i8*%a2 to i8**
store i8*%a5,i8**%a6,align 8
%a7=getelementptr inbounds i8,i8*%a2,i64 8
%a8=bitcast i8*%a7 to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[42x i8]}>,<{[4x i8],i32,[42x i8]}>*@z,i64 0,i32 2,i64 0),i8**%a8,align 8
%a9=getelementptr inbounds i8,i8*%a2,i64 16
%ba=bitcast i8*%a9 to i32*
store i32 3,i32*%ba,align 4
%bb=call i8*@sml_alloc(i32 inreg 60)#0
%bc=getelementptr inbounds i8,i8*%bb,i64 -4
%bd=bitcast i8*%bc to i32*
store i32 1342177336,i32*%bd,align 4
%be=getelementptr inbounds i8,i8*%bb,i64 56
%bf=bitcast i8*%be to i32*
store i32 1,i32*%bf,align 4
%bg=load i8*,i8**%c,align 8
%bh=bitcast i8*%bb to i8**
store i8*%bg,i8**%bh,align 8
call void@sml_raise(i8*inreg%bb)#1
unreachable
bi:
store i8*%aV,i8**%b,align 8
%bj=call i8*@sml_alloc(i32 inreg 12)#0
%bk=getelementptr inbounds i8,i8*%bj,i64 -4
%bl=bitcast i8*%bk to i32*
store i32 1342177288,i32*%bl,align 4
%bm=load i8*,i8**%b,align 8
%bn=bitcast i8*%bj to i8**
store i8*%bm,i8**%bn,align 8
%bo=getelementptr inbounds i8,i8*%bj,i64 8
%bp=bitcast i8*%bo to i32*
store i32 1,i32*%bp,align 4
%bq=icmp eq i8*%bj,null
br i1%bq,label%br,label%bJ
br:
%bs=load i8*,i8**@_SMLZN19SMLSharp__SQL__Errors6FormatE,align 8
store i8*%bs,i8**%b,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
store i8*%bt,i8**%c,align 8
%bw=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%bx=bitcast i8*%bt to i8**
store i8*%bw,i8**%bx,align 8
%by=getelementptr inbounds i8,i8*%bt,i64 8
%bz=bitcast i8*%by to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[42x i8]}>,<{[4x i8],i32,[42x i8]}>*@z,i64 0,i32 2,i64 0),i8**%bz,align 8
%bA=getelementptr inbounds i8,i8*%bt,i64 16
%bB=bitcast i8*%bA to i32*
store i32 3,i32*%bB,align 4
%bC=call i8*@sml_alloc(i32 inreg 60)#0
%bD=getelementptr inbounds i8,i8*%bC,i64 -4
%bE=bitcast i8*%bD to i32*
store i32 1342177336,i32*%bE,align 4
%bF=getelementptr inbounds i8,i8*%bC,i64 56
%bG=bitcast i8*%bF to i32*
store i32 1,i32*%bG,align 4
%bH=load i8*,i8**%c,align 8
%bI=bitcast i8*%bC to i8**
store i8*%bH,i8**%bI,align 8
call void@sml_raise(i8*inreg%bC)#1
unreachable
bJ:
ret i8*%bm
}
define internal fastcc i8*@_SMLLLN25SMLSharp__SQL__PGSQLBackend9evalQueryE_127(i8*inreg%a)unnamed_addr#2 gc"smlsharp"personality i32(...)*@sml_personality{
m:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
store i8*%a,i8**%b,align 8
%g=load atomic i32,i32*@sml_check_flag unordered,align 4
%h=icmp eq i32%g,0
br i1%h,label%k,label%i
i:
call void@sml_check(i32 inreg%g)
%j=load i8*,i8**%b,align 8
br label%k
k:
%l=phi i8*[%j,%i],[%a,%m]
%n=bitcast i8*%l to i8**
%o=load i8*,i8**%n,align 8
store i8*%o,i8**%b,align 8
%p=getelementptr inbounds i8,i8*%l,i64 8
%q=bitcast i8*%p to i8**
%r=load i8*,i8**%q,align 8
store i8*%r,i8**%c,align 8
%s=getelementptr inbounds i8,i8*%l,i64 16
%t=bitcast i8*%s to i8**
%u=load i8*,i8**%t,align 8
%v=call fastcc i8*@_SMLFN18SMLSharp__SQL__PGSQL6PQexecE(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**
%A=load i8*,i8**%z,align 8
store i8*%A,i8**%d,align 8
%B=call i8*@sml_alloc(i32 inreg 20)#0
%C=getelementptr inbounds i8,i8*%B,i64 -4
%D=bitcast i8*%C to i32*
store i32 1342177296,i32*%D,align 4
%E=bitcast i8*%B to i8**
store i8*%u,i8**%E,align 8
%F=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%G=getelementptr inbounds i8,i8*%B,i64 8
%H=bitcast i8*%G to i8**
store i8*%F,i8**%H,align 8
%I=getelementptr inbounds i8,i8*%B,i64 16
%J=bitcast i8*%I to i32*
store i32 2,i32*%J,align 4
%K=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%L=call fastcc i8*%y(i8*inreg%K,i8*inreg%B)
%M=bitcast i8*%L to i8**
%N=load i8*,i8**%M,align 8
%O=icmp ne i8*%N,null
br i1%O,label%P,label%ae
P:
%Q=call fastcc i8*@_SMLFN18SMLSharp__SQL__PGSQL14PQresultStatusE(i32 inreg 0)
%R=getelementptr inbounds i8,i8*%Q,i64 16
%S=bitcast i8*%R to i8*(i8*,i8*)**
%T=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%S,align 8
%U=bitcast i8*%Q to i8**
%V=load i8*,i8**%U,align 8
store i8*%V,i8**%b,align 8
%W=ptrtoint i8*%N to i64
%X=call i8*@sml_alloc(i32 inreg 8)#0
%Y=getelementptr inbounds i8,i8*%X,i64 -4
%Z=bitcast i8*%Y to i32*
store i32 8,i32*%Z,align 4
%aa=bitcast i8*%X to i64*
store i64%W,i64*%aa,align 4
%ab=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%ac=call fastcc i8*%T(i8*inreg%ab,i8*inreg%X)
%ad=bitcast i8*%ac to i32*
br label%ae
ae:
%af=phi i32*[%ad,%P],[@_SMLZN18SMLSharp__SQL__PGSQL17PGRES__FATAL__ERRORE,%k]
%ag=load i32,i32*%af,align 4
%ah=load i32,i32*@_SMLZN18SMLSharp__SQL__PGSQL16PGRES__COMMAND__OKE,align 4
%ai=icmp ne i32%ag,%ah
%aj=load i32,i32*@_SMLZN18SMLSharp__SQL__PGSQL15PGRES__TUPLES__OKE,align 4
%ak=icmp ne i32%ag,%aj
%al=and i1%ai,%ak
br i1%al,label%am,label%aZ
am:
store i8*null,i8**%c,align 8
%an=load i8*,i8**@_SMLZN19SMLSharp__SQL__Errors4ExecE,align 8
store i8*%an,i8**%b,align 8
br i1%O,label%ao,label%aE
ao:
%ap=call fastcc i8*@_SMLFN18SMLSharp__SQL__PGSQL7PQclearE(i32 inreg 0)
%aq=getelementptr inbounds i8,i8*%ap,i64 16
%ar=bitcast i8*%aq to i8*(i8*,i8*)**
%as=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%ar,align 8
%at=bitcast i8*%ap to i8**
%au=load i8*,i8**%at,align 8
store i8*%au,i8**%c,align 8
%av=ptrtoint i8*%N to i64
%aw=call i8*@sml_alloc(i32 inreg 8)#0
%ax=getelementptr inbounds i8,i8*%aw,i64 -4
%ay=bitcast i8*%ax to i32*
store i32 8,i32*%ay,align 4
%az=bitcast i8*%aw to i64*
store i64%av,i64*%az,align 4
%aA=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aB=call fastcc i8*%as(i8*inreg%aA,i8*inreg%aw)
%aC=ptrtoint i8*%u to i64
%aD=call fastcc i8*@_SMLFN18SMLSharp__SQL__PGSQL15getErrorMessageE(i64 inreg%aC)
br label%aE
aE:
%aF=phi i8*[%aD,%ao],[getelementptr inbounds(<{[4x i8],i32,[5x i8]}>,<{[4x i8],i32,[5x i8]}>*@t,i64 0,i32 2,i64 0),%am]
store i8*%aF,i8**%c,align 8
%aG=call i8*@sml_alloc(i32 inreg 28)#0
%aH=getelementptr inbounds i8,i8*%aG,i64 -4
%aI=bitcast i8*%aH to i32*
store i32 1342177304,i32*%aI,align 4
store i8*%aG,i8**%d,align 8
%aJ=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aK=bitcast i8*%aG to i8**
store i8*%aJ,i8**%aK,align 8
%aL=getelementptr inbounds i8,i8*%aG,i64 8
%aM=bitcast i8*%aL to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[41x i8]}>,<{[4x i8],i32,[41x i8]}>*@s,i64 0,i32 2,i64 0),i8**%aM,align 8
%aN=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aO=getelementptr inbounds i8,i8*%aG,i64 16
%aP=bitcast i8*%aO to i8**
store i8*%aN,i8**%aP,align 8
%aQ=getelementptr inbounds i8,i8*%aG,i64 24
%aR=bitcast i8*%aQ to i32*
store i32 7,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**%d,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=call i8*@sml_alloc(i32 inreg 4)#0
%a1=bitcast i8*%a0 to i32*
%a2=getelementptr inbounds i8,i8*%a0,i64 -4
%a3=bitcast i8*%a2 to i32*
store i32 536870916,i32*%a3,align 4
store i8*%a0,i8**%e,align 8
store i32 -1,i32*%a1,align 4
%a4=call fastcc i8*@_SMLFN18SMLSharp__SQL__PGSQL9PQntuplesE(i32 inreg 0)
%a5=getelementptr inbounds i8,i8*%a4,i64 16
%a6=bitcast i8*%a5 to i8*(i8*,i8*)**
%a7=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%a6,align 8
%a8=bitcast i8*%a4 to i8**
%a9=load i8*,i8**%a8,align 8
store i8*%a9,i8**%b,align 8
%ba=ptrtoint i8*%N to i64
%bb=call i8*@sml_alloc(i32 inreg 8)#0
%bc=getelementptr inbounds i8,i8*%bb,i64 -4
%bd=bitcast i8*%bc to i32*
store i32 8,i32*%bd,align 4
%be=bitcast i8*%bb to i64*
store i64%ba,i64*%be,align 4
%bf=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%bg=call fastcc i8*%a7(i8*inreg%bf,i8*inreg%bb)
%bh=bitcast i8*%bg to i32*
%bi=load i32,i32*%bh,align 4
%bj=call i8*@sml_alloc(i32 inreg 28)#0
%bk=getelementptr inbounds i8,i8*%bj,i64 -4
%bl=bitcast i8*%bk to i32*
store i32 1342177304,i32*%bl,align 4
store i8*%bj,i8**%b,align 8
%bm=getelementptr inbounds i8,i8*%bj,i64 4
%bn=bitcast i8*%bm to i32*
store i32 0,i32*%bn,align 1
%bo=bitcast i8*%bj to i32*
store i32%bi,i32*%bo,align 4
%bp=getelementptr inbounds i8,i8*%bj,i64 8
%bq=bitcast i8*%bp to i8**
store i8*%N,i8**%bq,align 8
%br=load i8*,i8**%e,align 8
%bs=getelementptr inbounds i8,i8*%bj,i64 16
%bt=bitcast i8*%bs to i8**
store i8*%br,i8**%bt,align 8
%bu=getelementptr inbounds i8,i8*%bj,i64 24
%bv=bitcast i8*%bu to i32*
store i32 4,i32*%bv,align 4
%bw=bitcast i8**%e to i32**
%bx=bitcast i8*%br to i32*
br label%by
by:
%bz=phi i32*[%bY,%bN],[%bx,%aZ]
%bA=phi i8*[%bO,%bN],[null,%aZ]
store i8*%bA,i8**%d,align 8
%bB=load i32,i32*%bz,align 4
%bC=add nsw i32%bB,1
%bD=icmp slt i32%bC,%bi
br i1%bD,label%bE,label%bZ
bE:
store i32%bC,i32*%bz,align 4
%bF=load i8*,i8**%c,align 8
%bG=getelementptr inbounds i8,i8*%bF,i64 16
%bH=bitcast i8*%bG to i8*(i8*,i8*)**
%bI=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bH,align 8
%bJ=bitcast i8*%bF to i8**
%bK=load i8*,i8**%bJ,align 8
%bL=load i8*,i8**%b,align 8
%bM=invoke fastcc i8*%bI(i8*inreg%bK,i8*inreg%bL)
to label%bN unwind label%ck
bN:
store i8*%bM,i8**%f,align 8
%bO=call i8*@sml_alloc(i32 inreg 20)#0
%bP=getelementptr inbounds i8,i8*%bO,i64 -4
%bQ=bitcast i8*%bP to i32*
store i32 1342177296,i32*%bQ,align 4
%bR=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%bS=bitcast i8*%bO to i8**
store i8*%bR,i8**%bS,align 8
%bT=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%bU=getelementptr inbounds i8,i8*%bO,i64 8
%bV=bitcast i8*%bU to i8**
store i8*%bT,i8**%bV,align 8
%bW=getelementptr inbounds i8,i8*%bO,i64 16
%bX=bitcast i8*%bW to i32*
store i32 3,i32*%bX,align 4
%bY=load i32*,i32**%bw,align 8
br label%by
bZ:
store i8*null,i8**%b,align 8
store i8*null,i8**%e,align 8
store i8*null,i8**%d,align 8
store i8*%bA,i8**%c,align 8
%b0=call fastcc i8*@_SMLFN18SMLSharp__SQL__PGSQL7PQclearE(i32 inreg 0)
%b1=getelementptr inbounds i8,i8*%b0,i64 16
%b2=bitcast i8*%b1 to i8*(i8*,i8*)**
%b3=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%b2,align 8
%b4=bitcast i8*%b0 to i8**
%b5=load i8*,i8**%b4,align 8
store i8*%b5,i8**%b,align 8
%b6=call i8*@sml_alloc(i32 inreg 8)#0
%b7=getelementptr inbounds i8,i8*%b6,i64 -4
%b8=bitcast i8*%b7 to i32*
store i32 8,i32*%b8,align 4
%b9=bitcast i8*%b6 to i64*
store i64%ba,i64*%b9,align 4
%ca=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%cb=call fastcc i8*%b3(i8*inreg%ca,i8*inreg%b6)
%cc=call fastcc i8*@_SMLFN4List3revE(i32 inreg 1,i32 inreg 8)
%cd=getelementptr inbounds i8,i8*%cc,i64 16
%ce=bitcast i8*%cd to i8*(i8*,i8*)**
%cf=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%ce,align 8
%cg=bitcast i8*%cc to i8**
%ch=load i8*,i8**%cg,align 8
%ci=load i8*,i8**%c,align 8
%cj=tail call fastcc i8*%cf(i8*inreg%ch,i8*inreg%ci)
ret i8*%cj
ck:
%cl=landingpad{i8*,i8*}
catch i8*null
%cm=extractvalue{i8*,i8*}%cl,1
%cn=bitcast i8*%cm to i8**
%co=load i8*,i8**%cn,align 8
store i8*null,i8**%b,align 8
store i8*null,i8**%d,align 8
store i8*null,i8**%e,align 8
store i8*null,i8**%f,align 8
store i8*%co,i8**%c,align 8
%cp=call fastcc i8*@_SMLFN18SMLSharp__SQL__PGSQL7PQclearE(i32 inreg 0)
%cq=getelementptr inbounds i8,i8*%cp,i64 16
%cr=bitcast i8*%cq to i8*(i8*,i8*)**
%cs=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%cr,align 8
%ct=bitcast i8*%cp to i8**
%cu=load i8*,i8**%ct,align 8
store i8*%cu,i8**%b,align 8
%cv=call i8*@sml_alloc(i32 inreg 8)#0
%cw=getelementptr inbounds i8,i8*%cv,i64 -4
%cx=bitcast i8*%cw to i32*
store i32 8,i32*%cx,align 4
%cy=bitcast i8*%cv to i64*
store i64%ba,i64*%cy,align 4
%cz=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%cA=call fastcc i8*%cs(i8*inreg%cz,i8*inreg%cv)
%cB=call i8*@sml_alloc(i32 inreg 60)#0
%cC=getelementptr inbounds i8,i8*%cB,i64 -4
%cD=bitcast i8*%cC to i32*
store i32 1342177336,i32*%cD,align 4
%cE=getelementptr inbounds i8,i8*%cB,i64 56
%cF=bitcast i8*%cE to i32*
store i32 1,i32*%cF,align 4
%cG=load i8*,i8**%c,align 8
%cH=bitcast i8*%cB to i8**
store i8*%cG,i8**%cH,align 8
call void@sml_raise(i8*inreg%cB)#1
unreachable
}
define internal fastcc i8*@_SMLLL7fetchFn_129(i8*inreg%a)#2 gc"smlsharp"{
%b=alloca i8*,align 8
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%b,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%g,label%f
f:
call void@sml_check(i32 inreg%d)
br label%g
g:
%h=call i8*@sml_alloc(i32 inreg 20)#0
%i=getelementptr inbounds i8,i8*%h,i64 -4
%j=bitcast i8*%i to i32*
store i32 1342177296,i32*%j,align 4
%k=getelementptr inbounds i8,i8*%h,i64 12
%l=bitcast i8*%k to i32*
store i32 0,i32*%l,align 1
%m=load i8*,i8**%b,align 8
%n=bitcast i8*%h to i8**
store i8*%m,i8**%n,align 8
%o=getelementptr inbounds i8,i8*%h,i64 8
%p=bitcast i8*%o to i32*
store i32 0,i32*%p,align 4
%q=getelementptr inbounds i8,i8*%h,i64 16
%r=bitcast i8*%q to i32*
store i32 1,i32*%r,align 4
%s=call fastcc i8*@_SMLLLN25SMLSharp__SQL__PGSQLBackend9getStringE_123(i8*inreg%h)
store i8*%s,i8**%c,align 8
%t=call i8*@sml_alloc(i32 inreg 20)#0
%u=getelementptr inbounds i8,i8*%t,i64 -4
%v=bitcast i8*%u to i32*
store i32 1342177296,i32*%v,align 4
%w=getelementptr inbounds i8,i8*%t,i64 12
%x=bitcast i8*%w to i32*
store i32 0,i32*%x,align 1
%y=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%z=bitcast i8*%t to i8**
store i8*%y,i8**%z,align 8
%A=getelementptr inbounds i8,i8*%t,i64 8
%B=bitcast i8*%A to i32*
store i32 1,i32*%B,align 4
%C=getelementptr inbounds i8,i8*%t,i64 16
%D=bitcast i8*%C to i32*
store i32 1,i32*%D,align 4
%E=call fastcc i8*@_SMLLLN25SMLSharp__SQL__PGSQLBackend9getStringE_123(i8*inreg%t)
store i8*%E,i8**%b,align 8
%F=call i8*@sml_alloc(i32 inreg 20)#0
%G=getelementptr inbounds i8,i8*%F,i64 -4
%H=bitcast i8*%G to i32*
store i32 1342177296,i32*%H,align 4
%I=load i8*,i8**%b,align 8
%J=bitcast i8*%F to i8**
store i8*%I,i8**%J,align 8
%K=load i8*,i8**%c,align 8
%L=getelementptr inbounds i8,i8*%F,i64 8
%M=bitcast i8*%L to i8**
store i8*%K,i8**%M,align 8
%N=getelementptr inbounds i8,i8*%F,i64 16
%O=bitcast i8*%N to i32*
store i32 3,i32*%O,align 4
ret i8*%F
}
define internal fastcc i8*@_SMLLL7fetchFn_145(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 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
%l=getelementptr inbounds i8,i8*%i,i64 12
%m=bitcast i8*%l to i32*
store i32 0,i32*%m,align 1
%n=load i8*,i8**%b,align 8
%o=bitcast i8*%i to i8**
store i8*%n,i8**%o,align 8
%p=getelementptr inbounds i8,i8*%i,i64 8
%q=bitcast i8*%p to i32*
store i32 0,i32*%q,align 4
%r=getelementptr inbounds i8,i8*%i,i64 16
%s=bitcast i8*%r to i32*
store i32 1,i32*%s,align 4
%t=call fastcc i8*@_SMLLLN25SMLSharp__SQL__PGSQLBackend9getStringE_123(i8*inreg%i)
store i8*%t,i8**%c,align 8
%u=load i8*,i8**%b,align 8
%v=getelementptr inbounds i8,i8*%u,i64 8
%w=bitcast i8*%v to i8**
%x=load i8*,i8**%w,align 8
%y=getelementptr inbounds i8,i8*%u,i64 16
%z=bitcast i8*%y to i32**
%A=load i32*,i32**%z,align 8
%B=load i32,i32*%A,align 4
%C=call fastcc i8*@_SMLFN18SMLSharp__SQL__PGSQL11PQgetisnullE(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**%d,align 8
%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
%L=bitcast i8*%I to i8**
store i8*%x,i8**%L,align 8
%M=getelementptr inbounds i8,i8*%I,i64 8
%N=bitcast i8*%M to i32*
store i32%B,i32*%N,align 4
%O=getelementptr inbounds i8,i8*%I,i64 12
%P=bitcast i8*%O to i32*
store i32 1,i32*%P,align 4
%Q=getelementptr inbounds i8,i8*%I,i64 16
%R=bitcast i8*%Q to i32*
store i32 0,i32*%R,align 4
%S=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%T=call fastcc i8*%F(i8*inreg%S,i8*inreg%I)
%U=bitcast i8*%T to i32*
%V=load i32,i32*%U,align 4
%W=icmp eq i32%V,0
br i1%W,label%X,label%a6
X:
%Y=call fastcc i8*@_SMLFN18SMLSharp__SQL__PGSQL10PQgetvalueE(i32 inreg 0)
%Z=getelementptr inbounds i8,i8*%Y,i64 16
%aa=bitcast i8*%Z to i8*(i8*,i8*)**
%ab=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aa,align 8
%ac=bitcast i8*%Y to i8**
%ad=load i8*,i8**%ac,align 8
store i8*%ad,i8**%d,align 8
%ae=call i8*@sml_alloc(i32 inreg 20)#0
%af=getelementptr inbounds i8,i8*%ae,i64 -4
%ag=bitcast i8*%af to i32*
store i32 1342177296,i32*%ag,align 4
%ah=bitcast i8*%ae to i8**
store i8*%x,i8**%ah,align 8
%ai=getelementptr inbounds i8,i8*%ae,i64 8
%aj=bitcast i8*%ai to i32*
store i32%B,i32*%aj,align 4
%ak=getelementptr inbounds i8,i8*%ae,i64 12
%al=bitcast i8*%ak to i32*
store i32 1,i32*%al,align 4
%am=getelementptr inbounds i8,i8*%ae,i64 16
%an=bitcast i8*%am to i32*
store i32 0,i32*%an,align 4
%ao=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%ap=call fastcc i8*%ab(i8*inreg%ao,i8*inreg%ae)
%aq=bitcast i8*%ap to i8**
%ar=load i8*,i8**%aq,align 8
%as=call fastcc i8*@_SMLFN18SMLSharp__SQL__PGSQL11PQgetlengthE(i32 inreg 0)
%at=getelementptr inbounds i8,i8*%as,i64 16
%au=bitcast i8*%at to i8*(i8*,i8*)**
%av=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%au,align 8
%aw=bitcast i8*%as to i8**
%ax=load i8*,i8**%aw,align 8
store i8*%ax,i8**%d,align 8
%ay=call i8*@sml_alloc(i32 inreg 20)#0
%az=getelementptr inbounds i8,i8*%ay,i64 -4
%aA=bitcast i8*%az to i32*
store i32 1342177296,i32*%aA,align 4
%aB=bitcast i8*%ay to i8**
store i8*%x,i8**%aB,align 8
%aC=getelementptr inbounds i8,i8*%ay,i64 8
%aD=bitcast i8*%aC to i32*
store i32%B,i32*%aD,align 4
%aE=getelementptr inbounds i8,i8*%ay,i64 12
%aF=bitcast i8*%aE to i32*
store i32 1,i32*%aF,align 4
%aG=getelementptr inbounds i8,i8*%ay,i64 16
%aH=bitcast i8*%aG to i32*
store i32 0,i32*%aH,align 4
%aI=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aJ=call fastcc i8*%av(i8*inreg%aI,i8*inreg%ay)
%aK=bitcast i8*%aJ to i32*
%aL=load i32,i32*%aK,align 4
%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=getelementptr inbounds i8,i8*%aM,i64 12
%aQ=bitcast i8*%aP to i32*
store i32 0,i32*%aQ,align 1
%aR=bitcast i8*%aM to i8**
store i8*%ar,i8**%aR,align 8
%aS=getelementptr inbounds i8,i8*%aM,i64 8
%aT=bitcast i8*%aS to i32*
store i32%aL,i32*%aT,align 4
%aU=getelementptr inbounds i8,i8*%aM,i64 16
%aV=bitcast i8*%aU to i32*
store i32 0,i32*%aV,align 4
%aW=call fastcc i8*@_SMLFN7Pointer11importBytesE(i8*inreg%aM)
%aX=call fastcc i8*@_SMLFN4Byte13bytesToStringE(i8*inreg%aW)
store i8*%aX,i8**%d,align 8
%aY=call i8*@sml_alloc(i32 inreg 12)#0
%aZ=getelementptr inbounds i8,i8*%aY,i64 -4
%a0=bitcast i8*%aZ to i32*
store i32 1342177288,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 i32*
store i32 1,i32*%a4,align 4
%a5=icmp eq i8*%aY,null
br i1%a5,label%a6,label%bo
a6:
store i8*null,i8**%c,align 8
%a7=load i8*,i8**@_SMLZN19SMLSharp__SQL__Errors6FormatE,align 8
store i8*%a7,i8**%b,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
store i8*%a8,i8**%c,align 8
%bb=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%bc=bitcast i8*%a8 to i8**
store i8*%bb,i8**%bc,align 8
%bd=getelementptr inbounds i8,i8*%a8,i64 8
%be=bitcast i8*%bd to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[42x i8]}>,<{[4x i8],i32,[42x i8]}>*@z,i64 0,i32 2,i64 0),i8**%be,align 8
%bf=getelementptr inbounds i8,i8*%a8,i64 16
%bg=bitcast i8*%bf to i32*
store i32 3,i32*%bg,align 4
%bh=call i8*@sml_alloc(i32 inreg 60)#0
%bi=getelementptr inbounds i8,i8*%bh,i64 -4
%bj=bitcast i8*%bi to i32*
store i32 1342177336,i32*%bj,align 4
%bk=getelementptr inbounds i8,i8*%bh,i64 56
%bl=bitcast i8*%bk to i32*
store i32 1,i32*%bl,align 4
%bm=load i8*,i8**%c,align 8
%bn=bitcast i8*%bh to i8**
store i8*%bm,i8**%bn,align 8
call void@sml_raise(i8*inreg%bh)#1
unreachable
bo:
%bp=getelementptr inbounds i8,i8*%a1,i64 -4
%bq=bitcast i8*%bp to i32*
%br=load i32,i32*%bq,align 4
%bs=and i32%br,268435455
%bt=icmp eq i32%bs,2
br i1%bt,label%bu,label%bw
bu:
%bv=load i8,i8*%a1,align 1
switch i8%bv,label%bw[
i8 102,label%bP
i8 116,label%bO
]
bw:
store i8*null,i8**%c,align 8
%bx=load i8*,i8**@_SMLZN19SMLSharp__SQL__Errors6FormatE,align 8
store i8*%bx,i8**%b,align 8
%by=call i8*@sml_alloc(i32 inreg 20)#0
%bz=getelementptr inbounds i8,i8*%by,i64 -4
%bA=bitcast i8*%bz to i32*
store i32 1342177296,i32*%bA,align 4
store i8*%by,i8**%c,align 8
%bB=load i8*,i8**%b,align 8
store i8*null,i8**%b,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 i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[42x i8]}>,<{[4x i8],i32,[42x i8]}>*@z,i64 0,i32 2,i64 0),i8**%bE,align 8
%bF=getelementptr inbounds i8,i8*%by,i64 16
%bG=bitcast i8*%bF to i32*
store i32 3,i32*%bG,align 4
%bH=call i8*@sml_alloc(i32 inreg 60)#0
%bI=getelementptr inbounds i8,i8*%bH,i64 -4
%bJ=bitcast i8*%bI to i32*
store i32 1342177336,i32*%bJ,align 4
%bK=getelementptr inbounds i8,i8*%bH,i64 56
%bL=bitcast i8*%bK to i32*
store i32 1,i32*%bL,align 4
%bM=load i8*,i8**%c,align 8
%bN=bitcast i8*%bH to i8**
store i8*%bM,i8**%bN,align 8
call void@sml_raise(i8*inreg%bH)#1
unreachable
bO:
br label%bP
bP:
%bQ=phi i32*[getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@A,i64 0,i32 2),%bu],[getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@y,i64 0,i32 2),%bO]
%bR=load i32,i32*%bQ,align 4
%bS=call fastcc i32@_SMLFN4Bool3notE(i32 inreg%bR)
%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=getelementptr inbounds i8,i8*%bT,i64 12
%bX=bitcast i8*%bW to i32*
store i32 0,i32*%bX,align 1
%bY=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%bZ=bitcast i8*%bT to i8**
store i8*%bY,i8**%bZ,align 8
%b0=getelementptr inbounds i8,i8*%bT,i64 8
%b1=bitcast i8*%b0 to i32*
store i32 2,i32*%b1,align 4
%b2=getelementptr inbounds i8,i8*%bT,i64 16
%b3=bitcast i8*%b2 to i32*
store i32 1,i32*%b3,align 4
%b4=call fastcc i8*@_SMLLLN25SMLSharp__SQL__PGSQLBackend9getStringE_123(i8*inreg%bT)
store i8*%b4,i8**%b,align 8
%b5=getelementptr inbounds i8,i8*%b4,i64 -4
%b6=bitcast i8*%b5 to i32*
%b7=load i32,i32*%b6,align 4
%b8=trunc i32%b7 to i28
switch i28%b8,label%ee[
i28 5,label%dz
i28 7,label%db
i28 8,label%cJ
i28 10,label%b9
]
b9:
%ca=load i8,i8*%b4,align 1
%cb=icmp eq i8%ca,116
br i1%cb,label%cc,label%ee
cc:
%cd=getelementptr inbounds i8,i8*%b4,i64 1
%ce=load i8,i8*%cd,align 1
%cf=icmp eq i8%ce,105
br i1%cf,label%cg,label%ee
cg:
%ch=getelementptr inbounds i8,i8*%b4,i64 2
%ci=load i8,i8*%ch,align 1
%cj=icmp eq i8%ci,109
br i1%cj,label%ck,label%ee
ck:
%cl=getelementptr inbounds i8,i8*%b4,i64 3
%cm=load i8,i8*%cl,align 1
%cn=icmp eq i8%cm,101
br i1%cn,label%co,label%ee
co:
%cp=getelementptr inbounds i8,i8*%b4,i64 4
%cq=load i8,i8*%cp,align 1
%cr=icmp eq i8%cq,115
br i1%cr,label%cs,label%ee
cs:
%ct=getelementptr inbounds i8,i8*%b4,i64 5
%cu=load i8,i8*%ct,align 1
%cv=icmp eq i8%cu,116
br i1%cv,label%cw,label%ee
cw:
%cx=getelementptr inbounds i8,i8*%b4,i64 6
%cy=load i8,i8*%cx,align 1
%cz=icmp eq i8%cy,97
br i1%cz,label%cA,label%ee
cA:
%cB=getelementptr inbounds i8,i8*%b4,i64 7
%cC=load i8,i8*%cB,align 1
%cD=icmp eq i8%cC,109
br i1%cD,label%cE,label%ee
cE:
%cF=getelementptr inbounds i8,i8*%b4,i64 8
%cG=load i8,i8*%cF,align 1
%cH=icmp eq i8%cG,112
br i1%cH,label%cI,label%ee
cI:
store i8*null,i8**%b,align 8
br label%eq
cJ:
%cK=load i8,i8*%b4,align 1
%cL=icmp eq i8%cK,118
br i1%cL,label%cM,label%ee
cM:
%cN=getelementptr inbounds i8,i8*%b4,i64 1
%cO=load i8,i8*%cN,align 1
%cP=icmp eq i8%cO,97
br i1%cP,label%cQ,label%ee
cQ:
%cR=getelementptr inbounds i8,i8*%b4,i64 2
%cS=load i8,i8*%cR,align 1
%cT=icmp eq i8%cS,114
br i1%cT,label%cU,label%ee
cU:
%cV=getelementptr inbounds i8,i8*%b4,i64 3
%cW=load i8,i8*%cV,align 1
%cX=icmp eq i8%cW,99
br i1%cX,label%cY,label%ee
cY:
%cZ=getelementptr inbounds i8,i8*%b4,i64 4
%c0=load i8,i8*%cZ,align 1
%c1=icmp eq i8%c0,104
br i1%c1,label%c2,label%ee
c2:
%c3=getelementptr inbounds i8,i8*%b4,i64 5
%c4=load i8,i8*%c3,align 1
%c5=icmp eq i8%c4,97
br i1%c5,label%c6,label%ee
c6:
%c7=getelementptr inbounds i8,i8*%b4,i64 6
%c8=load i8,i8*%c7,align 1
%c9=icmp eq i8%c8,114
br i1%c9,label%da,label%ee
da:
store i8*null,i8**%b,align 8
br label%eq
db:
%dc=load i8,i8*%b4,align 1
%dd=icmp eq i8%dc,102
br i1%dd,label%de,label%ee
de:
%df=getelementptr inbounds i8,i8*%b4,i64 1
%dg=load i8,i8*%df,align 1
%dh=icmp eq i8%dg,108
br i1%dh,label%di,label%ee
di:
%dj=getelementptr inbounds i8,i8*%b4,i64 2
%dk=load i8,i8*%dj,align 1
%dl=icmp eq i8%dk,111
br i1%dl,label%dm,label%ee
dm:
%dn=getelementptr inbounds i8,i8*%b4,i64 3
%do=load i8,i8*%dn,align 1
%dp=icmp eq i8%do,97
br i1%dp,label%dq,label%ee
dq:
%dr=getelementptr inbounds i8,i8*%b4,i64 4
%ds=load i8,i8*%dr,align 1
%dt=icmp eq i8%ds,116
br i1%dt,label%du,label%ee
du:
%dv=getelementptr inbounds i8,i8*%b4,i64 5
%dw=load i8,i8*%dv,align 1
switch i8%dw,label%ee[
i8 52,label%dy
i8 56,label%dx
]
dx:
store i8*null,i8**%b,align 8
br label%eq
dy:
store i8*null,i8**%b,align 8
br label%eq
dz:
%dA=load i8,i8*%b4,align 1
switch i8%dA,label%ee[
i8 98,label%d1
i8 105,label%dO
i8 116,label%dB
]
dB:
%dC=getelementptr inbounds i8,i8*%b4,i64 1
%dD=load i8,i8*%dC,align 1
%dE=icmp eq i8%dD,101
br i1%dE,label%dF,label%ee
dF:
%dG=getelementptr inbounds i8,i8*%b4,i64 2
%dH=load i8,i8*%dG,align 1
%dI=icmp eq i8%dH,120
br i1%dI,label%dJ,label%ee
dJ:
%dK=getelementptr inbounds i8,i8*%b4,i64 3
%dL=load i8,i8*%dK,align 1
%dM=icmp eq i8%dL,116
br i1%dM,label%dN,label%ee
dN:
store i8*null,i8**%b,align 8
br label%eq
dO:
%dP=getelementptr inbounds i8,i8*%b4,i64 1
%dQ=load i8,i8*%dP,align 1
%dR=icmp eq i8%dQ,110
br i1%dR,label%dS,label%ee
dS:
%dT=getelementptr inbounds i8,i8*%b4,i64 2
%dU=load i8,i8*%dT,align 1
%dV=icmp eq i8%dU,116
br i1%dV,label%dW,label%ee
dW:
%dX=getelementptr inbounds i8,i8*%b4,i64 3
%dY=load i8,i8*%dX,align 1
%dZ=icmp eq i8%dY,52
br i1%dZ,label%d0,label%ee
d0:
store i8*null,i8**%b,align 8
br label%eq
d1:
%d2=getelementptr inbounds i8,i8*%b4,i64 1
%d3=load i8,i8*%d2,align 1
%d4=icmp eq i8%d3,111
br i1%d4,label%d5,label%ee
d5:
%d6=getelementptr inbounds i8,i8*%b4,i64 2
%d7=load i8,i8*%d6,align 1
%d8=icmp eq i8%d7,111
br i1%d8,label%d9,label%ee
d9:
%ea=getelementptr inbounds i8,i8*%b4,i64 3
%eb=load i8,i8*%ea,align 1
%ec=icmp eq i8%eb,108
br i1%ec,label%ed,label%ee
ed:
store i8*null,i8**%b,align 8
br label%eq
ee:
%ef=call i8*@sml_alloc(i32 inreg 20)#0
%eg=bitcast i8*%ef to i32*
%eh=getelementptr inbounds i8,i8*%ef,i64 -4
%ei=bitcast i8*%eh to i32*
store i32 1342177296,i32*%ei,align 4
%ej=getelementptr inbounds i8,i8*%ef,i64 4
%ek=bitcast i8*%ej to i32*
store i32 0,i32*%ek,align 1
store i32 9,i32*%eg,align 4
%el=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%em=getelementptr inbounds i8,i8*%ef,i64 8
%en=bitcast i8*%em to i8**
store i8*%el,i8**%en,align 8
%eo=getelementptr inbounds i8,i8*%ef,i64 16
%ep=bitcast i8*%eo to i32*
store i32 2,i32*%ep,align 4
br label%eq
eq:
%er=phi i8*[%ef,%ee],[bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@F,i64 0,i32 2)to i8*),%cI],[bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@E,i64 0,i32 2)to i8*),%da],[bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@D,i64 0,i32 2)to i8*),%dx],[bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@C,i64 0,i32 2)to i8*),%dy],[bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@E,i64 0,i32 2)to i8*),%dN],[bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@B,i64 0,i32 2)to i8*),%d0],[bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@A,i64 0,i32 2)to i8*),%ed]
store i8*%er,i8**%b,align 8
%es=call i8*@sml_alloc(i32 inreg 20)#0
%et=getelementptr inbounds i8,i8*%es,i64 -4
%eu=bitcast i8*%et to i32*
store i32 1342177296,i32*%eu,align 4
store i8*%es,i8**%d,align 8
%ev=getelementptr inbounds i8,i8*%es,i64 4
%ew=bitcast i8*%ev to i32*
store i32 0,i32*%ew,align 1
%ex=bitcast i8*%es to i32*
store i32%bS,i32*%ex,align 4
%ey=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%ez=getelementptr inbounds i8,i8*%es,i64 8
%eA=bitcast i8*%ez to i8**
store i8*%ey,i8**%eA,align 8
%eB=getelementptr inbounds i8,i8*%es,i64 16
%eC=bitcast i8*%eB to i32*
store i32 2,i32*%eC,align 4
%eD=call i8*@sml_alloc(i32 inreg 20)#0
%eE=getelementptr inbounds i8,i8*%eD,i64 -4
%eF=bitcast i8*%eE to i32*
store i32 1342177296,i32*%eF,align 4
%eG=load i8*,i8**%c,align 8
%eH=bitcast i8*%eD to i8**
store i8*%eG,i8**%eH,align 8
%eI=load i8*,i8**%d,align 8
%eJ=getelementptr inbounds i8,i8*%eD,i64 8
%eK=bitcast i8*%eJ to i8**
store i8*%eI,i8**%eK,align 8
%eL=getelementptr inbounds i8,i8*%eD,i64 16
%eM=bitcast i8*%eL to i32*
store i32 3,i32*%eM,align 4
ret i8*%eD
}
define internal fastcc i8*@_SMLLLN25SMLSharp__SQL__PGSQLBackend17getDatabaseSchemaE_147(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
l:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
store i8*%a,i8**%e,align 8
store i8*%b,i8**%c,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**%c,align 8
br label%j
j:
%k=phi i8*[%i,%h],[%b,%l]
%m=bitcast i8*%k to i8**
%n=load i8*,i8**%m,align 8
store i8*%n,i8**%c,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**%d,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=bitcast i8*%r to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[128x i8]}>,<{[4x i8],i32,[128x i8]}>*@w,i64 0,i32 2,i64 0),i8**%u,align 8
%v=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%w=getelementptr inbounds i8,i8*%r,i64 8
%x=bitcast i8*%w to i8**
store i8*%v,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
%A=call fastcc i8*@_SMLFN6String1_ZE(i8*inreg%r)
store i8*%A,i8**%c,align 8
%B=call i8*@sml_alloc(i32 inreg 20)#0
%C=getelementptr inbounds i8,i8*%B,i64 -4
%D=bitcast i8*%C to i32*
store i32 1342177296,i32*%D,align 4
%E=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%F=bitcast i8*%B to i8**
store i8*%E,i8**%F,align 8
%G=getelementptr inbounds i8,i8*%B,i64 8
%H=bitcast i8*%G to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[140x i8]}>,<{[4x i8],i32,[140x i8]}>*@x,i64 0,i32 2,i64 0),i8**%H,align 8
%I=getelementptr inbounds i8,i8*%B,i64 16
%J=bitcast i8*%I to i32*
store i32 3,i32*%J,align 4
%K=call fastcc i8*@_SMLFN6String1_ZE(i8*inreg%B)
store i8*%K,i8**%c,align 8
%L=bitcast i8**%e to i8***
%M=load i8**,i8***%L,align 8
store i8*null,i8**%e,align 8
%N=load i8*,i8**%M,align 8
%O=call i8*@sml_alloc(i32 inreg 28)#0
%P=getelementptr inbounds i8,i8*%O,i64 -4
%Q=bitcast i8*%P to i32*
store i32 1342177304,i32*%Q,align 4
%R=load i8*,i8**%c,align 8
store i8*null,i8**%c,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*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@G,i64 0,i32 2)to i8*),i8**%U,align 8
%V=getelementptr inbounds i8,i8*%O,i64 16
%W=bitcast i8*%V to i8**
store i8*%N,i8**%W,align 8
%X=getelementptr inbounds i8,i8*%O,i64 24
%Y=bitcast i8*%X to i32*
store i32 3,i32*%Y,align 4
%Z=call fastcc i8*@_SMLLLN25SMLSharp__SQL__PGSQLBackend9evalQueryE_127(i8*inreg%O)
store i8*%Z,i8**%c,align 8
%aa=call i8*@sml_alloc(i32 inreg 20)#0
%ab=getelementptr inbounds i8,i8*%aa,i64 -4
%ac=bitcast i8*%ab to i32*
store i32 1342177296,i32*%ac,align 4
%ad=load i8*,i8**%d,align 8
%ae=bitcast i8*%aa to i8**
store i8*%ad,i8**%ae,align 8
%af=load i8*,i8**%c,align 8
%ag=getelementptr inbounds i8,i8*%aa,i64 8
%ah=bitcast i8*%ag to i8**
store i8*%af,i8**%ah,align 8
%ai=getelementptr inbounds i8,i8*%aa,i64 16
%aj=bitcast i8*%ai to i32*
store i32 3,i32*%aj,align 4
ret i8*%aa
}
define fastcc i8*@_SMLFN25SMLSharp__SQL__PGSQLBackend17getDatabaseSchemaE(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 28)#0
%k=getelementptr inbounds i8,i8*%j,i64 -4
%l=bitcast i8*%k to i32*
store i32 1342177304,i32*%l,align 4
%m=bitcast i8*%j to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[245x i8]}>,<{[4x i8],i32,[245x i8]}>*@v,i64 0,i32 2,i64 0),i8**%m,align 8
%n=getelementptr inbounds i8,i8*%j,i64 8
%o=bitcast i8*%n to i8**
store 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*),i8**%o,align 8
%p=getelementptr inbounds i8,i8*%j,i64 16
%q=bitcast i8*%p to i8**
store i8*%i,i8**%q,align 8
%r=getelementptr inbounds i8,i8*%j,i64 24
%s=bitcast i8*%r to i32*
store i32 3,i32*%s,align 4
%t=call fastcc i8*@_SMLLLN25SMLSharp__SQL__PGSQLBackend9evalQueryE_127(i8*inreg%j)
store i8*%t,i8**%b,align 8
%u=call fastcc i8*@_SMLFN4List3mapE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%v=getelementptr inbounds i8,i8*%u,i64 16
%w=bitcast i8*%v to i8*(i8*,i8*)**
%x=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%w,align 8
%y=bitcast i8*%u to i8**
%z=load i8*,i8**%y,align 8
store i8*%z,i8**%c,align 8
%A=call i8*@sml_alloc(i32 inreg 12)#0
%B=getelementptr inbounds i8,i8*%A,i64 -4
%C=bitcast i8*%B to i32*
store i32 1342177288,i32*%C,align 4
store i8*%A,i8**%d,align 8
%D=bitcast i8*%A to i8**
store i8*%i,i8**%D,align 8
%E=getelementptr inbounds i8,i8*%A,i64 8
%F=bitcast i8*%E to i32*
store i32 0,i32*%F,align 4
%G=call i8*@sml_alloc(i32 inreg 28)#0
%H=getelementptr inbounds i8,i8*%G,i64 -4
%I=bitcast i8*%H to i32*
store i32 1342177304,i32*%I,align 4
%J=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%K=bitcast i8*%G to i8**
store i8*%J,i8**%K,align 8
%L=getelementptr inbounds i8,i8*%G,i64 8
%M=bitcast i8*%L to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN25SMLSharp__SQL__PGSQLBackend17getDatabaseSchemaE_147 to void(...)*),void(...)**%M,align 8
%N=getelementptr inbounds i8,i8*%G,i64 16
%O=bitcast i8*%N to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN25SMLSharp__SQL__PGSQLBackend17getDatabaseSchemaE_147 to void(...)*),void(...)**%O,align 8
%P=getelementptr inbounds i8,i8*%G,i64 24
%Q=bitcast i8*%P to i32*
store i32 -2147483647,i32*%Q,align 4
%R=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%S=call fastcc i8*%x(i8*inreg%R,i8*inreg%G)
%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=tail call fastcc i8*%V(i8*inreg%X,i8*inreg%Y)
ret i8*%Z
}
define fastcc i8*@_SMLFN25SMLSharp__SQL__PGSQLBackend14columnTypeNameE(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,[42x i8]}>,<{[4x i8],i32,[42x i8]}>*@Q,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]}>*@P,i64 0,i32 2,i64 0),%h],[getelementptr inbounds(<{[4x i8],i32,[10x i8]}>,<{[4x i8],i32,[10x i8]}>*@O,i64 0,i32 2,i64 0),%K],[getelementptr inbounds(<{[4x i8],i32,[8x i8]}>,<{[4x i8],i32,[8x i8]}>*@N,i64 0,i32 2,i64 0),%L],[getelementptr inbounds(<{[4x i8],i32,[7x i8]}>,<{[4x i8],i32,[7x i8]}>*@M,i64 0,i32 2,i64 0),%M],[getelementptr inbounds(<{[4x i8],i32,[7x i8]}>,<{[4x i8],i32,[7x i8]}>*@L,i64 0,i32 2,i64 0),%N],[getelementptr inbounds(<{[4x i8],i32,[5x i8]}>,<{[4x i8],i32,[5x i8]}>*@K,i64 0,i32 2,i64 0),%O],[getelementptr inbounds(<{[4x i8],i32,[1x i8]}>,<{[4x i8],i32,[1x i8]}>*@J,i64 0,i32 2,i64 0),%P],[getelementptr inbounds(<{[4x i8],i32,[1x i8]}>,<{[4x i8],i32,[1x i8]}>*@J,i64 0,i32 2,i64 0),%Q],[getelementptr inbounds(<{[4x i8],i32,[1x i8]}>,<{[4x i8],i32,[1x i8]}>*@J,i64 0,i32 2,i64 0),%R],[getelementptr inbounds(<{[4x i8],i32,[4x i8]}>,<{[4x i8],i32,[4x i8]}>*@I,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*@_SMLLLN25SMLSharp__SQL__PGSQLBackend9execQueryE_163(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN25SMLSharp__SQL__PGSQLBackend9execQueryE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN25SMLSharp__SQL__PGSQLBackend5fetchE_164(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i32@_SMLFN25SMLSharp__SQL__PGSQLBackend5fetchE(i8*inreg%b)
%d=tail call i8*@sml_alloc(i32 inreg 4)#0
%e=bitcast i8*%d to i32*
%f=getelementptr inbounds i8,i8*%d,i64 -4
%g=bitcast i8*%f to i32*
store i32 4,i32*%g,align 4
store i32%c,i32*%e,align 4
ret i8*%d
}
define internal fastcc i8*@_SMLLLN25SMLSharp__SQL__PGSQLBackend9closeConnE_165(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@_SMLFN25SMLSharp__SQL__PGSQLBackend9closeConnE(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*@_SMLLLN25SMLSharp__SQL__PGSQLBackend8closeResE_166(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
tail call fastcc void@_SMLFN25SMLSharp__SQL__PGSQLBackend8closeResE(i8*inreg%b)
%c=tail call i8*@sml_alloc(i32 inreg 4)#0
%d=bitcast i8*%c to i32*
%e=getelementptr inbounds i8,i8*%c,i64 -4
%f=bitcast i8*%e to i32*
store i32 4,i32*%f,align 4
store i32 0,i32*%d,align 4
ret i8*%c
}
define internal fastcc i8*@_SMLLLN25SMLSharp__SQL__PGSQLBackend7connectE_167(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN25SMLSharp__SQL__PGSQLBackend7connectE(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*@_SMLLLN25SMLSharp__SQL__PGSQLBackend8getValueE_168(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN25SMLSharp__SQL__PGSQLBackend8getValueE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN25SMLSharp__SQL__PGSQLBackend8intValueE_169(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN25SMLSharp__SQL__PGSQLBackend8intValueE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN25SMLSharp__SQL__PGSQLBackend11intInfValueE_170(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN25SMLSharp__SQL__PGSQLBackend11intInfValueE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN25SMLSharp__SQL__PGSQLBackend9wordValueE_171(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN25SMLSharp__SQL__PGSQLBackend9wordValueE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN25SMLSharp__SQL__PGSQLBackend9realValueE_172(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN25SMLSharp__SQL__PGSQLBackend9realValueE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN25SMLSharp__SQL__PGSQLBackend11real32ValueE_173(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN25SMLSharp__SQL__PGSQLBackend11real32ValueE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN25SMLSharp__SQL__PGSQLBackend11stringValueE_174(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN25SMLSharp__SQL__PGSQLBackend11stringValueE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN25SMLSharp__SQL__PGSQLBackend9charValueE_175(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN25SMLSharp__SQL__PGSQLBackend9charValueE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN25SMLSharp__SQL__PGSQLBackend14timestampValueE_176(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN25SMLSharp__SQL__PGSQLBackend14timestampValueE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN25SMLSharp__SQL__PGSQLBackend12numericValueE_177(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN25SMLSharp__SQL__PGSQLBackend12numericValueE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN25SMLSharp__SQL__PGSQLBackend9boolValueE_178(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN25SMLSharp__SQL__PGSQLBackend9boolValueE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLL7fetchFn_181(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLLL7fetchFn_129(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLL7fetchFn_182(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLLL7fetchFn_145(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN25SMLSharp__SQL__PGSQLBackend17getDatabaseSchemaE_183(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*@_SMLFN25SMLSharp__SQL__PGSQLBackend17getDatabaseSchemaE(i64 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLLN25SMLSharp__SQL__PGSQLBackend14columnTypeNameE_184(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN25SMLSharp__SQL__PGSQLBackend14columnTypeNameE(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}
