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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2p3C2Eddd(ptr noundef nonnull align 8 dereferenceable(24), double noundef, double noundef, double noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_Z2sq2p3(ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2p3C2ERKS_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK2p3plERKS_(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)) #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI2p3SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6sphereC2E2p3d(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, double noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z25smallest_enclosing_sphereSt6vectorI2p3SaIS0_EE(ptr dead_on_unwind noalias writable sret(%struct.sphere) align 8 %0, ptr noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %struct.p3, align 8
  %7 = alloca i32, align 4
  %8 = alloca %struct.p3, align 8
  %9 = alloca %struct.p3, align 8
  %10 = alloca double, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %struct.p3, align 8
  %15 = alloca %struct.p3, align 8
  %16 = alloca %struct.p3, align 8
  %17 = alloca %struct.p3, align 8
  %18 = alloca %struct.p3, align 8
  %19 = alloca %struct.p3, align 8
  %20 = alloca %struct.p3, align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  %21 = call noundef i64 @_ZNKSt6vectorI2p3SaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #4
  %22 = trunc i64 %21 to i32
  store i32 %22, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #4
  call void @_ZN2p3C2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %6, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %23

23:                                               ; preds = %32, %2
  %24 = load i32, ptr %7, align 4, !tbaa !9
  %25 = load i32, ptr %5, align 4, !tbaa !9
  %26 = icmp slt i32 %24, %25
  br i1 %26, label %28, label %27

27:                                               ; preds = %23
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %35

28:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #4
  %29 = load i32, ptr %7, align 4, !tbaa !9
  %30 = sext i32 %29 to i64
  %31 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI2p3SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %30) #4
  call void @_ZNK2p3plERKS_(ptr dead_on_unwind writable sret(%struct.p3) align 8 %8, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %31)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 %8, i64 24, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #4
  br label %32

32:                                               ; preds = %28
  %33 = load i32, ptr %7, align 4, !tbaa !9
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr %7, align 4, !tbaa !9
  br label %23, !llvm.loop !14

35:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #4
  %36 = load i32, ptr %5, align 4, !tbaa !9
  %37 = sitofp i32 %36 to double
  call void @_ZNK2p3dvEd(ptr dead_on_unwind writable sret(%struct.p3) align 8 %9, ptr noundef nonnull align 8 dereferenceable(24) %6, double noundef %37)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 %9, i64 24, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  store double 1.000000e-01, ptr %10, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 100000, ptr %12, align 4, !tbaa !9
  br label %38

38:                                               ; preds = %64, %35
  %39 = load i32, ptr %12, align 4, !tbaa !9
  %40 = add nsw i32 %39, -1
  store i32 %40, ptr %12, align 4, !tbaa !9
  %41 = icmp ne i32 %39, 0
  br i1 %41, label %42, label %71

42:                                               ; preds = %38
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 1, ptr %13, align 4, !tbaa !9
  br label %43

43:                                               ; preds = %61, %42
  %44 = load i32, ptr %13, align 4, !tbaa !9
  %45 = load i32, ptr %5, align 4, !tbaa !9
  %46 = icmp slt i32 %44, %45
  br i1 %46, label %48, label %47

47:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %64

48:                                               ; preds = %43
  %49 = load i32, ptr %13, align 4, !tbaa !9
  %50 = sext i32 %49 to i64
  %51 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI2p3SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %50) #4
  call void @_ZNK2p3miERKS_(ptr dead_on_unwind writable sret(%struct.p3) align 8 %14, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %51)
  %52 = call noundef double @_Z2sq2p3(ptr noundef %14)
  %53 = load i32, ptr %11, align 4, !tbaa !9
  %54 = sext i32 %53 to i64
  %55 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI2p3SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %54) #4
  call void @_ZNK2p3miERKS_(ptr dead_on_unwind writable sret(%struct.p3) align 8 %15, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %55)
  %56 = call noundef double @_Z2sq2p3(ptr noundef %15)
  %57 = fcmp ogt double %52, %56
  br i1 %57, label %58, label %60

58:                                               ; preds = %48
  %59 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %59, ptr %11, align 4, !tbaa !9
  br label %60

60:                                               ; preds = %58, %48
  br label %61

61:                                               ; preds = %60
  %62 = load i32, ptr %13, align 4, !tbaa !9
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr %13, align 4, !tbaa !9
  br label %43, !llvm.loop !16

64:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #4
  %65 = load i32, ptr %11, align 4, !tbaa !9
  %66 = sext i32 %65 to i64
  %67 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI2p3SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %66) #4
  call void @_ZNK2p3miERKS_(ptr dead_on_unwind writable sret(%struct.p3) align 8 %18, ptr noundef nonnull align 8 dereferenceable(24) %67, ptr noundef nonnull align 8 dereferenceable(24) %6)
  %68 = load double, ptr %10, align 8, !tbaa !12
  call void @_ZNK2p3mlEd(ptr dead_on_unwind writable sret(%struct.p3) align 8 %17, ptr noundef nonnull align 8 dereferenceable(24) %18, double noundef %68)
  call void @_ZNK2p3plERKS_(ptr dead_on_unwind writable sret(%struct.p3) align 8 %16, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %17)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 %16, i64 24, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #4
  %69 = load double, ptr %10, align 8, !tbaa !12
  %70 = fmul double %69, 0x3FEFEF9DB22D0E56
  store double %70, ptr %10, align 8, !tbaa !12
  br label %38, !llvm.loop !17

71:                                               ; preds = %38
  call void @_ZN2p3C2ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %6)
  %72 = load i32, ptr %11, align 4, !tbaa !9
  %73 = sext i32 %72 to i64
  %74 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI2p3SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %73) #4
  call void @_ZNK2p3miERKS_(ptr dead_on_unwind writable sret(%struct.p3) align 8 %20, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %74)
  %75 = call noundef double @_Z3abs2p3(ptr noundef %20)
  call void @_ZN6sphereC2E2p3d(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %19, double noundef %75)
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  ret void
}

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 nounwind willreturn memory(argmem: readwrite) }
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 = !{!"int", !7, i64 0}
!11 = !{i64 0, i64 8, !12, i64 8, i64 8, !12, i64 16, i64 8, !12}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}


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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2p3C2Eddd(ptr noundef nonnull align 8 dereferenceable(24), double noundef, double noundef, double noundef) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2p3C2ERKS_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK2p3plERKS_(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 #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI2p3SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6sphereC2E2p3d(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, double noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z25smallest_enclosing_sphereSt6vectorI2p3SaIS0_EE(ptr dead_on_unwind noalias writable sret(%struct.sphere) align 8 %0, ptr noundef nonnull %1) local_unnamed_addr #2 {
  %3 = alloca %struct.p3, align 8
  %4 = alloca %struct.p3, align 8
  %5 = alloca %struct.p3, align 8
  %6 = alloca %struct.p3, align 8
  %7 = alloca %struct.p3, align 8
  %8 = alloca %struct.p3, align 8
  %9 = alloca %struct.p3, align 8
  %10 = alloca %struct.p3, align 8
  %11 = alloca %struct.p3, align 8
  %12 = alloca %struct.p3, align 8
  %13 = tail call noundef i64 @_ZNKSt6vectorI2p3SaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #4
  %14 = trunc i64 %13 to i32
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #4
  call void @_ZN2p3C2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %3, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %15 = icmp sgt i32 %14, 0
  br i1 %15, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %2
  %wide.trip.count = and i64 %13, 2147483647
  br label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %2
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #4
  %16 = sitofp i32 %14 to double
  call void @_ZNK2p3dvEd(ptr dead_on_unwind nonnull writable sret(%struct.p3) align 8 %5, ptr noundef nonnull align 8 dereferenceable(24) %3, double noundef %16)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %5, i64 24, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #4
  %17 = icmp sgt i32 %14, 1
  br i1 %17, label %.preheader.us.preheader, label %.preheader

.preheader.us.preheader:                          ; preds = %._crit_edge
  %wide.trip.count33 = and i64 %13, 2147483647
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge24.us
  %18 = phi i32 [ %30, %._crit_edge24.us ], [ 99999, %.preheader.us.preheader ]
  %.01725.us = phi double [ %29, %._crit_edge24.us ], [ 1.000000e-01, %.preheader.us.preheader ]
  br label %19

19:                                               ; preds = %.preheader.us, %19
  %indvars.iv30 = phi i64 [ 1, %.preheader.us ], [ %indvars.iv.next31, %19 ]
  %.121.us = phi i32 [ 0, %.preheader.us ], [ %.2.us, %19 ]
  %20 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI2p3SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv30) #4
  call void @_ZNK2p3miERKS_(ptr dead_on_unwind nonnull writable sret(%struct.p3) align 8 %6, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %20)
  %21 = call noundef double @_Z2sq2p3(ptr noundef nonnull %6)
  %22 = sext i32 %.121.us to i64
  %23 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI2p3SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %22) #4
  call void @_ZNK2p3miERKS_(ptr dead_on_unwind nonnull writable sret(%struct.p3) align 8 %7, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %23)
  %24 = call noundef double @_Z2sq2p3(ptr noundef nonnull %7)
  %25 = fcmp ogt double %21, %24
  %26 = trunc nuw nsw i64 %indvars.iv30 to i32
  %.2.us = select i1 %25, i32 %26, i32 %.121.us
  %indvars.iv.next31 = add nuw nsw i64 %indvars.iv30, 1
  %exitcond34.not = icmp eq i64 %indvars.iv.next31, %wide.trip.count33
  br i1 %exitcond34.not, label %._crit_edge24.us, label %19, !llvm.loop !10

._crit_edge24.us:                                 ; preds = %19
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #4
  %27 = sext i32 %.2.us to i64
  %28 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI2p3SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %27) #4
  call void @_ZNK2p3miERKS_(ptr dead_on_unwind nonnull writable sret(%struct.p3) align 8 %10, ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 8 dereferenceable(24) %3)
  call void @_ZNK2p3mlEd(ptr dead_on_unwind nonnull writable sret(%struct.p3) align 8 %9, ptr noundef nonnull align 8 dereferenceable(24) %10, double noundef %.01725.us)
  call void @_ZNK2p3plERKS_(ptr dead_on_unwind nonnull writable sret(%struct.p3) align 8 %8, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %9)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %8, i64 24, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #4
  %29 = fmul double %.01725.us, 0x3FEFEF9DB22D0E56
  %30 = add nsw i32 %18, -1
  %.not.us = icmp eq i32 %18, 0
  br i1 %.not.us, label %.split27.us.loopexit, label %.preheader.us, !llvm.loop !12

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #4
  %31 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI2p3SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #4
  call void @_ZNK2p3plERKS_(ptr dead_on_unwind nonnull writable sret(%struct.p3) align 8 %4, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %31)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %4, i64 24, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !13

.preheader:                                       ; preds = %._crit_edge, %.preheader
  %32 = phi i32 [ %35, %.preheader ], [ 99999, %._crit_edge ]
  %.01725 = phi double [ %34, %.preheader ], [ 1.000000e-01, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #4
  %33 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI2p3SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0) #4
  call void @_ZNK2p3miERKS_(ptr dead_on_unwind nonnull writable sret(%struct.p3) align 8 %10, ptr noundef nonnull align 8 dereferenceable(24) %33, ptr noundef nonnull align 8 dereferenceable(24) %3)
  call void @_ZNK2p3mlEd(ptr dead_on_unwind nonnull writable sret(%struct.p3) align 8 %9, ptr noundef nonnull align 8 dereferenceable(24) %10, double noundef %.01725)
  call void @_ZNK2p3plERKS_(ptr dead_on_unwind nonnull writable sret(%struct.p3) align 8 %8, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %9)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %8, i64 24, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #4
  %34 = fmul double %.01725, 0x3FEFEF9DB22D0E56
  %35 = add nsw i32 %32, -1
  %.not = icmp eq i32 %32, 0
  br i1 %.not, label %.split27.us, label %.preheader, !llvm.loop !12

.split27.us.loopexit:                             ; preds = %._crit_edge24.us
  %36 = sext i32 %.2.us to i64
  br label %.split27.us

.split27.us:                                      ; preds = %.preheader, %.split27.us.loopexit
  %.us-phi = phi i64 [ %36, %.split27.us.loopexit ], [ 0, %.preheader ]
  call void @_ZN2p3C2ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %3)
  %37 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI2p3SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.us-phi) #4
  call void @_ZNK2p3miERKS_(ptr dead_on_unwind nonnull writable sret(%struct.p3) align 8 %12, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %37)
  %38 = call noundef double @_Z3abs2p3(ptr noundef nonnull %12)
  call void @_ZN6sphereC2E2p3d(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull %11, double noundef %38)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #4
  ret void
}

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 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 nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{i64 0, i64 8, !6, i64 8, i64 8, !6, i64 16, i64 8, !6}
!6 = !{!7, !7, i64 0}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = distinct !{!13, !11}


; Effective O3 passes: GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass