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

; 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 }
%"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.Circle = type { %struct.pt, x86_fp80 }
%struct.Line = type { %struct.pt, x86_fp80 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z22circleLineIntersection6Circle4Line(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, ptr noundef byval(%struct.Circle) align 16, ptr noundef byval(%struct.Line) align 16) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z21circleSegIntersection6Circle2ptS0_(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, ptr noundef byval(%struct.Circle) align 16 %1, ptr noundef byval(%struct.pt) align 16 %2, ptr noundef byval(%struct.pt) align 16 %3) #2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca i1, align 1
  %7 = alloca %struct.pt, align 16
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %struct.pt, align 16
  %11 = alloca %struct.Line, align 16
  %12 = alloca %struct.pt, align 16
  %13 = alloca %struct.pt, align 16
  %14 = alloca ptr, align 8
  %15 = alloca %"class.std::vector", align 8
  %16 = alloca %struct.Circle, align 16
  %17 = alloca %struct.Line, align 16
  %18 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca ptr, align 8
  %21 = alloca %struct.pt, align 16
  %22 = alloca %struct.pt, align 16
  %23 = alloca %struct.pt, align 16
  %24 = alloca %struct.pt, align 16
  store ptr %0, ptr %5, align 8
  store i1 false, ptr %6, align 1
  call void @_ZNSt6vectorI2ptSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %7, ptr align 16 %3, i64 32, i1 false), !tbaa.struct !5
  %25 = invoke noundef zeroext i1 @_ZNK2pteqES_(ptr noundef nonnull align 16 dereferenceable(32) %2, ptr noundef byval(%struct.pt) align 16 %7)
          to label %26 unwind label %33

26:                                               ; preds = %4
  br i1 %25, label %27, label %38

27:                                               ; preds = %26
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %10, ptr align 16 %2, i64 32, i1 false), !tbaa.struct !5
  %28 = invoke noundef i32 @_ZNK6Circle8containsE2pt(ptr noundef nonnull align 16 dereferenceable(48) %1, ptr noundef byval(%struct.pt) align 16 %10)
          to label %29 unwind label %33

29:                                               ; preds = %27
  %30 = icmp eq i32 %28, 0
  br i1 %30, label %31, label %37

31:                                               ; preds = %29
  invoke void @_ZNSt6vectorI2ptSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 16 dereferenceable(32) %2)
          to label %32 unwind label %33

32:                                               ; preds = %31
  br label %37

33:                                               ; preds = %31, %27, %4
  %34 = landingpad { ptr, i32 }
          cleanup
  %35 = extractvalue { ptr, i32 } %34, 0
  store ptr %35, ptr %8, align 8
  %36 = extractvalue { ptr, i32 } %34, 1
  store i32 %36, ptr %9, align 4
  br label %86

37:                                               ; preds = %32, %29
  br label %82

38:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 48, ptr %11) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %12, ptr align 16 %2, i64 32, i1 false), !tbaa.struct !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %13, ptr align 16 %3, i64 32, i1 false), !tbaa.struct !5
  invoke void @_ZN4LineC2E2ptS0_(ptr noundef nonnull align 16 dereferenceable(48) %11, ptr noundef byval(%struct.pt) align 16 %12, ptr noundef byval(%struct.pt) align 16 %13)
          to label %39 unwind label %50

39:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %16, ptr align 16 %1, i64 48, i1 false), !tbaa.struct !10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %17, ptr align 16 %11, i64 48, i1 false), !tbaa.struct !10
  invoke void @_Z22circleLineIntersection6Circle4Line(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %15, ptr noundef byval(%struct.Circle) align 16 %16, ptr noundef byval(%struct.Line) align 16 %17)
          to label %40 unwind label %54

40:                                               ; preds = %39
  store ptr %15, ptr %14, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %41 = load ptr, ptr %14, align 8, !tbaa !11
  %42 = call ptr @_ZNSt6vectorI2ptSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %41) #5
  %43 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  store ptr %42, ptr %43, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %44 = load ptr, ptr %14, align 8, !tbaa !11
  %45 = call ptr @_ZNSt6vectorI2ptSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %44) #5
  %46 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  store ptr %45, ptr %46, align 8
  br label %47

47:                                               ; preds = %77, %40
  %48 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP2ptSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #5
  br i1 %48, label %58, label %49

49:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @_ZNSt6vectorI2ptSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %80

50:                                               ; preds = %38
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %8, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %9, align 4
  br label %81

54:                                               ; preds = %39
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %8, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %9, align 4
  br label %79

58:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %59 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #5
  store ptr %59, ptr %20, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %21, ptr align 16 %2, i64 32, i1 false), !tbaa.struct !5
  %60 = load ptr, ptr %20, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %22, ptr align 16 %60, i64 32, i1 false), !tbaa.struct !5
  %61 = invoke noundef i32 @_ZNK4Line7cmpProjE2ptS0_(ptr noundef nonnull align 16 dereferenceable(48) %11, ptr noundef byval(%struct.pt) align 16 %21, ptr noundef byval(%struct.pt) align 16 %22)
          to label %62 unwind label %72

62:                                               ; preds = %58
  %63 = icmp sle i32 %61, 0
  br i1 %63, label %64, label %76

64:                                               ; preds = %62
  %65 = load ptr, ptr %20, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %23, ptr align 16 %65, i64 32, i1 false), !tbaa.struct !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %24, ptr align 16 %3, i64 32, i1 false), !tbaa.struct !5
  %66 = invoke noundef i32 @_ZNK4Line7cmpProjE2ptS0_(ptr noundef nonnull align 16 dereferenceable(48) %11, ptr noundef byval(%struct.pt) align 16 %23, ptr noundef byval(%struct.pt) align 16 %24)
          to label %67 unwind label %72

67:                                               ; preds = %64
  %68 = icmp sle i32 %66, 0
  br i1 %68, label %69, label %76

69:                                               ; preds = %67
  %70 = load ptr, ptr %20, align 8, !tbaa !11
  invoke void @_ZNSt6vectorI2ptSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 16 dereferenceable(32) %70)
          to label %71 unwind label %72

71:                                               ; preds = %69
  br label %76

72:                                               ; preds = %69, %64, %58
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %8, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @_ZNSt6vectorI2ptSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #5
  br label %79

76:                                               ; preds = %71, %67, %62
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %77

77:                                               ; preds = %76
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #5
  br label %47

79:                                               ; preds = %72, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %81

80:                                               ; preds = %49
  call void @llvm.lifetime.end.p0(i64 48, ptr %11) #5
  br label %82

81:                                               ; preds = %79, %50
  call void @llvm.lifetime.end.p0(i64 48, ptr %11) #5
  br label %86

82:                                               ; preds = %80, %37
  store i1 true, ptr %6, align 1
  %83 = load i1, ptr %6, align 1
  br i1 %83, label %85, label %84

84:                                               ; preds = %82
  call void @_ZNSt6vectorI2ptSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  br label %85

85:                                               ; preds = %84, %82
  ret void

86:                                               ; preds = %81, %33
  call void @_ZNSt6vectorI2ptSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  br label %87

87:                                               ; preds = %86
  %88 = load ptr, ptr %8, align 8
  %89 = load i32, ptr %9, align 4
  %90 = insertvalue { ptr, i32 } poison, ptr %88, 0
  %91 = insertvalue { ptr, i32 } %90, i32 %89, 1
  resume { ptr, i32 } %91
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK6Circle8containsE2pt(ptr noundef nonnull align 16 dereferenceable(48), ptr noundef byval(%struct.pt) align 16) #2 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 #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIP2ptSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

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

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

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


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

%struct.pt = type { x86_fp80, x86_fp80 }
%"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.Circle = type { %struct.pt, x86_fp80 }
%struct.Line = type { %struct.pt, x86_fp80 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z22circleLineIntersection6Circle4Line(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, ptr noundef byval(%struct.Circle) align 16, ptr noundef byval(%struct.Line) align 16) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z21circleSegIntersection6Circle2ptS0_(ptr dead_on_unwind noalias nonnull writable sret(%"class.std::vector") align 8 %0, ptr noundef byval(%struct.Circle) align 16 %1, ptr noundef byval(%struct.pt) align 16 %2, ptr nocapture noundef readonly byval(%struct.pt) align 16 %3) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %5 = alloca %struct.Line, align 16
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  tail call void @_ZNSt6vectorI2ptSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  %9 = invoke noundef zeroext i1 @_ZNK2pteqES_(ptr noundef nonnull align 16 dereferenceable(32) %2, ptr noundef nonnull byval(%struct.pt) align 16 %3)
          to label %10 unwind label %16

10:                                               ; preds = %4
  br i1 %9, label %11, label %18

11:                                               ; preds = %10
  %12 = invoke noundef i32 @_ZNK6Circle8containsE2pt(ptr noundef nonnull align 16 dereferenceable(48) %1, ptr noundef nonnull byval(%struct.pt) align 16 %2)
          to label %13 unwind label %16

13:                                               ; preds = %11
  %14 = icmp eq i32 %12, 0
  br i1 %14, label %15, label %41

15:                                               ; preds = %13
  invoke void @_ZNSt6vectorI2ptSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 16 dereferenceable(32) %2)
          to label %41 unwind label %16

16:                                               ; preds = %15, %11, %4
  %17 = landingpad { ptr, i32 }
          cleanup
  br label %42

18:                                               ; preds = %10
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #4
  invoke void @_ZN4LineC2E2ptS0_(ptr noundef nonnull align 16 dereferenceable(48) %5, ptr noundef nonnull byval(%struct.pt) align 16 %2, ptr noundef nonnull byval(%struct.pt) align 16 %3)
          to label %19 unwind label %24

19:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #4
  invoke void @_Z22circleLineIntersection6Circle4Line(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %6, ptr noundef nonnull byval(%struct.Circle) align 16 %1, ptr noundef nonnull byval(%struct.Line) align 16 %5)
          to label %20 unwind label %26

20:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  %21 = call ptr @_ZNSt6vectorI2ptSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  store ptr %21, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %22 = call ptr @_ZNSt6vectorI2ptSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  store ptr %22, ptr %8, align 8
  %23 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP2ptSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  br i1 %23, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %37, %20
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  call void @_ZNSt6vectorI2ptSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #4
  br label %41

24:                                               ; preds = %18
  %25 = landingpad { ptr, i32 }
          cleanup
  br label %40

26:                                               ; preds = %19
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %40

.lr.ph:                                           ; preds = %20, %37
  %28 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %29 = call noundef i32 @_ZNK4Line7cmpProjE2ptS0_(ptr noundef nonnull align 16 dereferenceable(48) %5, ptr noundef nonnull byval(%struct.pt) align 16 %2, ptr noundef nonnull byval(%struct.pt) align 16 %28)
  %30 = icmp slt i32 %29, 1
  br i1 %30, label %31, label %37

31:                                               ; preds = %.lr.ph
  %32 = call noundef i32 @_ZNK4Line7cmpProjE2ptS0_(ptr noundef nonnull align 16 dereferenceable(48) %5, ptr noundef nonnull byval(%struct.pt) align 16 %28, ptr noundef nonnull byval(%struct.pt) align 16 %3)
  %33 = icmp slt i32 %32, 1
  br i1 %33, label %34, label %37

34:                                               ; preds = %31
  invoke void @_ZNSt6vectorI2ptSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 16 dereferenceable(32) %28)
          to label %37 unwind label %35

35:                                               ; preds = %34
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  call void @_ZNSt6vectorI2ptSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #4
  br label %40

37:                                               ; preds = %34, %31, %.lr.ph
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %39 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP2ptSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  br i1 %39, label %.lr.ph, label %._crit_edge

40:                                               ; preds = %26, %35, %24
  %.pn.pn = phi { ptr, i32 } [ %25, %24 ], [ %36, %35 ], [ %27, %26 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #4
  br label %42

41:                                               ; preds = %._crit_edge, %15, %13
  ret void

42:                                               ; preds = %40, %16
  %.pn12 = phi { ptr, i32 } [ %17, %16 ], [ %.pn.pn, %40 ]
  call void @_ZNSt6vectorI2ptSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  resume { ptr, i32 } %.pn12
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK6Circle8containsE2pt(ptr noundef nonnull align 16 dereferenceable(48), ptr noundef byval(%struct.pt) align 16) local_unnamed_addr #1 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 #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIP2ptSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

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

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

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


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