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

; 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.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.5 = external hidden unnamed_addr constant [14 x i8], align 1
@__PRETTY_FUNCTION__._ZN11index_btree10index_readEmRP8itemid_tml = external hidden unnamed_addr constant [70 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [25 x i8], align 1
@stdout = external global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [24 x i8], align 1

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

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

21:                                               ; preds = %5
  br label %24

22:                                               ; preds = %5
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 106, ptr noundef @__PRETTY_FUNCTION__._ZN11index_btree10index_readEmRP8itemid_tml) #7
  unreachable

23:                                               ; No predecessors!
  br label %24

24:                                               ; preds = %23, %21
  %25 = load i64, ptr %11, align 8, !tbaa !9
  %26 = getelementptr inbounds %struct.glob_param, ptr %13, i32 0, i32 0
  store i64 %25, ptr %26, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 %13, i64 8, i1 false), !tbaa.struct !15
  %27 = load i64, ptr %8, align 8, !tbaa !9
  %28 = getelementptr inbounds %struct.glob_param, ptr %15, i32 0, i32 0
  %29 = load i64, ptr %28, align 8
  %30 = call noundef i32 @_ZN11index_btree9find_leafE10glob_paramm9idx_acc_tRP7bt_node(ptr noundef nonnull align 8 dereferenceable(56) %18, i64 %29, i64 noundef %27, i32 noundef 1, ptr noundef nonnull align 8 dereferenceable(8) %14)
  %31 = load ptr, ptr %14, align 8, !tbaa !5
  %32 = icmp eq ptr %31, null
  br i1 %32, label %33, label %37

33:                                               ; preds = %24
  %34 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 111, ptr noundef @.str.7)
  %35 = load ptr, ptr @stdout, align 8, !tbaa !5
  %36 = call i32 @fflush(ptr noundef %35)
  call void @exit(i32 noundef 0) #7
  unreachable

37:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !16
  br label %38

38:                                               ; preds = %79, %37
  %39 = load i32, ptr %16, align 4, !tbaa !16
  %40 = load ptr, ptr %14, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.bt_node, ptr %40, i32 0, i32 4
  %42 = load i32, ptr %41, align 8, !tbaa !18
  %43 = icmp ult i32 %39, %42
  br i1 %43, label %45, label %44

44:                                               ; preds = %38
  store i32 2, ptr %17, align 4
  br label %82

45:                                               ; preds = %38
  %46 = load ptr, ptr %14, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.bt_node, ptr %46, i32 0, i32 2
  %48 = load ptr, ptr %47, align 8, !tbaa !22
  %49 = load i32, ptr %16, align 4, !tbaa !16
  %50 = zext i32 %49 to i64
  %51 = getelementptr inbounds i64, ptr %48, i64 %50
  %52 = load i64, ptr %51, align 8, !tbaa !9
  %53 = load i64, ptr %8, align 8, !tbaa !9
  %54 = icmp eq i64 %52, %53
  br i1 %54, label %55, label %78

55:                                               ; preds = %45
  %56 = load ptr, ptr %14, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.bt_node, ptr %56, i32 0, i32 0
  %58 = load ptr, ptr %57, align 8, !tbaa !23
  %59 = load i32, ptr %16, align 4, !tbaa !16
  %60 = zext i32 %59 to i64
  %61 = getelementptr inbounds ptr, ptr %58, i64 %60
  %62 = load ptr, ptr %61, align 8, !tbaa !5
  %63 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %62, ptr %63, align 8, !tbaa !5
  %64 = load ptr, ptr %14, align 8, !tbaa !5
  %65 = call noundef i32 @_ZN11index_btree13release_latchEP7bt_node(ptr noundef nonnull align 8 dereferenceable(56) %18, ptr noundef %64)
  %66 = load ptr, ptr %14, align 8, !tbaa !5
  %67 = getelementptr inbounds %class.index_btree, ptr %18, i32 0, i32 4
  %68 = load ptr, ptr %67, align 8, !tbaa !24
  %69 = load i64, ptr %10, align 8, !tbaa !9
  %70 = getelementptr inbounds ptr, ptr %68, i64 %69
  %71 = load ptr, ptr %70, align 8, !tbaa !5
  store ptr %66, ptr %71, align 8, !tbaa !5
  %72 = load i32, ptr %16, align 4, !tbaa !16
  %73 = getelementptr inbounds %class.index_btree, ptr %18, i32 0, i32 5
  %74 = load ptr, ptr %73, align 8, !tbaa !27
  %75 = load i64, ptr %10, align 8, !tbaa !9
  %76 = getelementptr inbounds ptr, ptr %74, i64 %75
  %77 = load ptr, ptr %76, align 8, !tbaa !5
  store i32 %72, ptr %77, align 4, !tbaa !16
  store i32 0, ptr %6, align 4
  store i32 1, ptr %17, align 4
  br label %82

78:                                               ; preds = %45
  br label %79

79:                                               ; preds = %78
  %80 = load i32, ptr %16, align 4, !tbaa !16
  %81 = add i32 %80, 1
  store i32 %81, ptr %16, align 4, !tbaa !16
  br label %38, !llvm.loop !28

82:                                               ; preds = %55, %44
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  %83 = load i32, ptr %17, align 4
  switch i32 %83, label %90 [
    i32 2, label %84
  ]

84:                                               ; preds = %82
  %85 = load i64, ptr %8, align 8, !tbaa !9
  %86 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i64 noundef %85)
  %87 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 123, ptr noundef @.str.9)
  %88 = load ptr, ptr @stdout, align 8, !tbaa !5
  %89 = call i32 @fflush(ptr noundef %88)
  call void @exit(i32 noundef 0) #7
  unreachable

90:                                               ; preds = %82
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  %91 = load i32, ptr %6, align 4
  ret i32 %91
}

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

declare i32 @fflush(ptr noundef) #4

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { "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 = { 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 #6 = { nounwind }
attributes #7 = { 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 = !{!"_ZTS2RC", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTS10glob_param", !10, i64 0}
!15 = !{i64 0, i64 8, !9}
!16 = !{!17, !17, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = !{!19, !17, i64 32}
!19 = !{!"_ZTS7bt_node", !6, i64 0, !20, i64 8, !6, i64 16, !6, i64 24, !17, i64 32, !6, i64 40, !20, i64 48, !7, i64 56, !21, i64 96, !17, i64 100}
!20 = !{!"bool", !7, i64 0}
!21 = !{!"_ZTS7latch_t", !7, i64 0}
!22 = !{!19, !6, i64 16}
!23 = !{!19, !6, i64 0}
!24 = !{!25, !6, i64 40}
!25 = !{!"_ZTS11index_btree", !26, i64 0, !10, i64 16, !17, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!26 = !{!"_ZTS10index_base", !6, i64 8}
!27 = !{!25, !6, i64 48}
!28 = distinct !{!28, !29}
!29 = !{!"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"

@.str.1 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1
@__PRETTY_FUNCTION__._ZN11index_btree10index_readEmRP8itemid_tml = external hidden unnamed_addr constant [70 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [25 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [24 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN11index_btree10index_readEmRP8itemid_tml(ptr noundef nonnull align 8 dereferenceable(56) %0, i64 noundef %1, ptr nocapture noundef nonnull writeonly align 8 dereferenceable(8) %2, i64 noundef %3, i64 noundef %4) local_unnamed_addr #2 align 2 {
  %6 = alloca ptr, align 8
  %.not = icmp eq i64 %4, -1
  br i1 %.not, label %7, label %8

7:                                                ; preds = %5
  tail call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 106, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN11index_btree10index_readEmRP8itemid_tml) #5
  unreachable

8:                                                ; preds = %5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %9 = call noundef i32 @_ZN11index_btree9find_leafE10glob_paramm9idx_acc_tRP7bt_node(ptr noundef nonnull align 8 dereferenceable(56) %0, i64 %4, i64 noundef %1, i32 noundef 1, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %10 = load ptr, ptr %6, align 8, !tbaa !5
  %11 = icmp eq ptr %10, null
  br i1 %11, label %16, label %.preheader

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

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

16:                                               ; preds = %8
  %17 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, ptr noundef nonnull @.str.1, i32 noundef 111, ptr noundef nonnull @.str.7)
  %18 = load ptr, ptr @stdout, align 8, !tbaa !5
  %19 = call i32 @fflush(ptr noundef %18)
  call void @exit(i32 noundef 0) #5
  unreachable

20:                                               ; preds = %.lr.ph, %24
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %24 ]
  %21 = getelementptr inbounds i64, ptr %15, i64 %indvars.iv
  %22 = load i64, ptr %21, align 8, !tbaa !15
  %23 = icmp eq i64 %22, %1
  br i1 %23, label %29, label %24

24:                                               ; preds = %20
  %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, label %20, !llvm.loop !17

.critedge:                                        ; preds = %24, %.preheader
  %25 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i64 noundef %1)
  %26 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, ptr noundef nonnull @.str.1, i32 noundef 123, ptr noundef nonnull @.str.9)
  %27 = load ptr, ptr @stdout, align 8, !tbaa !5
  %28 = call i32 @fflush(ptr noundef %27)
  call void @exit(i32 noundef 0) #5
  unreachable

29:                                               ; preds = %20
  %30 = trunc nuw i64 %indvars.iv to i32
  %31 = load ptr, ptr %10, align 8, !tbaa !19
  %32 = getelementptr inbounds ptr, ptr %31, i64 %indvars.iv
  %33 = load ptr, ptr %32, align 8, !tbaa !5
  store ptr %33, ptr %2, align 8, !tbaa !5
  %34 = call noundef i32 @_ZN11index_btree13release_latchEP7bt_node(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull %10)
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %0, i64 40
  %37 = load ptr, ptr %36, align 8, !tbaa !20
  %38 = getelementptr inbounds ptr, ptr %37, i64 %3
  %39 = load ptr, ptr %38, align 8, !tbaa !5
  store ptr %35, ptr %39, align 8, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %0, i64 48
  %41 = load ptr, ptr %40, align 8, !tbaa !23
  %42 = getelementptr inbounds ptr, ptr %41, i64 %3
  %43 = load ptr, ptr %42, align 8, !tbaa !5
  store i32 %30, ptr %43, align 4, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  ret i32 0
}

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

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

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

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

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

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


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