; LLVM IR from jrouwe/JoltPhysics :: UnitTests (PhysicsTestContext)

; 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::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.26 }
%union.anon.26 = type { <4 x float> }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }

; 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 nounwind uwtable
declare dso_local noundef float @_ZSt5roundf(float noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK18PhysicsTestContext16GetStepDeltaTimeEv(ptr noundef nonnull align 8 dereferenceable(72)) #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16), float noundef) #4 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local { double, double } @_ZNK18PhysicsTestContext18PredictOrientationEN3JPH4QuatENS0_4Vec3ES2_f(ptr noundef nonnull align 8 dereferenceable(72) %0, double %1, double %2, double %3, double %4, double %5, double %6, float noundef %7) #5 align 2 {
  %9 = alloca %"class.JPH::Quat", align 16
  %10 = alloca %"class.JPH::Quat", align 16
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca ptr, align 8
  %14 = alloca float, align 4
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca float, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca float, align 4
  %21 = alloca %"class.JPH::Quat", align 16
  %22 = alloca %"class.JPH::Quat", align 16
  %23 = alloca %"class.JPH::Vec3", align 16
  %24 = alloca %"class.JPH::Quat", align 16
  %25 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 0
  store double %1, ptr %25, align 16
  %26 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 1
  store double %2, ptr %26, align 8
  %27 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 0
  store double %3, ptr %27, align 16
  %28 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 1
  store double %4, ptr %28, align 8
  %29 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 0
  store double %5, ptr %29, align 16
  %30 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 1
  store double %6, ptr %30, align 8
  store ptr %0, ptr %13, align 8, !tbaa !5
  store float %7, ptr %14, align 4, !tbaa !9
  %31 = load ptr, ptr %13, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %9, ptr align 16 %10, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %15, ptr align 16 %11, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %32 = call noundef float @_ZNK18PhysicsTestContext16GetStepDeltaTimeEv(ptr noundef nonnull align 8 dereferenceable(72) %31)
  store float %32, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %33 = load float, ptr %14, align 4, !tbaa !9
  %34 = load float, ptr %16, align 4, !tbaa !9
  %35 = fdiv float %33, %34
  %36 = call noundef float @_ZSt5roundf(float noundef %35)
  %37 = fptosi float %36 to i32
  store i32 %37, ptr %17, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 0, ptr %18, align 4, !tbaa !13
  br label %38

38:                                               ; preds = %97, %8
  %39 = load i32, ptr %18, align 4, !tbaa !13
  %40 = load i32, ptr %17, align 4, !tbaa !13
  %41 = icmp slt i32 %39, %40
  br i1 %41, label %43, label %42

42:                                               ; preds = %38
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %100

43:                                               ; preds = %38
  %44 = load float, ptr %16, align 4, !tbaa !9
  %45 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %12, float noundef %44)
  %46 = getelementptr inbounds %"class.JPH::Vec3", ptr %19, i32 0, i32 0
  %47 = getelementptr inbounds %union.anon, ptr %46, i32 0, i32 0
  %48 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 0
  %49 = extractvalue { double, double } %45, 0
  store double %49, ptr %48, align 16
  %50 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 1
  %51 = extractvalue { double, double } %45, 1
  store double %51, ptr %50, align 8
  %52 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %53 = load double, ptr %52, align 16
  %54 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %55 = load double, ptr %54, align 8
  %56 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %15, double %53, double %55)
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %57 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %15)
  store float %57, ptr %20, align 4, !tbaa !9
  %58 = load float, ptr %20, align 4, !tbaa !9
  %59 = fcmp une float %58, 0.000000e+00
  br i1 %59, label %60, label %96

60:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #7
  %61 = load float, ptr %20, align 4, !tbaa !9
  %62 = call { double, double } @_ZNK3JPH4Vec3dvEf(ptr noundef nonnull align 16 dereferenceable(16) %15, float noundef %61)
  %63 = getelementptr inbounds %"class.JPH::Vec3", ptr %23, i32 0, i32 0
  %64 = getelementptr inbounds %union.anon, ptr %63, i32 0, i32 0
  %65 = getelementptr inbounds { double, double }, ptr %64, i32 0, i32 0
  %66 = extractvalue { double, double } %62, 0
  store double %66, ptr %65, align 16
  %67 = getelementptr inbounds { double, double }, ptr %64, i32 0, i32 1
  %68 = extractvalue { double, double } %62, 1
  store double %68, ptr %67, align 8
  %69 = load float, ptr %20, align 4, !tbaa !9
  %70 = load float, ptr %16, align 4, !tbaa !9
  %71 = fmul float %69, %70
  %72 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 0
  %73 = load double, ptr %72, align 16
  %74 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 1
  %75 = load double, ptr %74, align 8
  %76 = call { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %73, double %75, float noundef %71)
  %77 = getelementptr inbounds %"class.JPH::Quat", ptr %22, i32 0, i32 0
  %78 = getelementptr inbounds %"class.JPH::Vec4", ptr %77, i32 0, i32 0
  %79 = getelementptr inbounds %union.anon.26, ptr %78, i32 0, i32 0
  %80 = getelementptr inbounds { double, double }, ptr %79, i32 0, i32 0
  %81 = extractvalue { double, double } %76, 0
  store double %81, ptr %80, align 16
  %82 = getelementptr inbounds { double, double }, ptr %79, i32 0, i32 1
  %83 = extractvalue { double, double } %76, 1
  store double %83, ptr %82, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %24, ptr align 16 %9, i64 16, i1 false), !tbaa.struct !11
  %84 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %85 = load double, ptr %84, align 16
  %86 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  %87 = load double, ptr %86, align 8
  %88 = call { double, double } @_ZNK3JPH4QuatmlES0_(ptr noundef nonnull align 16 dereferenceable(16) %22, double %85, double %87)
  %89 = getelementptr inbounds %"class.JPH::Quat", ptr %21, i32 0, i32 0
  %90 = getelementptr inbounds %"class.JPH::Vec4", ptr %89, i32 0, i32 0
  %91 = getelementptr inbounds %union.anon.26, ptr %90, i32 0, i32 0
  %92 = getelementptr inbounds { double, double }, ptr %91, i32 0, i32 0
  %93 = extractvalue { double, double } %88, 0
  store double %93, ptr %92, align 16
  %94 = getelementptr inbounds { double, double }, ptr %91, i32 0, i32 1
  %95 = extractvalue { double, double } %88, 1
  store double %95, ptr %94, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %9, ptr align 16 %21, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #7
  br label %96

96:                                               ; preds = %60, %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %97

97:                                               ; preds = %96
  %98 = load i32, ptr %18, align 4, !tbaa !13
  %99 = add nsw i32 %98, 1
  store i32 %99, ptr %18, align 4, !tbaa !13
  br label %38, !llvm.loop !15

100:                                              ; preds = %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #7
  %101 = getelementptr inbounds %"class.JPH::Quat", ptr %9, i32 0, i32 0
  %102 = getelementptr inbounds %"class.JPH::Vec4", ptr %101, i32 0, i32 0
  %103 = getelementptr inbounds %union.anon.26, ptr %102, i32 0, i32 0
  %104 = load { double, double }, ptr %103, align 16
  ret { double, double } %104
}

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16)) #6 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double, double, float noundef) #6 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3dvEf(ptr noundef nonnull align 16 dereferenceable(16), float noundef) #4 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4QuatmlES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #6 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "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 = { 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 = { 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 #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 = !{!"float", !7, i64 0}
!11 = !{i64 0, i64 16, !12}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"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::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.26 }
%union.anon.26 = type { <4 x float> }

; 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 nounwind uwtable
declare dso_local noundef float @_ZSt5roundf(float noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK18PhysicsTestContext16GetStepDeltaTimeEv(ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16), float noundef) local_unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local { double, double } @_ZNK18PhysicsTestContext18PredictOrientationEN3JPH4QuatENS0_4Vec3ES2_f(ptr noundef nonnull align 8 dereferenceable(72) %0, double %1, double %2, double %3, double %4, double %5, double %6, float noundef %7) local_unnamed_addr #4 align 2 {
  %9 = alloca %"class.JPH::Vec3", align 16
  %10 = alloca %"class.JPH::Vec3", align 16
  %11 = alloca %"class.JPH::Quat", align 16
  store double %5, ptr %9, align 16
  %12 = getelementptr inbounds i8, ptr %9, i64 8
  store double %6, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #6
  store double %3, ptr %10, align 16
  %.sroa.216.0..sroa_idx = getelementptr inbounds i8, ptr %10, i64 8
  store double %4, ptr %.sroa.216.0..sroa_idx, align 8, !tbaa !5
  %13 = tail call noundef float @_ZNK18PhysicsTestContext16GetStepDeltaTimeEv(ptr noundef nonnull align 8 dereferenceable(72) %0)
  %14 = fdiv float %7, %13
  %15 = tail call noundef float @_ZSt5roundf(float noundef %14)
  %16 = fptosi float %15 to i32
  %17 = icmp sgt i32 %16, 0
  br i1 %17, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %8
  %18 = getelementptr inbounds i8, ptr %11, i64 8
  br label %19

._crit_edge:                                      ; preds = %37, %8
  %.sroa.019.0.lcssa = phi double [ %1, %8 ], [ %.sroa.019.1, %37 ]
  %.sroa.420.0.lcssa = phi double [ %2, %8 ], [ %.sroa.420.1, %37 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #6
  %.fca.0.insert = insertvalue { double, double } poison, double %.sroa.019.0.lcssa, 0
  %.fca.1.insert = insertvalue { double, double } %.fca.0.insert, double %.sroa.420.0.lcssa, 1
  ret { double, double } %.fca.1.insert

19:                                               ; preds = %.lr.ph, %37
  %.sroa.420.024 = phi double [ %2, %.lr.ph ], [ %.sroa.420.1, %37 ]
  %.sroa.019.023 = phi double [ %1, %.lr.ph ], [ %.sroa.019.1, %37 ]
  %.022 = phi i32 [ 0, %.lr.ph ], [ %38, %37 ]
  %20 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %9, float noundef %13)
  %21 = extractvalue { double, double } %20, 0
  %22 = extractvalue { double, double } %20, 1
  %23 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %10, double %21, double %22)
  %24 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %10)
  %25 = fcmp une float %24, 0.000000e+00
  br i1 %25, label %26, label %37

26:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #6
  %27 = call { double, double } @_ZNK3JPH4Vec3dvEf(ptr noundef nonnull align 16 dereferenceable(16) %10, float noundef %24)
  %28 = extractvalue { double, double } %27, 0
  %29 = extractvalue { double, double } %27, 1
  %30 = fmul float %13, %24
  %31 = call { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %28, double %29, float noundef %30)
  %32 = extractvalue { double, double } %31, 0
  store double %32, ptr %11, align 16
  %33 = extractvalue { double, double } %31, 1
  store double %33, ptr %18, align 8
  %34 = call { double, double } @_ZNK3JPH4QuatmlES0_(ptr noundef nonnull align 16 dereferenceable(16) %11, double %.sroa.019.023, double %.sroa.420.024)
  %35 = extractvalue { double, double } %34, 0
  %36 = extractvalue { double, double } %34, 1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  br label %37

37:                                               ; preds = %26, %19
  %.sroa.019.1 = phi double [ %35, %26 ], [ %.sroa.019.023, %19 ]
  %.sroa.420.1 = phi double [ %36, %26 ], [ %.sroa.420.024, %19 ]
  %38 = add nuw nsw i32 %.022, 1
  %exitcond.not = icmp eq i32 %38, %16
  br i1 %exitcond.not, label %._crit_edge, label %19, !llvm.loop !8
}

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #5 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double, double, float noundef) local_unnamed_addr #5 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3dvEf(ptr noundef nonnull align 16 dereferenceable(16), float noundef) local_unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4QuatmlES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #5 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "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 = { 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 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass