; LLVM IR from eyangch/competitive-programming :: Codeforces/1710 (b)

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

%"struct.std::pair" = type { i64, i64 }
%"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.anon = type { i8 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::pair<long long, long long>, std::pair<long long, long long>, std::_Identity<std::pair<long long, long long>>, std::less<std::pair<long long, long long>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<long long, long long>, std::pair<long long, long long>, std::_Identity<std::pair<long long, long long>>, std::less<std::pair<long long, long long>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::pair.3" = type <{ %"struct.std::_Rb_tree_const_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.10" = type { ptr }

@T = external dso_local global i64, align 8
@N = external dso_local global i64, align 8
@M = external dso_local global i64, align 8
@I = external dso_local global [200000 x i64], align 16
@P = external dso_local global [200000 x %"struct.std::pair"], align 16
@ans = external dso_local global [200000 x i8], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i64, align 8
  %4 = alloca %class.anon, align 1
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca %"class.std::set", align 8
  %21 = alloca %"class.std::set", align 8
  %22 = alloca i64, align 8
  %23 = alloca %"struct.std::pair", align 8
  %24 = alloca i64, align 8
  %25 = alloca %"struct.std::pair.3", align 8
  %26 = alloca i64, align 8
  %27 = alloca i32, align 4
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  %30 = alloca %"class.std::vector.5", align 8
  %31 = alloca ptr, align 8
  %32 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %33 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %34 = alloca %"struct.std::pair", align 8
  %35 = alloca ptr, align 8
  %36 = alloca %"class.__gnu_cxx::__normal_iterator.10", align 8
  %37 = alloca %"class.__gnu_cxx::__normal_iterator.10", align 8
  %38 = alloca %"struct.std::pair", align 8
  %39 = alloca ptr, align 8
  %40 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %41 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %42 = alloca %"struct.std::pair", align 8
  %43 = alloca ptr, align 8
  %44 = alloca %"class.__gnu_cxx::__normal_iterator.10", align 8
  %45 = alloca %"class.__gnu_cxx::__normal_iterator.10", align 8
  %46 = alloca %"struct.std::pair", align 8
  %47 = alloca %"struct.std::pair", align 8
  %48 = alloca i64, align 8
  %49 = alloca %"struct.std::pair", align 8
  %50 = alloca i64, align 8
  %51 = alloca %"struct.std::pair.3", align 8
  %52 = alloca ptr, align 8
  %53 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %54 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %55 = alloca %"struct.std::pair", align 8
  %56 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  %57 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %58 = getelementptr i8, ptr %57, i64 -24
  %59 = load i64, ptr %58, align 8
  %60 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %59
  %61 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %60, ptr noundef null)
  %62 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %63 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @T)
  br label %64

64:                                               ; preds = %494, %0
  %65 = load i64, ptr @T, align 8, !tbaa !8
  %66 = add nsw i64 %65, -1
  store i64 %66, ptr @T, align 8, !tbaa !8
  %67 = icmp ne i64 %65, 0
  br i1 %67, label %68, label %501

68:                                               ; preds = %64
  %69 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @N)
  %70 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %69, ptr noundef nonnull align 8 dereferenceable(8) @M)
  %71 = load i64, ptr @N, align 8, !tbaa !8
  %72 = getelementptr inbounds i8, ptr @ans, i64 %71
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  store i32 0, ptr %2, align 4, !tbaa !11
  call void @_ZSt4fillIPbiEvT_S1_RKT0_(ptr noundef @ans, ptr noundef %72, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #8
  store i64 0, ptr %3, align 8, !tbaa !8
  br label %73

73:                                               ; preds = %87, %68
  %74 = load i64, ptr %3, align 8, !tbaa !8
  %75 = load i64, ptr @N, align 8, !tbaa !8
  %76 = icmp slt i64 %74, %75
  br i1 %76, label %78, label %77

77:                                               ; preds = %73
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #8
  br label %90

78:                                               ; preds = %73
  %79 = load i64, ptr %3, align 8, !tbaa !8
  %80 = getelementptr inbounds [200000 x %"struct.std::pair"], ptr @P, i64 0, i64 %79
  %81 = getelementptr inbounds %"struct.std::pair", ptr %80, i32 0, i32 0
  %82 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %81)
  %83 = load i64, ptr %3, align 8, !tbaa !8
  %84 = getelementptr inbounds [200000 x %"struct.std::pair"], ptr @P, i64 0, i64 %83
  %85 = getelementptr inbounds %"struct.std::pair", ptr %84, i32 0, i32 1
  %86 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %82, ptr noundef nonnull align 8 dereferenceable(8) %85)
  br label %87

87:                                               ; preds = %78
  %88 = load i64, ptr %3, align 8, !tbaa !8
  %89 = add nsw i64 %88, 1
  store i64 %89, ptr %3, align 8, !tbaa !8
  br label %73, !llvm.loop !13

90:                                               ; preds = %77
  %91 = load i64, ptr @N, align 8, !tbaa !8
  %92 = getelementptr inbounds i64, ptr @I, i64 %91
  call void @_ZSt4iotaIPxiEvT_S1_T0_(ptr noundef @I, ptr noundef %92, i32 noundef 0)
  %93 = load i64, ptr @N, align 8, !tbaa !8
  %94 = getelementptr inbounds i64, ptr @I, i64 %93
  call void @"_ZSt4sortIPxZ4mainE3$_0EvT_S2_T0_"(ptr noundef @I, ptr noundef %94)
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #8
  call void @_ZNSt6vectorIxSaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #8
  call void @_ZNSt6vectorIxSaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  store i64 0, ptr %7, align 8, !tbaa !8
  br label %95

95:                                               ; preds = %125, %90
  %96 = load i64, ptr %7, align 8, !tbaa !8
  %97 = load i64, ptr @N, align 8, !tbaa !8
  %98 = icmp slt i64 %96, %97
  br i1 %98, label %100, label %99

99:                                               ; preds = %95
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  br label %141

100:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %101 = load i64, ptr %7, align 8, !tbaa !8
  %102 = getelementptr inbounds [200000 x %"struct.std::pair"], ptr @P, i64 0, i64 %101
  %103 = getelementptr inbounds %"struct.std::pair", ptr %102, i32 0, i32 0
  %104 = load i64, ptr %103, align 16, !tbaa !15
  %105 = load i64, ptr %7, align 8, !tbaa !8
  %106 = getelementptr inbounds [200000 x %"struct.std::pair"], ptr @P, i64 0, i64 %105
  %107 = getelementptr inbounds %"struct.std::pair", ptr %106, i32 0, i32 1
  %108 = load i64, ptr %107, align 8, !tbaa !17
  %109 = sub nsw i64 %104, %108
  store i64 %109, ptr %8, align 8, !tbaa !8
  invoke void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %110 unwind label %128

110:                                              ; preds = %100
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  %111 = load i64, ptr %7, align 8, !tbaa !8
  %112 = getelementptr inbounds [200000 x %"struct.std::pair"], ptr @P, i64 0, i64 %111
  %113 = getelementptr inbounds %"struct.std::pair", ptr %112, i32 0, i32 0
  invoke void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(8) %113)
          to label %114 unwind label %132

114:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %115 = load i64, ptr %7, align 8, !tbaa !8
  %116 = getelementptr inbounds [200000 x %"struct.std::pair"], ptr @P, i64 0, i64 %115
  %117 = getelementptr inbounds %"struct.std::pair", ptr %116, i32 0, i32 0
  %118 = load i64, ptr %117, align 16, !tbaa !15
  %119 = load i64, ptr %7, align 8, !tbaa !8
  %120 = getelementptr inbounds [200000 x %"struct.std::pair"], ptr @P, i64 0, i64 %119
  %121 = getelementptr inbounds %"struct.std::pair", ptr %120, i32 0, i32 1
  %122 = load i64, ptr %121, align 8, !tbaa !17
  %123 = add nsw i64 %118, %122
  store i64 %123, ptr %11, align 8, !tbaa !8
  invoke void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %124 unwind label %136

124:                                              ; preds = %114
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %125

125:                                              ; preds = %124
  %126 = load i64, ptr %7, align 8, !tbaa !8
  %127 = add nsw i64 %126, 1
  store i64 %127, ptr %7, align 8, !tbaa !8
  br label %95, !llvm.loop !18

128:                                              ; preds = %100
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %9, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  br label %140

132:                                              ; preds = %110
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %9, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %10, align 4
  br label %140

136:                                              ; preds = %114
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %9, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %140

140:                                              ; preds = %136, %132, %128
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  br label %500

141:                                              ; preds = %99
  %142 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  %143 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  store ptr %142, ptr %143, align 8
  %144 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  %145 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %144, ptr %145, align 8
  %146 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  %147 = load ptr, ptr %146, align 8
  %148 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  %149 = load ptr, ptr %148, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEEEvT_S7_(ptr %147, ptr %149)
          to label %150 unwind label %165

150:                                              ; preds = %141
  %151 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  %152 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %151, ptr %152, align 8
  %153 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  %154 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %153, ptr %154, align 8
  %155 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  %156 = load ptr, ptr %155, align 8
  %157 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  %158 = load ptr, ptr %157, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEEEvT_S7_(ptr %156, ptr %158)
          to label %159 unwind label %165

159:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  store i64 0, ptr %16, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  store i64 0, ptr %17, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  store i64 0, ptr %18, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  store i64 0, ptr %19, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 48, ptr %20) #8
  call void @_ZNSt3setISt4pairIxxESt4lessIS1_ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %20) #8
  call void @llvm.lifetime.start.p0(i64 48, ptr %21) #8
  call void @_ZNSt3setISt4pairIxxESt4lessIS1_ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %21) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  store i64 0, ptr %22, align 8, !tbaa !8
  br label %160

160:                                              ; preds = %186, %159
  %161 = load i64, ptr %22, align 8, !tbaa !8
  %162 = load i64, ptr @N, align 8, !tbaa !8
  %163 = icmp slt i64 %161, %162
  br i1 %163, label %169, label %164

164:                                              ; preds = %160
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %193

165:                                              ; preds = %150, %141
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %9, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %10, align 4
  br label %500

169:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %170 = load i64, ptr %22, align 8, !tbaa !8
  %171 = getelementptr inbounds [200000 x %"struct.std::pair"], ptr @P, i64 0, i64 %170
  %172 = getelementptr inbounds %"struct.std::pair", ptr %171, i32 0, i32 1
  %173 = load i64, ptr %172, align 8, !tbaa !17
  %174 = load i64, ptr %22, align 8, !tbaa !8
  %175 = getelementptr inbounds [200000 x %"struct.std::pair"], ptr @P, i64 0, i64 %174
  %176 = getelementptr inbounds %"struct.std::pair", ptr %175, i32 0, i32 0
  %177 = load i64, ptr %176, align 16, !tbaa !15
  %178 = sub nsw i64 %173, %177
  store i64 %178, ptr %24, align 8, !tbaa !8
  invoke void @_ZNSt4pairIxxEC2IxRxTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %179 unwind label %189

179:                                              ; preds = %169
  %180 = invoke { ptr, i8 } @_ZNSt3setISt4pairIxxESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %20, ptr noundef nonnull align 8 dereferenceable(16) %23)
          to label %181 unwind label %189

181:                                              ; preds = %179
  %182 = getelementptr inbounds { ptr, i8 }, ptr %25, i32 0, i32 0
  %183 = extractvalue { ptr, i8 } %180, 0
  store ptr %183, ptr %182, align 8
  %184 = getelementptr inbounds { ptr, i8 }, ptr %25, i32 0, i32 1
  %185 = extractvalue { ptr, i8 } %180, 1
  store i8 %185, ptr %184, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #8
  br label %186

186:                                              ; preds = %181
  %187 = load i64, ptr %22, align 8, !tbaa !8
  %188 = add nsw i64 %187, 1
  store i64 %188, ptr %22, align 8, !tbaa !8
  br label %160, !llvm.loop !19

189:                                              ; preds = %179, %169
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %9, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %499

193:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  store i64 0, ptr %26, align 8, !tbaa !8
  br label %194

194:                                              ; preds = %449, %193
  %195 = load i64, ptr %26, align 8, !tbaa !8
  %196 = load i64, ptr @N, align 8, !tbaa !8
  %197 = icmp slt i64 %195, %196
  br i1 %197, label %199, label %198

198:                                              ; preds = %194
  store i32 13, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  br label %455

199:                                              ; preds = %194
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  %200 = load i64, ptr %26, align 8, !tbaa !8
  %201 = getelementptr inbounds [200000 x i64], ptr @I, i64 0, i64 %200
  %202 = load i64, ptr %201, align 8, !tbaa !8
  store i64 %202, ptr %28, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  store i64 0, ptr %29, align 8, !tbaa !8
  %203 = load i64, ptr %26, align 8, !tbaa !8
  %204 = icmp sgt i64 %203, 0
  br i1 %204, label %205, label %218

205:                                              ; preds = %199
  %206 = load i64, ptr %28, align 8, !tbaa !8
  %207 = getelementptr inbounds [200000 x %"struct.std::pair"], ptr @P, i64 0, i64 %206
  %208 = getelementptr inbounds %"struct.std::pair", ptr %207, i32 0, i32 0
  %209 = load i64, ptr %208, align 16, !tbaa !15
  %210 = load i64, ptr %26, align 8, !tbaa !8
  %211 = sub nsw i64 %210, 1
  %212 = getelementptr inbounds [200000 x i64], ptr @I, i64 0, i64 %211
  %213 = load i64, ptr %212, align 8, !tbaa !8
  %214 = getelementptr inbounds [200000 x %"struct.std::pair"], ptr @P, i64 0, i64 %213
  %215 = getelementptr inbounds %"struct.std::pair", ptr %214, i32 0, i32 0
  %216 = load i64, ptr %215, align 16, !tbaa !15
  %217 = sub nsw i64 %209, %216
  store i64 %217, ptr %29, align 8, !tbaa !8
  br label %218

218:                                              ; preds = %205, %199
  %219 = load i64, ptr %18, align 8, !tbaa !8
  %220 = load i64, ptr %29, align 8, !tbaa !8
  %221 = mul nsw i64 %219, %220
  %222 = load i64, ptr %19, align 8, !tbaa !8
  %223 = add nsw i64 %222, %221
  store i64 %223, ptr %19, align 8, !tbaa !8
  br label %224

224:                                              ; preds = %239, %218
  %225 = load i64, ptr %16, align 8, !tbaa !8
  %226 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  %227 = icmp slt i64 %225, %226
  br i1 %227, label %228, label %237

228:                                              ; preds = %224
  %229 = load i64, ptr %16, align 8, !tbaa !8
  %230 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %229) #8
  %231 = load i64, ptr %230, align 8, !tbaa !8
  %232 = load i64, ptr %28, align 8, !tbaa !8
  %233 = getelementptr inbounds [200000 x %"struct.std::pair"], ptr @P, i64 0, i64 %232
  %234 = getelementptr inbounds %"struct.std::pair", ptr %233, i32 0, i32 0
  %235 = load i64, ptr %234, align 16, !tbaa !15
  %236 = icmp slt i64 %231, %235
  br label %237

237:                                              ; preds = %228, %224
  %238 = phi i1 [ false, %224 ], [ %236, %228 ]
  br i1 %238, label %239, label %254

239:                                              ; preds = %237
  %240 = load i64, ptr %18, align 8, !tbaa !8
  %241 = add nsw i64 %240, 1
  store i64 %241, ptr %18, align 8, !tbaa !8
  %242 = load i64, ptr %28, align 8, !tbaa !8
  %243 = getelementptr inbounds [200000 x %"struct.std::pair"], ptr @P, i64 0, i64 %242
  %244 = getelementptr inbounds %"struct.std::pair", ptr %243, i32 0, i32 0
  %245 = load i64, ptr %244, align 16, !tbaa !15
  %246 = load i64, ptr %16, align 8, !tbaa !8
  %247 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %246) #8
  %248 = load i64, ptr %247, align 8, !tbaa !8
  %249 = sub nsw i64 %245, %248
  %250 = load i64, ptr %19, align 8, !tbaa !8
  %251 = add nsw i64 %250, %249
  store i64 %251, ptr %19, align 8, !tbaa !8
  %252 = load i64, ptr %16, align 8, !tbaa !8
  %253 = add nsw i64 %252, 1
  store i64 %253, ptr %16, align 8, !tbaa !8
  br label %224, !llvm.loop !20

254:                                              ; preds = %237
  br label %255

255:                                              ; preds = %270, %254
  %256 = load i64, ptr %17, align 8, !tbaa !8
  %257 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  %258 = icmp slt i64 %256, %257
  br i1 %258, label %259, label %268

259:                                              ; preds = %255
  %260 = load i64, ptr %17, align 8, !tbaa !8
  %261 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %260) #8
  %262 = load i64, ptr %261, align 8, !tbaa !8
  %263 = load i64, ptr %28, align 8, !tbaa !8
  %264 = getelementptr inbounds [200000 x %"struct.std::pair"], ptr @P, i64 0, i64 %263
  %265 = getelementptr inbounds %"struct.std::pair", ptr %264, i32 0, i32 0
  %266 = load i64, ptr %265, align 16, !tbaa !15
  %267 = icmp slt i64 %262, %266
  br label %268

268:                                              ; preds = %259, %255
  %269 = phi i1 [ false, %255 ], [ %267, %259 ]
  br i1 %269, label %270, label %286

270:                                              ; preds = %268
  %271 = load i64, ptr %18, align 8, !tbaa !8
  %272 = sub nsw i64 %271, 2
  store i64 %272, ptr %18, align 8, !tbaa !8
  %273 = load i64, ptr %28, align 8, !tbaa !8
  %274 = getelementptr inbounds [200000 x %"struct.std::pair"], ptr @P, i64 0, i64 %273
  %275 = getelementptr inbounds %"struct.std::pair", ptr %274, i32 0, i32 0
  %276 = load i64, ptr %275, align 16, !tbaa !15
  %277 = load i64, ptr %17, align 8, !tbaa !8
  %278 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %277) #8
  %279 = load i64, ptr %278, align 8, !tbaa !8
  %280 = sub nsw i64 %276, %279
  %281 = mul nsw i64 2, %280
  %282 = load i64, ptr %19, align 8, !tbaa !8
  %283 = sub nsw i64 %282, %281
  store i64 %283, ptr %19, align 8, !tbaa !8
  %284 = load i64, ptr %17, align 8, !tbaa !8
  %285 = add nsw i64 %284, 1
  store i64 %285, ptr %17, align 8, !tbaa !8
  br label %255, !llvm.loop !21

286:                                              ; preds = %268
  call void @llvm.lifetime.start.p0(i64 24, ptr %30) #8
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #8
  %287 = load i64, ptr %19, align 8, !tbaa !8
  %288 = load i64, ptr @M, align 8, !tbaa !8
  %289 = icmp sgt i64 %287, %288
  br i1 %289, label %290, label %403

290:                                              ; preds = %286
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  store ptr %20, ptr %31, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  %291 = load ptr, ptr %31, align 8, !tbaa !22
  %292 = call ptr @_ZNKSt3setISt4pairIxxESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %291) #8
  %293 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %32, i32 0, i32 0
  store ptr %292, ptr %293, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #8
  %294 = load ptr, ptr %31, align 8, !tbaa !22
  %295 = call ptr @_ZNKSt3setISt4pairIxxESt4lessIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %294) #8
  %296 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %33, i32 0, i32 0
  store ptr %295, ptr %296, align 8
  br label %297

297:                                              ; preds = %319, %290
  %298 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIxxEES4_(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 8 dereferenceable(8) %33) #8
  br i1 %298, label %300, label %299

299:                                              ; preds = %297
  store i32 20, ptr %27, align 4
  br label %325

300:                                              ; preds = %297
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #8
  %301 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIxxEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %32) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %34, ptr align 8 %301, i64 16, i1 false)
  %302 = load i64, ptr %19, align 8, !tbaa !8
  %303 = getelementptr inbounds %"struct.std::pair", ptr %34, i32 0, i32 0
  %304 = load i64, ptr %303, align 8, !tbaa !15
  %305 = load i64, ptr %28, align 8, !tbaa !8
  %306 = getelementptr inbounds [200000 x %"struct.std::pair"], ptr @P, i64 0, i64 %305
  %307 = getelementptr inbounds %"struct.std::pair", ptr %306, i32 0, i32 0
  %308 = load i64, ptr %307, align 16, !tbaa !15
  %309 = add nsw i64 %304, %308
  %310 = sub nsw i64 %302, %309
  %311 = load i64, ptr @M, align 8, !tbaa !8
  %312 = icmp sle i64 %310, %311
  br i1 %312, label %313, label %314

313:                                              ; preds = %300
  store i32 20, ptr %27, align 4
  br label %316

314:                                              ; preds = %300
  invoke void @_ZNSt6vectorISt4pairIxxESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 8 dereferenceable(16) %34)
          to label %315 unwind label %321

315:                                              ; preds = %314
  store i32 0, ptr %27, align 4
  br label %316

316:                                              ; preds = %315, %313
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #8
  %317 = load i32, ptr %27, align 4
  switch i32 %317, label %325 [
    i32 0, label %318
  ]

318:                                              ; preds = %316
  br label %319

319:                                              ; preds = %318
  %320 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIxxEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %32) #8
  br label %297

321:                                              ; preds = %314
  %322 = landingpad { ptr, i32 }
          cleanup
  %323 = extractvalue { ptr, i32 } %322, 0
  store ptr %323, ptr %9, align 8
  %324 = extractvalue { ptr, i32 } %322, 1
  store i32 %324, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  br label %454

325:                                              ; preds = %316, %299
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  br label %326

326:                                              ; preds = %325
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #8
  store ptr %30, ptr %35, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #8
  %327 = load ptr, ptr %35, align 8, !tbaa !22
  %328 = call ptr @_ZNSt6vectorISt4pairIxxESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %327) #8
  %329 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.10", ptr %36, i32 0, i32 0
  store ptr %328, ptr %329, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #8
  %330 = load ptr, ptr %35, align 8, !tbaa !22
  %331 = call ptr @_ZNSt6vectorISt4pairIxxESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %330) #8
  %332 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.10", ptr %37, i32 0, i32 0
  store ptr %331, ptr %332, align 8
  br label %333

333:                                              ; preds = %340, %326
  %334 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIxxESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull align 8 dereferenceable(8) %37) #8
  br i1 %334, label %336, label %335

335:                                              ; preds = %333
  store i32 22, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #8
  br label %346

336:                                              ; preds = %333
  call void @llvm.lifetime.start.p0(i64 16, ptr %38) #8
  %337 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIxxESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %36) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %38, ptr align 8 %337, i64 16, i1 false)
  %338 = invoke noundef i64 @_ZNSt3setISt4pairIxxESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %20, ptr noundef nonnull align 8 dereferenceable(16) %38)
          to label %339 unwind label %342

339:                                              ; preds = %336
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #8
  br label %340

340:                                              ; preds = %339
  %341 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIxxESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %36) #8
  br label %333

342:                                              ; preds = %336
  %343 = landingpad { ptr, i32 }
          cleanup
  %344 = extractvalue { ptr, i32 } %343, 0
  store ptr %344, ptr %9, align 8
  %345 = extractvalue { ptr, i32 } %343, 1
  store i32 %345, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #8
  br label %454

346:                                              ; preds = %335
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #8
  store ptr %21, ptr %39, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #8
  %347 = load ptr, ptr %39, align 8, !tbaa !22
  %348 = call ptr @_ZNKSt3setISt4pairIxxESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %347) #8
  %349 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %40, i32 0, i32 0
  store ptr %348, ptr %349, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #8
  %350 = load ptr, ptr %39, align 8, !tbaa !22
  %351 = call ptr @_ZNKSt3setISt4pairIxxESt4lessIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %350) #8
  %352 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %41, i32 0, i32 0
  store ptr %351, ptr %352, align 8
  br label %353

353:                                              ; preds = %375, %346
  %354 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIxxEES4_(ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef nonnull align 8 dereferenceable(8) %41) #8
  br i1 %354, label %356, label %355

355:                                              ; preds = %353
  store i32 24, ptr %27, align 4
  br label %381

356:                                              ; preds = %353
  call void @llvm.lifetime.start.p0(i64 16, ptr %42) #8
  %357 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIxxEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %40) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %42, ptr align 8 %357, i64 16, i1 false)
  %358 = load i64, ptr %19, align 8, !tbaa !8
  %359 = getelementptr inbounds %"struct.std::pair", ptr %42, i32 0, i32 0
  %360 = load i64, ptr %359, align 8, !tbaa !15
  %361 = load i64, ptr %28, align 8, !tbaa !8
  %362 = getelementptr inbounds [200000 x %"struct.std::pair"], ptr @P, i64 0, i64 %361
  %363 = getelementptr inbounds %"struct.std::pair", ptr %362, i32 0, i32 0
  %364 = load i64, ptr %363, align 16, !tbaa !15
  %365 = sub nsw i64 %360, %364
  %366 = sub nsw i64 %358, %365
  %367 = load i64, ptr @M, align 8, !tbaa !8
  %368 = icmp sle i64 %366, %367
  br i1 %368, label %369, label %370

369:                                              ; preds = %356
  store i32 24, ptr %27, align 4
  br label %372

370:                                              ; preds = %356
  invoke void @_ZNSt6vectorISt4pairIxxESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 8 dereferenceable(16) %42)
          to label %371 unwind label %377

371:                                              ; preds = %370
  store i32 0, ptr %27, align 4
  br label %372

372:                                              ; preds = %371, %369
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #8
  %373 = load i32, ptr %27, align 4
  switch i32 %373, label %381 [
    i32 0, label %374
  ]

374:                                              ; preds = %372
  br label %375

375:                                              ; preds = %374
  %376 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIxxEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %40) #8
  br label %353

377:                                              ; preds = %370
  %378 = landingpad { ptr, i32 }
          cleanup
  %379 = extractvalue { ptr, i32 } %378, 0
  store ptr %379, ptr %9, align 8
  %380 = extractvalue { ptr, i32 } %378, 1
  store i32 %380, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  br label %454

381:                                              ; preds = %372, %355
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  br label %382

382:                                              ; preds = %381
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #8
  store ptr %30, ptr %43, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #8
  %383 = load ptr, ptr %43, align 8, !tbaa !22
  %384 = call ptr @_ZNSt6vectorISt4pairIxxESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %383) #8
  %385 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.10", ptr %44, i32 0, i32 0
  store ptr %384, ptr %385, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #8
  %386 = load ptr, ptr %43, align 8, !tbaa !22
  %387 = call ptr @_ZNSt6vectorISt4pairIxxESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %386) #8
  %388 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.10", ptr %45, i32 0, i32 0
  store ptr %387, ptr %388, align 8
  br label %389

389:                                              ; preds = %396, %382
  %390 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIxxESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef nonnull align 8 dereferenceable(8) %45) #8
  br i1 %390, label %392, label %391

391:                                              ; preds = %389
  store i32 26, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #8
  br label %402

392:                                              ; preds = %389
  call void @llvm.lifetime.start.p0(i64 16, ptr %46) #8
  %393 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIxxESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %44) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %46, ptr align 8 %393, i64 16, i1 false)
  %394 = invoke noundef i64 @_ZNSt3setISt4pairIxxESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %21, ptr noundef nonnull align 8 dereferenceable(16) %46)
          to label %395 unwind label %398

395:                                              ; preds = %392
  call void @llvm.lifetime.end.p0(i64 16, ptr %46) #8
  br label %396

396:                                              ; preds = %395
  %397 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIxxESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %44) #8
  br label %389

398:                                              ; preds = %392
  %399 = landingpad { ptr, i32 }
          cleanup
  %400 = extractvalue { ptr, i32 } %399, 0
  store ptr %400, ptr %9, align 8
  %401 = extractvalue { ptr, i32 } %399, 1
  store i32 %401, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %46) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #8
  br label %454

402:                                              ; preds = %391
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #8
  br label %403

403:                                              ; preds = %402, %286
  call void @llvm.lifetime.start.p0(i64 16, ptr %47) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #8
  %404 = load i64, ptr %28, align 8, !tbaa !8
  %405 = getelementptr inbounds [200000 x %"struct.std::pair"], ptr @P, i64 0, i64 %404
  %406 = getelementptr inbounds %"struct.std::pair", ptr %405, i32 0, i32 1
  %407 = load i64, ptr %406, align 8, !tbaa !17
  %408 = load i64, ptr %28, align 8, !tbaa !8
  %409 = getelementptr inbounds [200000 x %"struct.std::pair"], ptr @P, i64 0, i64 %408
  %410 = getelementptr inbounds %"struct.std::pair", ptr %409, i32 0, i32 0
  %411 = load i64, ptr %410, align 16, !tbaa !15
  %412 = sub nsw i64 %407, %411
  store i64 %412, ptr %48, align 8, !tbaa !8
  invoke void @_ZNSt4pairIxxEC2IxRxTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %47, ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef nonnull align 8 dereferenceable(8) %28)
          to label %413 unwind label %436

413:                                              ; preds = %403
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %49) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #8
  %414 = load i64, ptr %28, align 8, !tbaa !8
  %415 = getelementptr inbounds [200000 x %"struct.std::pair"], ptr @P, i64 0, i64 %414
  %416 = getelementptr inbounds %"struct.std::pair", ptr %415, i32 0, i32 1
  %417 = load i64, ptr %416, align 8, !tbaa !17
  %418 = load i64, ptr %28, align 8, !tbaa !8
  %419 = getelementptr inbounds [200000 x %"struct.std::pair"], ptr @P, i64 0, i64 %418
  %420 = getelementptr inbounds %"struct.std::pair", ptr %419, i32 0, i32 0
  %421 = load i64, ptr %420, align 16, !tbaa !15
  %422 = add nsw i64 %417, %421
  store i64 %422, ptr %50, align 8, !tbaa !8
  invoke void @_ZNSt4pairIxxEC2IxRxTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %49, ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef nonnull align 8 dereferenceable(8) %28)
          to label %423 unwind label %440

423:                                              ; preds = %413
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #8
  %424 = invoke noundef i64 @_ZNKSt3setISt4pairIxxESt4lessIS1_ESaIS1_EE5countERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %20, ptr noundef nonnull align 8 dereferenceable(16) %47)
          to label %425 unwind label %444

425:                                              ; preds = %423
  %426 = icmp ne i64 %424, 0
  br i1 %426, label %427, label %448

427:                                              ; preds = %425
  %428 = invoke noundef i64 @_ZNSt3setISt4pairIxxESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %20, ptr noundef nonnull align 8 dereferenceable(16) %47)
          to label %429 unwind label %444

429:                                              ; preds = %427
  %430 = invoke { ptr, i8 } @_ZNSt3setISt4pairIxxESt4lessIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %21, ptr noundef nonnull align 8 dereferenceable(16) %49)
          to label %431 unwind label %444

431:                                              ; preds = %429
  %432 = getelementptr inbounds { ptr, i8 }, ptr %51, i32 0, i32 0
  %433 = extractvalue { ptr, i8 } %430, 0
  store ptr %433, ptr %432, align 8
  %434 = getelementptr inbounds { ptr, i8 }, ptr %51, i32 0, i32 1
  %435 = extractvalue { ptr, i8 } %430, 1
  store i8 %435, ptr %434, align 8
  br label %448

436:                                              ; preds = %403
  %437 = landingpad { ptr, i32 }
          cleanup
  %438 = extractvalue { ptr, i32 } %437, 0
  store ptr %438, ptr %9, align 8
  %439 = extractvalue { ptr, i32 } %437, 1
  store i32 %439, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #8
  br label %453

440:                                              ; preds = %413
  %441 = landingpad { ptr, i32 }
          cleanup
  %442 = extractvalue { ptr, i32 } %441, 0
  store ptr %442, ptr %9, align 8
  %443 = extractvalue { ptr, i32 } %441, 1
  store i32 %443, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #8
  br label %452

444:                                              ; preds = %429, %427, %423
  %445 = landingpad { ptr, i32 }
          cleanup
  %446 = extractvalue { ptr, i32 } %445, 0
  store ptr %446, ptr %9, align 8
  %447 = extractvalue { ptr, i32 } %445, 1
  store i32 %447, ptr %10, align 4
  br label %452

448:                                              ; preds = %431, %425
  call void @llvm.lifetime.end.p0(i64 16, ptr %49) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %47) #8
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  br label %449

449:                                              ; preds = %448
  %450 = load i64, ptr %26, align 8, !tbaa !8
  %451 = add nsw i64 %450, 1
  store i64 %451, ptr %26, align 8, !tbaa !8
  br label %194, !llvm.loop !24

452:                                              ; preds = %444, %440
  call void @llvm.lifetime.end.p0(i64 16, ptr %49) #8
  br label %453

453:                                              ; preds = %452, %436
  call void @llvm.lifetime.end.p0(i64 16, ptr %47) #8
  br label %454

454:                                              ; preds = %453, %398, %377, %342, %321
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  br label %499

455:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #8
  store ptr %21, ptr %52, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #8
  %456 = load ptr, ptr %52, align 8, !tbaa !22
  %457 = call ptr @_ZNKSt3setISt4pairIxxESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %456) #8
  %458 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %53, i32 0, i32 0
  store ptr %457, ptr %458, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #8
  %459 = load ptr, ptr %52, align 8, !tbaa !22
  %460 = call ptr @_ZNKSt3setISt4pairIxxESt4lessIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %459) #8
  %461 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %54, i32 0, i32 0
  store ptr %460, ptr %461, align 8
  br label %462

462:                                              ; preds = %470, %455
  %463 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIxxEES4_(ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef nonnull align 8 dereferenceable(8) %54) #8
  br i1 %463, label %465, label %464

464:                                              ; preds = %462
  store i32 28, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #8
  br label %472

465:                                              ; preds = %462
  call void @llvm.lifetime.start.p0(i64 16, ptr %55) #8
  %466 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIxxEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %53) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %55, ptr align 8 %466, i64 16, i1 false)
  %467 = getelementptr inbounds %"struct.std::pair", ptr %55, i32 0, i32 1
  %468 = load i64, ptr %467, align 8, !tbaa !17
  %469 = getelementptr inbounds [200000 x i8], ptr @ans, i64 0, i64 %468
  store i8 1, ptr %469, align 1, !tbaa !25
  call void @llvm.lifetime.end.p0(i64 16, ptr %55) #8
  br label %470

470:                                              ; preds = %465
  %471 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIxxEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %53) #8
  br label %462

472:                                              ; preds = %464
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #8
  store i64 0, ptr %56, align 8, !tbaa !8
  br label %473

473:                                              ; preds = %485, %472
  %474 = load i64, ptr %56, align 8, !tbaa !8
  %475 = load i64, ptr @N, align 8, !tbaa !8
  %476 = icmp slt i64 %474, %475
  br i1 %476, label %478, label %477

477:                                              ; preds = %473
  store i32 30, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #8
  br label %492

478:                                              ; preds = %473
  %479 = load i64, ptr %56, align 8, !tbaa !8
  %480 = getelementptr inbounds [200000 x i8], ptr @ans, i64 0, i64 %479
  %481 = load i8, ptr %480, align 1, !tbaa !25, !range !27, !noundef !28
  %482 = trunc i8 %481 to i1
  %483 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEb(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i1 noundef zeroext %482)
          to label %484 unwind label %488

484:                                              ; preds = %478
  br label %485

485:                                              ; preds = %484
  %486 = load i64, ptr %56, align 8, !tbaa !8
  %487 = add nsw i64 %486, 1
  store i64 %487, ptr %56, align 8, !tbaa !8
  br label %473, !llvm.loop !29

488:                                              ; preds = %478
  %489 = landingpad { ptr, i32 }
          cleanup
  %490 = extractvalue { ptr, i32 } %489, 0
  store ptr %490, ptr %9, align 8
  %491 = extractvalue { ptr, i32 } %489, 1
  store i32 %491, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #8
  br label %499

492:                                              ; preds = %477
  %493 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 10)
          to label %494 unwind label %495

494:                                              ; preds = %492
  call void @_ZNSt3setISt4pairIxxESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %21) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %21) #8
  call void @_ZNSt3setISt4pairIxxESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %20) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #8
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #8
  br label %64, !llvm.loop !30

495:                                              ; preds = %492
  %496 = landingpad { ptr, i32 }
          cleanup
  %497 = extractvalue { ptr, i32 } %496, 0
  store ptr %497, ptr %9, align 8
  %498 = extractvalue { ptr, i32 } %496, 1
  store i32 %498, ptr %10, align 4
  br label %499

499:                                              ; preds = %495, %488, %454, %189
  call void @_ZNSt3setISt4pairIxxESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %21) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %21) #8
  call void @_ZNSt3setISt4pairIxxESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %20) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %500

500:                                              ; preds = %499, %165, %140
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #8
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #8
  br label %503

501:                                              ; preds = %64
  %502 = load i32, ptr %1, align 4
  ret i32 %502

503:                                              ; preds = %500
  %504 = load ptr, ptr %9, align 8
  %505 = load i32, ptr %10, align 4
  %506 = insertvalue { ptr, i32 } poison, ptr %504, 0
  %507 = insertvalue { ptr, i32 } %506, i32 %505, 1
  resume { ptr, i32 } %507
}

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPbiEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) #4

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZSt4iotaIPxiEvT_S1_T0_(ptr noundef, ptr noundef, i32 noundef) #1

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIPxZ4mainE3$_0EvT_S2_T0_"(ptr noundef, ptr noundef) #4

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setISt4pairIxxESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNSt3setISt4pairIxxESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNKSt3setISt4pairIxxESt4lessIS1_ESaIS1_EE5countERKS1_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setISt4pairIxxESt4lessIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEb(ptr noundef nonnull align 8 dereferenceable(8), i1 noundef zeroext) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #4

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

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

attributes #0 = { 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 #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = !{!"long long", !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, !9, i64 0}
!16 = !{!"_ZTSSt4pairIxxE", !9, i64 0, !9, i64 8}
!17 = !{!16, !9, i64 8}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}
!22 = !{!23, !23, i64 0}
!23 = !{!"any pointer", !10, i64 0}
!24 = distinct !{!24, !14}
!25 = !{!26, !26, i64 0}
!26 = !{!"bool", !10, i64 0}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = distinct !{!29, !14}
!30 = distinct !{!30, !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"

%"struct.std::pair" = type { i64, i64 }
%"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<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::pair<long long, long long>, std::pair<long long, long long>, std::_Identity<std::pair<long long, long long>>, std::less<std::pair<long long, long long>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<long long, long long>, std::pair<long long, long long>, std::_Identity<std::pair<long long, long long>>, std::less<std::pair<long long, long long>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.10" = type { ptr }

@T = external dso_local global i64, align 8
@N = external dso_local global i64, align 8
@M = external dso_local global i64, align 8
@I = external dso_local global [200000 x i64], align 16
@P = external dso_local global [200000 x %"struct.std::pair"], align 16
@ans = external dso_local global [200000 x i8], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.std::vector", align 8
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca %"class.std::set", align 8
  %7 = alloca %"class.std::set", align 8
  %8 = alloca i64, align 8
  %9 = alloca %"struct.std::pair", align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca %"class.std::vector.5", align 8
  %13 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %14 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %15 = alloca %"struct.std::pair", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.10", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator.10", align 8
  %18 = alloca %"struct.std::pair", align 8
  %19 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %20 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %21 = alloca %"struct.std::pair", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator.10", align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator.10", align 8
  %24 = alloca %"struct.std::pair", align 8
  %25 = alloca %"struct.std::pair", align 8
  %26 = alloca i64, align 8
  %27 = alloca %"struct.std::pair", align 8
  %28 = alloca i64, align 8
  %29 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %30 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %31 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %32 = getelementptr i8, ptr %31, i64 -24
  %33 = load i64, ptr %32, align 8
  %34 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %33
  %35 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %34, ptr noundef null)
  %36 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %37 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @T)
  %38 = load i64, ptr @T, align 8, !tbaa !8
  %39 = add nsw i64 %38, -1
  store i64 %39, ptr @T, align 8, !tbaa !8
  %.not164 = icmp eq i64 %38, 0
  br i1 %.not164, label %._crit_edge167, label %.lr.ph166

.lr.ph166:                                        ; preds = %0, %251
  %40 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @N)
  %41 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %40, ptr noundef nonnull align 8 dereferenceable(8) @M)
  %42 = load i64, ptr @N, align 8, !tbaa !8
  %43 = getelementptr inbounds i8, ptr @ans, i64 %42
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  store i32 0, ptr %1, align 4, !tbaa !11
  call void @_ZSt4fillIPbiEvT_S1_RKT0_(ptr noundef nonnull @ans, ptr noundef nonnull %43, ptr noundef nonnull align 4 dereferenceable(4) %1)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  %44 = load i64, ptr @N, align 8, !tbaa !8
  %45 = icmp sgt i64 %44, 0
  br i1 %45, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph166
  %.lcssa = phi i64 [ %44, %.lr.ph166 ], [ %56, %.lr.ph ]
  %46 = getelementptr inbounds i64, ptr @I, i64 %.lcssa
  call void @_ZSt4iotaIPxiEvT_S1_T0_(ptr noundef nonnull @I, ptr noundef nonnull %46, i32 noundef 0)
  %47 = load i64, ptr @N, align 8, !tbaa !8
  %48 = getelementptr inbounds i64, ptr @I, i64 %47
  call void @"_ZSt4sortIPxZ4mainE3$_0EvT_S2_T0_"(ptr noundef nonnull @I, ptr noundef nonnull %48)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #8
  call void @_ZNSt6vectorIxSaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #8
  call void @_ZNSt6vectorIxSaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %49 = load i64, ptr @N, align 8, !tbaa !8
  %50 = icmp sgt i64 %49, 0
  br i1 %50, label %.lr.ph110, label %._crit_edge111

.lr.ph:                                           ; preds = %.lr.ph166, %.lr.ph
  %.061107 = phi i64 [ %55, %.lr.ph ], [ 0, %.lr.ph166 ]
  %51 = getelementptr inbounds [200000 x %"struct.std::pair"], ptr @P, i64 0, i64 %.061107
  %52 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %51)
  %53 = getelementptr inbounds i8, ptr %51, i64 8
  %54 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %52, ptr noundef nonnull align 8 dereferenceable(8) %53)
  %55 = add nuw nsw i64 %.061107, 1
  %56 = load i64, ptr @N, align 8, !tbaa !8
  %57 = icmp slt i64 %55, %56
  br i1 %57, label %.lr.ph, label %._crit_edge, !llvm.loop !13

._crit_edge111:                                   ; preds = %70, %._crit_edge
  %58 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  %59 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEEEvT_S7_(ptr %58, ptr %59)
          to label %80 unwind label %87

.lr.ph110:                                        ; preds = %._crit_edge, %70
  %.062108 = phi i64 [ %71, %70 ], [ 0, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  %60 = getelementptr inbounds [200000 x %"struct.std::pair"], ptr @P, i64 0, i64 %.062108
  %61 = load i64, ptr %60, align 16, !tbaa !15
  %62 = getelementptr inbounds i8, ptr %60, i64 8
  %63 = load i64, ptr %62, align 8, !tbaa !17
  %64 = sub nsw i64 %61, %63
  store i64 %64, ptr %4, align 8, !tbaa !8
  invoke void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %65 unwind label %74

65:                                               ; preds = %.lr.ph110
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  invoke void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(8) %60)
          to label %66 unwind label %76

66:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  %67 = load i64, ptr %60, align 16, !tbaa !15
  %68 = load i64, ptr %62, align 8, !tbaa !17
  %69 = add nsw i64 %68, %67
  store i64 %69, ptr %5, align 8, !tbaa !8
  invoke void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %70 unwind label %78

70:                                               ; preds = %66
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  %71 = add nuw nsw i64 %.062108, 1
  %72 = load i64, ptr @N, align 8, !tbaa !8
  %73 = icmp slt i64 %71, %72
  br i1 %73, label %.lr.ph110, label %._crit_edge111, !llvm.loop !18

74:                                               ; preds = %.lr.ph110
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  br label %257

76:                                               ; preds = %65
  %77 = landingpad { ptr, i32 }
          cleanup
  br label %257

78:                                               ; preds = %66
  %79 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  br label %257

80:                                               ; preds = %._crit_edge111
  %81 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %82 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEEEvT_S7_(ptr %81, ptr %82)
          to label %83 unwind label %87

83:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %6) #8
  call void @_ZNSt3setISt4pairIxxESt4lessIS1_ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %7) #8
  call void @_ZNSt3setISt4pairIxxESt4lessIS1_ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  store i64 0, ptr %8, align 8, !tbaa !8
  %84 = load i64, ptr @N, align 8, !tbaa !8
  %85 = icmp sgt i64 %84, 0
  br i1 %85, label %.lr.ph114, label %._crit_edge115.thread

._crit_edge115.thread:                            ; preds = %83
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  br label %._crit_edge156

._crit_edge115:                                   ; preds = %95
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  %86 = icmp sgt i64 %98, 0
  br i1 %86, label %.lr.ph155, label %._crit_edge156

87:                                               ; preds = %80, %._crit_edge111
  %88 = landingpad { ptr, i32 }
          cleanup
  br label %257

.lr.ph114:                                        ; preds = %83, %95
  %storemerge112 = phi i64 [ %97, %95 ], [ 0, %83 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  %89 = getelementptr inbounds [200000 x %"struct.std::pair"], ptr @P, i64 0, i64 %storemerge112
  %90 = getelementptr inbounds i8, ptr %89, i64 8
  %91 = load i64, ptr %90, align 8, !tbaa !17
  %92 = load i64, ptr %89, align 16, !tbaa !15
  %93 = sub nsw i64 %91, %92
  store i64 %93, ptr %10, align 8, !tbaa !8
  call void @_ZNSt4pairIxxEC2IxRxTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %8)
  %94 = invoke { ptr, i8 } @_ZNSt3setISt4pairIxxESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %95 unwind label %100

95:                                               ; preds = %.lr.ph114
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #8
  %96 = load i64, ptr %8, align 8, !tbaa !8
  %97 = add nsw i64 %96, 1
  store i64 %97, ptr %8, align 8, !tbaa !8
  %98 = load i64, ptr @N, align 8, !tbaa !8
  %99 = icmp slt i64 %97, %98
  br i1 %99, label %.lr.ph114, label %._crit_edge115, !llvm.loop !19

100:                                              ; preds = %.lr.ph114
  %101 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  br label %256

._crit_edge156:                                   ; preds = %229, %._crit_edge115.thread, %._crit_edge115
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %29) #8
  %102 = call ptr @_ZNKSt3setISt4pairIxxESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %7) #8
  store ptr %102, ptr %29, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %30) #8
  %103 = call ptr @_ZNKSt3setISt4pairIxxESt4lessIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %7) #8
  store ptr %103, ptr %30, align 8
  %104 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIxxEES4_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %30) #8
  br i1 %104, label %.lr.ph158, label %._crit_edge159

.lr.ph155:                                        ; preds = %._crit_edge115, %229
  %.068153 = phi i64 [ %.169.lcssa, %229 ], [ 0, %._crit_edge115 ]
  %.070152 = phi i64 [ %.171.lcssa, %229 ], [ 0, %._crit_edge115 ]
  %.072151 = phi i64 [ %.274.lcssa, %229 ], [ 0, %._crit_edge115 ]
  %.075150 = phi i64 [ %.277.lcssa, %229 ], [ 0, %._crit_edge115 ]
  %.078149 = phi i64 [ %230, %229 ], [ 0, %._crit_edge115 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  %105 = getelementptr inbounds [200000 x i64], ptr @I, i64 0, i64 %.078149
  %106 = load i64, ptr %105, align 8, !tbaa !8
  store i64 %106, ptr %11, align 8, !tbaa !8
  %.not85 = icmp eq i64 %.078149, 0
  br i1 %.not85, label %116, label %107

107:                                              ; preds = %.lr.ph155
  %108 = getelementptr inbounds [200000 x %"struct.std::pair"], ptr @P, i64 0, i64 %106
  %109 = load i64, ptr %108, align 16, !tbaa !15
  %110 = add nsw i64 %.078149, -1
  %111 = getelementptr inbounds [200000 x i64], ptr @I, i64 0, i64 %110
  %112 = load i64, ptr %111, align 8, !tbaa !8
  %113 = getelementptr inbounds [200000 x %"struct.std::pair"], ptr @P, i64 0, i64 %112
  %114 = load i64, ptr %113, align 16, !tbaa !15
  %115 = sub nsw i64 %109, %114
  br label %116

116:                                              ; preds = %107, %.lr.ph155
  %.079 = phi i64 [ %115, %107 ], [ 0, %.lr.ph155 ]
  %117 = mul nsw i64 %.079, %.072151
  %118 = add nsw i64 %117, %.075150
  %119 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  %120 = icmp slt i64 %.068153, %119
  br i1 %120, label %.lr.ph120, label %.critedge

.lr.ph120:                                        ; preds = %116, %127
  %.169118 = phi i64 [ %133, %127 ], [ %.068153, %116 ]
  %.173117 = phi i64 [ %128, %127 ], [ %.072151, %116 ]
  %.176116 = phi i64 [ %132, %127 ], [ %118, %116 ]
  %121 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.169118) #8
  %122 = load i64, ptr %121, align 8, !tbaa !8
  %123 = load i64, ptr %11, align 8, !tbaa !8
  %124 = getelementptr inbounds [200000 x %"struct.std::pair"], ptr @P, i64 0, i64 %123
  %125 = load i64, ptr %124, align 16, !tbaa !15
  %126 = icmp slt i64 %122, %125
  br i1 %126, label %127, label %.critedge

127:                                              ; preds = %.lr.ph120
  %128 = add nsw i64 %.173117, 1
  %129 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.169118) #8
  %130 = load i64, ptr %129, align 8, !tbaa !8
  %131 = add i64 %125, %.176116
  %132 = sub i64 %131, %130
  %133 = add nsw i64 %.169118, 1
  %134 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  %135 = icmp slt i64 %133, %134
  br i1 %135, label %.lr.ph120, label %.critedge, !llvm.loop !20

.critedge:                                        ; preds = %.lr.ph120, %127, %116
  %.176.lcssa = phi i64 [ %118, %116 ], [ %132, %127 ], [ %.176116, %.lr.ph120 ]
  %.173.lcssa = phi i64 [ %.072151, %116 ], [ %128, %127 ], [ %.173117, %.lr.ph120 ]
  %.169.lcssa = phi i64 [ %.068153, %116 ], [ %133, %127 ], [ %.169118, %.lr.ph120 ]
  %136 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %137 = icmp slt i64 %.070152, %136
  br i1 %137, label %.lr.ph131, label %.critedge3

.lr.ph131:                                        ; preds = %.critedge, %144
  %.171130 = phi i64 [ %149, %144 ], [ %.070152, %.critedge ]
  %.274129 = phi i64 [ %145, %144 ], [ %.173.lcssa, %.critedge ]
  %.277128 = phi i64 [ %148, %144 ], [ %.176.lcssa, %.critedge ]
  %138 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.171130) #8
  %139 = load i64, ptr %138, align 8, !tbaa !8
  %140 = load i64, ptr %11, align 8, !tbaa !8
  %141 = getelementptr inbounds [200000 x %"struct.std::pair"], ptr @P, i64 0, i64 %140
  %142 = load i64, ptr %141, align 16, !tbaa !15
  %143 = icmp slt i64 %139, %142
  br i1 %143, label %144, label %.critedge3

144:                                              ; preds = %.lr.ph131
  %145 = add nsw i64 %.274129, -2
  %146 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.171130) #8
  %147 = load i64, ptr %146, align 8, !tbaa !8
  %.neg90 = sub i64 %147, %142
  %.neg91 = shl i64 %.neg90, 1
  %148 = add i64 %.neg91, %.277128
  %149 = add nsw i64 %.171130, 1
  %150 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %151 = icmp slt i64 %149, %150
  br i1 %151, label %.lr.ph131, label %.critedge3, !llvm.loop !21

.critedge3:                                       ; preds = %.lr.ph131, %144, %.critedge
  %.277.lcssa = phi i64 [ %.176.lcssa, %.critedge ], [ %148, %144 ], [ %.277128, %.lr.ph131 ]
  %.274.lcssa = phi i64 [ %.173.lcssa, %.critedge ], [ %145, %144 ], [ %.274129, %.lr.ph131 ]
  %.171.lcssa = phi i64 [ %.070152, %.critedge ], [ %149, %144 ], [ %.171130, %.lr.ph131 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #8
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  %152 = load i64, ptr @M, align 8, !tbaa !8
  %153 = icmp sgt i64 %.277.lcssa, %152
  br i1 %153, label %154, label %208

154:                                              ; preds = %.critedge3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #8
  %155 = call ptr @_ZNKSt3setISt4pairIxxESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %6) #8
  store ptr %155, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #8
  %156 = call ptr @_ZNKSt3setISt4pairIxxESt4lessIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %6) #8
  store ptr %156, ptr %14, align 8
  %157 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIxxEES4_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  br i1 %157, label %.lr.ph140, label %.loopexit106

.lr.ph140:                                        ; preds = %154, %167
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #8
  %158 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIxxEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %158, i64 16, i1 false)
  %159 = load i64, ptr %15, align 8, !tbaa !15
  %160 = load i64, ptr %11, align 8, !tbaa !8
  %161 = getelementptr inbounds [200000 x %"struct.std::pair"], ptr @P, i64 0, i64 %160
  %162 = load i64, ptr %161, align 16, !tbaa !15
  %163 = add i64 %159, %162
  %164 = sub i64 %.277.lcssa, %163
  %165 = load i64, ptr @M, align 8, !tbaa !8
  %.not86 = icmp sgt i64 %164, %165
  br i1 %.not86, label %166, label %.critedge98

166:                                              ; preds = %.lr.ph140
  invoke void @_ZNSt6vectorISt4pairIxxESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %167 unwind label %170

167:                                              ; preds = %166
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #8
  %168 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIxxEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  %169 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIxxEES4_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  br i1 %169, label %.lr.ph140, label %.loopexit106

170:                                              ; preds = %166
  %171 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  br label %233

.critedge98:                                      ; preds = %.lr.ph140
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #8
  br label %.loopexit106

.loopexit106:                                     ; preds = %167, %154, %.critedge98
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #8
  %172 = call ptr @_ZNSt6vectorISt4pairIxxESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  store ptr %172, ptr %16, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #8
  %173 = call ptr @_ZNSt6vectorISt4pairIxxESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  store ptr %173, ptr %17, align 8
  %174 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIxxESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #8
  br i1 %174, label %.lr.ph142, label %._crit_edge143

._crit_edge143:                                   ; preds = %180, %.loopexit106
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #8
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #8
  %175 = call ptr @_ZNKSt3setISt4pairIxxESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %7) #8
  store ptr %175, ptr %19, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #8
  %176 = call ptr @_ZNKSt3setISt4pairIxxESt4lessIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %7) #8
  store ptr %176, ptr %20, align 8
  %177 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIxxEES4_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  br i1 %177, label %.lr.ph145, label %.loopexit

.lr.ph142:                                        ; preds = %.loopexit106, %180
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #8
  %178 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIxxESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %178, i64 16, i1 false)
  %179 = invoke noundef i64 @_ZNSt3setISt4pairIxxESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 8 dereferenceable(16) %18)
          to label %180 unwind label %183

180:                                              ; preds = %.lr.ph142
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #8
  %181 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIxxESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  %182 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIxxESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #8
  br i1 %182, label %.lr.ph142, label %._crit_edge143

183:                                              ; preds = %.lr.ph142
  %184 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #8
  br label %233

.lr.ph145:                                        ; preds = %._crit_edge143, %193
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #8
  %185 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIxxEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(16) %185, i64 16, i1 false)
  %186 = load i64, ptr %21, align 8, !tbaa !15
  %187 = load i64, ptr %11, align 8, !tbaa !8
  %188 = getelementptr inbounds [200000 x %"struct.std::pair"], ptr @P, i64 0, i64 %187
  %189 = load i64, ptr %188, align 16, !tbaa !15
  %.neg = sub i64 %.277.lcssa, %186
  %190 = add i64 %.neg, %189
  %191 = load i64, ptr @M, align 8, !tbaa !8
  %.not87 = icmp sgt i64 %190, %191
  br i1 %.not87, label %192, label %.critedge100

192:                                              ; preds = %.lr.ph145
  invoke void @_ZNSt6vectorISt4pairIxxESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(16) %21)
          to label %193 unwind label %196

193:                                              ; preds = %192
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #8
  %194 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIxxEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #8
  %195 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIxxEES4_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  br i1 %195, label %.lr.ph145, label %.loopexit

196:                                              ; preds = %192
  %197 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #8
  br label %233

.critedge100:                                     ; preds = %.lr.ph145
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #8
  br label %.loopexit

.loopexit:                                        ; preds = %193, %._crit_edge143, %.critedge100
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #8
  %198 = call ptr @_ZNSt6vectorISt4pairIxxESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  store ptr %198, ptr %22, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #8
  %199 = call ptr @_ZNSt6vectorISt4pairIxxESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  store ptr %199, ptr %23, align 8
  %200 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIxxESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %23) #8
  br i1 %200, label %.lr.ph147, label %._crit_edge148

._crit_edge148:                                   ; preds = %203, %.loopexit
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #8
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  br label %208

.lr.ph147:                                        ; preds = %.loopexit, %203
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %24) #8
  %201 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIxxESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(16) %201, i64 16, i1 false)
  %202 = invoke noundef i64 @_ZNSt3setISt4pairIxxESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 8 dereferenceable(16) %24)
          to label %203 unwind label %206

203:                                              ; preds = %.lr.ph147
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #8
  %204 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIxxESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #8
  %205 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIxxESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %23) #8
  br i1 %205, label %.lr.ph147, label %._crit_edge148

206:                                              ; preds = %.lr.ph147
  %207 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #8
  br label %233

208:                                              ; preds = %._crit_edge148, %.critedge3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %25) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #8
  %209 = load i64, ptr %11, align 8, !tbaa !8
  %210 = getelementptr inbounds [200000 x %"struct.std::pair"], ptr @P, i64 0, i64 %209
  %211 = getelementptr inbounds i8, ptr %210, i64 8
  %212 = load i64, ptr %211, align 8, !tbaa !17
  %213 = load i64, ptr %210, align 16, !tbaa !15
  %214 = sub nsw i64 %212, %213
  store i64 %214, ptr %26, align 8, !tbaa !8
  call void @_ZNSt4pairIxxEC2IxRxTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %11)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %27) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %28) #8
  %215 = load i64, ptr %11, align 8, !tbaa !8
  %216 = getelementptr inbounds [200000 x %"struct.std::pair"], ptr @P, i64 0, i64 %215
  %217 = getelementptr inbounds i8, ptr %216, i64 8
  %218 = load i64, ptr %217, align 8, !tbaa !17
  %219 = load i64, ptr %216, align 16, !tbaa !15
  %220 = add nsw i64 %219, %218
  store i64 %220, ptr %28, align 8, !tbaa !8
  call void @_ZNSt4pairIxxEC2IxRxTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(8) %11)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #8
  %221 = invoke noundef i64 @_ZNKSt3setISt4pairIxxESt4lessIS1_ESaIS1_EE5countERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 8 dereferenceable(16) %25)
          to label %222 unwind label %227

222:                                              ; preds = %208
  %.not88 = icmp eq i64 %221, 0
  br i1 %.not88, label %229, label %223

223:                                              ; preds = %222
  %224 = invoke noundef i64 @_ZNSt3setISt4pairIxxESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 8 dereferenceable(16) %25)
          to label %225 unwind label %227

225:                                              ; preds = %223
  %226 = invoke { ptr, i8 } @_ZNSt3setISt4pairIxxESt4lessIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 8 dereferenceable(16) %27)
          to label %229 unwind label %227

227:                                              ; preds = %225, %223, %208
  %228 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %27) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #8
  br label %233

229:                                              ; preds = %225, %222
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %27) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #8
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  %230 = add nuw nsw i64 %.078149, 1
  %231 = load i64, ptr @N, align 8, !tbaa !8
  %232 = icmp slt i64 %230, %231
  br i1 %232, label %.lr.ph155, label %._crit_edge156, !llvm.loop !22

233:                                              ; preds = %227, %206, %196, %183, %170
  %.pn = phi { ptr, i32 } [ %184, %183 ], [ %207, %206 ], [ %228, %227 ], [ %197, %196 ], [ %171, %170 ]
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  br label %256

._crit_edge159:                                   ; preds = %.lr.ph158, %._crit_edge156
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #8
  %234 = load i64, ptr @N, align 8, !tbaa !8
  %235 = icmp sgt i64 %234, 0
  br i1 %235, label %.lr.ph162, label %._crit_edge163

.lr.ph158:                                        ; preds = %._crit_edge156, %.lr.ph158
  %236 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIxxEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #8
  %.sroa.3.0..sroa_idx = getelementptr inbounds i8, ptr %236, i64 8
  %.sroa.3.0.copyload = load i64, ptr %.sroa.3.0..sroa_idx, align 8
  %237 = getelementptr inbounds [200000 x i8], ptr @ans, i64 0, i64 %.sroa.3.0.copyload
  store i8 1, ptr %237, align 1, !tbaa !23
  %238 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIxxEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #8
  %239 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIxxEES4_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %30) #8
  br i1 %239, label %.lr.ph158, label %._crit_edge159

._crit_edge163:                                   ; preds = %245, %._crit_edge159
  %240 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 10)
          to label %251 unwind label %254

.lr.ph162:                                        ; preds = %._crit_edge159, %245
  %.0160 = phi i64 [ %246, %245 ], [ 0, %._crit_edge159 ]
  %241 = getelementptr inbounds [200000 x i8], ptr @ans, i64 0, i64 %.0160
  %242 = load i8, ptr %241, align 1, !tbaa !23, !range !25, !noundef !26
  %243 = trunc nuw i8 %242 to i1
  %244 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEb(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i1 noundef zeroext %243)
          to label %245 unwind label %249

245:                                              ; preds = %.lr.ph162
  %246 = add nuw nsw i64 %.0160, 1
  %247 = load i64, ptr @N, align 8, !tbaa !8
  %248 = icmp slt i64 %246, %247
  br i1 %248, label %.lr.ph162, label %._crit_edge163, !llvm.loop !27

249:                                              ; preds = %.lr.ph162
  %250 = landingpad { ptr, i32 }
          cleanup
  br label %256

251:                                              ; preds = %._crit_edge163
  call void @_ZNSt3setISt4pairIxxESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #8
  call void @_ZNSt3setISt4pairIxxESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #8
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #8
  %252 = load i64, ptr @T, align 8, !tbaa !8
  %253 = add nsw i64 %252, -1
  store i64 %253, ptr @T, align 8, !tbaa !8
  %.not = icmp eq i64 %252, 0
  br i1 %.not, label %._crit_edge167, label %.lr.ph166, !llvm.loop !28

254:                                              ; preds = %._crit_edge163
  %255 = landingpad { ptr, i32 }
          cleanup
  br label %256

256:                                              ; preds = %254, %249, %233, %100
  %.pn92 = phi { ptr, i32 } [ %101, %100 ], [ %.pn, %233 ], [ %250, %249 ], [ %255, %254 ]
  call void @_ZNSt3setISt4pairIxxESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #8
  call void @_ZNSt3setISt4pairIxxESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #8
  br label %257

257:                                              ; preds = %74, %76, %78, %256, %87
  %.pn94.pn = phi { ptr, i32 } [ %.pn92, %256 ], [ %88, %87 ], [ %79, %78 ], [ %77, %76 ], [ %75, %74 ]
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #8
  resume { ptr, i32 } %.pn94.pn

._crit_edge167:                                   ; preds = %251, %0
  ret i32 0
}

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZSt4iotaIPxiEvT_S1_T0_(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setISt4pairIxxESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress 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) #6

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNSt3setISt4pairIxxESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNKSt3setISt4pairIxxESt4lessIS1_ESaIS1_EE5countERKS1_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setISt4pairIxxESt4lessIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEb(ptr noundef nonnull align 8 dereferenceable(8), i1 noundef zeroext) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #4

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

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

attributes #0 = { 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 #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = !{!"long long", !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, !9, i64 0}
!16 = !{!"_ZTSSt4pairIxxE", !9, i64 0, !9, i64 8}
!17 = !{!16, !9, i64 8}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}
!22 = distinct !{!22, !14}
!23 = !{!24, !24, i64 0}
!24 = !{!"bool", !10, i64 0}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = distinct !{!27, !14}
!28 = distinct !{!28, !14}


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