; LLVM IR from eyangch/competitive-programming :: USACOcontests/gold/2015.12 (feast)

; 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 { i64, i64 }

@T = external dso_local global i64, align 8
@A = external dso_local global i64, align 8
@B = external dso_local global i64, align 8
@_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 nounwind uwtable
declare dso_local noundef zeroext i1 @_Z8lessThanSt4pairIxxES0_(i64, i64, i64, i64) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 {
  %1 = alloca i32, align 4
  %2 = alloca i8, align 1
  %3 = alloca i8, align 1
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca %"struct.std::pair", align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"struct.std::pair", align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"struct.std::pair", align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %"struct.std::pair", align 8
  %17 = alloca %"struct.std::pair", align 8
  %18 = alloca %"struct.std::pair", align 8
  %19 = alloca %"struct.std::pair", align 8
  %20 = alloca %"struct.std::pair", align 8
  %21 = alloca %"struct.std::pair", align 8
  %22 = alloca i64, align 8
  %23 = alloca %"struct.std::pair", align 8
  %24 = alloca i64, align 8
  %25 = alloca %"struct.std::pair", align 8
  %26 = alloca %"struct.std::pair", align 8
  %27 = alloca i64, align 8
  %28 = alloca %"struct.std::pair", align 8
  %29 = alloca i64, align 8
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %32 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %33 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %34 = getelementptr i8, ptr %33, i64 -24
  %35 = load i64, ptr %34, align 8
  %36 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %35
  %37 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %36, ptr noundef null)
  %38 = load ptr, ptr @stdin, align 8, !tbaa !8
  %39 = call ptr @freopen(ptr noundef @.str, ptr noundef @.str.1, ptr noundef %38)
  %40 = load ptr, ptr @stdout, align 8, !tbaa !8
  %41 = call ptr @freopen(ptr noundef @.str.2, ptr noundef @.str.3, ptr noundef %40)
  %42 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @T)
  %43 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %42, ptr noundef nonnull align 8 dereferenceable(8) @A)
  %44 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %43, ptr noundef nonnull align 8 dereferenceable(8) @B)
  %45 = load i64, ptr @T, align 8, !tbaa !11
  %46 = mul nsw i64 %45, 2
  store i64 %46, ptr @T, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %2) #9
  %47 = load i64, ptr @A, align 8, !tbaa !11
  %48 = srem i64 %47, 2
  %49 = icmp ne i64 %48, 0
  %50 = zext i1 %49 to i8
  store i8 %50, ptr %2, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %3) #9
  %51 = load i64, ptr @B, align 8, !tbaa !11
  %52 = srem i64 %51, 2
  %53 = icmp ne i64 %52, 0
  %54 = zext i1 %53 to i8
  store i8 %54, ptr %3, align 1, !tbaa !13
  %55 = load i64, ptr @T, align 8, !tbaa !11
  %56 = mul nsw i64 2, %55
  %57 = add nsw i64 %56, 2
  %58 = call ptr @llvm.stacksave.p0()
  store ptr %58, ptr %4, align 8
  %59 = alloca %"struct.std::pair", i64 %57, align 16
  store i64 %57, ptr %5, align 8
  %60 = icmp eq i64 %57, 0
  br i1 %60, label %67, label %61

61:                                               ; preds = %0
  %62 = getelementptr inbounds %"struct.std::pair", ptr %59, i64 %57
  br label %63

63:                                               ; preds = %63, %61
  %64 = phi ptr [ %59, %61 ], [ %65, %63 ]
  call void @_ZNSt4pairIxxEC2IxxTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 8 dereferenceable(16) %64)
  %65 = getelementptr inbounds %"struct.std::pair", ptr %64, i64 1
  %66 = icmp eq ptr %65, %62
  br i1 %66, label %67, label %63

67:                                               ; preds = %63, %0
  %68 = load i64, ptr @T, align 8, !tbaa !11
  %69 = mul nsw i64 2, %68
  %70 = getelementptr inbounds %"struct.std::pair", ptr %59, i64 %69
  %71 = getelementptr inbounds %"struct.std::pair", ptr %70, i64 2
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  store i32 2147483647, ptr %7, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #9
  store i32 2147483647, ptr %8, align 4, !tbaa !15
  call void @_ZNSt4pairIxxEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  call void @_ZSt4fillIPSt4pairIxxES1_EvT_S3_RKT0_(ptr noundef %59, ptr noundef %71, ptr noundef nonnull align 8 dereferenceable(16) %6)
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #9
  store i32 0, ptr %10, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  store i32 0, ptr %11, align 4, !tbaa !15
  call void @_ZNSt4pairIxxEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %72 = getelementptr inbounds %"struct.std::pair", ptr %59, i64 0
  %73 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %72, ptr noundef nonnull align 8 dereferenceable(16) %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #9
  store i32 0, ptr %12, align 4, !tbaa !15
  br label %74

74:                                               ; preds = %352, %67
  %75 = load i32, ptr %12, align 4, !tbaa !15
  %76 = sext i32 %75 to i64
  %77 = load i64, ptr @T, align 8, !tbaa !11
  %78 = mul nsw i64 2, %77
  %79 = icmp sle i64 %76, %78
  br i1 %79, label %81, label %80

80:                                               ; preds = %74
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  br label %355

81:                                               ; preds = %74
  %82 = load i32, ptr %12, align 4, !tbaa !15
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds %"struct.std::pair", ptr %59, i64 %83
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #9
  store i32 2147483647, ptr %14, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #9
  store i32 2147483647, ptr %15, align 4, !tbaa !15
  call void @_ZNSt4pairIxxEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %15)
  %85 = call noundef zeroext i1 @_ZSteqIxxEbRKSt4pairIT_T0_ES5_(ptr noundef nonnull align 8 dereferenceable(16) %84, ptr noundef nonnull align 8 dereferenceable(16) %13)
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #9
  br i1 %85, label %86, label %87

86:                                               ; preds = %81
  br label %352

87:                                               ; preds = %81
  %88 = load i32, ptr %12, align 4, !tbaa !15
  %89 = sext i32 %88 to i64
  %90 = load i64, ptr @A, align 8, !tbaa !11
  %91 = mul nsw i64 2, %90
  %92 = add nsw i64 %89, %91
  %93 = load i64, ptr @T, align 8, !tbaa !11
  %94 = add nsw i64 %93, 1
  %95 = icmp sle i64 %92, %94
  br i1 %95, label %96, label %157

96:                                               ; preds = %87
  %97 = load i32, ptr %12, align 4, !tbaa !15
  %98 = sext i32 %97 to i64
  %99 = load i64, ptr @A, align 8, !tbaa !11
  %100 = mul nsw i64 2, %99
  %101 = add nsw i64 %98, %100
  %102 = getelementptr inbounds %"struct.std::pair", ptr %59, i64 %101
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 16 %102, i64 16, i1 false)
  %103 = load i32, ptr %12, align 4, !tbaa !15
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds %"struct.std::pair", ptr %59, i64 %104
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 16 %105, i64 16, i1 false)
  %106 = getelementptr inbounds { i64, i64 }, ptr %16, i32 0, i32 0
  %107 = load i64, ptr %106, align 8
  %108 = getelementptr inbounds { i64, i64 }, ptr %16, i32 0, i32 1
  %109 = load i64, ptr %108, align 8
  %110 = getelementptr inbounds { i64, i64 }, ptr %17, i32 0, i32 0
  %111 = load i64, ptr %110, align 8
  %112 = getelementptr inbounds { i64, i64 }, ptr %17, i32 0, i32 1
  %113 = load i64, ptr %112, align 8
  %114 = call noundef zeroext i1 @_Z8lessThanSt4pairIxxES0_(i64 %107, i64 %109, i64 %111, i64 %113)
  br i1 %114, label %115, label %157

115:                                              ; preds = %96
  %116 = load i32, ptr %12, align 4, !tbaa !15
  %117 = sext i32 %116 to i64
  %118 = load i64, ptr @A, align 8, !tbaa !11
  %119 = mul nsw i64 2, %118
  %120 = add nsw i64 %117, %119
  %121 = load i64, ptr @T, align 8, !tbaa !11
  %122 = add nsw i64 %121, 1
  %123 = icmp ne i64 %120, %122
  br i1 %123, label %145, label %124

124:                                              ; preds = %115
  %125 = load i8, ptr %2, align 1, !tbaa !13, !range !17, !noundef !18
  %126 = trunc i8 %125 to i1
  %127 = zext i1 %126 to i64
  %128 = load i32, ptr %12, align 4, !tbaa !15
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds %"struct.std::pair", ptr %59, i64 %129
  %131 = getelementptr inbounds %"struct.std::pair", ptr %130, i32 0, i32 0
  %132 = load i64, ptr %131, align 16, !tbaa !19
  %133 = mul nsw i64 %127, %132
  %134 = load i8, ptr %3, align 1, !tbaa !13, !range !17, !noundef !18
  %135 = trunc i8 %134 to i1
  %136 = zext i1 %135 to i64
  %137 = load i32, ptr %12, align 4, !tbaa !15
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds %"struct.std::pair", ptr %59, i64 %138
  %140 = getelementptr inbounds %"struct.std::pair", ptr %139, i32 0, i32 1
  %141 = load i64, ptr %140, align 8, !tbaa !21
  %142 = mul nsw i64 %136, %141
  %143 = add nsw i64 %133, %142
  %144 = icmp sgt i64 %143, 0
  br i1 %144, label %145, label %156

145:                                              ; preds = %124, %115
  %146 = load i32, ptr %12, align 4, !tbaa !15
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds %"struct.std::pair", ptr %59, i64 %147
  %149 = load i32, ptr %12, align 4, !tbaa !15
  %150 = sext i32 %149 to i64
  %151 = load i64, ptr @A, align 8, !tbaa !11
  %152 = mul nsw i64 2, %151
  %153 = add nsw i64 %150, %152
  %154 = getelementptr inbounds %"struct.std::pair", ptr %59, i64 %153
  %155 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %154, ptr noundef nonnull align 8 dereferenceable(16) %148)
  br label %156

156:                                              ; preds = %145, %124
  br label %157

157:                                              ; preds = %156, %96, %87
  %158 = load i32, ptr %12, align 4, !tbaa !15
  %159 = sext i32 %158 to i64
  %160 = load i64, ptr @B, align 8, !tbaa !11
  %161 = mul nsw i64 2, %160
  %162 = add nsw i64 %159, %161
  %163 = load i64, ptr @T, align 8, !tbaa !11
  %164 = add nsw i64 %163, 1
  %165 = icmp sle i64 %162, %164
  br i1 %165, label %166, label %227

166:                                              ; preds = %157
  %167 = load i32, ptr %12, align 4, !tbaa !15
  %168 = sext i32 %167 to i64
  %169 = load i64, ptr @B, align 8, !tbaa !11
  %170 = mul nsw i64 2, %169
  %171 = add nsw i64 %168, %170
  %172 = getelementptr inbounds %"struct.std::pair", ptr %59, i64 %171
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 16 %172, i64 16, i1 false)
  %173 = load i32, ptr %12, align 4, !tbaa !15
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds %"struct.std::pair", ptr %59, i64 %174
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 16 %175, i64 16, i1 false)
  %176 = getelementptr inbounds { i64, i64 }, ptr %18, i32 0, i32 0
  %177 = load i64, ptr %176, align 8
  %178 = getelementptr inbounds { i64, i64 }, ptr %18, i32 0, i32 1
  %179 = load i64, ptr %178, align 8
  %180 = getelementptr inbounds { i64, i64 }, ptr %19, i32 0, i32 0
  %181 = load i64, ptr %180, align 8
  %182 = getelementptr inbounds { i64, i64 }, ptr %19, i32 0, i32 1
  %183 = load i64, ptr %182, align 8
  %184 = call noundef zeroext i1 @_Z8lessThanSt4pairIxxES0_(i64 %177, i64 %179, i64 %181, i64 %183)
  br i1 %184, label %185, label %227

185:                                              ; preds = %166
  %186 = load i32, ptr %12, align 4, !tbaa !15
  %187 = sext i32 %186 to i64
  %188 = load i64, ptr @B, align 8, !tbaa !11
  %189 = mul nsw i64 2, %188
  %190 = add nsw i64 %187, %189
  %191 = load i64, ptr @T, align 8, !tbaa !11
  %192 = add nsw i64 %191, 1
  %193 = icmp ne i64 %190, %192
  br i1 %193, label %215, label %194

194:                                              ; preds = %185
  %195 = load i8, ptr %2, align 1, !tbaa !13, !range !17, !noundef !18
  %196 = trunc i8 %195 to i1
  %197 = zext i1 %196 to i64
  %198 = load i32, ptr %12, align 4, !tbaa !15
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds %"struct.std::pair", ptr %59, i64 %199
  %201 = getelementptr inbounds %"struct.std::pair", ptr %200, i32 0, i32 0
  %202 = load i64, ptr %201, align 16, !tbaa !19
  %203 = mul nsw i64 %197, %202
  %204 = load i8, ptr %3, align 1, !tbaa !13, !range !17, !noundef !18
  %205 = trunc i8 %204 to i1
  %206 = zext i1 %205 to i64
  %207 = load i32, ptr %12, align 4, !tbaa !15
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds %"struct.std::pair", ptr %59, i64 %208
  %210 = getelementptr inbounds %"struct.std::pair", ptr %209, i32 0, i32 1
  %211 = load i64, ptr %210, align 8, !tbaa !21
  %212 = mul nsw i64 %206, %211
  %213 = add nsw i64 %203, %212
  %214 = icmp sgt i64 %213, 0
  br i1 %214, label %215, label %226

215:                                              ; preds = %194, %185
  %216 = load i32, ptr %12, align 4, !tbaa !15
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds %"struct.std::pair", ptr %59, i64 %217
  %219 = load i32, ptr %12, align 4, !tbaa !15
  %220 = sext i32 %219 to i64
  %221 = load i64, ptr @B, align 8, !tbaa !11
  %222 = mul nsw i64 2, %221
  %223 = add nsw i64 %220, %222
  %224 = getelementptr inbounds %"struct.std::pair", ptr %59, i64 %223
  %225 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %224, ptr noundef nonnull align 8 dereferenceable(16) %218)
  br label %226

226:                                              ; preds = %215, %194
  br label %227

227:                                              ; preds = %226, %166, %157
  %228 = load i32, ptr %12, align 4, !tbaa !15
  %229 = sext i32 %228 to i64
  %230 = load i64, ptr @B, align 8, !tbaa !11
  %231 = add nsw i64 %229, %230
  %232 = load i64, ptr @T, align 8, !tbaa !11
  %233 = add nsw i64 %232, 1
  %234 = icmp sle i64 %231, %233
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #9
  br i1 %234, label %235, label %265

235:                                              ; preds = %227
  %236 = load i32, ptr %12, align 4, !tbaa !15
  %237 = sext i32 %236 to i64
  %238 = load i64, ptr @B, align 8, !tbaa !11
  %239 = add nsw i64 %237, %238
  %240 = getelementptr inbounds %"struct.std::pair", ptr %59, i64 %239
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 16 %240, i64 16, i1 false)
  %241 = load i32, ptr %12, align 4, !tbaa !15
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds %"struct.std::pair", ptr %59, i64 %242
  %244 = getelementptr inbounds %"struct.std::pair", ptr %243, i32 0, i32 0
  %245 = load i32, ptr %12, align 4, !tbaa !15
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds %"struct.std::pair", ptr %59, i64 %246
  %248 = getelementptr inbounds %"struct.std::pair", ptr %247, i32 0, i32 1
  %249 = load i64, ptr %248, align 8, !tbaa !21
  %250 = add nsw i64 %249, 1
  store i64 %250, ptr %22, align 8, !tbaa !11
  %251 = call { i64, i64 } @_ZSt9make_pairIRxxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %244, ptr noundef nonnull align 8 dereferenceable(8) %22)
  %252 = getelementptr inbounds { i64, i64 }, ptr %21, i32 0, i32 0
  %253 = extractvalue { i64, i64 } %251, 0
  store i64 %253, ptr %252, align 8
  %254 = getelementptr inbounds { i64, i64 }, ptr %21, i32 0, i32 1
  %255 = extractvalue { i64, i64 } %251, 1
  store i64 %255, ptr %254, align 8
  %256 = getelementptr inbounds { i64, i64 }, ptr %20, i32 0, i32 0
  %257 = load i64, ptr %256, align 8
  %258 = getelementptr inbounds { i64, i64 }, ptr %20, i32 0, i32 1
  %259 = load i64, ptr %258, align 8
  %260 = getelementptr inbounds { i64, i64 }, ptr %21, i32 0, i32 0
  %261 = load i64, ptr %260, align 8
  %262 = getelementptr inbounds { i64, i64 }, ptr %21, i32 0, i32 1
  %263 = load i64, ptr %262, align 8
  %264 = call noundef zeroext i1 @_Z8lessThanSt4pairIxxES0_(i64 %257, i64 %259, i64 %261, i64 %263)
  br label %265

265:                                              ; preds = %235, %227
  %266 = phi i1 [ false, %227 ], [ %264, %235 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  br i1 %266, label %267, label %289

267:                                              ; preds = %265
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #9
  %268 = load i32, ptr %12, align 4, !tbaa !15
  %269 = sext i32 %268 to i64
  %270 = getelementptr inbounds %"struct.std::pair", ptr %59, i64 %269
  %271 = getelementptr inbounds %"struct.std::pair", ptr %270, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #9
  %272 = load i32, ptr %12, align 4, !tbaa !15
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds %"struct.std::pair", ptr %59, i64 %273
  %275 = getelementptr inbounds %"struct.std::pair", ptr %274, i32 0, i32 1
  %276 = load i64, ptr %275, align 8, !tbaa !21
  %277 = add nsw i64 %276, 1
  store i64 %277, ptr %24, align 8, !tbaa !11
  %278 = call { i64, i64 } @_ZSt9make_pairIRxxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %271, ptr noundef nonnull align 8 dereferenceable(8) %24)
  %279 = getelementptr inbounds { i64, i64 }, ptr %23, i32 0, i32 0
  %280 = extractvalue { i64, i64 } %278, 0
  store i64 %280, ptr %279, align 8
  %281 = getelementptr inbounds { i64, i64 }, ptr %23, i32 0, i32 1
  %282 = extractvalue { i64, i64 } %278, 1
  store i64 %282, ptr %281, align 8
  %283 = load i32, ptr %12, align 4, !tbaa !15
  %284 = sext i32 %283 to i64
  %285 = load i64, ptr @B, align 8, !tbaa !11
  %286 = add nsw i64 %284, %285
  %287 = getelementptr inbounds %"struct.std::pair", ptr %59, i64 %286
  %288 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %287, ptr noundef nonnull align 8 dereferenceable(16) %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #9
  br label %289

289:                                              ; preds = %267, %265
  %290 = load i32, ptr %12, align 4, !tbaa !15
  %291 = sext i32 %290 to i64
  %292 = load i64, ptr @A, align 8, !tbaa !11
  %293 = add nsw i64 %291, %292
  %294 = load i64, ptr @T, align 8, !tbaa !11
  %295 = add nsw i64 %294, 1
  %296 = icmp sle i64 %293, %295
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #9
  br i1 %296, label %297, label %327

297:                                              ; preds = %289
  %298 = load i32, ptr %12, align 4, !tbaa !15
  %299 = sext i32 %298 to i64
  %300 = load i64, ptr @A, align 8, !tbaa !11
  %301 = add nsw i64 %299, %300
  %302 = getelementptr inbounds %"struct.std::pair", ptr %59, i64 %301
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 16 %302, i64 16, i1 false)
  %303 = load i32, ptr %12, align 4, !tbaa !15
  %304 = sext i32 %303 to i64
  %305 = getelementptr inbounds %"struct.std::pair", ptr %59, i64 %304
  %306 = getelementptr inbounds %"struct.std::pair", ptr %305, i32 0, i32 0
  %307 = load i64, ptr %306, align 16, !tbaa !19
  %308 = add nsw i64 %307, 1
  store i64 %308, ptr %27, align 8, !tbaa !11
  %309 = load i32, ptr %12, align 4, !tbaa !15
  %310 = sext i32 %309 to i64
  %311 = getelementptr inbounds %"struct.std::pair", ptr %59, i64 %310
  %312 = getelementptr inbounds %"struct.std::pair", ptr %311, i32 0, i32 1
  %313 = call { i64, i64 } @_ZSt9make_pairIxRxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %312)
  %314 = getelementptr inbounds { i64, i64 }, ptr %26, i32 0, i32 0
  %315 = extractvalue { i64, i64 } %313, 0
  store i64 %315, ptr %314, align 8
  %316 = getelementptr inbounds { i64, i64 }, ptr %26, i32 0, i32 1
  %317 = extractvalue { i64, i64 } %313, 1
  store i64 %317, ptr %316, align 8
  %318 = getelementptr inbounds { i64, i64 }, ptr %25, i32 0, i32 0
  %319 = load i64, ptr %318, align 8
  %320 = getelementptr inbounds { i64, i64 }, ptr %25, i32 0, i32 1
  %321 = load i64, ptr %320, align 8
  %322 = getelementptr inbounds { i64, i64 }, ptr %26, i32 0, i32 0
  %323 = load i64, ptr %322, align 8
  %324 = getelementptr inbounds { i64, i64 }, ptr %26, i32 0, i32 1
  %325 = load i64, ptr %324, align 8
  %326 = call noundef zeroext i1 @_Z8lessThanSt4pairIxxES0_(i64 %319, i64 %321, i64 %323, i64 %325)
  br label %327

327:                                              ; preds = %297, %289
  %328 = phi i1 [ false, %289 ], [ %326, %297 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  br i1 %328, label %329, label %351

329:                                              ; preds = %327
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #9
  %330 = load i32, ptr %12, align 4, !tbaa !15
  %331 = sext i32 %330 to i64
  %332 = getelementptr inbounds %"struct.std::pair", ptr %59, i64 %331
  %333 = getelementptr inbounds %"struct.std::pair", ptr %332, i32 0, i32 0
  %334 = load i64, ptr %333, align 16, !tbaa !19
  %335 = add nsw i64 %334, 1
  store i64 %335, ptr %29, align 8, !tbaa !11
  %336 = load i32, ptr %12, align 4, !tbaa !15
  %337 = sext i32 %336 to i64
  %338 = getelementptr inbounds %"struct.std::pair", ptr %59, i64 %337
  %339 = getelementptr inbounds %"struct.std::pair", ptr %338, i32 0, i32 1
  %340 = call { i64, i64 } @_ZSt9make_pairIxRxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %339)
  %341 = getelementptr inbounds { i64, i64 }, ptr %28, i32 0, i32 0
  %342 = extractvalue { i64, i64 } %340, 0
  store i64 %342, ptr %341, align 8
  %343 = getelementptr inbounds { i64, i64 }, ptr %28, i32 0, i32 1
  %344 = extractvalue { i64, i64 } %340, 1
  store i64 %344, ptr %343, align 8
  %345 = load i32, ptr %12, align 4, !tbaa !15
  %346 = sext i32 %345 to i64
  %347 = load i64, ptr @A, align 8, !tbaa !11
  %348 = add nsw i64 %346, %347
  %349 = getelementptr inbounds %"struct.std::pair", ptr %59, i64 %348
  %350 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %349, ptr noundef nonnull align 8 dereferenceable(16) %28) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #9
  br label %351

351:                                              ; preds = %329, %327
  br label %352

352:                                              ; preds = %351, %86
  %353 = load i32, ptr %12, align 4, !tbaa !15
  %354 = add nsw i32 %353, 1
  store i32 %354, ptr %12, align 4, !tbaa !15
  br label %74, !llvm.loop !22

355:                                              ; preds = %80
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #9
  %356 = load i64, ptr @T, align 8, !tbaa !11
  %357 = add nsw i64 %356, 1
  %358 = trunc i64 %357 to i32
  store i32 %358, ptr %30, align 4, !tbaa !15
  br label %359

359:                                              ; preds = %388, %355
  %360 = load i32, ptr %30, align 4, !tbaa !15
  %361 = icmp sge i32 %360, 0
  br i1 %361, label %363, label %362

362:                                              ; preds = %359
  store i32 5, ptr %31, align 4
  br label %391

363:                                              ; preds = %359
  %364 = load i64, ptr @A, align 8, !tbaa !11
  %365 = load i32, ptr %30, align 4, !tbaa !15
  %366 = sext i32 %365 to i64
  %367 = getelementptr inbounds %"struct.std::pair", ptr %59, i64 %366
  %368 = getelementptr inbounds %"struct.std::pair", ptr %367, i32 0, i32 0
  %369 = load i64, ptr %368, align 16, !tbaa !19
  %370 = mul nsw i64 %364, %369
  %371 = load i64, ptr @B, align 8, !tbaa !11
  %372 = load i32, ptr %30, align 4, !tbaa !15
  %373 = sext i32 %372 to i64
  %374 = getelementptr inbounds %"struct.std::pair", ptr %59, i64 %373
  %375 = getelementptr inbounds %"struct.std::pair", ptr %374, i32 0, i32 1
  %376 = load i64, ptr %375, align 8, !tbaa !21
  %377 = mul nsw i64 %371, %376
  %378 = add nsw i64 %370, %377
  %379 = load i64, ptr @T, align 8, !tbaa !11
  %380 = sdiv i64 %379, 2
  %381 = icmp sle i64 %378, %380
  br i1 %381, label %382, label %387

382:                                              ; preds = %363
  %383 = load i32, ptr %30, align 4, !tbaa !15
  %384 = sdiv i32 %383, 2
  %385 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %384)
  %386 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %385, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 5, ptr %31, align 4
  br label %391

387:                                              ; preds = %363
  br label %388

388:                                              ; preds = %387
  %389 = load i32, ptr %30, align 4, !tbaa !15
  %390 = add nsw i32 %389, -1
  store i32 %390, ptr %30, align 4, !tbaa !15
  br label %359, !llvm.loop !24

391:                                              ; preds = %382, %362
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  br label %392

392:                                              ; preds = %391
  store i32 0, ptr %1, align 4
  store i32 1, ptr %31, align 4
  %393 = load ptr, ptr %4, align 8
  call void @llvm.stackrestore.p0(ptr %393)
  call void @llvm.lifetime.end.p0(i64 1, ptr %3) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %2) #9
  %394 = load i32, ptr %1, align 4
  ret i32 %394
}

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

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPSt4pairIxxES1_EvT_S3_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(16)) #6

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

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

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

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

; 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 nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSERKS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_ZSt9make_pairIRxxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_ZSt9make_pairIxRxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

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) #3 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)) #6

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

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


; 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 { i64, i64 }

@T = external dso_local global i64, align 8
@A = external dso_local global i64, align 8
@B = external dso_local global i64, align 8
@_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 nounwind uwtable
declare dso_local noundef zeroext i1 @_Z8lessThanSt4pairIxxES0_(i64, i64, i64, i64) local_unnamed_addr #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = alloca %"struct.std::pair", align 8
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %"struct.std::pair", align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"struct.std::pair", align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  %11 = alloca %"struct.std::pair", align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca %"struct.std::pair", align 8
  %15 = alloca i64, align 8
  %16 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %17 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %18 = getelementptr i8, ptr %17, i64 -24
  %19 = load i64, ptr %18, align 8
  %20 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %19
  %21 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %20, ptr noundef null)
  %22 = load ptr, ptr @stdin, align 8, !tbaa !8
  %23 = tail call ptr @freopen(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef %22)
  %24 = load ptr, ptr @stdout, align 8, !tbaa !8
  %25 = tail call ptr @freopen(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, ptr noundef %24)
  %26 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @T)
  %27 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 8 dereferenceable(8) @A)
  %28 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(8) @B)
  %29 = load i64, ptr @T, align 8, !tbaa !11
  %30 = shl nsw i64 %29, 1
  store i64 %30, ptr @T, align 8, !tbaa !11
  %31 = load i64, ptr @A, align 8, !tbaa !11
  %32 = load i64, ptr @B, align 8, !tbaa !11
  %33 = shl nsw i64 %29, 2
  %34 = or disjoint i64 %33, 2
  %35 = alloca %"struct.std::pair", i64 %34, align 16
  %36 = getelementptr inbounds %"struct.std::pair", ptr %35, i64 %34
  br label %37

37:                                               ; preds = %37, %0
  %38 = phi ptr [ %35, %0 ], [ %39, %37 ]
  call void @_ZNSt4pairIxxEC2IxxTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 8 dereferenceable(16) %38)
  %39 = getelementptr inbounds i8, ptr %38, i64 16
  %40 = icmp eq ptr %39, %36
  br i1 %40, label %41, label %37

41:                                               ; preds = %37
  %42 = and i64 %31, 1
  %43 = and i64 %32, 1
  %44 = load i64, ptr @T, align 8, !tbaa !11
  %.idx = shl nsw i64 %44, 5
  %45 = getelementptr inbounds i8, ptr %35, i64 %.idx
  %46 = getelementptr inbounds i8, ptr %45, i64 32
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  store i32 2147483647, ptr %2, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  store i32 2147483647, ptr %3, align 4, !tbaa !13
  call void @_ZNSt4pairIxxEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @_ZSt4fillIPSt4pairIxxES1_EvT_S3_RKT0_(ptr noundef nonnull %35, ptr noundef nonnull %46, ptr noundef nonnull align 8 dereferenceable(16) %1)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  store i32 0, ptr %5, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  store i32 0, ptr %6, align 4, !tbaa !13
  call void @_ZNSt4pairIxxEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %47 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %35, ptr noundef nonnull align 8 dereferenceable(16) %4) #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 16, ptr nonnull %4) #7
  %48 = load i64, ptr @T, align 8, !tbaa !11
  %.not73 = icmp slt i64 %48, 0
  br i1 %.not73, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %41
  %49 = getelementptr inbounds i8, ptr %11, i64 8
  %50 = getelementptr inbounds i8, ptr %14, i64 8
  br label %57

._crit_edge:                                      ; preds = %159, %41
  %.lcssa = phi i64 [ %48, %41 ], [ %160, %159 ]
  %51 = trunc i64 %.lcssa to i32
  %52 = add i32 %51, 1
  %53 = icmp sgt i32 %52, -1
  br i1 %53, label %.lr.ph77, label %.loopexit

.lr.ph77:                                         ; preds = %._crit_edge
  %54 = load i64, ptr @A, align 8, !tbaa !11
  %55 = load i64, ptr @B, align 8, !tbaa !11
  %56 = sdiv i64 %.lcssa, 2
  br label %162

57:                                               ; preds = %.lr.ph, %159
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %159 ]
  %58 = getelementptr inbounds %"struct.std::pair", ptr %35, i64 %indvars.iv
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  store i32 2147483647, ptr %8, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  store i32 2147483647, ptr %9, align 4, !tbaa !13
  call void @_ZNSt4pairIxxEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %59 = call noundef zeroext i1 @_ZSteqIxxEbRKSt4pairIT_T0_ES5_(ptr noundef nonnull align 8 dereferenceable(16) %58, ptr noundef nonnull align 8 dereferenceable(16) %7)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  br i1 %59, label %159, label %60

60:                                               ; preds = %57
  %61 = load i64, ptr @A, align 8, !tbaa !11
  %62 = shl nsw i64 %61, 1
  %63 = add nsw i64 %62, %indvars.iv
  %64 = load i64, ptr @T, align 8, !tbaa !11
  %65 = add nsw i64 %64, 1
  %.not64 = icmp sgt i64 %63, %65
  br i1 %.not64, label %85, label %66

66:                                               ; preds = %60
  %67 = getelementptr inbounds %"struct.std::pair", ptr %35, i64 %63
  %.sroa.019.0.copyload = load i64, ptr %67, align 16
  %.sroa.220.0..sroa_idx = getelementptr inbounds i8, ptr %67, i64 8
  %.sroa.220.0.copyload = load i64, ptr %.sroa.220.0..sroa_idx, align 8
  %.sroa.017.0.copyload = load i64, ptr %58, align 16
  %.sroa.218.0..sroa_idx = getelementptr inbounds i8, ptr %58, i64 8
  %.sroa.218.0.copyload = load i64, ptr %.sroa.218.0..sroa_idx, align 8
  %68 = call noundef zeroext i1 @_Z8lessThanSt4pairIxxES0_(i64 %.sroa.019.0.copyload, i64 %.sroa.220.0.copyload, i64 %.sroa.017.0.copyload, i64 %.sroa.218.0.copyload)
  %.pre81 = load i64, ptr @T, align 8, !tbaa !11
  br i1 %68, label %69, label %85

69:                                               ; preds = %66
  %70 = load i64, ptr @A, align 8, !tbaa !11
  %71 = shl nsw i64 %70, 1
  %72 = add nsw i64 %71, %indvars.iv
  %73 = add nsw i64 %.pre81, 1
  %.not65 = icmp eq i64 %72, %73
  br i1 %.not65, label %74, label %81

74:                                               ; preds = %69
  %75 = load i64, ptr %58, align 16, !tbaa !15
  %76 = mul nuw nsw i64 %75, %42
  %77 = load i64, ptr %.sroa.218.0..sroa_idx, align 8, !tbaa !17
  %78 = mul nuw nsw i64 %77, %43
  %79 = add nsw i64 %78, %76
  %80 = icmp sgt i64 %79, 0
  br i1 %80, label %81, label %85

81:                                               ; preds = %74, %69
  %.idx66 = shl i64 %70, 5
  %82 = getelementptr i8, ptr %35, i64 %.idx66
  %83 = getelementptr %"struct.std::pair", ptr %82, i64 %indvars.iv
  %84 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %83, ptr noundef nonnull align 8 dereferenceable(16) %58)
  %.pre = load i64, ptr @T, align 8, !tbaa !11
  br label %85

85:                                               ; preds = %74, %81, %66, %60
  %86 = phi i64 [ %.pre81, %74 ], [ %.pre, %81 ], [ %.pre81, %66 ], [ %64, %60 ]
  %87 = load i64, ptr @B, align 8, !tbaa !11
  %88 = shl nsw i64 %87, 1
  %89 = add nsw i64 %88, %indvars.iv
  %90 = add nsw i64 %86, 1
  %.not67 = icmp sgt i64 %89, %90
  br i1 %.not67, label %109, label %91

91:                                               ; preds = %85
  %92 = getelementptr inbounds %"struct.std::pair", ptr %35, i64 %89
  %.sroa.015.0.copyload = load i64, ptr %92, align 16
  %.sroa.216.0..sroa_idx = getelementptr inbounds i8, ptr %92, i64 8
  %.sroa.216.0.copyload = load i64, ptr %.sroa.216.0..sroa_idx, align 8
  %.sroa.013.0.copyload = load i64, ptr %58, align 16
  %.sroa.214.0..sroa_idx = getelementptr inbounds i8, ptr %58, i64 8
  %.sroa.214.0.copyload = load i64, ptr %.sroa.214.0..sroa_idx, align 8
  %93 = call noundef zeroext i1 @_Z8lessThanSt4pairIxxES0_(i64 %.sroa.015.0.copyload, i64 %.sroa.216.0.copyload, i64 %.sroa.013.0.copyload, i64 %.sroa.214.0.copyload)
  %.pre83 = load i64, ptr @B, align 8, !tbaa !11
  %.pre85 = load i64, ptr @T, align 8, !tbaa !11
  br i1 %93, label %94, label %109

94:                                               ; preds = %91
  %95 = shl nsw i64 %.pre83, 1
  %96 = add nsw i64 %95, %indvars.iv
  %97 = add nsw i64 %.pre85, 1
  %.not68 = icmp eq i64 %96, %97
  br i1 %.not68, label %98, label %105

98:                                               ; preds = %94
  %99 = load i64, ptr %58, align 16, !tbaa !15
  %100 = mul nuw nsw i64 %99, %42
  %101 = load i64, ptr %.sroa.214.0..sroa_idx, align 8, !tbaa !17
  %102 = mul nuw nsw i64 %101, %43
  %103 = add nsw i64 %102, %100
  %104 = icmp sgt i64 %103, 0
  br i1 %104, label %105, label %109

105:                                              ; preds = %98, %94
  %.idx69 = shl i64 %.pre83, 5
  %106 = getelementptr i8, ptr %35, i64 %.idx69
  %107 = getelementptr %"struct.std::pair", ptr %106, i64 %indvars.iv
  %108 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %107, ptr noundef nonnull align 8 dereferenceable(16) %58)
  %.pre82 = load i64, ptr @B, align 8, !tbaa !11
  %.pre84 = load i64, ptr @T, align 8, !tbaa !11
  br label %109

109:                                              ; preds = %98, %105, %91, %85
  %110 = phi i64 [ %.pre85, %98 ], [ %.pre84, %105 ], [ %.pre85, %91 ], [ %86, %85 ]
  %111 = phi i64 [ %.pre83, %98 ], [ %.pre82, %105 ], [ %.pre83, %91 ], [ %87, %85 ]
  %112 = add nsw i64 %111, %indvars.iv
  %113 = add nsw i64 %110, 1
  %.not70 = icmp sgt i64 %112, %113
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  br i1 %.not70, label %.critedge, label %114

114:                                              ; preds = %109
  %115 = getelementptr %"struct.std::pair", ptr %35, i64 %111
  %116 = getelementptr %"struct.std::pair", ptr %115, i64 %indvars.iv
  %.sroa.011.0.copyload = load i64, ptr %116, align 16
  %.sroa.212.0..sroa_idx = getelementptr inbounds i8, ptr %116, i64 8
  %.sroa.212.0.copyload = load i64, ptr %.sroa.212.0..sroa_idx, align 8
  %117 = getelementptr inbounds i8, ptr %58, i64 8
  %118 = load i64, ptr %117, align 8, !tbaa !17
  %119 = add nsw i64 %118, 1
  store i64 %119, ptr %10, align 8, !tbaa !11
  %120 = call { i64, i64 } @_ZSt9make_pairIRxxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %58, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %121 = extractvalue { i64, i64 } %120, 0
  %122 = extractvalue { i64, i64 } %120, 1
  %123 = call noundef zeroext i1 @_Z8lessThanSt4pairIxxES0_(i64 %.sroa.011.0.copyload, i64 %.sroa.212.0.copyload, i64 %121, i64 %122)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  br i1 %123, label %124, label %134

124:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  %125 = load i64, ptr %117, align 8, !tbaa !17
  %126 = add nsw i64 %125, 1
  store i64 %126, ptr %12, align 8, !tbaa !11
  %127 = call { i64, i64 } @_ZSt9make_pairIRxxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %58, ptr noundef nonnull align 8 dereferenceable(8) %12)
  %128 = extractvalue { i64, i64 } %127, 0
  store i64 %128, ptr %11, align 8
  %129 = extractvalue { i64, i64 } %127, 1
  store i64 %129, ptr %49, align 8
  %130 = load i64, ptr @B, align 8, !tbaa !11
  %131 = getelementptr %"struct.std::pair", ptr %35, i64 %130
  %132 = getelementptr %"struct.std::pair", ptr %131, i64 %indvars.iv
  %133 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %132, ptr noundef nonnull align 8 dereferenceable(16) %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #7
  br label %134

.critedge:                                        ; preds = %109
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  br label %134

134:                                              ; preds = %.critedge, %124, %114
  %135 = load i64, ptr @A, align 8, !tbaa !11
  %136 = add nsw i64 %135, %indvars.iv
  %137 = load i64, ptr @T, align 8, !tbaa !11
  %138 = add nsw i64 %137, 1
  %.not71 = icmp sgt i64 %136, %138
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  br i1 %.not71, label %.critedge2, label %139

139:                                              ; preds = %134
  %140 = getelementptr %"struct.std::pair", ptr %35, i64 %135
  %141 = getelementptr %"struct.std::pair", ptr %140, i64 %indvars.iv
  %.sroa.07.0.copyload = load i64, ptr %141, align 16
  %.sroa.28.0..sroa_idx = getelementptr inbounds i8, ptr %141, i64 8
  %.sroa.28.0.copyload = load i64, ptr %.sroa.28.0..sroa_idx, align 8
  %142 = load i64, ptr %58, align 16, !tbaa !15
  %143 = add nsw i64 %142, 1
  store i64 %143, ptr %13, align 8, !tbaa !11
  %144 = getelementptr inbounds i8, ptr %58, i64 8
  %145 = call { i64, i64 } @_ZSt9make_pairIxRxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %144)
  %146 = extractvalue { i64, i64 } %145, 0
  %147 = extractvalue { i64, i64 } %145, 1
  %148 = call noundef zeroext i1 @_Z8lessThanSt4pairIxxES0_(i64 %.sroa.07.0.copyload, i64 %.sroa.28.0.copyload, i64 %146, i64 %147)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  br i1 %148, label %149, label %159

149:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  %150 = load i64, ptr %58, align 16, !tbaa !15
  %151 = add nsw i64 %150, 1
  store i64 %151, ptr %15, align 8, !tbaa !11
  %152 = call { i64, i64 } @_ZSt9make_pairIxRxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %144)
  %153 = extractvalue { i64, i64 } %152, 0
  store i64 %153, ptr %14, align 8
  %154 = extractvalue { i64, i64 } %152, 1
  store i64 %154, ptr %50, align 8
  %155 = load i64, ptr @A, align 8, !tbaa !11
  %156 = getelementptr %"struct.std::pair", ptr %35, i64 %155
  %157 = getelementptr %"struct.std::pair", ptr %156, i64 %indvars.iv
  %158 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %157, ptr noundef nonnull align 8 dereferenceable(16) %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #7
  br label %159

.critedge2:                                       ; preds = %134
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  br label %159

159:                                              ; preds = %139, %149, %.critedge2, %57
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %160 = load i64, ptr @T, align 8, !tbaa !11
  %161 = shl nsw i64 %160, 1
  %.not.not = icmp sgt i64 %161, %indvars.iv
  br i1 %.not.not, label %57, label %._crit_edge, !llvm.loop !18

162:                                              ; preds = %.lr.ph77, %175
  %.075 = phi i32 [ %52, %.lr.ph77 ], [ %176, %175 ]
  %163 = zext nneg i32 %.075 to i64
  %164 = getelementptr inbounds %"struct.std::pair", ptr %35, i64 %163
  %165 = load i64, ptr %164, align 16, !tbaa !15
  %166 = mul nsw i64 %165, %54
  %167 = getelementptr inbounds i8, ptr %164, i64 8
  %168 = load i64, ptr %167, align 8, !tbaa !17
  %169 = mul nsw i64 %168, %55
  %170 = add nsw i64 %169, %166
  %.not63 = icmp sgt i64 %170, %56
  br i1 %.not63, label %175, label %171

171:                                              ; preds = %162
  %172 = lshr i32 %.075, 1
  %173 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %172)
  %174 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %173, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %.loopexit

175:                                              ; preds = %162
  %176 = add nsw i32 %.075, -1
  %177 = icmp sgt i32 %.075, 0
  br i1 %177, label %162, label %.loopexit, !llvm.loop !20

.loopexit:                                        ; preds = %175, %._crit_edge, %171
  ret i32 0
}

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_ZSt9make_pairIRxxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_ZSt9make_pairIxRxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

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


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