; LLVM IR from kazunetakahashi/atcoder :: 2020/0304_ABC157/F.ll (Z18IntersectionPointsRK6CircleS1_)

; 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"

%"class.std::complex" = type { { x86_fp80, x86_fp80 } }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::complex<long double>, std::allocator<std::complex<long double>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::complex<long double>, std::allocator<std::complex<long double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::complex<long double>, std::allocator<std::complex<long double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::complex<long double>, std::allocator<std::complex<long double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.Circle = type { %"class.std::complex", x86_fp80 }

; 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 uwtable
declare dso_local void @_Z9NormalizeRKSt7complexIeE(ptr dead_on_unwind noalias writable sret(%"class.std::complex") align 16, ptr noundef nonnull align 16 dereferenceable(32)) #1

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6RotateRKSt7complexIeEe(ptr dead_on_unwind noalias writable sret(%"class.std::complex") align 16, ptr noundef nonnull align 16 dereferenceable(32), x86_fp80 noundef) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZStmiIeESt7complexIT_ERKS2_S4_(ptr dead_on_unwind noalias writable sret(%"class.std::complex") align 16, ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZStplIeESt7complexIT_ERKS2_S4_(ptr dead_on_unwind noalias writable sret(%"class.std::complex") align 16, ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef x86_fp80 @_Z4DistRKSt7complexIeES2_(ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z18IntersectionPointsRK6CircleS1_(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, ptr noundef nonnull align 16 dereferenceable(48) %1, ptr noundef nonnull align 16 dereferenceable(48) %2) #1 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca x86_fp80, align 16
  %8 = alloca x86_fp80, align 16
  %9 = alloca x86_fp80, align 16
  %10 = alloca i32, align 4
  %11 = alloca x86_fp80, align 16
  %12 = alloca i1, align 1
  %13 = alloca %"class.std::complex", align 16
  %14 = alloca %"class.std::complex", align 16
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca %"class.std::complex", align 16
  %18 = alloca %"class.std::complex", align 16
  %19 = alloca %"class.std::complex", align 16
  %20 = alloca %"class.std::complex", align 16
  %21 = alloca %"class.std::complex", align 16
  %22 = alloca %"class.std::complex", align 16
  %23 = alloca %"class.std::complex", align 16
  %24 = alloca %"class.std::complex", align 16
  %25 = alloca %"class.std::complex", align 16
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #6
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.Circle, ptr %26, i32 0, i32 0
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.Circle, ptr %28, i32 0, i32 0
  %30 = call noundef x86_fp80 @_Z4DistRKSt7complexIeES2_(ptr noundef nonnull align 16 dereferenceable(32) %27, ptr noundef nonnull align 16 dereferenceable(32) %29)
  store x86_fp80 %30, ptr %7, align 16, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #6
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.Circle, ptr %31, i32 0, i32 1
  %33 = load x86_fp80, ptr %32, align 16, !tbaa !11
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.Circle, ptr %34, i32 0, i32 1
  %36 = load x86_fp80, ptr %35, align 16, !tbaa !11
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.Circle, ptr %37, i32 0, i32 1
  %39 = load x86_fp80, ptr %38, align 16, !tbaa !11
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.Circle, ptr %40, i32 0, i32 1
  %42 = load x86_fp80, ptr %41, align 16, !tbaa !11
  %43 = fmul x86_fp80 %39, %42
  %44 = fneg x86_fp80 %43
  %45 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %33, x86_fp80 %36, x86_fp80 %44)
  %46 = load x86_fp80, ptr %7, align 16, !tbaa !9
  %47 = load x86_fp80, ptr %7, align 16, !tbaa !9
  %48 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %46, x86_fp80 %47, x86_fp80 %45)
  %49 = load x86_fp80, ptr %7, align 16, !tbaa !9
  %50 = fmul x86_fp80 0xK40008000000000000000, %49
  %51 = fdiv x86_fp80 %48, %50
  store x86_fp80 %51, ptr %8, align 16, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #6
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.Circle, ptr %52, i32 0, i32 1
  %54 = load x86_fp80, ptr %53, align 16, !tbaa !11
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.Circle, ptr %55, i32 0, i32 1
  %57 = load x86_fp80, ptr %56, align 16, !tbaa !11
  %58 = load x86_fp80, ptr %8, align 16, !tbaa !9
  %59 = load x86_fp80, ptr %8, align 16, !tbaa !9
  %60 = fmul x86_fp80 %58, %59
  %61 = fneg x86_fp80 %60
  %62 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %54, x86_fp80 %57, x86_fp80 %61)
  store x86_fp80 %62, ptr %9, align 16, !tbaa !9
  %63 = load x86_fp80, ptr %9, align 16, !tbaa !9
  %64 = fcmp ole x86_fp80 %63, 0xK00000000000000000000
  br i1 %64, label %65, label %66

65:                                               ; preds = %3
  call void @llvm.memset.p0.i64(ptr align 8 %0, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorISt7complexIeESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  store i32 1, ptr %10, align 4
  br label %121

66:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #6
  %67 = load x86_fp80, ptr %9, align 16, !tbaa !9
  %68 = call noundef x86_fp80 @_ZSt4sqrte(x86_fp80 noundef %67)
  store x86_fp80 %68, ptr %11, align 16, !tbaa !9
  store i1 false, ptr %12, align 1
  call void @_ZNSt6vectorISt7complexIeESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #6
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.Circle, ptr %69, i32 0, i32 0
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.Circle, ptr %71, i32 0, i32 0
  invoke void @_ZStmiIeESt7complexIT_ERKS2_S4_(ptr dead_on_unwind writable sret(%"class.std::complex") align 16 %14, ptr noundef nonnull align 16 dereferenceable(32) %70, ptr noundef nonnull align 16 dereferenceable(32) %72)
          to label %73 unwind label %91

73:                                               ; preds = %66
  invoke void @_Z9NormalizeRKSt7complexIeE(ptr dead_on_unwind writable sret(%"class.std::complex") align 16 %13, ptr noundef nonnull align 16 dereferenceable(32) %14)
          to label %74 unwind label %91

74:                                               ; preds = %73
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #6
  invoke void @_Z6RotateRKSt7complexIeEe(ptr dead_on_unwind writable sret(%"class.std::complex") align 16 %17, ptr noundef nonnull align 16 dereferenceable(32) %13, x86_fp80 noundef 0xK3FFFC90FDAA22168C000)
          to label %75 unwind label %95

75:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #6
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.Circle, ptr %76, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #6
  invoke void @_ZStmlIeESt7complexIT_ERKS2_RKS1_(ptr dead_on_unwind writable sret(%"class.std::complex") align 16 %20, ptr noundef nonnull align 16 dereferenceable(32) %13, ptr noundef nonnull align 16 dereferenceable(16) %8)
          to label %78 unwind label %99

78:                                               ; preds = %75
  invoke void @_ZStplIeESt7complexIT_ERKS2_S4_(ptr dead_on_unwind writable sret(%"class.std::complex") align 16 %19, ptr noundef nonnull align 16 dereferenceable(32) %77, ptr noundef nonnull align 16 dereferenceable(32) %20)
          to label %79 unwind label %99

79:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #6
  invoke void @_ZStmlIeESt7complexIT_ERKS2_RKS1_(ptr dead_on_unwind writable sret(%"class.std::complex") align 16 %21, ptr noundef nonnull align 16 dereferenceable(32) %17, ptr noundef nonnull align 16 dereferenceable(16) %11)
          to label %80 unwind label %103

80:                                               ; preds = %79
  invoke void @_ZStplIeESt7complexIT_ERKS2_S4_(ptr dead_on_unwind writable sret(%"class.std::complex") align 16 %18, ptr noundef nonnull align 16 dereferenceable(32) %19, ptr noundef nonnull align 16 dereferenceable(32) %21)
          to label %81 unwind label %103

81:                                               ; preds = %80
  invoke void @_ZNSt6vectorISt7complexIeESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 16 dereferenceable(32) %18)
          to label %82 unwind label %103

82:                                               ; preds = %81
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #6
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.Circle, ptr %83, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #6
  invoke void @_ZStmlIeESt7complexIT_ERKS2_RKS1_(ptr dead_on_unwind writable sret(%"class.std::complex") align 16 %24, ptr noundef nonnull align 16 dereferenceable(32) %13, ptr noundef nonnull align 16 dereferenceable(16) %8)
          to label %85 unwind label %108

85:                                               ; preds = %82
  invoke void @_ZStplIeESt7complexIT_ERKS2_S4_(ptr dead_on_unwind writable sret(%"class.std::complex") align 16 %23, ptr noundef nonnull align 16 dereferenceable(32) %84, ptr noundef nonnull align 16 dereferenceable(32) %24)
          to label %86 unwind label %108

86:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #6
  invoke void @_ZStmlIeESt7complexIT_ERKS2_RKS1_(ptr dead_on_unwind writable sret(%"class.std::complex") align 16 %25, ptr noundef nonnull align 16 dereferenceable(32) %17, ptr noundef nonnull align 16 dereferenceable(16) %11)
          to label %87 unwind label %112

87:                                               ; preds = %86
  invoke void @_ZStmiIeESt7complexIT_ERKS2_S4_(ptr dead_on_unwind writable sret(%"class.std::complex") align 16 %22, ptr noundef nonnull align 16 dereferenceable(32) %23, ptr noundef nonnull align 16 dereferenceable(32) %25)
          to label %88 unwind label %112

88:                                               ; preds = %87
  invoke void @_ZNSt6vectorISt7complexIeESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 16 dereferenceable(32) %22)
          to label %89 unwind label %112

89:                                               ; preds = %88
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #6
  store i1 true, ptr %12, 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 %13) #6
  %90 = load i1, ptr %12, align 1
  br i1 %90, label %120, label %119

91:                                               ; preds = %73, %66
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %15, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #6
  br label %118

95:                                               ; preds = %74
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %15, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %16, align 4
  br label %117

99:                                               ; preds = %78, %75
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %15, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %16, align 4
  br label %107

103:                                              ; preds = %81, %80, %79
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %15, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #6
  br label %107

107:                                              ; preds = %103, %99
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #6
  br label %117

108:                                              ; preds = %85, %82
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %15, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %16, align 4
  br label %116

112:                                              ; preds = %88, %87, %86
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %15, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #6
  br label %116

116:                                              ; preds = %112, %108
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #6
  br label %117

117:                                              ; preds = %116, %107, %95
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #6
  br label %118

118:                                              ; preds = %117, %91
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #6
  call void @_ZNSt6vectorISt7complexIeESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #6
  br label %122

119:                                              ; preds = %89
  call void @_ZNSt6vectorISt7complexIeESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %120

120:                                              ; preds = %119, %89
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  br label %121

121:                                              ; preds = %120, %65
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #6
  ret void

122:                                              ; preds = %118
  %123 = load ptr, ptr %15, align 8
  %124 = load i32, ptr %16, align 4
  %125 = insertvalue { ptr, i32 } poison, ptr %123, 0
  %126 = insertvalue { ptr, i32 } %125, i32 %124, 1
  resume { ptr, i32 } %126
}

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZStmlIeESt7complexIT_ERKS2_RKS1_(ptr dead_on_unwind noalias writable sret(%"class.std::complex") align 16, ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(16)) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long double", !7, i64 0}
!11 = !{!12, !10, i64 32}
!12 = !{!"_ZTS6Circle", !13, i64 0, !10, i64 32}
!13 = !{!"_ZTSSt7complexIeE", !7, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::complex" = type { { x86_fp80, x86_fp80 } }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::complex<long double>, std::allocator<std::complex<long double>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::complex<long double>, std::allocator<std::complex<long double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::complex<long double>, std::allocator<std::complex<long double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::complex<long double>, std::allocator<std::complex<long double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; 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 uwtable
declare dso_local void @_Z9NormalizeRKSt7complexIeE(ptr dead_on_unwind noalias writable sret(%"class.std::complex") align 16, ptr noundef nonnull align 16 dereferenceable(32)) local_unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6RotateRKSt7complexIeEe(ptr dead_on_unwind noalias writable sret(%"class.std::complex") align 16, ptr noundef nonnull align 16 dereferenceable(32), x86_fp80 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZStmiIeESt7complexIT_ERKS2_S4_(ptr dead_on_unwind noalias writable sret(%"class.std::complex") align 16, ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZStplIeESt7complexIT_ERKS2_S4_(ptr dead_on_unwind noalias writable sret(%"class.std::complex") align 16, ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef x86_fp80 @_Z4DistRKSt7complexIeES2_(ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z18IntersectionPointsRK6CircleS1_(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, ptr noundef nonnull align 16 dereferenceable(48) %1, ptr noundef nonnull align 16 dereferenceable(48) %2) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %4 = alloca x86_fp80, align 16
  %5 = alloca x86_fp80, align 16
  %6 = alloca %"class.std::complex", align 16
  %7 = alloca %"class.std::complex", align 16
  %8 = alloca %"class.std::complex", align 16
  %9 = alloca %"class.std::complex", align 16
  %10 = alloca %"class.std::complex", align 16
  %11 = alloca %"class.std::complex", align 16
  %12 = alloca %"class.std::complex", align 16
  %13 = alloca %"class.std::complex", align 16
  %14 = alloca %"class.std::complex", align 16
  %15 = alloca %"class.std::complex", align 16
  %16 = alloca %"class.std::complex", align 16
  %17 = tail call noundef x86_fp80 @_Z4DistRKSt7complexIeES2_(ptr noundef nonnull align 16 dereferenceable(32) %1, ptr noundef nonnull align 16 dereferenceable(32) %2)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  %18 = getelementptr inbounds i8, ptr %1, i64 32
  %19 = load x86_fp80, ptr %18, align 16, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %2, i64 32
  %21 = load x86_fp80, ptr %20, align 16, !tbaa !5
  %22 = fneg x86_fp80 %21
  %23 = fmul x86_fp80 %21, %22
  %24 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %19, x86_fp80 %19, x86_fp80 %23)
  %25 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %17, x86_fp80 %17, x86_fp80 %24)
  %26 = fmul x86_fp80 %17, 0xK40008000000000000000
  %27 = fdiv x86_fp80 %25, %26
  store x86_fp80 %27, ptr %4, align 16, !tbaa !11
  %28 = fneg x86_fp80 %27
  %29 = fmul x86_fp80 %27, %28
  %30 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %19, x86_fp80 %19, x86_fp80 %29)
  %31 = fcmp ugt x86_fp80 %30, 0xK00000000000000000000
  br i1 %31, label %33, label %32

32:                                               ; preds = %3
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %0, i8 0, i64 24, i1 false)
  tail call void @_ZNSt6vectorISt7complexIeESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %49

33:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  %34 = tail call noundef x86_fp80 @_ZSt4sqrte(x86_fp80 noundef %30)
  store x86_fp80 %34, ptr %5, align 16, !tbaa !11
  tail call void @_ZNSt6vectorISt7complexIeESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #6
  call void @_ZStmiIeESt7complexIT_ERKS2_S4_(ptr dead_on_unwind nonnull writable sret(%"class.std::complex") align 16 %7, ptr noundef nonnull align 16 dereferenceable(32) %2, ptr noundef nonnull align 16 dereferenceable(32) %1)
  invoke void @_Z9NormalizeRKSt7complexIeE(ptr dead_on_unwind nonnull writable sret(%"class.std::complex") align 16 %6, ptr noundef nonnull align 16 dereferenceable(32) %7)
          to label %35 unwind label %39

35:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #6
  invoke void @_Z6RotateRKSt7complexIeEe(ptr dead_on_unwind nonnull writable sret(%"class.std::complex") align 16 %8, ptr noundef nonnull align 16 dereferenceable(32) %6, x86_fp80 noundef 0xK3FFFC90FDAA22168C000)
          to label %36 unwind label %41

36:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #6
  call void @_ZStmlIeESt7complexIT_ERKS2_RKS1_(ptr dead_on_unwind nonnull writable sret(%"class.std::complex") align 16 %11, ptr noundef nonnull align 16 dereferenceable(32) %6, ptr noundef nonnull align 16 dereferenceable(16) %4)
  call void @_ZStplIeESt7complexIT_ERKS2_S4_(ptr dead_on_unwind nonnull writable sret(%"class.std::complex") align 16 %10, ptr noundef nonnull align 16 dereferenceable(32) %1, ptr noundef nonnull align 16 dereferenceable(32) %11)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #6
  call void @_ZStmlIeESt7complexIT_ERKS2_RKS1_(ptr dead_on_unwind nonnull writable sret(%"class.std::complex") align 16 %12, ptr noundef nonnull align 16 dereferenceable(32) %8, ptr noundef nonnull align 16 dereferenceable(16) %5)
  call void @_ZStplIeESt7complexIT_ERKS2_S4_(ptr dead_on_unwind nonnull writable sret(%"class.std::complex") align 16 %9, ptr noundef nonnull align 16 dereferenceable(32) %10, ptr noundef nonnull align 16 dereferenceable(32) %12)
  invoke void @_ZNSt6vectorISt7complexIeESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 16 dereferenceable(32) %9)
          to label %37 unwind label %43

37:                                               ; preds = %36
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #6
  call void @_ZStmlIeESt7complexIT_ERKS2_RKS1_(ptr dead_on_unwind nonnull writable sret(%"class.std::complex") align 16 %15, ptr noundef nonnull align 16 dereferenceable(32) %6, ptr noundef nonnull align 16 dereferenceable(16) %4)
  call void @_ZStplIeESt7complexIT_ERKS2_S4_(ptr dead_on_unwind nonnull writable sret(%"class.std::complex") align 16 %14, ptr noundef nonnull align 16 dereferenceable(32) %1, ptr noundef nonnull align 16 dereferenceable(32) %15)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #6
  call void @_ZStmlIeESt7complexIT_ERKS2_RKS1_(ptr dead_on_unwind nonnull writable sret(%"class.std::complex") align 16 %16, ptr noundef nonnull align 16 dereferenceable(32) %8, ptr noundef nonnull align 16 dereferenceable(16) %5)
  call void @_ZStmiIeESt7complexIT_ERKS2_S4_(ptr dead_on_unwind nonnull writable sret(%"class.std::complex") align 16 %13, ptr noundef nonnull align 16 dereferenceable(32) %14, ptr noundef nonnull align 16 dereferenceable(32) %16)
  invoke void @_ZNSt6vectorISt7complexIeESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 16 dereferenceable(32) %13)
          to label %38 unwind label %45

38:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  br label %49

39:                                               ; preds = %33
  %40 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  br label %48

41:                                               ; preds = %35
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %47

43:                                               ; preds = %36
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  br label %47

45:                                               ; preds = %37
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #6
  br label %47

47:                                               ; preds = %45, %43, %41
  %.pn = phi { ptr, i32 } [ %46, %45 ], [ %44, %43 ], [ %42, %41 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  br label %48

48:                                               ; preds = %47, %39
  %.pn.pn = phi { ptr, i32 } [ %.pn, %47 ], [ %40, %39 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  call void @_ZNSt6vectorISt7complexIeESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  resume { ptr, i32 } %.pn.pn

49:                                               ; preds = %38, %32
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  ret void
}

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZStmlIeESt7complexIT_ERKS2_RKS1_(ptr dead_on_unwind noalias writable sret(%"class.std::complex") align 16, ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #3

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


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