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

; 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> }
%struct.Visitor.34 = 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.29 }
%union.anon.29 = type { <4 x float> }
%"class.JPH::CollideSoftBodyVertexIterator" = type { %"class.JPH::StridedPtr", %"class.JPH::StridedPtr.36", %"class.JPH::StridedPtr.38", %"class.JPH::StridedPtr.40", %"class.JPH::StridedPtr.42" }
%"class.JPH::StridedPtr" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::StridedPtr.36" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::StridedPtr.38" = 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] }>

; 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 @_ZNK3JPH16HeightFieldShape23CollideSoftBodyVerticesERKNS_5Mat44ENS_4Vec3ERKNS_29CollideSoftBodyVertexIteratorEji(ptr noundef nonnull align 16 dereferenceable(176) %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 %struct.Visitor.34, align 16
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca %"class.JPH::CollideSoftBodyVertexIterator", align 8
  %17 = alloca %"class.JPH::CollideSoftBodyVertexIterator", align 8
  %18 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 0
  store double %2, ptr %18, align 16
  %19 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 1
  store double %3, ptr %19, 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
  %20 = load ptr, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 736, ptr %14) #5
  %21 = 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
  %22 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 0
  %23 = load double, ptr %22, align 16
  %24 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 1
  %25 = load double, ptr %24, align 8
  call void @_ZZNK3JPH16HeightFieldShape23CollideSoftBodyVerticesERKNS_5Mat44ENS_4Vec3ERKNS_29CollideSoftBodyVertexIteratorEjiEN7VisitorCI2NS_34CollideSoftBodyVerticesVsTrianglesEES3_S4_(ptr noundef nonnull align 16 dereferenceable(732) %14, ptr noundef nonnull align 16 dereferenceable(64) %21, double %23, double %25)
  call void @llvm.lifetime.start.p0(i64 80, ptr %16) #5
  %26 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 %26, i64 80, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.start.p0(i64 80, ptr %17) #5
  %27 = load ptr, ptr %11, align 8, !tbaa !5
  %28 = 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) %27, i32 noundef %28)
  br label %29

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

31:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 80, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %16) #5
  br label %40

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

35:                                               ; preds = %32
  call void @_ZN3JPH34CollideSoftBodyVerticesVsTriangles11StartVertexERKNS_29CollideSoftBodyVertexIteratorE(ptr noundef nonnull align 16 dereferenceable(220) %14, ptr noundef nonnull align 8 dereferenceable(80) %16)
  call void @_ZNK3JPH16HeightFieldShape15WalkHeightFieldIZNKS0_23CollideSoftBodyVerticesERKNS_5Mat44ENS_4Vec3ERKNS_29CollideSoftBodyVertexIteratorEjiE7VisitorEEvRT_(ptr noundef nonnull align 16 dereferenceable(176) %20, ptr noundef nonnull align 16 dereferenceable(732) %14)
  %36 = 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 %36)
  br label %37

37:                                               ; preds = %35, %32
  br label %38

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

40:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 736, ptr %14) #5
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZZNK3JPH16HeightFieldShape23CollideSoftBodyVerticesERKNS_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) #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)) #4 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZNK3JPH16HeightFieldShape15WalkHeightFieldIZNKS0_23CollideSoftBodyVerticesERKNS_5Mat44ENS_4Vec3ERKNS_29CollideSoftBodyVertexIteratorEjiE7VisitorEEvRT_(ptr noundef nonnull align 16 dereferenceable(176), ptr noundef nonnull align 16 dereferenceable(732)) #2 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) #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)) #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 = { 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 = { 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.34 = 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.29 }
%union.anon.29 = 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.36", %"class.JPH::StridedPtr.38", %"class.JPH::StridedPtr.40", %"class.JPH::StridedPtr.42" }
%"class.JPH::StridedPtr" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::StridedPtr.36" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::StridedPtr.38" = 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] }>

; 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 @_ZNK3JPH16HeightFieldShape23CollideSoftBodyVerticesERKNS_5Mat44ENS_4Vec3ERKNS_29CollideSoftBodyVertexIteratorEji(ptr noundef nonnull align 16 dereferenceable(176) %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.34, align 16
  %9 = alloca %"class.JPH::CollideSoftBodyVertexIterator", align 8
  %10 = alloca %"class.JPH::CollideSoftBodyVertexIterator", align 8
  call void @llvm.lifetime.start.p0(i64 736, ptr nonnull %8) #5
  call void @_ZZNK3JPH16HeightFieldShape23CollideSoftBodyVerticesERKNS_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) #5
  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) #5
  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

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

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

14:                                               ; 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 @_ZNK3JPH16HeightFieldShape15WalkHeightFieldIZNKS0_23CollideSoftBodyVerticesERKNS_5Mat44ENS_4Vec3ERKNS_29CollideSoftBodyVertexIteratorEjiE7VisitorEEvRT_(ptr noundef nonnull align 16 dereferenceable(176) %0, ptr noundef nonnull align 16 dereferenceable(732) %8)
  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 %15

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZZNK3JPH16HeightFieldShape23CollideSoftBodyVerticesERKNS_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: mustprogress uwtable
declare hidden void @_ZNK3JPH16HeightFieldShape15WalkHeightFieldIZNKS0_23CollideSoftBodyVerticesERKNS_5Mat44ENS_4Vec3ERKNS_29CollideSoftBodyVertexIteratorEjiE7VisitorEEvRT_(ptr noundef nonnull align 16 dereferenceable(176), ptr noundef nonnull align 16 dereferenceable(732)) local_unnamed_addr #2 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 = { 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,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass