; LLVM IR from mitdbg/deneva :: storage/index_btree.ll (ZN11index_btree16insert_into_leafE10glob_paramP7bt_nodemP8itemid_t)

; 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.glob_param = type { i64 }
%struct.bt_node = type { ptr, i8, ptr, ptr, i32, ptr, i8, %union.pthread_mutex_t, i32, i32 }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%class.itemid_t = type <{ i32, [4 x i8], ptr, ptr, i8, [7 x i8] }>
%class.index_btree = type { %class.index_base, i64, i32, ptr, ptr, ptr }
%class.index_base = type { ptr, ptr }

@.str.1 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [36 x i8], align 1
@stdout = external global ptr, align 8
@.str.18 = external hidden unnamed_addr constant [22 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

declare i32 @printf(ptr noundef, ...) #1

declare i32 @fflush(ptr noundef) #1

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN11index_btree12leaf_has_keyEP7bt_nodem(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef, i64 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN11index_btree16insert_into_leafE10glob_paramP7bt_nodemP8itemid_t(ptr noundef nonnull align 8 dereferenceable(56) %0, i64 %1, ptr noundef %2, i64 noundef %3, ptr noundef %4) #4 align 2 {
  %6 = alloca i32, align 4
  %7 = alloca %struct.glob_param, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = getelementptr inbounds %struct.glob_param, ptr %7, i32 0, i32 0
  store i64 %1, ptr %16, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store i64 %3, ptr %10, align 8, !tbaa !9
  store ptr %4, ptr %11, align 8, !tbaa !5
  %17 = load ptr, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %18 = load ptr, ptr %9, align 8, !tbaa !5
  %19 = load i64, ptr %10, align 8, !tbaa !9
  %20 = call noundef i32 @_ZN11index_btree12leaf_has_keyEP7bt_nodem(ptr noundef nonnull align 8 dereferenceable(56) %17, ptr noundef %18, i64 noundef %19)
  store i32 %20, ptr %14, align 4, !tbaa !11
  %21 = load i32, ptr %14, align 4, !tbaa !11
  %22 = icmp sge i32 %21, 0
  br i1 %22, label %23, label %40

23:                                               ; preds = %5
  %24 = load ptr, ptr %9, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.bt_node, ptr %24, i32 0, i32 0
  %26 = load ptr, ptr %25, align 8, !tbaa !13
  %27 = load i32, ptr %14, align 4, !tbaa !11
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds ptr, ptr %26, i64 %28
  %30 = load ptr, ptr %29, align 8, !tbaa !5
  %31 = load ptr, ptr %11, align 8, !tbaa !5
  %32 = getelementptr inbounds %class.itemid_t, ptr %31, i32 0, i32 3
  store ptr %30, ptr %32, align 8, !tbaa !17
  %33 = load ptr, ptr %11, align 8, !tbaa !5
  %34 = load ptr, ptr %9, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.bt_node, ptr %34, i32 0, i32 0
  %36 = load ptr, ptr %35, align 8, !tbaa !13
  %37 = load i32, ptr %14, align 4, !tbaa !11
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds ptr, ptr %36, i64 %38
  store ptr %33, ptr %39, align 8, !tbaa !5
  store i32 0, ptr %6, align 4
  store i32 1, ptr %15, align 4
  br label %132

40:                                               ; preds = %5
  br label %41

41:                                               ; preds = %59, %40
  %42 = load i32, ptr %13, align 4, !tbaa !11
  %43 = load ptr, ptr %9, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.bt_node, ptr %43, i32 0, i32 4
  %45 = load i32, ptr %44, align 8, !tbaa !20
  %46 = icmp ult i32 %42, %45
  br i1 %46, label %47, label %57

47:                                               ; preds = %41
  %48 = load ptr, ptr %9, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.bt_node, ptr %48, i32 0, i32 2
  %50 = load ptr, ptr %49, align 8, !tbaa !21
  %51 = load i32, ptr %13, align 4, !tbaa !11
  %52 = zext i32 %51 to i64
  %53 = getelementptr inbounds i64, ptr %50, i64 %52
  %54 = load i64, ptr %53, align 8, !tbaa !9
  %55 = load i64, ptr %10, align 8, !tbaa !9
  %56 = icmp ult i64 %54, %55
  br label %57

57:                                               ; preds = %47, %41
  %58 = phi i1 [ false, %41 ], [ %56, %47 ]
  br i1 %58, label %59, label %62

59:                                               ; preds = %57
  %60 = load i32, ptr %13, align 4, !tbaa !11
  %61 = add i32 %60, 1
  store i32 %61, ptr %13, align 4, !tbaa !11
  br label %41, !llvm.loop !22

62:                                               ; preds = %57
  %63 = load ptr, ptr %9, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.bt_node, ptr %63, i32 0, i32 4
  %65 = load i32, ptr %64, align 8, !tbaa !20
  store i32 %65, ptr %12, align 4, !tbaa !11
  br label %66

66:                                               ; preds = %99, %62
  %67 = load i32, ptr %12, align 4, !tbaa !11
  %68 = load i32, ptr %13, align 4, !tbaa !11
  %69 = icmp ugt i32 %67, %68
  br i1 %69, label %70, label %102

70:                                               ; preds = %66
  %71 = load ptr, ptr %9, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.bt_node, ptr %71, i32 0, i32 2
  %73 = load ptr, ptr %72, align 8, !tbaa !21
  %74 = load i32, ptr %12, align 4, !tbaa !11
  %75 = sub i32 %74, 1
  %76 = zext i32 %75 to i64
  %77 = getelementptr inbounds i64, ptr %73, i64 %76
  %78 = load i64, ptr %77, align 8, !tbaa !9
  %79 = load ptr, ptr %9, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.bt_node, ptr %79, i32 0, i32 2
  %81 = load ptr, ptr %80, align 8, !tbaa !21
  %82 = load i32, ptr %12, align 4, !tbaa !11
  %83 = zext i32 %82 to i64
  %84 = getelementptr inbounds i64, ptr %81, i64 %83
  store i64 %78, ptr %84, align 8, !tbaa !9
  %85 = load ptr, ptr %9, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.bt_node, ptr %85, i32 0, i32 0
  %87 = load ptr, ptr %86, align 8, !tbaa !13
  %88 = load i32, ptr %12, align 4, !tbaa !11
  %89 = sub i32 %88, 1
  %90 = zext i32 %89 to i64
  %91 = getelementptr inbounds ptr, ptr %87, i64 %90
  %92 = load ptr, ptr %91, align 8, !tbaa !5
  %93 = load ptr, ptr %9, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.bt_node, ptr %93, i32 0, i32 0
  %95 = load ptr, ptr %94, align 8, !tbaa !13
  %96 = load i32, ptr %12, align 4, !tbaa !11
  %97 = zext i32 %96 to i64
  %98 = getelementptr inbounds ptr, ptr %95, i64 %97
  store ptr %92, ptr %98, align 8, !tbaa !5
  br label %99

99:                                               ; preds = %70
  %100 = load i32, ptr %12, align 4, !tbaa !11
  %101 = add i32 %100, -1
  store i32 %101, ptr %12, align 4, !tbaa !11
  br label %66, !llvm.loop !24

102:                                              ; preds = %66
  %103 = load i64, ptr %10, align 8, !tbaa !9
  %104 = load ptr, ptr %9, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.bt_node, ptr %104, i32 0, i32 2
  %106 = load ptr, ptr %105, align 8, !tbaa !21
  %107 = load i32, ptr %13, align 4, !tbaa !11
  %108 = zext i32 %107 to i64
  %109 = getelementptr inbounds i64, ptr %106, i64 %108
  store i64 %103, ptr %109, align 8, !tbaa !9
  %110 = load ptr, ptr %11, align 8, !tbaa !5
  %111 = load ptr, ptr %9, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.bt_node, ptr %111, i32 0, i32 0
  %113 = load ptr, ptr %112, align 8, !tbaa !13
  %114 = load i32, ptr %13, align 4, !tbaa !11
  %115 = zext i32 %114 to i64
  %116 = getelementptr inbounds ptr, ptr %113, i64 %115
  store ptr %110, ptr %116, align 8, !tbaa !5
  %117 = load ptr, ptr %9, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.bt_node, ptr %117, i32 0, i32 4
  %119 = load i32, ptr %118, align 8, !tbaa !20
  %120 = add i32 %119, 1
  store i32 %120, ptr %118, align 8, !tbaa !20
  %121 = load ptr, ptr %9, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.bt_node, ptr %121, i32 0, i32 4
  %123 = load i32, ptr %122, align 8, !tbaa !20
  %124 = getelementptr inbounds %class.index_btree, ptr %17, i32 0, i32 2
  %125 = load i32, ptr %124, align 8, !tbaa !25
  %126 = icmp ult i32 %123, %125
  br i1 %126, label %131, label %127

127:                                              ; preds = %102
  %128 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 415, ptr noundef @.str.18)
  %129 = load ptr, ptr @stdout, align 8, !tbaa !5
  %130 = call i32 @fflush(ptr noundef %129)
  call void @exit(i32 noundef 0) #6
  unreachable

131:                                              ; preds = %102
  store i32 0, ptr %6, align 4
  store i32 1, ptr %15, align 4
  br label %132

132:                                              ; preds = %131, %23
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  %133 = load i32, ptr %6, align 4
  ret i32 %133
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { noreturn nounwind "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 #3 = { mustprogress 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 #4 = { mustprogress 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 #5 = { nounwind }
attributes #6 = { noreturn 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTS7bt_node", !6, i64 0, !15, i64 8, !6, i64 16, !6, i64 24, !12, i64 32, !6, i64 40, !15, i64 48, !7, i64 56, !16, i64 96, !12, i64 100}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTS7latch_t", !7, i64 0}
!17 = !{!18, !6, i64 16}
!18 = !{!"_ZTS8itemid_t", !19, i64 0, !6, i64 8, !6, i64 16, !15, i64 24}
!19 = !{!"_ZTS9Data_type", !7, i64 0}
!20 = !{!14, !12, i64 32}
!21 = !{!14, !6, i64 16}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}
!25 = !{!26, !12, i64 24}
!26 = !{!"_ZTS11index_btree", !27, i64 0, !10, i64 16, !12, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!27 = !{!"_ZTS10index_base", !6, i64 8}


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

@.str.1 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [36 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.18 = external hidden unnamed_addr constant [22 x i8], align 1

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #0

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN11index_btree12leaf_has_keyEP7bt_nodem(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef, i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i32 @_ZN11index_btree16insert_into_leafE10glob_paramP7bt_nodemP8itemid_t(ptr noundef nonnull align 8 dereferenceable(56) %0, i64 %1, ptr noundef %2, i64 noundef %3, ptr noundef %4) local_unnamed_addr #2 align 2 {
  %6 = tail call noundef i32 @_ZN11index_btree12leaf_has_keyEP7bt_nodem(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef %2, i64 noundef %3)
  %7 = icmp sgt i32 %6, -1
  br i1 %7, label %12, label %.preheader

.preheader:                                       ; preds = %5
  %8 = getelementptr inbounds i8, ptr %2, i64 32
  %9 = load i32, ptr %8, align 8, !tbaa !5
  %.not = icmp eq i32 %9, 0
  br i1 %.not, label %.critedge.._crit_edge_crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %10 = getelementptr inbounds i8, ptr %2, i64 16
  %11 = load ptr, ptr %10, align 8, !tbaa !13
  %wide.trip.count = zext i32 %9 to i64
  br label %18

12:                                               ; preds = %5
  %13 = load ptr, ptr %2, align 8, !tbaa !14
  %14 = zext nneg i32 %6 to i64
  %15 = getelementptr inbounds ptr, ptr %13, i64 %14
  %16 = load ptr, ptr %15, align 8, !tbaa !15
  %17 = getelementptr inbounds i8, ptr %4, i64 16
  store ptr %16, ptr %17, align 8, !tbaa !16
  store ptr %4, ptr %15, align 8, !tbaa !15
  br label %51

18:                                               ; preds = %.lr.ph, %22
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %22 ]
  %19 = getelementptr inbounds i64, ptr %11, i64 %indvars.iv
  %20 = load i64, ptr %19, align 8, !tbaa !19
  %21 = icmp ult i64 %20, %3
  br i1 %21, label %22, label %.critedge

22:                                               ; preds = %18
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.critedge.._crit_edge_crit_edge, label %18, !llvm.loop !21

.critedge:                                        ; preds = %18
  %23 = trunc nuw i64 %indvars.iv to i32
  %24 = icmp ugt i32 %9, %23
  br i1 %24, label %.lr.ph45, label %.critedge.._crit_edge_crit_edge

.critedge.._crit_edge_crit_edge:                  ; preds = %22, %.preheader, %.critedge
  %.036.lcssa51 = phi i32 [ %23, %.critedge ], [ 0, %.preheader ], [ %9, %22 ]
  %.pre = zext i32 %.036.lcssa51 to i64
  br label %._crit_edge

.lr.ph45:                                         ; preds = %.critedge
  %25 = getelementptr inbounds i8, ptr %2, i64 16
  %26 = zext i32 %9 to i64
  %27 = and i64 %indvars.iv, 4294967295
  br label %28

28:                                               ; preds = %.lr.ph45, %28
  %indvars.iv47 = phi i64 [ %26, %.lr.ph45 ], [ %30, %28 ]
  %29 = load ptr, ptr %25, align 8, !tbaa !13
  %30 = add nsw i64 %indvars.iv47, -1
  %31 = getelementptr inbounds i64, ptr %29, i64 %30
  %32 = load i64, ptr %31, align 8, !tbaa !19
  %33 = getelementptr inbounds i64, ptr %29, i64 %indvars.iv47
  store i64 %32, ptr %33, align 8, !tbaa !19
  %34 = load ptr, ptr %2, align 8, !tbaa !14
  %35 = getelementptr inbounds ptr, ptr %34, i64 %30
  %36 = load ptr, ptr %35, align 8, !tbaa !15
  %37 = getelementptr inbounds ptr, ptr %34, i64 %indvars.iv47
  store ptr %36, ptr %37, align 8, !tbaa !15
  %.wide = icmp ugt i64 %30, %27
  br i1 %.wide, label %28, label %._crit_edge, !llvm.loop !23

._crit_edge:                                      ; preds = %28, %.critedge.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre, %.critedge.._crit_edge_crit_edge ], [ %27, %28 ]
  %38 = getelementptr inbounds i8, ptr %2, i64 16
  %39 = load ptr, ptr %38, align 8, !tbaa !13
  %40 = getelementptr inbounds i64, ptr %39, i64 %.pre-phi
  store i64 %3, ptr %40, align 8, !tbaa !19
  %41 = load ptr, ptr %2, align 8, !tbaa !14
  %42 = getelementptr inbounds ptr, ptr %41, i64 %.pre-phi
  store ptr %4, ptr %42, align 8, !tbaa !15
  %43 = add i32 %9, 1
  store i32 %43, ptr %8, align 8, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %0, i64 24
  %45 = load i32, ptr %44, align 8, !tbaa !24
  %46 = icmp ult i32 %43, %45
  br i1 %46, label %51, label %47

47:                                               ; preds = %._crit_edge
  %48 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, ptr noundef nonnull @.str.1, i32 noundef 415, ptr noundef nonnull @.str.18)
  %49 = load ptr, ptr @stdout, align 8, !tbaa !15
  %50 = tail call i32 @fflush(ptr noundef %49)
  tail call void @exit(i32 noundef 0) #3
  unreachable

51:                                               ; preds = %._crit_edge, %12
  ret i32 0
}

attributes #0 = { nofree nounwind "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 = { noreturn nounwind "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 = { mustprogress 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 #3 = { noreturn 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, !11, i64 32}
!6 = !{!"_ZTS7bt_node", !7, i64 0, !10, i64 8, !7, i64 16, !7, i64 24, !11, i64 32, !7, i64 40, !10, i64 48, !8, i64 56, !12, i64 96, !11, i64 100}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!"_ZTS7latch_t", !8, i64 0}
!13 = !{!6, !7, i64 16}
!14 = !{!6, !7, i64 0}
!15 = !{!7, !7, i64 0}
!16 = !{!17, !7, i64 16}
!17 = !{!"_ZTS8itemid_t", !18, i64 0, !7, i64 8, !7, i64 16, !10, i64 24}
!18 = !{!"_ZTS9Data_type", !8, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"long", !8, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = !{!25, !11, i64 24}
!25 = !{!"_ZTS11index_btree", !26, i64 0, !20, i64 16, !11, i64 24, !7, i64 32, !7, i64 40, !7, i64 48}
!26 = !{!"_ZTS10index_base", !7, i64 8}


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