; LLVM IR from eProsima/Fast-DDS :: src/cpp/rtps/persistence (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.Parse = type { ptr, ptr, ptr, i32, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, %struct.Token, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, %union.anon.11, i32, i32, i16, i8, i8, i8, i8, [8 x i32], ptr, %struct.Token, %struct.Token, i16, i8, i8, i8, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.Token, ptr, ptr, ptr }
%union.anon.11 = type { ptr }
%struct.Token = type { ptr, i32 }
%struct.sqlite3 = type { ptr, ptr, ptr, ptr, ptr, i32, i32, i64, i64, i64, i32, i32, i32, i32, i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i32, i64, i64, [12 x i32], i32, %struct.sqlite3InitInfo, i32, i32, i32, i32, i32, i32, ptr, %union.anon, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %union.anon.0, %struct.Lookaside, ptr, ptr, ptr, ptr, i32, i32, %struct.Hash, ptr, ptr, ptr, %struct.Hash, %struct.Hash, %struct.BusyHandler, [2 x %struct.Db], ptr, i32, i32, i32, i32, i64, i64, ptr, ptr }
%struct.sqlite3InitInfo = type { i32, i8, i8, i8, ptr }
%union.anon = type { ptr }
%union.anon.0 = type { double }
%struct.Lookaside = type { i32, i16, i16, i8, i32, [3 x i32], ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.Hash = type { i32, i32, ptr, ptr }
%struct.BusyHandler = type { ptr, ptr, i32 }
%struct.Db = type { ptr, ptr, i8, i8, ptr }
%struct.VtabCtx = type { ptr, ptr, ptr, i32 }
%struct.Table = type { ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i16, i16, i16, i16, i16, i8, i8, %union.anon.12, ptr, ptr }
%union.anon.12 = type { %struct.anon.13 }
%struct.anon.13 = type { i32, ptr, ptr }
%struct.VTable = type { ptr, ptr, ptr, i32, i8, i8, i8, i32, ptr }
%struct.Module = type { ptr, ptr, i32, ptr, ptr, ptr }
%struct.sqlite3_module = type { i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.Index = type <{ ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i16, i16, i16, i8, i16, [3 x i8], i64 }>

@.str.28 = external hidden unnamed_addr constant [3 x i8], align 1
@sqlite3_declare_vtab.aKeyword = external hidden constant [3 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [13 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: nounwind uwtable
declare hidden i32 @sqlite3MisuseError(i32 noundef) #1

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @sqlite3_declare_vtab(ptr noundef %0, ptr noundef %1) #1 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca %struct.Parse, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, 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 8, ptr %8) #2
  call void @llvm.lifetime.start.p0(i64 424, ptr %9) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #2
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %17, ptr %12, align 8, !tbaa !5
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %18

18:                                               ; preds = %48, %2
  %19 = load i32, ptr %11, align 4, !tbaa !9
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds [3 x i8], ptr @sqlite3_declare_vtab.aKeyword, i64 0, i64 %20
  %22 = load i8, ptr %21, align 1, !tbaa !11
  %23 = icmp ne i8 %22, 0
  br i1 %23, label %24, label %51

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

25:                                               ; preds = %31, %24
  %26 = load ptr, ptr %12, align 8, !tbaa !5
  %27 = call i32 @sqlite3GetToken(ptr noundef %26, ptr noundef %13)
  %28 = load ptr, ptr %12, align 8, !tbaa !5
  %29 = sext i32 %27 to i64
  %30 = getelementptr inbounds i8, ptr %28, i64 %29
  store ptr %30, ptr %12, align 8, !tbaa !5
  br label %31

31:                                               ; preds = %25
  %32 = load i32, ptr %13, align 4, !tbaa !9
  %33 = icmp eq i32 %32, 184
  br i1 %33, label %25, label %34, !llvm.loop !12

34:                                               ; preds = %31
  %35 = load i32, ptr %13, align 4, !tbaa !9
  %36 = load i32, ptr %11, align 4, !tbaa !9
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [3 x i8], ptr @sqlite3_declare_vtab.aKeyword, i64 0, i64 %37
  %39 = load i8, ptr %38, align 1, !tbaa !11
  %40 = zext i8 %39 to i32
  %41 = icmp ne i32 %35, %40
  br i1 %41, label %42, label %44

42:                                               ; preds = %34
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  call void (ptr, i32, ptr, ...) @sqlite3ErrorWithMsg(ptr noundef %43, i32 noundef 1, ptr noundef @.str.29)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %45

44:                                               ; preds = %34
  store i32 0, ptr %14, align 4
  br label %45

45:                                               ; preds = %44, %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #2
  %46 = load i32, ptr %14, align 4
  switch i32 %46, label %208 [
    i32 0, label %47
  ]

47:                                               ; preds = %45
  br label %48

48:                                               ; preds = %47
  %49 = load i32, ptr %11, align 4, !tbaa !9
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %11, align 4, !tbaa !9
  br label %18, !llvm.loop !14

51:                                               ; preds = %18
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.sqlite3, ptr %52, i32 0, i32 3
  %54 = load ptr, ptr %53, align 8, !tbaa !15
  call void @sqlite3_mutex_enter(ptr noundef %54)
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.sqlite3, ptr %55, i32 0, i32 73
  %57 = load ptr, ptr %56, align 8, !tbaa !23
  store ptr %57, ptr %6, align 8, !tbaa !5
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = icmp ne ptr %58, null
  br i1 %59, label %60, label %65

60:                                               ; preds = %51
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.VtabCtx, ptr %61, i32 0, i32 3
  %63 = load i32, ptr %62, align 8, !tbaa !24
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %65, label %72

65:                                               ; preds = %60, %51
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = call i32 @sqlite3MisuseError(i32 noundef 157205)
  call void @sqlite3Error(ptr noundef %66, i32 noundef %67)
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.sqlite3, ptr %68, i32 0, i32 3
  %70 = load ptr, ptr %69, align 8, !tbaa !15
  call void @sqlite3_mutex_leave(ptr noundef %70)
  %71 = call i32 @sqlite3MisuseError(i32 noundef 157207)
  store i32 %71, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %208

72:                                               ; preds = %60
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.VtabCtx, ptr %73, i32 0, i32 1
  %75 = load ptr, ptr %74, align 8, !tbaa !26
  store ptr %75, ptr %8, align 8, !tbaa !5
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  call void @sqlite3ParseObjectInit(ptr noundef %9, ptr noundef %76)
  %77 = getelementptr inbounds %struct.Parse, ptr %9, i32 0, i32 60
  store i8 1, ptr %77, align 4, !tbaa !27
  %78 = getelementptr inbounds %struct.Parse, ptr %9, i32 0, i32 52
  store i8 1, ptr %78, align 1, !tbaa !30
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.sqlite3, ptr %79, i32 0, i32 36
  %81 = getelementptr inbounds %struct.sqlite3InitInfo, ptr %80, i32 0, i32 2
  %82 = load i8, ptr %81, align 1, !tbaa !31
  %83 = zext i8 %82 to i32
  store i32 %83, ptr %10, align 4, !tbaa !9
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.sqlite3, ptr %84, i32 0, i32 36
  %86 = getelementptr inbounds %struct.sqlite3InitInfo, ptr %85, i32 0, i32 2
  store i8 0, ptr %86, align 1, !tbaa !31
  %87 = getelementptr inbounds %struct.Parse, ptr %9, i32 0, i32 48
  store i16 1, ptr %87, align 8, !tbaa !32
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = call i32 @sqlite3RunParser(ptr noundef %9, ptr noundef %88)
  %90 = icmp eq i32 0, %89
  br i1 %90, label %91, label %171

91:                                               ; preds = %72
  %92 = load ptr, ptr %8, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.Table, ptr %92, i32 0, i32 1
  %94 = load ptr, ptr %93, align 8, !tbaa !33
  %95 = icmp ne ptr %94, null
  br i1 %95, label %168, label %96

96:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #2
  %97 = getelementptr inbounds %struct.Parse, ptr %9, i32 0, i32 67
  %98 = load ptr, ptr %97, align 8, !tbaa !35
  store ptr %98, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #2
  %99 = load ptr, ptr %15, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.Table, ptr %99, i32 0, i32 1
  %101 = load ptr, ptr %100, align 8, !tbaa !33
  %102 = load ptr, ptr %8, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.Table, ptr %102, i32 0, i32 1
  store ptr %101, ptr %103, align 8, !tbaa !33
  %104 = load ptr, ptr %4, align 8, !tbaa !5
  %105 = load ptr, ptr %15, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.Table, ptr %105, i32 0, i32 15
  %107 = getelementptr inbounds %struct.anon.13, ptr %106, i32 0, i32 2
  %108 = load ptr, ptr %107, align 8, !tbaa !11
  call void @sqlite3ExprListDelete(ptr noundef %104, ptr noundef %108)
  %109 = load ptr, ptr %15, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.Table, ptr %109, i32 0, i32 9
  %111 = load i16, ptr %110, align 2, !tbaa !36
  %112 = load ptr, ptr %8, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.Table, ptr %112, i32 0, i32 9
  store i16 %111, ptr %113, align 2, !tbaa !36
  %114 = load ptr, ptr %8, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.Table, ptr %114, i32 0, i32 10
  store i16 %111, ptr %115, align 8, !tbaa !37
  %116 = load ptr, ptr %15, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.Table, ptr %116, i32 0, i32 7
  %118 = load i32, ptr %117, align 8, !tbaa !38
  %119 = and i32 %118, 640
  %120 = load ptr, ptr %8, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.Table, ptr %120, i32 0, i32 7
  %122 = load i32, ptr %121, align 8, !tbaa !38
  %123 = or i32 %122, %119
  store i32 %123, ptr %121, align 8, !tbaa !38
  %124 = load ptr, ptr %15, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.Table, ptr %124, i32 0, i32 9
  store i16 0, ptr %125, align 2, !tbaa !36
  %126 = load ptr, ptr %15, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.Table, ptr %126, i32 0, i32 1
  store ptr null, ptr %127, align 8, !tbaa !33
  %128 = load ptr, ptr %15, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.Table, ptr %128, i32 0, i32 7
  %130 = load i32, ptr %129, align 8, !tbaa !38
  %131 = and i32 %130, 128
  %132 = icmp eq i32 %131, 0
  br i1 %132, label %152, label %133

133:                                              ; preds = %96
  %134 = load ptr, ptr %6, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.VtabCtx, ptr %134, i32 0, i32 0
  %136 = load ptr, ptr %135, align 8, !tbaa !39
  %137 = getelementptr inbounds %struct.VTable, ptr %136, i32 0, i32 1
  %138 = load ptr, ptr %137, align 8, !tbaa !40
  %139 = getelementptr inbounds %struct.Module, ptr %138, i32 0, i32 0
  %140 = load ptr, ptr %139, align 8, !tbaa !42
  %141 = getelementptr inbounds %struct.sqlite3_module, ptr %140, i32 0, i32 13
  %142 = load ptr, ptr %141, align 8, !tbaa !44
  %143 = icmp ne ptr %142, null
  br i1 %143, label %144, label %152

144:                                              ; preds = %133
  %145 = load ptr, ptr %15, align 8, !tbaa !5
  %146 = call ptr @sqlite3PrimaryKeyIndex(ptr noundef %145)
  %147 = getelementptr inbounds %struct.Index, ptr %146, i32 0, i32 13
  %148 = load i16, ptr %147, align 2, !tbaa !46
  %149 = zext i16 %148 to i32
  %150 = icmp ne i32 %149, 1
  br i1 %150, label %151, label %152

151:                                              ; preds = %144
  store i32 1, ptr %7, align 4, !tbaa !9
  br label %152

152:                                              ; preds = %151, %144, %133, %96
  %153 = load ptr, ptr %15, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.Table, ptr %153, i32 0, i32 2
  %155 = load ptr, ptr %154, align 8, !tbaa !48
  store ptr %155, ptr %16, align 8, !tbaa !5
  %156 = load ptr, ptr %16, align 8, !tbaa !5
  %157 = icmp ne ptr %156, null
  br i1 %157, label %158, label %167

158:                                              ; preds = %152
  %159 = load ptr, ptr %16, align 8, !tbaa !5
  %160 = load ptr, ptr %8, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.Table, ptr %160, i32 0, i32 2
  store ptr %159, ptr %161, align 8, !tbaa !48
  %162 = load ptr, ptr %15, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.Table, ptr %162, i32 0, i32 2
  store ptr null, ptr %163, align 8, !tbaa !48
  %164 = load ptr, ptr %8, align 8, !tbaa !5
  %165 = load ptr, ptr %16, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.Index, ptr %165, i32 0, i32 3
  store ptr %164, ptr %166, align 8, !tbaa !49
  br label %167

167:                                              ; preds = %158, %152
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #2
  br label %168

168:                                              ; preds = %167, %91
  %169 = load ptr, ptr %6, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.VtabCtx, ptr %169, i32 0, i32 3
  store i32 1, ptr %170, align 8, !tbaa !24
  br label %183

171:                                              ; preds = %72
  %172 = load ptr, ptr %4, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.Parse, ptr %9, i32 0, i32 1
  %174 = load ptr, ptr %173, align 8, !tbaa !50
  %175 = icmp ne ptr %174, null
  %176 = zext i1 %175 to i64
  %177 = select i1 %175, ptr @.str.28, ptr null
  %178 = getelementptr inbounds %struct.Parse, ptr %9, i32 0, i32 1
  %179 = load ptr, ptr %178, align 8, !tbaa !50
  call void (ptr, i32, ptr, ...) @sqlite3ErrorWithMsg(ptr noundef %172, i32 noundef 1, ptr noundef %177, ptr noundef %179)
  %180 = load ptr, ptr %4, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.Parse, ptr %9, i32 0, i32 1
  %182 = load ptr, ptr %181, align 8, !tbaa !50
  call void @sqlite3DbFree(ptr noundef %180, ptr noundef %182)
  store i32 1, ptr %7, align 4, !tbaa !9
  br label %183

183:                                              ; preds = %171, %168
  %184 = getelementptr inbounds %struct.Parse, ptr %9, i32 0, i32 60
  store i8 0, ptr %184, align 4, !tbaa !27
  %185 = getelementptr inbounds %struct.Parse, ptr %9, i32 0, i32 2
  %186 = load ptr, ptr %185, align 8, !tbaa !51
  %187 = icmp ne ptr %186, null
  br i1 %187, label %188, label %192

188:                                              ; preds = %183
  %189 = getelementptr inbounds %struct.Parse, ptr %9, i32 0, i32 2
  %190 = load ptr, ptr %189, align 8, !tbaa !51
  %191 = call i32 @sqlite3VdbeFinalize(ptr noundef %190)
  br label %192

192:                                              ; preds = %188, %183
  %193 = load ptr, ptr %4, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.Parse, ptr %9, i32 0, i32 67
  %195 = load ptr, ptr %194, align 8, !tbaa !35
  call void @sqlite3DeleteTable(ptr noundef %193, ptr noundef %195)
  call void @sqlite3ParseObjectReset(ptr noundef %9)
  %196 = load i32, ptr %10, align 4, !tbaa !9
  %197 = trunc i32 %196 to i8
  %198 = load ptr, ptr %4, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.sqlite3, ptr %198, i32 0, i32 36
  %200 = getelementptr inbounds %struct.sqlite3InitInfo, ptr %199, i32 0, i32 2
  store i8 %197, ptr %200, align 1, !tbaa !31
  %201 = load ptr, ptr %4, align 8, !tbaa !5
  %202 = load i32, ptr %7, align 4, !tbaa !9
  %203 = call i32 @sqlite3ApiExit(ptr noundef %201, i32 noundef %202)
  store i32 %203, ptr %7, align 4, !tbaa !9
  %204 = load ptr, ptr %4, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.sqlite3, ptr %204, i32 0, i32 3
  %206 = load ptr, ptr %205, align 8, !tbaa !15
  call void @sqlite3_mutex_leave(ptr noundef %206)
  %207 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %207, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %208

208:                                              ; preds = %192, %65, %45
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #2
  call void @llvm.lifetime.end.p0(i64 424, ptr %9) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #2
  %209 = load i32, ptr %3, align 4
  ret i32 %209
}

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

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

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

; Function Attrs: nounwind uwtable
declare hidden ptr @sqlite3PrimaryKeyIndex(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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = !{!16, !6, i64 24}
!16 = !{!"sqlite3", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !10, i64 40, !10, i64 44, !17, i64 48, !17, i64 56, !17, i64 64, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !7, i64 100, !7, i64 101, !7, i64 102, !7, i64 103, !7, i64 104, !7, i64 105, !7, i64 106, !7, i64 107, !7, i64 108, !7, i64 109, !7, i64 110, !7, i64 111, !7, i64 112, !7, i64 113, !10, i64 116, !17, i64 120, !17, i64 128, !7, i64 136, !10, i64 184, !18, i64 192, !10, i64 208, !10, i64 212, !10, i64 216, !10, i64 220, !10, i64 224, !10, i64 228, !6, i64 232, !7, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !6, i64 336, !6, i64 344, !6, i64 352, !6, i64 360, !6, i64 368, !6, i64 376, !6, i64 384, !6, i64 392, !7, i64 400, !19, i64 408, !6, i64 504, !6, i64 512, !6, i64 520, !6, i64 528, !10, i64 536, !10, i64 540, !21, i64 544, !6, i64 568, !6, i64 576, !6, i64 584, !21, i64 592, !21, i64 616, !22, i64 640, !7, i64 664, !6, i64 728, !10, i64 736, !10, i64 740, !10, i64 744, !10, i64 748, !17, i64 752, !17, i64 760, !6, i64 768, !6, i64 776}
!17 = !{!"long long", !7, i64 0}
!18 = !{!"sqlite3InitInfo", !10, i64 0, !7, i64 4, !7, i64 5, !10, i64 6, !10, i64 6, !10, i64 6, !6, i64 8}
!19 = !{!"Lookaside", !10, i64 0, !20, i64 4, !20, i64 6, !7, i64 8, !10, i64 12, !7, i64 16, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88}
!20 = !{!"short", !7, i64 0}
!21 = !{!"Hash", !10, i64 0, !10, i64 4, !6, i64 8, !6, i64 16}
!22 = !{!"BusyHandler", !6, i64 0, !6, i64 8, !10, i64 16}
!23 = !{!16, !6, i64 568}
!24 = !{!25, !10, i64 24}
!25 = !{!"VtabCtx", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24}
!26 = !{!25, !6, i64 8}
!27 = !{!28, !7, i64 308}
!28 = !{!"Parse", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !7, i64 28, !7, i64 29, !7, i64 30, !7, i64 31, !7, i64 32, !7, i64 33, !7, i64 34, !7, i64 35, !7, i64 36, !7, i64 37, !7, i64 38, !7, i64 39, !7, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !29, i64 112, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !10, i64 148, !10, i64 152, !10, i64 156, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !7, i64 208, !10, i64 216, !10, i64 220, !20, i64 224, !7, i64 226, !7, i64 227, !7, i64 228, !7, i64 229, !7, i64 232, !6, i64 264, !29, i64 272, !29, i64 288, !20, i64 304, !7, i64 306, !7, i64 307, !7, i64 308, !10, i64 312, !10, i64 316, !10, i64 320, !6, i64 328, !6, i64 336, !6, i64 344, !6, i64 352, !6, i64 360, !6, i64 368, !6, i64 376, !29, i64 384, !6, i64 400, !6, i64 408, !6, i64 416}
!29 = !{!"Token", !6, i64 0, !10, i64 8}
!30 = !{!28, !7, i64 229}
!31 = !{!16, !7, i64 197}
!32 = !{!28, !20, i64 224}
!33 = !{!34, !6, i64 8}
!34 = !{!"Table", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !10, i64 40, !10, i64 44, !10, i64 48, !20, i64 52, !20, i64 54, !20, i64 56, !20, i64 58, !20, i64 60, !7, i64 62, !7, i64 63, !7, i64 64, !6, i64 88, !6, i64 96}
!35 = !{!28, !6, i64 352}
!36 = !{!34, !20, i64 54}
!37 = !{!34, !20, i64 56}
!38 = !{!34, !10, i64 48}
!39 = !{!25, !6, i64 0}
!40 = !{!41, !6, i64 8}
!41 = !{!"VTable", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !7, i64 28, !7, i64 29, !7, i64 30, !10, i64 32, !6, i64 40}
!42 = !{!43, !6, i64 0}
!43 = !{!"Module", !6, i64 0, !6, i64 8, !10, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!44 = !{!45, !6, i64 104}
!45 = !{!"sqlite3_module", !10, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192}
!46 = !{!47, !20, i64 94}
!47 = !{!"Index", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !10, i64 88, !20, i64 92, !20, i64 94, !20, i64 96, !7, i64 98, !10, i64 99, !10, i64 99, !10, i64 99, !10, i64 99, !10, i64 99, !10, i64 99, !10, i64 99, !10, i64 100, !10, i64 100, !10, i64 100, !10, i64 100, !10, i64 100, !17, i64 104}
!48 = !{!34, !6, i64 16}
!49 = !{!47, !6, i64 24}
!50 = !{!28, !6, i64 8}
!51 = !{!28, !6, i64 16}


; 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.Parse = type { ptr, ptr, ptr, i32, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, %struct.Token, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, %union.anon.11, i32, i32, i16, i8, i8, i8, i8, [8 x i32], ptr, %struct.Token, %struct.Token, i16, i8, i8, i8, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.Token, ptr, ptr, ptr }
%union.anon.11 = type { ptr }
%struct.Token = type { ptr, i32 }

@.str.28 = external hidden unnamed_addr constant [3 x i8], align 1
@sqlite3_declare_vtab.aKeyword = external hidden local_unnamed_addr constant [3 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [13 x i8], align 1

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @sqlite3_declare_vtab(ptr noundef %0, ptr noundef %1) local_unnamed_addr #1 {
  %3 = alloca %struct.Parse, align 8
  %4 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 424, ptr nonnull %3) #2
  %5 = load i8, ptr @sqlite3_declare_vtab.aKeyword, align 1, !tbaa !5
  %.not72 = icmp eq i8 %5, 0
  br i1 %.not72, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %2, %.critedge
  %indvars.iv = phi i64 [ %indvars.iv.next, %.critedge ], [ 0, %2 ]
  %6 = phi i8 [ %17, %.critedge ], [ %5, %2 ]
  %.05574 = phi ptr [ %10, %.critedge ], [ %1, %2 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #2
  store i32 0, ptr %4, align 4, !tbaa !8
  br label %7

7:                                                ; preds = %7, %.lr.ph
  %.156 = phi ptr [ %.05574, %.lr.ph ], [ %10, %7 ]
  %8 = call i32 @sqlite3GetToken(ptr noundef %.156, ptr noundef nonnull %4)
  %9 = sext i32 %8 to i64
  %10 = getelementptr inbounds i8, ptr %.156, i64 %9
  %11 = load i32, ptr %4, align 4, !tbaa !8
  %12 = icmp eq i32 %11, 184
  br i1 %12, label %7, label %13, !llvm.loop !10

13:                                               ; preds = %7
  %14 = zext i8 %6 to i32
  %.not70 = icmp eq i32 %11, %14
  br i1 %.not70, label %.critedge, label %15

15:                                               ; preds = %13
  call void (ptr, i32, ptr, ...) @sqlite3ErrorWithMsg(ptr noundef %0, i32 noundef 1, ptr noundef nonnull @.str.29)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #2
  br label %95

.critedge:                                        ; preds = %13
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #2
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %16 = getelementptr inbounds [3 x i8], ptr @sqlite3_declare_vtab.aKeyword, i64 0, i64 %indvars.iv.next
  %17 = load i8, ptr %16, align 1, !tbaa !5
  %.not = icmp eq i8 %17, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !12

._crit_edge:                                      ; preds = %.critedge, %2
  %18 = getelementptr inbounds i8, ptr %0, i64 24
  %19 = load ptr, ptr %18, align 8, !tbaa !13
  call void @sqlite3_mutex_enter(ptr noundef %19)
  %20 = getelementptr inbounds i8, ptr %0, i64 568
  %21 = load ptr, ptr %20, align 8, !tbaa !22
  %.not62 = icmp eq ptr %21, null
  br i1 %.not62, label %25, label %22

22:                                               ; preds = %._crit_edge
  %23 = getelementptr inbounds i8, ptr %21, i64 24
  %24 = load i32, ptr %23, align 8, !tbaa !23
  %.not63 = icmp eq i32 %24, 0
  br i1 %.not63, label %29, label %25

25:                                               ; preds = %22, %._crit_edge
  %26 = call i32 @sqlite3MisuseError(i32 noundef 157205)
  call void @sqlite3Error(ptr noundef nonnull %0, i32 noundef %26)
  %27 = load ptr, ptr %18, align 8, !tbaa !13
  call void @sqlite3_mutex_leave(ptr noundef %27)
  %28 = call i32 @sqlite3MisuseError(i32 noundef 157207)
  br label %95

29:                                               ; preds = %22
  %30 = getelementptr inbounds i8, ptr %21, i64 8
  %31 = load ptr, ptr %30, align 8, !tbaa !25
  call void @sqlite3ParseObjectInit(ptr noundef nonnull %3, ptr noundef nonnull %0)
  %32 = getelementptr inbounds i8, ptr %3, i64 308
  store i8 1, ptr %32, align 4, !tbaa !26
  %33 = getelementptr inbounds i8, ptr %3, i64 229
  store i8 1, ptr %33, align 1, !tbaa !29
  %34 = getelementptr inbounds i8, ptr %0, i64 197
  %35 = load i8, ptr %34, align 1, !tbaa !30
  store i8 0, ptr %34, align 1, !tbaa !30
  %36 = getelementptr inbounds i8, ptr %3, i64 224
  store i16 1, ptr %36, align 8, !tbaa !31
  %37 = call i32 @sqlite3RunParser(ptr noundef nonnull %3, ptr noundef %1)
  %38 = icmp eq i32 %37, 0
  br i1 %38, label %39, label %80

39:                                               ; preds = %29
  %40 = getelementptr inbounds i8, ptr %31, i64 8
  %41 = load ptr, ptr %40, align 8, !tbaa !32
  %.not65 = icmp eq ptr %41, null
  br i1 %.not65, label %42, label %79

42:                                               ; preds = %39
  %43 = getelementptr inbounds i8, ptr %3, i64 352
  %44 = load ptr, ptr %43, align 8, !tbaa !34
  %45 = getelementptr inbounds i8, ptr %44, i64 8
  %46 = load ptr, ptr %45, align 8, !tbaa !32
  store ptr %46, ptr %40, align 8, !tbaa !32
  %47 = getelementptr inbounds i8, ptr %44, i64 80
  %48 = load ptr, ptr %47, align 8, !tbaa !5
  call void @sqlite3ExprListDelete(ptr noundef nonnull %0, ptr noundef %48)
  %49 = getelementptr inbounds i8, ptr %44, i64 54
  %50 = load i16, ptr %49, align 2, !tbaa !35
  %51 = getelementptr inbounds i8, ptr %31, i64 54
  store i16 %50, ptr %51, align 2, !tbaa !35
  %52 = getelementptr inbounds i8, ptr %31, i64 56
  store i16 %50, ptr %52, align 8, !tbaa !36
  %53 = getelementptr inbounds i8, ptr %44, i64 48
  %54 = load i32, ptr %53, align 8, !tbaa !37
  %55 = and i32 %54, 640
  %56 = getelementptr inbounds i8, ptr %31, i64 48
  %57 = load i32, ptr %56, align 8, !tbaa !37
  %58 = or i32 %57, %55
  store i32 %58, ptr %56, align 8, !tbaa !37
  store i16 0, ptr %49, align 2, !tbaa !35
  store ptr null, ptr %45, align 8, !tbaa !32
  %59 = load i32, ptr %53, align 8, !tbaa !37
  %60 = and i32 %59, 128
  %61 = icmp eq i32 %60, 0
  br i1 %61, label %73, label %62

62:                                               ; preds = %42
  %63 = load ptr, ptr %21, align 8, !tbaa !38
  %64 = getelementptr inbounds i8, ptr %63, i64 8
  %65 = load ptr, ptr %64, align 8, !tbaa !39
  %66 = load ptr, ptr %65, align 8, !tbaa !41
  %67 = getelementptr inbounds i8, ptr %66, i64 104
  %68 = load ptr, ptr %67, align 8, !tbaa !43
  %.not66 = icmp eq ptr %68, null
  br i1 %.not66, label %73, label %69

69:                                               ; preds = %62
  %70 = call ptr @sqlite3PrimaryKeyIndex(ptr noundef nonnull %44)
  %71 = getelementptr inbounds i8, ptr %70, i64 94
  %72 = load i16, ptr %71, align 2, !tbaa !45
  %.not67 = icmp ne i16 %72, 1
  %spec.select = zext i1 %.not67 to i32
  br label %73

73:                                               ; preds = %69, %62, %42
  %.051 = phi i32 [ 0, %42 ], [ 0, %62 ], [ %spec.select, %69 ]
  %74 = getelementptr inbounds i8, ptr %44, i64 16
  %75 = load ptr, ptr %74, align 8, !tbaa !47
  %.not68 = icmp eq ptr %75, null
  br i1 %.not68, label %79, label %76

76:                                               ; preds = %73
  %77 = getelementptr inbounds i8, ptr %31, i64 16
  store ptr %75, ptr %77, align 8, !tbaa !47
  store ptr null, ptr %74, align 8, !tbaa !47
  %78 = getelementptr inbounds i8, ptr %75, i64 24
  store ptr %31, ptr %78, align 8, !tbaa !48
  br label %79

79:                                               ; preds = %73, %76, %39
  %.152 = phi i32 [ 0, %39 ], [ %.051, %76 ], [ %.051, %73 ]
  store i32 1, ptr %23, align 8, !tbaa !23
  br label %85

80:                                               ; preds = %29
  %81 = getelementptr inbounds i8, ptr %3, i64 8
  %82 = load ptr, ptr %81, align 8, !tbaa !49
  %.not64 = icmp eq ptr %82, null
  %83 = select i1 %.not64, ptr null, ptr @.str.28
  call void (ptr, i32, ptr, ...) @sqlite3ErrorWithMsg(ptr noundef nonnull %0, i32 noundef 1, ptr noundef %83, ptr noundef %82)
  %84 = load ptr, ptr %81, align 8, !tbaa !49
  call void @sqlite3DbFree(ptr noundef nonnull %0, ptr noundef %84)
  br label %85

85:                                               ; preds = %80, %79
  %.253 = phi i32 [ %.152, %79 ], [ 1, %80 ]
  store i8 0, ptr %32, align 4, !tbaa !26
  %86 = getelementptr inbounds i8, ptr %3, i64 16
  %87 = load ptr, ptr %86, align 8, !tbaa !50
  %.not69 = icmp eq ptr %87, null
  br i1 %.not69, label %90, label %88

88:                                               ; preds = %85
  %89 = call i32 @sqlite3VdbeFinalize(ptr noundef nonnull %87)
  br label %90

90:                                               ; preds = %88, %85
  %91 = getelementptr inbounds i8, ptr %3, i64 352
  %92 = load ptr, ptr %91, align 8, !tbaa !34
  call void @sqlite3DeleteTable(ptr noundef nonnull %0, ptr noundef %92)
  call void @sqlite3ParseObjectReset(ptr noundef nonnull %3)
  store i8 %35, ptr %34, align 1, !tbaa !30
  %93 = call i32 @sqlite3ApiExit(ptr noundef nonnull %0, i32 noundef %.253)
  %94 = load ptr, ptr %18, align 8, !tbaa !13
  call void @sqlite3_mutex_leave(ptr noundef %94)
  br label %95

95:                                               ; preds = %15, %90, %25
  %.2 = phi i32 [ 1, %15 ], [ %28, %25 ], [ %93, %90 ]
  call void @llvm.lifetime.end.p0(i64 424, ptr nonnull %3) #2
  ret i32 %.2
}

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !6, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = !{!14, !15, i64 24}
!14 = !{!"sqlite3", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !9, i64 40, !9, i64 44, !16, i64 48, !16, i64 56, !16, i64 64, !9, i64 72, !9, i64 76, !9, i64 80, !9, i64 84, !9, i64 88, !9, i64 92, !9, i64 96, !6, i64 100, !6, i64 101, !6, i64 102, !6, i64 103, !6, i64 104, !6, i64 105, !6, i64 106, !6, i64 107, !6, i64 108, !6, i64 109, !6, i64 110, !6, i64 111, !6, i64 112, !6, i64 113, !9, i64 116, !16, i64 120, !16, i64 128, !6, i64 136, !9, i64 184, !17, i64 192, !9, i64 208, !9, i64 212, !9, i64 216, !9, i64 220, !9, i64 224, !9, i64 228, !15, i64 232, !6, i64 240, !15, i64 248, !15, i64 256, !15, i64 264, !15, i64 272, !15, i64 280, !15, i64 288, !15, i64 296, !15, i64 304, !15, i64 312, !15, i64 320, !15, i64 328, !15, i64 336, !15, i64 344, !15, i64 352, !15, i64 360, !15, i64 368, !15, i64 376, !15, i64 384, !15, i64 392, !6, i64 400, !18, i64 408, !15, i64 504, !15, i64 512, !15, i64 520, !15, i64 528, !9, i64 536, !9, i64 540, !20, i64 544, !15, i64 568, !15, i64 576, !15, i64 584, !20, i64 592, !20, i64 616, !21, i64 640, !6, i64 664, !15, i64 728, !9, i64 736, !9, i64 740, !9, i64 744, !9, i64 748, !16, i64 752, !16, i64 760, !15, i64 768, !15, i64 776}
!15 = !{!"any pointer", !6, i64 0}
!16 = !{!"long long", !6, i64 0}
!17 = !{!"sqlite3InitInfo", !9, i64 0, !6, i64 4, !6, i64 5, !9, i64 6, !9, i64 6, !9, i64 6, !15, i64 8}
!18 = !{!"Lookaside", !9, i64 0, !19, i64 4, !19, i64 6, !6, i64 8, !9, i64 12, !6, i64 16, !15, i64 32, !15, i64 40, !15, i64 48, !15, i64 56, !15, i64 64, !15, i64 72, !15, i64 80, !15, i64 88}
!19 = !{!"short", !6, i64 0}
!20 = !{!"Hash", !9, i64 0, !9, i64 4, !15, i64 8, !15, i64 16}
!21 = !{!"BusyHandler", !15, i64 0, !15, i64 8, !9, i64 16}
!22 = !{!14, !15, i64 568}
!23 = !{!24, !9, i64 24}
!24 = !{!"VtabCtx", !15, i64 0, !15, i64 8, !15, i64 16, !9, i64 24}
!25 = !{!24, !15, i64 8}
!26 = !{!27, !6, i64 308}
!27 = !{!"Parse", !15, i64 0, !15, i64 8, !15, i64 16, !9, i64 24, !6, i64 28, !6, i64 29, !6, i64 30, !6, i64 31, !6, i64 32, !6, i64 33, !6, i64 34, !6, i64 35, !6, i64 36, !6, i64 37, !6, i64 38, !6, i64 39, !6, i64 40, !9, i64 44, !9, i64 48, !9, i64 52, !9, i64 56, !9, i64 60, !9, i64 64, !9, i64 68, !9, i64 72, !9, i64 76, !15, i64 80, !15, i64 88, !15, i64 96, !15, i64 104, !28, i64 112, !9, i64 128, !9, i64 132, !9, i64 136, !9, i64 140, !9, i64 144, !9, i64 148, !9, i64 152, !9, i64 156, !15, i64 160, !15, i64 168, !15, i64 176, !15, i64 184, !15, i64 192, !15, i64 200, !6, i64 208, !9, i64 216, !9, i64 220, !19, i64 224, !6, i64 226, !6, i64 227, !6, i64 228, !6, i64 229, !6, i64 232, !15, i64 264, !28, i64 272, !28, i64 288, !19, i64 304, !6, i64 306, !6, i64 307, !6, i64 308, !9, i64 312, !9, i64 316, !9, i64 320, !15, i64 328, !15, i64 336, !15, i64 344, !15, i64 352, !15, i64 360, !15, i64 368, !15, i64 376, !28, i64 384, !15, i64 400, !15, i64 408, !15, i64 416}
!28 = !{!"Token", !15, i64 0, !9, i64 8}
!29 = !{!27, !6, i64 229}
!30 = !{!14, !6, i64 197}
!31 = !{!27, !19, i64 224}
!32 = !{!33, !15, i64 8}
!33 = !{!"Table", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !9, i64 40, !9, i64 44, !9, i64 48, !19, i64 52, !19, i64 54, !19, i64 56, !19, i64 58, !19, i64 60, !6, i64 62, !6, i64 63, !6, i64 64, !15, i64 88, !15, i64 96}
!34 = !{!27, !15, i64 352}
!35 = !{!33, !19, i64 54}
!36 = !{!33, !19, i64 56}
!37 = !{!33, !9, i64 48}
!38 = !{!24, !15, i64 0}
!39 = !{!40, !15, i64 8}
!40 = !{!"VTable", !15, i64 0, !15, i64 8, !15, i64 16, !9, i64 24, !6, i64 28, !6, i64 29, !6, i64 30, !9, i64 32, !15, i64 40}
!41 = !{!42, !15, i64 0}
!42 = !{!"Module", !15, i64 0, !15, i64 8, !9, i64 16, !15, i64 24, !15, i64 32, !15, i64 40}
!43 = !{!44, !15, i64 104}
!44 = !{!"sqlite3_module", !9, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !15, i64 48, !15, i64 56, !15, i64 64, !15, i64 72, !15, i64 80, !15, i64 88, !15, i64 96, !15, i64 104, !15, i64 112, !15, i64 120, !15, i64 128, !15, i64 136, !15, i64 144, !15, i64 152, !15, i64 160, !15, i64 168, !15, i64 176, !15, i64 184, !15, i64 192}
!45 = !{!46, !19, i64 94}
!46 = !{!"Index", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !15, i64 48, !15, i64 56, !15, i64 64, !15, i64 72, !15, i64 80, !9, i64 88, !19, i64 92, !19, i64 94, !19, i64 96, !6, i64 98, !9, i64 99, !9, i64 99, !9, i64 99, !9, i64 99, !9, i64 99, !9, i64 99, !9, i64 99, !9, i64 100, !9, i64 100, !9, i64 100, !9, i64 100, !9, i64 100, !16, i64 104}
!47 = !{!33, !15, i64 16}
!48 = !{!46, !15, i64 24}
!49 = !{!27, !15, i64 8}
!50 = !{!27, !15, i64 16}


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