; LLVM IR from tangjz/acm-icpc :: codeforces/complete/89D.ll (Z5solvev)

; 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.Point = type { i32, i32, i32 }

@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() #0 {
  %1 = alloca double, align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %struct.Point, align 4
  %10 = alloca %struct.Point, align 4
  %11 = alloca %struct.Point, align 4
  %12 = alloca %struct.Point, align 4
  %13 = alloca %struct.Point, align 4
  %14 = alloca { i64, i32 }, align 8
  %15 = alloca double, align 8
  %16 = alloca %struct.Point, align 4
  %17 = alloca { i64, i32 }, align 8
  %18 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #7
  store double 0x412E848400000000, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #7
  call void @_ZN5Point4readEv(ptr noundef nonnull align 4 dereferenceable(12) %9)
  call void @_ZN5Point4readEv(ptr noundef nonnull align 4 dereferenceable(12) %10)
  %19 = call noundef i32 @_ZNK5Point3dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %10)
  %20 = sext i32 %19 to i64
  store i64 %20, ptr %2, align 8, !tbaa !9
  %21 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %7, ptr noundef %5)
  br label %22

22:                                               ; preds = %107, %0
  %23 = load i32, ptr %5, align 4, !tbaa !11
  %24 = add nsw i32 %23, -1
  store i32 %24, ptr %5, align 4, !tbaa !11
  %25 = icmp ne i32 %23, 0
  br i1 %25, label %26, label %108

26:                                               ; preds = %22
  call void @_ZN5Point4readEv(ptr noundef nonnull align 4 dereferenceable(12) %11)
  %27 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %8, ptr noundef %6)
  call void @llvm.lifetime.start.p0(i64 12, ptr %13) #7
  %28 = call { i64, i32 } @_ZNK5PointmiERKS_(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %9)
  store { i64, i32 } %28, ptr %14, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 8 %14, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 %13, i64 12, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #7
  %29 = call noundef i32 @_ZNK5Point3dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %11)
  %30 = sext i32 %29 to i64
  store i64 %30, ptr %3, align 8, !tbaa !9
  %31 = load i64, ptr %3, align 8, !tbaa !9
  %32 = icmp sgt i64 %31, 0
  br i1 %32, label %33, label %66

33:                                               ; preds = %26
  %34 = load i32, ptr %7, align 4, !tbaa !11
  %35 = load i32, ptr %8, align 4, !tbaa !11
  %36 = add nsw i32 %34, %35
  %37 = load i32, ptr %7, align 4, !tbaa !11
  %38 = load i32, ptr %8, align 4, !tbaa !11
  %39 = add nsw i32 %37, %38
  %40 = mul nsw i32 %36, %39
  %41 = call noundef i32 @_ZNK5Point3dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %11)
  %42 = sub nsw i32 %40, %41
  %43 = sext i32 %42 to i64
  %44 = load i64, ptr %2, align 8, !tbaa !9
  %45 = mul nsw i64 %43, %44
  %46 = load i64, ptr %3, align 8, !tbaa !9
  %47 = load i64, ptr %3, align 8, !tbaa !9
  %48 = mul nsw i64 %46, %47
  %49 = add nsw i64 %45, %48
  store i64 %49, ptr %4, align 8, !tbaa !9
  %50 = load i64, ptr %4, align 8, !tbaa !9
  %51 = icmp sge i64 %50, 0
  br i1 %51, label %52, label %65

52:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %53 = load i64, ptr %3, align 8, !tbaa !9
  %54 = sitofp i64 %53 to x86_fp80
  %55 = load i64, ptr %4, align 8, !tbaa !9
  %56 = sitofp i64 %55 to x86_fp80
  %57 = call x86_fp80 @sqrtl(x86_fp80 noundef %56) #7
  %58 = fsub x86_fp80 %54, %57
  %59 = load i64, ptr %2, align 8, !tbaa !9
  %60 = sitofp i64 %59 to x86_fp80
  %61 = fdiv x86_fp80 %58, %60
  %62 = fptrunc x86_fp80 %61 to double
  store double %62, ptr %15, align 8, !tbaa !5
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %15)
  %64 = load double, ptr %63, align 8, !tbaa !5
  store double %64, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %65

65:                                               ; preds = %52, %33
  br label %66

66:                                               ; preds = %65, %26
  br label %67

67:                                               ; preds = %106, %66
  %68 = load i32, ptr %6, align 4, !tbaa !11
  %69 = add nsw i32 %68, -1
  store i32 %69, ptr %6, align 4, !tbaa !11
  %70 = icmp ne i32 %68, 0
  br i1 %70, label %71, label %107

71:                                               ; preds = %67
  call void @_ZN5Point4readEv(ptr noundef nonnull align 4 dereferenceable(12) %12)
  call void @llvm.lifetime.start.p0(i64 12, ptr %16) #7
  %72 = call { i64, i32 } @_ZNK5PointplERKS_(ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(12) %11)
  store { i64, i32 } %72, ptr %17, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 8 %17, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %16, i64 12, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #7
  %73 = call noundef i32 @_ZNK5Point3dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %12)
  %74 = sext i32 %73 to i64
  store i64 %74, ptr %3, align 8, !tbaa !9
  %75 = load i64, ptr %3, align 8, !tbaa !9
  %76 = icmp sgt i64 %75, 0
  br i1 %76, label %77, label %106

