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

; 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.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.vmath::vec3" = type { float, float, float }
%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] }>

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN25AnisotropicParticleMesherC2Ev(ptr noundef nonnull align 8 dereferenceable(784) %0) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %5 = load ptr, ptr %2, align 8
  %6 = getelementptr inbounds %class.AnisotropicParticleMesher, ptr %5, i32 0, i32 0
  store double 0.000000e+00, ptr %6, align 8, !tbaa !9
  %7 = getelementptr inbounds %class.AnisotropicParticleMesher, ptr %5, i32 0, i32 1
  store double 4.000000e+00, ptr %7, align 8, !tbaa !46
  %8 = getelementptr inbounds %class.AnisotropicParticleMesher, ptr %5, i32 0, i32 2
  store double 1.000000e+00, ptr %8, align 8, !tbaa !47
  %9 = getelementptr inbounds %class.AnisotropicParticleMesher, ptr %5, i32 0, i32 3
  store double 3.500000e+00, ptr %9, align 8, !tbaa !48
  %10 = getelementptr inbounds %class.AnisotropicParticleMesher, ptr %5, i32 0, i32 4
  store double 0.000000e+00, ptr %10, align 8, !tbaa !49
  %11 = getelementptr inbounds %class.AnisotropicParticleMesher, ptr %5, i32 0, i32 5
  store double 1.000000e+00, ptr %11, align 8, !tbaa !50
  %12 = getelementptr inbounds %class.AnisotropicParticleMesher, ptr %5, i32 0, i32 6
  store double 6.000000e+00, ptr %12, align 8, !tbaa !51
  %13 = getelementptr inbounds %class.AnisotropicParticleMesher, ptr %5, i32 0, i32 7
  store double 3.000000e+00, ptr %13, align 8, !tbaa !52
  %14 = getelementptr inbounds %class.AnisotropicParticleMesher, ptr %5, i32 0, i32 8
  store i32 5, ptr %14, align 8, !tbaa !53
  %15 = getelementptr inbounds %class.AnisotropicParticleMesher, ptr %5, i32 0, i32 9
  store double 0x3FEE666666666666, ptr %15, align 8, !tbaa !54
  %16 = getelementptr inbounds %class.AnisotropicParticleMesher, ptr %5, i32 0, i32 10
  store i32 6, ptr %16, align 8, !tbaa !55
  %17 = getelementptr inbounds %class.AnisotropicParticleMesher, ptr %5, i32 0, i32 11
  store double 5.500000e+00, ptr %17, align 8, !tbaa !56
  %18 = getelementptr inbounds %class.AnisotropicParticleMesher, ptr %5, i32 0, i32 12
  store i32 0, ptr %18, align 8, !tbaa !57
  %19 = getelementptr inbounds %class.AnisotropicParticleMesher, ptr %5, i32 0, i32 13
  store i32 0, ptr %19, align 4, !tbaa !58
  %20 = getelementptr inbounds %class.AnisotropicParticleMesher, ptr %5, i32 0, i32 14
  store i32 0, ptr %20, align 8, !tbaa !59
  %21 = getelementptr inbounds %class.AnisotropicParticleMesher, ptr %5, i32 0, i32 15
  store double 0.000000e+00, ptr %21, align 8, !tbaa !60
  %22 = getelementptr inbounds %class.AnisotropicParticleMesher, ptr %5, i32 0, i32 16
  store i32 16, ptr %22, align 8, !tbaa !61
  %23 = getelementptr inbounds %class.AnisotropicParticleMesher, ptr %5, i32 0, i32 17
  store double 2.000000e+00, ptr %23, align 8, !tbaa !62
  %24 = getelementptr inbounds %class.AnisotropicParticleMesher, ptr %5, i32 0, i32 18
  call void @_ZN16SpatialPointGridC1Ev(ptr noundef nonnull align 8 dereferenceable(152) %24)
  %25 = getelementptr inbounds %class.AnisotropicParticleMesher, ptr %5, i32 0, i32 19
  invoke void @_ZN16FragmentedVectorIN25AnisotropicParticleMesher15SurfaceParticleEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %25)
          to label %26 unwind label %40

26:                                               ; preds = %1
  %27 = getelementptr inbounds %class.AnisotropicParticleMesher, ptr %5, i32 0, i32 20
  invoke void @_ZN16FragmentedVectorI18GridPointReferenceEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %27)
          to label %28 unwind label %44

28:                                               ; preds = %26
  %29 = getelementptr inbounds %class.AnisotropicParticleMesher, ptr %5, i32 0, i32 21
  invoke void @_ZN16FragmentedVectorI18GridPointReferenceEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %29)
          to label %30 unwind label %48

30:                                               ; preds = %28
  %31 = getelementptr inbounds %class.AnisotropicParticleMesher, ptr %5, i32 0, i32 22
  invoke void @_ZN16FragmentedVectorIN5vmath4vec3EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %31)
          to label %32 unwind label %52

32:                                               ; preds = %30
  %33 = getelementptr inbounds %class.AnisotropicParticleMesher, ptr %5, i32 0, i32 23
  invoke void @_ZN11ScalarFieldC1Ev(ptr noundef nonnull align 8 dereferenceable(248) %33)
          to label %34 unwind label %56

34:                                               ; preds = %32
  %35 = getelementptr inbounds %class.AnisotropicParticleMesher, ptr %5, i32 0, i32 24
  store i32 1000000, ptr %35, align 8, !tbaa !63
  %36 = getelementptr inbounds %class.AnisotropicParticleMesher, ptr %5, i32 0, i32 25
  store i32 1, ptr %36, align 4, !tbaa !64
  %37 = getelementptr inbounds %class.AnisotropicParticleMesher, ptr %5, i32 0, i32 26
  store i32 1, ptr %37, align 8, !tbaa !65
  %38 = getelementptr inbounds %class.AnisotropicParticleMesher, ptr %5, i32 0, i32 28
  invoke void @_ZN7Array3dIfEC2Ev(ptr noundef nonnull align 8 dereferenceable(36) %38)
          to label %39 unwind label %60

39:                                               ; preds = %34
  ret void

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

44:                                               ; preds = %26
  %45 = landingpad { ptr, i32 }
          cleanup
  %46 = extractvalue { ptr, i32 } %45, 0
  store ptr %46, ptr %3, align 8
  %47 = extractvalue { ptr, i32 } %45, 1
  store i32 %47, ptr %4, align 4
  br label %67

48:                                               ; preds = %28
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %3, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %4, align 4
  br label %66

52:                                               ; preds = %30
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %3, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %4, align 4
  br label %65

56:                                               ; preds = %32
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %3, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %4, align 4
  br label %64

60:                                               ; preds = %34
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %3, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %4, align 4
  call void @_ZN11ScalarFieldD1Ev(ptr noundef nonnull align 8 dereferenceable(248) %33) #4
  br label %64

64:                                               ; preds = %60, %56
  call void @_ZN16FragmentedVectorIN5vmath4vec3EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %31) #4
  br label %65

65:                                               ; preds = %64, %52
  call void @_ZN16FragmentedVectorI18GridPointReferenceED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %29) #4
  br label %66

66:                                               ; preds = %65, %48
  call void @_ZN16FragmentedVectorI18GridPointReferenceED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %27) #4
  br label %67

67:                                               ; preds = %66, %44
  call void @_ZN16FragmentedVectorIN25AnisotropicParticleMesher15SurfaceParticleEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %25) #4
  br label %68

68:                                               ; preds = %67, %40
  call void @_ZN16SpatialPointGridD1Ev(ptr noundef nonnull align 8 dereferenceable(152) %24) #4
  br label %69

69:                                               ; preds = %68
  %70 = load ptr, ptr %3, align 8
  %71 = load i32, ptr %4, align 4
  %72 = insertvalue { ptr, i32 } poison, ptr %70, 0
  %73 = insertvalue { ptr, i32 } %72, i32 %71, 1
  resume { ptr, i32 } %73
}

declare void @_ZN16SpatialPointGridC1Ev(ptr noundef nonnull align 8 dereferenceable(152)) unnamed_addr #1

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

declare i32 @__gxx_personality_v0(...)

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

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

declare void @_ZN11ScalarFieldC1Ev(ptr noundef nonnull align 8 dereferenceable(248)) unnamed_addr #1

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

; Function Attrs: nounwind
declare void @_ZN11ScalarFieldD1Ev(ptr noundef nonnull align 8 dereferenceable(248)) unnamed_addr #2

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

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

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

; Function Attrs: nounwind
declare void @_ZN16SpatialPointGridD1Ev(ptr noundef nonnull align 8 dereferenceable(152)) unnamed_addr #2

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

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

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


; 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"

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN25AnisotropicParticleMesherC2Ev(ptr noundef nonnull align 8 dereferenceable(784) %0) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  store <2 x double> <double 0.000000e+00, double 4.000000e+00>, ptr %0, align 8, !tbaa !5
  %2 = getelementptr inbounds i8, ptr %0, i64 16
  store <2 x double> <double 1.000000e+00, double 3.500000e+00>, ptr %2, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %0, i64 32
  store <2 x double> <double 0.000000e+00, double 1.000000e+00>, ptr %3, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %0, i64 48
  store <2 x double> <double 6.000000e+00, double 3.000000e+00>, ptr %4, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 64
  store i32 5, ptr %5, align 8, !tbaa !9
  %6 = getelementptr inbounds i8, ptr %0, i64 72
  store double 0x3FEE666666666666, ptr %6, align 8, !tbaa !46
  %7 = getelementptr inbounds i8, ptr %0, i64 80
  store i32 6, ptr %7, align 8, !tbaa !47
  %8 = getelementptr inbounds i8, ptr %0, i64 88
  store double 5.500000e+00, ptr %8, align 8, !tbaa !48
  %9 = getelementptr inbounds i8, ptr %0, i64 96
  store i32 0, ptr %9, align 8, !tbaa !49
  %10 = getelementptr inbounds i8, ptr %0, i64 100
  store i32 0, ptr %10, align 4, !tbaa !50
  %11 = getelementptr inbounds i8, ptr %0, i64 104
  store i32 0, ptr %11, align 8, !tbaa !51
  %12 = getelementptr inbounds i8, ptr %0, i64 112
  store double 0.000000e+00, ptr %12, align 8, !tbaa !52
  %13 = getelementptr inbounds i8, ptr %0, i64 120
  store i32 16, ptr %13, align 8, !tbaa !53
  %14 = getelementptr inbounds i8, ptr %0, i64 128
  store double 2.000000e+00, ptr %14, align 8, !tbaa !54
  %15 = getelementptr inbounds i8, ptr %0, i64 136
  tail call void @_ZN16SpatialPointGridC1Ev(ptr noundef nonnull align 8 dereferenceable(152) %15)
  %16 = getelementptr inbounds i8, ptr %0, i64 288
  invoke void @_ZN16FragmentedVectorIN25AnisotropicParticleMesher15SurfaceParticleEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %16)
          to label %17 unwind label %31

17:                                               ; preds = %1
  %18 = getelementptr inbounds i8, ptr %0, i64 336
  invoke void @_ZN16FragmentedVectorI18GridPointReferenceEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %18)
          to label %19 unwind label %33

19:                                               ; preds = %17
  %20 = getelementptr inbounds i8, ptr %0, i64 384
  invoke void @_ZN16FragmentedVectorI18GridPointReferenceEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %20)
          to label %21 unwind label %35

21:                                               ; preds = %19
  %22 = getelementptr inbounds i8, ptr %0, i64 432
  invoke void @_ZN16FragmentedVectorIN5vmath4vec3EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %22)
          to label %23 unwind label %37

23:                                               ; preds = %21
  %24 = getelementptr inbounds i8, ptr %0, i64 480
  invoke void @_ZN11ScalarFieldC1Ev(ptr noundef nonnull align 8 dereferenceable(248) %24)
          to label %25 unwind label %39

25:                                               ; preds = %23
  %26 = getelementptr inbounds i8, ptr %0, i64 728
  store i32 1000000, ptr %26, align 8, !tbaa !55
  %27 = getelementptr inbounds i8, ptr %0, i64 732
  store i32 1, ptr %27, align 4, !tbaa !56
  %28 = getelementptr inbounds i8, ptr %0, i64 736
  store i32 1, ptr %28, align 8, !tbaa !57
  %29 = getelementptr inbounds i8, ptr %0, i64 744
  invoke void @_ZN7Array3dIfEC2Ev(ptr noundef nonnull align 8 dereferenceable(36) %29)
          to label %30 unwind label %41

30:                                               ; preds = %25
  ret void

31:                                               ; preds = %1
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %47

33:                                               ; preds = %17
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %46

35:                                               ; preds = %19
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %45

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

39:                                               ; preds = %23
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %43

41:                                               ; preds = %25
  %42 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN11ScalarFieldD1Ev(ptr noundef nonnull align 8 dereferenceable(248) %24) #4
  br label %43

43:                                               ; preds = %41, %39
  %.pn = phi { ptr, i32 } [ %42, %41 ], [ %40, %39 ]
  tail call void @_ZN16FragmentedVectorIN5vmath4vec3EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %22) #4
  br label %44

44:                                               ; preds = %43, %37
  %.pn.pn = phi { ptr, i32 } [ %.pn, %43 ], [ %38, %37 ]
  tail call void @_ZN16FragmentedVectorI18GridPointReferenceED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %20) #4
  br label %45

45:                                               ; preds = %44, %35
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %44 ], [ %36, %35 ]
  tail call void @_ZN16FragmentedVectorI18GridPointReferenceED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %18) #4
  br label %46

46:                                               ; preds = %45, %33
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %45 ], [ %34, %33 ]
  tail call void @_ZN16FragmentedVectorIN25AnisotropicParticleMesher15SurfaceParticleEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %16) #4
  br label %47

47:                                               ; preds = %46, %31
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %46 ], [ %32, %31 ]
  tail call void @_ZN16SpatialPointGridD1Ev(ptr noundef nonnull align 8 dereferenceable(152) %15) #4
  resume { ptr, i32 } %.pn.pn.pn.pn.pn
}

declare void @_ZN16SpatialPointGridC1Ev(ptr noundef nonnull align 8 dereferenceable(152)) unnamed_addr #1

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

declare i32 @__gxx_personality_v0(...)

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

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

declare void @_ZN11ScalarFieldC1Ev(ptr noundef nonnull align 8 dereferenceable(248)) unnamed_addr #1

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

; Function Attrs: nounwind
declare void @_ZN11ScalarFieldD1Ev(ptr noundef nonnull align 8 dereferenceable(248)) unnamed_addr #2

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

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

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

; Function Attrs: nounwind
declare void @_ZN16SpatialPointGridD1Ev(ptr noundef nonnull align 8 dereferenceable(152)) unnamed_addr #2

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

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

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


; Effective O3 passes: EarlyCSEPass,InstCombinePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass