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

; 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.__gnu_cxx::__normal_iterator.5" = type { ptr }
%"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.fastjet::cdf::ClusterCentroidEtGreater" = type { i8 }
%"class.fastjet::cdf::JetCluAlgorithm" = type { double, double, i32, i32, i32, double }

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIN7fastjet3cdf12PhysicsTowerESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 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)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIN7fastjet3cdf12PhysicsTowerESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 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)) #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7fastjet3cdf7Cluster8addTowerENS0_12PhysicsTowerE(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef) #1 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)) #2 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 #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) #2 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)) #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf7ClusterESt6vectorIS4_SaIS4_EEEENS3_24ClusterCentroidEtGreaterEEvT_SB_T0_(ptr, ptr) #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIN7fastjet3cdf7ClusterESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 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)) #3

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

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

; 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) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7fastjet3cdf15JetCluAlgorithm15findStableConesERSt6vectorINS0_7ClusterESaIS3_EERS2_INS0_12PhysicsTowerESaIS7_EES6_(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %3) #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %11 = alloca i32, align 4
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca i32, align 4
  %16 = alloca %"class.fastjet::cdf::Cluster", align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca %"class.fastjet::cdf::PhysicsTower", align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %27 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %28 = alloca i8, align 1
  %29 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %30 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %31 = alloca %"class.fastjet::cdf::PhysicsTower", align 8
  %32 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %33 = alloca %"class.fastjet::cdf::PhysicsTower", align 8
  %34 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %35 = alloca double, align 8
  %36 = alloca double, align 8
  %37 = alloca double, align 8
  %38 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %39 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %40 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %41 = alloca %"class.fastjet::cdf::ClusterCentroidEtGreater", align 1
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %42 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = call ptr @_ZNSt6vectorIN7fastjet3cdf7ClusterESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #7
  %45 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %9, i32 0, i32 0
  store ptr %44, ptr %45, align 8
  br label %46

46:                                               ; preds = %240, %4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = call ptr @_ZNSt6vectorIN7fastjet3cdf7ClusterESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %47) #7
  %49 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %10, i32 0, i32 0
  store ptr %48, ptr %49, align 8
  %50 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7fastjet3cdf7ClusterESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br i1 %50, label %52, label %51

51:                                               ; preds = %46
  store i32 2, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %244

52:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %53 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf7ClusterESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %54 = getelementptr inbounds %"class.fastjet::cdf::Cluster", ptr %53, i32 0, i32 2
  %55 = getelementptr inbounds %"class.fastjet::cdf::Centroid", ptr %54, i32 0, i32 0
  %56 = load double, ptr %55, align 8, !tbaa !9
  store double %56, ptr %12, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %57 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf7ClusterESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %58 = getelementptr inbounds %"class.fastjet::cdf::Cluster", ptr %57, i32 0, i32 2
  %59 = getelementptr inbounds %"class.fastjet::cdf::Centroid", ptr %58, i32 0, i32 1
  %60 = load double, ptr %59, align 8, !tbaa !19
  store double %60, ptr %13, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %61 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf7ClusterESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %62 = getelementptr inbounds %"class.fastjet::cdf::Cluster", ptr %61, i32 0, i32 2
  %63 = getelementptr inbounds %"class.fastjet::cdf::Centroid", ptr %62, i32 0, i32 2
  %64 = load double, ptr %63, align 8, !tbaa !20
  store double %64, ptr %14, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 88, ptr %16) #7
  call void @_ZN7fastjet3cdf7ClusterC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %16)
  br label %65

65:                                               ; preds = %236, %52
  %66 = load i32, ptr %15, align 4, !tbaa !21
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %15, align 4, !tbaa !21
  %68 = getelementptr inbounds %"class.fastjet::cdf::JetCluAlgorithm", ptr %42, i32 0, i32 3
  %69 = load i32, ptr %68, align 4, !tbaa !23
  %70 = icmp slt i32 %66, %69
  br i1 %70, label %71, label %237

71:                                               ; preds = %65
  invoke void @_ZN7fastjet3cdf7Cluster5clearEv(ptr noundef nonnull align 8 dereferenceable(88) %16)
          to label %72 unwind label %82

72:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %73 = load ptr, ptr %7, align 8, !tbaa !5
  %74 = call ptr @_ZNSt6vectorIN7fastjet3cdf12PhysicsTowerESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %73) #7
  %75 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  store ptr %74, ptr %75, align 8
  br label %76

76:                                               ; preds = %133, %72
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %77 = load ptr, ptr %7, align 8, !tbaa !5
  %78 = call ptr @_ZNSt6vectorIN7fastjet3cdf12PhysicsTowerESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %77) #7
  %79 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  store ptr %78, ptr %79, align 8
  %80 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7fastjet3cdf12PhysicsTowerESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br i1 %80, label %86, label %81

81:                                               ; preds = %76
  store i32 7, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %138

82:                                               ; preds = %237, %71
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %17, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %18, align 4
  br label %243

86:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %87 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf12PhysicsTowerESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  %88 = invoke noundef double @_ZNK7fastjet3cdf12PhysicsTower3etaEv(ptr noundef nonnull align 8 dereferenceable(68) %87)
          to label %89 unwind label %104

89:                                               ; preds = %86
  %90 = load double, ptr %13, align 8, !tbaa !18
  %91 = fsub double %88, %90
  %92 = call double @llvm.fabs.f64(double %91)
  store double %92, ptr %21, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %93 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf12PhysicsTowerESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  %94 = invoke noundef double @_ZNK7fastjet3cdf12PhysicsTower3phiEv(ptr noundef nonnull align 8 dereferenceable(68) %93)
          to label %95 unwind label %108

95:                                               ; preds = %89
  %96 = load double, ptr %14, align 8, !tbaa !18
  %97 = fsub double %94, %96
  %98 = call double @llvm.fabs.f64(double %97)
  store double %98, ptr %22, align 8, !tbaa !18
  %99 = load double, ptr %22, align 8, !tbaa !18
  %100 = fcmp ogt double %99, 0x400921FB54442D18
  br i1 %100, label %101, label %112

101:                                              ; preds = %95
  %102 = load double, ptr %22, align 8, !tbaa !18
  %103 = fsub double 0x401921FB54442D18, %102
  store double %103, ptr %22, align 8, !tbaa !18
  br label %112

104:                                              ; preds = %86
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %17, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %18, align 4
  br label %137

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

112:                                              ; preds = %101, %95
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %113 = load double, ptr %21, align 8, !tbaa !18
  %114 = load double, ptr %21, align 8, !tbaa !18
  %115 = load double, ptr %22, align 8, !tbaa !18
  %116 = load double, ptr %22, align 8, !tbaa !18
  %117 = fmul double %115, %116
  %118 = call double @llvm.fmuladd.f64(double %113, double %114, double %117)
  %119 = call double @sqrt(double noundef %118) #7
  store double %119, ptr %23, align 8, !tbaa !18
  %120 = load double, ptr %23, align 8, !tbaa !18
  %121 = getelementptr inbounds %"class.fastjet::cdf::JetCluAlgorithm", ptr %42, i32 0, i32 1
  %122 = load double, ptr %121, align 8, !tbaa !25
  %123 = fcmp olt double %120, %122
  br i1 %123, label %124, label %132

124:                                              ; preds = %112
  %125 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf12PhysicsTowerESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  invoke void @_ZN7fastjet3cdf12PhysicsTowerC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(68) %24, 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) %16, ptr noundef %24)
          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 %17, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %136

132:                                              ; preds = %127, %112
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %133

133:                                              ; preds = %132
  %134 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf12PhysicsTowerESt6vectorIS3_SaIS3_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %19, i32 noundef 0) #7
  %135 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %25, i32 0, i32 0
  store ptr %134, ptr %135, align 8
  br label %76, !llvm.loop !26

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

137:                                              ; preds = %136, %104
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %243

138:                                              ; preds = %81
  %139 = getelementptr inbounds %"class.fastjet::cdf::JetCluAlgorithm", ptr %42, i32 0, i32 4
  %140 = load i32, ptr %139, align 8, !tbaa !28
  %141 = icmp ne i32 %140, 0
  br i1 %141, label %142, label %202

142:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %143 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf7ClusterESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %144 = getelementptr inbounds %"class.fastjet::cdf::Cluster", ptr %143, i32 0, i32 0
  %145 = call ptr @_ZNSt6vectorIN7fastjet3cdf12PhysicsTowerESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %144) #7
  %146 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %26, i32 0, i32 0
  store ptr %145, ptr %146, align 8
  br label %147

147:                                              ; preds = %197, %142
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  %148 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf7ClusterESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %149 = getelementptr inbounds %"class.fastjet::cdf::Cluster", ptr %148, i32 0, i32 0
  %150 = call ptr @_ZNSt6vectorIN7fastjet3cdf12PhysicsTowerESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %149) #7
  %151 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %27, i32 0, i32 0
  store ptr %150, ptr %151, align 8
  %152 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7fastjet3cdf12PhysicsTowerESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  br i1 %152, label %154, label %153

153:                                              ; preds = %147
  store i32 10, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  br label %201

154:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #7
  store i8 0, ptr %28, align 1, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  %155 = getelementptr inbounds %"class.fastjet::cdf::Cluster", ptr %16, i32 0, i32 0
  %156 = call ptr @_ZNSt6vectorIN7fastjet3cdf12PhysicsTowerESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %155) #7
  %157 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %29, i32 0, i32 0
  store ptr %156, ptr %157, align 8
  br label %158

158:                                              ; preds = %182, %154
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  %159 = getelementptr inbounds %"class.fastjet::cdf::Cluster", ptr %16, i32 0, i32 0
  %160 = call ptr @_ZNSt6vectorIN7fastjet3cdf12PhysicsTowerESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %159) #7
  %161 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %30, i32 0, i32 0
  store ptr %160, ptr %161, align 8
  %162 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7fastjet3cdf12PhysicsTowerESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %30) #7
  br i1 %162, label %163, label %167

163:                                              ; preds = %158
  %164 = load i8, ptr %28, align 1, !tbaa !29, !range !31, !noundef !32
  %165 = trunc i8 %164 to i1
  %166 = xor i1 %165, true
  br label %167

167:                                              ; preds = %163, %158
  %168 = phi i1 [ false, %158 ], [ %166, %163 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  br i1 %168, label %170, label %169

169:                                              ; preds = %167
  store i32 13, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  br label %185

170:                                              ; preds = %167
  %171 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf12PhysicsTowerESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #7
  %172 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf12PhysicsTowerESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #7
  invoke void @_ZN7fastjet3cdf12PhysicsTowerC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(68) %31, ptr noundef nonnull align 8 dereferenceable(68) %172)
          to label %173 unwind label %177

173:                                              ; preds = %170
  %174 = invoke noundef zeroext i1 @_ZN7fastjet3cdf12PhysicsTower7isEqualES1_(ptr noundef nonnull align 8 dereferenceable(68) %171, ptr noundef %31)
          to label %175 unwind label %177

175:                                              ; preds = %173
  br i1 %174, label %176, label %181

176:                                              ; preds = %175
  store i8 1, ptr %28, align 1, !tbaa !29
  br label %181

177:                                              ; preds = %173, %170
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %17, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  br label %200

181:                                              ; preds = %176, %175
  br label %182

182:                                              ; preds = %181
  %183 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf12PhysicsTowerESt6vectorIS3_SaIS3_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %29, i32 noundef 0) #7
  %184 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %32, i32 0, i32 0
  store ptr %183, ptr %184, align 8
  br label %158, !llvm.loop !33

185:                                              ; preds = %169
  %186 = load i8, ptr %28, align 1, !tbaa !29, !range !31, !noundef !32
  %187 = trunc i8 %186 to i1
  br i1 %187, label %196, label %188

188:                                              ; preds = %185
  %189 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf12PhysicsTowerESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #7
  invoke void @_ZN7fastjet3cdf12PhysicsTowerC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(68) %33, ptr noundef nonnull align 8 dereferenceable(68) %189)
          to label %190 unwind label %192

190:                                              ; preds = %188
  invoke void @_ZN7fastjet3cdf7Cluster8addTowerENS0_12PhysicsTowerE(ptr noundef nonnull align 8 dereferenceable(88) %16, ptr noundef %33)
          to label %191 unwind label %192

191:                                              ; preds = %190
  br label %196

192:                                              ; preds = %190, %188
  %193 = landingpad { ptr, i32 }
          cleanup
  %194 = extractvalue { ptr, i32 } %193, 0
  store ptr %194, ptr %17, align 8
  %195 = extractvalue { ptr, i32 } %193, 1
  store i32 %195, ptr %18, align 4
  br label %200

196:                                              ; preds = %191, %185
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #7
  br label %197

197:                                              ; preds = %196
  %198 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf12PhysicsTowerESt6vectorIS3_SaIS3_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %26, i32 noundef 0) #7
  %199 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %34, i32 0, i32 0
  store ptr %198, ptr %199, align 8
  br label %147, !llvm.loop !34

200:                                              ; preds = %192, %177
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  br label %243

201:                                              ; preds = %153
  br label %202

202:                                              ; preds = %201, %138
  %203 = load i32, ptr %15, align 4, !tbaa !21
  %204 = getelementptr inbounds %"class.fastjet::cdf::JetCluAlgorithm", ptr %42, i32 0, i32 3
  %205 = load i32, ptr %204, align 4, !tbaa !23
  %206 = icmp sle i32 %203, %205
  br i1 %206, label %207, label %236

207:                                              ; preds = %202
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #7
  %208 = getelementptr inbounds %"class.fastjet::cdf::Cluster", ptr %16, i32 0, i32 2
  %209 = getelementptr inbounds %"class.fastjet::cdf::Centroid", ptr %208, i32 0, i32 0
  %210 = load double, ptr %209, align 8, !tbaa !9
  store double %210, ptr %35, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #7
  %211 = getelementptr inbounds %"class.fastjet::cdf::Cluster", ptr %16, i32 0, i32 2
  %212 = getelementptr inbounds %"class.fastjet::cdf::Centroid", ptr %211, i32 0, i32 1
  %213 = load double, ptr %212, align 8, !tbaa !19
  store double %213, ptr %36, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #7
  %214 = getelementptr inbounds %"class.fastjet::cdf::Cluster", ptr %16, i32 0, i32 2
  %215 = getelementptr inbounds %"class.fastjet::cdf::Centroid", ptr %214, i32 0, i32 2
  %216 = load double, ptr %215, align 8, !tbaa !20
  store double %216, ptr %37, align 8, !tbaa !18
  %217 = load double, ptr %35, align 8, !tbaa !18
  %218 = load double, ptr %12, align 8, !tbaa !18
  %219 = fcmp oeq double %217, %218
  br i1 %219, label %220, label %231

220:                                              ; preds = %207
  %221 = load double, ptr %36, align 8, !tbaa !18
  %222 = load double, ptr %13, align 8, !tbaa !18
  %223 = fcmp oeq double %221, %222
  br i1 %223, label %224, label %231

224:                                              ; preds = %220
  %225 = load double, ptr %37, align 8, !tbaa !18
  %226 = load double, ptr %14, align 8, !tbaa !18
  %227 = fcmp oeq double %225, %226
  br i1 %227, label %228, label %231

228:                                              ; preds = %224
  %229 = getelementptr inbounds %"class.fastjet::cdf::JetCluAlgorithm", ptr %42, i32 0, i32 3
  %230 = load i32, ptr %229, align 4, !tbaa !23
  store i32 %230, ptr %15, align 4, !tbaa !21
  br label %235

231:                                              ; preds = %224, %220, %207
  %232 = load double, ptr %35, align 8, !tbaa !18
  store double %232, ptr %12, align 8, !tbaa !18
  %233 = load double, ptr %36, align 8, !tbaa !18
  store double %233, ptr %13, align 8, !tbaa !18
  %234 = load double, ptr %37, align 8, !tbaa !18
  store double %234, ptr %14, align 8, !tbaa !18
  br label %235

235:                                              ; preds = %231, %228
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #7
  br label %236

236:                                              ; preds = %235, %202
  br label %65, !llvm.loop !35

237:                                              ; preds = %65
  %238 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIN7fastjet3cdf7ClusterESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %238, ptr noundef nonnull align 8 dereferenceable(88) %16)
          to label %239 unwind label %82

239:                                              ; preds = %237
  call void @_ZN7fastjet3cdf7ClusterD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %16) #7
  call void @llvm.lifetime.end.p0(i64 88, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %240

240:                                              ; preds = %239
  %241 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf7ClusterESt6vectorIS3_SaIS3_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef 0) #7
  %242 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %38, i32 0, i32 0
  store ptr %241, ptr %242, align 8
  br label %46, !llvm.loop !36

243:                                              ; preds = %200, %137, %82
  call void @_ZN7fastjet3cdf7ClusterD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %16) #7
  call void @llvm.lifetime.end.p0(i64 88, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %255

244:                                              ; preds = %51
  %245 = load ptr, ptr %8, align 8, !tbaa !5
  %246 = call ptr @_ZNSt6vectorIN7fastjet3cdf7ClusterESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %245) #7
  %247 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %39, i32 0, i32 0
  store ptr %246, ptr %247, align 8
  %248 = load ptr, ptr %8, align 8, !tbaa !5
  %249 = call ptr @_ZNSt6vectorIN7fastjet3cdf7ClusterESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %248) #7
  %250 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %40, i32 0, i32 0
  store ptr %249, ptr %250, align 8
  %251 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %39, i32 0, i32 0
  %252 = load ptr, ptr %251, align 8
  %253 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %40, i32 0, i32 0
  %254 = load ptr, ptr %253, align 8
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf7ClusterESt6vectorIS4_SaIS4_EEEENS3_24ClusterCentroidEtGreaterEEvT_SB_T0_(ptr %252, ptr %254)
  ret void

255:                                              ; preds = %243
  %256 = load ptr, ptr %17, align 8
  %257 = load i32, ptr %18, align 4
  %258 = insertvalue { ptr, i32 } poison, ptr %256, 0
  %259 = insertvalue { ptr, i32 } %258, i32 %257, 1
  resume { ptr, i32 } %259
}

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !16, i64 56}
!10 = !{!"_ZTSN7fastjet3cdf7ClusterE", !11, i64 0, !15, i64 24, !17, i64 56, !16, i64 80}
!11 = !{!"_ZTSSt6vectorIN7fastjet3cdf12PhysicsTowerESaIS2_EE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIN7fastjet3cdf12PhysicsTowerESaIS2_EE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIN7fastjet3cdf12PhysicsTowerESaIS2_EE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIN7fastjet3cdf12PhysicsTowerESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!15 = !{!"_ZTSN7fastjet3cdf13LorentzVectorE", !16, i64 0, !16, i64 8, !16, i64 16, !16, i64 24}
!16 = !{!"double", !7, i64 0}
!17 = !{!"_ZTSN7fastjet3cdf8CentroidE", !16, i64 0, !16, i64 8, !16, i64 16}
!18 = !{!16, !16, i64 0}
!19 = !{!10, !16, i64 64}
!20 = !{!10, !16, i64 72}
!21 = !{!22, !22, i64 0}
!22 = !{!"int", !7, i64 0}
!23 = !{!24, !22, i64 20}
!24 = !{!"_ZTSN7fastjet3cdf15JetCluAlgorithmE", !16, i64 0, !16, i64 8, !22, i64 16, !22, i64 20, !22, i64 24, !16, i64 32}
!25 = !{!24, !16, i64 8}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!24, !22, i64 24}
!29 = !{!30, !30, i64 0}
!30 = !{!"bool", !7, i64 0}
!31 = !{i8 0, i8 2}
!32 = !{}
!33 = distinct !{!33, !27}
!34 = distinct !{!34, !27}
!35 = distinct !{!35, !27}
!36 = distinct !{!36, !27}


; 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.__gnu_cxx::__normal_iterator.5" = type { ptr }
%"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 }

; 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 uwtable
declare dso_local void @_ZN7fastjet3cdf7ClusterC2Ev(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7fastjet3cdf7Cluster8addTowerENS0_12PhysicsTowerE(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef) local_unnamed_addr #1 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 #2 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 #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 #2 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 #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf7ClusterESt6vectorIS4_SaIS4_EEEENS3_24ClusterCentroidEtGreaterEEvT_SB_T0_(ptr, ptr) local_unnamed_addr #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIN7fastjet3cdf7ClusterESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 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 #3

; 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 #2 align 2

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

; 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 #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7fastjet3cdf15JetCluAlgorithm15findStableConesERSt6vectorINS0_7ClusterESaIS3_EERS2_INS0_12PhysicsTowerESaIS7_EES6_(ptr nocapture noundef nonnull readonly align 8 dereferenceable(40) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %3) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %7 = alloca %"class.fastjet::cdf::Cluster", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.fastjet::cdf::PhysicsTower", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %"class.fastjet::cdf::PhysicsTower", align 8
  %16 = alloca %"class.fastjet::cdf::PhysicsTower", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %17 = tail call ptr @_ZNSt6vectorIN7fastjet3cdf7ClusterESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  store ptr %17, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %18 = tail call ptr @_ZNSt6vectorIN7fastjet3cdf7ClusterESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  store ptr %18, ptr %6, align 8
  %19 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7fastjet3cdf7ClusterESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  br i1 %19, label %.lr.ph79, label %._crit_edge80

.lr.ph79:                                         ; preds = %4
  %20 = getelementptr inbounds i8, ptr %0, i64 20
  %21 = getelementptr inbounds i8, ptr %0, i64 8
  %22 = getelementptr inbounds i8, ptr %0, i64 24
  %23 = getelementptr inbounds i8, ptr %7, i64 56
  %24 = getelementptr inbounds i8, ptr %7, i64 64
  %25 = getelementptr inbounds i8, ptr %7, i64 72
  br label %28

._crit_edge80:                                    ; preds = %111, %4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  %26 = call ptr @_ZNSt6vectorIN7fastjet3cdf7ClusterESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  %27 = call ptr @_ZNSt6vectorIN7fastjet3cdf7ClusterESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf7ClusterESt6vectorIS4_SaIS4_EEEENS3_24ClusterCentroidEtGreaterEEvT_SB_T0_(ptr %26, ptr %27)
  ret void

28:                                               ; preds = %.lr.ph79, %111
  %29 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf7ClusterESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %30 = getelementptr inbounds i8, ptr %29, i64 56
  %31 = load double, ptr %30, align 8, !tbaa !5
  %32 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf7ClusterESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %33 = getelementptr inbounds i8, ptr %32, i64 64
  %34 = load double, ptr %33, align 8, !tbaa !17
  %35 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf7ClusterESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %36 = getelementptr inbounds i8, ptr %35, i64 72
  %37 = load double, ptr %36, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %7) #7
  call void @_ZN7fastjet3cdf7ClusterC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %7)
  %38 = load i32, ptr %20, align 4, !tbaa !19
  %39 = icmp sgt i32 %38, 0
  br i1 %39, label %.lr.ph76, label %._crit_edge77

.lr.ph76:                                         ; preds = %28, %108
  %40 = phi i32 [ %109, %108 ], [ 1, %28 ]
  %.074 = phi double [ %.2, %108 ], [ %31, %28 ]
  %.03673 = phi double [ %.238, %108 ], [ %34, %28 ]
  %.03972 = phi double [ %.241, %108 ], [ %37, %28 ]
  %.04271 = phi i32 [ %40, %108 ], [ 0, %28 ]
  invoke void @_ZN7fastjet3cdf7Cluster5clearEv(ptr noundef nonnull align 8 dereferenceable(88) %7)
          to label %41 unwind label %.loopexit

41:                                               ; preds = %.lr.ph76
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %42 = call ptr @_ZNSt6vectorIN7fastjet3cdf12PhysicsTowerESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  store ptr %42, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %43 = call ptr @_ZNSt6vectorIN7fastjet3cdf12PhysicsTowerESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  store ptr %43, ptr %9, align 8
  %44 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7fastjet3cdf12PhysicsTowerESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  br i1 %44, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %64, %41
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  %45 = load i32, ptr %22, align 8, !tbaa !22
  %.not = icmp eq i32 %45, 0
  br i1 %.not, label %99, label %68

.loopexit:                                        ; preds = %.lr.ph76
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %115

.loopexit.split-lp:                               ; preds = %._crit_edge77
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %115

.lr.ph:                                           ; preds = %41, %64
  %46 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf12PhysicsTowerESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  %47 = call noundef double @_ZNK7fastjet3cdf12PhysicsTower3etaEv(ptr noundef nonnull align 8 dereferenceable(68) %46)
  %48 = fsub double %47, %.03673
  %49 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf12PhysicsTowerESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  %50 = call noundef double @_ZNK7fastjet3cdf12PhysicsTower3phiEv(ptr noundef nonnull align 8 dereferenceable(68) %49)
  %51 = fsub double %50, %.03972
  %52 = call double @llvm.fabs.f64(double %51)
  %53 = fcmp ogt double %52, 0x400921FB54442D18
  %54 = fsub double 0x401921FB54442D18, %52
  %.049 = select i1 %53, double %54, double %52
  %55 = fmul double %.049, %.049
  %56 = call double @llvm.fmuladd.f64(double %48, double %48, double %55)
  %sqrt = call double @llvm.sqrt.f64(double %56)
  %57 = load double, ptr %21, align 8, !tbaa !23
  %58 = fcmp olt double %sqrt, %57
  br i1 %58, label %59, label %64

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

61:                                               ; preds = %59
  invoke void @_ZN7fastjet3cdf7Cluster8addTowerENS0_12PhysicsTowerE(ptr noundef nonnull align 8 dereferenceable(88) %7, ptr noundef nonnull %10)
          to label %64 unwind label %62

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

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

68:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  %69 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf7ClusterESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %70 = call ptr @_ZNSt6vectorIN7fastjet3cdf12PhysicsTowerESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %69) #7
  store ptr %70, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  %71 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf7ClusterESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %72 = call ptr @_ZNSt6vectorIN7fastjet3cdf12PhysicsTowerESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %71) #7
  store ptr %72, ptr %12, align 8
  %73 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7fastjet3cdf12PhysicsTowerESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  br i1 %73, label %.lr.ph69, label %._crit_edge70

._crit_edge70:                                    ; preds = %93, %68
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  br label %99

.lr.ph69:                                         ; preds = %68, %93
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  %74 = call ptr @_ZNSt6vectorIN7fastjet3cdf12PhysicsTowerESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  store ptr %74, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  %75 = call ptr @_ZNSt6vectorIN7fastjet3cdf12PhysicsTowerESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  store ptr %75, ptr %14, align 8
  %76 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7fastjet3cdf12PhysicsTowerESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  br i1 %76, label %.lr.ph66, label %.critedge

._crit_edge67:                                    ; preds = %81
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  br i1 %80, label %93, label %88

.lr.ph66:                                         ; preds = %.lr.ph69, %81
  %77 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf12PhysicsTowerESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  %78 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf12PhysicsTowerESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  invoke void @_ZN7fastjet3cdf12PhysicsTowerC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(68) %15, ptr noundef nonnull align 8 dereferenceable(68) %78)
          to label %79 unwind label %86

79:                                               ; preds = %.lr.ph66
  %80 = invoke noundef zeroext i1 @_ZN7fastjet3cdf12PhysicsTower7isEqualES1_(ptr noundef nonnull align 8 dereferenceable(68) %77, ptr noundef nonnull %15)
          to label %81 unwind label %86

81:                                               ; preds = %79
  %82 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf12PhysicsTowerESt6vectorIS3_SaIS3_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %13, i32 noundef 0) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  %83 = call ptr @_ZNSt6vectorIN7fastjet3cdf12PhysicsTowerESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  store ptr %83, ptr %14, align 8
  %84 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7fastjet3cdf12PhysicsTowerESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  %not. = xor i1 %84, true
  %85 = or i1 %80, %not.
  br i1 %85, label %._crit_edge67, label %.lr.ph66, !llvm.loop !26

86:                                               ; preds = %79, %.lr.ph66
  %87 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  br label %98

.critedge:                                        ; preds = %.lr.ph69
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  br label %88

88:                                               ; preds = %.critedge, %._crit_edge67
  %89 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf12PhysicsTowerESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  invoke void @_ZN7fastjet3cdf12PhysicsTowerC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(68) %16, ptr noundef nonnull align 8 dereferenceable(68) %89)
          to label %90 unwind label %91

90:                                               ; preds = %88
  invoke void @_ZN7fastjet3cdf7Cluster8addTowerENS0_12PhysicsTowerE(ptr noundef nonnull align 8 dereferenceable(88) %7, ptr noundef nonnull %16)
          to label %93 unwind label %91

91:                                               ; preds = %90, %88
  %92 = landingpad { ptr, i32 }
          cleanup
  br label %98

93:                                               ; preds = %90, %._crit_edge67
  %94 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf12PhysicsTowerESt6vectorIS3_SaIS3_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %11, i32 noundef 0) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  %95 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf7ClusterESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %96 = call ptr @_ZNSt6vectorIN7fastjet3cdf12PhysicsTowerESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %95) #7
  store ptr %96, ptr %12, align 8
  %97 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7fastjet3cdf12PhysicsTowerESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  br i1 %97, label %.lr.ph69, label %._crit_edge70, !llvm.loop !27

98:                                               ; preds = %91, %86
  %.pn = phi { ptr, i32 } [ %87, %86 ], [ %92, %91 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  br label %115

99:                                               ; preds = %._crit_edge70, %._crit_edge
  %100 = load i32, ptr %20, align 4, !tbaa !19
  %.not57.not = icmp slt i32 %.04271, %100
  br i1 %.not57.not, label %101, label %108

101:                                              ; preds = %99
  %102 = load double, ptr %23, align 8, !tbaa !5
  %103 = load double, ptr %24, align 8, !tbaa !17
  %104 = load double, ptr %25, align 8, !tbaa !18
  %105 = fcmp oeq double %102, %.074
  %106 = fcmp oeq double %103, %.03673
  %or.cond = select i1 %105, i1 %106, i1 false
  %107 = fcmp oeq double %104, %.03972
  %or.cond61 = select i1 %or.cond, i1 %107, i1 false
  br i1 %or.cond61, label %._crit_edge77, label %108

108:                                              ; preds = %101, %99
  %.241 = phi double [ %.03972, %99 ], [ %104, %101 ]
  %.238 = phi double [ %.03673, %99 ], [ %103, %101 ]
  %.2 = phi double [ %.074, %99 ], [ %102, %101 ]
  %109 = add nuw nsw i32 %40, 1
  %110 = icmp slt i32 %40, %100
  br i1 %110, label %.lr.ph76, label %._crit_edge77, !llvm.loop !28

._crit_edge77:                                    ; preds = %101, %108, %28
  invoke void @_ZNSt6vectorIN7fastjet3cdf7ClusterESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(88) %7)
          to label %111 unwind label %.loopexit.split-lp

111:                                              ; preds = %._crit_edge77
  call void @_ZN7fastjet3cdf7ClusterD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %7) #7
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %7) #7
  %112 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7fastjet3cdf7ClusterESt6vectorIS3_SaIS3_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %5, i32 noundef 0) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %113 = call ptr @_ZNSt6vectorIN7fastjet3cdf7ClusterESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  store ptr %113, ptr %6, align 8
  %114 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7fastjet3cdf7ClusterESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  br i1 %114, label %28, label %._crit_edge80, !llvm.loop !29

115:                                              ; preds = %.loopexit, %.loopexit.split-lp, %98, %62
  %.pn59 = phi { ptr, i32 } [ %63, %62 ], [ %.pn, %98 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZN7fastjet3cdf7ClusterD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %7) #7
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  resume { ptr, i32 } %.pn59
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7fastjet3cdf12PhysicsTower7isEqualES1_(ptr noundef nonnull align 8 dereferenceable(68), ptr noundef) local_unnamed_addr #1 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 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 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 = { 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 #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !15, i64 56}
!6 = !{!"_ZTSN7fastjet3cdf7ClusterE", !7, i64 0, !14, i64 24, !16, i64 56, !15, i64 80}
!7 = !{!"_ZTSSt6vectorIN7fastjet3cdf12PhysicsTowerESaIS2_EE", !8, i64 0}
!8 = !{!"_ZTSSt12_Vector_baseIN7fastjet3cdf12PhysicsTowerESaIS2_EE", !9, i64 0}
!9 = !{!"_ZTSNSt12_Vector_baseIN7fastjet3cdf12PhysicsTowerESaIS2_EE12_Vector_implE", !10, i64 0}
!10 = !{!"_ZTSNSt12_Vector_baseIN7fastjet3cdf12PhysicsTowerESaIS2_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"_ZTSN7fastjet3cdf13LorentzVectorE", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24}
!15 = !{!"double", !12, i64 0}
!16 = !{!"_ZTSN7fastjet3cdf8CentroidE", !15, i64 0, !15, i64 8, !15, i64 16}
!17 = !{!6, !15, i64 64}
!18 = !{!6, !15, i64 72}
!19 = !{!20, !21, i64 20}
!20 = !{!"_ZTSN7fastjet3cdf15JetCluAlgorithmE", !15, i64 0, !15, i64 8, !21, i64 16, !21, i64 20, !21, i64 24, !15, i64 32}
!21 = !{!"int", !12, i64 0}
!22 = !{!20, !21, i64 24}
!23 = !{!20, !15, i64 8}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = distinct !{!26, !25}
!27 = distinct !{!27, !25}
!28 = distinct !{!28, !25}
!29 = distinct !{!29, !25}


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