; LLVM IR from kazunetakahashi/atcoder :: 2019/0921_AGC038 (E)

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

%"class.std::basic_ostream" = type { ptr, %"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_istream" = type { ptr, i64, %"class.std::basic_ios" }
%class.Combination = type { %"class.std::vector", %"class.std::vector", %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Mint<>, std::allocator<Mint<>>>::_Vector_impl" }
%"struct.std::_Vector_base<Mint<>, std::allocator<Mint<>>>::_Vector_impl" = type { %"struct.std::_Vector_base<Mint<>, std::allocator<Mint<>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Mint<>, std::allocator<Mint<>>>::_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::allocator.2" = type { i8 }
%"class.std::allocator" = type { i8 }
%class.Mint = type { i64 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<std::vector<std::map<Mint<>, Mint<>>>, std::allocator<std::vector<std::map<Mint<>, Mint<>>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<std::map<Mint<>, Mint<>>>, std::allocator<std::vector<std::map<Mint<>, Mint<>>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<std::map<Mint<>, Mint<>>>, std::allocator<std::vector<std::map<Mint<>, Mint<>>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<std::map<Mint<>, Mint<>>>, std::allocator<std::vector<std::map<Mint<>, Mint<>>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.7" = type { i8 }
%"struct.std::_Rb_tree_iterator" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %class.Combination, align 8
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::vector.0", align 8
  %7 = alloca %"class.std::allocator.2", align 1
  %8 = alloca %"class.std::vector.0", align 8
  %9 = alloca %"class.std::allocator.2", align 1
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::vector", align 8
  %12 = alloca %"class.std::allocator", align 1
  %13 = alloca %class.Mint, align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %class.Mint, align 8
  %17 = alloca i32, align 4
  %18 = alloca %class.Mint, align 8
  %19 = alloca i64, align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = alloca %"class.std::vector.5", align 8
  %23 = alloca %"class.std::allocator.7", align 1
  %24 = alloca %class.Mint, align 8
  %25 = alloca %class.Mint, align 8
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca ptr, align 8
  %30 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %31 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %32 = alloca ptr, align 8
  %33 = alloca %class.Mint, align 8
  %34 = alloca i32, align 4
  %35 = alloca %class.Mint, align 8
  %36 = alloca %class.Mint, align 8
  %37 = alloca %class.Mint, align 8
  %38 = alloca %class.Mint, align 8
  %39 = alloca %class.Mint, align 8
  %40 = alloca i32, align 4
  %41 = alloca ptr, align 8
  %42 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %43 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %44 = alloca ptr, align 8
  %45 = alloca %class.Mint, align 8
  %46 = alloca %class.Mint, align 8
  %47 = alloca %class.Mint, align 8
  %48 = alloca %class.Mint, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 72, ptr %2) #8
  call void @_ZN11CombinationILx998244353ELx3000010EEC2Ev(ptr noundef nonnull align 8 dereferenceable(72) %2)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  %49 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %50 unwind label %62

50:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #8
  %51 = load i32, ptr %3, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #8
  call void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
  invoke void @_ZNSt6vectorIxSaIxEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %52, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %53 unwind label %66

53:                                               ; preds = %50
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #8
  %54 = load i32, ptr %3, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #8
  call void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #8
  invoke void @_ZNSt6vectorIxSaIxEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %55, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %56 unwind label %70

56:                                               ; preds = %53
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %57

57:                                               ; preds = %85, %56
  %58 = load i32, ptr %10, align 4, !tbaa !5
  %59 = load i32, ptr %3, align 4, !tbaa !5
  %60 = icmp slt i32 %58, %59
  br i1 %60, label %74, label %61

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

62:                                               ; preds = %0
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %4, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %5, align 4
  br label %398

66:                                               ; preds = %50
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %4, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %5, align 4
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #8
  br label %397

70:                                               ; preds = %53
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %4, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %5, align 4
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #8
  br label %396

74:                                               ; preds = %57
  %75 = load i32, ptr %10, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %76) #8
  %78 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %77)
          to label %79 unwind label %88

79:                                               ; preds = %74
  %80 = load i32, ptr %10, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %81) #8
  %83 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %78, ptr noundef nonnull align 8 dereferenceable(8) %82)
          to label %84 unwind label %88

84:                                               ; preds = %79
  br label %85

85:                                               ; preds = %84
  %86 = load i32, ptr %10, align 4, !tbaa !5
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %10, align 4, !tbaa !5
  br label %57, !llvm.loop !9

88:                                               ; preds = %79, %74
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %4, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %395

92:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #8
  %93 = load i32, ptr %3, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #8
  call void @_ZNSaI4MintILx998244353EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #8
  invoke void @_ZNSt6vectorI4MintILx998244353EESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %94, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %95 unwind label %115

95:                                               ; preds = %92
  call void @_ZNSt15__new_allocatorI4MintILx998244353EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %96 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  %97 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %96, ptr %97, align 8
  %98 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  %99 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %98, ptr %99, align 8
  invoke void @_ZN4MintILx998244353EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %16, i64 noundef 0)
          to label %100 unwind label %119

100:                                              ; preds = %95
  %101 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  %102 = load ptr, ptr %101, align 8
  %103 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  %104 = load ptr, ptr %103, align 8
  %105 = getelementptr inbounds %class.Mint, ptr %16, i32 0, i32 0
  %106 = load i64, ptr %105, align 8
  %107 = invoke i64 @_ZSt10accumulateIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEE4MintILx998244353EEET0_T_SA_S9_(ptr %102, ptr %104, i64 %106)
          to label %108 unwind label %119

108:                                              ; preds = %100
  %109 = getelementptr inbounds %class.Mint, ptr %13, i32 0, i32 0
  store i64 %107, ptr %109, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %110

110:                                              ; preds = %134, %108
  %111 = load i32, ptr %17, align 4, !tbaa !5
  %112 = load i32, ptr %3, align 4, !tbaa !5
  %113 = icmp slt i32 %111, %112
  br i1 %113, label %123, label %114

114:                                              ; preds = %110
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %141

115:                                              ; preds = %92
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %4, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %5, align 4
  call void @_ZNSt15__new_allocatorI4MintILx998244353EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #8
  br label %394

119:                                              ; preds = %100, %95
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %4, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %5, align 4
  br label %393

123:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %124 = load i32, ptr %17, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %125) #8
  %127 = load i64, ptr %126, align 8, !tbaa !11
  %128 = invoke i64 @_ZdvILx998244353EE4MintIXT_EExRKS1_(i64 noundef %127, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %129 unwind label %137

129:                                              ; preds = %123
  %130 = getelementptr inbounds %class.Mint, ptr %18, i32 0, i32 0
  store i64 %128, ptr %130, align 8
  %131 = load i32, ptr %17, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4MintILx998244353EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %132) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %133, ptr align 8 %18, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %134

134:                                              ; preds = %129
  %135 = load i32, ptr %17, align 4, !tbaa !5
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr %17, align 4, !tbaa !5
  br label %110, !llvm.loop !14

137:                                              ; preds = %123
  %138 = landingpad { ptr, i32 }
          cleanup
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %4, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %393

141:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %142 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  %143 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  store ptr %142, ptr %143, align 8
  %144 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  %145 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  store ptr %144, ptr %145, align 8
  %146 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  %147 = load ptr, ptr %146, align 8
  %148 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  %149 = load ptr, ptr %148, align 8
  %150 = invoke noundef i64 @_ZSt10accumulateIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEExET0_T_S8_S7_(ptr %147, ptr %149, i64 noundef 1)
          to label %151 unwind label %170

151:                                              ; preds = %141
  store i64 %150, ptr %19, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #8
  %152 = load i32, ptr %3, align 4, !tbaa !5
  %153 = add nsw i32 %152, 1
  %154 = sext i32 %153 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #8
  call void @_ZNSaISt6vectorISt3mapI4MintILx998244353EES2_St4lessIS2_ESaISt4pairIKS2_S2_EEESaIS9_EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #8
  invoke void @_ZNSt6vectorIS_ISt3mapI4MintILx998244353EES2_St4lessIS2_ESaISt4pairIKS2_S2_EEESaIS9_EESaISB_EEC2EmRKSC_(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %154, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %155 unwind label %174

155:                                              ; preds = %151
  call void @_ZNSt15__new_allocatorISt6vectorISt3mapI4MintILx998244353EES3_St4lessIS3_ESaISt4pairIKS3_S3_EEESaISA_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #8
  %156 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt3mapI4MintILx998244353EES2_St4lessIS2_ESaISt4pairIKS2_S2_EEESaIS9_EESaISB_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef 0) #8
  %157 = load i64, ptr %19, align 8, !tbaa !11
  invoke void @_ZNSt6vectorISt3mapI4MintILx998244353EES2_St4lessIS2_ESaISt4pairIKS2_S2_EEESaIS9_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %156, i64 noundef %157)
          to label %158 unwind label %178

158:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  invoke void @_ZN4MintILx998244353EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %24, i64 noundef -1)
          to label %159 unwind label %182

159:                                              ; preds = %158
  %160 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt3mapI4MintILx998244353EES2_St4lessIS2_ESaISt4pairIKS2_S2_EEESaIS9_EESaISB_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef 0) #8
  %161 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3mapI4MintILx998244353EES2_St4lessIS2_ESaISt4pairIKS2_S2_EEESaIS9_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %160, i64 noundef 0) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  invoke void @_ZN4MintILx998244353EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %25, i64 noundef 0)
          to label %162 unwind label %186

162:                                              ; preds = %159
  %163 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapI4MintILx998244353EES1_St4lessIS1_ESaISt4pairIKS1_S1_EEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %161, ptr noundef nonnull align 8 dereferenceable(8) %25)
          to label %164 unwind label %186

164:                                              ; preds = %162
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %163, ptr align 8 %24, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  store i32 0, ptr %26, align 4, !tbaa !5
  br label %165

165:                                              ; preds = %306, %164
  %166 = load i32, ptr %26, align 4, !tbaa !5
  %167 = load i32, ptr %3, align 4, !tbaa !5
  %168 = icmp slt i32 %166, %167
  br i1 %168, label %191, label %169

169:                                              ; preds = %165
  store i32 8, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %310

170:                                              ; preds = %141
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %4, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %5, align 4
  br label %392

174:                                              ; preds = %151
  %175 = landingpad { ptr, i32 }
          cleanup
  %176 = extractvalue { ptr, i32 } %175, 0
  store ptr %176, ptr %4, align 8
  %177 = extractvalue { ptr, i32 } %175, 1
  store i32 %177, ptr %5, align 4
  call void @_ZNSt15__new_allocatorISt6vectorISt3mapI4MintILx998244353EES3_St4lessIS3_ESaISt4pairIKS3_S3_EEESaISA_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #8
  br label %391

178:                                              ; preds = %155
  %179 = landingpad { ptr, i32 }
          cleanup
  %180 = extractvalue { ptr, i32 } %179, 0
  store ptr %180, ptr %4, align 8
  %181 = extractvalue { ptr, i32 } %179, 1
  store i32 %181, ptr %5, align 4
  br label %390

182:                                              ; preds = %158
  %183 = landingpad { ptr, i32 }
          cleanup
  %184 = extractvalue { ptr, i32 } %183, 0
  store ptr %184, ptr %4, align 8
  %185 = extractvalue { ptr, i32 } %183, 1
  store i32 %185, ptr %5, align 4
  br label %190

186:                                              ; preds = %162, %159
  %187 = landingpad { ptr, i32 }
          cleanup
  %188 = extractvalue { ptr, i32 } %187, 0
  store ptr %188, ptr %4, align 8
  %189 = extractvalue { ptr, i32 } %187, 1
  store i32 %189, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  br label %190

190:                                              ; preds = %186, %182
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  br label %390

191:                                              ; preds = %165
  %192 = load i32, ptr %26, align 4, !tbaa !5
  %193 = sext i32 %192 to i64
  %194 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt3mapI4MintILx998244353EES2_St4lessIS2_ESaISt4pairIKS2_S2_EEESaIS9_EESaISB_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %193) #8
  %195 = load i32, ptr %26, align 4, !tbaa !5
  %196 = add nsw i32 %195, 1
  %197 = sext i32 %196 to i64
  %198 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt3mapI4MintILx998244353EES2_St4lessIS2_ESaISt4pairIKS2_S2_EEESaIS9_EESaISB_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %197) #8
  %199 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt3mapI4MintILx998244353EES2_St4lessIS2_ESaISt4pairIKS2_S2_EEESaIS9_EEaSERKSB_(ptr noundef nonnull align 8 dereferenceable(24) %198, ptr noundef nonnull align 8 dereferenceable(24) %194)
          to label %200 unwind label %207

200:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  store i32 0, ptr %28, align 4, !tbaa !5
  br label %201

201:                                              ; preds = %302, %200
  %202 = load i32, ptr %28, align 4, !tbaa !5
  %203 = sext i32 %202 to i64
  %204 = load i64, ptr %19, align 8, !tbaa !11
  %205 = icmp slt i64 %203, %204
  br i1 %205, label %211, label %206

206:                                              ; preds = %201
  store i32 11, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  br label %305

207:                                              ; preds = %191
  %208 = landingpad { ptr, i32 }
          cleanup
  %209 = extractvalue { ptr, i32 } %208, 0
  store ptr %209, ptr %4, align 8
  %210 = extractvalue { ptr, i32 } %208, 1
  store i32 %210, ptr %5, align 4
  br label %309

211:                                              ; preds = %201
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  %212 = load i32, ptr %26, align 4, !tbaa !5
  %213 = sext i32 %212 to i64
  %214 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt3mapI4MintILx998244353EES2_St4lessIS2_ESaISt4pairIKS2_S2_EEESaIS9_EESaISB_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %213) #8
  %215 = load i32, ptr %28, align 4, !tbaa !5
  %216 = sext i32 %215 to i64
  %217 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3mapI4MintILx998244353EES2_St4lessIS2_ESaISt4pairIKS2_S2_EEESaIS9_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %214, i64 noundef %216) #8
  store ptr %217, ptr %29, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  %218 = load ptr, ptr %29, align 8, !tbaa !15
  %219 = call ptr @_ZNSt3mapI4MintILx998244353EES1_St4lessIS1_ESaISt4pairIKS1_S1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %218) #8
  %220 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %30, i32 0, i32 0
  store ptr %219, ptr %220, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %221 = load ptr, ptr %29, align 8, !tbaa !15
  %222 = call ptr @_ZNSt3mapI4MintILx998244353EES1_St4lessIS1_ESaISt4pairIKS1_S1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %221) #8
  %223 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %31, i32 0, i32 0
  store ptr %222, ptr %223, align 8
  br label %224

224:                                              ; preds = %299, %211
  %225 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIK4MintILx998244353EES2_EES7_(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 8 dereferenceable(8) %31) #8
  br i1 %225, label %227, label %226

226:                                              ; preds = %224
  store i32 14, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  br label %301

227:                                              ; preds = %224
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  %228 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIK4MintILx998244353EES2_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %30) #8
  store ptr %228, ptr %32, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #8
  %229 = load ptr, ptr %32, align 8, !tbaa !15
  %230 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EK4MintILx998244353EES1_ERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKS7_(ptr noundef nonnull align 8 dereferenceable(16) %229) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %33, ptr align 8 %230, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #8
  store i32 0, ptr %34, align 4, !tbaa !5
  br label %231

231:                                              ; preds = %286, %227
  %232 = load i32, ptr %34, align 4, !tbaa !5
  %233 = sext i32 %232 to i64
  %234 = load i32, ptr %26, align 4, !tbaa !5
  %235 = sext i32 %234 to i64
  %236 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %235) #8
  %237 = load i64, ptr %236, align 8, !tbaa !11
  %238 = icmp slt i64 %233, %237
  br i1 %238, label %240, label %239

239:                                              ; preds = %231
  store i32 16, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  br label %298

240:                                              ; preds = %231
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #8
  %241 = load i32, ptr %26, align 4, !tbaa !5
  %242 = sext i32 %241 to i64
  %243 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4MintILx998244353EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %242) #8
  %244 = load i32, ptr %34, align 4, !tbaa !5
  %245 = sext i32 %244 to i64
  %246 = invoke i64 @_ZN4MintILx998244353EE5powerEx(ptr noundef nonnull align 8 dereferenceable(8) %243, i64 noundef %245)
          to label %247 unwind label %289

247:                                              ; preds = %240
  %248 = getelementptr inbounds %class.Mint, ptr %37, i32 0, i32 0
  store i64 %246, ptr %248, align 8
  %249 = getelementptr inbounds %class.Combination, ptr %2, i32 0, i32 2
  %250 = load i32, ptr %34, align 4, !tbaa !5
  %251 = sext i32 %250 to i64
  %252 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4MintILx998244353EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %249, i64 noundef %251) #8
  %253 = invoke i64 @_ZNK4MintILx998244353EEmlERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull align 8 dereferenceable(8) %252)
          to label %254 unwind label %289

254:                                              ; preds = %247
  %255 = getelementptr inbounds %class.Mint, ptr %36, i32 0, i32 0
  store i64 %253, ptr %255, align 8
  %256 = load i32, ptr %26, align 4, !tbaa !5
  %257 = sext i32 %256 to i64
  %258 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt3mapI4MintILx998244353EES2_St4lessIS2_ESaISt4pairIKS2_S2_EEESaIS9_EESaISB_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %257) #8
  %259 = load i32, ptr %28, align 4, !tbaa !5
  %260 = sext i32 %259 to i64
  %261 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3mapI4MintILx998244353EES2_St4lessIS2_ESaISt4pairIKS2_S2_EEESaIS9_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %258, i64 noundef %260) #8
  %262 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapI4MintILx998244353EES1_St4lessIS1_ESaISt4pairIKS1_S1_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(48) %261, ptr noundef nonnull align 8 dereferenceable(8) %33)
          to label %263 unwind label %289

263:                                              ; preds = %254
  %264 = invoke i64 @_ZNK4MintILx998244353EEmlERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull align 8 dereferenceable(8) %262)
          to label %265 unwind label %289

265:                                              ; preds = %263
  %266 = getelementptr inbounds %class.Mint, ptr %35, i32 0, i32 0
  store i64 %264, ptr %266, align 8
  %267 = load i32, ptr %26, align 4, !tbaa !5
  %268 = add nsw i32 %267, 1
  %269 = sext i32 %268 to i64
  %270 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt3mapI4MintILx998244353EES2_St4lessIS2_ESaISt4pairIKS2_S2_EEESaIS9_EESaISB_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %269) #8
  %271 = load i32, ptr %28, align 4, !tbaa !5
  %272 = load i32, ptr %34, align 4, !tbaa !5
  %273 = add nsw i32 %271, %272
  %274 = sext i32 %273 to i64
  %275 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3mapI4MintILx998244353EES2_St4lessIS2_ESaISt4pairIKS2_S2_EEESaIS9_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %270, i64 noundef %274) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #8
  %276 = load i32, ptr %26, align 4, !tbaa !5
  %277 = sext i32 %276 to i64
  %278 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4MintILx998244353EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %277) #8
  %279 = invoke i64 @_ZNK4MintILx998244353EEplERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull align 8 dereferenceable(8) %278)
          to label %280 unwind label %293

280:                                              ; preds = %265
  %281 = getelementptr inbounds %class.Mint, ptr %38, i32 0, i32 0
  store i64 %279, ptr %281, align 8
  %282 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapI4MintILx998244353EES1_St4lessIS1_ESaISt4pairIKS1_S1_EEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %275, ptr noundef nonnull align 8 dereferenceable(8) %38)
          to label %283 unwind label %293

283:                                              ; preds = %280
  %284 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintILx998244353EEmIERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %282, ptr noundef nonnull align 8 dereferenceable(8) %35)
          to label %285 unwind label %293

285:                                              ; preds = %283
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #8
  br label %286

286:                                              ; preds = %285
  %287 = load i32, ptr %34, align 4, !tbaa !5
  %288 = add nsw i32 %287, 1
  store i32 %288, ptr %34, align 4, !tbaa !5
  br label %231, !llvm.loop !17

289:                                              ; preds = %263, %254, %247, %240
  %290 = landingpad { ptr, i32 }
          cleanup
  %291 = extractvalue { ptr, i32 } %290, 0
  store ptr %291, ptr %4, align 8
  %292 = extractvalue { ptr, i32 } %290, 1
  store i32 %292, ptr %5, align 4
  br label %297

293:                                              ; preds = %283, %280, %265
  %294 = landingpad { ptr, i32 }
          cleanup
  %295 = extractvalue { ptr, i32 } %294, 0
  store ptr %295, ptr %4, align 8
  %296 = extractvalue { ptr, i32 } %294, 1
  store i32 %296, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #8
  br label %297

297:                                              ; preds = %293, %289
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  br label %309

298:                                              ; preds = %239
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  br label %299

299:                                              ; preds = %298
  %300 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIK4MintILx998244353EES2_EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %30) #8
  br label %224

301:                                              ; preds = %226
  br label %302

302:                                              ; preds = %301
  %303 = load i32, ptr %28, align 4, !tbaa !5
  %304 = add nsw i32 %303, 1
  store i32 %304, ptr %28, align 4, !tbaa !5
  br label %201, !llvm.loop !18

305:                                              ; preds = %206
  br label %306

306:                                              ; preds = %305
  %307 = load i32, ptr %26, align 4, !tbaa !5
  %308 = add nsw i32 %307, 1
  store i32 %308, ptr %26, align 4, !tbaa !5
  br label %165, !llvm.loop !19

309:                                              ; preds = %297, %207
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %390

310:                                              ; preds = %169
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #8
  invoke void @_ZN4MintILx998244353EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %39, i64 noundef 0)
          to label %311 unwind label %318

311:                                              ; preds = %310
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #8
  store i32 0, ptr %40, align 4, !tbaa !5
  br label %312

312:                                              ; preds = %380, %311
  %313 = load i32, ptr %40, align 4, !tbaa !5
  %314 = sext i32 %313 to i64
  %315 = load i64, ptr %19, align 8, !tbaa !11
  %316 = icmp slt i64 %314, %315
  br i1 %316, label %322, label %317

317:                                              ; preds = %312
  store i32 19, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #8
  br label %383

318:                                              ; preds = %385, %383, %310
  %319 = landingpad { ptr, i32 }
          cleanup
  %320 = extractvalue { ptr, i32 } %319, 0
  store ptr %320, ptr %4, align 8
  %321 = extractvalue { ptr, i32 } %319, 1
  store i32 %321, ptr %5, align 4
  br label %389

322:                                              ; preds = %312
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #8
  %323 = load i32, ptr %3, align 4, !tbaa !5
  %324 = sext i32 %323 to i64
  %325 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt3mapI4MintILx998244353EES2_St4lessIS2_ESaISt4pairIKS2_S2_EEESaIS9_EESaISB_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %324) #8
  %326 = load i32, ptr %40, align 4, !tbaa !5
  %327 = sext i32 %326 to i64
  %328 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3mapI4MintILx998244353EES2_St4lessIS2_ESaISt4pairIKS2_S2_EEESaIS9_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %325, i64 noundef %327) #8
  store ptr %328, ptr %41, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #8
  %329 = load ptr, ptr %41, align 8, !tbaa !15
  %330 = call ptr @_ZNSt3mapI4MintILx998244353EES1_St4lessIS1_ESaISt4pairIKS1_S1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %329) #8
  %331 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %42, i32 0, i32 0
  store ptr %330, ptr %331, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #8
  %332 = load ptr, ptr %41, align 8, !tbaa !15
  %333 = call ptr @_ZNSt3mapI4MintILx998244353EES1_St4lessIS1_ESaISt4pairIKS1_S1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %332) #8
  %334 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %43, i32 0, i32 0
  store ptr %333, ptr %334, align 8
  br label %335

335:                                              ; preds = %368, %322
  %336 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIK4MintILx998244353EES2_EES7_(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef nonnull align 8 dereferenceable(8) %43) #8
  br i1 %336, label %338, label %337

337:                                              ; preds = %335
  store i32 22, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #8
  br label %379

338:                                              ; preds = %335
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #8
  %339 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIK4MintILx998244353EES2_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %42) #8
  store ptr %339, ptr %44, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #8
  %340 = load ptr, ptr %44, align 8, !tbaa !15
  %341 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EK4MintILx998244353EES1_ERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKS7_(ptr noundef nonnull align 8 dereferenceable(16) %340) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %45, ptr align 8 %341, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #8
  %342 = load i32, ptr %3, align 4, !tbaa !5
  %343 = sext i32 %342 to i64
  %344 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt3mapI4MintILx998244353EES2_St4lessIS2_ESaISt4pairIKS2_S2_EEESaIS9_EESaISB_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %343) #8
  %345 = load i32, ptr %40, align 4, !tbaa !5
  %346 = sext i32 %345 to i64
  %347 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3mapI4MintILx998244353EES2_St4lessIS2_ESaISt4pairIKS2_S2_EEESaIS9_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %344, i64 noundef %346) #8
  %348 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapI4MintILx998244353EES1_St4lessIS1_ESaISt4pairIKS1_S1_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(48) %347, ptr noundef nonnull align 8 dereferenceable(8) %45)
          to label %349 unwind label %370

349:                                              ; preds = %338
  %350 = getelementptr inbounds %class.Combination, ptr %2, i32 0, i32 1
  %351 = load i32, ptr %40, align 4, !tbaa !5
  %352 = sext i32 %351 to i64
  %353 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4MintILx998244353EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %350, i64 noundef %352) #8
  %354 = invoke i64 @_ZNK4MintILx998244353EEmlERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %348, ptr noundef nonnull align 8 dereferenceable(8) %353)
          to label %355 unwind label %370

355:                                              ; preds = %349
  %356 = getelementptr inbounds %class.Mint, ptr %47, i32 0, i32 0
  store i64 %354, ptr %356, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #8
  %357 = load i32, ptr %40, align 4, !tbaa !5
  %358 = add nsw i32 %357, 1
  %359 = sext i32 %358 to i64
  %360 = invoke i64 @_ZN4MintILx998244353EE5powerEx(ptr noundef nonnull align 8 dereferenceable(8) %45, i64 noundef %359)
          to label %361 unwind label %374

361:                                              ; preds = %355
  %362 = getelementptr inbounds %class.Mint, ptr %48, i32 0, i32 0
  store i64 %360, ptr %362, align 8
  %363 = invoke i64 @_ZNK4MintILx998244353EEdvERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef nonnull align 8 dereferenceable(8) %48)
          to label %364 unwind label %374

364:                                              ; preds = %361
  %365 = getelementptr inbounds %class.Mint, ptr %46, i32 0, i32 0
  store i64 %363, ptr %365, align 8
  %366 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintILx998244353EEpLERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull align 8 dereferenceable(8) %46)
          to label %367 unwind label %374

367:                                              ; preds = %364
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #8
  br label %368

368:                                              ; preds = %367
  %369 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIK4MintILx998244353EES2_EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %42) #8
  br label %335

370:                                              ; preds = %349, %338
  %371 = landingpad { ptr, i32 }
          cleanup
  %372 = extractvalue { ptr, i32 } %371, 0
  store ptr %372, ptr %4, align 8
  %373 = extractvalue { ptr, i32 } %371, 1
  store i32 %373, ptr %5, align 4
  br label %378

374:                                              ; preds = %364, %361, %355
  %375 = landingpad { ptr, i32 }
          cleanup
  %376 = extractvalue { ptr, i32 } %375, 0
  store ptr %376, ptr %4, align 8
  %377 = extractvalue { ptr, i32 } %375, 1
  store i32 %377, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #8
  br label %378

378:                                              ; preds = %374, %370
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #8
  br label %389

379:                                              ; preds = %337
  br label %380

380:                                              ; preds = %379
  %381 = load i32, ptr %40, align 4, !tbaa !5
  %382 = add nsw i32 %381, 1
  store i32 %382, ptr %40, align 4, !tbaa !5
  br label %312, !llvm.loop !20

383:                                              ; preds = %317
  %384 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsILx998244353EERSoS0_RK4MintIXT_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(8) %39)
          to label %385 unwind label %318

385:                                              ; preds = %383
  %386 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %384, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %387 unwind label %318

387:                                              ; preds = %385
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  call void @_ZNSt6vectorIS_ISt3mapI4MintILx998244353EES2_St4lessIS2_ESaISt4pairIKS2_S2_EEESaIS9_EESaISB_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @_ZNSt6vectorI4MintILx998244353EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #8
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #8
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @_ZN11CombinationILx998244353ELx3000010EED2Ev(ptr noundef nonnull align 8 dereferenceable(72) %2) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr %2) #8
  %388 = load i32, ptr %1, align 4
  ret i32 %388

389:                                              ; preds = %378, %318
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  br label %390

390:                                              ; preds = %389, %309, %190, %178
  call void @_ZNSt6vectorIS_ISt3mapI4MintILx998244353EES2_St4lessIS2_ESaISt4pairIKS2_S2_EEESaIS9_EESaISB_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #8
  br label %391

391:                                              ; preds = %390, %174
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #8
  br label %392

392:                                              ; preds = %391, %170
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %393

393:                                              ; preds = %392, %137, %119
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @_ZNSt6vectorI4MintILx998244353EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  br label %394

394:                                              ; preds = %393, %115
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #8
  br label %395

395:                                              ; preds = %394, %88
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  br label %396

396:                                              ; preds = %395, %70
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #8
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  br label %397

397:                                              ; preds = %396, %66
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #8
  br label %398

398:                                              ; preds = %397, %62
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @_ZN11CombinationILx998244353ELx3000010EED2Ev(ptr noundef nonnull align 8 dereferenceable(72) %2) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr %2) #8
  br label %399

399:                                              ; preds = %398
  %400 = load ptr, ptr %4, align 8
  %401 = load i32, ptr %5, align 4
  %402 = insertvalue { ptr, i32 } poison, ptr %400, 0
  %403 = insertvalue { ptr, i32 } %402, i32 %401, 1
  resume { ptr, i32 } %403
}

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i64 @_ZSt10accumulateIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEE4MintILx998244353EEET0_T_SA_S9_(ptr, ptr, i64) #1

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZSt10accumulateIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEExET0_T_S8_S7_(ptr, ptr, i64 noundef) #7

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN11CombinationILx998244353ELx3000010EED2Ev(ptr noundef nonnull align 8 dereferenceable(72)) unnamed_addr #7 align 2

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = !{i64 0, i64 8, !11}
!14 = distinct !{!14, !10}
!15 = !{!16, !16, i64 0}
!16 = !{!"any pointer", !7, i64 0}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !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::basic_ostream" = type { ptr, %"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_istream" = type { ptr, i64, %"class.std::basic_ios" }
%class.Combination = type { %"class.std::vector", %"class.std::vector", %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Mint<>, std::allocator<Mint<>>>::_Vector_impl" }
%"struct.std::_Vector_base<Mint<>, std::allocator<Mint<>>>::_Vector_impl" = type { %"struct.std::_Vector_base<Mint<>, std::allocator<Mint<>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Mint<>, std::allocator<Mint<>>>::_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::allocator.2" = type { i8 }
%"class.std::allocator" = type { i8 }
%class.Mint = type { i64 }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<std::vector<std::map<Mint<>, Mint<>>>, std::allocator<std::vector<std::map<Mint<>, Mint<>>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<std::map<Mint<>, Mint<>>>, std::allocator<std::vector<std::map<Mint<>, Mint<>>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<std::map<Mint<>, Mint<>>>, std::allocator<std::vector<std::map<Mint<>, Mint<>>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<std::map<Mint<>, Mint<>>>, std::allocator<std::vector<std::map<Mint<>, Mint<>>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.7" = type { i8 }
%"struct.std::_Rb_tree_iterator" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca %class.Combination, align 8
  %2 = alloca i32, align 4
  %3 = alloca %"class.std::vector.0", align 8
  %4 = alloca %"class.std::allocator.2", align 1
  %5 = alloca %"class.std::vector.0", align 8
  %6 = alloca %"class.std::allocator.2", align 1
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca %"class.std::allocator", align 1
  %9 = alloca %class.Mint, align 8
  %10 = alloca %class.Mint, align 8
  %11 = alloca %"class.std::vector.5", align 8
  %12 = alloca %"class.std::allocator.7", align 1
  %13 = alloca %class.Mint, align 8
  %14 = alloca %class.Mint, align 8
  %15 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %16 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %17 = alloca %class.Mint, align 8
  %18 = alloca %class.Mint, align 8
  %19 = alloca %class.Mint, align 8
  %20 = alloca %class.Mint, align 8
  %21 = alloca %class.Mint, align 8
  %22 = alloca %class.Mint, align 8
  %23 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %24 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %25 = alloca %class.Mint, align 8
  %26 = alloca %class.Mint, align 8
  %27 = alloca %class.Mint, align 8
  %28 = alloca %class.Mint, align 8
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %1) #7
  call void @_ZN11CombinationILx998244353ELx3000010EEC2Ev(ptr noundef nonnull align 8 dereferenceable(72) %1)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  %29 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %30 unwind label %39

30:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #7
  %31 = load i32, ptr %2, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #7
  call void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
  invoke void @_ZNSt6vectorIxSaIxEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %32, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %33 unwind label %41

33:                                               ; preds = %30
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #7
  %34 = load i32, ptr %2, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #7
  call void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
  invoke void @_ZNSt6vectorIxSaIxEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %35, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %36 unwind label %43

36:                                               ; preds = %33
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #7
  %37 = load i32, ptr %2, align 4, !tbaa !5
  %38 = icmp sgt i32 %37, 0
  br i1 %38, label %.lr.ph, label %.._crit_edge_crit_edge

.._crit_edge_crit_edge:                           ; preds = %36
  %.pre = sext i32 %37 to i64
  br label %._crit_edge

._crit_edge:                                      ; preds = %50, %.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre, %.._crit_edge_crit_edge ], [ %52, %50 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #7
  call void @_ZNSaI4MintILx998244353EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #7
  invoke void @_ZNSt6vectorI4MintILx998244353EESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.pre-phi, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %56 unwind label %70

39:                                               ; preds = %0
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %206

41:                                               ; preds = %30
  %42 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #7
  br label %205

43:                                               ; preds = %33
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #7
  br label %204

.lr.ph:                                           ; preds = %36, %50
  %indvars.iv = phi i64 [ %indvars.iv.next, %50 ], [ 0, %36 ]
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv) #7
  %46 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %45)
          to label %47 unwind label %54

47:                                               ; preds = %.lr.ph
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv) #7
  %49 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %46, ptr noundef nonnull align 8 dereferenceable(8) %48)
          to label %50 unwind label %54

50:                                               ; preds = %47
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %51 = load i32, ptr %2, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = icmp slt i64 %indvars.iv.next, %52
  br i1 %53, label %.lr.ph, label %._crit_edge, !llvm.loop !9

54:                                               ; preds = %47, %.lr.ph
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %203

56:                                               ; preds = %._crit_edge
  call void @_ZNSt15__new_allocatorI4MintILx998244353EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %57 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  %58 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @_ZN4MintILx998244353EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %10, i64 noundef 0)
  %59 = load i64, ptr %10, align 8
  %60 = invoke i64 @_ZSt10accumulateIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEE4MintILx998244353EEET0_T_SA_S9_(ptr %57, ptr %58, i64 %59)
          to label %61 unwind label %72

61:                                               ; preds = %56
  store i64 %60, ptr %9, align 8
  %62 = load i32, ptr %2, align 4, !tbaa !5
  %63 = icmp sgt i32 %62, 0
  br i1 %63, label %.lr.ph89, label %._crit_edge90

._crit_edge90:                                    ; preds = %77, %61
  %64 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  %65 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  %66 = call noundef i64 @_ZSt10accumulateIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEExET0_T_S8_S7_(ptr %64, ptr %65, i64 noundef 1)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #7
  %67 = load i32, ptr %2, align 4, !tbaa !5
  %68 = add nsw i32 %67, 1
  %69 = sext i32 %68 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #7
  call void @_ZNSaISt6vectorISt3mapI4MintILx998244353EES2_St4lessIS2_ESaISt4pairIKS2_S2_EEESaIS9_EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #7
  invoke void @_ZNSt6vectorIS_ISt3mapI4MintILx998244353EES2_St4lessIS2_ESaISt4pairIKS2_S2_EEESaIS9_EESaISB_EEC2EmRKSC_(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %69, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %84 unwind label %145

70:                                               ; preds = %._crit_edge
  %71 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorI4MintILx998244353EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #7
  br label %202

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

.lr.ph89:                                         ; preds = %61, %77
  %indvars.iv120 = phi i64 [ %indvars.iv.next121, %77 ], [ 0, %61 ]
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv120) #7
  %75 = load i64, ptr %74, align 8, !tbaa !11
  %76 = invoke i64 @_ZdvILx998244353EE4MintIXT_EExRKS1_(i64 noundef %75, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %77 unwind label %82

77:                                               ; preds = %.lr.ph89
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4MintILx998244353EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv120) #7
  store i64 %76, ptr %78, align 8, !tbaa !11
  %indvars.iv.next121 = add nuw nsw i64 %indvars.iv120, 1
  %79 = load i32, ptr %2, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = icmp slt i64 %indvars.iv.next121, %80
  br i1 %81, label %.lr.ph89, label %._crit_edge90, !llvm.loop !13

82:                                               ; preds = %.lr.ph89
  %83 = landingpad { ptr, i32 }
          cleanup
  br label %201

84:                                               ; preds = %._crit_edge90
  call void @_ZNSt15__new_allocatorISt6vectorISt3mapI4MintILx998244353EES3_St4lessIS3_ESaISt4pairIKS3_S3_EEESaISA_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #7
  %85 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt3mapI4MintILx998244353EES2_St4lessIS2_ESaISt4pairIKS2_S2_EEESaIS9_EESaISB_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 0) #7
  invoke void @_ZNSt6vectorISt3mapI4MintILx998244353EES2_St4lessIS2_ESaISt4pairIKS2_S2_EEESaIS9_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %85, i64 noundef %66)
          to label %86 unwind label %147

86:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  call void @_ZN4MintILx998244353EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %13, i64 noundef -1)
  %87 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt3mapI4MintILx998244353EES2_St4lessIS2_ESaISt4pairIKS2_S2_EEESaIS9_EESaISB_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 0) #7
  %88 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3mapI4MintILx998244353EES2_St4lessIS2_ESaISt4pairIKS2_S2_EEESaIS9_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef 0) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  call void @_ZN4MintILx998244353EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %14, i64 noundef 0)
  %89 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapI4MintILx998244353EES1_St4lessIS1_ESaISt4pairIKS1_S1_EEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %88, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %90 unwind label %149

90:                                               ; preds = %86
  %91 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %91, ptr %89, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  %92 = load i32, ptr %2, align 4, !tbaa !5
  %93 = icmp sgt i32 %92, 0
  br i1 %93, label %.lr.ph102, label %._crit_edge103

.lr.ph102:                                        ; preds = %90
  %94 = icmp sgt i64 %66, 0
  %95 = getelementptr inbounds i8, ptr %1, i64 48
  br i1 %94, label %.lr.ph102.split.us, label %.lr.ph102.split

.lr.ph102.split.us:                               ; preds = %.lr.ph102, %..loopexit_crit_edge.us
  %indvars.iv132 = phi i64 [ %indvars.iv.next133, %..loopexit_crit_edge.us ], [ 0, %.lr.ph102 ]
  %96 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt3mapI4MintILx998244353EES2_St4lessIS2_ESaISt4pairIKS2_S2_EEESaIS9_EESaISB_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv132) #7
  %indvars.iv.next133 = add nuw nsw i64 %indvars.iv132, 1
  %97 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt3mapI4MintILx998244353EES2_St4lessIS2_ESaISt4pairIKS2_S2_EEESaIS9_EESaISB_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv.next133) #7
  %98 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt3mapI4MintILx998244353EES2_St4lessIS2_ESaISt4pairIKS2_S2_EEESaIS9_EEaSERKSB_(ptr noundef nonnull align 8 dereferenceable(24) %97, ptr noundef nonnull align 8 dereferenceable(24) %96)
          to label %.preheader.us unwind label %.split.us

.preheader.us:                                    ; preds = %.lr.ph102.split.us, %._crit_edge97.us
  %indvars.iv129 = phi i64 [ %indvars.iv.next130, %._crit_edge97.us ], [ 0, %.lr.ph102.split.us ]
  %99 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt3mapI4MintILx998244353EES2_St4lessIS2_ESaISt4pairIKS2_S2_EEESaIS9_EESaISB_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv132) #7
  %100 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3mapI4MintILx998244353EES2_St4lessIS2_ESaISt4pairIKS2_S2_EEESaIS9_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %99, i64 noundef %indvars.iv129) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  %101 = call ptr @_ZNSt3mapI4MintILx998244353EES1_St4lessIS1_ESaISt4pairIKS1_S1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %100) #7
  store ptr %101, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #7
  %102 = call ptr @_ZNSt3mapI4MintILx998244353EES1_St4lessIS1_ESaISt4pairIKS1_S1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %100) #7
  store ptr %102, ptr %16, align 8
  %103 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIK4MintILx998244353EES2_EES7_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  br i1 %103, label %.lr.ph96.us, label %._crit_edge97.us

._crit_edge97.us:                                 ; preds = %._crit_edge94.us, %.preheader.us
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  %indvars.iv.next130 = add nuw nsw i64 %indvars.iv129, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next130, %66
  br i1 %exitcond.not, label %..loopexit_crit_edge.us, label %.preheader.us, !llvm.loop !14

.lr.ph96.us:                                      ; preds = %.preheader.us, %._crit_edge94.us
  %104 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIK4MintILx998244353EES2_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #7
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EK4MintILx998244353EES1_ERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKS7_(ptr noundef nonnull align 8 dereferenceable(16) %104) #7
  %106 = load i64, ptr %105, align 8, !tbaa !11
  store i64 %106, ptr %17, align 8, !tbaa !11
  %107 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv132) #7
  %108 = load i64, ptr %107, align 8, !tbaa !11
  %109 = icmp sgt i64 %108, 0
  br i1 %109, label %.lr.ph93.us, label %._crit_edge94.us

._crit_edge94.us:                                 ; preds = %133, %.lr.ph96.us
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  %110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIK4MintILx998244353EES2_EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  %111 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIK4MintILx998244353EES2_EES7_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  br i1 %111, label %.lr.ph96.us, label %._crit_edge97.us

.lr.ph93.us:                                      ; preds = %.lr.ph96.us, %133
  %indvars.iv126 = phi i64 [ %indvars.iv.next127, %133 ], [ 0, %.lr.ph96.us ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #7
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4MintILx998244353EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv132) #7
  %113 = invoke i64 @_ZN4MintILx998244353EE5powerEx(ptr noundef nonnull align 8 dereferenceable(8) %112, i64 noundef %indvars.iv126)
          to label %114 unwind label %.split105.us

114:                                              ; preds = %.lr.ph93.us
  store i64 %113, ptr %20, align 8
  %115 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4MintILx998244353EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %95, i64 noundef %indvars.iv126) #7
  %116 = invoke i64 @_ZNK4MintILx998244353EEmlERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %115)
          to label %117 unwind label %.split105.us

117:                                              ; preds = %114
  store i64 %116, ptr %19, align 8
  %118 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt3mapI4MintILx998244353EES2_St4lessIS2_ESaISt4pairIKS2_S2_EEESaIS9_EESaISB_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv132) #7
  %119 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3mapI4MintILx998244353EES2_St4lessIS2_ESaISt4pairIKS2_S2_EEESaIS9_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %118, i64 noundef %indvars.iv129) #7
  %120 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapI4MintILx998244353EES1_St4lessIS1_ESaISt4pairIKS1_S1_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(48) %119, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %121 unwind label %.split105.us

121:                                              ; preds = %117
  %122 = invoke i64 @_ZNK4MintILx998244353EEmlERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %120)
          to label %123 unwind label %.split105.us

123:                                              ; preds = %121
  store i64 %122, ptr %18, align 8
  %124 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt3mapI4MintILx998244353EES2_St4lessIS2_ESaISt4pairIKS2_S2_EEESaIS9_EESaISB_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv.next133) #7
  %125 = add nuw nsw i64 %indvars.iv126, %indvars.iv129
  %126 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3mapI4MintILx998244353EES2_St4lessIS2_ESaISt4pairIKS2_S2_EEESaIS9_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %124, i64 noundef %125) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #7
  %127 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4MintILx998244353EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv132) #7
  %128 = invoke i64 @_ZNK4MintILx998244353EEplERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %127)
          to label %129 unwind label %.split108.us

129:                                              ; preds = %123
  store i64 %128, ptr %21, align 8
  %130 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapI4MintILx998244353EES1_St4lessIS1_ESaISt4pairIKS1_S1_EEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %126, ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %131 unwind label %.split108.us

131:                                              ; preds = %129
  %132 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintILx998244353EEmIERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %130, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %133 unwind label %.split108.us

133:                                              ; preds = %131
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #7
  %indvars.iv.next127 = add nuw nsw i64 %indvars.iv126, 1
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv132) #7
  %135 = load i64, ptr %134, align 8, !tbaa !11
  %136 = icmp sgt i64 %135, %indvars.iv.next127
  br i1 %136, label %.lr.ph93.us, label %._crit_edge94.us, !llvm.loop !15

..loopexit_crit_edge.us:                          ; preds = %._crit_edge97.us
  %137 = load i32, ptr %2, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = icmp slt i64 %indvars.iv.next133, %138
  br i1 %139, label %.lr.ph102.split.us, label %._crit_edge103, !llvm.loop !16

.split.us:                                        ; preds = %.lr.ph102.split.us
  %140 = landingpad { ptr, i32 }
          cleanup
  br label %199

.split105.us:                                     ; preds = %121, %117, %114, %.lr.ph93.us
  %141 = landingpad { ptr, i32 }
          cleanup
  br label %158

.split108.us:                                     ; preds = %131, %129, %123
  %142 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #7
  br label %158

._crit_edge103:                                   ; preds = %.preheader, %..loopexit_crit_edge.us, %90
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #7
  call void @_ZN4MintILx998244353EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %22, i64 noundef 0)
  %143 = icmp sgt i64 %66, 0
  br i1 %143, label %.lr.ph115, label %._crit_edge116

.lr.ph115:                                        ; preds = %._crit_edge103
  %144 = getelementptr inbounds i8, ptr %1, i64 24
  br label %162

145:                                              ; preds = %._crit_edge90
  %146 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt6vectorISt3mapI4MintILx998244353EES3_St4lessIS3_ESaISt4pairIKS3_S3_EEESaISA_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #7
  br label %200

147:                                              ; preds = %84
  %148 = landingpad { ptr, i32 }
          cleanup
  br label %199

149:                                              ; preds = %86
  %150 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  br label %199

.lr.ph102.split:                                  ; preds = %.lr.ph102, %.preheader
  %indvars.iv123 = phi i64 [ %indvars.iv.next124, %.preheader ], [ 0, %.lr.ph102 ]
  %151 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt3mapI4MintILx998244353EES2_St4lessIS2_ESaISt4pairIKS2_S2_EEESaIS9_EESaISB_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv123) #7
  %indvars.iv.next124 = add nuw nsw i64 %indvars.iv123, 1
  %152 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt3mapI4MintILx998244353EES2_St4lessIS2_ESaISt4pairIKS2_S2_EEESaIS9_EESaISB_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv.next124) #7
  %153 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt3mapI4MintILx998244353EES2_St4lessIS2_ESaISt4pairIKS2_S2_EEESaIS9_EEaSERKSB_(ptr noundef nonnull align 8 dereferenceable(24) %152, ptr noundef nonnull align 8 dereferenceable(24) %151)
          to label %.preheader unwind label %.split

.preheader:                                       ; preds = %.lr.ph102.split
  %154 = load i32, ptr %2, align 4, !tbaa !5
  %155 = sext i32 %154 to i64
  %156 = icmp slt i64 %indvars.iv.next124, %155
  br i1 %156, label %.lr.ph102.split, label %._crit_edge103, !llvm.loop !16

.split:                                           ; preds = %.lr.ph102.split
  %157 = landingpad { ptr, i32 }
          cleanup
  br label %199

158:                                              ; preds = %.split108.us, %.split105.us
  %.pn72 = phi { ptr, i32 } [ %142, %.split108.us ], [ %141, %.split105.us ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  br label %199

._crit_edge116:                                   ; preds = %._crit_edge112, %._crit_edge103
  %159 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsILx998244353EERSoS0_RK4MintIXT_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %195 unwind label %160

160:                                              ; preds = %195, %._crit_edge116
  %161 = landingpad { ptr, i32 }
          cleanup
  br label %198

162:                                              ; preds = %.lr.ph115, %._crit_edge112
  %indvars.iv135 = phi i64 [ 0, %.lr.ph115 ], [ %170, %._crit_edge112 ]
  %163 = load i32, ptr %2, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt3mapI4MintILx998244353EES2_St4lessIS2_ESaISt4pairIKS2_S2_EEESaIS9_EESaISB_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %164) #7
  %166 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3mapI4MintILx998244353EES2_St4lessIS2_ESaISt4pairIKS2_S2_EEESaIS9_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %165, i64 noundef %indvars.iv135) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #7
  %167 = call ptr @_ZNSt3mapI4MintILx998244353EES1_St4lessIS1_ESaISt4pairIKS1_S1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %166) #7
  store ptr %167, ptr %23, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #7
  %168 = call ptr @_ZNSt3mapI4MintILx998244353EES1_St4lessIS1_ESaISt4pairIKS1_S1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %166) #7
  store ptr %168, ptr %24, align 8
  %169 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIK4MintILx998244353EES2_EES7_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #7
  %170 = add nuw nsw i64 %indvars.iv135, 1
  br i1 %169, label %.lr.ph111, label %._crit_edge112

._crit_edge112:                                   ; preds = %186, %162
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #7
  %exitcond138.not = icmp eq i64 %170, %66
  br i1 %exitcond138.not, label %._crit_edge116, label %162, !llvm.loop !17

.lr.ph111:                                        ; preds = %162, %186
  %171 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIK4MintILx998244353EES2_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #7
  %172 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EK4MintILx998244353EES1_ERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKS7_(ptr noundef nonnull align 8 dereferenceable(16) %171) #7
  %173 = load i64, ptr %172, align 8, !tbaa !11
  store i64 %173, ptr %25, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %27) #7
  %174 = load i32, ptr %2, align 4, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt3mapI4MintILx998244353EES2_St4lessIS2_ESaISt4pairIKS2_S2_EEESaIS9_EESaISB_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %175) #7
  %177 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3mapI4MintILx998244353EES2_St4lessIS2_ESaISt4pairIKS2_S2_EEESaIS9_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %176, i64 noundef %indvars.iv135) #7
  %178 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapI4MintILx998244353EES1_St4lessIS1_ESaISt4pairIKS1_S1_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(48) %177, ptr noundef nonnull align 8 dereferenceable(8) %25)
          to label %179 unwind label %190

179:                                              ; preds = %.lr.ph111
  %180 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4MintILx998244353EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %144, i64 noundef %indvars.iv135) #7
  %181 = invoke i64 @_ZNK4MintILx998244353EEmlERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %178, ptr noundef nonnull align 8 dereferenceable(8) %180)
          to label %182 unwind label %190

182:                                              ; preds = %179
  store i64 %181, ptr %27, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %28) #7
  %183 = invoke i64 @_ZN4MintILx998244353EE5powerEx(ptr noundef nonnull align 8 dereferenceable(8) %25, i64 noundef %170)
          to label %184 unwind label %192

184:                                              ; preds = %182
  store i64 %183, ptr %28, align 8
  %185 = invoke i64 @_ZNK4MintILx998244353EEdvERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %28)
          to label %186 unwind label %192

186:                                              ; preds = %184
  store i64 %185, ptr %26, align 8
  %187 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintILx998244353EEpLERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %26)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #7
  %188 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIK4MintILx998244353EES2_EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #7
  %189 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIK4MintILx998244353EES2_EES7_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #7
  br i1 %189, label %.lr.ph111, label %._crit_edge112

190:                                              ; preds = %179, %.lr.ph111
  %191 = landingpad { ptr, i32 }
          cleanup
  br label %194

192:                                              ; preds = %184, %182
  %193 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #7
  br label %194

194:                                              ; preds = %192, %190
  %.pn = phi { ptr, i32 } [ %193, %192 ], [ %191, %190 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #7
  br label %198

195:                                              ; preds = %._crit_edge116
  %196 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %159, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %197 unwind label %160

197:                                              ; preds = %195
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #7
  call void @_ZNSt6vectorIS_ISt3mapI4MintILx998244353EES2_St4lessIS2_ESaISt4pairIKS2_S2_EEESaIS9_EESaISB_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @_ZNSt6vectorI4MintILx998244353EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @_ZN11CombinationILx998244353ELx3000010EED2Ev(ptr noundef nonnull align 8 dereferenceable(72) %1) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %1) #7
  ret i32 0

198:                                              ; preds = %194, %160
  %.pn.pn = phi { ptr, i32 } [ %.pn, %194 ], [ %161, %160 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #7
  br label %199

199:                                              ; preds = %.split, %.split.us, %158, %198, %149, %147
  %.pn72.pn.pn = phi { ptr, i32 } [ %.pn.pn, %198 ], [ %150, %149 ], [ %148, %147 ], [ %.pn72, %158 ], [ %157, %.split ], [ %140, %.split.us ]
  call void @_ZNSt6vectorIS_ISt3mapI4MintILx998244353EES2_St4lessIS2_ESaISt4pairIKS2_S2_EEESaIS9_EESaISB_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  br label %200

200:                                              ; preds = %199, %145
  %.pn72.pn.pn.pn = phi { ptr, i32 } [ %.pn72.pn.pn, %199 ], [ %146, %145 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  br label %201

201:                                              ; preds = %200, %82, %72
  %.pn77 = phi { ptr, i32 } [ %83, %82 ], [ %.pn72.pn.pn.pn, %200 ], [ %73, %72 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @_ZNSt6vectorI4MintILx998244353EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  br label %202

202:                                              ; preds = %201, %70
  %.pn77.pn = phi { ptr, i32 } [ %.pn77, %201 ], [ %71, %70 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  br label %203

203:                                              ; preds = %202, %54
  %.pn80 = phi { ptr, i32 } [ %55, %54 ], [ %.pn77.pn, %202 ]
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  br label %204

204:                                              ; preds = %203, %43
  %.pn80.pn = phi { ptr, i32 } [ %.pn80, %203 ], [ %44, %43 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  br label %205

205:                                              ; preds = %204, %41
  %.pn80.pn.pn = phi { ptr, i32 } [ %.pn80.pn, %204 ], [ %42, %41 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  br label %206

206:                                              ; preds = %205, %39
  %.pn80.pn.pn.pn = phi { ptr, i32 } [ %.pn80.pn.pn, %205 ], [ %40, %39 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @_ZN11CombinationILx998244353ELx3000010EED2Ev(ptr noundef nonnull align 8 dereferenceable(72) %1) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn80.pn.pn.pn
}

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

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

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 #4

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress 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 #0 align 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 #5 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i64 @_ZSt10accumulateIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEE4MintILx998244353EEET0_T_SA_S9_(ptr, ptr, i64) local_unnamed_addr #1

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIK4MintILx998244353EES2_EES7_(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 noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIK4MintILx998244353EES2_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN11CombinationILx998244353ELx3000010EED2Ev(ptr noundef nonnull align 8 dereferenceable(72)) unnamed_addr #6 align 2

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

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

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

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

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


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