; LLVM IR from flomar/sqlmemdb :: 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.Vdbe = type <{ ptr, ptr, ptr, ptr, i16, [2 x i8], i32, i32, i32, i32, i32, i32, i32, i32, [4 x i8], i64, i64, i64, i64, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, ptr, ptr, ptr, i64, i16, i8, i8, i8, i16, i8, i32, i32, [7 x i32], [4 x i8], ptr, ptr, ptr, ptr, i32, i32, ptr, ptr }>
%struct.sqlite3 = type { ptr, ptr, ptr, ptr, ptr, i32, i32, i64, i64, i64, i32, i32, i32, i32, i32, i16, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i32, i32, i32, i32, [12 x i32], i32, %struct.sqlite3InitInfo, i32, i32, i32, i32, i32, i32, 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, i32, %struct.Hash, ptr, ptr, ptr, %struct.Hash, %struct.Hash, %struct.BusyHandler, [2 x %struct.Db], ptr, i32, i32, i32, i64, i64, ptr }
%struct.sqlite3InitInfo = type { i32, i8, i8, i8 }
%union.anon = type { double }
%struct.Lookaside = type { i32, i16, i8, i32, [3 x i32], ptr, ptr, ptr, ptr }
%struct.Hash = type { i32, i32, ptr, ptr }
%struct.BusyHandler = type { ptr, ptr, i32, i8 }
%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: 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 @sqlite3DbFree(ptr noundef, ptr noundef) #1

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

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

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

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

15:                                               ; preds = %1
  %16 = call i32 @sqlite3MisuseError(i32 noundef 81778)
  store i32 %16, ptr %2, align 4
  store i32 1, ptr %8, align 4
  br label %97

17:                                               ; preds = %1
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.Vdbe, ptr %18, i32 0, i32 0
  %20 = load ptr, ptr %19, align 8, !tbaa !11
  store ptr %20, ptr %7, align 8, !tbaa !5
  %21 = load ptr, ptr %7, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.sqlite3, ptr %21, i32 0, i32 3
  %23 = load ptr, ptr %22, align 8, !tbaa !15
  call void @sqlite3_mutex_enter(ptr noundef %23)
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.Vdbe, ptr %24, i32 0, i32 35
  %26 = load i16, ptr %25, align 1
  %27 = and i16 %26, -17
  %28 = or i16 %27, 0
  store i16 %28, ptr %25, align 1
  br label %29

29:                                               ; preds = %91, %17
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = call i32 @sqlite3Step(ptr noundef %30)
  store i32 %31, ptr %4, align 4, !tbaa !9
  %32 = icmp eq i32 %31, 17
  br i1 %32, label %33, label %37

33:                                               ; preds = %29
  %34 = load i32, ptr %6, align 4, !tbaa !9
  %35 = add nsw i32 %34, 1
  store i32 %35, ptr %6, align 4, !tbaa !9
  %36 = icmp slt i32 %34, 50
  br label %37

37:                                               ; preds = %33, %29
  %38 = phi i1 [ false, %29 ], [ %36, %33 ]
  br i1 %38, label %39, label %92

39:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #2
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.Vdbe, ptr %40, i32 0, i32 10
  %42 = load i32, ptr %41, align 4, !tbaa !21
  store i32 %42, ptr %9, align 4, !tbaa !9
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = call i32 @sqlite3Reprepare(ptr noundef %43)
  store i32 %44, ptr %4, align 4, !tbaa !9
  %45 = load i32, ptr %4, align 4, !tbaa !9
  %46 = icmp ne i32 %45, 0
  br i1 %46, label %47, label %77

47:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #2
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.sqlite3, ptr %48, i32 0, i32 58
  %50 = load ptr, ptr %49, align 8, !tbaa !22
  %51 = call ptr @sqlite3_value_text(ptr noundef %50)
  store ptr %51, ptr %10, align 8, !tbaa !5
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.Vdbe, ptr %53, i32 0, i32 28
  %55 = load ptr, ptr %54, align 8, !tbaa !23
  call void @sqlite3DbFree(ptr noundef %52, ptr noundef %55)
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.sqlite3, ptr %56, i32 0, i32 19
  %58 = load i8, ptr %57, align 1, !tbaa !24
  %59 = icmp ne i8 %58, 0
  br i1 %59, label %71, label %60

60:                                               ; preds = %47
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = load ptr, ptr %10, align 8, !tbaa !5
  %63 = call ptr @sqlite3DbStrDup(ptr noundef %61, ptr noundef %62)
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.Vdbe, ptr %64, i32 0, i32 28
  store ptr %63, ptr %65, align 8, !tbaa !23
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = load i32, ptr %4, align 4, !tbaa !9
  %68 = call i32 @sqlite3ApiExit(ptr noundef %66, i32 noundef %67)
  store i32 %68, ptr %4, align 4, !tbaa !9
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.Vdbe, ptr %69, i32 0, i32 11
  store i32 %68, ptr %70, align 8, !tbaa !25
  br label %76

71:                                               ; preds = %47
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.Vdbe, ptr %72, i32 0, i32 28
  store ptr null, ptr %73, align 8, !tbaa !23
  store i32 7, ptr %4, align 4, !tbaa !9
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.Vdbe, ptr %74, i32 0, i32 11
  store i32 7, ptr %75, align 8, !tbaa !25
  br label %76

76:                                               ; preds = %71, %60
  store i32 3, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #2
  br label %89

77:                                               ; preds = %39
  %78 = load ptr, ptr %3, align 8, !tbaa !5
  %79 = call i32 @sqlite3_reset(ptr noundef %78)
  %80 = load i32, ptr %9, align 4, !tbaa !9
  %81 = icmp sge i32 %80, 0
  br i1 %81, label %82, label %88

82:                                               ; preds = %77
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.Vdbe, ptr %83, i32 0, i32 35
  %85 = load i16, ptr %84, align 1
  %86 = and i16 %85, -17
  %87 = or i16 %86, 16
  store i16 %87, ptr %84, align 1
  br label %88

88:                                               ; preds = %82, %77
  store i32 0, ptr %8, align 4
  br label %89

89:                                               ; preds = %88, %76
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #2
  %90 = load i32, ptr %8, align 4
  switch i32 %90, label %99 [
    i32 0, label %91
    i32 3, label %92
  ]

91:                                               ; preds = %89
  br label %29, !llvm.loop !26

92:                                               ; preds = %89, %37
  %93 = load ptr, ptr %7, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.sqlite3, ptr %93, i32 0, i32 3
  %95 = load ptr, ptr %94, align 8, !tbaa !15
  call void @sqlite3_mutex_leave(ptr noundef %95)
  %96 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %96, ptr %2, align 4
  store i32 1, ptr %8, align 4
  br label %97

97:                                               ; preds = %92, %15
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #2
  %98 = load i32, ptr %2, align 4
  ret i32 %98

99:                                               ; preds = %89
  unreachable
}

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"Vdbe", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !13, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !14, i64 72, !14, i64 80, !14, i64 88, !14, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !10, i64 144, !10, i64 148, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !14, i64 184, !13, i64 192, !7, i64 194, !7, i64 195, !7, i64 196, !10, i64 197, !10, i64 197, !10, i64 197, !10, i64 197, !10, i64 197, !10, i64 197, !10, i64 198, !10, i64 198, !10, i64 200, !10, i64 204, !7, i64 208, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !10, i64 272, !10, i64 276, !6, i64 280, !6, i64 288}
!13 = !{!"short", !7, i64 0}
!14 = !{!"long long", !7, i64 0}
!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, !14, i64 48, !14, i64 56, !14, i64 64, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !13, i64 92, !7, i64 94, !7, i64 95, !7, i64 96, !7, i64 97, !7, i64 98, !7, i64 99, !7, i64 100, !7, i64 101, !7, i64 102, !7, i64 103, !7, i64 104, !7, i64 105, !7, i64 106, !10, i64 108, !10, i64 112, !10, i64 116, !10, i64 120, !7, i64 124, !10, i64 172, !17, i64 176, !10, i64 184, !10, i64 188, !10, i64 192, !10, i64 196, !10, i64 200, !10, i64 204, !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, !6, i64 328, !6, i64 336, !7, i64 344, !18, i64 352, !6, i64 408, !6, i64 416, !6, i64 424, !6, i64 432, !10, i64 440, !10, i64 444, !19, i64 448, !6, i64 472, !6, i64 480, !6, i64 488, !19, i64 496, !19, i64 520, !20, i64 544, !7, i64 568, !6, i64 632, !10, i64 640, !10, i64 644, !10, i64 648, !14, i64 656, !14, i64 664, !6, i64 672}
!17 = !{!"sqlite3InitInfo", !10, i64 0, !7, i64 4, !7, i64 5, !10, i64 6, !10, i64 6, !10, i64 6}
!18 = !{!"Lookaside", !10, i64 0, !13, i64 4, !7, i64 6, !10, i64 8, !7, i64 12, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!19 = !{!"Hash", !10, i64 0, !10, i64 4, !6, i64 8, !6, i64 16}
!20 = !{!"BusyHandler", !6, i64 0, !6, i64 8, !10, i64 16, !7, i64 20}
!21 = !{!12, !10, i64 52}
!22 = !{!16, !6, i64 336}
!23 = !{!12, !6, i64 168}
!24 = !{!16, !7, i64 97}
!25 = !{!12, !10, i64 56}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}


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

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

; Function Attrs: nounwind uwtable
declare dso_local void @sqlite3_mutex_enter(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 @sqlite3DbFree(ptr noundef, 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 dso_local i32 @sqlite3_reset(ptr noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local i32 @sqlite3_step(ptr noundef %0) local_unnamed_addr #0 {
  %2 = tail call i32 @vdbeSafetyNotNull(ptr noundef %0)
  %.not = icmp eq i32 %2, 0
  br i1 %.not, label %5, label %3

3:                                                ; preds = %1
  %4 = tail call i32 @sqlite3MisuseError(i32 noundef 81778)
  br label %43

5:                                                ; preds = %1
  %6 = load ptr, ptr %0, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %6, i64 24
  %8 = load ptr, ptr %7, align 8, !tbaa !13
  tail call void @sqlite3_mutex_enter(ptr noundef %8)
  %9 = getelementptr inbounds i8, ptr %0, i64 197
  %10 = load i16, ptr %9, align 1
  %11 = and i16 %10, -17
  store i16 %11, ptr %9, align 1
  %12 = tail call i32 @sqlite3Step(ptr noundef nonnull %0)
  %13 = icmp eq i32 %12, 17
  br i1 %13, label %.lr.ph, label %.critedge

.lr.ph:                                           ; preds = %5
  %14 = getelementptr inbounds i8, ptr %0, i64 52
  br label %15

15:                                               ; preds = %.lr.ph, %38
  %.03040 = phi i32 [ 0, %.lr.ph ], [ %16, %38 ]
  %16 = add nuw nsw i32 %.03040, 1
  %exitcond.not = icmp eq i32 %.03040, 50
  br i1 %exitcond.not, label %.critedge, label %17

17:                                               ; preds = %15
  %18 = load i32, ptr %14, align 4, !tbaa !19
  %19 = tail call i32 @sqlite3Reprepare(ptr noundef nonnull %0)
  %.not35 = icmp eq i32 %19, 0
  br i1 %.not35, label %32, label %20

20:                                               ; preds = %17
  %21 = getelementptr inbounds i8, ptr %6, i64 336
  %22 = load ptr, ptr %21, align 8, !tbaa !20
  %23 = tail call ptr @sqlite3_value_text(ptr noundef %22)
  %24 = getelementptr inbounds i8, ptr %0, i64 168
  %25 = load ptr, ptr %24, align 8, !tbaa !21
  tail call void @sqlite3DbFree(ptr noundef %6, ptr noundef %25)
  %26 = getelementptr inbounds i8, ptr %6, i64 97
  %27 = load i8, ptr %26, align 1, !tbaa !22
  %.not36 = icmp eq i8 %27, 0
  br i1 %.not36, label %28, label %31

28:                                               ; preds = %20
  %29 = tail call ptr @sqlite3DbStrDup(ptr noundef nonnull %6, ptr noundef %23)
  store ptr %29, ptr %24, align 8, !tbaa !21
  %30 = tail call i32 @sqlite3ApiExit(ptr noundef nonnull %6, i32 noundef %19)
  br label %.critedge.sink.split

31:                                               ; preds = %20
  store ptr null, ptr %24, align 8, !tbaa !21
  br label %.critedge.sink.split

32:                                               ; preds = %17
  %33 = tail call i32 @sqlite3_reset(ptr noundef nonnull %0)
  %34 = icmp sgt i32 %18, -1
  br i1 %34, label %35, label %38

35:                                               ; preds = %32
  %36 = load i16, ptr %9, align 1
  %37 = or i16 %36, 16
  store i16 %37, ptr %9, align 1
  br label %38

38:                                               ; preds = %32, %35
  %39 = tail call i32 @sqlite3Step(ptr noundef nonnull %0)
  %40 = icmp eq i32 %39, 17
  br i1 %40, label %15, label %.critedge

.critedge.sink.split:                             ; preds = %31, %28
  %.sink = phi i32 [ %30, %28 ], [ 7, %31 ]
  %41 = getelementptr inbounds i8, ptr %0, i64 56
  store i32 %.sink, ptr %41, align 8, !tbaa !23
  br label %.critedge

.critedge:                                        ; preds = %15, %38, %.critedge.sink.split, %5
  %.2 = phi i32 [ %12, %5 ], [ %.sink, %.critedge.sink.split ], [ 17, %15 ], [ %39, %38 ]
  %42 = load ptr, ptr %7, align 8, !tbaa !13
  tail call void @sqlite3_mutex_leave(ptr noundef %42)
  br label %43

43:                                               ; preds = %.critedge, %3
  %.0 = phi i32 [ %4, %3 ], [ %.2, %.critedge ]
  ret i32 %.0
}

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

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

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

; Function Attrs: nounwind uwtable
declare hidden ptr @sqlite3DbStrDup(ptr noundef, 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 = !{!"Vdbe", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !11, i64 144, !11, i64 148, !7, i64 152, !7, i64 160, !7, i64 168, !7, i64 176, !12, i64 184, !10, i64 192, !8, i64 194, !8, i64 195, !8, i64 196, !11, i64 197, !11, i64 197, !11, i64 197, !11, i64 197, !11, i64 197, !11, i64 197, !11, i64 198, !11, i64 198, !11, i64 200, !11, i64 204, !8, i64 208, !7, i64 240, !7, i64 248, !7, i64 256, !7, i64 264, !11, i64 272, !11, i64 276, !7, i64 280, !7, i64 288}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"short", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!"long long", !8, i64 0}
!13 = !{!14, !7, i64 24}
!14 = !{!"sqlite3", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !11, i64 40, !11, i64 44, !12, i64 48, !12, i64 56, !12, i64 64, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !11, i64 88, !10, i64 92, !8, i64 94, !8, i64 95, !8, i64 96, !8, i64 97, !8, i64 98, !8, i64 99, !8, i64 100, !8, i64 101, !8, i64 102, !8, i64 103, !8, i64 104, !8, i64 105, !8, i64 106, !11, i64 108, !11, i64 112, !11, i64 116, !11, i64 120, !8, i64 124, !11, i64 172, !15, i64 176, !11, i64 184, !11, i64 188, !11, i64 192, !11, i64 196, !11, i64 200, !11, i64 204, !7, i64 208, !7, i64 216, !7, i64 224, !7, i64 232, !7, i64 240, !7, i64 248, !7, i64 256, !7, i64 264, !7, i64 272, !7, i64 280, !7, i64 288, !7, i64 296, !7, i64 304, !7, i64 312, !7, i64 320, !7, i64 328, !7, i64 336, !8, i64 344, !16, i64 352, !7, i64 408, !7, i64 416, !7, i64 424, !7, i64 432, !11, i64 440, !11, i64 444, !17, i64 448, !7, i64 472, !7, i64 480, !7, i64 488, !17, i64 496, !17, i64 520, !18, i64 544, !8, i64 568, !7, i64 632, !11, i64 640, !11, i64 644, !11, i64 648, !12, i64 656, !12, i64 664, !7, i64 672}
!15 = !{!"sqlite3InitInfo", !11, i64 0, !8, i64 4, !8, i64 5, !11, i64 6, !11, i64 6, !11, i64 6}
!16 = !{!"Lookaside", !11, i64 0, !10, i64 4, !8, i64 6, !11, i64 8, !8, i64 12, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48}
!17 = !{!"Hash", !11, i64 0, !11, i64 4, !7, i64 8, !7, i64 16}
!18 = !{!"BusyHandler", !7, i64 0, !7, i64 8, !11, i64 16, !8, i64 20}
!19 = !{!6, !11, i64 52}
!20 = !{!14, !7, i64 336}
!21 = !{!6, !7, i64 168}
!22 = !{!14, !8, i64 97}
!23 = !{!6, !11, i64 56}


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