; LLVM IR from HarshCasper/NeoAlgo :: C-Plus-Plus/cp (Max_Topology_short)

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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<long long>, std::allocator<std::vector<long long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<long long>, std::allocator<std::vector<long long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<long long>, std::allocator<std::vector<long long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<long long>, std::allocator<std::vector<long long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<std::pair<long long, std::pair<long long, long long>>, std::allocator<std::pair<long long, std::pair<long long, long long>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<long long, std::pair<long long, long long>>, std::allocator<std::pair<long long, std::pair<long long, long long>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<long long, std::pair<long long, long long>>, std::allocator<std::pair<long long, std::pair<long long, long long>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<long long, std::pair<long long, long long>>, std::allocator<std::pair<long long, std::pair<long long, long long>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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.__gnu_cxx::__normal_iterator.12" = type { ptr }
%"struct.std::greater" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::pair" = type { i64, %"struct.std::pair.10" }
%"struct.std::pair.10" = type { i64, i64 }

@n = external dso_local global i64, align 8
@akshay = external dso_local global %"class.std::vector", align 8
@p = external dso_local global %"class.std::vector.0", align 8
@Temp_ways = external dso_local global %"class.std::vector.0", align 8
@sub_tree = external dso_local global %"class.std::vector.0", align 8
@AA = external dso_local global %"class.std::vector.5", align 8
@_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 nounwind uwtable
declare dso_local void @_Z17Inverse_of_Numberx(i64 noundef) #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z20Inverse_of_Factorialx(i64 noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z9factorialx(i64 noundef) #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_Z3dfsx(i64 noundef) #2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_Z7getNodex(i64 noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #4 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.12", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.12", align 8
  %16 = alloca %"struct.std::greater", align 1
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca %"class.std::vector.0", align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  call void @_Z9factorialx(i64 noundef 1000000007)
  call void @_Z17Inverse_of_Numberx(i64 noundef 1000000007)
  call void @_Z20Inverse_of_Factorialx(i64 noundef 1000000007)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  %29 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @n)
  %30 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef nonnull align 8 dereferenceable(8) %2)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %31 = load i64, ptr @n, align 8, !tbaa !5
  %32 = sub nsw i64 %31, 1
  store i64 %32, ptr %3, align 8, !tbaa !5
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @akshay) #6
  call void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @p) #6
  call void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @Temp_ways) #6
  %33 = load i64, ptr @n, align 8, !tbaa !5
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) @akshay, i64 noundef %33)
  %34 = load i64, ptr @n, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  store i64 0, ptr %4, align 8, !tbaa !5
  call void @_ZNSt6vectorIxSaIxEE6resizeEmRKx(ptr noundef nonnull align 8 dereferenceable(24) @p, i64 noundef %34, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %35 = load i64, ptr @n, align 8, !tbaa !5
  call void @_ZNSt6vectorIxSaIxEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) @Temp_ways, i64 noundef %35)
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  br label %36

36:                                               ; preds = %40, %0
  %37 = load i64, ptr %3, align 8, !tbaa !5
  %38 = add nsw i64 %37, -1
  store i64 %38, ptr %3, align 8, !tbaa !5
  %39 = icmp ne i64 %37, 0
  br i1 %39, label %40, label %53

40:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %41 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %42 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %41, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %43 = load i64, ptr %5, align 8, !tbaa !5
  %44 = sub nsw i64 %43, 1
  %45 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @akshay, i64 noundef %44) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %46 = load i64, ptr %6, align 8, !tbaa !5
  %47 = sub nsw i64 %46, 1
  store i64 %47, ptr %7, align 8, !tbaa !5
  call void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) %45, ptr noundef nonnull align 8 dereferenceable(8) %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  %48 = load i64, ptr %6, align 8, !tbaa !5
  %49 = sub nsw i64 %48, 1
  %50 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @akshay, i64 noundef %49) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %51 = load i64, ptr %5, align 8, !tbaa !5
  %52 = sub nsw i64 %51, 1
  store i64 %52, ptr %8, align 8, !tbaa !5
  call void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) %50, ptr noundef nonnull align 8 dereferenceable(8) %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %36, !llvm.loop !9

53:                                               ; preds = %36
  %54 = load i64, ptr @n, align 8, !tbaa !5
  %55 = icmp eq i64 %54, 1
  br i1 %55, label %56, label %90

56:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store i64 0, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store i64 0, ptr %10, align 8, !tbaa !5
  %57 = load i64, ptr %2, align 8, !tbaa !5
  %58 = icmp eq i64 %57, 1
  br i1 %58, label %59, label %74

59:                                               ; preds = %56
  call void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @p) #6
  call void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @Temp_ways) #6
  %60 = load i64, ptr @n, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  store i64 0, ptr %11, align 8, !tbaa !5
  call void @_ZNSt6vectorIxSaIxEE6resizeEmRKx(ptr noundef nonnull align 8 dereferenceable(24) @p, i64 noundef %60, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %61 = load i64, ptr @n, align 8, !tbaa !5
  call void @_ZNSt6vectorIxSaIxEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) @Temp_ways, i64 noundef %61)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  %62 = load i64, ptr %9, align 8, !tbaa !5
  %63 = call noundef i64 @_Z3dfsx(i64 noundef %62)
  %64 = load i64, ptr %9, align 8, !tbaa !5
  %65 = add nsw i64 %64, 1
  %66 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %65)
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %66, ptr noundef @.str)
  %68 = load i64, ptr %9, align 8, !tbaa !5
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Temp_ways, i64 noundef %68) #6
  %70 = load i64, ptr %69, align 8, !tbaa !5
  %71 = srem i64 %70, 1000000007
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %67, i64 noundef %71)
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %72, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %89

74:                                               ; preds = %56
  call void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @p) #6
  call void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @Temp_ways) #6
  %75 = load i64, ptr @n, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  store i64 0, ptr %12, align 8, !tbaa !5
  call void @_ZNSt6vectorIxSaIxEE6resizeEmRKx(ptr noundef nonnull align 8 dereferenceable(24) @p, i64 noundef %75, ptr noundef nonnull align 8 dereferenceable(8) %12)
  %76 = load i64, ptr @n, align 8, !tbaa !5
  call void @_ZNSt6vectorIxSaIxEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) @Temp_ways, i64 noundef %76)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  %77 = load i64, ptr %10, align 8, !tbaa !5
  %78 = call noundef i64 @_Z3dfsx(i64 noundef %77)
  %79 = load i64, ptr %10, align 8, !tbaa !5
  %80 = add nsw i64 %79, 1
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %80)
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %81, ptr noundef @.str)
  %83 = load i64, ptr %10, align 8, !tbaa !5
  %84 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Temp_ways, i64 noundef %83) #6
  %85 = load i64, ptr %84, align 8, !tbaa !5
  %86 = srem i64 %85, 1000000007
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %82, i64 noundef %86)
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %87, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %89

89:                                               ; preds = %74, %59
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %90

90:                                               ; preds = %89, %53
  call void @_ZNSt6vectorISt4pairIxS0_IxxEESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @AA) #6
  call void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @sub_tree) #6
  %91 = load i64, ptr @n, align 8, !tbaa !5
  call void @_ZNSt6vectorIxSaIxEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) @sub_tree, i64 noundef %91)
  %92 = call noundef i64 @_Z7getNodex(i64 noundef 0)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  store i64 1, ptr %13, align 8, !tbaa !5
  %93 = call ptr @_ZNSt6vectorISt4pairIxS0_IxxEESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @AA) #6
  %94 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.12", ptr %14, i32 0, i32 0
  store ptr %93, ptr %94, align 8
  %95 = call ptr @_ZNSt6vectorISt4pairIxS0_IxxEESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @AA) #6
  %96 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.12", ptr %15, i32 0, i32 0
  store ptr %95, ptr %96, align 8
  %97 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.12", ptr %14, i32 0, i32 0
  %98 = load ptr, ptr %97, align 8
  %99 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.12", ptr %15, i32 0, i32 0
  %100 = load ptr, ptr %99, align 8
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIxS2_IxxEESt6vectorIS4_SaIS4_EEEESt7greaterIS4_EEvT_SC_T0_(ptr %98, ptr %100)
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %101 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIxS0_IxxEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @AA, i64 noundef 0) #6
  %102 = getelementptr inbounds %"struct.std::pair", ptr %101, i32 0, i32 0
  %103 = load i64, ptr %102, align 8, !tbaa !11
  %104 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIxS0_IxxEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @AA, i64 noundef 1) #6
  %105 = getelementptr inbounds %"struct.std::pair", ptr %104, i32 0, i32 0
  %106 = load i64, ptr %105, align 8, !tbaa !11
  %107 = icmp ne i64 %103, %106
  br i1 %107, label %108, label %149

108:                                              ; preds = %90
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %109 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIxS0_IxxEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @AA, i64 noundef 0) #6
  %110 = getelementptr inbounds %"struct.std::pair", ptr %109, i32 0, i32 1
  %111 = getelementptr inbounds %"struct.std::pair.10", ptr %110, i32 0, i32 0
  %112 = load i64, ptr %111, align 8, !tbaa !14
  store i64 %112, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %113 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIxS0_IxxEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @AA, i64 noundef 0) #6
  %114 = getelementptr inbounds %"struct.std::pair", ptr %113, i32 0, i32 1
  %115 = getelementptr inbounds %"struct.std::pair.10", ptr %114, i32 0, i32 1
  %116 = load i64, ptr %115, align 8, !tbaa !15
  store i64 %116, ptr %20, align 8, !tbaa !5
  %117 = load i64, ptr %19, align 8, !tbaa !5
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @sub_tree, i64 noundef %117) #6
  %119 = load i64, ptr %118, align 8, !tbaa !5
  %120 = load i64, ptr @n, align 8, !tbaa !5
  %121 = load i64, ptr %19, align 8, !tbaa !5
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @sub_tree, i64 noundef %121) #6
  %123 = load i64, ptr %122, align 8, !tbaa !5
  %124 = sub nsw i64 %120, %123
  %125 = icmp eq i64 %119, %124
  br i1 %125, label %126, label %131

126:                                              ; preds = %108
  %127 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20)
  %128 = load i64, ptr %127, align 8, !tbaa !5
  store i64 %128, ptr %17, align 8, !tbaa !5
  %129 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20)
  %130 = load i64, ptr %129, align 8, !tbaa !5
  store i64 %130, ptr %18, align 8, !tbaa !5
  br label %148

131:                                              ; preds = %108
  %132 = load i64, ptr %19, align 8, !tbaa !5
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @sub_tree, i64 noundef %132) #6
  %134 = load i64, ptr %133, align 8, !tbaa !5
  %135 = load i64, ptr @n, align 8, !tbaa !5
  %136 = load i64, ptr %19, align 8, !tbaa !5
  %137 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @sub_tree, i64 noundef %136) #6
  %138 = load i64, ptr %137, align 8, !tbaa !5
  %139 = sub nsw i64 %135, %138
  %140 = icmp sgt i64 %134, %139
  br i1 %140, label %141, label %144

141:                                              ; preds = %131
  %142 = load i64, ptr %19, align 8, !tbaa !5
  store i64 %142, ptr %17, align 8, !tbaa !5
  %143 = load i64, ptr %20, align 8, !tbaa !5
  store i64 %143, ptr %18, align 8, !tbaa !5
  br label %147

144:                                              ; preds = %131
  %145 = load i64, ptr %19, align 8, !tbaa !5
  store i64 %145, ptr %18, align 8, !tbaa !5
  %146 = load i64, ptr %20, align 8, !tbaa !5
  store i64 %146, ptr %17, align 8, !tbaa !5
  br label %147

147:                                              ; preds = %144, %141
  br label %148

148:                                              ; preds = %147, %126
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %260

149:                                              ; preds = %90
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #6
  call void @_ZNSt6vectorIxSaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  %150 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIxS0_IxxEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @AA, i64 noundef 0) #6
  %151 = getelementptr inbounds %"struct.std::pair", ptr %150, i32 0, i32 1
  %152 = getelementptr inbounds %"struct.std::pair.10", ptr %151, i32 0, i32 0
  %153 = load i64, ptr %152, align 8, !tbaa !14
  %154 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIxS0_IxxEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @AA, i64 noundef 1) #6
  %155 = getelementptr inbounds %"struct.std::pair", ptr %154, i32 0, i32 1
  %156 = getelementptr inbounds %"struct.std::pair.10", ptr %155, i32 0, i32 0
  %157 = load i64, ptr %156, align 8, !tbaa !14
  %158 = icmp eq i64 %153, %157
  br i1 %158, label %169, label %159

159:                                              ; preds = %149
  %160 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIxS0_IxxEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @AA, i64 noundef 0) #6
  %161 = getelementptr inbounds %"struct.std::pair", ptr %160, i32 0, i32 1
  %162 = getelementptr inbounds %"struct.std::pair.10", ptr %161, i32 0, i32 0
  %163 = load i64, ptr %162, align 8, !tbaa !14
  %164 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIxS0_IxxEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @AA, i64 noundef 1) #6
  %165 = getelementptr inbounds %"struct.std::pair", ptr %164, i32 0, i32 1
  %166 = getelementptr inbounds %"struct.std::pair.10", ptr %165, i32 0, i32 1
  %167 = load i64, ptr %166, align 8, !tbaa !15
  %168 = icmp eq i64 %163, %167
  br i1 %168, label %169, label %174

169:                                              ; preds = %159, %149
  %170 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIxS0_IxxEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @AA, i64 noundef 0) #6
  %171 = getelementptr inbounds %"struct.std::pair", ptr %170, i32 0, i32 1
  %172 = getelementptr inbounds %"struct.std::pair.10", ptr %171, i32 0, i32 0
  %173 = load i64, ptr %172, align 8, !tbaa !14
  store i64 %173, ptr %17, align 8, !tbaa !5
  br label %179

174:                                              ; preds = %159
  %175 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIxS0_IxxEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @AA, i64 noundef 0) #6
  %176 = getelementptr inbounds %"struct.std::pair", ptr %175, i32 0, i32 1
  %177 = getelementptr inbounds %"struct.std::pair.10", ptr %176, i32 0, i32 1
  %178 = load i64, ptr %177, align 8, !tbaa !15
  store i64 %178, ptr %17, align 8, !tbaa !5
  br label %179

179:                                              ; preds = %174, %169
  store i64 1, ptr %13, align 8, !tbaa !5
  %180 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIxS0_IxxEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @AA, i64 noundef 0) #6
  %181 = getelementptr inbounds %"struct.std::pair", ptr %180, i32 0, i32 1
  %182 = getelementptr inbounds %"struct.std::pair.10", ptr %181, i32 0, i32 0
  %183 = load i64, ptr %182, align 8, !tbaa !14
  %184 = load i64, ptr %17, align 8, !tbaa !5
  %185 = icmp ne i64 %183, %184
  br i1 %185, label %186, label %190

186:                                              ; preds = %179
  %187 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIxS0_IxxEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @AA, i64 noundef 0) #6
  %188 = getelementptr inbounds %"struct.std::pair", ptr %187, i32 0, i32 1
  %189 = getelementptr inbounds %"struct.std::pair.10", ptr %188, i32 0, i32 0
  br label %194

190:                                              ; preds = %179
  %191 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIxS0_IxxEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @AA, i64 noundef 0) #6
  %192 = getelementptr inbounds %"struct.std::pair", ptr %191, i32 0, i32 1
  %193 = getelementptr inbounds %"struct.std::pair.10", ptr %192, i32 0, i32 1
  br label %194

194:                                              ; preds = %190, %186
  %195 = phi ptr [ %189, %186 ], [ %193, %190 ]
  invoke void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(8) %195)
          to label %196 unwind label %237

196:                                              ; preds = %194
  br label %197

197:                                              ; preds = %234, %196
  %198 = load i64, ptr %13, align 8, !tbaa !5
  %199 = load i64, ptr @n, align 8, !tbaa !5
  %200 = icmp ne i64 %198, %199
  br i1 %200, label %201, label %212

201:                                              ; preds = %197
  %202 = load i64, ptr %13, align 8, !tbaa !5
  %203 = sub nsw i64 %202, 1
  %204 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIxS0_IxxEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @AA, i64 noundef %203) #6
  %205 = getelementptr inbounds %"struct.std::pair", ptr %204, i32 0, i32 0
  %206 = load i64, ptr %205, align 8, !tbaa !11
  %207 = load i64, ptr %13, align 8, !tbaa !5
  %208 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIxS0_IxxEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @AA, i64 noundef %207) #6
  %209 = getelementptr inbounds %"struct.std::pair", ptr %208, i32 0, i32 0
  %210 = load i64, ptr %209, align 8, !tbaa !11
  %211 = icmp eq i64 %206, %210
  br label %212

212:                                              ; preds = %201, %197
  %213 = phi i1 [ false, %197 ], [ %211, %201 ]
  br i1 %213, label %214, label %241

214:                                              ; preds = %212
  %215 = load i64, ptr %13, align 8, !tbaa !5
  %216 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIxS0_IxxEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @AA, i64 noundef %215) #6
  %217 = getelementptr inbounds %"struct.std::pair", ptr %216, i32 0, i32 1
  %218 = getelementptr inbounds %"struct.std::pair.10", ptr %217, i32 0, i32 0
  %219 = load i64, ptr %218, align 8, !tbaa !14
  %220 = load i64, ptr %17, align 8, !tbaa !5
  %221 = icmp ne i64 %219, %220
  br i1 %221, label %222, label %227

222:                                              ; preds = %214
  %223 = load i64, ptr %13, align 8, !tbaa !5
  %224 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIxS0_IxxEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @AA, i64 noundef %223) #6
  %225 = getelementptr inbounds %"struct.std::pair", ptr %224, i32 0, i32 1
  %226 = getelementptr inbounds %"struct.std::pair.10", ptr %225, i32 0, i32 0
  br label %232

227:                                              ; preds = %214
  %228 = load i64, ptr %13, align 8, !tbaa !5
  %229 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIxS0_IxxEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @AA, i64 noundef %228) #6
  %230 = getelementptr inbounds %"struct.std::pair", ptr %229, i32 0, i32 1
  %231 = getelementptr inbounds %"struct.std::pair.10", ptr %230, i32 0, i32 1
  br label %232

232:                                              ; preds = %227, %222
  %233 = phi ptr [ %226, %222 ], [ %231, %227 ]
  invoke void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(8) %233)
          to label %234 unwind label %237

234:                                              ; preds = %232
  %235 = load i64, ptr %13, align 8, !tbaa !5
  %236 = add nsw i64 %235, 1
  store i64 %236, ptr %13, align 8, !tbaa !5
  br label %197, !llvm.loop !16

237:                                              ; preds = %232, %194
  %238 = landingpad { ptr, i32 }
          cleanup
  %239 = extractvalue { ptr, i32 } %238, 0
  store ptr %239, ptr %22, align 8
  %240 = extractvalue { ptr, i32 } %238, 1
  store i32 %240, ptr %23, align 4
  br label %259

241:                                              ; preds = %212
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %242 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  %243 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %25, i32 0, i32 0
  store ptr %242, ptr %243, align 8
  %244 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  %245 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %26, i32 0, i32 0
  store ptr %244, ptr %245, align 8
  %246 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %25, i32 0, i32 0
  %247 = load ptr, ptr %246, align 8
  %248 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %26, i32 0, i32 0
  %249 = load ptr, ptr %248, align 8
  %250 = invoke ptr @_ZSt11max_elementIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEEET_S7_S7_(ptr %247, ptr %249)
          to label %251 unwind label %255

251:                                              ; preds = %241
  %252 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %24, i32 0, i32 0
  store ptr %250, ptr %252, align 8
  %253 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #6
  %254 = load i64, ptr %253, align 8, !tbaa !5
  store i64 %254, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #6
  br label %260

255:                                              ; preds = %241
  %256 = landingpad { ptr, i32 }
          cleanup
  %257 = extractvalue { ptr, i32 } %256, 0
  store ptr %257, ptr %22, align 8
  %258 = extractvalue { ptr, i32 } %256, 1
  store i32 %258, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br label %259

259:                                              ; preds = %255, %237
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  br label %299

260:                                              ; preds = %251, %148
  %261 = load i64, ptr %2, align 8, !tbaa !5
  %262 = icmp eq i64 %261, 1
  br i1 %262, label %263, label %280

263:                                              ; preds = %260
  call void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @p) #6
  call void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @Temp_ways) #6
  %264 = load i64, ptr @n, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  store i64 0, ptr %27, align 8, !tbaa !5
  call void @_ZNSt6vectorIxSaIxEE6resizeEmRKx(ptr noundef nonnull align 8 dereferenceable(24) @p, i64 noundef %264, ptr noundef nonnull align 8 dereferenceable(8) %27)
  %265 = load i64, ptr @n, align 8, !tbaa !5
  call void @_ZNSt6vectorIxSaIxEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) @Temp_ways, i64 noundef %265)
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  %266 = load i64, ptr %17, align 8, !tbaa !5
  %267 = call noundef i64 @_Z3dfsx(i64 noundef %266)
  %268 = load i64, ptr %17, align 8, !tbaa !5
  %269 = add nsw i64 %268, 1
  %270 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %269)
  %271 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %270, ptr noundef @.str)
  %272 = load i64, ptr %17, align 8, !tbaa !5
  %273 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Temp_ways, i64 noundef %272) #6
  %274 = load i64, ptr %273, align 8, !tbaa !5
  %275 = srem i64 %274, 1000000007
  %276 = add nsw i64 %275, 1000000007
  %277 = srem i64 %276, 1000000007
  %278 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %271, i64 noundef %277)
  %279 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %278, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %297

280:                                              ; preds = %260
  call void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @p) #6
  call void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @Temp_ways) #6
  %281 = load i64, ptr @n, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  store i64 0, ptr %28, align 8, !tbaa !5
  call void @_ZNSt6vectorIxSaIxEE6resizeEmRKx(ptr noundef nonnull align 8 dereferenceable(24) @p, i64 noundef %281, ptr noundef nonnull align 8 dereferenceable(8) %28)
  %282 = load i64, ptr @n, align 8, !tbaa !5
  call void @_ZNSt6vectorIxSaIxEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) @Temp_ways, i64 noundef %282)
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  %283 = load i64, ptr %18, align 8, !tbaa !5
  %284 = call noundef i64 @_Z3dfsx(i64 noundef %283)
  %285 = load i64, ptr %18, align 8, !tbaa !5
  %286 = add nsw i64 %285, 1
  %287 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %286)
  %288 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %287, ptr noundef @.str)
  %289 = load i64, ptr %18, align 8, !tbaa !5
  %290 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Temp_ways, i64 noundef %289) #6
  %291 = load i64, ptr %290, align 8, !tbaa !5
  %292 = srem i64 %291, 1000000007
  %293 = add nsw i64 %292, 1000000007
  %294 = srem i64 %293, 1000000007
  %295 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %288, i64 noundef %294)
  %296 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %295, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %297

297:                                              ; preds = %280, %263
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  %298 = load i32, ptr %1, align 4
  ret i32 %298

299:                                              ; preds = %259
  %300 = load ptr, ptr %22, align 8
  %301 = load i32, ptr %23, align 4
  %302 = insertvalue { ptr, i32 } poison, ptr %300, 0
  %303 = insertvalue { ptr, i32 } %302, i32 %301, 1
  resume { ptr, i32 } %303
}

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #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) #5

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 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)) #5

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

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

declare i32 @__gxx_personality_v0(...)

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { 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 #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSSt4pairIxS_IxxEE", !6, i64 0, !13, i64 8}
!13 = !{!"_ZTSSt4pairIxxE", !6, i64 0, !6, i64 8}
!14 = !{!12, !6, i64 8}
!15 = !{!12, !6, i64 16}
!16 = distinct !{!16, !10}


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<long long>, std::allocator<std::vector<long long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<long long>, std::allocator<std::vector<long long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<long long>, std::allocator<std::vector<long long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<long long>, std::allocator<std::vector<long long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<std::pair<long long, std::pair<long long, long long>>, std::allocator<std::pair<long long, std::pair<long long, long long>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<long long, std::pair<long long, long long>>, std::allocator<std::pair<long long, std::pair<long long, long long>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<long long, std::pair<long long, long long>>, std::allocator<std::pair<long long, std::pair<long long, long long>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<long long, std::pair<long long, long long>>, std::allocator<std::pair<long long, std::pair<long long, long long>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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.__gnu_cxx::__normal_iterator" = type { ptr }

@n = external dso_local global i64, align 8
@akshay = external dso_local global %"class.std::vector", align 8
@p = external dso_local global %"class.std::vector.0", align 8
@Temp_ways = external dso_local global %"class.std::vector.0", align 8
@sub_tree = external dso_local global %"class.std::vector.0", align 8
@AA = external dso_local global %"class.std::vector.5", align 8
@_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 nounwind uwtable
declare dso_local void @_Z17Inverse_of_Numberx(i64 noundef) local_unnamed_addr #0

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

; 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 nounwind uwtable
declare dso_local void @_Z20Inverse_of_Factorialx(i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z9factorialx(i64 noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_Z3dfsx(i64 noundef) local_unnamed_addr #2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_Z7getNodex(i64 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca %"class.std::vector.0", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  tail call void @_Z9factorialx(i64 noundef 1000000007)
  tail call void @_Z17Inverse_of_Numberx(i64 noundef 1000000007)
  tail call void @_Z20Inverse_of_Factorialx(i64 noundef 1000000007)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  %15 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @n)
  %16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %17 = load i64, ptr @n, align 8, !tbaa !5
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @akshay) #6
  call void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @p) #6
  call void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @Temp_ways) #6
  %18 = load i64, ptr @n, align 8, !tbaa !5
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) @akshay, i64 noundef %18)
  %19 = load i64, ptr @n, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  store i64 0, ptr %2, align 8, !tbaa !5
  call void @_ZNSt6vectorIxSaIxEE6resizeEmRKx(ptr noundef nonnull align 8 dereferenceable(24) @p, i64 noundef %19, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %20 = load i64, ptr @n, align 8, !tbaa !5
  call void @_ZNSt6vectorIxSaIxEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) @Temp_ways, i64 noundef %20)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  %.043 = add nsw i64 %17, -1
  %.not44 = icmp eq i64 %.043, 0
  br i1 %.not44, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.045 = phi i64 [ %.0, %.lr.ph ], [ %.043, %0 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %21 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %22 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %23 = load i64, ptr %3, align 8, !tbaa !5
  %24 = add nsw i64 %23, -1
  %25 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @akshay, i64 noundef %24) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %26 = load i64, ptr %4, align 8, !tbaa !5
  %27 = add nsw i64 %26, -1
  store i64 %27, ptr %5, align 8, !tbaa !5
  call void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  %28 = load i64, ptr %4, align 8, !tbaa !5
  %29 = add nsw i64 %28, -1
  %30 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @akshay, i64 noundef %29) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %31 = load i64, ptr %3, align 8, !tbaa !5
  %32 = add nsw i64 %31, -1
  store i64 %32, ptr %6, align 8, !tbaa !5
  call void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 8 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  %.0 = add nsw i64 %.045, -1
  %.not = icmp eq i64 %.0, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph, %0
  %33 = load i64, ptr @n, align 8, !tbaa !5
  %34 = icmp eq i64 %33, 1
  br i1 %34, label %35, label %51

35:                                               ; preds = %._crit_edge
  %36 = load i64, ptr %1, align 8, !tbaa !5
  %37 = icmp eq i64 %36, 1
  call void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @p) #6
  call void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @Temp_ways) #6
  %38 = load i64, ptr @n, align 8, !tbaa !5
  br i1 %37, label %39, label %41

39:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  store i64 0, ptr %7, align 8, !tbaa !5
  call void @_ZNSt6vectorIxSaIxEE6resizeEmRKx(ptr noundef nonnull align 8 dereferenceable(24) @p, i64 noundef %38, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %40 = load i64, ptr @n, align 8, !tbaa !5
  call void @_ZNSt6vectorIxSaIxEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) @Temp_ways, i64 noundef %40)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br label %.sink.split

41:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  store i64 0, ptr %8, align 8, !tbaa !5
  call void @_ZNSt6vectorIxSaIxEE6resizeEmRKx(ptr noundef nonnull align 8 dereferenceable(24) @p, i64 noundef %38, ptr noundef nonnull align 8 dereferenceable(8) %8)
  %42 = load i64, ptr @n, align 8, !tbaa !5
  call void @_ZNSt6vectorIxSaIxEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) @Temp_ways, i64 noundef %42)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br label %.sink.split

.sink.split:                                      ; preds = %41, %39
  %43 = call noundef i64 @_Z3dfsx(i64 noundef 0)
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef 1)
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef nonnull @.str)
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Temp_ways, i64 noundef 0) #6
  %47 = load i64, ptr %46, align 8, !tbaa !5
  %48 = srem i64 %47, 1000000007
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %45, i64 noundef %48)
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %49, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %51

51:                                               ; preds = %.sink.split, %._crit_edge
  call void @_ZNSt6vectorISt4pairIxS0_IxxEESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @AA) #6
  call void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @sub_tree) #6
  %52 = load i64, ptr @n, align 8, !tbaa !5
  call void @_ZNSt6vectorIxSaIxEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) @sub_tree, i64 noundef %52)
  %53 = call noundef i64 @_Z7getNodex(i64 noundef 0)
  %54 = call ptr @_ZNSt6vectorISt4pairIxS0_IxxEESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @AA) #6
  %55 = call ptr @_ZNSt6vectorISt4pairIxS0_IxxEESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @AA) #6
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIxS2_IxxEESt6vectorIS4_SaIS4_EEEESt7greaterIS4_EEvT_SC_T0_(ptr %54, ptr %55)
  %56 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIxS0_IxxEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @AA, i64 noundef 0) #6
  %57 = load i64, ptr %56, align 8, !tbaa !11
  %58 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIxS0_IxxEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @AA, i64 noundef 1) #6
  %59 = load i64, ptr %58, align 8, !tbaa !11
  %.not33 = icmp eq i64 %57, %59
  br i1 %.not33, label %87, label %60

60:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %61 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIxS0_IxxEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @AA, i64 noundef 0) #6
  %62 = getelementptr inbounds i8, ptr %61, i64 8
  %63 = load i64, ptr %62, align 8, !tbaa !14
  store i64 %63, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %64 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIxS0_IxxEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @AA, i64 noundef 0) #6
  %65 = getelementptr inbounds i8, ptr %64, i64 16
  %66 = load i64, ptr %65, align 8, !tbaa !15
  store i64 %66, ptr %10, align 8, !tbaa !5
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @sub_tree, i64 noundef %63) #6
  %68 = load i64, ptr %67, align 8, !tbaa !5
  %69 = load i64, ptr @n, align 8, !tbaa !5
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @sub_tree, i64 noundef %63) #6
  %71 = load i64, ptr %70, align 8, !tbaa !5
  %72 = sub nsw i64 %69, %71
  %73 = icmp eq i64 %68, %72
  br i1 %73, label %74, label %78

74:                                               ; preds = %60
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %76 = load i64, ptr %75, align 8, !tbaa !5
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
  br label %86

78:                                               ; preds = %60
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @sub_tree, i64 noundef %63) #6
  %80 = load i64, ptr %79, align 8, !tbaa !5
  %81 = load i64, ptr @n, align 8, !tbaa !5
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @sub_tree, i64 noundef %63) #6
  %83 = load i64, ptr %82, align 8, !tbaa !5
  %84 = sub nsw i64 %81, %83
  %85 = icmp sgt i64 %80, %84
  %spec.select = select i1 %85, i64 %63, i64 %66
  %spec.select53 = select i1 %85, ptr %10, ptr %9
  br label %86

86:                                               ; preds = %78, %74
  %.031 = phi i64 [ %76, %74 ], [ %spec.select, %78 ]
  %.030.in = phi ptr [ %77, %74 ], [ %spec.select53, %78 ]
  %.030 = load i64, ptr %.030.in, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br label %136

87:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #6
  call void @_ZNSt6vectorIxSaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  %88 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIxS0_IxxEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @AA, i64 noundef 0) #6
  %89 = getelementptr inbounds i8, ptr %88, i64 8
  %90 = load i64, ptr %89, align 8, !tbaa !14
  %91 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIxS0_IxxEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @AA, i64 noundef 1) #6
  %92 = getelementptr inbounds i8, ptr %91, i64 8
  %93 = load i64, ptr %92, align 8, !tbaa !14
  %94 = icmp eq i64 %90, %93
  br i1 %94, label %103, label %95

95:                                               ; preds = %87
  %96 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIxS0_IxxEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @AA, i64 noundef 0) #6
  %97 = getelementptr inbounds i8, ptr %96, i64 8
  %98 = load i64, ptr %97, align 8, !tbaa !14
  %99 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIxS0_IxxEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @AA, i64 noundef 1) #6
  %100 = getelementptr inbounds i8, ptr %99, i64 16
  %101 = load i64, ptr %100, align 8, !tbaa !15
  %102 = icmp eq i64 %98, %101
  %spec.select70 = select i1 %102, i64 8, i64 16
  br label %103

103:                                              ; preds = %95, %87
  %.sink54 = phi i64 [ 8, %87 ], [ %spec.select70, %95 ]
  %104 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIxS0_IxxEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @AA, i64 noundef 0) #6
  %105 = getelementptr inbounds i8, ptr %104, i64 %.sink54
  %.132 = load i64, ptr %105, align 8, !tbaa !5
  %106 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIxS0_IxxEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @AA, i64 noundef 0) #6
  %107 = getelementptr inbounds i8, ptr %106, i64 8
  %108 = load i64, ptr %107, align 8, !tbaa !14
  %.not34 = icmp eq i64 %108, %.132
  %. = select i1 %.not34, i64 16, i64 8
  %109 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIxS0_IxxEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @AA, i64 noundef 0) #6
  %110 = getelementptr inbounds i8, ptr %109, i64 %.
  invoke void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(8) %110)
          to label %.preheader unwind label %.loopexit.split-lp

.preheader:                                       ; preds = %103
  %111 = load i64, ptr @n, align 8, !tbaa !5
  %.not3546 = icmp eq i64 %111, 1
  br i1 %.not3546, label %.critedge, label %.lr.ph48

.lr.ph48:                                         ; preds = %.preheader, %124
  %.02747 = phi i64 [ %125, %124 ], [ 1, %.preheader ]
  %112 = add nsw i64 %.02747, -1
  %113 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIxS0_IxxEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @AA, i64 noundef %112) #6
  %114 = load i64, ptr %113, align 8, !tbaa !11
  %115 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIxS0_IxxEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @AA, i64 noundef %.02747) #6
  %116 = load i64, ptr %115, align 8, !tbaa !11
  %117 = icmp eq i64 %114, %116
  br i1 %117, label %118, label %.critedge

118:                                              ; preds = %.lr.ph48
  %119 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIxS0_IxxEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @AA, i64 noundef %.02747) #6
  %120 = getelementptr inbounds i8, ptr %119, i64 8
  %121 = load i64, ptr %120, align 8, !tbaa !14
  %.not36 = icmp eq i64 %121, %.132
  %122 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIxS0_IxxEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @AA, i64 noundef %.02747) #6
  %.69 = select i1 %.not36, i64 16, i64 8
  %123 = getelementptr inbounds i8, ptr %122, i64 %.69
  invoke void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(8) %123)
          to label %124 unwind label %.loopexit

124:                                              ; preds = %118
  %125 = add nuw nsw i64 %.02747, 1
  %126 = load i64, ptr @n, align 8, !tbaa !5
  %.not35 = icmp eq i64 %125, %126
  br i1 %.not35, label %.critedge, label %.lr.ph48, !llvm.loop !16

.loopexit:                                        ; preds = %118
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %135

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

.critedge:                                        ; preds = %.lr.ph48, %124, %.preheader
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  %127 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  %128 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  %129 = invoke ptr @_ZSt11max_elementIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEEET_S7_S7_(ptr %127, ptr %128)
          to label %130 unwind label %133

130:                                              ; preds = %.critedge
  store ptr %129, ptr %12, align 8
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  %132 = load i64, ptr %131, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #6
  br label %136

133:                                              ; preds = %.critedge
  %134 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  br label %135

135:                                              ; preds = %.loopexit, %.loopexit.split-lp, %133
  %.pn = phi { ptr, i32 } [ %134, %133 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn

136:                                              ; preds = %130, %86
  %.2 = phi i64 [ %.031, %86 ], [ %.132, %130 ]
  %.1 = phi i64 [ %.030, %86 ], [ %132, %130 ]
  %137 = load i64, ptr %1, align 8, !tbaa !5
  %138 = icmp eq i64 %137, 1
  call void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @p) #6
  call void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @Temp_ways) #6
  %139 = load i64, ptr @n, align 8, !tbaa !5
  br i1 %138, label %140, label %142

140:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  store i64 0, ptr %13, align 8, !tbaa !5
  call void @_ZNSt6vectorIxSaIxEE6resizeEmRKx(ptr noundef nonnull align 8 dereferenceable(24) @p, i64 noundef %139, ptr noundef nonnull align 8 dereferenceable(8) %13)
  %141 = load i64, ptr @n, align 8, !tbaa !5
  call void @_ZNSt6vectorIxSaIxEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) @Temp_ways, i64 noundef %141)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  br label %144

142:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  store i64 0, ptr %14, align 8, !tbaa !5
  call void @_ZNSt6vectorIxSaIxEE6resizeEmRKx(ptr noundef nonnull align 8 dereferenceable(24) @p, i64 noundef %139, ptr noundef nonnull align 8 dereferenceable(8) %14)
  %143 = load i64, ptr @n, align 8, !tbaa !5
  call void @_ZNSt6vectorIxSaIxEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) @Temp_ways, i64 noundef %143)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  br label %144

144:                                              ; preds = %142, %140
  %.1.sink68 = phi i64 [ %.1, %142 ], [ %.2, %140 ]
  %145 = call noundef i64 @_Z3dfsx(i64 noundef %.1.sink68)
  %146 = add nsw i64 %.1.sink68, 1
  %147 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %146)
  %148 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %147, ptr noundef nonnull @.str)
  %149 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Temp_ways, i64 noundef %.1.sink68) #6
  %150 = load i64, ptr %149, align 8, !tbaa !5
  %.fr41 = freeze i64 %150
  %151 = srem i64 %.fr41, 1000000007
  %152 = add nsw i64 %151, 1000000007
  %.cmp40 = icmp ugt i64 %151, -1000000008
  %153 = select i1 %.cmp40, i64 %152, i64 %151
  %154 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %148, i64 noundef %153)
  %155 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %154, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  ret i32 0
}

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #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 #5

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

declare i32 @__gxx_personality_v0(...)

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { 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 #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSSt4pairIxS_IxxEE", !6, i64 0, !13, i64 8}
!13 = !{!"_ZTSSt4pairIxxE", !6, i64 0, !6, i64 8}
!14 = !{!12, !6, i64 8}
!15 = !{!12, !6, i64 16}
!16 = distinct !{!16, !10}


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