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

; 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] }>

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16FragmentedVectorIN25AnisotropicParticleMesher15SurfaceParticleEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 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 #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Array3dIfEC2Ev(ptr noundef nonnull align 8 dereferenceable(36)) unnamed_addr #1 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

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

38:                                               ; preds = %5
  %39 = getelementptr inbounds %class.AnisotropicParticleMesher, ptr %13, i32 0, i32 20
  invoke void @_ZN16FragmentedVectorI18GridPointReferenceEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %39)
          to label %40 unwind label %56

40:                                               ; preds = %38
  %41 = getelementptr inbounds %class.AnisotropicParticleMesher, ptr %13, i32 0, i32 21
  invoke void @_ZN16FragmentedVectorI18GridPointReferenceEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %41)
          to label %42 unwind label %60

42:                                               ; preds = %40
  %43 = getelementptr inbounds %class.AnisotropicParticleMesher, ptr %13, i32 0, i32 22
  invoke void @_ZN16FragmentedVectorIN5vmath4vec3EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %43)
          to label %44 unwind label %64

44:                                               ; preds = %42
  %45 = getelementptr inbounds %class.AnisotropicParticleMesher, ptr %13, i32 0, i32 23
  invoke void @_ZN11ScalarFieldC1Ev(ptr noundef nonnull align 8 dereferenceable(248) %45)
          to label %46 unwind label %68

46:                                               ; preds = %44
  %47 = getelementptr inbounds %class.AnisotropicParticleMesher, ptr %13, i32 0, i32 24
  store i32 1000000, ptr %47, align 8, !tbaa !65
  %48 = getelementptr inbounds %class.AnisotropicParticleMesher, ptr %13, i32 0, i32 25
  store i32 1, ptr %48, align 4, !tbaa !66
  %49 = getelementptr inbounds %class.AnisotropicParticleMesher, ptr %13, i32 0, i32 26
  store i32 1, ptr %49, align 8, !tbaa !67
  %50 = getelementptr inbounds %class.AnisotropicParticleMesher, ptr %13, i32 0, i32 28
  invoke void @_ZN7Array3dIfEC2Ev(ptr noundef nonnull align 8 dereferenceable(36) %50)
          to label %51 unwind label %72

51:                                               ; preds = %46
  ret void

52:                                               ; preds = %5
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %11, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %12, align 4
  br label %80

56:                                               ; preds = %38
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %11, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %12, align 4
  br label %79

60:                                               ; preds = %40
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %11, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %12, align 4
  br label %78

64:                                               ; preds = %42
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %11, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %12, align 4
  br label %77

68:                                               ; preds = %44
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %11, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %12, align 4
  br label %76

72:                                               ; preds = %46
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %11, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %12, align 4
  call void @_ZN11ScalarFieldD1Ev(ptr noundef nonnull align 8 dereferenceable(248) %45) #4
  br label %76

76:                                               ; preds = %72, %68
  call void @_ZN16FragmentedVectorIN5vmath4vec3EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %43) #4
  br label %77

77:                                               ; preds = %76, %64
  call void @_ZN16FragmentedVectorI18GridPointReferenceED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %41) #4
  br label %78

78:                                               ; preds = %77, %60
  call void @_ZN16FragmentedVectorI18GridPointReferenceED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %39) #4
  br label %79

79:                                               ; preds = %78, %56
  call void @_ZN16FragmentedVectorIN25AnisotropicParticleMesher15SurfaceParticleEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %37) #4
  br label %80

80:                                               ; preds = %79, %52
  call void @_ZN16SpatialPointGridD1Ev(ptr noundef nonnull align 8 dereferenceable(152) %36) #4
  br label %81

81:                                               ; preds = %80
  %82 = load ptr, ptr %11, align 8
  %83 = load i32, ptr %12, align 4
  %84 = insertvalue { ptr, i32 } poison, ptr %82, 0
  %85 = insertvalue { ptr, i32 } %84, i32 %83, 1
  resume { ptr, i32 } %85
}

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"_ZTS25AnisotropicParticleMesher", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !10, i64 64, !12, i64 72, !10, i64 80, !12, i64 88, !10, i64 96, !10, i64 100, !10, i64 104, !12, i64 112, !10, i64 120, !12, i64 128, !15, i64 136, !30, i64 288, !35, i64 336, !35, i64 384, !40, i64 432, !45, i64 480, !10, i64 728, !10, i64 732, !10, i64 736, !46, i64 744}
!15 = !{!"_ZTS16SpatialPointGrid", !10, i64 0, !10, i64 4, !10, i64 8, !12, i64 16, !16, i64 24, !20, i64 48, !24, i64 72, !27, i64 112}
!16 = !{!"_ZTSSt6vectorI9GridPointSaIS0_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseI9GridPointSaIS0_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseI9GridPointSaIS0_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseI9GridPointSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!"_ZTSSt6vectorIiSaIiEE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!"_ZTS7Array3dIN16SpatialPointGrid8CellNodeEE", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !25, i64 24, !26, i64 28, !10, i64 36}
!25 = !{!"bool", !7, i64 0}
!26 = !{!"_ZTSN16SpatialPointGrid8CellNodeE", !10, i64 0, !10, i64 4}
!27 = !{!"_ZTS4AABB", !28, i64 0, !12, i64 16, !12, i64 24, !12, i64 32}
!28 = !{!"_ZTSN5vmath4vec3E", !29, i64 0, !29, i64 4, !29, i64 8}
!29 = !{!"float", !7, i64 0}
!30 = !{!"_ZTS16FragmentedVectorIN25AnisotropicParticleMesher15SurfaceParticleEE", !31, i64 0, !10, i64 24, !10, i64 28, !12, i64 32, !10, i64 40, !10, i64 44}
!31 = !{!"_ZTSSt6vectorIN16FragmentedVectorIN25AnisotropicParticleMesher15SurfaceParticleEE10VectorNodeESaIS4_EE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseIN16FragmentedVectorIN25AnisotropicParticleMesher15SurfaceParticleEE10VectorNodeESaIS4_EE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIN16FragmentedVectorIN25AnisotropicParticleMesher15SurfaceParticleEE10VectorNodeESaIS4_EE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIN16FragmentedVectorIN25AnisotropicParticleMesher15SurfaceParticleEE10VectorNodeESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!35 = !{!"_ZTS16FragmentedVectorI18GridPointReferenceE", !36, i64 0, !10, i64 24, !10, i64 28, !12, i64 32, !10, i64 40, !10, i64 44}
!36 = !{!"_ZTSSt6vectorIN16FragmentedVectorI18GridPointReferenceE10VectorNodeESaIS3_EE", !37, i64 0}
!37 = !{!"_ZTSSt12_Vector_baseIN16FragmentedVectorI18GridPointReferenceE10VectorNodeESaIS3_EE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIN16FragmentedVectorI18GridPointReferenceE10VectorNodeESaIS3_EE12_Vector_implE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIN16FragmentedVectorI18GridPointReferenceE10VectorNodeESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!40 = !{!"_ZTS16FragmentedVectorIN5vmath4vec3EE", !41, i64 0, !10, i64 24, !10, i64 28, !12, i64 32, !10, i64 40, !10, i64 44}
!41 = !{!"_ZTSSt6vectorIN16FragmentedVectorIN5vmath4vec3EE10VectorNodeESaIS4_EE", !42, i64 0}
!42 = !{!"_ZTSSt12_Vector_baseIN16FragmentedVectorIN5vmath4vec3EE10VectorNodeESaIS4_EE", !43, i64 0}
!43 = !{!"_ZTSNSt12_Vector_baseIN16FragmentedVectorIN5vmath4vec3EE10VectorNodeESaIS4_EE12_Vector_implE", !44, i64 0}
!44 = !{!"_ZTSNSt12_Vector_baseIN16FragmentedVectorIN5vmath4vec3EE10VectorNodeESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!45 = !{!"_ZTS11ScalarField", !10, i64 0, !10, i64 4, !10, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !25, i64 80, !46, i64 88, !47, i64 128, !46, i64 160, !47, i64 200, !25, i64 232, !28, i64 236}
!46 = !{!"_ZTS7Array3dIfE", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !25, i64 24, !29, i64 28, !10, i64 32}
!47 = !{!"_ZTS7Array3dIbE", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !25, i64 24, !25, i64 25, !10, i64 28}
!48 = !{!14, !12, i64 8}
!49 = !{!14, !12, i64 16}
!50 = !{!14, !12, i64 24}
!51 = !{!14, !12, i64 32}
!52 = !{!14, !12, i64 40}
!53 = !{!14, !12, i64 48}
!54 = !{!14, !12, i64 56}
!55 = !{!14, !10, i64 64}
!56 = !{!14, !12, i64 72}
!57 = !{!14, !10, i64 80}
!58 = !{!14, !12, i64 88}
!59 = !{!14, !10, i64 96}
!60 = !{!14, !10, i64 100}
!61 = !{!14, !10, i64 104}
!62 = !{!14, !12, i64 112}
!63 = !{!14, !10, i64 120}
!64 = !{!14, !12, i64 128}
!65 = !{!14, !10, i64 728}
!66 = !{!14, !10, i64 732}
!67 = !{!14, !10, 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"

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16FragmentedVectorIN25AnisotropicParticleMesher15SurfaceParticleEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 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 #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Array3dIfEC2Ev(ptr noundef nonnull align 8 dereferenceable(36)) unnamed_addr #1 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

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

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

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

25:                                               ; preds = %23
  %26 = getelementptr inbounds i8, ptr %0, i64 432
  invoke void @_ZN16FragmentedVectorIN5vmath4vec3EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %26)
          to label %27 unwind label %41

27:                                               ; preds = %25
  %28 = getelementptr inbounds i8, ptr %0, i64 480
  invoke void @_ZN11ScalarFieldC1Ev(ptr noundef nonnull align 8 dereferenceable(248) %28)
          to label %29 unwind label %43

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

34:                                               ; preds = %29
  ret void

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

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

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

41:                                               ; preds = %25
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %48

43:                                               ; preds = %27
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %47

45:                                               ; preds = %29
  %46 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN11ScalarFieldD1Ev(ptr noundef nonnull align 8 dereferenceable(248) %28) #4
  br label %47

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

48:                                               ; preds = %47, %41
  %.pn.pn = phi { ptr, i32 } [ %.pn, %47 ], [ %42, %41 ]
  tail call void @_ZN16FragmentedVectorI18GridPointReferenceED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %24) #4
  br label %49

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

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

51:                                               ; preds = %50, %35
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %50 ], [ %36, %35 ]
  tail call void @_ZN16SpatialPointGridD1Ev(ptr noundef nonnull align 8 dereferenceable(152) %19) #4
  resume { ptr, i32 } %.pn.pn.pn.pn.pn
}

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