; LLVM IR from Izaron/ACM-ICPC :: Russian Council of School Olympiads (R.S.O.Sh.)/Zaoch/2017 (tiramisu)

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

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@temp = external dso_local global %"class.std::vector", align 8
@kurtak = external dso_local global %"class.std::vector.0", align 8
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z9temp_sortii(i32 noundef, i32 noundef) #0

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z13kurtak_sort_fii(i32 noundef, i32 noundef) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z13kurtak_sort_sii(i32 noundef, i32 noundef) #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3geni(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, i32 noundef) #1

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::vector", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca %"class.std::vector", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"class.std::set", align 8
  %18 = alloca %"class.std::vector.8", align 8
  %19 = alloca %"class.std::allocator.10", align 1
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca %"struct.std::pair.13", align 8
  %26 = alloca i32, align 4
  %27 = alloca %"class.std::vector", align 8
  %28 = alloca ptr, align 8
  %29 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %30 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca %"class.std::vector", align 8
  %34 = alloca i32, align 4
  %35 = alloca %"class.std::allocator", align 1
  %36 = alloca [3 x %"class.std::set"], align 16
  %37 = alloca i32, align 4
  %38 = alloca %"struct.std::pair.13", align 8
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %42 = alloca i32, align 4
  %43 = alloca ptr, align 8
  %44 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %45 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %46 = alloca i32, align 4
  %47 = alloca i32, align 4
  %48 = alloca i32, align 4
  %49 = alloca i32, align 4
  %50 = alloca %"class.__gnu_cxx::__normal_iterator.15", align 8
  %51 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %52 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %53 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %54 = alloca i32, align 4
  %55 = alloca i32, align 4
  %56 = alloca %"struct.std::pair.13", align 8
  %57 = alloca ptr, align 8
  %58 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %59 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %60 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %61 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef @m)
  %62 = load i32, ptr @n, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  call void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) @temp, i64 noundef %63)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %64

64:                                               ; preds = %74, %0
  %65 = load i32, ptr %2, align 4, !tbaa !5
  %66 = load i32, ptr @n, align 4, !tbaa !5
  %67 = icmp slt i32 %65, %66
  br i1 %67, label %69, label %68

68:                                               ; preds = %64
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %77

69:                                               ; preds = %64
  %70 = load i32, ptr %2, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @temp, i64 noundef %71) #7
  %73 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.3, ptr noundef %72)
  br label %74

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

77:                                               ; preds = %68
  %78 = load i32, ptr @m, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) @kurtak, i64 noundef %79)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %80

80:                                               ; preds = %95, %77
  %81 = load i32, ptr %3, align 4, !tbaa !5
  %82 = load i32, ptr @m, align 4, !tbaa !5
  %83 = icmp slt i32 %81, %82
  br i1 %83, label %85, label %84

84:                                               ; preds = %80
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  br label %98

85:                                               ; preds = %80
  %86 = load i32, ptr %3, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @kurtak, i64 noundef %87) #7
  %89 = getelementptr inbounds %"struct.std::pair", ptr %88, i32 0, i32 0
  %90 = load i32, ptr %3, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @kurtak, i64 noundef %91) #7
  %93 = getelementptr inbounds %"struct.std::pair", ptr %92, i32 0, i32 1
  %94 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %89, ptr noundef %93)
  br label %95

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

98:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 24, ptr %4) #7
  %99 = load i32, ptr @n, align 4, !tbaa !5
  call void @_Z3geni(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %4, i32 noundef %99)
  %100 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %101 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %5, i32 0, i32 0
  store ptr %100, ptr %101, align 8
  %102 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %103 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
  store ptr %102, ptr %103, align 8
  %104 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %5, i32 0, i32 0
  %105 = load ptr, ptr %104, align 8
  %106 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
  %107 = load ptr, ptr %106, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEPFbiiEEvT_S9_T0_(ptr %105, ptr %107, ptr noundef @_Z9temp_sortii)
          to label %108 unwind label %139

108:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #7
  %109 = load i32, ptr @m, align 4, !tbaa !5
  invoke void @_Z3geni(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %9, i32 noundef %109)
          to label %110 unwind label %143

110:                                              ; preds = %108
  %111 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  %112 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %111, ptr %112, align 8
  %113 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  %114 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
  store ptr %113, ptr %114, align 8
  %115 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  %116 = load ptr, ptr %115, align 8
  %117 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
  %118 = load ptr, ptr %117, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEPFbiiEEvT_S9_T0_(ptr %116, ptr %118, ptr noundef @_Z13kurtak_sort_fii)
          to label %119 unwind label %147

119:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #7
  %120 = load i32, ptr @m, align 4, !tbaa !5
  invoke void @_Z3geni(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %12, i32 noundef %120)
          to label %121 unwind label %151

121:                                              ; preds = %119
  %122 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  %123 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %122, ptr %123, align 8
  %124 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  %125 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %124, ptr %125, align 8
  %126 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  %127 = load ptr, ptr %126, align 8
  %128 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  %129 = load ptr, ptr %128, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEPFbiiEEvT_S9_T0_(ptr %127, ptr %129, ptr noundef @_Z13kurtak_sort_sii)
          to label %130 unwind label %155

130:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %17) #7
  call void @_ZNSt3setIiSt4lessIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %17) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #7
  %131 = load i32, ptr @n, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #7
  call void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #7
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %132, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %133 unwind label %159

133:                                              ; preds = %130
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %134

134:                                              ; preds = %307, %133
  %135 = load i32, ptr %20, align 4, !tbaa !5
  %136 = load i32, ptr @n, align 4, !tbaa !5
  %137 = icmp slt i32 %135, %136
  br i1 %137, label %163, label %138

138:                                              ; preds = %134
  store i32 8, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %312

139:                                              ; preds = %98
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %7, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %8, align 4
  br label %673

143:                                              ; preds = %108
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %7, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %8, align 4
  br label %672

147:                                              ; preds = %110
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %7, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %8, align 4
  br label %671

151:                                              ; preds = %119
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %7, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %8, align 4
  br label %670

155:                                              ; preds = %121
  %156 = landingpad { ptr, i32 }
          cleanup
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %7, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %8, align 4
  br label %669

159:                                              ; preds = %130
  %160 = landingpad { ptr, i32 }
          cleanup
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %7, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %8, align 4
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #7
  br label %668

163:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %164 = load i32, ptr %20, align 4, !tbaa !5
  store i32 %164, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %165 = load i32, ptr %20, align 4, !tbaa !5
  store i32 %165, ptr %23, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %166 = load i32, ptr %20, align 4, !tbaa !5
  %167 = sext i32 %166 to i64
  %168 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %167) #7
  %169 = load i32, ptr %168, align 4, !tbaa !5
  %170 = sext i32 %169 to i64
  %171 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @temp, i64 noundef %170) #7
  %172 = load i32, ptr %171, align 4, !tbaa !5
  store i32 %172, ptr %24, align 4, !tbaa !5
  br label %173

173:                                              ; preds = %189, %163
  %174 = load i32, ptr %23, align 4, !tbaa !5
  %175 = load i32, ptr @n, align 4, !tbaa !5
  %176 = icmp slt i32 %174, %175
  br i1 %176, label %177, label %187

177:                                              ; preds = %173
  %178 = load i32, ptr %23, align 4, !tbaa !5
  %179 = sext i32 %178 to i64
  %180 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %179) #7
  %181 = load i32, ptr %180, align 4, !tbaa !5
  %182 = sext i32 %181 to i64
  %183 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @temp, i64 noundef %182) #7
  %184 = load i32, ptr %183, align 4, !tbaa !5
  %185 = load i32, ptr %24, align 4, !tbaa !5
  %186 = icmp eq i32 %184, %185
  br label %187

187:                                              ; preds = %177, %173
  %188 = phi i1 [ false, %173 ], [ %186, %177 ]
  br i1 %188, label %189, label %192

189:                                              ; preds = %187
  %190 = load i32, ptr %23, align 4, !tbaa !5
  %191 = add nsw i32 %190, 1
  store i32 %191, ptr %23, align 4, !tbaa !5
  br label %173, !llvm.loop !12

192:                                              ; preds = %187
  %193 = load i32, ptr %23, align 4, !tbaa !5
  %194 = add nsw i32 %193, -1
  store i32 %194, ptr %23, align 4, !tbaa !5
  br label %195

195:                                              ; preds = %217, %192
  %196 = load i32, ptr %15, align 4, !tbaa !5
  %197 = load i32, ptr @m, align 4, !tbaa !5
  %198 = icmp slt i32 %196, %197
  br i1 %198, label %199, label %210

199:                                              ; preds = %195
  %200 = load i32, ptr %15, align 4, !tbaa !5
  %201 = sext i32 %200 to i64
  %202 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %201) #7
  %203 = load i32, ptr %202, align 4, !tbaa !5
  %204 = sext i32 %203 to i64
  %205 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @kurtak, i64 noundef %204) #7
  %206 = getelementptr inbounds %"struct.std::pair", ptr %205, i32 0, i32 0
  %207 = load i32, ptr %206, align 4, !tbaa !13
  %208 = load i32, ptr %24, align 4, !tbaa !5
  %209 = icmp sle i32 %207, %208
  br label %210

210:                                              ; preds = %199, %195
  %211 = phi i1 [ false, %195 ], [ %209, %199 ]
  br i1 %211, label %212, label %228

212:                                              ; preds = %210
  %213 = load i32, ptr %15, align 4, !tbaa !5
  %214 = sext i32 %213 to i64
  %215 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %214) #7
  %216 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %17, ptr noundef nonnull align 4 dereferenceable(4) %215)
          to label %217 unwind label %224

217:                                              ; preds = %212
  %218 = getelementptr inbounds { ptr, i8 }, ptr %25, i32 0, i32 0
  %219 = extractvalue { ptr, i8 } %216, 0
  store ptr %219, ptr %218, align 8
  %220 = getelementptr inbounds { ptr, i8 }, ptr %25, i32 0, i32 1
  %221 = extractvalue { ptr, i8 } %216, 1
  store i8 %221, ptr %220, align 8
  %222 = load i32, ptr %15, align 4, !tbaa !5
  %223 = add nsw i32 %222, 1
  store i32 %223, ptr %15, align 4, !tbaa !5
  br label %195, !llvm.loop !15

224:                                              ; preds = %246, %212
  %225 = landingpad { ptr, i32 }
          cleanup
  %226 = extractvalue { ptr, i32 } %225, 0
  store ptr %226, ptr %7, align 8
  %227 = extractvalue { ptr, i32 } %225, 1
  store i32 %227, ptr %8, align 4
  br label %311

228:                                              ; preds = %210
  br label %229

229:                                              ; preds = %251, %228
  %230 = load i32, ptr %16, align 4, !tbaa !5
  %231 = load i32, ptr @m, align 4, !tbaa !5
  %232 = icmp slt i32 %230, %231
  br i1 %232, label %233, label %244

233:                                              ; preds = %229
  %234 = load i32, ptr %16, align 4, !tbaa !5
  %235 = sext i32 %234 to i64
  %236 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %235) #7
  %237 = load i32, ptr %236, align 4, !tbaa !5
  %238 = sext i32 %237 to i64
  %239 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @kurtak, i64 noundef %238) #7
  %240 = getelementptr inbounds %"struct.std::pair", ptr %239, i32 0, i32 1
  %241 = load i32, ptr %240, align 4, !tbaa !16
  %242 = load i32, ptr %24, align 4, !tbaa !5
  %243 = icmp slt i32 %241, %242
  br label %244

244:                                              ; preds = %233, %229
  %245 = phi i1 [ false, %229 ], [ %243, %233 ]
  br i1 %245, label %246, label %254

246:                                              ; preds = %244
  %247 = load i32, ptr %16, align 4, !tbaa !5
  %248 = sext i32 %247 to i64
  %249 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %248) #7
  %250 = invoke noundef i64 @_ZNSt3setIiSt4lessIiESaIiEE5eraseERKi(ptr noundef nonnull align 8 dereferenceable(48) %17, ptr noundef nonnull align 4 dereferenceable(4) %249)
          to label %251 unwind label %224

251:                                              ; preds = %246
  %252 = load i32, ptr %16, align 4, !tbaa !5
  %253 = add nsw i32 %252, 1
  store i32 %253, ptr %16, align 4, !tbaa !5
  br label %229, !llvm.loop !17

254:                                              ; preds = %244
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  store i32 0, ptr %26, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %27) #7
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  store ptr %17, ptr %28, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  %255 = load ptr, ptr %28, align 8, !tbaa !18
  %256 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %255) #7
  %257 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %29, i32 0, i32 0
  store ptr %256, ptr %257, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  %258 = load ptr, ptr %28, align 8, !tbaa !18
  %259 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %258) #7
  %260 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %30, i32 0, i32 0
  store ptr %259, ptr %260, align 8
  br label %261

261:                                              ; preds = %277, %254
  %262 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %30) #7
  br i1 %262, label %264, label %263

263:                                              ; preds = %261
  store i32 16, ptr %21, align 4
  br label %283

264:                                              ; preds = %261
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  %265 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #7
  %266 = load i32, ptr %265, align 4, !tbaa !5
  store i32 %266, ptr %31, align 4, !tbaa !5
  %267 = load i32, ptr %26, align 4, !tbaa !5
  %268 = add nsw i32 %267, 1
  store i32 %268, ptr %26, align 4, !tbaa !5
  %269 = load i32, ptr %26, align 4, !tbaa !5
  %270 = icmp sgt i32 %269, 3
  br i1 %270, label %271, label %272

271:                                              ; preds = %264
  store i32 16, ptr %21, align 4
  br label %274

272:                                              ; preds = %264
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef nonnull align 4 dereferenceable(4) %31)
          to label %273 unwind label %279

273:                                              ; preds = %272
  store i32 0, ptr %21, align 4
  br label %274

274:                                              ; preds = %273, %271
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  %275 = load i32, ptr %21, align 4
  switch i32 %275, label %283 [
    i32 0, label %276
  ]

276:                                              ; preds = %274
  br label %277

277:                                              ; preds = %276
  %278 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #7
  br label %261

279:                                              ; preds = %272
  %280 = landingpad { ptr, i32 }
          cleanup
  %281 = extractvalue { ptr, i32 } %280, 0
  store ptr %281, ptr %7, align 8
  %282 = extractvalue { ptr, i32 } %280, 1
  store i32 %282, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  br label %310

283:                                              ; preds = %274, %263
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  br label %284

284:                                              ; preds = %283
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  %285 = load i32, ptr %22, align 4, !tbaa !5
  store i32 %285, ptr %32, align 4, !tbaa !5
  br label %286

286:                                              ; preds = %300, %284
  %287 = load i32, ptr %32, align 4, !tbaa !5
  %288 = load i32, ptr %23, align 4, !tbaa !5
  %289 = icmp sle i32 %287, %288
  br i1 %289, label %291, label %290

290:                                              ; preds = %286
  store i32 18, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  br label %307

291:                                              ; preds = %286
  %292 = load i32, ptr %32, align 4, !tbaa !5
  %293 = sext i32 %292 to i64
  %294 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %293) #7
  %295 = load i32, ptr %294, align 4, !tbaa !5
  %296 = sext i32 %295 to i64
  %297 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %296) #7
  %298 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIiSaIiEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %297, ptr noundef nonnull align 8 dereferenceable(24) %27)
          to label %299 unwind label %303

299:                                              ; preds = %291
  br label %300

300:                                              ; preds = %299
  %301 = load i32, ptr %32, align 4, !tbaa !5
  %302 = add nsw i32 %301, 1
  store i32 %302, ptr %32, align 4, !tbaa !5
  br label %286, !llvm.loop !20

303:                                              ; preds = %291
  %304 = landingpad { ptr, i32 }
          cleanup
  %305 = extractvalue { ptr, i32 } %304, 0
  store ptr %305, ptr %7, align 8
  %306 = extractvalue { ptr, i32 } %304, 1
  store i32 %306, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  br label %310

307:                                              ; preds = %290
  %308 = load i32, ptr %23, align 4, !tbaa !5
  %309 = add nsw i32 %308, 1
  store i32 %309, ptr %20, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %134, !llvm.loop !21

310:                                              ; preds = %303, %279
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %311

311:                                              ; preds = %310, %224
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %667

312:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 24, ptr %33) #7
  %313 = load i32, ptr @n, align 4, !tbaa !5
  %314 = sext i32 %313 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #7
  store i32 -1, ptr %34, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %35) #7
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %35) #7
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %314, ptr noundef nonnull align 4 dereferenceable(4) %34, ptr noundef nonnull align 1 dereferenceable(1) %35)
          to label %315 unwind label %328

315:                                              ; preds = %312
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %35) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #7
  call void @llvm.lifetime.start.p0(i64 144, ptr %36) #7
  %316 = getelementptr inbounds [3 x %"class.std::set"], ptr %36, i32 0, i32 0
  %317 = getelementptr inbounds %"class.std::set", ptr %316, i64 3
  br label %318

318:                                              ; preds = %318, %315
  %319 = phi ptr [ %316, %315 ], [ %320, %318 ]
  call void @_ZNSt3setIiSt4lessIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %319) #7
  %320 = getelementptr inbounds %"class.std::set", ptr %319, i64 1
  %321 = icmp eq ptr %320, %317
  br i1 %321, label %322, label %318

322:                                              ; preds = %318
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #7
  store i32 0, ptr %37, align 4, !tbaa !5
  br label %323

323:                                              ; preds = %358, %322
  %324 = load i32, ptr %37, align 4, !tbaa !5
  %325 = load i32, ptr @n, align 4, !tbaa !5
  %326 = icmp slt i32 %324, %325
  br i1 %326, label %332, label %327

327:                                              ; preds = %323
  store i32 21, ptr %21, align 4
  br label %361

328:                                              ; preds = %312
  %329 = landingpad { ptr, i32 }
          cleanup
  %330 = extractvalue { ptr, i32 } %329, 0
  store ptr %330, ptr %7, align 8
  %331 = extractvalue { ptr, i32 } %329, 1
  store i32 %331, ptr %8, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %35) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #7
  br label %666

332:                                              ; preds = %323
  %333 = load i32, ptr %37, align 4, !tbaa !5
  %334 = sext i32 %333 to i64
  %335 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %334) #7
  %336 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %335) #7
  %337 = icmp eq i64 %336, 0
  br i1 %337, label %338, label %345

338:                                              ; preds = %332
  %339 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.4)
          to label %340 unwind label %341

340:                                              ; preds = %338
  store i32 0, ptr %1, align 4
  store i32 1, ptr %21, align 4
  br label %361

341:                                              ; preds = %345, %338
  %342 = landingpad { ptr, i32 }
          cleanup
  %343 = extractvalue { ptr, i32 } %342, 0
  store ptr %343, ptr %7, align 8
  %344 = extractvalue { ptr, i32 } %342, 1
  store i32 %344, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #7
  br label %658

345:                                              ; preds = %332
  %346 = load i32, ptr %37, align 4, !tbaa !5
  %347 = sext i32 %346 to i64
  %348 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %347) #7
  %349 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %348) #7
  %350 = sub i64 %349, 1
  %351 = getelementptr inbounds [3 x %"class.std::set"], ptr %36, i64 0, i64 %350
  %352 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %351, ptr noundef nonnull align 4 dereferenceable(4) %37)
          to label %353 unwind label %341

353:                                              ; preds = %345
  %354 = getelementptr inbounds { ptr, i8 }, ptr %38, i32 0, i32 0
  %355 = extractvalue { ptr, i8 } %352, 0
  store ptr %355, ptr %354, align 8
  %356 = getelementptr inbounds { ptr, i8 }, ptr %38, i32 0, i32 1
  %357 = extractvalue { ptr, i8 } %352, 1
  store i8 %357, ptr %356, align 8
  br label %358

358:                                              ; preds = %353
  %359 = load i32, ptr %37, align 4, !tbaa !5
  %360 = add nsw i32 %359, 1
  store i32 %360, ptr %37, align 4, !tbaa !5
  br label %323, !llvm.loop !22

361:                                              ; preds = %340, %327
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #7
  %362 = load i32, ptr %21, align 4
  switch i32 %362, label %647 [
    i32 21, label %363
  ]

363:                                              ; preds = %361
  br label %364

364:                                              ; preds = %614, %363
  br label %365

365:                                              ; preds = %364
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #7
  store i32 0, ptr %39, align 4, !tbaa !5
  br label %366

366:                                              ; preds = %377, %365
  %367 = load i32, ptr %39, align 4, !tbaa !5
  %368 = icmp slt i32 %367, 3
  br i1 %368, label %369, label %375

369:                                              ; preds = %366
  %370 = load i32, ptr %39, align 4, !tbaa !5
  %371 = sext i32 %370 to i64
  %372 = getelementptr inbounds [3 x %"class.std::set"], ptr %36, i64 0, i64 %371
  %373 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %372) #7
  %374 = icmp eq i64 %373, 0
  br label %375

375:                                              ; preds = %369, %366
  %376 = phi i1 [ false, %366 ], [ %374, %369 ]
  br i1 %376, label %377, label %380

377:                                              ; preds = %375
  %378 = load i32, ptr %39, align 4, !tbaa !5
  %379 = add nsw i32 %378, 1
  store i32 %379, ptr %39, align 4, !tbaa !5
  br label %366, !llvm.loop !23

380:                                              ; preds = %375
  %381 = load i32, ptr %39, align 4, !tbaa !5
  %382 = icmp eq i32 %381, 3
  br i1 %382, label %383, label %384

383:                                              ; preds = %380
  store i32 25, ptr %21, align 4
  br label %612

384:                                              ; preds = %380
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #7
  %385 = load i32, ptr %39, align 4, !tbaa !5
  %386 = sext i32 %385 to i64
  %387 = getelementptr inbounds [3 x %"class.std::set"], ptr %36, i64 0, i64 %386
  %388 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %387) #7
  %389 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %41, i32 0, i32 0
  store ptr %388, ptr %389, align 8
  %390 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %41) #7
  %391 = load i32, ptr %390, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #7
  store i32 %391, ptr %40, align 4, !tbaa !5
  %392 = load i32, ptr %39, align 4, !tbaa !5
  %393 = sext i32 %392 to i64
  %394 = getelementptr inbounds [3 x %"class.std::set"], ptr %36, i64 0, i64 %393
  %395 = invoke noundef i64 @_ZNSt3setIiSt4lessIiESaIiEE5eraseERKi(ptr noundef nonnull align 8 dereferenceable(48) %394, ptr noundef nonnull align 4 dereferenceable(4) %40)
          to label %396 unwind label %409

396:                                              ; preds = %384
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #7
  store i32 -1, ptr %42, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #7
  %397 = load i32, ptr %40, align 4, !tbaa !5
  %398 = sext i32 %397 to i64
  %399 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %398) #7
  store ptr %399, ptr %43, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #7
  %400 = load ptr, ptr %43, align 8, !tbaa !18
  %401 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %400) #7
  %402 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %44, i32 0, i32 0
  store ptr %401, ptr %402, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #7
  %403 = load ptr, ptr %43, align 8, !tbaa !18
  %404 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %403) #7
  %405 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %45, i32 0, i32 0
  store ptr %404, ptr %405, align 8
  br label %406

406:                                              ; preds = %447, %396
  %407 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef nonnull align 8 dereferenceable(8) %45) #7
  br i1 %407, label %413, label %408

408:                                              ; preds = %406
  store i32 28, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #7
  br label %449

409:                                              ; preds = %384
  %410 = landingpad { ptr, i32 }
          cleanup
  %411 = extractvalue { ptr, i32 } %410, 0
  store ptr %411, ptr %7, align 8
  %412 = extractvalue { ptr, i32 } %410, 1
  store i32 %412, ptr %8, align 4
  br label %616

413:                                              ; preds = %406
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #7
  %414 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %44) #7
  %415 = load i32, ptr %414, align 4, !tbaa !5
  store i32 %415, ptr %46, align 4, !tbaa !5
  %416 = load i32, ptr %40, align 4, !tbaa !5
  %417 = sub nsw i32 %416, 1
  %418 = icmp sge i32 %417, 0
  br i1 %418, label %419, label %428

419:                                              ; preds = %413
  %420 = load i32, ptr %40, align 4, !tbaa !5
  %421 = sub nsw i32 %420, 1
  %422 = sext i32 %421 to i64
  %423 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %422) #7
  %424 = load i32, ptr %423, align 4, !tbaa !5
  %425 = load i32, ptr %46, align 4, !tbaa !5
  %426 = icmp eq i32 %424, %425
  br i1 %426, label %427, label %428

427:                                              ; preds = %419
  store i32 29, ptr %21, align 4
  br label %444

428:                                              ; preds = %419, %413
  %429 = load i32, ptr %40, align 4, !tbaa !5
  %430 = add nsw i32 %429, 1
  %431 = load i32, ptr @n, align 4, !tbaa !5
  %432 = icmp slt i32 %430, %431
  br i1 %432, label %433, label %442

433:                                              ; preds = %428
  %434 = load i32, ptr %40, align 4, !tbaa !5
  %435 = add nsw i32 %434, 1
  %436 = sext i32 %435 to i64
  %437 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %436) #7
  %438 = load i32, ptr %437, align 4, !tbaa !5
  %439 = load i32, ptr %46, align 4, !tbaa !5
  %440 = icmp eq i32 %438, %439
  br i1 %440, label %441, label %442

441:                                              ; preds = %433
  store i32 29, ptr %21, align 4
  br label %444

442:                                              ; preds = %433, %428
  %443 = load i32, ptr %46, align 4, !tbaa !5
  store i32 %443, ptr %42, align 4, !tbaa !5
  store i32 0, ptr %21, align 4
  br label %444

444:                                              ; preds = %442, %441, %427
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #7
  %445 = load i32, ptr %21, align 4
  switch i32 %445, label %679 [
    i32 0, label %446
    i32 29, label %447
  ]

446:                                              ; preds = %444
  br label %447

447:                                              ; preds = %446, %444
  %448 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %44) #7
  br label %406

449:                                              ; preds = %408
  %450 = load i32, ptr %42, align 4, !tbaa !5
  %451 = icmp eq i32 %450, -1
  br i1 %451, label %452, label %459

452:                                              ; preds = %449
  %453 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.4)
          to label %454 unwind label %455

454:                                              ; preds = %452
  store i32 0, ptr %1, align 4
  store i32 1, ptr %21, align 4
  br label %611

455:                                              ; preds = %452
  %456 = landingpad { ptr, i32 }
          cleanup
  %457 = extractvalue { ptr, i32 } %456, 0
  store ptr %457, ptr %7, align 8
  %458 = extractvalue { ptr, i32 } %456, 1
  store i32 %458, ptr %8, align 4
  br label %615

459:                                              ; preds = %449
  %460 = load i32, ptr %42, align 4, !tbaa !5
  %461 = load i32, ptr %40, align 4, !tbaa !5
  %462 = sext i32 %461 to i64
  %463 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %462) #7
  store i32 %460, ptr %463, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #7
  store i32 -1, ptr %47, align 4, !tbaa !5
  br label %464

464:                                              ; preds = %605, %459
  %465 = load i32, ptr %47, align 4, !tbaa !5
  %466 = icmp sle i32 %465, 1
  br i1 %466, label %468, label %467

467:                                              ; preds = %464
  store i32 30, ptr %21, align 4
  br label %608

468:                                              ; preds = %464
  %469 = load i32, ptr %40, align 4, !tbaa !5
  %470 = load i32, ptr %47, align 4, !tbaa !5
  %471 = sub nsw i32 %469, %470
  %472 = icmp sge i32 %471, 0
  br i1 %472, label %473, label %604

473:                                              ; preds = %468
  %474 = load i32, ptr %40, align 4, !tbaa !5
  %475 = load i32, ptr %47, align 4, !tbaa !5
  %476 = sub nsw i32 %474, %475
  %477 = load i32, ptr @n, align 4, !tbaa !5
  %478 = icmp slt i32 %476, %477
  br i1 %478, label %479, label %604

479:                                              ; preds = %473
  %480 = load i32, ptr %40, align 4, !tbaa !5
  %481 = load i32, ptr %47, align 4, !tbaa !5
  %482 = sub nsw i32 %480, %481
  %483 = sext i32 %482 to i64
  %484 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %483) #7
  %485 = load i32, ptr %484, align 4, !tbaa !5
  %486 = icmp eq i32 %485, -1
  br i1 %486, label %487, label %604

487:                                              ; preds = %479
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #7
  store i32 -1, ptr %48, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #7
  store i32 0, ptr %49, align 4, !tbaa !5
  br label %488

488:                                              ; preds = %514, %487
  %489 = load i32, ptr %49, align 4, !tbaa !5
  %490 = sext i32 %489 to i64
  %491 = load i32, ptr %40, align 4, !tbaa !5
  %492 = load i32, ptr %47, align 4, !tbaa !5
  %493 = sub nsw i32 %491, %492
  %494 = sext i32 %493 to i64
  %495 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %494) #7
  %496 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %495) #7
  %497 = icmp ult i64 %490, %496
  br i1 %497, label %499, label %498

498:                                              ; preds = %488
  store i32 33, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #7
  br label %517

499:                                              ; preds = %488
  %500 = load i32, ptr %40, align 4, !tbaa !5
  %501 = load i32, ptr %47, align 4, !tbaa !5
  %502 = sub nsw i32 %500, %501
  %503 = sext i32 %502 to i64
  %504 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %503) #7
  %505 = load i32, ptr %49, align 4, !tbaa !5
  %506 = sext i32 %505 to i64
  %507 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %504, i64 noundef %506) #7
  %508 = load i32, ptr %507, align 4, !tbaa !5
  %509 = load i32, ptr %42, align 4, !tbaa !5
  %510 = icmp eq i32 %508, %509
  br i1 %510, label %511, label %513

511:                                              ; preds = %499
  %512 = load i32, ptr %49, align 4, !tbaa !5
  store i32 %512, ptr %48, align 4, !tbaa !5
  br label %513

513:                                              ; preds = %511, %499
  br label %514

514:                                              ; preds = %513
  %515 = load i32, ptr %49, align 4, !tbaa !5
  %516 = add nsw i32 %515, 1
  store i32 %516, ptr %49, align 4, !tbaa !5
  br label %488, !llvm.loop !24

517:                                              ; preds = %498
  %518 = load i32, ptr %48, align 4, !tbaa !5
  %519 = icmp ne i32 %518, -1
  br i1 %519, label %520, label %546

520:                                              ; preds = %517
  %521 = load i32, ptr %40, align 4, !tbaa !5
  %522 = load i32, ptr %47, align 4, !tbaa !5
  %523 = sub nsw i32 %521, %522
  %524 = sext i32 %523 to i64
  %525 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %524) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #7
  %526 = load i32, ptr %40, align 4, !tbaa !5
  %527 = load i32, ptr %47, align 4, !tbaa !5
  %528 = sub nsw i32 %526, %527
  %529 = sext i32 %528 to i64
  %530 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %529) #7
  %531 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %530) #7
  %532 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %52, i32 0, i32 0
  store ptr %531, ptr %532, align 8
  %533 = load i32, ptr %48, align 4, !tbaa !5
  %534 = sext i32 %533 to i64
  %535 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %52, i64 noundef %534) #7
  %536 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %51, i32 0, i32 0
  store ptr %535, ptr %536, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEC2IPivEERKNS0_IT_S5_EE(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef nonnull align 8 dereferenceable(8) %51) #7
  %537 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.15", ptr %50, i32 0, i32 0
  %538 = load ptr, ptr %537, align 8
  %539 = invoke ptr @_ZNSt6vectorIiSaIiEE5eraseEN9__gnu_cxx17__normal_iteratorIPKiS1_EE(ptr noundef nonnull align 8 dereferenceable(24) %525, ptr %538)
          to label %540 unwind label %542

540:                                              ; preds = %520
  %541 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %53, i32 0, i32 0
  store ptr %539, ptr %541, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #7
  br label %547

542:                                              ; preds = %520
  %543 = landingpad { ptr, i32 }
          cleanup
  %544 = extractvalue { ptr, i32 } %543, 0
  store ptr %544, ptr %7, align 8
  %545 = extractvalue { ptr, i32 } %543, 1
  store i32 %545, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #7
  br label %603

546:                                              ; preds = %517
  store i32 32, ptr %21, align 4
  br label %596

547:                                              ; preds = %540
  %548 = load i32, ptr %40, align 4, !tbaa !5
  %549 = load i32, ptr %47, align 4, !tbaa !5
  %550 = sub nsw i32 %548, %549
  %551 = sext i32 %550 to i64
  %552 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %551) #7
  %553 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %552) #7
  %554 = getelementptr inbounds [3 x %"class.std::set"], ptr %36, i64 0, i64 %553
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #7
  %555 = load i32, ptr %40, align 4, !tbaa !5
  %556 = load i32, ptr %47, align 4, !tbaa !5
  %557 = sub nsw i32 %555, %556
  store i32 %557, ptr %54, align 4, !tbaa !5
  %558 = invoke noundef i64 @_ZNSt3setIiSt4lessIiESaIiEE5eraseERKi(ptr noundef nonnull align 8 dereferenceable(48) %554, ptr noundef nonnull align 4 dereferenceable(4) %54)
          to label %559 unwind label %570

559:                                              ; preds = %547
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #7
  %560 = load i32, ptr %40, align 4, !tbaa !5
  %561 = load i32, ptr %47, align 4, !tbaa !5
  %562 = sub nsw i32 %560, %561
  %563 = sext i32 %562 to i64
  %564 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %563) #7
  %565 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %564) #7
  %566 = icmp eq i64 %565, 0
  br i1 %566, label %567, label %578

567:                                              ; preds = %559
  %568 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.4)
          to label %569 unwind label %574

569:                                              ; preds = %567
  store i32 0, ptr %1, align 4
  store i32 1, ptr %21, align 4
  br label %596

570:                                              ; preds = %547
  %571 = landingpad { ptr, i32 }
          cleanup
  %572 = extractvalue { ptr, i32 } %571, 0
  store ptr %572, ptr %7, align 8
  %573 = extractvalue { ptr, i32 } %571, 1
  store i32 %573, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #7
  br label %603

574:                                              ; preds = %567
  %575 = landingpad { ptr, i32 }
          cleanup
  %576 = extractvalue { ptr, i32 } %575, 0
  store ptr %576, ptr %7, align 8
  %577 = extractvalue { ptr, i32 } %575, 1
  store i32 %577, ptr %8, align 4
  br label %603

578:                                              ; preds = %559
  %579 = load i32, ptr %40, align 4, !tbaa !5
  %580 = load i32, ptr %47, align 4, !tbaa !5
  %581 = sub nsw i32 %579, %580
  %582 = sext i32 %581 to i64
  %583 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %582) #7
  %584 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %583) #7
  %585 = sub i64 %584, 1
  %586 = getelementptr inbounds [3 x %"class.std::set"], ptr %36, i64 0, i64 %585
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #7
  %587 = load i32, ptr %40, align 4, !tbaa !5
  %588 = load i32, ptr %47, align 4, !tbaa !5
  %589 = sub nsw i32 %587, %588
  store i32 %589, ptr %55, align 4, !tbaa !5
  %590 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertEOi(ptr noundef nonnull align 8 dereferenceable(48) %586, ptr noundef nonnull align 4 dereferenceable(4) %55)
          to label %591 unwind label %599

591:                                              ; preds = %578
  %592 = getelementptr inbounds { ptr, i8 }, ptr %56, i32 0, i32 0
  %593 = extractvalue { ptr, i8 } %590, 0
  store ptr %593, ptr %592, align 8
  %594 = getelementptr inbounds { ptr, i8 }, ptr %56, i32 0, i32 1
  %595 = extractvalue { ptr, i8 } %590, 1
  store i8 %595, ptr %594, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #7
  store i32 0, ptr %21, align 4
  br label %596

596:                                              ; preds = %591, %569, %546
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #7
  %597 = load i32, ptr %21, align 4
  switch i32 %597, label %608 [
    i32 0, label %598
    i32 32, label %605
  ]

598:                                              ; preds = %596
  br label %604

599:                                              ; preds = %578
  %600 = landingpad { ptr, i32 }
          cleanup
  %601 = extractvalue { ptr, i32 } %600, 0
  store ptr %601, ptr %7, align 8
  %602 = extractvalue { ptr, i32 } %600, 1
  store i32 %602, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #7
  br label %603

603:                                              ; preds = %599, %574, %570, %542
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #7
  br label %615

604:                                              ; preds = %598, %479, %473, %468
  br label %605

605:                                              ; preds = %604, %596
  %606 = load i32, ptr %47, align 4, !tbaa !5
  %607 = add nsw i32 %606, 2
  store i32 %607, ptr %47, align 4, !tbaa !5
  br label %464, !llvm.loop !25

608:                                              ; preds = %596, %467
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #7
  %609 = load i32, ptr %21, align 4
  switch i32 %609, label %611 [
    i32 30, label %610
  ]

610:                                              ; preds = %608
  store i32 0, ptr %21, align 4
  br label %611

611:                                              ; preds = %610, %608, %454
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #7
  br label %612

612:                                              ; preds = %611, %383
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #7
  %613 = load i32, ptr %21, align 4
  switch i32 %613, label %647 [
    i32 0, label %614
    i32 25, label %617
  ]

614:                                              ; preds = %612
  br label %364, !llvm.loop !26

615:                                              ; preds = %603, %455
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #7
  br label %616

616:                                              ; preds = %615, %409
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #7
  br label %658

617:                                              ; preds = %612
  %618 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.5)
          to label %619 unwind label %629

619:                                              ; preds = %617
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #7
  store ptr %33, ptr %57, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #7
  %620 = load ptr, ptr %57, align 8, !tbaa !18
  %621 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %620) #7
  %622 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %58, i32 0, i32 0
  store ptr %621, ptr %622, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %59) #7
  %623 = load ptr, ptr %57, align 8, !tbaa !18
  %624 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %623) #7
  %625 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %59, i32 0, i32 0
  store ptr %624, ptr %625, align 8
  br label %626

626:                                              ; preds = %640, %619
  %627 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %58, ptr noundef nonnull align 8 dereferenceable(8) %59) #7
  br i1 %627, label %633, label %628

628:                                              ; preds = %626
  store i32 36, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #7
  br label %646

629:                                              ; preds = %617
  %630 = landingpad { ptr, i32 }
          cleanup
  %631 = extractvalue { ptr, i32 } %630, 0
  store ptr %631, ptr %7, align 8
  %632 = extractvalue { ptr, i32 } %630, 1
  store i32 %632, ptr %8, align 4
  br label %658

633:                                              ; preds = %626
  call void @llvm.lifetime.start.p0(i64 4, ptr %60) #7
  %634 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %58) #7
  %635 = load i32, ptr %634, align 4, !tbaa !5
  store i32 %635, ptr %60, align 4, !tbaa !5
  %636 = load i32, ptr %60, align 4, !tbaa !5
  %637 = add nsw i32 %636, 1
  %638 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %637)
          to label %639 unwind label %642

639:                                              ; preds = %633
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #7
  br label %640

640:                                              ; preds = %639
  %641 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %58) #7
  br label %626

642:                                              ; preds = %633
  %643 = landingpad { ptr, i32 }
          cleanup
  %644 = extractvalue { ptr, i32 } %643, 0
  store ptr %644, ptr %7, align 8
  %645 = extractvalue { ptr, i32 } %643, 1
  store i32 %645, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #7
  br label %658

646:                                              ; preds = %628
  store i32 0, ptr %21, align 4
  br label %647

647:                                              ; preds = %646, %612, %361
  %648 = getelementptr inbounds [3 x %"class.std::set"], ptr %36, i32 0, i32 0
  %649 = getelementptr inbounds %"class.std::set", ptr %648, i64 3
  br label %650

650:                                              ; preds = %650, %647
  %651 = phi ptr [ %649, %647 ], [ %652, %650 ]
  %652 = getelementptr inbounds %"class.std::set", ptr %651, i64 -1
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %652) #7
  %653 = icmp eq ptr %652, %648
  br i1 %653, label %654, label %650

654:                                              ; preds = %650
  call void @llvm.lifetime.end.p0(i64 144, ptr %36) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #7
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #7
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %17) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #7
  %655 = load i32, ptr %21, align 4
  switch i32 %655, label %679 [
    i32 0, label %656
    i32 1, label %656
  ]

656:                                              ; preds = %654, %654
  %657 = load i32, ptr %1, align 4
  ret i32 %657

658:                                              ; preds = %642, %629, %616, %341
  %659 = getelementptr inbounds [3 x %"class.std::set"], ptr %36, i32 0, i32 0
  %660 = getelementptr inbounds %"class.std::set", ptr %659, i64 3
  br label %661

661:                                              ; preds = %661, %658
  %662 = phi ptr [ %660, %658 ], [ %663, %661 ]
  %663 = getelementptr inbounds %"class.std::set", ptr %662, i64 -1
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %663) #7
  %664 = icmp eq ptr %663, %659
  br i1 %664, label %665, label %661

665:                                              ; preds = %661
  call void @llvm.lifetime.end.p0(i64 144, ptr %36) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #7
  br label %666

666:                                              ; preds = %665, %328
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #7
  br label %667

667:                                              ; preds = %666, %311
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  br label %668

668:                                              ; preds = %667, %159
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #7
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %17) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %669

669:                                              ; preds = %668, %155
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  br label %670

670:                                              ; preds = %669, %151
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #7
  br label %671

671:                                              ; preds = %670, %147
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  br label %672

672:                                              ; preds = %671, %143
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #7
  br label %673

673:                                              ; preds = %672, %139
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #7
  br label %674

674:                                              ; preds = %673
  %675 = load ptr, ptr %7, align 8
  %676 = load i32, ptr %8, align 4
  %677 = insertvalue { ptr, i32 } poison, ptr %675, 0
  %678 = insertvalue { ptr, i32 } %677, i32 %676, 1
  resume { ptr, i32 } %678

679:                                              ; preds = %654, %444
  unreachable
}

declare i32 @__isoc99_scanf(ptr noundef, ...) #4

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

declare i32 @printf(ptr noundef, ...) #4

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@temp = external dso_local global %"class.std::vector", align 8
@kurtak = external dso_local global %"class.std::vector.0", align 8
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z9temp_sortii(i32 noundef, i32 noundef) #0

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z13kurtak_sort_fii(i32 noundef, i32 noundef) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z13kurtak_sort_sii(i32 noundef, i32 noundef) #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3geni(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, i32 noundef) local_unnamed_addr #1

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::vector", align 8
  %2 = alloca %"class.std::vector", align 8
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca %"class.std::set", align 8
  %5 = alloca %"class.std::vector.8", align 8
  %6 = alloca %"class.std::allocator.10", align 1
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %9 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::vector", align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::allocator", align 1
  %14 = alloca [3 x %"class.std::set"], align 16
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.15", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %27 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @m)
  %28 = load i32, ptr @n, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  tail call void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) @temp, i64 noundef %29)
  %30 = load i32, ptr @n, align 4, !tbaa !5
  %31 = icmp sgt i32 %30, 0
  %.0133231.lcssa.wide.sroa.gep304 = getelementptr inbounds i8, ptr %14, i64 48
  %.0133231.lcssa.wide.sroa.gep305 = getelementptr inbounds i8, ptr %14, i64 96
  br i1 %31, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %0
  %32 = load i32, ptr @m, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  tail call void @_ZNSt6vectorISt4pairIiiESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) @kurtak, i64 noundef %33)
  %34 = load i32, ptr @m, align 4, !tbaa !5
  %35 = icmp sgt i32 %34, 0
  br i1 %35, label %.lr.ph196, label %._crit_edge197

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %36 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @temp, i64 noundef %indvars.iv) #7
  %37 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.3, ptr noundef nonnull %36)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %38 = load i32, ptr @n, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = icmp slt i64 %indvars.iv.next, %39
  br i1 %40, label %.lr.ph, label %._crit_edge, !llvm.loop !9

._crit_edge197:                                   ; preds = %.lr.ph196, %._crit_edge
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #7
  %41 = load i32, ptr @n, align 4, !tbaa !5
  call void @_Z3geni(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %1, i32 noundef %41)
  %42 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  %43 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEPFbiiEEvT_S9_T0_(ptr %42, ptr %43, ptr noundef nonnull @_Z9temp_sortii)
          to label %51 unwind label %68

.lr.ph196:                                        ; preds = %._crit_edge, %.lr.ph196
  %indvars.iv251 = phi i64 [ %indvars.iv.next252, %.lr.ph196 ], [ 0, %._crit_edge ]
  %44 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @kurtak, i64 noundef %indvars.iv251) #7
  %45 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @kurtak, i64 noundef %indvars.iv251) #7
  %46 = getelementptr inbounds i8, ptr %45, i64 4
  %47 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %44, ptr noundef nonnull %46)
  %indvars.iv.next252 = add nuw nsw i64 %indvars.iv251, 1
  %48 = load i32, ptr @m, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = icmp slt i64 %indvars.iv.next252, %49
  br i1 %50, label %.lr.ph196, label %._crit_edge197, !llvm.loop !11

51:                                               ; preds = %._crit_edge197
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #7
  %52 = load i32, ptr @m, align 4, !tbaa !5
  invoke void @_Z3geni(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %2, i32 noundef %52)
          to label %53 unwind label %70

53:                                               ; preds = %51
  %54 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  %55 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEPFbiiEEvT_S9_T0_(ptr %54, ptr %55, ptr noundef nonnull @_Z13kurtak_sort_fii)
          to label %56 unwind label %72

56:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #7
  %57 = load i32, ptr @m, align 4, !tbaa !5
  invoke void @_Z3geni(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %3, i32 noundef %57)
          to label %58 unwind label %74

58:                                               ; preds = %56
  %59 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  %60 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEPFbiiEEvT_S9_T0_(ptr %59, ptr %60, ptr noundef nonnull @_Z13kurtak_sort_sii)
          to label %61 unwind label %76

61:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #7
  call void @_ZNSt3setIiSt4lessIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #7
  %62 = load i32, ptr @n, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #7
  call void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %63, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %64 unwind label %78

64:                                               ; preds = %61
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #7
  %65 = load i32, ptr @n, align 4, !tbaa !5
  %66 = icmp sgt i32 %65, 0
  br i1 %66, label %.lr.ph224, label %._crit_edge225

._crit_edge225:                                   ; preds = %._crit_edge219, %64
  %.lcssa = phi i32 [ %65, %64 ], [ %151, %._crit_edge219 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #7
  %67 = sext i32 %.lcssa to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #7
  store i32 -1, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #7
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #7
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %67, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %162 unwind label %164

68:                                               ; preds = %._crit_edge197
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %410

70:                                               ; preds = %51
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %409

72:                                               ; preds = %53
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %408

74:                                               ; preds = %56
  %75 = landingpad { ptr, i32 }
          cleanup
  br label %407

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

78:                                               ; preds = %61
  %79 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #7
  br label %405

.lr.ph224:                                        ; preds = %64, %._crit_edge219
  %.0127222 = phi i32 [ %.1128.lcssa, %._crit_edge219 ], [ 0, %64 ]
  %.0129221 = phi i32 [ %.1130.lcssa, %._crit_edge219 ], [ 0, %64 ]
  %.0134220 = phi i32 [ %.0142.lcssa, %._crit_edge219 ], [ 0, %64 ]
  %80 = sext i32 %.0134220 to i64
  %81 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %80) #7
  %82 = load i32, ptr %81, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @temp, i64 noundef %83) #7
  %85 = load i32, ptr %84, align 4, !tbaa !5
  %86 = load i32, ptr @n, align 4, !tbaa !5
  %87 = icmp slt i32 %.0134220, %86
  br i1 %87, label %.lr.ph200, label %.critedge

.lr.ph200:                                        ; preds = %.lr.ph224, %94
  %indvars.iv254 = phi i64 [ %indvars.iv.next255, %94 ], [ %80, %.lr.ph224 ]
  %88 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv254) #7
  %89 = load i32, ptr %88, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @temp, i64 noundef %90) #7
  %92 = load i32, ptr %91, align 4, !tbaa !5
  %93 = icmp eq i32 %92, %85
  br i1 %93, label %94, label %.critedge.loopexit

94:                                               ; preds = %.lr.ph200
  %indvars.iv.next255 = add nsw i64 %indvars.iv254, 1
  %95 = load i32, ptr @n, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = icmp slt i64 %indvars.iv.next255, %96
  br i1 %97, label %.lr.ph200, label %.critedge.loopexit, !llvm.loop !12

.critedge.loopexit:                               ; preds = %94, %.lr.ph200
  %.0142.lcssa.ph.in = phi i64 [ %indvars.iv254, %.lr.ph200 ], [ %indvars.iv.next255, %94 ]
  %.0142.lcssa.ph = trunc i64 %.0142.lcssa.ph.in to i32
  br label %.critedge

.critedge:                                        ; preds = %.critedge.loopexit, %.lr.ph224
  %.0142.lcssa = phi i32 [ %.0134220, %.lr.ph224 ], [ %.0142.lcssa.ph, %.critedge.loopexit ]
  %98 = load i32, ptr @m, align 4, !tbaa !5
  %99 = icmp slt i32 %.0127222, %98
  br i1 %99, label %.lr.ph204.preheader, label %.critedge4

.lr.ph204.preheader:                              ; preds = %.critedge
  %100 = sext i32 %.0127222 to i64
  br label %.lr.ph204

.lr.ph204:                                        ; preds = %.lr.ph204.preheader, %109
  %indvars.iv257 = phi i64 [ %100, %.lr.ph204.preheader ], [ %indvars.iv.next258, %109 ]
  %101 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv257) #7
  %102 = load i32, ptr %101, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @kurtak, i64 noundef %103) #7
  %105 = load i32, ptr %104, align 4, !tbaa !13
  %.not157 = icmp sgt i32 %105, %85
  br i1 %.not157, label %.lr.ph204..critedge4.loopexit_crit_edge, label %106

.lr.ph204..critedge4.loopexit_crit_edge:          ; preds = %.lr.ph204
  %.pre.pre = load i32, ptr @m, align 4, !tbaa !5
  br label %.critedge4.loopexit

106:                                              ; preds = %.lr.ph204
  %107 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv257) #7
  %108 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %107)
          to label %109 unwind label %.loopexit.split-lp

109:                                              ; preds = %106
  %indvars.iv.next258 = add nsw i64 %indvars.iv257, 1
  %110 = load i32, ptr @m, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = icmp slt i64 %indvars.iv.next258, %111
  br i1 %112, label %.lr.ph204, label %.critedge4.loopexit, !llvm.loop !15

.loopexit184:                                     ; preds = %123
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %404

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

.critedge4.loopexit:                              ; preds = %109, %.lr.ph204..critedge4.loopexit_crit_edge
  %.pre = phi i32 [ %.pre.pre, %.lr.ph204..critedge4.loopexit_crit_edge ], [ %110, %109 ]
  %.1128.lcssa.ph.in = phi i64 [ %indvars.iv257, %.lr.ph204..critedge4.loopexit_crit_edge ], [ %indvars.iv.next258, %109 ]
  %.1128.lcssa.ph = trunc i64 %.1128.lcssa.ph.in to i32
  br label %.critedge4

.critedge4:                                       ; preds = %.critedge4.loopexit, %.critedge
  %113 = phi i32 [ %98, %.critedge ], [ %.pre, %.critedge4.loopexit ]
  %.1128.lcssa = phi i32 [ %.0127222, %.critedge ], [ %.1128.lcssa.ph, %.critedge4.loopexit ]
  %114 = icmp slt i32 %.0129221, %113
  br i1 %114, label %.lr.ph209.preheader, label %.critedge6

.lr.ph209.preheader:                              ; preds = %.critedge4
  %115 = sext i32 %.0129221 to i64
  br label %.lr.ph209

.lr.ph209:                                        ; preds = %.lr.ph209.preheader, %126
  %indvars.iv261 = phi i64 [ %115, %.lr.ph209.preheader ], [ %indvars.iv.next262, %126 ]
  %116 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv261) #7
  %117 = load i32, ptr %116, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @kurtak, i64 noundef %118) #7
  %120 = getelementptr inbounds i8, ptr %119, i64 4
  %121 = load i32, ptr %120, align 4, !tbaa !16
  %122 = icmp slt i32 %121, %85
  br i1 %122, label %123, label %.critedge6.loopexit

123:                                              ; preds = %.lr.ph209
  %124 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv261) #7
  %125 = invoke noundef i64 @_ZNSt3setIiSt4lessIiESaIiEE5eraseERKi(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %124)
          to label %126 unwind label %.loopexit184

126:                                              ; preds = %123
  %indvars.iv.next262 = add nsw i64 %indvars.iv261, 1
  %127 = load i32, ptr @m, align 4, !tbaa !5
  %128 = sext i32 %127 to i64
  %129 = icmp slt i64 %indvars.iv.next262, %128
  br i1 %129, label %.lr.ph209, label %.critedge6.loopexit, !llvm.loop !17

.critedge6.loopexit:                              ; preds = %126, %.lr.ph209
  %.1130.lcssa.ph.in = phi i64 [ %indvars.iv261, %.lr.ph209 ], [ %indvars.iv.next262, %126 ]
  %.1130.lcssa.ph = trunc i64 %.1130.lcssa.ph.in to i32
  br label %.critedge6

.critedge6:                                       ; preds = %.critedge6.loopexit, %.critedge4
  %.1130.lcssa = phi i32 [ %.0129221, %.critedge4 ], [ %.1130.lcssa.ph, %.critedge6.loopexit ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #7
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %130 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #7
  store ptr %130, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %131 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #7
  store ptr %131, ptr %9, align 8
  %132 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  br i1 %132, label %.lr.ph214.preheader, label %.loopexit

.lr.ph214.preheader:                              ; preds = %.critedge6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  %133 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  %134 = load i32, ptr %133, align 4, !tbaa !5
  store i32 %134, ptr %10, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %135 unwind label %148

135:                                              ; preds = %.lr.ph214.preheader
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  %136 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  %137 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  br i1 %137, label %.lr.ph214.1, label %.loopexit

.lr.ph214.1:                                      ; preds = %135
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  %138 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  %139 = load i32, ptr %138, align 4, !tbaa !5
  store i32 %139, ptr %10, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %140 unwind label %148

140:                                              ; preds = %.lr.ph214.1
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  %141 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  %142 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  br i1 %142, label %.lr.ph214.2, label %.loopexit

.lr.ph214.2:                                      ; preds = %140
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  %143 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  %144 = load i32, ptr %143, align 4, !tbaa !5
  store i32 %144, ptr %10, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %145 unwind label %148

145:                                              ; preds = %.lr.ph214.2
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  %146 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  %147 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  br i1 %147, label %.critedge171, label %.loopexit

148:                                              ; preds = %.lr.ph214.2, %.lr.ph214.1, %.lr.ph214.preheader
  %149 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  br label %161

.critedge171:                                     ; preds = %145
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  %150 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  br label %.loopexit

.loopexit:                                        ; preds = %135, %140, %145, %.critedge6, %.critedge171
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  %.not158.not215 = icmp slt i32 %.0134220, %.0142.lcssa
  br i1 %.not158.not215, label %.lr.ph218, label %._crit_edge219

._crit_edge219:                                   ; preds = %158, %.loopexit
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  %151 = load i32, ptr @n, align 4, !tbaa !5
  %152 = icmp slt i32 %.0142.lcssa, %151
  br i1 %152, label %.lr.ph224, label %._crit_edge225, !llvm.loop !18

.lr.ph218:                                        ; preds = %.loopexit, %158
  %indvars.iv265 = phi i64 [ %indvars.iv.next266, %158 ], [ %80, %.loopexit ]
  %153 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv265) #7
  %154 = load i32, ptr %153, align 4, !tbaa !5
  %155 = sext i32 %154 to i64
  %156 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %155) #7
  %157 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIiSaIiEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %156, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %158 unwind label %159

158:                                              ; preds = %.lr.ph218
  %indvars.iv.next266 = add nsw i64 %indvars.iv265, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next266 to i32
  %exitcond.not = icmp eq i32 %.0142.lcssa, %lftr.wideiv
  br i1 %exitcond.not, label %._crit_edge219, label %.lr.ph218, !llvm.loop !19

159:                                              ; preds = %.lr.ph218
  %160 = landingpad { ptr, i32 }
          cleanup
  br label %161

161:                                              ; preds = %159, %148
  %.pn159 = phi { ptr, i32 } [ %160, %159 ], [ %149, %148 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  br label %404

162:                                              ; preds = %._crit_edge225
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %14) #7
  call void @_ZNSt3setIiSt4lessIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %14) #7
  %.ptr.1 = getelementptr inbounds i8, ptr %14, i64 48
  call void @_ZNSt3setIiSt4lessIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %.ptr.1) #7
  %.ptr.2 = getelementptr inbounds i8, ptr %14, i64 96
  call void @_ZNSt3setIiSt4lessIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %.ptr.2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #7
  store i32 0, ptr %15, align 4, !tbaa !5
  %163 = load i32, ptr @n, align 4, !tbaa !5
  %.not227 = icmp sgt i32 %163, 0
  br i1 %.not227, label %.lr.ph230, label %.critedge173

164:                                              ; preds = %._crit_edge225
  %165 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  br label %403

.lr.ph230:                                        ; preds = %162, %182
  %storemerge228 = phi i32 [ %184, %182 ], [ 0, %162 ]
  %166 = sext i32 %storemerge228 to i64
  %167 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %166) #7
  %168 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %167) #7
  %169 = icmp eq i64 %168, 0
  br i1 %169, label %170, label %174

170:                                              ; preds = %.lr.ph230
  %171 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #7
  br label %397

172:                                              ; preds = %174
  %173 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #7
  br label %400

174:                                              ; preds = %.lr.ph230
  %175 = load i32, ptr %15, align 4, !tbaa !5
  %176 = sext i32 %175 to i64
  %177 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %176) #7
  %178 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %177) #7
  %179 = add i64 %178, -1
  %180 = getelementptr inbounds [3 x %"class.std::set"], ptr %14, i64 0, i64 %179
  %181 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %180, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %182 unwind label %172

182:                                              ; preds = %174
  %183 = load i32, ptr %15, align 4, !tbaa !5
  %184 = add nsw i32 %183, 1
  store i32 %184, ptr %15, align 4, !tbaa !5
  %185 = load i32, ptr @n, align 4, !tbaa !5
  %.not = icmp slt i32 %184, %185
  br i1 %.not, label %.lr.ph230, label %.critedge173, !llvm.loop !20

.critedge173:                                     ; preds = %182, %162
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #7
  br label %186

186:                                              ; preds = %.thread.1, %.critedge173
  %187 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %14) #7
  %188 = icmp eq i64 %187, 0
  br i1 %188, label %189, label %.critedge8.thread

189:                                              ; preds = %186
  %190 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %.ptr.1) #7
  %191 = icmp eq i64 %190, 0
  br i1 %191, label %192, label %.critedge8.thread

192:                                              ; preds = %189
  %193 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %.ptr.2) #7
  %194 = icmp eq i64 %193, 0
  br i1 %194, label %.critedge8, label %.critedge8.thread

.critedge8.thread:                                ; preds = %186, %189, %192
  %.0133231.lcssa.wide.sroa.phi = phi ptr [ %14, %186 ], [ %.0133231.lcssa.wide.sroa.gep304, %189 ], [ %.0133231.lcssa.wide.sroa.gep305, %192 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #7
  %195 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %.0133231.lcssa.wide.sroa.phi) #7
  store ptr %195, ptr %17, align 8
  %196 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  %197 = load i32, ptr %196, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  store i32 %197, ptr %16, align 4, !tbaa !5
  %198 = invoke noundef i64 @_ZNSt3setIiSt4lessIiESaIiEE5eraseERKi(ptr noundef nonnull align 8 dereferenceable(48) %.0133231.lcssa.wide.sroa.phi, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %199 unwind label %207

199:                                              ; preds = %.critedge8.thread
  %200 = load i32, ptr %16, align 4, !tbaa !5
  %201 = sext i32 %200 to i64
  %202 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %201) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #7
  %203 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %202) #7
  store ptr %203, ptr %18, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #7
  %204 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %202) #7
  store ptr %204, ptr %19, align 8
  %205 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  br i1 %205, label %.lr.ph234, label %._crit_edge235.thread

._crit_edge235.thread:                            ; preds = %199
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #7
  br label %.thread182

._crit_edge235:                                   ; preds = %230
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #7
  %206 = icmp eq i32 %.1132, -1
  br i1 %206, label %.thread182, label %233

207:                                              ; preds = %.critedge8.thread
  %208 = landingpad { ptr, i32 }
          cleanup
  br label %386

.lr.ph234:                                        ; preds = %199, %230
  %.0131232 = phi i32 [ %.1132, %230 ], [ -1, %199 ]
  %209 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #7
  %210 = load i32, ptr %209, align 4, !tbaa !5
  %211 = load i32, ptr %16, align 4, !tbaa !5
  %212 = icmp sgt i32 %211, 0
  br i1 %212, label %213, label %219

213:                                              ; preds = %.lr.ph234
  %214 = add nsw i32 %211, -1
  %215 = zext nneg i32 %214 to i64
  %216 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %215) #7
  %217 = load i32, ptr %216, align 4, !tbaa !5
  %218 = icmp eq i32 %217, %210
  br i1 %218, label %230, label %._crit_edge278

._crit_edge278:                                   ; preds = %213
  %.pre279 = load i32, ptr %16, align 4, !tbaa !5
  br label %219

219:                                              ; preds = %._crit_edge278, %.lr.ph234
  %220 = phi i32 [ %.pre279, %._crit_edge278 ], [ %211, %.lr.ph234 ]
  %221 = add nsw i32 %220, 1
  %222 = load i32, ptr @n, align 4, !tbaa !5
  %223 = icmp slt i32 %221, %222
  br i1 %223, label %224, label %229

224:                                              ; preds = %219
  %225 = sext i32 %221 to i64
  %226 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %225) #7
  %227 = load i32, ptr %226, align 4, !tbaa !5
  %228 = icmp eq i32 %227, %210
  br i1 %228, label %230, label %229

229:                                              ; preds = %224, %219
  br label %230

230:                                              ; preds = %224, %213, %229
  %.1132 = phi i32 [ %210, %229 ], [ %.0131232, %213 ], [ %.0131232, %224 ]
  %231 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #7
  %232 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  br i1 %232, label %.lr.ph234, label %._crit_edge235

233:                                              ; preds = %._crit_edge235
  %234 = load i32, ptr %16, align 4, !tbaa !5
  %235 = sext i32 %234 to i64
  %236 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %235) #7
  store i32 %.1132, ptr %236, align 4, !tbaa !5
  %237 = load i32, ptr %16, align 4, !tbaa !5
  %238 = add nsw i32 %237, 1
  %239 = icmp sgt i32 %237, -2
  %240 = load i32, ptr @n, align 4
  %241 = icmp slt i32 %238, %240
  %or.cond = select i1 %239, i1 %241, i1 false
  br i1 %or.cond, label %242, label %.thread

242:                                              ; preds = %233
  %243 = zext nneg i32 %238 to i64
  %244 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %243) #7
  %245 = load i32, ptr %244, align 4, !tbaa !5
  %246 = icmp eq i32 %245, -1
  %.pre282 = load i32, ptr %16, align 4, !tbaa !5
  br i1 %246, label %.preheader, label %.thread

.preheader:                                       ; preds = %242
  %247 = add nsw i32 %.pre282, 1
  %248 = sext i32 %247 to i64
  %249 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %248) #7
  %250 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %249) #7
  %.not246 = icmp eq i64 %250, 0
  br i1 %.not246, label %._crit_edge240.thread, label %.lr.ph239

._crit_edge240.thread:                            ; preds = %.preheader
  %.pre281288 = load i32, ptr %16, align 4, !tbaa !5
  br label %.thread

._crit_edge240:                                   ; preds = %.lr.ph239
  %.not152 = icmp eq i32 %spec.select, -1
  %.pre281 = load i32, ptr %16, align 4, !tbaa !5
  br i1 %.not152, label %.thread, label %265

.lr.ph239:                                        ; preds = %.preheader, %.lr.ph239
  %indvars.iv274 = phi i64 [ %indvars.iv.next275, %.lr.ph239 ], [ 0, %.preheader ]
  %.0124237 = phi i32 [ %spec.select, %.lr.ph239 ], [ -1, %.preheader ]
  %251 = load i32, ptr %16, align 4, !tbaa !5
  %252 = add nsw i32 %251, 1
  %253 = sext i32 %252 to i64
  %254 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %253) #7
  %255 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %254, i64 noundef %indvars.iv274) #7
  %256 = load i32, ptr %255, align 4, !tbaa !5
  %257 = icmp eq i32 %256, %.1132
  %258 = trunc nuw nsw i64 %indvars.iv274 to i32
  %spec.select = select i1 %257, i32 %258, i32 %.0124237
  %indvars.iv.next275 = add nuw nsw i64 %indvars.iv274, 1
  %259 = load i32, ptr %16, align 4, !tbaa !5
  %260 = add nsw i32 %259, 1
  %261 = sext i32 %260 to i64
  %262 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %261) #7
  %263 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %262) #7
  %264 = icmp ugt i64 %263, %indvars.iv.next275
  br i1 %264, label %.lr.ph239, label %._crit_edge240, !llvm.loop !21

265:                                              ; preds = %._crit_edge240
  %266 = add nsw i32 %.pre281, 1
  %267 = sext i32 %266 to i64
  %268 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %267) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #7
  %269 = load i32, ptr %16, align 4, !tbaa !5
  %270 = add nsw i32 %269, 1
  %271 = sext i32 %270 to i64
  %272 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %271) #7
  %273 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %272) #7
  store ptr %273, ptr %22, align 8
  %274 = sext i32 %spec.select to i64
  %275 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %22, i64 noundef %274) #7
  store ptr %275, ptr %21, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEC2IPivEERKNS0_IT_S5_EE(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #7
  %276 = load ptr, ptr %20, align 8
  %277 = invoke ptr @_ZNSt6vectorIiSaIiEE5eraseEN9__gnu_cxx17__normal_iteratorIPKiS1_EE(ptr noundef nonnull align 8 dereferenceable(24) %268, ptr %276)
          to label %278 unwind label %288

278:                                              ; preds = %265
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #7
  %279 = load i32, ptr %16, align 4, !tbaa !5
  %280 = add nsw i32 %279, 1
  %281 = sext i32 %280 to i64
  %282 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %281) #7
  %283 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %282) #7
  %284 = getelementptr inbounds [3 x %"class.std::set"], ptr %14, i64 0, i64 %283
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #7
  %285 = load i32, ptr %16, align 4, !tbaa !5
  %286 = add nsw i32 %285, 1
  store i32 %286, ptr %23, align 4, !tbaa !5
  %287 = invoke noundef i64 @_ZNSt3setIiSt4lessIiESaIiEE5eraseERKi(ptr noundef nonnull align 8 dereferenceable(48) %284, ptr noundef nonnull align 4 dereferenceable(4) %23)
          to label %290 unwind label %297

288:                                              ; preds = %342, %265
  %289 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #7
  br label %386

290:                                              ; preds = %278
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #7
  %291 = load i32, ptr %16, align 4, !tbaa !5
  %292 = add nsw i32 %291, 1
  %293 = sext i32 %292 to i64
  %294 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %293) #7
  %295 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %294) #7
  %296 = icmp eq i64 %295, 0
  br i1 %296, label %.thread182, label %299

297:                                              ; preds = %356, %278
  %298 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #7
  br label %386

299:                                              ; preds = %290
  %300 = load i32, ptr %16, align 4, !tbaa !5
  %301 = add nsw i32 %300, 1
  %302 = sext i32 %301 to i64
  %303 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %302) #7
  %304 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %303) #7
  %305 = add i64 %304, -1
  %306 = getelementptr inbounds [3 x %"class.std::set"], ptr %14, i64 0, i64 %305
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #7
  %307 = load i32, ptr %16, align 4, !tbaa !5
  %308 = add nsw i32 %307, 1
  store i32 %308, ptr %24, align 4, !tbaa !5
  %309 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertEOi(ptr noundef nonnull align 8 dereferenceable(48) %306, ptr noundef nonnull align 4 dereferenceable(4) %24)
          to label %310 unwind label %311

310:                                              ; preds = %299
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #7
  %.pre280 = load i32, ptr %16, align 4, !tbaa !5
  br label %.thread

311:                                              ; preds = %373, %299
  %312 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #7
  br label %386

.thread:                                          ; preds = %._crit_edge240.thread, %._crit_edge240, %310, %233, %242
  %313 = phi i32 [ %.pre281, %._crit_edge240 ], [ %.pre280, %310 ], [ %237, %233 ], [ %.pre282, %242 ], [ %.pre281288, %._crit_edge240.thread ]
  %314 = icmp sgt i32 %313, 0
  %315 = load i32, ptr @n, align 4
  %316 = icmp sle i32 %313, %315
  %or.cond.1 = select i1 %314, i1 %316, i1 false
  br i1 %or.cond.1, label %317, label %.thread.1

317:                                              ; preds = %.thread
  %318 = add nsw i32 %313, -1
  %319 = zext nneg i32 %318 to i64
  %320 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %319) #7
  %321 = load i32, ptr %320, align 4, !tbaa !5
  %322 = icmp eq i32 %321, -1
  br i1 %322, label %.preheader.1, label %.thread.1

.preheader.1:                                     ; preds = %317
  %323 = load i32, ptr %16, align 4, !tbaa !5
  %324 = add nsw i32 %323, -1
  %325 = sext i32 %324 to i64
  %326 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %325) #7
  %327 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %326) #7
  %.not246.1 = icmp eq i64 %327, 0
  br i1 %.not246.1, label %.thread.1, label %.lr.ph239.1

.lr.ph239.1:                                      ; preds = %.preheader.1, %.lr.ph239.1
  %indvars.iv274.1 = phi i64 [ %indvars.iv.next275.1, %.lr.ph239.1 ], [ 0, %.preheader.1 ]
  %.0124237.1 = phi i32 [ %spec.select.1, %.lr.ph239.1 ], [ -1, %.preheader.1 ]
  %328 = load i32, ptr %16, align 4, !tbaa !5
  %329 = add nsw i32 %328, -1
  %330 = sext i32 %329 to i64
  %331 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %330) #7
  %332 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %331, i64 noundef %indvars.iv274.1) #7
  %333 = load i32, ptr %332, align 4, !tbaa !5
  %334 = icmp eq i32 %333, %.1132
  %335 = trunc nuw nsw i64 %indvars.iv274.1 to i32
  %spec.select.1 = select i1 %334, i32 %335, i32 %.0124237.1
  %indvars.iv.next275.1 = add nuw nsw i64 %indvars.iv274.1, 1
  %336 = load i32, ptr %16, align 4, !tbaa !5
  %337 = add nsw i32 %336, -1
  %338 = sext i32 %337 to i64
  %339 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %338) #7
  %340 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %339) #7
  %341 = icmp ugt i64 %340, %indvars.iv.next275.1
  br i1 %341, label %.lr.ph239.1, label %._crit_edge240.1, !llvm.loop !21

._crit_edge240.1:                                 ; preds = %.lr.ph239.1
  %.not152.1 = icmp eq i32 %spec.select.1, -1
  br i1 %.not152.1, label %.thread.1, label %342

342:                                              ; preds = %._crit_edge240.1
  %343 = load i32, ptr %16, align 4, !tbaa !5
  %344 = add nsw i32 %343, -1
  %345 = sext i32 %344 to i64
  %346 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %345) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #7
  %347 = load i32, ptr %16, align 4, !tbaa !5
  %348 = add nsw i32 %347, -1
  %349 = sext i32 %348 to i64
  %350 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %349) #7
  %351 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %350) #7
  store ptr %351, ptr %22, align 8
  %352 = sext i32 %spec.select.1 to i64
  %353 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %22, i64 noundef %352) #7
  store ptr %353, ptr %21, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEC2IPivEERKNS0_IT_S5_EE(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #7
  %354 = load ptr, ptr %20, align 8
  %355 = invoke ptr @_ZNSt6vectorIiSaIiEE5eraseEN9__gnu_cxx17__normal_iteratorIPKiS1_EE(ptr noundef nonnull align 8 dereferenceable(24) %346, ptr %354)
          to label %356 unwind label %288

356:                                              ; preds = %342
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #7
  %357 = load i32, ptr %16, align 4, !tbaa !5
  %358 = add nsw i32 %357, -1
  %359 = sext i32 %358 to i64
  %360 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %359) #7
  %361 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %360) #7
  %362 = getelementptr inbounds [3 x %"class.std::set"], ptr %14, i64 0, i64 %361
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #7
  %363 = load i32, ptr %16, align 4, !tbaa !5
  %364 = add nsw i32 %363, -1
  store i32 %364, ptr %23, align 4, !tbaa !5
  %365 = invoke noundef i64 @_ZNSt3setIiSt4lessIiESaIiEE5eraseERKi(ptr noundef nonnull align 8 dereferenceable(48) %362, ptr noundef nonnull align 4 dereferenceable(4) %23)
          to label %366 unwind label %297

366:                                              ; preds = %356
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #7
  %367 = load i32, ptr %16, align 4, !tbaa !5
  %368 = add nsw i32 %367, -1
  %369 = sext i32 %368 to i64
  %370 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %369) #7
  %371 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %370) #7
  %372 = icmp eq i64 %371, 0
  br i1 %372, label %.thread182, label %373

373:                                              ; preds = %366
  %374 = load i32, ptr %16, align 4, !tbaa !5
  %375 = add nsw i32 %374, -1
  %376 = sext i32 %375 to i64
  %377 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %376) #7
  %378 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %377) #7
  %379 = add i64 %378, -1
  %380 = getelementptr inbounds [3 x %"class.std::set"], ptr %14, i64 0, i64 %379
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #7
  %381 = load i32, ptr %16, align 4, !tbaa !5
  %382 = add nsw i32 %381, -1
  store i32 %382, ptr %24, align 4, !tbaa !5
  %383 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertEOi(ptr noundef nonnull align 8 dereferenceable(48) %380, ptr noundef nonnull align 4 dereferenceable(4) %24)
          to label %384 unwind label %311

384:                                              ; preds = %373
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #7
  br label %.thread.1

.thread.1:                                        ; preds = %.preheader.1, %384, %._crit_edge240.1, %317, %.thread
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #7
  br label %186

.thread182:                                       ; preds = %290, %366, %._crit_edge235, %._crit_edge235.thread
  %385 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #7
  br label %397

386:                                              ; preds = %288, %297, %311, %207
  %.pn.pn = phi { ptr, i32 } [ %208, %207 ], [ %312, %311 ], [ %298, %297 ], [ %289, %288 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #7
  br label %400

.critedge8:                                       ; preds = %192
  %387 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #7
  %388 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  store ptr %388, ptr %25, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #7
  %389 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  store ptr %389, ptr %26, align 8
  %390 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %26) #7
  br i1 %390, label %.lr.ph244, label %._crit_edge245

._crit_edge245:                                   ; preds = %.lr.ph244, %.critedge8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #7
  br label %397

.lr.ph244:                                        ; preds = %.critedge8, %.lr.ph244
  %391 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #7
  %392 = load i32, ptr %391, align 4, !tbaa !5
  %393 = add nsw i32 %392, 1
  %394 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %393)
  %395 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #7
  %396 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %26) #7
  br i1 %396, label %.lr.ph244, label %._crit_edge245

397:                                              ; preds = %.thread182, %170, %._crit_edge245
  %398 = getelementptr inbounds i8, ptr %14, i64 96
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %398) #7
  %399 = getelementptr inbounds i8, ptr %14, i64 48
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %399) #7
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %14) #7
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %14) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #7
  ret i32 0

400:                                              ; preds = %386, %172
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %386 ], [ %173, %172 ]
  %401 = getelementptr inbounds i8, ptr %14, i64 96
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %401) #7
  %402 = getelementptr inbounds i8, ptr %14, i64 48
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %402) #7
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %14) #7
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %14) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  br label %403

403:                                              ; preds = %400, %164
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %400 ], [ %165, %164 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  br label %404

404:                                              ; preds = %.loopexit184, %.loopexit.split-lp, %161, %403
  %.pn161.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %403 ], [ %.pn159, %161 ], [ %lpad.loopexit, %.loopexit184 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  br label %405

405:                                              ; preds = %404, %78
  %.pn161.pn.pn = phi { ptr, i32 } [ %.pn161.pn, %404 ], [ %79, %78 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #7
  br label %406

406:                                              ; preds = %405, %76
  %.pn161.pn.pn.pn = phi { ptr, i32 } [ %.pn161.pn.pn, %405 ], [ %77, %76 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  br label %407

407:                                              ; preds = %406, %74
  %.pn161.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn161.pn.pn.pn, %406 ], [ %75, %74 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  br label %408

408:                                              ; preds = %407, %72
  %.pn161.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn161.pn.pn.pn.pn, %407 ], [ %73, %72 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  br label %409

409:                                              ; preds = %408, %70
  %.pn161.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn161.pn.pn.pn.pn.pn, %408 ], [ %71, %70 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #7
  br label %410

410:                                              ; preds = %409, %68
  %.pn161.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn161.pn.pn.pn.pn.pn.pn, %409 ], [ %69, %68 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn161.pn.pn.pn.pn.pn.pn.pn
}

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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