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

; 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.std::vector.22" = type { %"struct.std::_Vector_base.23" }
%"struct.std::_Vector_base.23" = type { %"struct.std::_Vector_base<fastjet::EtaPhi, std::allocator<fastjet::EtaPhi>>::_Vector_impl" }
%"struct.std::_Vector_base<fastjet::EtaPhi, std::allocator<fastjet::EtaPhi>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastjet::EtaPhi, std::allocator<fastjet::EtaPhi>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastjet::EtaPhi, std::allocator<fastjet::EtaPhi>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.fastjet::EtaPhi" = type { double, double }
%"class.std::vector.17" = type { %"struct.std::_Vector_base.18" }
%"struct.std::_Vector_base.18" = 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.fastjet::Dnn2piCylinder" = type { %"class.fastjet::DynamicNearestNeighbours", i8, i8, %"class.std::vector.12", %"class.std::vector.17", ptr }
%"class.fastjet::DynamicNearestNeighbours" = type { ptr }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = type { %"struct.std::_Vector_base<fastjet::Dnn2piCylinder::MirrorVertexInfo, std::allocator<fastjet::Dnn2piCylinder::MirrorVertexInfo>>::_Vector_impl" }
%"struct.std::_Vector_base<fastjet::Dnn2piCylinder::MirrorVertexInfo, std::allocator<fastjet::Dnn2piCylinder::MirrorVertexInfo>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastjet::Dnn2piCylinder::MirrorVertexInfo, std::allocator<fastjet::Dnn2piCylinder::MirrorVertexInfo>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastjet::Dnn2piCylinder::MirrorVertexInfo, std::allocator<fastjet::Dnn2piCylinder::MirrorVertexInfo>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.fastjet::Dnn2piCylinder::MirrorVertexInfo" = type { i32, i32 }

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7fastjet14Dnn2piCylinder28_CreateNecessaryMirrorPointsERKSt6vectorIiSaIiEERS3_(ptr noundef nonnull align 8 dereferenceable(72) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.std::vector.22", align 8
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.fastjet::EtaPhi", align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca double, align 8
  %15 = alloca i32, align 4
  %16 = alloca double, align 8
  %17 = alloca %"class.fastjet::EtaPhi", align 8
  %18 = alloca %"class.std::vector.17", align 8
  %19 = alloca %"class.std::vector.17", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %20 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #4
  call void @_ZNSt6vectorIN7fastjet6EtaPhiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  store i64 0, ptr %8, align 8, !tbaa !9
  br label %21

21:                                               ; preds = %108, %3
  %22 = load i64, ptr %8, align 8, !tbaa !9
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #4
  %25 = icmp ult i64 %22, %24
  br i1 %25, label %27, label %26

26:                                               ; preds = %21
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br label %117

27:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = load i64, ptr %8, align 8, !tbaa !9
  %30 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %29) #4
  %31 = load i32, ptr %30, align 4, !tbaa !11
  store i32 %31, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #4
  %32 = getelementptr inbounds %"class.fastjet::Dnn2piCylinder", ptr %20, i32 0, i32 5
  %33 = load ptr, ptr %32, align 8, !tbaa !13
  %34 = load i32, ptr %10, align 4, !tbaa !11
  %35 = invoke { double, double } @_ZNK7fastjet8DnnPlane6etaphiEi(ptr noundef nonnull align 8 dereferenceable(1088) %33, i32 noundef %34)
          to label %36 unwind label %56

36:                                               ; preds = %27
  %37 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 0
  %38 = extractvalue { double, double } %35, 0
  store double %38, ptr %37, align 8
  %39 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 1
  %40 = extractvalue { double, double } %35, 1
  store double %40, ptr %39, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %41 = getelementptr inbounds %"class.fastjet::EtaPhi", ptr %11, i32 0, i32 1
  %42 = load double, ptr %41, align 8, !tbaa !25
  store double %42, ptr %14, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %43 = getelementptr inbounds %"class.fastjet::Dnn2piCylinder", ptr %20, i32 0, i32 4
  %44 = load i32, ptr %10, align 4, !tbaa !11
  %45 = sext i32 %44 to i64
  %46 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %45) #4
  %47 = load i32, ptr %46, align 4, !tbaa !11
  store i32 %47, ptr %15, align 4, !tbaa !11
  %48 = getelementptr inbounds %"class.fastjet::Dnn2piCylinder", ptr %20, i32 0, i32 3
  %49 = load i32, ptr %15, align 4, !tbaa !11
  %50 = sext i32 %49 to i64
  %51 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN7fastjet14Dnn2piCylinder16MirrorVertexInfoESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef %50) #4
  %52 = getelementptr inbounds %"struct.fastjet::Dnn2piCylinder::MirrorVertexInfo", ptr %51, i32 0, i32 1
  %53 = load i32, ptr %52, align 4, !tbaa !29
  %54 = icmp ne i32 %53, -3
  br i1 %54, label %55, label %60

55:                                               ; preds = %36
  store i32 4, ptr %9, align 4
  br label %105

56:                                               ; preds = %27
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %12, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %13, align 4
  br label %116

60:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %61 = getelementptr inbounds %"class.fastjet::Dnn2piCylinder", ptr %20, i32 0, i32 5
  %62 = load ptr, ptr %61, align 8, !tbaa !13
  %63 = load ptr, ptr %62, align 8, !tbaa !31
  %64 = getelementptr inbounds ptr, ptr %63, i64 1
  %65 = load ptr, ptr %64, align 8
  %66 = invoke noundef double %65(ptr noundef nonnull align 8 dereferenceable(1088) %62, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %67 unwind label %82

67:                                               ; preds = %60
  store double %66, ptr %16, align 8, !tbaa !28
  %68 = load double, ptr %14, align 8, !tbaa !28
  %69 = load double, ptr %14, align 8, !tbaa !28
  %70 = fmul double %68, %69
  %71 = load double, ptr %16, align 8, !tbaa !28
  %72 = fcmp oge double %70, %71
  br i1 %72, label %73, label %86

73:                                               ; preds = %67
  %74 = load double, ptr %14, align 8, !tbaa !28
  %75 = fsub double 0x401921FB54442D18, %74
  %76 = load double, ptr %14, align 8, !tbaa !28
  %77 = fsub double 0x401921FB54442D18, %76
  %78 = fmul double %75, %77
  %79 = load double, ptr %16, align 8, !tbaa !28
  %80 = fcmp oge double %78, %79
  br i1 %80, label %81, label %86

81:                                               ; preds = %73
  store i32 4, ptr %9, align 4
  br label %104

82:                                               ; preds = %93, %60
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %12, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %13, align 4
  br label %115

86:                                               ; preds = %73, %67
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #4
  %87 = invoke { double, double } @_ZN7fastjet14Dnn2piCylinder10_remap_phiERKNS_6EtaPhiE(ptr noundef nonnull align 8 dereferenceable(72) %20, ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %88 unwind label %111

88:                                               ; preds = %86
  %89 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 0
  %90 = extractvalue { double, double } %87, 0
  store double %90, ptr %89, align 8
  %91 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 1
  %92 = extractvalue { double, double } %87, 1
  store double %92, ptr %91, align 8
  invoke void @_ZNSt6vectorIN7fastjet6EtaPhiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %93 unwind label %111

93:                                               ; preds = %88
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #4
  %94 = getelementptr inbounds %"class.fastjet::Dnn2piCylinder", ptr %20, i32 0, i32 4
  %95 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %94) #4
  %96 = trunc i64 %95 to i32
  %97 = getelementptr inbounds %"class.fastjet::Dnn2piCylinder", ptr %20, i32 0, i32 3
  %98 = load i32, ptr %15, align 4, !tbaa !11
  %99 = sext i32 %98 to i64
  %100 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN7fastjet14Dnn2piCylinder16MirrorVertexInfoESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %97, i64 noundef %99) #4
  %101 = getelementptr inbounds %"struct.fastjet::Dnn2piCylinder::MirrorVertexInfo", ptr %100, i32 0, i32 1
  store i32 %96, ptr %101, align 4, !tbaa !29
  %102 = getelementptr inbounds %"class.fastjet::Dnn2piCylinder", ptr %20, i32 0, i32 4
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %102, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %103 unwind label %82

103:                                              ; preds = %93
  store i32 0, ptr %9, align 4
  br label %104

104:                                              ; preds = %103, %81
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  br label %105

105:                                              ; preds = %104, %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  %106 = load i32, ptr %9, align 4
  switch i32 %106, label %135 [
    i32 0, label %107
    i32 4, label %108
  ]

107:                                              ; preds = %105
  br label %108

108:                                              ; preds = %107, %105
  %109 = load i64, ptr %8, align 8, !tbaa !9
  %110 = add i64 %109, 1
  store i64 %110, ptr %8, align 8, !tbaa !9
  br label %21, !llvm.loop !33

111:                                              ; preds = %88, %86
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %12, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #4
  br label %115

115:                                              ; preds = %111, %82
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  br label %116

116:                                              ; preds = %115, %56
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br label %129

117:                                              ; preds = %26
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #4
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #4
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #4
  %118 = getelementptr inbounds %"class.fastjet::Dnn2piCylinder", ptr %20, i32 0, i32 5
  %119 = load ptr, ptr %118, align 8, !tbaa !13
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  %121 = load ptr, ptr %119, align 8, !tbaa !31
  %122 = getelementptr inbounds ptr, ptr %121, i64 3
  %123 = load ptr, ptr %122, align 8
  invoke void %123(ptr noundef nonnull align 8 dereferenceable(1088) %119, ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %120)
          to label %124 unwind label %125

124:                                              ; preds = %117
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #4
  call void @_ZNSt6vectorIN7fastjet6EtaPhiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #4
  ret void

125:                                              ; preds = %117
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %12, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %13, align 4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #4
  br label %129

129:                                              ; preds = %125, %116
  call void @_ZNSt6vectorIN7fastjet6EtaPhiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #4
  br label %130

130:                                              ; preds = %129
  %131 = load ptr, ptr %12, align 8
  %132 = load i32, ptr %13, align 4
  %133 = insertvalue { ptr, i32 } poison, ptr %131, 0
  %134 = insertvalue { ptr, i32 } %133, i32 %132, 1
  resume { ptr, i32 } %134

135:                                              ; preds = %105
  unreachable
}

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZNK7fastjet8DnnPlane6etaphiEi(ptr noundef nonnull align 8 dereferenceable(1088), i32 noundef) #3 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZN7fastjet14Dnn2piCylinder10_remap_phiERKNS_6EtaPhiE(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(16)) #3 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)) #2 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { 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 #4 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 64}
!14 = !{!"_ZTSN7fastjet14Dnn2piCylinderE", !15, i64 0, !16, i64 8, !16, i64 9, !17, i64 16, !21, i64 40, !6, i64 64}
!15 = !{!"_ZTSN7fastjet24DynamicNearestNeighboursE"}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"_ZTSSt6vectorIN7fastjet14Dnn2piCylinder16MirrorVertexInfoESaIS2_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIN7fastjet14Dnn2piCylinder16MirrorVertexInfoESaIS2_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIN7fastjet14Dnn2piCylinder16MirrorVertexInfoESaIS2_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIN7fastjet14Dnn2piCylinder16MirrorVertexInfoESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"_ZTSSt6vectorIiSaIiEE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!26, !27, i64 8}
!26 = !{!"_ZTSN7fastjet6EtaPhiE", !27, i64 0, !27, i64 8}
!27 = !{!"double", !7, i64 0}
!28 = !{!27, !27, i64 0}
!29 = !{!30, !12, i64 4}
!30 = !{!"_ZTSN7fastjet14Dnn2piCylinder16MirrorVertexInfoE", !12, i64 0, !12, i64 4}
!31 = !{!32, !32, i64 0}
!32 = !{!"vtable pointer", !8, i64 0}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}


; 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.std::vector.22" = type { %"struct.std::_Vector_base.23" }
%"struct.std::_Vector_base.23" = type { %"struct.std::_Vector_base<fastjet::EtaPhi, std::allocator<fastjet::EtaPhi>>::_Vector_impl" }
%"struct.std::_Vector_base<fastjet::EtaPhi, std::allocator<fastjet::EtaPhi>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastjet::EtaPhi, std::allocator<fastjet::EtaPhi>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastjet::EtaPhi, std::allocator<fastjet::EtaPhi>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.fastjet::EtaPhi" = type { double, double }
%"class.std::vector.17" = type { %"struct.std::_Vector_base.18" }
%"struct.std::_Vector_base.18" = 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 }

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7fastjet14Dnn2piCylinder28_CreateNecessaryMirrorPointsERKSt6vectorIiSaIiEERS3_(ptr noundef nonnull align 8 dereferenceable(72) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::vector.22", align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.fastjet::EtaPhi", align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.fastjet::EtaPhi", align 8
  %9 = alloca %"class.std::vector.17", align 8
  %10 = alloca %"class.std::vector.17", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #4
  call void @_ZNSt6vectorIN7fastjet6EtaPhiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  %11 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #4
  %.not23 = icmp eq i64 %11, 0
  br i1 %.not23, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %3
  %12 = getelementptr inbounds i8, ptr %0, i64 64
  %13 = getelementptr inbounds i8, ptr %6, i64 8
  %14 = getelementptr inbounds i8, ptr %0, i64 40
  %15 = getelementptr inbounds i8, ptr %0, i64 16
  %16 = getelementptr inbounds i8, ptr %8, i64 8
  br label %22

._crit_edge:                                      ; preds = %67, %3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #4
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #4
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #4
  %17 = getelementptr inbounds i8, ptr %0, i64 64
  %18 = load ptr, ptr %17, align 8, !tbaa !5
  %19 = load ptr, ptr %18, align 8, !tbaa !20
  %20 = getelementptr inbounds i8, ptr %19, i64 24
  %21 = load ptr, ptr %20, align 8
  invoke void %21(ptr noundef nonnull align 8 dereferenceable(1088) %18, ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %2)
          to label %75 unwind label %76

22:                                               ; preds = %.lr.ph, %67
  %.022 = phi i64 [ 0, %.lr.ph ], [ %68, %67 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #4
  %23 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.022) #4
  %24 = load i32, ptr %23, align 4, !tbaa !22
  store i32 %24, ptr %5, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #4
  %25 = load ptr, ptr %12, align 8, !tbaa !5
  %26 = invoke { double, double } @_ZNK7fastjet8DnnPlane6etaphiEi(ptr noundef nonnull align 8 dereferenceable(1088) %25, i32 noundef %24)
          to label %27 unwind label %38

27:                                               ; preds = %22
  %28 = extractvalue { double, double } %26, 0
  store double %28, ptr %6, align 8
  %29 = extractvalue { double, double } %26, 1
  store double %29, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #4
  %30 = load i32, ptr %5, align 4, !tbaa !22
  %31 = sext i32 %30 to i64
  %32 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %31) #4
  %33 = load i32, ptr %32, align 4, !tbaa !22
  store i32 %33, ptr %7, align 4, !tbaa !22
  %34 = sext i32 %33 to i64
  %35 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN7fastjet14Dnn2piCylinder16MirrorVertexInfoESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %34) #4
  %36 = getelementptr inbounds i8, ptr %35, i64 4
  %37 = load i32, ptr %36, align 4, !tbaa !24
  %.not = icmp eq i32 %37, -3
  br i1 %.not, label %40, label %67

38:                                               ; preds = %22
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %74

40:                                               ; preds = %27
  %41 = load ptr, ptr %12, align 8, !tbaa !5
  %42 = load ptr, ptr %41, align 8, !tbaa !20
  %43 = getelementptr inbounds i8, ptr %42, i64 8
  %44 = load ptr, ptr %43, align 8
  %45 = invoke noundef double %44(ptr noundef nonnull align 8 dereferenceable(1088) %41, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %46 unwind label %53

46:                                               ; preds = %40
  %47 = fmul double %29, %29
  %48 = fcmp ult double %47, %45
  br i1 %48, label %55, label %49

49:                                               ; preds = %46
  %50 = fsub double 0x401921FB54442D18, %29
  %51 = fmul double %50, %50
  %52 = fcmp ult double %51, %45
  br i1 %52, label %55, label %67

53:                                               ; preds = %60, %40
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %73

55:                                               ; preds = %49, %46
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #4
  %56 = invoke { double, double } @_ZN7fastjet14Dnn2piCylinder10_remap_phiERKNS_6EtaPhiE(ptr noundef nonnull align 8 dereferenceable(72) %0, ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %57 unwind label %71

57:                                               ; preds = %55
  %58 = extractvalue { double, double } %56, 0
  store double %58, ptr %8, align 8
  %59 = extractvalue { double, double } %56, 1
  store double %59, ptr %16, align 8
  invoke void @_ZNSt6vectorIN7fastjet6EtaPhiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %60 unwind label %71

60:                                               ; preds = %57
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #4
  %61 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #4
  %62 = trunc i64 %61 to i32
  %63 = load i32, ptr %7, align 4, !tbaa !22
  %64 = sext i32 %63 to i64
  %65 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN7fastjet14Dnn2piCylinder16MirrorVertexInfoESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %64) #4
  %66 = getelementptr inbounds i8, ptr %65, i64 4
  store i32 %62, ptr %66, align 4, !tbaa !24
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %67 unwind label %53

67:                                               ; preds = %49, %60, %27
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
  %68 = add nuw i64 %.022, 1
  %69 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #4
  %70 = icmp ult i64 %68, %69
  br i1 %70, label %22, label %._crit_edge, !llvm.loop !26

71:                                               ; preds = %57, %55
  %72 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #4
  br label %73

73:                                               ; preds = %71, %53
  %.pn = phi { ptr, i32 } [ %54, %53 ], [ %72, %71 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  br label %74

74:                                               ; preds = %73, %38
  %.pn.pn = phi { ptr, i32 } [ %.pn, %73 ], [ %39, %38 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
  br label %78

75:                                               ; preds = %._crit_edge
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #4
  call void @_ZNSt6vectorIN7fastjet6EtaPhiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #4
  ret void

76:                                               ; preds = %._crit_edge
  %77 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #4
  br label %78

78:                                               ; preds = %76, %74
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %74 ], [ %77, %76 ]
  call void @_ZNSt6vectorIN7fastjet6EtaPhiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #4
  resume { ptr, i32 } %.pn.pn.pn
}

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZNK7fastjet8DnnPlane6etaphiEi(ptr noundef nonnull align 8 dereferenceable(1088), i32 noundef) local_unnamed_addr #3 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZN7fastjet14Dnn2piCylinder10_remap_phiERKNS_6EtaPhiE(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 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 #2 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !15, i64 64}
!6 = !{!"_ZTSN7fastjet14Dnn2piCylinderE", !7, i64 0, !8, i64 8, !8, i64 9, !11, i64 16, !16, i64 40, !15, i64 64}
!7 = !{!"_ZTSN7fastjet24DynamicNearestNeighboursE"}
!8 = !{!"bool", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSSt6vectorIN7fastjet14Dnn2piCylinder16MirrorVertexInfoESaIS2_EE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIN7fastjet14Dnn2piCylinder16MirrorVertexInfoESaIS2_EE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIN7fastjet14Dnn2piCylinder16MirrorVertexInfoESaIS2_EE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIN7fastjet14Dnn2piCylinder16MirrorVertexInfoESaIS2_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!15 = !{!"any pointer", !9, i64 0}
!16 = !{!"_ZTSSt6vectorIiSaIiEE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!20 = !{!21, !21, i64 0}
!21 = !{!"vtable pointer", !10, i64 0}
!22 = !{!23, !23, i64 0}
!23 = !{!"int", !9, i64 0}
!24 = !{!25, !23, i64 4}
!25 = !{!"_ZTSN7fastjet14Dnn2piCylinder16MirrorVertexInfoE", !23, i64 0, !23, i64 4}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}


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