; LLVM IR from mickypaganini/SSI2016-jet-clustering :: spartyjet-4.0.2_mac/External/fastjet-3.0.0/src (ClusterSequencePassiveArea)

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

%"class.fastjet::ClusterSequenceVoronoiArea" = type { %"class.fastjet::ClusterSequenceAreaBase.base", %"class.std::vector.13", %"class.std::vector", ptr, double }
%"class.fastjet::ClusterSequenceAreaBase.base" = type { %"class.fastjet::ClusterSequence.base" }
%"class.fastjet::ClusterSequence.base" = type <{ ptr, %"class.fastjet::JetDefinition", %"class.std::vector", %"class.std::vector.1", i8, [3 x i8], i32, double, double, double, double, i32, i32, %"class.fastjet::SharedPtr.6", i32, i8, i8, [2 x i8], %"class.fastjet::SharedPtr.7", %"class.std::vector.8", double, double, double, double, i32, i32, i32 }>
%"class.fastjet::JetDefinition" = type { i32, double, double, i32, ptr, %"class.fastjet::SharedPtr", %"class.fastjet::JetDefinition::DefaultRecombiner", ptr, %"class.fastjet::SharedPtr.0" }
%"class.fastjet::SharedPtr" = type { ptr }
%"class.fastjet::JetDefinition::DefaultRecombiner" = type <{ %"class.fastjet::JetDefinition::Recombiner", i32, [4 x i8] }>
%"class.fastjet::JetDefinition::Recombiner" = type { ptr }
%"class.fastjet::SharedPtr.0" = type { ptr }
%"class.std::vector.1" = type { %"struct.std::_Vector_base.2" }
%"struct.std::_Vector_base.2" = type { %"struct.std::_Vector_base<fastjet::ClusterSequence::history_element, std::allocator<fastjet::ClusterSequence::history_element>>::_Vector_impl" }
%"struct.std::_Vector_base<fastjet::ClusterSequence::history_element, std::allocator<fastjet::ClusterSequence::history_element>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastjet::ClusterSequence::history_element, std::allocator<fastjet::ClusterSequence::history_element>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastjet::ClusterSequence::history_element, std::allocator<fastjet::ClusterSequence::history_element>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.fastjet::SharedPtr.6" = type { ptr }
%"class.fastjet::SharedPtr.7" = type { ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<fastjet::ClusterSequence::Tile, std::allocator<fastjet::ClusterSequence::Tile>>::_Vector_impl" }
%"struct.std::_Vector_base<fastjet::ClusterSequence::Tile, std::allocator<fastjet::ClusterSequence::Tile>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastjet::ClusterSequence::Tile, std::allocator<fastjet::ClusterSequence::Tile>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastjet::ClusterSequence::Tile, std::allocator<fastjet::ClusterSequence::Tile>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<fastjet::PseudoJet, std::allocator<fastjet::PseudoJet>>::_Vector_impl" }
%"struct.std::_Vector_base<fastjet::PseudoJet, std::allocator<fastjet::PseudoJet>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastjet::PseudoJet, std::allocator<fastjet::PseudoJet>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastjet::PseudoJet, std::allocator<fastjet::PseudoJet>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.fastjet::VoronoiAreaSpec" = type { double }
%"class.fastjet::PseudoJet" = type { ptr, %"class.fastjet::SharedPtr.6", %"class.fastjet::SharedPtr.24", double, double, double, double, double, double, double, i32, i32 }
%"class.fastjet::SharedPtr.24" = type { ptr }
%"class.fastjet::ClusterSequence" = type <{ ptr, %"class.fastjet::JetDefinition", %"class.std::vector", %"class.std::vector.1", i8, [3 x i8], i32, double, double, double, double, i32, i32, %"class.fastjet::SharedPtr.6", i32, i8, i8, [2 x i8], %"class.fastjet::SharedPtr.7", %"class.std::vector.8", double, double, double, double, i32, i32, i32, [4 x i8] }>
%"struct.fastjet::ClusterSequence::history_element" = type { i32, i32, i32, i32, double, double }
%"class.fastjet::ClusterSequenceActiveArea" = type { %"class.fastjet::ClusterSequenceAreaBase.base", %"class.std::valarray", %"class.std::valarray", %"class.std::valarray.18", double, double, double, double, double, i8, i32, %"class.std::vector.19", %"class.std::vector.19" }
%"class.std::valarray" = type { i64, ptr }
%"class.std::valarray.18" = type { i64, ptr }
%"class.std::vector.19" = type { %"struct.std::_Vector_base.20" }
%"struct.std::_Vector_base.20" = type { %"struct.std::_Vector_base<fastjet::ClusterSequenceActiveArea::GhostJet, std::allocator<fastjet::ClusterSequenceActiveArea::GhostJet>>::_Vector_impl" }
%"struct.std::_Vector_base<fastjet::ClusterSequenceActiveArea::GhostJet, std::allocator<fastjet::ClusterSequenceActiveArea::GhostJet>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastjet::ClusterSequenceActiveArea::GhostJet, std::allocator<fastjet::ClusterSequenceActiveArea::GhostJet>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastjet::ClusterSequenceActiveArea::GhostJet, std::allocator<fastjet::ClusterSequenceActiveArea::GhostJet>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7fastjet26ClusterSequencePassiveArea22_initialise_and_run_PAERKNS_13JetDefinitionERKNS_15GhostedAreaSpecERKb(ptr noundef nonnull align 8 dereferenceable(424) %0, ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 8 dereferenceable(144) %2, ptr noundef nonnull align 1 dereferenceable(1) %3) #0 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.fastjet::ClusterSequenceVoronoiArea", align 8
  %10 = alloca %"class.fastjet::VoronoiAreaSpec", align 8
  %11 = alloca i8, align 1
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %"class.fastjet::PseudoJet", align 8
  %17 = alloca %"class.fastjet::JetDefinition", align 8
  %18 = alloca double, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %19 = load ptr, ptr %5, align 8
  %20 = load ptr, ptr %6, align 8, !tbaa !5
  %21 = call noundef i32 @_ZNK7fastjet13JetDefinition13jet_algorithmEv(ptr noundef nonnull align 8 dereferenceable(80) %20)
  %22 = icmp eq i32 %21, 0
  br i1 %22, label %23, label %90

23:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 344, ptr %9) #7
  %24 = getelementptr inbounds %"class.fastjet::ClusterSequence", ptr %19, i32 0, i32 2
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  call void @_ZN7fastjet15VoronoiAreaSpecC2Ed(ptr noundef nonnull align 8 dereferenceable(8) %10, double noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #7
  store i8 0, ptr %11, align 1, !tbaa !9
  call void @_ZN7fastjet26ClusterSequenceVoronoiAreaC2INS_9PseudoJetEEERKSt6vectorIT_SaIS4_EERKNS_13JetDefinitionERKNS_15VoronoiAreaSpecERKb(ptr noundef nonnull align 8 dereferenceable(344) %9, ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 8 dereferenceable(80) %25, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 1 dereferenceable(1) %11)
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  invoke void @_ZN7fastjet15ClusterSequence22transfer_from_sequenceERKS0_PKNS_19FunctionOfPseudoJetINS_9PseudoJetEEE(ptr noundef nonnull align 8 dereferenceable(276) %19, ptr noundef nonnull align 8 dereferenceable(276) %9, ptr noundef null)
          to label %26 unwind label %35

26:                                               ; preds = %23
  invoke void @_ZN7fastjet25ClusterSequenceActiveArea19_resize_and_zero_AAEv(ptr noundef nonnull align 8 dereferenceable(424) %19)
          to label %27 unwind label %35

27:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !11
  br label %28

28:                                               ; preds = %84, %27
  %29 = load i32, ptr %14, align 4, !tbaa !11
  %30 = zext i32 %29 to i64
  %31 = getelementptr inbounds %"class.fastjet::ClusterSequence", ptr %19, i32 0, i32 3
  %32 = call noundef i64 @_ZNKSt6vectorIN7fastjet15ClusterSequence15history_elementESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #7
  %33 = icmp ult i64 %30, %32
  br i1 %33, label %39, label %34

34:                                               ; preds = %28
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %88

35:                                               ; preds = %26, %23
  %36 = landingpad { ptr, i32 }
          cleanup
  %37 = extractvalue { ptr, i32 } %36, 0
  store ptr %37, ptr %12, align 8
  %38 = extractvalue { ptr, i32 } %36, 1
  store i32 %38, ptr %13, align 4
  br label %89

39:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %40 = getelementptr inbounds %"class.fastjet::ClusterSequence", ptr %19, i32 0, i32 3
  %41 = load i32, ptr %14, align 4, !tbaa !11
  %42 = zext i32 %41 to i64
  %43 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7fastjet15ClusterSequence15history_elementESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %40, i64 noundef %42) #7
  %44 = getelementptr inbounds %"struct.fastjet::ClusterSequence::history_element", ptr %43, i32 0, i32 3
  %45 = load i32, ptr %44, align 4, !tbaa !13
  store i32 %45, ptr %15, align 4, !tbaa !11
  %46 = load i32, ptr %15, align 4, !tbaa !11
  %47 = icmp ne i32 %46, -3
  br i1 %47, label %48, label %83

48:                                               ; preds = %39
  %49 = getelementptr inbounds %"class.fastjet::ClusterSequence", ptr %19, i32 0, i32 2
  %50 = load i32, ptr %15, align 4, !tbaa !11
  %51 = sext i32 %50 to i64
  %52 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorIN7fastjet9PseudoJetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %49, i64 noundef %51) #7
  %53 = invoke noundef double @_ZNK7fastjet26ClusterSequenceVoronoiArea4areaERKNS_9PseudoJetE(ptr noundef nonnull align 8 dereferenceable(344) %9, ptr noundef nonnull align 8 dereferenceable(88) %52)
          to label %54 unwind label %70

54:                                               ; preds = %48
  %55 = getelementptr inbounds %"class.fastjet::ClusterSequenceActiveArea", ptr %19, i32 0, i32 1
  %56 = load i32, ptr %14, align 4, !tbaa !11
  %57 = zext i32 %56 to i64
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %55, i64 noundef %57) #7
  store double %53, ptr %58, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 88, ptr %16) #7
  %59 = getelementptr inbounds %"class.fastjet::ClusterSequence", ptr %19, i32 0, i32 2
  %60 = load i32, ptr %15, align 4, !tbaa !11
  %61 = sext i32 %60 to i64
  %62 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorIN7fastjet9PseudoJetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %59, i64 noundef %61) #7
  invoke void @_ZNK7fastjet26ClusterSequenceVoronoiArea12area_4vectorERKNS_9PseudoJetE(ptr dead_on_unwind writable sret(%"class.fastjet::PseudoJet") align 8 %16, ptr noundef nonnull align 8 dereferenceable(344) %9, ptr noundef nonnull align 8 dereferenceable(88) %62)
          to label %63 unwind label %74

63:                                               ; preds = %54
  %64 = getelementptr inbounds %"class.fastjet::ClusterSequenceActiveArea", ptr %19, i32 0, i32 3
  %65 = load i32, ptr %14, align 4, !tbaa !11
  %66 = zext i32 %65 to i64
  %67 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt8valarrayIN7fastjet9PseudoJetEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %64, i64 noundef %66) #7
  %68 = invoke noundef nonnull align 8 dereferenceable(88) ptr @_ZN7fastjet9PseudoJetaSERKS0_(ptr noundef nonnull align 8 dereferenceable(88) %67, ptr noundef nonnull align 8 dereferenceable(88) %16)
          to label %69 unwind label %78

69:                                               ; preds = %63
  call void @_ZN7fastjet9PseudoJetD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %16) #7
  call void @llvm.lifetime.end.p0(i64 88, ptr %16) #7
  br label %83

70:                                               ; preds = %48
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %12, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %13, align 4
  br label %87

74:                                               ; preds = %54
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %12, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %13, align 4
  br label %82

78:                                               ; preds = %63
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %12, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %13, align 4
  call void @_ZN7fastjet9PseudoJetD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %16) #7
  br label %82

82:                                               ; preds = %78, %74
  call void @llvm.lifetime.end.p0(i64 88, ptr %16) #7
  br label %87

83:                                               ; preds = %69, %39
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %84

84:                                               ; preds = %83
  %85 = load i32, ptr %14, align 4, !tbaa !11
  %86 = add i32 %85, 1
  store i32 %86, ptr %14, align 4, !tbaa !11
  br label %28, !llvm.loop !17

87:                                               ; preds = %82, %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %89

88:                                               ; preds = %34
  call void @_ZN7fastjet26ClusterSequenceVoronoiAreaD1Ev(ptr noundef nonnull align 8 dereferenceable(344) %9) #7
  call void @llvm.lifetime.end.p0(i64 344, ptr %9) #7
  br label %163

89:                                               ; preds = %87, %35
  call void @_ZN7fastjet26ClusterSequenceVoronoiAreaD1Ev(ptr noundef nonnull align 8 dereferenceable(344) %9) #7
  call void @llvm.lifetime.end.p0(i64 344, ptr %9) #7
  br label %164

90:                                               ; preds = %4
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = call noundef i32 @_ZNK7fastjet13JetDefinition13jet_algorithmEv(ptr noundef nonnull align 8 dereferenceable(80) %91)
  %93 = icmp eq i32 %92, 1
  br i1 %93, label %94, label %113

94:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 80, ptr %17) #7
  %95 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN7fastjet13JetDefinitionC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %17, ptr noundef nonnull align 8 dereferenceable(80) %95)
  invoke void @_ZN7fastjet13JetDefinition14set_jet_finderENS_12JetAlgorithmE(ptr noundef nonnull align 8 dereferenceable(80) %17, i32 noundef 11)
          to label %96 unwind label %109

96:                                               ; preds = %94
  %97 = load ptr, ptr %7, align 8, !tbaa !5
  %98 = invoke noundef double @_ZNK7fastjet15GhostedAreaSpec13mean_ghost_ktEv(ptr noundef nonnull align 8 dereferenceable(144) %97)
          to label %99 unwind label %109

99:                                               ; preds = %96
  %100 = call double @sqrt(double noundef %98) #7
  invoke void @_ZN7fastjet13JetDefinition15set_extra_paramEd(ptr noundef nonnull align 8 dereferenceable(80) %17, double noundef %100)
          to label %101 unwind label %109

101:                                              ; preds = %99
  %102 = load ptr, ptr %7, align 8, !tbaa !5
  %103 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZN7fastjet25ClusterSequenceActiveArea22_initialise_and_run_AAERKNS_13JetDefinitionERKNS_15GhostedAreaSpecERKb(ptr noundef nonnull align 8 dereferenceable(424) %19, ptr noundef nonnull align 8 dereferenceable(80) %17, ptr noundef nonnull align 8 dereferenceable(144) %102, ptr noundef nonnull align 1 dereferenceable(1) %103)
          to label %104 unwind label %109

104:                                              ; preds = %101
  %105 = load ptr, ptr %6, align 8, !tbaa !5
  %106 = getelementptr inbounds %"class.fastjet::ClusterSequence", ptr %19, i32 0, i32 1
  %107 = invoke noundef nonnull align 8 dereferenceable(80) ptr @_ZN7fastjet13JetDefinitionaSERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %106, ptr noundef nonnull align 8 dereferenceable(80) %105)
          to label %108 unwind label %109

108:                                              ; preds = %104
  call void @_ZN7fastjet13JetDefinitionD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %17) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %17) #7
  br label %162

109:                                              ; preds = %104, %101, %99, %96, %94
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %12, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %13, align 4
  call void @_ZN7fastjet13JetDefinitionD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %17) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %17) #7
  br label %164

113:                                              ; preds = %90
  %114 = load ptr, ptr %6, align 8, !tbaa !5
  %115 = call noundef i32 @_ZNK7fastjet13JetDefinition13jet_algorithmEv(ptr noundef nonnull align 8 dereferenceable(80) %114)
  %116 = icmp eq i32 %115, 2
  br i1 %116, label %117, label %121

117:                                              ; preds = %113
  %118 = load ptr, ptr %6, align 8, !tbaa !5
  %119 = load ptr, ptr %7, align 8, !tbaa !5
  %120 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN7fastjet25ClusterSequenceActiveArea22_initialise_and_run_AAERKNS_13JetDefinitionERKNS_15GhostedAreaSpecERKb(ptr noundef nonnull align 8 dereferenceable(424) %19, ptr noundef nonnull align 8 dereferenceable(80) %118, ptr noundef nonnull align 8 dereferenceable(144) %119, ptr noundef nonnull align 1 dereferenceable(1) %120)
  br label %161

121:                                              ; preds = %113
  %122 = load ptr, ptr %6, align 8, !tbaa !5
  %123 = call noundef i32 @_ZNK7fastjet13JetDefinition13jet_algorithmEv(ptr noundef nonnull align 8 dereferenceable(80) %122)
  %124 = icmp eq i32 %123, 99
  br i1 %124, label %125, label %156

125:                                              ; preds = %121
  %126 = load ptr, ptr %6, align 8, !tbaa !5
  %127 = call noundef ptr @_ZNK7fastjet13JetDefinition6pluginEv(ptr noundef nonnull align 8 dereferenceable(80) %126)
  %128 = load ptr, ptr %127, align 8, !tbaa !19
  %129 = getelementptr inbounds ptr, ptr %128, i64 3
  %130 = load ptr, ptr %129, align 8
  %131 = call noundef zeroext i1 %130(ptr noundef nonnull align 8 dereferenceable(8) %127)
  br i1 %131, label %132, label %156

132:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %133 = load ptr, ptr %6, align 8, !tbaa !5
  %134 = call noundef ptr @_ZNK7fastjet13JetDefinition6pluginEv(ptr noundef nonnull align 8 dereferenceable(80) %133)
  %135 = load ptr, ptr %134, align 8, !tbaa !19
  %136 = getelementptr inbounds ptr, ptr %135, i64 5
  %137 = load ptr, ptr %136, align 8
  %138 = call noundef double %137(ptr noundef nonnull align 8 dereferenceable(8) %134)
  store double %138, ptr %18, align 8, !tbaa !16
  %139 = load ptr, ptr %6, align 8, !tbaa !5
  %140 = call noundef ptr @_ZNK7fastjet13JetDefinition6pluginEv(ptr noundef nonnull align 8 dereferenceable(80) %139)
  %141 = load ptr, ptr %7, align 8, !tbaa !5
  %142 = call noundef double @_ZNK7fastjet15GhostedAreaSpec13mean_ghost_ktEv(ptr noundef nonnull align 8 dereferenceable(144) %141)
  %143 = call double @sqrt(double noundef %142) #7
  %144 = load ptr, ptr %140, align 8, !tbaa !19
  %145 = getelementptr inbounds ptr, ptr %144, i64 4
  %146 = load ptr, ptr %145, align 8
  call void %146(ptr noundef nonnull align 8 dereferenceable(8) %140, double noundef %143)
  %147 = load ptr, ptr %6, align 8, !tbaa !5
  %148 = load ptr, ptr %7, align 8, !tbaa !5
  %149 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN7fastjet25ClusterSequenceActiveArea22_initialise_and_run_AAERKNS_13JetDefinitionERKNS_15GhostedAreaSpecERKb(ptr noundef nonnull align 8 dereferenceable(424) %19, ptr noundef nonnull align 8 dereferenceable(80) %147, ptr noundef nonnull align 8 dereferenceable(144) %148, ptr noundef nonnull align 1 dereferenceable(1) %149)
  %150 = load ptr, ptr %6, align 8, !tbaa !5
  %151 = call noundef ptr @_ZNK7fastjet13JetDefinition6pluginEv(ptr noundef nonnull align 8 dereferenceable(80) %150)
  %152 = load double, ptr %18, align 8, !tbaa !16
  %153 = load ptr, ptr %151, align 8, !tbaa !19
  %154 = getelementptr inbounds ptr, ptr %153, i64 4
  %155 = load ptr, ptr %154, align 8
  call void %155(ptr noundef nonnull align 8 dereferenceable(8) %151, double noundef %152)
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br label %160

156:                                              ; preds = %125, %121
  %157 = load ptr, ptr %6, align 8, !tbaa !5
  %158 = load ptr, ptr %7, align 8, !tbaa !5
  %159 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN7fastjet32ClusterSequence1GhostPassiveArea24_initialise_and_run_1GPAERKNS_13JetDefinitionERKNS_15GhostedAreaSpecERKb(ptr noundef nonnull align 8 dereferenceable(424) %19, ptr noundef nonnull align 8 dereferenceable(80) %157, ptr noundef nonnull align 8 dereferenceable(144) %158, ptr noundef nonnull align 1 dereferenceable(1) %159)
  br label %160

160:                                              ; preds = %156, %132
  br label %161

161:                                              ; preds = %160, %117
  br label %162

162:                                              ; preds = %161, %108
  br label %163

163:                                              ; preds = %162, %88
  ret void

164:                                              ; preds = %109, %89
  %165 = load ptr, ptr %12, align 8
  %166 = load i32, ptr %13, align 4
  %167 = insertvalue { ptr, i32 } poison, ptr %165, 0
  %168 = insertvalue { ptr, i32 } %167, i32 %166, 1
  resume { ptr, i32 } %168
}

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

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

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

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

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

declare void @_ZN7fastjet15ClusterSequence22transfer_from_sequenceERKS0_PKNS_19FunctionOfPseudoJetINS_9PseudoJetEEE(ptr noundef nonnull align 8 dereferenceable(276), ptr noundef nonnull align 8 dereferenceable(276), ptr noundef) #3

declare i32 @__gxx_personality_v0(...)

declare void @_ZN7fastjet25ClusterSequenceActiveArea19_resize_and_zero_AAEv(ptr noundef nonnull align 8 dereferenceable(424)) #3

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZNK7fastjet26ClusterSequenceVoronoiArea4areaERKNS_9PseudoJetE(ptr noundef nonnull align 8 dereferenceable(344), ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #4 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK7fastjet26ClusterSequenceVoronoiArea12area_4vectorERKNS_9PseudoJetE(ptr dead_on_unwind noalias writable sret(%"class.fastjet::PseudoJet") align 8, ptr noundef nonnull align 8 dereferenceable(344), ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt8valarrayIN7fastjet9PseudoJetEEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(88) ptr @_ZN7fastjet9PseudoJetaSERKS0_(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 8 dereferenceable(88)) #4 align 2

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

; Function Attrs: nounwind
declare void @_ZN7fastjet26ClusterSequenceVoronoiAreaD1Ev(ptr noundef nonnull align 8 dereferenceable(344)) unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7fastjet13JetDefinitionC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #4 align 2

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

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

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

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

declare void @_ZN7fastjet25ClusterSequenceActiveArea22_initialise_and_run_AAERKNS_13JetDefinitionERKNS_15GhostedAreaSpecERKb(ptr noundef nonnull align 8 dereferenceable(424), ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(144), ptr noundef nonnull align 1 dereferenceable(1)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(80) ptr @_ZN7fastjet13JetDefinitionaSERKS0_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(80)) #4 align 2

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

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

declare void @_ZN7fastjet32ClusterSequence1GhostPassiveArea24_initialise_and_run_1GPAERKNS_13JetDefinitionERKNS_15GhostedAreaSpecERKb(ptr noundef nonnull align 8 dereferenceable(424), ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(144), ptr noundef nonnull align 1 dereferenceable(1)) #3

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

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

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


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

%"class.fastjet::ClusterSequenceVoronoiArea" = type { %"class.fastjet::ClusterSequenceAreaBase.base", %"class.std::vector.13", %"class.std::vector", ptr, double }
%"class.fastjet::ClusterSequenceAreaBase.base" = type { %"class.fastjet::ClusterSequence.base" }
%"class.fastjet::ClusterSequence.base" = type <{ ptr, %"class.fastjet::JetDefinition", %"class.std::vector", %"class.std::vector.1", i8, [3 x i8], i32, double, double, double, double, i32, i32, %"class.fastjet::SharedPtr.6", i32, i8, i8, [2 x i8], %"class.fastjet::SharedPtr.7", %"class.std::vector.8", double, double, double, double, i32, i32, i32 }>
%"class.fastjet::JetDefinition" = type { i32, double, double, i32, ptr, %"class.fastjet::SharedPtr", %"class.fastjet::JetDefinition::DefaultRecombiner", ptr, %"class.fastjet::SharedPtr.0" }
%"class.fastjet::SharedPtr" = type { ptr }
%"class.fastjet::JetDefinition::DefaultRecombiner" = type <{ %"class.fastjet::JetDefinition::Recombiner", i32, [4 x i8] }>
%"class.fastjet::JetDefinition::Recombiner" = type { ptr }
%"class.fastjet::SharedPtr.0" = type { ptr }
%"class.std::vector.1" = type { %"struct.std::_Vector_base.2" }
%"struct.std::_Vector_base.2" = type { %"struct.std::_Vector_base<fastjet::ClusterSequence::history_element, std::allocator<fastjet::ClusterSequence::history_element>>::_Vector_impl" }
%"struct.std::_Vector_base<fastjet::ClusterSequence::history_element, std::allocator<fastjet::ClusterSequence::history_element>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastjet::ClusterSequence::history_element, std::allocator<fastjet::ClusterSequence::history_element>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastjet::ClusterSequence::history_element, std::allocator<fastjet::ClusterSequence::history_element>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.fastjet::SharedPtr.6" = type { ptr }
%"class.fastjet::SharedPtr.7" = type { ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<fastjet::ClusterSequence::Tile, std::allocator<fastjet::ClusterSequence::Tile>>::_Vector_impl" }
%"struct.std::_Vector_base<fastjet::ClusterSequence::Tile, std::allocator<fastjet::ClusterSequence::Tile>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastjet::ClusterSequence::Tile, std::allocator<fastjet::ClusterSequence::Tile>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastjet::ClusterSequence::Tile, std::allocator<fastjet::ClusterSequence::Tile>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<fastjet::PseudoJet, std::allocator<fastjet::PseudoJet>>::_Vector_impl" }
%"struct.std::_Vector_base<fastjet::PseudoJet, std::allocator<fastjet::PseudoJet>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastjet::PseudoJet, std::allocator<fastjet::PseudoJet>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastjet::PseudoJet, std::allocator<fastjet::PseudoJet>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.fastjet::VoronoiAreaSpec" = type { double }
%"class.fastjet::PseudoJet" = type { ptr, %"class.fastjet::SharedPtr.6", %"class.fastjet::SharedPtr.24", double, double, double, double, double, double, double, i32, i32 }
%"class.fastjet::SharedPtr.24" = type { ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7fastjet26ClusterSequencePassiveArea22_initialise_and_run_PAERKNS_13JetDefinitionERKNS_15GhostedAreaSpecERKb(ptr noundef nonnull align 8 dereferenceable(424) %0, ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 8 dereferenceable(144) %2, ptr noundef nonnull align 1 dereferenceable(1) %3) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.fastjet::ClusterSequenceVoronoiArea", align 8
  %6 = alloca %"class.fastjet::VoronoiAreaSpec", align 8
  %7 = alloca i8, align 1
  %8 = alloca %"class.fastjet::PseudoJet", align 8
  %9 = alloca %"class.fastjet::JetDefinition", align 8
  %10 = tail call noundef i32 @_ZNK7fastjet13JetDefinition13jet_algorithmEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  %11 = icmp eq i32 %10, 0
  br i1 %11, label %12, label %50

12:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 344, ptr nonnull %5) #8
  %13 = getelementptr inbounds i8, ptr %0, i64 88
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  call void @_ZN7fastjet15VoronoiAreaSpecC2Ed(ptr noundef nonnull align 8 dereferenceable(8) %6, double noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #8
  store i8 0, ptr %7, align 1, !tbaa !5
  call void @_ZN7fastjet26ClusterSequenceVoronoiAreaC2INS_9PseudoJetEEERKSt6vectorIT_SaIS4_EERKNS_13JetDefinitionERKNS_15VoronoiAreaSpecERKb(ptr noundef nonnull align 8 dereferenceable(344) %5, ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 1 dereferenceable(1) %7)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  invoke void @_ZN7fastjet15ClusterSequence22transfer_from_sequenceERKS0_PKNS_19FunctionOfPseudoJetINS_9PseudoJetEEE(ptr noundef nonnull align 8 dereferenceable(276) %0, ptr noundef nonnull align 8 dereferenceable(276) %5, ptr noundef null)
          to label %14 unwind label %19

14:                                               ; preds = %12
  invoke void @_ZN7fastjet25ClusterSequenceActiveArea19_resize_and_zero_AAEv(ptr noundef nonnull align 8 dereferenceable(424) %0)
          to label %.preheader unwind label %19

.preheader:                                       ; preds = %14
  %15 = getelementptr inbounds i8, ptr %0, i64 112
  %16 = call noundef i64 @_ZNKSt6vectorIN7fastjet15ClusterSequence15history_elementESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  %.not47 = icmp eq i64 %16, 0
  br i1 %.not47, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %17 = getelementptr inbounds i8, ptr %0, i64 280
  %18 = getelementptr inbounds i8, ptr %0, i64 312
  br label %21

._crit_edge:                                      ; preds = %44, %.preheader
  call void @_ZN7fastjet26ClusterSequenceVoronoiAreaD1Ev(ptr noundef nonnull align 8 dereferenceable(344) %5) #8
  call void @llvm.lifetime.end.p0(i64 344, ptr nonnull %5) #8
  br label %92

19:                                               ; preds = %14, %12
  %20 = landingpad { ptr, i32 }
          cleanup
  br label %49

21:                                               ; preds = %.lr.ph, %44
  %22 = phi i64 [ 0, %.lr.ph ], [ %46, %44 ]
  %.03946 = phi i32 [ 0, %.lr.ph ], [ %45, %44 ]
  %23 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7fastjet15ClusterSequence15history_elementESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %22) #8
  %24 = getelementptr inbounds i8, ptr %23, i64 12
  %25 = load i32, ptr %24, align 4, !tbaa !9
  %.not = icmp eq i32 %25, -3
  br i1 %.not, label %44, label %26

26:                                               ; preds = %21
  %27 = sext i32 %25 to i64
  %28 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorIN7fastjet9PseudoJetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %27) #8
  %29 = invoke noundef double @_ZNK7fastjet26ClusterSequenceVoronoiArea4areaERKNS_9PseudoJetE(ptr noundef nonnull align 8 dereferenceable(344) %5, ptr noundef nonnull align 8 dereferenceable(88) %28)
          to label %30 unwind label %37

30:                                               ; preds = %26
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %17, i64 noundef %22) #8
  store double %29, ptr %31, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %8) #8
  %32 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorIN7fastjet9PseudoJetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %27) #8
  invoke void @_ZNK7fastjet26ClusterSequenceVoronoiArea12area_4vectorERKNS_9PseudoJetE(ptr dead_on_unwind nonnull writable sret(%"class.fastjet::PseudoJet") align 8 %8, ptr noundef nonnull align 8 dereferenceable(344) %5, ptr noundef nonnull align 8 dereferenceable(88) %32)
          to label %33 unwind label %39

33:                                               ; preds = %30
  %34 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt8valarrayIN7fastjet9PseudoJetEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %18, i64 noundef %22) #8
  %35 = invoke noundef nonnull align 8 dereferenceable(88) ptr @_ZN7fastjet9PseudoJetaSERKS0_(ptr noundef nonnull align 8 dereferenceable(88) %34, ptr noundef nonnull align 8 dereferenceable(88) %8)
          to label %36 unwind label %41

36:                                               ; preds = %33
  call void @_ZN7fastjet9PseudoJetD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %8) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %8) #8
  br label %44

37:                                               ; preds = %26
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %49

39:                                               ; preds = %30
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %43

41:                                               ; preds = %33
  %42 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7fastjet9PseudoJetD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %8) #8
  br label %43

43:                                               ; preds = %41, %39
  %.pn = phi { ptr, i32 } [ %42, %41 ], [ %40, %39 ]
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %8) #8
  br label %49

44:                                               ; preds = %36, %21
  %45 = add i32 %.03946, 1
  %46 = zext i32 %45 to i64
  %47 = call noundef i64 @_ZNKSt6vectorIN7fastjet15ClusterSequence15history_elementESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  %48 = icmp ugt i64 %47, %46
  br i1 %48, label %21, label %._crit_edge, !llvm.loop !14

49:                                               ; preds = %37, %43, %19
  %.pn.pn.pn = phi { ptr, i32 } [ %20, %19 ], [ %.pn, %43 ], [ %38, %37 ]
  call void @_ZN7fastjet26ClusterSequenceVoronoiAreaD1Ev(ptr noundef nonnull align 8 dereferenceable(344) %5) #8
  call void @llvm.lifetime.end.p0(i64 344, ptr nonnull %5) #8
  br label %93

50:                                               ; preds = %4
  %51 = tail call noundef i32 @_ZNK7fastjet13JetDefinition13jet_algorithmEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  %52 = icmp eq i32 %51, 1
  br i1 %52, label %53, label %62

53:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %9) #8
  call void @_ZN7fastjet13JetDefinitionC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %9, ptr noundef nonnull align 8 dereferenceable(80) %1)
  call void @_ZN7fastjet13JetDefinition14set_jet_finderENS_12JetAlgorithmE(ptr noundef nonnull align 8 dereferenceable(80) %9, i32 noundef 11)
  %54 = call noundef double @_ZNK7fastjet15GhostedAreaSpec13mean_ghost_ktEv(ptr noundef nonnull align 8 dereferenceable(144) %2)
  %55 = call double @sqrt(double noundef %54) #8
  call void @_ZN7fastjet13JetDefinition15set_extra_paramEd(ptr noundef nonnull align 8 dereferenceable(80) %9, double noundef %55)
  invoke void @_ZN7fastjet25ClusterSequenceActiveArea22_initialise_and_run_AAERKNS_13JetDefinitionERKNS_15GhostedAreaSpecERKb(ptr noundef nonnull align 8 dereferenceable(424) %0, ptr noundef nonnull align 8 dereferenceable(80) %9, ptr noundef nonnull align 8 dereferenceable(144) %2, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %56 unwind label %60

56:                                               ; preds = %53
  %57 = getelementptr inbounds i8, ptr %0, i64 8
  %58 = invoke noundef nonnull align 8 dereferenceable(80) ptr @_ZN7fastjet13JetDefinitionaSERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %57, ptr noundef nonnull align 8 dereferenceable(80) %1)
          to label %59 unwind label %60

59:                                               ; preds = %56
  call void @_ZN7fastjet13JetDefinitionD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %9) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %9) #8
  br label %92

60:                                               ; preds = %56, %53
  %61 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7fastjet13JetDefinitionD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %9) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %9) #8
  br label %93

62:                                               ; preds = %50
  %63 = tail call noundef i32 @_ZNK7fastjet13JetDefinition13jet_algorithmEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  %64 = icmp eq i32 %63, 2
  br i1 %64, label %65, label %66

65:                                               ; preds = %62
  tail call void @_ZN7fastjet25ClusterSequenceActiveArea22_initialise_and_run_AAERKNS_13JetDefinitionERKNS_15GhostedAreaSpecERKb(ptr noundef nonnull align 8 dereferenceable(424) %0, ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 8 dereferenceable(144) %2, ptr noundef nonnull align 1 dereferenceable(1) %3)
  br label %92

66:                                               ; preds = %62
  %67 = tail call noundef i32 @_ZNK7fastjet13JetDefinition13jet_algorithmEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  %68 = icmp eq i32 %67, 99
  br i1 %68, label %69, label %91

69:                                               ; preds = %66
  %70 = tail call noundef ptr @_ZNK7fastjet13JetDefinition6pluginEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  %71 = load ptr, ptr %70, align 8, !tbaa !16
  %72 = getelementptr inbounds i8, ptr %71, i64 24
  %73 = load ptr, ptr %72, align 8
  %74 = tail call noundef zeroext i1 %73(ptr noundef nonnull align 8 dereferenceable(8) %70)
  br i1 %74, label %75, label %91

75:                                               ; preds = %69
  %76 = tail call noundef ptr @_ZNK7fastjet13JetDefinition6pluginEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  %77 = load ptr, ptr %76, align 8, !tbaa !16
  %78 = getelementptr inbounds i8, ptr %77, i64 40
  %79 = load ptr, ptr %78, align 8
  %80 = tail call noundef double %79(ptr noundef nonnull align 8 dereferenceable(8) %76)
  %81 = tail call noundef ptr @_ZNK7fastjet13JetDefinition6pluginEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  %82 = tail call noundef double @_ZNK7fastjet15GhostedAreaSpec13mean_ghost_ktEv(ptr noundef nonnull align 8 dereferenceable(144) %2)
  %83 = tail call double @sqrt(double noundef %82) #8
  %84 = load ptr, ptr %81, align 8, !tbaa !16
  %85 = getelementptr inbounds i8, ptr %84, i64 32
  %86 = load ptr, ptr %85, align 8
  tail call void %86(ptr noundef nonnull align 8 dereferenceable(8) %81, double noundef %83)
  tail call void @_ZN7fastjet25ClusterSequenceActiveArea22_initialise_and_run_AAERKNS_13JetDefinitionERKNS_15GhostedAreaSpecERKb(ptr noundef nonnull align 8 dereferenceable(424) %0, ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 8 dereferenceable(144) %2, ptr noundef nonnull align 1 dereferenceable(1) %3)
  %87 = tail call noundef ptr @_ZNK7fastjet13JetDefinition6pluginEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  %88 = load ptr, ptr %87, align 8, !tbaa !16
  %89 = getelementptr inbounds i8, ptr %88, i64 32
  %90 = load ptr, ptr %89, align 8
  tail call void %90(ptr noundef nonnull align 8 dereferenceable(8) %87, double noundef %80)
  br label %92

91:                                               ; preds = %69, %66
  tail call void @_ZN7fastjet32ClusterSequence1GhostPassiveArea24_initialise_and_run_1GPAERKNS_13JetDefinitionERKNS_15GhostedAreaSpecERKb(ptr noundef nonnull align 8 dereferenceable(424) %0, ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 8 dereferenceable(144) %2, ptr noundef nonnull align 1 dereferenceable(1) %3)
  br label %92

92:                                               ; preds = %59, %75, %91, %65, %._crit_edge
  ret void

93:                                               ; preds = %60, %49
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %49 ], [ %61, %60 ]
  resume { ptr, i32 } %.pn.pn.pn.pn
}

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

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

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

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

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

declare void @_ZN7fastjet15ClusterSequence22transfer_from_sequenceERKS0_PKNS_19FunctionOfPseudoJetINS_9PseudoJetEEE(ptr noundef nonnull align 8 dereferenceable(276), ptr noundef nonnull align 8 dereferenceable(276), ptr noundef) local_unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

declare void @_ZN7fastjet25ClusterSequenceActiveArea19_resize_and_zero_AAEv(ptr noundef nonnull align 8 dereferenceable(424)) local_unnamed_addr #3

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZNK7fastjet26ClusterSequenceVoronoiArea4areaERKNS_9PseudoJetE(ptr noundef nonnull align 8 dereferenceable(344), ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #4 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK7fastjet26ClusterSequenceVoronoiArea12area_4vectorERKNS_9PseudoJetE(ptr dead_on_unwind noalias writable sret(%"class.fastjet::PseudoJet") align 8, ptr noundef nonnull align 8 dereferenceable(344), ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt8valarrayIN7fastjet9PseudoJetEEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(88) ptr @_ZN7fastjet9PseudoJetaSERKS0_(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #4 align 2

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

; Function Attrs: nounwind
declare void @_ZN7fastjet26ClusterSequenceVoronoiAreaD1Ev(ptr noundef nonnull align 8 dereferenceable(344)) unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7fastjet13JetDefinitionC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #4 align 2

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

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

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

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

declare void @_ZN7fastjet25ClusterSequenceActiveArea22_initialise_and_run_AAERKNS_13JetDefinitionERKNS_15GhostedAreaSpecERKb(ptr noundef nonnull align 8 dereferenceable(424), ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(144), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(80) ptr @_ZN7fastjet13JetDefinitionaSERKS0_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #4 align 2

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

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

declare void @_ZN7fastjet32ClusterSequence1GhostPassiveArea24_initialise_and_run_1GPAERKNS_13JetDefinitionERKNS_15GhostedAreaSpecERKb(ptr noundef nonnull align 8 dereferenceable(424), ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(144), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #3

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


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