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

; 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"

%"struct.std::pair" = type { i8, i8 }
%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] }
%class.Parameter = type <{ %"class.std::__cxx11::basic_string", double, i32, i8, i8, i8, i8, i32, float, i32, [4 x 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 }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN13IntervallTree15same_breakpointE14breakpoint_strS0_i(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, ptr noundef, i32 noundef) #0 align 2

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z14is_same_strandSt4pairIbbEPb(i16, ptr noundef) #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z9same_typesPb(i16 noundef signext, ptr noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN9Parameter8InstanceEv() #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN13IntervallTree7overlapE14breakpoint_strS0_sSt4pairIbbEP8SVS_Node(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr noundef %1, ptr noundef %2, i16 noundef signext %3, i16 %4, ptr noundef %5) #4 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca i32, align 4
  %8 = alloca %"struct.std::pair", align 1
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i16, align 2
  %13 = alloca ptr, align 8
  %14 = alloca double, align 8
  %15 = alloca %"struct.std::pair", align 1
  %16 = alloca %struct.breakpoint_str, align 8
  %17 = alloca i1, align 1
  %18 = alloca %struct.breakpoint_str, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca i1, align 1
  %22 = alloca %struct.breakpoint_str, align 8
  %23 = alloca i1, align 1
  %24 = alloca %struct.breakpoint_str, align 8
  %25 = alloca i1, align 1
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  store i16 %4, ptr %8, align 1
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store i16 %3, ptr %12, align 2, !tbaa !9
  store ptr %5, ptr %13, align 8, !tbaa !5
  %28 = load ptr, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %29 = call noundef ptr @_ZN9Parameter8InstanceEv()
  %30 = getelementptr inbounds %class.Parameter, ptr %29, i32 0, i32 1
  %31 = load double, ptr %30, align 8, !tbaa !11
  store double %31, ptr %14, align 8, !tbaa !20
  %32 = load double, ptr %14, align 8, !tbaa !20
  %33 = fcmp olt double %32, 1.000000e+00
  br i1 %33, label %34, label %42

34:                                               ; preds = %6
  %35 = getelementptr inbounds %struct.breakpoint_str, ptr %1, i32 0, i32 0
  %36 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %35) #8
  %37 = getelementptr inbounds %struct.breakpoint_str, ptr %2, i32 0, i32 0
  %38 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %37) #8
  %39 = call i32 @strcmp(ptr noundef %36, ptr noundef %38) #9
  %40 = icmp ne i32 %39, 0
  br i1 %40, label %41, label %42

41:                                               ; preds = %34
  store double 1.000000e+03, ptr %14, align 8, !tbaa !20
  br label %56

42:                                               ; preds = %34, %6
  %43 = load double, ptr %14, align 8, !tbaa !20
  %44 = fcmp olt double %43, 1.000000e+00
  br i1 %44, label %45, label %55

45:                                               ; preds = %42
  %46 = getelementptr inbounds %struct.breakpoint_str, ptr %2, i32 0, i32 1
  %47 = load i32, ptr %46, align 8, !tbaa !21
  %48 = getelementptr inbounds %struct.breakpoint_str, ptr %1, i32 0, i32 1
  %49 = load i32, ptr %48, align 8, !tbaa !21
  %50 = sub nsw i32 %47, %49
  %51 = sitofp i32 %50 to double
  %52 = load double, ptr %14, align 8, !tbaa !20
  %53 = fmul double %51, %52
  %54 = call double @llvm.floor.f64(double %53)
  store double %54, ptr %14, align 8, !tbaa !20
  br label %55

55:                                               ; preds = %45, %42
  br label %56

56:                                               ; preds = %55, %41
  %57 = call noundef ptr @_ZN9Parameter8InstanceEv()
  %58 = getelementptr inbounds %class.Parameter, ptr %57, i32 0, i32 4
  %59 = load i8, ptr %58, align 1, !tbaa !23, !range !24, !noundef !25
  %60 = trunc i8 %59 to i1
  store i1 false, ptr %17, align 1
  store i1 false, ptr %21, align 1
  store i1 false, ptr %23, align 1
  store i1 false, ptr %25, align 1
  br i1 %60, label %61, label %67

61:                                               ; preds = %56
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %15, ptr align 1 %8, i64 2, i1 false)
  %62 = load ptr, ptr %13, align 8, !tbaa !5
  %63 = getelementptr inbounds %class.SVS_Node, ptr %62, i32 0, i32 11
  %64 = getelementptr inbounds [4 x i8], ptr %63, i64 0, i64 0
  %65 = load i16, ptr %15, align 1
  %66 = call noundef zeroext i1 @_Z14is_same_strandSt4pairIbbEPb(i16 %65, ptr noundef %64)
  br i1 %66, label %67, label %95

67:                                               ; preds = %61, %56
  %68 = call noundef ptr @_ZN9Parameter8InstanceEv()
  %69 = getelementptr inbounds %class.Parameter, ptr %68, i32 0, i32 3
  %70 = load i8, ptr %69, align 4, !tbaa !26, !range !24, !noundef !25
  %71 = trunc i8 %70 to i1
  br i1 %71, label %72, label %78

72:                                               ; preds = %67
  %73 = load i16, ptr %12, align 2, !tbaa !9
  %74 = load ptr, ptr %13, align 8, !tbaa !5
  %75 = getelementptr inbounds %class.SVS_Node, ptr %74, i32 0, i32 10
  %76 = getelementptr inbounds [5 x i8], ptr %75, i64 0, i64 0
  %77 = call noundef zeroext i1 @_Z9same_typesPb(i16 noundef signext %73, ptr noundef %76)
  br i1 %77, label %78, label %95

78:                                               ; preds = %72, %67
  call void @_ZN14breakpoint_strC2ERKS_(ptr noundef nonnull align 8 dereferenceable(36) %16, ptr noundef nonnull align 8 dereferenceable(36) %1)
  store i1 true, ptr %17, align 1
  %79 = load ptr, ptr %13, align 8, !tbaa !5
  %80 = getelementptr inbounds %class.SVS_Node, ptr %79, i32 0, i32 2
  invoke void @_ZN14breakpoint_strC2ERKS_(ptr noundef nonnull align 8 dereferenceable(36) %18, ptr noundef nonnull align 8 dereferenceable(36) %80)
          to label %81 unwind label %110

81:                                               ; preds = %78
  store i1 true, ptr %21, align 1
  %82 = load double, ptr %14, align 8, !tbaa !20
  %83 = fptosi double %82 to i32
  %84 = call noundef zeroext i1 @_ZN13IntervallTree15same_breakpointE14breakpoint_strS0_i(ptr noundef nonnull align 1 dereferenceable(1) %28, ptr noundef %16, ptr noundef %18, i32 noundef %83)
  br i1 %84, label %85, label %93

85:                                               ; preds = %81
  invoke void @_ZN14breakpoint_strC2ERKS_(ptr noundef nonnull align 8 dereferenceable(36) %22, ptr noundef nonnull align 8 dereferenceable(36) %2)
          to label %86 unwind label %114

86:                                               ; preds = %85
  store i1 true, ptr %23, align 1
  %87 = load ptr, ptr %13, align 8, !tbaa !5
  %88 = getelementptr inbounds %class.SVS_Node, ptr %87, i32 0, i32 3
  invoke void @_ZN14breakpoint_strC2ERKS_(ptr noundef nonnull align 8 dereferenceable(36) %24, ptr noundef nonnull align 8 dereferenceable(36) %88)
          to label %89 unwind label %118

89:                                               ; preds = %86
  store i1 true, ptr %25, align 1
  %90 = load double, ptr %14, align 8, !tbaa !20
  %91 = fptosi double %90 to i32
  %92 = call noundef zeroext i1 @_ZN13IntervallTree15same_breakpointE14breakpoint_strS0_i(ptr noundef nonnull align 1 dereferenceable(1) %28, ptr noundef %22, ptr noundef %24, i32 noundef %91)
  br label %93

93:                                               ; preds = %89, %81
  %94 = phi i1 [ false, %81 ], [ %92, %89 ]
  br label %95

95:                                               ; preds = %93, %72, %61
  %96 = phi i1 [ false, %72 ], [ false, %61 ], [ %94, %93 ]
  %97 = load i1, ptr %25, align 1
  br i1 %97, label %98, label %99

98:                                               ; preds = %95
  call void @_ZN14breakpoint_strD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %24) #8
  br label %99

99:                                               ; preds = %98, %95
  %100 = load i1, ptr %23, align 1
  br i1 %100, label %101, label %102

