; LLVM IR from HassenSaidi/IC_sqlite :: src (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.Sqlite3Config = type { i32, i8, i8, i8, i8, i8, i8, i32, i32, i32, i32, i32, %struct.sqlite3_mem_methods, %struct.sqlite3_mutex_methods, %struct.sqlite3_pcache_methods2, ptr, i32, i32, i32, i64, i64, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32 }
%struct.sqlite3_mem_methods = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.sqlite3_mutex_methods = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.sqlite3_pcache_methods2 = type { i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.sqlite3 = type { ptr, ptr, ptr, ptr, ptr, i32, i32, i64, i64, i64, i32, 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, %union.anon, 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 }
%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 }
%struct.Hash = type { i32, i32, ptr, ptr }
%struct.BusyHandler = type { ptr, ptr, i32 }
%struct.Db = type { ptr, ptr, i8, i8, ptr }
%struct.LookasideSlot = type { ptr }
%struct.Schema = type { i32, i32, %struct.Hash, %struct.Hash, %struct.Hash, %struct.Hash, ptr, i8, i8, i16, i32 }
%struct.HashElem = type { ptr, ptr, ptr, ptr }
%struct.Vdbe = type { ptr, ptr, ptr, ptr, i16, i32, i32, i32, i32, i32, i32, i32, i32, i64, i64, i64, i64, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, ptr, ptr, ptr, i64, i16, i8, i8, i8, i8, i16, i32, i32, [7 x i32], ptr, ptr, ptr, ptr, i32, i32, ptr, ptr }

@sqlite3Config = external hidden global %struct.Sqlite3Config, align 8

; 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 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
define dso_local i32 @sqlite3_db_status(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) #1 {
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca ptr, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store i32 %4, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #2
  store i32 0, ptr %11, align 4, !tbaa !9
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.sqlite3, ptr %27, i32 0, i32 3
  %29 = load ptr, ptr %28, align 8, !tbaa !11
  call void @sqlite3_mutex_enter(ptr noundef %29)
  %30 = load i32, ptr %7, align 4, !tbaa !9
  switch i32 %30, label %379 [
    i32 0, label %31
    i32 4, label %108
    i32 5, label %108
    i32 6, label %108
    i32 11, label %130
    i32 1, label %130
    i32 2, label %174
    i32 3, label %301
    i32 12, label %325
    i32 7, label %326
    i32 8, label %326
    i32 9, label %326
    i32 10, label %364
  ]

31:                                               ; preds = %5
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = load ptr, ptr %9, align 8, !tbaa !5
  %34 = call i32 @sqlite3LookasideUsed(ptr noundef %32, ptr noundef %33)
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  store i32 %34, ptr %35, align 4, !tbaa !9
  %36 = load i32, ptr %10, align 4, !tbaa !9
  %37 = icmp ne i32 %36, 0
  br i1 %37, label %38, label %107

38:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #2
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.sqlite3, ptr %39, i32 0, i32 61
  %41 = getelementptr inbounds %struct.Lookaside, ptr %40, i32 0, i32 7
  %42 = load ptr, ptr %41, align 8, !tbaa !19
  store ptr %42, ptr %12, align 8, !tbaa !5
  %43 = load ptr, ptr %12, align 8, !tbaa !5
  %44 = icmp ne ptr %43, null
  br i1 %44, label %45, label %72

45:                                               ; preds = %38
  br label %46

46:                                               ; preds = %51, %45
  %47 = load ptr, ptr %12, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.LookasideSlot, ptr %47, i32 0, i32 0
  %49 = load ptr, ptr %48, align 8, !tbaa !20
  %50 = icmp ne ptr %49, null
  br i1 %50, label %51, label %55

51:                                               ; preds = %46
  %52 = load ptr, ptr %12, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.LookasideSlot, ptr %52, i32 0, i32 0
  %54 = load ptr, ptr %53, align 8, !tbaa !20
  store ptr %54, ptr %12, align 8, !tbaa !5
  br label %46, !llvm.loop !22

55:                                               ; preds = %46
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.sqlite3, ptr %56, i32 0, i32 61
  %58 = getelementptr inbounds %struct.Lookaside, ptr %57, i32 0, i32 6
  %59 = load ptr, ptr %58, align 8, !tbaa !24
  %60 = load ptr, ptr %12, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.LookasideSlot, ptr %60, i32 0, i32 0
  store ptr %59, ptr %61, align 8, !tbaa !20
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.sqlite3, ptr %62, i32 0, i32 61
  %64 = getelementptr inbounds %struct.Lookaside, ptr %63, i32 0, i32 7
  %65 = load ptr, ptr %64, align 8, !tbaa !19
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.sqlite3, ptr %66, i32 0, i32 61
  %68 = getelementptr inbounds %struct.Lookaside, ptr %67, i32 0, i32 6
  store ptr %65, ptr %68, align 8, !tbaa !24
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.sqlite3, ptr %69, i32 0, i32 61
  %71 = getelementptr inbounds %struct.Lookaside, ptr %70, i32 0, i32 7
  store ptr null, ptr %71, align 8, !tbaa !19
  br label %72

72:                                               ; preds = %55, %38
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.sqlite3, ptr %73, i32 0, i32 61
  %75 = getelementptr inbounds %struct.Lookaside, ptr %74, i32 0, i32 9
  %76 = load ptr, ptr %75, align 8, !tbaa !25
  store ptr %76, ptr %12, align 8, !tbaa !5
  %77 = load ptr, ptr %12, align 8, !tbaa !5
  %78 = icmp ne ptr %77, null
  br i1 %78, label %79, label %106

79:                                               ; preds = %72
  br label %80

80:                                               ; preds = %85, %79
  %81 = load ptr, ptr %12, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.LookasideSlot, ptr %81, i32 0, i32 0
  %83 = load ptr, ptr %82, align 8, !tbaa !20
  %84 = icmp ne ptr %83, null
  br i1 %84, label %85, label %89

85:                                               ; preds = %80
  %86 = load ptr, ptr %12, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.LookasideSlot, ptr %86, i32 0, i32 0
  %88 = load ptr, ptr %87, align 8, !tbaa !20
  store ptr %88, ptr %12, align 8, !tbaa !5
  br label %80, !llvm.loop !26

89:                                               ; preds = %80
  %90 = load ptr, ptr %6, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.sqlite3, ptr %90, i32 0, i32 61
  %92 = getelementptr inbounds %struct.Lookaside, ptr %91, i32 0, i32 8
  %93 = load ptr, ptr %92, align 8, !tbaa !27
  %94 = load ptr, ptr %12, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.LookasideSlot, ptr %94, i32 0, i32 0
  store ptr %93, ptr %95, align 8, !tbaa !20
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.sqlite3, ptr %96, i32 0, i32 61
  %98 = getelementptr inbounds %struct.Lookaside, ptr %97, i32 0, i32 9
  %99 = load ptr, ptr %98, align 8, !tbaa !25
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.sqlite3, ptr %100, i32 0, i32 61
  %102 = getelementptr inbounds %struct.Lookaside, ptr %101, i32 0, i32 8
  store ptr %99, ptr %102, align 8, !tbaa !27
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.sqlite3, ptr %103, i32 0, i32 61
  %105 = getelementptr inbounds %struct.Lookaside, ptr %104, i32 0, i32 9
  store ptr null, ptr %105, align 8, !tbaa !25
  br label %106

106:                                              ; preds = %89, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #2
  br label %107

107:                                              ; preds = %106, %31
  br label %380

108:                                              ; preds = %5, %5, %5
  %109 = load ptr, ptr %8, align 8, !tbaa !5
  store i32 0, ptr %109, align 4, !tbaa !9
  %110 = load ptr, ptr %6, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.sqlite3, ptr %110, i32 0, i32 61
  %112 = getelementptr inbounds %struct.Lookaside, ptr %111, i32 0, i32 5
  %113 = load i32, ptr %7, align 4, !tbaa !9
  %114 = sub nsw i32 %113, 4
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [3 x i32], ptr %112, i64 0, i64 %115
  %117 = load i32, ptr %116, align 4, !tbaa !9
  %118 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 %117, ptr %118, align 4, !tbaa !9
  %119 = load i32, ptr %10, align 4, !tbaa !9
  %120 = icmp ne i32 %119, 0
  br i1 %120, label %121, label %129

121:                                              ; preds = %108
  %122 = load ptr, ptr %6, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.sqlite3, ptr %122, i32 0, i32 61
  %124 = getelementptr inbounds %struct.Lookaside, ptr %123, i32 0, i32 5
  %125 = load i32, ptr %7, align 4, !tbaa !9
  %126 = sub nsw i32 %125, 4
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [3 x i32], ptr %124, i64 0, i64 %127
  store i32 0, ptr %128, align 4, !tbaa !9
  br label %129

129:                                              ; preds = %121, %108
  br label %380

130:                                              ; preds = %5, %5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #2
  store i32 0, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #2
  %131 = load ptr, ptr %6, align 8, !tbaa !5
  call void @sqlite3BtreeEnterAll(ptr noundef %131)
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %132

132:                                              ; preds = %166, %130
  %133 = load i32, ptr %14, align 4, !tbaa !9
  %134 = load ptr, ptr %6, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.sqlite3, ptr %134, i32 0, i32 5
  %136 = load i32, ptr %135, align 8, !tbaa !28
  %137 = icmp slt i32 %133, %136
  br i1 %137, label %138, label %169

138:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #2
  %139 = load ptr, ptr %6, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.sqlite3, ptr %139, i32 0, i32 4
  %141 = load ptr, ptr %140, align 8, !tbaa !29
  %142 = load i32, ptr %14, align 4, !tbaa !9
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds %struct.Db, ptr %141, i64 %143
  %145 = getelementptr inbounds %struct.Db, ptr %144, i32 0, i32 1
  %146 = load ptr, ptr %145, align 8, !tbaa !30
  store ptr %146, ptr %15, align 8, !tbaa !5
  %147 = load ptr, ptr %15, align 8, !tbaa !5
  %148 = icmp ne ptr %147, null
  br i1 %148, label %149, label %165

149:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #2
  %150 = load ptr, ptr %15, align 8, !tbaa !5
  %151 = call ptr @sqlite3BtreePager(ptr noundef %150)
  store ptr %151, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #2
  %152 = load ptr, ptr %16, align 8, !tbaa !5
  %153 = call i32 @sqlite3PagerMemUsed(ptr noundef %152)
  store i32 %153, ptr %17, align 4, !tbaa !9
  %154 = load i32, ptr %7, align 4, !tbaa !9
  %155 = icmp eq i32 %154, 11
  br i1 %155, label %156, label %161

156:                                              ; preds = %149
  %157 = load i32, ptr %17, align 4, !tbaa !9
  %158 = load ptr, ptr %15, align 8, !tbaa !5
  %159 = call i32 @sqlite3BtreeConnectionCount(ptr noundef %158)
  %160 = sdiv i32 %157, %159
  store i32 %160, ptr %17, align 4, !tbaa !9
  br label %161

161:                                              ; preds = %156, %149
  %162 = load i32, ptr %17, align 4, !tbaa !9
  %163 = load i32, ptr %13, align 4, !tbaa !9
  %164 = add nsw i32 %163, %162
  store i32 %164, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #2
  br label %165

165:                                              ; preds = %161, %138
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #2
  br label %166

166:                                              ; preds = %165
  %167 = load i32, ptr %14, align 4, !tbaa !9
  %168 = add nsw i32 %167, 1
  store i32 %168, ptr %14, align 4, !tbaa !9
  br label %132, !llvm.loop !32

169:                                              ; preds = %132
  %170 = load ptr, ptr %6, align 8, !tbaa !5
  call void @sqlite3BtreeLeaveAll(ptr noundef %170)
  %171 = load i32, ptr %13, align 4, !tbaa !9
  %172 = load ptr, ptr %8, align 8, !tbaa !5
  store i32 %171, ptr %172, align 4, !tbaa !9
  %173 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 0, ptr %173, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #2
  br label %380

174:                                              ; preds = %5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #2
  store i32 0, ptr %19, align 4, !tbaa !9
  %175 = load ptr, ptr %6, align 8, !tbaa !5
  call void @sqlite3BtreeEnterAll(ptr noundef %175)
  %176 = load ptr, ptr %6, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.sqlite3, ptr %176, i32 0, i32 83
  store ptr %19, ptr %177, align 8, !tbaa !33
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %178

178:                                              ; preds = %291, %174
  %179 = load i32, ptr %18, align 4, !tbaa !9
  %180 = load ptr, ptr %6, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.sqlite3, ptr %180, i32 0, i32 5
  %182 = load i32, ptr %181, align 8, !tbaa !28
  %183 = icmp slt i32 %179, %182
  br i1 %183, label %184, label %294

184:                                              ; preds = %178
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #2
  %185 = load ptr, ptr %6, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.sqlite3, ptr %185, i32 0, i32 4
  %187 = load ptr, ptr %186, align 8, !tbaa !29
  %188 = load i32, ptr %18, align 4, !tbaa !9
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds %struct.Db, ptr %187, i64 %189
  %191 = getelementptr inbounds %struct.Db, ptr %190, i32 0, i32 4
  %192 = load ptr, ptr %191, align 8, !tbaa !34
  store ptr %192, ptr %20, align 8, !tbaa !5
  %193 = load ptr, ptr %20, align 8, !tbaa !5
  %194 = icmp ne ptr %193, null
  br i1 %194, label %195, label %290

195:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #2
  %196 = load ptr, ptr getelementptr inbounds (%struct.sqlite3_mem_methods, ptr getelementptr inbounds (%struct.Sqlite3Config, ptr @sqlite3Config, i32 0, i32 12), i32 0, i32 4), align 8, !tbaa !35
  %197 = call i32 %196(i32 noundef 32)
  %198 = load ptr, ptr %20, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.Schema, ptr %198, i32 0, i32 2
  %200 = getelementptr inbounds %struct.Hash, ptr %199, i32 0, i32 1
  %201 = load i32, ptr %200, align 4, !tbaa !40
  %202 = load ptr, ptr %20, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.Schema, ptr %202, i32 0, i32 4
  %204 = getelementptr inbounds %struct.Hash, ptr %203, i32 0, i32 1
  %205 = load i32, ptr %204, align 4, !tbaa !42
  %206 = add i32 %201, %205
  %207 = load ptr, ptr %20, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.Schema, ptr %207, i32 0, i32 3
  %209 = getelementptr inbounds %struct.Hash, ptr %208, i32 0, i32 1
  %210 = load i32, ptr %209, align 4, !tbaa !43
  %211 = add i32 %206, %210
  %212 = load ptr, ptr %20, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.Schema, ptr %212, i32 0, i32 5
  %214 = getelementptr inbounds %struct.Hash, ptr %213, i32 0, i32 1
  %215 = load i32, ptr %214, align 4, !tbaa !44
  %216 = add i32 %211, %215
  %217 = mul i32 %197, %216
  %218 = load i32, ptr %19, align 4, !tbaa !9
  %219 = add i32 %218, %217
  store i32 %219, ptr %19, align 4, !tbaa !9
  %220 = load ptr, ptr %20, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.Schema, ptr %220, i32 0, i32 2
  %222 = getelementptr inbounds %struct.Hash, ptr %221, i32 0, i32 3
  %223 = load ptr, ptr %222, align 8, !tbaa !45
  %224 = call i64 @sqlite3_msize(ptr noundef %223)
  %225 = load i32, ptr %19, align 4, !tbaa !9
  %226 = sext i32 %225 to i64
  %227 = add i64 %226, %224
  %228 = trunc i64 %227 to i32
  store i32 %228, ptr %19, align 4, !tbaa !9
  %229 = load ptr, ptr %20, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.Schema, ptr %229, i32 0, i32 4
  %231 = getelementptr inbounds %struct.Hash, ptr %230, i32 0, i32 3
  %232 = load ptr, ptr %231, align 8, !tbaa !46
  %233 = call i64 @sqlite3_msize(ptr noundef %232)
  %234 = load i32, ptr %19, align 4, !tbaa !9
  %235 = sext i32 %234 to i64
  %236 = add i64 %235, %233
  %237 = trunc i64 %236 to i32
  store i32 %237, ptr %19, align 4, !tbaa !9
  %238 = load ptr, ptr %20, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.Schema, ptr %238, i32 0, i32 3
  %240 = getelementptr inbounds %struct.Hash, ptr %239, i32 0, i32 3
  %241 = load ptr, ptr %240, align 8, !tbaa !47
  %242 = call i64 @sqlite3_msize(ptr noundef %241)
  %243 = load i32, ptr %19, align 4, !tbaa !9
  %244 = sext i32 %243 to i64
  %245 = add i64 %244, %242
  %246 = trunc i64 %245 to i32
  store i32 %246, ptr %19, align 4, !tbaa !9
  %247 = load ptr, ptr %20, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.Schema, ptr %247, i32 0, i32 5
  %249 = getelementptr inbounds %struct.Hash, ptr %248, i32 0, i32 3
  %250 = load ptr, ptr %249, align 8, !tbaa !48
  %251 = call i64 @sqlite3_msize(ptr noundef %250)
  %252 = load i32, ptr %19, align 4, !tbaa !9
  %253 = sext i32 %252 to i64
  %254 = add i64 %253, %251
  %255 = trunc i64 %254 to i32
  store i32 %255, ptr %19, align 4, !tbaa !9
  %256 = load ptr, ptr %20, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.Schema, ptr %256, i32 0, i32 4
  %258 = getelementptr inbounds %struct.Hash, ptr %257, i32 0, i32 2
  %259 = load ptr, ptr %258, align 8, !tbaa !49
  store ptr %259, ptr %21, align 8, !tbaa !5
  br label %260

260:                                              ; preds = %268, %195
  %261 = load ptr, ptr %21, align 8, !tbaa !5
  %262 = icmp ne ptr %261, null
  br i1 %262, label %263, label %272

263:                                              ; preds = %260
  %264 = load ptr, ptr %6, align 8, !tbaa !5
  %265 = load ptr, ptr %21, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.HashElem, ptr %265, i32 0, i32 2
  %267 = load ptr, ptr %266, align 8, !tbaa !50
  call void @sqlite3DeleteTrigger(ptr noundef %264, ptr noundef %267)
  br label %268

268:                                              ; preds = %263
  %269 = load ptr, ptr %21, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.HashElem, ptr %269, i32 0, i32 0
  %271 = load ptr, ptr %270, align 8, !tbaa !52
  store ptr %271, ptr %21, align 8, !tbaa !5
  br label %260, !llvm.loop !53

272:                                              ; preds = %260
  %273 = load ptr, ptr %20, align 8, !tbaa !5
  %274 = getelementptr inbounds %struct.Schema, ptr %273, i32 0, i32 2
  %275 = getelementptr inbounds %struct.Hash, ptr %274, i32 0, i32 2
  %276 = load ptr, ptr %275, align 8, !tbaa !54
  store ptr %276, ptr %21, align 8, !tbaa !5
  br label %277

277:                                              ; preds = %285, %272
  %278 = load ptr, ptr %21, align 8, !tbaa !5
  %279 = icmp ne ptr %278, null
  br i1 %279, label %280, label %289

280:                                              ; preds = %277
  %281 = load ptr, ptr %6, align 8, !tbaa !5
  %282 = load ptr, ptr %21, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.HashElem, ptr %282, i32 0, i32 2
  %284 = load ptr, ptr %283, align 8, !tbaa !50
  call void @sqlite3DeleteTable(ptr noundef %281, ptr noundef %284)
  br label %285

285:                                              ; preds = %280
  %286 = load ptr, ptr %21, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.HashElem, ptr %286, i32 0, i32 0
  %288 = load ptr, ptr %287, align 8, !tbaa !52
  store ptr %288, ptr %21, align 8, !tbaa !5
  br label %277, !llvm.loop !55

289:                                              ; preds = %277
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #2
  br label %290

290:                                              ; preds = %289, %184
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #2
  br label %291

291:                                              ; preds = %290
  %292 = load i32, ptr %18, align 4, !tbaa !9
  %293 = add nsw i32 %292, 1
  store i32 %293, ptr %18, align 4, !tbaa !9
  br label %178, !llvm.loop !56

294:                                              ; preds = %178
  %295 = load ptr, ptr %6, align 8, !tbaa !5
  %296 = getelementptr inbounds %struct.sqlite3, ptr %295, i32 0, i32 83
  store ptr null, ptr %296, align 8, !tbaa !33
  %297 = load ptr, ptr %6, align 8, !tbaa !5
  call void @sqlite3BtreeLeaveAll(ptr noundef %297)
  %298 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 0, ptr %298, align 4, !tbaa !9
  %299 = load i32, ptr %19, align 4, !tbaa !9
  %300 = load ptr, ptr %8, align 8, !tbaa !5
  store i32 %299, ptr %300, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #2
  br label %380

301:                                              ; preds = %5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #2
  store i32 0, ptr %23, align 4, !tbaa !9
  %302 = load ptr, ptr %6, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.sqlite3, ptr %302, i32 0, i32 83
  store ptr %23, ptr %303, align 8, !tbaa !33
  %304 = load ptr, ptr %6, align 8, !tbaa !5
  %305 = getelementptr inbounds %struct.sqlite3, ptr %304, i32 0, i32 1
  %306 = load ptr, ptr %305, align 8, !tbaa !57
  store ptr %306, ptr %22, align 8, !tbaa !5
  br label %307

307:                                              ; preds = %315, %301
  %308 = load ptr, ptr %22, align 8, !tbaa !5
  %309 = icmp ne ptr %308, null
  br i1 %309, label %310, label %319

310:                                              ; preds = %307
  %311 = load ptr, ptr %6, align 8, !tbaa !5
  %312 = load ptr, ptr %22, align 8, !tbaa !5
  call void @sqlite3VdbeClearObject(ptr noundef %311, ptr noundef %312)
  %313 = load ptr, ptr %6, align 8, !tbaa !5
  %314 = load ptr, ptr %22, align 8, !tbaa !5
  call void @sqlite3DbFree(ptr noundef %313, ptr noundef %314)
  br label %315

315:                                              ; preds = %310
  %316 = load ptr, ptr %22, align 8, !tbaa !5
  %317 = getelementptr inbounds %struct.Vdbe, ptr %316, i32 0, i32 2
  %318 = load ptr, ptr %317, align 8, !tbaa !58
  store ptr %318, ptr %22, align 8, !tbaa !5
  br label %307, !llvm.loop !60

319:                                              ; preds = %307
  %320 = load ptr, ptr %6, align 8, !tbaa !5
  %321 = getelementptr inbounds %struct.sqlite3, ptr %320, i32 0, i32 83
  store ptr null, ptr %321, align 8, !tbaa !33
  %322 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 0, ptr %322, align 4, !tbaa !9
  %323 = load i32, ptr %23, align 4, !tbaa !9
  %324 = load ptr, ptr %8, align 8, !tbaa !5
  store i32 %323, ptr %324, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #2
  br label %380

325:                                              ; preds = %5
  store i32 10, ptr %7, align 4, !tbaa !9
  br label %326

326:                                              ; preds = %325, %5, %5, %5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #2
  store i32 0, ptr %25, align 4, !tbaa !9
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %327

327:                                              ; preds = %357, %326
  %328 = load i32, ptr %24, align 4, !tbaa !9
  %329 = load ptr, ptr %6, align 8, !tbaa !5
  %330 = getelementptr inbounds %struct.sqlite3, ptr %329, i32 0, i32 5
  %331 = load i32, ptr %330, align 8, !tbaa !28
  %332 = icmp slt i32 %328, %331
  br i1 %332, label %333, label %360

333:                                              ; preds = %327
  %334 = load ptr, ptr %6, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct.sqlite3, ptr %334, i32 0, i32 4
  %336 = load ptr, ptr %335, align 8, !tbaa !29
  %337 = load i32, ptr %24, align 4, !tbaa !9
  %338 = sext i32 %337 to i64
  %339 = getelementptr inbounds %struct.Db, ptr %336, i64 %338
  %340 = getelementptr inbounds %struct.Db, ptr %339, i32 0, i32 1
  %341 = load ptr, ptr %340, align 8, !tbaa !30
  %342 = icmp ne ptr %341, null
  br i1 %342, label %343, label %356

343:                                              ; preds = %333
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #2
  %344 = load ptr, ptr %6, align 8, !tbaa !5
  %345 = getelementptr inbounds %struct.sqlite3, ptr %344, i32 0, i32 4
  %346 = load ptr, ptr %345, align 8, !tbaa !29
  %347 = load i32, ptr %24, align 4, !tbaa !9
  %348 = sext i32 %347 to i64
  %349 = getelementptr inbounds %struct.Db, ptr %346, i64 %348
  %350 = getelementptr inbounds %struct.Db, ptr %349, i32 0, i32 1
  %351 = load ptr, ptr %350, align 8, !tbaa !30
  %352 = call ptr @sqlite3BtreePager(ptr noundef %351)
  store ptr %352, ptr %26, align 8, !tbaa !5
  %353 = load ptr, ptr %26, align 8, !tbaa !5
  %354 = load i32, ptr %7, align 4, !tbaa !9
  %355 = load i32, ptr %10, align 4, !tbaa !9
  call void @sqlite3PagerCacheStat(ptr noundef %353, i32 noundef %354, i32 noundef %355, ptr noundef %25)
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #2
  br label %356

356:                                              ; preds = %343, %333
  br label %357

357:                                              ; preds = %356
  %358 = load i32, ptr %24, align 4, !tbaa !9
  %359 = add nsw i32 %358, 1
  store i32 %359, ptr %24, align 4, !tbaa !9
  br label %327, !llvm.loop !61

360:                                              ; preds = %327
  %361 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 0, ptr %361, align 4, !tbaa !9
  %362 = load i32, ptr %25, align 4, !tbaa !9
  %363 = load ptr, ptr %8, align 8, !tbaa !5
  store i32 %362, ptr %363, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #2
  br label %380

364:                                              ; preds = %5
  %365 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 0, ptr %365, align 4, !tbaa !9
  %366 = load ptr, ptr %6, align 8, !tbaa !5
  %367 = getelementptr inbounds %struct.sqlite3, ptr %366, i32 0, i32 82
  %368 = load i64, ptr %367, align 8, !tbaa !62
  %369 = icmp sgt i64 %368, 0
  br i1 %369, label %375, label %370

370:                                              ; preds = %364
  %371 = load ptr, ptr %6, align 8, !tbaa !5
  %372 = getelementptr inbounds %struct.sqlite3, ptr %371, i32 0, i32 81
  %373 = load i64, ptr %372, align 8, !tbaa !63
  %374 = icmp sgt i64 %373, 0
  br label %375

375:                                              ; preds = %370, %364
  %376 = phi i1 [ true, %364 ], [ %374, %370 ]
  %377 = zext i1 %376 to i32
  %378 = load ptr, ptr %8, align 8, !tbaa !5
  store i32 %377, ptr %378, align 4, !tbaa !9
  br label %380

379:                                              ; preds = %5
  store i32 1, ptr %11, align 4, !tbaa !9
  br label %380

380:                                              ; preds = %379, %375, %360, %319, %294, %169, %129, %107
  %381 = load ptr, ptr %6, align 8, !tbaa !5
  %382 = getelementptr inbounds %struct.sqlite3, ptr %381, i32 0, i32 3
  %383 = load ptr, ptr %382, align 8, !tbaa !11
  call void @sqlite3_mutex_leave(ptr noundef %383)
  %384 = load i32, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #2
  ret i32 %384
}

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare hidden void @sqlite3PagerCacheStat(ptr noundef, i32 noundef, i32 noundef, 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, !14, i64 92, !7, i64 94, !7, i64 95, !7, i64 96, !7, i64 97, !7, i64 98, !7, i64 99, !7, i64 100, !7, i64 101, !7, i64 102, !7, i64 103, !7, i64 104, !7, i64 105, !7, i64 106, !10, i64 108, !10, i64 112, !10, i64 116, !10, i64 120, !7, i64 124, !10, i64 172, !15, i64 176, !10, i64 192, !10, i64 196, !10, i64 200, !10, i64 204, !10, i64 208, !10, i64 212, !6, i64 216, !7, 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, !6, i64 336, !6, i64 344, !6, i64 352, !7, i64 360, !16, i64 368, !6, i64 456, !6, i64 464, !6, i64 472, !6, i64 480, !10, i64 488, !10, i64 492, !17, i64 496, !6, i64 520, !6, i64 528, !6, i64 536, !17, i64 544, !17, i64 568, !18, i64 592, !7, i64 616, !6, i64 680, !10, i64 688, !10, i64 692, !10, i64 696, !10, i64 700, !13, i64 704, !13, i64 712, !6, i64 720}
!13 = !{!"long long", !7, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{!"sqlite3InitInfo", !10, i64 0, !7, i64 4, !7, i64 5, !10, i64 6, !10, i64 6, !10, i64 6, !6, i64 8}
!16 = !{!"Lookaside", !10, i64 0, !14, i64 4, !14, 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}
!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 = !{!12, !6, i64 408}
!20 = !{!21, !6, i64 0}
!21 = !{!"LookasideSlot", !6, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!12, !6, i64 400}
!25 = !{!12, !6, i64 424}
!26 = distinct !{!26, !23}
!27 = !{!12, !6, i64 416}
!28 = !{!12, !10, i64 40}
!29 = !{!12, !6, i64 32}
!30 = !{!31, !6, i64 8}
!31 = !{!"Db", !6, i64 0, !6, i64 8, !7, i64 16, !7, i64 17, !6, i64 24}
!32 = distinct !{!32, !23}
!33 = !{!12, !6, i64 720}
!34 = !{!31, !6, i64 24}
!35 = !{!36, !6, i64 64}
!36 = !{!"Sqlite3Config", !10, i64 0, !7, i64 4, !7, i64 5, !7, i64 6, !7, i64 7, !7, i64 8, !7, i64 9, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !37, i64 32, !38, i64 96, !39, i64 168, !6, i64 272, !10, i64 280, !10, i64 284, !10, i64 288, !13, i64 296, !13, i64 304, !6, i64 312, !10, i64 320, !10, i64 324, !10, i64 328, !10, i64 332, !10, i64 336, !10, i64 340, !10, i64 344, !10, i64 348, !10, i64 352, !10, i64 356, !10, i64 360, !6, i64 368, !6, i64 376, !6, i64 384, !6, i64 392, !10, i64 400, !10, i64 404, !10, i64 408, !10, i64 412}
!37 = !{!"sqlite3_mem_methods", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!38 = !{!"sqlite3_mutex_methods", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64}
!39 = !{!"sqlite3_pcache_methods2", !10, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96}
!40 = !{!41, !10, i64 12}
!41 = !{!"Schema", !10, i64 0, !10, i64 4, !17, i64 8, !17, i64 32, !17, i64 56, !17, i64 80, !6, i64 104, !7, i64 112, !7, i64 113, !14, i64 114, !10, i64 116}
!42 = !{!41, !10, i64 60}
!43 = !{!41, !10, i64 36}
!44 = !{!41, !10, i64 84}
!45 = !{!41, !6, i64 24}
!46 = !{!41, !6, i64 72}
!47 = !{!41, !6, i64 48}
!48 = !{!41, !6, i64 96}
!49 = !{!41, !6, i64 64}
!50 = !{!51, !6, i64 16}
!51 = !{!"HashElem", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!52 = !{!51, !6, i64 0}
!53 = distinct !{!53, !23}
!54 = !{!41, !6, i64 16}
!55 = distinct !{!55, !23}
!56 = distinct !{!56, !23}
!57 = !{!12, !6, i64 8}
!58 = !{!59, !6, i64 16}
!59 = !{!"Vdbe", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !14, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !13, i64 72, !13, i64 80, !13, i64 88, !13, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !10, i64 144, !10, i64 148, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !13, i64 184, !14, i64 192, !7, i64 194, !7, i64 195, !7, i64 196, !7, i64 197, !10, i64 198, !10, i64 198, !10, i64 198, !10, i64 198, !10, i64 198, !10, i64 198, !10, i64 199, !10, i64 200, !10, i64 204, !7, i64 208, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !10, i64 272, !10, i64 276, !6, i64 280, !6, i64 288}
!60 = distinct !{!60, !23}
!61 = distinct !{!61, !23}
!62 = !{!12, !13, i64 712}
!63 = !{!12, !13, i64 704}


; 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"

%struct.Sqlite3Config = type { i32, i8, i8, i8, i8, i8, i8, i32, i32, i32, i32, i32, %struct.sqlite3_mem_methods, %struct.sqlite3_mutex_methods, %struct.sqlite3_pcache_methods2, ptr, i32, i32, i32, i64, i64, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32 }
%struct.sqlite3_mem_methods = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.sqlite3_mutex_methods = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.sqlite3_pcache_methods2 = type { i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.Db = type { ptr, ptr, i8, i8, ptr }

@sqlite3Config = external hidden local_unnamed_addr global %struct.Sqlite3Config, align 8

; 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 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
define dso_local range(i32 0, 2) i32 @sqlite3_db_status(ptr noundef %0, i32 noundef %1, ptr nocapture noundef writeonly %2, ptr noundef %3, i32 noundef %4) local_unnamed_addr #1 {
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = getelementptr inbounds i8, ptr %0, i64 24
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  tail call void @sqlite3_mutex_enter(ptr noundef %10)
  switch i32 %1, label %161 [
    i32 0, label %11
    i32 4, label %27
    i32 5, label %27
    i32 6, label %27
    i32 11, label %34
    i32 1, label %34
    i32 2, label %66
    i32 3, label %127
    i32 12, label %132
    i32 7, label %133
    i32 8, label %133
    i32 9, label %133
    i32 10, label %150
  ]

11:                                               ; preds = %5
  %12 = tail call i32 @sqlite3LookasideUsed(ptr noundef nonnull %0, ptr noundef %3)
  store i32 %12, ptr %2, align 4, !tbaa !17
  %.not131 = icmp eq i32 %4, 0
  br i1 %.not131, label %161, label %13

13:                                               ; preds = %11
  %14 = getelementptr inbounds i8, ptr %0, i64 408
  %15 = load ptr, ptr %14, align 8, !tbaa !18
  %.not132 = icmp eq ptr %15, null
  br i1 %.not132, label %20, label %.preheader136

.preheader136:                                    ; preds = %13, %.preheader136
  %.0113 = phi ptr [ %16, %.preheader136 ], [ %15, %13 ]
  %16 = load ptr, ptr %.0113, align 8, !tbaa !19
  %.not133 = icmp eq ptr %16, null
  br i1 %.not133, label %17, label %.preheader136, !llvm.loop !21

17:                                               ; preds = %.preheader136
  %18 = getelementptr inbounds i8, ptr %0, i64 400
  %19 = load ptr, ptr %18, align 8, !tbaa !23
  store ptr %19, ptr %.0113, align 8, !tbaa !19
  store ptr %15, ptr %18, align 8, !tbaa !23
  store ptr null, ptr %14, align 8, !tbaa !18
  br label %20

20:                                               ; preds = %17, %13
  %21 = getelementptr inbounds i8, ptr %0, i64 424
  %22 = load ptr, ptr %21, align 8, !tbaa !24
  %.not134 = icmp eq ptr %22, null
  br i1 %.not134, label %161, label %.preheader

.preheader:                                       ; preds = %20, %.preheader
  %.1114 = phi ptr [ %23, %.preheader ], [ %22, %20 ]
  %23 = load ptr, ptr %.1114, align 8, !tbaa !19
  %.not135 = icmp eq ptr %23, null
  br i1 %.not135, label %24, label %.preheader, !llvm.loop !25

24:                                               ; preds = %.preheader
  %25 = getelementptr inbounds i8, ptr %0, i64 416
  %26 = load ptr, ptr %25, align 8, !tbaa !26
  store ptr %26, ptr %.1114, align 8, !tbaa !19
  store ptr %22, ptr %25, align 8, !tbaa !26
  store ptr null, ptr %21, align 8, !tbaa !24
  br label %161

27:                                               ; preds = %5, %5, %5
  store i32 0, ptr %2, align 4, !tbaa !17
  %28 = getelementptr inbounds i8, ptr %0, i64 384
  %29 = add nsw i32 %1, -4
  %30 = zext nneg i32 %29 to i64
  %31 = getelementptr inbounds [3 x i32], ptr %28, i64 0, i64 %30
  %32 = load i32, ptr %31, align 4, !tbaa !17
  store i32 %32, ptr %3, align 4, !tbaa !17
  %.not130 = icmp eq i32 %4, 0
  br i1 %.not130, label %161, label %33

33:                                               ; preds = %27
  store i32 0, ptr %31, align 4, !tbaa !17
  br label %161

34:                                               ; preds = %5, %5
  tail call void @sqlite3BtreeEnterAll(ptr noundef nonnull %0)
  %35 = getelementptr inbounds i8, ptr %0, i64 40
  %36 = load i32, ptr %35, align 8, !tbaa !27
  %37 = icmp sgt i32 %36, 0
  br i1 %37, label %.lr.ph162, label %._crit_edge163

.lr.ph162:                                        ; preds = %34
  %38 = getelementptr inbounds i8, ptr %0, i64 32
  %39 = icmp eq i32 %1, 11
  br i1 %39, label %.lr.ph162.split.us, label %.lr.ph162.split

.lr.ph162.split.us:                               ; preds = %.lr.ph162, %50
  %40 = phi i32 [ %51, %50 ], [ %36, %.lr.ph162 ]
  %indvars.iv172 = phi i64 [ %indvars.iv.next173, %50 ], [ 0, %.lr.ph162 ]
  %.0115160.us = phi i32 [ %.1116.us, %50 ], [ 0, %.lr.ph162 ]
  %41 = load ptr, ptr %38, align 8, !tbaa !28
  %42 = getelementptr inbounds %struct.Db, ptr %41, i64 %indvars.iv172, i32 1
  %43 = load ptr, ptr %42, align 8, !tbaa !29
  %.not129.us = icmp eq ptr %43, null
  br i1 %.not129.us, label %50, label %44

44:                                               ; preds = %.lr.ph162.split.us
  %45 = tail call ptr @sqlite3BtreePager(ptr noundef nonnull %43)
  %46 = tail call i32 @sqlite3PagerMemUsed(ptr noundef %45)
  %47 = tail call i32 @sqlite3BtreeConnectionCount(ptr noundef nonnull %43)
  %48 = sdiv i32 %46, %47
  %49 = add nsw i32 %48, %.0115160.us
  %.pre178 = load i32, ptr %35, align 8, !tbaa !27
  br label %50

50:                                               ; preds = %44, %.lr.ph162.split.us
  %51 = phi i32 [ %.pre178, %44 ], [ %40, %.lr.ph162.split.us ]
  %.1116.us = phi i32 [ %49, %44 ], [ %.0115160.us, %.lr.ph162.split.us ]
  %indvars.iv.next173 = add nuw nsw i64 %indvars.iv172, 1
  %52 = sext i32 %51 to i64
  %53 = icmp slt i64 %indvars.iv.next173, %52
  br i1 %53, label %.lr.ph162.split.us, label %._crit_edge163, !llvm.loop !31

.lr.ph162.split:                                  ; preds = %.lr.ph162, %62
  %54 = phi i32 [ %63, %62 ], [ %36, %.lr.ph162 ]
  %indvars.iv169 = phi i64 [ %indvars.iv.next170, %62 ], [ 0, %.lr.ph162 ]
  %.0115160 = phi i32 [ %.1116, %62 ], [ 0, %.lr.ph162 ]
  %55 = load ptr, ptr %38, align 8, !tbaa !28
  %56 = getelementptr inbounds %struct.Db, ptr %55, i64 %indvars.iv169, i32 1
  %57 = load ptr, ptr %56, align 8, !tbaa !29
  %.not129 = icmp eq ptr %57, null
  br i1 %.not129, label %62, label %58

58:                                               ; preds = %.lr.ph162.split
  %59 = tail call ptr @sqlite3BtreePager(ptr noundef nonnull %57)
  %60 = tail call i32 @sqlite3PagerMemUsed(ptr noundef %59)
  %61 = add nsw i32 %60, %.0115160
  %.pre177 = load i32, ptr %35, align 8, !tbaa !27
  br label %62

62:                                               ; preds = %58, %.lr.ph162.split
  %63 = phi i32 [ %.pre177, %58 ], [ %54, %.lr.ph162.split ]
  %.1116 = phi i32 [ %61, %58 ], [ %.0115160, %.lr.ph162.split ]
  %indvars.iv.next170 = add nuw nsw i64 %indvars.iv169, 1
  %64 = sext i32 %63 to i64
  %65 = icmp slt i64 %indvars.iv.next170, %64
  br i1 %65, label %.lr.ph162.split, label %._crit_edge163, !llvm.loop !31

._crit_edge163:                                   ; preds = %62, %50, %34
  %.0115.lcssa = phi i32 [ 0, %34 ], [ %.1116.us, %50 ], [ %.1116, %62 ]
  tail call void @sqlite3BtreeLeaveAll(ptr noundef nonnull %0)
  store i32 %.0115.lcssa, ptr %2, align 4, !tbaa !17
  store i32 0, ptr %3, align 4, !tbaa !17
  br label %161

66:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #2
  store i32 0, ptr %6, align 4, !tbaa !17
  tail call void @sqlite3BtreeEnterAll(ptr noundef nonnull %0)
  %67 = getelementptr inbounds i8, ptr %0, i64 720
  store ptr %6, ptr %67, align 8, !tbaa !32
  %68 = getelementptr inbounds i8, ptr %0, i64 40
  %69 = load i32, ptr %68, align 8, !tbaa !27
  %70 = icmp sgt i32 %69, 0
  br i1 %70, label %.lr.ph157, label %._crit_edge158

.lr.ph157:                                        ; preds = %66
  %71 = getelementptr inbounds i8, ptr %0, i64 32
  br label %72

72:                                               ; preds = %.lr.ph157, %.loopexit
  %indvars.iv166 = phi i64 [ 0, %.lr.ph157 ], [ %indvars.iv.next167, %.loopexit ]
  %73 = load ptr, ptr %71, align 8, !tbaa !28
  %74 = getelementptr inbounds %struct.Db, ptr %73, i64 %indvars.iv166, i32 4
  %75 = load ptr, ptr %74, align 8, !tbaa !33
  %.not126 = icmp eq ptr %75, null
  br i1 %.not126, label %.loopexit, label %76

76:                                               ; preds = %72
  %77 = load ptr, ptr getelementptr inbounds (i8, ptr @sqlite3Config, i64 64), align 8, !tbaa !34
  %78 = call i32 %77(i32 noundef 32) #2
  %79 = getelementptr inbounds i8, ptr %75, i64 12
  %80 = load i32, ptr %79, align 4, !tbaa !39
  %81 = getelementptr inbounds i8, ptr %75, i64 60
  %82 = load i32, ptr %81, align 4, !tbaa !41
  %83 = add i32 %82, %80
  %84 = getelementptr inbounds i8, ptr %75, i64 36
  %85 = load i32, ptr %84, align 4, !tbaa !42
  %86 = add i32 %83, %85
  %87 = getelementptr inbounds i8, ptr %75, i64 84
  %88 = load i32, ptr %87, align 4, !tbaa !43
  %89 = add i32 %86, %88
  %90 = mul i32 %89, %78
  %91 = load i32, ptr %6, align 4, !tbaa !17
  %92 = add i32 %90, %91
  store i32 %92, ptr %6, align 4, !tbaa !17
  %93 = getelementptr inbounds i8, ptr %75, i64 24
  %94 = load ptr, ptr %93, align 8, !tbaa !44
  %95 = call i64 @sqlite3_msize(ptr noundef %94)
  %96 = load i32, ptr %6, align 4, !tbaa !17
  %97 = trunc i64 %95 to i32
  %98 = add i32 %96, %97
  store i32 %98, ptr %6, align 4, !tbaa !17
  %99 = getelementptr inbounds i8, ptr %75, i64 72
  %100 = load ptr, ptr %99, align 8, !tbaa !45
  %101 = call i64 @sqlite3_msize(ptr noundef %100)
  %102 = load i32, ptr %6, align 4, !tbaa !17
  %103 = trunc i64 %101 to i32
  %104 = add i32 %102, %103
  store i32 %104, ptr %6, align 4, !tbaa !17
  %105 = getelementptr inbounds i8, ptr %75, i64 48
  %106 = load ptr, ptr %105, align 8, !tbaa !46
  %107 = call i64 @sqlite3_msize(ptr noundef %106)
  %108 = load i32, ptr %6, align 4, !tbaa !17
  %109 = trunc i64 %107 to i32
  %110 = add i32 %108, %109
  store i32 %110, ptr %6, align 4, !tbaa !17
  %111 = getelementptr inbounds i8, ptr %75, i64 96
  %112 = load ptr, ptr %111, align 8, !tbaa !47
  %113 = call i64 @sqlite3_msize(ptr noundef %112)
  %114 = load i32, ptr %6, align 4, !tbaa !17
  %115 = trunc i64 %113 to i32
  %116 = add i32 %114, %115
  store i32 %116, ptr %6, align 4, !tbaa !17
  %117 = getelementptr inbounds i8, ptr %75, i64 64
  %.0109144 = load ptr, ptr %117, align 8, !tbaa !48
  %.not127145 = icmp eq ptr %.0109144, null
  br i1 %.not127145, label %._crit_edge149, label %.lr.ph148

.lr.ph148:                                        ; preds = %76, %.lr.ph148
  %.0109146 = phi ptr [ %.0109, %.lr.ph148 ], [ %.0109144, %76 ]
  %118 = getelementptr inbounds i8, ptr %.0109146, i64 16
  %119 = load ptr, ptr %118, align 8, !tbaa !49
  call void @sqlite3DeleteTrigger(ptr noundef %0, ptr noundef %119)
  %.0109 = load ptr, ptr %.0109146, align 8, !tbaa !48
  %.not127 = icmp eq ptr %.0109, null
  br i1 %.not127, label %._crit_edge149, label %.lr.ph148, !llvm.loop !51

._crit_edge149:                                   ; preds = %.lr.ph148, %76
  %120 = getelementptr inbounds i8, ptr %75, i64 16
  %.1150 = load ptr, ptr %120, align 8, !tbaa !48
  %.not128151 = icmp eq ptr %.1150, null
  br i1 %.not128151, label %.loopexit, label %.lr.ph154

.lr.ph154:                                        ; preds = %._crit_edge149, %.lr.ph154
  %.1152 = phi ptr [ %.1, %.lr.ph154 ], [ %.1150, %._crit_edge149 ]
  %121 = getelementptr inbounds i8, ptr %.1152, i64 16
  %122 = load ptr, ptr %121, align 8, !tbaa !49
  call void @sqlite3DeleteTable(ptr noundef %0, ptr noundef %122)
  %.1 = load ptr, ptr %.1152, align 8, !tbaa !48
  %.not128 = icmp eq ptr %.1, null
  br i1 %.not128, label %.loopexit, label %.lr.ph154, !llvm.loop !52

.loopexit:                                        ; preds = %.lr.ph154, %._crit_edge149, %72
  %indvars.iv.next167 = add nuw nsw i64 %indvars.iv166, 1
  %123 = load i32, ptr %68, align 8, !tbaa !27
  %124 = sext i32 %123 to i64
  %125 = icmp slt i64 %indvars.iv.next167, %124
  br i1 %125, label %72, label %._crit_edge158, !llvm.loop !53

._crit_edge158:                                   ; preds = %.loopexit, %66
  store ptr null, ptr %67, align 8, !tbaa !32
  call void @sqlite3BtreeLeaveAll(ptr noundef nonnull %0)
  store i32 0, ptr %3, align 4, !tbaa !17
  %126 = load i32, ptr %6, align 4, !tbaa !17
  store i32 %126, ptr %2, align 4, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #2
  br label %161

127:                                              ; preds = %5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #2
  store i32 0, ptr %7, align 4, !tbaa !17
  %128 = getelementptr inbounds i8, ptr %0, i64 720
  store ptr %7, ptr %128, align 8, !tbaa !32
  %129 = getelementptr inbounds i8, ptr %0, i64 8
  %.0108138 = load ptr, ptr %129, align 8, !tbaa !48
  %.not125139 = icmp eq ptr %.0108138, null
  br i1 %.not125139, label %._crit_edge143, label %.lr.ph142

.lr.ph142:                                        ; preds = %127, %.lr.ph142
  %.0108140 = phi ptr [ %.0108, %.lr.ph142 ], [ %.0108138, %127 ]
  call void @sqlite3VdbeClearObject(ptr noundef %0, ptr noundef nonnull %.0108140)
  call void @sqlite3DbFree(ptr noundef %0, ptr noundef nonnull %.0108140)
  %130 = getelementptr inbounds i8, ptr %.0108140, i64 16
  %.0108 = load ptr, ptr %130, align 8, !tbaa !48
  %.not125 = icmp eq ptr %.0108, null
  br i1 %.not125, label %._crit_edge143.loopexit, label %.lr.ph142, !llvm.loop !54

._crit_edge143.loopexit:                          ; preds = %.lr.ph142
  %.pre176 = load i32, ptr %7, align 4, !tbaa !17
  br label %._crit_edge143

._crit_edge143:                                   ; preds = %._crit_edge143.loopexit, %127
  %131 = phi i32 [ %.pre176, %._crit_edge143.loopexit ], [ 0, %127 ]
  store ptr null, ptr %128, align 8, !tbaa !32
  store i32 0, ptr %3, align 4, !tbaa !17
  store i32 %131, ptr %2, align 4, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #2
  br label %161

132:                                              ; preds = %5
  br label %133

133:                                              ; preds = %132, %5, %5, %5
  %.0 = phi i32 [ %1, %5 ], [ %1, %5 ], [ %1, %5 ], [ 10, %132 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #2
  store i32 0, ptr %8, align 4, !tbaa !17
  %134 = getelementptr inbounds i8, ptr %0, i64 40
  %135 = load i32, ptr %134, align 8, !tbaa !27
  %136 = icmp sgt i32 %135, 0
  br i1 %136, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %133
  %137 = getelementptr inbounds i8, ptr %0, i64 32
  br label %138

138:                                              ; preds = %.lr.ph, %145
  %139 = phi i32 [ %135, %.lr.ph ], [ %146, %145 ]
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %145 ]
  %140 = load ptr, ptr %137, align 8, !tbaa !28
  %141 = getelementptr inbounds %struct.Db, ptr %140, i64 %indvars.iv, i32 1
  %142 = load ptr, ptr %141, align 8, !tbaa !29
  %.not = icmp eq ptr %142, null
  br i1 %.not, label %145, label %143

143:                                              ; preds = %138
  %144 = call ptr @sqlite3BtreePager(ptr noundef nonnull %142)
  call void @sqlite3PagerCacheStat(ptr noundef %144, i32 noundef %.0, i32 noundef %4, ptr noundef nonnull %8)
  %.pre = load i32, ptr %134, align 8, !tbaa !27
  br label %145

145:                                              ; preds = %138, %143
  %146 = phi i32 [ %139, %138 ], [ %.pre, %143 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %147 = sext i32 %146 to i64
  %148 = icmp slt i64 %indvars.iv.next, %147
  br i1 %148, label %138, label %._crit_edge.loopexit, !llvm.loop !55

._crit_edge.loopexit:                             ; preds = %145
  %.pre175 = load i32, ptr %8, align 4, !tbaa !17
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %133
  %149 = phi i32 [ %.pre175, %._crit_edge.loopexit ], [ 0, %133 ]
  store i32 0, ptr %3, align 4, !tbaa !17
  store i32 %149, ptr %2, align 4, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #2
  br label %161

150:                                              ; preds = %5
  store i32 0, ptr %3, align 4, !tbaa !17
  %151 = getelementptr inbounds i8, ptr %0, i64 712
  %152 = load i64, ptr %151, align 8, !tbaa !56
  %153 = icmp sgt i64 %152, 0
  br i1 %153, label %159, label %154

154:                                              ; preds = %150
  %155 = getelementptr inbounds i8, ptr %0, i64 704
  %156 = load i64, ptr %155, align 8, !tbaa !57
  %157 = icmp sgt i64 %156, 0
  %158 = zext i1 %157 to i32
  br label %159

159:                                              ; preds = %154, %150
  %160 = phi i32 [ 1, %150 ], [ %158, %154 ]
  store i32 %160, ptr %2, align 4, !tbaa !17
  br label %161

161:                                              ; preds = %5, %20, %24, %27, %33, %11, %159, %._crit_edge, %._crit_edge143, %._crit_edge158, %._crit_edge163
  %.0110 = phi i32 [ 0, %159 ], [ 0, %._crit_edge ], [ 0, %._crit_edge143 ], [ 0, %._crit_edge158 ], [ 0, %._crit_edge163 ], [ 0, %33 ], [ 0, %27 ], [ 0, %11 ], [ 0, %24 ], [ 0, %20 ], [ 1, %5 ]
  %162 = load ptr, ptr %9, align 8, !tbaa !5
  call void @sqlite3_mutex_leave(ptr noundef %162)
  ret i32 %.0110
}

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare hidden void @sqlite3PagerCacheStat(ptr noundef, i32 noundef, i32 noundef, 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, !7, i64 24}
!6 = !{!"sqlite3", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !10, i64 40, !10, i64 44, !11, i64 48, !11, i64 56, !11, i64 64, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !12, i64 92, !8, i64 94, !8, i64 95, !8, i64 96, !8, i64 97, !8, i64 98, !8, i64 99, !8, i64 100, !8, i64 101, !8, i64 102, !8, i64 103, !8, i64 104, !8, i64 105, !8, i64 106, !10, i64 108, !10, i64 112, !10, i64 116, !10, i64 120, !8, i64 124, !10, i64 172, !13, i64 176, !10, i64 192, !10, i64 196, !10, i64 200, !10, i64 204, !10, i64 208, !10, i64 212, !7, i64 216, !8, i64 224, !7, i64 232, !7, i64 240, !7, i64 248, !7, i64 256, !7, i64 264, !7, i64 272, !7, i64 280, !7, i64 288, !7, i64 296, !7, i64 304, !7, i64 312, !7, i64 320, !7, i64 328, !7, i64 336, !7, i64 344, !7, i64 352, !8, i64 360, !14, i64 368, !7, i64 456, !7, i64 464, !7, i64 472, !7, i64 480, !10, i64 488, !10, i64 492, !15, i64 496, !7, i64 520, !7, i64 528, !7, i64 536, !15, i64 544, !15, i64 568, !16, i64 592, !8, i64 616, !7, i64 680, !10, i64 688, !10, i64 692, !10, i64 696, !10, i64 700, !11, i64 704, !11, i64 712, !7, i64 720}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"long long", !8, i64 0}
!12 = !{!"short", !8, i64 0}
!13 = !{!"sqlite3InitInfo", !10, i64 0, !8, i64 4, !8, i64 5, !10, i64 6, !10, i64 6, !10, i64 6, !7, i64 8}
!14 = !{!"Lookaside", !10, i64 0, !12, i64 4, !12, i64 6, !8, i64 8, !10, i64 12, !8, i64 16, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80}
!15 = !{!"Hash", !10, i64 0, !10, i64 4, !7, i64 8, !7, i64 16}
!16 = !{!"BusyHandler", !7, i64 0, !7, i64 8, !10, i64 16}
!17 = !{!10, !10, i64 0}
!18 = !{!6, !7, i64 408}
!19 = !{!20, !7, i64 0}
!20 = !{!"LookasideSlot", !7, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!6, !7, i64 400}
!24 = !{!6, !7, i64 424}
!25 = distinct !{!25, !22}
!26 = !{!6, !7, i64 416}
!27 = !{!6, !10, i64 40}
!28 = !{!6, !7, i64 32}
!29 = !{!30, !7, i64 8}
!30 = !{!"Db", !7, i64 0, !7, i64 8, !8, i64 16, !8, i64 17, !7, i64 24}
!31 = distinct !{!31, !22}
!32 = !{!6, !7, i64 720}
!33 = !{!30, !7, i64 24}
!34 = !{!35, !7, i64 64}
!35 = !{!"Sqlite3Config", !10, i64 0, !8, i64 4, !8, i64 5, !8, i64 6, !8, i64 7, !8, i64 8, !8, i64 9, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !36, i64 32, !37, i64 96, !38, i64 168, !7, i64 272, !10, i64 280, !10, i64 284, !10, i64 288, !11, i64 296, !11, i64 304, !7, i64 312, !10, i64 320, !10, i64 324, !10, i64 328, !10, i64 332, !10, i64 336, !10, i64 340, !10, i64 344, !10, i64 348, !10, i64 352, !10, i64 356, !10, i64 360, !7, i64 368, !7, i64 376, !7, i64 384, !7, i64 392, !10, i64 400, !10, i64 404, !10, i64 408, !10, i64 412}
!36 = !{!"sqlite3_mem_methods", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56}
!37 = !{!"sqlite3_mutex_methods", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64}
!38 = !{!"sqlite3_pcache_methods2", !10, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96}
!39 = !{!40, !10, i64 12}
!40 = !{!"Schema", !10, i64 0, !10, i64 4, !15, i64 8, !15, i64 32, !15, i64 56, !15, i64 80, !7, i64 104, !8, i64 112, !8, i64 113, !12, i64 114, !10, i64 116}
!41 = !{!40, !10, i64 60}
!42 = !{!40, !10, i64 36}
!43 = !{!40, !10, i64 84}
!44 = !{!40, !7, i64 24}
!45 = !{!40, !7, i64 72}
!46 = !{!40, !7, i64 48}
!47 = !{!40, !7, i64 96}
!48 = !{!7, !7, i64 0}
!49 = !{!50, !7, i64 16}
!50 = !{!"HashElem", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24}
!51 = distinct !{!51, !22}
!52 = distinct !{!52, !22}
!53 = distinct !{!53, !22}
!54 = distinct !{!54, !22}
!55 = distinct !{!55, !22}
!56 = !{!6, !11, i64 712}
!57 = !{!6, !11, i64 704}


; 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