; LLVM IR from abeaumont/competitive-programming :: atcoder/arc134 (d)

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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<pr, std::allocator<pr>>::_Vector_impl" }
%"struct.std::_Vector_base<pr, std::allocator<pr>>::_Vector_impl" = type { %"struct.std::_Vector_base<pr, std::allocator<pr>>::_Vector_impl_data" }
%"struct.std::_Vector_base<pr, std::allocator<pr>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.2" = type { i8 }
%"struct.std::pair" = type { i32, i32 }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<pr, pr, std::_Identity<pr>, std::less<pr>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<pr, pr, std::_Identity<pr>, std::less<pr>>::_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.8" = type <{ %"struct.std::_Rb_tree_const_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"class.std::set.10" = type { %"class.std::_Rb_tree.11" }
%"class.std::_Rb_tree.11" = type { %"struct.std::_Rb_tree<pri, pri, std::_Identity<pri>, std::less<pri>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<pri, pri, std::_Identity<pri>, std::less<pri>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%struct.pri = type { i32, i32, i32 }
%struct.pr = type { i32, i32, i32 }
%"struct.std::pair.16" = type <{ %"struct.std::_Rb_tree_const_iterator.18", i8, [7 x i8] }>
%"struct.std::_Rb_tree_const_iterator.18" = type { ptr }
%"class.std::vector.20" = type { %"struct.std::_Vector_base.21" }
%"struct.std::_Vector_base.21" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%class.anon = type { i8 }

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

; 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 %"class.std::vector", align 8
  %4 = alloca %"class.std::allocator", align 1
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::vector.0", align 8
  %8 = alloca %"class.std::allocator.2", align 1
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"struct.std::pair", align 4
  %14 = alloca %"class.std::set", align 8
  %15 = alloca i32, align 4
  %16 = alloca %"struct.std::pair.8", align 8
  %17 = alloca %"class.std::set.10", align 8
  %18 = alloca i32, align 4
  %19 = alloca %struct.pri, align 4
  %20 = alloca %struct.pr, align 4
  %21 = alloca { i64, i32 }, align 4
  %22 = alloca %"struct.std::pair.16", align 8
  %23 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca %"class.std::vector.20", align 8
  %28 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %29 = alloca i32, align 4
  %30 = alloca %"class.std::vector", align 8
  %31 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %32 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %33 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %34 = alloca %class.anon, align 1
  %35 = alloca ptr, align 8
  %36 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %37 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %38 = alloca %struct.pr, align 4
  %39 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %40 = alloca %"struct.std::_Rb_tree_const_iterator.18", align 8
  %41 = alloca %"struct.std::_Rb_tree_const_iterator.18", align 8
  %42 = alloca %struct.pri, align 4
  %43 = alloca %struct.pr, align 4
  %44 = alloca { i64, i32 }, align 4
  %45 = alloca %"struct.std::_Rb_tree_const_iterator.18", align 8
  %46 = alloca %struct.pr, align 4
  %47 = alloca ptr, align 8
  %48 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %49 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %50 = alloca %struct.pr, align 4
  %51 = alloca %struct.pri, align 4
  %52 = alloca %struct.pr, align 4
  %53 = alloca { i64, i32 }, align 4
  %54 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %55 = alloca i32, align 4
  %56 = alloca i32, align 4
  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)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  %63 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.start.p0(i64 24, ptr %3) #8
  %64 = load i32, ptr %2, align 4, !tbaa !8
  %65 = sext i32 %64 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #8
  call void @_ZNSaI2prEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #8
  invoke void @_ZNSt6vectorI2prSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %65, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %66 unwind label %75

66:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorI2prED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #8
  %67 = load i32, ptr %2, align 4, !tbaa !8
  %68 = sext i32 %67 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #8
  call void @_ZNSaISt4pairIiiEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %68, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %69 unwind label %79

69:                                               ; preds = %66
  call void @_ZNSt15__new_allocatorISt4pairIiiEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  store i32 0, ptr %9, align 4, !tbaa !8
  br label %70

70:                                               ; preds = %90, %69
  %71 = load i32, ptr %9, align 4, !tbaa !8
  %72 = load i32, ptr %2, align 4, !tbaa !8
  %73 = icmp slt i32 %71, %72
  br i1 %73, label %83, label %74

74:                                               ; preds = %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %97

75:                                               ; preds = %0
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %5, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %6, align 4
  call void @_ZNSt15__new_allocatorI2prED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #8
  br label %495

79:                                               ; preds = %66
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %5, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %6, align 4
  call void @_ZNSt15__new_allocatorISt4pairIiiEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #8
  br label %494

83:                                               ; preds = %70
  %84 = load i32, ptr %9, align 4, !tbaa !8
  %85 = sext i32 %84 to i64
  %86 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI2prSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %85) #8
  %87 = getelementptr inbounds %struct.pr, ptr %86, i32 0, i32 0
  %88 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %87)
          to label %89 unwind label %93

89:                                               ; preds = %83
  br label %90

90:                                               ; preds = %89
  %91 = load i32, ptr %9, align 4, !tbaa !8
  %92 = add nsw i32 %91, 1
  store i32 %92, ptr %9, align 4, !tbaa !8
  br label %70, !llvm.loop !11

93:                                               ; preds = %83
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %5, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %493

97:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 0, ptr %10, align 4, !tbaa !8
  br label %98

98:                                               ; preds = %110, %97
  %99 = load i32, ptr %10, align 4, !tbaa !8
  %100 = load i32, ptr %2, align 4, !tbaa !8
  %101 = icmp slt i32 %99, %100
  br i1 %101, label %103, label %102

102:                                              ; preds = %98
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %117

103:                                              ; preds = %98
  %104 = load i32, ptr %10, align 4, !tbaa !8
  %105 = sext i32 %104 to i64
  %106 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI2prSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %105) #8
  %107 = getelementptr inbounds %struct.pr, ptr %106, i32 0, i32 1
  %108 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %107)
          to label %109 unwind label %113

109:                                              ; preds = %103
  br label %110

110:                                              ; preds = %109
  %111 = load i32, ptr %10, align 4, !tbaa !8
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %10, align 4, !tbaa !8
  br label %98, !llvm.loop !13

113:                                              ; preds = %103
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %5, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %493

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

118:                                              ; preds = %129, %117
  %119 = load i32, ptr %11, align 4, !tbaa !8
  %120 = load i32, ptr %2, align 4, !tbaa !8
  %121 = icmp slt i32 %119, %120
  br i1 %121, label %123, label %122

122:                                              ; preds = %118
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %132

123:                                              ; preds = %118
  %124 = load i32, ptr %11, align 4, !tbaa !8
  %125 = load i32, ptr %11, align 4, !tbaa !8
  %126 = sext i32 %125 to i64
  %127 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI2prSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %126) #8
  %128 = getelementptr inbounds %struct.pr, ptr %127, i32 0, i32 2
  store i32 %124, ptr %128, align 4, !tbaa !14
  br label %129

129:                                              ; preds = %123
  %130 = load i32, ptr %11, align 4, !tbaa !8
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %11, align 4, !tbaa !8
  br label %118, !llvm.loop !16

132:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 0, ptr %12, align 4, !tbaa !8
  br label %133

133:                                              ; preds = %156, %132
  %134 = load i32, ptr %12, align 4, !tbaa !8
  %135 = load i32, ptr %2, align 4, !tbaa !8
  %136 = icmp slt i32 %134, %135
  br i1 %136, label %138, label %137

137:                                              ; preds = %133
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %163

138:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %139 = load i32, ptr %12, align 4, !tbaa !8
  %140 = sext i32 %139 to i64
  %141 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI2prSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %140) #8
  %142 = getelementptr inbounds %struct.pr, ptr %141, i32 0, i32 0
  %143 = load i32, ptr %12, align 4, !tbaa !8
  %144 = sext i32 %143 to i64
  %145 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI2prSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %144) #8
  %146 = getelementptr inbounds %struct.pr, ptr %145, i32 0, i32 1
  invoke void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(4) %142, ptr noundef nonnull align 4 dereferenceable(4) %146)
          to label %147 unwind label %159

147:                                              ; preds = %138
  %148 = load i32, ptr %12, align 4, !tbaa !8
  %149 = sext i32 %148 to i64
  %150 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI2prSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %149) #8
  %151 = getelementptr inbounds %struct.pr, ptr %150, i32 0, i32 2
  %152 = load i32, ptr %151, align 4, !tbaa !14
  %153 = sext i32 %152 to i64
  %154 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %153) #8
  %155 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %154, ptr noundef nonnull align 4 dereferenceable(8) %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %156

156:                                              ; preds = %147
  %157 = load i32, ptr %12, align 4, !tbaa !8
  %158 = add nsw i32 %157, 1
  store i32 %158, ptr %12, align 4, !tbaa !8
  br label %133, !llvm.loop !17

159:                                              ; preds = %138
  %160 = landingpad { ptr, i32 }
          cleanup
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %5, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %493

163:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 48, ptr %14) #8
  call void @_ZNSt3setI2prSt4lessIS0_ESaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %14) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 0, ptr %15, align 4, !tbaa !8
  br label %164

164:                                              ; preds = %179, %163
  %165 = load i32, ptr %15, align 4, !tbaa !8
  %166 = load i32, ptr %2, align 4, !tbaa !8
  %167 = icmp slt i32 %165, %166
  br i1 %167, label %169, label %168

168:                                              ; preds = %164
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %186

169:                                              ; preds = %164
  %170 = load i32, ptr %15, align 4, !tbaa !8
  %171 = sext i32 %170 to i64
  %172 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI2prSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %171) #8
  %173 = invoke { ptr, i8 } @_ZNSt3setI2prSt4lessIS0_ESaIS0_EE6insertERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %14, ptr noundef nonnull align 4 dereferenceable(12) %172)
          to label %174 unwind label %182

174:                                              ; preds = %169
  %175 = getelementptr inbounds { ptr, i8 }, ptr %16, i32 0, i32 0
  %176 = extractvalue { ptr, i8 } %173, 0
  store ptr %176, ptr %175, align 8
  %177 = getelementptr inbounds { ptr, i8 }, ptr %16, i32 0, i32 1
  %178 = extractvalue { ptr, i8 } %173, 1
  store i8 %178, ptr %177, align 8
  br label %179

179:                                              ; preds = %174
  %180 = load i32, ptr %15, align 4, !tbaa !8
  %181 = add nsw i32 %180, 1
  store i32 %181, ptr %15, align 4, !tbaa !8
  br label %164, !llvm.loop !18

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

186:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 48, ptr %17) #8
  call void @_ZNSt3setI3priSt4lessIS0_ESaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %17) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  store i32 0, ptr %18, align 4, !tbaa !8
  br label %187

187:                                              ; preds = %207, %186
  %188 = load i32, ptr %18, align 4, !tbaa !8
  %189 = load i32, ptr %2, align 4, !tbaa !8
  %190 = icmp slt i32 %188, %189
  br i1 %190, label %192, label %191

191:                                              ; preds = %187
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %214

192:                                              ; preds = %187
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #8
  %193 = load i32, ptr %18, align 4, !tbaa !8
  %194 = sext i32 %193 to i64
  %195 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI2prSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %194) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 4 %195, i64 12, i1 false), !tbaa.struct !19
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %20, i64 12, i1 false)
  %196 = getelementptr inbounds { i64, i32 }, ptr %21, i32 0, i32 0
  %197 = load i64, ptr %196, align 4
  %198 = getelementptr inbounds { i64, i32 }, ptr %21, i32 0, i32 1
  %199 = load i32, ptr %198, align 4
  invoke void @_ZN3priC2E2pr(ptr noundef nonnull align 4 dereferenceable(12) %19, i64 %197, i32 %199)
          to label %200 unwind label %210

200:                                              ; preds = %192
  %201 = invoke { ptr, i8 } @_ZNSt3setI3priSt4lessIS0_ESaIS0_EE6insertEOS0_(ptr noundef nonnull align 8 dereferenceable(48) %17, ptr noundef nonnull align 4 dereferenceable(12) %19)
          to label %202 unwind label %210

202:                                              ; preds = %200
  %203 = getelementptr inbounds { ptr, i8 }, ptr %22, i32 0, i32 0
  %204 = extractvalue { ptr, i8 } %201, 0
  store ptr %204, ptr %203, align 8
  %205 = getelementptr inbounds { ptr, i8 }, ptr %22, i32 0, i32 1
  %206 = extractvalue { ptr, i8 } %201, 1
  store i8 %206, ptr %205, align 8
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #8
  br label %207

207:                                              ; preds = %202
  %208 = load i32, ptr %18, align 4, !tbaa !8
  %209 = add nsw i32 %208, 1
  store i32 %209, ptr %18, align 4, !tbaa !8
  br label %187, !llvm.loop !20

210:                                              ; preds = %200, %192
  %211 = landingpad { ptr, i32 }
          cleanup
  %212 = extractvalue { ptr, i32 } %211, 0
  store ptr %212, ptr %5, align 8
  %213 = extractvalue { ptr, i32 } %211, 1
  store i32 %213, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %491

214:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %215 = call ptr @_ZNKSt3setI2prSt4lessIS0_ESaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %14) #8
  %216 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %23, i32 0, i32 0
  store ptr %215, ptr %216, align 8
  %217 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI2prEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #8
  %218 = getelementptr inbounds %struct.pr, ptr %217, i32 0, i32 1
  %219 = load i32, ptr %218, align 4, !tbaa !21
  %220 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI2prEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #8
  %221 = getelementptr inbounds %struct.pr, ptr %220, i32 0, i32 0
  %222 = load i32, ptr %221, align 4, !tbaa !22
  %223 = icmp sle i32 %219, %222
  br i1 %223, label %224, label %243

224:                                              ; preds = %214
  %225 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI2prEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #8
  %226 = getelementptr inbounds %struct.pr, ptr %225, i32 0, i32 0
  %227 = load i32, ptr %226, align 4, !tbaa !22
  %228 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %227)
          to label %229 unwind label %239

229:                                              ; preds = %224
  %230 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %228, i8 noundef signext 32)
          to label %231 unwind label %239

231:                                              ; preds = %229
  %232 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI2prEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #8
  %233 = getelementptr inbounds %struct.pr, ptr %232, i32 0, i32 1
  %234 = load i32, ptr %233, align 4, !tbaa !21
  %235 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %230, i32 noundef %234)
          to label %236 unwind label %239

236:                                              ; preds = %231
  %237 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %235, i8 noundef signext 10)
          to label %238 unwind label %239

238:                                              ; preds = %236
  store i32 0, ptr %1, align 4
  store i32 1, ptr %24, align 4
  br label %485

239:                                              ; preds = %236, %231, %229, %224
  %240 = landingpad { ptr, i32 }
          cleanup
  %241 = extractvalue { ptr, i32 } %240, 0
  store ptr %241, ptr %5, align 8
  %242 = extractvalue { ptr, i32 } %240, 1
  store i32 %242, ptr %6, align 4
  br label %490

243:                                              ; preds = %214
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  store i32 0, ptr %25, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %27) #8
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #8
  br label %244

244:                                              ; preds = %419, %243
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  %245 = call ptr @_ZNKSt3setI2prSt4lessIS0_ESaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %14) #8
  %246 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %28, i32 0, i32 0
  store ptr %245, ptr %246, align 8
  %247 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorI2prES3_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  br i1 %247, label %248, label %422

248:                                              ; preds = %244
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  %249 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI2prEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #8
  %250 = getelementptr inbounds %struct.pr, ptr %249, i32 0, i32 0
  %251 = load i32, ptr %250, align 4, !tbaa !22
  store i32 %251, ptr %29, align 4, !tbaa !8
  %252 = load i32, ptr %25, align 4, !tbaa !8
  %253 = icmp ne i32 %252, 0
  br i1 %253, label %254, label %267

254:                                              ; preds = %248
  %255 = load i32, ptr %29, align 4, !tbaa !8
  %256 = load i32, ptr %25, align 4, !tbaa !8
  %257 = icmp sgt i32 %255, %256
  br i1 %257, label %266, label %258

258:                                              ; preds = %254
  %259 = load i32, ptr %29, align 4, !tbaa !8
  %260 = load i32, ptr %25, align 4, !tbaa !8
  %261 = icmp eq i32 %259, %260
  br i1 %261, label %262, label %267

262:                                              ; preds = %258
  %263 = load i32, ptr %26, align 4, !tbaa !8
  %264 = load i32, ptr %25, align 4, !tbaa !8
  %265 = icmp sle i32 %263, %264
  br i1 %265, label %266, label %267

266:                                              ; preds = %262, %254
  store i32 21, ptr %24, align 4
  br label %417

267:                                              ; preds = %262, %258, %248
  call void @llvm.lifetime.start.p0(i64 24, ptr %30) #8
  call void @_ZNSt6vectorI2prSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #8
  %268 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt23_Rb_tree_const_iteratorI2prEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #8
  invoke void @_ZNSt6vectorI2prSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 4 dereferenceable(12) %268)
          to label %269 unwind label %286

269:                                              ; preds = %267
  br label %270

270:                                              ; preds = %285, %269
  %271 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorI2prEppEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %272 = call ptr @_ZNKSt3setI2prSt4lessIS0_ESaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %14) #8
  %273 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %31, i32 0, i32 0
  store ptr %272, ptr %273, align 8
  %274 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorI2prES3_(ptr noundef nonnull align 8 dereferenceable(8) %271, ptr noundef nonnull align 8 dereferenceable(8) %31) #8
  br i1 %274, label %275, label %281

275:                                              ; preds = %270
  %276 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI2prEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #8
  %277 = getelementptr inbounds %struct.pr, ptr %276, i32 0, i32 0
  %278 = load i32, ptr %277, align 4, !tbaa !22
  %279 = load i32, ptr %29, align 4, !tbaa !8
  %280 = icmp eq i32 %278, %279
  br label %281

281:                                              ; preds = %275, %270
  %282 = phi i1 [ false, %270 ], [ %280, %275 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  br i1 %282, label %283, label %290

283:                                              ; preds = %281
  %284 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt23_Rb_tree_const_iteratorI2prEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #8
  invoke void @_ZNSt6vectorI2prSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 4 dereferenceable(12) %284)
          to label %285 unwind label %286

285:                                              ; preds = %283
  br label %270, !llvm.loop !23

286:                                              ; preds = %290, %283, %267
  %287 = landingpad { ptr, i32 }
          cleanup
  %288 = extractvalue { ptr, i32 } %287, 0
  store ptr %288, ptr %5, align 8
  %289 = extractvalue { ptr, i32 } %287, 1
  store i32 %289, ptr %6, align 4
  br label %421

290:                                              ; preds = %281
  %291 = call ptr @_ZNSt6vectorI2prSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #8
  %292 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %32, i32 0, i32 0
  store ptr %291, ptr %292, align 8
  %293 = call ptr @_ZNSt6vectorI2prSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #8
  %294 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %33, i32 0, i32 0
  store ptr %293, ptr %294, align 8
  %295 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %32, i32 0, i32 0
  %296 = load ptr, ptr %295, align 8
  %297 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %33, i32 0, i32 0
  %298 = load ptr, ptr %297, align 8
  invoke void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP2prSt6vectorIS2_SaIS2_EEEEZ4mainE3$_0EvT_S9_T0_"(ptr %296, ptr %298)
          to label %299 unwind label %286

299:                                              ; preds = %290
  %300 = load i32, ptr %25, align 4, !tbaa !8
  %301 = icmp ne i32 %300, 0
  br i1 %301, label %307, label %302

302:                                              ; preds = %299
  %303 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI2prSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef 0) #8
  %304 = getelementptr inbounds %struct.pr, ptr %303, i32 0, i32 1
  %305 = load i32, ptr %304, align 4, !tbaa !21
  store i32 %305, ptr %25, align 4, !tbaa !8
  %306 = load i32, ptr %25, align 4, !tbaa !8
  store i32 %306, ptr %26, align 4, !tbaa !8
  br label %307

307:                                              ; preds = %302, %299
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #8
  store ptr %30, ptr %35, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #8
  %308 = load ptr, ptr %35, align 8, !tbaa !24
  %309 = call ptr @_ZNSt6vectorI2prSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %308) #8
  %310 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %36, i32 0, i32 0
  store ptr %309, ptr %310, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #8
  %311 = load ptr, ptr %35, align 8, !tbaa !24
  %312 = call ptr @_ZNSt6vectorI2prSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %311) #8
  %313 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %37, i32 0, i32 0
  store ptr %312, ptr %313, align 8
  br label %314

314:                                              ; preds = %328, %307
  %315 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP2prSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull align 8 dereferenceable(8) %37) #8
  br i1 %315, label %317, label %316

316:                                              ; preds = %314
  store i32 24, ptr %24, 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 %334

317:                                              ; preds = %314
  call void @llvm.lifetime.start.p0(i64 12, ptr %38) #8
  %318 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP2prSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %36) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %38, ptr align 4 %318, i64 12, i1 false), !tbaa.struct !19
  %319 = load i32, ptr %26, align 4, !tbaa !8
  %320 = load i32, ptr %25, align 4, !tbaa !8
  %321 = icmp eq i32 %319, %320
  br i1 %321, label %322, label %325

322:                                              ; preds = %317
  %323 = getelementptr inbounds %struct.pr, ptr %38, i32 0, i32 1
  %324 = load i32, ptr %323, align 4, !tbaa !21
  store i32 %324, ptr %26, align 4, !tbaa !8
  br label %325

325:                                              ; preds = %322, %317
  %326 = getelementptr inbounds %struct.pr, ptr %38, i32 0, i32 2
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef nonnull align 4 dereferenceable(4) %326)
          to label %327 unwind label %330

327:                                              ; preds = %325
  call void @llvm.lifetime.end.p0(i64 12, ptr %38) #8
  br label %328

328:                                              ; preds = %327
  %329 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP2prSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %36) #8
  br label %314

330:                                              ; preds = %325
  %331 = landingpad { ptr, i32 }
          cleanup
  %332 = extractvalue { ptr, i32 } %331, 0
  store ptr %332, ptr %5, align 8
  %333 = extractvalue { ptr, i32 } %331, 1
  store i32 %333, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 12, 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 %421

334:                                              ; preds = %316
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #8
  %335 = call ptr @_ZNKSt3setI2prSt4lessIS0_ESaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %14) #8
  %336 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %39, i32 0, i32 0
  store ptr %335, ptr %336, align 8
  %337 = call noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorI2prES3_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %39) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  br i1 %337, label %338, label %339

338:                                              ; preds = %334
  store i32 21, ptr %24, align 4
  br label %416

339:                                              ; preds = %334
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %42) #8
  %340 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI2prSaIS0_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %43, ptr align 4 %340, i64 12, i1 false), !tbaa.struct !19
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %44, ptr align 4 %43, i64 12, i1 false)
  %341 = getelementptr inbounds { i64, i32 }, ptr %44, i32 0, i32 0
  %342 = load i64, ptr %341, align 4
  %343 = getelementptr inbounds { i64, i32 }, ptr %44, i32 0, i32 1
  %344 = load i32, ptr %343, align 4
  invoke void @_ZN3priC2E2pr(ptr noundef nonnull align 4 dereferenceable(12) %42, i64 %342, i32 %344)
          to label %345 unwind label %373

345:                                              ; preds = %339
  %346 = invoke ptr @_ZNSt3setI3priSt4lessIS0_ESaIS0_EE4findERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %17, ptr noundef nonnull align 4 dereferenceable(12) %42)
          to label %347 unwind label %373

347:                                              ; preds = %345
  %348 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.18", ptr %41, i32 0, i32 0
  store ptr %346, ptr %348, align 8
  %349 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.18", ptr %41, i32 0, i32 0
  %350 = load ptr, ptr %349, align 8
  %351 = invoke ptr @_ZSt4nextISt23_Rb_tree_const_iteratorI3priEET_S3_NSt15iterator_traitsIS3_E15difference_typeE(ptr %350, i64 noundef 1)
          to label %352 unwind label %373

352:                                              ; preds = %347
  %353 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.18", ptr %40, i32 0, i32 0
  store ptr %351, ptr %353, align 8
  call void @llvm.lifetime.end.p0(i64 12, ptr %42) #8
  br label %354

354:                                              ; preds = %371, %352
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #8
  %355 = call ptr @_ZNKSt3setI3priSt4lessIS0_ESaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %17) #8
  %356 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.18", ptr %45, i32 0, i32 0
  store ptr %355, ptr %356, align 8
  %357 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorI3priES3_(ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef nonnull align 8 dereferenceable(8) %45) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #8
  br i1 %357, label %358, label %381

358:                                              ; preds = %354
  call void @llvm.lifetime.start.p0(i64 12, ptr %46) #8
  %359 = getelementptr inbounds %struct.pr, ptr %46, i32 0, i32 0
  %360 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI3priEptEv(ptr noundef nonnull align 8 dereferenceable(8) %40) #8
  %361 = getelementptr inbounds %struct.pri, ptr %360, i32 0, i32 0
  %362 = load i32, ptr %361, align 4, !tbaa !26
  store i32 %362, ptr %359, align 4, !tbaa !22
  %363 = getelementptr inbounds %struct.pr, ptr %46, i32 0, i32 1
  %364 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI3priEptEv(ptr noundef nonnull align 8 dereferenceable(8) %40) #8
  %365 = getelementptr inbounds %struct.pri, ptr %364, i32 0, i32 1
  %366 = load i32, ptr %365, align 4, !tbaa !28
  store i32 %366, ptr %363, align 4, !tbaa !21
  %367 = getelementptr inbounds %struct.pr, ptr %46, i32 0, i32 2
  %368 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI3priEptEv(ptr noundef nonnull align 8 dereferenceable(8) %40) #8
  %369 = getelementptr inbounds %struct.pri, ptr %368, i32 0, i32 2
  %370 = load i32, ptr %369, align 4, !tbaa !29
  store i32 %370, ptr %367, align 4, !tbaa !14
  invoke void @_ZNSt6vectorI2prSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 4 dereferenceable(12) %46)
          to label %371 unwind label %377

371:                                              ; preds = %358
  call void @llvm.lifetime.end.p0(i64 12, ptr %46) #8
  %372 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorI3priEppEv(ptr noundef nonnull align 8 dereferenceable(8) %40) #8
  br label %354, !llvm.loop !30

373:                                              ; preds = %347, %345, %339
  %374 = landingpad { ptr, i32 }
          cleanup
  %375 = extractvalue { ptr, i32 } %374, 0
  store ptr %375, ptr %5, align 8
  %376 = extractvalue { ptr, i32 } %374, 1
  store i32 %376, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %42) #8
  br label %420

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

381:                                              ; preds = %354
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #8
  store ptr %30, ptr %47, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #8
  %382 = load ptr, ptr %47, align 8, !tbaa !24
  %383 = call ptr @_ZNSt6vectorI2prSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %382) #8
  %384 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %48, i32 0, i32 0
  store ptr %383, ptr %384, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #8
  %385 = load ptr, ptr %47, align 8, !tbaa !24
  %386 = call ptr @_ZNSt6vectorI2prSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %385) #8
  %387 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %49, i32 0, i32 0
  store ptr %386, ptr %387, align 8
  br label %388

388:                                              ; preds = %402, %381
  %389 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP2prSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef nonnull align 8 dereferenceable(8) %49) #8
  br i1 %389, label %391, label %390

390:                                              ; preds = %388
  store i32 28, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #8
  br label %413

391:                                              ; preds = %388
  call void @llvm.lifetime.start.p0(i64 12, ptr %50) #8
  %392 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP2prSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %48) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %50, ptr align 4 %392, i64 12, i1 false), !tbaa.struct !19
  %393 = invoke noundef i64 @_ZNSt3setI2prSt4lessIS0_ESaIS0_EE5eraseERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %14, ptr noundef nonnull align 4 dereferenceable(12) %50)
          to label %394 unwind label %404

394:                                              ; preds = %391
  call void @llvm.lifetime.start.p0(i64 12, ptr %51) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %52, ptr align 4 %50, i64 12, i1 false), !tbaa.struct !19
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %53, ptr align 4 %52, i64 12, i1 false)
  %395 = getelementptr inbounds { i64, i32 }, ptr %53, i32 0, i32 0
  %396 = load i64, ptr %395, align 4
  %397 = getelementptr inbounds { i64, i32 }, ptr %53, i32 0, i32 1
  %398 = load i32, ptr %397, align 4
  invoke void @_ZN3priC2E2pr(ptr noundef nonnull align 4 dereferenceable(12) %51, i64 %396, i32 %398)
          to label %399 unwind label %408

399:                                              ; preds = %394
  %400 = invoke noundef i64 @_ZNSt3setI3priSt4lessIS0_ESaIS0_EE5eraseERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %17, ptr noundef nonnull align 4 dereferenceable(12) %51)
          to label %401 unwind label %408

401:                                              ; preds = %399
  call void @llvm.lifetime.end.p0(i64 12, ptr %51) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %50) #8
  br label %402

402:                                              ; preds = %401
  %403 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP2prSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %48) #8
  br label %388

404:                                              ; preds = %391
  %405 = landingpad { ptr, i32 }
          cleanup
  %406 = extractvalue { ptr, i32 } %405, 0
  store ptr %406, ptr %5, align 8
  %407 = extractvalue { ptr, i32 } %405, 1
  store i32 %407, ptr %6, align 4
  br label %412

408:                                              ; preds = %399, %394
  %409 = landingpad { ptr, i32 }
          cleanup
  %410 = extractvalue { ptr, i32 } %409, 0
  store ptr %410, ptr %5, align 8
  %411 = extractvalue { ptr, i32 } %409, 1
  store i32 %411, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %51) #8
  br label %412

412:                                              ; preds = %408, %404
  call void @llvm.lifetime.end.p0(i64 12, ptr %50) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #8
  br label %420

413:                                              ; preds = %390
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #8
  %414 = call ptr @_ZNKSt3setI2prSt4lessIS0_ESaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %14) #8
  %415 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %54, i32 0, i32 0
  store ptr %414, ptr %415, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %23, ptr align 8 %54, i64 8, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  store i32 0, ptr %24, align 4
  br label %416

416:                                              ; preds = %413, %338
  call void @_ZNSt6vectorI2prSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #8
  br label %417

417:                                              ; preds = %416, %266
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  %418 = load i32, ptr %24, align 4
  switch i32 %418, label %501 [
    i32 0, label %419
    i32 21, label %422
  ]

419:                                              ; preds = %417
  br label %244, !llvm.loop !32

420:                                              ; preds = %412, %377, %373
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  br label %421

421:                                              ; preds = %420, %330, %286
  call void @_ZNSt6vectorI2prSaIS0_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 4, ptr %29) #8
  br label %489

422:                                              ; preds = %417, %244
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #8
  store i32 0, ptr %55, align 4, !tbaa !8
  br label %423

423:                                              ; preds = %442, %422
  %424 = load i32, ptr %55, align 4, !tbaa !8
  %425 = sext i32 %424 to i64
  %426 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #8
  %427 = icmp ult i64 %425, %426
  br i1 %427, label %429, label %428

428:                                              ; preds = %423
  store i32 30, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #8
  br label %449

429:                                              ; preds = %423
  %430 = load i32, ptr %55, align 4, !tbaa !8
  %431 = sext i32 %430 to i64
  %432 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %431) #8
  %433 = load i32, ptr %432, align 4, !tbaa !8
  %434 = sext i32 %433 to i64
  %435 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %434) #8
  %436 = getelementptr inbounds %"struct.std::pair", ptr %435, i32 0, i32 0
  %437 = load i32, ptr %436, align 4, !tbaa !33
  %438 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %437)
          to label %439 unwind label %445

439:                                              ; preds = %429
  %440 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %438, i8 noundef signext 32)
          to label %441 unwind label %445

441:                                              ; preds = %439
  br label %442

442:                                              ; preds = %441
  %443 = load i32, ptr %55, align 4, !tbaa !8
  %444 = add nsw i32 %443, 1
  store i32 %444, ptr %55, align 4, !tbaa !8
  br label %423, !llvm.loop !35

445:                                              ; preds = %439, %429
  %446 = landingpad { ptr, i32 }
          cleanup
  %447 = extractvalue { ptr, i32 } %446, 0
  store ptr %447, ptr %5, align 8
  %448 = extractvalue { ptr, i32 } %446, 1
  store i32 %448, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #8
  br label %489

449:                                              ; preds = %428
  call void @llvm.lifetime.start.p0(i64 4, ptr %56) #8
  store i32 0, ptr %56, align 4, !tbaa !8
  br label %450

450:                                              ; preds = %477, %449
  %451 = load i32, ptr %56, align 4, !tbaa !8
  %452 = sext i32 %451 to i64
  %453 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #8
  %454 = icmp ult i64 %452, %453
  br i1 %454, label %456, label %455

455:                                              ; preds = %450
  store i32 33, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #8
  br label %484

456:                                              ; preds = %450
  %457 = load i32, ptr %56, align 4, !tbaa !8
  %458 = sext i32 %457 to i64
  %459 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %458) #8
  %460 = load i32, ptr %459, align 4, !tbaa !8
  %461 = sext i32 %460 to i64
  %462 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %461) #8
  %463 = getelementptr inbounds %"struct.std::pair", ptr %462, i32 0, i32 1
  %464 = load i32, ptr %463, align 4, !tbaa !36
  %465 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %464)
          to label %466 unwind label %480

466:                                              ; preds = %456
  %467 = load i32, ptr %56, align 4, !tbaa !8
  %468 = sext i32 %467 to i64
  %469 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #8
  %470 = sub i64 %469, 1
  %471 = icmp eq i64 %468, %470
  %472 = zext i1 %471 to i64
  %473 = getelementptr inbounds [3 x i8], ptr @.str, i64 0, i64 %472
  %474 = load i8, ptr %473, align 1, !tbaa !37
  %475 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %465, i8 noundef signext %474)
          to label %476 unwind label %480

476:                                              ; preds = %466
  br label %477

477:                                              ; preds = %476
  %478 = load i32, ptr %56, align 4, !tbaa !8
  %479 = add nsw i32 %478, 1
  store i32 %479, ptr %56, align 4, !tbaa !8
  br label %450, !llvm.loop !38

480:                                              ; preds = %466, %456
  %481 = landingpad { ptr, i32 }
          cleanup
  %482 = extractvalue { ptr, i32 } %481, 0
  store ptr %482, ptr %5, align 8
  %483 = extractvalue { ptr, i32 } %481, 1
  store i32 %483, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #8
  br label %489

484:                                              ; preds = %455
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  store i32 0, ptr %24, align 4
  br label %485

485:                                              ; preds = %484, %238
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @_ZNSt3setI3priSt4lessIS0_ESaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %17) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %17) #8
  call void @_ZNSt3setI2prSt4lessIS0_ESaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %14) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %14) #8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #8
  call void @_ZNSt6vectorI2prSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  %486 = load i32, ptr %24, align 4
  switch i32 %486, label %501 [
    i32 0, label %487
    i32 1, label %487
  ]

487:                                              ; preds = %485, %485
  %488 = load i32, ptr %1, align 4
  ret i32 %488

489:                                              ; preds = %480, %445, %421
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %490

490:                                              ; preds = %489, %239
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %491

491:                                              ; preds = %490, %210
  call void @_ZNSt3setI3priSt4lessIS0_ESaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %17) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %17) #8
  br label %492

492:                                              ; preds = %491, %182
  call void @_ZNSt3setI2prSt4lessIS0_ESaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %14) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %14) #8
  br label %493

493:                                              ; preds = %492, %159, %113, %93
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  br label %494

494:                                              ; preds = %493, %79
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #8
  call void @_ZNSt6vectorI2prSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  br label %495

495:                                              ; preds = %494, %75
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %496

496:                                              ; preds = %495
  %497 = load ptr, ptr %5, align 8
  %498 = load i32, ptr %6, align 4
  %499 = insertvalue { ptr, i32 } poison, ptr %497, 0
  %500 = insertvalue { ptr, i32 } %499, i32 %498, 1
  resume { ptr, i32 } %500

501:                                              ; preds = %485, %417
  unreachable
}

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI2prEptEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 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) #6

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP2prSt6vectorIS2_SaIS2_EEEEZ4mainE3$_0EvT_S9_T0_"(ptr, ptr) #6

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorI2prSaIS0_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_cxxneIP2prSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(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 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP2prSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt3setI3priSt4lessIS0_ESaIS0_EE4findERKS0_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(12)) #4 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNSt3setI2prSt4lessIS0_ESaIS0_EE5eraseERKS0_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(12)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNSt3setI3priSt4lessIS0_ESaIS0_EE5eraseERKS0_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(12)) #4 align 2

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

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

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

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

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

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

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

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

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


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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<pr, std::allocator<pr>>::_Vector_impl" }
%"struct.std::_Vector_base<pr, std::allocator<pr>>::_Vector_impl" = type { %"struct.std::_Vector_base<pr, std::allocator<pr>>::_Vector_impl_data" }
%"struct.std::_Vector_base<pr, std::allocator<pr>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.2" = type { i8 }
%"struct.std::pair" = type { i32, i32 }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<pr, pr, std::_Identity<pr>, std::less<pr>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<pr, pr, std::_Identity<pr>, std::less<pr>>::_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::set.10" = type { %"class.std::_Rb_tree.11" }
%"class.std::_Rb_tree.11" = type { %"struct.std::_Rb_tree<pri, pri, std::_Identity<pri>, std::less<pri>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<pri, pri, std::_Identity<pri>, std::less<pri>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%struct.pri = type { i32, i32, i32 }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"class.std::vector.20" = type { %"struct.std::_Vector_base.21" }
%"struct.std::_Vector_base.21" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%struct.pr = type { i32, i32, i32 }
%"struct.std::_Rb_tree_const_iterator.18" = type { ptr }

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

; 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::allocator", align 1
  %4 = alloca %"class.std::vector.0", align 8
  %5 = alloca %"class.std::allocator.2", align 1
  %6 = alloca %"struct.std::pair", align 4
  %7 = alloca %"class.std::set", align 8
  %8 = alloca %"class.std::set.10", align 8
  %9 = alloca %struct.pri, align 4
  %10 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %11 = alloca %"class.std::vector.20", align 8
  %12 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %13 = alloca %"class.std::vector", align 8
  %14 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca %struct.pr, align 4
  %18 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %19 = alloca %"struct.std::_Rb_tree_const_iterator.18", align 8
  %20 = alloca %struct.pri, align 4
  %21 = alloca %"struct.std::_Rb_tree_const_iterator.18", align 8
  %22 = alloca %struct.pr, align 4
  %23 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %25 = alloca %struct.pr, align 8
  %26 = alloca %struct.pri, align 4
  %27 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %28 = getelementptr i8, ptr %27, i64 -24
  %29 = load i64, ptr %28, align 8
  %30 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %29
  %31 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %30, ptr noundef null)
  %32 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  %33 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #8
  %34 = load i32, ptr %1, align 4, !tbaa !8
  %35 = sext i32 %34 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #8
  call void @_ZNSaI2prEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #8
  invoke void @_ZNSt6vectorI2prSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %35, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %36 unwind label %43

36:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorI2prED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #8
  %37 = load i32, ptr %1, align 4, !tbaa !8
  %38 = sext i32 %37 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #8
  call void @_ZNSaISt4pairIiiEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #8
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %38, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %39 unwind label %45

39:                                               ; preds = %36
  call void @_ZNSt15__new_allocatorISt4pairIiiEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #8
  %40 = load i32, ptr %1, align 4, !tbaa !8
  %41 = icmp sgt i32 %40, 0
  br i1 %41, label %.lr.ph, label %._crit_edge

.preheader126:                                    ; preds = %49
  %42 = icmp sgt i32 %50, 0
  br i1 %42, label %.lr.ph130, label %._crit_edge

43:                                               ; preds = %0
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorI2prED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #8
  br label %257

45:                                               ; preds = %36
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt4pairIiiEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #8
  br label %256

.lr.ph:                                           ; preds = %39, %49
  %indvars.iv = phi i64 [ %indvars.iv.next, %49 ], [ 0, %39 ]
  %47 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI2prSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #8
  %48 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %47)
          to label %49 unwind label %53

49:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %50 = load i32, ptr %1, align 4, !tbaa !8
  %51 = sext i32 %50 to i64
  %52 = icmp slt i64 %indvars.iv.next, %51
  br i1 %52, label %.lr.ph, label %.preheader126, !llvm.loop !11

53:                                               ; preds = %.lr.ph
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %255

.preheader125:                                    ; preds = %59
  %55 = icmp sgt i32 %60, 0
  br i1 %55, label %.lr.ph132, label %._crit_edge

.lr.ph130:                                        ; preds = %.preheader126, %59
  %indvars.iv167 = phi i64 [ %indvars.iv.next168, %59 ], [ 0, %.preheader126 ]
  %56 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI2prSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv167) #8
  %57 = getelementptr inbounds i8, ptr %56, i64 4
  %58 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %57)
          to label %59 unwind label %63

59:                                               ; preds = %.lr.ph130
  %indvars.iv.next168 = add nuw nsw i64 %indvars.iv167, 1
  %60 = load i32, ptr %1, align 4, !tbaa !8
  %61 = sext i32 %60 to i64
  %62 = icmp slt i64 %indvars.iv.next168, %61
  br i1 %62, label %.lr.ph130, label %.preheader125, !llvm.loop !13

63:                                               ; preds = %.lr.ph130
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %255

.preheader124:                                    ; preds = %.lr.ph132
  %65 = icmp sgt i32 %69, 0
  br i1 %65, label %.lr.ph134, label %._crit_edge

.lr.ph132:                                        ; preds = %.preheader125, %.lr.ph132
  %indvars.iv170 = phi i64 [ %indvars.iv.next171, %.lr.ph132 ], [ 0, %.preheader125 ]
  %66 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI2prSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv170) #8
  %67 = getelementptr inbounds i8, ptr %66, i64 8
  %68 = trunc nuw nsw i64 %indvars.iv170 to i32
  store i32 %68, ptr %67, align 4, !tbaa !14
  %indvars.iv.next171 = add nuw nsw i64 %indvars.iv170, 1
  %69 = load i32, ptr %1, align 4, !tbaa !8
  %70 = sext i32 %69 to i64
  %71 = icmp slt i64 %indvars.iv.next171, %70
  br i1 %71, label %.lr.ph132, label %.preheader124, !llvm.loop !16

._crit_edge:                                      ; preds = %.lr.ph134, %39, %.preheader126, %.preheader125, %.preheader124
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %7) #8
  call void @_ZNSt3setI2prSt4lessIS0_ESaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #8
  %72 = load i32, ptr %1, align 4, !tbaa !8
  %73 = icmp sgt i32 %72, 0
  br i1 %73, label %.lr.ph137, label %._crit_edge138

.lr.ph134:                                        ; preds = %.preheader124, %.lr.ph134
  %indvars.iv173 = phi i64 [ %indvars.iv.next174, %.lr.ph134 ], [ 0, %.preheader124 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  %74 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI2prSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv173) #8
  %75 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI2prSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv173) #8
  %76 = getelementptr inbounds i8, ptr %75, i64 4
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(4) %74, ptr noundef nonnull align 4 dereferenceable(4) %76)
  %77 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI2prSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv173) #8
  %78 = getelementptr inbounds i8, ptr %77, i64 8
  %79 = load i32, ptr %78, align 4, !tbaa !14
  %80 = sext i32 %79 to i64
  %81 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %80) #8
  %82 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %81, ptr noundef nonnull align 4 dereferenceable(8) %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  %indvars.iv.next174 = add nuw nsw i64 %indvars.iv173, 1
  %83 = load i32, ptr %1, align 4, !tbaa !8
  %84 = sext i32 %83 to i64
  %85 = icmp slt i64 %indvars.iv.next174, %84
  br i1 %85, label %.lr.ph134, label %._crit_edge, !llvm.loop !17

._crit_edge138:                                   ; preds = %90, %._crit_edge
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %8) #8
  call void @_ZNSt3setI3priSt4lessIS0_ESaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #8
  %86 = load i32, ptr %1, align 4, !tbaa !8
  %87 = icmp sgt i32 %86, 0
  br i1 %87, label %.lr.ph141, label %._crit_edge142

.lr.ph137:                                        ; preds = %._crit_edge, %90
  %indvars.iv176 = phi i64 [ %indvars.iv.next177, %90 ], [ 0, %._crit_edge ]
  %88 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI2prSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv176) #8
  %89 = invoke { ptr, i8 } @_ZNSt3setI2prSt4lessIS0_ESaIS0_EE6insertERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 4 dereferenceable(12) %88)
          to label %90 unwind label %94

90:                                               ; preds = %.lr.ph137
  %indvars.iv.next177 = add nuw nsw i64 %indvars.iv176, 1
  %91 = load i32, ptr %1, align 4, !tbaa !8
  %92 = sext i32 %91 to i64
  %93 = icmp slt i64 %indvars.iv.next177, %92
  br i1 %93, label %.lr.ph137, label %._crit_edge138, !llvm.loop !18

94:                                               ; preds = %.lr.ph137
  %95 = landingpad { ptr, i32 }
          cleanup
  br label %254

._crit_edge142:                                   ; preds = %104, %._crit_edge138
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  %96 = call ptr @_ZNKSt3setI2prSt4lessIS0_ESaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %7) #8
  store ptr %96, ptr %10, align 8
  %97 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI2prEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  %98 = getelementptr inbounds i8, ptr %97, i64 4
  %99 = load i32, ptr %98, align 4, !tbaa !19
  %100 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI2prEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  %101 = load i32, ptr %100, align 4, !tbaa !20
  %.not = icmp sgt i32 %99, %101
  br i1 %.not, label %125, label %110

.lr.ph141:                                        ; preds = %._crit_edge138, %104
  %indvars.iv179 = phi i64 [ %indvars.iv.next180, %104 ], [ 0, %._crit_edge138 ]
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #8
  %102 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI2prSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv179) #8
  %.sroa.036.0.copyload = load i64, ptr %102, align 4
  %.sroa.237.0..sroa_idx = getelementptr inbounds i8, ptr %102, i64 8
  %.sroa.237.0.copyload = load i32, ptr %.sroa.237.0..sroa_idx, align 4, !tbaa !8
  call void @_ZN3priC2E2pr(ptr noundef nonnull align 4 dereferenceable(12) %9, i64 %.sroa.036.0.copyload, i32 %.sroa.237.0.copyload)
  %103 = invoke { ptr, i8 } @_ZNSt3setI3priSt4lessIS0_ESaIS0_EE6insertEOS0_(ptr noundef nonnull align 8 dereferenceable(48) %8, ptr noundef nonnull align 4 dereferenceable(12) %9)
          to label %104 unwind label %108

104:                                              ; preds = %.lr.ph141
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #8
  %indvars.iv.next180 = add nuw nsw i64 %indvars.iv179, 1
  %105 = load i32, ptr %1, align 4, !tbaa !8
  %106 = sext i32 %105 to i64
  %107 = icmp slt i64 %indvars.iv.next180, %106
  br i1 %107, label %.lr.ph141, label %._crit_edge142, !llvm.loop !21

108:                                              ; preds = %.lr.ph141
  %109 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #8
  br label %253

110:                                              ; preds = %._crit_edge142
  %111 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI2prEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  %112 = load i32, ptr %111, align 4, !tbaa !20
  %113 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %112)
          to label %114 unwind label %123

114:                                              ; preds = %110
  %115 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %113, i8 noundef signext 32)
          to label %116 unwind label %123

116:                                              ; preds = %114
  %117 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI2prEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  %118 = getelementptr inbounds i8, ptr %117, i64 4
  %119 = load i32, ptr %118, align 4, !tbaa !19
  %120 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %115, i32 noundef %119)
          to label %121 unwind label %123

121:                                              ; preds = %116
  %122 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %120, i8 noundef signext 10)
          to label %250 unwind label %123

123:                                              ; preds = %121, %116, %114, %110
  %124 = landingpad { ptr, i32 }
          cleanup
  br label %252

125:                                              ; preds = %._crit_edge142
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #8
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  %126 = call ptr @_ZNKSt3setI2prSt4lessIS0_ESaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %7) #8
  store ptr %126, ptr %12, align 8
  %127 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorI2prES3_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  br i1 %127, label %.lr.ph156, label %.thread

.lr.ph156:                                        ; preds = %125
  %128 = getelementptr inbounds i8, ptr %17, i64 4
  %129 = getelementptr inbounds i8, ptr %17, i64 8
  %130 = getelementptr inbounds i8, ptr %22, i64 4
  %131 = getelementptr inbounds i8, ptr %22, i64 8
  %.sroa.29.0..sroa_idx = getelementptr inbounds i8, ptr %25, i64 8
  br label %132

132:                                              ; preds = %.lr.ph156, %._crit_edge152
  %.085154 = phi i32 [ 0, %.lr.ph156 ], [ %.186, %._crit_edge152 ]
  %.088153 = phi i32 [ undef, %.lr.ph156 ], [ %.290.lcssa, %._crit_edge152 ]
  %133 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI2prEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  %134 = load i32, ptr %133, align 4, !tbaa !20
  %.not96 = icmp eq i32 %.085154, 0
  br i1 %.not96, label %139, label %135

135:                                              ; preds = %132
  %136 = icmp sgt i32 %134, %.085154
  br i1 %136, label %.thread, label %137

137:                                              ; preds = %135
  %138 = icmp ne i32 %134, %.085154
  %.not97 = icmp sgt i32 %.088153, %.085154
  %or.cond = select i1 %138, i1 true, i1 %.not97
  br i1 %or.cond, label %139, label %.thread

139:                                              ; preds = %137, %132
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #8
  call void @_ZNSt6vectorI2prSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  %140 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt23_Rb_tree_const_iteratorI2prEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  invoke void @_ZNSt6vectorI2prSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 4 dereferenceable(12) %140)
          to label %.preheader122 unwind label %.loopexit.split-lp

.preheader122:                                    ; preds = %139, %148
  %141 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorI2prEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #8
  %142 = call ptr @_ZNKSt3setI2prSt4lessIS0_ESaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %7) #8
  store ptr %142, ptr %14, align 8
  %143 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorI2prES3_(ptr noundef nonnull align 8 dereferenceable(8) %141, ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  br i1 %143, label %144, label %.critedge

144:                                              ; preds = %.preheader122
  %145 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI2prEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  %146 = load i32, ptr %145, align 4, !tbaa !20
  %147 = icmp eq i32 %146, %134
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  br i1 %147, label %148, label %.loopexit

148:                                              ; preds = %144
  %149 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt23_Rb_tree_const_iteratorI2prEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  invoke void @_ZNSt6vectorI2prSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 4 dereferenceable(12) %149)
          to label %.preheader122 unwind label %.loopexit123, !llvm.loop !22

.loopexit123:                                     ; preds = %148
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %214

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

.critedge:                                        ; preds = %.preheader122
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  br label %.loopexit

.loopexit:                                        ; preds = %144, %.critedge
  %150 = call ptr @_ZNSt6vectorI2prSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  %151 = call ptr @_ZNSt6vectorI2prSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  invoke void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP2prSt6vectorIS2_SaIS2_EEEEZ4mainE3$_0EvT_S9_T0_"(ptr %150, ptr %151)
          to label %152 unwind label %.loopexit.split-lp

152:                                              ; preds = %.loopexit
  br i1 %.not96, label %153, label %157

153:                                              ; preds = %152
  %154 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI2prSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef 0) #8
  %155 = getelementptr inbounds i8, ptr %154, i64 4
  %156 = load i32, ptr %155, align 4, !tbaa !19
  br label %157

157:                                              ; preds = %153, %152
  %.189 = phi i32 [ %.088153, %152 ], [ %156, %153 ]
  %.186 = phi i32 [ %.085154, %152 ], [ %156, %153 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #8
  %158 = call ptr @_ZNSt6vectorI2prSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  store ptr %158, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #8
  %159 = call ptr @_ZNSt6vectorI2prSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  store ptr %159, ptr %16, align 8
  %160 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP2prSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  br i1 %160, label %.lr.ph145, label %._crit_edge146

._crit_edge146:                                   ; preds = %165, %157
  %.290.lcssa = phi i32 [ %.189, %157 ], [ %.391, %165 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #8
  %161 = call ptr @_ZNKSt3setI2prSt4lessIS0_ESaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %7) #8
  store ptr %161, ptr %18, align 8
  %162 = call noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorI2prES3_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #8
  br i1 %162, label %.thread119, label %171

.thread119:                                       ; preds = %._crit_edge146
  call void @_ZNSt6vectorI2prSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #8
  br label %.thread

.lr.ph145:                                        ; preds = %157, %165
  %.290143 = phi i32 [ %.391, %165 ], [ %.189, %157 ]
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %17) #8
  %163 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP2prSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %17, ptr noundef nonnull align 4 dereferenceable(12) %163, i64 12, i1 false), !tbaa.struct !23
  %164 = load i32, ptr %128, align 4
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 4 dereferenceable(4) %129)
          to label %165 unwind label %169

165:                                              ; preds = %.lr.ph145
  %166 = icmp eq i32 %.290143, %.186
  %.391 = select i1 %166, i32 %164, i32 %.290143
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %17) #8
  %167 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP2prSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  %168 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP2prSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  br i1 %168, label %.lr.ph145, label %._crit_edge146

169:                                              ; preds = %.lr.ph145
  %170 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  br label %214

171:                                              ; preds = %._crit_edge146
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %20) #8
  %172 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI2prSaIS0_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  %.sroa.013.0.copyload = load i64, ptr %172, align 4
  %.sroa.214.0..sroa_idx = getelementptr inbounds i8, ptr %172, i64 8
  %.sroa.214.0.copyload = load i32, ptr %.sroa.214.0..sroa_idx, align 4, !tbaa !8
  call void @_ZN3priC2E2pr(ptr noundef nonnull align 4 dereferenceable(12) %20, i64 %.sroa.013.0.copyload, i32 %.sroa.214.0.copyload)
  %173 = invoke ptr @_ZNSt3setI3priSt4lessIS0_ESaIS0_EE4findERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %8, ptr noundef nonnull align 4 dereferenceable(12) %20)
          to label %174 unwind label %191

174:                                              ; preds = %171
  %175 = invoke ptr @_ZSt4nextISt23_Rb_tree_const_iteratorI3priEET_S3_NSt15iterator_traitsIS3_E15difference_typeE(ptr %173, i64 noundef 1)
          to label %176 unwind label %191

176:                                              ; preds = %174
  store ptr %175, ptr %19, align 8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %20) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #8
  %177 = call ptr @_ZNKSt3setI3priSt4lessIS0_ESaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %8) #8
  store ptr %177, ptr %21, align 8
  %178 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorI3priES3_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #8
  br i1 %178, label %.lr.ph148, label %._crit_edge149

.lr.ph148:                                        ; preds = %176, %187
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %22) #8
  %179 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI3priEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #8
  %180 = load i32, ptr %179, align 4, !tbaa !24
  store i32 %180, ptr %22, align 4, !tbaa !20
  %181 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI3priEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #8
  %182 = getelementptr inbounds i8, ptr %181, i64 4
  %183 = load i32, ptr %182, align 4, !tbaa !26
  store i32 %183, ptr %130, align 4, !tbaa !19
  %184 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI3priEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #8
  %185 = getelementptr inbounds i8, ptr %184, i64 8
  %186 = load i32, ptr %185, align 4, !tbaa !27
  store i32 %186, ptr %131, align 4, !tbaa !14
  invoke void @_ZNSt6vectorI2prSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 4 dereferenceable(12) %22)
          to label %187 unwind label %193

187:                                              ; preds = %.lr.ph148
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %22) #8
  %188 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorI3priEppEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #8
  %189 = call ptr @_ZNKSt3setI3priSt4lessIS0_ESaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %8) #8
  store ptr %189, ptr %21, align 8
  %190 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorI3priES3_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #8
  br i1 %190, label %.lr.ph148, label %._crit_edge149, !llvm.loop !28

191:                                              ; preds = %174, %171
  %192 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %20) #8
  br label %213

193:                                              ; preds = %.lr.ph148
  %194 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %22) #8
  br label %213

._crit_edge149:                                   ; preds = %187, %176
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #8
  %195 = call ptr @_ZNSt6vectorI2prSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  store ptr %195, ptr %23, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #8
  %196 = call ptr @_ZNSt6vectorI2prSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  store ptr %196, ptr %24, align 8
  %197 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP2prSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #8
  br i1 %197, label %.lr.ph151, label %._crit_edge152

.lr.ph151:                                        ; preds = %._crit_edge149, %202
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %25) #8
  %198 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP2prSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %25, ptr noundef nonnull align 4 dereferenceable(12) %198, i64 12, i1 false), !tbaa.struct !23
  %199 = invoke noundef i64 @_ZNSt3setI2prSt4lessIS0_ESaIS0_EE5eraseERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 4 dereferenceable(12) %25)
          to label %200 unwind label %205

200:                                              ; preds = %.lr.ph151
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %26) #8
  %.sroa.08.0.copyload = load i64, ptr %25, align 8
  %.sroa.29.0.copyload = load i32, ptr %.sroa.29.0..sroa_idx, align 8, !tbaa !8
  call void @_ZN3priC2E2pr(ptr noundef nonnull align 4 dereferenceable(12) %26, i64 %.sroa.08.0.copyload, i32 %.sroa.29.0.copyload)
  %201 = invoke noundef i64 @_ZNSt3setI3priSt4lessIS0_ESaIS0_EE5eraseERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %8, ptr noundef nonnull align 4 dereferenceable(12) %26)
          to label %202 unwind label %207

202:                                              ; preds = %200
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %26) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %25) #8
  %203 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP2prSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #8
  %204 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP2prSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #8
  br i1 %204, label %.lr.ph151, label %._crit_edge152

205:                                              ; preds = %.lr.ph151
  %206 = landingpad { ptr, i32 }
          cleanup
  br label %209

207:                                              ; preds = %200
  %208 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %26) #8
  br label %209

209:                                              ; preds = %207, %205
  %.pn = phi { ptr, i32 } [ %208, %207 ], [ %206, %205 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #8
  br label %213

._crit_edge152:                                   ; preds = %202, %._crit_edge149
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #8
  %210 = call ptr @_ZNKSt3setI2prSt4lessIS0_ESaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %7) #8
  store ptr %210, ptr %10, align 8, !tbaa !29
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #8
  call void @_ZNSt6vectorI2prSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  %211 = call ptr @_ZNKSt3setI2prSt4lessIS0_ESaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %7) #8
  store ptr %211, ptr %12, align 8
  %212 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorI2prES3_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  br i1 %212, label %132, label %.thread

213:                                              ; preds = %209, %193, %191
  %.pn99 = phi { ptr, i32 } [ %194, %193 ], [ %.pn, %209 ], [ %192, %191 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #8
  br label %214

214:                                              ; preds = %.loopexit123, %.loopexit.split-lp, %213, %169
  %.pn101 = phi { ptr, i32 } [ %170, %169 ], [ %.pn99, %213 ], [ %lpad.loopexit, %.loopexit123 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt6vectorI2prSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #8
  br label %251

.thread:                                          ; preds = %._crit_edge152, %137, %135, %125, %.thread119
  %215 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  %.not164 = icmp eq i64 %215, 0
  br i1 %.not164, label %.preheader, label %.lr.ph160

.preheader:                                       ; preds = %225, %.thread
  %216 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  %.not165 = icmp eq i64 %216, 0
  br i1 %.not165, label %._crit_edge163, label %.lr.ph162

.lr.ph160:                                        ; preds = %.thread, %225
  %indvars.iv182 = phi i64 [ %indvars.iv.next183, %225 ], [ 0, %.thread ]
  %217 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv182) #8
  %218 = load i32, ptr %217, align 4, !tbaa !8
  %219 = sext i32 %218 to i64
  %220 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %219) #8
  %221 = load i32, ptr %220, align 4, !tbaa !31
  %222 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %221)
          to label %223 unwind label %228

223:                                              ; preds = %.lr.ph160
  %224 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %222, i8 noundef signext 32)
          to label %225 unwind label %228

225:                                              ; preds = %223
  %indvars.iv.next183 = add nuw nsw i64 %indvars.iv182, 1
  %226 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  %227 = icmp ugt i64 %226, %indvars.iv.next183
  br i1 %227, label %.lr.ph160, label %.preheader, !llvm.loop !33

228:                                              ; preds = %223, %.lr.ph160
  %229 = landingpad { ptr, i32 }
          cleanup
  br label %251

._crit_edge163:                                   ; preds = %245, %.preheader
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #8
  br label %250

.lr.ph162:                                        ; preds = %.preheader, %245
  %indvars.iv185 = phi i64 [ %indvars.iv.next186, %245 ], [ 0, %.preheader ]
  %230 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv185) #8
  %231 = load i32, ptr %230, align 4, !tbaa !8
  %232 = sext i32 %231 to i64
  %233 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %232) #8
  %234 = getelementptr inbounds i8, ptr %233, i64 4
  %235 = load i32, ptr %234, align 4, !tbaa !34
  %236 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %235)
          to label %237 unwind label %248

237:                                              ; preds = %.lr.ph162
  %238 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  %239 = add i64 %238, -1
  %240 = icmp eq i64 %239, %indvars.iv185
  %241 = zext i1 %240 to i64
  %242 = getelementptr inbounds [3 x i8], ptr @.str, i64 0, i64 %241
  %243 = load i8, ptr %242, align 1, !tbaa !35
  %244 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %236, i8 noundef signext %243)
          to label %245 unwind label %248

245:                                              ; preds = %237
  %indvars.iv.next186 = add nuw nsw i64 %indvars.iv185, 1
  %246 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  %247 = icmp ugt i64 %246, %indvars.iv.next186
  br i1 %247, label %.lr.ph162, label %._crit_edge163, !llvm.loop !36

248:                                              ; preds = %237, %.lr.ph162
  %249 = landingpad { ptr, i32 }
          cleanup
  br label %251

250:                                              ; preds = %121, %._crit_edge163
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  call void @_ZNSt3setI3priSt4lessIS0_ESaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #8
  call void @_ZNSt3setI2prSt4lessIS0_ESaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #8
  call void @_ZNSt6vectorI2prSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  ret i32 0

251:                                              ; preds = %248, %228, %214
  %.pn103 = phi { ptr, i32 } [ %229, %228 ], [ %249, %248 ], [ %.pn101, %214 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #8
  br label %252

252:                                              ; preds = %251, %123
  %.pn105 = phi { ptr, i32 } [ %124, %123 ], [ %.pn103, %251 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  br label %253

253:                                              ; preds = %252, %108
  %.pn107 = phi { ptr, i32 } [ %109, %108 ], [ %.pn105, %252 ]
  call void @_ZNSt3setI3priSt4lessIS0_ESaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #8
  br label %254

254:                                              ; preds = %253, %94
  %.pn109 = phi { ptr, i32 } [ %95, %94 ], [ %.pn107, %253 ]
  call void @_ZNSt3setI2prSt4lessIS0_ESaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #8
  br label %255

255:                                              ; preds = %254, %63, %53
  %.pn111 = phi { ptr, i32 } [ %54, %53 ], [ %64, %63 ], [ %.pn109, %254 ]
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  br label %256

256:                                              ; preds = %255, %45
  %.pn111.pn = phi { ptr, i32 } [ %.pn111, %255 ], [ %46, %45 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #8
  call void @_ZNSt6vectorI2prSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  br label %257

257:                                              ; preds = %256, %43
  %.pn111.pn.pn = phi { ptr, i32 } [ %.pn111.pn, %256 ], [ %44, %43 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn111.pn.pn
}

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setI3priSt4lessIS0_ESaIS0_EE6insertEOS0_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #4 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) #5

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI2prEptEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 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 #6

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorI2prES3_(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 ptr @_ZNKSt3setI2prSt4lessIS0_ESaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP2prSt6vectorIS2_SaIS2_EEEEZ4mainE3$_0EvT_S9_T0_"(ptr, ptr) local_unnamed_addr #6

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorI2prSaIS0_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_cxxneIP2prSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(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 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP2prSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt4nextISt23_Rb_tree_const_iteratorI3priEET_S3_NSt15iterator_traitsIS3_E15difference_typeE(ptr, i64 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt3setI3priSt4lessIS0_ESaIS0_EE4findERKS0_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorI3priES3_(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 ptr @_ZNKSt3setI3priSt4lessIS0_ESaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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