; LLVM IR from tangjz/acm-icpc :: codeforces/gym (100506H)

; 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.Point = type { double, double }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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::priority_queue" = type <{ %"class.std::vector", [8 x i8] }>
%"struct.std::pair.0" = type <{ double, i32, [4 x i8] }>
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@p = external dso_local global [101 x %struct.Point], align 16
@pp = external dso_local global [404 x %struct.Point], align 16
@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@tot = external dso_local global i32, align 4
@r = external dso_local global double, align 8
@dist = external dso_local global [404 x double], align 16
@e = external dso_local global [404 x %"class.std::vector"], align 16
@Q = external dso_local global %"class.std::priority_queue", align 8
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z4dcmpd(double noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z5valid5Point(double, double) #1

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z5cover5PointS_(double, double, double, double) #1

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

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

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

; Function Attrs: nounwind
declare double @sqrt(double noundef) #4

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #6 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %struct.Point, align 8
  %7 = alloca %struct.Point, align 8
  %8 = alloca %struct.Point, align 8
  %9 = alloca %struct.Point, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca %struct.Point, align 8
  %13 = alloca double, align 8
  %14 = alloca %struct.Point, align 8
  %15 = alloca %struct.Point, align 8
  %16 = alloca %struct.Point, align 8
  %17 = alloca %struct.Point, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca %struct.Point, align 8
  %22 = alloca %struct.Point, align 8
  %23 = alloca %"struct.std::pair.0", align 8
  %24 = alloca double, align 8
  %25 = alloca %struct.Point, align 8
  %26 = alloca { double, i32 }, align 8
  %27 = alloca %"struct.std::pair.0", align 8
  %28 = alloca double, align 8
  %29 = alloca %struct.Point, align 8
  %30 = alloca { double, i32 }, align 8
  %31 = alloca i32, align 4
  %32 = alloca %"struct.std::pair.0", align 8
  %33 = alloca i32, align 4
  %34 = alloca { double, i32 }, align 8
  %35 = alloca i32, align 4
  %36 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %37 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %38 = alloca ptr, align 8
  %39 = alloca ptr, align 8
  %40 = alloca %"struct.std::pair.0", align 8
  %41 = alloca { double, i32 }, align 8
  store i32 0, ptr %1, align 4
  %42 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t)
  br label %43

43:                                               ; preds = %367, %0
  %44 = load i32, ptr @t, align 4, !tbaa !5
  %45 = add nsw i32 %44, -1
  store i32 %45, ptr @t, align 4, !tbaa !5
  %46 = icmp ne i32 %44, 0
  br i1 %46, label %47, label %368

47:                                               ; preds = %43
  store i32 2, ptr @tot, align 4, !tbaa !5
  %48 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef @r, ptr noundef @n, ptr noundef @pp, ptr noundef getelementptr inbounds (%struct.Point, ptr @pp, i32 0, i32 1), ptr noundef getelementptr inbounds ([404 x %struct.Point], ptr @pp, i64 0, i64 1), ptr noundef getelementptr inbounds (%struct.Point, ptr getelementptr inbounds ([404 x %struct.Point], ptr @pp, i64 0, i64 1), i32 0, i32 1))
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #9
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %49

49:                                               ; preds = %64, %47
  %50 = load i32, ptr %2, align 4, !tbaa !5
  %51 = load i32, ptr @n, align 4, !tbaa !5
  %52 = icmp slt i32 %50, %51
  br i1 %52, label %54, label %53

53:                                               ; preds = %49
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #9
  br label %67

54:                                               ; preds = %49
  %55 = load i32, ptr %2, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [101 x %struct.Point], ptr @p, i64 0, i64 %56
  %58 = getelementptr inbounds %struct.Point, ptr %57, i32 0, i32 0
  %59 = load i32, ptr %2, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [101 x %struct.Point], ptr @p, i64 0, i64 %60
  %62 = getelementptr inbounds %struct.Point, ptr %61, i32 0, i32 1
  %63 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.3, ptr noundef %58, ptr noundef %62)
  br label %64

64:                                               ; preds = %54
  %65 = load i32, ptr %2, align 4, !tbaa !5
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %2, align 4, !tbaa !5
  br label %49, !llvm.loop !9

67:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #9
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %68

68:                                               ; preds = %190, %67
  %69 = load i32, ptr %3, align 4, !tbaa !5
  %70 = load i32, ptr @n, align 4, !tbaa !5
  %71 = icmp slt i32 %69, %70
  br i1 %71, label %73, label %72

72:                                               ; preds = %68
  store i32 7, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #9
  br label %193

73:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #9
  %74 = load i32, ptr %3, align 4, !tbaa !5
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %5, align 4, !tbaa !5
  br label %76

76:                                               ; preds = %186, %73
  %77 = load i32, ptr %5, align 4, !tbaa !5
  %78 = load i32, ptr @n, align 4, !tbaa !5
  %79 = icmp slt i32 %77, %78
  br i1 %79, label %81, label %80

80:                                               ; preds = %76
  store i32 10, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
  br label %189

81:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #9
  %82 = load i32, ptr %3, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [101 x %struct.Point], ptr @p, i64 0, i64 %83
  %85 = load i32, ptr %5, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [101 x %struct.Point], ptr @p, i64 0, i64 %86
  %88 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %84, ptr noundef nonnull align 8 dereferenceable(16) %87)
  %89 = getelementptr inbounds { double, double }, ptr %6, i32 0, i32 0
  %90 = extractvalue { double, double } %88, 0
  store double %90, ptr %89, align 8
  %91 = getelementptr inbounds { double, double }, ptr %6, i32 0, i32 1
  %92 = extractvalue { double, double } %88, 1
  store double %92, ptr %91, align 8
  %93 = call noundef double @_ZNK5Point4modeEv(ptr noundef nonnull align 8 dereferenceable(16) %6)
  %94 = load double, ptr @r, align 8, !tbaa !11
  %95 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %94, double %93)
  %96 = call noundef i32 @_Z4dcmpd(double noundef %95)
  %97 = icmp sgt i32 %96, 0
  br i1 %97, label %98, label %99

98:                                               ; preds = %81
  store i32 12, ptr %4, align 4
  br label %183

99:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #9
  %100 = getelementptr inbounds %struct.Point, ptr %7, i32 0, i32 0
  %101 = getelementptr inbounds %struct.Point, ptr %6, i32 0, i32 1
  %102 = load double, ptr %101, align 8, !tbaa !13
  store double %102, ptr %100, align 8, !tbaa !15
  %103 = getelementptr inbounds %struct.Point, ptr %7, i32 0, i32 1
  %104 = getelementptr inbounds %struct.Point, ptr %6, i32 0, i32 0
  %105 = load double, ptr %104, align 8, !tbaa !15
  %106 = fneg double %105
  store double %106, ptr %103, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #9
  %107 = load i32, ptr %3, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [101 x %struct.Point], ptr @p, i64 0, i64 %108
  %110 = load i32, ptr %5, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [101 x %struct.Point], ptr @p, i64 0, i64 %111
  %113 = call { double, double } @_ZNK5PointplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %109, ptr noundef nonnull align 8 dereferenceable(16) %112)
  %114 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 0
  %115 = extractvalue { double, double } %113, 0
  store double %115, ptr %114, align 8
  %116 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 1
  %117 = extractvalue { double, double } %113, 1
  store double %117, ptr %116, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #9
  store double 5.000000e-01, ptr %10, align 8, !tbaa !11
  %118 = call { double, double } @_ZNK5PointmlERKd(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %119 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 0
  %120 = extractvalue { double, double } %118, 0
  store double %120, ptr %119, align 8
  %121 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 1
  %122 = extractvalue { double, double } %118, 1
  store double %122, ptr %121, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #9
  %123 = load double, ptr @r, align 8, !tbaa !11
  %124 = load double, ptr @r, align 8, !tbaa !11
  %125 = getelementptr inbounds %struct.Point, ptr %6, i32 0, i32 0
  %126 = load double, ptr %125, align 8, !tbaa !15
  %127 = getelementptr inbounds %struct.Point, ptr %6, i32 0, i32 0
  %128 = load double, ptr %127, align 8, !tbaa !15
  %129 = getelementptr inbounds %struct.Point, ptr %6, i32 0, i32 1
  %130 = load double, ptr %129, align 8, !tbaa !13
  %131 = getelementptr inbounds %struct.Point, ptr %6, i32 0, i32 1
  %132 = load double, ptr %131, align 8, !tbaa !13
  %133 = fmul double %130, %132
  %134 = call double @llvm.fmuladd.f64(double %126, double %128, double %133)
  %135 = fdiv double %134, 4.000000e+00
  %136 = fneg double %135
  %137 = call double @llvm.fmuladd.f64(double %123, double %124, double %136)
  %138 = call double @sqrt(double noundef %137) #9
  store double %138, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
  %139 = load double, ptr %11, align 8, !tbaa !11
  %140 = call noundef double @_ZNK5Point4modeEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
  %141 = fdiv double %139, %140
  store double %141, ptr %13, align 8, !tbaa !11
  %142 = call { double, double } @_ZNK5PointmlERKd(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(8) %13)
  %143 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 0
  %144 = extractvalue { double, double } %142, 0
  store double %144, ptr %143, align 8
  %145 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 1
  %146 = extractvalue { double, double } %142, 1
  store double %146, ptr %145, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %7, ptr align 8 %12, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #9
  %147 = call { double, double } @_ZNK5PointplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %7)
  %148 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 0
  %149 = extractvalue { double, double } %147, 0
  store double %149, ptr %148, align 8
  %150 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 1
  %151 = extractvalue { double, double } %147, 1
  store double %151, ptr %150, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #9
  %152 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %7)
  %153 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 0
  %154 = extractvalue { double, double } %152, 0
  store double %154, ptr %153, align 8
  %155 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 1
  %156 = extractvalue { double, double } %152, 1
  store double %156, ptr %155, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 %14, i64 16, i1 false), !tbaa.struct !16
  %157 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 0
  %158 = load double, ptr %157, align 8
  %159 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 1
  %160 = load double, ptr %159, align 8
  %161 = call noundef zeroext i1 @_Z5valid5Point(double %158, double %160)
  br i1 %161, label %162, label %167

162:                                              ; preds = %99
  %163 = load i32, ptr @tot, align 4, !tbaa !5
  %164 = add nsw i32 %163, 1
  store i32 %164, ptr @tot, align 4, !tbaa !5
  %165 = sext i32 %163 to i64
  %166 = getelementptr inbounds [404 x %struct.Point], ptr @pp, i64 0, i64 %165
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %166, ptr align 8 %14, i64 16, i1 false), !tbaa.struct !16
  br label %167

167:                                              ; preds = %162, %99
  %168 = call noundef double @_ZNK5Point4modeEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
  %169 = call noundef i32 @_Z4dcmpd(double noundef %168)
  %170 = icmp ne i32 %169, 0
  br i1 %170, label %171, label %182

171:                                              ; preds = %167
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %15, i64 16, i1 false), !tbaa.struct !16
  %172 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 0
  %173 = load double, ptr %172, align 8
  %174 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 1
  %175 = load double, ptr %174, align 8
  %176 = call noundef zeroext i1 @_Z5valid5Point(double %173, double %175)
  br i1 %176, label %177, label %182

177:                                              ; preds = %171
  %178 = load i32, ptr @tot, align 4, !tbaa !5
  %179 = add nsw i32 %178, 1
  store i32 %179, ptr @tot, align 4, !tbaa !5
  %180 = sext i32 %178 to i64
  %181 = getelementptr inbounds [404 x %struct.Point], ptr @pp, i64 0, i64 %180
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %181, ptr align 8 %15, i64 16, i1 false), !tbaa.struct !16
  br label %182

182:                                              ; preds = %177, %171, %167
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #9
  store i32 0, ptr %4, align 4
  br label %183

183:                                              ; preds = %182, %98
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #9
  %184 = load i32, ptr %4, align 4
  switch i32 %184, label %369 [
    i32 0, label %185
    i32 12, label %186
  ]

185:                                              ; preds = %183
  br label %186

186:                                              ; preds = %185, %183
  %187 = load i32, ptr %5, align 4, !tbaa !5
  %188 = add nsw i32 %187, 1
  store i32 %188, ptr %5, align 4, !tbaa !5
  br label %76, !llvm.loop !17

189:                                              ; preds = %80
  br label %190

190:                                              ; preds = %189
  %191 = load i32, ptr %3, align 4, !tbaa !5
  %192 = add nsw i32 %191, 1
  store i32 %192, ptr %3, align 4, !tbaa !5
  br label %68, !llvm.loop !18

193:                                              ; preds = %72
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #9
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %194

194:                                              ; preds = %203, %193
  %195 = load i32, ptr %18, align 4, !tbaa !5
  %196 = load i32, ptr @tot, align 4, !tbaa !5
  %197 = icmp slt i32 %195, %196
  br i1 %197, label %199, label %198

198:                                              ; preds = %194
  store i32 13, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  br label %206

199:                                              ; preds = %194
  %200 = load i32, ptr %18, align 4, !tbaa !5
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [404 x %"class.std::vector"], ptr @e, i64 0, i64 %201
  call void @_ZNSt6vectorISt4pairIdiESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %202) #9
  br label %203

203:                                              ; preds = %199
  %204 = load i32, ptr %18, align 4, !tbaa !5
  %205 = add nsw i32 %204, 1
  store i32 %205, ptr %18, align 4, !tbaa !5
  br label %194, !llvm.loop !19

206:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #9
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %207

207:                                              ; preds = %274, %206
  %208 = load i32, ptr %19, align 4, !tbaa !5
  %209 = load i32, ptr @tot, align 4, !tbaa !5
  %210 = icmp slt i32 %208, %209
  br i1 %210, label %212, label %211

211:                                              ; preds = %207
  store i32 16, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  br label %277

212:                                              ; preds = %207
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #9
  %213 = load i32, ptr %19, align 4, !tbaa !5
  %214 = add nsw i32 %213, 1
  store i32 %214, ptr %20, align 4, !tbaa !5
  br label %215

215:                                              ; preds = %270, %212
  %216 = load i32, ptr %20, align 4, !tbaa !5
  %217 = load i32, ptr @tot, align 4, !tbaa !5
  %218 = icmp slt i32 %216, %217
  br i1 %218, label %220, label %219

219:                                              ; preds = %215
  store i32 19, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  br label %273

220:                                              ; preds = %215
  %221 = load i32, ptr %19, align 4, !tbaa !5
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds [404 x %struct.Point], ptr @pp, i64 0, i64 %222
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 16 %223, i64 16, i1 false), !tbaa.struct !16
  %224 = load i32, ptr %20, align 4, !tbaa !5
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds [404 x %struct.Point], ptr @pp, i64 0, i64 %225
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 16 %226, i64 16, i1 false), !tbaa.struct !16
  %227 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 0
  %228 = load double, ptr %227, align 8
  %229 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 1
  %230 = load double, ptr %229, align 8
  %231 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %232 = load double, ptr %231, align 8
  %233 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %234 = load double, ptr %233, align 8
  %235 = call noundef zeroext i1 @_Z5cover5PointS_(double %228, double %230, double %232, double %234)
  br i1 %235, label %236, label %269

236:                                              ; preds = %220
  %237 = load i32, ptr %19, align 4, !tbaa !5
  %238 = sext i32 %237 to i64
  %239 = getelementptr inbounds [404 x %"class.std::vector"], ptr @e, i64 0, i64 %238
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #9
  %240 = load i32, ptr %19, align 4, !tbaa !5
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds [404 x %struct.Point], ptr @pp, i64 0, i64 %241
  %243 = load i32, ptr %20, align 4, !tbaa !5
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds [404 x %struct.Point], ptr @pp, i64 0, i64 %244
  %246 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %242, ptr noundef nonnull align 8 dereferenceable(16) %245)
  %247 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %248 = extractvalue { double, double } %246, 0
  store double %248, ptr %247, align 8
  %249 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %250 = extractvalue { double, double } %246, 1
  store double %250, ptr %249, align 8
  %251 = call noundef double @_ZNK5Point4modeEv(ptr noundef nonnull align 8 dereferenceable(16) %25)
  store double %251, ptr %24, align 8, !tbaa !11
  %252 = call { double, i32 } @_ZSt9make_pairIdRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 4 dereferenceable(4) %20)
  store { double, i32 } %252, ptr %26, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %23, ptr align 8 %26, i64 12, i1 false)
  call void @_ZNSt6vectorISt4pairIdiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %239, ptr noundef nonnull align 8 dereferenceable(12) %23)
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #9
  %253 = load i32, ptr %20, align 4, !tbaa !5
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds [404 x %"class.std::vector"], ptr @e, i64 0, i64 %254
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #9
  %256 = load i32, ptr %19, align 4, !tbaa !5
  %257 = sext i32 %256 to i64
  %258 = getelementptr inbounds [404 x %struct.Point], ptr @pp, i64 0, i64 %257
  %259 = load i32, ptr %20, align 4, !tbaa !5
  %260 = sext i32 %259 to i64
  %261 = getelementptr inbounds [404 x %struct.Point], ptr @pp, i64 0, i64 %260
  %262 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %258, ptr noundef nonnull align 8 dereferenceable(16) %261)
  %263 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %264 = extractvalue { double, double } %262, 0
  store double %264, ptr %263, align 8
  %265 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %266 = extractvalue { double, double } %262, 1
  store double %266, ptr %265, align 8
  %267 = call noundef double @_ZNK5Point4modeEv(ptr noundef nonnull align 8 dereferenceable(16) %29)
  store double %267, ptr %28, align 8, !tbaa !11
  %268 = call { double, i32 } @_ZSt9make_pairIdRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 4 dereferenceable(4) %19)
  store { double, i32 } %268, ptr %30, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %27, ptr align 8 %30, i64 12, i1 false)
  call void @_ZNSt6vectorISt4pairIdiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %255, ptr noundef nonnull align 8 dereferenceable(12) %27)
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #9
  br label %269

269:                                              ; preds = %236, %220
  br label %270

270:                                              ; preds = %269
  %271 = load i32, ptr %20, align 4, !tbaa !5
  %272 = add nsw i32 %271, 1
  store i32 %272, ptr %20, align 4, !tbaa !5
  br label %215, !llvm.loop !20

273:                                              ; preds = %219
  br label %274

274:                                              ; preds = %273
  %275 = load i32, ptr %19, align 4, !tbaa !5
  %276 = add nsw i32 %275, 1
  store i32 %276, ptr %19, align 4, !tbaa !5
  br label %207, !llvm.loop !21

277:                                              ; preds = %211
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #9
  store i32 0, ptr %31, align 4, !tbaa !5
  br label %278

278:                                              ; preds = %287, %277
  %279 = load i32, ptr %31, align 4, !tbaa !5
  %280 = load i32, ptr @tot, align 4, !tbaa !5
  %281 = icmp slt i32 %279, %280
  br i1 %281, label %283, label %282

282:                                              ; preds = %278
  store i32 22, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #9
  br label %290

283:                                              ; preds = %278
  %284 = load i32, ptr %31, align 4, !tbaa !5
  %285 = sext i32 %284 to i64
  %286 = getelementptr inbounds [404 x double], ptr @dist, i64 0, i64 %285
  store double 1.000000e+10, ptr %286, align 8, !tbaa !11
  br label %287

287:                                              ; preds = %283
  %288 = load i32, ptr %31, align 4, !tbaa !5
  %289 = add nsw i32 %288, 1
  store i32 %289, ptr %31, align 4, !tbaa !5
  br label %278, !llvm.loop !22

290:                                              ; preds = %282
  br label %291

291:                                              ; preds = %294, %290
  %292 = call noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIdiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  %293 = xor i1 %292, true
  br i1 %293, label %294, label %295

294:                                              ; preds = %291
  call void @_ZNSt14priority_queueISt4pairIdiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  br label %291, !llvm.loop !23

295:                                              ; preds = %291
  store double 0.000000e+00, ptr @dist, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #9
  store i32 0, ptr %33, align 4, !tbaa !5
  %296 = call { double, i32 } @_ZSt9make_pairIRdiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) @dist, ptr noundef nonnull align 4 dereferenceable(4) %33)
  store { double, i32 } %296, ptr %34, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %32, ptr align 8 %34, i64 12, i1 false)
  call void @_ZNSt14priority_queueISt4pairIdiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) @Q, ptr noundef nonnull align 8 dereferenceable(12) %32)
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #9
  br label %297

297:                                              ; preds = %356, %295
  %298 = call noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIdiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  %299 = xor i1 %298, true
  br i1 %299, label %300, label %357

300:                                              ; preds = %297
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #9
  %301 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNKSt14priority_queueISt4pairIdiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  %302 = getelementptr inbounds %"struct.std::pair.0", ptr %301, i32 0, i32 1
  %303 = load i32, ptr %302, align 8, !tbaa !24
  store i32 %303, ptr %35, align 4, !tbaa !5
  call void @_ZNSt14priority_queueISt4pairIdiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #9
  %304 = load i32, ptr %35, align 4, !tbaa !5
  %305 = sext i32 %304 to i64
  %306 = getelementptr inbounds [404 x %"class.std::vector"], ptr @e, i64 0, i64 %305
  %307 = call ptr @_ZNSt6vectorISt4pairIdiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %306) #9
  %308 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %36, i32 0, i32 0
  store ptr %307, ptr %308, align 8
  br label %309

309:                                              ; preds = %354, %300
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #9
  %310 = load i32, ptr %35, align 4, !tbaa !5
  %311 = sext i32 %310 to i64
  %312 = getelementptr inbounds [404 x %"class.std::vector"], ptr @e, i64 0, i64 %311
  %313 = call ptr @_ZNSt6vectorISt4pairIdiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %312) #9
  %314 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %37, i32 0, i32 0
  store ptr %313, ptr %314, align 8
  %315 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIdiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull align 8 dereferenceable(8) %37) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #9
  br i1 %315, label %317, label %316

316:                                              ; preds = %309
  store i32 29, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #9
  br label %356

317:                                              ; preds = %309
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #9
  %318 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIdiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %36) #9
  %319 = getelementptr inbounds %"struct.std::pair.0", ptr %318, i32 0, i32 1
  store ptr %319, ptr %38, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #9
  %320 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIdiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %36) #9
  %321 = getelementptr inbounds %"struct.std::pair.0", ptr %320, i32 0, i32 0
  store ptr %321, ptr %39, align 8, !tbaa !26
  %322 = load ptr, ptr %38, align 8, !tbaa !26
  %323 = load i32, ptr %322, align 4, !tbaa !5
  %324 = sext i32 %323 to i64
  %325 = getelementptr inbounds [404 x double], ptr @dist, i64 0, i64 %324
  %326 = load double, ptr %325, align 8, !tbaa !11
  %327 = load i32, ptr %35, align 4, !tbaa !5
  %328 = sext i32 %327 to i64
  %329 = getelementptr inbounds [404 x double], ptr @dist, i64 0, i64 %328
  %330 = load double, ptr %329, align 8, !tbaa !11
  %331 = load ptr, ptr %39, align 8, !tbaa !26
  %332 = load double, ptr %331, align 8, !tbaa !11
  %333 = fadd double %330, %332
  %334 = fcmp ogt double %326, %333
  br i1 %334, label %335, label %353

335:                                              ; preds = %317
  %336 = load i32, ptr %35, align 4, !tbaa !5
  %337 = sext i32 %336 to i64
  %338 = getelementptr inbounds [404 x double], ptr @dist, i64 0, i64 %337
  %339 = load double, ptr %338, align 8, !tbaa !11
  %340 = load ptr, ptr %39, align 8, !tbaa !26
  %341 = load double, ptr %340, align 8, !tbaa !11
  %342 = fadd double %339, %341
  %343 = load ptr, ptr %38, align 8, !tbaa !26
  %344 = load i32, ptr %343, align 4, !tbaa !5
  %345 = sext i32 %344 to i64
  %346 = getelementptr inbounds [404 x double], ptr @dist, i64 0, i64 %345
  store double %342, ptr %346, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #9
  %347 = load ptr, ptr %38, align 8, !tbaa !26
  %348 = load i32, ptr %347, align 4, !tbaa !5
  %349 = sext i32 %348 to i64
  %350 = getelementptr inbounds [404 x double], ptr @dist, i64 0, i64 %349
  %351 = load ptr, ptr %38, align 8, !tbaa !26
  %352 = call { double, i32 } @_ZSt9make_pairIRdRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 8 dereferenceable(8) %350, ptr noundef nonnull align 4 dereferenceable(4) %351)
  store { double, i32 } %352, ptr %41, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %40, ptr align 8 %41, i64 12, i1 false)
  call void @_ZNSt14priority_queueISt4pairIdiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) @Q, ptr noundef nonnull align 8 dereferenceable(12) %40)
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #9
  br label %353

353:                                              ; preds = %335, %317
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #9
  br label %354

354:                                              ; preds = %353
  %355 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIdiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %36) #9
  br label %309, !llvm.loop !28

356:                                              ; preds = %316
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #9
  br label %297, !llvm.loop !29

357:                                              ; preds = %297
  %358 = load double, ptr getelementptr inbounds ([404 x double], ptr @dist, i64 0, i64 1), align 8, !tbaa !11
  %359 = fsub double %358, 1.000000e+10
  %360 = call noundef i32 @_Z4dcmpd(double noundef %359)
  %361 = icmp ne i32 %360, 0
  br i1 %361, label %364, label %362

362:                                              ; preds = %357
  %363 = call i32 @puts(ptr noundef @.str.4)
  br label %367

364:                                              ; preds = %357
  %365 = load double, ptr getelementptr inbounds ([404 x double], ptr @dist, i64 0, i64 1), align 8, !tbaa !11
  %366 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef %365)
  br label %367

367:                                              ; preds = %364, %362
  br label %43, !llvm.loop !30

368:                                              ; preds = %43
  ret i32 0

369:                                              ; preds = %183
  unreachable
}

declare i32 @__isoc99_scanf(ptr noundef, ...) #7

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

; Function Attrs: mustprogress uwtable
declare dso_local { double, i32 } @_ZSt9make_pairIdRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt14priority_queueISt4pairIdiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 8 dereferenceable(12)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { double, i32 } @_ZSt9make_pairIRdiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) #1

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { double, i32 } @_ZSt9make_pairIRdRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) #1

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

declare i32 @puts(ptr noundef) #7

declare i32 @printf(ptr noundef, ...) #7

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


; 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.Point = type { double, double }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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::priority_queue" = type <{ %"class.std::vector", [8 x i8] }>
%"struct.std::pair.0" = type <{ double, i32, [4 x i8] }>
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@p = external dso_local global [101 x %struct.Point], align 16
@pp = external dso_local global [404 x %struct.Point], align 16
@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@tot = external dso_local local_unnamed_addr global i32, align 4
@r = external dso_local global double, align 8
@dist = external dso_local global [404 x double], align 16
@e = external dso_local global [404 x %"class.std::vector"], align 16
@Q = external dso_local global %"class.std::priority_queue", align 8
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z4dcmpd(double noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z5valid5Point(double, double) local_unnamed_addr #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z5cover5PointS_(double, double, double, double) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZNK5PointplERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZNK5PointmlERKd(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #5 {
  %1 = alloca %struct.Point, align 8
  %2 = alloca %struct.Point, align 8
  %3 = alloca %struct.Point, align 8
  %4 = alloca %struct.Point, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"struct.std::pair.0", align 8
  %10 = alloca double, align 8
  %11 = alloca %struct.Point, align 8
  %12 = alloca %"struct.std::pair.0", align 8
  %13 = alloca double, align 8
  %14 = alloca %struct.Point, align 8
  %15 = alloca %"struct.std::pair.0", 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 %"struct.std::pair.0", align 8
  %20 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @t)
  %21 = load i32, ptr @t, align 4, !tbaa !5
  %22 = add nsw i32 %21, -1
  store i32 %22, ptr @t, align 4, !tbaa !5
  %.not91 = icmp eq i32 %21, 0
  br i1 %.not91, label %._crit_edge94, label %.lr.ph93

.lr.ph93:                                         ; preds = %0
  %23 = getelementptr inbounds i8, ptr %1, i64 8
  %24 = getelementptr inbounds i8, ptr %2, i64 8
  %25 = getelementptr inbounds i8, ptr %4, i64 8
  %26 = getelementptr inbounds i8, ptr %3, i64 8
  %27 = getelementptr inbounds i8, ptr %11, i64 8
  %.sroa.223.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 8
  %28 = getelementptr inbounds i8, ptr %14, i64 8
  %.sroa.219.0..sroa_idx = getelementptr inbounds i8, ptr %12, i64 8
  %.sroa.212.0..sroa_idx = getelementptr inbounds i8, ptr %15, i64 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %19, i64 8
  br label %29

29:                                               ; preds = %.lr.ph93, %196
  store i32 2, ptr @tot, align 4, !tbaa !5
  %30 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull @r, ptr noundef nonnull @n, ptr noundef nonnull @pp, ptr noundef nonnull getelementptr inbounds (i8, ptr @pp, i64 8), ptr noundef nonnull getelementptr inbounds (i8, ptr @pp, i64 16), ptr noundef nonnull getelementptr inbounds (i8, ptr @pp, i64 24))
  %31 = load i32, ptr @n, align 4, !tbaa !5
  %32 = icmp sgt i32 %31, 0
  br i1 %32, label %.lr.ph, label %.preheader62

.preheader63:                                     ; preds = %.lr.ph
  %33 = icmp sgt i32 %37, 0
  br i1 %33, label %.lr.ph68, label %.preheader62

.lr.ph:                                           ; preds = %29, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %29 ]
  %34 = getelementptr inbounds [101 x %struct.Point], ptr @p, i64 0, i64 %indvars.iv
  %35 = getelementptr inbounds i8, ptr %34, i64 8
  %36 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.3, ptr noundef nonnull %34, ptr noundef nonnull %35)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %37 = load i32, ptr @n, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = icmp slt i64 %indvars.iv.next, %38
  br i1 %39, label %.lr.ph, label %.preheader63, !llvm.loop !9

.loopexit.loopexit:                               ; preds = %104
  %.pre112 = sext i32 %105 to i64
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %.lr.ph68
  %.pre-phi = phi i64 [ %.pre112, %.loopexit.loopexit ], [ %45, %.lr.ph68 ]
  %40 = phi i32 [ %105, %.loopexit.loopexit ], [ %44, %.lr.ph68 ]
  %41 = icmp slt i64 %indvars.iv.next103, %.pre-phi
  %indvars.iv.next98 = add nuw nsw i64 %indvars.iv97, 1
  br i1 %41, label %.lr.ph68, label %.preheader62, !llvm.loop !11

.preheader62:                                     ; preds = %.loopexit, %29, %.preheader63
  %42 = load i32, ptr @tot, align 4, !tbaa !5
  %43 = icmp sgt i32 %42, 0
  br i1 %43, label %.lr.ph70, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %.preheader62
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #8
  br label %._crit_edge79.thread

.lr.ph68:                                         ; preds = %.preheader63, %.loopexit
  %44 = phi i32 [ %40, %.loopexit ], [ %37, %.preheader63 ]
  %indvars.iv102 = phi i64 [ %indvars.iv.next103, %.loopexit ], [ 0, %.preheader63 ]
  %indvars.iv97 = phi i64 [ %indvars.iv.next98, %.loopexit ], [ 1, %.preheader63 ]
  %indvars.iv.next103 = add nuw nsw i64 %indvars.iv102, 1
  %45 = sext i32 %44 to i64
  %46 = icmp slt i64 %indvars.iv.next103, %45
  br i1 %46, label %.lr.ph66, label %.loopexit

.lr.ph66:                                         ; preds = %.lr.ph68
  %47 = getelementptr inbounds [101 x %struct.Point], ptr @p, i64 0, i64 %indvars.iv102
  br label %48

48:                                               ; preds = %.lr.ph66, %104
  %indvars.iv99 = phi i64 [ %indvars.iv97, %.lr.ph66 ], [ %indvars.iv.next100, %104 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #8
  %49 = getelementptr inbounds [101 x %struct.Point], ptr @p, i64 0, i64 %indvars.iv99
  %50 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %47, ptr noundef nonnull align 8 dereferenceable(16) %49)
  %51 = extractvalue { double, double } %50, 0
  store double %51, ptr %1, align 8
  %52 = extractvalue { double, double } %50, 1
  store double %52, ptr %23, align 8
  %53 = call noundef double @_ZNK5Point4modeEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %54 = load double, ptr @r, align 8, !tbaa !12
  %55 = call double @llvm.fmuladd.f64(double %54, double -2.000000e+00, double %53)
  %56 = call noundef i32 @_Z4dcmpd(double noundef %55)
  %57 = icmp sgt i32 %56, 0
  br i1 %57, label %104, label %58

58:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #8
  %59 = load double, ptr %23, align 8, !tbaa !14
  store double %59, ptr %2, align 8, !tbaa !16
  %60 = load double, ptr %1, align 8, !tbaa !16
  %61 = fneg double %60
  store double %61, ptr %24, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #8
  %62 = call { double, double } @_ZNK5PointplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %47, ptr noundef nonnull align 8 dereferenceable(16) %49)
  %63 = extractvalue { double, double } %62, 0
  store double %63, ptr %4, align 8
  %64 = extractvalue { double, double } %62, 1
  store double %64, ptr %25, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  store double 5.000000e-01, ptr %5, align 8, !tbaa !12
  %65 = call { double, double } @_ZNK5PointmlERKd(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %66 = extractvalue { double, double } %65, 0
  store double %66, ptr %3, align 8
  %67 = extractvalue { double, double } %65, 1
  store double %67, ptr %26, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #8
  %68 = load double, ptr @r, align 8, !tbaa !12
  %69 = load double, ptr %1, align 8, !tbaa !16
  %70 = load double, ptr %23, align 8, !tbaa !14
  %71 = fmul double %70, %70
  %72 = call double @llvm.fmuladd.f64(double %69, double %69, double %71)
  %73 = fmul double %72, -2.500000e-01
  %74 = call double @llvm.fmuladd.f64(double %68, double %68, double %73)
  %75 = call double @sqrt(double noundef %74) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  %76 = call noundef double @_ZNK5Point4modeEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
  %77 = fdiv double %75, %76
  store double %77, ptr %6, align 8, !tbaa !12
  %78 = call { double, double } @_ZNK5PointmlERKd(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %79 = extractvalue { double, double } %78, 0
  %80 = extractvalue { double, double } %78, 1
  store double %79, ptr %2, align 8, !tbaa !12
  store double %80, ptr %24, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  %81 = call { double, double } @_ZNK5PointplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %2)
  %82 = extractvalue { double, double } %81, 0
  %83 = extractvalue { double, double } %81, 1
  %84 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %2)
  %85 = extractvalue { double, double } %84, 0
  %86 = extractvalue { double, double } %84, 1
  %87 = call noundef zeroext i1 @_Z5valid5Point(double %82, double %83)
  br i1 %87, label %88, label %93

88:                                               ; preds = %58
  %89 = load i32, ptr @tot, align 4, !tbaa !5
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr @tot, align 4, !tbaa !5
  %91 = sext i32 %89 to i64
  %92 = getelementptr inbounds [404 x %struct.Point], ptr @pp, i64 0, i64 %91
  store double %82, ptr %92, align 16, !tbaa !12
  %.sroa.537.0..sroa_idx = getelementptr inbounds i8, ptr %92, i64 8
  store double %83, ptr %.sroa.537.0..sroa_idx, align 8, !tbaa !12
  br label %93

93:                                               ; preds = %88, %58
  %94 = call noundef double @_ZNK5Point4modeEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
  %95 = call noundef i32 @_Z4dcmpd(double noundef %94)
  %.not61 = icmp eq i32 %95, 0
  br i1 %.not61, label %103, label %96

96:                                               ; preds = %93
  %97 = call noundef zeroext i1 @_Z5valid5Point(double %85, double %86)
  br i1 %97, label %98, label %103

98:                                               ; preds = %96
  %99 = load i32, ptr @tot, align 4, !tbaa !5
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr @tot, align 4, !tbaa !5
  %101 = sext i32 %99 to i64
  %102 = getelementptr inbounds [404 x %struct.Point], ptr @pp, i64 0, i64 %101
  store double %85, ptr %102, align 16, !tbaa !12
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %102, i64 8
  store double %86, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !12
  br label %103

103:                                              ; preds = %98, %96, %93
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #8
  br label %104

104:                                              ; preds = %48, %103
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #8
  %indvars.iv.next100 = add nuw nsw i64 %indvars.iv99, 1
  %105 = load i32, ptr @n, align 4, !tbaa !5
  %106 = trunc nuw i64 %indvars.iv.next100 to i32
  %107 = icmp sgt i32 %105, %106
  br i1 %107, label %48, label %.loopexit.loopexit, !llvm.loop !17

._crit_edge:                                      ; preds = %.lr.ph70
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #8
  store i32 0, ptr %7, align 4, !tbaa !5
  %108 = icmp sgt i32 %110, 0
  br i1 %108, label %.lr.ph78, label %._crit_edge79.thread

.lr.ph70:                                         ; preds = %.preheader62, %.lr.ph70
  %indvars.iv105 = phi i64 [ %indvars.iv.next106, %.lr.ph70 ], [ 0, %.preheader62 ]
  %109 = getelementptr inbounds [404 x %"class.std::vector"], ptr @e, i64 0, i64 %indvars.iv105
  call void @_ZNSt6vectorISt4pairIdiESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %109) #8
  %indvars.iv.next106 = add nuw nsw i64 %indvars.iv105, 1
  %110 = load i32, ptr @tot, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = icmp slt i64 %indvars.iv.next106, %111
  br i1 %112, label %.lr.ph70, label %._crit_edge, !llvm.loop !18

._crit_edge79.thread:                             ; preds = %._crit_edge, %._crit_edge.thread
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  br label %.preheader

._crit_edge79:                                    ; preds = %._crit_edge76
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  %113 = icmp sgt i32 %119, 0
  br i1 %113, label %.lr.ph82.preheader, label %.preheader

.lr.ph82.preheader:                               ; preds = %._crit_edge79
  %wide.trip.count = zext nneg i32 %119 to i64
  %min.iters.check = icmp ult i32 %119, 4
  br i1 %min.iters.check, label %.lr.ph82.preheader124, label %vector.ph

.lr.ph82.preheader124:                            ; preds = %middle.block, %.lr.ph82.preheader
  %indvars.iv108.ph = phi i64 [ 0, %.lr.ph82.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph82

vector.ph:                                        ; preds = %.lr.ph82.preheader
  %n.vec = and i64 %wide.trip.count, 2147483644
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %114 = getelementptr inbounds [404 x double], ptr @dist, i64 0, i64 %index
  %115 = getelementptr inbounds i8, ptr %114, i64 16
  store <2 x double> <double 1.000000e+10, double 1.000000e+10>, ptr %114, align 16, !tbaa !12
  store <2 x double> <double 1.000000e+10, double 1.000000e+10>, ptr %115, align 16, !tbaa !12
  %index.next = add nuw i64 %index, 4
  %116 = icmp eq i64 %index.next, %n.vec
  br i1 %116, label %middle.block, label %vector.body, !llvm.loop !19

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %.preheader, label %.lr.ph82.preheader124

.lr.ph78:                                         ; preds = %._crit_edge, %._crit_edge76
  %117 = phi i32 [ %119, %._crit_edge76 ], [ %110, %._crit_edge ]
  %storemerge60.in71 = phi i32 [ %.pre-phi114, %._crit_edge76 ], [ 0, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #8
  %storemerge6072 = add nsw i32 %storemerge60.in71, 1
  store i32 %storemerge6072, ptr %8, align 4, !tbaa !5
  %118 = icmp slt i32 %storemerge6072, %117
  br i1 %118, label %.lr.ph75, label %._crit_edge76

._crit_edge76.loopexit:                           ; preds = %152
  %.pre = load i32, ptr %7, align 4, !tbaa !5
  %.pre113 = add nsw i32 %.pre, 1
  br label %._crit_edge76

._crit_edge76:                                    ; preds = %._crit_edge76.loopexit, %.lr.ph78
  %.pre-phi114 = phi i32 [ %.pre113, %._crit_edge76.loopexit ], [ %storemerge6072, %.lr.ph78 ]
  %119 = phi i32 [ %153, %._crit_edge76.loopexit ], [ %117, %.lr.ph78 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
  store i32 %.pre-phi114, ptr %7, align 4, !tbaa !5
  %120 = icmp slt i32 %.pre-phi114, %119
  br i1 %120, label %.lr.ph78, label %._crit_edge79, !llvm.loop !22

.lr.ph75:                                         ; preds = %.lr.ph78, %152
  %storemerge6073 = phi i32 [ %storemerge60, %152 ], [ %storemerge6072, %.lr.ph78 ]
  %121 = load i32, ptr %7, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [404 x %struct.Point], ptr @pp, i64 0, i64 %122
  %.sroa.026.0.copyload = load double, ptr %123, align 16, !tbaa !12
  %.sroa.227.0..sroa_idx = getelementptr inbounds i8, ptr %123, i64 8
  %.sroa.227.0.copyload = load double, ptr %.sroa.227.0..sroa_idx, align 8, !tbaa !12
  %124 = sext i32 %storemerge6073 to i64
  %125 = getelementptr inbounds [404 x %struct.Point], ptr @pp, i64 0, i64 %124
  %.sroa.024.0.copyload = load double, ptr %125, align 16, !tbaa !12
  %.sroa.225.0..sroa_idx = getelementptr inbounds i8, ptr %125, i64 8
  %.sroa.225.0.copyload = load double, ptr %.sroa.225.0..sroa_idx, align 8, !tbaa !12
  %126 = call noundef zeroext i1 @_Z5cover5PointS_(double %.sroa.026.0.copyload, double %.sroa.227.0.copyload, double %.sroa.024.0.copyload, double %.sroa.225.0.copyload)
  br i1 %126, label %127, label %152

127:                                              ; preds = %.lr.ph75
  %128 = load i32, ptr %7, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [404 x %"class.std::vector"], ptr @e, i64 0, i64 %129
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #8
  %131 = getelementptr inbounds [404 x %struct.Point], ptr @pp, i64 0, i64 %129
  %132 = load i32, ptr %8, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [404 x %struct.Point], ptr @pp, i64 0, i64 %133
  %135 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %131, ptr noundef nonnull align 8 dereferenceable(16) %134)
  %136 = extractvalue { double, double } %135, 0
  store double %136, ptr %11, align 8
  %137 = extractvalue { double, double } %135, 1
  store double %137, ptr %27, align 8
  %138 = call noundef double @_ZNK5Point4modeEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
  store double %138, ptr %10, align 8, !tbaa !12
  %139 = call { double, i32 } @_ZSt9make_pairIdRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %.fca.0.extract20 = extractvalue { double, i32 } %139, 0
  %.fca.1.extract21 = extractvalue { double, i32 } %139, 1
  store double %.fca.0.extract20, ptr %9, align 8
  store i32 %.fca.1.extract21, ptr %.sroa.223.0..sroa_idx, align 8
  call void @_ZNSt6vectorISt4pairIdiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %130, ptr noundef nonnull align 8 dereferenceable(12) %9)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #8
  %140 = load i32, ptr %8, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [404 x %"class.std::vector"], ptr @e, i64 0, i64 %141
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #8
  %143 = load i32, ptr %7, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [404 x %struct.Point], ptr @pp, i64 0, i64 %144
  %146 = getelementptr inbounds [404 x %struct.Point], ptr @pp, i64 0, i64 %141
  %147 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %145, ptr noundef nonnull align 8 dereferenceable(16) %146)
  %148 = extractvalue { double, double } %147, 0
  store double %148, ptr %14, align 8
  %149 = extractvalue { double, double } %147, 1
  store double %149, ptr %28, align 8
  %150 = call noundef double @_ZNK5Point4modeEv(ptr noundef nonnull align 8 dereferenceable(16) %14)
  store double %150, ptr %13, align 8, !tbaa !12
  %151 = call { double, i32 } @_ZSt9make_pairIdRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %.fca.0.extract16 = extractvalue { double, i32 } %151, 0
  %.fca.1.extract17 = extractvalue { double, i32 } %151, 1
  store double %.fca.0.extract16, ptr %12, align 8
  store i32 %.fca.1.extract17, ptr %.sroa.219.0..sroa_idx, align 8
  call void @_ZNSt6vectorISt4pairIdiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %142, ptr noundef nonnull align 8 dereferenceable(12) %12)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #8
  br label %152

152:                                              ; preds = %.lr.ph75, %127
  %storemerge60.in = load i32, ptr %8, align 4, !tbaa !5
  %storemerge60 = add nsw i32 %storemerge60.in, 1
  store i32 %storemerge60, ptr %8, align 4, !tbaa !5
  %153 = load i32, ptr @tot, align 4, !tbaa !5
  %154 = icmp slt i32 %storemerge60, %153
  br i1 %154, label %.lr.ph75, label %._crit_edge76.loopexit, !llvm.loop !23

.preheader:                                       ; preds = %.lr.ph82, %middle.block, %._crit_edge79.thread, %._crit_edge79
  %155 = call noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIdiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  br i1 %155, label %._crit_edge84, label %.lr.ph83

.lr.ph82:                                         ; preds = %.lr.ph82.preheader124, %.lr.ph82
  %indvars.iv108 = phi i64 [ %indvars.iv.next109, %.lr.ph82 ], [ %indvars.iv108.ph, %.lr.ph82.preheader124 ]
  %156 = getelementptr inbounds [404 x double], ptr @dist, i64 0, i64 %indvars.iv108
  store double 1.000000e+10, ptr %156, align 8, !tbaa !12
  %indvars.iv.next109 = add nuw nsw i64 %indvars.iv108, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next109, %wide.trip.count
  br i1 %exitcond.not, label %.preheader, label %.lr.ph82, !llvm.loop !24

.lr.ph83:                                         ; preds = %.preheader, %.lr.ph83
  call void @_ZNSt14priority_queueISt4pairIdiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  %157 = call noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIdiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  br i1 %157, label %._crit_edge84, label %.lr.ph83, !llvm.loop !25

._crit_edge84:                                    ; preds = %.lr.ph83, %.preheader
  store double 0.000000e+00, ptr @dist, align 16, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #8
  store i32 0, ptr %16, align 4, !tbaa !5
  %158 = call { double, i32 } @_ZSt9make_pairIRdiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) @dist, ptr noundef nonnull align 4 dereferenceable(4) %16)
  %.fca.0.extract9 = extractvalue { double, i32 } %158, 0
  %.fca.1.extract10 = extractvalue { double, i32 } %158, 1
  store double %.fca.0.extract9, ptr %15, align 8
  store i32 %.fca.1.extract10, ptr %.sroa.212.0..sroa_idx, align 8
  call void @_ZNSt14priority_queueISt4pairIdiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) @Q, ptr noundef nonnull align 8 dereferenceable(12) %15)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #8
  %159 = call noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIdiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  br i1 %159, label %._crit_edge90, label %.lr.ph89

.lr.ph89:                                         ; preds = %._crit_edge84, %._crit_edge87
  %160 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNKSt14priority_queueISt4pairIdiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  %161 = getelementptr inbounds i8, ptr %160, i64 8
  %162 = load i32, ptr %161, align 8, !tbaa !26
  call void @_ZNSt14priority_queueISt4pairIdiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #8
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds [404 x %"class.std::vector"], ptr @e, i64 0, i64 %163
  %165 = call ptr @_ZNSt6vectorISt4pairIdiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %164) #8
  store ptr %165, ptr %17, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #8
  %166 = call ptr @_ZNSt6vectorISt4pairIdiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %164) #8
  store ptr %166, ptr %18, align 8
  %167 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIdiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #8
  br i1 %167, label %.lr.ph86, label %._crit_edge87

.lr.ph86:                                         ; preds = %.lr.ph89
  %168 = getelementptr inbounds [404 x double], ptr @dist, i64 0, i64 %163
  br label %170

._crit_edge87:                                    ; preds = %184, %.lr.ph89
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #8
  %169 = call noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIdiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  br i1 %169, label %._crit_edge90, label %.lr.ph89, !llvm.loop !28

170:                                              ; preds = %.lr.ph86, %184
  %171 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIdiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #8
  %172 = getelementptr inbounds i8, ptr %171, i64 8
  %173 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIdiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #8
  %174 = load i32, ptr %172, align 4, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [404 x double], ptr @dist, i64 0, i64 %175
  %177 = load double, ptr %176, align 8, !tbaa !12
  %178 = load double, ptr %168, align 8, !tbaa !12
  %179 = load double, ptr %173, align 8, !tbaa !12
  %180 = fadd double %178, %179
  %181 = fcmp ogt double %177, %180
  br i1 %181, label %182, label %184

182:                                              ; preds = %170
  store double %180, ptr %176, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #8
  %183 = call { double, i32 } @_ZSt9make_pairIRdRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 8 dereferenceable(8) %176, ptr noundef nonnull align 4 dereferenceable(4) %172)
  %.fca.0.extract = extractvalue { double, i32 } %183, 0
  %.fca.1.extract = extractvalue { double, i32 } %183, 1
  store double %.fca.0.extract, ptr %19, align 8
  store i32 %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  call void @_ZNSt14priority_queueISt4pairIdiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) @Q, ptr noundef nonnull align 8 dereferenceable(12) %19)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #8
  br label %184

184:                                              ; preds = %182, %170
  %185 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIdiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #8
  %186 = call ptr @_ZNSt6vectorISt4pairIdiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %164) #8
  store ptr %186, ptr %18, align 8
  %187 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIdiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #8
  br i1 %187, label %170, label %._crit_edge87, !llvm.loop !29

._crit_edge90:                                    ; preds = %._crit_edge87, %._crit_edge84
  %188 = load double, ptr getelementptr inbounds (i8, ptr @dist, i64 8), align 8, !tbaa !12
  %189 = fadd double %188, -1.000000e+10
  %190 = call noundef i32 @_Z4dcmpd(double noundef %189)
  %.not59 = icmp eq i32 %190, 0
  br i1 %.not59, label %191, label %193

191:                                              ; preds = %._crit_edge90
  %192 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.4)
  br label %196

193:                                              ; preds = %._crit_edge90
  %194 = load double, ptr getelementptr inbounds (i8, ptr @dist, i64 8), align 8, !tbaa !12
  %195 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, double noundef %194)
  br label %196

196:                                              ; preds = %193, %191
  %197 = load i32, ptr @t, align 4, !tbaa !5
  %198 = add nsw i32 %197, -1
  store i32 %198, ptr @t, align 4, !tbaa !5
  %.not = icmp eq i32 %197, 0
  br i1 %.not, label %._crit_edge94, label %29, !llvm.loop !30

._crit_edge94:                                    ; preds = %196, %0
  ret i32 0
}

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #6

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

; Function Attrs: mustprogress uwtable
declare dso_local { double, i32 } @_ZSt9make_pairIdRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt14priority_queueISt4pairIdiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { double, i32 } @_ZSt9make_pairIRdiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { double, i32 } @_ZSt9make_pairIRdRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

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

; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #6

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #6

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress 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 #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { mustprogress norecurse 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 = { nofree 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = !{!15, !13, i64 8}
!15 = !{!"_ZTS5Point", !13, i64 0, !13, i64 8}
!16 = !{!15, !13, i64 0}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10, !20, !21}
!20 = !{!"llvm.loop.isvectorized", i32 1}
!21 = !{!"llvm.loop.unroll.runtime.disable"}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !10, !21, !20}
!25 = distinct !{!25, !10}
!26 = !{!27, !6, i64 8}
!27 = !{!"_ZTSSt4pairIdiE", !13, i64 0, !6, i64 8}
!28 = distinct !{!28, !10}
!29 = distinct !{!29, !10}
!30 = distinct !{!30, !10}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,SROAPass,SimplifyCFGPass,TailCallElimPass