; LLVM IR from eyangch/competitive-programming :: USACOcontests/gold/2018.01 (mootube)

; 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, std::pair<int, int>>, std::allocator<std::pair<int, std::pair<int, int>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, std::pair<int, int>>, std::allocator<std::pair<int, std::pair<int, int>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, std::pair<int, int>>, std::allocator<std::pair<int, std::pair<int, int>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, std::pair<int, int>>, std::allocator<std::pair<int, std::pair<int, int>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { i32, %"struct.std::pair.0" }
%"struct.std::pair.0" = type { i32, i32 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::greater" = type { i8 }
%"struct.std::greater.4" = type { i8 }
%"struct.std::pair.2" = type { %"struct.std::pair.0", 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 noundef i32 @_Z4findiRA100000_i(i32 noundef, ptr noundef nonnull align 4 dereferenceable(400000)) #0

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

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

45:                                               ; preds = %66, %0
  %46 = load i32, ptr %5, align 4, !tbaa !11
  %47 = load i32, ptr %2, align 4, !tbaa !11
  %48 = sub nsw i32 %47, 1
  %49 = icmp slt i32 %46, %48
  br i1 %49, label %51, label %50

50:                                               ; preds = %45
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  br label %78

51:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  %52 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %53 unwind label %69

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) %7)
          to label %55 unwind label %69

55:                                               ; preds = %53
  %56 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %54, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %57 unwind label %69

57:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 12, ptr %11) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  %58 = load i32, ptr %6, align 4, !tbaa !11
  %59 = sub nsw i32 %58, 1
  store i32 %59, ptr %13, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  %60 = load i32, ptr %7, align 4, !tbaa !11
  %61 = sub nsw i32 %60, 1
  store i32 %61, ptr %14, align 4, !tbaa !11
  invoke void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %62 unwind label %73

62:                                               ; preds = %57
  %63 = invoke { i64, i32 } @_ZSt9make_pairIRiSt4pairIiiEES1_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(8) %12)
          to label %64 unwind label %73

64:                                               ; preds = %62
  store { i64, i32 } %63, ptr %15, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 8 %15, i64 12, i1 false)
  invoke void @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(12) %11)
          to label %65 unwind label %73

65:                                               ; preds = %64
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  br label %66

66:                                               ; preds = %65
  %67 = load i32, ptr %5, align 4, !tbaa !11
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %5, align 4, !tbaa !11
  br label %45, !llvm.loop !13

69:                                               ; preds = %55, %53, %51
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %9, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %10, align 4
  br label %77

73:                                               ; preds = %64, %62, %57
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %9, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #8
  br label %77

77:                                               ; preds = %73, %69
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  br label %266

78:                                               ; preds = %50
  %79 = call ptr @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  %80 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %79, ptr %80, align 8
  %81 = call ptr @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  %82 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  store ptr %81, ptr %82, align 8
  %83 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  %84 = load ptr, ptr %83, align 8
  %85 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  %86 = load ptr, ptr %85, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIiS2_IiiEESt6vectorIS4_SaIS4_EEEESt7greaterIS4_EEvT_SC_T0_(ptr %84, ptr %86)
          to label %87 unwind label %106

87:                                               ; preds = %78
  %88 = load i32, ptr %3, align 4, !tbaa !11
  %89 = zext i32 %88 to i64
  %90 = call ptr @llvm.stacksave.p0()
  store ptr %90, ptr %19, align 8
  %91 = alloca %"struct.std::pair.2", i64 %89, align 16
  store i64 %89, ptr %20, align 8
  %92 = icmp eq i64 %89, 0
  br i1 %92, label %100, label %93

93:                                               ; preds = %87
  %94 = getelementptr inbounds %"struct.std::pair.2", ptr %91, i64 %89
  br label %95

95:                                               ; preds = %97, %93
  %96 = phi ptr [ %91, %93 ], [ %98, %97 ]
  invoke void @_ZNSt4pairIS_IiiEiEC2IS0_iTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES4_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 4 dereferenceable(12) %96)
          to label %97 unwind label %106

97:                                               ; preds = %95
  %98 = getelementptr inbounds %"struct.std::pair.2", ptr %96, i64 1
  %99 = icmp eq ptr %98, %94
  br i1 %99, label %100, label %95

100:                                              ; preds = %97, %87
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  store i32 0, ptr %21, align 4, !tbaa !11
  br label %101

101:                                              ; preds = %137, %100
  %102 = load i32, ptr %21, align 4, !tbaa !11
  %103 = load i32, ptr %3, align 4, !tbaa !11
  %104 = icmp slt i32 %102, %103
  br i1 %104, label %110, label %105

105:                                              ; preds = %101
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %144

106:                                              ; preds = %144, %95, %78
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %9, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %10, align 4
  br label %266

110:                                              ; preds = %101
  %111 = load i32, ptr %21, align 4, !tbaa !11
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds %"struct.std::pair.2", ptr %91, i64 %112
  %114 = getelementptr inbounds %"struct.std::pair.2", ptr %113, i32 0, i32 0
  %115 = getelementptr inbounds %"struct.std::pair.0", ptr %114, i32 0, i32 0
  %116 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %115)
          to label %117 unwind label %140

117:                                              ; preds = %110
  %118 = load i32, ptr %21, align 4, !tbaa !11
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds %"struct.std::pair.2", ptr %91, i64 %119
  %121 = getelementptr inbounds %"struct.std::pair.2", ptr %120, i32 0, i32 0
  %122 = getelementptr inbounds %"struct.std::pair.0", ptr %121, i32 0, i32 1
  %123 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %116, ptr noundef nonnull align 4 dereferenceable(4) %122)
          to label %124 unwind label %140

124:                                              ; preds = %117
  %125 = load i32, ptr %21, align 4, !tbaa !11
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds %"struct.std::pair.2", ptr %91, i64 %126
  %128 = getelementptr inbounds %"struct.std::pair.2", ptr %127, i32 0, i32 0
  %129 = getelementptr inbounds %"struct.std::pair.0", ptr %128, i32 0, i32 1
  %130 = load i32, ptr %129, align 4, !tbaa !15
  %131 = add nsw i32 %130, -1
  store i32 %131, ptr %129, align 4, !tbaa !15
  %132 = load i32, ptr %21, align 4, !tbaa !11
  %133 = load i32, ptr %21, align 4, !tbaa !11
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds %"struct.std::pair.2", ptr %91, i64 %134
  %136 = getelementptr inbounds %"struct.std::pair.2", ptr %135, i32 0, i32 1
  store i32 %132, ptr %136, align 4, !tbaa !18
  br label %137

137:                                              ; preds = %124
  %138 = load i32, ptr %21, align 4, !tbaa !11
  %139 = add nsw i32 %138, 1
  store i32 %139, ptr %21, align 4, !tbaa !11
  br label %101, !llvm.loop !19

140:                                              ; preds = %117, %110
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %9, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %266

144:                                              ; preds = %105
  %145 = load i32, ptr %3, align 4, !tbaa !11
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds %"struct.std::pair.2", ptr %91, i64 %146
  invoke void @_ZSt4sortIPSt4pairIS0_IiiEiESt7greaterIS2_EEvT_S6_T0_(ptr noundef %91, ptr noundef %147)
          to label %148 unwind label %106

148:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 400000, ptr %23) #8
  call void @llvm.lifetime.start.p0(i64 400000, ptr %24) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  store i32 0, ptr %25, align 4, !tbaa !11
  br label %149

149:                                              ; preds = %162, %148
  %150 = load i32, ptr %25, align 4, !tbaa !11
  %151 = load i32, ptr %2, align 4, !tbaa !11
  %152 = icmp slt i32 %150, %151
  br i1 %152, label %154, label %153

153:                                              ; preds = %149
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %165

154:                                              ; preds = %149
  %155 = load i32, ptr %25, align 4, !tbaa !11
  %156 = load i32, ptr %25, align 4, !tbaa !11
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [100000 x i32], ptr %23, i64 0, i64 %157
  store i32 %155, ptr %158, align 4, !tbaa !11
  %159 = load i32, ptr %25, align 4, !tbaa !11
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [100000 x i32], ptr %24, i64 0, i64 %160
  store i32 1, ptr %161, align 4, !tbaa !11
  br label %162

162:                                              ; preds = %154
  %163 = load i32, ptr %25, align 4, !tbaa !11
  %164 = add nsw i32 %163, 1
  store i32 %164, ptr %25, align 4, !tbaa !11
  br label %149, !llvm.loop !20

165:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  store i32 0, ptr %26, align 4, !tbaa !11
  %166 = load i32, ptr %3, align 4, !tbaa !11
  %167 = zext i32 %166 to i64
  %168 = alloca i32, i64 %167, align 16
  store i64 %167, ptr %27, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  store i32 0, ptr %28, align 4, !tbaa !11
  br label %169

169:                                              ; preds = %237, %165
  %170 = load i32, ptr %28, align 4, !tbaa !11
  %171 = load i32, ptr %3, align 4, !tbaa !11
  %172 = icmp slt i32 %170, %171
  br i1 %172, label %174, label %173

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

174:                                              ; preds = %169
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  %175 = load i32, ptr %28, align 4, !tbaa !11
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds %"struct.std::pair.2", ptr %91, i64 %176
  %178 = getelementptr inbounds %"struct.std::pair.2", ptr %177, i32 0, i32 0
  %179 = getelementptr inbounds %"struct.std::pair.0", ptr %178, i32 0, i32 0
  %180 = load i32, ptr %179, align 4, !tbaa !21
  store i32 %180, ptr %29, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  %181 = load i32, ptr %28, align 4, !tbaa !11
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds %"struct.std::pair.2", ptr %91, i64 %182
  %184 = getelementptr inbounds %"struct.std::pair.2", ptr %183, i32 0, i32 0
  %185 = getelementptr inbounds %"struct.std::pair.0", ptr %184, i32 0, i32 1
  %186 = load i32, ptr %185, align 4, !tbaa !15
  store i32 %186, ptr %30, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #8
  %187 = load i32, ptr %28, align 4, !tbaa !11
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds %"struct.std::pair.2", ptr %91, i64 %188
  %190 = getelementptr inbounds %"struct.std::pair.2", ptr %189, i32 0, i32 1
  %191 = load i32, ptr %190, align 4, !tbaa !18
  store i32 %191, ptr %31, align 4, !tbaa !11
  br label %192

192:                                              ; preds = %219, %174
  %193 = load i32, ptr %26, align 4, !tbaa !11
  %194 = load i32, ptr %2, align 4, !tbaa !11
  %195 = icmp slt i32 %193, %194
  br i1 %195, label %196, label %204

196:                                              ; preds = %192
  %197 = load i32, ptr %26, align 4, !tbaa !11
  %198 = sext i32 %197 to i64
  %199 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %198) #8
  %200 = getelementptr inbounds %"struct.std::pair", ptr %199, i32 0, i32 0
  %201 = load i32, ptr %200, align 4, !tbaa !22
  %202 = load i32, ptr %29, align 4, !tbaa !11
  %203 = icmp sge i32 %201, %202
  br label %204

204:                                              ; preds = %196, %192
  %205 = phi i1 [ false, %192 ], [ %203, %196 ]
  br i1 %205, label %206, label %226

206:                                              ; preds = %204
  %207 = load i32, ptr %26, align 4, !tbaa !11
  %208 = sext i32 %207 to i64
  %209 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %208) #8
  %210 = getelementptr inbounds %"struct.std::pair", ptr %209, i32 0, i32 1
  %211 = getelementptr inbounds %"struct.std::pair.0", ptr %210, i32 0, i32 0
  %212 = load i32, ptr %211, align 4, !tbaa !24
  %213 = load i32, ptr %26, align 4, !tbaa !11
  %214 = sext i32 %213 to i64
  %215 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %214) #8
  %216 = getelementptr inbounds %"struct.std::pair", ptr %215, i32 0, i32 1
  %217 = getelementptr inbounds %"struct.std::pair.0", ptr %216, i32 0, i32 1
  %218 = load i32, ptr %217, align 4, !tbaa !25
  invoke void @_Z2uniiRA100000_iS0_(i32 noundef %212, i32 noundef %218, ptr noundef nonnull align 4 dereferenceable(400000) %23, ptr noundef nonnull align 4 dereferenceable(400000) %24)
          to label %219 unwind label %222

219:                                              ; preds = %206
  %220 = load i32, ptr %26, align 4, !tbaa !11
  %221 = add nsw i32 %220, 1
  store i32 %221, ptr %26, align 4, !tbaa !11
  br label %192, !llvm.loop !26

222:                                              ; preds = %226, %206
  %223 = landingpad { ptr, i32 }
          cleanup
  %224 = extractvalue { ptr, i32 } %223, 0
  store ptr %224, ptr %9, align 8
  %225 = extractvalue { ptr, i32 } %223, 1
  store i32 %225, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  br label %265

226:                                              ; preds = %204
  %227 = load i32, ptr %30, align 4, !tbaa !11
  %228 = invoke noundef i32 @_Z4findiRA100000_i(i32 noundef %227, ptr noundef nonnull align 4 dereferenceable(400000) %23)
          to label %229 unwind label %222

229:                                              ; preds = %226
  %230 = sext i32 %228 to i64
  %231 = getelementptr inbounds [100000 x i32], ptr %24, i64 0, i64 %230
  %232 = load i32, ptr %231, align 4, !tbaa !11
  %233 = sub nsw i32 %232, 1
  %234 = load i32, ptr %31, align 4, !tbaa !11
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds i32, ptr %168, i64 %235
  store i32 %233, ptr %236, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  br label %237

237:                                              ; preds = %229
  %238 = load i32, ptr %28, align 4, !tbaa !11
  %239 = add nsw i32 %238, 1
  store i32 %239, ptr %28, align 4, !tbaa !11
  br label %169, !llvm.loop !27

240:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #8
  store i32 0, ptr %32, align 4, !tbaa !11
  br label %241

241:                                              ; preds = %255, %240
  %242 = load i32, ptr %32, align 4, !tbaa !11
  %243 = load i32, ptr %3, align 4, !tbaa !11
  %244 = icmp slt i32 %242, %243
  br i1 %244, label %246, label %245

245:                                              ; preds = %241
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  br label %262

246:                                              ; preds = %241
  %247 = load i32, ptr %32, align 4, !tbaa !11
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds i32, ptr %168, i64 %248
  %250 = load i32, ptr %249, align 4, !tbaa !11
  %251 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %250)
          to label %252 unwind label %258

252:                                              ; preds = %246
  %253 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %251, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %254 unwind label %258

254:                                              ; preds = %252
  br label %255

255:                                              ; preds = %254
  %256 = load i32, ptr %32, align 4, !tbaa !11
  %257 = add nsw i32 %256, 1
  store i32 %257, ptr %32, align 4, !tbaa !11
  br label %241, !llvm.loop !28

258:                                              ; preds = %252, %246
  %259 = landingpad { ptr, i32 }
          cleanup
  %260 = extractvalue { ptr, i32 } %259, 0
  store ptr %260, ptr %9, align 8
  %261 = extractvalue { ptr, i32 } %259, 1
  store i32 %261, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  br label %265

262:                                              ; preds = %245
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 400000, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 400000, ptr %23) #8
  %263 = load ptr, ptr %19, align 8
  call void @llvm.stackrestore.p0(ptr %263)
  call void @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  %264 = load i32, ptr %1, align 4
  ret i32 %264

265:                                              ; preds = %258, %222
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 400000, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 400000, ptr %23) #8
  br label %266

266:                                              ; preds = %265, %140, %106, %77
  call void @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %267

267:                                              ; preds = %266
  %268 = load ptr, ptr %9, align 8
  %269 = load i32, ptr %10, align 4
  %270 = insertvalue { ptr, i32 } poison, ptr %268, 0
  %271 = insertvalue { ptr, i32 } %270, i32 %269, 1
  resume { ptr, i32 } %271
}

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i32 } @_ZSt9make_pairIRiSt4pairIiiEES1_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(8)) #0

; 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 #3 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #4

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

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #7

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 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 norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 #7 = { nocallback nofree nosync nounwind willreturn }
attributes #8 = { 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 4}
!16 = !{!"_ZTSSt4pairIS_IiiEiE", !17, i64 0, !12, i64 8}
!17 = !{!"_ZTSSt4pairIiiE", !12, i64 0, !12, i64 4}
!18 = !{!16, !12, i64 8}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = !{!16, !12, i64 0}
!22 = !{!23, !12, i64 0}
!23 = !{!"_ZTSSt4pairIiS_IiiEE", !12, i64 0, !17, i64 4}
!24 = !{!23, !12, i64 4}
!25 = !{!23, !12, i64 8}
!26 = distinct !{!26, !14}
!27 = distinct !{!27, !14}
!28 = distinct !{!28, !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, std::pair<int, int>>, std::allocator<std::pair<int, std::pair<int, int>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, std::pair<int, int>>, std::allocator<std::pair<int, std::pair<int, int>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, std::pair<int, int>>, std::allocator<std::pair<int, std::pair<int, int>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, std::pair<int, int>>, std::allocator<std::pair<int, std::pair<int, int>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { i32, %"struct.std::pair.0" }
%"struct.std::pair.0" = type { i32, i32 }
%"struct.std::pair.2" = type { %"struct.std::pair.0", 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 noundef i32 @_Z4findiRA100000_i(i32 noundef, ptr noundef nonnull align 4 dereferenceable(400000)) local_unnamed_addr #0

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

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

.lr.ph:                                           ; preds = %0
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 8
  br label %29

._crit_edge:                                      ; preds = %42, %0
  %27 = call ptr @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  %28 = call ptr @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIiS2_IiiEESt6vectorIS4_SaIS4_EEEESt7greaterIS4_EEvT_SC_T0_(ptr %27, ptr %28)
          to label %52 unwind label %.loopexit.split-lp53

29:                                               ; preds = %.lr.ph, %42
  %.03560 = phi i32 [ 0, %.lr.ph ], [ %43, %42 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  %30 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %31 unwind label %47

31:                                               ; preds = %29
  %32 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %33 unwind label %47

33:                                               ; preds = %31
  %34 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %35 unwind label %47

35:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  %36 = load i32, ptr %4, align 4, !tbaa !11
  %37 = add nsw i32 %36, -1
  store i32 %37, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  %38 = load i32, ptr %5, align 4, !tbaa !11
  %39 = add nsw i32 %38, -1
  store i32 %39, ptr %10, align 4, !tbaa !11
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %40 = invoke { i64, i32 } @_ZSt9make_pairIRiSt4pairIiiEES1_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(8) %8)
          to label %41 unwind label %49

41:                                               ; preds = %35
  %.fca.0.extract = extractvalue { i64, i32 } %40, 0
  %.fca.1.extract = extractvalue { i64, i32 } %40, 1
  store i64 %.fca.0.extract, ptr %7, align 8
  store i32 %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  invoke void @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(12) %7)
          to label %42 unwind label %49

42:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  %43 = add nuw nsw i32 %.03560, 1
  %44 = load i32, ptr %1, align 4, !tbaa !11
  %45 = add nsw i32 %44, -1
  %46 = icmp slt i32 %43, %45
  br i1 %46, label %29, label %._crit_edge, !llvm.loop !13

47:                                               ; preds = %33, %31, %29
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %51

49:                                               ; preds = %41, %35
  %50 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #7
  br label %51

51:                                               ; preds = %49, %47
  %.pn49 = phi { ptr, i32 } [ %50, %49 ], [ %48, %47 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  br label %144

52:                                               ; preds = %._crit_edge
  %53 = load i32, ptr %2, align 4, !tbaa !11
  %54 = zext i32 %53 to i64
  %55 = call ptr @llvm.stacksave.p0()
  %56 = alloca %"struct.std::pair.2", i64 %54, align 16
  %57 = icmp eq i32 %53, 0
  br i1 %57, label %.loopexit57, label %58

58:                                               ; preds = %52
  %59 = getelementptr inbounds %"struct.std::pair.2", ptr %56, i64 %54
  br label %60

60:                                               ; preds = %62, %58
  %61 = phi ptr [ %56, %58 ], [ %63, %62 ]
  invoke void @_ZNSt4pairIS_IiiEiEC2IS0_iTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES4_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 4 dereferenceable(12) %61)
          to label %62 unwind label %.loopexit52

62:                                               ; preds = %60
  %63 = getelementptr inbounds i8, ptr %61, i64 12
  %64 = icmp eq ptr %63, %59
  br i1 %64, label %.loopexit57, label %60

.loopexit57:                                      ; preds = %62, %52
  %65 = load i32, ptr %2, align 4, !tbaa !11
  %66 = icmp sgt i32 %65, 0
  br i1 %66, label %.lr.ph63, label %.loopexit57.._crit_edge64_crit_edge

.loopexit57.._crit_edge64_crit_edge:              ; preds = %.loopexit57
  %.pre = sext i32 %65 to i64
  br label %._crit_edge64

._crit_edge64:                                    ; preds = %73, %.loopexit57.._crit_edge64_crit_edge
  %.pre-phi = phi i64 [ %.pre, %.loopexit57.._crit_edge64_crit_edge ], [ %79, %73 ]
  %67 = getelementptr inbounds %"struct.std::pair.2", ptr %56, i64 %.pre-phi
  invoke void @_ZSt4sortIPSt4pairIS0_IiiEiESt7greaterIS2_EEvT_S6_T0_(ptr noundef nonnull %56, ptr noundef nonnull %67)
          to label %83 unwind label %.loopexit.split-lp53

.loopexit52:                                      ; preds = %60
  %lpad.loopexit54 = landingpad { ptr, i32 }
          cleanup
  br label %144

.loopexit.split-lp53:                             ; preds = %._crit_edge, %._crit_edge64
  %lpad.loopexit.split-lp55 = landingpad { ptr, i32 }
          cleanup
  br label %144

.lr.ph63:                                         ; preds = %.loopexit57, %73
  %indvars.iv = phi i64 [ %indvars.iv.next, %73 ], [ 0, %.loopexit57 ]
  %68 = getelementptr inbounds %"struct.std::pair.2", ptr %56, i64 %indvars.iv
  %69 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %68)
          to label %70 unwind label %81

70:                                               ; preds = %.lr.ph63
  %71 = getelementptr inbounds i8, ptr %68, i64 4
  %72 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %69, ptr noundef nonnull align 4 dereferenceable(4) %71)
          to label %73 unwind label %81

73:                                               ; preds = %70
  %74 = load i32, ptr %71, align 4, !tbaa !15
  %75 = add nsw i32 %74, -1
  store i32 %75, ptr %71, align 4, !tbaa !15
  %76 = getelementptr inbounds i8, ptr %68, i64 8
  %77 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %77, ptr %76, align 4, !tbaa !18
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %78 = load i32, ptr %2, align 4, !tbaa !11
  %79 = sext i32 %78 to i64
  %80 = icmp slt i64 %indvars.iv.next, %79
  br i1 %80, label %.lr.ph63, label %._crit_edge64, !llvm.loop !19

81:                                               ; preds = %70, %.lr.ph63
  %82 = landingpad { ptr, i32 }
          cleanup
  br label %144

83:                                               ; preds = %._crit_edge64
  call void @llvm.lifetime.start.p0(i64 400000, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 400000, ptr nonnull %12) #7
  %84 = load i32, ptr %1, align 4, !tbaa !11
  %85 = icmp sgt i32 %84, 0
  br i1 %85, label %.lr.ph67.preheader, label %._crit_edge68

.lr.ph67.preheader:                               ; preds = %83
  %wide.trip.count = zext nneg i32 %84 to i64
  %min.iters.check = icmp ult i32 %84, 8
  br i1 %min.iters.check, label %.lr.ph67.preheader101, label %vector.ph

.lr.ph67.preheader101:                            ; preds = %middle.block, %.lr.ph67.preheader
  %indvars.iv84.ph = phi i64 [ 0, %.lr.ph67.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph67

vector.ph:                                        ; preds = %.lr.ph67.preheader
  %n.vec = and i64 %wide.trip.count, 2147483640
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.ind = phi <4 x i32> [ <i32 0, i32 1, i32 2, i32 3>, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %step.add = add <4 x i32> %vec.ind, <i32 4, i32 4, i32 4, i32 4>
  %86 = getelementptr inbounds [100000 x i32], ptr %11, i64 0, i64 %index
  %87 = getelementptr inbounds i8, ptr %86, i64 16
  store <4 x i32> %vec.ind, ptr %86, align 16, !tbaa !11
  store <4 x i32> %step.add, ptr %87, align 16, !tbaa !11
  %88 = getelementptr inbounds [100000 x i32], ptr %12, i64 0, i64 %index
  %89 = getelementptr inbounds i8, ptr %88, i64 16
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %88, align 16, !tbaa !11
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %89, align 16, !tbaa !11
  %index.next = add nuw i64 %index, 8
  %vec.ind.next = add <4 x i32> %vec.ind, <i32 8, i32 8, i32 8, i32 8>
  %90 = icmp eq i64 %index.next, %n.vec
  br i1 %90, label %middle.block, label %vector.body, !llvm.loop !20

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge68, label %.lr.ph67.preheader101

._crit_edge68:                                    ; preds = %.lr.ph67, %middle.block, %83
  %91 = load i32, ptr %2, align 4, !tbaa !11
  %92 = zext i32 %91 to i64
  %93 = alloca i32, i64 %92, align 16
  %94 = icmp sgt i32 %91, 0
  br i1 %94, label %.lr.ph78, label %._crit_edge81

.lr.ph67:                                         ; preds = %.lr.ph67.preheader101, %.lr.ph67
  %indvars.iv84 = phi i64 [ %indvars.iv.next85, %.lr.ph67 ], [ %indvars.iv84.ph, %.lr.ph67.preheader101 ]
  %95 = getelementptr inbounds [100000 x i32], ptr %11, i64 0, i64 %indvars.iv84
  %96 = trunc nuw nsw i64 %indvars.iv84 to i32
  store i32 %96, ptr %95, align 4, !tbaa !11
  %97 = getelementptr inbounds [100000 x i32], ptr %12, i64 0, i64 %indvars.iv84
  store i32 1, ptr %97, align 4, !tbaa !11
  %indvars.iv.next85 = add nuw nsw i64 %indvars.iv84, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next85, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge68, label %.lr.ph67, !llvm.loop !23

.preheader:                                       ; preds = %122
  %98 = icmp sgt i32 %129, 0
  br i1 %98, label %.lr.ph80, label %._crit_edge81

.lr.ph78:                                         ; preds = %._crit_edge68, %122
  %indvars.iv90 = phi i64 [ %indvars.iv.next91, %122 ], [ 0, %._crit_edge68 ]
  %.04175 = phi i32 [ %.142.lcssa, %122 ], [ 0, %._crit_edge68 ]
  %99 = getelementptr inbounds %"struct.std::pair.2", ptr %56, i64 %indvars.iv90
  %100 = load i32, ptr %99, align 4, !tbaa !24
  %101 = getelementptr inbounds i8, ptr %99, i64 4
  %102 = load i32, ptr %101, align 4, !tbaa !15
  %103 = getelementptr inbounds i8, ptr %99, i64 8
  %104 = load i32, ptr %103, align 4, !tbaa !18
  %105 = load i32, ptr %1, align 4, !tbaa !11
  %106 = icmp slt i32 %.04175, %105
  br i1 %106, label %.lr.ph71.preheader, label %.critedge

.lr.ph71.preheader:                               ; preds = %.lr.ph78
  %107 = sext i32 %.04175 to i64
  br label %.lr.ph71

.lr.ph71:                                         ; preds = %.lr.ph71.preheader, %117
  %indvars.iv87 = phi i64 [ %107, %.lr.ph71.preheader ], [ %indvars.iv.next88, %117 ]
  %108 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv87) #7
  %109 = load i32, ptr %108, align 4, !tbaa !25
  %.not = icmp slt i32 %109, %100
  br i1 %.not, label %.critedge.loopexit, label %110

110:                                              ; preds = %.lr.ph71
  %111 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv87) #7
  %112 = getelementptr inbounds i8, ptr %111, i64 4
  %113 = load i32, ptr %112, align 4, !tbaa !27
  %114 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv87) #7
  %115 = getelementptr inbounds i8, ptr %114, i64 8
  %116 = load i32, ptr %115, align 4, !tbaa !28
  invoke void @_Z2uniiRA100000_iS0_(i32 noundef %113, i32 noundef %116, ptr noundef nonnull align 4 dereferenceable(400000) %11, ptr noundef nonnull align 4 dereferenceable(400000) %12)
          to label %117 unwind label %.loopexit

117:                                              ; preds = %110
  %indvars.iv.next88 = add nsw i64 %indvars.iv87, 1
  %118 = load i32, ptr %1, align 4, !tbaa !11
  %119 = sext i32 %118 to i64
  %120 = icmp slt i64 %indvars.iv.next88, %119
  br i1 %120, label %.lr.ph71, label %.critedge.loopexit, !llvm.loop !29

.loopexit:                                        ; preds = %110
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %143

.loopexit.split-lp:                               ; preds = %.critedge
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %143

.critedge.loopexit:                               ; preds = %117, %.lr.ph71
  %.142.lcssa.ph.in = phi i64 [ %indvars.iv87, %.lr.ph71 ], [ %indvars.iv.next88, %117 ]
  %.142.lcssa.ph = trunc i64 %.142.lcssa.ph.in to i32
  br label %.critedge

.critedge:                                        ; preds = %.critedge.loopexit, %.lr.ph78
  %.142.lcssa = phi i32 [ %.04175, %.lr.ph78 ], [ %.142.lcssa.ph, %.critedge.loopexit ]
  %121 = invoke noundef i32 @_Z4findiRA100000_i(i32 noundef %102, ptr noundef nonnull align 4 dereferenceable(400000) %11)
          to label %122 unwind label %.loopexit.split-lp

122:                                              ; preds = %.critedge
  %123 = sext i32 %121 to i64
  %124 = getelementptr inbounds [100000 x i32], ptr %12, i64 0, i64 %123
  %125 = load i32, ptr %124, align 4, !tbaa !11
  %126 = add nsw i32 %125, -1
  %127 = sext i32 %104 to i64
  %128 = getelementptr inbounds i32, ptr %93, i64 %127
  store i32 %126, ptr %128, align 4, !tbaa !11
  %indvars.iv.next91 = add nuw nsw i64 %indvars.iv90, 1
  %129 = load i32, ptr %2, align 4, !tbaa !11
  %130 = sext i32 %129 to i64
  %131 = icmp slt i64 %indvars.iv.next91, %130
  br i1 %131, label %.lr.ph78, label %.preheader, !llvm.loop !30

._crit_edge81:                                    ; preds = %137, %._crit_edge68, %.preheader
  call void @llvm.lifetime.end.p0(i64 400000, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 400000, ptr nonnull %11) #7
  call void @llvm.stackrestore.p0(ptr %55)
  call void @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret i32 0

.lr.ph80:                                         ; preds = %.preheader, %137
  %indvars.iv94 = phi i64 [ %indvars.iv.next95, %137 ], [ 0, %.preheader ]
  %132 = getelementptr inbounds i32, ptr %93, i64 %indvars.iv94
  %133 = load i32, ptr %132, align 4, !tbaa !11
  %134 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %133)
          to label %135 unwind label %141

135:                                              ; preds = %.lr.ph80
  %136 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %134, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %137 unwind label %141

137:                                              ; preds = %135
  %indvars.iv.next95 = add nuw nsw i64 %indvars.iv94, 1
  %138 = load i32, ptr %2, align 4, !tbaa !11
  %139 = sext i32 %138 to i64
  %140 = icmp slt i64 %indvars.iv.next95, %139
  br i1 %140, label %.lr.ph80, label %._crit_edge81, !llvm.loop !31

141:                                              ; preds = %135, %.lr.ph80
  %142 = landingpad { ptr, i32 }
          cleanup
  br label %143

143:                                              ; preds = %.loopexit, %.loopexit.split-lp, %141
  %.pn = phi { ptr, i32 } [ %142, %141 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 400000, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 400000, ptr nonnull %11) #7
  br label %144

144:                                              ; preds = %.loopexit52, %.loopexit.split-lp53, %143, %81, %51
  %.pn49.pn = phi { ptr, i32 } [ %.pn49, %51 ], [ %82, %81 ], [ %.pn, %143 ], [ %lpad.loopexit54, %.loopexit52 ], [ %lpad.loopexit.split-lp55, %.loopexit.split-lp53 ]
  call void @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn49.pn
}

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

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

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

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

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 #2

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i32 } @_ZSt9make_pairIRiSt4pairIiiEES1_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #0

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

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #6

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

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

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

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

; 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 nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 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 norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #7 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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 4}
!16 = !{!"_ZTSSt4pairIS_IiiEiE", !17, i64 0, !12, i64 8}
!17 = !{!"_ZTSSt4pairIiiE", !12, i64 0, !12, i64 4}
!18 = !{!16, !12, i64 8}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14, !21, !22}
!21 = !{!"llvm.loop.isvectorized", i32 1}
!22 = !{!"llvm.loop.unroll.runtime.disable"}
!23 = distinct !{!23, !14, !22, !21}
!24 = !{!16, !12, i64 0}
!25 = !{!26, !12, i64 0}
!26 = !{!"_ZTSSt4pairIiS_IiiEE", !12, i64 0, !17, i64 4}
!27 = !{!26, !12, i64 4}
!28 = !{!26, !12, i64 8}
!29 = distinct !{!29, !14}
!30 = distinct !{!30, !14}
!31 = distinct !{!31, !14}


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