; LLVM IR from VastoLorde95/Competitive-Programming :: CodeChef/SHORT/COOK68/Problem D (gvaibhav)

; 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.std::vector.1" = type { %"struct.std::_Vector_base.2" }
%"struct.std::_Vector_base.2" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { i64, i64 }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::pair<long long, long long>, std::pair<long long, long long>, std::_Identity<std::pair<long long, long long>>, std::less<std::pair<long long, long long>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<long long, long long>, std::pair<long long, long long>, std::_Identity<std::pair<long long, long long>>, std::less<std::pair<long long, long long>>>::_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 }
%"struct.std::pair.11" = type <{ x86_fp80, i32, [12 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<PT, std::allocator<PT>>::_Vector_impl" }
%"struct.std::_Vector_base<PT, std::allocator<PT>>::_Vector_impl" = type { %"struct.std::_Vector_base<PT, std::allocator<PT>>::_Vector_impl_data" }
%"struct.std::_Vector_base<PT, std::allocator<PT>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.PT = type { x86_fp80, x86_fp80 }
%"struct.std::pair.13" = type <{ %"struct.std::_Rb_tree_const_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_const_iterator" = type { ptr }

@pointer = external dso_local global [2 x i32], align 4
@M = external dso_local global [2 x %"class.std::vector.1"], align 16
@B = external dso_local global [2 x %"class.std::vector.1"], align 16
@x = external dso_local global [100010 x i64], align 16
@y = external dso_local global [100010 x i64], align 16
@X = external dso_local global [100010 x i64], align 16
@Y = external dso_local global [100010 x i64], align 16
@arr = external dso_local global [100010 x %"struct.std::pair"], align 16
@a = external dso_local global [100010 x i64], align 16
@b = external dso_local global [100010 x i64], align 16
@c = external dso_local global [100010 x i64], align 16
@sett = external dso_local global %"class.std::set", align 8
@query = external dso_local global [100010 x %"struct.std::pair.11"], align 16
@ans = external dso_local global [100010 x x86_fp80], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare x86_fp80 @llvm.fmuladd.f80(x86_fp80, x86_fp80, x86_fp80) #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef x86_fp80 @_Z5Queryeb(x86_fp80 noundef, i1 noundef zeroext) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef x86_fp80 @_Z11ComputeAreaRKSt6vectorI2PTSaIS0_EE(ptr noundef nonnull align 8 dereferenceable(24)) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef x86_fp80 @_Z4distxxxx(i64 noundef, i64 noundef, i64 noundef, i64 noundef) #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #4 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"struct.std::pair", align 8
  %9 = alloca %struct.PT, align 16
  %10 = alloca i32, align 4
  %11 = alloca x86_fp80, align 16
  %12 = alloca i32, align 4
  %13 = alloca %"struct.std::pair", align 8
  %14 = alloca %"struct.std::pair.13", align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %18 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %19 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %20 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %21 = alloca x86_fp80, align 16
  %22 = alloca x86_fp80, align 16
  %23 = alloca x86_fp80, align 16
  %24 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  %25 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2)
  br label %26

26:                                               ; preds = %661, %659, %0
  %27 = load i32, ptr %2, align 4, !tbaa !5
  %28 = add nsw i32 %27, -1
  store i32 %28, ptr %2, align 4, !tbaa !5
  %29 = icmp ne i32 %27, 0
  br i1 %29, label %30, label %671

30:                                               ; preds = %26
  call void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @M) #8
  call void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds ([2 x %"class.std::vector.1"], ptr @M, i64 0, i64 1)) #8
  call void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @B) #8
  call void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds ([2 x %"class.std::vector.1"], ptr @B, i64 0, i64 1)) #8
  store i32 0, ptr getelementptr inbounds ([2 x i32], ptr @pointer, i64 0, i64 1), align 4, !tbaa !5
  store i32 0, ptr @pointer, align 4, !tbaa !5
  %31 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %3)
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #8
  call void @_ZNSt6vectorI2PTSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  call void @_ZNSt6vectorI2PTSaIS0_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %32

32:                                               ; preds = %75, %30
  %33 = load i32, ptr %4, align 4, !tbaa !5
  %34 = load i32, ptr %3, align 4, !tbaa !5
  %35 = icmp slt i32 %33, %34
  br i1 %35, label %36, label %90

36:                                               ; preds = %32
  %37 = load i32, ptr %4, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [100010 x i64], ptr @X, i64 0, i64 %38
  %40 = invoke i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.5, ptr noundef %39)
          to label %41 unwind label %78

41:                                               ; preds = %36
  %42 = load i32, ptr %4, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [100010 x i64], ptr @Y, i64 0, i64 %43
  %45 = invoke i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.5, ptr noundef %44)
          to label %46 unwind label %78

46:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #8
  %47 = load i32, ptr %4, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [100010 x i64], ptr @X, i64 0, i64 %48
  %50 = load i32, ptr %4, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [100010 x i64], ptr @Y, i64 0, i64 %51
  %53 = invoke { i64, i64 } @_ZSt9make_pairIRxS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %49, ptr noundef nonnull align 8 dereferenceable(8) %52)
          to label %54 unwind label %82

54:                                               ; preds = %46
  %55 = getelementptr inbounds { i64, i64 }, ptr %8, i32 0, i32 0
  %56 = extractvalue { i64, i64 } %53, 0
  store i64 %56, ptr %55, align 8
  %57 = getelementptr inbounds { i64, i64 }, ptr %8, i32 0, i32 1
  %58 = extractvalue { i64, i64 } %53, 1
  store i64 %58, ptr %57, align 8
  %59 = load i32, ptr %4, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [100010 x %"struct.std::pair"], ptr @arr, i64 0, i64 %60
  %62 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %61, ptr noundef nonnull align 8 dereferenceable(16) %8) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #8
  %63 = load i32, ptr %4, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [100010 x i64], ptr @X, i64 0, i64 %64
  %66 = load i64, ptr %65, align 8, !tbaa !9
  %67 = sitofp i64 %66 to x86_fp80
  %68 = load i32, ptr %4, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [100010 x i64], ptr @Y, i64 0, i64 %69
  %71 = load i64, ptr %70, align 8, !tbaa !9
  %72 = sitofp i64 %71 to x86_fp80
  invoke void @_ZN2PTC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %9, x86_fp80 noundef %67, x86_fp80 noundef %72)
          to label %73 unwind label %86

73:                                               ; preds = %54
  invoke void @_ZNSt6vectorI2PTSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 16 dereferenceable(32) %9)
          to label %74 unwind label %86

74:                                               ; preds = %73
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #8
  br label %75

75:                                               ; preds = %74
  %76 = load i32, ptr %4, align 4, !tbaa !5
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %4, align 4, !tbaa !5
  br label %32, !llvm.loop !11

78:                                               ; preds = %96, %90, %41, %36
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %6, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %7, align 4
  br label %670

82:                                               ; preds = %46
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %6, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #8
  br label %670

86:                                               ; preds = %73, %54
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %6, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #8
  br label %670

90:                                               ; preds = %32
  invoke void @_Z10ConvexHullRSt6vectorI2PTSaIS0_EE(ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %91 unwind label %78

91:                                               ; preds = %90
  %92 = call noundef i64 @_ZNKSt6vectorI2PTSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  %93 = load i32, ptr %3, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = icmp eq i64 %92, %94
  br i1 %95, label %96, label %99

96:                                               ; preds = %91
  %97 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef -1)
          to label %98 unwind label %78

98:                                               ; preds = %96
  store i32 2, ptr %10, align 4
  br label %659, !llvm.loop !13

99:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #8
  %100 = invoke noundef x86_fp80 @_Z11ComputeAreaRKSt6vectorI2PTSaIS0_EE(ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %101 unwind label %126

101:                                              ; preds = %99
  store x86_fp80 %100, ptr %11, align 16, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  %102 = call noundef i64 @_ZNKSt6vectorI2PTSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  %103 = trunc i64 %102 to i32
  store i32 %103, ptr %12, align 4, !tbaa !5
  call void @_ZNSt3setISt4pairIxxESt4lessIS1_ESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(48) @sett) #8
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %104

104:                                              ; preds = %189, %101
  %105 = load i32, ptr %4, align 4, !tbaa !5
  %106 = load i32, ptr %12, align 4, !tbaa !5
  %107 = icmp slt i32 %105, %106
  br i1 %107, label %108, label %196

108:                                              ; preds = %104
  %109 = load i32, ptr %4, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %110) #8
  %112 = getelementptr inbounds %struct.PT, ptr %111, i32 0, i32 0
  %113 = load x86_fp80, ptr %112, align 16, !tbaa !16
  %114 = fcmp olt x86_fp80 %113, 0xK00000000000000000000
  br i1 %114, label %115, label %130

115:                                              ; preds = %108
  %116 = load i32, ptr %4, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %117) #8
  %119 = getelementptr inbounds %struct.PT, ptr %118, i32 0, i32 0
  %120 = load x86_fp80, ptr %119, align 16, !tbaa !16
  %121 = fsub x86_fp80 %120, 0xK3FFE8000000000000000
  %122 = fptosi x86_fp80 %121 to i64
  %123 = load i32, ptr %4, align 4, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [100010 x i64], ptr @x, i64 0, i64 %124
  store i64 %122, ptr %125, align 8, !tbaa !9
  br label %141

126:                                              ; preds = %99
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %6, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %7, align 4
  br label %669

130:                                              ; preds = %108
  %131 = load i32, ptr %4, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %132) #8
  %134 = getelementptr inbounds %struct.PT, ptr %133, i32 0, i32 0
  %135 = load x86_fp80, ptr %134, align 16, !tbaa !16
  %136 = fadd x86_fp80 %135, 0xK3FFE8000000000000000
  %137 = fptosi x86_fp80 %136 to i64
  %138 = load i32, ptr %4, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [100010 x i64], ptr @x, i64 0, i64 %139
  store i64 %137, ptr %140, align 8, !tbaa !9
  br label %141

141:                                              ; preds = %130, %115
  %142 = load i32, ptr %4, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %143) #8
  %145 = getelementptr inbounds %struct.PT, ptr %144, i32 0, i32 1
  %146 = load x86_fp80, ptr %145, align 16, !tbaa !18
  %147 = fcmp olt x86_fp80 %146, 0xK00000000000000000000
  br i1 %147, label %148, label %159

148:                                              ; preds = %141
  %149 = load i32, ptr %4, align 4, !tbaa !5
  %150 = sext i32 %149 to i64
  %151 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %150) #8
  %152 = getelementptr inbounds %struct.PT, ptr %151, i32 0, i32 1
  %153 = load x86_fp80, ptr %152, align 16, !tbaa !18
  %154 = fsub x86_fp80 %153, 0xK3FFE8000000000000000
  %155 = fptosi x86_fp80 %154 to i64
  %156 = load i32, ptr %4, align 4, !tbaa !5
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [100010 x i64], ptr @y, i64 0, i64 %157
  store i64 %155, ptr %158, align 8, !tbaa !9
  br label %170

159:                                              ; preds = %141
  %160 = load i32, ptr %4, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %161) #8
  %163 = getelementptr inbounds %struct.PT, ptr %162, i32 0, i32 1
  %164 = load x86_fp80, ptr %163, align 16, !tbaa !18
  %165 = fadd x86_fp80 %164, 0xK3FFE8000000000000000
  %166 = fptosi x86_fp80 %165 to i64
  %167 = load i32, ptr %4, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [100010 x i64], ptr @y, i64 0, i64 %168
  store i64 %166, ptr %169, align 8, !tbaa !9
  br label %170

170:                                              ; preds = %159, %148
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #8
  %171 = load i32, ptr %4, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [100010 x i64], ptr @x, i64 0, i64 %172
  %174 = load i32, ptr %4, align 4, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [100010 x i64], ptr @y, i64 0, i64 %175
  %177 = invoke { i64, i64 } @_ZSt9make_pairIRxS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %173, ptr noundef nonnull align 8 dereferenceable(8) %176)
          to label %178 unwind label %192

178:                                              ; preds = %170
  %179 = getelementptr inbounds { i64, i64 }, ptr %13, i32 0, i32 0
  %180 = extractvalue { i64, i64 } %177, 0
  store i64 %180, ptr %179, align 8
  %181 = getelementptr inbounds { i64, i64 }, ptr %13, i32 0, i32 1
  %182 = extractvalue { i64, i64 } %177, 1
  store i64 %182, ptr %181, align 8
  %183 = invoke { ptr, i8 } @_ZNSt3setISt4pairIxxESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @sett, ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %184 unwind label %192

184:                                              ; preds = %178
  %185 = getelementptr inbounds { ptr, i8 }, ptr %14, i32 0, i32 0
  %186 = extractvalue { ptr, i8 } %183, 0
  store ptr %186, ptr %185, align 8
  %187 = getelementptr inbounds { ptr, i8 }, ptr %14, i32 0, i32 1
  %188 = extractvalue { ptr, i8 } %183, 1
  store i8 %188, ptr %187, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #8
  br label %189

189:                                              ; preds = %184
  %190 = load i32, ptr %4, align 4, !tbaa !5
  %191 = add nsw i32 %190, 1
  store i32 %191, ptr %4, align 4, !tbaa !5
  br label %104, !llvm.loop !19

192:                                              ; preds = %178, %170
  %193 = landingpad { ptr, i32 }
          cleanup
  %194 = extractvalue { ptr, i32 } %193, 0
  store ptr %194, ptr %6, align 8
  %195 = extractvalue { ptr, i32 } %193, 1
  store i32 %195, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #8
  br label %668

196:                                              ; preds = %104
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %197

197:                                              ; preds = %317, %196
  %198 = load i32, ptr %4, align 4, !tbaa !5
  %199 = load i32, ptr %12, align 4, !tbaa !5
  %200 = icmp slt i32 %198, %199
  br i1 %200, label %201, label %320

201:                                              ; preds = %197
  %202 = load i32, ptr %4, align 4, !tbaa !5
  %203 = add nsw i32 %202, 1
  %204 = load i32, ptr %12, align 4, !tbaa !5
  %205 = srem i32 %203, %204
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds [100010 x i64], ptr @y, i64 0, i64 %206
  %208 = load i64, ptr %207, align 8, !tbaa !9
  %209 = load i32, ptr %4, align 4, !tbaa !5
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds [100010 x i64], ptr @y, i64 0, i64 %210
  %212 = load i64, ptr %211, align 8, !tbaa !9
  %213 = sub nsw i64 %208, %212
  %214 = load i32, ptr %4, align 4, !tbaa !5
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds [100010 x i64], ptr @a, i64 0, i64 %215
  store i64 %213, ptr %216, align 8, !tbaa !9
  %217 = load i32, ptr %4, align 4, !tbaa !5
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds [100010 x i64], ptr @x, i64 0, i64 %218
  %220 = load i64, ptr %219, align 8, !tbaa !9
  %221 = load i32, ptr %4, align 4, !tbaa !5
  %222 = add nsw i32 %221, 1
  %223 = load i32, ptr %12, align 4, !tbaa !5
  %224 = srem i32 %222, %223
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds [100010 x i64], ptr @x, i64 0, i64 %225
  %227 = load i64, ptr %226, align 8, !tbaa !9
  %228 = sub nsw i64 %220, %227
  %229 = load i32, ptr %4, align 4, !tbaa !5
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds [100010 x i64], ptr @b, i64 0, i64 %230
  store i64 %228, ptr %231, align 8, !tbaa !9
  %232 = load i32, ptr %4, align 4, !tbaa !5
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds [100010 x i64], ptr @y, i64 0, i64 %233
  %235 = load i64, ptr %234, align 8, !tbaa !9
  %236 = load i32, ptr %4, align 4, !tbaa !5
  %237 = add nsw i32 %236, 1
  %238 = load i32, ptr %12, align 4, !tbaa !5
  %239 = srem i32 %237, %238
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds [100010 x i64], ptr @x, i64 0, i64 %240
  %242 = load i64, ptr %241, align 8, !tbaa !9
  %243 = mul nsw i64 %235, %242
  %244 = load i32, ptr %4, align 4, !tbaa !5
  %245 = add nsw i32 %244, 1
  %246 = load i32, ptr %12, align 4, !tbaa !5
  %247 = srem i32 %245, %246
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds [100010 x i64], ptr @y, i64 0, i64 %248
  %250 = load i64, ptr %249, align 8, !tbaa !9
  %251 = load i32, ptr %4, align 4, !tbaa !5
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds [100010 x i64], ptr @x, i64 0, i64 %252
  %254 = load i64, ptr %253, align 8, !tbaa !9
  %255 = mul nsw i64 %250, %254
  %256 = sub nsw i64 %243, %255
  %257 = load i32, ptr %4, align 4, !tbaa !5
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds [100010 x i64], ptr @c, i64 0, i64 %258
  store i64 %256, ptr %259, align 8, !tbaa !9
  %260 = load i32, ptr %4, align 4, !tbaa !5
  %261 = sext i32 %260 to i64
  %262 = getelementptr inbounds [100010 x i64], ptr @a, i64 0, i64 %261
  %263 = load i64, ptr %262, align 8, !tbaa !9
  %264 = load i32, ptr %4, align 4, !tbaa !5
  %265 = add nsw i32 %264, 2
  %266 = load i32, ptr %12, align 4, !tbaa !5
  %267 = srem i32 %265, %266
  %268 = sext i32 %267 to i64
  %269 = getelementptr inbounds [100010 x i64], ptr @x, i64 0, i64 %268
  %270 = load i64, ptr %269, align 8, !tbaa !9
  %271 = mul nsw i64 %263, %270
  %272 = load i32, ptr %4, align 4, !tbaa !5
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds [100010 x i64], ptr @b, i64 0, i64 %273
  %275 = load i64, ptr %274, align 8, !tbaa !9
  %276 = load i32, ptr %4, align 4, !tbaa !5
  %277 = add nsw i32 %276, 2
  %278 = load i32, ptr %12, align 4, !tbaa !5
  %279 = srem i32 %277, %278
  %280 = sext i32 %279 to i64
  %281 = getelementptr inbounds [100010 x i64], ptr @y, i64 0, i64 %280
  %282 = load i64, ptr %281, align 8, !tbaa !9
  %283 = mul nsw i64 %275, %282
  %284 = add nsw i64 %271, %283
  %285 = load i32, ptr %4, align 4, !tbaa !5
  %286 = sext i32 %285 to i64
  %287 = getelementptr inbounds [100010 x i64], ptr @c, i64 0, i64 %286
  %288 = load i64, ptr %287, align 8, !tbaa !9
  %289 = add nsw i64 %284, %288
  %290 = icmp slt i64 %289, 0
  br i1 %290, label %291, label %316

291:                                              ; preds = %201
  %292 = load i32, ptr %4, align 4, !tbaa !5
  %293 = sext i32 %292 to i64
  %294 = getelementptr inbounds [100010 x i64], ptr @a, i64 0, i64 %293
  %295 = load i64, ptr %294, align 8, !tbaa !9
  %296 = sub nsw i64 0, %295
  %297 = load i32, ptr %4, align 4, !tbaa !5
  %298 = sext i32 %297 to i64
  %299 = getelementptr inbounds [100010 x i64], ptr @a, i64 0, i64 %298
  store i64 %296, ptr %299, align 8, !tbaa !9
  %300 = load i32, ptr %4, align 4, !tbaa !5
  %301 = sext i32 %300 to i64
  %302 = getelementptr inbounds [100010 x i64], ptr @b, i64 0, i64 %301
  %303 = load i64, ptr %302, align 8, !tbaa !9
  %304 = sub nsw i64 0, %303
  %305 = load i32, ptr %4, align 4, !tbaa !5
  %306 = sext i32 %305 to i64
  %307 = getelementptr inbounds [100010 x i64], ptr @b, i64 0, i64 %306
  store i64 %304, ptr %307, align 8, !tbaa !9
  %308 = load i32, ptr %4, align 4, !tbaa !5
  %309 = sext i32 %308 to i64
  %310 = getelementptr inbounds [100010 x i64], ptr @c, i64 0, i64 %309
  %311 = load i64, ptr %310, align 8, !tbaa !9
  %312 = sub nsw i64 0, %311
  %313 = load i32, ptr %4, align 4, !tbaa !5
  %314 = sext i32 %313 to i64
  %315 = getelementptr inbounds [100010 x i64], ptr @c, i64 0, i64 %314
  store i64 %312, ptr %315, align 8, !tbaa !9
  br label %316

316:                                              ; preds = %291, %201
  br label %317

317:                                              ; preds = %316
  %318 = load i32, ptr %4, align 4, !tbaa !5
  %319 = add nsw i32 %318, 1
  store i32 %319, ptr %4, align 4, !tbaa !5
  br label %197, !llvm.loop !20

320:                                              ; preds = %197
  %321 = load i32, ptr %3, align 4, !tbaa !5
  %322 = sext i32 %321 to i64
  %323 = getelementptr inbounds %"struct.std::pair", ptr @arr, i64 %322
  invoke void @_ZSt4sortIPSt4pairIxxEEvT_S3_(ptr noundef @arr, ptr noundef %323)
          to label %324 unwind label %369

324:                                              ; preds = %320
  %325 = load i32, ptr %3, align 4, !tbaa !5
  %326 = sext i32 %325 to i64
  %327 = getelementptr inbounds %"struct.std::pair", ptr @arr, i64 %326
  invoke void @_ZSt7reverseIPSt4pairIxxEEvT_S3_(ptr noundef @arr, ptr noundef %327)
          to label %328 unwind label %369

328:                                              ; preds = %324
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  store i64 5000000000000000000, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  store i64 -5000000000000000000, ptr %16, align 8, !tbaa !9
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %329

329:                                              ; preds = %382, %328
  %330 = load i32, ptr %4, align 4, !tbaa !5
  %331 = load i32, ptr %3, align 4, !tbaa !5
  %332 = icmp slt i32 %330, %331
  br i1 %332, label %333, label %385

333:                                              ; preds = %329
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %334 = load i32, ptr %4, align 4, !tbaa !5
  %335 = sext i32 %334 to i64
  %336 = getelementptr inbounds [100010 x %"struct.std::pair"], ptr @arr, i64 0, i64 %335
  %337 = invoke ptr @_ZNSt3setISt4pairIxxESt4lessIS1_ESaIS1_EE4findERKS1_(ptr noundef nonnull align 8 dereferenceable(48) @sett, ptr noundef nonnull align 8 dereferenceable(16) %336)
          to label %338 unwind label %373

338:                                              ; preds = %333
  %339 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %17, i32 0, i32 0
  store ptr %337, ptr %339, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %340 = call ptr @_ZNKSt3setISt4pairIxxESt4lessIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @sett) #8
  %341 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %18, i32 0, i32 0
  store ptr %340, ptr %341, align 8
  %342 = call noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorISt4pairIxxEES4_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br i1 %342, label %343, label %381

343:                                              ; preds = %338
  %344 = load i32, ptr %4, align 4, !tbaa !5
  %345 = sext i32 %344 to i64
  %346 = getelementptr inbounds [100010 x %"struct.std::pair"], ptr @arr, i64 0, i64 %345
  %347 = getelementptr inbounds %"struct.std::pair", ptr %346, i32 0, i32 0
  %348 = load i64, ptr %347, align 16, !tbaa !21
  %349 = load i32, ptr %4, align 4, !tbaa !5
  %350 = sext i32 %349 to i64
  %351 = getelementptr inbounds [100010 x %"struct.std::pair"], ptr @arr, i64 0, i64 %350
  %352 = getelementptr inbounds %"struct.std::pair", ptr %351, i32 0, i32 1
  %353 = load i64, ptr %352, align 8, !tbaa !23
  invoke void @_Z3addxxb(i64 noundef %348, i64 noundef %353, i1 noundef zeroext false)
          to label %354 unwind label %377

354:                                              ; preds = %343
  %355 = load i32, ptr %4, align 4, !tbaa !5
  %356 = sext i32 %355 to i64
  %357 = getelementptr inbounds [100010 x %"struct.std::pair"], ptr @arr, i64 0, i64 %356
  %358 = getelementptr inbounds %"struct.std::pair", ptr %357, i32 0, i32 0
  %359 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %358)
          to label %360 unwind label %377

360:                                              ; preds = %354
  %361 = load i64, ptr %359, align 8, !tbaa !9
  store i64 %361, ptr %15, align 8, !tbaa !9
  %362 = load i32, ptr %4, align 4, !tbaa !5
  %363 = sext i32 %362 to i64
  %364 = getelementptr inbounds [100010 x %"struct.std::pair"], ptr @arr, i64 0, i64 %363
  %365 = getelementptr inbounds %"struct.std::pair", ptr %364, i32 0, i32 0
  %366 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %365)
          to label %367 unwind label %377

367:                                              ; preds = %360
  %368 = load i64, ptr %366, align 8, !tbaa !9
  store i64 %368, ptr %16, align 8, !tbaa !9
  br label %381

369:                                              ; preds = %324, %320
  %370 = landingpad { ptr, i32 }
          cleanup
  %371 = extractvalue { ptr, i32 } %370, 0
  store ptr %371, ptr %6, align 8
  %372 = extractvalue { ptr, i32 } %370, 1
  store i32 %372, ptr %7, align 4
  br label %668

373:                                              ; preds = %333
  %374 = landingpad { ptr, i32 }
          cleanup
  %375 = extractvalue { ptr, i32 } %374, 0
  store ptr %375, ptr %6, align 8
  %376 = extractvalue { ptr, i32 } %374, 1
  store i32 %376, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %667

377:                                              ; preds = %502, %401, %360, %354, %343
  %378 = landingpad { ptr, i32 }
          cleanup
  %379 = extractvalue { ptr, i32 } %378, 0
  store ptr %379, ptr %6, align 8
  %380 = extractvalue { ptr, i32 } %378, 1
  store i32 %380, ptr %7, align 4
  br label %667

381:                                              ; preds = %367, %338
  br label %382

382:                                              ; preds = %381
  %383 = load i32, ptr %4, align 4, !tbaa !5
  %384 = add nsw i32 %383, 1
  store i32 %384, ptr %4, align 4, !tbaa !5
  br label %329, !llvm.loop !24

385:                                              ; preds = %329
  %386 = load i32, ptr %3, align 4, !tbaa !5
  %387 = sub nsw i32 %386, 1
  store i32 %387, ptr %4, align 4, !tbaa !5
  br label %388

388:                                              ; preds = %420, %385
  %389 = load i32, ptr %4, align 4, !tbaa !5
  %390 = icmp sge i32 %389, 0
  br i1 %390, label %391, label %423

391:                                              ; preds = %388
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %392 = load i32, ptr %4, align 4, !tbaa !5
  %393 = sext i32 %392 to i64
  %394 = getelementptr inbounds [100010 x %"struct.std::pair"], ptr @arr, i64 0, i64 %393
  %395 = invoke ptr @_ZNSt3setISt4pairIxxESt4lessIS1_ESaIS1_EE4findERKS1_(ptr noundef nonnull align 8 dereferenceable(48) @sett, ptr noundef nonnull align 8 dereferenceable(16) %394)
          to label %396 unwind label %415

396:                                              ; preds = %391
  %397 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %19, i32 0, i32 0
  store ptr %395, ptr %397, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %398 = call ptr @_ZNKSt3setISt4pairIxxESt4lessIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @sett) #8
  %399 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %20, i32 0, i32 0
  store ptr %398, ptr %399, align 8
  %400 = call noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorISt4pairIxxEES4_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br i1 %400, label %401, label %419

401:                                              ; preds = %396
  %402 = load i32, ptr %4, align 4, !tbaa !5
  %403 = sext i32 %402 to i64
  %404 = getelementptr inbounds [100010 x %"struct.std::pair"], ptr @arr, i64 0, i64 %403
  %405 = getelementptr inbounds %"struct.std::pair", ptr %404, i32 0, i32 0
  %406 = load i64, ptr %405, align 16, !tbaa !21
  %407 = sub nsw i64 0, %406
  %408 = load i32, ptr %4, align 4, !tbaa !5
  %409 = sext i32 %408 to i64
  %410 = getelementptr inbounds [100010 x %"struct.std::pair"], ptr @arr, i64 0, i64 %409
  %411 = getelementptr inbounds %"struct.std::pair", ptr %410, i32 0, i32 1
  %412 = load i64, ptr %411, align 8, !tbaa !23
  %413 = sub nsw i64 0, %412
  invoke void @_Z3addxxb(i64 noundef %407, i64 noundef %413, i1 noundef zeroext true)
          to label %414 unwind label %377

414:                                              ; preds = %401
  br label %419

415:                                              ; preds = %391
  %416 = landingpad { ptr, i32 }
          cleanup
  %417 = extractvalue { ptr, i32 } %416, 0
  store ptr %417, ptr %6, align 8
  %418 = extractvalue { ptr, i32 } %416, 1
  store i32 %418, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %667

419:                                              ; preds = %414, %396
  br label %420

420:                                              ; preds = %419
  %421 = load i32, ptr %4, align 4, !tbaa !5
  %422 = add nsw i32 %421, -1
  store i32 %422, ptr %4, align 4, !tbaa !5
  br label %388, !llvm.loop !25

423:                                              ; preds = %388
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %424

424:                                              ; preds = %499, %423
  %425 = load i32, ptr %4, align 4, !tbaa !5
  %426 = load i32, ptr %12, align 4, !tbaa !5
  %427 = icmp slt i32 %425, %426
  br i1 %427, label %428, label %502

428:                                              ; preds = %424
  %429 = load i32, ptr %4, align 4, !tbaa !5
  %430 = load i32, ptr %4, align 4, !tbaa !5
  %431 = sext i32 %430 to i64
  %432 = getelementptr inbounds [100010 x %"struct.std::pair.11"], ptr @query, i64 0, i64 %431
  %433 = getelementptr inbounds %"struct.std::pair.11", ptr %432, i32 0, i32 1
  store i32 %429, ptr %433, align 16, !tbaa !26
  %434 = load i32, ptr %4, align 4, !tbaa !5
  %435 = sext i32 %434 to i64
  %436 = getelementptr inbounds [100010 x i64], ptr @b, i64 0, i64 %435
  %437 = load i64, ptr %436, align 8, !tbaa !9
  %438 = icmp eq i64 %437, 0
  br i1 %438, label %439, label %482

439:                                              ; preds = %428
  %440 = load i32, ptr %4, align 4, !tbaa !5
  %441 = sext i32 %440 to i64
  %442 = getelementptr inbounds [100010 x %"struct.std::pair.11"], ptr @query, i64 0, i64 %441
  %443 = getelementptr inbounds %"struct.std::pair.11", ptr %442, i32 0, i32 0
  store x86_fp80 0xK403D8AC7230489E80000, ptr %443, align 16, !tbaa !28
  %444 = load i32, ptr %4, align 4, !tbaa !5
  %445 = sext i32 %444 to i64
  %446 = getelementptr inbounds [100010 x i64], ptr @a, i64 0, i64 %445
  %447 = load i64, ptr %446, align 8, !tbaa !9
  %448 = icmp slt i64 %447, 0
  br i1 %448, label %449, label %465

449:                                              ; preds = %439
  %450 = load i32, ptr %4, align 4, !tbaa !5
  %451 = sext i32 %450 to i64
  %452 = getelementptr inbounds [100010 x i64], ptr @a, i64 0, i64 %451
  %453 = load i64, ptr %452, align 8, !tbaa !9
  %454 = load i64, ptr %16, align 8, !tbaa !9
  %455 = mul nsw i64 %453, %454
  %456 = load i32, ptr %4, align 4, !tbaa !5
  %457 = sext i32 %456 to i64
  %458 = getelementptr inbounds [100010 x i64], ptr @c, i64 0, i64 %457
  %459 = load i64, ptr %458, align 8, !tbaa !9
  %460 = add nsw i64 %455, %459
  %461 = sitofp i64 %460 to x86_fp80
  %462 = load i32, ptr %4, align 4, !tbaa !5
  %463 = sext i32 %462 to i64
  %464 = getelementptr inbounds [100010 x x86_fp80], ptr @ans, i64 0, i64 %463
  store x86_fp80 %461, ptr %464, align 16, !tbaa !14
  br label %481

465:                                              ; preds = %439
  %466 = load i32, ptr %4, align 4, !tbaa !5
  %467 = sext i32 %466 to i64
  %468 = getelementptr inbounds [100010 x i64], ptr @a, i64 0, i64 %467
  %469 = load i64, ptr %468, align 8, !tbaa !9
  %470 = load i64, ptr %15, align 8, !tbaa !9
  %471 = mul nsw i64 %469, %470
  %472 = load i32, ptr %4, align 4, !tbaa !5
  %473 = sext i32 %472 to i64
  %474 = getelementptr inbounds [100010 x i64], ptr @c, i64 0, i64 %473
  %475 = load i64, ptr %474, align 8, !tbaa !9
  %476 = add nsw i64 %471, %475
  %477 = sitofp i64 %476 to x86_fp80
  %478 = load i32, ptr %4, align 4, !tbaa !5
  %479 = sext i32 %478 to i64
  %480 = getelementptr inbounds [100010 x x86_fp80], ptr @ans, i64 0, i64 %479
  store x86_fp80 %477, ptr %480, align 16, !tbaa !14
  br label %481

481:                                              ; preds = %465, %449
  br label %498

482:                                              ; preds = %428
  %483 = load i32, ptr %4, align 4, !tbaa !5
  %484 = sext i32 %483 to i64
  %485 = getelementptr inbounds [100010 x i64], ptr @a, i64 0, i64 %484
  %486 = load i64, ptr %485, align 8, !tbaa !9
  %487 = sitofp i64 %486 to x86_fp80
  %488 = load i32, ptr %4, align 4, !tbaa !5
  %489 = sext i32 %488 to i64
  %490 = getelementptr inbounds [100010 x i64], ptr @b, i64 0, i64 %489
  %491 = load i64, ptr %490, align 8, !tbaa !9
  %492 = sitofp i64 %491 to x86_fp80
  %493 = fdiv x86_fp80 %487, %492
  %494 = load i32, ptr %4, align 4, !tbaa !5
  %495 = sext i32 %494 to i64
  %496 = getelementptr inbounds [100010 x %"struct.std::pair.11"], ptr @query, i64 0, i64 %495
  %497 = getelementptr inbounds %"struct.std::pair.11", ptr %496, i32 0, i32 0
  store x86_fp80 %493, ptr %497, align 16, !tbaa !28
  br label %498

498:                                              ; preds = %482, %481
  br label %499

499:                                              ; preds = %498
  %500 = load i32, ptr %4, align 4, !tbaa !5
  %501 = add nsw i32 %500, 1
  store i32 %501, ptr %4, align 4, !tbaa !5
  br label %424, !llvm.loop !29

502:                                              ; preds = %424
  %503 = load i32, ptr %12, align 4, !tbaa !5
  %504 = sext i32 %503 to i64
  %505 = getelementptr inbounds %"struct.std::pair.11", ptr @query, i64 %504
  invoke void @_ZSt4sortIPSt4pairIeiEEvT_S3_(ptr noundef @query, ptr noundef %505)
          to label %506 unwind label %377

506:                                              ; preds = %502
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %507

507:                                              ; preds = %574, %506
  %508 = load i32, ptr %4, align 4, !tbaa !5
  %509 = load i32, ptr %12, align 4, !tbaa !5
  %510 = icmp slt i32 %508, %509
  br i1 %510, label %511, label %577

511:                                              ; preds = %507
  %512 = load i32, ptr %4, align 4, !tbaa !5
  %513 = sext i32 %512 to i64
  %514 = getelementptr inbounds [100010 x %"struct.std::pair.11"], ptr @query, i64 0, i64 %513
  %515 = getelementptr inbounds %"struct.std::pair.11", ptr %514, i32 0, i32 0
  %516 = load x86_fp80, ptr %515, align 16, !tbaa !28
  %517 = fadd x86_fp80 %516, 0xK3FFF8000000000000000
  %518 = fcmp oge x86_fp80 %517, 0xK403D8AC7230489E80000
  br i1 %518, label %519, label %520

519:                                              ; preds = %511
  br label %574

520:                                              ; preds = %511
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #8
  %521 = load i32, ptr %4, align 4, !tbaa !5
  %522 = sext i32 %521 to i64
  %523 = getelementptr inbounds [100010 x %"struct.std::pair.11"], ptr @query, i64 0, i64 %522
  %524 = getelementptr inbounds %"struct.std::pair.11", ptr %523, i32 0, i32 1
  %525 = load i32, ptr %524, align 16, !tbaa !26
  %526 = sext i32 %525 to i64
  %527 = getelementptr inbounds [100010 x i64], ptr @b, i64 0, i64 %526
  %528 = load i64, ptr %527, align 8, !tbaa !9
  %529 = icmp sgt i64 %528, 0
  br i1 %529, label %530, label %537

530:                                              ; preds = %520
  %531 = load i32, ptr %4, align 4, !tbaa !5
  %532 = sext i32 %531 to i64
  %533 = getelementptr inbounds [100010 x %"struct.std::pair.11"], ptr @query, i64 0, i64 %532
  %534 = getelementptr inbounds %"struct.std::pair.11", ptr %533, i32 0, i32 0
  %535 = load x86_fp80, ptr %534, align 16, !tbaa !28
  %536 = call noundef x86_fp80 @_Z5Queryeb(x86_fp80 noundef %535, i1 noundef zeroext false)
  store x86_fp80 %536, ptr %21, align 16, !tbaa !14
  br label %545

537:                                              ; preds = %520
  %538 = load i32, ptr %4, align 4, !tbaa !5
  %539 = sext i32 %538 to i64
  %540 = getelementptr inbounds [100010 x %"struct.std::pair.11"], ptr @query, i64 0, i64 %539
  %541 = getelementptr inbounds %"struct.std::pair.11", ptr %540, i32 0, i32 0
  %542 = load x86_fp80, ptr %541, align 16, !tbaa !28
  %543 = call noundef x86_fp80 @_Z5Queryeb(x86_fp80 noundef %542, i1 noundef zeroext true)
  %544 = fneg x86_fp80 %543
  store x86_fp80 %544, ptr %21, align 16, !tbaa !14
  br label %545

545:                                              ; preds = %537, %530
  %546 = load x86_fp80, ptr %21, align 16, !tbaa !14
  %547 = load i32, ptr %4, align 4, !tbaa !5
  %548 = sext i32 %547 to i64
  %549 = getelementptr inbounds [100010 x %"struct.std::pair.11"], ptr @query, i64 0, i64 %548
  %550 = getelementptr inbounds %"struct.std::pair.11", ptr %549, i32 0, i32 1
  %551 = load i32, ptr %550, align 16, !tbaa !26
  %552 = sext i32 %551 to i64
  %553 = getelementptr inbounds [100010 x i64], ptr @b, i64 0, i64 %552
  %554 = load i64, ptr %553, align 8, !tbaa !9
  %555 = sitofp i64 %554 to x86_fp80
  %556 = load i32, ptr %4, align 4, !tbaa !5
  %557 = sext i32 %556 to i64
  %558 = getelementptr inbounds [100010 x %"struct.std::pair.11"], ptr @query, i64 0, i64 %557
  %559 = getelementptr inbounds %"struct.std::pair.11", ptr %558, i32 0, i32 1
  %560 = load i32, ptr %559, align 16, !tbaa !26
  %561 = sext i32 %560 to i64
  %562 = getelementptr inbounds [100010 x i64], ptr @c, i64 0, i64 %561
  %563 = load i64, ptr %562, align 8, !tbaa !9
  %564 = sitofp i64 %563 to x86_fp80
  %565 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %546, x86_fp80 %555, x86_fp80 %564)
  store x86_fp80 %565, ptr %21, align 16, !tbaa !14
  %566 = load x86_fp80, ptr %21, align 16, !tbaa !14
  %567 = load i32, ptr %4, align 4, !tbaa !5
  %568 = sext i32 %567 to i64
  %569 = getelementptr inbounds [100010 x %"struct.std::pair.11"], ptr @query, i64 0, i64 %568
  %570 = getelementptr inbounds %"struct.std::pair.11", ptr %569, i32 0, i32 1
  %571 = load i32, ptr %570, align 16, !tbaa !26
  %572 = sext i32 %571 to i64
  %573 = getelementptr inbounds [100010 x x86_fp80], ptr @ans, i64 0, i64 %572
  store x86_fp80 %566, ptr %573, align 16, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #8
  br label %574

574:                                              ; preds = %545, %519
  %575 = load i32, ptr %4, align 4, !tbaa !5
  %576 = add nsw i32 %575, 1
  store i32 %576, ptr %4, align 4, !tbaa !5
  br label %507, !llvm.loop !30

577:                                              ; preds = %507
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #8
  store x86_fp80 0xK403D8AC7230489E80000, ptr %22, align 16, !tbaa !14
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %578

578:                                              ; preds = %640, %577
  %579 = load i32, ptr %4, align 4, !tbaa !5
  %580 = load i32, ptr %12, align 4, !tbaa !5
  %581 = icmp slt i32 %579, %580
  br i1 %581, label %582, label %647

582:                                              ; preds = %578
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #8
  %583 = load i32, ptr %4, align 4, !tbaa !5
  %584 = sext i32 %583 to i64
  %585 = getelementptr inbounds [100010 x x86_fp80], ptr @ans, i64 0, i64 %584
  %586 = load x86_fp80, ptr %585, align 16, !tbaa !14
  %587 = load i32, ptr %4, align 4, !tbaa !5
  %588 = sext i32 %587 to i64
  %589 = getelementptr inbounds [100010 x i64], ptr @a, i64 0, i64 %588
  %590 = load i64, ptr %589, align 8, !tbaa !9
  %591 = load i32, ptr %4, align 4, !tbaa !5
  %592 = sext i32 %591 to i64
  %593 = getelementptr inbounds [100010 x i64], ptr @a, i64 0, i64 %592
  %594 = load i64, ptr %593, align 8, !tbaa !9
  %595 = mul nsw i64 %590, %594
  %596 = load i32, ptr %4, align 4, !tbaa !5
  %597 = sext i32 %596 to i64
  %598 = getelementptr inbounds [100010 x i64], ptr @b, i64 0, i64 %597
  %599 = load i64, ptr %598, align 8, !tbaa !9
  %600 = load i32, ptr %4, align 4, !tbaa !5
  %601 = sext i32 %600 to i64
  %602 = getelementptr inbounds [100010 x i64], ptr @b, i64 0, i64 %601
  %603 = load i64, ptr %602, align 8, !tbaa !9
  %604 = mul nsw i64 %599, %603
  %605 = add nsw i64 %595, %604
  %606 = invoke noundef double @_ZSt4sqrtIxEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i64 noundef %605)
          to label %607 unwind label %643

607:                                              ; preds = %582
  %608 = fpext double %606 to x86_fp80
  %609 = fdiv x86_fp80 %586, %608
  store x86_fp80 %609, ptr %23, align 16, !tbaa !14
  %610 = load x86_fp80, ptr %23, align 16, !tbaa !14
  %611 = load i32, ptr %4, align 4, !tbaa !5
  %612 = sext i32 %611 to i64
  %613 = getelementptr inbounds [100010 x i64], ptr @x, i64 0, i64 %612
  %614 = load i64, ptr %613, align 8, !tbaa !9
  %615 = load i32, ptr %4, align 4, !tbaa !5
  %616 = sext i32 %615 to i64
  %617 = getelementptr inbounds [100010 x i64], ptr @y, i64 0, i64 %616
  %618 = load i64, ptr %617, align 8, !tbaa !9
  %619 = load i32, ptr %4, align 4, !tbaa !5
  %620 = add nsw i32 %619, 1
  %621 = load i32, ptr %12, align 4, !tbaa !5
  %622 = srem i32 %620, %621
  %623 = sext i32 %622 to i64
  %624 = getelementptr inbounds [100010 x i64], ptr @x, i64 0, i64 %623
  %625 = load i64, ptr %624, align 8, !tbaa !9
  %626 = load i32, ptr %4, align 4, !tbaa !5
  %627 = add nsw i32 %626, 1
  %628 = load i32, ptr %12, align 4, !tbaa !5
  %629 = srem i32 %627, %628
  %630 = sext i32 %629 to i64
  %631 = getelementptr inbounds [100010 x i64], ptr @y, i64 0, i64 %630
  %632 = load i64, ptr %631, align 8, !tbaa !9
  %633 = invoke noundef x86_fp80 @_Z4distxxxx(i64 noundef %614, i64 noundef %618, i64 noundef %625, i64 noundef %632)
          to label %634 unwind label %643

634:                                              ; preds = %607
  %635 = fmul x86_fp80 %610, %633
  %636 = fmul x86_fp80 %635, 0xK3FFE8000000000000000
  store x86_fp80 %636, ptr %23, align 16, !tbaa !14
  %637 = invoke noundef nonnull align 16 dereferenceable(16) ptr @_ZSt3minIeERKT_S2_S2_(ptr noundef nonnull align 16 dereferenceable(16) %22, ptr noundef nonnull align 16 dereferenceable(16) %23)
          to label %638 unwind label %643

638:                                              ; preds = %634
  %639 = load x86_fp80, ptr %637, align 16, !tbaa !14
  store x86_fp80 %639, ptr %22, align 16, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #8
  br label %640

640:                                              ; preds = %638
  %641 = load i32, ptr %4, align 4, !tbaa !5
  %642 = add nsw i32 %641, 1
  store i32 %642, ptr %4, align 4, !tbaa !5
  br label %578, !llvm.loop !31

643:                                              ; preds = %634, %607, %582
  %644 = landingpad { ptr, i32 }
          cleanup
  %645 = extractvalue { ptr, i32 } %644, 0
  store ptr %645, ptr %6, align 8
  %646 = extractvalue { ptr, i32 } %644, 1
  store i32 %646, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #8
  br label %666

647:                                              ; preds = %578
  %648 = load x86_fp80, ptr %22, align 16, !tbaa !14
  %649 = load x86_fp80, ptr %11, align 16, !tbaa !14
  %650 = fsub x86_fp80 %649, %648
  store x86_fp80 %650, ptr %11, align 16, !tbaa !14
  %651 = load x86_fp80, ptr %11, align 16, !tbaa !14
  %652 = fmul x86_fp80 %651, 0xK40008000000000000000
  store x86_fp80 %652, ptr %11, align 16, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %653 = load x86_fp80, ptr %11, align 16, !tbaa !14
  %654 = fadd x86_fp80 %653, 0xK3FFE8000000000000000
  %655 = fptosi x86_fp80 %654 to i64
  store i64 %655, ptr %24, align 8, !tbaa !9
  %656 = load i64, ptr %24, align 8, !tbaa !9
  %657 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.7, i64 noundef %656)
          to label %658 unwind label %662

658:                                              ; preds = %647
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #8
  store i32 0, ptr %10, align 4
  br label %659

659:                                              ; preds = %658, %98
  call void @_ZNSt6vectorI2PTSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #8
  %660 = load i32, ptr %10, align 4
  switch i32 %660, label %678 [
    i32 0, label %661
    i32 2, label %26
  ]

661:                                              ; preds = %659
  br label %26, !llvm.loop !13

662:                                              ; preds = %647
  %663 = landingpad { ptr, i32 }
          cleanup
  %664 = extractvalue { ptr, i32 } %663, 0
  store ptr %664, ptr %6, align 8
  %665 = extractvalue { ptr, i32 } %663, 1
  store i32 %665, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  br label %666

666:                                              ; preds = %662, %643
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #8
  br label %667

667:                                              ; preds = %666, %415, %377, %373
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %668

668:                                              ; preds = %667, %369, %192
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %669

669:                                              ; preds = %668, %126
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #8
  br label %670

670:                                              ; preds = %669, %86, %82, %78
  call void @_ZNSt6vectorI2PTSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  call void @llvm.lifetime.end.p0(i64 24, 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
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %673

671:                                              ; preds = %26
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  %672 = load i32, ptr %1, align 4
  ret i32 %672

673:                                              ; preds = %670
  %674 = load ptr, ptr %6, align 8
  %675 = load i32, ptr %7, align 4
  %676 = insertvalue { ptr, i32 } poison, ptr %674, 0
  %677 = insertvalue { ptr, i32 } %676, i32 %675, 1
  resume { ptr, i32 } %677

678:                                              ; preds = %659
  unreachable
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_ZSt9make_pairIRxS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2PTC2Eee(ptr noundef nonnull align 16 dereferenceable(32), x86_fp80 noundef, x86_fp80 noundef) unnamed_addr #3 align 2

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt4sqrtIxEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i64 noundef) #7

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

attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 #4 = { 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 #5 = { "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 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 = !{!"long long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = !{!15, !15, i64 0}
!15 = !{!"long double", !7, i64 0}
!16 = !{!17, !15, i64 0}
!17 = !{!"_ZTS2PT", !15, i64 0, !15, i64 16}
!18 = !{!17, !15, i64 16}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = !{!22, !10, i64 0}
!22 = !{!"_ZTSSt4pairIxxE", !10, i64 0, !10, i64 8}
!23 = !{!22, !10, i64 8}
!24 = distinct !{!24, !12}
!25 = distinct !{!25, !12}
!26 = !{!27, !6, i64 16}
!27 = !{!"_ZTSSt4pairIeiE", !15, i64 0, !6, i64 16}
!28 = !{!27, !15, i64 0}
!29 = distinct !{!29, !12}
!30 = distinct !{!30, !12}
!31 = distinct !{!31, !12}


; 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.std::vector.1" = type { %"struct.std::_Vector_base.2" }
%"struct.std::_Vector_base.2" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { i64, i64 }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::pair<long long, long long>, std::pair<long long, long long>, std::_Identity<std::pair<long long, long long>>, std::less<std::pair<long long, long long>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<long long, long long>, std::pair<long long, long long>, std::_Identity<std::pair<long long, long long>>, std::less<std::pair<long long, long long>>>::_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 }
%"struct.std::pair.11" = type <{ x86_fp80, i32, [12 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<PT, std::allocator<PT>>::_Vector_impl" }
%"struct.std::_Vector_base<PT, std::allocator<PT>>::_Vector_impl" = type { %"struct.std::_Vector_base<PT, std::allocator<PT>>::_Vector_impl_data" }
%"struct.std::_Vector_base<PT, std::allocator<PT>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.PT = type { x86_fp80, x86_fp80 }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }

@pointer = external dso_local local_unnamed_addr global [2 x i32], align 4
@M = external dso_local global [2 x %"class.std::vector.1"], align 16
@B = external dso_local global [2 x %"class.std::vector.1"], align 16
@x = external dso_local global [100010 x i64], align 16
@y = external dso_local global [100010 x i64], align 16
@X = external dso_local global [100010 x i64], align 16
@Y = external dso_local global [100010 x i64], align 16
@arr = external dso_local global [100010 x %"struct.std::pair"], align 16
@a = external dso_local local_unnamed_addr global [100010 x i64], align 16
@b = external dso_local local_unnamed_addr global [100010 x i64], align 16
@c = external dso_local local_unnamed_addr global [100010 x i64], align 16
@sett = external dso_local global %"class.std::set", align 8
@query = external dso_local global [100010 x %"struct.std::pair.11"], align 16
@ans = external dso_local local_unnamed_addr global [100010 x x86_fp80], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare x86_fp80 @llvm.fmuladd.f80(x86_fp80, x86_fp80, x86_fp80) #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3addxxb(i64 noundef, i64 noundef, i1 noundef zeroext) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef x86_fp80 @_Z5Queryeb(x86_fp80 noundef, i1 noundef zeroext) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef x86_fp80 @_Z11ComputeAreaRKSt6vectorI2PTSaIS0_EE(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef x86_fp80 @_Z4distxxxx(i64 noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca %"struct.std::pair", align 8
  %5 = alloca %struct.PT, align 16
  %6 = alloca %"struct.std::pair", align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %10 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %11 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %12 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %13 = alloca x86_fp80, align 16
  %14 = alloca x86_fp80, align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  %15 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %16 = load i32, ptr %1, align 4, !tbaa !5
  %17 = add nsw i32 %16, -1
  store i32 %17, ptr %1, align 4, !tbaa !5
  %.not168 = icmp eq i32 %16, 0
  br i1 %.not168, label %._crit_edge171, label %.lr.ph170

.lr.ph170:                                        ; preds = %0
  %18 = getelementptr inbounds i8, ptr %4, i64 8
  %19 = getelementptr inbounds i8, ptr %6, i64 8
  br label %20

20:                                               ; preds = %.lr.ph170, %273
  call void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @M) #8
  call void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @M, i64 24)) #8
  call void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @B) #8
  call void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @B, i64 24)) #8
  store i32 0, ptr getelementptr inbounds (i8, ptr @pointer, i64 4), align 4, !tbaa !5
  store i32 0, ptr @pointer, align 4, !tbaa !5
  %21 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %2)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #8
  call void @_ZNSt6vectorI2PTSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @_ZNSt6vectorI2PTSaIS0_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %22 = load i32, ptr %2, align 4, !tbaa !5
  %23 = icmp sgt i32 %22, 0
  br i1 %23, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %20, %38
  %indvars.iv = phi i64 [ %indvars.iv.next, %38 ], [ 0, %20 ]
  %24 = getelementptr inbounds [100010 x i64], ptr @X, i64 0, i64 %indvars.iv
  %25 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.5, ptr noundef nonnull %24)
  %26 = getelementptr inbounds [100010 x i64], ptr @Y, i64 0, i64 %indvars.iv
  %27 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.5, ptr noundef nonnull %26)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #8
  %28 = invoke { i64, i64 } @_ZSt9make_pairIRxS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %26)
          to label %29 unwind label %44

29:                                               ; preds = %.lr.ph
  %30 = extractvalue { i64, i64 } %28, 0
  store i64 %30, ptr %4, align 8
  %31 = extractvalue { i64, i64 } %28, 1
  store i64 %31, ptr %18, align 8
  %32 = getelementptr inbounds [100010 x %"struct.std::pair"], ptr @arr, i64 0, i64 %indvars.iv
  %33 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull align 8 dereferenceable(16) %4) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #8
  %34 = load i64, ptr %24, align 8, !tbaa !9
  %35 = sitofp i64 %34 to x86_fp80
  %36 = load i64, ptr %26, align 8, !tbaa !9
  %37 = sitofp i64 %36 to x86_fp80
  call void @_ZN2PTC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %5, x86_fp80 noundef %35, x86_fp80 noundef %37)
  invoke void @_ZNSt6vectorI2PTSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 16 dereferenceable(32) %5)
          to label %38 unwind label %46

38:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %39 = load i32, ptr %2, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = icmp slt i64 %indvars.iv.next, %40
  br i1 %41, label %.lr.ph, label %._crit_edge, !llvm.loop !11

42:                                               ; preds = %._crit_edge
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %276

44:                                               ; preds = %.lr.ph
  %45 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #8
  br label %276

46:                                               ; preds = %29
  %47 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #8
  br label %276

._crit_edge:                                      ; preds = %38, %20
  invoke void @_Z10ConvexHullRSt6vectorI2PTSaIS0_EE(ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %48 unwind label %42

48:                                               ; preds = %._crit_edge
  %49 = call noundef i64 @_ZNKSt6vectorI2PTSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %50 = load i32, ptr %2, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = icmp eq i64 %49, %51
  br i1 %52, label %53, label %55

53:                                               ; preds = %48
  %54 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef -1)
  br label %273, !llvm.loop !13

55:                                               ; preds = %48
  %56 = invoke noundef x86_fp80 @_Z11ComputeAreaRKSt6vectorI2PTSaIS0_EE(ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %57 unwind label %79

57:                                               ; preds = %55
  %58 = call noundef i64 @_ZNKSt6vectorI2PTSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %59 = trunc i64 %58 to i32
  call void @_ZNSt3setISt4pairIxxESt4lessIS1_ESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(48) @sett) #8
  %60 = icmp sgt i32 %59, 0
  br i1 %60, label %.lr.ph148.preheader, label %._crit_edge151

.lr.ph148.preheader:                              ; preds = %57
  %wide.trip.count = and i64 %58, 2147483647
  br label %.lr.ph148

.preheader142:                                    ; preds = %85
  br i1 %60, label %.lr.ph150.preheader, label %._crit_edge151

.lr.ph150.preheader:                              ; preds = %.preheader142
  %61 = and i64 %58, 2147483647
  br label %.lr.ph150

.lr.ph148:                                        ; preds = %.lr.ph148.preheader, %85
  %indvars.iv174 = phi i64 [ 0, %.lr.ph148.preheader ], [ %indvars.iv.next175, %85 ]
  %62 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv174) #8
  %63 = load x86_fp80, ptr %62, align 16, !tbaa !14
  %64 = fcmp olt x86_fp80 %63, 0xK00000000000000000000
  %65 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv174) #8
  %66 = load x86_fp80, ptr %65, align 16, !tbaa !14
  %. = select i1 %64, x86_fp80 0xKBFFE8000000000000000, x86_fp80 0xK3FFE8000000000000000
  %67 = fadd x86_fp80 %66, %.
  %.sink = fptosi x86_fp80 %67 to i64
  %68 = getelementptr inbounds [100010 x i64], ptr @x, i64 0, i64 %indvars.iv174
  store i64 %.sink, ptr %68, align 8
  %69 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv174) #8
  %70 = getelementptr inbounds i8, ptr %69, i64 16
  %71 = load x86_fp80, ptr %70, align 16, !tbaa !17
  %72 = fcmp olt x86_fp80 %71, 0xK00000000000000000000
  %.sink209 = select i1 %72, x86_fp80 0xKBFFE8000000000000000, x86_fp80 0xK3FFE8000000000000000
  %73 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2PTSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv174) #8
  %74 = getelementptr inbounds i8, ptr %73, i64 16
  %75 = load x86_fp80, ptr %74, align 16, !tbaa !17
  %76 = fadd x86_fp80 %75, %.sink209
  %.sink204 = fptosi x86_fp80 %76 to i64
  %77 = getelementptr inbounds [100010 x i64], ptr @y, i64 0, i64 %indvars.iv174
  store i64 %.sink204, ptr %77, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #8
  %78 = invoke { i64, i64 } @_ZSt9make_pairIRxS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %68, ptr noundef nonnull align 8 dereferenceable(8) %77)
          to label %81 unwind label %86

79:                                               ; preds = %55
  %80 = landingpad { ptr, i32 }
          cleanup
  br label %276

81:                                               ; preds = %.lr.ph148
  %82 = extractvalue { i64, i64 } %78, 0
  store i64 %82, ptr %6, align 8
  %83 = extractvalue { i64, i64 } %78, 1
  store i64 %83, ptr %19, align 8
  %84 = invoke { ptr, i8 } @_ZNSt3setISt4pairIxxESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @sett, ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %85 unwind label %86

85:                                               ; preds = %81
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #8
  %indvars.iv.next175 = add nuw nsw i64 %indvars.iv174, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next175, %wide.trip.count
  br i1 %exitcond.not, label %.preheader142, label %.lr.ph148, !llvm.loop !18

86:                                               ; preds = %81, %.lr.ph148
  %87 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #8
  br label %276

.lr.ph150:                                        ; preds = %.lr.ph150.preheader, %124
  %indvars.iv177 = phi i64 [ 0, %.lr.ph150.preheader ], [ %indvars.iv.next178, %124 ]
  %indvars.iv.next178 = add nuw nsw i64 %indvars.iv177, 1
  %88 = icmp eq i64 %indvars.iv.next178, %61
  %89 = and i64 %indvars.iv.next178, 4294967295
  %90 = select i1 %88, i64 0, i64 %89
  %91 = getelementptr inbounds [100010 x i64], ptr @y, i64 0, i64 %90
  %92 = load i64, ptr %91, align 8, !tbaa !9
  %93 = getelementptr inbounds [100010 x i64], ptr @y, i64 0, i64 %indvars.iv177
  %94 = load i64, ptr %93, align 8, !tbaa !9
  %95 = sub nsw i64 %92, %94
  %96 = getelementptr inbounds [100010 x i64], ptr @a, i64 0, i64 %indvars.iv177
  store i64 %95, ptr %96, align 8, !tbaa !9
  %97 = getelementptr inbounds [100010 x i64], ptr @x, i64 0, i64 %indvars.iv177
  %98 = load i64, ptr %97, align 8, !tbaa !9
  %99 = getelementptr inbounds [100010 x i64], ptr @x, i64 0, i64 %90
  %100 = load i64, ptr %99, align 8, !tbaa !9
  %101 = sub nsw i64 %98, %100
  %102 = getelementptr inbounds [100010 x i64], ptr @b, i64 0, i64 %indvars.iv177
  store i64 %101, ptr %102, align 8, !tbaa !9
  %103 = mul nsw i64 %100, %94
  %104 = mul nsw i64 %98, %92
  %105 = sub nsw i64 %103, %104
  %106 = getelementptr inbounds [100010 x i64], ptr @c, i64 0, i64 %indvars.iv177
  store i64 %105, ptr %106, align 8, !tbaa !9
  %107 = trunc i64 %indvars.iv177 to i32
  %108 = add i32 %107, 2
  %109 = urem i32 %108, %59
  %110 = zext nneg i32 %109 to i64
  %111 = getelementptr inbounds [100010 x i64], ptr @x, i64 0, i64 %110
  %112 = load i64, ptr %111, align 8, !tbaa !9
  %113 = mul nsw i64 %112, %95
  %114 = getelementptr inbounds [100010 x i64], ptr @y, i64 0, i64 %110
  %115 = load i64, ptr %114, align 8, !tbaa !9
  %116 = mul nsw i64 %115, %101
  %117 = add i64 %113, %105
  %118 = add i64 %117, %116
  %119 = icmp slt i64 %118, 0
  br i1 %119, label %120, label %124

120:                                              ; preds = %.lr.ph150
  %121 = sub nsw i64 0, %95
  store i64 %121, ptr %96, align 8, !tbaa !9
  %122 = sub nsw i64 0, %101
  store i64 %122, ptr %102, align 8, !tbaa !9
  %123 = sub nsw i64 0, %105
  store i64 %123, ptr %106, align 8, !tbaa !9
  br label %124

124:                                              ; preds = %.lr.ph150, %120
  %exitcond181.not = icmp eq i64 %indvars.iv.next178, %61
  br i1 %exitcond181.not, label %._crit_edge151, label %.lr.ph150, !llvm.loop !19

._crit_edge151:                                   ; preds = %124, %57, %.preheader142
  %125 = load i32, ptr %2, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds %"struct.std::pair", ptr @arr, i64 %126
  invoke void @_ZSt4sortIPSt4pairIxxEEvT_S3_(ptr noundef nonnull @arr, ptr noundef nonnull %127)
          to label %128 unwind label %151

128:                                              ; preds = %._crit_edge151
  %129 = load i32, ptr %2, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds %"struct.std::pair", ptr @arr, i64 %130
  invoke void @_ZSt7reverseIPSt4pairIxxEEvT_S3_(ptr noundef nonnull @arr, ptr noundef nonnull %131)
          to label %132 unwind label %151

132:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  store i64 5000000000000000000, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  store i64 -5000000000000000000, ptr %8, align 8, !tbaa !9
  %133 = load i32, ptr %2, align 4, !tbaa !5
  %134 = icmp sgt i32 %133, 0
  br i1 %134, label %.lr.ph154, label %.preheader137

.preheader138:                                    ; preds = %155
  %135 = icmp sgt i32 %156, 0
  br i1 %135, label %.lr.ph157.preheader, label %.preheader137

.lr.ph157.preheader:                              ; preds = %.preheader138
  %136 = zext nneg i32 %156 to i64
  br label %.lr.ph157

.lr.ph154:                                        ; preds = %132, %155
  %indvars.iv182 = phi i64 [ %indvars.iv.next183, %155 ], [ 0, %132 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  %137 = getelementptr inbounds [100010 x %"struct.std::pair"], ptr @arr, i64 0, i64 %indvars.iv182
  %138 = invoke ptr @_ZNSt3setISt4pairIxxESt4lessIS1_ESaIS1_EE4findERKS1_(ptr noundef nonnull align 8 dereferenceable(48) @sett, ptr noundef nonnull align 8 dereferenceable(16) %137)
          to label %139 unwind label %153

139:                                              ; preds = %.lr.ph154
  store ptr %138, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  %140 = call ptr @_ZNKSt3setISt4pairIxxESt4lessIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @sett) #8
  store ptr %140, ptr %10, align 8
  %141 = call noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorISt4pairIxxEES4_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  br i1 %141, label %142, label %155

142:                                              ; preds = %139
  %143 = load i64, ptr %137, align 16, !tbaa !20
  %144 = getelementptr inbounds i8, ptr %137, i64 8
  %145 = load i64, ptr %144, align 8, !tbaa !22
  invoke void @_Z3addxxb(i64 noundef %143, i64 noundef %145, i1 noundef zeroext false)
          to label %146 unwind label %.loopexit.split-lp.loopexit

146:                                              ; preds = %142
  %147 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %137)
  %148 = load i64, ptr %147, align 8, !tbaa !9
  store i64 %148, ptr %7, align 8, !tbaa !9
  %149 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %137)
  %150 = load i64, ptr %149, align 8, !tbaa !9
  store i64 %150, ptr %8, align 8, !tbaa !9
  br label %155

151:                                              ; preds = %128, %._crit_edge151
  %152 = landingpad { ptr, i32 }
          cleanup
  br label %276

153:                                              ; preds = %.lr.ph154
  %154 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  br label %.loopexit.split-lp

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

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

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

155:                                              ; preds = %139, %146
  %indvars.iv.next183 = add nuw nsw i64 %indvars.iv182, 1
  %156 = load i32, ptr %2, align 4, !tbaa !5
  %157 = sext i32 %156 to i64
  %158 = icmp slt i64 %indvars.iv.next183, %157
  br i1 %158, label %.lr.ph154, label %.preheader138, !llvm.loop !23

.preheader137:                                    ; preds = %174, %132, %.preheader138
  br i1 %60, label %.lr.ph159, label %._crit_edge160

.lr.ph159:                                        ; preds = %.preheader137
  %159 = load i64, ptr %7, align 8
  %160 = load i64, ptr %8, align 8
  %wide.trip.count191 = and i64 %58, 2147483647
  br label %176

.lr.ph157:                                        ; preds = %.lr.ph157.preheader, %174
  %indvars.iv185 = phi i64 [ %136, %.lr.ph157.preheader ], [ %indvars.iv.next186, %174 ]
  %indvars.iv.next186 = add nsw i64 %indvars.iv185, -1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  %161 = getelementptr inbounds [100010 x %"struct.std::pair"], ptr @arr, i64 0, i64 %indvars.iv.next186
  %162 = invoke ptr @_ZNSt3setISt4pairIxxESt4lessIS1_ESaIS1_EE4findERKS1_(ptr noundef nonnull align 8 dereferenceable(48) @sett, ptr noundef nonnull align 8 dereferenceable(16) %161)
          to label %163 unwind label %172

163:                                              ; preds = %.lr.ph157
  store ptr %162, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  %164 = call ptr @_ZNKSt3setISt4pairIxxESt4lessIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @sett) #8
  store ptr %164, ptr %12, align 8
  %165 = call noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorISt4pairIxxEES4_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  br i1 %165, label %166, label %174

166:                                              ; preds = %163
  %167 = load i64, ptr %161, align 16, !tbaa !20
  %168 = sub nsw i64 0, %167
  %169 = getelementptr inbounds i8, ptr %161, i64 8
  %170 = load i64, ptr %169, align 8, !tbaa !22
  %171 = sub nsw i64 0, %170
  invoke void @_Z3addxxb(i64 noundef %168, i64 noundef %171, i1 noundef zeroext true)
          to label %174 unwind label %.loopexit

172:                                              ; preds = %.lr.ph157
  %173 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  br label %.loopexit.split-lp

174:                                              ; preds = %163, %166
  %175 = icmp ugt i64 %indvars.iv185, 1
  br i1 %175, label %.lr.ph157, label %.preheader137, !llvm.loop !24

176:                                              ; preds = %.lr.ph159, %204
  %indvars.iv188 = phi i64 [ 0, %.lr.ph159 ], [ %indvars.iv.next189, %204 ]
  %177 = getelementptr inbounds [100010 x %"struct.std::pair.11"], ptr @query, i64 0, i64 %indvars.iv188
  %178 = getelementptr inbounds i8, ptr %177, i64 16
  %179 = trunc nuw nsw i64 %indvars.iv188 to i32
  store i32 %179, ptr %178, align 16, !tbaa !25
  %180 = getelementptr inbounds [100010 x i64], ptr @b, i64 0, i64 %indvars.iv188
  %181 = load i64, ptr %180, align 8, !tbaa !9
  %182 = icmp eq i64 %181, 0
  br i1 %182, label %183, label %198

183:                                              ; preds = %176
  store x86_fp80 0xK403D8AC7230489E80000, ptr %177, align 16, !tbaa !27
  %184 = getelementptr inbounds [100010 x i64], ptr @a, i64 0, i64 %indvars.iv188
  %185 = load i64, ptr %184, align 8, !tbaa !9
  %186 = icmp slt i64 %185, 0
  %187 = getelementptr inbounds [100010 x i64], ptr @c, i64 0, i64 %indvars.iv188
  %188 = load i64, ptr %187, align 8, !tbaa !9
  %189 = getelementptr inbounds [100010 x x86_fp80], ptr @ans, i64 0, i64 %indvars.iv188
  br i1 %186, label %190, label %194

190:                                              ; preds = %183
  %191 = mul nsw i64 %160, %185
  %192 = add nsw i64 %191, %188
  %193 = sitofp i64 %192 to x86_fp80
  store x86_fp80 %193, ptr %189, align 16, !tbaa !28
  br label %204

194:                                              ; preds = %183
  %195 = mul nsw i64 %159, %185
  %196 = add nsw i64 %195, %188
  %197 = sitofp i64 %196 to x86_fp80
  store x86_fp80 %197, ptr %189, align 16, !tbaa !28
  br label %204

198:                                              ; preds = %176
  %199 = getelementptr inbounds [100010 x i64], ptr @a, i64 0, i64 %indvars.iv188
  %200 = load i64, ptr %199, align 8, !tbaa !9
  %201 = sitofp i64 %200 to x86_fp80
  %202 = sitofp i64 %181 to x86_fp80
  %203 = fdiv x86_fp80 %201, %202
  store x86_fp80 %203, ptr %177, align 16, !tbaa !27
  br label %204

204:                                              ; preds = %198, %194, %190
  %indvars.iv.next189 = add nuw nsw i64 %indvars.iv188, 1
  %exitcond192.not = icmp eq i64 %indvars.iv.next189, %wide.trip.count191
  br i1 %exitcond192.not, label %._crit_edge160, label %176, !llvm.loop !29

._crit_edge160:                                   ; preds = %204, %.preheader137
  %sext = shl i64 %58, 32
  %205 = ashr exact i64 %sext, 27
  %206 = getelementptr inbounds i8, ptr @query, i64 %205
  invoke void @_ZSt4sortIPSt4pairIeiEEvT_S3_(ptr noundef nonnull @query, ptr noundef nonnull %206)
          to label %.preheader unwind label %.loopexit.split-lp.loopexit.split-lp

.preheader:                                       ; preds = %._crit_edge160
  br i1 %60, label %.lr.ph162.preheader, label %._crit_edge163.thread

._crit_edge163.thread:                            ; preds = %.preheader
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #8
  store x86_fp80 0xK403D8AC7230489E80000, ptr %13, align 16, !tbaa !28
  br label %._crit_edge167

.lr.ph162.preheader:                              ; preds = %.preheader
  %wide.trip.count196 = and i64 %58, 2147483647
  br label %.lr.ph162

.lr.ph162:                                        ; preds = %.lr.ph162.preheader, %234
  %indvars.iv193 = phi i64 [ 0, %.lr.ph162.preheader ], [ %indvars.iv.next194, %234 ]
  %207 = getelementptr inbounds [100010 x %"struct.std::pair.11"], ptr @query, i64 0, i64 %indvars.iv193
  %208 = load x86_fp80, ptr %207, align 16, !tbaa !27
  %209 = fadd x86_fp80 %208, 0xK3FFF8000000000000000
  %210 = fcmp ult x86_fp80 %209, 0xK403D8AC7230489E80000
  br i1 %210, label %211, label %234

211:                                              ; preds = %.lr.ph162
  %212 = getelementptr inbounds i8, ptr %207, i64 16
  %213 = load i32, ptr %212, align 16, !tbaa !25
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds [100010 x i64], ptr @b, i64 0, i64 %214
  %216 = load i64, ptr %215, align 8, !tbaa !9
  %217 = icmp sgt i64 %216, 0
  br i1 %217, label %218, label %220

218:                                              ; preds = %211
  %219 = call noundef x86_fp80 @_Z5Queryeb(x86_fp80 noundef %208, i1 noundef zeroext false)
  br label %223

220:                                              ; preds = %211
  %221 = call noundef x86_fp80 @_Z5Queryeb(x86_fp80 noundef %208, i1 noundef zeroext true)
  %222 = fneg x86_fp80 %221
  br label %223

223:                                              ; preds = %220, %218
  %.0117 = phi x86_fp80 [ %219, %218 ], [ %222, %220 ]
  %224 = load i32, ptr %212, align 16, !tbaa !25
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds [100010 x i64], ptr @b, i64 0, i64 %225
  %227 = load i64, ptr %226, align 8, !tbaa !9
  %228 = sitofp i64 %227 to x86_fp80
  %229 = getelementptr inbounds [100010 x i64], ptr @c, i64 0, i64 %225
  %230 = load i64, ptr %229, align 8, !tbaa !9
  %231 = sitofp i64 %230 to x86_fp80
  %232 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %.0117, x86_fp80 %228, x86_fp80 %231)
  %233 = getelementptr inbounds [100010 x x86_fp80], ptr @ans, i64 0, i64 %225
  store x86_fp80 %232, ptr %233, align 16, !tbaa !28
  br label %234

234:                                              ; preds = %.lr.ph162, %223
  %indvars.iv.next194 = add nuw nsw i64 %indvars.iv193, 1
  %exitcond197.not = icmp eq i64 %indvars.iv.next194, %wide.trip.count196
  br i1 %exitcond197.not, label %._crit_edge163, label %.lr.ph162, !llvm.loop !30

._crit_edge163:                                   ; preds = %234
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #8
  store x86_fp80 0xK403D8AC7230489E80000, ptr %13, align 16, !tbaa !28
  br i1 %60, label %.lr.ph166.preheader, label %._crit_edge167

.lr.ph166.preheader:                              ; preds = %._crit_edge163
  %235 = and i64 %58, 2147483647
  br label %.lr.ph166

.lr.ph166:                                        ; preds = %.lr.ph166.preheader, %260
  %indvars.iv199 = phi i64 [ 0, %.lr.ph166.preheader ], [ %indvars.iv.next200, %260 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #8
  %236 = getelementptr inbounds [100010 x x86_fp80], ptr @ans, i64 0, i64 %indvars.iv199
  %237 = load x86_fp80, ptr %236, align 16, !tbaa !28
  %238 = getelementptr inbounds [100010 x i64], ptr @a, i64 0, i64 %indvars.iv199
  %239 = load i64, ptr %238, align 8, !tbaa !9
  %240 = mul nsw i64 %239, %239
  %241 = getelementptr inbounds [100010 x i64], ptr @b, i64 0, i64 %indvars.iv199
  %242 = load i64, ptr %241, align 8, !tbaa !9
  %243 = mul nsw i64 %242, %242
  %244 = add nuw nsw i64 %243, %240
  %245 = call noundef double @_ZSt4sqrtIxEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i64 noundef %244)
  %246 = fpext double %245 to x86_fp80
  %247 = fdiv x86_fp80 %237, %246
  store x86_fp80 %247, ptr %14, align 16, !tbaa !28
  %248 = getelementptr inbounds [100010 x i64], ptr @x, i64 0, i64 %indvars.iv199
  %249 = load i64, ptr %248, align 8, !tbaa !9
  %250 = getelementptr inbounds [100010 x i64], ptr @y, i64 0, i64 %indvars.iv199
  %251 = load i64, ptr %250, align 8, !tbaa !9
  %indvars.iv.next200 = add nuw nsw i64 %indvars.iv199, 1
  %252 = icmp eq i64 %indvars.iv.next200, %235
  %253 = and i64 %indvars.iv.next200, 4294967295
  %254 = select i1 %252, i64 0, i64 %253
  %255 = getelementptr inbounds [100010 x i64], ptr @x, i64 0, i64 %254
  %256 = load i64, ptr %255, align 8, !tbaa !9
  %257 = getelementptr inbounds [100010 x i64], ptr @y, i64 0, i64 %254
  %258 = load i64, ptr %257, align 8, !tbaa !9
  %259 = invoke noundef x86_fp80 @_Z4distxxxx(i64 noundef %249, i64 noundef %251, i64 noundef %256, i64 noundef %258)
          to label %260 unwind label %265

260:                                              ; preds = %.lr.ph166
  %261 = fmul x86_fp80 %247, %259
  %262 = fmul x86_fp80 %261, 0xK3FFE8000000000000000
  store x86_fp80 %262, ptr %14, align 16, !tbaa !28
  %263 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZSt3minIeERKT_S2_S2_(ptr noundef nonnull align 16 dereferenceable(16) %13, ptr noundef nonnull align 16 dereferenceable(16) %14)
  %264 = load x86_fp80, ptr %263, align 16, !tbaa !28
  store x86_fp80 %264, ptr %13, align 16, !tbaa !28
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #8
  %exitcond203.not = icmp eq i64 %indvars.iv.next200, %235
  br i1 %exitcond203.not, label %._crit_edge167, label %.lr.ph166, !llvm.loop !31

265:                                              ; preds = %.lr.ph166
  %266 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #8
  br label %.loopexit.split-lp

._crit_edge167:                                   ; preds = %260, %._crit_edge163.thread, %._crit_edge163
  %267 = phi x86_fp80 [ 0xK403D8AC7230489E80000, %._crit_edge163 ], [ 0xK403D8AC7230489E80000, %._crit_edge163.thread ], [ %264, %260 ]
  %268 = fsub x86_fp80 %56, %267
  %269 = fmul x86_fp80 %268, 0xK40008000000000000000
  %270 = fadd x86_fp80 %269, 0xK3FFE8000000000000000
  %271 = fptosi x86_fp80 %270 to i64
  %272 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i64 noundef %271)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  br label %273

273:                                              ; preds = %._crit_edge167, %53
  call void @_ZNSt6vectorI2PTSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  %274 = load i32, ptr %1, align 4, !tbaa !5
  %275 = add nsw i32 %274, -1
  store i32 %275, ptr %1, align 4, !tbaa !5
  %.not = icmp eq i32 %274, 0
  br i1 %.not, label %._crit_edge171, label %20

.loopexit.split-lp:                               ; preds = %.loopexit, %.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp.loopexit, %265, %172, %153
  %.pn = phi { ptr, i32 } [ %154, %153 ], [ %173, %172 ], [ %266, %265 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit139, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp140, %.loopexit.split-lp.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  br label %276

276:                                              ; preds = %79, %.loopexit.split-lp, %151, %86, %46, %44, %42
  %.pn135 = phi { ptr, i32 } [ %47, %46 ], [ %45, %44 ], [ %43, %42 ], [ %80, %79 ], [ %87, %86 ], [ %.pn, %.loopexit.split-lp ], [ %152, %151 ]
  call void @_ZNSt6vectorI2PTSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn135

._crit_edge171:                                   ; preds = %273, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  ret i32 0
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_ZSt9make_pairIRxS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2PTC2Eee(ptr noundef nonnull align 16 dereferenceable(32), x86_fp80 noundef, x86_fp80 noundef) unnamed_addr #3 align 2

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt4sqrtIxEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i64 noundef) local_unnamed_addr #7

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZSt3minIeERKT_S2_S2_(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #7

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


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