; LLVM IR from wesley-a-leung/Resources :: Tests/C++/geometry/2d (ConvexPolygonFuzzTest)

; 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.pt = type { x86_fp80, x86_fp80 }
%struct.Circle = type { %struct.pt, x86_fp80 }
%struct.Line = type { %struct.pt, x86_fp80 }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = type { %"struct.std::_Vector_base<std::pair<Angle, Angle>, std::allocator<std::pair<Angle, Angle>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<Angle, Angle>, std::allocator<std::pair<Angle, Angle>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<Angle, Angle>, std::allocator<std::pair<Angle, Angle>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<Angle, Angle>, std::allocator<std::pair<Angle, Angle>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<pt, std::allocator<pt>>::_Vector_impl" }
%"struct.std::_Vector_base<pt, std::allocator<pt>>::_Vector_impl" = type { %"struct.std::_Vector_base<pt, std::allocator<pt>>::_Vector_impl_data" }
%"struct.std::_Vector_base<pt, std::allocator<pt>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.Angle = type { %struct.pt }
%"struct.std::less" = type { i8 }
%"struct.std::pair.17" = type { %struct.Angle, %struct.Angle }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z2ltee(x86_fp80 noundef, x86_fp80 noundef) #0

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

; 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: mustprogress nounwind uwtable
declare dso_local noundef x86_fp80 @_Z5cross2ptS_(ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16) #0

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4LineC2E2ptS0_(ptr noundef nonnull align 16 dereferenceable(48), ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef x86_fp80 @_Z31circleHalfPlaneIntersectionArea6Circle4Line(ptr noundef byval(%struct.Circle) align 16, ptr noundef byval(%struct.Line) align 16) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z24circleCircleIntersection6CircleS_RSt6vectorI2ptSaIS1_EE(ptr noundef byval(%struct.Circle) align 16, ptr noundef byval(%struct.Circle) align 16, ptr noundef nonnull align 8 dereferenceable(24)) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef x86_fp80 @_Z15circleUnionAreaRKSt6vectorI6CircleSaIS0_EE(ptr noundef nonnull align 8 dereferenceable(24) %0) #3 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca x86_fp80, align 16
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::vector.12", align 8
  %8 = alloca %struct.pt, align 16
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i8, align 1
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %struct.Circle, align 16
  %15 = alloca %"class.std::vector", align 8
  %16 = alloca %struct.Circle, align 16
  %17 = alloca %struct.Circle, align 16
  %18 = alloca %struct.Angle, align 16
  %19 = alloca %struct.pt, align 16
  %20 = alloca %struct.Angle, align 16
  %21 = alloca %struct.pt, align 16
  %22 = alloca %struct.Angle, align 16
  %23 = alloca %struct.Angle, align 16
  %24 = alloca %struct.pt, align 16
  %25 = alloca %struct.Angle, align 16
  %26 = alloca %struct.pt, align 16
  %27 = alloca %struct.pt, align 16
  %28 = alloca %"struct.std::less", align 1
  %29 = alloca %struct.Angle, align 16
  %30 = alloca %struct.pt, align 16
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca %struct.pt, align 16
  %34 = alloca %struct.pt, align 16
  %35 = alloca %struct.pt, align 16
  %36 = alloca %struct.pt, align 16
  %37 = alloca %struct.Circle, align 16
  %38 = alloca %struct.Line, align 16
  %39 = alloca %struct.pt, align 16
  %40 = alloca %struct.pt, align 16
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  %41 = load ptr, ptr %2, align 8, !tbaa !5
  %42 = call noundef i64 @_ZNKSt6vectorI6CircleSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %41) #6
  %43 = trunc i64 %42 to i32
  store i32 %43, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #6
  store x86_fp80 0xK00000000000000000000, ptr %4, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %44

44:                                               ; preds = %290, %1
  %45 = load i32, ptr %5, align 4, !tbaa !9
  %46 = load i32, ptr %3, align 4, !tbaa !9
  %47 = icmp slt i32 %45, %46
  br i1 %47, label %49, label %48

48:                                               ; preds = %44
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %295

49:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #6
  call void @_ZNSt6vectorISt4pairI5AngleS1_ESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  %50 = load ptr, ptr %2, align 8, !tbaa !5
  %51 = load i32, ptr %5, align 4, !tbaa !9
  %52 = sext i32 %51 to i64
  %53 = call noundef nonnull align 16 dereferenceable(48) ptr @_ZNKSt6vectorI6CircleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %50, i64 noundef %52) #6
  %54 = getelementptr inbounds %struct.Circle, ptr %53, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %8, ptr align 16 %54, i64 32, i1 false), !tbaa.struct !13
  invoke void @_ZN5Angle8setPivotE2pt(ptr noundef byval(%struct.pt) align 16 %8)
          to label %55 unwind label %61

55:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #6
  store i8 0, ptr %11, align 1, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %56

56:                                               ; preds = %187, %55
  %57 = load i32, ptr %12, align 4, !tbaa !9
  %58 = load i32, ptr %3, align 4, !tbaa !9
  %59 = icmp slt i32 %57, %58
  br i1 %59, label %65, label %60

60:                                               ; preds = %56
  store i32 5, ptr %6, align 4
  br label %190

61:                                               ; preds = %49
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %9, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %10, align 4
  br label %294

65:                                               ; preds = %56
  %66 = load i32, ptr %5, align 4, !tbaa !9
  %67 = load i32, ptr %12, align 4, !tbaa !9
  %68 = icmp ne i32 %66, %67
  br i1 %68, label %69, label %186

69:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %70 = load ptr, ptr %2, align 8, !tbaa !5
  %71 = load i32, ptr %12, align 4, !tbaa !9
  %72 = sext i32 %71 to i64
  %73 = call noundef nonnull align 16 dereferenceable(48) ptr @_ZNKSt6vectorI6CircleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %70, i64 noundef %72) #6
  %74 = load ptr, ptr %2, align 8, !tbaa !5
  %75 = load i32, ptr %5, align 4, !tbaa !9
  %76 = sext i32 %75 to i64
  %77 = call noundef nonnull align 16 dereferenceable(48) ptr @_ZNKSt6vectorI6CircleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %74, i64 noundef %76) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %14, ptr align 16 %77, i64 48, i1 false), !tbaa.struct !16
  %78 = invoke noundef i32 @_ZNK6Circle8containsES_(ptr noundef nonnull align 16 dereferenceable(48) %73, ptr noundef byval(%struct.Circle) align 16 %14)
          to label %79 unwind label %104

79:                                               ; preds = %69
  store i32 %78, ptr %13, align 4, !tbaa !9
  %80 = load i32, ptr %13, align 4, !tbaa !9
  %81 = icmp sgt i32 %80, 0
  br i1 %81, label %103, label %82

82:                                               ; preds = %79
  %83 = load i32, ptr %13, align 4, !tbaa !9
  %84 = icmp eq i32 %83, 0
  br i1 %84, label %85, label %108

85:                                               ; preds = %82
  %86 = load ptr, ptr %2, align 8, !tbaa !5
  %87 = load i32, ptr %5, align 4, !tbaa !9
  %88 = sext i32 %87 to i64
  %89 = call noundef nonnull align 16 dereferenceable(48) ptr @_ZNKSt6vectorI6CircleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %86, i64 noundef %88) #6
  %90 = getelementptr inbounds %struct.Circle, ptr %89, i32 0, i32 1
  %91 = load x86_fp80, ptr %90, align 16, !tbaa !17
  %92 = load ptr, ptr %2, align 8, !tbaa !5
  %93 = load i32, ptr %12, align 4, !tbaa !9
  %94 = sext i32 %93 to i64
  %95 = call noundef nonnull align 16 dereferenceable(48) ptr @_ZNKSt6vectorI6CircleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %92, i64 noundef %94) #6
  %96 = getelementptr inbounds %struct.Circle, ptr %95, i32 0, i32 1
  %97 = load x86_fp80, ptr %96, align 16, !tbaa !17
  %98 = call noundef zeroext i1 @_Z2ltee(x86_fp80 noundef %91, x86_fp80 noundef %97)
  br i1 %98, label %103, label %99

99:                                               ; preds = %85
  %100 = load i32, ptr %12, align 4, !tbaa !9
  %101 = load i32, ptr %5, align 4, !tbaa !9
  %102 = icmp slt i32 %100, %101
  br i1 %102, label %103, label %108

103:                                              ; preds = %99, %85, %79
  store i8 1, ptr %11, align 1, !tbaa !14
  store i32 5, ptr %6, align 4
  br label %181

104:                                              ; preds = %69
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %9, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %10, align 4
  br label %185

108:                                              ; preds = %99, %82
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #6
  call void @_ZNSt6vectorI2ptSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  %109 = load ptr, ptr %2, align 8, !tbaa !5
  %110 = load i32, ptr %5, align 4, !tbaa !9
  %111 = sext i32 %110 to i64
  %112 = call noundef nonnull align 16 dereferenceable(48) ptr @_ZNKSt6vectorI6CircleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %109, i64 noundef %111) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %16, ptr align 16 %112, i64 48, i1 false), !tbaa.struct !16
  %113 = load ptr, ptr %2, align 8, !tbaa !5
  %114 = load i32, ptr %12, align 4, !tbaa !9
  %115 = sext i32 %114 to i64
  %116 = call noundef nonnull align 16 dereferenceable(48) ptr @_ZNKSt6vectorI6CircleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %113, i64 noundef %115) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %17, ptr align 16 %116, i64 48, i1 false), !tbaa.struct !16
  %117 = invoke noundef i32 @_Z24circleCircleIntersection6CircleS_RSt6vectorI2ptSaIS1_EE(ptr noundef byval(%struct.Circle) align 16 %16, ptr noundef byval(%struct.Circle) align 16 %17, ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %118 unwind label %132

118:                                              ; preds = %108
  %119 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  %120 = trunc i64 %119 to i32
  %121 = icmp eq i32 %120, 2
  br i1 %121, label %122, label %180

122:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #6
  %123 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef 0) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %19, ptr align 16 %123, i64 32, i1 false), !tbaa.struct !13
  invoke void @_ZN5AngleC2E2pt(ptr noundef nonnull align 16 dereferenceable(32) %18, ptr noundef byval(%struct.pt) align 16 %19)
          to label %124 unwind label %136

124:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #6
  %125 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef 1) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %21, ptr align 16 %125, i64 32, i1 false), !tbaa.struct !13
  invoke void @_ZN5AngleC2E2pt(ptr noundef nonnull align 16 dereferenceable(32) %20, ptr noundef byval(%struct.pt) align 16 %21)
          to label %126 unwind label %140

126:                                              ; preds = %124
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %22, ptr align 16 %20, i64 32, i1 false), !tbaa.struct !13
  %127 = invoke noundef zeroext i1 @_ZNK5AngleltES_(ptr noundef nonnull align 16 dereferenceable(32) %18, ptr noundef byval(%struct.Angle) align 16 %22)
          to label %128 unwind label %140

128:                                              ; preds = %126
  br i1 %127, label %129, label %144

129:                                              ; preds = %128
  %130 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZNSt6vectorISt4pairI5AngleS1_ESaIS2_EE12emplace_backIJRS1_S6_EEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 16 dereferenceable(32) %18, ptr noundef nonnull align 16 dereferenceable(32) %20)
          to label %131 unwind label %140

131:                                              ; preds = %129
  br label %177

132:                                              ; preds = %108
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %9, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %10, align 4
  br label %184

136:                                              ; preds = %122
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %9, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %10, align 4
  br label %179

140:                                              ; preds = %129, %126, %124
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %9, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %10, align 4
  br label %178

144:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #6
  %145 = load ptr, ptr %2, align 8, !tbaa !5
  %146 = load i32, ptr %5, align 4, !tbaa !9
  %147 = sext i32 %146 to i64
  %148 = call noundef nonnull align 16 dereferenceable(48) ptr @_ZNKSt6vectorI6CircleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %145, i64 noundef %147) #6
  %149 = getelementptr inbounds %struct.Circle, ptr %148, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %24, ptr align 16 %149, i64 32, i1 false), !tbaa.struct !13
  invoke void @_ZN5AngleC2E2pt(ptr noundef nonnull align 16 dereferenceable(32) %23, ptr noundef byval(%struct.pt) align 16 %24)
          to label %150 unwind label %169

150:                                              ; preds = %144
  %151 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZNSt6vectorISt4pairI5AngleS1_ESaIS2_EE12emplace_backIJRS1_S1_EEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 16 dereferenceable(32) %18, ptr noundef nonnull align 16 dereferenceable(32) %23)
          to label %152 unwind label %169

152:                                              ; preds = %150
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #6
  %153 = load ptr, ptr %2, align 8, !tbaa !5
  %154 = load i32, ptr %5, align 4, !tbaa !9
  %155 = sext i32 %154 to i64
  %156 = call noundef nonnull align 16 dereferenceable(48) ptr @_ZNKSt6vectorI6CircleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %153, i64 noundef %155) #6
  %157 = getelementptr inbounds %struct.Circle, ptr %156, i32 0, i32 0
  %158 = load ptr, ptr %2, align 8, !tbaa !5
  %159 = load i32, ptr %5, align 4, !tbaa !9
  %160 = sext i32 %159 to i64
  %161 = call noundef nonnull align 16 dereferenceable(48) ptr @_ZNKSt6vectorI6CircleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %158, i64 noundef %160) #6
  %162 = getelementptr inbounds %struct.Circle, ptr %161, i32 0, i32 1
  %163 = load x86_fp80, ptr %162, align 16, !tbaa !17
  invoke void @_ZN2ptC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %27, x86_fp80 noundef %163, x86_fp80 noundef 0xK00000000000000000000)
          to label %164 unwind label %173

164:                                              ; preds = %152
  invoke void @_ZNK2ptmiES_(ptr dead_on_unwind writable sret(%struct.pt) align 16 %26, ptr noundef nonnull align 16 dereferenceable(32) %157, ptr noundef byval(%struct.pt) align 16 %27)
          to label %165 unwind label %173

165:                                              ; preds = %164
  invoke void @_ZN5AngleC2E2pt(ptr noundef nonnull align 16 dereferenceable(32) %25, ptr noundef byval(%struct.pt) align 16 %26)
          to label %166 unwind label %173

166:                                              ; preds = %165
  %167 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZNSt6vectorISt4pairI5AngleS1_ESaIS2_EE12emplace_backIJRS1_S6_EEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 16 dereferenceable(32) %25, ptr noundef nonnull align 16 dereferenceable(32) %20)
          to label %168 unwind label %173

168:                                              ; preds = %166
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #6
  br label %177

169:                                              ; preds = %150, %144
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %9, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #6
  br label %178

173:                                              ; preds = %166, %165, %164, %152
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %9, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #6
  br label %178

177:                                              ; preds = %168, %131
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #6
  br label %180

178:                                              ; preds = %173, %169, %140
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #6
  br label %179

179:                                              ; preds = %178, %136
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #6
  br label %184

180:                                              ; preds = %177, %118
  call void @_ZNSt6vectorI2ptSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  store i32 0, ptr %6, align 4
  br label %181

181:                                              ; preds = %180, %103
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  %182 = load i32, ptr %6, align 4
  switch i32 %182, label %190 [
    i32 0, label %183
  ]

183:                                              ; preds = %181
  br label %186

184:                                              ; preds = %179, %132
  call void @_ZNSt6vectorI2ptSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  br label %185

185:                                              ; preds = %184, %104
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %293

186:                                              ; preds = %183, %65
  br label %187

187:                                              ; preds = %186
  %188 = load i32, ptr %12, align 4, !tbaa !9
  %189 = add nsw i32 %188, 1
  store i32 %189, ptr %12, align 4, !tbaa !9
  br label %56, !llvm.loop !20

190:                                              ; preds = %181, %60
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %191

191:                                              ; preds = %190
  %192 = load i8, ptr %11, align 1, !tbaa !14, !range !22, !noundef !23
  %193 = trunc i8 %192 to i1
  br i1 %193, label %194, label %195

194:                                              ; preds = %191
  store i32 4, ptr %6, align 4
  br label %287

195:                                              ; preds = %191
  %196 = call noundef zeroext i1 @_ZNKSt6vectorISt4pairI5AngleS1_ESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  br i1 %196, label %197, label %219

197:                                              ; preds = %195
  %198 = invoke noundef x86_fp80 @_ZSt4acose(x86_fp80 noundef 0xKBFFF8000000000000000)
          to label %199 unwind label %215

199:                                              ; preds = %197
  %200 = load ptr, ptr %2, align 8, !tbaa !5
  %201 = load i32, ptr %5, align 4, !tbaa !9
  %202 = sext i32 %201 to i64
  %203 = call noundef nonnull align 16 dereferenceable(48) ptr @_ZNKSt6vectorI6CircleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %200, i64 noundef %202) #6
  %204 = getelementptr inbounds %struct.Circle, ptr %203, i32 0, i32 1
  %205 = load x86_fp80, ptr %204, align 16, !tbaa !17
  %206 = fmul x86_fp80 %198, %205
  %207 = load ptr, ptr %2, align 8, !tbaa !5
  %208 = load i32, ptr %5, align 4, !tbaa !9
  %209 = sext i32 %208 to i64
  %210 = call noundef nonnull align 16 dereferenceable(48) ptr @_ZNKSt6vectorI6CircleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %207, i64 noundef %209) #6
  %211 = getelementptr inbounds %struct.Circle, ptr %210, i32 0, i32 1
  %212 = load x86_fp80, ptr %211, align 16, !tbaa !17
  %213 = load x86_fp80, ptr %4, align 16, !tbaa !11
  %214 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %206, x86_fp80 %212, x86_fp80 %213)
  store x86_fp80 %214, ptr %4, align 16, !tbaa !11
  br label %286

215:                                              ; preds = %229, %221, %219, %197
  %216 = landingpad { ptr, i32 }
          cleanup
  %217 = extractvalue { ptr, i32 } %216, 0
  store ptr %217, ptr %9, align 8
  %218 = extractvalue { ptr, i32 } %216, 1
  store i32 %218, ptr %10, align 4
  br label %293

219:                                              ; preds = %195
  %220 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_Z13intervalUnionI5AngleSt4lessIS0_EERSt6vectorISt4pairIT_S5_ESaIS6_EES9_T0_(ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %221 unwind label %215

221:                                              ; preds = %219
  %222 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNSt6vectorISt4pairI5AngleS1_ESaIS2_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  %223 = getelementptr inbounds %"struct.std::pair.17", ptr %222, i32 0, i32 1
  %224 = load ptr, ptr %2, align 8, !tbaa !5
  %225 = load i32, ptr %5, align 4, !tbaa !9
  %226 = sext i32 %225 to i64
  %227 = call noundef nonnull align 16 dereferenceable(48) ptr @_ZNKSt6vectorI6CircleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %224, i64 noundef %226) #6
  %228 = getelementptr inbounds %struct.Circle, ptr %227, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %30, ptr align 16 %228, i64 32, i1 false), !tbaa.struct !13
  invoke void @_ZN5AngleC2E2pt(ptr noundef nonnull align 16 dereferenceable(32) %29, ptr noundef byval(%struct.pt) align 16 %30)
          to label %229 unwind label %215

229:                                              ; preds = %221
  %230 = invoke noundef zeroext i1 @_ZNK5AngleeqES_(ptr noundef nonnull align 16 dereferenceable(32) %223, ptr noundef byval(%struct.Angle) align 16 %29)
          to label %231 unwind label %215

231:                                              ; preds = %229
  br i1 %230, label %232, label %237

232:                                              ; preds = %231
  %233 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNSt6vectorISt4pairI5AngleS1_ESaIS2_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  %234 = getelementptr inbounds %"struct.std::pair.17", ptr %233, i32 0, i32 0
  %235 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNSt6vectorISt4pairI5AngleS1_ESaIS2_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  %236 = getelementptr inbounds %"struct.std::pair.17", ptr %235, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %236, ptr align 16 %234, i64 32, i1 false), !tbaa.struct !13
  call void @_ZNSt6vectorISt4pairI5AngleS1_ESaIS2_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  br label %237

237:                                              ; preds = %232, %231
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  store i32 0, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  %238 = call noundef i64 @_ZNKSt6vectorISt4pairI5AngleS1_ESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  %239 = trunc i64 %238 to i32
  store i32 %239, ptr %32, align 4, !tbaa !9
  br label %240

240:                                              ; preds = %278, %237
  %241 = load i32, ptr %31, align 4, !tbaa !9
  %242 = load i32, ptr %32, align 4, !tbaa !9
  %243 = icmp slt i32 %241, %242
  br i1 %243, label %245, label %244

244:                                              ; preds = %240
  store i32 8, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  br label %285

245:                                              ; preds = %240
  call void @llvm.lifetime.start.p0(i64 32, ptr %33) #6
  %246 = load i32, ptr %31, align 4, !tbaa !9
  %247 = sext i32 %246 to i64
  %248 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNSt6vectorISt4pairI5AngleS1_ESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %247) #6
  %249 = getelementptr inbounds %"struct.std::pair.17", ptr %248, i32 0, i32 1
  %250 = getelementptr inbounds %struct.Angle, ptr %249, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %33, ptr align 16 %250, i64 32, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.start.p0(i64 32, ptr %34) #6
  %251 = load i32, ptr %31, align 4, !tbaa !9
  %252 = add nsw i32 %251, 1
  %253 = load i32, ptr %32, align 4, !tbaa !9
  %254 = icmp eq i32 %252, %253
  br i1 %254, label %255, label %256

255:                                              ; preds = %245
  br label %259

256:                                              ; preds = %245
  %257 = load i32, ptr %31, align 4, !tbaa !9
  %258 = add nsw i32 %257, 1
  br label %259

259:                                              ; preds = %256, %255
  %260 = phi i32 [ 0, %255 ], [ %258, %256 ]
  %261 = sext i32 %260 to i64
  %262 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNSt6vectorISt4pairI5AngleS1_ESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %261) #6
  %263 = getelementptr inbounds %"struct.std::pair.17", ptr %262, i32 0, i32 0
  %264 = getelementptr inbounds %struct.Angle, ptr %263, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %34, ptr align 16 %264, i64 32, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %35, ptr align 16 %33, i64 32, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %36, ptr align 16 %34, i64 32, i1 false), !tbaa.struct !13
  %265 = call noundef x86_fp80 @_Z5cross2ptS_(ptr noundef byval(%struct.pt) align 16 %35, ptr noundef byval(%struct.pt) align 16 %36)
  %266 = fdiv x86_fp80 %265, 0xK40008000000000000000
  %267 = load x86_fp80, ptr %4, align 16, !tbaa !11
  %268 = fadd x86_fp80 %267, %266
  store x86_fp80 %268, ptr %4, align 16, !tbaa !11
  %269 = load ptr, ptr %2, align 8, !tbaa !5
  %270 = load i32, ptr %5, align 4, !tbaa !9
  %271 = sext i32 %270 to i64
  %272 = call noundef nonnull align 16 dereferenceable(48) ptr @_ZNKSt6vectorI6CircleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %269, i64 noundef %271) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %37, ptr align 16 %272, i64 48, i1 false), !tbaa.struct !16
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %39, ptr align 16 %34, i64 32, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %40, ptr align 16 %33, i64 32, i1 false), !tbaa.struct !13
  invoke void @_ZN4LineC2E2ptS0_(ptr noundef nonnull align 16 dereferenceable(48) %38, ptr noundef byval(%struct.pt) align 16 %39, ptr noundef byval(%struct.pt) align 16 %40)
          to label %273 unwind label %281

273:                                              ; preds = %259
  %274 = invoke noundef x86_fp80 @_Z31circleHalfPlaneIntersectionArea6Circle4Line(ptr noundef byval(%struct.Circle) align 16 %37, ptr noundef byval(%struct.Line) align 16 %38)
          to label %275 unwind label %281

275:                                              ; preds = %273
  %276 = load x86_fp80, ptr %4, align 16, !tbaa !11
  %277 = fadd x86_fp80 %276, %274
  store x86_fp80 %277, ptr %4, align 16, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 32, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %33) #6
  br label %278

278:                                              ; preds = %275
  %279 = load i32, ptr %31, align 4, !tbaa !9
  %280 = add nsw i32 %279, 1
  store i32 %280, ptr %31, align 4, !tbaa !9
  br label %240, !llvm.loop !24

281:                                              ; preds = %273, %259
  %282 = landingpad { ptr, i32 }
          cleanup
  %283 = extractvalue { ptr, i32 } %282, 0
  store ptr %283, ptr %9, align 8
  %284 = extractvalue { ptr, i32 } %282, 1
  store i32 %284, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  br label %293

285:                                              ; preds = %244
  br label %286

286:                                              ; preds = %285, %199
  store i32 0, ptr %6, align 4
  br label %287

287:                                              ; preds = %286, %194
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  call void @_ZNSt6vectorISt4pairI5AngleS1_ESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #6
  %288 = load i32, ptr %6, align 4
  switch i32 %288, label %302 [
    i32 0, label %289
    i32 4, label %290
  ]

289:                                              ; preds = %287
  br label %290

290:                                              ; preds = %289, %287
  %291 = load i32, ptr %5, align 4, !tbaa !9
  %292 = add nsw i32 %291, 1
  store i32 %292, ptr %5, align 4, !tbaa !9
  br label %44, !llvm.loop !25

293:                                              ; preds = %281, %215, %185
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  br label %294

294:                                              ; preds = %293, %61
  call void @_ZNSt6vectorISt4pairI5AngleS1_ESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %297

295:                                              ; preds = %48
  %296 = load x86_fp80, ptr %4, align 16, !tbaa !11
  store i32 1, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  ret x86_fp80 %296

297:                                              ; preds = %294
  %298 = load ptr, ptr %9, align 8
  %299 = load i32, ptr %10, align 4
  %300 = insertvalue { ptr, i32 } poison, ptr %298, 0
  %301 = insertvalue { ptr, i32 } %300, i32 %299, 1
  resume { ptr, i32 } %301

302:                                              ; preds = %287
  unreachable
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5Angle8setPivotE2pt(ptr noundef byval(%struct.pt) align 16) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(48) ptr @_ZNKSt6vectorI6CircleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK6Circle8containsES_(ptr noundef nonnull align 16 dereferenceable(48), ptr noundef byval(%struct.Circle) align 16) #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5AngleC2E2pt(ptr noundef nonnull align 16 dereferenceable(32), ptr noundef byval(%struct.pt) align 16) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK5AngleltES_(ptr noundef nonnull align 16 dereferenceable(32), ptr noundef byval(%struct.Angle) align 16) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(64) ptr @_ZNSt6vectorISt4pairI5AngleS1_ESaIS2_EE12emplace_backIJRS1_S1_EEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), 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 noundef zeroext i1 @_ZNKSt6vectorISt4pairI5AngleS1_ESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_Z13intervalUnionI5AngleSt4lessIS0_EERSt6vectorISt4pairIT_S5_ESaIS6_EES9_T0_(ptr noundef nonnull align 8 dereferenceable(24)) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK5AngleeqES_(ptr noundef nonnull align 16 dereferenceable(32), ptr noundef byval(%struct.Angle) align 16) #3 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(64) ptr @_ZNSt6vectorISt4pairI5AngleS1_ESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt4pairI5AngleS1_ESaIS2_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 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 nosync 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 = !{!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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long double", !7, i64 0}
!13 = !{i64 0, i64 16, !11, i64 16, i64 16, !11}
!14 = !{!15, !15, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{i64 0, i64 16, !11, i64 16, i64 16, !11, i64 32, i64 16, !11}
!17 = !{!18, !12, i64 32}
!18 = !{!"_ZTS6Circle", !19, i64 0, !12, i64 32}
!19 = !{!"_ZTS2pt", !12, i64 0, !12, i64 16}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = distinct !{!24, !21}
!25 = distinct !{!25, !21}


; 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.pt = type { x86_fp80, x86_fp80 }
%struct.Circle = type { %struct.pt, x86_fp80 }
%struct.Line = type { %struct.pt, x86_fp80 }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = type { %"struct.std::_Vector_base<std::pair<Angle, Angle>, std::allocator<std::pair<Angle, Angle>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<Angle, Angle>, std::allocator<std::pair<Angle, Angle>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<Angle, Angle>, std::allocator<std::pair<Angle, Angle>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<Angle, Angle>, std::allocator<std::pair<Angle, Angle>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<pt, std::allocator<pt>>::_Vector_impl" }
%"struct.std::_Vector_base<pt, std::allocator<pt>>::_Vector_impl" = type { %"struct.std::_Vector_base<pt, std::allocator<pt>>::_Vector_impl_data" }
%"struct.std::_Vector_base<pt, std::allocator<pt>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.Angle = type { %struct.pt }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z2ltee(x86_fp80 noundef, x86_fp80 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2ptC2Eee(ptr noundef nonnull align 16 dereferenceable(32), x86_fp80 noundef, x86_fp80 noundef) unnamed_addr #0 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) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef x86_fp80 @_Z5cross2ptS_(ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16) local_unnamed_addr #0

; Function Attrs: mustprogress 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) #2

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4LineC2E2ptS0_(ptr noundef nonnull align 16 dereferenceable(48), ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef x86_fp80 @_Z31circleHalfPlaneIntersectionArea6Circle4Line(ptr noundef byval(%struct.Circle) align 16, ptr noundef byval(%struct.Line) align 16) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z24circleCircleIntersection6CircleS_RSt6vectorI2ptSaIS1_EE(ptr noundef byval(%struct.Circle) align 16, ptr noundef byval(%struct.Circle) align 16, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local noundef x86_fp80 @_Z15circleUnionAreaRKSt6vectorI6CircleSaIS0_EE(ptr noundef nonnull align 8 dereferenceable(24) %0) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::vector.12", align 8
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca %struct.Circle, align 16
  %5 = alloca %struct.Angle, align 16
  %6 = alloca %struct.Angle, align 16
  %7 = alloca %struct.Angle, align 16
  %8 = alloca %struct.Angle, align 16
  %9 = alloca %struct.pt, align 16
  %10 = alloca %struct.pt, align 16
  %11 = alloca %struct.Angle, align 16
  %12 = alloca %struct.pt, align 16
  %13 = alloca %struct.pt, align 16
  %14 = alloca %struct.Circle, align 16
  %15 = alloca %struct.Line, align 16
  %16 = tail call noundef i64 @_ZNKSt6vectorI6CircleSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %17 = trunc i64 %16 to i32
  %18 = icmp sgt i32 %17, 0
  br i1 %18, label %.lr.ph102, label %._crit_edge103

.lr.ph102:                                        ; preds = %1
  %wide.trip.count115 = and i64 %16, 2147483647
  br label %.lr.ph.preheader

._crit_edge103:                                   ; preds = %.thread81, %1
  %.0.lcssa = phi x86_fp80 [ 0xK00000000000000000000, %1 ], [ %.3, %.thread81 ]
  ret x86_fp80 %.0.lcssa

.lr.ph.preheader:                                 ; preds = %.thread81, %.lr.ph102
  %indvars.iv112 = phi i64 [ 0, %.lr.ph102 ], [ %indvars.iv.next113, %.thread81 ]
  %.0100 = phi x86_fp80 [ 0xK00000000000000000000, %.lr.ph102 ], [ %.3, %.thread81 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #6
  call void @_ZNSt6vectorISt4pairI5AngleS1_ESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %19 = call noundef nonnull align 16 dereferenceable(48) ptr @_ZNKSt6vectorI6CircleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv112) #6
  call void @_ZN5Angle8setPivotE2pt(ptr noundef nonnull byval(%struct.pt) align 16 %19)
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %77
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %77 ]
  %.not = icmp eq i64 %indvars.iv112, %indvars.iv
  br i1 %.not, label %77, label %20

20:                                               ; preds = %.lr.ph
  %21 = call noundef nonnull align 16 dereferenceable(48) ptr @_ZNKSt6vectorI6CircleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv) #6
  %22 = call noundef nonnull align 16 dereferenceable(48) ptr @_ZNKSt6vectorI6CircleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv112) #6
  %23 = invoke noundef i32 @_ZNK6Circle8containsES_(ptr noundef nonnull align 16 dereferenceable(48) %21, ptr noundef nonnull byval(%struct.Circle) align 16 %22)
          to label %24 unwind label %37

24:                                               ; preds = %20
  %25 = icmp sgt i32 %23, 0
  br i1 %25, label %.thread81, label %26

26:                                               ; preds = %24
  %27 = icmp eq i32 %23, 0
  br i1 %27, label %28, label %39

28:                                               ; preds = %26
  %29 = call noundef nonnull align 16 dereferenceable(48) ptr @_ZNKSt6vectorI6CircleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv112) #6
  %30 = getelementptr inbounds i8, ptr %29, i64 32
  %31 = load x86_fp80, ptr %30, align 16, !tbaa !5
  %32 = call noundef nonnull align 16 dereferenceable(48) ptr @_ZNKSt6vectorI6CircleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv) #6
  %33 = getelementptr inbounds i8, ptr %32, i64 32
  %34 = load x86_fp80, ptr %33, align 16, !tbaa !5
  %35 = call noundef zeroext i1 @_Z2ltee(x86_fp80 noundef %31, x86_fp80 noundef %34)
  %36 = icmp ult i64 %indvars.iv, %indvars.iv112
  %or.cond = or i1 %36, %35
  br i1 %or.cond, label %.thread81, label %39

37:                                               ; preds = %20
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %123

39:                                               ; preds = %28, %26
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #6
  call void @_ZNSt6vectorI2ptSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %40 = call noundef nonnull align 16 dereferenceable(48) ptr @_ZNKSt6vectorI6CircleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv112) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(48) %4, ptr noundef nonnull align 16 dereferenceable(48) %40, i64 48, i1 false), !tbaa.struct !11
  %41 = call noundef nonnull align 16 dereferenceable(48) ptr @_ZNKSt6vectorI6CircleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv) #6
  %42 = invoke noundef i32 @_Z24circleCircleIntersection6CircleS_RSt6vectorI2ptSaIS1_EE(ptr noundef nonnull byval(%struct.Circle) align 16 %4, ptr noundef nonnull byval(%struct.Circle) align 16 %41, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %43 unwind label %54

43:                                               ; preds = %39
  %44 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %45 = and i64 %44, 4294967295
  %46 = icmp eq i64 %45, 2
  br i1 %46, label %47, label %75

47:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #6
  %48 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #6
  call void @_ZN5AngleC2E2pt(ptr noundef nonnull align 16 dereferenceable(32) %5, ptr noundef nonnull byval(%struct.pt) align 16 %48)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #6
  %49 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 1) #6
  call void @_ZN5AngleC2E2pt(ptr noundef nonnull align 16 dereferenceable(32) %6, ptr noundef nonnull byval(%struct.pt) align 16 %49)
  %50 = invoke noundef zeroext i1 @_ZNK5AngleltES_(ptr noundef nonnull align 16 dereferenceable(32) %5, ptr noundef nonnull byval(%struct.Angle) align 16 %6)
          to label %51 unwind label %56

51:                                               ; preds = %47
  br i1 %50, label %52, label %58

52:                                               ; preds = %51
  %53 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZNSt6vectorISt4pairI5AngleS1_ESaIS2_EE12emplace_backIJRS1_S6_EEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 16 dereferenceable(32) %5, ptr noundef nonnull align 16 dereferenceable(32) %6)
          to label %73 unwind label %56

54:                                               ; preds = %39
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %76

56:                                               ; preds = %52, %47
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %74

58:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #6
  %59 = call noundef nonnull align 16 dereferenceable(48) ptr @_ZNKSt6vectorI6CircleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv112) #6
  call void @_ZN5AngleC2E2pt(ptr noundef nonnull align 16 dereferenceable(32) %7, ptr noundef nonnull byval(%struct.pt) align 16 %59)
  %60 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZNSt6vectorISt4pairI5AngleS1_ESaIS2_EE12emplace_backIJRS1_S1_EEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 16 dereferenceable(32) %5, ptr noundef nonnull align 16 dereferenceable(32) %7)
          to label %61 unwind label %69

61:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #6
  %62 = call noundef nonnull align 16 dereferenceable(48) ptr @_ZNKSt6vectorI6CircleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv112) #6
  %63 = call noundef nonnull align 16 dereferenceable(48) ptr @_ZNKSt6vectorI6CircleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv112) #6
  %64 = getelementptr inbounds i8, ptr %63, i64 32
  %65 = load x86_fp80, ptr %64, align 16, !tbaa !5
  call void @_ZN2ptC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %10, x86_fp80 noundef %65, x86_fp80 noundef 0xK00000000000000000000)
  invoke void @_ZNK2ptmiES_(ptr dead_on_unwind nonnull writable sret(%struct.pt) align 16 %9, ptr noundef nonnull align 16 dereferenceable(32) %62, ptr noundef nonnull byval(%struct.pt) align 16 %10)
          to label %66 unwind label %71

66:                                               ; preds = %61
  call void @_ZN5AngleC2E2pt(ptr noundef nonnull align 16 dereferenceable(32) %8, ptr noundef nonnull byval(%struct.pt) align 16 %9)
  %67 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZNSt6vectorISt4pairI5AngleS1_ESaIS2_EE12emplace_backIJRS1_S6_EEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 16 dereferenceable(32) %8, ptr noundef nonnull align 16 dereferenceable(32) %6)
          to label %68 unwind label %71

68:                                               ; preds = %66
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  br label %73

69:                                               ; preds = %58
  %70 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  br label %74

71:                                               ; preds = %66, %61
  %72 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  br label %74

73:                                               ; preds = %52, %68
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  br label %75

74:                                               ; preds = %71, %69, %56
  %.pn = phi { ptr, i32 } [ %57, %56 ], [ %72, %71 ], [ %70, %69 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  br label %76

75:                                               ; preds = %43, %73
  call void @_ZNSt6vectorI2ptSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  br label %77

76:                                               ; preds = %74, %54
  %.pn.pn = phi { ptr, i32 } [ %.pn, %74 ], [ %55, %54 ]
  call void @_ZNSt6vectorI2ptSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  br label %123

77:                                               ; preds = %75, %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count115
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !13

._crit_edge:                                      ; preds = %77
  %78 = call noundef zeroext i1 @_ZNKSt6vectorISt4pairI5AngleS1_ESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  br i1 %78, label %79, label %91

79:                                               ; preds = %._crit_edge
  %80 = call noundef x86_fp80 @_ZSt4acose(x86_fp80 noundef 0xKBFFF8000000000000000)
  %81 = call noundef nonnull align 16 dereferenceable(48) ptr @_ZNKSt6vectorI6CircleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv112) #6
  %82 = getelementptr inbounds i8, ptr %81, i64 32
  %83 = load x86_fp80, ptr %82, align 16, !tbaa !5
  %84 = fmul x86_fp80 %80, %83
  %85 = call noundef nonnull align 16 dereferenceable(48) ptr @_ZNKSt6vectorI6CircleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv112) #6
  %86 = getelementptr inbounds i8, ptr %85, i64 32
  %87 = load x86_fp80, ptr %86, align 16, !tbaa !5
  %88 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %84, x86_fp80 %87, x86_fp80 %.0100)
  br label %.thread81

89:                                               ; preds = %93, %91
  %90 = landingpad { ptr, i32 }
          cleanup
  br label %123

91:                                               ; preds = %._crit_edge
  %92 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_Z13intervalUnionI5AngleSt4lessIS0_EERSt6vectorISt4pairIT_S5_ESaIS6_EES9_T0_(ptr noundef nonnull align 8 dereferenceable(24) %2)
          to label %93 unwind label %89

93:                                               ; preds = %91
  %94 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNSt6vectorISt4pairI5AngleS1_ESaIS2_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %95 = getelementptr inbounds i8, ptr %94, i64 32
  %96 = call noundef nonnull align 16 dereferenceable(48) ptr @_ZNKSt6vectorI6CircleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv112) #6
  call void @_ZN5AngleC2E2pt(ptr noundef nonnull align 16 dereferenceable(32) %11, ptr noundef nonnull byval(%struct.pt) align 16 %96)
  %97 = invoke noundef zeroext i1 @_ZNK5AngleeqES_(ptr noundef nonnull align 16 dereferenceable(32) %95, ptr noundef nonnull byval(%struct.Angle) align 16 %11)
          to label %98 unwind label %89

98:                                               ; preds = %93
  br i1 %97, label %99, label %102

99:                                               ; preds = %98
  %100 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNSt6vectorISt4pairI5AngleS1_ESaIS2_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %101 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNSt6vectorISt4pairI5AngleS1_ESaIS2_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %101, ptr noundef nonnull align 16 dereferenceable(32) %100, i64 32, i1 false), !tbaa.struct !15
  call void @_ZNSt6vectorISt4pairI5AngleS1_ESaIS2_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  br label %102

102:                                              ; preds = %99, %98
  %103 = call noundef i64 @_ZNKSt6vectorISt4pairI5AngleS1_ESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %104 = trunc i64 %103 to i32
  %105 = icmp sgt i32 %104, 0
  br i1 %105, label %.lr.ph97.preheader, label %.thread81

.lr.ph97.preheader:                               ; preds = %102
  %106 = and i64 %103, 2147483647
  br label %.lr.ph97

.lr.ph97:                                         ; preds = %.lr.ph97.preheader, %119
  %indvars.iv107 = phi i64 [ 0, %.lr.ph97.preheader ], [ %indvars.iv.next108, %119 ]
  %.195 = phi x86_fp80 [ %.0100, %.lr.ph97.preheader ], [ %120, %119 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12)
  %107 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNSt6vectorISt4pairI5AngleS1_ESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv107) #6
  %108 = getelementptr inbounds i8, ptr %107, i64 32
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %12, ptr noundef nonnull align 16 dereferenceable(32) %108, i64 32, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13)
  %indvars.iv.next108 = add nuw nsw i64 %indvars.iv107, 1
  %109 = icmp eq i64 %indvars.iv.next108, %106
  %110 = and i64 %indvars.iv.next108, 4294967295
  %111 = select i1 %109, i64 0, i64 %110
  %112 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNSt6vectorISt4pairI5AngleS1_ESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %111) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %13, ptr noundef nonnull align 16 dereferenceable(32) %112, i64 32, i1 false), !tbaa.struct !15
  %113 = call noundef x86_fp80 @_Z5cross2ptS_(ptr noundef nonnull byval(%struct.pt) align 16 %12, ptr noundef nonnull byval(%struct.pt) align 16 %112)
  %114 = fmul x86_fp80 %113, 0xK3FFE8000000000000000
  %115 = fadd x86_fp80 %.195, %114
  %116 = call noundef nonnull align 16 dereferenceable(48) ptr @_ZNKSt6vectorI6CircleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv112) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(48) %14, ptr noundef nonnull align 16 dereferenceable(48) %116, i64 48, i1 false), !tbaa.struct !11
  invoke void @_ZN4LineC2E2ptS0_(ptr noundef nonnull align 16 dereferenceable(48) %15, ptr noundef nonnull byval(%struct.pt) align 16 %13, ptr noundef nonnull byval(%struct.pt) align 16 %12)
          to label %117 unwind label %121

117:                                              ; preds = %.lr.ph97
  %118 = invoke noundef x86_fp80 @_Z31circleHalfPlaneIntersectionArea6Circle4Line(ptr noundef nonnull byval(%struct.Circle) align 16 %14, ptr noundef nonnull byval(%struct.Line) align 16 %15)
          to label %119 unwind label %121

119:                                              ; preds = %117
  %120 = fadd x86_fp80 %115, %118
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12)
  %exitcond111.not = icmp eq i64 %indvars.iv.next108, %106
  br i1 %exitcond111.not, label %.thread81, label %.lr.ph97, !llvm.loop !16

121:                                              ; preds = %117, %.lr.ph97
  %122 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12)
  br label %123

.thread81:                                        ; preds = %28, %24, %119, %102, %79
  %.3 = phi x86_fp80 [ %88, %79 ], [ %.0100, %102 ], [ %120, %119 ], [ %.0100, %24 ], [ %.0100, %28 ]
  call void @_ZNSt6vectorISt4pairI5AngleS1_ESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  %indvars.iv.next113 = add nuw nsw i64 %indvars.iv112, 1
  %exitcond116.not = icmp eq i64 %indvars.iv.next113, %wide.trip.count115
  br i1 %exitcond116.not, label %._crit_edge103, label %.lr.ph.preheader, !llvm.loop !17

123:                                              ; preds = %37, %76, %121, %89
  %.pn77 = phi { ptr, i32 } [ %122, %121 ], [ %90, %89 ], [ %.pn.pn, %76 ], [ %38, %37 ]
  call void @_ZNSt6vectorISt4pairI5AngleS1_ESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  resume { ptr, i32 } %.pn77
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI6CircleSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5Angle8setPivotE2pt(ptr noundef byval(%struct.pt) align 16) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK6Circle8containsES_(ptr noundef nonnull align 16 dereferenceable(48), ptr noundef byval(%struct.Circle) align 16) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5AngleC2E2pt(ptr noundef nonnull align 16 dereferenceable(32), ptr noundef byval(%struct.pt) align 16) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK5AngleltES_(ptr noundef nonnull align 16 dereferenceable(32), ptr noundef byval(%struct.Angle) align 16) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(64) ptr @_ZNSt6vectorISt4pairI5AngleS1_ESaIS2_EE12emplace_backIJRS1_S6_EEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), 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 noundef nonnull align 16 dereferenceable(64) ptr @_ZNSt6vectorISt4pairI5AngleS1_ESaIS2_EE12emplace_backIJRS1_S1_EEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), 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 noundef zeroext i1 @_ZNKSt6vectorISt4pairI5AngleS1_ESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_Z13intervalUnionI5AngleSt4lessIS0_EERSt6vectorISt4pairIT_S5_ESaIS6_EES9_T0_(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK5AngleeqES_(ptr noundef nonnull align 16 dereferenceable(32), ptr noundef byval(%struct.Angle) align 16) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorISt4pairI5AngleS1_ESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt4pairI5AngleS1_ESaIS2_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 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 = { mustprogress nocallback nofree nosync 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 = !{!6, !8, i64 32}
!6 = !{!"_ZTS6Circle", !7, i64 0, !8, i64 32}
!7 = !{!"_ZTS2pt", !8, i64 0, !8, i64 16}
!8 = !{!"long double", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{i64 0, i64 16, !12, i64 16, i64 16, !12, i64 32, i64 16, !12}
!12 = !{!8, !8, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{i64 0, i64 16, !12, i64 16, i64 16, !12}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass