; LLVM IR from rahulyesantharao/b-epsilon-tree :: src/be_tree/be_tree.ll (ZN6BeTree9FullFlushEv)

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

%class.BeNode = type { %class.Serializable, ptr, i32, ptr, ptr, ptr, ptr, ptr }
%class.Serializable = type { ptr }
%class.BeTree = type { %"class.std::__cxx11::basic_string", ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%struct.BeBuffer = type { i32, i32, [247 x %struct.BeUpsert] }
%struct.BeUpsert = type { i32, i32, i32, i32 }

@.str.12 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [22 x i8], align 1
@__PRETTY_FUNCTION__._ZN6BeTree9FullFlushEv = external hidden unnamed_addr constant [25 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
declare dso_local noundef i32 @_ZN6BeNode13SplitInternalERj(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6BeNode5SetIdEj(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6BeNode14FullFlushSetupEv(ptr noundef nonnull align 8 dereferenceable(64)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN6BeNode13FlushOneLevelERjS0_(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6BeNode8AddPivotEjj(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef, i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6BeTree13CreateNewRootEjj(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef, i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6BeTree9FullFlushEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #2 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca %class.BeNode, align 8
  %5 = alloca %class.BeNode, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %10 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  %11 = getelementptr inbounds %class.BeTree, ptr %10, i32 0, i32 1
  %12 = load ptr, ptr %11, align 8, !tbaa !9
  %13 = getelementptr inbounds %class.BeNode, ptr %12, i32 0, i32 2
  %14 = load i32, ptr %13, align 8, !tbaa !14
  store i32 %14, ptr %3, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 64, ptr %4) #3
  %15 = getelementptr inbounds %class.BeTree, ptr %10, i32 0, i32 1
  %16 = load ptr, ptr %15, align 8, !tbaa !9
  %17 = getelementptr inbounds %class.BeNode, ptr %16, i32 0, i32 1
  %18 = load ptr, ptr %17, align 8, !tbaa !19
  %19 = getelementptr inbounds %class.BeTree, ptr %10, i32 0, i32 1
  %20 = load ptr, ptr %19, align 8, !tbaa !9
  %21 = getelementptr inbounds %class.BeNode, ptr %20, i32 0, i32 2
  %22 = load i32, ptr %21, align 8, !tbaa !14
  call void @_ZN6BeNodeC1EP12BlockManagerj(ptr noundef nonnull align 8 dereferenceable(64) %4, ptr noundef %18, i32 noundef %22)
  call void @llvm.lifetime.start.p0(i64 64, ptr %5) #3
  %23 = getelementptr inbounds %class.BeTree, ptr %10, i32 0, i32 1
  %24 = load ptr, ptr %23, align 8, !tbaa !9
  %25 = getelementptr inbounds %class.BeNode, ptr %24, i32 0, i32 1
  %26 = load ptr, ptr %25, align 8, !tbaa !19
  %27 = getelementptr inbounds %class.BeTree, ptr %10, i32 0, i32 1
  %28 = load ptr, ptr %27, align 8, !tbaa !9
  %29 = getelementptr inbounds %class.BeNode, ptr %28, i32 0, i32 2
  %30 = load i32, ptr %29, align 8, !tbaa !14
  call void @_ZN6BeNodeC1EP12BlockManagerj(ptr noundef nonnull align 8 dereferenceable(64) %5, ptr noundef %26, i32 noundef %30)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  br label %31

31:                                               ; preds = %33, %1
  call void @_ZN6BeNode14FullFlushSetupEv(ptr noundef nonnull align 8 dereferenceable(64) %4)
  %32 = call noundef i32 @_ZN6BeNode13FlushOneLevelERjS0_(ptr noundef nonnull align 8 dereferenceable(64) %4, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  store i32 %32, ptr %6, align 4, !tbaa !20
  br label %33

33:                                               ; preds = %31
  %34 = load i32, ptr %6, align 4, !tbaa !20
  %35 = icmp eq i32 %34, 2
  br i1 %35, label %31, label %36, !llvm.loop !22

36:                                               ; preds = %33
  br label %37

37:                                               ; preds = %83, %36
  br label %38

38:                                               ; preds = %37
  %39 = load i32, ptr %6, align 4, !tbaa !20
  %40 = icmp eq i32 %39, 0
  br i1 %40, label %41, label %57

41:                                               ; preds = %38
  %42 = load i32, ptr %7, align 4, !tbaa !18
  %43 = load i32, ptr %8, align 4, !tbaa !18
  %44 = call noundef zeroext i1 @_ZN6BeNode8AddPivotEjj(ptr noundef nonnull align 8 dereferenceable(64) %4, i32 noundef %42, i32 noundef %43)
  br i1 %44, label %45, label %55

45:                                               ; preds = %41
  %46 = call noundef i32 @_ZN6BeNode13SplitInternalERj(ptr noundef nonnull align 8 dereferenceable(64) %4, ptr noundef nonnull align 4 dereferenceable(4) %8)
  store i32 %46, ptr %7, align 4, !tbaa !18
  %47 = getelementptr inbounds %class.BeNode, ptr %4, i32 0, i32 5
  %48 = load ptr, ptr %47, align 8, !tbaa !24
  %49 = getelementptr inbounds %struct.BeBuffer, ptr %48, i32 0, i32 1
  %50 = load i32, ptr %49, align 4, !tbaa !25
  %51 = icmp eq i32 %50, 0
  br i1 %51, label %52, label %54

52:                                               ; preds = %45
  %53 = load i32, ptr %8, align 4, !tbaa !18
  call void @_ZN6BeNode5SetIdEj(ptr noundef nonnull align 8 dereferenceable(64) %4, i32 noundef %53)
  br label %54

54:                                               ; preds = %52, %45
  br label %56

55:                                               ; preds = %41
  store i32 1, ptr %6, align 4, !tbaa !20
  br label %56

56:                                               ; preds = %55, %54
  br label %57

57:                                               ; preds = %56, %38
  %58 = getelementptr inbounds %class.BeNode, ptr %4, i32 0, i32 5
  %59 = load ptr, ptr %58, align 8, !tbaa !24
  %60 = getelementptr inbounds %struct.BeBuffer, ptr %59, i32 0, i32 1
  %61 = load i32, ptr %60, align 4, !tbaa !25
  %62 = icmp ugt i32 %61, 0
  br i1 %62, label %63, label %71

63:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  %64 = call noundef i32 @_ZN6BeNode13FlushOneLevelERjS0_(ptr noundef nonnull align 8 dereferenceable(64) %4, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  store i32 %64, ptr %9, align 4, !tbaa !20
  %65 = load i32, ptr %9, align 4, !tbaa !20
  %66 = icmp eq i32 %65, 1
  br i1 %66, label %67, label %68

67:                                               ; preds = %63
  br label %70

68:                                               ; preds = %63
  call void @__assert_fail(ptr noundef @.str.42, ptr noundef @.str.12, i32 noundef 591, ptr noundef @__PRETTY_FUNCTION__._ZN6BeTree9FullFlushEv) #4
  unreachable

69:                                               ; No predecessors!
  br label %70

70:                                               ; preds = %69, %67
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  br label %71

71:                                               ; preds = %70, %57
  %72 = getelementptr inbounds %class.BeNode, ptr %4, i32 0, i32 3
  %73 = load ptr, ptr %72, align 8, !tbaa !27
  %74 = load i32, ptr %73, align 4, !tbaa !18
  %75 = icmp eq i32 %74, 0
  br i1 %75, label %76, label %83

76:                                               ; preds = %71
  %77 = load i32, ptr %6, align 4, !tbaa !20
  %78 = icmp eq i32 %77, 0
  br i1 %78, label %79, label %82

79:                                               ; preds = %76
  %80 = load i32, ptr %7, align 4, !tbaa !18
  %81 = load i32, ptr %8, align 4, !tbaa !18
  call void @_ZN6BeTree13CreateNewRootEjj(ptr noundef nonnull align 8 dereferenceable(48) %10, i32 noundef %80, i32 noundef %81)
  br label %82

82:                                               ; preds = %79, %76
  br label %87

83:                                               ; preds = %71
  %84 = getelementptr inbounds %class.BeNode, ptr %4, i32 0, i32 3
  %85 = load ptr, ptr %84, align 8, !tbaa !27
  %86 = load i32, ptr %85, align 4, !tbaa !18
  call void @_ZN6BeNode5SetIdEj(ptr noundef nonnull align 8 dereferenceable(64) %4, i32 noundef %86)
  br label %37, !llvm.loop !28

87:                                               ; preds = %82
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 64, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 64, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  ret void
}

declare void @_ZN6BeNodeC1EP12BlockManagerj(ptr, ptr, i32)

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 = { nounwind }
attributes #4 = { 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, !6, i64 32}
!10 = !{!"_ZTS6BeTree", !11, i64 0, !6, i64 32, !6, i64 40}
!11 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !12, i64 0, !13, i64 8, !7, i64 16}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!15, !17, i64 16}
!15 = !{!"_ZTS6BeNode", !16, i64 0, !6, i64 8, !17, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!16 = !{!"_ZTS12Serializable"}
!17 = !{!"int", !7, i64 0}
!18 = !{!17, !17, i64 0}
!19 = !{!15, !6, i64 8}
!20 = !{!21, !21, i64 0}
!21 = !{!"_ZTS11FlushResult", !7, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!15, !6, i64 40}
!25 = !{!26, !17, i64 4}
!26 = !{!"_ZTS8BeBuffer", !17, i64 0, !17, i64 4, !7, i64 8}
!27 = !{!15, !6, i64 24}
!28 = distinct !{!28, !23}


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

%class.BeNode = type { %class.Serializable, ptr, i32, ptr, ptr, ptr, ptr, ptr }
%class.Serializable = type { ptr }

@.str.12 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [22 x i8], align 1
@__PRETTY_FUNCTION__._ZN6BeTree9FullFlushEv = external hidden unnamed_addr constant [25 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
declare dso_local noundef i32 @_ZN6BeNode13SplitInternalERj(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6BeNode5SetIdEj(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6BeNode14FullFlushSetupEv(ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6BeNode8AddPivotEjj(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef, i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6BeTree13CreateNewRootEjj(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef, i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6BeTree9FullFlushEv(ptr noundef nonnull align 8 dereferenceable(48) %0) local_unnamed_addr #2 align 2 {
  %2 = alloca %class.BeNode, align 8
  %3 = alloca %class.BeNode, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = getelementptr inbounds i8, ptr %0, i64 32
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %2) #3
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %7, i64 8
  %9 = load ptr, ptr %8, align 8, !tbaa !13
  %10 = getelementptr inbounds i8, ptr %7, i64 16
  %11 = load i32, ptr %10, align 8, !tbaa !17
  call void @_ZN6BeNodeC1EP12BlockManagerj(ptr noundef nonnull align 8 dereferenceable(64) %2, ptr noundef %9, i32 noundef %11)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #3
  %12 = load ptr, ptr %6, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %12, i64 8
  %14 = load ptr, ptr %13, align 8, !tbaa !13
  %15 = getelementptr inbounds i8, ptr %12, i64 16
  %16 = load i32, ptr %15, align 8, !tbaa !17
  call void @_ZN6BeNodeC1EP12BlockManagerj(ptr noundef nonnull align 8 dereferenceable(64) %3, ptr noundef %14, i32 noundef %16)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
  br label %17

17:                                               ; preds = %17, %1
  call void @_ZN6BeNode14FullFlushSetupEv(ptr noundef nonnull align 8 dereferenceable(64) %2)
  %18 = call noundef i32 @_ZN6BeNode13FlushOneLevelERjS0_(ptr noundef nonnull align 8 dereferenceable(64) %2, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %19 = icmp eq i32 %18, 2
  br i1 %19, label %17, label %.preheader, !llvm.loop !18

.preheader:                                       ; preds = %17
  %20 = getelementptr inbounds i8, ptr %2, i64 40
  %21 = getelementptr inbounds i8, ptr %2, i64 24
  br label %22

22:                                               ; preds = %.preheader, %53
  %.0 = phi i32 [ %.1, %53 ], [ %18, %.preheader ]
  %23 = icmp eq i32 %.0, 0
  br i1 %23, label %24, label %36

24:                                               ; preds = %22
  %25 = load i32, ptr %4, align 4, !tbaa !20
  %26 = load i32, ptr %5, align 4, !tbaa !20
  %27 = call noundef zeroext i1 @_ZN6BeNode8AddPivotEjj(ptr noundef nonnull align 8 dereferenceable(64) %2, i32 noundef %25, i32 noundef %26)
  br i1 %27, label %28, label %36

28:                                               ; preds = %24
  %29 = call noundef i32 @_ZN6BeNode13SplitInternalERj(ptr noundef nonnull align 8 dereferenceable(64) %2, ptr noundef nonnull align 4 dereferenceable(4) %5)
  store i32 %29, ptr %4, align 4, !tbaa !20
  %30 = load ptr, ptr %20, align 8, !tbaa !21
  %31 = getelementptr inbounds i8, ptr %30, i64 4
  %32 = load i32, ptr %31, align 4, !tbaa !22
  %33 = icmp eq i32 %32, 0
  br i1 %33, label %34, label %36

34:                                               ; preds = %28
  %35 = load i32, ptr %5, align 4, !tbaa !20
  call void @_ZN6BeNode5SetIdEj(ptr noundef nonnull align 8 dereferenceable(64) %2, i32 noundef %35)
  br label %36

36:                                               ; preds = %24, %34, %28, %22
  %.1 = phi i32 [ 0, %34 ], [ 0, %28 ], [ %.0, %22 ], [ 1, %24 ]
  %37 = load ptr, ptr %20, align 8, !tbaa !21
  %38 = getelementptr inbounds i8, ptr %37, i64 4
  %39 = load i32, ptr %38, align 4, !tbaa !22
  %.not = icmp eq i32 %39, 0
  br i1 %.not, label %44, label %40

40:                                               ; preds = %36
  %41 = call noundef i32 @_ZN6BeNode13FlushOneLevelERjS0_(ptr noundef nonnull align 8 dereferenceable(64) %2, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %42 = icmp eq i32 %41, 1
  br i1 %42, label %44, label %43

43:                                               ; preds = %40
  call void @__assert_fail(ptr noundef nonnull @.str.42, ptr noundef nonnull @.str.12, i32 noundef 591, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6BeTree9FullFlushEv) #4
  unreachable

44:                                               ; preds = %40, %36
  %45 = load ptr, ptr %21, align 8, !tbaa !24
  %46 = load i32, ptr %45, align 4, !tbaa !20
  %47 = icmp eq i32 %46, 0
  br i1 %47, label %48, label %53

48:                                               ; preds = %44
  %49 = icmp eq i32 %.1, 0
  br i1 %49, label %50, label %54

50:                                               ; preds = %48
  %51 = load i32, ptr %4, align 4, !tbaa !20
  %52 = load i32, ptr %5, align 4, !tbaa !20
  call void @_ZN6BeTree13CreateNewRootEjj(ptr noundef nonnull align 8 dereferenceable(48) %0, i32 noundef %51, i32 noundef %52)
  br label %54

53:                                               ; preds = %44
  call void @_ZN6BeNode5SetIdEj(ptr noundef nonnull align 8 dereferenceable(64) %2, i32 noundef %46)
  br label %22, !llvm.loop !25

54:                                               ; preds = %48, %50
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #3
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %2) #3
  ret void
}

declare void @_ZN6BeNodeC1EP12BlockManagerj(ptr, ptr, i32) local_unnamed_addr

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 = { nounwind }
attributes #4 = { 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, !9, i64 32}
!6 = !{!"_ZTS6BeTree", !7, i64 0, !9, i64 32, !9, i64 40}
!7 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !8, i64 0, !12, i64 8, !10, i64 16}
!8 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"long", !10, i64 0}
!13 = !{!14, !9, i64 8}
!14 = !{!"_ZTS6BeNode", !15, i64 0, !9, i64 8, !16, i64 16, !9, i64 24, !9, i64 32, !9, i64 40, !9, i64 48, !9, i64 56}
!15 = !{!"_ZTS12Serializable"}
!16 = !{!"int", !10, i64 0}
!17 = !{!14, !16, i64 16}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!16, !16, i64 0}
!21 = !{!14, !9, i64 40}
!22 = !{!23, !16, i64 4}
!23 = !{!"_ZTS8BeBuffer", !16, i64 0, !16, i64 4, !10, i64 8}
!24 = !{!14, !9, i64 24}
!25 = distinct !{!25, !19}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass