; LLVM IR from Razakhel/RaZ :: src/RaZ/Utils/Ray.ll (ZNK3Raz3Ray10intersectsERKNS_6SphereEPNS_6RayHitE)

; 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.Raz::Vector" = type { %"struct.std::array" }
%"struct.std::array" = type { [3 x float] }
%"class.Raz::Ray" = type { %"class.Raz::Vector", %"class.Raz::Vector", %"class.Raz::Vector" }
%"struct.Raz::RayHit" = type { %"class.Raz::Vector", %"class.Raz::Vector", 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 nounwind uwtable
declare dso_local { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEmiERKS1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #2 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK3Raz3Ray10intersectsERKNS_6SphereEPNS_6RayHitE(ptr noundef nonnull align 4 dereferenceable(36) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef %2) #3 align 2 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"class.Raz::Vector", 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
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca i32, align 4
  %16 = alloca %"class.Raz::Vector", align 4
  %17 = alloca %"class.Raz::Vector", align 4
  %18 = alloca { <2 x float>, float }, align 8
  %19 = alloca { <2 x float>, float }, align 8
  %20 = alloca %"class.Raz::Vector", align 4
  %21 = alloca %"class.Raz::Vector", align 4
  %22 = alloca { <2 x float>, float }, align 8
  %23 = alloca { <2 x float>, float }, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %24 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr %8) #5
  %25 = getelementptr inbounds %"class.Raz::Ray", ptr %24, i32 0, i32 0
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3Raz6Sphere9getCenterEv(ptr noundef nonnull align 8 dereferenceable(24) %26)
  %28 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEmiERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %25, ptr noundef nonnull align 4 dereferenceable(12) %27) #5
  %29 = getelementptr inbounds %"class.Raz::Vector", ptr %8, i32 0, i32 0
  %30 = getelementptr inbounds %"struct.std::array", ptr %29, i32 0, i32 0
  store { <2 x float>, float } %28, ptr %9, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 8 %9, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %31 = getelementptr inbounds %"class.Raz::Ray", ptr %24, i32 0, i32 1
  %32 = getelementptr inbounds %"class.Raz::Ray", ptr %24, i32 0, i32 1
  %33 = call noundef float @_ZNK3Raz6VectorIfLm3EE3dotIfEET_RKS1_(ptr noundef nonnull align 4 dereferenceable(12) %31, ptr noundef nonnull align 4 dereferenceable(12) %32) #5
  store float %33, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %34 = getelementptr inbounds %"class.Raz::Ray", ptr %24, i32 0, i32 1
  %35 = call noundef float @_ZNK3Raz6VectorIfLm3EE3dotIfEET_RKS1_(ptr noundef nonnull align 4 dereferenceable(12) %34, ptr noundef nonnull align 4 dereferenceable(12) %8) #5
  %36 = fmul float 2.000000e+00, %35
  store float %36, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %37 = call noundef float @_ZNK3Raz6VectorIfLm3EE20computeSquaredLengthIfEET_v(ptr noundef nonnull align 4 dereferenceable(12) %8) #5
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = call noundef float @_ZNK3Raz6Sphere9getRadiusEv(ptr noundef nonnull align 8 dereferenceable(24) %38)
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = call noundef float @_ZNK3Raz6Sphere9getRadiusEv(ptr noundef nonnull align 8 dereferenceable(24) %40)
  %42 = fneg float %39
  %43 = call float @llvm.fmuladd.f32(float %42, float %41, float %37)
  store float %43, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store float 0.000000e+00, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store float 0.000000e+00, ptr %14, align 4, !tbaa !9
  %44 = load float, ptr %10, align 4, !tbaa !9
  %45 = load float, ptr %11, align 4, !tbaa !9
  %46 = load float, ptr %12, align 4, !tbaa !9
  %47 = call noundef zeroext i1 @_ZN3Raz12_GLOBAL__N_114solveQuadraticEfffRfS1_(float noundef %44, float noundef %45, float noundef %46, ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %14)
  br i1 %47, label %49, label %48

48:                                               ; preds = %3
  store i1 false, ptr %4, align 1
  store i32 1, ptr %15, align 4
  br label %87

49:                                               ; preds = %3
  %50 = load float, ptr %13, align 4, !tbaa !9
  %51 = fcmp olt float %50, 0.000000e+00
  br i1 %51, label %52, label %58

52:                                               ; preds = %49
  %53 = load float, ptr %14, align 4, !tbaa !9
  store float %53, ptr %13, align 4, !tbaa !9
  %54 = load float, ptr %13, align 4, !tbaa !9
  %55 = fcmp olt float %54, 0.000000e+00
  br i1 %55, label %56, label %57

56:                                               ; preds = %52
  store i1 false, ptr %4, align 1
  store i32 1, ptr %15, align 4
  br label %87

57:                                               ; preds = %52
  br label %58

58:                                               ; preds = %57, %49
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  %60 = icmp ne ptr %59, null
  br i1 %60, label %61, label %86

61:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 12, ptr %16) #5
  %62 = getelementptr inbounds %"class.Raz::Ray", ptr %24, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 12, ptr %17) #5
  %63 = getelementptr inbounds %"class.Raz::Ray", ptr %24, i32 0, i32 1
  %64 = load float, ptr %13, align 4, !tbaa !9
  %65 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEmlEf(ptr noundef nonnull align 4 dereferenceable(12) %63, float noundef %64) #5
  %66 = getelementptr inbounds %"class.Raz::Vector", ptr %17, i32 0, i32 0
  %67 = getelementptr inbounds %"struct.std::array", ptr %66, i32 0, i32 0
  store { <2 x float>, float } %65, ptr %18, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %67, ptr align 8 %18, i64 12, i1 false)
  %68 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEplERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %62, ptr noundef nonnull align 4 dereferenceable(12) %17) #5
  %69 = getelementptr inbounds %"class.Raz::Vector", ptr %16, i32 0, i32 0
  %70 = getelementptr inbounds %"struct.std::array", ptr %69, i32 0, i32 0
  store { <2 x float>, float } %68, ptr %19, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %70, ptr align 8 %19, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #5
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.Raz::RayHit", ptr %71, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %72, ptr align 4 %16, i64 12, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 12, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %21) #5
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3Raz6Sphere9getCenterEv(ptr noundef nonnull align 8 dereferenceable(24) %73)
  %75 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEmiERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %16, ptr noundef nonnull align 4 dereferenceable(12) %74) #5
  %76 = getelementptr inbounds %"class.Raz::Vector", ptr %21, i32 0, i32 0
  %77 = getelementptr inbounds %"struct.std::array", ptr %76, i32 0, i32 0
  store { <2 x float>, float } %75, ptr %22, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %77, ptr align 8 %22, i64 12, i1 false)
  %78 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EE9normalizeIfEENS0_IT_Lm3EEEv(ptr noundef nonnull align 4 dereferenceable(12) %21) #5
  %79 = getelementptr inbounds %"class.Raz::Vector", ptr %20, i32 0, i32 0
  %80 = getelementptr inbounds %"struct.std::array", ptr %79, i32 0, i32 0
  store { <2 x float>, float } %78, ptr %23, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %80, ptr align 8 %23, i64 12, i1 false)
  %81 = load ptr, ptr %7, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.Raz::RayHit", ptr %81, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %82, ptr align 4 %20, i64 12, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #5
  %83 = load float, ptr %13, align 4, !tbaa !9
  %84 = load ptr, ptr %7, align 8, !tbaa !5
  %85 = getelementptr inbounds %"struct.Raz::RayHit", ptr %84, i32 0, i32 2
  store float %83, ptr %85, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #5
  br label %86

86:                                               ; preds = %61, %58
  store i1 true, ptr %4, align 1
  store i32 1, ptr %15, align 4
  br label %87

87:                                               ; preds = %86, %56, %48
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %8) #5
  %88 = load i1, ptr %4, align 1
  ret i1 %88
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3Raz6Sphere9getCenterEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3Raz6Sphere9getRadiusEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN3Raz12_GLOBAL__N_114solveQuadraticEfffRfS1_(float noundef, float noundef, float noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #2

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"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 = !{i64 0, i64 12, !12}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !10, i64 24}
!14 = !{!"_ZTSN3Raz6RayHitE", !15, i64 0, !15, i64 12, !10, i64 24}
!15 = !{!"_ZTSN3Raz6VectorIfLm3EEE", !16, i64 0}
!16 = !{!"_ZTSSt5arrayIfLm3EE", !7, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.Raz::Vector" = type { %"struct.std::array" }
%"struct.std::array" = type { [3 x float] }

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #0

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_ZNK3Raz3Ray10intersectsERKNS_6SphereEPNS_6RayHitE(ptr noundef nonnull align 4 dereferenceable(36) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef writeonly %2) local_unnamed_addr #3 align 2 {
  %4 = alloca %"class.Raz::Vector", align 8
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca %"class.Raz::Vector", align 8
  %8 = alloca %"class.Raz::Vector", align 8
  %9 = alloca %"class.Raz::Vector", align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #5
  %10 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3Raz6Sphere9getCenterEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %11 = tail call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEmiERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %10) #5
  %.fca.0.extract16 = extractvalue { <2 x float>, float } %11, 0
  %.fca.1.extract17 = extractvalue { <2 x float>, float } %11, 1
  store <2 x float> %.fca.0.extract16, ptr %4, align 8
  %.sroa.219.0..sroa_idx = getelementptr inbounds i8, ptr %4, i64 8
  store float %.fca.1.extract17, ptr %.sroa.219.0..sroa_idx, align 8
  %12 = getelementptr inbounds i8, ptr %0, i64 12
  %13 = tail call noundef float @_ZNK3Raz6VectorIfLm3EE3dotIfEET_RKS1_(ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(12) %12) #5
  %14 = call noundef float @_ZNK3Raz6VectorIfLm3EE3dotIfEET_RKS1_(ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(12) %4) #5
  %15 = fmul float %14, 2.000000e+00
  %16 = call noundef float @_ZNK3Raz6VectorIfLm3EE20computeSquaredLengthIfEET_v(ptr noundef nonnull align 4 dereferenceable(12) %4) #5
  %17 = call noundef float @_ZNK3Raz6Sphere9getRadiusEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %18 = call noundef float @_ZNK3Raz6Sphere9getRadiusEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %19 = fneg float %17
  %20 = call float @llvm.fmuladd.f32(float %19, float %18, float %16)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  store float 0.000000e+00, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  store float 0.000000e+00, ptr %6, align 4, !tbaa !5
  %21 = call noundef zeroext i1 @_ZN3Raz12_GLOBAL__N_114solveQuadraticEfffRfS1_(float noundef %13, float noundef %15, float noundef %20, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %21, label %22, label %39

22:                                               ; preds = %3
  %23 = load float, ptr %5, align 4, !tbaa !5
  %24 = fcmp olt float %23, 0.000000e+00
  br i1 %24, label %25, label %28

25:                                               ; preds = %22
  %26 = load float, ptr %6, align 4, !tbaa !5
  store float %26, ptr %5, align 4, !tbaa !5
  %27 = fcmp olt float %26, 0.000000e+00
  br i1 %27, label %39, label %28

28:                                               ; preds = %25, %22
  %29 = phi float [ %26, %25 ], [ %23, %22 ]
  %.not = icmp eq ptr %2, null
  br i1 %.not, label %39, label %30

30:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #5
  %31 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEmlEf(ptr noundef nonnull align 4 dereferenceable(12) %12, float noundef %29) #5
  %.fca.0.extract10 = extractvalue { <2 x float>, float } %31, 0
  %.fca.1.extract11 = extractvalue { <2 x float>, float } %31, 1
  store <2 x float> %.fca.0.extract10, ptr %8, align 8
  %.sroa.213.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  store float %.fca.1.extract11, ptr %.sroa.213.0..sroa_idx, align 8
  %32 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEplERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %8) #5
  %.fca.0.extract6 = extractvalue { <2 x float>, float } %32, 0
  %.fca.1.extract7 = extractvalue { <2 x float>, float } %32, 1
  store <2 x float> %.fca.0.extract6, ptr %7, align 8
  %.sroa.29.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 8
  store float %.fca.1.extract7, ptr %.sroa.29.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 8 dereferenceable(12) %7, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #5
  %33 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3Raz6Sphere9getCenterEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %34 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEmiERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(12) %33) #5
  %.fca.0.extract1 = extractvalue { <2 x float>, float } %34, 0
  %.fca.1.extract2 = extractvalue { <2 x float>, float } %34, 1
  store <2 x float> %.fca.0.extract1, ptr %9, align 8
  %.sroa.24.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 8
  store float %.fca.1.extract2, ptr %.sroa.24.0..sroa_idx, align 8
  %35 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EE9normalizeIfEENS0_IT_Lm3EEEv(ptr noundef nonnull align 4 dereferenceable(12) %9) #5
  %.fca.0.extract = extractvalue { <2 x float>, float } %35, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %35, 1
  %36 = getelementptr inbounds i8, ptr %2, i64 12
  store <2 x float> %.fca.0.extract, ptr %36, align 4
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %2, i64 20
  store float %.fca.1.extract, ptr %.sroa.4.0..sroa_idx, align 4, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #5
  %37 = load float, ptr %5, align 4, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %2, i64 24
  store float %37, ptr %38, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #5
  br label %39

39:                                               ; preds = %28, %30, %25, %3
  %.0 = phi i1 [ false, %3 ], [ false, %25 ], [ true, %30 ], [ true, %28 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #5
  ret i1 %.0
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3Raz6Sphere9getCenterEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3Raz6Sphere9getRadiusEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN3Raz12_GLOBAL__N_114solveQuadraticEfffRfS1_(float noundef, float noundef, float noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"float", !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, !6, i64 24}
!12 = !{!"_ZTSN3Raz6RayHitE", !13, i64 0, !13, i64 12, !6, i64 24}
!13 = !{!"_ZTSN3Raz6VectorIfLm3EEE", !14, i64 0}
!14 = !{!"_ZTSSt5arrayIfLm3EE", !7, i64 0}


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