; 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::LimitedWarning" = type { i32, i32, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.0" = type { i8 }
%"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::VPoint" = type { double, double }
%"class.fastjet::Site" = type { %"class.fastjet::VPoint", i32, i32 }

@_ZN7fastjet23VoronoiDiagramGenerator19_warning_degeneracyE = external dso_local global %"class.fastjet::LimitedWarning", align 8
@.str = external hidden unnamed_addr constant [161 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN7fastjet23VoronoiDiagramGenerator15generateVoronoiEPSt6vectorINS_6VPointESaIS2_EEddddd(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef %1, double noundef %2, double noundef %3, double noundef %4, double noundef %5, double noundef %6) #0 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca i1, align 1
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca i32, align 4
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca %"class.std::__cxx11::basic_string", align 8
  %23 = alloca %"class.std::allocator.0", align 1
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca double, align 8
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store double %2, ptr %11, align 8, !tbaa !9
  store double %3, ptr %12, align 8, !tbaa !9
  store double %4, ptr %13, align 8, !tbaa !9
  store double %5, ptr %14, align 8, !tbaa !9
  store double %6, ptr %15, align 8, !tbaa !9
  %27 = load ptr, ptr %9, align 8
  call void @_ZN7fastjet23VoronoiDiagramGenerator7cleanupEv(ptr noundef nonnull align 8 dereferenceable(352) %27)
  call void @_ZN7fastjet23VoronoiDiagramGenerator12cleanupEdgesEv(ptr noundef nonnull align 8 dereferenceable(352) %27)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %28 = load double, ptr %15, align 8, !tbaa !9
  %29 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 46
  store double %28, ptr %29, align 8, !tbaa !11
  %30 = load ptr, ptr %10, align 8, !tbaa !5
  %31 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 0
  store ptr %30, ptr %31, align 8, !tbaa !15
  %32 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 0
  %33 = load ptr, ptr %32, align 8, !tbaa !15
  %34 = call noundef i64 @_ZNKSt6vectorIN7fastjet6VPointESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %33) #5
  %35 = trunc i64 %34 to i32
  %36 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 1
  store i32 %35, ptr %36, align 8, !tbaa !16
  %37 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 18
  store i32 %35, ptr %37, align 8, !tbaa !17
  %38 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 9
  store i32 0, ptr %38, align 4, !tbaa !18
  %39 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 7
  store i32 0, ptr %39, align 4, !tbaa !19
  %40 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 10
  store i32 1, ptr %40, align 8, !tbaa !20
  %41 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 8
  store i32 0, ptr %41, align 8, !tbaa !21
  %42 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 22
  call void @_ZN7fastjet23VoronoiDiagramGenerator8freeinitEPNS_8FreelistEi(ptr noundef nonnull align 8 dereferenceable(352) %27, ptr noundef %42, i32 noundef 24)
  %43 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 18
  %44 = load i32, ptr %43, align 8, !tbaa !17
  %45 = sext i32 %44 to i64
  %46 = mul i64 %45, 24
  %47 = trunc i64 %46 to i32
  %48 = call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator7myallocEj(ptr noundef nonnull align 8 dereferenceable(352) %27, i32 noundef %47)
  %49 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 17
  store ptr %48, ptr %49, align 8, !tbaa !22
  %50 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 17
  %51 = load ptr, ptr %50, align 8, !tbaa !22
  %52 = icmp eq ptr %51, null
  br i1 %52, label %53, label %54

53:                                               ; preds = %7
  store i1 false, ptr %8, align 1
  store i32 1, ptr %19, align 4
  br label %278

54:                                               ; preds = %7
  %55 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 0
  %56 = load ptr, ptr %55, align 8, !tbaa !15
  %57 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7fastjet6VPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %56, i64 noundef 0) #5
  %58 = getelementptr inbounds %"class.fastjet::VPoint", ptr %57, i32 0, i32 0
  %59 = load double, ptr %58, align 8, !tbaa !23
  %60 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 11
  store double %59, ptr %60, align 8, !tbaa !25
  %61 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 12
  store double %59, ptr %61, align 8, !tbaa !26
  %62 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 0
  %63 = load ptr, ptr %62, align 8, !tbaa !15
  %64 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7fastjet6VPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %63, i64 noundef 0) #5
  %65 = getelementptr inbounds %"class.fastjet::VPoint", ptr %64, i32 0, i32 1
  %66 = load double, ptr %65, align 8, !tbaa !27
  %67 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 13
  store double %66, ptr %67, align 8, !tbaa !28
  %68 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 14
  store double %66, ptr %68, align 8, !tbaa !29
  store i32 0, ptr %16, align 4, !tbaa !30
  br label %69

69:                                               ; preds = %152, %54
  %70 = load i32, ptr %16, align 4, !tbaa !30
  %71 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 18
  %72 = load i32, ptr %71, align 8, !tbaa !17
  %73 = icmp slt i32 %70, %72
  br i1 %73, label %74, label %155

74:                                               ; preds = %69
  %75 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 0
  %76 = load ptr, ptr %75, align 8, !tbaa !15
  %77 = load i32, ptr %16, align 4, !tbaa !30
  %78 = sext i32 %77 to i64
  %79 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7fastjet6VPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %76, i64 noundef %78) #5
  %80 = getelementptr inbounds %"class.fastjet::VPoint", ptr %79, i32 0, i32 0
  %81 = load double, ptr %80, align 8, !tbaa !23
  store double %81, ptr %17, align 8, !tbaa !9
  %82 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 0
  %83 = load ptr, ptr %82, align 8, !tbaa !15
  %84 = load i32, ptr %16, align 4, !tbaa !30
  %85 = sext i32 %84 to i64
  %86 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7fastjet6VPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %83, i64 noundef %85) #5
  %87 = getelementptr inbounds %"class.fastjet::VPoint", ptr %86, i32 0, i32 1
  %88 = load double, ptr %87, align 8, !tbaa !27
  store double %88, ptr %18, align 8, !tbaa !9
  %89 = load double, ptr %17, align 8, !tbaa !9
  %90 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 17
  %91 = load ptr, ptr %90, align 8, !tbaa !22
  %92 = load i32, ptr %16, align 4, !tbaa !30
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds %"class.fastjet::Site", ptr %91, i64 %93
  %95 = getelementptr inbounds %"class.fastjet::Site", ptr %94, i32 0, i32 0
  %96 = getelementptr inbounds %"class.fastjet::VPoint", ptr %95, i32 0, i32 0
  store double %89, ptr %96, align 8, !tbaa !31
  %97 = load double, ptr %18, align 8, !tbaa !9
  %98 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 17
  %99 = load ptr, ptr %98, align 8, !tbaa !22
  %100 = load i32, ptr %16, align 4, !tbaa !30
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds %"class.fastjet::Site", ptr %99, i64 %101
  %103 = getelementptr inbounds %"class.fastjet::Site", ptr %102, i32 0, i32 0
  %104 = getelementptr inbounds %"class.fastjet::VPoint", ptr %103, i32 0, i32 1
  store double %97, ptr %104, align 8, !tbaa !33
  %105 = load i32, ptr %16, align 4, !tbaa !30
  %106 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 17
  %107 = load ptr, ptr %106, align 8, !tbaa !22
  %108 = load i32, ptr %16, align 4, !tbaa !30
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds %"class.fastjet::Site", ptr %107, i64 %109
  %111 = getelementptr inbounds %"class.fastjet::Site", ptr %110, i32 0, i32 1
  store i32 %105, ptr %111, align 8, !tbaa !34
  %112 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 17
  %113 = load ptr, ptr %112, align 8, !tbaa !22
  %114 = load i32, ptr %16, align 4, !tbaa !30
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds %"class.fastjet::Site", ptr %113, i64 %115
  %117 = getelementptr inbounds %"class.fastjet::Site", ptr %116, i32 0, i32 2
  store i32 0, ptr %117, align 4, !tbaa !35
  %118 = load double, ptr %17, align 8, !tbaa !9
  %119 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 11
  %120 = load double, ptr %119, align 8, !tbaa !25
  %121 = fcmp olt double %118, %120
  br i1 %121, label %122, label %125

122:                                              ; preds = %74
  %123 = load double, ptr %17, align 8, !tbaa !9
  %124 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 11
  store double %123, ptr %124, align 8, !tbaa !25
  br label %134

125:                                              ; preds = %74
  %126 = load double, ptr %17, align 8, !tbaa !9
  %127 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 12
  %128 = load double, ptr %127, align 8, !tbaa !26
  %129 = fcmp ogt double %126, %128
  br i1 %129, label %130, label %133

130:                                              ; preds = %125
  %131 = load double, ptr %17, align 8, !tbaa !9
  %132 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 12
  store double %131, ptr %132, align 8, !tbaa !26
  br label %133

133:                                              ; preds = %130, %125
  br label %134

134:                                              ; preds = %133, %122
  %135 = load double, ptr %18, align 8, !tbaa !9
  %136 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 13
  %137 = load double, ptr %136, align 8, !tbaa !28
  %138 = fcmp olt double %135, %137
  br i1 %138, label %139, label %142

139:                                              ; preds = %134
  %140 = load double, ptr %18, align 8, !tbaa !9
  %141 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 13
  store double %140, ptr %141, align 8, !tbaa !28
  br label %151

142:                                              ; preds = %134
  %143 = load double, ptr %18, align 8, !tbaa !9
  %144 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 14
  %145 = load double, ptr %144, align 8, !tbaa !29
  %146 = fcmp ogt double %143, %145
  br i1 %146, label %147, label %150

147:                                              ; preds = %142
  %148 = load double, ptr %18, align 8, !tbaa !9
  %149 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 14
  store double %148, ptr %149, align 8, !tbaa !29
  br label %150

150:                                              ; preds = %147, %142
  br label %151

151:                                              ; preds = %150, %139
  br label %152

152:                                              ; preds = %151
  %153 = load i32, ptr %16, align 4, !tbaa !30
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr %16, align 4, !tbaa !30
  br label %69, !llvm.loop !36

155:                                              ; preds = %69
  %156 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 17
  %157 = load ptr, ptr %156, align 8, !tbaa !22
  %158 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 18
  %159 = load i32, ptr %158, align 8, !tbaa !17
  %160 = sext i32 %159 to i64
  call void @qsort(ptr noundef %157, i64 noundef %160, i64 noundef 24, ptr noundef @_ZN7fastjet5scompEPKvS1_)
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  store i32 0, ptr %20, align 4, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  store i32 1, ptr %21, align 4, !tbaa !30
  br label %161

161:                                              ; preds = %226, %155
  %162 = load i32, ptr %21, align 4, !tbaa !30
  %163 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 18
  %164 = load i32, ptr %163, align 8, !tbaa !17
  %165 = icmp slt i32 %162, %164
  br i1 %165, label %167, label %166

166:                                              ; preds = %161
  store i32 5, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %229

167:                                              ; preds = %161
  %168 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 17
  %169 = load ptr, ptr %168, align 8, !tbaa !22
  %170 = load i32, ptr %21, align 4, !tbaa !30
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds %"class.fastjet::Site", ptr %169, i64 %171
  %173 = getelementptr inbounds %"class.fastjet::Site", ptr %172, i32 0, i32 0
  %174 = getelementptr inbounds %"class.fastjet::VPoint", ptr %173, i32 0, i32 1
  %175 = load double, ptr %174, align 8, !tbaa !33
  %176 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 17
  %177 = load ptr, ptr %176, align 8, !tbaa !22
  %178 = load i32, ptr %21, align 4, !tbaa !30
  %179 = sub nsw i32 %178, 1
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds %"class.fastjet::Site", ptr %177, i64 %180
  %182 = getelementptr inbounds %"class.fastjet::Site", ptr %181, i32 0, i32 0
  %183 = getelementptr inbounds %"class.fastjet::VPoint", ptr %182, i32 0, i32 1
  %184 = load double, ptr %183, align 8, !tbaa !33
  %185 = fcmp oeq double %175, %184
  br i1 %185, label %186, label %208

186:                                              ; preds = %167
  %187 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 17
  %188 = load ptr, ptr %187, align 8, !tbaa !22
  %189 = load i32, ptr %21, align 4, !tbaa !30
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds %"class.fastjet::Site", ptr %188, i64 %190
  %192 = getelementptr inbounds %"class.fastjet::Site", ptr %191, i32 0, i32 0
  %193 = getelementptr inbounds %"class.fastjet::VPoint", ptr %192, i32 0, i32 0
  %194 = load double, ptr %193, align 8, !tbaa !31
  %195 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 17
  %196 = load ptr, ptr %195, align 8, !tbaa !22
  %197 = load i32, ptr %21, align 4, !tbaa !30
  %198 = sub nsw i32 %197, 1
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds %"class.fastjet::Site", ptr %196, i64 %199
  %201 = getelementptr inbounds %"class.fastjet::Site", ptr %200, i32 0, i32 0
  %202 = getelementptr inbounds %"class.fastjet::VPoint", ptr %201, i32 0, i32 0
  %203 = load double, ptr %202, align 8, !tbaa !31
  %204 = fcmp oeq double %194, %203
  br i1 %204, label %205, label %208

205:                                              ; preds = %186
  %206 = load i32, ptr %20, align 4, !tbaa !30
  %207 = add i32 %206, 1
  store i32 %207, ptr %20, align 4, !tbaa !30
  br label %225

208:                                              ; preds = %186, %167
  %209 = load i32, ptr %20, align 4, !tbaa !30
  %210 = icmp ugt i32 %209, 0
  br i1 %210, label %211, label %224

211:                                              ; preds = %208
  %212 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 17
  %213 = load ptr, ptr %212, align 8, !tbaa !22
  %214 = load i32, ptr %21, align 4, !tbaa !30
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds %"class.fastjet::Site", ptr %213, i64 %215
  %217 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 17
  %218 = load ptr, ptr %217, align 8, !tbaa !22
  %219 = load i32, ptr %21, align 4, !tbaa !30
  %220 = load i32, ptr %20, align 4, !tbaa !30
  %221 = sub i32 %219, %220
  %222 = zext i32 %221 to i64
  %223 = getelementptr inbounds %"class.fastjet::Site", ptr %218, i64 %222
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %223, ptr align 8 %216, i64 24, i1 false), !tbaa.struct !38
  br label %224

224:                                              ; preds = %211, %208
  br label %225

225:                                              ; preds = %224, %205
  br label %226

226:                                              ; preds = %225
  %227 = load i32, ptr %21, align 4, !tbaa !30
  %228 = add nsw i32 %227, 1
  store i32 %228, ptr %21, align 4, !tbaa !30
  br label %161, !llvm.loop !39

229:                                              ; preds = %166
  %230 = load i32, ptr %20, align 4, !tbaa !30
  %231 = icmp ugt i32 %230, 0
  br i1 %231, label %232, label %248

232:                                              ; preds = %229
  %233 = load i32, ptr %20, align 4, !tbaa !30
  %234 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 18
  %235 = load i32, ptr %234, align 8, !tbaa !17
  %236 = sub i32 %235, %233
  store i32 %236, ptr %234, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %237 unwind label %239

237:                                              ; preds = %232
  invoke void @_ZN7fastjet14LimitedWarning4warnERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) @_ZN7fastjet23VoronoiDiagramGenerator19_warning_degeneracyE, ptr noundef nonnull align 8 dereferenceable(32) %22)
          to label %238 unwind label %243

238:                                              ; preds = %237
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #5
  br label %248

239:                                              ; preds = %232
  %240 = landingpad { ptr, i32 }
          cleanup
  %241 = extractvalue { ptr, i32 } %240, 0
  store ptr %241, ptr %24, align 8
  %242 = extractvalue { ptr, i32 } %240, 1
  store i32 %242, ptr %25, align 4
  br label %247

243:                                              ; preds = %237
  %244 = landingpad { ptr, i32 }
          cleanup
  %245 = extractvalue { ptr, i32 } %244, 0
  store ptr %245, ptr %24, align 8
  %246 = extractvalue { ptr, i32 } %244, 1
  store i32 %246, ptr %25, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #5
  br label %247

247:                                              ; preds = %243, %239
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %280

248:                                              ; preds = %238, %229
  %249 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 19
  store i32 0, ptr %249, align 4, !tbaa !40
  call void @_ZN7fastjet23VoronoiDiagramGenerator8geominitEv(ptr noundef nonnull align 8 dereferenceable(352) %27)
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  store double 0.000000e+00, ptr %26, align 8, !tbaa !9
  %250 = load double, ptr %11, align 8, !tbaa !9
  %251 = load double, ptr %12, align 8, !tbaa !9
  %252 = fcmp ogt double %250, %251
  br i1 %252, label %253, label %257

253:                                              ; preds = %248
  %254 = load double, ptr %11, align 8, !tbaa !9
  store double %254, ptr %26, align 8, !tbaa !9
  %255 = load double, ptr %12, align 8, !tbaa !9
  store double %255, ptr %11, align 8, !tbaa !9
  %256 = load double, ptr %26, align 8, !tbaa !9
  store double %256, ptr %12, align 8, !tbaa !9
  br label %257

257:                                              ; preds = %253, %248
  %258 = load double, ptr %13, align 8, !tbaa !9
  %259 = load double, ptr %14, align 8, !tbaa !9
  %260 = fcmp ogt double %258, %259
  br i1 %260, label %261, label %265

261:                                              ; preds = %257
  %262 = load double, ptr %13, align 8, !tbaa !9
  store double %262, ptr %26, align 8, !tbaa !9
  %263 = load double, ptr %14, align 8, !tbaa !9
  store double %263, ptr %13, align 8, !tbaa !9
  %264 = load double, ptr %26, align 8, !tbaa !9
  store double %264, ptr %14, align 8, !tbaa !9
  br label %265

265:                                              ; preds = %261, %257
  %266 = load double, ptr %11, align 8, !tbaa !9
  %267 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 38
  store double %266, ptr %267, align 8, !tbaa !41
  %268 = load double, ptr %13, align 8, !tbaa !9
  %269 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 40
  store double %268, ptr %269, align 8, !tbaa !42
  %270 = load double, ptr %12, align 8, !tbaa !9
  %271 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 39
  store double %270, ptr %271, align 8, !tbaa !43
  %272 = load double, ptr %14, align 8, !tbaa !9
  %273 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 41
  store double %272, ptr %273, align 8, !tbaa !44
  %274 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 19
  store i32 0, ptr %274, align 4, !tbaa !40
  %275 = getelementptr inbounds %"class.fastjet::VoronoiDiagramGenerator", ptr %27, i32 0, i32 7
  %276 = load i32, ptr %275, align 4, !tbaa !19
  %277 = call noundef zeroext i1 @_ZN7fastjet23VoronoiDiagramGenerator7voronoiEi(ptr noundef nonnull align 8 dereferenceable(352) %27, i32 noundef %276)
  store i1 true, ptr %8, align 1
  store i32 1, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %278

278:                                              ; preds = %265, %53
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  %279 = load i1, ptr %8, align 1
  ret i1 %279

280:                                              ; preds = %247
  %281 = load ptr, ptr %24, align 8
  %282 = load i32, ptr %25, align 4
  %283 = insertvalue { ptr, i32 } poison, ptr %281, 0
  %284 = insertvalue { ptr, i32 } %283, i32 %282, 1
  resume { ptr, i32 } %284
}

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

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

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

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

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

declare void @qsort(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN7fastjet5scompEPKvS1_(ptr noundef, ptr noundef) #1

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

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

declare void @_ZN7fastjet14LimitedWarning4warnERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #3

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !10, i64 344}
!12 = !{!"_ZTSN7fastjet23VoronoiDiagramGeneratorE", !6, i64 0, !13, i64 8, !6, i64 16, !14, i64 24, !6, i64 40, !6, i64 48, !13, i64 56, !13, i64 60, !13, i64 64, !13, i64 68, !13, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !6, i64 128, !13, i64 136, !13, i64 140, !13, i64 144, !13, i64 148, !14, i64 152, !6, i64 168, !13, i64 176, !14, i64 184, !13, i64 200, !6, i64 208, !13, i64 216, !13, i64 220, !13, i64 224, !13, i64 228, !10, i64 232, !10, i64 240, !10, i64 248, !10, i64 256, !10, i64 264, !13, i64 272, !10, i64 280, !10, i64 288, !10, i64 296, !10, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !6, i64 336, !10, i64 344}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTSN7fastjet8FreelistE", !6, i64 0, !13, i64 8}
!15 = !{!12, !6, i64 0}
!16 = !{!12, !13, i64 8}
!17 = !{!12, !13, i64 136}
!18 = !{!12, !13, i64 68}
!19 = !{!12, !13, i64 60}
!20 = !{!12, !13, i64 72}
!21 = !{!12, !13, i64 64}
!22 = !{!12, !6, i64 128}
!23 = !{!24, !10, i64 0}
!24 = !{!"_ZTSN7fastjet6VPointE", !10, i64 0, !10, i64 8}
!25 = !{!12, !10, i64 80}
!26 = !{!12, !10, i64 88}
!27 = !{!24, !10, i64 8}
!28 = !{!12, !10, i64 96}
!29 = !{!12, !10, i64 104}
!30 = !{!13, !13, i64 0}
!31 = !{!32, !10, i64 0}
!32 = !{!"_ZTSN7fastjet4SiteE", !24, i64 0, !13, i64 16, !13, i64 20}
!33 = !{!32, !10, i64 8}
!34 = !{!32, !13, i64 16}
!35 = !{!32, !13, i64 20}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = !{i64 0, i64 8, !9, i64 8, i64 8, !9, i64 16, i64 4, !30, i64 20, i64 4, !30}
!39 = distinct !{!39, !37}
!40 = !{!12, !13, i64 140}
!41 = !{!12, !10, i64 280}
!42 = !{!12, !10, i64 296}
!43 = !{!12, !10, i64 288}
!44 = !{!12, !10, i64 304}


; 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::LimitedWarning" = type { i32, i32, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.0" = type { i8 }
%"class.fastjet::Site" = type { %"class.fastjet::VPoint", i32, i32 }
%"class.fastjet::VPoint" = type { double, double }

@_ZN7fastjet23VoronoiDiagramGenerator19_warning_degeneracyE = external dso_local global %"class.fastjet::LimitedWarning", align 8
@.str = external hidden unnamed_addr constant [161 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN7fastjet23VoronoiDiagramGenerator15generateVoronoiEPSt6vectorINS_6VPointESaIS2_EEddddd(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef %1, double noundef %2, double noundef %3, double noundef %4, double noundef %5, double noundef %6) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::allocator.0", align 1
  tail call void @_ZN7fastjet23VoronoiDiagramGenerator7cleanupEv(ptr noundef nonnull align 8 dereferenceable(352) %0)
  tail call void @_ZN7fastjet23VoronoiDiagramGenerator12cleanupEdgesEv(ptr noundef nonnull align 8 dereferenceable(352) %0)
  %10 = getelementptr inbounds i8, ptr %0, i64 344
  store double %6, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %0, align 8, !tbaa !13
  %11 = tail call noundef i64 @_ZNKSt6vectorIN7fastjet6VPointESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %12 = trunc i64 %11 to i32
  %13 = getelementptr inbounds i8, ptr %0, i64 8
  store i32 %12, ptr %13, align 8, !tbaa !14
  %14 = getelementptr inbounds i8, ptr %0, i64 136
  store i32 %12, ptr %14, align 8, !tbaa !15
  %15 = getelementptr inbounds i8, ptr %0, i64 60
  store <4 x i32> <i32 0, i32 0, i32 0, i32 1>, ptr %15, align 4, !tbaa !16
  %16 = getelementptr inbounds i8, ptr %0, i64 152
  tail call void @_ZN7fastjet23VoronoiDiagramGenerator8freeinitEPNS_8FreelistEi(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef nonnull %16, i32 noundef 24)
  %17 = load i32, ptr %14, align 8, !tbaa !15
  %18 = mul i32 %17, 24
  %19 = tail call noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator7myallocEj(ptr noundef nonnull align 8 dereferenceable(352) %0, i32 noundef %18)
  %20 = getelementptr inbounds i8, ptr %0, i64 128
  store ptr %19, ptr %20, align 8, !tbaa !17
  %21 = icmp ne ptr %19, null
  br i1 %21, label %22, label %110

22:                                               ; preds = %7
  %23 = load ptr, ptr %0, align 8, !tbaa !13
  %24 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7fastjet6VPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef 0) #6
  %25 = load double, ptr %24, align 8, !tbaa !18
  %26 = getelementptr inbounds i8, ptr %0, i64 80
  store double %25, ptr %26, align 8, !tbaa !20
  %27 = getelementptr inbounds i8, ptr %0, i64 88
  store double %25, ptr %27, align 8, !tbaa !21
  %28 = load ptr, ptr %0, align 8, !tbaa !13
  %29 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7fastjet6VPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef 0) #6
  %30 = getelementptr inbounds i8, ptr %29, i64 8
  %31 = load double, ptr %30, align 8, !tbaa !22
  %32 = getelementptr inbounds i8, ptr %0, i64 96
  store double %31, ptr %32, align 8, !tbaa !23
  %33 = getelementptr inbounds i8, ptr %0, i64 104
  store double %31, ptr %33, align 8, !tbaa !24
  %34 = load i32, ptr %14, align 8, !tbaa !15
  %35 = icmp sgt i32 %34, 0
  br i1 %35, label %.lr.ph, label %.._crit_edge_crit_edge

.._crit_edge_crit_edge:                           ; preds = %22
  %.pre = load ptr, ptr %20, align 8, !tbaa !17
  %.pre92 = sext i32 %34 to i64
  br label %._crit_edge

.lr.ph:                                           ; preds = %22, %60
  %indvars.iv = phi i64 [ %indvars.iv.next, %60 ], [ 0, %22 ]
  %36 = load ptr, ptr %0, align 8, !tbaa !13
  %37 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7fastjet6VPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %indvars.iv) #6
  %38 = load double, ptr %37, align 8, !tbaa !18
  %39 = load ptr, ptr %0, align 8, !tbaa !13
  %40 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7fastjet6VPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %indvars.iv) #6
  %41 = getelementptr inbounds i8, ptr %40, i64 8
  %42 = load double, ptr %41, align 8, !tbaa !22
  %43 = load ptr, ptr %20, align 8, !tbaa !17
  %44 = getelementptr inbounds %"class.fastjet::Site", ptr %43, i64 %indvars.iv
  store double %38, ptr %44, align 8, !tbaa !25
  %45 = getelementptr inbounds %"class.fastjet::Site", ptr %43, i64 %indvars.iv, i32 0, i32 1
  store double %42, ptr %45, align 8, !tbaa !27
  %46 = getelementptr inbounds %"class.fastjet::Site", ptr %43, i64 %indvars.iv, i32 1
  %47 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %47, ptr %46, align 8, !tbaa !28
  %48 = getelementptr inbounds %"class.fastjet::Site", ptr %43, i64 %indvars.iv, i32 2
  store i32 0, ptr %48, align 4, !tbaa !29
  %49 = load double, ptr %26, align 8, !tbaa !20
  %50 = fcmp olt double %38, %49
  br i1 %50, label %.sink.split, label %51

51:                                               ; preds = %.lr.ph
  %52 = load double, ptr %27, align 8, !tbaa !21
  %53 = fcmp ogt double %38, %52
  br i1 %53, label %.sink.split, label %54

.sink.split:                                      ; preds = %51, %.lr.ph
  %.sink = phi ptr [ %26, %.lr.ph ], [ %27, %51 ]
  store double %38, ptr %.sink, align 8, !tbaa !30
  br label %54

54:                                               ; preds = %.sink.split, %51
  %55 = load double, ptr %32, align 8, !tbaa !23
  %56 = fcmp olt double %42, %55
  br i1 %56, label %.sink.split98, label %57

57:                                               ; preds = %54
  %58 = load double, ptr %33, align 8, !tbaa !24
  %59 = fcmp ogt double %42, %58
  br i1 %59, label %.sink.split98, label %60

.sink.split98:                                    ; preds = %57, %54
  %.sink99 = phi ptr [ %32, %54 ], [ %33, %57 ]
  store double %42, ptr %.sink99, align 8, !tbaa !30
  br label %60

60:                                               ; preds = %.sink.split98, %57
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %61 = load i32, ptr %14, align 8, !tbaa !15
  %62 = sext i32 %61 to i64
  %63 = icmp slt i64 %indvars.iv.next, %62
  br i1 %63, label %.lr.ph, label %._crit_edge, !llvm.loop !31

._crit_edge:                                      ; preds = %60, %.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre92, %.._crit_edge_crit_edge ], [ %62, %60 ]
  %64 = phi ptr [ %.pre, %.._crit_edge_crit_edge ], [ %43, %60 ]
  tail call void @qsort(ptr noundef %64, i64 noundef %.pre-phi, i64 noundef 24, ptr noundef nonnull @_ZN7fastjet5scompEPKvS1_)
  %65 = load i32, ptr %14, align 8, !tbaa !15
  %66 = icmp sgt i32 %65, 1
  br i1 %66, label %.lr.ph81, label %._crit_edge82.thread

._crit_edge82:                                    ; preds = %88
  %.not = icmp eq i32 %.1, 0
  br i1 %.not, label %._crit_edge82.thread, label %92

.lr.ph81:                                         ; preds = %._crit_edge, %88
  %67 = phi i32 [ %89, %88 ], [ %65, %._crit_edge ]
  %indvars.iv88 = phi i64 [ %indvars.iv.next89, %88 ], [ 1, %._crit_edge ]
  %.05378 = phi i32 [ %.1, %88 ], [ 0, %._crit_edge ]
  %68 = load ptr, ptr %20, align 8, !tbaa !17
  %69 = getelementptr inbounds %"class.fastjet::Site", ptr %68, i64 %indvars.iv88
  %70 = getelementptr inbounds i8, ptr %69, i64 8
  %71 = load double, ptr %70, align 8, !tbaa !27
  %72 = getelementptr i8, ptr %69, i64 -16
  %73 = load double, ptr %72, align 8, !tbaa !27
  %74 = fcmp oeq double %71, %73
  br i1 %74, label %75, label %82

75:                                               ; preds = %.lr.ph81
  %76 = getelementptr i8, ptr %69, i64 -24
  %77 = load double, ptr %69, align 8, !tbaa !25
  %78 = load double, ptr %76, align 8, !tbaa !25
  %79 = fcmp oeq double %77, %78
  br i1 %79, label %80, label %82

80:                                               ; preds = %75
  %81 = add i32 %.05378, 1
  br label %88

82:                                               ; preds = %75, %.lr.ph81
  %.not75 = icmp eq i32 %.05378, 0
  br i1 %.not75, label %88, label %83

83:                                               ; preds = %82
  %84 = trunc nuw nsw i64 %indvars.iv88 to i32
  %85 = sub i32 %84, %.05378
  %86 = zext i32 %85 to i64
  %87 = getelementptr inbounds %"class.fastjet::Site", ptr %68, i64 %86
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %87, ptr noundef nonnull align 8 dereferenceable(24) %69, i64 24, i1 false), !tbaa.struct !33
  %.pre91 = load i32, ptr %14, align 8, !tbaa !15
  br label %88

88:                                               ; preds = %80, %83, %82
  %89 = phi i32 [ %67, %80 ], [ %.pre91, %83 ], [ %67, %82 ]
  %.1 = phi i32 [ %81, %80 ], [ %.05378, %83 ], [ 0, %82 ]
  %indvars.iv.next89 = add nuw nsw i64 %indvars.iv88, 1
  %90 = sext i32 %89 to i64
  %91 = icmp slt i64 %indvars.iv.next89, %90
  br i1 %91, label %.lr.ph81, label %._crit_edge82, !llvm.loop !34

92:                                               ; preds = %._crit_edge82
  %93 = sub i32 %89, %.1
  store i32 %93, ptr %14, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull @.str, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %94 unwind label %96

94:                                               ; preds = %92
  invoke void @_ZN7fastjet14LimitedWarning4warnERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) @_ZN7fastjet23VoronoiDiagramGenerator19_warning_degeneracyE, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %95 unwind label %98

95:                                               ; preds = %94
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  br label %._crit_edge82.thread

96:                                               ; preds = %92
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %100

98:                                               ; preds = %94
  %99 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  br label %100

100:                                              ; preds = %98, %96
  %.pn = phi { ptr, i32 } [ %99, %98 ], [ %97, %96 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  resume { ptr, i32 } %.pn

._crit_edge82.thread:                             ; preds = %._crit_edge, %95, %._crit_edge82
  %101 = getelementptr inbounds i8, ptr %0, i64 140
  store i32 0, ptr %101, align 4, !tbaa !35
  call void @_ZN7fastjet23VoronoiDiagramGenerator8geominitEv(ptr noundef nonnull align 8 dereferenceable(352) %0)
  %102 = fcmp ogt double %2, %3
  %.057 = select i1 %102, double %2, double %3
  %.055 = select i1 %102, double %3, double %2
  %103 = fcmp ogt double %4, %5
  %.059 = select i1 %103, double %5, double %4
  %.058 = select i1 %103, double %4, double %5
  %104 = getelementptr inbounds i8, ptr %0, i64 280
  store double %.055, ptr %104, align 8, !tbaa !36
  %105 = getelementptr inbounds i8, ptr %0, i64 296
  store double %.059, ptr %105, align 8, !tbaa !37
  %106 = getelementptr inbounds i8, ptr %0, i64 288
  store double %.057, ptr %106, align 8, !tbaa !38
  %107 = getelementptr inbounds i8, ptr %0, i64 304
  store double %.058, ptr %107, align 8, !tbaa !39
  store i32 0, ptr %101, align 4, !tbaa !35
  %108 = load i32, ptr %15, align 4, !tbaa !40
  %109 = call noundef zeroext i1 @_ZN7fastjet23VoronoiDiagramGenerator7voronoiEi(ptr noundef nonnull align 8 dereferenceable(352) %0, i32 noundef %108)
  br label %110

110:                                              ; preds = %7, %._crit_edge82.thread
  ret i1 %21
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7fastjet23VoronoiDiagramGenerator8freeinitEPNS_8FreelistEi(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 noundef ptr @_ZN7fastjet23VoronoiDiagramGenerator7myallocEj(ptr noundef nonnull align 8 dereferenceable(352), i32 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: nofree
declare void @qsort(ptr noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN7fastjet5scompEPKvS1_(ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress 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) #4

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

declare void @_ZN7fastjet14LimitedWarning4warnERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5

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

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

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

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

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

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

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

!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, !12, i64 344}
!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 = !{!6, !7, i64 0}
!14 = !{!6, !10, i64 8}
!15 = !{!6, !10, i64 136}
!16 = !{!10, !10, i64 0}
!17 = !{!6, !7, i64 128}
!18 = !{!19, !12, i64 0}
!19 = !{!"_ZTSN7fastjet6VPointE", !12, i64 0, !12, i64 8}
!20 = !{!6, !12, i64 80}
!21 = !{!6, !12, i64 88}
!22 = !{!19, !12, i64 8}
!23 = !{!6, !12, i64 96}
!24 = !{!6, !12, i64 104}
!25 = !{!26, !12, i64 0}
!26 = !{!"_ZTSN7fastjet4SiteE", !19, i64 0, !10, i64 16, !10, i64 20}
!27 = !{!26, !12, i64 8}
!28 = !{!26, !10, i64 16}
!29 = !{!26, !10, i64 20}
!30 = !{!12, !12, i64 0}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = !{i64 0, i64 8, !30, i64 8, i64 8, !30, i64 16, i64 4, !16, i64 20, i64 4, !16}
!34 = distinct !{!34, !32}
!35 = !{!6, !10, i64 140}
!36 = !{!6, !12, i64 280}
!37 = !{!6, !12, i64 296}
!38 = !{!6, !12, i64 288}
!39 = !{!6, !12, i64 304}
!40 = !{!6, !10, i64 60}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass