; LLVM IR from Izaron/ACM-ICPC :: Russian Olympiad in Informatics/Final Stage 2015/penguins.ll (Z5solvev)

; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"struct.std::pair" = type { i64, i64 }
%"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.0" = type { i32, i32 }
%"class.std::allocator" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@_Z1sB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@d = external dso_local global [1005 x [1005 x [2 x i32]]], align 16
@used = external dso_local global [1005 x [1005 x [2 x i8]]], align 16
@a = external dso_local global [1005 x [1005 x [2 x %"struct.std::pair"]]], align 16
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.4 = external hidden unnamed_addr constant [1 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

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

declare i32 @__isoc99_scanf(ptr noundef, ...) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"struct.std::pair.0", align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"struct.std::pair.0", align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"struct.std::pair.0", align 4
  %13 = alloca i32, align 4
  %14 = alloca %"struct.std::pair.0", align 4
  %15 = alloca i32, align 4
  %16 = alloca %"struct.std::pair.0", align 4
  %17 = alloca i32, align 4
  %18 = alloca %"struct.std::pair.0", align 4
  %19 = alloca i32, align 4
  %20 = alloca %"struct.std::pair.0", align 4
  %21 = alloca i32, align 4
  %22 = alloca %"struct.std::pair.0", align 4
  %23 = alloca i32, align 4
  %24 = alloca %"struct.std::pair.0", align 4
  %25 = alloca i32, align 4
  %26 = alloca %"struct.std::pair.0", align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca %"struct.std::pair", align 8
  %32 = alloca i32, align 4
  %33 = alloca %"class.std::__cxx11::basic_string", align 8
  %34 = alloca %"class.std::allocator", align 1
  %35 = alloca ptr, align 8
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %39 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  %42 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.3, ptr noundef %1, ptr noundef %2)
  %43 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11)
  %44 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef 0)
  %45 = load i8, ptr %44, align 1, !tbaa !5
  %46 = sext i8 %45 to i32
  %47 = icmp eq i32 %46, 49
  %48 = zext i1 %47 to i32
  store i32 %48, ptr getelementptr inbounds ([1005 x [2 x i32]], ptr getelementptr inbounds ([1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 1), i64 0, i64 1), align 8, !tbaa !8
  %49 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef 0)
  %50 = load i8, ptr %49, align 1, !tbaa !5
  %51 = sext i8 %50 to i32
  %52 = icmp eq i32 %51, 48
  %53 = zext i1 %52 to i32
  store i32 %53, ptr getelementptr inbounds ([2 x i32], ptr getelementptr inbounds ([1005 x [2 x i32]], ptr getelementptr inbounds ([1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 1), i64 0, i64 1), i64 0, i64 1), align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  store i32 0, ptr %4, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  store i32 0, ptr %5, align 4, !tbaa !8
  %54 = call i64 @_ZSt9make_pairIiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  store i64 %54, ptr %3, align 4
  %55 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSIiiEENSt9enable_ifIXsr6__and_ISt13is_assignableIRxOT_ES3_IS4_OT0_EEE5valueERS0_E4typeEOS_IS5_S8_E(ptr noundef nonnull align 8 dereferenceable(16) getelementptr inbounds ([1005 x [2 x %"struct.std::pair"]], ptr getelementptr inbounds ([1005 x [1005 x [2 x %"struct.std::pair"]]], ptr @a, i64 0, i64 1), i64 0, i64 1), ptr noundef nonnull align 4 dereferenceable(8) %3)
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 0, ptr %7, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 1, ptr %8, align 4, !tbaa !8
  %56 = call i64 @_ZSt9make_pairIiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  store i64 %56, ptr %6, align 4
  %57 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSIiiEENSt9enable_ifIXsr6__and_ISt13is_assignableIRxOT_ES3_IS4_OT0_EEE5valueERS0_E4typeEOS_IS5_S8_E(ptr noundef nonnull align 8 dereferenceable(16) getelementptr inbounds ([2 x %"struct.std::pair"], ptr getelementptr inbounds ([1005 x [2 x %"struct.std::pair"]], ptr getelementptr inbounds ([1005 x [1005 x [2 x %"struct.std::pair"]]], ptr @a, i64 0, i64 1), i64 0, i64 1), i64 0, i64 1), ptr noundef nonnull align 4 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 1, ptr %9, align 4, !tbaa !8
  br label %58

58:                                               ; preds = %557, %0
  %59 = load i32, ptr %9, align 4, !tbaa !8
  %60 = load i32, ptr %1, align 4, !tbaa !8
  %61 = icmp slt i32 %59, %60
  br i1 %61, label %63, label %62

62:                                               ; preds = %58
  store i32 2, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %560

63:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 1, ptr %11, align 4, !tbaa !8
  br label %64

64:                                               ; preds = %553, %63
  %65 = load i32, ptr %11, align 4, !tbaa !8
  %66 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %67 = load i32, ptr %66, align 4, !tbaa !8
  %68 = icmp sle i32 %65, %67
  br i1 %68, label %70, label %69

69:                                               ; preds = %64
  store i32 5, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %556

70:                                               ; preds = %64
  %71 = load i32, ptr %9, align 4, !tbaa !8
  %72 = add nsw i32 %71, 1
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [1005 x [1005 x [2 x i8]]], ptr @used, i64 0, i64 %73
  %75 = load i32, ptr %11, align 4, !tbaa !8
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [1005 x [2 x i8]], ptr %74, i64 0, i64 %76
  %78 = getelementptr inbounds [2 x i8], ptr %77, i64 0, i64 0
  %79 = load i8, ptr %78, align 2, !tbaa !10, !range !12, !noundef !13
  %80 = trunc i8 %79 to i1
  br i1 %80, label %124, label %81

81:                                               ; preds = %70
  %82 = load i32, ptr %9, align 4, !tbaa !8
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %83
  %85 = load i32, ptr %11, align 4, !tbaa !8
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [1005 x [2 x i32]], ptr %84, i64 0, i64 %86
  %88 = getelementptr inbounds [2 x i32], ptr %87, i64 0, i64 0
  %89 = load i32, ptr %88, align 8, !tbaa !8
  %90 = load i32, ptr %9, align 4, !tbaa !8
  %91 = sext i32 %90 to i64
  %92 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %91)
  %93 = load i8, ptr %92, align 1, !tbaa !5
  %94 = sext i8 %93 to i32
  %95 = icmp ne i32 %94, 48
  %96 = zext i1 %95 to i32
  %97 = add nsw i32 %89, %96
  %98 = load i32, ptr %9, align 4, !tbaa !8
  %99 = add nsw i32 %98, 1
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %100
  %102 = load i32, ptr %11, align 4, !tbaa !8
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [1005 x [2 x i32]], ptr %101, i64 0, i64 %103
  %105 = getelementptr inbounds [2 x i32], ptr %104, i64 0, i64 0
  store i32 %97, ptr %105, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !8
  %106 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %13)
  store i64 %106, ptr %12, align 4
  %107 = load i32, ptr %9, align 4, !tbaa !8
  %108 = add nsw i32 %107, 1
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [1005 x [1005 x [2 x %"struct.std::pair"]]], ptr @a, i64 0, i64 %109
  %111 = load i32, ptr %11, align 4, !tbaa !8
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [1005 x [2 x %"struct.std::pair"]], ptr %110, i64 0, i64 %112
  %114 = getelementptr inbounds [2 x %"struct.std::pair"], ptr %113, i64 0, i64 0
  %115 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSIiiEENSt9enable_ifIXsr6__and_ISt13is_assignableIRxOT_ES3_IS4_OT0_EEE5valueERS0_E4typeEOS_IS5_S8_E(ptr noundef nonnull align 8 dereferenceable(16) %114, ptr noundef nonnull align 4 dereferenceable(8) %12)
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  %116 = load i32, ptr %9, align 4, !tbaa !8
  %117 = add nsw i32 %116, 1
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [1005 x [1005 x [2 x i8]]], ptr @used, i64 0, i64 %118
  %120 = load i32, ptr %11, align 4, !tbaa !8
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [1005 x [2 x i8]], ptr %119, i64 0, i64 %121
  %123 = getelementptr inbounds [2 x i8], ptr %122, i64 0, i64 0
  store i8 1, ptr %123, align 2, !tbaa !10
  br label %187

124:                                              ; preds = %70
  %125 = load i32, ptr %9, align 4, !tbaa !8
  %126 = add nsw i32 %125, 1
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %127
  %129 = load i32, ptr %11, align 4, !tbaa !8
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [1005 x [2 x i32]], ptr %128, i64 0, i64 %130
  %132 = getelementptr inbounds [2 x i32], ptr %131, i64 0, i64 0
  %133 = load i32, ptr %132, align 8, !tbaa !8
  %134 = load i32, ptr %9, align 4, !tbaa !8
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %135
  %137 = load i32, ptr %11, align 4, !tbaa !8
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [1005 x [2 x i32]], ptr %136, i64 0, i64 %138
  %140 = getelementptr inbounds [2 x i32], ptr %139, i64 0, i64 0
  %141 = load i32, ptr %140, align 8, !tbaa !8
  %142 = load i32, ptr %9, align 4, !tbaa !8
  %143 = sext i32 %142 to i64
  %144 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %143)
  %145 = load i8, ptr %144, align 1, !tbaa !5
  %146 = sext i8 %145 to i32
  %147 = icmp ne i32 %146, 48
  %148 = zext i1 %147 to i32
  %149 = add nsw i32 %141, %148
  %150 = icmp sgt i32 %133, %149
  br i1 %150, label %151, label %186

151:                                              ; preds = %124
  %152 = load i32, ptr %9, align 4, !tbaa !8
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %153
  %155 = load i32, ptr %11, align 4, !tbaa !8
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [1005 x [2 x i32]], ptr %154, i64 0, i64 %156
  %158 = getelementptr inbounds [2 x i32], ptr %157, i64 0, i64 0
  %159 = load i32, ptr %158, align 8, !tbaa !8
  %160 = load i32, ptr %9, align 4, !tbaa !8
  %161 = sext i32 %160 to i64
  %162 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %161)
  %163 = load i8, ptr %162, align 1, !tbaa !5
  %164 = sext i8 %163 to i32
  %165 = icmp ne i32 %164, 48
  %166 = zext i1 %165 to i32
  %167 = add nsw i32 %159, %166
  %168 = load i32, ptr %9, align 4, !tbaa !8
  %169 = add nsw i32 %168, 1
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %170
  %172 = load i32, ptr %11, align 4, !tbaa !8
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [1005 x [2 x i32]], ptr %171, i64 0, i64 %173
  %175 = getelementptr inbounds [2 x i32], ptr %174, i64 0, i64 0
  store i32 %167, ptr %175, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !8
  %176 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %15)
  store i64 %176, ptr %14, align 4
  %177 = load i32, ptr %9, align 4, !tbaa !8
  %178 = add nsw i32 %177, 1
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds [1005 x [1005 x [2 x %"struct.std::pair"]]], ptr @a, i64 0, i64 %179
  %181 = load i32, ptr %11, align 4, !tbaa !8
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [1005 x [2 x %"struct.std::pair"]], ptr %180, i64 0, i64 %182
  %184 = getelementptr inbounds [2 x %"struct.std::pair"], ptr %183, i64 0, i64 0
  %185 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSIiiEENSt9enable_ifIXsr6__and_ISt13is_assignableIRxOT_ES3_IS4_OT0_EEE5valueERS0_E4typeEOS_IS5_S8_E(ptr noundef nonnull align 8 dereferenceable(16) %184, ptr noundef nonnull align 4 dereferenceable(8) %14)
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %186

186:                                              ; preds = %151, %124
  br label %187

187:                                              ; preds = %186, %81
  %188 = load i32, ptr %9, align 4, !tbaa !8
  %189 = add nsw i32 %188, 1
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds [1005 x [1005 x [2 x i8]]], ptr @used, i64 0, i64 %190
  %192 = load i32, ptr %11, align 4, !tbaa !8
  %193 = add nsw i32 %192, 1
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds [1005 x [2 x i8]], ptr %191, i64 0, i64 %194
  %196 = getelementptr inbounds [2 x i8], ptr %195, i64 0, i64 0
  %197 = load i8, ptr %196, align 2, !tbaa !10, !range !12, !noundef !13
  %198 = trunc i8 %197 to i1
  br i1 %198, label %245, label %199

199:                                              ; preds = %187
  %200 = load i32, ptr %9, align 4, !tbaa !8
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %201
  %203 = load i32, ptr %11, align 4, !tbaa !8
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds [1005 x [2 x i32]], ptr %202, i64 0, i64 %204
  %206 = getelementptr inbounds [2 x i32], ptr %205, i64 0, i64 1
  %207 = load i32, ptr %206, align 4, !tbaa !8
  %208 = load i32, ptr %9, align 4, !tbaa !8
  %209 = sext i32 %208 to i64
  %210 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %209)
  %211 = load i8, ptr %210, align 1, !tbaa !5
  %212 = sext i8 %211 to i32
  %213 = icmp ne i32 %212, 48
  %214 = zext i1 %213 to i32
  %215 = add nsw i32 %207, %214
  %216 = load i32, ptr %9, align 4, !tbaa !8
  %217 = add nsw i32 %216, 1
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %218
  %220 = load i32, ptr %11, align 4, !tbaa !8
  %221 = add nsw i32 %220, 1
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds [1005 x [2 x i32]], ptr %219, i64 0, i64 %222
  %224 = getelementptr inbounds [2 x i32], ptr %223, i64 0, i64 0
  store i32 %215, ptr %224, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 1, ptr %17, align 4, !tbaa !8
  %225 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %17)
  store i64 %225, ptr %16, align 4
  %226 = load i32, ptr %9, align 4, !tbaa !8
  %227 = add nsw i32 %226, 1
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds [1005 x [1005 x [2 x %"struct.std::pair"]]], ptr @a, i64 0, i64 %228
  %230 = load i32, ptr %11, align 4, !tbaa !8
  %231 = add nsw i32 %230, 1
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds [1005 x [2 x %"struct.std::pair"]], ptr %229, i64 0, i64 %232
  %234 = getelementptr inbounds [2 x %"struct.std::pair"], ptr %233, i64 0, i64 0
  %235 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSIiiEENSt9enable_ifIXsr6__and_ISt13is_assignableIRxOT_ES3_IS4_OT0_EEE5valueERS0_E4typeEOS_IS5_S8_E(ptr noundef nonnull align 8 dereferenceable(16) %234, ptr noundef nonnull align 4 dereferenceable(8) %16)
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  %236 = load i32, ptr %9, align 4, !tbaa !8
  %237 = add nsw i32 %236, 1
  %238 = sext i32 %237 to i64
  %239 = getelementptr inbounds [1005 x [1005 x [2 x i8]]], ptr @used, i64 0, i64 %238
  %240 = load i32, ptr %11, align 4, !tbaa !8
  %241 = add nsw i32 %240, 1
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds [1005 x [2 x i8]], ptr %239, i64 0, i64 %242
  %244 = getelementptr inbounds [2 x i8], ptr %243, i64 0, i64 0
  store i8 1, ptr %244, align 2, !tbaa !10
  br label %311

245:                                              ; preds = %187
  %246 = load i32, ptr %9, align 4, !tbaa !8
  %247 = add nsw i32 %246, 1
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %248
  %250 = load i32, ptr %11, align 4, !tbaa !8
  %251 = add nsw i32 %250, 1
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds [1005 x [2 x i32]], ptr %249, i64 0, i64 %252
  %254 = getelementptr inbounds [2 x i32], ptr %253, i64 0, i64 0
  %255 = load i32, ptr %254, align 8, !tbaa !8
  %256 = load i32, ptr %9, align 4, !tbaa !8
  %257 = sext i32 %256 to i64
  %258 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %257
  %259 = load i32, ptr %11, align 4, !tbaa !8
  %260 = sext i32 %259 to i64
  %261 = getelementptr inbounds [1005 x [2 x i32]], ptr %258, i64 0, i64 %260
  %262 = getelementptr inbounds [2 x i32], ptr %261, i64 0, i64 1
  %263 = load i32, ptr %262, align 4, !tbaa !8
  %264 = load i32, ptr %9, align 4, !tbaa !8
  %265 = sext i32 %264 to i64
  %266 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %265)
  %267 = load i8, ptr %266, align 1, !tbaa !5
  %268 = sext i8 %267 to i32
  %269 = icmp ne i32 %268, 48
  %270 = zext i1 %269 to i32
  %271 = add nsw i32 %263, %270
  %272 = icmp sgt i32 %255, %271
  br i1 %272, label %273, label %310

273:                                              ; preds = %245
  %274 = load i32, ptr %9, align 4, !tbaa !8
  %275 = sext i32 %274 to i64
  %276 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %275
  %277 = load i32, ptr %11, align 4, !tbaa !8
  %278 = sext i32 %277 to i64
  %279 = getelementptr inbounds [1005 x [2 x i32]], ptr %276, i64 0, i64 %278
  %280 = getelementptr inbounds [2 x i32], ptr %279, i64 0, i64 1
  %281 = load i32, ptr %280, align 4, !tbaa !8
  %282 = load i32, ptr %9, align 4, !tbaa !8
  %283 = sext i32 %282 to i64
  %284 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %283)
  %285 = load i8, ptr %284, align 1, !tbaa !5
  %286 = sext i8 %285 to i32
  %287 = icmp ne i32 %286, 48
  %288 = zext i1 %287 to i32
  %289 = add nsw i32 %281, %288
  %290 = load i32, ptr %9, align 4, !tbaa !8
  %291 = add nsw i32 %290, 1
  %292 = sext i32 %291 to i64
  %293 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %292
  %294 = load i32, ptr %11, align 4, !tbaa !8
  %295 = add nsw i32 %294, 1
  %296 = sext i32 %295 to i64
  %297 = getelementptr inbounds [1005 x [2 x i32]], ptr %293, i64 0, i64 %296
  %298 = getelementptr inbounds [2 x i32], ptr %297, i64 0, i64 0
  store i32 %289, ptr %298, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 1, ptr %19, align 4, !tbaa !8
  %299 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %19)
  store i64 %299, ptr %18, align 4
  %300 = load i32, ptr %9, align 4, !tbaa !8
  %301 = add nsw i32 %300, 1
  %302 = sext i32 %301 to i64
  %303 = getelementptr inbounds [1005 x [1005 x [2 x %"struct.std::pair"]]], ptr @a, i64 0, i64 %302
  %304 = load i32, ptr %11, align 4, !tbaa !8
  %305 = add nsw i32 %304, 1
  %306 = sext i32 %305 to i64
  %307 = getelementptr inbounds [1005 x [2 x %"struct.std::pair"]], ptr %303, i64 0, i64 %306
  %308 = getelementptr inbounds [2 x %"struct.std::pair"], ptr %307, i64 0, i64 0
  %309 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSIiiEENSt9enable_ifIXsr6__and_ISt13is_assignableIRxOT_ES3_IS4_OT0_EEE5valueERS0_E4typeEOS_IS5_S8_E(ptr noundef nonnull align 8 dereferenceable(16) %308, ptr noundef nonnull align 4 dereferenceable(8) %18)
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br label %310

310:                                              ; preds = %273, %245
  br label %311

311:                                              ; preds = %310, %199
  %312 = load i32, ptr %9, align 4, !tbaa !8
  %313 = add nsw i32 %312, 1
  %314 = sext i32 %313 to i64
  %315 = getelementptr inbounds [1005 x [1005 x [2 x i8]]], ptr @used, i64 0, i64 %314
  %316 = load i32, ptr %11, align 4, !tbaa !8
  %317 = sext i32 %316 to i64
  %318 = getelementptr inbounds [1005 x [2 x i8]], ptr %315, i64 0, i64 %317
  %319 = getelementptr inbounds [2 x i8], ptr %318, i64 0, i64 1
  %320 = load i8, ptr %319, align 1, !tbaa !10, !range !12, !noundef !13
  %321 = trunc i8 %320 to i1
  br i1 %321, label %365, label %322

322:                                              ; preds = %311
  %323 = load i32, ptr %9, align 4, !tbaa !8
  %324 = sext i32 %323 to i64
  %325 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %324
  %326 = load i32, ptr %11, align 4, !tbaa !8
  %327 = sext i32 %326 to i64
  %328 = getelementptr inbounds [1005 x [2 x i32]], ptr %325, i64 0, i64 %327
  %329 = getelementptr inbounds [2 x i32], ptr %328, i64 0, i64 1
  %330 = load i32, ptr %329, align 4, !tbaa !8
  %331 = load i32, ptr %9, align 4, !tbaa !8
  %332 = sext i32 %331 to i64
  %333 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %332)
  %334 = load i8, ptr %333, align 1, !tbaa !5
  %335 = sext i8 %334 to i32
  %336 = icmp ne i32 %335, 49
  %337 = zext i1 %336 to i32
  %338 = add nsw i32 %330, %337
  %339 = load i32, ptr %9, align 4, !tbaa !8
  %340 = add nsw i32 %339, 1
  %341 = sext i32 %340 to i64
  %342 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %341
  %343 = load i32, ptr %11, align 4, !tbaa !8
  %344 = sext i32 %343 to i64
  %345 = getelementptr inbounds [1005 x [2 x i32]], ptr %342, i64 0, i64 %344
  %346 = getelementptr inbounds [2 x i32], ptr %345, i64 0, i64 1
  store i32 %338, ptr %346, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  store i32 1, ptr %21, align 4, !tbaa !8
  %347 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %21)
  store i64 %347, ptr %20, align 4
  %348 = load i32, ptr %9, align 4, !tbaa !8
  %349 = add nsw i32 %348, 1
  %350 = sext i32 %349 to i64
  %351 = getelementptr inbounds [1005 x [1005 x [2 x %"struct.std::pair"]]], ptr @a, i64 0, i64 %350
  %352 = load i32, ptr %11, align 4, !tbaa !8
  %353 = sext i32 %352 to i64
  %354 = getelementptr inbounds [1005 x [2 x %"struct.std::pair"]], ptr %351, i64 0, i64 %353
  %355 = getelementptr inbounds [2 x %"struct.std::pair"], ptr %354, i64 0, i64 1
  %356 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSIiiEENSt9enable_ifIXsr6__and_ISt13is_assignableIRxOT_ES3_IS4_OT0_EEE5valueERS0_E4typeEOS_IS5_S8_E(ptr noundef nonnull align 8 dereferenceable(16) %355, ptr noundef nonnull align 4 dereferenceable(8) %20)
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  %357 = load i32, ptr %9, align 4, !tbaa !8
  %358 = add nsw i32 %357, 1
  %359 = sext i32 %358 to i64
  %360 = getelementptr inbounds [1005 x [1005 x [2 x i8]]], ptr @used, i64 0, i64 %359
  %361 = load i32, ptr %11, align 4, !tbaa !8
  %362 = sext i32 %361 to i64
  %363 = getelementptr inbounds [1005 x [2 x i8]], ptr %360, i64 0, i64 %362
  %364 = getelementptr inbounds [2 x i8], ptr %363, i64 0, i64 1
  store i8 1, ptr %364, align 1, !tbaa !10
  br label %428

365:                                              ; preds = %311
  %366 = load i32, ptr %9, align 4, !tbaa !8
  %367 = add nsw i32 %366, 1
  %368 = sext i32 %367 to i64
  %369 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %368
  %370 = load i32, ptr %11, align 4, !tbaa !8
  %371 = sext i32 %370 to i64
  %372 = getelementptr inbounds [1005 x [2 x i32]], ptr %369, i64 0, i64 %371
  %373 = getelementptr inbounds [2 x i32], ptr %372, i64 0, i64 1
  %374 = load i32, ptr %373, align 4, !tbaa !8
  %375 = load i32, ptr %9, align 4, !tbaa !8
  %376 = sext i32 %375 to i64
  %377 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %376
  %378 = load i32, ptr %11, align 4, !tbaa !8
  %379 = sext i32 %378 to i64
  %380 = getelementptr inbounds [1005 x [2 x i32]], ptr %377, i64 0, i64 %379
  %381 = getelementptr inbounds [2 x i32], ptr %380, i64 0, i64 1
  %382 = load i32, ptr %381, align 4, !tbaa !8
  %383 = load i32, ptr %9, align 4, !tbaa !8
  %384 = sext i32 %383 to i64
  %385 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %384)
  %386 = load i8, ptr %385, align 1, !tbaa !5
  %387 = sext i8 %386 to i32
  %388 = icmp ne i32 %387, 49
  %389 = zext i1 %388 to i32
  %390 = add nsw i32 %382, %389
  %391 = icmp sgt i32 %374, %390
  br i1 %391, label %392, label %427

392:                                              ; preds = %365
  %393 = load i32, ptr %9, align 4, !tbaa !8
  %394 = sext i32 %393 to i64
  %395 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %394
  %396 = load i32, ptr %11, align 4, !tbaa !8
  %397 = sext i32 %396 to i64
  %398 = getelementptr inbounds [1005 x [2 x i32]], ptr %395, i64 0, i64 %397
  %399 = getelementptr inbounds [2 x i32], ptr %398, i64 0, i64 1
  %400 = load i32, ptr %399, align 4, !tbaa !8
  %401 = load i32, ptr %9, align 4, !tbaa !8
  %402 = sext i32 %401 to i64
  %403 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %402)
  %404 = load i8, ptr %403, align 1, !tbaa !5
  %405 = sext i8 %404 to i32
  %406 = icmp ne i32 %405, 49
  %407 = zext i1 %406 to i32
  %408 = add nsw i32 %400, %407
  %409 = load i32, ptr %9, align 4, !tbaa !8
  %410 = add nsw i32 %409, 1
  %411 = sext i32 %410 to i64
  %412 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %411
  %413 = load i32, ptr %11, align 4, !tbaa !8
  %414 = sext i32 %413 to i64
  %415 = getelementptr inbounds [1005 x [2 x i32]], ptr %412, i64 0, i64 %414
  %416 = getelementptr inbounds [2 x i32], ptr %415, i64 0, i64 1
  store i32 %408, ptr %416, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 1, ptr %23, align 4, !tbaa !8
  %417 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %23)
  store i64 %417, ptr %22, align 4
  %418 = load i32, ptr %9, align 4, !tbaa !8
  %419 = add nsw i32 %418, 1
  %420 = sext i32 %419 to i64
  %421 = getelementptr inbounds [1005 x [1005 x [2 x %"struct.std::pair"]]], ptr @a, i64 0, i64 %420
  %422 = load i32, ptr %11, align 4, !tbaa !8
  %423 = sext i32 %422 to i64
  %424 = getelementptr inbounds [1005 x [2 x %"struct.std::pair"]], ptr %421, i64 0, i64 %423
  %425 = getelementptr inbounds [2 x %"struct.std::pair"], ptr %424, i64 0, i64 1
  %426 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSIiiEENSt9enable_ifIXsr6__and_ISt13is_assignableIRxOT_ES3_IS4_OT0_EEE5valueERS0_E4typeEOS_IS5_S8_E(ptr noundef nonnull align 8 dereferenceable(16) %425, ptr noundef nonnull align 4 dereferenceable(8) %22)
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %427

427:                                              ; preds = %392, %365
  br label %428

428:                                              ; preds = %427, %322
  %429 = load i32, ptr %9, align 4, !tbaa !8
  %430 = add nsw i32 %429, 1
  %431 = sext i32 %430 to i64
  %432 = getelementptr inbounds [1005 x [1005 x [2 x i8]]], ptr @used, i64 0, i64 %431
  %433 = load i32, ptr %11, align 4, !tbaa !8
  %434 = add nsw i32 %433, 1
  %435 = sext i32 %434 to i64
  %436 = getelementptr inbounds [1005 x [2 x i8]], ptr %432, i64 0, i64 %435
  %437 = getelementptr inbounds [2 x i8], ptr %436, i64 0, i64 1
  %438 = load i8, ptr %437, align 1, !tbaa !10, !range !12, !noundef !13
  %439 = trunc i8 %438 to i1
  br i1 %439, label %486, label %440

440:                                              ; preds = %428
  %441 = load i32, ptr %9, align 4, !tbaa !8
  %442 = sext i32 %441 to i64
  %443 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %442
  %444 = load i32, ptr %11, align 4, !tbaa !8
  %445 = sext i32 %444 to i64
  %446 = getelementptr inbounds [1005 x [2 x i32]], ptr %443, i64 0, i64 %445
  %447 = getelementptr inbounds [2 x i32], ptr %446, i64 0, i64 0
  %448 = load i32, ptr %447, align 8, !tbaa !8
  %449 = load i32, ptr %9, align 4, !tbaa !8
  %450 = sext i32 %449 to i64
  %451 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %450)
  %452 = load i8, ptr %451, align 1, !tbaa !5
  %453 = sext i8 %452 to i32
  %454 = icmp ne i32 %453, 49
  %455 = zext i1 %454 to i32
  %456 = add nsw i32 %448, %455
  %457 = load i32, ptr %9, align 4, !tbaa !8
  %458 = add nsw i32 %457, 1
  %459 = sext i32 %458 to i64
  %460 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %459
  %461 = load i32, ptr %11, align 4, !tbaa !8
  %462 = add nsw i32 %461, 1
  %463 = sext i32 %462 to i64
  %464 = getelementptr inbounds [1005 x [2 x i32]], ptr %460, i64 0, i64 %463
  %465 = getelementptr inbounds [2 x i32], ptr %464, i64 0, i64 1
  store i32 %456, ptr %465, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  store i32 0, ptr %25, align 4, !tbaa !8
  %466 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %25)
  store i64 %466, ptr %24, align 4
  %467 = load i32, ptr %9, align 4, !tbaa !8
  %468 = add nsw i32 %467, 1
  %469 = sext i32 %468 to i64
  %470 = getelementptr inbounds [1005 x [1005 x [2 x %"struct.std::pair"]]], ptr @a, i64 0, i64 %469
  %471 = load i32, ptr %11, align 4, !tbaa !8
  %472 = add nsw i32 %471, 1
  %473 = sext i32 %472 to i64
  %474 = getelementptr inbounds [1005 x [2 x %"struct.std::pair"]], ptr %470, i64 0, i64 %473
  %475 = getelementptr inbounds [2 x %"struct.std::pair"], ptr %474, i64 0, i64 1
  %476 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSIiiEENSt9enable_ifIXsr6__and_ISt13is_assignableIRxOT_ES3_IS4_OT0_EEE5valueERS0_E4typeEOS_IS5_S8_E(ptr noundef nonnull align 8 dereferenceable(16) %475, ptr noundef nonnull align 4 dereferenceable(8) %24)
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  %477 = load i32, ptr %9, align 4, !tbaa !8
  %478 = add nsw i32 %477, 1
  %479 = sext i32 %478 to i64
  %480 = getelementptr inbounds [1005 x [1005 x [2 x i8]]], ptr @used, i64 0, i64 %479
  %481 = load i32, ptr %11, align 4, !tbaa !8
  %482 = add nsw i32 %481, 1
  %483 = sext i32 %482 to i64
  %484 = getelementptr inbounds [1005 x [2 x i8]], ptr %480, i64 0, i64 %483
  %485 = getelementptr inbounds [2 x i8], ptr %484, i64 0, i64 1
  store i8 1, ptr %485, align 1, !tbaa !10
  br label %552

486:                                              ; preds = %428
  %487 = load i32, ptr %9, align 4, !tbaa !8
  %488 = add nsw i32 %487, 1
  %489 = sext i32 %488 to i64
  %490 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %489
  %491 = load i32, ptr %11, align 4, !tbaa !8
  %492 = add nsw i32 %491, 1
  %493 = sext i32 %492 to i64
  %494 = getelementptr inbounds [1005 x [2 x i32]], ptr %490, i64 0, i64 %493
  %495 = getelementptr inbounds [2 x i32], ptr %494, i64 0, i64 1
  %496 = load i32, ptr %495, align 4, !tbaa !8
  %497 = load i32, ptr %9, align 4, !tbaa !8
  %498 = sext i32 %497 to i64
  %499 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %498
  %500 = load i32, ptr %11, align 4, !tbaa !8
  %501 = sext i32 %500 to i64
  %502 = getelementptr inbounds [1005 x [2 x i32]], ptr %499, i64 0, i64 %501
  %503 = getelementptr inbounds [2 x i32], ptr %502, i64 0, i64 0
  %504 = load i32, ptr %503, align 8, !tbaa !8
  %505 = load i32, ptr %9, align 4, !tbaa !8
  %506 = sext i32 %505 to i64
  %507 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %506)
  %508 = load i8, ptr %507, align 1, !tbaa !5
  %509 = sext i8 %508 to i32
  %510 = icmp ne i32 %509, 49
  %511 = zext i1 %510 to i32
  %512 = add nsw i32 %504, %511
  %513 = icmp sgt i32 %496, %512
  br i1 %513, label %514, label %551

514:                                              ; preds = %486
  %515 = load i32, ptr %9, align 4, !tbaa !8
  %516 = sext i32 %515 to i64
  %517 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %516
  %518 = load i32, ptr %11, align 4, !tbaa !8
  %519 = sext i32 %518 to i64
  %520 = getelementptr inbounds [1005 x [2 x i32]], ptr %517, i64 0, i64 %519
  %521 = getelementptr inbounds [2 x i32], ptr %520, i64 0, i64 0
  %522 = load i32, ptr %521, align 8, !tbaa !8
  %523 = load i32, ptr %9, align 4, !tbaa !8
  %524 = sext i32 %523 to i64
  %525 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %524)
  %526 = load i8, ptr %525, align 1, !tbaa !5
  %527 = sext i8 %526 to i32
  %528 = icmp ne i32 %527, 49
  %529 = zext i1 %528 to i32
  %530 = add nsw i32 %522, %529
  %531 = load i32, ptr %9, align 4, !tbaa !8
  %532 = add nsw i32 %531, 1
  %533 = sext i32 %532 to i64
  %534 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %533
  %535 = load i32, ptr %11, align 4, !tbaa !8
  %536 = add nsw i32 %535, 1
  %537 = sext i32 %536 to i64
  %538 = getelementptr inbounds [1005 x [2 x i32]], ptr %534, i64 0, i64 %537
  %539 = getelementptr inbounds [2 x i32], ptr %538, i64 0, i64 1
  store i32 %530, ptr %539, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  store i32 0, ptr %27, align 4, !tbaa !8
  %540 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %27)
  store i64 %540, ptr %26, align 4
  %541 = load i32, ptr %9, align 4, !tbaa !8
  %542 = add nsw i32 %541, 1
  %543 = sext i32 %542 to i64
  %544 = getelementptr inbounds [1005 x [1005 x [2 x %"struct.std::pair"]]], ptr @a, i64 0, i64 %543
  %545 = load i32, ptr %11, align 4, !tbaa !8
  %546 = add nsw i32 %545, 1
  %547 = sext i32 %546 to i64
  %548 = getelementptr inbounds [1005 x [2 x %"struct.std::pair"]], ptr %544, i64 0, i64 %547
  %549 = getelementptr inbounds [2 x %"struct.std::pair"], ptr %548, i64 0, i64 1
  %550 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSIiiEENSt9enable_ifIXsr6__and_ISt13is_assignableIRxOT_ES3_IS4_OT0_EEE5valueERS0_E4typeEOS_IS5_S8_E(ptr noundef nonnull align 8 dereferenceable(16) %549, ptr noundef nonnull align 4 dereferenceable(8) %26)
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  br label %551

551:                                              ; preds = %514, %486
  br label %552

552:                                              ; preds = %551, %440
  br label %553

553:                                              ; preds = %552
  %554 = load i32, ptr %11, align 4, !tbaa !8
  %555 = add nsw i32 %554, 1
  store i32 %555, ptr %11, align 4, !tbaa !8
  br label %64, !llvm.loop !14

556:                                              ; preds = %69
  br label %557

557:                                              ; preds = %556
  %558 = load i32, ptr %9, align 4, !tbaa !8
  %559 = add nsw i32 %558, 1
  store i32 %559, ptr %9, align 4, !tbaa !8
  br label %58, !llvm.loop !16

560:                                              ; preds = %62
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  %561 = load i32, ptr %1, align 4, !tbaa !8
  %562 = sext i32 %561 to i64
  %563 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %562
  %564 = load i32, ptr %2, align 4, !tbaa !8
  %565 = sext i32 %564 to i64
  %566 = getelementptr inbounds [1005 x [2 x i32]], ptr %563, i64 0, i64 %565
  %567 = getelementptr inbounds [2 x i32], ptr %566, i64 0, i64 0
  %568 = load i32, ptr %567, align 8, !tbaa !8
  store i32 %568, ptr %28, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  %569 = load i32, ptr %2, align 4, !tbaa !8
  store i32 %569, ptr %29, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  store i32 0, ptr %30, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #7
  %570 = load i32, ptr %1, align 4, !tbaa !8
  %571 = sext i32 %570 to i64
  %572 = getelementptr inbounds [1005 x [1005 x [2 x %"struct.std::pair"]]], ptr @a, i64 0, i64 %571
  %573 = load i32, ptr %2, align 4, !tbaa !8
  %574 = sext i32 %573 to i64
  %575 = getelementptr inbounds [1005 x [2 x %"struct.std::pair"]], ptr %572, i64 0, i64 %574
  %576 = getelementptr inbounds [2 x %"struct.std::pair"], ptr %575, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %31, ptr align 16 %576, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  %577 = load i32, ptr %2, align 4, !tbaa !8
  store i32 %577, ptr %32, align 4, !tbaa !8
  br label %578

578:                                              ; preds = %639, %560
  %579 = load i32, ptr %32, align 4, !tbaa !8
  %580 = icmp sge i32 %579, 1
  br i1 %580, label %582, label %581

581:                                              ; preds = %578
  store i32 8, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  br label %642

582:                                              ; preds = %578
  %583 = load i32, ptr %1, align 4, !tbaa !8
  %584 = sext i32 %583 to i64
  %585 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %584
  %586 = load i32, ptr %32, align 4, !tbaa !8
  %587 = sext i32 %586 to i64
  %588 = getelementptr inbounds [1005 x [2 x i32]], ptr %585, i64 0, i64 %587
  %589 = getelementptr inbounds [2 x i32], ptr %588, i64 0, i64 0
  %590 = load i32, ptr %589, align 8, !tbaa !8
  %591 = load i32, ptr %28, align 4, !tbaa !8
  %592 = icmp slt i32 %590, %591
  br i1 %592, label %593, label %610

593:                                              ; preds = %582
  %594 = load i32, ptr %1, align 4, !tbaa !8
  %595 = sext i32 %594 to i64
  %596 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %595
  %597 = load i32, ptr %32, align 4, !tbaa !8
  %598 = sext i32 %597 to i64
  %599 = getelementptr inbounds [1005 x [2 x i32]], ptr %596, i64 0, i64 %598
  %600 = getelementptr inbounds [2 x i32], ptr %599, i64 0, i64 0
  %601 = load i32, ptr %600, align 8, !tbaa !8
  store i32 %601, ptr %28, align 4, !tbaa !8
  %602 = load i32, ptr %1, align 4, !tbaa !8
  %603 = sext i32 %602 to i64
  %604 = getelementptr inbounds [1005 x [1005 x [2 x %"struct.std::pair"]]], ptr @a, i64 0, i64 %603
  %605 = load i32, ptr %32, align 4, !tbaa !8
  %606 = sext i32 %605 to i64
  %607 = getelementptr inbounds [1005 x [2 x %"struct.std::pair"]], ptr %604, i64 0, i64 %606
  %608 = getelementptr inbounds [2 x %"struct.std::pair"], ptr %607, i64 0, i64 0
  %609 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 8 dereferenceable(16) %608)
  store i32 0, ptr %30, align 4, !tbaa !8
  br label %610

610:                                              ; preds = %593, %582
  %611 = load i32, ptr %1, align 4, !tbaa !8
  %612 = sext i32 %611 to i64
  %613 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %612
  %614 = load i32, ptr %32, align 4, !tbaa !8
  %615 = sext i32 %614 to i64
  %616 = getelementptr inbounds [1005 x [2 x i32]], ptr %613, i64 0, i64 %615
  %617 = getelementptr inbounds [2 x i32], ptr %616, i64 0, i64 1
  %618 = load i32, ptr %617, align 4, !tbaa !8
  %619 = load i32, ptr %28, align 4, !tbaa !8
  %620 = icmp slt i32 %618, %619
  br i1 %620, label %621, label %638

621:                                              ; preds = %610
  %622 = load i32, ptr %1, align 4, !tbaa !8
  %623 = sext i32 %622 to i64
  %624 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %623
  %625 = load i32, ptr %32, align 4, !tbaa !8
  %626 = sext i32 %625 to i64
  %627 = getelementptr inbounds [1005 x [2 x i32]], ptr %624, i64 0, i64 %626
  %628 = getelementptr inbounds [2 x i32], ptr %627, i64 0, i64 1
  %629 = load i32, ptr %628, align 4, !tbaa !8
  store i32 %629, ptr %28, align 4, !tbaa !8
  %630 = load i32, ptr %1, align 4, !tbaa !8
  %631 = sext i32 %630 to i64
  %632 = getelementptr inbounds [1005 x [1005 x [2 x %"struct.std::pair"]]], ptr @a, i64 0, i64 %631
  %633 = load i32, ptr %32, align 4, !tbaa !8
  %634 = sext i32 %633 to i64
  %635 = getelementptr inbounds [1005 x [2 x %"struct.std::pair"]], ptr %632, i64 0, i64 %634
  %636 = getelementptr inbounds [2 x %"struct.std::pair"], ptr %635, i64 0, i64 1
  %637 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 8 dereferenceable(16) %636)
  store i32 1, ptr %30, align 4, !tbaa !8
  br label %638

638:                                              ; preds = %621, %610
  br label %639

639:                                              ; preds = %638
  %640 = load i32, ptr %32, align 4, !tbaa !8
  %641 = add nsw i32 %640, -1
  store i32 %641, ptr %32, align 4, !tbaa !8
  br label %578, !llvm.loop !17

642:                                              ; preds = %581
  call void @llvm.lifetime.start.p0(i64 32, ptr %33) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %34) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef @.str.4, ptr noundef nonnull align 1 dereferenceable(1) %34)
          to label %643 unwind label %655

643:                                              ; preds = %642
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #7
  %644 = load i32, ptr %30, align 4, !tbaa !8
  %645 = add nsw i32 %644, 48
  %646 = trunc i32 %645 to i8
  %647 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %33, i8 noundef signext %646)
          to label %648 unwind label %659

648:                                              ; preds = %643
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #7
  %649 = load i32, ptr %1, align 4, !tbaa !8
  store i32 %649, ptr %37, align 4, !tbaa !8
  br label %650

650:                                              ; preds = %690, %648
  br label %651

651:                                              ; preds = %650
  %652 = load i32, ptr %37, align 4, !tbaa !8
  %653 = icmp sle i32 %652, 1
  br i1 %653, label %654, label %663

654:                                              ; preds = %651
  br label %691

655:                                              ; preds = %642
  %656 = landingpad { ptr, i32 }
          cleanup
  %657 = extractvalue { ptr, i32 } %656, 0
  store ptr %657, ptr %35, align 8
  %658 = extractvalue { ptr, i32 } %656, 1
  store i32 %658, ptr %36, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #7
  br label %754

659:                                              ; preds = %643
  %660 = landingpad { ptr, i32 }
          cleanup
  %661 = extractvalue { ptr, i32 } %660, 0
  store ptr %661, ptr %35, align 8
  %662 = extractvalue { ptr, i32 } %660, 1
  store i32 %662, ptr %36, align 4
  br label %753

663:                                              ; preds = %651
  %664 = load i32, ptr %37, align 4, !tbaa !8
  %665 = sext i32 %664 to i64
  %666 = getelementptr inbounds [1005 x [1005 x [2 x %"struct.std::pair"]]], ptr @a, i64 0, i64 %665
  %667 = getelementptr inbounds %"struct.std::pair", ptr %31, i32 0, i32 0
  %668 = load i64, ptr %667, align 8, !tbaa !18
  %669 = getelementptr inbounds [1005 x [2 x %"struct.std::pair"]], ptr %666, i64 0, i64 %668
  %670 = getelementptr inbounds %"struct.std::pair", ptr %31, i32 0, i32 1
  %671 = load i64, ptr %670, align 8, !tbaa !21
  %672 = getelementptr inbounds [2 x %"struct.std::pair"], ptr %669, i64 0, i64 %671
  %673 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 8 dereferenceable(16) %672)
          to label %674 unwind label %686

674:                                              ; preds = %663
  %675 = getelementptr inbounds %"struct.std::pair", ptr %31, i32 0, i32 1
  %676 = load i64, ptr %675, align 8, !tbaa !21
  %677 = add nsw i64 %676, 48
  %678 = trunc i64 %677 to i8
  %679 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %33, i8 noundef signext %678)
          to label %680 unwind label %686

680:                                              ; preds = %674
  %681 = load i32, ptr %37, align 4, !tbaa !8
  %682 = add nsw i32 %681, -1
  store i32 %682, ptr %37, align 4, !tbaa !8
  %683 = load i32, ptr %37, align 4, !tbaa !8
  %684 = icmp eq i32 %683, 1
  br i1 %684, label %685, label %690

685:                                              ; preds = %680
  br label %691

686:                                              ; preds = %702, %700, %691, %674, %663
  %687 = landingpad { ptr, i32 }
          cleanup
  %688 = extractvalue { ptr, i32 } %687, 0
  store ptr %688, ptr %35, align 8
  %689 = extractvalue { ptr, i32 } %687, 1
  store i32 %689, ptr %36, align 4
  br label %752

690:                                              ; preds = %680
  br label %650, !llvm.loop !22

691:                                              ; preds = %685, %654
  %692 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %33) #7
  %693 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %38, i32 0, i32 0
  store ptr %692, ptr %693, align 8
  %694 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %33) #7
  %695 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %39, i32 0, i32 0
  store ptr %694, ptr %695, align 8
  %696 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %38, i32 0, i32 0
  %697 = load ptr, ptr %696, align 8
  %698 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %39, i32 0, i32 0
  %699 = load ptr, ptr %698, align 8
  invoke void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvT_SA_(ptr %697, ptr %699)
          to label %700 unwind label %686

700:                                              ; preds = %691
  %701 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %33)
          to label %702 unwind label %686

702:                                              ; preds = %700
  %703 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %701, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %704 unwind label %686

704:                                              ; preds = %702
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #7
  store i32 0, ptr %40, align 4, !tbaa !8
  br label %705

705:                                              ; preds = %747, %704
  %706 = load i32, ptr %40, align 4, !tbaa !8
  %707 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %1)
          to label %708 unwind label %712

708:                                              ; preds = %705
  %709 = load i32, ptr %707, align 4, !tbaa !8
  %710 = icmp sle i32 %706, %709
  br i1 %710, label %716, label %711

711:                                              ; preds = %708
  store i32 13, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #7
  br label %751

712:                                              ; preds = %705
  %713 = landingpad { ptr, i32 }
          cleanup
  %714 = extractvalue { ptr, i32 } %713, 0
  store ptr %714, ptr %35, align 8
  %715 = extractvalue { ptr, i32 } %713, 1
  store i32 %715, ptr %36, align 4
  br label %750

716:                                              ; preds = %708
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #7
  store i32 0, ptr %41, align 4, !tbaa !8
  br label %717

717:                                              ; preds = %743, %716
  %718 = load i32, ptr %41, align 4, !tbaa !8
  %719 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %1)
          to label %720 unwind label %724

720:                                              ; preds = %717
  %721 = load i32, ptr %719, align 4, !tbaa !8
  %722 = icmp sle i32 %718, %721
  br i1 %722, label %728, label %723

723:                                              ; preds = %720
  store i32 16, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #7
  br label %746

724:                                              ; preds = %717
  %725 = landingpad { ptr, i32 }
          cleanup
  %726 = extractvalue { ptr, i32 } %725, 0
  store ptr %726, ptr %35, align 8
  %727 = extractvalue { ptr, i32 } %725, 1
  store i32 %727, ptr %36, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #7
  br label %750

728:                                              ; preds = %720
  %729 = load i32, ptr %40, align 4, !tbaa !8
  %730 = sext i32 %729 to i64
  %731 = getelementptr inbounds [1005 x [1005 x [2 x i8]]], ptr @used, i64 0, i64 %730
  %732 = load i32, ptr %41, align 4, !tbaa !8
  %733 = sext i32 %732 to i64
  %734 = getelementptr inbounds [1005 x [2 x i8]], ptr %731, i64 0, i64 %733
  %735 = getelementptr inbounds [2 x i8], ptr %734, i64 0, i64 0
  store i8 0, ptr %735, align 2, !tbaa !10
  %736 = load i32, ptr %40, align 4, !tbaa !8
  %737 = sext i32 %736 to i64
  %738 = getelementptr inbounds [1005 x [1005 x [2 x i8]]], ptr @used, i64 0, i64 %737
  %739 = load i32, ptr %41, align 4, !tbaa !8
  %740 = sext i32 %739 to i64
  %741 = getelementptr inbounds [1005 x [2 x i8]], ptr %738, i64 0, i64 %740
  %742 = getelementptr inbounds [2 x i8], ptr %741, i64 0, i64 1
  store i8 0, ptr %742, align 1, !tbaa !10
  br label %743

743:                                              ; preds = %728
  %744 = load i32, ptr %41, align 4, !tbaa !8
  %745 = add nsw i32 %744, 1
  store i32 %745, ptr %41, align 4, !tbaa !8
  br label %717, !llvm.loop !23

746:                                              ; preds = %723
  br label %747

747:                                              ; preds = %746
  %748 = load i32, ptr %40, align 4, !tbaa !8
  %749 = add nsw i32 %748, 1
  store i32 %749, ptr %40, align 4, !tbaa !8
  br label %705, !llvm.loop !24

750:                                              ; preds = %724, %712
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #7
  br label %752

751:                                              ; preds = %711
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #7
  ret void

752:                                              ; preds = %750, %686
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #7
  br label %753

753:                                              ; preds = %752, %659
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #7
  br label %754

754:                                              ; preds = %753, %655
  call void @llvm.lifetime.end.p0(i64 32, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #7
  br label %755

755:                                              ; preds = %754
  %756 = load ptr, ptr %35, align 8
  %757 = load i32, ptr %36, align 4
  %758 = insertvalue { ptr, i32 } poison, ptr %756, 0
  %759 = insertvalue { ptr, i32 } %758, i32 %757, 1
  resume { ptr, i32 } %759
}

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #2

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

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

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

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

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

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

; 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 nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvT_SA_(ptr, ptr) #6

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

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

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

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #4

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

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


; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"struct.std::pair" = type { i64, i64 }
%"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.0" = type { i32, i32 }
%"class.std::allocator" = type { i8 }

@_Z1sB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@d = external dso_local local_unnamed_addr global [1005 x [1005 x [2 x i32]]], align 16
@used = external dso_local local_unnamed_addr global [1005 x [1005 x [2 x i8]]], align 16
@a = external dso_local global [1005 x [1005 x [2 x %"struct.std::pair"]]], align 16
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.4 = external hidden unnamed_addr constant [1 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"struct.std::pair.0", align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"struct.std::pair.0", align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"struct.std::pair.0", align 8
  %12 = alloca i32, align 4
  %13 = alloca %"struct.std::pair.0", align 8
  %14 = alloca i32, align 4
  %15 = alloca %"struct.std::pair.0", align 8
  %16 = alloca i32, align 4
  %17 = alloca %"struct.std::pair.0", align 8
  %18 = alloca i32, align 4
  %19 = alloca %"struct.std::pair.0", align 8
  %20 = alloca i32, align 4
  %21 = alloca %"struct.std::pair.0", align 8
  %22 = alloca i32, align 4
  %23 = alloca %"struct.std::pair.0", align 8
  %24 = alloca i32, align 4
  %25 = alloca %"struct.std::pair.0", align 8
  %26 = alloca i32, align 4
  %27 = alloca %"struct.std::pair", align 8
  %28 = alloca %"class.std::__cxx11::basic_string", align 8
  %29 = alloca %"class.std::allocator", align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  %30 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.3, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %31 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11)
  %32 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef 0)
  %33 = load i8, ptr %32, align 1, !tbaa !5
  %34 = icmp eq i8 %33, 49
  %35 = zext i1 %34 to i32
  store i32 %35, ptr getelementptr inbounds (i8, ptr @d, i64 8048), align 16, !tbaa !8
  %36 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef 0)
  %37 = load i8, ptr %36, align 1, !tbaa !5
  %38 = icmp eq i8 %37, 48
  %39 = zext i1 %38 to i32
  store i32 %39, ptr getelementptr inbounds (i8, ptr @d, i64 8052), align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #8
  store i32 0, ptr %4, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  store i32 0, ptr %5, align 4, !tbaa !8
  %40 = call i64 @_ZSt9make_pairIiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  store i64 %40, ptr %3, align 8
  %41 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSIiiEENSt9enable_ifIXsr6__and_ISt13is_assignableIRxOT_ES3_IS4_OT0_EEE5valueERS0_E4typeEOS_IS5_S8_E(ptr noundef nonnull align 8 dereferenceable(16) getelementptr inbounds (i8, ptr @a, i64 32192), ptr noundef nonnull align 4 dereferenceable(8) %3)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #8
  store i32 0, ptr %7, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #8
  store i32 1, ptr %8, align 4, !tbaa !8
  %42 = call i64 @_ZSt9make_pairIiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  store i64 %42, ptr %6, align 8
  %43 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSIiiEENSt9enable_ifIXsr6__and_ISt13is_assignableIRxOT_ES3_IS4_OT0_EEE5valueERS0_E4typeEOS_IS5_S8_E(ptr noundef nonnull align 8 dereferenceable(16) getelementptr inbounds (i8, ptr @a, i64 32208), ptr noundef nonnull align 4 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #8
  store i32 1, ptr %9, align 4, !tbaa !8
  %44 = load i32, ptr %1, align 4, !tbaa !8
  %45 = icmp sgt i32 %44, 1
  br i1 %45, label %.lr.ph52, label %._crit_edge53

._crit_edge53:                                    ; preds = %._crit_edge, %0
  %.lcssa = phi i32 [ %44, %0 ], [ %58, %._crit_edge ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #8
  %46 = sext i32 %.lcssa to i64
  %47 = load i32, ptr %2, align 4, !tbaa !8
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %46, i64 %48
  %50 = load i32, ptr %49, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %27) #8
  %51 = getelementptr inbounds [1005 x [1005 x [2 x %"struct.std::pair"]]], ptr @a, i64 0, i64 %46, i64 %48
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 16 dereferenceable(16) %51, i64 16, i1 false)
  %52 = icmp sgt i32 %47, 0
  br i1 %52, label %.lr.ph58.preheader, label %._crit_edge59

.lr.ph58.preheader:                               ; preds = %._crit_edge53
  %53 = zext nneg i32 %47 to i64
  br label %.lr.ph58

.lr.ph52:                                         ; preds = %0, %._crit_edge
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #8
  store i32 1, ptr %10, align 4, !tbaa !8
  %54 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %55 = load i32, ptr %54, align 4, !tbaa !8
  %.not4650 = icmp slt i32 %55, 1
  br i1 %.not4650, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %372, %.lr.ph52
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #8
  %56 = load i32, ptr %9, align 4, !tbaa !8
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %9, align 4, !tbaa !8
  %58 = load i32, ptr %1, align 4, !tbaa !8
  %59 = icmp slt i32 %57, %58
  br i1 %59, label %.lr.ph52, label %._crit_edge53, !llvm.loop !10

.lr.ph:                                           ; preds = %.lr.ph52, %372
  %60 = load i32, ptr %9, align 4, !tbaa !8
  %61 = add nsw i32 %60, 1
  %62 = sext i32 %61 to i64
  %63 = load i32, ptr %10, align 4, !tbaa !8
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [1005 x [1005 x [2 x i8]]], ptr @used, i64 0, i64 %62, i64 %64
  %66 = load i8, ptr %65, align 2, !tbaa !12, !range !14, !noundef !15
  %67 = trunc nuw i8 %66 to i1
  br i1 %67, label %97, label %68

68:                                               ; preds = %.lr.ph
  %69 = sext i32 %60 to i64
  %70 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %69, i64 %64
  %71 = load i32, ptr %70, align 8, !tbaa !8
  %72 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %69)
  %73 = load i8, ptr %72, align 1, !tbaa !5
  %74 = icmp ne i8 %73, 48
  %75 = zext i1 %74 to i32
  %76 = add nsw i32 %71, %75
  %77 = load i32, ptr %9, align 4, !tbaa !8
  %78 = add nsw i32 %77, 1
  %79 = sext i32 %78 to i64
  %80 = load i32, ptr %10, align 4, !tbaa !8
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %79, i64 %81
  store i32 %76, ptr %82, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #8
  store i32 0, ptr %12, align 4, !tbaa !8
  %83 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %12)
  store i64 %83, ptr %11, align 8
  %84 = load i32, ptr %9, align 4, !tbaa !8
  %85 = add nsw i32 %84, 1
  %86 = sext i32 %85 to i64
  %87 = load i32, ptr %10, align 4, !tbaa !8
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [1005 x [1005 x [2 x %"struct.std::pair"]]], ptr @a, i64 0, i64 %86, i64 %88
  %90 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSIiiEENSt9enable_ifIXsr6__and_ISt13is_assignableIRxOT_ES3_IS4_OT0_EEE5valueERS0_E4typeEOS_IS5_S8_E(ptr noundef nonnull align 8 dereferenceable(16) %89, ptr noundef nonnull align 4 dereferenceable(8) %11)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  %91 = load i32, ptr %9, align 4, !tbaa !8
  %92 = add nsw i32 %91, 1
  %93 = sext i32 %92 to i64
  %94 = load i32, ptr %10, align 4, !tbaa !8
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [1005 x [1005 x [2 x i8]]], ptr @used, i64 0, i64 %93, i64 %95
  store i8 1, ptr %96, align 2, !tbaa !12
  br label %133

97:                                               ; preds = %.lr.ph
  %98 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %62, i64 %64
  %99 = load i32, ptr %98, align 8, !tbaa !8
  %100 = sext i32 %60 to i64
  %101 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %100, i64 %64
  %102 = load i32, ptr %101, align 8, !tbaa !8
  %103 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %100)
  %104 = load i8, ptr %103, align 1, !tbaa !5
  %105 = icmp ne i8 %104, 48
  %106 = zext i1 %105 to i32
  %107 = add nsw i32 %102, %106
  %108 = icmp sgt i32 %99, %107
  %.pre78 = load i32, ptr %9, align 4, !tbaa !8
  %.pre80 = load i32, ptr %10, align 4, !tbaa !8
  br i1 %108, label %109, label %133

109:                                              ; preds = %97
  %110 = sext i32 %.pre78 to i64
  %111 = sext i32 %.pre80 to i64
  %112 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %110, i64 %111
  %113 = load i32, ptr %112, align 8, !tbaa !8
  %114 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %110)
  %115 = load i8, ptr %114, align 1, !tbaa !5
  %116 = icmp ne i8 %115, 48
  %117 = zext i1 %116 to i32
  %118 = add nsw i32 %113, %117
  %119 = load i32, ptr %9, align 4, !tbaa !8
  %120 = add nsw i32 %119, 1
  %121 = sext i32 %120 to i64
  %122 = load i32, ptr %10, align 4, !tbaa !8
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %121, i64 %123
  store i32 %118, ptr %124, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #8
  store i32 0, ptr %14, align 4, !tbaa !8
  %125 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %14)
  store i64 %125, ptr %13, align 8
  %126 = load i32, ptr %9, align 4, !tbaa !8
  %127 = add nsw i32 %126, 1
  %128 = sext i32 %127 to i64
  %129 = load i32, ptr %10, align 4, !tbaa !8
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [1005 x [1005 x [2 x %"struct.std::pair"]]], ptr @a, i64 0, i64 %128, i64 %130
  %132 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSIiiEENSt9enable_ifIXsr6__and_ISt13is_assignableIRxOT_ES3_IS4_OT0_EEE5valueERS0_E4typeEOS_IS5_S8_E(ptr noundef nonnull align 8 dereferenceable(16) %131, ptr noundef nonnull align 4 dereferenceable(8) %13)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  %.pre = load i32, ptr %9, align 4, !tbaa !8
  %.pre79 = load i32, ptr %10, align 4, !tbaa !8
  br label %133

133:                                              ; preds = %97, %109, %68
  %134 = phi i32 [ %.pre80, %97 ], [ %.pre79, %109 ], [ %94, %68 ]
  %135 = phi i32 [ %.pre78, %97 ], [ %.pre, %109 ], [ %91, %68 ]
  %136 = add nsw i32 %135, 1
  %137 = sext i32 %136 to i64
  %138 = add nsw i32 %134, 1
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [1005 x [1005 x [2 x i8]]], ptr @used, i64 0, i64 %137, i64 %139
  %141 = load i8, ptr %140, align 2, !tbaa !12, !range !14, !noundef !15
  %142 = trunc nuw i8 %141 to i1
  br i1 %142, label %176, label %143

143:                                              ; preds = %133
  %144 = sext i32 %135 to i64
  %145 = sext i32 %134 to i64
  %146 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %144, i64 %145, i64 1
  %147 = load i32, ptr %146, align 4, !tbaa !8
  %148 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %144)
  %149 = load i8, ptr %148, align 1, !tbaa !5
  %150 = icmp ne i8 %149, 48
  %151 = zext i1 %150 to i32
  %152 = add nsw i32 %147, %151
  %153 = load i32, ptr %9, align 4, !tbaa !8
  %154 = add nsw i32 %153, 1
  %155 = sext i32 %154 to i64
  %156 = load i32, ptr %10, align 4, !tbaa !8
  %157 = add nsw i32 %156, 1
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %155, i64 %158
  store i32 %152, ptr %159, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #8
  store i32 1, ptr %16, align 4, !tbaa !8
  %160 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %16)
  store i64 %160, ptr %15, align 8
  %161 = load i32, ptr %9, align 4, !tbaa !8
  %162 = add nsw i32 %161, 1
  %163 = sext i32 %162 to i64
  %164 = load i32, ptr %10, align 4, !tbaa !8
  %165 = add nsw i32 %164, 1
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [1005 x [1005 x [2 x %"struct.std::pair"]]], ptr @a, i64 0, i64 %163, i64 %166
  %168 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSIiiEENSt9enable_ifIXsr6__and_ISt13is_assignableIRxOT_ES3_IS4_OT0_EEE5valueERS0_E4typeEOS_IS5_S8_E(ptr noundef nonnull align 8 dereferenceable(16) %167, ptr noundef nonnull align 4 dereferenceable(8) %15)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  %169 = load i32, ptr %9, align 4, !tbaa !8
  %170 = add nsw i32 %169, 1
  %171 = sext i32 %170 to i64
  %172 = load i32, ptr %10, align 4, !tbaa !8
  %173 = add nsw i32 %172, 1
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [1005 x [1005 x [2 x i8]]], ptr @used, i64 0, i64 %171, i64 %174
  store i8 1, ptr %175, align 2, !tbaa !12
  br label %215

176:                                              ; preds = %133
  %177 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %137, i64 %139
  %178 = load i32, ptr %177, align 8, !tbaa !8
  %179 = sext i32 %135 to i64
  %180 = sext i32 %134 to i64
  %181 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %179, i64 %180, i64 1
  %182 = load i32, ptr %181, align 4, !tbaa !8
  %183 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %179)
  %184 = load i8, ptr %183, align 1, !tbaa !5
  %185 = icmp ne i8 %184, 48
  %186 = zext i1 %185 to i32
  %187 = add nsw i32 %182, %186
  %188 = icmp sgt i32 %178, %187
  %.pre82 = load i32, ptr %9, align 4, !tbaa !8
  %.pre84 = load i32, ptr %10, align 4, !tbaa !8
  br i1 %188, label %189, label %215

189:                                              ; preds = %176
  %190 = sext i32 %.pre82 to i64
  %191 = sext i32 %.pre84 to i64
  %192 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %190, i64 %191, i64 1
  %193 = load i32, ptr %192, align 4, !tbaa !8
  %194 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %190)
  %195 = load i8, ptr %194, align 1, !tbaa !5
  %196 = icmp ne i8 %195, 48
  %197 = zext i1 %196 to i32
  %198 = add nsw i32 %193, %197
  %199 = load i32, ptr %9, align 4, !tbaa !8
  %200 = add nsw i32 %199, 1
  %201 = sext i32 %200 to i64
  %202 = load i32, ptr %10, align 4, !tbaa !8
  %203 = add nsw i32 %202, 1
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %201, i64 %204
  store i32 %198, ptr %205, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #8
  store i32 1, ptr %18, align 4, !tbaa !8
  %206 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %18)
  store i64 %206, ptr %17, align 8
  %207 = load i32, ptr %9, align 4, !tbaa !8
  %208 = add nsw i32 %207, 1
  %209 = sext i32 %208 to i64
  %210 = load i32, ptr %10, align 4, !tbaa !8
  %211 = add nsw i32 %210, 1
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds [1005 x [1005 x [2 x %"struct.std::pair"]]], ptr @a, i64 0, i64 %209, i64 %212
  %214 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSIiiEENSt9enable_ifIXsr6__and_ISt13is_assignableIRxOT_ES3_IS4_OT0_EEE5valueERS0_E4typeEOS_IS5_S8_E(ptr noundef nonnull align 8 dereferenceable(16) %213, ptr noundef nonnull align 4 dereferenceable(8) %17)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #8
  %.pre81 = load i32, ptr %9, align 4, !tbaa !8
  %.pre83 = load i32, ptr %10, align 4, !tbaa !8
  br label %215

215:                                              ; preds = %176, %189, %143
  %216 = phi i32 [ %.pre84, %176 ], [ %.pre83, %189 ], [ %172, %143 ]
  %217 = phi i32 [ %.pre82, %176 ], [ %.pre81, %189 ], [ %169, %143 ]
  %218 = add nsw i32 %217, 1
  %219 = sext i32 %218 to i64
  %220 = sext i32 %216 to i64
  %221 = getelementptr inbounds [1005 x [1005 x [2 x i8]]], ptr @used, i64 0, i64 %219, i64 %220, i64 1
  %222 = load i8, ptr %221, align 1, !tbaa !12, !range !14, !noundef !15
  %223 = trunc nuw i8 %222 to i1
  br i1 %223, label %253, label %224

224:                                              ; preds = %215
  %225 = sext i32 %217 to i64
  %226 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %225, i64 %220, i64 1
  %227 = load i32, ptr %226, align 4, !tbaa !8
  %228 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %225)
  %229 = load i8, ptr %228, align 1, !tbaa !5
  %230 = icmp ne i8 %229, 49
  %231 = zext i1 %230 to i32
  %232 = add nsw i32 %227, %231
  %233 = load i32, ptr %9, align 4, !tbaa !8
  %234 = add nsw i32 %233, 1
  %235 = sext i32 %234 to i64
  %236 = load i32, ptr %10, align 4, !tbaa !8
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %235, i64 %237, i64 1
  store i32 %232, ptr %238, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #8
  store i32 1, ptr %20, align 4, !tbaa !8
  %239 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %20)
  store i64 %239, ptr %19, align 8
  %240 = load i32, ptr %9, align 4, !tbaa !8
  %241 = add nsw i32 %240, 1
  %242 = sext i32 %241 to i64
  %243 = load i32, ptr %10, align 4, !tbaa !8
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds [1005 x [1005 x [2 x %"struct.std::pair"]]], ptr @a, i64 0, i64 %242, i64 %244, i64 1
  %246 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSIiiEENSt9enable_ifIXsr6__and_ISt13is_assignableIRxOT_ES3_IS4_OT0_EEE5valueERS0_E4typeEOS_IS5_S8_E(ptr noundef nonnull align 8 dereferenceable(16) %245, ptr noundef nonnull align 4 dereferenceable(8) %19)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #8
  %247 = load i32, ptr %9, align 4, !tbaa !8
  %248 = add nsw i32 %247, 1
  %249 = sext i32 %248 to i64
  %250 = load i32, ptr %10, align 4, !tbaa !8
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds [1005 x [1005 x [2 x i8]]], ptr @used, i64 0, i64 %249, i64 %251, i64 1
  store i8 1, ptr %252, align 1, !tbaa !12
  br label %289

253:                                              ; preds = %215
  %254 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %219, i64 %220, i64 1
  %255 = load i32, ptr %254, align 4, !tbaa !8
  %256 = sext i32 %217 to i64
  %257 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %256, i64 %220, i64 1
  %258 = load i32, ptr %257, align 4, !tbaa !8
  %259 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %256)
  %260 = load i8, ptr %259, align 1, !tbaa !5
  %261 = icmp ne i8 %260, 49
  %262 = zext i1 %261 to i32
  %263 = add nsw i32 %258, %262
  %264 = icmp sgt i32 %255, %263
  %.pre86 = load i32, ptr %9, align 4, !tbaa !8
  %.pre88 = load i32, ptr %10, align 4, !tbaa !8
  br i1 %264, label %265, label %289

265:                                              ; preds = %253
  %266 = sext i32 %.pre86 to i64
  %267 = sext i32 %.pre88 to i64
  %268 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %266, i64 %267, i64 1
  %269 = load i32, ptr %268, align 4, !tbaa !8
  %270 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %266)
  %271 = load i8, ptr %270, align 1, !tbaa !5
  %272 = icmp ne i8 %271, 49
  %273 = zext i1 %272 to i32
  %274 = add nsw i32 %269, %273
  %275 = load i32, ptr %9, align 4, !tbaa !8
  %276 = add nsw i32 %275, 1
  %277 = sext i32 %276 to i64
  %278 = load i32, ptr %10, align 4, !tbaa !8
  %279 = sext i32 %278 to i64
  %280 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %277, i64 %279, i64 1
  store i32 %274, ptr %280, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #8
  store i32 1, ptr %22, align 4, !tbaa !8
  %281 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %22)
  store i64 %281, ptr %21, align 8
  %282 = load i32, ptr %9, align 4, !tbaa !8
  %283 = add nsw i32 %282, 1
  %284 = sext i32 %283 to i64
  %285 = load i32, ptr %10, align 4, !tbaa !8
  %286 = sext i32 %285 to i64
  %287 = getelementptr inbounds [1005 x [1005 x [2 x %"struct.std::pair"]]], ptr @a, i64 0, i64 %284, i64 %286, i64 1
  %288 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSIiiEENSt9enable_ifIXsr6__and_ISt13is_assignableIRxOT_ES3_IS4_OT0_EEE5valueERS0_E4typeEOS_IS5_S8_E(ptr noundef nonnull align 8 dereferenceable(16) %287, ptr noundef nonnull align 4 dereferenceable(8) %21)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #8
  %.pre85 = load i32, ptr %9, align 4, !tbaa !8
  %.pre87 = load i32, ptr %10, align 4, !tbaa !8
  br label %289

289:                                              ; preds = %253, %265, %224
  %290 = phi i32 [ %.pre88, %253 ], [ %.pre87, %265 ], [ %250, %224 ]
  %291 = phi i32 [ %.pre86, %253 ], [ %.pre85, %265 ], [ %247, %224 ]
  %292 = add nsw i32 %291, 1
  %293 = sext i32 %292 to i64
  %294 = add nsw i32 %290, 1
  %295 = sext i32 %294 to i64
  %296 = getelementptr inbounds [1005 x [1005 x [2 x i8]]], ptr @used, i64 0, i64 %293, i64 %295, i64 1
  %297 = load i8, ptr %296, align 1, !tbaa !12, !range !14, !noundef !15
  %298 = trunc nuw i8 %297 to i1
  br i1 %298, label %332, label %299

299:                                              ; preds = %289
  %300 = sext i32 %291 to i64
  %301 = sext i32 %290 to i64
  %302 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %300, i64 %301
  %303 = load i32, ptr %302, align 8, !tbaa !8
  %304 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %300)
  %305 = load i8, ptr %304, align 1, !tbaa !5
  %306 = icmp ne i8 %305, 49
  %307 = zext i1 %306 to i32
  %308 = add nsw i32 %303, %307
  %309 = load i32, ptr %9, align 4, !tbaa !8
  %310 = add nsw i32 %309, 1
  %311 = sext i32 %310 to i64
  %312 = load i32, ptr %10, align 4, !tbaa !8
  %313 = add nsw i32 %312, 1
  %314 = sext i32 %313 to i64
  %315 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %311, i64 %314, i64 1
  store i32 %308, ptr %315, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #8
  store i32 0, ptr %24, align 4, !tbaa !8
  %316 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %24)
  store i64 %316, ptr %23, align 8
  %317 = load i32, ptr %9, align 4, !tbaa !8
  %318 = add nsw i32 %317, 1
  %319 = sext i32 %318 to i64
  %320 = load i32, ptr %10, align 4, !tbaa !8
  %321 = add nsw i32 %320, 1
  %322 = sext i32 %321 to i64
  %323 = getelementptr inbounds [1005 x [1005 x [2 x %"struct.std::pair"]]], ptr @a, i64 0, i64 %319, i64 %322, i64 1
  %324 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSIiiEENSt9enable_ifIXsr6__and_ISt13is_assignableIRxOT_ES3_IS4_OT0_EEE5valueERS0_E4typeEOS_IS5_S8_E(ptr noundef nonnull align 8 dereferenceable(16) %323, ptr noundef nonnull align 4 dereferenceable(8) %23)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #8
  %325 = load i32, ptr %9, align 4, !tbaa !8
  %326 = add nsw i32 %325, 1
  %327 = sext i32 %326 to i64
  %328 = load i32, ptr %10, align 4, !tbaa !8
  %329 = add nsw i32 %328, 1
  %330 = sext i32 %329 to i64
  %331 = getelementptr inbounds [1005 x [1005 x [2 x i8]]], ptr @used, i64 0, i64 %327, i64 %330, i64 1
  store i8 1, ptr %331, align 1, !tbaa !12
  br label %372

332:                                              ; preds = %289
  %333 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %293, i64 %295, i64 1
  %334 = load i32, ptr %333, align 4, !tbaa !8
  %335 = sext i32 %291 to i64
  %336 = sext i32 %290 to i64
  %337 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %335, i64 %336
  %338 = load i32, ptr %337, align 8, !tbaa !8
  %339 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %335)
  %340 = load i8, ptr %339, align 1, !tbaa !5
  %341 = icmp ne i8 %340, 49
  %342 = zext i1 %341 to i32
  %343 = add nsw i32 %338, %342
  %344 = icmp sgt i32 %334, %343
  %.pre90 = load i32, ptr %10, align 4, !tbaa !8
  br i1 %344, label %345, label %372

345:                                              ; preds = %332
  %346 = load i32, ptr %9, align 4, !tbaa !8
  %347 = sext i32 %346 to i64
  %348 = sext i32 %.pre90 to i64
  %349 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %347, i64 %348
  %350 = load i32, ptr %349, align 8, !tbaa !8
  %351 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %347)
  %352 = load i8, ptr %351, align 1, !tbaa !5
  %353 = icmp ne i8 %352, 49
  %354 = zext i1 %353 to i32
  %355 = add nsw i32 %350, %354
  %356 = load i32, ptr %9, align 4, !tbaa !8
  %357 = add nsw i32 %356, 1
  %358 = sext i32 %357 to i64
  %359 = load i32, ptr %10, align 4, !tbaa !8
  %360 = add nsw i32 %359, 1
  %361 = sext i32 %360 to i64
  %362 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %358, i64 %361, i64 1
  store i32 %355, ptr %362, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %26) #8
  store i32 0, ptr %26, align 4, !tbaa !8
  %363 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %26)
  store i64 %363, ptr %25, align 8
  %364 = load i32, ptr %9, align 4, !tbaa !8
  %365 = add nsw i32 %364, 1
  %366 = sext i32 %365 to i64
  %367 = load i32, ptr %10, align 4, !tbaa !8
  %368 = add nsw i32 %367, 1
  %369 = sext i32 %368 to i64
  %370 = getelementptr inbounds [1005 x [1005 x [2 x %"struct.std::pair"]]], ptr @a, i64 0, i64 %366, i64 %369, i64 1
  %371 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSIiiEENSt9enable_ifIXsr6__and_ISt13is_assignableIRxOT_ES3_IS4_OT0_EEE5valueERS0_E4typeEOS_IS5_S8_E(ptr noundef nonnull align 8 dereferenceable(16) %370, ptr noundef nonnull align 4 dereferenceable(8) %25)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #8
  %.pre89 = load i32, ptr %10, align 4, !tbaa !8
  br label %372

372:                                              ; preds = %299, %345, %332
  %373 = phi i32 [ %328, %299 ], [ %.pre89, %345 ], [ %.pre90, %332 ]
  %374 = add nsw i32 %373, 1
  store i32 %374, ptr %10, align 4, !tbaa !8
  %375 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %376 = load i32, ptr %375, align 4, !tbaa !8
  %.not46.not = icmp slt i32 %373, %376
  br i1 %.not46.not, label %.lr.ph, label %._crit_edge, !llvm.loop !16

._crit_edge59.loopexit:                           ; preds = %393
  %377 = add nuw nsw i8 %.237, 48
  br label %._crit_edge59

._crit_edge59:                                    ; preds = %._crit_edge59.loopexit, %._crit_edge53
  %.035.lcssa = phi i8 [ 48, %._crit_edge53 ], [ %377, %._crit_edge59.loopexit ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %28) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %29) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef nonnull @.str.4, ptr noundef nonnull align 1 dereferenceable(1) %29)
          to label %395 unwind label %401

.lr.ph58:                                         ; preds = %.lr.ph58.preheader, %393
  %indvars.iv = phi i64 [ %53, %.lr.ph58.preheader ], [ %indvars.iv.next, %393 ]
  %.02856 = phi i32 [ %50, %.lr.ph58.preheader ], [ %.2, %393 ]
  %.03554 = phi i8 [ 0, %.lr.ph58.preheader ], [ %.237, %393 ]
  %378 = load i32, ptr %1, align 4, !tbaa !8
  %379 = sext i32 %378 to i64
  %380 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %379, i64 %indvars.iv
  %381 = load i32, ptr %380, align 8, !tbaa !8
  %382 = icmp slt i32 %381, %.02856
  br i1 %382, label %383, label %386

383:                                              ; preds = %.lr.ph58
  %384 = getelementptr inbounds [1005 x [1005 x [2 x %"struct.std::pair"]]], ptr @a, i64 0, i64 %379, i64 %indvars.iv
  %385 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(16) %384)
  %.pre91 = load i32, ptr %1, align 4, !tbaa !8
  %.pre92 = sext i32 %.pre91 to i64
  br label %386

386:                                              ; preds = %383, %.lr.ph58
  %.pre-phi = phi i64 [ %.pre92, %383 ], [ %379, %.lr.ph58 ]
  %.136 = phi i8 [ 0, %383 ], [ %.03554, %.lr.ph58 ]
  %.1 = phi i32 [ %381, %383 ], [ %.02856, %.lr.ph58 ]
  %387 = getelementptr inbounds [1005 x [1005 x [2 x i32]]], ptr @d, i64 0, i64 %.pre-phi, i64 %indvars.iv, i64 1
  %388 = load i32, ptr %387, align 4, !tbaa !8
  %389 = icmp slt i32 %388, %.1
  br i1 %389, label %390, label %393

390:                                              ; preds = %386
  %391 = getelementptr inbounds [1005 x [1005 x [2 x %"struct.std::pair"]]], ptr @a, i64 0, i64 %.pre-phi, i64 %indvars.iv, i64 1
  %392 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(16) %391)
  br label %393

393:                                              ; preds = %386, %390
  %.237 = phi i8 [ 1, %390 ], [ %.136, %386 ]
  %.2 = phi i32 [ %388, %390 ], [ %.1, %386 ]
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %394 = icmp sgt i64 %indvars.iv, 1
  br i1 %394, label %.lr.ph58, label %._crit_edge59.loopexit, !llvm.loop !17

395:                                              ; preds = %._crit_edge59
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %29) #8
  %396 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %28, i8 noundef signext %.035.lcssa)
          to label %397 unwind label %403

397:                                              ; preds = %395
  %398 = load i32, ptr %1, align 4, !tbaa !8
  %.old1 = icmp slt i32 %398, 2
  br i1 %.old1, label %.loopexit49, label %.preheader48

.preheader48:                                     ; preds = %397
  %399 = getelementptr inbounds i8, ptr %27, i64 8
  %400 = zext nneg i32 %398 to i64
  br label %405

401:                                              ; preds = %._crit_edge59
  %402 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %29) #8
  br label %435

403:                                              ; preds = %395
  %404 = landingpad { ptr, i32 }
          cleanup
  br label %434

405:                                              ; preds = %.preheader48, %414
  %indvars.iv69 = phi i64 [ %400, %.preheader48 ], [ %indvars.iv.next70, %414 ]
  %406 = load i64, ptr %27, align 8, !tbaa !18
  %407 = load i64, ptr %399, align 8, !tbaa !21
  %408 = getelementptr inbounds [1005 x [1005 x [2 x %"struct.std::pair"]]], ptr @a, i64 0, i64 %indvars.iv69, i64 %406, i64 %407
  %409 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(16) %408)
  %410 = load i64, ptr %399, align 8, !tbaa !21
  %411 = trunc i64 %410 to i8
  %412 = add i8 %411, 48
  %413 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %28, i8 noundef signext %412)
          to label %414 unwind label %.loopexit

414:                                              ; preds = %405
  %indvars.iv.next70 = add nsw i64 %indvars.iv69, -1
  %415 = icmp slt i64 %indvars.iv69, 3
  br i1 %415, label %.loopexit49, label %405, !llvm.loop !22

.loopexit:                                        ; preds = %405
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %434

.loopexit.split-lp:                               ; preds = %.loopexit49, %418, %420
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %434

.loopexit49:                                      ; preds = %414, %397
  %416 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %28) #8
  %417 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %28) #8
  invoke void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvT_SA_(ptr %416, ptr %417)
          to label %418 unwind label %.loopexit.split-lp

418:                                              ; preds = %.loopexit49
  %419 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %28)
          to label %420 unwind label %.loopexit.split-lp

420:                                              ; preds = %418
  %421 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %419, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.preheader47 unwind label %.loopexit.split-lp

.preheader47:                                     ; preds = %420
  %422 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %423 = load i32, ptr %422, align 4, !tbaa !8
  %.not65 = icmp slt i32 %423, 0
  br i1 %.not65, label %._crit_edge67, label %.preheader

.preheader:                                       ; preds = %.preheader47, %._crit_edge64
  %indvars.iv75 = phi i64 [ %indvars.iv.next76, %._crit_edge64 ], [ 0, %.preheader47 ]
  %424 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %425 = load i32, ptr %424, align 4, !tbaa !8
  %.not4461 = icmp slt i32 %425, 0
  br i1 %.not4461, label %._crit_edge64, label %.lr.ph63

._crit_edge67:                                    ; preds = %._crit_edge64, %.preheader47
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %28) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %27) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  ret void

._crit_edge64:                                    ; preds = %.lr.ph63, %.preheader
  %indvars.iv.next76 = add nuw nsw i64 %indvars.iv75, 1
  %426 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %427 = load i32, ptr %426, align 4, !tbaa !8
  %428 = sext i32 %427 to i64
  %.not.not = icmp slt i64 %indvars.iv75, %428
  br i1 %.not.not, label %.preheader, label %._crit_edge67, !llvm.loop !23

.lr.ph63:                                         ; preds = %.preheader, %.lr.ph63
  %indvars.iv72 = phi i64 [ %indvars.iv.next73, %.lr.ph63 ], [ 0, %.preheader ]
  %429 = getelementptr inbounds [1005 x [1005 x [2 x i8]]], ptr @used, i64 0, i64 %indvars.iv75, i64 %indvars.iv72
  store i8 0, ptr %429, align 2, !tbaa !12
  %430 = getelementptr inbounds i8, ptr %429, i64 1
  store i8 0, ptr %430, align 1, !tbaa !12
  %indvars.iv.next73 = add nuw nsw i64 %indvars.iv72, 1
  %431 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %432 = load i32, ptr %431, align 4, !tbaa !8
  %433 = sext i32 %432 to i64
  %.not44.not = icmp slt i64 %indvars.iv72, %433
  br i1 %.not44.not, label %.lr.ph63, label %._crit_edge64, !llvm.loop !24

434:                                              ; preds = %.loopexit, %.loopexit.split-lp, %403
  %.pn = phi { ptr, i32 } [ %404, %403 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #8
  br label %435

435:                                              ; preds = %434, %401
  %.pn.pn = phi { ptr, i32 } [ %.pn, %434 ], [ %402, %401 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %28) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %27) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn.pn
}

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

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

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #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 nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvT_SA_(ptr, ptr) local_unnamed_addr #7

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

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

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

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

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

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

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

!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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !6, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!13, !13, i64 0}
!13 = !{!"bool", !6, i64 0}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = distinct !{!16, !11}
!17 = distinct !{!17, !11}
!18 = !{!19, !20, i64 0}
!19 = !{!"_ZTSSt4pairIxxE", !20, i64 0, !20, i64 8}
!20 = !{!"long long", !6, i64 0}
!21 = !{!19, !20, i64 8}
!22 = distinct !{!22, !11}
!23 = distinct !{!23, !11}
!24 = distinct !{!24, !11}


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