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

; 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::VPoint" = type { double, double }
%"class.fastjet::GraphEdge" = type { double, double, double, double, i32, i32, ptr }
%"class.fastjet::ClusterSequenceVoronoiArea::VoronoiAreaCalc" = type { %"class.std::vector", double, double }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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 }

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZN7fastjet26ClusterSequenceVoronoiArea15VoronoiAreaCalc24edge_circle_intersectionERKNS_6VPointERKNS_9GraphEdgeE(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(48) %2) #0 align 2 {
  %4 = alloca double, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"class.fastjet::VPoint", align 8
  %9 = alloca %"class.fastjet::VPoint", align 8
  %10 = alloca %"class.fastjet::VPoint", align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca %"class.fastjet::VPoint", align 8
  %14 = alloca double, align 8
  %15 = alloca %"class.fastjet::VPoint", align 8
  %16 = alloca double, align 8
  %17 = alloca %"class.fastjet::VPoint", align 8
  %18 = alloca double, align 8
  %19 = alloca i32, align 4
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = 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
  %23 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #8
  %24 = load ptr, ptr %7, align 8, !tbaa !5
  %25 = getelementptr inbounds %"class.fastjet::GraphEdge", ptr %24, i32 0, i32 0
  %26 = load double, ptr %25, align 8, !tbaa !9
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = getelementptr inbounds %"class.fastjet::VPoint", ptr %27, i32 0, i32 0
  %29 = load double, ptr %28, align 8, !tbaa !13
  %30 = fsub double %26, %29
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = getelementptr inbounds %"class.fastjet::GraphEdge", ptr %31, i32 0, i32 1
  %33 = load double, ptr %32, align 8, !tbaa !15
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = getelementptr inbounds %"class.fastjet::VPoint", ptr %34, i32 0, i32 1
  %36 = load double, ptr %35, align 8, !tbaa !16
  %37 = fsub double %33, %36
  call void @_ZN7fastjet6VPointC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %8, double noundef %30, double noundef %37)
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #8
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  %39 = getelementptr inbounds %"class.fastjet::GraphEdge", ptr %38, i32 0, i32 2
  %40 = load double, ptr %39, align 8, !tbaa !17
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = getelementptr inbounds %"class.fastjet::VPoint", ptr %41, i32 0, i32 0
  %43 = load double, ptr %42, align 8, !tbaa !13
  %44 = fsub double %40, %43
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = getelementptr inbounds %"class.fastjet::GraphEdge", ptr %45, i32 0, i32 3
  %47 = load double, ptr %46, align 8, !tbaa !18
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = getelementptr inbounds %"class.fastjet::VPoint", ptr %48, i32 0, i32 1
  %50 = load double, ptr %49, align 8, !tbaa !16
  %51 = fsub double %47, %50
  call void @_ZN7fastjet6VPointC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %9, double noundef %44, double noundef %51)
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #8
  %52 = call { double, double } @_ZNK7fastjet6VPointmiERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %8)
  %53 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 0
  %54 = extractvalue { double, double } %52, 0
  store double %54, ptr %53, align 8
  %55 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 1
  %56 = extractvalue { double, double } %52, 1
  store double %56, ptr %55, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %57 = call noundef double @_ZN7fastjet14vector_productERKNS_6VPointES2_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %9)
  store double %57, ptr %11, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %10, i64 16, i1 false), !tbaa.struct !20
  %58 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 0
  %59 = load double, ptr %58, align 8
  %60 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 1
  %61 = load double, ptr %60, align 8
  %62 = call noundef double @_ZN7fastjet4normENS_6VPointE(double %59, double %61)
  store double %62, ptr %12, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 %8, i64 16, i1 false), !tbaa.struct !20
  %63 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 0
  %64 = load double, ptr %63, align 8
  %65 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 1
  %66 = load double, ptr %65, align 8
  %67 = call noundef double @_ZN7fastjet4normENS_6VPointE(double %64, double %66)
  store double %67, ptr %14, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %9, i64 16, i1 false), !tbaa.struct !20
  %68 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 0
  %69 = load double, ptr %68, align 8
  %70 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 1
  %71 = load double, ptr %70, align 8
  %72 = call noundef double @_ZN7fastjet4normENS_6VPointE(double %69, double %71)
  store double %72, ptr %16, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %73 = load double, ptr %12, align 8, !tbaa !19
  %74 = getelementptr inbounds %"class.fastjet::ClusterSequenceVoronoiArea::VoronoiAreaCalc", ptr %23, i32 0, i32 2
  %75 = load double, ptr %74, align 8, !tbaa !21
  %76 = load double, ptr %11, align 8, !tbaa !19
  %77 = load double, ptr %11, align 8, !tbaa !19
  %78 = fmul double %76, %77
  %79 = fneg double %78
  %80 = call double @llvm.fmuladd.f64(double %73, double %75, double %79)
  store double %80, ptr %18, align 8, !tbaa !19
  %81 = load double, ptr %18, align 8, !tbaa !19
  %82 = fcmp ole double %81, 0.000000e+00
  br i1 %82, label %83, label %88

83:                                               ; preds = %3
  %84 = load double, ptr %12, align 8, !tbaa !19
  %85 = load double, ptr %14, align 8, !tbaa !19
  %86 = load double, ptr %16, align 8, !tbaa !19
  %87 = call noundef double @_ZN7fastjet26ClusterSequenceVoronoiArea15VoronoiAreaCalc11circle_areaEddd(ptr noundef nonnull align 8 dereferenceable(40) %23, double noundef %84, double noundef %85, double noundef %86)
  store double %87, ptr %4, align 8
  store i32 1, ptr %19, align 4
  br label %195

88:                                               ; preds = %3
  %89 = load double, ptr %18, align 8, !tbaa !19
  %90 = call double @sqrt(double noundef %89) #8
  store double %90, ptr %18, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %91 = call noundef double @_ZN7fastjet14scalar_productERKNS_6VPointES2_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %8)
  store double %91, ptr %20, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %92 = load double, ptr %18, align 8, !tbaa !19
  %93 = load double, ptr %20, align 8, !tbaa !19
  %94 = fsub double %92, %93
  %95 = load double, ptr %12, align 8, !tbaa !19
  %96 = fdiv double %94, %95
  store double %96, ptr %21, align 8, !tbaa !19
  %97 = load double, ptr %21, align 8, !tbaa !19
  %98 = fcmp olt double %97, 0.000000e+00
  br i1 %98, label %99, label %104

99:                                               ; preds = %88
  %100 = load double, ptr %12, align 8, !tbaa !19
  %101 = load double, ptr %14, align 8, !tbaa !19
  %102 = load double, ptr %16, align 8, !tbaa !19
  %103 = call noundef double @_ZN7fastjet26ClusterSequenceVoronoiArea15VoronoiAreaCalc11circle_areaEddd(ptr noundef nonnull align 8 dereferenceable(40) %23, double noundef %100, double noundef %101, double noundef %102)
  store double %103, ptr %4, align 8
  store i32 1, ptr %19, align 4
  br label %194

104:                                              ; preds = %88
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %105 = load double, ptr %18, align 8, !tbaa !19
  %106 = load double, ptr %20, align 8, !tbaa !19
  %107 = fadd double %105, %106
  %108 = fneg double %107
  %109 = load double, ptr %12, align 8, !tbaa !19
  %110 = fdiv double %108, %109
  store double %110, ptr %22, align 8, !tbaa !19
  %111 = load double, ptr %21, align 8, !tbaa !19
  %112 = fcmp olt double %111, 1.000000e+00
  br i1 %112, label %113, label %162

113:                                              ; preds = %104
  %114 = load double, ptr %22, align 8, !tbaa !19
  %115 = fcmp olt double %114, 0.000000e+00
  br i1 %115, label %116, label %133

116:                                              ; preds = %113
  %117 = load double, ptr %21, align 8, !tbaa !19
  %118 = fmul double %117, 5.000000e-01
  %119 = load double, ptr %11, align 8, !tbaa !19
  %120 = call double @llvm.fabs.f64(double %119)
  %121 = load double, ptr %21, align 8, !tbaa !19
  %122 = fsub double 1.000000e+00, %121
  %123 = load double, ptr %21, align 8, !tbaa !19
  %124 = fsub double 1.000000e+00, %123
  %125 = fmul double %122, %124
  %126 = load double, ptr %12, align 8, !tbaa !19
  %127 = fmul double %125, %126
  %128 = getelementptr inbounds %"class.fastjet::ClusterSequenceVoronoiArea::VoronoiAreaCalc", ptr %23, i32 0, i32 2
  %129 = load double, ptr %128, align 8, !tbaa !21
  %130 = load double, ptr %16, align 8, !tbaa !19
  %131 = call noundef double @_ZN7fastjet26ClusterSequenceVoronoiArea15VoronoiAreaCalc11circle_areaEddd(ptr noundef nonnull align 8 dereferenceable(40) %23, double noundef %127, double noundef %129, double noundef %130)
  %132 = call double @llvm.fmuladd.f64(double %118, double %120, double %131)
  store double %132, ptr %4, align 8
  store i32 1, ptr %19, align 4
  br label %193

133:                                              ; preds = %113
  %134 = load double, ptr %21, align 8, !tbaa !19
  %135 = load double, ptr %22, align 8, !tbaa !19
  %136 = fsub double %134, %135
  %137 = fmul double %136, 5.000000e-01
  %138 = load double, ptr %11, align 8, !tbaa !19
  %139 = call double @llvm.fabs.f64(double %138)
  %140 = load double, ptr %22, align 8, !tbaa !19
  %141 = load double, ptr %22, align 8, !tbaa !19
  %142 = fmul double %140, %141
  %143 = load double, ptr %12, align 8, !tbaa !19
  %144 = fmul double %142, %143
  %145 = load double, ptr %14, align 8, !tbaa !19
  %146 = getelementptr inbounds %"class.fastjet::ClusterSequenceVoronoiArea::VoronoiAreaCalc", ptr %23, i32 0, i32 2
  %147 = load double, ptr %146, align 8, !tbaa !21
  %148 = call noundef double @_ZN7fastjet26ClusterSequenceVoronoiArea15VoronoiAreaCalc11circle_areaEddd(ptr noundef nonnull align 8 dereferenceable(40) %23, double noundef %144, double noundef %145, double noundef %147)
  %149 = call double @llvm.fmuladd.f64(double %137, double %139, double %148)
  %150 = load double, ptr %21, align 8, !tbaa !19
  %151 = fsub double 1.000000e+00, %150
  %152 = load double, ptr %21, align 8, !tbaa !19
  %153 = fsub double 1.000000e+00, %152
  %154 = fmul double %151, %153
  %155 = load double, ptr %12, align 8, !tbaa !19
  %156 = fmul double %154, %155
  %157 = getelementptr inbounds %"class.fastjet::ClusterSequenceVoronoiArea::VoronoiAreaCalc", ptr %23, i32 0, i32 2
  %158 = load double, ptr %157, align 8, !tbaa !21
  %159 = load double, ptr %16, align 8, !tbaa !19
  %160 = call noundef double @_ZN7fastjet26ClusterSequenceVoronoiArea15VoronoiAreaCalc11circle_areaEddd(ptr noundef nonnull align 8 dereferenceable(40) %23, double noundef %156, double noundef %158, double noundef %159)
  %161 = fadd double %149, %160
  store double %161, ptr %4, align 8
  store i32 1, ptr %19, align 4
  br label %193

162:                                              ; preds = %104
  %163 = load double, ptr %22, align 8, !tbaa !19
  %164 = fcmp ogt double %163, 1.000000e+00
  br i1 %164, label %165, label %170

165:                                              ; preds = %162
  %166 = load double, ptr %12, align 8, !tbaa !19
  %167 = load double, ptr %14, align 8, !tbaa !19
  %168 = load double, ptr %16, align 8, !tbaa !19
  %169 = call noundef double @_ZN7fastjet26ClusterSequenceVoronoiArea15VoronoiAreaCalc11circle_areaEddd(ptr noundef nonnull align 8 dereferenceable(40) %23, double noundef %166, double noundef %167, double noundef %168)
  store double %169, ptr %4, align 8
  store i32 1, ptr %19, align 4
  br label %193

170:                                              ; preds = %162
  %171 = load double, ptr %22, align 8, !tbaa !19
  %172 = fcmp olt double %171, 0.000000e+00
  br i1 %172, label %173, label %177

173:                                              ; preds = %170
  %174 = load double, ptr %11, align 8, !tbaa !19
  %175 = call double @llvm.fabs.f64(double %174)
  %176 = fmul double 5.000000e-01, %175
  store double %176, ptr %4, align 8
  store i32 1, ptr %19, align 4
  br label %193

177:                                              ; preds = %170
  %178 = load double, ptr %22, align 8, !tbaa !19
  %179 = fsub double 1.000000e+00, %178
  %180 = fmul double %179, 5.000000e-01
  %181 = load double, ptr %11, align 8, !tbaa !19
  %182 = call double @llvm.fabs.f64(double %181)
  %183 = load double, ptr %22, align 8, !tbaa !19
  %184 = load double, ptr %22, align 8, !tbaa !19
  %185 = fmul double %183, %184
  %186 = load double, ptr %12, align 8, !tbaa !19
  %187 = fmul double %185, %186
  %188 = load double, ptr %14, align 8, !tbaa !19
  %189 = getelementptr inbounds %"class.fastjet::ClusterSequenceVoronoiArea::VoronoiAreaCalc", ptr %23, i32 0, i32 2
  %190 = load double, ptr %189, align 8, !tbaa !21
  %191 = call noundef double @_ZN7fastjet26ClusterSequenceVoronoiArea15VoronoiAreaCalc11circle_areaEddd(ptr noundef nonnull align 8 dereferenceable(40) %23, double noundef %187, double noundef %188, double noundef %190)
  %192 = call double @llvm.fmuladd.f64(double %180, double %182, double %191)
  store double %192, ptr %4, align 8
  store i32 1, ptr %19, align 4
  br label %193

193:                                              ; preds = %177, %173, %165, %133, %116
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %194

194:                                              ; preds = %193, %99
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br label %195

195:                                              ; preds = %194, %83
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #8
  %196 = load double, ptr %4, align 8
  ret double %196
}

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN7fastjet14vector_productERKNS_6VPointES2_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN7fastjet4normENS_6VPointE(double, double) #4

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZN7fastjet26ClusterSequenceVoronoiArea15VoronoiAreaCalc11circle_areaEddd(ptr noundef nonnull align 8 dereferenceable(40), double noundef, double noundef, double noundef) #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN7fastjet14scalar_productERKNS_6VPointES2_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #4

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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 #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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTSN7fastjet9GraphEdgeE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !12, i64 32, !12, i64 36, !6, i64 40}
!11 = !{!"double", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !11, i64 0}
!14 = !{!"_ZTSN7fastjet6VPointE", !11, i64 0, !11, i64 8}
!15 = !{!10, !11, i64 8}
!16 = !{!14, !11, i64 8}
!17 = !{!10, !11, i64 16}
!18 = !{!10, !11, i64 24}
!19 = !{!11, !11, i64 0}
!20 = !{i64 0, i64 8, !19, i64 8, i64 8, !19}
!21 = !{!22, !11, i64 32}
!22 = !{!"_ZTSN7fastjet26ClusterSequenceVoronoiArea15VoronoiAreaCalcE", !23, i64 0, !11, i64 24, !11, i64 32}
!23 = !{!"_ZTSSt6vectorIdSaIdEE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}


; 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::VPoint" = type { double, double }

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZN7fastjet26ClusterSequenceVoronoiArea15VoronoiAreaCalc24edge_circle_intersectionERKNS_6VPointERKNS_9GraphEdgeE(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr nocapture noundef nonnull readonly align 8 dereferenceable(16) %1, ptr nocapture noundef nonnull readonly align 8 dereferenceable(48) %2) local_unnamed_addr #0 align 2 {
  %4 = alloca %"class.fastjet::VPoint", align 8
  %5 = alloca %"class.fastjet::VPoint", align 8
  %6 = alloca %"class.fastjet::VPoint", align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #7
  %7 = load double, ptr %2, align 8, !tbaa !5
  %8 = load double, ptr %1, align 8, !tbaa !12
  %9 = fsub double %7, %8
  %10 = getelementptr inbounds i8, ptr %2, i64 8
  %11 = load double, ptr %10, align 8, !tbaa !14
  %12 = getelementptr inbounds i8, ptr %1, i64 8
  %13 = load double, ptr %12, align 8, !tbaa !15
  %14 = fsub double %11, %13
  call void @_ZN7fastjet6VPointC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %4, double noundef %9, double noundef %14)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #7
  %15 = getelementptr inbounds i8, ptr %2, i64 16
  %16 = load double, ptr %15, align 8, !tbaa !16
  %17 = load double, ptr %1, align 8, !tbaa !12
  %18 = fsub double %16, %17
  %19 = getelementptr inbounds i8, ptr %2, i64 24
  %20 = load double, ptr %19, align 8, !tbaa !17
  %21 = load double, ptr %12, align 8, !tbaa !15
  %22 = fsub double %20, %21
  call void @_ZN7fastjet6VPointC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %5, double noundef %18, double noundef %22)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #7
  %23 = call { double, double } @_ZNK7fastjet6VPointmiERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %4)
  %24 = extractvalue { double, double } %23, 0
  store double %24, ptr %6, align 8
  %25 = getelementptr inbounds i8, ptr %6, i64 8
  %26 = extractvalue { double, double } %23, 1
  store double %26, ptr %25, align 8
  %27 = call noundef double @_ZN7fastjet14vector_productERKNS_6VPointES2_(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %5)
  %28 = call noundef double @_ZN7fastjet4normENS_6VPointE(double %24, double %26)
  %.sroa.028.0.copyload = load double, ptr %4, align 8, !tbaa !18
  %.sroa.229.0..sroa_idx = getelementptr inbounds i8, ptr %4, i64 8
  %.sroa.229.0.copyload = load double, ptr %.sroa.229.0..sroa_idx, align 8, !tbaa !18
  %29 = call noundef double @_ZN7fastjet4normENS_6VPointE(double %.sroa.028.0.copyload, double %.sroa.229.0.copyload)
  %.sroa.0.0.copyload = load double, ptr %5, align 8, !tbaa !18
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %5, i64 8
  %.sroa.2.0.copyload = load double, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !18
  %30 = call noundef double @_ZN7fastjet4normENS_6VPointE(double %.sroa.0.0.copyload, double %.sroa.2.0.copyload)
  %31 = getelementptr inbounds i8, ptr %0, i64 32
  %32 = load double, ptr %31, align 8, !tbaa !19
  %33 = fneg double %27
  %34 = fmul double %27, %33
  %35 = call double @llvm.fmuladd.f64(double %28, double %32, double %34)
  %36 = fcmp ugt double %35, 0.000000e+00
  br i1 %36, label %39, label %37

37:                                               ; preds = %3
  %38 = call noundef double @_ZN7fastjet26ClusterSequenceVoronoiArea15VoronoiAreaCalc11circle_areaEddd(ptr noundef nonnull align 8 dereferenceable(40) %0, double noundef %28, double noundef %29, double noundef %30)
  br label %95

39:                                               ; preds = %3
  %40 = call double @sqrt(double noundef %35) #7
  %41 = call noundef double @_ZN7fastjet14scalar_productERKNS_6VPointES2_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %4)
  %42 = fsub double %40, %41
  %43 = fdiv double %42, %28
  %44 = fcmp olt double %43, 0.000000e+00
  br i1 %44, label %45, label %47

45:                                               ; preds = %39
  %46 = call noundef double @_ZN7fastjet26ClusterSequenceVoronoiArea15VoronoiAreaCalc11circle_areaEddd(ptr noundef nonnull align 8 dereferenceable(40) %0, double noundef %28, double noundef %29, double noundef %30)
  br label %95

47:                                               ; preds = %39
  %48 = fadd double %40, %41
  %49 = fneg double %48
  %50 = fdiv double %49, %28
  %51 = fcmp olt double %43, 1.000000e+00
  br i1 %51, label %52, label %77

52:                                               ; preds = %47
  %53 = fcmp olt double %50, 0.000000e+00
  %54 = load double, ptr %31, align 8, !tbaa !19
  br i1 %53, label %55, label %63

55:                                               ; preds = %52
  %56 = fmul double %43, 5.000000e-01
  %57 = call double @llvm.fabs.f64(double %27)
  %58 = fsub double 1.000000e+00, %43
  %59 = fmul double %58, %58
  %60 = fmul double %28, %59
  %61 = call noundef double @_ZN7fastjet26ClusterSequenceVoronoiArea15VoronoiAreaCalc11circle_areaEddd(ptr noundef nonnull align 8 dereferenceable(40) %0, double noundef %60, double noundef %54, double noundef %30)
  %62 = call double @llvm.fmuladd.f64(double %56, double %57, double %61)
  br label %95

63:                                               ; preds = %52
  %64 = fsub double %43, %50
  %65 = fmul double %64, 5.000000e-01
  %66 = call double @llvm.fabs.f64(double %27)
  %67 = fmul double %50, %50
  %68 = fmul double %28, %67
  %69 = call noundef double @_ZN7fastjet26ClusterSequenceVoronoiArea15VoronoiAreaCalc11circle_areaEddd(ptr noundef nonnull align 8 dereferenceable(40) %0, double noundef %68, double noundef %29, double noundef %54)
  %70 = call double @llvm.fmuladd.f64(double %65, double %66, double %69)
  %71 = fsub double 1.000000e+00, %43
  %72 = fmul double %71, %71
  %73 = fmul double %28, %72
  %74 = load double, ptr %31, align 8, !tbaa !19
  %75 = call noundef double @_ZN7fastjet26ClusterSequenceVoronoiArea15VoronoiAreaCalc11circle_areaEddd(ptr noundef nonnull align 8 dereferenceable(40) %0, double noundef %73, double noundef %74, double noundef %30)
  %76 = fadd double %70, %75
  br label %95

77:                                               ; preds = %47
  %78 = fcmp ogt double %50, 1.000000e+00
  br i1 %78, label %79, label %81

79:                                               ; preds = %77
  %80 = call noundef double @_ZN7fastjet26ClusterSequenceVoronoiArea15VoronoiAreaCalc11circle_areaEddd(ptr noundef nonnull align 8 dereferenceable(40) %0, double noundef %28, double noundef %29, double noundef %30)
  br label %95

81:                                               ; preds = %77
  %82 = fcmp olt double %50, 0.000000e+00
  br i1 %82, label %83, label %86

83:                                               ; preds = %81
  %84 = call double @llvm.fabs.f64(double %27)
  %85 = fmul double %84, 5.000000e-01
  br label %95

86:                                               ; preds = %81
  %87 = fsub double 1.000000e+00, %50
  %88 = fmul double %87, 5.000000e-01
  %89 = call double @llvm.fabs.f64(double %27)
  %90 = fmul double %50, %50
  %91 = fmul double %28, %90
  %92 = load double, ptr %31, align 8, !tbaa !19
  %93 = call noundef double @_ZN7fastjet26ClusterSequenceVoronoiArea15VoronoiAreaCalc11circle_areaEddd(ptr noundef nonnull align 8 dereferenceable(40) %0, double noundef %91, double noundef %29, double noundef %92)
  %94 = call double @llvm.fmuladd.f64(double %88, double %89, double %93)
  br label %95

95:                                               ; preds = %45, %86, %83, %79, %63, %55, %37
  %.2 = phi double [ %38, %37 ], [ %46, %45 ], [ %62, %55 ], [ %76, %63 ], [ %80, %79 ], [ %85, %83 ], [ %94, %86 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #7
  ret double %.2
}

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN7fastjet14vector_productERKNS_6VPointES2_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN7fastjet4normENS_6VPointE(double, double) local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZN7fastjet26ClusterSequenceVoronoiArea15VoronoiAreaCalc11circle_areaEddd(ptr noundef nonnull align 8 dereferenceable(40), double noundef, double noundef, double noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN7fastjet14scalar_productERKNS_6VPointES2_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress 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 #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 #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, !7, i64 0}
!6 = !{!"_ZTSN7fastjet9GraphEdgeE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !10, i64 36, !11, i64 40}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!13, !7, i64 0}
!13 = !{!"_ZTSN7fastjet6VPointE", !7, i64 0, !7, i64 8}
!14 = !{!6, !7, i64 8}
!15 = !{!13, !7, i64 8}
!16 = !{!6, !7, i64 16}
!17 = !{!6, !7, i64 24}
!18 = !{!7, !7, i64 0}
!19 = !{!20, !7, i64 32}
!20 = !{!"_ZTSN7fastjet26ClusterSequenceVoronoiArea15VoronoiAreaCalcE", !21, i64 0, !7, i64 24, !7, i64 32}
!21 = !{!"_ZTSSt6vectorIdSaIdEE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass