; LLVM IR from mickypaganini/SSI2016-jet-clustering :: spartyjet-4.0.2_mac/External/fastjet-3.0.0/plugins/CDFCones/CDFcode/MidPointAlg_152a2356 (6b37d13d)

; 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::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Bit_reference" = type { ptr, i64 }
%"class.std::vector.14" = type { %"struct.std::_Vector_base.15" }
%"struct.std::_Vector_base.15" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.16" = type { i8 }
%"class.std::vector.19" = type { %"struct.std::_Vector_base.20" }
%"struct.std::_Vector_base.20" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.21" = type { i8 }
%"class.fastjet::cdf::LorentzVector" = type { double, double, double, double }
%"class.fastjet::cdf::Cluster" = type { %"class.std::vector", %"class.fastjet::cdf::LorentzVector", %"class.fastjet::cdf::Centroid", double }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<fastjet::cdf::PhysicsTower, std::allocator<fastjet::cdf::PhysicsTower>>::_Vector_impl" }
%"struct.std::_Vector_base<fastjet::cdf::PhysicsTower, std::allocator<fastjet::cdf::PhysicsTower>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastjet::cdf::PhysicsTower, std::allocator<fastjet::cdf::PhysicsTower>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastjet::cdf::PhysicsTower, std::allocator<fastjet::cdf::PhysicsTower>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.fastjet::cdf::Centroid" = type { double, double, double }
%"class.fastjet::cdf::MidPointAlgorithm" = type <{ double, double, double, i32, i32, double, i32, [4 x i8] }>

; 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: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK7fastjet3cdf13LorentzVector2ptEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7fastjet3cdf17MidPointAlgorithm11iterateConeEdddRSt6vectorINS0_12PhysicsTowerESaIS3_EERS2_INS0_7ClusterESaIS7_EEb(ptr noundef nonnull align 8 dereferenceable(44), double noundef, double noundef, double noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), i1 noundef zeroext) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7fastjet3cdf17MidPointAlgorithm28findStableConesFromMidPointsERSt6vectorINS0_12PhysicsTowerESaIS3_EERS2_INS0_7ClusterESaIS7_EE(ptr noundef nonnull align 8 dereferenceable(44) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %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 %"class.std::vector.5", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca i32, align 4
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca %"struct.std::_Bit_reference", align 8
  %21 = alloca %"class.std::vector.14", align 8
  %22 = alloca %"class.std::allocator.16", align 1
  %23 = alloca %"class.std::vector.19", align 8
  %24 = alloca %"class.std::allocator.21", align 1
  %25 = alloca i32, align 4
  %26 = alloca i8, align 1
  %27 = alloca i32, align 4
  %28 = alloca %"class.fastjet::cdf::LorentzVector", align 8
  %29 = alloca i32, align 4
  %30 = alloca %"class.fastjet::cdf::LorentzVector", align 8
  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
  %31 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #5
  call void @_ZNSt6vectorIS_IbSaIbEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = call noundef i64 @_ZNKSt6vectorIN7fastjet3cdf7ClusterESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #5
  %34 = sub i64 %33, 1
  invoke void @_ZNSt6vectorIS_IbSaIbEESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %34)
          to label %35 unwind label %43

35:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 1, ptr %10, align 4, !tbaa !9
  br label %36

36:                                               ; preds = %158, %35
  %37 = load i32, ptr %10, align 4, !tbaa !9
  %38 = sext i32 %37 to i64
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = call noundef i64 @_ZNKSt6vectorIN7fastjet3cdf7ClusterESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #5
  %41 = icmp ult i64 %38, %40
  br i1 %41, label %47, label %42

42:                                               ; preds = %36
  store i32 2, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %164

43:                                               ; preds = %3
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %8, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %9, align 4
  br label %259

47:                                               ; preds = %36
  %48 = load i32, ptr %10, align 4, !tbaa !9
  %49 = sub nsw i32 %48, 1
  %50 = sext i32 %49 to i64
  %51 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %50) #5
  %52 = load i32, ptr %10, align 4, !tbaa !9
  %53 = sext i32 %52 to i64
  invoke void @_ZNSt6vectorIbSaIbEE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(40) %51, i64 noundef %53, i1 noundef zeroext false)
          to label %54 unwind label %74

54:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = load i32, ptr %10, align 4, !tbaa !9
  %57 = sext i32 %56 to i64
  %58 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorIN7fastjet3cdf7ClusterESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %55, i64 noundef %57) #5
  %59 = getelementptr inbounds %"class.fastjet::cdf::Cluster", ptr %58, i32 0, i32 1
  %60 = invoke noundef double @_ZNK7fastjet3cdf13LorentzVector1yEv(ptr noundef nonnull align 8 dereferenceable(32) %59)
          to label %61 unwind label %78

61:                                               ; preds = %54
  store double %60, ptr %12, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  %63 = load i32, ptr %10, align 4, !tbaa !9
  %64 = sext i32 %63 to i64
  %65 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorIN7fastjet3cdf7ClusterESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef %64) #5
  %66 = getelementptr inbounds %"class.fastjet::cdf::Cluster", ptr %65, i32 0, i32 1
  %67 = invoke noundef double @_ZNK7fastjet3cdf13LorentzVector3phiEv(ptr noundef nonnull align 8 dereferenceable(32) %66)
          to label %68 unwind label %82

68:                                               ; preds = %61
  store double %67, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %69

69:                                               ; preds = %148, %68
  %70 = load i32, ptr %14, align 4, !tbaa !9
  %71 = load i32, ptr %10, align 4, !tbaa !9
  %72 = icmp slt i32 %70, %71
  br i1 %72, label %86, label %73

73:                                               ; preds = %69
  store i32 5, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %157

74:                                               ; preds = %47
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %8, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %9, align 4
  br label %163

78:                                               ; preds = %54
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %8, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %9, align 4
  br label %162

82:                                               ; preds = %61
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %8, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %9, align 4
  br label %161

86:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %87 = load ptr, ptr %6, align 8, !tbaa !5
  %88 = load i32, ptr %14, align 4, !tbaa !9
  %89 = sext i32 %88 to i64
  %90 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorIN7fastjet3cdf7ClusterESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef %89) #5
  %91 = getelementptr inbounds %"class.fastjet::cdf::Cluster", ptr %90, i32 0, i32 1
  %92 = invoke noundef double @_ZNK7fastjet3cdf13LorentzVector1yEv(ptr noundef nonnull align 8 dereferenceable(32) %91)
          to label %93 unwind label %114

93:                                               ; preds = %86
  store double %92, ptr %15, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  %95 = load i32, ptr %14, align 4, !tbaa !9
  %96 = sext i32 %95 to i64
  %97 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorIN7fastjet3cdf7ClusterESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %94, i64 noundef %96) #5
  %98 = getelementptr inbounds %"class.fastjet::cdf::Cluster", ptr %97, i32 0, i32 1
  %99 = invoke noundef double @_ZNK7fastjet3cdf13LorentzVector3phiEv(ptr noundef nonnull align 8 dereferenceable(32) %98)
          to label %100 unwind label %118

100:                                              ; preds = %93
  store double %99, ptr %16, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %101 = load double, ptr %12, align 8, !tbaa !11
  %102 = load double, ptr %15, align 8, !tbaa !11
  %103 = fsub double %101, %102
  %104 = call double @llvm.fabs.f64(double %103)
  store double %104, ptr %17, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %105 = load double, ptr %13, align 8, !tbaa !11
  %106 = load double, ptr %16, align 8, !tbaa !11
  %107 = fsub double %105, %106
  %108 = call double @llvm.fabs.f64(double %107)
  store double %108, ptr %18, align 8, !tbaa !11
  %109 = load double, ptr %18, align 8, !tbaa !11
  %110 = fcmp ogt double %109, 0x400921FB54442D18
  br i1 %110, label %111, label %122

111:                                              ; preds = %100
  %112 = load double, ptr %18, align 8, !tbaa !11
  %113 = fsub double 0x401921FB54442D18, %112
  store double %113, ptr %18, align 8, !tbaa !11
  br label %122

114:                                              ; preds = %86
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %8, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %9, align 4
  br label %156

118:                                              ; preds = %93
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %8, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %9, align 4
  br label %155

122:                                              ; preds = %111, %100
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %123 = load double, ptr %17, align 8, !tbaa !11
  %124 = load double, ptr %17, align 8, !tbaa !11
  %125 = load double, ptr %18, align 8, !tbaa !11
  %126 = load double, ptr %18, align 8, !tbaa !11
  %127 = fmul double %125, %126
  %128 = call double @llvm.fmuladd.f64(double %123, double %124, double %127)
  %129 = call double @sqrt(double noundef %128) #5
  store double %129, ptr %19, align 8, !tbaa !11
  %130 = load double, ptr %19, align 8, !tbaa !11
  %131 = getelementptr inbounds %"class.fastjet::cdf::MidPointAlgorithm", ptr %31, i32 0, i32 1
  %132 = load double, ptr %131, align 8, !tbaa !13
  %133 = fmul double 2.000000e+00, %132
  %134 = fcmp olt double %130, %133
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #5
  %135 = load i32, ptr %10, align 4, !tbaa !9
  %136 = sub nsw i32 %135, 1
  %137 = sext i32 %136 to i64
  %138 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %137) #5
  %139 = load i32, ptr %14, align 4, !tbaa !9
  %140 = sext i32 %139 to i64
  %141 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %138, i64 noundef %140)
          to label %142 unwind label %151

142:                                              ; preds = %122
  %143 = getelementptr inbounds { ptr, i64 }, ptr %20, i32 0, i32 0
  %144 = extractvalue { ptr, i64 } %141, 0
  store ptr %144, ptr %143, align 8
  %145 = getelementptr inbounds { ptr, i64 }, ptr %20, i32 0, i32 1
  %146 = extractvalue { ptr, i64 } %141, 1
  store i64 %146, ptr %145, align 8
  %147 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %20, i1 noundef zeroext %134) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %148

148:                                              ; preds = %142
  %149 = load i32, ptr %14, align 4, !tbaa !9
  %150 = add nsw i32 %149, 1
  store i32 %150, ptr %14, align 4, !tbaa !9
  br label %69, !llvm.loop !16

151:                                              ; preds = %122
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %8, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %155

155:                                              ; preds = %151, %118
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %156

156:                                              ; preds = %155, %114
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %161

157:                                              ; preds = %73
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %158

158:                                              ; preds = %157
  %159 = load i32, ptr %10, align 4, !tbaa !9
  %160 = add nsw i32 %159, 1
  store i32 %160, ptr %10, align 4, !tbaa !9
  br label %36, !llvm.loop !18

161:                                              ; preds = %156, %82
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %162

162:                                              ; preds = %161, %78
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %163

163:                                              ; preds = %162, %74
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %259

164:                                              ; preds = %42
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #5
  call void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #5
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef 0, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %165 unwind label %175

165:                                              ; preds = %164
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #5
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #5
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef 0, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %166 unwind label %179

166:                                              ; preds = %165
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  %167 = getelementptr inbounds %"class.fastjet::cdf::MidPointAlgorithm", ptr %31, i32 0, i32 3
  %168 = load i32, ptr %167, align 8, !tbaa !19
  store i32 %168, ptr %25, align 4, !tbaa !9
  %169 = load i32, ptr %25, align 4, !tbaa !9
  %170 = icmp ne i32 %169, 0
  br i1 %170, label %183, label %171

171:                                              ; preds = %166
  %172 = load ptr, ptr %6, align 8, !tbaa !5
  %173 = call noundef i64 @_ZNKSt6vectorIN7fastjet3cdf7ClusterESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %172) #5
  %174 = trunc i64 %173 to i32
  store i32 %174, ptr %25, align 4, !tbaa !9
  br label %183

175:                                              ; preds = %164
  %176 = landingpad { ptr, i32 }
          cleanup
  %177 = extractvalue { ptr, i32 } %176, 0
  store ptr %177, ptr %8, align 8
  %178 = extractvalue { ptr, i32 } %176, 1
  store i32 %178, ptr %9, align 4
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #5
  br label %258

179:                                              ; preds = %165
  %180 = landingpad { ptr, i32 }
          cleanup
  %181 = extractvalue { ptr, i32 } %180, 0
  store ptr %181, ptr %8, align 8
  %182 = extractvalue { ptr, i32 } %180, 1
  store i32 %182, ptr %9, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #5
  br label %257

183:                                              ; preds = %171, %166
  %184 = load i32, ptr %25, align 4, !tbaa !9
  invoke void @_ZN7fastjet3cdf17MidPointAlgorithm18addClustersToPairsERSt6vectorIiSaIiEERS2_IS4_SaIS4_EERS2_IS2_IbSaIbEESaISA_EEi(ptr noundef nonnull align 8 dereferenceable(44) %31, ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef %184)
          to label %185 unwind label %192

185:                                              ; preds = %183
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #5
  store i8 0, ptr %26, align 1, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  store i32 0, ptr %27, align 4, !tbaa !9
  br label %186

186:                                              ; preds = %244, %185
  %187 = load i32, ptr %27, align 4, !tbaa !9
  %188 = sext i32 %187 to i64
  %189 = call noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #5
  %190 = icmp ult i64 %188, %189
  br i1 %190, label %196, label %191

191:                                              ; preds = %186
  store i32 8, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  br label %248

192:                                              ; preds = %183
  %193 = landingpad { ptr, i32 }
          cleanup
  %194 = extractvalue { ptr, i32 } %193, 0
  store ptr %194, ptr %8, align 8
  %195 = extractvalue { ptr, i32 } %193, 1
  store i32 %195, ptr %9, align 4
  br label %256

196:                                              ; preds = %186
  call void @llvm.lifetime.start.p0(i64 32, ptr %28) #5
  invoke void @_ZN7fastjet3cdf13LorentzVectorC2Edddd(ptr noundef nonnull align 8 dereferenceable(32) %28, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00)
          to label %197 unwind label %207

197:                                              ; preds = %196
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %198

198:                                              ; preds = %225, %197
  %199 = load i32, ptr %29, align 4, !tbaa !9
  %200 = sext i32 %199 to i64
  %201 = load i32, ptr %27, align 4, !tbaa !9
  %202 = sext i32 %201 to i64
  %203 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %202) #5
  %204 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %203) #5
  %205 = icmp ult i64 %200, %204
  br i1 %205, label %211, label %206

206:                                              ; preds = %198
  store i32 11, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  br label %232

207:                                              ; preds = %238, %236, %234, %232, %196
  %208 = landingpad { ptr, i32 }
          cleanup
  %209 = extractvalue { ptr, i32 } %208, 0
  store ptr %209, ptr %8, align 8
  %210 = extractvalue { ptr, i32 } %208, 1
  store i32 %210, ptr %9, align 4
  br label %247

211:                                              ; preds = %198
  %212 = load ptr, ptr %6, align 8, !tbaa !5
  %213 = load i32, ptr %27, align 4, !tbaa !9
  %214 = sext i32 %213 to i64
  %215 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %214) #5
  %216 = load i32, ptr %29, align 4, !tbaa !9
  %217 = sext i32 %216 to i64
  %218 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %215, i64 noundef %217) #5
  %219 = load i32, ptr %218, align 4, !tbaa !9
  %220 = sext i32 %219 to i64
  %221 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorIN7fastjet3cdf7ClusterESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %212, i64 noundef %220) #5
  %222 = getelementptr inbounds %"class.fastjet::cdf::Cluster", ptr %221, i32 0, i32 1
  invoke void @_ZN7fastjet3cdf13LorentzVectorC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef nonnull align 8 dereferenceable(32) %222)
          to label %223 unwind label %228

223:                                              ; preds = %211
  invoke void @_ZN7fastjet3cdf13LorentzVector3addES1_(ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef %30)
          to label %224 unwind label %228

224:                                              ; preds = %223
  br label %225

225:                                              ; preds = %224
  %226 = load i32, ptr %29, align 4, !tbaa !9
  %227 = add nsw i32 %226, 1
  store i32 %227, ptr %29, align 4, !tbaa !9
  br label %198, !llvm.loop !22

228:                                              ; preds = %223, %211
  %229 = landingpad { ptr, i32 }
          cleanup
  %230 = extractvalue { ptr, i32 } %229, 0
  store ptr %230, ptr %8, align 8
  %231 = extractvalue { ptr, i32 } %229, 1
  store i32 %231, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  br label %247

232:                                              ; preds = %206
  %233 = invoke noundef double @_ZNK7fastjet3cdf13LorentzVector1yEv(ptr noundef nonnull align 8 dereferenceable(32) %28)
          to label %234 unwind label %207

234:                                              ; preds = %232
  %235 = invoke noundef double @_ZNK7fastjet3cdf13LorentzVector3phiEv(ptr noundef nonnull align 8 dereferenceable(32) %28)
          to label %236 unwind label %207

236:                                              ; preds = %234
  %237 = invoke noundef double @_ZNK7fastjet3cdf13LorentzVector2ptEv(ptr noundef nonnull align 8 dereferenceable(32) %28)
          to label %238 unwind label %207

238:                                              ; preds = %236
  %239 = load ptr, ptr %5, align 8, !tbaa !5
  %240 = load ptr, ptr %6, align 8, !tbaa !5
  %241 = load i8, ptr %26, align 1, !tbaa !20, !range !23, !noundef !24
  %242 = trunc i8 %241 to i1
  invoke void @_ZN7fastjet3cdf17MidPointAlgorithm11iterateConeEdddRSt6vectorINS0_12PhysicsTowerESaIS3_EERS2_INS0_7ClusterESaIS7_EEb(ptr noundef nonnull align 8 dereferenceable(44) %31, double noundef %233, double noundef %235, double noundef %237, ptr noundef nonnull align 8 dereferenceable(24) %239, ptr noundef nonnull align 8 dereferenceable(24) %240, i1 noundef zeroext %242)
          to label %243 unwind label %207

243:                                              ; preds = %238
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #5
  br label %244

244:                                              ; preds = %243
  %245 = load i32, ptr %27, align 4, !tbaa !9
  %246 = add nsw i32 %245, 1
  store i32 %246, ptr %27, align 4, !tbaa !9
  br label %186, !llvm.loop !25

247:                                              ; preds = %228, %207
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  br label %255

248:                                              ; preds = %191
  %249 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN7fastjet3cdf17MidPointAlgorithm10local_sortERSt6vectorINS0_7ClusterESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(44) %31, ptr noundef nonnull align 8 dereferenceable(24) %249)
          to label %250 unwind label %251

250:                                              ; preds = %248
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #5
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #5
  call void @_ZNSt6vectorIS_IbSaIbEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #5
  ret void

251:                                              ; preds = %248
  %252 = landingpad { ptr, i32 }
          cleanup
  %253 = extractvalue { ptr, i32 } %252, 0
  store ptr %253, ptr %8, align 8
  %254 = extractvalue { ptr, i32 } %252, 1
  store i32 %254, ptr %9, align 4
  br label %255

255:                                              ; preds = %251, %247
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #5
  br label %256

256:                                              ; preds = %255, %192
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #5
  br label %257

257:                                              ; preds = %256, %179
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #5
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #5
  br label %258

258:                                              ; preds = %257, %175
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #5
  br label %259

259:                                              ; preds = %258, %163, %43
  call void @_ZNSt6vectorIS_IbSaIbEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #5
  br label %260

260:                                              ; preds = %259
  %261 = load ptr, ptr %8, align 8
  %262 = load i32, ptr %9, align 4
  %263 = insertvalue { ptr, i32 } poison, ptr %261, 0
  %264 = insertvalue { ptr, i32 } %263, i32 %262, 1
  resume { ptr, i32 } %264
}

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIbSaIbEE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef, i1 noundef zeroext) #2 align 2

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #3

; Function Attrs: nounwind
declare double @sqrt(double noundef) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) #2 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !12, i64 8}
!14 = !{!"_ZTSN7fastjet3cdf17MidPointAlgorithmE", !12, i64 0, !12, i64 8, !12, i64 16, !10, i64 24, !10, i64 28, !12, i64 32, !15, i64 40}
!15 = !{!"_ZTSN7fastjet3cdf17MidPointAlgorithm15SplitMergeScaleE", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = !{!14, !10, i64 24}
!20 = !{!21, !21, i64 0}
!21 = !{!"bool", !7, i64 0}
!22 = distinct !{!22, !17}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = distinct !{!25, !17}


; 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::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Bit_reference" = type { ptr, i64 }
%"class.std::vector.14" = type { %"struct.std::_Vector_base.15" }
%"struct.std::_Vector_base.15" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.16" = type { i8 }
%"class.std::vector.19" = type { %"struct.std::_Vector_base.20" }
%"struct.std::_Vector_base.20" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.21" = type { i8 }
%"class.fastjet::cdf::LorentzVector" = type { double, double, double, double }

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7fastjet3cdf17MidPointAlgorithm11iterateConeEdddRSt6vectorINS0_12PhysicsTowerESaIS3_EERS2_INS0_7ClusterESaIS7_EEb(ptr noundef nonnull align 8 dereferenceable(44), double noundef, double noundef, double noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), i1 noundef zeroext) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7fastjet3cdf17MidPointAlgorithm28findStableConesFromMidPointsERSt6vectorINS0_12PhysicsTowerESaIS3_EERS2_INS0_7ClusterESaIS7_EE(ptr noundef nonnull align 8 dereferenceable(44) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::vector.5", align 8
  %5 = alloca %"struct.std::_Bit_reference", align 8
  %6 = alloca %"class.std::vector.14", align 8
  %7 = alloca %"class.std::allocator.16", align 1
  %8 = alloca %"class.std::vector.19", align 8
  %9 = alloca %"class.std::allocator.21", align 1
  %10 = alloca %"class.fastjet::cdf::LorentzVector", align 8
  %11 = alloca %"class.fastjet::cdf::LorentzVector", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #5
  call void @_ZNSt6vectorIS_IbSaIbEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  %12 = call noundef i64 @_ZNKSt6vectorIN7fastjet3cdf7ClusterESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %13 = add i64 %12, -1
  invoke void @_ZNSt6vectorIS_IbSaIbEESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %13)
          to label %.preheader72 unwind label %18

.preheader72:                                     ; preds = %3
  %14 = call noundef i64 @_ZNKSt6vectorIN7fastjet3cdf7ClusterESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %15 = icmp ugt i64 %14, 1
  br i1 %15, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader72
  %16 = getelementptr inbounds i8, ptr %0, i64 8
  %17 = getelementptr inbounds i8, ptr %5, i64 8
  br label %20

._crit_edge:                                      ; preds = %30, %.preheader72
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #5
  call void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef 0, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %60 unwind label %67

18:                                               ; preds = %3
  %19 = landingpad { ptr, i32 }
          cleanup
  br label %100

20:                                               ; preds = %.lr.ph, %30
  %indvars.iv85 = phi i64 [ 1, %.lr.ph ], [ %indvars.iv.next86, %30 ]
  %21 = add nsw i64 %indvars.iv85, -1
  %22 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %21) #5
  invoke void @_ZNSt6vectorIbSaIbEE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(40) %22, i64 noundef %indvars.iv85, i1 noundef zeroext false)
          to label %23 unwind label %33

23:                                               ; preds = %20
  %24 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorIN7fastjet3cdf7ClusterESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv85) #5
  %25 = getelementptr inbounds i8, ptr %24, i64 24
  %26 = call noundef double @_ZNK7fastjet3cdf13LorentzVector1yEv(ptr noundef nonnull align 8 dereferenceable(32) %25)
  %27 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorIN7fastjet3cdf7ClusterESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv85) #5
  %28 = getelementptr inbounds i8, ptr %27, i64 24
  %29 = call noundef double @_ZNK7fastjet3cdf13LorentzVector3phiEv(ptr noundef nonnull align 8 dereferenceable(32) %28)
  br label %35

30:                                               ; preds = %45
  %indvars.iv.next86 = add nuw nsw i64 %indvars.iv85, 1
  %31 = call noundef i64 @_ZNKSt6vectorIN7fastjet3cdf7ClusterESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %32 = icmp ugt i64 %31, %indvars.iv.next86
  br i1 %32, label %20, label %._crit_edge, !llvm.loop !5

33:                                               ; preds = %20
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %100

35:                                               ; preds = %23, %45
  %indvars.iv = phi i64 [ 0, %23 ], [ %indvars.iv.next, %45 ]
  %36 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorIN7fastjet3cdf7ClusterESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #5
  %37 = getelementptr inbounds i8, ptr %36, i64 24
  %38 = call noundef double @_ZNK7fastjet3cdf13LorentzVector1yEv(ptr noundef nonnull align 8 dereferenceable(32) %37)
  %39 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorIN7fastjet3cdf7ClusterESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #5
  %40 = getelementptr inbounds i8, ptr %39, i64 24
  %41 = call noundef double @_ZNK7fastjet3cdf13LorentzVector3phiEv(ptr noundef nonnull align 8 dereferenceable(32) %40)
  %42 = load double, ptr %16, align 8, !tbaa !7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  %43 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %21) #5
  %44 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %43, i64 noundef %indvars.iv)
          to label %45 unwind label %58

45:                                               ; preds = %35
  %46 = fsub double %26, %38
  %47 = fsub double %29, %41
  %48 = call double @llvm.fabs.f64(double %47)
  %49 = fcmp ogt double %48, 0x400921FB54442D18
  %50 = fsub double 0x401921FB54442D18, %48
  %.056 = select i1 %49, double %50, double %48
  %51 = fmul double %.056, %.056
  %52 = call double @llvm.fmuladd.f64(double %46, double %46, double %51)
  %sqrt = call double @llvm.sqrt.f64(double %52)
  %53 = fmul double %42, 2.000000e+00
  %54 = fcmp olt double %sqrt, %53
  %55 = extractvalue { ptr, i64 } %44, 0
  store ptr %55, ptr %5, align 8
  %56 = extractvalue { ptr, i64 } %44, 1
  store i64 %56, ptr %17, align 8
  %57 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %5, i1 noundef zeroext %54) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %indvars.iv85
  br i1 %exitcond.not, label %30, label %35, !llvm.loop !14

58:                                               ; preds = %35
  %59 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  br label %100

60:                                               ; preds = %._crit_edge
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #5
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef 0, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %61 unwind label %69

61:                                               ; preds = %60
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #5
  %62 = getelementptr inbounds i8, ptr %0, i64 24
  %63 = load i32, ptr %62, align 8, !tbaa !15
  %.not = icmp eq i32 %63, 0
  br i1 %.not, label %64, label %71

64:                                               ; preds = %61
  %65 = call noundef i64 @_ZNKSt6vectorIN7fastjet3cdf7ClusterESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %66 = trunc i64 %65 to i32
  br label %71

67:                                               ; preds = %._crit_edge
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #5
  br label %99

69:                                               ; preds = %60
  %70 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #5
  br label %98

71:                                               ; preds = %64, %61
  %.049 = phi i32 [ %63, %61 ], [ %66, %64 ]
  invoke void @_ZN7fastjet3cdf17MidPointAlgorithm18addClustersToPairsERSt6vectorIiSaIiEERS2_IS4_SaIS4_EERS2_IS2_IbSaIbEESaISA_EEi(ptr noundef nonnull align 8 dereferenceable(44) %0, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef %.049)
          to label %.preheader unwind label %73

.preheader:                                       ; preds = %71
  %72 = call noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  %.not82 = icmp eq i64 %72, 0
  br i1 %.not82, label %._crit_edge81, label %.lr.ph80

._crit_edge81:                                    ; preds = %91, %.preheader
  invoke void @_ZN7fastjet3cdf17MidPointAlgorithm10local_sortERSt6vectorINS0_7ClusterESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(44) %0, ptr noundef nonnull align 8 dereferenceable(24) %2)
          to label %94 unwind label %95

73:                                               ; preds = %71
  %74 = landingpad { ptr, i32 }
          cleanup
  br label %97

.lr.ph80:                                         ; preds = %.preheader, %91
  %indvars.iv91 = phi i64 [ %indvars.iv.next92, %91 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #5
  call void @_ZN7fastjet3cdf13LorentzVectorC2Edddd(ptr noundef nonnull align 8 dereferenceable(32) %10, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %75 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv91) #5
  %76 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %75) #5
  %.not83 = icmp eq i64 %76, 0
  br i1 %.not83, label %._crit_edge78, label %.lr.ph77

._crit_edge78:                                    ; preds = %.lr.ph77, %.lr.ph80
  %77 = call noundef double @_ZNK7fastjet3cdf13LorentzVector1yEv(ptr noundef nonnull align 8 dereferenceable(32) %10)
  %78 = call noundef double @_ZNK7fastjet3cdf13LorentzVector3phiEv(ptr noundef nonnull align 8 dereferenceable(32) %10)
  %79 = call noundef double @_ZNK7fastjet3cdf13LorentzVector2ptEv(ptr noundef nonnull align 8 dereferenceable(32) %10)
  invoke void @_ZN7fastjet3cdf17MidPointAlgorithm11iterateConeEdddRSt6vectorINS0_12PhysicsTowerESaIS3_EERS2_INS0_7ClusterESaIS7_EEb(ptr noundef nonnull align 8 dereferenceable(44) %0, double noundef %77, double noundef %78, double noundef %79, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, i1 noundef zeroext false)
          to label %91 unwind label %80

80:                                               ; preds = %._crit_edge78
  %81 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #5
  br label %97

.lr.ph77:                                         ; preds = %.lr.ph80, %.lr.ph77
  %indvars.iv88 = phi i64 [ %indvars.iv.next89, %.lr.ph77 ], [ 0, %.lr.ph80 ]
  %82 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv91) #5
  %83 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %82, i64 noundef %indvars.iv88) #5
  %84 = load i32, ptr %83, align 4, !tbaa !16
  %85 = sext i32 %84 to i64
  %86 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorIN7fastjet3cdf7ClusterESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %85) #5
  %87 = getelementptr inbounds i8, ptr %86, i64 24
  call void @_ZN7fastjet3cdf13LorentzVectorC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(32) %87)
  call void @_ZN7fastjet3cdf13LorentzVector3addES1_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull %11)
  %indvars.iv.next89 = add nuw nsw i64 %indvars.iv88, 1
  %88 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv91) #5
  %89 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %88) #5
  %90 = icmp ugt i64 %89, %indvars.iv.next89
  br i1 %90, label %.lr.ph77, label %._crit_edge78, !llvm.loop !17

91:                                               ; preds = %._crit_edge78
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #5
  %indvars.iv.next92 = add nuw nsw i64 %indvars.iv91, 1
  %92 = call noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  %93 = icmp ugt i64 %92, %indvars.iv.next92
  br i1 %93, label %.lr.ph80, label %._crit_edge81, !llvm.loop !18

94:                                               ; preds = %._crit_edge81
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
  call void @_ZNSt6vectorIS_IbSaIbEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  ret void

95:                                               ; preds = %._crit_edge81
  %96 = landingpad { ptr, i32 }
          cleanup
  br label %97

97:                                               ; preds = %80, %95, %73
  %.pn.pn = phi { ptr, i32 } [ %74, %73 ], [ %81, %80 ], [ %96, %95 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  br label %98

98:                                               ; preds = %97, %69
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %97 ], [ %70, %69 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  br label %99

99:                                               ; preds = %98, %67
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %98 ], [ %68, %67 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
  br label %100

100:                                              ; preds = %33, %58, %99, %18
  %.pn69.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %99 ], [ %19, %18 ], [ %59, %58 ], [ %34, %33 ]
  call void @_ZNSt6vectorIS_IbSaIbEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  resume { ptr, i32 } %.pn69.pn
}

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIbSaIbEE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef, i1 noundef zeroext) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) local_unnamed_addr #2 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.sqrt.f64(double) #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !9, i64 8}
!8 = !{!"_ZTSN7fastjet3cdf17MidPointAlgorithmE", !9, i64 0, !9, i64 8, !9, i64 16, !12, i64 24, !12, i64 28, !9, i64 32, !13, i64 40}
!9 = !{!"double", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"int", !10, i64 0}
!13 = !{!"_ZTSN7fastjet3cdf17MidPointAlgorithm15SplitMergeScaleE", !10, i64 0}
!14 = distinct !{!14, !6}
!15 = !{!8, !12, i64 24}
!16 = !{!12, !12, i64 0}
!17 = distinct !{!17, !6}
!18 = distinct !{!18, !6}


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