; LLVM IR from eyangch/competitive-programming :: USACOcontests/gold/2016.01 (lightsout)

; 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::basic_istream" = type { ptr, i64, %"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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"struct.std::pair" = type { i64, i64 }
%"class.std::multiset" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::vector<long long>, std::vector<long long>, std::_Identity<std::vector<long long>>, std::less<std::vector<long long>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::vector<long long>, std::vector<long long>, std::_Identity<std::vector<long long>>, std::less<std::vector<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 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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::_Rb_tree_const_iterator" = type { ptr }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [106 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca [200 x %"struct.std::pair"], align 16
  %4 = alloca i64, align 8
  %5 = alloca [200 x i64], align 16
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca [200 x i8], align 16
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca %"class.std::multiset", align 8
  %15 = alloca %"class.std::vector", align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  %30 = alloca i64, align 8
  %31 = alloca i64, align 8
  %32 = alloca i64, align 8
  %33 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  %34 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %35 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %36 = getelementptr i8, ptr %35, i64 -24
  %37 = load i64, ptr %36, align 8
  %38 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %37
  %39 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %38, ptr noundef null)
  %40 = load ptr, ptr @stdin, align 8, !tbaa !8
  %41 = call ptr @freopen(ptr noundef @.str, ptr noundef @.str.1, ptr noundef %40)
  %42 = load ptr, ptr @stdout, align 8, !tbaa !8
  %43 = call ptr @freopen(ptr noundef @.str.2, ptr noundef @.str.3, ptr noundef %42)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #8
  %44 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
  call void @llvm.lifetime.start.p0(i64 3200, ptr %3) #8
  %45 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %3, i32 0, i32 0
  %46 = getelementptr inbounds %"struct.std::pair", ptr %45, i64 200
  br label %47

47:                                               ; preds = %47, %0
  %48 = phi ptr [ %45, %0 ], [ %49, %47 ]
  call void @_ZNSt4pairIxxEC2IxxTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 8 dereferenceable(16) %48)
  %49 = getelementptr inbounds %"struct.std::pair", ptr %48, i64 1
  %50 = icmp eq ptr %49, %46
  br i1 %50, label %51, label %47

51:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  store i64 0, ptr %4, align 8, !tbaa !11
  br label %52

52:                                               ; preds = %66, %51
  %53 = load i64, ptr %4, align 8, !tbaa !11
  %54 = load i64, ptr %2, align 8, !tbaa !11
  %55 = icmp slt i64 %53, %54
  br i1 %55, label %57, label %56

56:                                               ; preds = %52
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  br label %69

57:                                               ; preds = %52
  %58 = load i64, ptr %4, align 8, !tbaa !11
  %59 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %3, i64 0, i64 %58
  %60 = getelementptr inbounds %"struct.std::pair", ptr %59, i32 0, i32 0
  %61 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %60)
  %62 = load i64, ptr %4, align 8, !tbaa !11
  %63 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %3, i64 0, i64 %62
  %64 = getelementptr inbounds %"struct.std::pair", ptr %63, i32 0, i32 1
  %65 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %61, ptr noundef nonnull align 8 dereferenceable(8) %64)
  br label %66

66:                                               ; preds = %57
  %67 = load i64, ptr %4, align 8, !tbaa !11
  %68 = add nsw i64 %67, 1
  store i64 %68, ptr %4, align 8, !tbaa !11
  br label %52, !llvm.loop !13

69:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 1600, ptr %5) #8
  %70 = getelementptr inbounds [200 x i64], ptr %5, i64 0, i64 0
  store i64 0, ptr %70, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  store i64 1, ptr %6, align 8, !tbaa !11
  br label %71

71:                                               ; preds = %106, %69
  %72 = load i64, ptr %6, align 8, !tbaa !11
  %73 = load i64, ptr %2, align 8, !tbaa !11
  %74 = icmp slt i64 %72, %73
  br i1 %74, label %76, label %75

75:                                               ; preds = %71
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  br label %109

76:                                               ; preds = %71
  %77 = load i64, ptr %6, align 8, !tbaa !11
  %78 = sub nsw i64 %77, 1
  %79 = getelementptr inbounds [200 x i64], ptr %5, i64 0, i64 %78
  %80 = load i64, ptr %79, align 8, !tbaa !11
  %81 = load i64, ptr %6, align 8, !tbaa !11
  %82 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %3, i64 0, i64 %81
  %83 = getelementptr inbounds %"struct.std::pair", ptr %82, i32 0, i32 0
  %84 = load i64, ptr %83, align 16, !tbaa !15
  %85 = load i64, ptr %6, align 8, !tbaa !11
  %86 = sub nsw i64 %85, 1
  %87 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %3, i64 0, i64 %86
  %88 = getelementptr inbounds %"struct.std::pair", ptr %87, i32 0, i32 0
  %89 = load i64, ptr %88, align 16, !tbaa !15
  %90 = sub nsw i64 %84, %89
  %91 = load i64, ptr %6, align 8, !tbaa !11
  %92 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %3, i64 0, i64 %91
  %93 = getelementptr inbounds %"struct.std::pair", ptr %92, i32 0, i32 1
  %94 = load i64, ptr %93, align 8, !tbaa !17
  %95 = load i64, ptr %6, align 8, !tbaa !11
  %96 = sub nsw i64 %95, 1
  %97 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %3, i64 0, i64 %96
  %98 = getelementptr inbounds %"struct.std::pair", ptr %97, i32 0, i32 1
  %99 = load i64, ptr %98, align 8, !tbaa !17
  %100 = sub nsw i64 %94, %99
  %101 = add nsw i64 %90, %100
  %102 = call noundef i64 @_ZSt3absx(i64 noundef %101)
  %103 = add nsw i64 %80, %102
  %104 = load i64, ptr %6, align 8, !tbaa !11
  %105 = getelementptr inbounds [200 x i64], ptr %5, i64 0, i64 %104
  store i64 %103, ptr %105, align 8, !tbaa !11
  br label %106

106:                                              ; preds = %76
  %107 = load i64, ptr %6, align 8, !tbaa !11
  %108 = add nsw i64 %107, 1
  store i64 %108, ptr %6, align 8, !tbaa !11
  br label %71, !llvm.loop !18

109:                                              ; preds = %75
  %110 = load i64, ptr %2, align 8, !tbaa !11
  %111 = sub nsw i64 %110, 1
  %112 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %3, i64 0, i64 %111
  %113 = getelementptr inbounds %"struct.std::pair", ptr %112, i32 0, i32 0
  %114 = load i64, ptr %113, align 16, !tbaa !15
  %115 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %3, i64 0, i64 0
  %116 = getelementptr inbounds %"struct.std::pair", ptr %115, i32 0, i32 0
  %117 = load i64, ptr %116, align 16, !tbaa !15
  %118 = sub nsw i64 %114, %117
  %119 = load i64, ptr %2, align 8, !tbaa !11
  %120 = sub nsw i64 %119, 1
  %121 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %3, i64 0, i64 %120
  %122 = getelementptr inbounds %"struct.std::pair", ptr %121, i32 0, i32 1
  %123 = load i64, ptr %122, align 8, !tbaa !17
  %124 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %3, i64 0, i64 0
  %125 = getelementptr inbounds %"struct.std::pair", ptr %124, i32 0, i32 1
  %126 = load i64, ptr %125, align 8, !tbaa !17
  %127 = sub nsw i64 %123, %126
  %128 = add nsw i64 %118, %127
  %129 = call noundef i64 @_ZSt3absx(i64 noundef %128)
  %130 = load i64, ptr %2, align 8, !tbaa !11
  %131 = sub nsw i64 %130, 1
  %132 = getelementptr inbounds [200 x i64], ptr %5, i64 0, i64 %131
  store i64 %129, ptr %132, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %133 = load i64, ptr %2, align 8, !tbaa !11
  %134 = sub nsw i64 %133, 2
  store i64 %134, ptr %7, align 8, !tbaa !11
  br label %135

135:                                              ; preds = %202, %109
  %136 = load i64, ptr %7, align 8, !tbaa !11
  %137 = icmp sgt i64 %136, 0
  br i1 %137, label %139, label %138

138:                                              ; preds = %135
  store i32 8, ptr %8, align 4
  br label %205

139:                                              ; preds = %135
  %140 = load i64, ptr %7, align 8, !tbaa !11
  %141 = add nsw i64 %140, 1
  %142 = getelementptr inbounds [200 x i64], ptr %5, i64 0, i64 %141
  %143 = load i64, ptr %142, align 8, !tbaa !11
  %144 = load i64, ptr %7, align 8, !tbaa !11
  %145 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %3, i64 0, i64 %144
  %146 = getelementptr inbounds %"struct.std::pair", ptr %145, i32 0, i32 0
  %147 = load i64, ptr %146, align 16, !tbaa !15
  %148 = load i64, ptr %7, align 8, !tbaa !11
  %149 = add nsw i64 %148, 1
  %150 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %3, i64 0, i64 %149
  %151 = getelementptr inbounds %"struct.std::pair", ptr %150, i32 0, i32 0
  %152 = load i64, ptr %151, align 16, !tbaa !15
  %153 = sub nsw i64 %147, %152
  %154 = load i64, ptr %7, align 8, !tbaa !11
  %155 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %3, i64 0, i64 %154
  %156 = getelementptr inbounds %"struct.std::pair", ptr %155, i32 0, i32 1
  %157 = load i64, ptr %156, align 8, !tbaa !17
  %158 = load i64, ptr %7, align 8, !tbaa !11
  %159 = add nsw i64 %158, 1
  %160 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %3, i64 0, i64 %159
  %161 = getelementptr inbounds %"struct.std::pair", ptr %160, i32 0, i32 1
  %162 = load i64, ptr %161, align 8, !tbaa !17
  %163 = sub nsw i64 %157, %162
  %164 = add nsw i64 %153, %163
  %165 = call noundef i64 @_ZSt3absx(i64 noundef %164)
  %166 = add nsw i64 %143, %165
  %167 = load i64, ptr %7, align 8, !tbaa !11
  %168 = getelementptr inbounds [200 x i64], ptr %5, i64 0, i64 %167
  %169 = load i64, ptr %168, align 8, !tbaa !11
  %170 = icmp sge i64 %166, %169
  br i1 %170, label %171, label %172

171:                                              ; preds = %139
  store i32 8, ptr %8, align 4
  br label %205

172:                                              ; preds = %139
  %173 = load i64, ptr %7, align 8, !tbaa !11
  %174 = add nsw i64 %173, 1
  %175 = getelementptr inbounds [200 x i64], ptr %5, i64 0, i64 %174
  %176 = load i64, ptr %175, align 8, !tbaa !11
  %177 = load i64, ptr %7, align 8, !tbaa !11
  %178 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %3, i64 0, i64 %177
  %179 = getelementptr inbounds %"struct.std::pair", ptr %178, i32 0, i32 0
  %180 = load i64, ptr %179, align 16, !tbaa !15
  %181 = load i64, ptr %7, align 8, !tbaa !11
  %182 = add nsw i64 %181, 1
  %183 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %3, i64 0, i64 %182
  %184 = getelementptr inbounds %"struct.std::pair", ptr %183, i32 0, i32 0
  %185 = load i64, ptr %184, align 16, !tbaa !15
  %186 = sub nsw i64 %180, %185
  %187 = load i64, ptr %7, align 8, !tbaa !11
  %188 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %3, i64 0, i64 %187
  %189 = getelementptr inbounds %"struct.std::pair", ptr %188, i32 0, i32 1
  %190 = load i64, ptr %189, align 8, !tbaa !17
  %191 = load i64, ptr %7, align 8, !tbaa !11
  %192 = add nsw i64 %191, 1
  %193 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %3, i64 0, i64 %192
  %194 = getelementptr inbounds %"struct.std::pair", ptr %193, i32 0, i32 1
  %195 = load i64, ptr %194, align 8, !tbaa !17
  %196 = sub nsw i64 %190, %195
  %197 = add nsw i64 %186, %196
  %198 = call noundef i64 @_ZSt3absx(i64 noundef %197)
  %199 = add nsw i64 %176, %198
  %200 = load i64, ptr %7, align 8, !tbaa !11
  %201 = getelementptr inbounds [200 x i64], ptr %5, i64 0, i64 %200
  store i64 %199, ptr %201, align 8, !tbaa !11
  br label %202

202:                                              ; preds = %172
  %203 = load i64, ptr %7, align 8, !tbaa !11
  %204 = add nsw i64 %203, -1
  store i64 %204, ptr %7, align 8, !tbaa !11
  br label %135, !llvm.loop !19

205:                                              ; preds = %171, %138
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  br label %206

206:                                              ; preds = %205
  call void @llvm.lifetime.start.p0(i64 200, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  store i64 0, ptr %10, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  store i64 1, ptr %11, align 8, !tbaa !11
  br label %207

207:                                              ; preds = %299, %206
  %208 = load i64, ptr %11, align 8, !tbaa !11
  %209 = load i64, ptr %2, align 8, !tbaa !11
  %210 = icmp sle i64 %208, %209
  br i1 %210, label %212, label %211

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

212:                                              ; preds = %207
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %213 = load i64, ptr %11, align 8, !tbaa !11
  %214 = sub nsw i64 %213, 1
  store i64 %214, ptr %12, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %215 = load i64, ptr %11, align 8, !tbaa !11
  %216 = add nsw i64 %215, 1
  store i64 %216, ptr %13, align 8, !tbaa !11
  %217 = load i64, ptr %12, align 8, !tbaa !11
  %218 = icmp slt i64 %217, 0
  br i1 %218, label %219, label %223

219:                                              ; preds = %212
  %220 = load i64, ptr %2, align 8, !tbaa !11
  %221 = load i64, ptr %12, align 8, !tbaa !11
  %222 = add nsw i64 %221, %220
  store i64 %222, ptr %12, align 8, !tbaa !11
  br label %223

223:                                              ; preds = %219, %212
  %224 = load i64, ptr %2, align 8, !tbaa !11
  %225 = load i64, ptr %13, align 8, !tbaa !11
  %226 = srem i64 %225, %224
  store i64 %226, ptr %13, align 8, !tbaa !11
  %227 = load i64, ptr %11, align 8, !tbaa !11
  %228 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %3, i64 0, i64 %227
  %229 = getelementptr inbounds %"struct.std::pair", ptr %228, i32 0, i32 0
  %230 = load i64, ptr %229, align 16, !tbaa !15
  %231 = load i64, ptr %12, align 8, !tbaa !11
  %232 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %3, i64 0, i64 %231
  %233 = getelementptr inbounds %"struct.std::pair", ptr %232, i32 0, i32 0
  %234 = load i64, ptr %233, align 16, !tbaa !15
  %235 = icmp ne i64 %230, %234
  br i1 %235, label %236, label %267

236:                                              ; preds = %223
  %237 = load i64, ptr %11, align 8, !tbaa !11
  %238 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %3, i64 0, i64 %237
  %239 = getelementptr inbounds %"struct.std::pair", ptr %238, i32 0, i32 0
  %240 = load i64, ptr %239, align 16, !tbaa !15
  %241 = load i64, ptr %12, align 8, !tbaa !11
  %242 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %3, i64 0, i64 %241
  %243 = getelementptr inbounds %"struct.std::pair", ptr %242, i32 0, i32 0
  %244 = load i64, ptr %243, align 16, !tbaa !15
  %245 = sub nsw i64 %240, %244
  %246 = call noundef zeroext i1 @_ZSt7signbitIxEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEbE6__typeES2_(i64 noundef %245)
  %247 = zext i1 %246 to i32
  %248 = load i64, ptr %13, align 8, !tbaa !11
  %249 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %3, i64 0, i64 %248
  %250 = getelementptr inbounds %"struct.std::pair", ptr %249, i32 0, i32 1
  %251 = load i64, ptr %250, align 8, !tbaa !17
  %252 = load i64, ptr %11, align 8, !tbaa !11
  %253 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %3, i64 0, i64 %252
  %254 = getelementptr inbounds %"struct.std::pair", ptr %253, i32 0, i32 1
  %255 = load i64, ptr %254, align 8, !tbaa !17
  %256 = sub nsw i64 %251, %255
  %257 = call noundef zeroext i1 @_ZSt7signbitIxEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEbE6__typeES2_(i64 noundef %256)
  %258 = zext i1 %257 to i32
  %259 = icmp eq i32 %247, %258
  br i1 %259, label %260, label %263

260:                                              ; preds = %236
  %261 = load i64, ptr %11, align 8, !tbaa !11
  %262 = getelementptr inbounds [200 x i8], ptr %9, i64 0, i64 %261
  store i8 76, ptr %262, align 1, !tbaa !20
  br label %266

263:                                              ; preds = %236
  %264 = load i64, ptr %11, align 8, !tbaa !11
  %265 = getelementptr inbounds [200 x i8], ptr %9, i64 0, i64 %264
  store i8 82, ptr %265, align 1, !tbaa !20
  br label %266

266:                                              ; preds = %263, %260
  br label %298

267:                                              ; preds = %223
  %268 = load i64, ptr %11, align 8, !tbaa !11
  %269 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %3, i64 0, i64 %268
  %270 = getelementptr inbounds %"struct.std::pair", ptr %269, i32 0, i32 1
  %271 = load i64, ptr %270, align 8, !tbaa !17
  %272 = load i64, ptr %12, align 8, !tbaa !11
  %273 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %3, i64 0, i64 %272
  %274 = getelementptr inbounds %"struct.std::pair", ptr %273, i32 0, i32 1
  %275 = load i64, ptr %274, align 8, !tbaa !17
  %276 = sub nsw i64 %271, %275
  %277 = call noundef zeroext i1 @_ZSt7signbitIxEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEbE6__typeES2_(i64 noundef %276)
  %278 = zext i1 %277 to i32
  %279 = load i64, ptr %13, align 8, !tbaa !11
  %280 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %3, i64 0, i64 %279
  %281 = getelementptr inbounds %"struct.std::pair", ptr %280, i32 0, i32 0
  %282 = load i64, ptr %281, align 16, !tbaa !15
  %283 = load i64, ptr %11, align 8, !tbaa !11
  %284 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %3, i64 0, i64 %283
  %285 = getelementptr inbounds %"struct.std::pair", ptr %284, i32 0, i32 0
  %286 = load i64, ptr %285, align 16, !tbaa !15
  %287 = sub nsw i64 %282, %286
  %288 = call noundef zeroext i1 @_ZSt7signbitIxEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEbE6__typeES2_(i64 noundef %287)
  %289 = zext i1 %288 to i32
  %290 = icmp eq i32 %278, %289
  br i1 %290, label %291, label %294

291:                                              ; preds = %267
  %292 = load i64, ptr %11, align 8, !tbaa !11
  %293 = getelementptr inbounds [200 x i8], ptr %9, i64 0, i64 %292
  store i8 82, ptr %293, align 1, !tbaa !20
  br label %297

294:                                              ; preds = %267
  %295 = load i64, ptr %11, align 8, !tbaa !11
  %296 = getelementptr inbounds [200 x i8], ptr %9, i64 0, i64 %295
  store i8 76, ptr %296, align 1, !tbaa !20
  br label %297

297:                                              ; preds = %294, %291
  br label %298

298:                                              ; preds = %297, %266
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %299

299:                                              ; preds = %298
  %300 = load i64, ptr %11, align 8, !tbaa !11
  %301 = add nsw i64 %300, 1
  store i64 %301, ptr %11, align 8, !tbaa !11
  br label %207, !llvm.loop !21

302:                                              ; preds = %211
  call void @llvm.lifetime.start.p0(i64 48, ptr %14) #8
  call void @_ZNSt8multisetISt6vectorIxSaIxEESt4lessIS2_ESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %14) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #8
  call void @_ZNSt6vectorIxSaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  store i64 1, ptr %16, align 8, !tbaa !11
  br label %303

303:                                              ; preds = %397, %302
  %304 = load i64, ptr %16, align 8, !tbaa !11
  %305 = load i64, ptr %2, align 8, !tbaa !11
  %306 = icmp slt i64 %304, %305
  br i1 %306, label %308, label %307

307:                                              ; preds = %303
  store i32 14, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %401

308:                                              ; preds = %303
  call void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %309 = load i64, ptr %16, align 8, !tbaa !11
  %310 = getelementptr inbounds [200 x i8], ptr %9, i64 0, i64 %309
  %311 = load i8, ptr %310, align 1, !tbaa !20
  %312 = sext i8 %311 to i64
  store i64 %312, ptr %17, align 8, !tbaa !11
  invoke void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %313 unwind label %321

313:                                              ; preds = %308
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  store i64 0, ptr %20, align 8, !tbaa !11
  br label %314

314:                                              ; preds = %388, %313
  %315 = load i64, ptr %16, align 8, !tbaa !11
  %316 = load i64, ptr %20, align 8, !tbaa !11
  %317 = add nsw i64 %315, %316
  %318 = load i64, ptr %2, align 8, !tbaa !11
  %319 = icmp slt i64 %317, %318
  br i1 %319, label %325, label %320

320:                                              ; preds = %314
  store i32 17, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br label %396

321:                                              ; preds = %308
  %322 = landingpad { ptr, i32 }
          cleanup
  %323 = extractvalue { ptr, i32 } %322, 0
  store ptr %323, ptr %18, align 8
  %324 = extractvalue { ptr, i32 } %322, 1
  store i32 %324, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %400

325:                                              ; preds = %314
  %326 = load i64, ptr %20, align 8, !tbaa !11
  %327 = icmp sgt i64 %326, 0
  br i1 %327, label %328, label %384

328:                                              ; preds = %325
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %329 = load i64, ptr %16, align 8, !tbaa !11
  %330 = load i64, ptr %20, align 8, !tbaa !11
  %331 = add nsw i64 %329, %330
  %332 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %3, i64 0, i64 %331
  %333 = getelementptr inbounds %"struct.std::pair", ptr %332, i32 0, i32 1
  %334 = load i64, ptr %333, align 8, !tbaa !17
  %335 = load i64, ptr %16, align 8, !tbaa !11
  %336 = load i64, ptr %20, align 8, !tbaa !11
  %337 = add nsw i64 %335, %336
  %338 = sub nsw i64 %337, 1
  %339 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %3, i64 0, i64 %338
  %340 = getelementptr inbounds %"struct.std::pair", ptr %339, i32 0, i32 1
  %341 = load i64, ptr %340, align 8, !tbaa !17
  %342 = sub nsw i64 %334, %341
  %343 = load i64, ptr %16, align 8, !tbaa !11
  %344 = load i64, ptr %20, align 8, !tbaa !11
  %345 = add nsw i64 %343, %344
  %346 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %3, i64 0, i64 %345
  %347 = getelementptr inbounds %"struct.std::pair", ptr %346, i32 0, i32 0
  %348 = load i64, ptr %347, align 16, !tbaa !15
  %349 = load i64, ptr %16, align 8, !tbaa !11
  %350 = load i64, ptr %20, align 8, !tbaa !11
  %351 = add nsw i64 %349, %350
  %352 = sub nsw i64 %351, 1
  %353 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %3, i64 0, i64 %352
  %354 = getelementptr inbounds %"struct.std::pair", ptr %353, i32 0, i32 0
  %355 = load i64, ptr %354, align 16, !tbaa !15
  %356 = sub nsw i64 %348, %355
  %357 = add nsw i64 %342, %356
  %358 = invoke noundef i64 @_ZSt3absx(i64 noundef %357)
          to label %359 unwind label %366

359:                                              ; preds = %328
  store i64 %358, ptr %21, align 8, !tbaa !11
  %360 = load i64, ptr %16, align 8, !tbaa !11
  %361 = load i64, ptr %20, align 8, !tbaa !11
  %362 = add nsw i64 %360, %361
  %363 = load i64, ptr %2, align 8, !tbaa !11
  %364 = icmp eq i64 %362, %363
  br i1 %364, label %365, label %370

365:                                              ; preds = %359
  store i64 -123456, ptr %21, align 8, !tbaa !11
  br label %370

366:                                              ; preds = %370, %328
  %367 = landingpad { ptr, i32 }
          cleanup
  %368 = extractvalue { ptr, i32 } %367, 0
  store ptr %368, ptr %18, align 8
  %369 = extractvalue { ptr, i32 } %367, 1
  store i32 %369, ptr %19, align 4
  br label %383

370:                                              ; preds = %365, %359
  invoke void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %371 unwind label %366

371:                                              ; preds = %370
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %372 = load i64, ptr %16, align 8, !tbaa !11
  %373 = load i64, ptr %20, align 8, !tbaa !11
  %374 = add nsw i64 %372, %373
  %375 = getelementptr inbounds [200 x i8], ptr %9, i64 0, i64 %374
  %376 = load i8, ptr %375, align 1, !tbaa !20
  %377 = sext i8 %376 to i64
  store i64 %377, ptr %22, align 8, !tbaa !11
  invoke void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %378 unwind label %379

378:                                              ; preds = %371
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  br label %384

379:                                              ; preds = %371
  %380 = landingpad { ptr, i32 }
          cleanup
  %381 = extractvalue { ptr, i32 } %380, 0
  store ptr %381, ptr %18, align 8
  %382 = extractvalue { ptr, i32 } %380, 1
  store i32 %382, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %383

383:                                              ; preds = %379, %366
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  br label %395

384:                                              ; preds = %378, %325
  %385 = invoke ptr @_ZNSt8multisetISt6vectorIxSaIxEESt4lessIS2_ESaIS2_EE6insertERKS2_(ptr noundef nonnull align 8 dereferenceable(48) %14, ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %386 unwind label %391

386:                                              ; preds = %384
  %387 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %23, i32 0, i32 0
  store ptr %385, ptr %387, align 8
  br label %388

388:                                              ; preds = %386
  %389 = load i64, ptr %20, align 8, !tbaa !11
  %390 = add nsw i64 %389, 1
  store i64 %390, ptr %20, align 8, !tbaa !11
  br label %314, !llvm.loop !22

391:                                              ; preds = %384
  %392 = landingpad { ptr, i32 }
          cleanup
  %393 = extractvalue { ptr, i32 } %392, 0
  store ptr %393, ptr %18, align 8
  %394 = extractvalue { ptr, i32 } %392, 1
  store i32 %394, ptr %19, align 4
  br label %395

395:                                              ; preds = %391, %383
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br label %400

396:                                              ; preds = %320
  br label %397

397:                                              ; preds = %396
  %398 = load i64, ptr %16, align 8, !tbaa !11
  %399 = add nsw i64 %398, 1
  store i64 %399, ptr %16, align 8, !tbaa !11
  br label %303, !llvm.loop !23

400:                                              ; preds = %395, %321
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %550

401:                                              ; preds = %307
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  store i64 0, ptr %24, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  store i64 1, ptr %25, align 8, !tbaa !11
  br label %402

402:                                              ; preds = %530, %401
  %403 = load i64, ptr %25, align 8, !tbaa !11
  %404 = load i64, ptr %2, align 8, !tbaa !11
  %405 = icmp slt i64 %403, %404
  br i1 %405, label %407, label %406

406:                                              ; preds = %402
  store i32 20, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  br label %538

407:                                              ; preds = %402
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  store i64 0, ptr %26, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  store i64 0, ptr %27, align 8, !tbaa !11
  call void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  %408 = load i64, ptr %25, align 8, !tbaa !11
  %409 = getelementptr inbounds [200 x i8], ptr %9, i64 0, i64 %408
  %410 = load i8, ptr %409, align 1, !tbaa !20
  %411 = sext i8 %410 to i64
  store i64 %411, ptr %28, align 8, !tbaa !11
  invoke void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(8) %28)
          to label %412 unwind label %420

412:                                              ; preds = %407
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  store i64 0, ptr %29, align 8, !tbaa !11
  br label %413

413:                                              ; preds = %508, %412
  %414 = load i64, ptr %25, align 8, !tbaa !11
  %415 = load i64, ptr %29, align 8, !tbaa !11
  %416 = add nsw i64 %414, %415
  %417 = load i64, ptr %2, align 8, !tbaa !11
  %418 = icmp slt i64 %416, %417
  br i1 %418, label %424, label %419

419:                                              ; preds = %413
  store i32 23, ptr %8, align 4
  br label %511

420:                                              ; preds = %407
  %421 = landingpad { ptr, i32 }
          cleanup
  %422 = extractvalue { ptr, i32 } %421, 0
  store ptr %422, ptr %18, align 8
  %423 = extractvalue { ptr, i32 } %421, 1
  store i32 %423, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  br label %537

424:                                              ; preds = %413
  %425 = load i64, ptr %29, align 8, !tbaa !11
  %426 = icmp sgt i64 %425, 0
  br i1 %426, label %427, label %486

427:                                              ; preds = %424
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  %428 = load i64, ptr %25, align 8, !tbaa !11
  %429 = load i64, ptr %29, align 8, !tbaa !11
  %430 = add nsw i64 %428, %429
  %431 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %3, i64 0, i64 %430
  %432 = getelementptr inbounds %"struct.std::pair", ptr %431, i32 0, i32 1
  %433 = load i64, ptr %432, align 8, !tbaa !17
  %434 = load i64, ptr %25, align 8, !tbaa !11
  %435 = load i64, ptr %29, align 8, !tbaa !11
  %436 = add nsw i64 %434, %435
  %437 = sub nsw i64 %436, 1
  %438 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %3, i64 0, i64 %437
  %439 = getelementptr inbounds %"struct.std::pair", ptr %438, i32 0, i32 1
  %440 = load i64, ptr %439, align 8, !tbaa !17
  %441 = sub nsw i64 %433, %440
  %442 = load i64, ptr %25, align 8, !tbaa !11
  %443 = load i64, ptr %29, align 8, !tbaa !11
  %444 = add nsw i64 %442, %443
  %445 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %3, i64 0, i64 %444
  %446 = getelementptr inbounds %"struct.std::pair", ptr %445, i32 0, i32 0
  %447 = load i64, ptr %446, align 16, !tbaa !15
  %448 = load i64, ptr %25, align 8, !tbaa !11
  %449 = load i64, ptr %29, align 8, !tbaa !11
  %450 = add nsw i64 %448, %449
  %451 = sub nsw i64 %450, 1
  %452 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %3, i64 0, i64 %451
  %453 = getelementptr inbounds %"struct.std::pair", ptr %452, i32 0, i32 0
  %454 = load i64, ptr %453, align 16, !tbaa !15
  %455 = sub nsw i64 %447, %454
  %456 = add nsw i64 %441, %455
  %457 = invoke noundef i64 @_ZSt3absx(i64 noundef %456)
          to label %458 unwind label %465

458:                                              ; preds = %427
  store i64 %457, ptr %30, align 8, !tbaa !11
  %459 = load i64, ptr %25, align 8, !tbaa !11
  %460 = load i64, ptr %29, align 8, !tbaa !11
  %461 = add nsw i64 %459, %460
  %462 = load i64, ptr %2, align 8, !tbaa !11
  %463 = icmp eq i64 %461, %462
  br i1 %463, label %464, label %469

464:                                              ; preds = %458
  store i64 -123456, ptr %30, align 8, !tbaa !11
  br label %469

465:                                              ; preds = %469, %427
  %466 = landingpad { ptr, i32 }
          cleanup
  %467 = extractvalue { ptr, i32 } %466, 0
  store ptr %467, ptr %18, align 8
  %468 = extractvalue { ptr, i32 } %466, 1
  store i32 %468, ptr %19, align 4
  br label %485

469:                                              ; preds = %464, %458
  invoke void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(8) %30)
          to label %470 unwind label %465

470:                                              ; preds = %469
  %471 = load i64, ptr %30, align 8, !tbaa !11
  %472 = load i64, ptr %27, align 8, !tbaa !11
  %473 = add nsw i64 %472, %471
  store i64 %473, ptr %27, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %474 = load i64, ptr %25, align 8, !tbaa !11
  %475 = load i64, ptr %29, align 8, !tbaa !11
  %476 = add nsw i64 %474, %475
  %477 = getelementptr inbounds [200 x i8], ptr %9, i64 0, i64 %476
  %478 = load i8, ptr %477, align 1, !tbaa !20
  %479 = sext i8 %478 to i64
  store i64 %479, ptr %31, align 8, !tbaa !11
  invoke void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(8) %31)
          to label %480 unwind label %481

480:                                              ; preds = %470
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  br label %486

481:                                              ; preds = %470
  %482 = landingpad { ptr, i32 }
          cleanup
  %483 = extractvalue { ptr, i32 } %482, 0
  store ptr %483, ptr %18, align 8
  %484 = extractvalue { ptr, i32 } %482, 1
  store i32 %484, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  br label %485

485:                                              ; preds = %481, %465
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  br label %512

486:                                              ; preds = %480, %424
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  %487 = invoke noundef i64 @_ZNKSt8multisetISt6vectorIxSaIxEESt4lessIS2_ESaIS2_EE5countERKS2_(ptr noundef nonnull align 8 dereferenceable(48) %14, ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %488 unwind label %493

488:                                              ; preds = %486
  store i64 %487, ptr %32, align 8, !tbaa !11
  %489 = load i64, ptr %32, align 8, !tbaa !11
  %490 = icmp sgt i64 %489, 0
  br i1 %490, label %491, label %492

491:                                              ; preds = %488
  br label %498

492:                                              ; preds = %488
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.5, i32 noundef 96, ptr noundef @__PRETTY_FUNCTION__.main) #9
  unreachable

493:                                              ; preds = %498, %486
  %494 = landingpad { ptr, i32 }
          cleanup
  %495 = extractvalue { ptr, i32 } %494, 0
  store ptr %495, ptr %18, align 8
  %496 = extractvalue { ptr, i32 } %494, 1
  store i32 %496, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  br label %512

497:                                              ; No predecessors!
  br label %498

498:                                              ; preds = %497, %491
  %499 = invoke noundef i64 @_ZNKSt8multisetISt6vectorIxSaIxEESt4lessIS2_ESaIS2_EE5countERKS2_(ptr noundef nonnull align 8 dereferenceable(48) %14, ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %500 unwind label %493

500:                                              ; preds = %498
  %501 = icmp eq i64 %499, 1
  br i1 %501, label %502, label %504

502:                                              ; preds = %500
  %503 = load i64, ptr %29, align 8, !tbaa !11
  store i64 %503, ptr %26, align 8, !tbaa !11
  store i32 23, ptr %8, align 4
  br label %505

504:                                              ; preds = %500
  store i32 0, ptr %8, align 4
  br label %505

505:                                              ; preds = %504, %502
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  %506 = load i32, ptr %8, align 4
  switch i32 %506, label %511 [
    i32 0, label %507
  ]

507:                                              ; preds = %505
  br label %508

508:                                              ; preds = %507
  %509 = load i64, ptr %29, align 8, !tbaa !11
  %510 = add nsw i64 %509, 1
  store i64 %510, ptr %29, align 8, !tbaa !11
  br label %413, !llvm.loop !24

511:                                              ; preds = %505, %419
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  br label %513

512:                                              ; preds = %493, %485
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  br label %537

513:                                              ; preds = %511
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #8
  %514 = load i64, ptr %27, align 8, !tbaa !11
  %515 = load i64, ptr %25, align 8, !tbaa !11
  %516 = load i64, ptr %26, align 8, !tbaa !11
  %517 = add nsw i64 %515, %516
  %518 = load i64, ptr %2, align 8, !tbaa !11
  %519 = srem i64 %517, %518
  %520 = getelementptr inbounds [200 x i64], ptr %5, i64 0, i64 %519
  %521 = load i64, ptr %520, align 8, !tbaa !11
  %522 = add nsw i64 %514, %521
  %523 = load i64, ptr %25, align 8, !tbaa !11
  %524 = getelementptr inbounds [200 x i64], ptr %5, i64 0, i64 %523
  %525 = load i64, ptr %524, align 8, !tbaa !11
  %526 = sub nsw i64 %522, %525
  store i64 %526, ptr %33, align 8, !tbaa !11
  %527 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %33)
          to label %528 unwind label %533

528:                                              ; preds = %513
  %529 = load i64, ptr %527, align 8, !tbaa !11
  store i64 %529, ptr %24, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  br label %530

530:                                              ; preds = %528
  %531 = load i64, ptr %25, align 8, !tbaa !11
  %532 = add nsw i64 %531, 1
  store i64 %532, ptr %25, align 8, !tbaa !11
  br label %402, !llvm.loop !25

533:                                              ; preds = %513
  %534 = landingpad { ptr, i32 }
          cleanup
  %535 = extractvalue { ptr, i32 } %534, 0
  store ptr %535, ptr %18, align 8
  %536 = extractvalue { ptr, i32 } %534, 1
  store i32 %536, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  br label %537

537:                                              ; preds = %533, %512, %420
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  br label %549

538:                                              ; preds = %406
  %539 = load i64, ptr %24, align 8, !tbaa !11
  %540 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %539)
          to label %541 unwind label %545

541:                                              ; preds = %538
  %542 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %540, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %543 unwind label %545

543:                                              ; preds = %541
  store i32 0, ptr %1, align 4
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #8
  call void @_ZNSt8multisetISt6vectorIxSaIxEESt4lessIS2_ESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %14) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 200, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 1600, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 3200, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #8
  %544 = load i32, ptr %1, align 4
  ret i32 %544

545:                                              ; preds = %541, %538
  %546 = landingpad { ptr, i32 }
          cleanup
  %547 = extractvalue { ptr, i32 } %546, 0
  store ptr %547, ptr %18, align 8
  %548 = extractvalue { ptr, i32 } %546, 1
  store i32 %548, ptr %19, align 4
  br label %549

549:                                              ; preds = %545, %537
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  br label %550

550:                                              ; preds = %549, %400
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #8
  call void @_ZNSt8multisetISt6vectorIxSaIxEESt4lessIS2_ESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %14) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 200, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 1600, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 3200, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #8
  br label %551

551:                                              ; preds = %550
  %552 = load ptr, ptr %18, align 8
  %553 = load i32, ptr %19, align 4
  %554 = insertvalue { ptr, i32 } poison, ptr %552, 0
  %555 = insertvalue { ptr, i32 } %554, i32 %553, 1
  resume { ptr, i32 } %555
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #1

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) #2 align 2

declare ptr @freopen(ptr noundef, ptr noundef, ptr noundef) #1

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZSt3absx(i64 noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSt7signbitIxEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEbE6__typeES2_(i64 noundef) #2

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #6

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #4 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) #4 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)) #7

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

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

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { nounwind }
attributes #9 = { noreturn 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long long", !10, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !12, i64 0}
!16 = !{!"_ZTSSt4pairIxxE", !12, i64 0, !12, i64 8}
!17 = !{!16, !12, i64 8}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = !{!10, !10, i64 0}
!21 = distinct !{!21, !14}
!22 = distinct !{!22, !14}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !14}
!25 = distinct !{!25, !14}


; 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::basic_istream" = type { ptr, i64, %"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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"struct.std::pair" = type { i64, i64 }
%"class.std::multiset" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::vector<long long>, std::vector<long long>, std::_Identity<std::vector<long long>>, std::less<std::vector<long long>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::vector<long long>, std::vector<long long>, std::_Identity<std::vector<long long>>, std::less<std::vector<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 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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 }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [106 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i64, align 8
  %2 = alloca [200 x %"struct.std::pair"], align 16
  %3 = alloca [200 x i64], align 16
  %4 = alloca [200 x i8], align 16
  %5 = alloca %"class.std::multiset", align 8
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %16 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %17 = getelementptr i8, ptr %16, i64 -24
  %18 = load i64, ptr %17, align 8
  %19 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %18
  %20 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %19, ptr noundef null)
  %21 = load ptr, ptr @stdin, align 8, !tbaa !8
  %22 = tail call ptr @freopen(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef %21)
  %23 = load ptr, ptr @stdout, align 8, !tbaa !8
  %24 = tail call ptr @freopen(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, ptr noundef %23)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #8
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %1)
  call void @llvm.lifetime.start.p0(i64 3200, ptr nonnull %2) #8
  br label %26

26:                                               ; preds = %26, %0
  %.idx = phi i64 [ 0, %0 ], [ %.add, %26 ]
  %.ptr = getelementptr inbounds i8, ptr %2, i64 %.idx
  call void @_ZNSt4pairIxxEC2IxxTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 8 dereferenceable(16) %.ptr)
  %.add = add nuw nsw i64 %.idx, 16
  %27 = icmp eq i64 %.add, 3200
  br i1 %27, label %.preheader, label %26

.preheader:                                       ; preds = %26
  %28 = load i64, ptr %1, align 8, !tbaa !11
  %29 = icmp sgt i64 %28, 0
  br i1 %29, label %.lr.ph, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %.preheader
  call void @llvm.lifetime.start.p0(i64 1600, ptr nonnull %3) #8
  store i64 0, ptr %3, align 16, !tbaa !11
  br label %._crit_edge161

._crit_edge:                                      ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 1600, ptr nonnull %3) #8
  store i64 0, ptr %3, align 16, !tbaa !11
  %30 = icmp sgt i64 %36, 1
  br i1 %30, label %.lr.ph160, label %._crit_edge161

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %.0101157 = phi i64 [ %35, %.lr.ph ], [ 0, %.preheader ]
  %31 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %2, i64 0, i64 %.0101157
  %32 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %31)
  %33 = getelementptr inbounds i8, ptr %31, i64 8
  %34 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull align 8 dereferenceable(8) %33)
  %35 = add nuw nsw i64 %.0101157, 1
  %36 = load i64, ptr %1, align 8, !tbaa !11
  %37 = icmp slt i64 %35, %36
  br i1 %37, label %.lr.ph, label %._crit_edge, !llvm.loop !13

._crit_edge161:                                   ; preds = %.lr.ph160, %._crit_edge.thread, %._crit_edge
  %.lcssa = phi i64 [ %36, %._crit_edge ], [ %28, %._crit_edge.thread ], [ %72, %.lr.ph160 ]
  %38 = add nsw i64 %.lcssa, -1
  %39 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %2, i64 0, i64 %38
  %40 = load i64, ptr %39, align 16, !tbaa !15
  %41 = load i64, ptr %2, align 16, !tbaa !15
  %42 = getelementptr inbounds i8, ptr %39, i64 8
  %43 = load i64, ptr %42, align 8, !tbaa !17
  %44 = getelementptr inbounds i8, ptr %2, i64 8
  %45 = load i64, ptr %44, align 8, !tbaa !17
  %46 = add i64 %40, %43
  %47 = add i64 %41, %45
  %48 = sub i64 %46, %47
  %49 = call noundef i64 @_ZSt3absx(i64 noundef %48)
  %50 = load i64, ptr %1, align 8, !tbaa !11
  %51 = add nsw i64 %50, -1
  %52 = getelementptr inbounds [200 x i64], ptr %3, i64 0, i64 %51
  store i64 %49, ptr %52, align 8, !tbaa !11
  %53 = icmp sgt i64 %50, 2
  br i1 %53, label %.lr.ph164.preheader, label %._crit_edge165

.lr.ph164.preheader:                              ; preds = %._crit_edge161
  %54 = add nsw i64 %50, -2
  br label %.lr.ph164

.lr.ph160:                                        ; preds = %._crit_edge, %.lr.ph160
  %55 = phi i64 [ %69, %.lr.ph160 ], [ 0, %._crit_edge ]
  %.0117158 = phi i64 [ %71, %.lr.ph160 ], [ 1, %._crit_edge ]
  %56 = add nsw i64 %.0117158, -1
  %57 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %2, i64 0, i64 %.0117158
  %58 = load i64, ptr %57, align 16, !tbaa !15
  %59 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %2, i64 0, i64 %56
  %60 = load i64, ptr %59, align 16, !tbaa !15
  %61 = getelementptr inbounds i8, ptr %57, i64 8
  %62 = load i64, ptr %61, align 8, !tbaa !17
  %63 = getelementptr inbounds i8, ptr %59, i64 8
  %64 = load i64, ptr %63, align 8, !tbaa !17
  %65 = add i64 %58, %62
  %66 = add i64 %60, %64
  %67 = sub i64 %65, %66
  %68 = call noundef i64 @_ZSt3absx(i64 noundef %67)
  %69 = add nsw i64 %68, %55
  %70 = getelementptr inbounds [200 x i64], ptr %3, i64 0, i64 %.0117158
  store i64 %69, ptr %70, align 8, !tbaa !11
  %71 = add nuw nsw i64 %.0117158, 1
  %72 = load i64, ptr %1, align 8, !tbaa !11
  %73 = icmp slt i64 %71, %72
  br i1 %73, label %.lr.ph160, label %._crit_edge161, !llvm.loop !18

.lr.ph164:                                        ; preds = %.lr.ph164.preheader, %91
  %74 = phi i64 [ %100, %91 ], [ %49, %.lr.ph164.preheader ]
  %.0119162 = phi i64 [ %101, %91 ], [ %54, %.lr.ph164.preheader ]
  %75 = add nuw nsw i64 %.0119162, 1
  %76 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %2, i64 0, i64 %.0119162
  %77 = load i64, ptr %76, align 16, !tbaa !15
  %78 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %2, i64 0, i64 %75
  %79 = load i64, ptr %78, align 16, !tbaa !15
  %80 = getelementptr inbounds i8, ptr %76, i64 8
  %81 = load i64, ptr %80, align 8, !tbaa !17
  %82 = getelementptr inbounds i8, ptr %78, i64 8
  %83 = load i64, ptr %82, align 8, !tbaa !17
  %84 = add i64 %77, %81
  %85 = add i64 %79, %83
  %86 = sub i64 %84, %85
  %87 = call noundef i64 @_ZSt3absx(i64 noundef %86)
  %88 = add nsw i64 %87, %74
  %89 = getelementptr inbounds [200 x i64], ptr %3, i64 0, i64 %.0119162
  %90 = load i64, ptr %89, align 8, !tbaa !11
  %.not = icmp slt i64 %88, %90
  br i1 %.not, label %91, label %._crit_edge165.loopexit

91:                                               ; preds = %.lr.ph164
  %92 = load i64, ptr %76, align 16, !tbaa !15
  %93 = load i64, ptr %78, align 16, !tbaa !15
  %94 = load i64, ptr %80, align 8, !tbaa !17
  %95 = load i64, ptr %82, align 8, !tbaa !17
  %96 = add i64 %92, %94
  %97 = add i64 %93, %95
  %98 = sub i64 %96, %97
  %99 = call noundef i64 @_ZSt3absx(i64 noundef %98)
  %100 = add nsw i64 %99, %74
  store i64 %100, ptr %89, align 8, !tbaa !11
  %101 = add nsw i64 %.0119162, -1
  %102 = icmp sgt i64 %.0119162, 1
  br i1 %102, label %.lr.ph164, label %._crit_edge165.loopexit, !llvm.loop !19

._crit_edge165.loopexit:                          ; preds = %.lr.ph164, %91
  %.pre = load i64, ptr %1, align 8, !tbaa !11
  br label %._crit_edge165

._crit_edge165:                                   ; preds = %._crit_edge165.loopexit, %._crit_edge161
  %103 = phi i64 [ %.pre, %._crit_edge165.loopexit ], [ %50, %._crit_edge161 ]
  call void @llvm.lifetime.start.p0(i64 200, ptr nonnull %4) #8
  %.not129167 = icmp slt i64 %103, 1
  br i1 %.not129167, label %._crit_edge171, label %.lr.ph170

._crit_edge171:                                   ; preds = %143, %._crit_edge165
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #8
  call void @_ZNSt8multisetISt6vectorIxSaIxEESt4lessIS2_ESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #8
  call void @_ZNSt6vectorIxSaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  %104 = load i64, ptr %1, align 8, !tbaa !11
  %105 = icmp sgt i64 %104, 1
  br i1 %105, label %.lr.ph178, label %._crit_edge179.thread

._crit_edge179.thread:                            ; preds = %._crit_edge171
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %._crit_edge193

.lr.ph170:                                        ; preds = %._crit_edge165, %143
  %106 = phi i64 [ %144, %143 ], [ %103, %._crit_edge165 ]
  %.0116168 = phi i64 [ %108, %143 ], [ 1, %._crit_edge165 ]
  %107 = add nsw i64 %.0116168, -1
  %108 = add nuw nsw i64 %.0116168, 1
  %109 = srem i64 %108, %106
  %110 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %2, i64 0, i64 %.0116168
  %111 = load i64, ptr %110, align 16, !tbaa !15
  %112 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %2, i64 0, i64 %107
  %113 = load i64, ptr %112, align 16, !tbaa !15
  %.not144 = icmp eq i64 %111, %113
  br i1 %.not144, label %127, label %114

114:                                              ; preds = %.lr.ph170
  %115 = sub nsw i64 %111, %113
  %116 = call noundef zeroext i1 @_ZSt7signbitIxEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEbE6__typeES2_(i64 noundef %115)
  %117 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %2, i64 0, i64 %109, i32 1
  %118 = load i64, ptr %117, align 8, !tbaa !17
  %119 = getelementptr inbounds i8, ptr %110, i64 8
  %120 = load i64, ptr %119, align 8, !tbaa !17
  %121 = sub nsw i64 %118, %120
  %122 = call noundef zeroext i1 @_ZSt7signbitIxEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEbE6__typeES2_(i64 noundef %121)
  %123 = xor i1 %116, %122
  %124 = getelementptr inbounds [200 x i8], ptr %4, i64 0, i64 %.0116168
  br i1 %123, label %126, label %125

125:                                              ; preds = %114
  store i8 76, ptr %124, align 1, !tbaa !20
  br label %143

126:                                              ; preds = %114
  store i8 82, ptr %124, align 1, !tbaa !20
  br label %143

127:                                              ; preds = %.lr.ph170
  %128 = getelementptr inbounds i8, ptr %110, i64 8
  %129 = load i64, ptr %128, align 8, !tbaa !17
  %130 = getelementptr inbounds i8, ptr %112, i64 8
  %131 = load i64, ptr %130, align 8, !tbaa !17
  %132 = sub nsw i64 %129, %131
  %133 = call noundef zeroext i1 @_ZSt7signbitIxEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEbE6__typeES2_(i64 noundef %132)
  %134 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %2, i64 0, i64 %109
  %135 = load i64, ptr %134, align 16, !tbaa !15
  %136 = load i64, ptr %110, align 16, !tbaa !15
  %137 = sub nsw i64 %135, %136
  %138 = call noundef zeroext i1 @_ZSt7signbitIxEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEbE6__typeES2_(i64 noundef %137)
  %139 = xor i1 %133, %138
  %140 = getelementptr inbounds [200 x i8], ptr %4, i64 0, i64 %.0116168
  br i1 %139, label %142, label %141

141:                                              ; preds = %127
  store i8 82, ptr %140, align 1, !tbaa !20
  br label %143

142:                                              ; preds = %127
  store i8 76, ptr %140, align 1, !tbaa !20
  br label %143

143:                                              ; preds = %141, %142, %125, %126
  %144 = load i64, ptr %1, align 8, !tbaa !11
  %.not129.not = icmp slt i64 %.0116168, %144
  br i1 %.not129.not, label %.lr.ph170, label %._crit_edge171, !llvm.loop !21

._crit_edge179:                                   ; preds = %._crit_edge175
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  store i64 0, ptr %10, align 8, !tbaa !11
  %145 = icmp sgt i64 %157, 1
  br i1 %145, label %.lr.ph192, label %._crit_edge193

.lr.ph178:                                        ; preds = %._crit_edge171, %._crit_edge175
  %.0114176 = phi i64 [ %.pre-phi, %._crit_edge175 ], [ 1, %._crit_edge171 ]
  call void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  %146 = getelementptr inbounds [200 x i8], ptr %4, i64 0, i64 %.0114176
  %147 = load i8, ptr %146, align 1, !tbaa !20
  %148 = sext i8 %147 to i64
  store i64 %148, ptr %7, align 8, !tbaa !11
  invoke void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %149 unwind label %159

149:                                              ; preds = %.lr.ph178
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  %150 = load i64, ptr %1, align 8, !tbaa !11
  %151 = icmp slt i64 %.0114176, %150
  br i1 %151, label %.lr.ph174.preheader, label %.._crit_edge175_crit_edge

.._crit_edge175_crit_edge:                        ; preds = %149
  %.pre229 = add nuw nsw i64 %.0114176, 1
  br label %._crit_edge175

.lr.ph174.preheader:                              ; preds = %149
  %152 = invoke ptr @_ZNSt8multisetISt6vectorIxSaIxEESt4lessIS2_ESaIS2_EE6insertERKS2_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %153 unwind label %.loopexit.split-lp204

153:                                              ; preds = %.lr.ph174.preheader
  %154 = add nuw nsw i64 %.0114176, 1
  %155 = load i64, ptr %1, align 8, !tbaa !11
  %156 = icmp slt i64 %154, %155
  br i1 %156, label %.lr.ph174.peel.next, label %._crit_edge175

._crit_edge175:                                   ; preds = %186, %153, %.._crit_edge175_crit_edge
  %.pre-phi = phi i64 [ %.pre229, %.._crit_edge175_crit_edge ], [ %154, %153 ], [ %154, %186 ]
  %157 = phi i64 [ %150, %.._crit_edge175_crit_edge ], [ %155, %153 ], [ %189, %186 ]
  %158 = icmp slt i64 %.pre-phi, %157
  br i1 %158, label %.lr.ph178, label %._crit_edge179, !llvm.loop !22

159:                                              ; preds = %.lr.ph178
  %160 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  br label %265

.lr.ph174.peel.next:                              ; preds = %153, %186
  %.0102172 = phi i64 [ %187, %186 ], [ 1, %153 ]
  %161 = add nuw nsw i64 %.0102172, %.0114176
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  %162 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %2, i64 0, i64 %161
  %163 = getelementptr inbounds i8, ptr %162, i64 8
  %164 = load i64, ptr %163, align 8, !tbaa !17
  %165 = add nsw i64 %161, -1
  %166 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %2, i64 0, i64 %165
  %167 = getelementptr inbounds i8, ptr %166, i64 8
  %168 = load i64, ptr %167, align 8, !tbaa !17
  %169 = load i64, ptr %162, align 16, !tbaa !15
  %170 = load i64, ptr %166, align 16, !tbaa !15
  %171 = add i64 %164, %169
  %172 = add i64 %168, %170
  %173 = sub i64 %171, %172
  %174 = call noundef i64 @_ZSt3absx(i64 noundef %173)
  %175 = load i64, ptr %1, align 8, !tbaa !11
  %176 = icmp eq i64 %161, %175
  %spec.store.select = select i1 %176, i64 -123456, i64 %174
  store i64 %spec.store.select, ptr %8, align 8
  invoke void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %178 unwind label %177

177:                                              ; preds = %.lr.ph174.peel.next
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %183

178:                                              ; preds = %.lr.ph174.peel.next
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  %179 = getelementptr inbounds [200 x i8], ptr %4, i64 0, i64 %161
  %180 = load i8, ptr %179, align 1, !tbaa !20
  %181 = sext i8 %180 to i64
  store i64 %181, ptr %9, align 8, !tbaa !11
  invoke void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %184 unwind label %182

182:                                              ; preds = %178
  %lpad.loopexit200 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  br label %183

183:                                              ; preds = %182, %177
  %.pn138 = phi { ptr, i32 } [ %lpad.loopexit200, %182 ], [ %lpad.loopexit, %177 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  br label %265

184:                                              ; preds = %178
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  %185 = invoke ptr @_ZNSt8multisetISt6vectorIxSaIxEESt4lessIS2_ESaIS2_EE6insertERKS2_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %186 unwind label %.loopexit203

186:                                              ; preds = %184
  %187 = add nuw nsw i64 %.0102172, 1
  %188 = add nuw nsw i64 %187, %.0114176
  %189 = load i64, ptr %1, align 8, !tbaa !11
  %190 = icmp slt i64 %188, %189
  br i1 %190, label %.lr.ph174.peel.next, label %._crit_edge175, !llvm.loop !23

.loopexit203:                                     ; preds = %184
  %lpad.loopexit205 = landingpad { ptr, i32 }
          cleanup
  br label %265

.loopexit.split-lp204:                            ; preds = %.lr.ph174.preheader
  %lpad.loopexit.split-lp206 = landingpad { ptr, i32 }
          cleanup
  br label %265

._crit_edge193:                                   ; preds = %._crit_edge184, %._crit_edge179.thread, %._crit_edge179
  %191 = phi i64 [ 0, %._crit_edge179 ], [ 0, %._crit_edge179.thread ], [ %255, %._crit_edge184 ]
  %192 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %191)
          to label %259 unwind label %262

.lr.ph192:                                        ; preds = %._crit_edge179, %._crit_edge184
  %.0100190 = phi i64 [ %256, %._crit_edge184 ], [ 1, %._crit_edge179 ]
  call void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  %193 = getelementptr inbounds [200 x i8], ptr %4, i64 0, i64 %.0100190
  %194 = load i8, ptr %193, align 1, !tbaa !20
  %195 = sext i8 %194 to i64
  store i64 %195, ptr %11, align 8, !tbaa !11
  invoke void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %196 unwind label %207

196:                                              ; preds = %.lr.ph192
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  %197 = load i64, ptr %1, align 8, !tbaa !11
  %198 = icmp slt i64 %.0100190, %197
  br i1 %198, label %.lr.ph183.preheader, label %._crit_edge184

.lr.ph183.preheader:                              ; preds = %196
  %199 = invoke noundef i64 @_ZNKSt8multisetISt6vectorIxSaIxEESt4lessIS2_ESaIS2_EE5countERKS2_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %200 unwind label %.loopexit.split-lp220

200:                                              ; preds = %.lr.ph183.preheader
  %201 = icmp sgt i64 %199, 0
  br i1 %201, label %202, label %.loopexit224

202:                                              ; preds = %200
  %203 = invoke noundef i64 @_ZNKSt8multisetISt6vectorIxSaIxEESt4lessIS2_ESaIS2_EE5countERKS2_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %204 unwind label %.loopexit.split-lp220

204:                                              ; preds = %202
  %.not136.peel = icmp ne i64 %203, 1
  %.pre226.pre227 = load i64, ptr %1, align 8, !tbaa !11
  %205 = add nuw nsw i64 %.0100190, 1
  %206 = icmp slt i64 %205, %.pre226.pre227
  %or.cond = select i1 %.not136.peel, i1 %206, i1 false
  br i1 %or.cond, label %.lr.ph183.peel.next, label %._crit_edge184

207:                                              ; preds = %.lr.ph192
  %208 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  br label %264

.lr.ph183.peel.next:                              ; preds = %204, %241
  %.0181 = phi i64 [ %242, %241 ], [ 1, %204 ]
  %.096180 = phi i64 [ %234, %241 ], [ 0, %204 ]
  %209 = add nuw nsw i64 %.0181, %.0100190
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  %210 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %2, i64 0, i64 %209
  %211 = getelementptr inbounds i8, ptr %210, i64 8
  %212 = load i64, ptr %211, align 8, !tbaa !17
  %213 = add nsw i64 %209, -1
  %214 = getelementptr inbounds [200 x %"struct.std::pair"], ptr %2, i64 0, i64 %213
  %215 = getelementptr inbounds i8, ptr %214, i64 8
  %216 = load i64, ptr %215, align 8, !tbaa !17
  %217 = load i64, ptr %210, align 16, !tbaa !15
  %218 = load i64, ptr %214, align 16, !tbaa !15
  %219 = add i64 %212, %217
  %220 = add i64 %216, %218
  %221 = sub i64 %219, %220
  %222 = call noundef i64 @_ZSt3absx(i64 noundef %221)
  %223 = load i64, ptr %1, align 8, !tbaa !11
  %224 = icmp eq i64 %209, %223
  %spec.store.select1 = select i1 %224, i64 -123456, i64 %222
  store i64 %spec.store.select1, ptr %12, align 8
  invoke void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %226 unwind label %225

225:                                              ; preds = %.lr.ph183.peel.next
  %lpad.loopexit211 = landingpad { ptr, i32 }
          cleanup
  br label %232

226:                                              ; preds = %.lr.ph183.peel.next
  %227 = load i64, ptr %12, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #8
  %228 = getelementptr inbounds [200 x i8], ptr %4, i64 0, i64 %209
  %229 = load i8, ptr %228, align 1, !tbaa !20
  %230 = sext i8 %229 to i64
  store i64 %230, ptr %13, align 8, !tbaa !11
  invoke void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %233 unwind label %231

231:                                              ; preds = %226
  %lpad.loopexit216 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  br label %232

232:                                              ; preds = %231, %225
  %.pn = phi { ptr, i32 } [ %lpad.loopexit216, %231 ], [ %lpad.loopexit211, %225 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  br label %264

233:                                              ; preds = %226
  %234 = add nsw i64 %227, %.096180
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  %235 = invoke noundef i64 @_ZNKSt8multisetISt6vectorIxSaIxEESt4lessIS2_ESaIS2_EE5countERKS2_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %236 unwind label %.loopexit219

236:                                              ; preds = %233
  %237 = icmp sgt i64 %235, 0
  br i1 %237, label %238, label %.loopexit224

.loopexit224:                                     ; preds = %200, %236
  call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, i32 noundef 96, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #9
  unreachable

.loopexit219:                                     ; preds = %233, %238
  %lpad.loopexit221 = landingpad { ptr, i32 }
          cleanup
  br label %264

.loopexit.split-lp220:                            ; preds = %.lr.ph183.preheader, %202
  %lpad.loopexit.split-lp222 = landingpad { ptr, i32 }
          cleanup
  br label %264

238:                                              ; preds = %236
  %239 = invoke noundef i64 @_ZNKSt8multisetISt6vectorIxSaIxEESt4lessIS2_ESaIS2_EE5countERKS2_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %240 unwind label %.loopexit219

240:                                              ; preds = %238
  %.not136 = icmp eq i64 %239, 1
  %.pre226.pre.pre = load i64, ptr %1, align 8, !tbaa !11
  br i1 %.not136, label %._crit_edge184, label %241

241:                                              ; preds = %240
  %242 = add nuw nsw i64 %.0181, 1
  %243 = add nuw nsw i64 %242, %.0100190
  %244 = icmp slt i64 %243, %.pre226.pre.pre
  br i1 %244, label %.lr.ph183.peel.next, label %._crit_edge184, !llvm.loop !25

._crit_edge184:                                   ; preds = %240, %241, %204, %196
  %245 = phi i64 [ %197, %196 ], [ %.pre226.pre227, %204 ], [ %.pre226.pre.pre, %241 ], [ %.pre226.pre.pre, %240 ]
  %.299 = phi i64 [ 0, %196 ], [ 0, %204 ], [ %.0181, %240 ], [ 0, %241 ]
  %.2 = phi i64 [ 0, %196 ], [ 0, %204 ], [ %234, %241 ], [ %234, %240 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #8
  %246 = add nuw nsw i64 %.299, %.0100190
  %247 = srem i64 %246, %245
  %248 = getelementptr inbounds [200 x i64], ptr %3, i64 0, i64 %247
  %249 = load i64, ptr %248, align 8, !tbaa !11
  %250 = add nsw i64 %249, %.2
  %251 = getelementptr inbounds [200 x i64], ptr %3, i64 0, i64 %.0100190
  %252 = load i64, ptr %251, align 8, !tbaa !11
  %253 = sub i64 %250, %252
  store i64 %253, ptr %14, align 8, !tbaa !11
  %254 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %14)
  %255 = load i64, ptr %254, align 8, !tbaa !11
  store i64 %255, ptr %10, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  %256 = add nuw nsw i64 %.0100190, 1
  %257 = load i64, ptr %1, align 8, !tbaa !11
  %258 = icmp slt i64 %256, %257
  br i1 %258, label %.lr.ph192, label %._crit_edge193, !llvm.loop !26

259:                                              ; preds = %._crit_edge193
  %260 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %192, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %261 unwind label %262

261:                                              ; preds = %259
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #8
  call void @_ZNSt8multisetISt6vectorIxSaIxEESt4lessIS2_ESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 1600, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 3200, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #8
  ret i32 0

262:                                              ; preds = %259, %._crit_edge193
  %263 = landingpad { ptr, i32 }
          cleanup
  br label %264

264:                                              ; preds = %.loopexit219, %.loopexit.split-lp220, %207, %232, %262
  %.pn132.pn.pn = phi { ptr, i32 } [ %263, %262 ], [ %208, %207 ], [ %.pn, %232 ], [ %lpad.loopexit221, %.loopexit219 ], [ %lpad.loopexit.split-lp222, %.loopexit.split-lp220 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  br label %265

265:                                              ; preds = %.loopexit203, %.loopexit.split-lp204, %159, %183, %264
  %.pn140.pn.pn = phi { ptr, i32 } [ %.pn132.pn.pn, %264 ], [ %160, %159 ], [ %.pn138, %183 ], [ %lpad.loopexit205, %.loopexit203 ], [ %lpad.loopexit.split-lp206, %.loopexit.split-lp204 ]
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #8
  call void @_ZNSt8multisetISt6vectorIxSaIxEESt4lessIS2_ESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 1600, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 3200, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn140.pn.pn
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #1

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

declare ptr @freopen(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZSt3absx(i64 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSt7signbitIxEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEbE6__typeES2_(i64 noundef) local_unnamed_addr #2

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #6

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

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

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

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

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { nounwind }
attributes #9 = { noreturn 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long long", !10, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !12, i64 0}
!16 = !{!"_ZTSSt4pairIxxE", !12, i64 0, !12, i64 8}
!17 = !{!16, !12, i64 8}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = !{!10, !10, i64 0}
!21 = distinct !{!21, !14}
!22 = distinct !{!22, !14}
!23 = distinct !{!23, !14, !24}
!24 = !{!"llvm.loop.peeled.count", i32 1}
!25 = distinct !{!25, !14, !24}
!26 = distinct !{!26, !14}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopFullUnrollPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass