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

; 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.3 }
%union.anon.3 = type { <4 x float> }
%"class.JPH::CollideSoftBodyVerticesVsTriangles" = 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, [4 x i8] }>
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.5 }
%union.anon.5 = type { <4 x float> }
%"class.JPH::CollideSoftBodyVertexIterator" = type { %"class.JPH::StridedPtr", %"class.JPH::StridedPtr.7", %"class.JPH::StridedPtr.9", %"class.JPH::StridedPtr.11", %"class.JPH::StridedPtr.13" }
%"class.JPH::StridedPtr" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::StridedPtr.7" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::StridedPtr.9" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::StridedPtr.11" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::StridedPtr.13" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::TriangleShape" = type <{ %"class.JPH::ConvexShape.base", [4 x i8], %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", float, [12 x i8] }>
%"class.JPH::ConvexShape.base" = type <{ %"class.JPH::Shape.base", [6 x i8], %"class.JPH::RefConst", float }>
%"class.JPH::Shape.base" = type <{ ptr, %"class.JPH::RefTarget.4", [4 x i8], i64, i8, i8 }>
%"class.JPH::RefTarget.4" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::RefConst" = type { ptr }

; 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: mustprogress uwtable
define dso_local void @_ZNK3JPH13TriangleShape23CollideSoftBodyVerticesERKNS_5Mat44ENS_4Vec3ERKNS_29CollideSoftBodyVertexIteratorEji(ptr noundef nonnull align 16 dereferenceable(112) %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 %"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 %"class.JPH::CollideSoftBodyVerticesVsTriangles", 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::Vec3", align 16
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca %"class.JPH::Vec3", align 16
  %21 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 0
  store double %2, ptr %21, align 16
  %22 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 1
  store double %3, ptr %22, 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
  %23 = load ptr, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 224, ptr %14) #4
  %24 = 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
  %25 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 0
  %26 = load double, ptr %25, align 16
  %27 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 1
  %28 = load double, ptr %27, align 8
  call void @_ZN3JPH34CollideSoftBodyVerticesVsTrianglesC2ERKNS_5Mat44ENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(220) %14, ptr noundef nonnull align 16 dereferenceable(64) %24, double %26, double %28)
  call void @llvm.lifetime.start.p0(i64 80, ptr %16) #4
  %29 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 %29, i64 80, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.start.p0(i64 80, ptr %17) #4
  %30 = load ptr, ptr %11, align 8, !tbaa !5
  %31 = 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) %30, i32 noundef %31)
  br label %32

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

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

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

38:                                               ; preds = %35
  call void @_ZN3JPH34CollideSoftBodyVerticesVsTriangles11StartVertexERKNS_29CollideSoftBodyVertexIteratorE(ptr noundef nonnull align 16 dereferenceable(220) %14, ptr noundef nonnull align 8 dereferenceable(80) %16)
  %39 = getelementptr inbounds %"class.JPH::TriangleShape", ptr %23, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %18, ptr align 16 %39, i64 16, i1 false), !tbaa.struct !11
  %40 = getelementptr inbounds %"class.JPH::TriangleShape", ptr %23, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %19, ptr align 16 %40, i64 16, i1 false), !tbaa.struct !11
  %41 = getelementptr inbounds %"class.JPH::TriangleShape", ptr %23, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %20, ptr align 16 %41, i64 16, i1 false), !tbaa.struct !11
  %42 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %43 = load double, ptr %42, align 16
  %44 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %45 = load double, ptr %44, align 8
  %46 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %47 = load double, ptr %46, align 16
  %48 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %49 = load double, ptr %48, align 8
  %50 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 0
  %51 = load double, ptr %50, align 16
  %52 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 1
  %53 = load double, ptr %52, align 8
  call void @_ZN3JPH34CollideSoftBodyVerticesVsTriangles15ProcessTriangleENS_4Vec3ES1_S1_(ptr noundef nonnull align 16 dereferenceable(220) %14, double %43, double %45, double %47, double %49, double %51, double %53)
  %54 = 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 %54)
  br label %55

55:                                               ; preds = %38, %35
  br label %56

56:                                               ; preds = %55
  %57 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZN3JPH29CollideSoftBodyVertexIteratorppEv(ptr noundef nonnull align 8 dereferenceable(80) %16)
  br label %32, !llvm.loop !14

58:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 224, ptr %14) #4
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH34CollideSoftBodyVerticesVsTrianglesC2ERKNS_5Mat44ENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(220), ptr noundef nonnull align 16 dereferenceable(64), double, double) unnamed_addr #2 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) #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)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZNK3JPH29CollideSoftBodyVertexIterator10GetInvMassEv(ptr noundef nonnull align 8 dereferenceable(80)) #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)) #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH34CollideSoftBodyVerticesVsTriangles15ProcessTriangleENS_4Vec3ES1_S1_(ptr noundef nonnull align 16 dereferenceable(220), double, double, double, double, double, double) #3 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) #3 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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 #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 = !{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"

%"class.JPH::CollideSoftBodyVerticesVsTriangles" = 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, [4 x i8] }>
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.5 }
%union.anon.5 = type { <4 x float> }
%"class.JPH::Vec3" = type { %union.anon.3 }
%union.anon.3 = type { <4 x float> }
%"class.JPH::CollideSoftBodyVertexIterator" = type { %"class.JPH::StridedPtr", %"class.JPH::StridedPtr.7", %"class.JPH::StridedPtr.9", %"class.JPH::StridedPtr.11", %"class.JPH::StridedPtr.13" }
%"class.JPH::StridedPtr" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::StridedPtr.7" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::StridedPtr.9" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::StridedPtr.11" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::StridedPtr.13" = type <{ ptr, i32, [4 x i8] }>

; 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 @_ZNK3JPH13TriangleShape23CollideSoftBodyVerticesERKNS_5Mat44ENS_4Vec3ERKNS_29CollideSoftBodyVertexIteratorEji(ptr nocapture noundef nonnull readonly align 16 dereferenceable(112) %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 %"class.JPH::CollideSoftBodyVerticesVsTriangles", align 16
  %9 = alloca %"class.JPH::CollideSoftBodyVertexIterator", align 8
  %10 = alloca %"class.JPH::CollideSoftBodyVertexIterator", align 8
  call void @llvm.lifetime.start.p0(i64 224, ptr nonnull %8) #4
  call void @_ZN3JPH34CollideSoftBodyVerticesVsTrianglesC2ERKNS_5Mat44ENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(220) %8, ptr noundef nonnull align 16 dereferenceable(64) %1, double %2, double %3)
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %9) #4
  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) #4
  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)
  %11 = call noundef zeroext i1 @_ZNK3JPH29CollideSoftBodyVertexIteratorneERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %9, ptr noundef nonnull align 8 dereferenceable(80) %10)
  br i1 %11, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %7
  %12 = getelementptr inbounds i8, ptr %0, i64 48
  %.sroa.24.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 56
  %13 = getelementptr inbounds i8, ptr %0, i64 64
  %.sroa.22.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 72
  %14 = getelementptr inbounds i8, ptr %0, i64 80
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 88
  br label %15

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

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

18:                                               ; preds = %15
  call void @_ZN3JPH34CollideSoftBodyVerticesVsTriangles11StartVertexERKNS_29CollideSoftBodyVertexIteratorE(ptr noundef nonnull align 16 dereferenceable(220) %8, ptr noundef nonnull align 8 dereferenceable(80) %9)
  %.sroa.03.0.copyload = load double, ptr %12, align 16
  %.sroa.24.0.copyload = load double, ptr %.sroa.24.0..sroa_idx, align 8, !tbaa !12
  %.sroa.01.0.copyload = load double, ptr %13, align 16
  %.sroa.22.0.copyload = load double, ptr %.sroa.22.0..sroa_idx, align 8, !tbaa !12
  %.sroa.0.0.copyload = load double, ptr %14, align 16
  %.sroa.2.0.copyload = load double, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !12
  call void @_ZN3JPH34CollideSoftBodyVerticesVsTriangles15ProcessTriangleENS_4Vec3ES1_S1_(ptr noundef nonnull align 16 dereferenceable(220) %8, double %.sroa.03.0.copyload, double %.sroa.24.0.copyload, double %.sroa.01.0.copyload, double %.sroa.22.0.copyload, double %.sroa.0.0.copyload, double %.sroa.2.0.copyload)
  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 %19

19:                                               ; preds = %15, %18
  %20 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZN3JPH29CollideSoftBodyVertexIteratorppEv(ptr noundef nonnull align 8 dereferenceable(80) %9)
  %21 = call noundef zeroext i1 @_ZNK3JPH29CollideSoftBodyVertexIteratorneERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %9, ptr noundef nonnull align 8 dereferenceable(80) %10)
  br i1 %21, label %15, label %._crit_edge, !llvm.loop !13
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH34CollideSoftBodyVerticesVsTrianglesC2ERKNS_5Mat44ENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(220), ptr noundef nonnull align 16 dereferenceable(64), double, double) unnamed_addr #2 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 #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH34CollideSoftBodyVerticesVsTriangles15ProcessTriangleENS_4Vec3ES1_S1_(ptr noundef nonnull align 16 dereferenceable(220), double, double, double, double, double, double) local_unnamed_addr #3 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 #3 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 = { 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 #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 = !{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 = !{!8, !8, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


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