; LLVM IR from gigimushroom/DatabaseBackendEngine :: src/sqlite (sqlite3)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.sqlite3 = type { ptr, ptr, ptr, ptr, ptr, i32, i32, i64, i64, i32, i32, i32, i32, i16, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i32, i32, i32, i32, [12 x i32], i32, %struct.sqlite3InitInfo, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %union.anon, %struct.Lookaside, ptr, ptr, ptr, ptr, i32, i32, %struct.Hash, ptr, ptr, ptr, %struct.Hash, %struct.Hash, %struct.BusyHandler, [2 x %struct.Db], ptr, i32, i32, i32, i64, i64, ptr }
%struct.sqlite3InitInfo = type { i32, i8, i8, i8, i8 }
%union.anon = type { double }
%struct.Lookaside = type { i32, i16, i8, i32, i32, [3 x i32], ptr, ptr, ptr }
%struct.Hash = type { i32, i32, ptr, ptr }
%struct.BusyHandler = type { ptr, ptr, i32 }
%struct.Db = type { ptr, ptr, i8, i8, ptr }

@.str.14 = external hidden unnamed_addr constant [1 x i8], align 1
@sqlite3CtypeMap = external hidden constant [256 x i8], align 16

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @sqlite3MisuseError(i32 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @sqlite3_mutex_enter(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @sqlite3_mutex_leave(ptr noundef) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind uwtable
declare hidden void @sqlite3DbFree(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare hidden void @sqlite3Error(ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare hidden i32 @sqlite3VdbeFinalize(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare hidden i32 @sqlite3ApiExit(ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare hidden void @sqlite3OomFault(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @sqlite3_step(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare hidden ptr @sqlite3DbStrDup(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @sqlite3_column_count(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @sqlite3_column_text(ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @sqlite3_column_type(ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @sqlite3_column_name(ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare hidden ptr @sqlite3DbMallocRaw(ptr noundef, i64 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @sqlite3_exec(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #1 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #2
  store i32 0, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #2
  store ptr null, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #2
  store ptr null, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #2
  %21 = load ptr, ptr %7, align 8, !tbaa !5
  %22 = call i32 @sqlite3SafetyCheckOk(ptr noundef %21)
  %23 = icmp ne i32 %22, 0
  br i1 %23, label %26, label %24

24:                                               ; preds = %5
  %25 = call i32 @sqlite3MisuseError(i32 noundef 111652)
  store i32 %25, ptr %6, align 4
  store i32 1, ptr %17, align 4
  br label %239

26:                                               ; preds = %5
  %27 = load ptr, ptr %8, align 8, !tbaa !5
  %28 = icmp eq ptr %27, null
  br i1 %28, label %29, label %30

29:                                               ; preds = %26
  store ptr @.str.14, ptr %8, align 8, !tbaa !5
  br label %30

30:                                               ; preds = %29, %26
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.sqlite3, ptr %31, i32 0, i32 3
  %33 = load ptr, ptr %32, align 8, !tbaa !11
  call void @sqlite3_mutex_enter(ptr noundef %33)
  %34 = load ptr, ptr %7, align 8, !tbaa !5
  call void @sqlite3Error(ptr noundef %34, i32 noundef 0)
  br label %35

35:                                               ; preds = %198, %196, %30
  %36 = load i32, ptr %12, align 4, !tbaa !9
  %37 = icmp eq i32 %36, 0
  br i1 %37, label %38, label %44

38:                                               ; preds = %35
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %39, i64 0
  %41 = load i8, ptr %40, align 1, !tbaa !19
  %42 = sext i8 %41 to i32
  %43 = icmp ne i32 %42, 0
  br label %44

44:                                               ; preds = %38, %35
  %45 = phi i1 [ false, %35 ], [ %43, %38 ]
  br i1 %45, label %46, label %199

46:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #2
  store ptr null, ptr %19, align 8, !tbaa !5
  store ptr null, ptr %14, align 8, !tbaa !5
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = call i32 @sqlite3_prepare_v2(ptr noundef %47, ptr noundef %48, i32 noundef -1, ptr noundef %14, ptr noundef %13)
  store i32 %49, ptr %12, align 4, !tbaa !9
  %50 = load i32, ptr %12, align 4, !tbaa !9
  %51 = icmp ne i32 %50, 0
  br i1 %51, label %52, label %53

52:                                               ; preds = %46
  store i32 2, ptr %17, align 4
  br label %196, !llvm.loop !20

53:                                               ; preds = %46
  %54 = load ptr, ptr %14, align 8, !tbaa !5
  %55 = icmp ne ptr %54, null
  br i1 %55, label %58, label %56

56:                                               ; preds = %53
  %57 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %57, ptr %8, align 8, !tbaa !5
  store i32 2, ptr %17, align 4
  br label %196, !llvm.loop !20

58:                                               ; preds = %53
  store i32 0, ptr %16, align 4, !tbaa !9
  %59 = load ptr, ptr %14, align 8, !tbaa !5
  %60 = call i32 @sqlite3_column_count(ptr noundef %59)
  store i32 %60, ptr %18, align 4, !tbaa !9
  br label %61

61:                                               ; preds = %192, %58
  br label %62

62:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #2
  %63 = load ptr, ptr %14, align 8, !tbaa !5
  %64 = call i32 @sqlite3_step(ptr noundef %63)
  store i32 %64, ptr %12, align 4, !tbaa !9
  %65 = load ptr, ptr %9, align 8, !tbaa !5
  %66 = icmp ne ptr %65, null
  br i1 %66, label %67, label %168

67:                                               ; preds = %62
  %68 = load i32, ptr %12, align 4, !tbaa !9
  %69 = icmp eq i32 100, %68
  br i1 %69, label %82, label %70

70:                                               ; preds = %67
  %71 = load i32, ptr %12, align 4, !tbaa !9
  %72 = icmp eq i32 101, %71
  br i1 %72, label %73, label %168

73:                                               ; preds = %70
  %74 = load i32, ptr %16, align 4, !tbaa !9
  %75 = icmp ne i32 %74, 0
  br i1 %75, label %168, label %76

76:                                               ; preds = %73
  %77 = load ptr, ptr %7, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.sqlite3, ptr %77, i32 0, i32 6
  %79 = load i32, ptr %78, align 4, !tbaa !22
  %80 = and i32 %79, 256
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %82, label %168

82:                                               ; preds = %76, %67
  %83 = load i32, ptr %16, align 4, !tbaa !9
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %113, label %85

85:                                               ; preds = %82
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = load i32, ptr %18, align 4, !tbaa !9
  %88 = mul nsw i32 2, %87
  %89 = add nsw i32 %88, 1
  %90 = sext i32 %89 to i64
  %91 = mul i64 %90, 8
  %92 = call ptr @sqlite3DbMallocRaw(ptr noundef %86, i64 noundef %91)
  store ptr %92, ptr %15, align 8, !tbaa !5
  %93 = load ptr, ptr %15, align 8, !tbaa !5
  %94 = icmp eq ptr %93, null
  br i1 %94, label %95, label %96

95:                                               ; preds = %85
  store i32 6, ptr %17, align 4
  br label %190

96:                                               ; preds = %85
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %97

97:                                               ; preds = %109, %96
  %98 = load i32, ptr %20, align 4, !tbaa !9
  %99 = load i32, ptr %18, align 4, !tbaa !9
  %100 = icmp slt i32 %98, %99
  br i1 %100, label %101, label %112

101:                                              ; preds = %97
  %102 = load ptr, ptr %14, align 8, !tbaa !5
  %103 = load i32, ptr %20, align 4, !tbaa !9
  %104 = call ptr @sqlite3_column_name(ptr noundef %102, i32 noundef %103)
  %105 = load ptr, ptr %15, align 8, !tbaa !5
  %106 = load i32, ptr %20, align 4, !tbaa !9
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds ptr, ptr %105, i64 %107
  store ptr %104, ptr %108, align 8, !tbaa !5
  br label %109

109:                                              ; preds = %101
  %110 = load i32, ptr %20, align 4, !tbaa !9
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %20, align 4, !tbaa !9
  br label %97, !llvm.loop !23

112:                                              ; preds = %97
  store i32 1, ptr %16, align 4, !tbaa !9
  br label %113

113:                                              ; preds = %112, %82
  %114 = load i32, ptr %12, align 4, !tbaa !9
  %115 = icmp eq i32 %114, 100
  br i1 %115, label %116, label %155

116:                                              ; preds = %113
  %117 = load ptr, ptr %15, align 8, !tbaa !5
  %118 = load i32, ptr %18, align 4, !tbaa !9
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds ptr, ptr %117, i64 %119
  store ptr %120, ptr %19, align 8, !tbaa !5
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %121

121:                                              ; preds = %147, %116
  %122 = load i32, ptr %20, align 4, !tbaa !9
  %123 = load i32, ptr %18, align 4, !tbaa !9
  %124 = icmp slt i32 %122, %123
  br i1 %124, label %125, label %150

125:                                              ; preds = %121
  %126 = load ptr, ptr %14, align 8, !tbaa !5
  %127 = load i32, ptr %20, align 4, !tbaa !9
  %128 = call ptr @sqlite3_column_text(ptr noundef %126, i32 noundef %127)
  %129 = load ptr, ptr %19, align 8, !tbaa !5
  %130 = load i32, ptr %20, align 4, !tbaa !9
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds ptr, ptr %129, i64 %131
  store ptr %128, ptr %132, align 8, !tbaa !5
  %133 = load ptr, ptr %19, align 8, !tbaa !5
  %134 = load i32, ptr %20, align 4, !tbaa !9
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds ptr, ptr %133, i64 %135
  %137 = load ptr, ptr %136, align 8, !tbaa !5
  %138 = icmp ne ptr %137, null
  br i1 %138, label %146, label %139

139:                                              ; preds = %125
  %140 = load ptr, ptr %14, align 8, !tbaa !5
  %141 = load i32, ptr %20, align 4, !tbaa !9
  %142 = call i32 @sqlite3_column_type(ptr noundef %140, i32 noundef %141)
  %143 = icmp ne i32 %142, 5
  br i1 %143, label %144, label %146

144:                                              ; preds = %139
  %145 = load ptr, ptr %7, align 8, !tbaa !5
  call void @sqlite3OomFault(ptr noundef %145)
  store i32 6, ptr %17, align 4
  br label %190

146:                                              ; preds = %139, %125
  br label %147

147:                                              ; preds = %146
  %148 = load i32, ptr %20, align 4, !tbaa !9
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr %20, align 4, !tbaa !9
  br label %121, !llvm.loop !24

150:                                              ; preds = %121
  %151 = load ptr, ptr %19, align 8, !tbaa !5
  %152 = load i32, ptr %20, align 4, !tbaa !9
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds ptr, ptr %151, i64 %153
  store ptr null, ptr %154, align 8, !tbaa !5
  br label %155

155:                                              ; preds = %150, %113
  %156 = load ptr, ptr %9, align 8, !tbaa !5
  %157 = load ptr, ptr %10, align 8, !tbaa !5
  %158 = load i32, ptr %18, align 4, !tbaa !9
  %159 = load ptr, ptr %19, align 8, !tbaa !5
  %160 = load ptr, ptr %15, align 8, !tbaa !5
  %161 = call i32 %156(ptr noundef %157, i32 noundef %158, ptr noundef %159, ptr noundef %160)
  %162 = icmp ne i32 %161, 0
  br i1 %162, label %163, label %167

163:                                              ; preds = %155
  store i32 4, ptr %12, align 4, !tbaa !9
  %164 = load ptr, ptr %14, align 8, !tbaa !5
  %165 = call i32 @sqlite3VdbeFinalize(ptr noundef %164)
  store ptr null, ptr %14, align 8, !tbaa !5
  %166 = load ptr, ptr %7, align 8, !tbaa !5
  call void @sqlite3Error(ptr noundef %166, i32 noundef 4)
  store i32 6, ptr %17, align 4
  br label %190

167:                                              ; preds = %155
  br label %168

168:                                              ; preds = %167, %76, %73, %70, %62
  %169 = load i32, ptr %12, align 4, !tbaa !9
  %170 = icmp ne i32 %169, 100
  br i1 %170, label %171, label %189

171:                                              ; preds = %168
  %172 = load ptr, ptr %14, align 8, !tbaa !5
  %173 = call i32 @sqlite3VdbeFinalize(ptr noundef %172)
  store i32 %173, ptr %12, align 4, !tbaa !9
  store ptr null, ptr %14, align 8, !tbaa !5
  %174 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %174, ptr %8, align 8, !tbaa !5
  br label %175

175:                                              ; preds = %185, %171
  %176 = load ptr, ptr %8, align 8, !tbaa !5
  %177 = getelementptr inbounds i8, ptr %176, i64 0
  %178 = load i8, ptr %177, align 1, !tbaa !19
  %179 = zext i8 %178 to i64
  %180 = getelementptr inbounds [256 x i8], ptr @sqlite3CtypeMap, i64 0, i64 %179
  %181 = load i8, ptr %180, align 1, !tbaa !19
  %182 = zext i8 %181 to i32
  %183 = and i32 %182, 1
  %184 = icmp ne i32 %183, 0
  br i1 %184, label %185, label %188

185:                                              ; preds = %175
  %186 = load ptr, ptr %8, align 8, !tbaa !5
  %187 = getelementptr inbounds i8, ptr %186, i32 1
  store ptr %187, ptr %8, align 8, !tbaa !5
  br label %175, !llvm.loop !25

188:                                              ; preds = %175
  store i32 5, ptr %17, align 4
  br label %190

189:                                              ; preds = %168
  store i32 0, ptr %17, align 4
  br label %190

190:                                              ; preds = %189, %188, %163, %144, %95
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #2
  %191 = load i32, ptr %17, align 4
  switch i32 %191, label %196 [
    i32 0, label %192
    i32 5, label %193
  ]

192:                                              ; preds = %190
  br label %61

193:                                              ; preds = %190
  %194 = load ptr, ptr %7, align 8, !tbaa !5
  %195 = load ptr, ptr %15, align 8, !tbaa !5
  call void @sqlite3DbFree(ptr noundef %194, ptr noundef %195)
  store ptr null, ptr %15, align 8, !tbaa !5
  store i32 0, ptr %17, align 4
  br label %196

196:                                              ; preds = %193, %190, %56, %52
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #2
  %197 = load i32, ptr %17, align 4
  switch i32 %197, label %239 [
    i32 0, label %198
    i32 2, label %35
    i32 6, label %200
  ]

198:                                              ; preds = %196
  br label %35, !llvm.loop !20

199:                                              ; preds = %44
  br label %200

200:                                              ; preds = %199, %196
  %201 = load ptr, ptr %14, align 8, !tbaa !5
  %202 = icmp ne ptr %201, null
  br i1 %202, label %203, label %206

203:                                              ; preds = %200
  %204 = load ptr, ptr %14, align 8, !tbaa !5
  %205 = call i32 @sqlite3VdbeFinalize(ptr noundef %204)
  br label %206

206:                                              ; preds = %203, %200
  %207 = load ptr, ptr %7, align 8, !tbaa !5
  %208 = load ptr, ptr %15, align 8, !tbaa !5
  call void @sqlite3DbFree(ptr noundef %207, ptr noundef %208)
  %209 = load ptr, ptr %7, align 8, !tbaa !5
  %210 = load i32, ptr %12, align 4, !tbaa !9
  %211 = call i32 @sqlite3ApiExit(ptr noundef %209, i32 noundef %210)
  store i32 %211, ptr %12, align 4, !tbaa !9
  %212 = load i32, ptr %12, align 4, !tbaa !9
  %213 = icmp ne i32 %212, 0
  br i1 %213, label %214, label %228

214:                                              ; preds = %206
  %215 = load ptr, ptr %11, align 8, !tbaa !5
  %216 = icmp ne ptr %215, null
  br i1 %216, label %217, label %228

217:                                              ; preds = %214
  %218 = load ptr, ptr %7, align 8, !tbaa !5
  %219 = call ptr @sqlite3_errmsg(ptr noundef %218)
  %220 = call ptr @sqlite3DbStrDup(ptr noundef null, ptr noundef %219)
  %221 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %220, ptr %221, align 8, !tbaa !5
  %222 = load ptr, ptr %11, align 8, !tbaa !5
  %223 = load ptr, ptr %222, align 8, !tbaa !5
  %224 = icmp eq ptr %223, null
  br i1 %224, label %225, label %227

225:                                              ; preds = %217
  store i32 7, ptr %12, align 4, !tbaa !9
  %226 = load ptr, ptr %7, align 8, !tbaa !5
  call void @sqlite3Error(ptr noundef %226, i32 noundef 7)
  br label %227

227:                                              ; preds = %225, %217
  br label %234

228:                                              ; preds = %214, %206
  %229 = load ptr, ptr %11, align 8, !tbaa !5
  %230 = icmp ne ptr %229, null
  br i1 %230, label %231, label %233

231:                                              ; preds = %228
  %232 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr null, ptr %232, align 8, !tbaa !5
  br label %233

233:                                              ; preds = %231, %228
  br label %234

234:                                              ; preds = %233, %227
  %235 = load ptr, ptr %7, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.sqlite3, ptr %235, i32 0, i32 3
  %237 = load ptr, ptr %236, align 8, !tbaa !11
  call void @sqlite3_mutex_leave(ptr noundef %237)
  %238 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %238, ptr %6, align 4
  store i32 1, ptr %17, align 4
  br label %239

239:                                              ; preds = %234, %196, %24
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #2
  %240 = load i32, ptr %6, align 4
  ret i32 %240
}

; Function Attrs: nounwind uwtable
declare hidden i32 @sqlite3SafetyCheckOk(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @sqlite3_prepare_v2(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @sqlite3_errmsg(ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 24}
!12 = !{!"sqlite3", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !10, i64 40, !10, i64 44, !13, i64 48, !13, i64 56, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !14, i64 80, !7, i64 82, !7, i64 83, !7, i64 84, !7, i64 85, !7, i64 86, !7, i64 87, !7, i64 88, !7, i64 89, !7, i64 90, !7, i64 91, !7, i64 92, !7, i64 93, !7, i64 94, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !7, i64 112, !10, i64 160, !15, i64 164, !10, i64 172, !10, i64 176, !10, i64 180, !10, i64 184, !10, i64 188, !10, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !7, i64 336, !16, i64 344, !6, i64 400, !6, i64 408, !6, i64 416, !6, i64 424, !10, i64 432, !10, i64 436, !17, i64 440, !6, i64 464, !6, i64 472, !6, i64 480, !17, i64 488, !17, i64 512, !18, i64 536, !7, i64 560, !6, i64 624, !10, i64 632, !10, i64 636, !10, i64 640, !13, i64 648, !13, i64 656, !6, i64 664}
!13 = !{!"long long", !7, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{!"sqlite3InitInfo", !10, i64 0, !7, i64 4, !7, i64 5, !7, i64 6, !7, i64 7}
!16 = !{!"Lookaside", !10, i64 0, !14, i64 4, !7, i64 6, !10, i64 8, !10, i64 12, !7, i64 16, !6, i64 32, !6, i64 40, !6, i64 48}
!17 = !{!"Hash", !10, i64 0, !10, i64 4, !6, i64 8, !6, i64 16}
!18 = !{!"BusyHandler", !6, i64 0, !6, i64 8, !10, i64 16}
!19 = !{!7, !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!12, !10, i64 44}
!23 = distinct !{!23, !21}
!24 = distinct !{!24, !21}
!25 = distinct !{!25, !21}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str.14 = external hidden unnamed_addr constant [1 x i8], align 1
@sqlite3CtypeMap = external hidden local_unnamed_addr constant [256 x i8], align 16

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @sqlite3MisuseError(i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @sqlite3_mutex_enter(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @sqlite3_mutex_leave(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind uwtable
declare hidden void @sqlite3DbFree(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden void @sqlite3Error(ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden i32 @sqlite3VdbeFinalize(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden i32 @sqlite3ApiExit(ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden void @sqlite3OomFault(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @sqlite3_step(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden ptr @sqlite3DbStrDup(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @sqlite3_column_count(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @sqlite3_column_text(ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @sqlite3_column_type(ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @sqlite3_column_name(ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden ptr @sqlite3DbMallocRaw(ptr noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local i32 @sqlite3_exec(ptr noundef %0, ptr noundef %1, ptr noundef readonly %2, ptr noundef %3, ptr noundef writeonly %4) local_unnamed_addr #1 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #2
  store ptr null, ptr %7, align 8, !tbaa !5
  %8 = tail call i32 @sqlite3SafetyCheckOk(ptr noundef %0)
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %9, label %11

9:                                                ; preds = %5
  %10 = tail call i32 @sqlite3MisuseError(i32 noundef 111652)
  br label %117

11:                                               ; preds = %5
  %12 = icmp eq ptr %1, null
  %spec.store.select = select i1 %12, ptr @.str.14, ptr %1
  %13 = getelementptr inbounds i8, ptr %0, i64 24
  %14 = load ptr, ptr %13, align 8, !tbaa !9
  tail call void @sqlite3_mutex_enter(ptr noundef %14)
  tail call void @sqlite3Error(ptr noundef %0, i32 noundef 0)
  %.not108 = icmp eq ptr %2, null
  %15 = getelementptr inbounds i8, ptr %0, i64 44
  br i1 %.not108, label %.split163.us, label %.split163

.split163.us:                                     ; preds = %11, %32
  %.087162.us = phi ptr [ %.491.us, %32 ], [ %spec.store.select, %11 ]
  %16 = load i8, ptr %.087162.us, align 1, !tbaa !18
  %.not105.us = icmp eq i8 %16, 0
  br i1 %.not105.us, label %.critedge, label %17

17:                                               ; preds = %.split163.us
  store ptr null, ptr %7, align 8, !tbaa !5
  %18 = call i32 @sqlite3_prepare_v2(ptr noundef %0, ptr noundef nonnull %.087162.us, i32 noundef -1, ptr noundef nonnull %7, ptr noundef nonnull %6)
  %.not106.us = icmp eq i32 %18, 0
  br i1 %.not106.us, label %19, label %.critedge, !llvm.loop !19

19:                                               ; preds = %17
  %20 = load ptr, ptr %7, align 8, !tbaa !5
  %.not107.us = icmp eq ptr %20, null
  br i1 %.not107.us, label %30, label %.split.us.us

.split.us.us:                                     ; preds = %19
  %21 = call i32 @sqlite3_column_count(ptr noundef nonnull %20)
  br label %34

22:                                               ; preds = %.thread122.split.us.us, %22
  %.289.us = phi ptr [ %39, %.thread122.split.us.us ], [ %28, %22 ]
  %23 = load i8, ptr %.289.us, align 1, !tbaa !18
  %24 = zext i8 %23 to i64
  %25 = getelementptr inbounds [256 x i8], ptr @sqlite3CtypeMap, i64 0, i64 %24
  %26 = load i8, ptr %25, align 1, !tbaa !18
  %27 = and i8 %26, 1
  %.not113.us = icmp eq i8 %27, 0
  %28 = getelementptr inbounds i8, ptr %.289.us, i64 1
  br i1 %.not113.us, label %29, label %22, !llvm.loop !21

29:                                               ; preds = %22
  call void @sqlite3DbFree(ptr noundef %0, ptr noundef null)
  br label %32

30:                                               ; preds = %19
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  br label %32, !llvm.loop !19

32:                                               ; preds = %30, %29
  %.491.us = phi ptr [ %.289.us, %29 ], [ %31, %30 ]
  %.284.us = phi i32 [ %38, %29 ], [ 0, %30 ]
  %33 = icmp eq i32 %.284.us, 0
  br i1 %33, label %.split163.us, label %.critedge

34:                                               ; preds = %34, %.split.us.us
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = call i32 @sqlite3_step(ptr noundef %35)
  %.not112.us.us = icmp eq i32 %36, 100
  br i1 %.not112.us.us, label %34, label %.thread122.split.us.us

.thread122.split.us.us:                           ; preds = %34
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = call i32 @sqlite3VdbeFinalize(ptr noundef %37)
  store ptr null, ptr %7, align 8, !tbaa !5
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  br label %22

.split163:                                        ; preds = %11, %99
  %.087162 = phi ptr [ %.491, %99 ], [ %spec.store.select, %11 ]
  %40 = load i8, ptr %.087162, align 1, !tbaa !18
  %.not105 = icmp eq i8 %40, 0
  br i1 %.not105, label %.critedge, label %41

41:                                               ; preds = %.split163
  store ptr null, ptr %7, align 8, !tbaa !5
  %42 = call i32 @sqlite3_prepare_v2(ptr noundef %0, ptr noundef nonnull %.087162, i32 noundef -1, ptr noundef nonnull %7, ptr noundef nonnull %6)
  %.not106 = icmp eq i32 %42, 0
  br i1 %.not106, label %43, label %.critedge, !llvm.loop !19

43:                                               ; preds = %41
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %.not107 = icmp eq ptr %44, null
  br i1 %.not107, label %45, label %.split

45:                                               ; preds = %43
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  br label %99, !llvm.loop !19

.split:                                           ; preds = %43
  %47 = call i32 @sqlite3_column_count(ptr noundef nonnull %44)
  %48 = shl nsw i32 %47, 1
  %49 = or disjoint i32 %48, 1
  %50 = sext i32 %49 to i64
  %51 = shl nsw i64 %50, 3
  %52 = icmp sgt i32 %47, 0
  %53 = sext i32 %47 to i64
  %wide.trip.count = zext nneg i32 %47 to i64
  %wide.trip.count176 = zext nneg i32 %47 to i64
  br label %54

54:                                               ; preds = %87, %.split
  %.179 = phi ptr [ null, %.split ], [ %.280120, %87 ]
  %55 = phi i1 [ false, %.split ], [ true, %87 ]
  %.not110 = phi i1 [ true, %.split ], [ false, %87 ]
  %.069 = phi ptr [ null, %.split ], [ %71, %87 ]
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = call i32 @sqlite3_step(ptr noundef %56)
  %58 = icmp eq i32 %57, 100
  br i1 %58, label %64, label %59

59:                                               ; preds = %54
  %60 = icmp ne i32 %57, 101
  %or.cond = or i1 %60, %55
  br i1 %or.cond, label %.thread122.split, label %61

61:                                               ; preds = %59
  %62 = load i32, ptr %15, align 4, !tbaa !22
  %63 = and i32 %62, 256
  %.not109 = icmp eq i32 %63, 0
  br i1 %.not109, label %.thread122.split, label %.thread

64:                                               ; preds = %54
  br i1 %.not110, label %.thread, label %.thread118

.thread:                                          ; preds = %61, %64
  %65 = call ptr @sqlite3DbMallocRaw(ptr noundef %0, i64 noundef %51)
  %66 = icmp eq ptr %65, null
  br i1 %66, label %.critedge, label %.preheader

.preheader:                                       ; preds = %.thread
  br i1 %52, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.preheader ]
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = trunc nuw nsw i64 %indvars.iv to i32
  %69 = call ptr @sqlite3_column_name(ptr noundef %67, i32 noundef %68)
  %70 = getelementptr inbounds ptr, ptr %65, i64 %indvars.iv
  store ptr %69, ptr %70, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !23

._crit_edge:                                      ; preds = %.lr.ph, %.preheader
  br i1 %58, label %.thread118, label %.thread181

.thread118:                                       ; preds = %64, %._crit_edge
  %.280120 = phi ptr [ %65, %._crit_edge ], [ %.179, %64 ]
  %71 = getelementptr inbounds ptr, ptr %.280120, i64 %53
  br i1 %52, label %.lr.ph160, label %.loopexit

.lr.ph160:                                        ; preds = %.thread118, %80
  %indvars.iv173 = phi i64 [ %indvars.iv.next174, %80 ], [ 0, %.thread118 ]
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = trunc nuw nsw i64 %indvars.iv173 to i32
  %74 = call ptr @sqlite3_column_text(ptr noundef %72, i32 noundef %73)
  %75 = getelementptr inbounds ptr, ptr %71, i64 %indvars.iv173
  store ptr %74, ptr %75, align 8, !tbaa !5
  %.not114 = icmp eq ptr %74, null
  br i1 %.not114, label %76, label %80

76:                                               ; preds = %.lr.ph160
  %77 = load ptr, ptr %7, align 8, !tbaa !5
  %78 = call i32 @sqlite3_column_type(ptr noundef %77, i32 noundef %73)
  %.not115 = icmp eq i32 %78, 5
  br i1 %.not115, label %80, label %79

79:                                               ; preds = %76
  call void @sqlite3OomFault(ptr noundef %0)
  br label %.critedge

80:                                               ; preds = %.lr.ph160, %76
  %indvars.iv.next174 = add nuw nsw i64 %indvars.iv173, 1
  %exitcond177.not = icmp eq i64 %indvars.iv.next174, %wide.trip.count176
  br i1 %exitcond177.not, label %.loopexit, label %.lr.ph160, !llvm.loop !24

.loopexit:                                        ; preds = %80, %.thread118
  %.1.lcssa = phi i32 [ 0, %.thread118 ], [ %47, %80 ]
  %81 = zext nneg i32 %.1.lcssa to i64
  %82 = getelementptr inbounds ptr, ptr %71, i64 %81
  store ptr null, ptr %82, align 8, !tbaa !5
  %83 = call i32 %2(ptr noundef %3, i32 noundef %47, ptr noundef %71, ptr noundef %.280120) #2
  %.not111 = icmp eq i32 %83, 0
  br i1 %.not111, label %87, label %.loopexit195

.thread181:                                       ; preds = %._crit_edge
  %84 = call i32 %2(ptr noundef %3, i32 noundef %47, ptr noundef %.069, ptr noundef nonnull %65) #2
  %.not111184 = icmp eq i32 %84, 0
  br i1 %.not111184, label %.thread122.split, label %.loopexit195

.loopexit195:                                     ; preds = %.thread181, %.loopexit
  %.280121186 = phi ptr [ %.280120, %.loopexit ], [ %65, %.thread181 ]
  %85 = load ptr, ptr %7, align 8, !tbaa !5
  %86 = call i32 @sqlite3VdbeFinalize(ptr noundef %85)
  store ptr null, ptr %7, align 8, !tbaa !5
  call void @sqlite3Error(ptr noundef %0, i32 noundef 4)
  br label %.critedge

87:                                               ; preds = %.loopexit
  br i1 %58, label %54, label %.thread122.split

.thread122.split:                                 ; preds = %59, %61, %87, %.thread181
  %.381127 = phi ptr [ %65, %.thread181 ], [ %.179, %59 ], [ %.179, %61 ], [ %.280120, %87 ]
  %88 = load ptr, ptr %7, align 8, !tbaa !5
  %89 = call i32 @sqlite3VdbeFinalize(ptr noundef %88)
  store ptr null, ptr %7, align 8, !tbaa !5
  %90 = load ptr, ptr %6, align 8, !tbaa !5
  br label %91

91:                                               ; preds = %91, %.thread122.split
  %.289 = phi ptr [ %90, %.thread122.split ], [ %97, %91 ]
  %92 = load i8, ptr %.289, align 1, !tbaa !18
  %93 = zext i8 %92 to i64
  %94 = getelementptr inbounds [256 x i8], ptr @sqlite3CtypeMap, i64 0, i64 %93
  %95 = load i8, ptr %94, align 1, !tbaa !18
  %96 = and i8 %95, 1
  %.not113 = icmp eq i8 %96, 0
  %97 = getelementptr inbounds i8, ptr %.289, i64 1
  br i1 %.not113, label %98, label %91, !llvm.loop !21

98:                                               ; preds = %91
  call void @sqlite3DbFree(ptr noundef %0, ptr noundef %.381127)
  br label %99

99:                                               ; preds = %98, %45
  %.491 = phi ptr [ %.289, %98 ], [ %46, %45 ]
  %.284 = phi i32 [ %89, %98 ], [ 0, %45 ]
  %100 = icmp eq i32 %.284, 0
  br i1 %100, label %.split163, label %.critedge

.critedge:                                        ; preds = %41, %99, %.split163, %.thread, %17, %32, %.split163.us, %79, %.loopexit195
  %.385 = phi i32 [ 4, %.loopexit195 ], [ 100, %79 ], [ %18, %17 ], [ %.284.us, %32 ], [ 0, %.split163.us ], [ %57, %.thread ], [ %42, %41 ], [ %.284, %99 ], [ 0, %.split163 ]
  %.6 = phi ptr [ %.280121186, %.loopexit195 ], [ %.280120, %79 ], [ null, %.split163.us ], [ null, %32 ], [ null, %17 ], [ null, %.thread ], [ null, %.split163 ], [ null, %99 ], [ null, %41 ]
  %101 = load ptr, ptr %7, align 8, !tbaa !5
  %.not116 = icmp eq ptr %101, null
  br i1 %.not116, label %104, label %102

102:                                              ; preds = %.critedge
  %103 = call i32 @sqlite3VdbeFinalize(ptr noundef nonnull %101)
  br label %104

104:                                              ; preds = %102, %.critedge
  call void @sqlite3DbFree(ptr noundef %0, ptr noundef %.6)
  %105 = call i32 @sqlite3ApiExit(ptr noundef %0, i32 noundef %.385)
  %106 = icmp ne i32 %105, 0
  %107 = icmp ne ptr %4, null
  %or.cond3 = and i1 %107, %106
  br i1 %or.cond3, label %108, label %113

108:                                              ; preds = %104
  %109 = call ptr @sqlite3_errmsg(ptr noundef %0)
  %110 = call ptr @sqlite3DbStrDup(ptr noundef null, ptr noundef %109)
  store ptr %110, ptr %4, align 8, !tbaa !5
  %111 = icmp eq ptr %110, null
  br i1 %111, label %112, label %115

112:                                              ; preds = %108
  call void @sqlite3Error(ptr noundef %0, i32 noundef 7)
  br label %115

113:                                              ; preds = %104
  br i1 %107, label %114, label %115

114:                                              ; preds = %113
  store ptr null, ptr %4, align 8, !tbaa !5
  br label %115

115:                                              ; preds = %113, %114, %108, %112
  %.486 = phi i32 [ 7, %112 ], [ %105, %108 ], [ %105, %114 ], [ %105, %113 ]
  %116 = load ptr, ptr %13, align 8, !tbaa !9
  call void @sqlite3_mutex_leave(ptr noundef %116)
  br label %117

117:                                              ; preds = %115, %9
  %.071 = phi i32 [ %.486, %115 ], [ %10, %9 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #2
  ret i32 %.071
}

; Function Attrs: nounwind uwtable
declare hidden i32 @sqlite3SafetyCheckOk(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @sqlite3_prepare_v2(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @sqlite3_errmsg(ptr noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 24}
!10 = !{!"sqlite3", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !11, i64 40, !11, i64 44, !12, i64 48, !12, i64 56, !11, i64 64, !11, i64 68, !11, i64 72, !11, i64 76, !13, i64 80, !7, i64 82, !7, i64 83, !7, i64 84, !7, i64 85, !7, i64 86, !7, i64 87, !7, i64 88, !7, i64 89, !7, i64 90, !7, i64 91, !7, i64 92, !7, i64 93, !7, i64 94, !11, i64 96, !11, i64 100, !11, i64 104, !11, i64 108, !7, i64 112, !11, i64 160, !14, i64 164, !11, i64 172, !11, i64 176, !11, i64 180, !11, i64 184, !11, i64 188, !11, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !7, i64 336, !15, i64 344, !6, i64 400, !6, i64 408, !6, i64 416, !6, i64 424, !11, i64 432, !11, i64 436, !16, i64 440, !6, i64 464, !6, i64 472, !6, i64 480, !16, i64 488, !16, i64 512, !17, i64 536, !7, i64 560, !6, i64 624, !11, i64 632, !11, i64 636, !11, i64 640, !12, i64 648, !12, i64 656, !6, i64 664}
!11 = !{!"int", !7, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = !{!"short", !7, i64 0}
!14 = !{!"sqlite3InitInfo", !11, i64 0, !7, i64 4, !7, i64 5, !7, i64 6, !7, i64 7}
!15 = !{!"Lookaside", !11, i64 0, !13, i64 4, !7, i64 6, !11, i64 8, !11, i64 12, !7, i64 16, !6, i64 32, !6, i64 40, !6, i64 48}
!16 = !{!"Hash", !11, i64 0, !11, i64 4, !6, i64 8, !6, i64 16}
!17 = !{!"BusyHandler", !6, i64 0, !6, i64 8, !11, i64 16}
!18 = !{!7, !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = !{!10, !11, i64 44}
!23 = distinct !{!23, !20}
!24 = distinct !{!24, !20}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass