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

; 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::VoronoiDiagramGenerator" = type { ptr, i32, ptr, %"class.fastjet::Freelist", ptr, ptr, i32, i32, i32, i32, i32, double, double, double, double, double, double, ptr, i32, i32, i32, i32, %"class.fastjet::Freelist", ptr, i32, %"class.fastjet::Freelist", i32, ptr, i32, i32, i32, i32, double, double, double, double, double, i32, double, double, double, double, ptr, ptr, ptr, ptr, double }
%"class.fastjet::Freelist" = type { ptr, i32 }
%"class.fastjet::Site" = type { %"class.fastjet::VPoint", i32, i32 }
%"class.fastjet::Halfedge" = type { ptr, ptr, ptr, i32, i8, ptr, double, ptr }

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

; 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) #1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN7fastjet23VoronoiDiagramGenerator7voronoiEi(ptr noundef nonnull align 8 dereferenceable(352) %0, i32 noundef %1) #2 align 2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"class.fastjet::VPoint", align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i8, align 1
  %21 = alloca i32, align 4
  %22 = alloca %"class.fastjet::VPoint", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  %23 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #4
  call void @_ZN7fastjet6VPointC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %24 = call noundef zeroext i1 @_ZN7fastjet23VoronoiDiagramGenerator12PQinitializeEv(ptr noundef nonnull align 8 dereferenceable(352) %23)
  %25 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator7nextoneEv(ptr noundef nonnull align 8 dereferenceable(352) %23)
  %26 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %23, i32 0, i32 23
  store ptr %25, ptr %26, align 8, !tbaa !11
  %27 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %23, i32 0, i32 23
  %28 = load ptr, ptr %27, align 8, !tbaa !11
  call void @_ZN7fastjet23VoronoiDiagramGenerator8out_siteEPNS_4SiteE(ptr noundef nonnull align 8 dereferenceable(352) %23, ptr noundef %28)
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #4
  %29 = call noundef zeroext i1 @_ZN7fastjet23VoronoiDiagramGenerator12ELinitializeEv(ptr noundef nonnull align 8 dereferenceable(352) %23)
  %30 = zext i1 %29 to i8
  store i8 %30, ptr %20, align 1, !tbaa !15
  %31 = load i8, ptr %20, align 1, !tbaa !15, !range !17, !noundef !18
  %32 = trunc i8 %31 to i1
  br i1 %32, label %34, label %33

33:                                               ; preds = %2
  store i1 false, ptr %3, align 1
  store i32 1, ptr %21, align 4
  br label %234

34:                                               ; preds = %2
  %35 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator7nextoneEv(ptr noundef nonnull align 8 dereferenceable(352) %23)
  store ptr %35, ptr %6, align 8, !tbaa !5
  br label %36

36:                                               ; preds = %215, %34
  br label %37

37:                                               ; preds = %36
  %38 = call noundef i32 @_ZN7fastjet23VoronoiDiagramGenerator7PQemptyEv(ptr noundef nonnull align 8 dereferenceable(352) %23)
  %39 = icmp ne i32 %38, 0
  br i1 %39, label %46, label %40

40:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #4
  %41 = call { double, double } @_ZN7fastjet23VoronoiDiagramGenerator6PQ_minEv(ptr noundef nonnull align 8 dereferenceable(352) %23)
  %42 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %43 = extractvalue { double, double } %41, 0
  store double %43, ptr %42, align 8
  %44 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %45 = extractvalue { double, double } %41, 1
  store double %45, ptr %44, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %22, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #4
  br label %46

46:                                               ; preds = %40, %37
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = icmp ne ptr %47, null
  br i1 %48, label %49, label %121

49:                                               ; preds = %46
  %50 = call noundef i32 @_ZN7fastjet23VoronoiDiagramGenerator7PQemptyEv(ptr noundef nonnull align 8 dereferenceable(352) %23)
  %51 = icmp ne i32 %50, 0
  br i1 %51, label %76, label %52

52:                                               ; preds = %49
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = getelementptr inbounds %"class.fastjet::Site", ptr %53, i32 0, i32 0
  %55 = getelementptr inbounds %"class.fastjet::VPoint", ptr %54, i32 0, i32 1
  %56 = load double, ptr %55, align 8, !tbaa !21
  %57 = getelementptr inbounds %"class.fastjet::VPoint", ptr %12, i32 0, i32 1
  %58 = load double, ptr %57, align 8, !tbaa !24
  %59 = fcmp olt double %56, %58
  br i1 %59, label %76, label %60

60:                                               ; preds = %52
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = getelementptr inbounds %"class.fastjet::Site", ptr %61, i32 0, i32 0
  %63 = getelementptr inbounds %"class.fastjet::VPoint", ptr %62, i32 0, i32 1
  %64 = load double, ptr %63, align 8, !tbaa !21
  %65 = getelementptr inbounds %"class.fastjet::VPoint", ptr %12, i32 0, i32 1
  %66 = load double, ptr %65, align 8, !tbaa !24
  %67 = fcmp oeq double %64, %66
  br i1 %67, label %68, label %121

68:                                               ; preds = %60
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = getelementptr inbounds %"class.fastjet::Site", ptr %69, i32 0, i32 0
  %71 = getelementptr inbounds %"class.fastjet::VPoint", ptr %70, i32 0, i32 0
  %72 = load double, ptr %71, align 8, !tbaa !25
  %73 = getelementptr inbounds %"class.fastjet::VPoint", ptr %12, i32 0, i32 0
  %74 = load double, ptr %73, align 8, !tbaa !26
  %75 = fcmp olt double %72, %74
  br i1 %75, label %76, label %121

76:                                               ; preds = %68, %52, %49
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN7fastjet23VoronoiDiagramGenerator8out_siteEPNS_4SiteE(ptr noundef nonnull align 8 dereferenceable(352) %23, ptr noundef %77)
  %78 = load ptr, ptr %6, align 8, !tbaa !5
  %79 = getelementptr inbounds %"class.fastjet::Site", ptr %78, i32 0, i32 0
  %80 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator9ELleftbndEPNS_6VPointE(ptr noundef nonnull align 8 dereferenceable(352) %23, ptr noundef %79)
  store ptr %80, ptr %14, align 8, !tbaa !5
  %81 = load ptr, ptr %14, align 8, !tbaa !5
  %82 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator7ELrightEPNS_8HalfedgeE(ptr noundef nonnull align 8 dereferenceable(352) %23, ptr noundef %81)
  store ptr %82, ptr %15, align 8, !tbaa !5
  %83 = load ptr, ptr %14, align 8, !tbaa !5
  %84 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator8rightregEPNS_8HalfedgeE(ptr noundef nonnull align 8 dereferenceable(352) %23, ptr noundef %83)
  store ptr %84, ptr %7, align 8, !tbaa !5
  %85 = load ptr, ptr %7, align 8, !tbaa !5
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  %87 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator6bisectEPNS_4SiteES2_(ptr noundef nonnull align 8 dereferenceable(352) %23, ptr noundef %85, ptr noundef %86)
  store ptr %87, ptr %19, align 8, !tbaa !5
  %88 = load ptr, ptr %19, align 8, !tbaa !5
  %89 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator8HEcreateEPNS_4EdgeEi(ptr noundef nonnull align 8 dereferenceable(352) %23, ptr noundef %88, i32 noundef 0)
  store ptr %89, ptr %18, align 8, !tbaa !5
  %90 = load ptr, ptr %14, align 8, !tbaa !5
  %91 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN7fastjet23VoronoiDiagramGenerator8ELinsertEPNS_8HalfedgeES2_(ptr noundef nonnull align 8 dereferenceable(352) %23, ptr noundef %90, ptr noundef %91)
  %92 = load ptr, ptr %14, align 8, !tbaa !5
  %93 = load ptr, ptr %18, align 8, !tbaa !5
  %94 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator9intersectEPNS_8HalfedgeES2_PNS_6VPointE(ptr noundef nonnull align 8 dereferenceable(352) %23, ptr noundef %92, ptr noundef %93, ptr noundef null)
  store ptr %94, ptr %10, align 8, !tbaa !5
  %95 = icmp ne ptr %94, null
  br i1 %95, label %96, label %103

96:                                               ; preds = %76
  %97 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN7fastjet23VoronoiDiagramGenerator8PQdeleteEPNS_8HalfedgeE(ptr noundef nonnull align 8 dereferenceable(352) %23, ptr noundef %97)
  %98 = load ptr, ptr %14, align 8, !tbaa !5
  %99 = load ptr, ptr %10, align 8, !tbaa !5
  %100 = load ptr, ptr %10, align 8, !tbaa !5
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = call noundef double @_ZN7fastjet23VoronoiDiagramGenerator4distEPNS_4SiteES2_(ptr noundef nonnull align 8 dereferenceable(352) %23, ptr noundef %100, ptr noundef %101)
  call void @_ZN7fastjet23VoronoiDiagramGenerator8PQinsertEPNS_8HalfedgeEPNS_4SiteEd(ptr noundef nonnull align 8 dereferenceable(352) %23, ptr noundef %98, ptr noundef %99, double noundef %102)
  br label %103

103:                                              ; preds = %96, %76
  %104 = load ptr, ptr %18, align 8, !tbaa !5
  store ptr %104, ptr %14, align 8, !tbaa !5
  %105 = load ptr, ptr %19, align 8, !tbaa !5
  %106 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator8HEcreateEPNS_4EdgeEi(ptr noundef nonnull align 8 dereferenceable(352) %23, ptr noundef %105, i32 noundef 1)
  store ptr %106, ptr %18, align 8, !tbaa !5
  %107 = load ptr, ptr %14, align 8, !tbaa !5
  %108 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN7fastjet23VoronoiDiagramGenerator8ELinsertEPNS_8HalfedgeES2_(ptr noundef nonnull align 8 dereferenceable(352) %23, ptr noundef %107, ptr noundef %108)
  %109 = load ptr, ptr %18, align 8, !tbaa !5
  %110 = load ptr, ptr %15, align 8, !tbaa !5
  %111 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator9intersectEPNS_8HalfedgeES2_PNS_6VPointE(ptr noundef nonnull align 8 dereferenceable(352) %23, ptr noundef %109, ptr noundef %110, ptr noundef null)
  store ptr %111, ptr %10, align 8, !tbaa !5
  %112 = icmp ne ptr %111, null
  br i1 %112, label %113, label %119

113:                                              ; preds = %103
  %114 = load ptr, ptr %18, align 8, !tbaa !5
  %115 = load ptr, ptr %10, align 8, !tbaa !5
  %116 = load ptr, ptr %10, align 8, !tbaa !5
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  %118 = call noundef double @_ZN7fastjet23VoronoiDiagramGenerator4distEPNS_4SiteES2_(ptr noundef nonnull align 8 dereferenceable(352) %23, ptr noundef %116, ptr noundef %117)
  call void @_ZN7fastjet23VoronoiDiagramGenerator8PQinsertEPNS_8HalfedgeEPNS_4SiteEd(ptr noundef nonnull align 8 dereferenceable(352) %23, ptr noundef %114, ptr noundef %115, double noundef %118)
  br label %119

119:                                              ; preds = %113, %103
  %120 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator7nextoneEv(ptr noundef nonnull align 8 dereferenceable(352) %23)
  store ptr %120, ptr %6, align 8, !tbaa !5
  br label %215

121:                                              ; preds = %68, %60, %46
  %122 = call noundef i32 @_ZN7fastjet23VoronoiDiagramGenerator7PQemptyEv(ptr noundef nonnull align 8 dereferenceable(352) %23)
  %123 = icmp ne i32 %122, 0
  br i1 %123, label %213, label %124

124:                                              ; preds = %121
  %125 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator12PQextractminEv(ptr noundef nonnull align 8 dereferenceable(352) %23)
  store ptr %125, ptr %14, align 8, !tbaa !5
  %126 = load ptr, ptr %14, align 8, !tbaa !5
  %127 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator6ELleftEPNS_8HalfedgeE(ptr noundef nonnull align 8 dereferenceable(352) %23, ptr noundef %126)
  store ptr %127, ptr %16, align 8, !tbaa !5
  %128 = load ptr, ptr %14, align 8, !tbaa !5
  %129 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator7ELrightEPNS_8HalfedgeE(ptr noundef nonnull align 8 dereferenceable(352) %23, ptr noundef %128)
  store ptr %129, ptr %15, align 8, !tbaa !5
  %130 = load ptr, ptr %15, align 8, !tbaa !5
  %131 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator7ELrightEPNS_8HalfedgeE(ptr noundef nonnull align 8 dereferenceable(352) %23, ptr noundef %130)
  store ptr %131, ptr %17, align 8, !tbaa !5
  %132 = load ptr, ptr %14, align 8, !tbaa !5
  %133 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator7leftregEPNS_8HalfedgeE(ptr noundef nonnull align 8 dereferenceable(352) %23, ptr noundef %132)
  store ptr %133, ptr %7, align 8, !tbaa !5
  %134 = load ptr, ptr %15, align 8, !tbaa !5
  %135 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator8rightregEPNS_8HalfedgeE(ptr noundef nonnull align 8 dereferenceable(352) %23, ptr noundef %134)
  store ptr %135, ptr %8, align 8, !tbaa !5
  %136 = load ptr, ptr %7, align 8, !tbaa !5
  %137 = load ptr, ptr %8, align 8, !tbaa !5
  %138 = load ptr, ptr %14, align 8, !tbaa !5
  %139 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator8rightregEPNS_8HalfedgeE(ptr noundef nonnull align 8 dereferenceable(352) %23, ptr noundef %138)
  call void @_ZN7fastjet23VoronoiDiagramGenerator10out_tripleEPNS_4SiteES2_S2_(ptr noundef nonnull align 8 dereferenceable(352) %23, ptr noundef %136, ptr noundef %137, ptr noundef %139)
  %140 = load ptr, ptr %14, align 8, !tbaa !5
  %141 = getelementptr inbounds %"class.fastjet::Halfedge", ptr %140, i32 0, i32 5
  %142 = load ptr, ptr %141, align 8, !tbaa !27
  store ptr %142, ptr %11, align 8, !tbaa !5
  %143 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN7fastjet23VoronoiDiagramGenerator10makevertexEPNS_4SiteE(ptr noundef nonnull align 8 dereferenceable(352) %23, ptr noundef %143)
  %144 = load ptr, ptr %14, align 8, !tbaa !5
  %145 = getelementptr inbounds %"class.fastjet::Halfedge", ptr %144, i32 0, i32 2
  %146 = load ptr, ptr %145, align 8, !tbaa !29
  %147 = load ptr, ptr %14, align 8, !tbaa !5
  %148 = getelementptr inbounds %"class.fastjet::Halfedge", ptr %147, i32 0, i32 4
  %149 = load i8, ptr %148, align 4, !tbaa !30
  %150 = sext i8 %149 to i32
  %151 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN7fastjet23VoronoiDiagramGenerator8endpointEPNS_4EdgeEiPNS_4SiteE(ptr noundef nonnull align 8 dereferenceable(352) %23, ptr noundef %146, i32 noundef %150, ptr noundef %151)
  %152 = load ptr, ptr %15, align 8, !tbaa !5
  %153 = getelementptr inbounds %"class.fastjet::Halfedge", ptr %152, i32 0, i32 2
  %154 = load ptr, ptr %153, align 8, !tbaa !29
  %155 = load ptr, ptr %15, align 8, !tbaa !5
  %156 = getelementptr inbounds %"class.fastjet::Halfedge", ptr %155, i32 0, i32 4
  %157 = load i8, ptr %156, align 4, !tbaa !30
  %158 = sext i8 %157 to i32
  %159 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN7fastjet23VoronoiDiagramGenerator8endpointEPNS_4EdgeEiPNS_4SiteE(ptr noundef nonnull align 8 dereferenceable(352) %23, ptr noundef %154, i32 noundef %158, ptr noundef %159)
  %160 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN7fastjet23VoronoiDiagramGenerator8ELdeleteEPNS_8HalfedgeE(ptr noundef nonnull align 8 dereferenceable(352) %23, ptr noundef %160)
  %161 = load ptr, ptr %15, align 8, !tbaa !5
  call void @_ZN7fastjet23VoronoiDiagramGenerator8PQdeleteEPNS_8HalfedgeE(ptr noundef nonnull align 8 dereferenceable(352) %23, ptr noundef %161)
  %162 = load ptr, ptr %15, align 8, !tbaa !5
  call void @_ZN7fastjet23VoronoiDiagramGenerator8ELdeleteEPNS_8HalfedgeE(ptr noundef nonnull align 8 dereferenceable(352) %23, ptr noundef %162)
  store i32 0, ptr %13, align 4, !tbaa !9
  %163 = load ptr, ptr %7, align 8, !tbaa !5
  %164 = getelementptr inbounds %"class.fastjet::Site", ptr %163, i32 0, i32 0
  %165 = getelementptr inbounds %"class.fastjet::VPoint", ptr %164, i32 0, i32 1
  %166 = load double, ptr %165, align 8, !tbaa !21
  %167 = load ptr, ptr %8, align 8, !tbaa !5
  %168 = getelementptr inbounds %"class.fastjet::Site", ptr %167, i32 0, i32 0
  %169 = getelementptr inbounds %"class.fastjet::VPoint", ptr %168, i32 0, i32 1
  %170 = load double, ptr %169, align 8, !tbaa !21
  %171 = fcmp ogt double %166, %170
  br i1 %171, label %172, label %176

172:                                              ; preds = %124
  %173 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %173, ptr %9, align 8, !tbaa !5
  %174 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %174, ptr %7, align 8, !tbaa !5
  %175 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %175, ptr %8, align 8, !tbaa !5
  store i32 1, ptr %13, align 4, !tbaa !9
  br label %176

176:                                              ; preds = %172, %124
  %177 = load ptr, ptr %7, align 8, !tbaa !5
  %178 = load ptr, ptr %8, align 8, !tbaa !5
  %179 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator6bisectEPNS_4SiteES2_(ptr noundef nonnull align 8 dereferenceable(352) %23, ptr noundef %177, ptr noundef %178)
  store ptr %179, ptr %19, align 8, !tbaa !5
  %180 = load ptr, ptr %19, align 8, !tbaa !5
  %181 = load i32, ptr %13, align 4, !tbaa !9
  %182 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator8HEcreateEPNS_4EdgeEi(ptr noundef nonnull align 8 dereferenceable(352) %23, ptr noundef %180, i32 noundef %181)
  store ptr %182, ptr %18, align 8, !tbaa !5
  %183 = load ptr, ptr %16, align 8, !tbaa !5
  %184 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN7fastjet23VoronoiDiagramGenerator8ELinsertEPNS_8HalfedgeES2_(ptr noundef nonnull align 8 dereferenceable(352) %23, ptr noundef %183, ptr noundef %184)
  %185 = load ptr, ptr %19, align 8, !tbaa !5
  %186 = load i32, ptr %13, align 4, !tbaa !9
  %187 = sub nsw i32 1, %186
  %188 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN7fastjet23VoronoiDiagramGenerator8endpointEPNS_4EdgeEiPNS_4SiteE(ptr noundef nonnull align 8 dereferenceable(352) %23, ptr noundef %185, i32 noundef %187, ptr noundef %188)
  %189 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN7fastjet23VoronoiDiagramGenerator5derefEPNS_4SiteE(ptr noundef nonnull align 8 dereferenceable(352) %23, ptr noundef %189)
  %190 = load ptr, ptr %16, align 8, !tbaa !5
  %191 = load ptr, ptr %18, align 8, !tbaa !5
  %192 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator9intersectEPNS_8HalfedgeES2_PNS_6VPointE(ptr noundef nonnull align 8 dereferenceable(352) %23, ptr noundef %190, ptr noundef %191, ptr noundef null)
  store ptr %192, ptr %10, align 8, !tbaa !5
  %193 = icmp ne ptr %192, null
  br i1 %193, label %194, label %201

194:                                              ; preds = %176
  %195 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN7fastjet23VoronoiDiagramGenerator8PQdeleteEPNS_8HalfedgeE(ptr noundef nonnull align 8 dereferenceable(352) %23, ptr noundef %195)
  %196 = load ptr, ptr %16, align 8, !tbaa !5
  %197 = load ptr, ptr %10, align 8, !tbaa !5
  %198 = load ptr, ptr %10, align 8, !tbaa !5
  %199 = load ptr, ptr %7, align 8, !tbaa !5
  %200 = call noundef double @_ZN7fastjet23VoronoiDiagramGenerator4distEPNS_4SiteES2_(ptr noundef nonnull align 8 dereferenceable(352) %23, ptr noundef %198, ptr noundef %199)
  call void @_ZN7fastjet23VoronoiDiagramGenerator8PQinsertEPNS_8HalfedgeEPNS_4SiteEd(ptr noundef nonnull align 8 dereferenceable(352) %23, ptr noundef %196, ptr noundef %197, double noundef %200)
  br label %201

201:                                              ; preds = %194, %176
  %202 = load ptr, ptr %18, align 8, !tbaa !5
  %203 = load ptr, ptr %17, align 8, !tbaa !5
  %204 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator9intersectEPNS_8HalfedgeES2_PNS_6VPointE(ptr noundef nonnull align 8 dereferenceable(352) %23, ptr noundef %202, ptr noundef %203, ptr noundef null)
  store ptr %204, ptr %10, align 8, !tbaa !5
  %205 = icmp ne ptr %204, null
  br i1 %205, label %206, label %212

206:                                              ; preds = %201
  %207 = load ptr, ptr %18, align 8, !tbaa !5
  %208 = load ptr, ptr %10, align 8, !tbaa !5
  %209 = load ptr, ptr %10, align 8, !tbaa !5
  %210 = load ptr, ptr %7, align 8, !tbaa !5
  %211 = call noundef double @_ZN7fastjet23VoronoiDiagramGenerator4distEPNS_4SiteES2_(ptr noundef nonnull align 8 dereferenceable(352) %23, ptr noundef %209, ptr noundef %210)
  call void @_ZN7fastjet23VoronoiDiagramGenerator8PQinsertEPNS_8HalfedgeEPNS_4SiteEd(ptr noundef nonnull align 8 dereferenceable(352) %23, ptr noundef %207, ptr noundef %208, double noundef %211)
  br label %212

212:                                              ; preds = %206, %201
  br label %214

213:                                              ; preds = %121
  br label %216

214:                                              ; preds = %212
  br label %215

215:                                              ; preds = %214, %119
  br label %36, !llvm.loop !31

216:                                              ; preds = %213
  %217 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %23, i32 0, i32 4
  %218 = load ptr, ptr %217, align 8, !tbaa !33
  %219 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator7ELrightEPNS_8HalfedgeE(ptr noundef nonnull align 8 dereferenceable(352) %23, ptr noundef %218)
  store ptr %219, ptr %14, align 8, !tbaa !5
  br label %220

220:                                              ; preds = %230, %216
  %221 = load ptr, ptr %14, align 8, !tbaa !5
  %222 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %23, i32 0, i32 5
  %223 = load ptr, ptr %222, align 8, !tbaa !34
  %224 = icmp ne ptr %221, %223
  br i1 %224, label %225, label %233

225:                                              ; preds = %220
  %226 = load ptr, ptr %14, align 8, !tbaa !5
  %227 = getelementptr inbounds %"class.fastjet::Halfedge", ptr %226, i32 0, i32 2
  %228 = load ptr, ptr %227, align 8, !tbaa !29
  store ptr %228, ptr %19, align 8, !tbaa !5
  %229 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN7fastjet23VoronoiDiagramGenerator9clip_lineEPNS_4EdgeE(ptr noundef nonnull align 8 dereferenceable(352) %23, ptr noundef %229)
  br label %230

230:                                              ; preds = %225
  %231 = load ptr, ptr %14, align 8, !tbaa !5
  %232 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator7ELrightEPNS_8HalfedgeE(ptr noundef nonnull align 8 dereferenceable(352) %23, ptr noundef %231)
  store ptr %232, ptr %14, align 8, !tbaa !5
  br label %220, !llvm.loop !35

233:                                              ; preds = %220
  store i1 true, ptr %3, align 1
  store i32 1, ptr %21, align 4
  br label %234

234:                                              ; preds = %233, %33
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  %235 = load i1, ptr %3, align 1
  ret i1 %235
}

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7fastjet23VoronoiDiagramGenerator8endpointEPNS_4EdgeEiPNS_4SiteE(ptr noundef nonnull align 8 dereferenceable(352), ptr noundef, i32 noundef, ptr noundef) #2 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7fastjet23VoronoiDiagramGenerator8PQinsertEPNS_8HalfedgeEPNS_4SiteEd(ptr noundef nonnull align 8 dereferenceable(352), ptr noundef, ptr noundef, double noundef) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZN7fastjet23VoronoiDiagramGenerator6PQ_minEv(ptr noundef nonnull align 8 dereferenceable(352)) #2 align 2

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

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

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

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

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

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

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

!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 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 168}
!12 = !{!"_ZTSN7fastjet23VoronoiDiagramGeneratorE", !6, i64 0, !10, i64 8, !6, i64 16, !13, i64 24, !6, i64 40, !6, i64 48, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !14, i64 80, !14, i64 88, !14, i64 96, !14, i64 104, !14, i64 112, !14, i64 120, !6, i64 128, !10, i64 136, !10, i64 140, !10, i64 144, !10, i64 148, !13, i64 152, !6, i64 168, !10, i64 176, !13, i64 184, !10, i64 200, !6, i64 208, !10, i64 216, !10, i64 220, !10, i64 224, !10, i64 228, !14, i64 232, !14, i64 240, !14, i64 248, !14, i64 256, !14, i64 264, !10, i64 272, !14, i64 280, !14, i64 288, !14, i64 296, !14, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !6, i64 336, !14, i64 344}
!13 = !{!"_ZTSN7fastjet8FreelistE", !6, i64 0, !10, i64 8}
!14 = !{!"double", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{i64 0, i64 8, !20, i64 8, i64 8, !20}
!20 = !{!14, !14, i64 0}
!21 = !{!22, !14, i64 8}
!22 = !{!"_ZTSN7fastjet4SiteE", !23, i64 0, !10, i64 16, !10, i64 20}
!23 = !{!"_ZTSN7fastjet6VPointE", !14, i64 0, !14, i64 8}
!24 = !{!23, !14, i64 8}
!25 = !{!22, !14, i64 0}
!26 = !{!23, !14, i64 0}
!27 = !{!28, !6, i64 32}
!28 = !{!"_ZTSN7fastjet8HalfedgeE", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !7, i64 28, !6, i64 32, !14, i64 40, !6, i64 48}
!29 = !{!28, !6, i64 16}
!30 = !{!28, !7, i64 28}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = !{!12, !6, i64 40}
!34 = !{!12, !6, i64 48}
!35 = distinct !{!35, !32}


; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; 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 uwtable
define dso_local noundef zeroext i1 @_ZN7fastjet23VoronoiDiagramGenerator7voronoiEi(ptr noundef nonnull align 8 dereferenceable(352) %0, i32 noundef %1) local_unnamed_addr #1 align 2 {
  %3 = alloca %"class.fastjet::VPoint", align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #3
  call void @_ZN7fastjet6VPointC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %4 = call noundef zeroext i1 @_ZN7fastjet23VoronoiDiagramGenerator12PQinitializeEv(ptr noundef nonnull align 8 dereferenceable(352) %0)
  %5 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator7nextoneEv(ptr noundef nonnull align 8 dereferenceable(352) %0)
  %6 = getelementptr inbounds i8, ptr %0, i64 168
  store ptr %5, ptr %6, align 8, !tbaa !5
  call void @_ZN7fastjet23VoronoiDiagramGenerator8out_siteEPNS_4SiteE(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef %5)
  %7 = call noundef zeroext i1 @_ZN7fastjet23VoronoiDiagramGenerator12ELinitializeEv(ptr noundef nonnull align 8 dereferenceable(352) %0)
  br i1 %7, label %8, label %.loopexit

8:                                                ; preds = %2
  %9 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator7nextoneEv(ptr noundef nonnull align 8 dereferenceable(352) %0)
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %3, i64 8
  br label %.outer

.outer:                                           ; preds = %44, %8
  %.083.ph = phi ptr [ %45, %44 ], [ %9, %8 ]
  %.not94 = icmp eq ptr %.083.ph, null
  %10 = getelementptr inbounds i8, ptr %.083.ph, i64 8
  br label %11

11:                                               ; preds = %.backedge, %.outer
  %12 = call noundef i32 @_ZN7fastjet23VoronoiDiagramGenerator7PQemptyEv(ptr noundef nonnull align 8 dereferenceable(352) %0)
  %.not = icmp eq i32 %12, 0
  br i1 %.not, label %13, label %17

13:                                               ; preds = %11
  %14 = call { double, double } @_ZN7fastjet23VoronoiDiagramGenerator6PQ_minEv(ptr noundef nonnull align 8 dereferenceable(352) %0)
  %15 = extractvalue { double, double } %14, 0
  %16 = extractvalue { double, double } %14, 1
  store double %15, ptr %3, align 8, !tbaa !13
  store double %16, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !13
  br label %17

17:                                               ; preds = %13, %11
  br i1 %.not94, label %46, label %18

18:                                               ; preds = %17
  %19 = call noundef i32 @_ZN7fastjet23VoronoiDiagramGenerator7PQemptyEv(ptr noundef nonnull align 8 dereferenceable(352) %0)
  %.not95 = icmp eq i32 %19, 0
  br i1 %.not95, label %20, label %30

20:                                               ; preds = %18
  %21 = load double, ptr %10, align 8, !tbaa !14
  %22 = load double, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !17
  %23 = fcmp olt double %21, %22
  br i1 %23, label %30, label %24

24:                                               ; preds = %20
  %25 = fcmp oeq double %21, %22
  br i1 %25, label %26, label %46

26:                                               ; preds = %24
  %27 = load double, ptr %.083.ph, align 8, !tbaa !18
  %28 = load double, ptr %3, align 8, !tbaa !19
  %29 = fcmp olt double %27, %28
  br i1 %29, label %30, label %46

30:                                               ; preds = %26, %20, %18
  call void @_ZN7fastjet23VoronoiDiagramGenerator8out_siteEPNS_4SiteE(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef nonnull %.083.ph)
  %31 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator9ELleftbndEPNS_6VPointE(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef nonnull %.083.ph)
  %32 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator7ELrightEPNS_8HalfedgeE(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef %31)
  %33 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator8rightregEPNS_8HalfedgeE(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef %31)
  %34 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator6bisectEPNS_4SiteES2_(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef %33, ptr noundef nonnull %.083.ph)
  %35 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator8HEcreateEPNS_4EdgeEi(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef %34, i32 noundef 0)
  call void @_ZN7fastjet23VoronoiDiagramGenerator8ELinsertEPNS_8HalfedgeES2_(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef %31, ptr noundef %35)
  %36 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator9intersectEPNS_8HalfedgeES2_PNS_6VPointE(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef %31, ptr noundef %35, ptr noundef null)
  %.not100 = icmp eq ptr %36, null
  br i1 %.not100, label %39, label %37

37:                                               ; preds = %30
  call void @_ZN7fastjet23VoronoiDiagramGenerator8PQdeleteEPNS_8HalfedgeE(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef %31)
  %38 = call noundef double @_ZN7fastjet23VoronoiDiagramGenerator4distEPNS_4SiteES2_(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef nonnull %36, ptr noundef nonnull %.083.ph)
  call void @_ZN7fastjet23VoronoiDiagramGenerator8PQinsertEPNS_8HalfedgeEPNS_4SiteEd(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef %31, ptr noundef nonnull %36, double noundef %38)
  br label %39

39:                                               ; preds = %37, %30
  %40 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator8HEcreateEPNS_4EdgeEi(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef %34, i32 noundef 1)
  call void @_ZN7fastjet23VoronoiDiagramGenerator8ELinsertEPNS_8HalfedgeES2_(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef %35, ptr noundef %40)
  %41 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator9intersectEPNS_8HalfedgeES2_PNS_6VPointE(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef %40, ptr noundef %32, ptr noundef null)
  %.not101 = icmp eq ptr %41, null
  br i1 %.not101, label %44, label %42

42:                                               ; preds = %39
  %43 = call noundef double @_ZN7fastjet23VoronoiDiagramGenerator4distEPNS_4SiteES2_(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef nonnull %41, ptr noundef nonnull %.083.ph)
  call void @_ZN7fastjet23VoronoiDiagramGenerator8PQinsertEPNS_8HalfedgeEPNS_4SiteEd(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef %40, ptr noundef nonnull %41, double noundef %43)
  br label %44

44:                                               ; preds = %42, %39
  %45 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator7nextoneEv(ptr noundef nonnull align 8 dereferenceable(352) %0)
  br label %.outer, !llvm.loop !20

46:                                               ; preds = %26, %24, %17
  %47 = call noundef i32 @_ZN7fastjet23VoronoiDiagramGenerator7PQemptyEv(ptr noundef nonnull align 8 dereferenceable(352) %0)
  %.not96 = icmp eq i32 %47, 0
  br i1 %.not96, label %48, label %83

48:                                               ; preds = %46
  %49 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator12PQextractminEv(ptr noundef nonnull align 8 dereferenceable(352) %0)
  %50 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator6ELleftEPNS_8HalfedgeE(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef %49)
  %51 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator7ELrightEPNS_8HalfedgeE(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef %49)
  %52 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator7ELrightEPNS_8HalfedgeE(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef %51)
  %53 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator7leftregEPNS_8HalfedgeE(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef %49)
  %54 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator8rightregEPNS_8HalfedgeE(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef %51)
  %55 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator8rightregEPNS_8HalfedgeE(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef %49)
  call void @_ZN7fastjet23VoronoiDiagramGenerator10out_tripleEPNS_4SiteES2_S2_(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef %53, ptr noundef %54, ptr noundef %55)
  %56 = getelementptr inbounds i8, ptr %49, i64 32
  %57 = load ptr, ptr %56, align 8, !tbaa !22
  call void @_ZN7fastjet23VoronoiDiagramGenerator10makevertexEPNS_4SiteE(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef %57)
  %58 = getelementptr inbounds i8, ptr %49, i64 16
  %59 = load ptr, ptr %58, align 8, !tbaa !24
  %60 = getelementptr inbounds i8, ptr %49, i64 28
  %61 = load i8, ptr %60, align 4, !tbaa !25
  %62 = sext i8 %61 to i32
  call void @_ZN7fastjet23VoronoiDiagramGenerator8endpointEPNS_4EdgeEiPNS_4SiteE(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef %59, i32 noundef %62, ptr noundef %57)
  %63 = getelementptr inbounds i8, ptr %51, i64 16
  %64 = load ptr, ptr %63, align 8, !tbaa !24
  %65 = getelementptr inbounds i8, ptr %51, i64 28
  %66 = load i8, ptr %65, align 4, !tbaa !25
  %67 = sext i8 %66 to i32
  call void @_ZN7fastjet23VoronoiDiagramGenerator8endpointEPNS_4EdgeEiPNS_4SiteE(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef %64, i32 noundef %67, ptr noundef %57)
  call void @_ZN7fastjet23VoronoiDiagramGenerator8ELdeleteEPNS_8HalfedgeE(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef %49)
  call void @_ZN7fastjet23VoronoiDiagramGenerator8PQdeleteEPNS_8HalfedgeE(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef %51)
  call void @_ZN7fastjet23VoronoiDiagramGenerator8ELdeleteEPNS_8HalfedgeE(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef %51)
  %68 = getelementptr inbounds i8, ptr %53, i64 8
  %69 = load double, ptr %68, align 8, !tbaa !14
  %70 = getelementptr inbounds i8, ptr %54, i64 8
  %71 = load double, ptr %70, align 8, !tbaa !14
  %72 = fcmp ogt double %69, %71
  %.087 = zext i1 %72 to i32
  %.085 = select i1 %72, ptr %53, ptr %54
  %.084 = select i1 %72, ptr %54, ptr %53
  %73 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator6bisectEPNS_4SiteES2_(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef %.084, ptr noundef %.085)
  %74 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator8HEcreateEPNS_4EdgeEi(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef %73, i32 noundef %.087)
  call void @_ZN7fastjet23VoronoiDiagramGenerator8ELinsertEPNS_8HalfedgeES2_(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef %50, ptr noundef %74)
  %75 = xor i32 %.087, 1
  call void @_ZN7fastjet23VoronoiDiagramGenerator8endpointEPNS_4EdgeEiPNS_4SiteE(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef %73, i32 noundef %75, ptr noundef %57)
  call void @_ZN7fastjet23VoronoiDiagramGenerator5derefEPNS_4SiteE(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef %57)
  %76 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator9intersectEPNS_8HalfedgeES2_PNS_6VPointE(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef %50, ptr noundef %74, ptr noundef null)
  %.not97 = icmp eq ptr %76, null
  br i1 %.not97, label %79, label %77

77:                                               ; preds = %48
  call void @_ZN7fastjet23VoronoiDiagramGenerator8PQdeleteEPNS_8HalfedgeE(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef %50)
  %78 = call noundef double @_ZN7fastjet23VoronoiDiagramGenerator4distEPNS_4SiteES2_(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef nonnull %76, ptr noundef %.084)
  call void @_ZN7fastjet23VoronoiDiagramGenerator8PQinsertEPNS_8HalfedgeEPNS_4SiteEd(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef %50, ptr noundef nonnull %76, double noundef %78)
  br label %79

79:                                               ; preds = %77, %48
  %80 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator9intersectEPNS_8HalfedgeES2_PNS_6VPointE(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef %74, ptr noundef %52, ptr noundef null)
  %.not98 = icmp eq ptr %80, null
  br i1 %.not98, label %.backedge, label %81

81:                                               ; preds = %79
  %82 = call noundef double @_ZN7fastjet23VoronoiDiagramGenerator4distEPNS_4SiteES2_(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef nonnull %80, ptr noundef %.084)
  call void @_ZN7fastjet23VoronoiDiagramGenerator8PQinsertEPNS_8HalfedgeEPNS_4SiteEd(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef %74, ptr noundef nonnull %80, double noundef %82)
  br label %.backedge

.backedge:                                        ; preds = %81, %79
  br label %11, !llvm.loop !20

83:                                               ; preds = %46
  %84 = getelementptr inbounds i8, ptr %0, i64 40
  %85 = load ptr, ptr %84, align 8, !tbaa !26
  %86 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator7ELrightEPNS_8HalfedgeE(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef %85)
  %87 = getelementptr inbounds i8, ptr %0, i64 48
  %88 = load ptr, ptr %87, align 8, !tbaa !27
  %.not99102 = icmp eq ptr %86, %88
  br i1 %.not99102, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %83, %.lr.ph
  %.086103 = phi ptr [ %91, %.lr.ph ], [ %86, %83 ]
  %89 = getelementptr inbounds i8, ptr %.086103, i64 16
  %90 = load ptr, ptr %89, align 8, !tbaa !24
  call void @_ZN7fastjet23VoronoiDiagramGenerator9clip_lineEPNS_4EdgeE(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef %90)
  %91 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator7ELrightEPNS_8HalfedgeE(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef %.086103)
  %92 = load ptr, ptr %87, align 8, !tbaa !27
  %.not99 = icmp eq ptr %91, %92
  br i1 %.not99, label %.loopexit, label %.lr.ph, !llvm.loop !28

.loopexit:                                        ; preds = %.lr.ph, %83, %2
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #3
  ret i1 %7
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7fastjet23VoronoiDiagramGenerator12ELinitializeEv(ptr noundef nonnull align 8 dereferenceable(352)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator8HEcreateEPNS_4EdgeEi(ptr noundef nonnull align 8 dereferenceable(352), ptr noundef, i32 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator9ELleftbndEPNS_6VPointE(ptr noundef nonnull align 8 dereferenceable(352), ptr noundef) local_unnamed_addr #1 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator6bisectEPNS_4SiteES2_(ptr noundef nonnull align 8 dereferenceable(352), ptr noundef, ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator9intersectEPNS_8HalfedgeES2_PNS_6VPointE(ptr noundef nonnull align 8 dereferenceable(352), ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7fastjet23VoronoiDiagramGenerator9clip_lineEPNS_4EdgeE(ptr noundef nonnull align 8 dereferenceable(352), ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7fastjet23VoronoiDiagramGenerator5derefEPNS_4SiteE(ptr noundef nonnull align 8 dereferenceable(352), ptr noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7fastjet23VoronoiDiagramGenerator10makevertexEPNS_4SiteE(ptr noundef nonnull align 8 dereferenceable(352), ptr noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7fastjet23VoronoiDiagramGenerator8PQdeleteEPNS_8HalfedgeE(ptr noundef nonnull align 8 dereferenceable(352), ptr noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZN7fastjet23VoronoiDiagramGenerator6PQ_minEv(ptr noundef nonnull align 8 dereferenceable(352)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7fastjet23VoronoiDiagramGenerator12PQinitializeEv(ptr noundef nonnull align 8 dereferenceable(352)) local_unnamed_addr #1 align 2

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 168}
!6 = !{!"_ZTSN7fastjet23VoronoiDiagramGeneratorE", !7, i64 0, !10, i64 8, !7, i64 16, !11, i64 24, !7, i64 40, !7, i64 48, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !12, i64 120, !7, i64 128, !10, i64 136, !10, i64 140, !10, i64 144, !10, i64 148, !11, i64 152, !7, i64 168, !10, i64 176, !11, i64 184, !10, i64 200, !7, i64 208, !10, i64 216, !10, i64 220, !10, i64 224, !10, i64 228, !12, i64 232, !12, i64 240, !12, i64 248, !12, i64 256, !12, i64 264, !10, i64 272, !12, i64 280, !12, i64 288, !12, i64 296, !12, i64 304, !7, i64 312, !7, i64 320, !7, i64 328, !7, i64 336, !12, i64 344}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"_ZTSN7fastjet8FreelistE", !7, i64 0, !10, i64 8}
!12 = !{!"double", !8, i64 0}
!13 = !{!12, !12, i64 0}
!14 = !{!15, !12, i64 8}
!15 = !{!"_ZTSN7fastjet4SiteE", !16, i64 0, !10, i64 16, !10, i64 20}
!16 = !{!"_ZTSN7fastjet6VPointE", !12, i64 0, !12, i64 8}
!17 = !{!16, !12, i64 8}
!18 = !{!15, !12, i64 0}
!19 = !{!16, !12, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!23, !7, i64 32}
!23 = !{!"_ZTSN7fastjet8HalfedgeE", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !8, i64 28, !7, i64 32, !12, i64 40, !7, i64 48}
!24 = !{!23, !7, i64 16}
!25 = !{!23, !8, i64 28}
!26 = !{!6, !7, i64 40}
!27 = !{!6, !7, i64 48}
!28 = distinct !{!28, !21}


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