; LLVM IR from ElsevierSoftwareX/SOFTX-D-20-00016 :: GameplayFootball/src/libs/sqlite3 (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, i32, i32, i32, i32, i32, %struct.sqlite3_mem_methods, %struct.sqlite3_mutex_methods, %struct.sqlite3_pcache_methods, ptr, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, i32, ptr, ptr }
%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_methods = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.sqlite3 = type { ptr, i32, ptr, i32, i32, i32, i32, i8, i8, i8, i8, i8, i8, i32, i32, ptr, i64, i32, i32, i32, ptr, [11 x i32], %struct.sqlite3InitInfo, i32, ptr, ptr, i32, i32, ptr, 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, %struct.Hash, ptr, ptr, i32, ptr, %struct.FuncDefHash, %struct.Hash, %struct.BusyHandler, i32, [2 x %struct.Db], ptr, i32, i32, i8, i64, ptr }
%struct.sqlite3InitInfo = type { i32, i32, i8, i8 }
%union.anon = type { double }
%struct.Lookaside = type { i16, i8, i8, i32, i32, ptr, ptr, ptr }
%struct.FuncDefHash = type { [23 x ptr] }
%struct.Hash = type { i32, i32, ptr, ptr }
%struct.BusyHandler = type { ptr, ptr, i32 }
%struct.Db = type { ptr, ptr, i8, i8, ptr }
%struct.Schema = type { i32, %struct.Hash, %struct.Hash, %struct.Hash, %struct.Hash, ptr, i8, i8, i16, i32 }
%struct.HashElem = type { ptr, ptr, ptr, ptr, i32 }
%struct.Vdbe = type { ptr, ptr, ptr, i32, i32, ptr, i32, i32, ptr, ptr, ptr, ptr, i16, i16, ptr, i8, i8, i16, ptr, ptr, i32, i32, ptr, i32, i32, i32, ptr, i8, i8, i8, i8, i8, i8, i8, i8, i8, i32, i32, i64, %struct.BtreeMutexArray, [3 x i32], ptr, ptr, i64, i64, i32, ptr, i32, i32, ptr }
%struct.BtreeMutexArray = type { i32, [11 x 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: 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 i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  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
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.sqlite3, ptr %22, i32 0, i32 20
  %24 = load ptr, ptr %23, align 8, !tbaa !11
  call void @sqlite3_mutex_enter(ptr noundef %24)
  %25 = load i32, ptr %7, align 4, !tbaa !9
  switch i32 %25, label %222 [
    i32 0, label %26
    i32 1, label %48
    i32 2, label %83
    i32 3, label %200
  ]

26:                                               ; preds = %5
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.sqlite3, ptr %27, i32 0, i32 47
  %29 = getelementptr inbounds %struct.Lookaside, ptr %28, i32 0, i32 3
  %30 = load i32, ptr %29, align 4, !tbaa !20
  %31 = load ptr, ptr %8, align 8, !tbaa !5
  store i32 %30, ptr %31, align 4, !tbaa !9
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.sqlite3, ptr %32, i32 0, i32 47
  %34 = getelementptr inbounds %struct.Lookaside, ptr %33, i32 0, i32 4
  %35 = load i32, ptr %34, align 8, !tbaa !21
  %36 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 %35, ptr %36, align 4, !tbaa !9
  %37 = load i32, ptr %10, align 4, !tbaa !9
  %38 = icmp ne i32 %37, 0
  br i1 %38, label %39, label %47

39:                                               ; preds = %26
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.sqlite3, ptr %40, i32 0, i32 47
  %42 = getelementptr inbounds %struct.Lookaside, ptr %41, i32 0, i32 3
  %43 = load i32, ptr %42, align 4, !tbaa !20
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.sqlite3, ptr %44, i32 0, i32 47
  %46 = getelementptr inbounds %struct.Lookaside, ptr %45, i32 0, i32 4
  store i32 %43, ptr %46, align 8, !tbaa !21
  br label %47

47:                                               ; preds = %39, %26
  br label %223

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

50:                                               ; preds = %75, %48
  %51 = load i32, ptr %13, align 4, !tbaa !9
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.sqlite3, ptr %52, i32 0, i32 1
  %54 = load i32, ptr %53, align 8, !tbaa !22
  %55 = icmp slt i32 %51, %54
  br i1 %55, label %56, label %78

56:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #2
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.sqlite3, ptr %57, i32 0, i32 2
  %59 = load ptr, ptr %58, align 8, !tbaa !23
  %60 = load i32, ptr %13, align 4, !tbaa !9
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds %struct.Db, ptr %59, i64 %61
  %63 = getelementptr inbounds %struct.Db, ptr %62, i32 0, i32 1
  %64 = load ptr, ptr %63, align 8, !tbaa !24
  store ptr %64, ptr %14, align 8, !tbaa !5
  %65 = load ptr, ptr %14, align 8, !tbaa !5
  %66 = icmp ne ptr %65, null
  br i1 %66, label %67, label %74

67:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #2
  %68 = load ptr, ptr %14, align 8, !tbaa !5
  %69 = call ptr @sqlite3BtreePager(ptr noundef %68)
  store ptr %69, ptr %15, align 8, !tbaa !5
  %70 = load ptr, ptr %15, align 8, !tbaa !5
  %71 = call i32 @sqlite3PagerMemUsed(ptr noundef %70)
  %72 = load i32, ptr %12, align 4, !tbaa !9
  %73 = add nsw i32 %72, %71
  store i32 %73, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #2
  br label %74

74:                                               ; preds = %67, %56
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #2
  br label %75

75:                                               ; preds = %74
  %76 = load i32, ptr %13, align 4, !tbaa !9
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %13, align 4, !tbaa !9
  br label %50, !llvm.loop !26

78:                                               ; preds = %50
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  call void @sqlite3BtreeLeaveAll(ptr noundef %79)
  %80 = load i32, ptr %12, align 4, !tbaa !9
  %81 = load ptr, ptr %8, align 8, !tbaa !5
  store i32 %80, ptr %81, align 4, !tbaa !9
  %82 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 0, ptr %82, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #2
  br label %223

83:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #2
  store i32 0, ptr %17, align 4, !tbaa !9
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.sqlite3, ptr %84, i32 0, i32 68
  store ptr %17, ptr %85, align 8, !tbaa !28
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %86

86:                                               ; preds = %191, %83
  %87 = load i32, ptr %16, align 4, !tbaa !9
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.sqlite3, ptr %88, i32 0, i32 1
  %90 = load i32, ptr %89, align 8, !tbaa !22
  %91 = icmp slt i32 %87, %90
  br i1 %91, label %92, label %194

92:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #2
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.sqlite3, ptr %93, i32 0, i32 2
  %95 = load ptr, ptr %94, align 8, !tbaa !23
  %96 = load i32, ptr %16, align 4, !tbaa !9
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds %struct.Db, ptr %95, i64 %97
  %99 = getelementptr inbounds %struct.Db, ptr %98, i32 0, i32 4
  %100 = load ptr, ptr %99, align 8, !tbaa !29
  store ptr %100, ptr %18, align 8, !tbaa !5
  %101 = load ptr, ptr %18, align 8, !tbaa !5
  %102 = icmp ne ptr %101, null
  br i1 %102, label %103, label %190

103:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #2
  %104 = load ptr, ptr getelementptr inbounds (%struct.sqlite3_mem_methods, ptr getelementptr inbounds (%struct.Sqlite3Config, ptr @sqlite3Config, i32 0, i32 6), i32 0, i32 4), align 8, !tbaa !30
  %105 = call i32 %104(i32 noundef 40)
  %106 = load ptr, ptr %18, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.Schema, ptr %106, i32 0, i32 1
  %108 = getelementptr inbounds %struct.Hash, ptr %107, i32 0, i32 1
  %109 = load i32, ptr %108, align 4, !tbaa !35
  %110 = load ptr, ptr %18, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.Schema, ptr %110, i32 0, i32 3
  %112 = getelementptr inbounds %struct.Hash, ptr %111, i32 0, i32 1
  %113 = load i32, ptr %112, align 4, !tbaa !37
  %114 = add i32 %109, %113
  %115 = load ptr, ptr %18, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.Schema, ptr %115, i32 0, i32 2
  %117 = getelementptr inbounds %struct.Hash, ptr %116, i32 0, i32 1
  %118 = load i32, ptr %117, align 4, !tbaa !38
  %119 = add i32 %114, %118
  %120 = load ptr, ptr %18, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.Schema, ptr %120, i32 0, i32 4
  %122 = getelementptr inbounds %struct.Hash, ptr %121, i32 0, i32 1
  %123 = load i32, ptr %122, align 4, !tbaa !39
  %124 = add i32 %119, %123
  %125 = mul i32 %105, %124
  %126 = load i32, ptr %17, align 4, !tbaa !9
  %127 = add i32 %126, %125
  store i32 %127, ptr %17, align 4, !tbaa !9
  %128 = load ptr, ptr %18, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.Schema, ptr %128, i32 0, i32 1
  %130 = getelementptr inbounds %struct.Hash, ptr %129, i32 0, i32 3
  %131 = load ptr, ptr %130, align 8, !tbaa !40
  %132 = call i32 @sqlite3MallocSize(ptr noundef %131)
  %133 = load i32, ptr %17, align 4, !tbaa !9
  %134 = add nsw i32 %133, %132
  store i32 %134, ptr %17, align 4, !tbaa !9
  %135 = load ptr, ptr %18, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.Schema, ptr %135, i32 0, i32 3
  %137 = getelementptr inbounds %struct.Hash, ptr %136, i32 0, i32 3
  %138 = load ptr, ptr %137, align 8, !tbaa !41
  %139 = call i32 @sqlite3MallocSize(ptr noundef %138)
  %140 = load i32, ptr %17, align 4, !tbaa !9
  %141 = add nsw i32 %140, %139
  store i32 %141, ptr %17, align 4, !tbaa !9
  %142 = load ptr, ptr %18, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.Schema, ptr %142, i32 0, i32 2
  %144 = getelementptr inbounds %struct.Hash, ptr %143, i32 0, i32 3
  %145 = load ptr, ptr %144, align 8, !tbaa !42
  %146 = call i32 @sqlite3MallocSize(ptr noundef %145)
  %147 = load i32, ptr %17, align 4, !tbaa !9
  %148 = add nsw i32 %147, %146
  store i32 %148, ptr %17, align 4, !tbaa !9
  %149 = load ptr, ptr %18, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.Schema, ptr %149, i32 0, i32 4
  %151 = getelementptr inbounds %struct.Hash, ptr %150, i32 0, i32 3
  %152 = load ptr, ptr %151, align 8, !tbaa !43
  %153 = call i32 @sqlite3MallocSize(ptr noundef %152)
  %154 = load i32, ptr %17, align 4, !tbaa !9
  %155 = add nsw i32 %154, %153
  store i32 %155, ptr %17, align 4, !tbaa !9
  %156 = load ptr, ptr %18, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.Schema, ptr %156, i32 0, i32 3
  %158 = getelementptr inbounds %struct.Hash, ptr %157, i32 0, i32 2
  %159 = load ptr, ptr %158, align 8, !tbaa !44
  store ptr %159, ptr %19, align 8, !tbaa !5
  br label %160

160:                                              ; preds = %168, %103
  %161 = load ptr, ptr %19, align 8, !tbaa !5
  %162 = icmp ne ptr %161, null
  br i1 %162, label %163, label %172

163:                                              ; preds = %160
  %164 = load ptr, ptr %6, align 8, !tbaa !5
  %165 = load ptr, ptr %19, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.HashElem, ptr %165, i32 0, i32 2
  %167 = load ptr, ptr %166, align 8, !tbaa !45
  call void @sqlite3DeleteTrigger(ptr noundef %164, ptr noundef %167)
  br label %168

168:                                              ; preds = %163
  %169 = load ptr, ptr %19, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.HashElem, ptr %169, i32 0, i32 0
  %171 = load ptr, ptr %170, align 8, !tbaa !47
  store ptr %171, ptr %19, align 8, !tbaa !5
  br label %160, !llvm.loop !48

172:                                              ; preds = %160
  %173 = load ptr, ptr %18, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.Schema, ptr %173, i32 0, i32 1
  %175 = getelementptr inbounds %struct.Hash, ptr %174, i32 0, i32 2
  %176 = load ptr, ptr %175, align 8, !tbaa !49
  store ptr %176, ptr %19, align 8, !tbaa !5
  br label %177

177:                                              ; preds = %185, %172
  %178 = load ptr, ptr %19, align 8, !tbaa !5
  %179 = icmp ne ptr %178, null
  br i1 %179, label %180, label %189

180:                                              ; preds = %177
  %181 = load ptr, ptr %6, align 8, !tbaa !5
  %182 = load ptr, ptr %19, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.HashElem, ptr %182, i32 0, i32 2
  %184 = load ptr, ptr %183, align 8, !tbaa !45
  call void @sqlite3DeleteTable(ptr noundef %181, ptr noundef %184)
  br label %185

185:                                              ; preds = %180
  %186 = load ptr, ptr %19, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.HashElem, ptr %186, i32 0, i32 0
  %188 = load ptr, ptr %187, align 8, !tbaa !47
  store ptr %188, ptr %19, align 8, !tbaa !5
  br label %177, !llvm.loop !50

189:                                              ; preds = %177
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #2
  br label %190

190:                                              ; preds = %189, %92
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #2
  br label %191

191:                                              ; preds = %190
  %192 = load i32, ptr %16, align 4, !tbaa !9
  %193 = add nsw i32 %192, 1
  store i32 %193, ptr %16, align 4, !tbaa !9
  br label %86, !llvm.loop !51

194:                                              ; preds = %86
  %195 = load ptr, ptr %6, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.sqlite3, ptr %195, i32 0, i32 68
  store ptr null, ptr %196, align 8, !tbaa !28
  %197 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 0, ptr %197, align 4, !tbaa !9
  %198 = load i32, ptr %17, align 4, !tbaa !9
  %199 = load ptr, ptr %8, align 8, !tbaa !5
  store i32 %198, ptr %199, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #2
  br label %223

200:                                              ; preds = %5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #2
  store i32 0, ptr %21, align 4, !tbaa !9
  %201 = load ptr, ptr %6, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.sqlite3, ptr %201, i32 0, i32 68
  store ptr %21, ptr %202, align 8, !tbaa !28
  %203 = load ptr, ptr %6, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.sqlite3, ptr %203, i32 0, i32 25
  %205 = load ptr, ptr %204, align 8, !tbaa !52
  store ptr %205, ptr %20, align 8, !tbaa !5
  br label %206

206:                                              ; preds = %212, %200
  %207 = load ptr, ptr %20, align 8, !tbaa !5
  %208 = icmp ne ptr %207, null
  br i1 %208, label %209, label %216

209:                                              ; preds = %206
  %210 = load ptr, ptr %6, align 8, !tbaa !5
  %211 = load ptr, ptr %20, align 8, !tbaa !5
  call void @sqlite3VdbeDeleteObject(ptr noundef %210, ptr noundef %211)
  br label %212

212:                                              ; preds = %209
  %213 = load ptr, ptr %20, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.Vdbe, ptr %213, i32 0, i32 2
  %215 = load ptr, ptr %214, align 8, !tbaa !53
  store ptr %215, ptr %20, align 8, !tbaa !5
  br label %206, !llvm.loop !56

216:                                              ; preds = %206
  %217 = load ptr, ptr %6, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.sqlite3, ptr %217, i32 0, i32 68
  store ptr null, ptr %218, align 8, !tbaa !28
  %219 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 0, ptr %219, align 4, !tbaa !9
  %220 = load i32, ptr %21, align 4, !tbaa !9
  %221 = load ptr, ptr %8, align 8, !tbaa !5
  store i32 %220, ptr %221, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #2
  br label %223

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

223:                                              ; preds = %222, %216, %194, %78, %47
  %224 = load ptr, ptr %6, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.sqlite3, ptr %224, i32 0, i32 20
  %226 = load ptr, ptr %225, align 8, !tbaa !11
  call void @sqlite3_mutex_leave(ptr noundef %226)
  %227 = load i32, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #2
  ret i32 %227
}

; Function Attrs: nounwind uwtable
declare dso_local void @sqlite3_mutex_enter(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 void @sqlite3BtreeLeaveAll(ptr noundef) #1

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

; Function Attrs: nounwind uwtable
declare dso_local void @sqlite3_mutex_leave(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 88}
!12 = !{!"sqlite3", !6, i64 0, !10, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !7, i64 40, !7, i64 41, !7, i64 42, !7, i64 43, !7, i64 44, !7, i64 45, !10, i64 48, !10, i64 52, !6, i64 56, !13, i64 64, !10, i64 72, !10, i64 76, !10, i64 80, !6, i64 88, !7, i64 96, !14, i64 140, !10, i64 152, !6, i64 160, !6, i64 168, !10, i64 176, !10, i64 180, !6, i64 184, !6, 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, !7, i64 328, !15, i64 336, !6, i64 376, !6, i64 384, !6, i64 392, !6, i64 400, !10, i64 408, !17, i64 416, !6, i64 440, !6, i64 448, !10, i64 456, !6, i64 464, !18, i64 472, !17, i64 656, !19, i64 680, !10, i64 704, !7, i64 712, !6, i64 776, !10, i64 784, !10, i64 788, !7, i64 792, !13, i64 800, !6, i64 808}
!13 = !{!"long long", !7, i64 0}
!14 = !{!"sqlite3InitInfo", !10, i64 0, !10, i64 4, !7, i64 8, !7, i64 9}
!15 = !{!"Lookaside", !16, i64 0, !7, i64 2, !7, i64 3, !10, i64 4, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!16 = !{!"short", !7, i64 0}
!17 = !{!"Hash", !10, i64 0, !10, i64 4, !6, i64 8, !6, i64 16}
!18 = !{!"FuncDefHash", !7, i64 0}
!19 = !{!"BusyHandler", !6, i64 0, !6, i64 8, !10, i64 16}
!20 = !{!12, !10, i64 340}
!21 = !{!12, !10, i64 344}
!22 = !{!12, !10, i64 8}
!23 = !{!12, !6, i64 16}
!24 = !{!25, !6, i64 8}
!25 = !{!"Db", !6, i64 0, !6, i64 8, !7, i64 16, !7, i64 17, !6, i64 24}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!12, !6, i64 808}
!29 = !{!25, !6, i64 24}
!30 = !{!31, !6, i64 56}
!31 = !{!"Sqlite3Config", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !32, i64 24, !33, i64 88, !34, i64 160, !6, i64 248, !10, i64 256, !10, i64 260, !10, i64 264, !6, i64 272, !10, i64 280, !10, i64 284, !6, i64 288, !10, i64 296, !10, i64 300, !10, i64 304, !10, i64 308, !10, i64 312, !10, i64 316, !10, i64 320, !10, i64 324, !10, i64 328, !6, i64 336, !10, i64 344, !6, i64 352, !6, i64 360}
!32 = !{!"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}
!33 = !{!"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}
!34 = !{!"sqlite3_pcache_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, !6, i64 72, !6, i64 80}
!35 = !{!36, !10, i64 12}
!36 = !{!"Schema", !10, i64 0, !17, i64 8, !17, i64 32, !17, i64 56, !17, i64 80, !6, i64 104, !7, i64 112, !7, i64 113, !16, i64 114, !10, i64 116}
!37 = !{!36, !10, i64 60}
!38 = !{!36, !10, i64 36}
!39 = !{!36, !10, i64 84}
!40 = !{!36, !6, i64 24}
!41 = !{!36, !6, i64 72}
!42 = !{!36, !6, i64 48}
!43 = !{!36, !6, i64 96}
!44 = !{!36, !6, i64 64}
!45 = !{!46, !6, i64 16}
!46 = !{!"HashElem", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !10, i64 32}
!47 = !{!46, !6, i64 0}
!48 = distinct !{!48, !27}
!49 = !{!36, !6, i64 16}
!50 = distinct !{!50, !27}
!51 = distinct !{!51, !27}
!52 = !{!12, !6, i64 168}
!53 = !{!54, !6, i64 16}
!54 = !{!"Vdbe", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !6, i64 32, !10, i64 40, !10, i64 44, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !16, i64 80, !16, i64 82, !6, i64 88, !7, i64 96, !7, i64 97, !16, i64 98, !6, i64 104, !6, i64 112, !10, i64 120, !10, i64 124, !6, i64 128, !10, i64 136, !10, i64 140, !10, i64 144, !6, i64 152, !7, i64 160, !7, i64 161, !7, i64 162, !7, i64 163, !7, i64 164, !7, i64 165, !7, i64 166, !7, i64 167, !7, i64 168, !10, i64 172, !10, i64 176, !13, i64 184, !55, i64 192, !7, i64 288, !6, i64 304, !6, i64 312, !13, i64 320, !13, i64 328, !10, i64 336, !6, i64 344, !10, i64 352, !10, i64 356, !6, i64 360}
!55 = !{!"BtreeMutexArray", !10, i64 0, !7, i64 8}
!56 = distinct !{!56, !27}


; 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, i32, i32, i32, i32, i32, %struct.sqlite3_mem_methods, %struct.sqlite3_mutex_methods, %struct.sqlite3_pcache_methods, ptr, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, i32, ptr, ptr }
%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_methods = type { 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: 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 nocapture noundef writeonly %3, i32 noundef %4) local_unnamed_addr #1 {
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = getelementptr inbounds i8, ptr %0, i64 88
  %9 = load ptr, ptr %8, align 8, !tbaa !5
  tail call void @sqlite3_mutex_enter(ptr noundef %9)
  switch i32 %1, label %97 [
    i32 0, label %10
    i32 1, label %17
    i32 2, label %35
    i32 3, label %92
  ]

10:                                               ; preds = %5
  %11 = getelementptr inbounds i8, ptr %0, i64 340
  %12 = load i32, ptr %11, align 4, !tbaa !18
  store i32 %12, ptr %2, align 4, !tbaa !19
  %13 = getelementptr inbounds i8, ptr %0, i64 344
  %14 = load i32, ptr %13, align 8, !tbaa !20
  store i32 %14, ptr %3, align 4, !tbaa !19
  %.not73 = icmp eq i32 %4, 0
  br i1 %.not73, label %97, label %15

15:                                               ; preds = %10
  %16 = load i32, ptr %11, align 4, !tbaa !18
  store i32 %16, ptr %13, align 8, !tbaa !20
  br label %97

17:                                               ; preds = %5
  tail call void @sqlite3BtreeEnterAll(ptr noundef nonnull %0)
  %18 = getelementptr inbounds i8, ptr %0, i64 8
  %19 = load i32, ptr %18, align 8, !tbaa !21
  %20 = icmp sgt i32 %19, 0
  br i1 %20, label %.lr.ph95, label %._crit_edge96

.lr.ph95:                                         ; preds = %17
  %21 = getelementptr inbounds i8, ptr %0, i64 16
  br label %22

22:                                               ; preds = %.lr.ph95, %31
  %23 = phi i32 [ %19, %.lr.ph95 ], [ %32, %31 ]
  %indvars.iv98 = phi i64 [ 0, %.lr.ph95 ], [ %indvars.iv.next99, %31 ]
  %.06493 = phi i32 [ 0, %.lr.ph95 ], [ %.165, %31 ]
  %24 = load ptr, ptr %21, align 8, !tbaa !22
  %25 = getelementptr inbounds %struct.Db, ptr %24, i64 %indvars.iv98, i32 1
  %26 = load ptr, ptr %25, align 8, !tbaa !23
  %.not72 = icmp eq ptr %26, null
  br i1 %.not72, label %31, label %27

27:                                               ; preds = %22
  %28 = tail call ptr @sqlite3BtreePager(ptr noundef nonnull %26)
  %29 = tail call i32 @sqlite3PagerMemUsed(ptr noundef %28)
  %30 = add nsw i32 %29, %.06493
  %.pre102 = load i32, ptr %18, align 8, !tbaa !21
  br label %31

31:                                               ; preds = %27, %22
  %32 = phi i32 [ %.pre102, %27 ], [ %23, %22 ]
  %.165 = phi i32 [ %30, %27 ], [ %.06493, %22 ]
  %indvars.iv.next99 = add nuw nsw i64 %indvars.iv98, 1
  %33 = sext i32 %32 to i64
  %34 = icmp slt i64 %indvars.iv.next99, %33
  br i1 %34, label %22, label %._crit_edge96, !llvm.loop !25

._crit_edge96:                                    ; preds = %31, %17
  %.064.lcssa = phi i32 [ 0, %17 ], [ %.165, %31 ]
  tail call void @sqlite3BtreeLeaveAll(ptr noundef nonnull %0)
  store i32 %.064.lcssa, ptr %2, align 4, !tbaa !19
  store i32 0, ptr %3, align 4, !tbaa !19
  br label %97

35:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #2
  store i32 0, ptr %6, align 4, !tbaa !19
  %36 = getelementptr inbounds i8, ptr %0, i64 808
  store ptr %6, ptr %36, align 8, !tbaa !27
  %37 = getelementptr inbounds i8, ptr %0, i64 8
  %38 = load i32, ptr %37, align 8, !tbaa !21
  %39 = icmp sgt i32 %38, 0
  br i1 %39, label %.lr.ph90, label %._crit_edge91

.lr.ph90:                                         ; preds = %35
  %40 = getelementptr inbounds i8, ptr %0, i64 16
  br label %41

41:                                               ; preds = %.lr.ph90, %.loopexit
  %indvars.iv = phi i64 [ 0, %.lr.ph90 ], [ %indvars.iv.next, %.loopexit ]
  %42 = load ptr, ptr %40, align 8, !tbaa !22
  %43 = getelementptr inbounds %struct.Db, ptr %42, i64 %indvars.iv, i32 4
  %44 = load ptr, ptr %43, align 8, !tbaa !28
  %.not69 = icmp eq ptr %44, null
  br i1 %.not69, label %.loopexit, label %45

45:                                               ; preds = %41
  %46 = load ptr, ptr getelementptr inbounds (i8, ptr @sqlite3Config, i64 56), align 8, !tbaa !29
  %47 = call i32 %46(i32 noundef 40) #2
  %48 = getelementptr inbounds i8, ptr %44, i64 12
  %49 = load i32, ptr %48, align 4, !tbaa !34
  %50 = getelementptr inbounds i8, ptr %44, i64 60
  %51 = load i32, ptr %50, align 4, !tbaa !36
  %52 = add i32 %51, %49
  %53 = getelementptr inbounds i8, ptr %44, i64 36
  %54 = load i32, ptr %53, align 4, !tbaa !37
  %55 = add i32 %52, %54
  %56 = getelementptr inbounds i8, ptr %44, i64 84
  %57 = load i32, ptr %56, align 4, !tbaa !38
  %58 = add i32 %55, %57
  %59 = mul i32 %58, %47
  %60 = load i32, ptr %6, align 4, !tbaa !19
  %61 = add i32 %59, %60
  store i32 %61, ptr %6, align 4, !tbaa !19
  %62 = getelementptr inbounds i8, ptr %44, i64 24
  %63 = load ptr, ptr %62, align 8, !tbaa !39
  %64 = call i32 @sqlite3MallocSize(ptr noundef %63)
  %65 = load i32, ptr %6, align 4, !tbaa !19
  %66 = add nsw i32 %65, %64
  store i32 %66, ptr %6, align 4, !tbaa !19
  %67 = getelementptr inbounds i8, ptr %44, i64 72
  %68 = load ptr, ptr %67, align 8, !tbaa !40
  %69 = call i32 @sqlite3MallocSize(ptr noundef %68)
  %70 = load i32, ptr %6, align 4, !tbaa !19
  %71 = add nsw i32 %70, %69
  store i32 %71, ptr %6, align 4, !tbaa !19
  %72 = getelementptr inbounds i8, ptr %44, i64 48
  %73 = load ptr, ptr %72, align 8, !tbaa !41
  %74 = call i32 @sqlite3MallocSize(ptr noundef %73)
  %75 = load i32, ptr %6, align 4, !tbaa !19
  %76 = add nsw i32 %75, %74
  store i32 %76, ptr %6, align 4, !tbaa !19
  %77 = getelementptr inbounds i8, ptr %44, i64 96
  %78 = load ptr, ptr %77, align 8, !tbaa !42
  %79 = call i32 @sqlite3MallocSize(ptr noundef %78)
  %80 = load i32, ptr %6, align 4, !tbaa !19
  %81 = add nsw i32 %80, %79
  store i32 %81, ptr %6, align 4, !tbaa !19
  %82 = getelementptr inbounds i8, ptr %44, i64 64
  %.06177 = load ptr, ptr %82, align 8, !tbaa !43
  %.not7078 = icmp eq ptr %.06177, null
  br i1 %.not7078, label %._crit_edge82, label %.lr.ph81

.lr.ph81:                                         ; preds = %45, %.lr.ph81
  %.06179 = phi ptr [ %.061, %.lr.ph81 ], [ %.06177, %45 ]
  %83 = getelementptr inbounds i8, ptr %.06179, i64 16
  %84 = load ptr, ptr %83, align 8, !tbaa !44
  call void @sqlite3DeleteTrigger(ptr noundef %0, ptr noundef %84)
  %.061 = load ptr, ptr %.06179, align 8, !tbaa !43
  %.not70 = icmp eq ptr %.061, null
  br i1 %.not70, label %._crit_edge82, label %.lr.ph81, !llvm.loop !46

._crit_edge82:                                    ; preds = %.lr.ph81, %45
  %85 = getelementptr inbounds i8, ptr %44, i64 16
  %.183 = load ptr, ptr %85, align 8, !tbaa !43
  %.not7184 = icmp eq ptr %.183, null
  br i1 %.not7184, label %.loopexit, label %.lr.ph87

.lr.ph87:                                         ; preds = %._crit_edge82, %.lr.ph87
  %.185 = phi ptr [ %.1, %.lr.ph87 ], [ %.183, %._crit_edge82 ]
  %86 = getelementptr inbounds i8, ptr %.185, i64 16
  %87 = load ptr, ptr %86, align 8, !tbaa !44
  call void @sqlite3DeleteTable(ptr noundef %0, ptr noundef %87)
  %.1 = load ptr, ptr %.185, align 8, !tbaa !43
  %.not71 = icmp eq ptr %.1, null
  br i1 %.not71, label %.loopexit, label %.lr.ph87, !llvm.loop !47

.loopexit:                                        ; preds = %.lr.ph87, %._crit_edge82, %41
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %88 = load i32, ptr %37, align 8, !tbaa !21
  %89 = sext i32 %88 to i64
  %90 = icmp slt i64 %indvars.iv.next, %89
  br i1 %90, label %41, label %._crit_edge91.loopexit, !llvm.loop !48

._crit_edge91.loopexit:                           ; preds = %.loopexit
  %.pre101 = load i32, ptr %6, align 4, !tbaa !19
  br label %._crit_edge91

._crit_edge91:                                    ; preds = %._crit_edge91.loopexit, %35
  %91 = phi i32 [ %.pre101, %._crit_edge91.loopexit ], [ 0, %35 ]
  store ptr null, ptr %36, align 8, !tbaa !27
  store i32 0, ptr %3, align 4, !tbaa !19
  store i32 %91, ptr %2, align 4, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #2
  br label %97

92:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #2
  store i32 0, ptr %7, align 4, !tbaa !19
  %93 = getelementptr inbounds i8, ptr %0, i64 808
  store ptr %7, ptr %93, align 8, !tbaa !27
  %94 = getelementptr inbounds i8, ptr %0, i64 168
  %.074 = load ptr, ptr %94, align 8, !tbaa !43
  %.not75 = icmp eq ptr %.074, null
  br i1 %.not75, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %92, %.lr.ph
  %.076 = phi ptr [ %.0, %.lr.ph ], [ %.074, %92 ]
  call void @sqlite3VdbeDeleteObject(ptr noundef %0, ptr noundef nonnull %.076)
  %95 = getelementptr inbounds i8, ptr %.076, i64 16
  %.0 = load ptr, ptr %95, align 8, !tbaa !43
  %.not = icmp eq ptr %.0, null
  br i1 %.not, label %._crit_edge.loopexit, label %.lr.ph, !llvm.loop !49

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %.pre = load i32, ptr %7, align 4, !tbaa !19
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %92
  %96 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ 0, %92 ]
  store ptr null, ptr %93, align 8, !tbaa !27
  store i32 0, ptr %3, align 4, !tbaa !19
  store i32 %96, ptr %2, align 4, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #2
  br label %97

97:                                               ; preds = %5, %10, %15, %._crit_edge, %._crit_edge91, %._crit_edge96
  %.062 = phi i32 [ 0, %._crit_edge ], [ 0, %._crit_edge91 ], [ 0, %._crit_edge96 ], [ 0, %15 ], [ 0, %10 ], [ 1, %5 ]
  %98 = load ptr, ptr %8, align 8, !tbaa !5
  call void @sqlite3_mutex_leave(ptr noundef %98)
  ret i32 %.062
}

; Function Attrs: nounwind uwtable
declare dso_local void @sqlite3_mutex_enter(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 void @sqlite3BtreeLeaveAll(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare dso_local void @sqlite3_mutex_leave(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 88}
!6 = !{!"sqlite3", !7, i64 0, !10, i64 8, !7, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !8, i64 40, !8, i64 41, !8, i64 42, !8, i64 43, !8, i64 44, !8, i64 45, !10, i64 48, !10, i64 52, !7, i64 56, !11, i64 64, !10, i64 72, !10, i64 76, !10, i64 80, !7, i64 88, !8, i64 96, !12, i64 140, !10, i64 152, !7, i64 160, !7, i64 168, !10, i64 176, !10, i64 180, !7, i64 184, !7, i64 192, !7, i64 200, !7, i64 208, !7, i64 216, !7, 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, !8, i64 328, !13, i64 336, !7, i64 376, !7, i64 384, !7, i64 392, !7, i64 400, !10, i64 408, !15, i64 416, !7, i64 440, !7, i64 448, !10, i64 456, !7, i64 464, !16, i64 472, !15, i64 656, !17, i64 680, !10, i64 704, !8, i64 712, !7, i64 776, !10, i64 784, !10, i64 788, !8, i64 792, !11, i64 800, !7, i64 808}
!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 = !{!"sqlite3InitInfo", !10, i64 0, !10, i64 4, !8, i64 8, !8, i64 9}
!13 = !{!"Lookaside", !14, i64 0, !8, i64 2, !8, i64 3, !10, i64 4, !10, i64 8, !7, i64 16, !7, i64 24, !7, i64 32}
!14 = !{!"short", !8, i64 0}
!15 = !{!"Hash", !10, i64 0, !10, i64 4, !7, i64 8, !7, i64 16}
!16 = !{!"FuncDefHash", !8, i64 0}
!17 = !{!"BusyHandler", !7, i64 0, !7, i64 8, !10, i64 16}
!18 = !{!6, !10, i64 340}
!19 = !{!10, !10, i64 0}
!20 = !{!6, !10, i64 344}
!21 = !{!6, !10, i64 8}
!22 = !{!6, !7, i64 16}
!23 = !{!24, !7, i64 8}
!24 = !{!"Db", !7, i64 0, !7, i64 8, !8, i64 16, !8, i64 17, !7, i64 24}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!6, !7, i64 808}
!28 = !{!24, !7, i64 24}
!29 = !{!30, !7, i64 56}
!30 = !{!"Sqlite3Config", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !31, i64 24, !32, i64 88, !33, i64 160, !7, i64 248, !10, i64 256, !10, i64 260, !10, i64 264, !7, i64 272, !10, i64 280, !10, i64 284, !7, i64 288, !10, i64 296, !10, i64 300, !10, i64 304, !10, i64 308, !10, i64 312, !10, i64 316, !10, i64 320, !10, i64 324, !10, i64 328, !7, i64 336, !10, i64 344, !7, i64 352, !7, i64 360}
!31 = !{!"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}
!32 = !{!"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}
!33 = !{!"sqlite3_pcache_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, !7, i64 72, !7, i64 80}
!34 = !{!35, !10, i64 12}
!35 = !{!"Schema", !10, i64 0, !15, i64 8, !15, i64 32, !15, i64 56, !15, i64 80, !7, i64 104, !8, i64 112, !8, i64 113, !14, i64 114, !10, i64 116}
!36 = !{!35, !10, i64 60}
!37 = !{!35, !10, i64 36}
!38 = !{!35, !10, i64 84}
!39 = !{!35, !7, i64 24}
!40 = !{!35, !7, i64 72}
!41 = !{!35, !7, i64 48}
!42 = !{!35, !7, i64 96}
!43 = !{!7, !7, i64 0}
!44 = !{!45, !7, i64 16}
!45 = !{!"HashElem", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32}
!46 = distinct !{!46, !26}
!47 = distinct !{!47, !26}
!48 = distinct !{!48, !26}
!49 = distinct !{!49, !26}


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