; LLVM IR from kazunetakahashi/atcoder :: 2017/0320_RCO-final/B2.ll (Z5solvev)

; 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"

%class.Point = type { i32, i32 }
%"class.std::set" = type { %"class.std::_Rb_tree.0" }
%"class.std::_Rb_tree.0" = type { %"struct.std::_Rb_tree<Point, Point, std::_Identity<Point>, std::less<Point>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<Point, Point, std::_Identity<Point>, std::less<Point>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::set.9" = type { %"class.std::_Rb_tree.10" }
%"class.std::_Rb_tree.10" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::pair" = type <{ %"struct.std::_Rb_tree_const_iterator.15", i8, [7 x i8] }>
%"struct.std::_Rb_tree_const_iterator.15" = type { ptr }
%"struct.std::pair.16" = type <{ %"struct.std::_Rb_tree_const_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_const_iterator" = type { ptr }

@DX = external dso_local global [5 x %class.Point], align 16
@K = external dso_local global i32, align 4
@T = external dso_local global i32, align 4
@Y = external dso_local global [450 x %class.Point], align 16
@L = external dso_local global i32, align 4
@now = external dso_local global [10010 x [450 x %class.Point]], align 16
@S = external dso_local global [10010 x %"class.std::set"], align 16
@CARS = external dso_local global i32, align 4
@MIN_P = external dso_local global double, align 8
@memo = external dso_local global [10010 x i32], align 16
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i32 @rand() #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z5valid5Pointi(i64, i32 noundef) #1

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z8make_ansi(i32 noundef) #1

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5scorev() #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::set.9", align 8
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca %"struct.std::pair", align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"struct.std::pair.16", align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca %"struct.std::_Rb_tree_const_iterator.15", align 8
  %12 = alloca %"struct.std::_Rb_tree_const_iterator.15", align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %class.Point, align 4
  %18 = alloca %class.Point, align 4
  %19 = alloca %"struct.std::pair.16", align 8
  %20 = alloca i32, align 4
  %21 = alloca %"struct.std::_Rb_tree_const_iterator.15", align 8
  %22 = alloca %"struct.std::_Rb_tree_const_iterator.15", align 8
  %23 = alloca ptr, align 8
  %24 = alloca [5 x i8], align 1
  %25 = alloca i8, align 1
  %26 = alloca i32, align 4
  %27 = alloca %class.Point, align 4
  %28 = alloca %class.Point, align 4
  %29 = alloca %"struct.std::pair.16", align 8
  %30 = alloca %"class.std::set.9", align 8
  %31 = alloca ptr, align 8
  %32 = alloca %"struct.std::_Rb_tree_const_iterator.15", align 8
  %33 = alloca %"struct.std::_Rb_tree_const_iterator.15", align 8
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca %"struct.std::pair", align 8
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca %"struct.std::pair.16", align 8
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca ptr, align 8
  %45 = alloca i32, align 4
  %46 = alloca i32, align 4
  %47 = alloca %class.Point, align 4
  %48 = alloca %class.Point, align 4
  %49 = alloca %"struct.std::pair.16", align 8
  call void @llvm.lifetime.start.p0(i64 48, ptr %1) #6
  call void @_ZNSt3setIiSt4lessIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %50

50:                                               ; preds = %62, %0
  %51 = load i32, ptr %2, align 4, !tbaa !5
  %52 = load i32, ptr @CARS, align 4, !tbaa !5
  %53 = icmp slt i32 %51, %52
  br i1 %53, label %55, label %54

54:                                               ; preds = %50
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %69

55:                                               ; preds = %50
  %56 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %57 unwind label %65

57:                                               ; preds = %55
  %58 = getelementptr inbounds { ptr, i8 }, ptr %5, i32 0, i32 0
  %59 = extractvalue { ptr, i8 } %56, 0
  store ptr %59, ptr %58, align 8
  %60 = getelementptr inbounds { ptr, i8 }, ptr %5, i32 0, i32 1
  %61 = extractvalue { ptr, i8 } %56, 1
  store i8 %61, ptr %60, align 8
  br label %62

62:                                               ; preds = %57
  %63 = load i32, ptr %2, align 4, !tbaa !5
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %2, align 4, !tbaa !5
  br label %50, !llvm.loop !9

65:                                               ; preds = %55
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %3, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %535

69:                                               ; preds = %54
  store i32 0, ptr @L, align 4, !tbaa !5
  br label %70

70:                                               ; preds = %336, %69
  %71 = load i32, ptr @L, align 4, !tbaa !5
  %72 = icmp slt i32 %71, 2000
  br i1 %72, label %73, label %340

73:                                               ; preds = %70
  %74 = invoke noundef zeroext i1 @_Z7time_okv()
          to label %75 unwind label %77

75:                                               ; preds = %73
  br i1 %74, label %81, label %76

76:                                               ; preds = %75
  store i32 1, ptr %6, align 4
  br label %531

77:                                               ; preds = %73
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %3, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %4, align 4
  br label %535

81:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %82

82:                                               ; preds = %104, %81
  %83 = load i32, ptr %7, align 4, !tbaa !5
  %84 = load i32, ptr @K, align 4, !tbaa !5
  %85 = icmp slt i32 %83, %84
  br i1 %85, label %87, label %86

86:                                               ; preds = %82
  store i32 8, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %111

87:                                               ; preds = %82
  %88 = load i32, ptr @L, align 4, !tbaa !5
  %89 = add nsw i32 %88, 1
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [10010 x %"class.std::set"], ptr @S, i64 0, i64 %90
  %92 = load i32, ptr @L, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [10010 x [450 x %class.Point]], ptr @now, i64 0, i64 %93
  %95 = load i32, ptr %7, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [450 x %class.Point], ptr %94, i64 0, i64 %96
  %98 = invoke { ptr, i8 } @_ZNSt3setI5PointSt4lessIS0_ESaIS0_EE6insertERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %91, ptr noundef nonnull align 4 dereferenceable(8) %97)
          to label %99 unwind label %107

99:                                               ; preds = %87
  %100 = getelementptr inbounds { ptr, i8 }, ptr %8, i32 0, i32 0
  %101 = extractvalue { ptr, i8 } %98, 0
  store ptr %101, ptr %100, align 8
  %102 = getelementptr inbounds { ptr, i8 }, ptr %8, i32 0, i32 1
  %103 = extractvalue { ptr, i8 } %98, 1
  store i8 %103, ptr %102, align 8
  br label %104

104:                                              ; preds = %99
  %105 = load i32, ptr %7, align 4, !tbaa !5
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr %7, align 4, !tbaa !5
  br label %82, !llvm.loop !11

107:                                              ; preds = %87
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %3, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %535

111:                                              ; preds = %86
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store ptr %1, ptr %10, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %112 = load ptr, ptr %10, align 8, !tbaa !12
  %113 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %112) #6
  %114 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.15", ptr %11, i32 0, i32 0
  store ptr %113, ptr %114, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %115 = load ptr, ptr %10, align 8, !tbaa !12
  %116 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %115) #6
  %117 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.15", ptr %12, i32 0, i32 0
  store ptr %116, ptr %117, align 8
  br label %118

118:                                              ; preds = %204, %111
  %119 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  br i1 %119, label %121, label %120

120:                                              ; preds = %118
  store i32 11, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %207

121:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %122 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  %123 = load i32, ptr %122, align 4, !tbaa !5
  store i32 %123, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %124 = load i32, ptr @L, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [10010 x [450 x %class.Point]], ptr @now, i64 0, i64 %125
  %127 = load i32, ptr %13, align 4, !tbaa !5
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [450 x %class.Point], ptr %126, i64 0, i64 %128
  store ptr %129, ptr %14, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %130 = load ptr, ptr %14, align 8, !tbaa !12
  %131 = load i32, ptr %13, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [450 x %class.Point], ptr @Y, i64 0, i64 %132
  %134 = invoke noundef i32 @_ZNK5Point4distERKS_(ptr noundef nonnull align 4 dereferenceable(8) %130, ptr noundef nonnull align 4 dereferenceable(8) %133)
          to label %135 unwind label %140

135:                                              ; preds = %121
  store i32 %134, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %136

136:                                              ; preds = %199, %135
  %137 = load i32, ptr %16, align 4, !tbaa !5
  %138 = icmp slt i32 %137, 5
  br i1 %138, label %144, label %139

139:                                              ; preds = %136
  store i32 13, ptr %6, align 4
  br label %202

140:                                              ; preds = %121
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %3, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %4, align 4
  br label %206

144:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %145 = load ptr, ptr %14, align 8, !tbaa !12
  %146 = load i32, ptr %16, align 4, !tbaa !5
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [5 x %class.Point], ptr @DX, i64 0, i64 %147
  %149 = invoke i64 @_ZNK5PointplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %145, ptr noundef nonnull align 4 dereferenceable(8) %148)
          to label %150 unwind label %190

150:                                              ; preds = %144
  store i64 %149, ptr %17, align 4
  %151 = load i32, ptr %16, align 4, !tbaa !5
  %152 = icmp eq i32 %151, 4
  br i1 %152, label %167, label %153

153:                                              ; preds = %150
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %17, i64 8, i1 false), !tbaa.struct !14
  %154 = load i32, ptr @L, align 4, !tbaa !5
  %155 = add nsw i32 %154, 1
  %156 = load i64, ptr %18, align 4
  %157 = invoke noundef zeroext i1 @_Z5valid5Pointi(i64 %156, i32 noundef %155)
          to label %158 unwind label %190

158:                                              ; preds = %153
  br i1 %157, label %159, label %195

159:                                              ; preds = %158
  %160 = load i32, ptr %13, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [450 x %class.Point], ptr @Y, i64 0, i64 %161
  %163 = invoke noundef i32 @_ZNK5Point4distERKS_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(8) %162)
          to label %164 unwind label %190

164:                                              ; preds = %159
  %165 = load i32, ptr %15, align 4, !tbaa !5
  %166 = icmp slt i32 %163, %165
  br i1 %166, label %167, label %195

167:                                              ; preds = %164, %150
  %168 = load i32, ptr @L, align 4, !tbaa !5
  %169 = add nsw i32 %168, 1
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds [10010 x [450 x %class.Point]], ptr @now, i64 0, i64 %170
  %172 = load i32, ptr %13, align 4, !tbaa !5
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [450 x %class.Point], ptr %171, i64 0, i64 %173
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %174, ptr align 4 %17, i64 8, i1 false), !tbaa.struct !14
  %175 = load i32, ptr @L, align 4, !tbaa !5
  %176 = add nsw i32 %175, 1
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [10010 x %"class.std::set"], ptr @S, i64 0, i64 %177
  %179 = invoke { ptr, i8 } @_ZNSt3setI5PointSt4lessIS0_ESaIS0_EE6insertERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %178, ptr noundef nonnull align 4 dereferenceable(8) %17)
          to label %180 unwind label %190

180:                                              ; preds = %167
  %181 = getelementptr inbounds { ptr, i8 }, ptr %19, i32 0, i32 0
  %182 = extractvalue { ptr, i8 } %179, 0
  store ptr %182, ptr %181, align 8
  %183 = getelementptr inbounds { ptr, i8 }, ptr %19, i32 0, i32 1
  %184 = extractvalue { ptr, i8 } %179, 1
  store i8 %184, ptr %183, align 8
  %185 = load i32, ptr %16, align 4, !tbaa !5
  %186 = icmp slt i32 %185, 4
  br i1 %186, label %187, label %194

187:                                              ; preds = %180
  %188 = load i32, ptr %9, align 4, !tbaa !5
  %189 = add nsw i32 %188, 1
  store i32 %189, ptr %9, align 4, !tbaa !5
  br label %194

190:                                              ; preds = %167, %159, %153, %144
  %191 = landingpad { ptr, i32 }
          cleanup
  %192 = extractvalue { ptr, i32 } %191, 0
  store ptr %192, ptr %3, align 8
  %193 = extractvalue { ptr, i32 } %191, 1
  store i32 %193, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %206

194:                                              ; preds = %187, %180
  store i32 13, ptr %6, align 4
  br label %196

195:                                              ; preds = %164, %158
  store i32 0, ptr %6, align 4
  br label %196

196:                                              ; preds = %195, %194
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  %197 = load i32, ptr %6, align 4
  switch i32 %197, label %202 [
    i32 0, label %198
  ]

198:                                              ; preds = %196
  br label %199

199:                                              ; preds = %198
  %200 = load i32, ptr %16, align 4, !tbaa !5
  %201 = add nsw i32 %200, 1
  store i32 %201, ptr %16, align 4, !tbaa !5
  br label %136, !llvm.loop !15

202:                                              ; preds = %196, %139
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %203

203:                                              ; preds = %202
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %204

204:                                              ; preds = %203
  %205 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  br label %118

206:                                              ; preds = %190, %140
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %339

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

208:                                              ; preds = %285, %207
  %209 = load i32, ptr %20, align 4, !tbaa !5
  %210 = load i32, ptr @K, align 4, !tbaa !5
  %211 = icmp slt i32 %209, %210
  br i1 %211, label %213, label %212

212:                                              ; preds = %208
  store i32 16, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %289

213:                                              ; preds = %208
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %214 = invoke ptr @_ZNSt3setIiSt4lessIiESaIiEE4findERKi(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %215 unwind label %266

215:                                              ; preds = %213
  %216 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.15", ptr %21, i32 0, i32 0
  store ptr %214, ptr %216, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %217 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %1) #6
  %218 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.15", ptr %22, i32 0, i32 0
  store ptr %217, ptr %218, align 8
  %219 = call noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br i1 %219, label %220, label %284

220:                                              ; preds = %215
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %221 = load i32, ptr @L, align 4, !tbaa !5
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds [10010 x [450 x %class.Point]], ptr @now, i64 0, i64 %222
  %224 = load i32, ptr %20, align 4, !tbaa !5
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds [450 x %class.Point], ptr %223, i64 0, i64 %225
  store ptr %226, ptr %23, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 5, ptr %24) #6
  %227 = getelementptr inbounds [5 x i8], ptr %24, i64 0, i64 0
  %228 = getelementptr inbounds [5 x i8], ptr %24, i64 0, i64 0
  %229 = getelementptr inbounds i8, ptr %228, i64 5
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #6
  store i8 0, ptr %25, align 1, !tbaa !16
  invoke void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef %227, ptr noundef %229, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %230 unwind label %270

230:                                              ; preds = %220
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #6
  br label %231

231:                                              ; preds = %281, %230
  br label %232

232:                                              ; preds = %231
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  %233 = call i32 @rand() #6
  store i32 %233, ptr %26, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %234 = load ptr, ptr %23, align 8, !tbaa !12
  %235 = load i32, ptr %26, align 4, !tbaa !5
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds [5 x %class.Point], ptr @DX, i64 0, i64 %236
  %238 = invoke i64 @_ZNK5PointplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %234, ptr noundef nonnull align 4 dereferenceable(8) %237)
          to label %239 unwind label %274

239:                                              ; preds = %232
  store i64 %238, ptr %27, align 4
  %240 = load i32, ptr %26, align 4, !tbaa !5
  %241 = icmp eq i32 %240, 4
  br i1 %241, label %248, label %242

242:                                              ; preds = %239
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 4 %27, i64 8, i1 false), !tbaa.struct !14
  %243 = load i32, ptr @L, align 4, !tbaa !5
  %244 = add nsw i32 %243, 1
  %245 = load i64, ptr %28, align 4
  %246 = invoke noundef zeroext i1 @_Z5valid5Pointi(i64 %245, i32 noundef %244)
          to label %247 unwind label %274

247:                                              ; preds = %242
  br i1 %246, label %248, label %278

248:                                              ; preds = %247, %239
  %249 = load i32, ptr @L, align 4, !tbaa !5
  %250 = add nsw i32 %249, 1
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds [10010 x [450 x %class.Point]], ptr @now, i64 0, i64 %251
  %253 = load i32, ptr %20, align 4, !tbaa !5
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds [450 x %class.Point], ptr %252, i64 0, i64 %254
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %255, ptr align 4 %27, i64 8, i1 false), !tbaa.struct !14
  %256 = load i32, ptr @L, align 4, !tbaa !5
  %257 = add nsw i32 %256, 1
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds [10010 x %"class.std::set"], ptr @S, i64 0, i64 %258
  %260 = invoke { ptr, i8 } @_ZNSt3setI5PointSt4lessIS0_ESaIS0_EE6insertERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %259, ptr noundef nonnull align 4 dereferenceable(8) %27)
          to label %261 unwind label %274

261:                                              ; preds = %248
  %262 = getelementptr inbounds { ptr, i8 }, ptr %29, i32 0, i32 0
  %263 = extractvalue { ptr, i8 } %260, 0
  store ptr %263, ptr %262, align 8
  %264 = getelementptr inbounds { ptr, i8 }, ptr %29, i32 0, i32 1
  %265 = extractvalue { ptr, i8 } %260, 1
  store i8 %265, ptr %264, align 8
  store i32 20, ptr %6, align 4
  br label %279

266:                                              ; preds = %213
  %267 = landingpad { ptr, i32 }
          cleanup
  %268 = extractvalue { ptr, i32 } %267, 0
  store ptr %268, ptr %3, align 8
  %269 = extractvalue { ptr, i32 } %267, 1
  store i32 %269, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %288

270:                                              ; preds = %220
  %271 = landingpad { ptr, i32 }
          cleanup
  %272 = extractvalue { ptr, i32 } %271, 0
  store ptr %272, ptr %3, align 8
  %273 = extractvalue { ptr, i32 } %271, 1
  store i32 %273, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #6
  br label %283

274:                                              ; preds = %248, %242, %232
  %275 = landingpad { ptr, i32 }
          cleanup
  %276 = extractvalue { ptr, i32 } %275, 0
  store ptr %276, ptr %3, align 8
  %277 = extractvalue { ptr, i32 } %275, 1
  store i32 %277, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %283

278:                                              ; preds = %247
  store i32 0, ptr %6, align 4
  br label %279

279:                                              ; preds = %278, %261
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  %280 = load i32, ptr %6, align 4
  switch i32 %280, label %541 [
    i32 0, label %281
    i32 20, label %282
  ]

281:                                              ; preds = %279
  br label %231, !llvm.loop !18

282:                                              ; preds = %279
  call void @llvm.lifetime.end.p0(i64 5, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %284

283:                                              ; preds = %274, %270
  call void @llvm.lifetime.end.p0(i64 5, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %288

284:                                              ; preds = %282, %215
  br label %285

285:                                              ; preds = %284
  %286 = load i32, ptr %20, align 4, !tbaa !5
  %287 = add nsw i32 %286, 1
  store i32 %287, ptr %20, align 4, !tbaa !5
  br label %208, !llvm.loop !19

288:                                              ; preds = %283, %266
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %339

289:                                              ; preds = %212
  %290 = load i32, ptr @L, align 4, !tbaa !5
  invoke void @_Z8make_ansi(i32 noundef %290)
          to label %291 unwind label %310

291:                                              ; preds = %289
  invoke void @_Z5scorev()
          to label %292 unwind label %310

292:                                              ; preds = %291
  %293 = load i32, ptr %9, align 4, !tbaa !5
  %294 = sitofp i32 %293 to double
  %295 = load i32, ptr @CARS, align 4, !tbaa !5
  %296 = sitofp i32 %295 to double
  %297 = load double, ptr @MIN_P, align 8, !tbaa !20
  %298 = fmul double %296, %297
  %299 = fcmp olt double %294, %298
  br i1 %299, label %300, label %335

300:                                              ; preds = %292
  call void @llvm.lifetime.start.p0(i64 48, ptr %30) #6
  call void @_ZNSt3setIiSt4lessIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %30) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  store ptr %1, ptr %31, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #6
  %301 = load ptr, ptr %31, align 8, !tbaa !12
  %302 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %301) #6
  %303 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.15", ptr %32, i32 0, i32 0
  store ptr %302, ptr %303, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #6
  %304 = load ptr, ptr %31, align 8, !tbaa !12
  %305 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %304) #6
  %306 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.15", ptr %33, i32 0, i32 0
  store ptr %305, ptr %306, align 8
  br label %307

307:                                              ; preds = %328, %300
  %308 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 8 dereferenceable(8) %33) #6
  br i1 %308, label %314, label %309

309:                                              ; preds = %307
  store i32 21, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  br label %334

310:                                              ; preds = %291, %289
  %311 = landingpad { ptr, i32 }
          cleanup
  %312 = extractvalue { ptr, i32 } %311, 0
  store ptr %312, ptr %3, align 8
  %313 = extractvalue { ptr, i32 } %311, 1
  store i32 %313, ptr %4, align 4
  br label %339

314:                                              ; preds = %307
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #6
  %315 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %32) #6
  %316 = load i32, ptr %315, align 4, !tbaa !5
  store i32 %316, ptr %34, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #6
  %317 = load i32, ptr %34, align 4, !tbaa !5
  %318 = load i32, ptr @CARS, align 4, !tbaa !5
  %319 = add nsw i32 %317, %318
  %320 = load i32, ptr @K, align 4, !tbaa !5
  %321 = srem i32 %319, %320
  store i32 %321, ptr %35, align 4, !tbaa !5
  %322 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertEOi(ptr noundef nonnull align 8 dereferenceable(48) %30, ptr noundef nonnull align 4 dereferenceable(4) %35)
          to label %323 unwind label %330

323:                                              ; preds = %314
  %324 = getelementptr inbounds { ptr, i8 }, ptr %36, i32 0, i32 0
  %325 = extractvalue { ptr, i8 } %322, 0
  store ptr %325, ptr %324, align 8
  %326 = getelementptr inbounds { ptr, i8 }, ptr %36, i32 0, i32 1
  %327 = extractvalue { ptr, i8 } %322, 1
  store i8 %327, ptr %326, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  br label %328

328:                                              ; preds = %323
  %329 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8) %32) #6
  br label %307

330:                                              ; preds = %314
  %331 = landingpad { ptr, i32 }
          cleanup
  %332 = extractvalue { ptr, i32 } %331, 0
  store ptr %332, ptr %3, align 8
  %333 = extractvalue { ptr, i32 } %331, 1
  store i32 %333, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %30) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %30) #6
  br label %339

334:                                              ; preds = %309
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %30) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %30) #6
  br label %335

335:                                              ; preds = %334, %292
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %336

336:                                              ; preds = %335
  %337 = load i32, ptr @L, align 4, !tbaa !5
  %338 = add nsw i32 %337, 1
  store i32 %338, ptr @L, align 4, !tbaa !5
  br label %70, !llvm.loop !22

339:                                              ; preds = %330, %310, %288, %206
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %535

340:                                              ; preds = %70
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #6
  store i32 0, ptr %37, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #6
  store i32 0, ptr %38, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #6
  store i32 0, ptr %39, align 4, !tbaa !5
  br label %341

341:                                              ; preds = %368, %340
  %342 = load i32, ptr %39, align 4, !tbaa !5
  %343 = load i32, ptr @T, align 4, !tbaa !5
  %344 = icmp slt i32 %342, %343
  br i1 %344, label %346, label %345

345:                                              ; preds = %341
  store i32 23, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #6
  br label %371

346:                                              ; preds = %341
  %347 = load i32, ptr %37, align 4, !tbaa !5
  %348 = load i32, ptr %39, align 4, !tbaa !5
  %349 = sext i32 %348 to i64
  %350 = getelementptr inbounds [10010 x i32], ptr @memo, i64 0, i64 %349
  %351 = load i32, ptr %350, align 4, !tbaa !5
  %352 = icmp slt i32 %347, %351
  br i1 %352, label %353, label %367

353:                                              ; preds = %346
  %354 = load i32, ptr %39, align 4, !tbaa !5
  %355 = sext i32 %354 to i64
  %356 = getelementptr inbounds [10010 x i32], ptr @memo, i64 0, i64 %355
  %357 = load i32, ptr %356, align 4, !tbaa !5
  %358 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, i32 noundef %357)
          to label %359 unwind label %363

359:                                              ; preds = %353
  %360 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %358, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %361 unwind label %363

361:                                              ; preds = %359
  %362 = load i32, ptr %39, align 4, !tbaa !5
  store i32 %362, ptr %38, align 4, !tbaa !5
  br label %367

363:                                              ; preds = %359, %353
  %364 = landingpad { ptr, i32 }
          cleanup
  %365 = extractvalue { ptr, i32 } %364, 0
  store ptr %365, ptr %3, align 8
  %366 = extractvalue { ptr, i32 } %364, 1
  store i32 %366, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #6
  br label %534

367:                                              ; preds = %361, %346
  br label %368

368:                                              ; preds = %367
  %369 = load i32, ptr %39, align 4, !tbaa !5
  %370 = add nsw i32 %369, 1
  store i32 %370, ptr %39, align 4, !tbaa !5
  br label %341, !llvm.loop !23

371:                                              ; preds = %345
  %372 = load i32, ptr %38, align 4, !tbaa !5
  store i32 %372, ptr @L, align 4, !tbaa !5
  br label %373

373:                                              ; preds = %525, %371
  %374 = load i32, ptr @L, align 4, !tbaa !5
  %375 = load i32, ptr @T, align 4, !tbaa !5
  %376 = icmp slt i32 %374, %375
  br i1 %376, label %377, label %529

377:                                              ; preds = %373
  %378 = invoke noundef zeroext i1 @_Z7time_okv()
          to label %379 unwind label %381

379:                                              ; preds = %377
  br i1 %378, label %385, label %380

380:                                              ; preds = %379
  store i32 1, ptr %6, align 4
  br label %530

381:                                              ; preds = %377
  %382 = landingpad { ptr, i32 }
          cleanup
  %383 = extractvalue { ptr, i32 } %382, 0
  store ptr %383, ptr %3, align 8
  %384 = extractvalue { ptr, i32 } %382, 1
  store i32 %384, ptr %4, align 4
  br label %534

385:                                              ; preds = %379
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #6
  store i32 0, ptr %40, align 4, !tbaa !5
  br label %386

386:                                              ; preds = %408, %385
  %387 = load i32, ptr %40, align 4, !tbaa !5
  %388 = load i32, ptr @K, align 4, !tbaa !5
  %389 = icmp slt i32 %387, %388
  br i1 %389, label %391, label %390

390:                                              ; preds = %386
  store i32 29, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #6
  br label %415

391:                                              ; preds = %386
  %392 = load i32, ptr @L, align 4, !tbaa !5
  %393 = add nsw i32 %392, 1
  %394 = sext i32 %393 to i64
  %395 = getelementptr inbounds [10010 x %"class.std::set"], ptr @S, i64 0, i64 %394
  %396 = load i32, ptr @L, align 4, !tbaa !5
  %397 = sext i32 %396 to i64
  %398 = getelementptr inbounds [10010 x [450 x %class.Point]], ptr @now, i64 0, i64 %397
  %399 = load i32, ptr %40, align 4, !tbaa !5
  %400 = sext i32 %399 to i64
  %401 = getelementptr inbounds [450 x %class.Point], ptr %398, i64 0, i64 %400
  %402 = invoke { ptr, i8 } @_ZNSt3setI5PointSt4lessIS0_ESaIS0_EE6insertERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %395, ptr noundef nonnull align 4 dereferenceable(8) %401)
          to label %403 unwind label %411

403:                                              ; preds = %391
  %404 = getelementptr inbounds { ptr, i8 }, ptr %41, i32 0, i32 0
  %405 = extractvalue { ptr, i8 } %402, 0
  store ptr %405, ptr %404, align 8
  %406 = getelementptr inbounds { ptr, i8 }, ptr %41, i32 0, i32 1
  %407 = extractvalue { ptr, i8 } %402, 1
  store i8 %407, ptr %406, align 8
  br label %408

408:                                              ; preds = %403
  %409 = load i32, ptr %40, align 4, !tbaa !5
  %410 = add nsw i32 %409, 1
  store i32 %410, ptr %40, align 4, !tbaa !5
  br label %386, !llvm.loop !24

411:                                              ; preds = %391
  %412 = landingpad { ptr, i32 }
          cleanup
  %413 = extractvalue { ptr, i32 } %412, 0
  store ptr %413, ptr %3, align 8
  %414 = extractvalue { ptr, i32 } %412, 1
  store i32 %414, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #6
  br label %534

415:                                              ; preds = %390
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #6
  store i32 0, ptr %42, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #6
  store i32 0, ptr %43, align 4, !tbaa !5
  br label %416

416:                                              ; preds = %502, %415
  %417 = load i32, ptr %43, align 4, !tbaa !5
  %418 = load i32, ptr @K, align 4, !tbaa !5
  %419 = icmp slt i32 %417, %418
  br i1 %419, label %421, label %420

420:                                              ; preds = %416
  store i32 32, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #6
  br label %506

421:                                              ; preds = %416
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #6
  %422 = load i32, ptr @L, align 4, !tbaa !5
  %423 = sext i32 %422 to i64
  %424 = getelementptr inbounds [10010 x [450 x %class.Point]], ptr @now, i64 0, i64 %423
  %425 = load i32, ptr %43, align 4, !tbaa !5
  %426 = sext i32 %425 to i64
  %427 = getelementptr inbounds [450 x %class.Point], ptr %424, i64 0, i64 %426
  store ptr %427, ptr %44, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #6
  %428 = load ptr, ptr %44, align 8, !tbaa !12
  %429 = load i32, ptr %43, align 4, !tbaa !5
  %430 = sext i32 %429 to i64
  %431 = getelementptr inbounds [450 x %class.Point], ptr @Y, i64 0, i64 %430
  %432 = invoke noundef i32 @_ZNK5Point4distERKS_(ptr noundef nonnull align 4 dereferenceable(8) %428, ptr noundef nonnull align 4 dereferenceable(8) %431)
          to label %433 unwind label %438

433:                                              ; preds = %421
  store i32 %432, ptr %45, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #6
  store i32 0, ptr %46, align 4, !tbaa !5
  br label %434

434:                                              ; preds = %497, %433
  %435 = load i32, ptr %46, align 4, !tbaa !5
  %436 = icmp slt i32 %435, 5
  br i1 %436, label %442, label %437

437:                                              ; preds = %434
  store i32 35, ptr %6, align 4
  br label %500

438:                                              ; preds = %421
  %439 = landingpad { ptr, i32 }
          cleanup
  %440 = extractvalue { ptr, i32 } %439, 0
  store ptr %440, ptr %3, align 8
  %441 = extractvalue { ptr, i32 } %439, 1
  store i32 %441, ptr %4, align 4
  br label %505

442:                                              ; preds = %434
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #6
  %443 = load ptr, ptr %44, align 8, !tbaa !12
  %444 = load i32, ptr %46, align 4, !tbaa !5
  %445 = sext i32 %444 to i64
  %446 = getelementptr inbounds [5 x %class.Point], ptr @DX, i64 0, i64 %445
  %447 = invoke i64 @_ZNK5PointplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %443, ptr noundef nonnull align 4 dereferenceable(8) %446)
          to label %448 unwind label %488

448:                                              ; preds = %442
  store i64 %447, ptr %47, align 4
  %449 = load i32, ptr %46, align 4, !tbaa !5
  %450 = icmp eq i32 %449, 4
  br i1 %450, label %465, label %451

451:                                              ; preds = %448
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %48, ptr align 4 %47, i64 8, i1 false), !tbaa.struct !14
  %452 = load i32, ptr @L, align 4, !tbaa !5
  %453 = add nsw i32 %452, 1
  %454 = load i64, ptr %48, align 4
  %455 = invoke noundef zeroext i1 @_Z5valid5Pointi(i64 %454, i32 noundef %453)
          to label %456 unwind label %488

456:                                              ; preds = %451
  br i1 %455, label %457, label %493

457:                                              ; preds = %456
  %458 = load i32, ptr %43, align 4, !tbaa !5
  %459 = sext i32 %458 to i64
  %460 = getelementptr inbounds [450 x %class.Point], ptr @Y, i64 0, i64 %459
  %461 = invoke noundef i32 @_ZNK5Point4distERKS_(ptr noundef nonnull align 4 dereferenceable(8) %47, ptr noundef nonnull align 4 dereferenceable(8) %460)
          to label %462 unwind label %488

462:                                              ; preds = %457
  %463 = load i32, ptr %45, align 4, !tbaa !5
  %464 = icmp slt i32 %461, %463
  br i1 %464, label %465, label %493

465:                                              ; preds = %462, %448
  %466 = load i32, ptr @L, align 4, !tbaa !5
  %467 = add nsw i32 %466, 1
  %468 = sext i32 %467 to i64
  %469 = getelementptr inbounds [10010 x [450 x %class.Point]], ptr @now, i64 0, i64 %468
  %470 = load i32, ptr %43, align 4, !tbaa !5
  %471 = sext i32 %470 to i64
  %472 = getelementptr inbounds [450 x %class.Point], ptr %469, i64 0, i64 %471
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %472, ptr align 4 %47, i64 8, i1 false), !tbaa.struct !14
  %473 = load i32, ptr @L, align 4, !tbaa !5
  %474 = add nsw i32 %473, 1
  %475 = sext i32 %474 to i64
  %476 = getelementptr inbounds [10010 x %"class.std::set"], ptr @S, i64 0, i64 %475
  %477 = invoke { ptr, i8 } @_ZNSt3setI5PointSt4lessIS0_ESaIS0_EE6insertERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %476, ptr noundef nonnull align 4 dereferenceable(8) %47)
          to label %478 unwind label %488

478:                                              ; preds = %465
  %479 = getelementptr inbounds { ptr, i8 }, ptr %49, i32 0, i32 0
  %480 = extractvalue { ptr, i8 } %477, 0
  store ptr %480, ptr %479, align 8
  %481 = getelementptr inbounds { ptr, i8 }, ptr %49, i32 0, i32 1
  %482 = extractvalue { ptr, i8 } %477, 1
  store i8 %482, ptr %481, align 8
  %483 = load i32, ptr %46, align 4, !tbaa !5
  %484 = icmp slt i32 %483, 4
  br i1 %484, label %485, label %492

485:                                              ; preds = %478
  %486 = load i32, ptr %42, align 4, !tbaa !5
  %487 = add nsw i32 %486, 1
  store i32 %487, ptr %42, align 4, !tbaa !5
  br label %492

488:                                              ; preds = %465, %457, %451, %442
  %489 = landingpad { ptr, i32 }
          cleanup
  %490 = extractvalue { ptr, i32 } %489, 0
  store ptr %490, ptr %3, align 8
  %491 = extractvalue { ptr, i32 } %489, 1
  store i32 %491, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #6
  br label %505

492:                                              ; preds = %485, %478
  store i32 35, ptr %6, align 4
  br label %494

493:                                              ; preds = %462, %456
  store i32 0, ptr %6, align 4
  br label %494

494:                                              ; preds = %493, %492
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #6
  %495 = load i32, ptr %6, align 4
  switch i32 %495, label %500 [
    i32 0, label %496
  ]

496:                                              ; preds = %494
  br label %497

497:                                              ; preds = %496
  %498 = load i32, ptr %46, align 4, !tbaa !5
  %499 = add nsw i32 %498, 1
  store i32 %499, ptr %46, align 4, !tbaa !5
  br label %434, !llvm.loop !25

500:                                              ; preds = %494, %437
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #6
  br label %501

501:                                              ; preds = %500
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #6
  br label %502

502:                                              ; preds = %501
  %503 = load i32, ptr %43, align 4, !tbaa !5
  %504 = add nsw i32 %503, 1
  store i32 %504, ptr %43, align 4, !tbaa !5
  br label %416, !llvm.loop !26

505:                                              ; preds = %488, %438
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #6
  br label %528

506:                                              ; preds = %420
  %507 = load i32, ptr @L, align 4, !tbaa !5
  invoke void @_Z8make_ansi(i32 noundef %507)
          to label %508 unwind label %517

508:                                              ; preds = %506
  %509 = load i32, ptr %42, align 4, !tbaa !5
  %510 = sitofp i32 %509 to double
  %511 = load i32, ptr @K, align 4, !tbaa !5
  %512 = sitofp i32 %511 to double
  %513 = load double, ptr @MIN_P, align 8, !tbaa !20
  %514 = fmul double %512, %513
  %515 = fcmp olt double %510, %514
  br i1 %515, label %516, label %521

516:                                              ; preds = %508
  store i32 1, ptr %6, align 4
  br label %522

517:                                              ; preds = %506
  %518 = landingpad { ptr, i32 }
          cleanup
  %519 = extractvalue { ptr, i32 } %518, 0
  store ptr %519, ptr %3, align 8
  %520 = extractvalue { ptr, i32 } %518, 1
  store i32 %520, ptr %4, align 4
  br label %528

521:                                              ; preds = %508
  store i32 0, ptr %6, align 4
  br label %522

522:                                              ; preds = %521, %516
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #6
  %523 = load i32, ptr %6, align 4
  switch i32 %523, label %530 [
    i32 0, label %524
  ]

524:                                              ; preds = %522
  br label %525

525:                                              ; preds = %524
  %526 = load i32, ptr @L, align 4, !tbaa !5
  %527 = add nsw i32 %526, 1
  store i32 %527, ptr @L, align 4, !tbaa !5
  br label %373, !llvm.loop !27

528:                                              ; preds = %517, %505
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #6
  br label %534

529:                                              ; preds = %373
  store i32 0, ptr %6, align 4
  br label %530

530:                                              ; preds = %529, %522, %380
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #6
  br label %531

531:                                              ; preds = %530, %76
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %1) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %1) #6
  %532 = load i32, ptr %6, align 4
  switch i32 %532, label %541 [
    i32 0, label %533
    i32 1, label %533
  ]

533:                                              ; preds = %531, %531
  ret void

534:                                              ; preds = %528, %411, %381, %363
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #6
  br label %535

535:                                              ; preds = %534, %339, %107, %77, %65
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %1) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %1) #6
  br label %536

536:                                              ; preds = %535
  %537 = load ptr, ptr %3, align 8
  %538 = load i32, ptr %4, align 4
  %539 = insertvalue { ptr, i32 } poison, ptr %537, 0
  %540 = insertvalue { ptr, i32 } %539, i32 %538, 1
  resume { ptr, i32 } %540

541:                                              ; preds = %531, %279
  unreachable
}

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setI5PointSt4lessIS0_ESaIS0_EE6insertERKS0_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(8)) #1 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt3setIiSt4lessIiESaIiEE4findERKi(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) #5

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertEOi(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{!"any pointer", !7, i64 0}
!14 = !{i64 0, i64 4, !5, i64 4, i64 4, !5}
!15 = distinct !{!15, !10}
!16 = !{!17, !17, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = !{!21, !21, i64 0}
!21 = !{!"double", !7, i64 0}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !10}
!26 = distinct !{!26, !10}
!27 = distinct !{!27, !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"

%class.Point = type { i32, i32 }
%"class.std::set" = type { %"class.std::_Rb_tree.0" }
%"class.std::_Rb_tree.0" = type { %"struct.std::_Rb_tree<Point, Point, std::_Identity<Point>, std::less<Point>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<Point, Point, std::_Identity<Point>, std::less<Point>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::set.9" = type { %"class.std::_Rb_tree.10" }
%"class.std::_Rb_tree.10" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_const_iterator.15" = type { ptr }

@DX = external dso_local global [5 x %class.Point], align 16
@K = external dso_local local_unnamed_addr global i32, align 4
@T = external dso_local local_unnamed_addr global i32, align 4
@Y = external dso_local global [450 x %class.Point], align 16
@L = external dso_local local_unnamed_addr global i32, align 4
@now = external dso_local global [10010 x [450 x %class.Point]], align 16
@S = external dso_local global [10010 x %"class.std::set"], align 16
@CARS = external dso_local local_unnamed_addr global i32, align 4
@MIN_P = external dso_local local_unnamed_addr global double, align 8
@memo = external dso_local local_unnamed_addr global [10010 x i32], align 16
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z5valid5Pointi(i64, i32 noundef) 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 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 @_Z7time_okv() local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z8make_ansi(i32 noundef) local_unnamed_addr #1

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5scorev() local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::set.9", align 8
  %2 = alloca i32, align 4
  %3 = alloca %"struct.std::_Rb_tree_const_iterator.15", align 8
  %4 = alloca %"struct.std::_Rb_tree_const_iterator.15", align 8
  %5 = alloca %class.Point, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"struct.std::_Rb_tree_const_iterator.15", align 8
  %8 = alloca %"struct.std::_Rb_tree_const_iterator.15", align 8
  %9 = alloca [5 x i8], align 1
  %10 = alloca i8, align 1
  %11 = alloca %class.Point, align 8
  %12 = alloca %"class.std::set.9", align 8
  %13 = alloca %"struct.std::_Rb_tree_const_iterator.15", align 8
  %14 = alloca %"struct.std::_Rb_tree_const_iterator.15", align 8
  %15 = alloca i32, align 4
  %16 = alloca %class.Point, align 8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %1) #5
  call void @_ZNSt3setIiSt4lessIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %1) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store i32 0, ptr %2, align 4, !tbaa !5
  %17 = load i32, ptr @CARS, align 4, !tbaa !5
  %18 = icmp sgt i32 %17, 0
  br i1 %18, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %21, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  store i32 0, ptr @L, align 4, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %9, i64 5
  br label %30

.lr.ph:                                           ; preds = %0, %21
  %20 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %21 unwind label %26

21:                                               ; preds = %.lr.ph
  %22 = load i32, ptr %2, align 4, !tbaa !5
  %23 = add nsw i32 %22, 1
  store i32 %23, ptr %2, align 4, !tbaa !5
  %24 = load i32, ptr @CARS, align 4, !tbaa !5
  %25 = icmp slt i32 %23, %24
  br i1 %25, label %.lr.ph, label %._crit_edge, !llvm.loop !9

26:                                               ; preds = %.lr.ph
  %27 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  br label %304

.preheader132:                                    ; preds = %189
  %28 = load i32, ptr @T, align 4, !tbaa !5
  %29 = icmp sgt i32 %28, 0
  br i1 %29, label %.lr.ph168, label %.preheader130

30:                                               ; preds = %._crit_edge, %189
  %31 = invoke noundef zeroext i1 @_Z7time_okv()
          to label %32 unwind label %35

32:                                               ; preds = %30
  br i1 %31, label %.preheader144, label %.loopexit131

.preheader144:                                    ; preds = %32
  %33 = load i32, ptr @K, align 4, !tbaa !5
  %34 = icmp sgt i32 %33, 0
  br i1 %34, label %.lr.ph153, label %._crit_edge154

35:                                               ; preds = %30
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %304

._crit_edge154:                                   ; preds = %47, %.preheader144
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %37 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %1) #5
  store ptr %37, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %38 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %1) #5
  store ptr %38, ptr %4, align 8
  %39 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  br i1 %39, label %.lr.ph158, label %._crit_edge159

.lr.ph153:                                        ; preds = %.preheader144, %47
  %indvars.iv = phi i64 [ %indvars.iv.next, %47 ], [ 0, %.preheader144 ]
  %40 = load i32, ptr @L, align 4, !tbaa !5
  %41 = add nsw i32 %40, 1
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [10010 x %"class.std::set"], ptr @S, i64 0, i64 %42
  %44 = sext i32 %40 to i64
  %45 = getelementptr inbounds [10010 x [450 x %class.Point]], ptr @now, i64 0, i64 %44, i64 %indvars.iv
  %46 = invoke { ptr, i8 } @_ZNSt3setI5PointSt4lessIS0_ESaIS0_EE6insertERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %43, ptr noundef nonnull align 4 dereferenceable(8) %45)
          to label %47 unwind label %51

47:                                               ; preds = %.lr.ph153
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %48 = load i32, ptr @K, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = icmp slt i64 %indvars.iv.next, %49
  br i1 %50, label %.lr.ph153, label %._crit_edge154, !llvm.loop !11

51:                                               ; preds = %.lr.ph153
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %304

._crit_edge159:                                   ; preds = %.loopexit138, %._crit_edge154
  %.085.lcssa = phi i32 [ 0, %._crit_edge154 ], [ %spec.select, %.loopexit138 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  store i32 0, ptr %6, align 4, !tbaa !5
  %53 = load i32, ptr @K, align 4, !tbaa !5
  %54 = icmp sgt i32 %53, 0
  br i1 %54, label %.lr.ph161, label %._crit_edge162

.lr.ph158:                                        ; preds = %._crit_edge154, %.loopexit138
  %.085156 = phi i32 [ %spec.select, %.loopexit138 ], [ 0, %._crit_edge154 ]
  %55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %57 = load i32, ptr @L, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = sext i32 %56 to i64
  %60 = getelementptr inbounds [10010 x [450 x %class.Point]], ptr @now, i64 0, i64 %58, i64 %59
  %61 = getelementptr inbounds [450 x %class.Point], ptr @Y, i64 0, i64 %59
  %62 = call noundef i32 @_ZNK5Point4distERKS_(ptr noundef nonnull align 4 dereferenceable(8) %60, ptr noundef nonnull align 4 dereferenceable(8) %61)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %63 = invoke i64 @_ZNK5PointplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %60, ptr noundef nonnull align 4 dereferenceable(8) @DX)
          to label %64 unwind label %.loopexit139

64:                                               ; preds = %.lr.ph158
  store i64 %63, ptr %5, align 8
  %65 = load i32, ptr @L, align 4, !tbaa !5
  %66 = add nsw i32 %65, 1
  %67 = invoke noundef zeroext i1 @_Z5valid5Pointi(i64 %63, i32 noundef %66)
          to label %68 unwind label %.loopexit139

68:                                               ; preds = %64
  br i1 %67, label %69, label %81

69:                                               ; preds = %68
  %70 = call noundef i32 @_ZNK5Point4distERKS_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %61)
  %71 = icmp slt i32 %70, %62
  br i1 %71, label %72, label %81

72:                                               ; preds = %113, %108, %98, %88, %69
  %.lcssa183 = phi i32 [ 1, %69 ], [ 1, %88 ], [ 1, %98 ], [ 1, %108 ], [ 0, %113 ]
  %73 = load i32, ptr @L, align 4, !tbaa !5
  %74 = add nsw i32 %73, 1
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [10010 x [450 x %class.Point]], ptr @now, i64 0, i64 %75, i64 %59
  %77 = load i64, ptr %5, align 8
  store i64 %77, ptr %76, align 8
  %78 = getelementptr inbounds [10010 x %"class.std::set"], ptr @S, i64 0, i64 %75
  %79 = invoke { ptr, i8 } @_ZNSt3setI5PointSt4lessIS0_ESaIS0_EE6insertERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %78, ptr noundef nonnull align 4 dereferenceable(8) %5)
          to label %.loopexit138 unwind label %.loopexit.split-lp140

.loopexit139:                                     ; preds = %111, %103, %101, %93, %91, %83, %81, %.lr.ph158, %64
  %lpad.loopexit141 = landingpad { ptr, i32 }
          cleanup
  br label %80

.loopexit.split-lp140:                            ; preds = %72
  %lpad.loopexit.split-lp142 = landingpad { ptr, i32 }
          cleanup
  br label %80

80:                                               ; preds = %.loopexit.split-lp140, %.loopexit139
  %lpad.phi143 = phi { ptr, i32 } [ %lpad.loopexit141, %.loopexit139 ], [ %lpad.loopexit.split-lp142, %.loopexit.split-lp140 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  br label %304

81:                                               ; preds = %68, %69
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %82 = invoke i64 @_ZNK5PointplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %60, ptr noundef nonnull align 4 dereferenceable(8) getelementptr inbounds (i8, ptr @DX, i64 8))
          to label %83 unwind label %.loopexit139

83:                                               ; preds = %81
  store i64 %82, ptr %5, align 8
  %84 = load i32, ptr @L, align 4, !tbaa !5
  %85 = add nsw i32 %84, 1
  %86 = invoke noundef zeroext i1 @_Z5valid5Pointi(i64 %82, i32 noundef %85)
          to label %87 unwind label %.loopexit139

87:                                               ; preds = %83
  br i1 %86, label %88, label %91

88:                                               ; preds = %87
  %89 = call noundef i32 @_ZNK5Point4distERKS_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %61)
  %90 = icmp slt i32 %89, %62
  br i1 %90, label %72, label %91

91:                                               ; preds = %87, %88
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %92 = invoke i64 @_ZNK5PointplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %60, ptr noundef nonnull align 4 dereferenceable(8) getelementptr inbounds (i8, ptr @DX, i64 16))
          to label %93 unwind label %.loopexit139

93:                                               ; preds = %91
  store i64 %92, ptr %5, align 8
  %94 = load i32, ptr @L, align 4, !tbaa !5
  %95 = add nsw i32 %94, 1
  %96 = invoke noundef zeroext i1 @_Z5valid5Pointi(i64 %92, i32 noundef %95)
          to label %97 unwind label %.loopexit139

97:                                               ; preds = %93
  br i1 %96, label %98, label %101

98:                                               ; preds = %97
  %99 = call noundef i32 @_ZNK5Point4distERKS_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %61)
  %100 = icmp slt i32 %99, %62
  br i1 %100, label %72, label %101

101:                                              ; preds = %97, %98
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %102 = invoke i64 @_ZNK5PointplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %60, ptr noundef nonnull align 4 dereferenceable(8) getelementptr inbounds (i8, ptr @DX, i64 24))
          to label %103 unwind label %.loopexit139

103:                                              ; preds = %101
  store i64 %102, ptr %5, align 8
  %104 = load i32, ptr @L, align 4, !tbaa !5
  %105 = add nsw i32 %104, 1
  %106 = invoke noundef zeroext i1 @_Z5valid5Pointi(i64 %102, i32 noundef %105)
          to label %107 unwind label %.loopexit139

107:                                              ; preds = %103
  br i1 %106, label %108, label %111

108:                                              ; preds = %107
  %109 = call noundef i32 @_ZNK5Point4distERKS_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %61)
  %110 = icmp slt i32 %109, %62
  br i1 %110, label %72, label %111

111:                                              ; preds = %107, %108
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %112 = invoke i64 @_ZNK5PointplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %60, ptr noundef nonnull align 4 dereferenceable(8) getelementptr inbounds (i8, ptr @DX, i64 32))
          to label %113 unwind label %.loopexit139

113:                                              ; preds = %111
  store i64 %112, ptr %5, align 8
  br label %72

.loopexit138:                                     ; preds = %72
  %spec.select = add nuw nsw i32 %.085156, %.lcssa183
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  %114 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  %115 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  br i1 %115, label %.lr.ph158, label %._crit_edge159

._crit_edge162:                                   ; preds = %157, %._crit_edge159
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  %116 = load i32, ptr @L, align 4, !tbaa !5
  invoke void @_Z8make_ansi(i32 noundef %116)
          to label %163 unwind label %175

.lr.ph161:                                        ; preds = %._crit_edge159, %157
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %117 = invoke ptr @_ZNSt3setIiSt4lessIiESaIiEE4findERKi(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %118 unwind label %149

118:                                              ; preds = %.lr.ph161
  store ptr %117, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %119 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %1) #5
  store ptr %119, ptr %8, align 8
  %120 = call noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  br i1 %120, label %121, label %157

121:                                              ; preds = %118
  %122 = load i32, ptr @L, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = load i32, ptr %6, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [10010 x [450 x %class.Point]], ptr @now, i64 0, i64 %123, i64 %125
  call void @llvm.lifetime.start.p0(i64 5, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #5
  store i8 0, ptr %10, align 1, !tbaa !12
  invoke void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef nonnull %9, ptr noundef nonnull %19, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %127 unwind label %151

127:                                              ; preds = %121
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #5
  br label %128

128:                                              ; preds = %154, %127
  %129 = call i32 @rand() #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [5 x %class.Point], ptr @DX, i64 0, i64 %130
  %132 = invoke i64 @_ZNK5PointplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %126, ptr noundef nonnull align 4 dereferenceable(8) %131)
          to label %133 unwind label %.loopexit133

133:                                              ; preds = %128
  store i64 %132, ptr %11, align 8
  %134 = icmp eq i32 %129, 4
  br i1 %134, label %split, label %135

135:                                              ; preds = %133
  %136 = load i32, ptr @L, align 4, !tbaa !5
  %137 = add nsw i32 %136, 1
  %138 = invoke noundef zeroext i1 @_Z5valid5Pointi(i64 %132, i32 noundef %137)
          to label %139 unwind label %.loopexit133

139:                                              ; preds = %135
  br i1 %138, label %._crit_edge205, label %154

._crit_edge205:                                   ; preds = %139
  %.pre = load i64, ptr %11, align 8
  br label %split

split:                                            ; preds = %133, %._crit_edge205
  %140 = phi i64 [ %.pre, %._crit_edge205 ], [ %132, %133 ]
  %141 = load i32, ptr @L, align 4, !tbaa !5
  %142 = add nsw i32 %141, 1
  %143 = sext i32 %142 to i64
  %144 = load i32, ptr %6, align 4, !tbaa !5
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [10010 x [450 x %class.Point]], ptr @now, i64 0, i64 %143, i64 %145
  store i64 %140, ptr %146, align 8
  %147 = getelementptr inbounds [10010 x %"class.std::set"], ptr @S, i64 0, i64 %143
  %148 = invoke { ptr, i8 } @_ZNSt3setI5PointSt4lessIS0_ESaIS0_EE6insertERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %147, ptr noundef nonnull align 4 dereferenceable(8) %11)
          to label %155 unwind label %.loopexit.split-lp134

149:                                              ; preds = %.lr.ph161
  %150 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  br label %162

151:                                              ; preds = %121
  %152 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #5
  br label %156

.loopexit133:                                     ; preds = %128, %135
  %lpad.loopexit135 = landingpad { ptr, i32 }
          cleanup
  br label %153

.loopexit.split-lp134:                            ; preds = %split
  %lpad.loopexit.split-lp136 = landingpad { ptr, i32 }
          cleanup
  br label %153

153:                                              ; preds = %.loopexit.split-lp134, %.loopexit133
  %lpad.phi137 = phi { ptr, i32 } [ %lpad.loopexit135, %.loopexit133 ], [ %lpad.loopexit.split-lp136, %.loopexit.split-lp134 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  br label %156

154:                                              ; preds = %139
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  br label %128

155:                                              ; preds = %split
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %9) #5
  br label %157

156:                                              ; preds = %153, %151
  %.pn108 = phi { ptr, i32 } [ %lpad.phi137, %153 ], [ %152, %151 ]
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %9) #5
  br label %162

157:                                              ; preds = %118, %155
  %158 = load i32, ptr %6, align 4, !tbaa !5
  %159 = add nsw i32 %158, 1
  store i32 %159, ptr %6, align 4, !tbaa !5
  %160 = load i32, ptr @K, align 4, !tbaa !5
  %161 = icmp slt i32 %159, %160
  br i1 %161, label %.lr.ph161, label %._crit_edge162, !llvm.loop !14

162:                                              ; preds = %156, %149
  %.pn108.pn = phi { ptr, i32 } [ %.pn108, %156 ], [ %150, %149 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  br label %304

163:                                              ; preds = %._crit_edge162
  invoke void @_Z5scorev()
          to label %164 unwind label %175

164:                                              ; preds = %163
  %165 = sitofp i32 %.085.lcssa to double
  %166 = load i32, ptr @CARS, align 4, !tbaa !5
  %167 = sitofp i32 %166 to double
  %168 = load double, ptr @MIN_P, align 8, !tbaa !15
  %169 = fmul double %168, %167
  %170 = fcmp ogt double %169, %165
  br i1 %170, label %171, label %189

171:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %12) #5
  call void @_ZNSt3setIiSt4lessIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #5
  %172 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %1) #5
  store ptr %172, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #5
  %173 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %1) #5
  store ptr %173, ptr %14, align 8
  %174 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  br i1 %174, label %.lr.ph164, label %._crit_edge165

._crit_edge165:                                   ; preds = %184, %171
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %12) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %12) #5
  br label %189

175:                                              ; preds = %163, %._crit_edge162
  %176 = landingpad { ptr, i32 }
          cleanup
  br label %304

.lr.ph164:                                        ; preds = %171, %184
  %177 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  %178 = load i32, ptr %177, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #5
  %179 = load i32, ptr @CARS, align 4, !tbaa !5
  %180 = add nsw i32 %179, %178
  %181 = load i32, ptr @K, align 4, !tbaa !5
  %182 = srem i32 %180, %181
  store i32 %182, ptr %15, align 4, !tbaa !5
  %183 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertEOi(ptr noundef nonnull align 8 dereferenceable(48) %12, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %184 unwind label %187

184:                                              ; preds = %.lr.ph164
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #5
  %185 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  %186 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  br i1 %186, label %.lr.ph164, label %._crit_edge165

187:                                              ; preds = %.lr.ph164
  %188 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %12) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %12) #5
  br label %304

189:                                              ; preds = %._crit_edge165, %164
  %190 = load i32, ptr @L, align 4, !tbaa !5
  %191 = add nsw i32 %190, 1
  store i32 %191, ptr @L, align 4, !tbaa !5
  %192 = icmp slt i32 %190, 1999
  br i1 %192, label %30, label %.preheader132, !llvm.loop !17

.preheader130:                                    ; preds = %206, %.preheader132
  %193 = phi i32 [ %28, %.preheader132 ], [ %207, %206 ]
  %.097.lcssa = phi i32 [ 0, %.preheader132 ], [ %.198, %206 ]
  store i32 %.097.lcssa, ptr @L, align 4, !tbaa !5
  %194 = icmp slt i32 %.097.lcssa, %193
  br i1 %194, label %.lr.ph178, label %.loopexit131

.lr.ph168:                                        ; preds = %.preheader132, %206
  %195 = phi i32 [ %207, %206 ], [ %28, %.preheader132 ]
  %indvars.iv189 = phi i64 [ %indvars.iv.next190, %206 ], [ 0, %.preheader132 ]
  %.097167 = phi i32 [ %.198, %206 ], [ 0, %.preheader132 ]
  %196 = getelementptr inbounds [10010 x i32], ptr @memo, i64 0, i64 %indvars.iv189
  %197 = load i32, ptr %196, align 4, !tbaa !5
  %198 = icmp sgt i32 %197, 0
  br i1 %198, label %199, label %206

199:                                              ; preds = %.lr.ph168
  %200 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, i32 noundef %197)
          to label %201 unwind label %204

201:                                              ; preds = %199
  %202 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %200, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %._crit_edge206 unwind label %204

._crit_edge206:                                   ; preds = %201
  %203 = trunc nuw nsw i64 %indvars.iv189 to i32
  %.pre207 = load i32, ptr @T, align 4, !tbaa !5
  br label %206

204:                                              ; preds = %201, %199
  %205 = landingpad { ptr, i32 }
          cleanup
  br label %304

206:                                              ; preds = %._crit_edge206, %.lr.ph168
  %207 = phi i32 [ %195, %.lr.ph168 ], [ %.pre207, %._crit_edge206 ]
  %.198 = phi i32 [ %.097167, %.lr.ph168 ], [ %203, %._crit_edge206 ]
  %indvars.iv.next190 = add nuw nsw i64 %indvars.iv189, 1
  %208 = sext i32 %207 to i64
  %209 = icmp slt i64 %indvars.iv.next190, %208
  br i1 %209, label %.lr.ph168, label %.preheader130, !llvm.loop !18

.lr.ph178:                                        ; preds = %.preheader130, %299
  %210 = invoke noundef zeroext i1 @_Z7time_okv()
          to label %211 unwind label %214

211:                                              ; preds = %.lr.ph178
  br i1 %210, label %.preheader129, label %.loopexit131

.preheader129:                                    ; preds = %211
  %212 = load i32, ptr @K, align 4, !tbaa !5
  %213 = icmp sgt i32 %212, 0
  br i1 %213, label %.lr.ph171, label %._crit_edge176

214:                                              ; preds = %.lr.ph178
  %215 = landingpad { ptr, i32 }
          cleanup
  br label %304

.preheader:                                       ; preds = %224
  %216 = icmp sgt i32 %225, 0
  br i1 %216, label %.lr.ph175, label %._crit_edge176

.lr.ph171:                                        ; preds = %.preheader129, %224
  %indvars.iv192 = phi i64 [ %indvars.iv.next193, %224 ], [ 0, %.preheader129 ]
  %217 = load i32, ptr @L, align 4, !tbaa !5
  %218 = add nsw i32 %217, 1
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds [10010 x %"class.std::set"], ptr @S, i64 0, i64 %219
  %221 = sext i32 %217 to i64
  %222 = getelementptr inbounds [10010 x [450 x %class.Point]], ptr @now, i64 0, i64 %221, i64 %indvars.iv192
  %223 = invoke { ptr, i8 } @_ZNSt3setI5PointSt4lessIS0_ESaIS0_EE6insertERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %220, ptr noundef nonnull align 4 dereferenceable(8) %222)
          to label %224 unwind label %228

224:                                              ; preds = %.lr.ph171
  %indvars.iv.next193 = add nuw nsw i64 %indvars.iv192, 1
  %225 = load i32, ptr @K, align 4, !tbaa !5
  %226 = sext i32 %225 to i64
  %227 = icmp slt i64 %indvars.iv.next193, %226
  br i1 %227, label %.lr.ph171, label %.preheader, !llvm.loop !19

228:                                              ; preds = %.lr.ph171
  %229 = landingpad { ptr, i32 }
          cleanup
  br label %304

._crit_edge176:                                   ; preds = %.loopexit, %.preheader129, %.preheader
  %.091.lcssa = phi i32 [ 0, %.preheader ], [ 0, %.preheader129 ], [ %spec.select116, %.loopexit ]
  %230 = load i32, ptr @L, align 4, !tbaa !5
  invoke void @_Z8make_ansi(i32 noundef %230)
          to label %290 unwind label %297

.lr.ph175:                                        ; preds = %.preheader, %.loopexit
  %indvars.iv198 = phi i64 [ %indvars.iv.next199, %.loopexit ], [ 0, %.preheader ]
  %.091173 = phi i32 [ %spec.select116, %.loopexit ], [ 0, %.preheader ]
  %231 = load i32, ptr @L, align 4, !tbaa !5
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds [10010 x [450 x %class.Point]], ptr @now, i64 0, i64 %232, i64 %indvars.iv198
  %234 = getelementptr inbounds [450 x %class.Point], ptr @Y, i64 0, i64 %indvars.iv198
  %235 = call noundef i32 @_ZNK5Point4distERKS_(ptr noundef nonnull align 4 dereferenceable(8) %233, ptr noundef nonnull align 4 dereferenceable(8) %234)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #5
  %236 = invoke i64 @_ZNK5PointplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %233, ptr noundef nonnull align 4 dereferenceable(8) @DX)
          to label %237 unwind label %.loopexit128

237:                                              ; preds = %.lr.ph175
  store i64 %236, ptr %16, align 8
  %238 = load i32, ptr @L, align 4, !tbaa !5
  %239 = add nsw i32 %238, 1
  %240 = invoke noundef zeroext i1 @_Z5valid5Pointi(i64 %236, i32 noundef %239)
          to label %241 unwind label %.loopexit128

241:                                              ; preds = %237
  br i1 %240, label %242, label %254

242:                                              ; preds = %241
  %243 = call noundef i32 @_ZNK5Point4distERKS_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(8) %234)
  %244 = icmp slt i32 %243, %235
  br i1 %244, label %245, label %254

245:                                              ; preds = %286, %281, %271, %261, %242
  %.lcssa = phi i32 [ 1, %242 ], [ 1, %261 ], [ 1, %271 ], [ 1, %281 ], [ 0, %286 ]
  %246 = load i32, ptr @L, align 4, !tbaa !5
  %247 = add nsw i32 %246, 1
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds [10010 x [450 x %class.Point]], ptr @now, i64 0, i64 %248, i64 %indvars.iv198
  %250 = load i64, ptr %16, align 8
  store i64 %250, ptr %249, align 8
  %251 = getelementptr inbounds [10010 x %"class.std::set"], ptr @S, i64 0, i64 %248
  %252 = invoke { ptr, i8 } @_ZNSt3setI5PointSt4lessIS0_ESaIS0_EE6insertERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %251, ptr noundef nonnull align 4 dereferenceable(8) %16)
          to label %.loopexit unwind label %.loopexit.split-lp

.loopexit128:                                     ; preds = %284, %276, %274, %266, %264, %256, %254, %.lr.ph175, %237
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %253

.loopexit.split-lp:                               ; preds = %245
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %253

253:                                              ; preds = %.loopexit.split-lp, %.loopexit128
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit128 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  br label %304

254:                                              ; preds = %241, %242
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #5
  %255 = invoke i64 @_ZNK5PointplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %233, ptr noundef nonnull align 4 dereferenceable(8) getelementptr inbounds (i8, ptr @DX, i64 8))
          to label %256 unwind label %.loopexit128

256:                                              ; preds = %254
  store i64 %255, ptr %16, align 8
  %257 = load i32, ptr @L, align 4, !tbaa !5
  %258 = add nsw i32 %257, 1
  %259 = invoke noundef zeroext i1 @_Z5valid5Pointi(i64 %255, i32 noundef %258)
          to label %260 unwind label %.loopexit128

260:                                              ; preds = %256
  br i1 %259, label %261, label %264

261:                                              ; preds = %260
  %262 = call noundef i32 @_ZNK5Point4distERKS_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(8) %234)
  %263 = icmp slt i32 %262, %235
  br i1 %263, label %245, label %264

264:                                              ; preds = %260, %261
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #5
  %265 = invoke i64 @_ZNK5PointplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %233, ptr noundef nonnull align 4 dereferenceable(8) getelementptr inbounds (i8, ptr @DX, i64 16))
          to label %266 unwind label %.loopexit128

266:                                              ; preds = %264
  store i64 %265, ptr %16, align 8
  %267 = load i32, ptr @L, align 4, !tbaa !5
  %268 = add nsw i32 %267, 1
  %269 = invoke noundef zeroext i1 @_Z5valid5Pointi(i64 %265, i32 noundef %268)
          to label %270 unwind label %.loopexit128

270:                                              ; preds = %266
  br i1 %269, label %271, label %274

271:                                              ; preds = %270
  %272 = call noundef i32 @_ZNK5Point4distERKS_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(8) %234)
  %273 = icmp slt i32 %272, %235
  br i1 %273, label %245, label %274

274:                                              ; preds = %270, %271
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #5
  %275 = invoke i64 @_ZNK5PointplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %233, ptr noundef nonnull align 4 dereferenceable(8) getelementptr inbounds (i8, ptr @DX, i64 24))
          to label %276 unwind label %.loopexit128

276:                                              ; preds = %274
  store i64 %275, ptr %16, align 8
  %277 = load i32, ptr @L, align 4, !tbaa !5
  %278 = add nsw i32 %277, 1
  %279 = invoke noundef zeroext i1 @_Z5valid5Pointi(i64 %275, i32 noundef %278)
          to label %280 unwind label %.loopexit128

280:                                              ; preds = %276
  br i1 %279, label %281, label %284

281:                                              ; preds = %280
  %282 = call noundef i32 @_ZNK5Point4distERKS_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(8) %234)
  %283 = icmp slt i32 %282, %235
  br i1 %283, label %245, label %284

284:                                              ; preds = %280, %281
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #5
  %285 = invoke i64 @_ZNK5PointplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %233, ptr noundef nonnull align 4 dereferenceable(8) getelementptr inbounds (i8, ptr @DX, i64 32))
          to label %286 unwind label %.loopexit128

286:                                              ; preds = %284
  store i64 %285, ptr %16, align 8
  br label %245

.loopexit:                                        ; preds = %245
  %spec.select116 = add nuw nsw i32 %.091173, %.lcssa
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  %indvars.iv.next199 = add nuw nsw i64 %indvars.iv198, 1
  %287 = load i32, ptr @K, align 4, !tbaa !5
  %288 = sext i32 %287 to i64
  %289 = icmp slt i64 %indvars.iv.next199, %288
  br i1 %289, label %.lr.ph175, label %._crit_edge176, !llvm.loop !20

290:                                              ; preds = %._crit_edge176
  %291 = sitofp i32 %.091.lcssa to double
  %292 = load i32, ptr @K, align 4, !tbaa !5
  %293 = sitofp i32 %292 to double
  %294 = load double, ptr @MIN_P, align 8, !tbaa !15
  %295 = fmul double %294, %293
  %296 = fcmp ule double %295, %291
  br i1 %296, label %299, label %.loopexit131

297:                                              ; preds = %._crit_edge176
  %298 = landingpad { ptr, i32 }
          cleanup
  br label %304

299:                                              ; preds = %290
  %300 = load i32, ptr @L, align 4, !tbaa !5
  %301 = add nsw i32 %300, 1
  store i32 %301, ptr @L, align 4, !tbaa !5
  %302 = load i32, ptr @T, align 4, !tbaa !5
  %303 = icmp slt i32 %301, %302
  br i1 %303, label %.lr.ph178, label %.loopexit131, !llvm.loop !21

.loopexit131:                                     ; preds = %32, %299, %211, %290, %.preheader130
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %1) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %1) #5
  ret void

304:                                              ; preds = %204, %214, %228, %297, %253, %80, %162, %175, %187, %51, %35, %26
  %.pn114 = phi { ptr, i32 } [ %27, %26 ], [ %52, %51 ], [ %36, %35 ], [ %lpad.phi143, %80 ], [ %.pn108.pn, %162 ], [ %188, %187 ], [ %176, %175 ], [ %205, %204 ], [ %229, %228 ], [ %215, %214 ], [ %lpad.phi, %253 ], [ %298, %297 ]
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %1) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %1) #5
  resume { ptr, i32 } %.pn114
}

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setI5PointSt4lessIS0_ESaIS0_EE6insertERKS0_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZNK5PointplERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt3setIiSt4lessIiESaIiEE4findERKi(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertEOi(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress 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 = { "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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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 = !{!"bool", !7, i64 0}
!14 = distinct !{!14, !10}
!15 = !{!16, !16, i64 0}
!16 = !{!"double", !7, i64 0}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}


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