; LLVM IR from ThePhysicsGuys/Physics3D :: Physics3D/math/linalg/trigonometry.ll (ZN3P3D6lookAtERKNS_6VectorIfLm3EEES3_S3_)

; 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.P3D::Matrix" = type { [16 x float] }
%"struct.P3D::Vector" = type { %union.anon }
%union.anon = type { [3 x float] }
%"class.std::initializer_list" = type { ptr, i64 }
%struct.anon = type { float, float, float }

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3P3D6MatrixIfLm4ELm4EEC2ESt16initializer_listIfE(ptr noundef nonnull align 4 dereferenceable(64), ptr, i64) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3P3D6lookAtERKNS_6VectorIfLm3EEES3_S3_(ptr dead_on_unwind noalias writable sret(%"class.P3D::Matrix") align 4 %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"struct.P3D::Vector", align 4
  %9 = alloca %"struct.P3D::Vector", align 4
  %10 = alloca { <2 x float>, float }, align 8
  %11 = alloca { <2 x float>, float }, align 8
  %12 = alloca %"struct.P3D::Vector", align 4
  %13 = alloca { <2 x float>, float }, align 8
  %14 = alloca %"struct.P3D::Vector", align 4
  %15 = alloca %"struct.P3D::Vector", align 4
  %16 = alloca { <2 x float>, float }, align 8
  %17 = alloca { <2 x float>, float }, align 8
  %18 = alloca %"struct.P3D::Vector", align 4
  %19 = alloca { <2 x float>, float }, align 8
  %20 = alloca %"class.std::initializer_list", align 8
  %21 = alloca [16 x float], align 4
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  store ptr %3, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %9) #6
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = call { <2 x float>, float } @_ZN3P3DmiIffLm3EEENS_6VectorIDTmiixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(12) %22, ptr noundef nonnull align 4 dereferenceable(12) %23) #6
  %25 = getelementptr inbounds %"struct.P3D::Vector", ptr %9, i32 0, i32 0
  %26 = getelementptr inbounds %union.anon, ptr %25, i32 0, i32 0
  store { <2 x float>, float } %24, ptr %10, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 8 %10, i64 12, i1 false)
  %27 = call { <2 x float>, float } @_ZN3P3D9normalizeIfLm3EEENS_6VectorIT_XT0_EEERKS3_(ptr noundef nonnull align 4 dereferenceable(12) %9) #6
  %28 = getelementptr inbounds %"struct.P3D::Vector", ptr %8, i32 0, i32 0
  %29 = getelementptr inbounds %union.anon, ptr %28, i32 0, i32 0
  store { <2 x float>, float } %27, ptr %11, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 8 %11, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #6
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = call { <2 x float>, float } @_ZN3P3D9normalizeIfLm3EEENS_6VectorIT_XT0_EEERKS3_(ptr noundef nonnull align 4 dereferenceable(12) %30) #6
  %32 = getelementptr inbounds %"struct.P3D::Vector", ptr %12, i32 0, i32 0
  %33 = getelementptr inbounds %union.anon, ptr %32, i32 0, i32 0
  store { <2 x float>, float } %31, ptr %13, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 8 %13, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %15) #6
  %34 = call { <2 x float>, float } @_ZN3P3DrmIffEENS_6VectorIDTmimlixfp_Li1Eixfp0_Li2Emlixfp_Li2Eixfp0_Li1EELm3EEERKNS1_IT_Lm3EEERKNS1_IT0_Lm3EEE(ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(12) %12) #6
  %35 = getelementptr inbounds %"struct.P3D::Vector", ptr %15, i32 0, i32 0
  %36 = getelementptr inbounds %union.anon, ptr %35, i32 0, i32 0
  store { <2 x float>, float } %34, ptr %16, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %36, ptr align 8 %16, i64 12, i1 false)
  %37 = call { <2 x float>, float } @_ZN3P3D9normalizeIfLm3EEENS_6VectorIT_XT0_EEERKS3_(ptr noundef nonnull align 4 dereferenceable(12) %15) #6
  %38 = getelementptr inbounds %"struct.P3D::Vector", ptr %14, i32 0, i32 0
  %39 = getelementptr inbounds %union.anon, ptr %38, i32 0, i32 0
  store { <2 x float>, float } %37, ptr %17, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %39, ptr align 8 %17, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %18) #6
  %40 = call { <2 x float>, float } @_ZN3P3DrmIffEENS_6VectorIDTmimlixfp_Li1Eixfp0_Li2Emlixfp_Li2Eixfp0_Li1EELm3EEERKNS1_IT_Lm3EEERKNS1_IT0_Lm3EEE(ptr noundef nonnull align 4 dereferenceable(12) %14, ptr noundef nonnull align 4 dereferenceable(12) %8) #6
  %41 = getelementptr inbounds %"struct.P3D::Vector", ptr %18, i32 0, i32 0
  %42 = getelementptr inbounds %union.anon, ptr %41, i32 0, i32 0
  store { <2 x float>, float } %40, ptr %19, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 8 %19, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %18, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %21) #6
  %43 = getelementptr inbounds %"struct.P3D::Vector", ptr %14, i32 0, i32 0
  %44 = getelementptr inbounds %struct.anon, ptr %43, i32 0, i32 0
  %45 = load float, ptr %44, align 4, !tbaa !10
  store float %45, ptr %21, align 4, !tbaa !11
  %46 = getelementptr inbounds float, ptr %21, i64 1
  %47 = getelementptr inbounds %"struct.P3D::Vector", ptr %14, i32 0, i32 0
  %48 = getelementptr inbounds %struct.anon, ptr %47, i32 0, i32 1
  %49 = load float, ptr %48, align 4, !tbaa !10
  store float %49, ptr %46, align 4, !tbaa !11
  %50 = getelementptr inbounds float, ptr %21, i64 2
  %51 = getelementptr inbounds %"struct.P3D::Vector", ptr %14, i32 0, i32 0
  %52 = getelementptr inbounds %struct.anon, ptr %51, i32 0, i32 2
  %53 = load float, ptr %52, align 4, !tbaa !10
  store float %53, ptr %50, align 4, !tbaa !11
  %54 = getelementptr inbounds float, ptr %21, i64 3
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = call noundef float @_ZN3P3D3dotIffLm3EEEDTplmlixfp_Li0Eixfp0_Li0Emlixfp_Li1Eixfp0_Li1EERKNS_6VectorIT_XT1_EEERKNS2_IT0_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(12) %14, ptr noundef nonnull align 4 dereferenceable(12) %55) #6
  %57 = fneg float %56
  store float %57, ptr %54, align 4, !tbaa !11
  %58 = getelementptr inbounds float, ptr %21, i64 4
  %59 = getelementptr inbounds %"struct.P3D::Vector", ptr %12, i32 0, i32 0
  %60 = getelementptr inbounds %struct.anon, ptr %59, i32 0, i32 0
  %61 = load float, ptr %60, align 4, !tbaa !10
  store float %61, ptr %58, align 4, !tbaa !11
  %62 = getelementptr inbounds float, ptr %21, i64 5
  %63 = getelementptr inbounds %"struct.P3D::Vector", ptr %12, i32 0, i32 0
  %64 = getelementptr inbounds %struct.anon, ptr %63, i32 0, i32 1
  %65 = load float, ptr %64, align 4, !tbaa !10
  store float %65, ptr %62, align 4, !tbaa !11
  %66 = getelementptr inbounds float, ptr %21, i64 6
  %67 = getelementptr inbounds %"struct.P3D::Vector", ptr %12, i32 0, i32 0
  %68 = getelementptr inbounds %struct.anon, ptr %67, i32 0, i32 2
  %69 = load float, ptr %68, align 4, !tbaa !10
  store float %69, ptr %66, align 4, !tbaa !11
  %70 = getelementptr inbounds float, ptr %21, i64 7
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = call noundef float @_ZN3P3D3dotIffLm3EEEDTplmlixfp_Li0Eixfp0_Li0Emlixfp_Li1Eixfp0_Li1EERKNS_6VectorIT_XT1_EEERKNS2_IT0_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(12) %71) #6
  %73 = fneg float %72
  store float %73, ptr %70, align 4, !tbaa !11
  %74 = getelementptr inbounds float, ptr %21, i64 8
  %75 = getelementptr inbounds %"struct.P3D::Vector", ptr %8, i32 0, i32 0
  %76 = getelementptr inbounds %struct.anon, ptr %75, i32 0, i32 0
  %77 = load float, ptr %76, align 4, !tbaa !10
  %78 = fneg float %77
  store float %78, ptr %74, align 4, !tbaa !11
  %79 = getelementptr inbounds float, ptr %21, i64 9
  %80 = getelementptr inbounds %"struct.P3D::Vector", ptr %8, i32 0, i32 0
  %81 = getelementptr inbounds %struct.anon, ptr %80, i32 0, i32 1
  %82 = load float, ptr %81, align 4, !tbaa !10
  %83 = fneg float %82
  store float %83, ptr %79, align 4, !tbaa !11
  %84 = getelementptr inbounds float, ptr %21, i64 10
  %85 = getelementptr inbounds %"struct.P3D::Vector", ptr %8, i32 0, i32 0
  %86 = getelementptr inbounds %struct.anon, ptr %85, i32 0, i32 2
  %87 = load float, ptr %86, align 4, !tbaa !10
  %88 = fneg float %87
  store float %88, ptr %84, align 4, !tbaa !11
  %89 = getelementptr inbounds float, ptr %21, i64 11
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = call noundef float @_ZN3P3D3dotIffLm3EEEDTplmlixfp_Li0Eixfp0_Li0Emlixfp_Li1Eixfp0_Li1EERKNS_6VectorIT_XT1_EEERKNS2_IT0_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(12) %90) #6
  store float %91, ptr %89, align 4, !tbaa !11
  %92 = getelementptr inbounds float, ptr %21, i64 12
  store float 0.000000e+00, ptr %92, align 4, !tbaa !11
  %93 = getelementptr inbounds float, ptr %21, i64 13
  store float 0.000000e+00, ptr %93, align 4, !tbaa !11
  %94 = getelementptr inbounds float, ptr %21, i64 14
  store float 0.000000e+00, ptr %94, align 4, !tbaa !11
  %95 = getelementptr inbounds float, ptr %21, i64 15
  store float 1.000000e+00, ptr %95, align 4, !tbaa !11
  %96 = getelementptr inbounds %"class.std::initializer_list", ptr %20, i32 0, i32 0
  store ptr %21, ptr %96, align 8, !tbaa !13
  %97 = getelementptr inbounds %"class.std::initializer_list", ptr %20, i32 0, i32 1
  store i64 16, ptr %97, align 8, !tbaa !16
  %98 = getelementptr inbounds { ptr, i64 }, ptr %20, i32 0, i32 0
  %99 = load ptr, ptr %98, align 8
  %100 = getelementptr inbounds { ptr, i64 }, ptr %20, i32 0, i32 1
  %101 = load i64, ptr %100, align 8
  call void @_ZN3P3D6MatrixIfLm4ELm4EEC2ESt16initializer_listIfE(ptr noundef nonnull align 4 dereferenceable(64) %0, ptr %99, i64 %101)
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %8) #6
  ret void
}

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 nounwind 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 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 12, !10}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTSSt16initializer_listIfE", !6, i64 0, !15, i64 8}
!15 = !{!"long", !7, i64 0}
!16 = !{!14, !15, i64 8}


; 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.P3D::Matrix" = type { [16 x float] }
%"struct.P3D::Vector" = type { %union.anon }
%union.anon = type { [3 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: inlinehint mustprogress uwtable
declare dso_local void @_ZN3P3D6MatrixIfLm4ELm4EEC2ESt16initializer_listIfE(ptr noundef nonnull align 4 dereferenceable(64), ptr, i64) unnamed_addr #1 align 2

; 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 uwtable
define dso_local void @_ZN3P3D6lookAtERKNS_6VectorIfLm3EEES3_S3_(ptr dead_on_unwind noalias writable sret(%"class.P3D::Matrix") align 4 %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %3) local_unnamed_addr #2 {
  %5 = alloca %"struct.P3D::Vector", align 8
  %6 = alloca %"struct.P3D::Vector", align 8
  %7 = alloca %"struct.P3D::Vector", align 8
  %8 = alloca %"struct.P3D::Vector", align 8
  %9 = alloca %"struct.P3D::Vector", align 8
  %10 = alloca [16 x float], align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #5
  %11 = tail call { <2 x float>, float } @_ZN3P3DmiIffLm3EEENS_6VectorIDTmiixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %1) #5
  %.fca.0.extract20 = extractvalue { <2 x float>, float } %11, 0
  %.fca.1.extract21 = extractvalue { <2 x float>, float } %11, 1
  store <2 x float> %.fca.0.extract20, ptr %6, align 8
  %.sroa.223.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 8
  store float %.fca.1.extract21, ptr %.sroa.223.0..sroa_idx, align 8
  %12 = call { <2 x float>, float } @_ZN3P3D9normalizeIfLm3EEENS_6VectorIT_XT0_EEERKS3_(ptr noundef nonnull align 4 dereferenceable(12) %6) #5
  %.fca.0.extract16 = extractvalue { <2 x float>, float } %12, 0
  %.fca.1.extract17 = extractvalue { <2 x float>, float } %12, 1
  store <2 x float> %.fca.0.extract16, ptr %5, align 8
  %.sroa.219.0..sroa_idx = getelementptr inbounds i8, ptr %5, i64 8
  store float %.fca.1.extract17, ptr %.sroa.219.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #5
  %13 = call { <2 x float>, float } @_ZN3P3D9normalizeIfLm3EEENS_6VectorIT_XT0_EEERKS3_(ptr noundef nonnull align 4 dereferenceable(12) %3) #5
  %.fca.0.extract12 = extractvalue { <2 x float>, float } %13, 0
  %.fca.1.extract13 = extractvalue { <2 x float>, float } %13, 1
  store <2 x float> %.fca.0.extract12, ptr %7, align 8
  %.sroa.215.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 8
  store float %.fca.1.extract13, ptr %.sroa.215.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #5
  %14 = call { <2 x float>, float } @_ZN3P3DrmIffEENS_6VectorIDTmimlixfp_Li1Eixfp0_Li2Emlixfp_Li2Eixfp0_Li1EELm3EEERKNS1_IT_Lm3EEERKNS1_IT0_Lm3EEE(ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %7) #5
  %.fca.0.extract8 = extractvalue { <2 x float>, float } %14, 0
  %.fca.1.extract9 = extractvalue { <2 x float>, float } %14, 1
  store <2 x float> %.fca.0.extract8, ptr %9, align 8
  %.sroa.211.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 8
  store float %.fca.1.extract9, ptr %.sroa.211.0..sroa_idx, align 8
  %15 = call { <2 x float>, float } @_ZN3P3D9normalizeIfLm3EEENS_6VectorIT_XT0_EEERKS3_(ptr noundef nonnull align 4 dereferenceable(12) %9) #5
  %.fca.0.extract4 = extractvalue { <2 x float>, float } %15, 0
  %.fca.1.extract5 = extractvalue { <2 x float>, float } %15, 1
  store <2 x float> %.fca.0.extract4, ptr %8, align 8
  %.sroa.27.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  store float %.fca.1.extract5, ptr %.sroa.27.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #5
  %16 = call { <2 x float>, float } @_ZN3P3DrmIffEENS_6VectorIDTmimlixfp_Li1Eixfp0_Li2Emlixfp_Li2Eixfp0_Li1EELm3EEERKNS1_IT_Lm3EEERKNS1_IT0_Lm3EEE(ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(12) %5) #5
  %.fca.0.extract = extractvalue { <2 x float>, float } %16, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %16, 1
  store <2 x float> %.fca.0.extract, ptr %7, align 8
  store float %.fca.1.extract, ptr %.sroa.215.0..sroa_idx, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #5
  %17 = load <2 x float>, ptr %8, align 8, !tbaa !5
  store <2 x float> %17, ptr %10, align 8, !tbaa !8
  %18 = getelementptr inbounds i8, ptr %10, i64 8
  %19 = load float, ptr %.sroa.27.0..sroa_idx, align 8, !tbaa !5
  store float %19, ptr %18, align 8, !tbaa !8
  %20 = getelementptr inbounds i8, ptr %10, i64 12
  %21 = call noundef float @_ZN3P3D3dotIffLm3EEEDTplmlixfp_Li0Eixfp0_Li0Emlixfp_Li1Eixfp0_Li1EERKNS_6VectorIT_XT1_EEERKNS2_IT0_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(12) %1) #5
  %22 = fneg float %21
  store float %22, ptr %20, align 4, !tbaa !8
  %23 = getelementptr inbounds i8, ptr %10, i64 16
  %24 = load <2 x float>, ptr %7, align 8, !tbaa !5
  store <2 x float> %24, ptr %23, align 8, !tbaa !8
  %25 = getelementptr inbounds i8, ptr %10, i64 24
  %26 = load float, ptr %.sroa.215.0..sroa_idx, align 8, !tbaa !5
  store float %26, ptr %25, align 8, !tbaa !8
  %27 = getelementptr inbounds i8, ptr %10, i64 28
  %28 = call noundef float @_ZN3P3D3dotIffLm3EEEDTplmlixfp_Li0Eixfp0_Li0Emlixfp_Li1Eixfp0_Li1EERKNS_6VectorIT_XT1_EEERKNS2_IT0_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(12) %1) #5
  %29 = load float, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %5, i64 4
  %31 = load <2 x float>, ptr %30, align 4, !tbaa !5
  %32 = insertelement <4 x float> poison, float %28, i64 0
  %33 = insertelement <4 x float> %32, float %29, i64 1
  %34 = shufflevector <2 x float> %31, <2 x float> poison, <4 x i32> <i32 0, i32 1, i32 poison, i32 poison>
  %35 = shufflevector <4 x float> %33, <4 x float> %34, <4 x i32> <i32 0, i32 1, i32 4, i32 5>
  %36 = fneg <4 x float> %35
  store <4 x float> %36, ptr %27, align 4, !tbaa !8
  %37 = getelementptr inbounds i8, ptr %10, i64 44
  %38 = call noundef float @_ZN3P3D3dotIffLm3EEEDTplmlixfp_Li0Eixfp0_Li0Emlixfp_Li1Eixfp0_Li1EERKNS_6VectorIT_XT1_EEERKNS2_IT0_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %1) #5
  store float %38, ptr %37, align 4, !tbaa !8
  %39 = getelementptr inbounds i8, ptr %10, i64 48
  store <4 x float> <float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 1.000000e+00>, ptr %39, align 8, !tbaa !8
  call void @_ZN3P3D6MatrixIfLm4ELm4EEC2ESt16initializer_listIfE(ptr noundef nonnull align 4 dereferenceable(64) %0, ptr nonnull %10, i64 16)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #5
  ret void
}

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

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

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

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

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


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