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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.pt = type { x86_fp80, x86_fp80 }
%"class.std::vector.59" = type { %"struct.std::_Vector_base.60" }
%"struct.std::_Vector_base.60" = type { %"struct.std::_Vector_base<std::pair<std::_Rb_tree_const_iterator<Ray>, std::_Rb_tree_const_iterator<Ray>>, std::allocator<std::pair<std::_Rb_tree_const_iterator<Ray>, std::_Rb_tree_const_iterator<Ray>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<std::_Rb_tree_const_iterator<Ray>, std::_Rb_tree_const_iterator<Ray>>, std::allocator<std::pair<std::_Rb_tree_const_iterator<Ray>, std::_Rb_tree_const_iterator<Ray>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<std::_Rb_tree_const_iterator<Ray>, std::_Rb_tree_const_iterator<Ray>>, std::allocator<std::pair<std::_Rb_tree_const_iterator<Ray>, std::_Rb_tree_const_iterator<Ray>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<std::_Rb_tree_const_iterator<Ray>, std::_Rb_tree_const_iterator<Ray>>, std::allocator<std::pair<std::_Rb_tree_const_iterator<Ray>, std::_Rb_tree_const_iterator<Ray>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.61" = type { i8 }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%struct.HullTangentCmp = type <{ %struct.Ray.base, [8 x i8], %struct.pt, ptr, i8, i8, i8, [5 x i8] }>
%struct.Ray.base = type <{ ptr, [8 x i8], %struct.pt, %struct.Line, ptr }>
%struct.Line = type { %struct.pt, x86_fp80 }
%struct.Ray = type <{ ptr, [8 x i8], %struct.pt, %struct.Line, ptr, [8 x i8] }>
%"struct.std::pair.67" = type { %"struct.std::_Rb_tree_const_iterator", %"struct.std::_Rb_tree_const_iterator" }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z2ltee(x86_fp80 noundef, x86_fp80 noundef) #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 noundef x86_fp80 @_Z6distSq2ptS_(ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z3ccw2ptS_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: 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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK21IncrementalConvexHull12hullTangentsERKS_b(ptr dead_on_unwind noalias writable sret(%"class.std::vector.59") align 8 %0, ptr noundef nonnull align 16 dereferenceable(64) %1, ptr noundef nonnull align 16 dereferenceable(64) %2, i1 noundef zeroext %3) #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i8, align 1
  %9 = alloca i1, align 1
  %10 = alloca %"class.std::allocator.61", align 1
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %struct.pt, align 16
  %14 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %15 = alloca %struct.pt, align 16
  %16 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %17 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %18 = alloca i32, align 4
  %19 = alloca %struct.pt, align 16
  %20 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %21 = alloca %struct.pt, align 16
  %22 = alloca i32, align 4
  %23 = alloca %struct.pt, align 16
  %24 = alloca %struct.pt, align 16
  %25 = alloca %struct.pt, align 16
  %26 = alloca i8, align 1
  %27 = alloca %struct.pt, align 16
  %28 = alloca %struct.pt, align 16
  %29 = alloca %struct.pt, align 16
  %30 = alloca %struct.pt, align 16
  %31 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %32 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %33 = alloca %struct.HullTangentCmp, align 16
  %34 = alloca %struct.pt, align 16
  %35 = alloca %struct.pt, align 16
  %36 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %37 = alloca %struct.pt, align 16
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %38 = zext i1 %3 to i8
  store i8 %38, ptr %8, align 1, !tbaa !9
  %39 = load ptr, ptr %6, align 8
  store i1 false, ptr %9, align 1
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #5
  call void @_ZNSaISt4pairISt23_Rb_tree_const_iteratorI3RayES2_EEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #5
  invoke void @_ZNSt6vectorISt4pairISt23_Rb_tree_const_iteratorI3RayES3_ESaIS4_EEC2EmRKS5_(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 2, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %40 unwind label %58

40:                                               ; preds = %4
  call void @_ZNSt15__new_allocatorISt4pairISt23_Rb_tree_const_iteratorI3RayES3_EED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %41 = call ptr @_ZNKSt3setI3RaySt4lessIS0_ESaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %39) #5
  %42 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %14, i32 0, i32 0
  store ptr %41, ptr %42, align 8
  %43 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI3RayEptEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  %44 = getelementptr inbounds %struct.Ray, ptr %43, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %13, ptr align 16 %44, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %45 = call ptr @_ZNKSt3setI3RaySt4lessIS0_ESaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %39) #5
  %46 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %17, i32 0, i32 0
  store ptr %45, ptr %46, align 8
  %47 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %17, i32 0, i32 0
  %48 = load ptr, ptr %47, align 8
  %49 = invoke ptr @_ZSt4prevISt23_Rb_tree_const_iteratorI3RayEET_S3_NSt15iterator_traitsIS3_E15difference_typeE(ptr %48, i64 noundef 1)
          to label %50 unwind label %62

50:                                               ; preds = %40
  %51 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %16, i32 0, i32 0
  store ptr %49, ptr %51, align 8
  %52 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI3RayEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  %53 = getelementptr inbounds %struct.Ray, ptr %52, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %15, ptr align 16 %53, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !14
  br label %54

54:                                               ; preds = %135, %50
  %55 = load i32, ptr %18, align 4, !tbaa !14
  %56 = icmp slt i32 %55, 2
  br i1 %56, label %66, label %57

57:                                               ; preds = %54
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %161

58:                                               ; preds = %4
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %11, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %12, align 4
  call void @_ZNSt15__new_allocatorISt4pairISt23_Rb_tree_const_iteratorI3RayES3_EED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #5
  br label %166

62:                                               ; preds = %40
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %11, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %163

66:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %21, ptr align 16 %13, i64 32, i1 false), !tbaa.struct !11
  %68 = load i8, ptr %8, align 1, !tbaa !9, !range !16, !noundef !17
  %69 = trunc i8 %68 to i1
  %70 = zext i1 %69 to i32
  %71 = load i32, ptr %18, align 4, !tbaa !14
  %72 = xor i32 %70, %71
  %73 = icmp ne i32 %72, 0
  %74 = invoke ptr @_ZNK21IncrementalConvexHull18singlePointTangentE2ptb(ptr noundef nonnull align 16 dereferenceable(64) %67, ptr noundef byval(%struct.pt) align 16 %21, i1 noundef zeroext %73)
          to label %75 unwind label %138

75:                                               ; preds = %66
  %76 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %20, i32 0, i32 0
  store ptr %74, ptr %76, align 8
  %77 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI3RayEptEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #5
  %78 = getelementptr inbounds %struct.Ray, ptr %77, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %19, ptr align 16 %78, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %23, ptr align 16 %19, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %24, ptr align 16 %13, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %25, ptr align 16 %15, i64 32, i1 false), !tbaa.struct !11
  %79 = invoke noundef i32 @_Z3ccw2ptS_S_(ptr noundef byval(%struct.pt) align 16 %23, ptr noundef byval(%struct.pt) align 16 %24, ptr noundef byval(%struct.pt) align 16 %25)
          to label %80 unwind label %142

80:                                               ; preds = %75
  store i32 %79, ptr %22, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #5
  %81 = load i32, ptr %22, align 4, !tbaa !14
  %82 = icmp ne i32 %81, 0
  br i1 %82, label %83, label %86

83:                                               ; preds = %80
  %84 = load i32, ptr %22, align 4, !tbaa !14
  %85 = icmp slt i32 %84, 0
  br label %92

86:                                               ; preds = %80
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %27, ptr align 16 %19, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %28, ptr align 16 %15, i64 32, i1 false), !tbaa.struct !11
  %87 = invoke noundef x86_fp80 @_Z6distSq2ptS_(ptr noundef byval(%struct.pt) align 16 %27, ptr noundef byval(%struct.pt) align 16 %28)
          to label %88 unwind label %146

88:                                               ; preds = %86
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %29, ptr align 16 %19, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %30, ptr align 16 %13, i64 32, i1 false), !tbaa.struct !11
  %89 = invoke noundef x86_fp80 @_Z6distSq2ptS_(ptr noundef byval(%struct.pt) align 16 %29, ptr noundef byval(%struct.pt) align 16 %30)
          to label %90 unwind label %146

90:                                               ; preds = %88
  %91 = call noundef zeroext i1 @_Z2ltee(x86_fp80 noundef %87, x86_fp80 noundef %89)
  br label %92

92:                                               ; preds = %90, %83
  %93 = phi i1 [ %85, %83 ], [ %91, %90 ]
  %94 = zext i1 %93 to i8
  store i8 %94, ptr %26, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.start.p0(i64 160, ptr %33) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %34, ptr align 16 %13, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %35, ptr align 16 %15, i64 32, i1 false), !tbaa.struct !11
  %95 = load ptr, ptr %7, align 8, !tbaa !5
  %96 = load i8, ptr %8, align 1, !tbaa !9, !range !16, !noundef !17
  %97 = trunc i8 %96 to i1
  %98 = load i32, ptr %18, align 4, !tbaa !14
  %99 = icmp ne i32 %98, 0
  %100 = load i8, ptr %26, align 1, !tbaa !9, !range !16, !noundef !17
  %101 = trunc i8 %100 to i1
  invoke void @_ZN14HullTangentCmpC2E2ptS0_RK21IncrementalConvexHullbbb(ptr noundef nonnull align 16 dereferenceable(155) %33, ptr noundef byval(%struct.pt) align 16 %34, ptr noundef byval(%struct.pt) align 16 %35, ptr noundef nonnull align 16 dereferenceable(64) %95, i1 noundef zeroext %97, i1 noundef zeroext %99, i1 noundef zeroext %101)
          to label %102 unwind label %150

102:                                              ; preds = %92
  %103 = invoke ptr @_ZNKSt3setI3RaySt4lessIS0_ESaIS0_EE11lower_boundERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %39, ptr noundef nonnull align 16 dereferenceable(104) %33)
          to label %104 unwind label %150

104:                                              ; preds = %102
  %105 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %32, i32 0, i32 0
  store ptr %103, ptr %105, align 8
  %106 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %32, i32 0, i32 0
  %107 = load ptr, ptr %106, align 8
  %108 = invoke ptr @_ZNK21IncrementalConvexHull3modESt23_Rb_tree_const_iteratorI3RayE(ptr noundef nonnull align 16 dereferenceable(64) %39, ptr %107)
          to label %109 unwind label %150

109:                                              ; preds = %104
  %110 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %31, i32 0, i32 0
  store ptr %108, ptr %110, align 8
  %111 = load i32, ptr %18, align 4, !tbaa !14
  %112 = sext i32 %111 to i64
  %113 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairISt23_Rb_tree_const_iteratorI3RayES3_ESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %112) #5
  %114 = getelementptr inbounds %"struct.std::pair.67", ptr %113, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %114, ptr align 8 %31, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 160, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #5
  %115 = load ptr, ptr %7, align 8, !tbaa !5
  %116 = load i32, ptr %18, align 4, !tbaa !14
  %117 = sext i32 %116 to i64
  %118 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairISt23_Rb_tree_const_iteratorI3RayES3_ESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %117) #5
  %119 = getelementptr inbounds %"struct.std::pair.67", ptr %118, i32 0, i32 0
  %120 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI3RayEptEv(ptr noundef nonnull align 8 dereferenceable(8) %119) #5
  %121 = getelementptr inbounds %struct.Ray, ptr %120, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %37, ptr align 16 %121, i64 32, i1 false), !tbaa.struct !11
  %122 = load i8, ptr %8, align 1, !tbaa !9, !range !16, !noundef !17
  %123 = trunc i8 %122 to i1
  %124 = zext i1 %123 to i32
  %125 = load i32, ptr %18, align 4, !tbaa !14
  %126 = xor i32 %124, %125
  %127 = icmp ne i32 %126, 0
  %128 = invoke ptr @_ZNK21IncrementalConvexHull18singlePointTangentE2ptb(ptr noundef nonnull align 16 dereferenceable(64) %115, ptr noundef byval(%struct.pt) align 16 %37, i1 noundef zeroext %127)
          to label %129 unwind label %154

129:                                              ; preds = %109
  %130 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %36, i32 0, i32 0
  store ptr %128, ptr %130, align 8
  %131 = load i32, ptr %18, align 4, !tbaa !14
  %132 = sext i32 %131 to i64
  %133 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairISt23_Rb_tree_const_iteratorI3RayES3_ESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %132) #5
  %134 = getelementptr inbounds %"struct.std::pair.67", ptr %133, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %134, ptr align 8 %36, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #5
  br label %135

135:                                              ; preds = %129
  %136 = load i32, ptr %18, align 4, !tbaa !14
  %137 = add nsw i32 %136, 1
  store i32 %137, ptr %18, align 4, !tbaa !14
  br label %54, !llvm.loop !19

138:                                              ; preds = %66
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %11, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %160

142:                                              ; preds = %75
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %11, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %12, align 4
  br label %159

146:                                              ; preds = %88, %86
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %11, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %12, align 4
  br label %158

150:                                              ; preds = %104, %102, %92
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %11, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 160, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  br label %158

154:                                              ; preds = %109
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %11, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #5
  br label %158

158:                                              ; preds = %154, %150, %146
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #5
  br label %159

159:                                              ; preds = %158, %142
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %160

160:                                              ; preds = %159, %138
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %163

161:                                              ; preds = %57
  store i1 true, ptr %9, align 1
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #5
  %162 = load i1, ptr %9, align 1
  br i1 %162, label %165, label %164

163:                                              ; preds = %160, %62
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #5
  call void @_ZNSt6vectorISt4pairISt23_Rb_tree_const_iteratorI3RayES3_ESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  br label %166

164:                                              ; preds = %161
  call void @_ZNSt6vectorISt4pairISt23_Rb_tree_const_iteratorI3RayES3_ESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  br label %165

165:                                              ; preds = %164, %161
  ret void

166:                                              ; preds = %163, %58
  %167 = load ptr, ptr %11, align 8
  %168 = load i32, ptr %12, align 4
  %169 = insertvalue { ptr, i32 } poison, ptr %167, 0
  %170 = insertvalue { ptr, i32 } %169, i32 %168, 1
  resume { ptr, i32 } %170
}

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt4prevISt23_Rb_tree_const_iteratorI3RayEET_S3_NSt15iterator_traitsIS3_E15difference_typeE(ptr, i64 noundef) #4

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNKSt3setI3RaySt4lessIS0_ESaIS0_EE11lower_boundERKS0_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 16 dereferenceable(104)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14HullTangentCmpC2E2ptS0_RK21IncrementalConvexHullbbb(ptr noundef nonnull align 16 dereferenceable(155), ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16, ptr noundef nonnull align 16 dereferenceable(64), i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext) unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt4pairISt23_Rb_tree_const_iteratorI3RayES3_EED2Ev(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 = { 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)"}
!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 = !{!"bool", !7, i64 0}
!11 = !{i64 0, i64 16, !12, i64 16, i64 16, !12}
!12 = !{!13, !13, i64 0}
!13 = !{!"long double", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{i64 0, i64 8, !5}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}


; 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.59" = type { %"struct.std::_Vector_base.60" }
%"struct.std::_Vector_base.60" = type { %"struct.std::_Vector_base<std::pair<std::_Rb_tree_const_iterator<Ray>, std::_Rb_tree_const_iterator<Ray>>, std::allocator<std::pair<std::_Rb_tree_const_iterator<Ray>, std::_Rb_tree_const_iterator<Ray>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<std::_Rb_tree_const_iterator<Ray>, std::_Rb_tree_const_iterator<Ray>>, std::allocator<std::pair<std::_Rb_tree_const_iterator<Ray>, std::_Rb_tree_const_iterator<Ray>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<std::_Rb_tree_const_iterator<Ray>, std::_Rb_tree_const_iterator<Ray>>, std::allocator<std::pair<std::_Rb_tree_const_iterator<Ray>, std::_Rb_tree_const_iterator<Ray>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<std::_Rb_tree_const_iterator<Ray>, std::_Rb_tree_const_iterator<Ray>>, std::allocator<std::pair<std::_Rb_tree_const_iterator<Ray>, std::_Rb_tree_const_iterator<Ray>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.61" = type { i8 }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%struct.HullTangentCmp = type <{ %struct.Ray.base, [8 x i8], %struct.pt, ptr, i8, i8, i8, [5 x i8] }>
%struct.Ray.base = type <{ ptr, [8 x i8], %struct.pt, %struct.Line, ptr }>
%struct.Line = type { %struct.pt, x86_fp80 }

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

; Function Attrs: mustprogress 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 noundef x86_fp80 @_Z6distSq2ptS_(ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z3ccw2ptS_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 #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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #3

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK21IncrementalConvexHull12hullTangentsERKS_b(ptr dead_on_unwind noalias writable sret(%"class.std::vector.59") align 8 %0, ptr noundef nonnull align 16 dereferenceable(64) %1, ptr noundef nonnull align 16 dereferenceable(64) %2, i1 noundef zeroext %3) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.std::allocator.61", align 1
  %6 = alloca %struct.pt, align 16
  %7 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %8 = alloca %struct.pt, align 16
  %9 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %10 = alloca %struct.pt, align 16
  %11 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %12 = alloca %struct.pt, align 16
  %13 = alloca %struct.HullTangentCmp, align 16
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #6
  call void @_ZNSaISt4pairISt23_Rb_tree_const_iteratorI3RayES2_EEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  invoke void @_ZNSt6vectorISt4pairISt23_Rb_tree_const_iteratorI3RayES3_ESaIS4_EEC2EmRKS5_(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 2, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %14 unwind label %24

14:                                               ; preds = %4
  call void @_ZNSt15__new_allocatorISt4pairISt23_Rb_tree_const_iteratorI3RayES3_EED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %15 = call ptr @_ZNKSt3setI3RaySt4lessIS0_ESaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %1) #6
  store ptr %15, ptr %7, align 8
  %16 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI3RayEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  %17 = getelementptr inbounds i8, ptr %16, i64 16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %6, ptr noundef nonnull align 16 dereferenceable(32) %17, i64 32, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %18 = call ptr @_ZNKSt3setI3RaySt4lessIS0_ESaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %1) #6
  %19 = invoke ptr @_ZSt4prevISt23_Rb_tree_const_iteratorI3RayEET_S3_NSt15iterator_traitsIS3_E15difference_typeE(ptr %18, i64 noundef 1)
          to label %20 unwind label %26

20:                                               ; preds = %14
  store ptr %19, ptr %9, align 8
  %21 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI3RayEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  %22 = getelementptr inbounds i8, ptr %21, i64 16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %8, ptr noundef nonnull align 16 dereferenceable(32) %22, i64 32, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %23 = invoke ptr @_ZNK21IncrementalConvexHull18singlePointTangentE2ptb(ptr noundef nonnull align 16 dereferenceable(64) %2, ptr noundef nonnull byval(%struct.pt) align 16 %6, i1 noundef zeroext %3)
          to label %28 unwind label %84

24:                                               ; preds = %4
  %25 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt4pairISt23_Rb_tree_const_iteratorI3RayES3_EED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  br label %96

26:                                               ; preds = %14
  %27 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br label %95

28:                                               ; preds = %20
  store ptr %23, ptr %11, align 8
  %29 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI3RayEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  %30 = getelementptr inbounds i8, ptr %29, i64 16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %10, ptr noundef nonnull align 16 dereferenceable(32) %30, i64 32, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.memmove.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %12, ptr noundef nonnull align 16 dereferenceable(32) %30, i64 32, i1 false)
  %31 = invoke noundef i32 @_Z3ccw2ptS_S_(ptr noundef nonnull byval(%struct.pt) align 16 %12, ptr noundef nonnull byval(%struct.pt) align 16 %6, ptr noundef nonnull byval(%struct.pt) align 16 %8)
          to label %32 unwind label %86

32:                                               ; preds = %28
  %.not = icmp eq i32 %31, 0
  br i1 %.not, label %35, label %33

33:                                               ; preds = %32
  %34 = icmp slt i32 %31, 0
  br label %41

35:                                               ; preds = %32
  %36 = invoke noundef x86_fp80 @_Z6distSq2ptS_(ptr noundef nonnull byval(%struct.pt) align 16 %10, ptr noundef nonnull byval(%struct.pt) align 16 %8)
          to label %37 unwind label %88

37:                                               ; preds = %35
  %38 = invoke noundef x86_fp80 @_Z6distSq2ptS_(ptr noundef nonnull byval(%struct.pt) align 16 %10, ptr noundef nonnull byval(%struct.pt) align 16 %6)
          to label %39 unwind label %88

39:                                               ; preds = %37
  %40 = call noundef zeroext i1 @_Z2ltee(x86_fp80 noundef %36, x86_fp80 noundef %38)
  br label %41

41:                                               ; preds = %39, %33
  %42 = phi i1 [ %34, %33 ], [ %40, %39 ]
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %13) #6
  invoke void @_ZN14HullTangentCmpC2E2ptS0_RK21IncrementalConvexHullbbb(ptr noundef nonnull align 16 dereferenceable(155) %13, ptr noundef nonnull byval(%struct.pt) align 16 %6, ptr noundef nonnull byval(%struct.pt) align 16 %8, ptr noundef nonnull align 16 dereferenceable(64) %2, i1 noundef zeroext %3, i1 noundef zeroext false, i1 noundef zeroext %42)
          to label %43 unwind label %90

43:                                               ; preds = %41
  %44 = invoke ptr @_ZNKSt3setI3RaySt4lessIS0_ESaIS0_EE11lower_boundERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 16 dereferenceable(104) %13)
          to label %45 unwind label %90

45:                                               ; preds = %43
  %46 = call ptr @_ZNK21IncrementalConvexHull3modESt23_Rb_tree_const_iteratorI3RayE(ptr noundef nonnull align 16 dereferenceable(64) %1, ptr %44)
  %47 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairISt23_Rb_tree_const_iteratorI3RayES3_ESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #6
  store ptr %46, ptr %47, align 8, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %13) #6
  %48 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairISt23_Rb_tree_const_iteratorI3RayES3_ESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #6
  %49 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI3RayEptEv(ptr noundef nonnull align 8 dereferenceable(8) %48) #6
  %50 = getelementptr inbounds i8, ptr %49, i64 16
  %51 = invoke ptr @_ZNK21IncrementalConvexHull18singlePointTangentE2ptb(ptr noundef nonnull align 16 dereferenceable(64) %2, ptr noundef nonnull byval(%struct.pt) align 16 %50, i1 noundef zeroext %3)
          to label %52 unwind label %92

52:                                               ; preds = %45
  %53 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairISt23_Rb_tree_const_iteratorI3RayES3_ESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #6
  %54 = getelementptr inbounds i8, ptr %53, i64 8
  store ptr %51, ptr %54, align 8, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %55 = xor i1 %3, true
  %56 = invoke ptr @_ZNK21IncrementalConvexHull18singlePointTangentE2ptb(ptr noundef nonnull align 16 dereferenceable(64) %2, ptr noundef nonnull byval(%struct.pt) align 16 %6, i1 noundef zeroext %55)
          to label %57 unwind label %84

57:                                               ; preds = %52
  store ptr %56, ptr %11, align 8
  %58 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI3RayEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  %59 = getelementptr inbounds i8, ptr %58, i64 16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %10, ptr noundef nonnull align 16 dereferenceable(32) %59, i64 32, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.memmove.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %12, ptr noundef nonnull align 16 dereferenceable(32) %59, i64 32, i1 false)
  %60 = invoke noundef i32 @_Z3ccw2ptS_S_(ptr noundef nonnull byval(%struct.pt) align 16 %12, ptr noundef nonnull byval(%struct.pt) align 16 %6, ptr noundef nonnull byval(%struct.pt) align 16 %8)
          to label %61 unwind label %86

61:                                               ; preds = %57
  %.not.1 = icmp eq i32 %60, 0
  br i1 %.not.1, label %64, label %62

62:                                               ; preds = %61
  %63 = icmp slt i32 %60, 0
  br label %70

64:                                               ; preds = %61
  %65 = invoke noundef x86_fp80 @_Z6distSq2ptS_(ptr noundef nonnull byval(%struct.pt) align 16 %10, ptr noundef nonnull byval(%struct.pt) align 16 %8)
          to label %66 unwind label %88

66:                                               ; preds = %64
  %67 = invoke noundef x86_fp80 @_Z6distSq2ptS_(ptr noundef nonnull byval(%struct.pt) align 16 %10, ptr noundef nonnull byval(%struct.pt) align 16 %6)
          to label %68 unwind label %88

68:                                               ; preds = %66
  %69 = call noundef zeroext i1 @_Z2ltee(x86_fp80 noundef %65, x86_fp80 noundef %67)
  br label %70

70:                                               ; preds = %68, %62
  %71 = phi i1 [ %63, %62 ], [ %69, %68 ]
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %13) #6
  invoke void @_ZN14HullTangentCmpC2E2ptS0_RK21IncrementalConvexHullbbb(ptr noundef nonnull align 16 dereferenceable(155) %13, ptr noundef nonnull byval(%struct.pt) align 16 %6, ptr noundef nonnull byval(%struct.pt) align 16 %8, ptr noundef nonnull align 16 dereferenceable(64) %2, i1 noundef zeroext %3, i1 noundef zeroext true, i1 noundef zeroext %71)
          to label %72 unwind label %90

72:                                               ; preds = %70
  %73 = invoke ptr @_ZNKSt3setI3RaySt4lessIS0_ESaIS0_EE11lower_boundERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 16 dereferenceable(104) %13)
          to label %74 unwind label %90

74:                                               ; preds = %72
  %75 = call ptr @_ZNK21IncrementalConvexHull3modESt23_Rb_tree_const_iteratorI3RayE(ptr noundef nonnull align 16 dereferenceable(64) %1, ptr %73)
  %76 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairISt23_Rb_tree_const_iteratorI3RayES3_ESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 1) #6
  store ptr %75, ptr %76, align 8, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %13) #6
  %77 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairISt23_Rb_tree_const_iteratorI3RayES3_ESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 1) #6
  %78 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI3RayEptEv(ptr noundef nonnull align 8 dereferenceable(8) %77) #6
  %79 = getelementptr inbounds i8, ptr %78, i64 16
  %80 = invoke ptr @_ZNK21IncrementalConvexHull18singlePointTangentE2ptb(ptr noundef nonnull align 16 dereferenceable(64) %2, ptr noundef nonnull byval(%struct.pt) align 16 %79, i1 noundef zeroext %55)
          to label %81 unwind label %92

81:                                               ; preds = %74
  %82 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairISt23_Rb_tree_const_iteratorI3RayES3_ESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 1) #6
  %83 = getelementptr inbounds i8, ptr %82, i64 8
  store ptr %80, ptr %83, align 8, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6)
  ret void

84:                                               ; preds = %52, %20
  %85 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  br label %94

86:                                               ; preds = %57, %28
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %94

88:                                               ; preds = %66, %64, %37, %35
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %94

90:                                               ; preds = %72, %70, %43, %41
  %91 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %13) #6
  br label %94

92:                                               ; preds = %74, %45
  %93 = landingpad { ptr, i32 }
          cleanup
  br label %94

94:                                               ; preds = %86, %92, %90, %88, %84
  %.pn.pn.pn = phi { ptr, i32 } [ %85, %84 ], [ %87, %86 ], [ %93, %92 ], [ %91, %90 ], [ %89, %88 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10)
  br label %95

95:                                               ; preds = %94, %26
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %94 ], [ %27, %26 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6)
  call void @_ZNSt6vectorISt4pairISt23_Rb_tree_const_iteratorI3RayES3_ESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %96

96:                                               ; preds = %95, %24
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %95 ], [ %25, %24 ]
  resume { ptr, i32 } %.pn.pn.pn.pn.pn
}

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNKSt3setI3RaySt4lessIS0_ESaIS0_EE11lower_boundERKS0_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 16 dereferenceable(104)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14HullTangentCmpC2E2ptS0_RK21IncrementalConvexHullbbb(ptr noundef nonnull align 16 dereferenceable(155), ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16, ptr noundef nonnull align 16 dereferenceable(64), i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext) unnamed_addr #2 align 2

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

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

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

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,MemCpyOptPass,SCCPPass,SROAPass,SimplifyCFGPass