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

; 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.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] }
%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 }
%struct.BePivots = type { i32, [15 x i32], [16 x i32] }

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

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

declare noundef i32 @_ZN12BlockManager11CreateBlockEv(ptr noundef nonnull align 8 dereferenceable(64)) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6BeTreeC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef %1) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca i1, align 1
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %class.BeNode, align 8
  %13 = alloca %class.BeNode, align 8
  %14 = alloca %class.BeNode, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %15 = load ptr, ptr %3, align 8
  %16 = getelementptr inbounds %class.BeTree, ptr %15, i32 0, i32 0
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %1)
  %17 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 64) #6
          to label %18 unwind label %84

18:                                               ; preds = %2
  store i1 true, ptr %8, align 1
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %19 unwind label %88

19:                                               ; preds = %18
  invoke void @_ZN12BlockManagerC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(64) %17, ptr noundef %7)
          to label %20 unwind label %92

20:                                               ; preds = %19
  store i1 false, ptr %8, align 1
  %21 = getelementptr inbounds %class.BeTree, ptr %15, i32 0, i32 2
  store ptr %17, ptr %21, align 8, !tbaa !9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %22 = getelementptr inbounds %class.BeTree, ptr %15, i32 0, i32 2
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  %24 = invoke noundef i32 @_ZN12BlockManager11CreateBlockEv(ptr noundef nonnull align 8 dereferenceable(64) %23)
          to label %25 unwind label %100

25:                                               ; preds = %20
  store i32 %24, ptr %9, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %26 = getelementptr inbounds %class.BeTree, ptr %15, i32 0, i32 2
  %27 = load ptr, ptr %26, align 8, !tbaa !9
  %28 = invoke noundef i32 @_ZN12BlockManager11CreateBlockEv(ptr noundef nonnull align 8 dereferenceable(64) %27)
          to label %29 unwind label %104

29:                                               ; preds = %25
  store i32 %28, ptr %10, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %30 = getelementptr inbounds %class.BeTree, ptr %15, i32 0, i32 2
  %31 = load ptr, ptr %30, align 8, !tbaa !9
  %32 = invoke noundef i32 @_ZN12BlockManager11CreateBlockEv(ptr noundef nonnull align 8 dereferenceable(64) %31)
          to label %33 unwind label %108

33:                                               ; preds = %29
  store i32 %32, ptr %11, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 64, ptr %12) #7
  %34 = getelementptr inbounds %class.BeTree, ptr %15, i32 0, i32 2
  %35 = load ptr, ptr %34, align 8, !tbaa !9
  %36 = load i32, ptr %9, align 4, !tbaa !14
  invoke void @_ZN6BeNodeC1EP12BlockManagerj(ptr noundef nonnull align 8 dereferenceable(64) %12, ptr noundef %35, i32 noundef %36)
          to label %37 unwind label %112

37:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 64, ptr %13) #7
  %38 = getelementptr inbounds %class.BeTree, ptr %15, i32 0, i32 2
  %39 = load ptr, ptr %38, align 8, !tbaa !9
  %40 = load i32, ptr %10, align 4, !tbaa !14
  invoke void @_ZN6BeNodeC1EP12BlockManagerj(ptr noundef nonnull align 8 dereferenceable(64) %13, ptr noundef %39, i32 noundef %40)
          to label %41 unwind label %116

41:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 64, ptr %14) #7
  %42 = getelementptr inbounds %class.BeTree, ptr %15, i32 0, i32 2
  %43 = load ptr, ptr %42, align 8, !tbaa !9
  %44 = load i32, ptr %11, align 4, !tbaa !14
  invoke void @_ZN6BeNodeC1EP12BlockManagerj(ptr noundef nonnull align 8 dereferenceable(64) %14, ptr noundef %43, i32 noundef %44)
          to label %45 unwind label %120

45:                                               ; preds = %41
  %46 = getelementptr inbounds %class.BeNode, ptr %12, i32 0, i32 4
  %47 = load ptr, ptr %46, align 8, !tbaa !16
  store i32 0, ptr %47, align 4, !tbaa !14
  %48 = getelementptr inbounds %class.BeNode, ptr %12, i32 0, i32 3
  %49 = load ptr, ptr %48, align 8, !tbaa !19
  store i32 0, ptr %49, align 4, !tbaa !14
  %50 = getelementptr inbounds %class.BeNode, ptr %12, i32 0, i32 6
  %51 = load ptr, ptr %50, align 8, !tbaa !20
  %52 = getelementptr inbounds %struct.BePivots, ptr %51, i32 0, i32 0
  store i32 1, ptr %52, align 4, !tbaa !21
  %53 = getelementptr inbounds %class.BeNode, ptr %12, i32 0, i32 6
  %54 = load ptr, ptr %53, align 8, !tbaa !20
  %55 = getelementptr inbounds %struct.BePivots, ptr %54, i32 0, i32 1
  %56 = getelementptr inbounds [15 x i32], ptr %55, i64 0, i64 0
  store i32 500000000, ptr %56, align 4, !tbaa !14
  %57 = load i32, ptr %10, align 4, !tbaa !14
  %58 = getelementptr inbounds %class.BeNode, ptr %12, i32 0, i32 6
  %59 = load ptr, ptr %58, align 8, !tbaa !20
  %60 = getelementptr inbounds %struct.BePivots, ptr %59, i32 0, i32 2
  %61 = getelementptr inbounds [16 x i32], ptr %60, i64 0, i64 0
  store i32 %57, ptr %61, align 4, !tbaa !14
  %62 = load i32, ptr %11, align 4, !tbaa !14
  %63 = getelementptr inbounds %class.BeNode, ptr %12, i32 0, i32 6
  %64 = load ptr, ptr %63, align 8, !tbaa !20
  %65 = getelementptr inbounds %struct.BePivots, ptr %64, i32 0, i32 2
  %66 = getelementptr inbounds [16 x i32], ptr %65, i64 0, i64 1
  store i32 %62, ptr %66, align 4, !tbaa !14
  %67 = getelementptr inbounds %class.BeNode, ptr %13, i32 0, i32 4
  %68 = load ptr, ptr %67, align 8, !tbaa !16
  store i32 1, ptr %68, align 4, !tbaa !14
  %69 = getelementptr inbounds %class.BeNode, ptr %14, i32 0, i32 4
  %70 = load ptr, ptr %69, align 8, !tbaa !16
  store i32 1, ptr %70, align 4, !tbaa !14
  %71 = load i32, ptr %9, align 4, !tbaa !14
  %72 = getelementptr inbounds %class.BeNode, ptr %13, i32 0, i32 3
  %73 = load ptr, ptr %72, align 8, !tbaa !19
  store i32 %71, ptr %73, align 4, !tbaa !14
  %74 = load i32, ptr %9, align 4, !tbaa !14
  %75 = getelementptr inbounds %class.BeNode, ptr %14, i32 0, i32 3
  %76 = load ptr, ptr %75, align 8, !tbaa !19
  store i32 %74, ptr %76, align 4, !tbaa !14
  %77 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 64) #6
          to label %78 unwind label %120

78:                                               ; preds = %45
  %79 = getelementptr inbounds %class.BeTree, ptr %15, i32 0, i32 2
  %80 = load ptr, ptr %79, align 8, !tbaa !9
  %81 = load i32, ptr %9, align 4, !tbaa !14
  invoke void @_ZN6BeNodeC1EP12BlockManagerj(ptr noundef nonnull align 8 dereferenceable(64) %77, ptr noundef %80, i32 noundef %81)
          to label %82 unwind label %124

82:                                               ; preds = %78
  %83 = getelementptr inbounds %class.BeTree, ptr %15, i32 0, i32 1
  store ptr %77, ptr %83, align 8, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 64, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  ret void

84:                                               ; preds = %2
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %5, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %6, align 4
  br label %134

88:                                               ; preds = %18
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %5, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %6, align 4
  br label %96

92:                                               ; preds = %19
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %5, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %6, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  br label %96

96:                                               ; preds = %92, %88
  %97 = load i1, ptr %8, align 1
  br i1 %97, label %98, label %99

98:                                               ; preds = %96
  call void @_ZdlPvm(ptr noundef %17, i64 noundef 64) #8
  br label %99

99:                                               ; preds = %98, %96
  br label %134

100:                                              ; preds = %20
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %5, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %6, align 4
  br label %133

104:                                              ; preds = %25
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %5, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %6, align 4
  br label %132

108:                                              ; preds = %29
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %5, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %6, align 4
  br label %131

112:                                              ; preds = %33
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %5, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %6, align 4
  br label %130

116:                                              ; preds = %37
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %5, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %6, align 4
  br label %129

120:                                              ; preds = %45, %41
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %5, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %6, align 4
  br label %128

124:                                              ; preds = %78
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %5, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %6, align 4
  call void @_ZdlPvm(ptr noundef %77, i64 noundef 64) #8
  br label %128

128:                                              ; preds = %124, %120
  call void @llvm.lifetime.end.p0(i64 64, ptr %14) #7
  br label %129

129:                                              ; preds = %128, %116
  call void @llvm.lifetime.end.p0(i64 64, ptr %13) #7
  br label %130

130:                                              ; preds = %129, %112
  call void @llvm.lifetime.end.p0(i64 64, ptr %12) #7
  br label %131

131:                                              ; preds = %130, %108
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %132

132:                                              ; preds = %131, %104
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %133

133:                                              ; preds = %132, %100
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %134

134:                                              ; preds = %133, %99, %84
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #7
  br label %135

135:                                              ; preds = %134
  %136 = load ptr, ptr %5, align 8
  %137 = load i32, ptr %6, align 4
  %138 = insertvalue { ptr, i32 } poison, ptr %136, 0
  %139 = insertvalue { ptr, i32 } %138, i32 %137, 1
  resume { ptr, i32 } %139
}

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #4

declare void @_ZN12BlockManagerC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef) unnamed_addr #2

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #5

declare void @_ZN6BeNodeC1EP12BlockManagerj(ptr, ptr, i32)

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "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 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 = { nobuiltin allocsize(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 = { nobuiltin 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 #6 = { builtin allocsize(0) }
attributes #7 = { nounwind }
attributes #8 = { builtin 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 40}
!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, !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!17, !6, i64 32}
!17 = !{!"_ZTS6BeNode", !18, i64 0, !6, i64 8, !15, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!18 = !{!"_ZTS12Serializable"}
!19 = !{!17, !6, i64 24}
!20 = !{!17, !6, i64 48}
!21 = !{!22, !15, i64 0}
!22 = !{!"_ZTS8BePivots", !15, i64 0, !7, i64 4, !7, i64 64}
!23 = !{!10, !6, i64 32}


; 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.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] }
%class.BeNode = type { %class.Serializable, ptr, i32, ptr, ptr, ptr, ptr, ptr }
%class.Serializable = type { ptr }

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

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

declare noundef i32 @_ZN12BlockManager11CreateBlockEv(ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6BeTreeC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull %1) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %class.BeNode, align 8
  %5 = alloca %class.BeNode, align 8
  %6 = alloca %class.BeNode, align 8
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %1)
  %7 = invoke noalias noundef nonnull dereferenceable(64) ptr @_Znwm(i64 noundef 64) #6
          to label %8 unwind label %49

8:                                                ; preds = %2
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %9 unwind label %51

9:                                                ; preds = %8
  invoke void @_ZN12BlockManagerC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(64) %7, ptr noundef nonnull %3)
          to label %10 unwind label %53

10:                                               ; preds = %9
  %11 = getelementptr inbounds i8, ptr %0, i64 40
  store ptr %7, ptr %11, align 8, !tbaa !5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  %12 = load ptr, ptr %11, align 8, !tbaa !5
  %13 = invoke noundef i32 @_ZN12BlockManager11CreateBlockEv(ptr noundef nonnull align 8 dereferenceable(64) %12)
          to label %14 unwind label %56

14:                                               ; preds = %10
  %15 = load ptr, ptr %11, align 8, !tbaa !5
  %16 = invoke noundef i32 @_ZN12BlockManager11CreateBlockEv(ptr noundef nonnull align 8 dereferenceable(64) %15)
          to label %17 unwind label %58

17:                                               ; preds = %14
  %18 = load ptr, ptr %11, align 8, !tbaa !5
  %19 = invoke noundef i32 @_ZN12BlockManager11CreateBlockEv(ptr noundef nonnull align 8 dereferenceable(64) %18)
          to label %20 unwind label %60

20:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #7
  %21 = load ptr, ptr %11, align 8, !tbaa !5
  invoke void @_ZN6BeNodeC1EP12BlockManagerj(ptr noundef nonnull align 8 dereferenceable(64) %4, ptr noundef %21, i32 noundef %13)
          to label %22 unwind label %62

22:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #7
  %23 = load ptr, ptr %11, align 8, !tbaa !5
  invoke void @_ZN6BeNodeC1EP12BlockManagerj(ptr noundef nonnull align 8 dereferenceable(64) %5, ptr noundef %23, i32 noundef %16)
          to label %24 unwind label %64

24:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #7
  %25 = load ptr, ptr %11, align 8, !tbaa !5
  invoke void @_ZN6BeNodeC1EP12BlockManagerj(ptr noundef nonnull align 8 dereferenceable(64) %6, ptr noundef %25, i32 noundef %19)
          to label %26 unwind label %66

26:                                               ; preds = %24
  %27 = getelementptr inbounds i8, ptr %4, i64 32
  %28 = load ptr, ptr %27, align 8, !tbaa !13
  store i32 0, ptr %28, align 4, !tbaa !17
  %29 = getelementptr inbounds i8, ptr %4, i64 24
  %30 = load ptr, ptr %29, align 8, !tbaa !18
  store i32 0, ptr %30, align 4, !tbaa !17
  %31 = getelementptr inbounds i8, ptr %4, i64 48
  %32 = load ptr, ptr %31, align 8, !tbaa !19
  store i32 1, ptr %32, align 4, !tbaa !20
  %33 = getelementptr inbounds i8, ptr %32, i64 4
  store i32 500000000, ptr %33, align 4, !tbaa !17
  %34 = getelementptr inbounds i8, ptr %32, i64 64
  store i32 %16, ptr %34, align 4, !tbaa !17
  %35 = getelementptr inbounds i8, ptr %32, i64 68
  store i32 %19, ptr %35, align 4, !tbaa !17
  %36 = getelementptr inbounds i8, ptr %5, i64 32
  %37 = load ptr, ptr %36, align 8, !tbaa !13
  store i32 1, ptr %37, align 4, !tbaa !17
  %38 = getelementptr inbounds i8, ptr %6, i64 32
  %39 = load ptr, ptr %38, align 8, !tbaa !13
  store i32 1, ptr %39, align 4, !tbaa !17
  %40 = getelementptr inbounds i8, ptr %5, i64 24
  %41 = load ptr, ptr %40, align 8, !tbaa !18
  store i32 %13, ptr %41, align 4, !tbaa !17
  %42 = getelementptr inbounds i8, ptr %6, i64 24
  %43 = load ptr, ptr %42, align 8, !tbaa !18
  store i32 %13, ptr %43, align 4, !tbaa !17
  %44 = invoke noalias noundef nonnull dereferenceable(64) ptr @_Znwm(i64 noundef 64) #6
          to label %45 unwind label %66

45:                                               ; preds = %26
  %46 = load ptr, ptr %11, align 8, !tbaa !5
  invoke void @_ZN6BeNodeC1EP12BlockManagerj(ptr noundef nonnull align 8 dereferenceable(64) %44, ptr noundef %46, i32 noundef %13)
          to label %47 unwind label %68

47:                                               ; preds = %45
  %48 = getelementptr inbounds i8, ptr %0, i64 32
  store ptr %44, ptr %48, align 8, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #7
  ret void

49:                                               ; preds = %2
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %73

51:                                               ; preds = %8
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %55

53:                                               ; preds = %9
  %54 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  br label %55

55:                                               ; preds = %51, %53
  %.pn = phi { ptr, i32 } [ %54, %53 ], [ %52, %51 ]
  call void @_ZdlPvm(ptr noundef nonnull %7, i64 noundef 64) #8
  br label %73

56:                                               ; preds = %10
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %73

58:                                               ; preds = %14
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %73

60:                                               ; preds = %17
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %73

62:                                               ; preds = %20
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %72

64:                                               ; preds = %22
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %71

66:                                               ; preds = %26, %24
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %70

68:                                               ; preds = %45
  %69 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %44, i64 noundef 64) #8
  br label %70

70:                                               ; preds = %68, %66
  %.pn20 = phi { ptr, i32 } [ %69, %68 ], [ %67, %66 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #7
  br label %71

71:                                               ; preds = %70, %64
  %.pn20.pn = phi { ptr, i32 } [ %.pn20, %70 ], [ %65, %64 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #7
  br label %72

72:                                               ; preds = %71, %62
  %.pn20.pn.pn = phi { ptr, i32 } [ %.pn20.pn, %71 ], [ %63, %62 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #7
  br label %73

73:                                               ; preds = %56, %60, %72, %58, %55, %49
  %.pn20.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn, %55 ], [ %50, %49 ], [ %57, %56 ], [ %59, %58 ], [ %.pn20.pn.pn, %72 ], [ %61, %60 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #7
  resume { ptr, i32 } %.pn20.pn.pn.pn.pn.pn.pn
}

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #4

declare void @_ZN12BlockManagerC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef) unnamed_addr #2

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #5

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "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 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 = { nobuiltin allocsize(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 = { nobuiltin 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 #6 = { builtin allocsize(0) }
attributes #7 = { nounwind }
attributes #8 = { builtin 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 40}
!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 32}
!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 = !{!16, !16, i64 0}
!18 = !{!14, !9, i64 24}
!19 = !{!14, !9, i64 48}
!20 = !{!21, !16, i64 0}
!21 = !{!"_ZTS8BePivots", !16, i64 0, !10, i64 4, !10, i64 64}
!22 = !{!6, !9, i64 32}


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