; LLVM IR from fritzsedlazeck/SURVIVOR :: src/merge_vcf/IntervallTree.ll (ZN13IntervallTree3delEP8SVS_NodeRP5TNode)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%struct.breakpoint_str = type <{ %"class.std::__cxx11::basic_string", i32, [4 x i8] }>
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"struct.std::pair" = type { i8, i8 }
%class.SVS_Node = type <{ i16, [6 x i8], %struct.breakpoint_str, %struct.breakpoint_str, %"class.std::vector", %"class.std::__cxx11::basic_string", %"struct.std::pair.3", %"struct.std::pair", [6 x i8], %"class.std::__cxx11::basic_string", [5 x i8], [4 x i8], [7 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Support_Node *, std::allocator<Support_Node *>>::_Vector_impl" }
%"struct.std::_Vector_base<Support_Node *, std::allocator<Support_Node *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Support_Node *, std::allocator<Support_Node *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Support_Node *, std::allocator<Support_Node *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.3" = type { i32, i32 }
%class.TNode = type { ptr, i32, ptr, ptr, ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.13 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [34 x i8], align 1

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN13IntervallTree7overlapE14breakpoint_strS0_sSt4pairIbbEP8SVS_Node(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, ptr noundef, i16 noundef signext, i16, ptr noundef) #2 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN14breakpoint_strD2Ev(ptr noundef nonnull align 8 dereferenceable(36)) unnamed_addr #4 align 2

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

; Function Attrs: nounwind
declare void @free(ptr noundef) #6

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13IntervallTree3delEP8SVS_NodeRP5TNode(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(8) %2) #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca %struct.breakpoint_str, align 8
  %10 = alloca %struct.breakpoint_str, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"struct.std::pair", align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %14 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %15 = load ptr, ptr %6, align 8, !tbaa !5
  %16 = load ptr, ptr %15, align 8, !tbaa !5
  %17 = icmp eq ptr %16, null
  br i1 %17, label %18, label %21

18:                                               ; preds = %3
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.13)
  %20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %123

21:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = getelementptr inbounds %class.SVS_Node, ptr %22, i32 0, i32 2
  call void @_ZN14breakpoint_strC2ERKS_(ptr noundef nonnull align 8 dereferenceable(36) %9, ptr noundef nonnull align 8 dereferenceable(36) %23)
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = getelementptr inbounds %class.SVS_Node, ptr %24, i32 0, i32 3
  invoke void @_ZN14breakpoint_strC2ERKS_(ptr noundef nonnull align 8 dereferenceable(36) %10, ptr noundef nonnull align 8 dereferenceable(36) %25)
          to label %26 unwind label %47

26:                                               ; preds = %21
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds %class.SVS_Node, ptr %27, i32 0, i32 0
  %29 = load i16, ptr %28, align 8, !tbaa !9
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %class.SVS_Node, ptr %30, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %13, ptr align 8 %31, i64 2, i1 false)
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = load ptr, ptr %32, align 8, !tbaa !5
  %34 = invoke noundef ptr @_ZN5TNode8get_dataEv(ptr noundef nonnull align 8 dereferenceable(40) %33)
          to label %35 unwind label %51

35:                                               ; preds = %26
  %36 = load i16, ptr %13, align 1
  %37 = invoke noundef i32 @_ZN13IntervallTree7overlapE14breakpoint_strS0_sSt4pairIbbEP8SVS_Node(ptr noundef nonnull align 1 dereferenceable(1) %14, ptr noundef %9, ptr noundef %10, i16 noundef signext %29, i16 %36, ptr noundef %34)
          to label %38 unwind label %51

38:                                               ; preds = %35
  %39 = sext i32 %37 to i64
  call void @_ZN14breakpoint_strD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %10) #7
  call void @_ZN14breakpoint_strD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %9) #7
  store i64 %39, ptr %8, align 8, !tbaa !24
  %40 = load i64, ptr %8, align 8, !tbaa !24
  %41 = icmp sgt i64 %40, 0
  br i1 %41, label %42, label %56

42:                                               ; preds = %38
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = load ptr, ptr %44, align 8, !tbaa !5
  %46 = getelementptr inbounds %class.TNode, ptr %45, i32 0, i32 3
  call void @_ZN13IntervallTree3delEP8SVS_NodeRP5TNode(ptr noundef nonnull align 1 dereferenceable(1) %14, ptr noundef %43, ptr noundef nonnull align 8 dereferenceable(8) %46)
  br label %122

47:                                               ; preds = %21
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %11, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %12, align 4
  br label %55

51:                                               ; preds = %35, %26
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %11, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %12, align 4
  call void @_ZN14breakpoint_strD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %10) #7
  br label %55

55:                                               ; preds = %51, %47
  call void @_ZN14breakpoint_strD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %124

56:                                               ; preds = %38
  %57 = load i64, ptr %8, align 8, !tbaa !24
  %58 = icmp slt i64 %57, 0
  br i1 %58, label %59, label %64

59:                                               ; preds = %56
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = load ptr, ptr %61, align 8, !tbaa !5
  %63 = getelementptr inbounds %class.TNode, ptr %62, i32 0, i32 4
  call void @_ZN13IntervallTree3delEP8SVS_NodeRP5TNode(ptr noundef nonnull align 1 dereferenceable(1) %14, ptr noundef %60, ptr noundef nonnull align 8 dereferenceable(8) %63)
  br label %121

64:                                               ; preds = %56
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = load ptr, ptr %65, align 8, !tbaa !5
  %67 = getelementptr inbounds %class.TNode, ptr %66, i32 0, i32 3
  %68 = load ptr, ptr %67, align 8, !tbaa !25
  %69 = icmp eq ptr %68, null
  br i1 %69, label %70, label %83

70:                                               ; preds = %64
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = load ptr, ptr %71, align 8, !tbaa !5
  %73 = getelementptr inbounds %class.TNode, ptr %72, i32 0, i32 4
  %74 = load ptr, ptr %73, align 8, !tbaa !27
  %75 = icmp eq ptr %74, null
  br i1 %75, label %76, label %83

76:                                               ; preds = %70
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = load ptr, ptr %77, align 8, !tbaa !5
  store ptr %78, ptr %7, align 8, !tbaa !5
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  call void @free(ptr noundef %79) #7
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr null, ptr %80, align 8, !tbaa !5
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.15)
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %81, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %120

83:                                               ; preds = %70, %64
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  %85 = load ptr, ptr %84, align 8, !tbaa !5
  %86 = getelementptr inbounds %class.TNode, ptr %85, i32 0, i32 3
  %87 = load ptr, ptr %86, align 8, !tbaa !25
  %88 = icmp eq ptr %87, null
  br i1 %88, label %89, label %100

89:                                               ; preds = %83
  %90 = load ptr, ptr %6, align 8, !tbaa !5
  %91 = load ptr, ptr %90, align 8, !tbaa !5
  store ptr %91, ptr %7, align 8, !tbaa !5
  %92 = load ptr, ptr %7, align 8, !tbaa !5
  call void @free(ptr noundef %92) #7
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  %94 = load ptr, ptr %93, align 8, !tbaa !5
  %95 = getelementptr inbounds %class.TNode, ptr %94, i32 0, i32 4
  %96 = load ptr, ptr %95, align 8, !tbaa !27
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %96, ptr %97, align 8, !tbaa !5
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.15)
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %98, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %119

100:                                              ; preds = %83
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = load ptr, ptr %101, align 8, !tbaa !5
  %103 = getelementptr inbounds %class.TNode, ptr %102, i32 0, i32 4
  %104 = load ptr, ptr %103, align 8, !tbaa !27
  %105 = icmp eq ptr %104, null
  br i1 %105, label %106, label %117

106:                                              ; preds = %100
  %107 = load ptr, ptr %6, align 8, !tbaa !5
  %108 = load ptr, ptr %107, align 8, !tbaa !5
  store ptr %108, ptr %7, align 8, !tbaa !5
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = load ptr, ptr %109, align 8, !tbaa !5
  %111 = getelementptr inbounds %class.TNode, ptr %110, i32 0, i32 3
  %112 = load ptr, ptr %111, align 8, !tbaa !25
  %113 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %112, ptr %113, align 8, !tbaa !5
  %114 = load ptr, ptr %7, align 8, !tbaa !5
  call void @free(ptr noundef %114) #7
  %115 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.15)
  %116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %115, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %118

117:                                              ; preds = %100
  br label %118

118:                                              ; preds = %117, %106
  br label %119

119:                                              ; preds = %118, %89
  br label %120

120:                                              ; preds = %119, %76
  br label %121

121:                                              ; preds = %120, %59
  br label %122

122:                                              ; preds = %121, %42
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %123

123:                                              ; preds = %122, %18
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  ret void

124:                                              ; preds = %55
  %125 = load ptr, ptr %11, align 8
  %126 = load i32, ptr %12, align 4
  %127 = insertvalue { ptr, i32 } poison, ptr %125, 0
  %128 = insertvalue { ptr, i32 } %127, i32 %126, 1
  resume { ptr, i32 } %128
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { inlinehint 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 #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 "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 #7 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTS8SVS_Node", !11, i64 0, !12, i64 8, !12, i64 48, !17, i64 88, !13, i64 112, !21, i64 144, !22, i64 152, !13, i64 160, !7, i64 192, !7, i64 197}
!11 = !{!"short", !7, i64 0}
!12 = !{!"_ZTS14breakpoint_str", !13, i64 0, !16, i64 32}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !14, i64 0, !15, i64 8, !7, i64 16}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!"_ZTSSt6vectorIP12Support_NodeSaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIP12Support_NodeSaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIP12Support_NodeSaIS1_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIP12Support_NodeSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"_ZTSSt4pairIiiE", !16, i64 0, !16, i64 4}
!22 = !{!"_ZTSSt4pairIbbE", !23, i64 0, !23, i64 1}
!23 = !{!"bool", !7, i64 0}
!24 = !{!15, !15, i64 0}
!25 = !{!26, !6, i64 24}
!26 = !{!"_ZTS5TNode", !6, i64 0, !16, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!27 = !{!26, !6, i64 32}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%struct.breakpoint_str = type <{ %"class.std::__cxx11::basic_string", i32, [4 x i8] }>
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.13 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [34 x i8], align 1

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #0

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN13IntervallTree7overlapE14breakpoint_strS0_sSt4pairIbbEP8SVS_Node(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, ptr noundef, i16 noundef signext, i16, ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN14breakpoint_strC2ERKS_(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13IntervallTree3delEP8SVS_NodeRP5TNode(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr noundef %1, ptr nocapture noundef nonnull align 8 dereferenceable(8) %2) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %struct.breakpoint_str, align 8
  %5 = alloca %struct.breakpoint_str, align 8
  %6 = load ptr, ptr %2, align 8, !tbaa !5
  %7 = icmp eq ptr %6, null
  br i1 %7, label %8, label %11

8:                                                ; preds = %3
  %9 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.13)
  %10 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %56

11:                                               ; preds = %3
  %12 = getelementptr inbounds i8, ptr %1, i64 8
  call void @_ZN14breakpoint_strC2ERKS_(ptr noundef nonnull align 8 dereferenceable(36) %4, ptr noundef nonnull align 8 dereferenceable(36) %12)
  %13 = getelementptr inbounds i8, ptr %1, i64 48
  invoke void @_ZN14breakpoint_strC2ERKS_(ptr noundef nonnull align 8 dereferenceable(36) %5, ptr noundef nonnull align 8 dereferenceable(36) %13)
          to label %14 unwind label %25

14:                                               ; preds = %11
  %15 = load i16, ptr %1, align 8, !tbaa !9
  %16 = getelementptr inbounds i8, ptr %1, i64 152
  %.sroa.0.0.copyload = load i16, ptr %16, align 8
  %17 = load ptr, ptr %2, align 8, !tbaa !5
  %18 = call noundef ptr @_ZN5TNode8get_dataEv(ptr noundef nonnull align 8 dereferenceable(40) %17)
  %19 = invoke noundef i32 @_ZN13IntervallTree7overlapE14breakpoint_strS0_sSt4pairIbbEP8SVS_Node(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr noundef nonnull %4, ptr noundef nonnull %5, i16 noundef signext %15, i16 %.sroa.0.0.copyload, ptr noundef %18)
          to label %20 unwind label %27

20:                                               ; preds = %14
  call void @_ZN14breakpoint_strD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %5) #5
  call void @_ZN14breakpoint_strD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %4) #5
  %21 = icmp sgt i32 %19, 0
  br i1 %21, label %22, label %30

22:                                               ; preds = %20
  %23 = load ptr, ptr %2, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %23, i64 24
  call void @_ZN13IntervallTree3delEP8SVS_NodeRP5TNode(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr noundef nonnull %1, ptr noundef nonnull align 8 dereferenceable(8) %24)
  br label %56

25:                                               ; preds = %11
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %29

27:                                               ; preds = %14
  %28 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN14breakpoint_strD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %5) #5
  br label %29

29:                                               ; preds = %27, %25
  %.pn = phi { ptr, i32 } [ %28, %27 ], [ %26, %25 ]
  call void @_ZN14breakpoint_strD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %4) #5
  resume { ptr, i32 } %.pn

30:                                               ; preds = %20
  %31 = icmp slt i32 %19, 0
  %32 = load ptr, ptr %2, align 8, !tbaa !5
  br i1 %31, label %33, label %35

33:                                               ; preds = %30
  %34 = getelementptr inbounds i8, ptr %32, i64 32
  call void @_ZN13IntervallTree3delEP8SVS_NodeRP5TNode(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr noundef nonnull %1, ptr noundef nonnull align 8 dereferenceable(8) %34)
  br label %56

35:                                               ; preds = %30
  %36 = getelementptr inbounds i8, ptr %32, i64 24
  %37 = load ptr, ptr %36, align 8, !tbaa !24
  %38 = icmp eq ptr %37, null
  %39 = getelementptr inbounds i8, ptr %32, i64 32
  %40 = load ptr, ptr %39, align 8, !tbaa !26
  %41 = icmp eq ptr %40, null
  br i1 %38, label %42, label %52

42:                                               ; preds = %35
  call void @free(ptr noundef nonnull %32) #5
  br i1 %41, label %43, label %46

43:                                               ; preds = %42
  store ptr null, ptr %2, align 8, !tbaa !5
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.15)
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %56

46:                                               ; preds = %42
  %47 = load ptr, ptr %2, align 8, !tbaa !5
  %48 = getelementptr inbounds i8, ptr %47, i64 32
  %49 = load ptr, ptr %48, align 8, !tbaa !26
  store ptr %49, ptr %2, align 8, !tbaa !5
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.15)
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %56

52:                                               ; preds = %35
  br i1 %41, label %53, label %56

53:                                               ; preds = %52
  store ptr %37, ptr %2, align 8, !tbaa !5
  call void @free(ptr noundef nonnull %32) #5
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.15)
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %54, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %56

56:                                               ; preds = %22, %43, %53, %52, %46, %33, %8
  ret void
}

attributes #0 = { inlinehint 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 #1 = { 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 #2 = { inlinehint 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 #3 = { 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 #4 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { 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, !11, i64 0}
!10 = !{!"_ZTS8SVS_Node", !11, i64 0, !12, i64 8, !12, i64 48, !17, i64 88, !13, i64 112, !21, i64 144, !22, i64 152, !13, i64 160, !7, i64 192, !7, i64 197}
!11 = !{!"short", !7, i64 0}
!12 = !{!"_ZTS14breakpoint_str", !13, i64 0, !16, i64 32}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !14, i64 0, !15, i64 8, !7, i64 16}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!"_ZTSSt6vectorIP12Support_NodeSaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIP12Support_NodeSaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIP12Support_NodeSaIS1_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIP12Support_NodeSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"_ZTSSt4pairIiiE", !16, i64 0, !16, i64 4}
!22 = !{!"_ZTSSt4pairIbbE", !23, i64 0, !23, i64 1}
!23 = !{!"bool", !7, i64 0}
!24 = !{!25, !6, i64 24}
!25 = !{!"_ZTS5TNode", !6, i64 0, !16, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!26 = !{!25, !6, i64 32}


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