; LLVM IR from ncduy0303/Competitive-Programming :: Others/Closest_3_Points(Divide&Conquer).ll (Z3dacii)

; 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.__gnu_cxx::__normal_iterator" = type { ptr }

@pts = external dso_local global [100001 x %struct.pt], align 16

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z5cmp_y2ptS_(double, double, double, double) #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_Z9perimeter2ptS_S_(double, double, double, double, double, double) #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

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_Z3dacii(i32 noundef %0, i32 noundef %1) #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca double, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %struct.pt, align 8
  %7 = alloca %struct.pt, align 8
  %8 = alloca %struct.pt, align 8
  %9 = alloca i32, align 4
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca %"class.std::vector", align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %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 %struct.pt, align 8
  store i32 %0, ptr %4, align 4, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !5
  %27 = load i32, ptr %5, align 4, !tbaa !5
  %28 = load i32, ptr %4, align 4, !tbaa !5
  %29 = sub nsw i32 %27, %28
  %30 = icmp sle i32 %29, 1
  br i1 %30, label %31, label %32

31:                                               ; preds = %2
  store double 1.000000e+09, ptr %3, align 8
  br label %226

32:                                               ; preds = %2
  %33 = load i32, ptr %5, align 4, !tbaa !5
  %34 = load i32, ptr %4, align 4, !tbaa !5
  %35 = sub nsw i32 %33, %34
  %36 = icmp eq i32 %35, 2
  br i1 %36, label %37, label %62

37:                                               ; preds = %32
  %38 = load i32, ptr %4, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [100001 x %struct.pt], ptr @pts, i64 0, i64 %39
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 16 %40, i64 16, i1 false), !tbaa.struct !9
  %41 = load i32, ptr %4, align 4, !tbaa !5
  %42 = add nsw i32 %41, 1
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [100001 x %struct.pt], ptr @pts, i64 0, i64 %43
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %7, ptr align 16 %44, i64 16, i1 false), !tbaa.struct !9
  %45 = load i32, ptr %4, align 4, !tbaa !5
  %46 = add nsw i32 %45, 2
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [100001 x %struct.pt], ptr @pts, i64 0, i64 %47
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 16 %48, i64 16, i1 false), !tbaa.struct !9
  %49 = getelementptr inbounds { double, double }, ptr %6, i32 0, i32 0
  %50 = load double, ptr %49, align 8
  %51 = getelementptr inbounds { double, double }, ptr %6, i32 0, i32 1
  %52 = load double, ptr %51, align 8
  %53 = getelementptr inbounds { double, double }, ptr %7, i32 0, i32 0
  %54 = load double, ptr %53, align 8
  %55 = getelementptr inbounds { double, double }, ptr %7, i32 0, i32 1
  %56 = load double, ptr %55, align 8
  %57 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 0
  %58 = load double, ptr %57, align 8
  %59 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 1
  %60 = load double, ptr %59, align 8
  %61 = call noundef double @_Z9perimeter2ptS_S_(double %50, double %52, double %54, double %56, double %58, double %60)
  store double %61, ptr %3, align 8
  br label %226

62:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %63 = load i32, ptr %4, align 4, !tbaa !5
  %64 = load i32, ptr %5, align 4, !tbaa !5
  %65 = add nsw i32 %63, %64
  %66 = sdiv i32 %65, 2
  store i32 %66, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %67 = load i32, ptr %4, align 4, !tbaa !5
  %68 = load i32, ptr %9, align 4, !tbaa !5
  %69 = call noundef double @_Z3dacii(i32 noundef %67, i32 noundef %68)
  store double %69, ptr %10, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %70 = load i32, ptr %9, align 4, !tbaa !5
  %71 = add nsw i32 %70, 1
  %72 = load i32, ptr %5, align 4, !tbaa !5
  %73 = call noundef double @_Z3dacii(i32 noundef %71, i32 noundef %72)
  store double %73, ptr %11, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %75 = load double, ptr %74, align 8, !tbaa !10
  store double %75, ptr %12, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #6
  call void @_ZNSt6vectorI2ptSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %76 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %76, ptr %14, align 4, !tbaa !5
  br label %77

77:                                               ; preds = %108, %62
  %78 = load i32, ptr %14, align 4, !tbaa !5
  %79 = load i32, ptr %5, align 4, !tbaa !5
  %80 = icmp sle i32 %78, %79
  br i1 %80, label %82, label %81

81:                                               ; preds = %77
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %111

82:                                               ; preds = %77
  %83 = load i32, ptr %14, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [100001 x %struct.pt], ptr @pts, i64 0, i64 %84
  %86 = getelementptr inbounds %struct.pt, ptr %85, i32 0, i32 0
  %87 = load double, ptr %86, align 16, !tbaa !12
  %88 = load i32, ptr %9, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [100001 x %struct.pt], ptr @pts, i64 0, i64 %89
  %91 = getelementptr inbounds %struct.pt, ptr %90, i32 0, i32 0
  %92 = load double, ptr %91, align 16, !tbaa !12
  %93 = fsub double %87, %92
  %94 = invoke noundef double @_ZSt3absd(double noundef %93)
          to label %95 unwind label %103

95:                                               ; preds = %82
  %96 = load double, ptr %12, align 8, !tbaa !10
  %97 = fcmp olt double %94, %96
  br i1 %97, label %98, label %107

98:                                               ; preds = %95
  %99 = load i32, ptr %14, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [100001 x %struct.pt], ptr @pts, i64 0, i64 %100
  invoke void @_ZNSt6vectorI2ptSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(16) %101)
          to label %102 unwind label %103

102:                                              ; preds = %98
  br label %107

103:                                              ; preds = %98, %82
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %15, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %225

107:                                              ; preds = %102, %95
  br label %108

108:                                              ; preds = %107
  %109 = load i32, ptr %14, align 4, !tbaa !5
  %110 = add nsw i32 %109, 1
  store i32 %110, ptr %14, align 4, !tbaa !5
  br label %77, !llvm.loop !14

111:                                              ; preds = %81
  %112 = call ptr @_ZNSt6vectorI2ptSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  %113 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  store ptr %112, ptr %113, align 8
  %114 = call ptr @_ZNSt6vectorI2ptSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  %115 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  store ptr %114, ptr %115, align 8
  %116 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  %117 = load ptr, ptr %116, align 8
  %118 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  %119 = load ptr, ptr %118, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS2_SaIS2_EEEEPFbS2_S2_EEvT_SA_T0_(ptr %117, ptr %119, ptr noundef @_Z5cmp_y2ptS_)
          to label %120 unwind label %127

120:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %121

121:                                              ; preds = %220, %120
  %122 = load i32, ptr %19, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  %125 = icmp ult i64 %123, %124
  br i1 %125, label %131, label %126

126:                                              ; preds = %121
  store i32 5, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %223

127:                                              ; preds = %111
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %15, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %16, align 4
  br label %225

131:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %132 = load i32, ptr %19, align 4, !tbaa !5
  %133 = add nsw i32 %132, 1
  store i32 %133, ptr %21, align 4, !tbaa !5
  br label %134

134:                                              ; preds = %216, %131
  %135 = load i32, ptr %21, align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  %138 = icmp ult i64 %136, %137
  br i1 %138, label %139, label %153

139:                                              ; preds = %134
  %140 = load i32, ptr %21, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %141) #6
  %143 = getelementptr inbounds %struct.pt, ptr %142, i32 0, i32 1
  %144 = load double, ptr %143, align 8, !tbaa !16
  %145 = load i32, ptr %19, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %146) #6
  %148 = getelementptr inbounds %struct.pt, ptr %147, i32 0, i32 1
  %149 = load double, ptr %148, align 8, !tbaa !16
  %150 = fsub double %144, %149
  %151 = load double, ptr %12, align 8, !tbaa !10
  %152 = fcmp olt double %150, %151
  br label %153

153:                                              ; preds = %139, %134
  %154 = phi i1 [ false, %134 ], [ %152, %139 ]
  br i1 %154, label %156, label %155

155:                                              ; preds = %153
  store i32 8, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %219

156:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %157 = load i32, ptr %21, align 4, !tbaa !5
  %158 = add nsw i32 %157, 1
  store i32 %158, ptr %22, align 4, !tbaa !5
  br label %159

159:                                              ; preds = %208, %156
  %160 = load i32, ptr %22, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  %163 = icmp ult i64 %161, %162
  br i1 %163, label %164, label %178

164:                                              ; preds = %159
  %165 = load i32, ptr %22, align 4, !tbaa !5
  %166 = sext i32 %165 to i64
  %167 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %166) #6
  %168 = getelementptr inbounds %struct.pt, ptr %167, i32 0, i32 1
  %169 = load double, ptr %168, align 8, !tbaa !16
  %170 = load i32, ptr %21, align 4, !tbaa !5
  %171 = sext i32 %170 to i64
  %172 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %171) #6
  %173 = getelementptr inbounds %struct.pt, ptr %172, i32 0, i32 1
  %174 = load double, ptr %173, align 8, !tbaa !16
  %175 = fsub double %169, %174
  %176 = load double, ptr %12, align 8, !tbaa !10
  %177 = fcmp olt double %175, %176
  br label %178

178:                                              ; preds = %164, %159
  %179 = phi i1 [ false, %159 ], [ %177, %164 ]
  br i1 %179, label %181, label %180

180:                                              ; preds = %178
  store i32 11, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %215

181:                                              ; preds = %178
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %182 = load i32, ptr %19, align 4, !tbaa !5
  %183 = sext i32 %182 to i64
  %184 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %183) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %24, ptr align 8 %184, i64 16, i1 false), !tbaa.struct !9
  %185 = load i32, ptr %21, align 4, !tbaa !5
  %186 = sext i32 %185 to i64
  %187 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %186) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 8 %187, i64 16, i1 false), !tbaa.struct !9
  %188 = load i32, ptr %22, align 4, !tbaa !5
  %189 = sext i32 %188 to i64
  %190 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %189) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %26, ptr align 8 %190, i64 16, i1 false), !tbaa.struct !9
  %191 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %192 = load double, ptr %191, align 8
  %193 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  %194 = load double, ptr %193, align 8
  %195 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %196 = load double, ptr %195, align 8
  %197 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %198 = load double, ptr %197, align 8
  %199 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %200 = load double, ptr %199, align 8
  %201 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %202 = load double, ptr %201, align 8
  %203 = invoke noundef double @_Z9perimeter2ptS_S_(double %192, double %194, double %196, double %198, double %200, double %202)
          to label %204 unwind label %211

204:                                              ; preds = %181
  store double %203, ptr %23, align 8, !tbaa !10
  %205 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %206 unwind label %211

206:                                              ; preds = %204
  %207 = load double, ptr %205, align 8, !tbaa !10
  store double %207, ptr %12, align 8, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %208

208:                                              ; preds = %206
  %209 = load i32, ptr %22, align 4, !tbaa !5
  %210 = add nsw i32 %209, 1
  store i32 %210, ptr %22, align 4, !tbaa !5
  br label %159, !llvm.loop !17

211:                                              ; preds = %204, %181
  %212 = landingpad { ptr, i32 }
          cleanup
  %213 = extractvalue { ptr, i32 } %212, 0
  store ptr %213, ptr %15, align 8
  %214 = extractvalue { ptr, i32 } %212, 1
  store i32 %214, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %225

215:                                              ; preds = %180
  br label %216

216:                                              ; preds = %215
  %217 = load i32, ptr %21, align 4, !tbaa !5
  %218 = add nsw i32 %217, 1
  store i32 %218, ptr %21, align 4, !tbaa !5
  br label %134, !llvm.loop !18

219:                                              ; preds = %155
  br label %220

220:                                              ; preds = %219
  %221 = load i32, ptr %19, align 4, !tbaa !5
  %222 = add nsw i32 %221, 1
  store i32 %222, ptr %19, align 4, !tbaa !5
  br label %121, !llvm.loop !19

223:                                              ; preds = %126
  %224 = load double, ptr %12, align 8, !tbaa !10
  store double %224, ptr %3, align 8
  store i32 1, ptr %20, align 4
  call void @_ZNSt6vectorI2ptSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %226

225:                                              ; preds = %211, %127, %103
  call void @_ZNSt6vectorI2ptSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %228

226:                                              ; preds = %223, %37, %31
  %227 = load double, ptr %3, align 8
  ret double %227

228:                                              ; preds = %225
  %229 = load ptr, ptr %15, align 8
  %230 = load i32, ptr %16, align 4
  %231 = insertvalue { ptr, i32 } poison, ptr %229, 0
  %232 = insertvalue { ptr, i32 } %231, i32 %230, 1
  resume { ptr, i32 } %232
}

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: mustprogress 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 nounwind uwtable
declare dso_local void @_ZNSt6vectorI2ptSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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 = { 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 #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i64 0, i64 8, !10, i64 8, i64 8, !10}
!10 = !{!11, !11, i64 0}
!11 = !{!"double", !7, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"_ZTS2pt", !11, i64 0, !11, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!13, !11, i64 8}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !15}
!19 = distinct !{!19, !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 }

@pts = external dso_local global [100001 x %struct.pt], align 16

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z5cmp_y2ptS_(double, double, double, double) #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_Z9perimeter2ptS_S_(double, double, double, double, double, double) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_Z3dacii(i32 noundef %0, i32 noundef %1) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca double, align 8
  %8 = sub nsw i32 %1, %0
  %9 = icmp slt i32 %8, 2
  br i1 %9, label %92, label %10

10:                                               ; preds = %2
  %11 = icmp eq i32 %8, 2
  br i1 %11, label %12, label %22

12:                                               ; preds = %10
  %13 = sext i32 %0 to i64
  %14 = getelementptr inbounds [100001 x %struct.pt], ptr @pts, i64 0, i64 %13
  %.sroa.035.0.copyload = load double, ptr %14, align 16, !tbaa !5
  %.sroa.236.0..sroa_idx = getelementptr inbounds i8, ptr %14, i64 8
  %.sroa.236.0.copyload = load double, ptr %.sroa.236.0..sroa_idx, align 8, !tbaa !5
  %15 = add nsw i32 %0, 1
  %16 = sext i32 %15 to i64
  %17 = getelementptr inbounds [100001 x %struct.pt], ptr @pts, i64 0, i64 %16
  %.sroa.033.0.copyload = load double, ptr %17, align 16, !tbaa !5
  %.sroa.234.0..sroa_idx = getelementptr inbounds i8, ptr %17, i64 8
  %.sroa.234.0.copyload = load double, ptr %.sroa.234.0..sroa_idx, align 8, !tbaa !5
  %18 = add nsw i32 %0, 2
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds [100001 x %struct.pt], ptr @pts, i64 0, i64 %19
  %.sroa.031.0.copyload = load double, ptr %20, align 16, !tbaa !5
  %.sroa.232.0..sroa_idx = getelementptr inbounds i8, ptr %20, i64 8
  %.sroa.232.0.copyload = load double, ptr %.sroa.232.0..sroa_idx, align 8, !tbaa !5
  %21 = tail call noundef double @_Z9perimeter2ptS_S_(double %.sroa.035.0.copyload, double %.sroa.236.0.copyload, double %.sroa.033.0.copyload, double %.sroa.234.0.copyload, double %.sroa.031.0.copyload, double %.sroa.232.0.copyload)
  br label %92

22:                                               ; preds = %10
  %23 = add nsw i32 %1, %0
  %24 = sdiv i32 %23, 2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %25 = tail call noundef double @_Z3dacii(i32 noundef %0, i32 noundef %24)
  store double %25, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %26 = add nsw i32 %24, 1
  %27 = tail call noundef double @_Z3dacii(i32 noundef %26, i32 noundef %1)
  store double %27, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %29 = load double, ptr %28, align 8, !tbaa !5
  store double %29, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #5
  call void @_ZNSt6vectorI2ptSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  %.not62 = icmp sgt i32 %0, %1
  br i1 %.not62, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %22
  %30 = sext i32 %24 to i64
  %31 = getelementptr inbounds [100001 x %struct.pt], ptr @pts, i64 0, i64 %30
  %32 = sext i32 %0 to i64
  %33 = add i32 %1, 1
  br label %37

._crit_edge:                                      ; preds = %47, %22
  %34 = call ptr @_ZNSt6vectorI2ptSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  %35 = call ptr @_ZNSt6vectorI2ptSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS2_SaIS2_EEEEPFbS2_S2_EEvT_SA_T0_(ptr %34, ptr %35, ptr noundef nonnull @_Z5cmp_y2ptS_)
          to label %.preheader unwind label %49

.preheader:                                       ; preds = %._crit_edge
  %36 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  %.not = icmp eq i64 %36, 0
  br i1 %.not, label %._crit_edge74, label %.lr.ph73

37:                                               ; preds = %.lr.ph, %47
  %indvars.iv = phi i64 [ %32, %.lr.ph ], [ %indvars.iv.next, %47 ]
  %38 = getelementptr inbounds [100001 x %struct.pt], ptr @pts, i64 0, i64 %indvars.iv
  %39 = load double, ptr %38, align 16, !tbaa !9
  %40 = load double, ptr %31, align 16, !tbaa !9
  %41 = fsub double %39, %40
  %42 = call noundef double @_ZSt3absd(double noundef %41)
  %43 = fcmp olt double %42, %29
  br i1 %43, label %44, label %47

44:                                               ; preds = %37
  invoke void @_ZNSt6vectorI2ptSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(16) %38)
          to label %47 unwind label %45

45:                                               ; preds = %44
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %91

47:                                               ; preds = %37, %44
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next to i32
  %exitcond.not = icmp eq i32 %33, %lftr.wideiv
  br i1 %exitcond.not, label %._crit_edge, label %37, !llvm.loop !11

._crit_edge74.loopexit:                           ; preds = %.critedge
  %.pre = load double, ptr %5, align 8, !tbaa !5
  br label %._crit_edge74

._crit_edge74:                                    ; preds = %._crit_edge74.loopexit, %.preheader
  %48 = phi double [ %.pre, %._crit_edge74.loopexit ], [ %29, %.preheader ]
  call void @_ZNSt6vectorI2ptSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  br label %92

49:                                               ; preds = %._crit_edge
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %91

.lr.ph73:                                         ; preds = %.preheader, %.critedge
  %indvars.iv88 = phi i64 [ %indvars.iv.next89, %.critedge ], [ 0, %.preheader ]
  %indvars.iv83 = phi i64 [ %indvars.iv.next84, %.critedge ], [ 1, %.preheader ]
  %indvars.iv76 = phi i32 [ %indvars.iv.next77, %.critedge ], [ 2, %.preheader ]
  %indvars.iv.next89 = add nuw nsw i64 %indvars.iv88, 1
  %51 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  %52 = icmp ugt i64 %51, %indvars.iv.next89
  br i1 %52, label %.lr.ph70, label %.critedge

.lr.ph70:                                         ; preds = %.lr.ph73, %.critedge2
  %indvars.iv85 = phi i64 [ %indvars.iv.next86, %.critedge2 ], [ %indvars.iv83, %.lr.ph73 ]
  %indvars.iv78 = phi i32 [ %indvars.iv.next79, %.critedge2 ], [ %indvars.iv76, %.lr.ph73 ]
  %53 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv85) #5
  %54 = getelementptr inbounds i8, ptr %53, i64 8
  %55 = load double, ptr %54, align 8, !tbaa !13
  %56 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv88) #5
  %57 = getelementptr inbounds i8, ptr %56, i64 8
  %58 = load double, ptr %57, align 8, !tbaa !13
  %59 = fsub double %55, %58
  %60 = load double, ptr %5, align 8, !tbaa !5
  %61 = fcmp olt double %59, %60
  br i1 %61, label %64, label %.critedge

.critedge:                                        ; preds = %.lr.ph70, %.critedge2, %.lr.ph73
  %62 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  %63 = icmp ugt i64 %62, %indvars.iv.next89
  %indvars.iv.next77 = add i32 %indvars.iv76, 1
  %indvars.iv.next84 = add nuw i64 %indvars.iv83, 1
  br i1 %63, label %.lr.ph73, label %._crit_edge74.loopexit, !llvm.loop !14

64:                                               ; preds = %.lr.ph70
  %indvars.iv.next86 = add nuw nsw i64 %indvars.iv85, 1
  %65 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  %66 = icmp ugt i64 %65, %indvars.iv.next86
  br i1 %66, label %.lr.ph66.preheader, label %.critedge2

.lr.ph66.preheader:                               ; preds = %64
  %67 = zext i32 %indvars.iv78 to i64
  br label %.lr.ph66

.lr.ph66:                                         ; preds = %.lr.ph66.preheader, %84
  %indvars.iv80 = phi i64 [ %indvars.iv.next81, %84 ], [ %67, %.lr.ph66.preheader ]
  %68 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv80) #5
  %69 = getelementptr inbounds i8, ptr %68, i64 8
  %70 = load double, ptr %69, align 8, !tbaa !13
  %71 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv85) #5
  %72 = getelementptr inbounds i8, ptr %71, i64 8
  %73 = load double, ptr %72, align 8, !tbaa !13
  %74 = fsub double %70, %73
  %75 = load double, ptr %5, align 8, !tbaa !5
  %76 = fcmp olt double %74, %75
  br i1 %76, label %79, label %.critedge2

.critedge2:                                       ; preds = %.lr.ph66, %84, %64
  %77 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  %78 = icmp ugt i64 %77, %indvars.iv.next86
  %indvars.iv.next79 = add i32 %indvars.iv78, 1
  br i1 %78, label %.lr.ph70, label %.critedge, !llvm.loop !15

79:                                               ; preds = %.lr.ph66
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %80 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv88) #5
  %.sroa.05.0.copyload = load double, ptr %80, align 8, !tbaa !5
  %.sroa.26.0..sroa_idx = getelementptr inbounds i8, ptr %80, i64 8
  %.sroa.26.0.copyload = load double, ptr %.sroa.26.0..sroa_idx, align 8, !tbaa !5
  %81 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv85) #5
  %.sroa.03.0.copyload = load double, ptr %81, align 8, !tbaa !5
  %.sroa.24.0..sroa_idx = getelementptr inbounds i8, ptr %81, i64 8
  %.sroa.24.0.copyload = load double, ptr %.sroa.24.0..sroa_idx, align 8, !tbaa !5
  %82 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv80) #5
  %.sroa.0.0.copyload = load double, ptr %82, align 8, !tbaa !5
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %82, i64 8
  %.sroa.2.0.copyload = load double, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !5
  %83 = invoke noundef double @_Z9perimeter2ptS_S_(double %.sroa.05.0.copyload, double %.sroa.26.0.copyload, double %.sroa.03.0.copyload, double %.sroa.24.0.copyload, double %.sroa.0.0.copyload, double %.sroa.2.0.copyload)
          to label %84 unwind label %89

84:                                               ; preds = %79
  store double %83, ptr %7, align 8, !tbaa !5
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %86 = load double, ptr %85, align 8, !tbaa !5
  store double %86, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  %indvars.iv.next81 = add nuw nsw i64 %indvars.iv80, 1
  %87 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  %88 = icmp ugt i64 %87, %indvars.iv.next81
  br i1 %88, label %.lr.ph66, label %.critedge2, !llvm.loop !16

89:                                               ; preds = %79
  %90 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  br label %91

91:                                               ; preds = %89, %49, %45
  %.pn = phi { ptr, i32 } [ %46, %45 ], [ %90, %89 ], [ %50, %49 ]
  call void @_ZNSt6vectorI2ptSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  resume { ptr, i32 } %.pn

92:                                               ; preds = %2, %._crit_edge74, %12
  %.0 = phi double [ %21, %12 ], [ %48, %._crit_edge74 ], [ 1.000000e+09, %2 ]
  ret double %.0
}

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI2ptSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 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: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS2_SaIS2_EEEEPFbS2_S2_EEvT_SA_T0_(ptr, ptr, ptr noundef) local_unnamed_addr #4

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

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

; Function Attrs: mustprogress 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 nounwind uwtable
declare dso_local void @_ZNSt6vectorI2ptSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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 = { 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTS2pt", !6, i64 0, !6, i64 8}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!10, !6, i64 8}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}


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