; LLVM IR from szxp/3d-soft-engine :: src/Mat.ll (ZN2g311transformP3ERKNS_3VecILm3EEERKNS_3MatILm4EEE)

; 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.g3::Vec" = type { [3 x float] }
%"class.std::initializer_list" = type { ptr, i64 }

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33MatILm4EEixEm(ptr noundef nonnull align 4 dereferenceable(64), i64 noundef) #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 @_ZN2g311transformP3ERKNS_3VecILm3EEERKNS_3MatILm4EEE(ptr dead_on_unwind noalias writable sret(%"class.g3::Vec") align 4 %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(64) %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca %"class.std::initializer_list", align 8
  %12 = alloca [3 x float], align 4
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %13 = load ptr, ptr %5, align 8, !tbaa !5
  %14 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33VecILm3EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %13, i32 noundef 0)
  %15 = load float, ptr %14, align 4, !tbaa !9
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  %17 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33MatILm4EEixEm(ptr noundef nonnull align 4 dereferenceable(64) %16, i64 noundef 0)
  %18 = load float, ptr %17, align 4, !tbaa !9
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33VecILm3EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %19, i32 noundef 1)
  %21 = load float, ptr %20, align 4, !tbaa !9
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33MatILm4EEixEm(ptr noundef nonnull align 4 dereferenceable(64) %22, i64 noundef 4)
  %24 = load float, ptr %23, align 4, !tbaa !9
  %25 = fmul float %21, %24
  %26 = call float @llvm.fmuladd.f32(float %15, float %18, float %25)
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33VecILm3EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %27, i32 noundef 2)
  %29 = load float, ptr %28, align 4, !tbaa !9
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33MatILm4EEixEm(ptr noundef nonnull align 4 dereferenceable(64) %30, i64 noundef 8)
  %32 = load float, ptr %31, align 4, !tbaa !9
  %33 = call float @llvm.fmuladd.f32(float %29, float %32, float %26)
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33MatILm4EEixEm(ptr noundef nonnull align 4 dereferenceable(64) %34, i64 noundef 12)
  %36 = load float, ptr %35, align 4, !tbaa !9
  %37 = fadd float %33, %36
  store float %37, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33VecILm3EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %38, i32 noundef 0)
  %40 = load float, ptr %39, align 4, !tbaa !9
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33MatILm4EEixEm(ptr noundef nonnull align 4 dereferenceable(64) %41, i64 noundef 1)
  %43 = load float, ptr %42, align 4, !tbaa !9
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33VecILm3EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %44, i32 noundef 1)
  %46 = load float, ptr %45, align 4, !tbaa !9
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33MatILm4EEixEm(ptr noundef nonnull align 4 dereferenceable(64) %47, i64 noundef 5)
  %49 = load float, ptr %48, align 4, !tbaa !9
  %50 = fmul float %46, %49
  %51 = call float @llvm.fmuladd.f32(float %40, float %43, float %50)
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33VecILm3EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %52, i32 noundef 2)
  %54 = load float, ptr %53, align 4, !tbaa !9
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33MatILm4EEixEm(ptr noundef nonnull align 4 dereferenceable(64) %55, i64 noundef 9)
  %57 = load float, ptr %56, align 4, !tbaa !9
  %58 = call float @llvm.fmuladd.f32(float %54, float %57, float %51)
  %59 = load ptr, ptr %6, align 8, !tbaa !5
  %60 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33MatILm4EEixEm(ptr noundef nonnull align 4 dereferenceable(64) %59, i64 noundef 13)
  %61 = load float, ptr %60, align 4, !tbaa !9
  %62 = fadd float %58, %61
  store float %62, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33VecILm3EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %63, i32 noundef 0)
  %65 = load float, ptr %64, align 4, !tbaa !9
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33MatILm4EEixEm(ptr noundef nonnull align 4 dereferenceable(64) %66, i64 noundef 2)
  %68 = load float, ptr %67, align 4, !tbaa !9
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33VecILm3EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %69, i32 noundef 1)
  %71 = load float, ptr %70, align 4, !tbaa !9
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33MatILm4EEixEm(ptr noundef nonnull align 4 dereferenceable(64) %72, i64 noundef 6)
  %74 = load float, ptr %73, align 4, !tbaa !9
  %75 = fmul float %71, %74
  %76 = call float @llvm.fmuladd.f32(float %65, float %68, float %75)
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33VecILm3EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %77, i32 noundef 2)
  %79 = load float, ptr %78, align 4, !tbaa !9
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33MatILm4EEixEm(ptr noundef nonnull align 4 dereferenceable(64) %80, i64 noundef 10)
  %82 = load float, ptr %81, align 4, !tbaa !9
  %83 = call float @llvm.fmuladd.f32(float %79, float %82, float %76)
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  %85 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33MatILm4EEixEm(ptr noundef nonnull align 4 dereferenceable(64) %84, i64 noundef 14)
  %86 = load float, ptr %85, align 4, !tbaa !9
  %87 = fadd float %83, %86
  store float %87, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33VecILm3EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %88, i32 noundef 0)
  %90 = load float, ptr %89, align 4, !tbaa !9
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33MatILm4EEixEm(ptr noundef nonnull align 4 dereferenceable(64) %91, i64 noundef 3)
  %93 = load float, ptr %92, align 4, !tbaa !9
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33VecILm3EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %94, i32 noundef 1)
  %96 = load float, ptr %95, align 4, !tbaa !9
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  %98 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33MatILm4EEixEm(ptr noundef nonnull align 4 dereferenceable(64) %97, i64 noundef 7)
  %99 = load float, ptr %98, align 4, !tbaa !9
  %100 = fmul float %96, %99
  %101 = call float @llvm.fmuladd.f32(float %90, float %93, float %100)
  %102 = load ptr, ptr %5, align 8, !tbaa !5
  %103 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33VecILm3EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %102, i32 noundef 2)
  %104 = load float, ptr %103, align 4, !tbaa !9
  %105 = load ptr, ptr %6, align 8, !tbaa !5
  %106 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33MatILm4EEixEm(ptr noundef nonnull align 4 dereferenceable(64) %105, i64 noundef 11)
  %107 = load float, ptr %106, align 4, !tbaa !9
  %108 = call float @llvm.fmuladd.f32(float %104, float %107, float %101)
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33MatILm4EEixEm(ptr noundef nonnull align 4 dereferenceable(64) %109, i64 noundef 15)
  %111 = load float, ptr %110, align 4, !tbaa !9
  %112 = fadd float %108, %111
  store float %112, ptr %10, align 4, !tbaa !9
  %113 = load float, ptr %10, align 4, !tbaa !9
  %114 = fcmp une float %113, 1.000000e+00
  br i1 %114, label %115, label %128

115:                                              ; preds = %3
  %116 = load float, ptr %10, align 4, !tbaa !9
  %117 = fcmp une float %116, 0.000000e+00
  br i1 %117, label %118, label %128

118:                                              ; preds = %115
  %119 = load float, ptr %10, align 4, !tbaa !9
  %120 = load float, ptr %7, align 4, !tbaa !9
  %121 = fdiv float %120, %119
  store float %121, ptr %7, align 4, !tbaa !9
  %122 = load float, ptr %10, align 4, !tbaa !9
  %123 = load float, ptr %8, align 4, !tbaa !9
  %124 = fdiv float %123, %122
  store float %124, ptr %8, align 4, !tbaa !9
  %125 = load float, ptr %10, align 4, !tbaa !9
  %126 = load float, ptr %9, align 4, !tbaa !9
  %127 = fdiv float %126, %125
  store float %127, ptr %9, align 4, !tbaa !9
  br label %128

128:                                              ; preds = %118, %115, %3
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #4
  %129 = load float, ptr %7, align 4, !tbaa !9
  store float %129, ptr %12, align 4, !tbaa !9
  %130 = getelementptr inbounds float, ptr %12, i64 1
  %131 = load float, ptr %8, align 4, !tbaa !9
  store float %131, ptr %130, align 4, !tbaa !9
  %132 = getelementptr inbounds float, ptr %12, i64 2
  %133 = load float, ptr %9, align 4, !tbaa !9
  store float %133, ptr %132, align 4, !tbaa !9
  %134 = getelementptr inbounds %"class.std::initializer_list", ptr %11, i32 0, i32 0
  store ptr %12, ptr %134, align 8, !tbaa !11
  %135 = getelementptr inbounds %"class.std::initializer_list", ptr %11, i32 0, i32 1
  store i64 3, ptr %135, align 8, !tbaa !14
  %136 = getelementptr inbounds { ptr, i64 }, ptr %11, i32 0, i32 0
  %137 = load ptr, ptr %136, align 8
  %138 = getelementptr inbounds { ptr, i64 }, ptr %11, i32 0, i32 1
  %139 = load i64, ptr %138, align 8
  call void @_ZN2g33VecILm3EEC2ESt16initializer_listIfE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr %137, i64 %139)
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  ret void
}

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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, !6, i64 0}
!12 = !{!"_ZTSSt16initializer_listIfE", !6, i64 0, !13, i64 8}
!13 = !{!"long", !7, i64 0}
!14 = !{!12, !13, 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.g3::Vec" = 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: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33MatILm4EEixEm(ptr noundef nonnull align 4 dereferenceable(64), i64 noundef) local_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 nounwind uwtable
define dso_local void @_ZN2g311transformP3ERKNS_3VecILm3EEERKNS_3MatILm4EEE(ptr dead_on_unwind noalias writable sret(%"class.g3::Vec") align 4 %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(64) %2) local_unnamed_addr #1 {
  %4 = alloca [3 x float], align 8
  %5 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33VecILm3EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 0)
  %6 = load float, ptr %5, align 4, !tbaa !5
  %7 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33MatILm4EEixEm(ptr noundef nonnull align 4 dereferenceable(64) %2, i64 noundef 0)
  %8 = load float, ptr %7, align 4, !tbaa !5
  %9 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33VecILm3EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 1)
  %10 = load float, ptr %9, align 4, !tbaa !5
  %11 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33MatILm4EEixEm(ptr noundef nonnull align 4 dereferenceable(64) %2, i64 noundef 4)
  %12 = load float, ptr %11, align 4, !tbaa !5
  %13 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33VecILm3EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 2)
  %14 = load float, ptr %13, align 4, !tbaa !5
  %15 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33MatILm4EEixEm(ptr noundef nonnull align 4 dereferenceable(64) %2, i64 noundef 8)
  %16 = load float, ptr %15, align 4, !tbaa !5
  %17 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33MatILm4EEixEm(ptr noundef nonnull align 4 dereferenceable(64) %2, i64 noundef 12)
  %18 = load float, ptr %17, align 4, !tbaa !5
  %19 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33VecILm3EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 0)
  %20 = load float, ptr %19, align 4, !tbaa !5
  %21 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33MatILm4EEixEm(ptr noundef nonnull align 4 dereferenceable(64) %2, i64 noundef 1)
  %22 = load float, ptr %21, align 4, !tbaa !5
  %23 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33VecILm3EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 1)
  %24 = load float, ptr %23, align 4, !tbaa !5
  %25 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33MatILm4EEixEm(ptr noundef nonnull align 4 dereferenceable(64) %2, i64 noundef 5)
  %26 = load float, ptr %25, align 4, !tbaa !5
  %27 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33VecILm3EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 2)
  %28 = load float, ptr %27, align 4, !tbaa !5
  %29 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33MatILm4EEixEm(ptr noundef nonnull align 4 dereferenceable(64) %2, i64 noundef 9)
  %30 = load float, ptr %29, align 4, !tbaa !5
  %31 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33MatILm4EEixEm(ptr noundef nonnull align 4 dereferenceable(64) %2, i64 noundef 13)
  %32 = load float, ptr %31, align 4, !tbaa !5
  %33 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33VecILm3EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 0)
  %34 = load float, ptr %33, align 4, !tbaa !5
  %35 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33MatILm4EEixEm(ptr noundef nonnull align 4 dereferenceable(64) %2, i64 noundef 2)
  %36 = load float, ptr %35, align 4, !tbaa !5
  %37 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33VecILm3EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 1)
  %38 = load float, ptr %37, align 4, !tbaa !5
  %39 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33MatILm4EEixEm(ptr noundef nonnull align 4 dereferenceable(64) %2, i64 noundef 6)
  %40 = load float, ptr %39, align 4, !tbaa !5
  %41 = fmul float %38, %40
  %42 = tail call float @llvm.fmuladd.f32(float %34, float %36, float %41)
  %43 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33VecILm3EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 2)
  %44 = load float, ptr %43, align 4, !tbaa !5
  %45 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33MatILm4EEixEm(ptr noundef nonnull align 4 dereferenceable(64) %2, i64 noundef 10)
  %46 = load float, ptr %45, align 4, !tbaa !5
  %47 = tail call float @llvm.fmuladd.f32(float %44, float %46, float %42)
  %48 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33MatILm4EEixEm(ptr noundef nonnull align 4 dereferenceable(64) %2, i64 noundef 14)
  %49 = load float, ptr %48, align 4, !tbaa !5
  %50 = fadd float %47, %49
  %51 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33VecILm3EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 0)
  %52 = load float, ptr %51, align 4, !tbaa !5
  %53 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33MatILm4EEixEm(ptr noundef nonnull align 4 dereferenceable(64) %2, i64 noundef 3)
  %54 = load float, ptr %53, align 4, !tbaa !5
  %55 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33VecILm3EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 1)
  %56 = load float, ptr %55, align 4, !tbaa !5
  %57 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33MatILm4EEixEm(ptr noundef nonnull align 4 dereferenceable(64) %2, i64 noundef 7)
  %58 = load float, ptr %57, align 4, !tbaa !5
  %59 = fmul float %56, %58
  %60 = tail call float @llvm.fmuladd.f32(float %52, float %54, float %59)
  %61 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33VecILm3EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 2)
  %62 = load float, ptr %61, align 4, !tbaa !5
  %63 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33MatILm4EEixEm(ptr noundef nonnull align 4 dereferenceable(64) %2, i64 noundef 11)
  %64 = load float, ptr %63, align 4, !tbaa !5
  %65 = tail call float @llvm.fmuladd.f32(float %62, float %64, float %60)
  %66 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2g33MatILm4EEixEm(ptr noundef nonnull align 4 dereferenceable(64) %2, i64 noundef 15)
  %67 = load float, ptr %66, align 4, !tbaa !5
  %68 = fadd float %65, %67
  %69 = fcmp une float %68, 1.000000e+00
  %70 = fcmp une float %68, 0.000000e+00
  %or.cond = and i1 %69, %70
  %71 = fdiv float %50, %68
  %.041 = select i1 %or.cond, float %71, float %50
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #4
  %72 = insertelement <2 x float> poison, float %10, i64 0
  %73 = insertelement <2 x float> %72, float %24, i64 1
  %74 = insertelement <2 x float> poison, float %12, i64 0
  %75 = insertelement <2 x float> %74, float %26, i64 1
  %76 = fmul <2 x float> %73, %75
  %77 = insertelement <2 x float> poison, float %6, i64 0
  %78 = insertelement <2 x float> %77, float %20, i64 1
  %79 = insertelement <2 x float> poison, float %8, i64 0
  %80 = insertelement <2 x float> %79, float %22, i64 1
  %81 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %78, <2 x float> %80, <2 x float> %76)
  %82 = insertelement <2 x float> poison, float %14, i64 0
  %83 = insertelement <2 x float> %82, float %28, i64 1
  %84 = insertelement <2 x float> poison, float %16, i64 0
  %85 = insertelement <2 x float> %84, float %30, i64 1
  %86 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %83, <2 x float> %85, <2 x float> %81)
  %87 = insertelement <2 x float> poison, float %18, i64 0
  %88 = insertelement <2 x float> %87, float %32, i64 1
  %89 = fadd <2 x float> %86, %88
  %90 = insertelement <2 x float> poison, float %68, i64 0
  %91 = shufflevector <2 x float> %90, <2 x float> poison, <2 x i32> zeroinitializer
  %92 = fdiv <2 x float> %89, %91
  %93 = insertelement <2 x i1> poison, i1 %or.cond, i64 0
  %94 = shufflevector <2 x i1> %93, <2 x i1> poison, <2 x i32> zeroinitializer
  %95 = select <2 x i1> %94, <2 x float> %92, <2 x float> %89
  store <2 x float> %95, ptr %4, align 8, !tbaa !5
  %96 = getelementptr inbounds i8, ptr %4, i64 8
  store float %.041, ptr %96, align 8, !tbaa !5
  call void @_ZN2g33VecILm3EEC2ESt16initializer_listIfE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr nonnull %4, i64 3)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #4
  ret void
}

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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: GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass