; LLVM IR from awawa-dev/HyperHDR :: external/sqlite (sqlite3)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.sqlite3_index_info = type { i32, ptr, i32, ptr, ptr, i32, ptr, i32, i32, double, i64, i32, i64 }
%struct.HiddenIndexInfo = type { ptr, ptr, i32, i32, i32, [1 x ptr] }
%struct.WhereClause = type { ptr, ptr, i8, i8, i32, i32, i32, ptr, [8 x %struct.WhereTerm] }
%struct.WhereTerm = type { ptr, ptr, i16, i16, i16, i8, i8, i32, i32, %union.anon.15, i64, i64 }
%union.anon.15 = type { ptr }
%struct.sqlite3_index_constraint = type { i32, i8, i8, i32 }
%struct.Parse = type { ptr, ptr, ptr, i32, 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.10, 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.10 = type { ptr }
%struct.Token = type { ptr, i32 }
%struct.Expr = type { i8, i8, i8, i32, %union.anon.1, ptr, ptr, %union.anon.2, i32, i32, i16, i16, %union.anon.3, ptr, %union.anon.4 }
%union.anon.1 = type { ptr }
%union.anon.2 = type { ptr }
%union.anon.3 = type { i32 }
%union.anon.4 = type { ptr }
%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 }

; 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind uwtable
define dso_local i32 @sqlite3_vtab_rhs_value(ptr noundef %0, i32 noundef %1, ptr noundef %2) #1 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #2
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.sqlite3_index_info, ptr %11, i64 1
  store ptr %12, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #2
  store ptr null, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #2
  store i32 0, ptr %9, align 4, !tbaa !9
  %13 = load i32, ptr %5, align 4, !tbaa !9
  %14 = icmp slt i32 %13, 0
  br i1 %14, label %21, label %15

15:                                               ; preds = %3
  %16 = load i32, ptr %5, align 4, !tbaa !9
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.sqlite3_index_info, ptr %17, i32 0, i32 0
  %19 = load i32, ptr %18, align 8, !tbaa !11
  %20 = icmp sge i32 %16, %19
  br i1 %20, label %21, label %23

21:                                               ; preds = %15, %3
  %22 = call i32 @sqlite3MisuseError(i32 noundef 166452)
  store i32 %22, ptr %9, align 4, !tbaa !9
  br label %77

23:                                               ; preds = %15
  %24 = load ptr, ptr %7, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.HiddenIndexInfo, ptr %24, i32 0, i32 5
  %26 = load i32, ptr %5, align 4, !tbaa !9
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [1 x ptr], ptr %25, i64 0, i64 %27
  %29 = load ptr, ptr %28, align 8, !tbaa !5
  %30 = icmp eq ptr %29, null
  br i1 %30, label %31, label %70

31:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #2
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.HiddenIndexInfo, ptr %32, i32 0, i32 0
  %34 = load ptr, ptr %33, align 8, !tbaa !15
  %35 = getelementptr inbounds %struct.WhereClause, ptr %34, i32 0, i32 7
  %36 = load ptr, ptr %35, align 8, !tbaa !17
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.sqlite3_index_info, ptr %37, i32 0, i32 1
  %39 = load ptr, ptr %38, align 8, !tbaa !19
  %40 = load i32, ptr %5, align 4, !tbaa !9
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds %struct.sqlite3_index_constraint, ptr %39, i64 %41
  %43 = getelementptr inbounds %struct.sqlite3_index_constraint, ptr %42, i32 0, i32 3
  %44 = load i32, ptr %43, align 4, !tbaa !20
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds %struct.WhereTerm, ptr %36, i64 %45
  store ptr %46, ptr %10, align 8, !tbaa !5
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.HiddenIndexInfo, ptr %47, i32 0, i32 1
  %49 = load ptr, ptr %48, align 8, !tbaa !22
  %50 = getelementptr inbounds %struct.Parse, ptr %49, i32 0, i32 0
  %51 = load ptr, ptr %50, align 8, !tbaa !23
  %52 = load ptr, ptr %10, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.WhereTerm, ptr %52, i32 0, i32 0
  %54 = load ptr, ptr %53, align 8, !tbaa !27
  %55 = getelementptr inbounds %struct.Expr, ptr %54, i32 0, i32 6
  %56 = load ptr, ptr %55, align 8, !tbaa !29
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.HiddenIndexInfo, ptr %57, i32 0, i32 1
  %59 = load ptr, ptr %58, align 8, !tbaa !22
  %60 = getelementptr inbounds %struct.Parse, ptr %59, i32 0, i32 0
  %61 = load ptr, ptr %60, align 8, !tbaa !23
  %62 = getelementptr inbounds %struct.sqlite3, ptr %61, i32 0, i32 17
  %63 = load i8, ptr %62, align 4, !tbaa !31
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.HiddenIndexInfo, ptr %64, i32 0, i32 5
  %66 = load i32, ptr %5, align 4, !tbaa !9
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [1 x ptr], ptr %65, i64 0, i64 %67
  %69 = call i32 @sqlite3ValueFromExpr(ptr noundef %51, ptr noundef %56, i8 noundef zeroext %63, i8 noundef zeroext 65, ptr noundef %68)
  store i32 %69, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #2
  br label %70

70:                                               ; preds = %31, %23
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.HiddenIndexInfo, ptr %71, i32 0, i32 5
  %73 = load i32, ptr %5, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [1 x ptr], ptr %72, i64 0, i64 %74
  %76 = load ptr, ptr %75, align 8, !tbaa !5
  store ptr %76, ptr %8, align 8, !tbaa !5
  br label %77

77:                                               ; preds = %70, %21
  %78 = load ptr, ptr %8, align 8, !tbaa !5
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %78, ptr %79, align 8, !tbaa !5
  %80 = load i32, ptr %9, align 4, !tbaa !9
  %81 = icmp eq i32 %80, 0
  br i1 %81, label %82, label %86

82:                                               ; preds = %77
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  %84 = icmp eq ptr %83, null
  br i1 %84, label %85, label %86

85:                                               ; preds = %82
  store i32 12, ptr %9, align 4, !tbaa !9
  br label %86

86:                                               ; preds = %85, %82, %77
  %87 = load i32, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #2
  ret i32 %87
}

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"sqlite3_index_info", !10, i64 0, !6, i64 8, !10, i64 16, !6, i64 24, !6, i64 32, !10, i64 40, !6, i64 48, !10, i64 56, !10, i64 60, !13, i64 64, !14, i64 72, !10, i64 80, !14, i64 88}
!13 = !{!"double", !7, i64 0}
!14 = !{!"long long", !7, i64 0}
!15 = !{!16, !6, i64 0}
!16 = !{!"HiddenIndexInfo", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !7, i64 32}
!17 = !{!18, !6, i64 32}
!18 = !{!"WhereClause", !6, i64 0, !6, i64 8, !7, i64 16, !7, i64 17, !10, i64 20, !10, i64 24, !10, i64 28, !6, i64 32, !7, i64 40}
!19 = !{!12, !6, i64 8}
!20 = !{!21, !10, i64 8}
!21 = !{!"sqlite3_index_constraint", !10, i64 0, !7, i64 4, !7, i64 5, !10, i64 8}
!22 = !{!16, !6, i64 8}
!23 = !{!24, !6, i64 0}
!24 = !{!"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, !10, 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, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !25, 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, !26, i64 224, !7, i64 226, !7, i64 227, !7, i64 228, !7, i64 229, !7, i64 232, !6, i64 264, !25, i64 272, !25, i64 288, !26, 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, !25, i64 384, !6, i64 400, !6, i64 408, !6, i64 416}
!25 = !{!"Token", !6, i64 0, !10, i64 8}
!26 = !{!"short", !7, i64 0}
!27 = !{!28, !6, i64 0}
!28 = !{!"WhereTerm", !6, i64 0, !6, i64 8, !26, i64 16, !26, i64 18, !26, i64 20, !7, i64 22, !7, i64 23, !10, i64 24, !10, i64 28, !7, i64 32, !14, i64 40, !14, i64 48}
!29 = !{!30, !6, i64 24}
!30 = !{!"Expr", !7, i64 0, !7, i64 1, !7, i64 2, !10, i64 4, !7, i64 8, !6, i64 16, !6, i64 24, !7, i64 32, !10, i64 40, !10, i64 44, !26, i64 48, !26, i64 50, !7, i64 52, !6, i64 56, !7, i64 64}
!31 = !{!32, !7, i64 100}
!32 = !{!"sqlite3", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !10, i64 40, !10, i64 44, !14, i64 48, !14, i64 56, !14, 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, !14, i64 120, !14, i64 128, !7, i64 136, !10, i64 184, !33, 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, !34, i64 408, !6, i64 504, !6, i64 512, !6, i64 520, !6, i64 528, !10, i64 536, !10, i64 540, !35, i64 544, !6, i64 568, !6, i64 576, !6, i64 584, !35, i64 592, !35, i64 616, !36, i64 640, !7, i64 664, !6, i64 728, !10, i64 736, !10, i64 740, !10, i64 744, !10, i64 748, !14, i64 752, !14, i64 760, !6, i64 768, !6, i64 776}
!33 = !{!"sqlite3InitInfo", !10, i64 0, !7, i64 4, !7, i64 5, !10, i64 6, !10, i64 6, !10, i64 6, !6, i64 8}
!34 = !{!"Lookaside", !10, i64 0, !26, i64 4, !26, 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}
!35 = !{!"Hash", !10, i64 0, !10, i64 4, !6, i64 8, !6, i64 16}
!36 = !{!"BusyHandler", !6, i64 0, !6, i64 8, !10, 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.sqlite3_index_constraint = type { i32, i8, i8, i32 }
%struct.WhereTerm = type { ptr, ptr, i16, i16, i16, i8, i8, i32, i32, %union.anon.15, i64, i64 }
%union.anon.15 = type { ptr }

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

; Function Attrs: nounwind uwtable
define dso_local i32 @sqlite3_vtab_rhs_value(ptr noundef %0, i32 noundef %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #0 {
  %4 = getelementptr inbounds i8, ptr %0, i64 96
  %5 = icmp slt i32 %1, 0
  br i1 %5, label %8, label %6

6:                                                ; preds = %3
  %7 = load i32, ptr %0, align 8, !tbaa !5
  %.not = icmp sgt i32 %7, %1
  br i1 %.not, label %10, label %8

8:                                                ; preds = %6, %3
  %9 = tail call i32 @sqlite3MisuseError(i32 noundef 166452)
  br label %35

10:                                               ; preds = %6
  %11 = getelementptr inbounds i8, ptr %0, i64 128
  %12 = zext nneg i32 %1 to i64
  %13 = getelementptr inbounds [1 x ptr], ptr %11, i64 0, i64 %12
  %14 = load ptr, ptr %13, align 8, !tbaa !13
  %15 = icmp eq ptr %14, null
  br i1 %15, label %16, label %35

16:                                               ; preds = %10
  %17 = load ptr, ptr %4, align 8, !tbaa !14
  %18 = getelementptr inbounds i8, ptr %17, i64 32
  %19 = load ptr, ptr %18, align 8, !tbaa !16
  %20 = getelementptr inbounds i8, ptr %0, i64 8
  %21 = load ptr, ptr %20, align 8, !tbaa !18
  %22 = getelementptr inbounds %struct.sqlite3_index_constraint, ptr %21, i64 %12, i32 3
  %23 = load i32, ptr %22, align 4, !tbaa !19
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds %struct.WhereTerm, ptr %19, i64 %24
  %26 = getelementptr inbounds i8, ptr %0, i64 104
  %27 = load ptr, ptr %26, align 8, !tbaa !21
  %28 = load ptr, ptr %27, align 8, !tbaa !22
  %29 = load ptr, ptr %25, align 8, !tbaa !26
  %30 = getelementptr inbounds i8, ptr %29, i64 24
  %31 = load ptr, ptr %30, align 8, !tbaa !28
  %32 = getelementptr inbounds i8, ptr %28, i64 100
  %33 = load i8, ptr %32, align 4, !tbaa !30
  %34 = tail call i32 @sqlite3ValueFromExpr(ptr noundef %28, ptr noundef %31, i8 noundef zeroext %33, i8 noundef zeroext 65, ptr noundef nonnull %13)
  %.pre = load ptr, ptr %13, align 8, !tbaa !13
  br label %35

35:                                               ; preds = %10, %16, %8
  %.1 = phi i32 [ %9, %8 ], [ %34, %16 ], [ 0, %10 ]
  %.0 = phi ptr [ null, %8 ], [ %.pre, %16 ], [ %14, %10 ]
  store ptr %.0, ptr %2, align 8, !tbaa !13
  %36 = icmp eq i32 %.1, 0
  %37 = icmp eq ptr %.0, null
  %or.cond = select i1 %36, i1 %37, i1 false
  %spec.store.select = select i1 %or.cond, i32 12, i32 %.1
  ret i32 %spec.store.select
}

; Function Attrs: nounwind uwtable
declare hidden i32 @sqlite3ValueFromExpr(ptr noundef, ptr noundef, i8 noundef zeroext, i8 noundef zeroext, ptr 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" }

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

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass