; LLVM IR from TheAlgorithms/C-Plus-Plus :: data_structures/tree_234.ll (ZN15data_structures8tree_2347Tree23414InsertPreSplitEl)

; 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::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.2" }
%"struct.std::_Head_base.2" = type { ptr }
%"class.data_structures::tree_234::Tree234" = type { ptr }

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN15data_structures8tree_2344Node8GetChildEa(ptr noundef nonnull align 8 dereferenceable(57), i8 noundef signext) #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN15data_structures8tree_2344Node7GetItemEa(ptr noundef nonnull align 8 dereferenceable(57), i8 noundef signext) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15data_structures8tree_2347Tree23414InsertPreSplitEl(ptr noundef nonnull align 8 dereferenceable(8) %0, i64 noundef %1) #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.std::unique_ptr", align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i64 %1, ptr %4, align 8, !tbaa !9
  %12 = load ptr, ptr %3, align 8
  %13 = getelementptr inbounds %"class.data_structures::tree_234::Tree234", ptr %12, i32 0, i32 0
  %14 = load ptr, ptr %13, align 8, !tbaa !11
  %15 = icmp ne ptr %14, null
  br i1 %15, label %25, label %16

16:                                               ; preds = %2
  %17 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 64) #5
  %18 = load i64, ptr %4, align 8, !tbaa !9
  invoke void @_ZN15data_structures8tree_2344NodeC2El(ptr noundef nonnull align 8 dereferenceable(57) %17, i64 noundef %18)
          to label %19 unwind label %21

19:                                               ; preds = %16
  %20 = getelementptr inbounds %"class.data_structures::tree_234::Tree234", ptr %12, i32 0, i32 0
  store ptr %17, ptr %20, align 8, !tbaa !11
  br label %86

21:                                               ; preds = %16
  %22 = landingpad { ptr, i32 }
          cleanup
  %23 = extractvalue { ptr, i32 } %22, 0
  store ptr %23, ptr %5, align 8
  %24 = extractvalue { ptr, i32 } %22, 1
  store i32 %24, ptr %6, align 4
  call void @_ZdlPvm(ptr noundef %17, i64 noundef 64) #6
  br label %87

25:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  store ptr null, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %26 = getelementptr inbounds %"class.data_structures::tree_234::Tree234", ptr %12, i32 0, i32 0
  %27 = load ptr, ptr %26, align 8, !tbaa !11
  store ptr %27, ptr %8, align 8, !tbaa !5
  br label %28

28:                                               ; preds = %80, %25
  br label %29

29:                                               ; preds = %28
  %30 = load ptr, ptr %8, align 8, !tbaa !5
  %31 = icmp ne ptr %30, null
  br i1 %31, label %48, label %32

32:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %33 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 64) #5
  %34 = load i64, ptr %4, align 8, !tbaa !9
  invoke void @_ZN15data_structures8tree_2344NodeC2El(ptr noundef nonnull align 8 dereferenceable(57) %33, i64 noundef %34)
          to label %35 unwind label %39

35:                                               ; preds = %32
  call void @_ZNSt10unique_ptrIN15data_structures8tree_2344NodeESt14default_deleteIS2_EEC2IS4_vEEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef %33) #7
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = call noundef ptr @_ZNKSt10unique_ptrIN15data_structures8tree_2344NodeESt14default_deleteIS2_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  invoke void @_ZN15data_structures8tree_2347Tree23416MergeNodeNotFullEPNS0_4NodeES3_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef %36, ptr noundef %37)
          to label %38 unwind label %43

38:                                               ; preds = %35
  store i32 1, ptr %10, align 4
  call void @_ZNSt10unique_ptrIN15data_structures8tree_2344NodeESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %85

39:                                               ; preds = %32
  %40 = landingpad { ptr, i32 }
          cleanup
  %41 = extractvalue { ptr, i32 } %40, 0
  store ptr %41, ptr %5, align 8
  %42 = extractvalue { ptr, i32 } %40, 1
  store i32 %42, ptr %6, align 4
  call void @_ZdlPvm(ptr noundef %33, i64 noundef 64) #6
  br label %47

43:                                               ; preds = %35
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %5, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %6, align 4
  call void @_ZNSt10unique_ptrIN15data_structures8tree_2344NodeESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  br label %47

47:                                               ; preds = %43, %39
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %87

48:                                               ; preds = %29
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = load i64, ptr %4, align 8, !tbaa !9
  %51 = call noundef zeroext i1 @_ZN15data_structures8tree_2344Node8ContainsEl(ptr noundef nonnull align 8 dereferenceable(57) %49, i64 noundef %50)
  br i1 %51, label %52, label %53

52:                                               ; preds = %48
  store i32 1, ptr %10, align 4
  br label %85

53:                                               ; preds = %48
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  %55 = call noundef zeroext i1 @_ZN15data_structures8tree_2344Node6IsFullEv(ptr noundef nonnull align 8 dereferenceable(57) %54)
  br i1 %55, label %56, label %80

56:                                               ; preds = %53
  %57 = load ptr, ptr %8, align 8, !tbaa !5
  %58 = call noundef ptr @_ZN15data_structures8tree_2347Tree2349SplitNodeEPNS0_4NodeE(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef %57)
  store ptr %58, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  store ptr null, ptr %11, align 8, !tbaa !5
  %59 = load i64, ptr %4, align 8, !tbaa !9
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  %61 = call noundef i64 @_ZN15data_structures8tree_2344Node7GetItemEa(ptr noundef nonnull align 8 dereferenceable(57) %60, i8 noundef signext 0)
  %62 = icmp slt i64 %59, %61
  br i1 %62, label %63, label %66

63:                                               ; preds = %56
  %64 = load ptr, ptr %8, align 8, !tbaa !5
  %65 = call noundef ptr @_ZN15data_structures8tree_2344Node8GetChildEa(ptr noundef nonnull align 8 dereferenceable(57) %64, i8 noundef signext 0)
  store ptr %65, ptr %11, align 8, !tbaa !5
  br label %69

66:                                               ; preds = %56
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = call noundef ptr @_ZN15data_structures8tree_2344Node8GetChildEa(ptr noundef nonnull align 8 dereferenceable(57) %67, i8 noundef signext 1)
  store ptr %68, ptr %11, align 8, !tbaa !5
  br label %69

69:                                               ; preds = %66, %63
  %70 = load ptr, ptr %7, align 8, !tbaa !5
  %71 = icmp ne ptr %70, null
  br i1 %71, label %75, label %72

72:                                               ; preds = %69
  %73 = load ptr, ptr %8, align 8, !tbaa !5
  %74 = getelementptr inbounds %"class.data_structures::tree_234::Tree234", ptr %12, i32 0, i32 0
  store ptr %73, ptr %74, align 8, !tbaa !11
  br label %78

75:                                               ; preds = %69
  %76 = load ptr, ptr %7, align 8, !tbaa !5
  %77 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN15data_structures8tree_2347Tree23416MergeNodeNotFullEPNS0_4NodeES3_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef %76, ptr noundef %77)
  br label %78

78:                                               ; preds = %75, %72
  %79 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %79, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %80

80:                                               ; preds = %78, %53
  %81 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %81, ptr %7, align 8, !tbaa !5
  %82 = load ptr, ptr %7, align 8, !tbaa !5
  %83 = load i64, ptr %4, align 8, !tbaa !9
  %84 = call noundef ptr @_ZN15data_structures8tree_2344Node20GetNextPossibleChildEl(ptr noundef nonnull align 8 dereferenceable(57) %82, i64 noundef %83)
  store ptr %84, ptr %8, align 8, !tbaa !5
  br label %28, !llvm.loop !13

85:                                               ; preds = %52, %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %86

86:                                               ; preds = %85, %19
  ret void

87:                                               ; preds = %47, %21
  %88 = load ptr, ptr %5, align 8
  %89 = load i32, ptr %6, align 4
  %90 = insertvalue { ptr, i32 } poison, ptr %88, 0
  %91 = insertvalue { ptr, i32 } %90, i32 %89, 1
  resume { ptr, i32 } %91
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN15data_structures8tree_2344NodeC2El(ptr noundef nonnull align 8 dereferenceable(57), i64 noundef) unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt10unique_ptrIN15data_structures8tree_2344NodeESt14default_deleteIS2_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN15data_structures8tree_2344Node8ContainsEl(ptr noundef nonnull align 8 dereferenceable(57), i64 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN15data_structures8tree_2344Node6IsFullEv(ptr noundef nonnull align 8 dereferenceable(57)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN15data_structures8tree_2347Tree2349SplitNodeEPNS0_4NodeE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN15data_structures8tree_2344Node20GetNextPossibleChildEl(ptr noundef nonnull align 8 dereferenceable(57), i64 noundef) #1 align 2

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 = { 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 #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 = { builtin allocsize(0) }
attributes #6 = { builtin nounwind }
attributes #7 = { 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, !6, i64 0}
!12 = !{!"_ZTSN15data_structures8tree_2347Tree234E", !6, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"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"

%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.2" }
%"struct.std::_Head_base.2" = type { ptr }

declare i32 @__gxx_personality_v0(...)

; 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 nounwind uwtable
declare dso_local noundef ptr @_ZN15data_structures8tree_2344Node8GetChildEa(ptr noundef nonnull align 8 dereferenceable(57), i8 noundef signext) local_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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN15data_structures8tree_2344Node7GetItemEa(ptr noundef nonnull align 8 dereferenceable(57), i8 noundef signext) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15data_structures8tree_2347Tree23414InsertPreSplitEl(ptr noundef nonnull align 8 dereferenceable(8) %0, i64 noundef %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::unique_ptr", align 8
  %4 = load ptr, ptr %0, align 8, !tbaa !5
  %.not = icmp eq ptr %4, null
  br i1 %.not, label %5, label %.preheader

5:                                                ; preds = %2
  %6 = tail call noalias noundef nonnull dereferenceable(64) ptr @_Znwm(i64 noundef 64) #4
  tail call void @_ZN15data_structures8tree_2344NodeC2El(ptr noundef nonnull align 8 dereferenceable(57) %6, i64 noundef %1)
  store ptr %6, ptr %0, align 8, !tbaa !5
  br label %.loopexit

7:                                                ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %8 = tail call noalias noundef nonnull dereferenceable(64) ptr @_Znwm(i64 noundef 64) #4
  tail call void @_ZN15data_structures8tree_2344NodeC2El(ptr noundef nonnull align 8 dereferenceable(57) %8, i64 noundef %1)
  call void @_ZNSt10unique_ptrIN15data_structures8tree_2344NodeESt14default_deleteIS2_EEC2IS4_vEEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull %8) #5
  %9 = call noundef ptr @_ZNKSt10unique_ptrIN15data_structures8tree_2344NodeESt14default_deleteIS2_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  invoke void @_ZN15data_structures8tree_2347Tree23416MergeNodeNotFullEPNS0_4NodeES3_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull %.1, ptr noundef %9)
          to label %10 unwind label %11

10:                                               ; preds = %7
  call void @_ZNSt10unique_ptrIN15data_structures8tree_2344NodeESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  br label %.loopexit

11:                                               ; preds = %7
  %12 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt10unique_ptrIN15data_structures8tree_2344NodeESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  resume { ptr, i32 } %12

.preheader:                                       ; preds = %2, %23
  %.02229 = phi ptr [ %24, %23 ], [ %4, %2 ]
  %.02328 = phi ptr [ %.1, %23 ], [ null, %2 ]
  %13 = tail call noundef zeroext i1 @_ZN15data_structures8tree_2344Node8ContainsEl(ptr noundef nonnull align 8 dereferenceable(57) %.02229, i64 noundef %1)
  br i1 %13, label %.loopexit, label %14

14:                                               ; preds = %.preheader
  %15 = tail call noundef zeroext i1 @_ZN15data_structures8tree_2344Node6IsFullEv(ptr noundef nonnull align 8 dereferenceable(57) %.02229)
  br i1 %15, label %16, label %23

16:                                               ; preds = %14
  %17 = tail call noundef ptr @_ZN15data_structures8tree_2347Tree2349SplitNodeEPNS0_4NodeE(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull %.02229)
  %18 = tail call noundef i64 @_ZN15data_structures8tree_2344Node7GetItemEa(ptr noundef nonnull align 8 dereferenceable(57) %17, i8 noundef signext 0)
  %19 = icmp sle i64 %18, %1
  %. = zext i1 %19 to i8
  %20 = tail call noundef ptr @_ZN15data_structures8tree_2344Node8GetChildEa(ptr noundef nonnull align 8 dereferenceable(57) %17, i8 noundef signext %.)
  %.not26 = icmp eq ptr %.02328, null
  br i1 %.not26, label %21, label %22

21:                                               ; preds = %16
  store ptr %17, ptr %0, align 8, !tbaa !5
  br label %23

22:                                               ; preds = %16
  tail call void @_ZN15data_structures8tree_2347Tree23416MergeNodeNotFullEPNS0_4NodeES3_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull %.02328, ptr noundef nonnull %17)
  br label %23

23:                                               ; preds = %21, %22, %14
  %.1 = phi ptr [ %.02229, %14 ], [ %20, %22 ], [ %20, %21 ]
  %24 = tail call noundef ptr @_ZN15data_structures8tree_2344Node20GetNextPossibleChildEl(ptr noundef nonnull align 8 dereferenceable(57) %.1, i64 noundef %1)
  %.not25 = icmp eq ptr %24, null
  br i1 %.not25, label %7, label %.preheader, !llvm.loop !10

.loopexit:                                        ; preds = %.preheader, %10, %5
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN15data_structures8tree_2344NodeC2El(ptr noundef nonnull align 8 dereferenceable(57), i64 noundef) unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt10unique_ptrIN15data_structures8tree_2344NodeESt14default_deleteIS2_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN15data_structures8tree_2344Node8ContainsEl(ptr noundef nonnull align 8 dereferenceable(57), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN15data_structures8tree_2344Node6IsFullEv(ptr noundef nonnull align 8 dereferenceable(57)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN15data_structures8tree_2344Node20GetNextPossibleChildEl(ptr noundef nonnull align 8 dereferenceable(57), i64 noundef) local_unnamed_addr #1 align 2

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 = { 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 = { 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 #4 = { builtin allocsize(0) }
attributes #5 = { 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, !7, i64 0}
!6 = !{!"_ZTSN15data_structures8tree_2347Tree234E", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}


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