; LLVM IR from BrunoLevy/learn-fpga :: FemtoRV/FIRMWARE/CPP_EXAMPLES/tinyrt_cpp.ll (Z7refractRK3vecILm3EfES2_ff)

; 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.vec = type { float, float, float }

; 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local { <2 x float>, float } @_Z7refractRK3vecILm3EfES2_ff(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, float noundef %2, float noundef %3) #4 {
  %5 = alloca %struct.vec, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca %struct.vec, align 4
  %15 = alloca { <2 x float>, float }, align 8
  %16 = alloca { <2 x float>, float }, align 8
  %17 = alloca i32, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca %struct.vec, align 4
  %21 = alloca { <2 x float>, float }, align 8
  %22 = alloca %struct.vec, align 4
  %23 = alloca float, align 4
  %24 = alloca { <2 x float>, float }, align 8
  %25 = alloca { <2 x float>, float }, align 4
  %26 = alloca { <2 x float>, float }, align 8
  %27 = alloca { <2 x float>, float }, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store float %2, ptr %8, align 4, !tbaa !9
  store float %3, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  store float -1.000000e+00, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #9
  store float 1.000000e+00, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #9
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = call noundef float @_ZmlILm3EfET0_RK3vecIXT_ES0_ES4_(ptr noundef nonnull align 4 dereferenceable(12) %28, ptr noundef nonnull align 4 dereferenceable(12) %29)
  store float %30, ptr %13, align 4, !tbaa !9
  %31 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %32 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %31)
  %33 = load float, ptr %32, align 4, !tbaa !9
  %34 = fneg float %33
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  store float %34, ptr %10, align 4, !tbaa !9
  %35 = load float, ptr %10, align 4, !tbaa !9
  %36 = fcmp olt float %35, 0.000000e+00
  br i1 %36, label %37, label %44

37:                                               ; preds = %4
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %14) #9
  %39 = load ptr, ptr %7, align 8, !tbaa !5
  %40 = call { <2 x float>, float } @_ZngILm3EfE3vecIXT_ET0_ERKS2_(ptr noundef nonnull align 4 dereferenceable(12) %39)
  store { <2 x float>, float } %40, ptr %15, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 8 %15, i64 12, i1 false)
  %41 = load float, ptr %9, align 4, !tbaa !9
  %42 = load float, ptr %8, align 4, !tbaa !9
  %43 = call { <2 x float>, float } @_Z7refractRK3vecILm3EfES2_ff(ptr noundef nonnull align 4 dereferenceable(12) %38, ptr noundef nonnull align 4 dereferenceable(12) %14, float noundef %41, float noundef %42)
  store { <2 x float>, float } %43, ptr %16, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 8 %16, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #9
  store i32 1, ptr %17, align 4
  br label %77

44:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #9
  %45 = load float, ptr %9, align 4, !tbaa !9
  %46 = load float, ptr %8, align 4, !tbaa !9
  %47 = fdiv float %45, %46
  store float %47, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #9
  %48 = load float, ptr %18, align 4, !tbaa !9
  %49 = load float, ptr %18, align 4, !tbaa !9
  %50 = fmul float %48, %49
  %51 = load float, ptr %10, align 4, !tbaa !9
  %52 = load float, ptr %10, align 4, !tbaa !9
  %53 = fneg float %51
  %54 = call float @llvm.fmuladd.f32(float %53, float %52, float 1.000000e+00)
  %55 = fneg float %50
  %56 = call float @llvm.fmuladd.f32(float %55, float %54, float 1.000000e+00)
  store float %56, ptr %19, align 4, !tbaa !9
  %57 = load float, ptr %19, align 4, !tbaa !9
  %58 = fcmp olt float %57, 0.000000e+00
  call void @llvm.lifetime.start.p0(i64 12, ptr %22) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #9
  br i1 %58, label %59, label %60

59:                                               ; preds = %44
  call void @_ZN3vecILm3EfEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %5, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  br label %76

60:                                               ; preds = %44
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = call { <2 x float>, float } @_ZmlILm3EffE3vecIXT_ET0_ERKS2_RKT1_(ptr noundef nonnull align 4 dereferenceable(12) %61, ptr noundef nonnull align 4 dereferenceable(4) %18)
  store { <2 x float>, float } %62, ptr %21, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 8 %21, i64 12, i1 false)
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  %64 = load float, ptr %18, align 4, !tbaa !9
  %65 = load float, ptr %10, align 4, !tbaa !9
  %66 = load float, ptr %19, align 4, !tbaa !9
  %67 = call float @sqrtf(float noundef %66) #9
  %68 = fneg float %67
  %69 = call float @llvm.fmuladd.f32(float %64, float %65, float %68)
  store float %69, ptr %23, align 4, !tbaa !9
  %70 = call { <2 x float>, float } @_ZmlILm3EffE3vecIXT_ET0_ERKS2_RKT1_(ptr noundef nonnull align 4 dereferenceable(12) %63, ptr noundef nonnull align 4 dereferenceable(4) %23)
  store { <2 x float>, float } %70, ptr %24, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 8 %24, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %20, i64 12, i1 false)
  %71 = getelementptr inbounds { <2 x float>, float }, ptr %25, i32 0, i32 0
  %72 = load <2 x float>, ptr %71, align 4
  %73 = getelementptr inbounds { <2 x float>, float }, ptr %25, i32 0, i32 1
  %74 = load float, ptr %73, align 4
  %75 = call { <2 x float>, float } @_ZplILm3EfE3vecIXT_ET0_ES2_RKS2_(<2 x float> %72, float %74, ptr noundef nonnull align 4 dereferenceable(12) %22)
  store { <2 x float>, float } %75, ptr %26, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 8 %26, i64 12, i1 false)
  br label %76

76:                                               ; preds = %60, %59
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %22) #9
  store i32 1, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  br label %77

77:                                               ; preds = %76, %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %27, ptr align 4 %5, i64 12, i1 false)
  %78 = load { <2 x float>, float }, ptr %27, align 8
  ret { <2 x float>, float } %78
}

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

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

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

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

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

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

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

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


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

%struct.vec = type { float, float, 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 uwtable
declare dso_local { <2 x float>, float } @_ZmlILm3EffE3vecIXT_ET0_ERKS2_RKT1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZmlILm3EfET0_RK3vecIXT_ES0_ES4_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #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 { <2 x float>, float } @_Z7refractRK3vecILm3EfES2_ff(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, float noundef %2, float noundef %3) local_unnamed_addr #3 {
  %5 = alloca %struct.vec, align 8
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca %struct.vec, align 8
  %10 = alloca float, align 4
  %11 = alloca %struct.vec, align 8
  %12 = alloca float, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #8
  store float -1.000000e+00, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #8
  store float 1.000000e+00, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #8
  %13 = tail call noundef float @_ZmlILm3EfET0_RK3vecIXT_ES0_ES4_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1)
  store float %13, ptr %8, align 4, !tbaa !5
  %14 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %15 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %16 = load float, ptr %15, align 4, !tbaa !5
  %17 = fneg float %16
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #8
  %18 = fcmp ogt float %16, 0.000000e+00
  br i1 %18, label %19, label %22

19:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #8
  %20 = call { <2 x float>, float } @_ZngILm3EfE3vecIXT_ET0_ERKS2_(ptr noundef nonnull align 4 dereferenceable(12) %1)
  %.fca.0.extract20 = extractvalue { <2 x float>, float } %20, 0
  %.fca.1.extract21 = extractvalue { <2 x float>, float } %20, 1
  store <2 x float> %.fca.0.extract20, ptr %9, align 8
  %.sroa.223.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 8
  store float %.fca.1.extract21, ptr %.sroa.223.0..sroa_idx, align 8
  %21 = call { <2 x float>, float } @_Z7refractRK3vecILm3EfES2_ff(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %9, float noundef %3, float noundef %2)
  %.fca.0.extract16 = extractvalue { <2 x float>, float } %21, 0
  %.fca.1.extract17 = extractvalue { <2 x float>, float } %21, 1
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #8
  br label %39

22:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #8
  %23 = fdiv float %3, %2
  store float %23, ptr %10, align 4, !tbaa !5
  %24 = call float @llvm.fmuladd.f32(float %16, float %17, float 1.000000e+00)
  %25 = fneg float %23
  %26 = fmul float %23, %25
  %27 = call float @llvm.fmuladd.f32(float %26, float %24, float 1.000000e+00)
  %28 = fcmp olt float %27, 0.000000e+00
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #8
  br i1 %28, label %29, label %30

29:                                               ; preds = %22
  call void @_ZN3vecILm3EfEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %5, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %.sroa.0.0.copyload.pre.pre = load <2 x float>, ptr %5, align 8
  %.sroa.2.0..sroa_idx.phi.trans.insert.phi.trans.insert = getelementptr inbounds i8, ptr %5, i64 8
  %.sroa.2.0.copyload.pre.pre = load float, ptr %.sroa.2.0..sroa_idx.phi.trans.insert.phi.trans.insert, align 8
  br label %38

30:                                               ; preds = %22
  %31 = call { <2 x float>, float } @_ZmlILm3EffE3vecIXT_ET0_ERKS2_RKT1_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %.fca.0.extract9 = extractvalue { <2 x float>, float } %31, 0
  %.fca.1.extract10 = extractvalue { <2 x float>, float } %31, 1
  %32 = load float, ptr %10, align 4, !tbaa !5
  %33 = call float @sqrtf(float noundef %27) #8
  %34 = fneg float %33
  %35 = call float @llvm.fmuladd.f32(float %32, float %17, float %34)
  store float %35, ptr %12, align 4, !tbaa !5
  %36 = call { <2 x float>, float } @_ZmlILm3EffE3vecIXT_ET0_ERKS2_RKT1_(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %.fca.0.extract5 = extractvalue { <2 x float>, float } %36, 0
  %.fca.1.extract6 = extractvalue { <2 x float>, float } %36, 1
  store <2 x float> %.fca.0.extract5, ptr %11, align 8
  %.sroa.28.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 8
  store float %.fca.1.extract6, ptr %.sroa.28.0..sroa_idx, align 8
  %37 = call { <2 x float>, float } @_ZplILm3EfE3vecIXT_ET0_ES2_RKS2_(<2 x float> %.fca.0.extract9, float %.fca.1.extract10, ptr noundef nonnull align 4 dereferenceable(12) %11)
  %.fca.0.extract = extractvalue { <2 x float>, float } %37, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %37, 1
  br label %38

38:                                               ; preds = %30, %29
  %.sroa.2.0.copyload.pre = phi float [ %.fca.1.extract, %30 ], [ %.sroa.2.0.copyload.pre.pre, %29 ]
  %.sroa.0.0.copyload.pre = phi <2 x float> [ %.fca.0.extract, %30 ], [ %.sroa.0.0.copyload.pre.pre, %29 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #8
  br label %39

39:                                               ; preds = %38, %19
  %.sroa.2.0.copyload = phi float [ %.sroa.2.0.copyload.pre, %38 ], [ %.fca.1.extract17, %19 ]
  %.sroa.0.0.copyload = phi <2 x float> [ %.sroa.0.0.copyload.pre, %38 ], [ %.fca.0.extract16, %19 ]
  %.fca.0.insert = insertvalue { <2 x float>, float } poison, <2 x float> %.sroa.0.0.copyload, 0
  %.fca.1.insert = insertvalue { <2 x float>, float } %.fca.0.insert, float %.sroa.2.0.copyload, 1
  ret { <2 x float>, float } %.fca.1.insert
}

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

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

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync 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 = { 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 #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 = { 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 #8 = { 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: BDCEPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,TailCallElimPass