; LLVM IR from VastoLorde95/Competitive-Programming :: CodeChef/Other/DIBZ2016/DZ16SHOP/bencmark.ll (Z5solvev)

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

%"struct.std::pair.10" = type { %"struct.std::pair", %"struct.std::pair" }
%"struct.std::pair" = type { i32, i32 }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@ar = external dso_local global [10010 x %"struct.std::pair.10"], align 16
@br = external dso_local global [10010 x i32], align 16
@cr = external dso_local global [10010 x i32], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_Z15MinCostMatchingRKSt6vectorIS_IdSaIdEESaIS1_EERS_IiSaIiEES8_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #0

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() #0 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 i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::vector", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"class.std::vector.5", align 8
  %18 = alloca %"class.std::vector.5", align 8
  %19 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  %20 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %1)
  %21 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %22

22:                                               ; preds = %64, %0
  %23 = load i32, ptr %3, align 4, !tbaa !5
  %24 = load i32, ptr %1, align 4, !tbaa !5
  %25 = icmp sle i32 %23, %24
  br i1 %25, label %27, label %26

26:                                               ; preds = %22
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %67

27:                                               ; preds = %22
  %28 = load i32, ptr %3, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [10010 x %"struct.std::pair.10"], ptr @ar, i64 0, i64 %29
  %31 = getelementptr inbounds %"struct.std::pair.10", ptr %30, i32 0, i32 1
  %32 = getelementptr inbounds %"struct.std::pair", ptr %31, i32 0, i32 0
  %33 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %32)
  %34 = load i32, ptr %3, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [10010 x %"struct.std::pair.10"], ptr @ar, i64 0, i64 %35
  %37 = getelementptr inbounds %"struct.std::pair.10", ptr %36, i32 0, i32 1
  %38 = getelementptr inbounds %"struct.std::pair", ptr %37, i32 0, i32 1
  %39 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %38)
  %40 = load i32, ptr %3, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [10010 x %"struct.std::pair.10"], ptr @ar, i64 0, i64 %41
  %43 = getelementptr inbounds %"struct.std::pair.10", ptr %42, i32 0, i32 0
  %44 = getelementptr inbounds %"struct.std::pair", ptr %43, i32 0, i32 1
  %45 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %44)
  %46 = load i32, ptr %3, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [10010 x %"struct.std::pair.10"], ptr @ar, i64 0, i64 %47
  %49 = getelementptr inbounds %"struct.std::pair.10", ptr %48, i32 0, i32 1
  %50 = getelementptr inbounds %"struct.std::pair", ptr %49, i32 0, i32 0
  %51 = load i32, ptr %50, align 8, !tbaa !9
  %52 = load i32, ptr %3, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [10010 x %"struct.std::pair.10"], ptr @ar, i64 0, i64 %53
  %55 = getelementptr inbounds %"struct.std::pair.10", ptr %54, i32 0, i32 1
  %56 = getelementptr inbounds %"struct.std::pair", ptr %55, i32 0, i32 1
  %57 = load i32, ptr %56, align 4, !tbaa !12
  %58 = add nsw i32 %51, %57
  %59 = load i32, ptr %3, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [10010 x %"struct.std::pair.10"], ptr @ar, i64 0, i64 %60
  %62 = getelementptr inbounds %"struct.std::pair.10", ptr %61, i32 0, i32 0
  %63 = getelementptr inbounds %"struct.std::pair", ptr %62, i32 0, i32 0
  store i32 %58, ptr %63, align 16, !tbaa !13
  br label %64

64:                                               ; preds = %27
  %65 = load i32, ptr %3, align 4, !tbaa !5
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %3, align 4, !tbaa !5
  br label %22, !llvm.loop !14

67:                                               ; preds = %26
  %68 = load i32, ptr %1, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds %"struct.std::pair.10", ptr @ar, i64 %69
  %71 = getelementptr inbounds %"struct.std::pair.10", ptr %70, i64 1
  call void @_ZSt4sortIPSt4pairIS0_IiiES1_EEvT_S4_(ptr noundef getelementptr inbounds (%"struct.std::pair.10", ptr @ar, i64 1), ptr noundef %71)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %72

72:                                               ; preds = %82, %67
  %73 = load i32, ptr %4, align 4, !tbaa !5
  %74 = load i32, ptr %2, align 4, !tbaa !5
  %75 = icmp slt i32 %73, %74
  br i1 %75, label %77, label %76

76:                                               ; preds = %72
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %85

77:                                               ; preds = %72
  %78 = load i32, ptr %4, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [10010 x i32], ptr @br, i64 0, i64 %79
  %81 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %80)
  br label %82

82:                                               ; preds = %77
  %83 = load i32, ptr %4, align 4, !tbaa !5
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %4, align 4, !tbaa !5
  br label %72, !llvm.loop !16

85:                                               ; preds = %76
  %86 = load i32, ptr %2, align 4, !tbaa !5
  %87 = load i32, ptr %1, align 4, !tbaa !5
  %88 = icmp slt i32 %86, %87
  br i1 %88, label %89, label %105

89:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  %90 = load i32, ptr %2, align 4, !tbaa !5
  store i32 %90, ptr %5, align 4, !tbaa !5
  br label %91

91:                                               ; preds = %100, %89
  %92 = load i32, ptr %5, align 4, !tbaa !5
  %93 = load i32, ptr %1, align 4, !tbaa !5
  %94 = icmp slt i32 %92, %93
  br i1 %94, label %96, label %95

95:                                               ; preds = %91
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %103

96:                                               ; preds = %91
  %97 = load i32, ptr %5, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [10010 x i32], ptr @br, i64 0, i64 %98
  store i32 0, ptr %99, align 4, !tbaa !5
  br label %100

100:                                              ; preds = %96
  %101 = load i32, ptr %5, align 4, !tbaa !5
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %5, align 4, !tbaa !5
  br label %91, !llvm.loop !17

103:                                              ; preds = %95
  %104 = load i32, ptr %1, align 4, !tbaa !5
  store i32 %104, ptr %2, align 4, !tbaa !5
  br label %105

105:                                              ; preds = %103, %85
  %106 = load i32, ptr %2, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds i32, ptr @br, i64 %107
  call void @_ZSt4sortIPiEvT_S1_(ptr noundef @br, ptr noundef %108)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %109 = load i32, ptr %2, align 4, !tbaa !5
  %110 = sub nsw i32 %109, 1
  store i32 %110, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  store i64 0, ptr %7, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %111 = load i32, ptr %1, align 4, !tbaa !5
  store i32 %111, ptr %8, align 4, !tbaa !5
  br label %112

112:                                              ; preds = %156, %105
  %113 = load i32, ptr %8, align 4, !tbaa !5
  %114 = icmp sgt i32 %113, 0
  br i1 %114, label %116, label %115

115:                                              ; preds = %112
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %159

116:                                              ; preds = %112
  %117 = load i32, ptr %8, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [10010 x %"struct.std::pair.10"], ptr @ar, i64 0, i64 %118
  %120 = getelementptr inbounds %"struct.std::pair.10", ptr %119, i32 0, i32 0
  %121 = getelementptr inbounds %"struct.std::pair", ptr %120, i32 0, i32 0
  %122 = load i32, ptr %121, align 16, !tbaa !13
  %123 = load i32, ptr %6, align 4, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [10010 x i32], ptr @br, i64 0, i64 %124
  %126 = load i32, ptr %125, align 4, !tbaa !5
  %127 = icmp sge i32 %122, %126
  br i1 %127, label %128, label %136

128:                                              ; preds = %116
  %129 = load i32, ptr %6, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [10010 x i32], ptr @br, i64 0, i64 %130
  %132 = load i32, ptr %131, align 4, !tbaa !5
  %133 = load i32, ptr %8, align 4, !tbaa !5
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [10010 x i32], ptr @cr, i64 0, i64 %134
  store i32 %132, ptr %135, align 4, !tbaa !5
  br label %146

136:                                              ; preds = %116
  %137 = load i32, ptr %8, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [10010 x %"struct.std::pair.10"], ptr @ar, i64 0, i64 %138
  %140 = getelementptr inbounds %"struct.std::pair.10", ptr %139, i32 0, i32 0
  %141 = getelementptr inbounds %"struct.std::pair", ptr %140, i32 0, i32 0
  %142 = load i32, ptr %141, align 16, !tbaa !13
  %143 = load i32, ptr %8, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [10010 x i32], ptr @cr, i64 0, i64 %144
  store i32 %142, ptr %145, align 4, !tbaa !5
  br label %146

146:                                              ; preds = %136, %128
  %147 = load i32, ptr %8, align 4, !tbaa !5
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [10010 x i32], ptr @cr, i64 0, i64 %148
  %150 = load i32, ptr %149, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = load i64, ptr %7, align 8, !tbaa !18
  %153 = add nsw i64 %152, %151
  store i64 %153, ptr %7, align 8, !tbaa !18
  %154 = load i32, ptr %6, align 4, !tbaa !5
  %155 = add nsw i32 %154, -1
  store i32 %155, ptr %6, align 4, !tbaa !5
  br label %156

156:                                              ; preds = %146
  %157 = load i32, ptr %8, align 4, !tbaa !5
  %158 = add nsw i32 %157, -1
  store i32 %158, ptr %8, align 4, !tbaa !5
  br label %112, !llvm.loop !20

159:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #6
  call void @_ZNSt6vectorIS_IdSaIdEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  %160 = load i32, ptr %1, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  invoke void @_ZNSt6vectorIS_IdSaIdEESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %161)
          to label %162 unwind label %168

162:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %163

163:                                              ; preds = %273, %162
  %164 = load i32, ptr %12, align 4, !tbaa !5
  %165 = load i32, ptr %1, align 4, !tbaa !5
  %166 = icmp slt i32 %164, %165
  br i1 %166, label %172, label %167

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

168:                                              ; preds = %159
  %169 = landingpad { ptr, i32 }
          cleanup
  %170 = extractvalue { ptr, i32 } %169, 0
  store ptr %170, ptr %10, align 8
  %171 = extractvalue { ptr, i32 } %169, 1
  store i32 %171, ptr %11, align 4
  br label %295

172:                                              ; preds = %163
  %173 = load i32, ptr %12, align 4, !tbaa !5
  %174 = sext i32 %173 to i64
  %175 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %174) #6
  %176 = load i32, ptr %1, align 4, !tbaa !5
  %177 = sext i32 %176 to i64
  invoke void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %175, i64 noundef %177)
          to label %178 unwind label %184

178:                                              ; preds = %172
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %179

179:                                              ; preds = %269, %178
  %180 = load i32, ptr %14, align 4, !tbaa !5
  %181 = load i32, ptr %1, align 4, !tbaa !5
  %182 = icmp slt i32 %180, %181
  br i1 %182, label %188, label %183

183:                                              ; preds = %179
  store i32 17, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %272

184:                                              ; preds = %172
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %10, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %11, align 4
  br label %276

188:                                              ; preds = %179
  %189 = load i32, ptr %12, align 4, !tbaa !5
  %190 = add nsw i32 %189, 1
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [10010 x %"struct.std::pair.10"], ptr @ar, i64 0, i64 %191
  %193 = getelementptr inbounds %"struct.std::pair.10", ptr %192, i32 0, i32 0
  %194 = getelementptr inbounds %"struct.std::pair", ptr %193, i32 0, i32 0
  %195 = load i32, ptr %194, align 16, !tbaa !13
  %196 = load i32, ptr %14, align 4, !tbaa !5
  %197 = add nsw i32 %196, 1
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds [10010 x i32], ptr @cr, i64 0, i64 %198
  %200 = load i32, ptr %199, align 4, !tbaa !5
  %201 = icmp sge i32 %195, %200
  br i1 %201, label %202, label %246

202:                                              ; preds = %188
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %203 = load i32, ptr %14, align 4, !tbaa !5
  %204 = add nsw i32 %203, 1
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [10010 x i32], ptr @cr, i64 0, i64 %205
  %207 = load i32, ptr %206, align 4, !tbaa !5
  %208 = load i32, ptr %12, align 4, !tbaa !5
  %209 = add nsw i32 %208, 1
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds [10010 x %"struct.std::pair.10"], ptr @ar, i64 0, i64 %210
  %212 = getelementptr inbounds %"struct.std::pair.10", ptr %211, i32 0, i32 1
  %213 = getelementptr inbounds %"struct.std::pair", ptr %212, i32 0, i32 0
  %214 = load i32, ptr %213, align 8, !tbaa !9
  %215 = sub nsw i32 %207, %214
  store i32 %215, ptr %16, align 4, !tbaa !5
  %216 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %217 unwind label %242

217:                                              ; preds = %202
  %218 = load i32, ptr %216, align 4, !tbaa !5
  %219 = sitofp i32 %218 to double
  %220 = load i32, ptr %12, align 4, !tbaa !5
  %221 = sext i32 %220 to i64
  %222 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %221) #6
  %223 = load i32, ptr %14, align 4, !tbaa !5
  %224 = sext i32 %223 to i64
  %225 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %222, i64 noundef %224) #6
  store double %219, ptr %225, align 8, !tbaa !21
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  %226 = load i32, ptr %12, align 4, !tbaa !5
  %227 = add nsw i32 %226, 1
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds [10010 x %"struct.std::pair.10"], ptr @ar, i64 0, i64 %228
  %230 = getelementptr inbounds %"struct.std::pair.10", ptr %229, i32 0, i32 0
  %231 = getelementptr inbounds %"struct.std::pair", ptr %230, i32 0, i32 1
  %232 = load i32, ptr %231, align 4, !tbaa !23
  %233 = sitofp i32 %232 to double
  %234 = load i32, ptr %12, align 4, !tbaa !5
  %235 = sext i32 %234 to i64
  %236 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %235) #6
  %237 = load i32, ptr %14, align 4, !tbaa !5
  %238 = sext i32 %237 to i64
  %239 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %236, i64 noundef %238) #6
  %240 = load double, ptr %239, align 8, !tbaa !21
  %241 = fmul double %240, %233
  store double %241, ptr %239, align 8, !tbaa !21
  br label %268

242:                                              ; preds = %202
  %243 = landingpad { ptr, i32 }
          cleanup
  %244 = extractvalue { ptr, i32 } %243, 0
  store ptr %244, ptr %10, align 8
  %245 = extractvalue { ptr, i32 } %243, 1
  store i32 %245, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %276

246:                                              ; preds = %188
  %247 = load i32, ptr %12, align 4, !tbaa !5
  %248 = sext i32 %247 to i64
  %249 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %248) #6
  %250 = load i32, ptr %14, align 4, !tbaa !5
  %251 = sext i32 %250 to i64
  %252 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %249, i64 noundef %251) #6
  store double 0x41DDCD6502400000, ptr %252, align 8, !tbaa !21
  %253 = load i32, ptr %12, align 4, !tbaa !5
  %254 = sext i32 %253 to i64
  %255 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %254) #6
  %256 = load i32, ptr %14, align 4, !tbaa !5
  %257 = sext i32 %256 to i64
  %258 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %255, i64 noundef %257) #6
  %259 = load double, ptr %258, align 8, !tbaa !21
  %260 = load i32, ptr %12, align 4, !tbaa !5
  %261 = sext i32 %260 to i64
  %262 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %261) #6
  %263 = load i32, ptr %14, align 4, !tbaa !5
  %264 = sext i32 %263 to i64
  %265 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %262, i64 noundef %264) #6
  %266 = load double, ptr %265, align 8, !tbaa !21
  %267 = fmul double %266, %259
  store double %267, ptr %265, align 8, !tbaa !21
  br label %268

268:                                              ; preds = %246, %217
  br label %269

269:                                              ; preds = %268
  %270 = load i32, ptr %14, align 4, !tbaa !5
  %271 = add nsw i32 %270, 1
  store i32 %271, ptr %14, align 4, !tbaa !5
  br label %179, !llvm.loop !24

272:                                              ; preds = %183
  br label %273

273:                                              ; preds = %272
  %274 = load i32, ptr %12, align 4, !tbaa !5
  %275 = add nsw i32 %274, 1
  store i32 %275, ptr %12, align 4, !tbaa !5
  br label %163, !llvm.loop !25

276:                                              ; preds = %242, %184
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %295

277:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #6
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #6
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %278 = invoke noundef double @_Z15MinCostMatchingRKSt6vectorIS_IdSaIdEESaIS1_EERS_IiSaIiEES8_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %279 unwind label %291

279:                                              ; preds = %277
  %280 = fptosi double %278 to i64
  store i64 %280, ptr %19, align 8, !tbaa !18
  %281 = load i64, ptr %7, align 8, !tbaa !18
  %282 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %281)
          to label %283 unwind label %291

283:                                              ; preds = %279
  %284 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %282, ptr noundef @.str.1)
          to label %285 unwind label %291

285:                                              ; preds = %283
  %286 = load i64, ptr %19, align 8, !tbaa !18
  %287 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %284, i64 noundef %286)
          to label %288 unwind label %291

288:                                              ; preds = %285
  %289 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %287, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %290 unwind label %291

290:                                              ; preds = %288
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #6
  call void @_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
  ret void

291:                                              ; preds = %288, %285, %283, %279, %277
  %292 = landingpad { ptr, i32 }
          cleanup
  %293 = extractvalue { ptr, i32 } %292, 0
  store ptr %293, ptr %10, align 8
  %294 = extractvalue { ptr, i32 } %292, 1
  store i32 %294, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #6
  br label %295

295:                                              ; preds = %291, %276, %168
  call void @_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
  br label %296

296:                                              ; preds = %295
  %297 = load ptr, ptr %10, align 8
  %298 = load i32, ptr %11, align 4
  %299 = insertvalue { ptr, i32 } poison, ptr %297, 0
  %300 = insertvalue { ptr, i32 } %299, i32 %298, 1
  resume { ptr, i32 } %300
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IdSaIdEESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #0 align 2

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

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

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

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

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

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


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

%"struct.std::pair.10" = type { %"struct.std::pair", %"struct.std::pair" }
%"struct.std::pair" = type { i32, i32 }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@ar = external dso_local global [10010 x %"struct.std::pair.10"], align 16
@br = external dso_local global [10010 x i32], align 16
@cr = external dso_local local_unnamed_addr global [10010 x i32], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_Z15MinCostMatchingRKSt6vectorIS_IdSaIdEESaIS1_EERS_IiSaIiEES8_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::vector.5", align 8
  %7 = alloca %"class.std::vector.5", align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  %8 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %9 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %2)
  %10 = load i32, ptr %1, align 4, !tbaa !5
  %.not68 = icmp slt i32 %10, 1
  br i1 %.not68, label %.._crit_edge_crit_edge, label %.lr.ph

.._crit_edge_crit_edge:                           ; preds = %0
  %.pre = sext i32 %10 to i64
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre, %.._crit_edge_crit_edge ], [ %26, %.lr.ph ]
  %11 = getelementptr inbounds %"struct.std::pair.10", ptr @ar, i64 %.pre-phi
  %12 = getelementptr inbounds i8, ptr %11, i64 16
  call void @_ZSt4sortIPSt4pairIS0_IiiES1_EEvT_S4_(ptr noundef nonnull getelementptr inbounds (i8, ptr @ar, i64 16), ptr noundef nonnull %12)
  %13 = load i32, ptr %2, align 4, !tbaa !5
  %14 = icmp sgt i32 %13, 0
  br i1 %14, label %.lr.ph72, label %._crit_edge73

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %0 ]
  %15 = getelementptr inbounds [10010 x %"struct.std::pair.10"], ptr @ar, i64 0, i64 %indvars.iv
  %16 = getelementptr inbounds i8, ptr %15, i64 8
  %17 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %16)
  %18 = getelementptr inbounds i8, ptr %15, i64 12
  %19 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %18)
  %20 = getelementptr inbounds i8, ptr %15, i64 4
  %21 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %20)
  %22 = load i32, ptr %16, align 8, !tbaa !9
  %23 = load i32, ptr %18, align 4, !tbaa !12
  %24 = add nsw i32 %23, %22
  store i32 %24, ptr %15, align 16, !tbaa !13
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %25 = load i32, ptr %1, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %.not.not = icmp slt i64 %indvars.iv, %26
  br i1 %.not.not, label %.lr.ph, label %._crit_edge, !llvm.loop !14

._crit_edge73:                                    ; preds = %.lr.ph72, %._crit_edge
  %.lcssa = phi i32 [ %13, %._crit_edge ], [ %38, %.lr.ph72 ]
  %27 = load i32, ptr %1, align 4, !tbaa !5
  %28 = icmp slt i32 %.lcssa, %27
  br i1 %28, label %.preheader66.preheader, label %41

.preheader66.preheader:                           ; preds = %._crit_edge73
  %29 = sext i32 %.lcssa to i64
  %30 = shl nsw i64 %29, 2
  %scevgep = getelementptr i8, ptr @br, i64 %30
  %31 = xor i32 %.lcssa, -1
  %32 = add i32 %27, %31
  %33 = zext i32 %32 to i64
  %34 = shl nuw nsw i64 %33, 2
  %35 = add nuw nsw i64 %34, 4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(1) %scevgep, i8 0, i64 %35, i1 false), !tbaa !5
  store i32 %27, ptr %2, align 4, !tbaa !5
  br label %41

.lr.ph72:                                         ; preds = %._crit_edge, %.lr.ph72
  %indvars.iv94 = phi i64 [ %indvars.iv.next95, %.lr.ph72 ], [ 0, %._crit_edge ]
  %36 = getelementptr inbounds [10010 x i32], ptr @br, i64 0, i64 %indvars.iv94
  %37 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %36)
  %indvars.iv.next95 = add nuw nsw i64 %indvars.iv94, 1
  %38 = load i32, ptr %2, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = icmp slt i64 %indvars.iv.next95, %39
  br i1 %40, label %.lr.ph72, label %._crit_edge73, !llvm.loop !16

41:                                               ; preds = %.preheader66.preheader, %._crit_edge73
  %42 = phi i32 [ %27, %.preheader66.preheader ], [ %.lcssa, %._crit_edge73 ]
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds i32, ptr @br, i64 %43
  call void @_ZSt4sortIPiEvT_S1_(ptr noundef nonnull @br, ptr noundef nonnull %44)
  %45 = load i32, ptr %1, align 4, !tbaa !5
  %46 = icmp sgt i32 %45, 0
  br i1 %46, label %.lr.ph81.preheader, label %._crit_edge82

.lr.ph81.preheader:                               ; preds = %41
  %47 = load i32, ptr %2, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = zext nneg i32 %45 to i64
  %min.iters.check = icmp ult i32 %45, 4
  br i1 %min.iters.check, label %.lr.ph81.preheader133, label %vector.ph

.lr.ph81.preheader133:                            ; preds = %middle.block, %.lr.ph81.preheader
  %indvars.iv102.ph = phi i64 [ %49, %.lr.ph81.preheader ], [ %ind.end, %middle.block ]
  %indvars.iv100.ph = phi i64 [ %48, %.lr.ph81.preheader ], [ %ind.end124, %middle.block ]
  %.05377.ph = phi i64 [ 0, %.lr.ph81.preheader ], [ %80, %middle.block ]
  br label %.lr.ph81

vector.ph:                                        ; preds = %.lr.ph81.preheader
  %n.vec = and i64 %49, 2147483644
  %ind.end = and i64 %49, 3
  %ind.end124 = sub nsw i64 %48, %n.vec
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %77, %vector.body ]
  %vec.phi126 = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %78, %vector.body ]
  %offset.idx = sub i64 %49, %index
  %50 = add i64 %offset.idx, -1
  %51 = add i64 %offset.idx, -2
  %52 = add i64 %offset.idx, -3
  %53 = xor i64 %index, -1
  %54 = add i64 %53, %48
  %55 = getelementptr inbounds [10010 x %"struct.std::pair.10"], ptr @ar, i64 0, i64 %offset.idx
  %56 = getelementptr inbounds [10010 x %"struct.std::pair.10"], ptr @ar, i64 0, i64 %50
  %57 = getelementptr inbounds [10010 x %"struct.std::pair.10"], ptr @ar, i64 0, i64 %51
  %58 = getelementptr inbounds [10010 x %"struct.std::pair.10"], ptr @ar, i64 0, i64 %52
  %59 = load i32, ptr %55, align 16, !tbaa !13
  %60 = load i32, ptr %56, align 16, !tbaa !13
  %61 = insertelement <2 x i32> poison, i32 %59, i64 0
  %62 = insertelement <2 x i32> %61, i32 %60, i64 1
  %63 = load i32, ptr %57, align 16, !tbaa !13
  %64 = load i32, ptr %58, align 16, !tbaa !13
  %65 = insertelement <2 x i32> poison, i32 %63, i64 0
  %66 = insertelement <2 x i32> %65, i32 %64, i64 1
  %67 = getelementptr inbounds [10010 x i32], ptr @br, i64 0, i64 %54
  %68 = getelementptr inbounds i8, ptr %67, i64 -4
  %69 = getelementptr inbounds i8, ptr %67, i64 -12
  %wide.load = load <2 x i32>, ptr %68, align 4, !tbaa !5
  %reverse = shufflevector <2 x i32> %wide.load, <2 x i32> poison, <2 x i32> <i32 1, i32 0>
  %wide.load128 = load <2 x i32>, ptr %69, align 4, !tbaa !5
  %reverse129 = shufflevector <2 x i32> %wide.load128, <2 x i32> poison, <2 x i32> <i32 1, i32 0>
  %70 = call <2 x i32> @llvm.smin.v2i32(<2 x i32> %62, <2 x i32> %reverse)
  %71 = call <2 x i32> @llvm.smin.v2i32(<2 x i32> %66, <2 x i32> %reverse129)
  %72 = getelementptr inbounds [10010 x i32], ptr @cr, i64 0, i64 %offset.idx
  %73 = getelementptr inbounds i8, ptr %72, i64 -4
  %74 = getelementptr inbounds i8, ptr %72, i64 -12
  %reverse130 = shufflevector <2 x i32> %70, <2 x i32> poison, <2 x i32> <i32 1, i32 0>
  store <2 x i32> %reverse130, ptr %73, align 4
  %reverse131 = shufflevector <2 x i32> %71, <2 x i32> poison, <2 x i32> <i32 1, i32 0>
  store <2 x i32> %reverse131, ptr %74, align 4
  %75 = sext <2 x i32> %70 to <2 x i64>
  %76 = sext <2 x i32> %71 to <2 x i64>
  %77 = add <2 x i64> %vec.phi, %75
  %78 = add <2 x i64> %vec.phi126, %76
  %index.next = add nuw i64 %index, 4
  %79 = icmp eq i64 %index.next, %n.vec
  br i1 %79, label %middle.block, label %vector.body, !llvm.loop !17

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <2 x i64> %78, %77
  %80 = call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx)
  %cmp.n = icmp eq i64 %n.vec, %49
  br i1 %cmp.n, label %._crit_edge82, label %.lr.ph81.preheader133

._crit_edge82:                                    ; preds = %.lr.ph81, %middle.block, %41
  %.053.lcssa = phi i64 [ 0, %41 ], [ %80, %middle.block ], [ %91, %.lr.ph81 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #8
  call void @_ZNSt6vectorIS_IdSaIdEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %81 = load i32, ptr %1, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  invoke void @_ZNSt6vectorIS_IdSaIdEESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %82)
          to label %.preheader65 unwind label %94

.preheader65:                                     ; preds = %._crit_edge82
  %83 = load i32, ptr %1, align 4, !tbaa !5
  %84 = icmp sgt i32 %83, 0
  br i1 %84, label %.lr.ph88, label %._crit_edge89

.lr.ph81:                                         ; preds = %.lr.ph81.preheader133, %.lr.ph81
  %indvars.iv102 = phi i64 [ %indvars.iv.next103, %.lr.ph81 ], [ %indvars.iv102.ph, %.lr.ph81.preheader133 ]
  %indvars.iv100 = phi i64 [ %indvars.iv.next101, %.lr.ph81 ], [ %indvars.iv100.ph, %.lr.ph81.preheader133 ]
  %.05377 = phi i64 [ %91, %.lr.ph81 ], [ %.05377.ph, %.lr.ph81.preheader133 ]
  %indvars.iv.next101 = add nsw i64 %indvars.iv100, -1
  %85 = getelementptr inbounds [10010 x %"struct.std::pair.10"], ptr @ar, i64 0, i64 %indvars.iv102
  %86 = load i32, ptr %85, align 16, !tbaa !13
  %87 = getelementptr inbounds [10010 x i32], ptr @br, i64 0, i64 %indvars.iv.next101
  %88 = load i32, ptr %87, align 4, !tbaa !5
  %spec.select = call i32 @llvm.smin.i32(i32 %86, i32 %88)
  %89 = getelementptr inbounds [10010 x i32], ptr @cr, i64 0, i64 %indvars.iv102
  store i32 %spec.select, ptr %89, align 4
  %90 = sext i32 %spec.select to i64
  %91 = add nsw i64 %.05377, %90
  %indvars.iv.next103 = add nsw i64 %indvars.iv102, -1
  %92 = icmp sgt i64 %indvars.iv102, 1
  br i1 %92, label %.lr.ph81, label %._crit_edge82, !llvm.loop !20

._crit_edge89:                                    ; preds = %._crit_edge86, %.preheader65
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #8
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #8
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  %93 = invoke noundef double @_Z15MinCostMatchingRKSt6vectorIS_IdSaIdEESaIS1_EERS_IiSaIiEES8_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %140 unwind label %150

94:                                               ; preds = %._crit_edge82
  %95 = landingpad { ptr, i32 }
          cleanup
  br label %152

.lr.ph88:                                         ; preds = %.preheader65, %._crit_edge86
  %indvars.iv110 = phi i64 [ %101, %._crit_edge86 ], [ 0, %.preheader65 ]
  %96 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv110) #8
  %97 = load i32, ptr %1, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  invoke void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %96, i64 noundef %98)
          to label %.preheader unwind label %106

.preheader:                                       ; preds = %.lr.ph88
  %99 = load i32, ptr %1, align 4, !tbaa !5
  %100 = icmp sgt i32 %99, 0
  %101 = add nuw nsw i64 %indvars.iv110, 1
  br i1 %100, label %.lr.ph85, label %.preheader.._crit_edge86_crit_edge

.preheader.._crit_edge86_crit_edge:               ; preds = %.preheader
  %.pre114 = sext i32 %99 to i64
  br label %._crit_edge86

.lr.ph85:                                         ; preds = %.preheader
  %102 = getelementptr inbounds [10010 x %"struct.std::pair.10"], ptr @ar, i64 0, i64 %101
  %103 = getelementptr inbounds i8, ptr %102, i64 8
  %104 = getelementptr inbounds i8, ptr %102, i64 4
  br label %108

._crit_edge86:                                    ; preds = %136, %.preheader.._crit_edge86_crit_edge
  %.pre-phi115 = phi i64 [ %.pre114, %.preheader.._crit_edge86_crit_edge ], [ %138, %136 ]
  %105 = icmp slt i64 %101, %.pre-phi115
  br i1 %105, label %.lr.ph88, label %._crit_edge89, !llvm.loop !21

106:                                              ; preds = %.lr.ph88
  %107 = landingpad { ptr, i32 }
          cleanup
  br label %152

108:                                              ; preds = %.lr.ph85, %136
  %indvars.iv107 = phi i64 [ 0, %.lr.ph85 ], [ %indvars.iv.next108, %136 ]
  %109 = load i32, ptr %102, align 16, !tbaa !13
  %indvars.iv.next108 = add nuw nsw i64 %indvars.iv107, 1
  %110 = getelementptr inbounds [10010 x i32], ptr @cr, i64 0, i64 %indvars.iv.next108
  %111 = load i32, ptr %110, align 4, !tbaa !5
  %.not63 = icmp slt i32 %109, %111
  br i1 %.not63, label %126, label %112

112:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #8
  store i32 0, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  %113 = load i32, ptr %103, align 8, !tbaa !9
  %114 = sub nsw i32 %111, %113
  store i32 %114, ptr %5, align 4, !tbaa !5
  %115 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %116 = load i32, ptr %115, align 4, !tbaa !5
  %117 = sitofp i32 %116 to double
  %118 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv110) #8
  %119 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %118, i64 noundef %indvars.iv107) #8
  store double %117, ptr %119, align 8, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  %120 = load i32, ptr %104, align 4, !tbaa !24
  %121 = sitofp i32 %120 to double
  %122 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv110) #8
  %123 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %122, i64 noundef %indvars.iv107) #8
  %124 = load double, ptr %123, align 8, !tbaa !22
  %125 = fmul double %124, %121
  store double %125, ptr %123, align 8, !tbaa !22
  br label %136

126:                                              ; preds = %108
  %127 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv110) #8
  %128 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %127, i64 noundef %indvars.iv107) #8
  store double 0x41DDCD6502400000, ptr %128, align 8, !tbaa !22
  %129 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv110) #8
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %129, i64 noundef %indvars.iv107) #8
  %131 = load double, ptr %130, align 8, !tbaa !22
  %132 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv110) #8
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %132, i64 noundef %indvars.iv107) #8
  %134 = load double, ptr %133, align 8, !tbaa !22
  %135 = fmul double %131, %134
  store double %135, ptr %133, align 8, !tbaa !22
  br label %136

136:                                              ; preds = %112, %126
  %137 = load i32, ptr %1, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = icmp slt i64 %indvars.iv.next108, %138
  br i1 %139, label %108, label %._crit_edge86, !llvm.loop !25

140:                                              ; preds = %._crit_edge89
  %141 = fptosi double %93 to i64
  %142 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %.053.lcssa)
          to label %143 unwind label %150

143:                                              ; preds = %140
  %144 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %142, ptr noundef nonnull @.str.1)
          to label %145 unwind label %150

145:                                              ; preds = %143
  %146 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %144, i64 noundef %141)
          to label %147 unwind label %150

147:                                              ; preds = %145
  %148 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %146, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %149 unwind label %150

149:                                              ; preds = %147
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #8
  call void @_ZNSt6vectorIS_IdSaIdEESaIS1_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
  ret void

150:                                              ; preds = %147, %145, %143, %140, %._crit_edge89
  %151 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #8
  br label %152

152:                                              ; preds = %150, %106, %94
  %.pn = phi { ptr, i32 } [ %107, %106 ], [ %151, %150 ], [ %95, %94 ]
  call void @_ZNSt6vectorIS_IdSaIdEESaIS1_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 } %.pn
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IdSaIdEESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

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

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

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

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.vector.reduce.add.v2i64(<2 x i64>) #7

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

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

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


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