; LLVM IR from Tudor67/Competitive-Programming :: AtCoder/ABC324 (G_sol1_choose_shorter_sequence_O(Q+Nx(logN)^2)_time_1471ms_48MB)

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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::set<std::pair<int, int>>, std::allocator<std::set<std::pair<int, int>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::set<std::pair<int, int>>, std::allocator<std::set<std::pair<int, int>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::set<std::pair<int, int>>, std::allocator<std::set<std::pair<int, int>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::set<std::pair<int, int>>, std::allocator<std::set<std::pair<int, int>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"struct.std::pair.3" = type { i32, i32 }
%"struct.std::pair" = type <{ %"struct.std::_Rb_tree_const_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"class.std::reverse_iterator" = type { %"struct.std::_Rb_tree_const_iterator" }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::pair<int, int>, std::pair<int, int>, std::_Identity<std::pair<int, int>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<int, int>, std::pair<int, int>, std::_Identity<std::pair<int, int>>, std::less<std::pair<int, 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 }

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca %"class.std::allocator", align 1
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca %"class.std::allocator", align 1
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"struct.std::pair.3", align 4
  %12 = alloca %"struct.std::pair", align 8
  %13 = alloca %"struct.std::pair.3", align 4
  %14 = alloca %"struct.std::pair", align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca %"struct.std::pair.3", align 4
  %24 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %25 = alloca %"struct.std::pair.3", align 4
  %26 = alloca %"struct.std::pair", align 8
  %27 = alloca %"struct.std::pair.3", align 4
  %28 = alloca %"struct.std::pair", align 8
  %29 = alloca i32, align 4
  %30 = alloca %"struct.std::pair.3", align 4
  %31 = alloca %"class.std::reverse_iterator", align 8
  %32 = alloca %"struct.std::pair.3", align 4
  %33 = alloca %"struct.std::pair", align 8
  %34 = alloca %"struct.std::pair.3", align 4
  %35 = alloca %"struct.std::pair", align 8
  %36 = alloca %"class.std::set", align 8
  %37 = alloca %"class.std::set", align 8
  %38 = alloca %"struct.std::pair.3", align 4
  %39 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %40 = alloca %"struct.std::pair", align 8
  %41 = alloca %"class.std::reverse_iterator", align 8
  %42 = alloca %"struct.std::pair", align 8
  %43 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %44 = alloca ptr, align 8
  %45 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %46 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %47 = alloca ptr, align 8
  %48 = alloca %"struct.std::pair", align 8
  %49 = alloca ptr, align 8
  %50 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %51 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %52 = alloca ptr, align 8
  %53 = alloca %"struct.std::pair.3", align 4
  %54 = alloca %"struct.std::pair", align 8
  %55 = alloca %"struct.std::pair.3", align 4
  %56 = alloca %"struct.std::pair", align 8
  %57 = alloca ptr, align 8
  %58 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %59 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %60 = alloca ptr, align 8
  %61 = alloca %"struct.std::pair", align 8
  %62 = alloca ptr, align 8
  %63 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %64 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %65 = alloca ptr, align 8
  %66 = alloca %"struct.std::pair.3", align 4
  %67 = alloca %"struct.std::pair", align 8
  %68 = alloca %"struct.std::pair.3", align 4
  %69 = alloca %"struct.std::pair", align 8
  store i32 0, ptr %1, align 4
  %70 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %71 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %72 = getelementptr i8, ptr %71, i64 -24
  %73 = load i64, ptr %72, align 8
  %74 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %73
  %75 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %74, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  %76 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.start.p0(i64 24, ptr %3) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #8
  call void @_ZNSaISt3setISt4pairIiiESt4lessIS1_ESaIS1_EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #8
  invoke void @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEC2EmRKS7_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 1, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %77 unwind label %84

77:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #8
  call void @_ZNSaISt3setISt4pairIiiESt4lessIS1_ESaIS1_EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  invoke void @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEC2EmRKS7_(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef 1, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %78 unwind label %88

78:                                               ; preds = %77
  call void @_ZNSt15__new_allocatorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  store i32 1, ptr %9, align 4, !tbaa !8
  br label %79

79:                                               ; preds = %111, %78
  %80 = load i32, ptr %9, align 4, !tbaa !8
  %81 = load i32, ptr %2, align 4, !tbaa !8
  %82 = icmp sle i32 %80, %81
  br i1 %82, label %92, label %83

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

84:                                               ; preds = %0
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %5, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %6, align 4
  call void @_ZNSt15__new_allocatorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #8
  br label %622

88:                                               ; preds = %77
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %5, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %6, align 4
  call void @_ZNSt15__new_allocatorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #8
  br label %621

92:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  %93 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %94 unwind label %114

94:                                               ; preds = %92
  %95 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  invoke void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %96 unwind label %118

96:                                               ; preds = %94
  %97 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %95, ptr noundef nonnull align 4 dereferenceable(8) %11)
          to label %98 unwind label %118

98:                                               ; preds = %96
  %99 = getelementptr inbounds { ptr, i8 }, ptr %12, i32 0, i32 0
  %100 = extractvalue { ptr, i8 } %97, 0
  store ptr %100, ptr %99, align 8
  %101 = getelementptr inbounds { ptr, i8 }, ptr %12, i32 0, i32 1
  %102 = extractvalue { ptr, i8 } %97, 1
  store i8 %102, ptr %101, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  %103 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef 0) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  invoke void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %104 unwind label %122

104:                                              ; preds = %98
  %105 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %103, ptr noundef nonnull align 4 dereferenceable(8) %13)
          to label %106 unwind label %122

106:                                              ; preds = %104
  %107 = getelementptr inbounds { ptr, i8 }, ptr %14, i32 0, i32 0
  %108 = extractvalue { ptr, i8 } %105, 0
  store ptr %108, ptr %107, align 8
  %109 = getelementptr inbounds { ptr, i8 }, ptr %14, i32 0, i32 1
  %110 = extractvalue { ptr, i8 } %105, 1
  store i8 %110, ptr %109, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %111

111:                                              ; preds = %106
  %112 = load i32, ptr %9, align 4, !tbaa !8
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %9, align 4, !tbaa !8
  br label %79, !llvm.loop !11

114:                                              ; preds = %92
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %5, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %6, align 4
  br label %126

118:                                              ; preds = %96, %94
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %5, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %126

122:                                              ; preds = %104, %98
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %5, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %126

126:                                              ; preds = %122, %118, %114
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %620

127:                                              ; preds = %83
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  %128 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %129 unwind label %143

129:                                              ; preds = %127
  %130 = load i32, ptr %15, align 4, !tbaa !8
  %131 = add nsw i32 1, %130
  %132 = sext i32 %131 to i64
  invoke void @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %132)
          to label %133 unwind label %143

133:                                              ; preds = %129
  %134 = load i32, ptr %15, align 4, !tbaa !8
  %135 = add nsw i32 1, %134
  %136 = sext i32 %135 to i64
  invoke void @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %136)
          to label %137 unwind label %143

137:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  store i32 1, ptr %16, align 4, !tbaa !8
  br label %138

138:                                              ; preds = %613, %137
  %139 = load i32, ptr %16, align 4, !tbaa !8
  %140 = load i32, ptr %15, align 4, !tbaa !8
  %141 = icmp sle i32 %139, %140
  br i1 %141, label %147, label %142

142:                                              ; preds = %138
  store i32 5, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %617

143:                                              ; preds = %133, %129, %127
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %5, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %6, align 4
  br label %619

147:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  %148 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %149 unwind label %172

149:                                              ; preds = %147
  %150 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %148, ptr noundef nonnull align 4 dereferenceable(4) %19)
          to label %151 unwind label %172

151:                                              ; preds = %149
  %152 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %150, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %153 unwind label %172

153:                                              ; preds = %151
  %154 = load i32, ptr %18, align 4, !tbaa !8
  %155 = icmp eq i32 %154, 1
  br i1 %155, label %156, label %317

156:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  %157 = load i32, ptr %19, align 4, !tbaa !8
  %158 = sext i32 %157 to i64
  %159 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %158) #8
  %160 = call noundef i64 @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %159) #8
  %161 = trunc i64 %160 to i32
  store i32 %161, ptr %21, align 4, !tbaa !8
  %162 = load i32, ptr %20, align 4, !tbaa !8
  %163 = load i32, ptr %21, align 4, !tbaa !8
  %164 = sdiv i32 %163, 2
  %165 = icmp sle i32 %162, %164
  br i1 %165, label %166, label %246

166:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  store i32 1, ptr %22, align 4, !tbaa !8
  br label %167

167:                                              ; preds = %217, %166
  %168 = load i32, ptr %22, align 4, !tbaa !8
  %169 = load i32, ptr %20, align 4, !tbaa !8
  %170 = icmp sle i32 %168, %169
  br i1 %170, label %176, label %171

171:                                              ; preds = %167
  store i32 8, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %233

172:                                              ; preds = %610, %604, %151, %149, %147
  %173 = landingpad { ptr, i32 }
          cleanup
  %174 = extractvalue { ptr, i32 } %173, 0
  store ptr %174, ptr %5, align 8
  %175 = extractvalue { ptr, i32 } %173, 1
  store i32 %175, ptr %6, align 4
  br label %616

176:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %177 = load i32, ptr %19, align 4, !tbaa !8
  %178 = sext i32 %177 to i64
  %179 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %178) #8
  %180 = call ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %179) #8
  %181 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %24, i32 0, i32 0
  store ptr %180, ptr %181, align 8
  %182 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %182, i64 8, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  %183 = load i32, ptr %19, align 4, !tbaa !8
  %184 = sext i32 %183 to i64
  %185 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %184) #8
  %186 = invoke noundef i64 @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %185, ptr noundef nonnull align 4 dereferenceable(8) %23)
          to label %187 unwind label %220

187:                                              ; preds = %176
  %188 = load i32, ptr %19, align 4, !tbaa !8
  %189 = sext i32 %188 to i64
  %190 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %189) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  %191 = getelementptr inbounds %"struct.std::pair.3", ptr %23, i32 0, i32 1
  %192 = getelementptr inbounds %"struct.std::pair.3", ptr %23, i32 0, i32 0
  invoke void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %25, ptr noundef nonnull align 4 dereferenceable(4) %191, ptr noundef nonnull align 4 dereferenceable(4) %192)
          to label %193 unwind label %224

193:                                              ; preds = %187
  %194 = invoke noundef i64 @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %190, ptr noundef nonnull align 4 dereferenceable(8) %25)
          to label %195 unwind label %224

195:                                              ; preds = %193
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  %196 = load i32, ptr %16, align 4, !tbaa !8
  %197 = sext i32 %196 to i64
  %198 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %197) #8
  %199 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %198, ptr noundef nonnull align 4 dereferenceable(8) %23)
          to label %200 unwind label %220

200:                                              ; preds = %195
  %201 = getelementptr inbounds { ptr, i8 }, ptr %26, i32 0, i32 0
  %202 = extractvalue { ptr, i8 } %199, 0
  store ptr %202, ptr %201, align 8
  %203 = getelementptr inbounds { ptr, i8 }, ptr %26, i32 0, i32 1
  %204 = extractvalue { ptr, i8 } %199, 1
  store i8 %204, ptr %203, align 8
  %205 = load i32, ptr %16, align 4, !tbaa !8
  %206 = sext i32 %205 to i64
  %207 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %206) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %208 = getelementptr inbounds %"struct.std::pair.3", ptr %23, i32 0, i32 1
  %209 = getelementptr inbounds %"struct.std::pair.3", ptr %23, i32 0, i32 0
  invoke void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %27, ptr noundef nonnull align 4 dereferenceable(4) %208, ptr noundef nonnull align 4 dereferenceable(4) %209)
          to label %210 unwind label %228

210:                                              ; preds = %200
  %211 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %207, ptr noundef nonnull align 4 dereferenceable(8) %27)
          to label %212 unwind label %228

212:                                              ; preds = %210
  %213 = getelementptr inbounds { ptr, i8 }, ptr %28, i32 0, i32 0
  %214 = extractvalue { ptr, i8 } %211, 0
  store ptr %214, ptr %213, align 8
  %215 = getelementptr inbounds { ptr, i8 }, ptr %28, i32 0, i32 1
  %216 = extractvalue { ptr, i8 } %211, 1
  store i8 %216, ptr %215, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %217

217:                                              ; preds = %212
  %218 = load i32, ptr %22, align 4, !tbaa !8
  %219 = add nsw i32 %218, 1
  store i32 %219, ptr %22, align 4, !tbaa !8
  br label %167, !llvm.loop !13

220:                                              ; preds = %195, %176
  %221 = landingpad { ptr, i32 }
          cleanup
  %222 = extractvalue { ptr, i32 } %221, 0
  store ptr %222, ptr %5, align 8
  %223 = extractvalue { ptr, i32 } %221, 1
  store i32 %223, ptr %6, align 4
  br label %232

224:                                              ; preds = %193, %187
  %225 = landingpad { ptr, i32 }
          cleanup
  %226 = extractvalue { ptr, i32 } %225, 0
  store ptr %226, ptr %5, align 8
  %227 = extractvalue { ptr, i32 } %225, 1
  store i32 %227, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  br label %232

228:                                              ; preds = %210, %200
  %229 = landingpad { ptr, i32 }
          cleanup
  %230 = extractvalue { ptr, i32 } %229, 0
  store ptr %230, ptr %5, align 8
  %231 = extractvalue { ptr, i32 } %229, 1
  store i32 %231, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  br label %232

232:                                              ; preds = %228, %224, %220
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %316

233:                                              ; preds = %171
  %234 = load i32, ptr %19, align 4, !tbaa !8
  %235 = sext i32 %234 to i64
  %236 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %235) #8
  %237 = load i32, ptr %16, align 4, !tbaa !8
  %238 = sext i32 %237 to i64
  %239 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %238) #8
  call void @_ZSt4swapISt4pairIiiESt4lessIS1_ESaIS1_EEvRSt3setIT_T0_T1_ESA_(ptr noundef nonnull align 8 dereferenceable(48) %236, ptr noundef nonnull align 8 dereferenceable(48) %239) #8
  %240 = load i32, ptr %19, align 4, !tbaa !8
  %241 = sext i32 %240 to i64
  %242 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %241) #8
  %243 = load i32, ptr %16, align 4, !tbaa !8
  %244 = sext i32 %243 to i64
  %245 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %244) #8
  call void @_ZSt4swapISt4pairIiiESt4lessIS1_ESaIS1_EEvRSt3setIT_T0_T1_ESA_(ptr noundef nonnull align 8 dereferenceable(48) %242, ptr noundef nonnull align 8 dereferenceable(48) %245) #8
  br label %315

246:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  store i32 1, ptr %29, align 4, !tbaa !8
  br label %247

247:                                              ; preds = %294, %246
  %248 = load i32, ptr %29, align 4, !tbaa !8
  %249 = load i32, ptr %21, align 4, !tbaa !8
  %250 = load i32, ptr %20, align 4, !tbaa !8
  %251 = sub nsw i32 %249, %250
  %252 = icmp sle i32 %248, %251
  br i1 %252, label %254, label %253

253:                                              ; preds = %247
  store i32 11, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  br label %314

254:                                              ; preds = %247
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %255 = load i32, ptr %19, align 4, !tbaa !8
  %256 = sext i32 %255 to i64
  %257 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %256) #8
  call void @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6rbeginEv(ptr dead_on_unwind writable sret(%"class.std::reverse_iterator") align 8 %31, ptr noundef nonnull align 8 dereferenceable(48) %257) #8
  %258 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt16reverse_iteratorISt23_Rb_tree_const_iteratorISt4pairIiiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %31)
          to label %259 unwind label %297

259:                                              ; preds = %254
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 4 %258, i64 8, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  %260 = load i32, ptr %19, align 4, !tbaa !8
  %261 = sext i32 %260 to i64
  %262 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %261) #8
  %263 = invoke noundef i64 @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %262, ptr noundef nonnull align 4 dereferenceable(8) %30)
          to label %264 unwind label %301

264:                                              ; preds = %259
  %265 = load i32, ptr %19, align 4, !tbaa !8
  %266 = sext i32 %265 to i64
  %267 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %266) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  %268 = getelementptr inbounds %"struct.std::pair.3", ptr %30, i32 0, i32 1
  %269 = getelementptr inbounds %"struct.std::pair.3", ptr %30, i32 0, i32 0
  invoke void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %32, ptr noundef nonnull align 4 dereferenceable(4) %268, ptr noundef nonnull align 4 dereferenceable(4) %269)
          to label %270 unwind label %305

270:                                              ; preds = %264
  %271 = invoke noundef i64 @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %267, ptr noundef nonnull align 4 dereferenceable(8) %32)
          to label %272 unwind label %305

272:                                              ; preds = %270
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  %273 = load i32, ptr %16, align 4, !tbaa !8
  %274 = sext i32 %273 to i64
  %275 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %274) #8
  %276 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %275, ptr noundef nonnull align 4 dereferenceable(8) %30)
          to label %277 unwind label %301

277:                                              ; preds = %272
  %278 = getelementptr inbounds { ptr, i8 }, ptr %33, i32 0, i32 0
  %279 = extractvalue { ptr, i8 } %276, 0
  store ptr %279, ptr %278, align 8
  %280 = getelementptr inbounds { ptr, i8 }, ptr %33, i32 0, i32 1
  %281 = extractvalue { ptr, i8 } %276, 1
  store i8 %281, ptr %280, align 8
  %282 = load i32, ptr %16, align 4, !tbaa !8
  %283 = sext i32 %282 to i64
  %284 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %283) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  %285 = getelementptr inbounds %"struct.std::pair.3", ptr %30, i32 0, i32 1
  %286 = getelementptr inbounds %"struct.std::pair.3", ptr %30, i32 0, i32 0
  invoke void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %34, ptr noundef nonnull align 4 dereferenceable(4) %285, ptr noundef nonnull align 4 dereferenceable(4) %286)
          to label %287 unwind label %309

287:                                              ; preds = %277
  %288 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %284, ptr noundef nonnull align 4 dereferenceable(8) %34)
          to label %289 unwind label %309

289:                                              ; preds = %287
  %290 = getelementptr inbounds { ptr, i8 }, ptr %35, i32 0, i32 0
  %291 = extractvalue { ptr, i8 } %288, 0
  store ptr %291, ptr %290, align 8
  %292 = getelementptr inbounds { ptr, i8 }, ptr %35, i32 0, i32 1
  %293 = extractvalue { ptr, i8 } %288, 1
  store i8 %293, ptr %292, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  br label %294

294:                                              ; preds = %289
  %295 = load i32, ptr %29, align 4, !tbaa !8
  %296 = add nsw i32 %295, 1
  store i32 %296, ptr %29, align 4, !tbaa !8
  br label %247, !llvm.loop !14

297:                                              ; preds = %254
  %298 = landingpad { ptr, i32 }
          cleanup
  %299 = extractvalue { ptr, i32 } %298, 0
  store ptr %299, ptr %5, align 8
  %300 = extractvalue { ptr, i32 } %298, 1
  store i32 %300, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  br label %313

301:                                              ; preds = %272, %259
  %302 = landingpad { ptr, i32 }
          cleanup
  %303 = extractvalue { ptr, i32 } %302, 0
  store ptr %303, ptr %5, align 8
  %304 = extractvalue { ptr, i32 } %302, 1
  store i32 %304, ptr %6, align 4
  br label %313

305:                                              ; preds = %270, %264
  %306 = landingpad { ptr, i32 }
          cleanup
  %307 = extractvalue { ptr, i32 } %306, 0
  store ptr %307, ptr %5, align 8
  %308 = extractvalue { ptr, i32 } %306, 1
  store i32 %308, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  br label %313

309:                                              ; preds = %287, %277
  %310 = landingpad { ptr, i32 }
          cleanup
  %311 = extractvalue { ptr, i32 } %310, 0
  store ptr %311, ptr %5, align 8
  %312 = extractvalue { ptr, i32 } %310, 1
  store i32 %312, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  br label %313

313:                                              ; preds = %309, %305, %301, %297
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  br label %316

314:                                              ; preds = %253
  br label %315

315:                                              ; preds = %314, %233
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %604

316:                                              ; preds = %313, %232
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %616

317:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 48, ptr %36) #8
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %36) #8
  call void @llvm.lifetime.start.p0(i64 48, ptr %37) #8
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %37) #8
  br label %318

318:                                              ; preds = %390, %317
  %319 = load i32, ptr %19, align 4, !tbaa !8
  %320 = sext i32 %319 to i64
  %321 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %320) #8
  %322 = call noundef zeroext i1 @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(48) %321) #8
  %323 = xor i1 %322, true
  br i1 %323, label %324, label %392

324:                                              ; preds = %318
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #8
  %325 = load i32, ptr %19, align 4, !tbaa !8
  %326 = sext i32 %325 to i64
  %327 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %326) #8
  %328 = call ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %327) #8
  %329 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %39, i32 0, i32 0
  store ptr %328, ptr %329, align 8
  %330 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %39) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %38, ptr align 4 %330, i64 8, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  %331 = getelementptr inbounds %"struct.std::pair.3", ptr %38, i32 0, i32 0
  %332 = load i32, ptr %331, align 4, !tbaa !15
  %333 = load i32, ptr %20, align 4, !tbaa !8
  %334 = icmp sle i32 %332, %333
  br i1 %334, label %335, label %351

335:                                              ; preds = %324
  %336 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %36, ptr noundef nonnull align 4 dereferenceable(8) %38)
          to label %337 unwind label %347

337:                                              ; preds = %335
  %338 = getelementptr inbounds { ptr, i8 }, ptr %40, i32 0, i32 0
  %339 = extractvalue { ptr, i8 } %336, 0
  store ptr %339, ptr %338, align 8
  %340 = getelementptr inbounds { ptr, i8 }, ptr %40, i32 0, i32 1
  %341 = extractvalue { ptr, i8 } %336, 1
  store i8 %341, ptr %340, align 8
  %342 = load i32, ptr %19, align 4, !tbaa !8
  %343 = sext i32 %342 to i64
  %344 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %343) #8
  %345 = invoke noundef i64 @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %344, ptr noundef nonnull align 4 dereferenceable(8) %38)
          to label %346 unwind label %347

346:                                              ; preds = %337
  br label %352

347:                                              ; preds = %372, %370, %337, %335
  %348 = landingpad { ptr, i32 }
          cleanup
  %349 = extractvalue { ptr, i32 } %348, 0
  store ptr %349, ptr %5, align 8
  %350 = extractvalue { ptr, i32 } %348, 1
  store i32 %350, ptr %6, align 4
  br label %391

351:                                              ; preds = %324
  store i32 15, ptr %17, align 4
  br label %388

352:                                              ; preds = %346
  %353 = load i32, ptr %19, align 4, !tbaa !8
  %354 = sext i32 %353 to i64
  %355 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %354) #8
  %356 = call noundef zeroext i1 @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(48) %355) #8
  br i1 %356, label %357, label %358

357:                                              ; preds = %352
  store i32 15, ptr %17, align 4
  br label %388

358:                                              ; preds = %352
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #8
  %359 = load i32, ptr %19, align 4, !tbaa !8
  %360 = sext i32 %359 to i64
  %361 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %360) #8
  call void @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6rbeginEv(ptr dead_on_unwind writable sret(%"class.std::reverse_iterator") align 8 %41, ptr noundef nonnull align 8 dereferenceable(48) %361) #8
  %362 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt16reverse_iteratorISt23_Rb_tree_const_iteratorISt4pairIiiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %41)
          to label %363 unwind label %382

363:                                              ; preds = %358
  %364 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %38, ptr noundef nonnull align 4 dereferenceable(8) %362)
          to label %365 unwind label %382

365:                                              ; preds = %363
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #8
  %366 = load i32, ptr %20, align 4, !tbaa !8
  %367 = getelementptr inbounds %"struct.std::pair.3", ptr %38, i32 0, i32 0
  %368 = load i32, ptr %367, align 4, !tbaa !15
  %369 = icmp slt i32 %366, %368
  br i1 %369, label %370, label %386

370:                                              ; preds = %365
  %371 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %37, ptr noundef nonnull align 4 dereferenceable(8) %38)
          to label %372 unwind label %347

372:                                              ; preds = %370
  %373 = getelementptr inbounds { ptr, i8 }, ptr %42, i32 0, i32 0
  %374 = extractvalue { ptr, i8 } %371, 0
  store ptr %374, ptr %373, align 8
  %375 = getelementptr inbounds { ptr, i8 }, ptr %42, i32 0, i32 1
  %376 = extractvalue { ptr, i8 } %371, 1
  store i8 %376, ptr %375, align 8
  %377 = load i32, ptr %19, align 4, !tbaa !8
  %378 = sext i32 %377 to i64
  %379 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %378) #8
  %380 = invoke noundef i64 @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %379, ptr noundef nonnull align 4 dereferenceable(8) %38)
          to label %381 unwind label %347

381:                                              ; preds = %372
  br label %387

382:                                              ; preds = %363, %358
  %383 = landingpad { ptr, i32 }
          cleanup
  %384 = extractvalue { ptr, i32 } %383, 0
  store ptr %384, ptr %5, align 8
  %385 = extractvalue { ptr, i32 } %383, 1
  store i32 %385, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #8
  br label %391

386:                                              ; preds = %365
  store i32 15, ptr %17, align 4
  br label %388

387:                                              ; preds = %381
  store i32 0, ptr %17, align 4
  br label %388

388:                                              ; preds = %387, %386, %357, %351
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #8
  %389 = load i32, ptr %17, align 4
  switch i32 %389, label %628 [
    i32 0, label %390
    i32 15, label %392
  ]

390:                                              ; preds = %388
  br label %318, !llvm.loop !17

391:                                              ; preds = %382, %347
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #8
  br label %603

392:                                              ; preds = %388, %318
  %393 = load i32, ptr %19, align 4, !tbaa !8
  %394 = sext i32 %393 to i64
  %395 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %394) #8
  %396 = call noundef zeroext i1 @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(48) %395) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #8
  br i1 %396, label %408, label %397

397:                                              ; preds = %392
  %398 = load i32, ptr %19, align 4, !tbaa !8
  %399 = sext i32 %398 to i64
  %400 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %399) #8
  %401 = call ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %400) #8
  %402 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %43, i32 0, i32 0
  store ptr %401, ptr %402, align 8
  %403 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %43) #8
  %404 = getelementptr inbounds %"struct.std::pair.3", ptr %403, i32 0, i32 0
  %405 = load i32, ptr %404, align 4, !tbaa !15
  %406 = load i32, ptr %20, align 4, !tbaa !8
  %407 = icmp sle i32 %405, %406
  br label %408

408:                                              ; preds = %397, %392
  %409 = phi i1 [ false, %392 ], [ %407, %397 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #8
  br i1 %409, label %410, label %500

410:                                              ; preds = %408
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #8
  store ptr %36, ptr %44, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #8
  %411 = load ptr, ptr %44, align 8, !tbaa !18
  %412 = call ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %411) #8
  %413 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %45, i32 0, i32 0
  store ptr %412, ptr %413, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #8
  %414 = load ptr, ptr %44, align 8, !tbaa !18
  %415 = call ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %414) #8
  %416 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %46, i32 0, i32 0
  store ptr %415, ptr %416, align 8
  br label %417

417:                                              ; preds = %432, %410
  %418 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIiiEES4_(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %46) #8
  br i1 %418, label %420, label %419

419:                                              ; preds = %417
  store i32 16, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #8
  br label %438

420:                                              ; preds = %417
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #8
  %421 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %45) #8
  store ptr %421, ptr %47, align 8, !tbaa !18
  %422 = load i32, ptr %19, align 4, !tbaa !8
  %423 = sext i32 %422 to i64
  %424 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %423) #8
  %425 = load ptr, ptr %47, align 8, !tbaa !18
  %426 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %424, ptr noundef nonnull align 4 dereferenceable(8) %425)
          to label %427 unwind label %434

427:                                              ; preds = %420
  %428 = getelementptr inbounds { ptr, i8 }, ptr %48, i32 0, i32 0
  %429 = extractvalue { ptr, i8 } %426, 0
  store ptr %429, ptr %428, align 8
  %430 = getelementptr inbounds { ptr, i8 }, ptr %48, i32 0, i32 1
  %431 = extractvalue { ptr, i8 } %426, 1
  store i8 %431, ptr %430, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #8
  br label %432

432:                                              ; preds = %427
  %433 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIiiEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %45) #8
  br label %417

434:                                              ; preds = %420
  %435 = landingpad { ptr, i32 }
          cleanup
  %436 = extractvalue { ptr, i32 } %435, 0
  store ptr %436, ptr %5, align 8
  %437 = extractvalue { ptr, i32 } %435, 1
  store i32 %437, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #8
  br label %603

438:                                              ; preds = %419
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #8
  store ptr %37, ptr %49, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #8
  %439 = load ptr, ptr %49, align 8, !tbaa !18
  %440 = call ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %439) #8
  %441 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %50, i32 0, i32 0
  store ptr %440, ptr %441, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #8
  %442 = load ptr, ptr %49, align 8, !tbaa !18
  %443 = call ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %442) #8
  %444 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %51, i32 0, i32 0
  store ptr %443, ptr %444, align 8
  br label %445

445:                                              ; preds = %484, %438
  %446 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIiiEES4_(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef nonnull align 8 dereferenceable(8) %51) #8
  br i1 %446, label %448, label %447

447:                                              ; preds = %445
  store i32 18, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #8
  br label %499

448:                                              ; preds = %445
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #8
  %449 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %50) #8
  store ptr %449, ptr %52, align 8, !tbaa !18
  %450 = load i32, ptr %19, align 4, !tbaa !8
  %451 = sext i32 %450 to i64
  %452 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %451) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #8
  %453 = load ptr, ptr %52, align 8, !tbaa !18
  %454 = getelementptr inbounds %"struct.std::pair.3", ptr %453, i32 0, i32 1
  %455 = load ptr, ptr %52, align 8, !tbaa !18
  %456 = getelementptr inbounds %"struct.std::pair.3", ptr %455, i32 0, i32 0
  invoke void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE18_ConstructiblePairIT_T0_EEclsr5_PCCPE26_ImplicitlyConvertiblePairIS3_S4_EEEbE4typeELb1EEERKiS8_(ptr noundef nonnull align 4 dereferenceable(8) %53, ptr noundef nonnull align 4 dereferenceable(4) %454, ptr noundef nonnull align 4 dereferenceable(4) %456)
          to label %457 unwind label %486

457:                                              ; preds = %448
  %458 = invoke noundef i64 @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %452, ptr noundef nonnull align 4 dereferenceable(8) %53)
          to label %459 unwind label %486

459:                                              ; preds = %457
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #8
  %460 = load i32, ptr %16, align 4, !tbaa !8
  %461 = sext i32 %460 to i64
  %462 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %461) #8
  %463 = load ptr, ptr %52, align 8, !tbaa !18
  %464 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %462, ptr noundef nonnull align 4 dereferenceable(8) %463)
          to label %465 unwind label %490

465:                                              ; preds = %459
  %466 = getelementptr inbounds { ptr, i8 }, ptr %54, i32 0, i32 0
  %467 = extractvalue { ptr, i8 } %464, 0
  store ptr %467, ptr %466, align 8
  %468 = getelementptr inbounds { ptr, i8 }, ptr %54, i32 0, i32 1
  %469 = extractvalue { ptr, i8 } %464, 1
  store i8 %469, ptr %468, align 8
  %470 = load i32, ptr %16, align 4, !tbaa !8
  %471 = sext i32 %470 to i64
  %472 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %471) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #8
  %473 = load ptr, ptr %52, align 8, !tbaa !18
  %474 = getelementptr inbounds %"struct.std::pair.3", ptr %473, i32 0, i32 1
  %475 = load ptr, ptr %52, align 8, !tbaa !18
  %476 = getelementptr inbounds %"struct.std::pair.3", ptr %475, i32 0, i32 0
  invoke void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE18_ConstructiblePairIT_T0_EEclsr5_PCCPE26_ImplicitlyConvertiblePairIS3_S4_EEEbE4typeELb1EEERKiS8_(ptr noundef nonnull align 4 dereferenceable(8) %55, ptr noundef nonnull align 4 dereferenceable(4) %474, ptr noundef nonnull align 4 dereferenceable(4) %476)
          to label %477 unwind label %494

477:                                              ; preds = %465
  %478 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %472, ptr noundef nonnull align 4 dereferenceable(8) %55)
          to label %479 unwind label %494

479:                                              ; preds = %477
  %480 = getelementptr inbounds { ptr, i8 }, ptr %56, i32 0, i32 0
  %481 = extractvalue { ptr, i8 } %478, 0
  store ptr %481, ptr %480, align 8
  %482 = getelementptr inbounds { ptr, i8 }, ptr %56, i32 0, i32 1
  %483 = extractvalue { ptr, i8 } %478, 1
  store i8 %483, ptr %482, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #8
  br label %484

484:                                              ; preds = %479
  %485 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIiiEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %50) #8
  br label %445

486:                                              ; preds = %457, %448
  %487 = landingpad { ptr, i32 }
          cleanup
  %488 = extractvalue { ptr, i32 } %487, 0
  store ptr %488, ptr %5, align 8
  %489 = extractvalue { ptr, i32 } %487, 1
  store i32 %489, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #8
  br label %498

490:                                              ; preds = %459
  %491 = landingpad { ptr, i32 }
          cleanup
  %492 = extractvalue { ptr, i32 } %491, 0
  store ptr %492, ptr %5, align 8
  %493 = extractvalue { ptr, i32 } %491, 1
  store i32 %493, ptr %6, align 4
  br label %498

494:                                              ; preds = %477, %465
  %495 = landingpad { ptr, i32 }
          cleanup
  %496 = extractvalue { ptr, i32 } %495, 0
  store ptr %496, ptr %5, align 8
  %497 = extractvalue { ptr, i32 } %495, 1
  store i32 %497, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #8
  br label %498

498:                                              ; preds = %494, %490, %486
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #8
  br label %603

499:                                              ; preds = %447
  br label %602

500:                                              ; preds = %408
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #8
  store ptr %37, ptr %57, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #8
  %501 = load ptr, ptr %57, align 8, !tbaa !18
  %502 = call ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %501) #8
  %503 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %58, i32 0, i32 0
  store ptr %502, ptr %503, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %59) #8
  %504 = load ptr, ptr %57, align 8, !tbaa !18
  %505 = call ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %504) #8
  %506 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %59, i32 0, i32 0
  store ptr %505, ptr %506, align 8
  br label %507

507:                                              ; preds = %522, %500
  %508 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIiiEES4_(ptr noundef nonnull align 8 dereferenceable(8) %58, ptr noundef nonnull align 8 dereferenceable(8) %59) #8
  br i1 %508, label %510, label %509

509:                                              ; preds = %507
  store i32 20, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #8
  br label %528

510:                                              ; preds = %507
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #8
  %511 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %58) #8
  store ptr %511, ptr %60, align 8, !tbaa !18
  %512 = load i32, ptr %19, align 4, !tbaa !8
  %513 = sext i32 %512 to i64
  %514 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %513) #8
  %515 = load ptr, ptr %60, align 8, !tbaa !18
  %516 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %514, ptr noundef nonnull align 4 dereferenceable(8) %515)
          to label %517 unwind label %524

517:                                              ; preds = %510
  %518 = getelementptr inbounds { ptr, i8 }, ptr %61, i32 0, i32 0
  %519 = extractvalue { ptr, i8 } %516, 0
  store ptr %519, ptr %518, align 8
  %520 = getelementptr inbounds { ptr, i8 }, ptr %61, i32 0, i32 1
  %521 = extractvalue { ptr, i8 } %516, 1
  store i8 %521, ptr %520, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #8
  br label %522

522:                                              ; preds = %517
  %523 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIiiEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %58) #8
  br label %507

524:                                              ; preds = %510
  %525 = landingpad { ptr, i32 }
          cleanup
  %526 = extractvalue { ptr, i32 } %525, 0
  store ptr %526, ptr %5, align 8
  %527 = extractvalue { ptr, i32 } %525, 1
  store i32 %527, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #8
  br label %603

528:                                              ; preds = %509
  call void @llvm.lifetime.start.p0(i64 8, ptr %62) #8
  store ptr %36, ptr %62, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %63) #8
  %529 = load ptr, ptr %62, align 8, !tbaa !18
  %530 = call ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %529) #8
  %531 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %63, i32 0, i32 0
  store ptr %530, ptr %531, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %64) #8
  %532 = load ptr, ptr %62, align 8, !tbaa !18
  %533 = call ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %532) #8
  %534 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %64, i32 0, i32 0
  store ptr %533, ptr %534, align 8
  br label %535

535:                                              ; preds = %574, %528
  %536 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIiiEES4_(ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef nonnull align 8 dereferenceable(8) %64) #8
  br i1 %536, label %538, label %537

537:                                              ; preds = %535
  store i32 22, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #8
  br label %589

538:                                              ; preds = %535
  call void @llvm.lifetime.start.p0(i64 8, ptr %65) #8
  %539 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %63) #8
  store ptr %539, ptr %65, align 8, !tbaa !18
  %540 = load i32, ptr %19, align 4, !tbaa !8
  %541 = sext i32 %540 to i64
  %542 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %541) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %66) #8
  %543 = load ptr, ptr %65, align 8, !tbaa !18
  %544 = getelementptr inbounds %"struct.std::pair.3", ptr %543, i32 0, i32 1
  %545 = load ptr, ptr %65, align 8, !tbaa !18
  %546 = getelementptr inbounds %"struct.std::pair.3", ptr %545, i32 0, i32 0
  invoke void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE18_ConstructiblePairIT_T0_EEclsr5_PCCPE26_ImplicitlyConvertiblePairIS3_S4_EEEbE4typeELb1EEERKiS8_(ptr noundef nonnull align 4 dereferenceable(8) %66, ptr noundef nonnull align 4 dereferenceable(4) %544, ptr noundef nonnull align 4 dereferenceable(4) %546)
          to label %547 unwind label %576

547:                                              ; preds = %538
  %548 = invoke noundef i64 @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %542, ptr noundef nonnull align 4 dereferenceable(8) %66)
          to label %549 unwind label %576

549:                                              ; preds = %547
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #8
  %550 = load i32, ptr %16, align 4, !tbaa !8
  %551 = sext i32 %550 to i64
  %552 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %551) #8
  %553 = load ptr, ptr %65, align 8, !tbaa !18
  %554 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %552, ptr noundef nonnull align 4 dereferenceable(8) %553)
          to label %555 unwind label %580

555:                                              ; preds = %549
  %556 = getelementptr inbounds { ptr, i8 }, ptr %67, i32 0, i32 0
  %557 = extractvalue { ptr, i8 } %554, 0
  store ptr %557, ptr %556, align 8
  %558 = getelementptr inbounds { ptr, i8 }, ptr %67, i32 0, i32 1
  %559 = extractvalue { ptr, i8 } %554, 1
  store i8 %559, ptr %558, align 8
  %560 = load i32, ptr %16, align 4, !tbaa !8
  %561 = sext i32 %560 to i64
  %562 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %561) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %68) #8
  %563 = load ptr, ptr %65, align 8, !tbaa !18
  %564 = getelementptr inbounds %"struct.std::pair.3", ptr %563, i32 0, i32 1
  %565 = load ptr, ptr %65, align 8, !tbaa !18
  %566 = getelementptr inbounds %"struct.std::pair.3", ptr %565, i32 0, i32 0
  invoke void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE18_ConstructiblePairIT_T0_EEclsr5_PCCPE26_ImplicitlyConvertiblePairIS3_S4_EEEbE4typeELb1EEERKiS8_(ptr noundef nonnull align 4 dereferenceable(8) %68, ptr noundef nonnull align 4 dereferenceable(4) %564, ptr noundef nonnull align 4 dereferenceable(4) %566)
          to label %567 unwind label %584

567:                                              ; preds = %555
  %568 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %562, ptr noundef nonnull align 4 dereferenceable(8) %68)
          to label %569 unwind label %584

569:                                              ; preds = %567
  %570 = getelementptr inbounds { ptr, i8 }, ptr %69, i32 0, i32 0
  %571 = extractvalue { ptr, i8 } %568, 0
  store ptr %571, ptr %570, align 8
  %572 = getelementptr inbounds { ptr, i8 }, ptr %69, i32 0, i32 1
  %573 = extractvalue { ptr, i8 } %568, 1
  store i8 %573, ptr %572, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %68) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %65) #8
  br label %574

574:                                              ; preds = %569
  %575 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIiiEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %63) #8
  br label %535

576:                                              ; preds = %547, %538
  %577 = landingpad { ptr, i32 }
          cleanup
  %578 = extractvalue { ptr, i32 } %577, 0
  store ptr %578, ptr %5, align 8
  %579 = extractvalue { ptr, i32 } %577, 1
  store i32 %579, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #8
  br label %588

580:                                              ; preds = %549
  %581 = landingpad { ptr, i32 }
          cleanup
  %582 = extractvalue { ptr, i32 } %581, 0
  store ptr %582, ptr %5, align 8
  %583 = extractvalue { ptr, i32 } %581, 1
  store i32 %583, ptr %6, align 4
  br label %588

584:                                              ; preds = %567, %555
  %585 = landingpad { ptr, i32 }
          cleanup
  %586 = extractvalue { ptr, i32 } %585, 0
  store ptr %586, ptr %5, align 8
  %587 = extractvalue { ptr, i32 } %585, 1
  store i32 %587, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %68) #8
  br label %588

588:                                              ; preds = %584, %580, %576
  call void @llvm.lifetime.end.p0(i64 8, ptr %65) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #8
  br label %603

589:                                              ; preds = %537
  %590 = load i32, ptr %19, align 4, !tbaa !8
  %591 = sext i32 %590 to i64
  %592 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %591) #8
  %593 = load i32, ptr %16, align 4, !tbaa !8
  %594 = sext i32 %593 to i64
  %595 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %594) #8
  call void @_ZSt4swapISt4pairIiiESt4lessIS1_ESaIS1_EEvRSt3setIT_T0_T1_ESA_(ptr noundef nonnull align 8 dereferenceable(48) %592, ptr noundef nonnull align 8 dereferenceable(48) %595) #8
  %596 = load i32, ptr %19, align 4, !tbaa !8
  %597 = sext i32 %596 to i64
  %598 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %597) #8
  %599 = load i32, ptr %16, align 4, !tbaa !8
  %600 = sext i32 %599 to i64
  %601 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %600) #8
  call void @_ZSt4swapISt4pairIiiESt4lessIS1_ESaIS1_EEvRSt3setIT_T0_T1_ESA_(ptr noundef nonnull align 8 dereferenceable(48) %598, ptr noundef nonnull align 8 dereferenceable(48) %601) #8
  br label %602

602:                                              ; preds = %589, %499
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %37) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %37) #8
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %36) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %36) #8
  br label %604

603:                                              ; preds = %588, %524, %498, %434, %391
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %37) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %37) #8
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %36) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %36) #8
  br label %616

604:                                              ; preds = %602, %315
  %605 = load i32, ptr %16, align 4, !tbaa !8
  %606 = sext i32 %605 to i64
  %607 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %606) #8
  %608 = call noundef i64 @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %607) #8
  %609 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %608)
          to label %610 unwind label %172

610:                                              ; preds = %604
  %611 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %609, ptr noundef @.str)
          to label %612 unwind label %172

612:                                              ; preds = %610
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %613

613:                                              ; preds = %612
  %614 = load i32, ptr %16, align 4, !tbaa !8
  %615 = add nsw i32 %614, 1
  store i32 %615, ptr %16, align 4, !tbaa !8
  br label %138, !llvm.loop !20

616:                                              ; preds = %603, %316, %172
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %619

617:                                              ; preds = %142
  store i32 0, ptr %1, align 4
  store i32 1, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #8
  call void @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  %618 = load i32, ptr %1, align 4
  ret i32 %618

619:                                              ; preds = %616, %143
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %620

620:                                              ; preds = %619, %126
  call void @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  br label %621

621:                                              ; preds = %620, %88
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #8
  call void @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  br label %622

622:                                              ; preds = %621, %84
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %623

623:                                              ; preds = %622
  %624 = load ptr, ptr %5, align 8
  %625 = load i32, ptr %6, align 4
  %626 = insertvalue { ptr, i32 } poison, ptr %624, 0
  %627 = insertvalue { ptr, i32 } %626, i32 %625, 1
  resume { ptr, i32 } %627

628:                                              ; preds = %388
  unreachable
}

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapISt4pairIiiESt4lessIS1_ESaIS1_EEvRSt3setIT_T0_T1_ESA_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6rbeginEv(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #7

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

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

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

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

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

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


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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::set<std::pair<int, int>>, std::allocator<std::set<std::pair<int, int>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::set<std::pair<int, int>>, std::allocator<std::set<std::pair<int, int>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::set<std::pair<int, int>>, std::allocator<std::set<std::pair<int, int>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::set<std::pair<int, int>>, std::allocator<std::set<std::pair<int, int>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"struct.std::pair.3" = type { i32, i32 }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"class.std::reverse_iterator" = type { %"struct.std::_Rb_tree_const_iterator" }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::pair<int, int>, std::pair<int, int>, std::_Identity<std::pair<int, int>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<int, int>, std::pair<int, int>, std::_Identity<std::pair<int, int>>, std::less<std::pair<int, 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 }

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.std::vector", align 8
  %3 = alloca %"class.std::allocator", align 1
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca %"class.std::allocator", align 1
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"struct.std::pair.3", align 4
  %9 = alloca %"struct.std::pair.3", align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %"struct.std::pair.3", align 8
  %15 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %16 = alloca %"struct.std::pair.3", align 4
  %17 = alloca %"struct.std::pair.3", align 4
  %18 = alloca %"struct.std::pair.3", align 8
  %19 = alloca %"class.std::reverse_iterator", align 8
  %20 = alloca %"struct.std::pair.3", align 4
  %21 = alloca %"struct.std::pair.3", align 4
  %22 = alloca %"class.std::set", align 8
  %23 = alloca %"class.std::set", align 8
  %24 = alloca %"struct.std::pair.3", align 8
  %25 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %26 = alloca %"class.std::reverse_iterator", align 8
  %27 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %28 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %29 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %30 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %31 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %32 = alloca %"struct.std::pair.3", align 4
  %33 = alloca %"struct.std::pair.3", align 4
  %34 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %35 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %36 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %37 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %38 = alloca %"struct.std::pair.3", align 4
  %39 = alloca %"struct.std::pair.3", align 4
  %40 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %41 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %42 = getelementptr i8, ptr %41, i64 -24
  %43 = load i64, ptr %42, align 8
  %44 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %43
  %45 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %44, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  %46 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #7
  call void @_ZNSaISt3setISt4pairIiiESt4lessIS1_ESaIS1_EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #7
  invoke void @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEC2EmRKS7_(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 1, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %47 unwind label %51

47:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #7
  call void @_ZNSaISt3setISt4pairIiiESt4lessIS1_ESaIS1_EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  invoke void @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEC2EmRKS7_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 1, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %48 unwind label %53

48:                                               ; preds = %47
  call void @_ZNSt15__new_allocatorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  store i32 1, ptr %6, align 4, !tbaa !8
  %49 = load i32, ptr %1, align 4, !tbaa !8
  %.not114 = icmp slt i32 %49, 1
  br i1 %.not114, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %62, %48
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  %50 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %73 unwind label %84

51:                                               ; preds = %0
  %52 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #7
  br label %335

53:                                               ; preds = %47
  %54 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #7
  br label %334

.lr.ph:                                           ; preds = %48, %62
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #7
  %55 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %56 unwind label %66

56:                                               ; preds = %.lr.ph
  %57 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %58 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %57, ptr noundef nonnull align 4 dereferenceable(8) %8)
          to label %59 unwind label %68

59:                                               ; preds = %56
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  %60 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %61 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %60, ptr noundef nonnull align 4 dereferenceable(8) %9)
          to label %62 unwind label %70

62:                                               ; preds = %59
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  %63 = load i32, ptr %6, align 4, !tbaa !8
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %6, align 4, !tbaa !8
  %65 = load i32, ptr %1, align 4, !tbaa !8
  %.not.not = icmp slt i32 %63, %65
  br i1 %.not.not, label %.lr.ph, label %._crit_edge, !llvm.loop !11

66:                                               ; preds = %.lr.ph
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %72

68:                                               ; preds = %56
  %69 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  br label %72

70:                                               ; preds = %59
  %71 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  br label %72

72:                                               ; preds = %70, %68, %66
  %.pn104 = phi { ptr, i32 } [ %71, %70 ], [ %69, %68 ], [ %67, %66 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  br label %333

73:                                               ; preds = %._crit_edge
  %74 = load i32, ptr %10, align 4, !tbaa !8
  %75 = add nsw i32 %74, 1
  %76 = sext i32 %75 to i64
  invoke void @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %76)
          to label %77 unwind label %84

77:                                               ; preds = %73
  %78 = load i32, ptr %10, align 4, !tbaa !8
  %79 = add nsw i32 %78, 1
  %80 = sext i32 %79 to i64
  invoke void @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %80)
          to label %.preheader113 unwind label %84

.preheader113:                                    ; preds = %77
  %81 = load i32, ptr %10, align 4, !tbaa !8
  %.not86136 = icmp slt i32 %81, 1
  br i1 %.not86136, label %._crit_edge140, label %.lr.ph139

.lr.ph139:                                        ; preds = %.preheader113
  %82 = getelementptr inbounds i8, ptr %14, i64 4
  %83 = getelementptr inbounds i8, ptr %18, i64 4
  br label %86

._crit_edge140:                                   ; preds = %328, %.preheader113
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  call void @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  call void @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret i32 0

84:                                               ; preds = %77, %73, %._crit_edge
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %332

86:                                               ; preds = %.lr.ph139, %328
  %indvars.iv = phi i64 [ 1, %.lr.ph139 ], [ %indvars.iv.next, %328 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #7
  %87 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %88 unwind label %111

88:                                               ; preds = %86
  %89 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %87, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %90 unwind label %111

90:                                               ; preds = %88
  %91 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %89, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %92 unwind label %111

92:                                               ; preds = %90
  %93 = load i32, ptr %11, align 4, !tbaa !8
  %94 = icmp eq i32 %93, 1
  br i1 %94, label %95, label %175

95:                                               ; preds = %92
  %96 = load i32, ptr %12, align 4, !tbaa !8
  %97 = sext i32 %96 to i64
  %98 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %97) #7
  %99 = call noundef i64 @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %98) #7
  %100 = trunc i64 %99 to i32
  %101 = load i32, ptr %13, align 4, !tbaa !8
  %102 = sdiv i32 %100, 2
  %.not94 = icmp sgt i32 %101, %102
  br i1 %.not94, label %.preheader, label %.preheader111

.preheader111:                                    ; preds = %95
  %.not98129 = icmp slt i32 %101, 1
  br i1 %.not98129, label %._crit_edge132, label %.lr.ph131

.preheader:                                       ; preds = %95
  %.not95133.not = icmp slt i32 %101, %100
  br i1 %.not95133.not, label %.lr.ph135, label %.loopexit

._crit_edge132:                                   ; preds = %134, %.preheader111
  %103 = load i32, ptr %12, align 4, !tbaa !8
  %104 = sext i32 %103 to i64
  %105 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %104) #7
  %106 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #7
  call void @_ZSt4swapISt4pairIiiESt4lessIS1_ESaIS1_EEvRSt3setIT_T0_T1_ESA_(ptr noundef nonnull align 8 dereferenceable(48) %105, ptr noundef nonnull align 8 dereferenceable(48) %106) #7
  %107 = load i32, ptr %12, align 4, !tbaa !8
  %108 = sext i32 %107 to i64
  %109 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %108) #7
  %110 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv) #7
  call void @_ZSt4swapISt4pairIiiESt4lessIS1_ESaIS1_EEvRSt3setIT_T0_T1_ESA_(ptr noundef nonnull align 8 dereferenceable(48) %109, ptr noundef nonnull align 8 dereferenceable(48) %110) #7
  br label %.loopexit

111:                                              ; preds = %326, %.loopexit, %90, %88, %86
  %112 = landingpad { ptr, i32 }
          cleanup
  br label %331

.lr.ph131:                                        ; preds = %.preheader111, %134
  %.084130 = phi i32 [ %135, %134 ], [ 1, %.preheader111 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  %113 = load i32, ptr %12, align 4, !tbaa !8
  %114 = sext i32 %113 to i64
  %115 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %114) #7
  %116 = call ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %115) #7
  store ptr %116, ptr %15, align 8
  %117 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  %118 = load i64, ptr %117, align 4
  store i64 %118, ptr %14, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  %119 = load i32, ptr %12, align 4, !tbaa !8
  %120 = sext i32 %119 to i64
  %121 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %120) #7
  %122 = invoke noundef i64 @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %121, ptr noundef nonnull align 4 dereferenceable(8) %14)
          to label %123 unwind label %137

123:                                              ; preds = %.lr.ph131
  %124 = load i32, ptr %12, align 4, !tbaa !8
  %125 = sext i32 %124 to i64
  %126 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %125) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #7
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(4) %82, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %127 = invoke noundef i64 @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %126, ptr noundef nonnull align 4 dereferenceable(8) %16)
          to label %128 unwind label %139

128:                                              ; preds = %123
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  %129 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #7
  %130 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %129, ptr noundef nonnull align 4 dereferenceable(8) %14)
          to label %131 unwind label %137

131:                                              ; preds = %128
  %132 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #7
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(4) %82, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %133 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %132, ptr noundef nonnull align 4 dereferenceable(8) %17)
          to label %134 unwind label %141

134:                                              ; preds = %131
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  %135 = add nuw nsw i32 %.084130, 1
  %136 = load i32, ptr %13, align 4, !tbaa !8
  %.not98.not = icmp slt i32 %.084130, %136
  br i1 %.not98.not, label %.lr.ph131, label %._crit_edge132, !llvm.loop !13

137:                                              ; preds = %128, %.lr.ph131
  %138 = landingpad { ptr, i32 }
          cleanup
  br label %143

139:                                              ; preds = %123
  %140 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  br label %143

141:                                              ; preds = %131
  %142 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  br label %143

143:                                              ; preds = %141, %139, %137
  %.pn99 = phi { ptr, i32 } [ %142, %141 ], [ %138, %137 ], [ %140, %139 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  br label %331

.lr.ph135:                                        ; preds = %.preheader, %164
  %.085134 = phi i32 [ %165, %164 ], [ 1, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #7
  %144 = load i32, ptr %12, align 4, !tbaa !8
  %145 = sext i32 %144 to i64
  %146 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %145) #7
  call void @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6rbeginEv(ptr dead_on_unwind nonnull writable sret(%"class.std::reverse_iterator") align 8 %19, ptr noundef nonnull align 8 dereferenceable(48) %146) #7
  %147 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt16reverse_iteratorISt23_Rb_tree_const_iteratorISt4pairIiiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19)
  %148 = load i64, ptr %147, align 4
  store i64 %148, ptr %18, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  %149 = load i32, ptr %12, align 4, !tbaa !8
  %150 = sext i32 %149 to i64
  %151 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %150) #7
  %152 = invoke noundef i64 @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %151, ptr noundef nonnull align 4 dereferenceable(8) %18)
          to label %153 unwind label %168

153:                                              ; preds = %.lr.ph135
  %154 = load i32, ptr %12, align 4, !tbaa !8
  %155 = sext i32 %154 to i64
  %156 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %155) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #7
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %20, ptr noundef nonnull align 4 dereferenceable(4) %83, ptr noundef nonnull align 4 dereferenceable(4) %18)
  %157 = invoke noundef i64 @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %156, ptr noundef nonnull align 4 dereferenceable(8) %20)
          to label %158 unwind label %170

158:                                              ; preds = %153
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #7
  %159 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #7
  %160 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %159, ptr noundef nonnull align 4 dereferenceable(8) %18)
          to label %161 unwind label %168

161:                                              ; preds = %158
  %162 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #7
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %21, ptr noundef nonnull align 4 dereferenceable(4) %83, ptr noundef nonnull align 4 dereferenceable(4) %18)
  %163 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %162, ptr noundef nonnull align 4 dereferenceable(8) %21)
          to label %164 unwind label %172

164:                                              ; preds = %161
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #7
  %165 = add nuw nsw i32 %.085134, 1
  %166 = load i32, ptr %13, align 4, !tbaa !8
  %167 = sub nsw i32 %100, %166
  %.not95.not = icmp slt i32 %.085134, %167
  br i1 %.not95.not, label %.lr.ph135, label %.loopexit, !llvm.loop !14

168:                                              ; preds = %158, %.lr.ph135
  %169 = landingpad { ptr, i32 }
          cleanup
  br label %174

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

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

174:                                              ; preds = %172, %170, %168
  %.pn96 = phi { ptr, i32 } [ %173, %172 ], [ %169, %168 ], [ %171, %170 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #7
  br label %331

175:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %22) #7
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %22) #7
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %23) #7
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %23) #7
  %176 = load i32, ptr %12, align 4, !tbaa !8
  %177 = sext i32 %176 to i64
  %178 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %177) #7
  %179 = call noundef zeroext i1 @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(48) %178) #7
  br i1 %179, label %.loopexit112, label %.lr.ph116

.lr.ph116:                                        ; preds = %175, %218
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #7
  %180 = load i32, ptr %12, align 4, !tbaa !8
  %181 = sext i32 %180 to i64
  %182 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %181) #7
  %183 = call ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %182) #7
  store ptr %183, ptr %25, align 8
  %184 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #7
  %185 = load i64, ptr %184, align 4
  store i64 %185, ptr %24, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #7
  %186 = trunc i64 %185 to i32
  %187 = load i32, ptr %13, align 4, !tbaa !8
  %.not87 = icmp slt i32 %187, %186
  br i1 %.not87, label %.thread, label %188

188:                                              ; preds = %.lr.ph116
  %189 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %22, ptr noundef nonnull align 4 dereferenceable(8) %24)
          to label %190 unwind label %195

190:                                              ; preds = %188
  %191 = load i32, ptr %12, align 4, !tbaa !8
  %192 = sext i32 %191 to i64
  %193 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %192) #7
  %194 = invoke noundef i64 @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %193, ptr noundef nonnull align 4 dereferenceable(8) %24)
          to label %197 unwind label %195

195:                                              ; preds = %213, %211, %190, %188
  %196 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #7
  br label %322

197:                                              ; preds = %190
  %198 = load i32, ptr %12, align 4, !tbaa !8
  %199 = sext i32 %198 to i64
  %200 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %199) #7
  %201 = call noundef zeroext i1 @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(48) %200) #7
  br i1 %201, label %.thread, label %202

202:                                              ; preds = %197
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #7
  %203 = load i32, ptr %12, align 4, !tbaa !8
  %204 = sext i32 %203 to i64
  %205 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %204) #7
  call void @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6rbeginEv(ptr dead_on_unwind nonnull writable sret(%"class.std::reverse_iterator") align 8 %26, ptr noundef nonnull align 8 dereferenceable(48) %205) #7
  %206 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt16reverse_iteratorISt23_Rb_tree_const_iteratorISt4pairIiiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %26)
  %207 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %24, ptr noundef nonnull align 4 dereferenceable(8) %206)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #7
  %208 = load i32, ptr %13, align 4, !tbaa !8
  %209 = load i32, ptr %24, align 8, !tbaa !15
  %210 = icmp slt i32 %208, %209
  br i1 %210, label %211, label %.thread

211:                                              ; preds = %202
  %212 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %23, ptr noundef nonnull align 4 dereferenceable(8) %24)
          to label %213 unwind label %195

213:                                              ; preds = %211
  %214 = load i32, ptr %12, align 4, !tbaa !8
  %215 = sext i32 %214 to i64
  %216 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %215) #7
  %217 = invoke noundef i64 @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %216, ptr noundef nonnull align 4 dereferenceable(8) %24)
          to label %218 unwind label %195

.thread:                                          ; preds = %.lr.ph116, %197, %202
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #7
  br label %.loopexit112

218:                                              ; preds = %213
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #7
  %219 = load i32, ptr %12, align 4, !tbaa !8
  %220 = sext i32 %219 to i64
  %221 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %220) #7
  %222 = call noundef zeroext i1 @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(48) %221) #7
  br i1 %222, label %.loopexit112, label %.lr.ph116

.loopexit112:                                     ; preds = %218, %175, %.thread
  %223 = load i32, ptr %12, align 4, !tbaa !8
  %224 = sext i32 %223 to i64
  %225 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %224) #7
  %226 = call noundef zeroext i1 @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(48) %225) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %27) #7
  br i1 %226, label %.critedge, label %227

227:                                              ; preds = %.loopexit112
  %228 = load i32, ptr %12, align 4, !tbaa !8
  %229 = sext i32 %228 to i64
  %230 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %229) #7
  %231 = call ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %230) #7
  store ptr %231, ptr %27, align 8
  %232 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #7
  %233 = load i32, ptr %232, align 4, !tbaa !15
  %234 = load i32, ptr %13, align 4, !tbaa !8
  %.not88 = icmp sgt i32 %233, %234
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #7
  br i1 %.not88, label %274, label %235

235:                                              ; preds = %227
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %28) #7
  %236 = call ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %22) #7
  store ptr %236, ptr %28, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %29) #7
  %237 = call ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %22) #7
  store ptr %237, ptr %29, align 8
  %238 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIiiEES4_(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(8) %29) #7
  br i1 %238, label %.lr.ph118, label %._crit_edge119

._crit_edge119:                                   ; preds = %247, %235
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %30) #7
  %239 = call ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %23) #7
  store ptr %239, ptr %30, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %31) #7
  %240 = call ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %23) #7
  store ptr %240, ptr %31, align 8
  %241 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIiiEES4_(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 8 dereferenceable(8) %31) #7
  br i1 %241, label %.lr.ph121, label %._crit_edge122

.lr.ph118:                                        ; preds = %235, %247
  %242 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #7
  %243 = load i32, ptr %12, align 4, !tbaa !8
  %244 = sext i32 %243 to i64
  %245 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %244) #7
  %246 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %245, ptr noundef nonnull align 4 dereferenceable(8) %242)
          to label %247 unwind label %250

247:                                              ; preds = %.lr.ph118
  %248 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIiiEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #7
  %249 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIiiEES4_(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(8) %29) #7
  br i1 %249, label %.lr.ph118, label %._crit_edge119

250:                                              ; preds = %.lr.ph118
  %251 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #7
  br label %322

._crit_edge122:                                   ; preds = %264, %._crit_edge119
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #7
  br label %321

.lr.ph121:                                        ; preds = %._crit_edge119, %264
  %252 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %30) #7
  %253 = load i32, ptr %12, align 4, !tbaa !8
  %254 = sext i32 %253 to i64
  %255 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %254) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %32) #7
  %256 = getelementptr inbounds i8, ptr %252, i64 4
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE18_ConstructiblePairIT_T0_EEclsr5_PCCPE26_ImplicitlyConvertiblePairIS3_S4_EEEbE4typeELb1EEERKiS8_(ptr noundef nonnull align 4 dereferenceable(8) %32, ptr noundef nonnull align 4 dereferenceable(4) %256, ptr noundef nonnull align 4 dereferenceable(4) %252)
  %257 = invoke noundef i64 @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %255, ptr noundef nonnull align 4 dereferenceable(8) %32)
          to label %258 unwind label %267

258:                                              ; preds = %.lr.ph121
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %32) #7
  %259 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv) #7
  %260 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %259, ptr noundef nonnull align 4 dereferenceable(8) %252)
          to label %261 unwind label %269

261:                                              ; preds = %258
  %262 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %33) #7
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE18_ConstructiblePairIT_T0_EEclsr5_PCCPE26_ImplicitlyConvertiblePairIS3_S4_EEEbE4typeELb1EEERKiS8_(ptr noundef nonnull align 4 dereferenceable(8) %33, ptr noundef nonnull align 4 dereferenceable(4) %256, ptr noundef nonnull align 4 dereferenceable(4) %252)
  %263 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %262, ptr noundef nonnull align 4 dereferenceable(8) %33)
          to label %264 unwind label %271

264:                                              ; preds = %261
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %33) #7
  %265 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIiiEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %30) #7
  %266 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIiiEES4_(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 8 dereferenceable(8) %31) #7
  br i1 %266, label %.lr.ph121, label %._crit_edge122

267:                                              ; preds = %.lr.ph121
  %268 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %32) #7
  br label %273

269:                                              ; preds = %258
  %270 = landingpad { ptr, i32 }
          cleanup
  br label %273

271:                                              ; preds = %261
  %272 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %33) #7
  br label %273

273:                                              ; preds = %271, %269, %267
  %.pn = phi { ptr, i32 } [ %272, %271 ], [ %270, %269 ], [ %268, %267 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #7
  br label %322

.critedge:                                        ; preds = %.loopexit112
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #7
  br label %274

274:                                              ; preds = %.critedge, %227
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %34) #7
  %275 = call ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %23) #7
  store ptr %275, ptr %34, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %35) #7
  %276 = call ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %23) #7
  store ptr %276, ptr %35, align 8
  %277 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIiiEES4_(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull align 8 dereferenceable(8) %35) #7
  br i1 %277, label %.lr.ph124, label %._crit_edge125

._crit_edge125:                                   ; preds = %286, %274
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %35) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %34) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %36) #7
  %278 = call ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %22) #7
  store ptr %278, ptr %36, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %37) #7
  %279 = call ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %22) #7
  store ptr %279, ptr %37, align 8
  %280 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIiiEES4_(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull align 8 dereferenceable(8) %37) #7
  br i1 %280, label %.lr.ph127, label %._crit_edge128

.lr.ph124:                                        ; preds = %274, %286
  %281 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %34) #7
  %282 = load i32, ptr %12, align 4, !tbaa !8
  %283 = sext i32 %282 to i64
  %284 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %283) #7
  %285 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %284, ptr noundef nonnull align 4 dereferenceable(8) %281)
          to label %286 unwind label %289

286:                                              ; preds = %.lr.ph124
  %287 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIiiEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %34) #7
  %288 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIiiEES4_(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull align 8 dereferenceable(8) %35) #7
  br i1 %288, label %.lr.ph124, label %._crit_edge125

289:                                              ; preds = %.lr.ph124
  %290 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %35) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %34) #7
  br label %322

._crit_edge128:                                   ; preds = %311, %._crit_edge125
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %37) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %36) #7
  %291 = load i32, ptr %12, align 4, !tbaa !8
  %292 = sext i32 %291 to i64
  %293 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %292) #7
  %294 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #7
  call void @_ZSt4swapISt4pairIiiESt4lessIS1_ESaIS1_EEvRSt3setIT_T0_T1_ESA_(ptr noundef nonnull align 8 dereferenceable(48) %293, ptr noundef nonnull align 8 dereferenceable(48) %294) #7
  %295 = load i32, ptr %12, align 4, !tbaa !8
  %296 = sext i32 %295 to i64
  %297 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %296) #7
  %298 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv) #7
  call void @_ZSt4swapISt4pairIiiESt4lessIS1_ESaIS1_EEvRSt3setIT_T0_T1_ESA_(ptr noundef nonnull align 8 dereferenceable(48) %297, ptr noundef nonnull align 8 dereferenceable(48) %298) #7
  br label %321

.lr.ph127:                                        ; preds = %._crit_edge125, %311
  %299 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %36) #7
  %300 = load i32, ptr %12, align 4, !tbaa !8
  %301 = sext i32 %300 to i64
  %302 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %301) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %38) #7
  %303 = getelementptr inbounds i8, ptr %299, i64 4
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE18_ConstructiblePairIT_T0_EEclsr5_PCCPE26_ImplicitlyConvertiblePairIS3_S4_EEEbE4typeELb1EEERKiS8_(ptr noundef nonnull align 4 dereferenceable(8) %38, ptr noundef nonnull align 4 dereferenceable(4) %303, ptr noundef nonnull align 4 dereferenceable(4) %299)
  %304 = invoke noundef i64 @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %302, ptr noundef nonnull align 4 dereferenceable(8) %38)
          to label %305 unwind label %314

305:                                              ; preds = %.lr.ph127
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %38) #7
  %306 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv) #7
  %307 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %306, ptr noundef nonnull align 4 dereferenceable(8) %299)
          to label %308 unwind label %316

308:                                              ; preds = %305
  %309 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %39) #7
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE18_ConstructiblePairIT_T0_EEclsr5_PCCPE26_ImplicitlyConvertiblePairIS3_S4_EEEbE4typeELb1EEERKiS8_(ptr noundef nonnull align 4 dereferenceable(8) %39, ptr noundef nonnull align 4 dereferenceable(4) %303, ptr noundef nonnull align 4 dereferenceable(4) %299)
  %310 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %309, ptr noundef nonnull align 4 dereferenceable(8) %39)
          to label %311 unwind label %318

311:                                              ; preds = %308
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %39) #7
  %312 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIiiEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %36) #7
  %313 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIiiEES4_(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull align 8 dereferenceable(8) %37) #7
  br i1 %313, label %.lr.ph127, label %._crit_edge128

314:                                              ; preds = %.lr.ph127
  %315 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %38) #7
  br label %320

316:                                              ; preds = %305
  %317 = landingpad { ptr, i32 }
          cleanup
  br label %320

318:                                              ; preds = %308
  %319 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %39) #7
  br label %320

320:                                              ; preds = %318, %316, %314
  %.pn90 = phi { ptr, i32 } [ %319, %318 ], [ %317, %316 ], [ %315, %314 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %37) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %36) #7
  br label %322

321:                                              ; preds = %._crit_edge128, %._crit_edge122
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %23) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %23) #7
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %22) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %22) #7
  br label %.loopexit

322:                                              ; preds = %320, %289, %273, %250, %195
  %.pn92 = phi { ptr, i32 } [ %290, %289 ], [ %.pn90, %320 ], [ %251, %250 ], [ %.pn, %273 ], [ %196, %195 ]
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %23) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %23) #7
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %22) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %22) #7
  br label %331

.loopexit:                                        ; preds = %164, %.preheader, %._crit_edge132, %321
  %323 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #7
  %324 = call noundef i64 @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %323) #7
  %325 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %324)
          to label %326 unwind label %111

326:                                              ; preds = %.loopexit
  %327 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %325, ptr noundef nonnull @.str)
          to label %328 unwind label %111

328:                                              ; preds = %326
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %329 = load i32, ptr %10, align 4, !tbaa !8
  %330 = sext i32 %329 to i64
  %.not86.not = icmp slt i64 %indvars.iv, %330
  br i1 %.not86.not, label %86, label %._crit_edge140, !llvm.loop !17

331:                                              ; preds = %143, %174, %322, %111
  %.pn99.pn.pn = phi { ptr, i32 } [ %112, %111 ], [ %.pn92, %322 ], [ %.pn99, %143 ], [ %.pn96, %174 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  br label %332

332:                                              ; preds = %331, %84
  %.pn99.pn.pn.pn = phi { ptr, i32 } [ %.pn99.pn.pn, %331 ], [ %85, %84 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  br label %333

333:                                              ; preds = %332, %72
  %.pn104.pn = phi { ptr, i32 } [ %.pn104, %72 ], [ %.pn99.pn.pn.pn, %332 ]
  call void @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  br label %334

334:                                              ; preds = %333, %53
  %.pn104.pn.pn = phi { ptr, i32 } [ %.pn104.pn, %333 ], [ %54, %53 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  call void @_ZNSt6vectorISt3setISt4pairIiiESt4lessIS2_ESaIS2_EESaIS6_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  br label %335

335:                                              ; preds = %334, %51
  %.pn104.pn.pn.pn = phi { ptr, i32 } [ %.pn104.pn.pn, %334 ], [ %52, %51 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn104.pn.pn.pn
}

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapISt4pairIiiESt4lessIS1_ESaIS1_EEvRSt3setIT_T0_T1_ESA_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6rbeginEv(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 align 2

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #6

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

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

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

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

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

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


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