@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*)*@_SMLLN27SMLSharp__SQL__SQLite3Backend7connectE_169 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*)*@_SMLLN27SMLSharp__SQL__SQLite3Backend9closeConnE_170 to void(...)*),i32 -2147483647}>,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:48.19(1262)\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*)*@_SMLFN27SMLSharp__SQL__SQLite3Backend9execQueryE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN27SMLSharp__SQL__SQLite3Backend9execQueryE_171 to void(...)*),i32 -2147483647}>,align 8
@g=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
@h=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*)*@_SMLLN27SMLSharp__SQL__SQLite3Backend8closeResE_172 to void(...)*),i32 -2147483647}>,align 8
@i=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
@j=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*)*@_SMLLN27SMLSharp__SQL__SQLite3Backend5fetchE_173 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__SQLite3Backend8getValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN27SMLSharp__SQL__SQLite3Backend8getValueE_174 to void(...)*),i32 -2147483647}>,align 8
@l=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
@m=private unnamed_addr constant<{[4x i8],i32,[4x i8]}><{[4x i8]zeroinitializer,i32 -2147483644,[4x i8]c"int\00"}>,align 8
@n=private unnamed_addr constant<{[4x i8],i32,[5x i8]}><{[4x i8]zeroinitializer,i32 -2147483643,[5x i8]c"char\00"}>,align 8
@o=private unnamed_addr constant<{[4x i8],i32,[5x i8]}><{[4x i8]zeroinitializer,i32 -2147483643,[5x i8]c"clob\00"}>,align 8
@p=private unnamed_addr constant<{[4x i8],i32,[5x i8]}><{[4x i8]zeroinitializer,i32 -2147483643,[5x i8]c"text\00"}>,align 8
@q=private unnamed_addr constant<{[4x i8],i32,[5x i8]}><{[4x i8]zeroinitializer,i32 -2147483643,[5x i8]c"blob\00"}>,align 8
@r=private unnamed_addr constant<{[4x i8],i32,[1x i8]}><{[4x i8]zeroinitializer,i32 -2147483647,[1x i8]zeroinitializer}>,align 8
@s=private unnamed_addr constant<{[4x i8],i32,[5x i8]}><{[4x i8]zeroinitializer,i32 -2147483643,[5x i8]c"real\00"}>,align 8
@t=private unnamed_addr constant<{[4x i8],i32,[5x i8]}><{[4x i8]zeroinitializer,i32 -2147483643,[5x i8]c"floa\00"}>,align 8
@u=private unnamed_addr constant<{[4x i8],i32,[5x i8]}><{[4x i8]zeroinitializer,i32 -2147483643,[5x i8]c"doub\00"}>,align 8
@v=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
@w=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
@x=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
@y=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
@z=private unnamed_addr constant<{[4x i8],i32,[25x i8]}><{[4x i8]zeroinitializer,i32 -2147483623,[25x i8]c"PRAGMA main.table_info (\00"}>,align 8
@A=private unnamed_addr constant<{[4x i8],i32,[2x i8]}><{[4x i8]zeroinitializer,i32 -2147483646,[2x i8]c")\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*(i64)*@_SMLFN27SMLSharp__SQL__SQLite3Backend17getDatabaseSchemaE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN27SMLSharp__SQL__SQLite3Backend17getDatabaseSchemaE_179 to void(...)*),i32 -2147483647}>,align 8
@C=private unnamed_addr constant<{[4x i8],i32,[4x i8]}><{[4x i8]zeroinitializer,i32 -2147483644,[4x i8]c"INT\00"}>,align 8
@D=private unnamed_addr constant<{[4x i8],i32,[5x i8]}><{[4x i8]zeroinitializer,i32 -2147483643,[5x i8]c"TEXT\00"}>,align 8
@E=private unnamed_addr constant<{[4x i8],i32,[7x i8]}><{[4x i8]zeroinitializer,i32 -2147483641,[7x i8]c"DOUBLE\00"}>,align 8
@F=private unnamed_addr constant<{[4x i8],i32,[6x i8]}><{[4x i8]zeroinitializer,i32 -2147483642,[6x i8]c"FLOAT\00"}>,align 8
@G=private unnamed_addr constant<{[4x i8],i32,[8x i8]}><{[4x i8]zeroinitializer,i32 -2147483640,[8x i8]c"BOOLEAN\00"}>,align 8
@H=private unnamed_addr constant<{[4x i8],i32,[9x i8]}><{[4x i8]zeroinitializer,i32 -2147483639,[9x i8]c"DATETIME\00"}>,align 8
@I=private unnamed_addr constant<{[4x i8],i32,[8x i8]}><{[4x i8]zeroinitializer,i32 -2147483640,[8x i8]c"NUMERIC\00"}>,align 8
@J=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
@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__SQLite3Backend14columnTypeNameE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN27SMLSharp__SQL__SQLite3Backend14columnTypeNameE_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}>*@f,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}>*@h,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}>*@B,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}>*@K,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}>*@j,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}>*@k,i64 0,i32 2)to i8*)
@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__SQLite3Backend8intValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN27SMLSharp__SQL__SQLite3Backend8intValueE_181 to void(...)*),i32 -2147483647}>,align 8
@_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}>*@L,i64 0,i32 2)to i8*)
@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__SQLite3Backend11intInfValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN27SMLSharp__SQL__SQLite3Backend11intInfValueE_182 to void(...)*),i32 -2147483647}>,align 8
@_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}>*@M,i64 0,i32 2)to i8*)
@N=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*)*@_SMLLN27SMLSharp__SQL__SQLite3Backend9wordValueE_183 to void(...)*),i32 -2147483647}>,align 8
@_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}>*@N,i64 0,i32 2)to i8*)
@O=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*)*@_SMLLN27SMLSharp__SQL__SQLite3Backend9realValueE_184 to void(...)*),i32 -2147483647}>,align 8
@_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}>*@O,i64 0,i32 2)to i8*)
@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__SQLite3Backend11real32ValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN27SMLSharp__SQL__SQLite3Backend11real32ValueE_185 to void(...)*),i32 -2147483647}>,align 8
@_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}>*@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*)*@_SMLFN27SMLSharp__SQL__SQLite3Backend11stringValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN27SMLSharp__SQL__SQLite3Backend11stringValueE_186 to void(...)*),i32 -2147483647}>,align 8
@_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}>*@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*)*@_SMLFN27SMLSharp__SQL__SQLite3Backend9charValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN27SMLSharp__SQL__SQLite3Backend9charValueE_187 to void(...)*),i32 -2147483647}>,align 8
@_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*)
@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__SQLite3Backend9boolValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN27SMLSharp__SQL__SQLite3Backend9boolValueE_188 to void(...)*),i32 -2147483647}>,align 8
@_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}>*@S,i64 0,i32 2)to i8*)
@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*)*@_SMLLN27SMLSharp__SQL__SQLite3Backend14timestampValueE_189 to void(...)*),i32 -2147483647}>,align 8
@_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*)
@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__SQLite3Backend12numericValueE to void(...)*),void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN27SMLSharp__SQL__SQLite3Backend12numericValueE_190 to void(...)*),i32 -2147483647}>,align 8
@_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}>*@U,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]
store i8*null,i8**%b,align 8
%l=bitcast i8*%j to i8**
%m=load i8*,i8**%l,align 8
store i8*%m,i8**%c,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**%d,align 8
%q=call fastcc i8*@_SMLFN20SMLSharp__SQL__SQLite311new__sqlite3E(i32 inreg 0)
store i8*%q,i8**%b,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**%d,align 8
store i8*null,i8**%d,align 8
%v=bitcast i8*%r to i8**
store i8*%u,i8**%v,align 8
%w=load i8*,i8**%b,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**%c,align 8
store i8*null,i8**%c,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**%b to i8***
%J=load i8**,i8***%I,align 8
%K=load i8*,i8**%J,align 8
ret i8*%K
L:
%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]
store i8*null,i8**%b,align 8
%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**%c,align 8
%q=call fastcc i8*@_SMLFN20SMLSharp__SQL__SQLite316new__sqlite3__stmtE(i32 inreg 0)
store i8*%q,i8**%b,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**%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=load i8*,i8**%b,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**%b to i8***
%I=load i8**,i8***%H,align 8
%J=load i8*,i8**%I,align 8
ret i8*%J
K:
%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]}>*@e,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]}>*@g,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]}>*@i,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 internal fastcc i8*@_SMLLN27SMLSharp__SQL__SQLite3Backend8readTextE_106(i8*inreg%a)unnamed_addr#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=tail call fastcc i8*@_SMLFN7Pointer13importString_GE(i8*inreg%K)
ret i8*%U
}
define internal fastcc i8*@_SMLL4loop_109(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
j:
%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
%f=bitcast i8**%e to i64**
%g=bitcast i8**%e to i8***
br label%h
h:
%i=phi i8*[%I,%u],[%b,%j]
store i8*%i,i8**%c,align 8
%k=load atomic i32,i32*@sml_check_flag unordered,align 4
%l=icmp eq i32%k,0
br i1%l,label%o,label%m
m:
call void@sml_check(i32 inreg%k)
%n=load i8*,i8**%c,align 8
br label%o
o:
%p=phi i8*[%n,%m],[%i,%h]
store i8*null,i8**%c,align 8
store i8*%p,i8**%d,align 8
%q=load i64*,i64**%f,align 8
%r=load i64,i64*%q,align 4
%s=call fastcc i32@_SMLFN27SMLSharp__SQL__SQLite3Backend5fetchE(i64 inreg%r)
%t=icmp eq i32%s,0
br i1%t,label%S,label%u
u:
%v=load i8**,i8***%g,align 8
%w=load i8*,i8**%v,align 8
%x=call i8*@sml_alloc(i32 inreg 20)#0
%y=getelementptr inbounds i8,i8*%x,i64 -4
%z=bitcast i8*%y to i32*
store i32 1342177296,i32*%z,align 4
%A=getelementptr inbounds i8,i8*%x,i64 12
%B=bitcast i8*%A to i32*
store i32 0,i32*%B,align 1
%C=bitcast i8*%x to i8**
store i8*%w,i8**%C,align 8
%D=getelementptr inbounds i8,i8*%x,i64 8
%E=bitcast i8*%D to i32*
store i32 0,i32*%E,align 4
%F=getelementptr inbounds i8,i8*%x,i64 16
%G=bitcast i8*%F to i32*
store i32 0,i32*%G,align 4
%H=call fastcc i8*@_SMLLN27SMLSharp__SQL__SQLite3Backend8readTextE_106(i8*inreg%x)
store i8*%H,i8**%c,align 8
%I=call i8*@sml_alloc(i32 inreg 20)#0
%J=getelementptr inbounds i8,i8*%I,i64 -4
%K=bitcast i8*%J to i32*
store i32 1342177296,i32*%K,align 4
%L=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%M=bitcast i8*%I to i8**
store i8*%L,i8**%M,align 8
%N=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%O=getelementptr inbounds i8,i8*%I,i64 8
%P=bitcast i8*%O to i8**
store i8*%N,i8**%P,align 8
%Q=getelementptr inbounds i8,i8*%I,i64 16
%R=bitcast i8*%Q to i32*
store i32 3,i32*%R,align 4
br label%h
S:
%T=load i8*,i8**%d,align 8
ret i8*%T
}
define internal fastcc i8*@_SMLL4loop_129(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
q:
%c=alloca i8*,align 8
%d=alloca i8*,align 8
%e=alloca i8*,align 8
%f=alloca i8*,align 8
%g=alloca i8*,align 8
%h=alloca i8*,align 8
%i=alloca i8*,align 8
call void@llvm.gcroot(i8**%f,i8*null)#0
call void@llvm.gcroot(i8**%g,i8*null)#0
call void@llvm.gcroot(i8**%h,i8*null)#0
call void@llvm.gcroot(i8**%i,i8*null)#0
store i8*%a,i8**%i,align 8
%j=bitcast i8**%i to i64**
%k=bitcast i8**%i to i8***
%l=bitcast i8**%c to i8*
%m=bitcast i8**%d to i8*
%n=bitcast i8**%e to i8*
br label%o
o:
%p=phi i8*[%dD,%dd],[%b,%q]
store i8*%p,i8**%f,align 8
%r=load atomic i32,i32*@sml_check_flag unordered,align 4
%s=icmp eq i32%r,0
br i1%s,label%v,label%t
t:
call void@sml_check(i32 inreg%r)
%u=load i8*,i8**%f,align 8
br label%v
v:
%w=phi i8*[%u,%t],[%p,%o]
store i8*null,i8**%f,align 8
store i8*%w,i8**%h,align 8
%x=load i64*,i64**%j,align 8
%y=load i64,i64*%x,align 4
%z=call fastcc i32@_SMLFN27SMLSharp__SQL__SQLite3Backend5fetchE(i64 inreg%y)
%A=icmp eq i32%z,0
br i1%A,label%dN,label%B
B:
%C=load i8**,i8***%k,align 8
%D=load i8*,i8**%C,align 8
%E=call i8*@sml_alloc(i32 inreg 20)#0
%F=getelementptr inbounds i8,i8*%E,i64 -4
%G=bitcast i8*%F to i32*
store i32 1342177296,i32*%G,align 4
%H=getelementptr inbounds i8,i8*%E,i64 12
%I=bitcast i8*%H to i32*
store i32 0,i32*%I,align 1
%J=bitcast i8*%E to i8**
store i8*%D,i8**%J,align 8
%K=getelementptr inbounds i8,i8*%E,i64 8
%L=bitcast i8*%K to i32*
store i32 1,i32*%L,align 4
%M=getelementptr inbounds i8,i8*%E,i64 16
%N=bitcast i8*%M to i32*
store i32 0,i32*%N,align 4
%O=call fastcc i8*@_SMLLN27SMLSharp__SQL__SQLite3Backend8readTextE_106(i8*inreg%E)
store i8*%O,i8**%f,align 8
%P=load i8**,i8***%k,align 8
%Q=load i8*,i8**%P,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=getelementptr inbounds i8,i8*%R,i64 12
%V=bitcast i8*%U to i32*
store i32 0,i32*%V,align 1
%W=bitcast i8*%R to i8**
store i8*%Q,i8**%W,align 8
%X=getelementptr inbounds i8,i8*%R,i64 8
%Y=bitcast i8*%X to i32*
store i32 2,i32*%Y,align 4
%Z=getelementptr inbounds i8,i8*%R,i64 16
%aa=bitcast i8*%Z to i32*
store i32 0,i32*%aa,align 4
%ab=call fastcc i8*@_SMLLN27SMLSharp__SQL__SQLite3Backend8readTextE_106(i8*inreg%R)
store i8*%ab,i8**%g,align 8
%ac=load i8**,i8***%k,align 8
%ad=load i8*,i8**%ac,align 8
%ae=call i8*@sml_alloc(i32 inreg 20)#0
%af=getelementptr inbounds i8,i8*%ae,i64 -4
%ag=bitcast i8*%af to i32*
store i32 1342177296,i32*%ag,align 4
%ah=getelementptr inbounds i8,i8*%ae,i64 12
%ai=bitcast i8*%ah to i32*
store i32 0,i32*%ai,align 1
%aj=bitcast i8*%ae to i8**
store i8*%ad,i8**%aj,align 8
%ak=getelementptr inbounds i8,i8*%ae,i64 8
%al=bitcast i8*%ak to i32*
store i32 3,i32*%al,align 4
%am=getelementptr inbounds i8,i8*%ae,i64 16
%an=bitcast i8*%am to i32*
store i32 0,i32*%an,align 4
%ao=call fastcc i32@_SMLFN20SMLSharp__SQL__SQLite318sqlite3__column__intE(i8*inreg%ae)
%ap=load i8**,i8***%k,align 8
%aq=load i8*,i8**%ap,align 8
%ar=call i8*@sml_alloc(i32 inreg 20)#0
%as=getelementptr inbounds i8,i8*%ar,i64 -4
%at=bitcast i8*%as to i32*
store i32 1342177296,i32*%at,align 4
%au=getelementptr inbounds i8,i8*%ar,i64 12
%av=bitcast i8*%au to i32*
store i32 0,i32*%av,align 1
%aw=bitcast i8*%ar to i8**
store i8*%aq,i8**%aw,align 8
%ax=getelementptr inbounds i8,i8*%ar,i64 8
%ay=bitcast i8*%ax to i32*
store i32 5,i32*%ay,align 4
%az=getelementptr inbounds i8,i8*%ar,i64 16
%aA=bitcast i8*%az to i32*
store i32 0,i32*%aA,align 4
%aB=call fastcc i32@_SMLFN20SMLSharp__SQL__SQLite318sqlite3__column__intE(i8*inreg%ar)
%aC=call i8*@sml_alloc(i32 inreg 28)#0
%aD=getelementptr inbounds i8,i8*%aC,i64 -4
%aE=bitcast i8*%aD to i32*
store i32 1342177304,i32*%aE,align 4
%aF=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%aG=bitcast i8*%aC to i8**
store i8*%aF,i8**%aG,align 8
%aH=getelementptr inbounds i8,i8*%aC,i64 8
%aI=bitcast i8*%aH to i32*
store i32%ao,i32*%aI,align 4
%aJ=getelementptr inbounds i8,i8*%aC,i64 12
%aK=bitcast i8*%aJ to i32*
store i32%aB,i32*%aK,align 4
%aL=load i8*,i8**%g,align 8
store i8*null,i8**%g,align 8
%aM=getelementptr inbounds i8,i8*%aC,i64 16
%aN=bitcast i8*%aM to i8**
store i8*%aL,i8**%aN,align 8
%aO=getelementptr inbounds i8,i8*%aC,i64 24
%aP=bitcast i8*%aO to i32*
store i32 5,i32*%aP,align 4
call void@llvm.lifetime.start.p0i8(i64 8,i8*%l)
call void@llvm.lifetime.start.p0i8(i64 8,i8*%m)
call void@llvm.lifetime.start.p0i8(i64 8,i8*%n)
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*%aC,i8**%c,align 8
%aQ=load atomic i32,i32*@sml_check_flag unordered,align 4
%aR=icmp eq i32%aQ,0
br i1%aR,label%aZ,label%aS
aS:
call void@sml_check(i32 inreg%aQ)
%aT=load i8*,i8**%c,align 8
%aU=bitcast i8*%aT to i8**
%aV=getelementptr inbounds i8,i8*%aT,i64 8
%aW=bitcast i8*%aV to i32*
%aX=getelementptr inbounds i8,i8*%aT,i64 12
%aY=bitcast i8*%aX to i32*
br label%aZ
aZ:
%a0=phi i32*[%aY,%aS],[%aK,%B]
%a1=phi i32*[%aW,%aS],[%aI,%B]
%a2=phi i8**[%aU,%aS],[%aG,%B]
%a3=phi i8*[%aT,%aS],[%aC,%B]
store i8*null,i8**%c,align 8
store i8*%a3,i8**%d,align 8
%a4=load i8*,i8**%a2,align 8
store i8*%a4,i8**%e,align 8
%a5=load i32,i32*%a1,align 4
%a6=load i32,i32*%a0,align 4
%a7=load i8*,i8**@_SMLZN4Char7toLowerE,align 8
%a8=call fastcc i8*@_SMLFN10CharVector3mapE(i8*inreg%a7)
%a9=getelementptr inbounds i8,i8*%a8,i64 16
%ba=bitcast i8*%a9 to i8*(i8*,i8*)**
%bb=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%ba,align 8
%bc=bitcast i8*%a8 to i8**
%bd=load i8*,i8**%bc,align 8
%be=load i8*,i8**%d,align 8
%bf=getelementptr inbounds i8,i8*%be,i64 16
%bg=bitcast i8*%bf to i8**
%bh=load i8*,i8**%bg,align 8
%bi=call fastcc i8*%bb(i8*inreg%bd,i8*inreg%bh)
store i8*%bi,i8**%c,align 8
%bj=call fastcc i8*@_SMLFN6String11isSubstringE(i8*inreg getelementptr inbounds(<{[4x i8],i32,[4x i8]}>,<{[4x i8],i32,[4x i8]}>*@m,i64 0,i32 2,i64 0))
%bk=getelementptr inbounds i8,i8*%bj,i64 16
%bl=bitcast i8*%bk to i8*(i8*,i8*)**
%bm=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bl,align 8
%bn=bitcast i8*%bj to i8**
%bo=load i8*,i8**%bn,align 8
%bp=load i8*,i8**%c,align 8
%bq=call fastcc i8*%bm(i8*inreg%bo,i8*inreg%bp)
%br=bitcast i8*%bq to i32*
%bs=load i32,i32*%br,align 4
%bt=icmp eq i32%bs,0
br i1%bt,label%bv,label%bu
bu:
store i8*null,i8**%c,align 8
store i8*null,i8**%d,align 8
br label%dd
bv:
%bw=call fastcc i8*@_SMLFN6String11isSubstringE(i8*inreg getelementptr inbounds(<{[4x i8],i32,[5x i8]}>,<{[4x i8],i32,[5x i8]}>*@n,i64 0,i32 2,i64 0))
%bx=getelementptr inbounds i8,i8*%bw,i64 16
%by=bitcast i8*%bx to i8*(i8*,i8*)**
%bz=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%by,align 8
%bA=bitcast i8*%bw to i8**
%bB=load i8*,i8**%bA,align 8
%bC=load i8*,i8**%c,align 8
%bD=call fastcc i8*%bz(i8*inreg%bB,i8*inreg%bC)
%bE=bitcast i8*%bD to i32*
%bF=load i32,i32*%bE,align 4
%bG=icmp eq i32%bF,0
br i1%bG,label%bH,label%b5
bH:
%bI=call fastcc i8*@_SMLFN6String11isSubstringE(i8*inreg getelementptr inbounds(<{[4x i8],i32,[5x i8]}>,<{[4x i8],i32,[5x i8]}>*@o,i64 0,i32 2,i64 0))
%bJ=getelementptr inbounds i8,i8*%bI,i64 16
%bK=bitcast i8*%bJ to i8*(i8*,i8*)**
%bL=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bK,align 8
%bM=bitcast i8*%bI to i8**
%bN=load i8*,i8**%bM,align 8
%bO=load i8*,i8**%c,align 8
%bP=call fastcc i8*%bL(i8*inreg%bN,i8*inreg%bO)
%bQ=bitcast i8*%bP to i32*
%bR=load i32,i32*%bQ,align 4
%bS=icmp eq i32%bR,0
br i1%bS,label%bT,label%b5
bT:
%bU=call fastcc i8*@_SMLFN6String11isSubstringE(i8*inreg getelementptr inbounds(<{[4x i8],i32,[5x i8]}>,<{[4x i8],i32,[5x i8]}>*@p,i64 0,i32 2,i64 0))
%bV=getelementptr inbounds i8,i8*%bU,i64 16
%bW=bitcast i8*%bV to i8*(i8*,i8*)**
%bX=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%bW,align 8
%bY=bitcast i8*%bU to i8**
%bZ=load i8*,i8**%bY,align 8
%b0=load i8*,i8**%c,align 8
%b1=call fastcc i8*%bX(i8*inreg%bZ,i8*inreg%b0)
%b2=bitcast i8*%b1 to i32*
%b3=load i32,i32*%b2,align 4
%b4=icmp eq i32%b3,0
br i1%b4,label%b6,label%b5
b5:
store i8*null,i8**%d,align 8
br label%dd
b6:
%b7=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))
%b8=getelementptr inbounds i8,i8*%b7,i64 16
%b9=bitcast i8*%b8 to i8*(i8*,i8*)**
%ca=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%b9,align 8
%cb=bitcast i8*%b7 to i8**
%cc=load i8*,i8**%cb,align 8
%cd=load i8*,i8**%c,align 8
%ce=call fastcc i8*%ca(i8*inreg%cc,i8*inreg%cd)
%cf=bitcast i8*%ce to i32*
%cg=load i32,i32*%cf,align 4
%ch=icmp eq i32%cg,0
br i1%ch,label%ci,label%cm
ci:
%cj=load i8*,i8**%c,align 8
%ck=call i32@sml_obj_equal(i8*inreg%cj,i8*inreg getelementptr inbounds(<{[4x i8],i32,[1x i8]}>,<{[4x i8],i32,[1x i8]}>*@r,i64 0,i32 2,i64 0))#0
%cl=icmp eq i32%ck,0
br i1%cl,label%cC,label%cm
cm:
%cn=load i8*,i8**%d,align 8
store i8*null,i8**%d,align 8
%co=getelementptr inbounds i8,i8*%cn,i64 16
%cp=bitcast i8*%co to i8**
%cq=load i8*,i8**%cp,align 8
store i8*%cq,i8**%c,align 8
%cr=call i8*@sml_alloc(i32 inreg 20)#0
%cs=bitcast i8*%cr to i32*
%ct=getelementptr inbounds i8,i8*%cr,i64 -4
%cu=bitcast i8*%ct to i32*
store i32 1342177296,i32*%cu,align 4
%cv=getelementptr inbounds i8,i8*%cr,i64 4
%cw=bitcast i8*%cv to i32*
store i32 0,i32*%cw,align 1
store i32 9,i32*%cs,align 4
%cx=load i8*,i8**%c,align 8
%cy=getelementptr inbounds i8,i8*%cr,i64 8
%cz=bitcast i8*%cy to i8**
store i8*%cx,i8**%cz,align 8
%cA=getelementptr inbounds i8,i8*%cr,i64 16
%cB=bitcast i8*%cA to i32*
store i32 2,i32*%cB,align 4
br label%dd
cC:
store i8*null,i8**%d,align 8
%cD=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))
%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**%c,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%cO,label%dd
cO:
%cP=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))
%cQ=getelementptr inbounds i8,i8*%cP,i64 16
%cR=bitcast i8*%cQ to i8*(i8*,i8*)**
%cS=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%cR,align 8
%cT=bitcast i8*%cP to i8**
%cU=load i8*,i8**%cT,align 8
%cV=load i8*,i8**%c,align 8
%cW=call fastcc i8*%cS(i8*inreg%cU,i8*inreg%cV)
%cX=bitcast i8*%cW to i32*
%cY=load i32,i32*%cX,align 4
%cZ=icmp eq i32%cY,0
br i1%cZ,label%c0,label%dd
c0:
%c1=call fastcc i8*@_SMLFN6String11isSubstringE(i8*inreg getelementptr inbounds(<{[4x i8],i32,[5x i8]}>,<{[4x i8],i32,[5x i8]}>*@u,i64 0,i32 2,i64 0))
%c2=getelementptr inbounds i8,i8*%c1,i64 16
%c3=bitcast i8*%c2 to i8*(i8*,i8*)**
%c4=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%c3,align 8
%c5=bitcast i8*%c1 to i8**
%c6=load i8*,i8**%c5,align 8
%c7=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%c8=call fastcc i8*%c4(i8*inreg%c6,i8*inreg%c7)
%c9=bitcast i8*%c8 to i32*
%da=load i32,i32*%c9,align 4
%db=icmp eq i32%da,0
%dc=select i1%db,i8*bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@v,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}>*@w,i64 0,i32 2)to i8*)
br label%dd
dd:
%de=phi 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*),%bu],[bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@x,i64 0,i32 2)to i8*),%b5],[%cr,%cm],[%dc,%c0],[bitcast(i32*getelementptr inbounds(<{[4x i8],i32,i32,[4x i8],i32}>,<{[4x i8],i32,i32,[4x i8],i32}>*@w,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}>*@w,i64 0,i32 2)to i8*),%cC]
store i8*%de,i8**%c,align 8
%df=or i32%a6,%a5
%dg=icmp eq i32%df,0
%dh=zext i1%dg to i32
%di=call i8*@sml_alloc(i32 inreg 20)#0
%dj=getelementptr inbounds i8,i8*%di,i64 -4
%dk=bitcast i8*%dj to i32*
store i32 1342177296,i32*%dk,align 4
store i8*%di,i8**%d,align 8
%dl=getelementptr inbounds i8,i8*%di,i64 4
%dm=bitcast i8*%dl to i32*
store i32 0,i32*%dm,align 1
%dn=bitcast i8*%di to i32*
store i32%dh,i32*%dn,align 4
%do=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%dp=getelementptr inbounds i8,i8*%di,i64 8
%dq=bitcast i8*%dp to i8**
store i8*%do,i8**%dq,align 8
%dr=getelementptr inbounds i8,i8*%di,i64 16
%ds=bitcast i8*%dr to i32*
store i32 2,i32*%ds,align 4
%dt=call i8*@sml_alloc(i32 inreg 20)#0
%du=getelementptr inbounds i8,i8*%dt,i64 -4
%dv=bitcast i8*%du to i32*
store i32 1342177296,i32*%dv,align 4
%dw=load i8*,i8**%e,align 8
%dx=bitcast i8*%dt to i8**
store i8*%dw,i8**%dx,align 8
%dy=load i8*,i8**%d,align 8
%dz=getelementptr inbounds i8,i8*%dt,i64 8
%dA=bitcast i8*%dz to i8**
store i8*%dy,i8**%dA,align 8
%dB=getelementptr inbounds i8,i8*%dt,i64 16
%dC=bitcast i8*%dB to i32*
store i32 3,i32*%dC,align 4
call void@llvm.lifetime.end.p0i8(i64 8,i8*%l)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%m)
call void@llvm.lifetime.end.p0i8(i64 8,i8*%n)
store i8*%dt,i8**%f,align 8
%dD=call i8*@sml_alloc(i32 inreg 20)#0
%dE=getelementptr inbounds i8,i8*%dD,i64 -4
%dF=bitcast i8*%dE to i32*
store i32 1342177296,i32*%dF,align 4
%dG=load i8*,i8**%f,align 8
store i8*null,i8**%f,align 8
%dH=bitcast i8*%dD to i8**
store i8*%dG,i8**%dH,align 8
%dI=load i8*,i8**%h,align 8
store i8*null,i8**%h,align 8
%dJ=getelementptr inbounds i8,i8*%dD,i64 8
%dK=bitcast i8*%dJ to i8**
store i8*%dI,i8**%dK,align 8
%dL=getelementptr inbounds i8,i8*%dD,i64 16
%dM=bitcast i8*%dL to i32*
store i32 3,i32*%dM,align 4
br label%o
dN:
%dO=load i8*,i8**%h,align 8
ret i8*%dO
}
define internal fastcc i8*@_SMLLN27SMLSharp__SQL__SQLite3Backend12getTableInfoE_130(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=alloca i8*,align 8
%d=alloca i8*,align 8
call void@llvm.gcroot(i8**%c,i8*null)#0
call void@llvm.gcroot(i8**%d,i8*null)#0
store i8*%a,i8**%d,align 8
store i8*%b,i8**%c,align 8
%e=load atomic i32,i32*@sml_check_flag unordered,align 4
%f=icmp eq i32%e,0
br i1%f,label%h,label%g
g:
call void@sml_check(i32 inreg%e)
br label%h
h:
%i=call i8*@sml_alloc(i32 inreg 20)#0
%j=getelementptr inbounds i8,i8*%i,i64 -4
%k=bitcast i8*%j to i32*
store i32 1342177296,i32*%k,align 4
%l=bitcast i8*%i to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[25x i8]}>,<{[4x i8],i32,[25x i8]}>*@z,i64 0,i32 2,i64 0),i8**%l,align 8
%m=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%n=getelementptr inbounds i8,i8*%i,i64 8
%o=bitcast i8*%n to i8**
store i8*%m,i8**%o,align 8
%p=getelementptr inbounds i8,i8*%i,i64 16
%q=bitcast i8*%p to i32*
store i32 3,i32*%q,align 4
%r=call fastcc i8*@_SMLFN6String1_ZE(i8*inreg%i)
store i8*%r,i8**%c,align 8
%s=call i8*@sml_alloc(i32 inreg 20)#0
%t=getelementptr inbounds i8,i8*%s,i64 -4
%u=bitcast i8*%t to i32*
store i32 1342177296,i32*%u,align 4
%v=load i8*,i8**%c,align 8
store i8*null,i8**%c,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,[2x i8]}>,<{[4x i8],i32,[2x i8]}>*@A,i64 0,i32 2,i64 0),i8**%y,align 8
%z=getelementptr inbounds i8,i8*%s,i64 16
%A=bitcast i8*%z to i32*
store i32 3,i32*%A,align 4
%B=call fastcc i8*@_SMLFN6String1_ZE(i8*inreg%s)
store i8*%B,i8**%c,align 8
%C=bitcast i8**%d to i8***
%D=load i8**,i8***%C,align 8
store i8*null,i8**%d,align 8
%E=load i8*,i8**%D,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=bitcast i8*%F to i8**
store i8*%E,i8**%I,align 8
%J=load i8*,i8**%c,align 8
store i8*null,i8**%c,align 8
%K=getelementptr inbounds i8,i8*%F,i64 8
%L=bitcast i8*%K to i8**
store i8*%J,i8**%L,align 8
%M=getelementptr inbounds i8,i8*%F,i64 16
%N=bitcast i8*%M to i32*
store i32 2,i32*%N,align 4
%O=call fastcc i8*@_SMLFN27SMLSharp__SQL__SQLite3Backend9execQueryE(i8*inreg%F)
%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*%O,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
%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 void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL4loop_129 to void(...)*),void(...)**%ab,align 8
%ac=getelementptr inbounds i8,i8*%V,i64 16
%ad=bitcast i8*%ac to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL4loop_129 to void(...)*),void(...)**%ad,align 8
%ae=getelementptr inbounds i8,i8*%V,i64 24
%af=bitcast i8*%ae to i32*
store i32 -2147483647,i32*%af,align 4
store i8*null,i8**%c,align 8
%ag=call fastcc i8*@_SMLL4loop_129(i8*inreg%Y,i8*inreg null)
store i8*%ag,i8**%c,align 8
%ah=ptrtoint i8*%O to i64
call fastcc void@_SMLFN27SMLSharp__SQL__SQLite3Backend8closeResE(i64 inreg%ah)
%ai=call fastcc i8*@_SMLFN4List3revE(i32 inreg 1,i32 inreg 8)
%aj=getelementptr inbounds i8,i8*%ai,i64 16
%ak=bitcast i8*%aj to i8*(i8*,i8*)**
%al=load i8*(i8*,i8*)*,i8*(i8*,i8*)**%ak,align 8
%am=bitcast i8*%ai to i8**
%an=load i8*,i8**%am,align 8
%ao=load i8*,i8**%c,align 8
%ap=tail call fastcc i8*%al(i8*inreg%an,i8*inreg%ao)
ret i8*%ap
}
define internal fastcc i8*@_SMLLN27SMLSharp__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
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**%d,align 8
%f=load atomic i32,i32*@sml_check_flag unordered,align 4
%g=icmp eq i32%f,0
br i1%g,label%h,label%j
h:
%i=bitcast i8*%a to i8**
br label%m
j:
call void@sml_check(i32 inreg%f)
%k=bitcast i8**%e to i8***
%l=load i8**,i8***%k,align 8
br label%m
m:
%n=phi i8**[%l,%j],[%i,%h]
store i8*null,i8**%e,align 8
%o=load i8*,i8**%n,align 4
%p=bitcast i8**%c to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%p)
call void@llvm.gcroot(i8**%c,i8*null)#0
%q=call i8*@sml_alloc(i32 inreg 12)#0
%r=getelementptr inbounds i8,i8*%q,i64 -4
%s=bitcast i8*%r to i32*
store i32 1342177288,i32*%s,align 4
store i8*%q,i8**%c,align 8
%t=bitcast i8*%q to i8**
store i8*%o,i8**%t,align 8
%u=getelementptr inbounds i8,i8*%q,i64 8
%v=bitcast i8*%u to i32*
store i32 0,i32*%v,align 4
%w=call i8*@sml_alloc(i32 inreg 28)#0
%x=getelementptr inbounds i8,i8*%w,i64 -4
%y=bitcast i8*%x to i32*
store i32 1342177304,i32*%y,align 4
%z=load i8*,i8**%c,align 8
%A=bitcast i8*%w to i8**
store i8*%z,i8**%A,align 8
%B=getelementptr inbounds i8,i8*%w,i64 8
%C=bitcast i8*%B to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN27SMLSharp__SQL__SQLite3Backend12getTableInfoE_130 to void(...)*),void(...)**%C,align 8
%D=getelementptr inbounds i8,i8*%w,i64 16
%E=bitcast i8*%D to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN27SMLSharp__SQL__SQLite3Backend12getTableInfoE_130 to void(...)*),void(...)**%E,align 8
%F=getelementptr inbounds i8,i8*%w,i64 24
%G=bitcast i8*%F to i32*
store i32 -2147483647,i32*%G,align 4
call void@llvm.lifetime.end.p0i8(i64 8,i8*%p)
%H=load i8*,i8**%d,align 8
%I=call fastcc i8*@_SMLLN27SMLSharp__SQL__SQLite3Backend12getTableInfoE_130(i8*inreg%z,i8*inreg%H)
store i8*%I,i8**%e,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
%N=bitcast i8*%J to i8**
store i8*%M,i8**%N,align 8
%O=load i8*,i8**%e,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
ret i8*%J
}
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**%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**%c,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**%d,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**%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 void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLLN27SMLSharp__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*)*@_SMLLN27SMLSharp__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**%c,align 8
store i8*null,i8**%c,align 8
%H=call fastcc i8*%m(i8*inreg%G,i8*inreg%v)
%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=bitcast i8**%b to i8*
call void@llvm.lifetime.start.p0i8(i64 8,i8*%N)
call void@llvm.gcroot(i8**%b,i8*null)#0
%O=load atomic i32,i32*@sml_check_flag unordered,align 4
%P=icmp eq i32%O,0
br i1%P,label%R,label%Q
Q:
call void@sml_check(i32 inreg%O)
br label%R
R:
%S=call i8*@sml_alloc(i32 inreg 20)#0
%T=getelementptr inbounds i8,i8*%S,i64 -4
%U=bitcast i8*%T to i32*
store i32 1342177296,i32*%U,align 4
%V=bitcast i8*%S to i8**
store i8*%i,i8**%V,align 8
%W=getelementptr inbounds i8,i8*%S,i64 8
%X=bitcast i8*%W to i8**
store i8*getelementptr inbounds(<{[4x i8],i32,[160x i8]}>,<{[4x i8],i32,[160x i8]}>*@l,i64 0,i32 2,i64 0),i8**%X,align 8
%Y=getelementptr inbounds i8,i8*%S,i64 16
%Z=bitcast i8*%Y to i32*
store i32 2,i32*%Z,align 4
%aa=call fastcc i8*@_SMLFN27SMLSharp__SQL__SQLite3Backend9execQueryE(i8*inreg%S)
%ab=call i8*@sml_alloc(i32 inreg 12)#0
%ac=getelementptr inbounds i8,i8*%ab,i64 -4
%ad=bitcast i8*%ac to i32*
store i32 1342177288,i32*%ad,align 4
store i8*%ab,i8**%b,align 8
%ae=bitcast i8*%ab to i8**
store i8*%aa,i8**%ae,align 8
%af=getelementptr inbounds i8,i8*%ab,i64 8
%ag=bitcast i8*%af to i32*
store i32 0,i32*%ag,align 4
%ah=call i8*@sml_alloc(i32 inreg 28)#0
%ai=getelementptr inbounds i8,i8*%ah,i64 -4
%aj=bitcast i8*%ai to i32*
store i32 1342177304,i32*%aj,align 4
%ak=load i8*,i8**%b,align 8
%al=bitcast i8*%ah to i8**
store i8*%ak,i8**%al,align 8
%am=getelementptr inbounds i8,i8*%ah,i64 8
%an=bitcast i8*%am to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL4loop_109 to void(...)*),void(...)**%an,align 8
%ao=getelementptr inbounds i8,i8*%ah,i64 16
%ap=bitcast i8*%ao to void(...)**
store void(...)*bitcast(i8*(i8*,i8*)*@_SMLL4loop_109 to void(...)*),void(...)**%ap,align 8
%aq=getelementptr inbounds i8,i8*%ah,i64 24
%ar=bitcast i8*%aq to i32*
store i32 -2147483647,i32*%ar,align 4
store i8*null,i8**%b,align 8
%as=call fastcc i8*@_SMLL4loop_109(i8*inreg%ak,i8*inreg null)
store i8*%as,i8**%b,align 8
%at=ptrtoint i8*%aa to i64
call fastcc void@_SMLFN27SMLSharp__SQL__SQLite3Backend8closeResE(i64 inreg%at)
%au=load i8*,i8**%b,align 8
call void@llvm.lifetime.end.p0i8(i64 8,i8*%N)
%av=load i8*,i8**%c,align 8
%aw=tail call fastcc i8*%K(i8*inreg%av,i8*inreg%au)
ret i8*%aw
}
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]}>*@J,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]}>*@I,i64 0,i32 2,i64 0),%h],[getelementptr inbounds(<{[4x i8],i32,[9x i8]}>,<{[4x i8],i32,[9x i8]}>*@H,i64 0,i32 2,i64 0),%K],[getelementptr inbounds(<{[4x i8],i32,[8x i8]}>,<{[4x i8],i32,[8x i8]}>*@G,i64 0,i32 2,i64 0),%L],[getelementptr inbounds(<{[4x i8],i32,[6x i8]}>,<{[4x i8],i32,[6x i8]}>*@F,i64 0,i32 2,i64 0),%M],[getelementptr inbounds(<{[4x i8],i32,[7x i8]}>,<{[4x i8],i32,[7x i8]}>*@E,i64 0,i32 2,i64 0),%N],[getelementptr inbounds(<{[4x i8],i32,[5x i8]}>,<{[4x i8],i32,[5x i8]}>*@D,i64 0,i32 2,i64 0),%O],[getelementptr inbounds(<{[4x i8],i32,[5x i8]}>,<{[4x i8],i32,[5x i8]}>*@D,i64 0,i32 2,i64 0),%P],[getelementptr inbounds(<{[4x i8],i32,[4x i8]}>,<{[4x i8],i32,[4x i8]}>*@C,i64 0,i32 2,i64 0),%Q],[getelementptr inbounds(<{[4x i8],i32,[4x i8]}>,<{[4x i8],i32,[4x i8]}>*@C,i64 0,i32 2,i64 0),%R],[getelementptr inbounds(<{[4x i8],i32,[4x i8]}>,<{[4x i8],i32,[4x i8]}>*@C,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__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__SQLite3Backend9wordValueE(i8*inreg%a)#4 gc"smlsharp"{
ret i8*null
}
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__SQLite3Backend11real32ValueE(i8*inreg%a)#4 gc"smlsharp"{
ret i8*null
}
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*@_SMLLN27SMLSharp__SQL__SQLite3Backend8readTextE_106(i8*inreg%o)
store i8*%y,i8**%b,align 8
%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=load i8*,i8**%b,align 8
%D=bitcast i8*%z to i8**
store i8*%C,i8**%D,align 8
%E=getelementptr inbounds i8,i8*%z,i64 8
%F=bitcast i8*%E to i32*
store i32 1,i32*%F,align 4
ret i8*%z
}
define fastcc i8*@_SMLFN27SMLSharp__SQL__SQLite3Backend9charValueE(i8*inreg%a)#4 gc"smlsharp"{
ret i8*null
}
define fastcc i8*@_SMLFN27SMLSharp__SQL__SQLite3Backend9boolValueE(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__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*@_SMLLN27SMLSharp__SQL__SQLite3Backend7connectE_169(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*@_SMLLN27SMLSharp__SQL__SQLite3Backend9closeConnE_170(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*@_SMLLN27SMLSharp__SQL__SQLite3Backend9execQueryE_171(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*@_SMLLN27SMLSharp__SQL__SQLite3Backend8closeResE_172(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*@_SMLLN27SMLSharp__SQL__SQLite3Backend5fetchE_173(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*@_SMLLN27SMLSharp__SQL__SQLite3Backend8getValueE_174(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*@_SMLLN27SMLSharp__SQL__SQLite3Backend17getDatabaseSchemaE_179(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*@_SMLLN27SMLSharp__SQL__SQLite3Backend14columnTypeNameE_180(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*@_SMLLN27SMLSharp__SQL__SQLite3Backend8intValueE_181(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*@_SMLLN27SMLSharp__SQL__SQLite3Backend11intInfValueE_182(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*@_SMLLN27SMLSharp__SQL__SQLite3Backend9wordValueE_183(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
ret i8*null
}
define internal fastcc i8*@_SMLLN27SMLSharp__SQL__SQLite3Backend9realValueE_184(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*@_SMLLN27SMLSharp__SQL__SQLite3Backend11real32ValueE_185(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
ret i8*null
}
define internal fastcc i8*@_SMLLN27SMLSharp__SQL__SQLite3Backend11stringValueE_186(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*@_SMLLN27SMLSharp__SQL__SQLite3Backend9charValueE_187(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
ret i8*null
}
define internal fastcc i8*@_SMLLN27SMLSharp__SQL__SQLite3Backend9boolValueE_188(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
ret i8*null
}
define internal fastcc i8*@_SMLLN27SMLSharp__SQL__SQLite3Backend14timestampValueE_189(i8*inreg%a,i8*inreg%b)#4 gc"smlsharp"{
ret i8*null
}
define internal fastcc i8*@_SMLLN27SMLSharp__SQL__SQLite3Backend12numericValueE_190(i8*inreg%a,i8*inreg%b)#2 gc"smlsharp"{
%c=tail call fastcc i8*@_SMLFN27SMLSharp__SQL__SQLite3Backend12numericValueE(i8*inreg%b)
ret i8*%c
}
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}
