; LLVM IR from bqi343/cp-notebook :: Contests/USACO Solutions/2018-19/Open 2019/Plat (valleys (simpler))

; 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"

%struct.DSU = type { [562505 x i32], [562505 x i32], [562505 x i32], i32 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { i32, i32 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%class.anon = type { i8 }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::initializer_list" = type { ptr, i64 }
%"class.std::allocator.5" = type { i8 }
%"class.__gnu_cxx::__normal_iterator.8" = type { ptr }

@N = external dso_local global i32, align 4
@h = external dso_local global [750 x [750 x i32]], align 16
@A = external dso_local global %struct.DSU, align 4
@B = external dso_local global %struct.DSU, align 4
@xd = external dso_local global [4 x i32], align 16
@yd = external dso_local global [4 x i32], align 16
@.str.8 = external hidden unnamed_addr constant [8 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2io5setIOENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3hshSt4pairIiiE(i64) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z5validSt4pairIiiE(i64) #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.std::__cxx11::basic_string", align 8
  %3 = alloca %"class.std::allocator", align 1
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::vector", align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"struct.std::pair", align 4
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %class.anon, align 1
  %16 = alloca %"class.std::vector.3", align 8
  %17 = alloca %"class.std::initializer_list", align 8
  %18 = alloca [1 x i32], align 4
  %19 = alloca %"class.std::allocator.5", align 1
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca %"struct.std::pair", align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca %"struct.std::pair", align 4
  %27 = alloca %"struct.std::pair", align 4
  %28 = alloca %"struct.std::pair", align 4
  %29 = alloca i32, align 4
  %30 = alloca %"struct.std::pair", align 4
  %31 = alloca %"struct.std::pair", align 4
  %32 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %33 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %34 = alloca i64, align 8
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca %"struct.std::pair", align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca %"struct.std::pair", align 4
  %41 = alloca %"struct.std::pair", align 4
  %42 = alloca %"struct.std::pair", align 4
  %43 = alloca i32, align 4
  %44 = alloca %"struct.std::pair", align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 1, ptr %3) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef @.str.8, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %45 unwind label %52

45:                                               ; preds = %0
  invoke void @_ZN2io5setIOENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %2)
          to label %46 unwind label %56

46:                                               ; preds = %45
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %3) #6
  call void @_ZN5input2reIiEEvRT_(ptr noundef nonnull align 4 dereferenceable(4) @N)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %47

47:                                               ; preds = %78, %46
  %48 = load i32, ptr %6, align 4, !tbaa !5
  %49 = load i32, ptr @N, align 4, !tbaa !5
  %50 = icmp slt i32 %48, %49
  br i1 %50, label %61, label %51

51:                                               ; preds = %47
  store i32 2, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %81

52:                                               ; preds = %0
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %4, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %5, align 4
  br label %60

56:                                               ; preds = %45
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %4, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %5, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  br label %60

60:                                               ; preds = %56, %52
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %3) #6
  br label %397

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

62:                                               ; preds = %74, %61
  %63 = load i32, ptr %8, align 4, !tbaa !5
  %64 = load i32, ptr @N, align 4, !tbaa !5
  %65 = icmp slt i32 %63, %64
  br i1 %65, label %67, label %66

66:                                               ; preds = %62
  store i32 5, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %77

67:                                               ; preds = %62
  %68 = load i32, ptr %6, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [750 x [750 x i32]], ptr @h, i64 0, i64 %69
  %71 = load i32, ptr %8, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [750 x i32], ptr %70, i64 0, i64 %72
  call void @_ZN5input2reIiEEvRT_(ptr noundef nonnull align 4 dereferenceable(4) %73)
  br label %74

74:                                               ; preds = %67
  %75 = load i32, ptr %8, align 4, !tbaa !5
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %8, align 4, !tbaa !5
  br label %62, !llvm.loop !9

77:                                               ; preds = %66
  br label %78

78:                                               ; preds = %77
  %79 = load i32, ptr %6, align 4, !tbaa !5
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %6, align 4, !tbaa !5
  br label %47, !llvm.loop !11

81:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #6
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %82

82:                                               ; preds = %104, %81
  %83 = load i32, ptr %10, align 4, !tbaa !5
  %84 = load i32, ptr @N, align 4, !tbaa !5
  %85 = icmp slt i32 %83, %84
  br i1 %85, label %87, label %86

86:                                               ; preds = %82
  store i32 8, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %107

87:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %88

88:                                               ; preds = %96, %87
  %89 = load i32, ptr %11, align 4, !tbaa !5
  %90 = load i32, ptr @N, align 4, !tbaa !5
  %91 = icmp slt i32 %89, %90
  br i1 %91, label %93, label %92

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

93:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  invoke void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %94 unwind label %99

94:                                               ; preds = %93
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 4 dereferenceable(8) %12)
          to label %95 unwind label %99

95:                                               ; preds = %94
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %96

96:                                               ; preds = %95
  %97 = load i32, ptr %11, align 4, !tbaa !5
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %11, align 4, !tbaa !5
  br label %88, !llvm.loop !12

99:                                               ; preds = %94, %93
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %4, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %396

103:                                              ; preds = %92
  br label %104

104:                                              ; preds = %103
  %105 = load i32, ptr %10, align 4, !tbaa !5
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr %10, align 4, !tbaa !5
  br label %82, !llvm.loop !13

107:                                              ; preds = %86
  %108 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  %109 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %108, ptr %109, align 8
  %110 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  %111 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %110, ptr %111, align 8
  %112 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  %113 = load ptr, ptr %112, align 8
  %114 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  %115 = load ptr, ptr %114, align 8
  invoke void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS3_SaIS3_EEEEZ4mainE3$_0EvT_SA_T0_"(ptr %113, ptr %115)
          to label %116 unwind label %131

116:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 1, ptr %18, align 4, !tbaa !5
  %117 = getelementptr inbounds %"class.std::initializer_list", ptr %17, i32 0, i32 0
  store ptr %18, ptr %117, align 8, !tbaa !14
  %118 = getelementptr inbounds %"class.std::initializer_list", ptr %17, i32 0, i32 1
  store i64 1, ptr %118, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #6
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  %119 = getelementptr inbounds { ptr, i64 }, ptr %17, i32 0, i32 0
  %120 = load ptr, ptr %119, align 8
  %121 = getelementptr inbounds { ptr, i64 }, ptr %17, i32 0, i32 1
  %122 = load i64, ptr %121, align 8
  invoke void @_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr %120, i64 %122, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %123 unwind label %135

123:                                              ; preds = %116
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %124 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  %125 = trunc i64 %124 to i32
  %126 = sub nsw i32 %125, 1
  store i32 %126, ptr %20, align 4, !tbaa !5
  br label %127

127:                                              ; preds = %234, %123
  %128 = load i32, ptr %20, align 4, !tbaa !5
  %129 = icmp sge i32 %128, 0
  br i1 %129, label %139, label %130

130:                                              ; preds = %127
  store i32 14, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %242

131:                                              ; preds = %107
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %4, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %5, align 4
  br label %396

135:                                              ; preds = %116
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %4, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %5, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %395

139:                                              ; preds = %127
  %140 = load i32, ptr getelementptr inbounds (%struct.DSU, ptr @A, i32 0, i32 3), align 4, !tbaa !19
  %141 = add nsw i32 %140, 1
  store i32 %141, ptr getelementptr inbounds (%struct.DSU, ptr @A, i32 0, i32 3), align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 -1, ptr %21, align 4, !tbaa !5
  br label %142

142:                                              ; preds = %229, %139
  %143 = load i32, ptr %21, align 4, !tbaa !5
  %144 = icmp slt i32 %143, 2
  br i1 %144, label %146, label %145

145:                                              ; preds = %142
  store i32 17, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %232

146:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  store i32 -1, ptr %22, align 4, !tbaa !5
  br label %147

147:                                              ; preds = %224, %146
  %148 = load i32, ptr %22, align 4, !tbaa !5
  %149 = icmp slt i32 %148, 2
  br i1 %149, label %151, label %150

150:                                              ; preds = %147
  store i32 20, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %228

151:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %152 = load i32, ptr %20, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %153) #6
  %155 = getelementptr inbounds %"struct.std::pair", ptr %154, i32 0, i32 0
  %156 = load i32, ptr %155, align 4, !tbaa !21
  %157 = load i32, ptr %21, align 4, !tbaa !5
  %158 = add nsw i32 %156, %157
  store i32 %158, ptr %24, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  %159 = load i32, ptr %20, align 4, !tbaa !5
  %160 = sext i32 %159 to i64
  %161 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %160) #6
  %162 = getelementptr inbounds %"struct.std::pair", ptr %161, i32 0, i32 1
  %163 = load i32, ptr %162, align 4, !tbaa !23
  %164 = load i32, ptr %22, align 4, !tbaa !5
  %165 = add nsw i32 %163, %164
  store i32 %165, ptr %25, align 4, !tbaa !5
  invoke void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %23, ptr noundef nonnull align 4 dereferenceable(4) %24, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %166 unwind label %177

166:                                              ; preds = %151
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 %23, i64 8, i1 false)
  %167 = load i64, ptr %26, align 4
  %168 = call noundef zeroext i1 @_Z5validSt4pairIiiE(i64 %167)
  br i1 %168, label %185, label %169

169:                                              ; preds = %166
  %170 = load i32, ptr %20, align 4, !tbaa !5
  %171 = sext i32 %170 to i64
  %172 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %171) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 4 %172, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  store i32 0, ptr %29, align 4, !tbaa !5
  invoke void @_ZNSt4pairIiiEC2IRiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %28, ptr noundef nonnull align 4 dereferenceable(4) @N, ptr noundef nonnull align 4 dereferenceable(4) %29)
          to label %173 unwind label %181

173:                                              ; preds = %169
  %174 = load i64, ptr %27, align 4
  %175 = load i64, ptr %28, align 4
  invoke void @_ZN3DSUILi562505EE5uniteESt4pairIiiES2_(ptr noundef nonnull align 4 dereferenceable(6750064) @A, i64 %174, i64 %175)
          to label %176 unwind label %181

176:                                              ; preds = %173
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  br label %223

177:                                              ; preds = %151
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %4, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %227

181:                                              ; preds = %173, %169
  %182 = landingpad { ptr, i32 }
          cleanup
  %183 = extractvalue { ptr, i32 } %182, 0
  store ptr %183, ptr %4, align 8
  %184 = extractvalue { ptr, i32 } %182, 1
  store i32 %184, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  br label %227

185:                                              ; preds = %166
  %186 = getelementptr inbounds %"struct.std::pair", ptr %23, i32 0, i32 0
  %187 = load i32, ptr %186, align 4, !tbaa !21
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [750 x [750 x i32]], ptr @h, i64 0, i64 %188
  %190 = getelementptr inbounds %"struct.std::pair", ptr %23, i32 0, i32 1
  %191 = load i32, ptr %190, align 4, !tbaa !23
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds [750 x i32], ptr %189, i64 0, i64 %192
  %194 = load i32, ptr %193, align 4, !tbaa !5
  %195 = load i32, ptr %20, align 4, !tbaa !5
  %196 = sext i32 %195 to i64
  %197 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %196) #6
  %198 = getelementptr inbounds %"struct.std::pair", ptr %197, i32 0, i32 0
  %199 = load i32, ptr %198, align 4, !tbaa !21
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds [750 x [750 x i32]], ptr @h, i64 0, i64 %200
  %202 = load i32, ptr %20, align 4, !tbaa !5
  %203 = sext i32 %202 to i64
  %204 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %203) #6
  %205 = getelementptr inbounds %"struct.std::pair", ptr %204, i32 0, i32 1
  %206 = load i32, ptr %205, align 4, !tbaa !23
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds [750 x i32], ptr %201, i64 0, i64 %207
  %209 = load i32, ptr %208, align 4, !tbaa !5
  %210 = icmp sgt i32 %194, %209
  br i1 %210, label %211, label %222

211:                                              ; preds = %185
  %212 = load i32, ptr %20, align 4, !tbaa !5
  %213 = sext i32 %212 to i64
  %214 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %213) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 4 %214, i64 8, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %31, ptr align 4 %23, i64 8, i1 false)
  %215 = load i64, ptr %30, align 4
  %216 = load i64, ptr %31, align 4
  invoke void @_ZN3DSUILi562505EE5uniteESt4pairIiiES2_(ptr noundef nonnull align 4 dereferenceable(6750064) @A, i64 %215, i64 %216)
          to label %217 unwind label %218

217:                                              ; preds = %211
  br label %222

218:                                              ; preds = %211
  %219 = landingpad { ptr, i32 }
          cleanup
  %220 = extractvalue { ptr, i32 } %219, 0
  store ptr %220, ptr %4, align 8
  %221 = extractvalue { ptr, i32 } %219, 1
  store i32 %221, ptr %5, align 4
  br label %227

222:                                              ; preds = %217, %185
  br label %223

223:                                              ; preds = %222, %176
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %224

224:                                              ; preds = %223
  %225 = load i32, ptr %22, align 4, !tbaa !5
  %226 = add nsw i32 %225, 1
  store i32 %226, ptr %22, align 4, !tbaa !5
  br label %147, !llvm.loop !24

227:                                              ; preds = %218, %181, %177
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %241

228:                                              ; preds = %150
  br label %229

229:                                              ; preds = %228
  %230 = load i32, ptr %21, align 4, !tbaa !5
  %231 = add nsw i32 %230, 1
  store i32 %231, ptr %21, align 4, !tbaa !5
  br label %142, !llvm.loop !25

232:                                              ; preds = %145
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (%struct.DSU, ptr @A, i32 0, i32 3))
          to label %233 unwind label %237

233:                                              ; preds = %232
  br label %234

234:                                              ; preds = %233
  %235 = load i32, ptr %20, align 4, !tbaa !5
  %236 = add nsw i32 %235, -1
  store i32 %236, ptr %20, align 4, !tbaa !5
  br label %127, !llvm.loop !26

237:                                              ; preds = %232
  %238 = landingpad { ptr, i32 }
          cleanup
  %239 = extractvalue { ptr, i32 } %238, 0
  store ptr %239, ptr %4, align 8
  %240 = extractvalue { ptr, i32 } %238, 1
  store i32 %240, ptr %5, align 4
  br label %241

241:                                              ; preds = %237, %227
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %394

242:                                              ; preds = %130
  %243 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  %244 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %32, i32 0, i32 0
  store ptr %243, ptr %244, align 8
  %245 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  %246 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %33, i32 0, i32 0
  store ptr %245, ptr %246, align 8
  %247 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %32, i32 0, i32 0
  %248 = load ptr, ptr %247, align 8
  %249 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %33, i32 0, i32 0
  %250 = load ptr, ptr %249, align 8
  invoke void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %248, ptr %250)
          to label %251 unwind label %258

251:                                              ; preds = %242
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #6
  store i64 0, ptr %34, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #6
  store i32 0, ptr %35, align 4, !tbaa !5
  br label %252

252:                                              ; preds = %382, %251
  %253 = load i32, ptr %35, align 4, !tbaa !5
  %254 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  %255 = trunc i64 %254 to i32
  %256 = icmp slt i32 %253, %255
  br i1 %256, label %262, label %257

257:                                              ; preds = %252
  store i32 23, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  br label %386

258:                                              ; preds = %242
  %259 = landingpad { ptr, i32 }
          cleanup
  %260 = extractvalue { ptr, i32 } %259, 0
  store ptr %260, ptr %4, align 8
  %261 = extractvalue { ptr, i32 } %259, 1
  store i32 %261, ptr %5, align 4
  br label %394

262:                                              ; preds = %252
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #6
  store i32 0, ptr %36, align 4, !tbaa !5
  br label %263

263:                                              ; preds = %337, %262
  %264 = load i32, ptr %36, align 4, !tbaa !5
  %265 = icmp slt i32 %264, 4
  br i1 %265, label %267, label %266

266:                                              ; preds = %263
  store i32 26, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #6
  br label %341

267:                                              ; preds = %263
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #6
  %268 = load i32, ptr %35, align 4, !tbaa !5
  %269 = sext i32 %268 to i64
  %270 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %269) #6
  %271 = getelementptr inbounds %"struct.std::pair", ptr %270, i32 0, i32 0
  %272 = load i32, ptr %271, align 4, !tbaa !21
  %273 = load i32, ptr %36, align 4, !tbaa !5
  %274 = sext i32 %273 to i64
  %275 = getelementptr inbounds [4 x i32], ptr @xd, i64 0, i64 %274
  %276 = load i32, ptr %275, align 4, !tbaa !5
  %277 = add nsw i32 %272, %276
  store i32 %277, ptr %38, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #6
  %278 = load i32, ptr %35, align 4, !tbaa !5
  %279 = sext i32 %278 to i64
  %280 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %279) #6
  %281 = getelementptr inbounds %"struct.std::pair", ptr %280, i32 0, i32 1
  %282 = load i32, ptr %281, align 4, !tbaa !23
  %283 = load i32, ptr %36, align 4, !tbaa !5
  %284 = sext i32 %283 to i64
  %285 = getelementptr inbounds [4 x i32], ptr @yd, i64 0, i64 %284
  %286 = load i32, ptr %285, align 4, !tbaa !5
  %287 = add nsw i32 %282, %286
  store i32 %287, ptr %39, align 4, !tbaa !5
  invoke void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %37, ptr noundef nonnull align 4 dereferenceable(4) %38, ptr noundef nonnull align 4 dereferenceable(4) %39)
          to label %288 unwind label %292

288:                                              ; preds = %267
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %40, ptr align 4 %37, i64 8, i1 false)
  %289 = load i64, ptr %40, align 4
  %290 = call noundef zeroext i1 @_Z5validSt4pairIiiE(i64 %289)
  br i1 %290, label %296, label %291

291:                                              ; preds = %288
  store i32 28, ptr %7, align 4
  br label %334

292:                                              ; preds = %267
  %293 = landingpad { ptr, i32 }
          cleanup
  %294 = extractvalue { ptr, i32 } %293, 0
  store ptr %294, ptr %4, align 8
  %295 = extractvalue { ptr, i32 } %293, 1
  store i32 %295, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  br label %340

296:                                              ; preds = %288
  %297 = getelementptr inbounds %"struct.std::pair", ptr %37, i32 0, i32 0
  %298 = load i32, ptr %297, align 4, !tbaa !21
  %299 = sext i32 %298 to i64
  %300 = getelementptr inbounds [750 x [750 x i32]], ptr @h, i64 0, i64 %299
  %301 = getelementptr inbounds %"struct.std::pair", ptr %37, i32 0, i32 1
  %302 = load i32, ptr %301, align 4, !tbaa !23
  %303 = sext i32 %302 to i64
  %304 = getelementptr inbounds [750 x i32], ptr %300, i64 0, i64 %303
  %305 = load i32, ptr %304, align 4, !tbaa !5
  %306 = load i32, ptr %35, align 4, !tbaa !5
  %307 = sext i32 %306 to i64
  %308 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %307) #6
  %309 = getelementptr inbounds %"struct.std::pair", ptr %308, i32 0, i32 0
  %310 = load i32, ptr %309, align 4, !tbaa !21
  %311 = sext i32 %310 to i64
  %312 = getelementptr inbounds [750 x [750 x i32]], ptr @h, i64 0, i64 %311
  %313 = load i32, ptr %35, align 4, !tbaa !5
  %314 = sext i32 %313 to i64
  %315 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %314) #6
  %316 = getelementptr inbounds %"struct.std::pair", ptr %315, i32 0, i32 1
  %317 = load i32, ptr %316, align 4, !tbaa !23
  %318 = sext i32 %317 to i64
  %319 = getelementptr inbounds [750 x i32], ptr %312, i64 0, i64 %318
  %320 = load i32, ptr %319, align 4, !tbaa !5
  %321 = icmp slt i32 %305, %320
  br i1 %321, label %322, label %333

322:                                              ; preds = %296
  %323 = load i32, ptr %35, align 4, !tbaa !5
  %324 = sext i32 %323 to i64
  %325 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %324) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %41, ptr align 4 %325, i64 8, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 4 %37, i64 8, i1 false)
  %326 = load i64, ptr %41, align 4
  %327 = load i64, ptr %42, align 4
  invoke void @_ZN3DSUILi562505EE5uniteESt4pairIiiES2_(ptr noundef nonnull align 4 dereferenceable(6750064) @B, i64 %326, i64 %327)
          to label %328 unwind label %329

328:                                              ; preds = %322
  br label %333

329:                                              ; preds = %322
  %330 = landingpad { ptr, i32 }
          cleanup
  %331 = extractvalue { ptr, i32 } %330, 0
  store ptr %331, ptr %4, align 8
  %332 = extractvalue { ptr, i32 } %330, 1
  store i32 %332, ptr %5, align 4
  br label %340

333:                                              ; preds = %328, %296
  store i32 0, ptr %7, align 4
  br label %334

334:                                              ; preds = %333, %291
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  %335 = load i32, ptr %7, align 4
  switch i32 %335, label %402 [
    i32 0, label %336
    i32 28, label %337
  ]

336:                                              ; preds = %334
  br label %337

337:                                              ; preds = %336, %334
  %338 = load i32, ptr %36, align 4, !tbaa !5
  %339 = add nsw i32 %338, 1
  store i32 %339, ptr %36, align 4, !tbaa !5
  br label %263, !llvm.loop !29

340:                                              ; preds = %329, %292
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #6
  br label %385

341:                                              ; preds = %266
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #6
  %342 = load i32, ptr %35, align 4, !tbaa !5
  %343 = sext i32 %342 to i64
  %344 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %343) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %44, ptr align 4 %344, i64 8, i1 false)
  %345 = load i64, ptr %44, align 4
  %346 = call noundef i32 @_Z3hshSt4pairIiiE(i64 %345)
  %347 = invoke noundef i32 @_ZN3DSUILi562505EE3getEi(ptr noundef nonnull align 4 dereferenceable(6750064) @B, i32 noundef %346)
          to label %348 unwind label %377

348:                                              ; preds = %341
  store i32 %347, ptr %43, align 4, !tbaa !5
  %349 = load i32, ptr %35, align 4, !tbaa !5
  %350 = add nsw i32 %349, 1
  %351 = sext i32 %350 to i64
  %352 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %351) #6
  %353 = load i32, ptr %352, align 4, !tbaa !5
  %354 = load i32, ptr %35, align 4, !tbaa !5
  %355 = sext i32 %354 to i64
  %356 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %355) #6
  %357 = load i32, ptr %356, align 4, !tbaa !5
  %358 = sub nsw i32 %353, %357
  %359 = load i32, ptr %43, align 4, !tbaa !5
  %360 = sext i32 %359 to i64
  %361 = getelementptr inbounds [562505 x i32], ptr getelementptr inbounds (%struct.DSU, ptr @B, i32 0, i32 2), i64 0, i64 %360
  %362 = load i32, ptr %361, align 4, !tbaa !5
  %363 = add nsw i32 %362, %358
  store i32 %363, ptr %361, align 4, !tbaa !5
  %364 = load i32, ptr %43, align 4, !tbaa !5
  %365 = sext i32 %364 to i64
  %366 = getelementptr inbounds [562505 x i32], ptr getelementptr inbounds (%struct.DSU, ptr @B, i32 0, i32 2), i64 0, i64 %365
  %367 = load i32, ptr %366, align 4, !tbaa !5
  %368 = icmp eq i32 %367, 0
  br i1 %368, label %369, label %381

369:                                              ; preds = %348
  %370 = load i32, ptr %43, align 4, !tbaa !5
  %371 = sext i32 %370 to i64
  %372 = getelementptr inbounds [562505 x i32], ptr getelementptr inbounds (%struct.DSU, ptr @B, i32 0, i32 1), i64 0, i64 %371
  %373 = load i32, ptr %372, align 4, !tbaa !5
  %374 = sext i32 %373 to i64
  %375 = load i64, ptr %34, align 8, !tbaa !27
  %376 = add nsw i64 %375, %374
  store i64 %376, ptr %34, align 8, !tbaa !27
  br label %381

377:                                              ; preds = %341
  %378 = landingpad { ptr, i32 }
          cleanup
  %379 = extractvalue { ptr, i32 } %378, 0
  store ptr %379, ptr %4, align 8
  %380 = extractvalue { ptr, i32 } %378, 1
  store i32 %380, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #6
  br label %385

381:                                              ; preds = %369, %348
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #6
  br label %382

382:                                              ; preds = %381
  %383 = load i32, ptr %35, align 4, !tbaa !5
  %384 = add nsw i32 %383, 1
  store i32 %384, ptr %35, align 4, !tbaa !5
  br label %252, !llvm.loop !30

385:                                              ; preds = %377, %340
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  br label %393

386:                                              ; preds = %257
  invoke void @_ZN6output2prIxEEvRKT_(ptr noundef nonnull align 8 dereferenceable(8) %34)
          to label %387 unwind label %389

387:                                              ; preds = %386
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #6
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #6
  %388 = load i32, ptr %1, align 4
  ret i32 %388

389:                                              ; preds = %386
  %390 = landingpad { ptr, i32 }
          cleanup
  %391 = extractvalue { ptr, i32 } %390, 0
  store ptr %391, ptr %4, align 8
  %392 = extractvalue { ptr, i32 } %390, 1
  store i32 %392, ptr %5, align 4
  br label %393

393:                                              ; preds = %389, %385
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  br label %394

394:                                              ; preds = %393, %258, %241
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  br label %395

395:                                              ; preds = %394, %135
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #6
  br label %396

396:                                              ; preds = %395, %131, %99
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #6
  br label %397

397:                                              ; preds = %396, %60
  %398 = load ptr, ptr %4, align 8
  %399 = load i32, ptr %5, align 4
  %400 = insertvalue { ptr, i32 } poison, ptr %398, 0
  %401 = insertvalue { ptr, i32 } %400, i32 %399, 1
  resume { ptr, i32 } %401

402:                                              ; preds = %334
  unreachable
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5input2reIiEEvRT_(ptr noundef nonnull align 4 dereferenceable(4)) #2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS3_SaIS3_EEEEZ4mainE3$_0EvT_SA_T0_"(ptr, ptr) #4

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #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) #5

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN3DSUILi562505EE3getEi(ptr noundef nonnull align 4 dereferenceable(6750064), i32 noundef) #2 align 2

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #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 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = !{!15, !16, i64 0}
!15 = !{!"_ZTSSt16initializer_listIiE", !16, i64 0, !17, i64 8}
!16 = !{!"any pointer", !7, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!15, !17, i64 8}
!19 = !{!20, !6, i64 6750060}
!20 = !{!"_ZTS3DSUILi562505EE", !7, i64 0, !7, i64 2250020, !7, i64 4500040, !6, i64 6750060}
!21 = !{!22, !6, i64 0}
!22 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!23 = !{!22, !6, i64 4}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !10}
!26 = distinct !{!26, !10}
!27 = !{!28, !28, i64 0}
!28 = !{!"long long", !7, i64 0}
!29 = distinct !{!29, !10}
!30 = distinct !{!30, !10}


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

%struct.DSU = type { [562505 x i32], [562505 x i32], [562505 x i32], i32 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { i32, i32 }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.5" = type { i8 }

@N = external dso_local global i32, align 4
@h = external dso_local global [750 x [750 x i32]], align 16
@A = external dso_local global %struct.DSU, align 4
@B = external dso_local global %struct.DSU, align 4
@xd = external dso_local local_unnamed_addr global [4 x i32], align 16
@yd = external dso_local local_unnamed_addr global [4 x i32], align 16
@.str.8 = external hidden unnamed_addr constant [8 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; 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 uwtable
declare dso_local void @_ZN2io5setIOENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3hshSt4pairIiiE(i64) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z5validSt4pairIiiE(i64) local_unnamed_addr #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::__cxx11::basic_string", align 8
  %2 = alloca %"class.std::allocator", align 1
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"struct.std::pair", align 4
  %7 = alloca %"class.std::vector.3", align 8
  %8 = alloca [1 x i32], align 4
  %9 = alloca %"class.std::allocator.5", align 1
  %10 = alloca %"struct.std::pair", align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"struct.std::pair", align 8
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca %"struct.std::pair", align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %2) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull @.str.8, ptr noundef nonnull align 1 dereferenceable(1) %2)
          to label %19 unwind label %27

19:                                               ; preds = %0
  invoke void @_ZN2io5setIOENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull %1)
          to label %20 unwind label %29

20:                                               ; preds = %19
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %2) #5
  call void @_ZN5input2reIiEEvRT_(ptr noundef nonnull align 4 dereferenceable(4) @N)
  %21 = load i32, ptr @N, align 4, !tbaa !5
  %22 = icmp sgt i32 %21, 0
  br i1 %22, label %.preheader81, label %._crit_edge84

.preheader81:                                     ; preds = %20, %._crit_edge
  %23 = phi i32 [ %32, %._crit_edge ], [ %21, %20 ]
  %indvars.iv98 = phi i64 [ %indvars.iv.next99, %._crit_edge ], [ 0, %20 ]
  %24 = icmp sgt i32 %23, 0
  br i1 %24, label %.lr.ph, label %.preheader81.._crit_edge_crit_edge

.preheader81.._crit_edge_crit_edge:               ; preds = %.preheader81
  %.pre112 = sext i32 %23 to i64
  br label %._crit_edge

._crit_edge84:                                    ; preds = %._crit_edge, %20
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #5
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  store i32 0, ptr %4, align 4, !tbaa !5
  %25 = load i32, ptr @N, align 4, !tbaa !5
  %26 = icmp sgt i32 %25, 0
  br i1 %26, label %.lr.ph89.split, label %._crit_edge90

27:                                               ; preds = %0
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %31

29:                                               ; preds = %19
  %30 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #5
  br label %31

31:                                               ; preds = %29, %27
  %.pn = phi { ptr, i32 } [ %30, %29 ], [ %28, %27 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %2) #5
  br label %340

._crit_edge:                                      ; preds = %.lr.ph, %.preheader81.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre112, %.preheader81.._crit_edge_crit_edge ], [ %36, %.lr.ph ]
  %32 = phi i32 [ %23, %.preheader81.._crit_edge_crit_edge ], [ %35, %.lr.ph ]
  %indvars.iv.next99 = add nuw nsw i64 %indvars.iv98, 1
  %33 = icmp slt i64 %indvars.iv.next99, %.pre-phi
  br i1 %33, label %.preheader81, label %._crit_edge84, !llvm.loop !9

.lr.ph:                                           ; preds = %.preheader81, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.preheader81 ]
  %34 = getelementptr inbounds [750 x [750 x i32]], ptr @h, i64 0, i64 %indvars.iv98, i64 %indvars.iv
  call void @_ZN5input2reIiEEvRT_(ptr noundef nonnull align 4 dereferenceable(4) %34)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %35 = load i32, ptr @N, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = icmp slt i64 %indvars.iv.next, %36
  br i1 %37, label %.lr.ph, label %._crit_edge, !llvm.loop !12

._crit_edge90:                                    ; preds = %._crit_edge87, %._crit_edge84
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  %38 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  %39 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  invoke void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS3_SaIS3_EEEEZ4mainE3$_0EvT_SA_T0_"(ptr %38, ptr %39)
          to label %54 unwind label %66

.lr.ph89.split:                                   ; preds = %._crit_edge84, %._crit_edge87
  %40 = phi i32 [ %43, %._crit_edge87 ], [ %25, %._crit_edge84 ]
  %41 = phi i32 [ %45, %._crit_edge87 ], [ 0, %._crit_edge84 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  store i32 0, ptr %5, align 4, !tbaa !5
  %42 = icmp sgt i32 %40, 0
  br i1 %42, label %.lr.ph86, label %._crit_edge87

._crit_edge87.loopexit:                           ; preds = %47
  %.pre = load i32, ptr %4, align 4, !tbaa !5
  br label %._crit_edge87

._crit_edge87:                                    ; preds = %._crit_edge87.loopexit, %.lr.ph89.split
  %43 = phi i32 [ %50, %._crit_edge87.loopexit ], [ %40, %.lr.ph89.split ]
  %44 = phi i32 [ %.pre, %._crit_edge87.loopexit ], [ %41, %.lr.ph89.split ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr %4, align 4, !tbaa !5
  %46 = icmp slt i32 %45, %43
  br i1 %46, label %.lr.ph89.split, label %._crit_edge90, !llvm.loop !13

.lr.ph86:                                         ; preds = %.lr.ph89.split, %47
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(8) %6)
          to label %47 unwind label %52

47:                                               ; preds = %.lr.ph86
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  %48 = load i32, ptr %5, align 4, !tbaa !5
  %49 = add nsw i32 %48, 1
  store i32 %49, ptr %5, align 4, !tbaa !5
  %50 = load i32, ptr @N, align 4, !tbaa !5
  %51 = icmp slt i32 %49, %50
  br i1 %51, label %.lr.ph86, label %._crit_edge87.loopexit, !llvm.loop !14

52:                                               ; preds = %.lr.ph86
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  br label %339

54:                                               ; preds = %._crit_edge90
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  store i32 1, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #5
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  invoke void @_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr nonnull %8, i64 1, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %55 unwind label %68

55:                                               ; preds = %54
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  %56 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  %57 = getelementptr inbounds i8, ptr %10, i64 4
  %58 = and i64 %56, 4294967295
  br label %59

59:                                               ; preds = %81, %55
  %indvars.iv101 = phi i64 [ %60, %81 ], [ %58, %55 ]
  %60 = add nsw i64 %indvars.iv101, -1
  %61 = trunc nuw i64 %indvars.iv101 to i32
  %62 = icmp sgt i32 %61, 0
  br i1 %62, label %70, label %63

63:                                               ; preds = %59
  %64 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  %65 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  invoke void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %64, ptr %65)
          to label %177 unwind label %193

66:                                               ; preds = %._crit_edge90
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %339

68:                                               ; preds = %54
  %69 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  br label %338

70:                                               ; preds = %59
  %71 = load i32, ptr getelementptr inbounds (i8, ptr @A, i64 6750060), align 4, !tbaa !15
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr getelementptr inbounds (i8, ptr @A, i64 6750060), align 4, !tbaa !15
  br label %.preheader80

.preheader80:                                     ; preds = %70, %172
  %.06592 = phi i32 [ -1, %70 ], [ %173, %172 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #5
  %73 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %60) #5
  %74 = load i32, ptr %73, align 4, !tbaa !17
  %75 = add nsw i32 %74, %.06592
  store i32 %75, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #5
  %76 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %60) #5
  %77 = getelementptr inbounds i8, ptr %76, i64 4
  %78 = load i32, ptr %77, align 4, !tbaa !19
  %79 = add nsw i32 %78, -1
  store i32 %79, ptr %12, align 4, !tbaa !5
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  %.sroa.025.0.copyload = load i64, ptr %10, align 8
  %80 = call noundef zeroext i1 @_Z5validSt4pairIiiE(i64 %.sroa.025.0.copyload)
  br i1 %80, label %88, label %82

81:                                               ; preds = %172
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @A, i64 6750060))
          to label %59 unwind label %175, !llvm.loop !20

82:                                               ; preds = %.preheader80
  %83 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %60) #5
  %.sroa.024.0.copyload = load i64, ptr %83, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #5
  store i32 0, ptr %14, align 4, !tbaa !5
  call void @_ZNSt4pairIiiEC2IRiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(4) @N, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %84 = load i64, ptr %13, align 8
  invoke void @_ZN3DSUILi562505EE5uniteESt4pairIiiES2_(ptr noundef nonnull align 4 dereferenceable(6750064) @A, i64 %.sroa.024.0.copyload, i64 %84)
          to label %85 unwind label %86

85:                                               ; preds = %82
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #5
  br label %109

86:                                               ; preds = %149, %117, %82
  %87 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #5
  br label %174

88:                                               ; preds = %.preheader80
  %89 = load i32, ptr %10, align 8, !tbaa !17
  %90 = sext i32 %89 to i64
  %91 = load i32, ptr %57, align 4, !tbaa !19
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [750 x [750 x i32]], ptr @h, i64 0, i64 %90, i64 %92
  %94 = load i32, ptr %93, align 4, !tbaa !5
  %95 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %60) #5
  %96 = load i32, ptr %95, align 4, !tbaa !17
  %97 = sext i32 %96 to i64
  %98 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %60) #5
  %99 = getelementptr inbounds i8, ptr %98, i64 4
  %100 = load i32, ptr %99, align 4, !tbaa !19
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [750 x [750 x i32]], ptr @h, i64 0, i64 %97, i64 %101
  %103 = load i32, ptr %102, align 4, !tbaa !5
  %104 = icmp sgt i32 %94, %103
  br i1 %104, label %105, label %109

105:                                              ; preds = %88
  %106 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %60) #5
  %.sroa.023.0.copyload = load i64, ptr %106, align 4
  %.sroa.022.0.copyload = load i64, ptr %10, align 8
  invoke void @_ZN3DSUILi562505EE5uniteESt4pairIiiES2_(ptr noundef nonnull align 4 dereferenceable(6750064) @A, i64 %.sroa.023.0.copyload, i64 %.sroa.022.0.copyload)
          to label %109 unwind label %107

107:                                              ; preds = %170, %138, %105
  %108 = landingpad { ptr, i32 }
          cleanup
  br label %174

109:                                              ; preds = %88, %105, %85
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #5
  %110 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %60) #5
  %111 = load i32, ptr %110, align 4, !tbaa !17
  %112 = add nsw i32 %111, %.06592
  store i32 %112, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #5
  %113 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %60) #5
  %114 = getelementptr inbounds i8, ptr %113, i64 4
  %115 = load i32, ptr %114, align 4, !tbaa !19
  store i32 %115, ptr %12, align 4, !tbaa !5
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  %.sroa.025.0.copyload.1 = load i64, ptr %10, align 8
  %116 = call noundef zeroext i1 @_Z5validSt4pairIiiE(i64 %.sroa.025.0.copyload.1)
  br i1 %116, label %121, label %117

117:                                              ; preds = %109
  %118 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %60) #5
  %.sroa.024.0.copyload.1 = load i64, ptr %118, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #5
  store i32 0, ptr %14, align 4, !tbaa !5
  call void @_ZNSt4pairIiiEC2IRiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(4) @N, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %119 = load i64, ptr %13, align 8
  invoke void @_ZN3DSUILi562505EE5uniteESt4pairIiiES2_(ptr noundef nonnull align 4 dereferenceable(6750064) @A, i64 %.sroa.024.0.copyload.1, i64 %119)
          to label %120 unwind label %86

120:                                              ; preds = %117
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #5
  br label %140

121:                                              ; preds = %109
  %122 = load i32, ptr %10, align 8, !tbaa !17
  %123 = sext i32 %122 to i64
  %124 = load i32, ptr %57, align 4, !tbaa !19
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [750 x [750 x i32]], ptr @h, i64 0, i64 %123, i64 %125
  %127 = load i32, ptr %126, align 4, !tbaa !5
  %128 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %60) #5
  %129 = load i32, ptr %128, align 4, !tbaa !17
  %130 = sext i32 %129 to i64
  %131 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %60) #5
  %132 = getelementptr inbounds i8, ptr %131, i64 4
  %133 = load i32, ptr %132, align 4, !tbaa !19
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [750 x [750 x i32]], ptr @h, i64 0, i64 %130, i64 %134
  %136 = load i32, ptr %135, align 4, !tbaa !5
  %137 = icmp sgt i32 %127, %136
  br i1 %137, label %138, label %140

138:                                              ; preds = %121
  %139 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %60) #5
  %.sroa.023.0.copyload.1 = load i64, ptr %139, align 4
  %.sroa.022.0.copyload.1 = load i64, ptr %10, align 8
  invoke void @_ZN3DSUILi562505EE5uniteESt4pairIiiES2_(ptr noundef nonnull align 4 dereferenceable(6750064) @A, i64 %.sroa.023.0.copyload.1, i64 %.sroa.022.0.copyload.1)
          to label %140 unwind label %107

140:                                              ; preds = %138, %121, %120
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #5
  %141 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %60) #5
  %142 = load i32, ptr %141, align 4, !tbaa !17
  %143 = add nsw i32 %142, %.06592
  store i32 %143, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #5
  %144 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %60) #5
  %145 = getelementptr inbounds i8, ptr %144, i64 4
  %146 = load i32, ptr %145, align 4, !tbaa !19
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr %12, align 4, !tbaa !5
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  %.sroa.025.0.copyload.2 = load i64, ptr %10, align 8
  %148 = call noundef zeroext i1 @_Z5validSt4pairIiiE(i64 %.sroa.025.0.copyload.2)
  br i1 %148, label %153, label %149

149:                                              ; preds = %140
  %150 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %60) #5
  %.sroa.024.0.copyload.2 = load i64, ptr %150, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #5
  store i32 0, ptr %14, align 4, !tbaa !5
  call void @_ZNSt4pairIiiEC2IRiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(4) @N, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %151 = load i64, ptr %13, align 8
  invoke void @_ZN3DSUILi562505EE5uniteESt4pairIiiES2_(ptr noundef nonnull align 4 dereferenceable(6750064) @A, i64 %.sroa.024.0.copyload.2, i64 %151)
          to label %152 unwind label %86

152:                                              ; preds = %149
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #5
  br label %172

153:                                              ; preds = %140
  %154 = load i32, ptr %10, align 8, !tbaa !17
  %155 = sext i32 %154 to i64
  %156 = load i32, ptr %57, align 4, !tbaa !19
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [750 x [750 x i32]], ptr @h, i64 0, i64 %155, i64 %157
  %159 = load i32, ptr %158, align 4, !tbaa !5
  %160 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %60) #5
  %161 = load i32, ptr %160, align 4, !tbaa !17
  %162 = sext i32 %161 to i64
  %163 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %60) #5
  %164 = getelementptr inbounds i8, ptr %163, i64 4
  %165 = load i32, ptr %164, align 4, !tbaa !19
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [750 x [750 x i32]], ptr @h, i64 0, i64 %162, i64 %166
  %168 = load i32, ptr %167, align 4, !tbaa !5
  %169 = icmp sgt i32 %159, %168
  br i1 %169, label %170, label %172

170:                                              ; preds = %153
  %171 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %60) #5
  %.sroa.023.0.copyload.2 = load i64, ptr %171, align 4
  %.sroa.022.0.copyload.2 = load i64, ptr %10, align 8
  invoke void @_ZN3DSUILi562505EE5uniteESt4pairIiiES2_(ptr noundef nonnull align 4 dereferenceable(6750064) @A, i64 %.sroa.023.0.copyload.2, i64 %.sroa.022.0.copyload.2)
          to label %172 unwind label %107

172:                                              ; preds = %170, %153, %152
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  %173 = add nsw i32 %.06592, 1
  %exitcond.not = icmp eq i32 %173, 2
  br i1 %exitcond.not, label %81, label %.preheader80, !llvm.loop !21

174:                                              ; preds = %107, %86
  %.pn71 = phi { ptr, i32 } [ %108, %107 ], [ %87, %86 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  br label %337

175:                                              ; preds = %81
  %176 = landingpad { ptr, i32 }
          cleanup
  br label %337

177:                                              ; preds = %63
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #5
  store i64 0, ptr %15, align 8, !tbaa !22
  %178 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  %179 = trunc i64 %178 to i32
  %180 = icmp sgt i32 %179, 0
  br i1 %180, label %.preheader.lr.ph, label %._crit_edge95

.preheader.lr.ph:                                 ; preds = %177
  %181 = getelementptr inbounds i8, ptr %16, i64 4
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %328
  %182 = phi i64 [ 0, %.preheader.lr.ph ], [ %329, %328 ]
  %indvars.iv109 = phi i64 [ 0, %.preheader.lr.ph ], [ %indvars.iv.next110, %328 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #5
  %183 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv109) #5
  %184 = load i32, ptr %183, align 4, !tbaa !17
  %185 = load i32, ptr @xd, align 16, !tbaa !5
  %186 = add nsw i32 %185, %184
  store i32 %186, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #5
  %187 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv109) #5
  %188 = getelementptr inbounds i8, ptr %187, i64 4
  %189 = load i32, ptr %188, align 4, !tbaa !19
  %190 = load i32, ptr @yd, align 16, !tbaa !5
  %191 = add nsw i32 %190, %189
  store i32 %191, ptr %18, align 4, !tbaa !5
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #5
  %.sroa.05.0.copyload = load i64, ptr %16, align 8
  %192 = call noundef zeroext i1 @_Z5validSt4pairIiiE(i64 %.sroa.05.0.copyload)
  br i1 %192, label %195, label %216

._crit_edge95:                                    ; preds = %328, %177
  invoke void @_ZN6output2prIxEEvRKT_(ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %333 unwind label %334

193:                                              ; preds = %63
  %194 = landingpad { ptr, i32 }
          cleanup
  br label %337

195:                                              ; preds = %.preheader
  %196 = load i32, ptr %16, align 8, !tbaa !17
  %197 = sext i32 %196 to i64
  %198 = load i32, ptr %181, align 4, !tbaa !19
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds [750 x [750 x i32]], ptr @h, i64 0, i64 %197, i64 %199
  %201 = load i32, ptr %200, align 4, !tbaa !5
  %202 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv109) #5
  %203 = load i32, ptr %202, align 4, !tbaa !17
  %204 = sext i32 %203 to i64
  %205 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv109) #5
  %206 = getelementptr inbounds i8, ptr %205, i64 4
  %207 = load i32, ptr %206, align 4, !tbaa !19
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds [750 x [750 x i32]], ptr @h, i64 0, i64 %204, i64 %208
  %210 = load i32, ptr %209, align 4, !tbaa !5
  %211 = icmp slt i32 %201, %210
  br i1 %211, label %212, label %216

212:                                              ; preds = %195
  %213 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv109) #5
  %.sroa.04.0.copyload = load i64, ptr %213, align 4
  %.sroa.03.0.copyload = load i64, ptr %16, align 8
  invoke void @_ZN3DSUILi562505EE5uniteESt4pairIiiES2_(ptr noundef nonnull align 4 dereferenceable(6750064) @B, i64 %.sroa.04.0.copyload, i64 %.sroa.03.0.copyload)
          to label %216 unwind label %214

214:                                              ; preds = %304, %274, %244, %212
  %215 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  br label %336

216:                                              ; preds = %195, %212, %.preheader
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #5
  %217 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv109) #5
  %218 = load i32, ptr %217, align 4, !tbaa !17
  %219 = load i32, ptr getelementptr inbounds (i8, ptr @xd, i64 4), align 4, !tbaa !5
  %220 = add nsw i32 %219, %218
  store i32 %220, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #5
  %221 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv109) #5
  %222 = getelementptr inbounds i8, ptr %221, i64 4
  %223 = load i32, ptr %222, align 4, !tbaa !19
  %224 = load i32, ptr getelementptr inbounds (i8, ptr @yd, i64 4), align 4, !tbaa !5
  %225 = add nsw i32 %224, %223
  store i32 %225, ptr %18, align 4, !tbaa !5
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #5
  %.sroa.05.0.copyload.1 = load i64, ptr %16, align 8
  %226 = call noundef zeroext i1 @_Z5validSt4pairIiiE(i64 %.sroa.05.0.copyload.1)
  br i1 %226, label %227, label %246

227:                                              ; preds = %216
  %228 = load i32, ptr %16, align 8, !tbaa !17
  %229 = sext i32 %228 to i64
  %230 = load i32, ptr %181, align 4, !tbaa !19
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds [750 x [750 x i32]], ptr @h, i64 0, i64 %229, i64 %231
  %233 = load i32, ptr %232, align 4, !tbaa !5
  %234 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv109) #5
  %235 = load i32, ptr %234, align 4, !tbaa !17
  %236 = sext i32 %235 to i64
  %237 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv109) #5
  %238 = getelementptr inbounds i8, ptr %237, i64 4
  %239 = load i32, ptr %238, align 4, !tbaa !19
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds [750 x [750 x i32]], ptr @h, i64 0, i64 %236, i64 %240
  %242 = load i32, ptr %241, align 4, !tbaa !5
  %243 = icmp slt i32 %233, %242
  br i1 %243, label %244, label %246

244:                                              ; preds = %227
  %245 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv109) #5
  %.sroa.04.0.copyload.1 = load i64, ptr %245, align 4
  %.sroa.03.0.copyload.1 = load i64, ptr %16, align 8
  invoke void @_ZN3DSUILi562505EE5uniteESt4pairIiiES2_(ptr noundef nonnull align 4 dereferenceable(6750064) @B, i64 %.sroa.04.0.copyload.1, i64 %.sroa.03.0.copyload.1)
          to label %246 unwind label %214

246:                                              ; preds = %244, %227, %216
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #5
  %247 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv109) #5
  %248 = load i32, ptr %247, align 4, !tbaa !17
  %249 = load i32, ptr getelementptr inbounds (i8, ptr @xd, i64 8), align 8, !tbaa !5
  %250 = add nsw i32 %249, %248
  store i32 %250, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #5
  %251 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv109) #5
  %252 = getelementptr inbounds i8, ptr %251, i64 4
  %253 = load i32, ptr %252, align 4, !tbaa !19
  %254 = load i32, ptr getelementptr inbounds (i8, ptr @yd, i64 8), align 8, !tbaa !5
  %255 = add nsw i32 %254, %253
  store i32 %255, ptr %18, align 4, !tbaa !5
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #5
  %.sroa.05.0.copyload.2 = load i64, ptr %16, align 8
  %256 = call noundef zeroext i1 @_Z5validSt4pairIiiE(i64 %.sroa.05.0.copyload.2)
  br i1 %256, label %257, label %276

257:                                              ; preds = %246
  %258 = load i32, ptr %16, align 8, !tbaa !17
  %259 = sext i32 %258 to i64
  %260 = load i32, ptr %181, align 4, !tbaa !19
  %261 = sext i32 %260 to i64
  %262 = getelementptr inbounds [750 x [750 x i32]], ptr @h, i64 0, i64 %259, i64 %261
  %263 = load i32, ptr %262, align 4, !tbaa !5
  %264 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv109) #5
  %265 = load i32, ptr %264, align 4, !tbaa !17
  %266 = sext i32 %265 to i64
  %267 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv109) #5
  %268 = getelementptr inbounds i8, ptr %267, i64 4
  %269 = load i32, ptr %268, align 4, !tbaa !19
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds [750 x [750 x i32]], ptr @h, i64 0, i64 %266, i64 %270
  %272 = load i32, ptr %271, align 4, !tbaa !5
  %273 = icmp slt i32 %263, %272
  br i1 %273, label %274, label %276

274:                                              ; preds = %257
  %275 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv109) #5
  %.sroa.04.0.copyload.2 = load i64, ptr %275, align 4
  %.sroa.03.0.copyload.2 = load i64, ptr %16, align 8
  invoke void @_ZN3DSUILi562505EE5uniteESt4pairIiiES2_(ptr noundef nonnull align 4 dereferenceable(6750064) @B, i64 %.sroa.04.0.copyload.2, i64 %.sroa.03.0.copyload.2)
          to label %276 unwind label %214

276:                                              ; preds = %274, %257, %246
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #5
  %277 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv109) #5
  %278 = load i32, ptr %277, align 4, !tbaa !17
  %279 = load i32, ptr getelementptr inbounds (i8, ptr @xd, i64 12), align 4, !tbaa !5
  %280 = add nsw i32 %279, %278
  store i32 %280, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #5
  %281 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv109) #5
  %282 = getelementptr inbounds i8, ptr %281, i64 4
  %283 = load i32, ptr %282, align 4, !tbaa !19
  %284 = load i32, ptr getelementptr inbounds (i8, ptr @yd, i64 12), align 4, !tbaa !5
  %285 = add nsw i32 %284, %283
  store i32 %285, ptr %18, align 4, !tbaa !5
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #5
  %.sroa.05.0.copyload.3 = load i64, ptr %16, align 8
  %286 = call noundef zeroext i1 @_Z5validSt4pairIiiE(i64 %.sroa.05.0.copyload.3)
  br i1 %286, label %287, label %306

287:                                              ; preds = %276
  %288 = load i32, ptr %16, align 8, !tbaa !17
  %289 = sext i32 %288 to i64
  %290 = load i32, ptr %181, align 4, !tbaa !19
  %291 = sext i32 %290 to i64
  %292 = getelementptr inbounds [750 x [750 x i32]], ptr @h, i64 0, i64 %289, i64 %291
  %293 = load i32, ptr %292, align 4, !tbaa !5
  %294 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv109) #5
  %295 = load i32, ptr %294, align 4, !tbaa !17
  %296 = sext i32 %295 to i64
  %297 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv109) #5
  %298 = getelementptr inbounds i8, ptr %297, i64 4
  %299 = load i32, ptr %298, align 4, !tbaa !19
  %300 = sext i32 %299 to i64
  %301 = getelementptr inbounds [750 x [750 x i32]], ptr @h, i64 0, i64 %296, i64 %300
  %302 = load i32, ptr %301, align 4, !tbaa !5
  %303 = icmp slt i32 %293, %302
  br i1 %303, label %304, label %306

304:                                              ; preds = %287
  %305 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv109) #5
  %.sroa.04.0.copyload.3 = load i64, ptr %305, align 4
  %.sroa.03.0.copyload.3 = load i64, ptr %16, align 8
  invoke void @_ZN3DSUILi562505EE5uniteESt4pairIiiES2_(ptr noundef nonnull align 4 dereferenceable(6750064) @B, i64 %.sroa.04.0.copyload.3, i64 %.sroa.03.0.copyload.3)
          to label %306 unwind label %214

306:                                              ; preds = %304, %287, %276
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  %307 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv109) #5
  %.sroa.0.0.copyload = load i64, ptr %307, align 4
  %308 = call noundef i32 @_Z3hshSt4pairIiiE(i64 %.sroa.0.0.copyload)
  %309 = invoke noundef i32 @_ZN3DSUILi562505EE3getEi(ptr noundef nonnull align 4 dereferenceable(6750064) @B, i32 noundef %308)
          to label %310 unwind label %326

310:                                              ; preds = %306
  %indvars.iv.next110 = add nuw nsw i64 %indvars.iv109, 1
  %311 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv.next110) #5
  %312 = load i32, ptr %311, align 4, !tbaa !5
  %313 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv109) #5
  %314 = load i32, ptr %313, align 4, !tbaa !5
  %315 = sub nsw i32 %312, %314
  %316 = sext i32 %309 to i64
  %317 = getelementptr inbounds [562505 x i32], ptr getelementptr inbounds (i8, ptr @B, i64 4500040), i64 0, i64 %316
  %318 = load i32, ptr %317, align 4, !tbaa !5
  %319 = add nsw i32 %318, %315
  store i32 %319, ptr %317, align 4, !tbaa !5
  %320 = icmp eq i32 %319, 0
  br i1 %320, label %321, label %328

321:                                              ; preds = %310
  %322 = getelementptr inbounds [562505 x i32], ptr getelementptr inbounds (i8, ptr @B, i64 2250020), i64 0, i64 %316
  %323 = load i32, ptr %322, align 4, !tbaa !5
  %324 = sext i32 %323 to i64
  %325 = add nsw i64 %182, %324
  store i64 %325, ptr %15, align 8, !tbaa !22
  br label %328

326:                                              ; preds = %306
  %327 = landingpad { ptr, i32 }
          cleanup
  br label %336

328:                                              ; preds = %321, %310
  %329 = phi i64 [ %325, %321 ], [ %182, %310 ]
  %330 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  %sext = shl i64 %330, 32
  %331 = ashr exact i64 %sext, 32
  %332 = icmp slt i64 %indvars.iv.next110, %331
  br i1 %332, label %.preheader, label %._crit_edge95, !llvm.loop !24

333:                                              ; preds = %._crit_edge95
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  ret i32 0

334:                                              ; preds = %._crit_edge95
  %335 = landingpad { ptr, i32 }
          cleanup
  br label %336

336:                                              ; preds = %214, %326, %334
  %.pn68.pn = phi { ptr, i32 } [ %335, %334 ], [ %215, %214 ], [ %327, %326 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  br label %337

337:                                              ; preds = %174, %175, %336, %193
  %.pn71.pn.pn = phi { ptr, i32 } [ %.pn68.pn, %336 ], [ %194, %193 ], [ %.pn71, %174 ], [ %176, %175 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  br label %338

338:                                              ; preds = %337, %68
  %.pn71.pn.pn.pn = phi { ptr, i32 } [ %.pn71.pn.pn, %337 ], [ %69, %68 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  br label %339

339:                                              ; preds = %338, %66, %52
  %.pn77 = phi { ptr, i32 } [ %53, %52 ], [ %.pn71.pn.pn.pn, %338 ], [ %67, %66 ]
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  br label %340

340:                                              ; preds = %339, %31
  %.pn77.pn = phi { ptr, i32 } [ %.pn77, %339 ], [ %.pn, %31 ]
  resume { ptr, i32 } %.pn77.pn
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5input2reIiEEvRT_(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS3_SaIS3_EEEEZ4mainE3$_0EvT_SA_T0_"(ptr, ptr) local_unnamed_addr #4

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN3DSUILi562505EE3getEi(ptr noundef nonnull align 4 dereferenceable(6750064), i32 noundef) local_unnamed_addr #2 align 2

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) 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 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10, !11}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.unswitch.partial.disable"}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10, !11}
!14 = distinct !{!14, !10}
!15 = !{!16, !6, i64 6750060}
!16 = !{!"_ZTS3DSUILi562505EE", !7, i64 0, !7, i64 2250020, !7, i64 4500040, !6, i64 6750060}
!17 = !{!18, !6, i64 0}
!18 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!19 = !{!18, !6, i64 4}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = !{!23, !23, i64 0}
!23 = !{!"long long", !7, i64 0}
!24 = distinct !{!24, !10}


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