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

; 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 }
%"class.std::initializer_list" = type { ptr, i64 }
%"class.std::allocator" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.0" = type { ptr }

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Zmle2pt(ptr dead_on_unwind noalias writable sret(%struct.pt) align 16, x86_fp80 noundef, ptr noundef byval(%struct.pt) align 16) #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) #2 align 2

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

; 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 @_ZNK2ptdvEe(ptr dead_on_unwind noalias writable sret(%struct.pt) align 16, ptr noundef nonnull align 16 dereferenceable(32), x86_fp80 noundef) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z16segSegIntersects2ptS_S_S_(ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z18segSegIntersection2ptS_S_S_(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, ptr noundef byval(%struct.pt) align 16 %1, ptr noundef byval(%struct.pt) align 16 %2, ptr noundef byval(%struct.pt) align 16 %3, ptr noundef byval(%struct.pt) align 16 %4) #2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %struct.pt, align 16
  %9 = alloca %struct.pt, align 16
  %10 = alloca %struct.pt, align 16
  %11 = alloca %struct.pt, align 16
  %12 = alloca i32, align 4
  %13 = alloca x86_fp80, align 16
  %14 = alloca %struct.pt, align 16
  %15 = alloca %struct.pt, align 16
  %16 = alloca %struct.pt, align 16
  %17 = alloca %struct.pt, align 16
  %18 = alloca x86_fp80, align 16
  %19 = alloca %struct.pt, align 16
  %20 = alloca %struct.pt, align 16
  %21 = alloca %struct.pt, align 16
  %22 = alloca %struct.pt, align 16
  %23 = alloca %"class.std::initializer_list", align 8
  %24 = alloca [1 x %struct.pt], align 16
  %25 = alloca %struct.pt, align 16
  %26 = alloca %struct.pt, align 16
  %27 = alloca %struct.pt, align 16
  %28 = alloca %struct.pt, align 16
  %29 = alloca %struct.pt, align 16
  %30 = alloca %"class.std::allocator", align 1
  %31 = alloca ptr, align 8
  %32 = alloca i32, align 4
  %33 = alloca i1, align 1
  %34 = alloca %struct.pt, align 16
  %35 = alloca %struct.pt, align 16
  %36 = alloca %struct.pt, align 16
  %37 = alloca %struct.pt, align 16
  %38 = alloca %struct.pt, align 16
  %39 = alloca %struct.pt, align 16
  %40 = alloca %struct.pt, align 16
  %41 = alloca %struct.pt, align 16
  %42 = alloca %struct.pt, align 16
  %43 = alloca %struct.pt, align 16
  %44 = alloca %struct.pt, align 16
  %45 = alloca %struct.pt, align 16
  %46 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %47 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %48 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %49 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %50 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %51 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %52 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %53 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %54 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  store ptr %0, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %8, ptr align 16 %1, i64 32, i1 false), !tbaa.struct !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %9, ptr align 16 %2, i64 32, i1 false), !tbaa.struct !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %10, ptr align 16 %3, i64 32, i1 false), !tbaa.struct !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %11, ptr align 16 %4, i64 32, i1 false), !tbaa.struct !5
  %55 = call noundef i32 @_Z16segSegIntersects2ptS_S_S_(ptr noundef byval(%struct.pt) align 16 %8, ptr noundef byval(%struct.pt) align 16 %9, ptr noundef byval(%struct.pt) align 16 %10, ptr noundef byval(%struct.pt) align 16 %11)
  store i32 %55, ptr %7, align 4, !tbaa !10
  %56 = load i32, ptr %7, align 4, !tbaa !10
  %57 = icmp ne i32 %56, 0
  br i1 %57, label %59, label %58

58:                                               ; preds = %5
  call void @llvm.memset.p0.i64(ptr align 8 %0, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorI2ptSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  store i32 1, ptr %12, align 4
  br label %148

59:                                               ; preds = %5
  %60 = load i32, ptr %7, align 4, !tbaa !10
  %61 = icmp eq i32 %60, 1
  br i1 %61, label %62, label %81

62:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %15, ptr align 16 %1, i64 32, i1 false), !tbaa.struct !5
  call void @_ZNK2ptmiES_(ptr dead_on_unwind writable sret(%struct.pt) align 16 %14, ptr noundef nonnull align 16 dereferenceable(32) %3, ptr noundef byval(%struct.pt) align 16 %15)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %17, ptr align 16 %1, i64 32, i1 false), !tbaa.struct !5
  call void @_ZNK2ptmiES_(ptr dead_on_unwind writable sret(%struct.pt) align 16 %16, ptr noundef nonnull align 16 dereferenceable(32) %2, ptr noundef byval(%struct.pt) align 16 %17)
  %63 = call noundef x86_fp80 @_Z5cross2ptS_(ptr noundef byval(%struct.pt) align 16 %14, ptr noundef byval(%struct.pt) align 16 %16)
  store x86_fp80 %63, ptr %13, align 16, !tbaa !6
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %20, ptr align 16 %1, i64 32, i1 false), !tbaa.struct !5
  call void @_ZNK2ptmiES_(ptr dead_on_unwind writable sret(%struct.pt) align 16 %19, ptr noundef nonnull align 16 dereferenceable(32) %4, ptr noundef byval(%struct.pt) align 16 %20)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %22, ptr align 16 %1, i64 32, i1 false), !tbaa.struct !5
  call void @_ZNK2ptmiES_(ptr dead_on_unwind writable sret(%struct.pt) align 16 %21, ptr noundef nonnull align 16 dereferenceable(32) %2, ptr noundef byval(%struct.pt) align 16 %22)
  %64 = call noundef x86_fp80 @_Z5cross2ptS_(ptr noundef byval(%struct.pt) align 16 %19, ptr noundef byval(%struct.pt) align 16 %21)
  store x86_fp80 %64, ptr %18, align 16, !tbaa !6
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #6
  %65 = load x86_fp80, ptr %13, align 16, !tbaa !6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %27, ptr align 16 %4, i64 32, i1 false), !tbaa.struct !5
  call void @_Zmle2pt(ptr dead_on_unwind writable sret(%struct.pt) align 16 %26, x86_fp80 noundef %65, ptr noundef byval(%struct.pt) align 16 %27)
  %66 = load x86_fp80, ptr %18, align 16, !tbaa !6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %29, ptr align 16 %3, i64 32, i1 false), !tbaa.struct !5
  call void @_Zmle2pt(ptr dead_on_unwind writable sret(%struct.pt) align 16 %28, x86_fp80 noundef %66, ptr noundef byval(%struct.pt) align 16 %29)
  call void @_ZNK2ptmiES_(ptr dead_on_unwind writable sret(%struct.pt) align 16 %25, ptr noundef nonnull align 16 dereferenceable(32) %26, ptr noundef byval(%struct.pt) align 16 %28)
  %67 = load x86_fp80, ptr %13, align 16, !tbaa !6
  %68 = load x86_fp80, ptr %18, align 16, !tbaa !6
  %69 = fsub x86_fp80 %67, %68
  call void @_ZNK2ptdvEe(ptr dead_on_unwind writable sret(%struct.pt) align 16 %24, ptr noundef nonnull align 16 dereferenceable(32) %25, x86_fp80 noundef %69)
  %70 = getelementptr inbounds %"class.std::initializer_list", ptr %23, i32 0, i32 0
  store ptr %24, ptr %70, align 8, !tbaa !12
  %71 = getelementptr inbounds %"class.std::initializer_list", ptr %23, i32 0, i32 1
  store i64 1, ptr %71, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #6
  call void @_ZNSaI2ptEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #6
  %72 = getelementptr inbounds { ptr, i64 }, ptr %23, i32 0, i32 0
  %73 = load ptr, ptr %72, align 8
  %74 = getelementptr inbounds { ptr, i64 }, ptr %23, i32 0, i32 1
  %75 = load i64, ptr %74, align 8
  invoke void @_ZNSt6vectorI2ptSaIS0_EEC2ESt16initializer_listIS0_ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr %73, i64 %75, ptr noundef nonnull align 1 dereferenceable(1) %30)
          to label %76 unwind label %77

76:                                               ; preds = %62
  call void @_ZNSt15__new_allocatorI2ptED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #6
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
  br label %148

77:                                               ; preds = %62
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %31, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %32, align 4
  call void @_ZNSt15__new_allocatorI2ptED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
  br label %149

81:                                               ; preds = %59
  store i1 false, ptr %33, align 1
  call void @_ZNSt6vectorI2ptSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %34, ptr align 16 %3, i64 32, i1 false), !tbaa.struct !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %35, ptr align 16 %1, i64 32, i1 false), !tbaa.struct !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %36, ptr align 16 %2, i64 32, i1 false), !tbaa.struct !5
  %82 = invoke noundef zeroext i1 @_Z5onSeg2ptS_S_(ptr noundef byval(%struct.pt) align 16 %34, ptr noundef byval(%struct.pt) align 16 %35, ptr noundef byval(%struct.pt) align 16 %36)
          to label %83 unwind label %86

83:                                               ; preds = %81
  br i1 %82, label %84, label %90

84:                                               ; preds = %83
  invoke void @_ZNSt6vectorI2ptSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 16 dereferenceable(32) %3)
          to label %85 unwind label %86

85:                                               ; preds = %84
  br label %90

86:                                               ; preds = %105, %103, %100, %98, %95, %93, %90, %84, %81
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %31, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %32, align 4
  br label %147

90:                                               ; preds = %85, %83
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %37, ptr align 16 %4, i64 32, i1 false), !tbaa.struct !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %38, ptr align 16 %1, i64 32, i1 false), !tbaa.struct !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %39, ptr align 16 %2, i64 32, i1 false), !tbaa.struct !5
  %91 = invoke noundef zeroext i1 @_Z5onSeg2ptS_S_(ptr noundef byval(%struct.pt) align 16 %37, ptr noundef byval(%struct.pt) align 16 %38, ptr noundef byval(%struct.pt) align 16 %39)
          to label %92 unwind label %86

92:                                               ; preds = %90
  br i1 %91, label %93, label %95

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

94:                                               ; preds = %93
  br label %95

95:                                               ; preds = %94, %92
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %40, ptr align 16 %1, i64 32, i1 false), !tbaa.struct !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %41, ptr align 16 %3, i64 32, i1 false), !tbaa.struct !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %42, ptr align 16 %4, i64 32, i1 false), !tbaa.struct !5
  %96 = invoke noundef zeroext i1 @_Z5onSeg2ptS_S_(ptr noundef byval(%struct.pt) align 16 %40, ptr noundef byval(%struct.pt) align 16 %41, ptr noundef byval(%struct.pt) align 16 %42)
          to label %97 unwind label %86

97:                                               ; preds = %95
  br i1 %96, label %98, label %100

98:                                               ; preds = %97
  invoke void @_ZNSt6vectorI2ptSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 16 dereferenceable(32) %1)
          to label %99 unwind label %86

99:                                               ; preds = %98
  br label %100

100:                                              ; preds = %99, %97
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %43, ptr align 16 %2, i64 32, i1 false), !tbaa.struct !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %44, ptr align 16 %3, i64 32, i1 false), !tbaa.struct !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %45, ptr align 16 %4, i64 32, i1 false), !tbaa.struct !5
  %101 = invoke noundef zeroext i1 @_Z5onSeg2ptS_S_(ptr noundef byval(%struct.pt) align 16 %43, ptr noundef byval(%struct.pt) align 16 %44, ptr noundef byval(%struct.pt) align 16 %45)
          to label %102 unwind label %86

102:                                              ; preds = %100
  br i1 %101, label %103, label %105

103:                                              ; preds = %102
  invoke void @_ZNSt6vectorI2ptSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 16 dereferenceable(32) %2)
          to label %104 unwind label %86

104:                                              ; preds = %103
  br label %105

105:                                              ; preds = %104, %102
  %106 = call ptr @_ZNSt6vectorI2ptSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %107 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %46, i32 0, i32 0
  store ptr %106, ptr %107, align 8
  %108 = call ptr @_ZNSt6vectorI2ptSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %109 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %47, i32 0, i32 0
  store ptr %108, ptr %109, align 8
  %110 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %46, i32 0, i32 0
  %111 = load ptr, ptr %110, align 8
  %112 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %47, i32 0, i32 0
  %113 = load ptr, ptr %112, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS2_SaIS2_EEEEEvT_S8_(ptr %111, ptr %113)
          to label %114 unwind label %86

114:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #6
  %115 = call ptr @_ZNSt6vectorI2ptSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %116 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %50, i32 0, i32 0
  store ptr %115, ptr %116, align 8
  %117 = call ptr @_ZNSt6vectorI2ptSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %118 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %51, i32 0, i32 0
  store ptr %117, ptr %118, align 8
  %119 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %50, i32 0, i32 0
  %120 = load ptr, ptr %119, align 8
  %121 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %51, i32 0, i32 0
  %122 = load ptr, ptr %121, align 8
  %123 = invoke ptr @_ZSt6uniqueIN9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS2_SaIS2_EEEEET_S8_S8_(ptr %120, ptr %122)
          to label %124 unwind label %136

124:                                              ; preds = %114
  %125 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %49, i32 0, i32 0
  store ptr %123, ptr %125, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPK2ptSt6vectorIS1_SaIS1_EEEC2IPS1_vEERKNS0_IT_S6_EE(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef nonnull align 8 dereferenceable(8) %49) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #6
  %126 = call ptr @_ZNSt6vectorI2ptSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %127 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %53, i32 0, i32 0
  store ptr %126, ptr %127, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPK2ptSt6vectorIS1_SaIS1_EEEC2IPS1_vEERKNS0_IT_S6_EE(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef nonnull align 8 dereferenceable(8) %53) #6
  %128 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %48, i32 0, i32 0
  %129 = load ptr, ptr %128, align 8
  %130 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %52, i32 0, i32 0
  %131 = load ptr, ptr %130, align 8
  %132 = invoke ptr @_ZNSt6vectorI2ptSaIS0_EE5eraseEN9__gnu_cxx17__normal_iteratorIPKS0_S2_EES7_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr %129, ptr %131)
          to label %133 unwind label %140

133:                                              ; preds = %124
  %134 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %54, i32 0, i32 0
  store ptr %132, ptr %134, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #6
  store i1 true, ptr %33, align 1
  store i32 1, ptr %12, align 4
  %135 = load i1, ptr %33, align 1
  br i1 %135, label %146, label %145

136:                                              ; preds = %114
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %31, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %32, align 4
  br label %144

140:                                              ; preds = %124
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %31, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %32, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #6
  br label %144

144:                                              ; preds = %140, %136
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #6
  br label %147

145:                                              ; preds = %133
  call void @_ZNSt6vectorI2ptSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %146

146:                                              ; preds = %145, %133
  br label %148

147:                                              ; preds = %144, %86
  call void @_ZNSt6vectorI2ptSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %149

148:                                              ; preds = %146, %76, %58
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  ret void

149:                                              ; preds = %147, %77
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %150

150:                                              ; preds = %149
  %151 = load ptr, ptr %31, align 8
  %152 = load i32, ptr %32, align 4
  %153 = insertvalue { ptr, i32 } poison, ptr %151, 0
  %154 = insertvalue { ptr, i32 } %153, i32 %152, 1
  resume { ptr, i32 } %154
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI2ptSaIS0_EEC2ESt16initializer_listIS0_ERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr, i64, ptr noundef nonnull align 1 dereferenceable(1)) 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)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS2_SaIS2_EEEEEvT_S8_(ptr, ptr) #5

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt6uniqueIN9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS2_SaIS2_EEEEET_S8_S8_(ptr, ptr) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9__gnu_cxx17__normal_iteratorIPK2ptSt6vectorIS1_SaIS1_EEEC2IPS1_vEERKNS0_IT_S6_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) 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 void @_ZNSt15__new_allocatorI2ptED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) 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 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{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 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!13, !14, i64 0}
!13 = !{!"_ZTSSt16initializer_listI2ptE", !14, i64 0, !15, i64 8}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"long", !8, i64 0}
!16 = !{!13, !15, i64 8}


; 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 }
%"class.std::allocator" = type { i8 }
%"class.__gnu_cxx::__normal_iterator.0" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

; 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 uwtable
declare dso_local void @_Zmle2pt(ptr dead_on_unwind noalias writable sret(%struct.pt) align 16, x86_fp80 noundef, ptr noundef byval(%struct.pt) align 16) local_unnamed_addr #1

; 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 #1 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z16segSegIntersects2ptS_S_S_(ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z18segSegIntersection2ptS_S_S_(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, ptr noundef byval(%struct.pt) align 16 %1, ptr noundef byval(%struct.pt) align 16 %2, ptr noundef byval(%struct.pt) align 16 %3, ptr noundef byval(%struct.pt) align 16 %4) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %6 = alloca %struct.pt, align 16
  %7 = alloca %struct.pt, align 16
  %8 = alloca %struct.pt, align 16
  %9 = alloca %struct.pt, align 16
  %10 = alloca [1 x %struct.pt], align 16
  %11 = alloca %struct.pt, align 16
  %12 = alloca %struct.pt, align 16
  %13 = alloca %struct.pt, align 16
  %14 = alloca %"class.std::allocator", align 1
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %19 = tail call noundef i32 @_Z16segSegIntersects2ptS_S_S_(ptr noundef nonnull byval(%struct.pt) align 16 %1, ptr noundef nonnull byval(%struct.pt) align 16 %2, ptr noundef nonnull byval(%struct.pt) align 16 %3, ptr noundef nonnull byval(%struct.pt) align 16 %4)
  switch i32 %19, label %28 [
    i32 0, label %20
    i32 1, label %21
  ]

20:                                               ; preds = %5
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %0, i8 0, i64 24, i1 false)
  tail call void @_ZNSt6vectorI2ptSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  br label %65

21:                                               ; preds = %5
  call void @_ZNK2ptmiES_(ptr dead_on_unwind nonnull writable sret(%struct.pt) align 16 %6, ptr noundef nonnull align 16 dereferenceable(32) %3, ptr noundef nonnull byval(%struct.pt) align 16 %1)
  call void @_ZNK2ptmiES_(ptr dead_on_unwind nonnull writable sret(%struct.pt) align 16 %7, ptr noundef nonnull align 16 dereferenceable(32) %2, ptr noundef nonnull byval(%struct.pt) align 16 %1)
  %22 = call noundef x86_fp80 @_Z5cross2ptS_(ptr noundef nonnull byval(%struct.pt) align 16 %6, ptr noundef nonnull byval(%struct.pt) align 16 %7)
  call void @_ZNK2ptmiES_(ptr dead_on_unwind nonnull writable sret(%struct.pt) align 16 %8, ptr noundef nonnull align 16 dereferenceable(32) %4, ptr noundef nonnull byval(%struct.pt) align 16 %1)
  call void @_ZNK2ptmiES_(ptr dead_on_unwind nonnull writable sret(%struct.pt) align 16 %9, ptr noundef nonnull align 16 dereferenceable(32) %2, ptr noundef nonnull byval(%struct.pt) align 16 %1)
  %23 = call noundef x86_fp80 @_Z5cross2ptS_(ptr noundef nonnull byval(%struct.pt) align 16 %8, ptr noundef nonnull byval(%struct.pt) align 16 %9)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #5
  call void @_Zmle2pt(ptr dead_on_unwind nonnull writable sret(%struct.pt) align 16 %12, x86_fp80 noundef %22, ptr noundef nonnull byval(%struct.pt) align 16 %4)
  call void @_Zmle2pt(ptr dead_on_unwind nonnull writable sret(%struct.pt) align 16 %13, x86_fp80 noundef %23, ptr noundef nonnull byval(%struct.pt) align 16 %3)
  call void @_ZNK2ptmiES_(ptr dead_on_unwind nonnull writable sret(%struct.pt) align 16 %11, ptr noundef nonnull align 16 dereferenceable(32) %12, ptr noundef nonnull byval(%struct.pt) align 16 %13)
  %24 = fsub x86_fp80 %22, %23
  call void @_ZNK2ptdvEe(ptr dead_on_unwind nonnull writable sret(%struct.pt) align 16 %10, ptr noundef nonnull align 16 dereferenceable(32) %11, x86_fp80 noundef %24)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #5
  call void @_ZNSaI2ptEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #5
  invoke void @_ZNSt6vectorI2ptSaIS0_EEC2ESt16initializer_listIS0_ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr nonnull %10, i64 1, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %25 unwind label %26

25:                                               ; preds = %21
  call void @_ZNSt15__new_allocatorI2ptED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #5
  br label %65

26:                                               ; preds = %21
  %27 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorI2ptED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #5
  br label %66

28:                                               ; preds = %5
  tail call void @_ZNSt6vectorI2ptSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %29 = invoke noundef zeroext i1 @_Z5onSeg2ptS_S_(ptr noundef nonnull byval(%struct.pt) align 16 %3, ptr noundef nonnull byval(%struct.pt) align 16 %1, ptr noundef nonnull byval(%struct.pt) align 16 %2)
          to label %30 unwind label %32

30:                                               ; preds = %28
  br i1 %29, label %31, label %34

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

32:                                               ; preds = %46, %45, %42, %41, %38, %37, %34, %31, %28
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %64

34:                                               ; preds = %31, %30
  %35 = invoke noundef zeroext i1 @_Z5onSeg2ptS_S_(ptr noundef nonnull byval(%struct.pt) align 16 %4, ptr noundef nonnull byval(%struct.pt) align 16 %1, ptr noundef nonnull byval(%struct.pt) align 16 %2)
          to label %36 unwind label %32

36:                                               ; preds = %34
  br i1 %35, label %37, label %38

37:                                               ; preds = %36
  invoke void @_ZNSt6vectorI2ptSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 16 dereferenceable(32) %4)
          to label %38 unwind label %32

38:                                               ; preds = %37, %36
  %39 = invoke noundef zeroext i1 @_Z5onSeg2ptS_S_(ptr noundef nonnull byval(%struct.pt) align 16 %1, ptr noundef nonnull byval(%struct.pt) align 16 %3, ptr noundef nonnull byval(%struct.pt) align 16 %4)
          to label %40 unwind label %32

40:                                               ; preds = %38
  br i1 %39, label %41, label %42

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

42:                                               ; preds = %41, %40
  %43 = invoke noundef zeroext i1 @_Z5onSeg2ptS_S_(ptr noundef nonnull byval(%struct.pt) align 16 %2, ptr noundef nonnull byval(%struct.pt) align 16 %3, ptr noundef nonnull byval(%struct.pt) align 16 %4)
          to label %44 unwind label %32

44:                                               ; preds = %42
  br i1 %43, label %45, label %46

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

46:                                               ; preds = %45, %44
  %47 = call ptr @_ZNSt6vectorI2ptSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %48 = call ptr @_ZNSt6vectorI2ptSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS2_SaIS2_EEEEEvT_S8_(ptr %47, ptr %48)
          to label %49 unwind label %32

49:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #5
  %50 = call ptr @_ZNSt6vectorI2ptSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %51 = call ptr @_ZNSt6vectorI2ptSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %52 = invoke ptr @_ZSt6uniqueIN9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS2_SaIS2_EEEEET_S8_S8_(ptr %50, ptr %51)
          to label %53 unwind label %59

53:                                               ; preds = %49
  store ptr %52, ptr %16, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPK2ptSt6vectorIS1_SaIS1_EEEC2IPS1_vEERKNS0_IT_S6_EE(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #5
  %54 = call ptr @_ZNSt6vectorI2ptSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  store ptr %54, ptr %18, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPK2ptSt6vectorIS1_SaIS1_EEEC2IPS1_vEERKNS0_IT_S6_EE(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #5
  %55 = load ptr, ptr %15, align 8
  %56 = load ptr, ptr %17, align 8
  %57 = invoke ptr @_ZNSt6vectorI2ptSaIS0_EE5eraseEN9__gnu_cxx17__normal_iteratorIPKS0_S2_EES7_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr %55, ptr %56)
          to label %58 unwind label %61

58:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  br label %65

59:                                               ; preds = %49
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %63

61:                                               ; preds = %53
  %62 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #5
  br label %63

63:                                               ; preds = %61, %59
  %.pn = phi { ptr, i32 } [ %62, %61 ], [ %60, %59 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  br label %64

64:                                               ; preds = %63, %32
  %.pn.pn = phi { ptr, i32 } [ %.pn, %63 ], [ %33, %32 ]
  call void @_ZNSt6vectorI2ptSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  br label %66

65:                                               ; preds = %58, %25, %20
  ret void

66:                                               ; preds = %64, %26
  %.pn20 = phi { ptr, i32 } [ %27, %26 ], [ %.pn.pn, %64 ]
  resume { ptr, i32 } %.pn20
}

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

; 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 @_ZNSaI2ptEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI2ptSaIS0_EEC2ESt16initializer_listIS0_ERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr, i64, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 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: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS2_SaIS2_EEEEEvT_S8_(ptr, ptr) local_unnamed_addr #4

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt6uniqueIN9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS2_SaIS2_EEEEET_S8_S8_(ptr, ptr) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9__gnu_cxx17__normal_iteratorIPK2ptSt6vectorIS1_SaIS1_EEEC2IPS1_vEERKNS0_IT_S6_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) 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 void @_ZNSt15__new_allocatorI2ptED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) 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 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 willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 #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)"}


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