77:                                               ; preds = %71
  %78 = load i32, ptr %7, align 4, !tbaa !11
  %79 = load i32, ptr %7, align 4, !tbaa !11
  %80 = mul nsw i32 %78, %79
  %81 = call noundef i32 @_ZNK5Point3dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(12) %12)
  %82 = sub nsw i32 %80, %81
  %83 = sext i32 %82 to i64
  %84 = load i64, ptr %2, align 8, !tbaa !9
  %85 = mul nsw i64 %83, %84
  %86 = load i64, ptr %3, align 8, !tbaa !9
  %87 = load i64, ptr %3, align 8, !tbaa !9
  %88 = mul nsw i64 %86, %87
  %89 = add nsw i64 %85, %88
  store i64 %89, ptr %4, align 8, !tbaa !9
  %90 = load i64, ptr %4, align 8, !tbaa !9
  %91 = icmp sge i64 %90, 0
  br i1 %91, label %92, label %105

92:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %93 = load i64, ptr %3, align 8, !tbaa !9
  %94 = sitofp i64 %93 to x86_fp80
  %95 = load i64, ptr %4, align 8, !tbaa !9
  %96 = sitofp i64 %95 to x86_fp80
  %97 = call x86_fp80 @sqrtl(x86_fp80 noundef %96) #7
  %98 = fsub x86_fp80 %94, %97
  %99 = load i64, ptr %2, align 8, !tbaa !9
  %100 = sitofp i64 %99 to x86_fp80
  %101 = fdiv x86_fp80 %98, %100
  %102 = fptrunc x86_fp80 %101 to double
  store double %102, ptr %18, align 8, !tbaa !5
  %103 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %18)
  %104 = load double, ptr %103, align 8, !tbaa !5
  store double %104, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br label %105

105:                                              ; preds = %92, %77
  br label %106

106:                                              ; preds = %105, %71
  br label %67, !llvm.loop !14

107:                                              ; preds = %67
  br label %22, !llvm.loop !16

108:                                              ; preds = %22
  %109 = load double, ptr %1, align 8, !tbaa !5
  %110 = fcmp olt double %109, 0x412E848200000000
  br i1 %110, label %111, label %113

111:                                              ; preds = %108
  %112 = load double, ptr %1, align 8, !tbaa !5
  br label %114

113:                                              ; preds = %108
  br label %114

114:                                              ; preds = %113, %111
  %115 = phi double [ %112, %111 ], [ -1.000000e+00, %113 ]
  %116 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %115)
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #7
  ret void
}

; 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 void @_ZN5Point4readEv(ptr noundef nonnull align 4 dereferenceable(12)) #0 align 2

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

declare i32 @__isoc99_scanf(ptr noundef, ...) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { i64, i32 } @_ZNK5PointmiERKS_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #2 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) #4

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

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

; Function Attrs: nounwind
declare x86_fp80 @sqrtl(x86_fp80 noundef) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { i64, i32 } @_ZNK5PointplERKS_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #2 align 2

declare i32 @printf(ptr noundef, ...) #3

attributes #0 = { 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 #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 = { "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 nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #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, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{i64 0, i64 4, !11, i64 4, i64 4, !11, i64 8, i64 4, !11}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !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.Point = type { i32, i32, i32 }

@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() local_unnamed_addr #0 {
  %1 = alloca double, align 8
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %struct.Point, align 4
  %7 = alloca %struct.Point, align 4
  %8 = alloca %struct.Point, align 8
  %9 = alloca %struct.Point, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  store double 0x412E848400000000, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #6
  call void @_ZN5Point4readEv(ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @_ZN5Point4readEv(ptr noundef nonnull align 4 dereferenceable(12) %7)
  %12 = call noundef i32 @_ZNK5Point3dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(12) %7)
  %13 = sext i32 %12 to i64
  %14 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %4, ptr noundef nonnull %2)
  %15 = load i32, ptr %2, align 4, !tbaa !9
  %16 = add nsw i32 %15, -1
  store i32 %16, ptr %2, align 4, !tbaa !9
  %.not29 = icmp eq i32 %15, 0
  br i1 %.not29, label %._crit_edge, label %.lr.ph30

.lr.ph30:                                         ; preds = %0
  %.sroa.47.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  %17 = sitofp i32 %12 to x86_fp80
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 8
  br label %20

.loopexit:                                        ; preds = %71, %46
  %18 = load i32, ptr %2, align 4, !tbaa !9
  %19 = add nsw i32 %18, -1
  store i32 %19, ptr %2, align 4, !tbaa !9
  %.not = icmp eq i32 %18, 0
  br i1 %.not, label %._crit_edge.loopexit, label %20, !llvm.loop !11

20:                                               ; preds = %.lr.ph30, %.loopexit
  call void @_ZN5Point4readEv(ptr noundef nonnull align 4 dereferenceable(12) %8)
  %21 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %5, ptr noundef nonnull %3)
  %22 = call { i64, i32 } @_ZNK5PointmiERKS_(ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(12) %6)
  %.fca.0.extract2 = extractvalue { i64, i32 } %22, 0
  %.fca.1.extract3 = extractvalue { i64, i32 } %22, 1
  store i64 %.fca.0.extract2, ptr %8, align 8
  store i32 %.fca.1.extract3, ptr %.sroa.47.0..sroa_idx, align 8, !tbaa !9
  %23 = call noundef i32 @_ZNK5Point3dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(12) %8)
  %24 = sext i32 %23 to i64
  %25 = icmp sgt i32 %23, 0
  br i1 %25, label %26, label %46

26:                                               ; preds = %20
  %27 = load i32, ptr %4, align 4, !tbaa !9
  %28 = load i32, ptr %5, align 4, !tbaa !9
  %29 = add nsw i32 %28, %27
  %30 = mul nsw i32 %29, %29
  %31 = call noundef i32 @_ZNK5Point3dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(12) %8)
  %32 = sub nsw i32 %30, %31
  %33 = sext i32 %32 to i64
  %34 = mul nsw i64 %33, %13
  %35 = mul nuw nsw i64 %24, %24
  %36 = add nsw i64 %34, %35
  %37 = icmp sgt i64 %36, -1
  br i1 %37, label %38, label %46

38:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %39 = uitofp nneg i64 %24 to x86_fp80
  %40 = uitofp nneg i64 %36 to x86_fp80
  %sqrt = call x86_fp80 @llvm.sqrt.f80(x86_fp80 %40)
  %41 = fsub x86_fp80 %39, %sqrt
  %42 = fdiv x86_fp80 %41, %17
  %43 = fptrunc x86_fp80 %42 to double
  store double %43, ptr %10, align 8, !tbaa !5
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %45 = load double, ptr %44, align 8, !tbaa !5
  store double %45, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  br label %46

46:                                               ; preds = %26, %38, %20
  %47 = load i32, ptr %3, align 4, !tbaa !9
  %48 = add nsw i32 %47, -1
  store i32 %48, ptr %3, align 4, !tbaa !9
  %.not2628 = icmp eq i32 %47, 0
  br i1 %.not2628, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %46, %71
  call void @_ZN5Point4readEv(ptr noundef nonnull align 4 dereferenceable(12) %9)
  %49 = call { i64, i32 } @_ZNK5PointplERKS_(ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %8)
  %.fca.0.extract = extractvalue { i64, i32 } %49, 0
  %.fca.1.extract = extractvalue { i64, i32 } %49, 1
  store i64 %.fca.0.extract, ptr %9, align 8
  store i32 %.fca.1.extract, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !9
  %50 = call noundef i32 @_ZNK5Point3dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(12) %9)
  %51 = sext i32 %50 to i64
  %52 = icmp sgt i32 %50, 0
  br i1 %52, label %53, label %71

53:                                               ; preds = %.lr.ph
  %54 = load i32, ptr %4, align 4, !tbaa !9
  %55 = mul nsw i32 %54, %54
  %56 = call noundef i32 @_ZNK5Point3dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %9)
  %57 = sub nsw i32 %55, %56
  %58 = sext i32 %57 to i64
  %59 = mul nsw i64 %58, %13
  %60 = mul nuw nsw i64 %51, %51
  %61 = add nsw i64 %59, %60
  %62 = icmp sgt i64 %61, -1
  br i1 %62, label %63, label %71

63:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %64 = uitofp nneg i64 %51 to x86_fp80
  %65 = uitofp nneg i64 %61 to x86_fp80
  %sqrt27 = call x86_fp80 @llvm.sqrt.f80(x86_fp80 %65)
  %66 = fsub x86_fp80 %64, %sqrt27
  %67 = fdiv x86_fp80 %66, %17
  %68 = fptrunc x86_fp80 %67 to double
  store double %68, ptr %11, align 8, !tbaa !5
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %70 = load double, ptr %69, align 8, !tbaa !5
  store double %70, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  br label %71

71:                                               ; preds = %53, %63, %.lr.ph
  %72 = load i32, ptr %3, align 4, !tbaa !9
  %73 = add nsw i32 %72, -1
  store i32 %73, ptr %3, align 4, !tbaa !9
  %.not26 = icmp eq i32 %72, 0
  br i1 %.not26, label %.loopexit, label %.lr.ph, !llvm.loop !13

._crit_edge.loopexit:                             ; preds = %.loopexit
  %.pre = load double, ptr %1, align 8
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %0
  %74 = phi double [ %.pre, %._crit_edge.loopexit ], [ 0x412E848400000000, %0 ]
  %75 = fcmp olt double %74, 0x412E848200000000
  %76 = select i1 %75, double %74, double -1.000000e+00
  %77 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %76)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  ret void
}

; 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 uwtable
declare dso_local void @_ZN5Point4readEv(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #0 align 2

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

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { i64, i32 } @_ZNK5PointmiERKS_(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: 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 #4

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare x86_fp80 @llvm.sqrt.f80(x86_fp80) #5

attributes #0 = { 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 #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 = { nofree 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 #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass