; LLVM IR from bqi343/cp-notebook :: Contests/USACO Solutions/2015-16/Open 2016/Plat (landscape_dp)

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

@X = external dso_local global i64, align 8
@Y = external dso_local global i64, align 8
@Z = external dso_local global i64, align 8
@cu = external dso_local global [1000002 x i64], align 16
@sufs = external dso_local global [1000002 x i64], align 16
@sufl = external dso_local global [1000002 x i64], align 16
@p = external dso_local global [1000002 x i64], align 16

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z6gensufRSt6vectorISt4pairIciESaIS1_EE(ptr noundef nonnull align 8 dereferenceable(24) %0) #4 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %3) #6
  %13 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZNSt6vectorISt4pairIciESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %13)
  %14 = call ptr @_ZNSt6vectorISt4pairIciESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %15 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %4, i32 0, i32 0
  store ptr %14, ptr %15, align 8
  %16 = call ptr @_ZNSt6vectorISt4pairIciESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %17 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %5, i32 0, i32 0
  store ptr %16, ptr %17, align 8
  %18 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %4, i32 0, i32 0
  %19 = load ptr, ptr %18, align 8
  %20 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %5, i32 0, i32 0
  %21 = load ptr, ptr %20, align 8
  invoke void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPSt4pairIciESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %19, ptr %21)
          to label %22 unwind label %29

22:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 2, ptr %8, align 4, !tbaa !9
  br label %23

23:                                               ; preds = %65, %22
  %24 = load i32, ptr %8, align 4, !tbaa !9
  %25 = sext i32 %24 to i64
  %26 = call noundef i64 @_ZNKSt6vectorISt4pairIciESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %27 = icmp ult i64 %25, %26
  br i1 %27, label %33, label %28

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

29:                                               ; preds = %1
  %30 = landingpad { ptr, i32 }
          cleanup
  %31 = extractvalue { ptr, i32 } %30, 0
  store ptr %31, ptr %6, align 8
  %32 = extractvalue { ptr, i32 } %30, 1
  store i32 %32, ptr %7, align 4
  br label %274

33:                                               ; preds = %23
  %34 = load i32, ptr %8, align 4, !tbaa !9
  %35 = sext i32 %34 to i64
  %36 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIciESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %35) #6
  %37 = getelementptr inbounds %"struct.std::pair", ptr %36, i32 0, i32 1
  %38 = load i32, ptr %37, align 4, !tbaa !11
  %39 = load i32, ptr %8, align 4, !tbaa !9
  %40 = sub nsw i32 %39, 1
  %41 = sext i32 %40 to i64
  %42 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIciESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %41) #6
  %43 = getelementptr inbounds %"struct.std::pair", ptr %42, i32 0, i32 1
  %44 = load i32, ptr %43, align 4, !tbaa !11
  %45 = sub nsw i32 %38, %44
  %46 = call i32 @llvm.abs.i32(i32 %45, i1 true)
  %47 = sext i32 %46 to i64
  %48 = load i32, ptr %8, align 4, !tbaa !9
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [1000002 x i64], ptr @cu, i64 0, i64 %49
  store i64 %47, ptr %50, align 8, !tbaa !13
  %51 = load i32, ptr %8, align 4, !tbaa !9
  %52 = icmp sgt i32 %51, 1
  br i1 %52, label %53, label %64

53:                                               ; preds = %33
  %54 = load i32, ptr %8, align 4, !tbaa !9
  %55 = sub nsw i32 %54, 2
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [1000002 x i64], ptr @cu, i64 0, i64 %56
  %58 = load i64, ptr %57, align 8, !tbaa !13
  %59 = load i32, ptr %8, align 4, !tbaa !9
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [1000002 x i64], ptr @cu, i64 0, i64 %60
  %62 = load i64, ptr %61, align 8, !tbaa !13
  %63 = add nsw i64 %62, %58
  store i64 %63, ptr %61, align 8, !tbaa !13
  br label %64

64:                                               ; preds = %53, %33
  br label %65

65:                                               ; preds = %64
  %66 = load i32, ptr %8, align 4, !tbaa !9
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %8, align 4, !tbaa !9
  br label %23, !llvm.loop !15

68:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 1, ptr %9, align 4, !tbaa !9
  br label %69

69:                                               ; preds = %269, %68
  %70 = load i32, ptr %9, align 4, !tbaa !9
  %71 = sext i32 %70 to i64
  %72 = call noundef i64 @_ZNKSt6vectorISt4pairIciESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %73 = add i64 %72, 1
  %74 = icmp ult i64 %71, %73
  br i1 %74, label %76, label %75

75:                                               ; preds = %69
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %273

76:                                               ; preds = %69
  %77 = load i32, ptr %9, align 4, !tbaa !9
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [1000002 x i64], ptr @sufl, i64 0, i64 %78
  store i64 1000000000000000000, ptr %79, align 8, !tbaa !13
  %80 = load i32, ptr %9, align 4, !tbaa !9
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [1000002 x i64], ptr @sufs, i64 0, i64 %81
  store i64 1000000000000000000, ptr %82, align 8, !tbaa !13
  %83 = load i32, ptr %9, align 4, !tbaa !9
  %84 = icmp sgt i32 %83, 1
  br i1 %84, label %85, label %128

85:                                               ; preds = %76
  %86 = load i32, ptr %9, align 4, !tbaa !9
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [1000002 x i64], ptr @sufs, i64 0, i64 %87
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %89 = load i32, ptr %9, align 4, !tbaa !9
  %90 = sub nsw i32 %89, 2
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [1000002 x i64], ptr @sufs, i64 0, i64 %91
  %93 = load i32, ptr %9, align 4, !tbaa !9
  %94 = sub nsw i32 %93, 2
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [1000002 x i64], ptr @sufl, i64 0, i64 %95
  %97 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %92, ptr noundef nonnull align 8 dereferenceable(8) %96)
          to label %98 unwind label %124

98:                                               ; preds = %85
  %99 = load i64, ptr %97, align 8, !tbaa !13
  %100 = load i64, ptr @Z, align 8, !tbaa !13
  %101 = load i32, ptr %9, align 4, !tbaa !9
  %102 = sub nsw i32 %101, 1
  %103 = sext i32 %102 to i64
  %104 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIciESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %103) #6
  %105 = getelementptr inbounds %"struct.std::pair", ptr %104, i32 0, i32 1
  %106 = load i32, ptr %105, align 4, !tbaa !11
  %107 = load i32, ptr %9, align 4, !tbaa !9
  %108 = sub nsw i32 %107, 2
  %109 = sext i32 %108 to i64
  %110 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIciESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %109) #6
  %111 = getelementptr inbounds %"struct.std::pair", ptr %110, i32 0, i32 1
  %112 = load i32, ptr %111, align 4, !tbaa !11
  %113 = sub nsw i32 %106, %112
  %114 = call i32 @llvm.abs.i32(i32 %113, i1 true)
  %115 = sext i32 %114 to i64
  %116 = mul nsw i64 %100, %115
  %117 = add nsw i64 %99, %116
  store i64 %117, ptr %10, align 8, !tbaa !13
  %118 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %88, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %119 unwind label %124

119:                                              ; preds = %98
  %120 = load i64, ptr %118, align 8, !tbaa !13
  %121 = load i32, ptr %9, align 4, !tbaa !9
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [1000002 x i64], ptr @sufs, i64 0, i64 %122
  store i64 %120, ptr %123, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %128

124:                                              ; preds = %98, %85
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %6, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %272

128:                                              ; preds = %119, %76
  %129 = load i32, ptr %9, align 4, !tbaa !9
  %130 = icmp sgt i32 %129, 3
  br i1 %130, label %131, label %168

131:                                              ; preds = %128
  %132 = load i32, ptr %9, align 4, !tbaa !9
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [1000002 x i64], ptr @sufl, i64 0, i64 %133
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %135 = load i32, ptr %9, align 4, !tbaa !9
  %136 = sub nsw i32 %135, 2
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [1000002 x i64], ptr @sufl, i64 0, i64 %137
  %139 = load i64, ptr %138, align 8, !tbaa !13
  %140 = load i64, ptr @Z, align 8, !tbaa !13
  %141 = load i32, ptr %9, align 4, !tbaa !9
  %142 = sub nsw i32 %141, 2
  %143 = sext i32 %142 to i64
  %144 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIciESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %143) #6
  %145 = getelementptr inbounds %"struct.std::pair", ptr %144, i32 0, i32 1
  %146 = load i32, ptr %145, align 4, !tbaa !11
  %147 = load i32, ptr %9, align 4, !tbaa !9
  %148 = sub nsw i32 %147, 3
  %149 = sext i32 %148 to i64
  %150 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIciESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %149) #6
  %151 = getelementptr inbounds %"struct.std::pair", ptr %150, i32 0, i32 1
  %152 = load i32, ptr %151, align 4, !tbaa !11
  %153 = sub nsw i32 %146, %152
  %154 = call i32 @llvm.abs.i32(i32 %153, i1 true)
  %155 = sext i32 %154 to i64
  %156 = mul nsw i64 %140, %155
  %157 = add nsw i64 %139, %156
  store i64 %157, ptr %11, align 8, !tbaa !13
  %158 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %134, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %159 unwind label %164

159:                                              ; preds = %131
  %160 = load i64, ptr %158, align 8, !tbaa !13
  %161 = load i32, ptr %9, align 4, !tbaa !9
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [1000002 x i64], ptr @sufl, i64 0, i64 %162
  store i64 %160, ptr %163, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %168

164:                                              ; preds = %131
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %6, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %272

168:                                              ; preds = %159, %128
  %169 = load i32, ptr %9, align 4, !tbaa !9
  %170 = icmp sge i32 %169, 2
  br i1 %170, label %171, label %180

171:                                              ; preds = %168
  %172 = load i32, ptr %9, align 4, !tbaa !9
  %173 = sub nsw i32 %172, 2
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [1000002 x i64], ptr @p, i64 0, i64 %174
  %176 = load i64, ptr %175, align 8, !tbaa !13
  %177 = load i32, ptr %9, align 4, !tbaa !9
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds [1000002 x i64], ptr @p, i64 0, i64 %178
  store i64 %176, ptr %179, align 8, !tbaa !13
  br label %184

180:                                              ; preds = %168
  %181 = load i32, ptr %9, align 4, !tbaa !9
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [1000002 x i64], ptr @p, i64 0, i64 %182
  store i64 0, ptr %183, align 8, !tbaa !13
  br label %184

184:                                              ; preds = %180, %171
  br label %185

185:                                              ; preds = %262, %184
  %186 = load i64, ptr @Z, align 8, !tbaa !13
  %187 = load i32, ptr %9, align 4, !tbaa !9
  %188 = sub nsw i32 %187, 1
  %189 = sext i32 %188 to i64
  %190 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIciESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %189) #6
  %191 = getelementptr inbounds %"struct.std::pair", ptr %190, i32 0, i32 1
  %192 = load i32, ptr %191, align 4, !tbaa !11
  %193 = load i32, ptr %9, align 4, !tbaa !9
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds [1000002 x i64], ptr @p, i64 0, i64 %194
  %196 = load i64, ptr %195, align 8, !tbaa !13
  %197 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIciESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %196) #6
  %198 = getelementptr inbounds %"struct.std::pair", ptr %197, i32 0, i32 1
  %199 = load i32, ptr %198, align 4, !tbaa !11
  %200 = sub nsw i32 %192, %199
  %201 = call i32 @llvm.abs.i32(i32 %200, i1 true)
  %202 = sext i32 %201 to i64
  %203 = mul nsw i64 %186, %202
  %204 = load i64, ptr @X, align 8, !tbaa !13
  %205 = load i64, ptr @Y, align 8, !tbaa !13
  %206 = add nsw i64 %204, %205
  %207 = icmp sgt i64 %203, %206
  br i1 %207, label %208, label %268

208:                                              ; preds = %185
  %209 = load i32, ptr %9, align 4, !tbaa !9
  %210 = sub nsw i32 %209, 1
  %211 = sext i32 %210 to i64
  %212 = load i32, ptr %9, align 4, !tbaa !9
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds [1000002 x i64], ptr @p, i64 0, i64 %213
  %215 = load i64, ptr %214, align 8, !tbaa !13
  %216 = sub nsw i64 %211, %215
  %217 = srem i64 %216, 2
  %218 = icmp eq i64 %217, 1
  br i1 %218, label %219, label %262

219:                                              ; preds = %208
  %220 = load i32, ptr %9, align 4, !tbaa !9
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds [1000002 x i64], ptr @sufl, i64 0, i64 %221
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %223 = load i32, ptr %9, align 4, !tbaa !9
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds [1000002 x i64], ptr @p, i64 0, i64 %224
  %226 = load i64, ptr %225, align 8, !tbaa !13
  %227 = getelementptr inbounds [1000002 x i64], ptr @sufs, i64 0, i64 %226
  %228 = load i32, ptr %9, align 4, !tbaa !9
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds [1000002 x i64], ptr @p, i64 0, i64 %229
  %231 = load i64, ptr %230, align 8, !tbaa !13
  %232 = getelementptr inbounds [1000002 x i64], ptr @sufl, i64 0, i64 %231
  %233 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %227, ptr noundef nonnull align 8 dereferenceable(8) %232)
          to label %234 unwind label %258

234:                                              ; preds = %219
  %235 = load i64, ptr %233, align 8, !tbaa !13
  %236 = load i64, ptr @X, align 8, !tbaa !13
  %237 = add nsw i64 %235, %236
  %238 = load i64, ptr @Y, align 8, !tbaa !13
  %239 = add nsw i64 %237, %238
  %240 = load i64, ptr @Z, align 8, !tbaa !13
  %241 = load i32, ptr %9, align 4, !tbaa !9
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds [1000002 x i64], ptr @p, i64 0, i64 %242
  %244 = load i64, ptr %243, align 8, !tbaa !13
  %245 = add nsw i64 %244, 1
  %246 = trunc i64 %245 to i32
  %247 = load i32, ptr %9, align 4, !tbaa !9
  %248 = sub nsw i32 %247, 2
  %249 = call noundef i64 @_Z3cumii(i32 noundef %246, i32 noundef %248)
  %250 = mul nsw i64 %240, %249
  %251 = add nsw i64 %239, %250
  store i64 %251, ptr %12, align 8, !tbaa !13
  %252 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %222, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %253 unwind label %258

253:                                              ; preds = %234
  %254 = load i64, ptr %252, align 8, !tbaa !13
  %255 = load i32, ptr %9, align 4, !tbaa !9
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds [1000002 x i64], ptr @sufl, i64 0, i64 %256
  store i64 %254, ptr %257, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %262

258:                                              ; preds = %234, %219
  %259 = landingpad { ptr, i32 }
          cleanup
  %260 = extractvalue { ptr, i32 } %259, 0
  store ptr %260, ptr %6, align 8
  %261 = extractvalue { ptr, i32 } %259, 1
  store i32 %261, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %272

262:                                              ; preds = %253, %208
  %263 = load i32, ptr %9, align 4, !tbaa !9
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds [1000002 x i64], ptr @p, i64 0, i64 %264
  %266 = load i64, ptr %265, align 8, !tbaa !13
  %267 = add nsw i64 %266, 1
  store i64 %267, ptr %265, align 8, !tbaa !13
  br label %185, !llvm.loop !17

268:                                              ; preds = %185
  br label %269

269:                                              ; preds = %268
  %270 = load i32, ptr %9, align 4, !tbaa !9
  %271 = add nsw i32 %270, 1
  store i32 %271, ptr %9, align 4, !tbaa !9
  br label %69, !llvm.loop !18

272:                                              ; preds = %258, %164, %124
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %274

273:                                              ; preds = %75
  call void @_ZNSt6vectorISt4pairIciESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #6
  ret void

274:                                              ; preds = %272, %29
  call void @_ZNSt6vectorISt4pairIciESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #6
  br label %275

275:                                              ; preds = %274
  %276 = load ptr, ptr %6, align 8
  %277 = load i32, ptr %7, align 4
  %278 = insertvalue { ptr, i32 } poison, ptr %276, 0
  %279 = insertvalue { ptr, i32 } %278, i32 %277, 1
  resume { ptr, i32 } %279
}

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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


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

@X = external dso_local local_unnamed_addr global i64, align 8
@Y = external dso_local local_unnamed_addr global i64, align 8
@Z = external dso_local local_unnamed_addr global i64, align 8
@cu = external dso_local local_unnamed_addr global [1000002 x i64], align 16
@sufs = external dso_local global [1000002 x i64], align 16
@sufl = external dso_local global [1000002 x i64], align 16
@p = external dso_local local_unnamed_addr global [1000002 x i64], align 16

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z3cumii(i32 noundef, i32 noundef) 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 @_ZNKSt6vectorISt4pairIciESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z6gensufRSt6vectorISt4pairIciESaIS1_EE(ptr noundef nonnull align 8 dereferenceable(24) %0) local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::vector", align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #6
  call void @_ZNSt6vectorISt4pairIciESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %0)
  %6 = call ptr @_ZNSt6vectorISt4pairIciESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %7 = call ptr @_ZNSt6vectorISt4pairIciESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  invoke void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPSt4pairIciESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %6, ptr %7)
          to label %.preheader47 unwind label %13

.preheader47:                                     ; preds = %1
  %8 = call noundef i64 @_ZNKSt6vectorISt4pairIciESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %9 = icmp ugt i64 %8, 2
  br i1 %9, label %.lr.ph, label %.preheader

.preheader:                                       ; preds = %.lr.ph, %.preheader47
  %10 = call noundef i64 @_ZNKSt6vectorISt4pairIciESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %11 = add i64 %10, -1
  %12 = icmp ult i64 %11, -2
  br i1 %12, label %.lr.ph50, label %._crit_edge

13:                                               ; preds = %1
  %14 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorISt4pairIciESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  resume { ptr, i32 } %14

.lr.ph:                                           ; preds = %.preheader47, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 2, %.preheader47 ]
  %15 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIciESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #6
  %16 = getelementptr inbounds i8, ptr %15, i64 4
  %17 = load i32, ptr %16, align 4, !tbaa !5
  %18 = add nsw i64 %indvars.iv, -1
  %19 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIciESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %18) #6
  %20 = getelementptr inbounds i8, ptr %19, i64 4
  %21 = load i32, ptr %20, align 4, !tbaa !5
  %22 = sub nsw i32 %17, %21
  %23 = call i32 @llvm.abs.i32(i32 %22, i1 true)
  %24 = zext nneg i32 %23 to i64
  %25 = getelementptr inbounds [1000002 x i64], ptr @cu, i64 0, i64 %indvars.iv
  %26 = add nsw i64 %indvars.iv, -2
  %27 = getelementptr inbounds [1000002 x i64], ptr @cu, i64 0, i64 %26
  %28 = load i64, ptr %27, align 8, !tbaa !10
  %29 = add nsw i64 %28, %24
  store i64 %29, ptr %25, align 8, !tbaa !10
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %30 = call noundef i64 @_ZNKSt6vectorISt4pairIciESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %31 = icmp ugt i64 %30, %indvars.iv.next
  br i1 %31, label %.lr.ph, label %.preheader, !llvm.loop !12

._crit_edge:                                      ; preds = %124, %.preheader
  call void @_ZNSt6vectorISt4pairIciESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  ret void

.lr.ph50:                                         ; preds = %.preheader, %124
  %indvars.iv52 = phi i64 [ %indvars.iv.next53, %124 ], [ 1, %.preheader ]
  %32 = getelementptr inbounds [1000002 x i64], ptr @sufl, i64 0, i64 %indvars.iv52
  store i64 1000000000000000000, ptr %32, align 8, !tbaa !10
  %33 = getelementptr inbounds [1000002 x i64], ptr @sufs, i64 0, i64 %indvars.iv52
  store i64 1000000000000000000, ptr %33, align 8, !tbaa !10
  %34 = icmp ugt i64 %indvars.iv52, 1
  br i1 %34, label %35, label %77

35:                                               ; preds = %.lr.ph50
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %36 = add nsw i64 %indvars.iv52, -2
  %37 = getelementptr inbounds [1000002 x i64], ptr @sufs, i64 0, i64 %36
  %38 = getelementptr inbounds [1000002 x i64], ptr @sufl, i64 0, i64 %36
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull align 8 dereferenceable(8) %38)
  %40 = load i64, ptr %39, align 8, !tbaa !10
  %41 = load i64, ptr @Z, align 8, !tbaa !10
  %42 = add nsw i64 %indvars.iv52, -1
  %43 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIciESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %42) #6
  %44 = getelementptr inbounds i8, ptr %43, i64 4
  %45 = load i32, ptr %44, align 4, !tbaa !5
  %46 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIciESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %36) #6
  %47 = getelementptr inbounds i8, ptr %46, i64 4
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = sub nsw i32 %45, %48
  %50 = call i32 @llvm.abs.i32(i32 %49, i1 true)
  %51 = zext nneg i32 %50 to i64
  %52 = mul nsw i64 %41, %51
  %53 = add nsw i64 %52, %40
  store i64 %53, ptr %3, align 8, !tbaa !10
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %55 = load i64, ptr %54, align 8, !tbaa !10
  store i64 %55, ptr %33, align 8, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  %56 = icmp ugt i64 %indvars.iv52, 3
  br i1 %56, label %57, label %74

57:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %58 = load i64, ptr %38, align 8, !tbaa !10
  %59 = load i64, ptr @Z, align 8, !tbaa !10
  %60 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIciESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %36) #6
  %61 = getelementptr inbounds i8, ptr %60, i64 4
  %62 = load i32, ptr %61, align 4, !tbaa !5
  %63 = add nsw i64 %indvars.iv52, -3
  %64 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIciESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %63) #6
  %65 = getelementptr inbounds i8, ptr %64, i64 4
  %66 = load i32, ptr %65, align 4, !tbaa !5
  %67 = sub nsw i32 %62, %66
  %68 = call i32 @llvm.abs.i32(i32 %67, i1 true)
  %69 = zext nneg i32 %68 to i64
  %70 = mul nsw i64 %59, %69
  %71 = add nsw i64 %70, %58
  store i64 %71, ptr %4, align 8, !tbaa !10
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %73 = load i64, ptr %72, align 8, !tbaa !10
  store i64 %73, ptr %32, align 8, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br label %74

74:                                               ; preds = %57, %35
  %75 = getelementptr inbounds [1000002 x i64], ptr @p, i64 0, i64 %36
  %76 = load i64, ptr %75, align 8, !tbaa !10
  br label %77

77:                                               ; preds = %.lr.ph50, %74
  %.sink = phi i64 [ %76, %74 ], [ 0, %.lr.ph50 ]
  %.pre-phi57 = phi i64 [ %36, %74 ], [ -1, %.lr.ph50 ]
  %.pre-phi = phi i64 [ %42, %74 ], [ 0, %.lr.ph50 ]
  %78 = getelementptr inbounds [1000002 x i64], ptr @p, i64 0, i64 %indvars.iv52
  store i64 %.sink, ptr %78, align 8, !tbaa !10
  %79 = getelementptr inbounds [1000002 x i64], ptr @p, i64 0, i64 %indvars.iv52
  %80 = trunc nsw i64 %.pre-phi57 to i32
  br label %81

81:                                               ; preds = %121, %77
  %82 = load i64, ptr @Z, align 8, !tbaa !10
  %83 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIciESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.pre-phi) #6
  %84 = getelementptr inbounds i8, ptr %83, i64 4
  %85 = load i32, ptr %84, align 4, !tbaa !5
  %86 = load i64, ptr %79, align 8, !tbaa !10
  %87 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIciESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %86) #6
  %88 = getelementptr inbounds i8, ptr %87, i64 4
  %89 = load i32, ptr %88, align 4, !tbaa !5
  %90 = sub nsw i32 %85, %89
  %91 = call i32 @llvm.abs.i32(i32 %90, i1 true)
  %92 = zext nneg i32 %91 to i64
  %93 = mul nsw i64 %82, %92
  %94 = load i64, ptr @X, align 8, !tbaa !10
  %95 = load i64, ptr @Y, align 8, !tbaa !10
  %96 = add nsw i64 %95, %94
  %97 = icmp sgt i64 %93, %96
  br i1 %97, label %98, label %124

98:                                               ; preds = %81
  %99 = load i64, ptr %79, align 8, !tbaa !10
  %100 = sub nsw i64 %.pre-phi, %99
  %101 = and i64 %100, -9223372036854775807
  %102 = icmp eq i64 %101, 1
  br i1 %102, label %103, label %121

103:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %104 = getelementptr inbounds [1000002 x i64], ptr @sufs, i64 0, i64 %99
  %105 = getelementptr inbounds [1000002 x i64], ptr @sufl, i64 0, i64 %99
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %104, ptr noundef nonnull align 8 dereferenceable(8) %105)
  %107 = load i64, ptr %106, align 8, !tbaa !10
  %108 = load i64, ptr @X, align 8, !tbaa !10
  %109 = add nsw i64 %108, %107
  %110 = load i64, ptr @Y, align 8, !tbaa !10
  %111 = add nsw i64 %109, %110
  %112 = load i64, ptr @Z, align 8, !tbaa !10
  %113 = load i64, ptr %79, align 8, !tbaa !10
  %114 = trunc i64 %113 to i32
  %115 = add i32 %114, 1
  %116 = call noundef i64 @_Z3cumii(i32 noundef %115, i32 noundef %80)
  %117 = mul nsw i64 %116, %112
  %118 = add nsw i64 %111, %117
  store i64 %118, ptr %5, align 8, !tbaa !10
  %119 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %120 = load i64, ptr %119, align 8, !tbaa !10
  store i64 %120, ptr %32, align 8, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  %.pre = load i64, ptr %79, align 8, !tbaa !10
  br label %121

121:                                              ; preds = %103, %98
  %122 = phi i64 [ %.pre, %103 ], [ %99, %98 ]
  %123 = add nsw i64 %122, 1
  store i64 %123, ptr %79, align 8, !tbaa !10
  br label %81, !llvm.loop !14

124:                                              ; preds = %81
  %indvars.iv.next53 = add nuw nsw i64 %indvars.iv52, 1
  %125 = call noundef i64 @_ZNKSt6vectorISt4pairIciESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %126 = add i64 %125, 1
  %127 = icmp ugt i64 %126, %indvars.iv.next53
  br i1 %127, label %.lr.ph50, label %._crit_edge, !llvm.loop !15
}

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

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

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

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

declare i32 @__gxx_personality_v0(...)

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #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 = { 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, !9, i64 4}
!6 = !{!"_ZTSSt4pairIciE", !7, i64 0, !9, i64 4}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!"int", !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"long long", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}


; Effective O3 passes: ADCEPass,CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass