; LLVM IR from atlantis13579/Riemann :: Src/Geometry (Voronoi3)

; 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.Maths::TAABB3" = type { %"class.Maths::TVector3", %"class.Maths::TVector3" }
%"class.Maths::TVector3" = type { float, float, float }
%"class.voro::voro_compute" = type { ptr, double, double, double, double, double, double, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, double, i32, i32, ptr, ptr, ptr, ptr, ptr }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4voro13guess_optimalEifffRiS0_S0_(i32 noundef, float noundef, float noundef, float noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN7Riemann20CreateVoroContrainerERKSt6vectorIN5Maths8TVector3IfEESaIS3_EERKNS1_6TAABB3IfEEf(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(24) %1, float noundef %2) #2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca float, align 4
  %7 = alloca double, align 8
  %8 = alloca %"class.Maths::TAABB3", align 4
  %9 = alloca %"class.Maths::TVector3", align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca %"class.voro::voro_compute", align 8
  %17 = alloca i64, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca i32, align 4
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca i64, align 8
  %28 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store float %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  store double 0x3F847AE140000000, ptr %7, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #7
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN5Maths6TAABB3IfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(24) %8, ptr noundef nonnull align 4 dereferenceable(24) %29)
  %30 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZN5Maths6TAABB3IfE7ThickenEf(ptr noundef nonnull align 4 dereferenceable(24) %8, float noundef 0x3F847AE140000000)
  %31 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZN5Maths6TAABB3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(24) %8, ptr noundef nonnull align 4 dereferenceable(24) %30)
  call void @llvm.lifetime.start.p0(i64 12, ptr %9) #7
  call void @_ZNK5Maths6TAABB3IfE7GetSizeEv(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %9, ptr noundef nonnull align 4 dereferenceable(24) %8)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = call noundef i64 @_ZNKSt6vectorIN5Maths8TVector3IfEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #7
  %34 = trunc i64 %33 to i32
  %35 = getelementptr inbounds %"class.Maths::TVector3", ptr %9, i32 0, i32 0
  %36 = load float, ptr %35, align 4, !tbaa !13
  %37 = getelementptr inbounds %"class.Maths::TVector3", ptr %9, i32 0, i32 1
  %38 = load float, ptr %37, align 4, !tbaa !15
  %39 = getelementptr inbounds %"class.Maths::TVector3", ptr %9, i32 0, i32 2
  %40 = load float, ptr %39, align 4, !tbaa !16
  call void @_ZN4voro13guess_optimalEifffRiS0_S0_(i32 noundef %34, float noundef %36, float noundef %38, float noundef %40, ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %41 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 208) #8
  %42 = getelementptr inbounds %"class.Maths::TAABB3", ptr %8, i32 0, i32 0
  %43 = getelementptr inbounds %"class.Maths::TVector3", ptr %42, i32 0, i32 0
  %44 = load float, ptr %43, align 4, !tbaa !17
  %45 = fpext float %44 to double
  %46 = getelementptr inbounds %"class.Maths::TAABB3", ptr %8, i32 0, i32 1
  %47 = getelementptr inbounds %"class.Maths::TVector3", ptr %46, i32 0, i32 0
  %48 = load float, ptr %47, align 4, !tbaa !19
  %49 = fpext float %48 to double
  %50 = getelementptr inbounds %"class.Maths::TAABB3", ptr %8, i32 0, i32 0
  %51 = getelementptr inbounds %"class.Maths::TVector3", ptr %50, i32 0, i32 1
  %52 = load float, ptr %51, align 4, !tbaa !20
  %53 = fpext float %52 to double
  %54 = getelementptr inbounds %"class.Maths::TAABB3", ptr %8, i32 0, i32 1
  %55 = getelementptr inbounds %"class.Maths::TVector3", ptr %54, i32 0, i32 1
  %56 = load float, ptr %55, align 4, !tbaa !21
  %57 = fpext float %56 to double
  %58 = getelementptr inbounds %"class.Maths::TAABB3", ptr %8, i32 0, i32 0
  %59 = getelementptr inbounds %"class.Maths::TVector3", ptr %58, i32 0, i32 2
  %60 = load float, ptr %59, align 4, !tbaa !22
  %61 = fpext float %60 to double
  %62 = getelementptr inbounds %"class.Maths::TAABB3", ptr %8, i32 0, i32 1
  %63 = getelementptr inbounds %"class.Maths::TVector3", ptr %62, i32 0, i32 2
  %64 = load float, ptr %63, align 4, !tbaa !23
  %65 = fpext float %64 to double
  %66 = load i32, ptr %10, align 4, !tbaa !24
  %67 = load i32, ptr %11, align 4, !tbaa !24
  %68 = load i32, ptr %12, align 4, !tbaa !24
  invoke void @_ZN4voro9containerC2Eddddddiiibbbi(ptr noundef nonnull align 8 dereferenceable(204) %41, double noundef %45, double noundef %49, double noundef %53, double noundef %57, double noundef %61, double noundef %65, i32 noundef %66, i32 noundef %67, i32 noundef %68, i1 noundef zeroext false, i1 noundef zeroext false, i1 noundef zeroext false, i32 noundef 10)
          to label %69 unwind label %80

69:                                               ; preds = %3
  store ptr %41, ptr %13, align 8, !tbaa !5
  %70 = load float, ptr %6, align 4, !tbaa !9
  %71 = fcmp ogt float %70, 0.000000e+00
  br i1 %71, label %72, label %167

72:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 160, ptr %16) #7
  %73 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZNK4voro9container12make_computeEv(ptr dead_on_unwind writable sret(%"class.voro::voro_compute") align 8 %16, ptr noundef nonnull align 8 dereferenceable(204) %73)
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  store i64 0, ptr %17, align 8, !tbaa !26
  br label %74

74:                                               ; preds = %163, %72
  %75 = load i64, ptr %17, align 8, !tbaa !26
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  %77 = call noundef i64 @_ZNKSt6vectorIN5Maths8TVector3IfEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %76) #7
  %78 = icmp ult i64 %75, %77
  br i1 %78, label %84, label %79

79:                                               ; preds = %74
  store i32 2, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %166

80:                                               ; preds = %3
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %14, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %15, align 4
  call void @_ZdlPvm(ptr noundef %41, i64 noundef 208) #9
  br label %199

84:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = load i64, ptr %17, align 8, !tbaa !26
  %87 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %85, i64 noundef %86) #7
  store ptr %87, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %88 = load ptr, ptr %13, align 8, !tbaa !5
  %89 = load ptr, ptr %19, align 8, !tbaa !5
  %90 = getelementptr inbounds %"class.Maths::TVector3", ptr %89, i32 0, i32 0
  %91 = load float, ptr %90, align 4, !tbaa !13
  %92 = fpext float %91 to double
  %93 = load ptr, ptr %19, align 8, !tbaa !5
  %94 = getelementptr inbounds %"class.Maths::TVector3", ptr %93, i32 0, i32 1
  %95 = load float, ptr %94, align 4, !tbaa !15
  %96 = fpext float %95 to double
  %97 = load ptr, ptr %19, align 8, !tbaa !5
  %98 = getelementptr inbounds %"class.Maths::TVector3", ptr %97, i32 0, i32 2
  %99 = load float, ptr %98, align 4, !tbaa !16
  %100 = fpext float %99 to double
  %101 = invoke noundef zeroext i1 @_ZNK4voro9container17find_voronoi_cellEdddRdS1_S1_RiRNS_12voro_computeIS0_EE(ptr noundef nonnull align 8 dereferenceable(204) %88, double noundef %92, double noundef %96, double noundef %100, ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 8 dereferenceable(160) %16)
          to label %102 unwind label %135

102:                                              ; preds = %84
  br i1 %101, label %103, label %143

103:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %104 = load ptr, ptr %19, align 8, !tbaa !5
  %105 = getelementptr inbounds %"class.Maths::TVector3", ptr %104, i32 0, i32 0
  %106 = load float, ptr %105, align 4, !tbaa !13
  %107 = fpext float %106 to double
  %108 = load double, ptr %20, align 8, !tbaa !11
  %109 = fsub double %107, %108
  store double %109, ptr %24, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %110 = load ptr, ptr %19, align 8, !tbaa !5
  %111 = getelementptr inbounds %"class.Maths::TVector3", ptr %110, i32 0, i32 1
  %112 = load float, ptr %111, align 4, !tbaa !15
  %113 = fpext float %112 to double
  %114 = load double, ptr %21, align 8, !tbaa !11
  %115 = fsub double %113, %114
  store double %115, ptr %25, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %116 = load ptr, ptr %19, align 8, !tbaa !5
  %117 = getelementptr inbounds %"class.Maths::TVector3", ptr %116, i32 0, i32 2
  %118 = load float, ptr %117, align 4, !tbaa !16
  %119 = fpext float %118 to double
  %120 = load double, ptr %22, align 8, !tbaa !11
  %121 = fsub double %119, %120
  store double %121, ptr %26, align 8, !tbaa !11
  %122 = load double, ptr %24, align 8, !tbaa !11
  %123 = load double, ptr %24, align 8, !tbaa !11
  %124 = load double, ptr %25, align 8, !tbaa !11
  %125 = load double, ptr %25, align 8, !tbaa !11
  %126 = fmul double %124, %125
  %127 = call double @llvm.fmuladd.f64(double %122, double %123, double %126)
  %128 = load double, ptr %26, align 8, !tbaa !11
  %129 = load double, ptr %26, align 8, !tbaa !11
  %130 = call double @llvm.fmuladd.f64(double %128, double %129, double %127)
  %131 = load float, ptr %6, align 4, !tbaa !9
  %132 = fpext float %131 to double
  %133 = fcmp olt double %130, %132
  br i1 %133, label %134, label %139

134:                                              ; preds = %103
  store i32 4, ptr %18, align 4
  br label %140

135:                                              ; preds = %143, %84
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %14, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @_ZN4voro12voro_computeINS_9containerEED2Ev(ptr noundef nonnull align 8 dereferenceable(160) %16) #7
  call void @llvm.lifetime.end.p0(i64 160, ptr %16) #7
  br label %199

139:                                              ; preds = %103
  store i32 0, ptr %18, align 4
  br label %140

140:                                              ; preds = %139, %134
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  %141 = load i32, ptr %18, align 4
  switch i32 %141, label %160 [
    i32 0, label %142
  ]

142:                                              ; preds = %140
  br label %143

143:                                              ; preds = %142, %102
  %144 = load ptr, ptr %13, align 8, !tbaa !5
  %145 = load i64, ptr %17, align 8, !tbaa !26
  %146 = trunc i64 %145 to i32
  %147 = load ptr, ptr %19, align 8, !tbaa !5
  %148 = getelementptr inbounds %"class.Maths::TVector3", ptr %147, i32 0, i32 0
  %149 = load float, ptr %148, align 4, !tbaa !13
  %150 = fpext float %149 to double
  %151 = load ptr, ptr %19, align 8, !tbaa !5
  %152 = getelementptr inbounds %"class.Maths::TVector3", ptr %151, i32 0, i32 1
  %153 = load float, ptr %152, align 4, !tbaa !15
  %154 = fpext float %153 to double
  %155 = load ptr, ptr %19, align 8, !tbaa !5
  %156 = getelementptr inbounds %"class.Maths::TVector3", ptr %155, i32 0, i32 2
  %157 = load float, ptr %156, align 4, !tbaa !16
  %158 = fpext float %157 to double
  invoke void @_ZN4voro9container3putEiddd(ptr noundef nonnull align 8 dereferenceable(204) %144, i32 noundef %146, double noundef %150, double noundef %154, double noundef %158)
          to label %159 unwind label %135

159:                                              ; preds = %143
  store i32 0, ptr %18, align 4
  br label %160

160:                                              ; preds = %159, %140
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  %161 = load i32, ptr %18, align 4
  switch i32 %161, label %205 [
    i32 0, label %162
    i32 4, label %163
  ]

162:                                              ; preds = %160
  br label %163

163:                                              ; preds = %162, %160
  %164 = load i64, ptr %17, align 8, !tbaa !26
  %165 = add i64 %164, 1
  store i64 %165, ptr %17, align 8, !tbaa !26
  br label %74, !llvm.loop !28

166:                                              ; preds = %79
  call void @_ZN4voro12voro_computeINS_9containerEED2Ev(ptr noundef nonnull align 8 dereferenceable(160) %16) #7
  call void @llvm.lifetime.end.p0(i64 160, ptr %16) #7
  br label %197

167:                                              ; preds = %69
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  store i64 0, ptr %27, align 8, !tbaa !26
  br label %168

168:                                              ; preds = %193, %167
  %169 = load i64, ptr %27, align 8, !tbaa !26
  %170 = load ptr, ptr %4, align 8, !tbaa !5
  %171 = call noundef i64 @_ZNKSt6vectorIN5Maths8TVector3IfEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %170) #7
  %172 = icmp ult i64 %169, %171
  br i1 %172, label %174, label %173

173:                                              ; preds = %168
  store i32 5, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  br label %196

174:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %175 = load ptr, ptr %4, align 8, !tbaa !5
  %176 = load i64, ptr %27, align 8, !tbaa !26
  %177 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %175, i64 noundef %176) #7
  store ptr %177, ptr %28, align 8, !tbaa !5
  %178 = load ptr, ptr %13, align 8, !tbaa !5
  %179 = load i64, ptr %27, align 8, !tbaa !26
  %180 = trunc i64 %179 to i32
  %181 = load ptr, ptr %28, align 8, !tbaa !5
  %182 = getelementptr inbounds %"class.Maths::TVector3", ptr %181, i32 0, i32 0
  %183 = load float, ptr %182, align 4, !tbaa !13
  %184 = fpext float %183 to double
  %185 = load ptr, ptr %28, align 8, !tbaa !5
  %186 = getelementptr inbounds %"class.Maths::TVector3", ptr %185, i32 0, i32 1
  %187 = load float, ptr %186, align 4, !tbaa !15
  %188 = fpext float %187 to double
  %189 = load ptr, ptr %28, align 8, !tbaa !5
  %190 = getelementptr inbounds %"class.Maths::TVector3", ptr %189, i32 0, i32 2
  %191 = load float, ptr %190, align 4, !tbaa !16
  %192 = fpext float %191 to double
  call void @_ZN4voro9container3putEiddd(ptr noundef nonnull align 8 dereferenceable(204) %178, i32 noundef %180, double noundef %184, double noundef %188, double noundef %192)
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  br label %193

193:                                              ; preds = %174
  %194 = load i64, ptr %27, align 8, !tbaa !26
  %195 = add i64 %194, 1
  store i64 %195, ptr %27, align 8, !tbaa !26
  br label %168, !llvm.loop !30

196:                                              ; preds = %173
  br label %197

197:                                              ; preds = %196, %166
  %198 = load ptr, ptr %13, align 8, !tbaa !5
  store i32 1, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  ret ptr %198

199:                                              ; preds = %135, %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %200

200:                                              ; preds = %199
  %201 = load ptr, ptr %14, align 8
  %202 = load i32, ptr %15, align 4
  %203 = insertvalue { ptr, i32 } poison, ptr %201, 0
  %204 = insertvalue { ptr, i32 } %203, i32 %202, 1
  resume { ptr, i32 } %204

205:                                              ; preds = %160
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Maths6TAABB3IfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(24) ptr @_ZN5Maths6TAABB3IfE7ThickenEf(ptr noundef nonnull align 4 dereferenceable(24), float noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(24) ptr @_ZN5Maths6TAABB3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(24)) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths6TAABB3IfE7GetSizeEv(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(24)) #3 align 2

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4voro9containerC2Eddddddiiibbbi(ptr noundef nonnull align 8 dereferenceable(204), double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, i32 noundef, i32 noundef, i32 noundef, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext, i32 noundef) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4voro9container12make_computeEv(ptr dead_on_unwind noalias writable sret(%"class.voro::voro_compute") align 8, ptr noundef nonnull align 8 dereferenceable(204)) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4voro9container17find_voronoi_cellEdddRdS1_S1_RiRNS_12voro_computeIS0_EE(ptr noundef nonnull align 8 dereferenceable(204), double noundef, double noundef, double noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(160)) #2 align 2

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

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { builtin 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 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTSN5Maths8TVector3IfEE", !10, i64 0, !10, i64 4, !10, i64 8}
!15 = !{!14, !10, i64 4}
!16 = !{!14, !10, i64 8}
!17 = !{!18, !10, i64 0}
!18 = !{!"_ZTSN5Maths6TAABB3IfEE", !14, i64 0, !14, i64 12}
!19 = !{!18, !10, i64 12}
!20 = !{!18, !10, i64 4}
!21 = !{!18, !10, i64 16}
!22 = !{!18, !10, i64 8}
!23 = !{!18, !10, i64 20}
!24 = !{!25, !25, i64 0}
!25 = !{!"int", !7, i64 0}
!26 = !{!27, !27, i64 0}
!27 = !{!"long", !7, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = distinct !{!30, !29}


; 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.Maths::TAABB3" = type { %"class.Maths::TVector3", %"class.Maths::TVector3" }
%"class.Maths::TVector3" = type { float, float, float }
%"class.voro::voro_compute" = type { ptr, double, double, double, double, double, double, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, double, i32, i32, ptr, ptr, ptr, ptr, ptr }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4voro13guess_optimalEifffRiS0_S0_(i32 noundef, float noundef, float noundef, float noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull ptr @_ZN7Riemann20CreateVoroContrainerERKSt6vectorIN5Maths8TVector3IfEESaIS3_EERKNS1_6TAABB3IfEEf(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(24) %1, float noundef %2) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.Maths::TAABB3", align 4
  %5 = alloca %"class.Maths::TVector3", align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"class.voro::voro_compute", align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #7
  call void @_ZN5Maths6TAABB3IfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(24) %1)
  %14 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZN5Maths6TAABB3IfE7ThickenEf(ptr noundef nonnull align 4 dereferenceable(24) %4, float noundef 0x3F847AE140000000)
  %15 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZN5Maths6TAABB3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(24) %14)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #7
  call void @_ZNK5Maths6TAABB3IfE7GetSizeEv(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %5, ptr noundef nonnull align 4 dereferenceable(24) %4)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  %16 = call noundef i64 @_ZNKSt6vectorIN5Maths8TVector3IfEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  %17 = trunc i64 %16 to i32
  %18 = load float, ptr %5, align 4, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %5, i64 4
  %20 = load float, ptr %19, align 4, !tbaa !10
  %21 = getelementptr inbounds i8, ptr %5, i64 8
  %22 = load float, ptr %21, align 4, !tbaa !11
  call void @_ZN4voro13guess_optimalEifffRiS0_S0_(i32 noundef %17, float noundef %18, float noundef %20, float noundef %22, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %23 = call noalias noundef nonnull dereferenceable(208) ptr @_Znwm(i64 noundef 208) #8
  %24 = load float, ptr %4, align 4, !tbaa !12
  %25 = fpext float %24 to double
  %26 = getelementptr inbounds i8, ptr %4, i64 12
  %27 = load float, ptr %26, align 4, !tbaa !14
  %28 = fpext float %27 to double
  %29 = getelementptr inbounds i8, ptr %4, i64 4
  %30 = load float, ptr %29, align 4, !tbaa !15
  %31 = fpext float %30 to double
  %32 = getelementptr inbounds i8, ptr %4, i64 16
  %33 = load float, ptr %32, align 4, !tbaa !16
  %34 = fpext float %33 to double
  %35 = getelementptr inbounds i8, ptr %4, i64 8
  %36 = load float, ptr %35, align 4, !tbaa !17
  %37 = fpext float %36 to double
  %38 = getelementptr inbounds i8, ptr %4, i64 20
  %39 = load float, ptr %38, align 4, !tbaa !18
  %40 = fpext float %39 to double
  %41 = load i32, ptr %6, align 4, !tbaa !19
  %42 = load i32, ptr %7, align 4, !tbaa !19
  %43 = load i32, ptr %8, align 4, !tbaa !19
  invoke void @_ZN4voro9containerC2Eddddddiiibbbi(ptr noundef nonnull align 8 dereferenceable(204) %23, double noundef %25, double noundef %28, double noundef %31, double noundef %34, double noundef %37, double noundef %40, i32 noundef %41, i32 noundef %42, i32 noundef %43, i1 noundef zeroext false, i1 noundef zeroext false, i1 noundef zeroext false, i32 noundef 10)
          to label %44 unwind label %50

44:                                               ; preds = %3
  %45 = fcmp ogt float %2, 0.000000e+00
  br i1 %45, label %47, label %.preheader

.preheader:                                       ; preds = %44
  %46 = call noundef i64 @_ZNKSt6vectorIN5Maths8TVector3IfEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  %.not = icmp eq i64 %46, 0
  br i1 %.not, label %.loopexit, label %.lr.ph

47:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %9) #7
  call void @_ZNK4voro9container12make_computeEv(ptr dead_on_unwind nonnull writable sret(%"class.voro::voro_compute") align 8 %9, ptr noundef nonnull align 8 dereferenceable(204) %23)
  %48 = call noundef i64 @_ZNKSt6vectorIN5Maths8TVector3IfEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  %.not50 = icmp eq i64 %48, 0
  br i1 %.not50, label %._crit_edge, label %.lr.ph49

.lr.ph49:                                         ; preds = %47
  %49 = fpext float %2 to double
  br label %52

._crit_edge:                                      ; preds = %88, %47
  call void @_ZN4voro12voro_computeINS_9containerEED2Ev(ptr noundef nonnull align 8 dereferenceable(160) %9) #7
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %9) #7
  br label %.loopexit

50:                                               ; preds = %3
  %51 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %23, i64 noundef 208) #9
  br label %105

52:                                               ; preds = %.lr.ph49, %88
  %.04348 = phi i64 [ 0, %.lr.ph49 ], [ %89, %88 ]
  %53 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.04348) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #7
  %54 = load float, ptr %53, align 4, !tbaa !5
  %55 = fpext float %54 to double
  %56 = getelementptr inbounds i8, ptr %53, i64 4
  %57 = load float, ptr %56, align 4, !tbaa !10
  %58 = fpext float %57 to double
  %59 = getelementptr inbounds i8, ptr %53, i64 8
  %60 = load float, ptr %59, align 4, !tbaa !11
  %61 = fpext float %60 to double
  %62 = invoke noundef zeroext i1 @_ZNK4voro9container17find_voronoi_cellEdddRdS1_S1_RiRNS_12voro_computeIS0_EE(ptr noundef nonnull align 8 dereferenceable(204) %23, double noundef %55, double noundef %58, double noundef %61, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 8 dereferenceable(160) %9)
          to label %63 unwind label %81

63:                                               ; preds = %52
  %.pre = load float, ptr %53, align 4, !tbaa !5
  %64 = load <2 x float>, ptr %56, align 4, !tbaa !21
  %65 = fpext float %.pre to double
  br i1 %62, label %67, label %._crit_edge53

._crit_edge53:                                    ; preds = %63
  %66 = fpext <2 x float> %64 to <2 x double>
  br label %83

67:                                               ; preds = %63
  %68 = load double, ptr %10, align 8, !tbaa !22
  %69 = fsub double %65, %68
  %70 = fpext <2 x float> %64 to <2 x double>
  %71 = load double, ptr %11, align 8, !tbaa !22
  %72 = extractelement <2 x double> %70, i64 0
  %73 = fsub double %72, %71
  %74 = load double, ptr %12, align 8, !tbaa !22
  %75 = extractelement <2 x double> %70, i64 1
  %76 = fsub double %75, %74
  %77 = fmul double %73, %73
  %78 = call double @llvm.fmuladd.f64(double %69, double %69, double %77)
  %79 = call double @llvm.fmuladd.f64(double %76, double %76, double %78)
  %80 = fcmp uge double %79, %49
  br i1 %80, label %83, label %88

81:                                               ; preds = %83, %52
  %82 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @_ZN4voro12voro_computeINS_9containerEED2Ev(ptr noundef nonnull align 8 dereferenceable(160) %9) #7
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %9) #7
  br label %105

83:                                               ; preds = %._crit_edge53, %67
  %84 = phi <2 x double> [ %66, %._crit_edge53 ], [ %70, %67 ]
  %85 = trunc i64 %.04348 to i32
  %86 = extractelement <2 x double> %84, i64 0
  %87 = extractelement <2 x double> %84, i64 1
  invoke void @_ZN4voro9container3putEiddd(ptr noundef nonnull align 8 dereferenceable(204) %23, i32 noundef %85, double noundef %65, double noundef %86, double noundef %87)
          to label %88 unwind label %81

88:                                               ; preds = %83, %67
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  %89 = add nuw i64 %.04348, 1
  %90 = call noundef i64 @_ZNKSt6vectorIN5Maths8TVector3IfEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  %91 = icmp ult i64 %89, %90
  br i1 %91, label %52, label %._crit_edge, !llvm.loop !24

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %.04147 = phi i64 [ %102, %.lr.ph ], [ 0, %.preheader ]
  %92 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.04147) #7
  %93 = trunc i64 %.04147 to i32
  %94 = load float, ptr %92, align 4, !tbaa !5
  %95 = fpext float %94 to double
  %96 = getelementptr inbounds i8, ptr %92, i64 4
  %97 = load float, ptr %96, align 4, !tbaa !10
  %98 = fpext float %97 to double
  %99 = getelementptr inbounds i8, ptr %92, i64 8
  %100 = load float, ptr %99, align 4, !tbaa !11
  %101 = fpext float %100 to double
  call void @_ZN4voro9container3putEiddd(ptr noundef nonnull align 8 dereferenceable(204) %23, i32 noundef %93, double noundef %95, double noundef %98, double noundef %101)
  %102 = add nuw i64 %.04147, 1
  %103 = call noundef i64 @_ZNKSt6vectorIN5Maths8TVector3IfEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  %104 = icmp ult i64 %102, %103
  br i1 %104, label %.lr.ph, label %.loopexit, !llvm.loop !26

.loopexit:                                        ; preds = %.lr.ph, %.preheader, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  ret ptr %23

105:                                              ; preds = %81, %50
  %.pn = phi { ptr, i32 } [ %82, %81 ], [ %51, %50 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  resume { ptr, i32 } %.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Maths6TAABB3IfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(24) ptr @_ZN5Maths6TAABB3IfE7ThickenEf(ptr noundef nonnull align 4 dereferenceable(24), float noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(24) ptr @_ZN5Maths6TAABB3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths6TAABB3IfE7GetSizeEv(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(24)) local_unnamed_addr #3 align 2

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4voro9containerC2Eddddddiiibbbi(ptr noundef nonnull align 8 dereferenceable(204), double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, i32 noundef, i32 noundef, i32 noundef, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext, i32 noundef) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4voro9container12make_computeEv(ptr dead_on_unwind noalias writable sret(%"class.voro::voro_compute") align 8, ptr noundef nonnull align 8 dereferenceable(204)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4voro9container17find_voronoi_cellEdddRdS1_S1_RiRNS_12voro_computeIS0_EE(ptr noundef nonnull align 8 dereferenceable(204), double noundef, double noundef, double noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(160)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4voro9container3putEiddd(ptr noundef nonnull align 8 dereferenceable(204), i32 noundef, double noundef, double noundef, double noundef) local_unnamed_addr #2 align 2

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

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

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

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


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