; LLVM IR from MtSaka/library :: test/aoj/CGL/CGL_1_A.test.ll (ZN8geometry10crosspointENS_6circleES0_)

; 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.geometry::point" = type { x86_fp80, x86_fp80 }
%"struct.geometry::circle" = type { %"struct.geometry::point", x86_fp80 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<geometry::point, std::allocator<geometry::point>>::_Vector_impl" }
%"struct.std::_Vector_base<geometry::point, std::allocator<geometry::point>>::_Vector_impl" = type { %"struct.std::_Vector_base<geometry::point, std::allocator<geometry::point>>::_Vector_impl_data" }
%"struct.std::_Vector_base<geometry::point, std::allocator<geometry::point>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8geometry5pointmiERKS0_(ptr dead_on_unwind noalias writable sret(%"struct.geometry::point") align 16, ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8geometry5pointplERKS0_(ptr dead_on_unwind noalias writable sret(%"struct.geometry::point") align 16, ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) #3 align 2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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: mustprogress nounwind uwtable
declare dso_local noundef x86_fp80 @_ZNK8geometry5point4normEv(ptr noundef nonnull align 16 dereferenceable(32)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8geometry5pointmlERKe(ptr dead_on_unwind noalias writable sret(%"struct.geometry::point") align 16, ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(16)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef x86_fp80 @_ZNK8geometry5point3absEv(ptr noundef nonnull align 16 dereferenceable(32)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef x86_fp80 @_ZSt4sqrte(x86_fp80 noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef x86_fp80 @_ZN8geometry4distENS_6circleES0_(ptr noundef byval(%"struct.geometry::circle") align 16, ptr noundef byval(%"struct.geometry::circle") align 16) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8geometry10crosspointENS_6circleES0_(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, ptr noundef byval(%"struct.geometry::circle") align 16 %1, ptr noundef byval(%"struct.geometry::circle") align 16 %2) #3 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca i1, align 1
  %6 = alloca %"struct.geometry::circle", align 16
  %7 = alloca %"struct.geometry::circle", align 16
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"struct.geometry::point", align 16
  %12 = alloca x86_fp80, align 16
  %13 = alloca x86_fp80, align 16
  %14 = alloca %"struct.geometry::point", align 16
  %15 = alloca %"struct.geometry::point", align 16
  %16 = alloca x86_fp80, align 16
  %17 = alloca %"struct.geometry::point", align 16
  %18 = alloca %"struct.geometry::point", align 16
  %19 = alloca %"struct.geometry::point", align 16
  %20 = alloca %"struct.geometry::point", align 16
  store ptr %0, ptr %4, align 8
  store i1 false, ptr %5, align 1
  call void @_ZNSt6vectorIN8geometry5pointESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 %1, i64 48, i1 false), !tbaa.struct !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %7, ptr align 16 %2, i64 48, i1 false), !tbaa.struct !5
  %21 = invoke noundef x86_fp80 @_ZN8geometry4distENS_6circleES0_(ptr noundef byval(%"struct.geometry::circle") align 16 %6, ptr noundef byval(%"struct.geometry::circle") align 16 %7)
          to label %22 unwind label %26

22:                                               ; preds = %3
  %23 = call noundef i32 @_ZN8geometry4signEe(x86_fp80 noundef %21)
  %24 = icmp ne i32 %23, 0
  br i1 %24, label %25, label %30

25:                                               ; preds = %22
  store i1 true, ptr %5, align 1
  store i32 1, ptr %10, align 4
  br label %120

26:                                               ; preds = %3
  %27 = landingpad { ptr, i32 }
          cleanup
  %28 = extractvalue { ptr, i32 } %27, 0
  store ptr %28, ptr %8, align 8
  %29 = extractvalue { ptr, i32 } %27, 1
  store i32 %29, ptr %9, align 4
  br label %124

30:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #6
  %31 = getelementptr inbounds %"struct.geometry::circle", ptr %2, i32 0, i32 0
  %32 = getelementptr inbounds %"struct.geometry::circle", ptr %1, i32 0, i32 0
  invoke void @_ZNK8geometry5pointmiERKS0_(ptr dead_on_unwind writable sret(%"struct.geometry::point") align 16 %11, ptr noundef nonnull align 16 dereferenceable(32) %31, ptr noundef nonnull align 16 dereferenceable(32) %32)
          to label %33 unwind label %82

33:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #6
  %34 = invoke noundef x86_fp80 @_ZNK8geometry5point3absEv(ptr noundef nonnull align 16 dereferenceable(32) %11)
          to label %35 unwind label %86

35:                                               ; preds = %33
  store x86_fp80 %34, ptr %12, align 16, !tbaa !6
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #6
  %36 = invoke noundef x86_fp80 @_ZNK8geometry5point4normEv(ptr noundef nonnull align 16 dereferenceable(32) %11)
          to label %37 unwind label %90

37:                                               ; preds = %35
  %38 = getelementptr inbounds %"struct.geometry::circle", ptr %2, i32 0, i32 1
  %39 = load x86_fp80, ptr %38, align 16, !tbaa !10
  %40 = getelementptr inbounds %"struct.geometry::circle", ptr %2, i32 0, i32 1
  %41 = load x86_fp80, ptr %40, align 16, !tbaa !10
  %42 = fneg x86_fp80 %39
  %43 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %42, x86_fp80 %41, x86_fp80 %36)
  %44 = getelementptr inbounds %"struct.geometry::circle", ptr %1, i32 0, i32 1
  %45 = load x86_fp80, ptr %44, align 16, !tbaa !10
  %46 = getelementptr inbounds %"struct.geometry::circle", ptr %1, i32 0, i32 1
  %47 = load x86_fp80, ptr %46, align 16, !tbaa !10
  %48 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %45, x86_fp80 %47, x86_fp80 %43)
  %49 = load x86_fp80, ptr %12, align 16, !tbaa !6
  %50 = fmul x86_fp80 0xK40008000000000000000, %49
  %51 = fdiv x86_fp80 %48, %50
  store x86_fp80 %51, ptr %13, align 16, !tbaa !6
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #6
  %52 = getelementptr inbounds %"struct.geometry::circle", ptr %1, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #6
  %53 = load x86_fp80, ptr %13, align 16, !tbaa !6
  %54 = load x86_fp80, ptr %12, align 16, !tbaa !6
  %55 = fdiv x86_fp80 %53, %54
  store x86_fp80 %55, ptr %16, align 16, !tbaa !6
  invoke void @_ZNK8geometry5pointmlERKe(ptr dead_on_unwind writable sret(%"struct.geometry::point") align 16 %15, ptr noundef nonnull align 16 dereferenceable(32) %11, ptr noundef nonnull align 16 dereferenceable(16) %16)
          to label %56 unwind label %94

56:                                               ; preds = %37
  invoke void @_ZNK8geometry5pointplERKS0_(ptr dead_on_unwind writable sret(%"struct.geometry::point") align 16 %14, ptr noundef nonnull align 16 dereferenceable(32) %52, ptr noundef nonnull align 16 dereferenceable(32) %15)
          to label %57 unwind label %94

57:                                               ; preds = %56
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #6
  %58 = getelementptr inbounds %"struct.geometry::circle", ptr %1, i32 0, i32 1
  %59 = load x86_fp80, ptr %58, align 16, !tbaa !10
  %60 = getelementptr inbounds %"struct.geometry::circle", ptr %1, i32 0, i32 1
  %61 = load x86_fp80, ptr %60, align 16, !tbaa !10
  %62 = load x86_fp80, ptr %13, align 16, !tbaa !6
  %63 = load x86_fp80, ptr %13, align 16, !tbaa !6
  %64 = fmul x86_fp80 %62, %63
  %65 = fneg x86_fp80 %64
  %66 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %59, x86_fp80 %61, x86_fp80 %65)
  %67 = invoke noundef x86_fp80 @_ZSt4sqrte(x86_fp80 noundef %66)
          to label %68 unwind label %98

68:                                               ; preds = %57
  %69 = load x86_fp80, ptr %12, align 16, !tbaa !6
  %70 = fdiv x86_fp80 %67, %69
  invoke void @_ZN8geometry5pointC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %18, x86_fp80 noundef 0xK00000000000000000000, x86_fp80 noundef %70)
          to label %71 unwind label %98

71:                                               ; preds = %68
  invoke void @_ZNK8geometry5pointmlERKS0_(ptr dead_on_unwind writable sret(%"struct.geometry::point") align 16 %17, ptr noundef nonnull align 16 dereferenceable(32) %11, ptr noundef nonnull align 16 dereferenceable(32) %18)
          to label %72 unwind label %98

72:                                               ; preds = %71
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #6
  invoke void @_ZNK8geometry5pointplERKS0_(ptr dead_on_unwind writable sret(%"struct.geometry::point") align 16 %19, ptr noundef nonnull align 16 dereferenceable(32) %14, ptr noundef nonnull align 16 dereferenceable(32) %17)
          to label %73 unwind label %102

73:                                               ; preds = %72
  invoke void @_ZNSt6vectorIN8geometry5pointESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 16 dereferenceable(32) %19)
          to label %74 unwind label %102

74:                                               ; preds = %73
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #6
  %75 = invoke noundef x86_fp80 @_ZNK8geometry5point4normEv(ptr noundef nonnull align 16 dereferenceable(32) %17)
          to label %76 unwind label %106

76:                                               ; preds = %74
  %77 = call noundef i32 @_ZN8geometry4signEe(x86_fp80 noundef %75)
  %78 = icmp eq i32 %77, 0
  br i1 %78, label %79, label %114

79:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #6
  invoke void @_ZNK8geometry5pointmiERKS0_(ptr dead_on_unwind writable sret(%"struct.geometry::point") align 16 %20, ptr noundef nonnull align 16 dereferenceable(32) %14, ptr noundef nonnull align 16 dereferenceable(32) %17)
          to label %80 unwind label %110

80:                                               ; preds = %79
  invoke void @_ZNSt6vectorIN8geometry5pointESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 16 dereferenceable(32) %20)
          to label %81 unwind label %110

81:                                               ; preds = %80
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #6
  br label %114

82:                                               ; preds = %30
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %8, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %9, align 4
  br label %119

86:                                               ; preds = %33
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %8, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %9, align 4
  br label %118

90:                                               ; preds = %35
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %8, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %9, align 4
  br label %117

94:                                               ; preds = %56, %37
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %8, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #6
  br label %116

98:                                               ; preds = %71, %68, %57
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %8, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #6
  br label %115

102:                                              ; preds = %73, %72
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %8, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #6
  br label %115

106:                                              ; preds = %74
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %8, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %9, align 4
  br label %115

110:                                              ; preds = %80, %79
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %8, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #6
  br label %115

114:                                              ; preds = %81, %76
  store i1 true, ptr %5, align 1
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #6
  br label %120

115:                                              ; preds = %110, %106, %102, %98
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #6
  br label %116

116:                                              ; preds = %115, %94
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #6
  br label %117

117:                                              ; preds = %116, %90
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
  br label %118

118:                                              ; preds = %117, %86
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  br label %119

119:                                              ; preds = %118, %82
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #6
  br label %124

120:                                              ; preds = %114, %25
  %121 = load i1, ptr %5, align 1
  br i1 %121, label %123, label %122

122:                                              ; preds = %120
  call void @_ZNSt6vectorIN8geometry5pointESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %123

123:                                              ; preds = %122, %120
  ret void

124:                                              ; preds = %119, %26
  call void @_ZNSt6vectorIN8geometry5pointESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %125

125:                                              ; preds = %124
  %126 = load ptr, ptr %8, align 8
  %127 = load i32, ptr %9, align 4
  %128 = insertvalue { ptr, i32 } poison, ptr %126, 0
  %129 = insertvalue { ptr, i32 } %128, i32 %127, 1
  resume { ptr, i32 } %129
}

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8geometry5pointmlERKS0_(ptr dead_on_unwind noalias writable sret(%"struct.geometry::point") align 16, ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN8geometry5pointESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 16 dereferenceable(32)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN8geometry5pointESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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 }

!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 16, !6, i64 16, i64 16, !6, i64 32, i64 16, !6}
!6 = !{!7, !7, i64 0}
!7 = !{!"long double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !7, i64 32}
!11 = !{!"_ZTSN8geometry6circleE", !12, i64 0, !7, i64 32}
!12 = !{!"_ZTSN8geometry5pointE", !7, i64 0, !7, i64 16}


; 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.geometry::point" = type { x86_fp80, x86_fp80 }
%"struct.geometry::circle" = type { %"struct.geometry::point", x86_fp80 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<geometry::point, std::allocator<geometry::point>>::_Vector_impl" }
%"struct.std::_Vector_base<geometry::point, std::allocator<geometry::point>>::_Vector_impl" = type { %"struct.std::_Vector_base<geometry::point, std::allocator<geometry::point>>::_Vector_impl_data" }
%"struct.std::_Vector_base<geometry::point, std::allocator<geometry::point>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare x86_fp80 @llvm.fmuladd.f80(x86_fp80, x86_fp80, x86_fp80) #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: mustprogress uwtable
declare dso_local void @_ZNK8geometry5pointmiERKS0_(ptr dead_on_unwind noalias writable sret(%"struct.geometry::point") align 16, ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8geometry5pointplERKS0_(ptr dead_on_unwind noalias writable sret(%"struct.geometry::point") align 16, ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) local_unnamed_addr #3 align 2

; 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 nounwind uwtable
declare dso_local noundef x86_fp80 @_ZNK8geometry5point4normEv(ptr noundef nonnull align 16 dereferenceable(32)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8geometry5pointmlERKe(ptr dead_on_unwind noalias writable sret(%"struct.geometry::point") align 16, ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef x86_fp80 @_ZNK8geometry5point3absEv(ptr noundef nonnull align 16 dereferenceable(32)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef x86_fp80 @_ZSt4sqrte(x86_fp80 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef x86_fp80 @_ZN8geometry4distENS_6circleES0_(ptr noundef byval(%"struct.geometry::circle") align 16, ptr noundef byval(%"struct.geometry::circle") align 16) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8geometry10crosspointENS_6circleES0_(ptr dead_on_unwind noalias nonnull writable sret(%"class.std::vector") align 8 %0, ptr noundef byval(%"struct.geometry::circle") align 16 %1, ptr noundef byval(%"struct.geometry::circle") align 16 %2) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"struct.geometry::point", align 16
  %5 = alloca %"struct.geometry::point", align 16
  %6 = alloca %"struct.geometry::point", align 16
  %7 = alloca x86_fp80, align 16
  %8 = alloca %"struct.geometry::point", align 16
  %9 = alloca %"struct.geometry::point", align 16
  %10 = alloca %"struct.geometry::point", align 16
  %11 = alloca %"struct.geometry::point", align 16
  tail call void @_ZNSt6vectorIN8geometry5pointESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %12 = invoke noundef x86_fp80 @_ZN8geometry4distENS_6circleES0_(ptr noundef nonnull byval(%"struct.geometry::circle") align 16 %1, ptr noundef nonnull byval(%"struct.geometry::circle") align 16 %2)
          to label %13 unwind label %15

13:                                               ; preds = %3
  %14 = tail call noundef i32 @_ZN8geometry4signEe(x86_fp80 noundef %12)
  %.not = icmp eq i32 %14, 0
  br i1 %.not, label %17, label %65

15:                                               ; preds = %3
  %16 = landingpad { ptr, i32 }
          cleanup
  br label %66

17:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #5
  invoke void @_ZNK8geometry5pointmiERKS0_(ptr dead_on_unwind nonnull writable sret(%"struct.geometry::point") align 16 %4, ptr noundef nonnull align 16 dereferenceable(32) %2, ptr noundef nonnull align 16 dereferenceable(32) %1)
          to label %18 unwind label %49

18:                                               ; preds = %17
  %19 = invoke noundef x86_fp80 @_ZNK8geometry5point3absEv(ptr noundef nonnull align 16 dereferenceable(32) %4)
          to label %20 unwind label %51

20:                                               ; preds = %18
  %21 = call noundef x86_fp80 @_ZNK8geometry5point4normEv(ptr noundef nonnull align 16 dereferenceable(32) %4)
  %22 = getelementptr inbounds i8, ptr %2, i64 32
  %23 = load x86_fp80, ptr %22, align 16, !tbaa !5
  %24 = fneg x86_fp80 %23
  %25 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %24, x86_fp80 %23, x86_fp80 %21)
  %26 = getelementptr inbounds i8, ptr %1, i64 32
  %27 = load x86_fp80, ptr %26, align 16, !tbaa !5
  %28 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %27, x86_fp80 %27, x86_fp80 %25)
  %29 = fmul x86_fp80 %19, 0xK40008000000000000000
  %30 = fdiv x86_fp80 %28, %29
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  %31 = fdiv x86_fp80 %30, %19
  store x86_fp80 %31, ptr %7, align 16, !tbaa !11
  invoke void @_ZNK8geometry5pointmlERKe(ptr dead_on_unwind nonnull writable sret(%"struct.geometry::point") align 16 %6, ptr noundef nonnull align 16 dereferenceable(32) %4, ptr noundef nonnull align 16 dereferenceable(16) %7)
          to label %32 unwind label %53

32:                                               ; preds = %20
  invoke void @_ZNK8geometry5pointplERKS0_(ptr dead_on_unwind nonnull writable sret(%"struct.geometry::point") align 16 %5, ptr noundef nonnull align 16 dereferenceable(32) %1, ptr noundef nonnull align 16 dereferenceable(32) %6)
          to label %33 unwind label %53

33:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #5
  %34 = load x86_fp80, ptr %26, align 16, !tbaa !5
  %35 = fneg x86_fp80 %30
  %36 = fmul x86_fp80 %30, %35
  %37 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %34, x86_fp80 %34, x86_fp80 %36)
  %38 = call noundef x86_fp80 @_ZSt4sqrte(x86_fp80 noundef %37)
  %39 = fdiv x86_fp80 %38, %19
  call void @_ZN8geometry5pointC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %9, x86_fp80 noundef 0xK00000000000000000000, x86_fp80 noundef %39)
  invoke void @_ZNK8geometry5pointmlERKS0_(ptr dead_on_unwind nonnull writable sret(%"struct.geometry::point") align 16 %8, ptr noundef nonnull align 16 dereferenceable(32) %4, ptr noundef nonnull align 16 dereferenceable(32) %9)
          to label %40 unwind label %55

40:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #5
  invoke void @_ZNK8geometry5pointplERKS0_(ptr dead_on_unwind nonnull writable sret(%"struct.geometry::point") align 16 %10, ptr noundef nonnull align 16 dereferenceable(32) %5, ptr noundef nonnull align 16 dereferenceable(32) %8)
          to label %41 unwind label %57

41:                                               ; preds = %40
  invoke void @_ZNSt6vectorIN8geometry5pointESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 16 dereferenceable(32) %10)
          to label %42 unwind label %57

42:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #5
  %43 = call noundef x86_fp80 @_ZNK8geometry5point4normEv(ptr noundef nonnull align 16 dereferenceable(32) %8)
  %44 = call noundef i32 @_ZN8geometry4signEe(x86_fp80 noundef %43)
  %45 = icmp eq i32 %44, 0
  br i1 %45, label %46, label %61

46:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #5
  invoke void @_ZNK8geometry5pointmiERKS0_(ptr dead_on_unwind nonnull writable sret(%"struct.geometry::point") align 16 %11, ptr noundef nonnull align 16 dereferenceable(32) %5, ptr noundef nonnull align 16 dereferenceable(32) %8)
          to label %47 unwind label %59

47:                                               ; preds = %46
  invoke void @_ZNSt6vectorIN8geometry5pointESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 16 dereferenceable(32) %11)
          to label %48 unwind label %59

48:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #5
  br label %61

49:                                               ; preds = %17
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %64

51:                                               ; preds = %18
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %64

53:                                               ; preds = %32, %20
  %54 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  br label %63

55:                                               ; preds = %33
  %56 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  br label %62

57:                                               ; preds = %41, %40
  %58 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #5
  br label %62

59:                                               ; preds = %47, %46
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #5
  br label %62

61:                                               ; preds = %48, %42
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  br label %65

62:                                               ; preds = %59, %57, %55
  %.pn = phi { ptr, i32 } [ %60, %59 ], [ %58, %57 ], [ %56, %55 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #5
  br label %63

63:                                               ; preds = %62, %53
  %.pn.pn = phi { ptr, i32 } [ %.pn, %62 ], [ %54, %53 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  br label %64

64:                                               ; preds = %51, %63, %49
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %50, %49 ], [ %.pn.pn, %63 ], [ %52, %51 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  br label %66

65:                                               ; preds = %61, %13
  ret void

66:                                               ; preds = %64, %15
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %64 ], [ %16, %15 ]
  call void @_ZNSt6vectorIN8geometry5pointESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  resume { ptr, i32 } %.pn.pn.pn.pn.pn
}

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8geometry5pointmlERKS0_(ptr dead_on_unwind noalias writable sret(%"struct.geometry::point") align 16, ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN8geometry5pointESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 16 dereferenceable(32)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN8geometry5pointESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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 speculatable willreturn memory(none) }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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 = { 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 32}
!6 = !{!"_ZTSN8geometry6circleE", !7, i64 0, !8, i64 32}
!7 = !{!"_ZTSN8geometry5pointE", !8, i64 0, !8, i64 16}
!8 = !{!"long double", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!8, !8, i64 0}


; Effective O3 passes: DSEPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass