; LLVM IR from tangjz/acm-icpc :: 51nod/1056.ll (Z5solveiii)

; 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::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::unordered_map.2" = type { %"class.std::_Hashtable.3" }
%"class.std::_Hashtable.3" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::pair" = type { i32, i32 }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"struct.std::pair.21" = type { %"struct.std::pair", i32 }

@a = external dso_local global [50001 x i32], align 16
@bound = external dso_local global [50001 x i32], align 16
@lim = external dso_local global i32, align 4
@idx = external dso_local global %"class.std::unordered_map", align 8
@f = external dso_local global [6001 x [6001 x i16]], align 16

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solveiii(ptr dead_on_unwind noalias writable sret(%"class.std::unordered_map.2") align 8 %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i1, align 1
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca %"struct.std::pair", align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca %"class.std::unordered_map.2", align 8
  %27 = alloca %"class.std::unordered_map.2", align 8
  %28 = alloca i1, align 1
  %29 = alloca %"class.std::unordered_map.2", align 8
  %30 = alloca ptr, align 8
  %31 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %32 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %33 = alloca ptr, align 8
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca %"struct.std::pair", align 4
  %39 = alloca i32, align 4
  %40 = alloca ptr, align 8
  %41 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %42 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %43 = alloca ptr, align 8
  %44 = alloca i32, align 4
  %45 = alloca i32, align 4
  %46 = alloca i32, align 4
  %47 = alloca i32, align 4
  %48 = alloca %"struct.std::pair", align 4
  %49 = alloca i32, align 4
  %50 = alloca %"struct.std::pair", align 4
  store ptr %0, ptr %5, align 8
  store i32 %1, ptr %6, align 4, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !5
  store i32 %3, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %51 = load i32, ptr %7, align 4, !tbaa !5
  %52 = load i32, ptr %6, align 4, !tbaa !5
  %53 = sub nsw i32 %51, %52
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %55 = load i32, ptr %6, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds i32, ptr @a, i64 %56
  store ptr %57, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %58 = load i32, ptr @lim, align 4, !tbaa !5
  %59 = load i32, ptr %8, align 4, !tbaa !5
  %60 = ashr i32 %58, %59
  store i32 %60, ptr %12, align 4, !tbaa !5
  store ptr %12, ptr %11, align 8, !tbaa !9
  %61 = load i32, ptr %9, align 4, !tbaa !5
  %62 = load ptr, ptr %11, align 8, !tbaa !9
  %63 = load i32, ptr %62, align 4, !tbaa !5
  %64 = icmp slt i32 %61, %63
  br i1 %64, label %65, label %66

65:                                               ; preds = %4
  call void @llvm.memset.p0.i64(ptr align 8 %0, i8 0, i64 56, i1 false)
  call void @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #5
  store i32 1, ptr %13, align 4
  br label %596

66:                                               ; preds = %4
  %67 = load i32, ptr %9, align 4, !tbaa !5
  %68 = icmp slt i32 %67, 6001
  br i1 %68, label %69, label %305

69:                                               ; preds = %66
  %70 = load ptr, ptr %11, align 8, !tbaa !9
  %71 = load i32, ptr %70, align 4, !tbaa !5
  %72 = load i32, ptr %9, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [50001 x i32], ptr @bound, i64 0, i64 %73
  %75 = load i32, ptr %74, align 4, !tbaa !5
  %76 = icmp sle i32 %71, %75
  br i1 %76, label %77, label %305

77:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %78 = load i32, ptr %9, align 4, !tbaa !5
  %79 = sub nsw i32 %78, 1
  store i32 %79, ptr %14, align 4, !tbaa !5
  br label %80

80:                                               ; preds = %183, %77
  %81 = load i32, ptr %14, align 4, !tbaa !5
  %82 = icmp sge i32 %81, 0
  br i1 %82, label %84, label %83

83:                                               ; preds = %80
  store i32 2, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %186

84:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %85 = load i32, ptr %14, align 4, !tbaa !5
  %86 = sub nsw i32 %85, 1
  store i32 %86, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %87 = load i32, ptr %14, align 4, !tbaa !5
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr %16, align 4, !tbaa !5
  br label %89

89:                                               ; preds = %167, %84
  %90 = load i32, ptr %15, align 4, !tbaa !5
  %91 = icmp sge i32 %90, 0
  br i1 %91, label %92, label %96

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

96:                                               ; preds = %92, %89
  %97 = phi i1 [ false, %89 ], [ %95, %92 ]
  br i1 %97, label %98, label %168

98:                                               ; preds = %96
  %99 = load ptr, ptr %10, align 8, !tbaa !9
  %100 = load i32, ptr %15, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds i32, ptr %99, i64 %101
  %103 = load i32, ptr %102, align 4, !tbaa !5
  %104 = load ptr, ptr %10, align 8, !tbaa !9
  %105 = load i32, ptr %16, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds i32, ptr %104, i64 %106
  %108 = load i32, ptr %107, align 4, !tbaa !5
  %109 = add nsw i32 %103, %108
  %110 = load ptr, ptr %10, align 8, !tbaa !9
  %111 = load i32, ptr %14, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds i32, ptr %110, i64 %112
  %114 = load i32, ptr %113, align 4, !tbaa !5
  %115 = shl i32 %114, 1
  %116 = icmp slt i32 %109, %115
  br i1 %116, label %117, label %120

117:                                              ; preds = %98
  %118 = load i32, ptr %16, align 4, !tbaa !5
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %16, align 4, !tbaa !5
  br label %167

120:                                              ; preds = %98
  %121 = load ptr, ptr %10, align 8, !tbaa !9
  %122 = load i32, ptr %15, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds i32, ptr %121, i64 %123
  %125 = load i32, ptr %124, align 4, !tbaa !5
  %126 = load ptr, ptr %10, align 8, !tbaa !9
  %127 = load i32, ptr %16, align 4, !tbaa !5
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds i32, ptr %126, i64 %128
  %130 = load i32, ptr %129, align 4, !tbaa !5
  %131 = add nsw i32 %125, %130
  %132 = load ptr, ptr %10, align 8, !tbaa !9
  %133 = load i32, ptr %14, align 4, !tbaa !5
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds i32, ptr %132, i64 %134
  %136 = load i32, ptr %135, align 4, !tbaa !5
  %137 = shl i32 %136, 1
  %138 = icmp sgt i32 %131, %137
  br i1 %138, label %139, label %147

139:                                              ; preds = %120
  %140 = load i32, ptr %15, align 4, !tbaa !5
  %141 = add nsw i32 %140, -1
  store i32 %141, ptr %15, align 4, !tbaa !5
  %142 = sext i32 %140 to i64
  %143 = getelementptr inbounds [6001 x [6001 x i16]], ptr @f, i64 0, i64 %142
  %144 = load i32, ptr %14, align 4, !tbaa !5
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [6001 x i16], ptr %143, i64 0, i64 %145
  store i16 2, ptr %146, align 2, !tbaa !11
  br label %166

147:                                              ; preds = %120
  %148 = load i32, ptr %14, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [6001 x [6001 x i16]], ptr @f, i64 0, i64 %149
  %151 = load i32, ptr %16, align 4, !tbaa !5
  %152 = add nsw i32 %151, 1
  store i32 %152, ptr %16, align 4, !tbaa !5
  %153 = sext i32 %151 to i64
  %154 = getelementptr inbounds [6001 x i16], ptr %150, i64 0, i64 %153
  %155 = load i16, ptr %154, align 2, !tbaa !11
  %156 = sext i16 %155 to i32
  %157 = add nsw i32 %156, 1
  %158 = trunc i32 %157 to i16
  %159 = load i32, ptr %15, align 4, !tbaa !5
  %160 = add nsw i32 %159, -1
  store i32 %160, ptr %15, align 4, !tbaa !5
  %161 = sext i32 %159 to i64
  %162 = getelementptr inbounds [6001 x [6001 x i16]], ptr @f, i64 0, i64 %161
  %163 = load i32, ptr %14, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [6001 x i16], ptr %162, i64 0, i64 %164
  store i16 %158, ptr %165, align 2, !tbaa !11
  br label %166

166:                                              ; preds = %147, %139
  br label %167

167:                                              ; preds = %166, %117
  br label %89, !llvm.loop !13

168:                                              ; preds = %96
  br label %169

169:                                              ; preds = %179, %168
  %170 = load i32, ptr %15, align 4, !tbaa !5
  %171 = icmp sge i32 %170, 0
  br i1 %171, label %172, label %182

172:                                              ; preds = %169
  %173 = load i32, ptr %15, align 4, !tbaa !5
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [6001 x [6001 x i16]], ptr @f, i64 0, i64 %174
  %176 = load i32, ptr %14, align 4, !tbaa !5
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [6001 x i16], ptr %175, i64 0, i64 %177
  store i16 2, ptr %178, align 2, !tbaa !11
  br label %179

179:                                              ; preds = %172
  %180 = load i32, ptr %15, align 4, !tbaa !5
  %181 = add nsw i32 %180, -1
  store i32 %181, ptr %15, align 4, !tbaa !5
  br label %169, !llvm.loop !15

182:                                              ; preds = %169
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %183

183:                                              ; preds = %182
  %184 = load i32, ptr %14, align 4, !tbaa !5
  %185 = add nsw i32 %184, -1
  store i32 %185, ptr %14, align 4, !tbaa !5
  br label %80, !llvm.loop !16

186:                                              ; preds = %83
  store i1 false, ptr %17, align 1
  call void @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %187

187:                                              ; preds = %298, %186
  %188 = load i32, ptr %18, align 4, !tbaa !5
  %189 = load i32, ptr %9, align 4, !tbaa !5
  %190 = icmp slt i32 %188, %189
  br i1 %190, label %192, label %191

191:                                              ; preds = %187
  store i32 10, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %301

192:                                              ; preds = %187
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %193 = load i32, ptr %18, align 4, !tbaa !5
  %194 = add nsw i32 %193, 1
  store i32 %194, ptr %19, align 4, !tbaa !5
  br label %195

195:                                              ; preds = %294, %192
  %196 = load i32, ptr %19, align 4, !tbaa !5
  %197 = load i32, ptr %9, align 4, !tbaa !5
  %198 = icmp slt i32 %196, %197
  br i1 %198, label %200, label %199

199:                                              ; preds = %195
  store i32 13, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %297

200:                                              ; preds = %195
  %201 = load i32, ptr %18, align 4, !tbaa !5
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [6001 x [6001 x i16]], ptr @f, i64 0, i64 %202
  %204 = load i32, ptr %19, align 4, !tbaa !5
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [6001 x i16], ptr %203, i64 0, i64 %205
  %207 = load i16, ptr %206, align 2, !tbaa !11
  %208 = sext i16 %207 to i32
  %209 = load ptr, ptr %11, align 8, !tbaa !9
  %210 = load i32, ptr %209, align 4, !tbaa !5
  %211 = icmp sge i32 %208, %210
  br i1 %211, label %212, label %293

212:                                              ; preds = %200
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %213 = load ptr, ptr %10, align 8, !tbaa !9
  %214 = load i32, ptr %18, align 4, !tbaa !5
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds i32, ptr %213, i64 %215
  %217 = load i32, ptr %216, align 4, !tbaa !5
  %218 = shl i32 %217, 1
  %219 = load ptr, ptr %10, align 8, !tbaa !9
  %220 = load i32, ptr %19, align 4, !tbaa !5
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds i32, ptr %219, i64 %221
  %223 = load i32, ptr %222, align 4, !tbaa !5
  %224 = sub nsw i32 %218, %223
  store i32 %224, ptr %20, align 4, !tbaa !5
  %225 = load i32, ptr %20, align 4, !tbaa !5
  %226 = load ptr, ptr %10, align 8, !tbaa !9
  %227 = getelementptr inbounds i32, ptr %226, i64 0
  %228 = load i32, ptr %227, align 4, !tbaa !5
  %229 = icmp slt i32 %225, %228
  br i1 %229, label %234, label %230

230:                                              ; preds = %212
  %231 = invoke noundef i64 @_ZNKSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56) @idx, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %232 unwind label %282

232:                                              ; preds = %230
  %233 = icmp ne i64 %231, 0
  br i1 %233, label %291, label %234

234:                                              ; preds = %232, %212
  %235 = load i32, ptr %18, align 4, !tbaa !5
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds [6001 x [6001 x i16]], ptr @f, i64 0, i64 %236
  %238 = load i32, ptr %19, align 4, !tbaa !5
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds [6001 x i16], ptr %237, i64 0, i64 %239
  %241 = load i16, ptr %240, align 2, !tbaa !11
  %242 = sext i16 %241 to i32
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %243 = load ptr, ptr %10, align 8, !tbaa !9
  %244 = load i32, ptr %18, align 4, !tbaa !5
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds i32, ptr %243, i64 %245
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  %247 = load ptr, ptr %10, align 8, !tbaa !9
  %248 = load i32, ptr %19, align 4, !tbaa !5
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds i32, ptr %247, i64 %249
  %251 = load i32, ptr %250, align 4, !tbaa !5
  %252 = load ptr, ptr %10, align 8, !tbaa !9
  %253 = load i32, ptr %18, align 4, !tbaa !5
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds i32, ptr %252, i64 %254
  %256 = load i32, ptr %255, align 4, !tbaa !5
  %257 = sub nsw i32 %251, %256
  store i32 %257, ptr %24, align 4, !tbaa !5
  %258 = invoke i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %246, ptr noundef nonnull align 4 dereferenceable(4) %24)
          to label %259 unwind label %286

259:                                              ; preds = %234
  store i64 %258, ptr %23, align 4
  %260 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 4 dereferenceable(8) %23)
          to label %261 unwind label %286

261:                                              ; preds = %259
  store i32 %242, ptr %260, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  %262 = load i32, ptr @lim, align 4, !tbaa !5
  %263 = load i32, ptr %18, align 4, !tbaa !5
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds [6001 x [6001 x i16]], ptr @f, i64 0, i64 %264
  %266 = load i32, ptr %19, align 4, !tbaa !5
  %267 = sext i32 %266 to i64
  %268 = getelementptr inbounds [6001 x i16], ptr %265, i64 0, i64 %267
  %269 = load i16, ptr %268, align 2, !tbaa !11
  %270 = sext i16 %269 to i32
  %271 = icmp sle i32 %262, %270
  br i1 %271, label %272, label %290

272:                                              ; preds = %261
  %273 = load i32, ptr %18, align 4, !tbaa !5
  %274 = sext i32 %273 to i64
  %275 = getelementptr inbounds [6001 x [6001 x i16]], ptr @f, i64 0, i64 %274
  %276 = load i32, ptr %19, align 4, !tbaa !5
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds [6001 x i16], ptr %275, i64 0, i64 %277
  %279 = load i16, ptr %278, align 2, !tbaa !11
  %280 = sext i16 %279 to i32
  %281 = add nsw i32 %280, 1
  store i32 %281, ptr @lim, align 4, !tbaa !5
  br label %290

282:                                              ; preds = %230
  %283 = landingpad { ptr, i32 }
          cleanup
  %284 = extractvalue { ptr, i32 } %283, 0
  store ptr %284, ptr %21, align 8
  %285 = extractvalue { ptr, i32 } %283, 1
  store i32 %285, ptr %22, align 4
  br label %292

286:                                              ; preds = %259, %234
  %287 = landingpad { ptr, i32 }
          cleanup
  %288 = extractvalue { ptr, i32 } %287, 0
  store ptr %288, ptr %21, align 8
  %289 = extractvalue { ptr, i32 } %287, 1
  store i32 %289, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br label %292

290:                                              ; preds = %272, %261
  br label %291

291:                                              ; preds = %290, %232
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %293

292:                                              ; preds = %286, %282
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #5
  br label %597

293:                                              ; preds = %291, %200
  br label %294

294:                                              ; preds = %293
  %295 = load i32, ptr %19, align 4, !tbaa !5
  %296 = add nsw i32 %295, 1
  store i32 %296, ptr %19, align 4, !tbaa !5
  br label %195, !llvm.loop !17

297:                                              ; preds = %199
  br label %298

298:                                              ; preds = %297
  %299 = load i32, ptr %18, align 4, !tbaa !5
  %300 = add nsw i32 %299, 1
  store i32 %300, ptr %18, align 4, !tbaa !5
  br label %187, !llvm.loop !18

301:                                              ; preds = %191
  store i1 true, ptr %17, align 1
  store i32 1, ptr %13, align 4
  %302 = load i1, ptr %17, align 1
  br i1 %302, label %304, label %303

303:                                              ; preds = %301
  call void @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #5
  br label %304

304:                                              ; preds = %303, %301
  br label %596

305:                                              ; preds = %69, %66
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  %306 = load i32, ptr %6, align 4, !tbaa !5
  %307 = load i32, ptr %7, align 4, !tbaa !5
  %308 = add nsw i32 %306, %307
  %309 = ashr i32 %308, 1
  store i32 %309, ptr %25, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 56, ptr %26) #5
  %310 = load i32, ptr %6, align 4, !tbaa !5
  %311 = load i32, ptr %25, align 4, !tbaa !5
  %312 = load i32, ptr %8, align 4, !tbaa !5
  %313 = add nsw i32 %312, 1
  call void @_Z5solveiii(ptr dead_on_unwind writable sret(%"class.std::unordered_map.2") align 8 %26, i32 noundef %310, i32 noundef %311, i32 noundef %313)
  call void @llvm.lifetime.start.p0(i64 56, ptr %27) #5
  %314 = load i32, ptr %25, align 4, !tbaa !5
  %315 = add nsw i32 %314, 1
  %316 = load i32, ptr %7, align 4, !tbaa !5
  %317 = load i32, ptr %8, align 4, !tbaa !5
  %318 = add nsw i32 %317, 1
  invoke void @_Z5solveiii(ptr dead_on_unwind writable sret(%"class.std::unordered_map.2") align 8 %27, i32 noundef %315, i32 noundef %316, i32 noundef %318)
          to label %319 unwind label %331

319:                                              ; preds = %305
  store i1 false, ptr %28, align 1
  call void @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #5
  call void @llvm.lifetime.start.p0(i64 56, ptr %29) #5
  call void @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %29) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #5
  store ptr %26, ptr %30, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  %320 = load ptr, ptr %30, align 8, !tbaa !9
  %321 = call ptr @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %320) #5
  %322 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %31, i32 0, i32 0
  %323 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %322, i32 0, i32 0
  store ptr %321, ptr %323, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #5
  %324 = load ptr, ptr %30, align 8, !tbaa !9
  %325 = call ptr @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %324) #5
  %326 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %32, i32 0, i32 0
  %327 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %326, i32 0, i32 0
  store ptr %325, ptr %327, align 8
  br label %328

328:                                              ; preds = %442, %319
  %329 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKS1_IiiEiELb1EEES7_(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 8 dereferenceable(8) %32) #5
  br i1 %329, label %335, label %330

330:                                              ; preds = %328
  store i32 16, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  br label %445

331:                                              ; preds = %305
  %332 = landingpad { ptr, i32 }
          cleanup
  %333 = extractvalue { ptr, i32 } %332, 0
  store ptr %333, ptr %21, align 8
  %334 = extractvalue { ptr, i32 } %332, 1
  store i32 %334, ptr %22, align 4
  br label %595

335:                                              ; preds = %328
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #5
  %336 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKS1_IiiEiELb0ELb1EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %31) #5
  store ptr %336, ptr %33, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #5
  %337 = load ptr, ptr %33, align 8, !tbaa !9
  %338 = getelementptr inbounds %"struct.std::pair.21", ptr %337, i32 0, i32 0
  %339 = getelementptr inbounds %"struct.std::pair", ptr %338, i32 0, i32 0
  %340 = load i32, ptr %339, align 4, !tbaa !19
  store i32 %340, ptr %34, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #5
  %341 = load ptr, ptr %33, align 8, !tbaa !9
  %342 = getelementptr inbounds %"struct.std::pair.21", ptr %341, i32 0, i32 0
  %343 = getelementptr inbounds %"struct.std::pair", ptr %342, i32 0, i32 1
  %344 = load i32, ptr %343, align 4, !tbaa !22
  store i32 %344, ptr %35, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #5
  %345 = load ptr, ptr %33, align 8, !tbaa !9
  %346 = getelementptr inbounds %"struct.std::pair.21", ptr %345, i32 0, i32 1
  %347 = load i32, ptr %346, align 4, !tbaa !23
  store i32 %347, ptr %36, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #5
  %348 = load i32, ptr %34, align 4, !tbaa !5
  %349 = load i32, ptr %36, align 4, !tbaa !5
  %350 = load i32, ptr %35, align 4, !tbaa !5
  %351 = mul nsw i32 %349, %350
  %352 = add nsw i32 %348, %351
  store i32 %352, ptr %37, align 4, !tbaa !5
  %353 = load ptr, ptr %11, align 8, !tbaa !9
  %354 = load i32, ptr %353, align 4, !tbaa !5
  %355 = load i32, ptr %36, align 4, !tbaa !5
  %356 = sub nsw i32 %354, %355
  %357 = load ptr, ptr %11, align 8, !tbaa !9
  %358 = load i32, ptr %357, align 4, !tbaa !5
  %359 = ashr i32 %358, 1
  %360 = icmp sge i32 %356, %359
  br i1 %360, label %361, label %392

361:                                              ; preds = %335
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #5
  %362 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %37, ptr noundef nonnull align 4 dereferenceable(4) %35)
          to label %363 unwind label %368

363:                                              ; preds = %361
  store i64 %362, ptr %38, align 4
  %364 = invoke noundef i64 @_ZNKSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEE5countERS6_(ptr noundef nonnull align 8 dereferenceable(56) %27, ptr noundef nonnull align 4 dereferenceable(8) %38)
          to label %365 unwind label %368

365:                                              ; preds = %363
  %366 = icmp ne i64 %364, 0
  br i1 %366, label %372, label %367

367:                                              ; preds = %365
  store i32 17, ptr %13, align 4
  br label %384

368:                                              ; preds = %363, %361
  %369 = landingpad { ptr, i32 }
          cleanup
  %370 = extractvalue { ptr, i32 } %369, 0
  store ptr %370, ptr %21, align 8
  %371 = extractvalue { ptr, i32 } %369, 1
  store i32 %371, ptr %22, align 4
  br label %391

372:                                              ; preds = %365
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #5
  %373 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEEixERS6_(ptr noundef nonnull align 8 dereferenceable(56) %27, ptr noundef nonnull align 4 dereferenceable(8) %38)
          to label %374 unwind label %387

374:                                              ; preds = %372
  %375 = load i32, ptr %373, align 4, !tbaa !5
  store i32 %375, ptr %39, align 4, !tbaa !5
  %376 = load i32, ptr %39, align 4, !tbaa !5
  %377 = load i32, ptr %36, align 4, !tbaa !5
  %378 = add nsw i32 %377, %376
  store i32 %378, ptr %36, align 4, !tbaa !5
  %379 = load i32, ptr %39, align 4, !tbaa !5
  %380 = load i32, ptr %35, align 4, !tbaa !5
  %381 = mul nsw i32 %379, %380
  %382 = load i32, ptr %37, align 4, !tbaa !5
  %383 = add nsw i32 %382, %381
  store i32 %383, ptr %37, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #5
  store i32 0, ptr %13, align 4
  br label %384

384:                                              ; preds = %374, %367
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #5
  %385 = load i32, ptr %13, align 4
  switch i32 %385, label %436 [
    i32 0, label %386
  ]

386:                                              ; preds = %384
  br label %392

387:                                              ; preds = %372
  %388 = landingpad { ptr, i32 }
          cleanup
  %389 = extractvalue { ptr, i32 } %388, 0
  store ptr %389, ptr %21, align 8
  %390 = extractvalue { ptr, i32 } %388, 1
  store i32 %390, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #5
  br label %391

391:                                              ; preds = %387, %368
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #5
  br label %444

392:                                              ; preds = %386, %335
  br label %393

393:                                              ; preds = %407, %392
  %394 = load i32, ptr %37, align 4, !tbaa !5
  %395 = load i32, ptr %7, align 4, !tbaa !5
  %396 = sext i32 %395 to i64
  %397 = getelementptr inbounds [50001 x i32], ptr @a, i64 0, i64 %396
  %398 = load i32, ptr %397, align 4, !tbaa !5
  %399 = icmp sle i32 %394, %398
  br i1 %399, label %400, label %404

400:                                              ; preds = %393
  %401 = invoke noundef i64 @_ZNKSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56) @idx, ptr noundef nonnull align 4 dereferenceable(4) %37)
          to label %402 unwind label %413

402:                                              ; preds = %400
  %403 = icmp ne i64 %401, 0
  br label %404

404:                                              ; preds = %402, %393
  %405 = phi i1 [ false, %393 ], [ %403, %402 ]
  br i1 %405, label %406, label %417

406:                                              ; preds = %404
  br label %407

407:                                              ; preds = %406
  %408 = load i32, ptr %36, align 4, !tbaa !5
  %409 = add nsw i32 %408, 1
  store i32 %409, ptr %36, align 4, !tbaa !5
  %410 = load i32, ptr %35, align 4, !tbaa !5
  %411 = load i32, ptr %37, align 4, !tbaa !5
  %412 = add nsw i32 %411, %410
  store i32 %412, ptr %37, align 4, !tbaa !5
  br label %393, !llvm.loop !24

413:                                              ; preds = %422, %400
  %414 = landingpad { ptr, i32 }
          cleanup
  %415 = extractvalue { ptr, i32 } %414, 0
  store ptr %415, ptr %21, align 8
  %416 = extractvalue { ptr, i32 } %414, 1
  store i32 %416, ptr %22, align 4
  br label %444

417:                                              ; preds = %404
  %418 = load i32, ptr %36, align 4, !tbaa !5
  %419 = load ptr, ptr %11, align 8, !tbaa !9
  %420 = load i32, ptr %419, align 4, !tbaa !5
  %421 = icmp sge i32 %418, %420
  br i1 %421, label %422, label %435

422:                                              ; preds = %417
  %423 = load i32, ptr %36, align 4, !tbaa !5
  %424 = load ptr, ptr %33, align 8, !tbaa !9
  %425 = getelementptr inbounds %"struct.std::pair.21", ptr %424, i32 0, i32 0
  %426 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEEixERS6_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 4 dereferenceable(8) %425)
          to label %427 unwind label %413

427:                                              ; preds = %422
  store i32 %423, ptr %426, align 4, !tbaa !5
  %428 = load i32, ptr @lim, align 4, !tbaa !5
  %429 = load i32, ptr %36, align 4, !tbaa !5
  %430 = icmp sle i32 %428, %429
  br i1 %430, label %431, label %434

431:                                              ; preds = %427
  %432 = load i32, ptr %36, align 4, !tbaa !5
  %433 = add nsw i32 %432, 1
  store i32 %433, ptr @lim, align 4, !tbaa !5
  br label %434

434:                                              ; preds = %431, %427
  br label %435

435:                                              ; preds = %434, %417
  store i32 0, ptr %13, align 4
  br label %436

436:                                              ; preds = %435, %384
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #5
  %437 = load i32, ptr %13, align 4
  switch i32 %437, label %439 [
    i32 0, label %438
  ]

438:                                              ; preds = %436
  store i32 0, ptr %13, align 4
  br label %439

439:                                              ; preds = %438, %436
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #5
  %440 = load i32, ptr %13, align 4
  switch i32 %440, label %603 [
    i32 0, label %441
    i32 17, label %442
  ]

441:                                              ; preds = %439
  br label %442

442:                                              ; preds = %441, %439
  %443 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKS1_IiiEiELb0ELb1EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %31) #5
  br label %328

444:                                              ; preds = %413, %391
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  br label %592

445:                                              ; preds = %330
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #5
  store ptr %27, ptr %40, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #5
  %446 = load ptr, ptr %40, align 8, !tbaa !9
  %447 = call ptr @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %446) #5
  %448 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %41, i32 0, i32 0
  %449 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %448, i32 0, i32 0
  store ptr %447, ptr %449, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #5
  %450 = load ptr, ptr %40, align 8, !tbaa !9
  %451 = call ptr @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %450) #5
  %452 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %42, i32 0, i32 0
  %453 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %452, i32 0, i32 0
  store ptr %451, ptr %453, align 8
  br label %454

454:                                              ; preds = %587, %445
  %455 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKS1_IiiEiELb1EEES7_(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef nonnull align 8 dereferenceable(8) %42) #5
  br i1 %455, label %457, label %456

456:                                              ; preds = %454
  store i32 21, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #5
  br label %590

457:                                              ; preds = %454
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #5
  %458 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKS1_IiiEiELb0ELb1EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %41) #5
  store ptr %458, ptr %43, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #5
  %459 = load ptr, ptr %43, align 8, !tbaa !9
  %460 = getelementptr inbounds %"struct.std::pair.21", ptr %459, i32 0, i32 0
  %461 = getelementptr inbounds %"struct.std::pair", ptr %460, i32 0, i32 0
  %462 = load i32, ptr %461, align 4, !tbaa !19
  store i32 %462, ptr %44, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #5
  %463 = load ptr, ptr %43, align 8, !tbaa !9
  %464 = getelementptr inbounds %"struct.std::pair.21", ptr %463, i32 0, i32 0
  %465 = getelementptr inbounds %"struct.std::pair", ptr %464, i32 0, i32 1
  %466 = load i32, ptr %465, align 4, !tbaa !22
  store i32 %466, ptr %45, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #5
  %467 = load ptr, ptr %43, align 8, !tbaa !9
  %468 = getelementptr inbounds %"struct.std::pair.21", ptr %467, i32 0, i32 1
  %469 = load i32, ptr %468, align 4, !tbaa !23
  store i32 %469, ptr %46, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #5
  %470 = load i32, ptr %44, align 4, !tbaa !5
  %471 = load i32, ptr %45, align 4, !tbaa !5
  %472 = sub nsw i32 %470, %471
  store i32 %472, ptr %47, align 4, !tbaa !5
  %473 = load ptr, ptr %11, align 8, !tbaa !9
  %474 = load i32, ptr %473, align 4, !tbaa !5
  %475 = load i32, ptr %46, align 4, !tbaa !5
  %476 = sub nsw i32 %474, %475
  %477 = load ptr, ptr %11, align 8, !tbaa !9
  %478 = load i32, ptr %477, align 4, !tbaa !5
  %479 = ashr i32 %478, 1
  %480 = icmp sge i32 %476, %479
  br i1 %480, label %481, label %519

481:                                              ; preds = %457
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #5
  %482 = load i32, ptr %44, align 4, !tbaa !5
  %483 = load ptr, ptr %11, align 8, !tbaa !9
  %484 = load i32, ptr %483, align 4, !tbaa !5
  %485 = load i32, ptr %46, align 4, !tbaa !5
  %486 = sub nsw i32 %484, %485
  %487 = load i32, ptr %45, align 4, !tbaa !5
  %488 = mul nsw i32 %486, %487
  %489 = sub nsw i32 %482, %488
  store i32 %489, ptr %49, align 4, !tbaa !5
  %490 = invoke i64 @_ZSt9make_pairIiRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %49, ptr noundef nonnull align 4 dereferenceable(4) %45)
          to label %491 unwind label %496

491:                                              ; preds = %481
  store i64 %490, ptr %48, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #5
  %492 = invoke noundef i64 @_ZNKSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEE5countERS6_(ptr noundef nonnull align 8 dereferenceable(56) %26, ptr noundef nonnull align 4 dereferenceable(8) %48)
          to label %493 unwind label %500

493:                                              ; preds = %491
  %494 = icmp ne i64 %492, 0
  br i1 %494, label %504, label %495

495:                                              ; preds = %493
  store i32 22, ptr %13, align 4
  br label %515

496:                                              ; preds = %481
  %497 = landingpad { ptr, i32 }
          cleanup
  %498 = extractvalue { ptr, i32 } %497, 0
  store ptr %498, ptr %21, align 8
  %499 = extractvalue { ptr, i32 } %497, 1
  store i32 %499, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #5
  br label %518

500:                                              ; preds = %491
  %501 = landingpad { ptr, i32 }
          cleanup
  %502 = extractvalue { ptr, i32 } %501, 0
  store ptr %502, ptr %21, align 8
  %503 = extractvalue { ptr, i32 } %501, 1
  store i32 %503, ptr %22, align 4
  br label %518

504:                                              ; preds = %493
  %505 = load ptr, ptr %11, align 8, !tbaa !9
  %506 = load i32, ptr %505, align 4, !tbaa !5
  %507 = load i32, ptr %46, align 4, !tbaa !5
  %508 = sub nsw i32 %506, %507
  %509 = load i32, ptr %45, align 4, !tbaa !5
  %510 = mul nsw i32 %508, %509
  %511 = load i32, ptr %47, align 4, !tbaa !5
  %512 = sub nsw i32 %511, %510
  store i32 %512, ptr %47, align 4, !tbaa !5
  %513 = load ptr, ptr %11, align 8, !tbaa !9
  %514 = load i32, ptr %513, align 4, !tbaa !5
  store i32 %514, ptr %46, align 4, !tbaa !5
  store i32 0, ptr %13, align 4
  br label %515

515:                                              ; preds = %504, %495
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #5
  %516 = load i32, ptr %13, align 4
  switch i32 %516, label %581 [
    i32 0, label %517
  ]

517:                                              ; preds = %515
  br label %519

518:                                              ; preds = %500, %496
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #5
  br label %589

519:                                              ; preds = %517, %457
  br label %520

520:                                              ; preds = %534, %519
  %521 = load i32, ptr %47, align 4, !tbaa !5
  %522 = load i32, ptr %6, align 4, !tbaa !5
  %523 = sext i32 %522 to i64
  %524 = getelementptr inbounds [50001 x i32], ptr @a, i64 0, i64 %523
  %525 = load i32, ptr %524, align 4, !tbaa !5
  %526 = icmp sge i32 %521, %525
  br i1 %526, label %527, label %531

527:                                              ; preds = %520
  %528 = invoke noundef i64 @_ZNKSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56) @idx, ptr noundef nonnull align 4 dereferenceable(4) %47)
          to label %529 unwind label %540

529:                                              ; preds = %527
  %530 = icmp ne i64 %528, 0
  br label %531

531:                                              ; preds = %529, %520
  %532 = phi i1 [ false, %520 ], [ %530, %529 ]
  br i1 %532, label %533, label %544

533:                                              ; preds = %531
  br label %534

534:                                              ; preds = %533
  %535 = load i32, ptr %46, align 4, !tbaa !5
  %536 = add nsw i32 %535, 1
  store i32 %536, ptr %46, align 4, !tbaa !5
  %537 = load i32, ptr %45, align 4, !tbaa !5
  %538 = load i32, ptr %47, align 4, !tbaa !5
  %539 = sub nsw i32 %538, %537
  store i32 %539, ptr %47, align 4, !tbaa !5
  br label %520, !llvm.loop !25

540:                                              ; preds = %527
  %541 = landingpad { ptr, i32 }
          cleanup
  %542 = extractvalue { ptr, i32 } %541, 0
  store ptr %542, ptr %21, align 8
  %543 = extractvalue { ptr, i32 } %541, 1
  store i32 %543, ptr %22, align 4
  br label %589

544:                                              ; preds = %531
  %545 = load i32, ptr %47, align 4, !tbaa !5
  %546 = load i32, ptr %45, align 4, !tbaa !5
  %547 = add nsw i32 %545, %546
  store i32 %547, ptr %44, align 4, !tbaa !5
  %548 = load i32, ptr %46, align 4, !tbaa !5
  %549 = load ptr, ptr %11, align 8, !tbaa !9
  %550 = load i32, ptr %549, align 4, !tbaa !5
  %551 = icmp sge i32 %548, %550
  br i1 %551, label %552, label %580

552:                                              ; preds = %544
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #5
  %553 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %44, ptr noundef nonnull align 4 dereferenceable(4) %45)
          to label %554 unwind label %574

554:                                              ; preds = %552
  store i64 %553, ptr %50, align 4
  %555 = invoke noundef i64 @_ZNKSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEE5countERS6_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 4 dereferenceable(8) %50)
          to label %556 unwind label %574

556:                                              ; preds = %554
  %557 = icmp ne i64 %555, 0
  br i1 %557, label %558, label %564

558:                                              ; preds = %556
  %559 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEEixERS6_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 4 dereferenceable(8) %50)
          to label %560 unwind label %574

560:                                              ; preds = %558
  %561 = load i32, ptr %559, align 4, !tbaa !5
  %562 = load i32, ptr %46, align 4, !tbaa !5
  %563 = icmp slt i32 %561, %562
  br i1 %563, label %564, label %579

564:                                              ; preds = %560, %556
  %565 = load i32, ptr %46, align 4, !tbaa !5
  %566 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEEixERS6_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 4 dereferenceable(8) %50)
          to label %567 unwind label %574

567:                                              ; preds = %564
  store i32 %565, ptr %566, align 4, !tbaa !5
  %568 = load i32, ptr @lim, align 4, !tbaa !5
  %569 = load i32, ptr %46, align 4, !tbaa !5
  %570 = icmp sle i32 %568, %569
  br i1 %570, label %571, label %578

571:                                              ; preds = %567
  %572 = load i32, ptr %46, align 4, !tbaa !5
  %573 = add nsw i32 %572, 1
  store i32 %573, ptr @lim, align 4, !tbaa !5
  br label %578

574:                                              ; preds = %564, %558, %554, %552
  %575 = landingpad { ptr, i32 }
          cleanup
  %576 = extractvalue { ptr, i32 } %575, 0
  store ptr %576, ptr %21, align 8
  %577 = extractvalue { ptr, i32 } %575, 1
  store i32 %577, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #5
  br label %589

578:                                              ; preds = %571, %567
  br label %579

579:                                              ; preds = %578, %560
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #5
  br label %580

580:                                              ; preds = %579, %544
  store i32 0, ptr %13, align 4
  br label %581

581:                                              ; preds = %580, %515
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #5
  %582 = load i32, ptr %13, align 4
  switch i32 %582, label %584 [
    i32 0, label %583
  ]

583:                                              ; preds = %581
  store i32 0, ptr %13, align 4
  br label %584

584:                                              ; preds = %583, %581
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #5
  %585 = load i32, ptr %13, align 4
  switch i32 %585, label %603 [
    i32 0, label %586
    i32 22, label %587
  ]

586:                                              ; preds = %584
  br label %587

587:                                              ; preds = %586, %584
  %588 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKS1_IiiEiELb0ELb1EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %41) #5
  br label %454

589:                                              ; preds = %574, %540, %518
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #5
  br label %592

590:                                              ; preds = %456
  store i1 true, ptr %28, align 1
  store i32 1, ptr %13, align 4
  call void @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %29) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %29) #5
  %591 = load i1, ptr %28, align 1
  br i1 %591, label %594, label %593

592:                                              ; preds = %589, %444
  call void @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %29) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %29) #5
  call void @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #5
  call void @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %27) #5
  br label %595

593:                                              ; preds = %590
  call void @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #5
  br label %594

594:                                              ; preds = %593, %590
  call void @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %27) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %27) #5
  call void @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %26) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  br label %596

595:                                              ; preds = %592, %331
  call void @llvm.lifetime.end.p0(i64 56, ptr %27) #5
  call void @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %26) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  br label %597

596:                                              ; preds = %594, %304, %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  ret void

597:                                              ; preds = %595, %292
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %598

598:                                              ; preds = %597
  %599 = load ptr, ptr %21, align 8
  %600 = load i32, ptr %22, align 4
  %601 = insertvalue { ptr, i32 } poison, ptr %599, 0
  %602 = insertvalue { ptr, i32 } %601, i32 %600, 1
  resume { ptr, i32 } %602

603:                                              ; preds = %584, %439
  unreachable
}

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #4 align 2

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

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

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

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

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

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

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

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

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

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

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


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

%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::unordered_map.2" = type { %"class.std::_Hashtable.3" }
%"class.std::_Hashtable.3" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::pair" = type { i32, i32 }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }

@a = external dso_local global [50001 x i32], align 16
@bound = external dso_local local_unnamed_addr global [50001 x i32], align 16
@lim = external dso_local local_unnamed_addr global i32, align 4
@idx = external dso_local global %"class.std::unordered_map", align 8
@f = external dso_local local_unnamed_addr global [6001 x [6001 x i16]], align 16

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solveiii(ptr dead_on_unwind noalias writable sret(%"class.std::unordered_map.2") align 8 %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %5 = alloca i32, align 4
  %6 = alloca %"struct.std::pair", align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::unordered_map.2", align 8
  %9 = alloca %"class.std::unordered_map.2", align 8
  %10 = alloca %"class.std::unordered_map.2", align 8
  %11 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %12 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %"struct.std::pair", align 8
  %16 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %17 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca %"struct.std::pair", align 8
  %22 = alloca i32, align 4
  %23 = alloca %"struct.std::pair", align 8
  %24 = sub nsw i32 %2, %1
  %25 = add nsw i32 %24, 1
  %26 = sext i32 %1 to i64
  %27 = getelementptr inbounds i32, ptr @a, i64 %26
  %28 = load i32, ptr @lim, align 4, !tbaa !5
  %29 = ashr i32 %28, %3
  %30 = icmp slt i32 %25, %29
  br i1 %30, label %31, label %32

31:                                               ; preds = %4
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(56) %0, i8 0, i64 56, i1 false)
  tail call void @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #5
  br label %.loopexit207

32:                                               ; preds = %4
  %33 = icmp slt i32 %24, 6000
  br i1 %33, label %34, label %123

34:                                               ; preds = %32
  %35 = sext i32 %25 to i64
  %36 = getelementptr inbounds [50001 x i32], ptr @bound, i64 0, i64 %35
  %37 = load i32, ptr %36, align 4, !tbaa !5
  %.not = icmp sgt i32 %29, %37
  br i1 %.not, label %123, label %.preheader209

.preheader209:                                    ; preds = %34
  %38 = icmp sgt i32 %24, -1
  br i1 %38, label %.lr.ph217.preheader, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %.preheader209
  tail call void @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #5
  br label %.loopexit207

.lr.ph217.preheader:                              ; preds = %.preheader209
  %39 = zext nneg i32 %24 to i64
  br label %.lr.ph217

.loopexit208:                                     ; preds = %.prol.loopexit, %.lr.ph215.new, %.preheader
  br i1 %42, label %.lr.ph217, label %._crit_edge, !llvm.loop !9

._crit_edge:                                      ; preds = %.loopexit208
  tail call void @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #5
  %40 = zext nneg i32 %24 to i64
  %wide.trip.count = zext nneg i32 %25 to i64
  br label %.lr.ph225

.lr.ph217:                                        ; preds = %.lr.ph217.preheader, %.loopexit208
  %indvars.iv247 = phi i64 [ %39, %.lr.ph217.preheader ], [ %indvars.iv.next248, %.loopexit208 ]
  %indvars.iv.next248 = add nsw i64 %indvars.iv247, -1
  %indvars = trunc i64 %indvars.iv.next248 to i32
  %41 = trunc nuw i64 %indvars.iv247 to i32
  %42 = icmp sgt i32 %41, 0
  %43 = icmp sgt i32 %24, %41
  %44 = and i1 %42, %43
  br i1 %44, label %.lr.ph, label %.preheader

.lr.ph:                                           ; preds = %.lr.ph217
  %45 = getelementptr inbounds i32, ptr %27, i64 %indvars.iv247
  %46 = load i32, ptr %45, align 4, !tbaa !5
  %47 = shl i32 %46, 1
  %48 = trunc i64 %indvars.iv247 to i32
  %49 = add nuw i32 %48, 1
  br label %55

.preheader:                                       ; preds = %78, %.lr.ph217
  %.0134.lcssa = phi i32 [ %indvars, %.lr.ph217 ], [ %.1135, %78 ]
  %50 = icmp sgt i32 %.0134.lcssa, -1
  br i1 %50, label %.lr.ph215, label %.loopexit208

.lr.ph215:                                        ; preds = %.preheader
  %51 = zext nneg i32 %.0134.lcssa to i64
  %52 = add nuw nsw i64 %51, 1
  %xtraiter = and i64 %52, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.prol.loopexit, label %.prol.preheader

.prol.preheader:                                  ; preds = %.lr.ph215, %.prol.preheader
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %.prol.preheader ], [ %51, %.lr.ph215 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.prol.preheader ], [ 0, %.lr.ph215 ]
  %53 = getelementptr inbounds [6001 x [6001 x i16]], ptr @f, i64 0, i64 %indvars.iv.prol, i64 %indvars.iv247
  store i16 2, ptr %53, align 2, !tbaa !11
  %indvars.iv.next.prol = add nsw i64 %indvars.iv.prol, -1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.prol.loopexit, label %.prol.preheader, !llvm.loop !13

.prol.loopexit:                                   ; preds = %.prol.preheader, %.lr.ph215
  %indvars.iv.unr = phi i64 [ %51, %.lr.ph215 ], [ %indvars.iv.next.prol, %.prol.preheader ]
  %54 = icmp ult i32 %.0134.lcssa, 3
  br i1 %54, label %.loopexit208, label %.lr.ph215.new

55:                                               ; preds = %.lr.ph, %78
  %.0134213 = phi i32 [ %indvars, %.lr.ph ], [ %.1135, %78 ]
  %.0140212 = phi i32 [ %49, %.lr.ph ], [ %.1141, %78 ]
  %56 = zext nneg i32 %.0134213 to i64
  %57 = getelementptr inbounds i32, ptr %27, i64 %56
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = zext nneg i32 %.0140212 to i64
  %60 = getelementptr inbounds i32, ptr %27, i64 %59
  %61 = load i32, ptr %60, align 4, !tbaa !5
  %62 = add nsw i32 %61, %58
  %63 = icmp slt i32 %62, %47
  br i1 %63, label %64, label %66

64:                                               ; preds = %55
  %65 = add nuw nsw i32 %.0140212, 1
  br label %78

66:                                               ; preds = %55
  %67 = icmp sgt i32 %62, %47
  br i1 %67, label %68, label %71

68:                                               ; preds = %66
  %69 = add nsw i32 %.0134213, -1
  %70 = getelementptr inbounds [6001 x [6001 x i16]], ptr @f, i64 0, i64 %56, i64 %indvars.iv247
  store i16 2, ptr %70, align 2, !tbaa !11
  br label %78

71:                                               ; preds = %66
  %72 = add nuw nsw i32 %.0140212, 1
  %73 = getelementptr inbounds [6001 x [6001 x i16]], ptr @f, i64 0, i64 %indvars.iv247, i64 %59
  %74 = load i16, ptr %73, align 2, !tbaa !11
  %75 = add i16 %74, 1
  %76 = add nsw i32 %.0134213, -1
  %77 = getelementptr inbounds [6001 x [6001 x i16]], ptr @f, i64 0, i64 %56, i64 %indvars.iv247
  store i16 %75, ptr %77, align 2, !tbaa !11
  br label %78

78:                                               ; preds = %68, %71, %64
  %.1141 = phi i32 [ %65, %64 ], [ %.0140212, %68 ], [ %72, %71 ]
  %.1135 = phi i32 [ %.0134213, %64 ], [ %69, %68 ], [ %76, %71 ]
  %79 = icmp sgt i32 %.1135, -1
  %80 = icmp sle i32 %.1141, %24
  %81 = select i1 %79, i1 %80, i1 false
  br i1 %81, label %55, label %.preheader, !llvm.loop !15

.lr.ph215.new:                                    ; preds = %.prol.loopexit, %.lr.ph215.new
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %.lr.ph215.new ], [ %indvars.iv.unr, %.prol.loopexit ]
  %82 = getelementptr inbounds [6001 x [6001 x i16]], ptr @f, i64 0, i64 %indvars.iv, i64 %indvars.iv247
  store i16 2, ptr %82, align 2, !tbaa !11
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %83 = getelementptr inbounds [6001 x [6001 x i16]], ptr @f, i64 0, i64 %indvars.iv.next, i64 %indvars.iv247
  store i16 2, ptr %83, align 2, !tbaa !11
  %indvars.iv.next.1 = add nsw i64 %indvars.iv, -2
  %84 = getelementptr inbounds [6001 x [6001 x i16]], ptr @f, i64 0, i64 %indvars.iv.next.1, i64 %indvars.iv247
  store i16 2, ptr %84, align 2, !tbaa !11
  %indvars.iv.next.2 = add nsw i64 %indvars.iv, -3
  %85 = getelementptr inbounds [6001 x [6001 x i16]], ptr @f, i64 0, i64 %indvars.iv.next.2, i64 %indvars.iv247
  store i16 2, ptr %85, align 2, !tbaa !11
  %indvars.iv.next.3 = add nsw i64 %indvars.iv, -4
  %.not268.3 = icmp eq i64 %indvars.iv.next.2, 0
  br i1 %.not268.3, label %.loopexit208, label %.lr.ph215.new, !llvm.loop !16

.loopexit206:                                     ; preds = %121, %.lr.ph225
  %indvars.iv.next251 = add nuw nsw i64 %indvars.iv250, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next257, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit207, label %.lr.ph225, !llvm.loop !17

.lr.ph225:                                        ; preds = %._crit_edge, %.loopexit206
  %indvars.iv256 = phi i64 [ 0, %._crit_edge ], [ %indvars.iv.next257, %.loopexit206 ]
  %indvars.iv250 = phi i64 [ 1, %._crit_edge ], [ %indvars.iv.next251, %.loopexit206 ]
  %indvars.iv.next257 = add nuw nsw i64 %indvars.iv256, 1
  %.not196218.not = icmp ult i64 %indvars.iv256, %40
  br i1 %.not196218.not, label %.lr.ph221, label %.loopexit206

.lr.ph221:                                        ; preds = %.lr.ph225
  %86 = getelementptr inbounds i32, ptr %27, i64 %indvars.iv256
  br label %87

87:                                               ; preds = %.lr.ph221, %121
  %indvars.iv252 = phi i64 [ %indvars.iv250, %.lr.ph221 ], [ %indvars.iv.next253, %121 ]
  %88 = getelementptr inbounds [6001 x [6001 x i16]], ptr @f, i64 0, i64 %indvars.iv256, i64 %indvars.iv252
  %89 = load i16, ptr %88, align 2, !tbaa !11
  %90 = sext i16 %89 to i32
  %.not197 = icmp sgt i32 %29, %90
  br i1 %.not197, label %121, label %91

91:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  %92 = load i32, ptr %86, align 4, !tbaa !5
  %93 = shl i32 %92, 1
  %94 = getelementptr inbounds i32, ptr %27, i64 %indvars.iv252
  %95 = load i32, ptr %94, align 4, !tbaa !5
  %96 = sub nsw i32 %93, %95
  store i32 %96, ptr %5, align 4, !tbaa !5
  %97 = load i32, ptr %27, align 4, !tbaa !5
  %98 = icmp slt i32 %96, %97
  br i1 %98, label %102, label %99

99:                                               ; preds = %91
  %100 = invoke noundef i64 @_ZNKSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56) @idx, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %101 unwind label %115

101:                                              ; preds = %99
  %.not198 = icmp eq i64 %100, 0
  br i1 %.not198, label %._crit_edge260, label %119

._crit_edge260:                                   ; preds = %101
  %.pre = load i16, ptr %88, align 2, !tbaa !11
  %.pre261 = load i32, ptr %94, align 4, !tbaa !5
  %.pre262 = load i32, ptr %86, align 4, !tbaa !5
  %.pre266 = sext i16 %.pre to i32
  br label %102

102:                                              ; preds = %._crit_edge260, %91
  %.pre-phi = phi i32 [ %.pre266, %._crit_edge260 ], [ %90, %91 ]
  %103 = phi i32 [ %.pre262, %._crit_edge260 ], [ %92, %91 ]
  %104 = phi i32 [ %.pre261, %._crit_edge260 ], [ %95, %91 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  %105 = sub nsw i32 %104, %103
  store i32 %105, ptr %7, align 4, !tbaa !5
  %106 = invoke i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %86, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %107 unwind label %117

107:                                              ; preds = %102
  store i64 %106, ptr %6, align 8
  %108 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 4 dereferenceable(8) %6)
          to label %109 unwind label %117

109:                                              ; preds = %107
  store i32 %.pre-phi, ptr %108, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  %110 = load i32, ptr @lim, align 4, !tbaa !5
  %111 = load i16, ptr %88, align 2, !tbaa !11
  %112 = sext i16 %111 to i32
  %.not202 = icmp sgt i32 %110, %112
  br i1 %.not202, label %119, label %113

113:                                              ; preds = %109
  %114 = add nsw i32 %112, 1
  store i32 %114, ptr @lim, align 4, !tbaa !5
  br label %119

115:                                              ; preds = %99
  %116 = landingpad { ptr, i32 }
          cleanup
  br label %120

117:                                              ; preds = %107, %102
  %118 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br label %120

119:                                              ; preds = %109, %113, %101
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  br label %121

120:                                              ; preds = %117, %115
  %.pn199 = phi { ptr, i32 } [ %118, %117 ], [ %116, %115 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #5
  br label %257

121:                                              ; preds = %87, %119
  %indvars.iv.next253 = add nuw nsw i64 %indvars.iv252, 1
  %122 = trunc nuw i64 %indvars.iv252 to i32
  %.not196.not = icmp sgt i32 %24, %122
  br i1 %.not196.not, label %87, label %.loopexit206, !llvm.loop !18

123:                                              ; preds = %34, %32
  %124 = add nsw i32 %2, %1
  %125 = ashr i32 %124, 1
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %8) #5
  %126 = add nsw i32 %3, 1
  call void @_Z5solveiii(ptr dead_on_unwind nonnull writable sret(%"class.std::unordered_map.2") align 8 %8, i32 noundef %1, i32 noundef %125, i32 noundef %126)
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %9) #5
  %127 = add nsw i32 %125, 1
  invoke void @_Z5solveiii(ptr dead_on_unwind nonnull writable sret(%"class.std::unordered_map.2") align 8 %9, i32 noundef %127, i32 noundef %2, i32 noundef %126)
          to label %128 unwind label %139

128:                                              ; preds = %123
  call void @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #5
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %10) #5
  call void @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  %129 = call ptr @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %8) #5
  store ptr %129, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %130 = call ptr @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %8) #5
  store ptr %130, ptr %12, align 8
  %131 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKS1_IiiEiELb1EEES7_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  br i1 %131, label %.lr.ph234, label %._crit_edge235

.lr.ph234:                                        ; preds = %128
  %132 = ashr i32 %29, 1
  %133 = sext i32 %2 to i64
  %134 = getelementptr inbounds [50001 x i32], ptr @a, i64 0, i64 %133
  br label %141

._crit_edge235:                                   ; preds = %187, %128
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #5
  %135 = call ptr @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %9) #5
  store ptr %135, ptr %16, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #5
  %136 = call ptr @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %9) #5
  store ptr %136, ptr %17, align 8
  %137 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKS1_IiiEiELb1EEES7_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  br i1 %137, label %.lr.ph244, label %._crit_edge245

.lr.ph244:                                        ; preds = %._crit_edge235
  %138 = ashr i32 %29, 1
  br label %191

139:                                              ; preds = %123
  %140 = landingpad { ptr, i32 }
          cleanup
  br label %256

141:                                              ; preds = %.lr.ph234, %187
  %142 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKS1_IiiEiELb0ELb1EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  %143 = load i32, ptr %142, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #5
  %144 = getelementptr inbounds i8, ptr %142, i64 4
  %145 = load i32, ptr %144, align 4, !tbaa !22
  store i32 %145, ptr %13, align 4, !tbaa !5
  %146 = getelementptr inbounds i8, ptr %142, i64 8
  %147 = load i32, ptr %146, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #5
  %148 = mul nsw i32 %147, %145
  %149 = add nsw i32 %148, %143
  store i32 %149, ptr %14, align 4, !tbaa !5
  %150 = sub nsw i32 %29, %147
  %.not183 = icmp slt i32 %150, %132
  br i1 %.not183, label %170, label %151

151:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #5
  %152 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %153 unwind label %156

153:                                              ; preds = %151
  store i64 %152, ptr %15, align 8
  %154 = invoke noundef i64 @_ZNKSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEE5countERS6_(ptr noundef nonnull align 8 dereferenceable(56) %9, ptr noundef nonnull align 4 dereferenceable(8) %15)
          to label %155 unwind label %156

155:                                              ; preds = %153
  %.not184.not = icmp eq i64 %154, 0
  br i1 %.not184.not, label %.thread, label %158

.thread:                                          ; preds = %155
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  br label %187

156:                                              ; preds = %153, %151
  %157 = landingpad { ptr, i32 }
          cleanup
  br label %169

158:                                              ; preds = %155
  %159 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEEixERS6_(ptr noundef nonnull align 8 dereferenceable(56) %9, ptr noundef nonnull align 4 dereferenceable(8) %15)
          to label %160 unwind label %167

160:                                              ; preds = %158
  %161 = load i32, ptr %159, align 4, !tbaa !5
  %162 = add nsw i32 %161, %147
  %163 = load i32, ptr %13, align 4, !tbaa !5
  %164 = mul nsw i32 %163, %161
  %165 = load i32, ptr %14, align 4, !tbaa !5
  %166 = add nsw i32 %165, %164
  store i32 %166, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  br label %170

167:                                              ; preds = %158
  %168 = landingpad { ptr, i32 }
          cleanup
  br label %169

169:                                              ; preds = %167, %156
  %.pn185 = phi { ptr, i32 } [ %168, %167 ], [ %157, %156 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  br label %190

170:                                              ; preds = %160, %141
  %171 = phi i32 [ %166, %160 ], [ %149, %141 ]
  %.1138 = phi i32 [ %162, %160 ], [ %147, %141 ]
  %172 = load i32, ptr %134, align 4, !tbaa !5
  %.not187226 = icmp sgt i32 %171, %172
  br i1 %.not187226, label %.critedge, label %.lr.ph229

.lr.ph229:                                        ; preds = %170, %175
  %.2139227 = phi i32 [ %176, %175 ], [ %.1138, %170 ]
  %173 = invoke noundef i64 @_ZNKSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56) @idx, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %174 unwind label %.loopexit

174:                                              ; preds = %.lr.ph229
  %.not188 = icmp eq i64 %173, 0
  br i1 %.not188, label %.critedge, label %175

175:                                              ; preds = %174
  %176 = add nsw i32 %.2139227, 1
  %177 = load i32, ptr %13, align 4, !tbaa !5
  %178 = load i32, ptr %14, align 4, !tbaa !5
  %179 = add nsw i32 %178, %177
  store i32 %179, ptr %14, align 4, !tbaa !5
  %180 = load i32, ptr %134, align 4, !tbaa !5
  %.not187 = icmp sgt i32 %179, %180
  br i1 %.not187, label %.critedge, label %.lr.ph229, !llvm.loop !24

.loopexit:                                        ; preds = %.lr.ph229
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %190

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

.critedge:                                        ; preds = %174, %175, %170
  %.2139.lcssa = phi i32 [ %.1138, %170 ], [ %176, %175 ], [ %.2139227, %174 ]
  %.not189 = icmp slt i32 %.2139.lcssa, %29
  br i1 %.not189, label %187, label %181

181:                                              ; preds = %.critedge
  %182 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEEixERS6_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 4 dereferenceable(8) %142)
          to label %183 unwind label %.loopexit.split-lp

183:                                              ; preds = %181
  store i32 %.2139.lcssa, ptr %182, align 4, !tbaa !5
  %184 = load i32, ptr @lim, align 4, !tbaa !5
  %.not194 = icmp sgt i32 %184, %.2139.lcssa
  br i1 %.not194, label %187, label %185

185:                                              ; preds = %183
  %186 = add nsw i32 %.2139.lcssa, 1
  store i32 %186, ptr @lim, align 4, !tbaa !5
  br label %187

187:                                              ; preds = %.thread, %.critedge, %185, %183
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #5
  %188 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKS1_IiiEiELb0ELb1EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  %189 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKS1_IiiEiELb1EEES7_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  br i1 %189, label %141, label %._crit_edge235

190:                                              ; preds = %.loopexit, %.loopexit.split-lp, %169
  %.pn190 = phi { ptr, i32 } [ %.pn185, %169 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  br label %255

._crit_edge245:                                   ; preds = %251, %._crit_edge235
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  call void @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %10) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %10) #5
  call void @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %9) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %9) #5
  call void @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %8) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #5
  br label %.loopexit207

191:                                              ; preds = %.lr.ph244, %251
  %192 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKS1_IiiEiELb0ELb1EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #5
  %193 = load i32, ptr %192, align 4, !tbaa !19
  store i32 %193, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #5
  %194 = getelementptr inbounds i8, ptr %192, i64 4
  %195 = load i32, ptr %194, align 4, !tbaa !22
  store i32 %195, ptr %19, align 4, !tbaa !5
  %196 = getelementptr inbounds i8, ptr %192, i64 8
  %197 = load i32, ptr %196, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #5
  %198 = sub nsw i32 %193, %195
  store i32 %198, ptr %20, align 4, !tbaa !5
  %199 = sub nsw i32 %29, %197
  %.not173 = icmp slt i32 %199, %138
  br i1 %.not173, label %217, label %200

200:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #5
  %201 = mul nsw i32 %199, %195
  %202 = sub nsw i32 %193, %201
  store i32 %202, ptr %22, align 4, !tbaa !5
  %203 = invoke i64 @_ZSt9make_pairIiRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %22, ptr noundef nonnull align 4 dereferenceable(4) %19)
          to label %204 unwind label %207

204:                                              ; preds = %200
  store i64 %203, ptr %21, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #5
  %205 = invoke noundef i64 @_ZNKSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEE5countERS6_(ptr noundef nonnull align 8 dereferenceable(56) %8, ptr noundef nonnull align 4 dereferenceable(8) %21)
          to label %206 unwind label %209

206:                                              ; preds = %204
  %.not175.not = icmp eq i64 %205, 0
  br i1 %.not175.not, label %.thread204, label %211

.thread204:                                       ; preds = %206
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #5
  br label %251

207:                                              ; preds = %200
  %208 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #5
  br label %216

209:                                              ; preds = %204
  %210 = landingpad { ptr, i32 }
          cleanup
  br label %216

211:                                              ; preds = %206
  %212 = load i32, ptr %19, align 4, !tbaa !5
  %213 = mul nsw i32 %212, %199
  %214 = load i32, ptr %20, align 4, !tbaa !5
  %215 = sub nsw i32 %214, %213
  store i32 %215, ptr %20, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #5
  br label %217

216:                                              ; preds = %209, %207
  %.pn = phi { ptr, i32 } [ %210, %209 ], [ %208, %207 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #5
  br label %254

217:                                              ; preds = %211, %191
  %218 = phi i32 [ %212, %211 ], [ %195, %191 ]
  %219 = phi i32 [ %215, %211 ], [ %198, %191 ]
  %.1 = phi i32 [ %29, %211 ], [ %197, %191 ]
  %220 = load i32, ptr %27, align 4, !tbaa !5
  %.not176236 = icmp slt i32 %219, %220
  br i1 %.not176236, label %.critedge5, label %.lr.ph239

.lr.ph239:                                        ; preds = %217, %223
  %.2237 = phi i32 [ %224, %223 ], [ %.1, %217 ]
  %221 = invoke noundef i64 @_ZNKSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56) @idx, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %222 unwind label %227

222:                                              ; preds = %.lr.ph239
  %.not177 = icmp eq i64 %221, 0
  %.pre263.pre = load i32, ptr %20, align 4, !tbaa !5
  %.pre264.pre = load i32, ptr %19, align 4, !tbaa !5
  br i1 %.not177, label %.critedge5, label %223

223:                                              ; preds = %222
  %224 = add nsw i32 %.2237, 1
  %225 = sub nsw i32 %.pre263.pre, %.pre264.pre
  store i32 %225, ptr %20, align 4, !tbaa !5
  %226 = load i32, ptr %27, align 4, !tbaa !5
  %.not176 = icmp slt i32 %225, %226
  br i1 %.not176, label %.critedge5, label %.lr.ph239, !llvm.loop !25

227:                                              ; preds = %.lr.ph239
  %228 = landingpad { ptr, i32 }
          cleanup
  br label %254

.critedge5:                                       ; preds = %222, %223, %217
  %229 = phi i32 [ %218, %217 ], [ %.pre264.pre, %223 ], [ %.pre264.pre, %222 ]
  %230 = phi i32 [ %219, %217 ], [ %.pre263.pre, %222 ], [ %225, %223 ]
  %.2.lcssa = phi i32 [ %.1, %217 ], [ %.2237, %222 ], [ %224, %223 ]
  %231 = add nsw i32 %229, %230
  store i32 %231, ptr %18, align 4, !tbaa !5
  %.not178 = icmp slt i32 %.2.lcssa, %29
  br i1 %.not178, label %251, label %232

232:                                              ; preds = %.critedge5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #5
  %233 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %19)
          to label %234 unwind label %248

234:                                              ; preds = %232
  store i64 %233, ptr %23, align 8
  %235 = invoke noundef i64 @_ZNKSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEE5countERS6_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 4 dereferenceable(8) %23)
          to label %236 unwind label %248

236:                                              ; preds = %234
  %.not179 = icmp eq i64 %235, 0
  br i1 %.not179, label %242, label %237

237:                                              ; preds = %236
  %238 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEEixERS6_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 4 dereferenceable(8) %23)
          to label %239 unwind label %248

239:                                              ; preds = %237
  %240 = load i32, ptr %238, align 4, !tbaa !5
  %241 = icmp slt i32 %240, %.2.lcssa
  br i1 %241, label %242, label %250

242:                                              ; preds = %239, %236
  %243 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEEixERS6_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 4 dereferenceable(8) %23)
          to label %244 unwind label %248

244:                                              ; preds = %242
  store i32 %.2.lcssa, ptr %243, align 4, !tbaa !5
  %245 = load i32, ptr @lim, align 4, !tbaa !5
  %.not182 = icmp sgt i32 %245, %.2.lcssa
  br i1 %.not182, label %250, label %246

246:                                              ; preds = %244
  %247 = add nsw i32 %.2.lcssa, 1
  store i32 %247, ptr @lim, align 4, !tbaa !5
  br label %250

248:                                              ; preds = %242, %237, %234, %232
  %249 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #5
  br label %254

250:                                              ; preds = %244, %246, %239
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #5
  br label %251

251:                                              ; preds = %.thread204, %.critedge5, %250
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #5
  %252 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKS1_IiiEiELb0ELb1EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  %253 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKS1_IiiEiELb1EEES7_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  br i1 %253, label %191, label %._crit_edge245

254:                                              ; preds = %248, %227, %216
  %.pn180 = phi { ptr, i32 } [ %249, %248 ], [ %228, %227 ], [ %.pn, %216 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  br label %255

255:                                              ; preds = %254, %190
  %.pn190.pn = phi { ptr, i32 } [ %.pn190, %190 ], [ %.pn180, %254 ]
  call void @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %10) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %10) #5
  call void @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #5
  call void @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %9) #5
  br label %256

256:                                              ; preds = %255, %139
  %.pn190.pn.pn = phi { ptr, i32 } [ %.pn190.pn, %255 ], [ %140, %139 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %9) #5
  call void @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %8) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #5
  br label %257

.loopexit207:                                     ; preds = %.loopexit206, %._crit_edge.thread, %._crit_edge245, %31
  ret void

257:                                              ; preds = %256, %120
  %.pn199.pn = phi { ptr, i32 } [ %.pn199, %120 ], [ %.pn190.pn.pn, %256 ]
  resume { ptr, i32 } %.pn199.pn
}

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiiESt4pairINSt25__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 #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt13unordered_mapISt4pairIiiEiSt4hashIS1_ESt8equal_toIS1_ESaIS0_IKS1_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #4 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKS1_IiiEiELb0ELb1EEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 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 #0

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIiRiESt4pairINSt25__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 #0

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


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