@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,[41x i8]}><{[4x i8]zeroinitializer,i32 -2147483607,[41x i8]c"src/sql/main/PGSQLBackend.sml:33.16(935)\00"}>,align 8
@b=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN25SMLSharp__SQL__PGSQLBackend9execQueryE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN25SMLSharp__SQL__PGSQLBackend9execQueryE_167 to void(...)*),i32 -2147483647}>,align 8
@c=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i32(i8*)*@_SMLFN25SMLSharp__SQL__PGSQLBackend5fetchE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN25SMLSharp__SQL__PGSQLBackend5fetchE_168 to void(...)*),i32 -2147483647}>,align 8
@d=private unnamed_addr constant<{[4x i8],i32,[42x i8]}><{[4x i8]zeroinitializer,i32 -2147483606,[42x i8]c"src/sql/main/PGSQLBackend.sml:54.19(1684)\00"}>,align 8
@e=private unnamed_addr constant<{[4x i8],i32,[5x i8]}><{[4x i8]zeroinitializer,i32 -2147483643,[5x i8]c"NULL\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*)*@_SMLLN25SMLSharp__SQL__PGSQLBackend7connectE_169 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*)*@_SMLLN25SMLSharp__SQL__PGSQLBackend8getValueE_170 to void(...)*),i32 -2147483647}>,align 8
@h=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
@i=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
@j=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
@k=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
@l=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
@m=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
@n=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
@o=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
@p=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLL7fetchFn_117 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLL7fetchFn_174 to void(...)*),i32 -2147483647}>,align 8
@q=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
@r=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLL7fetchFn_123 to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLL7fetchFn_176 to void(...)*),i32 -2147483647}>,align 8
@s=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*)*@_SMLLN25SMLSharp__SQL__PGSQLBackend17getDatabaseSchemaE_177 to void(...)*),i32 -2147483647}>,align 8
@t=private unnamed_addr constant<{[4x i8],i32,[4x i8]}><{[4x i8]zeroinitializer,i32 -2147483644,[4x i8]c"INT\00"}>,align 8
@u=private unnamed_addr constant<{[4x i8],i32,[1x i8]}><{[4x i8]zeroinitializer,i32 -2147483647,[1x i8]zeroinitializer}>,align 8
@v=private unnamed_addr constant<{[4x i8],i32,[5x i8]}><{[4x i8]zeroinitializer,i32 -2147483643,[5x i8]c"TEXT\00"}>,align 8
@w=private unnamed_addr constant<{[4x i8],i32,[7x i8]}><{[4x i8]zeroinitializer,i32 -2147483641,[7x i8]c"FLOAT8\00"}>,align 8
@x=private unnamed_addr constant<{[4x i8],i32,[7x i8]}><{[4x i8]zeroinitializer,i32 -2147483641,[7x i8]c"FLOAT4\00"}>,align 8
@y=private unnamed_addr constant<{[4x i8],i32,[8x i8]}><{[4x i8]zeroinitializer,i32 -2147483640,[8x i8]c"BOOLEAN\00"}>,align 8
@z=private unnamed_addr constant<{[4x i8],i32,[10x i8]}><{[4x i8]zeroinitializer,i32 -2147483638,[10x i8]c"TIMESTAMP\00"}>,align 8
@A=private unnamed_addr constant<{[4x i8],i32,[8x i8]}><{[4x i8]zeroinitializer,i32 -2147483640,[8x i8]c"NUMERIC\00"}>,align 8
@B=private unnamed_addr constant<{[4x i8],i32,[42x i8]}><{[4x i8]zeroinitializer,i32 -2147483606,[42x i8]c"src/sql/main/PGSQLBackend.sml:159.6(5711)\00"}>,align 8
@C=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN25SMLSharp__SQL__PGSQLBackend14columnTypeNameE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN25SMLSharp__SQL__PGSQLBackend14columnTypeNameE_178 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}>*@b,i64 0,i32 2)to i8*)
@D=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*)*@_SMLLN25SMLSharp__SQL__PGSQLBackend9closeConnE_179 to void(...)*),i32 -2147483647}>,align 8
@_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}>*@D,i64 0,i32 2)to i8*)
@E=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*)*@_SMLLN25SMLSharp__SQL__PGSQLBackend8closeResE_180 to void(...)*),i32 -2147483647}>,align 8
@_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}>*@E,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}>*@s,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}>*@C,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}>*@c,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*)
@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__PGSQLBackend8intValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN25SMLSharp__SQL__PGSQLBackend8intValueE_181 to void(...)*),i32 -2147483647}>,align 8
@_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}>*@F,i64 0,i32 2)to i8*)
@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__PGSQLBackend11intInfValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN25SMLSharp__SQL__PGSQLBackend11intInfValueE_182 to void(...)*),i32 -2147483647}>,align 8
@_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}>*@G,i64 0,i32 2)to i8*)
@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__PGSQLBackend9wordValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN25SMLSharp__SQL__PGSQLBackend9wordValueE_183 to void(...)*),i32 -2147483647}>,align 8
@_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}>*@H,i64 0,i32 2)to i8*)
@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__PGSQLBackend9realValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN25SMLSharp__SQL__PGSQLBackend9realValueE_184 to void(...)*),i32 -2147483647}>,align 8
@_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}>*@I,i64 0,i32 2)to i8*)
@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__PGSQLBackend11real32ValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN25SMLSharp__SQL__PGSQLBackend11real32ValueE_185 to void(...)*),i32 -2147483647}>,align 8
@_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}>*@J,i64 0,i32 2)to i8*)
@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__PGSQLBackend11stringValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN25SMLSharp__SQL__PGSQLBackend11stringValueE_186 to void(...)*),i32 -2147483647}>,align 8
@_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}>*@K,i64 0,i32 2)to i8*)
@L=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
@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__PGSQLBackend9charValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN25SMLSharp__SQL__PGSQLBackend9charValueE_187 to void(...)*),i32 -2147483647}>,align 8
@_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}>*@M,i64 0,i32 2)to i8*)
@N=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
@O=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
@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__PGSQLBackend9boolValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN25SMLSharp__SQL__PGSQLBackend9boolValueE_188 to void(...)*),i32 -2147483647}>,align 8
@_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}>*@P,i64 0,i32 2)to i8*)
@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__PGSQLBackend14timestampValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN25SMLSharp__SQL__PGSQLBackend14timestampValueE_189 to void(...)*),i32 -2147483647}>,align 8
@_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}>*@Q,i64 0,i32 2)to i8*)
@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__PGSQLBackend12numericValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN25SMLSharp__SQL__PGSQLBackend12numericValueE_190 to void(...)*),i32 -2147483647}>,align 8
@_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}>*@R,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]}>*@e,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]}>*@a,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 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]}>*@e,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]}>*@d,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 internal fastcc i8*@_SMLLN25SMLSharp__SQL__PGSQLBackend9getStringE_97(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=call fastcc i8*@_SMLFN25SMLSharp__SQL__PGSQLBackend8getValueE(i8*inreg%i)
%l=icmp eq i8*%k,null
br i1%l,label%m,label%E
m:
%n=load i8*,i8**@_SMLZN19SMLSharp__SQL__Errors6FormatE,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]}>*@h,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=bitcast i8*%k to i8**
%G=load i8*,i8**%F,align 8
store i8*%G,i8**%b,align 8
%H=call i8*@sml_alloc(i32 inreg 12)#0
%I=getelementptr inbounds i8,i8*%H,i64 -4
%J=bitcast i8*%I to i32*
store i32 1342177288,i32*%J,align 4
%K=load i8*,i8**%b,align 8
%L=bitcast i8*%H to i8**
store i8*%K,i8**%L,align 8
%M=getelementptr inbounds i8,i8*%H,i64 8
%N=bitcast i8*%M to i32*
store i32 1,i32*%N,align 4
%O=icmp eq i8*%H,null
br i1%O,label%P,label%ah
P:
%Q=load i8*,i8**@_SMLZN19SMLSharp__SQL__Errors6FormatE,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
store i8*%R,i8**%c,align 8
%U=load i8*,i8**%b,align 8
store i8*null,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]}>*@h,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
%aa=call i8*@sml_alloc(i32 inreg 60)#0
%ab=getelementptr inbounds i8,i8*%aa,i64 -4
%ac=bitcast i8*%ab to i32*
store i32 1342177336,i32*%ac,align 4
%ad=getelementptr inbounds i8,i8*%aa,i64 56
%ae=bitcast i8*%ad to i32*
store i32 1,i32*%ae,align 4
%af=load i8*,i8**%c,align 8
%ag=bitcast i8*%aa to i8**
store i8*%af,i8**%ag,align 8
call void@sml_raise(i8*inreg%aa)#1
unreachable
ah:
ret i8*%K
}
define internal fastcc i8*@_SMLL4loop_105(i8*inreg%a,i8*inreg%b,i8*inreg%c)#2 gc"smlsharp"{
k:
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
store i8*%a,i8**%g,align 8
%h=bitcast i8**%g to i8***
br label%i
i:
%j=phi i8*[%b,%k],[%J,%w]
%l=phi i8*[%c,%k],[%T,%w]
store i8*%j,i8**%d,align 8
store i8*%l,i8**%e,align 8
%m=load atomic i32,i32*@sml_check_flag unordered,align 4
%n=icmp eq i32%m,0
br i1%n,label%r,label%o
o:
call void@sml_check(i32 inreg%m)
%p=load i8*,i8**%d,align 8
%q=load i8*,i8**%e,align 8
br label%r
r:
%s=phi i8*[%q,%o],[%l,%i]
%t=phi i8*[%p,%o],[%j,%i]
store i8*null,i8**%d,align 8
store i8*%t,i8**%f,align 8
%u=call fastcc i32@_SMLFN25SMLSharp__SQL__PGSQLBackend5fetchE(i8*inreg%s)
%v=icmp eq i32%u,0
br i1%v,label%U,label%w
w:
%x=load i8**,i8***%h,align 8
%y=load i8*,i8**%x,align 8
%z=getelementptr inbounds i8,i8*%y,i64 8
%A=bitcast i8*%z to i8**
%B=load i8*,i8**%A,align 8
%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**%e,align 8
%I=call fastcc i8*%E(i8*inreg%G,i8*inreg%H)
store i8*%I,i8**%d,align 8
%J=call i8*@sml_alloc(i32 inreg 20)#0
%K=getelementptr inbounds i8,i8*%J,i64 -4
%L=bitcast i8*%K to i32*
store i32 1342177296,i32*%L,align 4
%M=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%N=bitcast i8*%J to i8**
store i8*%M,i8**%N,align 8
%O=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%P=getelementptr inbounds i8,i8*%J,i64 8
%Q=bitcast i8*%P to i8**
store i8*%O,i8**%Q,align 8
%R=getelementptr inbounds i8,i8*%J,i64 16
%S=bitcast i8*%R to i32*
store i32 3,i32*%S,align 4
%T=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
br label%i
U:
%V=load i8*,i8**%f,align 8
ret i8*%V
}
define internal fastcc i8*@_SMLLN25SMLSharp__SQL__PGSQLBackend9evalQueryE_106(i8*inreg%a)unnamed_addr#2 gc"smlsharp"personality i32(...)*@sml_personality{
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]
store i8*%j,i8**%c,align 8
%l=bitcast i8*%j to i8**
%m=load i8*,i8**%l,align 8
store i8*%m,i8**%b,align 8
%n=getelementptr inbounds i8,i8*%j,i64 16
%o=bitcast i8*%n to i8**
%p=load i8*,i8**%o,align 8
%q=call i8*@sml_alloc(i32 inreg 20)#0
%r=getelementptr inbounds i8,i8*%q,i64 -4
%s=bitcast i8*%r to i32*
store i32 1342177296,i32*%s,align 4
%t=bitcast i8*%q to i8**
store i8*%p,i8**%t,align 8
%u=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%v=getelementptr inbounds i8,i8*%q,i64 8
%w=bitcast i8*%v to i8**
store i8*%u,i8**%w,align 8
%x=getelementptr inbounds i8,i8*%q,i64 16
%y=bitcast i8*%x to i32*
store i32 2,i32*%y,align 4
%z=call fastcc i8*@_SMLFN25SMLSharp__SQL__PGSQLBackend9execQueryE(i8*inreg%q)
store i8*%z,i8**%b,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=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%E=bitcast i8*%A to i8**
store i8*%D,i8**%E,align 8
%F=getelementptr inbounds i8,i8*%A,i64 8
%G=bitcast i8*%F to i32*
store i32 1,i32*%G,align 4
%H=call i8*@sml_alloc(i32 inreg 28)#0
%I=getelementptr inbounds i8,i8*%H,i64 -4
%J=bitcast i8*%I to i32*
store i32 1342177304,i32*%J,align 4
%K=load i8*,i8**%d,align 8
%L=bitcast i8*%H to i8**
store i8*%K,i8**%L,align 8
%M=getelementptr inbounds i8,i8*%H,i64 8
%N=bitcast i8*%M to void(...)**
store void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLL4loop_105 to void(...)*),void(...)**%N,align 8
%O=getelementptr inbounds i8,i8*%H,i64 16
%P=bitcast i8*%O to void(...)**
store void(...)*bitcast(i8*(i8*,i8*,i8*)*@_SMLL4loop_105 to void(...)*),void(...)**%P,align 8
%Q=getelementptr inbounds i8,i8*%H,i64 24
%R=bitcast i8*%Q to i32*
store i32 -2147483647,i32*%R,align 4
%S=load i8*,i8**%b,align 8
store i8*null,i8**%d,align 8
%T=invoke fastcc i8*@_SMLL4loop_105(i8*inreg%K,i8*inreg null,i8*inreg%S)
to label%U unwind label%at
U:
store i8*%T,i8**%d,align 8
%V=call fastcc i8*@_SMLFN18SMLSharp__SQL__PGSQL7PQclearE(i32 inreg 0)
%W=getelementptr inbounds i8,i8*%V,i64 16
%X=bitcast i8*%W to i8*(i8*,i8*)**
%Y=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%X,align 8
%Z=bitcast i8*%V to i8**
%aa=load i8*,i8**%Z,align 8
store i8*%aa,i8**%c,align 8
%ab=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%ac=getelementptr inbounds i8,i8*%ab,i64 8
%ad=bitcast i8*%ac to i64*
%ae=load i64,i64*%ad,align 4
%af=call i8*@sml_alloc(i32 inreg 8)#0
%ag=getelementptr inbounds i8,i8*%af,i64 -4
%ah=bitcast i8*%ag to i32*
store i32 8,i32*%ah,align 4
%ai=bitcast i8*%af to i64*
store i64%ae,i64*%ai,align 4
%aj=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ak=call fastcc i8*%Y(i8*inreg%aj,i8*inreg%af)
%al=call fastcc i8*@_SMLFN4List3revE(i32 inreg 1,i32 inreg 8)
%am=getelementptr inbounds i8,i8*%al,i64 16
%an=bitcast i8*%am to i8*(i8*,i8*)**
%ao=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%an,align 8
%ap=bitcast i8*%al to i8**
%aq=load i8*,i8**%ap,align 8
%ar=load i8*,i8**%d,align 8
%as=tail call fastcc i8*%ao(i8*inreg%aq,i8*inreg%ar)
ret i8*%as
at:
%au=landingpad{i8*,i8*}
catch i8*null
%av=extractvalue{i8*,i8*}%au,1
%aw=bitcast i8*%av to i8**
%ax=load i8*,i8**%aw,align 8
store i8*%ax,i8**%d,align 8
%ay=call fastcc i8*@_SMLFN18SMLSharp__SQL__PGSQL7PQclearE(i32 inreg 0)
%az=getelementptr inbounds i8,i8*%ay,i64 16
%aA=bitcast i8*%az to i8*(i8*,i8*)**
%aB=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%aA,align 8
%aC=bitcast i8*%ay to i8**
%aD=load i8*,i8**%aC,align 8
store i8*%aD,i8**%c,align 8
%aE=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aF=getelementptr inbounds i8,i8*%aE,i64 8
%aG=bitcast i8*%aF to i64*
%aH=load i64,i64*%aG,align 4
%aI=call i8*@sml_alloc(i32 inreg 8)#0
%aJ=getelementptr inbounds i8,i8*%aI,i64 -4
%aK=bitcast i8*%aJ to i32*
store i32 8,i32*%aK,align 4
%aL=bitcast i8*%aI to i64*
store i64%aH,i64*%aL,align 4
%aM=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aN=call fastcc i8*%aB(i8*inreg%aM,i8*inreg%aI)
%aO=call i8*@sml_alloc(i32 inreg 60)#0
%aP=getelementptr inbounds i8,i8*%aO,i64 -4
%aQ=bitcast i8*%aP to i32*
store i32 1342177336,i32*%aQ,align 4
%aR=getelementptr inbounds i8,i8*%aO,i64 56
%aS=bitcast i8*%aR to i32*
store i32 1,i32*%aS,align 4
%aT=load i8*,i8**%d,align 8
%aU=bitcast i8*%aO to i8**
store i8*%aT,i8**%aU,align 8
call void@sml_raise(i8*inreg%aO)#1
unreachable
}
define internal fastcc i8*@_SMLL7fetchFn_117(i8*inreg%a)#2 gc"smlsharp"{
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
call void@llvm.gcroot(i8**%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**%d,align 8
%g=load atomic i32,i32*@sml_check_flag unordered,align 4
%h=icmp eq i32%g,0
br i1%h,label%j,label%i
i:
call void@sml_check(i32 inreg%g)
br label%j
j:
%k=call i8*@sml_alloc(i32 inreg 20)#0
%l=getelementptr inbounds i8,i8*%k,i64 -4
%m=bitcast i8*%l to i32*
store i32 1342177296,i32*%m,align 4
%n=getelementptr inbounds i8,i8*%k,i64 12
%o=bitcast i8*%n to i32*
store i32 0,i32*%o,align 1
%p=load i8*,i8**%d,align 8
%q=bitcast i8*%k to i8**
store i8*%p,i8**%q,align 8
%r=getelementptr inbounds i8,i8*%k,i64 8
%s=bitcast i8*%r to i32*
store i32 0,i32*%s,align 4
%t=getelementptr inbounds i8,i8*%k,i64 16
%u=bitcast i8*%t to i32*
store i32 1,i32*%u,align 4
%v=call fastcc i8*@_SMLLN25SMLSharp__SQL__PGSQLBackend9getStringE_97(i8*inreg%k)
store i8*%v,i8**%e,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=getelementptr inbounds i8,i8*%w,i64 12
%A=bitcast i8*%z to i32*
store i32 0,i32*%A,align 1
%B=load i8*,i8**%d,align 8
%C=bitcast i8*%w to i8**
store i8*%B,i8**%C,align 8
%D=getelementptr inbounds i8,i8*%w,i64 8
%E=bitcast i8*%D to i32*
store i32 1,i32*%E,align 4
%F=getelementptr inbounds i8,i8*%w,i64 16
%G=bitcast i8*%F to i32*
store i32 1,i32*%G,align 4
%H=bitcast i8**%b to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%H)
%I=bitcast i8**%c to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%I)
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%w,i8**%b,align 8
%J=load atomic i32,i32*@sml_check_flag unordered,align 4
%K=icmp eq i32%J,0
br i1%K,label%N,label%L
L:
call void@sml_check(i32 inreg%J)
%M=load i8*,i8**%b,align 8
br label%N
N:
%O=phi i8*[%M,%L],[%w,%j]
store i8*null,i8**%b,align 8
%P=call fastcc i8*@_SMLFN25SMLSharp__SQL__PGSQLBackend8getValueE(i8*inreg%O)
%Q=icmp eq i8*%P,null
br i1%Q,label%R,label%aj
R:
%S=load i8*,i8**@_SMLZN19SMLSharp__SQL__Errors6FormatE,align 8
store i8*%S,i8**%b,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
store i8*%T,i8**%c,align 8
%W=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%X=bitcast i8*%T to i8**
store i8*%W,i8**%X,align 8
%Y=getelementptr inbounds i8,i8*%T,i64 8
%Z=bitcast i8*%Y to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[42x i8]}>,<{[4x i8],i32,[42x i8]}>*@h,i64 0,i32 2,i64 0),i8**%Z,align 8
%aa=getelementptr inbounds i8,i8*%T,i64 16
%ab=bitcast i8*%aa to i32*
store i32 3,i32*%ab,align 4
%ac=call i8*@sml_alloc(i32 inreg 60)#0
%ad=getelementptr inbounds i8,i8*%ac,i64 -4
%ae=bitcast i8*%ad to i32*
store i32 1342177336,i32*%ae,align 4
%af=getelementptr inbounds i8,i8*%ac,i64 56
%ag=bitcast i8*%af to i32*
store i32 1,i32*%ag,align 4
%ah=load i8*,i8**%c,align 8
%ai=bitcast i8*%ac to i8**
store i8*%ah,i8**%ai,align 8
call void@sml_raise(i8*inreg%ac)#1
unreachable
aj:
%ak=bitcast i8*%P to i8**
%al=load i8*,i8**%ak,align 8
%am=getelementptr inbounds i8,i8*%al,i64 -4
%an=bitcast i8*%am to i32*
%ao=load i32,i32*%an,align 4
%ap=and i32%ao,268435455
%aq=icmp eq i32%ap,2
br i1%aq,label%ar,label%at
ar:
%as=load i8,i8*%al,align 1
switch i8%as,label%at[
i8 102,label%aM
i8 116,label%aL
]
at:
%au=load i8*,i8**@_SMLZN19SMLSharp__SQL__Errors6FormatE,align 8
store i8*%au,i8**%b,align 8
%av=call i8*@sml_alloc(i32 inreg 20)#0
%aw=getelementptr inbounds i8,i8*%av,i64 -4
%ax=bitcast i8*%aw to i32*
store i32 1342177296,i32*%ax,align 4
store i8*%av,i8**%c,align 8
%ay=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%az=bitcast i8*%av to i8**
store i8*%ay,i8**%az,align 8
%aA=getelementptr inbounds i8,i8*%av,i64 8
%aB=bitcast i8*%aA to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[42x i8]}>,<{[4x i8],i32,[42x i8]}>*@h,i64 0,i32 2,i64 0),i8**%aB,align 8
%aC=getelementptr inbounds i8,i8*%av,i64 16
%aD=bitcast i8*%aC to i32*
store i32 3,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**%c,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:
br label%aM
aM:
%aN=phi i32*[getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@N,i64 0,i32 2),%ar],[getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@O,i64 0,i32 2),%aL]
%aO=load i32,i32*%aN,align 4
call void@llvm.lifetime.end.p0i8(i64 8,i8*%H)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%I)
%aP=call fastcc i32@_SMLFN4Bool3notE(i32 inreg%aO)
%aQ=call i8*@sml_alloc(i32 inreg 20)#0
%aR=getelementptr inbounds i8,i8*%aQ,i64 -4
%aS=bitcast i8*%aR to i32*
store i32 1342177296,i32*%aS,align 4
%aT=getelementptr inbounds i8,i8*%aQ,i64 12
%aU=bitcast i8*%aT to i32*
store i32 0,i32*%aU,align 1
%aV=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aW=bitcast i8*%aQ to i8**
store i8*%aV,i8**%aW,align 8
%aX=getelementptr inbounds i8,i8*%aQ,i64 8
%aY=bitcast i8*%aX to i32*
store i32 2,i32*%aY,align 4
%aZ=getelementptr inbounds i8,i8*%aQ,i64 16
%a0=bitcast i8*%aZ to i32*
store i32 1,i32*%a0,align 4
%a1=call fastcc i8*@_SMLLN25SMLSharp__SQL__PGSQLBackend9getStringE_97(i8*inreg%aQ)
store i8*%a1,i8**%d,align 8
%a2=getelementptr inbounds i8,i8*%a1,i64 -4
%a3=bitcast i8*%a2 to i32*
%a4=load i32,i32*%a3,align 4
%a5=trunc i32%a4 to i28
switch i28%a5,label%c5[
i28 5,label%ct
i28 7,label%b6
i28 8,label%bF
i28 10,label%a6
]
a6:
%a7=load i8,i8*%a1,align 1
%a8=icmp eq i8%a7,116
br i1%a8,label%a9,label%c5
a9:
%ba=getelementptr inbounds i8,i8*%a1,i64 1
%bb=load i8,i8*%ba,align 1
%bc=icmp eq i8%bb,105
br i1%bc,label%bd,label%c5
bd:
%be=getelementptr inbounds i8,i8*%a1,i64 2
%bf=load i8,i8*%be,align 1
%bg=icmp eq i8%bf,109
br i1%bg,label%bh,label%c5
bh:
%bi=getelementptr inbounds i8,i8*%a1,i64 3
%bj=load i8,i8*%bi,align 1
%bk=icmp eq i8%bj,101
br i1%bk,label%bl,label%c5
bl:
%bm=getelementptr inbounds i8,i8*%a1,i64 4
%bn=load i8,i8*%bm,align 1
%bo=icmp eq i8%bn,115
br i1%bo,label%bp,label%c5
bp:
%bq=getelementptr inbounds i8,i8*%a1,i64 5
%br=load i8,i8*%bq,align 1
%bs=icmp eq i8%br,116
br i1%bs,label%bt,label%c5
bt:
%bu=getelementptr inbounds i8,i8*%a1,i64 6
%bv=load i8,i8*%bu,align 1
%bw=icmp eq i8%bv,97
br i1%bw,label%bx,label%c5
bx:
%by=getelementptr inbounds i8,i8*%a1,i64 7
%bz=load i8,i8*%by,align 1
%bA=icmp eq i8%bz,109
br i1%bA,label%bB,label%c5
bB:
%bC=getelementptr inbounds i8,i8*%a1,i64 8
%bD=load i8,i8*%bC,align 1
%bE=icmp eq i8%bD,112
br i1%bE,label%dh,label%c5
bF:
%bG=load i8,i8*%a1,align 1
%bH=icmp eq i8%bG,118
br i1%bH,label%bI,label%c5
bI:
%bJ=getelementptr inbounds i8,i8*%a1,i64 1
%bK=load i8,i8*%bJ,align 1
%bL=icmp eq i8%bK,97
br i1%bL,label%bM,label%c5
bM:
%bN=getelementptr inbounds i8,i8*%a1,i64 2
%bO=load i8,i8*%bN,align 1
%bP=icmp eq i8%bO,114
br i1%bP,label%bQ,label%c5
bQ:
%bR=getelementptr inbounds i8,i8*%a1,i64 3
%bS=load i8,i8*%bR,align 1
%bT=icmp eq i8%bS,99
br i1%bT,label%bU,label%c5
bU:
%bV=getelementptr inbounds i8,i8*%a1,i64 4
%bW=load i8,i8*%bV,align 1
%bX=icmp eq i8%bW,104
br i1%bX,label%bY,label%c5
bY:
%bZ=getelementptr inbounds i8,i8*%a1,i64 5
%b0=load i8,i8*%bZ,align 1
%b1=icmp eq i8%b0,97
br i1%b1,label%b2,label%c5
b2:
%b3=getelementptr inbounds i8,i8*%a1,i64 6
%b4=load i8,i8*%b3,align 1
%b5=icmp eq i8%b4,114
br i1%b5,label%dh,label%c5
b6:
%b7=load i8,i8*%a1,align 1
%b8=icmp eq i8%b7,102
br i1%b8,label%b9,label%c5
b9:
%ca=getelementptr inbounds i8,i8*%a1,i64 1
%cb=load i8,i8*%ca,align 1
%cc=icmp eq i8%cb,108
br i1%cc,label%cd,label%c5
cd:
%ce=getelementptr inbounds i8,i8*%a1,i64 2
%cf=load i8,i8*%ce,align 1
%cg=icmp eq i8%cf,111
br i1%cg,label%ch,label%c5
ch:
%ci=getelementptr inbounds i8,i8*%a1,i64 3
%cj=load i8,i8*%ci,align 1
%ck=icmp eq i8%cj,97
br i1%ck,label%cl,label%c5
cl:
%cm=getelementptr inbounds i8,i8*%a1,i64 4
%cn=load i8,i8*%cm,align 1
%co=icmp eq i8%cn,116
br i1%co,label%cp,label%c5
cp:
%cq=getelementptr inbounds i8,i8*%a1,i64 5
%cr=load i8,i8*%cq,align 1
switch i8%cr,label%c5[
i8 52,label%cs
i8 56,label%dh
]
cs:
br label%dh
ct:
%cu=load i8,i8*%a1,align 1
switch i8%cu,label%c5[
i8 98,label%cT
i8 105,label%cH
i8 116,label%cv
]
cv:
%cw=getelementptr inbounds i8,i8*%a1,i64 1
%cx=load i8,i8*%cw,align 1
%cy=icmp eq i8%cx,101
br i1%cy,label%cz,label%c5
cz:
%cA=getelementptr inbounds i8,i8*%a1,i64 2
%cB=load i8,i8*%cA,align 1
%cC=icmp eq i8%cB,120
br i1%cC,label%cD,label%c5
cD:
%cE=getelementptr inbounds i8,i8*%a1,i64 3
%cF=load i8,i8*%cE,align 1
%cG=icmp eq i8%cF,116
br i1%cG,label%dh,label%c5
cH:
%cI=getelementptr inbounds i8,i8*%a1,i64 1
%cJ=load i8,i8*%cI,align 1
%cK=icmp eq i8%cJ,110
br i1%cK,label%cL,label%c5
cL:
%cM=getelementptr inbounds i8,i8*%a1,i64 2
%cN=load i8,i8*%cM,align 1
%cO=icmp eq i8%cN,116
br i1%cO,label%cP,label%c5
cP:
%cQ=getelementptr inbounds i8,i8*%a1,i64 3
%cR=load i8,i8*%cQ,align 1
%cS=icmp eq i8%cR,52
br i1%cS,label%dh,label%c5
cT:
%cU=getelementptr inbounds i8,i8*%a1,i64 1
%cV=load i8,i8*%cU,align 1
%cW=icmp eq i8%cV,111
br i1%cW,label%cX,label%c5
cX:
%cY=getelementptr inbounds i8,i8*%a1,i64 2
%cZ=load i8,i8*%cY,align 1
%c0=icmp eq i8%cZ,111
br i1%c0,label%c1,label%c5
c1:
%c2=getelementptr inbounds i8,i8*%a1,i64 3
%c3=load i8,i8*%c2,align 1
%c4=icmp eq i8%c3,108
br i1%c4,label%dh,label%c5
c5:
%c6=call i8*@sml_alloc(i32 inreg 20)#0
%c7=bitcast i8*%c6 to i32*
%c8=getelementptr inbounds i8,i8*%c6,i64 -4
%c9=bitcast i8*%c8 to i32*
store i32 1342177296,i32*%c9,align 4
%da=getelementptr inbounds i8,i8*%c6,i64 4
%db=bitcast i8*%da to i32*
store i32 0,i32*%db,align 1
store i32 9,i32*%c7,align 4
%dc=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%dd=getelementptr inbounds i8,i8*%c6,i64 8
%de=bitcast i8*%dd to i8**
store i8*%dc,i8**%de,align 8
%df=getelementptr inbounds i8,i8*%c6,i64 16
%dg=bitcast i8*%df to i32*
store i32 2,i32*%dg,align 4
br label%dh
dh:
%di=phi i8*[%c6,%c5],[bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@o,i64 0,i32 2)to i8*),%bB],[bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@n,i64 0,i32 2)to i8*),%b2],[bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@l,i64 0,i32 2)to i8*),%cs],[bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@m,i64 0,i32 2)to i8*),%cp],[bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@n,i64 0,i32 2)to i8*),%cD],[bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@k,i64 0,i32 2)to i8*),%cP],[bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@N,i64 0,i32 2)to i8*),%c1]
store i8*%di,i8**%d,align 8
%dj=call i8*@sml_alloc(i32 inreg 20)#0
%dk=getelementptr inbounds i8,i8*%dj,i64 -4
%dl=bitcast i8*%dk to i32*
store i32 1342177296,i32*%dl,align 4
store i8*%dj,i8**%f,align 8
%dm=getelementptr inbounds i8,i8*%dj,i64 4
%dn=bitcast i8*%dm to i32*
store i32 0,i32*%dn,align 1
%do=bitcast i8*%dj to i32*
store i32%aP,i32*%do,align 4
%dp=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%dq=getelementptr inbounds i8,i8*%dj,i64 8
%dr=bitcast i8*%dq to i8**
store i8*%dp,i8**%dr,align 8
%ds=getelementptr inbounds i8,i8*%dj,i64 16
%dt=bitcast i8*%ds to i32*
store i32 2,i32*%dt,align 4
%du=call i8*@sml_alloc(i32 inreg 20)#0
%dv=getelementptr inbounds i8,i8*%du,i64 -4
%dw=bitcast i8*%dv to i32*
store i32 1342177296,i32*%dw,align 4
%dx=load i8*,i8**%e,align 8
%dy=bitcast i8*%du to i8**
store i8*%dx,i8**%dy,align 8
%dz=load i8*,i8**%f,align 8
%dA=getelementptr inbounds i8,i8*%du,i64 8
%dB=bitcast i8*%dA to i8**
store i8*%dz,i8**%dB,align 8
%dC=getelementptr inbounds i8,i8*%du,i64 16
%dD=bitcast i8*%dC to i32*
store i32 3,i32*%dD,align 4
ret i8*%du
}
define internal fastcc i8*@_SMLLN25SMLSharp__SQL__PGSQLBackend14getTableSchemaE_119(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]}>*@i,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]}>*@j,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}>*@p,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*@_SMLLN25SMLSharp__SQL__PGSQLBackend9evalQueryE_106(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 internal fastcc i8*@_SMLL7fetchFn_123(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*@_SMLLN25SMLSharp__SQL__PGSQLBackend9getStringE_97(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*@_SMLLN25SMLSharp__SQL__PGSQLBackend9getStringE_97(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 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**%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]}>*@q,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}>*@r,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*@_SMLLN25SMLSharp__SQL__PGSQLBackend9evalQueryE_106(i8*inreg%j)
store i8*%t,i8**%c,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**%d,align 8
%A=bitcast i8**%b to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%A)
call void@llvm.gcroot(i8**%b,i8*null)#0
%B=call i8*@sml_alloc(i32 inreg 12)#0
%C=getelementptr inbounds i8,i8*%B,i64 -4
%D=bitcast i8*%C to i32*
store i32 1342177288,i32*%D,align 4
store i8*%B,i8**%b,align 8
%E=bitcast i8*%B to i8**
store i8*%i,i8**%E,align 8
%F=getelementptr inbounds i8,i8*%B,i64 8
%G=bitcast i8*%F to i32*
store i32 0,i32*%G,align 4
%H=call i8*@sml_alloc(i32 inreg 28)#0
%I=getelementptr inbounds i8,i8*%H,i64 -4
%J=bitcast i8*%I to i32*
store i32 1342177304,i32*%J,align 4
%K=load i8*,i8**%b,align 8
%L=bitcast i8*%H to i8**
store i8*%K,i8**%L,align 8
%M=getelementptr inbounds i8,i8*%H,i64 8
%N=bitcast i8*%M to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN25SMLSharp__SQL__PGSQLBackend14getTableSchemaE_119 to void(...)*),void(...)**%N,align 8
%O=getelementptr inbounds i8,i8*%H,i64 16
%P=bitcast i8*%O to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN25SMLSharp__SQL__PGSQLBackend14getTableSchemaE_119 to void(...)*),void(...)**%P,align 8
%Q=getelementptr inbounds i8,i8*%H,i64 24
%R=bitcast i8*%Q to i32*
store i32 -2147483647,i32*%R,align 4
call void@llvm.lifetime.end.p0i8(i64 8,i8*%A)
%S=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%T=call fastcc i8*%x(i8*inreg%S,i8*inreg%H)
%U=getelementptr inbounds i8,i8*%T,i64 16
%V=bitcast i8*%U to i8*(i8*,i8*)**
%W=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%V,align 8
%X=bitcast i8*%T to i8**
%Y=load i8*,i8**%X,align 8
%Z=load i8*,i8**%c,align 8
%aa=tail call fastcc i8*%W(i8*inreg%Y,i8*inreg%Z)
ret i8*%aa
}
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]}>*@B,i64 0,i32 2,i64 0),i8**%u,align 8
%v=getelementptr inbounds i8,i8*%o,i64 16
%w=bitcast i8*%v to i32*
store i32 3,i32*%w,align 4
%x=call i8*@sml_alloc(i32 inreg 60)#0
%y=getelementptr inbounds i8,i8*%x,i64 -4
%z=bitcast i8*%y to i32*
store i32 1342177336,i32*%z,align 4
%A=getelementptr inbounds i8,i8*%x,i64 56
%B=bitcast i8*%A to i32*
store i32 1,i32*%B,align 4
%C=load i8*,i8**%c,align 8
%D=bitcast i8*%x to i8**
store i8*%C,i8**%D,align 8
call void@sml_raise(i8*inreg%x)#1
unreachable
E:
%F=getelementptr inbounds i8,i8*%i,i64 8
%G=bitcast i8*%F to i8**
%H=load i8*,i8**%G,align 8
ret i8*%H
I:
%J=phi i8*[getelementptr inbounds(<{[4x i8],i32,[8x i8]}>,<{[4x i8],i32,[8x i8]}>*@A,i64 0,i32 2,i64 0),%h],[getelementptr inbounds(<{[4x i8],i32,[10x i8]}>,<{[4x i8],i32,[10x i8]}>*@z,i64 0,i32 2,i64 0),%K],[getelementptr inbounds(<{[4x i8],i32,[8x i8]}>,<{[4x i8],i32,[8x i8]}>*@y,i64 0,i32 2,i64 0),%L],[getelementptr inbounds(<{[4x i8],i32,[7x i8]}>,<{[4x i8],i32,[7x i8]}>*@x,i64 0,i32 2,i64 0),%M],[getelementptr inbounds(<{[4x i8],i32,[7x i8]}>,<{[4x i8],i32,[7x i8]}>*@w,i64 0,i32 2,i64 0),%N],[getelementptr inbounds(<{[4x i8],i32,[5x i8]}>,<{[4x i8],i32,[5x i8]}>*@v,i64 0,i32 2,i64 0),%O],[getelementptr inbounds(<{[4x i8],i32,[1x i8]}>,<{[4x i8],i32,[1x i8]}>*@u,i64 0,i32 2,i64 0),%P],[getelementptr inbounds(<{[4x i8],i32,[1x i8]}>,<{[4x i8],i32,[1x i8]}>*@u,i64 0,i32 2,i64 0),%Q],[getelementptr inbounds(<{[4x i8],i32,[1x i8]}>,<{[4x i8],i32,[1x i8]}>*@u,i64 0,i32 2,i64 0),%R],[getelementptr inbounds(<{[4x i8],i32,[4x i8]}>,<{[4x i8],i32,[4x i8]}>*@t,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 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"{
%b=alloca i8*,align 8
%c=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
store i8*%a,i8**%b,align 8
%d=load atomic i32,i32*@sml_check_flag unordered,align 4
%e=icmp eq i32%d,0
br i1%e,label%g,label%f
f:
call void@sml_check(i32 inreg%d)
br label%g
g:
%h=call fastcc i8*@_SMLFN18SMLSharp__SQL__PGSQL7PQclearE(i32 inreg 0)
%i=getelementptr inbounds i8,i8*%h,i64 16
%j=bitcast i8*%i to i8*(i8*,i8*)**
%k=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%j,align 8
%l=bitcast i8*%h to i8**
%m=load i8*,i8**%l,align 8
store i8*%m,i8**%c,align 8
%n=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%o=getelementptr inbounds i8,i8*%n,i64 8
%p=bitcast i8*%o to i64*
%q=load i64,i64*%p,align 4
%r=call i8*@sml_alloc(i32 inreg 8)#0
%s=getelementptr inbounds i8,i8*%r,i64 -4
%t=bitcast i8*%s to i32*
store i32 8,i32*%t,align 4
%u=bitcast i8*%r to i64*
store i64%q,i64*%u,align 4
%v=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%w=call fastcc i8*%k(i8*inreg%v,i8*inreg%r)
ret void
}
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]}>*@L,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__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}>*@O,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}>*@N,i64 0,i32 2)to i8*),i8*%j
br label%m
m:
%n=phi i8*[%l,%g],[null,%o]
ret i8*%n
}
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 internal fastcc i8*@_SMLLN25SMLSharp__SQL__PGSQLBackend9execQueryE_167(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*@_SMLLN25SMLSharp__SQL__PGSQLBackend5fetchE_168(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*@_SMLLN25SMLSharp__SQL__PGSQLBackend7connectE_169(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*@_SMLLN25SMLSharp__SQL__PGSQLBackend8getValueE_170(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*@_SMLL7fetchFn_174(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLL7fetchFn_117(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLL7fetchFn_176(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLL7fetchFn_123(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLN25SMLSharp__SQL__PGSQLBackend17getDatabaseSchemaE_177(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*@_SMLLN25SMLSharp__SQL__PGSQLBackend14columnTypeNameE_178(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN25SMLSharp__SQL__PGSQLBackend14columnTypeNameE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLN25SMLSharp__SQL__PGSQLBackend9closeConnE_179(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*@_SMLLN25SMLSharp__SQL__PGSQLBackend8closeResE_180(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*@_SMLLN25SMLSharp__SQL__PGSQLBackend8intValueE_181(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*@_SMLLN25SMLSharp__SQL__PGSQLBackend11intInfValueE_182(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*@_SMLLN25SMLSharp__SQL__PGSQLBackend9wordValueE_183(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*@_SMLLN25SMLSharp__SQL__PGSQLBackend9realValueE_184(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*@_SMLLN25SMLSharp__SQL__PGSQLBackend11real32ValueE_185(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*@_SMLLN25SMLSharp__SQL__PGSQLBackend11stringValueE_186(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*@_SMLLN25SMLSharp__SQL__PGSQLBackend9charValueE_187(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*@_SMLLN25SMLSharp__SQL__PGSQLBackend9boolValueE_188(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*@_SMLLN25SMLSharp__SQL__PGSQLBackend14timestampValueE_189(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*@_SMLLN25SMLSharp__SQL__PGSQLBackend12numericValueE_190(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN25SMLSharp__SQL__PGSQLBackend12numericValueE(i8*inreg%b)
ret i8*%c
}
declare void@llvm.memset.p0i8.i32(i8*,i8,i32,i1)#0
declare void@llvm.lifetime.start.p0i8(i64,i8*)#0
declare void@llvm.lifetime.end.p0i8(i64,i8*)#0
attributes#0={nounwind}
attributes#1={noreturn}
attributes#2={uwtable}
attributes#3={noreturn nounwind}
attributes#4={nounwind uwtable}
