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

; 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 }
%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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3absf(float noundef) #2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef float @_ZNK3JPH21CastSphereVsTriangles11RayCylinderENS_4Vec3ES1_S1_f(ptr noundef nonnull align 16 dereferenceable(100) %0, double %1, double %2, double %3, double %4, double %5, double %6, float noundef %7) #4 align 2 {
  %9 = alloca float, align 4
  %10 = alloca %"class.JPH::Vec3", 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 %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::Vec3", align 16
  %18 = alloca float, align 4
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca float, align 4
  %21 = alloca %"class.JPH::Vec3", align 16
  %22 = alloca float, align 4
  %23 = alloca i32, align 4
  %24 = alloca float, align 4
  %25 = alloca float, align 4
  %26 = alloca float, align 4
  %27 = alloca %"class.JPH::Vec3", align 16
  %28 = alloca float, align 4
  %29 = alloca float, align 4
  %30 = alloca float, align 4
  %31 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 0
  store double %1, ptr %31, align 16
  %32 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 1
  store double %2, ptr %32, align 8
  %33 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 0
  store double %3, ptr %33, align 16
  %34 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 1
  store double %4, ptr %34, align 8
  %35 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 0
  store double %5, ptr %35, align 16
  %36 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 1
  store double %6, ptr %36, align 8
  store ptr %0, ptr %13, align 8, !tbaa !5
  store float %7, ptr %14, align 4, !tbaa !9
  %37 = load ptr, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %16, ptr align 16 %11, i64 16, i1 false), !tbaa.struct !11
  %38 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 0
  %39 = load double, ptr %38, align 16
  %40 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 1
  %41 = load double, ptr %40, align 8
  %42 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %12, double %39, double %41)
  %43 = getelementptr inbounds %"class.JPH::Vec3", ptr %15, i32 0, i32 0
  %44 = getelementptr inbounds %union.anon, ptr %43, i32 0, i32 0
  %45 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 0
  %46 = extractvalue { double, double } %42, 0
  store double %46, ptr %45, align 16
  %47 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 1
  %48 = extractvalue { double, double } %42, 1
  store double %48, ptr %47, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #7
  %49 = call { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %11)
  %50 = getelementptr inbounds %"class.JPH::Vec3", ptr %17, i32 0, i32 0
  %51 = getelementptr inbounds %union.anon, ptr %50, i32 0, i32 0
  %52 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 0
  %53 = extractvalue { double, double } %49, 0
  store double %53, ptr %52, align 16
  %54 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 1
  %55 = extractvalue { double, double } %49, 1
  store double %55, ptr %54, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %19, ptr align 16 %15, i64 16, i1 false), !tbaa.struct !11
  %56 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %57 = load double, ptr %56, align 16
  %58 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %59 = load double, ptr %58, align 8
  %60 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %17, double %57, double %59)
  store float %60, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %21, ptr align 16 %15, i64 16, i1 false), !tbaa.struct !11
  %61 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 0
  %62 = load double, ptr %61, align 16
  %63 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 1
  %64 = load double, ptr %63, align 8
  %65 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %10, double %62, double %64)
  store float %65, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %66 = load float, ptr %18, align 4, !tbaa !9
  %67 = load float, ptr %20, align 4, !tbaa !9
  %68 = fadd float %66, %67
  store float %68, ptr %22, align 4, !tbaa !9
  %69 = load float, ptr %18, align 4, !tbaa !9
  %70 = fcmp olt float %69, 0.000000e+00
  br i1 %70, label %71, label %75

71:                                               ; preds = %8
  %72 = load float, ptr %22, align 4, !tbaa !9
  %73 = fcmp olt float %72, 0.000000e+00
  br i1 %73, label %74, label %75

74:                                               ; preds = %71
  store float 0x47EFFFFFE0000000, ptr %9, align 4
  store i32 1, ptr %23, align 4
  br label %160

75:                                               ; preds = %71, %8
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %76 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %15)
  store float %76, ptr %24, align 4, !tbaa !9
  %77 = load float, ptr %18, align 4, !tbaa !9
  %78 = load float, ptr %24, align 4, !tbaa !9
  %79 = fcmp ogt float %77, %78
  br i1 %79, label %80, label %85

80:                                               ; preds = %75
  %81 = load float, ptr %22, align 4, !tbaa !9
  %82 = load float, ptr %24, align 4, !tbaa !9
  %83 = fcmp ogt float %81, %82
  br i1 %83, label %84, label %85

84:                                               ; preds = %80
  store float 0x47EFFFFFE0000000, ptr %9, align 4
  store i32 1, ptr %23, align 4
  br label %159

85:                                               ; preds = %80, %75
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  %86 = load float, ptr %24, align 4, !tbaa !9
  %87 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %10)
  %88 = load float, ptr %20, align 4, !tbaa !9
  %89 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %88)
  %90 = fneg float %89
  %91 = call float @llvm.fmuladd.f32(float %86, float %87, float %90)
  store float %91, ptr %25, align 4, !tbaa !9
  %92 = load float, ptr %25, align 4, !tbaa !9
  %93 = call noundef float @_ZSt3absf(float noundef %92)
  %94 = fcmp olt float %93, 0x3EB0C6F7A0000000
  br i1 %94, label %95, label %96

95:                                               ; preds = %85
  store float 0x47EFFFFFE0000000, ptr %9, align 4
  store i32 1, ptr %23, align 4
  br label %158

96:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  %97 = load float, ptr %24, align 4, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %27, ptr align 16 %10, i64 16, i1 false), !tbaa.struct !11
  %98 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %99 = load double, ptr %98, align 16
  %100 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  %101 = load double, ptr %100, align 8
  %102 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %17, double %99, double %101)
  %103 = load float, ptr %20, align 4, !tbaa !9
  %104 = load float, ptr %18, align 4, !tbaa !9
  %105 = fmul float %103, %104
  %106 = fneg float %105
  %107 = call float @llvm.fmuladd.f32(float %97, float %102, float %106)
  store float %107, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  %108 = load float, ptr %24, align 4, !tbaa !9
  %109 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %17)
  %110 = load float, ptr %14, align 4, !tbaa !9
  %111 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %110)
  %112 = fsub float %109, %111
  %113 = load float, ptr %18, align 4, !tbaa !9
  %114 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %113)
  %115 = fneg float %114
  %116 = call float @llvm.fmuladd.f32(float %108, float %112, float %115)
  store float %116, ptr %28, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  %117 = load float, ptr %26, align 4, !tbaa !9
  %118 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %117)
  %119 = load float, ptr %25, align 4, !tbaa !9
  %120 = load float, ptr %28, align 4, !tbaa !9
  %121 = fneg float %119
  %122 = call float @llvm.fmuladd.f32(float %121, float %120, float %118)
  store float %122, ptr %29, align 4, !tbaa !9
  %123 = load float, ptr %29, align 4, !tbaa !9
  %124 = fcmp olt float %123, 0.000000e+00
  br i1 %124, label %125, label %126

125:                                              ; preds = %96
  store float 0x47EFFFFFE0000000, ptr %9, align 4
  store i32 1, ptr %23, align 4
  br label %157

126:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  %127 = load float, ptr %26, align 4, !tbaa !9
  %128 = load float, ptr %29, align 4, !tbaa !9
  %129 = call noundef float @_ZSt4sqrtf(float noundef %128)
  %130 = fadd float %127, %129
  %131 = fneg float %130
  %132 = load float, ptr %25, align 4, !tbaa !9
  %133 = fdiv float %131, %132
  store float %133, ptr %30, align 4, !tbaa !9
  %134 = load float, ptr %30, align 4, !tbaa !9
  %135 = fcmp olt float %134, 0.000000e+00
  br i1 %135, label %139, label %136

136:                                              ; preds = %126
  %137 = load float, ptr %30, align 4, !tbaa !9
  %138 = fcmp ogt float %137, 1.000000e+00
  br i1 %138, label %139, label %140

139:                                              ; preds = %136, %126
  store float 0x47EFFFFFE0000000, ptr %9, align 4
  store i32 1, ptr %23, align 4
  br label %156

140:                                              ; preds = %136
  %141 = load float, ptr %18, align 4, !tbaa !9
  %142 = load float, ptr %30, align 4, !tbaa !9
  %143 = load float, ptr %20, align 4, !tbaa !9
  %144 = call float @llvm.fmuladd.f32(float %142, float %143, float %141)
  %145 = fcmp olt float %144, 0.000000e+00
  br i1 %145, label %153, label %146

146:                                              ; preds = %140
  %147 = load float, ptr %18, align 4, !tbaa !9
  %148 = load float, ptr %30, align 4, !tbaa !9
  %149 = load float, ptr %20, align 4, !tbaa !9
  %150 = call float @llvm.fmuladd.f32(float %148, float %149, float %147)
  %151 = load float, ptr %24, align 4, !tbaa !9
  %152 = fcmp ogt float %150, %151
  br i1 %152, label %153, label %154

153:                                              ; preds = %146, %140
  store float 0x47EFFFFFE0000000, ptr %9, align 4
  store i32 1, ptr %23, align 4
  br label %156

154:                                              ; preds = %146
  %155 = load float, ptr %30, align 4, !tbaa !9
  store float %155, ptr %9, align 4
  store i32 1, ptr %23, align 4
  br label %156

156:                                              ; preds = %154, %153, %139
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  br label %157

157:                                              ; preds = %156, %125
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %158

158:                                              ; preds = %157, %95
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %159

159:                                              ; preds = %158, %84
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %160

160:                                              ; preds = %159, %74
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #7
  %161 = load float, ptr %9, align 4
  ret float %161
}

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #5 align 2

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef) #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4sqrtf(float noundef) #2

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


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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef float @_ZNK3JPH21CastSphereVsTriangles11RayCylinderENS_4Vec3ES1_S1_f(ptr nocapture noundef nonnull readnone align 16 dereferenceable(100) %0, double %1, double %2, double %3, double %4, double %5, double %6, float noundef %7) local_unnamed_addr #3 align 2 {
  %9 = alloca %"class.JPH::Vec3", align 16
  %10 = alloca %"class.JPH::Vec3", align 16
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::Vec3", align 16
  store double %1, ptr %9, align 16
  %14 = getelementptr inbounds i8, ptr %9, i64 8
  store double %2, ptr %14, align 8
  store double %3, ptr %10, align 16
  %15 = getelementptr inbounds i8, ptr %10, i64 8
  store double %4, ptr %15, align 8
  store double %5, ptr %11, align 16
  %16 = getelementptr inbounds i8, ptr %11, i64 8
  store double %6, ptr %16, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #6
  %17 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %11, double %3, double %4)
  %18 = extractvalue { double, double } %17, 0
  store double %18, ptr %12, align 16
  %19 = getelementptr inbounds i8, ptr %12, i64 8
  %20 = extractvalue { double, double } %17, 1
  store double %20, ptr %19, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #6
  %21 = call { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %10)
  %22 = extractvalue { double, double } %21, 0
  store double %22, ptr %13, align 16
  %23 = getelementptr inbounds i8, ptr %13, i64 8
  %24 = extractvalue { double, double } %21, 1
  store double %24, ptr %23, align 8
  %25 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %13, double %18, double %20)
  %26 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %9, double %18, double %20)
  %27 = fadd float %25, %26
  %28 = fcmp olt float %25, 0.000000e+00
  %29 = fcmp olt float %27, 0.000000e+00
  %or.cond = and i1 %28, %29
  br i1 %or.cond, label %68, label %30

30:                                               ; preds = %8
  %31 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %12)
  %32 = fcmp ogt float %25, %31
  %33 = fcmp ogt float %27, %31
  %or.cond49 = and i1 %32, %33
  br i1 %or.cond49, label %68, label %34

34:                                               ; preds = %30
  %35 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %9)
  %36 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %26)
  %37 = fneg float %36
  %38 = call float @llvm.fmuladd.f32(float %31, float %35, float %37)
  %39 = call noundef float @_ZSt3absf(float noundef %38)
  %40 = fcmp olt float %39, 0x3EB0C6F7A0000000
  br i1 %40, label %68, label %41

41:                                               ; preds = %34
  %.sroa.0.0.copyload = load double, ptr %9, align 16
  %.sroa.2.0.copyload = load double, ptr %14, align 8, !tbaa !5
  %42 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %13, double %.sroa.0.0.copyload, double %.sroa.2.0.copyload)
  %43 = fneg float %26
  %44 = fmul float %25, %43
  %45 = call float @llvm.fmuladd.f32(float %31, float %42, float %44)
  %46 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %13)
  %47 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %7)
  %48 = fsub float %46, %47
  %49 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %25)
  %50 = fneg float %49
  %51 = call float @llvm.fmuladd.f32(float %31, float %48, float %50)
  %52 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %45)
  %53 = fneg float %38
  %54 = call float @llvm.fmuladd.f32(float %53, float %51, float %52)
  %55 = fcmp olt float %54, 0.000000e+00
  br i1 %55, label %68, label %56

56:                                               ; preds = %41
  %57 = call noundef float @_ZSt4sqrtf(float noundef %54)
  %58 = fadd float %45, %57
  %59 = fneg float %58
  %60 = fdiv float %59, %38
  %61 = fcmp olt float %60, 0.000000e+00
  %62 = fcmp ogt float %60, 1.000000e+00
  %or.cond3 = or i1 %61, %62
  br i1 %or.cond3, label %68, label %63

63:                                               ; preds = %56
  %64 = call float @llvm.fmuladd.f32(float %60, float %26, float %25)
  %65 = fcmp olt float %64, 0.000000e+00
  %66 = fcmp ogt float %64, %31
  %or.cond50 = or i1 %65, %66
  br i1 %or.cond50, label %68, label %67

67:                                               ; preds = %63
  br label %68

68:                                               ; preds = %30, %41, %63, %56, %67, %34, %8
  %.4 = phi float [ 0x47EFFFFFE0000000, %8 ], [ 0x47EFFFFFE0000000, %30 ], [ 0x47EFFFFFE0000000, %34 ], [ 0x47EFFFFFE0000000, %41 ], [ %60, %67 ], [ 0x47EFFFFFE0000000, %56 ], [ 0x47EFFFFFE0000000, %63 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  ret float %.4
}

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

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4sqrtf(float noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { alwaysinline 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 #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass