; LLVM IR from mickypaganini/SSI2016-jet-clustering :: spartyjet-4.0.2_mac/External/fastjet-3.0.0/plugins/ATLASCone/JetSplitMergeTool.l_717186c7 (mergeEv)

; 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" = type { ptr }
%"struct.std::_List_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.3" = type { ptr }
%"class.fastjet::atlas::JetSplitMergeTool" = type { ptr, double, %"class.std::vector", %"class.std::vector", ptr, i32, i32 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<fastjet::atlas::Jet *, std::allocator<fastjet::atlas::Jet *>>::_Vector_impl" }
%"struct.std::_Vector_base<fastjet::atlas::Jet *, std::allocator<fastjet::atlas::Jet *>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastjet::atlas::Jet *, std::allocator<fastjet::atlas::Jet *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastjet::atlas::Jet *, std::allocator<fastjet::atlas::Jet *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.fastjet::atlas::LorentzVector" = type { double, double, double, double }

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #0

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

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

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

declare void @_ZN7fastjet5atlas3Jet6addJetEPS1_(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef) #4

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7fastjet5atlas17JetSplitMergeTool11split_mergeEv(ptr noundef nonnull align 8 dereferenceable(80) %0) #5 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca i8, align 1
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"struct.std::_List_iterator", align 8
  %13 = alloca %"struct.std::_List_iterator", align 8
  %14 = alloca double, align 8
  %15 = alloca ptr, align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.3", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca i32, align 4
  %25 = alloca %"class.__gnu_cxx::__normal_iterator.3", align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %27 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %28 = load ptr, ptr %2, align 8
  %29 = getelementptr inbounds %"class.fastjet::atlas::JetSplitMergeTool", ptr %28, i32 0, i32 2
  %30 = call noundef i64 @_ZNKSt6vectorIPN7fastjet5atlas3JetESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #10
  %31 = icmp uge i64 %30, 2
  br i1 %31, label %32, label %234

32:                                               ; preds = %1
  br label %33

33:                                               ; preds = %229, %32
  %34 = getelementptr inbounds %"class.fastjet::atlas::JetSplitMergeTool", ptr %28, i32 0, i32 2
  call void @_ZN7fastjet5atlas12sort_list_etERSt6vectorIPNS0_3JetESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(24) %34)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #10
  call void @_ZN9__gnu_cxx17__normal_iteratorIPPN7fastjet5atlas3JetESt6vectorIS4_SaIS4_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #10
  %35 = getelementptr inbounds %"class.fastjet::atlas::JetSplitMergeTool", ptr %28, i32 0, i32 2
  %36 = call ptr @_ZNSt6vectorIPN7fastjet5atlas3JetESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %35) #10
  %37 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %4, i32 0, i32 0
  store ptr %36, ptr %37, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #10
  %38 = getelementptr inbounds %"class.fastjet::atlas::JetSplitMergeTool", ptr %28, i32 0, i32 2
  %39 = call ptr @_ZNSt6vectorIPN7fastjet5atlas3JetESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %38) #10
  %40 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %5, i32 0, i32 0
  store ptr %39, ptr %40, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %3, ptr align 8 %4, i64 8, i1 false), !tbaa.struct !9
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN7fastjet5atlas3JetESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #10
  store i8 0, ptr %6, align 1, !tbaa !10
  br label %42

42:                                               ; preds = %213, %33
  %43 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7fastjet5atlas3JetESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %5) #10
  br i1 %43, label %44, label %215

44:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #10
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7fastjet5atlas3JetESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #10
  %46 = load ptr, ptr %45, align 8, !tbaa !5
  %47 = call noundef double @_ZNK7fastjet5atlas13LorentzVector3etaEv(ptr noundef nonnull align 8 dereferenceable(32) %46)
  store double %47, ptr %7, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #10
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7fastjet5atlas3JetESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #10
  %49 = load ptr, ptr %48, align 8, !tbaa !5
  %50 = call noundef double @_ZNK7fastjet5atlas13LorentzVector3phiEv(ptr noundef nonnull align 8 dereferenceable(32) %49)
  store double %50, ptr %8, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #10
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7fastjet5atlas3JetESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #10
  %52 = load ptr, ptr %51, align 8, !tbaa !5
  %53 = call noundef double @_ZNK7fastjet5atlas13LorentzVector3etaEv(ptr noundef nonnull align 8 dereferenceable(32) %52)
  store double %53, ptr %9, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #10
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7fastjet5atlas3JetESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #10
  %55 = load ptr, ptr %54, align 8, !tbaa !5
  %56 = call noundef double @_ZNK7fastjet5atlas13LorentzVector3phiEv(ptr noundef nonnull align 8 dereferenceable(32) %55)
  store double %56, ptr %10, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #10
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7fastjet5atlas3JetESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #10
  %58 = load ptr, ptr %57, align 8, !tbaa !5
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7fastjet5atlas3JetESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #10
  %60 = load ptr, ptr %59, align 8, !tbaa !5
  %61 = call noundef ptr @_ZN7fastjet5atlas16jet_from_overlapEPNS0_3JetES2_(ptr noundef %58, ptr noundef %60)
  store ptr %61, ptr %11, align 8, !tbaa !5
  %62 = getelementptr inbounds %"class.fastjet::atlas::JetSplitMergeTool", ptr %28, i32 0, i32 5
  %63 = load i32, ptr %62, align 8, !tbaa !14
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %62, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #10
  %65 = load ptr, ptr %11, align 8, !tbaa !5
  %66 = call ptr @_ZN7fastjet5atlas3Jet16firstConstituentEv(ptr noundef nonnull align 8 dereferenceable(64) %65)
  %67 = getelementptr inbounds %"struct.std::_List_iterator", ptr %12, i32 0, i32 0
  store ptr %66, ptr %67, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #10
  %68 = load ptr, ptr %11, align 8, !tbaa !5
  %69 = call ptr @_ZN7fastjet5atlas3Jet15lastConstituentEv(ptr noundef nonnull align 8 dereferenceable(64) %68)
  %70 = getelementptr inbounds %"struct.std::_List_iterator", ptr %13, i32 0, i32 0
  store ptr %69, ptr %70, align 8
  %71 = load ptr, ptr %11, align 8, !tbaa !5
  %72 = call noundef i32 @_ZN7fastjet5atlas3Jet17getConstituentNumEv(ptr noundef nonnull align 8 dereferenceable(64) %71)
  %73 = icmp ne i32 %72, 0
  br i1 %73, label %74, label %201

74:                                               ; preds = %44
  store i8 1, ptr %6, align 1, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #10
  %75 = load ptr, ptr %11, align 8, !tbaa !5
  %76 = getelementptr inbounds %"class.fastjet::atlas::LorentzVector", ptr %75, i32 0, i32 0
  %77 = load double, ptr %76, align 8, !tbaa !21
  %78 = call double @pow(double noundef %77, double noundef 2.000000e+00) #10
  %79 = load ptr, ptr %11, align 8, !tbaa !5
  %80 = getelementptr inbounds %"class.fastjet::atlas::LorentzVector", ptr %79, i32 0, i32 1
  %81 = load double, ptr %80, align 8, !tbaa !23
  %82 = call double @pow(double noundef %81, double noundef 2.000000e+00) #10
  %83 = fadd double %78, %82
  %84 = call double @sqrt(double noundef %83) #10
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7fastjet5atlas3JetESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #10
  %86 = load ptr, ptr %85, align 8, !tbaa !5
  %87 = getelementptr inbounds %"class.fastjet::atlas::LorentzVector", ptr %86, i32 0, i32 0
  %88 = load double, ptr %87, align 8, !tbaa !21
  %89 = call double @pow(double noundef %88, double noundef 2.000000e+00) #10
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7fastjet5atlas3JetESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #10
  %91 = load ptr, ptr %90, align 8, !tbaa !5
  %92 = getelementptr inbounds %"class.fastjet::atlas::LorentzVector", ptr %91, i32 0, i32 1
  %93 = load double, ptr %92, align 8, !tbaa !23
  %94 = call double @pow(double noundef %93, double noundef 2.000000e+00) #10
  %95 = fadd double %89, %94
  %96 = call double @sqrt(double noundef %95) #10
  %97 = fdiv double %84, %96
  store double %97, ptr %14, align 8, !tbaa !12
  %98 = load double, ptr %14, align 8, !tbaa !12
  %99 = getelementptr inbounds %"class.fastjet::atlas::JetSplitMergeTool", ptr %28, i32 0, i32 1
  %100 = load double, ptr %99, align 8, !tbaa !24
  %101 = fcmp ogt double %98, %100
  br i1 %101, label %102, label %131

102:                                              ; preds = %74
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #10
  %103 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7fastjet5atlas3JetESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #10
  %104 = load ptr, ptr %103, align 8, !tbaa !5
  store ptr %104, ptr %15, align 8, !tbaa !5
  br label %105

105:                                              ; preds = %111, %102
  %106 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorIPN7fastjet5atlas3JetEES6_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #10
  br i1 %106, label %107, label %113

107:                                              ; preds = %105
  %108 = load ptr, ptr %15, align 8, !tbaa !5
  %109 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt14_List_iteratorIPN7fastjet5atlas3JetEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #10
  %110 = load ptr, ptr %109, align 8, !tbaa !5
  call void @_ZN7fastjet5atlas3Jet17removeConstituentEPS1_(ptr noundef nonnull align 8 dereferenceable(64) %108, ptr noundef %110)
  br label %111

111:                                              ; preds = %107
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt14_List_iteratorIPN7fastjet5atlas3JetEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #10
  br label %105, !llvm.loop !25

113:                                              ; preds = %105
  %114 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7fastjet5atlas3JetESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #10
  %115 = load ptr, ptr %114, align 8, !tbaa !5
  %116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7fastjet5atlas3JetESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #10
  %117 = load ptr, ptr %116, align 8, !tbaa !5
  call void @_ZN7fastjet5atlas3Jet6addJetEPS1_(ptr noundef nonnull align 8 dereferenceable(64) %115, ptr noundef %117)
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7fastjet5atlas3JetESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #10
  %119 = load ptr, ptr %118, align 8, !tbaa !5
  %120 = icmp eq ptr %119, null
  br i1 %120, label %122, label %121

121:                                              ; preds = %113
  call void @_ZN7fastjet5atlas3JetD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %119) #10
  call void @_ZdlPvm(ptr noundef %119, i64 noundef 64) #11
  br label %122

122:                                              ; preds = %121, %113
  %123 = getelementptr inbounds %"class.fastjet::atlas::JetSplitMergeTool", ptr %28, i32 0, i32 2
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKPN7fastjet5atlas3JetESt6vectorIS4_SaIS4_EEEC2IPS4_vEERKNS0_IT_S9_EE(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %3) #10
  %124 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.3", ptr %16, i32 0, i32 0
  %125 = load ptr, ptr %124, align 8
  %126 = call ptr @_ZNSt6vectorIPN7fastjet5atlas3JetESaIS3_EE5eraseEN9__gnu_cxx17__normal_iteratorIPKS3_S5_EE(ptr noundef nonnull align 8 dereferenceable(24) %123, ptr %125)
  %127 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  store ptr %126, ptr %127, align 8
  %128 = getelementptr inbounds %"class.fastjet::atlas::JetSplitMergeTool", ptr %28, i32 0, i32 6
  %129 = load i32, ptr %128, align 4, !tbaa !27
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr %128, align 4, !tbaa !27
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #10
  br label %131

131:                                              ; preds = %122, %74
  %132 = load double, ptr %14, align 8, !tbaa !12
  %133 = getelementptr inbounds %"class.fastjet::atlas::JetSplitMergeTool", ptr %28, i32 0, i32 1
  %134 = load double, ptr %133, align 8, !tbaa !24
  %135 = fcmp ole double %132, %134
  br i1 %135, label %136, label %193

136:                                              ; preds = %131
  br label %137

137:                                              ; preds = %190, %136
  %138 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorIPN7fastjet5atlas3JetEES6_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #10
  br i1 %138, label %139, label %192

139:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #10
  %140 = load double, ptr %7, align 8, !tbaa !12
  %141 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt14_List_iteratorIPN7fastjet5atlas3JetEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #10
  %142 = load ptr, ptr %141, align 8, !tbaa !5
  %143 = call noundef double @_ZNK7fastjet5atlas13LorentzVector3etaEv(ptr noundef nonnull align 8 dereferenceable(32) %142)
  %144 = fsub double %140, %143
  store double %144, ptr %18, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #10
  %145 = load double, ptr %8, align 8, !tbaa !12
  %146 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt14_List_iteratorIPN7fastjet5atlas3JetEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #10
  %147 = load ptr, ptr %146, align 8, !tbaa !5
  %148 = call noundef double @_ZNK7fastjet5atlas13LorentzVector3phiEv(ptr noundef nonnull align 8 dereferenceable(32) %147)
  %149 = call noundef double @_ZN7fastjet5atlas12JetDistances8deltaPhiEdd(double noundef %145, double noundef %148)
  %150 = call double @llvm.fabs.f64(double %149)
  store double %150, ptr %19, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #10
  %151 = load double, ptr %18, align 8, !tbaa !12
  %152 = call double @pow(double noundef %151, double noundef 2.000000e+00) #10
  %153 = load double, ptr %19, align 8, !tbaa !12
  %154 = call double @pow(double noundef %153, double noundef 2.000000e+00) #10
  %155 = fadd double %152, %154
  store double %155, ptr %20, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #10
  %156 = load double, ptr %9, align 8, !tbaa !12
  %157 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt14_List_iteratorIPN7fastjet5atlas3JetEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #10
  %158 = load ptr, ptr %157, align 8, !tbaa !5
  %159 = call noundef double @_ZNK7fastjet5atlas13LorentzVector3etaEv(ptr noundef nonnull align 8 dereferenceable(32) %158)
  %160 = fsub double %156, %159
  store double %160, ptr %21, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #10
  %161 = load double, ptr %10, align 8, !tbaa !12
  %162 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt14_List_iteratorIPN7fastjet5atlas3JetEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #10
  %163 = load ptr, ptr %162, align 8, !tbaa !5
  %164 = call noundef double @_ZNK7fastjet5atlas13LorentzVector3phiEv(ptr noundef nonnull align 8 dereferenceable(32) %163)
  %165 = call noundef double @_ZN7fastjet5atlas12JetDistances8deltaPhiEdd(double noundef %161, double noundef %164)
  %166 = call double @llvm.fabs.f64(double %165)
  store double %166, ptr %22, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #10
  %167 = load double, ptr %21, align 8, !tbaa !12
  %168 = call double @pow(double noundef %167, double noundef 2.000000e+00) #10
  %169 = load double, ptr %22, align 8, !tbaa !12
  %170 = call double @pow(double noundef %169, double noundef 2.000000e+00) #10
  %171 = fadd double %168, %170
  store double %171, ptr %23, align 8, !tbaa !12
  %172 = load double, ptr %20, align 8, !tbaa !12
  %173 = load double, ptr %23, align 8, !tbaa !12
  %174 = fcmp ogt double %172, %173
  br i1 %174, label %175, label %180

175:                                              ; preds = %139
  %176 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7fastjet5atlas3JetESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #10
  %177 = load ptr, ptr %176, align 8, !tbaa !5
  %178 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt14_List_iteratorIPN7fastjet5atlas3JetEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #10
  %179 = load ptr, ptr %178, align 8, !tbaa !5
  call void @_ZN7fastjet5atlas3Jet17removeConstituentEPS1_(ptr noundef nonnull align 8 dereferenceable(64) %177, ptr noundef %179)
  br label %180

180:                                              ; preds = %175, %139
  %181 = load double, ptr %20, align 8, !tbaa !12
  %182 = load double, ptr %23, align 8, !tbaa !12
  %183 = fcmp ole double %181, %182
  br i1 %183, label %184, label %189

184:                                              ; preds = %180
  %185 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7fastjet5atlas3JetESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #10
  %186 = load ptr, ptr %185, align 8, !tbaa !5
  %187 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt14_List_iteratorIPN7fastjet5atlas3JetEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #10
  %188 = load ptr, ptr %187, align 8, !tbaa !5
  call void @_ZN7fastjet5atlas3Jet17removeConstituentEPS1_(ptr noundef nonnull align 8 dereferenceable(64) %186, ptr noundef %188)
  br label %189

189:                                              ; preds = %184, %180
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #10
  br label %190

190:                                              ; preds = %189
  %191 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt14_List_iteratorIPN7fastjet5atlas3JetEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #10
  br label %137, !llvm.loop !28

192:                                              ; preds = %137
  br label %193

193:                                              ; preds = %192, %131
  %194 = load ptr, ptr %11, align 8, !tbaa !5
  %195 = icmp eq ptr %194, null
  br i1 %195, label %197, label %196

196:                                              ; preds = %193
  call void @_ZN7fastjet5atlas3JetD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %194) #10
  call void @_ZdlPvm(ptr noundef %194, i64 noundef 64) #11
  br label %197

197:                                              ; preds = %196, %193
  %198 = getelementptr inbounds %"class.fastjet::atlas::JetSplitMergeTool", ptr %28, i32 0, i32 6
  %199 = load i32, ptr %198, align 4, !tbaa !27
  %200 = add nsw i32 %199, 1
  store i32 %200, ptr %198, align 4, !tbaa !27
  store i32 4, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #10
  br label %210

201:                                              ; preds = %44
  %202 = load ptr, ptr %11, align 8, !tbaa !5
  %203 = icmp eq ptr %202, null
  br i1 %203, label %205, label %204

204:                                              ; preds = %201
  call void @_ZN7fastjet5atlas3JetD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %202) #10
  call void @_ZdlPvm(ptr noundef %202, i64 noundef 64) #11
  br label %205

205:                                              ; preds = %204, %201
  %206 = getelementptr inbounds %"class.fastjet::atlas::JetSplitMergeTool", ptr %28, i32 0, i32 6
  %207 = load i32, ptr %206, align 4, !tbaa !27
  %208 = add nsw i32 %207, 1
  store i32 %208, ptr %206, align 4, !tbaa !27
  br label %209

209:                                              ; preds = %205
  store i32 0, ptr %24, align 4
  br label %210

210:                                              ; preds = %209, %197
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #10
  %211 = load i32, ptr %24, align 4
  switch i32 %211, label %246 [
    i32 0, label %212
    i32 4, label %215
  ]

212:                                              ; preds = %210
  br label %213

213:                                              ; preds = %212
  %214 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN7fastjet5atlas3JetESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #10
  br label %42, !llvm.loop !29

215:                                              ; preds = %210, %42
  %216 = load i8, ptr %6, align 1, !tbaa !10, !range !30, !noundef !31
  %217 = trunc i8 %216 to i1
  %218 = zext i1 %217 to i32
  %219 = icmp eq i32 %218, 0
  br i1 %219, label %220, label %228

220:                                              ; preds = %215
  %221 = getelementptr inbounds %"class.fastjet::atlas::JetSplitMergeTool", ptr %28, i32 0, i32 3
  %222 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7fastjet5atlas3JetESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #10
  call void @_ZNSt6vectorIPN7fastjet5atlas3JetESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %221, ptr noundef nonnull align 8 dereferenceable(8) %222)
  %223 = getelementptr inbounds %"class.fastjet::atlas::JetSplitMergeTool", ptr %28, i32 0, i32 2
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKPN7fastjet5atlas3JetESt6vectorIS4_SaIS4_EEEC2IPS4_vEERKNS0_IT_S9_EE(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %4) #10
  %224 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.3", ptr %25, i32 0, i32 0
  %225 = load ptr, ptr %224, align 8
  %226 = call ptr @_ZNSt6vectorIPN7fastjet5atlas3JetESaIS3_EE5eraseEN9__gnu_cxx17__normal_iteratorIPKS3_S5_EE(ptr noundef nonnull align 8 dereferenceable(24) %223, ptr %225)
  %227 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %26, i32 0, i32 0
  store ptr %226, ptr %227, align 8
  br label %228

228:                                              ; preds = %220, %215
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #10
  br label %229

229:                                              ; preds = %228
  %230 = getelementptr inbounds %"class.fastjet::atlas::JetSplitMergeTool", ptr %28, i32 0, i32 2
  %231 = call noundef i64 @_ZNKSt6vectorIPN7fastjet5atlas3JetESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %230) #10
  %232 = icmp ne i64 %231, 0
  br i1 %232, label %33, label %233, !llvm.loop !32

233:                                              ; preds = %229
  br label %245

234:                                              ; preds = %1
  %235 = getelementptr inbounds %"class.fastjet::atlas::JetSplitMergeTool", ptr %28, i32 0, i32 2
  %236 = call noundef i64 @_ZNKSt6vectorIPN7fastjet5atlas3JetESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %235) #10
  %237 = icmp eq i64 %236, 1
  br i1 %237, label %238, label %244

238:                                              ; preds = %234
  %239 = getelementptr inbounds %"class.fastjet::atlas::JetSplitMergeTool", ptr %28, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #10
  %240 = getelementptr inbounds %"class.fastjet::atlas::JetSplitMergeTool", ptr %28, i32 0, i32 2
  %241 = call ptr @_ZNSt6vectorIPN7fastjet5atlas3JetESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %240) #10
  %242 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %27, i32 0, i32 0
  store ptr %241, ptr %242, align 8
  %243 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7fastjet5atlas3JetESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #10
  call void @_ZNSt6vectorIPN7fastjet5atlas3JetESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %239, ptr noundef nonnull align 8 dereferenceable(8) %243)
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #10
  br label %244

244:                                              ; preds = %238, %234
  br label %245

245:                                              ; preds = %244, %233
  ret void

246:                                              ; preds = %210
  unreachable
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7fastjet5atlas12sort_list_etERSt6vectorIPNS0_3JetESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(24)) #6

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

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

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

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

declare noundef ptr @_ZN7fastjet5atlas16jet_from_overlapEPNS0_3JetES2_(ptr noundef, ptr noundef) #4

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

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

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

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

; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #8

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7fastjet5atlas3Jet17removeConstituentEPS1_(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef) #5 align 2

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZN7fastjet5atlas12JetDistances8deltaPhiEdd(double noundef, double noundef) #6 align 2

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

attributes #0 = { nobuiltin 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { 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 #9 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #10 = { nounwind }
attributes #11 = { builtin 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 = !{i64 0, i64 8, !5}
!10 = !{!11, !11, i64 0}
!11 = !{!"bool", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = !{!15, !20, i64 72}
!15 = !{!"_ZTSN7fastjet5atlas17JetSplitMergeToolE", !13, i64 8, !16, i64 16, !16, i64 40, !6, i64 64, !20, i64 72, !20, i64 76}
!16 = !{!"_ZTSSt6vectorIPN7fastjet5atlas3JetESaIS3_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIPN7fastjet5atlas3JetESaIS3_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIPN7fastjet5atlas3JetESaIS3_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIPN7fastjet5atlas3JetESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!"int", !7, i64 0}
!21 = !{!22, !13, i64 0}
!22 = !{!"_ZTSN7fastjet5atlas13LorentzVectorE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!23 = !{!22, !13, i64 8}
!24 = !{!15, !13, i64 8}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!15, !20, i64 76}
!28 = distinct !{!28, !26}
!29 = distinct !{!29, !26}
!30 = !{i8 0, i8 2}
!31 = !{}
!32 = distinct !{!32, !26}


; 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" = type { ptr }
%"struct.std::_List_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.3" = type { ptr }

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #0

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

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

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

declare void @_ZN7fastjet5atlas3Jet6addJetEPS1_(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef) local_unnamed_addr #4

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7fastjet5atlas17JetSplitMergeTool11split_mergeEv(ptr noundef nonnull align 8 dereferenceable(80) %0) local_unnamed_addr #5 align 2 {
  %2 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"struct.std::_List_iterator", align 8
  %6 = alloca %"struct.std::_List_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.3", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.3", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = getelementptr inbounds i8, ptr %0, i64 16
  %11 = tail call noundef i64 @_ZNKSt6vectorIPN7fastjet5atlas3JetESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  %12 = icmp ugt i64 %11, 1
  br i1 %12, label %.preheader42, label %148

.preheader42:                                     ; preds = %1
  %13 = getelementptr inbounds i8, ptr %0, i64 72
  %14 = getelementptr inbounds i8, ptr %0, i64 76
  %15 = getelementptr inbounds i8, ptr %0, i64 8
  %16 = getelementptr inbounds i8, ptr %0, i64 40
  br label %17

17:                                               ; preds = %.preheader42, %146
  call void @_ZN7fastjet5atlas12sort_list_etERSt6vectorIPNS0_3JetESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(24) %10)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPPN7fastjet5atlas3JetESt6vectorIS4_SaIS4_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  %18 = call ptr @_ZNSt6vectorIPN7fastjet5atlas3JetESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  store ptr %18, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  %19 = call ptr @_ZNSt6vectorIPN7fastjet5atlas3JetESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  store ptr %19, ptr %4, align 8
  %20 = load i64, ptr %3, align 8, !tbaa !5
  store i64 %20, ptr %2, align 8, !tbaa !5
  %21 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN7fastjet5atlas3JetESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  %22 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7fastjet5atlas3JetESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  br i1 %22, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %17, %138
  %23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7fastjet5atlas3JetESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #8
  %24 = load ptr, ptr %23, align 8, !tbaa !5
  %25 = call noundef double @_ZNK7fastjet5atlas13LorentzVector3etaEv(ptr noundef nonnull align 8 dereferenceable(32) %24)
  %26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7fastjet5atlas3JetESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #8
  %27 = load ptr, ptr %26, align 8, !tbaa !5
  %28 = call noundef double @_ZNK7fastjet5atlas13LorentzVector3phiEv(ptr noundef nonnull align 8 dereferenceable(32) %27)
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7fastjet5atlas3JetESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  %30 = load ptr, ptr %29, align 8, !tbaa !5
  %31 = call noundef double @_ZNK7fastjet5atlas13LorentzVector3etaEv(ptr noundef nonnull align 8 dereferenceable(32) %30)
  %32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7fastjet5atlas3JetESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  %33 = load ptr, ptr %32, align 8, !tbaa !5
  %34 = call noundef double @_ZNK7fastjet5atlas13LorentzVector3phiEv(ptr noundef nonnull align 8 dereferenceable(32) %33)
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7fastjet5atlas3JetESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #8
  %36 = load ptr, ptr %35, align 8, !tbaa !5
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7fastjet5atlas3JetESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  %38 = load ptr, ptr %37, align 8, !tbaa !5
  %39 = call noundef ptr @_ZN7fastjet5atlas16jet_from_overlapEPNS0_3JetES2_(ptr noundef %36, ptr noundef %38)
  %40 = load i32, ptr %13, align 8, !tbaa !9
  %41 = add nsw i32 %40, 1
  store i32 %41, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  %42 = call ptr @_ZN7fastjet5atlas3Jet16firstConstituentEv(ptr noundef nonnull align 8 dereferenceable(64) %39)
  store ptr %42, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  %43 = call ptr @_ZN7fastjet5atlas3Jet15lastConstituentEv(ptr noundef nonnull align 8 dereferenceable(64) %39)
  store ptr %43, ptr %6, align 8
  %44 = call noundef i32 @_ZN7fastjet5atlas3Jet17getConstituentNumEv(ptr noundef nonnull align 8 dereferenceable(64) %39)
  %.not = icmp eq i32 %44, 0
  br i1 %.not, label %138, label %45

45:                                               ; preds = %.lr.ph
  %46 = load double, ptr %39, align 8, !tbaa !17
  %47 = getelementptr inbounds i8, ptr %39, i64 8
  %48 = load double, ptr %47, align 8, !tbaa !19
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7fastjet5atlas3JetESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  %50 = load ptr, ptr %49, align 8, !tbaa !5
  %51 = load double, ptr %50, align 8, !tbaa !17
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7fastjet5atlas3JetESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  %53 = load ptr, ptr %52, align 8, !tbaa !5
  %54 = getelementptr inbounds i8, ptr %53, i64 8
  %55 = load double, ptr %54, align 8, !tbaa !19
  %56 = insertelement <2 x double> poison, double %46, i64 0
  %57 = insertelement <2 x double> %56, double %51, i64 1
  %58 = fmul <2 x double> %57, %57
  %59 = insertelement <2 x double> poison, double %48, i64 0
  %60 = insertelement <2 x double> %59, double %55, i64 1
  %61 = fmul <2 x double> %60, %60
  %62 = fadd <2 x double> %58, %61
  %63 = call <2 x double> @llvm.sqrt.v2f64(<2 x double> %62)
  %64 = extractelement <2 x double> %63, i64 0
  %65 = extractelement <2 x double> %63, i64 1
  %66 = fdiv double %64, %65
  %67 = load double, ptr %15, align 8, !tbaa !20
  %68 = fcmp ogt double %66, %67
  br i1 %68, label %69, label %90

69:                                               ; preds = %45
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7fastjet5atlas3JetESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #8
  %71 = load ptr, ptr %70, align 8, !tbaa !5
  %72 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorIPN7fastjet5atlas3JetEES6_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  br i1 %72, label %.lr.ph48, label %._crit_edge49

.lr.ph48:                                         ; preds = %69, %.lr.ph48
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt14_List_iteratorIPN7fastjet5atlas3JetEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  %74 = load ptr, ptr %73, align 8, !tbaa !5
  call void @_ZN7fastjet5atlas3Jet17removeConstituentEPS1_(ptr noundef nonnull align 8 dereferenceable(64) %71, ptr noundef %74)
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt14_List_iteratorIPN7fastjet5atlas3JetEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  %76 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorIPN7fastjet5atlas3JetEES6_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  br i1 %76, label %.lr.ph48, label %._crit_edge49, !llvm.loop !21

._crit_edge49:                                    ; preds = %.lr.ph48, %69
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7fastjet5atlas3JetESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #8
  %78 = load ptr, ptr %77, align 8, !tbaa !5
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7fastjet5atlas3JetESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  %80 = load ptr, ptr %79, align 8, !tbaa !5
  call void @_ZN7fastjet5atlas3Jet6addJetEPS1_(ptr noundef nonnull align 8 dereferenceable(64) %78, ptr noundef %80)
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7fastjet5atlas3JetESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  %82 = load ptr, ptr %81, align 8, !tbaa !5
  %83 = icmp eq ptr %82, null
  br i1 %83, label %85, label %84

84:                                               ; preds = %._crit_edge49
  call void @_ZN7fastjet5atlas3JetD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %82) #8
  call void @_ZdlPvm(ptr noundef nonnull %82, i64 noundef 64) #9
  br label %85

85:                                               ; preds = %84, %._crit_edge49
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKPN7fastjet5atlas3JetESt6vectorIS4_SaIS4_EEEC2IPS4_vEERKNS0_IT_S9_EE(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  %86 = load ptr, ptr %7, align 8
  %87 = call ptr @_ZNSt6vectorIPN7fastjet5atlas3JetESaIS3_EE5eraseEN9__gnu_cxx17__normal_iteratorIPKS3_S5_EE(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr %86)
  %88 = load i32, ptr %14, align 4, !tbaa !23
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %14, align 4, !tbaa !23
  %.pre = load double, ptr %15, align 8, !tbaa !20
  br label %90

90:                                               ; preds = %85, %45
  %91 = phi double [ %.pre, %85 ], [ %67, %45 ]
  %92 = fcmp ugt double %66, %91
  br i1 %92, label %.thread39, label %.preheader

.preheader:                                       ; preds = %90
  %93 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorIPN7fastjet5atlas3JetEES6_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  br i1 %93, label %.lr.ph50.preheader, label %.thread39

.lr.ph50.preheader:                               ; preds = %.preheader
  %94 = insertelement <2 x double> poison, double %25, i64 0
  %95 = insertelement <2 x double> %94, double %31, i64 1
  br label %.lr.ph50

.lr.ph50:                                         ; preds = %.lr.ph50.preheader, %133
  %96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt14_List_iteratorIPN7fastjet5atlas3JetEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  %97 = load ptr, ptr %96, align 8, !tbaa !5
  %98 = call noundef double @_ZNK7fastjet5atlas13LorentzVector3etaEv(ptr noundef nonnull align 8 dereferenceable(32) %97)
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt14_List_iteratorIPN7fastjet5atlas3JetEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  %100 = load ptr, ptr %99, align 8, !tbaa !5
  %101 = call noundef double @_ZNK7fastjet5atlas13LorentzVector3phiEv(ptr noundef nonnull align 8 dereferenceable(32) %100)
  %102 = call noundef double @_ZN7fastjet5atlas12JetDistances8deltaPhiEdd(double noundef %28, double noundef %101)
  %103 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt14_List_iteratorIPN7fastjet5atlas3JetEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  %104 = load ptr, ptr %103, align 8, !tbaa !5
  %105 = call noundef double @_ZNK7fastjet5atlas13LorentzVector3etaEv(ptr noundef nonnull align 8 dereferenceable(32) %104)
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt14_List_iteratorIPN7fastjet5atlas3JetEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  %107 = load ptr, ptr %106, align 8, !tbaa !5
  %108 = call noundef double @_ZNK7fastjet5atlas13LorentzVector3phiEv(ptr noundef nonnull align 8 dereferenceable(32) %107)
  %109 = call noundef double @_ZN7fastjet5atlas12JetDistances8deltaPhiEdd(double noundef %34, double noundef %108)
  %110 = insertelement <2 x double> poison, double %98, i64 0
  %111 = insertelement <2 x double> %110, double %105, i64 1
  %112 = fsub <2 x double> %95, %111
  %113 = fmul <2 x double> %112, %112
  %114 = insertelement <2 x double> poison, double %102, i64 0
  %115 = insertelement <2 x double> %114, double %109, i64 1
  %116 = fmul <2 x double> %115, %115
  %117 = fadd <2 x double> %113, %116
  %118 = extractelement <2 x double> %117, i64 0
  %119 = extractelement <2 x double> %117, i64 1
  %120 = fcmp ogt double %118, %119
  br i1 %120, label %121, label %126

121:                                              ; preds = %.lr.ph50
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7fastjet5atlas3JetESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #8
  %123 = load ptr, ptr %122, align 8, !tbaa !5
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt14_List_iteratorIPN7fastjet5atlas3JetEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  %125 = load ptr, ptr %124, align 8, !tbaa !5
  call void @_ZN7fastjet5atlas3Jet17removeConstituentEPS1_(ptr noundef nonnull align 8 dereferenceable(64) %123, ptr noundef %125)
  br label %126

126:                                              ; preds = %121, %.lr.ph50
  %127 = fcmp ugt double %118, %119
  br i1 %127, label %133, label %128

128:                                              ; preds = %126
  %129 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7fastjet5atlas3JetESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  %130 = load ptr, ptr %129, align 8, !tbaa !5
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt14_List_iteratorIPN7fastjet5atlas3JetEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  %132 = load ptr, ptr %131, align 8, !tbaa !5
  call void @_ZN7fastjet5atlas3Jet17removeConstituentEPS1_(ptr noundef nonnull align 8 dereferenceable(64) %130, ptr noundef %132)
  br label %133

133:                                              ; preds = %128, %126
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt14_List_iteratorIPN7fastjet5atlas3JetEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  %135 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorIPN7fastjet5atlas3JetEES6_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  br i1 %135, label %.lr.ph50, label %.thread39, !llvm.loop !24

.thread39:                                        ; preds = %133, %.preheader, %90
  call void @_ZN7fastjet5atlas3JetD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %39) #8
  call void @_ZdlPvm(ptr noundef %39, i64 noundef 64) #9
  %136 = load i32, ptr %14, align 4, !tbaa !23
  %137 = add nsw i32 %136, 1
  store i32 %137, ptr %14, align 4, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  br label %146

138:                                              ; preds = %.lr.ph
  call void @_ZN7fastjet5atlas3JetD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %39) #8
  call void @_ZdlPvm(ptr noundef %39, i64 noundef 64) #9
  %139 = load i32, ptr %14, align 4, !tbaa !23
  %140 = add nsw i32 %139, 1
  store i32 %140, ptr %14, align 4, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  %141 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN7fastjet5atlas3JetESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  %142 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7fastjet5atlas3JetESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  br i1 %142, label %.lr.ph, label %._crit_edge, !llvm.loop !25

._crit_edge:                                      ; preds = %138, %17
  %143 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7fastjet5atlas3JetESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #8
  call void @_ZNSt6vectorIPN7fastjet5atlas3JetESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(8) %143)
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKPN7fastjet5atlas3JetESt6vectorIS4_SaIS4_EEEC2IPS4_vEERKNS0_IT_S9_EE(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %3) #8
  %144 = load ptr, ptr %8, align 8
  %145 = call ptr @_ZNSt6vectorIPN7fastjet5atlas3JetESaIS3_EE5eraseEN9__gnu_cxx17__normal_iteratorIPKS3_S5_EE(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr %144)
  br label %146

146:                                              ; preds = %.thread39, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  %147 = call noundef i64 @_ZNKSt6vectorIPN7fastjet5atlas3JetESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  %.not30 = icmp eq i64 %147, 0
  br i1 %.not30, label %.loopexit, label %17, !llvm.loop !26

148:                                              ; preds = %1
  %149 = tail call noundef i64 @_ZNKSt6vectorIPN7fastjet5atlas3JetESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  %150 = icmp eq i64 %149, 1
  br i1 %150, label %151, label %.loopexit

151:                                              ; preds = %148
  %152 = getelementptr inbounds i8, ptr %0, i64 40
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  %153 = tail call ptr @_ZNSt6vectorIPN7fastjet5atlas3JetESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  store ptr %153, ptr %9, align 8
  %154 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7fastjet5atlas3JetESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  call void @_ZNSt6vectorIPN7fastjet5atlas3JetESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %152, ptr noundef nonnull align 8 dereferenceable(8) %154)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  br label %.loopexit

.loopexit:                                        ; preds = %146, %148, %151
  ret void
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7fastjet5atlas12sort_list_etERSt6vectorIPNS0_3JetESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #6

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

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

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

declare noundef ptr @_ZN7fastjet5atlas16jet_from_overlapEPNS0_3JetES2_(ptr noundef, ptr noundef) local_unnamed_addr #4

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7fastjet5atlas3Jet17removeConstituentEPS1_(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef) local_unnamed_addr #5 align 2

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZN7fastjet5atlas12JetDistances8deltaPhiEdd(double noundef, double noundef) local_unnamed_addr #6 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.sqrt.v2f64(<2 x double>) #7

attributes #0 = { nobuiltin 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nounwind }
attributes #9 = { builtin 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 72}
!10 = !{!"_ZTSN7fastjet5atlas17JetSplitMergeToolE", !11, i64 8, !12, i64 16, !12, i64 40, !6, i64 64, !16, i64 72, !16, i64 76}
!11 = !{!"double", !7, i64 0}
!12 = !{!"_ZTSSt6vectorIPN7fastjet5atlas3JetESaIS3_EE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIPN7fastjet5atlas3JetESaIS3_EE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIPN7fastjet5atlas3JetESaIS3_EE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIPN7fastjet5atlas3JetESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!16 = !{!"int", !7, i64 0}
!17 = !{!18, !11, i64 0}
!18 = !{!"_ZTSN7fastjet5atlas13LorentzVectorE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24}
!19 = !{!18, !11, i64 8}
!20 = !{!10, !11, i64 8}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!10, !16, i64 76}
!24 = distinct !{!24, !22}
!25 = distinct !{!25, !22}
!26 = distinct !{!26, !22}


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