; LLVM IR from SourangshuGhosh/Fluid-Simulation-for-Computer-Graphics :: src (anisotropicparticlemesher)

; 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.vmath::vec3" = type { float, float, float }
%"class.vmath::mat3" = type { [9 x float] }
%struct.GridPointReference = type { i32 }
%"struct.AnisotropicParticleMesher::SurfaceParticle" = type { %"class.vmath::vec3", %struct.GridPointReference, i32 }
%class.AnisotropicParticleMesher = type { double, double, double, double, double, double, double, double, i32, double, i32, double, i32, i32, i32, double, i32, double, %class.SpatialPointGrid, %class.FragmentedVector, %class.FragmentedVector.10, %class.FragmentedVector.10, %class.FragmentedVector.16, %class.ScalarField, i32, i32, i32, [4 x i8], %class.Array3d.22 }
%class.SpatialPointGrid = type { i32, i32, i32, double, %"class.std::vector", %"class.std::vector.0", %class.Array3d, %class.AABB }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<GridPoint, std::allocator<GridPoint>>::_Vector_impl" }
%"struct.std::_Vector_base<GridPoint, std::allocator<GridPoint>>::_Vector_impl" = type { %"struct.std::_Vector_base<GridPoint, std::allocator<GridPoint>>::_Vector_impl_data" }
%"struct.std::_Vector_base<GridPoint, std::allocator<GridPoint>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = 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.Array3d = type { i32, i32, i32, ptr, i8, %"struct.SpatialPointGrid::CellNode", i32 }
%"struct.SpatialPointGrid::CellNode" = type { i32, i32 }
%class.AABB = type { %"class.vmath::vec3", double, double, double }
%class.FragmentedVector = type { %"class.std::vector.5", i32, i32, double, i32, i32 }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<FragmentedVector<AnisotropicParticleMesher::SurfaceParticle>::VectorNode, std::allocator<FragmentedVector<AnisotropicParticleMesher::SurfaceParticle>::VectorNode>>::_Vector_impl" }
%"struct.std::_Vector_base<FragmentedVector<AnisotropicParticleMesher::SurfaceParticle>::VectorNode, std::allocator<FragmentedVector<AnisotropicParticleMesher::SurfaceParticle>::VectorNode>>::_Vector_impl" = type { %"struct.std::_Vector_base<FragmentedVector<AnisotropicParticleMesher::SurfaceParticle>::VectorNode, std::allocator<FragmentedVector<AnisotropicParticleMesher::SurfaceParticle>::VectorNode>>::_Vector_impl_data" }
%"struct.std::_Vector_base<FragmentedVector<AnisotropicParticleMesher::SurfaceParticle>::VectorNode, std::allocator<FragmentedVector<AnisotropicParticleMesher::SurfaceParticle>::VectorNode>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.FragmentedVector.10 = type { %"class.std::vector.11", i32, i32, double, i32, i32 }
%"class.std::vector.11" = type { %"struct.std::_Vector_base.12" }
%"struct.std::_Vector_base.12" = type { %"struct.std::_Vector_base<FragmentedVector<GridPointReference>::VectorNode, std::allocator<FragmentedVector<GridPointReference>::VectorNode>>::_Vector_impl" }
%"struct.std::_Vector_base<FragmentedVector<GridPointReference>::VectorNode, std::allocator<FragmentedVector<GridPointReference>::VectorNode>>::_Vector_impl" = type { %"struct.std::_Vector_base<FragmentedVector<GridPointReference>::VectorNode, std::allocator<FragmentedVector<GridPointReference>::VectorNode>>::_Vector_impl_data" }
%"struct.std::_Vector_base<FragmentedVector<GridPointReference>::VectorNode, std::allocator<FragmentedVector<GridPointReference>::VectorNode>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.FragmentedVector.16 = type { %"class.std::vector.17", i32, i32, double, i32, i32 }
%"class.std::vector.17" = type { %"struct.std::_Vector_base.18" }
%"struct.std::_Vector_base.18" = type { %"struct.std::_Vector_base<FragmentedVector<vmath::vec3>::VectorNode, std::allocator<FragmentedVector<vmath::vec3>::VectorNode>>::_Vector_impl" }
%"struct.std::_Vector_base<FragmentedVector<vmath::vec3>::VectorNode, std::allocator<FragmentedVector<vmath::vec3>::VectorNode>>::_Vector_impl" = type { %"struct.std::_Vector_base<FragmentedVector<vmath::vec3>::VectorNode, std::allocator<FragmentedVector<vmath::vec3>::VectorNode>>::_Vector_impl_data" }
%"struct.std::_Vector_base<FragmentedVector<vmath::vec3>::VectorNode, std::allocator<FragmentedVector<vmath::vec3>::VectorNode>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.ScalarField = type { i32, i32, i32, double, double, double, double, double, double, double, double, i8, [7 x i8], %class.Array3d.22, %class.Array3d.23, %class.Array3d.22, %class.Array3d.23, i8, %"class.vmath::vec3" }
%class.Array3d.23 = type { i32, i32, i32, ptr, i8, i8, i32 }
%class.Array3d.22 = type <{ i32, i32, i32, [4 x i8], ptr, i8, [3 x i8], float, i32, [4 x i8] }>

declare i32 @__gxx_personality_v0(...)

; 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

declare void @_ZN5vmath4vec3C1Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #1

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

; Function Attrs: nounwind
declare void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN25AnisotropicParticleMesher15SurfaceParticleD2Ev(ptr noundef nonnull align 4 dereferenceable(20)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(20) ptr @_ZN16FragmentedVectorIN25AnisotropicParticleMesher15SurfaceParticleEEixEi(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) #4 align 2

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

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

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

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

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

declare void @_ZN16SpatialPointGrid32queryPointReferencesInsideSphereE18GridPointReferencedRSt6vectorIS0_SaIS0_EE(ptr noundef nonnull align 8 dereferenceable(152), i32, double noundef, ptr noundef nonnull align 8 dereferenceable(24)) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN25AnisotropicParticleMesher32_getWeightedMeanParticlePositionE18GridPointReferenceRSt6vectorIS0_SaIS0_EE(ptr dead_on_unwind noalias writable sret(%"class.vmath::vec3") align 4, ptr noundef nonnull align 8 dereferenceable(784), i32, ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN25AnisotropicParticleMesher15_evaluateKernelERNS_15SurfaceParticleES1_(ptr noundef nonnull align 8 dereferenceable(784), ptr noundef nonnull align 4 dereferenceable(20), ptr noundef nonnull align 4 dereferenceable(20)) #4 align 2

; Function Attrs: nounwind
declare void @_ZN5vmath4mat3D1Ev(ptr noundef nonnull align 4 dereferenceable(36)) unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN25AnisotropicParticleMesher24_computeCovarianceMatrixE18GridPointReferencedRSt6vectorIS0_SaIS0_EE(ptr dead_on_unwind noalias writable sret(%"class.vmath::mat3") align 4 %0, ptr noundef nonnull align 8 dereferenceable(784) %1, i32 %2, double noundef %3, ptr noundef nonnull align 8 dereferenceable(24) %4) #4 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca %struct.GridPointReference, align 4
  %8 = alloca ptr, align 8
  %9 = alloca double, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %struct.GridPointReference, align 4
  %12 = alloca %"class.vmath::vec3", align 4
  %13 = alloca %struct.GridPointReference, align 4
  %14 = alloca %"struct.AnisotropicParticleMesher::SurfaceParticle", align 4
  %15 = alloca %"class.vmath::vec3", align 4
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca double, align 8
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca float, align 4
  %25 = alloca %struct.GridPointReference, align 4
  %26 = alloca %"struct.AnisotropicParticleMesher::SurfaceParticle", align 4
  %27 = alloca %"class.vmath::vec3", align 4
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  %31 = alloca i32, align 4
  %32 = alloca %"class.vmath::vec3", align 4
  %33 = alloca i32, align 4
  %34 = alloca %"class.vmath::mat3", align 4
  store ptr %0, ptr %6, align 8
  %35 = getelementptr inbounds %struct.GridPointReference, ptr %7, i32 0, i32 0
  store i32 %2, ptr %35, align 4
  store ptr %1, ptr %8, align 8, !tbaa !5
  store double %3, ptr %9, align 8, !tbaa !9
  store ptr %4, ptr %10, align 8, !tbaa !5
  %36 = load ptr, ptr %8, align 8
  %37 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZNSt6vectorI18GridPointReferenceSaIS0_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #8
  %38 = getelementptr inbounds %class.AnisotropicParticleMesher, ptr %36, i32 0, i32 18
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 %7, i64 4, i1 false), !tbaa.struct !11
  %39 = load double, ptr %9, align 8, !tbaa !9
  %40 = load ptr, ptr %10, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.GridPointReference, ptr %11, i32 0, i32 0
  %42 = load i32, ptr %41, align 4
  call void @_ZN16SpatialPointGrid32queryPointReferencesInsideSphereE18GridPointReferencedRSt6vectorIS0_SaIS0_EE(ptr noundef nonnull align 8 dereferenceable(152) %38, i32 %42, double noundef %39, ptr noundef nonnull align 8 dereferenceable(24) %40)
  %43 = load ptr, ptr %10, align 8, !tbaa !5
  %44 = call noundef i64 @_ZNKSt6vectorI18GridPointReferenceSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #8
  %45 = trunc i64 %44 to i32
  %46 = getelementptr inbounds %class.AnisotropicParticleMesher, ptr %36, i32 0, i32 10
  %47 = load i32, ptr %46, align 8, !tbaa !14
  %48 = icmp sle i32 %45, %47
  br i1 %48, label %49, label %50

49:                                               ; preds = %5
  call void @_ZN5vmath4mat3C1Ev(ptr noundef nonnull align 4 dereferenceable(36) %0)
  br label %229

50:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %7, i64 4, i1 false), !tbaa.struct !11
  %51 = load ptr, ptr %10, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.GridPointReference, ptr %13, i32 0, i32 0
  %53 = load i32, ptr %52, align 4
  call void @_ZN25AnisotropicParticleMesher32_getWeightedMeanParticlePositionE18GridPointReferenceRSt6vectorIS0_SaIS0_EE(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4 %12, ptr noundef nonnull align 8 dereferenceable(784) %36, i32 %53, ptr noundef nonnull align 8 dereferenceable(24) %51)
  call void @llvm.lifetime.start.p0(i64 20, ptr %14) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %12, i64 12, i1 false), !tbaa.struct !49
  invoke void @_ZN25AnisotropicParticleMesher15SurfaceParticleC2EN5vmath4vec3E(ptr noundef nonnull align 4 dereferenceable(20) %14, ptr noundef %15)
          to label %54 unwind label %78

54:                                               ; preds = %50
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %15) #8
  %55 = getelementptr inbounds %class.AnisotropicParticleMesher, ptr %36, i32 0, i32 19
  %56 = getelementptr inbounds %struct.GridPointReference, ptr %7, i32 0, i32 0
  %57 = load i32, ptr %56, align 4, !tbaa !51
  %58 = invoke noundef nonnull align 4 dereferenceable(20) ptr @_ZN16FragmentedVectorIN25AnisotropicParticleMesher15SurfaceParticleEEixEi(ptr noundef nonnull align 8 dereferenceable(48) %55, i32 noundef %57)
          to label %59 unwind label %82

59:                                               ; preds = %54
  %60 = getelementptr inbounds %"struct.AnisotropicParticleMesher::SurfaceParticle", ptr %58, i32 0, i32 2
  %61 = load i32, ptr %60, align 4, !tbaa !53
  %62 = getelementptr inbounds %"struct.AnisotropicParticleMesher::SurfaceParticle", ptr %14, i32 0, i32 2
  store i32 %61, ptr %62, align 4, !tbaa !53
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  store double 0.000000e+00, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  store float 0.000000e+00, ptr %19, align 4, !tbaa !50
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store float 0.000000e+00, ptr %20, align 4, !tbaa !50
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  store float 0.000000e+00, ptr %21, align 4, !tbaa !50
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  store float 0.000000e+00, ptr %22, align 4, !tbaa !50
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  store float 0.000000e+00, ptr %23, align 4, !tbaa !50
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  store float 0.000000e+00, ptr %24, align 4, !tbaa !50
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  invoke void @_ZN18GridPointReferenceC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %63 unwind label %86

63:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 20, ptr %26) #8
  invoke void @_ZN25AnisotropicParticleMesher15SurfaceParticleC2Ev(ptr noundef nonnull align 4 dereferenceable(20) %26)
          to label %64 unwind label %90

64:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 12, ptr %27) #8
  invoke void @_ZN5vmath4vec3C1Ev(ptr noundef nonnull align 4 dereferenceable(12) %27)
          to label %65 unwind label %94

65:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  %66 = getelementptr inbounds %class.AnisotropicParticleMesher, ptr %36, i32 0, i32 0
  %67 = load double, ptr %66, align 8, !tbaa !55
  %68 = getelementptr inbounds %class.AnisotropicParticleMesher, ptr %36, i32 0, i32 1
  %69 = load double, ptr %68, align 8, !tbaa !56
  %70 = fmul double %67, %69
  store double %70, ptr %29, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  store double 1.000000e-09, ptr %30, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #8
  store i32 0, ptr %31, align 4, !tbaa !12
  br label %71

71:                                               ; preds = %181, %65
  %72 = load i32, ptr %31, align 4, !tbaa !12
  %73 = zext i32 %72 to i64
  %74 = load ptr, ptr %10, align 8, !tbaa !5
  %75 = call noundef i64 @_ZNKSt6vectorI18GridPointReferenceSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %74) #8
  %76 = icmp ult i64 %73, %75
  br i1 %76, label %98, label %77

77:                                               ; preds = %71
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  br label %189

78:                                               ; preds = %50
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %16, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %17, align 4
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %15) #8
  br label %228

82:                                               ; preds = %54
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %16, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %17, align 4
  br label %227

86:                                               ; preds = %59
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %16, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %17, align 4
  br label %226

90:                                               ; preds = %63
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %16, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %17, align 4
  br label %225

94:                                               ; preds = %64
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %16, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %17, align 4
  br label %224

98:                                               ; preds = %71
  %99 = load ptr, ptr %10, align 8, !tbaa !5
  %100 = load i32, ptr %31, align 4, !tbaa !12
  %101 = zext i32 %100 to i64
  %102 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI18GridPointReferenceSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %99, i64 noundef %101) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %102, i64 4, i1 false), !tbaa.struct !11
  %103 = getelementptr inbounds %class.AnisotropicParticleMesher, ptr %36, i32 0, i32 19
  %104 = getelementptr inbounds %struct.GridPointReference, ptr %25, i32 0, i32 0
  %105 = load i32, ptr %104, align 4, !tbaa !51
  %106 = invoke noundef nonnull align 4 dereferenceable(20) ptr @_ZN16FragmentedVectorIN25AnisotropicParticleMesher15SurfaceParticleEEixEi(ptr noundef nonnull align 8 dereferenceable(48) %103, i32 noundef %105)
          to label %107 unwind label %116

107:                                              ; preds = %98
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 %106, i64 20, i1 false), !tbaa.struct !57
  %108 = invoke noundef double @_ZN25AnisotropicParticleMesher15_evaluateKernelERNS_15SurfaceParticleES1_(ptr noundef nonnull align 8 dereferenceable(784) %36, ptr noundef nonnull align 4 dereferenceable(20) %14, ptr noundef nonnull align 4 dereferenceable(20) %26)
          to label %109 unwind label %116

109:                                              ; preds = %107
  %110 = load double, ptr %29, align 8, !tbaa !9
  %111 = fmul double %108, %110
  store double %111, ptr %28, align 8, !tbaa !9
  %112 = load double, ptr %28, align 8, !tbaa !9
  %113 = load double, ptr %30, align 8, !tbaa !9
  %114 = fcmp olt double %112, %113
  br i1 %114, label %115, label %120

115:                                              ; preds = %109
  br label %181

116:                                              ; preds = %172, %166, %163, %157, %154, %148, %145, %139, %136, %130, %127, %123, %107, %98
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %16, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %17, align 4
  br label %188

120:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 12, ptr %32) #8
  %121 = getelementptr inbounds %"struct.AnisotropicParticleMesher::SurfaceParticle", ptr %26, i32 0, i32 0
  %122 = getelementptr inbounds %"struct.AnisotropicParticleMesher::SurfaceParticle", ptr %14, i32 0, i32 0
  invoke void @_ZN5vmathmiERKNS_4vec3ES2_(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4 %32, ptr noundef nonnull align 4 dereferenceable(12) %121, ptr noundef nonnull align 4 dereferenceable(12) %122)
          to label %123 unwind label %184

123:                                              ; preds = %120
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 4 %32, i64 12, i1 false), !tbaa.struct !49
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %32) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %32) #8
  %124 = load double, ptr %28, align 8, !tbaa !9
  %125 = fptrunc double %124 to float
  %126 = invoke noundef float @_ZN5vmath4vec3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %27, i32 noundef 0)
          to label %127 unwind label %116

127:                                              ; preds = %123
  %128 = fmul float %125, %126
  %129 = invoke noundef float @_ZN5vmath4vec3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %27, i32 noundef 0)
          to label %130 unwind label %116

130:                                              ; preds = %127
  %131 = load float, ptr %19, align 4, !tbaa !50
  %132 = call float @llvm.fmuladd.f32(float %128, float %129, float %131)
  store float %132, ptr %19, align 4, !tbaa !50
  %133 = load double, ptr %28, align 8, !tbaa !9
  %134 = fptrunc double %133 to float
  %135 = invoke noundef float @_ZN5vmath4vec3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %27, i32 noundef 1)
          to label %136 unwind label %116

136:                                              ; preds = %130
  %137 = fmul float %134, %135
  %138 = invoke noundef float @_ZN5vmath4vec3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %27, i32 noundef 1)
          to label %139 unwind label %116

139:                                              ; preds = %136
  %140 = load float, ptr %20, align 4, !tbaa !50
  %141 = call float @llvm.fmuladd.f32(float %137, float %138, float %140)
  store float %141, ptr %20, align 4, !tbaa !50
  %142 = load double, ptr %28, align 8, !tbaa !9
  %143 = fptrunc double %142 to float
  %144 = invoke noundef float @_ZN5vmath4vec3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %27, i32 noundef 2)
          to label %145 unwind label %116

145:                                              ; preds = %139
  %146 = fmul float %143, %144
  %147 = invoke noundef float @_ZN5vmath4vec3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %27, i32 noundef 2)
          to label %148 unwind label %116

148:                                              ; preds = %145
  %149 = load float, ptr %21, align 4, !tbaa !50
  %150 = call float @llvm.fmuladd.f32(float %146, float %147, float %149)
  store float %150, ptr %21, align 4, !tbaa !50
  %151 = load double, ptr %28, align 8, !tbaa !9
  %152 = fptrunc double %151 to float
  %153 = invoke noundef float @_ZN5vmath4vec3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %27, i32 noundef 0)
          to label %154 unwind label %116

154:                                              ; preds = %148
  %155 = fmul float %152, %153
  %156 = invoke noundef float @_ZN5vmath4vec3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %27, i32 noundef 1)
          to label %157 unwind label %116

157:                                              ; preds = %154
  %158 = load float, ptr %22, align 4, !tbaa !50
  %159 = call float @llvm.fmuladd.f32(float %155, float %156, float %158)
  store float %159, ptr %22, align 4, !tbaa !50
  %160 = load double, ptr %28, align 8, !tbaa !9
  %161 = fptrunc double %160 to float
  %162 = invoke noundef float @_ZN5vmath4vec3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %27, i32 noundef 0)
          to label %163 unwind label %116

163:                                              ; preds = %157
  %164 = fmul float %161, %162
  %165 = invoke noundef float @_ZN5vmath4vec3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %27, i32 noundef 2)
          to label %166 unwind label %116

166:                                              ; preds = %163
  %167 = load float, ptr %23, align 4, !tbaa !50
  %168 = call float @llvm.fmuladd.f32(float %164, float %165, float %167)
  store float %168, ptr %23, align 4, !tbaa !50
  %169 = load double, ptr %28, align 8, !tbaa !9
  %170 = fptrunc double %169 to float
  %171 = invoke noundef float @_ZN5vmath4vec3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %27, i32 noundef 1)
          to label %172 unwind label %116

172:                                              ; preds = %166
  %173 = fmul float %170, %171
  %174 = invoke noundef float @_ZN5vmath4vec3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %27, i32 noundef 2)
          to label %175 unwind label %116

175:                                              ; preds = %172
  %176 = load float, ptr %24, align 4, !tbaa !50
  %177 = call float @llvm.fmuladd.f32(float %173, float %174, float %176)
  store float %177, ptr %24, align 4, !tbaa !50
  %178 = load double, ptr %28, align 8, !tbaa !9
  %179 = load double, ptr %18, align 8, !tbaa !9
  %180 = fadd double %179, %178
  store double %180, ptr %18, align 8, !tbaa !9
  br label %181

181:                                              ; preds = %175, %115
  %182 = load i32, ptr %31, align 4, !tbaa !12
  %183 = add i32 %182, 1
  store i32 %183, ptr %31, align 4, !tbaa !12
  br label %71, !llvm.loop !58

184:                                              ; preds = %120
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %16, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %32) #8
  br label %188

188:                                              ; preds = %184, %116
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  br label %223

189:                                              ; preds = %77
  %190 = load double, ptr %18, align 8, !tbaa !9
  %191 = load double, ptr %30, align 8, !tbaa !9
  %192 = fcmp olt double %190, %191
  br i1 %192, label %193, label %199

193:                                              ; preds = %189
  invoke void @_ZN5vmath4mat3C1Ef(ptr noundef nonnull align 4 dereferenceable(36) %0, float noundef 1.000000e+00)
          to label %194 unwind label %195

194:                                              ; preds = %193
  store i32 1, ptr %33, align 4
  br label %222

195:                                              ; preds = %193
  %196 = landingpad { ptr, i32 }
          cleanup
  %197 = extractvalue { ptr, i32 } %196, 0
  store ptr %197, ptr %16, align 8
  %198 = extractvalue { ptr, i32 } %196, 1
  store i32 %198, ptr %17, align 4
  br label %223

199:                                              ; preds = %189
  call void @llvm.lifetime.start.p0(i64 36, ptr %34) #8
  %200 = load float, ptr %19, align 4, !tbaa !50
  %201 = load float, ptr %22, align 4, !tbaa !50
  %202 = load float, ptr %23, align 4, !tbaa !50
  %203 = load float, ptr %22, align 4, !tbaa !50
  %204 = load float, ptr %20, align 4, !tbaa !50
  %205 = load float, ptr %24, align 4, !tbaa !50
  %206 = load float, ptr %23, align 4, !tbaa !50
  %207 = load float, ptr %24, align 4, !tbaa !50
  %208 = load float, ptr %21, align 4, !tbaa !50
  invoke void @_ZN5vmath4mat3C1Efffffffff(ptr noundef nonnull align 4 dereferenceable(36) %34, float noundef %200, float noundef %201, float noundef %202, float noundef %203, float noundef %204, float noundef %205, float noundef %206, float noundef %207, float noundef %208)
          to label %209 unwind label %213

209:                                              ; preds = %199
  %210 = load double, ptr %18, align 8, !tbaa !9
  %211 = fptrunc double %210 to float
  invoke void @_ZN5vmathdvERKNS_4mat3Ef(ptr dead_on_unwind writable sret(%"class.vmath::mat3") align 4 %0, ptr noundef nonnull align 4 dereferenceable(36) %34, float noundef %211)
          to label %212 unwind label %217

212:                                              ; preds = %209
  call void @_ZN5vmath4mat3D1Ev(ptr noundef nonnull align 4 dereferenceable(36) %34) #8
  call void @llvm.lifetime.end.p0(i64 36, ptr %34) #8
  store i32 1, ptr %33, align 4
  br label %222

213:                                              ; preds = %199
  %214 = landingpad { ptr, i32 }
          cleanup
  %215 = extractvalue { ptr, i32 } %214, 0
  store ptr %215, ptr %16, align 8
  %216 = extractvalue { ptr, i32 } %214, 1
  store i32 %216, ptr %17, align 4
  br label %221

217:                                              ; preds = %209
  %218 = landingpad { ptr, i32 }
          cleanup
  %219 = extractvalue { ptr, i32 } %218, 0
  store ptr %219, ptr %16, align 8
  %220 = extractvalue { ptr, i32 } %218, 1
  store i32 %220, ptr %17, align 4
  call void @_ZN5vmath4mat3D1Ev(ptr noundef nonnull align 4 dereferenceable(36) %34) #8
  br label %221

221:                                              ; preds = %217, %213
  call void @llvm.lifetime.end.p0(i64 36, ptr %34) #8
  br label %223

222:                                              ; preds = %212, %194
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %27) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %27) #8
  call void @_ZN25AnisotropicParticleMesher15SurfaceParticleD2Ev(ptr noundef nonnull align 4 dereferenceable(20) %26) #8
  call void @llvm.lifetime.end.p0(i64 20, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @_ZN25AnisotropicParticleMesher15SurfaceParticleD2Ev(ptr noundef nonnull align 4 dereferenceable(20) %14) #8
  call void @llvm.lifetime.end.p0(i64 20, ptr %14) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %12) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #8
  br label %229

223:                                              ; preds = %221, %195, %188
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %27) #8
  br label %224

224:                                              ; preds = %223, %94
  call void @llvm.lifetime.end.p0(i64 12, ptr %27) #8
  call void @_ZN25AnisotropicParticleMesher15SurfaceParticleD2Ev(ptr noundef nonnull align 4 dereferenceable(20) %26) #8
  br label %225

225:                                              ; preds = %224, %90
  call void @llvm.lifetime.end.p0(i64 20, ptr %26) #8
  br label %226

226:                                              ; preds = %225, %86
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %227

227:                                              ; preds = %226, %82
  call void @_ZN25AnisotropicParticleMesher15SurfaceParticleD2Ev(ptr noundef nonnull align 4 dereferenceable(20) %14) #8
  br label %228

228:                                              ; preds = %227, %78
  call void @llvm.lifetime.end.p0(i64 20, ptr %14) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %12) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #8
  br label %230

229:                                              ; preds = %222, %49
  ret void

230:                                              ; preds = %228
  %231 = load ptr, ptr %16, align 8
  %232 = load i32, ptr %17, align 4
  %233 = insertvalue { ptr, i32 } poison, ptr %231, 0
  %234 = insertvalue { ptr, i32 } %233, i32 %232, 1
  resume { ptr, i32 } %234
}

declare void @_ZN5vmath4mat3C1Ev(ptr noundef nonnull align 4 dereferenceable(36)) unnamed_addr #1

declare void @_ZN5vmathmiERKNS_4vec3ES2_(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #1

declare noundef float @_ZN5vmath4vec3ixEi(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #7

declare void @_ZN5vmath4mat3C1Ef(ptr noundef nonnull align 4 dereferenceable(36), float noundef) unnamed_addr #1

declare void @_ZN5vmathdvERKNS_4mat3Ef(ptr dead_on_unwind writable sret(%"class.vmath::mat3") align 4, ptr noundef nonnull align 4 dereferenceable(36), float noundef) #1

declare void @_ZN5vmath4mat3C1Efffffffff(ptr noundef nonnull align 4 dereferenceable(36), float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef) unnamed_addr #1

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{i64 0, i64 4, !12}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !13, i64 80}
!15 = !{!"_ZTS25AnisotropicParticleMesher", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !13, i64 64, !10, i64 72, !13, i64 80, !10, i64 88, !13, i64 96, !13, i64 100, !13, i64 104, !10, i64 112, !13, i64 120, !10, i64 128, !16, i64 136, !31, i64 288, !36, i64 336, !36, i64 384, !41, i64 432, !46, i64 480, !13, i64 728, !13, i64 732, !13, i64 736, !47, i64 744}
!16 = !{!"_ZTS16SpatialPointGrid", !13, i64 0, !13, i64 4, !13, i64 8, !10, i64 16, !17, i64 24, !21, i64 48, !25, i64 72, !28, i64 112}
!17 = !{!"_ZTSSt6vectorI9GridPointSaIS0_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseI9GridPointSaIS0_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseI9GridPointSaIS0_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseI9GridPointSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"_ZTSSt6vectorIiSaIiEE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!"_ZTS7Array3dIN16SpatialPointGrid8CellNodeEE", !13, i64 0, !13, i64 4, !13, i64 8, !6, i64 16, !26, i64 24, !27, i64 28, !13, i64 36}
!26 = !{!"bool", !7, i64 0}
!27 = !{!"_ZTSN16SpatialPointGrid8CellNodeE", !13, i64 0, !13, i64 4}
!28 = !{!"_ZTS4AABB", !29, i64 0, !10, i64 16, !10, i64 24, !10, i64 32}
!29 = !{!"_ZTSN5vmath4vec3E", !30, i64 0, !30, i64 4, !30, i64 8}
!30 = !{!"float", !7, i64 0}
!31 = !{!"_ZTS16FragmentedVectorIN25AnisotropicParticleMesher15SurfaceParticleEE", !32, i64 0, !13, i64 24, !13, i64 28, !10, i64 32, !13, i64 40, !13, i64 44}
!32 = !{!"_ZTSSt6vectorIN16FragmentedVectorIN25AnisotropicParticleMesher15SurfaceParticleEE10VectorNodeESaIS4_EE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseIN16FragmentedVectorIN25AnisotropicParticleMesher15SurfaceParticleEE10VectorNodeESaIS4_EE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIN16FragmentedVectorIN25AnisotropicParticleMesher15SurfaceParticleEE10VectorNodeESaIS4_EE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIN16FragmentedVectorIN25AnisotropicParticleMesher15SurfaceParticleEE10VectorNodeESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!36 = !{!"_ZTS16FragmentedVectorI18GridPointReferenceE", !37, i64 0, !13, i64 24, !13, i64 28, !10, i64 32, !13, i64 40, !13, i64 44}
!37 = !{!"_ZTSSt6vectorIN16FragmentedVectorI18GridPointReferenceE10VectorNodeESaIS3_EE", !38, i64 0}
!38 = !{!"_ZTSSt12_Vector_baseIN16FragmentedVectorI18GridPointReferenceE10VectorNodeESaIS3_EE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIN16FragmentedVectorI18GridPointReferenceE10VectorNodeESaIS3_EE12_Vector_implE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIN16FragmentedVectorI18GridPointReferenceE10VectorNodeESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!41 = !{!"_ZTS16FragmentedVectorIN5vmath4vec3EE", !42, i64 0, !13, i64 24, !13, i64 28, !10, i64 32, !13, i64 40, !13, i64 44}
!42 = !{!"_ZTSSt6vectorIN16FragmentedVectorIN5vmath4vec3EE10VectorNodeESaIS4_EE", !43, i64 0}
!43 = !{!"_ZTSSt12_Vector_baseIN16FragmentedVectorIN5vmath4vec3EE10VectorNodeESaIS4_EE", !44, i64 0}
!44 = !{!"_ZTSNSt12_Vector_baseIN16FragmentedVectorIN5vmath4vec3EE10VectorNodeESaIS4_EE12_Vector_implE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseIN16FragmentedVectorIN5vmath4vec3EE10VectorNodeESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!46 = !{!"_ZTS11ScalarField", !13, i64 0, !13, i64 4, !13, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !26, i64 80, !47, i64 88, !48, i64 128, !47, i64 160, !48, i64 200, !26, i64 232, !29, i64 236}
!47 = !{!"_ZTS7Array3dIfE", !13, i64 0, !13, i64 4, !13, i64 8, !6, i64 16, !26, i64 24, !30, i64 28, !13, i64 32}
!48 = !{!"_ZTS7Array3dIbE", !13, i64 0, !13, i64 4, !13, i64 8, !6, i64 16, !26, i64 24, !26, i64 25, !13, i64 28}
!49 = !{i64 0, i64 4, !50, i64 4, i64 4, !50, i64 8, i64 4, !50}
!50 = !{!30, !30, i64 0}
!51 = !{!52, !13, i64 0}
!52 = !{!"_ZTS18GridPointReference", !13, i64 0}
!53 = !{!54, !13, i64 16}
!54 = !{!"_ZTSN25AnisotropicParticleMesher15SurfaceParticleE", !29, i64 0, !52, i64 12, !13, i64 16}
!55 = !{!15, !10, i64 0}
!56 = !{!15, !10, i64 8}
!57 = !{i64 0, i64 4, !50, i64 4, i64 4, !50, i64 8, i64 4, !50, i64 12, i64 4, !12, i64 16, i64 4, !12}
!58 = distinct !{!58, !59}
!59 = !{!"llvm.loop.mustprogress"}


; 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.vmath::vec3" = type { float, float, float }
%"class.vmath::mat3" = type { [9 x float] }
%"struct.AnisotropicParticleMesher::SurfaceParticle" = type { %"class.vmath::vec3", %struct.GridPointReference, i32 }
%struct.GridPointReference = type { i32 }

declare i32 @__gxx_personality_v0(...)

; 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

declare void @_ZN5vmath4vec3C1Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #1

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

; Function Attrs: nounwind
declare void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN25AnisotropicParticleMesher15SurfaceParticleD2Ev(ptr noundef nonnull align 4 dereferenceable(20)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(20) ptr @_ZN16FragmentedVectorIN25AnisotropicParticleMesher15SurfaceParticleEEixEi(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) local_unnamed_addr #4 align 2

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

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

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

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

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

declare void @_ZN16SpatialPointGrid32queryPointReferencesInsideSphereE18GridPointReferencedRSt6vectorIS0_SaIS0_EE(ptr noundef nonnull align 8 dereferenceable(152), i32, double noundef, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN25AnisotropicParticleMesher32_getWeightedMeanParticlePositionE18GridPointReferenceRSt6vectorIS0_SaIS0_EE(ptr dead_on_unwind noalias writable sret(%"class.vmath::vec3") align 4, ptr noundef nonnull align 8 dereferenceable(784), i32, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN25AnisotropicParticleMesher15_evaluateKernelERNS_15SurfaceParticleES1_(ptr noundef nonnull align 8 dereferenceable(784), ptr noundef nonnull align 4 dereferenceable(20), ptr noundef nonnull align 4 dereferenceable(20)) local_unnamed_addr #4 align 2

; Function Attrs: nounwind
declare void @_ZN5vmath4mat3D1Ev(ptr noundef nonnull align 4 dereferenceable(36)) unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN25AnisotropicParticleMesher24_computeCovarianceMatrixE18GridPointReferencedRSt6vectorIS0_SaIS0_EE(ptr dead_on_unwind noalias writable sret(%"class.vmath::mat3") align 4 %0, ptr noundef nonnull align 8 dereferenceable(784) %1, i32 %2, double noundef %3, ptr noundef nonnull align 8 dereferenceable(24) %4) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.vmath::vec3", align 4
  %7 = alloca %"struct.AnisotropicParticleMesher::SurfaceParticle", align 4
  %8 = alloca %"class.vmath::vec3", align 4
  %9 = alloca %struct.GridPointReference, align 4
  %10 = alloca %"struct.AnisotropicParticleMesher::SurfaceParticle", align 4
  %11 = alloca %"class.vmath::vec3", align 4
  %12 = alloca %"class.vmath::vec3", align 4
  %13 = alloca %"class.vmath::mat3", align 4
  tail call void @_ZNSt6vectorI18GridPointReferenceSaIS0_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  %14 = getelementptr inbounds i8, ptr %1, i64 136
  tail call void @_ZN16SpatialPointGrid32queryPointReferencesInsideSphereE18GridPointReferencedRSt6vectorIS0_SaIS0_EE(ptr noundef nonnull align 8 dereferenceable(152) %14, i32 %2, double noundef %3, ptr noundef nonnull align 8 dereferenceable(24) %4)
  %15 = tail call noundef i64 @_ZNKSt6vectorI18GridPointReferenceSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  %16 = trunc i64 %15 to i32
  %17 = getelementptr inbounds i8, ptr %1, i64 80
  %18 = load i32, ptr %17, align 8, !tbaa !5
  %.not = icmp slt i32 %18, %16
  br i1 %.not, label %20, label %19

19:                                               ; preds = %5
  tail call void @_ZN5vmath4mat3C1Ev(ptr noundef nonnull align 4 dereferenceable(36) %0)
  br label %119

20:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #8
  call void @_ZN25AnisotropicParticleMesher32_getWeightedMeanParticlePositionE18GridPointReferenceRSt6vectorIS0_SaIS0_EE(ptr dead_on_unwind nonnull writable sret(%"class.vmath::vec3") align 4 %6, ptr noundef nonnull align 8 dereferenceable(784) %1, i32 %2, ptr noundef nonnull align 8 dereferenceable(24) %4)
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %7) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(12) %6, i64 12, i1 false), !tbaa.struct !45
  invoke void @_ZN25AnisotropicParticleMesher15SurfaceParticleC2EN5vmath4vec3E(ptr noundef nonnull align 4 dereferenceable(20) %7, ptr noundef nonnull %8)
          to label %21 unwind label %36

21:                                               ; preds = %20
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %8) #8
  %22 = getelementptr inbounds i8, ptr %1, i64 288
  %23 = invoke noundef nonnull align 4 dereferenceable(20) ptr @_ZN16FragmentedVectorIN25AnisotropicParticleMesher15SurfaceParticleEEixEi(ptr noundef nonnull align 8 dereferenceable(48) %22, i32 noundef %2)
          to label %24 unwind label %38

24:                                               ; preds = %21
  %25 = getelementptr inbounds i8, ptr %23, i64 16
  %26 = load i32, ptr %25, align 4, !tbaa !47
  %27 = getelementptr inbounds i8, ptr %7, i64 16
  store i32 %26, ptr %27, align 4, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #8
  call void @_ZN18GridPointReferenceC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %9)
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %10) #8
  invoke void @_ZN25AnisotropicParticleMesher15SurfaceParticleC2Ev(ptr noundef nonnull align 4 dereferenceable(20) %10)
          to label %28 unwind label %40

28:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #8
  invoke void @_ZN5vmath4vec3C1Ev(ptr noundef nonnull align 4 dereferenceable(12) %11)
          to label %29 unwind label %42

29:                                               ; preds = %28
  %30 = load double, ptr %1, align 8, !tbaa !50
  %31 = getelementptr inbounds i8, ptr %1, i64 8
  %32 = load double, ptr %31, align 8, !tbaa !51
  %33 = fmul double %30, %32
  %34 = call noundef i64 @_ZNKSt6vectorI18GridPointReferenceSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  %.not105 = icmp eq i64 %34, 0
  br i1 %.not105, label %._crit_edge.thread, label %.lr.ph

._crit_edge:                                      ; preds = %95
  %35 = fcmp olt double %.154, 1.000000e-09
  br i1 %35, label %._crit_edge.thread, label %104

36:                                               ; preds = %20
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %8) #8
  br label %118

38:                                               ; preds = %21
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %117

40:                                               ; preds = %24
  %41 = landingpad { ptr, i32 }
          cleanup
  br label %116

42:                                               ; preds = %28
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %115

.lr.ph:                                           ; preds = %29, %95
  %44 = phi i64 [ %97, %95 ], [ 0, %29 ]
  %.098 = phi i32 [ %96, %95 ], [ 0, %29 ]
  %.05397 = phi double [ %.154, %95 ], [ 0.000000e+00, %29 ]
  %.05596 = phi float [ %.156, %95 ], [ 0.000000e+00, %29 ]
  %.05795 = phi float [ %.158, %95 ], [ 0.000000e+00, %29 ]
  %.05994 = phi float [ %.160, %95 ], [ 0.000000e+00, %29 ]
  %.06193 = phi float [ %.162, %95 ], [ 0.000000e+00, %29 ]
  %.06392 = phi float [ %.164, %95 ], [ 0.000000e+00, %29 ]
  %.06591 = phi float [ %.166, %95 ], [ 0.000000e+00, %29 ]
  %45 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI18GridPointReferenceSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %44) #8
  %46 = load i32, ptr %45, align 4, !tbaa !52
  store i32 %46, ptr %9, align 4, !tbaa !52
  %47 = invoke noundef nonnull align 4 dereferenceable(20) ptr @_ZN16FragmentedVectorIN25AnisotropicParticleMesher15SurfaceParticleEEixEi(ptr noundef nonnull align 8 dereferenceable(48) %22, i32 noundef %46)
          to label %48 unwind label %53

48:                                               ; preds = %.lr.ph
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(20) %10, ptr noundef nonnull align 4 dereferenceable(20) %47, i64 20, i1 false), !tbaa.struct !53
  %49 = invoke noundef double @_ZN25AnisotropicParticleMesher15_evaluateKernelERNS_15SurfaceParticleES1_(ptr noundef nonnull align 8 dereferenceable(784) %1, ptr noundef nonnull align 4 dereferenceable(20) %7, ptr noundef nonnull align 4 dereferenceable(20) %10)
          to label %50 unwind label %53

50:                                               ; preds = %48
  %51 = fmul double %33, %49
  %52 = fcmp olt double %51, 1.000000e-09
  br i1 %52, label %95, label %55

53:                                               ; preds = %89, %85, %83, %79, %77, %73, %71, %67, %65, %61, %59, %56, %48, %.lr.ph
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %114

55:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #8
  invoke void @_ZN5vmathmiERKNS_4vec3ES2_(ptr dead_on_unwind nonnull writable sret(%"class.vmath::vec3") align 4 %12, ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %7)
          to label %56 unwind label %100

56:                                               ; preds = %55
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %12, i64 12, i1 false), !tbaa.struct !45
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %12) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #8
  %57 = fptrunc double %51 to float
  %58 = invoke noundef float @_ZN5vmath4vec3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 noundef 0)
          to label %59 unwind label %53

59:                                               ; preds = %56
  %60 = invoke noundef float @_ZN5vmath4vec3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 noundef 0)
          to label %61 unwind label %53

61:                                               ; preds = %59
  %62 = fmul float %58, %57
  %63 = call float @llvm.fmuladd.f32(float %62, float %60, float %.06591)
  %64 = invoke noundef float @_ZN5vmath4vec3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 noundef 1)
          to label %65 unwind label %53

65:                                               ; preds = %61
  %66 = invoke noundef float @_ZN5vmath4vec3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 noundef 1)
          to label %67 unwind label %53

67:                                               ; preds = %65
  %68 = fmul float %64, %57
  %69 = call float @llvm.fmuladd.f32(float %68, float %66, float %.06392)
  %70 = invoke noundef float @_ZN5vmath4vec3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 noundef 2)
          to label %71 unwind label %53

71:                                               ; preds = %67
  %72 = invoke noundef float @_ZN5vmath4vec3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 noundef 2)
          to label %73 unwind label %53

73:                                               ; preds = %71
  %74 = fmul float %70, %57
  %75 = call float @llvm.fmuladd.f32(float %74, float %72, float %.06193)
  %76 = invoke noundef float @_ZN5vmath4vec3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 noundef 0)
          to label %77 unwind label %53

77:                                               ; preds = %73
  %78 = invoke noundef float @_ZN5vmath4vec3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 noundef 1)
          to label %79 unwind label %53

79:                                               ; preds = %77
  %80 = fmul float %76, %57
  %81 = call float @llvm.fmuladd.f32(float %80, float %78, float %.05994)
  %82 = invoke noundef float @_ZN5vmath4vec3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 noundef 0)
          to label %83 unwind label %53

83:                                               ; preds = %79
  %84 = invoke noundef float @_ZN5vmath4vec3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 noundef 2)
          to label %85 unwind label %53

85:                                               ; preds = %83
  %86 = fmul float %82, %57
  %87 = call float @llvm.fmuladd.f32(float %86, float %84, float %.05795)
  %88 = invoke noundef float @_ZN5vmath4vec3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 noundef 1)
          to label %89 unwind label %53

89:                                               ; preds = %85
  %90 = invoke noundef float @_ZN5vmath4vec3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 noundef 2)
          to label %91 unwind label %53

91:                                               ; preds = %89
  %92 = fmul float %88, %57
  %93 = call float @llvm.fmuladd.f32(float %92, float %90, float %.05596)
  %94 = fadd double %.05397, %51
  br label %95

95:                                               ; preds = %50, %91
  %.166 = phi float [ %.06591, %50 ], [ %63, %91 ]
  %.164 = phi float [ %.06392, %50 ], [ %69, %91 ]
  %.162 = phi float [ %.06193, %50 ], [ %75, %91 ]
  %.160 = phi float [ %.05994, %50 ], [ %81, %91 ]
  %.158 = phi float [ %.05795, %50 ], [ %87, %91 ]
  %.156 = phi float [ %.05596, %50 ], [ %93, %91 ]
  %.154 = phi double [ %.05397, %50 ], [ %94, %91 ]
  %96 = add i32 %.098, 1
  %97 = zext i32 %96 to i64
  %98 = call noundef i64 @_ZNKSt6vectorI18GridPointReferenceSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  %99 = icmp ugt i64 %98, %97
  br i1 %99, label %.lr.ph, label %._crit_edge, !llvm.loop !54

100:                                              ; preds = %55
  %101 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #8
  br label %114

._crit_edge.thread:                               ; preds = %29, %._crit_edge
  invoke void @_ZN5vmath4mat3C1Ef(ptr noundef nonnull align 4 dereferenceable(36) %0, float noundef 1.000000e+00)
          to label %113 unwind label %102

102:                                              ; preds = %._crit_edge.thread
  %103 = landingpad { ptr, i32 }
          cleanup
  br label %114

104:                                              ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %13) #8
  invoke void @_ZN5vmath4mat3C1Efffffffff(ptr noundef nonnull align 4 dereferenceable(36) %13, float noundef %.166, float noundef %.160, float noundef %.158, float noundef %.160, float noundef %.164, float noundef %.156, float noundef %.158, float noundef %.156, float noundef %.162)
          to label %105 unwind label %108

105:                                              ; preds = %104
  %106 = fptrunc double %.154 to float
  invoke void @_ZN5vmathdvERKNS_4mat3Ef(ptr dead_on_unwind writable sret(%"class.vmath::mat3") align 4 %0, ptr noundef nonnull align 4 dereferenceable(36) %13, float noundef %106)
          to label %107 unwind label %110

107:                                              ; preds = %105
  call void @_ZN5vmath4mat3D1Ev(ptr noundef nonnull align 4 dereferenceable(36) %13) #8
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %13) #8
  br label %113

108:                                              ; preds = %104
  %109 = landingpad { ptr, i32 }
          cleanup
  br label %112

110:                                              ; preds = %105
  %111 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5vmath4mat3D1Ev(ptr noundef nonnull align 4 dereferenceable(36) %13) #8
  br label %112

112:                                              ; preds = %110, %108
  %.pn = phi { ptr, i32 } [ %111, %110 ], [ %109, %108 ]
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %13) #8
  br label %114

113:                                              ; preds = %._crit_edge.thread, %107
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %11) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #8
  call void @_ZN25AnisotropicParticleMesher15SurfaceParticleD2Ev(ptr noundef nonnull align 4 dereferenceable(20) %10) #8
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #8
  call void @_ZN25AnisotropicParticleMesher15SurfaceParticleD2Ev(ptr noundef nonnull align 4 dereferenceable(20) %7) #8
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %7) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %6) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #8
  br label %119

114:                                              ; preds = %53, %100, %112, %102
  %.pn70.pn = phi { ptr, i32 } [ %103, %102 ], [ %.pn, %112 ], [ %54, %53 ], [ %101, %100 ]
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %11) #8
  br label %115

115:                                              ; preds = %114, %42
  %.pn70.pn.pn = phi { ptr, i32 } [ %.pn70.pn, %114 ], [ %43, %42 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #8
  call void @_ZN25AnisotropicParticleMesher15SurfaceParticleD2Ev(ptr noundef nonnull align 4 dereferenceable(20) %10) #8
  br label %116

116:                                              ; preds = %115, %40
  %.pn70.pn.pn.pn = phi { ptr, i32 } [ %.pn70.pn.pn, %115 ], [ %41, %40 ]
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #8
  br label %117

117:                                              ; preds = %116, %38
  %.pn70.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn70.pn.pn.pn, %116 ], [ %39, %38 ]
  call void @_ZN25AnisotropicParticleMesher15SurfaceParticleD2Ev(ptr noundef nonnull align 4 dereferenceable(20) %7) #8
  br label %118

118:                                              ; preds = %117, %36
  %.pn70.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn70.pn.pn.pn.pn, %117 ], [ %37, %36 ]
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %7) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %6) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #8
  resume { ptr, i32 } %.pn70.pn.pn.pn.pn.pn

119:                                              ; preds = %113, %19
  ret void
}

declare void @_ZN5vmath4mat3C1Ev(ptr noundef nonnull align 4 dereferenceable(36)) unnamed_addr #1

declare void @_ZN5vmathmiERKNS_4vec3ES2_(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #1

declare noundef float @_ZN5vmath4vec3ixEi(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #7

declare void @_ZN5vmath4mat3C1Ef(ptr noundef nonnull align 4 dereferenceable(36), float noundef) unnamed_addr #1

declare void @_ZN5vmathdvERKNS_4mat3Ef(ptr dead_on_unwind writable sret(%"class.vmath::mat3") align 4, ptr noundef nonnull align 4 dereferenceable(36), float noundef) local_unnamed_addr #1

declare void @_ZN5vmath4mat3C1Efffffffff(ptr noundef nonnull align 4 dereferenceable(36), float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef) unnamed_addr #1

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 80}
!6 = !{!"_ZTS25AnisotropicParticleMesher", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !10, i64 64, !7, i64 72, !10, i64 80, !7, i64 88, !10, i64 96, !10, i64 100, !10, i64 104, !7, i64 112, !10, i64 120, !7, i64 128, !11, i64 136, !27, i64 288, !32, i64 336, !32, i64 384, !37, i64 432, !42, i64 480, !10, i64 728, !10, i64 732, !10, i64 736, !43, i64 744}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"_ZTS16SpatialPointGrid", !10, i64 0, !10, i64 4, !10, i64 8, !7, i64 16, !12, i64 24, !17, i64 48, !21, i64 72, !24, i64 112}
!12 = !{!"_ZTSSt6vectorI9GridPointSaIS0_EE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseI9GridPointSaIS0_EE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseI9GridPointSaIS0_EE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseI9GridPointSaIS0_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!16 = !{!"any pointer", !8, i64 0}
!17 = !{!"_ZTSSt6vectorIiSaIiEE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!21 = !{!"_ZTS7Array3dIN16SpatialPointGrid8CellNodeEE", !10, i64 0, !10, i64 4, !10, i64 8, !16, i64 16, !22, i64 24, !23, i64 28, !10, i64 36}
!22 = !{!"bool", !8, i64 0}
!23 = !{!"_ZTSN16SpatialPointGrid8CellNodeE", !10, i64 0, !10, i64 4}
!24 = !{!"_ZTS4AABB", !25, i64 0, !7, i64 16, !7, i64 24, !7, i64 32}
!25 = !{!"_ZTSN5vmath4vec3E", !26, i64 0, !26, i64 4, !26, i64 8}
!26 = !{!"float", !8, i64 0}
!27 = !{!"_ZTS16FragmentedVectorIN25AnisotropicParticleMesher15SurfaceParticleEE", !28, i64 0, !10, i64 24, !10, i64 28, !7, i64 32, !10, i64 40, !10, i64 44}
!28 = !{!"_ZTSSt6vectorIN16FragmentedVectorIN25AnisotropicParticleMesher15SurfaceParticleEE10VectorNodeESaIS4_EE", !29, i64 0}
!29 = !{!"_ZTSSt12_Vector_baseIN16FragmentedVectorIN25AnisotropicParticleMesher15SurfaceParticleEE10VectorNodeESaIS4_EE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIN16FragmentedVectorIN25AnisotropicParticleMesher15SurfaceParticleEE10VectorNodeESaIS4_EE12_Vector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIN16FragmentedVectorIN25AnisotropicParticleMesher15SurfaceParticleEE10VectorNodeESaIS4_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!32 = !{!"_ZTS16FragmentedVectorI18GridPointReferenceE", !33, i64 0, !10, i64 24, !10, i64 28, !7, i64 32, !10, i64 40, !10, i64 44}
!33 = !{!"_ZTSSt6vectorIN16FragmentedVectorI18GridPointReferenceE10VectorNodeESaIS3_EE", !34, i64 0}
!34 = !{!"_ZTSSt12_Vector_baseIN16FragmentedVectorI18GridPointReferenceE10VectorNodeESaIS3_EE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIN16FragmentedVectorI18GridPointReferenceE10VectorNodeESaIS3_EE12_Vector_implE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIN16FragmentedVectorI18GridPointReferenceE10VectorNodeESaIS3_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!37 = !{!"_ZTS16FragmentedVectorIN5vmath4vec3EE", !38, i64 0, !10, i64 24, !10, i64 28, !7, i64 32, !10, i64 40, !10, i64 44}
!38 = !{!"_ZTSSt6vectorIN16FragmentedVectorIN5vmath4vec3EE10VectorNodeESaIS4_EE", !39, i64 0}
!39 = !{!"_ZTSSt12_Vector_baseIN16FragmentedVectorIN5vmath4vec3EE10VectorNodeESaIS4_EE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIN16FragmentedVectorIN5vmath4vec3EE10VectorNodeESaIS4_EE12_Vector_implE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseIN16FragmentedVectorIN5vmath4vec3EE10VectorNodeESaIS4_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!42 = !{!"_ZTS11ScalarField", !10, i64 0, !10, i64 4, !10, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !22, i64 80, !43, i64 88, !44, i64 128, !43, i64 160, !44, i64 200, !22, i64 232, !25, i64 236}
!43 = !{!"_ZTS7Array3dIfE", !10, i64 0, !10, i64 4, !10, i64 8, !16, i64 16, !22, i64 24, !26, i64 28, !10, i64 32}
!44 = !{!"_ZTS7Array3dIbE", !10, i64 0, !10, i64 4, !10, i64 8, !16, i64 16, !22, i64 24, !22, i64 25, !10, i64 28}
!45 = !{i64 0, i64 4, !46, i64 4, i64 4, !46, i64 8, i64 4, !46}
!46 = !{!26, !26, i64 0}
!47 = !{!48, !10, i64 16}
!48 = !{!"_ZTSN25AnisotropicParticleMesher15SurfaceParticleE", !25, i64 0, !49, i64 12, !10, i64 16}
!49 = !{!"_ZTS18GridPointReference", !10, i64 0}
!50 = !{!6, !7, i64 0}
!51 = !{!6, !7, i64 8}
!52 = !{!10, !10, i64 0}
!53 = !{i64 0, i64 4, !46, i64 4, i64 4, !46, i64 8, i64 4, !46, i64 12, i64 4, !52, i64 16, i64 4, !52}
!54 = distinct !{!54, !55}
!55 = !{!"llvm.loop.mustprogress"}


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