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

; 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::TVector3" = type { float, float, float }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<Riemann::Voronoi3::Cell, std::allocator<Riemann::Voronoi3::Cell>>::_Vector_impl" }
%"struct.std::_Vector_base<Riemann::Voronoi3::Cell, std::allocator<Riemann::Voronoi3::Cell>>::_Vector_impl" = type { %"struct.std::_Vector_base<Riemann::Voronoi3::Cell, std::allocator<Riemann::Voronoi3::Cell>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Riemann::Voronoi3::Cell, std::allocator<Riemann::Voronoi3::Cell>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.Riemann::Voronoi3::Plane" = type { float, float, float, float }
%"class.__gnu_cxx::__normal_iterator.31" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::vector.20" = type { %"struct.std::_Vector_base.21" }
%"struct.std::_Vector_base.21" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Riemann::Voronoi3" = type { i64, ptr, %"class.std::vector", %"class.Maths::TAABB3", %"class.std::vector.0", %"class.std::vector.5", %"class.std::vector.10", %"class.std::vector" }
%"class.Maths::TAABB3" = type { %"class.Maths::TVector3", %"class.Maths::TVector3" }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<Riemann::Voronoi3::Plane, std::allocator<Riemann::Voronoi3::Plane>>::_Vector_impl" }
%"struct.std::_Vector_base<Riemann::Voronoi3::Plane, std::allocator<Riemann::Voronoi3::Plane>>::_Vector_impl" = type { %"struct.std::_Vector_base<Riemann::Voronoi3::Plane, std::allocator<Riemann::Voronoi3::Plane>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Riemann::Voronoi3::Plane, std::allocator<Riemann::Voronoi3::Plane>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Maths::TVector3<float>, std::allocator<Maths::TVector3<float>>>::_Vector_impl" }
%"struct.std::_Vector_base<Maths::TVector3<float>, std::allocator<Maths::TVector3<float>>>::_Vector_impl" = type { %"struct.std::_Vector_base<Maths::TVector3<float>, std::allocator<Maths::TVector3<float>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Maths::TVector3<float>, std::allocator<Maths::TVector3<float>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.Riemann::Voronoi3::Cell" = type { %"class.std::vector", %"class.std::vector.20", %"class.std::vector.20", %"class.std::vector" }

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Riemann8Voronoi315ComputeAllCellsERSt6vectorINS0_4CellESaIS2_EEb(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef nonnull align 8 dereferenceable(24), i1 noundef zeroext) #2 align 2

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7Riemann8Voronoi35BuildEv(ptr noundef nonnull align 8 dereferenceable(160) %0) #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.std::vector.15", align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i64, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.Maths::TVector3", align 4
  %15 = alloca %"class.Maths::TVector3", align 4
  %16 = alloca %"struct.Riemann::Voronoi3::Plane", align 4
  %17 = alloca %"class.__gnu_cxx::__normal_iterator.31", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator.31", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.31", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = alloca %"class.std::vector.20", align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %26 = load ptr, ptr %2, align 8
  %27 = getelementptr inbounds %"class.Riemann::Voronoi3", ptr %26, i32 0, i32 4
  call void @_ZNSt6vectorIN7Riemann8Voronoi35PlaneESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #5
  %28 = getelementptr inbounds %"class.Riemann::Voronoi3", ptr %26, i32 0, i32 5
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #5
  %29 = getelementptr inbounds %"class.Riemann::Voronoi3", ptr %26, i32 0, i32 6
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #5
  %30 = getelementptr inbounds %"class.Riemann::Voronoi3", ptr %26, i32 0, i32 7
  call void @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %3) #5
  call void @_ZNSt6vectorIN7Riemann8Voronoi34CellESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  invoke void @_ZN7Riemann8Voronoi315ComputeAllCellsERSt6vectorINS0_4CellESaIS2_EEb(ptr noundef nonnull align 8 dereferenceable(160) %26, ptr noundef nonnull align 8 dereferenceable(24) %3, i1 noundef zeroext true)
          to label %31 unwind label %39

31:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  %32 = call noundef i64 @_ZNKSt6vectorIN7Riemann8Voronoi34CellESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  %33 = trunc i64 %32 to i32
  store i32 %33, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %34

34:                                               ; preds = %222, %31
  %35 = load i32, ptr %7, align 4, !tbaa !9
  %36 = load i32, ptr %6, align 4, !tbaa !9
  %37 = icmp slt i32 %35, %36
  br i1 %37, label %43, label %38

38:                                               ; preds = %34
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %225

39:                                               ; preds = %1
  %40 = landingpad { ptr, i32 }
          cleanup
  %41 = extractvalue { ptr, i32 } %40, 0
  store ptr %41, ptr %4, align 8
  %42 = extractvalue { ptr, i32 } %40, 1
  store i32 %42, ptr %5, align 4
  br label %226

43:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 -1, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %44 = load i32, ptr %7, align 4, !tbaa !9
  %45 = sext i32 %44 to i64
  %46 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNSt6vectorIN7Riemann8Voronoi34CellESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %45) #5
  store ptr %46, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store i64 0, ptr %12, align 8, !tbaa !11
  br label %47

47:                                               ; preds = %202, %43
  %48 = load i64, ptr %12, align 8, !tbaa !11
  %49 = load ptr, ptr %10, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.Riemann::Voronoi3::Cell", ptr %49, i32 0, i32 2
  %51 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %50) #5
  %52 = icmp ult i64 %48, %51
  br i1 %52, label %54, label %53

53:                                               ; preds = %47
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %221

54:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %55 = load ptr, ptr %10, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.Riemann::Voronoi3::Cell", ptr %55, i32 0, i32 2
  %57 = load i64, ptr %12, align 8, !tbaa !11
  %58 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %56, i64 noundef %57) #5
  %59 = load i32, ptr %58, align 4, !tbaa !9
  store i32 %59, ptr %13, align 4, !tbaa !9
  %60 = load i32, ptr %7, align 4, !tbaa !9
  %61 = load i32, ptr %13, align 4, !tbaa !9
  %62 = icmp slt i32 %60, %61
  br i1 %62, label %63, label %64

63:                                               ; preds = %54
  store i32 7, ptr %8, align 4
  br label %199

64:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 12, ptr %14) #5
  %65 = load ptr, ptr %10, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.Riemann::Voronoi3::Cell", ptr %65, i32 0, i32 3
  %67 = load i64, ptr %12, align 8, !tbaa !11
  %68 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %66, i64 noundef %67) #5
  invoke void @_ZN5Maths8TVector3IfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %14, ptr noundef nonnull align 4 dereferenceable(12) %68)
          to label %69 unwind label %89

69:                                               ; preds = %64
  %70 = invoke noundef zeroext i1 @_ZNK5Maths8TVector3IfE6IsZeroEv(ptr noundef nonnull align 4 dereferenceable(12) %14)
          to label %71 unwind label %89

71:                                               ; preds = %69
  br i1 %70, label %72, label %99

72:                                               ; preds = %71
  %73 = load i32, ptr %13, align 4, !tbaa !9
  %74 = icmp sgt i32 %73, -1
  br i1 %74, label %75, label %97

75:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 12, ptr %15) #5
  %76 = getelementptr inbounds %"class.Riemann::Voronoi3", ptr %26, i32 0, i32 2
  %77 = load i32, ptr %13, align 4, !tbaa !9
  %78 = sext i32 %77 to i64
  %79 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %76, i64 noundef %78) #5
  %80 = getelementptr inbounds %"class.Riemann::Voronoi3", ptr %26, i32 0, i32 2
  %81 = load i32, ptr %7, align 4, !tbaa !9
  %82 = sext i32 %81 to i64
  %83 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %80, i64 noundef %82) #5
  invoke void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %15, ptr noundef nonnull align 4 dereferenceable(12) %79, ptr noundef nonnull align 4 dereferenceable(12) %83)
          to label %84 unwind label %93

84:                                               ; preds = %75
  %85 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %14, ptr noundef nonnull align 4 dereferenceable(12) %15)
          to label %86 unwind label %93

86:                                               ; preds = %84
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #5
  %87 = invoke noundef float @_ZN5Maths8TVector3IfE9NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12) %14)
          to label %88 unwind label %89

88:                                               ; preds = %86
  br label %98

89:                                               ; preds = %86, %69, %64
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %4, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %5, align 4
  br label %220

93:                                               ; preds = %84, %75
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %4, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #5
  br label %220

97:                                               ; preds = %72
  store i32 7, ptr %8, align 4
  br label %198

98:                                               ; preds = %88
  br label %99

99:                                               ; preds = %98, %71
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #5
  %100 = getelementptr inbounds %"struct.Riemann::Voronoi3::Plane", ptr %16, i32 0, i32 0
  %101 = getelementptr inbounds %"class.Maths::TVector3", ptr %14, i32 0, i32 0
  %102 = load float, ptr %101, align 4, !tbaa !13
  store float %102, ptr %100, align 4, !tbaa !16
  %103 = getelementptr inbounds %"struct.Riemann::Voronoi3::Plane", ptr %16, i32 0, i32 1
  %104 = getelementptr inbounds %"class.Maths::TVector3", ptr %14, i32 0, i32 1
  %105 = load float, ptr %104, align 4, !tbaa !18
  store float %105, ptr %103, align 4, !tbaa !19
  %106 = getelementptr inbounds %"struct.Riemann::Voronoi3::Plane", ptr %16, i32 0, i32 2
  %107 = getelementptr inbounds %"class.Maths::TVector3", ptr %14, i32 0, i32 2
  %108 = load float, ptr %107, align 4, !tbaa !20
  store float %108, ptr %106, align 4, !tbaa !21
  %109 = getelementptr inbounds %"struct.Riemann::Voronoi3::Plane", ptr %16, i32 0, i32 3
  %110 = load ptr, ptr %10, align 8, !tbaa !5
  %111 = getelementptr inbounds %"struct.Riemann::Voronoi3::Cell", ptr %110, i32 0, i32 0
  %112 = load ptr, ptr %10, align 8, !tbaa !5
  %113 = getelementptr inbounds %"struct.Riemann::Voronoi3::Cell", ptr %112, i32 0, i32 1
  %114 = load i32, ptr %11, align 4, !tbaa !9
  %115 = add nsw i32 %114, 1
  %116 = sext i32 %115 to i64
  %117 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %113, i64 noundef %116) #5
  %118 = load i32, ptr %117, align 4, !tbaa !9
  %119 = sext i32 %118 to i64
  %120 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %111, i64 noundef %119) #5
  %121 = invoke noundef float @_ZNK5Maths8TVector3IfE3DotERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %14, ptr noundef nonnull align 4 dereferenceable(12) %120)
          to label %122 unwind label %150

122:                                              ; preds = %99
  store float %121, ptr %109, align 4, !tbaa !22
  %123 = load i32, ptr %9, align 4, !tbaa !9
  %124 = icmp slt i32 %123, 0
  br i1 %124, label %125, label %158

125:                                              ; preds = %122
  %126 = getelementptr inbounds %"class.Riemann::Voronoi3", ptr %26, i32 0, i32 7
  %127 = call noundef i64 @_ZNKSt6vectorIN5Maths8TVector3IfEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %126) #5
  %128 = trunc i64 %127 to i32
  store i32 %128, ptr %9, align 4, !tbaa !9
  %129 = getelementptr inbounds %"class.Riemann::Voronoi3", ptr %26, i32 0, i32 7
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %130 = getelementptr inbounds %"class.Riemann::Voronoi3", ptr %26, i32 0, i32 7
  %131 = call ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %130) #5
  %132 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  store ptr %131, ptr %132, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKN5Maths8TVector3IfEESt6vectorIS3_SaIS3_EEEC2IPS3_vEERKNS0_IT_S8_EE(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #5
  %133 = load ptr, ptr %10, align 8, !tbaa !5
  %134 = getelementptr inbounds %"struct.Riemann::Voronoi3::Cell", ptr %133, i32 0, i32 0
  %135 = call ptr @_ZNKSt6vectorIN5Maths8TVector3IfEESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %134) #5
  %136 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.31", ptr %19, i32 0, i32 0
  store ptr %135, ptr %136, align 8
  %137 = load ptr, ptr %10, align 8, !tbaa !5
  %138 = getelementptr inbounds %"struct.Riemann::Voronoi3::Cell", ptr %137, i32 0, i32 0
  %139 = call ptr @_ZNKSt6vectorIN5Maths8TVector3IfEESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %138) #5
  %140 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.31", ptr %20, i32 0, i32 0
  store ptr %139, ptr %140, align 8
  %141 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.31", ptr %17, i32 0, i32 0
  %142 = load ptr, ptr %141, align 8
  %143 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.31", ptr %19, i32 0, i32 0
  %144 = load ptr, ptr %143, align 8
  %145 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.31", ptr %20, i32 0, i32 0
  %146 = load ptr, ptr %145, align 8
  %147 = invoke ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EE6insertIN9__gnu_cxx17__normal_iteratorIPKS2_S4_EEvEENS7_IPS2_S4_EESA_T_SD_(ptr noundef nonnull align 8 dereferenceable(24) %129, ptr %142, ptr %144, ptr %146)
          to label %148 unwind label %154

148:                                              ; preds = %125
  %149 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  store ptr %147, ptr %149, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %158

150:                                              ; preds = %99
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %4, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %5, align 4
  br label %219

154:                                              ; preds = %125
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %4, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %219

158:                                              ; preds = %148, %122
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #5
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  %159 = load ptr, ptr %10, align 8, !tbaa !5
  %160 = getelementptr inbounds %"struct.Riemann::Voronoi3::Cell", ptr %159, i32 0, i32 1
  %161 = load i32, ptr %11, align 4, !tbaa !9
  %162 = sext i32 %161 to i64
  %163 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %160, i64 noundef %162) #5
  %164 = load i32, ptr %163, align 4, !tbaa !9
  store i32 %164, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %165

165:                                              ; preds = %183, %158
  %166 = load i32, ptr %24, align 4, !tbaa !9
  %167 = load i32, ptr %23, align 4, !tbaa !9
  %168 = icmp slt i32 %166, %167
  br i1 %168, label %170, label %169

169:                                              ; preds = %165
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br label %190

170:                                              ; preds = %165
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  %171 = load i32, ptr %9, align 4, !tbaa !9
  %172 = load ptr, ptr %10, align 8, !tbaa !5
  %173 = getelementptr inbounds %"struct.Riemann::Voronoi3::Cell", ptr %172, i32 0, i32 1
  %174 = load i32, ptr %11, align 4, !tbaa !9
  %175 = add nsw i32 %174, 1
  %176 = load i32, ptr %24, align 4, !tbaa !9
  %177 = add nsw i32 %175, %176
  %178 = sext i32 %177 to i64
  %179 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %173, i64 noundef %178) #5
  %180 = load i32, ptr %179, align 4, !tbaa !9
  %181 = add nsw i32 %171, %180
  store i32 %181, ptr %25, align 4, !tbaa !9
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %182 unwind label %186

182:                                              ; preds = %170
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  br label %183

183:                                              ; preds = %182
  %184 = load i32, ptr %24, align 4, !tbaa !9
  %185 = add nsw i32 %184, 1
  store i32 %185, ptr %24, align 4, !tbaa !9
  br label %165, !llvm.loop !23

186:                                              ; preds = %170
  %187 = landingpad { ptr, i32 }
          cleanup
  %188 = extractvalue { ptr, i32 } %187, 0
  store ptr %188, ptr %4, align 8
  %189 = extractvalue { ptr, i32 } %187, 1
  store i32 %189, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br label %218

190:                                              ; preds = %169
  %191 = getelementptr inbounds %"class.Riemann::Voronoi3", ptr %26, i32 0, i32 4
  invoke void @_ZNSt6vectorIN7Riemann8Voronoi35PlaneESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %191, ptr noundef nonnull align 4 dereferenceable(16) %16)
          to label %192 unwind label %214

192:                                              ; preds = %190
  %193 = getelementptr inbounds %"class.Riemann::Voronoi3", ptr %26, i32 0, i32 5
  %194 = invoke noundef nonnull align 1 ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE12emplace_backIJRiS5_EEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %193, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %195 unwind label %214

195:                                              ; preds = %192
  %196 = getelementptr inbounds %"class.Riemann::Voronoi3", ptr %26, i32 0, i32 6
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %196, ptr noundef nonnull align 8 dereferenceable(24) %22)
          to label %197 unwind label %214

197:                                              ; preds = %195
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #5
  store i32 0, ptr %8, align 4
  br label %198

198:                                              ; preds = %197, %97
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #5
  br label %199

199:                                              ; preds = %198, %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  %200 = load i32, ptr %8, align 4
  switch i32 %200, label %232 [
    i32 0, label %201
    i32 7, label %202
  ]

201:                                              ; preds = %199
  br label %202

202:                                              ; preds = %201, %199
  %203 = load i64, ptr %12, align 8, !tbaa !11
  %204 = add i64 %203, 1
  store i64 %204, ptr %12, align 8, !tbaa !11
  %205 = load ptr, ptr %10, align 8, !tbaa !5
  %206 = getelementptr inbounds %"struct.Riemann::Voronoi3::Cell", ptr %205, i32 0, i32 1
  %207 = load i32, ptr %11, align 4, !tbaa !9
  %208 = sext i32 %207 to i64
  %209 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %206, i64 noundef %208) #5
  %210 = load i32, ptr %209, align 4, !tbaa !9
  %211 = add nsw i32 1, %210
  %212 = load i32, ptr %11, align 4, !tbaa !9
  %213 = add nsw i32 %212, %211
  store i32 %213, ptr %11, align 4, !tbaa !9
  br label %47, !llvm.loop !25

214:                                              ; preds = %195, %192, %190
  %215 = landingpad { ptr, i32 }
          cleanup
  %216 = extractvalue { ptr, i32 } %215, 0
  store ptr %216, ptr %4, align 8
  %217 = extractvalue { ptr, i32 } %215, 1
  store i32 %217, ptr %5, align 4
  br label %218

218:                                              ; preds = %214, %186
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #5
  br label %219

219:                                              ; preds = %218, %154, %150
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #5
  br label %220

220:                                              ; preds = %219, %93, %89
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %226

221:                                              ; preds = %53
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %222

222:                                              ; preds = %221
  %223 = load i32, ptr %7, align 4, !tbaa !9
  %224 = add nsw i32 %223, 1
  store i32 %224, ptr %7, align 4, !tbaa !9
  br label %34, !llvm.loop !26

225:                                              ; preds = %38
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @_ZNSt6vectorIN7Riemann8Voronoi34CellESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #5
  ret void

226:                                              ; preds = %220, %39
  call void @_ZNSt6vectorIN7Riemann8Voronoi34CellESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #5
  br label %227

227:                                              ; preds = %226
  %228 = load ptr, ptr %4, align 8
  %229 = load i32, ptr %5, align 4
  %230 = insertvalue { ptr, i32 } poison, ptr %228, 0
  %231 = insertvalue { ptr, i32 } %230, i32 %229, 1
  resume { ptr, i32 } %231

232:                                              ; preds = %199
  unreachable
}

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5Maths8TVector3IfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK5Maths8TVector3IfE6IsZeroEv(ptr noundef nonnull align 4 dereferenceable(12)) #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK5Maths8TVector3IfE3DotERKS1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #4 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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


; 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::TVector3" = type { float, float, float }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<Riemann::Voronoi3::Cell, std::allocator<Riemann::Voronoi3::Cell>>::_Vector_impl" }
%"struct.std::_Vector_base<Riemann::Voronoi3::Cell, std::allocator<Riemann::Voronoi3::Cell>>::_Vector_impl" = type { %"struct.std::_Vector_base<Riemann::Voronoi3::Cell, std::allocator<Riemann::Voronoi3::Cell>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Riemann::Voronoi3::Cell, std::allocator<Riemann::Voronoi3::Cell>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.Riemann::Voronoi3::Plane" = type { float, float, float, float }
%"class.__gnu_cxx::__normal_iterator.31" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::vector.20" = type { %"struct.std::_Vector_base.21" }
%"struct.std::_Vector_base.21" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

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

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

declare i32 @__gxx_personality_v0(...)

; 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 #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Riemann8Voronoi315ComputeAllCellsERSt6vectorINS0_4CellESaIS2_EEb(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef nonnull align 8 dereferenceable(24), i1 noundef zeroext) local_unnamed_addr #2 align 2

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7Riemann8Voronoi35BuildEv(ptr noundef nonnull align 8 dereferenceable(160) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::vector.15", align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"class.Maths::TVector3", align 8
  %6 = alloca %"class.Maths::TVector3", align 4
  %7 = alloca %"struct.Riemann::Voronoi3::Plane", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.31", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.std::vector.20", align 8
  %11 = alloca i32, align 4
  %12 = getelementptr inbounds i8, ptr %0, i64 64
  tail call void @_ZNSt6vectorIN7Riemann8Voronoi35PlaneESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  %13 = getelementptr inbounds i8, ptr %0, i64 88
  tail call void @_ZNSt6vectorISt4pairIiiESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  %14 = getelementptr inbounds i8, ptr %0, i64 112
  tail call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  %15 = getelementptr inbounds i8, ptr %0, i64 136
  tail call void @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #5
  call void @_ZNSt6vectorIN7Riemann8Voronoi34CellESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  invoke void @_ZN7Riemann8Voronoi315ComputeAllCellsERSt6vectorINS0_4CellESaIS2_EEb(ptr noundef nonnull align 8 dereferenceable(160) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i1 noundef zeroext true)
          to label %16 unwind label %24

16:                                               ; preds = %1
  %17 = call noundef i64 @_ZNKSt6vectorIN7Riemann8Voronoi34CellESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %18 = trunc i64 %17 to i32
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  store i32 0, ptr %3, align 4, !tbaa !5
  %19 = icmp sgt i32 %18, 0
  br i1 %19, label %.lr.ph55, label %._crit_edge56

.lr.ph55:                                         ; preds = %16
  %20 = getelementptr inbounds i8, ptr %0, i64 16
  %21 = getelementptr inbounds i8, ptr %7, i64 8
  %22 = getelementptr inbounds i8, ptr %5, i64 8
  %23 = getelementptr inbounds i8, ptr %7, i64 12
  br label %26

._crit_edge56:                                    ; preds = %._crit_edge52, %16
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  call void @_ZNSt6vectorIN7Riemann8Voronoi34CellESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #5
  ret void

24:                                               ; preds = %1
  %25 = landingpad { ptr, i32 }
          cleanup
  br label %114

26:                                               ; preds = %.lr.ph55, %._crit_edge52
  %storemerge53 = phi i32 [ 0, %.lr.ph55 ], [ %34, %._crit_edge52 ]
  %27 = sext i32 %storemerge53 to i64
  %28 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNSt6vectorIN7Riemann8Voronoi34CellESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %27) #5
  %29 = getelementptr inbounds i8, ptr %28, i64 48
  %30 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #5
  %.not = icmp eq i64 %30, 0
  br i1 %.not, label %._crit_edge52, label %.lr.ph51

.lr.ph51:                                         ; preds = %26
  %31 = getelementptr inbounds i8, ptr %28, i64 72
  %32 = getelementptr inbounds i8, ptr %28, i64 24
  br label %36

._crit_edge52:                                    ; preds = %100, %26
  %33 = load i32, ptr %3, align 4, !tbaa !5
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr %3, align 4, !tbaa !5
  %35 = icmp slt i32 %34, %18
  br i1 %35, label %26, label %._crit_edge56, !llvm.loop !9

36:                                               ; preds = %.lr.ph51, %100
  %.03549 = phi i32 [ -1, %.lr.ph51 ], [ %.338, %100 ]
  %.03948 = phi i64 [ 0, %.lr.ph51 ], [ %101, %100 ]
  %.04047 = phi i32 [ 0, %.lr.ph51 ], [ %106, %100 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  %37 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %.03948) #5
  %38 = load i32, ptr %37, align 4, !tbaa !5
  store i32 %38, ptr %4, align 4, !tbaa !5
  %39 = load i32, ptr %3, align 4, !tbaa !5
  %40 = icmp slt i32 %39, %38
  br i1 %40, label %100, label %41

41:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #5
  %42 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %.03948) #5
  call void @_ZN5Maths8TVector3IfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %42)
  %43 = invoke noundef zeroext i1 @_ZNK5Maths8TVector3IfE6IsZeroEv(ptr noundef nonnull align 4 dereferenceable(12) %5)
          to label %44 unwind label %57

44:                                               ; preds = %41
  br i1 %43, label %45, label %61

45:                                               ; preds = %44
  %46 = load i32, ptr %4, align 4, !tbaa !5
  %47 = icmp sgt i32 %46, -1
  br i1 %47, label %48, label %99

48:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #5
  %49 = zext nneg i32 %46 to i64
  %50 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %49) #5
  %51 = load i32, ptr %3, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %52) #5
  invoke void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %6, ptr noundef nonnull align 4 dereferenceable(12) %50, ptr noundef nonnull align 4 dereferenceable(12) %53)
          to label %54 unwind label %59

54:                                               ; preds = %48
  %55 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #5
  %56 = invoke noundef float @_ZN5Maths8TVector3IfE9NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12) %5)
          to label %61 unwind label %57

57:                                               ; preds = %54, %41
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %113

59:                                               ; preds = %48
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #5
  br label %113

61:                                               ; preds = %54, %44
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  %62 = load <2 x float>, ptr %5, align 8, !tbaa !11
  store <2 x float> %62, ptr %7, align 8, !tbaa !11
  %63 = load float, ptr %22, align 8, !tbaa !13
  store float %63, ptr %21, align 8, !tbaa !15
  %64 = add nsw i32 %.04047, 1
  %65 = sext i32 %64 to i64
  %66 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %65) #5
  %67 = load i32, ptr %66, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %68) #5
  %70 = call noundef float @_ZNK5Maths8TVector3IfE3DotERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %69)
  store float %70, ptr %23, align 4, !tbaa !17
  %71 = icmp slt i32 %.03549, 0
  br i1 %71, label %72, label %83

72:                                               ; preds = %61
  %73 = call noundef i64 @_ZNKSt6vectorIN5Maths8TVector3IfEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %74 = call ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  store ptr %74, ptr %9, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKN5Maths8TVector3IfEESt6vectorIS3_SaIS3_EEEC2IPS3_vEERKNS0_IT_S8_EE(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  %75 = call ptr @_ZNKSt6vectorIN5Maths8TVector3IfEESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #5
  %76 = call ptr @_ZNKSt6vectorIN5Maths8TVector3IfEESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #5
  %77 = load ptr, ptr %8, align 8
  %78 = invoke ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EE6insertIN9__gnu_cxx17__normal_iteratorIPKS2_S4_EEvEENS7_IPS2_S4_EESA_T_SD_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr %77, ptr %75, ptr %76)
          to label %79 unwind label %81

79:                                               ; preds = %72
  %80 = trunc i64 %73 to i32
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  br label %83

81:                                               ; preds = %72
  %82 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  br label %112

83:                                               ; preds = %79, %61
  %.136 = phi i32 [ %80, %79 ], [ %.03549, %61 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #5
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  %84 = sext i32 %.04047 to i64
  %85 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %84) #5
  %86 = load i32, ptr %85, align 4, !tbaa !5
  %87 = icmp sgt i32 %86, 0
  br i1 %87, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %83
  %wide.trip.count = zext nneg i32 %86 to i64
  br label %.lr.ph

._crit_edge:                                      ; preds = %92, %83
  invoke void @_ZNSt6vectorIN7Riemann8Voronoi35PlaneESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 4 dereferenceable(16) %7)
          to label %95 unwind label %109

.lr.ph:                                           ; preds = %.lr.ph.preheader, %92
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %92 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #5
  %88 = add nsw i64 %indvars.iv, %65
  %89 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %88) #5
  %90 = load i32, ptr %89, align 4, !tbaa !5
  %91 = add nsw i32 %90, %.136
  store i32 %91, ptr %11, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %92 unwind label %93

92:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !18

93:                                               ; preds = %.lr.ph
  %94 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  br label %111

95:                                               ; preds = %._crit_edge
  %96 = invoke noundef nonnull align 1 ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE12emplace_backIJRiS5_EEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %97 unwind label %109

97:                                               ; preds = %95
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %98 unwind label %109

98:                                               ; preds = %97
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  br label %99

99:                                               ; preds = %45, %98
  %.237 = phi i32 [ %.136, %98 ], [ %.03549, %45 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #5
  br label %100

100:                                              ; preds = %36, %99
  %.338 = phi i32 [ %.237, %99 ], [ %.03549, %36 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  %101 = add nuw i64 %.03948, 1
  %102 = sext i32 %.04047 to i64
  %103 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %102) #5
  %104 = load i32, ptr %103, align 4, !tbaa !5
  %105 = add i32 %.04047, 1
  %106 = add i32 %105, %104
  %107 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #5
  %108 = icmp ult i64 %101, %107
  br i1 %108, label %36, label %._crit_edge52, !llvm.loop !19

109:                                              ; preds = %97, %95, %._crit_edge
  %110 = landingpad { ptr, i32 }
          cleanup
  br label %111

111:                                              ; preds = %109, %93
  %.pn = phi { ptr, i32 } [ %94, %93 ], [ %110, %109 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #5
  br label %112

112:                                              ; preds = %111, %81
  %.pn.pn = phi { ptr, i32 } [ %.pn, %111 ], [ %82, %81 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  br label %113

113:                                              ; preds = %112, %59, %57
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %112 ], [ %58, %57 ], [ %60, %59 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  br label %114

114:                                              ; preds = %113, %24
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %113 ], [ %25, %24 ]
  call void @_ZNSt6vectorIN7Riemann8Voronoi34CellESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #5
  resume { ptr, i32 } %.pn.pn.pn.pn
}

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5Maths8TVector3IfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK5Maths8TVector3IfE6IsZeroEv(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK5Maths8TVector3IfE3DotERKS1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #4 align 2

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

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

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

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

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

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !12, i64 8}
!14 = !{!"_ZTSN5Maths8TVector3IfEE", !12, i64 0, !12, i64 4, !12, i64 8}
!15 = !{!16, !12, i64 8}
!16 = !{!"_ZTSN7Riemann8Voronoi35PlaneE", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12}
!17 = !{!16, !12, i64 12}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}


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