; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/Good Bye 2016/Problem D (D)

; 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::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::map<int, int>>, std::_Select1st<std::pair<const int, std::map<int, int>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::map<int, int>>, std::_Select1st<std::pair<const int, std::map<int, int>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::_Rb_tree_iterator.5" = type { ptr }
%"struct.std::pair" = type { i32, %"class.std::map.0" }
%"class.std::map.0" = type { %"class.std::_Rb_tree.1" }
%"class.std::_Rb_tree.1" = type { %"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::pair.6" = type { i32, i32 }

@t = external dso_local global [30 x i32], align 16
@n = external dso_local global i32, align 4
@dx = external dso_local global [8 x i32], align 16
@dy = external dso_local global [8 x i32], align 16
@m = external dso_local global %"class.std::map", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [18 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [110 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

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

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

76:                                               ; preds = %86, %0
  %77 = load i32, ptr %2, align 4, !tbaa !5
  %78 = load i32, ptr @n, align 4, !tbaa !5
  %79 = icmp slt i32 %77, %78
  br i1 %79, label %81, label %80

80:                                               ; preds = %76
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %89

81:                                               ; preds = %76
  %82 = load i32, ptr %2, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [30 x i32], ptr @t, i64 0, i64 %83
  %85 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %84)
  br label %86

86:                                               ; preds = %81
  %87 = load i32, ptr %2, align 4, !tbaa !5
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr %2, align 4, !tbaa !5
  br label %76, !llvm.loop !9

89:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  store i32 0, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  store i32 0, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  store i32 0, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %90

90:                                               ; preds = %124, %89
  %91 = load i32, ptr %6, align 4, !tbaa !5
  %92 = load i32, ptr @n, align 4, !tbaa !5
  %93 = icmp slt i32 %91, %92
  br i1 %93, label %95, label %94

94:                                               ; preds = %90
  store i32 5, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  br label %127

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

96:                                               ; preds = %117, %95
  %97 = load i32, ptr %8, align 4, !tbaa !5
  %98 = load i32, ptr %6, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [30 x i32], ptr @t, i64 0, i64 %99
  %101 = load i32, ptr %100, align 4, !tbaa !5
  %102 = icmp slt i32 %97, %101
  br i1 %102, label %104, label %103

103:                                              ; preds = %96
  store i32 8, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %120

104:                                              ; preds = %96
  %105 = load i32, ptr %5, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [8 x i32], ptr @dx, i64 0, i64 %106
  %108 = load i32, ptr %107, align 4, !tbaa !5
  %109 = load i32, ptr %3, align 4, !tbaa !5
  %110 = add nsw i32 %109, %108
  store i32 %110, ptr %3, align 4, !tbaa !5
  %111 = load i32, ptr %5, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [8 x i32], ptr @dy, i64 0, i64 %112
  %114 = load i32, ptr %113, align 4, !tbaa !5
  %115 = load i32, ptr %4, align 4, !tbaa !5
  %116 = add nsw i32 %115, %114
  store i32 %116, ptr %4, align 4, !tbaa !5
  br label %117

117:                                              ; preds = %104
  %118 = load i32, ptr %8, align 4, !tbaa !5
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %8, align 4, !tbaa !5
  br label %96, !llvm.loop !11

120:                                              ; preds = %103
  %121 = load i32, ptr %5, align 4, !tbaa !5
  %122 = add nsw i32 %121, 1
  %123 = srem i32 %122, 8
  store i32 %123, ptr %5, align 4, !tbaa !5
  br label %124

124:                                              ; preds = %120
  %125 = load i32, ptr %6, align 4, !tbaa !5
  %126 = add nsw i32 %125, 1
  store i32 %126, ptr %6, align 4, !tbaa !5
  br label %90, !llvm.loop !12

127:                                              ; preds = %94
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  %128 = load i32, ptr @n, align 4, !tbaa !5
  %129 = sub nsw i32 %128, 1
  store i32 %129, ptr %9, align 4, !tbaa !5
  br label %130

130:                                              ; preds = %476, %127
  %131 = load i32, ptr %9, align 4, !tbaa !5
  %132 = icmp sge i32 %131, 0
  br i1 %132, label %134, label %133

133:                                              ; preds = %130
  store i32 11, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %480

134:                                              ; preds = %130
  %135 = load i32, ptr %5, align 4, !tbaa !5
  %136 = add nsw i32 %135, 7
  %137 = srem i32 %136, 8
  store i32 %137, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %138

138:                                              ; preds = %161, %134
  %139 = load i32, ptr %10, align 4, !tbaa !5
  %140 = load i32, ptr %9, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [30 x i32], ptr @t, i64 0, i64 %141
  %143 = load i32, ptr %142, align 4, !tbaa !5
  %144 = icmp slt i32 %139, %143
  br i1 %144, label %146, label %145

145:                                              ; preds = %138
  store i32 14, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %164

146:                                              ; preds = %138
  %147 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) @m, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %148 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %147, ptr noundef nonnull align 4 dereferenceable(4) %4)
  store i32 1, ptr %148, align 4, !tbaa !5
  %149 = load i32, ptr %5, align 4, !tbaa !5
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [8 x i32], ptr @dx, i64 0, i64 %150
  %152 = load i32, ptr %151, align 4, !tbaa !5
  %153 = load i32, ptr %3, align 4, !tbaa !5
  %154 = sub nsw i32 %153, %152
  store i32 %154, ptr %3, align 4, !tbaa !5
  %155 = load i32, ptr %5, align 4, !tbaa !5
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [8 x i32], ptr @dy, i64 0, i64 %156
  %158 = load i32, ptr %157, align 4, !tbaa !5
  %159 = load i32, ptr %4, align 4, !tbaa !5
  %160 = sub nsw i32 %159, %158
  store i32 %160, ptr %4, align 4, !tbaa !5
  br label %161

161:                                              ; preds = %146
  %162 = load i32, ptr %10, align 4, !tbaa !5
  %163 = add nsw i32 %162, 1
  store i32 %163, ptr %10, align 4, !tbaa !5
  br label %138, !llvm.loop !13

164:                                              ; preds = %145
  %165 = load i32, ptr %9, align 4, !tbaa !5
  %166 = icmp sgt i32 %165, 0
  br i1 %166, label %167, label %475

167:                                              ; preds = %164
  %168 = load i32, ptr %9, align 4, !tbaa !5
  %169 = sub nsw i32 %168, 1
  %170 = srem i32 %169, 2
  %171 = icmp eq i32 %170, 0
  br i1 %171, label %172, label %369

172:                                              ; preds = %167
  %173 = load i32, ptr %5, align 4, !tbaa !5
  %174 = icmp eq i32 %173, 7
  br i1 %174, label %178, label %175

175:                                              ; preds = %172
  %176 = load i32, ptr %5, align 4, !tbaa !5
  %177 = icmp eq i32 %176, 3
  br i1 %177, label %178, label %272

178:                                              ; preds = %175, %172
  call void @llvm.lifetime.start.p0(i64 48, ptr %11) #8
  call void @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  store ptr @m, ptr %12, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %179 = call ptr @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) @m) #8
  %180 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %13, i32 0, i32 0
  store ptr %179, ptr %180, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %181 = call ptr @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @m) #8
  %182 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %14, i32 0, i32 0
  store ptr %181, ptr %182, align 8
  br label %183

183:                                              ; preds = %226, %178
  %184 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  br i1 %184, label %186, label %185

185:                                              ; preds = %183
  store i32 17, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %228

186:                                              ; preds = %183
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %187 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  store ptr %187, ptr %15, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %188 = load ptr, ptr %15, align 8, !tbaa !14
  %189 = getelementptr inbounds %"struct.std::pair", ptr %188, i32 0, i32 1
  store ptr %189, ptr %16, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %190 = load ptr, ptr %16, align 8, !tbaa !14
  %191 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %190) #8
  %192 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.5", ptr %17, i32 0, i32 0
  store ptr %191, ptr %192, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %193 = load ptr, ptr %16, align 8, !tbaa !14
  %194 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %193) #8
  %195 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.5", ptr %18, i32 0, i32 0
  store ptr %194, ptr %195, align 8
  br label %196

196:                                              ; preds = %214, %186
  %197 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #8
  br i1 %197, label %199, label %198

198:                                              ; preds = %196
  store i32 19, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %225

199:                                              ; preds = %196
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %200 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #8
  store ptr %200, ptr %19, align 8, !tbaa !14
  %201 = load ptr, ptr %15, align 8, !tbaa !14
  %202 = getelementptr inbounds %"struct.std::pair", ptr %201, i32 0, i32 0
  %203 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %11, ptr noundef nonnull align 4 dereferenceable(4) %202)
          to label %204 unwind label %216

204:                                              ; preds = %199
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  %205 = load i32, ptr %4, align 4, !tbaa !5
  %206 = load ptr, ptr %19, align 8, !tbaa !14
  %207 = getelementptr inbounds %"struct.std::pair.6", ptr %206, i32 0, i32 0
  %208 = load i32, ptr %207, align 4, !tbaa !16
  %209 = load i32, ptr %4, align 4, !tbaa !5
  %210 = sub nsw i32 %208, %209
  %211 = sub nsw i32 %205, %210
  store i32 %211, ptr %22, align 4, !tbaa !5
  %212 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixEOi(ptr noundef nonnull align 8 dereferenceable(48) %203, ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %213 unwind label %220

213:                                              ; preds = %204
  store i32 1, ptr %212, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %214

214:                                              ; preds = %213
  %215 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #8
  br label %196

216:                                              ; preds = %199
  %217 = landingpad { ptr, i32 }
          cleanup
  %218 = extractvalue { ptr, i32 } %217, 0
  store ptr %218, ptr %20, align 8
  %219 = extractvalue { ptr, i32 } %217, 1
  store i32 %219, ptr %21, align 4
  br label %224

220:                                              ; preds = %204
  %221 = landingpad { ptr, i32 }
          cleanup
  %222 = extractvalue { ptr, i32 } %221, 0
  store ptr %222, ptr %20, align 8
  %223 = extractvalue { ptr, i32 } %221, 1
  store i32 %223, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %224

224:                                              ; preds = %220, %216
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %271

225:                                              ; preds = %198
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %226

226:                                              ; preds = %225
  %227 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  br label %183

228:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  store ptr %11, ptr %23, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %229 = load ptr, ptr %23, align 8, !tbaa !14
  %230 = call ptr @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %229) #8
  %231 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %24, i32 0, i32 0
  store ptr %230, ptr %231, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  %232 = load ptr, ptr %23, align 8, !tbaa !14
  %233 = call ptr @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %232) #8
  %234 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %25, i32 0, i32 0
  store ptr %233, ptr %234, align 8
  br label %235

235:                                              ; preds = %268, %228
  %236 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %25) #8
  br i1 %236, label %238, label %237

237:                                              ; preds = %235
  store i32 21, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %270

238:                                              ; preds = %235
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  %239 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #8
  store ptr %239, ptr %26, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %240 = load ptr, ptr %26, align 8, !tbaa !14
  %241 = getelementptr inbounds %"struct.std::pair", ptr %240, i32 0, i32 1
  store ptr %241, ptr %27, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  %242 = load ptr, ptr %27, align 8, !tbaa !14
  %243 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %242) #8
  %244 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.5", ptr %28, i32 0, i32 0
  store ptr %243, ptr %244, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  %245 = load ptr, ptr %27, align 8, !tbaa !14
  %246 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %245) #8
  %247 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.5", ptr %29, i32 0, i32 0
  store ptr %246, ptr %247, align 8
  br label %248

248:                                              ; preds = %261, %238
  %249 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(8) %29) #8
  br i1 %249, label %251, label %250

250:                                              ; preds = %248
  store i32 23, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  br label %267

251:                                              ; preds = %248
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  %252 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #8
  store ptr %252, ptr %30, align 8, !tbaa !14
  %253 = load ptr, ptr %26, align 8, !tbaa !14
  %254 = getelementptr inbounds %"struct.std::pair", ptr %253, i32 0, i32 0
  %255 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) @m, ptr noundef nonnull align 4 dereferenceable(4) %254)
          to label %256 unwind label %263

256:                                              ; preds = %251
  %257 = load ptr, ptr %30, align 8, !tbaa !14
  %258 = getelementptr inbounds %"struct.std::pair.6", ptr %257, i32 0, i32 0
  %259 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %255, ptr noundef nonnull align 4 dereferenceable(4) %258)
          to label %260 unwind label %263

260:                                              ; preds = %256
  store i32 1, ptr %259, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  br label %261

261:                                              ; preds = %260
  %262 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #8
  br label %248

263:                                              ; preds = %256, %251
  %264 = landingpad { ptr, i32 }
          cleanup
  %265 = extractvalue { ptr, i32 } %264, 0
  store ptr %265, ptr %20, align 8
  %266 = extractvalue { ptr, i32 } %264, 1
  store i32 %266, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %271

267:                                              ; preds = %250
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  br label %268

268:                                              ; preds = %267
  %269 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #8
  br label %235

270:                                              ; preds = %237
  call void @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %11) #8
  br label %368

271:                                              ; preds = %263, %224
  call void @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %11) #8
  br label %479

272:                                              ; preds = %175
  %273 = load i32, ptr %5, align 4, !tbaa !5
  %274 = icmp eq i32 %273, 5
  br i1 %274, label %278, label %275

275:                                              ; preds = %272
  %276 = load i32, ptr %5, align 4, !tbaa !5
  %277 = icmp eq i32 %276, 1
  br i1 %277, label %278, label %367

278:                                              ; preds = %275, %272
  call void @llvm.lifetime.start.p0(i64 48, ptr %31) #8
  call void @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %31) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  store ptr @m, ptr %32, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #8
  %279 = call ptr @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) @m) #8
  %280 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %33, i32 0, i32 0
  store ptr %279, ptr %280, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  %281 = call ptr @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @m) #8
  %282 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %34, i32 0, i32 0
  store ptr %281, ptr %282, align 8
  br label %283

283:                                              ; preds = %321, %278
  %284 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull align 8 dereferenceable(8) %34) #8
  br i1 %284, label %286, label %285

285:                                              ; preds = %283
  store i32 25, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  br label %323

286:                                              ; preds = %283
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #8
  %287 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %33) #8
  store ptr %287, ptr %35, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #8
  %288 = load ptr, ptr %35, align 8, !tbaa !14
  %289 = getelementptr inbounds %"struct.std::pair", ptr %288, i32 0, i32 1
  store ptr %289, ptr %36, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #8
  %290 = load ptr, ptr %36, align 8, !tbaa !14
  %291 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %290) #8
  %292 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.5", ptr %37, i32 0, i32 0
  store ptr %291, ptr %292, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #8
  %293 = load ptr, ptr %36, align 8, !tbaa !14
  %294 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %293) #8
  %295 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.5", ptr %38, i32 0, i32 0
  store ptr %294, ptr %295, align 8
  br label %296

296:                                              ; preds = %314, %286
  %297 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull align 8 dereferenceable(8) %38) #8
  br i1 %297, label %299, label %298

298:                                              ; preds = %296
  store i32 27, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  br label %320

299:                                              ; preds = %296
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #8
  %300 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %37) #8
  store ptr %300, ptr %39, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #8
  %301 = load i32, ptr %3, align 4, !tbaa !5
  %302 = load ptr, ptr %35, align 8, !tbaa !14
  %303 = getelementptr inbounds %"struct.std::pair", ptr %302, i32 0, i32 0
  %304 = load i32, ptr %303, align 8, !tbaa !18
  %305 = load i32, ptr %3, align 4, !tbaa !5
  %306 = sub nsw i32 %304, %305
  %307 = sub nsw i32 %301, %306
  store i32 %307, ptr %40, align 4, !tbaa !5
  %308 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEEixEOi(ptr noundef nonnull align 8 dereferenceable(48) %31, ptr noundef nonnull align 4 dereferenceable(4) %40)
          to label %309 unwind label %316

309:                                              ; preds = %299
  %310 = load ptr, ptr %39, align 8, !tbaa !14
  %311 = getelementptr inbounds %"struct.std::pair.6", ptr %310, i32 0, i32 0
  %312 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %308, ptr noundef nonnull align 4 dereferenceable(4) %311)
          to label %313 unwind label %316

313:                                              ; preds = %309
  store i32 1, ptr %312, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  br label %314

314:                                              ; preds = %313
  %315 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %37) #8
  br label %296

316:                                              ; preds = %309, %299
  %317 = landingpad { ptr, i32 }
          cleanup
  %318 = extractvalue { ptr, i32 } %317, 0
  store ptr %318, ptr %20, align 8
  %319 = extractvalue { ptr, i32 } %317, 1
  store i32 %319, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  br label %366

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

321:                                              ; preds = %320
  %322 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %33) #8
  br label %283

323:                                              ; preds = %285
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #8
  store ptr %31, ptr %41, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #8
  %324 = load ptr, ptr %41, align 8, !tbaa !14
  %325 = call ptr @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %324) #8
  %326 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %42, i32 0, i32 0
  store ptr %325, ptr %326, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #8
  %327 = load ptr, ptr %41, align 8, !tbaa !14
  %328 = call ptr @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %327) #8
  %329 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %43, i32 0, i32 0
  store ptr %328, ptr %329, align 8
  br label %330

330:                                              ; preds = %363, %323
  %331 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef nonnull align 8 dereferenceable(8) %43) #8
  br i1 %331, label %333, label %332

332:                                              ; preds = %330
  store i32 29, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #8
  br label %365

333:                                              ; preds = %330
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #8
  %334 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %42) #8
  store ptr %334, ptr %44, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #8
  %335 = load ptr, ptr %44, align 8, !tbaa !14
  %336 = getelementptr inbounds %"struct.std::pair", ptr %335, i32 0, i32 1
  store ptr %336, ptr %45, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #8
  %337 = load ptr, ptr %45, align 8, !tbaa !14
  %338 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %337) #8
  %339 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.5", ptr %46, i32 0, i32 0
  store ptr %338, ptr %339, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #8
  %340 = load ptr, ptr %45, align 8, !tbaa !14
  %341 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %340) #8
  %342 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.5", ptr %47, i32 0, i32 0
  store ptr %341, ptr %342, align 8
  br label %343

343:                                              ; preds = %356, %333
  %344 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef nonnull align 8 dereferenceable(8) %47) #8
  br i1 %344, label %346, label %345

345:                                              ; preds = %343
  store i32 31, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #8
  br label %362

346:                                              ; preds = %343
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #8
  %347 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %46) #8
  store ptr %347, ptr %48, align 8, !tbaa !14
  %348 = load ptr, ptr %44, align 8, !tbaa !14
  %349 = getelementptr inbounds %"struct.std::pair", ptr %348, i32 0, i32 0
  %350 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) @m, ptr noundef nonnull align 4 dereferenceable(4) %349)
          to label %351 unwind label %358

351:                                              ; preds = %346
  %352 = load ptr, ptr %48, align 8, !tbaa !14
  %353 = getelementptr inbounds %"struct.std::pair.6", ptr %352, i32 0, i32 0
  %354 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %350, ptr noundef nonnull align 4 dereferenceable(4) %353)
          to label %355 unwind label %358

355:                                              ; preds = %351
  store i32 1, ptr %354, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #8
  br label %356

356:                                              ; preds = %355
  %357 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %46) #8
  br label %343

358:                                              ; preds = %351, %346
  %359 = landingpad { ptr, i32 }
          cleanup
  %360 = extractvalue { ptr, i32 } %359, 0
  store ptr %360, ptr %20, align 8
  %361 = extractvalue { ptr, i32 } %359, 1
  store i32 %361, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #8
  br label %366

362:                                              ; preds = %345
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #8
  br label %363

363:                                              ; preds = %362
  %364 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %42) #8
  br label %330

365:                                              ; preds = %332
  call void @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %31) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %31) #8
  br label %367

366:                                              ; preds = %358, %316
  call void @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %31) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %31) #8
  br label %479

367:                                              ; preds = %365, %275
  br label %368

368:                                              ; preds = %367, %270
  br label %474

369:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 48, ptr %49) #8
  call void @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %49) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #8
  store ptr @m, ptr %50, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #8
  %370 = call ptr @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) @m) #8
  %371 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %51, i32 0, i32 0
  store ptr %370, ptr %371, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #8
  %372 = call ptr @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @m) #8
  %373 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %52, i32 0, i32 0
  store ptr %372, ptr %373, align 8
  br label %374

374:                                              ; preds = %428, %369
  %375 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %51, ptr noundef nonnull align 8 dereferenceable(8) %52) #8
  br i1 %375, label %377, label %376

376:                                              ; preds = %374
  store i32 33, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #8
  br label %430

377:                                              ; preds = %374
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #8
  %378 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %51) #8
  store ptr %378, ptr %53, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #8
  %379 = load ptr, ptr %53, align 8, !tbaa !14
  %380 = getelementptr inbounds %"struct.std::pair", ptr %379, i32 0, i32 1
  store ptr %380, ptr %54, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #8
  %381 = load ptr, ptr %54, align 8, !tbaa !14
  %382 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %381) #8
  %383 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.5", ptr %55, i32 0, i32 0
  store ptr %382, ptr %383, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #8
  %384 = load ptr, ptr %54, align 8, !tbaa !14
  %385 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %384) #8
  %386 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.5", ptr %56, i32 0, i32 0
  store ptr %385, ptr %386, align 8
  br label %387

387:                                              ; preds = %416, %377
  %388 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef nonnull align 8 dereferenceable(8) %56) #8
  br i1 %388, label %390, label %389

389:                                              ; preds = %387
  store i32 35, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #8
  br label %427

390:                                              ; preds = %387
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #8
  %391 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %55) #8
  store ptr %391, ptr %57, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %58) #8
  %392 = load ptr, ptr %53, align 8, !tbaa !14
  %393 = getelementptr inbounds %"struct.std::pair", ptr %392, i32 0, i32 0
  %394 = load i32, ptr %393, align 8, !tbaa !18
  %395 = load i32, ptr %3, align 4, !tbaa !5
  %396 = sub nsw i32 %394, %395
  store i32 %396, ptr %58, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %59) #8
  %397 = load ptr, ptr %57, align 8, !tbaa !14
  %398 = getelementptr inbounds %"struct.std::pair.6", ptr %397, i32 0, i32 0
  %399 = load i32, ptr %398, align 4, !tbaa !16
  %400 = load i32, ptr %4, align 4, !tbaa !5
  %401 = sub nsw i32 %399, %400
  store i32 %401, ptr %59, align 4, !tbaa !5
  %402 = load i32, ptr %58, align 4, !tbaa !5
  %403 = mul nsw i32 %402, -1
  store i32 %403, ptr %58, align 4, !tbaa !5
  %404 = load i32, ptr %59, align 4, !tbaa !5
  %405 = mul nsw i32 %404, -1
  store i32 %405, ptr %59, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %60) #8
  %406 = load i32, ptr %3, align 4, !tbaa !5
  %407 = load i32, ptr %59, align 4, !tbaa !5
  %408 = sub nsw i32 %406, %407
  store i32 %408, ptr %60, align 4, !tbaa !5
  %409 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEEixEOi(ptr noundef nonnull align 8 dereferenceable(48) %49, ptr noundef nonnull align 4 dereferenceable(4) %60)
          to label %410 unwind label %418

410:                                              ; preds = %390
  call void @llvm.lifetime.start.p0(i64 4, ptr %61) #8
  %411 = load i32, ptr %4, align 4, !tbaa !5
  %412 = load i32, ptr %58, align 4, !tbaa !5
  %413 = add nsw i32 %411, %412
  store i32 %413, ptr %61, align 4, !tbaa !5
  %414 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixEOi(ptr noundef nonnull align 8 dereferenceable(48) %409, ptr noundef nonnull align 4 dereferenceable(4) %61)
          to label %415 unwind label %422

415:                                              ; preds = %410
  store i32 1, ptr %414, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %61) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %58) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #8
  br label %416

416:                                              ; preds = %415
  %417 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %55) #8
  br label %387

418:                                              ; preds = %390
  %419 = landingpad { ptr, i32 }
          cleanup
  %420 = extractvalue { ptr, i32 } %419, 0
  store ptr %420, ptr %20, align 8
  %421 = extractvalue { ptr, i32 } %419, 1
  store i32 %421, ptr %21, align 4
  br label %426

422:                                              ; preds = %410
  %423 = landingpad { ptr, i32 }
          cleanup
  %424 = extractvalue { ptr, i32 } %423, 0
  store ptr %424, ptr %20, align 8
  %425 = extractvalue { ptr, i32 } %423, 1
  store i32 %425, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %61) #8
  br label %426

426:                                              ; preds = %422, %418
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %58) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #8
  br label %473

427:                                              ; preds = %389
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #8
  br label %428

428:                                              ; preds = %427
  %429 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %51) #8
  br label %374

430:                                              ; preds = %376
  call void @llvm.lifetime.start.p0(i64 8, ptr %62) #8
  store ptr %49, ptr %62, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %63) #8
  %431 = load ptr, ptr %62, align 8, !tbaa !14
  %432 = call ptr @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %431) #8
  %433 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %63, i32 0, i32 0
  store ptr %432, ptr %433, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %64) #8
  %434 = load ptr, ptr %62, align 8, !tbaa !14
  %435 = call ptr @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %434) #8
  %436 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %64, i32 0, i32 0
  store ptr %435, ptr %436, align 8
  br label %437

437:                                              ; preds = %470, %430
  %438 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef nonnull align 8 dereferenceable(8) %64) #8
  br i1 %438, label %440, label %439

439:                                              ; preds = %437
  store i32 37, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #8
  br label %472

440:                                              ; preds = %437
  call void @llvm.lifetime.start.p0(i64 8, ptr %65) #8
  %441 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %63) #8
  store ptr %441, ptr %65, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %66) #8
  %442 = load ptr, ptr %65, align 8, !tbaa !14
  %443 = getelementptr inbounds %"struct.std::pair", ptr %442, i32 0, i32 1
  store ptr %443, ptr %66, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %67) #8
  %444 = load ptr, ptr %66, align 8, !tbaa !14
  %445 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %444) #8
  %446 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.5", ptr %67, i32 0, i32 0
  store ptr %445, ptr %446, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %68) #8
  %447 = load ptr, ptr %66, align 8, !tbaa !14
  %448 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %447) #8
  %449 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.5", ptr %68, i32 0, i32 0
  store ptr %448, ptr %449, align 8
  br label %450

450:                                              ; preds = %463, %440
  %451 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %67, ptr noundef nonnull align 8 dereferenceable(8) %68) #8
  br i1 %451, label %453, label %452

452:                                              ; preds = %450
  store i32 39, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %68) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %67) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #8
  br label %469

453:                                              ; preds = %450
  call void @llvm.lifetime.start.p0(i64 8, ptr %69) #8
  %454 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %67) #8
  store ptr %454, ptr %69, align 8, !tbaa !14
  %455 = load ptr, ptr %65, align 8, !tbaa !14
  %456 = getelementptr inbounds %"struct.std::pair", ptr %455, i32 0, i32 0
  %457 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) @m, ptr noundef nonnull align 4 dereferenceable(4) %456)
          to label %458 unwind label %465

458:                                              ; preds = %453
  %459 = load ptr, ptr %69, align 8, !tbaa !14
  %460 = getelementptr inbounds %"struct.std::pair.6", ptr %459, i32 0, i32 0
  %461 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %457, ptr noundef nonnull align 4 dereferenceable(4) %460)
          to label %462 unwind label %465

462:                                              ; preds = %458
  store i32 1, ptr %461, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %69) #8
  br label %463

463:                                              ; preds = %462
  %464 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %67) #8
  br label %450

465:                                              ; preds = %458, %453
  %466 = landingpad { ptr, i32 }
          cleanup
  %467 = extractvalue { ptr, i32 } %466, 0
  store ptr %467, ptr %20, align 8
  %468 = extractvalue { ptr, i32 } %466, 1
  store i32 %468, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %69) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %68) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %67) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %65) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #8
  br label %473

469:                                              ; preds = %452
  call void @llvm.lifetime.end.p0(i64 8, ptr %65) #8
  br label %470

470:                                              ; preds = %469
  %471 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %63) #8
  br label %437

472:                                              ; preds = %439
  call void @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %49) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %49) #8
  br label %474

473:                                              ; preds = %465, %426
  call void @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %49) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %49) #8
  br label %479

474:                                              ; preds = %472, %368
  br label %475

475:                                              ; preds = %474, %164
  br label %476

476:                                              ; preds = %475
  %477 = load i32, ptr %9, align 4, !tbaa !5
  %478 = add nsw i32 %477, -1
  store i32 %478, ptr %9, align 4, !tbaa !5
  br label %130, !llvm.loop !29

479:                                              ; preds = %473, %366, %271
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  br label %514

480:                                              ; preds = %133
  %481 = load i32, ptr %3, align 4, !tbaa !5
  %482 = icmp eq i32 %481, 0
  br i1 %482, label %483, label %486

483:                                              ; preds = %480
  %484 = load i32, ptr %4, align 4, !tbaa !5
  %485 = icmp eq i32 %484, 0
  br label %486

486:                                              ; preds = %483, %480
  %487 = phi i1 [ false, %480 ], [ %485, %483 ]
  br i1 %487, label %488, label %489

488:                                              ; preds = %486
  br label %491

489:                                              ; preds = %486
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.2, i32 noundef 132, ptr noundef @__PRETTY_FUNCTION__.main) #9
  unreachable

490:                                              ; No predecessors!
  br label %491

491:                                              ; preds = %490, %488
  call void @llvm.lifetime.start.p0(i64 4, ptr %70) #8
  store i32 0, ptr %70, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %71) #8
  store ptr @m, ptr %71, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %72) #8
  %492 = call ptr @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) @m) #8
  %493 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %72, i32 0, i32 0
  store ptr %492, ptr %493, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %73) #8
  %494 = call ptr @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @m) #8
  %495 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %73, i32 0, i32 0
  store ptr %494, ptr %495, align 8
  br label %496

496:                                              ; preds = %507, %491
  %497 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %72, ptr noundef nonnull align 8 dereferenceable(8) %73) #8
  br i1 %497, label %499, label %498

498:                                              ; preds = %496
  store i32 41, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %73) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %71) #8
  br label %509

499:                                              ; preds = %496
  call void @llvm.lifetime.start.p0(i64 56, ptr %74) #8
  %500 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %72) #8
  call void @_ZNSt4pairIKiSt3mapIiiSt4lessIiESaIS_IS0_iEEEEC2ERKS7_(ptr noundef nonnull align 8 dereferenceable(56) %74, ptr noundef nonnull align 8 dereferenceable(56) %500)
  %501 = getelementptr inbounds %"struct.std::pair", ptr %74, i32 0, i32 1
  %502 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %501) #8
  %503 = load i32, ptr %70, align 4, !tbaa !5
  %504 = sext i32 %503 to i64
  %505 = add i64 %504, %502
  %506 = trunc i64 %505 to i32
  store i32 %506, ptr %70, align 4, !tbaa !5
  call void @_ZNSt4pairIKiSt3mapIiiSt4lessIiESaIS_IS0_iEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %74) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr %74) #8
  br label %507

507:                                              ; preds = %499
  %508 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %72) #8
  br label %496

509:                                              ; preds = %498
  %510 = load i32, ptr %70, align 4, !tbaa !5
  %511 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %510)
  %512 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %511, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %70) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  %513 = load i32, ptr %1, align 4
  ret i32 %513

514:                                              ; preds = %479
  %515 = load ptr, ptr %20, align 8
  %516 = load i32, ptr %21, align 4
  %517 = insertvalue { ptr, i32 } poison, ptr %515, 0
  %518 = insertvalue { ptr, i32 } %517, i32 %516, 1
  resume { ptr, i32 } %518
}

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

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

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

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

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

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

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

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = !{!15, !15, i64 0}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!17, !6, i64 0}
!17 = !{!"_ZTSSt4pairIKiiE", !6, i64 0, !6, i64 4}
!18 = !{!19, !6, i64 0}
!19 = !{!"_ZTSSt4pairIKiSt3mapIiiSt4lessIiESaIS_IS0_iEEEE", !6, i64 0, !20, i64 8}
!20 = !{!"_ZTSSt3mapIiiSt4lessIiESaISt4pairIKiiEEE", !21, i64 0}
!21 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKiiESt10_Select1stIS2_ESt4lessIiESaIS2_EE", !22, i64 0}
!22 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKiiESt10_Select1stIS2_ESt4lessIiESaIS2_EE13_Rb_tree_implIS6_Lb1EEE", !23, i64 0, !25, i64 8}
!23 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !24, i64 0}
!24 = !{!"_ZTSSt4lessIiE"}
!25 = !{!"_ZTSSt15_Rb_tree_header", !26, i64 0, !28, i64 32}
!26 = !{!"_ZTSSt18_Rb_tree_node_base", !27, i64 0, !15, i64 8, !15, i64 16, !15, i64 24}
!27 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!28 = !{!"long", !7, i64 0}
!29 = distinct !{!29, !10}


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

%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::map<int, int>>, std::_Select1st<std::pair<const int, std::map<int, int>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::map<int, int>>, std::_Select1st<std::pair<const int, std::map<int, int>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::_Rb_tree_iterator.5" = type { ptr }
%"struct.std::pair" = type { i32, %"class.std::map.0" }
%"class.std::map.0" = type { %"class.std::_Rb_tree.1" }
%"class.std::_Rb_tree.1" = type { %"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }

@t = external dso_local global [30 x i32], align 16
@n = external dso_local global i32, align 4
@dx = external dso_local local_unnamed_addr global [8 x i32], align 16
@dy = external dso_local local_unnamed_addr global [8 x i32], align 16
@m = external dso_local global %"class.std::map", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [18 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [110 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"class.std::map", align 8
  %4 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %5 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %6 = alloca %"struct.std::_Rb_tree_iterator.5", align 8
  %7 = alloca %"struct.std::_Rb_tree_iterator.5", align 8
  %8 = alloca i32, align 4
  %9 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %10 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %11 = alloca %"struct.std::_Rb_tree_iterator.5", align 8
  %12 = alloca %"struct.std::_Rb_tree_iterator.5", align 8
  %13 = alloca %"class.std::map", align 8
  %14 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %15 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %16 = alloca %"struct.std::_Rb_tree_iterator.5", align 8
  %17 = alloca %"struct.std::_Rb_tree_iterator.5", align 8
  %18 = alloca i32, align 4
  %19 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %20 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %21 = alloca %"struct.std::_Rb_tree_iterator.5", align 8
  %22 = alloca %"struct.std::_Rb_tree_iterator.5", align 8
  %23 = alloca %"class.std::map", align 8
  %24 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %25 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %26 = alloca %"struct.std::_Rb_tree_iterator.5", align 8
  %27 = alloca %"struct.std::_Rb_tree_iterator.5", align 8
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %31 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %32 = alloca %"struct.std::_Rb_tree_iterator.5", align 8
  %33 = alloca %"struct.std::_Rb_tree_iterator.5", align 8
  %34 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %35 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %36 = alloca %"struct.std::pair", align 8
  %37 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  %38 = load i32, ptr @n, align 4, !tbaa !5
  %39 = icmp sgt i32 %38, 0
  br i1 %39, label %.lr.ph, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  store i32 0, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %._crit_edge167

._crit_edge:                                      ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  store i32 0, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  store i32 0, ptr %2, align 4, !tbaa !5
  %40 = icmp sgt i32 %43, 0
  br i1 %40, label %.preheader104.preheader, label %._crit_edge167

.preheader104.preheader:                          ; preds = %._crit_edge
  %wide.trip.count = zext nneg i32 %43 to i64
  br label %.preheader104

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %41 = getelementptr inbounds [30 x i32], ptr @t, i64 0, i64 %indvars.iv
  %42 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %41)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %43 = load i32, ptr @n, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = icmp slt i64 %indvars.iv.next, %44
  br i1 %45, label %.lr.ph, label %._crit_edge, !llvm.loop !9

.preheader104:                                    ; preds = %.preheader104.preheader, %59
  %indvars.iv179 = phi i64 [ 0, %.preheader104.preheader ], [ %indvars.iv.next180, %59 ]
  %.073120 = phi i32 [ 0, %.preheader104.preheader ], [ %61, %59 ]
  %.lcssa110114118 = phi i32 [ 0, %.preheader104.preheader ], [ %.lcssa110113, %59 ]
  %.lcssa111116117 = phi i32 [ 0, %.preheader104.preheader ], [ %.lcssa111115, %59 ]
  %46 = getelementptr inbounds [30 x i32], ptr @t, i64 0, i64 %indvars.iv179
  %47 = load i32, ptr %46, align 4, !tbaa !5
  %48 = icmp sgt i32 %47, 0
  br i1 %48, label %.lr.ph108, label %59

.lr.ph108:                                        ; preds = %.preheader104
  %49 = sext i32 %.073120 to i64
  %50 = getelementptr inbounds [8 x i32], ptr @dx, i64 0, i64 %49
  %51 = load i32, ptr %50, align 4, !tbaa !5
  %52 = getelementptr inbounds [8 x i32], ptr @dy, i64 0, i64 %49
  %53 = load i32, ptr %52, align 4, !tbaa !5
  %54 = mul i32 %51, %47
  %55 = mul i32 %53, %47
  %56 = add i32 %.lcssa110114118, %54
  %57 = add i32 %.lcssa111116117, %55
  store i32 %56, ptr %1, align 4, !tbaa !5
  store i32 %57, ptr %2, align 4, !tbaa !5
  br label %59

.preheader:                                       ; preds = %59
  br i1 %40, label %.lr.ph166.preheader, label %._crit_edge167

.lr.ph166.preheader:                              ; preds = %.preheader
  %58 = zext nneg i32 %43 to i64
  br label %.lr.ph166

59:                                               ; preds = %.lr.ph108, %.preheader104
  %.lcssa111115 = phi i32 [ %57, %.lr.ph108 ], [ %.lcssa111116117, %.preheader104 ]
  %.lcssa110113 = phi i32 [ %56, %.lr.ph108 ], [ %.lcssa110114118, %.preheader104 ]
  %60 = add nsw i32 %.073120, 1
  %61 = srem i32 %60, 8
  %indvars.iv.next180 = add nuw nsw i64 %indvars.iv179, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next180, %wide.trip.count
  br i1 %exitcond.not, label %.preheader, label %.preheader104, !llvm.loop !11

._crit_edge167.loopexit:                          ; preds = %._crit_edge125, %231
  %.pre = load i32, ptr %1, align 4, !tbaa !5
  %.pre185 = load i32, ptr %2, align 4
  br label %._crit_edge167

._crit_edge167:                                   ; preds = %._crit_edge.thread, %._crit_edge, %._crit_edge167.loopexit, %.preheader
  %62 = phi i32 [ %.pre185, %._crit_edge167.loopexit ], [ %.lcssa111115, %.preheader ], [ 0, %._crit_edge ], [ 0, %._crit_edge.thread ]
  %63 = phi i32 [ %.pre, %._crit_edge167.loopexit ], [ %.lcssa110113, %.preheader ], [ 0, %._crit_edge ], [ 0, %._crit_edge.thread ]
  %64 = icmp eq i32 %63, 0
  %65 = icmp eq i32 %62, 0
  %66 = select i1 %64, i1 %65, i1 false
  br i1 %66, label %235, label %234

.lr.ph166:                                        ; preds = %.lr.ph166.preheader, %231
  %indvars.iv182 = phi i64 [ %58, %.lr.ph166.preheader ], [ %indvars.iv.next183, %231 ]
  %.1164 = phi i32 [ %61, %.lr.ph166.preheader ], [ %68, %231 ]
  %indvars.iv.next183 = add nsw i64 %indvars.iv182, -1
  %67 = add nsw i32 %.1164, 7
  %68 = srem i32 %67, 8
  %69 = getelementptr inbounds [30 x i32], ptr @t, i64 0, i64 %indvars.iv.next183
  %70 = load i32, ptr %69, align 4, !tbaa !5
  %71 = icmp sgt i32 %70, 0
  br i1 %71, label %.lr.ph124, label %._crit_edge125

.lr.ph124:                                        ; preds = %.lr.ph166
  %72 = sext i32 %68 to i64
  %73 = getelementptr inbounds [8 x i32], ptr @dx, i64 0, i64 %72
  %74 = getelementptr inbounds [8 x i32], ptr @dy, i64 0, i64 %72
  br label %75

._crit_edge125:                                   ; preds = %75, %.lr.ph166
  %.not = icmp eq i64 %indvars.iv182, 1
  br i1 %.not, label %._crit_edge167.loopexit, label %87

75:                                               ; preds = %.lr.ph124, %75
  %.077122 = phi i32 [ 0, %.lr.ph124 ], [ %84, %75 ]
  %76 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) @m, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %77 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %76, ptr noundef nonnull align 4 dereferenceable(4) %2)
  store i32 1, ptr %77, align 4, !tbaa !5
  %78 = load i32, ptr %73, align 4, !tbaa !5
  %79 = load i32, ptr %1, align 4, !tbaa !5
  %80 = sub nsw i32 %79, %78
  store i32 %80, ptr %1, align 4, !tbaa !5
  %81 = load i32, ptr %74, align 4, !tbaa !5
  %82 = load i32, ptr %2, align 4, !tbaa !5
  %83 = sub nsw i32 %82, %81
  store i32 %83, ptr %2, align 4, !tbaa !5
  %84 = add nuw nsw i32 %.077122, 1
  %85 = load i32, ptr %69, align 4, !tbaa !5
  %86 = icmp slt i32 %84, %85
  br i1 %86, label %75, label %._crit_edge125, !llvm.loop !12

87:                                               ; preds = %._crit_edge125
  %88 = and i64 %indvars.iv182, 1
  %89 = icmp eq i64 %88, 0
  br i1 %89, label %90, label %181

90:                                               ; preds = %87
  %91 = and i32 %68, -5
  switch i32 %91, label %231 [
    i32 3, label %92
    i32 1, label %138
  ]

92:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %3) #8
  call void @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  %93 = call ptr @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) @m) #8
  store ptr %93, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  %94 = call ptr @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @m) #8
  store ptr %94, ptr %5, align 8
  %95 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  br i1 %95, label %.lr.ph154, label %._crit_edge155

._crit_edge155:                                   ; preds = %._crit_edge152, %92
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  %96 = call ptr @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %3) #8
  store ptr %96, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  %97 = call ptr @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %3) #8
  store ptr %97, ptr %10, align 8
  %98 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  br i1 %98, label %.lr.ph160, label %._crit_edge161

.lr.ph154:                                        ; preds = %92, %._crit_edge152
  %99 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %100 = getelementptr inbounds i8, ptr %99, i64 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  %101 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %100) #8
  store ptr %101, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  %102 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %100) #8
  store ptr %102, ptr %7, align 8
  %103 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  br i1 %103, label %.lr.ph151, label %._crit_edge152

._crit_edge152:                                   ; preds = %113, %.lr.ph154
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %105 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  br i1 %105, label %.lr.ph154, label %._crit_edge155

.lr.ph151:                                        ; preds = %.lr.ph154, %113
  %106 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  %107 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(4) %99)
          to label %108 unwind label %116

108:                                              ; preds = %.lr.ph151
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #8
  %109 = load i32, ptr %2, align 4, !tbaa !5
  %110 = load i32, ptr %106, align 4, !tbaa !13
  %factor103 = shl i32 %109, 1
  %111 = sub i32 %factor103, %110
  store i32 %111, ptr %8, align 4, !tbaa !5
  %112 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixEOi(ptr noundef nonnull align 8 dereferenceable(48) %107, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %113 unwind label %118

113:                                              ; preds = %108
  store i32 1, ptr %112, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
  %114 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  %115 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  br i1 %115, label %.lr.ph151, label %._crit_edge152

116:                                              ; preds = %.lr.ph151
  %117 = landingpad { ptr, i32 }
          cleanup
  br label %120

118:                                              ; preds = %108
  %119 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
  br label %120

120:                                              ; preds = %118, %116
  %.pn95 = phi { ptr, i32 } [ %119, %118 ], [ %117, %116 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  br label %137

._crit_edge161:                                   ; preds = %._crit_edge158, %._crit_edge155
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  call void @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #8
  br label %231

.lr.ph160:                                        ; preds = %._crit_edge155, %._crit_edge158
  %121 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  %122 = getelementptr inbounds i8, ptr %121, i64 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  %123 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %122) #8
  store ptr %123, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  %124 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %122) #8
  store ptr %124, ptr %12, align 8
  %125 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  br i1 %125, label %.lr.ph157, label %._crit_edge158

._crit_edge158:                                   ; preds = %132, %.lr.ph160
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  %126 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  %127 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  br i1 %127, label %.lr.ph160, label %._crit_edge161

.lr.ph157:                                        ; preds = %.lr.ph160, %132
  %128 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  %129 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) @m, ptr noundef nonnull align 4 dereferenceable(4) %121)
          to label %130 unwind label %135

130:                                              ; preds = %.lr.ph157
  %131 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %129, ptr noundef nonnull align 4 dereferenceable(4) %128)
          to label %132 unwind label %135

132:                                              ; preds = %130
  store i32 1, ptr %131, align 4, !tbaa !5
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  %134 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  br i1 %134, label %.lr.ph157, label %._crit_edge158

135:                                              ; preds = %130, %.lr.ph157
  %136 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  br label %137

137:                                              ; preds = %135, %120
  %.pn95.pn = phi { ptr, i32 } [ %.pn95, %120 ], [ %136, %135 ]
  call void @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #8
  br label %233

138:                                              ; preds = %90
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %13) #8
  call void @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %13) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #8
  %139 = call ptr @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) @m) #8
  store ptr %139, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #8
  %140 = call ptr @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @m) #8
  store ptr %140, ptr %15, align 8
  %141 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  br i1 %141, label %.lr.ph142, label %._crit_edge143

._crit_edge143:                                   ; preds = %._crit_edge140, %138
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #8
  %142 = call ptr @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %13) #8
  store ptr %142, ptr %19, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #8
  %143 = call ptr @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %13) #8
  store ptr %143, ptr %20, align 8
  %144 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  br i1 %144, label %.lr.ph148, label %._crit_edge149

.lr.ph142:                                        ; preds = %138, %._crit_edge140
  %145 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  %146 = getelementptr inbounds i8, ptr %145, i64 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #8
  %147 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %146) #8
  store ptr %147, ptr %16, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #8
  %148 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %146) #8
  store ptr %148, ptr %17, align 8
  %149 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #8
  br i1 %149, label %.lr.ph139, label %._crit_edge140

._crit_edge140:                                   ; preds = %159, %.lr.ph142
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #8
  %150 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  %151 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  br i1 %151, label %.lr.ph142, label %._crit_edge143

.lr.ph139:                                        ; preds = %.lr.ph142, %159
  %152 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #8
  %153 = load i32, ptr %1, align 4, !tbaa !5
  %154 = load i32, ptr %145, align 8, !tbaa !15
  %factor = shl i32 %153, 1
  %155 = sub i32 %factor, %154
  store i32 %155, ptr %18, align 4, !tbaa !5
  %156 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEEixEOi(ptr noundef nonnull align 8 dereferenceable(48) %13, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %157 unwind label %162

157:                                              ; preds = %.lr.ph139
  %158 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %156, ptr noundef nonnull align 4 dereferenceable(4) %152)
          to label %159 unwind label %162

159:                                              ; preds = %157
  store i32 1, ptr %158, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #8
  %160 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  %161 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #8
  br i1 %161, label %.lr.ph139, label %._crit_edge140

162:                                              ; preds = %157, %.lr.ph139
  %163 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  br label %180

._crit_edge149:                                   ; preds = %._crit_edge146, %._crit_edge143
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #8
  call void @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %13) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %13) #8
  br label %231

.lr.ph148:                                        ; preds = %._crit_edge143, %._crit_edge146
  %164 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #8
  %165 = getelementptr inbounds i8, ptr %164, i64 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #8
  %166 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %165) #8
  store ptr %166, ptr %21, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #8
  %167 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %165) #8
  store ptr %167, ptr %22, align 8
  %168 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #8
  br i1 %168, label %.lr.ph145, label %._crit_edge146

._crit_edge146:                                   ; preds = %175, %.lr.ph148
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #8
  %169 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #8
  %170 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  br i1 %170, label %.lr.ph148, label %._crit_edge149

.lr.ph145:                                        ; preds = %.lr.ph148, %175
  %171 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #8
  %172 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) @m, ptr noundef nonnull align 4 dereferenceable(4) %164)
          to label %173 unwind label %178

173:                                              ; preds = %.lr.ph145
  %174 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %172, ptr noundef nonnull align 4 dereferenceable(4) %171)
          to label %175 unwind label %178

175:                                              ; preds = %173
  store i32 1, ptr %174, align 4, !tbaa !5
  %176 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #8
  %177 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #8
  br i1 %177, label %.lr.ph145, label %._crit_edge146

178:                                              ; preds = %173, %.lr.ph145
  %179 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #8
  br label %180

180:                                              ; preds = %178, %162
  %.pn92 = phi { ptr, i32 } [ %163, %162 ], [ %179, %178 ]
  call void @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %13) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %13) #8
  br label %233

181:                                              ; preds = %87
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %23) #8
  call void @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %23) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #8
  %182 = call ptr @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) @m) #8
  store ptr %182, ptr %24, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #8
  %183 = call ptr @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @m) #8
  store ptr %183, ptr %25, align 8
  %184 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %25) #8
  br i1 %184, label %.lr.ph130, label %._crit_edge131

._crit_edge131:                                   ; preds = %._crit_edge128, %181
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %30) #8
  %185 = call ptr @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %23) #8
  store ptr %185, ptr %30, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %31) #8
  %186 = call ptr @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %23) #8
  store ptr %186, ptr %31, align 8
  %187 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 8 dereferenceable(8) %31) #8
  br i1 %187, label %.lr.ph136, label %._crit_edge137

.lr.ph130:                                        ; preds = %181, %._crit_edge128
  %188 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #8
  %189 = getelementptr inbounds i8, ptr %188, i64 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #8
  %190 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %189) #8
  store ptr %190, ptr %26, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %27) #8
  %191 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %189) #8
  store ptr %191, ptr %27, align 8
  %192 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %27) #8
  br i1 %192, label %.lr.ph127, label %._crit_edge128

._crit_edge128:                                   ; preds = %206, %.lr.ph130
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #8
  %193 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #8
  %194 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %25) #8
  br i1 %194, label %.lr.ph130, label %._crit_edge131

.lr.ph127:                                        ; preds = %.lr.ph130, %206
  %195 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #8
  %196 = load i32, ptr %188, align 8, !tbaa !15
  %197 = load i32, ptr %1, align 4, !tbaa !5
  %198 = load i32, ptr %195, align 4, !tbaa !13
  %199 = load i32, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %28) #8
  %.neg88.neg = add i32 %198, %197
  %200 = sub i32 %.neg88.neg, %199
  store i32 %200, ptr %28, align 4, !tbaa !5
  %201 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEEixEOi(ptr noundef nonnull align 8 dereferenceable(48) %23, ptr noundef nonnull align 4 dereferenceable(4) %28)
          to label %202 unwind label %209

202:                                              ; preds = %.lr.ph127
  %.neg = sub i32 %197, %196
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %29) #8
  %203 = load i32, ptr %2, align 4, !tbaa !5
  %204 = add nsw i32 %.neg, %203
  store i32 %204, ptr %29, align 4, !tbaa !5
  %205 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixEOi(ptr noundef nonnull align 8 dereferenceable(48) %201, ptr noundef nonnull align 4 dereferenceable(4) %29)
          to label %206 unwind label %211

206:                                              ; preds = %202
  store i32 1, ptr %205, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %29) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %28) #8
  %207 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #8
  %208 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %27) #8
  br i1 %208, label %.lr.ph127, label %._crit_edge128

209:                                              ; preds = %.lr.ph127
  %210 = landingpad { ptr, i32 }
          cleanup
  br label %213

211:                                              ; preds = %202
  %212 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %29) #8
  br label %213

213:                                              ; preds = %211, %209
  %.pn = phi { ptr, i32 } [ %212, %211 ], [ %210, %209 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #8
  br label %230

._crit_edge137:                                   ; preds = %._crit_edge134, %._crit_edge131
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #8
  call void @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %23) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %23) #8
  br label %231

.lr.ph136:                                        ; preds = %._crit_edge131, %._crit_edge134
  %214 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %30) #8
  %215 = getelementptr inbounds i8, ptr %214, i64 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %32) #8
  %216 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %215) #8
  store ptr %216, ptr %32, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %33) #8
  %217 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %215) #8
  store ptr %217, ptr %33, align 8
  %218 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 8 dereferenceable(8) %33) #8
  br i1 %218, label %.lr.ph133, label %._crit_edge134

._crit_edge134:                                   ; preds = %225, %.lr.ph136
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %33) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %32) #8
  %219 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %30) #8
  %220 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 8 dereferenceable(8) %31) #8
  br i1 %220, label %.lr.ph136, label %._crit_edge137

.lr.ph133:                                        ; preds = %.lr.ph136, %225
  %221 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %32) #8
  %222 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) @m, ptr noundef nonnull align 4 dereferenceable(4) %214)
          to label %223 unwind label %228

223:                                              ; preds = %.lr.ph133
  %224 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %222, ptr noundef nonnull align 4 dereferenceable(4) %221)
          to label %225 unwind label %228

225:                                              ; preds = %223
  store i32 1, ptr %224, align 4, !tbaa !5
  %226 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %32) #8
  %227 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 8 dereferenceable(8) %33) #8
  br i1 %227, label %.lr.ph133, label %._crit_edge134

228:                                              ; preds = %223, %.lr.ph133
  %229 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %33) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #8
  br label %230

230:                                              ; preds = %228, %213
  %.pn.pn = phi { ptr, i32 } [ %.pn, %213 ], [ %229, %228 ]
  call void @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %23) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %23) #8
  br label %233

231:                                              ; preds = %90, %._crit_edge161, %._crit_edge149, %._crit_edge137
  %232 = icmp sgt i64 %indvars.iv182, 1
  br i1 %232, label %.lr.ph166, label %._crit_edge167.loopexit, !llvm.loop !27

233:                                              ; preds = %230, %180, %137
  %.pn95.pn.pn = phi { ptr, i32 } [ %.pn95.pn, %137 ], [ %.pn92, %180 ], [ %.pn.pn, %230 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn95.pn.pn

234:                                              ; preds = %._crit_edge167
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.2, i32 noundef 132, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #9
  unreachable

235:                                              ; preds = %._crit_edge167
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %34) #8
  %236 = call ptr @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) @m) #8
  store ptr %236, ptr %34, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %35) #8
  %237 = call ptr @_ZNSt3mapIiS_IiiSt4lessIiESaISt4pairIKiiEEES1_SaIS2_IS3_S6_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @m) #8
  store ptr %237, ptr %35, align 8
  %238 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull align 8 dereferenceable(8) %35) #8
  br i1 %238, label %.lr.ph170, label %._crit_edge171

.lr.ph170:                                        ; preds = %235
  %239 = getelementptr inbounds i8, ptr %36, i64 8
  br label %242

._crit_edge171:                                   ; preds = %242, %235
  %.0.lcssa = phi i32 [ 0, %235 ], [ %246, %242 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %35) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %34) #8
  %240 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.0.lcssa)
  %241 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %240, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  ret i32 0

242:                                              ; preds = %.lr.ph170, %242
  %.0168 = phi i32 [ 0, %.lr.ph170 ], [ %246, %242 ]
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %36) #8
  %243 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %34) #8
  call void @_ZNSt4pairIKiSt3mapIiiSt4lessIiESaIS_IS0_iEEEEC2ERKS7_(ptr noundef nonnull align 8 dereferenceable(56) %36, ptr noundef nonnull align 8 dereferenceable(56) %243)
  %244 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %239) #8
  %245 = trunc i64 %244 to i32
  %246 = add i32 %.0168, %245
  call void @_ZNSt4pairIKiSt3mapIiiSt4lessIiESaIS_IS0_iEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %36) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %36) #8
  %247 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %34) #8
  %248 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiSt3mapIiiSt4lessIiESaIS0_IS1_iEEEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull align 8 dereferenceable(8) %35) #8
  br i1 %248, label %242, label %._crit_edge171
}

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) 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 @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixEOi(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4 align 2

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

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

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

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

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTSSt4pairIKiiE", !6, i64 0, !6, i64 4}
!15 = !{!16, !6, i64 0}
!16 = !{!"_ZTSSt4pairIKiSt3mapIiiSt4lessIiESaIS_IS0_iEEEE", !6, i64 0, !17, i64 8}
!17 = !{!"_ZTSSt3mapIiiSt4lessIiESaISt4pairIKiiEEE", !18, i64 0}
!18 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKiiESt10_Select1stIS2_ESt4lessIiESaIS2_EE", !19, i64 0}
!19 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKiiESt10_Select1stIS2_ESt4lessIiESaIS2_EE13_Rb_tree_implIS6_Lb1EEE", !20, i64 0, !22, i64 8}
!20 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !21, i64 0}
!21 = !{!"_ZTSSt4lessIiE"}
!22 = !{!"_ZTSSt15_Rb_tree_header", !23, i64 0, !26, i64 32}
!23 = !{!"_ZTSSt18_Rb_tree_node_base", !24, i64 0, !25, i64 8, !25, i64 16, !25, i64 24}
!24 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!25 = !{!"any pointer", !7, i64 0}
!26 = !{!"long", !7, i64 0}
!27 = distinct !{!27, !10}


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