; LLVM IR from aap/librw :: src/base.ll (ZN2rw6Matrix12makeRotationEPS0_PKNS_3V3dEf)

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

%"struct.rw::V3d" = type { float, float, float }
%"struct.rw::Matrix" = type { %"struct.rw::V3d", i32, %"struct.rw::V3d", i32, %"struct.rw::V3d", i32, %"struct.rw::V3d", i32 }

; 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 nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1

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

; Function Attrs: nounwind
declare float @sinf(float noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2rw6Matrix12makeRotationEPS0_PKNS_3V3dEf(ptr noundef %0, ptr noundef %1, float noundef %2) #4 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca %"struct.rw::V3d", align 4
  %9 = alloca { <2 x float>, float }, align 8
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store float %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %13 = load ptr, ptr %5, align 8, !tbaa !5
  %14 = load ptr, ptr %5, align 8, !tbaa !5
  %15 = call noundef float @_ZN2rw3dotERKNS_3V3dES2_(ptr noundef nonnull align 4 dereferenceable(12) %13, ptr noundef nonnull align 4 dereferenceable(12) %14)
  store float %15, ptr %7, align 4, !tbaa !9
  %16 = load float, ptr %7, align 4, !tbaa !9
  %17 = fcmp une float %16, 0.000000e+00
  br i1 %17, label %18, label %22

18:                                               ; preds = %3
  %19 = load float, ptr %7, align 4, !tbaa !9
  %20 = call float @sqrtf(float noundef %19) #7
  %21 = fdiv float 1.000000e+00, %20
  store float %21, ptr %7, align 4, !tbaa !9
  br label %22

22:                                               ; preds = %18, %3
  call void @llvm.lifetime.start.p0(i64 12, ptr %8) #7
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = load float, ptr %7, align 4, !tbaa !9
  %25 = call { <2 x float>, float } @_ZN2rw5scaleERKNS_3V3dEf(ptr noundef nonnull align 4 dereferenceable(12) %23, float noundef %24)
  store { <2 x float>, float } %25, ptr %9, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 8 %9, i64 12, i1 false)
  %26 = load float, ptr %6, align 4, !tbaa !9
  %27 = fmul float %26, 0x400921FB60000000
  %28 = fdiv float %27, 1.800000e+02
  store float %28, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %29 = load float, ptr %6, align 4, !tbaa !9
  %30 = call float @sinf(float noundef %29) #7
  store float %30, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %31 = load float, ptr %6, align 4, !tbaa !9
  %32 = call float @cosf(float noundef %31) #7
  store float %32, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %33 = load float, ptr %11, align 4, !tbaa !9
  %34 = fsub float 1.000000e+00, %33
  store float %34, ptr %12, align 4, !tbaa !9
  %35 = load float, ptr %11, align 4, !tbaa !9
  %36 = getelementptr inbounds %"struct.rw::V3d", ptr %8, i32 0, i32 0
  %37 = load float, ptr %36, align 4, !tbaa !11
  %38 = getelementptr inbounds %"struct.rw::V3d", ptr %8, i32 0, i32 0
  %39 = load float, ptr %38, align 4, !tbaa !11
  %40 = fmul float %37, %39
  %41 = load float, ptr %12, align 4, !tbaa !9
  %42 = call float @llvm.fmuladd.f32(float %40, float %41, float %35)
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = getelementptr inbounds %"struct.rw::Matrix", ptr %43, i32 0, i32 0
  %45 = getelementptr inbounds %"struct.rw::V3d", ptr %44, i32 0, i32 0
  store float %42, ptr %45, align 4, !tbaa !13
  %46 = getelementptr inbounds %"struct.rw::V3d", ptr %8, i32 0, i32 0
  %47 = load float, ptr %46, align 4, !tbaa !11
  %48 = getelementptr inbounds %"struct.rw::V3d", ptr %8, i32 0, i32 1
  %49 = load float, ptr %48, align 4, !tbaa !16
  %50 = fmul float %47, %49
  %51 = load float, ptr %12, align 4, !tbaa !9
  %52 = getelementptr inbounds %"struct.rw::V3d", ptr %8, i32 0, i32 2
  %53 = load float, ptr %52, align 4, !tbaa !17
  %54 = load float, ptr %10, align 4, !tbaa !9
  %55 = fmul float %53, %54
  %56 = call float @llvm.fmuladd.f32(float %50, float %51, float %55)
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.rw::Matrix", ptr %57, i32 0, i32 0
  %59 = getelementptr inbounds %"struct.rw::V3d", ptr %58, i32 0, i32 1
  store float %56, ptr %59, align 4, !tbaa !18
  %60 = getelementptr inbounds %"struct.rw::V3d", ptr %8, i32 0, i32 2
  %61 = load float, ptr %60, align 4, !tbaa !17
  %62 = getelementptr inbounds %"struct.rw::V3d", ptr %8, i32 0, i32 0
  %63 = load float, ptr %62, align 4, !tbaa !11
  %64 = fmul float %61, %63
  %65 = load float, ptr %12, align 4, !tbaa !9
  %66 = getelementptr inbounds %"struct.rw::V3d", ptr %8, i32 0, i32 1
  %67 = load float, ptr %66, align 4, !tbaa !16
  %68 = load float, ptr %10, align 4, !tbaa !9
  %69 = fmul float %67, %68
  %70 = fneg float %69
  %71 = call float @llvm.fmuladd.f32(float %64, float %65, float %70)
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.rw::Matrix", ptr %72, i32 0, i32 0
  %74 = getelementptr inbounds %"struct.rw::V3d", ptr %73, i32 0, i32 2
  store float %71, ptr %74, align 4, !tbaa !19
  %75 = getelementptr inbounds %"struct.rw::V3d", ptr %8, i32 0, i32 0
  %76 = load float, ptr %75, align 4, !tbaa !11
  %77 = getelementptr inbounds %"struct.rw::V3d", ptr %8, i32 0, i32 1
  %78 = load float, ptr %77, align 4, !tbaa !16
  %79 = fmul float %76, %78
  %80 = load float, ptr %12, align 4, !tbaa !9
  %81 = getelementptr inbounds %"struct.rw::V3d", ptr %8, i32 0, i32 2
  %82 = load float, ptr %81, align 4, !tbaa !17
  %83 = load float, ptr %10, align 4, !tbaa !9
  %84 = fmul float %82, %83
  %85 = fneg float %84
  %86 = call float @llvm.fmuladd.f32(float %79, float %80, float %85)
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.rw::Matrix", ptr %87, i32 0, i32 2
  %89 = getelementptr inbounds %"struct.rw::V3d", ptr %88, i32 0, i32 0
  store float %86, ptr %89, align 4, !tbaa !20
  %90 = load float, ptr %11, align 4, !tbaa !9
  %91 = getelementptr inbounds %"struct.rw::V3d", ptr %8, i32 0, i32 1
  %92 = load float, ptr %91, align 4, !tbaa !16
  %93 = getelementptr inbounds %"struct.rw::V3d", ptr %8, i32 0, i32 1
  %94 = load float, ptr %93, align 4, !tbaa !16
  %95 = fmul float %92, %94
  %96 = load float, ptr %12, align 4, !tbaa !9
  %97 = call float @llvm.fmuladd.f32(float %95, float %96, float %90)
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = getelementptr inbounds %"struct.rw::Matrix", ptr %98, i32 0, i32 2
  %100 = getelementptr inbounds %"struct.rw::V3d", ptr %99, i32 0, i32 1
  store float %97, ptr %100, align 4, !tbaa !21
  %101 = getelementptr inbounds %"struct.rw::V3d", ptr %8, i32 0, i32 1
  %102 = load float, ptr %101, align 4, !tbaa !16
  %103 = getelementptr inbounds %"struct.rw::V3d", ptr %8, i32 0, i32 2
  %104 = load float, ptr %103, align 4, !tbaa !17
  %105 = fmul float %102, %104
  %106 = load float, ptr %12, align 4, !tbaa !9
  %107 = getelementptr inbounds %"struct.rw::V3d", ptr %8, i32 0, i32 0
  %108 = load float, ptr %107, align 4, !tbaa !11
  %109 = load float, ptr %10, align 4, !tbaa !9
  %110 = fmul float %108, %109
  %111 = call float @llvm.fmuladd.f32(float %105, float %106, float %110)
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  %113 = getelementptr inbounds %"struct.rw::Matrix", ptr %112, i32 0, i32 2
  %114 = getelementptr inbounds %"struct.rw::V3d", ptr %113, i32 0, i32 2
  store float %111, ptr %114, align 4, !tbaa !22
  %115 = getelementptr inbounds %"struct.rw::V3d", ptr %8, i32 0, i32 2
  %116 = load float, ptr %115, align 4, !tbaa !17
  %117 = getelementptr inbounds %"struct.rw::V3d", ptr %8, i32 0, i32 0
  %118 = load float, ptr %117, align 4, !tbaa !11
  %119 = fmul float %116, %118
  %120 = load float, ptr %12, align 4, !tbaa !9
  %121 = getelementptr inbounds %"struct.rw::V3d", ptr %8, i32 0, i32 1
  %122 = load float, ptr %121, align 4, !tbaa !16
  %123 = load float, ptr %10, align 4, !tbaa !9
  %124 = fmul float %122, %123
  %125 = call float @llvm.fmuladd.f32(float %119, float %120, float %124)
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  %127 = getelementptr inbounds %"struct.rw::Matrix", ptr %126, i32 0, i32 4
  %128 = getelementptr inbounds %"struct.rw::V3d", ptr %127, i32 0, i32 0
  store float %125, ptr %128, align 4, !tbaa !23
  %129 = getelementptr inbounds %"struct.rw::V3d", ptr %8, i32 0, i32 1
  %130 = load float, ptr %129, align 4, !tbaa !16
  %131 = getelementptr inbounds %"struct.rw::V3d", ptr %8, i32 0, i32 2
  %132 = load float, ptr %131, align 4, !tbaa !17
  %133 = fmul float %130, %132
  %134 = load float, ptr %12, align 4, !tbaa !9
  %135 = getelementptr inbounds %"struct.rw::V3d", ptr %8, i32 0, i32 0
  %136 = load float, ptr %135, align 4, !tbaa !11
  %137 = load float, ptr %10, align 4, !tbaa !9
  %138 = fmul float %136, %137
  %139 = fneg float %138
  %140 = call float @llvm.fmuladd.f32(float %133, float %134, float %139)
  %141 = load ptr, ptr %4, align 8, !tbaa !5
  %142 = getelementptr inbounds %"struct.rw::Matrix", ptr %141, i32 0, i32 4
  %143 = getelementptr inbounds %"struct.rw::V3d", ptr %142, i32 0, i32 1
  store float %140, ptr %143, align 4, !tbaa !24
  %144 = load float, ptr %11, align 4, !tbaa !9
  %145 = getelementptr inbounds %"struct.rw::V3d", ptr %8, i32 0, i32 2
  %146 = load float, ptr %145, align 4, !tbaa !17
  %147 = getelementptr inbounds %"struct.rw::V3d", ptr %8, i32 0, i32 2
  %148 = load float, ptr %147, align 4, !tbaa !17
  %149 = fmul float %146, %148
  %150 = load float, ptr %12, align 4, !tbaa !9
  %151 = call float @llvm.fmuladd.f32(float %149, float %150, float %144)
  %152 = load ptr, ptr %4, align 8, !tbaa !5
  %153 = getelementptr inbounds %"struct.rw::Matrix", ptr %152, i32 0, i32 4
  %154 = getelementptr inbounds %"struct.rw::V3d", ptr %153, i32 0, i32 2
  store float %151, ptr %154, align 4, !tbaa !25
  %155 = load ptr, ptr %4, align 8, !tbaa !5
  %156 = getelementptr inbounds %"struct.rw::Matrix", ptr %155, i32 0, i32 6
  %157 = getelementptr inbounds %"struct.rw::V3d", ptr %156, i32 0, i32 0
  store float 0.000000e+00, ptr %157, align 4, !tbaa !26
  %158 = load ptr, ptr %4, align 8, !tbaa !5
  %159 = getelementptr inbounds %"struct.rw::Matrix", ptr %158, i32 0, i32 6
  %160 = getelementptr inbounds %"struct.rw::V3d", ptr %159, i32 0, i32 1
  store float 0.000000e+00, ptr %160, align 4, !tbaa !27
  %161 = load ptr, ptr %4, align 8, !tbaa !5
  %162 = getelementptr inbounds %"struct.rw::Matrix", ptr %161, i32 0, i32 6
  %163 = getelementptr inbounds %"struct.rw::V3d", ptr %162, i32 0, i32 2
  store float 0.000000e+00, ptr %163, align 4, !tbaa !28
  %164 = load ptr, ptr %4, align 8, !tbaa !5
  %165 = getelementptr inbounds %"struct.rw::Matrix", ptr %164, i32 0, i32 1
  store i32 3, ptr %165, align 4, !tbaa !29
  %166 = load ptr, ptr %4, align 8, !tbaa !5
  %167 = getelementptr inbounds %"struct.rw::Matrix", ptr %166, i32 0, i32 7
  store i32 0, ptr %167, align 4, !tbaa !30
  %168 = load ptr, ptr %4, align 8, !tbaa !5
  %169 = getelementptr inbounds %"struct.rw::Matrix", ptr %168, i32 0, i32 5
  store i32 0, ptr %169, align 4, !tbaa !31
  %170 = load ptr, ptr %4, align 8, !tbaa !5
  %171 = getelementptr inbounds %"struct.rw::Matrix", ptr %170, i32 0, i32 3
  store i32 0, ptr %171, align 4, !tbaa !32
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  ret void
}

; Function Attrs: nounwind
declare float @sqrtf(float noundef) #3

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

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

; Function Attrs: nounwind
declare float @cosf(float noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind "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"="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 = { 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 #6 = { inlinehint 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 #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 = !{!12, !10, i64 0}
!12 = !{!"_ZTSN2rw3V3dE", !10, i64 0, !10, i64 4, !10, i64 8}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTSN2rw6MatrixE", !12, i64 0, !15, i64 12, !12, i64 16, !15, i64 28, !12, i64 32, !15, i64 44, !12, i64 48, !15, i64 60}
!15 = !{!"int", !7, i64 0}
!16 = !{!12, !10, i64 4}
!17 = !{!12, !10, i64 8}
!18 = !{!14, !10, i64 4}
!19 = !{!14, !10, i64 8}
!20 = !{!14, !10, i64 16}
!21 = !{!14, !10, i64 20}
!22 = !{!14, !10, i64 24}
!23 = !{!14, !10, i64 32}
!24 = !{!14, !10, i64 36}
!25 = !{!14, !10, i64 40}
!26 = !{!14, !10, i64 48}
!27 = !{!14, !10, i64 52}
!28 = !{!14, !10, i64 56}
!29 = !{!14, !15, i64 12}
!30 = !{!14, !15, i64 60}
!31 = !{!14, !15, i64 44}
!32 = !{!14, !15, i64 28}


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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @sinf(float noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN2rw6Matrix12makeRotationEPS0_PKNS_3V3dEf(ptr nocapture noundef writeonly %0, ptr noundef nonnull %1, float noundef %2) local_unnamed_addr #2 align 2 {
  %4 = tail call noundef float @_ZN2rw3dotERKNS_3V3dES2_(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %1)
  %5 = fcmp une float %4, 0.000000e+00
  br i1 %5, label %6, label %9

6:                                                ; preds = %3
  %7 = tail call float @sqrtf(float noundef %4) #6
  %8 = fdiv float 1.000000e+00, %7
  br label %9

9:                                                ; preds = %6, %3
  %.0 = phi float [ %8, %6 ], [ %4, %3 ]
  %10 = tail call { <2 x float>, float } @_ZN2rw5scaleERKNS_3V3dEf(ptr noundef nonnull align 4 dereferenceable(12) %1, float noundef %.0)
  %.fca.0.extract = extractvalue { <2 x float>, float } %10, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %10, 1
  %11 = fmul float %2, 0x400921FB60000000
  %12 = fdiv float %11, 1.800000e+02
  %13 = tail call float @sinf(float noundef %12) #6
  %14 = tail call float @cosf(float noundef %12) #6
  %15 = fsub float 1.000000e+00, %14
  %16 = fmul float %.fca.1.extract, %13
  %17 = shufflevector <2 x float> %.fca.0.extract, <2 x float> poison, <2 x i32> zeroinitializer
  %18 = fmul <2 x float> %17, %.fca.0.extract
  %19 = insertelement <2 x float> poison, float %15, i64 0
  %20 = shufflevector <2 x float> %19, <2 x float> poison, <2 x i32> zeroinitializer
  %21 = insertelement <2 x float> poison, float %14, i64 0
  %22 = insertelement <2 x float> %21, float %16, i64 1
  %23 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %18, <2 x float> %20, <2 x float> %22)
  store <2 x float> %23, ptr %0, align 4, !tbaa !5
  %24 = extractelement <2 x float> %.fca.0.extract, i64 1
  %25 = fmul float %13, %24
  %26 = fneg float %25
  %27 = getelementptr inbounds i8, ptr %0, i64 8
  %28 = fneg float %16
  %29 = getelementptr inbounds i8, ptr %0, i64 16
  %30 = fmul float %24, %24
  %31 = shufflevector <2 x float> %18, <2 x float> poison, <2 x i32> <i32 1, i32 poison>
  %32 = insertelement <2 x float> %31, float %30, i64 1
  %33 = insertelement <2 x float> poison, float %28, i64 0
  %34 = insertelement <2 x float> %33, float %14, i64 1
  %35 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %32, <2 x float> %20, <2 x float> %34)
  store <2 x float> %35, ptr %29, align 4, !tbaa !5
  %36 = extractelement <2 x float> %.fca.0.extract, i64 0
  %37 = fmul float %13, %36
  %38 = getelementptr inbounds i8, ptr %0, i64 24
  %39 = getelementptr inbounds i8, ptr %0, i64 32
  %40 = fneg float %37
  %41 = insertelement <2 x float> poison, float %.fca.1.extract, i64 0
  %42 = shufflevector <2 x float> %41, <2 x float> poison, <2 x i32> zeroinitializer
  %43 = fmul <2 x float> %42, %.fca.0.extract
  %44 = extractelement <2 x float> %43, i64 0
  %45 = tail call float @llvm.fmuladd.f32(float %44, float %15, float %26)
  store float %45, ptr %27, align 4, !tbaa !9
  %46 = extractelement <2 x float> %43, i64 1
  %47 = tail call float @llvm.fmuladd.f32(float %46, float %15, float %37)
  store float %47, ptr %38, align 4, !tbaa !13
  %48 = insertelement <2 x float> poison, float %25, i64 0
  %49 = insertelement <2 x float> %48, float %40, i64 1
  %50 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %43, <2 x float> %20, <2 x float> %49)
  store <2 x float> %50, ptr %39, align 4, !tbaa !5
  %51 = fmul float %.fca.1.extract, %.fca.1.extract
  %52 = tail call float @llvm.fmuladd.f32(float %51, float %15, float %14)
  %53 = getelementptr inbounds i8, ptr %0, i64 40
  store float %52, ptr %53, align 4, !tbaa !14
  %54 = getelementptr inbounds i8, ptr %0, i64 48
  store <2 x float> zeroinitializer, ptr %54, align 4, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %0, i64 56
  store float 0.000000e+00, ptr %55, align 4, !tbaa !15
  %56 = getelementptr inbounds i8, ptr %0, i64 12
  store i32 3, ptr %56, align 4, !tbaa !16
  %57 = getelementptr inbounds i8, ptr %0, i64 60
  store i32 0, ptr %57, align 4, !tbaa !17
  %58 = getelementptr inbounds i8, ptr %0, i64 44
  store i32 0, ptr %58, align 4, !tbaa !18
  %59 = getelementptr inbounds i8, ptr %0, i64 28
  store i32 0, ptr %59, align 4, !tbaa !19
  ret void
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @sqrtf(float noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @cosf(float noundef) local_unnamed_addr #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x float> @llvm.fmuladd.v2f32(<2 x float>, <2 x float>, <2 x float>) #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { mustprogress nofree nounwind willreturn memory(write) "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"="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 = { 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 = { inlinehint 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 #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"}
!9 = !{!10, !6, i64 8}
!10 = !{!"_ZTSN2rw6MatrixE", !11, i64 0, !12, i64 12, !11, i64 16, !12, i64 28, !11, i64 32, !12, i64 44, !11, i64 48, !12, i64 60}
!11 = !{!"_ZTSN2rw3V3dE", !6, i64 0, !6, i64 4, !6, i64 8}
!12 = !{!"int", !7, i64 0}
!13 = !{!10, !6, i64 24}
!14 = !{!10, !6, i64 40}
!15 = !{!10, !6, i64 56}
!16 = !{!10, !12, i64 12}
!17 = !{!10, !12, i64 60}
!18 = !{!10, !12, i64 44}
!19 = !{!10, !12, i64 28}


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