; LLVM IR from ShahjalalShohag/code-library :: Geometry/Geometry 2D.ll (Z10get_circle4line2PTdR6circleS2_)

; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%struct.PT = type { double, double }
%"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.line = type { %struct.PT, %struct.PT, %struct.PT, double }
%struct.circle = type { %struct.PT, double }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z11rotateccw902PT(ptr dead_on_unwind noalias writable sret(%struct.PT) align 8, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z10rotatecw902PT(ptr dead_on_unwind noalias writable sret(%struct.PT) align 8, ptr noundef) #1

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK2PTplERKS_(ptr dead_on_unwind noalias writable sret(%struct.PT) align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_Z23dist_from_point_to_line2PTS_S_(ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z24circle_line_intersection2PTdS_S_(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, ptr noundef, double noundef, ptr noundef, ptr noundef) #1

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

; 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 nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK2PTeqES_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) #0 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 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z10get_circle4line2PTdR6circleS2_(ptr noundef %0, ptr noundef %1, double noundef %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %4) #1 personality ptr @__gxx_personality_v0 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca double, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca double, align 8
  %13 = alloca %struct.PT, align 8
  %14 = alloca %struct.PT, align 8
  %15 = alloca %struct.PT, align 8
  %16 = alloca i32, align 4
  %17 = alloca %struct.PT, align 8
  %18 = alloca %struct.PT, align 8
  %19 = alloca %struct.PT, align 8
  %20 = alloca %struct.PT, align 8
  %21 = alloca %struct.PT, align 8
  %22 = alloca %struct.PT, align 8
  %23 = alloca %struct.PT, align 8
  %24 = alloca %struct.PT, align 8
  %25 = alloca %struct.line, align 8
  %26 = alloca %struct.PT, align 8
  %27 = alloca %struct.PT, align 8
  %28 = alloca %struct.PT, align 8
  %29 = alloca %struct.PT, align 8
  %30 = alloca %struct.PT, align 8
  %31 = alloca %struct.PT, align 8
  %32 = alloca %struct.PT, align 8
  %33 = alloca %struct.PT, align 8
  %34 = alloca %struct.line, align 8
  %35 = alloca %struct.PT, align 8
  %36 = alloca %struct.PT, align 8
  %37 = alloca %struct.PT, align 8
  %38 = alloca %struct.PT, align 8
  %39 = alloca %struct.PT, align 8
  %40 = alloca %struct.PT, align 8
  %41 = alloca %struct.PT, align 8
  %42 = alloca %struct.PT, align 8
  %43 = alloca %struct.circle, align 8
  %44 = alloca %struct.PT, align 8
  %45 = alloca %struct.PT, align 8
  %46 = alloca %struct.PT, align 8
  %47 = alloca %"class.std::vector", align 8
  %48 = alloca %"class.std::vector", align 8
  %49 = alloca %struct.PT, align 8
  %50 = alloca ptr, align 8
  %51 = alloca i32, align 4
  %52 = alloca %struct.PT, align 8
  %53 = alloca %struct.PT, align 8
  %54 = alloca %"class.std::vector", align 8
  %55 = alloca %struct.PT, align 8
  %56 = alloca %struct.PT, align 8
  %57 = alloca %struct.PT, align 8
  %58 = alloca %struct.circle, align 8
  %59 = alloca %struct.PT, align 8
  %60 = alloca %struct.PT, align 8
  %61 = alloca %struct.circle, align 8
  %62 = alloca %struct.PT, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store double %2, ptr %9, align 8, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %63 = getelementptr inbounds %struct.line, ptr %0, i32 0, i32 0
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %63)
  %64 = getelementptr inbounds %struct.line, ptr %0, i32 0, i32 1
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(16) %64)
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %1)
  %65 = call noundef double @_Z23dist_from_point_to_line2PTS_S_(ptr noundef %13, ptr noundef %14, ptr noundef %15)
  store double %65, ptr %12, align 8, !tbaa !9
  %66 = load double, ptr %12, align 8, !tbaa !9
  %67 = load double, ptr %9, align 8, !tbaa !9
  %68 = fneg double %67
  %69 = call double @llvm.fmuladd.f64(double %68, double 2.000000e+00, double %66)
  %70 = call noundef i32 @_Z4signd(double noundef %69)
  %71 = icmp sgt i32 %70, 0
  br i1 %71, label %72, label %73

72:                                               ; preds = %5
  store i32 0, ptr %6, align 4
  store i32 1, ptr %16, align 4
  br label %176

73:                                               ; preds = %5
  %74 = load double, ptr %12, align 8, !tbaa !9
  %75 = call noundef i32 @_Z4signd(double noundef %74)
  %76 = icmp eq i32 %75, 0
  br i1 %76, label %77, label %101

77:                                               ; preds = %73
  %78 = getelementptr inbounds %struct.line, ptr %0, i32 0, i32 2
  %79 = getelementptr inbounds %struct.PT, ptr %78, i32 0, i32 0
  %80 = load double, ptr %79, align 8, !tbaa !11
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, double noundef %80)
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %81, i8 noundef signext 32)
  %83 = getelementptr inbounds %struct.line, ptr %0, i32 0, i32 2
  %84 = getelementptr inbounds %struct.PT, ptr %83, i32 0, i32 1
  %85 = load double, ptr %84, align 8, !tbaa !14
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %82, double noundef %85)
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %86, i8 noundef signext 10)
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #6
  %88 = getelementptr inbounds %struct.line, ptr %0, i32 0, i32 2
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(16) %88)
  call void @_Z11rotateccw902PT(ptr dead_on_unwind writable sret(%struct.PT) align 8 %19, ptr noundef %20)
  %89 = load double, ptr %9, align 8, !tbaa !9
  call void @_ZN2PT8truncateEd(ptr dead_on_unwind writable sret(%struct.PT) align 8 %18, ptr noundef nonnull align 8 dereferenceable(16) %19, double noundef %89)
  call void @_ZNK2PTplERKS_(ptr dead_on_unwind writable sret(%struct.PT) align 8 %17, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(16) %18)
  %90 = load ptr, ptr %10, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.circle, ptr %90, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %91, ptr align 8 %17, i64 16, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #6
  %92 = getelementptr inbounds %struct.line, ptr %0, i32 0, i32 2
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(16) %92)
  call void @_Z10rotatecw902PT(ptr dead_on_unwind writable sret(%struct.PT) align 8 %23, ptr noundef %24)
  %93 = load double, ptr %9, align 8, !tbaa !9
  call void @_ZN2PT8truncateEd(ptr dead_on_unwind writable sret(%struct.PT) align 8 %22, ptr noundef nonnull align 8 dereferenceable(16) %23, double noundef %93)
  call void @_ZNK2PTplERKS_(ptr dead_on_unwind writable sret(%struct.PT) align 8 %21, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(16) %22)
  %94 = load ptr, ptr %11, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.circle, ptr %94, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %95, ptr align 8 %21, i64 16, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #6
  %96 = load double, ptr %9, align 8, !tbaa !9
  %97 = load ptr, ptr %11, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.circle, ptr %97, i32 0, i32 1
  store double %96, ptr %98, align 8, !tbaa !16
  %99 = load ptr, ptr %10, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.circle, ptr %99, i32 0, i32 1
  store double %96, ptr %100, align 8, !tbaa !16
  store i32 2, ptr %6, align 4
  store i32 1, ptr %16, align 4
  br label %176

101:                                              ; preds = %73
  call void @llvm.lifetime.start.p0(i64 56, ptr %25) #6
  %102 = getelementptr inbounds %struct.line, ptr %0, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #6
  %103 = getelementptr inbounds %struct.line, ptr %0, i32 0, i32 2
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef nonnull align 8 dereferenceable(16) %103)
  call void @_Z11rotateccw902PT(ptr dead_on_unwind writable sret(%struct.PT) align 8 %28, ptr noundef %29)
  %104 = load double, ptr %9, align 8, !tbaa !9
  call void @_ZN2PT8truncateEd(ptr dead_on_unwind writable sret(%struct.PT) align 8 %27, ptr noundef nonnull align 8 dereferenceable(16) %28, double noundef %104)
  call void @_ZNK2PTplERKS_(ptr dead_on_unwind writable sret(%struct.PT) align 8 %26, ptr noundef nonnull align 8 dereferenceable(16) %102, ptr noundef nonnull align 8 dereferenceable(16) %27)
  %105 = getelementptr inbounds %struct.line, ptr %0, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #6
  %106 = getelementptr inbounds %struct.line, ptr %0, i32 0, i32 2
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %33, ptr noundef nonnull align 8 dereferenceable(16) %106)
  call void @_Z11rotateccw902PT(ptr dead_on_unwind writable sret(%struct.PT) align 8 %32, ptr noundef %33)
  %107 = load double, ptr %9, align 8, !tbaa !9
  call void @_ZN2PT8truncateEd(ptr dead_on_unwind writable sret(%struct.PT) align 8 %31, ptr noundef nonnull align 8 dereferenceable(16) %32, double noundef %107)
  call void @_ZNK2PTplERKS_(ptr dead_on_unwind writable sret(%struct.PT) align 8 %30, ptr noundef nonnull align 8 dereferenceable(16) %105, ptr noundef nonnull align 8 dereferenceable(16) %31)
  call void @_ZN4lineC2E2PTS0_(ptr noundef nonnull align 8 dereferenceable(56) %25, ptr noundef %26, ptr noundef %30)
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 56, ptr %34) #6
  %108 = getelementptr inbounds %struct.line, ptr %0, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %37) #6
  %109 = getelementptr inbounds %struct.line, ptr %0, i32 0, i32 2
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %38, ptr noundef nonnull align 8 dereferenceable(16) %109)
  call void @_Z10rotatecw902PT(ptr dead_on_unwind writable sret(%struct.PT) align 8 %37, ptr noundef %38)
  %110 = load double, ptr %9, align 8, !tbaa !9
  call void @_ZN2PT8truncateEd(ptr dead_on_unwind writable sret(%struct.PT) align 8 %36, ptr noundef nonnull align 8 dereferenceable(16) %37, double noundef %110)
  call void @_ZNK2PTplERKS_(ptr dead_on_unwind writable sret(%struct.PT) align 8 %35, ptr noundef nonnull align 8 dereferenceable(16) %108, ptr noundef nonnull align 8 dereferenceable(16) %36)
  %111 = getelementptr inbounds %struct.line, ptr %0, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %41) #6
  %112 = getelementptr inbounds %struct.line, ptr %0, i32 0, i32 2
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %42, ptr noundef nonnull align 8 dereferenceable(16) %112)
  call void @_Z10rotatecw902PT(ptr dead_on_unwind writable sret(%struct.PT) align 8 %41, ptr noundef %42)
  %113 = load double, ptr %9, align 8, !tbaa !9
  call void @_ZN2PT8truncateEd(ptr dead_on_unwind writable sret(%struct.PT) align 8 %40, ptr noundef nonnull align 8 dereferenceable(16) %41, double noundef %113)
  call void @_ZNK2PTplERKS_(ptr dead_on_unwind writable sret(%struct.PT) align 8 %39, ptr noundef nonnull align 8 dereferenceable(16) %111, ptr noundef nonnull align 8 dereferenceable(16) %40)
  call void @_ZN4lineC2E2PTS0_(ptr noundef nonnull align 8 dereferenceable(56) %34, ptr noundef %35, ptr noundef %39)
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %43) #6
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %44, ptr noundef nonnull align 8 dereferenceable(16) %1)
  %114 = load double, ptr %9, align 8, !tbaa !9
  call void @_ZN6circleC2E2PTd(ptr noundef nonnull align 8 dereferenceable(24) %43, ptr noundef %44, double noundef %114)
  call void @llvm.lifetime.start.p0(i64 16, ptr %45) #6
  call void @_ZN2PTC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %45)
  call void @llvm.lifetime.start.p0(i64 16, ptr %46) #6
  call void @_ZN2PTC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %46)
  call void @llvm.lifetime.start.p0(i64 24, ptr %47) #6
  call void @_ZNSt6vectorI2PTSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %47) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %48) #6
  invoke void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %49, ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %115 unwind label %134

115:                                              ; preds = %101
  %116 = load double, ptr %9, align 8, !tbaa !9
  %117 = getelementptr inbounds %struct.line, ptr %25, i32 0, i32 0
  invoke void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %52, ptr noundef nonnull align 8 dereferenceable(16) %117)
          to label %118 unwind label %134

118:                                              ; preds = %115
  %119 = getelementptr inbounds %struct.line, ptr %25, i32 0, i32 1
  invoke void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %53, ptr noundef nonnull align 8 dereferenceable(16) %119)
          to label %120 unwind label %134

120:                                              ; preds = %118
  invoke void @_Z24circle_line_intersection2PTdS_S_(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %48, ptr noundef %49, double noundef %116, ptr noundef %52, ptr noundef %53)
          to label %121 unwind label %134

121:                                              ; preds = %120
  %122 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI2PTSaIS0_EEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %47, ptr noundef nonnull align 8 dereferenceable(24) %48) #6
  call void @_ZNSt6vectorI2PTSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %48) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %48) #6
  %123 = call noundef i64 @_ZNKSt6vectorI2PTSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %47) #6
  %124 = icmp ne i64 %123, 0
  br i1 %124, label %142, label %125

125:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 24, ptr %54) #6
  invoke void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %55, ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %126 unwind label %138

126:                                              ; preds = %125
  %127 = load double, ptr %9, align 8, !tbaa !9
  %128 = getelementptr inbounds %struct.line, ptr %34, i32 0, i32 0
  invoke void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %56, ptr noundef nonnull align 8 dereferenceable(16) %128)
          to label %129 unwind label %138

129:                                              ; preds = %126
  %130 = getelementptr inbounds %struct.line, ptr %34, i32 0, i32 1
  invoke void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %57, ptr noundef nonnull align 8 dereferenceable(16) %130)
          to label %131 unwind label %138

131:                                              ; preds = %129
  invoke void @_Z24circle_line_intersection2PTdS_S_(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %54, ptr noundef %55, double noundef %127, ptr noundef %56, ptr noundef %57)
          to label %132 unwind label %138

132:                                              ; preds = %131
  %133 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI2PTSaIS0_EEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %47, ptr noundef nonnull align 8 dereferenceable(24) %54) #6
  call void @_ZNSt6vectorI2PTSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %54) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %54) #6
  br label %142

134:                                              ; preds = %120, %118, %115, %101
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %50, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %51, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %48) #6
  br label %175

138:                                              ; preds = %131, %129, %126, %125
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %50, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %51, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %54) #6
  br label %175

142:                                              ; preds = %132, %121
  %143 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %47, i64 noundef 0) #6
  invoke void @_ZNSt6vectorI2PTSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %47, ptr noundef nonnull align 8 dereferenceable(16) %143)
          to label %144 unwind label %157

144:                                              ; preds = %142
  %145 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %47, i64 noundef 0) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %45, ptr align 8 %145, i64 16, i1 false), !tbaa.struct !15
  %146 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %47, i64 noundef 1) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %46, ptr align 8 %146, i64 16, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.start.p0(i64 24, ptr %58) #6
  invoke void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %59, ptr noundef nonnull align 8 dereferenceable(16) %45)
          to label %147 unwind label %161

147:                                              ; preds = %144
  %148 = load double, ptr %9, align 8, !tbaa !9
  invoke void @_ZN6circleC2E2PTd(ptr noundef nonnull align 8 dereferenceable(24) %58, ptr noundef %59, double noundef %148)
          to label %149 unwind label %161

149:                                              ; preds = %147
  %150 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %150, ptr align 8 %58, i64 24, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 24, ptr %58) #6
  invoke void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %60, ptr noundef nonnull align 8 dereferenceable(16) %46)
          to label %151 unwind label %157

151:                                              ; preds = %149
  %152 = invoke noundef zeroext i1 @_ZNK2PTeqES_(ptr noundef nonnull align 8 dereferenceable(16) %45, ptr noundef %60)
          to label %153 unwind label %157

153:                                              ; preds = %151
  br i1 %152, label %154, label %165

154:                                              ; preds = %153
  %155 = load ptr, ptr %10, align 8, !tbaa !5
  %156 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %156, ptr align 8 %155, i64 24, i1 false), !tbaa.struct !18
  store i32 1, ptr %6, align 4
  store i32 1, ptr %16, align 4
  br label %174

157:                                              ; preds = %151, %149, %142
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %50, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %51, align 4
  br label %175

161:                                              ; preds = %147, %144
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %50, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %51, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %58) #6
  br label %175

165:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 24, ptr %61) #6
  invoke void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %62, ptr noundef nonnull align 8 dereferenceable(16) %46)
          to label %166 unwind label %170

166:                                              ; preds = %165
  %167 = load double, ptr %9, align 8, !tbaa !9
  invoke void @_ZN6circleC2E2PTd(ptr noundef nonnull align 8 dereferenceable(24) %61, ptr noundef %62, double noundef %167)
          to label %168 unwind label %170

168:                                              ; preds = %166
  %169 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %169, ptr align 8 %61, i64 24, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 24, ptr %61) #6
  store i32 2, ptr %6, align 4
  store i32 1, ptr %16, align 4
  br label %174

170:                                              ; preds = %166, %165
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %50, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %51, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %61) #6
  br label %175

174:                                              ; preds = %168, %154
  call void @_ZNSt6vectorI2PTSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %47) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %47) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %46) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %45) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %43) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %25) #6
  br label %176

175:                                              ; preds = %170, %161, %157, %138, %134
  call void @_ZNSt6vectorI2PTSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %47) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %47) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %46) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %45) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %43) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %178

176:                                              ; preds = %174, %77, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  %177 = load i32, ptr %6, align 4
  ret i32 %177

178:                                              ; preds = %175
  %179 = load ptr, ptr %50, align 8
  %180 = load i32, ptr %51, align 4
  %181 = insertvalue { ptr, i32 } poison, ptr %179, 0
  %182 = insertvalue { ptr, i32 } %181, i32 %180, 1
  resume { ptr, i32 } %182
}

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2PT8truncateEd(ptr dead_on_unwind noalias writable sret(%struct.PT) align 8, ptr noundef nonnull align 8 dereferenceable(16), double noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4lineC2E2PTS0_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef, ptr noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6circleC2E2PTd(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, double noundef) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI2PTSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) #1 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 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { inlinehint 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 #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 = !{!"double", !7, i64 0}
!11 = !{!12, !10, i64 32}
!12 = !{!"_ZTS4line", !13, i64 0, !13, i64 16, !13, i64 32, !10, i64 48}
!13 = !{!"_ZTS2PT", !10, i64 0, !10, i64 8}
!14 = !{!12, !10, i64 40}
!15 = !{i64 0, i64 8, !9, i64 8, i64 8, !9}
!16 = !{!17, !10, i64 16}
!17 = !{!"_ZTS6circle", !13, i64 0, !10, i64 16}
!18 = !{i64 0, i64 8, !9, i64 8, i64 8, !9, i64 16, i64 8, !9}


; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%struct.PT = type { double, double }
%"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.line = type { %struct.PT, %struct.PT, %struct.PT, double }
%struct.circle = type { %struct.PT, double }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z11rotateccw902PT(ptr dead_on_unwind noalias writable sret(%struct.PT) align 8, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z10rotatecw902PT(ptr dead_on_unwind noalias writable sret(%struct.PT) align 8, ptr noundef) local_unnamed_addr #1

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK2PTplERKS_(ptr dead_on_unwind noalias writable sret(%struct.PT) align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_Z23dist_from_point_to_line2PTS_S_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z24circle_line_intersection2PTdS_S_(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, ptr noundef, double noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

; 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 nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK2PTeqES_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) local_unnamed_addr #0 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 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 3) i32 @_Z10get_circle4line2PTdR6circleS2_(ptr noundef nonnull %0, ptr noundef %1, double noundef %2, ptr nocapture noundef nonnull align 8 dereferenceable(24) %3, ptr nocapture noundef nonnull writeonly align 8 dereferenceable(24) %4) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %6 = alloca %struct.PT, align 8
  %7 = alloca %struct.PT, align 8
  %8 = alloca %struct.PT, align 8
  %9 = alloca %struct.PT, align 8
  %10 = alloca %struct.PT, align 8
  %11 = alloca %struct.PT, align 8
  %12 = alloca %struct.PT, align 8
  %13 = alloca %struct.PT, align 8
  %14 = alloca %struct.PT, align 8
  %15 = alloca %struct.PT, align 8
  %16 = alloca %struct.PT, align 8
  %17 = alloca %struct.line, align 8
  %18 = alloca %struct.PT, align 8
  %19 = alloca %struct.PT, align 8
  %20 = alloca %struct.PT, align 8
  %21 = alloca %struct.PT, align 8
  %22 = alloca %struct.PT, align 8
  %23 = alloca %struct.PT, align 8
  %24 = alloca %struct.PT, align 8
  %25 = alloca %struct.PT, align 8
  %26 = alloca %struct.line, align 8
  %27 = alloca %struct.PT, align 8
  %28 = alloca %struct.PT, align 8
  %29 = alloca %struct.PT, align 8
  %30 = alloca %struct.PT, align 8
  %31 = alloca %struct.PT, align 8
  %32 = alloca %struct.PT, align 8
  %33 = alloca %struct.PT, align 8
  %34 = alloca %struct.PT, align 8
  %35 = alloca %struct.circle, align 8
  %36 = alloca %struct.PT, align 8
  %37 = alloca %struct.PT, align 8
  %38 = alloca %struct.PT, align 8
  %39 = alloca %"class.std::vector", align 8
  %40 = alloca %"class.std::vector", align 8
  %41 = alloca %struct.PT, align 8
  %42 = alloca %struct.PT, align 8
  %43 = alloca %struct.PT, align 8
  %44 = alloca %"class.std::vector", align 8
  %45 = alloca %struct.PT, align 8
  %46 = alloca %struct.PT, align 8
  %47 = alloca %struct.PT, align 8
  %48 = alloca %struct.circle, align 8
  %49 = alloca %struct.PT, align 8
  %50 = alloca %struct.PT, align 8
  %51 = alloca %struct.circle, align 8
  %52 = alloca %struct.PT, align 8
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %0)
  %53 = getelementptr inbounds i8, ptr %0, i64 16
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %53)
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %1)
  %54 = call noundef double @_Z23dist_from_point_to_line2PTS_S_(ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8)
  %55 = fneg double %2
  %56 = call double @llvm.fmuladd.f64(double %55, double 2.000000e+00, double %54)
  %57 = call noundef i32 @_Z4signd(double noundef %56)
  %58 = icmp sgt i32 %57, 0
  br i1 %58, label %105, label %59

59:                                               ; preds = %5
  %60 = call noundef i32 @_Z4signd(double noundef %54)
  %61 = icmp eq i32 %60, 0
  br i1 %61, label %62, label %73

62:                                               ; preds = %59
  %63 = getelementptr inbounds i8, ptr %0, i64 32
  %64 = load double, ptr %63, align 8, !tbaa !5
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, double noundef %64)
  %66 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %65, i8 noundef signext 32)
  %67 = getelementptr inbounds i8, ptr %0, i64 40
  %68 = load double, ptr %67, align 8, !tbaa !11
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %66, double noundef %68)
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %69, i8 noundef signext 10)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #6
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %63)
  call void @_Z11rotateccw902PT(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %11, ptr noundef nonnull %12)
  call void @_ZN2PT8truncateEd(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %10, ptr noundef nonnull align 8 dereferenceable(16) %11, double noundef %2)
  call void @_ZNK2PTplERKS_(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %9, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(16) %10)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %9, i64 16, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #6
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(16) %63)
  call void @_Z10rotatecw902PT(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %15, ptr noundef nonnull %16)
  call void @_ZN2PT8truncateEd(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %14, ptr noundef nonnull align 8 dereferenceable(16) %15, double noundef %2)
  call void @_ZNK2PTplERKS_(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %13, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(16) %14)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %13, i64 16, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  %71 = getelementptr inbounds i8, ptr %4, i64 16
  store double %2, ptr %71, align 8, !tbaa !14
  %72 = getelementptr inbounds i8, ptr %3, i64 16
  store double %2, ptr %72, align 8, !tbaa !14
  br label %105

73:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #6
  %74 = getelementptr inbounds i8, ptr %0, i64 32
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(16) %74)
  call void @_Z11rotateccw902PT(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %20, ptr noundef nonnull %21)
  call void @_ZN2PT8truncateEd(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %19, ptr noundef nonnull align 8 dereferenceable(16) %20, double noundef %2)
  call void @_ZNK2PTplERKS_(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %18, ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %19)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %23) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %24) #6
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(16) %74)
  call void @_Z11rotateccw902PT(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %24, ptr noundef nonnull %25)
  call void @_ZN2PT8truncateEd(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %23, ptr noundef nonnull align 8 dereferenceable(16) %24, double noundef %2)
  call void @_ZNK2PTplERKS_(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %22, ptr noundef nonnull align 8 dereferenceable(16) %53, ptr noundef nonnull align 8 dereferenceable(16) %23)
  call void @_ZN4lineC2E2PTS0_(ptr noundef nonnull align 8 dereferenceable(56) %17, ptr noundef nonnull %18, ptr noundef nonnull %22)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #6
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %26) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %28) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %29) #6
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 8 dereferenceable(16) %74)
  call void @_Z10rotatecw902PT(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %29, ptr noundef nonnull %30)
  call void @_ZN2PT8truncateEd(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %28, ptr noundef nonnull align 8 dereferenceable(16) %29, double noundef %2)
  call void @_ZNK2PTplERKS_(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %27, ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %28)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %32) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %33) #6
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %34, ptr noundef nonnull align 8 dereferenceable(16) %74)
  call void @_Z10rotatecw902PT(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %33, ptr noundef nonnull %34)
  call void @_ZN2PT8truncateEd(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %32, ptr noundef nonnull align 8 dereferenceable(16) %33, double noundef %2)
  call void @_ZNK2PTplERKS_(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %31, ptr noundef nonnull align 8 dereferenceable(16) %53, ptr noundef nonnull align 8 dereferenceable(16) %32)
  call void @_ZN4lineC2E2PTS0_(ptr noundef nonnull align 8 dereferenceable(56) %26, ptr noundef nonnull %27, ptr noundef nonnull %31)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %33) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %32) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %29) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %28) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %35) #6
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %36, ptr noundef nonnull align 8 dereferenceable(16) %1)
  call void @_ZN6circleC2E2PTd(ptr noundef nonnull align 8 dereferenceable(24) %35, ptr noundef nonnull %36, double noundef %2)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %37) #6
  call void @_ZN2PTC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %37)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %38) #6
  call void @_ZN2PTC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %38)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %39) #6
  call void @_ZNSt6vectorI2PTSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %39) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %40) #6
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %41, ptr noundef nonnull align 8 dereferenceable(16) %1)
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %42, ptr noundef nonnull align 8 dereferenceable(16) %17)
  %75 = getelementptr inbounds i8, ptr %17, i64 16
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %43, ptr noundef nonnull align 8 dereferenceable(16) %75)
  invoke void @_Z24circle_line_intersection2PTdS_S_(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %40, ptr noundef nonnull %41, double noundef %2, ptr noundef nonnull %42, ptr noundef nonnull %43)
          to label %76 unwind label %83

76:                                               ; preds = %73
  %77 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI2PTSaIS0_EEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %39, ptr noundef nonnull align 8 dereferenceable(24) %40) #6
  call void @_ZNSt6vectorI2PTSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %40) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %40) #6
  %78 = call noundef i64 @_ZNKSt6vectorI2PTSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #6
  %.not = icmp eq i64 %78, 0
  br i1 %.not, label %79, label %87

79:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %44) #6
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %45, ptr noundef nonnull align 8 dereferenceable(16) %1)
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %46, ptr noundef nonnull align 8 dereferenceable(16) %26)
  %80 = getelementptr inbounds i8, ptr %26, i64 16
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %47, ptr noundef nonnull align 8 dereferenceable(16) %80)
  invoke void @_Z24circle_line_intersection2PTdS_S_(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %44, ptr noundef nonnull %45, double noundef %2, ptr noundef nonnull %46, ptr noundef nonnull %47)
          to label %81 unwind label %85

81:                                               ; preds = %79
  %82 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI2PTSaIS0_EEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %39, ptr noundef nonnull align 8 dereferenceable(24) %44) #6
  call void @_ZNSt6vectorI2PTSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %44) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %44) #6
  br label %87

83:                                               ; preds = %73
  %84 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %40) #6
  br label %104

85:                                               ; preds = %79
  %86 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %44) #6
  br label %104

87:                                               ; preds = %81, %76
  %88 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef 0) #6
  invoke void @_ZNSt6vectorI2PTSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %39, ptr noundef nonnull align 8 dereferenceable(16) %88)
          to label %89 unwind label %95

89:                                               ; preds = %87
  %90 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef 0) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %37, ptr noundef nonnull align 8 dereferenceable(16) %90, i64 16, i1 false), !tbaa.struct !12
  %91 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef 1) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %38, ptr noundef nonnull align 8 dereferenceable(16) %91, i64 16, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %48) #6
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %49, ptr noundef nonnull align 8 dereferenceable(16) %37)
  invoke void @_ZN6circleC2E2PTd(ptr noundef nonnull align 8 dereferenceable(24) %48, ptr noundef nonnull %49, double noundef %2)
          to label %92 unwind label %97

92:                                               ; preds = %89
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %48, i64 24, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %48) #6
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %50, ptr noundef nonnull align 8 dereferenceable(16) %38)
  %93 = call noundef zeroext i1 @_ZNK2PTeqES_(ptr noundef nonnull align 8 dereferenceable(16) %37, ptr noundef nonnull %50)
  br i1 %93, label %94, label %99

94:                                               ; preds = %92
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %3, i64 24, i1 false), !tbaa.struct !16
  br label %103

95:                                               ; preds = %87
  %96 = landingpad { ptr, i32 }
          cleanup
  br label %104

97:                                               ; preds = %89
  %98 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %48) #6
  br label %104

99:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %51) #6
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %52, ptr noundef nonnull align 8 dereferenceable(16) %38)
  invoke void @_ZN6circleC2E2PTd(ptr noundef nonnull align 8 dereferenceable(24) %51, ptr noundef nonnull %52, double noundef %2)
          to label %100 unwind label %101

100:                                              ; preds = %99
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %51, i64 24, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %51) #6
  br label %103

101:                                              ; preds = %99
  %102 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %51) #6
  br label %104

103:                                              ; preds = %100, %94
  %.026 = phi i32 [ 1, %94 ], [ 2, %100 ]
  call void @_ZNSt6vectorI2PTSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %39) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %39) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %38) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %37) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %35) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %26) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %17) #6
  br label %105

104:                                              ; preds = %101, %97, %95, %85, %83
  %.pn = phi { ptr, i32 } [ %102, %101 ], [ %98, %97 ], [ %96, %95 ], [ %86, %85 ], [ %84, %83 ]
  call void @_ZNSt6vectorI2PTSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %39) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %39) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %38) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %37) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %35) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %26) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %17) #6
  resume { ptr, i32 } %.pn

105:                                              ; preds = %5, %103, %62
  %.1 = phi i32 [ 2, %62 ], [ %.026, %103 ], [ 0, %5 ]
  ret i32 %.1
}

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2PT8truncateEd(ptr dead_on_unwind noalias writable sret(%struct.PT) align 8, ptr noundef nonnull align 8 dereferenceable(16), double noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4lineC2E2PTS0_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef, ptr noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6circleC2E2PTd(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, double noundef) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI2PTSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 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 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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { inlinehint 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 #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 = !{!"_ZTS4line", !7, i64 0, !7, i64 16, !7, i64 32, !8, i64 48}
!7 = !{!"_ZTS2PT", !8, i64 0, !8, i64 8}
!8 = !{!"double", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!6, !8, i64 40}
!12 = !{i64 0, i64 8, !13, i64 8, i64 8, !13}
!13 = !{!8, !8, i64 0}
!14 = !{!15, !8, i64 16}
!15 = !{!"_ZTS6circle", !7, i64 0, !8, i64 16}
!16 = !{i64 0, i64 8, !13, i64 8, i64 8, !13, i64 16, i64 8, !13}


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