; 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.VdbeOpList = type { i8, i8, i8, i8 }
%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.Parse = type { ptr, i32, ptr, ptr, i8, i8, i8, i8, i8, i8, i8, [8 x i32], i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i8, [10 x %struct.yColCache], i32, i32, i8, i8, i32, [12 x i32], i32, ptr, i32, i32, ptr, i32, ptr, ptr, i32, i32, i8, i8, i8, double, i32, i32, i32, ptr, ptr, i32, i32, ptr, i8, %struct.Token, %struct.Token, ptr, ptr, ptr, ptr, %struct.Token, i8, i32, ptr, i32, ptr, ptr }
%struct.yColCache = type { i32, i32, i8, i32, i32, i32 }
%struct.Token = type { ptr, i32 }
%struct.Table = type { ptr, i32, i32, ptr, ptr, i32, i32, ptr, i16, i8, i8, ptr, ptr, ptr, i32, ptr, i32, ptr, ptr, ptr, ptr }
%struct.Column = type { ptr, ptr, ptr, ptr, ptr, i8, i8, i8, i8 }
%struct.FKey = type { ptr, ptr, ptr, ptr, ptr, i32, i8, [2 x i8], [2 x ptr], [1 x %struct.sColMap] }
%struct.sColMap = type { i32, ptr }
%struct.Index = type { ptr, i32, ptr, ptr, ptr, i32, i8, i8, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.Schema = type { i32, %struct.Hash, %struct.Hash, %struct.Hash, %struct.Hash, ptr, i8, i8, i16, 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] }
%struct.VdbeCursor = type { ptr, i32, i64, i8, i8, i8, i8, i8, i8, i8, i8, i8, i64, ptr, i32, ptr, i32, i64, ptr, ptr, i32, i32, i32, ptr, ptr, ptr }
%struct.Incrblob = type { i32, i32, i32, ptr, ptr, ptr }

@sqlite3_blob_open.openBlob = external hidden constant [11 x %struct.VdbeOpList], align 16
@.str.6 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [20 x i8], align 1

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @sqlite3_finalize(ptr noundef) #1

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @sqlite3_step(ptr noundef) #1

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

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

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

40:                                               ; preds = %7
  store i32 7, ptr %19, align 4, !tbaa !11
  br label %437

41:                                               ; preds = %7
  br label %42

42:                                               ; preds = %332, %41
  %43 = load ptr, ptr %22, align 8, !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 8 %43, i8 0, i64 672, i1 false)
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = load ptr, ptr %22, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.Parse, ptr %45, i32 0, i32 0
  store ptr %44, ptr %46, align 8, !tbaa !21
  %47 = load ptr, ptr %9, align 8, !tbaa !5
  call void @sqlite3BtreeEnterAll(ptr noundef %47)
  %48 = load ptr, ptr %22, align 8, !tbaa !5
  %49 = load ptr, ptr %11, align 8, !tbaa !5
  %50 = load ptr, ptr %10, align 8, !tbaa !5
  %51 = call ptr @sqlite3LocateTable(ptr noundef %48, i32 noundef 0, ptr noundef %49, ptr noundef %50)
  store ptr %51, ptr %21, align 8, !tbaa !5
  %52 = load ptr, ptr %21, align 8, !tbaa !5
  %53 = icmp ne ptr %52, null
  br i1 %53, label %54, label %64

54:                                               ; preds = %42
  %55 = load ptr, ptr %21, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.Table, ptr %55, i32 0, i32 9
  %57 = load i8, ptr %56, align 2, !tbaa !25
  %58 = zext i8 %57 to i32
  %59 = and i32 %58, 16
  %60 = icmp ne i32 %59, 0
  br i1 %60, label %61, label %64

61:                                               ; preds = %54
  store ptr null, ptr %21, align 8, !tbaa !5
  %62 = load ptr, ptr %22, align 8, !tbaa !5
  %63 = load ptr, ptr %11, align 8, !tbaa !5
  call void (ptr, ptr, ...) @sqlite3ErrorMsg(ptr noundef %62, ptr noundef @.str.6, ptr noundef %63)
  br label %64

64:                                               ; preds = %61, %54, %42
  %65 = load ptr, ptr %21, align 8, !tbaa !5
  %66 = icmp ne ptr %65, null
  br i1 %66, label %67, label %75

67:                                               ; preds = %64
  %68 = load ptr, ptr %21, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.Table, ptr %68, i32 0, i32 7
  %70 = load ptr, ptr %69, align 8, !tbaa !27
  %71 = icmp ne ptr %70, null
  br i1 %71, label %72, label %75

72:                                               ; preds = %67
  store ptr null, ptr %21, align 8, !tbaa !5
  %73 = load ptr, ptr %22, align 8, !tbaa !5
  %74 = load ptr, ptr %11, align 8, !tbaa !5
  call void (ptr, ptr, ...) @sqlite3ErrorMsg(ptr noundef %73, ptr noundef @.str.7, ptr noundef %74)
  br label %75

75:                                               ; preds = %72, %67, %64
  %76 = load ptr, ptr %21, align 8, !tbaa !5
  %77 = icmp ne ptr %76, null
  br i1 %77, label %93, label %78

78:                                               ; preds = %75
  %79 = load ptr, ptr %22, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.Parse, ptr %79, i32 0, i32 2
  %81 = load ptr, ptr %80, align 8, !tbaa !28
  %82 = icmp ne ptr %81, null
  br i1 %82, label %83, label %91

83:                                               ; preds = %78
  %84 = load ptr, ptr %9, align 8, !tbaa !5
  %85 = load ptr, ptr %20, align 8, !tbaa !5
  call void @sqlite3DbFree(ptr noundef %84, ptr noundef %85)
  %86 = load ptr, ptr %22, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.Parse, ptr %86, i32 0, i32 2
  %88 = load ptr, ptr %87, align 8, !tbaa !28
  store ptr %88, ptr %20, align 8, !tbaa !5
  %89 = load ptr, ptr %22, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.Parse, ptr %89, i32 0, i32 2
  store ptr null, ptr %90, align 8, !tbaa !28
  br label %91

91:                                               ; preds = %83, %78
  store i32 1, ptr %19, align 4, !tbaa !11
  %92 = load ptr, ptr %9, align 8, !tbaa !5
  call void @sqlite3BtreeLeaveAll(ptr noundef %92)
  br label %437

93:                                               ; preds = %75
  store i32 0, ptr %17, align 4, !tbaa !11
  br label %94

94:                                               ; preds = %114, %93
  %95 = load i32, ptr %17, align 4, !tbaa !11
  %96 = load ptr, ptr %21, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.Table, ptr %96, i32 0, i32 2
  %98 = load i32, ptr %97, align 4, !tbaa !29
  %99 = icmp slt i32 %95, %98
  br i1 %99, label %100, label %117

100:                                              ; preds = %94
  %101 = load ptr, ptr %21, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.Table, ptr %101, i32 0, i32 3
  %103 = load ptr, ptr %102, align 8, !tbaa !30
  %104 = load i32, ptr %17, align 4, !tbaa !11
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds %struct.Column, ptr %103, i64 %105
  %107 = getelementptr inbounds %struct.Column, ptr %106, i32 0, i32 0
  %108 = load ptr, ptr %107, align 8, !tbaa !31
  %109 = load ptr, ptr %12, align 8, !tbaa !5
  %110 = call i32 @sqlite3StrICmp(ptr noundef %108, ptr noundef %109)
  %111 = icmp eq i32 %110, 0
  br i1 %111, label %112, label %113

112:                                              ; preds = %100
  br label %117

113:                                              ; preds = %100
  br label %114

114:                                              ; preds = %113
  %115 = load i32, ptr %17, align 4, !tbaa !11
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %17, align 4, !tbaa !11
  br label %94, !llvm.loop !33

117:                                              ; preds = %112, %94
  %118 = load i32, ptr %17, align 4, !tbaa !11
  %119 = load ptr, ptr %21, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.Table, ptr %119, i32 0, i32 2
  %121 = load i32, ptr %120, align 4, !tbaa !29
  %122 = icmp eq i32 %118, %121
  br i1 %122, label %123, label %130

123:                                              ; preds = %117
  %124 = load ptr, ptr %9, align 8, !tbaa !5
  %125 = load ptr, ptr %20, align 8, !tbaa !5
  call void @sqlite3DbFree(ptr noundef %124, ptr noundef %125)
  %126 = load ptr, ptr %9, align 8, !tbaa !5
  %127 = load ptr, ptr %12, align 8, !tbaa !5
  %128 = call ptr (ptr, ptr, ...) @sqlite3MPrintf(ptr noundef %126, ptr noundef @.str.8, ptr noundef %127)
  store ptr %128, ptr %20, align 8, !tbaa !5
  store i32 1, ptr %19, align 4, !tbaa !11
  %129 = load ptr, ptr %9, align 8, !tbaa !5
  call void @sqlite3BtreeLeaveAll(ptr noundef %129)
  br label %437

130:                                              ; preds = %117
  %131 = load i32, ptr %14, align 4, !tbaa !11
  %132 = icmp ne i32 %131, 0
  br i1 %132, label %133, label %222

133:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  store ptr null, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  %134 = load ptr, ptr %9, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.sqlite3, ptr %134, i32 0, i32 3
  %136 = load i32, ptr %135, align 8, !tbaa !35
  %137 = and i32 %136, 67108864
  %138 = icmp ne i32 %137, 0
  br i1 %138, label %139, label %174

139:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #3
  %140 = load ptr, ptr %21, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.Table, ptr %140, i32 0, i32 11
  %142 = load ptr, ptr %141, align 8, !tbaa !36
  store ptr %142, ptr %25, align 8, !tbaa !5
  br label %143

143:                                              ; preds = %169, %139
  %144 = load ptr, ptr %25, align 8, !tbaa !5
  %145 = icmp ne ptr %144, null
  br i1 %145, label %146, label %173

146:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #3
  store i32 0, ptr %26, align 4, !tbaa !11
  br label %147

147:                                              ; preds = %165, %146
  %148 = load i32, ptr %26, align 4, !tbaa !11
  %149 = load ptr, ptr %25, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.FKey, ptr %149, i32 0, i32 5
  %151 = load i32, ptr %150, align 8, !tbaa !37
  %152 = icmp slt i32 %148, %151
  br i1 %152, label %153, label %168

153:                                              ; preds = %147
  %154 = load ptr, ptr %25, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.FKey, ptr %154, i32 0, i32 9
  %156 = load i32, ptr %26, align 4, !tbaa !11
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [1 x %struct.sColMap], ptr %155, i64 0, i64 %157
  %159 = getelementptr inbounds %struct.sColMap, ptr %158, i32 0, i32 0
  %160 = load i32, ptr %159, align 8, !tbaa !39
  %161 = load i32, ptr %17, align 4, !tbaa !11
  %162 = icmp eq i32 %160, %161
  br i1 %162, label %163, label %164

163:                                              ; preds = %153
  store ptr @.str.9, ptr %23, align 8, !tbaa !5
  br label %164

164:                                              ; preds = %163, %153
  br label %165

165:                                              ; preds = %164
  %166 = load i32, ptr %26, align 4, !tbaa !11
  %167 = add nsw i32 %166, 1
  store i32 %167, ptr %26, align 4, !tbaa !11
  br label %147, !llvm.loop !41

168:                                              ; preds = %147
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  br label %169

169:                                              ; preds = %168
  %170 = load ptr, ptr %25, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.FKey, ptr %170, i32 0, i32 1
  %172 = load ptr, ptr %171, align 8, !tbaa !42
  store ptr %172, ptr %25, align 8, !tbaa !5
  br label %143, !llvm.loop !43

173:                                              ; preds = %143
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #3
  br label %174

174:                                              ; preds = %173, %133
  %175 = load ptr, ptr %21, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.Table, ptr %175, i32 0, i32 4
  %177 = load ptr, ptr %176, align 8, !tbaa !44
  store ptr %177, ptr %24, align 8, !tbaa !5
  br label %178

178:                                              ; preds = %204, %174
  %179 = load ptr, ptr %24, align 8, !tbaa !5
  %180 = icmp ne ptr %179, null
  br i1 %180, label %181, label %208

181:                                              ; preds = %178
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #3
  store i32 0, ptr %27, align 4, !tbaa !11
  br label %182

182:                                              ; preds = %200, %181
  %183 = load i32, ptr %27, align 4, !tbaa !11
  %184 = load ptr, ptr %24, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.Index, ptr %184, i32 0, i32 1
  %186 = load i32, ptr %185, align 8, !tbaa !45
  %187 = icmp slt i32 %183, %186
  br i1 %187, label %188, label %203

188:                                              ; preds = %182
  %189 = load ptr, ptr %24, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.Index, ptr %189, i32 0, i32 2
  %191 = load ptr, ptr %190, align 8, !tbaa !47
  %192 = load i32, ptr %27, align 4, !tbaa !11
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds i32, ptr %191, i64 %193
  %195 = load i32, ptr %194, align 4, !tbaa !11
  %196 = load i32, ptr %17, align 4, !tbaa !11
  %197 = icmp eq i32 %195, %196
  br i1 %197, label %198, label %199

198:                                              ; preds = %188
  store ptr @.str.10, ptr %23, align 8, !tbaa !5
  br label %199

199:                                              ; preds = %198, %188
  br label %200

200:                                              ; preds = %199
  %201 = load i32, ptr %27, align 4, !tbaa !11
  %202 = add nsw i32 %201, 1
  store i32 %202, ptr %27, align 4, !tbaa !11
  br label %182, !llvm.loop !48

203:                                              ; preds = %182
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #3
  br label %204

204:                                              ; preds = %203
  %205 = load ptr, ptr %24, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.Index, ptr %205, i32 0, i32 9
  %207 = load ptr, ptr %206, align 8, !tbaa !49
  store ptr %207, ptr %24, align 8, !tbaa !5
  br label %178, !llvm.loop !50

208:                                              ; preds = %178
  %209 = load ptr, ptr %23, align 8, !tbaa !5
  %210 = icmp ne ptr %209, null
  br i1 %210, label %211, label %218

211:                                              ; preds = %208
  %212 = load ptr, ptr %9, align 8, !tbaa !5
  %213 = load ptr, ptr %20, align 8, !tbaa !5
  call void @sqlite3DbFree(ptr noundef %212, ptr noundef %213)
  %214 = load ptr, ptr %9, align 8, !tbaa !5
  %215 = load ptr, ptr %23, align 8, !tbaa !5
  %216 = call ptr (ptr, ptr, ...) @sqlite3MPrintf(ptr noundef %214, ptr noundef @.str.11, ptr noundef %215)
  store ptr %216, ptr %20, align 8, !tbaa !5
  store i32 1, ptr %19, align 4, !tbaa !11
  %217 = load ptr, ptr %9, align 8, !tbaa !5
  call void @sqlite3BtreeLeaveAll(ptr noundef %217)
  store i32 2, ptr %28, align 4
  br label %219

218:                                              ; preds = %208
  store i32 0, ptr %28, align 4
  br label %219

219:                                              ; preds = %218, %211
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  %220 = load i32, ptr %28, align 4
  switch i32 %220, label %467 [
    i32 0, label %221
    i32 2, label %437
  ]

221:                                              ; preds = %219
  br label %222

222:                                              ; preds = %221, %130
  %223 = load ptr, ptr %9, align 8, !tbaa !5
  %224 = call ptr @sqlite3VdbeCreate(ptr noundef %223)
  store ptr %224, ptr %18, align 8, !tbaa !5
  %225 = load ptr, ptr %18, align 8, !tbaa !5
  %226 = icmp ne ptr %225, null
  br i1 %226, label %227, label %299

227:                                              ; preds = %222
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #3
  %228 = load ptr, ptr %9, align 8, !tbaa !5
  %229 = load ptr, ptr %21, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.Table, ptr %229, i32 0, i32 19
  %231 = load ptr, ptr %230, align 8, !tbaa !51
  %232 = call i32 @sqlite3SchemaToIndex(ptr noundef %228, ptr noundef %231)
  store i32 %232, ptr %29, align 4, !tbaa !11
  %233 = load ptr, ptr %18, align 8, !tbaa !5
  %234 = call i32 @sqlite3VdbeAddOpList(ptr noundef %233, i32 noundef 11, ptr noundef @sqlite3_blob_open.openBlob)
  %235 = load i32, ptr %14, align 4, !tbaa !11
  %236 = icmp ne i32 %235, 0
  %237 = xor i1 %236, true
  %238 = xor i1 %237, true
  %239 = zext i1 %238 to i32
  store i32 %239, ptr %14, align 4, !tbaa !11
  %240 = load ptr, ptr %18, align 8, !tbaa !5
  %241 = load i32, ptr %29, align 4, !tbaa !11
  call void @sqlite3VdbeChangeP1(ptr noundef %240, i32 noundef 0, i32 noundef %241)
  %242 = load ptr, ptr %18, align 8, !tbaa !5
  %243 = load i32, ptr %14, align 4, !tbaa !11
  call void @sqlite3VdbeChangeP2(ptr noundef %242, i32 noundef 0, i32 noundef %243)
  %244 = load ptr, ptr %18, align 8, !tbaa !5
  %245 = load i32, ptr %29, align 4, !tbaa !11
  call void @sqlite3VdbeChangeP1(ptr noundef %244, i32 noundef 1, i32 noundef %245)
  %246 = load ptr, ptr %18, align 8, !tbaa !5
  %247 = load ptr, ptr %21, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.Table, ptr %247, i32 0, i32 19
  %249 = load ptr, ptr %248, align 8, !tbaa !51
  %250 = getelementptr inbounds %struct.Schema, ptr %249, i32 0, i32 0
  %251 = load i32, ptr %250, align 8, !tbaa !52
  call void @sqlite3VdbeChangeP2(ptr noundef %246, i32 noundef 1, i32 noundef %251)
  %252 = load ptr, ptr %18, align 8, !tbaa !5
  %253 = load i32, ptr %29, align 4, !tbaa !11
  call void @sqlite3VdbeUsesBtree(ptr noundef %252, i32 noundef %253)
  %254 = load ptr, ptr %18, align 8, !tbaa !5
  %255 = load i32, ptr %29, align 4, !tbaa !11
  call void @sqlite3VdbeChangeP1(ptr noundef %254, i32 noundef 2, i32 noundef %255)
  %256 = load ptr, ptr %18, align 8, !tbaa !5
  %257 = load ptr, ptr %21, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.Table, ptr %257, i32 0, i32 5
  %259 = load i32, ptr %258, align 8, !tbaa !54
  call void @sqlite3VdbeChangeP2(ptr noundef %256, i32 noundef 2, i32 noundef %259)
  %260 = load ptr, ptr %18, align 8, !tbaa !5
  %261 = load i32, ptr %14, align 4, !tbaa !11
  call void @sqlite3VdbeChangeP3(ptr noundef %260, i32 noundef 2, i32 noundef %261)
  %262 = load ptr, ptr %18, align 8, !tbaa !5
  %263 = load ptr, ptr %21, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.Table, ptr %263, i32 0, i32 0
  %265 = load ptr, ptr %264, align 8, !tbaa !55
  call void @sqlite3VdbeChangeP4(ptr noundef %262, i32 noundef 2, ptr noundef %265, i32 noundef -9)
  %266 = load ptr, ptr %18, align 8, !tbaa !5
  %267 = load i32, ptr %14, align 4, !tbaa !11
  %268 = sub nsw i32 4, %267
  call void @sqlite3VdbeChangeToNoop(ptr noundef %266, i32 noundef %268, i32 noundef 1)
  %269 = load ptr, ptr %18, align 8, !tbaa !5
  %270 = load i32, ptr %14, align 4, !tbaa !11
  %271 = add nsw i32 3, %270
  %272 = load ptr, ptr %21, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.Table, ptr %272, i32 0, i32 5
  %274 = load i32, ptr %273, align 8, !tbaa !54
  call void @sqlite3VdbeChangeP2(ptr noundef %269, i32 noundef %271, i32 noundef %274)
  %275 = load ptr, ptr %18, align 8, !tbaa !5
  %276 = load i32, ptr %14, align 4, !tbaa !11
  %277 = add nsw i32 3, %276
  %278 = load i32, ptr %29, align 4, !tbaa !11
  call void @sqlite3VdbeChangeP3(ptr noundef %275, i32 noundef %277, i32 noundef %278)
  %279 = load ptr, ptr %18, align 8, !tbaa !5
  %280 = load i32, ptr %14, align 4, !tbaa !11
  %281 = add nsw i32 3, %280
  %282 = load ptr, ptr %21, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.Table, ptr %282, i32 0, i32 2
  %284 = load i32, ptr %283, align 4, !tbaa !29
  %285 = add nsw i32 %284, 1
  %286 = sext i32 %285 to i64
  %287 = inttoptr i64 %286 to ptr
  call void @sqlite3VdbeChangeP4(ptr noundef %279, i32 noundef %281, ptr noundef %287, i32 noundef -14)
  %288 = load ptr, ptr %18, align 8, !tbaa !5
  %289 = load ptr, ptr %21, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.Table, ptr %289, i32 0, i32 2
  %291 = load i32, ptr %290, align 4, !tbaa !29
  call void @sqlite3VdbeChangeP2(ptr noundef %288, i32 noundef 7, i32 noundef %291)
  %292 = load ptr, ptr %9, align 8, !tbaa !5
  %293 = getelementptr inbounds %struct.sqlite3, ptr %292, i32 0, i32 9
  %294 = load i8, ptr %293, align 2, !tbaa !56
  %295 = icmp ne i8 %294, 0
  br i1 %295, label %298, label %296

296:                                              ; preds = %227
  %297 = load ptr, ptr %18, align 8, !tbaa !5
  call void @sqlite3VdbeMakeReady(ptr noundef %297, i32 noundef 1, i32 noundef 1, i32 noundef 1, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  br label %298

298:                                              ; preds = %296, %227
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #3
  br label %299

299:                                              ; preds = %298, %222
  %300 = load ptr, ptr %9, align 8, !tbaa !5
  call void @sqlite3BtreeLeaveAll(ptr noundef %300)
  %301 = load ptr, ptr %9, align 8, !tbaa !5
  %302 = getelementptr inbounds %struct.sqlite3, ptr %301, i32 0, i32 9
  %303 = load i8, ptr %302, align 2, !tbaa !56
  %304 = icmp ne i8 %303, 0
  br i1 %304, label %305, label %306

305:                                              ; preds = %299
  br label %437

306:                                              ; preds = %299
  %307 = load ptr, ptr %18, align 8, !tbaa !5
  %308 = load i64, ptr %13, align 8, !tbaa !9
  %309 = call i32 @sqlite3_bind_int64(ptr noundef %307, i32 noundef 1, i64 noundef %308)
  %310 = load ptr, ptr %18, align 8, !tbaa !5
  %311 = call i32 @sqlite3_step(ptr noundef %310)
  store i32 %311, ptr %19, align 4, !tbaa !11
  %312 = load i32, ptr %19, align 4, !tbaa !11
  %313 = icmp ne i32 %312, 100
  br i1 %313, label %314, label %325

314:                                              ; preds = %306
  %315 = load i32, ptr %16, align 4, !tbaa !11
  %316 = add nsw i32 %315, 1
  store i32 %316, ptr %16, align 4, !tbaa !11
  %317 = load ptr, ptr %18, align 8, !tbaa !5
  %318 = call i32 @sqlite3_finalize(ptr noundef %317)
  store i32 %318, ptr %19, align 4, !tbaa !11
  %319 = load ptr, ptr %9, align 8, !tbaa !5
  %320 = load ptr, ptr %20, align 8, !tbaa !5
  call void @sqlite3DbFree(ptr noundef %319, ptr noundef %320)
  %321 = load ptr, ptr %9, align 8, !tbaa !5
  %322 = load ptr, ptr %9, align 8, !tbaa !5
  %323 = call ptr @sqlite3_errmsg(ptr noundef %322)
  %324 = call ptr (ptr, ptr, ...) @sqlite3MPrintf(ptr noundef %321, ptr noundef %323)
  store ptr %324, ptr %20, align 8, !tbaa !5
  store ptr null, ptr %18, align 8, !tbaa !5
  br label %325

325:                                              ; preds = %314, %306
  br label %326

326:                                              ; preds = %325
  %327 = load i32, ptr %16, align 4, !tbaa !11
  %328 = icmp slt i32 %327, 5
  br i1 %328, label %329, label %332

329:                                              ; preds = %326
  %330 = load i32, ptr %19, align 4, !tbaa !11
  %331 = icmp eq i32 %330, 17
  br label %332

332:                                              ; preds = %329, %326
  %333 = phi i1 [ false, %326 ], [ %331, %329 ]
  br i1 %333, label %42, label %334, !llvm.loop !57

334:                                              ; preds = %332
  %335 = load i32, ptr %19, align 4, !tbaa !11
  %336 = icmp eq i32 %335, 100
  br i1 %336, label %337, label %426

337:                                              ; preds = %334
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #3
  %338 = load ptr, ptr %18, align 8, !tbaa !5
  %339 = getelementptr inbounds %struct.Vdbe, ptr %338, i32 0, i32 14
  %340 = load ptr, ptr %339, align 8, !tbaa !58
  %341 = getelementptr inbounds ptr, ptr %340, i64 0
  %342 = load ptr, ptr %341, align 8, !tbaa !5
  %343 = getelementptr inbounds %struct.VdbeCursor, ptr %342, i32 0, i32 23
  %344 = load ptr, ptr %343, align 8, !tbaa !61
  %345 = load i32, ptr %17, align 4, !tbaa !11
  %346 = sext i32 %345 to i64
  %347 = getelementptr inbounds i32, ptr %344, i64 %346
  %348 = load i32, ptr %347, align 4, !tbaa !11
  store i32 %348, ptr %31, align 4, !tbaa !11
  %349 = load i32, ptr %31, align 4, !tbaa !11
  %350 = icmp ult i32 %349, 12
  br i1 %350, label %351, label %366

351:                                              ; preds = %337
  %352 = load ptr, ptr %9, align 8, !tbaa !5
  %353 = load ptr, ptr %20, align 8, !tbaa !5
  call void @sqlite3DbFree(ptr noundef %352, ptr noundef %353)
  %354 = load ptr, ptr %9, align 8, !tbaa !5
  %355 = load i32, ptr %31, align 4, !tbaa !11
  %356 = icmp eq i32 %355, 0
  br i1 %356, label %357, label %358

357:                                              ; preds = %351
  br label %363

358:                                              ; preds = %351
  %359 = load i32, ptr %31, align 4, !tbaa !11
  %360 = icmp eq i32 %359, 7
  %361 = zext i1 %360 to i64
  %362 = select i1 %360, ptr @.str.14, ptr @.str.15
  br label %363

363:                                              ; preds = %358, %357
  %364 = phi ptr [ @.str.13, %357 ], [ %362, %358 ]
  %365 = call ptr (ptr, ptr, ...) @sqlite3MPrintf(ptr noundef %354, ptr noundef @.str.12, ptr noundef %364)
  store ptr %365, ptr %20, align 8, !tbaa !5
  store i32 1, ptr %19, align 4, !tbaa !11
  store i32 2, ptr %28, align 4
  br label %423

366:                                              ; preds = %337
  %367 = load ptr, ptr %9, align 8, !tbaa !5
  %368 = call ptr @sqlite3DbMallocZero(ptr noundef %367, i32 noundef 40)
  store ptr %368, ptr %30, align 8, !tbaa !5
  %369 = load ptr, ptr %9, align 8, !tbaa !5
  %370 = getelementptr inbounds %struct.sqlite3, ptr %369, i32 0, i32 9
  %371 = load i8, ptr %370, align 2, !tbaa !56
  %372 = icmp ne i8 %371, 0
  br i1 %372, label %373, label %376

373:                                              ; preds = %366
  %374 = load ptr, ptr %9, align 8, !tbaa !5
  %375 = load ptr, ptr %30, align 8, !tbaa !5
  call void @sqlite3DbFree(ptr noundef %374, ptr noundef %375)
  store i32 2, ptr %28, align 4
  br label %423

376:                                              ; preds = %366
  %377 = load i32, ptr %14, align 4, !tbaa !11
  %378 = load ptr, ptr %30, align 8, !tbaa !5
  %379 = getelementptr inbounds %struct.Incrblob, ptr %378, i32 0, i32 0
  store i32 %377, ptr %379, align 8, !tbaa !63
  %380 = load ptr, ptr %18, align 8, !tbaa !5
  %381 = getelementptr inbounds %struct.Vdbe, ptr %380, i32 0, i32 14
  %382 = load ptr, ptr %381, align 8, !tbaa !58
  %383 = getelementptr inbounds ptr, ptr %382, i64 0
  %384 = load ptr, ptr %383, align 8, !tbaa !5
  %385 = getelementptr inbounds %struct.VdbeCursor, ptr %384, i32 0, i32 0
  %386 = load ptr, ptr %385, align 8, !tbaa !65
  %387 = load ptr, ptr %30, align 8, !tbaa !5
  %388 = getelementptr inbounds %struct.Incrblob, ptr %387, i32 0, i32 3
  store ptr %386, ptr %388, align 8, !tbaa !66
  %389 = load ptr, ptr %30, align 8, !tbaa !5
  %390 = getelementptr inbounds %struct.Incrblob, ptr %389, i32 0, i32 3
  %391 = load ptr, ptr %390, align 8, !tbaa !66
  call void @sqlite3BtreeEnterCursor(ptr noundef %391)
  %392 = load ptr, ptr %30, align 8, !tbaa !5
  %393 = getelementptr inbounds %struct.Incrblob, ptr %392, i32 0, i32 3
  %394 = load ptr, ptr %393, align 8, !tbaa !66
  call void @sqlite3BtreeCacheOverflow(ptr noundef %394)
  %395 = load ptr, ptr %30, align 8, !tbaa !5
  %396 = getelementptr inbounds %struct.Incrblob, ptr %395, i32 0, i32 3
  %397 = load ptr, ptr %396, align 8, !tbaa !66
  call void @sqlite3BtreeLeaveCursor(ptr noundef %397)
  %398 = load ptr, ptr %18, align 8, !tbaa !5
  %399 = load ptr, ptr %30, align 8, !tbaa !5
  %400 = getelementptr inbounds %struct.Incrblob, ptr %399, i32 0, i32 4
  store ptr %398, ptr %400, align 8, !tbaa !67
  %401 = load ptr, ptr %18, align 8, !tbaa !5
  %402 = getelementptr inbounds %struct.Vdbe, ptr %401, i32 0, i32 14
  %403 = load ptr, ptr %402, align 8, !tbaa !58
  %404 = getelementptr inbounds ptr, ptr %403, i64 0
  %405 = load ptr, ptr %404, align 8, !tbaa !5
  %406 = getelementptr inbounds %struct.VdbeCursor, ptr %405, i32 0, i32 24
  %407 = load ptr, ptr %406, align 8, !tbaa !68
  %408 = load i32, ptr %17, align 4, !tbaa !11
  %409 = sext i32 %408 to i64
  %410 = getelementptr inbounds i32, ptr %407, i64 %409
  %411 = load i32, ptr %410, align 4, !tbaa !11
  %412 = load ptr, ptr %30, align 8, !tbaa !5
  %413 = getelementptr inbounds %struct.Incrblob, ptr %412, i32 0, i32 2
  store i32 %411, ptr %413, align 8, !tbaa !69
  %414 = load i32, ptr %31, align 4, !tbaa !11
  %415 = call i32 @sqlite3VdbeSerialTypeLen(i32 noundef %414)
  %416 = load ptr, ptr %30, align 8, !tbaa !5
  %417 = getelementptr inbounds %struct.Incrblob, ptr %416, i32 0, i32 1
  store i32 %415, ptr %417, align 4, !tbaa !70
  %418 = load ptr, ptr %9, align 8, !tbaa !5
  %419 = load ptr, ptr %30, align 8, !tbaa !5
  %420 = getelementptr inbounds %struct.Incrblob, ptr %419, i32 0, i32 5
  store ptr %418, ptr %420, align 8, !tbaa !71
  %421 = load ptr, ptr %30, align 8, !tbaa !5
  %422 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr %421, ptr %422, align 8, !tbaa !5
  store i32 0, ptr %19, align 4, !tbaa !11
  store i32 0, ptr %28, align 4
  br label %423

423:                                              ; preds = %376, %373, %363
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #3
  %424 = load i32, ptr %28, align 4
  switch i32 %424, label %467 [
    i32 0, label %425
    i32 2, label %437
  ]

425:                                              ; preds = %423
  br label %436

426:                                              ; preds = %334
  %427 = load i32, ptr %19, align 4, !tbaa !11
  %428 = icmp eq i32 %427, 0
  br i1 %428, label %429, label %435

429:                                              ; preds = %426
  %430 = load ptr, ptr %9, align 8, !tbaa !5
  %431 = load ptr, ptr %20, align 8, !tbaa !5
  call void @sqlite3DbFree(ptr noundef %430, ptr noundef %431)
  %432 = load ptr, ptr %9, align 8, !tbaa !5
  %433 = load i64, ptr %13, align 8, !tbaa !9
  %434 = call ptr (ptr, ptr, ...) @sqlite3MPrintf(ptr noundef %432, ptr noundef @.str.16, i64 noundef %433)
  store ptr %434, ptr %20, align 8, !tbaa !5
  store i32 1, ptr %19, align 4, !tbaa !11
  br label %435

435:                                              ; preds = %429, %426
  br label %436

436:                                              ; preds = %435, %425
  br label %437

437:                                              ; preds = %436, %423, %305, %219, %123, %91, %40
  %438 = load ptr, ptr %18, align 8, !tbaa !5
  %439 = icmp ne ptr %438, null
  br i1 %439, label %440, label %452

440:                                              ; preds = %437
  %441 = load i32, ptr %19, align 4, !tbaa !11
  %442 = icmp ne i32 %441, 0
  br i1 %442, label %449, label %443

443:                                              ; preds = %440
  %444 = load ptr, ptr %9, align 8, !tbaa !5
  %445 = getelementptr inbounds %struct.sqlite3, ptr %444, i32 0, i32 9
  %446 = load i8, ptr %445, align 2, !tbaa !56
  %447 = zext i8 %446 to i32
  %448 = icmp ne i32 %447, 0
  br i1 %448, label %449, label %452

449:                                              ; preds = %443, %440
  %450 = load ptr, ptr %18, align 8, !tbaa !5
  %451 = call i32 @sqlite3VdbeFinalize(ptr noundef %450)
  br label %452

452:                                              ; preds = %449, %443, %437
  %453 = load ptr, ptr %9, align 8, !tbaa !5
  %454 = load i32, ptr %19, align 4, !tbaa !11
  %455 = load ptr, ptr %20, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @sqlite3Error(ptr noundef %453, i32 noundef %454, ptr noundef %455)
  %456 = load ptr, ptr %9, align 8, !tbaa !5
  %457 = load ptr, ptr %20, align 8, !tbaa !5
  call void @sqlite3DbFree(ptr noundef %456, ptr noundef %457)
  %458 = load ptr, ptr %9, align 8, !tbaa !5
  %459 = load ptr, ptr %22, align 8, !tbaa !5
  call void @sqlite3DbFree(ptr noundef %458, ptr noundef %459)
  %460 = load ptr, ptr %9, align 8, !tbaa !5
  %461 = load i32, ptr %19, align 4, !tbaa !11
  %462 = call i32 @sqlite3ApiExit(ptr noundef %460, i32 noundef %461)
  store i32 %462, ptr %19, align 4, !tbaa !11
  %463 = load ptr, ptr %9, align 8, !tbaa !5
  %464 = getelementptr inbounds %struct.sqlite3, ptr %463, i32 0, i32 20
  %465 = load ptr, ptr %464, align 8, !tbaa !13
  call void @sqlite3_mutex_leave(ptr noundef %465)
  %466 = load i32, ptr %19, align 4, !tbaa !11
  store i32 %466, ptr %8, align 4
  store i32 1, ptr %28, align 4
  br label %467

467:                                              ; preds = %452, %423, %219
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  %468 = load i32, ptr %8, align 4
  ret i32 %468
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare hidden i32 @sqlite3VdbeSerialTypeLen(i32 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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, !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 = !{!"long long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 88}
!14 = !{!"sqlite3", !6, i64 0, !12, i64 8, !6, i64 16, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !7, i64 40, !7, i64 41, !7, i64 42, !7, i64 43, !7, i64 44, !7, i64 45, !12, i64 48, !12, i64 52, !6, i64 56, !10, i64 64, !12, i64 72, !12, i64 76, !12, i64 80, !6, i64 88, !7, i64 96, !15, i64 140, !12, i64 152, !6, i64 160, !6, i64 168, !12, i64 176, !12, 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, !16, i64 336, !6, i64 376, !6, i64 384, !6, i64 392, !6, i64 400, !12, i64 408, !18, i64 416, !6, i64 440, !6, i64 448, !12, i64 456, !6, i64 464, !19, i64 472, !18, i64 656, !20, i64 680, !12, i64 704, !7, i64 712, !6, i64 776, !12, i64 784, !12, i64 788, !7, i64 792, !10, i64 800, !6, i64 808}
!15 = !{!"sqlite3InitInfo", !12, i64 0, !12, i64 4, !7, i64 8, !7, i64 9}
!16 = !{!"Lookaside", !17, i64 0, !7, i64 2, !7, i64 3, !12, i64 4, !12, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!17 = !{!"short", !7, i64 0}
!18 = !{!"Hash", !12, i64 0, !12, i64 4, !6, i64 8, !6, i64 16}
!19 = !{!"FuncDefHash", !7, i64 0}
!20 = !{!"BusyHandler", !6, i64 0, !6, i64 8, !12, i64 16}
!21 = !{!22, !6, i64 0}
!22 = !{!"Parse", !6, i64 0, !12, 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, !7, i64 40, !12, i64 72, !12, i64 76, !12, i64 80, !12, i64 84, !12, i64 88, !12, i64 92, !12, i64 96, !12, i64 100, !12, i64 104, !7, i64 108, !7, i64 109, !7, i64 112, !12, i64 352, !12, i64 356, !7, i64 360, !7, i64 361, !12, i64 364, !7, i64 368, !12, i64 416, !6, i64 424, !12, i64 432, !12, i64 436, !6, i64 440, !12, i64 448, !6, i64 456, !6, i64 464, !12, i64 472, !12, i64 476, !7, i64 480, !7, i64 481, !7, i64 482, !23, i64 488, !12, i64 496, !12, i64 500, !12, i64 504, !6, i64 512, !6, i64 520, !12, i64 528, !12, i64 532, !6, i64 536, !7, i64 544, !24, i64 552, !24, i64 568, !6, i64 584, !6, i64 592, !6, i64 600, !6, i64 608, !24, i64 616, !7, i64 632, !12, i64 636, !6, i64 640, !12, i64 648, !6, i64 656, !6, i64 664}
!23 = !{!"double", !7, i64 0}
!24 = !{!"Token", !6, i64 0, !12, i64 8}
!25 = !{!26, !7, i64 50}
!26 = !{!"Table", !6, i64 0, !12, i64 8, !12, i64 12, !6, i64 16, !6, i64 24, !12, i64 32, !12, i64 36, !6, i64 40, !17, i64 48, !7, i64 50, !7, i64 51, !6, i64 56, !6, i64 64, !6, i64 72, !12, i64 80, !6, i64 88, !12, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128}
!27 = !{!26, !6, i64 40}
!28 = !{!22, !6, i64 16}
!29 = !{!26, !12, i64 12}
!30 = !{!26, !6, i64 16}
!31 = !{!32, !6, i64 0}
!32 = !{!"Column", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !7, i64 40, !7, i64 41, !7, i64 42, !7, i64 43}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = !{!14, !12, i64 24}
!36 = !{!26, !6, i64 56}
!37 = !{!38, !12, i64 40}
!38 = !{!"FKey", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !12, i64 40, !7, i64 44, !7, i64 45, !7, i64 48, !7, i64 64}
!39 = !{!40, !12, i64 0}
!40 = !{!"sColMap", !12, i64 0, !6, i64 8}
!41 = distinct !{!41, !34}
!42 = !{!38, !6, i64 8}
!43 = distinct !{!43, !34}
!44 = !{!26, !6, i64 24}
!45 = !{!46, !12, i64 8}
!46 = !{!"Index", !6, i64 0, !12, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !12, i64 40, !7, i64 44, !7, i64 45, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88}
!47 = !{!46, !6, i64 16}
!48 = distinct !{!48, !34}
!49 = !{!46, !6, i64 56}
!50 = distinct !{!50, !34}
!51 = !{!26, !6, i64 120}
!52 = !{!53, !12, i64 0}
!53 = !{!"Schema", !12, i64 0, !18, i64 8, !18, i64 32, !18, i64 56, !18, i64 80, !6, i64 104, !7, i64 112, !7, i64 113, !17, i64 114, !12, i64 116}
!54 = !{!26, !12, i64 32}
!55 = !{!26, !6, i64 0}
!56 = !{!14, !7, i64 42}
!57 = distinct !{!57, !34}
!58 = !{!59, !6, i64 88}
!59 = !{!"Vdbe", !6, i64 0, !6, i64 8, !6, i64 16, !12, i64 24, !12, i64 28, !6, i64 32, !12, i64 40, !12, i64 44, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !17, i64 80, !17, i64 82, !6, i64 88, !7, i64 96, !7, i64 97, !17, i64 98, !6, i64 104, !6, i64 112, !12, i64 120, !12, i64 124, !6, i64 128, !12, i64 136, !12, i64 140, !12, 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, !12, i64 172, !12, i64 176, !10, i64 184, !60, i64 192, !7, i64 288, !6, i64 304, !6, i64 312, !10, i64 320, !10, i64 328, !12, i64 336, !6, i64 344, !12, i64 352, !12, i64 356, !6, i64 360}
!60 = !{!"BtreeMutexArray", !12, i64 0, !7, i64 8}
!61 = !{!62, !6, i64 120}
!62 = !{!"VdbeCursor", !6, i64 0, !12, i64 8, !10, i64 16, !7, i64 24, !7, i64 25, !7, i64 26, !7, i64 27, !7, i64 28, !7, i64 29, !7, i64 30, !7, i64 31, !7, i64 32, !10, i64 40, !6, i64 48, !12, i64 56, !6, i64 64, !12, i64 72, !10, i64 80, !6, i64 88, !6, i64 96, !12, i64 104, !12, i64 108, !12, i64 112, !6, i64 120, !6, i64 128, !6, i64 136}
!63 = !{!64, !12, i64 0}
!64 = !{!"Incrblob", !12, i64 0, !12, i64 4, !12, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!65 = !{!62, !6, i64 0}
!66 = !{!64, !6, i64 16}
!67 = !{!64, !6, i64 24}
!68 = !{!62, !6, i64 128}
!69 = !{!64, !12, i64 8}
!70 = !{!64, !12, i64 4}
!71 = !{!64, !6, i64 32}


; 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.VdbeOpList = type { i8, i8, i8, i8 }
%struct.Column = type { ptr, ptr, ptr, ptr, ptr, i8, i8, i8, i8 }
%struct.sColMap = type { i32, ptr }

@sqlite3_blob_open.openBlob = external hidden constant [11 x %struct.VdbeOpList], align 16
@.str.6 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @sqlite3_mutex_enter(ptr noundef) local_unnamed_addr #0

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @sqlite3_finalize(ptr noundef) local_unnamed_addr #0

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @sqlite3_step(ptr noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @sqlite3_bind_int64(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local i32 @sqlite3_blob_open(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i64 noundef %4, i32 noundef %5, ptr nocapture noundef writeonly %6) local_unnamed_addr #0 {
  store ptr null, ptr %6, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 88
  %9 = load ptr, ptr %8, align 8, !tbaa !9
  tail call void @sqlite3_mutex_enter(ptr noundef %9)
  %10 = tail call ptr @sqlite3DbMallocRaw(ptr noundef %0, i32 noundef 672)
  %11 = icmp eq ptr %10, null
  br i1 %11, label %.thread253, label %.preheader288

.preheader288:                                    ; preds = %7
  %12 = getelementptr inbounds i8, ptr %0, i64 24
  %13 = getelementptr inbounds i8, ptr %0, i64 42
  %14 = getelementptr inbounds i8, ptr %10, i64 8
  br label %15

15:                                               ; preds = %.preheader288, %134
  %.0192 = phi i32 [ 17, %134 ], [ 0, %.preheader288 ]
  %.0185 = phi ptr [ %138, %134 ], [ null, %.preheader288 ]
  %.0172 = phi i32 [ %135, %134 ], [ 0, %.preheader288 ]
  %.0171 = phi i32 [ %.1398, %134 ], [ %5, %.preheader288 ]
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(672) %14, i8 0, i64 664, i1 false)
  store ptr %0, ptr %10, align 8, !tbaa !19
  tail call void @sqlite3BtreeEnterAll(ptr noundef nonnull %0)
  %16 = tail call ptr @sqlite3LocateTable(ptr noundef nonnull %10, i32 noundef 0, ptr noundef %2, ptr noundef %1)
  %.not = icmp eq ptr %16, null
  br i1 %.not, label %.thread, label %17

17:                                               ; preds = %15
  %18 = getelementptr inbounds i8, ptr %16, i64 50
  %19 = load i8, ptr %18, align 2, !tbaa !23
  %20 = and i8 %19, 16
  %.not207 = icmp eq i8 %20, 0
  br i1 %.not207, label %21, label %.thread.sink.split

21:                                               ; preds = %17
  %22 = getelementptr inbounds i8, ptr %16, i64 40
  %23 = load ptr, ptr %22, align 8, !tbaa !25
  %.not209 = icmp eq ptr %23, null
  br i1 %.not209, label %.preheader287, label %.thread.sink.split

.preheader287:                                    ; preds = %21
  %24 = getelementptr inbounds i8, ptr %16, i64 16
  %25 = getelementptr inbounds i8, ptr %16, i64 12
  %26 = load i32, ptr %25, align 4, !tbaa !26
  %27 = icmp sgt i32 %26, 0
  br i1 %27, label %.lr.ph, label %._crit_edge

.thread.sink.split:                               ; preds = %21, %17
  %.str.6.sink = phi ptr [ @.str.6, %17 ], [ @.str.7, %21 ]
  tail call void (ptr, ptr, ...) @sqlite3ErrorMsg(ptr noundef nonnull %10, ptr noundef nonnull %.str.6.sink, ptr noundef %2)
  br label %.thread

.thread:                                          ; preds = %15, %.thread.sink.split
  %28 = getelementptr inbounds i8, ptr %10, i64 16
  %29 = load ptr, ptr %28, align 8, !tbaa !27
  %.not211 = icmp eq ptr %29, null
  br i1 %.not211, label %32, label %30

30:                                               ; preds = %.thread
  tail call void @sqlite3DbFree(ptr noundef nonnull %0, ptr noundef %.0185)
  %31 = load ptr, ptr %28, align 8, !tbaa !27
  store ptr null, ptr %28, align 8, !tbaa !27
  br label %32

32:                                               ; preds = %30, %.thread
  %.1186 = phi ptr [ %31, %30 ], [ %.0185, %.thread ]
  tail call void @sqlite3BtreeLeaveAll(ptr noundef nonnull %0)
  br label %.thread253

.lr.ph:                                           ; preds = %.preheader287, %38
  %indvars.iv = phi i64 [ %indvars.iv.next, %38 ], [ 0, %.preheader287 ]
  %33 = load ptr, ptr %24, align 8, !tbaa !28
  %34 = getelementptr inbounds %struct.Column, ptr %33, i64 %indvars.iv
  %35 = load ptr, ptr %34, align 8, !tbaa !29
  %36 = tail call i32 @sqlite3StrICmp(ptr noundef %35, ptr noundef %3)
  %37 = icmp eq i32 %36, 0
  %.pre.pre = load i32, ptr %25, align 4, !tbaa !26
  br i1 %37, label %._crit_edge.loopexit, label %38

38:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %39 = sext i32 %.pre.pre to i64
  %40 = icmp slt i64 %indvars.iv.next, %39
  br i1 %40, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !31

._crit_edge.loopexit:                             ; preds = %.lr.ph, %38
  %.0182.lcssa.ph.in = phi i64 [ %indvars.iv.next, %38 ], [ %indvars.iv, %.lr.ph ]
  %.0182.lcssa.ph = trunc i64 %.0182.lcssa.ph.in to i32
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader287
  %41 = phi i32 [ %26, %.preheader287 ], [ %.pre.pre, %._crit_edge.loopexit ]
  %.0182.lcssa = phi i32 [ 0, %.preheader287 ], [ %.0182.lcssa.ph, %._crit_edge.loopexit ]
  %42 = icmp eq i32 %.0182.lcssa, %41
  br i1 %42, label %43, label %45

43:                                               ; preds = %._crit_edge
  tail call void @sqlite3DbFree(ptr noundef %0, ptr noundef %.0185)
  %44 = tail call ptr (ptr, ptr, ...) @sqlite3MPrintf(ptr noundef %0, ptr noundef nonnull @.str.8, ptr noundef %3)
  tail call void @sqlite3BtreeLeaveAll(ptr noundef %0)
  br label %.thread253

45:                                               ; preds = %._crit_edge
  %46 = icmp ne i32 %.0171, 0
  br i1 %46, label %47, label %.thread233

47:                                               ; preds = %45
  %48 = load i32, ptr %12, align 8, !tbaa !33
  %49 = and i32 %48, 67108864
  %.not212 = icmp eq i32 %49, 0
  br i1 %.not212, label %.loopexit, label %50

50:                                               ; preds = %47
  %51 = getelementptr inbounds i8, ptr %16, i64 56
  %.0178334 = load ptr, ptr %51, align 8, !tbaa !5
  %.not213335 = icmp eq ptr %.0178334, null
  br i1 %.not213335, label %.loopexit, label %.preheader286

.preheader286:                                    ; preds = %50, %._crit_edge332
  %.0178337 = phi ptr [ %.0178, %._crit_edge332 ], [ %.0178334, %50 ]
  %.0180336 = phi ptr [ %.1181.lcssa, %._crit_edge332 ], [ null, %50 ]
  %52 = getelementptr inbounds i8, ptr %.0178337, i64 40
  %53 = load i32, ptr %52, align 8, !tbaa !34
  %54 = icmp sgt i32 %53, 0
  br i1 %54, label %.lr.ph331, label %._crit_edge332

.lr.ph331:                                        ; preds = %.preheader286
  %55 = getelementptr inbounds i8, ptr %.0178337, i64 64
  %wide.trip.count = zext nneg i32 %53 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %56 = icmp ult i32 %53, 4
  br i1 %56, label %._crit_edge332.loopexit.unr-lcssa, label %.lr.ph331.new

.lr.ph331.new:                                    ; preds = %.lr.ph331
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  br label %57

57:                                               ; preds = %57, %.lr.ph331.new
  %indvars.iv384 = phi i64 [ 0, %.lr.ph331.new ], [ %indvars.iv.next385.3, %57 ]
  %.1181329 = phi ptr [ %.0180336, %.lr.ph331.new ], [ %spec.select.3, %57 ]
  %niter = phi i64 [ 0, %.lr.ph331.new ], [ %niter.next.3, %57 ]
  %58 = getelementptr inbounds [1 x %struct.sColMap], ptr %55, i64 0, i64 %indvars.iv384
  %59 = load i32, ptr %58, align 8, !tbaa !36
  %60 = icmp eq i32 %59, %.0182.lcssa
  %indvars.iv.next385 = or disjoint i64 %indvars.iv384, 1
  %61 = getelementptr inbounds [1 x %struct.sColMap], ptr %55, i64 0, i64 %indvars.iv.next385
  %62 = load i32, ptr %61, align 8, !tbaa !36
  %63 = icmp eq i32 %62, %.0182.lcssa
  %indvars.iv.next385.1 = or disjoint i64 %indvars.iv384, 2
  %64 = getelementptr inbounds [1 x %struct.sColMap], ptr %55, i64 0, i64 %indvars.iv.next385.1
  %65 = load i32, ptr %64, align 8, !tbaa !36
  %66 = icmp eq i32 %65, %.0182.lcssa
  %indvars.iv.next385.2 = or disjoint i64 %indvars.iv384, 3
  %67 = getelementptr inbounds [1 x %struct.sColMap], ptr %55, i64 0, i64 %indvars.iv.next385.2
  %68 = load i32, ptr %67, align 8, !tbaa !36
  %69 = icmp eq i32 %68, %.0182.lcssa
  %70 = select i1 %69, i1 true, i1 %66
  %71 = select i1 %70, i1 true, i1 %63
  %72 = select i1 %71, i1 true, i1 %60
  %spec.select.3 = select i1 %72, ptr @.str.9, ptr %.1181329
  %indvars.iv.next385.3 = add nuw nsw i64 %indvars.iv384, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge332.loopexit.unr-lcssa, label %57, !llvm.loop !38

._crit_edge332.loopexit.unr-lcssa:                ; preds = %57, %.lr.ph331
  %spec.select.lcssa.ph = phi ptr [ poison, %.lr.ph331 ], [ %spec.select.3, %57 ]
  %indvars.iv384.unr = phi i64 [ 0, %.lr.ph331 ], [ %indvars.iv.next385.3, %57 ]
  %.1181329.unr = phi ptr [ %.0180336, %.lr.ph331 ], [ %spec.select.3, %57 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge332, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge332.loopexit.unr-lcssa, %.epil.preheader
  %indvars.iv384.epil = phi i64 [ %indvars.iv.next385.epil, %.epil.preheader ], [ %indvars.iv384.unr, %._crit_edge332.loopexit.unr-lcssa ]
  %.1181329.epil = phi ptr [ %spec.select.epil, %.epil.preheader ], [ %.1181329.unr, %._crit_edge332.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge332.loopexit.unr-lcssa ]
  %73 = getelementptr inbounds [1 x %struct.sColMap], ptr %55, i64 0, i64 %indvars.iv384.epil
  %74 = load i32, ptr %73, align 8, !tbaa !36
  %75 = icmp eq i32 %74, %.0182.lcssa
  %spec.select.epil = select i1 %75, ptr @.str.9, ptr %.1181329.epil
  %indvars.iv.next385.epil = add nuw nsw i64 %indvars.iv384.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge332, label %.epil.preheader, !llvm.loop !39

._crit_edge332:                                   ; preds = %._crit_edge332.loopexit.unr-lcssa, %.epil.preheader, %.preheader286
  %.1181.lcssa = phi ptr [ %.0180336, %.preheader286 ], [ %spec.select.lcssa.ph, %._crit_edge332.loopexit.unr-lcssa ], [ %spec.select.epil, %.epil.preheader ]
  %76 = getelementptr inbounds i8, ptr %.0178337, i64 8
  %.0178 = load ptr, ptr %76, align 8, !tbaa !5
  %.not213 = icmp eq ptr %.0178, null
  br i1 %.not213, label %.loopexit, label %.preheader286, !llvm.loop !41

.loopexit:                                        ; preds = %._crit_edge332, %50, %47
  %.3 = phi ptr [ null, %47 ], [ null, %50 ], [ %.1181.lcssa, %._crit_edge332 ]
  %77 = getelementptr inbounds i8, ptr %16, i64 24
  %.0179344 = load ptr, ptr %77, align 8, !tbaa !5
  %.not214345 = icmp eq ptr %.0179344, null
  br i1 %.not214345, label %._crit_edge348, label %.preheader

.preheader:                                       ; preds = %.loopexit, %._crit_edge342
  %.0179347 = phi ptr [ %.0179, %._crit_edge342 ], [ %.0179344, %.loopexit ]
  %.4346 = phi ptr [ %.5.lcssa, %._crit_edge342 ], [ %.3, %.loopexit ]
  %78 = getelementptr inbounds i8, ptr %.0179347, i64 8
  %79 = load i32, ptr %78, align 8, !tbaa !42
  %80 = icmp sgt i32 %79, 0
  br i1 %80, label %.lr.ph341, label %._crit_edge342

.lr.ph341:                                        ; preds = %.preheader
  %81 = getelementptr inbounds i8, ptr %.0179347, i64 16
  %82 = load ptr, ptr %81, align 8, !tbaa !44
  %wide.trip.count392 = zext nneg i32 %79 to i64
  %xtraiter502 = and i64 %wide.trip.count392, 3
  %83 = icmp ult i32 %79, 4
  br i1 %83, label %._crit_edge342.loopexit.unr-lcssa, label %.lr.ph341.new

.lr.ph341.new:                                    ; preds = %.lr.ph341
  %unroll_iter506 = and i64 %wide.trip.count392, 2147483644
  br label %84

84:                                               ; preds = %84, %.lr.ph341.new
  %indvars.iv388 = phi i64 [ 0, %.lr.ph341.new ], [ %indvars.iv.next389.3, %84 ]
  %.5339 = phi ptr [ %.4346, %.lr.ph341.new ], [ %spec.select224.3, %84 ]
  %niter507 = phi i64 [ 0, %.lr.ph341.new ], [ %niter507.next.3, %84 ]
  %85 = getelementptr inbounds i32, ptr %82, i64 %indvars.iv388
  %86 = load i32, ptr %85, align 4, !tbaa !45
  %87 = icmp eq i32 %86, %.0182.lcssa
  %indvars.iv.next389 = or disjoint i64 %indvars.iv388, 1
  %88 = getelementptr inbounds i32, ptr %82, i64 %indvars.iv.next389
  %89 = load i32, ptr %88, align 4, !tbaa !45
  %90 = icmp eq i32 %89, %.0182.lcssa
  %indvars.iv.next389.1 = or disjoint i64 %indvars.iv388, 2
  %91 = getelementptr inbounds i32, ptr %82, i64 %indvars.iv.next389.1
  %92 = load i32, ptr %91, align 4, !tbaa !45
  %93 = icmp eq i32 %92, %.0182.lcssa
  %indvars.iv.next389.2 = or disjoint i64 %indvars.iv388, 3
  %94 = getelementptr inbounds i32, ptr %82, i64 %indvars.iv.next389.2
  %95 = load i32, ptr %94, align 4, !tbaa !45
  %96 = icmp eq i32 %95, %.0182.lcssa
  %97 = select i1 %96, i1 true, i1 %93
  %98 = select i1 %97, i1 true, i1 %90
  %99 = select i1 %98, i1 true, i1 %87
  %spec.select224.3 = select i1 %99, ptr @.str.10, ptr %.5339
  %indvars.iv.next389.3 = add nuw nsw i64 %indvars.iv388, 4
  %niter507.next.3 = add i64 %niter507, 4
  %niter507.ncmp.3 = icmp eq i64 %niter507.next.3, %unroll_iter506
  br i1 %niter507.ncmp.3, label %._crit_edge342.loopexit.unr-lcssa, label %84, !llvm.loop !46

._crit_edge342.loopexit.unr-lcssa:                ; preds = %84, %.lr.ph341
  %spec.select224.lcssa.ph = phi ptr [ poison, %.lr.ph341 ], [ %spec.select224.3, %84 ]
  %indvars.iv388.unr = phi i64 [ 0, %.lr.ph341 ], [ %indvars.iv.next389.3, %84 ]
  %.5339.unr = phi ptr [ %.4346, %.lr.ph341 ], [ %spec.select224.3, %84 ]
  %lcmp.mod504.not = icmp eq i64 %xtraiter502, 0
  br i1 %lcmp.mod504.not, label %._crit_edge342, label %.epil.preheader501

.epil.preheader501:                               ; preds = %._crit_edge342.loopexit.unr-lcssa, %.epil.preheader501
  %indvars.iv388.epil = phi i64 [ %indvars.iv.next389.epil, %.epil.preheader501 ], [ %indvars.iv388.unr, %._crit_edge342.loopexit.unr-lcssa ]
  %.5339.epil = phi ptr [ %spec.select224.epil, %.epil.preheader501 ], [ %.5339.unr, %._crit_edge342.loopexit.unr-lcssa ]
  %epil.iter503 = phi i64 [ %epil.iter503.next, %.epil.preheader501 ], [ 0, %._crit_edge342.loopexit.unr-lcssa ]
  %100 = getelementptr inbounds i32, ptr %82, i64 %indvars.iv388.epil
  %101 = load i32, ptr %100, align 4, !tbaa !45
  %102 = icmp eq i32 %101, %.0182.lcssa
  %spec.select224.epil = select i1 %102, ptr @.str.10, ptr %.5339.epil
  %indvars.iv.next389.epil = add nuw nsw i64 %indvars.iv388.epil, 1
  %epil.iter503.next = add i64 %epil.iter503, 1
  %epil.iter503.cmp.not = icmp eq i64 %epil.iter503.next, %xtraiter502
  br i1 %epil.iter503.cmp.not, label %._crit_edge342, label %.epil.preheader501, !llvm.loop !47

._crit_edge342:                                   ; preds = %._crit_edge342.loopexit.unr-lcssa, %.epil.preheader501, %.preheader
  %.5.lcssa = phi ptr [ %.4346, %.preheader ], [ %spec.select224.lcssa.ph, %._crit_edge342.loopexit.unr-lcssa ], [ %spec.select224.epil, %.epil.preheader501 ]
  %103 = getelementptr inbounds i8, ptr %.0179347, i64 56
  %.0179 = load ptr, ptr %103, align 8, !tbaa !5
  %.not214 = icmp eq ptr %.0179, null
  br i1 %.not214, label %._crit_edge348, label %.preheader, !llvm.loop !48

._crit_edge348:                                   ; preds = %._crit_edge342, %.loopexit
  %.4.lcssa = phi ptr [ %.3, %.loopexit ], [ %.5.lcssa, %._crit_edge342 ]
  %.not215 = icmp eq ptr %.4.lcssa, null
  br i1 %.not215, label %.thread233, label %104

104:                                              ; preds = %._crit_edge348
  tail call void @sqlite3DbFree(ptr noundef %0, ptr noundef %.0185)
  %105 = tail call ptr (ptr, ptr, ...) @sqlite3MPrintf(ptr noundef %0, ptr noundef nonnull @.str.11, ptr noundef nonnull %.4.lcssa)
  tail call void @sqlite3BtreeLeaveAll(ptr noundef %0)
  br label %.thread253

.thread233:                                       ; preds = %._crit_edge348, %45
  %106 = tail call ptr @sqlite3VdbeCreate(ptr noundef %0)
  %.not216 = icmp eq ptr %106, null
  br i1 %.not216, label %.thread395, label %107

107:                                              ; preds = %.thread233
  %108 = getelementptr inbounds i8, ptr %16, i64 120
  %109 = load ptr, ptr %108, align 8, !tbaa !49
  %110 = tail call i32 @sqlite3SchemaToIndex(ptr noundef %0, ptr noundef %109)
  %111 = tail call i32 @sqlite3VdbeAddOpList(ptr noundef nonnull %106, i32 noundef 11, ptr noundef nonnull @sqlite3_blob_open.openBlob)
  %112 = zext i1 %46 to i32
  tail call void @sqlite3VdbeChangeP1(ptr noundef nonnull %106, i32 noundef 0, i32 noundef %110)
  tail call void @sqlite3VdbeChangeP2(ptr noundef nonnull %106, i32 noundef 0, i32 noundef %112)
  tail call void @sqlite3VdbeChangeP1(ptr noundef nonnull %106, i32 noundef 1, i32 noundef %110)
  %113 = load ptr, ptr %108, align 8, !tbaa !49
  %114 = load i32, ptr %113, align 8, !tbaa !50
  tail call void @sqlite3VdbeChangeP2(ptr noundef nonnull %106, i32 noundef 1, i32 noundef %114)
  tail call void @sqlite3VdbeUsesBtree(ptr noundef nonnull %106, i32 noundef %110)
  tail call void @sqlite3VdbeChangeP1(ptr noundef nonnull %106, i32 noundef 2, i32 noundef %110)
  %115 = getelementptr inbounds i8, ptr %16, i64 32
  %116 = load i32, ptr %115, align 8, !tbaa !52
  tail call void @sqlite3VdbeChangeP2(ptr noundef nonnull %106, i32 noundef 2, i32 noundef %116)
  tail call void @sqlite3VdbeChangeP3(ptr noundef nonnull %106, i32 noundef 2, i32 noundef %112)
  %117 = load ptr, ptr %16, align 8, !tbaa !53
  tail call void @sqlite3VdbeChangeP4(ptr noundef nonnull %106, i32 noundef 2, ptr noundef %117, i32 noundef -9)
  %118 = select i1 %46, i32 3, i32 4
  tail call void @sqlite3VdbeChangeToNoop(ptr noundef nonnull %106, i32 noundef %118, i32 noundef 1)
  %119 = select i1 %46, i32 4, i32 3
  %120 = load i32, ptr %115, align 8, !tbaa !52
  tail call void @sqlite3VdbeChangeP2(ptr noundef nonnull %106, i32 noundef %119, i32 noundef %120)
  tail call void @sqlite3VdbeChangeP3(ptr noundef nonnull %106, i32 noundef %119, i32 noundef %110)
  %121 = load i32, ptr %25, align 4, !tbaa !26
  %122 = add nsw i32 %121, 1
  %123 = sext i32 %122 to i64
  %124 = inttoptr i64 %123 to ptr
  tail call void @sqlite3VdbeChangeP4(ptr noundef nonnull %106, i32 noundef %119, ptr noundef %124, i32 noundef -14)
  %125 = load i32, ptr %25, align 4, !tbaa !26
  tail call void @sqlite3VdbeChangeP2(ptr noundef nonnull %106, i32 noundef 7, i32 noundef %125)
  %126 = load i8, ptr %13, align 2, !tbaa !54
  %.not217 = icmp eq i8 %126, 0
  br i1 %.not217, label %127, label %128

127:                                              ; preds = %107
  tail call void @sqlite3VdbeMakeReady(ptr noundef nonnull %106, i32 noundef 1, i32 noundef 1, i32 noundef 1, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  br label %128

128:                                              ; preds = %107, %127
  tail call void @sqlite3BtreeLeaveAll(ptr noundef nonnull %0)
  %129 = load i8, ptr %13, align 2, !tbaa !54
  %.not218 = icmp eq i8 %129, 0
  br i1 %.not218, label %131, label %164

.thread395:                                       ; preds = %.thread233
  tail call void @sqlite3BtreeLeaveAll(ptr noundef %0)
  %130 = load i8, ptr %13, align 2, !tbaa !54
  %.not218397 = icmp eq i8 %130, 0
  br i1 %.not218397, label %131, label %.thread253

131:                                              ; preds = %.thread395, %128
  %.1398 = phi i32 [ %.0171, %.thread395 ], [ %112, %128 ]
  %132 = tail call i32 @sqlite3_bind_int64(ptr noundef %106, i32 noundef 1, i64 noundef %4)
  %133 = tail call i32 @sqlite3_step(ptr noundef %106)
  %.not219 = icmp eq i32 %133, 100
  br i1 %.not219, label %.thread246, label %134

134:                                              ; preds = %131
  %135 = add nuw nsw i32 %.0172, 1
  %136 = tail call i32 @sqlite3_finalize(ptr noundef %106)
  tail call void @sqlite3DbFree(ptr noundef nonnull %0, ptr noundef %.0185)
  %137 = tail call ptr @sqlite3_errmsg(ptr noundef nonnull %0)
  %138 = tail call ptr (ptr, ptr, ...) @sqlite3MPrintf(ptr noundef nonnull %0, ptr noundef %137)
  %139 = icmp ult i32 %.0172, 4
  %140 = icmp eq i32 %136, 17
  %141 = select i1 %139, i1 %140, i1 false
  br i1 %141, label %15, label %142, !llvm.loop !55

142:                                              ; preds = %134
  %cond = icmp eq i32 %136, 0
  br i1 %cond, label %162, label %.thread253

.thread246:                                       ; preds = %131
  %143 = getelementptr inbounds i8, ptr %106, i64 88
  %144 = load ptr, ptr %143, align 8, !tbaa !56
  %145 = load ptr, ptr %144, align 8, !tbaa !5
  %146 = getelementptr inbounds i8, ptr %145, i64 120
  %147 = load ptr, ptr %146, align 8, !tbaa !59
  %148 = zext nneg i32 %.0182.lcssa to i64
  %149 = getelementptr inbounds i32, ptr %147, i64 %148
  %150 = load i32, ptr %149, align 4, !tbaa !45
  %151 = icmp ult i32 %150, 12
  br i1 %151, label %152, label %158

152:                                              ; preds = %.thread246
  tail call void @sqlite3DbFree(ptr noundef nonnull %0, ptr noundef %.0185)
  %153 = icmp eq i32 %150, 0
  %154 = icmp eq i32 %150, 7
  %155 = select i1 %154, ptr @.str.14, ptr @.str.15
  %156 = select i1 %153, ptr @.str.13, ptr %155
  %157 = tail call ptr (ptr, ptr, ...) @sqlite3MPrintf(ptr noundef nonnull %0, ptr noundef nonnull @.str.12, ptr noundef nonnull %156)
  br label %.thread263.thread

158:                                              ; preds = %.thread246
  %159 = tail call ptr @sqlite3DbMallocZero(ptr noundef nonnull %0, i32 noundef 40)
  %160 = load i8, ptr %13, align 2, !tbaa !54
  %.not220 = icmp eq i8 %160, 0
  br i1 %.not220, label %165, label %161

161:                                              ; preds = %158
  tail call void @sqlite3DbFree(ptr noundef nonnull %0, ptr noundef %159)
  br label %.thread263.thread

162:                                              ; preds = %142
  tail call void @sqlite3DbFree(ptr noundef nonnull %0, ptr noundef %138)
  %163 = tail call ptr (ptr, ptr, ...) @sqlite3MPrintf(ptr noundef nonnull %0, ptr noundef nonnull @.str.16, i64 noundef %4)
  br label %.thread253

164:                                              ; preds = %128
  br i1 %.not216, label %.thread253, label %.thread263.thread

165:                                              ; preds = %158
  store i32 %.1398, ptr %159, align 8, !tbaa !61
  %166 = load ptr, ptr %143, align 8, !tbaa !56
  %167 = load ptr, ptr %166, align 8, !tbaa !5
  %168 = load ptr, ptr %167, align 8, !tbaa !63
  %169 = getelementptr inbounds i8, ptr %159, i64 16
  store ptr %168, ptr %169, align 8, !tbaa !64
  tail call void @sqlite3BtreeEnterCursor(ptr noundef %168)
  %170 = load ptr, ptr %169, align 8, !tbaa !64
  tail call void @sqlite3BtreeCacheOverflow(ptr noundef %170)
  %171 = load ptr, ptr %169, align 8, !tbaa !64
  tail call void @sqlite3BtreeLeaveCursor(ptr noundef %171)
  %172 = getelementptr inbounds i8, ptr %159, i64 24
  store ptr %106, ptr %172, align 8, !tbaa !65
  %173 = load ptr, ptr %143, align 8, !tbaa !56
  %174 = load ptr, ptr %173, align 8, !tbaa !5
  %175 = getelementptr inbounds i8, ptr %174, i64 128
  %176 = load ptr, ptr %175, align 8, !tbaa !66
  %177 = getelementptr inbounds i32, ptr %176, i64 %148
  %178 = load i32, ptr %177, align 4, !tbaa !45
  %179 = getelementptr inbounds i8, ptr %159, i64 8
  store i32 %178, ptr %179, align 8, !tbaa !67
  %180 = tail call i32 @sqlite3VdbeSerialTypeLen(i32 noundef %150)
  %181 = getelementptr inbounds i8, ptr %159, i64 4
  store i32 %180, ptr %181, align 4, !tbaa !68
  %182 = getelementptr inbounds i8, ptr %159, i64 32
  store ptr %0, ptr %182, align 8, !tbaa !69
  store ptr %159, ptr %6, align 8, !tbaa !5
  %.pre394 = load i8, ptr %13, align 2, !tbaa !54
  %183 = icmp eq i8 %.pre394, 0
  br i1 %183, label %.thread253, label %.thread263.thread

.thread263.thread:                                ; preds = %164, %152, %161, %165
  %.5197269276 = phi i32 [ 0, %165 ], [ 1, %152 ], [ 100, %161 ], [ %.0192, %164 ]
  %.6191270275 = phi ptr [ %.0185, %165 ], [ %157, %152 ], [ %.0185, %161 ], [ %.0185, %164 ]
  %184 = tail call i32 @sqlite3VdbeFinalize(ptr noundef nonnull %106)
  br label %.thread253

.thread253:                                       ; preds = %.thread395, %142, %7, %32, %162, %104, %43, %.thread263.thread, %165, %164
  %.6191259 = phi ptr [ %.6191270275, %.thread263.thread ], [ %.0185, %165 ], [ %.0185, %164 ], [ %138, %142 ], [ null, %7 ], [ %.1186, %32 ], [ %163, %162 ], [ %105, %104 ], [ %44, %43 ], [ %.0185, %.thread395 ]
  %.5197258 = phi i32 [ %.5197269276, %.thread263.thread ], [ 0, %165 ], [ %.0192, %164 ], [ %136, %142 ], [ 7, %7 ], [ 1, %32 ], [ 1, %162 ], [ 1, %104 ], [ 1, %43 ], [ %.0192, %.thread395 ]
  tail call void (ptr, i32, ptr, ...) @sqlite3Error(ptr noundef %0, i32 noundef %.5197258, ptr noundef %.6191259)
  tail call void @sqlite3DbFree(ptr noundef %0, ptr noundef %.6191259)
  tail call void @sqlite3DbFree(ptr noundef %0, ptr noundef %10)
  %185 = tail call i32 @sqlite3ApiExit(ptr noundef %0, i32 noundef %.5197258)
  %186 = load ptr, ptr %8, align 8, !tbaa !9
  tail call void @sqlite3_mutex_leave(ptr noundef %186)
  ret i32 %185
}

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

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

; Function Attrs: nounwind uwtable
declare hidden void @sqlite3ErrorMsg(ptr noundef, ptr noundef, ...) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
declare hidden ptr @sqlite3MPrintf(ptr noundef, ptr noundef, ...) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden ptr @sqlite3VdbeCreate(ptr noundef) local_unnamed_addr #0

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @sqlite3_errmsg(ptr noundef) local_unnamed_addr #0

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

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

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

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

; Function Attrs: nounwind uwtable
declare hidden i32 @sqlite3VdbeSerialTypeLen(i32 noundef) local_unnamed_addr #0

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 88}
!10 = !{!"sqlite3", !6, i64 0, !11, i64 8, !6, i64 16, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !7, i64 40, !7, i64 41, !7, i64 42, !7, i64 43, !7, i64 44, !7, i64 45, !11, i64 48, !11, i64 52, !6, i64 56, !12, i64 64, !11, i64 72, !11, i64 76, !11, i64 80, !6, i64 88, !7, i64 96, !13, i64 140, !11, i64 152, !6, i64 160, !6, i64 168, !11, i64 176, !11, 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, !14, i64 336, !6, i64 376, !6, i64 384, !6, i64 392, !6, i64 400, !11, i64 408, !16, i64 416, !6, i64 440, !6, i64 448, !11, i64 456, !6, i64 464, !17, i64 472, !16, i64 656, !18, i64 680, !11, i64 704, !7, i64 712, !6, i64 776, !11, i64 784, !11, i64 788, !7, i64 792, !12, i64 800, !6, i64 808}
!11 = !{!"int", !7, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = !{!"sqlite3InitInfo", !11, i64 0, !11, i64 4, !7, i64 8, !7, i64 9}
!14 = !{!"Lookaside", !15, i64 0, !7, i64 2, !7, i64 3, !11, i64 4, !11, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!15 = !{!"short", !7, i64 0}
!16 = !{!"Hash", !11, i64 0, !11, i64 4, !6, i64 8, !6, i64 16}
!17 = !{!"FuncDefHash", !7, i64 0}
!18 = !{!"BusyHandler", !6, i64 0, !6, i64 8, !11, i64 16}
!19 = !{!20, !6, i64 0}
!20 = !{!"Parse", !6, i64 0, !11, 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, !7, i64 40, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !11, i64 104, !7, i64 108, !7, i64 109, !7, i64 112, !11, i64 352, !11, i64 356, !7, i64 360, !7, i64 361, !11, i64 364, !7, i64 368, !11, i64 416, !6, i64 424, !11, i64 432, !11, i64 436, !6, i64 440, !11, i64 448, !6, i64 456, !6, i64 464, !11, i64 472, !11, i64 476, !7, i64 480, !7, i64 481, !7, i64 482, !21, i64 488, !11, i64 496, !11, i64 500, !11, i64 504, !6, i64 512, !6, i64 520, !11, i64 528, !11, i64 532, !6, i64 536, !7, i64 544, !22, i64 552, !22, i64 568, !6, i64 584, !6, i64 592, !6, i64 600, !6, i64 608, !22, i64 616, !7, i64 632, !11, i64 636, !6, i64 640, !11, i64 648, !6, i64 656, !6, i64 664}
!21 = !{!"double", !7, i64 0}
!22 = !{!"Token", !6, i64 0, !11, i64 8}
!23 = !{!24, !7, i64 50}
!24 = !{!"Table", !6, i64 0, !11, i64 8, !11, i64 12, !6, i64 16, !6, i64 24, !11, i64 32, !11, i64 36, !6, i64 40, !15, i64 48, !7, i64 50, !7, i64 51, !6, i64 56, !6, i64 64, !6, i64 72, !11, i64 80, !6, i64 88, !11, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128}
!25 = !{!24, !6, i64 40}
!26 = !{!24, !11, i64 12}
!27 = !{!20, !6, i64 16}
!28 = !{!24, !6, i64 16}
!29 = !{!30, !6, i64 0}
!30 = !{!"Column", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !7, i64 40, !7, i64 41, !7, i64 42, !7, i64 43}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = !{!10, !11, i64 24}
!34 = !{!35, !11, i64 40}
!35 = !{!"FKey", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !11, i64 40, !7, i64 44, !7, i64 45, !7, i64 48, !7, i64 64}
!36 = !{!37, !11, i64 0}
!37 = !{!"sColMap", !11, i64 0, !6, i64 8}
!38 = distinct !{!38, !32}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.unroll.disable"}
!41 = distinct !{!41, !32}
!42 = !{!43, !11, i64 8}
!43 = !{!"Index", !6, i64 0, !11, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !11, i64 40, !7, i64 44, !7, i64 45, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88}
!44 = !{!43, !6, i64 16}
!45 = !{!11, !11, i64 0}
!46 = distinct !{!46, !32}
!47 = distinct !{!47, !40}
!48 = distinct !{!48, !32}
!49 = !{!24, !6, i64 120}
!50 = !{!51, !11, i64 0}
!51 = !{!"Schema", !11, i64 0, !16, i64 8, !16, i64 32, !16, i64 56, !16, i64 80, !6, i64 104, !7, i64 112, !7, i64 113, !15, i64 114, !11, i64 116}
!52 = !{!24, !11, i64 32}
!53 = !{!24, !6, i64 0}
!54 = !{!10, !7, i64 42}
!55 = distinct !{!55, !32}
!56 = !{!57, !6, i64 88}
!57 = !{!"Vdbe", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 28, !6, i64 32, !11, i64 40, !11, i64 44, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !15, i64 80, !15, i64 82, !6, i64 88, !7, i64 96, !7, i64 97, !15, i64 98, !6, i64 104, !6, i64 112, !11, i64 120, !11, i64 124, !6, i64 128, !11, i64 136, !11, i64 140, !11, 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, !11, i64 172, !11, i64 176, !12, i64 184, !58, i64 192, !7, i64 288, !6, i64 304, !6, i64 312, !12, i64 320, !12, i64 328, !11, i64 336, !6, i64 344, !11, i64 352, !11, i64 356, !6, i64 360}
!58 = !{!"BtreeMutexArray", !11, i64 0, !7, i64 8}
!59 = !{!60, !6, i64 120}
!60 = !{!"VdbeCursor", !6, i64 0, !11, i64 8, !12, i64 16, !7, i64 24, !7, i64 25, !7, i64 26, !7, i64 27, !7, i64 28, !7, i64 29, !7, i64 30, !7, i64 31, !7, i64 32, !12, i64 40, !6, i64 48, !11, i64 56, !6, i64 64, !11, i64 72, !12, i64 80, !6, i64 88, !6, i64 96, !11, i64 104, !11, i64 108, !11, i64 112, !6, i64 120, !6, i64 128, !6, i64 136}
!61 = !{!62, !11, i64 0}
!62 = !{!"Incrblob", !11, i64 0, !11, i64 4, !11, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!63 = !{!60, !6, i64 0}
!64 = !{!62, !6, i64 16}
!65 = !{!62, !6, i64 24}
!66 = !{!60, !6, i64 128}
!67 = !{!62, !11, i64 8}
!68 = !{!62, !11, i64 4}
!69 = !{!62, !6, i64 32}


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