; LLVM IR from eyangch/competitive-programming :: USACOtraining/2.4 (maze1)

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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { i32, i32 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<std::pair<std::pair<int, int>, int>, std::allocator<std::pair<std::pair<int, int>, int>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::pair<std::pair<int, int>, int>, std::allocator<std::pair<std::pair<int, int>, int>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::pair<std::pair<int, int>, int>, std::allocator<std::pair<std::pair<int, int>, int>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::pair<std::pair<int, int>, int>, std::allocator<std::pair<std::pair<int, int>, int>>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"struct.std::pair.6" = type { %"struct.std::pair", i32 }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::pair<int, int>, std::pair<int, int>, std::_Identity<std::pair<int, int>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<int, int>, std::pair<int, int>, std::_Identity<std::pair<int, int>>, std::less<std::pair<int, 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 }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"struct.std::pair.11" = type <{ %"struct.std::_Rb_tree_const_iterator", i8, [7 x i8] }>
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [9 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external global ptr, align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::vector", align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"struct.std::pair", align 4
  %14 = alloca %"struct.std::pair", align 4
  %15 = alloca %"struct.std::pair", align 4
  %16 = alloca %"struct.std::pair", align 4
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %23 = alloca %"struct.std::pair", align 4
  %24 = alloca %"class.std::queue", align 8
  %25 = alloca %"struct.std::pair.6", align 4
  %26 = alloca i32, align 4
  %27 = alloca { i64, i32 }, align 8
  %28 = alloca %"class.std::set", align 8
  %29 = alloca %"struct.std::pair.6", align 4
  %30 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %31 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %32 = alloca %"struct.std::pair.11", align 8
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca %"struct.std::pair.6", align 4
  %36 = alloca %"struct.std::pair", align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca { i64, i32 }, align 8
  %40 = alloca %"struct.std::pair.6", align 4
  %41 = alloca %"struct.std::pair", align 4
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca { i64, i32 }, align 8
  %45 = alloca %"struct.std::pair.6", align 4
  %46 = alloca %"struct.std::pair", align 4
  %47 = alloca i32, align 4
  %48 = alloca i32, align 4
  %49 = alloca { i64, i32 }, align 8
  %50 = alloca %"struct.std::pair.6", align 4
  %51 = alloca %"struct.std::pair", align 4
  %52 = alloca i32, align 4
  %53 = alloca i32, align 4
  %54 = alloca { i64, i32 }, align 8
  %55 = alloca i32, align 4
  %56 = alloca i32, align 4
  %57 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %58 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %59 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %60 = getelementptr i8, ptr %59, i64 -24
  %61 = load i64, ptr %60, align 8
  %62 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %61
  %63 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %62, ptr noundef null)
  %64 = load ptr, ptr @stdin, align 8, !tbaa !8
  %65 = call ptr @freopen(ptr noundef @.str, ptr noundef @.str.1, ptr noundef %64)
  %66 = load ptr, ptr @stdout, align 8, !tbaa !8
  %67 = call ptr @freopen(ptr noundef @.str.2, ptr noundef @.str.3, ptr noundef %66)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #9
  %68 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %69 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %68, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %70 = load i32, ptr %3, align 4, !tbaa !11
  %71 = mul nsw i32 2, %70
  %72 = add nsw i32 %71, 1
  %73 = zext i32 %72 to i64
  %74 = call ptr @llvm.stacksave.p0()
  store ptr %74, ptr %4, align 8
  %75 = alloca %"class.std::__cxx11::basic_string", i64 %73, align 16
  store i64 %73, ptr %5, align 8
  %76 = icmp eq i64 %73, 0
  br i1 %76, label %83, label %77

77:                                               ; preds = %0
  %78 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %75, i64 %73
  br label %79

79:                                               ; preds = %79, %77
  %80 = phi ptr [ %75, %77 ], [ %81, %79 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %80) #9
  %81 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %80, i64 1
  %82 = icmp eq ptr %81, %78
  br i1 %82, label %83, label %79

83:                                               ; preds = %79, %0
  %84 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %75, i64 0
  %85 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %84)
          to label %86 unwind label %94

86:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #9
  store i32 0, ptr %8, align 4, !tbaa !11
  br label %87

87:                                               ; preds = %104, %86
  %88 = load i32, ptr %8, align 4, !tbaa !11
  %89 = load i32, ptr %3, align 4, !tbaa !11
  %90 = mul nsw i32 2, %89
  %91 = add nsw i32 %90, 1
  %92 = icmp slt i32 %88, %91
  br i1 %92, label %98, label %93

93:                                               ; preds = %87
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  br label %111

94:                                               ; preds = %83
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %6, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %7, align 4
  br label %561

98:                                               ; preds = %87
  %99 = load i32, ptr %8, align 4, !tbaa !11
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %75, i64 %100
  %102 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %101)
          to label %103 unwind label %107

103:                                              ; preds = %98
  br label %104

104:                                              ; preds = %103
  %105 = load i32, ptr %8, align 4, !tbaa !11
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr %8, align 4, !tbaa !11
  br label %87, !llvm.loop !13

107:                                              ; preds = %98
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %6, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  br label %561

111:                                              ; preds = %93
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #9
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #9
  store i32 1, ptr %10, align 4, !tbaa !11
  br label %112

112:                                              ; preds = %231, %111
  %113 = load i32, ptr %10, align 4, !tbaa !11
  %114 = load i32, ptr %3, align 4, !tbaa !11
  %115 = mul nsw i32 2, %114
  %116 = add nsw i32 %115, 1
  %117 = icmp slt i32 %113, %116
  br i1 %117, label %119, label %118

118:                                              ; preds = %112
  store i32 5, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  br label %234

119:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #9
  store i32 1, ptr %12, align 4, !tbaa !11
  br label %120

120:                                              ; preds = %226, %119
  %121 = load i32, ptr %12, align 4, !tbaa !11
  %122 = load i32, ptr %2, align 4, !tbaa !11
  %123 = mul nsw i32 2, %122
  %124 = add nsw i32 %123, 1
  %125 = icmp slt i32 %121, %124
  br i1 %125, label %127, label %126

126:                                              ; preds = %120
  store i32 8, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  br label %230

127:                                              ; preds = %120
  %128 = load i32, ptr %10, align 4, !tbaa !11
  %129 = icmp eq i32 %128, 1
  br i1 %129, label %130, label %153

130:                                              ; preds = %127
  %131 = load i32, ptr %10, align 4, !tbaa !11
  %132 = sub nsw i32 %131, 1
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %75, i64 %133
  %135 = load i32, ptr %12, align 4, !tbaa !11
  %136 = sext i32 %135 to i64
  %137 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %134, i64 noundef %136)
          to label %138 unwind label %145

138:                                              ; preds = %130
  %139 = load i8, ptr %137, align 1, !tbaa !15
  %140 = sext i8 %139 to i32
  %141 = icmp eq i32 %140, 32
  br i1 %141, label %142, label %153

142:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
  invoke void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %143 unwind label %149

143:                                              ; preds = %142
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 4 dereferenceable(8) %13)
          to label %144 unwind label %149

144:                                              ; preds = %143
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  br label %153

145:                                              ; preds = %206, %181, %159, %130
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %6, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %7, align 4
  br label %229

149:                                              ; preds = %143, %142
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %6, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  br label %229

153:                                              ; preds = %144, %138, %127
  %154 = load i32, ptr %10, align 4, !tbaa !11
  %155 = load i32, ptr %3, align 4, !tbaa !11
  %156 = mul nsw i32 2, %155
  %157 = sub nsw i32 %156, 1
  %158 = icmp eq i32 %154, %157
  br i1 %158, label %159, label %178

159:                                              ; preds = %153
  %160 = load i32, ptr %10, align 4, !tbaa !11
  %161 = add nsw i32 %160, 1
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %75, i64 %162
  %164 = load i32, ptr %12, align 4, !tbaa !11
  %165 = sext i32 %164 to i64
  %166 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %163, i64 noundef %165)
          to label %167 unwind label %145

167:                                              ; preds = %159
  %168 = load i8, ptr %166, align 1, !tbaa !15
  %169 = sext i8 %168 to i32
  %170 = icmp eq i32 %169, 32
  br i1 %170, label %171, label %178

171:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  invoke void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %172 unwind label %174

172:                                              ; preds = %171
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 4 dereferenceable(8) %14)
          to label %173 unwind label %174

173:                                              ; preds = %172
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  br label %178

174:                                              ; preds = %172, %171
  %175 = landingpad { ptr, i32 }
          cleanup
  %176 = extractvalue { ptr, i32 } %175, 0
  store ptr %176, ptr %6, align 8
  %177 = extractvalue { ptr, i32 } %175, 1
  store i32 %177, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  br label %229

178:                                              ; preds = %173, %167, %153
  %179 = load i32, ptr %12, align 4, !tbaa !11
  %180 = icmp eq i32 %179, 1
  br i1 %180, label %181, label %200

181:                                              ; preds = %178
  %182 = load i32, ptr %10, align 4, !tbaa !11
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %75, i64 %183
  %185 = load i32, ptr %12, align 4, !tbaa !11
  %186 = sub nsw i32 %185, 1
  %187 = sext i32 %186 to i64
  %188 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %184, i64 noundef %187)
          to label %189 unwind label %145

189:                                              ; preds = %181
  %190 = load i8, ptr %188, align 1, !tbaa !15
  %191 = sext i8 %190 to i32
  %192 = icmp eq i32 %191, 32
  br i1 %192, label %193, label %200

193:                                              ; preds = %189
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  invoke void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %194 unwind label %196

194:                                              ; preds = %193
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 4 dereferenceable(8) %15)
          to label %195 unwind label %196

195:                                              ; preds = %194
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  br label %200

196:                                              ; preds = %194, %193
  %197 = landingpad { ptr, i32 }
          cleanup
  %198 = extractvalue { ptr, i32 } %197, 0
  store ptr %198, ptr %6, align 8
  %199 = extractvalue { ptr, i32 } %197, 1
  store i32 %199, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  br label %229

200:                                              ; preds = %195, %189, %178
  %201 = load i32, ptr %12, align 4, !tbaa !11
  %202 = load i32, ptr %2, align 4, !tbaa !11
  %203 = mul nsw i32 2, %202
  %204 = sub nsw i32 %203, 1
  %205 = icmp eq i32 %201, %204
  br i1 %205, label %206, label %225

206:                                              ; preds = %200
  %207 = load i32, ptr %10, align 4, !tbaa !11
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %75, i64 %208
  %210 = load i32, ptr %12, align 4, !tbaa !11
  %211 = add nsw i32 %210, 1
  %212 = sext i32 %211 to i64
  %213 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %209, i64 noundef %212)
          to label %214 unwind label %145

214:                                              ; preds = %206
  %215 = load i8, ptr %213, align 1, !tbaa !15
  %216 = sext i8 %215 to i32
  %217 = icmp eq i32 %216, 32
  br i1 %217, label %218, label %225

218:                                              ; preds = %214
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  invoke void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %219 unwind label %221

219:                                              ; preds = %218
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 4 dereferenceable(8) %16)
          to label %220 unwind label %221

220:                                              ; preds = %219
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  br label %225

221:                                              ; preds = %219, %218
  %222 = landingpad { ptr, i32 }
          cleanup
  %223 = extractvalue { ptr, i32 } %222, 0
  store ptr %223, ptr %6, align 8
  %224 = extractvalue { ptr, i32 } %222, 1
  store i32 %224, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  br label %229

225:                                              ; preds = %220, %214, %200
  br label %226

226:                                              ; preds = %225
  %227 = load i32, ptr %12, align 4, !tbaa !11
  %228 = add nsw i32 %227, 2
  store i32 %228, ptr %12, align 4, !tbaa !11
  br label %120, !llvm.loop !16

229:                                              ; preds = %221, %196, %174, %149, %145
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  br label %553

230:                                              ; preds = %126
  br label %231

231:                                              ; preds = %230
  %232 = load i32, ptr %10, align 4, !tbaa !11
  %233 = add nsw i32 %232, 2
  store i32 %233, ptr %10, align 4, !tbaa !11
  br label %112, !llvm.loop !17

234:                                              ; preds = %118
  %235 = load i32, ptr %3, align 4, !tbaa !11
  %236 = mul nsw i32 2, %235
  %237 = add nsw i32 %236, 1
  %238 = zext i32 %237 to i64
  %239 = load i32, ptr %2, align 4, !tbaa !11
  %240 = mul nsw i32 2, %239
  %241 = add nsw i32 %240, 1
  %242 = zext i32 %241 to i64
  %243 = mul nuw i64 %238, %242
  %244 = alloca i32, i64 %243, align 16
  store i64 %238, ptr %17, align 8
  store i64 %242, ptr %18, align 8
  %245 = mul nsw i64 0, %242
  %246 = getelementptr inbounds i32, ptr %244, i64 %245
  %247 = load i32, ptr %3, align 4, !tbaa !11
  %248 = mul nsw i32 2, %247
  %249 = sext i32 %248 to i64
  %250 = mul nsw i64 %249, %242
  %251 = getelementptr inbounds i32, ptr %244, i64 %250
  %252 = load i32, ptr %2, align 4, !tbaa !11
  %253 = mul nsw i32 2, %252
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds i32, ptr %251, i64 %254
  %256 = getelementptr inbounds i32, ptr %255, i64 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #9
  store i32 2147483647, ptr %19, align 4, !tbaa !11
  invoke void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef %246, ptr noundef %256, ptr noundef nonnull align 4 dereferenceable(4) %19)
          to label %257 unwind label %267

257:                                              ; preds = %234
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #9
  store ptr %9, ptr %20, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  %258 = load ptr, ptr %20, align 8, !tbaa !8
  %259 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %258) #9
  %260 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  store ptr %259, ptr %260, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #9
  %261 = load ptr, ptr %20, align 8, !tbaa !8
  %262 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %261) #9
  %263 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %22, i32 0, i32 0
  store ptr %262, ptr %263, align 8
  br label %264

264:                                              ; preds = %497, %257
  %265 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #9
  br i1 %265, label %271, label %266

266:                                              ; preds = %264
  store i32 11, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  br label %502

267:                                              ; preds = %234
  %268 = landingpad { ptr, i32 }
          cleanup
  %269 = extractvalue { ptr, i32 } %268, 0
  store ptr %269, ptr %6, align 8
  %270 = extractvalue { ptr, i32 } %268, 1
  store i32 %270, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  br label %553

271:                                              ; preds = %264
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #9
  %272 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %272, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 80, ptr %24) #9
  invoke void @_ZNSt5queueISt4pairIS0_IiiEiESt5dequeIS2_SaIS2_EEEC2IS5_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %24)
          to label %273 unwind label %293

273:                                              ; preds = %271
  call void @llvm.lifetime.start.p0(i64 12, ptr %25) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #9
  store i32 1, ptr %26, align 4, !tbaa !11
  %274 = invoke { i64, i32 } @_ZSt9make_pairIRSt4pairIiiEiES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 4 dereferenceable(8) %23, ptr noundef nonnull align 4 dereferenceable(4) %26)
          to label %275 unwind label %297

275:                                              ; preds = %273
  store { i64, i32 } %274, ptr %27, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 8 %27, i64 12, i1 false)
  invoke void @_ZNSt5queueISt4pairIS0_IiiEiESt5dequeIS2_SaIS2_EEE4pushEOS2_(ptr noundef nonnull align 8 dereferenceable(80) %24, ptr noundef nonnull align 4 dereferenceable(12) %25)
          to label %276 unwind label %297

276:                                              ; preds = %275
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #9
  call void @llvm.lifetime.start.p0(i64 48, ptr %28) #9
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %28) #9
  br label %277

277:                                              ; preds = %493, %491, %276
  %278 = invoke noundef zeroext i1 @_ZNKSt5queueISt4pairIS0_IiiEiESt5dequeIS2_SaIS2_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %24)
          to label %279 unwind label %301

279:                                              ; preds = %277
  %280 = xor i1 %278, true
  br i1 %280, label %281, label %496

281:                                              ; preds = %279
  call void @llvm.lifetime.start.p0(i64 12, ptr %29) #9
  %282 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt5queueISt4pairIS0_IiiEiESt5dequeIS2_SaIS2_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %24)
          to label %283 unwind label %305

283:                                              ; preds = %281
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 4 %282, i64 12, i1 false)
  invoke void @_ZNSt5queueISt4pairIS0_IiiEiESt5dequeIS2_SaIS2_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %24)
          to label %284 unwind label %305

284:                                              ; preds = %283
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #9
  %285 = getelementptr inbounds %"struct.std::pair.6", ptr %29, i32 0, i32 0
  %286 = invoke ptr @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE4findERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %28, ptr noundef nonnull align 4 dereferenceable(8) %285)
          to label %287 unwind label %309

287:                                              ; preds = %284
  %288 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %30, i32 0, i32 0
  store ptr %286, ptr %288, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #9
  %289 = call ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %28) #9
  %290 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %31, i32 0, i32 0
  store ptr %289, ptr %290, align 8
  %291 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIiiEES4_(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 8 dereferenceable(8) %31) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  br i1 %291, label %292, label %313

292:                                              ; preds = %287
  store i32 13, ptr %11, align 4
  br label %491, !llvm.loop !18

293:                                              ; preds = %271
  %294 = landingpad { ptr, i32 }
          cleanup
  %295 = extractvalue { ptr, i32 } %294, 0
  store ptr %295, ptr %6, align 8
  %296 = extractvalue { ptr, i32 } %294, 1
  store i32 %296, ptr %7, align 4
  br label %501

297:                                              ; preds = %275, %273
  %298 = landingpad { ptr, i32 }
          cleanup
  %299 = extractvalue { ptr, i32 } %298, 0
  store ptr %299, ptr %6, align 8
  %300 = extractvalue { ptr, i32 } %298, 1
  store i32 %300, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #9
  br label %500

301:                                              ; preds = %277
  %302 = landingpad { ptr, i32 }
          cleanup
  %303 = extractvalue { ptr, i32 } %302, 0
  store ptr %303, ptr %6, align 8
  %304 = extractvalue { ptr, i32 } %302, 1
  store i32 %304, ptr %7, align 4
  br label %499

305:                                              ; preds = %313, %283, %281
  %306 = landingpad { ptr, i32 }
          cleanup
  %307 = extractvalue { ptr, i32 } %306, 0
  store ptr %307, ptr %6, align 8
  %308 = extractvalue { ptr, i32 } %306, 1
  store i32 %308, ptr %7, align 4
  br label %495

309:                                              ; preds = %284
  %310 = landingpad { ptr, i32 }
          cleanup
  %311 = extractvalue { ptr, i32 } %310, 0
  store ptr %311, ptr %6, align 8
  %312 = extractvalue { ptr, i32 } %310, 1
  store i32 %312, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  br label %495

313:                                              ; preds = %287
  %314 = getelementptr inbounds %"struct.std::pair.6", ptr %29, i32 0, i32 0
  %315 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %28, ptr noundef nonnull align 4 dereferenceable(8) %314)
          to label %316 unwind label %305

316:                                              ; preds = %313
  %317 = getelementptr inbounds { ptr, i8 }, ptr %32, i32 0, i32 0
  %318 = extractvalue { ptr, i8 } %315, 0
  store ptr %318, ptr %317, align 8
  %319 = getelementptr inbounds { ptr, i8 }, ptr %32, i32 0, i32 1
  %320 = extractvalue { ptr, i8 } %315, 1
  store i8 %320, ptr %319, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #9
  %321 = getelementptr inbounds %"struct.std::pair.6", ptr %29, i32 0, i32 0
  %322 = getelementptr inbounds %"struct.std::pair", ptr %321, i32 0, i32 0
  %323 = load i32, ptr %322, align 4, !tbaa !19
  store i32 %323, ptr %33, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #9
  %324 = getelementptr inbounds %"struct.std::pair.6", ptr %29, i32 0, i32 0
  %325 = getelementptr inbounds %"struct.std::pair", ptr %324, i32 0, i32 1
  %326 = load i32, ptr %325, align 4, !tbaa !22
  store i32 %326, ptr %34, align 4, !tbaa !11
  %327 = load i32, ptr %33, align 4, !tbaa !11
  %328 = sext i32 %327 to i64
  %329 = mul nsw i64 %328, %242
  %330 = getelementptr inbounds i32, ptr %244, i64 %329
  %331 = load i32, ptr %34, align 4, !tbaa !11
  %332 = sext i32 %331 to i64
  %333 = getelementptr inbounds i32, ptr %330, i64 %332
  %334 = getelementptr inbounds %"struct.std::pair.6", ptr %29, i32 0, i32 1
  %335 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %333, ptr noundef nonnull align 4 dereferenceable(4) %334)
          to label %336 unwind label %369

336:                                              ; preds = %316
  %337 = load i32, ptr %335, align 4, !tbaa !11
  %338 = load i32, ptr %33, align 4, !tbaa !11
  %339 = sext i32 %338 to i64
  %340 = mul nsw i64 %339, %242
  %341 = getelementptr inbounds i32, ptr %244, i64 %340
  %342 = load i32, ptr %34, align 4, !tbaa !11
  %343 = sext i32 %342 to i64
  %344 = getelementptr inbounds i32, ptr %341, i64 %343
  store i32 %337, ptr %344, align 4, !tbaa !11
  %345 = load i32, ptr %33, align 4, !tbaa !11
  %346 = icmp sgt i32 %345, 1
  br i1 %346, label %347, label %382

347:                                              ; preds = %336
  %348 = load i32, ptr %33, align 4, !tbaa !11
  %349 = sub nsw i32 %348, 1
  %350 = sext i32 %349 to i64
  %351 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %75, i64 %350
  %352 = load i32, ptr %34, align 4, !tbaa !11
  %353 = sext i32 %352 to i64
  %354 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %351, i64 noundef %353)
          to label %355 unwind label %369

355:                                              ; preds = %347
  %356 = load i8, ptr %354, align 1, !tbaa !15
  %357 = sext i8 %356 to i32
  %358 = icmp eq i32 %357, 32
  br i1 %358, label %359, label %382

359:                                              ; preds = %355
  call void @llvm.lifetime.start.p0(i64 12, ptr %35) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #9
  %360 = load i32, ptr %33, align 4, !tbaa !11
  %361 = sub nsw i32 %360, 2
  store i32 %361, ptr %37, align 4, !tbaa !11
  invoke void @_ZNSt4pairIiiEC2IiRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %36, ptr noundef nonnull align 4 dereferenceable(4) %37, ptr noundef nonnull align 4 dereferenceable(4) %34)
          to label %362 unwind label %373

362:                                              ; preds = %359
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #9
  %363 = getelementptr inbounds %"struct.std::pair.6", ptr %29, i32 0, i32 1
  %364 = load i32, ptr %363, align 4, !tbaa !23
  %365 = add nsw i32 %364, 1
  store i32 %365, ptr %38, align 4, !tbaa !11
  %366 = invoke { i64, i32 } @_ZSt9make_pairISt4pairIiiEiES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(8) %36, ptr noundef nonnull align 4 dereferenceable(4) %38)
          to label %367 unwind label %377

367:                                              ; preds = %362
  store { i64, i32 } %366, ptr %39, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %35, ptr align 8 %39, i64 12, i1 false)
  invoke void @_ZNSt5queueISt4pairIS0_IiiEiESt5dequeIS2_SaIS2_EEE4pushEOS2_(ptr noundef nonnull align 8 dereferenceable(80) %24, ptr noundef nonnull align 4 dereferenceable(12) %35)
          to label %368 unwind label %377

368:                                              ; preds = %367
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %35) #9
  br label %382

369:                                              ; preds = %459, %422, %388, %347, %316
  %370 = landingpad { ptr, i32 }
          cleanup
  %371 = extractvalue { ptr, i32 } %370, 0
  store ptr %371, ptr %6, align 8
  %372 = extractvalue { ptr, i32 } %370, 1
  store i32 %372, ptr %7, align 4
  br label %494

373:                                              ; preds = %359
  %374 = landingpad { ptr, i32 }
          cleanup
  %375 = extractvalue { ptr, i32 } %374, 0
  store ptr %375, ptr %6, align 8
  %376 = extractvalue { ptr, i32 } %374, 1
  store i32 %376, ptr %7, align 4
  br label %381

377:                                              ; preds = %367, %362
  %378 = landingpad { ptr, i32 }
          cleanup
  %379 = extractvalue { ptr, i32 } %378, 0
  store ptr %379, ptr %6, align 8
  %380 = extractvalue { ptr, i32 } %378, 1
  store i32 %380, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #9
  br label %381

381:                                              ; preds = %377, %373
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %35) #9
  br label %494

382:                                              ; preds = %368, %355, %336
  %383 = load i32, ptr %33, align 4, !tbaa !11
  %384 = load i32, ptr %3, align 4, !tbaa !11
  %385 = mul nsw i32 2, %384
  %386 = sub nsw i32 %385, 1
  %387 = icmp slt i32 %383, %386
  br i1 %387, label %388, label %419

388:                                              ; preds = %382
  %389 = load i32, ptr %33, align 4, !tbaa !11
  %390 = add nsw i32 %389, 1
  %391 = sext i32 %390 to i64
  %392 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %75, i64 %391
  %393 = load i32, ptr %34, align 4, !tbaa !11
  %394 = sext i32 %393 to i64
  %395 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %392, i64 noundef %394)
          to label %396 unwind label %369

396:                                              ; preds = %388
  %397 = load i8, ptr %395, align 1, !tbaa !15
  %398 = sext i8 %397 to i32
  %399 = icmp eq i32 %398, 32
  br i1 %399, label %400, label %419

400:                                              ; preds = %396
  call void @llvm.lifetime.start.p0(i64 12, ptr %40) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #9
  %401 = load i32, ptr %33, align 4, !tbaa !11
  %402 = add nsw i32 %401, 2
  store i32 %402, ptr %42, align 4, !tbaa !11
  invoke void @_ZNSt4pairIiiEC2IiRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %41, ptr noundef nonnull align 4 dereferenceable(4) %42, ptr noundef nonnull align 4 dereferenceable(4) %34)
          to label %403 unwind label %410

403:                                              ; preds = %400
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #9
  %404 = getelementptr inbounds %"struct.std::pair.6", ptr %29, i32 0, i32 1
  %405 = load i32, ptr %404, align 4, !tbaa !23
  %406 = add nsw i32 %405, 1
  store i32 %406, ptr %43, align 4, !tbaa !11
  %407 = invoke { i64, i32 } @_ZSt9make_pairISt4pairIiiEiES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(8) %41, ptr noundef nonnull align 4 dereferenceable(4) %43)
          to label %408 unwind label %414

408:                                              ; preds = %403
  store { i64, i32 } %407, ptr %44, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %40, ptr align 8 %44, i64 12, i1 false)
  invoke void @_ZNSt5queueISt4pairIS0_IiiEiESt5dequeIS2_SaIS2_EEE4pushEOS2_(ptr noundef nonnull align 8 dereferenceable(80) %24, ptr noundef nonnull align 4 dereferenceable(12) %40)
          to label %409 unwind label %414

409:                                              ; preds = %408
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %40) #9
  br label %419

410:                                              ; preds = %400
  %411 = landingpad { ptr, i32 }
          cleanup
  %412 = extractvalue { ptr, i32 } %411, 0
  store ptr %412, ptr %6, align 8
  %413 = extractvalue { ptr, i32 } %411, 1
  store i32 %413, ptr %7, align 4
  br label %418

414:                                              ; preds = %408, %403
  %415 = landingpad { ptr, i32 }
          cleanup
  %416 = extractvalue { ptr, i32 } %415, 0
  store ptr %416, ptr %6, align 8
  %417 = extractvalue { ptr, i32 } %415, 1
  store i32 %417, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #9
  br label %418

418:                                              ; preds = %414, %410
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %40) #9
  br label %494

419:                                              ; preds = %409, %396, %382
  %420 = load i32, ptr %34, align 4, !tbaa !11
  %421 = icmp sgt i32 %420, 1
  br i1 %421, label %422, label %453

422:                                              ; preds = %419
  %423 = load i32, ptr %33, align 4, !tbaa !11
  %424 = sext i32 %423 to i64
  %425 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %75, i64 %424
  %426 = load i32, ptr %34, align 4, !tbaa !11
  %427 = sub nsw i32 %426, 1
  %428 = sext i32 %427 to i64
  %429 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %425, i64 noundef %428)
          to label %430 unwind label %369

430:                                              ; preds = %422
  %431 = load i8, ptr %429, align 1, !tbaa !15
  %432 = sext i8 %431 to i32
  %433 = icmp eq i32 %432, 32
  br i1 %433, label %434, label %453

434:                                              ; preds = %430
  call void @llvm.lifetime.start.p0(i64 12, ptr %45) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #9
  %435 = load i32, ptr %34, align 4, !tbaa !11
  %436 = sub nsw i32 %435, 2
  store i32 %436, ptr %47, align 4, !tbaa !11
  invoke void @_ZNSt4pairIiiEC2IRiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %46, ptr noundef nonnull align 4 dereferenceable(4) %33, ptr noundef nonnull align 4 dereferenceable(4) %47)
          to label %437 unwind label %444

437:                                              ; preds = %434
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #9
  %438 = getelementptr inbounds %"struct.std::pair.6", ptr %29, i32 0, i32 1
  %439 = load i32, ptr %438, align 4, !tbaa !23
  %440 = add nsw i32 %439, 1
  store i32 %440, ptr %48, align 4, !tbaa !11
  %441 = invoke { i64, i32 } @_ZSt9make_pairISt4pairIiiEiES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(8) %46, ptr noundef nonnull align 4 dereferenceable(4) %48)
          to label %442 unwind label %448

442:                                              ; preds = %437
  store { i64, i32 } %441, ptr %49, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %45, ptr align 8 %49, i64 12, i1 false)
  invoke void @_ZNSt5queueISt4pairIS0_IiiEiESt5dequeIS2_SaIS2_EEE4pushEOS2_(ptr noundef nonnull align 8 dereferenceable(80) %24, ptr noundef nonnull align 4 dereferenceable(12) %45)
          to label %443 unwind label %448

443:                                              ; preds = %442
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %45) #9
  br label %453

444:                                              ; preds = %434
  %445 = landingpad { ptr, i32 }
          cleanup
  %446 = extractvalue { ptr, i32 } %445, 0
  store ptr %446, ptr %6, align 8
  %447 = extractvalue { ptr, i32 } %445, 1
  store i32 %447, ptr %7, align 4
  br label %452

448:                                              ; preds = %442, %437
  %449 = landingpad { ptr, i32 }
          cleanup
  %450 = extractvalue { ptr, i32 } %449, 0
  store ptr %450, ptr %6, align 8
  %451 = extractvalue { ptr, i32 } %449, 1
  store i32 %451, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #9
  br label %452

452:                                              ; preds = %448, %444
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %45) #9
  br label %494

453:                                              ; preds = %443, %430, %419
  %454 = load i32, ptr %34, align 4, !tbaa !11
  %455 = load i32, ptr %2, align 4, !tbaa !11
  %456 = mul nsw i32 2, %455
  %457 = sub nsw i32 %456, 1
  %458 = icmp slt i32 %454, %457
  br i1 %458, label %459, label %490

459:                                              ; preds = %453
  %460 = load i32, ptr %33, align 4, !tbaa !11
  %461 = sext i32 %460 to i64
  %462 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %75, i64 %461
  %463 = load i32, ptr %34, align 4, !tbaa !11
  %464 = add nsw i32 %463, 1
  %465 = sext i32 %464 to i64
  %466 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %462, i64 noundef %465)
          to label %467 unwind label %369

467:                                              ; preds = %459
  %468 = load i8, ptr %466, align 1, !tbaa !15
  %469 = sext i8 %468 to i32
  %470 = icmp eq i32 %469, 32
  br i1 %470, label %471, label %490

471:                                              ; preds = %467
  call void @llvm.lifetime.start.p0(i64 12, ptr %50) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #9
  %472 = load i32, ptr %34, align 4, !tbaa !11
  %473 = add nsw i32 %472, 2
  store i32 %473, ptr %52, align 4, !tbaa !11
  invoke void @_ZNSt4pairIiiEC2IRiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %51, ptr noundef nonnull align 4 dereferenceable(4) %33, ptr noundef nonnull align 4 dereferenceable(4) %52)
          to label %474 unwind label %481

474:                                              ; preds = %471
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #9
  %475 = getelementptr inbounds %"struct.std::pair.6", ptr %29, i32 0, i32 1
  %476 = load i32, ptr %475, align 4, !tbaa !23
  %477 = add nsw i32 %476, 1
  store i32 %477, ptr %53, align 4, !tbaa !11
  %478 = invoke { i64, i32 } @_ZSt9make_pairISt4pairIiiEiES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(8) %51, ptr noundef nonnull align 4 dereferenceable(4) %53)
          to label %479 unwind label %485

479:                                              ; preds = %474
  store { i64, i32 } %478, ptr %54, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %50, ptr align 8 %54, i64 12, i1 false)
  invoke void @_ZNSt5queueISt4pairIS0_IiiEiESt5dequeIS2_SaIS2_EEE4pushEOS2_(ptr noundef nonnull align 8 dereferenceable(80) %24, ptr noundef nonnull align 4 dereferenceable(12) %50)
          to label %480 unwind label %485

480:                                              ; preds = %479
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %50) #9
  br label %490

481:                                              ; preds = %471
  %482 = landingpad { ptr, i32 }
          cleanup
  %483 = extractvalue { ptr, i32 } %482, 0
  store ptr %483, ptr %6, align 8
  %484 = extractvalue { ptr, i32 } %482, 1
  store i32 %484, ptr %7, align 4
  br label %489

485:                                              ; preds = %479, %474
  %486 = landingpad { ptr, i32 }
          cleanup
  %487 = extractvalue { ptr, i32 } %486, 0
  store ptr %487, ptr %6, align 8
  %488 = extractvalue { ptr, i32 } %486, 1
  store i32 %488, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #9
  br label %489

489:                                              ; preds = %485, %481
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %50) #9
  br label %494

490:                                              ; preds = %480, %467, %453
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #9
  store i32 0, ptr %11, align 4
  br label %491

491:                                              ; preds = %490, %292
  call void @llvm.lifetime.end.p0(i64 12, ptr %29) #9
  %492 = load i32, ptr %11, align 4
  switch i32 %492, label %574 [
    i32 0, label %493
    i32 13, label %277
  ]

493:                                              ; preds = %491
  br label %277, !llvm.loop !18

494:                                              ; preds = %489, %452, %418, %381, %369
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #9
  br label %495

495:                                              ; preds = %494, %309, %305
  call void @llvm.lifetime.end.p0(i64 12, ptr %29) #9
  br label %499

496:                                              ; preds = %279
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %28) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr %28) #9
  call void @_ZNSt5queueISt4pairIS0_IiiEiESt5dequeIS2_SaIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %24) #9
  call void @llvm.lifetime.end.p0(i64 80, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  br label %497

497:                                              ; preds = %496
  %498 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #9
  br label %264

499:                                              ; preds = %495, %301
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %28) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr %28) #9
  br label %500

500:                                              ; preds = %499, %297
  call void @_ZNSt5queueISt4pairIS0_IiiEiESt5dequeIS2_SaIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %24) #9
  br label %501

501:                                              ; preds = %500, %293
  call void @llvm.lifetime.end.p0(i64 80, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  br label %553

502:                                              ; preds = %266
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #9
  store i32 0, ptr %55, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %56) #9
  store i32 1, ptr %56, align 4, !tbaa !11
  br label %503

503:                                              ; preds = %537, %502
  %504 = load i32, ptr %56, align 4, !tbaa !11
  %505 = load i32, ptr %3, align 4, !tbaa !11
  %506 = mul nsw i32 2, %505
  %507 = add nsw i32 %506, 1
  %508 = icmp slt i32 %504, %507
  br i1 %508, label %510, label %509

509:                                              ; preds = %503
  store i32 15, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #9
  br label %540

510:                                              ; preds = %503
  call void @llvm.lifetime.start.p0(i64 4, ptr %57) #9
  store i32 1, ptr %57, align 4, !tbaa !11
  br label %511

511:                                              ; preds = %529, %510
  %512 = load i32, ptr %57, align 4, !tbaa !11
  %513 = load i32, ptr %2, align 4, !tbaa !11
  %514 = mul nsw i32 2, %513
  %515 = add nsw i32 %514, 1
  %516 = icmp slt i32 %512, %515
  br i1 %516, label %518, label %517

517:                                              ; preds = %511
  store i32 18, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #9
  br label %536

518:                                              ; preds = %511
  %519 = load i32, ptr %56, align 4, !tbaa !11
  %520 = sext i32 %519 to i64
  %521 = mul nsw i64 %520, %242
  %522 = getelementptr inbounds i32, ptr %244, i64 %521
  %523 = load i32, ptr %57, align 4, !tbaa !11
  %524 = sext i32 %523 to i64
  %525 = getelementptr inbounds i32, ptr %522, i64 %524
  %526 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %55, ptr noundef nonnull align 4 dereferenceable(4) %525)
          to label %527 unwind label %532

527:                                              ; preds = %518
  %528 = load i32, ptr %526, align 4, !tbaa !11
  store i32 %528, ptr %55, align 4, !tbaa !11
  br label %529

529:                                              ; preds = %527
  %530 = load i32, ptr %57, align 4, !tbaa !11
  %531 = add nsw i32 %530, 2
  store i32 %531, ptr %57, align 4, !tbaa !11
  br label %511, !llvm.loop !24

532:                                              ; preds = %518
  %533 = landingpad { ptr, i32 }
          cleanup
  %534 = extractvalue { ptr, i32 } %533, 0
  store ptr %534, ptr %6, align 8
  %535 = extractvalue { ptr, i32 } %533, 1
  store i32 %535, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #9
  br label %552

536:                                              ; preds = %517
  br label %537

537:                                              ; preds = %536
  %538 = load i32, ptr %56, align 4, !tbaa !11
  %539 = add nsw i32 %538, 2
  store i32 %539, ptr %56, align 4, !tbaa !11
  br label %503, !llvm.loop !25

540:                                              ; preds = %509
  %541 = load i32, ptr %55, align 4, !tbaa !11
  %542 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %541)
          to label %543 unwind label %548

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

545:                                              ; preds = %543
  store i32 0, ptr %1, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #9
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #9
  %546 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %75, i64 %73
  %547 = icmp eq ptr %75, %546
  br i1 %547, label %558, label %554

548:                                              ; preds = %543, %540
  %549 = landingpad { ptr, i32 }
          cleanup
  %550 = extractvalue { ptr, i32 } %549, 0
  store ptr %550, ptr %6, align 8
  %551 = extractvalue { ptr, i32 } %549, 1
  store i32 %551, ptr %7, align 4
  br label %552

552:                                              ; preds = %548, %532
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #9
  br label %553

553:                                              ; preds = %552, %501, %267, %229
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #9
  br label %561

554:                                              ; preds = %554, %545
  %555 = phi ptr [ %546, %545 ], [ %556, %554 ]
  %556 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %555, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %556) #9
  %557 = icmp eq ptr %556, %75
  br i1 %557, label %558, label %554

558:                                              ; preds = %554, %545
  %559 = load ptr, ptr %4, align 8
  call void @llvm.stackrestore.p0(ptr %559)
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #9
  %560 = load i32, ptr %1, align 4
  ret i32 %560

561:                                              ; preds = %553, %107, %94
  %562 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %75, i64 %73
  %563 = icmp eq ptr %75, %562
  br i1 %563, label %568, label %564

564:                                              ; preds = %564, %561
  %565 = phi ptr [ %562, %561 ], [ %566, %564 ]
  %566 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %565, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %566) #9
  %567 = icmp eq ptr %566, %75
  br i1 %567, label %568, label %564

568:                                              ; preds = %564, %561
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #9
  br label %569

569:                                              ; preds = %568
  %570 = load ptr, ptr %6, align 8
  %571 = load i32, ptr %7, align 4
  %572 = insertvalue { ptr, i32 } poison, ptr %570, 0
  %573 = insertvalue { ptr, i32 } %572, i32 %571, 1
  resume { ptr, i32 } %573

574:                                              ; preds = %491
  unreachable
}

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #5

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #2 align 2

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5queueISt4pairIS0_IiiEiESt5dequeIS2_SaIS2_EEEC2IS5_vEEv(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5queueISt4pairIS0_IiiEiESt5dequeIS2_SaIS2_EEE4pushEOS2_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 4 dereferenceable(12)) #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i32 } @_ZSt9make_pairIRSt4pairIiiEiES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) #6

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt5queueISt4pairIS0_IiiEiESt5dequeIS2_SaIS2_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80)) #2 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(8)) #6 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i32 } @_ZSt9make_pairISt4pairIiiEiES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) #6

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt5queueISt4pairIS0_IiiEiESt5dequeIS2_SaIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #7 align 2

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

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #4

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

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

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


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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { i32, i32 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<std::pair<std::pair<int, int>, int>, std::allocator<std::pair<std::pair<int, int>, int>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::pair<std::pair<int, int>, int>, std::allocator<std::pair<std::pair<int, int>, int>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::pair<std::pair<int, int>, int>, std::allocator<std::pair<std::pair<int, int>, int>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::pair<std::pair<int, int>, int>, std::allocator<std::pair<std::pair<int, int>, int>>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"struct.std::pair.6" = type { %"struct.std::pair", i32 }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::pair<int, int>, std::pair<int, int>, std::_Identity<std::pair<int, int>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<int, int>, std::pair<int, int>, std::_Identity<std::pair<int, int>>, std::less<std::pair<int, 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 }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [9 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"struct.std::pair", align 4
  %7 = alloca %"struct.std::pair", align 4
  %8 = alloca %"struct.std::pair", align 4
  %9 = alloca %"struct.std::pair", align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"struct.std::pair", align 8
  %14 = alloca %"class.std::queue", align 8
  %15 = alloca %"struct.std::pair.6", align 8
  %16 = alloca i32, align 4
  %17 = alloca %"class.std::set", align 8
  %18 = alloca %"struct.std::pair.6", align 4
  %19 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %20 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca %"struct.std::pair.6", align 8
  %24 = alloca %"struct.std::pair", align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca %"struct.std::pair.6", align 8
  %28 = alloca %"struct.std::pair", align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca %"struct.std::pair.6", align 8
  %32 = alloca %"struct.std::pair", align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca %"struct.std::pair.6", align 8
  %36 = alloca %"struct.std::pair", align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %41 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %42 = getelementptr i8, ptr %41, i64 -24
  %43 = load i64, ptr %42, align 8
  %44 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %43
  %45 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %44, ptr noundef null)
  %46 = load ptr, ptr @stdin, align 8, !tbaa !8
  %47 = tail call ptr @freopen(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef %46)
  %48 = load ptr, ptr @stdout, align 8, !tbaa !8
  %49 = tail call ptr @freopen(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, ptr noundef %48)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #9
  %50 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %51 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %50, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %52 = load i32, ptr %2, align 4, !tbaa !11
  %53 = shl nsw i32 %52, 1
  %54 = or disjoint i32 %53, 1
  %55 = zext i32 %54 to i64
  %56 = call ptr @llvm.stacksave.p0()
  %57 = alloca %"class.std::__cxx11::basic_string", i64 %55, align 16
  %58 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %57, i64 %55
  br label %59

59:                                               ; preds = %59, %0
  %60 = phi ptr [ %57, %0 ], [ %61, %59 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %60) #9
  %61 = getelementptr inbounds i8, ptr %60, i64 32
  %62 = icmp eq ptr %61, %58
  br i1 %62, label %63, label %59

63:                                               ; preds = %59
  %64 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %57)
          to label %.preheader64 unwind label %68

.preheader64:                                     ; preds = %63
  %65 = load i32, ptr %2, align 4, !tbaa !11
  %.not69 = icmp slt i32 %65, 0
  br i1 %.not69, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %72, %.preheader64
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #9
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  store i32 1, ptr %4, align 4, !tbaa !11
  %66 = load i32, ptr %2, align 4, !tbaa !11
  %67 = shl nsw i32 %66, 1
  %.not5076 = icmp slt i32 %66, 1
  %.pre107 = load i32, ptr %1, align 4, !tbaa !11
  br i1 %.not5076, label %._crit_edge79, label %.lr.ph78

.lr.ph78:                                         ; preds = %._crit_edge
  %invariant.gep = getelementptr i8, ptr %57, i64 32
  br label %92

68:                                               ; preds = %63
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %340

.lr.ph:                                           ; preds = %.preheader64, %72
  %indvars.iv = phi i64 [ %indvars.iv.next, %72 ], [ 0, %.preheader64 ]
  %70 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %57, i64 %indvars.iv
  %71 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %70)
          to label %72 unwind label %76

72:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %73 = load i32, ptr %2, align 4, !tbaa !11
  %74 = shl nsw i32 %73, 1
  %75 = sext i32 %74 to i64
  %.not.not = icmp slt i64 %indvars.iv, %75
  br i1 %.not.not, label %.lr.ph, label %._crit_edge, !llvm.loop !13

76:                                               ; preds = %.lr.ph
  %77 = landingpad { ptr, i32 }
          cleanup
  br label %340

._crit_edge79:                                    ; preds = %._crit_edge75, %._crit_edge
  %78 = phi i32 [ %.pre107, %._crit_edge ], [ %98, %._crit_edge75 ]
  %.lcssa = phi i32 [ %67, %._crit_edge ], [ %100, %._crit_edge75 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  %79 = or disjoint i32 %.lcssa, 1
  %80 = zext i32 %79 to i64
  %81 = shl nsw i32 %78, 1
  %82 = or disjoint i32 %81, 1
  %83 = zext i32 %82 to i64
  %84 = mul nuw i64 %83, %80
  %85 = alloca i32, i64 %84, align 16
  %86 = sext i32 %.lcssa to i64
  %87 = mul nsw i64 %83, %86
  %88 = getelementptr inbounds i32, ptr %85, i64 %87
  %89 = sext i32 %81 to i64
  %90 = getelementptr inbounds i32, ptr %88, i64 %89
  %91 = getelementptr inbounds i8, ptr %90, i64 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #9
  store i32 2147483647, ptr %10, align 4, !tbaa !11
  invoke void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef nonnull %85, ptr noundef nonnull %91, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %168 unwind label %175

92:                                               ; preds = %.lr.ph78, %._crit_edge75
  %93 = phi i32 [ %66, %.lr.ph78 ], [ %96, %._crit_edge75 ]
  %94 = phi i32 [ 1, %.lr.ph78 ], [ %99, %._crit_edge75 ]
  %95 = phi i32 [ %.pre107, %.lr.ph78 ], [ %98, %._crit_edge75 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #9
  store i32 1, ptr %5, align 4, !tbaa !11
  %.not5871 = icmp slt i32 %95, 1
  br i1 %.not5871, label %._crit_edge75, label %.lr.ph74

._crit_edge75.loopexit:                           ; preds = %162
  %.pre105 = load i32, ptr %4, align 4, !tbaa !11
  %.pre106 = load i32, ptr %2, align 4, !tbaa !11
  br label %._crit_edge75

._crit_edge75:                                    ; preds = %._crit_edge75.loopexit, %92
  %96 = phi i32 [ %.pre106, %._crit_edge75.loopexit ], [ %93, %92 ]
  %97 = phi i32 [ %.pre105, %._crit_edge75.loopexit ], [ %94, %92 ]
  %98 = phi i32 [ %165, %._crit_edge75.loopexit ], [ %95, %92 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  %99 = add nsw i32 %97, 2
  store i32 %99, ptr %4, align 4, !tbaa !11
  %100 = shl nsw i32 %96, 1
  %.not50 = icmp sgt i32 %99, %100
  br i1 %.not50, label %._crit_edge79, label %92, !llvm.loop !15

.lr.ph74:                                         ; preds = %92, %162
  %storemerge5772 = phi i32 [ %164, %162 ], [ 1, %92 ]
  %101 = load i32, ptr %4, align 4, !tbaa !11
  %102 = icmp eq i32 %101, 1
  br i1 %102, label %103, label %112

103:                                              ; preds = %.lr.ph74
  %104 = sext i32 %storemerge5772 to i64
  %105 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %57, i64 noundef %104)
  %106 = load i8, ptr %105, align 1, !tbaa !16
  %107 = icmp eq i8 %106, 32
  br i1 %107, label %108, label %112

108:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #9
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(8) %6)
          to label %109 unwind label %110

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

110:                                              ; preds = %108
  %111 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  br label %167

112:                                              ; preds = %109, %103, %.lr.ph74
  %113 = load i32, ptr %4, align 4, !tbaa !11
  %114 = load i32, ptr %2, align 4, !tbaa !11
  %115 = shl nsw i32 %114, 1
  %116 = add nsw i32 %115, -1
  %117 = icmp eq i32 %113, %116
  br i1 %117, label %118, label %129

118:                                              ; preds = %112
  %119 = sext i32 %113 to i64
  %gep = getelementptr %"class.std::__cxx11::basic_string", ptr %invariant.gep, i64 %119
  %120 = load i32, ptr %5, align 4, !tbaa !11
  %121 = sext i32 %120 to i64
  %122 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %gep, i64 noundef %121)
  %123 = load i8, ptr %122, align 1, !tbaa !16
  %124 = icmp eq i8 %123, 32
  br i1 %124, label %125, label %129

125:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #9
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(8) %7)
          to label %126 unwind label %127

126:                                              ; preds = %125
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  br label %129

127:                                              ; preds = %125
  %128 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  br label %167

129:                                              ; preds = %126, %118, %112
  %130 = load i32, ptr %5, align 4, !tbaa !11
  %131 = icmp eq i32 %130, 1
  br i1 %131, label %132, label %143

132:                                              ; preds = %129
  %133 = load i32, ptr %4, align 4, !tbaa !11
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %57, i64 %134
  %136 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %135, i64 noundef 0)
  %137 = load i8, ptr %136, align 1, !tbaa !16
  %138 = icmp eq i8 %137, 32
  br i1 %138, label %139, label %143

139:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #9
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(8) %8)
          to label %140 unwind label %141

140:                                              ; preds = %139
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  br label %143

141:                                              ; preds = %139
  %142 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  br label %167

143:                                              ; preds = %140, %132, %129
  %144 = load i32, ptr %5, align 4, !tbaa !11
  %145 = load i32, ptr %1, align 4, !tbaa !11
  %146 = shl nsw i32 %145, 1
  %147 = add nsw i32 %146, -1
  %148 = icmp eq i32 %144, %147
  br i1 %148, label %149, label %162

149:                                              ; preds = %143
  %150 = load i32, ptr %4, align 4, !tbaa !11
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %57, i64 %151
  %153 = add nsw i32 %144, 1
  %154 = sext i32 %153 to i64
  %155 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %152, i64 noundef %154)
  %156 = load i8, ptr %155, align 1, !tbaa !16
  %157 = icmp eq i8 %156, 32
  br i1 %157, label %158, label %162

158:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #9
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(8) %9)
          to label %159 unwind label %160

159:                                              ; preds = %158
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  br label %162

160:                                              ; preds = %158
  %161 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  br label %167

162:                                              ; preds = %143, %149, %159
  %163 = load i32, ptr %5, align 4, !tbaa !11
  %164 = add nsw i32 %163, 2
  store i32 %164, ptr %5, align 4, !tbaa !11
  %165 = load i32, ptr %1, align 4, !tbaa !11
  %166 = shl nsw i32 %165, 1
  %.not58 = icmp sgt i32 %164, %166
  br i1 %.not58, label %._crit_edge75.loopexit, label %.lr.ph74, !llvm.loop !17

167:                                              ; preds = %160, %141, %127, %110
  %.pn59 = phi { ptr, i32 } [ %161, %160 ], [ %142, %141 ], [ %128, %127 ], [ %111, %110 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  br label %334

168:                                              ; preds = %._crit_edge79
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #9
  %169 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  store ptr %169, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #9
  %170 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  store ptr %170, ptr %12, align 8
  %171 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  br i1 %171, label %.lr.ph88, label %._crit_edge89

.lr.ph88:                                         ; preds = %168
  %.sroa.222.0..sroa_idx = getelementptr inbounds i8, ptr %15, i64 8
  %invariant.gep80 = getelementptr i8, ptr %57, i64 -32
  %invariant.gep82 = getelementptr i8, ptr %57, i64 32
  %172 = getelementptr inbounds i8, ptr %18, i64 4
  %173 = getelementptr inbounds i8, ptr %18, i64 8
  %.sroa.217.0..sroa_idx = getelementptr inbounds i8, ptr %23, i64 8
  %.sroa.213.0..sroa_idx = getelementptr inbounds i8, ptr %27, i64 8
  %.sroa.29.0..sroa_idx = getelementptr inbounds i8, ptr %31, i64 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %35, i64 8
  br label %177

._crit_edge89:                                    ; preds = %._crit_edge86, %168
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %39) #9
  store i32 0, ptr %39, align 4, !tbaa !11
  %174 = load i32, ptr %2, align 4, !tbaa !11
  %.not5194 = icmp slt i32 %174, 1
  br i1 %.not5194, label %._crit_edge96, label %.preheader.preheader

.preheader.preheader:                             ; preds = %._crit_edge89
  %.pre111 = load i32, ptr %1, align 4, !tbaa !11
  br label %.preheader

175:                                              ; preds = %._crit_edge79
  %176 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #9
  br label %334

177:                                              ; preds = %.lr.ph88, %._crit_edge86
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #9
  %178 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %179 = load i64, ptr %178, align 4
  store i64 %179, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %14) #9
  invoke void @_ZNSt5queueISt4pairIS0_IiiEiESt5dequeIS2_SaIS2_EEEC2IS5_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %14)
          to label %180 unwind label %190

180:                                              ; preds = %177
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %15) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #9
  store i32 1, ptr %16, align 4, !tbaa !11
  %181 = invoke { i64, i32 } @_ZSt9make_pairIRSt4pairIiiEiES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %182 unwind label %192

182:                                              ; preds = %180
  %.fca.0.extract19 = extractvalue { i64, i32 } %181, 0
  %.fca.1.extract20 = extractvalue { i64, i32 } %181, 1
  store i64 %.fca.0.extract19, ptr %15, align 8
  store i32 %.fca.1.extract20, ptr %.sroa.222.0..sroa_idx, align 8
  invoke void @_ZNSt5queueISt4pairIS0_IiiEiESt5dequeIS2_SaIS2_EEE4pushEOS2_(ptr noundef nonnull align 8 dereferenceable(80) %14, ptr noundef nonnull align 4 dereferenceable(12) %15)
          to label %183 unwind label %192

183:                                              ; preds = %182
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #9
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %17) #9
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %17) #9
  %184 = call noundef zeroext i1 @_ZNKSt5queueISt4pairIS0_IiiEiESt5dequeIS2_SaIS2_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %14)
  br i1 %184, label %._crit_edge86, label %.lr.ph85

.lr.ph85:                                         ; preds = %183, %302
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %18) #9
  %185 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt5queueISt4pairIS0_IiiEiESt5dequeIS2_SaIS2_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %14)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(12) %185, i64 12, i1 false)
  call void @_ZNSt5queueISt4pairIS0_IiiEiESt5dequeIS2_SaIS2_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %14)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #9
  %186 = invoke ptr @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE4findERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %17, ptr noundef nonnull align 4 dereferenceable(8) %18)
          to label %187 unwind label %196

187:                                              ; preds = %.lr.ph85
  store ptr %186, ptr %19, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #9
  %188 = call ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %17) #9
  store ptr %188, ptr %20, align 8
  %189 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIiiEES4_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #9
  br i1 %189, label %302, label %198, !llvm.loop !18

190:                                              ; preds = %177
  %191 = landingpad { ptr, i32 }
          cleanup
  br label %309

192:                                              ; preds = %182, %180
  %193 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #9
  br label %308

194:                                              ; preds = %198
  %195 = landingpad { ptr, i32 }
          cleanup
  br label %305

196:                                              ; preds = %.lr.ph85
  %197 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #9
  br label %305

198:                                              ; preds = %187
  %199 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %17, ptr noundef nonnull align 4 dereferenceable(8) %18)
          to label %200 unwind label %194

200:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #9
  %201 = load i32, ptr %18, align 4, !tbaa !19
  store i32 %201, ptr %21, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #9
  %202 = load i32, ptr %172, align 4, !tbaa !22
  store i32 %202, ptr %22, align 4, !tbaa !11
  %203 = sext i32 %201 to i64
  %204 = mul nsw i64 %203, %83
  %205 = getelementptr inbounds i32, ptr %85, i64 %204
  %206 = sext i32 %202 to i64
  %207 = getelementptr inbounds i32, ptr %205, i64 %206
  %208 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %207, ptr noundef nonnull align 4 dereferenceable(4) %173)
  %209 = load i32, ptr %208, align 4, !tbaa !11
  %210 = load i32, ptr %21, align 4, !tbaa !11
  %211 = sext i32 %210 to i64
  %212 = mul nsw i64 %211, %83
  %213 = getelementptr inbounds i32, ptr %85, i64 %212
  %214 = load i32, ptr %22, align 4, !tbaa !11
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds i32, ptr %213, i64 %215
  store i32 %209, ptr %216, align 4, !tbaa !11
  %217 = icmp sgt i32 %210, 1
  br i1 %217, label %218, label %232

218:                                              ; preds = %200
  %219 = zext nneg i32 %210 to i64
  %gep81 = getelementptr %"class.std::__cxx11::basic_string", ptr %invariant.gep80, i64 %219
  %220 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %gep81, i64 noundef %215)
  %221 = load i8, ptr %220, align 1, !tbaa !16
  %222 = icmp eq i8 %221, 32
  %.pre108 = load i32, ptr %21, align 4, !tbaa !11
  br i1 %222, label %223, label %232

223:                                              ; preds = %218
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %23) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %25) #9
  %224 = add nsw i32 %.pre108, -2
  store i32 %224, ptr %25, align 4, !tbaa !11
  call void @_ZNSt4pairIiiEC2IiRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %24, ptr noundef nonnull align 4 dereferenceable(4) %25, ptr noundef nonnull align 4 dereferenceable(4) %22)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %26) #9
  %225 = load i32, ptr %173, align 4, !tbaa !23
  %226 = add nsw i32 %225, 1
  store i32 %226, ptr %26, align 4, !tbaa !11
  %227 = invoke { i64, i32 } @_ZSt9make_pairISt4pairIiiEiES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(8) %24, ptr noundef nonnull align 4 dereferenceable(4) %26)
          to label %228 unwind label %230

228:                                              ; preds = %223
  %.fca.0.extract14 = extractvalue { i64, i32 } %227, 0
  %.fca.1.extract15 = extractvalue { i64, i32 } %227, 1
  store i64 %.fca.0.extract14, ptr %23, align 8
  store i32 %.fca.1.extract15, ptr %.sroa.217.0..sroa_idx, align 8
  invoke void @_ZNSt5queueISt4pairIS0_IiiEiESt5dequeIS2_SaIS2_EEE4pushEOS2_(ptr noundef nonnull align 8 dereferenceable(80) %14, ptr noundef nonnull align 4 dereferenceable(12) %23)
          to label %229 unwind label %230

229:                                              ; preds = %228
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %23) #9
  %.pre = load i32, ptr %21, align 4, !tbaa !11
  br label %232

230:                                              ; preds = %228, %223
  %231 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %23) #9
  br label %304

232:                                              ; preds = %229, %218, %200
  %233 = phi i32 [ %.pre, %229 ], [ %.pre108, %218 ], [ %210, %200 ]
  %234 = load i32, ptr %2, align 4, !tbaa !11
  %235 = shl nsw i32 %234, 1
  %236 = add nsw i32 %235, -1
  %237 = icmp slt i32 %233, %236
  br i1 %237, label %238, label %255

238:                                              ; preds = %232
  %239 = sext i32 %233 to i64
  %gep83 = getelementptr %"class.std::__cxx11::basic_string", ptr %invariant.gep82, i64 %239
  %240 = load i32, ptr %22, align 4, !tbaa !11
  %241 = sext i32 %240 to i64
  %242 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %gep83, i64 noundef %241)
  %243 = load i8, ptr %242, align 1, !tbaa !16
  %244 = icmp eq i8 %243, 32
  br i1 %244, label %245, label %255

245:                                              ; preds = %238
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %27) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %28) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %29) #9
  %246 = load i32, ptr %21, align 4, !tbaa !11
  %247 = add nsw i32 %246, 2
  store i32 %247, ptr %29, align 4, !tbaa !11
  call void @_ZNSt4pairIiiEC2IiRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %28, ptr noundef nonnull align 4 dereferenceable(4) %29, ptr noundef nonnull align 4 dereferenceable(4) %22)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %30) #9
  %248 = load i32, ptr %173, align 4, !tbaa !23
  %249 = add nsw i32 %248, 1
  store i32 %249, ptr %30, align 4, !tbaa !11
  %250 = invoke { i64, i32 } @_ZSt9make_pairISt4pairIiiEiES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(8) %28, ptr noundef nonnull align 4 dereferenceable(4) %30)
          to label %251 unwind label %253

251:                                              ; preds = %245
  %.fca.0.extract10 = extractvalue { i64, i32 } %250, 0
  %.fca.1.extract11 = extractvalue { i64, i32 } %250, 1
  store i64 %.fca.0.extract10, ptr %27, align 8
  store i32 %.fca.1.extract11, ptr %.sroa.213.0..sroa_idx, align 8
  invoke void @_ZNSt5queueISt4pairIS0_IiiEiESt5dequeIS2_SaIS2_EEE4pushEOS2_(ptr noundef nonnull align 8 dereferenceable(80) %14, ptr noundef nonnull align 4 dereferenceable(12) %27)
          to label %252 unwind label %253

252:                                              ; preds = %251
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %30) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %29) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %27) #9
  br label %255

253:                                              ; preds = %251, %245
  %254 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %30) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %29) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %27) #9
  br label %304

255:                                              ; preds = %252, %238, %232
  %256 = load i32, ptr %22, align 4, !tbaa !11
  %257 = icmp sgt i32 %256, 1
  br i1 %257, label %258, label %276

258:                                              ; preds = %255
  %259 = load i32, ptr %21, align 4, !tbaa !11
  %260 = sext i32 %259 to i64
  %261 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %57, i64 %260
  %262 = add nsw i32 %256, -1
  %263 = zext nneg i32 %262 to i64
  %264 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %261, i64 noundef %263)
  %265 = load i8, ptr %264, align 1, !tbaa !16
  %266 = icmp eq i8 %265, 32
  %.pre110 = load i32, ptr %22, align 4, !tbaa !11
  br i1 %266, label %267, label %276

267:                                              ; preds = %258
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %31) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %32) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %33) #9
  %268 = add nsw i32 %.pre110, -2
  store i32 %268, ptr %33, align 4, !tbaa !11
  call void @_ZNSt4pairIiiEC2IRiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %32, ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef nonnull align 4 dereferenceable(4) %33)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %34) #9
  %269 = load i32, ptr %173, align 4, !tbaa !23
  %270 = add nsw i32 %269, 1
  store i32 %270, ptr %34, align 4, !tbaa !11
  %271 = invoke { i64, i32 } @_ZSt9make_pairISt4pairIiiEiES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(8) %32, ptr noundef nonnull align 4 dereferenceable(4) %34)
          to label %272 unwind label %274

272:                                              ; preds = %267
  %.fca.0.extract6 = extractvalue { i64, i32 } %271, 0
  %.fca.1.extract7 = extractvalue { i64, i32 } %271, 1
  store i64 %.fca.0.extract6, ptr %31, align 8
  store i32 %.fca.1.extract7, ptr %.sroa.29.0..sroa_idx, align 8
  invoke void @_ZNSt5queueISt4pairIS0_IiiEiESt5dequeIS2_SaIS2_EEE4pushEOS2_(ptr noundef nonnull align 8 dereferenceable(80) %14, ptr noundef nonnull align 4 dereferenceable(12) %31)
          to label %273 unwind label %274

273:                                              ; preds = %272
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %34) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %33) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %32) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %31) #9
  %.pre109 = load i32, ptr %22, align 4, !tbaa !11
  br label %276

274:                                              ; preds = %272, %267
  %275 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %34) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %33) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %32) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %31) #9
  br label %304

276:                                              ; preds = %273, %258, %255
  %277 = phi i32 [ %.pre109, %273 ], [ %.pre110, %258 ], [ %256, %255 ]
  %278 = load i32, ptr %1, align 4, !tbaa !11
  %279 = shl nsw i32 %278, 1
  %280 = add nsw i32 %279, -1
  %281 = icmp slt i32 %277, %280
  br i1 %281, label %282, label %301

282:                                              ; preds = %276
  %283 = load i32, ptr %21, align 4, !tbaa !11
  %284 = sext i32 %283 to i64
  %285 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %57, i64 %284
  %286 = add nsw i32 %277, 1
  %287 = sext i32 %286 to i64
  %288 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %285, i64 noundef %287)
  %289 = load i8, ptr %288, align 1, !tbaa !16
  %290 = icmp eq i8 %289, 32
  br i1 %290, label %291, label %301

291:                                              ; preds = %282
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %35) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %36) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %37) #9
  %292 = load i32, ptr %22, align 4, !tbaa !11
  %293 = add nsw i32 %292, 2
  store i32 %293, ptr %37, align 4, !tbaa !11
  call void @_ZNSt4pairIiiEC2IRiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %36, ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef nonnull align 4 dereferenceable(4) %37)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %38) #9
  %294 = load i32, ptr %173, align 4, !tbaa !23
  %295 = add nsw i32 %294, 1
  store i32 %295, ptr %38, align 4, !tbaa !11
  %296 = invoke { i64, i32 } @_ZSt9make_pairISt4pairIiiEiES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(8) %36, ptr noundef nonnull align 4 dereferenceable(4) %38)
          to label %297 unwind label %299

297:                                              ; preds = %291
  %.fca.0.extract = extractvalue { i64, i32 } %296, 0
  %.fca.1.extract = extractvalue { i64, i32 } %296, 1
  store i64 %.fca.0.extract, ptr %35, align 8
  store i32 %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  invoke void @_ZNSt5queueISt4pairIS0_IiiEiESt5dequeIS2_SaIS2_EEE4pushEOS2_(ptr noundef nonnull align 8 dereferenceable(80) %14, ptr noundef nonnull align 4 dereferenceable(12) %35)
          to label %298 unwind label %299

298:                                              ; preds = %297
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %38) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %37) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %36) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %35) #9
  br label %301

299:                                              ; preds = %297, %291
  %300 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %38) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %37) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %36) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %35) #9
  br label %304

301:                                              ; preds = %298, %282, %276
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #9
  br label %302

302:                                              ; preds = %187, %301
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %18) #9
  %303 = call noundef zeroext i1 @_ZNKSt5queueISt4pairIS0_IiiEiESt5dequeIS2_SaIS2_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %14)
  br i1 %303, label %._crit_edge86, label %.lr.ph85

304:                                              ; preds = %299, %274, %253, %230
  %.pn = phi { ptr, i32 } [ %300, %299 ], [ %275, %274 ], [ %254, %253 ], [ %231, %230 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #9
  br label %305

305:                                              ; preds = %304, %196, %194
  %.pn.pn = phi { ptr, i32 } [ %.pn, %304 ], [ %195, %194 ], [ %197, %196 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %18) #9
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %17) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %17) #9
  br label %308

._crit_edge86:                                    ; preds = %302, %183
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %17) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %17) #9
  call void @_ZNSt5queueISt4pairIS0_IiiEiESt5dequeIS2_SaIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %14) #9
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #9
  %306 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %307 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  br i1 %307, label %177, label %._crit_edge89

308:                                              ; preds = %305, %192
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %305 ], [ %193, %192 ]
  call void @_ZNSt5queueISt4pairIS0_IiiEiESt5dequeIS2_SaIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %14) #9
  br label %309

309:                                              ; preds = %308, %190
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %308 ], [ %191, %190 ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  br label %334

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge93
  %310 = phi i32 [ 0, %.preheader.preheader ], [ %317, %._crit_edge93 ]
  %311 = phi i32 [ %174, %.preheader.preheader ], [ %318, %._crit_edge93 ]
  %312 = phi i32 [ %.pre111, %.preheader.preheader ], [ %319, %._crit_edge93 ]
  %indvars.iv102 = phi i64 [ 1, %.preheader.preheader ], [ %indvars.iv.next103, %._crit_edge93 ]
  %.not5290 = icmp slt i32 %312, 1
  br i1 %.not5290, label %._crit_edge93, label %.lr.ph92

.lr.ph92:                                         ; preds = %.preheader
  %313 = mul nuw nsw i64 %indvars.iv102, %83
  %314 = getelementptr inbounds i32, ptr %85, i64 %313
  br label %322

._crit_edge96:                                    ; preds = %._crit_edge93, %._crit_edge89
  %315 = phi i32 [ 0, %._crit_edge89 ], [ %317, %._crit_edge93 ]
  %316 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %315)
          to label %329 unwind label %332

._crit_edge93.loopexit:                           ; preds = %322
  %.pre112 = load i32, ptr %2, align 4, !tbaa !11
  br label %._crit_edge93

._crit_edge93:                                    ; preds = %._crit_edge93.loopexit, %.preheader
  %317 = phi i32 [ %325, %._crit_edge93.loopexit ], [ %310, %.preheader ]
  %318 = phi i32 [ %.pre112, %._crit_edge93.loopexit ], [ %311, %.preheader ]
  %319 = phi i32 [ %326, %._crit_edge93.loopexit ], [ %312, %.preheader ]
  %indvars.iv.next103 = add nuw nsw i64 %indvars.iv102, 2
  %320 = shl nsw i32 %318, 1
  %321 = trunc nuw i64 %indvars.iv.next103 to i32
  %.not51 = icmp slt i32 %320, %321
  br i1 %.not51, label %._crit_edge96, label %.preheader, !llvm.loop !24

322:                                              ; preds = %.lr.ph92, %322
  %indvars.iv99 = phi i64 [ 1, %.lr.ph92 ], [ %indvars.iv.next100, %322 ]
  %323 = getelementptr inbounds i32, ptr %314, i64 %indvars.iv99
  %324 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %39, ptr noundef nonnull align 4 dereferenceable(4) %323)
  %325 = load i32, ptr %324, align 4, !tbaa !11
  store i32 %325, ptr %39, align 4, !tbaa !11
  %indvars.iv.next100 = add nuw nsw i64 %indvars.iv99, 2
  %326 = load i32, ptr %1, align 4, !tbaa !11
  %327 = shl nsw i32 %326, 1
  %328 = trunc nuw i64 %indvars.iv.next100 to i32
  %.not52 = icmp slt i32 %327, %328
  br i1 %.not52, label %._crit_edge93.loopexit, label %322, !llvm.loop !25

329:                                              ; preds = %._crit_edge96
  %330 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %316, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %331 unwind label %332

331:                                              ; preds = %329
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %39) #9
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #9
  br label %335

332:                                              ; preds = %329, %._crit_edge96
  %333 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %39) #9
  br label %334

334:                                              ; preds = %332, %309, %175, %167
  %.pn59.pn = phi { ptr, i32 } [ %.pn59, %167 ], [ %.pn.pn.pn.pn, %309 ], [ %333, %332 ], [ %176, %175 ]
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #9
  br label %340

335:                                              ; preds = %331, %335
  %336 = phi ptr [ %58, %331 ], [ %337, %335 ]
  %337 = getelementptr inbounds i8, ptr %336, i64 -32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %337) #9
  %338 = icmp eq ptr %337, %57
  br i1 %338, label %339, label %335

339:                                              ; preds = %335
  call void @llvm.stackrestore.p0(ptr %56)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #9
  ret i32 0

340:                                              ; preds = %334, %76, %68
  %.pn62 = phi { ptr, i32 } [ %77, %76 ], [ %.pn59.pn, %334 ], [ %69, %68 ]
  br label %341

341:                                              ; preds = %340, %341
  %342 = phi ptr [ %58, %340 ], [ %343, %341 ]
  %343 = getelementptr inbounds i8, ptr %342, i64 -32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %343) #9
  %344 = icmp eq ptr %343, %57
  br i1 %344, label %345, label %341

345:                                              ; preds = %341
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #9
  resume { ptr, i32 } %.pn62
}

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

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

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

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

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 #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #2 align 2

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5queueISt4pairIS0_IiiEiESt5dequeIS2_SaIS2_EEEC2IS5_vEEv(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5queueISt4pairIS0_IiiEiESt5dequeIS2_SaIS2_EEE4pushEOS2_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i32 } @_ZSt9make_pairIRSt4pairIiiEiES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #6

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt5queueISt4pairIS0_IiiEiESt5dequeIS2_SaIS2_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #2 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #6 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i32 } @_ZSt9make_pairISt4pairIiiEiES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #6

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt5queueISt4pairIS0_IiiEiESt5dequeIS2_SaIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #7 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #4

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

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

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


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