; LLVM IR from eProsima/Fast-DDS :: src/cpp/rtps/persistence (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, i64, i32, i32, i32, i32, i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i32, i64, i64, [12 x i32], i32, %struct.sqlite3InitInfo, i32, i32, i32, i32, i32, i32, ptr, %union.anon, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %union.anon.0, %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, i32, i64, i64, ptr, ptr }
%struct.sqlite3InitInfo = type { i32, i8, i8, i8, ptr }
%union.anon = type { ptr }
%union.anon.0 = type { double }
%struct.Lookaside = type { i32, i16, i16, i8, i32, [3 x i32], ptr, ptr, ptr, ptr, ptr, 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.4 = 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 dso_local i32 @sqlite3_prepare_v2(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @sqlite3_step(ptr 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 137107)
  store i32 %25, ptr %6, align 4
  store i32 1, ptr %17, align 4
  br label %240

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.4, 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 = %199, %197, %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 %200

46:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #2
  store i32 0, ptr %18, align 4, !tbaa !9
  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 %197, !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 %197, !llvm.loop !20

58:                                               ; preds = %53
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %59

59:                                               ; preds = %193, %58
  br label %60

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

65:                                               ; preds = %60
  %66 = load i32, ptr %12, align 4, !tbaa !9
  %67 = icmp eq i32 100, %66
  br i1 %67, label %80, label %68

68:                                               ; preds = %65
  %69 = load i32, ptr %12, align 4, !tbaa !9
  %70 = icmp eq i32 101, %69
  br i1 %70, label %71, label %169

71:                                               ; preds = %68
  %72 = load i32, ptr %16, align 4, !tbaa !9
  %73 = icmp ne i32 %72, 0
  br i1 %73, label %169, label %74

74:                                               ; preds = %71
  %75 = load ptr, ptr %7, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.sqlite3, ptr %75, i32 0, i32 7
  %77 = load i64, ptr %76, align 8, !tbaa !22
  %78 = and i64 %77, 256
  %79 = icmp ne i64 %78, 0
  br i1 %79, label %80, label %169

80:                                               ; preds = %74, %65
  %81 = load i32, ptr %16, align 4, !tbaa !9
  %82 = icmp ne i32 %81, 0
  br i1 %82, label %113, label %83

83:                                               ; preds = %80
  %84 = load ptr, ptr %14, align 8, !tbaa !5
  %85 = call i32 @sqlite3_column_count(ptr noundef %84)
  store i32 %85, ptr %18, align 4, !tbaa !9
  %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 = %83
  store i32 6, ptr %17, align 4
  br label %191

96:                                               ; preds = %83
  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, %80
  %114 = load i32, ptr %12, align 4, !tbaa !9
  %115 = icmp eq i32 %114, 100
  br i1 %115, label %116, label %156

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 = %148, %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 %151

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 %147, 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 %147

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

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

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

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

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

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

168:                                              ; preds = %156
  br label %169

169:                                              ; preds = %168, %74, %71, %68, %60
  %170 = load i32, ptr %12, align 4, !tbaa !9
  %171 = icmp ne i32 %170, 100
  br i1 %171, label %172, label %190

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

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

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

189:                                              ; preds = %176
  store i32 5, ptr %17, align 4
  br label %191

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

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

193:                                              ; preds = %191
  br label %59

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

197:                                              ; preds = %194, %191, %56, %52
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #2
  %198 = load i32, ptr %17, align 4
  switch i32 %198, label %240 [
    i32 0, label %199
    i32 2, label %35
    i32 6, label %201
  ]

199:                                              ; preds = %197
  br label %35, !llvm.loop !20

200:                                              ; preds = %44
  br label %201

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

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

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

215:                                              ; preds = %207
  %216 = load ptr, ptr %11, align 8, !tbaa !5
  %217 = icmp ne ptr %216, null
  br i1 %217, label %218, label %229

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

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

228:                                              ; preds = %226, %218
  br label %235

229:                                              ; preds = %215, %207
  %230 = load ptr, ptr %11, align 8, !tbaa !5
  %231 = icmp ne ptr %230, null
  br i1 %231, label %232, label %234

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

234:                                              ; preds = %232, %229
  br label %235

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

240:                                              ; preds = %235, %197, %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
  %241 = load i32, ptr %6, align 4
  ret i32 %241
}

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

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

; Function Attrs: nounwind uwtable
declare hidden ptr @sqlite3OomFault(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 i32 @sqlite3VdbeFinalize(ptr noundef) #1

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

; Function Attrs: nounwind uwtable
declare hidden ptr @sqlite3DbMallocRaw(ptr noundef, i64 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, !13, i64 64, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !7, i64 100, !7, i64 101, !7, i64 102, !7, i64 103, !7, i64 104, !7, i64 105, !7, i64 106, !7, i64 107, !7, i64 108, !7, i64 109, !7, i64 110, !7, i64 111, !7, i64 112, !7, i64 113, !10, i64 116, !13, i64 120, !13, i64 128, !7, i64 136, !10, i64 184, !14, i64 192, !10, i64 208, !10, i64 212, !10, i64 216, !10, i64 220, !10, i64 224, !10, i64 228, !6, i64 232, !7, 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, !6, i64 336, !6, i64 344, !6, i64 352, !6, i64 360, !6, i64 368, !6, i64 376, !6, i64 384, !6, i64 392, !7, i64 400, !15, i64 408, !6, i64 504, !6, i64 512, !6, i64 520, !6, i64 528, !10, i64 536, !10, i64 540, !17, i64 544, !6, i64 568, !6, i64 576, !6, i64 584, !17, i64 592, !17, i64 616, !18, i64 640, !7, i64 664, !6, i64 728, !10, i64 736, !10, i64 740, !10, i64 744, !10, i64 748, !13, i64 752, !13, i64 760, !6, i64 768, !6, i64 776}
!13 = !{!"long long", !7, i64 0}
!14 = !{!"sqlite3InitInfo", !10, i64 0, !7, i64 4, !7, i64 5, !10, i64 6, !10, i64 6, !10, i64 6, !6, i64 8}
!15 = !{!"Lookaside", !10, i64 0, !16, i64 4, !16, i64 6, !7, i64 8, !10, i64 12, !7, i64 16, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88}
!16 = !{!"short", !7, i64 0}
!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, !13, i64 48}
!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.4 = 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 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 i32 @sqlite3_step(ptr 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 137107)
  br label %117

11:                                               ; preds = %5
  %12 = icmp eq ptr %1, null
  %spec.store.select = select i1 %12, ptr @.str.4, 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)
  %.not112 = icmp eq ptr %2, null
  %15 = getelementptr inbounds i8, ptr %0, i64 48
  br i1 %.not112, label %.split.us, label %.split

.split.us:                                        ; preds = %11, %31
  %.091174.us = phi ptr [ %.495.us, %31 ], [ %spec.store.select, %11 ]
  %16 = load i8, ptr %.091174.us, align 1, !tbaa !18
  %.not109.us = icmp eq i8 %16, 0
  br i1 %.not109.us, label %.critedge, label %17

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

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

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

28:                                               ; preds = %21
  call void @sqlite3DbFree(ptr noundef %0, ptr noundef null)
  br label %31

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

31:                                               ; preds = %29, %28
  %.495.us = phi ptr [ %.293.us, %28 ], [ %30, %29 ]
  %.287.us = phi i32 [ %36, %28 ], [ 0, %29 ]
  %32 = icmp eq i32 %.287.us, 0
  br i1 %32, label %.split.us, label %.critedge

.preheader164.us:                                 ; preds = %19, %.preheader164.us
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = call i32 @sqlite3_step(ptr noundef %33)
  %.not116.us.us = icmp eq i32 %34, 100
  br i1 %.not116.us.us, label %.preheader164.us, label %.thread129.split.us.us

.thread129.split.us.us:                           ; preds = %.preheader164.us
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = call i32 @sqlite3VdbeFinalize(ptr noundef %35)
  store ptr null, ptr %7, align 8, !tbaa !5
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  br label %21

.split:                                           ; preds = %11, %99
  %.091174 = phi ptr [ %.495, %99 ], [ %spec.store.select, %11 ]
  %38 = load i8, ptr %.091174, align 1, !tbaa !18
  %.not109 = icmp eq i8 %38, 0
  br i1 %.not109, label %.critedge, label %39

39:                                               ; preds = %.split
  store ptr null, ptr %7, align 8, !tbaa !5
  %40 = call i32 @sqlite3_prepare_v2(ptr noundef %0, ptr noundef nonnull %.091174, i32 noundef -1, ptr noundef nonnull %7, ptr noundef nonnull %6)
  %.not110 = icmp eq i32 %40, 0
  br i1 %.not110, label %41, label %.critedge, !llvm.loop !19

41:                                               ; preds = %39
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %.not111 = icmp eq ptr %42, null
  br i1 %.not111, label %43, label %.preheader164

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

.preheader164:                                    ; preds = %41, %87
  %.182 = phi ptr [ %.283125, %87 ], [ null, %41 ]
  %45 = phi i1 [ true, %87 ], [ false, %41 ]
  %.not114 = phi i1 [ false, %87 ], [ true, %41 ]
  %.071 = phi i32 [ %.172127, %87 ], [ 0, %41 ]
  %.069 = phi ptr [ %69, %87 ], [ null, %41 ]
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = call i32 @sqlite3_step(ptr noundef %46)
  %48 = icmp eq i32 %47, 100
  br i1 %48, label %54, label %49

49:                                               ; preds = %.preheader164
  %50 = icmp ne i32 %47, 101
  %or.cond = or i1 %50, %45
  br i1 %or.cond, label %.thread129.split, label %51

51:                                               ; preds = %49
  %52 = load i64, ptr %15, align 8, !tbaa !22
  %53 = and i64 %52, 256
  %.not113 = icmp eq i64 %53, 0
  br i1 %.not113, label %.thread129.split, label %.thread

54:                                               ; preds = %.preheader164
  br i1 %.not114, label %.thread, label %.thread122

.thread:                                          ; preds = %51, %54
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  %56 = call i32 @sqlite3_column_count(ptr noundef %55)
  %57 = shl nsw i32 %56, 1
  %58 = or disjoint i32 %57, 1
  %59 = sext i32 %58 to i64
  %60 = shl nsw i64 %59, 3
  %61 = call ptr @sqlite3DbMallocRaw(ptr noundef %0, i64 noundef %60)
  %62 = icmp eq ptr %61, null
  br i1 %62, label %.critedge, label %.preheader

.preheader:                                       ; preds = %.thread
  %63 = icmp sgt i32 %56, 0
  br i1 %63, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.preheader
  %wide.trip.count = zext nneg i32 %56 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = trunc nuw nsw i64 %indvars.iv to i32
  %66 = call ptr @sqlite3_column_name(ptr noundef %64, i32 noundef %65)
  %67 = getelementptr inbounds ptr, ptr %61, i64 %indvars.iv
  store ptr %66, ptr %67, 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 %48, label %.thread122, label %.thread192

.thread122:                                       ; preds = %54, %._crit_edge
  %.172127 = phi i32 [ %56, %._crit_edge ], [ %.071, %54 ]
  %.283125 = phi ptr [ %61, %._crit_edge ], [ %.182, %54 ]
  %68 = sext i32 %.172127 to i64
  %69 = getelementptr inbounds ptr, ptr %.283125, i64 %68
  %70 = icmp sgt i32 %.172127, 0
  br i1 %70, label %.lr.ph172.preheader, label %.loopexit

.lr.ph172.preheader:                              ; preds = %.thread122
  %wide.trip.count187 = zext nneg i32 %.172127 to i64
  br label %.lr.ph172

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

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

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

80:                                               ; preds = %.lr.ph172, %75
  %indvars.iv.next185 = add nuw nsw i64 %indvars.iv184, 1
  %exitcond188.not = icmp eq i64 %indvars.iv.next185, %wide.trip.count187
  br i1 %exitcond188.not, label %.loopexit, label %.lr.ph172, !llvm.loop !24

.loopexit:                                        ; preds = %80, %.thread122
  %.1.lcssa = phi i32 [ 0, %.thread122 ], [ %.172127, %80 ]
  %81 = zext nneg i32 %.1.lcssa to i64
  %82 = getelementptr inbounds ptr, ptr %69, i64 %81
  store ptr null, ptr %82, align 8, !tbaa !5
  %83 = call i32 %2(ptr noundef %3, i32 noundef %.172127, ptr noundef %69, ptr noundef nonnull %.283125) #2
  %.not115 = icmp eq i32 %83, 0
  br i1 %.not115, label %87, label %.loopexit209

.thread192:                                       ; preds = %._crit_edge
  %84 = call i32 %2(ptr noundef %3, i32 noundef %56, ptr noundef %.069, ptr noundef nonnull %61) #2
  %.not115196 = icmp eq i32 %84, 0
  br i1 %.not115196, label %.thread129.split, label %.loopexit209

.loopexit209:                                     ; preds = %.thread192, %.loopexit
  %.283126199 = phi ptr [ %.283125, %.loopexit ], [ %61, %.thread192 ]
  %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 %48, label %.preheader164, label %.thread129.split

.thread129.split:                                 ; preds = %49, %51, %87, %.thread192
  %.384135 = phi ptr [ %61, %.thread192 ], [ %.182, %49 ], [ %.182, %51 ], [ %.283125, %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, %.thread129.split
  %.293 = phi ptr [ %90, %.thread129.split ], [ %97, %91 ]
  %92 = load i8, ptr %.293, 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
  %.not117 = icmp eq i8 %96, 0
  %97 = getelementptr inbounds i8, ptr %.293, i64 1
  br i1 %.not117, label %98, label %91, !llvm.loop !21

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

99:                                               ; preds = %98, %43
  %.495 = phi ptr [ %.293, %98 ], [ %44, %43 ]
  %.287 = phi i32 [ %89, %98 ], [ 0, %43 ]
  %100 = icmp eq i32 %.287, 0
  br i1 %100, label %.split, label %.critedge

.critedge:                                        ; preds = %39, %99, %.split, %.thread, %17, %31, %.split.us, %78, %.loopexit209
  %.388 = phi i32 [ 4, %.loopexit209 ], [ 100, %78 ], [ %18, %17 ], [ %.287.us, %31 ], [ 0, %.split.us ], [ %47, %.thread ], [ %40, %39 ], [ %.287, %99 ], [ 0, %.split ]
  %.6 = phi ptr [ %.283126199, %.loopexit209 ], [ %.283125, %78 ], [ null, %.split.us ], [ null, %31 ], [ null, %17 ], [ null, %.thread ], [ null, %.split ], [ null, %99 ], [ null, %39 ]
  %101 = load ptr, ptr %7, align 8, !tbaa !5
  %.not120 = icmp eq ptr %101, null
  br i1 %.not120, 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 %.388)
  %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
  %.489 = 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
  %.090 = phi i32 [ %.489, %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 %.090
}

; Function Attrs: nounwind uwtable
declare hidden void @sqlite3Error(ptr noundef, i32 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 ptr @sqlite3OomFault(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 i32 @sqlite3VdbeFinalize(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden i32 @sqlite3SafetyCheckOk(ptr 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
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, !12, i64 64, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !11, i64 88, !11, i64 92, !11, i64 96, !7, i64 100, !7, i64 101, !7, i64 102, !7, i64 103, !7, i64 104, !7, i64 105, !7, i64 106, !7, i64 107, !7, i64 108, !7, i64 109, !7, i64 110, !7, i64 111, !7, i64 112, !7, i64 113, !11, i64 116, !12, i64 120, !12, i64 128, !7, i64 136, !11, i64 184, !13, i64 192, !11, i64 208, !11, i64 212, !11, i64 216, !11, i64 220, !11, i64 224, !11, i64 228, !6, i64 232, !7, 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, !6, i64 336, !6, i64 344, !6, i64 352, !6, i64 360, !6, i64 368, !6, i64 376, !6, i64 384, !6, i64 392, !7, i64 400, !14, i64 408, !6, i64 504, !6, i64 512, !6, i64 520, !6, i64 528, !11, i64 536, !11, i64 540, !16, i64 544, !6, i64 568, !6, i64 576, !6, i64 584, !16, i64 592, !16, i64 616, !17, i64 640, !7, i64 664, !6, i64 728, !11, i64 736, !11, i64 740, !11, i64 744, !11, i64 748, !12, i64 752, !12, i64 760, !6, i64 768, !6, i64 776}
!11 = !{!"int", !7, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = !{!"sqlite3InitInfo", !11, i64 0, !7, i64 4, !7, i64 5, !11, i64 6, !11, i64 6, !11, i64 6, !6, i64 8}
!14 = !{!"Lookaside", !11, i64 0, !15, i64 4, !15, i64 6, !7, i64 8, !11, i64 12, !7, i64 16, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88}
!15 = !{!"short", !7, i64 0}
!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, !12, i64 48}
!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