; LLVM IR from tangjz/acm-icpc :: codeforces/gym/100825H.ll (Z24DistanceOfPointToSegment5PointS_S_)

; 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 { double, double }

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

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK5Point4unitEv(ptr noundef nonnull align 8 dereferenceable(16)) #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 { double, double } @_ZNK5PointplERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZNK5Point5transEv(ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZNK5PointmlERKd(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK5Point3detERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_Z24DistanceOfPointToSegment5PointS_S_(double %0, double %1, double %2, double %3, double %4, double %5) #2 {
  %7 = alloca %struct.Point, align 8
  %8 = alloca %struct.Point, align 8
  %9 = alloca %struct.Point, align 8
  %10 = alloca %struct.Point, align 8
  %11 = alloca %struct.Point, align 8
  %12 = alloca %struct.Point, align 8
  %13 = alloca %struct.Point, align 8
  %14 = alloca %struct.Point, align 8
  %15 = alloca double, align 8
  %16 = alloca %struct.Point, align 8
  %17 = alloca i8, align 1
  %18 = alloca %struct.Point, align 8
  %19 = alloca %struct.Point, align 8
  %20 = alloca i8, align 1
  %21 = alloca %struct.Point, align 8
  %22 = alloca %struct.Point, align 8
  %23 = alloca %struct.Point, align 8
  %24 = alloca %struct.Point, align 8
  %25 = alloca %struct.Point, align 8
  %26 = alloca %struct.Point, align 8
  %27 = alloca %struct.Point, align 8
  %28 = getelementptr inbounds { double, double }, ptr %7, i32 0, i32 0
  store double %0, ptr %28, align 8
  %29 = getelementptr inbounds { double, double }, ptr %7, i32 0, i32 1
  store double %1, ptr %29, align 8
  %30 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 0
  store double %2, ptr %30, align 8
  %31 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 1
  store double %3, ptr %31, align 8
  %32 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 0
  store double %4, ptr %32, align 8
  %33 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 1
  store double %5, ptr %33, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #4
  %34 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %8)
  %35 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 0
  %36 = extractvalue { double, double } %34, 0
  store double %36, ptr %35, align 8
  %37 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 1
  %38 = extractvalue { double, double } %34, 1
  store double %38, ptr %37, align 8
  %39 = call { double, double } @_ZNK5Point4unitEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
  %40 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 0
  %41 = extractvalue { double, double } %39, 0
  store double %41, ptr %40, align 8
  %42 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 1
  %43 = extractvalue { double, double } %39, 1
  store double %43, ptr %42, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #4
  %44 = call { double, double } @_ZNK5Point5transEv(ptr noundef nonnull align 8 dereferenceable(16) %10)
  %45 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 0
  %46 = extractvalue { double, double } %44, 0
  store double %46, ptr %45, align 8
  %47 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 1
  %48 = extractvalue { double, double } %44, 1
  store double %48, ptr %47, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #4
  %49 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %8)
  %50 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 0
  %51 = extractvalue { double, double } %49, 0
  store double %51, ptr %50, align 8
  %52 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 1
  %53 = extractvalue { double, double } %49, 1
  store double %53, ptr %52, align 8
  %54 = call noundef double @_ZNK5Point3detERKS_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %16)
  store double %54, ptr %15, align 8, !tbaa !5
  %55 = call { double, double } @_ZNK5PointmlERKd(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(8) %15)
  %56 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 0
  %57 = extractvalue { double, double } %55, 0
  store double %57, ptr %56, align 8
  %58 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 1
  %59 = extractvalue { double, double } %55, 1
  store double %59, ptr %58, align 8
  %60 = call { double, double } @_ZNK5PointplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %13)
  %61 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 0
  %62 = extractvalue { double, double } %60, 0
  store double %62, ptr %61, align 8
  %63 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 1
  %64 = extractvalue { double, double } %60, 1
  store double %64, ptr %63, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #4
  %65 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %8)
  %66 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %67 = extractvalue { double, double } %65, 0
  store double %67, ptr %66, align 8
  %68 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %69 = extractvalue { double, double } %65, 1
  store double %69, ptr %68, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #4
  %70 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %8)
  %71 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %72 = extractvalue { double, double } %70, 0
  store double %72, ptr %71, align 8
  %73 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %74 = extractvalue { double, double } %70, 1
  store double %74, ptr %73, align 8
  %75 = call noundef double @_ZNK5Point3dotERKS_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %19)
  %76 = call noundef i32 @_Z3sgnd(double noundef %75)
  %77 = icmp sge i32 %76, 0
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #4
  %78 = zext i1 %77 to i8
  store i8 %78, ptr %17, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #4
  %79 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %9)
  %80 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 0
  %81 = extractvalue { double, double } %79, 0
  store double %81, ptr %80, align 8
  %82 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 1
  %83 = extractvalue { double, double } %79, 1
  store double %83, ptr %82, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #4
  %84 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %9)
  %85 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %86 = extractvalue { double, double } %84, 0
  store double %86, ptr %85, align 8
  %87 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %88 = extractvalue { double, double } %84, 1
  store double %88, ptr %87, align 8
  %89 = call noundef double @_ZNK5Point3dotERKS_(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(16) %22)
  %90 = call noundef i32 @_Z3sgnd(double noundef %89)
  %91 = icmp sge i32 %90, 0
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #4
  %92 = zext i1 %91 to i8
  store i8 %92, ptr %20, align 1, !tbaa !9
  %93 = load i8, ptr %17, align 1, !tbaa !9, !range !11, !noundef !12
  %94 = trunc i8 %93 to i1
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #4
  br i1 %94, label %95, label %116

95:                                               ; preds = %6
  %96 = load i8, ptr %20, align 1, !tbaa !9, !range !11, !noundef !12
  %97 = trunc i8 %96 to i1
  br i1 %97, label %98, label %116

98:                                               ; preds = %95
  %99 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %8)
  %100 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %101 = extractvalue { double, double } %99, 0
  store double %101, ptr %100, align 8
  %102 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  %103 = extractvalue { double, double } %99, 1
  store double %103, ptr %102, align 8
  %104 = call { double, double } @_ZNK5Point4unitEv(ptr noundef nonnull align 8 dereferenceable(16) %24)
  %105 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 0
  %106 = extractvalue { double, double } %104, 0
  store double %106, ptr %105, align 8
  %107 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 1
  %108 = extractvalue { double, double } %104, 1
  store double %108, ptr %107, align 8
  %109 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %8)
  %110 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %111 = extractvalue { double, double } %109, 0
  store double %111, ptr %110, align 8
  %112 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %113 = extractvalue { double, double } %109, 1
  store double %113, ptr %112, align 8
  %114 = call noundef double @_ZNK5Point3detERKS_(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(16) %25)
  %115 = call double @llvm.fabs.f64(double %114)
  br label %135

116:                                              ; preds = %95, %6
  %117 = load i8, ptr %17, align 1, !tbaa !9, !range !11, !noundef !12
  %118 = trunc i8 %117 to i1
  br i1 %118, label %119, label %126

119:                                              ; preds = %116
  %120 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %9)
  %121 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %122 = extractvalue { double, double } %120, 0
  store double %122, ptr %121, align 8
  %123 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %124 = extractvalue { double, double } %120, 1
  store double %124, ptr %123, align 8
  %125 = call noundef double @_ZNK5Point4modeEv(ptr noundef nonnull align 8 dereferenceable(16) %26)
  br label %133

126:                                              ; preds = %116
  %127 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %8)
  %128 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %129 = extractvalue { double, double } %127, 0
  store double %129, ptr %128, align 8
  %130 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  %131 = extractvalue { double, double } %127, 1
  store double %131, ptr %130, align 8
  %132 = call noundef double @_ZNK5Point4modeEv(ptr noundef nonnull align 8 dereferenceable(16) %27)
  br label %133

133:                                              ; preds = %126, %119
  %134 = phi double [ %125, %119 ], [ %132, %126 ]
  br label %135

135:                                              ; preds = %133, %98
  %136 = phi double [ %115, %98 ], [ %134, %133 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #4
  ret double %136
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK5Point3dotERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK5Point4modeEv(ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

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 willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}


; 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 { double, double }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3sgnd(double noundef) local_unnamed_addr #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 { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK5Point4unitEv(ptr noundef nonnull align 8 dereferenceable(16)) 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 { double, double } @_ZNK5PointplERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZNK5Point5transEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZNK5PointmlERKd(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK5Point3detERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_Z24DistanceOfPointToSegment5PointS_S_(double %0, double %1, double %2, double %3, double %4, double %5) local_unnamed_addr #2 {
  %7 = alloca %struct.Point, align 8
  %8 = alloca %struct.Point, align 8
  %9 = alloca %struct.Point, align 8
  %10 = alloca %struct.Point, align 8
  %11 = alloca %struct.Point, align 8
  %12 = alloca %struct.Point, align 8
  %13 = alloca %struct.Point, align 8
  %14 = alloca %struct.Point, align 8
  %15 = alloca double, align 8
  %16 = alloca %struct.Point, align 8
  %17 = alloca %struct.Point, align 8
  %18 = alloca %struct.Point, align 8
  %19 = alloca %struct.Point, align 8
  %20 = alloca %struct.Point, align 8
  %21 = alloca %struct.Point, align 8
  %22 = alloca %struct.Point, align 8
  %23 = alloca %struct.Point, align 8
  %24 = alloca %struct.Point, align 8
  %25 = alloca %struct.Point, align 8
  store double %0, ptr %7, align 8
  %26 = getelementptr inbounds i8, ptr %7, i64 8
  store double %1, ptr %26, align 8
  store double %2, ptr %8, align 8
  %27 = getelementptr inbounds i8, ptr %8, i64 8
  store double %3, ptr %27, align 8
  store double %4, ptr %9, align 8
  %28 = getelementptr inbounds i8, ptr %9, i64 8
  store double %5, ptr %28, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #4
  %29 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %8)
  %30 = extractvalue { double, double } %29, 0
  store double %30, ptr %11, align 8
  %31 = getelementptr inbounds i8, ptr %11, i64 8
  %32 = extractvalue { double, double } %29, 1
  store double %32, ptr %31, align 8
  %33 = call { double, double } @_ZNK5Point4unitEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
  %34 = extractvalue { double, double } %33, 0
  store double %34, ptr %10, align 8
  %35 = getelementptr inbounds i8, ptr %10, i64 8
  %36 = extractvalue { double, double } %33, 1
  store double %36, ptr %35, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #4
  %37 = call { double, double } @_ZNK5Point5transEv(ptr noundef nonnull align 8 dereferenceable(16) %10)
  %38 = extractvalue { double, double } %37, 0
  store double %38, ptr %14, align 8
  %39 = getelementptr inbounds i8, ptr %14, i64 8
  %40 = extractvalue { double, double } %37, 1
  store double %40, ptr %39, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #4
  %41 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %8)
  %42 = extractvalue { double, double } %41, 0
  store double %42, ptr %16, align 8
  %43 = getelementptr inbounds i8, ptr %16, i64 8
  %44 = extractvalue { double, double } %41, 1
  store double %44, ptr %43, align 8
  %45 = call noundef double @_ZNK5Point3detERKS_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %16)
  store double %45, ptr %15, align 8, !tbaa !5
  %46 = call { double, double } @_ZNK5PointmlERKd(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(8) %15)
  %47 = extractvalue { double, double } %46, 0
  store double %47, ptr %13, align 8
  %48 = getelementptr inbounds i8, ptr %13, i64 8
  %49 = extractvalue { double, double } %46, 1
  store double %49, ptr %48, align 8
  %50 = call { double, double } @_ZNK5PointplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %13)
  %51 = extractvalue { double, double } %50, 0
  store double %51, ptr %12, align 8
  %52 = getelementptr inbounds i8, ptr %12, i64 8
  %53 = extractvalue { double, double } %50, 1
  store double %53, ptr %52, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #4
  %54 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %8)
  %55 = extractvalue { double, double } %54, 0
  store double %55, ptr %17, align 8
  %56 = getelementptr inbounds i8, ptr %17, i64 8
  %57 = extractvalue { double, double } %54, 1
  store double %57, ptr %56, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #4
  %58 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %8)
  %59 = extractvalue { double, double } %58, 0
  store double %59, ptr %18, align 8
  %60 = getelementptr inbounds i8, ptr %18, i64 8
  %61 = extractvalue { double, double } %58, 1
  store double %61, ptr %60, align 8
  %62 = call noundef double @_ZNK5Point3dotERKS_(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(16) %18)
  %63 = call noundef i32 @_Z3sgnd(double noundef %62)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #4
  %64 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %9)
  %65 = extractvalue { double, double } %64, 0
  store double %65, ptr %19, align 8
  %66 = getelementptr inbounds i8, ptr %19, i64 8
  %67 = extractvalue { double, double } %64, 1
  store double %67, ptr %66, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #4
  %68 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %9)
  %69 = extractvalue { double, double } %68, 0
  store double %69, ptr %20, align 8
  %70 = getelementptr inbounds i8, ptr %20, i64 8
  %71 = extractvalue { double, double } %68, 1
  store double %71, ptr %70, align 8
  %72 = call noundef double @_ZNK5Point3dotERKS_(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) %20)
  %73 = call noundef i32 @_Z3sgnd(double noundef %72)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %23) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %24) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %25) #4
  %74 = or i32 %73, %63
  %or.cond = icmp sgt i32 %74, -1
  br i1 %or.cond, label %75, label %90

75:                                               ; preds = %6
  %76 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %8)
  %77 = extractvalue { double, double } %76, 0
  store double %77, ptr %22, align 8
  %78 = getelementptr inbounds i8, ptr %22, i64 8
  %79 = extractvalue { double, double } %76, 1
  store double %79, ptr %78, align 8
  %80 = call { double, double } @_ZNK5Point4unitEv(ptr noundef nonnull align 8 dereferenceable(16) %22)
  %81 = extractvalue { double, double } %80, 0
  store double %81, ptr %21, align 8
  %82 = getelementptr inbounds i8, ptr %21, i64 8
  %83 = extractvalue { double, double } %80, 1
  store double %83, ptr %82, align 8
  %84 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %8)
  %85 = extractvalue { double, double } %84, 0
  store double %85, ptr %23, align 8
  %86 = getelementptr inbounds i8, ptr %23, i64 8
  %87 = extractvalue { double, double } %84, 1
  store double %87, ptr %86, align 8
  %88 = call noundef double @_ZNK5Point3detERKS_(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(16) %23)
  %89 = call double @llvm.fabs.f64(double %88)
  br label %104

90:                                               ; preds = %6
  %91 = icmp sgt i32 %63, -1
  br i1 %91, label %92, label %98

92:                                               ; preds = %90
  %93 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %9)
  %94 = extractvalue { double, double } %93, 0
  store double %94, ptr %24, align 8
  %95 = getelementptr inbounds i8, ptr %24, i64 8
  %96 = extractvalue { double, double } %93, 1
  store double %96, ptr %95, align 8
  %97 = call noundef double @_ZNK5Point4modeEv(ptr noundef nonnull align 8 dereferenceable(16) %24)
  br label %104

98:                                               ; preds = %90
  %99 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %8)
  %100 = extractvalue { double, double } %99, 0
  store double %100, ptr %25, align 8
  %101 = getelementptr inbounds i8, ptr %25, i64 8
  %102 = extractvalue { double, double } %99, 1
  store double %102, ptr %101, align 8
  %103 = call noundef double @_ZNK5Point4modeEv(ptr noundef nonnull align 8 dereferenceable(16) %25)
  br label %104

104:                                              ; preds = %92, %98, %75
  %105 = phi double [ %89, %75 ], [ %97, %92 ], [ %103, %98 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #4
  ret double %105
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK5Point3dotERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK5Point4modeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

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 willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass