; LLVM IR from ibr-ds/STANlite :: Enclave/sqlite (legacy)

; 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 = external hidden unnamed_addr constant [1 x i8], align 1
@sqlite3CtypeMap = external constant [0 x i8], align 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) #0 {
  %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
  %21 = 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) #4
  store i32 0, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  store ptr null, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  store ptr null, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = call i32 @sqlite3SafetyCheckOk(ptr noundef %22)
  %24 = icmp ne i32 %23, 0
  br i1 %24, label %27, label %25

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

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

30:                                               ; preds = %27
  store ptr @.str, ptr %8, align 8, !tbaa !5
  br label %31

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

36:                                               ; preds = %199, %197, %31
  %37 = load i32, ptr %12, align 4, !tbaa !9
  %38 = icmp eq i32 %37, 0
  br i1 %38, label %39, label %45

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

45:                                               ; preds = %39, %36
  %46 = phi i1 [ false, %36 ], [ %44, %39 ]
  br i1 %46, label %47, label %200

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

53:                                               ; preds = %47
  store i32 2, ptr %17, align 4
  br label %197, !llvm.loop !20

54:                                               ; preds = %47
  %55 = load ptr, ptr %14, align 8, !tbaa !5
  %56 = icmp ne ptr %55, null
  br i1 %56, label %59, label %57

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

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

62:                                               ; preds = %193, %59
  br label %63

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

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

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

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

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

83:                                               ; preds = %77, %68
  %84 = load i32, ptr %16, align 4, !tbaa !9
  %85 = icmp ne i32 %84, 0
  br i1 %85, label %114, label %86

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

96:                                               ; preds = %86
  store i32 6, ptr %17, align 4
  br label %191

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

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

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

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

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

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

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

122:                                              ; preds = %148, %117
  %123 = load i32, ptr %20, align 4, !tbaa !9
  %124 = load i32, ptr %18, align 4, !tbaa !9
  %125 = icmp slt i32 %123, %124
  br i1 %125, label %126, label %151

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

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

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

147:                                              ; preds = %140, %126
  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 %122, !llvm.loop !24

151:                                              ; preds = %122
  %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, %114
  %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, %77, %74, %71, %63
  %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 [0 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, %145, %96
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  %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 %62

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, %57, %53
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  %198 = load i32, ptr %17, align 4
  switch i32 %198, label %251 [
    i32 0, label %199
    i32 2, label %36
    i32 6, label %201
  ]

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

200:                                              ; preds = %45
  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 %240

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

218:                                              ; preds = %215
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  %219 = load ptr, ptr %7, align 8, !tbaa !5
  %220 = call ptr @sqlite3_errmsg(ptr noundef %219)
  %221 = call i32 @sqlite3Strlen30(ptr noundef %220)
  %222 = add nsw i32 1, %221
  store i32 %222, ptr %21, align 4, !tbaa !9
  %223 = load i32, ptr %21, align 4, !tbaa !9
  %224 = sext i32 %223 to i64
  %225 = call ptr @sqlite3Malloc(i64 noundef %224)
  %226 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %225, ptr %226, align 8, !tbaa !5
  %227 = load ptr, ptr %11, align 8, !tbaa !5
  %228 = load ptr, ptr %227, align 8, !tbaa !5
  %229 = icmp ne ptr %228, null
  br i1 %229, label %230, label %237

230:                                              ; preds = %218
  %231 = load ptr, ptr %11, align 8, !tbaa !5
  %232 = load ptr, ptr %231, align 8, !tbaa !5
  %233 = load ptr, ptr %7, align 8, !tbaa !5
  %234 = call ptr @sqlite3_errmsg(ptr noundef %233)
  %235 = load i32, ptr %21, align 4, !tbaa !9
  %236 = sext i32 %235 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %232, ptr align 1 %234, i64 %236, i1 false)
  br label %239

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

239:                                              ; preds = %237, %230
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  br label %246

240:                                              ; preds = %215, %207
  %241 = load ptr, ptr %11, align 8, !tbaa !5
  %242 = icmp ne ptr %241, null
  br i1 %242, label %243, label %245

243:                                              ; preds = %240
  %244 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr null, ptr %244, align 8, !tbaa !5
  br label %245

245:                                              ; preds = %243, %240
  br label %246

246:                                              ; preds = %245, %239
  %247 = load ptr, ptr %7, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.sqlite3, ptr %247, i32 0, i32 3
  %249 = load ptr, ptr %248, align 8, !tbaa !11
  call void @sqlite3_mutex_leave(ptr noundef %249)
  %250 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %250, ptr %6, align 4
  store i32 1, ptr %17, align 4
  br label %251

251:                                              ; preds = %246, %197, %25
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  %252 = load i32, ptr %6, align 4
  ret i32 %252
}

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

declare i32 @sqlite3SafetyCheckOk(ptr noundef) #2

declare i32 @sqlite3MisuseError(i32 noundef) #2

declare void @sqlite3_mutex_enter(ptr noundef) #2

declare void @sqlite3Error(ptr noundef, i32 noundef) #2

declare i32 @sqlite3_prepare_v2(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2

declare i32 @sqlite3_column_count(ptr noundef) #2

declare i32 @sqlite3_step(ptr noundef) #2

declare ptr @sqlite3DbMallocRaw(ptr noundef, i64 noundef) #2

declare ptr @sqlite3_column_name(ptr noundef, i32 noundef) #2

declare ptr @sqlite3_column_text(ptr noundef, i32 noundef) #2

declare i32 @sqlite3_column_type(ptr noundef, i32 noundef) #2

declare void @sqlite3OomFault(ptr noundef) #2

declare i32 @sqlite3VdbeFinalize(ptr noundef) #2

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

declare void @sqlite3DbFree(ptr noundef, ptr noundef) #2

declare i32 @sqlite3ApiExit(ptr noundef, i32 noundef) #2

declare i32 @sqlite3Strlen30(ptr noundef) #2

declare ptr @sqlite3_errmsg(ptr noundef) #2

declare ptr @sqlite3Malloc(i64 noundef) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

declare void @sqlite3_mutex_leave(ptr noundef) #2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 = external hidden unnamed_addr constant [1 x i8], align 1
@sqlite3CtypeMap = external local_unnamed_addr constant [0 x i8], align 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 #0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  store ptr null, ptr %7, align 8, !tbaa !5
  %8 = tail call i32 @sqlite3SafetyCheckOk(ptr noundef %0) #4
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %9, label %11

9:                                                ; preds = %5
  %10 = tail call i32 @sqlite3MisuseError(i32 noundef 43) #4
  br label %121

11:                                               ; preds = %5
  %12 = icmp eq ptr %1, null
  %spec.store.select = select i1 %12, ptr @.str, 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) #4
  tail call void @sqlite3Error(ptr noundef %0, i32 noundef 0) #4
  %.not114 = icmp eq ptr %2, null
  %15 = getelementptr inbounds i8, ptr %0, i64 44
  br i1 %.not114, label %.split170.us, label %.split170

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

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

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

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

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

29:                                               ; preds = %22
  call void @sqlite3DbFree(ptr noundef %0, ptr noundef null) #4
  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
  %.293.us = phi i32 [ %38, %29 ], [ 0, %30 ]
  %.4.us = phi ptr [ %.278.us, %29 ], [ %31, %30 ]
  %33 = icmp eq i32 %.293.us, 0
  br i1 %33, label %.split170.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) #4
  %.not118.us.us = icmp eq i32 %36, 100
  br i1 %.not118.us.us, label %34, label %.thread129.split.us.us

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

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

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

43:                                               ; preds = %41
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %.not113 = icmp eq ptr %44, null
  br i1 %.not113, 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) #4
  %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.count183 = zext nneg i32 %47 to i64
  br label %54

54:                                               ; preds = %87, %.split
  %.187 = phi ptr [ null, %.split ], [ %.288127, %87 ]
  %55 = phi i1 [ false, %.split ], [ true, %87 ]
  %.not116 = phi i1 [ true, %.split ], [ false, %87 ]
  %.074 = phi ptr [ null, %.split ], [ %71, %87 ]
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = call i32 @sqlite3_step(ptr noundef %56) #4
  %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 %.thread129.split, label %61

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

64:                                               ; preds = %54
  br i1 %.not116, label %.thread, label %.thread125

.thread:                                          ; preds = %61, %64
  %65 = call ptr @sqlite3DbMallocRaw(ptr noundef %0, i64 noundef %51) #4
  %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) #4
  %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 %.thread125, label %.thread188

.thread125:                                       ; preds = %64, %._crit_edge
  %.288127 = phi ptr [ %65, %._crit_edge ], [ %.187, %64 ]
  %71 = getelementptr inbounds ptr, ptr %.288127, i64 %53
  br i1 %52, label %.lr.ph167, label %.loopexit

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

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

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

80:                                               ; preds = %.lr.ph167, %76
  %indvars.iv.next181 = add nuw nsw i64 %indvars.iv180, 1
  %exitcond184.not = icmp eq i64 %indvars.iv.next181, %wide.trip.count183
  br i1 %exitcond184.not, label %.loopexit, label %.lr.ph167, !llvm.loop !24

.loopexit:                                        ; preds = %80, %.thread125
  %.1.lcssa = phi i32 [ 0, %.thread125 ], [ %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 %.288127) #4
  %.not117 = icmp eq i32 %83, 0
  br i1 %.not117, label %87, label %.loopexit202

.thread188:                                       ; preds = %._crit_edge
  %84 = call i32 %2(ptr noundef %3, i32 noundef %47, ptr noundef %.074, ptr noundef nonnull %65) #4
  %.not117191 = icmp eq i32 %84, 0
  br i1 %.not117191, label %.thread129.split, label %.loopexit202

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

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

.thread129.split:                                 ; preds = %59, %61, %87, %.thread188
  %.389134 = phi ptr [ %65, %.thread188 ], [ %.187, %59 ], [ %.187, %61 ], [ %.288127, %87 ]
  %88 = load ptr, ptr %7, align 8, !tbaa !5
  %89 = call i32 @sqlite3VdbeFinalize(ptr noundef %88) #4
  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
  %.278 = phi ptr [ %90, %.thread129.split ], [ %97, %91 ]
  %92 = load i8, ptr %.278, align 1, !tbaa !18
  %93 = zext i8 %92 to i64
  %94 = getelementptr inbounds [0 x i8], ptr @sqlite3CtypeMap, i64 0, i64 %93
  %95 = load i8, ptr %94, align 1, !tbaa !18
  %96 = and i8 %95, 1
  %.not119 = icmp eq i8 %96, 0
  %97 = getelementptr inbounds i8, ptr %.278, i64 1
  br i1 %.not119, label %98, label %91, !llvm.loop !21

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

99:                                               ; preds = %98, %45
  %.293 = phi i32 [ %89, %98 ], [ 0, %45 ]
  %.4 = phi ptr [ %.278, %98 ], [ %46, %45 ]
  %100 = icmp eq i32 %.293, 0
  br i1 %100, label %.split170, label %.critedge

.critedge:                                        ; preds = %41, %99, %.split170, %.thread, %17, %32, %.split170.us, %79, %.loopexit202
  %.394 = phi i32 [ 4, %.loopexit202 ], [ 100, %79 ], [ %18, %17 ], [ %.293.us, %32 ], [ 0, %.split170.us ], [ %57, %.thread ], [ %42, %41 ], [ %.293, %99 ], [ 0, %.split170 ]
  %.6 = phi ptr [ %.288128193, %.loopexit202 ], [ %.288127, %79 ], [ null, %.split170.us ], [ null, %32 ], [ null, %17 ], [ null, %.thread ], [ null, %.split170 ], [ null, %99 ], [ null, %41 ]
  %101 = load ptr, ptr %7, align 8, !tbaa !5
  %.not122 = icmp eq ptr %101, null
  br i1 %.not122, label %104, label %102

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

104:                                              ; preds = %102, %.critedge
  call void @sqlite3DbFree(ptr noundef %0, ptr noundef %.6) #4
  %105 = call i32 @sqlite3ApiExit(ptr noundef %0, i32 noundef %.394) #4
  %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 %117

108:                                              ; preds = %104
  %109 = call ptr @sqlite3_errmsg(ptr noundef %0) #4
  %110 = call i32 @sqlite3Strlen30(ptr noundef %109) #4
  %111 = add nsw i32 %110, 1
  %112 = sext i32 %111 to i64
  %113 = call ptr @sqlite3Malloc(i64 noundef %112) #4
  store ptr %113, ptr %4, align 8, !tbaa !5
  %.not123 = icmp eq ptr %113, null
  br i1 %.not123, label %116, label %114

114:                                              ; preds = %108
  %115 = call ptr @sqlite3_errmsg(ptr noundef %0) #4
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %113, ptr align 1 %115, i64 %112, i1 false)
  br label %119

116:                                              ; preds = %108
  call void @sqlite3Error(ptr noundef %0, i32 noundef 7) #4
  br label %119

117:                                              ; preds = %104
  br i1 %107, label %118, label %119

118:                                              ; preds = %117
  store ptr null, ptr %4, align 8, !tbaa !5
  br label %119

119:                                              ; preds = %114, %116, %117, %118
  %.596 = phi i32 [ %105, %118 ], [ %105, %117 ], [ %105, %114 ], [ 7, %116 ]
  %120 = load ptr, ptr %13, align 8, !tbaa !9
  call void @sqlite3_mutex_leave(ptr noundef %120) #4
  br label %121

121:                                              ; preds = %119, %9
  %.0 = phi i32 [ %.596, %119 ], [ %10, %9 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  ret i32 %.0
}

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

declare i32 @sqlite3SafetyCheckOk(ptr noundef) local_unnamed_addr #2

declare i32 @sqlite3MisuseError(i32 noundef) local_unnamed_addr #2

declare void @sqlite3_mutex_enter(ptr noundef) local_unnamed_addr #2

declare void @sqlite3Error(ptr noundef, i32 noundef) local_unnamed_addr #2

declare i32 @sqlite3_prepare_v2(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @sqlite3_column_count(ptr noundef) local_unnamed_addr #2

declare i32 @sqlite3_step(ptr noundef) local_unnamed_addr #2

declare ptr @sqlite3DbMallocRaw(ptr noundef, i64 noundef) local_unnamed_addr #2

declare ptr @sqlite3_column_name(ptr noundef, i32 noundef) local_unnamed_addr #2

declare ptr @sqlite3_column_text(ptr noundef, i32 noundef) local_unnamed_addr #2

declare i32 @sqlite3_column_type(ptr noundef, i32 noundef) local_unnamed_addr #2

declare void @sqlite3OomFault(ptr noundef) local_unnamed_addr #2

declare i32 @sqlite3VdbeFinalize(ptr noundef) local_unnamed_addr #2

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

declare void @sqlite3DbFree(ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @sqlite3ApiExit(ptr noundef, i32 noundef) local_unnamed_addr #2

declare i32 @sqlite3Strlen30(ptr noundef) local_unnamed_addr #2

declare ptr @sqlite3_errmsg(ptr noundef) local_unnamed_addr #2

declare ptr @sqlite3Malloc(i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

declare void @sqlite3_mutex_leave(ptr noundef) local_unnamed_addr #2

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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