; LLVM IR from jrouwe/JoltPhysics :: Jolt/Physics/Collision/Shape (MeshShape)

; 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.JPH::Vec3" = type { %union.anon.14 }
%union.anon.14 = type { <4 x float> }
%struct.Visitor.38 = type { %"class.JPH::CollideSoftBodyVerticesVsTriangles.base", [128 x float], [4 x i8] }
%"class.JPH::CollideSoftBodyVerticesVsTriangles.base" = type <{ %"class.JPH::Mat44", %"class.JPH::Mat44", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", float, float, i32 }>
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.33 }
%union.anon.33 = type { <4 x float> }
%"class.JPH::CollideSoftBodyVertexIterator" = type { %"class.JPH::StridedPtr", %"class.JPH::StridedPtr.40", %"class.JPH::StridedPtr.42", %"class.JPH::StridedPtr.44", %"class.JPH::StridedPtr.46" }
%"class.JPH::StridedPtr" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::StridedPtr.40" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::StridedPtr.42" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::StridedPtr.44" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::StridedPtr.46" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::SubShapeIDCreator" = type { %"class.JPH::SubShapeID", i32 }
%"class.JPH::SubShapeID" = type { i32 }

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

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

; Function Attrs: 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) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3JPH9MeshShape23CollideSoftBodyVerticesERKNS_5Mat44ENS_4Vec3ERKNS_29CollideSoftBodyVertexIteratorEji(ptr noundef nonnull align 8 dereferenceable(80) %0, ptr noundef nonnull align 16 dereferenceable(64) %1, double %2, double %3, ptr noundef nonnull align 8 dereferenceable(80) %4, i32 noundef %5, i32 noundef %6) unnamed_addr #3 align 2 {
  %8 = alloca %"class.JPH::Vec3", align 16
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %struct.Visitor.38, align 16
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca %"class.JPH::CollideSoftBodyVertexIterator", align 8
  %17 = alloca %"class.JPH::CollideSoftBodyVertexIterator", align 8
  %18 = alloca %"class.JPH::SubShapeIDCreator", align 4
  %19 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 0
  store double %2, ptr %19, align 16
  %20 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 1
  store double %3, ptr %20, align 8
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  store i32 %5, ptr %12, align 4, !tbaa !9
  store i32 %6, ptr %13, align 4, !tbaa !9
  %21 = load ptr, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 736, ptr %14) #7
  %22 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %15, ptr align 16 %8, i64 16, i1 false), !tbaa.struct !11
  %23 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 0
  %24 = load double, ptr %23, align 16
  %25 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 1
  %26 = load double, ptr %25, align 8
  call void @_ZZNK3JPH9MeshShape23CollideSoftBodyVerticesERKNS_5Mat44ENS_4Vec3ERKNS_29CollideSoftBodyVertexIteratorEjiEN7VisitorCI2NS_34CollideSoftBodyVerticesVsTrianglesEES3_S4_(ptr noundef nonnull align 16 dereferenceable(732) %14, ptr noundef nonnull align 16 dereferenceable(64) %22, double %24, double %26)
  call void @llvm.lifetime.start.p0(i64 80, ptr %16) #7
  %27 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 %27, i64 80, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.start.p0(i64 80, ptr %17) #7
  %28 = load ptr, ptr %11, align 8, !tbaa !5
  %29 = load i32, ptr %12, align 4, !tbaa !9
  call void @_ZNK3JPH29CollideSoftBodyVertexIteratorplEi(ptr dead_on_unwind writable sret(%"class.JPH::CollideSoftBodyVertexIterator") align 8 %17, ptr noundef nonnull align 8 dereferenceable(80) %28, i32 noundef %29)
  br label %30

30:                                               ; preds = %39, %7
  %31 = call noundef zeroext i1 @_ZNK3JPH29CollideSoftBodyVertexIteratorneERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %16, ptr noundef nonnull align 8 dereferenceable(80) %17)
  br i1 %31, label %33, label %32

32:                                               ; preds = %30
  call void @llvm.lifetime.end.p0(i64 80, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %16) #7
  br label %41

33:                                               ; preds = %30
  %34 = call noundef float @_ZNK3JPH29CollideSoftBodyVertexIterator10GetInvMassEv(ptr noundef nonnull align 8 dereferenceable(80) %16)
  %35 = fcmp ogt float %34, 0.000000e+00
  br i1 %35, label %36, label %38

36:                                               ; preds = %33
  call void @_ZN3JPH34CollideSoftBodyVerticesVsTriangles11StartVertexERKNS_29CollideSoftBodyVertexIteratorE(ptr noundef nonnull align 16 dereferenceable(220) %14, ptr noundef nonnull align 8 dereferenceable(80) %16)
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  call void @llvm.memset.p0.i64(ptr align 4 %18, i8 0, i64 8, i1 false)
  call void @_ZN3JPH17SubShapeIDCreatorC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %18) #7
  call void @_ZNK3JPH9MeshShape19WalkTreePerTriangleIZNKS0_23CollideSoftBodyVerticesERKNS_5Mat44ENS_4Vec3ERKNS_29CollideSoftBodyVertexIteratorEjiE7VisitorEEvRKNS_17SubShapeIDCreatorERT_(ptr noundef nonnull align 8 dereferenceable(80) %21, ptr noundef nonnull align 4 dereferenceable(8) %18, ptr noundef nonnull align 16 dereferenceable(732) %14)
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  %37 = load i32, ptr %13, align 4, !tbaa !9
  call void @_ZNK3JPH34CollideSoftBodyVerticesVsTriangles12FinishVertexERKNS_29CollideSoftBodyVertexIteratorEi(ptr noundef nonnull align 16 dereferenceable(220) %14, ptr noundef nonnull align 8 dereferenceable(80) %16, i32 noundef %37)
  br label %38

38:                                               ; preds = %36, %33
  br label %39

39:                                               ; preds = %38
  %40 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZN3JPH29CollideSoftBodyVertexIteratorppEv(ptr noundef nonnull align 8 dereferenceable(80) %16)
  br label %30, !llvm.loop !14

41:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 736, ptr %14) #7
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZZNK3JPH9MeshShape23CollideSoftBodyVerticesERKNS_5Mat44ENS_4Vec3ERKNS_29CollideSoftBodyVertexIteratorEjiEN7VisitorCI2NS_34CollideSoftBodyVerticesVsTrianglesEES3_S4_(ptr noundef nonnull align 16 dereferenceable(732), ptr noundef nonnull align 16 dereferenceable(64), double, double) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH29CollideSoftBodyVertexIteratorplEi(ptr dead_on_unwind noalias writable sret(%"class.JPH::CollideSoftBodyVertexIterator") align 8, ptr noundef nonnull align 8 dereferenceable(80), i32 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH29CollideSoftBodyVertexIteratorneERKS0_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(80)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZNK3JPH29CollideSoftBodyVertexIterator10GetInvMassEv(ptr noundef nonnull align 8 dereferenceable(80)) #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH34CollideSoftBodyVerticesVsTriangles11StartVertexERKNS_29CollideSoftBodyVertexIteratorE(ptr noundef nonnull align 16 dereferenceable(220), ptr noundef nonnull align 8 dereferenceable(80)) #5 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare hidden void @_ZNK3JPH9MeshShape19WalkTreePerTriangleIZNKS0_23CollideSoftBodyVerticesERKNS_5Mat44ENS_4Vec3ERKNS_29CollideSoftBodyVertexIteratorEjiE7VisitorEEvRKNS_17SubShapeIDCreatorERT_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 16 dereferenceable(732)) #5 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZNK3JPH34CollideSoftBodyVerticesVsTriangles12FinishVertexERKNS_29CollideSoftBodyVertexIteratorEi(ptr noundef nonnull align 16 dereferenceable(220), ptr noundef nonnull align 8 dereferenceable(80), i32 noundef) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(80) ptr @_ZN3JPH29CollideSoftBodyVertexIteratorppEv(ptr noundef nonnull align 8 dereferenceable(80)) #3 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress 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 = { alwaysinline 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 #6 = { 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 #7 = { 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 = !{i64 0, i64 16, !12}
!12 = !{!7, !7, i64 0}
!13 = !{i64 0, i64 8, !5, i64 8, i64 4, !9, i64 16, i64 8, !5, i64 24, i64 4, !9, i64 32, i64 8, !5, i64 40, i64 4, !9, i64 48, i64 8, !5, i64 56, i64 4, !9, i64 64, i64 8, !5, i64 72, i64 4, !9}
!14 = distinct !{!14, !15}
!15 = !{!"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"

%struct.Visitor.38 = type { %"class.JPH::CollideSoftBodyVerticesVsTriangles.base", [128 x float], [4 x i8] }
%"class.JPH::CollideSoftBodyVerticesVsTriangles.base" = type <{ %"class.JPH::Mat44", %"class.JPH::Mat44", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", float, float, i32 }>
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.33 }
%union.anon.33 = type { <4 x float> }
%"class.JPH::Vec3" = type { %union.anon.14 }
%union.anon.14 = type { <4 x float> }
%"class.JPH::CollideSoftBodyVertexIterator" = type { %"class.JPH::StridedPtr", %"class.JPH::StridedPtr.40", %"class.JPH::StridedPtr.42", %"class.JPH::StridedPtr.44", %"class.JPH::StridedPtr.46" }
%"class.JPH::StridedPtr" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::StridedPtr.40" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::StridedPtr.42" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::StridedPtr.44" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::StridedPtr.46" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::SubShapeIDCreator" = type { %"class.JPH::SubShapeID", i32 }
%"class.JPH::SubShapeID" = type { i32 }

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

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

; Function Attrs: mustprogress 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) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3JPH9MeshShape23CollideSoftBodyVerticesERKNS_5Mat44ENS_4Vec3ERKNS_29CollideSoftBodyVertexIteratorEji(ptr noundef nonnull align 8 dereferenceable(80) %0, ptr noundef nonnull align 16 dereferenceable(64) %1, double %2, double %3, ptr noundef nonnull align 8 dereferenceable(80) %4, i32 noundef %5, i32 noundef %6) unnamed_addr #2 align 2 {
  %8 = alloca %struct.Visitor.38, align 16
  %9 = alloca %"class.JPH::CollideSoftBodyVertexIterator", align 8
  %10 = alloca %"class.JPH::CollideSoftBodyVertexIterator", align 8
  %11 = alloca %"class.JPH::SubShapeIDCreator", align 8
  call void @llvm.lifetime.start.p0(i64 736, ptr nonnull %8) #6
  call void @_ZZNK3JPH9MeshShape23CollideSoftBodyVerticesERKNS_5Mat44ENS_4Vec3ERKNS_29CollideSoftBodyVertexIteratorEjiEN7VisitorCI2NS_34CollideSoftBodyVerticesVsTrianglesEES3_S4_(ptr noundef nonnull align 16 dereferenceable(732) %8, ptr noundef nonnull align 16 dereferenceable(64) %1, double %2, double %3)
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %9) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %9, ptr noundef nonnull align 8 dereferenceable(80) %4, i64 80, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %10) #6
  call void @_ZNK3JPH29CollideSoftBodyVertexIteratorplEi(ptr dead_on_unwind nonnull writable sret(%"class.JPH::CollideSoftBodyVertexIterator") align 8 %10, ptr noundef nonnull align 8 dereferenceable(80) %4, i32 noundef %5)
  %12 = call noundef zeroext i1 @_ZNK3JPH29CollideSoftBodyVertexIteratorneERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %9, ptr noundef nonnull align 8 dereferenceable(80) %10)
  br i1 %12, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %16, %7
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 736, ptr nonnull %8) #6
  ret void

.lr.ph:                                           ; preds = %7, %16
  %13 = call noundef float @_ZNK3JPH29CollideSoftBodyVertexIterator10GetInvMassEv(ptr noundef nonnull align 8 dereferenceable(80) %9)
  %14 = fcmp ogt float %13, 0.000000e+00
  br i1 %14, label %15, label %16

15:                                               ; preds = %.lr.ph
  call void @_ZN3JPH34CollideSoftBodyVerticesVsTriangles11StartVertexERKNS_29CollideSoftBodyVertexIteratorE(ptr noundef nonnull align 16 dereferenceable(220) %8, ptr noundef nonnull align 8 dereferenceable(80) %9)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  store i64 0, ptr %11, align 8
  call void @_ZN3JPH17SubShapeIDCreatorC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %11) #6
  call void @_ZNK3JPH9MeshShape19WalkTreePerTriangleIZNKS0_23CollideSoftBodyVerticesERKNS_5Mat44ENS_4Vec3ERKNS_29CollideSoftBodyVertexIteratorEjiE7VisitorEEvRKNS_17SubShapeIDCreatorERT_(ptr noundef nonnull align 8 dereferenceable(80) %0, ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 16 dereferenceable(732) %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @_ZNK3JPH34CollideSoftBodyVerticesVsTriangles12FinishVertexERKNS_29CollideSoftBodyVertexIteratorEi(ptr noundef nonnull align 16 dereferenceable(220) %8, ptr noundef nonnull align 8 dereferenceable(80) %9, i32 noundef %6)
  br label %16

16:                                               ; preds = %.lr.ph, %15
  %17 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZN3JPH29CollideSoftBodyVertexIteratorppEv(ptr noundef nonnull align 8 dereferenceable(80) %9)
  %18 = call noundef zeroext i1 @_ZNK3JPH29CollideSoftBodyVertexIteratorneERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %9, ptr noundef nonnull align 8 dereferenceable(80) %10)
  br i1 %18, label %.lr.ph, label %._crit_edge, !llvm.loop !12
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZZNK3JPH9MeshShape23CollideSoftBodyVerticesERKNS_5Mat44ENS_4Vec3ERKNS_29CollideSoftBodyVertexIteratorEjiEN7VisitorCI2NS_34CollideSoftBodyVerticesVsTrianglesEES3_S4_(ptr noundef nonnull align 16 dereferenceable(732), ptr noundef nonnull align 16 dereferenceable(64), double, double) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH29CollideSoftBodyVertexIteratorplEi(ptr dead_on_unwind noalias writable sret(%"class.JPH::CollideSoftBodyVertexIterator") align 8, ptr noundef nonnull align 8 dereferenceable(80), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH29CollideSoftBodyVertexIteratorneERKS0_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZNK3JPH29CollideSoftBodyVertexIterator10GetInvMassEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #2 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare hidden void @_ZNK3JPH9MeshShape19WalkTreePerTriangleIZNKS0_23CollideSoftBodyVerticesERKNS_5Mat44ENS_4Vec3ERKNS_29CollideSoftBodyVertexIteratorEjiE7VisitorEEvRKNS_17SubShapeIDCreatorERT_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 16 dereferenceable(732)) local_unnamed_addr #4 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZNK3JPH34CollideSoftBodyVerticesVsTriangles12FinishVertexERKNS_29CollideSoftBodyVertexIteratorEi(ptr noundef nonnull align 16 dereferenceable(220), ptr noundef nonnull align 8 dereferenceable(80), i32 noundef) local_unnamed_addr #4 align 2

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

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


; Effective O3 passes: GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass