; LLVM IR from tangjz/acm-icpc :: lydsy/1400.ll (Z6updatePA101_St6vectorISt4pairIyyESaIS1_EEi)

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

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@ex0 = external dso_local global i32, align 4
@ex1 = external dso_local global i32, align 4
@upp = external dso_local global i64, align 8

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z6updatePA101_St6vectorISt4pairIyyESaIS1_EEi(ptr noundef %0, i32 noundef %1) #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"class.std::vector", align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca %"struct.std::pair", align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %27 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %28 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %29 = alloca %"struct.std::pair", align 8
  %30 = alloca i64, align 8
  %31 = alloca i64, align 8
  %32 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %33 = load i32, ptr %4, align 4, !tbaa !9
  %34 = load i32, ptr @ex0, align 4, !tbaa !9
  %35 = load i64, ptr @upp, align 8, !tbaa !11
  %36 = call noundef i64 @_Z5poweriiy(i32 noundef %33, i32 noundef %34, i64 noundef %35)
  store i64 %36, ptr %5, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %37 = load i32, ptr %4, align 4, !tbaa !9
  %38 = load i32, ptr @ex1, align 4, !tbaa !9
  %39 = call noundef i64 @_Z5poweriiy(i32 noundef %37, i32 noundef %38, i64 noundef 9223372036854775807)
  store i64 %39, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 1, ptr %7, align 4, !tbaa !9
  br label %40

40:                                               ; preds = %249, %2
  %41 = load i32, ptr %7, align 4, !tbaa !9
  %42 = load i32, ptr @n, align 4, !tbaa !9
  %43 = icmp sle i32 %41, %42
  br i1 %43, label %45, label %44

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

45:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %46 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %46, ptr %9, align 4, !tbaa !9
  br label %47

47:                                               ; preds = %243, %45
  %48 = load i32, ptr %9, align 4, !tbaa !9
  %49 = load i32, ptr @m, align 4, !tbaa !9
  %50 = icmp sle i32 %48, %49
  br i1 %50, label %52, label %51

51:                                               ; preds = %47
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %248

52:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  %54 = load i32, ptr %7, align 4, !tbaa !9
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [101 x %"class.std::vector"], ptr %53, i64 %55
  %57 = load i32, ptr %9, align 4, !tbaa !9
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [101 x %"class.std::vector"], ptr %56, i64 0, i64 %58
  store ptr %59, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %60 = load ptr, ptr %3, align 8, !tbaa !5
  %61 = load i32, ptr %7, align 4, !tbaa !9
  %62 = sub nsw i32 %61, 1
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [101 x %"class.std::vector"], ptr %60, i64 %63
  %65 = load i32, ptr %9, align 4, !tbaa !9
  %66 = load i32, ptr %4, align 4, !tbaa !9
  %67 = sub nsw i32 %65, %66
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [101 x %"class.std::vector"], ptr %64, i64 0, i64 %68
  store ptr %69, ptr %11, align 8, !tbaa !5
  %70 = load ptr, ptr %11, align 8, !tbaa !5
  %71 = call noundef zeroext i1 @_ZNKSt6vectorISt4pairIyyESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #5
  br i1 %71, label %72, label %73

72:                                               ; preds = %52
  store i32 7, ptr %8, align 4
  br label %240

73:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #5
  call void @_ZNSt6vectorISt4pairIyyESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  %74 = load ptr, ptr %10, align 8, !tbaa !5
  %75 = call noundef i64 @_ZNKSt6vectorISt4pairIyyESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %74) #5
  %76 = load ptr, ptr %11, align 8, !tbaa !5
  %77 = call noundef i64 @_ZNKSt6vectorISt4pairIyyESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %76) #5
  %78 = add i64 %75, %77
  invoke void @_ZNSt6vectorISt4pairIyyESaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %78)
          to label %79 unwind label %110

79:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %80 = load ptr, ptr %10, align 8, !tbaa !5
  %81 = call ptr @_ZNSt6vectorISt4pairIyyESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %80) #5
  %82 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %81, ptr %82, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %83 = load ptr, ptr %11, align 8, !tbaa !5
  %84 = call ptr @_ZNSt6vectorISt4pairIyyESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %83) #5
  %85 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %84, ptr %85, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %86 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIyyESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  %87 = getelementptr inbounds %"struct.std::pair", ptr %86, i32 0, i32 0
  %88 = load i64, ptr %87, align 8, !tbaa !13
  %89 = load i64, ptr %5, align 8, !tbaa !11
  %90 = add i64 %88, %89
  store i64 %90, ptr %18, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %91 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIyyESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  %92 = getelementptr inbounds %"struct.std::pair", ptr %91, i32 0, i32 1
  %93 = load i64, ptr %92, align 8, !tbaa !15
  %94 = load i64, ptr %6, align 8, !tbaa !11
  %95 = add i64 %93, %94
  store i64 %95, ptr %19, align 8, !tbaa !11
  %96 = invoke { i64, i64 } @_ZSt9make_pairIyyESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %97 unwind label %114

97:                                               ; preds = %79
  %98 = getelementptr inbounds { i64, i64 }, ptr %17, i32 0, i32 0
  %99 = extractvalue { i64, i64 } %96, 0
  store i64 %99, ptr %98, align 8
  %100 = getelementptr inbounds { i64, i64 }, ptr %17, i32 0, i32 1
  %101 = extractvalue { i64, i64 } %96, 1
  store i64 %101, ptr %100, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  %102 = getelementptr inbounds %"struct.std::pair", ptr %17, i32 0, i32 0
  %103 = load i64, ptr %102, align 8, !tbaa !13
  %104 = load i64, ptr @upp, align 8, !tbaa !11
  %105 = icmp ugt i64 %103, %104
  br i1 %105, label %106, label %118

106:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %107 = load ptr, ptr %11, align 8, !tbaa !5
  %108 = call ptr @_ZNSt6vectorISt4pairIyyESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %107) #5
  %109 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  store ptr %108, ptr %109, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 %20, i64 8, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %118

110:                                              ; preds = %73
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %13, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %14, align 4
  br label %247

114:                                              ; preds = %79
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %13, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %246

118:                                              ; preds = %106, %97
  br label %119

119:                                              ; preds = %237, %118
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %120 = load ptr, ptr %10, align 8, !tbaa !5
  %121 = call ptr @_ZNSt6vectorISt4pairIyyESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %120) #5
  %122 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  store ptr %121, ptr %122, align 8
  %123 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIyyESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  br i1 %123, label %129, label %124

124:                                              ; preds = %119
  %125 = load ptr, ptr %11, align 8, !tbaa !5
  %126 = call ptr @_ZNSt6vectorISt4pairIyyESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %125) #5
  %127 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %22, i32 0, i32 0
  store ptr %126, ptr %127, align 8
  %128 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIyyESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %22) #5
  br label %129

129:                                              ; preds = %124, %119
  %130 = phi i1 [ true, %119 ], [ %128, %124 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br i1 %130, label %131, label %238

131:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %132 = load ptr, ptr %11, align 8, !tbaa !5
  %133 = call ptr @_ZNSt6vectorISt4pairIyyESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %132) #5
  %134 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %23, i32 0, i32 0
  store ptr %133, ptr %134, align 8
  %135 = call noundef zeroext i1 @_ZN9__gnu_cxxeqIPSt4pairIyyESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %23) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  br i1 %135, label %150, label %136

136:                                              ; preds = %131
  %137 = load ptr, ptr %10, align 8, !tbaa !5
  %138 = call ptr @_ZNSt6vectorISt4pairIyyESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %137) #5
  %139 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %24, i32 0, i32 0
  store ptr %138, ptr %139, align 8
  %140 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIyyESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %24) #5
  br i1 %140, label %141, label %148

141:                                              ; preds = %136
  %142 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIyyESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  %143 = getelementptr inbounds %"struct.std::pair", ptr %142, i32 0, i32 0
  %144 = load i64, ptr %143, align 8, !tbaa !13
  %145 = getelementptr inbounds %"struct.std::pair", ptr %17, i32 0, i32 0
  %146 = load i64, ptr %145, align 8, !tbaa !13
  %147 = icmp ult i64 %144, %146
  br label %148

148:                                              ; preds = %141, %136
  %149 = phi i1 [ false, %136 ], [ %147, %141 ]
  br label %150

150:                                              ; preds = %148, %131
  %151 = phi i1 [ true, %131 ], [ %149, %148 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br i1 %151, label %152, label %161

152:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  %153 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIyyESt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %15, i32 noundef 0) #5
  %154 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %25, i32 0, i32 0
  store ptr %153, ptr %154, align 8
  %155 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIyyESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #5
  invoke void @_ZNSt6vectorISt4pairIyyESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(16) %155)
          to label %156 unwind label %157

156:                                              ; preds = %152
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  br label %237

157:                                              ; preds = %152
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %13, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  br label %246

161:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  %162 = load ptr, ptr %10, align 8, !tbaa !5
  %163 = call ptr @_ZNSt6vectorISt4pairIyyESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %162) #5
  %164 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %26, i32 0, i32 0
  store ptr %163, ptr %164, align 8
  %165 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIyyESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %26) #5
  br i1 %165, label %166, label %173

166:                                              ; preds = %161
  %167 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIyyESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  %168 = getelementptr inbounds %"struct.std::pair", ptr %167, i32 0, i32 0
  %169 = load i64, ptr %168, align 8, !tbaa !13
  %170 = getelementptr inbounds %"struct.std::pair", ptr %17, i32 0, i32 0
  %171 = load i64, ptr %170, align 8, !tbaa !13
  %172 = icmp eq i64 %169, %171
  br label %173

173:                                              ; preds = %166, %161
  %174 = phi i1 [ false, %161 ], [ %172, %166 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  br i1 %174, label %175, label %189

175:                                              ; preds = %173
  %176 = getelementptr inbounds %"struct.std::pair", ptr %17, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  %177 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIyyESt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %15, i32 noundef 0) #5
  %178 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %27, i32 0, i32 0
  store ptr %177, ptr %178, align 8
  %179 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIyyESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #5
  %180 = getelementptr inbounds %"struct.std::pair", ptr %179, i32 0, i32 1
  %181 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIyERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %176, ptr noundef nonnull align 8 dereferenceable(8) %180)
          to label %182 unwind label %185

182:                                              ; preds = %175
  %183 = load i64, ptr %181, align 8, !tbaa !11
  %184 = getelementptr inbounds %"struct.std::pair", ptr %17, i32 0, i32 1
  store i64 %183, ptr %184, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  br label %189

185:                                              ; preds = %175
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %13, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  br label %246

189:                                              ; preds = %182, %173
  %190 = getelementptr inbounds %"struct.std::pair", ptr %17, i32 0, i32 1
  %191 = load i64, ptr %190, align 8, !tbaa !15
  %192 = icmp ule i64 %191, 9223372036854775807
  br i1 %192, label %193, label %199

193:                                              ; preds = %189
  invoke void @_ZNSt6vectorISt4pairIyyESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %194 unwind label %195

194:                                              ; preds = %193
  br label %199

195:                                              ; preds = %193
  %196 = landingpad { ptr, i32 }
          cleanup
  %197 = extractvalue { ptr, i32 } %196, 0
  store ptr %197, ptr %13, align 8
  %198 = extractvalue { ptr, i32 } %196, 1
  store i32 %198, ptr %14, align 4
  br label %246

199:                                              ; preds = %194, %189
  %200 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIyyESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  %201 = load ptr, ptr %11, align 8, !tbaa !5
  %202 = call ptr @_ZNSt6vectorISt4pairIyyESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %201) #5
  %203 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %28, i32 0, i32 0
  store ptr %202, ptr %203, align 8
  %204 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIyyESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %200, ptr noundef nonnull align 8 dereferenceable(8) %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  br i1 %204, label %205, label %236

205:                                              ; preds = %199
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #5
  %206 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIyyESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  %207 = getelementptr inbounds %"struct.std::pair", ptr %206, i32 0, i32 0
  %208 = load i64, ptr %207, align 8, !tbaa !13
  %209 = load i64, ptr %5, align 8, !tbaa !11
  %210 = add i64 %208, %209
  store i64 %210, ptr %30, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  %211 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIyyESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  %212 = getelementptr inbounds %"struct.std::pair", ptr %211, i32 0, i32 1
  %213 = load i64, ptr %212, align 8, !tbaa !15
  %214 = load i64, ptr %6, align 8, !tbaa !11
  %215 = add i64 %213, %214
  store i64 %215, ptr %31, align 8, !tbaa !11
  %216 = invoke { i64, i64 } @_ZSt9make_pairIyyESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 8 dereferenceable(8) %31)
          to label %217 unwind label %231

217:                                              ; preds = %205
  %218 = getelementptr inbounds { i64, i64 }, ptr %29, i32 0, i32 0
  %219 = extractvalue { i64, i64 } %216, 0
  store i64 %219, ptr %218, align 8
  %220 = getelementptr inbounds { i64, i64 }, ptr %29, i32 0, i32 1
  %221 = extractvalue { i64, i64 } %216, 1
  store i64 %221, ptr %220, align 8
  %222 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIyyEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(16) %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #5
  %223 = getelementptr inbounds %"struct.std::pair", ptr %17, i32 0, i32 0
  %224 = load i64, ptr %223, align 8, !tbaa !13
  %225 = load i64, ptr @upp, align 8, !tbaa !11
  %226 = icmp ugt i64 %224, %225
  br i1 %226, label %227, label %235

227:                                              ; preds = %217
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #5
  %228 = load ptr, ptr %11, align 8, !tbaa !5
  %229 = call ptr @_ZNSt6vectorISt4pairIyyESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %228) #5
  %230 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %32, i32 0, i32 0
  store ptr %229, ptr %230, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 %32, i64 8, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  br label %235

231:                                              ; preds = %205
  %232 = landingpad { ptr, i32 }
          cleanup
  %233 = extractvalue { ptr, i32 } %232, 0
  store ptr %233, ptr %13, align 8
  %234 = extractvalue { ptr, i32 } %232, 1
  store i32 %234, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #5
  br label %246

235:                                              ; preds = %227, %217
  br label %236

236:                                              ; preds = %235, %199
  br label %237

237:                                              ; preds = %236, %156
  br label %119, !llvm.loop !17

238:                                              ; preds = %129
  %239 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZNSt6vectorISt4pairIyyESaIS1_EE4swapERS3_(ptr noundef nonnull align 8 dereferenceable(24) %239, ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @_ZNSt6vectorISt4pairIyyESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #5
  store i32 0, ptr %8, align 4
  br label %240

240:                                              ; preds = %238, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  %241 = load i32, ptr %8, align 4
  switch i32 %241, label %258 [
    i32 0, label %242
    i32 7, label %243
  ]

242:                                              ; preds = %240
  br label %243

243:                                              ; preds = %242, %240
  %244 = load i32, ptr %9, align 4, !tbaa !9
  %245 = add nsw i32 %244, 1
  store i32 %245, ptr %9, align 4, !tbaa !9
  br label %47, !llvm.loop !19

246:                                              ; preds = %231, %195, %185, %157, %114
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %247

247:                                              ; preds = %246, %110
  call void @_ZNSt6vectorISt4pairIyyESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %253

248:                                              ; preds = %51
  br label %249

249:                                              ; preds = %248
  %250 = load i32, ptr %7, align 4, !tbaa !9
  %251 = add nsw i32 %250, 1
  store i32 %251, ptr %7, align 4, !tbaa !9
  br label %40, !llvm.loop !20

252:                                              ; preds = %44
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  ret void

253:                                              ; preds = %247
  %254 = load ptr, ptr %13, align 8
  %255 = load i32, ptr %14, align 4
  %256 = insertvalue { ptr, i32 } poison, ptr %254, 0
  %257 = insertvalue { ptr, i32 } %256, i32 %255, 1
  resume { ptr, i32 } %257

258:                                              ; preds = %240
  unreachable
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z5poweriiy(i32 noundef, i32 noundef, i64 noundef) #3

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

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

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

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

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

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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, !12, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"_ZTSSt4pairIyyE", !12, i64 0, !12, i64 8}
!15 = !{!14, !12, i64 8}
!16 = !{i64 0, i64 8, !5}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}


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

@n = external dso_local local_unnamed_addr global i32, align 4
@m = external dso_local local_unnamed_addr global i32, align 4
@ex0 = external dso_local local_unnamed_addr global i32, align 4
@ex1 = external dso_local local_unnamed_addr global i32, align 4
@upp = external dso_local local_unnamed_addr global i64, align 8

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z6updatePA101_St6vectorISt4pairIyyESaIS1_EEi(ptr noundef %0, i32 noundef %1) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %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 %"struct.std::pair", align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca %"struct.std::pair", align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = load i32, ptr @ex0, align 4, !tbaa !5
  %21 = load i64, ptr @upp, align 8, !tbaa !9
  %22 = tail call noundef i64 @_Z5poweriiy(i32 noundef %1, i32 noundef %20, i64 noundef %21)
  %23 = load i32, ptr @ex1, align 4, !tbaa !5
  %24 = tail call noundef i64 @_Z5poweriiy(i32 noundef %1, i32 noundef %23, i64 noundef 9223372036854775807)
  %25 = load i32, ptr @n, align 4, !tbaa !5
  %.not49 = icmp slt i32 %25, 1
  br i1 %.not49, label %._crit_edge51, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %2
  %invariant.gep = getelementptr i8, ptr %0, i64 -2424
  %26 = getelementptr inbounds i8, ptr %6, i64 8
  %27 = getelementptr inbounds i8, ptr %17, i64 8
  %28 = load i32, ptr @m, align 4, !tbaa !5
  %29 = icmp slt i32 %28, %1
  br i1 %29, label %._crit_edge51, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.preheader.lr.ph
  %30 = sext i32 %1 to i64
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge
  %31 = phi i32 [ %25, %.preheader.preheader ], [ %33, %._crit_edge ]
  %32 = phi i32 [ %28, %.preheader.preheader ], [ %34, %._crit_edge ]
  %indvars.iv54 = phi i64 [ 1, %.preheader.preheader ], [ %indvars.iv.next55, %._crit_edge ]
  %.not4447 = icmp slt i32 %32, %1
  br i1 %.not4447, label %._crit_edge, label %.lr.ph

._crit_edge51:                                    ; preds = %._crit_edge, %.preheader.lr.ph, %2
  ret void

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

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader
  %33 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %31, %.preheader ]
  %34 = phi i32 [ %135, %._crit_edge.loopexit ], [ %32, %.preheader ]
  %indvars.iv.next55 = add nuw nsw i64 %indvars.iv54, 1
  %35 = sext i32 %33 to i64
  %.not.not = icmp slt i64 %indvars.iv54, %35
  br i1 %.not.not, label %.preheader, label %._crit_edge51, !llvm.loop !11

.lr.ph:                                           ; preds = %.preheader, %134
  %indvars.iv = phi i64 [ %indvars.iv.next, %134 ], [ %30, %.preheader ]
  %36 = getelementptr inbounds [101 x %"class.std::vector"], ptr %0, i64 %indvars.iv54, i64 %indvars.iv
  %37 = sub nsw i64 %indvars.iv, %30
  %38 = getelementptr nusw [101 x %"class.std::vector"], ptr %invariant.gep, i64 %indvars.iv54, i64 %37
  %39 = call noundef zeroext i1 @_ZNKSt6vectorISt4pairIyyESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %38) #4
  br i1 %39, label %134, label %40

40:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #4
  call void @_ZNSt6vectorISt4pairIyyESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  %41 = call noundef i64 @_ZNKSt6vectorISt4pairIyyESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #4
  %42 = call noundef i64 @_ZNKSt6vectorISt4pairIyyESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %38) #4
  %43 = add i64 %42, %41
  invoke void @_ZNSt6vectorISt4pairIyyESaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %43)
          to label %44 unwind label %62

44:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  %45 = call ptr @_ZNSt6vectorISt4pairIyyESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #4
  store ptr %45, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %46 = call ptr @_ZNSt6vectorISt4pairIyyESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %38) #4
  store ptr %46, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  %47 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIyyESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %48 = load i64, ptr %47, align 8, !tbaa !14
  %49 = add i64 %48, %22
  store i64 %49, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %50 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIyyESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %51 = getelementptr inbounds i8, ptr %50, i64 8
  %52 = load i64, ptr %51, align 8, !tbaa !16
  %53 = add i64 %52, %24
  store i64 %53, ptr %8, align 8, !tbaa !9
  %54 = invoke { i64, i64 } @_ZSt9make_pairIyyESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %55 unwind label %64

55:                                               ; preds = %44
  %56 = extractvalue { i64, i64 } %54, 0
  store i64 %56, ptr %6, align 8
  %57 = extractvalue { i64, i64 } %54, 1
  store i64 %57, ptr %26, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  %58 = load i64, ptr @upp, align 8, !tbaa !9
  %59 = icmp ugt i64 %56, %58
  br i1 %59, label %60, label %.preheader57

.preheader57:                                     ; preds = %60, %55
  br label %66

60:                                               ; preds = %55
  %61 = call ptr @_ZNSt6vectorISt4pairIyyESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %38) #4
  store ptr %61, ptr %5, align 8, !tbaa !17
  br label %.preheader57

62:                                               ; preds = %40
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %138

64:                                               ; preds = %44
  %65 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  br label %137

66:                                               ; preds = %.backedge, %.preheader57
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  %67 = call ptr @_ZNSt6vectorISt4pairIyyESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #4
  store ptr %67, ptr %9, align 8
  %68 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIyyESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  br i1 %68, label %.critedge, label %69

69:                                               ; preds = %66
  %70 = call ptr @_ZNSt6vectorISt4pairIyyESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %38) #4
  store ptr %70, ptr %10, align 8
  %71 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIyyESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  br i1 %71, label %72, label %133

.critedge:                                        ; preds = %66
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  br label %72

72:                                               ; preds = %.critedge, %69
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  %73 = call ptr @_ZNSt6vectorISt4pairIyyESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %38) #4
  store ptr %73, ptr %11, align 8
  %74 = call noundef zeroext i1 @_ZN9__gnu_cxxeqIPSt4pairIyyESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #4
  br i1 %74, label %.critedge2, label %75

75:                                               ; preds = %72
  %76 = call ptr @_ZNSt6vectorISt4pairIyyESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #4
  store ptr %76, ptr %12, align 8
  %77 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIyyESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %12) #4
  br i1 %77, label %78, label %.critedge4

78:                                               ; preds = %75
  %79 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIyyESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  %80 = load i64, ptr %79, align 8, !tbaa !14
  %81 = load i64, ptr %6, align 8, !tbaa !14
  %82 = icmp ult i64 %80, %81
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  br i1 %82, label %83, label %89

.critedge2:                                       ; preds = %72
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  br label %83

83:                                               ; preds = %.critedge2, %78
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #4
  %84 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIyyESt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef 0) #4
  store ptr %84, ptr %13, align 8
  %85 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIyyESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #4
  invoke void @_ZNSt6vectorISt4pairIyyESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(16) %85)
          to label %86 unwind label %87

86:                                               ; preds = %83
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #4
  br label %.backedge

87:                                               ; preds = %83
  %88 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #4
  br label %137

.critedge4:                                       ; preds = %75
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  br label %89

89:                                               ; preds = %.critedge4, %78
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #4
  %90 = call ptr @_ZNSt6vectorISt4pairIyyESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #4
  store ptr %90, ptr %14, align 8
  %91 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIyyESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %14) #4
  br i1 %91, label %92, label %.critedge6

92:                                               ; preds = %89
  %93 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIyyESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  %94 = load i64, ptr %93, align 8, !tbaa !14
  %95 = load i64, ptr %6, align 8, !tbaa !14
  %96 = icmp eq i64 %94, %95
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #4
  br i1 %96, label %97, label %thread-pre-split

97:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #4
  %98 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIyyESt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef 0) #4
  store ptr %98, ptr %15, align 8
  %99 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIyyESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #4
  %100 = getelementptr inbounds i8, ptr %99, i64 8
  %101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIyERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %100)
  %102 = load i64, ptr %101, align 8, !tbaa !9
  store i64 %102, ptr %26, align 8, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #4
  br label %103

.critedge6:                                       ; preds = %89
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #4
  br label %thread-pre-split

thread-pre-split:                                 ; preds = %92, %.critedge6
  %.pr = load i64, ptr %26, align 8, !tbaa !16
  br label %103

103:                                              ; preds = %thread-pre-split, %97
  %104 = phi i64 [ %.pr, %thread-pre-split ], [ %102, %97 ]
  %105 = icmp sgt i64 %104, -1
  br i1 %105, label %106, label %109

106:                                              ; preds = %103
  invoke void @_ZNSt6vectorISt4pairIyyESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %109 unwind label %107

107:                                              ; preds = %106
  %108 = landingpad { ptr, i32 }
          cleanup
  br label %137

109:                                              ; preds = %106, %103
  %110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIyyESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #4
  %111 = call ptr @_ZNSt6vectorISt4pairIyyESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %38) #4
  store ptr %111, ptr %16, align 8
  %112 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIyyESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %110, ptr noundef nonnull align 8 dereferenceable(8) %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #4
  br i1 %112, label %113, label %.backedge

.backedge:                                        ; preds = %109, %129, %122, %86
  br label %66, !llvm.loop !19

113:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #4
  %114 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIyyESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %115 = load i64, ptr %114, align 8, !tbaa !14
  %116 = add i64 %115, %22
  store i64 %116, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #4
  %117 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIyyESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %118 = getelementptr inbounds i8, ptr %117, i64 8
  %119 = load i64, ptr %118, align 8, !tbaa !16
  %120 = add i64 %119, %24
  store i64 %120, ptr %19, align 8, !tbaa !9
  %121 = invoke { i64, i64 } @_ZSt9make_pairIyyESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %122 unwind label %131

122:                                              ; preds = %113
  %123 = extractvalue { i64, i64 } %121, 0
  store i64 %123, ptr %17, align 8
  %124 = extractvalue { i64, i64 } %121, 1
  store i64 %124, ptr %27, align 8
  %125 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIyyEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #4
  %126 = load i64, ptr %6, align 8, !tbaa !14
  %127 = load i64, ptr @upp, align 8, !tbaa !9
  %128 = icmp ugt i64 %126, %127
  br i1 %128, label %129, label %.backedge

129:                                              ; preds = %122
  %130 = call ptr @_ZNSt6vectorISt4pairIyyESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %38) #4
  store ptr %130, ptr %5, align 8, !tbaa !17
  br label %.backedge

131:                                              ; preds = %113
  %132 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #4
  br label %137

133:                                              ; preds = %69
  call void @_ZNSt6vectorISt4pairIyyESaIS1_EE4swapERS3_(ptr noundef nonnull align 8 dereferenceable(24) %36, ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  call void @_ZNSt6vectorISt4pairIyyESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #4
  br label %134

134:                                              ; preds = %.lr.ph, %133
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %135 = load i32, ptr @m, align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %.not44.not = icmp slt i64 %indvars.iv, %136
  br i1 %.not44.not, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !20

137:                                              ; preds = %131, %107, %87, %64
  %.pn = phi { ptr, i32 } [ %88, %87 ], [ %132, %131 ], [ %108, %107 ], [ %65, %64 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  br label %138

138:                                              ; preds = %137, %62
  %.pn.pn = phi { ptr, i32 } [ %.pn, %137 ], [ %63, %62 ]
  call void @_ZNSt6vectorISt4pairIyyESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #4
  resume { ptr, i32 } %.pn.pn
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z5poweriiy(i32 noundef, i32 noundef, i64 noundef) local_unnamed_addr #3

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { 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 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = distinct !{!11, !12, !13}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!"llvm.loop.unswitch.partial.disable"}
!14 = !{!15, !10, i64 0}
!15 = !{!"_ZTSSt4pairIyyE", !10, i64 0, !10, i64 8}
!16 = !{!15, !10, i64 8}
!17 = !{!18, !18, i64 0}
!18 = !{!"any pointer", !7, i64 0}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}


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