@sml_check_flag=external local_unnamed_addr global i32
@_SMLZN19SMLSharp__SQL__Errors4ExecE=external local_unnamed_addr global i8*
@_SMLZN19SMLSharp__SQL__Errors7ConnectE=external local_unnamed_addr global i8*
@_SMLZN20SMLSharp__SQL__SQLite310SQLITE__ROWE=external local_unnamed_addr global i32
@_SMLZN20SMLSharp__SQL__SQLite311SQLITE__DONEE=external local_unnamed_addr global i32
@_SMLZN20SMLSharp__SQL__SQLite311SQLITE__NULLE=external local_unnamed_addr global i32
@_SMLZN20SMLSharp__SQL__SQLite39SQLITE__OKE=external local_unnamed_addr global i32
@_SMLZN4Char7toLowerE=external local_unnamed_addr global i8*
@_SMLZ5Match=external unnamed_addr constant i8*
@a=private unnamed_addr constant<{[4x i8],i32,[43x i8]}><{[4x i8]zeroinitializer,i32 -2147483605,[43x i8]c"src/sql/main/SQLite3Backend.sml:29.19(789)\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*)*@_SMLFN27SMLSharp__SQL__SQLite3Backend7connectE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN27SMLSharp__SQL__SQLite3Backend7connectE_163 to void(...)*),i32 -2147483647}>,align 8
@c=private unnamed_addr constant<{[4x i8],i32,[43x i8]}><{[4x i8]zeroinitializer,i32 -2147483605,[43x i8]c"src/sql/main/SQLite3Backend.sml:38.19(988)\00"}>,align 8
@d=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i64)*@_SMLFN27SMLSharp__SQL__SQLite3Backend9closeConnE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN27SMLSharp__SQL__SQLite3Backend9closeConnE_164 to void(...)*),i32 -2147483647}>,align 8
@e=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN27SMLSharp__SQL__SQLite3Backend9execQueryE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN27SMLSharp__SQL__SQLite3Backend9execQueryE_165 to void(...)*),i32 -2147483647}>,align 8
@f=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(void(i64)*@_SMLFN27SMLSharp__SQL__SQLite3Backend8closeResE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN27SMLSharp__SQL__SQLite3Backend8closeResE_166 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(i32(i64)*@_SMLFN27SMLSharp__SQL__SQLite3Backend5fetchE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN27SMLSharp__SQL__SQLite3Backend5fetchE_167 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*)*@_SMLFN27SMLSharp__SQL__SQLite3Backend8getValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN27SMLSharp__SQL__SQLite3Backend8getValueE_168 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*)*@_SMLFN27SMLSharp__SQL__SQLite3Backend8intValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN27SMLSharp__SQL__SQLite3Backend8intValueE_169 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*)*@_SMLFN27SMLSharp__SQL__SQLite3Backend11intInfValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN27SMLSharp__SQL__SQLite3Backend11intInfValueE_170 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*)*@_SMLFN27SMLSharp__SQL__SQLite3Backend9realValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN27SMLSharp__SQL__SQLite3Backend9realValueE_171 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*)*@_SMLFN27SMLSharp__SQL__SQLite3Backend11stringValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN27SMLSharp__SQL__SQLite3Backend11stringValueE_172 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*)*@_SMLFN27SMLSharp__SQL__SQLite3Backend12numericValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN27SMLSharp__SQL__SQLite3Backend12numericValueE_173 to void(...)*),i32 -2147483647}>,align 8
@n=private unnamed_addr constant<{[4x i8],i32,[25x i8]}><{[4x i8]zeroinitializer,i32 -2147483623,[25x i8]c"PRAGMA main.table_info (\00"}>,align 8
@o=private unnamed_addr constant<{[4x i8],i32,[2x i8]}><{[4x i8]zeroinitializer,i32 -2147483646,[2x i8]c")\00"}>,align 8
@p=private unnamed_addr constant<{[4x i8],i32,[4x i8]}><{[4x i8]zeroinitializer,i32 -2147483644,[4x i8]c"int\00"}>,align 8
@q=private unnamed_addr constant<{[4x i8],i32,[5x i8]}><{[4x i8]zeroinitializer,i32 -2147483643,[5x i8]c"char\00"}>,align 8
@r=private unnamed_addr constant<{[4x i8],i32,[5x i8]}><{[4x i8]zeroinitializer,i32 -2147483643,[5x i8]c"clob\00"}>,align 8
@s=private unnamed_addr constant<{[4x i8],i32,[5x i8]}><{[4x i8]zeroinitializer,i32 -2147483643,[5x i8]c"text\00"}>,align 8
@t=private unnamed_addr constant<{[4x i8],i32,[5x i8]}><{[4x i8]zeroinitializer,i32 -2147483643,[5x i8]c"blob\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"real\00"}>,align 8
@w=private unnamed_addr constant<{[4x i8],i32,[5x i8]}><{[4x i8]zeroinitializer,i32 -2147483643,[5x i8]c"floa\00"}>,align 8
@x=private unnamed_addr constant<{[4x i8],i32,[5x i8]}><{[4x i8]zeroinitializer,i32 -2147483643,[5x i8]c"doub\00"}>,align 8
@y=private unnamed_addr constant<{[4x i8],i32,i32,[4x i8],i32}><{[4x i8]zeroinitializer,i32 -805306360,i32 4,[4x i8]zeroinitializer,i32 0}>,align 8
@z=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
@A=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
@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,[160x i8]}><{[4x i8]zeroinitializer,i32 -2147483488,[160x i8]c"SELECT name FROM SQLITE_MASTER WHERE type IN ('table', 'view') UNION ALL SELECT name FROM SQLITE_TEMP_MASTER WHERE type IN ('table', 'view') ORDER BY name DESC\00"}>,align 8
@D=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/sql/main/SQLite3Backend.sml:48.19(1262)\00"}>,align 8
@E=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/sql/main/SQLite3Backend.sml:68.19(1702)\00"}>,align 8
@F=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/sql/main/SQLite3Backend.sml:57.19(1455)\00"}>,align 8
@G=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i64)*@_SMLFN27SMLSharp__SQL__SQLite3Backend17getDatabaseSchemaE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN27SMLSharp__SQL__SQLite3Backend17getDatabaseSchemaE_174 to void(...)*),i32 -2147483647}>,align 8
@H=private unnamed_addr constant<{[4x i8],i32,[4x i8]}><{[4x i8]zeroinitializer,i32 -2147483644,[4x i8]c"INT\00"}>,align 8
@I=private unnamed_addr constant<{[4x i8],i32,[5x i8]}><{[4x i8]zeroinitializer,i32 -2147483643,[5x i8]c"TEXT\00"}>,align 8
@J=private unnamed_addr constant<{[4x i8],i32,[7x i8]}><{[4x i8]zeroinitializer,i32 -2147483641,[7x i8]c"DOUBLE\00"}>,align 8
@K=private unnamed_addr constant<{[4x i8],i32,[6x i8]}><{[4x i8]zeroinitializer,i32 -2147483642,[6x i8]c"FLOAT\00"}>,align 8
@L=private unnamed_addr constant<{[4x i8],i32,[8x i8]}><{[4x i8]zeroinitializer,i32 -2147483640,[8x i8]c"BOOLEAN\00"}>,align 8
@M=private unnamed_addr constant<{[4x i8],i32,[9x i8]}><{[4x i8]zeroinitializer,i32 -2147483639,[9x i8]c"DATETIME\00"}>,align 8
@N=private unnamed_addr constant<{[4x i8],i32,[8x i8]}><{[4x i8]zeroinitializer,i32 -2147483640,[8x i8]c"NUMERIC\00"}>,align 8
@O=private unnamed_addr constant<{[4x i8],i32,[44x i8]}><{[4x i8]zeroinitializer,i32 -2147483604,[44x i8]c"src/sql/main/SQLite3Backend.sml:171.6(4867)\00"}>,align 8
@P=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN27SMLSharp__SQL__SQLite3Backend14columnTypeNameE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN27SMLSharp__SQL__SQLite3Backend14columnTypeNameE_175 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*)*@_SMLFN27SMLSharp__SQL__SQLite3Backend9boolValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN27SMLSharp__SQL__SQLite3Backend9boolValueE_176 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*)*@_SMLFN27SMLSharp__SQL__SQLite3Backend9charValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN27SMLSharp__SQL__SQLite3Backend9charValueE_177 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*(i8*)*@_SMLFN27SMLSharp__SQL__SQLite3Backend11real32ValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN27SMLSharp__SQL__SQLite3Backend11real32ValueE_178 to void(...)*),i32 -2147483647}>,align 8
@T=private unnamed_addr constant<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}><{[4x i8]zeroinitializer,i32 -805306344,i8*null,void(...)*bitcast(i8*(i8*)*@_SMLFN27SMLSharp__SQL__SQLite3Backend14timestampValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN27SMLSharp__SQL__SQLite3Backend14timestampValueE_179 to void(...)*),i32 -2147483647}>,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*)*@_SMLFN27SMLSharp__SQL__SQLite3Backend9wordValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN27SMLSharp__SQL__SQLite3Backend9wordValueE_180 to void(...)*),i32 -2147483647}>,align 8
@_SMLZN27SMLSharp__SQL__SQLite3Backend9execQueryE=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*)
@_SMLZN27SMLSharp__SQL__SQLite3Backend9closeConnE=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*)
@_SMLZN27SMLSharp__SQL__SQLite3Backend8closeResE=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*)
@_SMLZN27SMLSharp__SQL__SQLite3Backend17getDatabaseSchemaE=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*)
@_SMLZN27SMLSharp__SQL__SQLite3Backend14columnTypeNameE=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*)
@_SMLZN27SMLSharp__SQL__SQLite3Backend7connectE=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*)
@_SMLZN27SMLSharp__SQL__SQLite3Backend5fetchE=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*)
@_SMLZN27SMLSharp__SQL__SQLite3Backend8getValueE=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*)
@_SMLZN27SMLSharp__SQL__SQLite3Backend8intValueE=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*)
@_SMLZN27SMLSharp__SQL__SQLite3Backend11intInfValueE=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*)
@_SMLZN27SMLSharp__SQL__SQLite3Backend9wordValueE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@U,i64 0,i32 2)to i8*)
@_SMLZN27SMLSharp__SQL__SQLite3Backend9realValueE=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*)
@_SMLZN27SMLSharp__SQL__SQLite3Backend11real32ValueE=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*)
@_SMLZN27SMLSharp__SQL__SQLite3Backend11stringValueE=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*)
@_SMLZN27SMLSharp__SQL__SQLite3Backend9charValueE=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*)
@_SMLZN27SMLSharp__SQL__SQLite3Backend9boolValueE=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*)
@_SMLZN27SMLSharp__SQL__SQLite3Backend14timestampValueE=local_unnamed_addr constant i8*bitcast(i8**getelementptr inbounds(<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>,<{[4x i8],i32,i8*,void(...)*,void(...)*,i32}>*@T,i64 0,i32 2)to i8*)
@_SMLZN27SMLSharp__SQL__SQLite3Backend12numericValueE=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*)
@_SML_ftab7d4b1aaea04495db_SQLite3Backend=external global i8
@V=private unnamed_addr global i8 0
declare void@llvm.gcroot(i8**,i8*)#0
declare i8*@sml_alloc(i32 inreg)local_unnamed_addr#0
declare void@sml_check(i32 inreg)local_unnamed_addr
declare void@sml_gcroot(i8*,void()*,i8*,i8*)local_unnamed_addr#0
declare void@sml_matchcomp_bug()local_unnamed_addr
declare i32@sml_obj_equal(i8*inreg,i8*inreg)local_unnamed_addr#0
declare void@sml_raise(i8*inreg)local_unnamed_addr#1
declare i8*@_SMLFN10CharVector3mapE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN20SMLSharp__SQL__Numeric12fromLargeIntE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN20SMLSharp__SQL__SQLite311new__sqlite3E(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i32@_SMLFN20SMLSharp__SQL__SQLite312sqlite3__stepE(i64 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN20SMLSharp__SQL__SQLite314sqlite3__errstrE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i32@_SMLFN20SMLSharp__SQL__SQLite315sqlite3__open__v2E(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN20SMLSharp__SQL__SQLite316new__sqlite3__stmtE(i32 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i32@_SMLFN20SMLSharp__SQL__SQLite316sqlite3__close__v2E(i64 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i32@_SMLFN20SMLSharp__SQL__SQLite316sqlite3__finalizeE(i64 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i32@_SMLFN20SMLSharp__SQL__SQLite318sqlite3__column__intE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i32@_SMLFN20SMLSharp__SQL__SQLite318sqlite3__prepare__v2E(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN20SMLSharp__SQL__SQLite319sqlite3__column__textE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i32@_SMLFN20SMLSharp__SQL__SQLite319sqlite3__column__typeE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i32@_SMLFN20SMLSharp__SQL__SQLite320sqlite3__column__bytesE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i64@_SMLFN20SMLSharp__SQL__SQLite320sqlite3__column__int64E(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare double@_SMLFN20SMLSharp__SQL__SQLite321sqlite3__column__doubleE(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*@_SMLFN5Int647toLargeE(i64 inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN6String11isSubstringE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN6String1_ZE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare i8*@_SMLFN7Pointer13importString_GE(i8*inreg)local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_maince7036f3433e1102_Char()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_mainadbb5309e852b68c_CharVector()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main03d87556ec7f64b2_List()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main57e5311c66ed4aab_Int64()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_main1ef93e13728790b1_String()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_mainf61d37a3faa623ea_SQLite3()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_mainf0940cae3cd2cc58_Numeric()local_unnamed_addr#2 gc"smlsharp"
declare void@_SML_loadce7036f3433e1102_Char(i8*)local_unnamed_addr
declare void@_SML_loadadbb5309e852b68c_CharVector(i8*)local_unnamed_addr
declare void@_SML_load03d87556ec7f64b2_List(i8*)local_unnamed_addr
declare void@_SML_load57e5311c66ed4aab_Int64(i8*)local_unnamed_addr
declare void@_SML_load1ef93e13728790b1_String(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_loadf61d37a3faa623ea_SQLite3(i8*)local_unnamed_addr
declare void@_SML_loadf0940cae3cd2cc58_Numeric(i8*)local_unnamed_addr
define private void@_SML_tabb7d4b1aaea04495db_SQLite3Backend()#3{
unreachable
}
define void@_SML_load7d4b1aaea04495db_SQLite3Backend(i8*%a)local_unnamed_addr#0{
%b=load i8,i8*@V,align 1
%c=icmp eq i8%b,0
br i1%c,label%e,label%d
d:
ret void
e:
store i8 1,i8*@V,align 1
tail call void@_SML_loadce7036f3433e1102_Char(i8*%a)#0
tail call void@_SML_loadadbb5309e852b68c_CharVector(i8*%a)#0
tail call void@_SML_load03d87556ec7f64b2_List(i8*%a)#0
tail call void@_SML_load57e5311c66ed4aab_Int64(i8*%a)#0
tail call void@_SML_load1ef93e13728790b1_String(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_loadf61d37a3faa623ea_SQLite3(i8*%a)#0
tail call void@_SML_loadf0940cae3cd2cc58_Numeric(i8*%a)#0
tail call void@sml_gcroot(i8*%a,void()*@_SML_tabb7d4b1aaea04495db_SQLite3Backend,i8*@_SML_ftab7d4b1aaea04495db_SQLite3Backend,i8*null)#0
ret void
}
define void@_SML_main7d4b1aaea04495db_SQLite3Backend()local_unnamed_addr#2 gc"smlsharp"{
%a=load i8,i8*@V,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*@V,align 1
tail call void@_SML_maince7036f3433e1102_Char()#2
tail call void@_SML_mainadbb5309e852b68c_CharVector()#2
tail call void@_SML_main03d87556ec7f64b2_List()#2
tail call void@_SML_main57e5311c66ed4aab_Int64()#2
tail call void@_SML_main1ef93e13728790b1_String()#2
tail call void@_SML_main15b022b21c7f9f6b_Pointer()#2
tail call void@_SML_main5008f062fc7efcc4_SQLErrors()#2
tail call void@_SML_mainf61d37a3faa623ea_SQLite3()#2
tail call void@_SML_mainf0940cae3cd2cc58_Numeric()#2
br label%d
}
define fastcc i8*@_SMLFN27SMLSharp__SQL__SQLite3Backend7connectE(i8*inreg%a)#2 gc"smlsharp"{
k:
%b=alloca i8*,align 8
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%b,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%i,label%g
g:
call void@sml_check(i32 inreg%e)
%h=load i8*,i8**%b,align 8
br label%i
i:
%j=phi i8*[%h,%g],[%a,%k]
%l=bitcast i8*%j to i8**
%m=load i8*,i8**%l,align 8
store i8*%m,i8**%b,align 8
%n=getelementptr inbounds i8,i8*%j,i64 8
%o=bitcast i8*%n to i8**
%p=load i8*,i8**%o,align 8
store i8*%p,i8**%c,align 8
%q=call fastcc i8*@_SMLFN20SMLSharp__SQL__SQLite311new__sqlite3E(i32 inreg 0)
store i8*%q,i8**%d,align 8
%r=call i8*@sml_alloc(i32 inreg 28)#0
%s=getelementptr inbounds i8,i8*%r,i64 -4
%t=bitcast i8*%s to i32*
store i32 1342177304,i32*%t,align 4
%u=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%v=bitcast i8*%r to i8**
store i8*%u,i8**%v,align 8
%w=load i8*,i8**%d,align 8
%x=getelementptr inbounds i8,i8*%r,i64 8
%y=bitcast i8*%x to i8**
store i8*%w,i8**%y,align 8
%z=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%A=getelementptr inbounds i8,i8*%r,i64 16
%B=bitcast i8*%A to i8**
store i8*%z,i8**%B,align 8
%C=getelementptr inbounds i8,i8*%r,i64 24
%D=bitcast i8*%C to i32*
store i32 7,i32*%D,align 4
%E=call fastcc i32@_SMLFN20SMLSharp__SQL__SQLite315sqlite3__open__v2E(i8*inreg%r)
%F=load i32,i32*@_SMLZN20SMLSharp__SQL__SQLite39SQLITE__OKE,align 4
%G=icmp eq i32%E,%F
br i1%G,label%H,label%L
H:
%I=bitcast i8**%d to i8***
%J=load i8**,i8***%I,align 8
%K=load i8*,i8**%J,align 8
ret i8*%K
L:
store i8*null,i8**%d,align 8
%M=load i8*,i8**@_SMLZN19SMLSharp__SQL__Errors7ConnectE,align 8
store i8*%M,i8**%b,align 8
%N=call fastcc i8*@_SMLFN20SMLSharp__SQL__SQLite314sqlite3__errstrE(i32 inreg%E)
store i8*%N,i8**%c,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
store i8*%O,i8**%d,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,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@a,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*%O,i64 16
%X=bitcast i8*%W to i8**
store i8*%V,i8**%X,align 8
%Y=getelementptr inbounds i8,i8*%O,i64 24
%Z=bitcast i8*%Y to i32*
store i32 7,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**%d,align 8
%ag=bitcast i8*%aa to i8**
store i8*%af,i8**%ag,align 8
call void@sml_raise(i8*inreg%aa)#1
unreachable
}
define fastcc void@_SMLFN27SMLSharp__SQL__SQLite3Backend9closeConnE(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=call fastcc i32@_SMLFN20SMLSharp__SQL__SQLite316sqlite3__close__v2E(i64 inreg%a)
%j=load i32,i32*@_SMLZN20SMLSharp__SQL__SQLite39SQLITE__OKE,align 4
%k=icmp eq i32%i,%j
br i1%k,label%l,label%m
l:
ret void
m:
%n=load i8*,i8**@_SMLZN19SMLSharp__SQL__Errors4ExecE,align 8
store i8*%n,i8**%b,align 8
%o=call fastcc i8*@_SMLFN20SMLSharp__SQL__SQLite314sqlite3__errstrE(i32 inreg%i)
store i8*%o,i8**%c,align 8
%p=call i8*@sml_alloc(i32 inreg 28)#0
%q=getelementptr inbounds i8,i8*%p,i64 -4
%r=bitcast i8*%q to i32*
store i32 1342177304,i32*%r,align 4
store i8*%p,i8**%d,align 8
%s=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%t=bitcast i8*%p to i8**
store i8*%s,i8**%t,align 8
%u=getelementptr inbounds i8,i8*%p,i64 8
%v=bitcast i8*%u to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[43x i8]}>,<{[4x i8],i32,[43x i8]}>*@c,i64 0,i32 2,i64 0),i8**%v,align 8
%w=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%x=getelementptr inbounds i8,i8*%p,i64 16
%y=bitcast i8*%x to i8**
store i8*%w,i8**%y,align 8
%z=getelementptr inbounds i8,i8*%p,i64 24
%A=bitcast i8*%z to i32*
store i32 7,i32*%A,align 4
%B=call i8*@sml_alloc(i32 inreg 60)#0
%C=getelementptr inbounds i8,i8*%B,i64 -4
%D=bitcast i8*%C to i32*
store i32 1342177336,i32*%D,align 4
%E=getelementptr inbounds i8,i8*%B,i64 56
%F=bitcast i8*%E to i32*
store i32 1,i32*%F,align 4
%G=load i8*,i8**%d,align 8
%H=bitcast i8*%B to i8**
store i8*%G,i8**%H,align 8
call void@sml_raise(i8*inreg%B)#1
unreachable
}
define fastcc i8*@_SMLFN27SMLSharp__SQL__SQLite3Backend9execQueryE(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*@_SMLFN20SMLSharp__SQL__SQLite316new__sqlite3__stmtE(i32 inreg 0)
store i8*%q,i8**%c,align 8
%r=call i8*@sml_alloc(i32 inreg 28)#0
%s=getelementptr inbounds i8,i8*%r,i64 -4
%t=bitcast i8*%s to i32*
store i32 1342177304,i32*%t,align 4
%u=bitcast i8*%r to i8**
store i8*%m,i8**%u,align 8
%v=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%w=getelementptr inbounds i8,i8*%r,i64 8
%x=bitcast i8*%w to i8**
store i8*%v,i8**%x,align 8
%y=load i8*,i8**%c,align 8
%z=getelementptr inbounds i8,i8*%r,i64 16
%A=bitcast i8*%z to i8**
store i8*%y,i8**%A,align 8
%B=getelementptr inbounds i8,i8*%r,i64 24
%C=bitcast i8*%B to i32*
store i32 6,i32*%C,align 4
%D=call fastcc i32@_SMLFN20SMLSharp__SQL__SQLite318sqlite3__prepare__v2E(i8*inreg%r)
%E=load i32,i32*@_SMLZN20SMLSharp__SQL__SQLite39SQLITE__OKE,align 4
%F=icmp eq i32%D,%E
br i1%F,label%G,label%K
G:
%H=bitcast i8**%c to i8***
%I=load i8**,i8***%H,align 8
%J=load i8*,i8**%I,align 8
ret i8*%J
K:
store i8*null,i8**%c,align 8
%L=load i8*,i8**@_SMLZN19SMLSharp__SQL__Errors4ExecE,align 8
store i8*%L,i8**%b,align 8
%M=call fastcc i8*@_SMLFN20SMLSharp__SQL__SQLite314sqlite3__errstrE(i32 inreg%D)
store i8*%M,i8**%c,align 8
%N=call i8*@sml_alloc(i32 inreg 28)#0
%O=getelementptr inbounds i8,i8*%N,i64 -4
%P=bitcast i8*%O to i32*
store i32 1342177304,i32*%P,align 4
store i8*%N,i8**%d,align 8
%Q=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%R=bitcast i8*%N to i8**
store i8*%Q,i8**%R,align 8
%S=getelementptr inbounds i8,i8*%N,i64 8
%T=bitcast i8*%S to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@D,i64 0,i32 2,i64 0),i8**%T,align 8
%U=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%V=getelementptr inbounds i8,i8*%N,i64 16
%W=bitcast i8*%V to i8**
store i8*%U,i8**%W,align 8
%X=getelementptr inbounds i8,i8*%N,i64 24
%Y=bitcast i8*%X to i32*
store i32 7,i32*%Y,align 4
%Z=call i8*@sml_alloc(i32 inreg 60)#0
%aa=getelementptr inbounds i8,i8*%Z,i64 -4
%ab=bitcast i8*%aa to i32*
store i32 1342177336,i32*%ab,align 4
%ac=getelementptr inbounds i8,i8*%Z,i64 56
%ad=bitcast i8*%ac to i32*
store i32 1,i32*%ad,align 4
%ae=load i8*,i8**%d,align 8
%af=bitcast i8*%Z to i8**
store i8*%ae,i8**%af,align 8
call void@sml_raise(i8*inreg%Z)#1
unreachable
}
define fastcc void@_SMLFN27SMLSharp__SQL__SQLite3Backend8closeResE(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=call fastcc i32@_SMLFN20SMLSharp__SQL__SQLite316sqlite3__finalizeE(i64 inreg%a)
%j=load i32,i32*@_SMLZN20SMLSharp__SQL__SQLite39SQLITE__OKE,align 4
%k=icmp eq i32%i,%j
br i1%k,label%l,label%m
l:
ret void
m:
%n=load i8*,i8**@_SMLZN19SMLSharp__SQL__Errors4ExecE,align 8
store i8*%n,i8**%b,align 8
%o=call fastcc i8*@_SMLFN20SMLSharp__SQL__SQLite314sqlite3__errstrE(i32 inreg%i)
store i8*%o,i8**%c,align 8
%p=call i8*@sml_alloc(i32 inreg 28)#0
%q=getelementptr inbounds i8,i8*%p,i64 -4
%r=bitcast i8*%q to i32*
store i32 1342177304,i32*%r,align 4
store i8*%p,i8**%d,align 8
%s=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%t=bitcast i8*%p to i8**
store i8*%s,i8**%t,align 8
%u=getelementptr inbounds i8,i8*%p,i64 8
%v=bitcast i8*%u to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@F,i64 0,i32 2,i64 0),i8**%v,align 8
%w=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%x=getelementptr inbounds i8,i8*%p,i64 16
%y=bitcast i8*%x to i8**
store i8*%w,i8**%y,align 8
%z=getelementptr inbounds i8,i8*%p,i64 24
%A=bitcast i8*%z to i32*
store i32 7,i32*%A,align 4
%B=call i8*@sml_alloc(i32 inreg 60)#0
%C=getelementptr inbounds i8,i8*%B,i64 -4
%D=bitcast i8*%C to i32*
store i32 1342177336,i32*%D,align 4
%E=getelementptr inbounds i8,i8*%B,i64 56
%F=bitcast i8*%E to i32*
store i32 1,i32*%F,align 4
%G=load i8*,i8**%d,align 8
%H=bitcast i8*%B to i8**
store i8*%G,i8**%H,align 8
call void@sml_raise(i8*inreg%B)#1
unreachable
}
define fastcc i32@_SMLFN27SMLSharp__SQL__SQLite3Backend5fetchE(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=call fastcc i32@_SMLFN20SMLSharp__SQL__SQLite312sqlite3__stepE(i64 inreg%a)
%j=load i32,i32*@_SMLZN20SMLSharp__SQL__SQLite310SQLITE__ROWE,align 4
%k=icmp eq i32%i,%j
br i1%k,label%l,label%n
l:
%m=phi i32[1,%h],[0,%n]
ret i32%m
n:
%o=load i32,i32*@_SMLZN20SMLSharp__SQL__SQLite311SQLITE__DONEE,align 4
%p=icmp eq i32%i,%o
br i1%p,label%l,label%q
q:
%r=load i8*,i8**@_SMLZN19SMLSharp__SQL__Errors4ExecE,align 8
store i8*%r,i8**%b,align 8
%s=call fastcc i8*@_SMLFN20SMLSharp__SQL__SQLite314sqlite3__errstrE(i32 inreg%i)
store i8*%s,i8**%c,align 8
%t=call i8*@sml_alloc(i32 inreg 28)#0
%u=getelementptr inbounds i8,i8*%t,i64 -4
%v=bitcast i8*%u to i32*
store i32 1342177304,i32*%v,align 4
store i8*%t,i8**%d,align 8
%w=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,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@E,i64 0,i32 2,i64 0),i8**%z,align 8
%A=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%B=getelementptr inbounds i8,i8*%t,i64 16
%C=bitcast i8*%B to i8**
store i8*%A,i8**%C,align 8
%D=getelementptr inbounds i8,i8*%t,i64 24
%E=bitcast i8*%D to i32*
store i32 7,i32*%E,align 4
%F=call i8*@sml_alloc(i32 inreg 60)#0
%G=getelementptr inbounds i8,i8*%F,i64 -4
%H=bitcast i8*%G to i32*
store i32 1342177336,i32*%H,align 4
%I=getelementptr inbounds i8,i8*%F,i64 56
%J=bitcast i8*%I to i32*
store i32 1,i32*%J,align 4
%K=load i8*,i8**%d,align 8
%L=bitcast i8*%F to i8**
store i8*%K,i8**%L,align 8
call void@sml_raise(i8*inreg%F)#1
unreachable
}
define fastcc i8*@_SMLFN27SMLSharp__SQL__SQLite3Backend8getValueE(i8*inreg%a)#2 gc"smlsharp"{
i:
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%g,label%e
e:
call void@sml_check(i32 inreg%c)
%f=load i8*,i8**%b,align 8
br label%g
g:
%h=phi i8*[%f,%e],[%a,%i]
store i8*null,i8**%b,align 8
%j=bitcast i8*%h to i8**
%k=load i8*,i8**%j,align 8
%l=getelementptr inbounds i8,i8*%h,i64 8
%m=bitcast i8*%l to i32*
%n=load i32,i32*%m,align 4
%o=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
%r=getelementptr inbounds i8,i8*%o,i64 12
%s=bitcast i8*%r to i32*
store i32 0,i32*%s,align 1
%t=bitcast i8*%o to i8**
store i8*%k,i8**%t,align 8
%u=getelementptr inbounds i8,i8*%o,i64 8
%v=bitcast i8*%u to i32*
store i32%n,i32*%v,align 4
%w=getelementptr inbounds i8,i8*%o,i64 16
%x=bitcast i8*%w to i32*
store i32 0,i32*%x,align 4
%y=call fastcc i32@_SMLFN20SMLSharp__SQL__SQLite319sqlite3__column__typeE(i8*inreg%o)
%z=load i32,i32*@_SMLZN20SMLSharp__SQL__SQLite311SQLITE__NULLE,align 4
%A=icmp eq i32%y,%z
br i1%A,label%B,label%C
B:
ret i8*null
C:
%D=call i8*@sml_alloc(i32 inreg 20)#0
%E=getelementptr inbounds i8,i8*%D,i64 -4
%F=bitcast i8*%E to i32*
store i32 1342177296,i32*%F,align 4
store i8*%D,i8**%b,align 8
%G=getelementptr inbounds i8,i8*%D,i64 12
%H=bitcast i8*%G to i32*
store i32 0,i32*%H,align 1
%I=bitcast i8*%D to i8**
store i8*%k,i8**%I,align 8
%J=getelementptr inbounds i8,i8*%D,i64 8
%K=bitcast i8*%J to i32*
store i32%n,i32*%K,align 4
%L=getelementptr inbounds i8,i8*%D,i64 16
%M=bitcast i8*%L to i32*
store i32 0,i32*%M,align 4
%N=call i8*@sml_alloc(i32 inreg 12)#0
%O=getelementptr inbounds i8,i8*%N,i64 -4
%P=bitcast i8*%O to i32*
store i32 1342177288,i32*%P,align 4
%Q=load i8*,i8**%b,align 8
%R=bitcast i8*%N to i8**
store i8*%Q,i8**%R,align 8
%S=getelementptr inbounds i8,i8*%N,i64 8
%T=bitcast i8*%S to i32*
store i32 1,i32*%T,align 4
ret i8*%N
}
define fastcc i8*@_SMLFN27SMLSharp__SQL__SQLite3Backend8intValueE(i8*inreg%a)#2 gc"smlsharp"{
i:
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%g,label%e
e:
call void@sml_check(i32 inreg%c)
%f=load i8*,i8**%b,align 8
br label%g
g:
%h=phi i8*[%f,%e],[%a,%i]
store i8*null,i8**%b,align 8
%j=bitcast i8*%h to i8**
%k=load i8*,i8**%j,align 8
%l=getelementptr inbounds i8,i8*%h,i64 8
%m=bitcast i8*%l to i32*
%n=load i32,i32*%m,align 4
%o=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
%r=getelementptr inbounds i8,i8*%o,i64 12
%s=bitcast i8*%r to i32*
store i32 0,i32*%s,align 1
%t=bitcast i8*%o to i8**
store i8*%k,i8**%t,align 8
%u=getelementptr inbounds i8,i8*%o,i64 8
%v=bitcast i8*%u to i32*
store i32%n,i32*%v,align 4
%w=getelementptr inbounds i8,i8*%o,i64 16
%x=bitcast i8*%w to i32*
store i32 0,i32*%x,align 4
%y=call fastcc i32@_SMLFN20SMLSharp__SQL__SQLite318sqlite3__column__intE(i8*inreg%o)
%z=call i8*@sml_alloc(i32 inreg 12)#0
%A=bitcast i8*%z to i32*
%B=getelementptr inbounds i8,i8*%z,i64 -4
%C=bitcast i8*%B to i32*
store i32 1342177288,i32*%C,align 4
%D=getelementptr inbounds i8,i8*%z,i64 4
%E=bitcast i8*%D to i32*
store i32 0,i32*%E,align 1
store i32%y,i32*%A,align 4
%F=getelementptr inbounds i8,i8*%z,i64 8
%G=bitcast i8*%F to i32*
store i32 0,i32*%G,align 4
ret i8*%z
}
define fastcc i8*@_SMLFN27SMLSharp__SQL__SQLite3Backend11intInfValueE(i8*inreg%a)#2 gc"smlsharp"{
i:
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%g,label%e
e:
call void@sml_check(i32 inreg%c)
%f=load i8*,i8**%b,align 8
br label%g
g:
%h=phi i8*[%f,%e],[%a,%i]
store i8*null,i8**%b,align 8
%j=bitcast i8*%h to i8**
%k=load i8*,i8**%j,align 8
%l=getelementptr inbounds i8,i8*%h,i64 8
%m=bitcast i8*%l to i32*
%n=load i32,i32*%m,align 4
%o=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
%r=getelementptr inbounds i8,i8*%o,i64 12
%s=bitcast i8*%r to i32*
store i32 0,i32*%s,align 1
%t=bitcast i8*%o to i8**
store i8*%k,i8**%t,align 8
%u=getelementptr inbounds i8,i8*%o,i64 8
%v=bitcast i8*%u to i32*
store i32%n,i32*%v,align 4
%w=getelementptr inbounds i8,i8*%o,i64 16
%x=bitcast i8*%w to i32*
store i32 0,i32*%x,align 4
%y=call fastcc i64@_SMLFN20SMLSharp__SQL__SQLite320sqlite3__column__int64E(i8*inreg%o)
%z=call fastcc i8*@_SMLFN5Int647toLargeE(i64 inreg%y)
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
%D=load i8*,i8**%b,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
ret i8*%A
}
define fastcc i8*@_SMLFN27SMLSharp__SQL__SQLite3Backend9realValueE(i8*inreg%a)#2 gc"smlsharp"{
i:
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%g,label%e
e:
call void@sml_check(i32 inreg%c)
%f=load i8*,i8**%b,align 8
br label%g
g:
%h=phi i8*[%f,%e],[%a,%i]
store i8*null,i8**%b,align 8
%j=bitcast i8*%h to i8**
%k=load i8*,i8**%j,align 8
%l=getelementptr inbounds i8,i8*%h,i64 8
%m=bitcast i8*%l to i32*
%n=load i32,i32*%m,align 4
%o=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
%r=getelementptr inbounds i8,i8*%o,i64 12
%s=bitcast i8*%r to i32*
store i32 0,i32*%s,align 1
%t=bitcast i8*%o to i8**
store i8*%k,i8**%t,align 8
%u=getelementptr inbounds i8,i8*%o,i64 8
%v=bitcast i8*%u to i32*
store i32%n,i32*%v,align 4
%w=getelementptr inbounds i8,i8*%o,i64 16
%x=bitcast i8*%w to i32*
store i32 0,i32*%x,align 4
%y=call fastcc double@_SMLFN20SMLSharp__SQL__SQLite321sqlite3__column__doubleE(i8*inreg%o)
%z=call i8*@sml_alloc(i32 inreg 12)#0
%A=getelementptr inbounds i8,i8*%z,i64 -4
%B=bitcast i8*%A to i32*
store i32 1342177288,i32*%B,align 4
%C=bitcast i8*%z to double*
store double%y,double*%C,align 8
%D=getelementptr inbounds i8,i8*%z,i64 8
%E=bitcast i8*%D to i32*
store i32 0,i32*%E,align 4
ret i8*%z
}
define fastcc i8*@_SMLFN27SMLSharp__SQL__SQLite3Backend11stringValueE(i8*inreg%a)#2 gc"smlsharp"{
i:
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%g,label%e
e:
call void@sml_check(i32 inreg%c)
%f=load i8*,i8**%b,align 8
br label%g
g:
%h=phi i8*[%f,%e],[%a,%i]
store i8*null,i8**%b,align 8
%j=bitcast i8*%h to i8**
%k=load i8*,i8**%j,align 8
%l=getelementptr inbounds i8,i8*%h,i64 8
%m=bitcast i8*%l to i32*
%n=load i32,i32*%m,align 4
%o=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
%r=getelementptr inbounds i8,i8*%o,i64 12
%s=bitcast i8*%r to i32*
store i32 0,i32*%s,align 1
%t=bitcast i8*%o to i8**
store i8*%k,i8**%t,align 8
%u=getelementptr inbounds i8,i8*%o,i64 8
%v=bitcast i8*%u to i32*
store i32%n,i32*%v,align 4
%w=getelementptr inbounds i8,i8*%o,i64 16
%x=bitcast i8*%w to i32*
store i32 0,i32*%x,align 4
%y=call fastcc i8*@_SMLFN20SMLSharp__SQL__SQLite319sqlite3__column__textE(i8*inreg%o)
%z=call i8*@sml_alloc(i32 inreg 20)#0
%A=getelementptr inbounds i8,i8*%z,i64 -4
%B=bitcast i8*%A to i32*
store i32 1342177296,i32*%B,align 4
%C=getelementptr inbounds i8,i8*%z,i64 12
%D=bitcast i8*%C to i32*
store i32 0,i32*%D,align 1
%E=bitcast i8*%z to i8**
store i8*%k,i8**%E,align 8
%F=getelementptr inbounds i8,i8*%z,i64 8
%G=bitcast i8*%F to i32*
store i32%n,i32*%G,align 4
%H=getelementptr inbounds i8,i8*%z,i64 16
%I=bitcast i8*%H to i32*
store i32 0,i32*%I,align 4
%J=call fastcc i32@_SMLFN20SMLSharp__SQL__SQLite320sqlite3__column__bytesE(i8*inreg%z)
%K=call i8*@sml_alloc(i32 inreg 20)#0
%L=getelementptr inbounds i8,i8*%K,i64 -4
%M=bitcast i8*%L to i32*
store i32 1342177296,i32*%M,align 4
%N=getelementptr inbounds i8,i8*%K,i64 12
%O=bitcast i8*%N to i32*
store i32 0,i32*%O,align 1
%P=bitcast i8*%K to i8**
store i8*%y,i8**%P,align 8
%Q=getelementptr inbounds i8,i8*%K,i64 8
%R=bitcast i8*%Q to i32*
store i32%J,i32*%R,align 4
%S=getelementptr inbounds i8,i8*%K,i64 16
%T=bitcast i8*%S to i32*
store i32 0,i32*%T,align 4
%U=call fastcc i8*@_SMLFN7Pointer13importString_GE(i8*inreg%K)
store i8*%U,i8**%b,align 8
%V=call i8*@sml_alloc(i32 inreg 12)#0
%W=getelementptr inbounds i8,i8*%V,i64 -4
%X=bitcast i8*%W to i32*
store i32 1342177288,i32*%X,align 4
%Y=load i8*,i8**%b,align 8
%Z=bitcast i8*%V to i8**
store i8*%Y,i8**%Z,align 8
%aa=getelementptr inbounds i8,i8*%V,i64 8
%ab=bitcast i8*%aa to i32*
store i32 1,i32*%ab,align 4
ret i8*%V
}
define fastcc i8*@_SMLFN27SMLSharp__SQL__SQLite3Backend12numericValueE(i8*inreg%a)#2 gc"smlsharp"{
i:
%b=alloca i8*,align 8
call void@llvm.gcroot(i8**%b,i8*null)#0
store i8*%a,i8**%b,align 8
%c=load atomic i32,i32*@sml_check_flag unordered,align 4
%d=icmp eq i32%c,0
br i1%d,label%g,label%e
e:
call void@sml_check(i32 inreg%c)
%f=load i8*,i8**%b,align 8
br label%g
g:
%h=phi i8*[%f,%e],[%a,%i]
store i8*null,i8**%b,align 8
%j=bitcast i8*%h to i8**
%k=load i8*,i8**%j,align 8
%l=getelementptr inbounds i8,i8*%h,i64 8
%m=bitcast i8*%l to i32*
%n=load i32,i32*%m,align 4
%o=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
%r=getelementptr inbounds i8,i8*%o,i64 12
%s=bitcast i8*%r to i32*
store i32 0,i32*%s,align 1
%t=bitcast i8*%o to i8**
store i8*%k,i8**%t,align 8
%u=getelementptr inbounds i8,i8*%o,i64 8
%v=bitcast i8*%u to i32*
store i32%n,i32*%v,align 4
%w=getelementptr inbounds i8,i8*%o,i64 16
%x=bitcast i8*%w to i32*
store i32 0,i32*%x,align 4
%y=call fastcc i64@_SMLFN20SMLSharp__SQL__SQLite320sqlite3__column__int64E(i8*inreg%o)
%z=call fastcc i8*@_SMLFN5Int647toLargeE(i64 inreg%y)
%A=call fastcc i8*@_SMLFN20SMLSharp__SQL__Numeric12fromLargeIntE(i8*inreg%z)
store i8*%A,i8**%b,align 8
%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
%E=load i8*,i8**%b,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 i32*
store i32 1,i32*%H,align 4
ret i8*%B
}
define internal fastcc i8*@_SMLLLN27SMLSharp__SQL__SQLite3Backend17getDatabaseSchemaE_133(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
call void@llvm.gcroot(i8**%e,i8*null)#0
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
store i8*%a,i8**%f,align 8
store i8*%b,i8**%c,align 8
%h=load atomic i32,i32*@sml_check_flag unordered,align 4
%i=icmp eq i32%h,0
br i1%i,label%k,label%j
j:
call void@sml_check(i32 inreg%h)
br label%k
k:
%l=call i8*@sml_alloc(i32 inreg 20)#0
%m=getelementptr inbounds i8,i8*%l,i64 -4
%n=bitcast i8*%m to i32*
store i32 1342177296,i32*%n,align 4
%o=bitcast i8*%l to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[25x i8]}>,<{[4x i8],i32,[25x i8]}>*@n,i64 0,i32 2,i64 0),i8**%o,align 8
%p=load i8*,i8**%c,align 8
%q=getelementptr inbounds i8,i8*%l,i64 8
%r=bitcast i8*%q to i8**
store i8*%p,i8**%r,align 8
%s=getelementptr inbounds i8,i8*%l,i64 16
%t=bitcast i8*%s to i32*
store i32 3,i32*%t,align 4
%u=call fastcc i8*@_SMLFN6String1_ZE(i8*inreg%l)
store i8*%u,i8**%d,align 8
%v=call i8*@sml_alloc(i32 inreg 20)#0
%w=getelementptr inbounds i8,i8*%v,i64 -4
%x=bitcast i8*%w to i32*
store i32 1342177296,i32*%x,align 4
%y=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%z=bitcast i8*%v to i8**
store i8*%y,i8**%z,align 8
%A=getelementptr inbounds i8,i8*%v,i64 8
%B=bitcast i8*%A to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[2x i8]}>,<{[4x i8],i32,[2x i8]}>*@o,i64 0,i32 2,i64 0),i8**%B,align 8
%C=getelementptr inbounds i8,i8*%v,i64 16
%D=bitcast i8*%C to i32*
store i32 3,i32*%D,align 4
%E=call fastcc i8*@_SMLFN6String1_ZE(i8*inreg%v)
store i8*%E,i8**%d,align 8
%F=call fastcc i8*@_SMLFN20SMLSharp__SQL__SQLite316new__sqlite3__stmtE(i32 inreg 0)
store i8*%F,i8**%e,align 8
%G=bitcast i8**%f to i8***
%H=load i8**,i8***%G,align 8
store i8*null,i8**%f,align 8
%I=load i8*,i8**%H,align 8
%J=call i8*@sml_alloc(i32 inreg 28)#0
%K=getelementptr inbounds i8,i8*%J,i64 -4
%L=bitcast i8*%K to i32*
store i32 1342177304,i32*%L,align 4
%M=bitcast i8*%J to i8**
store i8*%I,i8**%M,align 8
%N=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%O=getelementptr inbounds i8,i8*%J,i64 8
%P=bitcast i8*%O to i8**
store i8*%N,i8**%P,align 8
%Q=load i8*,i8**%e,align 8
%R=getelementptr inbounds i8,i8*%J,i64 16
%S=bitcast i8*%R to i8**
store i8*%Q,i8**%S,align 8
%T=getelementptr inbounds i8,i8*%J,i64 24
%U=bitcast i8*%T to i32*
store i32 6,i32*%U,align 4
%V=call fastcc i32@_SMLFN20SMLSharp__SQL__SQLite318sqlite3__prepare__v2E(i8*inreg%J)
%W=load i32,i32*@_SMLZN20SMLSharp__SQL__SQLite39SQLITE__OKE,align 4
%X=icmp eq i32%V,%W
br i1%X,label%Y,label%ad
Y:
%Z=bitcast i8**%e to i8***
%aa=load i8**,i8***%Z,align 8
store i8*null,i8**%e,align 8
%ab=load i8*,i8**%aa,align 8
%ac=ptrtoint i8*%ab to i64
br label%az
ad:
store i8*null,i8**%e,align 8
%ae=load i8*,i8**@_SMLZN19SMLSharp__SQL__Errors4ExecE,align 8
store i8*%ae,i8**%c,align 8
%af=call fastcc i8*@_SMLFN20SMLSharp__SQL__SQLite314sqlite3__errstrE(i32 inreg%V)
store i8*%af,i8**%d,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**%e,align 8
%aj=load i8*,i8**%c,align 8
store i8*null,i8**%c,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,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@D,i64 0,i32 2,i64 0),i8**%am,align 8
%an=load i8*,i8**%d,align 8
store i8*null,i8**%d,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**%e,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:
%aA=phi i8*[%eU,%eu],[null,%Y]
store i8*%aA,i8**%d,align 8
%aB=call fastcc i32@_SMLFN20SMLSharp__SQL__SQLite312sqlite3__stepE(i64 inreg%ac)
%aC=load i32,i32*@_SMLZN20SMLSharp__SQL__SQLite310SQLITE__ROWE,align 4
%aD=icmp eq i32%aB,%aC
br i1%aD,label%a3,label%aE
aE:
%aF=load i32,i32*@_SMLZN20SMLSharp__SQL__SQLite311SQLITE__DONEE,align 4
%aG=icmp eq i32%aB,%aF
br i1%aG,label%e4,label%aH
aH:
store i8*null,i8**%d,align 8
%aI=load i8*,i8**@_SMLZN19SMLSharp__SQL__Errors4ExecE,align 8
store i8*%aI,i8**%c,align 8
%aJ=call fastcc i8*@_SMLFN20SMLSharp__SQL__SQLite314sqlite3__errstrE(i32 inreg%aB)
store i8*%aJ,i8**%d,align 8
%aK=call i8*@sml_alloc(i32 inreg 28)#0
%aL=getelementptr inbounds i8,i8*%aK,i64 -4
%aM=bitcast i8*%aL to i32*
store i32 1342177304,i32*%aM,align 4
store i8*%aK,i8**%e,align 8
%aN=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aO=bitcast i8*%aK to i8**
store i8*%aN,i8**%aO,align 8
%aP=getelementptr inbounds i8,i8*%aK,i64 8
%aQ=bitcast i8*%aP to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@E,i64 0,i32 2,i64 0),i8**%aQ,align 8
%aR=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%aS=getelementptr inbounds i8,i8*%aK,i64 16
%aT=bitcast i8*%aS to i8**
store i8*%aR,i8**%aT,align 8
%aU=getelementptr inbounds i8,i8*%aK,i64 24
%aV=bitcast i8*%aU to i32*
store i32 7,i32*%aV,align 4
%aW=call i8*@sml_alloc(i32 inreg 60)#0
%aX=getelementptr inbounds i8,i8*%aW,i64 -4
%aY=bitcast i8*%aX to i32*
store i32 1342177336,i32*%aY,align 4
%aZ=getelementptr inbounds i8,i8*%aW,i64 56
%a0=bitcast i8*%aZ to i32*
store i32 1,i32*%a0,align 4
%a1=load i8*,i8**%e,align 8
%a2=bitcast i8*%aW to i8**
store i8*%a1,i8**%a2,align 8
call void@sml_raise(i8*inreg%aW)#1
unreachable
a3:
%a4=call i8*@sml_alloc(i32 inreg 20)#0
%a5=getelementptr inbounds i8,i8*%a4,i64 -4
%a6=bitcast i8*%a5 to i32*
store i32 1342177296,i32*%a6,align 4
%a7=getelementptr inbounds i8,i8*%a4,i64 12
%a8=bitcast i8*%a7 to i32*
store i32 0,i32*%a8,align 1
%a9=bitcast i8*%a4 to i8**
store i8*%ab,i8**%a9,align 8
%ba=getelementptr inbounds i8,i8*%a4,i64 8
%bb=bitcast i8*%ba to i32*
store i32 1,i32*%bb,align 4
%bc=getelementptr inbounds i8,i8*%a4,i64 16
%bd=bitcast i8*%bc to i32*
store i32 0,i32*%bd,align 4
%be=call fastcc i8*@_SMLFN20SMLSharp__SQL__SQLite319sqlite3__column__textE(i8*inreg%a4)
%bf=call i8*@sml_alloc(i32 inreg 20)#0
%bg=getelementptr inbounds i8,i8*%bf,i64 -4
%bh=bitcast i8*%bg to i32*
store i32 1342177296,i32*%bh,align 4
%bi=getelementptr inbounds i8,i8*%bf,i64 12
%bj=bitcast i8*%bi to i32*
store i32 0,i32*%bj,align 1
%bk=bitcast i8*%bf to i8**
store i8*%ab,i8**%bk,align 8
%bl=getelementptr inbounds i8,i8*%bf,i64 8
%bm=bitcast i8*%bl to i32*
store i32 1,i32*%bm,align 4
%bn=getelementptr inbounds i8,i8*%bf,i64 16
%bo=bitcast i8*%bn to i32*
store i32 0,i32*%bo,align 4
%bp=call fastcc i32@_SMLFN20SMLSharp__SQL__SQLite320sqlite3__column__bytesE(i8*inreg%bf)
%bq=call i8*@sml_alloc(i32 inreg 20)#0
%br=getelementptr inbounds i8,i8*%bq,i64 -4
%bs=bitcast i8*%br to i32*
store i32 1342177296,i32*%bs,align 4
%bt=getelementptr inbounds i8,i8*%bq,i64 12
%bu=bitcast i8*%bt to i32*
store i32 0,i32*%bu,align 1
%bv=bitcast i8*%bq to i8**
store i8*%be,i8**%bv,align 8
%bw=getelementptr inbounds i8,i8*%bq,i64 8
%bx=bitcast i8*%bw to i32*
store i32%bp,i32*%bx,align 4
%by=getelementptr inbounds i8,i8*%bq,i64 16
%bz=bitcast i8*%by to i32*
store i32 0,i32*%bz,align 4
%bA=call fastcc i8*@_SMLFN7Pointer13importString_GE(i8*inreg%bq)
store i8*%bA,i8**%e,align 8
%bB=call i8*@sml_alloc(i32 inreg 20)#0
%bC=getelementptr inbounds i8,i8*%bB,i64 -4
%bD=bitcast i8*%bC to i32*
store i32 1342177296,i32*%bD,align 4
%bE=getelementptr inbounds i8,i8*%bB,i64 12
%bF=bitcast i8*%bE to i32*
store i32 0,i32*%bF,align 1
%bG=bitcast i8*%bB to i8**
store i8*%ab,i8**%bG,align 8
%bH=getelementptr inbounds i8,i8*%bB,i64 8
%bI=bitcast i8*%bH to i32*
store i32 2,i32*%bI,align 4
%bJ=getelementptr inbounds i8,i8*%bB,i64 16
%bK=bitcast i8*%bJ to i32*
store i32 0,i32*%bK,align 4
%bL=call fastcc i8*@_SMLFN20SMLSharp__SQL__SQLite319sqlite3__column__textE(i8*inreg%bB)
%bM=call i8*@sml_alloc(i32 inreg 20)#0
%bN=getelementptr inbounds i8,i8*%bM,i64 -4
%bO=bitcast i8*%bN to i32*
store i32 1342177296,i32*%bO,align 4
%bP=getelementptr inbounds i8,i8*%bM,i64 12
%bQ=bitcast i8*%bP to i32*
store i32 0,i32*%bQ,align 1
%bR=bitcast i8*%bM to i8**
store i8*%ab,i8**%bR,align 8
%bS=getelementptr inbounds i8,i8*%bM,i64 8
%bT=bitcast i8*%bS to i32*
store i32 2,i32*%bT,align 4
%bU=getelementptr inbounds i8,i8*%bM,i64 16
%bV=bitcast i8*%bU to i32*
store i32 0,i32*%bV,align 4
%bW=call fastcc i32@_SMLFN20SMLSharp__SQL__SQLite320sqlite3__column__bytesE(i8*inreg%bM)
%bX=call i8*@sml_alloc(i32 inreg 20)#0
%bY=getelementptr inbounds i8,i8*%bX,i64 -4
%bZ=bitcast i8*%bY to i32*
store i32 1342177296,i32*%bZ,align 4
%b0=getelementptr inbounds i8,i8*%bX,i64 12
%b1=bitcast i8*%b0 to i32*
store i32 0,i32*%b1,align 1
%b2=bitcast i8*%bX to i8**
store i8*%bL,i8**%b2,align 8
%b3=getelementptr inbounds i8,i8*%bX,i64 8
%b4=bitcast i8*%b3 to i32*
store i32%bW,i32*%b4,align 4
%b5=getelementptr inbounds i8,i8*%bX,i64 16
%b6=bitcast i8*%b5 to i32*
store i32 0,i32*%b6,align 4
%b7=call fastcc i8*@_SMLFN7Pointer13importString_GE(i8*inreg%bX)
store i8*%b7,i8**%f,align 8
%b8=call i8*@sml_alloc(i32 inreg 20)#0
%b9=getelementptr inbounds i8,i8*%b8,i64 -4
%ca=bitcast i8*%b9 to i32*
store i32 1342177296,i32*%ca,align 4
%cb=getelementptr inbounds i8,i8*%b8,i64 12
%cc=bitcast i8*%cb to i32*
store i32 0,i32*%cc,align 1
%cd=bitcast i8*%b8 to i8**
store i8*%ab,i8**%cd,align 8
%ce=getelementptr inbounds i8,i8*%b8,i64 8
%cf=bitcast i8*%ce to i32*
store i32 3,i32*%cf,align 4
%cg=getelementptr inbounds i8,i8*%b8,i64 16
%ch=bitcast i8*%cg to i32*
store i32 0,i32*%ch,align 4
%ci=call fastcc i32@_SMLFN20SMLSharp__SQL__SQLite318sqlite3__column__intE(i8*inreg%b8)
%cj=call i8*@sml_alloc(i32 inreg 20)#0
%ck=getelementptr inbounds i8,i8*%cj,i64 -4
%cl=bitcast i8*%ck to i32*
store i32 1342177296,i32*%cl,align 4
%cm=getelementptr inbounds i8,i8*%cj,i64 12
%cn=bitcast i8*%cm to i32*
store i32 0,i32*%cn,align 1
%co=bitcast i8*%cj to i8**
store i8*%ab,i8**%co,align 8
%cp=getelementptr inbounds i8,i8*%cj,i64 8
%cq=bitcast i8*%cp to i32*
store i32 5,i32*%cq,align 4
%cr=getelementptr inbounds i8,i8*%cj,i64 16
%cs=bitcast i8*%cr to i32*
store i32 0,i32*%cs,align 4
%ct=call fastcc i32@_SMLFN20SMLSharp__SQL__SQLite318sqlite3__column__intE(i8*inreg%cj)
%cu=load i8*,i8**@_SMLZN4Char7toLowerE,align 8
%cv=call fastcc i8*@_SMLFN10CharVector3mapE(i8*inreg%cu)
%cw=getelementptr inbounds i8,i8*%cv,i64 16
%cx=bitcast i8*%cw to i8*(i8*,i8*)**
%cy=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%cx,align 8
%cz=bitcast i8*%cv to i8**
%cA=load i8*,i8**%cz,align 8
%cB=load i8*,i8**%f,align 8
%cC=call fastcc i8*%cy(i8*inreg%cA,i8*inreg%cB)
store i8*%cC,i8**%g,align 8
%cD=call fastcc i8*@_SMLFN6String11isSubstringE(i8*inreg getelementptr inbounds(<{[4x i8],i32,[4x i8]}>,<{[4x i8],i32,[4x i8]}>*@p,i64 0,i32 2,i64 0))
%cE=getelementptr inbounds i8,i8*%cD,i64 16
%cF=bitcast i8*%cE to i8*(i8*,i8*)**
%cG=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%cF,align 8
%cH=bitcast i8*%cD to i8**
%cI=load i8*,i8**%cH,align 8
%cJ=load i8*,i8**%g,align 8
%cK=call fastcc i8*%cG(i8*inreg%cI,i8*inreg%cJ)
%cL=bitcast i8*%cK to i32*
%cM=load i32,i32*%cL,align 4
%cN=icmp eq i32%cM,0
br i1%cN,label%cP,label%cO
cO:
store i8*null,i8**%f,align 8
store i8*null,i8**%g,align 8
br label%eu
cP:
%cQ=call fastcc i8*@_SMLFN6String11isSubstringE(i8*inreg getelementptr inbounds(<{[4x i8],i32,[5x i8]}>,<{[4x i8],i32,[5x i8]}>*@q,i64 0,i32 2,i64 0))
%cR=getelementptr inbounds i8,i8*%cQ,i64 16
%cS=bitcast i8*%cR to i8*(i8*,i8*)**
%cT=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%cS,align 8
%cU=bitcast i8*%cQ to i8**
%cV=load i8*,i8**%cU,align 8
%cW=load i8*,i8**%g,align 8
%cX=call fastcc i8*%cT(i8*inreg%cV,i8*inreg%cW)
%cY=bitcast i8*%cX to i32*
%cZ=load i32,i32*%cY,align 4
%c0=icmp eq i32%cZ,0
br i1%c0,label%c1,label%dp
c1:
%c2=call fastcc i8*@_SMLFN6String11isSubstringE(i8*inreg getelementptr inbounds(<{[4x i8],i32,[5x i8]}>,<{[4x i8],i32,[5x i8]}>*@r,i64 0,i32 2,i64 0))
%c3=getelementptr inbounds i8,i8*%c2,i64 16
%c4=bitcast i8*%c3 to i8*(i8*,i8*)**
%c5=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%c4,align 8
%c6=bitcast i8*%c2 to i8**
%c7=load i8*,i8**%c6,align 8
%c8=load i8*,i8**%g,align 8
%c9=call fastcc i8*%c5(i8*inreg%c7,i8*inreg%c8)
%da=bitcast i8*%c9 to i32*
%db=load i32,i32*%da,align 4
%dc=icmp eq i32%db,0
br i1%dc,label%dd,label%dp
dd:
%de=call fastcc i8*@_SMLFN6String11isSubstringE(i8*inreg getelementptr inbounds(<{[4x i8],i32,[5x i8]}>,<{[4x i8],i32,[5x i8]}>*@s,i64 0,i32 2,i64 0))
%df=getelementptr inbounds i8,i8*%de,i64 16
%dg=bitcast i8*%df to i8*(i8*,i8*)**
%dh=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%dg,align 8
%di=bitcast i8*%de to i8**
%dj=load i8*,i8**%di,align 8
%dk=load i8*,i8**%g,align 8
%dl=call fastcc i8*%dh(i8*inreg%dj,i8*inreg%dk)
%dm=bitcast i8*%dl to i32*
%dn=load i32,i32*%dm,align 4
%do=icmp eq i32%dn,0
br i1%do,label%dq,label%dp
dp:
store i8*null,i8**%f,align 8
store i8*null,i8**%g,align 8
br label%eu
dq:
%dr=call fastcc i8*@_SMLFN6String11isSubstringE(i8*inreg getelementptr inbounds(<{[4x i8],i32,[5x i8]}>,<{[4x i8],i32,[5x i8]}>*@t,i64 0,i32 2,i64 0))
%ds=getelementptr inbounds i8,i8*%dr,i64 16
%dt=bitcast i8*%ds to i8*(i8*,i8*)**
%du=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%dt,align 8
%dv=bitcast i8*%dr to i8**
%dw=load i8*,i8**%dv,align 8
%dx=load i8*,i8**%g,align 8
%dy=call fastcc i8*%du(i8*inreg%dw,i8*inreg%dx)
%dz=bitcast i8*%dy to i32*
%dA=load i32,i32*%dz,align 4
%dB=icmp eq i32%dA,0
br i1%dB,label%dC,label%dG
dC:
%dD=load i8*,i8**%g,align 8
%dE=call i32@sml_obj_equal(i8*inreg%dD,i8*inreg getelementptr inbounds(<{[4x i8],i32,[1x i8]}>,<{[4x i8],i32,[1x i8]}>*@u,i64 0,i32 2,i64 0))#0
%dF=icmp eq i32%dE,0
br i1%dF,label%dS,label%dG
dG:
store i8*null,i8**%g,align 8
%dH=call i8*@sml_alloc(i32 inreg 20)#0
%dI=bitcast i8*%dH to i32*
%dJ=getelementptr inbounds i8,i8*%dH,i64 -4
%dK=bitcast i8*%dJ to i32*
store i32 1342177296,i32*%dK,align 4
%dL=getelementptr inbounds i8,i8*%dH,i64 4
%dM=bitcast i8*%dL to i32*
store i32 0,i32*%dM,align 1
store i32 9,i32*%dI,align 4
%dN=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%dO=getelementptr inbounds i8,i8*%dH,i64 8
%dP=bitcast i8*%dO to i8**
store i8*%dN,i8**%dP,align 8
%dQ=getelementptr inbounds i8,i8*%dH,i64 16
%dR=bitcast i8*%dQ to i32*
store i32 2,i32*%dR,align 4
br label%eu
dS:
store i8*null,i8**%f,align 8
%dT=call fastcc i8*@_SMLFN6String11isSubstringE(i8*inreg getelementptr inbounds(<{[4x i8],i32,[5x i8]}>,<{[4x i8],i32,[5x i8]}>*@v,i64 0,i32 2,i64 0))
%dU=getelementptr inbounds i8,i8*%dT,i64 16
%dV=bitcast i8*%dU to i8*(i8*,i8*)**
%dW=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%dV,align 8
%dX=bitcast i8*%dT to i8**
%dY=load i8*,i8**%dX,align 8
%dZ=load i8*,i8**%g,align 8
%d0=call fastcc i8*%dW(i8*inreg%dY,i8*inreg%dZ)
%d1=bitcast i8*%d0 to i32*
%d2=load i32,i32*%d1,align 4
%d3=icmp eq i32%d2,0
br i1%d3,label%d4,label%eg
d4:
%d5=call fastcc i8*@_SMLFN6String11isSubstringE(i8*inreg getelementptr inbounds(<{[4x i8],i32,[5x i8]}>,<{[4x i8],i32,[5x i8]}>*@w,i64 0,i32 2,i64 0))
%d6=getelementptr inbounds i8,i8*%d5,i64 16
%d7=bitcast i8*%d6 to i8*(i8*,i8*)**
%d8=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%d7,align 8
%d9=bitcast i8*%d5 to i8**
%ea=load i8*,i8**%d9,align 8
%eb=load i8*,i8**%g,align 8
%ec=call fastcc i8*%d8(i8*inreg%ea,i8*inreg%eb)
%ed=bitcast i8*%ec to i32*
%ee=load i32,i32*%ed,align 4
%ef=icmp eq i32%ee,0
br i1%ef,label%eh,label%eg
eg:
store i8*null,i8**%g,align 8
br label%eu
eh:
%ei=call fastcc i8*@_SMLFN6String11isSubstringE(i8*inreg getelementptr inbounds(<{[4x i8],i32,[5x i8]}>,<{[4x i8],i32,[5x i8]}>*@x,i64 0,i32 2,i64 0))
%ej=getelementptr inbounds i8,i8*%ei,i64 16
%ek=bitcast i8*%ej to i8*(i8*,i8*)**
%el=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%ek,align 8
%em=bitcast i8*%ei to i8**
%en=load i8*,i8**%em,align 8
%eo=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%ep=call fastcc i8*%el(i8*inreg%en,i8*inreg%eo)
%eq=bitcast i8*%ep to i32*
%er=load i32,i32*%eq,align 4
%es=icmp eq i32%er,0
%et=select i1%es,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*bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@z,i64 0,i32 2)to i8*)
br label%eu
eu:
%ev=phi i8*[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*),%cO],[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*),%dp],[%dH,%dG],[bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@z,i64 0,i32 2)to i8*),%eg],[%et,%eh]
store i8*%ev,i8**%f,align 8
%ew=or i32%ct,%ci
%ex=icmp eq i32%ew,0
%ey=zext i1%ex to i32
%ez=call i8*@sml_alloc(i32 inreg 20)#0
%eA=getelementptr inbounds i8,i8*%ez,i64 -4
%eB=bitcast i8*%eA to i32*
store i32 1342177296,i32*%eB,align 4
store i8*%ez,i8**%g,align 8
%eC=getelementptr inbounds i8,i8*%ez,i64 4
%eD=bitcast i8*%eC to i32*
store i32 0,i32*%eD,align 1
%eE=bitcast i8*%ez to i32*
store i32%ey,i32*%eE,align 4
%eF=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%eG=getelementptr inbounds i8,i8*%ez,i64 8
%eH=bitcast i8*%eG to i8**
store i8*%eF,i8**%eH,align 8
%eI=getelementptr inbounds i8,i8*%ez,i64 16
%eJ=bitcast i8*%eI to i32*
store i32 2,i32*%eJ,align 4
%eK=call i8*@sml_alloc(i32 inreg 20)#0
%eL=getelementptr inbounds i8,i8*%eK,i64 -4
%eM=bitcast i8*%eL to i32*
store i32 1342177296,i32*%eM,align 4
store i8*%eK,i8**%f,align 8
%eN=load i8*,i8**%e,align 8
store i8*null,i8**%e,align 8
%eO=bitcast i8*%eK to i8**
store i8*%eN,i8**%eO,align 8
%eP=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%eQ=getelementptr inbounds i8,i8*%eK,i64 8
%eR=bitcast i8*%eQ to i8**
store i8*%eP,i8**%eR,align 8
%eS=getelementptr inbounds i8,i8*%eK,i64 16
%eT=bitcast i8*%eS to i32*
store i32 3,i32*%eT,align 4
%eU=call i8*@sml_alloc(i32 inreg 20)#0
%eV=getelementptr inbounds i8,i8*%eU,i64 -4
%eW=bitcast i8*%eV to i32*
store i32 1342177296,i32*%eW,align 4
%eX=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%eY=bitcast i8*%eU to i8**
store i8*%eX,i8**%eY,align 8
%eZ=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%e0=getelementptr inbounds i8,i8*%eU,i64 8
%e1=bitcast i8*%e0 to i8**
store i8*%eZ,i8**%e1,align 8
%e2=getelementptr inbounds i8,i8*%eU,i64 16
%e3=bitcast i8*%e2 to i32*
store i32 3,i32*%e3,align 4
br label%az
e4:
%e5=call fastcc i32@_SMLFN20SMLSharp__SQL__SQLite316sqlite3__finalizeE(i64 inreg%ac)
%e6=load i32,i32*@_SMLZN20SMLSharp__SQL__SQLite39SQLITE__OKE,align 4
%e7=icmp eq i32%e5,%e6
br i1%e7,label%fu,label%e8
e8:
store i8*null,i8**%d,align 8
%e9=load i8*,i8**@_SMLZN19SMLSharp__SQL__Errors4ExecE,align 8
store i8*%e9,i8**%c,align 8
%fa=call fastcc i8*@_SMLFN20SMLSharp__SQL__SQLite314sqlite3__errstrE(i32 inreg%e5)
store i8*%fa,i8**%d,align 8
%fb=call i8*@sml_alloc(i32 inreg 28)#0
%fc=getelementptr inbounds i8,i8*%fb,i64 -4
%fd=bitcast i8*%fc to i32*
store i32 1342177304,i32*%fd,align 4
store i8*%fb,i8**%e,align 8
%fe=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%ff=bitcast i8*%fb to i8**
store i8*%fe,i8**%ff,align 8
%fg=getelementptr inbounds i8,i8*%fb,i64 8
%fh=bitcast i8*%fg to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@F,i64 0,i32 2,i64 0),i8**%fh,align 8
%fi=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%fj=getelementptr inbounds i8,i8*%fb,i64 16
%fk=bitcast i8*%fj to i8**
store i8*%fi,i8**%fk,align 8
%fl=getelementptr inbounds i8,i8*%fb,i64 24
%fm=bitcast i8*%fl to i32*
store i32 7,i32*%fm,align 4
%fn=call i8*@sml_alloc(i32 inreg 60)#0
%fo=getelementptr inbounds i8,i8*%fn,i64 -4
%fp=bitcast i8*%fo to i32*
store i32 1342177336,i32*%fp,align 4
%fq=getelementptr inbounds i8,i8*%fn,i64 56
%fr=bitcast i8*%fq to i32*
store i32 1,i32*%fr,align 4
%fs=load i8*,i8**%e,align 8
%ft=bitcast i8*%fn to i8**
store i8*%fs,i8**%ft,align 8
call void@sml_raise(i8*inreg%fn)#1
unreachable
fu:
%fv=call fastcc i8*@_SMLFN4List3revE(i32 inreg 1,i32 inreg 8)
%fw=getelementptr inbounds i8,i8*%fv,i64 16
%fx=bitcast i8*%fw to i8*(i8*,i8*)**
%fy=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%fx,align 8
%fz=bitcast i8*%fv to i8**
%fA=load i8*,i8**%fz,align 8
%fB=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%fC=call fastcc i8*%fy(i8*inreg%fA,i8*inreg%fB)
store i8*%fC,i8**%d,align 8
%fD=call i8*@sml_alloc(i32 inreg 20)#0
%fE=getelementptr inbounds i8,i8*%fD,i64 -4
%fF=bitcast i8*%fE to i32*
store i32 1342177296,i32*%fF,align 4
%fG=load i8*,i8**%c,align 8
%fH=bitcast i8*%fD to i8**
store i8*%fG,i8**%fH,align 8
%fI=load i8*,i8**%d,align 8
%fJ=getelementptr inbounds i8,i8*%fD,i64 8
%fK=bitcast i8*%fJ to i8**
store i8*%fI,i8**%fK,align 8
%fL=getelementptr inbounds i8,i8*%fD,i64 16
%fM=bitcast i8*%fL to i32*
store i32 3,i32*%fM,align 4
ret i8*%fD
}
define fastcc i8*@_SMLFN27SMLSharp__SQL__SQLite3Backend17getDatabaseSchemaE(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 fastcc i8*@_SMLFN4List3mapE(i32 inreg 1,i32 inreg 8,i32 inreg 1,i32 inreg 8)
%k=getelementptr inbounds i8,i8*%j,i64 16
%l=bitcast i8*%k to i8*(i8*,i8*)**
%m=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%l,align 8
%n=bitcast i8*%j to i8**
%o=load i8*,i8**%n,align 8
store i8*%o,i8**%b,align 8
%p=call i8*@sml_alloc(i32 inreg 12)#0
%q=getelementptr inbounds i8,i8*%p,i64 -4
%r=bitcast i8*%q to i32*
store i32 1342177288,i32*%r,align 4
store i8*%p,i8**%c,align 8
%s=bitcast i8*%p to i8**
store i8*%i,i8**%s,align 8
%t=getelementptr inbounds i8,i8*%p,i64 8
%u=bitcast i8*%t to i32*
store i32 0,i32*%u,align 4
%v=call i8*@sml_alloc(i32 inreg 28)#0
%w=getelementptr inbounds i8,i8*%v,i64 -4
%x=bitcast i8*%w to i32*
store i32 1342177304,i32*%x,align 4
%y=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%z=bitcast i8*%v to i8**
store i8*%y,i8**%z,align 8
%A=getelementptr inbounds i8,i8*%v,i64 8
%B=bitcast i8*%A to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN27SMLSharp__SQL__SQLite3Backend17getDatabaseSchemaE_133 to void(...)*),void(...)**%B,align 8
%C=getelementptr inbounds i8,i8*%v,i64 16
%D=bitcast i8*%C to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLLN27SMLSharp__SQL__SQLite3Backend17getDatabaseSchemaE_133 to void(...)*),void(...)**%D,align 8
%E=getelementptr inbounds i8,i8*%v,i64 24
%F=bitcast i8*%E to i32*
store i32 -2147483647,i32*%F,align 4
%G=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%H=call fastcc i8*%m(i8*inreg%G,i8*inreg%v)
store i8*%H,i8**%b,align 8
%I=call fastcc i8*@_SMLFN20SMLSharp__SQL__SQLite316new__sqlite3__stmtE(i32 inreg 0)
store i8*%I,i8**%c,align 8
%J=call i8*@sml_alloc(i32 inreg 28)#0
%K=getelementptr inbounds i8,i8*%J,i64 -4
%L=bitcast i8*%K to i32*
store i32 1342177304,i32*%L,align 4
%M=bitcast i8*%J to i8**
store i8*%i,i8**%M,align 8
%N=getelementptr inbounds i8,i8*%J,i64 8
%O=bitcast i8*%N to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[160x i8]}>,<{[4x i8],i32,[160x i8]}>*@C,i64 0,i32 2,i64 0),i8**%O,align 8
%P=load i8*,i8**%c,align 8
%Q=getelementptr inbounds i8,i8*%J,i64 16
%R=bitcast i8*%Q to i8**
store i8*%P,i8**%R,align 8
%S=getelementptr inbounds i8,i8*%J,i64 24
%T=bitcast i8*%S to i32*
store i32 6,i32*%T,align 4
%U=call fastcc i32@_SMLFN20SMLSharp__SQL__SQLite318sqlite3__prepare__v2E(i8*inreg%J)
%V=load i32,i32*@_SMLZN20SMLSharp__SQL__SQLite39SQLITE__OKE,align 4
%W=icmp eq i32%U,%V
br i1%W,label%X,label%ac
X:
%Y=bitcast i8**%c to i8***
%Z=load i8**,i8***%Y,align 8
store i8*null,i8**%c,align 8
%aa=load i8*,i8**%Z,align 8
%ab=ptrtoint i8*%aa to i64
br label%ay
ac:
store i8*null,i8**%c,align 8
%ad=load i8*,i8**@_SMLZN19SMLSharp__SQL__Errors4ExecE,align 8
store i8*%ad,i8**%b,align 8
%ae=call fastcc i8*@_SMLFN20SMLSharp__SQL__SQLite314sqlite3__errstrE(i32 inreg%U)
store i8*%ae,i8**%c,align 8
%af=call i8*@sml_alloc(i32 inreg 28)#0
%ag=getelementptr inbounds i8,i8*%af,i64 -4
%ah=bitcast i8*%ag to i32*
store i32 1342177304,i32*%ah,align 4
store i8*%af,i8**%d,align 8
%ai=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aj=bitcast i8*%af to i8**
store i8*%ai,i8**%aj,align 8
%ak=getelementptr inbounds i8,i8*%af,i64 8
%al=bitcast i8*%ak to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@D,i64 0,i32 2,i64 0),i8**%al,align 8
%am=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%an=getelementptr inbounds i8,i8*%af,i64 16
%ao=bitcast i8*%an to i8**
store i8*%am,i8**%ao,align 8
%ap=getelementptr inbounds i8,i8*%af,i64 24
%aq=bitcast i8*%ap to i32*
store i32 7,i32*%aq,align 4
%ar=call i8*@sml_alloc(i32 inreg 60)#0
%as=getelementptr inbounds i8,i8*%ar,i64 -4
%at=bitcast i8*%as to i32*
store i32 1342177336,i32*%at,align 4
%au=getelementptr inbounds i8,i8*%ar,i64 56
%av=bitcast i8*%au to i32*
store i32 1,i32*%av,align 4
%aw=load i8*,i8**%d,align 8
%ax=bitcast i8*%ar to i8**
store i8*%aw,i8**%ax,align 8
call void@sml_raise(i8*inreg%ar)#1
unreachable
ay:
%az=phi i8*[%bA,%a2],[null,%X]
store i8*%az,i8**%c,align 8
%aA=call fastcc i32@_SMLFN20SMLSharp__SQL__SQLite312sqlite3__stepE(i64 inreg%ab)
%aB=load i32,i32*@_SMLZN20SMLSharp__SQL__SQLite310SQLITE__ROWE,align 4
%aC=icmp eq i32%aA,%aB
br i1%aC,label%a2,label%aD
aD:
%aE=load i32,i32*@_SMLZN20SMLSharp__SQL__SQLite311SQLITE__DONEE,align 4
%aF=icmp eq i32%aA,%aE
br i1%aF,label%bK,label%aG
aG:
store i8*null,i8**%c,align 8
%aH=load i8*,i8**@_SMLZN19SMLSharp__SQL__Errors4ExecE,align 8
store i8*%aH,i8**%b,align 8
%aI=call fastcc i8*@_SMLFN20SMLSharp__SQL__SQLite314sqlite3__errstrE(i32 inreg%aA)
store i8*%aI,i8**%c,align 8
%aJ=call i8*@sml_alloc(i32 inreg 28)#0
%aK=getelementptr inbounds i8,i8*%aJ,i64 -4
%aL=bitcast i8*%aK to i32*
store i32 1342177304,i32*%aL,align 4
store i8*%aJ,i8**%d,align 8
%aM=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%aN=bitcast i8*%aJ to i8**
store i8*%aM,i8**%aN,align 8
%aO=getelementptr inbounds i8,i8*%aJ,i64 8
%aP=bitcast i8*%aO to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@E,i64 0,i32 2,i64 0),i8**%aP,align 8
%aQ=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%aR=getelementptr inbounds i8,i8*%aJ,i64 16
%aS=bitcast i8*%aR to i8**
store i8*%aQ,i8**%aS,align 8
%aT=getelementptr inbounds i8,i8*%aJ,i64 24
%aU=bitcast i8*%aT to i32*
store i32 7,i32*%aU,align 4
%aV=call i8*@sml_alloc(i32 inreg 60)#0
%aW=getelementptr inbounds i8,i8*%aV,i64 -4
%aX=bitcast i8*%aW to i32*
store i32 1342177336,i32*%aX,align 4
%aY=getelementptr inbounds i8,i8*%aV,i64 56
%aZ=bitcast i8*%aY to i32*
store i32 1,i32*%aZ,align 4
%a0=load i8*,i8**%d,align 8
%a1=bitcast i8*%aV to i8**
store i8*%a0,i8**%a1,align 8
call void@sml_raise(i8*inreg%aV)#1
unreachable
a2:
%a3=call i8*@sml_alloc(i32 inreg 20)#0
%a4=getelementptr inbounds i8,i8*%a3,i64 -4
%a5=bitcast i8*%a4 to i32*
store i32 1342177296,i32*%a5,align 4
%a6=getelementptr inbounds i8,i8*%a3,i64 12
%a7=bitcast i8*%a6 to i32*
store i32 0,i32*%a7,align 1
%a8=bitcast i8*%a3 to i8**
store i8*%aa,i8**%a8,align 8
%a9=getelementptr inbounds i8,i8*%a3,i64 8
%ba=bitcast i8*%a9 to i32*
store i32 0,i32*%ba,align 4
%bb=getelementptr inbounds i8,i8*%a3,i64 16
%bc=bitcast i8*%bb to i32*
store i32 0,i32*%bc,align 4
%bd=call fastcc i8*@_SMLFN20SMLSharp__SQL__SQLite319sqlite3__column__textE(i8*inreg%a3)
%be=call i8*@sml_alloc(i32 inreg 20)#0
%bf=getelementptr inbounds i8,i8*%be,i64 -4
%bg=bitcast i8*%bf to i32*
store i32 1342177296,i32*%bg,align 4
%bh=getelementptr inbounds i8,i8*%be,i64 12
%bi=bitcast i8*%bh to i32*
store i32 0,i32*%bi,align 1
%bj=bitcast i8*%be to i8**
store i8*%aa,i8**%bj,align 8
%bk=getelementptr inbounds i8,i8*%be,i64 8
%bl=bitcast i8*%bk to i32*
store i32 0,i32*%bl,align 4
%bm=getelementptr inbounds i8,i8*%be,i64 16
%bn=bitcast i8*%bm to i32*
store i32 0,i32*%bn,align 4
%bo=call fastcc i32@_SMLFN20SMLSharp__SQL__SQLite320sqlite3__column__bytesE(i8*inreg%be)
%bp=call i8*@sml_alloc(i32 inreg 20)#0
%bq=getelementptr inbounds i8,i8*%bp,i64 -4
%br=bitcast i8*%bq to i32*
store i32 1342177296,i32*%br,align 4
%bs=getelementptr inbounds i8,i8*%bp,i64 12
%bt=bitcast i8*%bs to i32*
store i32 0,i32*%bt,align 1
%bu=bitcast i8*%bp to i8**
store i8*%bd,i8**%bu,align 8
%bv=getelementptr inbounds i8,i8*%bp,i64 8
%bw=bitcast i8*%bv to i32*
store i32%bo,i32*%bw,align 4
%bx=getelementptr inbounds i8,i8*%bp,i64 16
%by=bitcast i8*%bx to i32*
store i32 0,i32*%by,align 4
%bz=call fastcc i8*@_SMLFN7Pointer13importString_GE(i8*inreg%bp)
store i8*%bz,i8**%d,align 8
%bA=call i8*@sml_alloc(i32 inreg 20)#0
%bB=getelementptr inbounds i8,i8*%bA,i64 -4
%bC=bitcast i8*%bB to i32*
store i32 1342177296,i32*%bC,align 4
%bD=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%bE=bitcast i8*%bA to i8**
store i8*%bD,i8**%bE,align 8
%bF=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bG=getelementptr inbounds i8,i8*%bA,i64 8
%bH=bitcast i8*%bG to i8**
store i8*%bF,i8**%bH,align 8
%bI=getelementptr inbounds i8,i8*%bA,i64 16
%bJ=bitcast i8*%bI to i32*
store i32 3,i32*%bJ,align 4
br label%ay
bK:
%bL=call fastcc i32@_SMLFN20SMLSharp__SQL__SQLite316sqlite3__finalizeE(i64 inreg%ab)
%bM=load i32,i32*@_SMLZN20SMLSharp__SQL__SQLite39SQLITE__OKE,align 4
%bN=icmp eq i32%bL,%bM
br i1%bN,label%ca,label%bO
bO:
store i8*null,i8**%c,align 8
%bP=load i8*,i8**@_SMLZN19SMLSharp__SQL__Errors4ExecE,align 8
store i8*%bP,i8**%b,align 8
%bQ=call fastcc i8*@_SMLFN20SMLSharp__SQL__SQLite314sqlite3__errstrE(i32 inreg%bL)
store i8*%bQ,i8**%c,align 8
%bR=call i8*@sml_alloc(i32 inreg 28)#0
%bS=getelementptr inbounds i8,i8*%bR,i64 -4
%bT=bitcast i8*%bS to i32*
store i32 1342177304,i32*%bT,align 4
store i8*%bR,i8**%d,align 8
%bU=load i8*,i8**%b,align 8
store i8*null,i8**%b,align 8
%bV=bitcast i8*%bR to i8**
store i8*%bU,i8**%bV,align 8
%bW=getelementptr inbounds i8,i8*%bR,i64 8
%bX=bitcast i8*%bW to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@F,i64 0,i32 2,i64 0),i8**%bX,align 8
%bY=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%bZ=getelementptr inbounds i8,i8*%bR,i64 16
%b0=bitcast i8*%bZ to i8**
store i8*%bY,i8**%b0,align 8
%b1=getelementptr inbounds i8,i8*%bR,i64 24
%b2=bitcast i8*%b1 to i32*
store i32 7,i32*%b2,align 4
%b3=call i8*@sml_alloc(i32 inreg 60)#0
%b4=getelementptr inbounds i8,i8*%b3,i64 -4
%b5=bitcast i8*%b4 to i32*
store i32 1342177336,i32*%b5,align 4
%b6=getelementptr inbounds i8,i8*%b3,i64 56
%b7=bitcast i8*%b6 to i32*
store i32 1,i32*%b7,align 4
%b8=load i8*,i8**%d,align 8
%b9=bitcast i8*%b3 to i8**
store i8*%b8,i8**%b9,align 8
call void@sml_raise(i8*inreg%b3)#1
unreachable
ca:
%cb=load i8*,i8**%b,align 8
%cc=getelementptr inbounds i8,i8*%cb,i64 16
%cd=bitcast i8*%cc to i8*(i8*,i8*)**
%ce=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%cd,align 8
%cf=bitcast i8*%cb to i8**
%cg=load i8*,i8**%cf,align 8
%ch=load i8*,i8**%c,align 8
%ci=tail call fastcc i8*%ce(i8*inreg%cg,i8*inreg%ch)
ret i8*%ci
}
define fastcc i8*@_SMLFN27SMLSharp__SQL__SQLite3Backend14columnTypeNameE(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,[44x i8]}>,<{[4x i8],i32,[44x i8]}>*@O,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]}>*@N,i64 0,i32 2,i64 0),%h],[getelementptr inbounds(<{[4x i8],i32,[9x i8]}>,<{[4x i8],i32,[9x i8]}>*@M,i64 0,i32 2,i64 0),%K],[getelementptr inbounds(<{[4x i8],i32,[8x i8]}>,<{[4x i8],i32,[8x i8]}>*@L,i64 0,i32 2,i64 0),%L],[getelementptr inbounds(<{[4x i8],i32,[6x i8]}>,<{[4x i8],i32,[6x i8]}>*@K,i64 0,i32 2,i64 0),%M],[getelementptr inbounds(<{[4x i8],i32,[7x i8]}>,<{[4x i8],i32,[7x i8]}>*@J,i64 0,i32 2,i64 0),%N],[getelementptr inbounds(<{[4x i8],i32,[5x i8]}>,<{[4x i8],i32,[5x i8]}>*@I,i64 0,i32 2,i64 0),%O],[getelementptr inbounds(<{[4x i8],i32,[5x i8]}>,<{[4x i8],i32,[5x i8]}>*@I,i64 0,i32 2,i64 0),%P],[getelementptr inbounds(<{[4x i8],i32,[4x i8]}>,<{[4x i8],i32,[4x i8]}>*@H,i64 0,i32 2,i64 0),%Q],[getelementptr inbounds(<{[4x i8],i32,[4x i8]}>,<{[4x i8],i32,[4x i8]}>*@H,i64 0,i32 2,i64 0),%R],[getelementptr inbounds(<{[4x i8],i32,[4x i8]}>,<{[4x i8],i32,[4x i8]}>*@H,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 i8*@_SMLFN27SMLSharp__SQL__SQLite3Backend9boolValueE(i8*inreg%a)#4 gc"smlsharp"{
ret i8*null
}
define fastcc i8*@_SMLFN27SMLSharp__SQL__SQLite3Backend9charValueE(i8*inreg%a)#4 gc"smlsharp"{
ret i8*null
}
define fastcc i8*@_SMLFN27SMLSharp__SQL__SQLite3Backend11real32ValueE(i8*inreg%a)#4 gc"smlsharp"{
ret i8*null
}
define fastcc i8*@_SMLFN27SMLSharp__SQL__SQLite3Backend14timestampValueE(i8*inreg%a)#4 gc"smlsharp"{
ret i8*null
}
define fastcc i8*@_SMLFN27SMLSharp__SQL__SQLite3Backend9wordValueE(i8*inreg%a)#4 gc"smlsharp"{
ret i8*null
}
define internal fastcc i8*@_SMLLLN27SMLSharp__SQL__SQLite3Backend7connectE_163(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN27SMLSharp__SQL__SQLite3Backend7connectE(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*@_SMLLLN27SMLSharp__SQL__SQLite3Backend9closeConnE_164(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@_SMLFN27SMLSharp__SQL__SQLite3Backend9closeConnE(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*@_SMLLLN27SMLSharp__SQL__SQLite3Backend9execQueryE_165(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN27SMLSharp__SQL__SQLite3Backend9execQueryE(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*@_SMLLLN27SMLSharp__SQL__SQLite3Backend8closeResE_166(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@_SMLFN27SMLSharp__SQL__SQLite3Backend8closeResE(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*@_SMLLLN27SMLSharp__SQL__SQLite3Backend5fetchE_167(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=bitcast i8*%b to i64*
%d=load i64,i64*%c,align 4
%e=tail call fastcc i32@_SMLFN27SMLSharp__SQL__SQLite3Backend5fetchE(i64 inreg%d)
%f=tail call i8*@sml_alloc(i32 inreg 4)#0
%g=bitcast i8*%f to i32*
%h=getelementptr inbounds i8,i8*%f,i64 -4
%i=bitcast i8*%h to i32*
store i32 4,i32*%i,align 4
store i32%e,i32*%g,align 4
ret i8*%f
}
define internal fastcc i8*@_SMLLLN27SMLSharp__SQL__SQLite3Backend8getValueE_168(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN27SMLSharp__SQL__SQLite3Backend8getValueE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN27SMLSharp__SQL__SQLite3Backend8intValueE_169(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN27SMLSharp__SQL__SQLite3Backend8intValueE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN27SMLSharp__SQL__SQLite3Backend11intInfValueE_170(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN27SMLSharp__SQL__SQLite3Backend11intInfValueE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN27SMLSharp__SQL__SQLite3Backend9realValueE_171(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN27SMLSharp__SQL__SQLite3Backend9realValueE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN27SMLSharp__SQL__SQLite3Backend11stringValueE_172(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN27SMLSharp__SQL__SQLite3Backend11stringValueE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN27SMLSharp__SQL__SQLite3Backend12numericValueE_173(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN27SMLSharp__SQL__SQLite3Backend12numericValueE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN27SMLSharp__SQL__SQLite3Backend17getDatabaseSchemaE_174(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*@_SMLFN27SMLSharp__SQL__SQLite3Backend17getDatabaseSchemaE(i64 inreg%d)
ret i8*%e
}
define internal fastcc i8*@_SMLLLN27SMLSharp__SQL__SQLite3Backend14columnTypeNameE_175(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN27SMLSharp__SQL__SQLite3Backend14columnTypeNameE(i8*inreg%b)
ret i8*%c
}
define internal fastcc i8*@_SMLLLN27SMLSharp__SQL__SQLite3Backend9boolValueE_176(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
ret i8*null
}
define internal fastcc i8*@_SMLLLN27SMLSharp__SQL__SQLite3Backend9charValueE_177(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
ret i8*null
}
define internal fastcc i8*@_SMLLLN27SMLSharp__SQL__SQLite3Backend11real32ValueE_178(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
ret i8*null
}
define internal fastcc i8*@_SMLLLN27SMLSharp__SQL__SQLite3Backend14timestampValueE_179(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
ret i8*null
}
define internal fastcc i8*@_SMLLLN27SMLSharp__SQL__SQLite3Backend9wordValueE_180(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
ret i8*null
}
attributes#0={nounwind}
attributes#1={noreturn}
attributes#2={uwtable}
attributes#3={noreturn nounwind}
attributes#4={nounwind uwtable}
