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

; 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.22" = type { %"struct.std::_Vector_base.23" }
%"struct.std::_Vector_base.23" = type { %"struct.std::_Vector_base<std::pair<double, int>, std::allocator<std::pair<double, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<double, int>, std::allocator<std::pair<double, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<double, int>, std::allocator<std::pair<double, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<double, int>, std::allocator<std::pair<double, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::initializer_list.48" = type { ptr, i64 }
%"struct.std::pair.27" = type <{ double, i32, [4 x i8] }>
%"class.std::allocator.24" = type { i8 }
%"class.__gnu_cxx::__normal_iterator.30" = type { ptr }
%struct.circle = type { %struct.PT, double }

@_ZL2PI = external hidden global double, align 8

; Function Attrs: nounwind
declare double @acos(double noundef) #0

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

; Function Attrs: nounwind
declare double @cos(double noundef) #0

; Function Attrs: nounwind
declare double @sin(double noundef) #0

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_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)) #4 align 2

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_Z20maximum_circle_coverSt6vectorI2PTSaIS0_EEdR6circle(ptr noundef %0, double noundef %1, ptr noundef nonnull align 8 dereferenceable(24) %2) #4 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca double, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca double, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::vector.22", align 8
  %14 = alloca %"class.std::initializer_list.48", align 8
  %15 = alloca [2 x %"struct.std::pair.27"], align 8
  %16 = alloca double, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %"class.std::allocator.24", align 1
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca double, align 8
  %24 = alloca %struct.PT, align 8
  %25 = alloca %struct.PT, align 8
  %26 = alloca double, align 8
  %27 = alloca %struct.PT, align 8
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  %31 = alloca %"struct.std::pair.27", align 8
  %32 = alloca double, align 8
  %33 = alloca i32, align 4
  %34 = alloca %"struct.std::pair.27", align 8
  %35 = alloca i32, align 4
  %36 = alloca %"struct.std::pair.27", align 8
  %37 = alloca double, align 8
  %38 = alloca i32, align 4
  %39 = alloca %"struct.std::pair.27", align 8
  %40 = alloca double, align 8
  %41 = alloca i32, align 4
  %42 = alloca %"class.__gnu_cxx::__normal_iterator.30", align 8
  %43 = alloca %"class.__gnu_cxx::__normal_iterator.30", align 8
  %44 = alloca i32, align 4
  %45 = alloca ptr, align 8
  %46 = alloca %"class.__gnu_cxx::__normal_iterator.30", align 8
  %47 = alloca %"class.__gnu_cxx::__normal_iterator.30", align 8
  %48 = alloca ptr, align 8
  %49 = alloca %struct.PT, align 8
  %50 = alloca %struct.circle, align 8
  %51 = alloca %struct.PT, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store double %1, ptr %5, align 8, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  %52 = call noundef i64 @_ZNKSt6vectorI2PTSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  %53 = trunc i64 %52 to i32
  store i32 %53, ptr %7, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  store i32 0, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  store i32 0, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  store double 0.000000e+00, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 0, ptr %11, align 4, !tbaa !11
  br label %54

54:                                               ; preds = %251, %3
  %55 = load i32, ptr %11, align 4, !tbaa !11
  %56 = load i32, ptr %7, align 4, !tbaa !11
  %57 = icmp slt i32 %55, %56
  br i1 %57, label %59, label %58

58:                                               ; preds = %54
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %256

59:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %60 = load double, ptr @_ZL2PI, align 8, !tbaa !9
  %61 = fneg double %60
  store double %61, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  store i32 1, ptr %17, align 4, !tbaa !11
  call void @_ZNSt4pairIdiEC2IdiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 8 dereferenceable(12) %15, ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(4) %17)
  %62 = getelementptr inbounds %"struct.std::pair.27", ptr %15, i64 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  store i32 -1, ptr %18, align 4, !tbaa !11
  call void @_ZNSt4pairIdiEC2IRKdiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 8 dereferenceable(12) %62, ptr noundef nonnull align 8 dereferenceable(8) @_ZL2PI, ptr noundef nonnull align 4 dereferenceable(4) %18)
  %63 = getelementptr inbounds %"class.std::initializer_list.48", ptr %14, i32 0, i32 0
  store ptr %15, ptr %63, align 8, !tbaa !13
  %64 = getelementptr inbounds %"class.std::initializer_list.48", ptr %14, i32 0, i32 1
  store i64 2, ptr %64, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #8
  call void @_ZNSaISt4pairIdiEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #8
  %65 = getelementptr inbounds { ptr, i64 }, ptr %14, i32 0, i32 0
  %66 = load ptr, ptr %65, align 8
  %67 = getelementptr inbounds { ptr, i64 }, ptr %14, i32 0, i32 1
  %68 = load i64, ptr %67, align 8
  invoke void @_ZNSt6vectorISt4pairIdiESaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr %66, i64 %68, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %69 unwind label %75

69:                                               ; preds = %59
  call void @_ZNSt15__new_allocatorISt4pairIdiEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  store i32 0, ptr %22, align 4, !tbaa !11
  br label %70

70:                                               ; preds = %202, %69
  %71 = load i32, ptr %22, align 4, !tbaa !11
  %72 = load i32, ptr %7, align 4, !tbaa !11
  %73 = icmp slt i32 %71, %72
  br i1 %73, label %79, label %74

74:                                               ; preds = %70
  store i32 5, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %208

75:                                               ; preds = %59
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %20, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %21, align 4
  call void @_ZNSt15__new_allocatorISt4pairIdiEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #8
  br label %255

79:                                               ; preds = %70
  %80 = load i32, ptr %22, align 4, !tbaa !11
  %81 = load i32, ptr %11, align 4, !tbaa !11
  %82 = icmp eq i32 %80, %81
  br i1 %82, label %83, label %84

83:                                               ; preds = %79
  br label %202

84:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %85 = load i32, ptr %11, align 4, !tbaa !11
  %86 = sext i32 %85 to i64
  %87 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %86) #8
  invoke void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(16) %87)
          to label %88 unwind label %100

88:                                               ; preds = %84
  %89 = load i32, ptr %22, align 4, !tbaa !11
  %90 = sext i32 %89 to i64
  %91 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %90) #8
  invoke void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(16) %91)
          to label %92 unwind label %100

92:                                               ; preds = %88
  %93 = invoke noundef double @_Z4dist2PTS_(ptr noundef %24, ptr noundef %25)
          to label %94 unwind label %100

94:                                               ; preds = %92
  store double %93, ptr %23, align 8, !tbaa !9
  %95 = load double, ptr %23, align 8, !tbaa !9
  %96 = load double, ptr %5, align 8, !tbaa !9
  %97 = fmul double %96, 2.000000e+00
  %98 = fcmp ogt double %95, %97
  br i1 %98, label %99, label %104

99:                                               ; preds = %94
  store i32 7, ptr %12, align 4
  br label %199

100:                                              ; preds = %92, %88, %84
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %20, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %21, align 4
  br label %207

104:                                              ; preds = %94
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #8
  %105 = load i32, ptr %22, align 4, !tbaa !11
  %106 = sext i32 %105 to i64
  %107 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %106) #8
  %108 = load i32, ptr %11, align 4, !tbaa !11
  %109 = sext i32 %108 to i64
  %110 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %109) #8
  invoke void @_ZNK2PTmiERKS_(ptr dead_on_unwind writable sret(%struct.PT) align 8 %27, ptr noundef nonnull align 8 dereferenceable(16) %107, ptr noundef nonnull align 8 dereferenceable(16) %110)
          to label %111 unwind label %133

111:                                              ; preds = %104
  %112 = invoke noundef double @_ZN2PT3argEv(ptr noundef nonnull align 8 dereferenceable(16) %27)
          to label %113 unwind label %133

113:                                              ; preds = %111
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #8
  store double %112, ptr %26, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  %114 = load double, ptr %23, align 8, !tbaa !9
  %115 = fdiv double %114, 2.000000e+00
  %116 = load double, ptr %5, align 8, !tbaa !9
  %117 = fdiv double %115, %116
  %118 = call double @acos(double noundef %117) #8
  store double %118, ptr %28, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  %119 = load double, ptr %26, align 8, !tbaa !9
  %120 = load double, ptr %28, align 8, !tbaa !9
  %121 = fsub double %119, %120
  store double %121, ptr %29, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  %122 = load double, ptr %26, align 8, !tbaa !9
  %123 = load double, ptr %28, align 8, !tbaa !9
  %124 = fadd double %122, %123
  store double %124, ptr %30, align 8, !tbaa !9
  %125 = load double, ptr %29, align 8, !tbaa !9
  %126 = load double, ptr @_ZL2PI, align 8, !tbaa !9
  %127 = fcmp ogt double %125, %126
  br i1 %127, label %128, label %137

128:                                              ; preds = %113
  %129 = load double, ptr @_ZL2PI, align 8, !tbaa !9
  %130 = load double, ptr %29, align 8, !tbaa !9
  %131 = fneg double %129
  %132 = call double @llvm.fmuladd.f64(double %131, double 2.000000e+00, double %130)
  store double %132, ptr %29, align 8, !tbaa !9
  br label %137

133:                                              ; preds = %111, %104
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %20, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #8
  br label %206

137:                                              ; preds = %128, %113
  %138 = load double, ptr %29, align 8, !tbaa !9
  %139 = load double, ptr @_ZL2PI, align 8, !tbaa !9
  %140 = fneg double %139
  %141 = fcmp ole double %138, %140
  br i1 %141, label %142, label %146

142:                                              ; preds = %137
  %143 = load double, ptr @_ZL2PI, align 8, !tbaa !9
  %144 = load double, ptr %29, align 8, !tbaa !9
  %145 = call double @llvm.fmuladd.f64(double %143, double 2.000000e+00, double %144)
  store double %145, ptr %29, align 8, !tbaa !9
  br label %146

146:                                              ; preds = %142, %137
  %147 = load double, ptr %30, align 8, !tbaa !9
  %148 = load double, ptr @_ZL2PI, align 8, !tbaa !9
  %149 = fcmp ogt double %147, %148
  br i1 %149, label %150, label %155

150:                                              ; preds = %146
  %151 = load double, ptr @_ZL2PI, align 8, !tbaa !9
  %152 = load double, ptr %30, align 8, !tbaa !9
  %153 = fneg double %151
  %154 = call double @llvm.fmuladd.f64(double %153, double 2.000000e+00, double %152)
  store double %154, ptr %30, align 8, !tbaa !9
  br label %155

155:                                              ; preds = %150, %146
  %156 = load double, ptr %30, align 8, !tbaa !9
  %157 = load double, ptr @_ZL2PI, align 8, !tbaa !9
  %158 = fneg double %157
  %159 = fcmp ole double %156, %158
  br i1 %159, label %160, label %164

160:                                              ; preds = %155
  %161 = load double, ptr @_ZL2PI, align 8, !tbaa !9
  %162 = load double, ptr %30, align 8, !tbaa !9
  %163 = call double @llvm.fmuladd.f64(double %161, double 2.000000e+00, double %162)
  store double %163, ptr %30, align 8, !tbaa !9
  br label %164

164:                                              ; preds = %160, %155
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  %165 = load double, ptr %29, align 8, !tbaa !9
  %166 = fsub double %165, 1.000000e-09
  store double %166, ptr %32, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #8
  store i32 1, ptr %33, align 4, !tbaa !11
  invoke void @_ZNSt4pairIdiEC2IdiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 8 dereferenceable(12) %31, ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 4 dereferenceable(4) %33)
          to label %167 unwind label %182

167:                                              ; preds = %164
  invoke void @_ZNSt6vectorISt4pairIdiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(12) %31)
          to label %168 unwind label %182

168:                                              ; preds = %167
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #8
  store i32 -1, ptr %35, align 4, !tbaa !11
  invoke void @_ZNSt4pairIdiEC2IRdiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(12) %34, ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 4 dereferenceable(4) %35)
          to label %169 unwind label %186

169:                                              ; preds = %168
  invoke void @_ZNSt6vectorISt4pairIdiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(12) %34)
          to label %170 unwind label %186

170:                                              ; preds = %169
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #8
  %171 = load double, ptr %29, align 8, !tbaa !9
  %172 = load double, ptr %30, align 8, !tbaa !9
  %173 = fcmp ogt double %171, %172
  br i1 %173, label %174, label %198

174:                                              ; preds = %170
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #8
  %175 = load double, ptr @_ZL2PI, align 8, !tbaa !9
  %176 = fneg double %175
  store double %176, ptr %37, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #8
  store i32 1, ptr %38, align 4, !tbaa !11
  invoke void @_ZNSt4pairIdiEC2IdiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 8 dereferenceable(12) %36, ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull align 4 dereferenceable(4) %38)
          to label %177 unwind label %190

177:                                              ; preds = %174
  invoke void @_ZNSt6vectorISt4pairIdiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(12) %36)
          to label %178 unwind label %190

178:                                              ; preds = %177
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %39) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #8
  %179 = load double, ptr @_ZL2PI, align 8, !tbaa !9
  store double %179, ptr %40, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #8
  store i32 -1, ptr %41, align 4, !tbaa !11
  invoke void @_ZNSt4pairIdiEC2IdiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 8 dereferenceable(12) %39, ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef nonnull align 4 dereferenceable(4) %41)
          to label %180 unwind label %194

180:                                              ; preds = %178
  invoke void @_ZNSt6vectorISt4pairIdiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(12) %39)
          to label %181 unwind label %194

181:                                              ; preds = %180
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #8
  br label %198

182:                                              ; preds = %167, %164
  %183 = landingpad { ptr, i32 }
          cleanup
  %184 = extractvalue { ptr, i32 } %183, 0
  store ptr %184, ptr %20, align 8
  %185 = extractvalue { ptr, i32 } %183, 1
  store i32 %185, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #8
  br label %205

186:                                              ; preds = %169, %168
  %187 = landingpad { ptr, i32 }
          cleanup
  %188 = extractvalue { ptr, i32 } %187, 0
  store ptr %188, ptr %20, align 8
  %189 = extractvalue { ptr, i32 } %187, 1
  store i32 %189, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #8
  br label %205

190:                                              ; preds = %177, %174
  %191 = landingpad { ptr, i32 }
          cleanup
  %192 = extractvalue { ptr, i32 } %191, 0
  store ptr %192, ptr %20, align 8
  %193 = extractvalue { ptr, i32 } %191, 1
  store i32 %193, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #8
  br label %205

194:                                              ; preds = %180, %178
  %195 = landingpad { ptr, i32 }
          cleanup
  %196 = extractvalue { ptr, i32 } %195, 0
  store ptr %196, ptr %20, align 8
  %197 = extractvalue { ptr, i32 } %195, 1
  store i32 %197, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #8
  br label %205

198:                                              ; preds = %181, %170
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  store i32 0, ptr %12, align 4
  br label %199

199:                                              ; preds = %198, %99
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  %200 = load i32, ptr %12, align 4
  switch i32 %200, label %284 [
    i32 0, label %201
    i32 7, label %202
  ]

201:                                              ; preds = %199
  br label %202

202:                                              ; preds = %201, %199, %83
  %203 = load i32, ptr %22, align 4, !tbaa !11
  %204 = add nsw i32 %203, 1
  store i32 %204, ptr %22, align 4, !tbaa !11
  br label %70, !llvm.loop !17

205:                                              ; preds = %194, %190, %186, %182
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  br label %206

206:                                              ; preds = %205, %133
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  br label %207

207:                                              ; preds = %206, %100
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %254

208:                                              ; preds = %74
  %209 = call ptr @_ZNSt6vectorISt4pairIdiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  %210 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.30", ptr %42, i32 0, i32 0
  store ptr %209, ptr %210, align 8
  %211 = call ptr @_ZNSt6vectorISt4pairIdiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  %212 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.30", ptr %43, i32 0, i32 0
  store ptr %211, ptr %212, align 8
  %213 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.30", ptr %42, i32 0, i32 0
  %214 = load ptr, ptr %213, align 8
  %215 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.30", ptr %43, i32 0, i32 0
  %216 = load ptr, ptr %215, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIdiESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %214, ptr %216)
          to label %217 unwind label %227

217:                                              ; preds = %208
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #8
  store i32 0, ptr %44, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #8
  store ptr %13, ptr %45, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #8
  %218 = load ptr, ptr %45, align 8, !tbaa !5
  %219 = call ptr @_ZNSt6vectorISt4pairIdiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %218) #8
  %220 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.30", ptr %46, i32 0, i32 0
  store ptr %219, ptr %220, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #8
  %221 = load ptr, ptr %45, align 8, !tbaa !5
  %222 = call ptr @_ZNSt6vectorISt4pairIdiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %221) #8
  %223 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.30", ptr %47, i32 0, i32 0
  store ptr %222, ptr %223, align 8
  br label %224

224:                                              ; preds = %248, %217
  %225 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIdiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef nonnull align 8 dereferenceable(8) %47) #8
  br i1 %225, label %231, label %226

226:                                              ; preds = %224
  store i32 8, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #8
  br label %250

227:                                              ; preds = %208
  %228 = landingpad { ptr, i32 }
          cleanup
  %229 = extractvalue { ptr, i32 } %228, 0
  store ptr %229, ptr %20, align 8
  %230 = extractvalue { ptr, i32 } %228, 1
  store i32 %230, ptr %21, align 4
  br label %254

231:                                              ; preds = %224
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #8
  %232 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIdiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %46) #8
  store ptr %232, ptr %48, align 8, !tbaa !5
  %233 = load ptr, ptr %48, align 8, !tbaa !5
  %234 = getelementptr inbounds %"struct.std::pair.27", ptr %233, i32 0, i32 1
  %235 = load i32, ptr %234, align 8, !tbaa !19
  %236 = load i32, ptr %44, align 4, !tbaa !11
  %237 = add nsw i32 %236, %235
  store i32 %237, ptr %44, align 4, !tbaa !11
  %238 = load i32, ptr %44, align 4, !tbaa !11
  %239 = load i32, ptr %8, align 4, !tbaa !11
  %240 = icmp sgt i32 %238, %239
  br i1 %240, label %241, label %247

241:                                              ; preds = %231
  %242 = load i32, ptr %44, align 4, !tbaa !11
  store i32 %242, ptr %8, align 4, !tbaa !11
  %243 = load i32, ptr %11, align 4, !tbaa !11
  store i32 %243, ptr %9, align 4, !tbaa !11
  %244 = load ptr, ptr %48, align 8, !tbaa !5
  %245 = getelementptr inbounds %"struct.std::pair.27", ptr %244, i32 0, i32 0
  %246 = load double, ptr %245, align 8, !tbaa !21
  store double %246, ptr %10, align 8, !tbaa !9
  br label %247

247:                                              ; preds = %241, %231
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #8
  br label %248

248:                                              ; preds = %247
  %249 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIdiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %46) #8
  br label %224

250:                                              ; preds = %226
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #8
  call void @_ZNSt6vectorISt4pairIdiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #8
  br label %251

251:                                              ; preds = %250
  %252 = load i32, ptr %11, align 4, !tbaa !11
  %253 = add nsw i32 %252, 1
  store i32 %253, ptr %11, align 4, !tbaa !11
  br label %54, !llvm.loop !22

254:                                              ; preds = %227, %207
  call void @_ZNSt6vectorISt4pairIdiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  br label %255

255:                                              ; preds = %254, %75
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  br label %279

256:                                              ; preds = %58
  call void @llvm.lifetime.start.p0(i64 16, ptr %49) #8
  %257 = load i32, ptr %9, align 4, !tbaa !11
  %258 = sext i32 %257 to i64
  %259 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %258) #8
  %260 = getelementptr inbounds %struct.PT, ptr %259, i32 0, i32 0
  %261 = load double, ptr %260, align 8, !tbaa !23
  %262 = load double, ptr %5, align 8, !tbaa !9
  %263 = load double, ptr %10, align 8, !tbaa !9
  %264 = call double @cos(double noundef %263) #8
  %265 = call double @llvm.fmuladd.f64(double %262, double %264, double %261)
  %266 = load i32, ptr %9, align 4, !tbaa !11
  %267 = sext i32 %266 to i64
  %268 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %267) #8
  %269 = getelementptr inbounds %struct.PT, ptr %268, i32 0, i32 1
  %270 = load double, ptr %269, align 8, !tbaa !25
  %271 = load double, ptr %5, align 8, !tbaa !9
  %272 = load double, ptr %10, align 8, !tbaa !9
  %273 = call double @sin(double noundef %272) #8
  %274 = call double @llvm.fmuladd.f64(double %271, double %273, double %270)
  call void @_ZN2PTC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %49, double noundef %265, double noundef %274)
  call void @llvm.lifetime.start.p0(i64 24, ptr %50) #8
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %51, ptr noundef nonnull align 8 dereferenceable(16) %49)
  %275 = load double, ptr %5, align 8, !tbaa !9
  call void @_ZN6circleC2E2PTd(ptr noundef nonnull align 8 dereferenceable(24) %50, ptr noundef %51, double noundef %275)
  %276 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %276, ptr align 8 %50, i64 24, i1 false), !tbaa.struct !26
  call void @llvm.lifetime.end.p0(i64 24, ptr %50) #8
  %277 = load i32, ptr %8, align 4, !tbaa !11
  %278 = sitofp i32 %277 to double
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %49) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  ret double %278

279:                                              ; preds = %255
  %280 = load ptr, ptr %20, align 8
  %281 = load i32, ptr %21, align 4
  %282 = insertvalue { ptr, i32 } poison, ptr %280, 0
  %283 = insertvalue { ptr, i32 } %282, i32 %281, 1
  resume { ptr, i32 } %283

284:                                              ; preds = %199
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIdiEC2IdiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIdiEC2IRKdiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZN2PT3argEv(ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIdiEC2IRdiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #1 align 2

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTSSt16initializer_listISt4pairIdiEE", !6, i64 0, !15, i64 8}
!15 = !{!"long", !7, i64 0}
!16 = !{!14, !15, i64 8}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!20, !12, i64 8}
!20 = !{!"_ZTSSt4pairIdiE", !10, i64 0, !12, i64 8}
!21 = !{!20, !10, i64 0}
!22 = distinct !{!22, !18}
!23 = !{!24, !10, i64 0}
!24 = !{!"_ZTS2PT", !10, i64 0, !10, i64 8}
!25 = !{!24, !10, i64 8}
!26 = !{i64 0, i64 8, !9, i64 8, i64 8, !9, i64 16, i64 8, !9}


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

%struct.PT = type { double, double }
%"class.std::vector.22" = type { %"struct.std::_Vector_base.23" }
%"struct.std::_Vector_base.23" = type { %"struct.std::_Vector_base<std::pair<double, int>, std::allocator<std::pair<double, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<double, int>, std::allocator<std::pair<double, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<double, int>, std::allocator<std::pair<double, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<double, int>, std::allocator<std::pair<double, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.27" = type <{ double, i32, [4 x i8] }>
%"class.std::allocator.24" = type { i8 }
%"class.__gnu_cxx::__normal_iterator.30" = type { ptr }
%struct.circle = type { %struct.PT, double }

@_ZL2PI = external hidden global double, align 8

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @acos(double noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @cos(double noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sin(double noundef) local_unnamed_addr #0

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_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 #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_Z4dist2PTS_(ptr noundef, ptr noundef) local_unnamed_addr #5

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_Z20maximum_circle_coverSt6vectorI2PTSaIS0_EEdR6circle(ptr noundef nonnull %0, double noundef %1, ptr nocapture noundef nonnull writeonly align 8 dereferenceable(24) %2) local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::vector.22", align 8
  %5 = alloca [2 x %"struct.std::pair.27"], align 8
  %6 = alloca double, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::allocator.24", align 1
  %10 = alloca %struct.PT, align 8
  %11 = alloca %struct.PT, align 8
  %12 = alloca %struct.PT, align 8
  %13 = alloca double, align 8
  %14 = alloca %"struct.std::pair.27", align 8
  %15 = alloca double, align 8
  %16 = alloca i32, align 4
  %17 = alloca %"struct.std::pair.27", align 8
  %18 = alloca i32, align 4
  %19 = alloca %"struct.std::pair.27", align 8
  %20 = alloca double, align 8
  %21 = alloca i32, align 4
  %22 = alloca %"struct.std::pair.27", align 8
  %23 = alloca double, align 8
  %24 = alloca i32, align 4
  %25 = alloca %"class.__gnu_cxx::__normal_iterator.30", align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator.30", align 8
  %27 = alloca %struct.PT, align 8
  %28 = alloca %struct.circle, align 8
  %29 = alloca %struct.PT, align 8
  %30 = tail call noundef i64 @_ZNKSt6vectorI2PTSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  %31 = trunc i64 %30 to i32
  %32 = icmp sgt i32 %31, 0
  br i1 %32, label %.lr.ph119, label %._crit_edge120

.lr.ph119:                                        ; preds = %3
  %33 = getelementptr inbounds i8, ptr %5, i64 16
  %34 = fmul double %1, 2.000000e+00
  %wide.trip.count128 = and i64 %30, 2147483647
  br label %46

._crit_edge120.loopexit:                          ; preds = %._crit_edge111
  %35 = sext i32 %.148.lcssa to i64
  %36 = uitofp nneg i32 %.1.lcssa to double
  br label %._crit_edge120

._crit_edge120:                                   ; preds = %._crit_edge120.loopexit, %3
  %.051.lcssa = phi double [ 0.000000e+00, %3 ], [ %.152.lcssa, %._crit_edge120.loopexit ]
  %.047.lcssa = phi i64 [ 0, %3 ], [ %35, %._crit_edge120.loopexit ]
  %.0.lcssa = phi double [ 0.000000e+00, %3 ], [ %36, %._crit_edge120.loopexit ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %27) #9
  %37 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.047.lcssa) #9
  %38 = load double, ptr %37, align 8, !tbaa !5
  %39 = call double @cos(double noundef %.051.lcssa) #9
  %40 = call double @llvm.fmuladd.f64(double %1, double %39, double %38)
  %41 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.047.lcssa) #9
  %42 = getelementptr inbounds i8, ptr %41, i64 8
  %43 = load double, ptr %42, align 8, !tbaa !10
  %44 = call double @sin(double noundef %.051.lcssa) #9
  %45 = call double @llvm.fmuladd.f64(double %1, double %44, double %43)
  call void @_ZN2PTC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %27, double noundef %40, double noundef %45)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %28) #9
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef nonnull align 8 dereferenceable(16) %27)
  call void @_ZN6circleC2E2PTd(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull %29, double noundef %1)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %28, i64 24, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %28) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %27) #9
  ret double %.0.lcssa

46:                                               ; preds = %.lr.ph119, %._crit_edge111
  %indvars.iv125 = phi i64 [ 0, %.lr.ph119 ], [ %indvars.iv.next126, %._crit_edge111 ]
  %.0117 = phi i32 [ 0, %.lr.ph119 ], [ %.1.lcssa, %._crit_edge111 ]
  %.047116 = phi i32 [ 0, %.lr.ph119 ], [ %.148.lcssa, %._crit_edge111 ]
  %.051115 = phi double [ 0.000000e+00, %.lr.ph119 ], [ %.152.lcssa, %._crit_edge111 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #9
  %47 = load double, ptr @_ZL2PI, align 8, !tbaa !12
  %48 = fneg double %47
  store double %48, ptr %6, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #9
  store i32 1, ptr %7, align 4, !tbaa !13
  call void @_ZNSt4pairIdiEC2IdiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 8 dereferenceable(12) %5, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #9
  store i32 -1, ptr %8, align 4, !tbaa !13
  call void @_ZNSt4pairIdiEC2IRKdiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 8 dereferenceable(12) %33, ptr noundef nonnull align 8 dereferenceable(8) @_ZL2PI, ptr noundef nonnull align 4 dereferenceable(4) %8)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #9
  call void @_ZNSaISt4pairIdiEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #9
  invoke void @_ZNSt6vectorISt4pairIdiESaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr nonnull %5, i64 2, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %.lr.ph unwind label %51

.lr.ph:                                           ; preds = %46
  call void @_ZNSt15__new_allocatorISt4pairIdiEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #9
  br label %53

._crit_edge:                                      ; preds = %110
  %49 = call ptr @_ZNSt6vectorISt4pairIdiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  %50 = call ptr @_ZNSt6vectorISt4pairIdiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIdiESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %49, ptr %50)
          to label %112 unwind label %117

51:                                               ; preds = %46
  %52 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt4pairIdiEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #9
  br label %128

53:                                               ; preds = %.lr.ph, %110
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %110 ]
  %54 = icmp eq i64 %indvars.iv, %indvars.iv125
  br i1 %54, label %110, label %55

55:                                               ; preds = %53
  %56 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv125) #9
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %56)
  %57 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv) #9
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %57)
  %58 = invoke noundef double @_Z4dist2PTS_(ptr noundef nonnull %10, ptr noundef nonnull %11)
          to label %59 unwind label %61

59:                                               ; preds = %55
  %60 = fcmp ogt double %58, %34
  br i1 %60, label %110, label %63

61:                                               ; preds = %55
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %127

63:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #9
  %64 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv) #9
  %65 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv125) #9
  invoke void @_ZNK2PTmiERKS_(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 8 %12, ptr noundef nonnull align 8 dereferenceable(16) %64, ptr noundef nonnull align 8 dereferenceable(16) %65)
          to label %66 unwind label %80

66:                                               ; preds = %63
  %67 = call noundef double @_ZN2PT3argEv(ptr noundef nonnull align 8 dereferenceable(16) %12)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #9
  %68 = fmul double %58, 5.000000e-01
  %69 = fdiv double %68, %1
  %70 = call double @acos(double noundef %69) #9
  %71 = fsub double %67, %70
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #9
  %72 = fadd double %67, %70
  store double %72, ptr %13, align 8, !tbaa !12
  %73 = load double, ptr @_ZL2PI, align 8, !tbaa !12
  %74 = fcmp ogt double %71, %73
  %75 = fneg double %73
  %76 = call double @llvm.fmuladd.f64(double %75, double 2.000000e+00, double %71)
  %.055 = select i1 %74, double %76, double %71
  %77 = fcmp ugt double %.055, %75
  %78 = call double @llvm.fmuladd.f64(double %73, double 2.000000e+00, double %.055)
  %.156 = select i1 %77, double %.055, double %78
  %79 = fcmp ogt double %72, %73
  br i1 %79, label %82, label %84

80:                                               ; preds = %63
  %81 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #9
  br label %127

82:                                               ; preds = %66
  %83 = call double @llvm.fmuladd.f64(double %75, double 2.000000e+00, double %72)
  store double %83, ptr %13, align 8, !tbaa !12
  br label %84

84:                                               ; preds = %82, %66
  %85 = phi double [ %83, %82 ], [ %72, %66 ]
  %86 = fcmp ugt double %85, %75
  br i1 %86, label %89, label %87

87:                                               ; preds = %84
  %88 = call double @llvm.fmuladd.f64(double %73, double 2.000000e+00, double %85)
  store double %88, ptr %13, align 8, !tbaa !12
  br label %89

89:                                               ; preds = %87, %84
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #9
  %90 = fadd double %.156, -1.000000e-09
  store double %90, ptr %15, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #9
  store i32 1, ptr %16, align 4, !tbaa !13
  call void @_ZNSt4pairIdiEC2IdiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 8 dereferenceable(12) %14, ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(4) %16)
  invoke void @_ZNSt6vectorISt4pairIdiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(12) %14)
          to label %91 unwind label %101

91:                                               ; preds = %89
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #9
  store i32 -1, ptr %18, align 4, !tbaa !13
  call void @_ZNSt4pairIdiEC2IRdiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(12) %17, ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(4) %18)
  invoke void @_ZNSt6vectorISt4pairIdiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(12) %17)
          to label %92 unwind label %103

92:                                               ; preds = %91
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #9
  %93 = load double, ptr %13, align 8, !tbaa !12
  %94 = fcmp ogt double %.156, %93
  br i1 %94, label %95, label %109

95:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #9
  %96 = load double, ptr @_ZL2PI, align 8, !tbaa !12
  %97 = fneg double %96
  store double %97, ptr %20, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #9
  store i32 1, ptr %21, align 4, !tbaa !13
  call void @_ZNSt4pairIdiEC2IdiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 8 dereferenceable(12) %19, ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 4 dereferenceable(4) %21)
  invoke void @_ZNSt6vectorISt4pairIdiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(12) %19)
          to label %98 unwind label %105

98:                                               ; preds = %95
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #9
  %99 = load double, ptr @_ZL2PI, align 8, !tbaa !12
  store double %99, ptr %23, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #9
  store i32 -1, ptr %24, align 4, !tbaa !13
  call void @_ZNSt4pairIdiEC2IdiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 8 dereferenceable(12) %22, ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 4 dereferenceable(4) %24)
  invoke void @_ZNSt6vectorISt4pairIdiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(12) %22)
          to label %100 unwind label %107

100:                                              ; preds = %98
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #9
  br label %109

101:                                              ; preds = %89
  %102 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #9
  br label %111

103:                                              ; preds = %91
  %104 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #9
  br label %111

105:                                              ; preds = %95
  %106 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #9
  br label %111

107:                                              ; preds = %98
  %108 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #9
  br label %111

109:                                              ; preds = %100, %92
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #9
  br label %110

110:                                              ; preds = %109, %59, %53
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count128
  br i1 %exitcond.not, label %._crit_edge, label %53, !llvm.loop !15

111:                                              ; preds = %107, %105, %103, %101
  %.pn = phi { ptr, i32 } [ %108, %107 ], [ %106, %105 ], [ %104, %103 ], [ %102, %101 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #9
  br label %127

112:                                              ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #9
  %113 = call ptr @_ZNSt6vectorISt4pairIdiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  store ptr %113, ptr %25, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #9
  %114 = call ptr @_ZNSt6vectorISt4pairIdiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  store ptr %114, ptr %26, align 8
  %115 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIdiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %26) #9
  br i1 %115, label %.lr.ph110.preheader, label %._crit_edge111

.lr.ph110.preheader:                              ; preds = %112
  %116 = trunc nuw nsw i64 %indvars.iv125 to i32
  br label %.lr.ph110

._crit_edge111:                                   ; preds = %.lr.ph110, %112
  %.152.lcssa = phi double [ %.051115, %112 ], [ %.253, %.lr.ph110 ]
  %.148.lcssa = phi i32 [ %.047116, %112 ], [ %.249, %.lr.ph110 ]
  %.1.lcssa = phi i32 [ %.0117, %112 ], [ %.2, %.lr.ph110 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #9
  call void @_ZNSt6vectorISt4pairIdiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #9
  %indvars.iv.next126 = add nuw nsw i64 %indvars.iv125, 1
  %exitcond129.not = icmp eq i64 %indvars.iv.next126, %wide.trip.count128
  br i1 %exitcond129.not, label %._crit_edge120.loopexit, label %46, !llvm.loop !17

117:                                              ; preds = %._crit_edge
  %118 = landingpad { ptr, i32 }
          cleanup
  br label %127

.lr.ph110:                                        ; preds = %.lr.ph110.preheader, %.lr.ph110
  %.1108 = phi i32 [ %.2, %.lr.ph110 ], [ %.0117, %.lr.ph110.preheader ]
  %.148107 = phi i32 [ %.249, %.lr.ph110 ], [ %.047116, %.lr.ph110.preheader ]
  %.050106 = phi i32 [ %122, %.lr.ph110 ], [ 0, %.lr.ph110.preheader ]
  %.152105 = phi double [ %.253, %.lr.ph110 ], [ %.051115, %.lr.ph110.preheader ]
  %119 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIdiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #9
  %120 = getelementptr inbounds i8, ptr %119, i64 8
  %121 = load i32, ptr %120, align 8, !tbaa !18
  %122 = add nsw i32 %121, %.050106
  %123 = icmp sgt i32 %122, %.1108
  %124 = load double, ptr %119, align 8
  %.253 = select i1 %123, double %124, double %.152105
  %.249 = select i1 %123, i32 %116, i32 %.148107
  %.2 = call i32 @llvm.smax.i32(i32 %122, i32 %.1108)
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIdiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #9
  %126 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIdiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %26) #9
  br i1 %126, label %.lr.ph110, label %._crit_edge111

127:                                              ; preds = %61, %111, %80, %117
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %118, %117 ], [ %62, %61 ], [ %.pn, %111 ], [ %81, %80 ]
  call void @_ZNSt6vectorISt4pairIdiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  br label %128

128:                                              ; preds = %127, %51
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %127 ], [ %52, %51 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #9
  resume { ptr, i32 } %.pn.pn.pn.pn.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIdiEC2IdiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIdiEC2IRKdiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIdiEC2IRdiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #1 align 2

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #8

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


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