; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/170 Division 1/Problem C (C)

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

%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::vector<std::pair<int, int>>>, std::_Select1st<std::pair<const int, std::vector<std::pair<int, int>>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::vector<std::pair<int, int>>>, std::_Select1st<std::pair<const int, std::vector<std::pair<int, int>>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::map.0" = type { %"class.std::_Rb_tree.1" }
%"class.std::_Rb_tree.1" = type { %"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::pair" = type { i32, i32 }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::pair.8" = type { i32, %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@k = external dso_local global i32, align 4
@row = external dso_local global %"class.std::map", align 8
@col = external dso_local global %"class.std::map", align 8
@crow = external dso_local global %"class.std::map.0", align 8
@ccol = external dso_local global %"class.std::map.0", align 8
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [111 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5mergeRSt6vectorISt4pairIiiESaIS1_EE(ptr noundef nonnull align 8 dereferenceable(24)) #0

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

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"struct.std::pair", align 4
  %8 = alloca %"struct.std::pair", align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %13 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca i32, align 4
  %18 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %22 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %23 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %26 = alloca i32, align 4
  %27 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %28 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %30 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %31 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %32 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca ptr, align 8
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca %"struct.std::pair", align 4
  %41 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %42 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %43 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %44 = alloca i32, align 4
  %45 = alloca i32, align 4
  %46 = alloca i32, align 4
  %47 = alloca ptr, align 8
  %48 = alloca i32, align 4
  %49 = alloca i32, align 4
  %50 = alloca i32, align 4
  %51 = alloca %"struct.std::pair", align 4
  %52 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %53 = alloca i32, align 4
  %54 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %55 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef @m, ptr noundef @k)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %56

56:                                               ; preds = %84, %0
  %57 = load i32, ptr %6, align 4, !tbaa !5
  %58 = load i32, ptr @k, align 4, !tbaa !5
  %59 = icmp slt i32 %57, %58
  br i1 %59, label %61, label %60

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

61:                                               ; preds = %56
  %62 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.5, ptr noundef %2, ptr noundef %3)
  %63 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.5, ptr noundef %4, ptr noundef %5)
  %64 = load i32, ptr %2, align 4, !tbaa !5
  %65 = load i32, ptr %4, align 4, !tbaa !5
  %66 = icmp eq i32 %64, %65
  br i1 %66, label %67, label %75

67:                                               ; preds = %61
  %68 = load i32, ptr %3, align 4, !tbaa !5
  %69 = load i32, ptr %5, align 4, !tbaa !5
  %70 = icmp sgt i32 %68, %69
  br i1 %70, label %71, label %72

71:                                               ; preds = %67
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %5) #8
  br label %72

72:                                               ; preds = %71, %67
  %73 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(48) @row, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %74 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %5)
  store i64 %74, ptr %7, align 4
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %73, ptr noundef nonnull align 4 dereferenceable(8) %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  br label %83

75:                                               ; preds = %61
  %76 = load i32, ptr %2, align 4, !tbaa !5
  %77 = load i32, ptr %4, align 4, !tbaa !5
  %78 = icmp sgt i32 %76, %77
  br i1 %78, label %79, label %80

79:                                               ; preds = %75
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %4) #8
  br label %80

80:                                               ; preds = %79, %75
  %81 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(48) @col, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %82 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %4)
  store i64 %82, ptr %8, align 4
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %81, ptr noundef nonnull align 4 dereferenceable(8) %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  br label %83

83:                                               ; preds = %80, %72
  br label %84

84:                                               ; preds = %83
  %85 = load i32, ptr %6, align 4, !tbaa !5
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr %6, align 4, !tbaa !5
  br label %56, !llvm.loop !9

87:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  store i32 0, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 0, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 0, ptr %11, align 4, !tbaa !5
  %88 = load i32, ptr @n, align 4, !tbaa !5
  %89 = sub nsw i32 %88, 1
  %90 = call noundef i64 @_ZNKSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) @row) #8
  %91 = trunc i64 %90 to i32
  %92 = sub nsw i32 %89, %91
  store i32 %92, ptr %10, align 4, !tbaa !5
  %93 = load i32, ptr %10, align 4, !tbaa !5
  %94 = srem i32 %93, 2
  %95 = icmp ne i32 %94, 0
  br i1 %95, label %96, label %100

96:                                               ; preds = %87
  %97 = load i32, ptr @m, align 4, !tbaa !5
  %98 = load i32, ptr %9, align 4, !tbaa !5
  %99 = xor i32 %98, %97
  store i32 %99, ptr %9, align 4, !tbaa !5
  br label %100

100:                                              ; preds = %96, %87
  %101 = load i32, ptr @m, align 4, !tbaa !5
  %102 = sub nsw i32 %101, 1
  %103 = call noundef i64 @_ZNKSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) @col) #8
  %104 = trunc i64 %103 to i32
  %105 = sub nsw i32 %102, %104
  store i32 %105, ptr %10, align 4, !tbaa !5
  %106 = load i32, ptr %10, align 4, !tbaa !5
  %107 = srem i32 %106, 2
  %108 = icmp ne i32 %107, 0
  br i1 %108, label %109, label %113

109:                                              ; preds = %100
  %110 = load i32, ptr @n, align 4, !tbaa !5
  %111 = load i32, ptr %9, align 4, !tbaa !5
  %112 = xor i32 %111, %110
  store i32 %112, ptr %9, align 4, !tbaa !5
  br label %113

113:                                              ; preds = %109, %100
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %114 = call ptr @_ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) @row) #8
  %115 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %12, i32 0, i32 0
  store ptr %114, ptr %115, align 8
  br label %116

116:                                              ; preds = %169, %113
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %117 = call ptr @_ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @row) #8
  %118 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %13, i32 0, i32 0
  store ptr %117, ptr %118, align 8
  %119 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEES9_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br i1 %119, label %121, label %120

120:                                              ; preds = %116
  store i32 5, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %172

121:                                              ; preds = %116
  %122 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  %123 = getelementptr inbounds %"struct.std::pair.8", ptr %122, i32 0, i32 1
  %124 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %123) #8
  %125 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %124, ptr %125, align 8
  %126 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  %127 = getelementptr inbounds %"struct.std::pair.8", ptr %126, i32 0, i32 1
  %128 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %127) #8
  %129 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %128, ptr %129, align 8
  %130 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  %131 = load ptr, ptr %130, align 8
  %132 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  %133 = load ptr, ptr %132, align 8
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %131, ptr %133)
  %134 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  %135 = getelementptr inbounds %"struct.std::pair.8", ptr %134, i32 0, i32 1
  call void @_Z5mergeRSt6vectorISt4pairIiiESaIS1_EE(ptr noundef nonnull align 8 dereferenceable(24) %135)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  %136 = load i32, ptr @m, align 4, !tbaa !5
  store i32 %136, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %137 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  %138 = getelementptr inbounds %"struct.std::pair.8", ptr %137, i32 0, i32 1
  %139 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %138) #8
  %140 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  store ptr %139, ptr %140, align 8
  br label %141

141:                                              ; preds = %158, %121
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %142 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  %143 = getelementptr inbounds %"struct.std::pair.8", ptr %142, i32 0, i32 1
  %144 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %143) #8
  %145 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  store ptr %144, ptr %145, align 8
  %146 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br i1 %146, label %148, label %147

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

148:                                              ; preds = %141
  %149 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #8
  %150 = getelementptr inbounds %"struct.std::pair", ptr %149, i32 0, i32 1
  %151 = load i32, ptr %150, align 4, !tbaa !11
  %152 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #8
  %153 = getelementptr inbounds %"struct.std::pair", ptr %152, i32 0, i32 0
  %154 = load i32, ptr %153, align 4, !tbaa !13
  %155 = sub nsw i32 %151, %154
  %156 = load i32, ptr %17, align 4, !tbaa !5
  %157 = sub nsw i32 %156, %155
  store i32 %157, ptr %17, align 4, !tbaa !5
  br label %158

158:                                              ; preds = %148
  %159 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %18, i32 noundef 0) #8
  %160 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  store ptr %159, ptr %160, align 8
  br label %141, !llvm.loop !14

161:                                              ; preds = %147
  %162 = load i32, ptr %17, align 4, !tbaa !5
  %163 = load i32, ptr %9, align 4, !tbaa !5
  %164 = xor i32 %163, %162
  store i32 %164, ptr %9, align 4, !tbaa !5
  %165 = load i32, ptr %17, align 4, !tbaa !5
  %166 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  %167 = getelementptr inbounds %"struct.std::pair.8", ptr %166, i32 0, i32 0
  %168 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) @crow, ptr noundef nonnull align 4 dereferenceable(4) %167)
  store i32 %165, ptr %168, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %169

169:                                              ; preds = %161
  %170 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %12, i32 noundef 0) #8
  %171 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %21, i32 0, i32 0
  store ptr %170, ptr %171, align 8
  br label %116, !llvm.loop !15

172:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %173 = call ptr @_ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) @col) #8
  %174 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %22, i32 0, i32 0
  store ptr %173, ptr %174, align 8
  br label %175

175:                                              ; preds = %228, %172
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %176 = call ptr @_ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @col) #8
  %177 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %23, i32 0, i32 0
  store ptr %176, ptr %177, align 8
  %178 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEES9_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br i1 %178, label %180, label %179

179:                                              ; preds = %175
  store i32 11, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %231

180:                                              ; preds = %175
  %181 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #8
  %182 = getelementptr inbounds %"struct.std::pair.8", ptr %181, i32 0, i32 1
  %183 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %182) #8
  %184 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %24, i32 0, i32 0
  store ptr %183, ptr %184, align 8
  %185 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #8
  %186 = getelementptr inbounds %"struct.std::pair.8", ptr %185, i32 0, i32 1
  %187 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %186) #8
  %188 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %25, i32 0, i32 0
  store ptr %187, ptr %188, align 8
  %189 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %24, i32 0, i32 0
  %190 = load ptr, ptr %189, align 8
  %191 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %25, i32 0, i32 0
  %192 = load ptr, ptr %191, align 8
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %190, ptr %192)
  %193 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #8
  %194 = getelementptr inbounds %"struct.std::pair.8", ptr %193, i32 0, i32 1
  call void @_Z5mergeRSt6vectorISt4pairIiiESaIS1_EE(ptr noundef nonnull align 8 dereferenceable(24) %194)
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  %195 = load i32, ptr @n, align 4, !tbaa !5
  store i32 %195, ptr %26, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %196 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #8
  %197 = getelementptr inbounds %"struct.std::pair.8", ptr %196, i32 0, i32 1
  %198 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %197) #8
  %199 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %27, i32 0, i32 0
  store ptr %198, ptr %199, align 8
  br label %200

200:                                              ; preds = %217, %180
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  %201 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #8
  %202 = getelementptr inbounds %"struct.std::pair.8", ptr %201, i32 0, i32 1
  %203 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %202) #8
  %204 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %28, i32 0, i32 0
  store ptr %203, ptr %204, align 8
  %205 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  br i1 %205, label %207, label %206

206:                                              ; preds = %200
  store i32 14, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  br label %220

207:                                              ; preds = %200
  %208 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #8
  %209 = getelementptr inbounds %"struct.std::pair", ptr %208, i32 0, i32 1
  %210 = load i32, ptr %209, align 4, !tbaa !11
  %211 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #8
  %212 = getelementptr inbounds %"struct.std::pair", ptr %211, i32 0, i32 0
  %213 = load i32, ptr %212, align 4, !tbaa !13
  %214 = sub nsw i32 %210, %213
  %215 = load i32, ptr %26, align 4, !tbaa !5
  %216 = sub nsw i32 %215, %214
  store i32 %216, ptr %26, align 4, !tbaa !5
  br label %217

217:                                              ; preds = %207
  %218 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %27, i32 noundef 0) #8
  %219 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %29, i32 0, i32 0
  store ptr %218, ptr %219, align 8
  br label %200, !llvm.loop !16

220:                                              ; preds = %206
  %221 = load i32, ptr %26, align 4, !tbaa !5
  %222 = load i32, ptr %9, align 4, !tbaa !5
  %223 = xor i32 %222, %221
  store i32 %223, ptr %9, align 4, !tbaa !5
  %224 = load i32, ptr %26, align 4, !tbaa !5
  %225 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #8
  %226 = getelementptr inbounds %"struct.std::pair.8", ptr %225, i32 0, i32 0
  %227 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) @ccol, ptr noundef nonnull align 4 dereferenceable(4) %226)
  store i32 %224, ptr %227, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %228

228:                                              ; preds = %220
  %229 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %22, i32 noundef 0) #8
  %230 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %30, i32 0, i32 0
  store ptr %229, ptr %230, align 8
  br label %175, !llvm.loop !17

231:                                              ; preds = %179
  %232 = load i32, ptr %9, align 4, !tbaa !5
  %233 = icmp eq i32 %232, 0
  br i1 %233, label %234, label %236

234:                                              ; preds = %231
  %235 = call i32 @puts(ptr noundef @.str.6)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %14, align 4
  br label %538

236:                                              ; preds = %231
  %237 = call i32 @puts(ptr noundef @.str.7)
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %238 = call ptr @_ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) @row) #8
  %239 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %31, i32 0, i32 0
  store ptr %238, ptr %239, align 8
  br label %240

240:                                              ; preds = %354, %236
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  %241 = call ptr @_ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @row) #8
  %242 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %32, i32 0, i32 0
  store ptr %241, ptr %242, align 8
  %243 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEES9_(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 8 dereferenceable(8) %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  br i1 %243, label %245, label %244

244:                                              ; preds = %240
  store i32 17, ptr %14, align 4
  br label %357

245:                                              ; preds = %240
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #8
  %246 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %31) #8
  %247 = getelementptr inbounds %"struct.std::pair.8", ptr %246, i32 0, i32 0
  %248 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) @crow, ptr noundef nonnull align 4 dereferenceable(4) %247)
  %249 = load i32, ptr %248, align 4, !tbaa !5
  store i32 %249, ptr %33, align 4, !tbaa !5
  %250 = load i32, ptr %33, align 4, !tbaa !5
  %251 = load i32, ptr %9, align 4, !tbaa !5
  %252 = xor i32 %250, %251
  %253 = load i32, ptr %33, align 4, !tbaa !5
  %254 = icmp slt i32 %252, %253
  br i1 %254, label %255, label %350

255:                                              ; preds = %245
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #8
  %256 = load i32, ptr %33, align 4, !tbaa !5
  %257 = load i32, ptr %9, align 4, !tbaa !5
  %258 = xor i32 %256, %257
  store i32 %258, ptr %34, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #8
  %259 = load i32, ptr %33, align 4, !tbaa !5
  %260 = load i32, ptr %34, align 4, !tbaa !5
  %261 = sub nsw i32 %259, %260
  store i32 %261, ptr %35, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #8
  %262 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %31) #8
  %263 = getelementptr inbounds %"struct.std::pair.8", ptr %262, i32 0, i32 1
  store ptr %263, ptr %36, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #8
  %264 = load ptr, ptr %36, align 8, !tbaa !18
  %265 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %264, i64 noundef 0) #8
  %266 = getelementptr inbounds %"struct.std::pair", ptr %265, i32 0, i32 0
  %267 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %266, ptr noundef nonnull align 4 dereferenceable(4) %35)
  %268 = load i32, ptr %267, align 4, !tbaa !5
  store i32 %268, ptr %37, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #8
  %269 = load ptr, ptr %36, align 8, !tbaa !18
  %270 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %269, i64 noundef 0) #8
  %271 = getelementptr inbounds %"struct.std::pair", ptr %270, i32 0, i32 0
  %272 = load i32, ptr %271, align 4, !tbaa !13
  store i32 %272, ptr %38, align 4, !tbaa !5
  %273 = load i32, ptr %37, align 4, !tbaa !5
  %274 = load i32, ptr %38, align 4, !tbaa !5
  %275 = icmp slt i32 %273, %274
  br i1 %275, label %276, label %278

276:                                              ; preds = %255
  %277 = load i32, ptr %37, align 4, !tbaa !5
  store i32 %277, ptr %38, align 4, !tbaa !5
  br label %278

278:                                              ; preds = %276, %255
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #8
  store i32 1, ptr %39, align 4, !tbaa !5
  %279 = load ptr, ptr %36, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #8
  %280 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) @m, ptr noundef nonnull align 4 dereferenceable(4) @m)
  store i64 %280, ptr %40, align 4
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %279, ptr noundef nonnull align 4 dereferenceable(8) %40)
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  br label %281

281:                                              ; preds = %325, %278
  %282 = load i32, ptr %37, align 4, !tbaa !5
  %283 = load i32, ptr %35, align 4, !tbaa !5
  %284 = icmp slt i32 %282, %283
  br i1 %284, label %285, label %291

285:                                              ; preds = %281
  %286 = load i32, ptr %39, align 4, !tbaa !5
  %287 = sext i32 %286 to i64
  %288 = load ptr, ptr %36, align 8, !tbaa !18
  %289 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %288) #8
  %290 = icmp ult i64 %287, %289
  br label %291

291:                                              ; preds = %285, %281
  %292 = phi i1 [ false, %281 ], [ %290, %285 ]
  br i1 %292, label %293, label %328

293:                                              ; preds = %291
  %294 = load ptr, ptr %36, align 8, !tbaa !18
  %295 = load i32, ptr %39, align 4, !tbaa !5
  %296 = sext i32 %295 to i64
  %297 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %294, i64 noundef %296) #8
  %298 = getelementptr inbounds %"struct.std::pair", ptr %297, i32 0, i32 0
  %299 = load i32, ptr %298, align 4, !tbaa !13
  %300 = load ptr, ptr %36, align 8, !tbaa !18
  %301 = load i32, ptr %39, align 4, !tbaa !5
  %302 = sub nsw i32 %301, 1
  %303 = sext i32 %302 to i64
  %304 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %300, i64 noundef %303) #8
  %305 = getelementptr inbounds %"struct.std::pair", ptr %304, i32 0, i32 1
  %306 = load i32, ptr %305, align 4, !tbaa !11
  %307 = sub nsw i32 %299, %306
  %308 = load i32, ptr %37, align 4, !tbaa !5
  %309 = add nsw i32 %308, %307
  store i32 %309, ptr %37, align 4, !tbaa !5
  %310 = load ptr, ptr %36, align 8, !tbaa !18
  %311 = load i32, ptr %39, align 4, !tbaa !5
  %312 = sext i32 %311 to i64
  %313 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %310, i64 noundef %312) #8
  %314 = getelementptr inbounds %"struct.std::pair", ptr %313, i32 0, i32 0
  %315 = load i32, ptr %314, align 4, !tbaa !13
  store i32 %315, ptr %38, align 4, !tbaa !5
  %316 = load i32, ptr %37, align 4, !tbaa !5
  %317 = load i32, ptr %35, align 4, !tbaa !5
  %318 = icmp sge i32 %316, %317
  br i1 %318, label %319, label %325

319:                                              ; preds = %293
  %320 = load i32, ptr %37, align 4, !tbaa !5
  %321 = load i32, ptr %35, align 4, !tbaa !5
  %322 = sub nsw i32 %320, %321
  %323 = load i32, ptr %38, align 4, !tbaa !5
  %324 = sub nsw i32 %323, %322
  store i32 %324, ptr %38, align 4, !tbaa !5
  br label %328

325:                                              ; preds = %293
  %326 = load i32, ptr %39, align 4, !tbaa !5
  %327 = add nsw i32 %326, 1
  store i32 %327, ptr %39, align 4, !tbaa !5
  br label %281, !llvm.loop !20

328:                                              ; preds = %319, %291
  %329 = load i32, ptr %37, align 4, !tbaa !5
  %330 = load i32, ptr %35, align 4, !tbaa !5
  %331 = icmp slt i32 %329, %330
  br i1 %331, label %332, label %333

332:                                              ; preds = %328
  store i32 19, ptr %14, align 4
  br label %349

333:                                              ; preds = %328
  %334 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %31) #8
  %335 = getelementptr inbounds %"struct.std::pair.8", ptr %334, i32 0, i32 0
  %336 = load i32, ptr %335, align 8, !tbaa !21
  %337 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %31) #8
  %338 = getelementptr inbounds %"struct.std::pair.8", ptr %337, i32 0, i32 0
  %339 = load i32, ptr %338, align 8, !tbaa !21
  %340 = load i32, ptr %38, align 4, !tbaa !5
  %341 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %336, i32 noundef 0, i32 noundef %339, i32 noundef %340)
  %342 = load i32, ptr %38, align 4, !tbaa !5
  %343 = load i32, ptr @m, align 4, !tbaa !5
  %344 = icmp sle i32 %342, %343
  br i1 %344, label %345, label %346

345:                                              ; preds = %333
  br label %348

346:                                              ; preds = %333
  call void @__assert_fail(ptr noundef @.str.9, ptr noundef @.str.10, i32 noundef 141, ptr noundef @__PRETTY_FUNCTION__.main) #9
  unreachable

347:                                              ; No predecessors!
  br label %348

348:                                              ; preds = %347, %345
  store i32 0, ptr %1, align 4
  store i32 1, ptr %14, align 4
  br label %349

349:                                              ; preds = %348, %332
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  br label %351

350:                                              ; preds = %245
  store i32 0, ptr %14, align 4
  br label %351

351:                                              ; preds = %350, %349
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  %352 = load i32, ptr %14, align 4
  switch i32 %352, label %357 [
    i32 0, label %353
    i32 19, label %354
  ]

353:                                              ; preds = %351
  br label %354

354:                                              ; preds = %353, %351
  %355 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %31, i32 noundef 0) #8
  %356 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %41, i32 0, i32 0
  store ptr %355, ptr %356, align 8
  br label %240, !llvm.loop !27

357:                                              ; preds = %351, %244
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  %358 = load i32, ptr %14, align 4
  switch i32 %358, label %538 [
    i32 17, label %359
  ]

359:                                              ; preds = %357
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #8
  %360 = call ptr @_ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) @col) #8
  %361 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %42, i32 0, i32 0
  store ptr %360, ptr %361, align 8
  br label %362

362:                                              ; preds = %476, %359
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #8
  %363 = call ptr @_ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @col) #8
  %364 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %43, i32 0, i32 0
  store ptr %363, ptr %364, align 8
  %365 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEES9_(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef nonnull align 8 dereferenceable(8) %43) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #8
  br i1 %365, label %367, label %366

366:                                              ; preds = %362
  store i32 22, ptr %14, align 4
  br label %479

367:                                              ; preds = %362
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #8
  %368 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %42) #8
  %369 = getelementptr inbounds %"struct.std::pair.8", ptr %368, i32 0, i32 0
  %370 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) @ccol, ptr noundef nonnull align 4 dereferenceable(4) %369)
  %371 = load i32, ptr %370, align 4, !tbaa !5
  store i32 %371, ptr %44, align 4, !tbaa !5
  %372 = load i32, ptr %44, align 4, !tbaa !5
  %373 = load i32, ptr %9, align 4, !tbaa !5
  %374 = xor i32 %372, %373
  %375 = load i32, ptr %44, align 4, !tbaa !5
  %376 = icmp slt i32 %374, %375
  br i1 %376, label %377, label %472

377:                                              ; preds = %367
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #8
  %378 = load i32, ptr %44, align 4, !tbaa !5
  %379 = load i32, ptr %9, align 4, !tbaa !5
  %380 = xor i32 %378, %379
  store i32 %380, ptr %45, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #8
  %381 = load i32, ptr %44, align 4, !tbaa !5
  %382 = load i32, ptr %45, align 4, !tbaa !5
  %383 = sub nsw i32 %381, %382
  store i32 %383, ptr %46, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #8
  %384 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %42) #8
  %385 = getelementptr inbounds %"struct.std::pair.8", ptr %384, i32 0, i32 1
  store ptr %385, ptr %47, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #8
  %386 = load ptr, ptr %47, align 8, !tbaa !18
  %387 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %386, i64 noundef 0) #8
  %388 = getelementptr inbounds %"struct.std::pair", ptr %387, i32 0, i32 0
  %389 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %388, ptr noundef nonnull align 4 dereferenceable(4) %46)
  %390 = load i32, ptr %389, align 4, !tbaa !5
  store i32 %390, ptr %48, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #8
  %391 = load ptr, ptr %47, align 8, !tbaa !18
  %392 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %391, i64 noundef 0) #8
  %393 = getelementptr inbounds %"struct.std::pair", ptr %392, i32 0, i32 0
  %394 = load i32, ptr %393, align 4, !tbaa !13
  store i32 %394, ptr %49, align 4, !tbaa !5
  %395 = load i32, ptr %48, align 4, !tbaa !5
  %396 = load i32, ptr %49, align 4, !tbaa !5
  %397 = icmp slt i32 %395, %396
  br i1 %397, label %398, label %400

398:                                              ; preds = %377
  %399 = load i32, ptr %48, align 4, !tbaa !5
  store i32 %399, ptr %49, align 4, !tbaa !5
  br label %400

400:                                              ; preds = %398, %377
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #8
  store i32 1, ptr %50, align 4, !tbaa !5
  %401 = load ptr, ptr %47, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #8
  %402 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) @n, ptr noundef nonnull align 4 dereferenceable(4) @n)
  store i64 %402, ptr %51, align 4
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %401, ptr noundef nonnull align 4 dereferenceable(8) %51)
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #8
  br label %403

403:                                              ; preds = %447, %400
  %404 = load i32, ptr %48, align 4, !tbaa !5
  %405 = load i32, ptr %46, align 4, !tbaa !5
  %406 = icmp slt i32 %404, %405
  br i1 %406, label %407, label %413

407:                                              ; preds = %403
  %408 = load i32, ptr %50, align 4, !tbaa !5
  %409 = sext i32 %408 to i64
  %410 = load ptr, ptr %47, align 8, !tbaa !18
  %411 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %410) #8
  %412 = icmp ult i64 %409, %411
  br label %413

413:                                              ; preds = %407, %403
  %414 = phi i1 [ false, %403 ], [ %412, %407 ]
  br i1 %414, label %415, label %450

415:                                              ; preds = %413
  %416 = load ptr, ptr %47, align 8, !tbaa !18
  %417 = load i32, ptr %50, align 4, !tbaa !5
  %418 = sext i32 %417 to i64
  %419 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %416, i64 noundef %418) #8
  %420 = getelementptr inbounds %"struct.std::pair", ptr %419, i32 0, i32 0
  %421 = load i32, ptr %420, align 4, !tbaa !13
  %422 = load ptr, ptr %47, align 8, !tbaa !18
  %423 = load i32, ptr %50, align 4, !tbaa !5
  %424 = sub nsw i32 %423, 1
  %425 = sext i32 %424 to i64
  %426 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %422, i64 noundef %425) #8
  %427 = getelementptr inbounds %"struct.std::pair", ptr %426, i32 0, i32 1
  %428 = load i32, ptr %427, align 4, !tbaa !11
  %429 = sub nsw i32 %421, %428
  %430 = load i32, ptr %48, align 4, !tbaa !5
  %431 = add nsw i32 %430, %429
  store i32 %431, ptr %48, align 4, !tbaa !5
  %432 = load ptr, ptr %47, align 8, !tbaa !18
  %433 = load i32, ptr %50, align 4, !tbaa !5
  %434 = sext i32 %433 to i64
  %435 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %432, i64 noundef %434) #8
  %436 = getelementptr inbounds %"struct.std::pair", ptr %435, i32 0, i32 0
  %437 = load i32, ptr %436, align 4, !tbaa !13
  store i32 %437, ptr %49, align 4, !tbaa !5
  %438 = load i32, ptr %48, align 4, !tbaa !5
  %439 = load i32, ptr %46, align 4, !tbaa !5
  %440 = icmp sge i32 %438, %439
  br i1 %440, label %441, label %447

441:                                              ; preds = %415
  %442 = load i32, ptr %48, align 4, !tbaa !5
  %443 = load i32, ptr %46, align 4, !tbaa !5
  %444 = sub nsw i32 %442, %443
  %445 = load i32, ptr %49, align 4, !tbaa !5
  %446 = sub nsw i32 %445, %444
  store i32 %446, ptr %49, align 4, !tbaa !5
  br label %450

447:                                              ; preds = %415
  %448 = load i32, ptr %50, align 4, !tbaa !5
  %449 = add nsw i32 %448, 1
  store i32 %449, ptr %50, align 4, !tbaa !5
  br label %403, !llvm.loop !28

450:                                              ; preds = %441, %413
  %451 = load i32, ptr %48, align 4, !tbaa !5
  %452 = load i32, ptr %46, align 4, !tbaa !5
  %453 = icmp slt i32 %451, %452
  br i1 %453, label %454, label %455

454:                                              ; preds = %450
  store i32 24, ptr %14, align 4
  br label %471

455:                                              ; preds = %450
  %456 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %42) #8
  %457 = getelementptr inbounds %"struct.std::pair.8", ptr %456, i32 0, i32 0
  %458 = load i32, ptr %457, align 8, !tbaa !21
  %459 = load i32, ptr %49, align 4, !tbaa !5
  %460 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %42) #8
  %461 = getelementptr inbounds %"struct.std::pair.8", ptr %460, i32 0, i32 0
  %462 = load i32, ptr %461, align 8, !tbaa !21
  %463 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef 0, i32 noundef %458, i32 noundef %459, i32 noundef %462)
  %464 = load i32, ptr %49, align 4, !tbaa !5
  %465 = load i32, ptr @n, align 4, !tbaa !5
  %466 = icmp sle i32 %464, %465
  br i1 %466, label %467, label %468

467:                                              ; preds = %455
  br label %470

468:                                              ; preds = %455
  call void @__assert_fail(ptr noundef @.str.11, ptr noundef @.str.10, i32 noundef 175, ptr noundef @__PRETTY_FUNCTION__.main) #9
  unreachable

469:                                              ; No predecessors!
  br label %470

470:                                              ; preds = %469, %467
  store i32 0, ptr %1, align 4
  store i32 1, ptr %14, align 4
  br label %471

471:                                              ; preds = %470, %454
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #8
  br label %473

472:                                              ; preds = %367
  store i32 0, ptr %14, align 4
  br label %473

473:                                              ; preds = %472, %471
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #8
  %474 = load i32, ptr %14, align 4
  switch i32 %474, label %479 [
    i32 0, label %475
    i32 24, label %476
  ]

475:                                              ; preds = %473
  br label %476

476:                                              ; preds = %475, %473
  %477 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %42, i32 noundef 0) #8
  %478 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %52, i32 0, i32 0
  store ptr %477, ptr %478, align 8
  br label %362, !llvm.loop !29

479:                                              ; preds = %473, %366
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #8
  %480 = load i32, ptr %14, align 4
  switch i32 %480, label %538 [
    i32 22, label %481
  ]

481:                                              ; preds = %479
  %482 = load i32, ptr @m, align 4, !tbaa !5
  %483 = load i32, ptr @m, align 4, !tbaa !5
  %484 = load i32, ptr %9, align 4, !tbaa !5
  %485 = xor i32 %483, %484
  %486 = sub nsw i32 %482, %485
  %487 = icmp sgt i32 %486, 0
  br i1 %487, label %488, label %513

488:                                              ; preds = %481
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #8
  store i32 1, ptr %53, align 4, !tbaa !5
  br label %489

489:                                              ; preds = %507, %488
  %490 = load i32, ptr %53, align 4, !tbaa !5
  %491 = load i32, ptr @n, align 4, !tbaa !5
  %492 = icmp slt i32 %490, %491
  br i1 %492, label %494, label %493

493:                                              ; preds = %489
  store i32 27, ptr %14, align 4
  br label %510

494:                                              ; preds = %489
  %495 = call noundef i64 @_ZNKSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE5countERS7_(ptr noundef nonnull align 8 dereferenceable(48) @row, ptr noundef nonnull align 4 dereferenceable(4) %53)
  %496 = icmp ne i64 %495, 0
  br i1 %496, label %506, label %497

497:                                              ; preds = %494
  %498 = load i32, ptr %53, align 4, !tbaa !5
  %499 = load i32, ptr %53, align 4, !tbaa !5
  %500 = load i32, ptr @m, align 4, !tbaa !5
  %501 = load i32, ptr @m, align 4, !tbaa !5
  %502 = load i32, ptr %9, align 4, !tbaa !5
  %503 = xor i32 %501, %502
  %504 = sub nsw i32 %500, %503
  %505 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %498, i32 noundef 0, i32 noundef %499, i32 noundef %504)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %14, align 4
  br label %510

506:                                              ; preds = %494
  br label %507

507:                                              ; preds = %506
  %508 = load i32, ptr %53, align 4, !tbaa !5
  %509 = add nsw i32 %508, 1
  store i32 %509, ptr %53, align 4, !tbaa !5
  br label %489, !llvm.loop !30

510:                                              ; preds = %497, %493
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #8
  %511 = load i32, ptr %14, align 4
  switch i32 %511, label %538 [
    i32 27, label %512
  ]

512:                                              ; preds = %510
  br label %513

513:                                              ; preds = %512, %481
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #8
  store i32 1, ptr %54, align 4, !tbaa !5
  br label %514

514:                                              ; preds = %532, %513
  %515 = load i32, ptr %54, align 4, !tbaa !5
  %516 = load i32, ptr @m, align 4, !tbaa !5
  %517 = icmp slt i32 %515, %516
  br i1 %517, label %519, label %518

518:                                              ; preds = %514
  store i32 30, ptr %14, align 4
  br label %535

519:                                              ; preds = %514
  %520 = call noundef i64 @_ZNKSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE5countERS7_(ptr noundef nonnull align 8 dereferenceable(48) @col, ptr noundef nonnull align 4 dereferenceable(4) %54)
  %521 = icmp ne i64 %520, 0
  br i1 %521, label %531, label %522

522:                                              ; preds = %519
  %523 = load i32, ptr %54, align 4, !tbaa !5
  %524 = load i32, ptr @n, align 4, !tbaa !5
  %525 = load i32, ptr @n, align 4, !tbaa !5
  %526 = load i32, ptr %9, align 4, !tbaa !5
  %527 = xor i32 %525, %526
  %528 = sub nsw i32 %524, %527
  %529 = load i32, ptr %54, align 4, !tbaa !5
  %530 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef 0, i32 noundef %523, i32 noundef %528, i32 noundef %529)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %14, align 4
  br label %535

531:                                              ; preds = %519
  br label %532

532:                                              ; preds = %531
  %533 = load i32, ptr %54, align 4, !tbaa !5
  %534 = add nsw i32 %533, 1
  store i32 %534, ptr %54, align 4, !tbaa !5
  br label %514, !llvm.loop !31

535:                                              ; preds = %522, %518
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #8
  %536 = load i32, ptr %14, align 4
  switch i32 %536, label %538 [
    i32 30, label %537
  ]

537:                                              ; preds = %535
  store i32 0, ptr %1, align 4
  store i32 1, ptr %14, align 4
  br label %538

538:                                              ; preds = %537, %535, %510, %479, %357, %234
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  %539 = load i32, ptr %1, align 4
  ret i32 %539
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

declare i32 @puts(ptr noundef) #4

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

declare i32 @printf(ptr noundef, ...) #4

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

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

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

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

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


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

%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::vector<std::pair<int, int>>>, std::_Select1st<std::pair<const int, std::vector<std::pair<int, int>>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::vector<std::pair<int, int>>>, std::_Select1st<std::pair<const int, std::vector<std::pair<int, int>>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::map.0" = type { %"class.std::_Rb_tree.1" }
%"class.std::_Rb_tree.1" = type { %"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::pair" = type { i32, i32 }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@k = external dso_local global i32, align 4
@row = external dso_local global %"class.std::map", align 8
@col = external dso_local global %"class.std::map", align 8
@crow = external dso_local global %"class.std::map.0", align 8
@ccol = external dso_local global %"class.std::map.0", align 8
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [111 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5mergeRSt6vectorISt4pairIiiESaIS1_EE(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0

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

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"struct.std::pair", align 8
  %6 = alloca %"struct.std::pair", align 8
  %7 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %8 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %12 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %16 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %17 = alloca i32, align 4
  %18 = alloca %"struct.std::pair", align 8
  %19 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %20 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %21 = alloca i32, align 4
  %22 = alloca %"struct.std::pair", align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @m, ptr noundef nonnull @k)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %26 = load i32, ptr @k, align 4, !tbaa !5
  %27 = icmp sgt i32 %26, 0
  br i1 %27, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %62, %0
  %28 = load i32, ptr @n, align 4, !tbaa !5
  %29 = call noundef i64 @_ZNKSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) @row) #9
  %30 = trunc i64 %29 to i32
  %31 = sub i32 %30, %28
  %32 = and i32 %31, 1
  %.not.not = icmp eq i32 %32, 0
  %33 = load i32, ptr @m, align 4
  %spec.select = select i1 %.not.not, i32 %33, i32 0
  %34 = call noundef i64 @_ZNKSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) @col) #9
  %35 = trunc i64 %34 to i32
  %36 = sub i32 %35, %33
  %37 = and i32 %36, 1
  %.not.not143 = icmp eq i32 %37, 0
  %38 = load i32, ptr @n, align 4
  %39 = select i1 %.not.not143, i32 %38, i32 0
  %.1106 = xor i32 %39, %spec.select
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #9
  %40 = call ptr @_ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) @row) #9
  store ptr %40, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #9
  %41 = call ptr @_ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @row) #9
  store ptr %41, ptr %8, align 8
  %42 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEES9_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  br i1 %42, label %.lr.ph196, label %._crit_edge197

.lr.ph:                                           ; preds = %0, %62
  %.0104189 = phi i32 [ %63, %62 ], [ 0, %0 ]
  %43 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.5, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %44 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.5, ptr noundef nonnull %3, ptr noundef nonnull %4)
  %45 = load i32, ptr %1, align 4, !tbaa !5
  %46 = load i32, ptr %3, align 4, !tbaa !5
  %47 = icmp eq i32 %45, %46
  br i1 %47, label %48, label %56

48:                                               ; preds = %.lr.ph
  %49 = load i32, ptr %2, align 4, !tbaa !5
  %50 = load i32, ptr %4, align 4, !tbaa !5
  %51 = icmp sgt i32 %49, %50
  br i1 %51, label %52, label %53

52:                                               ; preds = %48
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %4) #9
  br label %53

53:                                               ; preds = %52, %48
  %54 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(48) @row, ptr noundef nonnull align 4 dereferenceable(4) %1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  %55 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %4)
  store i64 %55, ptr %5, align 8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %54, ptr noundef nonnull align 4 dereferenceable(8) %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  br label %62

56:                                               ; preds = %.lr.ph
  %57 = icmp sgt i32 %45, %46
  br i1 %57, label %58, label %59

58:                                               ; preds = %56
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %3) #9
  br label %59

59:                                               ; preds = %58, %56
  %60 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(48) @col, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #9
  %61 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %3)
  store i64 %61, ptr %6, align 8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %60, ptr noundef nonnull align 4 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  br label %62

62:                                               ; preds = %53, %59
  %63 = add nuw nsw i32 %.0104189, 1
  %64 = load i32, ptr @k, align 4, !tbaa !5
  %65 = icmp slt i32 %63, %64
  br i1 %65, label %.lr.ph, label %._crit_edge, !llvm.loop !9

._crit_edge197:                                   ; preds = %._crit_edge193, %._crit_edge
  %.2107.lcssa = phi i32 [ %.1106, %._crit_edge ], [ %85, %._crit_edge193 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #9
  %66 = call ptr @_ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) @col) #9
  store ptr %66, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #9
  %67 = call ptr @_ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @col) #9
  store ptr %67, ptr %12, align 8
  %68 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEES9_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  br i1 %68, label %.lr.ph206, label %._crit_edge207

.lr.ph196:                                        ; preds = %._crit_edge, %._crit_edge193
  %.2107194 = phi i32 [ %85, %._crit_edge193 ], [ %.1106, %._crit_edge ]
  %69 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  %70 = getelementptr inbounds i8, ptr %69, i64 8
  %71 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #9
  %72 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  %73 = getelementptr inbounds i8, ptr %72, i64 8
  %74 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %73) #9
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %71, ptr %74)
  %75 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  %76 = getelementptr inbounds i8, ptr %75, i64 8
  call void @_Z5mergeRSt6vectorISt4pairIiiESaIS1_EE(ptr noundef nonnull align 8 dereferenceable(24) %76)
  %77 = load i32, ptr @m, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #9
  %78 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  %79 = getelementptr inbounds i8, ptr %78, i64 8
  %80 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %79) #9
  store ptr %80, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #9
  %81 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  %82 = getelementptr inbounds i8, ptr %81, i64 8
  %83 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %82) #9
  store ptr %83, ptr %10, align 8
  %84 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  br i1 %84, label %.lr.ph192, label %._crit_edge193

._crit_edge193:                                   ; preds = %.lr.ph192, %.lr.ph196
  %.0123.lcssa = phi i32 [ %77, %.lr.ph196 ], [ %96, %.lr.ph192 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  %85 = xor i32 %.0123.lcssa, %.2107194
  %86 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  %87 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) @crow, ptr noundef nonnull align 4 dereferenceable(4) %86)
  store i32 %.0123.lcssa, ptr %87, align 4, !tbaa !5
  %88 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %7, i32 noundef 0) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #9
  %89 = call ptr @_ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @row) #9
  store ptr %89, ptr %8, align 8
  %90 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEES9_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  br i1 %90, label %.lr.ph196, label %._crit_edge197, !llvm.loop !11

.lr.ph192:                                        ; preds = %.lr.ph196, %.lr.ph192
  %.0123190 = phi i32 [ %96, %.lr.ph192 ], [ %77, %.lr.ph196 ]
  %91 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #9
  %92 = getelementptr inbounds i8, ptr %91, i64 4
  %93 = load i32, ptr %92, align 4, !tbaa !12
  %94 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #9
  %95 = load i32, ptr %94, align 4, !tbaa !14
  %.neg154 = sub i32 %.0123190, %93
  %96 = add i32 %.neg154, %95
  %97 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef 0) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #9
  %98 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  %99 = getelementptr inbounds i8, ptr %98, i64 8
  %100 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %99) #9
  store ptr %100, ptr %10, align 8
  %101 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  br i1 %101, label %.lr.ph192, label %._crit_edge193, !llvm.loop !15

._crit_edge207:                                   ; preds = %._crit_edge202, %._crit_edge197
  %.3108.lcssa = phi i32 [ %.2107.lcssa, %._crit_edge197 ], [ %119, %._crit_edge202 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  %102 = icmp eq i32 %.3108.lcssa, 0
  br i1 %102, label %136, label %138

.lr.ph206:                                        ; preds = %._crit_edge197, %._crit_edge202
  %.3108204 = phi i32 [ %119, %._crit_edge202 ], [ %.2107.lcssa, %._crit_edge197 ]
  %103 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %104 = getelementptr inbounds i8, ptr %103, i64 8
  %105 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %104) #9
  %106 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %107 = getelementptr inbounds i8, ptr %106, i64 8
  %108 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %107) #9
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %105, ptr %108)
  %109 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %110 = getelementptr inbounds i8, ptr %109, i64 8
  call void @_Z5mergeRSt6vectorISt4pairIiiESaIS1_EE(ptr noundef nonnull align 8 dereferenceable(24) %110)
  %111 = load i32, ptr @n, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #9
  %112 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %113 = getelementptr inbounds i8, ptr %112, i64 8
  %114 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %113) #9
  store ptr %114, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #9
  %115 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %116 = getelementptr inbounds i8, ptr %115, i64 8
  %117 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %116) #9
  store ptr %117, ptr %14, align 8
  %118 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #9
  br i1 %118, label %.lr.ph201, label %._crit_edge202

._crit_edge202:                                   ; preds = %.lr.ph201, %.lr.ph206
  %.0124.lcssa = phi i32 [ %111, %.lr.ph206 ], [ %130, %.lr.ph201 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #9
  %119 = xor i32 %.0124.lcssa, %.3108204
  %120 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %121 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) @ccol, ptr noundef nonnull align 4 dereferenceable(4) %120)
  store i32 %.0124.lcssa, ptr %121, align 4, !tbaa !5
  %122 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %11, i32 noundef 0) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #9
  %123 = call ptr @_ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @col) #9
  store ptr %123, ptr %12, align 8
  %124 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEES9_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  br i1 %124, label %.lr.ph206, label %._crit_edge207, !llvm.loop !16

.lr.ph201:                                        ; preds = %.lr.ph206, %.lr.ph201
  %.0124199 = phi i32 [ %130, %.lr.ph201 ], [ %111, %.lr.ph206 ]
  %125 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #9
  %126 = getelementptr inbounds i8, ptr %125, i64 4
  %127 = load i32, ptr %126, align 4, !tbaa !12
  %128 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #9
  %129 = load i32, ptr %128, align 4, !tbaa !14
  %.neg153 = sub i32 %.0124199, %127
  %130 = add i32 %.neg153, %129
  %131 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %13, i32 noundef 0) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #9
  %132 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %133 = getelementptr inbounds i8, ptr %132, i64 8
  %134 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %133) #9
  store ptr %134, ptr %14, align 8
  %135 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #9
  br i1 %135, label %.lr.ph201, label %._crit_edge202, !llvm.loop !17

136:                                              ; preds = %._crit_edge207
  %137 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.6)
  br label %271

138:                                              ; preds = %._crit_edge207
  %139 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.7)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #9
  %140 = call ptr @_ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) @row) #9
  store ptr %140, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #9
  %141 = call ptr @_ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @row) #9
  store ptr %141, ptr %16, align 8
  %142 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEES9_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #9
  br i1 %142, label %.lr.ph220, label %.loopexit263

.lr.ph220:                                        ; preds = %138, %.thread
  %143 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #9
  %144 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) @crow, ptr noundef nonnull align 4 dereferenceable(4) %143)
  %145 = load i32, ptr %144, align 4, !tbaa !5
  %146 = xor i32 %145, %.3108.lcssa
  %147 = icmp slt i32 %146, %145
  br i1 %147, label %148, label %.thread

148:                                              ; preds = %.lr.ph220
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #9
  %149 = sub nsw i32 %145, %146
  store i32 %149, ptr %17, align 4, !tbaa !5
  %150 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #9
  %151 = getelementptr inbounds i8, ptr %150, i64 8
  %152 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %151, i64 noundef 0) #9
  %153 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %152, ptr noundef nonnull align 4 dereferenceable(4) %17)
  %154 = load i32, ptr %153, align 4, !tbaa !5
  %155 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %151, i64 noundef 0) #9
  %156 = load i32, ptr %155, align 4, !tbaa !14
  %spec.select155 = call i32 @llvm.smin.i32(i32 %154, i32 %156)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #9
  %157 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) @m, ptr noundef nonnull align 4 dereferenceable(4) @m)
  store i64 %157, ptr %18, align 8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %151, ptr noundef nonnull align 4 dereferenceable(8) %18)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #9
  %158 = load i32, ptr %17, align 4, !tbaa !5
  %159 = icmp slt i32 %154, %158
  br i1 %159, label %.lr.ph213.preheader, label %.critedge

.lr.ph213.preheader:                              ; preds = %148
  %160 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %151) #9
  %161 = icmp ugt i64 %160, 1
  br i1 %161, label %.lr.ph296, label %.critedge.loopexit

.lr.ph213:                                        ; preds = %.lr.ph296
  %indvars.iv.next = add nuw nsw i64 %indvars.iv294, 1
  %162 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %151) #9
  %163 = icmp ugt i64 %162, %indvars.iv.next
  br i1 %163, label %.lr.ph296, label %.critedge.loopexit

.lr.ph296:                                        ; preds = %.lr.ph213.preheader, %.lr.ph213
  %.0121209295 = phi i32 [ %171, %.lr.ph213 ], [ %154, %.lr.ph213.preheader ]
  %indvars.iv294 = phi i64 [ %indvars.iv.next, %.lr.ph213 ], [ 1, %.lr.ph213.preheader ]
  %164 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %151, i64 noundef %indvars.iv294) #9
  %165 = load i32, ptr %164, align 4, !tbaa !14
  %166 = add nsw i64 %indvars.iv294, -1
  %167 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %151, i64 noundef %166) #9
  %168 = getelementptr inbounds i8, ptr %167, i64 4
  %169 = load i32, ptr %168, align 4, !tbaa !12
  %170 = sub nsw i32 %165, %169
  %171 = add nsw i32 %170, %.0121209295
  %172 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %151, i64 noundef %indvars.iv294) #9
  %173 = load i32, ptr %172, align 4, !tbaa !14
  %174 = load i32, ptr %17, align 4, !tbaa !5
  %.not = icmp slt i32 %171, %174
  br i1 %.not, label %.lr.ph213, label %175

175:                                              ; preds = %.lr.ph296
  %.neg = sub i32 %173, %171
  %176 = add i32 %.neg, %174
  br label %.critedge

.critedge.loopexit:                               ; preds = %.lr.ph213, %.lr.ph213.preheader
  %.1119210.lcssa = phi i32 [ %spec.select155, %.lr.ph213.preheader ], [ %173, %.lr.ph213 ]
  %.0121209.lcssa = phi i32 [ %154, %.lr.ph213.preheader ], [ %171, %.lr.ph213 ]
  %.pre.pre = load i32, ptr %17, align 4, !tbaa !5
  br label %.critedge

.critedge:                                        ; preds = %.critedge.loopexit, %148, %175
  %177 = phi i32 [ %174, %175 ], [ %158, %148 ], [ %.pre.pre, %.critedge.loopexit ]
  %.1122 = phi i32 [ %171, %175 ], [ %154, %148 ], [ %.0121209.lcssa, %.critedge.loopexit ]
  %.2120 = phi i32 [ %176, %175 ], [ %spec.select155, %148 ], [ %.1119210.lcssa, %.critedge.loopexit ]
  %178 = icmp slt i32 %.1122, %177
  br i1 %178, label %187, label %179

179:                                              ; preds = %.critedge
  %180 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #9
  %181 = load i32, ptr %180, align 8, !tbaa !18
  %182 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #9
  %183 = load i32, ptr %182, align 8, !tbaa !18
  %184 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef %181, i32 noundef 0, i32 noundef %183, i32 noundef %.2120)
  %185 = load i32, ptr @m, align 4, !tbaa !5
  %.not144 = icmp sgt i32 %.2120, %185
  br i1 %.not144, label %186, label %191

186:                                              ; preds = %179
  call void @__assert_fail(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.10, i32 noundef 141, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #10
  unreachable

187:                                              ; preds = %.critedge
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #9
  br label %.thread

.thread:                                          ; preds = %.lr.ph220, %187
  %188 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %15, i32 noundef 0) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #9
  %189 = call ptr @_ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @row) #9
  store ptr %189, ptr %16, align 8
  %190 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEES9_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #9
  br i1 %190, label %.lr.ph220, label %.loopexit263, !llvm.loop !25

191:                                              ; preds = %179
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #9
  br label %271

.loopexit263:                                     ; preds = %.thread, %138
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #9
  %192 = call ptr @_ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) @col) #9
  store ptr %192, ptr %19, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #9
  %193 = call ptr @_ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @col) #9
  store ptr %193, ptr %20, align 8
  %194 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEES9_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #9
  br i1 %194, label %.lr.ph232, label %.loopexit

.lr.ph232:                                        ; preds = %.loopexit263, %.thread168
  %195 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #9
  %196 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) @ccol, ptr noundef nonnull align 4 dereferenceable(4) %195)
  %197 = load i32, ptr %196, align 4, !tbaa !5
  %198 = xor i32 %197, %.3108.lcssa
  %199 = icmp slt i32 %198, %197
  br i1 %199, label %200, label %.thread168

200:                                              ; preds = %.lr.ph232
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #9
  %201 = sub nsw i32 %197, %198
  store i32 %201, ptr %21, align 4, !tbaa !5
  %202 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #9
  %203 = getelementptr inbounds i8, ptr %202, i64 8
  %204 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %203, i64 noundef 0) #9
  %205 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %204, ptr noundef nonnull align 4 dereferenceable(4) %21)
  %206 = load i32, ptr %205, align 4, !tbaa !5
  %207 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %203, i64 noundef 0) #9
  %208 = load i32, ptr %207, align 4, !tbaa !14
  %spec.select158 = call i32 @llvm.smin.i32(i32 %206, i32 %208)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #9
  %209 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) @n, ptr noundef nonnull align 4 dereferenceable(4) @n)
  store i64 %209, ptr %22, align 8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %203, ptr noundef nonnull align 4 dereferenceable(8) %22)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #9
  %210 = load i32, ptr %21, align 4, !tbaa !5
  %211 = icmp slt i32 %206, %210
  br i1 %211, label %.lr.ph225.preheader, label %.critedge5

.lr.ph225.preheader:                              ; preds = %200
  %212 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %203) #9
  %213 = icmp ugt i64 %212, 1
  br i1 %213, label %.lr.ph300, label %.critedge5.loopexit

.lr.ph225:                                        ; preds = %.lr.ph300
  %indvars.iv.next254 = add nuw nsw i64 %indvars.iv253298, 1
  %214 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %203) #9
  %215 = icmp ugt i64 %214, %indvars.iv.next254
  br i1 %215, label %.lr.ph300, label %.critedge5.loopexit

.lr.ph300:                                        ; preds = %.lr.ph225.preheader, %.lr.ph225
  %.0102221299 = phi i32 [ %223, %.lr.ph225 ], [ %206, %.lr.ph225.preheader ]
  %indvars.iv253298 = phi i64 [ %indvars.iv.next254, %.lr.ph225 ], [ 1, %.lr.ph225.preheader ]
  %216 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %203, i64 noundef %indvars.iv253298) #9
  %217 = load i32, ptr %216, align 4, !tbaa !14
  %218 = add nsw i64 %indvars.iv253298, -1
  %219 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %203, i64 noundef %218) #9
  %220 = getelementptr inbounds i8, ptr %219, i64 4
  %221 = load i32, ptr %220, align 4, !tbaa !12
  %222 = sub nsw i32 %217, %221
  %223 = add nsw i32 %222, %.0102221299
  %224 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %203, i64 noundef %indvars.iv253298) #9
  %225 = load i32, ptr %224, align 4, !tbaa !14
  %226 = load i32, ptr %21, align 4, !tbaa !5
  %.not145 = icmp slt i32 %223, %226
  br i1 %.not145, label %.lr.ph225, label %227

227:                                              ; preds = %.lr.ph300
  %.neg146 = sub i32 %225, %223
  %228 = add i32 %.neg146, %226
  br label %.critedge5

.critedge5.loopexit:                              ; preds = %.lr.ph225, %.lr.ph225.preheader
  %.1100222.lcssa = phi i32 [ %spec.select158, %.lr.ph225.preheader ], [ %225, %.lr.ph225 ]
  %.0102221.lcssa = phi i32 [ %206, %.lr.ph225.preheader ], [ %223, %.lr.ph225 ]
  %.pre256.pre = load i32, ptr %21, align 4, !tbaa !5
  br label %.critedge5

.critedge5:                                       ; preds = %.critedge5.loopexit, %200, %227
  %229 = phi i32 [ %226, %227 ], [ %210, %200 ], [ %.pre256.pre, %.critedge5.loopexit ]
  %.1103 = phi i32 [ %223, %227 ], [ %206, %200 ], [ %.0102221.lcssa, %.critedge5.loopexit ]
  %.2101 = phi i32 [ %228, %227 ], [ %spec.select158, %200 ], [ %.1100222.lcssa, %.critedge5.loopexit ]
  %230 = icmp slt i32 %.1103, %229
  br i1 %230, label %239, label %231

231:                                              ; preds = %.critedge5
  %232 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #9
  %233 = load i32, ptr %232, align 8, !tbaa !18
  %234 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #9
  %235 = load i32, ptr %234, align 8, !tbaa !18
  %236 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef 0, i32 noundef %233, i32 noundef %.2101, i32 noundef %235)
  %237 = load i32, ptr @n, align 4, !tbaa !5
  %.not147 = icmp sgt i32 %.2101, %237
  br i1 %.not147, label %238, label %243

238:                                              ; preds = %231
  call void @__assert_fail(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.10, i32 noundef 175, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #10
  unreachable

239:                                              ; preds = %.critedge5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #9
  br label %.thread168

.thread168:                                       ; preds = %.lr.ph232, %239
  %240 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %19, i32 noundef 0) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #9
  %241 = call ptr @_ZNSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @col) #9
  store ptr %241, ptr %20, align 8
  %242 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiSt6vectorIS0_IiiESaIS3_EEEES9_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #9
  br i1 %242, label %.lr.ph232, label %.loopexit, !llvm.loop !26

243:                                              ; preds = %231
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #9
  br label %271

.loopexit:                                        ; preds = %.thread168, %.loopexit263
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #9
  %244 = load i32, ptr @m, align 4, !tbaa !5
  %245 = xor i32 %244, %.3108.lcssa
  %246 = icmp sgt i32 %244, %245
  br i1 %246, label %247, label %259

247:                                              ; preds = %.loopexit
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #9
  store i32 1, ptr %23, align 4, !tbaa !5
  %248 = load i32, ptr @n, align 4, !tbaa !5
  %.not149233 = icmp sgt i32 %248, 1
  br i1 %.not149233, label %.lr.ph235, label %.critedge162

.lr.ph235:                                        ; preds = %247, %256
  %249 = call noundef i64 @_ZNKSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE5countERS7_(ptr noundef nonnull align 8 dereferenceable(48) @row, ptr noundef nonnull align 4 dereferenceable(4) %23)
  %.not148 = icmp eq i64 %249, 0
  %250 = load i32, ptr %23, align 4, !tbaa !5
  br i1 %.not148, label %251, label %256

251:                                              ; preds = %.lr.ph235
  %252 = load i32, ptr @m, align 4, !tbaa !5
  %253 = xor i32 %252, %.3108.lcssa
  %254 = sub nsw i32 %252, %253
  %255 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef %250, i32 noundef 0, i32 noundef %250, i32 noundef %254)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #9
  br label %271

256:                                              ; preds = %.lr.ph235
  %257 = add nsw i32 %250, 1
  store i32 %257, ptr %23, align 4, !tbaa !5
  %258 = load i32, ptr @n, align 4, !tbaa !5
  %.not149 = icmp slt i32 %257, %258
  br i1 %.not149, label %.lr.ph235, label %.critedge162.loopexit, !llvm.loop !27

.critedge162.loopexit:                            ; preds = %256
  %.pre257.pre = load i32, ptr @m, align 4, !tbaa !5
  br label %.critedge162

.critedge162:                                     ; preds = %.critedge162.loopexit, %247
  %.pre257 = phi i32 [ %.pre257.pre, %.critedge162.loopexit ], [ %244, %247 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #9
  br label %259

259:                                              ; preds = %.critedge162, %.loopexit
  %260 = phi i32 [ %.pre257, %.critedge162 ], [ %244, %.loopexit ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #9
  store i32 1, ptr %24, align 4, !tbaa !5
  %.not152236 = icmp sgt i32 %260, 1
  br i1 %.not152236, label %.lr.ph238, label %.critedge164

.lr.ph238:                                        ; preds = %259, %268
  %261 = call noundef i64 @_ZNKSt3mapIiSt6vectorISt4pairIiiESaIS2_EESt4lessIiESaIS1_IKiS4_EEE5countERS7_(ptr noundef nonnull align 8 dereferenceable(48) @col, ptr noundef nonnull align 4 dereferenceable(4) %24)
  %.not151 = icmp eq i64 %261, 0
  %262 = load i32, ptr %24, align 4, !tbaa !5
  br i1 %.not151, label %263, label %268

263:                                              ; preds = %.lr.ph238
  %264 = load i32, ptr @n, align 4, !tbaa !5
  %265 = xor i32 %264, %.3108.lcssa
  %266 = sub nsw i32 %264, %265
  %267 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef 0, i32 noundef %262, i32 noundef %266, i32 noundef %262)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #9
  br label %271

268:                                              ; preds = %.lr.ph238
  %269 = add nsw i32 %262, 1
  store i32 %269, ptr %24, align 4, !tbaa !5
  %270 = load i32, ptr @m, align 4, !tbaa !5
  %.not152 = icmp slt i32 %269, %270
  br i1 %.not152, label %.lr.ph238, label %.critedge164, !llvm.loop !28

.critedge164:                                     ; preds = %268, %259
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #9
  br label %271

271:                                              ; preds = %243, %191, %251, %263, %.critedge164, %136
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #9
  ret i32 0
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #4

; 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: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #8

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

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

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


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