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

; 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.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::LorentzVector" = type { double, double, double, double }
%"class.fastjet::cdf::Centroid" = type { double, double, double }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.fastjet::cdf::PhysicsTower" = type <{ %"class.fastjet::cdf::LorentzVector", %"class.fastjet::cdf::CalTower", i32, [4 x i8] }>
%"class.fastjet::cdf::CalTower" = type { double, double, double, i32, i32 }
%"class.__gnu_cxx::__normal_iterator.24" = type { ptr }
%"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: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIN7fastjet3cdf12PhysicsTowerESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

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

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

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

; 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
define dso_local void @_ZN7fastjet3cdf17MidPointAlgorithm11iterateConeEdddRSt6vectorINS0_12PhysicsTowerESaIS3_EERS2_INS0_7ClusterESaIS7_EEb(ptr noundef nonnull align 8 dereferenceable(44) %0, double noundef %1, double noundef %2, double noundef %3, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, i1 noundef zeroext %6) #3 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca ptr, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i8, align 1
  %15 = alloca i32, align 4
  %16 = alloca i8, align 1
  %17 = alloca %"class.fastjet::cdf::Cluster", align 8
  %18 = alloca double, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca %"class.fastjet::cdf::PhysicsTower", align 8
  %27 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  %31 = alloca i8, align 1
  %32 = alloca %"class.__gnu_cxx::__normal_iterator.24", align 8
  %33 = alloca %"class.__gnu_cxx::__normal_iterator.24", align 8
  %34 = alloca %"class.fastjet::cdf::LorentzVector", align 8
  %35 = alloca %"class.__gnu_cxx::__normal_iterator.24", align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store volatile double %1, ptr %9, align 8, !tbaa !9
  store volatile double %2, ptr %10, align 8, !tbaa !9
  store volatile double %3, ptr %11, align 8, !tbaa !9
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  %36 = zext i1 %6 to i8
  store i8 %36, ptr %14, align 1, !tbaa !11
  %37 = load ptr, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #6
  store i8 1, ptr %16, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 88, ptr %17) #6
  call void @_ZN7fastjet3cdf7ClusterC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %17)
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %38 = getelementptr inbounds %"class.fastjet::cdf::MidPointAlgorithm", ptr %37, i32 0, i32 1
  %39 = load double, ptr %38, align 8, !tbaa !15
  store double %39, ptr %18, align 8, !tbaa !9
  %40 = load i8, ptr %14, align 1, !tbaa !11, !range !18, !noundef !19
  %41 = trunc i8 %40 to i1
  br i1 %41, label %42, label %48

42:                                               ; preds = %7
  %43 = getelementptr inbounds %"class.fastjet::cdf::MidPointAlgorithm", ptr %37, i32 0, i32 2
  %44 = load double, ptr %43, align 8, !tbaa !20
  %45 = call double @sqrt(double noundef %44) #6
  %46 = load double, ptr %18, align 8, !tbaa !9
  %47 = fmul double %46, %45
  store double %47, ptr %18, align 8, !tbaa !9
  br label %48

48:                                               ; preds = %42, %7
  br label %49

49:                                               ; preds = %198, %48
  %50 = load i32, ptr %15, align 4, !tbaa !13
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr %15, align 4, !tbaa !13
  %52 = getelementptr inbounds %"class.fastjet::cdf::MidPointAlgorithm", ptr %37, i32 0, i32 4
  %53 = load i32, ptr %52, align 4, !tbaa !21
  %54 = add nsw i32 %53, 1
  %55 = icmp slt i32 %50, %54
  br i1 %55, label %56, label %59

56:                                               ; preds = %49
  %57 = load i8, ptr %16, align 1, !tbaa !11, !range !18, !noundef !19
  %58 = trunc i8 %57 to i1
  br label %59

59:                                               ; preds = %56, %49
  %60 = phi i1 [ false, %49 ], [ %58, %56 ]
  br i1 %60, label %61, label %199

61:                                               ; preds = %59
  invoke void @_ZN7fastjet3cdf7Cluster5clearEv(ptr noundef nonnull align 8 dereferenceable(88) %17)
          to label %62 unwind label %71

62:                                               ; preds = %61
  %63 = load i32, ptr %15, align 4, !tbaa !13
  %64 = getelementptr inbounds %"class.fastjet::cdf::MidPointAlgorithm", ptr %37, i32 0, i32 4
  %65 = load i32, ptr %64, align 4, !tbaa !21
  %66 = add nsw i32 %65, 1
  %67 = icmp eq i32 %63, %66
  br i1 %67, label %68, label %75

68:                                               ; preds = %62
  %69 = getelementptr inbounds %"class.fastjet::cdf::MidPointAlgorithm", ptr %37, i32 0, i32 1
  %70 = load double, ptr %69, align 8, !tbaa !15
  store double %70, ptr %18, align 8, !tbaa !9
  br label %75

71:                                               ; preds = %138, %61
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %19, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %20, align 4
  br label %241

75:                                               ; preds = %68, %62
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %76 = load ptr, ptr %12, align 8, !tbaa !5
  %77 = call ptr @_ZNSt6vectorIN7fastjet3cdf12PhysicsTowerESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %76) #6
  %78 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  store ptr %77, ptr %78, align 8
  br label %79

79:                                               ; preds = %133, %75
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %80 = load ptr, ptr %12, align 8, !tbaa !5
  %81 = call ptr @_ZNSt6vectorIN7fastjet3cdf12PhysicsTowerESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %80) #6
  %82 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %22, i32 0, i32 0
  store ptr %81, ptr %82, align 8
  %83 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7fastjet3cdf12PhysicsTowerESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br i1 %83, label %85, label %84

84:                                               ; preds = %79
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %138

85:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %86 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf12PhysicsTowerESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  %87 = getelementptr inbounds %"class.fastjet::cdf::PhysicsTower", ptr %86, i32 0, i32 0
  %88 = invoke noundef double @_ZNK7fastjet3cdf13LorentzVector1yEv(ptr noundef nonnull align 8 dereferenceable(32) %87)
          to label %89 unwind label %105

89:                                               ; preds = %85
  %90 = load volatile double, ptr %9, align 8, !tbaa !9
  %91 = fsub double %88, %90
  %92 = call double @llvm.fabs.f64(double %91)
  store double %92, ptr %23, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %93 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf12PhysicsTowerESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  %94 = getelementptr inbounds %"class.fastjet::cdf::PhysicsTower", ptr %93, i32 0, i32 0
  %95 = invoke noundef double @_ZNK7fastjet3cdf13LorentzVector3phiEv(ptr noundef nonnull align 8 dereferenceable(32) %94)
          to label %96 unwind label %109

96:                                               ; preds = %89
  %97 = load volatile double, ptr %10, align 8, !tbaa !9
  %98 = fsub double %95, %97
  %99 = call double @llvm.fabs.f64(double %98)
  store double %99, ptr %24, align 8, !tbaa !9
  %100 = load double, ptr %24, align 8, !tbaa !9
  %101 = fcmp ogt double %100, 0x400921FB54442D18
  br i1 %101, label %102, label %113

102:                                              ; preds = %96
  %103 = load double, ptr %24, align 8, !tbaa !9
  %104 = fsub double 0x401921FB54442D18, %103
  store double %104, ptr %24, align 8, !tbaa !9
  br label %113

105:                                              ; preds = %85
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %19, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %20, align 4
  br label %137

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

113:                                              ; preds = %102, %96
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %114 = load double, ptr %23, align 8, !tbaa !9
  %115 = load double, ptr %23, align 8, !tbaa !9
  %116 = load double, ptr %24, align 8, !tbaa !9
  %117 = load double, ptr %24, align 8, !tbaa !9
  %118 = fmul double %116, %117
  %119 = call double @llvm.fmuladd.f64(double %114, double %115, double %118)
  %120 = call double @sqrt(double noundef %119) #6
  store double %120, ptr %25, align 8, !tbaa !9
  %121 = load double, ptr %25, align 8, !tbaa !9
  %122 = load double, ptr %18, align 8, !tbaa !9
  %123 = fcmp olt double %121, %122
  br i1 %123, label %124, label %132

124:                                              ; preds = %113
  %125 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf12PhysicsTowerESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  invoke void @_ZN7fastjet3cdf12PhysicsTowerC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(68) %26, ptr noundef nonnull align 8 dereferenceable(68) %125)
          to label %126 unwind label %128

126:                                              ; preds = %124
  invoke void @_ZN7fastjet3cdf7Cluster8addTowerENS0_12PhysicsTowerE(ptr noundef nonnull align 8 dereferenceable(88) %17, ptr noundef %26)
          to label %127 unwind label %128

127:                                              ; preds = %126
  br label %132

128:                                              ; preds = %126, %124
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %19, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  br label %136

132:                                              ; preds = %127, %113
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %133

133:                                              ; preds = %132
  %134 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf12PhysicsTowerESt6vectorIS3_SaIS3_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %21, i32 noundef 0) #6
  %135 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %27, i32 0, i32 0
  store ptr %134, ptr %135, align 8
  br label %79, !llvm.loop !22

136:                                              ; preds = %128, %109
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br label %137

137:                                              ; preds = %136, %105
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %241

138:                                              ; preds = %84
  %139 = invoke noundef i32 @_ZN7fastjet3cdf7Cluster4sizeEv(ptr noundef nonnull align 8 dereferenceable(88) %17)
          to label %140 unwind label %71

140:                                              ; preds = %138
  %141 = icmp ne i32 %139, 0
  br i1 %141, label %143, label %142

142:                                              ; preds = %140
  store i8 0, ptr %16, align 1, !tbaa !11
  br label %198

143:                                              ; preds = %140
  %144 = load i32, ptr %15, align 4, !tbaa !13
  %145 = getelementptr inbounds %"class.fastjet::cdf::MidPointAlgorithm", ptr %37, i32 0, i32 4
  %146 = load i32, ptr %145, align 4, !tbaa !21
  %147 = icmp sle i32 %144, %146
  br i1 %147, label %148, label %197

148:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %149 = getelementptr inbounds %"class.fastjet::cdf::Cluster", ptr %17, i32 0, i32 1
  %150 = invoke noundef double @_ZNK7fastjet3cdf13LorentzVector1yEv(ptr noundef nonnull align 8 dereferenceable(32) %149)
          to label %151 unwind label %177

151:                                              ; preds = %148
  store volatile double %150, ptr %28, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %152 = getelementptr inbounds %"class.fastjet::cdf::Cluster", ptr %17, i32 0, i32 1
  %153 = invoke noundef double @_ZNK7fastjet3cdf13LorentzVector3phiEv(ptr noundef nonnull align 8 dereferenceable(32) %152)
          to label %154 unwind label %181

154:                                              ; preds = %151
  store volatile double %153, ptr %29, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  %155 = getelementptr inbounds %"class.fastjet::cdf::Cluster", ptr %17, i32 0, i32 1
  %156 = invoke noundef double @_ZNK7fastjet3cdf13LorentzVector2ptEv(ptr noundef nonnull align 8 dereferenceable(32) %155)
          to label %157 unwind label %185

157:                                              ; preds = %154
  store volatile double %156, ptr %30, align 8, !tbaa !9
  %158 = load volatile double, ptr %28, align 8, !tbaa !9
  %159 = load volatile double, ptr %9, align 8, !tbaa !9
  %160 = fcmp oeq double %158, %159
  br i1 %160, label %161, label %190

161:                                              ; preds = %157
  %162 = load volatile double, ptr %29, align 8, !tbaa !9
  %163 = load volatile double, ptr %10, align 8, !tbaa !9
  %164 = fcmp oeq double %162, %163
  br i1 %164, label %165, label %190

165:                                              ; preds = %161
  %166 = load volatile double, ptr %30, align 8, !tbaa !9
  %167 = load volatile double, ptr %11, align 8, !tbaa !9
  %168 = fcmp oeq double %166, %167
  br i1 %168, label %169, label %190

169:                                              ; preds = %165
  %170 = getelementptr inbounds %"class.fastjet::cdf::MidPointAlgorithm", ptr %37, i32 0, i32 4
  %171 = load i32, ptr %170, align 4, !tbaa !21
  store i32 %171, ptr %15, align 4, !tbaa !13
  %172 = load i8, ptr %14, align 1, !tbaa !11, !range !18, !noundef !19
  %173 = trunc i8 %172 to i1
  br i1 %173, label %189, label %174

174:                                              ; preds = %169
  %175 = load i32, ptr %15, align 4, !tbaa !13
  %176 = add nsw i32 %175, 1
  store i32 %176, ptr %15, align 4, !tbaa !13
  br label %189

177:                                              ; preds = %148
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %19, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %20, align 4
  br label %196

181:                                              ; preds = %151
  %182 = landingpad { ptr, i32 }
          cleanup
  %183 = extractvalue { ptr, i32 } %182, 0
  store ptr %183, ptr %19, align 8
  %184 = extractvalue { ptr, i32 } %182, 1
  store i32 %184, ptr %20, align 4
  br label %195

185:                                              ; preds = %154
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %19, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  br label %195

189:                                              ; preds = %174, %169
  br label %194

190:                                              ; preds = %165, %161, %157
  %191 = load volatile double, ptr %28, align 8, !tbaa !9
  store volatile double %191, ptr %9, align 8, !tbaa !9
  %192 = load volatile double, ptr %29, align 8, !tbaa !9
  store volatile double %192, ptr %10, align 8, !tbaa !9
  %193 = load volatile double, ptr %30, align 8, !tbaa !9
  store volatile double %193, ptr %11, align 8, !tbaa !9
  br label %194

194:                                              ; preds = %190, %189
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  br label %197

195:                                              ; preds = %185, %181
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  br label %196

196:                                              ; preds = %195, %177
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  br label %241

197:                                              ; preds = %194, %143
  br label %198

198:                                              ; preds = %197, %142
  br label %49, !llvm.loop !24

199:                                              ; preds = %59
  %200 = load i8, ptr %16, align 1, !tbaa !11, !range !18, !noundef !19
  %201 = trunc i8 %200 to i1
  br i1 %201, label %202, label %240

202:                                              ; preds = %199
  call void @llvm.lifetime.start.p0(i64 1, ptr %31) #6
  store i8 0, ptr %31, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #6
  %203 = load ptr, ptr %13, align 8, !tbaa !5
  %204 = call ptr @_ZNSt6vectorIN7fastjet3cdf7ClusterESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %203) #6
  %205 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.24", ptr %32, i32 0, i32 0
  store ptr %204, ptr %205, align 8
  br label %206

206:                                              ; preds = %225, %202
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #6
  %207 = load ptr, ptr %13, align 8, !tbaa !5
  %208 = call ptr @_ZNSt6vectorIN7fastjet3cdf7ClusterESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %207) #6
  %209 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.24", ptr %33, i32 0, i32 0
  store ptr %208, ptr %209, align 8
  %210 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7fastjet3cdf7ClusterESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 8 dereferenceable(8) %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  br i1 %210, label %212, label %211

211:                                              ; preds = %206
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  br label %228

212:                                              ; preds = %206
  %213 = getelementptr inbounds %"class.fastjet::cdf::Cluster", ptr %17, i32 0, i32 1
  %214 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf7ClusterESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %32) #6
  %215 = getelementptr inbounds %"class.fastjet::cdf::Cluster", ptr %214, i32 0, i32 1
  invoke void @_ZN7fastjet3cdf13LorentzVectorC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef nonnull align 8 dereferenceable(32) %215)
          to label %216 unwind label %220

216:                                              ; preds = %212
  %217 = invoke noundef zeroext i1 @_ZN7fastjet3cdf13LorentzVector7isEqualES1_(ptr noundef nonnull align 8 dereferenceable(32) %213, ptr noundef %34)
          to label %218 unwind label %220

218:                                              ; preds = %216
  br i1 %217, label %219, label %224

219:                                              ; preds = %218
  store i8 1, ptr %31, align 1, !tbaa !11
  br label %224

220:                                              ; preds = %216, %212
  %221 = landingpad { ptr, i32 }
          cleanup
  %222 = extractvalue { ptr, i32 } %221, 0
  store ptr %222, ptr %19, align 8
  %223 = extractvalue { ptr, i32 } %221, 1
  store i32 %223, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  br label %239

224:                                              ; preds = %219, %218
  br label %225

225:                                              ; preds = %224
  %226 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf7ClusterESt6vectorIS3_SaIS3_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %32, i32 noundef 0) #6
  %227 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.24", ptr %35, i32 0, i32 0
  store ptr %226, ptr %227, align 8
  br label %206, !llvm.loop !25

228:                                              ; preds = %211
  %229 = load i8, ptr %31, align 1, !tbaa !11, !range !18, !noundef !19
  %230 = trunc i8 %229 to i1
  br i1 %230, label %238, label %231

231:                                              ; preds = %228
  %232 = load ptr, ptr %13, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIN7fastjet3cdf7ClusterESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %232, ptr noundef nonnull align 8 dereferenceable(88) %17)
          to label %233 unwind label %234

233:                                              ; preds = %231
  br label %238

234:                                              ; preds = %231
  %235 = landingpad { ptr, i32 }
          cleanup
  %236 = extractvalue { ptr, i32 } %235, 0
  store ptr %236, ptr %19, align 8
  %237 = extractvalue { ptr, i32 } %235, 1
  store i32 %237, ptr %20, align 4
  br label %239

238:                                              ; preds = %233, %228
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #6
  br label %240

239:                                              ; preds = %234, %220
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #6
  br label %241

240:                                              ; preds = %238, %199
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @_ZN7fastjet3cdf7ClusterD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %17) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  ret void

241:                                              ; preds = %239, %196, %137, %71
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @_ZN7fastjet3cdf7ClusterD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %17) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %242

242:                                              ; preds = %241
  %243 = load ptr, ptr %19, align 8
  %244 = load i32, ptr %20, align 4
  %245 = insertvalue { ptr, i32 } poison, ptr %243, 0
  %246 = insertvalue { ptr, i32 } %245, i32 %244, 1
  resume { ptr, i32 } %246
}

; 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 nounwind uwtable
declare dso_local ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf12PhysicsTowerESt6vectorIS3_SaIS3_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #1 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

; 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 @_ZN7fastjet3cdf7ClusterC2Ev(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #3 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7fastjet3cdf12PhysicsTowerC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(68), ptr noundef nonnull align 8 dereferenceable(68)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN7fastjet3cdf7Cluster4sizeEv(ptr noundef nonnull align 8 dereferenceable(88)) #1 align 2

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7fastjet3cdf7ClusterD2Ev(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #2 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #6 = { nounwind }

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

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


; 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.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::LorentzVector" = type { double, double, double, double }
%"class.fastjet::cdf::Centroid" = type { double, double, double }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.fastjet::cdf::PhysicsTower" = type <{ %"class.fastjet::cdf::LorentzVector", %"class.fastjet::cdf::CalTower", i32, [4 x i8] }>
%"class.fastjet::cdf::CalTower" = type { double, double, double, i32, i32 }
%"class.__gnu_cxx::__normal_iterator.24" = type { ptr }

; 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 nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIN7fastjet3cdf12PhysicsTowerESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

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

; 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 ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf12PhysicsTowerESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

; 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
define dso_local void @_ZN7fastjet3cdf17MidPointAlgorithm11iterateConeEdddRSt6vectorINS0_12PhysicsTowerESaIS3_EERS2_INS0_7ClusterESaIS7_EEb(ptr nocapture noundef nonnull readonly align 8 dereferenceable(44) %0, double noundef %1, double noundef %2, double noundef %3, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, i1 noundef zeroext %6) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca %"class.fastjet::cdf::Cluster", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"class.fastjet::cdf::PhysicsTower", align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator.24", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator.24", align 8
  %20 = alloca %"class.fastjet::cdf::LorentzVector", align 8
  store volatile double %1, ptr %8, align 8, !tbaa !5
  store volatile double %2, ptr %9, align 8, !tbaa !5
  store volatile double %3, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %11) #7
  call void @_ZN7fastjet3cdf7ClusterC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %11)
  %21 = getelementptr inbounds i8, ptr %0, i64 8
  %22 = load double, ptr %21, align 8, !tbaa !9
  br i1 %6, label %23, label %28

23:                                               ; preds = %7
  %24 = getelementptr inbounds i8, ptr %0, i64 16
  %25 = load double, ptr %24, align 8, !tbaa !13
  %26 = call double @sqrt(double noundef %25) #7
  %27 = fmul double %22, %26
  br label %28

28:                                               ; preds = %23, %7
  %.041 = phi double [ %27, %23 ], [ %22, %7 ]
  %29 = getelementptr inbounds i8, ptr %0, i64 28
  %30 = load i32, ptr %29, align 4, !tbaa !14
  %31 = icmp sgt i32 %30, -1
  br i1 %31, label %.lr.ph60, label %.critedge

.lr.ph60:                                         ; preds = %28
  %32 = getelementptr inbounds i8, ptr %11, i64 24
  %not. = xor i1 %6, true
  %33 = zext i1 %not. to i32
  br label %34

34:                                               ; preds = %.lr.ph60, %81
  %35 = phi i32 [ 1, %.lr.ph60 ], [ %83, %81 ]
  %.058 = phi i32 [ 0, %.lr.ph60 ], [ %.2, %81 ]
  %.14256 = phi double [ %.041, %.lr.ph60 ], [ %.243, %81 ]
  invoke void @_ZN7fastjet3cdf7Cluster5clearEv(ptr noundef nonnull align 8 dereferenceable(88) %11)
          to label %36 unwind label %43

36:                                               ; preds = %34
  %37 = load i32, ptr %29, align 4, !tbaa !14
  %38 = icmp eq i32 %.058, %37
  %39 = load double, ptr %21, align 8
  %.243 = select i1 %38, double %39, double %.14256
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  %40 = call ptr @_ZNSt6vectorIN7fastjet3cdf12PhysicsTowerESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  store ptr %40, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  %41 = call ptr @_ZNSt6vectorIN7fastjet3cdf12PhysicsTowerESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  store ptr %41, ptr %13, align 8
  %42 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7fastjet3cdf12PhysicsTowerESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  br i1 %42, label %.lr.ph, label %._crit_edge

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

._crit_edge:                                      ; preds = %63, %36
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  %45 = call noundef i32 @_ZN7fastjet3cdf7Cluster4sizeEv(ptr noundef nonnull align 8 dereferenceable(88) %11)
  %.not = icmp ne i32 %45, 0
  br i1 %.not, label %67, label %._crit_edge61

.lr.ph:                                           ; preds = %36, %63
  %46 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf12PhysicsTowerESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  %47 = call noundef double @_ZNK7fastjet3cdf13LorentzVector1yEv(ptr noundef nonnull align 8 dereferenceable(32) %46)
  %.0..0..0..0.34 = load volatile double, ptr %8, align 8, !tbaa !5
  %48 = fsub double %47, %.0..0..0..0.34
  %49 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf12PhysicsTowerESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  %50 = call noundef double @_ZNK7fastjet3cdf13LorentzVector3phiEv(ptr noundef nonnull align 8 dereferenceable(32) %49)
  %.0..0..0..0.32 = load volatile double, ptr %9, align 8, !tbaa !5
  %51 = fsub double %50, %.0..0..0..0.32
  %52 = call double @llvm.fabs.f64(double %51)
  %53 = fcmp ogt double %52, 0x400921FB54442D18
  %54 = fsub double 0x401921FB54442D18, %52
  %.044 = select i1 %53, double %54, double %52
  %55 = fmul double %.044, %.044
  %56 = call double @llvm.fmuladd.f64(double %48, double %48, double %55)
  %sqrt = call double @llvm.sqrt.f64(double %56)
  %57 = fcmp olt double %sqrt, %.243
  br i1 %57, label %58, label %63

58:                                               ; preds = %.lr.ph
  %59 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf12PhysicsTowerESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  invoke void @_ZN7fastjet3cdf12PhysicsTowerC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(68) %14, ptr noundef nonnull align 8 dereferenceable(68) %59)
          to label %60 unwind label %61

60:                                               ; preds = %58
  invoke void @_ZN7fastjet3cdf7Cluster8addTowerENS0_12PhysicsTowerE(ptr noundef nonnull align 8 dereferenceable(88) %11, ptr noundef nonnull %14)
          to label %63 unwind label %61

61:                                               ; preds = %60, %58
  %62 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  br label %100

63:                                               ; preds = %60, %.lr.ph
  %64 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf12PhysicsTowerESt6vectorIS3_SaIS3_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %12, i32 noundef 0) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  %65 = call ptr @_ZNSt6vectorIN7fastjet3cdf12PhysicsTowerESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  store ptr %65, ptr %13, align 8
  %66 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7fastjet3cdf12PhysicsTowerESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  br i1 %66, label %.lr.ph, label %._crit_edge, !llvm.loop !15

67:                                               ; preds = %._crit_edge
  %.pre68 = load i32, ptr %29, align 4, !tbaa !14
  %.not51.not = icmp slt i32 %.058, %.pre68
  br i1 %.not51.not, label %68, label %81

68:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15)
  %69 = call noundef double @_ZNK7fastjet3cdf13LorentzVector1yEv(ptr noundef nonnull align 8 dereferenceable(32) %32)
  store volatile double %69, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16)
  %70 = call noundef double @_ZNK7fastjet3cdf13LorentzVector3phiEv(ptr noundef nonnull align 8 dereferenceable(32) %32)
  store volatile double %70, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17)
  %71 = call noundef double @_ZNK7fastjet3cdf13LorentzVector2ptEv(ptr noundef nonnull align 8 dereferenceable(32) %32)
  store volatile double %71, ptr %17, align 8, !tbaa !5
  %.0..0..0..0.4 = load volatile double, ptr %15, align 8, !tbaa !5
  %.0..0..0..0.35 = load volatile double, ptr %8, align 8, !tbaa !5
  %72 = fcmp oeq double %.0..0..0..0.4, %.0..0..0..0.35
  br i1 %72, label %73, label %79

73:                                               ; preds = %68
  %.0..0..0..0.2 = load volatile double, ptr %16, align 8, !tbaa !5
  %.0..0..0..0.33 = load volatile double, ptr %9, align 8, !tbaa !5
  %74 = fcmp oeq double %.0..0..0..0.2, %.0..0..0..0.33
  br i1 %74, label %75, label %79

75:                                               ; preds = %73
  %.0..0..0..0. = load volatile double, ptr %17, align 8, !tbaa !5
  %.0..0..0..0.31 = load volatile double, ptr %10, align 8, !tbaa !5
  %76 = fcmp oeq double %.0..0..0..0., %.0..0..0..0.31
  br i1 %76, label %77, label %79

77:                                               ; preds = %75
  %78 = load i32, ptr %29, align 4, !tbaa !14
  %spec.select = add nsw i32 %78, %33
  br label %80

79:                                               ; preds = %75, %73, %68
  %.0..0..0..0.5 = load volatile double, ptr %15, align 8, !tbaa !5
  store volatile double %.0..0..0..0.5, ptr %8, align 8, !tbaa !5
  %.0..0..0..0.3 = load volatile double, ptr %16, align 8, !tbaa !5
  store volatile double %.0..0..0..0.3, ptr %9, align 8, !tbaa !5
  %.0..0..0..0.1 = load volatile double, ptr %17, align 8, !tbaa !5
  store volatile double %.0..0..0..0.1, ptr %10, align 8, !tbaa !5
  %.pre.pre = load i32, ptr %29, align 4, !tbaa !14
  br label %80

80:                                               ; preds = %77, %79
  %.pre = phi i32 [ %.pre.pre, %79 ], [ %78, %77 ]
  %.1 = phi i32 [ %35, %79 ], [ %spec.select, %77 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15)
  br label %81

81:                                               ; preds = %67, %80
  %82 = phi i32 [ %.pre, %80 ], [ %.pre68, %67 ]
  %.2 = phi i32 [ %.1, %80 ], [ %35, %67 ]
  %83 = add nsw i32 %.2, 1
  %84 = icmp sle i32 %.2, %82
  %85 = and i1 %84, %.not
  br i1 %85, label %34, label %.critedge, !llvm.loop !17

.critedge:                                        ; preds = %81, %28
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #7
  %86 = call ptr @_ZNSt6vectorIN7fastjet3cdf7ClusterESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  store ptr %86, ptr %18, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #7
  %87 = call ptr @_ZNSt6vectorIN7fastjet3cdf7ClusterESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  store ptr %87, ptr %19, align 8
  %88 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7fastjet3cdf7ClusterESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  br i1 %88, label %.lr.ph64, label %.critedge67

.lr.ph64:                                         ; preds = %.critedge
  %89 = getelementptr inbounds i8, ptr %11, i64 24
  br label %90

._crit_edge65:                                    ; preds = %90
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #7
  br i1 %spec.select53, label %._crit_edge61, label %97

90:                                               ; preds = %.lr.ph64, %90
  %.03762 = phi i1 [ false, %.lr.ph64 ], [ %spec.select53, %90 ]
  %91 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf7ClusterESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #7
  %92 = getelementptr inbounds i8, ptr %91, i64 24
  call void @_ZN7fastjet3cdf13LorentzVectorC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(32) %92)
  %93 = call noundef zeroext i1 @_ZN7fastjet3cdf13LorentzVector7isEqualES1_(ptr noundef nonnull align 8 dereferenceable(32) %89, ptr noundef nonnull %20)
  %spec.select53 = select i1 %93, i1 true, i1 %.03762
  %94 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf7ClusterESt6vectorIS3_SaIS3_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %18, i32 noundef 0) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #7
  %95 = call ptr @_ZNSt6vectorIN7fastjet3cdf7ClusterESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  store ptr %95, ptr %19, align 8
  %96 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7fastjet3cdf7ClusterESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  br i1 %96, label %90, label %._crit_edge65, !llvm.loop !18

.critedge67:                                      ; preds = %.critedge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #7
  br label %97

97:                                               ; preds = %.critedge67, %._crit_edge65
  invoke void @_ZNSt6vectorIN7fastjet3cdf7ClusterESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(88) %11)
          to label %._crit_edge61 unwind label %98

98:                                               ; preds = %97
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %100

._crit_edge61:                                    ; preds = %._crit_edge, %._crit_edge65, %97
  call void @_ZN7fastjet3cdf7ClusterD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %11) #7
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %11) #7
  ret void

100:                                              ; preds = %98, %61, %43
  %.pn = phi { ptr, i32 } [ %62, %61 ], [ %44, %43 ], [ %99, %98 ]
  call void @_ZN7fastjet3cdf7ClusterD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %11) #7
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %11) #7
  resume { ptr, i32 } %.pn
}

; 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 nounwind uwtable
declare dso_local ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf12PhysicsTowerESt6vectorIS3_SaIS3_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #5

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

; 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 @_ZN7fastjet3cdf7ClusterC2Ev(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #3 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7fastjet3cdf12PhysicsTowerC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(68), ptr noundef nonnull align 8 dereferenceable(68)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN7fastjet3cdf7Cluster4sizeEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #1 align 2

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

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

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

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

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

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

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

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

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

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

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

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


; Effective O3 passes: AggressiveInstCombinePass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass