; LLVM IR from kazunetakahashi/atcoder :: 2020/0304_ABC157/past2/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 i32, align 4
  %9 = alloca x86_fp80, align 16
  %10 = alloca x86_fp80, align 16
  %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
  %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 %6, 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 = fadd x86_fp80 %33, %36
  %38 = fadd x86_fp80 %37, 0xK3FD78CBCCC096F508800
  %39 = load x86_fp80, ptr %7, align 16, !tbaa !9
  %40 = fcmp olt x86_fp80 %38, %39
  br i1 %40, label %41, label %42

41:                                               ; 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 %8, align 4
  br label %134

42:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #6
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.Circle, ptr %43, i32 0, i32 1
  %45 = load x86_fp80, ptr %44, align 16, !tbaa !11
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.Circle, ptr %46, i32 0, i32 1
  %48 = load x86_fp80, ptr %47, align 16, !tbaa !11
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.Circle, ptr %49, i32 0, i32 1
  %51 = load x86_fp80, ptr %50, align 16, !tbaa !11
  %52 = load ptr, ptr %6, 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 = fmul x86_fp80 %51, %54
  %56 = fneg x86_fp80 %55
  %57 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %45, x86_fp80 %48, x86_fp80 %56)
  %58 = load x86_fp80, ptr %7, align 16, !tbaa !9
  %59 = load x86_fp80, ptr %7, align 16, !tbaa !9
  %60 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %58, x86_fp80 %59, x86_fp80 %57)
  %61 = load x86_fp80, ptr %7, align 16, !tbaa !9
  %62 = fmul x86_fp80 0xK40008000000000000000, %61
  %63 = fdiv x86_fp80 %60, %62
  store x86_fp80 %63, ptr %9, align 16, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #6
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.Circle, ptr %64, i32 0, i32 1
  %66 = load x86_fp80, ptr %65, align 16, !tbaa !11
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.Circle, ptr %67, i32 0, i32 1
  %69 = load x86_fp80, ptr %68, align 16, !tbaa !11
  %70 = load x86_fp80, ptr %9, align 16, !tbaa !9
  %71 = load x86_fp80, ptr %9, align 16, !tbaa !9
  %72 = fmul x86_fp80 %70, %71
  %73 = fneg x86_fp80 %72
  %74 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %66, x86_fp80 %69, x86_fp80 %73)
  store x86_fp80 %74, ptr %10, align 16, !tbaa !9
  %75 = load x86_fp80, ptr %10, align 16, !tbaa !9
  %76 = fcmp ole x86_fp80 %75, 0xK00000000000000000000
  br i1 %76, label %77, label %78

77:                                               ; preds = %42
  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 %8, align 4
  br label %133

78:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #6
  %79 = load x86_fp80, ptr %10, align 16, !tbaa !9
  %80 = call noundef x86_fp80 @_ZSt4sqrte(x86_fp80 noundef %79)
  store x86_fp80 %80, 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
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.Circle, ptr %81, i32 0, i32 0
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.Circle, ptr %83, 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) %82, ptr noundef nonnull align 16 dereferenceable(32) %84)
          to label %85 unwind label %103

85:                                               ; preds = %78
  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 %86 unwind label %103

86:                                               ; preds = %85
  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 %87 unwind label %107

87:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #6
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.Circle, ptr %88, 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) %9)
          to label %90 unwind label %111

90:                                               ; preds = %87
  invoke void @_ZStplIeESt7complexIT_ERKS2_S4_(ptr dead_on_unwind writable sret(%"class.std::complex") align 16 %19, ptr noundef nonnull align 16 dereferenceable(32) %89, ptr noundef nonnull align 16 dereferenceable(32) %20)
          to label %91 unwind label %111

91:                                               ; preds = %90
  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 %92 unwind label %115

92:                                               ; preds = %91
  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 %93 unwind label %115

93:                                               ; preds = %92
  invoke void @_ZNSt6vectorISt7complexIeESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 16 dereferenceable(32) %18)
          to label %94 unwind label %115

94:                                               ; preds = %93
  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
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.Circle, ptr %95, 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) %9)
          to label %97 unwind label %120

97:                                               ; preds = %94
  invoke void @_ZStplIeESt7complexIT_ERKS2_S4_(ptr dead_on_unwind writable sret(%"class.std::complex") align 16 %23, ptr noundef nonnull align 16 dereferenceable(32) %96, ptr noundef nonnull align 16 dereferenceable(32) %24)
          to label %98 unwind label %120

98:                                               ; preds = %97
  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 %99 unwind label %124

99:                                               ; preds = %98
  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 %100 unwind label %124

100:                                              ; preds = %99
  invoke void @_ZNSt6vectorISt7complexIeESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 16 dereferenceable(32) %22)
          to label %101 unwind label %124

101:                                              ; preds = %100
  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 %8, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #6
  %102 = load i1, ptr %12, align 1
  br i1 %102, label %132, label %131

103:                                              ; preds = %85, %78
  %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 %14) #6
  br label %130

107:                                              ; preds = %86
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %15, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %16, align 4
  br label %129

111:                                              ; preds = %90, %87
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %15, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %16, align 4
  br label %119

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

119:                                              ; preds = %115, %111
  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 %129

120:                                              ; preds = %97, %94
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %15, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %16, align 4
  br label %128

124:                                              ; preds = %100, %99, %98
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %15, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #6
  br label %128

128:                                              ; preds = %124, %120
  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 %129

129:                                              ; preds = %128, %119, %107
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #6
  br label %130

130:                                              ; preds = %129, %103
  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 %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #6
  br label %135

131:                                              ; preds = %101
  call void @_ZNSt6vectorISt7complexIeESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %132

132:                                              ; preds = %131, %101
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  br label %133

133:                                              ; preds = %132, %77
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #6
  br label %134

134:                                              ; preds = %133, %41
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #6
  ret void

135:                                              ; preds = %130
  %136 = load ptr, ptr %15, align 8
  %137 = load i32, ptr %16, align 4
  %138 = insertvalue { ptr, i32 } poison, ptr %136, 0
  %139 = insertvalue { ptr, i32 } %138, i32 %137, 1
  resume { ptr, i32 } %139
}

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

; 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare x86_fp80 @llvm.fmuladd.f80(x86_fp80, x86_fp80, x86_fp80) #5

; 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 nounwind willreturn memory(argmem: write) }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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)
  %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 = fadd x86_fp80 %19, %21
  %23 = fadd x86_fp80 %22, 0xK3FD78CBCCC096F508800
  %24 = fcmp olt x86_fp80 %23, %17
  br i1 %24, label %25, label %26

25:                                               ; 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 %55

26:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  %27 = fneg x86_fp80 %21
  %28 = fmul x86_fp80 %21, %27
  %29 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %19, x86_fp80 %19, x86_fp80 %28)
  %30 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %17, x86_fp80 %17, x86_fp80 %29)
  %31 = fmul x86_fp80 %17, 0xK40008000000000000000
  %32 = fdiv x86_fp80 %30, %31
  store x86_fp80 %32, ptr %4, align 16, !tbaa !11
  %33 = fneg x86_fp80 %32
  %34 = fmul x86_fp80 %32, %33
  %35 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %19, x86_fp80 %19, x86_fp80 %34)
  %36 = fcmp ugt x86_fp80 %35, 0xK00000000000000000000
  br i1 %36, label %38, label %37

37:                                               ; preds = %26
  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 %54

38:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  %39 = tail call noundef x86_fp80 @_ZSt4sqrte(x86_fp80 noundef %35)
  store x86_fp80 %39, 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 %40 unwind label %44

40:                                               ; preds = %38
  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 %41 unwind label %46

41:                                               ; preds = %40
  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 %42 unwind label %48

42:                                               ; preds = %41
  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 %43 unwind label %50

43:                                               ; preds = %42
  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 %54

44:                                               ; preds = %38
  %45 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  br label %53

46:                                               ; preds = %40
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %52

48:                                               ; preds = %41
  %49 = 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 %52

50:                                               ; preds = %42
  %51 = 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 %52

52:                                               ; preds = %50, %48, %46
  %.pn = phi { ptr, i32 } [ %51, %50 ], [ %49, %48 ], [ %47, %46 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  br label %53

53:                                               ; preds = %52, %44
  %.pn.pn = phi { ptr, i32 } [ %.pn, %52 ], [ %45, %44 ]
  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

54:                                               ; preds = %43, %37
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  br label %55

55:                                               ; preds = %54, %25
  ret void
}

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

; 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: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare x86_fp80 @llvm.fmuladd.f80(x86_fp80, x86_fp80, x86_fp80) #5

; 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 nounwind willreturn memory(argmem: write) }
attributes #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !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