; LLVM IR from ShahjalalShohag/code-library :: Geometry/Geometry 3D.ll (Z26sphere_sphere_intersection6sphereS_)

; 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.p3 = type { double, double, double }
%"struct.std::pair.34" = type { double, double }
%struct.sphere = type { %struct.p3, double }

@_ZL2PI = external hidden global double, align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z4signd(double noundef) #0

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_Z3abs2p3(ptr noundef) #4

; Function Attrs: nounwind
declare double @sqrt(double noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK2p3miERKS_(ptr dead_on_unwind noalias writable sret(%struct.p3) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local { double, double } @_Z26sphere_sphere_intersection6sphereS_(ptr noundef %0, ptr noundef %1) #4 {
  %3 = alloca %"struct.std::pair.34", align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca double, align 8
  %7 = alloca %struct.p3, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %21 = getelementptr inbounds %struct.sphere, ptr %0, i32 0, i32 0
  %22 = getelementptr inbounds %struct.sphere, ptr %1, i32 0, i32 0
  call void @_ZNK2p3miERKS_(ptr dead_on_unwind writable sret(%struct.p3) align 8 %7, ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(24) %22)
  %23 = call noundef double @_Z3abs2p3(ptr noundef %7)
  store double %23, ptr %6, align 8, !tbaa !9
  %24 = load double, ptr %6, align 8, !tbaa !9
  %25 = getelementptr inbounds %struct.sphere, ptr %0, i32 0, i32 1
  %26 = load double, ptr %25, align 8, !tbaa !11
  %27 = fsub double %24, %26
  %28 = getelementptr inbounds %struct.sphere, ptr %1, i32 0, i32 1
  %29 = load double, ptr %28, align 8, !tbaa !11
  %30 = fsub double %27, %29
  %31 = call noundef i32 @_Z4signd(double noundef %30)
  %32 = icmp sge i32 %31, 0
  br i1 %32, label %33, label %34

33:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !14
  call void @_ZNSt4pairIddEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9)
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  store i32 1, ptr %10, align 4
  br label %133

34:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %35 = getelementptr inbounds %struct.sphere, ptr %0, i32 0, i32 1
  %36 = getelementptr inbounds %struct.sphere, ptr %1, i32 0, i32 1
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull align 8 dereferenceable(8) %36)
  %38 = load double, ptr %37, align 8, !tbaa !9
  store double %38, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %39 = getelementptr inbounds %struct.sphere, ptr %0, i32 0, i32 1
  %40 = getelementptr inbounds %struct.sphere, ptr %1, i32 0, i32 1
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull align 8 dereferenceable(8) %40)
  %42 = load double, ptr %41, align 8, !tbaa !9
  store double %42, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %43 = load double, ptr %11, align 8, !tbaa !9
  %44 = load double, ptr %12, align 8, !tbaa !9
  %45 = fadd double %43, %44
  %46 = load double, ptr %6, align 8, !tbaa !9
  %47 = fsub double %45, %46
  store double %47, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %48 = load double, ptr %11, align 8, !tbaa !9
  %49 = load double, ptr %11, align 8, !tbaa !9
  %50 = load double, ptr %12, align 8, !tbaa !9
  %51 = load double, ptr %12, align 8, !tbaa !9
  %52 = fmul double %50, %51
  %53 = fneg double %52
  %54 = call double @llvm.fmuladd.f64(double %48, double %49, double %53)
  %55 = load double, ptr %6, align 8, !tbaa !9
  %56 = load double, ptr %6, align 8, !tbaa !9
  %57 = call double @llvm.fmuladd.f64(double %55, double %56, double %54)
  %58 = load double, ptr %6, align 8, !tbaa !9
  %59 = fmul double 2.000000e+00, %58
  %60 = fdiv double %57, %59
  store double %60, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %61 = load double, ptr %6, align 8, !tbaa !9
  %62 = load double, ptr %6, align 8, !tbaa !9
  %63 = load double, ptr %12, align 8, !tbaa !9
  %64 = load double, ptr %12, align 8, !tbaa !9
  %65 = fmul double %63, %64
  %66 = fneg double %65
  %67 = call double @llvm.fmuladd.f64(double %61, double %62, double %66)
  %68 = load double, ptr %11, align 8, !tbaa !9
  %69 = load double, ptr %11, align 8, !tbaa !9
  %70 = call double @llvm.fmuladd.f64(double %68, double %69, double %67)
  store double %70, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %71 = load double, ptr %6, align 8, !tbaa !9
  %72 = fmul double 4.000000e+00, %71
  %73 = load double, ptr %6, align 8, !tbaa !9
  %74 = fmul double %72, %73
  %75 = load double, ptr %11, align 8, !tbaa !9
  %76 = fmul double %74, %75
  %77 = load double, ptr %11, align 8, !tbaa !9
  %78 = load double, ptr %15, align 8, !tbaa !9
  %79 = load double, ptr %15, align 8, !tbaa !9
  %80 = fmul double %78, %79
  %81 = fneg double %80
  %82 = call double @llvm.fmuladd.f64(double %76, double %77, double %81)
  %83 = call double @sqrt(double noundef %82) #6
  %84 = load double, ptr %6, align 8, !tbaa !9
  %85 = fmul double 2.000000e+00, %84
  %86 = fdiv double %83, %85
  store double %86, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %87 = load double, ptr %11, align 8, !tbaa !9
  %88 = load double, ptr %14, align 8, !tbaa !9
  %89 = fsub double %87, %88
  store double %89, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %90 = load double, ptr %13, align 8, !tbaa !9
  %91 = load double, ptr %17, align 8, !tbaa !9
  %92 = fsub double %90, %91
  store double %92, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %93 = load double, ptr @_ZL2PI, align 8, !tbaa !9
  %94 = load double, ptr %17, align 8, !tbaa !9
  %95 = fmul double %93, %94
  %96 = load double, ptr %17, align 8, !tbaa !9
  %97 = fmul double %95, %96
  %98 = load double, ptr %11, align 8, !tbaa !9
  %99 = load double, ptr %17, align 8, !tbaa !9
  %100 = fneg double %99
  %101 = call double @llvm.fmuladd.f64(double 3.000000e+00, double %98, double %100)
  %102 = fmul double %97, %101
  %103 = fdiv double %102, 3.000000e+00
  %104 = load double, ptr @_ZL2PI, align 8, !tbaa !9
  %105 = load double, ptr %18, align 8, !tbaa !9
  %106 = fmul double %104, %105
  %107 = load double, ptr %18, align 8, !tbaa !9
  %108 = fmul double %106, %107
  %109 = load double, ptr %12, align 8, !tbaa !9
  %110 = load double, ptr %18, align 8, !tbaa !9
  %111 = fneg double %110
  %112 = call double @llvm.fmuladd.f64(double 3.000000e+00, double %109, double %111)
  %113 = fmul double %108, %112
  %114 = fdiv double %113, 3.000000e+00
  %115 = fadd double %103, %114
  store double %115, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %116 = load double, ptr @_ZL2PI, align 8, !tbaa !9
  %117 = fmul double 2.000000e+00, %116
  %118 = load double, ptr %11, align 8, !tbaa !9
  %119 = fmul double %117, %118
  %120 = load double, ptr %17, align 8, !tbaa !9
  %121 = load double, ptr @_ZL2PI, align 8, !tbaa !9
  %122 = fmul double 2.000000e+00, %121
  %123 = load double, ptr %12, align 8, !tbaa !9
  %124 = fmul double %122, %123
  %125 = load double, ptr %18, align 8, !tbaa !9
  %126 = fmul double %124, %125
  %127 = call double @llvm.fmuladd.f64(double %119, double %120, double %126)
  store double %127, ptr %20, align 8, !tbaa !9
  %128 = call { double, double } @_ZSt9make_pairIRdS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %19)
  %129 = getelementptr inbounds { double, double }, ptr %3, i32 0, i32 0
  %130 = extractvalue { double, double } %128, 0
  store double %130, ptr %129, align 8
  %131 = getelementptr inbounds { double, double }, ptr %3, i32 0, i32 1
  %132 = extractvalue { double, double } %128, 1
  store double %132, ptr %131, align 8
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %133

133:                                              ; preds = %34, %33
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %134 = load { double, double }, ptr %3, align 8
  ret { double, double } %134
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIddEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZSt9make_pairIRdS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !10, i64 24}
!12 = !{!"_ZTS6sphere", !13, i64 0, !10, i64 24}
!13 = !{!"_ZTS2p3", !10, i64 0, !10, i64 8, !10, i64 16}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !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.p3 = type { double, double, double }
%"struct.std::pair.34" = type { double, double }

@_ZL2PI = external hidden local_unnamed_addr global double, align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z4signd(double noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_Z3abs2p3(ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK2p3miERKS_(ptr dead_on_unwind noalias writable sret(%struct.p3) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local { double, double } @_Z26sphere_sphere_intersection6sphereS_(ptr noundef nonnull %0, ptr noundef nonnull %1) local_unnamed_addr #4 {
  %3 = alloca %"struct.std::pair.34", align 8
  %4 = alloca %struct.p3, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  call void @_ZNK2p3miERKS_(ptr dead_on_unwind nonnull writable sret(%struct.p3) align 8 %4, ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1)
  %9 = call noundef double @_Z3abs2p3(ptr noundef nonnull %4)
  %10 = getelementptr inbounds i8, ptr %0, i64 24
  %11 = load double, ptr %10, align 8, !tbaa !5
  %12 = fsub double %9, %11
  %13 = getelementptr inbounds i8, ptr %1, i64 24
  %14 = load double, ptr %13, align 8, !tbaa !5
  %15 = fsub double %12, %14
  %16 = call noundef i32 @_Z4signd(double noundef %15)
  %17 = icmp sgt i32 %16, -1
  br i1 %17, label %18, label %19

18:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  store i32 0, ptr %5, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  store i32 0, ptr %6, align 4, !tbaa !11
  call void @_ZNSt4pairIddEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  %.fca.0.load.pre = load double, ptr %3, align 8
  %.fca.1.gep.phi.trans.insert = getelementptr inbounds i8, ptr %3, i64 8
  %.fca.1.load.pre = load double, ptr %.fca.1.gep.phi.trans.insert, align 8
  br label %67

19:                                               ; preds = %2
  %20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %13)
  %21 = load double, ptr %20, align 8, !tbaa !13
  %22 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %13)
  %23 = load double, ptr %22, align 8, !tbaa !13
  %24 = fadd double %21, %23
  %25 = fsub double %24, %9
  %26 = fneg double %23
  %27 = fmul double %23, %26
  %28 = call double @llvm.fmuladd.f64(double %21, double %21, double %27)
  %29 = call double @llvm.fmuladd.f64(double %9, double %9, double %28)
  %30 = fmul double %9, 2.000000e+00
  %31 = fdiv double %29, %30
  %32 = call double @llvm.fmuladd.f64(double %9, double %9, double %27)
  %33 = call double @llvm.fmuladd.f64(double %21, double %21, double %32)
  %34 = fmul double %9, 4.000000e+00
  %35 = fmul double %9, %34
  %36 = fmul double %35, %21
  %37 = fneg double %33
  %38 = fmul double %33, %37
  %39 = call double @llvm.fmuladd.f64(double %36, double %21, double %38)
  %40 = fcmp olt double %39, 0.000000e+00
  br i1 %40, label %cdce.call, label %cdce.end, !prof !14

cdce.call:                                        ; preds = %19
  %41 = call double @sqrt(double noundef %39) #7
  br label %cdce.end

cdce.end:                                         ; preds = %19, %cdce.call
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %42 = load double, ptr @_ZL2PI, align 8, !tbaa !13
  %43 = fsub double %21, %31
  %44 = fsub double %25, %43
  %45 = insertelement <2 x double> poison, double %43, i64 0
  %46 = insertelement <2 x double> %45, double %44, i64 1
  %47 = insertelement <2 x double> poison, double %42, i64 0
  %48 = shufflevector <2 x double> %47, <2 x double> poison, <2 x i32> zeroinitializer
  %49 = fmul <2 x double> %46, %48
  %50 = fmul <2 x double> %46, %49
  %51 = fneg <2 x double> %46
  %52 = insertelement <2 x double> poison, double %21, i64 0
  %53 = insertelement <2 x double> %52, double %23, i64 1
  %54 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %53, <2 x double> <double 3.000000e+00, double 3.000000e+00>, <2 x double> %51)
  %55 = fmul <2 x double> %54, %50
  %56 = fdiv <2 x double> %55, <double 3.000000e+00, double 3.000000e+00>
  %shift = shufflevector <2 x double> %56, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %57 = fadd <2 x double> %56, %shift
  %58 = extractelement <2 x double> %57, i64 0
  store double %58, ptr %7, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %59 = fmul double %42, 2.000000e+00
  %60 = fmul double %21, %59
  %61 = fmul double %23, %59
  %62 = fmul double %44, %61
  %63 = call double @llvm.fmuladd.f64(double %60, double %43, double %62)
  store double %63, ptr %8, align 8, !tbaa !13
  %64 = call { double, double } @_ZSt9make_pairIRdS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %65 = extractvalue { double, double } %64, 0
  %66 = extractvalue { double, double } %64, 1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br label %67

67:                                               ; preds = %cdce.end, %18
  %.fca.1.load = phi double [ %66, %cdce.end ], [ %.fca.1.load.pre, %18 ]
  %.fca.0.load = phi double [ %65, %cdce.end ], [ %.fca.0.load.pre, %18 ]
  %.fca.0.insert = insertvalue { double, double } poison, double %.fca.0.load, 0
  %.fca.1.insert = insertvalue { double, double } %.fca.0.insert, double %.fca.1.load, 1
  ret { double, double } %.fca.1.insert
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIddEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZSt9make_pairIRdS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #5 = { 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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !8, i64 24}
!6 = !{!"_ZTS6sphere", !7, i64 0, !8, i64 24}
!7 = !{!"_ZTS2p3", !8, i64 0, !8, i64 8, !8, i64 16}
!8 = !{!"double", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !9, i64 0}
!13 = !{!8, !8, i64 0}
!14 = !{!"branch_weights", i32 1, i32 1048575}


; Effective O3 passes: BDCEPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,LibCallsShrinkWrapPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,VectorCombinePass