; LLVM IR from kazunetakahashi/atcoder :: 201510_201609/1224_xmas_2015 (B2)

; 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::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.0", %"struct.std::_Head_base.1" }
%"struct.std::_Tuple_impl.0" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { i32 }
%"struct.std::_Head_base.1" = type { i32 }
%"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" }
%"struct.std::pair" = type <{ %"struct.std::_Rb_tree_const_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_const_iterator" = type { ptr }

@choten = external dso_local global [200010 x i32], align 16
@p = external dso_local global [200010 x i32], align 16
@q = external dso_local global [200010 x i32], align 16
@X = external dso_local global [200010 x %"class.std::set"], align 16
@visited = external dso_local global [200010 x i8], align 16
@V = external dso_local global [200010 x %"class.std::tuple"], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"struct.std::pair", align 8
  %7 = alloca %"struct.std::pair", align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"struct.std::pair", align 8
  %12 = alloca i8, align 1
  %13 = alloca i32, align 4
  %14 = alloca %"class.std::tuple", align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %18 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %19 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %20 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %24 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %25 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %26 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  %27 = 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)
  %28 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %29 = load i32, ptr %2, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds i32, ptr @choten, i64 %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  %32 = load i32, ptr %2, align 4, !tbaa !5
  %33 = sub nsw i32 %32, 1
  store i32 %33, ptr %4, align 4, !tbaa !5
  call void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef @choten, ptr noundef %31, ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %34

34:                                               ; preds = %102, %0
  %35 = load i32, ptr %5, align 4, !tbaa !5
  %36 = load i32, ptr %3, align 4, !tbaa !5
  %37 = icmp slt i32 %35, %36
  br i1 %37, label %39, label %38

38:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %105

39:                                               ; preds = %34
  %40 = load i32, ptr %5, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [200010 x i32], ptr @p, i64 0, i64 %41
  %43 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %42)
  %44 = load i32, ptr %5, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [200010 x i32], ptr @q, i64 0, i64 %45
  %47 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %43, ptr noundef nonnull align 4 dereferenceable(4) %46)
  %48 = load i32, ptr %5, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [200010 x i32], ptr @p, i64 0, i64 %49
  %51 = load i32, ptr %50, align 4, !tbaa !5
  %52 = add nsw i32 %51, -1
  store i32 %52, ptr %50, align 4, !tbaa !5
  %53 = load i32, ptr %5, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [200010 x i32], ptr @q, i64 0, i64 %54
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %57 = add nsw i32 %56, -1
  store i32 %57, ptr %55, align 4, !tbaa !5
  %58 = load i32, ptr %5, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [200010 x i32], ptr @p, i64 0, i64 %59
  %61 = load i32, ptr %60, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [200010 x i32], ptr @choten, i64 0, i64 %62
  %64 = load i32, ptr %63, align 4, !tbaa !5
  %65 = add nsw i32 %64, -1
  store i32 %65, ptr %63, align 4, !tbaa !5
  %66 = load i32, ptr %5, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [200010 x i32], ptr @q, i64 0, i64 %67
  %69 = load i32, ptr %68, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [200010 x i32], ptr @choten, i64 0, i64 %70
  %72 = load i32, ptr %71, align 4, !tbaa !5
  %73 = add nsw i32 %72, -1
  store i32 %73, ptr %71, align 4, !tbaa !5
  %74 = load i32, ptr %5, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [200010 x i32], ptr @p, i64 0, i64 %75
  %77 = load i32, ptr %76, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [200010 x %"class.std::set"], ptr @X, i64 0, i64 %78
  %80 = load i32, ptr %5, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [200010 x i32], ptr @q, i64 0, i64 %81
  %83 = call { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %79, ptr noundef nonnull align 4 dereferenceable(4) %82)
  %84 = getelementptr inbounds { ptr, i8 }, ptr %6, i32 0, i32 0
  %85 = extractvalue { ptr, i8 } %83, 0
  store ptr %85, ptr %84, align 8
  %86 = getelementptr inbounds { ptr, i8 }, ptr %6, i32 0, i32 1
  %87 = extractvalue { ptr, i8 } %83, 1
  store i8 %87, ptr %86, align 8
  %88 = load i32, ptr %5, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [200010 x i32], ptr @q, i64 0, i64 %89
  %91 = load i32, ptr %90, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [200010 x %"class.std::set"], ptr @X, i64 0, i64 %92
  %94 = load i32, ptr %5, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [200010 x i32], ptr @p, i64 0, i64 %95
  %97 = call { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %93, ptr noundef nonnull align 4 dereferenceable(4) %96)
  %98 = getelementptr inbounds { ptr, i8 }, ptr %7, i32 0, i32 0
  %99 = extractvalue { ptr, i8 } %97, 0
  store ptr %99, ptr %98, align 8
  %100 = getelementptr inbounds { ptr, i8 }, ptr %7, i32 0, i32 1
  %101 = extractvalue { ptr, i8 } %97, 1
  store i8 %101, ptr %100, align 8
  br label %102

102:                                              ; preds = %39
  %103 = load i32, ptr %5, align 4, !tbaa !5
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %5, align 4, !tbaa !5
  br label %34, !llvm.loop !9

105:                                              ; preds = %38
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %106

106:                                              ; preds = %121, %105
  %107 = load i32, ptr %8, align 4, !tbaa !5
  %108 = load i32, ptr %2, align 4, !tbaa !5
  %109 = icmp slt i32 %107, %108
  br i1 %109, label %111, label %110

110:                                              ; preds = %106
  store i32 5, ptr %9, align 4
  br label %124

111:                                              ; preds = %106
  %112 = load i32, ptr %8, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [200010 x i32], ptr @choten, i64 0, i64 %113
  %115 = load i32, ptr %114, align 4, !tbaa !5
  %116 = icmp eq i32 %115, 0
  br i1 %116, label %117, label %120

117:                                              ; preds = %111
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %119 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %118, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %9, align 4
  br label %124

120:                                              ; preds = %111
  br label %121

121:                                              ; preds = %120
  %122 = load i32, ptr %8, align 4, !tbaa !5
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %8, align 4, !tbaa !5
  br label %106, !llvm.loop !11

124:                                              ; preds = %117, %110
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  %125 = load i32, ptr %9, align 4
  switch i32 %125, label %436 [
    i32 5, label %126
  ]

126:                                              ; preds = %124
  %127 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
  %128 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %127, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %129

129:                                              ; preds = %143, %126
  %130 = load i32, ptr %10, align 4, !tbaa !5
  %131 = load i32, ptr %2, align 4, !tbaa !5
  %132 = icmp slt i32 %130, %131
  br i1 %132, label %134, label %133

133:                                              ; preds = %129
  store i32 8, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %146

134:                                              ; preds = %129
  %135 = load i32, ptr %10, align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [200010 x %"class.std::set"], ptr @X, i64 0, i64 %136
  %138 = call { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %137, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %139 = getelementptr inbounds { ptr, i8 }, ptr %11, i32 0, i32 0
  %140 = extractvalue { ptr, i8 } %138, 0
  store ptr %140, ptr %139, align 8
  %141 = getelementptr inbounds { ptr, i8 }, ptr %11, i32 0, i32 1
  %142 = extractvalue { ptr, i8 } %138, 1
  store i8 %142, ptr %141, align 8
  br label %143

143:                                              ; preds = %134
  %144 = load i32, ptr %10, align 4, !tbaa !5
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr %10, align 4, !tbaa !5
  br label %129, !llvm.loop !12

146:                                              ; preds = %133
  %147 = load i32, ptr %2, align 4, !tbaa !5
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds i8, ptr @visited, i64 %148
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #6
  store i8 0, ptr %12, align 1, !tbaa !13
  call void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef @visited, ptr noundef %149, ptr noundef nonnull align 1 dereferenceable(1) %12)
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %150

150:                                              ; preds = %163, %146
  %151 = load i32, ptr %13, align 4, !tbaa !5
  %152 = load i32, ptr %2, align 4, !tbaa !5
  %153 = icmp slt i32 %151, %152
  br i1 %153, label %155, label %154

154:                                              ; preds = %150
  store i32 11, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %166

155:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %156 = load i32, ptr %13, align 4, !tbaa !5
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [200010 x i32], ptr @choten, i64 0, i64 %157
  call void @_ZSt10make_tupleIJRiS0_EESt5tupleIJDpNSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeEEEDpOS4_(ptr dead_on_unwind writable sret(%"class.std::tuple") align 4 %14, ptr noundef nonnull align 4 dereferenceable(4) %158, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %159 = load i32, ptr %13, align 4, !tbaa !5
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [200010 x %"class.std::tuple"], ptr @V, i64 0, i64 %160
  %162 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5tupleIJiiEEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %161, ptr noundef nonnull align 4 dereferenceable(8) %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %163

163:                                              ; preds = %155
  %164 = load i32, ptr %13, align 4, !tbaa !5
  %165 = add nsw i32 %164, 1
  store i32 %165, ptr %13, align 4, !tbaa !5
  br label %150, !llvm.loop !15

166:                                              ; preds = %154
  %167 = load i32, ptr %2, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds %"class.std::tuple", ptr @V, i64 %168
  call void @_ZSt4sortIPSt5tupleIJiiEEEvT_S3_(ptr noundef @V, ptr noundef %169)
  %170 = load i32, ptr %2, align 4, !tbaa !5
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds %"class.std::tuple", ptr @V, i64 %171
  call void @_ZSt7reverseIPSt5tupleIJiiEEEvT_S3_(ptr noundef @V, ptr noundef %172)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %173 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) @V) #6
  %174 = load i32, ptr %173, align 4, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [200010 x %"class.std::set"], ptr @X, i64 0, i64 %175
  %177 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %176) #6
  %178 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %17, i32 0, i32 0
  store ptr %177, ptr %178, align 8
  %179 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) @V) #6
  %180 = load i32, ptr %179, align 4, !tbaa !5
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds [200010 x i8], ptr @visited, i64 0, i64 %181
  store i8 1, ptr %182, align 1, !tbaa !13
  br label %183

183:                                              ; preds = %246, %166
  %184 = load i32, ptr %16, align 4, !tbaa !5
  %185 = load i32, ptr %2, align 4, !tbaa !5
  %186 = icmp slt i32 %184, %185
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  br i1 %186, label %187, label %195

187:                                              ; preds = %183
  %188 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) @V) #6
  %189 = load i32, ptr %188, align 4, !tbaa !5
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds [200010 x %"class.std::set"], ptr @X, i64 0, i64 %190
  %192 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %191) #6
  %193 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %18, i32 0, i32 0
  store ptr %192, ptr %193, align 8
  %194 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  br label %195

195:                                              ; preds = %187, %183
  %196 = phi i1 [ false, %183 ], [ %194, %187 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br i1 %196, label %197, label %247

197:                                              ; preds = %195
  %198 = load i32, ptr %16, align 4, !tbaa !5
  %199 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  %200 = load i32, ptr %199, align 4, !tbaa !5
  %201 = icmp eq i32 %198, %200
  br i1 %201, label %202, label %207

202:                                              ; preds = %197
  %203 = load i32, ptr %16, align 4, !tbaa !5
  %204 = add nsw i32 %203, 1
  store i32 %204, ptr %16, align 4, !tbaa !5
  %205 = call ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEi(ptr noundef nonnull align 8 dereferenceable(8) %17, i32 noundef 0) #6
  %206 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %19, i32 0, i32 0
  store ptr %205, ptr %206, align 8
  br label %246

207:                                              ; preds = %197
  %208 = load i32, ptr %16, align 4, !tbaa !5
  %209 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  %210 = load i32, ptr %209, align 4, !tbaa !5
  %211 = icmp slt i32 %208, %210
  br i1 %211, label %212, label %242

212:                                              ; preds = %207
  %213 = load i32, ptr %16, align 4, !tbaa !5
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds [200010 x i8], ptr @visited, i64 0, i64 %214
  %216 = load i8, ptr %215, align 1, !tbaa !13, !range !16, !noundef !17
  %217 = trunc i8 %216 to i1
  br i1 %217, label %239, label %218

218:                                              ; preds = %212
  %219 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) @V) #6
  %220 = load i32, ptr %219, align 4, !tbaa !5
  %221 = add nsw i32 %220, 1
  %222 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %221)
  %223 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %222, ptr noundef @.str.3)
  %224 = load i32, ptr %16, align 4, !tbaa !5
  %225 = add nsw i32 %224, 1
  %226 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %223, i32 noundef %225)
  %227 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %226, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %228 = load i32, ptr %16, align 4, !tbaa !5
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds [200010 x i8], ptr @visited, i64 0, i64 %229
  store i8 1, ptr %230, align 1, !tbaa !13
  %231 = load i32, ptr %15, align 4, !tbaa !5
  %232 = add nsw i32 %231, 1
  store i32 %232, ptr %15, align 4, !tbaa !5
  %233 = load i32, ptr %15, align 4, !tbaa !5
  %234 = load i32, ptr %2, align 4, !tbaa !5
  %235 = sub nsw i32 %234, 1
  %236 = icmp eq i32 %233, %235
  br i1 %236, label %237, label %238

237:                                              ; preds = %218
  store i32 0, ptr %1, align 4
  store i32 1, ptr %9, align 4
  br label %435

238:                                              ; preds = %218
  br label %239

239:                                              ; preds = %238, %212
  %240 = load i32, ptr %16, align 4, !tbaa !5
  %241 = add nsw i32 %240, 1
  store i32 %241, ptr %16, align 4, !tbaa !5
  br label %245

242:                                              ; preds = %207
  %243 = call ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEi(ptr noundef nonnull align 8 dereferenceable(8) %17, i32 noundef 0) #6
  %244 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %20, i32 0, i32 0
  store ptr %243, ptr %244, align 8
  br label %245

245:                                              ; preds = %242, %239
  br label %246

246:                                              ; preds = %245, %202
  br label %183, !llvm.loop !18

247:                                              ; preds = %195
  br label %248

248:                                              ; preds = %279, %247
  %249 = load i32, ptr %16, align 4, !tbaa !5
  %250 = load i32, ptr %2, align 4, !tbaa !5
  %251 = icmp slt i32 %249, %250
  br i1 %251, label %252, label %282

252:                                              ; preds = %248
  %253 = load i32, ptr %16, align 4, !tbaa !5
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds [200010 x i8], ptr @visited, i64 0, i64 %254
  %256 = load i8, ptr %255, align 1, !tbaa !13, !range !16, !noundef !17
  %257 = trunc i8 %256 to i1
  br i1 %257, label %279, label %258

258:                                              ; preds = %252
  %259 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) @V) #6
  %260 = load i32, ptr %259, align 4, !tbaa !5
  %261 = add nsw i32 %260, 1
  %262 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %261)
  %263 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %262, ptr noundef @.str.3)
  %264 = load i32, ptr %16, align 4, !tbaa !5
  %265 = add nsw i32 %264, 1
  %266 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %263, i32 noundef %265)
  %267 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %266, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %268 = load i32, ptr %16, align 4, !tbaa !5
  %269 = sext i32 %268 to i64
  %270 = getelementptr inbounds [200010 x i8], ptr @visited, i64 0, i64 %269
  store i8 1, ptr %270, align 1, !tbaa !13
  %271 = load i32, ptr %15, align 4, !tbaa !5
  %272 = add nsw i32 %271, 1
  store i32 %272, ptr %15, align 4, !tbaa !5
  %273 = load i32, ptr %15, align 4, !tbaa !5
  %274 = load i32, ptr %2, align 4, !tbaa !5
  %275 = sub nsw i32 %274, 1
  %276 = icmp eq i32 %273, %275
  br i1 %276, label %277, label %278

277:                                              ; preds = %258
  store i32 0, ptr %1, align 4
  store i32 1, ptr %9, align 4
  br label %435

278:                                              ; preds = %258
  br label %279

279:                                              ; preds = %278, %252
  %280 = load i32, ptr %16, align 4, !tbaa !5
  %281 = add nsw i32 %280, 1
  store i32 %281, ptr %16, align 4, !tbaa !5
  br label %248, !llvm.loop !19

282:                                              ; preds = %248
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 1, ptr %21, align 4, !tbaa !5
  br label %283

283:                                              ; preds = %429, %282
  %284 = load i32, ptr %21, align 4, !tbaa !5
  %285 = load i32, ptr %2, align 4, !tbaa !5
  %286 = icmp slt i32 %284, %285
  br i1 %286, label %288, label %287

287:                                              ; preds = %283
  store i32 18, ptr %9, align 4
  br label %432

288:                                              ; preds = %283
  %289 = load i32, ptr %21, align 4, !tbaa !5
  %290 = sext i32 %289 to i64
  %291 = getelementptr inbounds [200010 x %"class.std::tuple"], ptr @V, i64 0, i64 %290
  %292 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %291) #6
  %293 = load i32, ptr %292, align 4, !tbaa !5
  %294 = sext i32 %293 to i64
  %295 = getelementptr inbounds [200010 x i8], ptr @visited, i64 0, i64 %294
  %296 = load i8, ptr %295, align 1, !tbaa !13, !range !16, !noundef !17
  %297 = trunc i8 %296 to i1
  br i1 %297, label %298, label %299

298:                                              ; preds = %288
  br label %429

299:                                              ; preds = %288
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  store i32 0, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %300 = load i32, ptr %21, align 4, !tbaa !5
  %301 = sext i32 %300 to i64
  %302 = getelementptr inbounds [200010 x %"class.std::tuple"], ptr @V, i64 0, i64 %301
  %303 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %302) #6
  %304 = load i32, ptr %303, align 4, !tbaa !5
  %305 = sext i32 %304 to i64
  %306 = getelementptr inbounds [200010 x %"class.std::set"], ptr @X, i64 0, i64 %305
  %307 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %306) #6
  %308 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %23, i32 0, i32 0
  store ptr %307, ptr %308, align 8
  br label %309

309:                                              ; preds = %382, %299
  %310 = load i32, ptr %22, align 4, !tbaa !5
  %311 = load i32, ptr %2, align 4, !tbaa !5
  %312 = icmp slt i32 %310, %311
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  br i1 %312, label %313, label %324

313:                                              ; preds = %309
  %314 = load i32, ptr %21, align 4, !tbaa !5
  %315 = sext i32 %314 to i64
  %316 = getelementptr inbounds [200010 x %"class.std::tuple"], ptr @V, i64 0, i64 %315
  %317 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %316) #6
  %318 = load i32, ptr %317, align 4, !tbaa !5
  %319 = sext i32 %318 to i64
  %320 = getelementptr inbounds [200010 x %"class.std::set"], ptr @X, i64 0, i64 %319
  %321 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %320) #6
  %322 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %24, i32 0, i32 0
  store ptr %321, ptr %322, align 8
  %323 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #6
  br label %324

324:                                              ; preds = %313, %309
  %325 = phi i1 [ false, %309 ], [ %323, %313 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br i1 %325, label %326, label %383

326:                                              ; preds = %324
  %327 = load i32, ptr %22, align 4, !tbaa !5
  %328 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #6
  %329 = load i32, ptr %328, align 4, !tbaa !5
  %330 = icmp eq i32 %327, %329
  br i1 %330, label %331, label %336

331:                                              ; preds = %326
  %332 = load i32, ptr %22, align 4, !tbaa !5
  %333 = add nsw i32 %332, 1
  store i32 %333, ptr %22, align 4, !tbaa !5
  %334 = call ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEi(ptr noundef nonnull align 8 dereferenceable(8) %23, i32 noundef 0) #6
  %335 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %25, i32 0, i32 0
  store ptr %334, ptr %335, align 8
  br label %382

336:                                              ; preds = %326
  %337 = load i32, ptr %22, align 4, !tbaa !5
  %338 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #6
  %339 = load i32, ptr %338, align 4, !tbaa !5
  %340 = icmp slt i32 %337, %339
  br i1 %340, label %341, label %378

341:                                              ; preds = %336
  %342 = load i32, ptr %22, align 4, !tbaa !5
  %343 = sext i32 %342 to i64
  %344 = getelementptr inbounds [200010 x i8], ptr @visited, i64 0, i64 %343
  %345 = load i8, ptr %344, align 1, !tbaa !13, !range !16, !noundef !17
  %346 = trunc i8 %345 to i1
  br i1 %346, label %347, label %375

347:                                              ; preds = %341
  %348 = load i32, ptr %21, align 4, !tbaa !5
  %349 = sext i32 %348 to i64
  %350 = getelementptr inbounds [200010 x %"class.std::tuple"], ptr @V, i64 0, i64 %349
  %351 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %350) #6
  %352 = load i32, ptr %351, align 4, !tbaa !5
  %353 = add nsw i32 %352, 1
  %354 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %353)
  %355 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %354, ptr noundef @.str.3)
  %356 = load i32, ptr %22, align 4, !tbaa !5
  %357 = add nsw i32 %356, 1
  %358 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %355, i32 noundef %357)
  %359 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %358, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %360 = load i32, ptr %21, align 4, !tbaa !5
  %361 = sext i32 %360 to i64
  %362 = getelementptr inbounds [200010 x %"class.std::tuple"], ptr @V, i64 0, i64 %361
  %363 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %362) #6
  %364 = load i32, ptr %363, align 4, !tbaa !5
  %365 = sext i32 %364 to i64
  %366 = getelementptr inbounds [200010 x i8], ptr @visited, i64 0, i64 %365
  store i8 1, ptr %366, align 1, !tbaa !13
  %367 = load i32, ptr %15, align 4, !tbaa !5
  %368 = add nsw i32 %367, 1
  store i32 %368, ptr %15, align 4, !tbaa !5
  %369 = load i32, ptr %15, align 4, !tbaa !5
  %370 = load i32, ptr %2, align 4, !tbaa !5
  %371 = sub nsw i32 %370, 1
  %372 = icmp eq i32 %369, %371
  br i1 %372, label %373, label %374

373:                                              ; preds = %347
  store i32 0, ptr %1, align 4
  store i32 1, ptr %9, align 4
  br label %426

374:                                              ; preds = %347
  br label %383

375:                                              ; preds = %341
  %376 = load i32, ptr %22, align 4, !tbaa !5
  %377 = add nsw i32 %376, 1
  store i32 %377, ptr %22, align 4, !tbaa !5
  br label %381

378:                                              ; preds = %336
  %379 = call ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEi(ptr noundef nonnull align 8 dereferenceable(8) %23, i32 noundef 0) #6
  %380 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %26, i32 0, i32 0
  store ptr %379, ptr %380, align 8
  br label %381

381:                                              ; preds = %378, %375
  br label %382

382:                                              ; preds = %381, %331
  br label %309, !llvm.loop !20

383:                                              ; preds = %374, %324
  br label %384

384:                                              ; preds = %422, %383
  %385 = load i32, ptr %22, align 4, !tbaa !5
  %386 = load i32, ptr %2, align 4, !tbaa !5
  %387 = icmp slt i32 %385, %386
  br i1 %387, label %388, label %425

388:                                              ; preds = %384
  %389 = load i32, ptr %22, align 4, !tbaa !5
  %390 = sext i32 %389 to i64
  %391 = getelementptr inbounds [200010 x i8], ptr @visited, i64 0, i64 %390
  %392 = load i8, ptr %391, align 1, !tbaa !13, !range !16, !noundef !17
  %393 = trunc i8 %392 to i1
  br i1 %393, label %422, label %394

394:                                              ; preds = %388
  %395 = load i32, ptr %21, align 4, !tbaa !5
  %396 = sext i32 %395 to i64
  %397 = getelementptr inbounds [200010 x %"class.std::tuple"], ptr @V, i64 0, i64 %396
  %398 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %397) #6
  %399 = load i32, ptr %398, align 4, !tbaa !5
  %400 = add nsw i32 %399, 1
  %401 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %400)
  %402 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %401, ptr noundef @.str.3)
  %403 = load i32, ptr %22, align 4, !tbaa !5
  %404 = add nsw i32 %403, 1
  %405 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %402, i32 noundef %404)
  %406 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %405, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %407 = load i32, ptr %21, align 4, !tbaa !5
  %408 = sext i32 %407 to i64
  %409 = getelementptr inbounds [200010 x %"class.std::tuple"], ptr @V, i64 0, i64 %408
  %410 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %409) #6
  %411 = load i32, ptr %410, align 4, !tbaa !5
  %412 = sext i32 %411 to i64
  %413 = getelementptr inbounds [200010 x i8], ptr @visited, i64 0, i64 %412
  store i8 1, ptr %413, align 1, !tbaa !13
  %414 = load i32, ptr %15, align 4, !tbaa !5
  %415 = add nsw i32 %414, 1
  store i32 %415, ptr %15, align 4, !tbaa !5
  %416 = load i32, ptr %15, align 4, !tbaa !5
  %417 = load i32, ptr %2, align 4, !tbaa !5
  %418 = sub nsw i32 %417, 1
  %419 = icmp eq i32 %416, %418
  br i1 %419, label %420, label %421

420:                                              ; preds = %394
  store i32 0, ptr %1, align 4
  store i32 1, ptr %9, align 4
  br label %426

421:                                              ; preds = %394
  br label %425

422:                                              ; preds = %388
  %423 = load i32, ptr %22, align 4, !tbaa !5
  %424 = add nsw i32 %423, 1
  store i32 %424, ptr %22, align 4, !tbaa !5
  br label %384, !llvm.loop !21

425:                                              ; preds = %421, %384
  store i32 0, ptr %9, align 4
  br label %426

426:                                              ; preds = %425, %420, %373
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  %427 = load i32, ptr %9, align 4
  switch i32 %427, label %432 [
    i32 0, label %428
  ]

428:                                              ; preds = %426
  br label %429

429:                                              ; preds = %428, %298
  %430 = load i32, ptr %21, align 4, !tbaa !5
  %431 = add nsw i32 %430, 1
  store i32 %431, ptr %21, align 4, !tbaa !5
  br label %283, !llvm.loop !22

432:                                              ; preds = %426, %287
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  %433 = load i32, ptr %9, align 4
  switch i32 %433, label %435 [
    i32 18, label %434
  ]

434:                                              ; preds = %432
  store i32 0, ptr %9, align 4
  br label %435

435:                                              ; preds = %434, %432, %277, %237
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %436

436:                                              ; preds = %435, %124
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  %437 = load i32, ptr %9, align 4
  switch i32 %437, label %440 [
    i32 0, label %438
    i32 1, label %438
  ]

438:                                              ; preds = %436, %436
  %439 = load i32, ptr %1, align 4
  ret i32 %439

440:                                              ; preds = %436
  unreachable
}

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZSt10make_tupleIJRiS0_EESt5tupleIJDpNSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeEEEDpOS4_(ptr dead_on_unwind noalias writable sret(%"class.std::tuple") align 4, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #5

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

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

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

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

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

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

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

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

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

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

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

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


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

%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.0", %"struct.std::_Head_base.1" }
%"struct.std::_Tuple_impl.0" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { i32 }
%"struct.std::_Head_base.1" = type { i32 }
%"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" }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }

@choten = external dso_local global [200010 x i32], align 16
@p = external dso_local global [200010 x i32], align 16
@q = external dso_local global [200010 x i32], align 16
@X = external dso_local global [200010 x %"class.std::set"], align 16
@visited = external dso_local global [200010 x i8], align 16
@V = external dso_local global [200010 x %"class.std::tuple"], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = 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 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i8, align 1
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::tuple", align 4
  %8 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %9 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %10 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %11 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  %12 = 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)
  %13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %14 = load i32, ptr %1, align 4, !tbaa !5
  %15 = sext i32 %14 to i64
  %16 = getelementptr inbounds i32, ptr @choten, i64 %15
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  %17 = add nsw i32 %14, -1
  store i32 %17, ptr %3, align 4, !tbaa !5
  call void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef nonnull @choten, ptr noundef nonnull %16, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  %18 = load i32, ptr %2, align 4, !tbaa !5
  %19 = icmp sgt i32 %18, 0
  br i1 %19, label %.lr.ph, label %.preheader110

.preheader110:                                    ; preds = %.lr.ph, %0
  %20 = load i32, ptr %1, align 4, !tbaa !5
  %.not124 = icmp sgt i32 %20, 0
  br i1 %.not124, label %.lr.ph126.preheader, label %.critedge99

.lr.ph126.preheader:                              ; preds = %.preheader110
  %wide.trip.count = zext nneg i32 %20 to i64
  br label %.lr.ph126

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %21 = getelementptr inbounds [200010 x i32], ptr @p, i64 0, i64 %indvars.iv
  %22 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %21)
  %23 = getelementptr inbounds [200010 x i32], ptr @q, i64 0, i64 %indvars.iv
  %24 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 4 dereferenceable(4) %23)
  %25 = load i32, ptr %21, align 4, !tbaa !5
  %26 = add nsw i32 %25, -1
  store i32 %26, ptr %21, align 4, !tbaa !5
  %27 = load i32, ptr %23, align 4, !tbaa !5
  %28 = add nsw i32 %27, -1
  store i32 %28, ptr %23, align 4, !tbaa !5
  %29 = sext i32 %26 to i64
  %30 = getelementptr inbounds [200010 x i32], ptr @choten, i64 0, i64 %29
  %31 = load i32, ptr %30, align 4, !tbaa !5
  %32 = add nsw i32 %31, -1
  store i32 %32, ptr %30, align 4, !tbaa !5
  %33 = sext i32 %28 to i64
  %34 = getelementptr inbounds [200010 x i32], ptr @choten, i64 0, i64 %33
  %35 = load i32, ptr %34, align 4, !tbaa !5
  %36 = add nsw i32 %35, -1
  store i32 %36, ptr %34, align 4, !tbaa !5
  %37 = getelementptr inbounds [200010 x %"class.std::set"], ptr @X, i64 0, i64 %29
  %38 = call { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %37, ptr noundef nonnull align 4 dereferenceable(4) %23)
  %39 = load i32, ptr %23, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [200010 x %"class.std::set"], ptr @X, i64 0, i64 %40
  %42 = call { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %41, ptr noundef nonnull align 4 dereferenceable(4) %21)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %43 = load i32, ptr %2, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = icmp slt i64 %indvars.iv.next, %44
  br i1 %45, label %.lr.ph, label %.preheader110, !llvm.loop !9

46:                                               ; preds = %.lr.ph126
  %indvars.iv.next169 = add nuw nsw i64 %indvars.iv168, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next169, %wide.trip.count
  br i1 %exitcond.not, label %.critedge99, label %.lr.ph126, !llvm.loop !11

.lr.ph126:                                        ; preds = %.lr.ph126.preheader, %46
  %indvars.iv168 = phi i64 [ 0, %.lr.ph126.preheader ], [ %indvars.iv.next169, %46 ]
  %47 = getelementptr inbounds [200010 x i32], ptr @choten, i64 0, i64 %indvars.iv168
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %50, label %46

50:                                               ; preds = %.lr.ph126
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %51, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %252

.critedge99:                                      ; preds = %46, %.preheader110
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.2)
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  store i32 0, ptr %4, align 4, !tbaa !5
  %55 = load i32, ptr %1, align 4, !tbaa !5
  %56 = icmp sgt i32 %55, 0
  br i1 %56, label %.lr.ph128, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph128, %.critedge99
  %.lcssa122 = phi i32 [ %55, %.critedge99 ], [ %66, %.lr.ph128 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  %57 = sext i32 %.lcssa122 to i64
  %58 = getelementptr inbounds i8, ptr @visited, i64 %57
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #6
  store i8 0, ptr %5, align 1, !tbaa !12
  call void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef nonnull @visited, ptr noundef nonnull %58, ptr noundef nonnull align 1 dereferenceable(1) %5)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  store i32 0, ptr %6, align 4, !tbaa !5
  %59 = load i32, ptr %1, align 4, !tbaa !5
  %60 = icmp sgt i32 %59, 0
  br i1 %60, label %.lr.ph131, label %._crit_edge132

.lr.ph128:                                        ; preds = %.critedge99, %.lr.ph128
  %storemerge127 = phi i32 [ %65, %.lr.ph128 ], [ 0, %.critedge99 ]
  %61 = sext i32 %storemerge127 to i64
  %62 = getelementptr inbounds [200010 x %"class.std::set"], ptr @X, i64 0, i64 %61
  %63 = call { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %62, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %64 = load i32, ptr %4, align 4, !tbaa !5
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr %4, align 4, !tbaa !5
  %66 = load i32, ptr %1, align 4, !tbaa !5
  %67 = icmp slt i32 %65, %66
  br i1 %67, label %.lr.ph128, label %._crit_edge, !llvm.loop !14

._crit_edge132:                                   ; preds = %.lr.ph131, %._crit_edge
  %.lcssa = phi i32 [ %59, %._crit_edge ], [ %92, %.lr.ph131 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  %68 = sext i32 %.lcssa to i64
  %69 = getelementptr inbounds %"class.std::tuple", ptr @V, i64 %68
  call void @_ZSt4sortIPSt5tupleIJiiEEEvT_S3_(ptr noundef nonnull @V, ptr noundef nonnull %69)
  %70 = load i32, ptr %1, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds %"class.std::tuple", ptr @V, i64 %71
  call void @_ZSt7reverseIPSt5tupleIJiiEEEvT_S3_(ptr noundef nonnull @V, ptr noundef nonnull %72)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %73 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) @V) #6
  %74 = load i32, ptr %73, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [200010 x %"class.std::set"], ptr @X, i64 0, i64 %75
  %77 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %76) #6
  store ptr %77, ptr %8, align 8
  %78 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) @V) #6
  %79 = load i32, ptr %78, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [200010 x i8], ptr @visited, i64 0, i64 %80
  store i8 1, ptr %81, align 1, !tbaa !12
  %82 = load i32, ptr %1, align 4, !tbaa !5
  %83 = icmp sgt i32 %82, 0
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  br i1 %83, label %.lr.ph137, label %.critedge

.lr.ph131:                                        ; preds = %._crit_edge, %.lr.ph131
  %storemerge97129 = phi i32 [ %91, %.lr.ph131 ], [ 0, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %84 = sext i32 %storemerge97129 to i64
  %85 = getelementptr inbounds [200010 x i32], ptr @choten, i64 0, i64 %84
  call void @_ZSt10make_tupleIJRiS0_EESt5tupleIJDpNSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeEEEDpOS4_(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple") align 4 %7, ptr noundef nonnull align 4 dereferenceable(4) %85, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %86 = load i32, ptr %6, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [200010 x %"class.std::tuple"], ptr @V, i64 0, i64 %87
  %89 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5tupleIJiiEEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %88, ptr noundef nonnull align 4 dereferenceable(8) %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  %90 = load i32, ptr %6, align 4, !tbaa !5
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %6, align 4, !tbaa !5
  %92 = load i32, ptr %1, align 4, !tbaa !5
  %93 = icmp slt i32 %91, %92
  br i1 %93, label %.lr.ph131, label %._crit_edge132, !llvm.loop !15

.lr.ph137:                                        ; preds = %._crit_edge132, %131
  %.081135 = phi i32 [ %.182, %131 ], [ 0, %._crit_edge132 ]
  %.084134 = phi i32 [ %.286, %131 ], [ 0, %._crit_edge132 ]
  %94 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) @V) #6
  %95 = load i32, ptr %94, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [200010 x %"class.std::set"], ptr @X, i64 0, i64 %96
  %98 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %97) #6
  store ptr %98, ptr %9, align 8
  %99 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br i1 %99, label %100, label %.loopexit108.loopexit

100:                                              ; preds = %.lr.ph137
  %101 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  %102 = load i32, ptr %101, align 4, !tbaa !5
  %103 = icmp eq i32 %.081135, %102
  br i1 %103, label %104, label %107

104:                                              ; preds = %100
  %105 = add nsw i32 %.081135, 1
  %106 = call ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEi(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef 0) #6
  br label %131

107:                                              ; preds = %100
  %108 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  %109 = load i32, ptr %108, align 4, !tbaa !5
  %110 = icmp slt i32 %.081135, %109
  br i1 %110, label %111, label %129

111:                                              ; preds = %107
  %112 = sext i32 %.081135 to i64
  %113 = getelementptr inbounds [200010 x i8], ptr @visited, i64 0, i64 %112
  %114 = load i8, ptr %113, align 1, !tbaa !12, !range !16, !noundef !17
  %115 = trunc nuw i8 %114 to i1
  br i1 %115, label %._crit_edge183, label %116

._crit_edge183:                                   ; preds = %111
  %.pre185 = add nsw i32 %.081135, 1
  br label %131

116:                                              ; preds = %111
  %117 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) @V) #6
  %118 = load i32, ptr %117, align 4, !tbaa !5
  %119 = add nsw i32 %118, 1
  %120 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %119)
  %121 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %120, ptr noundef nonnull @.str.3)
  %122 = add nsw i32 %.081135, 1
  %123 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %121, i32 noundef %122)
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %123, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i8 1, ptr %113, align 1, !tbaa !12
  %125 = add nsw i32 %.084134, 1
  %126 = load i32, ptr %1, align 4, !tbaa !5
  %127 = add i32 %126, -2
  %128 = icmp eq i32 %.084134, %127
  br i1 %128, label %.loopexit106, label %131

129:                                              ; preds = %107
  %130 = call ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEi(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef 0) #6
  br label %131

131:                                              ; preds = %116, %._crit_edge183, %129, %104
  %.286 = phi i32 [ %.084134, %104 ], [ %.084134, %129 ], [ %.084134, %._crit_edge183 ], [ %125, %116 ]
  %.182 = phi i32 [ %105, %104 ], [ %.081135, %129 ], [ %.pre185, %._crit_edge183 ], [ %122, %116 ]
  %132 = load i32, ptr %1, align 4, !tbaa !5
  %133 = icmp slt i32 %.182, %132
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  br i1 %133, label %.lr.ph137, label %.critedge, !llvm.loop !18

.critedge:                                        ; preds = %131, %._crit_edge132
  %134 = phi i32 [ %82, %._crit_edge132 ], [ %132, %131 ]
  %.084.lcssa = phi i32 [ 0, %._crit_edge132 ], [ %.286, %131 ]
  %.081.lcssa = phi i32 [ 0, %._crit_edge132 ], [ %.182, %131 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br label %.loopexit108

.loopexit108.loopexit:                            ; preds = %.lr.ph137
  %.pre = load i32, ptr %1, align 4, !tbaa !5
  br label %.loopexit108

.loopexit108:                                     ; preds = %.loopexit108.loopexit, %.critedge
  %135 = phi i32 [ %134, %.critedge ], [ %.pre, %.loopexit108.loopexit ]
  %.084121 = phi i32 [ %.084.lcssa, %.critedge ], [ %.084134, %.loopexit108.loopexit ]
  %.081118 = phi i32 [ %.081.lcssa, %.critedge ], [ %.081135, %.loopexit108.loopexit ]
  %136 = icmp slt i32 %.081118, %135
  br i1 %136, label %.lr.ph143.preheader, label %.preheader

.lr.ph143.preheader:                              ; preds = %.loopexit108
  %137 = sext i32 %.081118 to i64
  br label %.lr.ph143

.preheader:                                       ; preds = %158, %.loopexit108
  %138 = phi i32 [ %135, %.loopexit108 ], [ %159, %158 ]
  %.387.lcssa = phi i32 [ %.084121, %.loopexit108 ], [ %.488, %158 ]
  %139 = icmp sgt i32 %138, 1
  br i1 %139, label %.lr.ph154, label %.loopexit106

.lr.ph143:                                        ; preds = %.lr.ph143.preheader, %158
  %140 = phi i32 [ %135, %.lr.ph143.preheader ], [ %159, %158 ]
  %indvars.iv171 = phi i64 [ %137, %.lr.ph143.preheader ], [ %indvars.iv.next172.pre-phi, %158 ]
  %.387140 = phi i32 [ %.084121, %.lr.ph143.preheader ], [ %.488, %158 ]
  %141 = getelementptr inbounds [200010 x i8], ptr @visited, i64 0, i64 %indvars.iv171
  %142 = load i8, ptr %141, align 1, !tbaa !12, !range !16, !noundef !17
  %143 = trunc nuw i8 %142 to i1
  br i1 %143, label %.lr.ph143._crit_edge, label %144

.lr.ph143._crit_edge:                             ; preds = %.lr.ph143
  %.pre184 = add nsw i64 %indvars.iv171, 1
  br label %158

144:                                              ; preds = %.lr.ph143
  %145 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) @V) #6
  %146 = load i32, ptr %145, align 4, !tbaa !5
  %147 = add nsw i32 %146, 1
  %148 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %147)
  %149 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %148, ptr noundef nonnull @.str.3)
  %150 = add nsw i64 %indvars.iv171, 1
  %151 = trunc nsw i64 %150 to i32
  %152 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %149, i32 noundef %151)
  %153 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %152, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i8 1, ptr %141, align 1, !tbaa !12
  %154 = add nsw i32 %.387140, 1
  %155 = load i32, ptr %1, align 4, !tbaa !5
  %156 = add i32 %155, -2
  %157 = icmp eq i32 %.387140, %156
  br i1 %157, label %.loopexit106, label %158

158:                                              ; preds = %.lr.ph143._crit_edge, %144
  %indvars.iv.next172.pre-phi = phi i64 [ %.pre184, %.lr.ph143._crit_edge ], [ %150, %144 ]
  %159 = phi i32 [ %140, %.lr.ph143._crit_edge ], [ %155, %144 ]
  %.488 = phi i32 [ %.387140, %.lr.ph143._crit_edge ], [ %154, %144 ]
  %160 = sext i32 %159 to i64
  %161 = icmp slt i64 %indvars.iv.next172.pre-phi, %160
  br i1 %161, label %.lr.ph143, label %.preheader, !llvm.loop !19

.lr.ph154:                                        ; preds = %.preheader, %248
  %indvars.iv178 = phi i64 [ %indvars.iv.next179, %248 ], [ 1, %.preheader ]
  %.589152 = phi i32 [ %.9, %248 ], [ %.387.lcssa, %.preheader ]
  %162 = getelementptr inbounds [200010 x %"class.std::tuple"], ptr @V, i64 0, i64 %indvars.iv178
  %163 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %162) #6
  %164 = load i32, ptr %163, align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [200010 x i8], ptr @visited, i64 0, i64 %165
  %167 = load i8, ptr %166, align 1, !tbaa !12, !range !16, !noundef !17
  %168 = trunc nuw i8 %167 to i1
  br i1 %168, label %.lr.ph154._crit_edge, label %169

.lr.ph154._crit_edge:                             ; preds = %.lr.ph154
  %.pre182 = load i32, ptr %1, align 4, !tbaa !5
  br label %248

169:                                              ; preds = %.lr.ph154
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %170 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %162) #6
  %171 = load i32, ptr %170, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [200010 x %"class.std::set"], ptr @X, i64 0, i64 %172
  %174 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %173) #6
  store ptr %174, ptr %10, align 8
  %175 = load i32, ptr %1, align 4, !tbaa !5
  %176 = icmp sgt i32 %175, 0
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  br i1 %176, label %.lr.ph147, label %.critedge4

.lr.ph147:                                        ; preds = %169, %220
  %.073145 = phi i32 [ %.174, %220 ], [ 0, %169 ]
  %177 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %162) #6
  %178 = load i32, ptr %177, align 4, !tbaa !5
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds [200010 x %"class.std::set"], ptr @X, i64 0, i64 %179
  %181 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %180) #6
  store ptr %181, ptr %11, align 8
  %182 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  br i1 %182, label %183, label %.loopexit.loopexit

183:                                              ; preds = %.lr.ph147
  %184 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  %185 = load i32, ptr %184, align 4, !tbaa !5
  %186 = icmp eq i32 %.073145, %185
  br i1 %186, label %187, label %190

187:                                              ; preds = %183
  %188 = add nsw i32 %.073145, 1
  %189 = call ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEi(ptr noundef nonnull align 8 dereferenceable(8) %10, i32 noundef 0) #6
  br label %220

190:                                              ; preds = %183
  %191 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  %192 = load i32, ptr %191, align 4, !tbaa !5
  %193 = icmp slt i32 %.073145, %192
  br i1 %193, label %194, label %218

194:                                              ; preds = %190
  %195 = sext i32 %.073145 to i64
  %196 = getelementptr inbounds [200010 x i8], ptr @visited, i64 0, i64 %195
  %197 = load i8, ptr %196, align 1, !tbaa !12, !range !16, !noundef !17
  %198 = trunc nuw i8 %197 to i1
  br i1 %198, label %199, label %216

199:                                              ; preds = %194
  %200 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %162) #6
  %201 = load i32, ptr %200, align 4, !tbaa !5
  %202 = add nsw i32 %201, 1
  %203 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %202)
  %204 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %203, ptr noundef nonnull @.str.3)
  %205 = add nsw i32 %.073145, 1
  %206 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %204, i32 noundef %205)
  %207 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %206, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %208 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %162) #6
  %209 = load i32, ptr %208, align 4, !tbaa !5
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds [200010 x i8], ptr @visited, i64 0, i64 %210
  store i8 1, ptr %211, align 1, !tbaa !12
  %212 = add nsw i32 %.589152, 1
  %213 = load i32, ptr %1, align 4, !tbaa !5
  %214 = add i32 %213, -2
  %215 = icmp eq i32 %.589152, %214
  br i1 %215, label %.thread102, label %.loopexit

.thread102:                                       ; preds = %199
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  br label %.loopexit106

216:                                              ; preds = %194
  %217 = add nsw i32 %.073145, 1
  br label %220

218:                                              ; preds = %190
  %219 = call ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEi(ptr noundef nonnull align 8 dereferenceable(8) %10, i32 noundef 0) #6
  br label %220

220:                                              ; preds = %216, %218, %187
  %.174 = phi i32 [ %188, %187 ], [ %217, %216 ], [ %.073145, %218 ]
  %221 = load i32, ptr %1, align 4, !tbaa !5
  %222 = icmp slt i32 %.174, %221
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  br i1 %222, label %.lr.ph147, label %.critedge4, !llvm.loop !20

.critedge4:                                       ; preds = %220, %169
  %223 = phi i32 [ %175, %169 ], [ %221, %220 ]
  %.073.lcssa = phi i32 [ 0, %169 ], [ %.174, %220 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  br label %.loopexit

.loopexit.loopexit:                               ; preds = %.lr.ph147
  %.pre181 = load i32, ptr %1, align 4, !tbaa !5
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %199, %.critedge4
  %224 = phi i32 [ %213, %199 ], [ %223, %.critedge4 ], [ %.pre181, %.loopexit.loopexit ]
  %.073113 = phi i32 [ %.073145, %199 ], [ %.073.lcssa, %.critedge4 ], [ %.073145, %.loopexit.loopexit ]
  %.690 = phi i32 [ %212, %199 ], [ %.589152, %.critedge4 ], [ %.589152, %.loopexit.loopexit ]
  %225 = icmp slt i32 %.073113, %224
  br i1 %225, label %.lr.ph151.preheader, label %.thread

.lr.ph151.preheader:                              ; preds = %.loopexit
  %226 = sext i32 %.073113 to i64
  br label %.lr.ph151

.thread:                                          ; preds = %230, %.loopexit
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  br label %248

.lr.ph151:                                        ; preds = %.lr.ph151.preheader, %230
  %indvars.iv174 = phi i64 [ %226, %.lr.ph151.preheader ], [ %indvars.iv.next175, %230 ]
  %227 = getelementptr inbounds [200010 x i8], ptr @visited, i64 0, i64 %indvars.iv174
  %228 = load i8, ptr %227, align 1, !tbaa !12, !range !16, !noundef !17
  %229 = trunc nuw i8 %228 to i1
  br i1 %229, label %230, label %231

230:                                              ; preds = %.lr.ph151
  %indvars.iv.next175 = add nsw i64 %indvars.iv174, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next175 to i32
  %exitcond177.not = icmp eq i32 %224, %lftr.wideiv
  br i1 %exitcond177.not, label %.thread, label %.lr.ph151, !llvm.loop !21

231:                                              ; preds = %.lr.ph151
  %232 = trunc nsw i64 %indvars.iv174 to i32
  %233 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %162) #6
  %234 = load i32, ptr %233, align 4, !tbaa !5
  %235 = add nsw i32 %234, 1
  %236 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %235)
  %237 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %236, ptr noundef nonnull @.str.3)
  %238 = add nsw i32 %232, 1
  %239 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %237, i32 noundef %238)
  %240 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %239, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %241 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %162) #6
  %242 = load i32, ptr %241, align 4, !tbaa !5
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds [200010 x i8], ptr @visited, i64 0, i64 %243
  store i8 1, ptr %244, align 1, !tbaa !12
  %245 = add nsw i32 %.690, 1
  %246 = load i32, ptr %1, align 4, !tbaa !5
  %247 = add i32 %246, -2
  %.not105 = icmp eq i32 %.690, %247
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  br i1 %.not105, label %.loopexit106, label %248

248:                                              ; preds = %.lr.ph154._crit_edge, %.thread, %231
  %249 = phi i32 [ %.pre182, %.lr.ph154._crit_edge ], [ %246, %231 ], [ %224, %.thread ]
  %.9 = phi i32 [ %.589152, %.lr.ph154._crit_edge ], [ %245, %231 ], [ %.690, %.thread ]
  %indvars.iv.next179 = add nuw nsw i64 %indvars.iv178, 1
  %250 = sext i32 %249 to i64
  %251 = icmp slt i64 %indvars.iv.next179, %250
  br i1 %251, label %.lr.ph154, label %.loopexit106, !llvm.loop !22

.loopexit106:                                     ; preds = %116, %144, %248, %231, %.preheader, %.thread102
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br label %252

252:                                              ; preds = %50, %.loopexit106
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  ret i32 0
}

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZSt10make_tupleIJRiS0_EESt5tupleIJDpNSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeEEEDpOS4_(ptr dead_on_unwind noalias writable sret(%"class.std::tuple") align 4, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

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

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

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

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

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

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

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

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

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

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

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

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

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


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