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

; 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.data_structures::tree_234::Tree234" = type { ptr }

@.str.2 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [26 x i8], align 1
@__PRETTY_FUNCTION__._ZN15data_structures8tree_2347Tree23414RemovePreMergeEPNS0_4NodeEl = external hidden unnamed_addr constant [73 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: mustprogress nounwind uwtable
declare dso_local noundef signext i8 @_ZN15data_structures8tree_2344Node8GetCountEv(ptr noundef nonnull align 8 dereferenceable(57)) #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 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 ptr @_ZN15data_structures8tree_2344Node20GetNextPossibleChildEl(ptr noundef nonnull align 8 dereferenceable(57), i64 noundef) #1 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15data_structures8tree_2347Tree23410LeftRotateEPNS0_4NodeEa(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i8 noundef signext) #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15data_structures8tree_2347Tree23411RightRotateEPNS0_4NodeEa(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i8 noundef signext) #4 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN15data_structures8tree_2347Tree2345MergeEPNS0_4NodeEa(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i8 noundef signext) #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN15data_structures8tree_2347Tree23414RemovePreMergeEPNS0_4NodeEl(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef %1, i64 noundef %2) #4 align 2 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i8, align 1
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i8, align 1
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i64 %2, ptr %7, align 8, !tbaa !9
  %19 = load ptr, ptr %5, align 8
  br label %20

20:                                               ; preds = %241, %239, %197, %3
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = icmp ne ptr %21, null
  br i1 %22, label %23, label %242

23:                                               ; preds = %20
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = call noundef zeroext i1 @_ZN15data_structures8tree_2344Node6IsLeafEv(ptr noundef nonnull align 8 dereferenceable(57) %24)
  br i1 %25, label %26, label %47

26:                                               ; preds = %23
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = load i64, ptr %7, align 8, !tbaa !9
  %29 = call noundef zeroext i1 @_ZN15data_structures8tree_2344Node8ContainsEl(ptr noundef nonnull align 8 dereferenceable(57) %27, i64 noundef %28)
  br i1 %29, label %30, label %46

30:                                               ; preds = %26
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = call noundef zeroext i1 @_ZN15data_structures8tree_2344Node7Is2NodeEv(ptr noundef nonnull align 8 dereferenceable(57) %31)
  br i1 %32, label %33, label %39

33:                                               ; preds = %30
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = icmp eq ptr %34, null
  br i1 %35, label %37, label %36

36:                                               ; preds = %33
  call void @_ZdlPvm(ptr noundef %34, i64 noundef 64) #5
  br label %37

37:                                               ; preds = %36, %33
  %38 = getelementptr inbounds %"class.data_structures::tree_234::Tree234", ptr %19, i32 0, i32 0
  store ptr null, ptr %38, align 8, !tbaa !11
  br label %45

39:                                               ; preds = %30
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = load i64, ptr %7, align 8, !tbaa !9
  %43 = call noundef signext i8 @_ZN15data_structures8tree_2344Node12GetItemIndexEl(ptr noundef nonnull align 8 dereferenceable(57) %41, i64 noundef %42)
  %44 = call noundef ptr @_ZN15data_structures8tree_2344Node17RemoveItemByIndexEab(ptr noundef nonnull align 8 dereferenceable(57) %40, i8 noundef signext %43, i1 noundef zeroext true)
  br label %45

45:                                               ; preds = %39, %37
  store i1 true, ptr %4, align 1
  br label %243

46:                                               ; preds = %26
  store i1 false, ptr %4, align 1
  br label %243

47:                                               ; preds = %23
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = load i64, ptr %7, align 8, !tbaa !9
  %50 = call noundef zeroext i1 @_ZN15data_structures8tree_2344Node8ContainsEl(ptr noundef nonnull align 8 dereferenceable(57) %48, i64 noundef %49)
  br i1 %50, label %51, label %200

51:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #6
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = load i64, ptr %7, align 8, !tbaa !9
  %54 = call noundef signext i8 @_ZN15data_structures8tree_2344Node12GetItemIndexEl(ptr noundef nonnull align 8 dereferenceable(57) %52, i64 noundef %53)
  store i8 %54, ptr %8, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = load i8, ptr %8, align 1, !tbaa !13
  %57 = call noundef ptr @_ZN15data_structures8tree_2344Node16GetItemLeftChildEa(ptr noundef nonnull align 8 dereferenceable(57) %55, i8 noundef signext %56)
  store ptr %57, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = load i8, ptr %8, align 1, !tbaa !13
  %60 = call noundef ptr @_ZN15data_structures8tree_2344Node17GetItemRightChildEa(ptr noundef nonnull align 8 dereferenceable(57) %58, i8 noundef signext %59)
  store ptr %60, ptr %10, align 8, !tbaa !5
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  %62 = icmp ne ptr %61, null
  br i1 %62, label %63, label %66

63:                                               ; preds = %51
  %64 = load ptr, ptr %10, align 8, !tbaa !5
  %65 = icmp ne ptr %64, null
  br label %66

66:                                               ; preds = %63, %51
  %67 = phi i1 [ false, %51 ], [ %65, %63 ]
  br i1 %67, label %68, label %69

68:                                               ; preds = %66
  br label %71

69:                                               ; preds = %66
  call void @__assert_fail(ptr noundef @.str.12, ptr noundef @.str.2, i32 noundef 961, ptr noundef @__PRETTY_FUNCTION__._ZN15data_structures8tree_2347Tree23414RemovePreMergeEPNS0_4NodeEl) #7
  unreachable

70:                                               ; No predecessors!
  br label %71

71:                                               ; preds = %70, %68
  %72 = load ptr, ptr %9, align 8, !tbaa !5
  %73 = call noundef zeroext i1 @_ZN15data_structures8tree_2344Node7Is2NodeEv(ptr noundef nonnull align 8 dereferenceable(57) %72)
  br i1 %73, label %74, label %164

74:                                               ; preds = %71
  %75 = load ptr, ptr %10, align 8, !tbaa !5
  %76 = call noundef zeroext i1 @_ZN15data_structures8tree_2344Node7Is2NodeEv(ptr noundef nonnull align 8 dereferenceable(57) %75)
  br i1 %76, label %77, label %164

77:                                               ; preds = %74
  %78 = load ptr, ptr %6, align 8, !tbaa !5
  %79 = call noundef zeroext i1 @_ZN15data_structures8tree_2344Node7Is2NodeEv(ptr noundef nonnull align 8 dereferenceable(57) %78)
  br i1 %79, label %80, label %93

80:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = load i8, ptr %8, align 1, !tbaa !13
  %83 = call noundef ptr @_ZN15data_structures8tree_2347Tree2345MergeEPNS0_4NodeEa(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef %81, i8 noundef signext %82)
  store ptr %83, ptr %11, align 8, !tbaa !5
  %84 = getelementptr inbounds %"class.data_structures::tree_234::Tree234", ptr %19, i32 0, i32 0
  %85 = load ptr, ptr %84, align 8, !tbaa !11
  %86 = icmp eq ptr %85, null
  br i1 %86, label %88, label %87

87:                                               ; preds = %80
  call void @_ZdlPvm(ptr noundef %85, i64 noundef 64) #5
  br label %88

88:                                               ; preds = %87, %80
  %89 = load ptr, ptr %11, align 8, !tbaa !5
  %90 = getelementptr inbounds %"class.data_structures::tree_234::Tree234", ptr %19, i32 0, i32 0
  store ptr %89, ptr %90, align 8, !tbaa !11
  %91 = getelementptr inbounds %"class.data_structures::tree_234::Tree234", ptr %19, i32 0, i32 0
  %92 = load ptr, ptr %91, align 8, !tbaa !11
  store ptr %92, ptr %6, align 8, !tbaa !5
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %197

93:                                               ; preds = %77
  br label %94

94:                                               ; preds = %93
  %95 = load i8, ptr %8, align 1, !tbaa !13
  %96 = sext i8 %95 to i32
  %97 = icmp sgt i32 %96, 0
  br i1 %97, label %98, label %117

98:                                               ; preds = %94
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %99 = load ptr, ptr %6, align 8, !tbaa !5
  %100 = load i8, ptr %8, align 1, !tbaa !13
  %101 = sext i8 %100 to i32
  %102 = sub nsw i32 %101, 1
  %103 = trunc i32 %102 to i8
  %104 = call noundef ptr @_ZN15data_structures8tree_2344Node16GetItemLeftChildEa(ptr noundef nonnull align 8 dereferenceable(57) %99, i8 noundef signext %103)
  store ptr %104, ptr %13, align 8, !tbaa !5
  %105 = load ptr, ptr %13, align 8, !tbaa !5
  %106 = call noundef zeroext i1 @_ZN15data_structures8tree_2344Node8Is34NodeEv(ptr noundef nonnull align 8 dereferenceable(57) %105)
  br i1 %106, label %107, label %113

107:                                              ; preds = %98
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  %109 = load i8, ptr %8, align 1, !tbaa !13
  %110 = sext i8 %109 to i32
  %111 = sub nsw i32 %110, 1
  %112 = trunc i32 %111 to i8
  call void @_ZN15data_structures8tree_2347Tree23411RightRotateEPNS0_4NodeEa(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef %108, i8 noundef signext %112)
  store i32 4, ptr %12, align 4
  br label %114

113:                                              ; preds = %98
  store i32 0, ptr %12, align 4
  br label %114

114:                                              ; preds = %113, %107
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  %115 = load i32, ptr %12, align 4
  switch i32 %115, label %245 [
    i32 0, label %116
    i32 4, label %163
  ]

116:                                              ; preds = %114
  br label %117

117:                                              ; preds = %116, %94
  %118 = load i8, ptr %8, align 1, !tbaa !13
  %119 = sext i8 %118 to i32
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  %121 = call noundef signext i8 @_ZN15data_structures8tree_2344Node8GetCountEv(ptr noundef nonnull align 8 dereferenceable(57) %120)
  %122 = sext i8 %121 to i32
  %123 = sub nsw i32 %122, 1
  %124 = icmp slt i32 %119, %123
  br i1 %124, label %125, label %144

125:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %126 = load ptr, ptr %6, align 8, !tbaa !5
  %127 = load i8, ptr %8, align 1, !tbaa !13
  %128 = sext i8 %127 to i32
  %129 = add nsw i32 %128, 1
  %130 = trunc i32 %129 to i8
  %131 = call noundef ptr @_ZN15data_structures8tree_2344Node17GetItemRightChildEa(ptr noundef nonnull align 8 dereferenceable(57) %126, i8 noundef signext %130)
  store ptr %131, ptr %14, align 8, !tbaa !5
  %132 = load ptr, ptr %14, align 8, !tbaa !5
  %133 = call noundef zeroext i1 @_ZN15data_structures8tree_2344Node8Is34NodeEv(ptr noundef nonnull align 8 dereferenceable(57) %132)
  br i1 %133, label %134, label %140

134:                                              ; preds = %125
  %135 = load ptr, ptr %6, align 8, !tbaa !5
  %136 = load i8, ptr %8, align 1, !tbaa !13
  %137 = sext i8 %136 to i32
  %138 = add nsw i32 %137, 1
  %139 = trunc i32 %138 to i8
  call void @_ZN15data_structures8tree_2347Tree23410LeftRotateEPNS0_4NodeEa(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef %135, i8 noundef signext %139)
  store i32 4, ptr %12, align 4
  br label %141

140:                                              ; preds = %125
  store i32 0, ptr %12, align 4
  br label %141

141:                                              ; preds = %140, %134
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  %142 = load i32, ptr %12, align 4
  switch i32 %142, label %245 [
    i32 0, label %143
    i32 4, label %163
  ]

143:                                              ; preds = %141
  br label %144

144:                                              ; preds = %143, %117
  %145 = load i8, ptr %8, align 1, !tbaa !13
  %146 = sext i8 %145 to i32
  %147 = icmp sgt i32 %146, 0
  br i1 %147, label %148, label %155

148:                                              ; preds = %144
  %149 = load ptr, ptr %6, align 8, !tbaa !5
  %150 = load i8, ptr %8, align 1, !tbaa !13
  %151 = sext i8 %150 to i32
  %152 = sub nsw i32 %151, 1
  %153 = trunc i32 %152 to i8
  %154 = call noundef ptr @_ZN15data_structures8tree_2347Tree2345MergeEPNS0_4NodeEa(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef %149, i8 noundef signext %153)
  br label %163

155:                                              ; preds = %144
  %156 = load ptr, ptr %6, align 8, !tbaa !5
  %157 = load i8, ptr %8, align 1, !tbaa !13
  %158 = sext i8 %157 to i32
  %159 = add nsw i32 %158, 1
  %160 = trunc i32 %159 to i8
  %161 = call noundef ptr @_ZN15data_structures8tree_2347Tree2345MergeEPNS0_4NodeEa(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef %156, i8 noundef signext %160)
  br label %162

162:                                              ; preds = %155
  br label %163

163:                                              ; preds = %162, %148, %141, %114
  br label %164

164:                                              ; preds = %163, %74, %71
  %165 = load ptr, ptr %6, align 8, !tbaa !5
  %166 = load i8, ptr %8, align 1, !tbaa !13
  %167 = call noundef ptr @_ZN15data_structures8tree_2344Node16GetItemLeftChildEa(ptr noundef nonnull align 8 dereferenceable(57) %165, i8 noundef signext %166)
  store ptr %167, ptr %9, align 8, !tbaa !5
  %168 = load ptr, ptr %6, align 8, !tbaa !5
  %169 = load i8, ptr %8, align 1, !tbaa !13
  %170 = call noundef ptr @_ZN15data_structures8tree_2344Node17GetItemRightChildEa(ptr noundef nonnull align 8 dereferenceable(57) %168, i8 noundef signext %169)
  store ptr %170, ptr %10, align 8, !tbaa !5
  %171 = load ptr, ptr %9, align 8, !tbaa !5
  %172 = call noundef zeroext i1 @_ZN15data_structures8tree_2344Node8Is34NodeEv(ptr noundef nonnull align 8 dereferenceable(57) %171)
  br i1 %172, label %173, label %183

173:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %174 = load ptr, ptr %9, align 8, !tbaa !5
  %175 = call noundef i64 @_ZN15data_structures8tree_2347Tree23414GetTreeMaxItemEPNS0_4NodeE(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef %174)
  store i64 %175, ptr %15, align 8, !tbaa !9
  %176 = load ptr, ptr %6, align 8, !tbaa !5
  %177 = load ptr, ptr %6, align 8, !tbaa !5
  %178 = load i64, ptr %7, align 8, !tbaa !9
  %179 = call noundef signext i8 @_ZN15data_structures8tree_2344Node12GetItemIndexEl(ptr noundef nonnull align 8 dereferenceable(57) %177, i64 noundef %178)
  %180 = load i64, ptr %15, align 8, !tbaa !9
  call void @_ZN15data_structures8tree_2344Node7SetItemEal(ptr noundef nonnull align 8 dereferenceable(57) %176, i8 noundef signext %179, i64 noundef %180)
  %181 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %181, ptr %6, align 8, !tbaa !5
  %182 = load i64, ptr %15, align 8, !tbaa !9
  store i64 %182, ptr %7, align 8, !tbaa !9
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %197

183:                                              ; preds = %164
  %184 = load ptr, ptr %10, align 8, !tbaa !5
  %185 = call noundef zeroext i1 @_ZN15data_structures8tree_2344Node8Is34NodeEv(ptr noundef nonnull align 8 dereferenceable(57) %184)
  br i1 %185, label %186, label %196

186:                                              ; preds = %183
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %187 = load ptr, ptr %10, align 8, !tbaa !5
  %188 = call noundef i64 @_ZN15data_structures8tree_2347Tree23414GetTreeMinItemEPNS0_4NodeE(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef %187)
  store i64 %188, ptr %16, align 8, !tbaa !9
  %189 = load ptr, ptr %6, align 8, !tbaa !5
  %190 = load ptr, ptr %6, align 8, !tbaa !5
  %191 = load i64, ptr %7, align 8, !tbaa !9
  %192 = call noundef signext i8 @_ZN15data_structures8tree_2344Node12GetItemIndexEl(ptr noundef nonnull align 8 dereferenceable(57) %190, i64 noundef %191)
  %193 = load i64, ptr %16, align 8, !tbaa !9
  call void @_ZN15data_structures8tree_2344Node7SetItemEal(ptr noundef nonnull align 8 dereferenceable(57) %189, i8 noundef signext %192, i64 noundef %193)
  %194 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %194, ptr %6, align 8, !tbaa !5
  %195 = load i64, ptr %16, align 8, !tbaa !9
  store i64 %195, ptr %7, align 8, !tbaa !9
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %197

196:                                              ; preds = %183
  store i32 0, ptr %12, align 4
  br label %197

197:                                              ; preds = %196, %186, %173, %88
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  %198 = load i32, ptr %12, align 4
  switch i32 %198, label %245 [
    i32 0, label %199
    i32 2, label %20
  ]

199:                                              ; preds = %197
  br label %200

200:                                              ; preds = %199, %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %201 = load ptr, ptr %6, align 8, !tbaa !5
  %202 = load i64, ptr %7, align 8, !tbaa !9
  %203 = call noundef ptr @_ZN15data_structures8tree_2344Node20GetNextPossibleChildEl(ptr noundef nonnull align 8 dereferenceable(57) %201, i64 noundef %202)
  store ptr %203, ptr %17, align 8, !tbaa !5
  %204 = load ptr, ptr %17, align 8, !tbaa !5
  %205 = call noundef zeroext i1 @_ZN15data_structures8tree_2344Node8Is34NodeEv(ptr noundef nonnull align 8 dereferenceable(57) %204)
  br i1 %205, label %206, label %208

206:                                              ; preds = %200
  %207 = load ptr, ptr %17, align 8, !tbaa !5
  store ptr %207, ptr %6, align 8, !tbaa !5
  store i32 2, ptr %12, align 4
  br label %239, !llvm.loop !14

208:                                              ; preds = %200
  %209 = load ptr, ptr %6, align 8, !tbaa !5
  %210 = load ptr, ptr %17, align 8, !tbaa !5
  %211 = call noundef zeroext i1 @_ZN15data_structures8tree_2347Tree23414TryRightRotateEPNS0_4NodeES3_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef %209, ptr noundef %210)
  br i1 %211, label %212, label %214

212:                                              ; preds = %208
  %213 = load ptr, ptr %17, align 8, !tbaa !5
  store ptr %213, ptr %6, align 8, !tbaa !5
  store i32 2, ptr %12, align 4
  br label %239, !llvm.loop !14

214:                                              ; preds = %208
  %215 = load ptr, ptr %6, align 8, !tbaa !5
  %216 = load ptr, ptr %17, align 8, !tbaa !5
  %217 = call noundef zeroext i1 @_ZN15data_structures8tree_2347Tree23413TryLeftRotateEPNS0_4NodeES3_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef %215, ptr noundef %216)
  br i1 %217, label %218, label %220

218:                                              ; preds = %214
  %219 = load ptr, ptr %17, align 8, !tbaa !5
  store ptr %219, ptr %6, align 8, !tbaa !5
  store i32 2, ptr %12, align 4
  br label %239, !llvm.loop !14

220:                                              ; preds = %214
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #6
  %221 = load ptr, ptr %6, align 8, !tbaa !5
  %222 = load ptr, ptr %17, align 8, !tbaa !5
  %223 = call noundef signext i8 @_ZN15data_structures8tree_2344Node13GetChildIndexEPS1_(ptr noundef nonnull align 8 dereferenceable(57) %221, ptr noundef %222)
  store i8 %223, ptr %18, align 1, !tbaa !13
  %224 = load i8, ptr %18, align 1, !tbaa !13
  %225 = sext i8 %224 to i32
  %226 = icmp sgt i32 %225, 0
  br i1 %226, label %227, label %234

227:                                              ; preds = %220
  %228 = load ptr, ptr %6, align 8, !tbaa !5
  %229 = load i8, ptr %18, align 1, !tbaa !13
  %230 = sext i8 %229 to i32
  %231 = sub nsw i32 %230, 1
  %232 = trunc i32 %231 to i8
  %233 = call noundef ptr @_ZN15data_structures8tree_2347Tree2345MergeEPNS0_4NodeEa(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef %228, i8 noundef signext %232)
  store ptr %233, ptr %6, align 8, !tbaa !5
  br label %238

234:                                              ; preds = %220
  %235 = load ptr, ptr %6, align 8, !tbaa !5
  %236 = load i8, ptr %18, align 1, !tbaa !13
  %237 = call noundef ptr @_ZN15data_structures8tree_2347Tree2345MergeEPNS0_4NodeEa(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef %235, i8 noundef signext %236)
  store ptr %237, ptr %6, align 8, !tbaa !5
  br label %238

238:                                              ; preds = %234, %227
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #6
  store i32 0, ptr %12, align 4
  br label %239

239:                                              ; preds = %238, %218, %212, %206
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  %240 = load i32, ptr %12, align 4
  switch i32 %240, label %245 [
    i32 0, label %241
    i32 2, label %20
  ]

241:                                              ; preds = %239
  br label %20, !llvm.loop !14

242:                                              ; preds = %20
  store i1 false, ptr %4, align 1
  br label %243

243:                                              ; preds = %242, %46, %45
  %244 = load i1, ptr %4, align 1
  ret i1 %244

245:                                              ; preds = %239, %197, %141, %114
  unreachable
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN15data_structures8tree_2347Tree23414GetTreeMinItemEPNS0_4NodeE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4 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 = { 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 #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { builtin nounwind }
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, !6, i64 0}
!12 = !{!"_ZTSN15data_structures8tree_2347Tree234E", !6, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"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.2 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [26 x i8], align 1
@__PRETTY_FUNCTION__._ZN15data_structures8tree_2347Tree23414RemovePreMergeEPNS0_4NodeEl = external hidden unnamed_addr constant [73 x i8], align 1

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

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

; 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 #0 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 #0 align 2

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN15data_structures8tree_2344Node17RemoveItemByIndexEab(ptr noundef nonnull align 8 dereferenceable(57), i8 noundef signext, i1 noundef zeroext) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN15data_structures8tree_2347Tree23414RemovePreMergeEPNS0_4NodeEl(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef %1, i64 noundef %2) local_unnamed_addr #3 align 2 {
  %.not127129 = icmp eq ptr %1, null
  br i1 %.not127129, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %3, %.outer
  %.084.ph131 = phi ptr [ %.1, %.outer ], [ %1, %3 ]
  %.085.ph130 = phi i64 [ %.186, %.outer ], [ %2, %3 ]
  br label %4

4:                                                ; preds = %.lr.ph, %80
  %.084128 = phi ptr [ %.084.ph131, %.lr.ph ], [ %.4, %80 ]
  %5 = tail call noundef zeroext i1 @_ZN15data_structures8tree_2344Node6IsLeafEv(ptr noundef nonnull align 8 dereferenceable(57) %.084128)
  %6 = tail call noundef zeroext i1 @_ZN15data_structures8tree_2344Node8ContainsEl(ptr noundef nonnull align 8 dereferenceable(57) %.084128, i64 noundef %.085.ph130)
  br i1 %5, label %7, label %14

7:                                                ; preds = %4
  br i1 %6, label %8, label %.loopexit

8:                                                ; preds = %7
  %9 = tail call noundef zeroext i1 @_ZN15data_structures8tree_2344Node7Is2NodeEv(ptr noundef nonnull align 8 dereferenceable(57) %.084128)
  br i1 %9, label %10, label %11

10:                                               ; preds = %8
  tail call void @_ZdlPvm(ptr noundef nonnull %.084128, i64 noundef 64) #4
  store ptr null, ptr %0, align 8, !tbaa !5
  br label %.loopexit

11:                                               ; preds = %8
  %12 = tail call noundef signext i8 @_ZN15data_structures8tree_2344Node12GetItemIndexEl(ptr noundef nonnull align 8 dereferenceable(57) %.084128, i64 noundef %.085.ph130)
  %13 = tail call noundef ptr @_ZN15data_structures8tree_2344Node17RemoveItemByIndexEab(ptr noundef nonnull align 8 dereferenceable(57) %.084128, i8 noundef signext %12, i1 noundef zeroext true)
  br label %.loopexit

14:                                               ; preds = %4
  br i1 %6, label %15, label %.thread108

15:                                               ; preds = %14
  %16 = tail call noundef signext i8 @_ZN15data_structures8tree_2344Node12GetItemIndexEl(ptr noundef nonnull align 8 dereferenceable(57) %.084128, i64 noundef %.085.ph130)
  %17 = tail call noundef ptr @_ZN15data_structures8tree_2344Node16GetItemLeftChildEa(ptr noundef nonnull align 8 dereferenceable(57) %.084128, i8 noundef signext %16)
  %18 = tail call noundef ptr @_ZN15data_structures8tree_2344Node17GetItemRightChildEa(ptr noundef nonnull align 8 dereferenceable(57) %.084128, i8 noundef signext %16)
  %19 = icmp ne ptr %17, null
  %20 = icmp ne ptr %18, null
  %21 = and i1 %19, %20
  br i1 %21, label %23, label %22

22:                                               ; preds = %15
  tail call void @__assert_fail(ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.2, i32 noundef 961, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN15data_structures8tree_2347Tree23414RemovePreMergeEPNS0_4NodeEl) #5
  unreachable

23:                                               ; preds = %15
  %24 = tail call noundef zeroext i1 @_ZN15data_structures8tree_2344Node7Is2NodeEv(ptr noundef nonnull align 8 dereferenceable(57) %17)
  br i1 %24, label %25, label %58

25:                                               ; preds = %23
  %26 = tail call noundef zeroext i1 @_ZN15data_structures8tree_2344Node7Is2NodeEv(ptr noundef nonnull align 8 dereferenceable(57) %18)
  br i1 %26, label %27, label %58

27:                                               ; preds = %25
  %28 = tail call noundef zeroext i1 @_ZN15data_structures8tree_2344Node7Is2NodeEv(ptr noundef nonnull align 8 dereferenceable(57) %.084128)
  br i1 %28, label %29, label %35

29:                                               ; preds = %27
  %30 = tail call noundef ptr @_ZN15data_structures8tree_2347Tree2345MergeEPNS0_4NodeEa(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull %.084128, i8 noundef signext %16)
  %31 = load ptr, ptr %0, align 8, !tbaa !5
  %32 = icmp eq ptr %31, null
  br i1 %32, label %34, label %33

33:                                               ; preds = %29
  tail call void @_ZdlPvm(ptr noundef nonnull %31, i64 noundef 64) #4
  br label %34

34:                                               ; preds = %33, %29
  store ptr %30, ptr %0, align 8, !tbaa !5
  br label %.outer

35:                                               ; preds = %27
  %36 = sext i8 %16 to i32
  %37 = icmp sgt i8 %16, 0
  br i1 %37, label %38, label %.thread

38:                                               ; preds = %35
  %39 = add nsw i8 %16, -1
  %40 = tail call noundef ptr @_ZN15data_structures8tree_2344Node16GetItemLeftChildEa(ptr noundef nonnull align 8 dereferenceable(57) %.084128, i8 noundef signext %39)
  %41 = tail call noundef zeroext i1 @_ZN15data_structures8tree_2344Node8Is34NodeEv(ptr noundef nonnull align 8 dereferenceable(57) %40)
  br i1 %41, label %42, label %.thread

42:                                               ; preds = %38
  tail call void @_ZN15data_structures8tree_2347Tree23411RightRotateEPNS0_4NodeEa(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull %.084128, i8 noundef signext %39)
  br label %58

.thread:                                          ; preds = %38, %35
  %43 = tail call noundef signext i8 @_ZN15data_structures8tree_2344Node8GetCountEv(ptr noundef nonnull align 8 dereferenceable(57) %.084128)
  %44 = sext i8 %43 to i32
  %45 = add nsw i32 %44, -1
  %46 = icmp sgt i32 %45, %36
  br i1 %46, label %47, label %.thread105

47:                                               ; preds = %.thread
  %48 = add i8 %16, 1
  %49 = tail call noundef ptr @_ZN15data_structures8tree_2344Node17GetItemRightChildEa(ptr noundef nonnull align 8 dereferenceable(57) %.084128, i8 noundef signext %48)
  %50 = tail call noundef zeroext i1 @_ZN15data_structures8tree_2344Node8Is34NodeEv(ptr noundef nonnull align 8 dereferenceable(57) %49)
  br i1 %50, label %51, label %.thread105

51:                                               ; preds = %47
  tail call void @_ZN15data_structures8tree_2347Tree23410LeftRotateEPNS0_4NodeEa(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull %.084128, i8 noundef signext %48)
  br label %58

.thread105:                                       ; preds = %47, %.thread
  br i1 %37, label %52, label %55

52:                                               ; preds = %.thread105
  %53 = add nsw i8 %16, -1
  %54 = tail call noundef ptr @_ZN15data_structures8tree_2347Tree2345MergeEPNS0_4NodeEa(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull %.084128, i8 noundef signext %53)
  br label %58

55:                                               ; preds = %.thread105
  %56 = add nsw i8 %16, 1
  %57 = tail call noundef ptr @_ZN15data_structures8tree_2347Tree2345MergeEPNS0_4NodeEa(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull %.084128, i8 noundef signext %56)
  br label %58

58:                                               ; preds = %51, %42, %52, %55, %25, %23
  %59 = tail call noundef ptr @_ZN15data_structures8tree_2344Node16GetItemLeftChildEa(ptr noundef nonnull align 8 dereferenceable(57) %.084128, i8 noundef signext %16)
  %60 = tail call noundef ptr @_ZN15data_structures8tree_2344Node17GetItemRightChildEa(ptr noundef nonnull align 8 dereferenceable(57) %.084128, i8 noundef signext %16)
  %61 = tail call noundef zeroext i1 @_ZN15data_structures8tree_2344Node8Is34NodeEv(ptr noundef nonnull align 8 dereferenceable(57) %59)
  br i1 %61, label %62, label %65

62:                                               ; preds = %58
  %63 = tail call noundef i64 @_ZN15data_structures8tree_2347Tree23414GetTreeMaxItemEPNS0_4NodeE(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull %59)
  %64 = tail call noundef signext i8 @_ZN15data_structures8tree_2344Node12GetItemIndexEl(ptr noundef nonnull align 8 dereferenceable(57) %.084128, i64 noundef %.085.ph130)
  tail call void @_ZN15data_structures8tree_2344Node7SetItemEal(ptr noundef nonnull align 8 dereferenceable(57) %.084128, i8 noundef signext %64, i64 noundef %63)
  br label %.outer

65:                                               ; preds = %58
  %66 = tail call noundef zeroext i1 @_ZN15data_structures8tree_2344Node8Is34NodeEv(ptr noundef nonnull align 8 dereferenceable(57) %60)
  br i1 %66, label %67, label %.thread108

67:                                               ; preds = %65
  %68 = tail call noundef i64 @_ZN15data_structures8tree_2347Tree23414GetTreeMinItemEPNS0_4NodeE(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull %60)
  %69 = tail call noundef signext i8 @_ZN15data_structures8tree_2344Node12GetItemIndexEl(ptr noundef nonnull align 8 dereferenceable(57) %.084128, i64 noundef %.085.ph130)
  tail call void @_ZN15data_structures8tree_2344Node7SetItemEal(ptr noundef nonnull align 8 dereferenceable(57) %.084128, i8 noundef signext %69, i64 noundef %68)
  br label %.outer

.outer:                                           ; preds = %67, %62, %34
  %.186 = phi i64 [ %.085.ph130, %34 ], [ %63, %62 ], [ %68, %67 ]
  %.1 = phi ptr [ %30, %34 ], [ %59, %62 ], [ %60, %67 ]
  %.not127 = icmp eq ptr %.1, null
  br i1 %.not127, label %.loopexit, label %.lr.ph

.thread108:                                       ; preds = %65, %14
  %70 = tail call noundef ptr @_ZN15data_structures8tree_2344Node20GetNextPossibleChildEl(ptr noundef nonnull align 8 dereferenceable(57) %.084128, i64 noundef %.085.ph130)
  %71 = tail call noundef zeroext i1 @_ZN15data_structures8tree_2344Node8Is34NodeEv(ptr noundef nonnull align 8 dereferenceable(57) %70)
  br i1 %71, label %80, label %72, !llvm.loop !10

72:                                               ; preds = %.thread108
  %73 = tail call noundef zeroext i1 @_ZN15data_structures8tree_2347Tree23414TryRightRotateEPNS0_4NodeES3_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull %.084128, ptr noundef nonnull %70)
  br i1 %73, label %80, label %74, !llvm.loop !10

74:                                               ; preds = %72
  %75 = tail call noundef zeroext i1 @_ZN15data_structures8tree_2347Tree23413TryLeftRotateEPNS0_4NodeES3_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull %.084128, ptr noundef nonnull %70)
  br i1 %75, label %80, label %.sink.split, !llvm.loop !10

.sink.split:                                      ; preds = %74
  %76 = tail call noundef signext i8 @_ZN15data_structures8tree_2344Node13GetChildIndexEPS1_(ptr noundef nonnull align 8 dereferenceable(57) %.084128, ptr noundef nonnull %70)
  %77 = icmp sgt i8 %76, 0
  %78 = sext i1 %77 to i8
  %.sink = add nsw i8 %76, %78
  %79 = tail call noundef ptr @_ZN15data_structures8tree_2347Tree2345MergeEPNS0_4NodeEa(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull %.084128, i8 noundef signext %.sink)
  br label %80

80:                                               ; preds = %.sink.split, %74, %72, %.thread108
  %.4 = phi ptr [ %70, %.thread108 ], [ %70, %72 ], [ %70, %74 ], [ %79, %.sink.split ]
  %.not = icmp eq ptr %.4, null
  br i1 %.not, label %.loopexit, label %4

.loopexit:                                        ; preds = %.outer, %80, %3, %7, %10, %11
  %.0 = phi i1 [ true, %11 ], [ true, %10 ], [ false, %7 ], [ false, %3 ], [ false, %80 ], [ false, %.outer ]
  ret i1 %.0
}

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

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

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

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

attributes #0 = { 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 #1 = { 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 #2 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 = { builtin nounwind }
attributes #5 = { 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, !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: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass