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

; 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 { double, double }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<PT, std::allocator<PT>>::_Vector_impl" }
%"struct.std::_Vector_base<PT, std::allocator<PT>>::_Vector_impl" = type { %"struct.std::_Vector_base<PT, std::allocator<PT>>::_Vector_impl_data" }
%"struct.std::_Vector_base<PT, std::allocator<PT>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.42" = type { %"struct.std::_Vector_base.43" }
%"struct.std::_Vector_base.43" = type { %"struct.std::_Vector_base<HP, std::allocator<HP>>::_Vector_impl" }
%"struct.std::_Vector_base<HP, std::allocator<HP>>::_Vector_impl" = type { %"struct.std::_Vector_base<HP, std::allocator<HP>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HP, std::allocator<HP>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.HP = type { %struct.PT, %struct.PT }

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

; 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 void @_ZNK2PTplERKS_(ptr dead_on_unwind noalias writable sret(%struct.PT) align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

40:                                               ; preds = %1
  store double 0.000000e+00, ptr %2, align 8
  store i32 1, ptr %5, align 4
  br label %174

41:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  store double 0.000000e+00, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  store double 2.000000e+04, ptr %7, align 8, !tbaa !11
  br label %42

42:                                               ; preds = %169, %41
  %43 = load double, ptr %7, align 8, !tbaa !11
  %44 = load double, ptr %6, align 8, !tbaa !11
  %45 = fsub double %43, %44
  %46 = fcmp ogt double %45, 1.000000e-09
  br i1 %46, label %47, label %172

47:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %48 = load double, ptr %6, align 8, !tbaa !11
  %49 = load double, ptr %7, align 8, !tbaa !11
  %50 = fadd double %48, %49
  %51 = fmul double %50, 5.000000e-01
  store double %51, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #4
  call void @_ZNSt6vectorI2HPSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 1000000000, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #4
  invoke void @_ZN2PTC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %12, double noundef -1.000000e+09, double noundef -1.000000e+09)
          to label %52 unwind label %73

52:                                               ; preds = %47
  invoke void @_ZN2PTC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %15, double noundef 1.000000e+09, double noundef -1.000000e+09)
          to label %53 unwind label %73

53:                                               ; preds = %52
  invoke void @_ZN2HPC2E2PTS0_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef %12, ptr noundef %15)
          to label %54 unwind label %73

54:                                               ; preds = %53
  invoke void @_ZNSt6vectorI2HPSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %55 unwind label %73

55:                                               ; preds = %54
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #4
  invoke void @_ZN2PTC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %17, double noundef 1.000000e+09, double noundef -1.000000e+09)
          to label %56 unwind label %77

56:                                               ; preds = %55
  invoke void @_ZN2PTC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %18, double noundef 1.000000e+09, double noundef 1.000000e+09)
          to label %57 unwind label %77

57:                                               ; preds = %56
  invoke void @_ZN2HPC2E2PTS0_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef %17, ptr noundef %18)
          to label %58 unwind label %77

58:                                               ; preds = %57
  invoke void @_ZNSt6vectorI2HPSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(32) %16)
          to label %59 unwind label %77

59:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #4
  invoke void @_ZN2PTC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %20, double noundef 1.000000e+09, double noundef 1.000000e+09)
          to label %60 unwind label %81

60:                                               ; preds = %59
  invoke void @_ZN2PTC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %21, double noundef -1.000000e+09, double noundef 1.000000e+09)
          to label %61 unwind label %81

61:                                               ; preds = %60
  invoke void @_ZN2HPC2E2PTS0_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef %20, ptr noundef %21)
          to label %62 unwind label %81

62:                                               ; preds = %61
  invoke void @_ZNSt6vectorI2HPSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %63 unwind label %81

63:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #4
  invoke void @_ZN2PTC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %23, double noundef -1.000000e+09, double noundef 1.000000e+09)
          to label %64 unwind label %85

64:                                               ; preds = %63
  invoke void @_ZN2PTC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %24, double noundef -1.000000e+09, double noundef -1.000000e+09)
          to label %65 unwind label %85

65:                                               ; preds = %64
  invoke void @_ZN2HPC2E2PTS0_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef %23, ptr noundef %24)
          to label %66 unwind label %85

66:                                               ; preds = %65
  invoke void @_ZNSt6vectorI2HPSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(32) %22)
          to label %67 unwind label %85

67:                                               ; preds = %66
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #4
  store i32 0, ptr %25, align 4, !tbaa !9
  br label %68

68:                                               ; preds = %127, %67
  %69 = load i32, ptr %25, align 4, !tbaa !9
  %70 = load i32, ptr %4, align 4, !tbaa !9
  %71 = icmp slt i32 %69, %70
  br i1 %71, label %89, label %72

72:                                               ; preds = %68
  store i32 4, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  br label %153

73:                                               ; preds = %54, %53, %52, %47
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %13, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #4
  br label %171

77:                                               ; preds = %58, %57, %56, %55
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %13, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #4
  br label %171

81:                                               ; preds = %62, %61, %60, %59
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %13, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #4
  br label %171

85:                                               ; preds = %66, %65, %64, %63
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %13, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #4
  br label %171

89:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #4
  %90 = load i32, ptr %25, align 4, !tbaa !9
  %91 = add nsw i32 %90, 1
  %92 = load i32, ptr %4, align 4, !tbaa !9
  %93 = srem i32 %91, %92
  %94 = sext i32 %93 to i64
  %95 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %94) #4
  %96 = load i32, ptr %25, align 4, !tbaa !9
  %97 = sext i32 %96 to i64
  %98 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %97) #4
  invoke void @_ZNK2PTmiERKS_(ptr dead_on_unwind writable sret(%struct.PT) align 8 %27, ptr noundef nonnull align 8 dereferenceable(16) %95, ptr noundef nonnull align 8 dereferenceable(16) %98)
          to label %99 unwind label %130

99:                                               ; preds = %89
  invoke void @_ZN2PT4perpEv(ptr dead_on_unwind writable sret(%struct.PT) align 8 %26, ptr noundef nonnull align 8 dereferenceable(16) %27)
          to label %100 unwind label %130

100:                                              ; preds = %99
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #4
  %101 = load double, ptr %8, align 8, !tbaa !11
  invoke void @_ZN2PT8truncateEd(ptr dead_on_unwind writable sret(%struct.PT) align 8 %28, ptr noundef nonnull align 8 dereferenceable(16) %26, double noundef %101)
          to label %102 unwind label %134

102:                                              ; preds = %100
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %26, ptr align 8 %28, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #4
  %103 = load i32, ptr %25, align 4, !tbaa !9
  %104 = sext i32 %103 to i64
  %105 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %104) #4
  invoke void @_ZNK2PTplERKS_(ptr dead_on_unwind writable sret(%struct.PT) align 8 %29, ptr noundef nonnull align 8 dereferenceable(16) %105, ptr noundef nonnull align 8 dereferenceable(16) %26)
          to label %106 unwind label %138

106:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #4
  %107 = load i32, ptr %25, align 4, !tbaa !9
  %108 = add nsw i32 %107, 1
  %109 = load i32, ptr %4, align 4, !tbaa !9
  %110 = srem i32 %108, %109
  %111 = sext i32 %110 to i64
  %112 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %111) #4
  invoke void @_ZNK2PTplERKS_(ptr dead_on_unwind writable sret(%struct.PT) align 8 %30, ptr noundef nonnull align 8 dereferenceable(16) %112, ptr noundef nonnull align 8 dereferenceable(16) %26)
          to label %113 unwind label %142

113:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 32, ptr %31) #4
  %114 = load i32, ptr %25, align 4, !tbaa !9
  %115 = sext i32 %114 to i64
  %116 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %115) #4
  invoke void @_ZNK2PTplERKS_(ptr dead_on_unwind writable sret(%struct.PT) align 8 %32, ptr noundef nonnull align 8 dereferenceable(16) %116, ptr noundef nonnull align 8 dereferenceable(16) %26)
          to label %117 unwind label %146

117:                                              ; preds = %113
  %118 = load i32, ptr %25, align 4, !tbaa !9
  %119 = add nsw i32 %118, 1
  %120 = load i32, ptr %4, align 4, !tbaa !9
  %121 = srem i32 %119, %120
  %122 = sext i32 %121 to i64
  %123 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %122) #4
  invoke void @_ZNK2PTplERKS_(ptr dead_on_unwind writable sret(%struct.PT) align 8 %33, ptr noundef nonnull align 8 dereferenceable(16) %123, ptr noundef nonnull align 8 dereferenceable(16) %26)
          to label %124 unwind label %146

124:                                              ; preds = %117
  invoke void @_ZN2HPC2E2PTS0_(ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef %32, ptr noundef %33)
          to label %125 unwind label %146

125:                                              ; preds = %124
  invoke void @_ZNSt6vectorI2HPSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(32) %31)
          to label %126 unwind label %146

126:                                              ; preds = %125
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #4
  br label %127

127:                                              ; preds = %126
  %128 = load i32, ptr %25, align 4, !tbaa !9
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %25, align 4, !tbaa !9
  br label %68, !llvm.loop !14

130:                                              ; preds = %99, %89
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %13, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #4
  br label %152

134:                                              ; preds = %100
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %13, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #4
  br label %152

138:                                              ; preds = %102
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %13, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %14, align 4
  br label %151

142:                                              ; preds = %106
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %13, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %14, align 4
  br label %150

146:                                              ; preds = %125, %124, %117, %113
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %13, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #4
  br label %150

150:                                              ; preds = %146, %142
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #4
  br label %151

151:                                              ; preds = %150, %138
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #4
  br label %152

152:                                              ; preds = %151, %134, %130
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  br label %171

153:                                              ; preds = %72
  call void @llvm.lifetime.start.p0(i64 24, ptr %34) #4
  invoke void @_ZNSt6vectorI2HPSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %35, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %154 unwind label %159

154:                                              ; preds = %153
  invoke void @_Z23half_plane_intersectionSt6vectorI2HPSaIS0_EE(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %34, ptr noundef %35)
          to label %155 unwind label %163

155:                                              ; preds = %154
  call void @_ZNSt6vectorI2HPSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %35) #4
  %156 = call noundef zeroext i1 @_ZNKSt6vectorI2PTSaIS0_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %34) #4
  br i1 %156, label %167, label %157

157:                                              ; preds = %155
  %158 = load double, ptr %8, align 8, !tbaa !11
  store double %158, ptr %6, align 8, !tbaa !11
  br label %169

159:                                              ; preds = %153
  %160 = landingpad { ptr, i32 }
          cleanup
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %13, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %14, align 4
  br label %170

163:                                              ; preds = %154
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %13, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %14, align 4
  call void @_ZNSt6vectorI2HPSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %35) #4
  br label %170

167:                                              ; preds = %155
  %168 = load double, ptr %8, align 8, !tbaa !11
  store double %168, ptr %7, align 8, !tbaa !11
  br label %169

169:                                              ; preds = %167, %157
  call void @_ZNSt6vectorI2PTSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @_ZNSt6vectorI2HPSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br label %42, !llvm.loop !16

170:                                              ; preds = %163, %159
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #4
  br label %171

171:                                              ; preds = %170, %152, %85, %81, %77, %73
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @_ZNSt6vectorI2HPSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %176

172:                                              ; preds = %42
  %173 = load double, ptr %6, align 8, !tbaa !11
  store double %173, ptr %2, align 8
  store i32 1, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  br label %174

174:                                              ; preds = %172, %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  %175 = load double, ptr %2, align 8
  ret double %175

176:                                              ; preds = %171
  %177 = load ptr, ptr %13, align 8
  %178 = load i32, ptr %14, align 4
  %179 = insertvalue { ptr, i32 } poison, ptr %177, 0
  %180 = insertvalue { ptr, i32 } %179, i32 %178, 1
  resume { ptr, i32 } %180
}

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

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

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

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind 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 nounwind willreturn memory(argmem: readwrite) }
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)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{i64 0, i64 8, !11, i64 8, i64 8, !11}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}


; 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 { double, double }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<PT, std::allocator<PT>>::_Vector_impl" }
%"struct.std::_Vector_base<PT, std::allocator<PT>>::_Vector_impl" = type { %"struct.std::_Vector_base<PT, std::allocator<PT>>::_Vector_impl_data" }
%"struct.std::_Vector_base<PT, std::allocator<PT>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.42" = type { %"struct.std::_Vector_base.43" }
%"struct.std::_Vector_base.43" = type { %"struct.std::_Vector_base<HP, std::allocator<HP>>::_Vector_impl" }
%"struct.std::_Vector_base<HP, std::allocator<HP>>::_Vector_impl" = type { %"struct.std::_Vector_base<HP, std::allocator<HP>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HP, std::allocator<HP>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.HP = type { %struct.PT, %struct.PT }

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

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

; Function Attrs: mustprogress 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 void @_ZNK2PTplERKS_(ptr dead_on_unwind noalias writable sret(%struct.PT) align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_Z24maximum_inscribed_circleSt6vectorI2PTSaIS0_EE(ptr noundef nonnull %0) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::vector.42", align 8
  %3 = alloca %struct.HP, align 8
  %4 = alloca %struct.PT, align 8
  %5 = alloca %struct.PT, align 8
  %6 = alloca %struct.HP, align 8
  %7 = alloca %struct.PT, align 8
  %8 = alloca %struct.PT, align 8
  %9 = alloca %struct.HP, align 8
  %10 = alloca %struct.PT, align 8
  %11 = alloca %struct.PT, align 8
  %12 = alloca %struct.HP, align 8
  %13 = alloca %struct.PT, align 8
  %14 = alloca %struct.PT, align 8
  %15 = alloca %struct.PT, align 8
  %16 = alloca %struct.PT, align 8
  %17 = alloca %struct.PT, align 8
  %18 = alloca %struct.PT, align 8
  %19 = alloca %struct.PT, align 8
  %20 = alloca %struct.HP, align 8
  %21 = alloca %struct.PT, align 8
  %22 = alloca %struct.PT, align 8
  %23 = alloca %"class.std::vector", align 8
  %24 = alloca %"class.std::vector.42", align 8
  %25 = tail call noundef i64 @_ZNKSt6vectorI2PTSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  %26 = trunc i64 %25 to i32
  %27 = icmp slt i32 %26, 3
  br i1 %27, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %1
  %28 = and i64 %25, 2147483647
  br label %29

29:                                               ; preds = %.preheader, %79
  %.03054 = phi double [ 2.000000e+04, %.preheader ], [ %..030, %79 ]
  %.03253 = phi double [ 0.000000e+00, %.preheader ], [ %.032., %79 ]
  %30 = fadd double %.03253, %.03054
  %31 = fmul double %30, 5.000000e-01
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #4
  call void @_ZNSt6vectorI2HPSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #4
  call void @_ZN2PTC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %4, double noundef -1.000000e+09, double noundef -1.000000e+09)
  call void @_ZN2PTC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %5, double noundef 1.000000e+09, double noundef -1.000000e+09)
  invoke void @_ZN2HPC2E2PTS0_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull %4, ptr noundef nonnull %5)
          to label %32 unwind label %39

32:                                               ; preds = %29
  invoke void @_ZNSt6vectorI2HPSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %33 unwind label %39

33:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #4
  call void @_ZN2PTC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %7, double noundef 1.000000e+09, double noundef -1.000000e+09)
  call void @_ZN2PTC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %8, double noundef 1.000000e+09, double noundef 1.000000e+09)
  invoke void @_ZN2HPC2E2PTS0_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull %7, ptr noundef nonnull %8)
          to label %34 unwind label %41

34:                                               ; preds = %33
  invoke void @_ZNSt6vectorI2HPSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %35 unwind label %41

35:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #4
  call void @_ZN2PTC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %10, double noundef 1.000000e+09, double noundef 1.000000e+09)
  call void @_ZN2PTC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %11, double noundef -1.000000e+09, double noundef 1.000000e+09)
  invoke void @_ZN2HPC2E2PTS0_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull %10, ptr noundef nonnull %11)
          to label %36 unwind label %43

36:                                               ; preds = %35
  invoke void @_ZNSt6vectorI2HPSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %37 unwind label %43

37:                                               ; preds = %36
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #4
  call void @_ZN2PTC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %13, double noundef -1.000000e+09, double noundef 1.000000e+09)
  call void @_ZN2PTC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %14, double noundef -1.000000e+09, double noundef -1.000000e+09)
  invoke void @_ZN2HPC2E2PTS0_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull %13, ptr noundef nonnull %14)
          to label %38 unwind label %45

38:                                               ; preds = %37
  invoke void @_ZNSt6vectorI2HPSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %.lr.ph.preheader unwind label %45

.lr.ph.preheader:                                 ; preds = %38
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #4
  br label %.lr.ph

._crit_edge:                                      ; preds = %64
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %23) #4
  invoke void @_ZNSt6vectorI2HPSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 8 dereferenceable(24) %2)
          to label %78 unwind label %83

39:                                               ; preds = %32, %29
  %40 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #4
  br label %88

41:                                               ; preds = %34, %33
  %42 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #4
  br label %88

43:                                               ; preds = %36, %35
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #4
  br label %88

45:                                               ; preds = %38, %37
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #4
  br label %88

.lr.ph:                                           ; preds = %.lr.ph.preheader, %64
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %64 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %47 = icmp eq i64 %indvars.iv.next, %28
  %48 = and i64 %indvars.iv.next, 4294967295
  %49 = select i1 %47, i64 0, i64 %48
  %50 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %49) #4
  %51 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv) #4
  invoke void @_ZNK2PTmiERKS_(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %16, ptr noundef nonnull align 8 dereferenceable(16) %50, ptr noundef nonnull align 8 dereferenceable(16) %51)
          to label %52 unwind label %65

52:                                               ; preds = %.lr.ph
  invoke void @_ZN2PT4perpEv(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %15, ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %53 unwind label %65

53:                                               ; preds = %52
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #4
  invoke void @_ZN2PT8truncateEd(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %17, ptr noundef nonnull align 8 dereferenceable(16) %15, double noundef %31)
          to label %54 unwind label %67

54:                                               ; preds = %53
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %17, i64 16, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #4
  %55 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv) #4
  invoke void @_ZNK2PTplERKS_(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %18, ptr noundef nonnull align 8 dereferenceable(16) %55, ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %56 unwind label %69

56:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #4
  %57 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %49) #4
  invoke void @_ZNK2PTplERKS_(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %19, ptr noundef nonnull align 8 dereferenceable(16) %57, ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %58 unwind label %71

58:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %20) #4
  %59 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv) #4
  invoke void @_ZNK2PTplERKS_(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %21, ptr noundef nonnull align 8 dereferenceable(16) %59, ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %60 unwind label %73

60:                                               ; preds = %58
  %61 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %49) #4
  invoke void @_ZNK2PTplERKS_(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %22, ptr noundef nonnull align 8 dereferenceable(16) %61, ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %62 unwind label %73

62:                                               ; preds = %60
  invoke void @_ZN2HPC2E2PTS0_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull %21, ptr noundef nonnull %22)
          to label %63 unwind label %73

63:                                               ; preds = %62
  invoke void @_ZNSt6vectorI2HPSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(32) %20)
          to label %64 unwind label %73

64:                                               ; preds = %63
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #4
  %exitcond.not = icmp eq i64 %indvars.iv.next, %28
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !10

65:                                               ; preds = %52, %.lr.ph
  %66 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #4
  br label %77

67:                                               ; preds = %53
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #4
  br label %77

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

71:                                               ; preds = %56
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %75

73:                                               ; preds = %63, %62, %60, %58
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #4
  br label %75

75:                                               ; preds = %73, %71
  %.pn36 = phi { ptr, i32 } [ %74, %73 ], [ %72, %71 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #4
  br label %76

76:                                               ; preds = %75, %69
  %.pn36.pn = phi { ptr, i32 } [ %.pn36, %75 ], [ %70, %69 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #4
  br label %77

77:                                               ; preds = %76, %67, %65
  %.pn36.pn.pn = phi { ptr, i32 } [ %.pn36.pn, %76 ], [ %68, %67 ], [ %66, %65 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #4
  br label %88

78:                                               ; preds = %._crit_edge
  invoke void @_Z23half_plane_intersectionSt6vectorI2HPSaIS0_EE(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %23, ptr noundef nonnull %24)
          to label %79 unwind label %85

79:                                               ; preds = %78
  call void @_ZNSt6vectorI2HPSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #4
  %80 = call noundef zeroext i1 @_ZNKSt6vectorI2PTSaIS0_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #4
  %.032. = select i1 %80, double %.03253, double %31
  %..030 = select i1 %80, double %31, double %.03054
  call void @_ZNSt6vectorI2PTSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #4
  call void @_ZNSt6vectorI2HPSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #4
  %81 = fsub double %..030, %.032.
  %82 = fcmp ogt double %81, 1.000000e-09
  br i1 %82, label %29, label %.loopexit, !llvm.loop !12

83:                                               ; preds = %._crit_edge
  %84 = landingpad { ptr, i32 }
          cleanup
  br label %87

85:                                               ; preds = %78
  %86 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorI2HPSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #4
  br label %87

87:                                               ; preds = %85, %83
  %.pn = phi { ptr, i32 } [ %86, %85 ], [ %84, %83 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #4
  br label %88

88:                                               ; preds = %87, %77, %45, %43, %41, %39
  %.pn36.pn.pn.pn = phi { ptr, i32 } [ %.pn36.pn.pn, %77 ], [ %.pn, %87 ], [ %46, %45 ], [ %44, %43 ], [ %42, %41 ], [ %40, %39 ]
  call void @_ZNSt6vectorI2HPSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #4
  resume { ptr, i32 } %.pn36.pn.pn.pn

.loopexit:                                        ; preds = %79, %1
  %.029 = phi double [ 0.000000e+00, %1 ], [ %.032., %79 ]
  ret double %.029
}

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

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

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

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind 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 nounwind willreturn memory(argmem: readwrite) }
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)"}
!5 = !{i64 0, i64 8, !6, i64 8, i64 8, !6}
!6 = !{!7, !7, i64 0}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass