; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/229 DIvision 2/Problem D (D)

; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { i32, i32 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@k = external dso_local global i32, align 4
@d = external dso_local global [100 x %"class.std::vector"], align 16
@paths = external dso_local global [2500 x %"class.std::vector"], align 16
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 {
  %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 4
  %6 = alloca i32, align 4
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"struct.std::pair", align 4
  %18 = alloca %"struct.std::pair", align 4
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca i32, align 4
  %22 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca %"struct.std::pair", align 4
  %27 = alloca %"struct.std::pair", align 4
  %28 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %30 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %31 = alloca i32, align 4
  %32 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %33 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %34 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  store i32 0, ptr %1, align 4
  %35 = 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) #7
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %36

36:                                               ; preds = %59, %0
  %37 = load i32, ptr %2, align 4, !tbaa !5
  %38 = load i32, ptr @n, align 4, !tbaa !5
  %39 = icmp sle i32 %37, %38
  br i1 %39, label %41, label %40

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

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

42:                                               ; preds = %55, %41
  %43 = load i32, ptr %4, align 4, !tbaa !5
  %44 = load i32, ptr @m, align 4, !tbaa !5
  %45 = icmp sle i32 %43, %44
  br i1 %45, label %47, label %46

46:                                               ; preds = %42
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  br label %58

47:                                               ; preds = %42
  %48 = load i32, ptr %2, align 4, !tbaa !5
  %49 = load i32, ptr %4, align 4, !tbaa !5
  %50 = add nsw i32 %48, %49
  %51 = sub nsw i32 %50, 2
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [100 x %"class.std::vector"], ptr @d, i64 0, i64 %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  %54 = 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 %54, ptr %5, align 4
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %53, ptr noundef nonnull align 4 dereferenceable(8) %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  br label %55

55:                                               ; preds = %47
  %56 = load i32, ptr %4, align 4, !tbaa !5
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %4, align 4, !tbaa !5
  br label %42, !llvm.loop !9

58:                                               ; preds = %46
  br label %59

59:                                               ; preds = %58
  %60 = load i32, ptr %2, align 4, !tbaa !5
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %2, align 4, !tbaa !5
  br label %36, !llvm.loop !11

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

63:                                               ; preds = %85, %62
  %64 = load i32, ptr %6, align 4, !tbaa !5
  %65 = load i32, ptr @n, align 4, !tbaa !5
  %66 = load i32, ptr @m, align 4, !tbaa !5
  %67 = add nsw i32 %65, %66
  %68 = icmp slt i32 %64, %67
  br i1 %68, label %70, label %69

69:                                               ; preds = %63
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %88

70:                                               ; preds = %63
  %71 = load i32, ptr %6, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [100 x %"class.std::vector"], ptr @d, i64 0, i64 %72
  %74 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %73) #7
  %75 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %7, i32 0, i32 0
  store ptr %74, ptr %75, align 8
  %76 = load i32, ptr %6, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [100 x %"class.std::vector"], ptr @d, i64 0, i64 %77
  %79 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %78) #7
  %80 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
  store ptr %79, ptr %80, align 8
  %81 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %7, i32 0, i32 0
  %82 = load ptr, ptr %81, align 8
  %83 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
  %84 = load ptr, ptr %83, align 8
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS3_SaIS3_EEEEPFbRKS3_SA_EEvT_SD_T0_(ptr %82, ptr %84, ptr noundef @_Z4compRKSt4pairIiiES2_)
  br label %85

85:                                               ; preds = %70
  %86 = load i32, ptr %6, align 4, !tbaa !5
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %6, align 4, !tbaa !5
  br label %63, !llvm.loop !12

88:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %89 = load i32, ptr @k, align 4, !tbaa !5
  store i32 %89, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 -1, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 0, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %90

90:                                               ; preds = %144, %88
  %91 = load i32, ptr %12, align 4, !tbaa !5
  %92 = load i32, ptr @n, align 4, !tbaa !5
  %93 = load i32, ptr @m, align 4, !tbaa !5
  %94 = add nsw i32 %92, %93
  %95 = icmp slt i32 %91, %94
  br i1 %95, label %97, label %96

96:                                               ; preds = %90
  store i32 11, ptr %3, align 4
  br label %147

97:                                               ; preds = %90
  %98 = load i32, ptr %9, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = load i32, ptr %12, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [100 x %"class.std::vector"], ptr @d, i64 0, i64 %101
  %103 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %102) #7
  %104 = icmp ult i64 %99, %103
  br i1 %104, label %105, label %113

105:                                              ; preds = %97
  %106 = load i32, ptr %12, align 4, !tbaa !5
  store i32 %106, ptr %10, align 4, !tbaa !5
  %107 = load i32, ptr %12, align 4, !tbaa !5
  %108 = add nsw i32 %107, 1
  %109 = load i32, ptr %9, align 4, !tbaa !5
  %110 = mul nsw i32 %108, %109
  %111 = load i32, ptr %11, align 4, !tbaa !5
  %112 = add nsw i32 %111, %110
  store i32 %112, ptr %11, align 4, !tbaa !5
  store i32 11, ptr %3, align 4
  br label %147

113:                                              ; preds = %97
  %114 = load i32, ptr %12, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [100 x %"class.std::vector"], ptr @d, i64 0, i64 %115
  %117 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %116) #7
  %118 = load i32, ptr %9, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = sub i64 %119, %117
  %121 = trunc i64 %120 to i32
  store i32 %121, ptr %9, align 4, !tbaa !5
  %122 = load i32, ptr %12, align 4, !tbaa !5
  %123 = add nsw i32 %122, 1
  %124 = sext i32 %123 to i64
  %125 = load i32, ptr %12, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [100 x %"class.std::vector"], ptr @d, i64 0, i64 %126
  %128 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %127) #7
  %129 = mul i64 %124, %128
  %130 = load i32, ptr %11, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = add i64 %131, %129
  %133 = trunc i64 %132 to i32
  store i32 %133, ptr %11, align 4, !tbaa !5
  %134 = load i32, ptr %9, align 4, !tbaa !5
  %135 = icmp eq i32 %134, 0
  br i1 %135, label %136, label %143

136:                                              ; preds = %113
  %137 = load i32, ptr %12, align 4, !tbaa !5
  store i32 %137, ptr %10, align 4, !tbaa !5
  %138 = load i32, ptr %12, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [100 x %"class.std::vector"], ptr @d, i64 0, i64 %139
  %141 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %140) #7
  %142 = trunc i64 %141 to i32
  store i32 %142, ptr %9, align 4, !tbaa !5
  store i32 11, ptr %3, align 4
  br label %147

143:                                              ; preds = %113
  br label %144

144:                                              ; preds = %143
  %145 = load i32, ptr %12, align 4, !tbaa !5
  %146 = add nsw i32 %145, 1
  store i32 %146, ptr %12, align 4, !tbaa !5
  br label %90, !llvm.loop !13

147:                                              ; preds = %136, %105, %96
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %148

148:                                              ; preds = %147
  %149 = load i32, ptr %11, align 4, !tbaa !5
  %150 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %149)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %151

151:                                              ; preds = %213, %148
  %152 = load i32, ptr %14, align 4, !tbaa !5
  %153 = load i32, ptr %9, align 4, !tbaa !5
  %154 = icmp slt i32 %152, %153
  br i1 %154, label %156, label %155

155:                                              ; preds = %151
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %216

156:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %157 = load i32, ptr %10, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [100 x %"class.std::vector"], ptr @d, i64 0, i64 %158
  %160 = load i32, ptr %14, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %159, i64 noundef %161) #7
  %163 = getelementptr inbounds %"struct.std::pair", ptr %162, i32 0, i32 0
  %164 = load i32, ptr %163, align 4, !tbaa !14
  store i32 %164, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %165 = load i32, ptr %10, align 4, !tbaa !5
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [100 x %"class.std::vector"], ptr @d, i64 0, i64 %166
  %168 = load i32, ptr %14, align 4, !tbaa !5
  %169 = sext i32 %168 to i64
  %170 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %167, i64 noundef %169) #7
  %171 = getelementptr inbounds %"struct.std::pair", ptr %170, i32 0, i32 1
  %172 = load i32, ptr %171, align 4, !tbaa !16
  store i32 %172, ptr %16, align 4, !tbaa !5
  br label %173

173:                                              ; preds = %176, %156
  %174 = load i32, ptr %16, align 4, !tbaa !5
  %175 = icmp sge i32 %174, 1
  br i1 %175, label %176, label %183

176:                                              ; preds = %173
  %177 = load i32, ptr %13, align 4, !tbaa !5
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds [2500 x %"class.std::vector"], ptr @paths, i64 0, i64 %178
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %180 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16)
  store i64 %180, ptr %17, align 4
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %179, ptr noundef nonnull align 4 dereferenceable(8) %17)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  %181 = load i32, ptr %16, align 4, !tbaa !5
  %182 = add nsw i32 %181, -1
  store i32 %182, ptr %16, align 4, !tbaa !5
  br label %173, !llvm.loop !17

183:                                              ; preds = %173
  store i32 1, ptr %16, align 4, !tbaa !5
  %184 = load i32, ptr %15, align 4, !tbaa !5
  %185 = add nsw i32 %184, -1
  store i32 %185, ptr %15, align 4, !tbaa !5
  br label %186

186:                                              ; preds = %189, %183
  %187 = load i32, ptr %15, align 4, !tbaa !5
  %188 = icmp sge i32 %187, 1
  br i1 %188, label %189, label %196

189:                                              ; preds = %186
  %190 = load i32, ptr %13, align 4, !tbaa !5
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [2500 x %"class.std::vector"], ptr @paths, i64 0, i64 %191
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %193 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16)
  store i64 %193, ptr %18, align 4
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %192, ptr noundef nonnull align 4 dereferenceable(8) %18)
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  %194 = load i32, ptr %15, align 4, !tbaa !5
  %195 = add nsw i32 %194, -1
  store i32 %195, ptr %15, align 4, !tbaa !5
  br label %186, !llvm.loop !18

196:                                              ; preds = %186
  %197 = load i32, ptr %13, align 4, !tbaa !5
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds [2500 x %"class.std::vector"], ptr @paths, i64 0, i64 %198
  %200 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %199) #7
  %201 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  store ptr %200, ptr %201, align 8
  %202 = load i32, ptr %13, align 4, !tbaa !5
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds [2500 x %"class.std::vector"], ptr @paths, i64 0, i64 %203
  %205 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %204) #7
  %206 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  store ptr %205, ptr %206, align 8
  %207 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  %208 = load ptr, ptr %207, align 8
  %209 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  %210 = load ptr, ptr %209, align 8
  call void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %208, ptr %210)
  %211 = load i32, ptr %13, align 4, !tbaa !5
  %212 = add nsw i32 %211, 1
  store i32 %212, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %213

213:                                              ; preds = %196
  %214 = load i32, ptr %14, align 4, !tbaa !5
  %215 = add nsw i32 %214, 1
  store i32 %215, ptr %14, align 4, !tbaa !5
  br label %151, !llvm.loop !19

216:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %217 = load i32, ptr %10, align 4, !tbaa !5
  %218 = sub nsw i32 %217, 1
  store i32 %218, ptr %21, align 4, !tbaa !5
  br label %219

219:                                              ; preds = %288, %216
  %220 = load i32, ptr %21, align 4, !tbaa !5
  %221 = icmp sge i32 %220, 0
  br i1 %221, label %223, label %222

222:                                              ; preds = %219
  store i32 21, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %291

223:                                              ; preds = %219
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %224 = load i32, ptr %21, align 4, !tbaa !5
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds [100 x %"class.std::vector"], ptr @d, i64 0, i64 %225
  %227 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %226) #7
  %228 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %22, i32 0, i32 0
  store ptr %227, ptr %228, align 8
  br label %229

229:                                              ; preds = %284, %223
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %230 = load i32, ptr %21, align 4, !tbaa !5
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds [100 x %"class.std::vector"], ptr @d, i64 0, i64 %231
  %233 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %232) #7
  %234 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %23, i32 0, i32 0
  store ptr %233, ptr %234, align 8
  %235 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br i1 %235, label %237, label %236

236:                                              ; preds = %229
  store i32 24, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %287

237:                                              ; preds = %229
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %238 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  %239 = getelementptr inbounds %"struct.std::pair", ptr %238, i32 0, i32 0
  %240 = load i32, ptr %239, align 4, !tbaa !14
  store i32 %240, ptr %24, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  %241 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  %242 = getelementptr inbounds %"struct.std::pair", ptr %241, i32 0, i32 1
  %243 = load i32, ptr %242, align 4, !tbaa !16
  store i32 %243, ptr %25, align 4, !tbaa !5
  br label %244

244:                                              ; preds = %247, %237
  %245 = load i32, ptr %25, align 4, !tbaa !5
  %246 = icmp sge i32 %245, 1
  br i1 %246, label %247, label %254

247:                                              ; preds = %244
  %248 = load i32, ptr %13, align 4, !tbaa !5
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds [2500 x %"class.std::vector"], ptr @paths, i64 0, i64 %249
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %251 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %24, ptr noundef nonnull align 4 dereferenceable(4) %25)
  store i64 %251, ptr %26, align 4
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %250, ptr noundef nonnull align 4 dereferenceable(8) %26)
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  %252 = load i32, ptr %25, align 4, !tbaa !5
  %253 = add nsw i32 %252, -1
  store i32 %253, ptr %25, align 4, !tbaa !5
  br label %244, !llvm.loop !20

254:                                              ; preds = %244
  store i32 1, ptr %25, align 4, !tbaa !5
  %255 = load i32, ptr %24, align 4, !tbaa !5
  %256 = add nsw i32 %255, -1
  store i32 %256, ptr %24, align 4, !tbaa !5
  br label %257

257:                                              ; preds = %260, %254
  %258 = load i32, ptr %24, align 4, !tbaa !5
  %259 = icmp sge i32 %258, 1
  br i1 %259, label %260, label %267

260:                                              ; preds = %257
  %261 = load i32, ptr %13, align 4, !tbaa !5
  %262 = sext i32 %261 to i64
  %263 = getelementptr inbounds [2500 x %"class.std::vector"], ptr @paths, i64 0, i64 %262
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  %264 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %24, ptr noundef nonnull align 4 dereferenceable(4) %25)
  store i64 %264, ptr %27, align 4
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %263, ptr noundef nonnull align 4 dereferenceable(8) %27)
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  %265 = load i32, ptr %24, align 4, !tbaa !5
  %266 = add nsw i32 %265, -1
  store i32 %266, ptr %24, align 4, !tbaa !5
  br label %257, !llvm.loop !21

267:                                              ; preds = %257
  %268 = load i32, ptr %13, align 4, !tbaa !5
  %269 = sext i32 %268 to i64
  %270 = getelementptr inbounds [2500 x %"class.std::vector"], ptr @paths, i64 0, i64 %269
  %271 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %270) #7
  %272 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %28, i32 0, i32 0
  store ptr %271, ptr %272, align 8
  %273 = load i32, ptr %13, align 4, !tbaa !5
  %274 = sext i32 %273 to i64
  %275 = getelementptr inbounds [2500 x %"class.std::vector"], ptr @paths, i64 0, i64 %274
  %276 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %275) #7
  %277 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %29, i32 0, i32 0
  store ptr %276, ptr %277, align 8
  %278 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %28, i32 0, i32 0
  %279 = load ptr, ptr %278, align 8
  %280 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %29, i32 0, i32 0
  %281 = load ptr, ptr %280, align 8
  call void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %279, ptr %281)
  %282 = load i32, ptr %13, align 4, !tbaa !5
  %283 = add nsw i32 %282, 1
  store i32 %283, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %284

284:                                              ; preds = %267
  %285 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %22, i32 noundef 0) #7
  %286 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %30, i32 0, i32 0
  store ptr %285, ptr %286, align 8
  br label %229, !llvm.loop !22

287:                                              ; preds = %236
  br label %288

288:                                              ; preds = %287
  %289 = load i32, ptr %21, align 4, !tbaa !5
  %290 = add nsw i32 %289, -1
  store i32 %290, ptr %21, align 4, !tbaa !5
  br label %219, !llvm.loop !23

291:                                              ; preds = %222
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  store i32 0, ptr %31, align 4, !tbaa !5
  br label %292

292:                                              ; preds = %324, %291
  %293 = load i32, ptr %31, align 4, !tbaa !5
  %294 = load i32, ptr %13, align 4, !tbaa !5
  %295 = icmp slt i32 %293, %294
  br i1 %295, label %297, label %296

296:                                              ; preds = %292
  store i32 31, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  br label %327

297:                                              ; preds = %292
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #7
  %298 = load i32, ptr %31, align 4, !tbaa !5
  %299 = sext i32 %298 to i64
  %300 = getelementptr inbounds [2500 x %"class.std::vector"], ptr @paths, i64 0, i64 %299
  %301 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %300) #7
  %302 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %32, i32 0, i32 0
  store ptr %301, ptr %302, align 8
  br label %303

303:                                              ; preds = %319, %297
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #7
  %304 = load i32, ptr %31, align 4, !tbaa !5
  %305 = sext i32 %304 to i64
  %306 = getelementptr inbounds [2500 x %"class.std::vector"], ptr @paths, i64 0, i64 %305
  %307 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %306) #7
  %308 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %33, i32 0, i32 0
  store ptr %307, ptr %308, align 8
  %309 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 8 dereferenceable(8) %33) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  br i1 %309, label %311, label %310

310:                                              ; preds = %303
  store i32 34, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  br label %322

311:                                              ; preds = %303
  %312 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %32) #7
  %313 = getelementptr inbounds %"struct.std::pair", ptr %312, i32 0, i32 0
  %314 = load i32, ptr %313, align 4, !tbaa !14
  %315 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %32) #7
  %316 = getelementptr inbounds %"struct.std::pair", ptr %315, i32 0, i32 1
  %317 = load i32, ptr %316, align 4, !tbaa !16
  %318 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %314, i32 noundef %317)
  br label %319

319:                                              ; preds = %311
  %320 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %32, i32 noundef 0) #7
  %321 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %34, i32 0, i32 0
  store ptr %320, ptr %321, align 8
  br label %303, !llvm.loop !24

322:                                              ; preds = %310
  %323 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %324

324:                                              ; preds = %322
  %325 = load i32, ptr %31, align 4, !tbaa !5
  %326 = add nsw i32 %325, 1
  store i32 %326, ptr %31, align 4, !tbaa !5
  br label %292, !llvm.loop !25

327:                                              ; preds = %296
  store i32 0, ptr %1, align 4
  store i32 1, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  %328 = load i32, ptr %1, align 4
  ret i32 %328
}

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

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

; 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)) #4 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS3_SaIS3_EEEEPFbRKS3_SA_EEvT_SD_T0_(ptr, ptr, ptr noundef) #5

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

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

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

declare i32 @printf(ptr noundef, ...) #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) #0 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 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) #0 align 2

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

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

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


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { i32, i32 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@k = external dso_local global i32, align 4
@d = external dso_local global [100 x %"class.std::vector"], align 16
@paths = external dso_local global [2500 x %"class.std::vector"], align 16
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"struct.std::pair", align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"struct.std::pair", align 8
  %7 = alloca %"struct.std::pair", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"struct.std::pair", align 8
  %13 = alloca %"struct.std::pair", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = 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) #7
  store i32 1, ptr %1, align 4, !tbaa !5
  %17 = load i32, ptr @n, align 4, !tbaa !5
  %.not86 = icmp slt i32 %17, 1
  %.pre163 = load i32, ptr @m, align 4, !tbaa !5
  %18 = icmp slt i32 %.pre163, 1
  %or.cond = select i1 %.not86, i1 true, i1 %18
  br i1 %or.cond, label %._crit_edge89, label %.lr.ph88.split

._crit_edge89:                                    ; preds = %._crit_edge, %0
  %19 = phi i32 [ %.pre163, %0 ], [ %28, %._crit_edge ]
  %20 = phi i32 [ %17, %0 ], [ %26, %._crit_edge ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  %21 = add nsw i32 %19, %20
  %22 = icmp sgt i32 %21, 0
  br i1 %22, label %.lr.ph92, label %._crit_edge93

.lr.ph88.split:                                   ; preds = %0, %._crit_edge
  %23 = phi i32 [ %26, %._crit_edge ], [ %17, %0 ]
  %24 = phi i32 [ %29, %._crit_edge ], [ 1, %0 ]
  %25 = phi i32 [ %28, %._crit_edge ], [ %.pre163, %0 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  store i32 1, ptr %2, align 4, !tbaa !5
  %.not7484 = icmp slt i32 %25, 1
  br i1 %.not7484, label %._crit_edge, label %.lr.ph

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %.pre = load i32, ptr %1, align 4, !tbaa !5
  %.pre162 = load i32, ptr @n, align 4, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.lr.ph88.split
  %26 = phi i32 [ %.pre162, %._crit_edge.loopexit ], [ %23, %.lr.ph88.split ]
  %27 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %24, %.lr.ph88.split ]
  %28 = phi i32 [ %38, %._crit_edge.loopexit ], [ %25, %.lr.ph88.split ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  %29 = add nsw i32 %27, 1
  store i32 %29, ptr %1, align 4, !tbaa !5
  %.not.not = icmp slt i32 %27, %26
  br i1 %.not.not, label %.lr.ph88.split, label %._crit_edge89, !llvm.loop !9

.lr.ph:                                           ; preds = %.lr.ph88.split, %.lr.ph
  %storemerge7385 = phi i32 [ %37, %.lr.ph ], [ 1, %.lr.ph88.split ]
  %30 = load i32, ptr %1, align 4, !tbaa !5
  %31 = add i32 %storemerge7385, -2
  %32 = add i32 %31, %30
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [100 x %"class.std::vector"], ptr @d, i64 0, i64 %33
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  %35 = 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) %2)
  store i64 %35, ptr %3, align 8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %34, ptr noundef nonnull align 4 dereferenceable(8) %3)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  %36 = load i32, ptr %2, align 4, !tbaa !5
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %2, align 4, !tbaa !5
  %38 = load i32, ptr @m, align 4, !tbaa !5
  %.not74.not = icmp slt i32 %36, %38
  br i1 %.not74.not, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !12

._crit_edge93:                                    ; preds = %.lr.ph92, %._crit_edge89
  %39 = load i32, ptr @k, align 4, !tbaa !5
  br label %48

.lr.ph92:                                         ; preds = %._crit_edge89, %.lr.ph92
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph92 ], [ 0, %._crit_edge89 ]
  %40 = getelementptr inbounds [100 x %"class.std::vector"], ptr @d, i64 0, i64 %indvars.iv
  %41 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #7
  %42 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #7
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS3_SaIS3_EEEEPFbRKS3_SA_EEvT_SD_T0_(ptr %41, ptr %42, ptr noundef nonnull @_Z4compRKSt4pairIiiES2_)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %43 = load i32, ptr @n, align 4, !tbaa !5
  %44 = load i32, ptr @m, align 4, !tbaa !5
  %45 = add nsw i32 %44, %43
  %46 = sext i32 %45 to i64
  %47 = icmp slt i64 %indvars.iv.next, %46
  br i1 %47, label %.lr.ph92, label %._crit_edge93, !llvm.loop !13

48:                                               ; preds = %64, %._crit_edge93
  %indvars.iv142 = phi i64 [ %indvars.iv.next143, %64 ], [ 0, %._crit_edge93 ]
  %.060 = phi i32 [ %72, %64 ], [ 0, %._crit_edge93 ]
  %.057 = phi i32 [ %67, %64 ], [ %39, %._crit_edge93 ]
  %49 = load i32, ptr @n, align 4, !tbaa !5
  %50 = load i32, ptr @m, align 4, !tbaa !5
  %51 = add nsw i32 %50, %49
  %52 = sext i32 %51 to i64
  %53 = icmp slt i64 %indvars.iv142, %52
  br i1 %53, label %54, label %.loopexit

54:                                               ; preds = %48
  %55 = sext i32 %.057 to i64
  %56 = getelementptr inbounds [100 x %"class.std::vector"], ptr @d, i64 0, i64 %indvars.iv142
  %57 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %56) #7
  %58 = icmp ugt i64 %57, %55
  br i1 %58, label %59, label %64

59:                                               ; preds = %54
  %60 = trunc nuw nsw i64 %indvars.iv142 to i32
  %61 = add nuw nsw i32 %60, 1
  %62 = mul nsw i32 %.057, %61
  %63 = add nsw i32 %62, %.060
  br label %.loopexit

64:                                               ; preds = %54
  %65 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %56) #7
  %66 = trunc i64 %65 to i32
  %67 = sub i32 %.057, %66
  %indvars.iv.next143 = add nuw nsw i64 %indvars.iv142, 1
  %68 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %56) #7
  %69 = trunc i64 %68 to i32
  %70 = trunc nuw i64 %indvars.iv.next143 to i32
  %71 = mul i32 %70, %69
  %72 = add i32 %71, %.060
  %73 = icmp eq i32 %67, 0
  br i1 %73, label %74, label %48, !llvm.loop !14

74:                                               ; preds = %64
  %75 = trunc nuw nsw i64 %indvars.iv142 to i32
  %76 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %56) #7
  %77 = trunc i64 %76 to i32
  br label %.loopexit

.loopexit:                                        ; preds = %48, %74, %59
  %.161 = phi i32 [ %63, %59 ], [ %72, %74 ], [ %.060, %48 ]
  %.059 = phi i32 [ %60, %59 ], [ %75, %74 ], [ -1, %48 ]
  %.1 = phi i32 [ %.057, %59 ], [ %77, %74 ], [ %.057, %48 ]
  %78 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %.161)
  %79 = icmp sgt i32 %.1, 0
  br i1 %79, label %.lr.ph105, label %.preheader75

.lr.ph105:                                        ; preds = %.loopexit
  %80 = sext i32 %.059 to i64
  %81 = getelementptr inbounds [100 x %"class.std::vector"], ptr @d, i64 0, i64 %80
  %wide.trip.count = zext nneg i32 %.1 to i64
  br label %84

.preheader75:                                     ; preds = %._crit_edge101, %.loopexit
  %.063.lcssa = phi i32 [ 0, %.loopexit ], [ %.1, %._crit_edge101 ]
  %82 = icmp sgt i32 %.059, 0
  br i1 %82, label %.lr.ph122.preheader, label %.preheader

.lr.ph122.preheader:                              ; preds = %.preheader75
  %83 = zext nneg i32 %.059 to i64
  br label %.lr.ph122

84:                                               ; preds = %.lr.ph105, %._crit_edge101
  %indvars.iv145 = phi i64 [ 0, %.lr.ph105 ], [ %indvars.iv.next146, %._crit_edge101 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  %85 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %81, i64 noundef %indvars.iv145) #7
  %86 = load i32, ptr %85, align 4, !tbaa !15
  store i32 %86, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  %87 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %81, i64 noundef %indvars.iv145) #7
  %88 = getelementptr inbounds i8, ptr %87, i64 4
  %89 = load i32, ptr %88, align 4, !tbaa !17
  store i32 %89, ptr %5, align 4, !tbaa !5
  %90 = icmp sgt i32 %89, 0
  br i1 %90, label %.lr.ph95, label %._crit_edge96

.lr.ph95:                                         ; preds = %84
  %91 = getelementptr inbounds [2500 x %"class.std::vector"], ptr @paths, i64 0, i64 %indvars.iv145
  br label %92

92:                                               ; preds = %.lr.ph95, %92
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %93 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  store i64 %93, ptr %6, align 8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %91, ptr noundef nonnull align 4 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  %94 = load i32, ptr %5, align 4, !tbaa !5
  %95 = add nsw i32 %94, -1
  store i32 %95, ptr %5, align 4, !tbaa !5
  %96 = icmp sgt i32 %94, 1
  br i1 %96, label %92, label %._crit_edge96, !llvm.loop !18

._crit_edge96:                                    ; preds = %92, %84
  store i32 1, ptr %5, align 4, !tbaa !5
  %storemerge72.in97 = load i32, ptr %4, align 4, !tbaa !5
  %storemerge7298 = add nsw i32 %storemerge72.in97, -1
  store i32 %storemerge7298, ptr %4, align 4, !tbaa !5
  %97 = icmp sgt i32 %storemerge72.in97, 1
  br i1 %97, label %.lr.ph100, label %._crit_edge101

.lr.ph100:                                        ; preds = %._crit_edge96
  %98 = getelementptr inbounds [2500 x %"class.std::vector"], ptr @paths, i64 0, i64 %indvars.iv145
  br label %99

99:                                               ; preds = %.lr.ph100, %99
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %100 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  store i64 %100, ptr %7, align 8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %98, ptr noundef nonnull align 4 dereferenceable(8) %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  %storemerge72.in = load i32, ptr %4, align 4, !tbaa !5
  %storemerge72 = add nsw i32 %storemerge72.in, -1
  store i32 %storemerge72, ptr %4, align 4, !tbaa !5
  %101 = icmp sgt i32 %storemerge72.in, 1
  br i1 %101, label %99, label %._crit_edge101, !llvm.loop !19

._crit_edge101:                                   ; preds = %99, %._crit_edge96
  %102 = getelementptr inbounds [2500 x %"class.std::vector"], ptr @paths, i64 0, i64 %indvars.iv145
  %103 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %102) #7
  %104 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %102) #7
  call void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %103, ptr %104)
  %indvars.iv.next146 = add nuw nsw i64 %indvars.iv145, 1
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  %exitcond150.not = icmp eq i64 %indvars.iv.next146, %wide.trip.count
  br i1 %exitcond150.not, label %.preheader75, label %84, !llvm.loop !20

.preheader:                                       ; preds = %._crit_edge117, %.preheader75
  %.164.lcssa = phi i32 [ %.063.lcssa, %.preheader75 ], [ %.2.lcssa, %._crit_edge117 ]
  %105 = icmp sgt i32 %.164.lcssa, 0
  br i1 %105, label %.lr.ph128.preheader, label %._crit_edge129

.lr.ph128.preheader:                              ; preds = %.preheader
  %wide.trip.count160 = zext nneg i32 %.164.lcssa to i64
  br label %.lr.ph128

.lr.ph122:                                        ; preds = %.lr.ph122.preheader, %._crit_edge117
  %indvars.iv154 = phi i64 [ %83, %.lr.ph122.preheader ], [ %indvars.iv.next155, %._crit_edge117 ]
  %.164120 = phi i32 [ %.063.lcssa, %.lr.ph122.preheader ], [ %.2.lcssa, %._crit_edge117 ]
  %indvars.iv.next155 = add nsw i64 %indvars.iv154, -1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %106 = getelementptr inbounds [100 x %"class.std::vector"], ptr @d, i64 0, i64 %indvars.iv.next155
  %107 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %106) #7
  store ptr %107, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %108 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %106) #7
  store ptr %108, ptr %9, align 8
  %109 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  br i1 %109, label %.lr.ph116.preheader, label %._crit_edge117

.lr.ph116.preheader:                              ; preds = %.lr.ph122
  %110 = sext i32 %.164120 to i64
  br label %.lr.ph116

._crit_edge117.loopexit:                          ; preds = %._crit_edge113
  %111 = trunc nsw i64 %indvars.iv.next152 to i32
  br label %._crit_edge117

._crit_edge117:                                   ; preds = %._crit_edge117.loopexit, %.lr.ph122
  %.2.lcssa = phi i32 [ %.164120, %.lr.ph122 ], [ %111, %._crit_edge117.loopexit ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  %112 = icmp sgt i64 %indvars.iv154, 1
  br i1 %112, label %.lr.ph122, label %.preheader, !llvm.loop !21

.lr.ph116:                                        ; preds = %.lr.ph116.preheader, %._crit_edge113
  %indvars.iv151 = phi i64 [ %110, %.lr.ph116.preheader ], [ %indvars.iv.next152, %._crit_edge113 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  %113 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  %114 = load i32, ptr %113, align 4, !tbaa !15
  store i32 %114, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #7
  %115 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  %116 = getelementptr inbounds i8, ptr %115, i64 4
  %117 = load i32, ptr %116, align 4, !tbaa !17
  store i32 %117, ptr %11, align 4, !tbaa !5
  %118 = icmp sgt i32 %117, 0
  br i1 %118, label %.lr.ph107, label %._crit_edge108

.lr.ph107:                                        ; preds = %.lr.ph116
  %119 = getelementptr inbounds [2500 x %"class.std::vector"], ptr @paths, i64 0, i64 %indvars.iv151
  br label %120

120:                                              ; preds = %.lr.ph107, %120
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  %121 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %11)
  store i64 %121, ptr %12, align 8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %119, ptr noundef nonnull align 4 dereferenceable(8) %12)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  %122 = load i32, ptr %11, align 4, !tbaa !5
  %123 = add nsw i32 %122, -1
  store i32 %123, ptr %11, align 4, !tbaa !5
  %124 = icmp sgt i32 %122, 1
  br i1 %124, label %120, label %._crit_edge108, !llvm.loop !22

._crit_edge108:                                   ; preds = %120, %.lr.ph116
  store i32 1, ptr %11, align 4, !tbaa !5
  %storemerge70.in109 = load i32, ptr %10, align 4, !tbaa !5
  %storemerge70110 = add nsw i32 %storemerge70.in109, -1
  store i32 %storemerge70110, ptr %10, align 4, !tbaa !5
  %125 = icmp sgt i32 %storemerge70.in109, 1
  br i1 %125, label %.lr.ph112, label %._crit_edge113

.lr.ph112:                                        ; preds = %._crit_edge108
  %126 = getelementptr inbounds [2500 x %"class.std::vector"], ptr @paths, i64 0, i64 %indvars.iv151
  br label %127

127:                                              ; preds = %.lr.ph112, %127
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  %128 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %11)
  store i64 %128, ptr %13, align 8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %126, ptr noundef nonnull align 4 dereferenceable(8) %13)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  %storemerge70.in = load i32, ptr %10, align 4, !tbaa !5
  %storemerge70 = add nsw i32 %storemerge70.in, -1
  store i32 %storemerge70, ptr %10, align 4, !tbaa !5
  %129 = icmp sgt i32 %storemerge70.in, 1
  br i1 %129, label %127, label %._crit_edge113, !llvm.loop !23

._crit_edge113:                                   ; preds = %127, %._crit_edge108
  %130 = getelementptr inbounds [2500 x %"class.std::vector"], ptr @paths, i64 0, i64 %indvars.iv151
  %131 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %130) #7
  %132 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %130) #7
  call void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %131, ptr %132)
  %indvars.iv.next152 = add nsw i64 %indvars.iv151, 1
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  %133 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef 0) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %134 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %106) #7
  store ptr %134, ptr %9, align 8
  %135 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  br i1 %135, label %.lr.ph116, label %._crit_edge117.loopexit, !llvm.loop !24

._crit_edge129:                                   ; preds = %._crit_edge126, %.preheader
  ret i32 0

.lr.ph128:                                        ; preds = %.lr.ph128.preheader, %._crit_edge126
  %indvars.iv157 = phi i64 [ 0, %.lr.ph128.preheader ], [ %indvars.iv.next158, %._crit_edge126 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  %136 = getelementptr inbounds [2500 x %"class.std::vector"], ptr @paths, i64 0, i64 %indvars.iv157
  %137 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %136) #7
  store ptr %137, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  %138 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %136) #7
  store ptr %138, ptr %15, align 8
  %139 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  br i1 %139, label %.lr.ph125, label %._crit_edge126

._crit_edge126:                                   ; preds = %.lr.ph125, %.lr.ph128
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  %140 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  %indvars.iv.next158 = add nuw nsw i64 %indvars.iv157, 1
  %exitcond161.not = icmp eq i64 %indvars.iv.next158, %wide.trip.count160
  br i1 %exitcond161.not, label %._crit_edge129, label %.lr.ph128, !llvm.loop !25

.lr.ph125:                                        ; preds = %.lr.ph128, %.lr.ph125
  %141 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  %142 = load i32, ptr %141, align 4, !tbaa !15
  %143 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  %144 = getelementptr inbounds i8, ptr %143, i64 4
  %145 = load i32, ptr %144, align 4, !tbaa !17
  %146 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %142, i32 noundef %145)
  %147 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %14, i32 noundef 0) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  %148 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %136) #7
  store ptr %148, ptr %15, align 8
  %149 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  br i1 %149, label %.lr.ph125, label %._crit_edge126, !llvm.loop !26
}

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

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

; 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 #4 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS3_SaIS3_EEEEPFbRKS3_SA_EEvT_SD_T0_(ptr, ptr, ptr noundef) local_unnamed_addr #5

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

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

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

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

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

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

; 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 #0 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 #0 align 2

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

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

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


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