; LLVM IR from tangjz/acm-icpc :: lydsy (3663)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.Point = type { double, double }
%"struct.std::pair" = type { i32, i32 }

@n = external dso_local global i32, align 4
@r = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@f = external dso_local global [2001 x i32], align 16
@pL = external dso_local global [2001 x %struct.Point], align 16
@pR = external dso_local global [2001 x %struct.Point], align 16
@que = external dso_local global [4003 x %struct.Point], align 16
@seg = external dso_local global [2001 x %"struct.std::pair"], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca double, align 8
  %7 = alloca %struct.Point, align 8
  %8 = alloca %struct.Point, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %17 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef @r)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %18

18:                                               ; preds = %105, %0
  %19 = load i32, ptr %2, align 4, !tbaa !5
  %20 = load i32, ptr @n, align 4, !tbaa !5
  %21 = icmp slt i32 %19, %20
  br i1 %21, label %23, label %22

22:                                               ; preds = %18
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %108

23:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  %24 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %3, ptr noundef %4)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  %25 = load i32, ptr %3, align 4, !tbaa !5
  %26 = load i32, ptr %3, align 4, !tbaa !5
  %27 = mul nsw i32 %25, %26
  %28 = load i32, ptr %4, align 4, !tbaa !5
  %29 = load i32, ptr %4, align 4, !tbaa !5
  %30 = mul nsw i32 %28, %29
  %31 = add nsw i32 %27, %30
  store i32 %31, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %32 = load i32, ptr %5, align 4, !tbaa !5
  %33 = load i32, ptr @r, align 4, !tbaa !5
  %34 = load i32, ptr @r, align 4, !tbaa !5
  %35 = mul nsw i32 %33, %34
  %36 = sub nsw i32 %32, %35
  %37 = sitofp i32 %36 to x86_fp80
  %38 = call x86_fp80 @sqrtl(x86_fp80 noundef %37) #8
  %39 = fptrunc x86_fp80 %38 to double
  store double %39, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #8
  %40 = getelementptr inbounds %struct.Point, ptr %7, i32 0, i32 0
  %41 = load i32, ptr %3, align 4, !tbaa !5
  %42 = load i32, ptr @r, align 4, !tbaa !5
  %43 = mul nsw i32 %41, %42
  %44 = sitofp i32 %43 to double
  %45 = load i32, ptr %4, align 4, !tbaa !5
  %46 = sitofp i32 %45 to double
  %47 = load double, ptr %6, align 8, !tbaa !9
  %48 = call double @llvm.fmuladd.f64(double %46, double %47, double %44)
  %49 = load i32, ptr %5, align 4, !tbaa !5
  %50 = sitofp i32 %49 to double
  %51 = fdiv double %48, %50
  store double %51, ptr %40, align 8, !tbaa !11
  %52 = getelementptr inbounds %struct.Point, ptr %7, i32 0, i32 1
  %53 = load i32, ptr %4, align 4, !tbaa !5
  %54 = load i32, ptr @r, align 4, !tbaa !5
  %55 = mul nsw i32 %53, %54
  %56 = sitofp i32 %55 to double
  %57 = load i32, ptr %3, align 4, !tbaa !5
  %58 = sitofp i32 %57 to double
  %59 = load double, ptr %6, align 8, !tbaa !9
  %60 = fneg double %58
  %61 = call double @llvm.fmuladd.f64(double %60, double %59, double %56)
  %62 = load i32, ptr %5, align 4, !tbaa !5
  %63 = sitofp i32 %62 to double
  %64 = fdiv double %61, %63
  store double %64, ptr %52, align 8, !tbaa !13
  %65 = load i32, ptr %2, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [2001 x %struct.Point], ptr @pL, i64 0, i64 %66
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %67, ptr align 8 %7, i64 16, i1 false), !tbaa.struct !14
  %68 = load i32, ptr %2, align 4, !tbaa !5
  %69 = shl i32 %68, 1
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [4003 x %struct.Point], ptr @que, i64 0, i64 %70
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %71, ptr align 8 %67, i64 16, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #8
  %72 = getelementptr inbounds %struct.Point, ptr %8, i32 0, i32 0
  %73 = load i32, ptr %3, align 4, !tbaa !5
  %74 = load i32, ptr @r, align 4, !tbaa !5
  %75 = mul nsw i32 %73, %74
  %76 = sitofp i32 %75 to double
  %77 = load i32, ptr %4, align 4, !tbaa !5
  %78 = sitofp i32 %77 to double
  %79 = load double, ptr %6, align 8, !tbaa !9
  %80 = fneg double %78
  %81 = call double @llvm.fmuladd.f64(double %80, double %79, double %76)
  %82 = load i32, ptr %5, align 4, !tbaa !5
  %83 = sitofp i32 %82 to double
  %84 = fdiv double %81, %83
  store double %84, ptr %72, align 8, !tbaa !11
  %85 = getelementptr inbounds %struct.Point, ptr %8, i32 0, i32 1
  %86 = load i32, ptr %4, align 4, !tbaa !5
  %87 = load i32, ptr @r, align 4, !tbaa !5
  %88 = mul nsw i32 %86, %87
  %89 = sitofp i32 %88 to double
  %90 = load i32, ptr %3, align 4, !tbaa !5
  %91 = sitofp i32 %90 to double
  %92 = load double, ptr %6, align 8, !tbaa !9
  %93 = call double @llvm.fmuladd.f64(double %91, double %92, double %89)
  %94 = load i32, ptr %5, align 4, !tbaa !5
  %95 = sitofp i32 %94 to double
  %96 = fdiv double %93, %95
  store double %96, ptr %85, align 8, !tbaa !13
  %97 = load i32, ptr %2, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [2001 x %struct.Point], ptr @pR, i64 0, i64 %98
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %99, ptr align 8 %8, i64 16, i1 false), !tbaa.struct !14
  %100 = load i32, ptr %2, align 4, !tbaa !5
  %101 = shl i32 %100, 1
  %102 = or i32 %101, 1
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [4003 x %struct.Point], ptr @que, i64 0, i64 %103
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %104, ptr align 8 %99, i64 16, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  br label %105

105:                                              ; preds = %23
  %106 = load i32, ptr %2, align 4, !tbaa !5
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %2, align 4, !tbaa !5
  br label %18, !llvm.loop !15

108:                                              ; preds = %22
  %109 = load i32, ptr @n, align 4, !tbaa !5
  %110 = shl i32 %109, 1
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds %struct.Point, ptr @que, i64 %111
  call void @_ZSt4sortIP5PointEvT_S2_(ptr noundef @que, ptr noundef %112)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %113

113:                                              ; preds = %160, %108
  %114 = load i32, ptr %9, align 4, !tbaa !5
  %115 = load i32, ptr @n, align 4, !tbaa !5
  %116 = icmp slt i32 %114, %115
  br i1 %116, label %118, label %117

117:                                              ; preds = %113
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %163

118:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %119 = load i32, ptr @n, align 4, !tbaa !5
  %120 = shl i32 %119, 1
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds %struct.Point, ptr @que, i64 %121
  %123 = load i32, ptr %9, align 4, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [2001 x %struct.Point], ptr @pL, i64 0, i64 %124
  %126 = call noundef ptr @_ZSt11lower_boundIP5PointS0_ET_S2_S2_RKT0_(ptr noundef @que, ptr noundef %122, ptr noundef nonnull align 8 dereferenceable(16) %125)
  %127 = ptrtoint ptr %126 to i64
  %128 = sub i64 %127, ptrtoint (ptr @que to i64)
  %129 = sdiv exact i64 %128, 16
  %130 = trunc i64 %129 to i32
  %131 = load i32, ptr %9, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [2001 x %"struct.std::pair"], ptr @seg, i64 0, i64 %132
  %134 = getelementptr inbounds %"struct.std::pair", ptr %133, i32 0, i32 0
  store i32 %130, ptr %134, align 8, !tbaa !17
  store ptr %134, ptr %10, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %135 = load i32, ptr @n, align 4, !tbaa !5
  %136 = shl i32 %135, 1
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds %struct.Point, ptr @que, i64 %137
  %139 = load i32, ptr %9, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [2001 x %struct.Point], ptr @pR, i64 0, i64 %140
  %142 = call noundef ptr @_ZSt11lower_boundIP5PointS0_ET_S2_S2_RKT0_(ptr noundef @que, ptr noundef %138, ptr noundef nonnull align 8 dereferenceable(16) %141)
  %143 = ptrtoint ptr %142 to i64
  %144 = sub i64 %143, ptrtoint (ptr @que to i64)
  %145 = sdiv exact i64 %144, 16
  %146 = trunc i64 %145 to i32
  %147 = load i32, ptr %9, align 4, !tbaa !5
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [2001 x %"struct.std::pair"], ptr @seg, i64 0, i64 %148
  %150 = getelementptr inbounds %"struct.std::pair", ptr %149, i32 0, i32 1
  store i32 %146, ptr %150, align 4, !tbaa !21
  store ptr %150, ptr %11, align 8, !tbaa !19
  %151 = load ptr, ptr %10, align 8, !tbaa !19
  %152 = load i32, ptr %151, align 4, !tbaa !5
  %153 = load ptr, ptr %11, align 8, !tbaa !19
  %154 = load i32, ptr %153, align 4, !tbaa !5
  %155 = icmp sgt i32 %152, %154
  br i1 %155, label %156, label %159

156:                                              ; preds = %118
  %157 = load ptr, ptr %10, align 8, !tbaa !19
  %158 = load ptr, ptr %11, align 8, !tbaa !19
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %157, ptr noundef nonnull align 4 dereferenceable(4) %158) #8
  br label %159

159:                                              ; preds = %156, %118
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  br label %160

160:                                              ; preds = %159
  %161 = load i32, ptr %9, align 4, !tbaa !5
  %162 = add nsw i32 %161, 1
  store i32 %162, ptr %9, align 4, !tbaa !5
  br label %113, !llvm.loop !22

163:                                              ; preds = %117
  %164 = load i32, ptr @n, align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds %"struct.std::pair", ptr @seg, i64 %165
  call void @_ZSt4sortIPSt4pairIiiEEvT_S3_(ptr noundef @seg, ptr noundef %166)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 0, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %167

167:                                              ; preds = %246, %163
  %168 = load i32, ptr %13, align 4, !tbaa !5
  %169 = load i32, ptr %12, align 4, !tbaa !5
  %170 = add nsw i32 %168, %169
  %171 = load i32, ptr @n, align 4, !tbaa !5
  %172 = icmp slt i32 %170, %171
  br i1 %172, label %174, label %173

173:                                              ; preds = %167
  store i32 8, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %249

174:                                              ; preds = %167
  store i32 0, ptr @m, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  %175 = load i32, ptr %13, align 4, !tbaa !5
  store i32 %175, ptr %15, align 4, !tbaa !5
  br label %176

176:                                              ; preds = %236, %174
  %177 = load i32, ptr %15, align 4, !tbaa !5
  %178 = load i32, ptr @n, align 4, !tbaa !5
  %179 = icmp slt i32 %177, %178
  br i1 %179, label %180, label %192

180:                                              ; preds = %176
  %181 = load i32, ptr %15, align 4, !tbaa !5
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [2001 x %"struct.std::pair"], ptr @seg, i64 0, i64 %182
  %184 = getelementptr inbounds %"struct.std::pair", ptr %183, i32 0, i32 0
  %185 = load i32, ptr %184, align 8, !tbaa !17
  %186 = load i32, ptr %13, align 4, !tbaa !5
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [2001 x %"struct.std::pair"], ptr @seg, i64 0, i64 %187
  %189 = getelementptr inbounds %"struct.std::pair", ptr %188, i32 0, i32 1
  %190 = load i32, ptr %189, align 4, !tbaa !21
  %191 = icmp slt i32 %185, %190
  br label %192

192:                                              ; preds = %180, %176
  %193 = phi i1 [ false, %176 ], [ %191, %180 ]
  br i1 %193, label %195, label %194

194:                                              ; preds = %192
  store i32 11, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %239

195:                                              ; preds = %192
  %196 = load i32, ptr %15, align 4, !tbaa !5
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds [2001 x %"struct.std::pair"], ptr @seg, i64 0, i64 %197
  %199 = getelementptr inbounds %"struct.std::pair", ptr %198, i32 0, i32 1
  %200 = load i32, ptr %199, align 4, !tbaa !21
  %201 = load i32, ptr %13, align 4, !tbaa !5
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [2001 x %"struct.std::pair"], ptr @seg, i64 0, i64 %202
  %204 = getelementptr inbounds %"struct.std::pair", ptr %203, i32 0, i32 1
  %205 = load i32, ptr %204, align 4, !tbaa !21
  %206 = icmp slt i32 %200, %205
  br i1 %206, label %207, label %208

207:                                              ; preds = %195
  br label %236

208:                                              ; preds = %195
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  %209 = load i32, ptr @m, align 4, !tbaa !5
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds i32, ptr @f, i64 %210
  %212 = getelementptr inbounds i32, ptr %211, i64 1
  %213 = load i32, ptr %15, align 4, !tbaa !5
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds [2001 x %"struct.std::pair"], ptr @seg, i64 0, i64 %214
  %216 = getelementptr inbounds %"struct.std::pair", ptr %215, i32 0, i32 1
  %217 = call noundef ptr @_ZSt11lower_boundIPiiET_S1_S1_RKT0_(ptr noundef getelementptr inbounds (i32, ptr @f, i64 1), ptr noundef %212, ptr noundef nonnull align 4 dereferenceable(4) %216)
  %218 = ptrtoint ptr %217 to i64
  %219 = sub i64 %218, ptrtoint (ptr @f to i64)
  %220 = sdiv exact i64 %219, 4
  %221 = trunc i64 %220 to i32
  store i32 %221, ptr %16, align 4, !tbaa !5
  %222 = load i32, ptr %15, align 4, !tbaa !5
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds [2001 x %"struct.std::pair"], ptr @seg, i64 0, i64 %223
  %225 = getelementptr inbounds %"struct.std::pair", ptr %224, i32 0, i32 1
  %226 = load i32, ptr %225, align 4, !tbaa !21
  %227 = load i32, ptr %16, align 4, !tbaa !5
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds [2001 x i32], ptr @f, i64 0, i64 %228
  store i32 %226, ptr %229, align 4, !tbaa !5
  %230 = load i32, ptr @m, align 4, !tbaa !5
  %231 = load i32, ptr %16, align 4, !tbaa !5
  %232 = icmp slt i32 %230, %231
  br i1 %232, label %233, label %235

233:                                              ; preds = %208
  %234 = load i32, ptr %16, align 4, !tbaa !5
  store i32 %234, ptr @m, align 4, !tbaa !5
  br label %235

235:                                              ; preds = %233, %208
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %236

236:                                              ; preds = %235, %207
  %237 = load i32, ptr %15, align 4, !tbaa !5
  %238 = add nsw i32 %237, 1
  store i32 %238, ptr %15, align 4, !tbaa !5
  br label %176, !llvm.loop !23

239:                                              ; preds = %194
  %240 = load i32, ptr %12, align 4, !tbaa !5
  %241 = load i32, ptr @m, align 4, !tbaa !5
  %242 = icmp slt i32 %240, %241
  br i1 %242, label %243, label %245

243:                                              ; preds = %239
  %244 = load i32, ptr @m, align 4, !tbaa !5
  store i32 %244, ptr %12, align 4, !tbaa !5
  br label %245

245:                                              ; preds = %243, %239
  br label %246

246:                                              ; preds = %245
  %247 = load i32, ptr %13, align 4, !tbaa !5
  %248 = add nsw i32 %247, 1
  store i32 %248, ptr %13, align 4, !tbaa !5
  br label %167, !llvm.loop !24

249:                                              ; preds = %173
  %250 = load i32, ptr %12, align 4, !tbaa !5
  %251 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %250)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  %252 = load i32, ptr %1, align 4
  ret i32 %252
}

declare i32 @__isoc99_scanf(ptr 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: nounwind
declare x86_fp80 @sqrtl(x86_fp80 noundef) #3

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt11lower_boundIP5PointS0_ET_S2_S2_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(16)) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #7

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt11lower_boundIPiiET_S1_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) #6

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

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

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

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


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

%struct.Point = type { double, double }
%"struct.std::pair" = type { i32, i32 }

@n = external dso_local global i32, align 4
@r = external dso_local global i32, align 4
@m = external dso_local local_unnamed_addr global i32, align 4
@f = external dso_local global [2001 x i32], align 16
@pL = external dso_local global [2001 x %struct.Point], align 16
@pR = external dso_local global [2001 x %struct.Point], align 16
@que = external dso_local global [4003 x %struct.Point], align 16
@seg = external dso_local global [2001 x %"struct.std::pair"], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @r)
  %4 = load i32, ptr @n, align 4, !tbaa !5
  %5 = icmp sgt i32 %4, 0
  br i1 %5, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %0
  %.lcssa54 = phi i32 [ %4, %0 ], [ %57, %.lr.ph ]
  %6 = shl i32 %.lcssa54, 1
  %7 = sext i32 %6 to i64
  %8 = getelementptr inbounds %struct.Point, ptr @que, i64 %7
  call void @_ZSt4sortIP5PointEvT_S2_(ptr noundef nonnull @que, ptr noundef nonnull %8)
  %9 = load i32, ptr @n, align 4, !tbaa !5
  %10 = icmp sgt i32 %9, 0
  br i1 %10, label %.lr.ph58, label %._crit_edge.._crit_edge59_crit_edge

._crit_edge.._crit_edge59_crit_edge:              ; preds = %._crit_edge
  %.pre = sext i32 %9 to i64
  br label %._crit_edge59

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  %11 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %12 = load i32, ptr %1, align 4, !tbaa !5
  %13 = mul nsw i32 %12, %12
  %14 = load i32, ptr %2, align 4, !tbaa !5
  %15 = mul nsw i32 %14, %14
  %16 = add nuw nsw i32 %15, %13
  %17 = load i32, ptr @r, align 4, !tbaa !5
  %18 = mul nsw i32 %17, %17
  %19 = sub nsw i32 %16, %18
  %20 = sitofp i32 %19 to x86_fp80
  %21 = call x86_fp80 @sqrtl(x86_fp80 noundef %20) #8
  %22 = fptrunc x86_fp80 %21 to double
  %23 = load i32, ptr %1, align 4, !tbaa !5
  %24 = load i32, ptr @r, align 4, !tbaa !5
  %25 = load i32, ptr %2, align 4, !tbaa !5
  %26 = sitofp i32 %25 to double
  %27 = uitofp nneg i32 %16 to double
  %28 = sitofp i32 %23 to double
  %29 = fneg double %28
  %30 = getelementptr inbounds [2001 x %struct.Point], ptr @pL, i64 0, i64 %indvars.iv
  %31 = insertelement <2 x i32> poison, i32 %23, i64 0
  %32 = insertelement <2 x i32> %31, i32 %25, i64 1
  %33 = insertelement <2 x i32> poison, i32 %24, i64 0
  %34 = shufflevector <2 x i32> %33, <2 x i32> poison, <2 x i32> zeroinitializer
  %35 = mul nsw <2 x i32> %32, %34
  %36 = sitofp <2 x i32> %35 to <2 x double>
  %37 = insertelement <2 x double> poison, double %26, i64 0
  %38 = insertelement <2 x double> %37, double %29, i64 1
  %39 = insertelement <2 x double> poison, double %22, i64 0
  %40 = shufflevector <2 x double> %39, <2 x double> poison, <2 x i32> zeroinitializer
  %41 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %38, <2 x double> %40, <2 x double> %36)
  %42 = insertelement <2 x double> poison, double %27, i64 0
  %43 = shufflevector <2 x double> %42, <2 x double> poison, <2 x i32> zeroinitializer
  %44 = fdiv <2 x double> %41, %43
  store <2 x double> %44, ptr %30, align 16, !tbaa !9
  %sext83 = shl i64 %indvars.iv, 33
  %45 = ashr exact i64 %sext83, 32
  %46 = getelementptr inbounds [4003 x %struct.Point], ptr @que, i64 0, i64 %45
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %46, ptr noundef nonnull align 16 dereferenceable(16) %30, i64 16, i1 false), !tbaa.struct !11
  %47 = fneg double %26
  %48 = getelementptr inbounds [2001 x %struct.Point], ptr @pR, i64 0, i64 %indvars.iv
  %49 = insertelement <2 x double> poison, double %47, i64 0
  %50 = insertelement <2 x double> %49, double %28, i64 1
  %51 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %50, <2 x double> %40, <2 x double> %36)
  %52 = fdiv <2 x double> %51, %43
  store <2 x double> %52, ptr %48, align 16, !tbaa !9
  %indvars.iv.tr = trunc i64 %indvars.iv to i32
  %53 = shl i32 %indvars.iv.tr, 1
  %54 = or disjoint i32 %53, 1
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [4003 x %struct.Point], ptr @que, i64 0, i64 %55
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %56, ptr noundef nonnull align 16 dereferenceable(16) %48, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %57 = load i32, ptr @n, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = icmp slt i64 %indvars.iv.next, %58
  br i1 %59, label %.lr.ph, label %._crit_edge, !llvm.loop !12

._crit_edge59:                                    ; preds = %88, %._crit_edge.._crit_edge59_crit_edge
  %.pre-phi = phi i64 [ %.pre, %._crit_edge.._crit_edge59_crit_edge ], [ %90, %88 ]
  %60 = getelementptr inbounds %"struct.std::pair", ptr @seg, i64 %.pre-phi
  call void @_ZSt4sortIPSt4pairIiiEEvT_S3_(ptr noundef nonnull @seg, ptr noundef nonnull %60)
  %61 = load i32, ptr @n, align 4, !tbaa !5
  %62 = icmp sgt i32 %61, 0
  br i1 %62, label %.lr.ph68, label %._crit_edge69

.lr.ph58:                                         ; preds = %._crit_edge, %88
  %indvars.iv74 = phi i64 [ %indvars.iv.next75, %88 ], [ 0, %._crit_edge ]
  %63 = phi i32 [ %89, %88 ], [ %9, %._crit_edge ]
  %64 = shl i32 %63, 1
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds %struct.Point, ptr @que, i64 %65
  %67 = getelementptr inbounds [2001 x %struct.Point], ptr @pL, i64 0, i64 %indvars.iv74
  %68 = call noundef ptr @_ZSt11lower_boundIP5PointS0_ET_S2_S2_RKT0_(ptr noundef nonnull @que, ptr noundef nonnull %66, ptr noundef nonnull align 8 dereferenceable(16) %67)
  %69 = ptrtoint ptr %68 to i64
  %70 = sub i64 %69, ptrtoint (ptr @que to i64)
  %71 = lshr exact i64 %70, 4
  %72 = trunc i64 %71 to i32
  %73 = getelementptr inbounds [2001 x %"struct.std::pair"], ptr @seg, i64 0, i64 %indvars.iv74
  store i32 %72, ptr %73, align 8, !tbaa !14
  %74 = load i32, ptr @n, align 4, !tbaa !5
  %75 = shl i32 %74, 1
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds %struct.Point, ptr @que, i64 %76
  %78 = getelementptr inbounds [2001 x %struct.Point], ptr @pR, i64 0, i64 %indvars.iv74
  %79 = call noundef ptr @_ZSt11lower_boundIP5PointS0_ET_S2_S2_RKT0_(ptr noundef nonnull @que, ptr noundef nonnull %77, ptr noundef nonnull align 8 dereferenceable(16) %78)
  %80 = ptrtoint ptr %79 to i64
  %81 = sub i64 %80, ptrtoint (ptr @que to i64)
  %82 = lshr exact i64 %81, 4
  %83 = trunc i64 %82 to i32
  %84 = getelementptr inbounds i8, ptr %73, i64 4
  store i32 %83, ptr %84, align 4, !tbaa !16
  %85 = load i32, ptr %73, align 8, !tbaa !5
  %86 = icmp sgt i32 %85, %83
  br i1 %86, label %87, label %88

87:                                               ; preds = %.lr.ph58
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %73, ptr noundef nonnull align 4 dereferenceable(4) %84) #8
  br label %88

88:                                               ; preds = %87, %.lr.ph58
  %indvars.iv.next75 = add nuw nsw i64 %indvars.iv74, 1
  %89 = load i32, ptr @n, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = icmp slt i64 %indvars.iv.next75, %90
  br i1 %91, label %.lr.ph58, label %._crit_edge59, !llvm.loop !17

._crit_edge69:                                    ; preds = %.critedge, %._crit_edge59
  %.045.lcssa = phi i32 [ 0, %._crit_edge59 ], [ %spec.select, %.critedge ]
  %92 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %.045.lcssa)
  ret i32 0

.lr.ph68:                                         ; preds = %._crit_edge59, %.critedge
  %93 = phi i32 [ %106, %.critedge ], [ %61, %._crit_edge59 ]
  %indvars.iv77 = phi i64 [ %indvars.iv.next78, %.critedge ], [ 0, %._crit_edge59 ]
  %.04565 = phi i32 [ %spec.select, %.critedge ], [ 0, %._crit_edge59 ]
  store i32 0, ptr @m, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = icmp slt i64 %indvars.iv77, %94
  br i1 %95, label %.lr.ph63, label %.critedge

.lr.ph63:                                         ; preds = %.lr.ph68
  %96 = getelementptr inbounds [2001 x %"struct.std::pair"], ptr @seg, i64 0, i64 %indvars.iv77, i32 1
  %97 = getelementptr inbounds [2001 x %"struct.std::pair"], ptr @seg, i64 0, i64 %indvars.iv77
  %98 = load i32, ptr %97, align 8, !tbaa !14
  %99 = load i32, ptr %96, align 4, !tbaa !16
  %100 = icmp slt i32 %98, %99
  br i1 %100, label %.lr.ph89, label %.critedge

101:                                              ; preds = %129
  %102 = getelementptr inbounds [2001 x %"struct.std::pair"], ptr @seg, i64 0, i64 %indvars.iv.next80
  %103 = load i32, ptr %102, align 8, !tbaa !14
  %104 = load i32, ptr %96, align 4, !tbaa !16
  %105 = icmp slt i32 %103, %104
  br i1 %105, label %.lr.ph89, label %.critedge, !llvm.loop !18

.critedge:                                        ; preds = %129, %101, %.lr.ph63, %.lr.ph68
  %106 = phi i32 [ %93, %.lr.ph68 ], [ %93, %.lr.ph63 ], [ %131, %101 ], [ %131, %129 ]
  %107 = phi i32 [ 0, %.lr.ph68 ], [ 0, %.lr.ph63 ], [ %130, %101 ], [ %130, %129 ]
  %spec.select = call i32 @llvm.smax.i32(i32 %.04565, i32 %107)
  %indvars.iv.next78 = add nuw nsw i64 %indvars.iv77, 1
  %108 = trunc nuw i64 %indvars.iv.next78 to i32
  %109 = add nsw i32 %spec.select, %108
  %110 = icmp slt i32 %109, %106
  br i1 %110, label %.lr.ph68, label %._crit_edge69, !llvm.loop !19

.lr.ph89:                                         ; preds = %.lr.ph63, %101
  %111 = phi i32 [ %104, %101 ], [ %99, %.lr.ph63 ]
  %indvars.iv7988 = phi i64 [ %indvars.iv.next80, %101 ], [ %indvars.iv77, %.lr.ph63 ]
  %112 = phi i32 [ %130, %101 ], [ 0, %.lr.ph63 ]
  %113 = getelementptr inbounds [2001 x %"struct.std::pair"], ptr @seg, i64 0, i64 %indvars.iv7988, i32 1
  %114 = load i32, ptr %113, align 4, !tbaa !16
  %115 = icmp slt i32 %114, %111
  br i1 %115, label %129, label %116

116:                                              ; preds = %.lr.ph89
  %117 = sext i32 %112 to i64
  %gep = getelementptr i32, ptr getelementptr inbounds (i8, ptr @f, i64 4), i64 %117
  %118 = call noundef ptr @_ZSt11lower_boundIPiiET_S1_S1_RKT0_(ptr noundef nonnull getelementptr inbounds (i8, ptr @f, i64 4), ptr noundef nonnull %gep, ptr noundef nonnull align 4 dereferenceable(4) %113)
  %119 = ptrtoint ptr %118 to i64
  %120 = sub i64 %119, ptrtoint (ptr @f to i64)
  %121 = lshr exact i64 %120, 2
  %122 = trunc i64 %121 to i32
  %123 = load i32, ptr %113, align 4, !tbaa !16
  %sext = shl i64 %120, 30
  %124 = ashr i64 %sext, 32
  %125 = getelementptr inbounds [2001 x i32], ptr @f, i64 0, i64 %124
  store i32 %123, ptr %125, align 4, !tbaa !5
  %126 = load i32, ptr @m, align 4, !tbaa !5
  %127 = icmp slt i32 %126, %122
  br i1 %127, label %128, label %129

128:                                              ; preds = %116
  store i32 %122, ptr @m, align 4, !tbaa !5
  br label %129

129:                                              ; preds = %116, %128, %.lr.ph89
  %130 = phi i32 [ %126, %116 ], [ %122, %128 ], [ %112, %.lr.ph89 ]
  %indvars.iv.next80 = add nuw nsw i64 %indvars.iv7988, 1
  %131 = load i32, ptr @n, align 4, !tbaa !5
  %132 = trunc nuw i64 %indvars.iv.next80 to i32
  %133 = icmp sgt i32 %131, %132
  br i1 %133, label %101, label %.critedge, !llvm.loop !18
}

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) 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 nofree nounwind willreturn memory(write)
declare x86_fp80 @sqrtl(x86_fp80 noundef) local_unnamed_addr #3

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt11lower_boundIP5PointS0_ET_S2_S2_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #7

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

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

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


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass