; LLVM IR from eyangch/competitive-programming :: USACOcontests/silver/2014.03 (gpsduel)

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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"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 }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external global ptr, align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3dijiPSt6vectorISt4pairIiiESaIS1_EEiRA10000_i(i32 noundef, ptr noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(40000)) #0

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca [10000 x %"class.std::vector"], align 16
  %5 = alloca [10000 x %"class.std::vector"], align 16
  %6 = alloca [10000 x %"class.std::vector"], align 16
  %7 = alloca [10000 x i32], align 16
  %8 = alloca [10000 x i32], align 16
  %9 = alloca [10000 x i32], align 16
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca %"struct.std::pair", align 4
  %18 = alloca i32, align 4
  %19 = alloca %"struct.std::pair", align 4
  %20 = alloca i32, align 4
  %21 = alloca %"struct.std::pair", align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %27 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %28 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %29 = getelementptr i8, ptr %28, i64 -24
  %30 = load i64, ptr %29, align 8
  %31 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %30
  %32 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %31, ptr noundef null)
  %33 = load ptr, ptr @stdin, align 8, !tbaa !8
  %34 = call ptr @freopen(ptr noundef @.str, ptr noundef @.str.1, ptr noundef %33)
  %35 = load ptr, ptr @stdout, align 8, !tbaa !8
  %36 = call ptr @freopen(ptr noundef @.str.2, ptr noundef @.str.3, ptr noundef %35)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  %37 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %38 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %37, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.start.p0(i64 240000, ptr %4) #6
  %39 = getelementptr inbounds [10000 x %"class.std::vector"], ptr %4, i32 0, i32 0
  %40 = getelementptr inbounds %"class.std::vector", ptr %39, i64 10000
  br label %41

41:                                               ; preds = %41, %0
  %42 = phi ptr [ %39, %0 ], [ %43, %41 ]
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %42) #6
  %43 = getelementptr inbounds %"class.std::vector", ptr %42, i64 1
  %44 = icmp eq ptr %43, %40
  br i1 %44, label %45, label %41

45:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 240000, ptr %5) #6
  %46 = getelementptr inbounds [10000 x %"class.std::vector"], ptr %5, i32 0, i32 0
  %47 = getelementptr inbounds %"class.std::vector", ptr %46, i64 10000
  br label %48

48:                                               ; preds = %48, %45
  %49 = phi ptr [ %46, %45 ], [ %50, %48 ]
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %49) #6
  %50 = getelementptr inbounds %"class.std::vector", ptr %49, i64 1
  %51 = icmp eq ptr %50, %47
  br i1 %51, label %52, label %48

52:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 240000, ptr %6) #6
  %53 = getelementptr inbounds [10000 x %"class.std::vector"], ptr %6, i32 0, i32 0
  %54 = getelementptr inbounds %"class.std::vector", ptr %53, i64 10000
  br label %55

55:                                               ; preds = %55, %52
  %56 = phi ptr [ %53, %52 ], [ %57, %55 ]
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %56) #6
  %57 = getelementptr inbounds %"class.std::vector", ptr %56, i64 1
  %58 = icmp eq ptr %57, %54
  br i1 %58, label %59, label %55

59:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 40000, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 40000, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 40000, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !11
  br label %60

60:                                               ; preds = %98, %59
  %61 = load i32, ptr %10, align 4, !tbaa !11
  %62 = load i32, ptr %3, align 4, !tbaa !11
  %63 = icmp slt i32 %61, %62
  br i1 %63, label %65, label %64

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

65:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %66 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %67 unwind label %101

67:                                               ; preds = %65
  %68 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %66, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %69 unwind label %101

69:                                               ; preds = %67
  %70 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %68, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %71 unwind label %101

71:                                               ; preds = %69
  %72 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %70, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %73 unwind label %101

73:                                               ; preds = %71
  %74 = load i32, ptr %12, align 4, !tbaa !11
  %75 = sub nsw i32 %74, 1
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [10000 x %"class.std::vector"], ptr %4, i64 0, i64 %76
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %78 = load i32, ptr %11, align 4, !tbaa !11
  %79 = sub nsw i32 %78, 1
  store i32 %79, ptr %18, align 4, !tbaa !11
  invoke void @_ZNSt4pairIiiEC2IiRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %80 unwind label %105

80:                                               ; preds = %73
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %77, ptr noundef nonnull align 4 dereferenceable(8) %17)
          to label %81 unwind label %105

81:                                               ; preds = %80
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  %82 = load i32, ptr %12, align 4, !tbaa !11
  %83 = sub nsw i32 %82, 1
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [10000 x %"class.std::vector"], ptr %5, i64 0, i64 %84
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %86 = load i32, ptr %11, align 4, !tbaa !11
  %87 = sub nsw i32 %86, 1
  store i32 %87, ptr %20, align 4, !tbaa !11
  invoke void @_ZNSt4pairIiiEC2IiRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %19, ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %88 unwind label %109

88:                                               ; preds = %81
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %85, ptr noundef nonnull align 4 dereferenceable(8) %19)
          to label %89 unwind label %109

89:                                               ; preds = %88
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  %90 = load i32, ptr %12, align 4, !tbaa !11
  %91 = sub nsw i32 %90, 1
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [10000 x %"class.std::vector"], ptr %6, i64 0, i64 %92
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %94 = load i32, ptr %11, align 4, !tbaa !11
  %95 = sub nsw i32 %94, 1
  store i32 %95, ptr %22, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  store i32 2, ptr %23, align 4, !tbaa !11
  invoke void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %21, ptr noundef nonnull align 4 dereferenceable(4) %22, ptr noundef nonnull align 4 dereferenceable(4) %23)
          to label %96 unwind label %113

96:                                               ; preds = %89
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %93, ptr noundef nonnull align 4 dereferenceable(8) %21)
          to label %97 unwind label %113

97:                                               ; preds = %96
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %98

98:                                               ; preds = %97
  %99 = load i32, ptr %10, align 4, !tbaa !11
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %10, align 4, !tbaa !11
  br label %60, !llvm.loop !13

101:                                              ; preds = %71, %69, %67, %65
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %15, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %16, align 4
  br label %117

105:                                              ; preds = %80, %73
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %15, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %117

109:                                              ; preds = %88, %81
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %15, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %117

113:                                              ; preds = %96, %89
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %15, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %117

117:                                              ; preds = %113, %109, %105, %101
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, 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 %242

118:                                              ; preds = %64
  %119 = load i32, ptr %2, align 4, !tbaa !11
  %120 = getelementptr inbounds [10000 x %"class.std::vector"], ptr %4, i64 0, i64 0
  %121 = load i32, ptr %2, align 4, !tbaa !11
  %122 = sub nsw i32 %121, 1
  invoke void @_Z3dijiPSt6vectorISt4pairIiiESaIS1_EEiRA10000_i(i32 noundef %119, ptr noundef %120, i32 noundef %122, ptr noundef nonnull align 4 dereferenceable(40000) %7)
          to label %123 unwind label %134

123:                                              ; preds = %118
  %124 = load i32, ptr %2, align 4, !tbaa !11
  %125 = getelementptr inbounds [10000 x %"class.std::vector"], ptr %5, i64 0, i64 0
  %126 = load i32, ptr %2, align 4, !tbaa !11
  %127 = sub nsw i32 %126, 1
  invoke void @_Z3dijiPSt6vectorISt4pairIiiESaIS1_EEiRA10000_i(i32 noundef %124, ptr noundef %125, i32 noundef %127, ptr noundef nonnull align 4 dereferenceable(40000) %8)
          to label %128 unwind label %134

128:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  store i32 0, ptr %24, align 4, !tbaa !11
  br label %129

129:                                              ; preds = %225, %128
  %130 = load i32, ptr %24, align 4, !tbaa !11
  %131 = load i32, ptr %2, align 4, !tbaa !11
  %132 = icmp slt i32 %130, %131
  br i1 %132, label %138, label %133

133:                                              ; preds = %129
  store i32 5, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %228

134:                                              ; preds = %237, %233, %228, %123, %118
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %15, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %16, align 4
  br label %242

138:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  store i32 0, ptr %26, align 4, !tbaa !11
  br label %139

139:                                              ; preds = %221, %138
  %140 = load i32, ptr %26, align 4, !tbaa !11
  %141 = load i32, ptr %24, align 4, !tbaa !11
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [10000 x %"class.std::vector"], ptr %6, i64 0, i64 %142
  %144 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %143) #6
  %145 = trunc i64 %144 to i32
  %146 = icmp slt i32 %140, %145
  br i1 %146, label %148, label %147

147:                                              ; preds = %139
  store i32 8, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %224

148:                                              ; preds = %139
  %149 = load i32, ptr %24, align 4, !tbaa !11
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [10000 x i32], ptr %7, i64 0, i64 %150
  %152 = load i32, ptr %151, align 4, !tbaa !11
  %153 = load i32, ptr %24, align 4, !tbaa !11
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds [10000 x %"class.std::vector"], ptr %6, i64 0, i64 %154
  %156 = load i32, ptr %26, align 4, !tbaa !11
  %157 = sext i32 %156 to i64
  %158 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %155, i64 noundef %157) #6
  %159 = getelementptr inbounds %"struct.std::pair", ptr %158, i32 0, i32 0
  %160 = load i32, ptr %159, align 4, !tbaa !15
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [10000 x i32], ptr %7, i64 0, i64 %161
  %163 = load i32, ptr %162, align 4, !tbaa !11
  %164 = load i32, ptr %24, align 4, !tbaa !11
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [10000 x %"class.std::vector"], ptr %4, i64 0, i64 %165
  %167 = load i32, ptr %26, align 4, !tbaa !11
  %168 = sext i32 %167 to i64
  %169 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %166, i64 noundef %168) #6
  %170 = getelementptr inbounds %"struct.std::pair", ptr %169, i32 0, i32 1
  %171 = load i32, ptr %170, align 4, !tbaa !17
  %172 = sub nsw i32 %163, %171
  %173 = icmp eq i32 %152, %172
  br i1 %173, label %174, label %184

174:                                              ; preds = %148
  %175 = load i32, ptr %24, align 4, !tbaa !11
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds [10000 x %"class.std::vector"], ptr %6, i64 0, i64 %176
  %178 = load i32, ptr %26, align 4, !tbaa !11
  %179 = sext i32 %178 to i64
  %180 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %177, i64 noundef %179) #6
  %181 = getelementptr inbounds %"struct.std::pair", ptr %180, i32 0, i32 1
  %182 = load i32, ptr %181, align 4, !tbaa !17
  %183 = add nsw i32 %182, -1
  store i32 %183, ptr %181, align 4, !tbaa !17
  br label %184

184:                                              ; preds = %174, %148
  %185 = load i32, ptr %24, align 4, !tbaa !11
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds [10000 x i32], ptr %8, i64 0, i64 %186
  %188 = load i32, ptr %187, align 4, !tbaa !11
  %189 = load i32, ptr %24, align 4, !tbaa !11
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds [10000 x %"class.std::vector"], ptr %6, i64 0, i64 %190
  %192 = load i32, ptr %26, align 4, !tbaa !11
  %193 = sext i32 %192 to i64
  %194 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %191, i64 noundef %193) #6
  %195 = getelementptr inbounds %"struct.std::pair", ptr %194, i32 0, i32 0
  %196 = load i32, ptr %195, align 4, !tbaa !15
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds [10000 x i32], ptr %8, i64 0, i64 %197
  %199 = load i32, ptr %198, align 4, !tbaa !11
  %200 = load i32, ptr %24, align 4, !tbaa !11
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [10000 x %"class.std::vector"], ptr %5, i64 0, i64 %201
  %203 = load i32, ptr %26, align 4, !tbaa !11
  %204 = sext i32 %203 to i64
  %205 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %202, i64 noundef %204) #6
  %206 = getelementptr inbounds %"struct.std::pair", ptr %205, i32 0, i32 1
  %207 = load i32, ptr %206, align 4, !tbaa !17
  %208 = sub nsw i32 %199, %207
  %209 = icmp eq i32 %188, %208
  br i1 %209, label %210, label %220

210:                                              ; preds = %184
  %211 = load i32, ptr %24, align 4, !tbaa !11
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds [10000 x %"class.std::vector"], ptr %6, i64 0, i64 %212
  %214 = load i32, ptr %26, align 4, !tbaa !11
  %215 = sext i32 %214 to i64
  %216 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %213, i64 noundef %215) #6
  %217 = getelementptr inbounds %"struct.std::pair", ptr %216, i32 0, i32 1
  %218 = load i32, ptr %217, align 4, !tbaa !17
  %219 = add nsw i32 %218, -1
  store i32 %219, ptr %217, align 4, !tbaa !17
  br label %220

220:                                              ; preds = %210, %184
  br label %221

221:                                              ; preds = %220
  %222 = load i32, ptr %26, align 4, !tbaa !11
  %223 = add nsw i32 %222, 1
  store i32 %223, ptr %26, align 4, !tbaa !11
  br label %139, !llvm.loop !18

224:                                              ; preds = %147
  br label %225

225:                                              ; preds = %224
  %226 = load i32, ptr %24, align 4, !tbaa !11
  %227 = add nsw i32 %226, 1
  store i32 %227, ptr %24, align 4, !tbaa !11
  br label %129, !llvm.loop !19

228:                                              ; preds = %133
  %229 = load i32, ptr %2, align 4, !tbaa !11
  %230 = getelementptr inbounds [10000 x %"class.std::vector"], ptr %6, i64 0, i64 0
  %231 = load i32, ptr %2, align 4, !tbaa !11
  %232 = sub nsw i32 %231, 1
  invoke void @_Z3dijiPSt6vectorISt4pairIiiESaIS1_EEiRA10000_i(i32 noundef %229, ptr noundef %230, i32 noundef %232, ptr noundef nonnull align 4 dereferenceable(40000) %9)
          to label %233 unwind label %134

233:                                              ; preds = %228
  %234 = getelementptr inbounds [10000 x i32], ptr %9, i64 0, i64 0
  %235 = load i32, ptr %234, align 16, !tbaa !11
  %236 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %235)
          to label %237 unwind label %134

237:                                              ; preds = %233
  %238 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %236, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %239 unwind label %134

239:                                              ; preds = %237
  store i32 0, ptr %1, align 4
  store i32 1, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 40000, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 40000, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 40000, ptr %7) #6
  %240 = getelementptr inbounds [10000 x %"class.std::vector"], ptr %6, i32 0, i32 0
  %241 = getelementptr inbounds %"class.std::vector", ptr %240, i64 10000
  br label %245

242:                                              ; preds = %134, %117
  call void @llvm.lifetime.end.p0(i64 40000, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 40000, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 40000, ptr %7) #6
  %243 = getelementptr inbounds [10000 x %"class.std::vector"], ptr %6, i32 0, i32 0
  %244 = getelementptr inbounds %"class.std::vector", ptr %243, i64 10000
  br label %252

245:                                              ; preds = %245, %239
  %246 = phi ptr [ %241, %239 ], [ %247, %245 ]
  %247 = getelementptr inbounds %"class.std::vector", ptr %246, i64 -1
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %247) #6
  %248 = icmp eq ptr %247, %240
  br i1 %248, label %249, label %245

249:                                              ; preds = %245
  call void @llvm.lifetime.end.p0(i64 240000, ptr %6) #6
  %250 = getelementptr inbounds [10000 x %"class.std::vector"], ptr %5, i32 0, i32 0
  %251 = getelementptr inbounds %"class.std::vector", ptr %250, i64 10000
  br label %259

252:                                              ; preds = %252, %242
  %253 = phi ptr [ %244, %242 ], [ %254, %252 ]
  %254 = getelementptr inbounds %"class.std::vector", ptr %253, i64 -1
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %254) #6
  %255 = icmp eq ptr %254, %243
  br i1 %255, label %256, label %252

256:                                              ; preds = %252
  call void @llvm.lifetime.end.p0(i64 240000, ptr %6) #6
  %257 = getelementptr inbounds [10000 x %"class.std::vector"], ptr %5, i32 0, i32 0
  %258 = getelementptr inbounds %"class.std::vector", ptr %257, i64 10000
  br label %266

259:                                              ; preds = %259, %249
  %260 = phi ptr [ %251, %249 ], [ %261, %259 ]
  %261 = getelementptr inbounds %"class.std::vector", ptr %260, i64 -1
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %261) #6
  %262 = icmp eq ptr %261, %250
  br i1 %262, label %263, label %259

263:                                              ; preds = %259
  call void @llvm.lifetime.end.p0(i64 240000, ptr %5) #6
  %264 = getelementptr inbounds [10000 x %"class.std::vector"], ptr %4, i32 0, i32 0
  %265 = getelementptr inbounds %"class.std::vector", ptr %264, i64 10000
  br label %273

266:                                              ; preds = %266, %256
  %267 = phi ptr [ %258, %256 ], [ %268, %266 ]
  %268 = getelementptr inbounds %"class.std::vector", ptr %267, i64 -1
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %268) #6
  %269 = icmp eq ptr %268, %257
  br i1 %269, label %270, label %266

270:                                              ; preds = %266
  call void @llvm.lifetime.end.p0(i64 240000, ptr %5) #6
  %271 = getelementptr inbounds [10000 x %"class.std::vector"], ptr %4, i32 0, i32 0
  %272 = getelementptr inbounds %"class.std::vector", ptr %271, i64 10000
  br label %279

273:                                              ; preds = %273, %263
  %274 = phi ptr [ %265, %263 ], [ %275, %273 ]
  %275 = getelementptr inbounds %"class.std::vector", ptr %274, i64 -1
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %275) #6
  %276 = icmp eq ptr %275, %264
  br i1 %276, label %277, label %273

277:                                              ; preds = %273
  call void @llvm.lifetime.end.p0(i64 240000, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  %278 = load i32, ptr %1, align 4
  ret i32 %278

279:                                              ; preds = %279, %270
  %280 = phi ptr [ %272, %270 ], [ %281, %279 ]
  %281 = getelementptr inbounds %"class.std::vector", ptr %280, i64 -1
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %281) #6
  %282 = icmp eq ptr %281, %271
  br i1 %282, label %283, label %279

283:                                              ; preds = %279
  call void @llvm.lifetime.end.p0(i64 240000, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %284

284:                                              ; preds = %283
  %285 = load ptr, ptr %15, align 8
  %286 = load i32, ptr %16, align 4
  %287 = insertvalue { ptr, i32 } poison, ptr %285, 0
  %288 = insertvalue { ptr, i32 } %287, i32 %286, 1
  resume { ptr, i32 } %288
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #3

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) #4 align 2

declare ptr @freopen(ptr noundef, ptr noundef, ptr noundef) #3

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #3

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIiiEC2IiRiTnNSt9enable_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 #4 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 #4 align 2

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

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

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

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

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


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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"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 }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3dijiPSt6vectorISt4pairIiiESaIS1_EEiRA10000_i(i32 noundef, ptr noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(40000)) local_unnamed_addr #0

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca [10000 x %"class.std::vector"], align 16
  %4 = alloca [10000 x %"class.std::vector"], align 16
  %5 = alloca [10000 x %"class.std::vector"], align 16
  %6 = alloca [10000 x i32], align 16
  %7 = alloca [10000 x i32], align 16
  %8 = alloca [10000 x i32], align 16
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"struct.std::pair", align 4
  %14 = alloca i32, align 4
  %15 = alloca %"struct.std::pair", align 4
  %16 = alloca i32, align 4
  %17 = alloca %"struct.std::pair", align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %21 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %22 = getelementptr i8, ptr %21, i64 -24
  %23 = load i64, ptr %22, align 8
  %24 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %23
  %25 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %24, ptr noundef null)
  %26 = load ptr, ptr @stdin, align 8, !tbaa !8
  %27 = tail call ptr @freopen(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef %26)
  %28 = load ptr, ptr @stdout, align 8, !tbaa !8
  %29 = tail call ptr @freopen(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, ptr noundef %28)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  %30 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %31 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.start.p0(i64 240000, ptr nonnull %3) #6
  br label %32

32:                                               ; preds = %32, %0
  %.idx = phi i64 [ 0, %0 ], [ %.add, %32 ]
  %.ptr = getelementptr inbounds i8, ptr %3, i64 %.idx
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr) #6
  %.add = add nuw nsw i64 %.idx, 24
  %33 = icmp eq i64 %.add, 240000
  br i1 %33, label %34, label %32

34:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 240000, ptr nonnull %4) #6
  br label %35

35:                                               ; preds = %35, %34
  %.idx39 = phi i64 [ 0, %34 ], [ %.add40, %35 ]
  %.ptr41 = getelementptr inbounds i8, ptr %4, i64 %.idx39
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr41) #6
  %.add40 = add nuw nsw i64 %.idx39, 24
  %36 = icmp eq i64 %.add40, 240000
  br i1 %36, label %37, label %35

37:                                               ; preds = %35
  %38 = getelementptr inbounds i8, ptr %3, i64 240000
  call void @llvm.lifetime.start.p0(i64 240000, ptr nonnull %5) #6
  br label %39

39:                                               ; preds = %39, %37
  %.idx43 = phi i64 [ 0, %37 ], [ %.add44, %39 ]
  %.ptr45 = getelementptr inbounds i8, ptr %5, i64 %.idx43
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr45) #6
  %.add44 = add nuw nsw i64 %.idx43, 24
  %40 = icmp eq i64 %.add44, 240000
  br i1 %40, label %41, label %39

41:                                               ; preds = %39
  %42 = getelementptr inbounds i8, ptr %4, i64 240000
  %43 = getelementptr inbounds i8, ptr %5, i64 240000
  call void @llvm.lifetime.start.p0(i64 40000, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 40000, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 40000, ptr nonnull %8) #6
  %44 = load i32, ptr %2, align 4, !tbaa !11
  %45 = icmp sgt i32 %44, 0
  br i1 %45, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %76, %41
  %46 = load i32, ptr %1, align 4, !tbaa !11
  %47 = add nsw i32 %46, -1
  invoke void @_Z3dijiPSt6vectorISt4pairIiiESaIS1_EEiRA10000_i(i32 noundef %46, ptr noundef nonnull %3, i32 noundef %47, ptr noundef nonnull align 4 dereferenceable(40000) %6)
          to label %89 unwind label %103

.lr.ph:                                           ; preds = %41, %76
  %.02750 = phi i32 [ %77, %76 ], [ 0, %41 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #6
  %48 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %49 unwind label %80

49:                                               ; preds = %.lr.ph
  %50 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %48, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %51 unwind label %80

51:                                               ; preds = %49
  %52 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %50, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %53 unwind label %80

53:                                               ; preds = %51
  %54 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %52, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %55 unwind label %80

55:                                               ; preds = %53
  %56 = load i32, ptr %10, align 4, !tbaa !11
  %57 = add nsw i32 %56, -1
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [10000 x %"class.std::vector"], ptr %3, i64 0, i64 %58
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #6
  %60 = load i32, ptr %9, align 4, !tbaa !11
  %61 = add nsw i32 %60, -1
  store i32 %61, ptr %14, align 4, !tbaa !11
  call void @_ZNSt4pairIiiEC2IiRiTnNSt9enable_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) %14, ptr noundef nonnull align 4 dereferenceable(4) %11)
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %59, ptr noundef nonnull align 4 dereferenceable(8) %13)
          to label %62 unwind label %82

62:                                               ; preds = %55
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  %63 = load i32, ptr %10, align 4, !tbaa !11
  %64 = add nsw i32 %63, -1
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [10000 x %"class.std::vector"], ptr %4, i64 0, i64 %65
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #6
  %67 = load i32, ptr %9, align 4, !tbaa !11
  %68 = add nsw i32 %67, -1
  store i32 %68, ptr %16, align 4, !tbaa !11
  call void @_ZNSt4pairIiiEC2IiRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %12)
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %66, ptr noundef nonnull align 4 dereferenceable(8) %15)
          to label %69 unwind label %84

69:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  %70 = load i32, ptr %10, align 4, !tbaa !11
  %71 = add nsw i32 %70, -1
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [10000 x %"class.std::vector"], ptr %5, i64 0, i64 %72
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #6
  %74 = load i32, ptr %9, align 4, !tbaa !11
  %75 = add nsw i32 %74, -1
  store i32 %75, ptr %18, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #6
  store i32 2, ptr %19, align 4, !tbaa !11
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %19)
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %73, ptr noundef nonnull align 4 dereferenceable(8) %17)
          to label %76 unwind label %86

76:                                               ; preds = %69
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  %77 = add nuw nsw i32 %.02750, 1
  %78 = load i32, ptr %2, align 4, !tbaa !11
  %79 = icmp slt i32 %77, %78
  br i1 %79, label %.lr.ph, label %._crit_edge, !llvm.loop !13

80:                                               ; preds = %53, %51, %49, %.lr.ph
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %88

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

84:                                               ; preds = %62
  %85 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  br label %88

86:                                               ; preds = %69
  %87 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  br label %88

88:                                               ; preds = %86, %84, %82, %80
  %.pn = phi { ptr, i32 } [ %87, %86 ], [ %85, %84 ], [ %83, %82 ], [ %81, %80 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  br label %152

89:                                               ; preds = %._crit_edge
  %90 = load i32, ptr %1, align 4, !tbaa !11
  %91 = add nsw i32 %90, -1
  invoke void @_Z3dijiPSt6vectorISt4pairIiiESaIS1_EEiRA10000_i(i32 noundef %90, ptr noundef nonnull %4, i32 noundef %91, ptr noundef nonnull align 4 dereferenceable(40000) %7)
          to label %.preheader49 unwind label %103

.preheader49:                                     ; preds = %89
  %92 = load i32, ptr %1, align 4, !tbaa !11
  %93 = icmp sgt i32 %92, 0
  br i1 %93, label %.preheader, label %._crit_edge55

.preheader:                                       ; preds = %.preheader49, %._crit_edge53
  %indvars.iv58 = phi i64 [ %indvars.iv.next59, %._crit_edge53 ], [ 0, %.preheader49 ]
  %94 = getelementptr inbounds [10000 x %"class.std::vector"], ptr %5, i64 0, i64 %indvars.iv58
  %95 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %94) #6
  %96 = trunc i64 %95 to i32
  %97 = icmp sgt i32 %96, 0
  br i1 %97, label %.lr.ph52, label %._crit_edge53

.lr.ph52:                                         ; preds = %.preheader
  %98 = getelementptr inbounds [10000 x i32], ptr %6, i64 0, i64 %indvars.iv58
  %99 = getelementptr inbounds [10000 x %"class.std::vector"], ptr %3, i64 0, i64 %indvars.iv58
  %100 = getelementptr inbounds [10000 x i32], ptr %7, i64 0, i64 %indvars.iv58
  %101 = getelementptr inbounds [10000 x %"class.std::vector"], ptr %4, i64 0, i64 %indvars.iv58
  br label %108

._crit_edge55:                                    ; preds = %._crit_edge53, %.preheader49
  %.lcssa = phi i32 [ %92, %.preheader49 ], [ %105, %._crit_edge53 ]
  %102 = add nsw i32 %.lcssa, -1
  invoke void @_Z3dijiPSt6vectorISt4pairIiiESaIS1_EEiRA10000_i(i32 noundef %.lcssa, ptr noundef nonnull %5, i32 noundef %102, ptr noundef nonnull align 4 dereferenceable(40000) %8)
          to label %146 unwind label %103

103:                                              ; preds = %149, %146, %._crit_edge55, %89, %._crit_edge
  %104 = landingpad { ptr, i32 }
          cleanup
  br label %152

._crit_edge53:                                    ; preds = %142, %.preheader
  %indvars.iv.next59 = add nuw nsw i64 %indvars.iv58, 1
  %105 = load i32, ptr %1, align 4, !tbaa !11
  %106 = sext i32 %105 to i64
  %107 = icmp slt i64 %indvars.iv.next59, %106
  br i1 %107, label %.preheader, label %._crit_edge55, !llvm.loop !15

108:                                              ; preds = %.lr.ph52, %142
  %indvars.iv = phi i64 [ 0, %.lr.ph52 ], [ %indvars.iv.next, %142 ]
  %109 = load i32, ptr %98, align 4, !tbaa !11
  %110 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %94, i64 noundef %indvars.iv) #6
  %111 = load i32, ptr %110, align 4, !tbaa !16
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [10000 x i32], ptr %6, i64 0, i64 %112
  %114 = load i32, ptr %113, align 4, !tbaa !11
  %115 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %99, i64 noundef %indvars.iv) #6
  %116 = getelementptr inbounds i8, ptr %115, i64 4
  %117 = load i32, ptr %116, align 4, !tbaa !18
  %118 = sub nsw i32 %114, %117
  %119 = icmp eq i32 %109, %118
  br i1 %119, label %120, label %125

120:                                              ; preds = %108
  %121 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %94, i64 noundef %indvars.iv) #6
  %122 = getelementptr inbounds i8, ptr %121, i64 4
  %123 = load i32, ptr %122, align 4, !tbaa !18
  %124 = add nsw i32 %123, -1
  store i32 %124, ptr %122, align 4, !tbaa !18
  br label %125

125:                                              ; preds = %120, %108
  %126 = load i32, ptr %100, align 4, !tbaa !11
  %127 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %94, i64 noundef %indvars.iv) #6
  %128 = load i32, ptr %127, align 4, !tbaa !16
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [10000 x i32], ptr %7, i64 0, i64 %129
  %131 = load i32, ptr %130, align 4, !tbaa !11
  %132 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %101, i64 noundef %indvars.iv) #6
  %133 = getelementptr inbounds i8, ptr %132, i64 4
  %134 = load i32, ptr %133, align 4, !tbaa !18
  %135 = sub nsw i32 %131, %134
  %136 = icmp eq i32 %126, %135
  br i1 %136, label %137, label %142

137:                                              ; preds = %125
  %138 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %94, i64 noundef %indvars.iv) #6
  %139 = getelementptr inbounds i8, ptr %138, i64 4
  %140 = load i32, ptr %139, align 4, !tbaa !18
  %141 = add nsw i32 %140, -1
  store i32 %141, ptr %139, align 4, !tbaa !18
  br label %142

142:                                              ; preds = %125, %137
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %143 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %94) #6
  %sext = shl i64 %143, 32
  %144 = ashr exact i64 %sext, 32
  %145 = icmp slt i64 %indvars.iv.next, %144
  br i1 %145, label %108, label %._crit_edge53, !llvm.loop !19

146:                                              ; preds = %._crit_edge55
  %147 = load i32, ptr %8, align 16, !tbaa !11
  %148 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %147)
          to label %149 unwind label %103

149:                                              ; preds = %146
  %150 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %148, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %151 unwind label %103

151:                                              ; preds = %149
  call void @llvm.lifetime.end.p0(i64 40000, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 40000, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 40000, ptr nonnull %6) #6
  br label %153

152:                                              ; preds = %103, %88
  %.pn.pn = phi { ptr, i32 } [ %.pn, %88 ], [ %104, %103 ]
  call void @llvm.lifetime.end.p0(i64 40000, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 40000, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 40000, ptr nonnull %6) #6
  br label %158

153:                                              ; preds = %153, %151
  %154 = phi ptr [ %43, %151 ], [ %155, %153 ]
  %155 = getelementptr inbounds i8, ptr %154, i64 -24
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %155) #6
  %156 = icmp eq ptr %155, %5
  br i1 %156, label %157, label %153

157:                                              ; preds = %153
  call void @llvm.lifetime.end.p0(i64 240000, ptr nonnull %5) #6
  br label %163

158:                                              ; preds = %158, %152
  %159 = phi ptr [ %43, %152 ], [ %160, %158 ]
  %160 = getelementptr inbounds i8, ptr %159, i64 -24
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %160) #6
  %161 = icmp eq ptr %160, %5
  br i1 %161, label %162, label %158

162:                                              ; preds = %158
  call void @llvm.lifetime.end.p0(i64 240000, ptr nonnull %5) #6
  br label %168

163:                                              ; preds = %163, %157
  %164 = phi ptr [ %42, %157 ], [ %165, %163 ]
  %165 = getelementptr inbounds i8, ptr %164, i64 -24
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %165) #6
  %166 = icmp eq ptr %165, %4
  br i1 %166, label %167, label %163

167:                                              ; preds = %163
  call void @llvm.lifetime.end.p0(i64 240000, ptr nonnull %4) #6
  br label %173

168:                                              ; preds = %168, %162
  %169 = phi ptr [ %42, %162 ], [ %170, %168 ]
  %170 = getelementptr inbounds i8, ptr %169, i64 -24
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %170) #6
  %171 = icmp eq ptr %170, %4
  br i1 %171, label %172, label %168

172:                                              ; preds = %168
  call void @llvm.lifetime.end.p0(i64 240000, ptr nonnull %4) #6
  br label %178

173:                                              ; preds = %173, %167
  %174 = phi ptr [ %38, %167 ], [ %175, %173 ]
  %175 = getelementptr inbounds i8, ptr %174, i64 -24
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %175) #6
  %176 = icmp eq ptr %175, %3
  br i1 %176, label %177, label %173

177:                                              ; preds = %173
  call void @llvm.lifetime.end.p0(i64 240000, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  ret i32 0

178:                                              ; preds = %178, %172
  %179 = phi ptr [ %38, %172 ], [ %180, %178 ]
  %180 = getelementptr inbounds i8, ptr %179, i64 -24
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %180) #6
  %181 = icmp eq ptr %180, %3
  br i1 %181, label %182, label %178

182:                                              ; preds = %178
  call void @llvm.lifetime.end.p0(i64 240000, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn.pn
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) local_unnamed_addr #4 align 2

declare ptr @freopen(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIiiEC2IiRiTnNSt9enable_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 #4 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 #4 align 2

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

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

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

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

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


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