101:                                              ; preds = %99
  call void @_ZN14breakpoint_strD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %22) #8
  br label %102

102:                                              ; preds = %101, %99
  %103 = load i1, ptr %21, align 1
  br i1 %103, label %104, label %105

104:                                              ; preds = %102
  call void @_ZN14breakpoint_strD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %18) #8
  br label %105

105:                                              ; preds = %104, %102
  %106 = load i1, ptr %17, align 1
  br i1 %106, label %107, label %108

107:                                              ; preds = %105
  call void @_ZN14breakpoint_strD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %16) #8
  br label %108

108:                                              ; preds = %107, %105
  br i1 %96, label %109, label %133

109:                                              ; preds = %108
  store i32 0, ptr %7, align 4
  store i32 1, ptr %26, align 4
  br label %176

110:                                              ; preds = %78
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %19, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %20, align 4
  br label %129

114:                                              ; preds = %85
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %19, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %20, align 4
  br label %125

118:                                              ; preds = %86
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %19, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %20, align 4
  %122 = load i1, ptr %23, align 1
  br i1 %122, label %123, label %124

123:                                              ; preds = %118
  call void @_ZN14breakpoint_strD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %22) #8
  br label %124

124:                                              ; preds = %123, %118
  br label %125

125:                                              ; preds = %124, %114
  %126 = load i1, ptr %21, align 1
  br i1 %126, label %127, label %128

127:                                              ; preds = %125
  call void @_ZN14breakpoint_strD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %18) #8
  br label %128

128:                                              ; preds = %127, %125
  br label %129

129:                                              ; preds = %128, %110
  %130 = load i1, ptr %17, align 1
  br i1 %130, label %131, label %132

131:                                              ; preds = %129
  call void @_ZN14breakpoint_strD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %16) #8
  br label %132

132:                                              ; preds = %131, %129
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %178

133:                                              ; preds = %108
  %134 = getelementptr inbounds %struct.breakpoint_str, ptr %1, i32 0, i32 0
  %135 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %134) #8
  %136 = load ptr, ptr %13, align 8, !tbaa !5
  %137 = getelementptr inbounds %class.SVS_Node, ptr %136, i32 0, i32 2
  %138 = getelementptr inbounds %struct.breakpoint_str, ptr %137, i32 0, i32 0
  %139 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %138) #8
  %140 = call i32 @strcmp(ptr noundef %135, ptr noundef %139) #9
  %141 = icmp eq i32 %140, 0
  br i1 %141, label %142, label %162

142:                                              ; preds = %133
  %143 = getelementptr inbounds %struct.breakpoint_str, ptr %1, i32 0, i32 1
  %144 = load i32, ptr %143, align 8, !tbaa !21
  %145 = load ptr, ptr %13, align 8, !tbaa !5
  %146 = getelementptr inbounds %class.SVS_Node, ptr %145, i32 0, i32 2
  %147 = getelementptr inbounds %struct.breakpoint_str, ptr %146, i32 0, i32 1
  %148 = load i32, ptr %147, align 8, !tbaa !27
  %149 = sub nsw i32 %144, %148
  %150 = call i32 @llvm.abs.i32(i32 %149, i1 true)
  %151 = sitofp i32 %150 to double
  %152 = load double, ptr %14, align 8, !tbaa !20
  %153 = fcmp olt double %151, %152
  br i1 %153, label %154, label %162

154:                                              ; preds = %142
  %155 = getelementptr inbounds %struct.breakpoint_str, ptr %2, i32 0, i32 1
  %156 = load i32, ptr %155, align 8, !tbaa !21
  %157 = load ptr, ptr %13, align 8, !tbaa !5
  %158 = getelementptr inbounds %class.SVS_Node, ptr %157, i32 0, i32 3
  %159 = getelementptr inbounds %struct.breakpoint_str, ptr %158, i32 0, i32 1
  %160 = load i32, ptr %159, align 8, !tbaa !35
  %161 = sub nsw i32 %156, %160
  store i32 %161, ptr %7, align 4
  store i32 1, ptr %26, align 4
  br label %176

162:                                              ; preds = %142, %133
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  %163 = getelementptr inbounds %struct.breakpoint_str, ptr %1, i32 0, i32 1
  %164 = load i32, ptr %163, align 8, !tbaa !21
  %165 = load ptr, ptr %13, align 8, !tbaa !5
  %166 = getelementptr inbounds %class.SVS_Node, ptr %165, i32 0, i32 2
  %167 = getelementptr inbounds %struct.breakpoint_str, ptr %166, i32 0, i32 1
  %168 = load i32, ptr %167, align 8, !tbaa !27
  %169 = sub nsw i32 %164, %168
  store i32 %169, ptr %27, align 4, !tbaa !36
  %170 = load i32, ptr %27, align 4, !tbaa !36
  %171 = icmp eq i32 %170, 0
  br i1 %171, label %172, label %173

172:                                              ; preds = %162
  store i32 100, ptr %7, align 4
  store i32 1, ptr %26, align 4
  br label %175

173:                                              ; preds = %162
  %174 = load i32, ptr %27, align 4, !tbaa !36
  store i32 %174, ptr %7, align 4
  store i32 1, ptr %26, align 4
  br label %175

175:                                              ; preds = %173, %172
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  br label %176

176:                                              ; preds = %175, %154, %109
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  %177 = load i32, ptr %7, align 4
  ret i32 %177

178:                                              ; preds = %132
  %179 = load ptr, ptr %19, align 8
  %180 = load i32, ptr %20, align 4
  %181 = insertvalue { ptr, i32 } poison, ptr %179, 0
  %182 = insertvalue { ptr, i32 } %181, i32 %180, 1
  resume { ptr, i32 } %182
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.floor.f64(double) #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) #5

; 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 #6 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 #7 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 = { nounwind willreturn memory(read) "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { nounwind willreturn memory(read) }

!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 = !{!"short", !7, i64 0}
!11 = !{!12, !16, i64 32}
!12 = !{!"_ZTS9Parameter", !13, i64 0, !16, i64 32, !17, i64 40, !18, i64 44, !18, i64 45, !18, i64 46, !17, i64 48, !19, i64 52, !17, i64 56}
!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 = !{!"double", !7, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{!"float", !7, i64 0}
!20 = !{!16, !16, i64 0}
!21 = !{!22, !17, i64 32}
!22 = !{!"_ZTS14breakpoint_str", !13, i64 0, !17, i64 32}
!23 = !{!12, !18, i64 45}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = !{!12, !18, i64 44}
!27 = !{!28, !17, i64 40}
!28 = !{!"_ZTS8SVS_Node", !10, i64 0, !22, i64 8, !22, i64 48, !29, i64 88, !13, i64 112, !33, i64 144, !34, i64 152, !13, i64 160, !7, i64 192, !7, i64 197}
!29 = !{!"_ZTSSt6vectorIP12Support_NodeSaIS1_EE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseIP12Support_NodeSaIS1_EE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIP12Support_NodeSaIS1_EE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIP12Support_NodeSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!33 = !{!"_ZTSSt4pairIiiE", !17, i64 0, !17, i64 4}
!34 = !{!"_ZTSSt4pairIbbE", !18, i64 0, !18, i64 1}
!35 = !{!28, !17, i64 80}
!36 = !{!17, !17, i64 0}


; 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"

%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] }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN13IntervallTree15same_breakpointE14breakpoint_strS0_i(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z14is_same_strandSt4pairIbbEPb(i16, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z9same_typesPb(i16 noundef signext, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN9Parameter8InstanceEv() local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN13IntervallTree7overlapE14breakpoint_strS0_sSt4pairIbbEP8SVS_Node(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr noundef %1, ptr noundef %2, i16 noundef signext %3, i16 %4, ptr noundef %5) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %struct.breakpoint_str, align 8
  %8 = alloca %struct.breakpoint_str, align 8
  %9 = alloca %struct.breakpoint_str, align 8
  %10 = alloca %struct.breakpoint_str, align 8
  %11 = tail call noundef ptr @_ZN9Parameter8InstanceEv()
  %12 = getelementptr inbounds i8, ptr %11, i64 32
  %13 = load double, ptr %12, align 8, !tbaa !5
  %14 = fcmp olt double %13, 1.000000e+00
  br i1 %14, label %15, label %.critedge

15:                                               ; preds = %6
  %16 = tail call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  %17 = tail call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  %18 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %16, ptr noundef nonnull dereferenceable(1) %17) #7
  %.not.not = icmp eq i32 %18, 0
  br i1 %.not.not, label %19, label %.critedge

19:                                               ; preds = %15
  %20 = getelementptr inbounds i8, ptr %2, i64 32
  %21 = load i32, ptr %20, align 8, !tbaa !17
  %22 = getelementptr inbounds i8, ptr %1, i64 32
  %23 = load i32, ptr %22, align 8, !tbaa !17
  %24 = sub nsw i32 %21, %23
  %25 = sitofp i32 %24 to double
  %26 = fmul double %13, %25
  %27 = tail call double @llvm.floor.f64(double %26)
  br label %.critedge

.critedge:                                        ; preds = %6, %15, %19
  %.036 = phi double [ %27, %19 ], [ 1.000000e+03, %15 ], [ %13, %6 ]
  %28 = tail call noundef ptr @_ZN9Parameter8InstanceEv()
  %29 = getelementptr inbounds i8, ptr %28, i64 45
  %30 = load i8, ptr %29, align 1, !tbaa !19, !range !20, !noundef !21
  %31 = trunc nuw i8 %30 to i1
  br i1 %31, label %32, label %35

32:                                               ; preds = %.critedge
  %33 = getelementptr inbounds i8, ptr %5, i64 197
  %34 = tail call noundef zeroext i1 @_Z14is_same_strandSt4pairIbbEPb(i16 %4, ptr noundef nonnull %33)
  br i1 %34, label %35, label %.critedge46.thread

35:                                               ; preds = %32, %.critedge
  %36 = tail call noundef ptr @_ZN9Parameter8InstanceEv()
  %37 = getelementptr inbounds i8, ptr %36, i64 44
  %38 = load i8, ptr %37, align 4, !tbaa !22, !range !20, !noundef !21
  %39 = trunc nuw i8 %38 to i1
  br i1 %39, label %40, label %43

40:                                               ; preds = %35
  %41 = getelementptr inbounds i8, ptr %5, i64 192
  %42 = tail call noundef zeroext i1 @_Z9same_typesPb(i16 noundef signext %3, ptr noundef nonnull %41)
  br i1 %42, label %43, label %.critedge46.thread

43:                                               ; preds = %40, %35
  call void @_ZN14breakpoint_strC2ERKS_(ptr noundef nonnull align 8 dereferenceable(36) %7, ptr noundef nonnull align 8 dereferenceable(36) %1)
  %44 = getelementptr inbounds i8, ptr %5, i64 8
  invoke void @_ZN14breakpoint_strC2ERKS_(ptr noundef nonnull align 8 dereferenceable(36) %8, ptr noundef nonnull align 8 dereferenceable(36) %44)
          to label %45 unwind label %52

45:                                               ; preds = %43
  %46 = fptosi double %.036 to i32
  %47 = call noundef zeroext i1 @_ZN13IntervallTree15same_breakpointE14breakpoint_strS0_i(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr noundef nonnull %7, ptr noundef nonnull %8, i32 noundef %46)
  br i1 %47, label %48, label %.critedge46.thread.critedge

48:                                               ; preds = %45
  invoke void @_ZN14breakpoint_strC2ERKS_(ptr noundef nonnull align 8 dereferenceable(36) %9, ptr noundef nonnull align 8 dereferenceable(36) %2)
          to label %49 unwind label %54

49:                                               ; preds = %48
  %50 = getelementptr inbounds i8, ptr %5, i64 48
  invoke void @_ZN14breakpoint_strC2ERKS_(ptr noundef nonnull align 8 dereferenceable(36) %10, ptr noundef nonnull align 8 dereferenceable(36) %50)
          to label %.critedge44.thread unwind label %56

.critedge44.thread:                               ; preds = %49
  %51 = call noundef zeroext i1 @_ZN13IntervallTree15same_breakpointE14breakpoint_strS0_i(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr noundef nonnull %9, ptr noundef nonnull %10, i32 noundef %46)
  call void @_ZN14breakpoint_strD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %10) #6
  call void @_ZN14breakpoint_strD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %9) #6
  call void @_ZN14breakpoint_strD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %8) #6
  call void @_ZN14breakpoint_strD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %7) #6
  br i1 %51, label %81, label %.critedge46.thread

52:                                               ; preds = %43
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %59

54:                                               ; preds = %48
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %58

56:                                               ; preds = %49
  %57 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN14breakpoint_strD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %9) #6
  br label %58

58:                                               ; preds = %54, %56
  %.pn = phi { ptr, i32 } [ %57, %56 ], [ %55, %54 ]
  call void @_ZN14breakpoint_strD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %8) #6
  br label %59

59:                                               ; preds = %52, %58
  %.pn.pn = phi { ptr, i32 } [ %.pn, %58 ], [ %53, %52 ]
  call void @_ZN14breakpoint_strD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %7) #6
  resume { ptr, i32 } %.pn.pn

.critedge46.thread.critedge:                      ; preds = %45
  call void @_ZN14breakpoint_strD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %8) #6
  call void @_ZN14breakpoint_strD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %7) #6
  br label %.critedge46.thread

.critedge46.thread:                               ; preds = %.critedge46.thread.critedge, %32, %40, %.critedge44.thread
  %60 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  %61 = getelementptr inbounds i8, ptr %5, i64 8
  %62 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %61) #6
  %63 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %60, ptr noundef nonnull dereferenceable(1) %62) #7
  %64 = icmp eq i32 %63, 0
  %65 = getelementptr inbounds i8, ptr %1, i64 32
  %66 = load i32, ptr %65, align 8, !tbaa !17
  %67 = getelementptr inbounds i8, ptr %5, i64 40
  %68 = load i32, ptr %67, align 8, !tbaa !23
  %69 = sub nsw i32 %66, %68
  br i1 %64, label %70, label %.critedge46.thread._crit_edge

70:                                               ; preds = %.critedge46.thread
  %71 = call i32 @llvm.abs.i32(i32 %69, i1 true)
  %72 = uitofp nneg i32 %71 to double
  %73 = fcmp ogt double %.036, %72
  br i1 %73, label %74, label %.critedge46.thread._crit_edge

74:                                               ; preds = %70
  %75 = getelementptr inbounds i8, ptr %2, i64 32
  %76 = load i32, ptr %75, align 8, !tbaa !17
  %77 = getelementptr inbounds i8, ptr %5, i64 80
  %78 = load i32, ptr %77, align 8, !tbaa !32
  %79 = sub nsw i32 %76, %78
  br label %81

.critedge46.thread._crit_edge:                    ; preds = %.critedge46.thread, %70
  %80 = icmp eq i32 %66, %68
  %. = select i1 %80, i32 100, i32 %69
  br label %81

81:                                               ; preds = %.critedge44.thread, %.critedge46.thread._crit_edge, %74
  %.1 = phi i32 [ %79, %74 ], [ %., %.critedge46.thread._crit_edge ], [ 0, %.critedge44.thread ]
  ret i32 %.1
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.floor.f64(double) #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 #4 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 #5 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 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 #5 = { 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 #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }

!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, !13, i64 32}
!6 = !{!"_ZTS9Parameter", !7, i64 0, !13, i64 32, !14, i64 40, !15, i64 44, !15, i64 45, !15, i64 46, !14, i64 48, !16, i64 52, !14, i64 56}
!7 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !8, i64 0, !12, i64 8, !10, i64 16}
!8 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"long", !10, i64 0}
!13 = !{!"double", !10, i64 0}
!14 = !{!"int", !10, i64 0}
!15 = !{!"bool", !10, i64 0}
!16 = !{!"float", !10, i64 0}
!17 = !{!18, !14, i64 32}
!18 = !{!"_ZTS14breakpoint_str", !7, i64 0, !14, i64 32}
!19 = !{!6, !15, i64 45}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!6, !15, i64 44}
!23 = !{!24, !14, i64 40}
!24 = !{!"_ZTS8SVS_Node", !25, i64 0, !18, i64 8, !18, i64 48, !26, i64 88, !7, i64 112, !30, i64 144, !31, i64 152, !7, i64 160, !10, i64 192, !10, i64 197}
!25 = !{!"short", !10, i64 0}
!26 = !{!"_ZTSSt6vectorIP12Support_NodeSaIS1_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIP12Support_NodeSaIS1_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIP12Support_NodeSaIS1_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIP12Support_NodeSaIS1_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!30 = !{!"_ZTSSt4pairIiiE", !14, i64 0, !14, i64 4}
!31 = !{!"_ZTSSt4pairIbbE", !15, i64 0, !15, i64 1}
!32 = !{!24, !14, i64 80}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass