; LLVM IR from Izaron/ACM-ICPC :: Timus Online Judge/Volume 3/1212. Battleship (main)

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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"struct.std::pair" = type { i32, i32 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@l = external dso_local global i32, align 4
@vecV = external dso_local global [100005 x %"class.std::vector"], align 16
@vecH = external dso_local global [100005 x %"class.std::vector"], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 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 %"class.std::__cxx11::basic_string", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"struct.std::pair", align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %"struct.std::pair", align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %"struct.std::pair", align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca %"struct.std::pair", align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i64, align 8
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %32 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %33 = alloca %"class.std::vector", align 8
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca ptr, align 8
  %37 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %38 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %39 = alloca %"struct.std::pair", align 4
  %40 = alloca %"struct.std::pair", align 4
  %41 = alloca %"struct.std::pair", align 4
  %42 = alloca ptr, align 8
  %43 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %44 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %45 = alloca %"struct.std::pair", align 4
  %46 = alloca i32, align 4
  %47 = alloca ptr, align 8
  %48 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %49 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %50 = alloca %"struct.std::pair", align 4
  %51 = alloca i32, align 4
  %52 = alloca i32, align 4
  %53 = alloca i32, align 4
  %54 = alloca i32, align 4
  %55 = alloca i32, align 4
  %56 = alloca i32, align 4
  %57 = alloca i32, align 4
  %58 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %59 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %60 = alloca %"class.std::vector", align 8
  %61 = alloca i32, align 4
  %62 = alloca i32, align 4
  %63 = alloca ptr, align 8
  %64 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %65 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %66 = alloca %"struct.std::pair", align 4
  %67 = alloca %"struct.std::pair", align 4
  %68 = alloca %"struct.std::pair", align 4
  %69 = alloca ptr, align 8
  %70 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %71 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %72 = alloca %"struct.std::pair", align 4
  %73 = alloca i32, align 4
  %74 = alloca ptr, align 8
  %75 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %76 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %77 = alloca %"struct.std::pair", align 4
  %78 = alloca i32, align 4
  %79 = alloca i32, align 4
  %80 = alloca i32, align 4
  %81 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %82 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  %83 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %82, ptr noundef nonnull align 4 dereferenceable(4) @m)
  %84 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %83, ptr noundef nonnull align 4 dereferenceable(4) @l)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %85

85:                                               ; preds = %240, %0
  %86 = load i32, ptr %2, align 4, !tbaa !5
  %87 = load i32, ptr @l, align 4, !tbaa !5
  %88 = icmp slt i32 %86, %87
  br i1 %88, label %90, label %89

89:                                               ; preds = %85
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %244

90:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #8
  %91 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %92 unwind label %115

92:                                               ; preds = %90
  %93 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %91, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %94 unwind label %115

94:                                               ; preds = %92
  %95 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %93, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %96 unwind label %115

96:                                               ; preds = %94
  %97 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %95, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %98 unwind label %115

98:                                               ; preds = %96
  %99 = load i32, ptr %4, align 4, !tbaa !5
  %100 = add nsw i32 %99, -1
  store i32 %100, ptr %4, align 4, !tbaa !5
  %101 = load i32, ptr %5, align 4, !tbaa !5
  %102 = add nsw i32 %101, -1
  store i32 %102, ptr %5, align 4, !tbaa !5
  %103 = invoke noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef @.str)
          to label %104 unwind label %115

104:                                              ; preds = %98
  br i1 %103, label %105, label %174

105:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  %106 = load i32, ptr %5, align 4, !tbaa !5
  %107 = sub nsw i32 %106, 1
  store i32 %107, ptr %10, align 4, !tbaa !5
  br label %108

108:                                              ; preds = %134, %105
  %109 = load i32, ptr %10, align 4, !tbaa !5
  %110 = load i32, ptr %5, align 4, !tbaa !5
  %111 = load i32, ptr %6, align 4, !tbaa !5
  %112 = add nsw i32 %110, %111
  %113 = icmp sle i32 %109, %112
  br i1 %113, label %119, label %114

114:                                              ; preds = %108
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %141

115:                                              ; preds = %98, %96, %94, %92, %90
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %8, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %9, align 4
  br label %243

119:                                              ; preds = %108
  %120 = load i32, ptr %10, align 4, !tbaa !5
  %121 = icmp slt i32 %120, 0
  br i1 %121, label %122, label %123

122:                                              ; preds = %119
  br label %134

123:                                              ; preds = %119
  %124 = load i32, ptr %10, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [100005 x %"class.std::vector"], ptr @vecH, i64 0, i64 %125
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  %127 = load i32, ptr %4, align 4, !tbaa !5
  %128 = sub nsw i32 %127, 1
  store i32 %128, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  %129 = load i32, ptr %4, align 4, !tbaa !5
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr %13, align 4, !tbaa !5
  %131 = invoke i64 @_ZSt9make_pairIiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %132 unwind label %137

132:                                              ; preds = %123
  store i64 %131, ptr %11, align 4
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %126, ptr noundef nonnull align 4 dereferenceable(8) %11)
          to label %133 unwind label %137

133:                                              ; preds = %132
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %134

134:                                              ; preds = %133, %122
  %135 = load i32, ptr %10, align 4, !tbaa !5
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr %10, align 4, !tbaa !5
  br label %108, !llvm.loop !9

137:                                              ; preds = %132, %123
  %138 = landingpad { ptr, i32 }
          cleanup
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %8, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %243

141:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  %142 = load i32, ptr %4, align 4, !tbaa !5
  %143 = sub nsw i32 %142, 1
  store i32 %143, ptr %14, align 4, !tbaa !5
  br label %144

144:                                              ; preds = %166, %141
  %145 = load i32, ptr %14, align 4, !tbaa !5
  %146 = load i32, ptr %4, align 4, !tbaa !5
  %147 = add nsw i32 %146, 1
  %148 = icmp sle i32 %145, %147
  br i1 %148, label %150, label %149

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

150:                                              ; preds = %144
  %151 = load i32, ptr %14, align 4, !tbaa !5
  %152 = icmp slt i32 %151, 0
  br i1 %152, label %153, label %154

153:                                              ; preds = %150
  br label %166

154:                                              ; preds = %150
  %155 = load i32, ptr %14, align 4, !tbaa !5
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [100005 x %"class.std::vector"], ptr @vecV, i64 0, i64 %156
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  %158 = load i32, ptr %5, align 4, !tbaa !5
  %159 = sub nsw i32 %158, 1
  store i32 %159, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  %160 = load i32, ptr %5, align 4, !tbaa !5
  %161 = load i32, ptr %6, align 4, !tbaa !5
  %162 = add nsw i32 %160, %161
  store i32 %162, ptr %17, align 4, !tbaa !5
  %163 = invoke i64 @_ZSt9make_pairIiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %164 unwind label %169

164:                                              ; preds = %154
  store i64 %163, ptr %15, align 4
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %157, ptr noundef nonnull align 4 dereferenceable(8) %15)
          to label %165 unwind label %169

165:                                              ; preds = %164
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %166

166:                                              ; preds = %165, %153
  %167 = load i32, ptr %14, align 4, !tbaa !5
  %168 = add nsw i32 %167, 1
  store i32 %168, ptr %14, align 4, !tbaa !5
  br label %144, !llvm.loop !11

169:                                              ; preds = %164, %154
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %8, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %243

173:                                              ; preds = %149
  br label %239

174:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  %175 = load i32, ptr %5, align 4, !tbaa !5
  %176 = sub nsw i32 %175, 1
  store i32 %176, ptr %18, align 4, !tbaa !5
  br label %177

177:                                              ; preds = %199, %174
  %178 = load i32, ptr %18, align 4, !tbaa !5
  %179 = load i32, ptr %5, align 4, !tbaa !5
  %180 = add nsw i32 %179, 1
  %181 = icmp sle i32 %178, %180
  br i1 %181, label %183, label %182

182:                                              ; preds = %177
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %206

183:                                              ; preds = %177
  %184 = load i32, ptr %18, align 4, !tbaa !5
  %185 = icmp slt i32 %184, 0
  br i1 %185, label %186, label %187

186:                                              ; preds = %183
  br label %199

187:                                              ; preds = %183
  %188 = load i32, ptr %18, align 4, !tbaa !5
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds [100005 x %"class.std::vector"], ptr @vecH, i64 0, i64 %189
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  %191 = load i32, ptr %4, align 4, !tbaa !5
  %192 = sub nsw i32 %191, 1
  store i32 %192, ptr %20, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  %193 = load i32, ptr %4, align 4, !tbaa !5
  %194 = load i32, ptr %6, align 4, !tbaa !5
  %195 = add nsw i32 %193, %194
  store i32 %195, ptr %21, align 4, !tbaa !5
  %196 = invoke i64 @_ZSt9make_pairIiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %197 unwind label %202

197:                                              ; preds = %187
  store i64 %196, ptr %19, align 4
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %190, ptr noundef nonnull align 4 dereferenceable(8) %19)
          to label %198 unwind label %202

198:                                              ; preds = %197
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %199

199:                                              ; preds = %198, %186
  %200 = load i32, ptr %18, align 4, !tbaa !5
  %201 = add nsw i32 %200, 1
  store i32 %201, ptr %18, align 4, !tbaa !5
  br label %177, !llvm.loop !12

202:                                              ; preds = %197, %187
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %8, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %243

206:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  %207 = load i32, ptr %4, align 4, !tbaa !5
  %208 = sub nsw i32 %207, 1
  store i32 %208, ptr %22, align 4, !tbaa !5
  br label %209

209:                                              ; preds = %231, %206
  %210 = load i32, ptr %22, align 4, !tbaa !5
  %211 = load i32, ptr %4, align 4, !tbaa !5
  %212 = load i32, ptr %6, align 4, !tbaa !5
  %213 = add nsw i32 %211, %212
  %214 = icmp sle i32 %210, %213
  br i1 %214, label %216, label %215

215:                                              ; preds = %209
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %238

216:                                              ; preds = %209
  %217 = load i32, ptr %22, align 4, !tbaa !5
  %218 = icmp slt i32 %217, 0
  br i1 %218, label %219, label %220

219:                                              ; preds = %216
  br label %231

220:                                              ; preds = %216
  %221 = load i32, ptr %22, align 4, !tbaa !5
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds [100005 x %"class.std::vector"], ptr @vecV, i64 0, i64 %222
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  %224 = load i32, ptr %5, align 4, !tbaa !5
  %225 = sub nsw i32 %224, 1
  store i32 %225, ptr %24, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  %226 = load i32, ptr %5, align 4, !tbaa !5
  %227 = add nsw i32 %226, 1
  store i32 %227, ptr %25, align 4, !tbaa !5
  %228 = invoke i64 @_ZSt9make_pairIiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 4 dereferenceable(4) %24, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %229 unwind label %234

229:                                              ; preds = %220
  store i64 %228, ptr %23, align 4
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %223, ptr noundef nonnull align 4 dereferenceable(8) %23)
          to label %230 unwind label %234

230:                                              ; preds = %229
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %231

231:                                              ; preds = %230, %219
  %232 = load i32, ptr %22, align 4, !tbaa !5
  %233 = add nsw i32 %232, 1
  store i32 %233, ptr %22, align 4, !tbaa !5
  br label %209, !llvm.loop !13

234:                                              ; preds = %229, %220
  %235 = landingpad { ptr, i32 }
          cleanup
  %236 = extractvalue { ptr, i32 } %235, 0
  store ptr %236, ptr %8, align 8
  %237 = extractvalue { ptr, i32 } %235, 1
  store i32 %237, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %243

238:                                              ; preds = %215
  br label %239

239:                                              ; preds = %238, %173
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  br label %240

240:                                              ; preds = %239
  %241 = load i32, ptr %2, align 4, !tbaa !5
  %242 = add nsw i32 %241, 1
  store i32 %242, ptr %2, align 4, !tbaa !5
  br label %85, !llvm.loop !14

243:                                              ; preds = %234, %202, %169, %137, %115
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %602

244:                                              ; preds = %89
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  %245 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %26)
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  store i64 0, ptr %27, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  store i32 0, ptr %28, align 4, !tbaa !5
  br label %246

246:                                              ; preds = %416, %244
  %247 = load i32, ptr %28, align 4, !tbaa !5
  %248 = load i32, ptr @n, align 4, !tbaa !5
  %249 = icmp slt i32 %247, %248
  br i1 %249, label %251, label %250

250:                                              ; preds = %246
  store i32 17, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  br label %419

251:                                              ; preds = %246
  %252 = load i32, ptr %28, align 4, !tbaa !5
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds [100005 x %"class.std::vector"], ptr @vecH, i64 0, i64 %253
  %255 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %254) #8
  %256 = icmp eq i64 %255, 0
  br i1 %256, label %257, label %267

257:                                              ; preds = %251
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  store i32 0, ptr %29, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  %258 = load i32, ptr @m, align 4, !tbaa !5
  %259 = load i32, ptr %26, align 4, !tbaa !5
  %260 = sub nsw i32 %258, %259
  %261 = add nsw i32 %260, 1
  store i32 %261, ptr %30, align 4, !tbaa !5
  %262 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %29, ptr noundef nonnull align 4 dereferenceable(4) %30)
  %263 = load i32, ptr %262, align 4, !tbaa !5
  %264 = sext i32 %263 to i64
  %265 = load i64, ptr %27, align 8, !tbaa !15
  %266 = add nsw i64 %265, %264
  store i64 %266, ptr %27, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  br label %415

267:                                              ; preds = %251
  %268 = load i32, ptr %28, align 4, !tbaa !5
  %269 = sext i32 %268 to i64
  %270 = getelementptr inbounds [100005 x %"class.std::vector"], ptr @vecH, i64 0, i64 %269
  %271 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %270) #8
  %272 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %31, i32 0, i32 0
  store ptr %271, ptr %272, align 8
  %273 = load i32, ptr %28, align 4, !tbaa !5
  %274 = sext i32 %273 to i64
  %275 = getelementptr inbounds [100005 x %"class.std::vector"], ptr @vecH, i64 0, i64 %274
  %276 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %275) #8
  %277 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %32, i32 0, i32 0
  store ptr %276, ptr %277, align 8
  %278 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %31, i32 0, i32 0
  %279 = load ptr, ptr %278, align 8
  %280 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %32, i32 0, i32 0
  %281 = load ptr, ptr %280, align 8
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %279, ptr %281)
  call void @llvm.lifetime.start.p0(i64 24, ptr %33) #8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #8
  store i32 -100, ptr %34, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #8
  store i32 -100, ptr %35, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #8
  %282 = load i32, ptr %28, align 4, !tbaa !5
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds [100005 x %"class.std::vector"], ptr @vecH, i64 0, i64 %283
  store ptr %284, ptr %36, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #8
  %285 = load ptr, ptr %36, align 8, !tbaa !17
  %286 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %285) #8
  %287 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %37, i32 0, i32 0
  store ptr %286, ptr %287, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #8
  %288 = load ptr, ptr %36, align 8, !tbaa !17
  %289 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %288) #8
  %290 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %38, i32 0, i32 0
  store ptr %289, ptr %290, align 8
  br label %291

291:                                              ; preds = %321, %267
  %292 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull align 8 dereferenceable(8) %38) #8
  br i1 %292, label %294, label %293

293:                                              ; preds = %291
  store i32 20, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  br label %323

294:                                              ; preds = %291
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #8
  %295 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %37) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %39, ptr align 4 %295, i64 8, i1 false)
  %296 = load i32, ptr %35, align 4, !tbaa !5
  %297 = getelementptr inbounds %"struct.std::pair", ptr %39, i32 0, i32 0
  %298 = load i32, ptr %297, align 4, !tbaa !19
  %299 = sub nsw i32 %298, 1
  %300 = icmp sge i32 %296, %299
  br i1 %300, label %301, label %304

301:                                              ; preds = %294
  %302 = getelementptr inbounds %"struct.std::pair", ptr %39, i32 0, i32 1
  %303 = load i32, ptr %302, align 4, !tbaa !21
  store i32 %303, ptr %35, align 4, !tbaa !5
  br label %320

304:                                              ; preds = %294
  %305 = load i32, ptr %35, align 4, !tbaa !5
  %306 = icmp ne i32 %305, -100
  br i1 %306, label %307, label %315

307:                                              ; preds = %304
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #8
  %308 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %34, ptr noundef nonnull align 4 dereferenceable(4) %35)
          to label %309 unwind label %311

309:                                              ; preds = %307
  store i64 %308, ptr %40, align 4
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %33, ptr noundef nonnull align 4 dereferenceable(8) %40)
          to label %310 unwind label %311

310:                                              ; preds = %309
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  br label %315

311:                                              ; preds = %309, %307
  %312 = landingpad { ptr, i32 }
          cleanup
  %313 = extractvalue { ptr, i32 } %312, 0
  store ptr %313, ptr %8, align 8
  %314 = extractvalue { ptr, i32 } %312, 1
  store i32 %314, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  br label %414

315:                                              ; preds = %310, %304
  %316 = getelementptr inbounds %"struct.std::pair", ptr %39, i32 0, i32 0
  %317 = load i32, ptr %316, align 4, !tbaa !19
  store i32 %317, ptr %34, align 4, !tbaa !5
  %318 = getelementptr inbounds %"struct.std::pair", ptr %39, i32 0, i32 1
  %319 = load i32, ptr %318, align 4, !tbaa !21
  store i32 %319, ptr %35, align 4, !tbaa !5
  br label %320

320:                                              ; preds = %315, %301
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  br label %321

321:                                              ; preds = %320
  %322 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %37) #8
  br label %291

323:                                              ; preds = %293
  %324 = load i32, ptr %35, align 4, !tbaa !5
  %325 = icmp ne i32 %324, -100
  br i1 %325, label %326, label %334

326:                                              ; preds = %323
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #8
  %327 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %34, ptr noundef nonnull align 4 dereferenceable(4) %35)
          to label %328 unwind label %330

328:                                              ; preds = %326
  store i64 %327, ptr %41, align 4
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %33, ptr noundef nonnull align 4 dereferenceable(8) %41)
          to label %329 unwind label %330

329:                                              ; preds = %328
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #8
  br label %334

330:                                              ; preds = %328, %326
  %331 = landingpad { ptr, i32 }
          cleanup
  %332 = extractvalue { ptr, i32 } %331, 0
  store ptr %332, ptr %8, align 8
  %333 = extractvalue { ptr, i32 } %331, 1
  store i32 %333, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #8
  br label %414

334:                                              ; preds = %329, %323
  %335 = load i32, ptr %28, align 4, !tbaa !5
  %336 = sext i32 %335 to i64
  %337 = getelementptr inbounds [100005 x %"class.std::vector"], ptr @vecH, i64 0, i64 %336
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %337) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #8
  store ptr %33, ptr %42, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #8
  %338 = load ptr, ptr %42, align 8, !tbaa !17
  %339 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %338) #8
  %340 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %43, i32 0, i32 0
  store ptr %339, ptr %340, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #8
  %341 = load ptr, ptr %42, align 8, !tbaa !17
  %342 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %341) #8
  %343 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %44, i32 0, i32 0
  store ptr %342, ptr %343, align 8
  br label %344

344:                                              ; preds = %353, %334
  %345 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef nonnull align 8 dereferenceable(8) %44) #8
  br i1 %345, label %347, label %346

346:                                              ; preds = %344
  store i32 22, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #8
  br label %359

347:                                              ; preds = %344
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #8
  %348 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %43) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %45, ptr align 4 %348, i64 8, i1 false)
  %349 = load i32, ptr %28, align 4, !tbaa !5
  %350 = sext i32 %349 to i64
  %351 = getelementptr inbounds [100005 x %"class.std::vector"], ptr @vecH, i64 0, i64 %350
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %351, ptr noundef nonnull align 4 dereferenceable(8) %45)
          to label %352 unwind label %355

352:                                              ; preds = %347
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #8
  br label %353

353:                                              ; preds = %352
  %354 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %43) #8
  br label %344

355:                                              ; preds = %347
  %356 = landingpad { ptr, i32 }
          cleanup
  %357 = extractvalue { ptr, i32 } %356, 0
  store ptr %357, ptr %8, align 8
  %358 = extractvalue { ptr, i32 } %356, 1
  store i32 %358, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #8
  br label %414

359:                                              ; preds = %346
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #8
  store i32 0, ptr %46, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #8
  %360 = load i32, ptr %28, align 4, !tbaa !5
  %361 = sext i32 %360 to i64
  %362 = getelementptr inbounds [100005 x %"class.std::vector"], ptr @vecH, i64 0, i64 %361
  store ptr %362, ptr %47, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #8
  %363 = load ptr, ptr %47, align 8, !tbaa !17
  %364 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %363) #8
  %365 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %48, i32 0, i32 0
  store ptr %364, ptr %365, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #8
  %366 = load ptr, ptr %47, align 8, !tbaa !17
  %367 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %366) #8
  %368 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %49, i32 0, i32 0
  store ptr %367, ptr %368, align 8
  br label %369

369:                                              ; preds = %390, %359
  %370 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef nonnull align 8 dereferenceable(8) %49) #8
  br i1 %370, label %372, label %371

371:                                              ; preds = %369
  store i32 24, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #8
  br label %396

372:                                              ; preds = %369
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #8
  %373 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %48) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %50, ptr align 4 %373, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #8
  store i32 0, ptr %51, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #8
  %374 = getelementptr inbounds %"struct.std::pair", ptr %50, i32 0, i32 0
  %375 = load i32, ptr %374, align 4, !tbaa !19
  %376 = load i32, ptr %46, align 4, !tbaa !5
  %377 = sub nsw i32 %375, %376
  %378 = load i32, ptr %26, align 4, !tbaa !5
  %379 = sub nsw i32 %377, %378
  %380 = add nsw i32 %379, 1
  store i32 %380, ptr %52, align 4, !tbaa !5
  %381 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %51, ptr noundef nonnull align 4 dereferenceable(4) %52)
          to label %382 unwind label %392

382:                                              ; preds = %372
  %383 = load i32, ptr %381, align 4, !tbaa !5
  %384 = sext i32 %383 to i64
  %385 = load i64, ptr %27, align 8, !tbaa !15
  %386 = add nsw i64 %385, %384
  store i64 %386, ptr %27, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #8
  %387 = getelementptr inbounds %"struct.std::pair", ptr %50, i32 0, i32 1
  %388 = load i32, ptr %387, align 4, !tbaa !21
  %389 = add nsw i32 %388, 1
  store i32 %389, ptr %46, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #8
  br label %390

390:                                              ; preds = %382
  %391 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %48) #8
  br label %369

392:                                              ; preds = %372
  %393 = landingpad { ptr, i32 }
          cleanup
  %394 = extractvalue { ptr, i32 } %393, 0
  store ptr %394, ptr %8, align 8
  %395 = extractvalue { ptr, i32 } %393, 1
  store i32 %395, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #8
  br label %413

396:                                              ; preds = %371
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #8
  store i32 0, ptr %53, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #8
  %397 = load i32, ptr @m, align 4, !tbaa !5
  %398 = load i32, ptr %46, align 4, !tbaa !5
  %399 = sub nsw i32 %397, %398
  %400 = load i32, ptr %26, align 4, !tbaa !5
  %401 = sub nsw i32 %399, %400
  %402 = add nsw i32 %401, 1
  store i32 %402, ptr %54, align 4, !tbaa !5
  %403 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %53, ptr noundef nonnull align 4 dereferenceable(4) %54)
          to label %404 unwind label %409

404:                                              ; preds = %396
  %405 = load i32, ptr %403, align 4, !tbaa !5
  %406 = sext i32 %405 to i64
  %407 = load i64, ptr %27, align 8, !tbaa !15
  %408 = add nsw i64 %407, %406
  store i64 %408, ptr %27, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #8
  br label %415

409:                                              ; preds = %396
  %410 = landingpad { ptr, i32 }
          cleanup
  %411 = extractvalue { ptr, i32 } %410, 0
  store ptr %411, ptr %8, align 8
  %412 = extractvalue { ptr, i32 } %410, 1
  store i32 %412, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #8
  br label %413

413:                                              ; preds = %409, %392
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #8
  br label %414

414:                                              ; preds = %413, %355, %330, %311
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  br label %601

415:                                              ; preds = %404, %257
  br label %416

416:                                              ; preds = %415
  %417 = load i32, ptr %28, align 4, !tbaa !5
  %418 = add nsw i32 %417, 1
  store i32 %418, ptr %28, align 4, !tbaa !5
  br label %246, !llvm.loop !22

419:                                              ; preds = %250
  %420 = load i32, ptr %26, align 4, !tbaa !5
  %421 = icmp ne i32 %420, 1
  br i1 %421, label %422, label %597

422:                                              ; preds = %419
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #8
  store i32 0, ptr %55, align 4, !tbaa !5
  br label %423

423:                                              ; preds = %593, %422
  %424 = load i32, ptr %55, align 4, !tbaa !5
  %425 = load i32, ptr @m, align 4, !tbaa !5
  %426 = icmp slt i32 %424, %425
  br i1 %426, label %428, label %427

427:                                              ; preds = %423
  store i32 26, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #8
  br label %596

428:                                              ; preds = %423
  %429 = load i32, ptr %55, align 4, !tbaa !5
  %430 = sext i32 %429 to i64
  %431 = getelementptr inbounds [100005 x %"class.std::vector"], ptr @vecV, i64 0, i64 %430
  %432 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %431) #8
  %433 = icmp eq i64 %432, 0
  br i1 %433, label %434, label %444

434:                                              ; preds = %428
  call void @llvm.lifetime.start.p0(i64 4, ptr %56) #8
  store i32 0, ptr %56, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %57) #8
  %435 = load i32, ptr @n, align 4, !tbaa !5
  %436 = load i32, ptr %26, align 4, !tbaa !5
  %437 = sub nsw i32 %435, %436
  %438 = add nsw i32 %437, 1
  store i32 %438, ptr %57, align 4, !tbaa !5
  %439 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %56, ptr noundef nonnull align 4 dereferenceable(4) %57)
  %440 = load i32, ptr %439, align 4, !tbaa !5
  %441 = sext i32 %440 to i64
  %442 = load i64, ptr %27, align 8, !tbaa !15
  %443 = add nsw i64 %442, %441
  store i64 %443, ptr %27, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #8
  br label %592

444:                                              ; preds = %428
  %445 = load i32, ptr %55, align 4, !tbaa !5
  %446 = sext i32 %445 to i64
  %447 = getelementptr inbounds [100005 x %"class.std::vector"], ptr @vecV, i64 0, i64 %446
  %448 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %447) #8
  %449 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %58, i32 0, i32 0
  store ptr %448, ptr %449, align 8
  %450 = load i32, ptr %55, align 4, !tbaa !5
  %451 = sext i32 %450 to i64
  %452 = getelementptr inbounds [100005 x %"class.std::vector"], ptr @vecV, i64 0, i64 %451
  %453 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %452) #8
  %454 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %59, i32 0, i32 0
  store ptr %453, ptr %454, align 8
  %455 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %58, i32 0, i32 0
  %456 = load ptr, ptr %455, align 8
  %457 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %59, i32 0, i32 0
  %458 = load ptr, ptr %457, align 8
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %456, ptr %458)
  call void @llvm.lifetime.start.p0(i64 24, ptr %60) #8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %60) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %61) #8
  store i32 -100, ptr %61, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %62) #8
  store i32 -100, ptr %62, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %63) #8
  %459 = load i32, ptr %55, align 4, !tbaa !5
  %460 = sext i32 %459 to i64
  %461 = getelementptr inbounds [100005 x %"class.std::vector"], ptr @vecV, i64 0, i64 %460
  store ptr %461, ptr %63, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %64) #8
  %462 = load ptr, ptr %63, align 8, !tbaa !17
  %463 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %462) #8
  %464 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %64, i32 0, i32 0
  store ptr %463, ptr %464, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %65) #8
  %465 = load ptr, ptr %63, align 8, !tbaa !17
  %466 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %465) #8
  %467 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %65, i32 0, i32 0
  store ptr %466, ptr %467, align 8
  br label %468

468:                                              ; preds = %498, %444
  %469 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %64, ptr noundef nonnull align 8 dereferenceable(8) %65) #8
  br i1 %469, label %471, label %470

470:                                              ; preds = %468
  store i32 29, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %65) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #8
  br label %500

471:                                              ; preds = %468
  call void @llvm.lifetime.start.p0(i64 8, ptr %66) #8
  %472 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %64) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %66, ptr align 4 %472, i64 8, i1 false)
  %473 = load i32, ptr %62, align 4, !tbaa !5
  %474 = getelementptr inbounds %"struct.std::pair", ptr %66, i32 0, i32 0
  %475 = load i32, ptr %474, align 4, !tbaa !19
  %476 = sub nsw i32 %475, 1
  %477 = icmp sge i32 %473, %476
  br i1 %477, label %478, label %481

478:                                              ; preds = %471
  %479 = getelementptr inbounds %"struct.std::pair", ptr %66, i32 0, i32 1
  %480 = load i32, ptr %479, align 4, !tbaa !21
  store i32 %480, ptr %62, align 4, !tbaa !5
  br label %497

481:                                              ; preds = %471
  %482 = load i32, ptr %62, align 4, !tbaa !5
  %483 = icmp ne i32 %482, -100
  br i1 %483, label %484, label %492

484:                                              ; preds = %481
  call void @llvm.lifetime.start.p0(i64 8, ptr %67) #8
  %485 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %61, ptr noundef nonnull align 4 dereferenceable(4) %62)
          to label %486 unwind label %488

486:                                              ; preds = %484
  store i64 %485, ptr %67, align 4
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %60, ptr noundef nonnull align 4 dereferenceable(8) %67)
          to label %487 unwind label %488

487:                                              ; preds = %486
  call void @llvm.lifetime.end.p0(i64 8, ptr %67) #8
  br label %492

488:                                              ; preds = %486, %484
  %489 = landingpad { ptr, i32 }
          cleanup
  %490 = extractvalue { ptr, i32 } %489, 0
  store ptr %490, ptr %8, align 8
  %491 = extractvalue { ptr, i32 } %489, 1
  store i32 %491, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %67) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %65) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #8
  br label %591

492:                                              ; preds = %487, %481
  %493 = getelementptr inbounds %"struct.std::pair", ptr %66, i32 0, i32 0
  %494 = load i32, ptr %493, align 4, !tbaa !19
  store i32 %494, ptr %61, align 4, !tbaa !5
  %495 = getelementptr inbounds %"struct.std::pair", ptr %66, i32 0, i32 1
  %496 = load i32, ptr %495, align 4, !tbaa !21
  store i32 %496, ptr %62, align 4, !tbaa !5
  br label %497

497:                                              ; preds = %492, %478
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #8
  br label %498

498:                                              ; preds = %497
  %499 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %64) #8
  br label %468

500:                                              ; preds = %470
  %501 = load i32, ptr %62, align 4, !tbaa !5
  %502 = icmp ne i32 %501, -100
  br i1 %502, label %503, label %511

503:                                              ; preds = %500
  call void @llvm.lifetime.start.p0(i64 8, ptr %68) #8
  %504 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %61, ptr noundef nonnull align 4 dereferenceable(4) %62)
          to label %505 unwind label %507

505:                                              ; preds = %503
  store i64 %504, ptr %68, align 4
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %60, ptr noundef nonnull align 4 dereferenceable(8) %68)
          to label %506 unwind label %507

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

507:                                              ; preds = %505, %503
  %508 = landingpad { ptr, i32 }
          cleanup
  %509 = extractvalue { ptr, i32 } %508, 0
  store ptr %509, ptr %8, align 8
  %510 = extractvalue { ptr, i32 } %508, 1
  store i32 %510, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %68) #8
  br label %591

511:                                              ; preds = %506, %500
  %512 = load i32, ptr %55, align 4, !tbaa !5
  %513 = sext i32 %512 to i64
  %514 = getelementptr inbounds [100005 x %"class.std::vector"], ptr @vecV, i64 0, i64 %513
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %514) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %69) #8
  store ptr %60, ptr %69, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %70) #8
  %515 = load ptr, ptr %69, align 8, !tbaa !17
  %516 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %515) #8
  %517 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %70, i32 0, i32 0
  store ptr %516, ptr %517, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %71) #8
  %518 = load ptr, ptr %69, align 8, !tbaa !17
  %519 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %518) #8
  %520 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %71, i32 0, i32 0
  store ptr %519, ptr %520, align 8
  br label %521

521:                                              ; preds = %530, %511
  %522 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %70, ptr noundef nonnull align 8 dereferenceable(8) %71) #8
  br i1 %522, label %524, label %523

523:                                              ; preds = %521
  store i32 31, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %71) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %70) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %69) #8
  br label %536

524:                                              ; preds = %521
  call void @llvm.lifetime.start.p0(i64 8, ptr %72) #8
  %525 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %70) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %72, ptr align 4 %525, i64 8, i1 false)
  %526 = load i32, ptr %55, align 4, !tbaa !5
  %527 = sext i32 %526 to i64
  %528 = getelementptr inbounds [100005 x %"class.std::vector"], ptr @vecV, i64 0, i64 %527
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %528, ptr noundef nonnull align 4 dereferenceable(8) %72)
          to label %529 unwind label %532

529:                                              ; preds = %524
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #8
  br label %530

530:                                              ; preds = %529
  %531 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %70) #8
  br label %521

532:                                              ; preds = %524
  %533 = landingpad { ptr, i32 }
          cleanup
  %534 = extractvalue { ptr, i32 } %533, 0
  store ptr %534, ptr %8, align 8
  %535 = extractvalue { ptr, i32 } %533, 1
  store i32 %535, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %71) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %70) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %69) #8
  br label %591

536:                                              ; preds = %523
  call void @llvm.lifetime.start.p0(i64 4, ptr %73) #8
  store i32 0, ptr %73, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %74) #8
  %537 = load i32, ptr %55, align 4, !tbaa !5
  %538 = sext i32 %537 to i64
  %539 = getelementptr inbounds [100005 x %"class.std::vector"], ptr @vecV, i64 0, i64 %538
  store ptr %539, ptr %74, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %75) #8
  %540 = load ptr, ptr %74, align 8, !tbaa !17
  %541 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %540) #8
  %542 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %75, i32 0, i32 0
  store ptr %541, ptr %542, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %76) #8
  %543 = load ptr, ptr %74, align 8, !tbaa !17
  %544 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %543) #8
  %545 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %76, i32 0, i32 0
  store ptr %544, ptr %545, align 8
  br label %546

546:                                              ; preds = %567, %536
  %547 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %75, ptr noundef nonnull align 8 dereferenceable(8) %76) #8
  br i1 %547, label %549, label %548

548:                                              ; preds = %546
  store i32 33, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %76) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %75) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %74) #8
  br label %573

549:                                              ; preds = %546
  call void @llvm.lifetime.start.p0(i64 8, ptr %77) #8
  %550 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %75) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %77, ptr align 4 %550, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %78) #8
  store i32 0, ptr %78, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %79) #8
  %551 = getelementptr inbounds %"struct.std::pair", ptr %77, i32 0, i32 0
  %552 = load i32, ptr %551, align 4, !tbaa !19
  %553 = load i32, ptr %73, align 4, !tbaa !5
  %554 = sub nsw i32 %552, %553
  %555 = load i32, ptr %26, align 4, !tbaa !5
  %556 = sub nsw i32 %554, %555
  %557 = add nsw i32 %556, 1
  store i32 %557, ptr %79, align 4, !tbaa !5
  %558 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %78, ptr noundef nonnull align 4 dereferenceable(4) %79)
          to label %559 unwind label %569

559:                                              ; preds = %549
  %560 = load i32, ptr %558, align 4, !tbaa !5
  %561 = sext i32 %560 to i64
  %562 = load i64, ptr %27, align 8, !tbaa !15
  %563 = add nsw i64 %562, %561
  store i64 %563, ptr %27, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr %79) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %78) #8
  %564 = getelementptr inbounds %"struct.std::pair", ptr %77, i32 0, i32 1
  %565 = load i32, ptr %564, align 4, !tbaa !21
  %566 = add nsw i32 %565, 1
  store i32 %566, ptr %73, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %77) #8
  br label %567

567:                                              ; preds = %559
  %568 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %75) #8
  br label %546

569:                                              ; preds = %549
  %570 = landingpad { ptr, i32 }
          cleanup
  %571 = extractvalue { ptr, i32 } %570, 0
  store ptr %571, ptr %8, align 8
  %572 = extractvalue { ptr, i32 } %570, 1
  store i32 %572, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %79) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %78) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %77) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %76) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %75) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %74) #8
  br label %590

573:                                              ; preds = %548
  call void @llvm.lifetime.start.p0(i64 4, ptr %80) #8
  store i32 0, ptr %80, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %81) #8
  %574 = load i32, ptr @n, align 4, !tbaa !5
  %575 = load i32, ptr %73, align 4, !tbaa !5
  %576 = sub nsw i32 %574, %575
  %577 = load i32, ptr %26, align 4, !tbaa !5
  %578 = sub nsw i32 %576, %577
  %579 = add nsw i32 %578, 1
  store i32 %579, ptr %81, align 4, !tbaa !5
  %580 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %80, ptr noundef nonnull align 4 dereferenceable(4) %81)
          to label %581 unwind label %586

581:                                              ; preds = %573
  %582 = load i32, ptr %580, align 4, !tbaa !5
  %583 = sext i32 %582 to i64
  %584 = load i64, ptr %27, align 8, !tbaa !15
  %585 = add nsw i64 %584, %583
  store i64 %585, ptr %27, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr %81) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %80) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %73) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %62) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %61) #8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %60) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %60) #8
  br label %592

586:                                              ; preds = %573
  %587 = landingpad { ptr, i32 }
          cleanup
  %588 = extractvalue { ptr, i32 } %587, 0
  store ptr %588, ptr %8, align 8
  %589 = extractvalue { ptr, i32 } %587, 1
  store i32 %589, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %81) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %80) #8
  br label %590

590:                                              ; preds = %586, %569
  call void @llvm.lifetime.end.p0(i64 4, ptr %73) #8
  br label %591

591:                                              ; preds = %590, %532, %507, %488
  call void @llvm.lifetime.end.p0(i64 4, ptr %62) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %61) #8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %60) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %60) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #8
  br label %601

592:                                              ; preds = %581, %434
  br label %593

593:                                              ; preds = %592
  %594 = load i32, ptr %55, align 4, !tbaa !5
  %595 = add nsw i32 %594, 1
  store i32 %595, ptr %55, align 4, !tbaa !5
  br label %423, !llvm.loop !23

596:                                              ; preds = %427
  br label %597

597:                                              ; preds = %596, %419
  %598 = load i64, ptr %27, align 8, !tbaa !15
  %599 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %598)
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  %600 = load i32, ptr %1, align 4
  ret i32 %600

601:                                              ; preds = %591, %414
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %602

602:                                              ; preds = %601, %243
  %603 = load ptr, ptr %8, align 8
  %604 = load i32, ptr %9, align 4
  %605 = insertvalue { ptr, i32 } poison, ptr %603, 0
  %606 = insertvalue { ptr, i32 } %605, i32 %604, 1
  resume { ptr, i32 } %606
}

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #4

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"struct.std::pair" = type { i32, i32 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@l = external dso_local global i32, align 4
@vecV = external dso_local global [100005 x %"class.std::vector"], align 16
@vecH = external dso_local global [100005 x %"class.std::vector"], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"struct.std::pair", align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"struct.std::pair", align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"struct.std::pair", align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %"struct.std::pair", align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca %"class.std::vector", align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %25 = alloca %"struct.std::pair", align 8
  %26 = alloca %"struct.std::pair", align 8
  %27 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %28 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %29 = alloca %"struct.std::pair", align 8
  %30 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %31 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca %"class.std::vector", align 8
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %42 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %43 = alloca %"struct.std::pair", align 8
  %44 = alloca %"struct.std::pair", align 8
  %45 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %46 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %47 = alloca %"struct.std::pair", align 8
  %48 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %49 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %50 = alloca i32, align 4
  %51 = alloca i32, align 4
  %52 = alloca i32, align 4
  %53 = alloca i32, align 4
  %54 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  %55 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %54, ptr noundef nonnull align 4 dereferenceable(4) @m)
  %56 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %55, ptr noundef nonnull align 4 dereferenceable(4) @l)
  %57 = load i32, ptr @l, align 4, !tbaa !5
  %58 = icmp sgt i32 %57, 0
  br i1 %58, label %.lr.ph146, label %._crit_edge147

._crit_edge147:                                   ; preds = %.loopexit121, %0
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #7
  %59 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %17)
  %60 = load i32, ptr @n, align 4, !tbaa !5
  %61 = icmp sgt i32 %60, 0
  br i1 %61, label %.lr.ph163, label %._crit_edge164

.lr.ph146:                                        ; preds = %0, %.loopexit121
  %.0144 = phi i32 [ %160, %.loopexit121 ], [ 0, %0 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  %62 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
          to label %63 unwind label %81

63:                                               ; preds = %.lr.ph146
  %64 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %62, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %65 unwind label %81

65:                                               ; preds = %63
  %66 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %64, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %67 unwind label %81

67:                                               ; preds = %65
  %68 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %66, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %69 unwind label %81

69:                                               ; preds = %67
  %70 = load i32, ptr %1, align 4, !tbaa !5
  %71 = add nsw i32 %70, -1
  store i32 %71, ptr %1, align 4, !tbaa !5
  %72 = load i32, ptr %2, align 4, !tbaa !5
  %73 = add nsw i32 %72, -1
  store i32 %73, ptr %2, align 4, !tbaa !5
  %74 = call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull @.str)
  br i1 %74, label %75, label %.lr.ph.preheader

75:                                               ; preds = %69
  %76 = load i32, ptr %3, align 4, !tbaa !5
  %.not107135 = icmp slt i32 %76, -1
  br i1 %.not107135, label %.lr.ph143.preheader, label %.lr.ph138.preheader

.lr.ph138.preheader:                              ; preds = %75
  %77 = load i32, ptr %2, align 4, !tbaa !5
  %78 = add nsw i32 %77, -1
  br label %.lr.ph138

.lr.ph143.preheader:                              ; preds = %95, %75
  %79 = load i32, ptr %1, align 4, !tbaa !5
  %80 = add nsw i32 %79, -1
  br label %.lr.ph143

81:                                               ; preds = %67, %65, %63, %.lr.ph146
  %82 = landingpad { ptr, i32 }
          cleanup
  br label %163

.lr.ph138:                                        ; preds = %.lr.ph138.preheader, %95
  %83 = phi i32 [ %96, %95 ], [ %76, %.lr.ph138.preheader ]
  %84 = phi i32 [ %97, %95 ], [ %77, %.lr.ph138.preheader ]
  %.081136 = phi i32 [ %98, %95 ], [ %78, %.lr.ph138.preheader ]
  %85 = icmp slt i32 %.081136, 0
  br i1 %85, label %95, label %86

86:                                               ; preds = %.lr.ph138
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  %87 = load i32, ptr %1, align 4, !tbaa !5
  %88 = add nsw i32 %87, -1
  store i32 %88, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #7
  %89 = add nsw i32 %87, 1
  store i32 %89, ptr %7, align 4, !tbaa !5
  %90 = invoke i64 @_ZSt9make_pairIiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %91 unwind label %100

91:                                               ; preds = %86
  %92 = zext nneg i32 %.081136 to i64
  %93 = getelementptr inbounds [100005 x %"class.std::vector"], ptr @vecH, i64 0, i64 %92
  store i64 %90, ptr %5, align 8
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %93, ptr noundef nonnull align 4 dereferenceable(8) %5)
          to label %94 unwind label %100

94:                                               ; preds = %91
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  %.pre194 = load i32, ptr %2, align 4, !tbaa !5
  %.pre195 = load i32, ptr %3, align 4, !tbaa !5
  br label %95

95:                                               ; preds = %.lr.ph138, %94
  %96 = phi i32 [ %83, %.lr.ph138 ], [ %.pre195, %94 ]
  %97 = phi i32 [ %84, %.lr.ph138 ], [ %.pre194, %94 ]
  %98 = add nsw i32 %.081136, 1
  %99 = add nsw i32 %96, %97
  %.not107.not = icmp slt i32 %.081136, %99
  br i1 %.not107.not, label %.lr.ph138, label %.lr.ph143.preheader, !llvm.loop !9

100:                                              ; preds = %91, %86
  %101 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  br label %163

.lr.ph143:                                        ; preds = %.lr.ph143.preheader, %114
  %102 = phi i32 [ %115, %114 ], [ %79, %.lr.ph143.preheader ]
  %.082141 = phi i32 [ %116, %114 ], [ %80, %.lr.ph143.preheader ]
  %103 = icmp slt i32 %.082141, 0
  br i1 %103, label %114, label %104

104:                                              ; preds = %.lr.ph143
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  %105 = load i32, ptr %2, align 4, !tbaa !5
  %106 = add nsw i32 %105, -1
  store i32 %106, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  %107 = load i32, ptr %3, align 4, !tbaa !5
  %108 = add nsw i32 %107, %105
  store i32 %108, ptr %10, align 4, !tbaa !5
  %109 = invoke i64 @_ZSt9make_pairIiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %110 unwind label %117

110:                                              ; preds = %104
  %111 = zext nneg i32 %.082141 to i64
  %112 = getelementptr inbounds [100005 x %"class.std::vector"], ptr @vecV, i64 0, i64 %111
  store i64 %109, ptr %8, align 8
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %112, ptr noundef nonnull align 4 dereferenceable(8) %8)
          to label %113 unwind label %117

113:                                              ; preds = %110
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  %.pre196 = load i32, ptr %1, align 4, !tbaa !5
  br label %114

114:                                              ; preds = %.lr.ph143, %113
  %115 = phi i32 [ %102, %.lr.ph143 ], [ %.pre196, %113 ]
  %116 = add nsw i32 %.082141, 1
  %.not108 = icmp sgt i32 %.082141, %115
  br i1 %.not108, label %.loopexit121, label %.lr.ph143, !llvm.loop !11

117:                                              ; preds = %110, %104
  %118 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  br label %163

.lr.ph.preheader:                                 ; preds = %69
  %119 = load i32, ptr %2, align 4, !tbaa !5
  %120 = add nsw i32 %119, -1
  br label %.lr.ph

._crit_edge:                                      ; preds = %136
  %121 = load i32, ptr %3, align 4, !tbaa !5
  %.not106131 = icmp slt i32 %121, -1
  br i1 %.not106131, label %.loopexit121, label %.lr.ph134.preheader

.lr.ph134.preheader:                              ; preds = %._crit_edge
  %122 = load i32, ptr %1, align 4, !tbaa !5
  %123 = add nsw i32 %122, -1
  br label %.lr.ph134

.lr.ph:                                           ; preds = %.lr.ph.preheader, %136
  %124 = phi i32 [ %137, %136 ], [ %119, %.lr.ph.preheader ]
  %.083130 = phi i32 [ %138, %136 ], [ %120, %.lr.ph.preheader ]
  %125 = icmp slt i32 %.083130, 0
  br i1 %125, label %136, label %126

126:                                              ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #7
  %127 = load i32, ptr %1, align 4, !tbaa !5
  %128 = add nsw i32 %127, -1
  store i32 %128, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #7
  %129 = load i32, ptr %3, align 4, !tbaa !5
  %130 = add nsw i32 %129, %127
  store i32 %130, ptr %13, align 4, !tbaa !5
  %131 = invoke i64 @_ZSt9make_pairIiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %132 unwind label %139

132:                                              ; preds = %126
  %133 = zext nneg i32 %.083130 to i64
  %134 = getelementptr inbounds [100005 x %"class.std::vector"], ptr @vecH, i64 0, i64 %133
  store i64 %131, ptr %11, align 8
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %134, ptr noundef nonnull align 4 dereferenceable(8) %11)
          to label %135 unwind label %139

135:                                              ; preds = %132
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  %.pre = load i32, ptr %2, align 4, !tbaa !5
  br label %136

136:                                              ; preds = %.lr.ph, %135
  %137 = phi i32 [ %124, %.lr.ph ], [ %.pre, %135 ]
  %138 = add nsw i32 %.083130, 1
  %.not105 = icmp sgt i32 %.083130, %137
  br i1 %.not105, label %._crit_edge, label %.lr.ph, !llvm.loop !12

139:                                              ; preds = %132, %126
  %140 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  br label %163

.lr.ph134:                                        ; preds = %.lr.ph134.preheader, %153
  %141 = phi i32 [ %154, %153 ], [ %121, %.lr.ph134.preheader ]
  %142 = phi i32 [ %155, %153 ], [ %122, %.lr.ph134.preheader ]
  %.084132 = phi i32 [ %156, %153 ], [ %123, %.lr.ph134.preheader ]
  %143 = icmp slt i32 %.084132, 0
  br i1 %143, label %153, label %144

144:                                              ; preds = %.lr.ph134
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #7
  %145 = load i32, ptr %2, align 4, !tbaa !5
  %146 = add nsw i32 %145, -1
  store i32 %146, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #7
  %147 = add nsw i32 %145, 1
  store i32 %147, ptr %16, align 4, !tbaa !5
  %148 = invoke i64 @_ZSt9make_pairIiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %149 unwind label %158

149:                                              ; preds = %144
  %150 = zext nneg i32 %.084132 to i64
  %151 = getelementptr inbounds [100005 x %"class.std::vector"], ptr @vecV, i64 0, i64 %150
  store i64 %148, ptr %14, align 8
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %151, ptr noundef nonnull align 4 dereferenceable(8) %14)
          to label %152 unwind label %158

152:                                              ; preds = %149
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  %.pre192 = load i32, ptr %1, align 4, !tbaa !5
  %.pre193 = load i32, ptr %3, align 4, !tbaa !5
  br label %153

153:                                              ; preds = %.lr.ph134, %152
  %154 = phi i32 [ %141, %.lr.ph134 ], [ %.pre193, %152 ]
  %155 = phi i32 [ %142, %.lr.ph134 ], [ %.pre192, %152 ]
  %156 = add nsw i32 %.084132, 1
  %157 = add nsw i32 %154, %155
  %.not106.not = icmp slt i32 %.084132, %157
  br i1 %.not106.not, label %.lr.ph134, label %.loopexit121, !llvm.loop !13

158:                                              ; preds = %149, %144
  %159 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  br label %163

.loopexit121:                                     ; preds = %153, %114, %._crit_edge
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  %160 = add nuw nsw i32 %.0144, 1
  %161 = load i32, ptr @l, align 4, !tbaa !5
  %162 = icmp slt i32 %160, %161
  br i1 %162, label %.lr.ph146, label %._crit_edge147, !llvm.loop !14

163:                                              ; preds = %158, %139, %117, %100, %81
  %.pn109 = phi { ptr, i32 } [ %101, %100 ], [ %118, %117 ], [ %140, %139 ], [ %159, %158 ], [ %82, %81 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  br label %321

._crit_edge164:                                   ; preds = %239, %._crit_edge147
  %.085.lcssa = phi i64 [ 0, %._crit_edge147 ], [ %.287, %239 ]
  %164 = load i32, ptr %17, align 4, !tbaa !5
  %.not = icmp ne i32 %164, 1
  %165 = load i32, ptr @m, align 4
  %166 = icmp sgt i32 %165, 0
  %or.cond = select i1 %.not, i1 %166, i1 false
  br i1 %or.cond, label %.lr.ph181, label %.loopexit

.lr.ph163:                                        ; preds = %._crit_edge147, %239
  %indvars.iv = phi i64 [ %indvars.iv.next, %239 ], [ 0, %._crit_edge147 ]
  %.085161 = phi i64 [ %.287, %239 ], [ 0, %._crit_edge147 ]
  %167 = getelementptr inbounds [100005 x %"class.std::vector"], ptr @vecH, i64 0, i64 %indvars.iv
  %168 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %167) #7
  %169 = icmp eq i64 %168, 0
  br i1 %169, label %170, label %179

170:                                              ; preds = %.lr.ph163
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #7
  store i32 0, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #7
  %171 = load i32, ptr @m, align 4, !tbaa !5
  %172 = load i32, ptr %17, align 4, !tbaa !5
  %173 = add i32 %171, 1
  %174 = sub i32 %173, %172
  store i32 %174, ptr %19, align 4, !tbaa !5
  %175 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %19)
  %176 = load i32, ptr %175, align 4, !tbaa !5
  %177 = sext i32 %176 to i64
  %178 = add nsw i64 %.085161, %177
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #7
  br label %239

179:                                              ; preds = %.lr.ph163
  %180 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %167) #7
  %181 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %167) #7
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %180, ptr %181)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %20) #7
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #7
  store i32 -100, ptr %21, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #7
  store i32 -100, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #7
  %182 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %167) #7
  store ptr %182, ptr %23, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #7
  %183 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %167) #7
  store ptr %183, ptr %24, align 8
  %184 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #7
  br i1 %184, label %.lr.ph149, label %._crit_edge150

._crit_edge150:                                   ; preds = %197, %179
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #7
  %185 = load i32, ptr %22, align 4, !tbaa !5
  %.not99 = icmp eq i32 %185, -100
  br i1 %.not99, label %206, label %200

.lr.ph149:                                        ; preds = %179, %197
  %186 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #7
  %.sroa.029.0.copyload = load i32, ptr %186, align 4
  %.sroa.631.0..sroa_idx = getelementptr inbounds i8, ptr %186, i64 4
  %.sroa.631.0.copyload = load i32, ptr %.sroa.631.0..sroa_idx, align 4
  %187 = load i32, ptr %22, align 4, !tbaa !5
  %188 = add nsw i32 %.sroa.029.0.copyload, -1
  %.not100 = icmp slt i32 %187, %188
  br i1 %.not100, label %189, label %197

189:                                              ; preds = %.lr.ph149
  %.not101 = icmp eq i32 %187, -100
  br i1 %.not101, label %196, label %190

190:                                              ; preds = %189
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #7
  %191 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %192 unwind label %194

192:                                              ; preds = %190
  store i64 %191, ptr %25, align 8
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 4 dereferenceable(8) %25)
          to label %193 unwind label %194

193:                                              ; preds = %192
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #7
  br label %196

194:                                              ; preds = %192, %190
  %195 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #7
  br label %238

196:                                              ; preds = %193, %189
  store i32 %.sroa.029.0.copyload, ptr %21, align 4, !tbaa !5
  br label %197

197:                                              ; preds = %.lr.ph149, %196
  store i32 %.sroa.631.0.copyload, ptr %22, align 4, !tbaa !5
  %198 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #7
  %199 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #7
  br i1 %199, label %.lr.ph149, label %._crit_edge150

200:                                              ; preds = %._crit_edge150
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #7
  %201 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %202 unwind label %204

202:                                              ; preds = %200
  store i64 %201, ptr %26, align 8
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 4 dereferenceable(8) %26)
          to label %203 unwind label %204

203:                                              ; preds = %202
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #7
  br label %206

204:                                              ; preds = %202, %200
  %205 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #7
  br label %238

206:                                              ; preds = %203, %._crit_edge150
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %167) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %27) #7
  %207 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #7
  store ptr %207, ptr %27, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %28) #7
  %208 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #7
  store ptr %208, ptr %28, align 8
  %209 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %28) #7
  br i1 %209, label %.lr.ph152, label %._crit_edge153

._crit_edge153:                                   ; preds = %215, %206
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %30) #7
  %210 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %167) #7
  store ptr %210, ptr %30, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %31) #7
  %211 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %167) #7
  store ptr %211, ptr %31, align 8
  %212 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 8 dereferenceable(8) %31) #7
  br i1 %212, label %.lr.ph157, label %._crit_edge158

.lr.ph152:                                        ; preds = %206, %215
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %29) #7
  %213 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #7
  %214 = load i64, ptr %213, align 4
  store i64 %214, ptr %29, align 8
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %167, ptr noundef nonnull align 4 dereferenceable(8) %29)
          to label %215 unwind label %218

215:                                              ; preds = %.lr.ph152
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #7
  %216 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #7
  %217 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %28) #7
  br i1 %217, label %.lr.ph152, label %._crit_edge153

218:                                              ; preds = %.lr.ph152
  %219 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #7
  br label %238

._crit_edge158:                                   ; preds = %.lr.ph157, %._crit_edge153
  %.186.lcssa = phi i64 [ %.085161, %._crit_edge153 ], [ %235, %.lr.ph157 ]
  %.092.neg.lcssa = phi i32 [ 0, %._crit_edge153 ], [ %.092.neg, %.lr.ph157 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %34) #7
  store i32 0, ptr %34, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %35) #7
  %220 = load i32, ptr @m, align 4, !tbaa !5
  %221 = load i32, ptr %17, align 4, !tbaa !5
  %.neg117 = add i32 %.092.neg.lcssa, 1
  %222 = add i32 %.neg117, %220
  %223 = sub i32 %222, %221
  store i32 %223, ptr %35, align 4, !tbaa !5
  %224 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %34, ptr noundef nonnull align 4 dereferenceable(4) %35)
  %225 = load i32, ptr %224, align 4, !tbaa !5
  %226 = sext i32 %225 to i64
  %227 = add nsw i64 %.186.lcssa, %226
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %35) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %34) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #7
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #7
  br label %239

.lr.ph157:                                        ; preds = %._crit_edge153, %.lr.ph157
  %.092.neg155 = phi i32 [ %.092.neg, %.lr.ph157 ], [ 0, %._crit_edge153 ]
  %.186154 = phi i64 [ %235, %.lr.ph157 ], [ %.085161, %._crit_edge153 ]
  %228 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %30) #7
  %.sroa.021.0.copyload = load i32, ptr %228, align 4
  %.sroa.422.0..sroa_idx = getelementptr inbounds i8, ptr %228, i64 4
  %.sroa.422.0.copyload = load i32, ptr %.sroa.422.0..sroa_idx, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %32) #7
  store i32 0, ptr %32, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %33) #7
  %229 = load i32, ptr %17, align 4, !tbaa !5
  %.neg119 = add i32 %.092.neg155, 1
  %230 = add i32 %.neg119, %.sroa.021.0.copyload
  %231 = sub i32 %230, %229
  store i32 %231, ptr %33, align 4, !tbaa !5
  %232 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %32, ptr noundef nonnull align 4 dereferenceable(4) %33)
  %233 = load i32, ptr %232, align 4, !tbaa !5
  %234 = sext i32 %233 to i64
  %235 = add nsw i64 %.186154, %234
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %33) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %32) #7
  %236 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %30) #7
  %.092.neg = xor i32 %.sroa.422.0.copyload, -1
  %237 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 8 dereferenceable(8) %31) #7
  br i1 %237, label %.lr.ph157, label %._crit_edge158

238:                                              ; preds = %218, %204, %194
  %.pn102 = phi { ptr, i32 } [ %195, %194 ], [ %219, %218 ], [ %205, %204 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #7
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #7
  br label %320

239:                                              ; preds = %170, %._crit_edge158
  %.287 = phi i64 [ %178, %170 ], [ %227, %._crit_edge158 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %240 = load i32, ptr @n, align 4, !tbaa !5
  %241 = sext i32 %240 to i64
  %242 = icmp slt i64 %indvars.iv.next, %241
  br i1 %242, label %.lr.ph163, label %._crit_edge164, !llvm.loop !15

.lr.ph181:                                        ; preds = %._crit_edge164, %315
  %indvars.iv189 = phi i64 [ %indvars.iv.next190, %315 ], [ 0, %._crit_edge164 ]
  %.388180 = phi i64 [ %.5, %315 ], [ %.085.lcssa, %._crit_edge164 ]
  %243 = getelementptr inbounds [100005 x %"class.std::vector"], ptr @vecV, i64 0, i64 %indvars.iv189
  %244 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %243) #7
  %245 = icmp eq i64 %244, 0
  br i1 %245, label %246, label %255

246:                                              ; preds = %.lr.ph181
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %36) #7
  store i32 0, ptr %36, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %37) #7
  %247 = load i32, ptr @n, align 4, !tbaa !5
  %248 = load i32, ptr %17, align 4, !tbaa !5
  %249 = add i32 %247, 1
  %250 = sub i32 %249, %248
  store i32 %250, ptr %37, align 4, !tbaa !5
  %251 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %36, ptr noundef nonnull align 4 dereferenceable(4) %37)
  %252 = load i32, ptr %251, align 4, !tbaa !5
  %253 = sext i32 %252 to i64
  %254 = add nsw i64 %.388180, %253
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %37) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %36) #7
  br label %315

255:                                              ; preds = %.lr.ph181
  %256 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %243) #7
  %257 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %243) #7
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %256, ptr %257)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %38) #7
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %38) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %39) #7
  store i32 -100, ptr %39, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %40) #7
  store i32 -100, ptr %40, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %41) #7
  %258 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %243) #7
  store ptr %258, ptr %41, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %42) #7
  %259 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %243) #7
  store ptr %259, ptr %42, align 8
  %260 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef nonnull align 8 dereferenceable(8) %42) #7
  br i1 %260, label %.lr.ph167, label %._crit_edge168

._crit_edge168:                                   ; preds = %273, %255
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %42) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %41) #7
  %261 = load i32, ptr %40, align 4, !tbaa !5
  %.not95 = icmp eq i32 %261, -100
  br i1 %.not95, label %282, label %276

.lr.ph167:                                        ; preds = %255, %273
  %262 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %41) #7
  %.sroa.05.0.copyload = load i32, ptr %262, align 4
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %262, i64 4
  %.sroa.6.0.copyload = load i32, ptr %.sroa.6.0..sroa_idx, align 4
  %263 = load i32, ptr %40, align 4, !tbaa !5
  %264 = add nsw i32 %.sroa.05.0.copyload, -1
  %.not96 = icmp slt i32 %263, %264
  br i1 %.not96, label %265, label %273

265:                                              ; preds = %.lr.ph167
  %.not97 = icmp eq i32 %263, -100
  br i1 %.not97, label %272, label %266

266:                                              ; preds = %265
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %43) #7
  %267 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %39, ptr noundef nonnull align 4 dereferenceable(4) %40)
          to label %268 unwind label %270

268:                                              ; preds = %266
  store i64 %267, ptr %43, align 8
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %38, ptr noundef nonnull align 4 dereferenceable(8) %43)
          to label %269 unwind label %270

269:                                              ; preds = %268
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %43) #7
  br label %272

270:                                              ; preds = %268, %266
  %271 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %43) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %42) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %41) #7
  br label %314

272:                                              ; preds = %269, %265
  store i32 %.sroa.05.0.copyload, ptr %39, align 4, !tbaa !5
  br label %273

273:                                              ; preds = %.lr.ph167, %272
  store i32 %.sroa.6.0.copyload, ptr %40, align 4, !tbaa !5
  %274 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %41) #7
  %275 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef nonnull align 8 dereferenceable(8) %42) #7
  br i1 %275, label %.lr.ph167, label %._crit_edge168

276:                                              ; preds = %._crit_edge168
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %44) #7
  %277 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %39, ptr noundef nonnull align 4 dereferenceable(4) %40)
          to label %278 unwind label %280

278:                                              ; preds = %276
  store i64 %277, ptr %44, align 8
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %38, ptr noundef nonnull align 4 dereferenceable(8) %44)
          to label %279 unwind label %280

279:                                              ; preds = %278
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %44) #7
  br label %282

280:                                              ; preds = %278, %276
  %281 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %44) #7
  br label %314

282:                                              ; preds = %279, %._crit_edge168
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %243) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %45) #7
  %283 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %38) #7
  store ptr %283, ptr %45, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %46) #7
  %284 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %38) #7
  store ptr %284, ptr %46, align 8
  %285 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %46) #7
  br i1 %285, label %.lr.ph170, label %._crit_edge171

._crit_edge171:                                   ; preds = %291, %282
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %46) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %45) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %48) #7
  %286 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %243) #7
  store ptr %286, ptr %48, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %49) #7
  %287 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %243) #7
  store ptr %287, ptr %49, align 8
  %288 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef nonnull align 8 dereferenceable(8) %49) #7
  br i1 %288, label %.lr.ph175, label %._crit_edge176

.lr.ph170:                                        ; preds = %282, %291
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %47) #7
  %289 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %45) #7
  %290 = load i64, ptr %289, align 4
  store i64 %290, ptr %47, align 8
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %243, ptr noundef nonnull align 4 dereferenceable(8) %47)
          to label %291 unwind label %294

291:                                              ; preds = %.lr.ph170
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %47) #7
  %292 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %45) #7
  %293 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %46) #7
  br i1 %293, label %.lr.ph170, label %._crit_edge171

294:                                              ; preds = %.lr.ph170
  %295 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %47) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %46) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %45) #7
  br label %314

._crit_edge176:                                   ; preds = %.lr.ph175, %._crit_edge171
  %.489.lcssa = phi i64 [ %.388180, %._crit_edge171 ], [ %311, %.lr.ph175 ]
  %.075.neg.lcssa = phi i32 [ 0, %._crit_edge171 ], [ %.075.neg, %.lr.ph175 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %49) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %48) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %52) #7
  store i32 0, ptr %52, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %53) #7
  %296 = load i32, ptr @n, align 4, !tbaa !5
  %297 = load i32, ptr %17, align 4, !tbaa !5
  %.neg112 = add i32 %.075.neg.lcssa, 1
  %298 = add i32 %.neg112, %296
  %299 = sub i32 %298, %297
  store i32 %299, ptr %53, align 4, !tbaa !5
  %300 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %52, ptr noundef nonnull align 4 dereferenceable(4) %53)
  %301 = load i32, ptr %300, align 4, !tbaa !5
  %302 = sext i32 %301 to i64
  %303 = add nsw i64 %.489.lcssa, %302
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %53) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %52) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %40) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %39) #7
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %38) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %38) #7
  br label %315

.lr.ph175:                                        ; preds = %._crit_edge171, %.lr.ph175
  %.075.neg173 = phi i32 [ %.075.neg, %.lr.ph175 ], [ 0, %._crit_edge171 ]
  %.489172 = phi i64 [ %311, %.lr.ph175 ], [ %.388180, %._crit_edge171 ]
  %304 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %48) #7
  %.sroa.0.0.copyload = load i32, ptr %304, align 4
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %304, i64 4
  %.sroa.4.0.copyload = load i32, ptr %.sroa.4.0..sroa_idx, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %50) #7
  store i32 0, ptr %50, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %51) #7
  %305 = load i32, ptr %17, align 4, !tbaa !5
  %.neg114 = add i32 %.075.neg173, 1
  %306 = add i32 %.neg114, %.sroa.0.0.copyload
  %307 = sub i32 %306, %305
  store i32 %307, ptr %51, align 4, !tbaa !5
  %308 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %50, ptr noundef nonnull align 4 dereferenceable(4) %51)
  %309 = load i32, ptr %308, align 4, !tbaa !5
  %310 = sext i32 %309 to i64
  %311 = add nsw i64 %.489172, %310
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %51) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %50) #7
  %312 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %48) #7
  %.075.neg = xor i32 %.sroa.4.0.copyload, -1
  %313 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef nonnull align 8 dereferenceable(8) %49) #7
  br i1 %313, label %.lr.ph175, label %._crit_edge176

314:                                              ; preds = %294, %280, %270
  %.pn = phi { ptr, i32 } [ %271, %270 ], [ %295, %294 ], [ %281, %280 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %40) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %39) #7
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %38) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %38) #7
  br label %320

315:                                              ; preds = %246, %._crit_edge176
  %.5 = phi i64 [ %254, %246 ], [ %303, %._crit_edge176 ]
  %indvars.iv.next190 = add nuw nsw i64 %indvars.iv189, 1
  %316 = load i32, ptr @m, align 4, !tbaa !5
  %317 = sext i32 %316 to i64
  %318 = icmp slt i64 %indvars.iv.next190, %317
  br i1 %318, label %.lr.ph181, label %.loopexit, !llvm.loop !16

.loopexit:                                        ; preds = %315, %._crit_edge164
  %.6 = phi i64 [ %.085.lcssa, %._crit_edge164 ], [ %.5, %315 ]
  %319 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %.6)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #7
  ret i32 0

320:                                              ; preds = %314, %238
  %.pn102.pn = phi { ptr, i32 } [ %.pn102, %238 ], [ %.pn, %314 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #7
  br label %321

321:                                              ; preds = %320, %163
  %.pn109.pn = phi { ptr, i32 } [ %.pn109, %163 ], [ %.pn102.pn, %320 ]
  resume { ptr, i32 } %.pn109.pn
}

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

; 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 nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #4

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(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 noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

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

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

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

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

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

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


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