; LLVM IR from mickypaganini/SSI2016-jet-clustering :: spartyjet-4.0.2_mac/ExternalTools/Qjets (Qjets)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.std::_List_iterator" = type { ptr }
%class.Qjets = type { double, double, double, double, double, double, %"class.std::vector", %"class.std::__cxx11::list" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<jet_distance, std::allocator<jet_distance>>::_List_impl" }
%"struct.std::__cxx11::_List_base<jet_distance, std::allocator<jet_distance>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%struct.jet_distance = type { double, i32, i32 }

@.str.1 = external hidden unnamed_addr constant [119 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [10 x i8], align 1
@__PRETTY_FUNCTION__._ZN5Qjets7ClusterERN7fastjet15ClusterSequenceE = external hidden unnamed_addr constant [48 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5Qjets11JetUnmergedEi(ptr noundef nonnull align 8 dereferenceable(96), i32 noundef) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Qjets26ComputeNewDistanceMeasuresERN7fastjet15ClusterSequenceEi(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(276), i32 noundef) #0 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(88) ptr @_ZNKSt6vectorIN7fastjet9PseudoJetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 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
declare dso_local void @_ZN5Qjets11ComputeDCutERN7fastjet15ClusterSequenceE(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(276)) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN5Qjets22ComputeMinimumDistanceEv(ptr noundef nonnull align 8 dereferenceable(96)) #0 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN5Qjets20ComputeNormalizationEd(ptr noundef nonnull align 8 dereferenceable(96), double noundef) #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSt5isnand(double noundef) #3

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Qjets7ClusterERN7fastjet15ClusterSequenceE(ptr noundef nonnull align 8 dereferenceable(96) %0, ptr noundef nonnull align 8 dereferenceable(276) %1) #0 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca i32, align 4
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca %"struct.std::_List_iterator", align 8
  %11 = alloca %"struct.std::_List_iterator", align 8
  %12 = alloca i32, align 4
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca %"struct.std::_List_iterator", align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %18 = load ptr, ptr %3, align 8
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN5Qjets11ComputeDCutERN7fastjet15ClusterSequenceE(ptr noundef nonnull align 8 dereferenceable(96) %18, ptr noundef nonnull align 8 dereferenceable(276) %19)
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7fastjet15ClusterSequence4jetsEv(ptr noundef nonnull align 8 dereferenceable(276) %20)
  call void @_ZN5Qjets19ComputeAllDistancesERKSt6vectorIN7fastjet9PseudoJetESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(96) %18, ptr noundef nonnull align 8 dereferenceable(24) %21)
  br label %22

22:                                               ; preds = %150, %2
  %23 = getelementptr inbounds %class.Qjets, ptr %18, i32 0, i32 7
  %24 = call noundef zeroext i1 @_ZNKSt7__cxx114listI12jet_distanceSaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #6
  %25 = xor i1 %24, true
  br i1 %25, label %26, label %151

26:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %27 = call noundef double @_ZN5Qjets22ComputeMinimumDistanceEv(ptr noundef nonnull align 8 dereferenceable(96) %18)
  store double %27, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %28 = load double, ptr %5, align 8, !tbaa !9
  %29 = call noundef double @_ZN5Qjets20ComputeNormalizationEd(ptr noundef nonnull align 8 dereferenceable(96) %18, double noundef %28)
  store double %29, ptr %6, align 8, !tbaa !9
  %30 = getelementptr inbounds %class.Qjets, ptr %18, i32 0, i32 7
  %31 = call noundef i64 @_ZNKSt7__cxx114listI12jet_distanceSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #6
  %32 = icmp eq i64 %31, 0
  br i1 %32, label %33, label %34

33:                                               ; preds = %26
  store i32 3, ptr %7, align 4
  br label %148

34:                                               ; preds = %26
  %35 = load double, ptr %6, align 8, !tbaa !9
  %36 = fcmp ogt double %35, 0.000000e+00
  br i1 %36, label %37, label %38

37:                                               ; preds = %34
  br label %40

38:                                               ; preds = %34
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 74, ptr noundef @__PRETTY_FUNCTION__._ZN5Qjets7ClusterERN7fastjet15ClusterSequenceE) #7
  unreachable

39:                                               ; No predecessors!
  br label %40

40:                                               ; preds = %39, %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %41 = call noundef double @_ZN5Qjets4RandEv(ptr noundef nonnull align 8 dereferenceable(96) %18)
  store double %41, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store double 0.000000e+00, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %42 = getelementptr inbounds %class.Qjets, ptr %18, i32 0, i32 7
  %43 = call ptr @_ZNSt7__cxx114listI12jet_distanceSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %42) #6
  %44 = getelementptr inbounds %"struct.std::_List_iterator", ptr %10, i32 0, i32 0
  store ptr %43, ptr %44, align 8
  br label %45

45:                                               ; preds = %143, %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %46 = getelementptr inbounds %class.Qjets, ptr %18, i32 0, i32 7
  %47 = call ptr @_ZNSt7__cxx114listI12jet_distanceSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #6
  %48 = getelementptr inbounds %"struct.std::_List_iterator", ptr %11, i32 0, i32 0
  store ptr %47, ptr %48, align 8
  %49 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorI12jet_distanceES3_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br i1 %49, label %51, label %50

50:                                               ; preds = %45
  store i32 4, ptr %7, align 4
  br label %146

51:                                               ; preds = %45
  %52 = getelementptr inbounds %class.Qjets, ptr %18, i32 0, i32 5
  %53 = load double, ptr %52, align 8, !tbaa !11
  %54 = fneg double %53
  %55 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt14_List_iteratorI12jet_distanceEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  %56 = getelementptr inbounds %struct.jet_distance, ptr %55, i32 0, i32 0
  %57 = load double, ptr %56, align 8, !tbaa !23
  %58 = load double, ptr %5, align 8, !tbaa !9
  %59 = fsub double %57, %58
  %60 = fmul double %54, %59
  %61 = load double, ptr %5, align 8, !tbaa !9
  %62 = fdiv double %60, %61
  %63 = call double @exp(double noundef %62) #6
  %64 = load double, ptr %6, align 8, !tbaa !9
  %65 = fdiv double %63, %64
  %66 = load double, ptr %9, align 8, !tbaa !9
  %67 = fadd double %66, %65
  store double %67, ptr %9, align 8, !tbaa !9
  %68 = load double, ptr %9, align 8, !tbaa !9
  %69 = call noundef zeroext i1 @_ZSt5isnand(double noundef %68)
  %70 = xor i1 %69, true
  br i1 %70, label %71, label %72

71:                                               ; preds = %51
  br label %74

72:                                               ; preds = %51
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 82, ptr noundef @__PRETTY_FUNCTION__._ZN5Qjets7ClusterERN7fastjet15ClusterSequenceE) #7
  unreachable

73:                                               ; No predecessors!
  br label %74

74:                                               ; preds = %73, %71
  %75 = load double, ptr %9, align 8, !tbaa !9
  %76 = load double, ptr %8, align 8, !tbaa !9
  %77 = fcmp ogt double %75, %76
  br i1 %77, label %78, label %142

78:                                               ; preds = %74
  %79 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt14_List_iteratorI12jet_distanceEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = call noundef zeroext i1 @_ZN5Qjets5PruneER12jet_distanceRN7fastjet15ClusterSequenceE(ptr noundef nonnull align 8 dereferenceable(96) %18, ptr noundef nonnull align 8 dereferenceable(16) %79, ptr noundef nonnull align 8 dereferenceable(276) %80)
  br i1 %81, label %104, label %82

82:                                               ; preds = %78
  %83 = getelementptr inbounds %class.Qjets, ptr %18, i32 0, i32 6
  %84 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt14_List_iteratorI12jet_distanceEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  %85 = getelementptr inbounds %struct.jet_distance, ptr %84, i32 0, i32 1
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %83, ptr noundef nonnull align 4 dereferenceable(4) %85)
  %86 = getelementptr inbounds %class.Qjets, ptr %18, i32 0, i32 6
  %87 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt14_List_iteratorI12jet_distanceEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  %88 = getelementptr inbounds %struct.jet_distance, ptr %87, i32 0, i32 2
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %86, ptr noundef nonnull align 4 dereferenceable(4) %88)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt14_List_iteratorI12jet_distanceEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  %91 = getelementptr inbounds %struct.jet_distance, ptr %90, i32 0, i32 1
  %92 = load i32, ptr %91, align 8, !tbaa !26
  %93 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt14_List_iteratorI12jet_distanceEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  %94 = getelementptr inbounds %struct.jet_distance, ptr %93, i32 0, i32 2
  %95 = load i32, ptr %94, align 4, !tbaa !27
  call void @_ZN7fastjet15ClusterSequence30plugin_record_ij_recombinationEiidRi(ptr noundef nonnull align 8 dereferenceable(276) %89, i32 noundef %92, i32 noundef %95, double noundef 1.000000e+00, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %96 = load i32, ptr %12, align 4, !tbaa !28
  %97 = call noundef zeroext i1 @_ZN5Qjets11JetUnmergedEi(ptr noundef nonnull align 8 dereferenceable(96) %18, i32 noundef %96)
  br i1 %97, label %98, label %99

98:                                               ; preds = %82
  br label %101

99:                                               ; preds = %82
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 90, ptr noundef @__PRETTY_FUNCTION__._ZN5Qjets7ClusterERN7fastjet15ClusterSequenceE) #7
  unreachable

100:                                              ; No predecessors!
  br label %101

101:                                              ; preds = %100, %98
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = load i32, ptr %12, align 4, !tbaa !28
  call void @_ZN5Qjets26ComputeNewDistanceMeasuresERN7fastjet15ClusterSequenceEi(ptr noundef nonnull align 8 dereferenceable(96) %18, ptr noundef nonnull align 8 dereferenceable(276) %102, i32 noundef %103)
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %141

104:                                              ; preds = %78
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7fastjet15ClusterSequence4jetsEv(ptr noundef nonnull align 8 dereferenceable(276) %105)
  %107 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt14_List_iteratorI12jet_distanceEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  %108 = getelementptr inbounds %struct.jet_distance, ptr %107, i32 0, i32 1
  %109 = load i32, ptr %108, align 8, !tbaa !26
  %110 = sext i32 %109 to i64
  %111 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNKSt6vectorIN7fastjet9PseudoJetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %106, i64 noundef %110) #6
  %112 = call noundef double @_ZNK7fastjet9PseudoJet4perpEv(ptr noundef nonnull align 8 dereferenceable(88) %111)
  store double %112, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %113 = load ptr, ptr %4, align 8, !tbaa !5
  %114 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7fastjet15ClusterSequence4jetsEv(ptr noundef nonnull align 8 dereferenceable(276) %113)
  %115 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt14_List_iteratorI12jet_distanceEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  %116 = getelementptr inbounds %struct.jet_distance, ptr %115, i32 0, i32 2
  %117 = load i32, ptr %116, align 4, !tbaa !27
  %118 = sext i32 %117 to i64
  %119 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNKSt6vectorIN7fastjet9PseudoJetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %114, i64 noundef %118) #6
  %120 = call noundef double @_ZNK7fastjet9PseudoJet4perpEv(ptr noundef nonnull align 8 dereferenceable(88) %119)
  store double %120, ptr %14, align 8, !tbaa !9
  %121 = load double, ptr %13, align 8, !tbaa !9
  %122 = load double, ptr %14, align 8, !tbaa !9
  %123 = fcmp ogt double %121, %122
  br i1 %123, label %124, label %132

124:                                              ; preds = %104
  %125 = getelementptr inbounds %class.Qjets, ptr %18, i32 0, i32 6
  %126 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt14_List_iteratorI12jet_distanceEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  %127 = getelementptr inbounds %struct.jet_distance, ptr %126, i32 0, i32 2
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %125, ptr noundef nonnull align 4 dereferenceable(4) %127)
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  %129 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt14_List_iteratorI12jet_distanceEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  %130 = getelementptr inbounds %struct.jet_distance, ptr %129, i32 0, i32 2
  %131 = load i32, ptr %130, align 4, !tbaa !27
  call void @_ZN7fastjet15ClusterSequence30plugin_record_iB_recombinationEid(ptr noundef nonnull align 8 dereferenceable(276) %128, i32 noundef %131, double noundef 1.000000e+00)
  br label %140

132:                                              ; preds = %104
  %133 = getelementptr inbounds %class.Qjets, ptr %18, i32 0, i32 6
  %134 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt14_List_iteratorI12jet_distanceEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  %135 = getelementptr inbounds %struct.jet_distance, ptr %134, i32 0, i32 1
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %133, ptr noundef nonnull align 4 dereferenceable(4) %135)
  %136 = load ptr, ptr %4, align 8, !tbaa !5
  %137 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt14_List_iteratorI12jet_distanceEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  %138 = getelementptr inbounds %struct.jet_distance, ptr %137, i32 0, i32 1
  %139 = load i32, ptr %138, align 8, !tbaa !26
  call void @_ZN7fastjet15ClusterSequence30plugin_record_iB_recombinationEid(ptr noundef nonnull align 8 dereferenceable(276) %136, i32 noundef %139, double noundef 1.000000e+00)
  br label %140

140:                                              ; preds = %132, %124
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %141

141:                                              ; preds = %140, %101
  store i32 4, ptr %7, align 4
  br label %146

142:                                              ; preds = %74
  br label %143

143:                                              ; preds = %142
  %144 = call ptr @_ZNSt14_List_iteratorI12jet_distanceEppEi(ptr noundef nonnull align 8 dereferenceable(8) %10, i32 noundef 0) #6
  %145 = getelementptr inbounds %"struct.std::_List_iterator", ptr %15, i32 0, i32 0
  store ptr %144, ptr %145, align 8
  br label %45, !llvm.loop !29

146:                                              ; preds = %141, %50
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %147

147:                                              ; preds = %146
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  store i32 0, ptr %7, align 4
  br label %148

148:                                              ; preds = %147, %33
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  %149 = load i32, ptr %7, align 4
  switch i32 %149, label %179 [
    i32 0, label %150
    i32 3, label %151
  ]

150:                                              ; preds = %148
  br label %22, !llvm.loop !31

151:                                              ; preds = %148, %22
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !28
  br label %152

152:                                              ; preds = %169, %151
  %153 = load i32, ptr %17, align 4, !tbaa !28
  %154 = zext i32 %153 to i64
  %155 = load ptr, ptr %4, align 8, !tbaa !5
  %156 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7fastjet15ClusterSequence4jetsEv(ptr noundef nonnull align 8 dereferenceable(276) %155)
  %157 = call noundef i64 @_ZNKSt6vectorIN7fastjet9PseudoJetESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %156) #6
  %158 = icmp ult i64 %154, %157
  br i1 %158, label %160, label %159

159:                                              ; preds = %152
  store i32 7, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %172

160:                                              ; preds = %152
  %161 = load i32, ptr %17, align 4, !tbaa !28
  %162 = call noundef zeroext i1 @_ZN5Qjets11JetUnmergedEi(ptr noundef nonnull align 8 dereferenceable(96) %18, i32 noundef %161)
  br i1 %162, label %163, label %168

163:                                              ; preds = %160
  %164 = load i32, ptr %16, align 4, !tbaa !28
  %165 = add nsw i32 %164, 1
  store i32 %165, ptr %16, align 4, !tbaa !28
  %166 = load ptr, ptr %4, align 8, !tbaa !5
  %167 = load i32, ptr %17, align 4, !tbaa !28
  call void @_ZN7fastjet15ClusterSequence30plugin_record_iB_recombinationEid(ptr noundef nonnull align 8 dereferenceable(276) %166, i32 noundef %167, double noundef 1.000000e+00)
  br label %168

168:                                              ; preds = %163, %160
  br label %169

169:                                              ; preds = %168
  %170 = load i32, ptr %17, align 4, !tbaa !28
  %171 = add i32 %170, 1
  store i32 %171, ptr %17, align 4, !tbaa !28
  br label %152, !llvm.loop !32

172:                                              ; preds = %159
  %173 = load i32, ptr %16, align 4, !tbaa !28
  %174 = icmp slt i32 %173, 2
  br i1 %174, label %175, label %176

175:                                              ; preds = %172
  br label %178

176:                                              ; preds = %172
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 114, ptr noundef @__PRETTY_FUNCTION__._ZN5Qjets7ClusterERN7fastjet15ClusterSequenceE) #7
  unreachable

177:                                              ; No predecessors!
  br label %178

178:                                              ; preds = %177, %175
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  ret void

179:                                              ; preds = %148
  unreachable
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5Qjets5PruneER12jet_distanceRN7fastjet15ClusterSequenceE(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(276)) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7fastjet15ClusterSequence30plugin_record_ij_recombinationEiidRi(ptr noundef nonnull align 8 dereferenceable(276), i32 noundef, i32 noundef, double noundef, ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7fastjet15ClusterSequence30plugin_record_iB_recombinationEid(ptr noundef nonnull align 8 dereferenceable(276), i32 noundef, double noundef) #0 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !10, i64 40}
!12 = !{!"_ZTS5Qjets", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !13, i64 48, !17, i64 72}
!13 = !{!"_ZTSSt6vectorIiSaIiEE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"_ZTSNSt7__cxx114listI12jet_distanceSaIS1_EEE", !18, i64 0}
!18 = !{!"_ZTSNSt7__cxx1110_List_baseI12jet_distanceSaIS1_EEE", !19, i64 0}
!19 = !{!"_ZTSNSt7__cxx1110_List_baseI12jet_distanceSaIS1_EE10_List_implE", !20, i64 0}
!20 = !{!"_ZTSNSt8__detail17_List_node_headerE", !21, i64 0, !22, i64 16}
!21 = !{!"_ZTSNSt8__detail15_List_node_baseE", !6, i64 0, !6, i64 8}
!22 = !{!"long", !7, i64 0}
!23 = !{!24, !10, i64 0}
!24 = !{!"_ZTS12jet_distance", !10, i64 0, !25, i64 8, !25, i64 12}
!25 = !{!"int", !7, i64 0}
!26 = !{!24, !25, i64 8}
!27 = !{!24, !25, i64 12}
!28 = !{!25, !25, i64 0}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = distinct !{!31, !30}
!32 = distinct !{!32, !30}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.std::_List_iterator" = type { ptr }

@.str.1 = external hidden unnamed_addr constant [119 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [10 x i8], align 1
@__PRETTY_FUNCTION__._ZN5Qjets7ClusterERN7fastjet15ClusterSequenceE = external hidden unnamed_addr constant [48 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [21 x i8], align 1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Qjets26ComputeNewDistanceMeasuresERN7fastjet15ClusterSequenceEi(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(276), i32 noundef) local_unnamed_addr #0 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(88) ptr @_ZNKSt6vectorIN7fastjet9PseudoJetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 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
declare dso_local void @_ZN5Qjets11ComputeDCutERN7fastjet15ClusterSequenceE(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(276)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN5Qjets22ComputeMinimumDistanceEv(ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #0 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN5Qjets20ComputeNormalizationEd(ptr noundef nonnull align 8 dereferenceable(96), double noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSt5isnand(double noundef) local_unnamed_addr #3

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Qjets7ClusterERN7fastjet15ClusterSequenceE(ptr noundef nonnull align 8 dereferenceable(96) %0, ptr noundef nonnull align 8 dereferenceable(276) %1) local_unnamed_addr #0 align 2 {
  %3 = alloca %"struct.std::_List_iterator", align 8
  %4 = alloca %"struct.std::_List_iterator", align 8
  %5 = alloca i32, align 4
  tail call void @_ZN5Qjets11ComputeDCutERN7fastjet15ClusterSequenceE(ptr noundef nonnull align 8 dereferenceable(96) %0, ptr noundef nonnull align 8 dereferenceable(276) %1)
  %6 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7fastjet15ClusterSequence4jetsEv(ptr noundef nonnull align 8 dereferenceable(276) %1)
  tail call void @_ZN5Qjets19ComputeAllDistancesERKSt6vectorIN7fastjet9PseudoJetESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(96) %0, ptr noundef nonnull align 8 dereferenceable(24) %6)
  %7 = getelementptr inbounds i8, ptr %0, i64 72
  %8 = tail call noundef zeroext i1 @_ZNKSt7__cxx114listI12jet_distanceSaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  br i1 %8, label %.thread, label %.lr.ph37

.lr.ph37:                                         ; preds = %2
  %9 = getelementptr inbounds i8, ptr %0, i64 40
  %10 = getelementptr inbounds i8, ptr %0, i64 48
  br label %11

11:                                               ; preds = %.lr.ph37, %.loopexit
  %12 = call noundef double @_ZN5Qjets22ComputeMinimumDistanceEv(ptr noundef nonnull align 8 dereferenceable(96) %0)
  %13 = call noundef double @_ZN5Qjets20ComputeNormalizationEd(ptr noundef nonnull align 8 dereferenceable(96) %0, double noundef %12)
  %14 = call noundef i64 @_ZNKSt7__cxx114listI12jet_distanceSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  %15 = icmp eq i64 %14, 0
  br i1 %15, label %.thread, label %16

16:                                               ; preds = %11
  %17 = fcmp ogt double %13, 0.000000e+00
  br i1 %17, label %19, label %18

18:                                               ; preds = %16
  call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 74, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5Qjets7ClusterERN7fastjet15ClusterSequenceE) #7
  unreachable

19:                                               ; preds = %16
  %20 = call noundef double @_ZN5Qjets4RandEv(ptr noundef nonnull align 8 dereferenceable(96) %0)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %21 = call ptr @_ZNSt7__cxx114listI12jet_distanceSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  store ptr %21, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %22 = call ptr @_ZNSt7__cxx114listI12jet_distanceSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  store ptr %22, ptr %4, align 8
  %23 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorI12jet_distanceES3_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br i1 %23, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %19, %84
  %.03136 = phi double [ %33, %84 ], [ 0.000000e+00, %19 ]
  %24 = load double, ptr %9, align 8, !tbaa !5
  %25 = fneg double %24
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt14_List_iteratorI12jet_distanceEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  %27 = load double, ptr %26, align 8, !tbaa !21
  %28 = fsub double %27, %12
  %29 = fmul double %28, %25
  %30 = fdiv double %29, %12
  %31 = call double @exp(double noundef %30) #6
  %32 = fdiv double %31, %13
  %33 = fadd double %.03136, %32
  %34 = call noundef zeroext i1 @_ZSt5isnand(double noundef %33)
  br i1 %34, label %35, label %36

35:                                               ; preds = %.lr.ph
  call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 82, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5Qjets7ClusterERN7fastjet15ClusterSequenceE) #7
  unreachable

36:                                               ; preds = %.lr.ph
  %37 = fcmp ogt double %33, %20
  br i1 %37, label %38, label %84

38:                                               ; preds = %36
  %39 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt14_List_iteratorI12jet_distanceEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  %40 = call noundef zeroext i1 @_ZN5Qjets5PruneER12jet_distanceRN7fastjet15ClusterSequenceE(ptr noundef nonnull align 8 dereferenceable(96) %0, ptr noundef nonnull align 8 dereferenceable(16) %39, ptr noundef nonnull align 8 dereferenceable(276) %1)
  br i1 %40, label %57, label %41

41:                                               ; preds = %38
  %42 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt14_List_iteratorI12jet_distanceEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  %43 = getelementptr inbounds i8, ptr %42, i64 8
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 4 dereferenceable(4) %43)
  %44 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt14_List_iteratorI12jet_distanceEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  %45 = getelementptr inbounds i8, ptr %44, i64 12
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 4 dereferenceable(4) %45)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  %46 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt14_List_iteratorI12jet_distanceEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  %47 = getelementptr inbounds i8, ptr %46, i64 8
  %48 = load i32, ptr %47, align 8, !tbaa !24
  %49 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt14_List_iteratorI12jet_distanceEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  %50 = getelementptr inbounds i8, ptr %49, i64 12
  %51 = load i32, ptr %50, align 4, !tbaa !25
  call void @_ZN7fastjet15ClusterSequence30plugin_record_ij_recombinationEiidRi(ptr noundef nonnull align 8 dereferenceable(276) %1, i32 noundef %48, i32 noundef %51, double noundef 1.000000e+00, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %52 = load i32, ptr %5, align 4, !tbaa !26
  %53 = call noundef zeroext i1 @_ZN5Qjets11JetUnmergedEi(ptr noundef nonnull align 8 dereferenceable(96) %0, i32 noundef %52)
  br i1 %53, label %55, label %54

54:                                               ; preds = %41
  call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 90, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5Qjets7ClusterERN7fastjet15ClusterSequenceE) #7
  unreachable

55:                                               ; preds = %41
  %56 = load i32, ptr %5, align 4, !tbaa !26
  call void @_ZN5Qjets26ComputeNewDistanceMeasuresERN7fastjet15ClusterSequenceEi(ptr noundef nonnull align 8 dereferenceable(96) %0, ptr noundef nonnull align 8 dereferenceable(276) %1, i32 noundef %56)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  br label %.loopexit

57:                                               ; preds = %38
  %58 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7fastjet15ClusterSequence4jetsEv(ptr noundef nonnull align 8 dereferenceable(276) %1)
  %59 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt14_List_iteratorI12jet_distanceEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  %60 = getelementptr inbounds i8, ptr %59, i64 8
  %61 = load i32, ptr %60, align 8, !tbaa !24
  %62 = sext i32 %61 to i64
  %63 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNKSt6vectorIN7fastjet9PseudoJetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %58, i64 noundef %62) #6
  %64 = call noundef double @_ZNK7fastjet9PseudoJet4perpEv(ptr noundef nonnull align 8 dereferenceable(88) %63)
  %65 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7fastjet15ClusterSequence4jetsEv(ptr noundef nonnull align 8 dereferenceable(276) %1)
  %66 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt14_List_iteratorI12jet_distanceEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  %67 = getelementptr inbounds i8, ptr %66, i64 12
  %68 = load i32, ptr %67, align 4, !tbaa !25
  %69 = sext i32 %68 to i64
  %70 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNKSt6vectorIN7fastjet9PseudoJetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %65, i64 noundef %69) #6
  %71 = call noundef double @_ZNK7fastjet9PseudoJet4perpEv(ptr noundef nonnull align 8 dereferenceable(88) %70)
  %72 = fcmp ogt double %64, %71
  %73 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt14_List_iteratorI12jet_distanceEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  br i1 %72, label %74, label %79

74:                                               ; preds = %57
  %75 = getelementptr inbounds i8, ptr %73, i64 12
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 4 dereferenceable(4) %75)
  %76 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt14_List_iteratorI12jet_distanceEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  %77 = getelementptr inbounds i8, ptr %76, i64 12
  %78 = load i32, ptr %77, align 4, !tbaa !25
  call void @_ZN7fastjet15ClusterSequence30plugin_record_iB_recombinationEid(ptr noundef nonnull align 8 dereferenceable(276) %1, i32 noundef %78, double noundef 1.000000e+00)
  br label %.loopexit

79:                                               ; preds = %57
  %80 = getelementptr inbounds i8, ptr %73, i64 8
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 4 dereferenceable(4) %80)
  %81 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt14_List_iteratorI12jet_distanceEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  %82 = getelementptr inbounds i8, ptr %81, i64 8
  %83 = load i32, ptr %82, align 8, !tbaa !24
  call void @_ZN7fastjet15ClusterSequence30plugin_record_iB_recombinationEid(ptr noundef nonnull align 8 dereferenceable(276) %1, i32 noundef %83, double noundef 1.000000e+00)
  br label %.loopexit

84:                                               ; preds = %36
  %85 = call ptr @_ZNSt14_List_iteratorI12jet_distanceEppEi(ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef 0) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %86 = call ptr @_ZNSt7__cxx114listI12jet_distanceSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  store ptr %86, ptr %4, align 8
  %87 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorI12jet_distanceES3_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br i1 %87, label %.lr.ph, label %.loopexit, !llvm.loop !27

.loopexit:                                        ; preds = %84, %19, %74, %79, %55
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  %88 = call noundef zeroext i1 @_ZNKSt7__cxx114listI12jet_distanceSaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  br i1 %88, label %.thread, label %11

.thread:                                          ; preds = %.loopexit, %11, %2
  %89 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7fastjet15ClusterSequence4jetsEv(ptr noundef nonnull align 8 dereferenceable(276) %1)
  %90 = call noundef i64 @_ZNKSt6vectorIN7fastjet9PseudoJetESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %89) #6
  %.not = icmp eq i64 %90, 0
  br i1 %.not, label %._crit_edge.thread, label %.lr.ph41

._crit_edge:                                      ; preds = %95
  %91 = icmp slt i32 %.1, 2
  br i1 %91, label %._crit_edge.thread, label %101

.lr.ph41:                                         ; preds = %.thread, %95
  %.040 = phi i32 [ %96, %95 ], [ 0, %.thread ]
  %.02939 = phi i32 [ %.1, %95 ], [ 0, %.thread ]
  %92 = call noundef zeroext i1 @_ZN5Qjets11JetUnmergedEi(ptr noundef nonnull align 8 dereferenceable(96) %0, i32 noundef %.040)
  br i1 %92, label %93, label %95

93:                                               ; preds = %.lr.ph41
  %94 = add nsw i32 %.02939, 1
  call void @_ZN7fastjet15ClusterSequence30plugin_record_iB_recombinationEid(ptr noundef nonnull align 8 dereferenceable(276) %1, i32 noundef %.040, double noundef 1.000000e+00)
  br label %95

95:                                               ; preds = %.lr.ph41, %93
  %.1 = phi i32 [ %94, %93 ], [ %.02939, %.lr.ph41 ]
  %96 = add i32 %.040, 1
  %97 = zext i32 %96 to i64
  %98 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7fastjet15ClusterSequence4jetsEv(ptr noundef nonnull align 8 dereferenceable(276) %1)
  %99 = call noundef i64 @_ZNKSt6vectorIN7fastjet9PseudoJetESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %98) #6
  %100 = icmp ugt i64 %99, %97
  br i1 %100, label %.lr.ph41, label %._crit_edge, !llvm.loop !29

101:                                              ; preds = %._crit_edge
  call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 114, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5Qjets7ClusterERN7fastjet15ClusterSequenceE) #7
  unreachable

._crit_edge.thread:                               ; preds = %.thread, %._crit_edge
  ret void
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5Qjets5PruneER12jet_distanceRN7fastjet15ClusterSequenceE(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(276)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7fastjet15ClusterSequence30plugin_record_ij_recombinationEiidRi(ptr noundef nonnull align 8 dereferenceable(276), i32 noundef, i32 noundef, double noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7fastjet15ClusterSequence30plugin_record_iB_recombinationEid(ptr noundef nonnull align 8 dereferenceable(276), i32 noundef, double noundef) local_unnamed_addr #0 align 2

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 = { mustprogress nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { noreturn 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, !7, i64 40}
!6 = !{!"_ZTS5Qjets", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !10, i64 48, !15, i64 72}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt6vectorIiSaIiEE", !11, i64 0}
!11 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !12, i64 0}
!12 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"_ZTSNSt7__cxx114listI12jet_distanceSaIS1_EEE", !16, i64 0}
!16 = !{!"_ZTSNSt7__cxx1110_List_baseI12jet_distanceSaIS1_EEE", !17, i64 0}
!17 = !{!"_ZTSNSt7__cxx1110_List_baseI12jet_distanceSaIS1_EE10_List_implE", !18, i64 0}
!18 = !{!"_ZTSNSt8__detail17_List_node_headerE", !19, i64 0, !20, i64 16}
!19 = !{!"_ZTSNSt8__detail15_List_node_baseE", !14, i64 0, !14, i64 8}
!20 = !{!"long", !8, i64 0}
!21 = !{!22, !7, i64 0}
!22 = !{!"_ZTS12jet_distance", !7, i64 0, !23, i64 8, !23, i64 12}
!23 = !{!"int", !8, i64 0}
!24 = !{!22, !23, i64 8}
!25 = !{!22, !23, i64 12}
!26 = !{!23, !23, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !28}


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