; 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.sqlite3_backup = type { ptr, ptr, i32, i32, i32, ptr, ptr, i32, i32, i32, i32, 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.Btree = type { ptr, ptr, i8, i8, i8, i32, i32, ptr, ptr, %struct.BtLock }
%struct.BtLock = type { ptr, i32, i8, ptr }
%struct.BtShared = type { ptr, ptr, ptr, ptr, i8, i8, i8, i8, i8, i8, i8, i16, i16, i16, i16, i8, i8, i32, i32, i32, i32, ptr, ptr, ptr, ptr, i32, ptr, ptr, ptr, i8, i8, ptr }

@sqlite3PendingByte = external hidden global i32, align 4

; 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
declare dso_local void @sqlite3_mutex_enter(ptr noundef) #1

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @sqlite3_backup_step(ptr noundef %0, i32 noundef %1) #1 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i64, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #2
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #2
  store i32 0, ptr %8, align 4, !tbaa !9
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.sqlite3_backup, ptr %25, i32 0, i32 5
  %27 = load ptr, ptr %26, align 8, !tbaa !11
  %28 = getelementptr inbounds %struct.sqlite3, ptr %27, i32 0, i32 20
  %29 = load ptr, ptr %28, align 8, !tbaa !13
  call void @sqlite3_mutex_enter(ptr noundef %29)
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.sqlite3_backup, ptr %30, i32 0, i32 6
  %32 = load ptr, ptr %31, align 8, !tbaa !22
  call void @sqlite3BtreeEnter(ptr noundef %32)
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.sqlite3_backup, ptr %33, i32 0, i32 0
  %35 = load ptr, ptr %34, align 8, !tbaa !23
  %36 = icmp ne ptr %35, null
  br i1 %36, label %37, label %43

37:                                               ; preds = %2
  %38 = load ptr, ptr %3, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.sqlite3_backup, ptr %38, i32 0, i32 0
  %40 = load ptr, ptr %39, align 8, !tbaa !23
  %41 = getelementptr inbounds %struct.sqlite3, ptr %40, i32 0, i32 20
  %42 = load ptr, ptr %41, align 8, !tbaa !13
  call void @sqlite3_mutex_enter(ptr noundef %42)
  br label %43

43:                                               ; preds = %37, %2
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.sqlite3_backup, ptr %44, i32 0, i32 7
  %46 = load i32, ptr %45, align 8, !tbaa !24
  store i32 %46, ptr %5, align 4, !tbaa !9
  %47 = load i32, ptr %5, align 4, !tbaa !9
  %48 = call i32 @isFatalError(i32 noundef %47)
  %49 = icmp ne i32 %48, 0
  br i1 %49, label %403, label %50

50:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #2
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.sqlite3_backup, ptr %51, i32 0, i32 6
  %53 = load ptr, ptr %52, align 8, !tbaa !22
  %54 = call ptr @sqlite3BtreePager(ptr noundef %53)
  store ptr %54, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #2
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.sqlite3_backup, ptr %55, i32 0, i32 1
  %57 = load ptr, ptr %56, align 8, !tbaa !25
  %58 = call ptr @sqlite3BtreePager(ptr noundef %57)
  store ptr %58, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #2
  store i32 -1, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #2
  store i32 0, ptr %13, align 4, !tbaa !9
  %59 = load ptr, ptr %3, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.sqlite3_backup, ptr %59, i32 0, i32 0
  %61 = load ptr, ptr %60, align 8, !tbaa !23
  %62 = icmp ne ptr %61, null
  br i1 %62, label %63, label %74

63:                                               ; preds = %50
  %64 = load ptr, ptr %3, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.sqlite3_backup, ptr %64, i32 0, i32 6
  %66 = load ptr, ptr %65, align 8, !tbaa !22
  %67 = getelementptr inbounds %struct.Btree, ptr %66, i32 0, i32 1
  %68 = load ptr, ptr %67, align 8, !tbaa !26
  %69 = getelementptr inbounds %struct.BtShared, ptr %68, i32 0, i32 15
  %70 = load i8, ptr %69, align 8, !tbaa !29
  %71 = zext i8 %70 to i32
  %72 = icmp eq i32 %71, 2
  br i1 %72, label %73, label %74

73:                                               ; preds = %63
  store i32 5, ptr %5, align 4, !tbaa !9
  br label %75

74:                                               ; preds = %63, %50
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %75

75:                                               ; preds = %74, %73
  %76 = load i32, ptr %5, align 4, !tbaa !9
  %77 = icmp eq i32 0, %76
  br i1 %77, label %78, label %97

78:                                               ; preds = %75
  %79 = load ptr, ptr %3, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.sqlite3_backup, ptr %79, i32 0, i32 3
  %81 = load i32, ptr %80, align 4, !tbaa !31
  %82 = icmp eq i32 %81, 0
  br i1 %82, label %83, label %97

83:                                               ; preds = %78
  %84 = load ptr, ptr %3, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.sqlite3_backup, ptr %84, i32 0, i32 1
  %86 = load ptr, ptr %85, align 8, !tbaa !25
  %87 = call i32 @sqlite3BtreeBeginTrans(ptr noundef %86, i32 noundef 2)
  store i32 %87, ptr %5, align 4, !tbaa !9
  %88 = icmp eq i32 0, %87
  br i1 %88, label %89, label %97

89:                                               ; preds = %83
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.sqlite3_backup, ptr %90, i32 0, i32 3
  store i32 1, ptr %91, align 4, !tbaa !31
  %92 = load ptr, ptr %3, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.sqlite3_backup, ptr %92, i32 0, i32 1
  %94 = load ptr, ptr %93, align 8, !tbaa !25
  %95 = load ptr, ptr %3, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.sqlite3_backup, ptr %95, i32 0, i32 2
  call void @sqlite3BtreeGetMeta(ptr noundef %94, i32 noundef 1, ptr noundef %96)
  br label %97

97:                                               ; preds = %89, %83, %78, %75
  %98 = load i32, ptr %5, align 4, !tbaa !9
  %99 = icmp eq i32 %98, 0
  br i1 %99, label %100, label %111

100:                                              ; preds = %97
  %101 = load ptr, ptr %3, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.sqlite3_backup, ptr %101, i32 0, i32 6
  %103 = load ptr, ptr %102, align 8, !tbaa !22
  %104 = call i32 @sqlite3BtreeIsInReadTrans(ptr noundef %103)
  %105 = icmp eq i32 0, %104
  br i1 %105, label %106, label %111

106:                                              ; preds = %100
  %107 = load ptr, ptr %3, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.sqlite3_backup, ptr %107, i32 0, i32 6
  %109 = load ptr, ptr %108, align 8, !tbaa !22
  %110 = call i32 @sqlite3BtreeBeginTrans(ptr noundef %109, i32 noundef 0)
  store i32 %110, ptr %5, align 4, !tbaa !9
  store i32 1, ptr %13, align 4, !tbaa !9
  br label %111

111:                                              ; preds = %106, %100, %97
  %112 = load ptr, ptr %3, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.sqlite3_backup, ptr %112, i32 0, i32 6
  %114 = load ptr, ptr %113, align 8, !tbaa !22
  %115 = call i32 @sqlite3BtreeGetPageSize(ptr noundef %114)
  store i32 %115, ptr %7, align 4, !tbaa !9
  %116 = load ptr, ptr %3, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.sqlite3_backup, ptr %116, i32 0, i32 1
  %118 = load ptr, ptr %117, align 8, !tbaa !25
  %119 = call i32 @sqlite3BtreeGetPageSize(ptr noundef %118)
  store i32 %119, ptr %8, align 4, !tbaa !9
  %120 = load ptr, ptr %3, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.sqlite3_backup, ptr %120, i32 0, i32 1
  %122 = load ptr, ptr %121, align 8, !tbaa !25
  %123 = call ptr @sqlite3BtreePager(ptr noundef %122)
  %124 = call i32 @sqlite3PagerGetJournalMode(ptr noundef %123)
  store i32 %124, ptr %6, align 4, !tbaa !9
  %125 = load i32, ptr %5, align 4, !tbaa !9
  %126 = icmp eq i32 0, %125
  br i1 %126, label %127, label %135

127:                                              ; preds = %111
  %128 = load i32, ptr %6, align 4, !tbaa !9
  %129 = icmp eq i32 %128, 5
  br i1 %129, label %130, label %135

130:                                              ; preds = %127
  %131 = load i32, ptr %7, align 4, !tbaa !9
  %132 = load i32, ptr %8, align 4, !tbaa !9
  %133 = icmp ne i32 %131, %132
  br i1 %133, label %134, label %135

134:                                              ; preds = %130
  store i32 8, ptr %5, align 4, !tbaa !9
  br label %135

135:                                              ; preds = %134, %130, %127, %111
  %136 = load ptr, ptr %3, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.sqlite3_backup, ptr %136, i32 0, i32 6
  %138 = load ptr, ptr %137, align 8, !tbaa !22
  %139 = call i32 @sqlite3BtreeLastPage(ptr noundef %138)
  store i32 %139, ptr %12, align 4, !tbaa !9
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %140

140:                                              ; preds = %194, %135
  %141 = load i32, ptr %4, align 4, !tbaa !9
  %142 = icmp slt i32 %141, 0
  br i1 %142, label %147, label %143

143:                                              ; preds = %140
  %144 = load i32, ptr %11, align 4, !tbaa !9
  %145 = load i32, ptr %4, align 4, !tbaa !9
  %146 = icmp slt i32 %144, %145
  br i1 %146, label %147, label %157

147:                                              ; preds = %143, %140
  %148 = load ptr, ptr %3, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.sqlite3_backup, ptr %148, i32 0, i32 4
  %150 = load i32, ptr %149, align 8, !tbaa !32
  %151 = load i32, ptr %12, align 4, !tbaa !9
  %152 = icmp ule i32 %150, %151
  br i1 %152, label %153, label %157

153:                                              ; preds = %147
  %154 = load i32, ptr %5, align 4, !tbaa !9
  %155 = icmp ne i32 %154, 0
  %156 = xor i1 %155, true
  br label %157

157:                                              ; preds = %153, %147, %143
  %158 = phi i1 [ false, %147 ], [ false, %143 ], [ %156, %153 ]
  br i1 %158, label %159, label %197

159:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #2
  %160 = load ptr, ptr %3, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.sqlite3_backup, ptr %160, i32 0, i32 4
  %162 = load i32, ptr %161, align 8, !tbaa !32
  store i32 %162, ptr %14, align 4, !tbaa !9
  %163 = load i32, ptr %14, align 4, !tbaa !9
  %164 = load i32, ptr @sqlite3PendingByte, align 4, !tbaa !9
  %165 = load ptr, ptr %3, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.sqlite3_backup, ptr %165, i32 0, i32 6
  %167 = load ptr, ptr %166, align 8, !tbaa !22
  %168 = getelementptr inbounds %struct.Btree, ptr %167, i32 0, i32 1
  %169 = load ptr, ptr %168, align 8, !tbaa !26
  %170 = getelementptr inbounds %struct.BtShared, ptr %169, i32 0, i32 17
  %171 = load i32, ptr %170, align 4, !tbaa !33
  %172 = udiv i32 %164, %171
  %173 = add i32 %172, 1
  %174 = icmp ne i32 %163, %173
  br i1 %174, label %175, label %189

175:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #2
  %176 = load ptr, ptr %9, align 8, !tbaa !5
  %177 = load i32, ptr %14, align 4, !tbaa !9
  %178 = call i32 @sqlite3PagerAcquire(ptr noundef %176, i32 noundef %177, ptr noundef %15, i32 noundef 0)
  store i32 %178, ptr %5, align 4, !tbaa !9
  %179 = load i32, ptr %5, align 4, !tbaa !9
  %180 = icmp eq i32 %179, 0
  br i1 %180, label %181, label %188

181:                                              ; preds = %175
  %182 = load ptr, ptr %3, align 8, !tbaa !5
  %183 = load i32, ptr %14, align 4, !tbaa !9
  %184 = load ptr, ptr %15, align 8, !tbaa !5
  %185 = call ptr @sqlite3PagerGetData(ptr noundef %184)
  %186 = call i32 @backupOnePage(ptr noundef %182, i32 noundef %183, ptr noundef %185)
  store i32 %186, ptr %5, align 4, !tbaa !9
  %187 = load ptr, ptr %15, align 8, !tbaa !5
  call void @sqlite3PagerUnref(ptr noundef %187)
  br label %188

188:                                              ; preds = %181, %175
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #2
  br label %189

189:                                              ; preds = %188, %159
  %190 = load ptr, ptr %3, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.sqlite3_backup, ptr %190, i32 0, i32 4
  %192 = load i32, ptr %191, align 8, !tbaa !32
  %193 = add i32 %192, 1
  store i32 %193, ptr %191, align 8, !tbaa !32
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #2
  br label %194

194:                                              ; preds = %189
  %195 = load i32, ptr %11, align 4, !tbaa !9
  %196 = add nsw i32 %195, 1
  store i32 %196, ptr %11, align 4, !tbaa !9
  br label %140, !llvm.loop !34

197:                                              ; preds = %157
  %198 = load i32, ptr %5, align 4, !tbaa !9
  %199 = icmp eq i32 %198, 0
  br i1 %199, label %200, label %227

200:                                              ; preds = %197
  %201 = load i32, ptr %12, align 4, !tbaa !9
  %202 = load ptr, ptr %3, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.sqlite3_backup, ptr %202, i32 0, i32 9
  store i32 %201, ptr %203, align 8, !tbaa !36
  %204 = load i32, ptr %12, align 4, !tbaa !9
  %205 = add nsw i32 %204, 1
  %206 = load ptr, ptr %3, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.sqlite3_backup, ptr %206, i32 0, i32 4
  %208 = load i32, ptr %207, align 8, !tbaa !32
  %209 = sub i32 %205, %208
  %210 = load ptr, ptr %3, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.sqlite3_backup, ptr %210, i32 0, i32 8
  store i32 %209, ptr %211, align 4, !tbaa !37
  %212 = load ptr, ptr %3, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.sqlite3_backup, ptr %212, i32 0, i32 4
  %214 = load i32, ptr %213, align 8, !tbaa !32
  %215 = load i32, ptr %12, align 4, !tbaa !9
  %216 = icmp ugt i32 %214, %215
  br i1 %216, label %217, label %218

217:                                              ; preds = %200
  store i32 101, ptr %5, align 4, !tbaa !9
  br label %226

218:                                              ; preds = %200
  %219 = load ptr, ptr %3, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.sqlite3_backup, ptr %219, i32 0, i32 10
  %221 = load i32, ptr %220, align 4, !tbaa !38
  %222 = icmp ne i32 %221, 0
  br i1 %222, label %225, label %223

223:                                              ; preds = %218
  %224 = load ptr, ptr %3, align 8, !tbaa !5
  call void @attachBackupObject(ptr noundef %224)
  br label %225

225:                                              ; preds = %223, %218
  br label %226

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

227:                                              ; preds = %226, %197
  %228 = load i32, ptr %5, align 4, !tbaa !9
  %229 = icmp eq i32 %228, 101
  br i1 %229, label %230, label %383

230:                                              ; preds = %227
  %231 = load ptr, ptr %3, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.sqlite3_backup, ptr %231, i32 0, i32 1
  %233 = load ptr, ptr %232, align 8, !tbaa !25
  %234 = load ptr, ptr %3, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.sqlite3_backup, ptr %234, i32 0, i32 2
  %236 = load i32, ptr %235, align 8, !tbaa !39
  %237 = add i32 %236, 1
  %238 = call i32 @sqlite3BtreeUpdateMeta(ptr noundef %233, i32 noundef 1, i32 noundef %237)
  store i32 %238, ptr %5, align 4, !tbaa !9
  %239 = icmp eq i32 %238, 0
  br i1 %239, label %240, label %383

240:                                              ; preds = %230
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #2
  %241 = load ptr, ptr %3, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.sqlite3_backup, ptr %241, i32 0, i32 0
  %243 = load ptr, ptr %242, align 8, !tbaa !23
  %244 = icmp ne ptr %243, null
  br i1 %244, label %245, label %249

245:                                              ; preds = %240
  %246 = load ptr, ptr %3, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.sqlite3_backup, ptr %246, i32 0, i32 0
  %248 = load ptr, ptr %247, align 8, !tbaa !23
  call void @sqlite3ResetInternalSchema(ptr noundef %248, i32 noundef 0)
  br label %249

249:                                              ; preds = %245, %240
  %250 = load i32, ptr %7, align 4, !tbaa !9
  %251 = load i32, ptr %8, align 4, !tbaa !9
  %252 = icmp slt i32 %250, %251
  br i1 %252, label %253, label %279

253:                                              ; preds = %249
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #2
  %254 = load i32, ptr %8, align 4, !tbaa !9
  %255 = load i32, ptr %7, align 4, !tbaa !9
  %256 = sdiv i32 %254, %255
  store i32 %256, ptr %17, align 4, !tbaa !9
  %257 = load i32, ptr %12, align 4, !tbaa !9
  %258 = load i32, ptr %17, align 4, !tbaa !9
  %259 = add nsw i32 %257, %258
  %260 = sub nsw i32 %259, 1
  %261 = load i32, ptr %17, align 4, !tbaa !9
  %262 = sdiv i32 %260, %261
  store i32 %262, ptr %16, align 4, !tbaa !9
  %263 = load i32, ptr %16, align 4, !tbaa !9
  %264 = load i32, ptr @sqlite3PendingByte, align 4, !tbaa !9
  %265 = load ptr, ptr %3, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.sqlite3_backup, ptr %265, i32 0, i32 1
  %267 = load ptr, ptr %266, align 8, !tbaa !25
  %268 = getelementptr inbounds %struct.Btree, ptr %267, i32 0, i32 1
  %269 = load ptr, ptr %268, align 8, !tbaa !26
  %270 = getelementptr inbounds %struct.BtShared, ptr %269, i32 0, i32 17
  %271 = load i32, ptr %270, align 4, !tbaa !33
  %272 = udiv i32 %264, %271
  %273 = add i32 %272, 1
  %274 = icmp eq i32 %263, %273
  br i1 %274, label %275, label %278

275:                                              ; preds = %253
  %276 = load i32, ptr %16, align 4, !tbaa !9
  %277 = add nsw i32 %276, -1
  store i32 %277, ptr %16, align 4, !tbaa !9
  br label %278

278:                                              ; preds = %275, %253
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #2
  br label %285

279:                                              ; preds = %249
  %280 = load i32, ptr %12, align 4, !tbaa !9
  %281 = load i32, ptr %7, align 4, !tbaa !9
  %282 = load i32, ptr %8, align 4, !tbaa !9
  %283 = sdiv i32 %281, %282
  %284 = mul nsw i32 %280, %283
  store i32 %284, ptr %16, align 4, !tbaa !9
  br label %285

285:                                              ; preds = %279, %278
  %286 = load ptr, ptr %10, align 8, !tbaa !5
  %287 = load i32, ptr %16, align 4, !tbaa !9
  call void @sqlite3PagerTruncateImage(ptr noundef %286, i32 noundef %287)
  %288 = load i32, ptr %7, align 4, !tbaa !9
  %289 = load i32, ptr %8, align 4, !tbaa !9
  %290 = icmp slt i32 %288, %289
  br i1 %290, label %291, label %369

291:                                              ; preds = %285
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #2
  %292 = load i32, ptr %7, align 4, !tbaa !9
  %293 = sext i32 %292 to i64
  %294 = load i32, ptr %12, align 4, !tbaa !9
  %295 = sext i32 %294 to i64
  %296 = mul nsw i64 %293, %295
  store i64 %296, ptr %18, align 8, !tbaa !40
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #2
  %297 = load ptr, ptr %10, align 8, !tbaa !5
  %298 = call ptr @sqlite3PagerFile(ptr noundef %297)
  store ptr %298, ptr %19, align 8, !tbaa !5
  %299 = load ptr, ptr %10, align 8, !tbaa !5
  %300 = call i32 @sqlite3PagerCommitPhaseOne(ptr noundef %299, ptr noundef null, i32 noundef 1)
  store i32 %300, ptr %5, align 4, !tbaa !9
  %301 = icmp eq i32 0, %300
  br i1 %301, label %302, label %368

302:                                              ; preds = %291
  %303 = load ptr, ptr %19, align 8, !tbaa !5
  %304 = load i64, ptr %18, align 8, !tbaa !40
  %305 = call i32 @backupTruncateFile(ptr noundef %303, i64 noundef %304)
  store i32 %305, ptr %5, align 4, !tbaa !9
  %306 = icmp eq i32 0, %305
  br i1 %306, label %307, label %368

307:                                              ; preds = %302
  %308 = load ptr, ptr %10, align 8, !tbaa !5
  %309 = call i32 @sqlite3PagerSync(ptr noundef %308)
  store i32 %309, ptr %5, align 4, !tbaa !9
  %310 = icmp eq i32 0, %309
  br i1 %310, label %311, label %368

311:                                              ; preds = %307
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #2
  %312 = load i32, ptr @sqlite3PendingByte, align 4, !tbaa !9
  %313 = load i32, ptr %8, align 4, !tbaa !9
  %314 = add nsw i32 %312, %313
  %315 = sext i32 %314 to i64
  %316 = load i64, ptr %18, align 8, !tbaa !40
  %317 = icmp slt i64 %315, %316
  br i1 %317, label %318, label %323

318:                                              ; preds = %311
  %319 = load i32, ptr @sqlite3PendingByte, align 4, !tbaa !9
  %320 = load i32, ptr %8, align 4, !tbaa !9
  %321 = add nsw i32 %319, %320
  %322 = sext i32 %321 to i64
  br label %325

323:                                              ; preds = %311
  %324 = load i64, ptr %18, align 8, !tbaa !40
  br label %325

325:                                              ; preds = %323, %318
  %326 = phi i64 [ %322, %318 ], [ %324, %323 ]
  store i64 %326, ptr %21, align 8, !tbaa !40
  %327 = load i32, ptr @sqlite3PendingByte, align 4, !tbaa !9
  %328 = load i32, ptr %7, align 4, !tbaa !9
  %329 = add nsw i32 %327, %328
  %330 = sext i32 %329 to i64
  store i64 %330, ptr %20, align 8, !tbaa !40
  br label %331

331:                                              ; preds = %362, %325
  %332 = load i32, ptr %5, align 4, !tbaa !9
  %333 = icmp eq i32 %332, 0
  br i1 %333, label %334, label %338

334:                                              ; preds = %331
  %335 = load i64, ptr %20, align 8, !tbaa !40
  %336 = load i64, ptr %21, align 8, !tbaa !40
  %337 = icmp slt i64 %335, %336
  br label %338

338:                                              ; preds = %334, %331
  %339 = phi i1 [ false, %331 ], [ %337, %334 ]
  br i1 %339, label %340, label %367

340:                                              ; preds = %338
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #2
  store ptr null, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #2
  %341 = load i64, ptr %20, align 8, !tbaa !40
  %342 = load i32, ptr %7, align 4, !tbaa !9
  %343 = sext i32 %342 to i64
  %344 = sdiv i64 %341, %343
  %345 = add nsw i64 %344, 1
  %346 = trunc i64 %345 to i32
  store i32 %346, ptr %23, align 4, !tbaa !9
  %347 = load ptr, ptr %9, align 8, !tbaa !5
  %348 = load i32, ptr %23, align 4, !tbaa !9
  %349 = call i32 @sqlite3PagerAcquire(ptr noundef %347, i32 noundef %348, ptr noundef %22, i32 noundef 0)
  store i32 %349, ptr %5, align 4, !tbaa !9
  %350 = load i32, ptr %5, align 4, !tbaa !9
  %351 = icmp eq i32 %350, 0
  br i1 %351, label %352, label %360

352:                                              ; preds = %340
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #2
  %353 = load ptr, ptr %22, align 8, !tbaa !5
  %354 = call ptr @sqlite3PagerGetData(ptr noundef %353)
  store ptr %354, ptr %24, align 8, !tbaa !5
  %355 = load ptr, ptr %19, align 8, !tbaa !5
  %356 = load ptr, ptr %24, align 8, !tbaa !5
  %357 = load i32, ptr %7, align 4, !tbaa !9
  %358 = load i64, ptr %20, align 8, !tbaa !40
  %359 = call i32 @sqlite3OsWrite(ptr noundef %355, ptr noundef %356, i32 noundef %357, i64 noundef %358)
  store i32 %359, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #2
  br label %360

360:                                              ; preds = %352, %340
  %361 = load ptr, ptr %22, align 8, !tbaa !5
  call void @sqlite3PagerUnref(ptr noundef %361)
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #2
  br label %362

362:                                              ; preds = %360
  %363 = load i32, ptr %7, align 4, !tbaa !9
  %364 = sext i32 %363 to i64
  %365 = load i64, ptr %20, align 8, !tbaa !40
  %366 = add nsw i64 %365, %364
  store i64 %366, ptr %20, align 8, !tbaa !40
  br label %331, !llvm.loop !41

367:                                              ; preds = %338
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #2
  br label %368

368:                                              ; preds = %367, %307, %302, %291
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #2
  br label %372

369:                                              ; preds = %285
  %370 = load ptr, ptr %10, align 8, !tbaa !5
  %371 = call i32 @sqlite3PagerCommitPhaseOne(ptr noundef %370, ptr noundef null, i32 noundef 0)
  store i32 %371, ptr %5, align 4, !tbaa !9
  br label %372

372:                                              ; preds = %369, %368
  %373 = load i32, ptr %5, align 4, !tbaa !9
  %374 = icmp eq i32 0, %373
  br i1 %374, label %375, label %382

375:                                              ; preds = %372
  %376 = load ptr, ptr %3, align 8, !tbaa !5
  %377 = getelementptr inbounds %struct.sqlite3_backup, ptr %376, i32 0, i32 1
  %378 = load ptr, ptr %377, align 8, !tbaa !25
  %379 = call i32 @sqlite3BtreeCommitPhaseTwo(ptr noundef %378)
  store i32 %379, ptr %5, align 4, !tbaa !9
  %380 = icmp eq i32 0, %379
  br i1 %380, label %381, label %382

381:                                              ; preds = %375
  store i32 101, ptr %5, align 4, !tbaa !9
  br label %382

382:                                              ; preds = %381, %375, %372
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #2
  br label %383

383:                                              ; preds = %382, %230, %227
  %384 = load i32, ptr %13, align 4, !tbaa !9
  %385 = icmp ne i32 %384, 0
  br i1 %385, label %386, label %395

386:                                              ; preds = %383
  %387 = load ptr, ptr %3, align 8, !tbaa !5
  %388 = getelementptr inbounds %struct.sqlite3_backup, ptr %387, i32 0, i32 6
  %389 = load ptr, ptr %388, align 8, !tbaa !22
  %390 = call i32 @sqlite3BtreeCommitPhaseOne(ptr noundef %389, ptr noundef null)
  %391 = load ptr, ptr %3, align 8, !tbaa !5
  %392 = getelementptr inbounds %struct.sqlite3_backup, ptr %391, i32 0, i32 6
  %393 = load ptr, ptr %392, align 8, !tbaa !22
  %394 = call i32 @sqlite3BtreeCommitPhaseTwo(ptr noundef %393)
  br label %395

395:                                              ; preds = %386, %383
  %396 = load i32, ptr %5, align 4, !tbaa !9
  %397 = icmp eq i32 %396, 3082
  br i1 %397, label %398, label %399

398:                                              ; preds = %395
  store i32 7, ptr %5, align 4, !tbaa !9
  br label %399

399:                                              ; preds = %398, %395
  %400 = load i32, ptr %5, align 4, !tbaa !9
  %401 = load ptr, ptr %3, align 8, !tbaa !5
  %402 = getelementptr inbounds %struct.sqlite3_backup, ptr %401, i32 0, i32 7
  store i32 %400, ptr %402, align 8, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #2
  br label %403

403:                                              ; preds = %399, %43
  %404 = load ptr, ptr %3, align 8, !tbaa !5
  %405 = getelementptr inbounds %struct.sqlite3_backup, ptr %404, i32 0, i32 0
  %406 = load ptr, ptr %405, align 8, !tbaa !23
  %407 = icmp ne ptr %406, null
  br i1 %407, label %408, label %414

408:                                              ; preds = %403
  %409 = load ptr, ptr %3, align 8, !tbaa !5
  %410 = getelementptr inbounds %struct.sqlite3_backup, ptr %409, i32 0, i32 0
  %411 = load ptr, ptr %410, align 8, !tbaa !23
  %412 = getelementptr inbounds %struct.sqlite3, ptr %411, i32 0, i32 20
  %413 = load ptr, ptr %412, align 8, !tbaa !13
  call void @sqlite3_mutex_leave(ptr noundef %413)
  br label %414

414:                                              ; preds = %408, %403
  %415 = load ptr, ptr %3, align 8, !tbaa !5
  %416 = getelementptr inbounds %struct.sqlite3_backup, ptr %415, i32 0, i32 6
  %417 = load ptr, ptr %416, align 8, !tbaa !22
  call void @sqlite3BtreeLeave(ptr noundef %417)
  %418 = load ptr, ptr %3, align 8, !tbaa !5
  %419 = getelementptr inbounds %struct.sqlite3_backup, ptr %418, i32 0, i32 5
  %420 = load ptr, ptr %419, align 8, !tbaa !11
  %421 = getelementptr inbounds %struct.sqlite3, ptr %420, i32 0, i32 20
  %422 = load ptr, ptr %421, align 8, !tbaa !13
  call void @sqlite3_mutex_leave(ptr noundef %422)
  %423 = load i32, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #2
  ret i32 %423
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare hidden void @sqlite3BtreeLeave(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 32}
!12 = !{!"sqlite3_backup", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !6, i64 32, !6, i64 40, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !6, i64 64}
!13 = !{!14, !6, i64 88}
!14 = !{!"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, !15, i64 64, !10, i64 72, !10, i64 76, !10, i64 80, !6, i64 88, !7, i64 96, !16, 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, !17, i64 336, !6, i64 376, !6, i64 384, !6, i64 392, !6, i64 400, !10, i64 408, !19, i64 416, !6, i64 440, !6, i64 448, !10, i64 456, !6, i64 464, !20, i64 472, !19, i64 656, !21, i64 680, !10, i64 704, !7, i64 712, !6, i64 776, !10, i64 784, !10, i64 788, !7, i64 792, !15, i64 800, !6, i64 808}
!15 = !{!"long long", !7, i64 0}
!16 = !{!"sqlite3InitInfo", !10, i64 0, !10, i64 4, !7, i64 8, !7, i64 9}
!17 = !{!"Lookaside", !18, i64 0, !7, i64 2, !7, i64 3, !10, i64 4, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!18 = !{!"short", !7, i64 0}
!19 = !{!"Hash", !10, i64 0, !10, i64 4, !6, i64 8, !6, i64 16}
!20 = !{!"FuncDefHash", !7, i64 0}
!21 = !{!"BusyHandler", !6, i64 0, !6, i64 8, !10, i64 16}
!22 = !{!12, !6, i64 40}
!23 = !{!12, !6, i64 0}
!24 = !{!12, !10, i64 48}
!25 = !{!12, !6, i64 8}
!26 = !{!27, !6, i64 8}
!27 = !{!"Btree", !6, i64 0, !6, i64 8, !7, i64 16, !7, i64 17, !7, i64 18, !10, i64 20, !10, i64 24, !6, i64 32, !6, i64 40, !28, i64 48}
!28 = !{!"BtLock", !6, i64 0, !10, i64 8, !7, i64 12, !6, i64 16}
!29 = !{!30, !7, i64 48}
!30 = !{!"BtShared", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !7, i64 32, !7, i64 33, !7, i64 34, !7, i64 35, !7, i64 36, !7, i64 37, !7, i64 38, !18, i64 40, !18, i64 42, !18, i64 44, !18, i64 46, !7, i64 48, !7, i64 49, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !10, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !7, i64 136, !7, i64 137, !6, i64 144}
!31 = !{!12, !10, i64 20}
!32 = !{!12, !10, i64 24}
!33 = !{!30, !10, i64 52}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}
!36 = !{!12, !10, i64 56}
!37 = !{!12, !10, i64 52}
!38 = !{!12, !10, i64 60}
!39 = !{!12, !10, i64 16}
!40 = !{!15, !15, i64 0}
!41 = distinct !{!41, !35}


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

@sqlite3PendingByte = external hidden local_unnamed_addr global i32, align 4

; 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
declare dso_local void @sqlite3_mutex_enter(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 dso_local void @sqlite3_mutex_leave(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local i32 @sqlite3_backup_step(ptr noundef %0, i32 noundef %1) local_unnamed_addr #1 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = getelementptr inbounds i8, ptr %0, i64 32
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %6, i64 88
  %8 = load ptr, ptr %7, align 8, !tbaa !11
  tail call void @sqlite3_mutex_enter(ptr noundef %8)
  %9 = getelementptr inbounds i8, ptr %0, i64 40
  %10 = load ptr, ptr %9, align 8, !tbaa !20
  tail call void @sqlite3BtreeEnter(ptr noundef %10)
  %11 = load ptr, ptr %0, align 8, !tbaa !21
  %.not = icmp eq ptr %11, null
  br i1 %.not, label %15, label %12

12:                                               ; preds = %2
  %13 = getelementptr inbounds i8, ptr %11, i64 88
  %14 = load ptr, ptr %13, align 8, !tbaa !11
  tail call void @sqlite3_mutex_enter(ptr noundef %14)
  br label %15

15:                                               ; preds = %12, %2
  %16 = getelementptr inbounds i8, ptr %0, i64 48
  %17 = load i32, ptr %16, align 8, !tbaa !22
  %18 = tail call i32 @isFatalError(i32 noundef %17)
  %.not145 = icmp eq i32 %18, 0
  br i1 %.not145, label %19, label %197

19:                                               ; preds = %15
  %20 = load ptr, ptr %9, align 8, !tbaa !20
  %21 = tail call ptr @sqlite3BtreePager(ptr noundef %20)
  %22 = getelementptr inbounds i8, ptr %0, i64 8
  %23 = load ptr, ptr %22, align 8, !tbaa !23
  %24 = tail call ptr @sqlite3BtreePager(ptr noundef %23)
  %25 = load ptr, ptr %0, align 8, !tbaa !21
  %.not146 = icmp eq ptr %25, null
  br i1 %.not146, label %33, label %26

26:                                               ; preds = %19
  %27 = load ptr, ptr %9, align 8, !tbaa !20
  %28 = getelementptr inbounds i8, ptr %27, i64 8
  %29 = load ptr, ptr %28, align 8, !tbaa !24
  %30 = getelementptr inbounds i8, ptr %29, i64 48
  %31 = load i8, ptr %30, align 8, !tbaa !27
  %32 = icmp eq i8 %31, 2
  br i1 %32, label %51, label %33

33:                                               ; preds = %19, %26
  %34 = getelementptr inbounds i8, ptr %0, i64 20
  %35 = load i32, ptr %34, align 4, !tbaa !29
  %36 = icmp eq i32 %35, 0
  br i1 %36, label %37, label %44

37:                                               ; preds = %33
  %38 = load ptr, ptr %22, align 8, !tbaa !23
  %39 = tail call i32 @sqlite3BtreeBeginTrans(ptr noundef %38, i32 noundef 2)
  %40 = icmp eq i32 %39, 0
  br i1 %40, label %41, label %51

41:                                               ; preds = %37
  store i32 1, ptr %34, align 4, !tbaa !29
  %42 = load ptr, ptr %22, align 8, !tbaa !23
  %43 = getelementptr inbounds i8, ptr %0, i64 16
  tail call void @sqlite3BtreeGetMeta(ptr noundef %42, i32 noundef 1, ptr noundef nonnull %43)
  br label %44

44:                                               ; preds = %41, %33
  %45 = load ptr, ptr %9, align 8, !tbaa !20
  %46 = tail call i32 @sqlite3BtreeIsInReadTrans(ptr noundef %45)
  %47 = icmp eq i32 %46, 0
  br i1 %47, label %48, label %51

48:                                               ; preds = %44
  %49 = load ptr, ptr %9, align 8, !tbaa !20
  %50 = tail call i32 @sqlite3BtreeBeginTrans(ptr noundef %49, i32 noundef 0)
  br label %51

51:                                               ; preds = %37, %26, %48, %44
  %.not152 = phi i1 [ false, %48 ], [ true, %44 ], [ true, %26 ], [ true, %37 ]
  %.2 = phi i32 [ %50, %48 ], [ 0, %44 ], [ 5, %26 ], [ %39, %37 ]
  %52 = load ptr, ptr %9, align 8, !tbaa !20
  %53 = tail call i32 @sqlite3BtreeGetPageSize(ptr noundef %52)
  %54 = load ptr, ptr %22, align 8, !tbaa !23
  %55 = tail call i32 @sqlite3BtreeGetPageSize(ptr noundef %54)
  %56 = load ptr, ptr %22, align 8, !tbaa !23
  %57 = tail call ptr @sqlite3BtreePager(ptr noundef %56)
  %58 = tail call i32 @sqlite3PagerGetJournalMode(ptr noundef %57)
  %59 = icmp eq i32 %.2, 0
  %60 = icmp eq i32 %58, 5
  %or.cond = select i1 %59, i1 %60, i1 false
  %.not147 = icmp eq i32 %53, %55
  %spec.select = select i1 %.not147, i32 0, i32 8
  %.3 = select i1 %or.cond, i32 %spec.select, i32 %.2
  %61 = load ptr, ptr %9, align 8, !tbaa !20
  %62 = tail call i32 @sqlite3BtreeLastPage(ptr noundef %61)
  %or.cond155171.not = icmp eq i32 %1, 0
  br i1 %or.cond155171.not, label %.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %51
  %63 = icmp slt i32 %1, 0
  %64 = getelementptr inbounds i8, ptr %0, i64 24
  %65 = load i32, ptr %64, align 8, !tbaa !30
  br i1 %63, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph
  %.not148.us176 = icmp ule i32 %65, %62
  %.not149.us177 = icmp eq i32 %.3, 0
  %or.cond156.us178 = select i1 %.not148.us176, i1 %.not149.us177, i1 false
  br i1 %or.cond156.us178, label %.lr.ph180, label %.critedge

.lr.ph180:                                        ; preds = %.lr.ph.split.us, %84
  %66 = phi i32 [ %86, %84 ], [ %65, %.lr.ph.split.us ]
  %67 = load i32, ptr @sqlite3PendingByte, align 4, !tbaa !31
  %68 = load ptr, ptr %9, align 8, !tbaa !20
  %69 = getelementptr inbounds i8, ptr %68, i64 8
  %70 = load ptr, ptr %69, align 8, !tbaa !24
  %71 = getelementptr inbounds i8, ptr %70, i64 52
  %72 = load i32, ptr %71, align 4, !tbaa !32
  %73 = udiv i32 %67, %72
  %74 = add i32 %73, 1
  %.not153.us = icmp eq i32 %66, %74
  br i1 %.not153.us, label %84, label %75

75:                                               ; preds = %.lr.ph180
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  %76 = call i32 @sqlite3PagerAcquire(ptr noundef %21, i32 noundef %66, ptr noundef nonnull %3, i32 noundef 0)
  %77 = icmp eq i32 %76, 0
  br i1 %77, label %78, label %83

78:                                               ; preds = %75
  %79 = load ptr, ptr %3, align 8, !tbaa !33
  %80 = call ptr @sqlite3PagerGetData(ptr noundef %79)
  %81 = call i32 @backupOnePage(ptr noundef nonnull %0, i32 noundef %66, ptr noundef %80)
  %82 = load ptr, ptr %3, align 8, !tbaa !33
  call void @sqlite3PagerUnref(ptr noundef %82)
  br label %83

83:                                               ; preds = %78, %75
  %.5.us = phi i32 [ %81, %78 ], [ %76, %75 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  %.pre187 = load i32, ptr %64, align 8, !tbaa !30
  br label %84

84:                                               ; preds = %83, %.lr.ph180
  %85 = phi i32 [ %.pre187, %83 ], [ %66, %.lr.ph180 ]
  %.6.us = phi i32 [ %.5.us, %83 ], [ 0, %.lr.ph180 ]
  %86 = add i32 %85, 1
  store i32 %86, ptr %64, align 8, !tbaa !30
  %.not148.us = icmp ule i32 %86, %62
  %.not149.us = icmp eq i32 %.6.us, 0
  %or.cond156.us = select i1 %.not148.us, i1 %.not149.us, i1 false
  br i1 %or.cond156.us, label %.lr.ph180, label %.critedge

.lr.ph.split:                                     ; preds = %.lr.ph, %106
  %87 = phi i32 [ %108, %106 ], [ %65, %.lr.ph ]
  %.4173 = phi i32 [ %.6, %106 ], [ %.3, %.lr.ph ]
  %.0117172 = phi i32 [ %109, %106 ], [ 0, %.lr.ph ]
  %.not148 = icmp ule i32 %87, %62
  %.not149 = icmp eq i32 %.4173, 0
  %or.cond156 = select i1 %.not148, i1 %.not149, i1 false
  br i1 %or.cond156, label %88, label %.critedge

88:                                               ; preds = %.lr.ph.split
  %89 = load i32, ptr @sqlite3PendingByte, align 4, !tbaa !31
  %90 = load ptr, ptr %9, align 8, !tbaa !20
  %91 = getelementptr inbounds i8, ptr %90, i64 8
  %92 = load ptr, ptr %91, align 8, !tbaa !24
  %93 = getelementptr inbounds i8, ptr %92, i64 52
  %94 = load i32, ptr %93, align 4, !tbaa !32
  %95 = udiv i32 %89, %94
  %96 = add i32 %95, 1
  %.not153 = icmp eq i32 %87, %96
  br i1 %.not153, label %106, label %97

97:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  %98 = call i32 @sqlite3PagerAcquire(ptr noundef %21, i32 noundef %87, ptr noundef nonnull %3, i32 noundef 0)
  %99 = icmp eq i32 %98, 0
  br i1 %99, label %100, label %105

100:                                              ; preds = %97
  %101 = load ptr, ptr %3, align 8, !tbaa !33
  %102 = call ptr @sqlite3PagerGetData(ptr noundef %101)
  %103 = call i32 @backupOnePage(ptr noundef nonnull %0, i32 noundef %87, ptr noundef %102)
  %104 = load ptr, ptr %3, align 8, !tbaa !33
  call void @sqlite3PagerUnref(ptr noundef %104)
  br label %105

105:                                              ; preds = %100, %97
  %.5 = phi i32 [ %103, %100 ], [ %98, %97 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  %.pre186 = load i32, ptr %64, align 8, !tbaa !30
  br label %106

106:                                              ; preds = %105, %88
  %107 = phi i32 [ %.pre186, %105 ], [ %87, %88 ]
  %.6 = phi i32 [ %.5, %105 ], [ 0, %88 ]
  %108 = add i32 %107, 1
  store i32 %108, ptr %64, align 8, !tbaa !30
  %109 = add nuw nsw i32 %.0117172, 1
  %exitcond.not = icmp eq i32 %109, %1
  br i1 %exitcond.not, label %.critedge, label %.lr.ph.split, !llvm.loop !34

.critedge:                                        ; preds = %.lr.ph.split, %106, %84, %.lr.ph.split.us, %51
  %.4.lcssa = phi i32 [ %.3, %51 ], [ %.3, %.lr.ph.split.us ], [ %.6.us, %84 ], [ %.6, %106 ], [ %.4173, %.lr.ph.split ]
  switch i32 %.4.lcssa, label %.thread162 [
    i32 0, label %110
    i32 101, label %.thread164
  ]

110:                                              ; preds = %.critedge
  %111 = getelementptr inbounds i8, ptr %0, i64 56
  store i32 %62, ptr %111, align 8, !tbaa !36
  %112 = add nsw i32 %62, 1
  %113 = getelementptr inbounds i8, ptr %0, i64 24
  %114 = load i32, ptr %113, align 8, !tbaa !30
  %115 = sub i32 %112, %114
  %116 = getelementptr inbounds i8, ptr %0, i64 52
  store i32 %115, ptr %116, align 4, !tbaa !37
  %117 = icmp ugt i32 %114, %62
  br i1 %117, label %.thread164, label %118

118:                                              ; preds = %110
  %119 = getelementptr inbounds i8, ptr %0, i64 60
  %120 = load i32, ptr %119, align 4, !tbaa !38
  %.not150 = icmp eq i32 %120, 0
  br i1 %.not150, label %121, label %.thread162

121:                                              ; preds = %118
  call void @attachBackupObject(ptr noundef nonnull %0)
  br label %.thread162

.thread164:                                       ; preds = %.critedge, %110
  %122 = load ptr, ptr %22, align 8, !tbaa !23
  %123 = getelementptr inbounds i8, ptr %0, i64 16
  %124 = load i32, ptr %123, align 8, !tbaa !39
  %125 = add i32 %124, 1
  %126 = call i32 @sqlite3BtreeUpdateMeta(ptr noundef %122, i32 noundef 1, i32 noundef %125)
  %127 = icmp eq i32 %126, 0
  br i1 %127, label %128, label %.thread162

128:                                              ; preds = %.thread164
  %129 = load ptr, ptr %0, align 8, !tbaa !21
  %.not151 = icmp eq ptr %129, null
  br i1 %.not151, label %131, label %130

130:                                              ; preds = %128
  call void @sqlite3ResetInternalSchema(ptr noundef nonnull %129, i32 noundef 0)
  br label %131

131:                                              ; preds = %130, %128
  %132 = icmp slt i32 %53, %55
  br i1 %132, label %133, label %182

133:                                              ; preds = %131
  %134 = sdiv i32 %55, %53
  %135 = add i32 %62, -1
  %136 = add i32 %135, %134
  %137 = sdiv i32 %136, %134
  %138 = load i32, ptr @sqlite3PendingByte, align 4, !tbaa !31
  %139 = load ptr, ptr %22, align 8, !tbaa !23
  %140 = getelementptr inbounds i8, ptr %139, i64 8
  %141 = load ptr, ptr %140, align 8, !tbaa !24
  %142 = getelementptr inbounds i8, ptr %141, i64 52
  %143 = load i32, ptr %142, align 4, !tbaa !32
  %144 = udiv i32 %138, %143
  %145 = add i32 %144, 1
  %146 = icmp eq i32 %137, %145
  %147 = sext i1 %146 to i32
  %spec.select157 = add nsw i32 %137, %147
  call void @sqlite3PagerTruncateImage(ptr noundef %24, i32 noundef %spec.select157)
  %148 = sext i32 %53 to i64
  %149 = sext i32 %62 to i64
  %150 = mul nsw i64 %149, %148
  %151 = call ptr @sqlite3PagerFile(ptr noundef %24)
  %152 = call i32 @sqlite3PagerCommitPhaseOne(ptr noundef %24, ptr noundef null, i32 noundef 1)
  %153 = icmp eq i32 %152, 0
  br i1 %153, label %154, label %.thread162

154:                                              ; preds = %133
  %155 = call i32 @backupTruncateFile(ptr noundef %151, i64 noundef %150)
  %156 = icmp eq i32 %155, 0
  br i1 %156, label %157, label %.thread162

157:                                              ; preds = %154
  %158 = call i32 @sqlite3PagerSync(ptr noundef %24)
  %159 = icmp eq i32 %158, 0
  br i1 %159, label %160, label %.thread162

160:                                              ; preds = %157
  %161 = load i32, ptr @sqlite3PendingByte, align 4, !tbaa !31
  %162 = add nsw i32 %161, %55
  %163 = sext i32 %162 to i64
  %. = call i64 @llvm.smin.i64(i64 %150, i64 %163)
  %164 = add nsw i32 %161, %53
  %165 = sext i32 %164 to i64
  %166 = icmp sgt i64 %., %165
  br i1 %166, label %.lr.ph183, label %.loopexit.thread

.lr.ph183:                                        ; preds = %160, %176
  %.0116182 = phi i64 [ %178, %176 ], [ %165, %160 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  store ptr null, ptr %4, align 8, !tbaa !33
  %167 = sdiv i64 %.0116182, %148
  %168 = trunc i64 %167 to i32
  %169 = add i32 %168, 1
  %170 = call i32 @sqlite3PagerAcquire(ptr noundef %21, i32 noundef %169, ptr noundef nonnull %4, i32 noundef 0)
  %171 = icmp eq i32 %170, 0
  br i1 %171, label %172, label %176

172:                                              ; preds = %.lr.ph183
  %173 = load ptr, ptr %4, align 8, !tbaa !33
  %174 = call ptr @sqlite3PagerGetData(ptr noundef %173)
  %175 = call i32 @sqlite3OsWrite(ptr noundef %151, ptr noundef %174, i32 noundef %53, i64 noundef %.0116182)
  br label %176

176:                                              ; preds = %172, %.lr.ph183
  %.9 = phi i32 [ %175, %172 ], [ %170, %.lr.ph183 ]
  %177 = load ptr, ptr %4, align 8, !tbaa !33
  call void @sqlite3PagerUnref(ptr noundef %177)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  %178 = add nsw i64 %.0116182, %148
  %179 = icmp eq i32 %.9, 0
  %180 = icmp slt i64 %178, %.
  %181 = select i1 %179, i1 %180, i1 false
  br i1 %181, label %.lr.ph183, label %.loopexit, !llvm.loop !40

182:                                              ; preds = %131
  %183 = sdiv i32 %53, %55
  %184 = mul nsw i32 %183, %62
  call void @sqlite3PagerTruncateImage(ptr noundef %24, i32 noundef %184)
  %185 = call i32 @sqlite3PagerCommitPhaseOne(ptr noundef %24, ptr noundef null, i32 noundef 0)
  br label %.loopexit

.loopexit:                                        ; preds = %176, %182
  %.11 = phi i32 [ %185, %182 ], [ %.9, %176 ]
  %186 = icmp eq i32 %.11, 0
  br i1 %186, label %.loopexit.thread, label %.thread162

.loopexit.thread:                                 ; preds = %160, %.loopexit
  %187 = load ptr, ptr %22, align 8, !tbaa !23
  %188 = call i32 @sqlite3BtreeCommitPhaseTwo(ptr noundef %187)
  %189 = icmp eq i32 %188, 0
  %spec.store.select = select i1 %189, i32 101, i32 %188
  br label %.thread162

.thread162:                                       ; preds = %.critedge, %133, %154, %157, %121, %118, %.loopexit, %.loopexit.thread, %.thread164
  %.13 = phi i32 [ %126, %.thread164 ], [ %spec.store.select, %.loopexit.thread ], [ %.11, %.loopexit ], [ 0, %118 ], [ 0, %121 ], [ %152, %133 ], [ %155, %154 ], [ %158, %157 ], [ %.4.lcssa, %.critedge ]
  br i1 %.not152, label %195, label %190

190:                                              ; preds = %.thread162
  %191 = load ptr, ptr %9, align 8, !tbaa !20
  %192 = call i32 @sqlite3BtreeCommitPhaseOne(ptr noundef %191, ptr noundef null)
  %193 = load ptr, ptr %9, align 8, !tbaa !20
  %194 = call i32 @sqlite3BtreeCommitPhaseTwo(ptr noundef %193)
  br label %195

195:                                              ; preds = %190, %.thread162
  %196 = icmp eq i32 %.13, 3082
  %spec.store.select2 = select i1 %196, i32 7, i32 %.13
  store i32 %spec.store.select2, ptr %16, align 8, !tbaa !22
  br label %197

197:                                              ; preds = %195, %15
  %.14 = phi i32 [ %17, %15 ], [ %spec.store.select2, %195 ]
  %198 = load ptr, ptr %0, align 8, !tbaa !21
  %.not154 = icmp eq ptr %198, null
  br i1 %.not154, label %202, label %199

199:                                              ; preds = %197
  %200 = getelementptr inbounds i8, ptr %198, i64 88
  %201 = load ptr, ptr %200, align 8, !tbaa !11
  call void @sqlite3_mutex_leave(ptr noundef %201)
  br label %202

202:                                              ; preds = %199, %197
  %203 = load ptr, ptr %9, align 8, !tbaa !20
  call void @sqlite3BtreeLeave(ptr noundef %203)
  %204 = load ptr, ptr %5, align 8, !tbaa !5
  %205 = getelementptr inbounds i8, ptr %204, i64 88
  %206 = load ptr, ptr %205, align 8, !tbaa !11
  call void @sqlite3_mutex_leave(ptr noundef %206)
  ret i32 %.14
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smin.i64(i64, i64) #2

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 32}
!6 = !{!"sqlite3_backup", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !7, i64 32, !7, i64 40, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !7, i64 64}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!12, !7, i64 88}
!12 = !{!"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, !13, i64 64, !10, i64 72, !10, i64 76, !10, i64 80, !7, i64 88, !8, i64 96, !14, 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, !15, i64 336, !7, i64 376, !7, i64 384, !7, i64 392, !7, i64 400, !10, i64 408, !17, i64 416, !7, i64 440, !7, i64 448, !10, i64 456, !7, i64 464, !18, i64 472, !17, i64 656, !19, i64 680, !10, i64 704, !8, i64 712, !7, i64 776, !10, i64 784, !10, i64 788, !8, i64 792, !13, i64 800, !7, i64 808}
!13 = !{!"long long", !8, i64 0}
!14 = !{!"sqlite3InitInfo", !10, i64 0, !10, i64 4, !8, i64 8, !8, i64 9}
!15 = !{!"Lookaside", !16, i64 0, !8, i64 2, !8, i64 3, !10, i64 4, !10, i64 8, !7, i64 16, !7, i64 24, !7, i64 32}
!16 = !{!"short", !8, i64 0}
!17 = !{!"Hash", !10, i64 0, !10, i64 4, !7, i64 8, !7, i64 16}
!18 = !{!"FuncDefHash", !8, i64 0}
!19 = !{!"BusyHandler", !7, i64 0, !7, i64 8, !10, i64 16}
!20 = !{!6, !7, i64 40}
!21 = !{!6, !7, i64 0}
!22 = !{!6, !10, i64 48}
!23 = !{!6, !7, i64 8}
!24 = !{!25, !7, i64 8}
!25 = !{!"Btree", !7, i64 0, !7, i64 8, !8, i64 16, !8, i64 17, !8, i64 18, !10, i64 20, !10, i64 24, !7, i64 32, !7, i64 40, !26, i64 48}
!26 = !{!"BtLock", !7, i64 0, !10, i64 8, !8, i64 12, !7, i64 16}
!27 = !{!28, !8, i64 48}
!28 = !{!"BtShared", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !8, i64 32, !8, i64 33, !8, i64 34, !8, i64 35, !8, i64 36, !8, i64 37, !8, i64 38, !16, i64 40, !16, i64 42, !16, i64 44, !16, i64 46, !8, i64 48, !8, i64 49, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !10, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !8, i64 136, !8, i64 137, !7, i64 144}
!29 = !{!6, !10, i64 20}
!30 = !{!6, !10, i64 24}
!31 = !{!10, !10, i64 0}
!32 = !{!28, !10, i64 52}
!33 = !{!7, !7, i64 0}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}
!36 = !{!6, !10, i64 56}
!37 = !{!6, !10, i64 52}
!38 = !{!6, !10, i64 60}
!39 = !{!6, !10, i64 16}
!40 = distinct !{!40, !35}


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