; LLVM IR from kazunetakahashi/atcoder :: 201411_201509/1225_codethanks_B (E)

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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"struct.std::pair" = type { i32, i32 }
%"class.std::stack" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::pair<int, int>, std::allocator<std::pair<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 }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@_ZL2dx = external hidden constant [4 x i32], align 16
@_ZL2dy = external hidden constant [4 x i32], align 16
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1

; 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 %"struct.std::pair", align 4
  %5 = alloca %"struct.std::pair", align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"struct.std::pair", align 4
  %9 = alloca %"struct.std::pair", align 4
  %10 = alloca [60 x [60 x i32]], align 16
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca %"class.std::stack", align 8
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca [60 x [60 x i8]], align 16
  %27 = alloca i8, align 1
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca %"struct.std::pair", align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  %34 = 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)
  %35 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %34, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 4 dereferenceable(8) %4)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 4 dereferenceable(8) %5)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %36 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %37 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %36, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %38 = load i32, ptr %6, align 4, !tbaa !5
  %39 = add nsw i32 %38, -1
  store i32 %39, ptr %6, align 4, !tbaa !5
  %40 = load i32, ptr %7, align 4, !tbaa !5
  %41 = add nsw i32 %40, -1
  store i32 %41, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %42 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  store i64 %42, ptr %8, align 4
  %43 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  %44 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %45 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %44, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %46 = load i32, ptr %6, align 4, !tbaa !5
  %47 = add nsw i32 %46, -1
  store i32 %47, ptr %6, align 4, !tbaa !5
  %48 = load i32, ptr %7, align 4, !tbaa !5
  %49 = add nsw i32 %48, -1
  store i32 %49, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %50 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  store i64 %50, ptr %9, align 4
  %51 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 14400, ptr %10) #7
  %52 = getelementptr inbounds [60 x [60 x i32]], ptr %10, i64 0, i64 0
  %53 = getelementptr inbounds [60 x i32], ptr %52, i64 0, i64 0
  %54 = getelementptr inbounds [60 x [60 x i32]], ptr %10, i64 0, i64 0
  %55 = getelementptr inbounds [60 x i32], ptr %54, i64 0, i64 0
  %56 = getelementptr inbounds i32, ptr %55, i64 3600
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 0, ptr %11, align 4, !tbaa !5
  call void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef %53, ptr noundef %56, ptr noundef nonnull align 4 dereferenceable(4) %11)
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %57 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %12)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %58

58:                                               ; preds = %112, %0
  %59 = load i32, ptr %13, align 4, !tbaa !5
  %60 = load i32, ptr %12, align 4, !tbaa !5
  %61 = icmp slt i32 %59, %60
  br i1 %61, label %63, label %62

62:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %115

63:                                               ; preds = %58
  %64 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %65 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %64, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %66 = load i32, ptr %6, align 4, !tbaa !5
  %67 = add nsw i32 %66, -1
  store i32 %67, ptr %6, align 4, !tbaa !5
  %68 = load i32, ptr %7, align 4, !tbaa !5
  %69 = add nsw i32 %68, -1
  store i32 %69, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %70 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %71 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %70, ptr noundef nonnull align 4 dereferenceable(4) %15)
  %72 = load i32, ptr %6, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [60 x [60 x i32]], ptr %10, i64 0, i64 %73
  %75 = load i32, ptr %7, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [60 x i32], ptr %74, i64 0, i64 %76
  %78 = load i32, ptr %77, align 4, !tbaa !5
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %77, align 4, !tbaa !5
  %80 = load i32, ptr %6, align 4, !tbaa !5
  %81 = load i32, ptr %14, align 4, !tbaa !5
  %82 = add nsw i32 %80, %81
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [60 x [60 x i32]], ptr %10, i64 0, i64 %83
  %85 = load i32, ptr %7, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [60 x i32], ptr %84, i64 0, i64 %86
  %88 = load i32, ptr %87, align 4, !tbaa !5
  %89 = add nsw i32 %88, -1
  store i32 %89, ptr %87, align 4, !tbaa !5
  %90 = load i32, ptr %6, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [60 x [60 x i32]], ptr %10, i64 0, i64 %91
  %93 = load i32, ptr %7, align 4, !tbaa !5
  %94 = load i32, ptr %15, align 4, !tbaa !5
  %95 = add nsw i32 %93, %94
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [60 x i32], ptr %92, i64 0, i64 %96
  %98 = load i32, ptr %97, align 4, !tbaa !5
  %99 = add nsw i32 %98, -1
  store i32 %99, ptr %97, align 4, !tbaa !5
  %100 = load i32, ptr %6, align 4, !tbaa !5
  %101 = load i32, ptr %14, align 4, !tbaa !5
  %102 = add nsw i32 %100, %101
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [60 x [60 x i32]], ptr %10, i64 0, i64 %103
  %105 = load i32, ptr %7, align 4, !tbaa !5
  %106 = load i32, ptr %15, align 4, !tbaa !5
  %107 = add nsw i32 %105, %106
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [60 x i32], ptr %104, i64 0, i64 %108
  %110 = load i32, ptr %109, align 4, !tbaa !5
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %109, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %112

112:                                              ; preds = %63
  %113 = load i32, ptr %13, align 4, !tbaa !5
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %13, align 4, !tbaa !5
  br label %58, !llvm.loop !9

115:                                              ; preds = %62
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %116

116:                                              ; preds = %148, %115
  %117 = load i32, ptr %16, align 4, !tbaa !5
  %118 = load i32, ptr %2, align 4, !tbaa !5
  %119 = icmp slt i32 %117, %118
  br i1 %119, label %121, label %120

120:                                              ; preds = %116
  store i32 5, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %151

121:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 1, ptr %18, align 4, !tbaa !5
  br label %122

122:                                              ; preds = %144, %121
  %123 = load i32, ptr %18, align 4, !tbaa !5
  %124 = load i32, ptr %3, align 4, !tbaa !5
  %125 = icmp slt i32 %123, %124
  br i1 %125, label %127, label %126

126:                                              ; preds = %122
  store i32 8, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %147

127:                                              ; preds = %122
  %128 = load i32, ptr %16, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [60 x [60 x i32]], ptr %10, i64 0, i64 %129
  %131 = load i32, ptr %18, align 4, !tbaa !5
  %132 = sub nsw i32 %131, 1
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [60 x i32], ptr %130, i64 0, i64 %133
  %135 = load i32, ptr %134, align 4, !tbaa !5
  %136 = load i32, ptr %16, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [60 x [60 x i32]], ptr %10, i64 0, i64 %137
  %139 = load i32, ptr %18, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [60 x i32], ptr %138, i64 0, i64 %140
  %142 = load i32, ptr %141, align 4, !tbaa !5
  %143 = add nsw i32 %142, %135
  store i32 %143, ptr %141, align 4, !tbaa !5
  br label %144

144:                                              ; preds = %127
  %145 = load i32, ptr %18, align 4, !tbaa !5
  %146 = add nsw i32 %145, 1
  store i32 %146, ptr %18, align 4, !tbaa !5
  br label %122, !llvm.loop !11

147:                                              ; preds = %126
  br label %148

148:                                              ; preds = %147
  %149 = load i32, ptr %16, align 4, !tbaa !5
  %150 = add nsw i32 %149, 1
  store i32 %150, ptr %16, align 4, !tbaa !5
  br label %116, !llvm.loop !12

151:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 1, ptr %19, align 4, !tbaa !5
  br label %152

152:                                              ; preds = %184, %151
  %153 = load i32, ptr %19, align 4, !tbaa !5
  %154 = load i32, ptr %2, align 4, !tbaa !5
  %155 = icmp slt i32 %153, %154
  br i1 %155, label %157, label %156

156:                                              ; preds = %152
  store i32 11, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %187

157:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %158

158:                                              ; preds = %180, %157
  %159 = load i32, ptr %20, align 4, !tbaa !5
  %160 = load i32, ptr %3, align 4, !tbaa !5
  %161 = icmp slt i32 %159, %160
  br i1 %161, label %163, label %162

162:                                              ; preds = %158
  store i32 14, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %183

163:                                              ; preds = %158
  %164 = load i32, ptr %19, align 4, !tbaa !5
  %165 = sub nsw i32 %164, 1
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [60 x [60 x i32]], ptr %10, i64 0, i64 %166
  %168 = load i32, ptr %20, align 4, !tbaa !5
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [60 x i32], ptr %167, i64 0, i64 %169
  %171 = load i32, ptr %170, align 4, !tbaa !5
  %172 = load i32, ptr %19, align 4, !tbaa !5
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [60 x [60 x i32]], ptr %10, i64 0, i64 %173
  %175 = load i32, ptr %20, align 4, !tbaa !5
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds [60 x i32], ptr %174, i64 0, i64 %176
  %178 = load i32, ptr %177, align 4, !tbaa !5
  %179 = add nsw i32 %178, %171
  store i32 %179, ptr %177, align 4, !tbaa !5
  br label %180

180:                                              ; preds = %163
  %181 = load i32, ptr %20, align 4, !tbaa !5
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %20, align 4, !tbaa !5
  br label %158, !llvm.loop !13

183:                                              ; preds = %162
  br label %184

184:                                              ; preds = %183
  %185 = load i32, ptr %19, align 4, !tbaa !5
  %186 = add nsw i32 %185, 1
  store i32 %186, ptr %19, align 4, !tbaa !5
  br label %152, !llvm.loop !14

187:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  store i32 0, ptr %21, align 4, !tbaa !5
  br label %188

188:                                              ; preds = %213, %187
  %189 = load i32, ptr %21, align 4, !tbaa !5
  %190 = load i32, ptr %2, align 4, !tbaa !5
  %191 = icmp slt i32 %189, %190
  br i1 %191, label %193, label %192

192:                                              ; preds = %188
  store i32 17, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %216

193:                                              ; preds = %188
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  store i32 0, ptr %22, align 4, !tbaa !5
  br label %194

194:                                              ; preds = %208, %193
  %195 = load i32, ptr %22, align 4, !tbaa !5
  %196 = load i32, ptr %3, align 4, !tbaa !5
  %197 = icmp slt i32 %195, %196
  br i1 %197, label %199, label %198

198:                                              ; preds = %194
  store i32 20, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %211

199:                                              ; preds = %194
  %200 = load i32, ptr %21, align 4, !tbaa !5
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [60 x [60 x i32]], ptr %10, i64 0, i64 %201
  %203 = load i32, ptr %22, align 4, !tbaa !5
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds [60 x i32], ptr %202, i64 0, i64 %204
  %206 = load i32, ptr %205, align 4, !tbaa !5
  %207 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, i32 noundef %206)
  br label %208

208:                                              ; preds = %199
  %209 = load i32, ptr %22, align 4, !tbaa !5
  %210 = add nsw i32 %209, 1
  store i32 %210, ptr %22, align 4, !tbaa !5
  br label %194, !llvm.loop !15

211:                                              ; preds = %198
  %212 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %213

213:                                              ; preds = %211
  %214 = load i32, ptr %21, align 4, !tbaa !5
  %215 = add nsw i32 %214, 1
  store i32 %215, ptr %21, align 4, !tbaa !5
  br label %188, !llvm.loop !16

216:                                              ; preds = %192
  call void @llvm.lifetime.start.p0(i64 80, ptr %23) #7
  call void @_ZNSt5stackISt4pairIiiESt5dequeIS1_SaIS1_EEEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %23)
  %217 = getelementptr inbounds %"struct.std::pair", ptr %4, i32 0, i32 0
  %218 = load i32, ptr %217, align 4, !tbaa !17
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds [60 x [60 x i32]], ptr %10, i64 0, i64 %219
  %221 = getelementptr inbounds %"struct.std::pair", ptr %4, i32 0, i32 1
  %222 = load i32, ptr %221, align 4, !tbaa !19
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds [60 x i32], ptr %220, i64 0, i64 %223
  %225 = load i32, ptr %224, align 4, !tbaa !5
  %226 = icmp sge i32 %225, 1
  br i1 %226, label %227, label %233

227:                                              ; preds = %216
  invoke void @_ZNSt5stackISt4pairIiiESt5dequeIS1_SaIS1_EEE4pushERKS1_(ptr noundef nonnull align 8 dereferenceable(80) %23, ptr noundef nonnull align 4 dereferenceable(8) %4)
          to label %228 unwind label %229

228:                                              ; preds = %227
  br label %233

229:                                              ; preds = %227
  %230 = landingpad { ptr, i32 }
          cleanup
  %231 = extractvalue { ptr, i32 } %230, 0
  store ptr %231, ptr %24, align 8
  %232 = extractvalue { ptr, i32 } %230, 1
  store i32 %232, ptr %25, align 4
  br label %377

233:                                              ; preds = %228, %216
  call void @llvm.lifetime.start.p0(i64 3600, ptr %26) #7
  %234 = getelementptr inbounds [60 x [60 x i8]], ptr %26, i64 0, i64 0
  %235 = getelementptr inbounds [60 x i8], ptr %234, i64 0, i64 0
  %236 = getelementptr inbounds [60 x [60 x i8]], ptr %26, i64 0, i64 0
  %237 = getelementptr inbounds [60 x i8], ptr %236, i64 0, i64 0
  %238 = getelementptr inbounds i8, ptr %237, i64 3600
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #7
  store i8 0, ptr %27, align 1, !tbaa !20
  invoke void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef %235, ptr noundef %238, ptr noundef nonnull align 1 dereferenceable(1) %27)
          to label %239 unwind label %268

239:                                              ; preds = %233
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #7
  br label %240

240:                                              ; preds = %364, %239
  %241 = invoke noundef zeroext i1 @_ZNKSt5stackISt4pairIiiESt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %23)
          to label %242 unwind label %272

242:                                              ; preds = %240
  %243 = xor i1 %241, true
  br i1 %243, label %244, label %367

244:                                              ; preds = %242
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  %245 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5stackISt4pairIiiESt5dequeIS1_SaIS1_EEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %23)
          to label %246 unwind label %276

246:                                              ; preds = %244
  %247 = getelementptr inbounds %"struct.std::pair", ptr %245, i32 0, i32 0
  %248 = load i32, ptr %247, align 4, !tbaa !17
  store i32 %248, ptr %28, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  %249 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5stackISt4pairIiiESt5dequeIS1_SaIS1_EEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %23)
          to label %250 unwind label %280

250:                                              ; preds = %246
  %251 = getelementptr inbounds %"struct.std::pair", ptr %249, i32 0, i32 1
  %252 = load i32, ptr %251, align 4, !tbaa !19
  store i32 %252, ptr %29, align 4, !tbaa !5
  invoke void @_ZNSt5stackISt4pairIiiESt5dequeIS1_SaIS1_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %23)
          to label %253 unwind label %280

253:                                              ; preds = %250
  %254 = load i32, ptr %28, align 4, !tbaa !5
  %255 = getelementptr inbounds %"struct.std::pair", ptr %5, i32 0, i32 0
  %256 = load i32, ptr %255, align 4, !tbaa !17
  %257 = icmp eq i32 %254, %256
  br i1 %257, label %258, label %284

258:                                              ; preds = %253
  %259 = load i32, ptr %29, align 4, !tbaa !5
  %260 = getelementptr inbounds %"struct.std::pair", ptr %5, i32 0, i32 1
  %261 = load i32, ptr %260, align 4, !tbaa !19
  %262 = icmp eq i32 %259, %261
  br i1 %262, label %263, label %284

263:                                              ; preds = %258
  %264 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
          to label %265 unwind label %280

265:                                              ; preds = %263
  %266 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %264, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %267 unwind label %280

267:                                              ; preds = %265
  store i32 0, ptr %1, align 4
  store i32 1, ptr %17, align 4
  br label %362

268:                                              ; preds = %233
  %269 = landingpad { ptr, i32 }
          cleanup
  %270 = extractvalue { ptr, i32 } %269, 0
  store ptr %270, ptr %24, align 8
  %271 = extractvalue { ptr, i32 } %269, 1
  store i32 %271, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #7
  br label %376

272:                                              ; preds = %369, %367, %240
  %273 = landingpad { ptr, i32 }
          cleanup
  %274 = extractvalue { ptr, i32 } %273, 0
  store ptr %274, ptr %24, align 8
  %275 = extractvalue { ptr, i32 } %273, 1
  store i32 %275, ptr %25, align 4
  br label %376

276:                                              ; preds = %244
  %277 = landingpad { ptr, i32 }
          cleanup
  %278 = extractvalue { ptr, i32 } %277, 0
  store ptr %278, ptr %24, align 8
  %279 = extractvalue { ptr, i32 } %277, 1
  store i32 %279, ptr %25, align 4
  br label %366

280:                                              ; preds = %265, %263, %250, %246
  %281 = landingpad { ptr, i32 }
          cleanup
  %282 = extractvalue { ptr, i32 } %281, 0
  store ptr %282, ptr %24, align 8
  %283 = extractvalue { ptr, i32 } %281, 1
  store i32 %283, ptr %25, align 4
  br label %365

284:                                              ; preds = %258, %253
  %285 = load i32, ptr %28, align 4, !tbaa !5
  %286 = sext i32 %285 to i64
  %287 = getelementptr inbounds [60 x [60 x i8]], ptr %26, i64 0, i64 %286
  %288 = load i32, ptr %29, align 4, !tbaa !5
  %289 = sext i32 %288 to i64
  %290 = getelementptr inbounds [60 x i8], ptr %287, i64 0, i64 %289
  %291 = load i8, ptr %290, align 1, !tbaa !20, !range !22, !noundef !23
  %292 = trunc i8 %291 to i1
  br i1 %292, label %361, label %293

293:                                              ; preds = %284
  %294 = load i32, ptr %28, align 4, !tbaa !5
  %295 = sext i32 %294 to i64
  %296 = getelementptr inbounds [60 x [60 x i8]], ptr %26, i64 0, i64 %295
  %297 = load i32, ptr %29, align 4, !tbaa !5
  %298 = sext i32 %297 to i64
  %299 = getelementptr inbounds [60 x i8], ptr %296, i64 0, i64 %298
  store i8 1, ptr %299, align 1, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  store i32 0, ptr %30, align 4, !tbaa !5
  br label %300

300:                                              ; preds = %357, %293
  %301 = load i32, ptr %30, align 4, !tbaa !5
  %302 = icmp slt i32 %301, 4
  br i1 %302, label %304, label %303

303:                                              ; preds = %300
  store i32 25, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  br label %360

304:                                              ; preds = %300
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  %305 = load i32, ptr %28, align 4, !tbaa !5
  %306 = load i32, ptr %30, align 4, !tbaa !5
  %307 = sext i32 %306 to i64
  %308 = getelementptr inbounds [4 x i32], ptr @_ZL2dx, i64 0, i64 %307
  %309 = load i32, ptr %308, align 4, !tbaa !5
  %310 = add nsw i32 %305, %309
  store i32 %310, ptr %31, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  %311 = load i32, ptr %29, align 4, !tbaa !5
  %312 = load i32, ptr %30, align 4, !tbaa !5
  %313 = sext i32 %312 to i64
  %314 = getelementptr inbounds [4 x i32], ptr @_ZL2dy, i64 0, i64 %313
  %315 = load i32, ptr %314, align 4, !tbaa !5
  %316 = add nsw i32 %311, %315
  store i32 %316, ptr %32, align 4, !tbaa !5
  %317 = load i32, ptr %31, align 4, !tbaa !5
  %318 = icmp sle i32 0, %317
  br i1 %318, label %319, label %356

319:                                              ; preds = %304
  %320 = load i32, ptr %31, align 4, !tbaa !5
  %321 = load i32, ptr %2, align 4, !tbaa !5
  %322 = icmp slt i32 %320, %321
  br i1 %322, label %323, label %356

323:                                              ; preds = %319
  %324 = load i32, ptr %32, align 4, !tbaa !5
  %325 = icmp sle i32 0, %324
  br i1 %325, label %326, label %356

326:                                              ; preds = %323
  %327 = load i32, ptr %32, align 4, !tbaa !5
  %328 = load i32, ptr %3, align 4, !tbaa !5
  %329 = icmp slt i32 %327, %328
  br i1 %329, label %330, label %356

330:                                              ; preds = %326
  %331 = load i32, ptr %31, align 4, !tbaa !5
  %332 = sext i32 %331 to i64
  %333 = getelementptr inbounds [60 x [60 x i32]], ptr %10, i64 0, i64 %332
  %334 = load i32, ptr %32, align 4, !tbaa !5
  %335 = sext i32 %334 to i64
  %336 = getelementptr inbounds [60 x i32], ptr %333, i64 0, i64 %335
  %337 = load i32, ptr %336, align 4, !tbaa !5
  %338 = icmp sge i32 %337, 1
  br i1 %338, label %339, label %356

339:                                              ; preds = %330
  %340 = load i32, ptr %31, align 4, !tbaa !5
  %341 = sext i32 %340 to i64
  %342 = getelementptr inbounds [60 x [60 x i8]], ptr %26, i64 0, i64 %341
  %343 = load i32, ptr %32, align 4, !tbaa !5
  %344 = sext i32 %343 to i64
  %345 = getelementptr inbounds [60 x i8], ptr %342, i64 0, i64 %344
  %346 = load i8, ptr %345, align 1, !tbaa !20, !range !22, !noundef !23
  %347 = trunc i8 %346 to i1
  br i1 %347, label %356, label %348

348:                                              ; preds = %339
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #7
  %349 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %31, ptr noundef nonnull align 4 dereferenceable(4) %32)
          to label %350 unwind label %352

350:                                              ; preds = %348
  store i64 %349, ptr %33, align 4
  invoke void @_ZNSt5stackISt4pairIiiESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %23, ptr noundef nonnull align 4 dereferenceable(8) %33)
          to label %351 unwind label %352

351:                                              ; preds = %350
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  br label %356

352:                                              ; preds = %350, %348
  %353 = landingpad { ptr, i32 }
          cleanup
  %354 = extractvalue { ptr, i32 } %353, 0
  store ptr %354, ptr %24, align 8
  %355 = extractvalue { ptr, i32 } %353, 1
  store i32 %355, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  br label %365

356:                                              ; preds = %351, %339, %330, %326, %323, %319, %304
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  br label %357

357:                                              ; preds = %356
  %358 = load i32, ptr %30, align 4, !tbaa !5
  %359 = add nsw i32 %358, 1
  store i32 %359, ptr %30, align 4, !tbaa !5
  br label %300, !llvm.loop !24

360:                                              ; preds = %303
  br label %361

361:                                              ; preds = %360, %284
  store i32 0, ptr %17, align 4
  br label %362

362:                                              ; preds = %361, %267
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  %363 = load i32, ptr %17, align 4
  switch i32 %363, label %372 [
    i32 0, label %364
  ]

364:                                              ; preds = %362
  br label %240, !llvm.loop !25

365:                                              ; preds = %352, %280
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  br label %366

366:                                              ; preds = %365, %276
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  br label %376

367:                                              ; preds = %242
  %368 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
          to label %369 unwind label %272

369:                                              ; preds = %367
  %370 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %368, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %371 unwind label %272

371:                                              ; preds = %369
  store i32 0, ptr %17, align 4
  br label %372

372:                                              ; preds = %371, %362
  call void @llvm.lifetime.end.p0(i64 3600, ptr %26) #7
  call void @_ZNSt5stackISt4pairIiiESt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %23) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 14400, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  %373 = load i32, ptr %17, align 4
  switch i32 %373, label %383 [
    i32 0, label %374
    i32 1, label %374
  ]

374:                                              ; preds = %372, %372
  %375 = load i32, ptr %1, align 4
  ret i32 %375

376:                                              ; preds = %366, %272, %268
  call void @llvm.lifetime.end.p0(i64 3600, ptr %26) #7
  br label %377

377:                                              ; preds = %376, %229
  call void @_ZNSt5stackISt4pairIiiESt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %23) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 14400, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %378

378:                                              ; preds = %377
  %379 = load ptr, ptr %24, align 8
  %380 = load i32, ptr %25, align 4
  %381 = insertvalue { ptr, i32 } poison, ptr %379, 0
  %382 = insertvalue { ptr, i32 } %381, i32 %380, 1
  resume { ptr, i32 } %382

383:                                              ; preds = %372
  unreachable
}

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

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

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

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

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

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

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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


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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"struct.std::pair" = type { i32, i32 }
%"class.std::stack" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::pair<int, int>, std::allocator<std::pair<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 }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@_ZL2dx = external hidden local_unnamed_addr constant [4 x i32], align 16
@_ZL2dy = external hidden local_unnamed_addr constant [4 x i32], align 16
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1

; 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 %"struct.std::pair", align 4
  %4 = alloca %"struct.std::pair", align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"struct.std::pair", align 8
  %8 = alloca %"struct.std::pair", align 8
  %9 = alloca [60 x [60 x i32]], align 16
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %"class.std::stack", align 8
  %15 = alloca [60 x [60 x i8]], align 16
  %16 = alloca i8, align 1
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %"struct.std::pair", align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  %20 = 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)
  %21 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 4 dereferenceable(8) %3)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 4 dereferenceable(8) %4)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  %22 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %23 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %24 = load i32, ptr %5, align 4, !tbaa !5
  %25 = add nsw i32 %24, -1
  store i32 %25, ptr %5, align 4, !tbaa !5
  %26 = load i32, ptr %6, align 4, !tbaa !5
  %27 = add nsw i32 %26, -1
  store i32 %27, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %28 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  store i64 %28, ptr %7, align 8
  %29 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(8) %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  %30 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %31 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %32 = load i32, ptr %5, align 4, !tbaa !5
  %33 = add nsw i32 %32, -1
  store i32 %33, ptr %5, align 4, !tbaa !5
  %34 = load i32, ptr %6, align 4, !tbaa !5
  %35 = add nsw i32 %34, -1
  store i32 %35, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %36 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  store i64 %36, ptr %8, align 8
  %37 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 14400, ptr nonnull %9) #7
  %38 = getelementptr inbounds i8, ptr %9, i64 14400
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  store i32 0, ptr %10, align 4, !tbaa !5
  call void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef nonnull %9, ptr noundef nonnull %38, ptr noundef nonnull align 4 dereferenceable(4) %10)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #7
  %39 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %40 = load i32, ptr %11, align 4, !tbaa !5
  %41 = icmp sgt i32 %40, 0
  br i1 %41, label %.lr.ph, label %.preheader69

.preheader69:                                     ; preds = %.lr.ph, %0
  %42 = load i32, ptr %1, align 4, !tbaa !5
  %43 = icmp sgt i32 %42, 0
  br i1 %43, label %.preheader68.lr.ph, label %._crit_edge81

.preheader68.lr.ph:                               ; preds = %.preheader69
  %44 = load i32, ptr %2, align 4, !tbaa !5
  %45 = icmp sgt i32 %44, 1
  br i1 %45, label %.preheader68.us.preheader, label %.preheader67

.preheader68.us.preheader:                        ; preds = %.preheader68.lr.ph
  %wide.trip.count92 = zext nneg i32 %42 to i64
  %wide.trip.count = zext nneg i32 %44 to i64
  %46 = add nsw i64 %wide.trip.count, -1
  %47 = add nsw i64 %wide.trip.count, -2
  %xtraiter = and i64 %46, 3
  %48 = icmp ult i64 %47, 3
  %unroll_iter = and i64 %46, -4
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader68.us

.preheader68.us:                                  ; preds = %.preheader68.us.preheader, %._crit_edge.us
  %indvars.iv89 = phi i64 [ 0, %.preheader68.us.preheader ], [ %indvars.iv.next90, %._crit_edge.us ]
  %.phi.trans.insert = getelementptr inbounds [60 x [60 x i32]], ptr %9, i64 0, i64 %indvars.iv89, i64 0
  %.pre = load i32, ptr %.phi.trans.insert, align 16, !tbaa !5
  br i1 %48, label %._crit_edge.us.unr-lcssa, label %.preheader68.us.new

.preheader68.us.new:                              ; preds = %.preheader68.us, %.preheader68.us.new
  %49 = phi i32 [ %61, %.preheader68.us.new ], [ %.pre, %.preheader68.us ]
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %.preheader68.us.new ], [ 1, %.preheader68.us ]
  %niter = phi i64 [ %niter.next.3, %.preheader68.us.new ], [ 0, %.preheader68.us ]
  %50 = getelementptr inbounds [60 x [60 x i32]], ptr %9, i64 0, i64 %indvars.iv89, i64 %indvars.iv
  %51 = load i32, ptr %50, align 4, !tbaa !5
  %52 = add nsw i32 %51, %49
  store i32 %52, ptr %50, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %53 = getelementptr inbounds [60 x [60 x i32]], ptr %9, i64 0, i64 %indvars.iv89, i64 %indvars.iv.next
  %54 = load i32, ptr %53, align 4, !tbaa !5
  %55 = add nsw i32 %54, %52
  store i32 %55, ptr %53, align 4, !tbaa !5
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %56 = getelementptr inbounds [60 x [60 x i32]], ptr %9, i64 0, i64 %indvars.iv89, i64 %indvars.iv.next.1
  %57 = load i32, ptr %56, align 4, !tbaa !5
  %58 = add nsw i32 %57, %55
  store i32 %58, ptr %56, align 4, !tbaa !5
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %59 = getelementptr inbounds [60 x [60 x i32]], ptr %9, i64 0, i64 %indvars.iv89, i64 %indvars.iv.next.2
  %60 = load i32, ptr %59, align 4, !tbaa !5
  %61 = add nsw i32 %60, %58
  store i32 %61, ptr %59, align 4, !tbaa !5
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.us.unr-lcssa, label %.preheader68.us.new, !llvm.loop !9

._crit_edge.us.unr-lcssa:                         ; preds = %.preheader68.us.new, %.preheader68.us
  %.unr = phi i32 [ %.pre, %.preheader68.us ], [ %61, %.preheader68.us.new ]
  %indvars.iv.unr = phi i64 [ 1, %.preheader68.us ], [ %indvars.iv.next.3, %.preheader68.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.us.unr-lcssa, %.epil.preheader
  %62 = phi i32 [ %65, %.epil.preheader ], [ %.unr, %._crit_edge.us.unr-lcssa ]
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.epil.preheader ], [ %indvars.iv.unr, %._crit_edge.us.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.us.unr-lcssa ]
  %63 = getelementptr inbounds [60 x [60 x i32]], ptr %9, i64 0, i64 %indvars.iv89, i64 %indvars.iv.epil
  %64 = load i32, ptr %63, align 4, !tbaa !5
  %65 = add nsw i32 %64, %62
  store i32 %65, ptr %63, align 4, !tbaa !5
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge.us, label %.epil.preheader, !llvm.loop !11

._crit_edge.us:                                   ; preds = %.epil.preheader, %._crit_edge.us.unr-lcssa
  %indvars.iv.next90 = add nuw nsw i64 %indvars.iv89, 1
  %exitcond93.not = icmp eq i64 %indvars.iv.next90, %wide.trip.count92
  br i1 %exitcond93.not, label %.preheader67, label %.preheader68.us, !llvm.loop !13

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.04170 = phi i32 [ %96, %.lr.ph ], [ 0, %0 ]
  %66 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %67 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %66, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %68 = load i32, ptr %5, align 4, !tbaa !5
  %69 = add nsw i32 %68, -1
  store i32 %69, ptr %5, align 4, !tbaa !5
  %70 = load i32, ptr %6, align 4, !tbaa !5
  %71 = add nsw i32 %70, -1
  store i32 %71, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #7
  %72 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %73 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %72, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %74 = load i32, ptr %5, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = load i32, ptr %6, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [60 x [60 x i32]], ptr %9, i64 0, i64 %75, i64 %77
  %79 = load i32, ptr %78, align 4, !tbaa !5
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %78, align 4, !tbaa !5
  %81 = load i32, ptr %12, align 4, !tbaa !5
  %82 = add nsw i32 %81, %74
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [60 x [60 x i32]], ptr %9, i64 0, i64 %83, i64 %77
  %85 = load i32, ptr %84, align 4, !tbaa !5
  %86 = add nsw i32 %85, -1
  store i32 %86, ptr %84, align 4, !tbaa !5
  %87 = load i32, ptr %13, align 4, !tbaa !5
  %88 = add nsw i32 %87, %76
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [60 x [60 x i32]], ptr %9, i64 0, i64 %75, i64 %89
  %91 = load i32, ptr %90, align 4, !tbaa !5
  %92 = add nsw i32 %91, -1
  store i32 %92, ptr %90, align 4, !tbaa !5
  %93 = getelementptr inbounds [60 x [60 x i32]], ptr %9, i64 0, i64 %83, i64 %89
  %94 = load i32, ptr %93, align 4, !tbaa !5
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %93, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  %96 = add nuw nsw i32 %.04170, 1
  %97 = load i32, ptr %11, align 4, !tbaa !5
  %98 = icmp slt i32 %96, %97
  br i1 %98, label %.lr.ph, label %.preheader69, !llvm.loop !14

.preheader67:                                     ; preds = %._crit_edge.us, %.preheader68.lr.ph
  %.not = icmp eq i32 %42, 1
  br i1 %.not, label %.preheader65, label %.preheader66.lr.ph

.preheader66.lr.ph:                               ; preds = %.preheader67
  %99 = load i32, ptr %2, align 4, !tbaa !5
  %100 = icmp sgt i32 %99, 0
  br i1 %100, label %.preheader66.us.preheader, label %.preheader.preheader

.preheader66.us.preheader:                        ; preds = %.preheader66.lr.ph
  %wide.trip.count102 = zext nneg i32 %42 to i64
  %wide.trip.count97 = zext nneg i32 %99 to i64
  %min.iters.check = icmp ult i32 %99, 4
  %n.vec = and i64 %wide.trip.count97, 2147483644
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count97
  br label %.preheader66.us

.preheader66.us:                                  ; preds = %.preheader66.us.preheader, %._crit_edge.us77
  %indvars.iv99 = phi i64 [ 1, %.preheader66.us.preheader ], [ %indvars.iv.next100, %._crit_edge.us77 ]
  %101 = add nsw i64 %indvars.iv99, -1
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.body

vector.body:                                      ; preds = %.preheader66.us, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %.preheader66.us ]
  %102 = getelementptr inbounds [60 x [60 x i32]], ptr %9, i64 0, i64 %101, i64 %index
  %wide.load = load <4 x i32>, ptr %102, align 16, !tbaa !5
  %103 = getelementptr inbounds [60 x [60 x i32]], ptr %9, i64 0, i64 %indvars.iv99, i64 %index
  %wide.load115 = load <4 x i32>, ptr %103, align 16, !tbaa !5
  %104 = add nsw <4 x i32> %wide.load115, %wide.load
  store <4 x i32> %104, ptr %103, align 16, !tbaa !5
  %index.next = add nuw i64 %index, 4
  %105 = icmp eq i64 %index.next, %n.vec
  br i1 %105, label %middle.block, label %vector.body, !llvm.loop !15

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge.us77, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.preheader66.us
  %indvars.iv94.ph = phi i64 [ 0, %.preheader66.us ], [ %n.vec, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv94 = phi i64 [ %indvars.iv.next95, %scalar.ph ], [ %indvars.iv94.ph, %scalar.ph.preheader ]
  %106 = getelementptr inbounds [60 x [60 x i32]], ptr %9, i64 0, i64 %101, i64 %indvars.iv94
  %107 = load i32, ptr %106, align 4, !tbaa !5
  %108 = getelementptr inbounds [60 x [60 x i32]], ptr %9, i64 0, i64 %indvars.iv99, i64 %indvars.iv94
  %109 = load i32, ptr %108, align 4, !tbaa !5
  %110 = add nsw i32 %109, %107
  store i32 %110, ptr %108, align 4, !tbaa !5
  %indvars.iv.next95 = add nuw nsw i64 %indvars.iv94, 1
  %exitcond98.not = icmp eq i64 %indvars.iv.next95, %wide.trip.count97
  br i1 %exitcond98.not, label %._crit_edge.us77, label %scalar.ph, !llvm.loop !18

._crit_edge.us77:                                 ; preds = %scalar.ph, %middle.block
  %indvars.iv.next100 = add nuw nsw i64 %indvars.iv99, 1
  %exitcond103.not = icmp eq i64 %indvars.iv.next100, %wide.trip.count102
  br i1 %exitcond103.not, label %.preheader65, label %.preheader66.us, !llvm.loop !19

.preheader65:                                     ; preds = %._crit_edge.us77, %.preheader67
  br i1 %43, label %.preheader.preheader, label %._crit_edge81

.preheader.preheader:                             ; preds = %.preheader66.lr.ph, %.preheader65
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge
  %indvars.iv107 = phi i64 [ %indvars.iv.next108, %._crit_edge ], [ 0, %.preheader.preheader ]
  %111 = load i32, ptr %2, align 4, !tbaa !5
  %112 = icmp sgt i32 %111, 0
  br i1 %112, label %.lr.ph79, label %._crit_edge

._crit_edge81:                                    ; preds = %._crit_edge, %.preheader69, %.preheader65
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %14) #7
  call void @_ZNSt5stackISt4pairIiiESt5dequeIS1_SaIS1_EEEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %14)
  %113 = load i32, ptr %3, align 4, !tbaa !20
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds i8, ptr %3, i64 4
  %116 = load i32, ptr %115, align 4, !tbaa !22
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [60 x [60 x i32]], ptr %9, i64 0, i64 %114, i64 %117
  %119 = load i32, ptr %118, align 4, !tbaa !5
  %120 = icmp sgt i32 %119, 0
  br i1 %120, label %131, label %134

._crit_edge:                                      ; preds = %.lr.ph79, %.preheader
  %121 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %indvars.iv.next108 = add nuw nsw i64 %indvars.iv107, 1
  %122 = load i32, ptr %1, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = icmp slt i64 %indvars.iv.next108, %123
  br i1 %124, label %.preheader, label %._crit_edge81, !llvm.loop !23

.lr.ph79:                                         ; preds = %.preheader, %.lr.ph79
  %indvars.iv104 = phi i64 [ %indvars.iv.next105, %.lr.ph79 ], [ 0, %.preheader ]
  %125 = getelementptr inbounds [60 x [60 x i32]], ptr %9, i64 0, i64 %indvars.iv107, i64 %indvars.iv104
  %126 = load i32, ptr %125, align 4, !tbaa !5
  %127 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, i32 noundef %126)
  %indvars.iv.next105 = add nuw nsw i64 %indvars.iv104, 1
  %128 = load i32, ptr %2, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = icmp slt i64 %indvars.iv.next105, %129
  br i1 %130, label %.lr.ph79, label %._crit_edge, !llvm.loop !24

131:                                              ; preds = %._crit_edge81
  invoke void @_ZNSt5stackISt4pairIiiESt5dequeIS1_SaIS1_EEE4pushERKS1_(ptr noundef nonnull align 8 dereferenceable(80) %14, ptr noundef nonnull align 4 dereferenceable(8) %3)
          to label %134 unwind label %132

132:                                              ; preds = %131
  %133 = landingpad { ptr, i32 }
          cleanup
  br label %276

134:                                              ; preds = %131, %._crit_edge81
  call void @llvm.lifetime.start.p0(i64 3600, ptr nonnull %15) #7
  %135 = getelementptr inbounds i8, ptr %15, i64 3600
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #7
  store i8 0, ptr %16, align 1, !tbaa !25
  invoke void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef nonnull %15, ptr noundef nonnull %135, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %136 unwind label %161

136:                                              ; preds = %134
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #7
  %137 = call noundef zeroext i1 @_ZNKSt5stackISt4pairIiiESt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %14)
  br i1 %137, label %._crit_edge85, label %.lr.ph84

.lr.ph84:                                         ; preds = %136
  %138 = getelementptr inbounds i8, ptr %4, i64 4
  %139 = load i32, ptr @_ZL2dx, align 16
  %140 = load i32, ptr @_ZL2dy, align 16
  %141 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL2dx, i64 4), align 4
  %142 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL2dy, i64 4), align 4
  %143 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL2dx, i64 8), align 8
  %144 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL2dy, i64 8), align 8
  %145 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL2dx, i64 12), align 4
  %146 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL2dy, i64 12), align 4
  br label %147

147:                                              ; preds = %.lr.ph84, %.loopexit
  %148 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5stackISt4pairIiiESt5dequeIS1_SaIS1_EEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %14)
  %149 = load i32, ptr %148, align 4, !tbaa !20
  %150 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5stackISt4pairIiiESt5dequeIS1_SaIS1_EEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %14)
  %151 = getelementptr inbounds i8, ptr %150, i64 4
  %152 = load i32, ptr %151, align 4, !tbaa !22
  call void @_ZNSt5stackISt4pairIiiESt5dequeIS1_SaIS1_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %14)
  %153 = load i32, ptr %4, align 4, !tbaa !20
  %154 = icmp eq i32 %149, %153
  %155 = load i32, ptr %138, align 4
  %156 = icmp eq i32 %152, %155
  %or.cond62 = select i1 %154, i1 %156, i1 false
  br i1 %or.cond62, label %157, label %167

157:                                              ; preds = %147
  %158 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
          to label %159 unwind label %165

159:                                              ; preds = %157
  %160 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %158, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.critedge unwind label %165

161:                                              ; preds = %134
  %162 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #7
  br label %275

163:                                              ; preds = %273, %._crit_edge85
  %164 = landingpad { ptr, i32 }
          cleanup
  br label %275

165:                                              ; preds = %159, %157
  %166 = landingpad { ptr, i32 }
          cleanup
  br label %275

167:                                              ; preds = %147
  %168 = sext i32 %149 to i64
  %169 = sext i32 %152 to i64
  %170 = getelementptr inbounds [60 x [60 x i8]], ptr %15, i64 0, i64 %168, i64 %169
  %171 = load i8, ptr %170, align 1, !tbaa !25, !range !27, !noundef !28
  %172 = trunc nuw i8 %171 to i1
  br i1 %172, label %.loopexit, label %173

173:                                              ; preds = %167
  store i8 1, ptr %170, align 1, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #7
  %174 = add nsw i32 %139, %149
  store i32 %174, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #7
  %175 = add nsw i32 %140, %152
  store i32 %175, ptr %18, align 4, !tbaa !5
  %176 = icmp sgt i32 %174, -1
  br i1 %176, label %177, label %199

177:                                              ; preds = %173
  %178 = load i32, ptr %1, align 4, !tbaa !5
  %179 = icmp slt i32 %174, %178
  %180 = icmp sgt i32 %175, -1
  %or.cond = select i1 %179, i1 %180, i1 false
  %181 = load i32, ptr %2, align 4
  %182 = icmp slt i32 %175, %181
  %or.cond64 = select i1 %or.cond, i1 %182, i1 false
  br i1 %or.cond64, label %183, label %199

183:                                              ; preds = %177
  %184 = zext nneg i32 %174 to i64
  %185 = zext nneg i32 %175 to i64
  %186 = getelementptr inbounds [60 x [60 x i32]], ptr %9, i64 0, i64 %184, i64 %185
  %187 = load i32, ptr %186, align 4, !tbaa !5
  %188 = icmp sgt i32 %187, 0
  br i1 %188, label %189, label %199

189:                                              ; preds = %183
  %190 = getelementptr inbounds [60 x [60 x i8]], ptr %15, i64 0, i64 %184, i64 %185
  %191 = load i8, ptr %190, align 1, !tbaa !25, !range !27, !noundef !28
  %192 = trunc nuw i8 %191 to i1
  br i1 %192, label %199, label %193

193:                                              ; preds = %189
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #7
  %194 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %195 unwind label %197

195:                                              ; preds = %193
  store i64 %194, ptr %19, align 8
  invoke void @_ZNSt5stackISt4pairIiiESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %14, ptr noundef nonnull align 4 dereferenceable(8) %19)
          to label %196 unwind label %197

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

197:                                              ; preds = %269, %267, %245, %243, %221, %219, %195, %193
  %198 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #7
  br label %275

199:                                              ; preds = %196, %189, %183, %177, %173
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #7
  %200 = add nsw i32 %141, %149
  store i32 %200, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #7
  %201 = add nsw i32 %142, %152
  store i32 %201, ptr %18, align 4, !tbaa !5
  %202 = icmp sgt i32 %200, -1
  br i1 %202, label %203, label %223

203:                                              ; preds = %199
  %204 = load i32, ptr %1, align 4, !tbaa !5
  %205 = icmp slt i32 %200, %204
  %206 = icmp sgt i32 %201, -1
  %or.cond.1 = select i1 %205, i1 %206, i1 false
  %207 = load i32, ptr %2, align 4
  %208 = icmp slt i32 %201, %207
  %or.cond64.1 = select i1 %or.cond.1, i1 %208, i1 false
  br i1 %or.cond64.1, label %209, label %223

209:                                              ; preds = %203
  %210 = zext nneg i32 %200 to i64
  %211 = zext nneg i32 %201 to i64
  %212 = getelementptr inbounds [60 x [60 x i32]], ptr %9, i64 0, i64 %210, i64 %211
  %213 = load i32, ptr %212, align 4, !tbaa !5
  %214 = icmp sgt i32 %213, 0
  br i1 %214, label %215, label %223

215:                                              ; preds = %209
  %216 = getelementptr inbounds [60 x [60 x i8]], ptr %15, i64 0, i64 %210, i64 %211
  %217 = load i8, ptr %216, align 1, !tbaa !25, !range !27, !noundef !28
  %218 = trunc nuw i8 %217 to i1
  br i1 %218, label %223, label %219

219:                                              ; preds = %215
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #7
  %220 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %221 unwind label %197

221:                                              ; preds = %219
  store i64 %220, ptr %19, align 8
  invoke void @_ZNSt5stackISt4pairIiiESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %14, ptr noundef nonnull align 4 dereferenceable(8) %19)
          to label %222 unwind label %197

222:                                              ; preds = %221
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  br label %223

223:                                              ; preds = %222, %215, %209, %203, %199
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #7
  %224 = add nsw i32 %143, %149
  store i32 %224, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #7
  %225 = add nsw i32 %144, %152
  store i32 %225, ptr %18, align 4, !tbaa !5
  %226 = icmp sgt i32 %224, -1
  br i1 %226, label %227, label %247

227:                                              ; preds = %223
  %228 = load i32, ptr %1, align 4, !tbaa !5
  %229 = icmp slt i32 %224, %228
  %230 = icmp sgt i32 %225, -1
  %or.cond.2 = select i1 %229, i1 %230, i1 false
  %231 = load i32, ptr %2, align 4
  %232 = icmp slt i32 %225, %231
  %or.cond64.2 = select i1 %or.cond.2, i1 %232, i1 false
  br i1 %or.cond64.2, label %233, label %247

233:                                              ; preds = %227
  %234 = zext nneg i32 %224 to i64
  %235 = zext nneg i32 %225 to i64
  %236 = getelementptr inbounds [60 x [60 x i32]], ptr %9, i64 0, i64 %234, i64 %235
  %237 = load i32, ptr %236, align 4, !tbaa !5
  %238 = icmp sgt i32 %237, 0
  br i1 %238, label %239, label %247

239:                                              ; preds = %233
  %240 = getelementptr inbounds [60 x [60 x i8]], ptr %15, i64 0, i64 %234, i64 %235
  %241 = load i8, ptr %240, align 1, !tbaa !25, !range !27, !noundef !28
  %242 = trunc nuw i8 %241 to i1
  br i1 %242, label %247, label %243

243:                                              ; preds = %239
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #7
  %244 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %245 unwind label %197

245:                                              ; preds = %243
  store i64 %244, ptr %19, align 8
  invoke void @_ZNSt5stackISt4pairIiiESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %14, ptr noundef nonnull align 4 dereferenceable(8) %19)
          to label %246 unwind label %197

246:                                              ; preds = %245
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  br label %247

247:                                              ; preds = %246, %239, %233, %227, %223
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #7
  %248 = add nsw i32 %145, %149
  store i32 %248, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #7
  %249 = add nsw i32 %146, %152
  store i32 %249, ptr %18, align 4, !tbaa !5
  %250 = icmp sgt i32 %248, -1
  br i1 %250, label %251, label %.loopexit.loopexit

251:                                              ; preds = %247
  %252 = load i32, ptr %1, align 4, !tbaa !5
  %253 = icmp slt i32 %248, %252
  %254 = icmp sgt i32 %249, -1
  %or.cond.3 = select i1 %253, i1 %254, i1 false
  %255 = load i32, ptr %2, align 4
  %256 = icmp slt i32 %249, %255
  %or.cond64.3 = select i1 %or.cond.3, i1 %256, i1 false
  br i1 %or.cond64.3, label %257, label %.loopexit.loopexit

257:                                              ; preds = %251
  %258 = zext nneg i32 %248 to i64
  %259 = zext nneg i32 %249 to i64
  %260 = getelementptr inbounds [60 x [60 x i32]], ptr %9, i64 0, i64 %258, i64 %259
  %261 = load i32, ptr %260, align 4, !tbaa !5
  %262 = icmp sgt i32 %261, 0
  br i1 %262, label %263, label %.loopexit.loopexit

263:                                              ; preds = %257
  %264 = getelementptr inbounds [60 x [60 x i8]], ptr %15, i64 0, i64 %258, i64 %259
  %265 = load i8, ptr %264, align 1, !tbaa !25, !range !27, !noundef !28
  %266 = trunc nuw i8 %265 to i1
  br i1 %266, label %.loopexit.loopexit, label %267

267:                                              ; preds = %263
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #7
  %268 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %269 unwind label %197

269:                                              ; preds = %267
  store i64 %268, ptr %19, align 8
  invoke void @_ZNSt5stackISt4pairIiiESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %14, ptr noundef nonnull align 4 dereferenceable(8) %19)
          to label %270 unwind label %197

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

.loopexit.loopexit:                               ; preds = %270, %263, %257, %251, %247
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #7
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %167
  %271 = call noundef zeroext i1 @_ZNKSt5stackISt4pairIiiESt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %14)
  br i1 %271, label %._crit_edge85, label %147, !llvm.loop !29

._crit_edge85:                                    ; preds = %.loopexit, %136
  %272 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.1)
          to label %273 unwind label %163

273:                                              ; preds = %._crit_edge85
  %274 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %272, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.critedge unwind label %163

.critedge:                                        ; preds = %159, %273
  call void @llvm.lifetime.end.p0(i64 3600, ptr nonnull %15) #7
  call void @_ZNSt5stackISt4pairIiiESt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %14) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 14400, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret i32 0

275:                                              ; preds = %165, %197, %163, %161
  %.pn.pn = phi { ptr, i32 } [ %164, %163 ], [ %162, %161 ], [ %166, %165 ], [ %198, %197 ]
  call void @llvm.lifetime.end.p0(i64 3600, ptr nonnull %15) #7
  br label %276

276:                                              ; preds = %275, %132
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %275 ], [ %133, %132 ]
  call void @_ZNSt5stackISt4pairIiiESt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %14) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 14400, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn.pn.pn
}

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

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

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

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

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

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

; Function Attrs: 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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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


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