; LLVM IR from xtaci/algorithms :: src (dos_tree_demo)

; 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.alg::DosTree" = type { %"class.alg::RBTreeAbstract" }
%"class.alg::RBTreeAbstract" = type { ptr, ptr }
%"struct.alg::DosTree::dostree_node_t" = type { %"struct.alg::RBTreeAbstract::rbtree_node_t", i32, i32 }
%"struct.alg::RBTreeAbstract::rbtree_node_t" = type { ptr, ptr, ptr, i32 }

@.str = external hidden unnamed_addr constant [17 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [32 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.alg::DosTree", align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %2) #6
  call void @_ZN3alg7DosTreeC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2)
  invoke void @_ZN3alg7DosTree5printEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
          to label %11 unwind label %29

11:                                               ; preds = %0
  %12 = call i64 @time(ptr noundef null) #6
  %13 = trunc i64 %12 to i32
  call void @srand(i32 noundef %13) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 50, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %14

14:                                               ; preds = %26, %11
  %15 = load i32, ptr %6, align 4, !tbaa !5
  %16 = load i32, ptr %5, align 4, !tbaa !5
  %17 = icmp slt i32 %15, %16
  br i1 %17, label %18, label %37

18:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %19 = call i32 @rand() #6
  %20 = srem i32 %19, 1000
  store i32 %20, ptr %7, align 4, !tbaa !5
  %21 = load i32, ptr %7, align 4, !tbaa !5
  %22 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %21)
          to label %23 unwind label %33

23:                                               ; preds = %18
  %24 = load i32, ptr %7, align 4, !tbaa !5
  invoke void @_ZN3alg7DosTree6insertEi(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef %24)
          to label %25 unwind label %33

25:                                               ; preds = %23
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %26

26:                                               ; preds = %25
  %27 = load i32, ptr %6, align 4, !tbaa !5
  %28 = add nsw i32 %27, 1
  store i32 %28, ptr %6, align 4, !tbaa !5
  br label %14, !llvm.loop !9

29:                                               ; preds = %0
  %30 = landingpad { ptr, i32 }
          cleanup
  %31 = extractvalue { ptr, i32 } %30, 0
  store ptr %31, ptr %3, align 8
  %32 = extractvalue { ptr, i32 } %30, 1
  store i32 %32, ptr %4, align 4
  br label %128

33:                                               ; preds = %23, %18
  %34 = landingpad { ptr, i32 }
          cleanup
  %35 = extractvalue { ptr, i32 } %34, 0
  store ptr %35, ptr %3, align 8
  %36 = extractvalue { ptr, i32 } %34, 1
  store i32 %36, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %127

37:                                               ; preds = %14
  invoke void @_ZN3alg7DosTree5printEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
          to label %38 unwind label %58

38:                                               ; preds = %37
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %39

39:                                               ; preds = %67, %38
  %40 = load i32, ptr %6, align 4, !tbaa !5
  %41 = load i32, ptr %5, align 4, !tbaa !5
  %42 = icmp slt i32 %40, %41
  br i1 %42, label %43, label %70

43:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %44 = load i32, ptr %6, align 4, !tbaa !5
  %45 = add nsw i32 %44, 1
  %46 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef %45)
          to label %47 unwind label %62

47:                                               ; preds = %43
  store ptr %46, ptr %8, align 8, !tbaa !11
  %48 = load ptr, ptr %8, align 8, !tbaa !11
  %49 = icmp ne ptr %48, null
  br i1 %49, label %50, label %66

50:                                               ; preds = %47
  %51 = load i32, ptr %6, align 4, !tbaa !5
  %52 = add nsw i32 %51, 1
  %53 = load ptr, ptr %8, align 8, !tbaa !11
  %54 = getelementptr inbounds %"struct.alg::DosTree::dostree_node_t", ptr %53, i32 0, i32 1
  %55 = load i32, ptr %54, align 8, !tbaa !13
  %56 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %52, i32 noundef %55)
          to label %57 unwind label %62

57:                                               ; preds = %50
  br label %66

58:                                               ; preds = %124, %93, %71, %70, %37
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %3, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %4, align 4
  br label %127

62:                                               ; preds = %50, %43
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %3, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %127

66:                                               ; preds = %57, %47
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %67

67:                                               ; preds = %66
  %68 = load i32, ptr %6, align 4, !tbaa !5
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %6, align 4, !tbaa !5
  br label %39, !llvm.loop !17

70:                                               ; preds = %39
  invoke void @_ZN3alg7DosTree5printEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
          to label %71 unwind label %58

71:                                               ; preds = %70
  %72 = load i32, ptr %5, align 4, !tbaa !5
  %73 = sdiv i32 %72, 2
  %74 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %73)
          to label %75 unwind label %58

75:                                               ; preds = %71
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %76

76:                                               ; preds = %86, %75
  %77 = load i32, ptr %6, align 4, !tbaa !5
  %78 = load i32, ptr %5, align 4, !tbaa !5
  %79 = sdiv i32 %78, 2
  %80 = icmp slt i32 %77, %79
  br i1 %80, label %81, label %93

81:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %82 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef 1)
          to label %83 unwind label %89

83:                                               ; preds = %81
  store ptr %82, ptr %9, align 8, !tbaa !11
  %84 = load ptr, ptr %9, align 8, !tbaa !11
  invoke void @_ZN3alg7DosTree10delete_keyEPNS0_14dostree_node_tE(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef %84)
          to label %85 unwind label %89

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

86:                                               ; preds = %85
  %87 = load i32, ptr %6, align 4, !tbaa !5
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr %6, align 4, !tbaa !5
  br label %76, !llvm.loop !18

89:                                               ; preds = %83, %81
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %3, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %127

93:                                               ; preds = %76
  invoke void @_ZN3alg7DosTree5printEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
          to label %94 unwind label %58

94:                                               ; preds = %93
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %95

95:                                               ; preds = %121, %94
  %96 = load i32, ptr %6, align 4, !tbaa !5
  %97 = load i32, ptr %5, align 4, !tbaa !5
  %98 = sdiv i32 %97, 2
  %99 = add nsw i32 %98, 1
  %100 = icmp slt i32 %96, %99
  br i1 %100, label %101, label %124

101:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %102 = load i32, ptr %6, align 4, !tbaa !5
  %103 = add nsw i32 %102, 1
  %104 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef %103)
          to label %105 unwind label %116

105:                                              ; preds = %101
  store ptr %104, ptr %10, align 8, !tbaa !11
  %106 = load ptr, ptr %10, align 8, !tbaa !11
  %107 = icmp ne ptr %106, null
  br i1 %107, label %108, label %120

108:                                              ; preds = %105
  %109 = load i32, ptr %6, align 4, !tbaa !5
  %110 = add nsw i32 %109, 1
  %111 = load ptr, ptr %10, align 8, !tbaa !11
  %112 = getelementptr inbounds %"struct.alg::DosTree::dostree_node_t", ptr %111, i32 0, i32 1
  %113 = load i32, ptr %112, align 8, !tbaa !13
  %114 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %110, i32 noundef %113)
          to label %115 unwind label %116

115:                                              ; preds = %108
  br label %120

116:                                              ; preds = %108, %101
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %3, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %127

120:                                              ; preds = %115, %105
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %121

121:                                              ; preds = %120
  %122 = load i32, ptr %6, align 4, !tbaa !5
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %6, align 4, !tbaa !5
  br label %95, !llvm.loop !19

124:                                              ; preds = %95
  invoke void @_ZN3alg7DosTree5printEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
          to label %125 unwind label %58

125:                                              ; preds = %124
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @_ZN3alg7DosTreeD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %2) #6
  %126 = load i32, ptr %1, align 4
  ret i32 %126

127:                                              ; preds = %116, %89, %62, %58, %33
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %128

128:                                              ; preds = %127, %29
  call void @_ZN3alg7DosTreeD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %2) #6
  br label %129

129:                                              ; preds = %128
  %130 = load ptr, ptr %3, align 8
  %131 = load i32, ptr %4, align 4
  %132 = insertvalue { ptr, i32 } poison, ptr %130, 0
  %133 = insertvalue { ptr, i32 } %132, i32 %131, 1
  resume { ptr, i32 } %133
}

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @srand(i32 noundef) #3

; Function Attrs: nounwind
declare i64 @time(ptr noundef) #3

; Function Attrs: nounwind
declare i32 @rand() #3

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

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

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

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

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

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

attributes #0 = { mustprogress norecurse 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !6, i64 32}
!14 = !{!"_ZTSN3alg7DosTree14dostree_node_tE", !15, i64 0, !6, i64 32, !6, i64 36}
!15 = !{!"_ZTSN3alg14RBTreeAbstract13rbtree_node_tE", !12, i64 0, !12, i64 8, !12, i64 16, !16, i64 24}
!16 = !{!"_ZTSN3alg14RBTreeAbstract17rbtree_node_colorE", !7, i64 0}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}


; 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.alg::DosTree" = type { %"class.alg::RBTreeAbstract" }
%"class.alg::RBTreeAbstract" = type { ptr, ptr }

@.str = external hidden unnamed_addr constant [17 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [32 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.alg::DosTree", align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #6
  call void @_ZN3alg7DosTreeC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %1)
  invoke void @_ZN3alg7DosTree5printEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %2 unwind label %11

2:                                                ; preds = %0
  %3 = call i64 @time(ptr noundef null) #6
  %4 = trunc i64 %3 to i32
  call void @srand(i32 noundef %4) #6
  br label %5

5:                                                ; preds = %2, %9
  %.02836 = phi i32 [ 0, %2 ], [ %10, %9 ]
  %6 = call i32 @rand() #6
  %7 = srem i32 %6, 1000
  %8 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %7)
  invoke void @_ZN3alg7DosTree6insertEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef %7)
          to label %9 unwind label %13

9:                                                ; preds = %5
  %10 = add nuw nsw i32 %.02836, 1
  %exitcond.not = icmp eq i32 %10, 50
  br i1 %exitcond.not, label %15, label %5, !llvm.loop !5

11:                                               ; preds = %0
  %12 = landingpad { ptr, i32 }
          cleanup
  br label %268

13:                                               ; preds = %5
  %14 = landingpad { ptr, i32 }
          cleanup
  br label %268

15:                                               ; preds = %9
  invoke void @_ZN3alg7DosTree5printEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %.preheader35 unwind label %23

.preheader35:                                     ; preds = %15, %27
  %.12937 = phi i32 [ %16, %27 ], [ 0, %15 ]
  %16 = add nuw nsw i32 %.12937, 1
  %17 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef %16)
          to label %18 unwind label %25

18:                                               ; preds = %.preheader35
  %.not32 = icmp eq ptr %17, null
  br i1 %.not32, label %27, label %19

19:                                               ; preds = %18
  %20 = getelementptr inbounds i8, ptr %17, i64 32
  %21 = load i32, ptr %20, align 8, !tbaa !7
  %22 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %16, i32 noundef %21)
  br label %27

23:                                               ; preds = %266, %105, %28, %15
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %268

25:                                               ; preds = %.preheader35
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %268

27:                                               ; preds = %19, %18
  %exitcond40.not = icmp eq i32 %16, 50
  br i1 %exitcond40.not, label %28, label %.preheader35, !llvm.loop !15

28:                                               ; preds = %27
  invoke void @_ZN3alg7DosTree5printEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %29 unwind label %23

29:                                               ; preds = %28
  %30 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef 25)
  %31 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 1)
          to label %32 unwind label %106

32:                                               ; preds = %29
  invoke void @_ZN3alg7DosTree10delete_keyEPNS0_14dostree_node_tE(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %31)
          to label %33 unwind label %106

33:                                               ; preds = %32
  %34 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 1)
          to label %35 unwind label %106

35:                                               ; preds = %33
  invoke void @_ZN3alg7DosTree10delete_keyEPNS0_14dostree_node_tE(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %34)
          to label %36 unwind label %106

36:                                               ; preds = %35
  %37 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 1)
          to label %38 unwind label %106

38:                                               ; preds = %36
  invoke void @_ZN3alg7DosTree10delete_keyEPNS0_14dostree_node_tE(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %37)
          to label %39 unwind label %106

39:                                               ; preds = %38
  %40 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 1)
          to label %41 unwind label %106

41:                                               ; preds = %39
  invoke void @_ZN3alg7DosTree10delete_keyEPNS0_14dostree_node_tE(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %40)
          to label %42 unwind label %106

42:                                               ; preds = %41
  %43 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 1)
          to label %44 unwind label %106

44:                                               ; preds = %42
  invoke void @_ZN3alg7DosTree10delete_keyEPNS0_14dostree_node_tE(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %43)
          to label %45 unwind label %106

45:                                               ; preds = %44
  %46 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 1)
          to label %47 unwind label %106

47:                                               ; preds = %45
  invoke void @_ZN3alg7DosTree10delete_keyEPNS0_14dostree_node_tE(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %46)
          to label %48 unwind label %106

48:                                               ; preds = %47
  %49 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 1)
          to label %50 unwind label %106

50:                                               ; preds = %48
  invoke void @_ZN3alg7DosTree10delete_keyEPNS0_14dostree_node_tE(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %49)
          to label %51 unwind label %106

51:                                               ; preds = %50
  %52 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 1)
          to label %53 unwind label %106

53:                                               ; preds = %51
  invoke void @_ZN3alg7DosTree10delete_keyEPNS0_14dostree_node_tE(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %52)
          to label %54 unwind label %106

54:                                               ; preds = %53
  %55 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 1)
          to label %56 unwind label %106

56:                                               ; preds = %54
  invoke void @_ZN3alg7DosTree10delete_keyEPNS0_14dostree_node_tE(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %55)
          to label %57 unwind label %106

57:                                               ; preds = %56
  %58 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 1)
          to label %59 unwind label %106

59:                                               ; preds = %57
  invoke void @_ZN3alg7DosTree10delete_keyEPNS0_14dostree_node_tE(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %58)
          to label %60 unwind label %106

60:                                               ; preds = %59
  %61 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 1)
          to label %62 unwind label %106

62:                                               ; preds = %60
  invoke void @_ZN3alg7DosTree10delete_keyEPNS0_14dostree_node_tE(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %61)
          to label %63 unwind label %106

63:                                               ; preds = %62
  %64 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 1)
          to label %65 unwind label %106

65:                                               ; preds = %63
  invoke void @_ZN3alg7DosTree10delete_keyEPNS0_14dostree_node_tE(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %64)
          to label %66 unwind label %106

66:                                               ; preds = %65
  %67 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 1)
          to label %68 unwind label %106

68:                                               ; preds = %66
  invoke void @_ZN3alg7DosTree10delete_keyEPNS0_14dostree_node_tE(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %67)
          to label %69 unwind label %106

69:                                               ; preds = %68
  %70 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 1)
          to label %71 unwind label %106

71:                                               ; preds = %69
  invoke void @_ZN3alg7DosTree10delete_keyEPNS0_14dostree_node_tE(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %70)
          to label %72 unwind label %106

72:                                               ; preds = %71
  %73 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 1)
          to label %74 unwind label %106

74:                                               ; preds = %72
  invoke void @_ZN3alg7DosTree10delete_keyEPNS0_14dostree_node_tE(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %73)
          to label %75 unwind label %106

75:                                               ; preds = %74
  %76 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 1)
          to label %77 unwind label %106

77:                                               ; preds = %75
  invoke void @_ZN3alg7DosTree10delete_keyEPNS0_14dostree_node_tE(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %76)
          to label %78 unwind label %106

78:                                               ; preds = %77
  %79 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 1)
          to label %80 unwind label %106

80:                                               ; preds = %78
  invoke void @_ZN3alg7DosTree10delete_keyEPNS0_14dostree_node_tE(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %79)
          to label %81 unwind label %106

81:                                               ; preds = %80
  %82 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 1)
          to label %83 unwind label %106

83:                                               ; preds = %81
  invoke void @_ZN3alg7DosTree10delete_keyEPNS0_14dostree_node_tE(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %82)
          to label %84 unwind label %106

84:                                               ; preds = %83
  %85 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 1)
          to label %86 unwind label %106

86:                                               ; preds = %84
  invoke void @_ZN3alg7DosTree10delete_keyEPNS0_14dostree_node_tE(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %85)
          to label %87 unwind label %106

87:                                               ; preds = %86
  %88 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 1)
          to label %89 unwind label %106

89:                                               ; preds = %87
  invoke void @_ZN3alg7DosTree10delete_keyEPNS0_14dostree_node_tE(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %88)
          to label %90 unwind label %106

90:                                               ; preds = %89
  %91 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 1)
          to label %92 unwind label %106

92:                                               ; preds = %90
  invoke void @_ZN3alg7DosTree10delete_keyEPNS0_14dostree_node_tE(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %91)
          to label %93 unwind label %106

93:                                               ; preds = %92
  %94 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 1)
          to label %95 unwind label %106

95:                                               ; preds = %93
  invoke void @_ZN3alg7DosTree10delete_keyEPNS0_14dostree_node_tE(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %94)
          to label %96 unwind label %106

96:                                               ; preds = %95
  %97 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 1)
          to label %98 unwind label %106

98:                                               ; preds = %96
  invoke void @_ZN3alg7DosTree10delete_keyEPNS0_14dostree_node_tE(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %97)
          to label %99 unwind label %106

99:                                               ; preds = %98
  %100 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 1)
          to label %101 unwind label %106

101:                                              ; preds = %99
  invoke void @_ZN3alg7DosTree10delete_keyEPNS0_14dostree_node_tE(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %100)
          to label %102 unwind label %106

102:                                              ; preds = %101
  %103 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 1)
          to label %104 unwind label %106

104:                                              ; preds = %102
  invoke void @_ZN3alg7DosTree10delete_keyEPNS0_14dostree_node_tE(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %103)
          to label %105 unwind label %106

105:                                              ; preds = %104
  invoke void @_ZN3alg7DosTree5printEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %.preheader.preheader unwind label %23

106:                                              ; preds = %104, %102, %101, %99, %98, %96, %95, %93, %92, %90, %89, %87, %86, %84, %83, %81, %80, %78, %77, %75, %74, %72, %71, %69, %68, %66, %65, %63, %62, %60, %59, %57, %56, %54, %53, %51, %50, %48, %47, %45, %44, %42, %41, %39, %38, %36, %35, %33, %32, %29
  %107 = landingpad { ptr, i32 }
          cleanup
  br label %268

.preheader.preheader:                             ; preds = %105
  %108 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 1)
          to label %109 unwind label %114

109:                                              ; preds = %.preheader.preheader
  %.not = icmp eq ptr %108, null
  br i1 %.not, label %.preheader.1, label %110

110:                                              ; preds = %109
  %111 = getelementptr inbounds i8, ptr %108, i64 32
  %112 = load i32, ptr %111, align 8, !tbaa !7
  %113 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 1, i32 noundef %112)
  br label %.preheader.1

114:                                              ; preds = %.preheader.25, %.preheader.24, %.preheader.23, %.preheader.22, %.preheader.21, %.preheader.20, %.preheader.19, %.preheader.18, %.preheader.17, %.preheader.16, %.preheader.15, %.preheader.14, %.preheader.13, %.preheader.12, %.preheader.11, %.preheader.10, %.preheader.9, %.preheader.8, %.preheader.7, %.preheader.6, %.preheader.5, %.preheader.4, %.preheader.3, %.preheader.2, %.preheader.1, %.preheader.preheader
  %115 = landingpad { ptr, i32 }
          cleanup
  br label %268

.preheader.1:                                     ; preds = %110, %109
  %116 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 2)
          to label %117 unwind label %114

117:                                              ; preds = %.preheader.1
  %.not.1 = icmp eq ptr %116, null
  br i1 %.not.1, label %.preheader.2, label %118

118:                                              ; preds = %117
  %119 = getelementptr inbounds i8, ptr %116, i64 32
  %120 = load i32, ptr %119, align 8, !tbaa !7
  %121 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 2, i32 noundef %120)
  br label %.preheader.2

.preheader.2:                                     ; preds = %118, %117
  %122 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 3)
          to label %123 unwind label %114

123:                                              ; preds = %.preheader.2
  %.not.2 = icmp eq ptr %122, null
  br i1 %.not.2, label %.preheader.3, label %124

124:                                              ; preds = %123
  %125 = getelementptr inbounds i8, ptr %122, i64 32
  %126 = load i32, ptr %125, align 8, !tbaa !7
  %127 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 3, i32 noundef %126)
  br label %.preheader.3

.preheader.3:                                     ; preds = %124, %123
  %128 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 4)
          to label %129 unwind label %114

129:                                              ; preds = %.preheader.3
  %.not.3 = icmp eq ptr %128, null
  br i1 %.not.3, label %.preheader.4, label %130

130:                                              ; preds = %129
  %131 = getelementptr inbounds i8, ptr %128, i64 32
  %132 = load i32, ptr %131, align 8, !tbaa !7
  %133 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 4, i32 noundef %132)
  br label %.preheader.4

.preheader.4:                                     ; preds = %130, %129
  %134 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 5)
          to label %135 unwind label %114

135:                                              ; preds = %.preheader.4
  %.not.4 = icmp eq ptr %134, null
  br i1 %.not.4, label %.preheader.5, label %136

136:                                              ; preds = %135
  %137 = getelementptr inbounds i8, ptr %134, i64 32
  %138 = load i32, ptr %137, align 8, !tbaa !7
  %139 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 5, i32 noundef %138)
  br label %.preheader.5

.preheader.5:                                     ; preds = %136, %135
  %140 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 6)
          to label %141 unwind label %114

141:                                              ; preds = %.preheader.5
  %.not.5 = icmp eq ptr %140, null
  br i1 %.not.5, label %.preheader.6, label %142

142:                                              ; preds = %141
  %143 = getelementptr inbounds i8, ptr %140, i64 32
  %144 = load i32, ptr %143, align 8, !tbaa !7
  %145 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 6, i32 noundef %144)
  br label %.preheader.6

.preheader.6:                                     ; preds = %142, %141
  %146 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 7)
          to label %147 unwind label %114

147:                                              ; preds = %.preheader.6
  %.not.6 = icmp eq ptr %146, null
  br i1 %.not.6, label %.preheader.7, label %148

148:                                              ; preds = %147
  %149 = getelementptr inbounds i8, ptr %146, i64 32
  %150 = load i32, ptr %149, align 8, !tbaa !7
  %151 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 7, i32 noundef %150)
  br label %.preheader.7

.preheader.7:                                     ; preds = %148, %147
  %152 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 8)
          to label %153 unwind label %114

153:                                              ; preds = %.preheader.7
  %.not.7 = icmp eq ptr %152, null
  br i1 %.not.7, label %.preheader.8, label %154

154:                                              ; preds = %153
  %155 = getelementptr inbounds i8, ptr %152, i64 32
  %156 = load i32, ptr %155, align 8, !tbaa !7
  %157 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 8, i32 noundef %156)
  br label %.preheader.8

.preheader.8:                                     ; preds = %154, %153
  %158 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 9)
          to label %159 unwind label %114

159:                                              ; preds = %.preheader.8
  %.not.8 = icmp eq ptr %158, null
  br i1 %.not.8, label %.preheader.9, label %160

160:                                              ; preds = %159
  %161 = getelementptr inbounds i8, ptr %158, i64 32
  %162 = load i32, ptr %161, align 8, !tbaa !7
  %163 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 9, i32 noundef %162)
  br label %.preheader.9

.preheader.9:                                     ; preds = %160, %159
  %164 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 10)
          to label %165 unwind label %114

165:                                              ; preds = %.preheader.9
  %.not.9 = icmp eq ptr %164, null
  br i1 %.not.9, label %.preheader.10, label %166

166:                                              ; preds = %165
  %167 = getelementptr inbounds i8, ptr %164, i64 32
  %168 = load i32, ptr %167, align 8, !tbaa !7
  %169 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 10, i32 noundef %168)
  br label %.preheader.10

.preheader.10:                                    ; preds = %166, %165
  %170 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 11)
          to label %171 unwind label %114

171:                                              ; preds = %.preheader.10
  %.not.10 = icmp eq ptr %170, null
  br i1 %.not.10, label %.preheader.11, label %172

172:                                              ; preds = %171
  %173 = getelementptr inbounds i8, ptr %170, i64 32
  %174 = load i32, ptr %173, align 8, !tbaa !7
  %175 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 11, i32 noundef %174)
  br label %.preheader.11

.preheader.11:                                    ; preds = %172, %171
  %176 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 12)
          to label %177 unwind label %114

177:                                              ; preds = %.preheader.11
  %.not.11 = icmp eq ptr %176, null
  br i1 %.not.11, label %.preheader.12, label %178

178:                                              ; preds = %177
  %179 = getelementptr inbounds i8, ptr %176, i64 32
  %180 = load i32, ptr %179, align 8, !tbaa !7
  %181 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 12, i32 noundef %180)
  br label %.preheader.12

.preheader.12:                                    ; preds = %178, %177
  %182 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 13)
          to label %183 unwind label %114

183:                                              ; preds = %.preheader.12
  %.not.12 = icmp eq ptr %182, null
  br i1 %.not.12, label %.preheader.13, label %184

184:                                              ; preds = %183
  %185 = getelementptr inbounds i8, ptr %182, i64 32
  %186 = load i32, ptr %185, align 8, !tbaa !7
  %187 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 13, i32 noundef %186)
  br label %.preheader.13

.preheader.13:                                    ; preds = %184, %183
  %188 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 14)
          to label %189 unwind label %114

189:                                              ; preds = %.preheader.13
  %.not.13 = icmp eq ptr %188, null
  br i1 %.not.13, label %.preheader.14, label %190

190:                                              ; preds = %189
  %191 = getelementptr inbounds i8, ptr %188, i64 32
  %192 = load i32, ptr %191, align 8, !tbaa !7
  %193 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 14, i32 noundef %192)
  br label %.preheader.14

.preheader.14:                                    ; preds = %190, %189
  %194 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 15)
          to label %195 unwind label %114

195:                                              ; preds = %.preheader.14
  %.not.14 = icmp eq ptr %194, null
  br i1 %.not.14, label %.preheader.15, label %196

196:                                              ; preds = %195
  %197 = getelementptr inbounds i8, ptr %194, i64 32
  %198 = load i32, ptr %197, align 8, !tbaa !7
  %199 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 15, i32 noundef %198)
  br label %.preheader.15

.preheader.15:                                    ; preds = %196, %195
  %200 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 16)
          to label %201 unwind label %114

201:                                              ; preds = %.preheader.15
  %.not.15 = icmp eq ptr %200, null
  br i1 %.not.15, label %.preheader.16, label %202

202:                                              ; preds = %201
  %203 = getelementptr inbounds i8, ptr %200, i64 32
  %204 = load i32, ptr %203, align 8, !tbaa !7
  %205 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 16, i32 noundef %204)
  br label %.preheader.16

.preheader.16:                                    ; preds = %202, %201
  %206 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 17)
          to label %207 unwind label %114

207:                                              ; preds = %.preheader.16
  %.not.16 = icmp eq ptr %206, null
  br i1 %.not.16, label %.preheader.17, label %208

208:                                              ; preds = %207
  %209 = getelementptr inbounds i8, ptr %206, i64 32
  %210 = load i32, ptr %209, align 8, !tbaa !7
  %211 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 17, i32 noundef %210)
  br label %.preheader.17

.preheader.17:                                    ; preds = %208, %207
  %212 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 18)
          to label %213 unwind label %114

213:                                              ; preds = %.preheader.17
  %.not.17 = icmp eq ptr %212, null
  br i1 %.not.17, label %.preheader.18, label %214

214:                                              ; preds = %213
  %215 = getelementptr inbounds i8, ptr %212, i64 32
  %216 = load i32, ptr %215, align 8, !tbaa !7
  %217 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 18, i32 noundef %216)
  br label %.preheader.18

.preheader.18:                                    ; preds = %214, %213
  %218 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 19)
          to label %219 unwind label %114

219:                                              ; preds = %.preheader.18
  %.not.18 = icmp eq ptr %218, null
  br i1 %.not.18, label %.preheader.19, label %220

220:                                              ; preds = %219
  %221 = getelementptr inbounds i8, ptr %218, i64 32
  %222 = load i32, ptr %221, align 8, !tbaa !7
  %223 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 19, i32 noundef %222)
  br label %.preheader.19

.preheader.19:                                    ; preds = %220, %219
  %224 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 20)
          to label %225 unwind label %114

225:                                              ; preds = %.preheader.19
  %.not.19 = icmp eq ptr %224, null
  br i1 %.not.19, label %.preheader.20, label %226

226:                                              ; preds = %225
  %227 = getelementptr inbounds i8, ptr %224, i64 32
  %228 = load i32, ptr %227, align 8, !tbaa !7
  %229 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 20, i32 noundef %228)
  br label %.preheader.20

.preheader.20:                                    ; preds = %226, %225
  %230 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 21)
          to label %231 unwind label %114

231:                                              ; preds = %.preheader.20
  %.not.20 = icmp eq ptr %230, null
  br i1 %.not.20, label %.preheader.21, label %232

232:                                              ; preds = %231
  %233 = getelementptr inbounds i8, ptr %230, i64 32
  %234 = load i32, ptr %233, align 8, !tbaa !7
  %235 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 21, i32 noundef %234)
  br label %.preheader.21

.preheader.21:                                    ; preds = %232, %231
  %236 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 22)
          to label %237 unwind label %114

237:                                              ; preds = %.preheader.21
  %.not.21 = icmp eq ptr %236, null
  br i1 %.not.21, label %.preheader.22, label %238

238:                                              ; preds = %237
  %239 = getelementptr inbounds i8, ptr %236, i64 32
  %240 = load i32, ptr %239, align 8, !tbaa !7
  %241 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 22, i32 noundef %240)
  br label %.preheader.22

.preheader.22:                                    ; preds = %238, %237
  %242 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 23)
          to label %243 unwind label %114

243:                                              ; preds = %.preheader.22
  %.not.22 = icmp eq ptr %242, null
  br i1 %.not.22, label %.preheader.23, label %244

244:                                              ; preds = %243
  %245 = getelementptr inbounds i8, ptr %242, i64 32
  %246 = load i32, ptr %245, align 8, !tbaa !7
  %247 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 23, i32 noundef %246)
  br label %.preheader.23

.preheader.23:                                    ; preds = %244, %243
  %248 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 24)
          to label %249 unwind label %114

249:                                              ; preds = %.preheader.23
  %.not.23 = icmp eq ptr %248, null
  br i1 %.not.23, label %.preheader.24, label %250

250:                                              ; preds = %249
  %251 = getelementptr inbounds i8, ptr %248, i64 32
  %252 = load i32, ptr %251, align 8, !tbaa !7
  %253 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 24, i32 noundef %252)
  br label %.preheader.24

.preheader.24:                                    ; preds = %250, %249
  %254 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 25)
          to label %255 unwind label %114

255:                                              ; preds = %.preheader.24
  %.not.24 = icmp eq ptr %254, null
  br i1 %.not.24, label %.preheader.25, label %256

256:                                              ; preds = %255
  %257 = getelementptr inbounds i8, ptr %254, i64 32
  %258 = load i32, ptr %257, align 8, !tbaa !7
  %259 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 25, i32 noundef %258)
  br label %.preheader.25

.preheader.25:                                    ; preds = %256, %255
  %260 = invoke noundef ptr @_ZN3alg7DosTree5indexEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 26)
          to label %261 unwind label %114

261:                                              ; preds = %.preheader.25
  %.not.25 = icmp eq ptr %260, null
  br i1 %.not.25, label %266, label %262

262:                                              ; preds = %261
  %263 = getelementptr inbounds i8, ptr %260, i64 32
  %264 = load i32, ptr %263, align 8, !tbaa !7
  %265 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 26, i32 noundef %264)
  br label %266

266:                                              ; preds = %262, %261
  invoke void @_ZN3alg7DosTree5printEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %267 unwind label %23

267:                                              ; preds = %266
  call void @_ZN3alg7DosTreeD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %1) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #6
  ret i32 0

268:                                              ; preds = %13, %23, %25, %106, %114, %11
  %.pn.pn = phi { ptr, i32 } [ %12, %11 ], [ %14, %13 ], [ %26, %25 ], [ %107, %106 ], [ %115, %114 ], [ %24, %23 ]
  call void @_ZN3alg7DosTreeD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %1) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn.pn
}

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @srand(i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare i64 @time(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #3

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

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

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

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

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

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

attributes #0 = { mustprogress norecurse 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "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 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

!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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !14, i64 32}
!8 = !{!"_ZTSN3alg7DosTree14dostree_node_tE", !9, i64 0, !14, i64 32, !14, i64 36}
!9 = !{!"_ZTSN3alg14RBTreeAbstract13rbtree_node_tE", !10, i64 0, !10, i64 8, !10, i64 16, !13, i64 24}
!10 = !{!"any pointer", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"_ZTSN3alg14RBTreeAbstract17rbtree_node_colorE", !11, i64 0}
!14 = !{!"int", !11, i64 0}
!15 = distinct !{!15, !6}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass