; LLVM IR from timskillman/raspberrypi :: SharedCode/SMtriangle.ll (ZN10SMtriangle12rayIntersectE5vec3fS0_)

; 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.vec3f = type { float, float, float }
%class.SMtriangle = type { %class.vec3f, %class.vec3f, %class.vec3f }

; 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) #0

; Function Attrs: mustprogress uwtable
declare dso_local { <2 x float>, float } @_Z12crossProductR5vec3fS0_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_Z12innerProductR5vec3fS0_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef float @_ZN10SMtriangle12rayIntersectE5vec3fS0_(ptr noundef nonnull align 4 dereferenceable(36) %0, <2 x float> %1, float %2, <2 x float> %3, float %4) #3 align 2 {
  %6 = alloca float, align 4
  %7 = alloca %class.vec3f, align 4
  %8 = alloca { <2 x float>, float }, align 4
  %9 = alloca %class.vec3f, align 4
  %10 = alloca { <2 x float>, float }, align 4
  %11 = alloca ptr, align 8
  %12 = alloca %class.vec3f, align 4
  %13 = alloca %class.vec3f, align 4
  %14 = alloca { <2 x float>, float }, align 4
  %15 = alloca { <2 x float>, float }, align 8
  %16 = alloca %class.vec3f, align 4
  %17 = alloca %class.vec3f, align 4
  %18 = alloca { <2 x float>, float }, align 4
  %19 = alloca { <2 x float>, float }, align 8
  %20 = alloca %class.vec3f, align 4
  %21 = alloca { <2 x float>, float }, align 8
  %22 = alloca float, align 4
  %23 = alloca i32, align 4
  %24 = alloca float, align 4
  %25 = alloca %class.vec3f, align 4
  %26 = alloca %class.vec3f, align 4
  %27 = alloca { <2 x float>, float }, align 4
  %28 = alloca { <2 x float>, float }, align 8
  %29 = alloca float, align 4
  %30 = alloca %class.vec3f, align 4
  %31 = alloca { <2 x float>, float }, align 8
  %32 = alloca float, align 4
  %33 = alloca float, align 4
  %34 = getelementptr inbounds { <2 x float>, float }, ptr %8, i32 0, i32 0
  store <2 x float> %1, ptr %34, align 4
  %35 = getelementptr inbounds { <2 x float>, float }, ptr %8, i32 0, i32 1
  store float %2, ptr %35, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 %8, i64 12, i1 false)
  %36 = getelementptr inbounds { <2 x float>, float }, ptr %10, i32 0, i32 0
  store <2 x float> %3, ptr %36, align 4
  %37 = getelementptr inbounds { <2 x float>, float }, ptr %10, i32 0, i32 1
  store float %4, ptr %37, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 %10, i64 12, i1 false)
  store ptr %0, ptr %11, align 8, !tbaa !5
  %38 = load ptr, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #6
  %39 = getelementptr inbounds %class.SMtriangle, ptr %38, i32 0, i32 1
  %40 = getelementptr inbounds %class.SMtriangle, ptr %38, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %40, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %13, i64 12, i1 false)
  %41 = getelementptr inbounds { <2 x float>, float }, ptr %14, i32 0, i32 0
  %42 = load <2 x float>, ptr %41, align 4
  %43 = getelementptr inbounds { <2 x float>, float }, ptr %14, i32 0, i32 1
  %44 = load float, ptr %43, align 4
  %45 = call { <2 x float>, float } @_ZN5vec3fmiES_(ptr noundef nonnull align 4 dereferenceable(12) %39, <2 x float> %42, float %44)
  store { <2 x float>, float } %45, ptr %15, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 8 %15, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %16) #6
  %46 = getelementptr inbounds %class.SMtriangle, ptr %38, i32 0, i32 2
  %47 = getelementptr inbounds %class.SMtriangle, ptr %38, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %47, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %17, i64 12, i1 false)
  %48 = getelementptr inbounds { <2 x float>, float }, ptr %18, i32 0, i32 0
  %49 = load <2 x float>, ptr %48, align 4
  %50 = getelementptr inbounds { <2 x float>, float }, ptr %18, i32 0, i32 1
  %51 = load float, ptr %50, align 4
  %52 = call { <2 x float>, float } @_ZN5vec3fmiES_(ptr noundef nonnull align 4 dereferenceable(12) %46, <2 x float> %49, float %51)
  store { <2 x float>, float } %52, ptr %19, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 8 %19, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %20) #6
  %53 = call { <2 x float>, float } @_Z12crossProductR5vec3fS0_(ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %16)
  store { <2 x float>, float } %53, ptr %21, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 8 %21, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %54 = call noundef float @_Z12innerProductR5vec3fS0_(ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(12) %20)
  store float %54, ptr %22, align 4, !tbaa !10
  %55 = load float, ptr %22, align 4, !tbaa !10
  %56 = fcmp ogt float %55, 0xBEE4F8B580000000
  br i1 %56, label %57, label %61

57:                                               ; preds = %5
  %58 = load float, ptr %22, align 4, !tbaa !10
  %59 = fcmp olt float %58, 0x3EE4F8B580000000
  br i1 %59, label %60, label %61

60:                                               ; preds = %57
  store float 0.000000e+00, ptr %6, align 4
  store i32 1, ptr %23, align 4
  br label %99

61:                                               ; preds = %57, %5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %62 = load float, ptr %22, align 4, !tbaa !10
  %63 = fdiv float 1.000000e+00, %62
  store float %63, ptr %24, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 12, ptr %25) #6
  %64 = getelementptr inbounds %class.SMtriangle, ptr %38, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 %64, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 4 %26, i64 12, i1 false)
  %65 = getelementptr inbounds { <2 x float>, float }, ptr %27, i32 0, i32 0
  %66 = load <2 x float>, ptr %65, align 4
  %67 = getelementptr inbounds { <2 x float>, float }, ptr %27, i32 0, i32 1
  %68 = load float, ptr %67, align 4
  %69 = call { <2 x float>, float } @_ZN5vec3fmiES_(ptr noundef nonnull align 4 dereferenceable(12) %7, <2 x float> %66, float %68)
  store { <2 x float>, float } %69, ptr %28, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 8 %28, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  %70 = load float, ptr %24, align 4, !tbaa !10
  %71 = call noundef float @_Z12innerProductR5vec3fS0_(ptr noundef nonnull align 4 dereferenceable(12) %25, ptr noundef nonnull align 4 dereferenceable(12) %20)
  %72 = fmul float %70, %71
  store float %72, ptr %29, align 4, !tbaa !10
  %73 = load float, ptr %29, align 4, !tbaa !10
  %74 = fcmp olt float %73, 0.000000e+00
  br i1 %74, label %78, label %75

75:                                               ; preds = %61
  %76 = load float, ptr %29, align 4, !tbaa !10
  %77 = fcmp ogt float %76, 1.000000e+00
  br i1 %77, label %78, label %79

78:                                               ; preds = %75, %61
  store float 0.000000e+00, ptr %6, align 4
  store i32 1, ptr %23, align 4
  br label %98

79:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 12, ptr %30) #6
  %80 = call { <2 x float>, float } @_Z12crossProductR5vec3fS0_(ptr noundef nonnull align 4 dereferenceable(12) %25, ptr noundef nonnull align 4 dereferenceable(12) %12)
  store { <2 x float>, float } %80, ptr %31, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 8 %31, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  %81 = load float, ptr %24, align 4, !tbaa !10
  %82 = call noundef float @_Z12innerProductR5vec3fS0_(ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %30)
  %83 = fmul float %81, %82
  store float %83, ptr %32, align 4, !tbaa !10
  %84 = load float, ptr %32, align 4, !tbaa !10
  %85 = fcmp olt float %84, 0.000000e+00
  br i1 %85, label %91, label %86

86:                                               ; preds = %79
  %87 = load float, ptr %29, align 4, !tbaa !10
  %88 = load float, ptr %32, align 4, !tbaa !10
  %89 = fadd float %87, %88
  %90 = fcmp ogt float %89, 1.000000e+00
  br i1 %90, label %91, label %92

91:                                               ; preds = %86, %79
  store float 0.000000e+00, ptr %6, align 4
  store i32 1, ptr %23, align 4
  br label %97

92:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  %93 = load float, ptr %24, align 4, !tbaa !10
  %94 = call noundef float @_Z12innerProductR5vec3fS0_(ptr noundef nonnull align 4 dereferenceable(12) %16, ptr noundef nonnull align 4 dereferenceable(12) %30)
  %95 = fmul float %93, %94
  store float %95, ptr %33, align 4, !tbaa !10
  %96 = load float, ptr %33, align 4, !tbaa !10
  store float %96, ptr %6, align 4
  store i32 1, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  br label %97

97:                                               ; preds = %92, %91
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %30) #6
  br label %98

98:                                               ; preds = %97, %78
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %99

99:                                               ; preds = %98, %60
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #6
  %100 = load float, ptr %6, align 4
  ret float %100
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZN5vec3fmiES_(ptr noundef nonnull align 4 dereferenceable(12), <2 x float>, float) #5 align 2

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

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { mustprogress uwtable "min-legal-vector-width"="64" "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i64 0, i64 4, !10, i64 4, i64 4, !10, i64 8, i64 4, !10}
!10 = !{!11, !11, i64 0}
!11 = !{!"float", !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.vec3f = type { float, float, float }

; Function Attrs: mustprogress uwtable
declare dso_local { <2 x float>, float } @_Z12crossProductR5vec3fS0_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_Z12innerProductR5vec3fS0_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef float @_ZN10SMtriangle12rayIntersectE5vec3fS0_(ptr noundef nonnull align 4 dereferenceable(36) %0, <2 x float> %1, float %2, <2 x float> %3, float %4) local_unnamed_addr #2 align 2 {
  %6 = alloca %class.vec3f, align 8
  %7 = alloca %class.vec3f, align 8
  %8 = alloca %class.vec3f, align 8
  %9 = alloca %class.vec3f, align 8
  %10 = alloca %class.vec3f, align 8
  %11 = alloca %class.vec3f, align 8
  %12 = alloca %class.vec3f, align 8
  store <2 x float> %1, ptr %6, align 8
  %.sroa.247.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 8
  store float %2, ptr %.sroa.247.0..sroa_idx, align 8
  store <2 x float> %3, ptr %7, align 8
  %.sroa.245.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 8
  store float %4, ptr %.sroa.245.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #6
  %13 = getelementptr inbounds i8, ptr %0, i64 12
  %.sroa.041.0.copyload = load <2 x float>, ptr %0, align 4
  %.sroa.242.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 8
  %.sroa.242.0.copyload = load float, ptr %.sroa.242.0..sroa_idx, align 4, !tbaa !5
  %14 = tail call { <2 x float>, float } @_ZN5vec3fmiES_(ptr noundef nonnull align 4 dereferenceable(12) %13, <2 x float> %.sroa.041.0.copyload, float %.sroa.242.0.copyload)
  %.fca.0.extract35 = extractvalue { <2 x float>, float } %14, 0
  %.fca.1.extract36 = extractvalue { <2 x float>, float } %14, 1
  store <2 x float> %.fca.0.extract35, ptr %8, align 8
  %.sroa.238.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  store float %.fca.1.extract36, ptr %.sroa.238.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #6
  %15 = getelementptr inbounds i8, ptr %0, i64 24
  %.sroa.033.0.copyload = load <2 x float>, ptr %0, align 4
  %.sroa.234.0.copyload = load float, ptr %.sroa.242.0..sroa_idx, align 4, !tbaa !5
  %16 = tail call { <2 x float>, float } @_ZN5vec3fmiES_(ptr noundef nonnull align 4 dereferenceable(12) %15, <2 x float> %.sroa.033.0.copyload, float %.sroa.234.0.copyload)
  %.fca.0.extract27 = extractvalue { <2 x float>, float } %16, 0
  %.fca.1.extract28 = extractvalue { <2 x float>, float } %16, 1
  store <2 x float> %.fca.0.extract27, ptr %9, align 8
  %.sroa.230.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 8
  store float %.fca.1.extract28, ptr %.sroa.230.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #6
  %17 = call { <2 x float>, float } @_Z12crossProductR5vec3fS0_(ptr noundef nonnull align 4 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(12) %9)
  %.fca.0.extract23 = extractvalue { <2 x float>, float } %17, 0
  %.fca.1.extract24 = extractvalue { <2 x float>, float } %17, 1
  store <2 x float> %.fca.0.extract23, ptr %10, align 8
  %.sroa.226.0..sroa_idx = getelementptr inbounds i8, ptr %10, i64 8
  store float %.fca.1.extract24, ptr %.sroa.226.0..sroa_idx, align 8
  %18 = call noundef float @_Z12innerProductR5vec3fS0_(ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(12) %10)
  %19 = call float @llvm.fabs.f32(float %18)
  %or.cond = fcmp olt float %19, 0x3EE4F8B580000000
  br i1 %or.cond, label %39, label %20

20:                                               ; preds = %5
  %21 = fdiv float 1.000000e+00, %18
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #6
  %.sroa.015.0.copyload = load <2 x float>, ptr %0, align 4
  %.sroa.216.0.copyload = load float, ptr %.sroa.242.0..sroa_idx, align 4, !tbaa !5
  %22 = call { <2 x float>, float } @_ZN5vec3fmiES_(ptr noundef nonnull align 4 dereferenceable(12) %6, <2 x float> %.sroa.015.0.copyload, float %.sroa.216.0.copyload)
  %.fca.0.extract9 = extractvalue { <2 x float>, float } %22, 0
  %.fca.1.extract10 = extractvalue { <2 x float>, float } %22, 1
  store <2 x float> %.fca.0.extract9, ptr %11, align 8
  %.sroa.212.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 8
  store float %.fca.1.extract10, ptr %.sroa.212.0..sroa_idx, align 8
  %23 = call noundef float @_Z12innerProductR5vec3fS0_(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %10)
  %24 = fmul float %21, %23
  %25 = fcmp olt float %24, 0.000000e+00
  %26 = fcmp ogt float %24, 1.000000e+00
  %or.cond3 = or i1 %25, %26
  br i1 %or.cond3, label %38, label %27

27:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #6
  %28 = call { <2 x float>, float } @_Z12crossProductR5vec3fS0_(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %8)
  %.fca.0.extract = extractvalue { <2 x float>, float } %28, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %28, 1
  store <2 x float> %.fca.0.extract, ptr %12, align 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %12, i64 8
  store float %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  %29 = call noundef float @_Z12innerProductR5vec3fS0_(ptr noundef nonnull align 4 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(12) %12)
  %30 = fmul float %21, %29
  %31 = fcmp olt float %30, 0.000000e+00
  %32 = fadd float %24, %30
  %33 = fcmp ogt float %32, 1.000000e+00
  %or.cond52 = or i1 %31, %33
  br i1 %or.cond52, label %37, label %34

34:                                               ; preds = %27
  %35 = call noundef float @_Z12innerProductR5vec3fS0_(ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %12)
  %36 = fmul float %21, %35
  br label %37

37:                                               ; preds = %27, %34
  %.0 = phi float [ %36, %34 ], [ 0.000000e+00, %27 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #6
  br label %38

38:                                               ; preds = %20, %37
  %.1 = phi float [ %.0, %37 ], [ 0.000000e+00, %20 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #6
  br label %39

39:                                               ; preds = %5, %38
  %.2 = phi float [ %.1, %38 ], [ 0.000000e+00, %5 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #6
  ret float %.2
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZN5vec3fmiES_(ptr noundef nonnull align 4 dereferenceable(12), <2 x float>, float) local_unnamed_addr #4 align 2

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

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

attributes #0 = { 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 #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 = { mustprogress uwtable "min-legal-vector-width"="64" "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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "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 = { 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass