; LLVM IR from tangjz/acm-icpc :: hdu (2383)

; 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 [202 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 [202 x double], align 16
@e = external dso_local global [202 x %"class.std::vector"], align 16
@Q = external dso_local global %"class.std::priority_queue", align 8
@vis = external dso_local global [202 x i8], align 16
@.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 [6 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 = %386, %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 %387

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 ([202 x %struct.Point], ptr @pp, i64 0, i64 1), ptr noundef getelementptr inbounds (%struct.Point, ptr getelementptr inbounds ([202 x %struct.Point], ptr @pp, i64 0, i64 1), i32 0, i32 1))
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #10
  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) #10
  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) #10
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %68

68:                                               ; preds = %194, %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) #10
  br label %197

73:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #10
  %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 = %190, %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) #10
  br label %193

81:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #10
  %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 %102, label %98

98:                                               ; preds = %81
  %99 = call noundef double @_ZNK5Point4modeEv(ptr noundef nonnull align 8 dereferenceable(16) %6)
  %100 = call noundef i32 @_Z4dcmpd(double noundef %99)
  %101 = icmp ne i32 %100, 0
  br i1 %101, label %103, label %102

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

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

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

171:                                              ; preds = %166, %103
  %172 = call noundef double @_ZNK5Point4modeEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
  %173 = call noundef i32 @_Z4dcmpd(double noundef %172)
  %174 = icmp ne i32 %173, 0
  br i1 %174, label %175, label %186

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

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

186:                                              ; preds = %181, %175, %171
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #10
  store i32 0, ptr %4, align 4
  br label %187

187:                                              ; preds = %186, %102
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #10
  %188 = load i32, ptr %4, align 4
  switch i32 %188, label %388 [
    i32 0, label %189
    i32 12, label %190
  ]

189:                                              ; preds = %187
  br label %190

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

193:                                              ; preds = %80
  br label %194

194:                                              ; preds = %193
  %195 = load i32, ptr %3, align 4, !tbaa !5
  %196 = add nsw i32 %195, 1
  store i32 %196, ptr %3, align 4, !tbaa !5
  br label %68, !llvm.loop !18

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

198:                                              ; preds = %207, %197
  %199 = load i32, ptr %18, align 4, !tbaa !5
  %200 = load i32, ptr @tot, align 4, !tbaa !5
  %201 = icmp slt i32 %199, %200
  br i1 %201, label %203, label %202

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

203:                                              ; preds = %198
  %204 = load i32, ptr %18, align 4, !tbaa !5
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [202 x %"class.std::vector"], ptr @e, i64 0, i64 %205
  call void @_ZNSt6vectorISt4pairIdiESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %206) #10
  br label %207

207:                                              ; preds = %203
  %208 = load i32, ptr %18, align 4, !tbaa !5
  %209 = add nsw i32 %208, 1
  store i32 %209, ptr %18, align 4, !tbaa !5
  br label %198, !llvm.loop !19

210:                                              ; preds = %202
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #10
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %211

211:                                              ; preds = %278, %210
  %212 = load i32, ptr %19, align 4, !tbaa !5
  %213 = load i32, ptr @tot, align 4, !tbaa !5
  %214 = icmp slt i32 %212, %213
  br i1 %214, label %216, label %215

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

216:                                              ; preds = %211
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #10
  %217 = load i32, ptr %19, align 4, !tbaa !5
  %218 = add nsw i32 %217, 1
  store i32 %218, ptr %20, align 4, !tbaa !5
  br label %219

219:                                              ; preds = %274, %216
  %220 = load i32, ptr %20, align 4, !tbaa !5
  %221 = load i32, ptr @tot, align 4, !tbaa !5
  %222 = icmp slt i32 %220, %221
  br i1 %222, label %224, label %223

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

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

240:                                              ; preds = %224
  %241 = load i32, ptr %19, align 4, !tbaa !5
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds [202 x %"class.std::vector"], ptr @e, i64 0, i64 %242
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #10
  %244 = load i32, ptr %19, align 4, !tbaa !5
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds [202 x %struct.Point], ptr @pp, i64 0, i64 %245
  %247 = load i32, ptr %20, align 4, !tbaa !5
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds [202 x %struct.Point], ptr @pp, i64 0, i64 %248
  %250 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %246, ptr noundef nonnull align 8 dereferenceable(16) %249)
  %251 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %252 = extractvalue { double, double } %250, 0
  store double %252, ptr %251, align 8
  %253 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %254 = extractvalue { double, double } %250, 1
  store double %254, ptr %253, align 8
  %255 = call noundef double @_ZNK5Point4modeEv(ptr noundef nonnull align 8 dereferenceable(16) %25)
  store double %255, ptr %24, align 8, !tbaa !11
  %256 = 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 } %256, 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) %243, ptr noundef nonnull align 8 dereferenceable(12) %23)
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #10
  %257 = load i32, ptr %20, align 4, !tbaa !5
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds [202 x %"class.std::vector"], ptr @e, i64 0, i64 %258
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #10
  %260 = load i32, ptr %19, align 4, !tbaa !5
  %261 = sext i32 %260 to i64
  %262 = getelementptr inbounds [202 x %struct.Point], ptr @pp, i64 0, i64 %261
  %263 = load i32, ptr %20, align 4, !tbaa !5
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds [202 x %struct.Point], ptr @pp, i64 0, i64 %264
  %266 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %262, ptr noundef nonnull align 8 dereferenceable(16) %265)
  %267 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %268 = extractvalue { double, double } %266, 0
  store double %268, ptr %267, align 8
  %269 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %270 = extractvalue { double, double } %266, 1
  store double %270, ptr %269, align 8
  %271 = call noundef double @_ZNK5Point4modeEv(ptr noundef nonnull align 8 dereferenceable(16) %29)
  store double %271, ptr %28, align 8, !tbaa !11
  %272 = 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 } %272, 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) %259, ptr noundef nonnull align 8 dereferenceable(12) %27)
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #10
  br label %273

273:                                              ; preds = %240, %224
  br label %274

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

277:                                              ; preds = %223
  br label %278

278:                                              ; preds = %277
  %279 = load i32, ptr %19, align 4, !tbaa !5
  %280 = add nsw i32 %279, 1
  store i32 %280, ptr %19, align 4, !tbaa !5
  br label %211, !llvm.loop !21

281:                                              ; preds = %215
  call void @llvm.memset.p0.i64(ptr align 16 @vis, i8 0, i64 202, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #10
  store i32 0, ptr %31, align 4, !tbaa !5
  br label %282

282:                                              ; preds = %291, %281
  %283 = load i32, ptr %31, align 4, !tbaa !5
  %284 = load i32, ptr @tot, align 4, !tbaa !5
  %285 = icmp slt i32 %283, %284
  br i1 %285, label %287, label %286

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

287:                                              ; preds = %282
  %288 = load i32, ptr %31, align 4, !tbaa !5
  %289 = sext i32 %288 to i64
  %290 = getelementptr inbounds [202 x double], ptr @dist, i64 0, i64 %289
  store double 1.000000e+10, ptr %290, align 8, !tbaa !11
  br label %291

291:                                              ; preds = %287
  %292 = load i32, ptr %31, align 4, !tbaa !5
  %293 = add nsw i32 %292, 1
  store i32 %293, ptr %31, align 4, !tbaa !5
  br label %282, !llvm.loop !22

294:                                              ; preds = %286
  br label %295

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

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

299:                                              ; preds = %295
  store double 0.000000e+00, ptr @dist, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #10
  store i32 0, ptr %33, align 4, !tbaa !5
  %300 = 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 } %300, 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) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #10
  br label %301

301:                                              ; preds = %375, %373, %299
  %302 = call noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIdiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  %303 = xor i1 %302, true
  br i1 %303, label %304, label %376

304:                                              ; preds = %301
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #10
  %305 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNKSt14priority_queueISt4pairIdiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  %306 = getelementptr inbounds %"struct.std::pair.0", ptr %305, i32 0, i32 1
  %307 = load i32, ptr %306, align 8, !tbaa !24
  store i32 %307, ptr %35, align 4, !tbaa !5
  call void @_ZNSt14priority_queueISt4pairIdiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  %308 = load i32, ptr %35, align 4, !tbaa !5
  %309 = sext i32 %308 to i64
  %310 = getelementptr inbounds [202 x i8], ptr @vis, i64 0, i64 %309
  %311 = load i8, ptr %310, align 1, !tbaa !26, !range !28, !noundef !29
  %312 = trunc i8 %311 to i1
  br i1 %312, label %313, label %314

313:                                              ; preds = %304
  store i32 27, ptr %4, align 4
  br label %373, !llvm.loop !30

314:                                              ; preds = %304
  %315 = load i32, ptr %35, align 4, !tbaa !5
  %316 = sext i32 %315 to i64
  %317 = getelementptr inbounds [202 x i8], ptr @vis, i64 0, i64 %316
  store i8 1, ptr %317, align 1, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #10
  %318 = load i32, ptr %35, align 4, !tbaa !5
  %319 = sext i32 %318 to i64
  %320 = getelementptr inbounds [202 x %"class.std::vector"], ptr @e, i64 0, i64 %319
  %321 = call ptr @_ZNSt6vectorISt4pairIdiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %320) #10
  %322 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %36, i32 0, i32 0
  store ptr %321, ptr %322, align 8
  br label %323

323:                                              ; preds = %370, %314
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #10
  %324 = load i32, ptr %35, align 4, !tbaa !5
  %325 = sext i32 %324 to i64
  %326 = getelementptr inbounds [202 x %"class.std::vector"], ptr @e, i64 0, i64 %325
  %327 = call ptr @_ZNSt6vectorISt4pairIdiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %326) #10
  %328 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %37, i32 0, i32 0
  store ptr %327, ptr %328, align 8
  %329 = 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) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #10
  br i1 %329, label %331, label %330

330:                                              ; preds = %323
  store i32 29, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #10
  br label %372

331:                                              ; preds = %323
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #10
  %332 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIdiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %36) #10
  %333 = getelementptr inbounds %"struct.std::pair.0", ptr %332, i32 0, i32 1
  store ptr %333, ptr %38, align 8, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #10
  %334 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIdiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %36) #10
  %335 = getelementptr inbounds %"struct.std::pair.0", ptr %334, i32 0, i32 0
  store ptr %335, ptr %39, align 8, !tbaa !31
  %336 = load ptr, ptr %38, align 8, !tbaa !31
  %337 = load i32, ptr %336, align 4, !tbaa !5
  %338 = sext i32 %337 to i64
  %339 = getelementptr inbounds [202 x double], ptr @dist, i64 0, i64 %338
  %340 = load double, ptr %339, align 8, !tbaa !11
  %341 = load i32, ptr %35, align 4, !tbaa !5
  %342 = sext i32 %341 to i64
  %343 = getelementptr inbounds [202 x double], ptr @dist, i64 0, i64 %342
  %344 = load double, ptr %343, align 8, !tbaa !11
  %345 = fsub double %340, %344
  %346 = load ptr, ptr %39, align 8, !tbaa !31
  %347 = load double, ptr %346, align 8, !tbaa !11
  %348 = fsub double %345, %347
  %349 = call noundef i32 @_Z4dcmpd(double noundef %348)
  %350 = icmp sgt i32 %349, 0
  br i1 %350, label %351, label %369

351:                                              ; preds = %331
  %352 = load i32, ptr %35, align 4, !tbaa !5
  %353 = sext i32 %352 to i64
  %354 = getelementptr inbounds [202 x double], ptr @dist, i64 0, i64 %353
  %355 = load double, ptr %354, align 8, !tbaa !11
  %356 = load ptr, ptr %39, align 8, !tbaa !31
  %357 = load double, ptr %356, align 8, !tbaa !11
  %358 = fadd double %355, %357
  %359 = load ptr, ptr %38, align 8, !tbaa !31
  %360 = load i32, ptr %359, align 4, !tbaa !5
  %361 = sext i32 %360 to i64
  %362 = getelementptr inbounds [202 x double], ptr @dist, i64 0, i64 %361
  store double %358, ptr %362, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #10
  %363 = load ptr, ptr %38, align 8, !tbaa !31
  %364 = load i32, ptr %363, align 4, !tbaa !5
  %365 = sext i32 %364 to i64
  %366 = getelementptr inbounds [202 x double], ptr @dist, i64 0, i64 %365
  %367 = load ptr, ptr %38, align 8, !tbaa !31
  %368 = call { double, i32 } @_ZSt9make_pairIRdRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 8 dereferenceable(8) %366, ptr noundef nonnull align 4 dereferenceable(4) %367)
  store { double, i32 } %368, 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) #10
  br label %369

369:                                              ; preds = %351, %331
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #10
  br label %370

370:                                              ; preds = %369
  %371 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIdiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %36) #10
  br label %323, !llvm.loop !33

372:                                              ; preds = %330
  store i32 0, ptr %4, align 4
  br label %373

373:                                              ; preds = %372, %313
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #10
  %374 = load i32, ptr %4, align 4
  switch i32 %374, label %388 [
    i32 0, label %375
    i32 27, label %301
  ]

375:                                              ; preds = %373
  br label %301, !llvm.loop !30

376:                                              ; preds = %301
  %377 = load double, ptr getelementptr inbounds ([202 x double], ptr @dist, i64 0, i64 1), align 8, !tbaa !11
  %378 = fsub double %377, 1.000000e+10
  %379 = call noundef i32 @_Z4dcmpd(double noundef %378)
  %380 = icmp ne i32 %379, 0
  br i1 %380, label %383, label %381

381:                                              ; preds = %376
  %382 = call i32 @puts(ptr noundef @.str.4)
  br label %386

383:                                              ; preds = %376
  %384 = load double, ptr getelementptr inbounds ([202 x double], ptr @dist, i64 0, i64 1), align 8, !tbaa !11
  %385 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef %384)
  br label %386

386:                                              ; preds = %383, %381
  br label %43, !llvm.loop !34

387:                                              ; preds = %43
  ret i32 0

388:                                              ; preds = %373, %187
  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: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #8

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

; 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #9 = { 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 #10 = { 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 = !{!"bool", !7, i64 0}
!28 = !{i8 0, i8 2}
!29 = !{}
!30 = distinct !{!30, !10}
!31 = !{!32, !32, i64 0}
!32 = !{!"any pointer", !7, i64 0}
!33 = distinct !{!33, !10}
!34 = distinct !{!34, !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 [202 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 [202 x double], align 16
@e = external dso_local global [202 x %"class.std::vector"], align 16
@Q = external dso_local global %"class.std::priority_queue", align 8
@vis = external dso_local local_unnamed_addr global [202 x i8], align 16
@.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 [6 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
  %.not93 = icmp eq i32 %21, 0
  br i1 %.not93, label %._crit_edge96, label %.lr.ph95

.lr.ph95:                                         ; 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.225.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 8
  %28 = getelementptr inbounds i8, ptr %14, i64 8
  %.sroa.221.0..sroa_idx = getelementptr inbounds i8, ptr %12, i64 8
  %.sroa.214.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.ph95, %212
  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 %.preheader64

.preheader65:                                     ; preds = %.lr.ph
  %33 = icmp sgt i32 %37, 0
  br i1 %33, label %.lr.ph70, label %.preheader64

.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 %.preheader65, !llvm.loop !9

.loopexit.loopexit:                               ; preds = %107
  %.pre114 = sext i32 %108 to i64
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %.lr.ph70
  %.pre-phi = phi i64 [ %.pre114, %.loopexit.loopexit ], [ %45, %.lr.ph70 ]
  %40 = phi i32 [ %108, %.loopexit.loopexit ], [ %44, %.lr.ph70 ]
  %41 = icmp slt i64 %indvars.iv.next105, %.pre-phi
  %indvars.iv.next100 = add nuw nsw i64 %indvars.iv99, 1
  br i1 %41, label %.lr.ph70, label %.preheader64, !llvm.loop !11

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

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

.lr.ph70:                                         ; preds = %.preheader65, %.loopexit
  %44 = phi i32 [ %40, %.loopexit ], [ %37, %.preheader65 ]
  %indvars.iv104 = phi i64 [ %indvars.iv.next105, %.loopexit ], [ 0, %.preheader65 ]
  %indvars.iv99 = phi i64 [ %indvars.iv.next100, %.loopexit ], [ 1, %.preheader65 ]
  %indvars.iv.next105 = add nuw nsw i64 %indvars.iv104, 1
  %45 = sext i32 %44 to i64
  %46 = icmp slt i64 %indvars.iv.next105, %45
  br i1 %46, label %.lr.ph68, label %.loopexit

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

48:                                               ; preds = %.lr.ph68, %107
  %indvars.iv101 = phi i64 [ %indvars.iv99, %.lr.ph68 ], [ %indvars.iv.next102, %107 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #9
  %49 = getelementptr inbounds [101 x %struct.Point], ptr @p, i64 0, i64 %indvars.iv101
  %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 %107, label %58

58:                                               ; preds = %48
  %59 = call noundef double @_ZNK5Point4modeEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %60 = call noundef i32 @_Z4dcmpd(double noundef %59)
  %.not62 = icmp eq i32 %60, 0
  br i1 %.not62, label %107, label %61

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

91:                                               ; preds = %61
  %92 = load i32, ptr @tot, align 4, !tbaa !5
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr @tot, align 4, !tbaa !5
  %94 = sext i32 %92 to i64
  %95 = getelementptr inbounds [202 x %struct.Point], ptr @pp, i64 0, i64 %94
  store double %85, ptr %95, align 16, !tbaa !12
  %.sroa.539.0..sroa_idx = getelementptr inbounds i8, ptr %95, i64 8
  store double %86, ptr %.sroa.539.0..sroa_idx, align 8, !tbaa !12
  br label %96

96:                                               ; preds = %91, %61
  %97 = call noundef double @_ZNK5Point4modeEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
  %98 = call noundef i32 @_Z4dcmpd(double noundef %97)
  %.not63 = icmp eq i32 %98, 0
  br i1 %.not63, label %106, label %99

99:                                               ; preds = %96
  %100 = call noundef zeroext i1 @_Z5valid5Point(double %88, double %89)
  br i1 %100, label %101, label %106

101:                                              ; preds = %99
  %102 = load i32, ptr @tot, align 4, !tbaa !5
  %103 = add nsw i32 %102, 1
  store i32 %103, ptr @tot, align 4, !tbaa !5
  %104 = sext i32 %102 to i64
  %105 = getelementptr inbounds [202 x %struct.Point], ptr @pp, i64 0, i64 %104
  store double %88, ptr %105, align 16, !tbaa !12
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %105, i64 8
  store double %89, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !12
  br label %106

106:                                              ; preds = %101, %99, %96
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #9
  br label %107

107:                                              ; preds = %48, %58, %106
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #9
  %indvars.iv.next102 = add nuw nsw i64 %indvars.iv101, 1
  %108 = load i32, ptr @n, align 4, !tbaa !5
  %109 = trunc nuw i64 %indvars.iv.next102 to i32
  %110 = icmp sgt i32 %108, %109
  br i1 %110, label %48, label %.loopexit.loopexit, !llvm.loop !17

._crit_edge:                                      ; preds = %.lr.ph72
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #9
  store i32 0, ptr %7, align 4, !tbaa !5
  %111 = icmp sgt i32 %113, 0
  br i1 %111, label %.lr.ph80, label %._crit_edge81.thread

.lr.ph72:                                         ; preds = %.preheader64, %.lr.ph72
  %indvars.iv107 = phi i64 [ %indvars.iv.next108, %.lr.ph72 ], [ 0, %.preheader64 ]
  %112 = getelementptr inbounds [202 x %"class.std::vector"], ptr @e, i64 0, i64 %indvars.iv107
  call void @_ZNSt6vectorISt4pairIdiESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %112) #9
  %indvars.iv.next108 = add nuw nsw i64 %indvars.iv107, 1
  %113 = load i32, ptr @tot, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = icmp slt i64 %indvars.iv.next108, %114
  br i1 %115, label %.lr.ph72, label %._crit_edge, !llvm.loop !18

._crit_edge81.thread:                             ; preds = %._crit_edge, %._crit_edge.thread
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(202) @vis, i8 0, i64 202, i1 false)
  br label %.preheader

._crit_edge81:                                    ; preds = %._crit_edge78
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(202) @vis, i8 0, i64 202, i1 false)
  %116 = icmp sgt i32 %122, 0
  br i1 %116, label %.lr.ph84.preheader, label %.preheader

.lr.ph84.preheader:                               ; preds = %._crit_edge81
  %wide.trip.count = zext nneg i32 %122 to i64
  %min.iters.check = icmp ult i32 %122, 4
  br i1 %min.iters.check, label %.lr.ph84.preheader126, label %vector.ph

.lr.ph84.preheader126:                            ; preds = %middle.block, %.lr.ph84.preheader
  %indvars.iv110.ph = phi i64 [ 0, %.lr.ph84.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph84

vector.ph:                                        ; preds = %.lr.ph84.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 ]
  %117 = getelementptr inbounds [202 x double], ptr @dist, i64 0, i64 %index
  %118 = getelementptr inbounds i8, ptr %117, i64 16
  store <2 x double> <double 1.000000e+10, double 1.000000e+10>, ptr %117, align 16, !tbaa !12
  store <2 x double> <double 1.000000e+10, double 1.000000e+10>, ptr %118, align 16, !tbaa !12
  %index.next = add nuw i64 %index, 4
  %119 = icmp eq i64 %index.next, %n.vec
  br i1 %119, 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.ph84.preheader126

.lr.ph80:                                         ; preds = %._crit_edge, %._crit_edge78
  %120 = phi i32 [ %122, %._crit_edge78 ], [ %113, %._crit_edge ]
  %storemerge61.in73 = phi i32 [ %.pre-phi116, %._crit_edge78 ], [ 0, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #9
  %storemerge6174 = add nsw i32 %storemerge61.in73, 1
  store i32 %storemerge6174, ptr %8, align 4, !tbaa !5
  %121 = icmp slt i32 %storemerge6174, %120
  br i1 %121, label %.lr.ph77, label %._crit_edge78

._crit_edge78.loopexit:                           ; preds = %155
  %.pre = load i32, ptr %7, align 4, !tbaa !5
  %.pre115 = add nsw i32 %.pre, 1
  br label %._crit_edge78

._crit_edge78:                                    ; preds = %._crit_edge78.loopexit, %.lr.ph80
  %.pre-phi116 = phi i32 [ %.pre115, %._crit_edge78.loopexit ], [ %storemerge6174, %.lr.ph80 ]
  %122 = phi i32 [ %156, %._crit_edge78.loopexit ], [ %120, %.lr.ph80 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #9
  store i32 %.pre-phi116, ptr %7, align 4, !tbaa !5
  %123 = icmp slt i32 %.pre-phi116, %122
  br i1 %123, label %.lr.ph80, label %._crit_edge81, !llvm.loop !22

.lr.ph77:                                         ; preds = %.lr.ph80, %155
  %storemerge6175 = phi i32 [ %storemerge61, %155 ], [ %storemerge6174, %.lr.ph80 ]
  %124 = load i32, ptr %7, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [202 x %struct.Point], ptr @pp, i64 0, i64 %125
  %.sroa.028.0.copyload = load double, ptr %126, align 16, !tbaa !12
  %.sroa.229.0..sroa_idx = getelementptr inbounds i8, ptr %126, i64 8
  %.sroa.229.0.copyload = load double, ptr %.sroa.229.0..sroa_idx, align 8, !tbaa !12
  %127 = sext i32 %storemerge6175 to i64
  %128 = getelementptr inbounds [202 x %struct.Point], ptr @pp, i64 0, i64 %127
  %.sroa.026.0.copyload = load double, ptr %128, align 16, !tbaa !12
  %.sroa.227.0..sroa_idx = getelementptr inbounds i8, ptr %128, i64 8
  %.sroa.227.0.copyload = load double, ptr %.sroa.227.0..sroa_idx, align 8, !tbaa !12
  %129 = call noundef zeroext i1 @_Z5cover5PointS_(double %.sroa.028.0.copyload, double %.sroa.229.0.copyload, double %.sroa.026.0.copyload, double %.sroa.227.0.copyload)
  br i1 %129, label %130, label %155

130:                                              ; preds = %.lr.ph77
  %131 = load i32, ptr %7, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [202 x %"class.std::vector"], ptr @e, i64 0, i64 %132
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #9
  %134 = getelementptr inbounds [202 x %struct.Point], ptr @pp, i64 0, i64 %132
  %135 = load i32, ptr %8, align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [202 x %struct.Point], ptr @pp, i64 0, i64 %136
  %138 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %134, ptr noundef nonnull align 8 dereferenceable(16) %137)
  %139 = extractvalue { double, double } %138, 0
  store double %139, ptr %11, align 8
  %140 = extractvalue { double, double } %138, 1
  store double %140, ptr %27, align 8
  %141 = call noundef double @_ZNK5Point4modeEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
  store double %141, ptr %10, align 8, !tbaa !12
  %142 = 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.extract22 = extractvalue { double, i32 } %142, 0
  %.fca.1.extract23 = extractvalue { double, i32 } %142, 1
  store double %.fca.0.extract22, ptr %9, align 8
  store i32 %.fca.1.extract23, ptr %.sroa.225.0..sroa_idx, align 8
  call void @_ZNSt6vectorISt4pairIdiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %133, ptr noundef nonnull align 8 dereferenceable(12) %9)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #9
  %143 = load i32, ptr %8, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [202 x %"class.std::vector"], ptr @e, i64 0, i64 %144
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #9
  %146 = load i32, ptr %7, align 4, !tbaa !5
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [202 x %struct.Point], ptr @pp, i64 0, i64 %147
  %149 = getelementptr inbounds [202 x %struct.Point], ptr @pp, i64 0, i64 %144
  %150 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %148, ptr noundef nonnull align 8 dereferenceable(16) %149)
  %151 = extractvalue { double, double } %150, 0
  store double %151, ptr %14, align 8
  %152 = extractvalue { double, double } %150, 1
  store double %152, ptr %28, align 8
  %153 = call noundef double @_ZNK5Point4modeEv(ptr noundef nonnull align 8 dereferenceable(16) %14)
  store double %153, ptr %13, align 8, !tbaa !12
  %154 = 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.extract18 = extractvalue { double, i32 } %154, 0
  %.fca.1.extract19 = extractvalue { double, i32 } %154, 1
  store double %.fca.0.extract18, ptr %12, align 8
  store i32 %.fca.1.extract19, ptr %.sroa.221.0..sroa_idx, align 8
  call void @_ZNSt6vectorISt4pairIdiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %145, ptr noundef nonnull align 8 dereferenceable(12) %12)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #9
  br label %155

155:                                              ; preds = %.lr.ph77, %130
  %storemerge61.in = load i32, ptr %8, align 4, !tbaa !5
  %storemerge61 = add nsw i32 %storemerge61.in, 1
  store i32 %storemerge61, ptr %8, align 4, !tbaa !5
  %156 = load i32, ptr @tot, align 4, !tbaa !5
  %157 = icmp slt i32 %storemerge61, %156
  br i1 %157, label %.lr.ph77, label %._crit_edge78.loopexit, !llvm.loop !23

.preheader:                                       ; preds = %.lr.ph84, %middle.block, %._crit_edge81.thread, %._crit_edge81
  %158 = call noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIdiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  br i1 %158, label %._crit_edge86, label %.lr.ph85

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

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

._crit_edge86:                                    ; preds = %.lr.ph85, %.preheader
  store double 0.000000e+00, ptr @dist, align 16, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #9
  store i32 0, ptr %16, align 4, !tbaa !5
  %161 = 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.extract11 = extractvalue { double, i32 } %161, 0
  %.fca.1.extract12 = extractvalue { double, i32 } %161, 1
  store double %.fca.0.extract11, ptr %15, align 8
  store i32 %.fca.1.extract12, ptr %.sroa.214.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) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #9
  %162 = call noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIdiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  br i1 %162, label %._crit_edge92, label %.lr.ph91

.lr.ph91:                                         ; preds = %._crit_edge86, %202
  %163 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNKSt14priority_queueISt4pairIdiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  %164 = getelementptr inbounds i8, ptr %163, i64 8
  %165 = load i32, ptr %164, align 8, !tbaa !26
  call void @_ZNSt14priority_queueISt4pairIdiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [202 x i8], ptr @vis, i64 0, i64 %166
  %168 = load i8, ptr %167, align 1, !tbaa !28, !range !30, !noundef !31
  %169 = trunc nuw i8 %168 to i1
  br i1 %169, label %202, label %170, !llvm.loop !32

170:                                              ; preds = %.lr.ph91
  store i8 1, ptr %167, align 1, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #9
  %171 = getelementptr inbounds [202 x %"class.std::vector"], ptr @e, i64 0, i64 %166
  %172 = call ptr @_ZNSt6vectorISt4pairIdiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %171) #9
  store ptr %172, ptr %17, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #9
  %173 = call ptr @_ZNSt6vectorISt4pairIdiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %171) #9
  store ptr %173, ptr %18, align 8
  %174 = 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) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #9
  br i1 %174, label %.lr.ph88, label %._crit_edge89

.lr.ph88:                                         ; preds = %170
  %175 = getelementptr inbounds [202 x double], ptr @dist, i64 0, i64 %166
  br label %176

._crit_edge89:                                    ; preds = %198, %170
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #9
  br label %202

176:                                              ; preds = %.lr.ph88, %198
  %177 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIdiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #9
  %178 = getelementptr inbounds i8, ptr %177, i64 8
  %179 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIdiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #9
  %180 = load i32, ptr %178, align 4, !tbaa !5
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds [202 x double], ptr @dist, i64 0, i64 %181
  %183 = load double, ptr %182, align 8, !tbaa !12
  %184 = load double, ptr %175, align 8, !tbaa !12
  %185 = fsub double %183, %184
  %186 = load double, ptr %179, align 8, !tbaa !12
  %187 = fsub double %185, %186
  %188 = call noundef i32 @_Z4dcmpd(double noundef %187)
  %189 = icmp sgt i32 %188, 0
  br i1 %189, label %190, label %198

190:                                              ; preds = %176
  %191 = load double, ptr %175, align 8, !tbaa !12
  %192 = load double, ptr %179, align 8, !tbaa !12
  %193 = fadd double %191, %192
  %194 = load i32, ptr %178, align 4, !tbaa !5
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds [202 x double], ptr @dist, i64 0, i64 %195
  store double %193, ptr %196, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #9
  %197 = call { double, i32 } @_ZSt9make_pairIRdRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 8 dereferenceable(8) %196, ptr noundef nonnull align 4 dereferenceable(4) %178)
  %.fca.0.extract = extractvalue { double, i32 } %197, 0
  %.fca.1.extract = extractvalue { double, i32 } %197, 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) #9
  br label %198

198:                                              ; preds = %190, %176
  %199 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIdiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #9
  %200 = call ptr @_ZNSt6vectorISt4pairIdiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %171) #9
  store ptr %200, ptr %18, align 8
  %201 = 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) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #9
  br i1 %201, label %176, label %._crit_edge89, !llvm.loop !33

202:                                              ; preds = %.lr.ph91, %._crit_edge89
  %203 = call noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIdiESt6vectorIS1_SaIS1_EESt7greaterIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) @Q)
  br i1 %203, label %._crit_edge92, label %.lr.ph91

._crit_edge92:                                    ; preds = %202, %._crit_edge86
  %204 = load double, ptr getelementptr inbounds (i8, ptr @dist, i64 8), align 8, !tbaa !12
  %205 = fadd double %204, -1.000000e+10
  %206 = call noundef i32 @_Z4dcmpd(double noundef %205)
  %.not60 = icmp eq i32 %206, 0
  br i1 %.not60, label %207, label %209

207:                                              ; preds = %._crit_edge92
  %208 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.4)
  br label %212

209:                                              ; preds = %._crit_edge92
  %210 = load double, ptr getelementptr inbounds (i8, ptr @dist, i64 8), align 8, !tbaa !12
  %211 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, double noundef %210)
  br label %212

212:                                              ; preds = %209, %207
  %213 = load i32, ptr @t, align 4, !tbaa !5
  %214 = add nsw i32 %213, -1
  store i32 %214, ptr @t, align 4, !tbaa !5
  %.not = icmp eq i32 %213, 0
  br i1 %.not, label %._crit_edge96, label %29, !llvm.loop !34

._crit_edge96:                                    ; preds = %212, %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 nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #7

; 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 #8

; 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = 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 = !{!29, !29, i64 0}
!29 = !{!"bool", !7, i64 0}
!30 = !{i8 0, i8 2}
!31 = !{}
!32 = distinct !{!32, !10}
!33 = distinct !{!33, !10}
!34 = distinct !{!34, !10}


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