; LLVM IR from kazunetakahashi/atcoder :: 2019/0602_AGC034 (F)

; 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.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<Mint<>>, std::allocator<std::vector<Mint<>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<Mint<>>, std::allocator<std::vector<Mint<>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<Mint<>>, std::allocator<std::vector<Mint<>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<Mint<>>, std::allocator<std::vector<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<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::allocator.2" = type { i8 }
%class.Mint = type { i64 }
%"class.__gnu_cxx::__normal_iterator.5" = type { ptr }
%"class.std::vector.6" = type { %"struct.std::_Vector_base.7" }
%"struct.std::_Vector_base.7" = type { %"struct.std::_Vector_base<std::vector<std::vector<Mint<>>>, std::allocator<std::vector<std::vector<Mint<>>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<std::vector<Mint<>>>, std::allocator<std::vector<std::vector<Mint<>>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<std::vector<Mint<>>>, std::allocator<std::vector<std::vector<Mint<>>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<std::vector<Mint<>>>, std::allocator<std::vector<std::vector<Mint<>>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.8" = type { i8 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.8 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [3 x i8], align 1

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaI4MintILx998244353EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 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 #1 align 2

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

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

; 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) #3 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) #4

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

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

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

47:                                               ; preds = %55, %0
  %48 = load i32, ptr %4, align 4, !tbaa !5
  %49 = load i32, ptr %2, align 4, !tbaa !5
  %50 = icmp slt i32 %48, %49
  br i1 %50, label %52, label %51

51:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  br label %58

52:                                               ; preds = %47
  %53 = load i32, ptr %3, align 4, !tbaa !5
  %54 = mul nsw i32 %53, 2
  store i32 %54, ptr %3, align 4, !tbaa !5
  br label %55

55:                                               ; preds = %52
  %56 = load i32, ptr %4, align 4, !tbaa !5
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %4, align 4, !tbaa !5
  br label %47, !llvm.loop !9

58:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #8
  %59 = load i32, ptr %3, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #8
  call void @_ZNSaI4MintILx998244353EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #8
  invoke void @_ZNSt6vectorI4MintILx998244353EESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %60, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %61 unwind label %67

61:                                               ; preds = %58
  call void @_ZNSt15__new_allocatorI4MintILx998244353EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %62

62:                                               ; preds = %77, %61
  %63 = load i32, ptr %9, align 4, !tbaa !5
  %64 = load i32, ptr %3, align 4, !tbaa !5
  %65 = icmp slt i32 %63, %64
  br i1 %65, label %71, label %66

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

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

71:                                               ; preds = %62
  %72 = load i32, ptr %9, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4MintILx998244353EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %73) #8
  %75 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZrsILx998244353EERSiS0_R4MintIXT_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %74)
          to label %76 unwind label %80

76:                                               ; preds = %71
  br label %77

77:                                               ; preds = %76
  %78 = load i32, ptr %9, align 4, !tbaa !5
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %9, align 4, !tbaa !5
  br label %62, !llvm.loop !11

80:                                               ; preds = %71
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %7, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %437

84:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %85 = call ptr @_ZNSt6vectorI4MintILx998244353EESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  %86 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %11, i32 0, i32 0
  store ptr %85, ptr %86, align 8
  %87 = call ptr @_ZNSt6vectorI4MintILx998244353EESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  %88 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %12, i32 0, i32 0
  store ptr %87, ptr %88, align 8
  invoke void @_ZN4MintILx998244353EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %13, i64 noundef 0)
          to label %89 unwind label %107

89:                                               ; preds = %84
  %90 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %11, i32 0, i32 0
  %91 = load ptr, ptr %90, align 8
  %92 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %12, i32 0, i32 0
  %93 = load ptr, ptr %92, align 8
  %94 = getelementptr inbounds %class.Mint, ptr %13, i32 0, i32 0
  %95 = load i64, ptr %94, align 8
  %96 = invoke i64 @_ZSt10accumulateIN9__gnu_cxx17__normal_iteratorIP4MintILx998244353EESt6vectorIS3_SaIS3_EEEES3_ET0_T_SA_S9_(ptr %91, ptr %93, i64 %95)
          to label %97 unwind label %107

97:                                               ; preds = %89
  %98 = getelementptr inbounds %class.Mint, ptr %10, i32 0, i32 0
  store i64 %96, ptr %98, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #8
  %99 = load i32, ptr %3, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #8
  call void @_ZNSaI4MintILx998244353EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #8
  invoke void @_ZNSt6vectorI4MintILx998244353EESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %100, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %101 unwind label %111

101:                                              ; preds = %97
  call void @_ZNSt15__new_allocatorI4MintILx998244353EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %102

102:                                              ; preds = %125, %101
  %103 = load i32, ptr %16, align 4, !tbaa !5
  %104 = load i32, ptr %3, align 4, !tbaa !5
  %105 = icmp slt i32 %103, %104
  br i1 %105, label %115, label %106

106:                                              ; preds = %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %132

107:                                              ; preds = %89, %84
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %7, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %8, align 4
  br label %436

111:                                              ; preds = %97
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %7, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %8, align 4
  call void @_ZNSt15__new_allocatorI4MintILx998244353EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #8
  br label %435

115:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %116 = load i32, ptr %16, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4MintILx998244353EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %117) #8
  %119 = invoke i64 @_ZNK4MintILx998244353EEdvERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %118, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %120 unwind label %128

120:                                              ; preds = %115
  %121 = getelementptr inbounds %class.Mint, ptr %17, i32 0, i32 0
  store i64 %119, ptr %121, align 8
  %122 = load i32, ptr %16, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4MintILx998244353EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %123) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %124, ptr align 8 %17, i64 8, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %125

125:                                              ; preds = %120
  %126 = load i32, ptr %16, align 4, !tbaa !5
  %127 = add nsw i32 %126, 1
  store i32 %127, ptr %16, align 4, !tbaa !5
  br label %102, !llvm.loop !15

128:                                              ; preds = %115
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %7, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %434

132:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #8
  %133 = load i32, ptr %3, align 4, !tbaa !5
  %134 = sext i32 %133 to i64
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  invoke void @_ZN4MintILx998244353EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %19, i64 noundef -1)
          to label %135 unwind label %180

135:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #8
  call void @_ZNSaI4MintILx998244353EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #8
  invoke void @_ZNSt6vectorI4MintILx998244353EESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %134, ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %136 unwind label %184

136:                                              ; preds = %135
  call void @_ZNSt15__new_allocatorI4MintILx998244353EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %137 = load i32, ptr %3, align 4, !tbaa !5
  %138 = sub nsw i32 %137, 1
  %139 = sext i32 %138 to i64
  invoke void @_ZN4MintILx998244353EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %21, i64 noundef %139)
          to label %140 unwind label %189

140:                                              ; preds = %136
  %141 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4MintILx998244353EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef 0) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %141, ptr align 8 %21, i64 8, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #8
  %142 = load i32, ptr %2, align 4, !tbaa !5
  %143 = add nsw i32 %142, 1
  %144 = sext i32 %143 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #8
  call void @_ZNSaISt6vectorIS_I4MintILx998244353EESaIS1_EESaIS3_EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #8
  invoke void @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EEC2EmRKS6_(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %144, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %145 unwind label %193

145:                                              ; preds = %140
  call void @_ZNSt15__new_allocatorISt6vectorIS0_I4MintILx998244353EESaIS2_EESaIS4_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #8
  %146 = load i32, ptr %2, align 4, !tbaa !5
  %147 = add nsw i32 %146, 1
  %148 = sext i32 %147 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #8
  call void @_ZNSaISt6vectorIS_I4MintILx998244353EESaIS1_EESaIS3_EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #8
  invoke void @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EEC2EmRKS6_(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %148, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %149 unwind label %197

149:                                              ; preds = %145
  call void @_ZNSt15__new_allocatorISt6vectorIS0_I4MintILx998244353EESaIS2_EESaIS4_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %26) #8
  %150 = load i32, ptr %2, align 4, !tbaa !5
  %151 = add nsw i32 %150, 1
  %152 = sext i32 %151 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #8
  call void @_ZNSaISt6vectorIS_I4MintILx998244353EESaIS1_EESaIS3_EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #8
  invoke void @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EEC2EmRKS6_(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %152, ptr noundef nonnull align 1 dereferenceable(1) %27)
          to label %153 unwind label %201

153:                                              ; preds = %149
  call void @_ZNSt15__new_allocatorISt6vectorIS0_I4MintILx998244353EESaIS2_EESaIS4_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #8
  %154 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef 0) #8
  invoke void @_ZNSt6vectorIS_I4MintILx998244353EESaIS1_EESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %154, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %155 unwind label %205

155:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  invoke void @_ZN4MintILx998244353EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %28, i64 noundef 1)
          to label %156 unwind label %209

156:                                              ; preds = %155
  %157 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef 0) #8
  %158 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I4MintILx998244353EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %157, i64 noundef 0) #8
  %159 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4MintILx998244353EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %158, i64 noundef 0) #8
  %160 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintILx998244353EEmIERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %159, ptr noundef nonnull align 8 dereferenceable(8) %28)
          to label %161 unwind label %209

161:                                              ; preds = %156
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  %162 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef 0) #8
  invoke void @_ZNSt6vectorIS_I4MintILx998244353EESaIS1_EESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %162, ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %163 unwind label %205

163:                                              ; preds = %161
  %164 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.8)
          to label %165 unwind label %205

165:                                              ; preds = %163
  %166 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %164, i32 noundef 0)
          to label %167 unwind label %205

167:                                              ; preds = %165
  %168 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %166, ptr noundef @.str.9)
          to label %169 unwind label %205

169:                                              ; preds = %167
  %170 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef 0) #8
  %171 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsI4MintILx998244353EEERSoS2_RKSt6vectorIS3_IT_SaIS4_EESaIS6_EE(ptr noundef nonnull align 8 dereferenceable(8) %168, ptr noundef nonnull align 8 dereferenceable(24) %170)
          to label %172 unwind label %205

172:                                              ; preds = %169
  %173 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %171, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %174 unwind label %205

174:                                              ; preds = %172
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  store i32 0, ptr %29, align 4, !tbaa !5
  br label %175

175:                                              ; preds = %239, %174
  %176 = load i32, ptr %29, align 4, !tbaa !5
  %177 = load i32, ptr %2, align 4, !tbaa !5
  %178 = icmp slt i32 %176, %177
  br i1 %178, label %213, label %179

179:                                              ; preds = %175
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  br label %251

180:                                              ; preds = %132
  %181 = landingpad { ptr, i32 }
          cleanup
  %182 = extractvalue { ptr, i32 } %181, 0
  store ptr %182, ptr %7, align 8
  %183 = extractvalue { ptr, i32 } %181, 1
  store i32 %183, ptr %8, align 4
  br label %188

184:                                              ; preds = %135
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %7, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %8, align 4
  call void @_ZNSt15__new_allocatorI4MintILx998244353EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #8
  br label %188

188:                                              ; preds = %184, %180
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %433

189:                                              ; preds = %136
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %7, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  br label %432

193:                                              ; preds = %140
  %194 = landingpad { ptr, i32 }
          cleanup
  %195 = extractvalue { ptr, i32 } %194, 0
  store ptr %195, ptr %7, align 8
  %196 = extractvalue { ptr, i32 } %194, 1
  store i32 %196, ptr %8, align 4
  call void @_ZNSt15__new_allocatorISt6vectorIS0_I4MintILx998244353EESaIS2_EESaIS4_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #8
  br label %431

197:                                              ; preds = %145
  %198 = landingpad { ptr, i32 }
          cleanup
  %199 = extractvalue { ptr, i32 } %198, 0
  store ptr %199, ptr %7, align 8
  %200 = extractvalue { ptr, i32 } %198, 1
  store i32 %200, ptr %8, align 4
  call void @_ZNSt15__new_allocatorISt6vectorIS0_I4MintILx998244353EESaIS2_EESaIS4_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #8
  br label %430

201:                                              ; preds = %149
  %202 = landingpad { ptr, i32 }
          cleanup
  %203 = extractvalue { ptr, i32 } %202, 0
  store ptr %203, ptr %7, align 8
  %204 = extractvalue { ptr, i32 } %202, 1
  store i32 %204, ptr %8, align 4
  call void @_ZNSt15__new_allocatorISt6vectorIS0_I4MintILx998244353EESaIS2_EESaIS4_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #8
  br label %429

205:                                              ; preds = %324, %321, %319, %317, %313, %260, %257, %255, %253, %251, %172, %169, %167, %165, %163, %161, %153
  %206 = landingpad { ptr, i32 }
          cleanup
  %207 = extractvalue { ptr, i32 } %206, 0
  store ptr %207, ptr %7, align 8
  %208 = extractvalue { ptr, i32 } %206, 1
  store i32 %208, ptr %8, align 4
  br label %428

209:                                              ; preds = %156, %155
  %210 = landingpad { ptr, i32 }
          cleanup
  %211 = extractvalue { ptr, i32 } %210, 0
  store ptr %211, ptr %7, align 8
  %212 = extractvalue { ptr, i32 } %210, 1
  store i32 %212, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  br label %428

213:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 24, ptr %30) #8
  %214 = load i32, ptr %29, align 4, !tbaa !5
  %215 = sext i32 %214 to i64
  %216 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %215) #8
  invoke void @_Z9next_lineRKSt6vectorIS_I4MintILx998244353EESaIS1_EESaIS3_EE(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %30, ptr noundef nonnull align 8 dereferenceable(24) %216)
          to label %217 unwind label %242

217:                                              ; preds = %213
  %218 = load i32, ptr %29, align 4, !tbaa !5
  %219 = add nsw i32 %218, 1
  %220 = sext i32 %219 to i64
  %221 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %220) #8
  %222 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I4MintILx998244353EESaIS1_EESaIS3_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(24) %221, ptr noundef nonnull align 8 dereferenceable(24) %30) #8
  call void @_ZNSt6vectorIS_I4MintILx998244353EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #8
  %223 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.8)
          to label %224 unwind label %246

224:                                              ; preds = %217
  %225 = load i32, ptr %29, align 4, !tbaa !5
  %226 = add nsw i32 %225, 1
  %227 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %223, i32 noundef %226)
          to label %228 unwind label %246

228:                                              ; preds = %224
  %229 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %227, ptr noundef @.str.9)
          to label %230 unwind label %246

230:                                              ; preds = %228
  %231 = load i32, ptr %29, align 4, !tbaa !5
  %232 = add nsw i32 %231, 1
  %233 = sext i32 %232 to i64
  %234 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %233) #8
  %235 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsI4MintILx998244353EEERSoS2_RKSt6vectorIS3_IT_SaIS4_EESaIS6_EE(ptr noundef nonnull align 8 dereferenceable(8) %229, ptr noundef nonnull align 8 dereferenceable(24) %234)
          to label %236 unwind label %246

236:                                              ; preds = %230
  %237 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %235, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %238 unwind label %246

238:                                              ; preds = %236
  br label %239

239:                                              ; preds = %238
  %240 = load i32, ptr %29, align 4, !tbaa !5
  %241 = add nsw i32 %240, 1
  store i32 %241, ptr %29, align 4, !tbaa !5
  br label %175, !llvm.loop !16

242:                                              ; preds = %213
  %243 = landingpad { ptr, i32 }
          cleanup
  %244 = extractvalue { ptr, i32 } %243, 0
  store ptr %244, ptr %7, align 8
  %245 = extractvalue { ptr, i32 } %243, 1
  store i32 %245, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #8
  br label %250

246:                                              ; preds = %236, %230, %228, %224, %217
  %247 = landingpad { ptr, i32 }
          cleanup
  %248 = extractvalue { ptr, i32 } %247, 0
  store ptr %248, ptr %7, align 8
  %249 = extractvalue { ptr, i32 } %247, 1
  store i32 %249, ptr %8, align 4
  br label %250

250:                                              ; preds = %246, %242
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  br label %428

251:                                              ; preds = %179
  %252 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.10)
          to label %253 unwind label %205

253:                                              ; preds = %251
  %254 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %252, i32 noundef 0)
          to label %255 unwind label %205

255:                                              ; preds = %253
  %256 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %254, ptr noundef @.str.9)
          to label %257 unwind label %205

257:                                              ; preds = %255
  %258 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef 0) #8
  %259 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsI4MintILx998244353EEERSoS2_RKSt6vectorIS3_IT_SaIS4_EESaIS6_EE(ptr noundef nonnull align 8 dereferenceable(8) %256, ptr noundef nonnull align 8 dereferenceable(24) %258)
          to label %260 unwind label %205

260:                                              ; preds = %257
  %261 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %259, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %262 unwind label %205

262:                                              ; preds = %260
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #8
  store i32 0, ptr %31, align 4, !tbaa !5
  br label %263

263:                                              ; preds = %294, %262
  %264 = load i32, ptr %31, align 4, !tbaa !5
  %265 = load i32, ptr %2, align 4, !tbaa !5
  %266 = icmp slt i32 %264, %265
  br i1 %266, label %268, label %267

267:                                              ; preds = %263
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  br label %306

268:                                              ; preds = %263
  call void @llvm.lifetime.start.p0(i64 24, ptr %32) #8
  %269 = load i32, ptr %31, align 4, !tbaa !5
  %270 = sext i32 %269 to i64
  %271 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %270) #8
  invoke void @_Z9next_lineRKSt6vectorIS_I4MintILx998244353EESaIS1_EESaIS3_EE(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %32, ptr noundef nonnull align 8 dereferenceable(24) %271)
          to label %272 unwind label %297

272:                                              ; preds = %268
  %273 = load i32, ptr %31, align 4, !tbaa !5
  %274 = add nsw i32 %273, 1
  %275 = sext i32 %274 to i64
  %276 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %275) #8
  %277 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I4MintILx998244353EESaIS1_EESaIS3_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(24) %276, ptr noundef nonnull align 8 dereferenceable(24) %32) #8
  call void @_ZNSt6vectorIS_I4MintILx998244353EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #8
  %278 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.10)
          to label %279 unwind label %301

279:                                              ; preds = %272
  %280 = load i32, ptr %31, align 4, !tbaa !5
  %281 = add nsw i32 %280, 1
  %282 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %278, i32 noundef %281)
          to label %283 unwind label %301

283:                                              ; preds = %279
  %284 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %282, ptr noundef @.str.9)
          to label %285 unwind label %301

285:                                              ; preds = %283
  %286 = load i32, ptr %31, align 4, !tbaa !5
  %287 = add nsw i32 %286, 1
  %288 = sext i32 %287 to i64
  %289 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %288) #8
  %290 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsI4MintILx998244353EEERSoS2_RKSt6vectorIS3_IT_SaIS4_EESaIS6_EE(ptr noundef nonnull align 8 dereferenceable(8) %284, ptr noundef nonnull align 8 dereferenceable(24) %289)
          to label %291 unwind label %301

291:                                              ; preds = %285
  %292 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %290, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %293 unwind label %301

293:                                              ; preds = %291
  br label %294

294:                                              ; preds = %293
  %295 = load i32, ptr %31, align 4, !tbaa !5
  %296 = add nsw i32 %295, 1
  store i32 %296, ptr %31, align 4, !tbaa !5
  br label %263, !llvm.loop !17

297:                                              ; preds = %268
  %298 = landingpad { ptr, i32 }
          cleanup
  %299 = extractvalue { ptr, i32 } %298, 0
  store ptr %299, ptr %7, align 8
  %300 = extractvalue { ptr, i32 } %298, 1
  store i32 %300, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #8
  br label %305

301:                                              ; preds = %291, %285, %283, %279, %272
  %302 = landingpad { ptr, i32 }
          cleanup
  %303 = extractvalue { ptr, i32 } %302, 0
  store ptr %303, ptr %7, align 8
  %304 = extractvalue { ptr, i32 } %302, 1
  store i32 %304, ptr %8, align 4
  br label %305

305:                                              ; preds = %301, %297
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  br label %428

306:                                              ; preds = %267
  call void @llvm.lifetime.start.p0(i64 24, ptr %33) #8
  %307 = load i32, ptr %2, align 4, !tbaa !5
  %308 = sext i32 %307 to i64
  %309 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %308) #8
  %310 = load i32, ptr %2, align 4, !tbaa !5
  %311 = sext i32 %310 to i64
  %312 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %311) #8
  invoke void @_Z6divideRKSt6vectorIS_I4MintILx998244353EESaIS1_EESaIS3_EES7_(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %33, ptr noundef nonnull align 8 dereferenceable(24) %309, ptr noundef nonnull align 8 dereferenceable(24) %312)
          to label %313 unwind label %332

313:                                              ; preds = %306
  %314 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef 0) #8
  %315 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I4MintILx998244353EESaIS1_EESaIS3_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(24) %314, ptr noundef nonnull align 8 dereferenceable(24) %33) #8
  call void @_ZNSt6vectorIS_I4MintILx998244353EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #8
  %316 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.11)
          to label %317 unwind label %205

317:                                              ; preds = %313
  %318 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %316, i32 noundef 0)
          to label %319 unwind label %205

319:                                              ; preds = %317
  %320 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %318, ptr noundef @.str.9)
          to label %321 unwind label %205

321:                                              ; preds = %319
  %322 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef 0) #8
  %323 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsI4MintILx998244353EEERSoS2_RKSt6vectorIS3_IT_SaIS4_EESaIS6_EE(ptr noundef nonnull align 8 dereferenceable(8) %320, ptr noundef nonnull align 8 dereferenceable(24) %322)
          to label %324 unwind label %205

324:                                              ; preds = %321
  %325 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %323, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %326 unwind label %205

326:                                              ; preds = %324
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #8
  store i32 0, ptr %34, align 4, !tbaa !5
  br label %327

327:                                              ; preds = %362, %326
  %328 = load i32, ptr %34, align 4, !tbaa !5
  %329 = load i32, ptr %2, align 4, !tbaa !5
  %330 = icmp slt i32 %328, %329
  br i1 %330, label %336, label %331

331:                                              ; preds = %327
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  br label %374

332:                                              ; preds = %306
  %333 = landingpad { ptr, i32 }
          cleanup
  %334 = extractvalue { ptr, i32 } %333, 0
  store ptr %334, ptr %7, align 8
  %335 = extractvalue { ptr, i32 } %333, 1
  store i32 %335, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #8
  br label %428

336:                                              ; preds = %327
  call void @llvm.lifetime.start.p0(i64 24, ptr %35) #8
  %337 = load i32, ptr %34, align 4, !tbaa !5
  %338 = sext i32 %337 to i64
  %339 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %338) #8
  invoke void @_Z9prev_lineRKSt6vectorIS_I4MintILx998244353EESaIS1_EESaIS3_EE(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %35, ptr noundef nonnull align 8 dereferenceable(24) %339)
          to label %340 unwind label %365

340:                                              ; preds = %336
  %341 = load i32, ptr %34, align 4, !tbaa !5
  %342 = add nsw i32 %341, 1
  %343 = sext i32 %342 to i64
  %344 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %343) #8
  %345 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I4MintILx998244353EESaIS1_EESaIS3_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(24) %344, ptr noundef nonnull align 8 dereferenceable(24) %35) #8
  call void @_ZNSt6vectorIS_I4MintILx998244353EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %35) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #8
  %346 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.11)
          to label %347 unwind label %369

347:                                              ; preds = %340
  %348 = load i32, ptr %34, align 4, !tbaa !5
  %349 = add nsw i32 %348, 1
  %350 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %346, i32 noundef %349)
          to label %351 unwind label %369

351:                                              ; preds = %347
  %352 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %350, ptr noundef @.str.9)
          to label %353 unwind label %369

353:                                              ; preds = %351
  %354 = load i32, ptr %34, align 4, !tbaa !5
  %355 = add nsw i32 %354, 1
  %356 = sext i32 %355 to i64
  %357 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %356) #8
  %358 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsI4MintILx998244353EEERSoS2_RKSt6vectorIS3_IT_SaIS4_EESaIS6_EE(ptr noundef nonnull align 8 dereferenceable(8) %352, ptr noundef nonnull align 8 dereferenceable(24) %357)
          to label %359 unwind label %369

359:                                              ; preds = %353
  %360 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %358, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %361 unwind label %369

361:                                              ; preds = %359
  br label %362

362:                                              ; preds = %361
  %363 = load i32, ptr %34, align 4, !tbaa !5
  %364 = add nsw i32 %363, 1
  store i32 %364, ptr %34, align 4, !tbaa !5
  br label %327, !llvm.loop !18

365:                                              ; preds = %336
  %366 = landingpad { ptr, i32 }
          cleanup
  %367 = extractvalue { ptr, i32 } %366, 0
  store ptr %367, ptr %7, align 8
  %368 = extractvalue { ptr, i32 } %366, 1
  store i32 %368, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #8
  br label %373

369:                                              ; preds = %359, %353, %351, %347, %340
  %370 = landingpad { ptr, i32 }
          cleanup
  %371 = extractvalue { ptr, i32 } %370, 0
  store ptr %371, ptr %7, align 8
  %372 = extractvalue { ptr, i32 } %370, 1
  store i32 %372, ptr %8, align 4
  br label %373

373:                                              ; preds = %369, %365
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  br label %428

374:                                              ; preds = %331
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #8
  %375 = load i32, ptr %2, align 4, !tbaa !5
  %376 = sext i32 %375 to i64
  %377 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %376) #8
  %378 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I4MintILx998244353EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %377, i64 noundef 0) #8
  store ptr %378, ptr %36, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #8
  %379 = load ptr, ptr %36, align 8, !tbaa !19
  %380 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4MintILx998244353EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %379, i64 noundef 0) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %37, ptr align 8 %380, i64 8, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #8
  %381 = load ptr, ptr %36, align 8, !tbaa !19
  store ptr %381, ptr %38, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #8
  %382 = load ptr, ptr %38, align 8, !tbaa !19
  %383 = call ptr @_ZNSt6vectorI4MintILx998244353EESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %382) #8
  %384 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %39, i32 0, i32 0
  store ptr %383, ptr %384, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #8
  %385 = load ptr, ptr %38, align 8, !tbaa !19
  %386 = call ptr @_ZNSt6vectorI4MintILx998244353EESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %385) #8
  %387 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %40, i32 0, i32 0
  store ptr %386, ptr %387, align 8
  br label %388

388:                                              ; preds = %396, %374
  %389 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP4MintILx998244353EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull align 8 dereferenceable(8) %40) #8
  br i1 %389, label %391, label %390

390:                                              ; preds = %388
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #8
  br label %402

391:                                              ; preds = %388
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #8
  %392 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP4MintILx998244353EESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %39) #8
  store ptr %392, ptr %41, align 8, !tbaa !19
  %393 = load ptr, ptr %41, align 8, !tbaa !19
  %394 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintILx998244353EEmIERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %393, ptr noundef nonnull align 8 dereferenceable(8) %37)
          to label %395 unwind label %398

395:                                              ; preds = %391
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #8
  br label %396

396:                                              ; preds = %395
  %397 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP4MintILx998244353EESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %39) #8
  br label %388

398:                                              ; preds = %391
  %399 = landingpad { ptr, i32 }
          cleanup
  %400 = extractvalue { ptr, i32 } %399, 0
  store ptr %400, ptr %7, align 8
  %401 = extractvalue { ptr, i32 } %399, 1
  store i32 %401, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #8
  br label %427

402:                                              ; preds = %390
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #8
  %403 = load ptr, ptr %36, align 8, !tbaa !19
  store ptr %403, ptr %42, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #8
  %404 = load ptr, ptr %42, align 8, !tbaa !19
  %405 = call ptr @_ZNSt6vectorI4MintILx998244353EESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %404) #8
  %406 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %43, i32 0, i32 0
  store ptr %405, ptr %406, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #8
  %407 = load ptr, ptr %42, align 8, !tbaa !19
  %408 = call ptr @_ZNSt6vectorI4MintILx998244353EESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %407) #8
  %409 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %44, i32 0, i32 0
  store ptr %408, ptr %409, align 8
  br label %410

410:                                              ; preds = %419, %402
  %411 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP4MintILx998244353EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef nonnull align 8 dereferenceable(8) %44) #8
  br i1 %411, label %413, label %412

412:                                              ; preds = %410
  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
  br label %425

413:                                              ; preds = %410
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #8
  %414 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP4MintILx998244353EESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %43) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %45, ptr align 8 %414, i64 8, i1 false), !tbaa.struct !12
  %415 = 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) %45)
          to label %416 unwind label %421

416:                                              ; preds = %413
  %417 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %415, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %418 unwind label %421

418:                                              ; preds = %416
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #8
  br label %419

419:                                              ; preds = %418
  %420 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP4MintILx998244353EESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %43) #8
  br label %410

421:                                              ; preds = %416, %413
  %422 = landingpad { ptr, i32 }
          cleanup
  %423 = extractvalue { ptr, i32 } %422, 0
  store ptr %423, ptr %7, align 8
  %424 = extractvalue { ptr, i32 } %422, 1
  store i32 %424, ptr %8, align 4
  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
  br label %427

425:                                              ; preds = %412
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  call void @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #8
  call void @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #8
  call void @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #8
  call void @_ZNSt6vectorI4MintILx998244353EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #8
  call void @_ZNSt6vectorI4MintILx998244353EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @_ZNSt6vectorI4MintILx998244353EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  %426 = load i32, ptr %1, align 4
  ret i32 %426

427:                                              ; preds = %421, %398
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  br label %428

428:                                              ; preds = %427, %373, %332, %305, %250, %209, %205
  call void @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #8
  br label %429

429:                                              ; preds = %428, %201
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #8
  call void @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #8
  br label %430

430:                                              ; preds = %429, %197
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #8
  call void @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #8
  br label %431

431:                                              ; preds = %430, %193
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #8
  br label %432

432:                                              ; preds = %431, %189
  call void @_ZNSt6vectorI4MintILx998244353EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  br label %433

433:                                              ; preds = %432, %188
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #8
  br label %434

434:                                              ; preds = %433, %128
  call void @_ZNSt6vectorI4MintILx998244353EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  br label %435

435:                                              ; preds = %434, %111
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #8
  br label %436

436:                                              ; preds = %435, %107
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  br label %437

437:                                              ; preds = %436, %80
  call void @_ZNSt6vectorI4MintILx998244353EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  br label %438

438:                                              ; preds = %437, %67
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %439

439:                                              ; preds = %438
  %440 = load ptr, ptr %7, align 8
  %441 = load i32, ptr %8, align 4
  %442 = insertvalue { ptr, i32 } poison, ptr %440, 0
  %443 = insertvalue { ptr, i32 } %442, i32 %441, 1
  resume { ptr, i32 } %443
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


; 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.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<Mint<>>, std::allocator<std::vector<Mint<>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<Mint<>>, std::allocator<std::vector<Mint<>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<Mint<>>, std::allocator<std::vector<Mint<>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<Mint<>>, std::allocator<std::vector<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<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::allocator.2" = type { i8 }
%class.Mint = type { i64 }
%"class.std::vector.6" = type { %"struct.std::_Vector_base.7" }
%"struct.std::_Vector_base.7" = type { %"struct.std::_Vector_base<std::vector<std::vector<Mint<>>>, std::allocator<std::vector<std::vector<Mint<>>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<std::vector<Mint<>>>, std::allocator<std::vector<std::vector<Mint<>>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<std::vector<Mint<>>>, std::allocator<std::vector<std::vector<Mint<>>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<std::vector<Mint<>>>, std::allocator<std::vector<std::vector<Mint<>>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.8" = type { i8 }
%"class.__gnu_cxx::__normal_iterator.5" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.8 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [3 x i8], align 1

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaI4MintILx998244353EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 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 #1 align 2

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

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.std::vector.0", align 8
  %3 = alloca %"class.std::allocator.2", align 1
  %4 = alloca %class.Mint, align 8
  %5 = alloca %class.Mint, align 8
  %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.Mint, align 8
  %10 = alloca %"class.std::allocator.2", align 1
  %11 = alloca %class.Mint, align 8
  %12 = alloca %"class.std::vector.6", align 8
  %13 = alloca %"class.std::allocator.8", align 1
  %14 = alloca %"class.std::vector.6", align 8
  %15 = alloca %"class.std::allocator.8", align 1
  %16 = alloca %"class.std::vector.6", align 8
  %17 = alloca %"class.std::allocator.8", align 1
  %18 = alloca %class.Mint, align 8
  %19 = alloca %"class.std::vector", align 8
  %20 = alloca %"class.std::vector", align 8
  %21 = alloca %"class.std::vector", align 8
  %22 = alloca %"class.std::vector", align 8
  %23 = alloca %class.Mint, align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %27 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %28 = alloca %class.Mint, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  %29 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %30 = load i32, ptr %1, align 4, !tbaa !5
  %31 = icmp sgt i32 %30, 0
  br i1 %31, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %0
  %xtraiter = and i32 %30, 7
  %32 = icmp ult i32 %30, 8
  br i1 %32, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i32 %30, 2147483640
  br label %.lr.ph

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph, %.lr.ph.preheader
  %.lcssa143.ph = phi i32 [ poison, %.lr.ph.preheader ], [ %35, %.lr.ph ]
  %.095.unr = phi i32 [ 1, %.lr.ph.preheader ], [ %35, %.lr.ph ]
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph.epil
  %.095.epil = phi i32 [ %33, %.lr.ph.epil ], [ %.095.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i32 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %33 = shl nsw i32 %.095.epil, 1
  %epil.iter.next = add i32 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i32 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.lr.ph.epil, !llvm.loop !9

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph.epil, %0
  %.0.lcssa = phi i32 [ 1, %0 ], [ %.lcssa143.ph, %._crit_edge.loopexit.unr-lcssa ], [ %33, %.lr.ph.epil ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #8
  %34 = zext nneg i32 %.0.lcssa to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #8
  call void @_ZNSaI4MintILx998244353EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #8
  invoke void @_ZNSt6vectorI4MintILx998244353EESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %34, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %36 unwind label %42

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %.095 = phi i32 [ 1, %.lr.ph.preheader.new ], [ %35, %.lr.ph ]
  %niter = phi i32 [ 0, %.lr.ph.preheader.new ], [ %niter.next.7, %.lr.ph ]
  %35 = shl i32 %.095, 8
  %niter.next.7 = add i32 %niter, 8
  %niter.ncmp.7 = icmp eq i32 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !11

36:                                               ; preds = %._crit_edge
  call void @_ZNSt15__new_allocatorI4MintILx998244353EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #8
  %umax = call i32 @llvm.umax.i32(i32 %.0.lcssa, i32 1)
  %wide.trip.count = zext i32 %umax to i64
  br label %44

37:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  %38 = call ptr @_ZNSt6vectorI4MintILx998244353EESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  %39 = call ptr @_ZNSt6vectorI4MintILx998244353EESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  call void @_ZN4MintILx998244353EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef 0)
  %40 = load i64, ptr %5, align 8
  %41 = invoke i64 @_ZSt10accumulateIN9__gnu_cxx17__normal_iteratorIP4MintILx998244353EESt6vectorIS3_SaIS3_EEEES3_ET0_T_SA_S9_(ptr %38, ptr %39, i64 %40)
          to label %50 unwind label %53

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

44:                                               ; preds = %36, %47
  %indvars.iv = phi i64 [ 0, %36 ], [ %indvars.iv.next, %47 ]
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4MintILx998244353EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #8
  %46 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZrsILx998244353EERSiS0_R4MintIXT_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %45)
          to label %47 unwind label %48

47:                                               ; preds = %44
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond111.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond111.not, label %37, label %44, !llvm.loop !13

48:                                               ; preds = %44
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %249

50:                                               ; preds = %37
  store i64 %41, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #8
  call void @_ZNSaI4MintILx998244353EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
  invoke void @_ZNSt6vectorI4MintILx998244353EESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %34, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %51 unwind label %55

51:                                               ; preds = %50
  call void @_ZNSt15__new_allocatorI4MintILx998244353EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #8
  br label %57

52:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  call void @_ZN4MintILx998244353EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %9, i64 noundef -1)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #8
  call void @_ZNSaI4MintILx998244353EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #8
  invoke void @_ZNSt6vectorI4MintILx998244353EESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %34, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %64 unwind label %105

53:                                               ; preds = %37
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %248

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

57:                                               ; preds = %51, %60
  %indvars.iv112 = phi i64 [ 0, %51 ], [ %indvars.iv.next113, %60 ]
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4MintILx998244353EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv112) #8
  %59 = invoke i64 @_ZNK4MintILx998244353EEdvERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %58, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %60 unwind label %62

60:                                               ; preds = %57
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4MintILx998244353EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv112) #8
  store i64 %59, ptr %61, align 8, !tbaa !14
  %indvars.iv.next113 = add nuw nsw i64 %indvars.iv112, 1
  %exitcond116.not = icmp eq i64 %indvars.iv.next113, %wide.trip.count
  br i1 %exitcond116.not, label %52, label %57, !llvm.loop !16

62:                                               ; preds = %57
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %246

64:                                               ; preds = %52
  call void @_ZNSt15__new_allocatorI4MintILx998244353EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  %65 = add nsw i32 %.0.lcssa, -1
  %66 = sext i32 %65 to i64
  call void @_ZN4MintILx998244353EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %11, i64 noundef %66)
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4MintILx998244353EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef 0) #8
  %68 = load i64, ptr %11, align 8, !tbaa !14
  store i64 %68, ptr %67, align 8, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #8
  %69 = load i32, ptr %1, align 4, !tbaa !5
  %70 = add nsw i32 %69, 1
  %71 = sext i32 %70 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #8
  call void @_ZNSaISt6vectorIS_I4MintILx998244353EESaIS1_EESaIS3_EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #8
  invoke void @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EEC2EmRKS6_(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %71, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %72 unwind label %107

72:                                               ; preds = %64
  call void @_ZNSt15__new_allocatorISt6vectorIS0_I4MintILx998244353EESaIS2_EESaIS4_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #8
  %73 = load i32, ptr %1, align 4, !tbaa !5
  %74 = add nsw i32 %73, 1
  %75 = sext i32 %74 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #8
  call void @_ZNSaISt6vectorIS_I4MintILx998244353EESaIS1_EESaIS3_EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #8
  invoke void @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EEC2EmRKS6_(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %75, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %76 unwind label %109

76:                                               ; preds = %72
  call void @_ZNSt15__new_allocatorISt6vectorIS0_I4MintILx998244353EESaIS2_EESaIS4_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #8
  %77 = load i32, ptr %1, align 4, !tbaa !5
  %78 = add nsw i32 %77, 1
  %79 = sext i32 %78 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #8
  call void @_ZNSaISt6vectorIS_I4MintILx998244353EESaIS1_EESaIS3_EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #8
  invoke void @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EEC2EmRKS6_(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %79, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %80 unwind label %111

80:                                               ; preds = %76
  call void @_ZNSt15__new_allocatorISt6vectorIS0_I4MintILx998244353EESaIS2_EESaIS4_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #8
  %81 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef 0) #8
  invoke void @_ZNSt6vectorIS_I4MintILx998244353EESaIS1_EESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %81, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %82 unwind label %113

82:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #8
  call void @_ZN4MintILx998244353EEC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %18, i64 noundef 1)
  %83 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef 0) #8
  %84 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I4MintILx998244353EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %83, i64 noundef 0) #8
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4MintILx998244353EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %84, i64 noundef 0) #8
  %86 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintILx998244353EEmIERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %85, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %87 unwind label %115

87:                                               ; preds = %82
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #8
  %88 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef 0) #8
  invoke void @_ZNSt6vectorIS_I4MintILx998244353EESaIS1_EESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %88, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %89 unwind label %113

89:                                               ; preds = %87
  %90 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.8)
          to label %91 unwind label %113

91:                                               ; preds = %89
  %92 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %90, i32 noundef 0)
          to label %93 unwind label %113

93:                                               ; preds = %91
  %94 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %92, ptr noundef nonnull @.str.9)
          to label %95 unwind label %113

95:                                               ; preds = %93
  %96 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef 0) #8
  %97 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsI4MintILx998244353EEERSoS2_RKSt6vectorIS3_IT_SaIS4_EESaIS6_EE(ptr noundef nonnull align 8 dereferenceable(8) %94, ptr noundef nonnull align 8 dereferenceable(24) %96)
          to label %98 unwind label %113

98:                                               ; preds = %95
  %99 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %97, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.preheader88 unwind label %113

.preheader88:                                     ; preds = %98, %131
  %indvars.iv117 = phi i64 [ %indvars.iv.next118, %131 ], [ 0, %98 ]
  %100 = load i32, ptr %1, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = icmp slt i64 %indvars.iv117, %101
  br i1 %102, label %117, label %103

103:                                              ; preds = %.preheader88
  %104 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.10)
          to label %137 unwind label %113

105:                                              ; preds = %52
  %106 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorI4MintILx998244353EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  br label %245

107:                                              ; preds = %64
  %108 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt6vectorIS0_I4MintILx998244353EESaIS2_EESaIS4_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #8
  br label %244

109:                                              ; preds = %72
  %110 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt6vectorIS0_I4MintILx998244353EESaIS2_EESaIS4_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #8
  br label %243

111:                                              ; preds = %76
  %112 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt6vectorIS0_I4MintILx998244353EESaIS2_EESaIS4_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #8
  br label %242

113:                                              ; preds = %185, %182, %180, %178, %174, %144, %141, %139, %137, %103, %98, %95, %93, %91, %89, %87, %80
  %114 = landingpad { ptr, i32 }
          cleanup
  br label %241

115:                                              ; preds = %82
  %116 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #8
  br label %241

117:                                              ; preds = %.preheader88
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #8
  %118 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv117) #8
  invoke void @_Z9next_lineRKSt6vectorIS_I4MintILx998244353EESaIS1_EESaIS3_EE(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %19, ptr noundef nonnull align 8 dereferenceable(24) %118)
          to label %119 unwind label %133

119:                                              ; preds = %117
  %indvars.iv.next118 = add nuw nsw i64 %indvars.iv117, 1
  %120 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv.next118) #8
  %121 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I4MintILx998244353EESaIS1_EESaIS3_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(24) %120, ptr noundef nonnull align 8 dereferenceable(24) %19) #8
  call void @_ZNSt6vectorIS_I4MintILx998244353EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #8
  %122 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.8)
          to label %123 unwind label %135

123:                                              ; preds = %119
  %124 = trunc nuw i64 %indvars.iv.next118 to i32
  %125 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %122, i32 noundef %124)
          to label %126 unwind label %135

126:                                              ; preds = %123
  %127 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %125, ptr noundef nonnull @.str.9)
          to label %128 unwind label %135

128:                                              ; preds = %126
  %129 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv.next118) #8
  %130 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsI4MintILx998244353EEERSoS2_RKSt6vectorIS3_IT_SaIS4_EESaIS6_EE(ptr noundef nonnull align 8 dereferenceable(8) %127, ptr noundef nonnull align 8 dereferenceable(24) %129)
          to label %131 unwind label %135

131:                                              ; preds = %128
  %132 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %130, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.preheader88 unwind label %135, !llvm.loop !17

133:                                              ; preds = %117
  %134 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #8
  br label %241

135:                                              ; preds = %131, %128, %126, %123, %119
  %136 = landingpad { ptr, i32 }
          cleanup
  br label %241

137:                                              ; preds = %103
  %138 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %104, i32 noundef 0)
          to label %139 unwind label %113

139:                                              ; preds = %137
  %140 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %138, ptr noundef nonnull @.str.9)
          to label %141 unwind label %113

141:                                              ; preds = %139
  %142 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef 0) #8
  %143 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsI4MintILx998244353EEERSoS2_RKSt6vectorIS3_IT_SaIS4_EESaIS6_EE(ptr noundef nonnull align 8 dereferenceable(8) %140, ptr noundef nonnull align 8 dereferenceable(24) %142)
          to label %144 unwind label %113

144:                                              ; preds = %141
  %145 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %143, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.preheader87 unwind label %113

.preheader87:                                     ; preds = %144, %168
  %indvars.iv120 = phi i64 [ %indvars.iv.next121, %168 ], [ 0, %144 ]
  %146 = load i32, ptr %1, align 4, !tbaa !5
  %147 = sext i32 %146 to i64
  %148 = icmp slt i64 %indvars.iv120, %147
  br i1 %148, label %154, label %149

149:                                              ; preds = %.preheader87
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %21) #8
  %150 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %147) #8
  %151 = load i32, ptr %1, align 4, !tbaa !5
  %152 = sext i32 %151 to i64
  %153 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %152) #8
  invoke void @_Z6divideRKSt6vectorIS_I4MintILx998244353EESaIS1_EESaIS3_EES7_(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %21, ptr noundef nonnull align 8 dereferenceable(24) %150, ptr noundef nonnull align 8 dereferenceable(24) %153)
          to label %174 unwind label %198

154:                                              ; preds = %.preheader87
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %20) #8
  %155 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %indvars.iv120) #8
  invoke void @_Z9next_lineRKSt6vectorIS_I4MintILx998244353EESaIS1_EESaIS3_EE(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %20, ptr noundef nonnull align 8 dereferenceable(24) %155)
          to label %156 unwind label %170

156:                                              ; preds = %154
  %indvars.iv.next121 = add nuw nsw i64 %indvars.iv120, 1
  %157 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %indvars.iv.next121) #8
  %158 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I4MintILx998244353EESaIS1_EESaIS3_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(24) %157, ptr noundef nonnull align 8 dereferenceable(24) %20) #8
  call void @_ZNSt6vectorIS_I4MintILx998244353EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #8
  %159 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.10)
          to label %160 unwind label %172

160:                                              ; preds = %156
  %161 = trunc nuw i64 %indvars.iv.next121 to i32
  %162 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %159, i32 noundef %161)
          to label %163 unwind label %172

163:                                              ; preds = %160
  %164 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %162, ptr noundef nonnull @.str.9)
          to label %165 unwind label %172

165:                                              ; preds = %163
  %166 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %indvars.iv.next121) #8
  %167 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsI4MintILx998244353EEERSoS2_RKSt6vectorIS3_IT_SaIS4_EESaIS6_EE(ptr noundef nonnull align 8 dereferenceable(8) %164, ptr noundef nonnull align 8 dereferenceable(24) %166)
          to label %168 unwind label %172

168:                                              ; preds = %165
  %169 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %167, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.preheader87 unwind label %172, !llvm.loop !18

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

172:                                              ; preds = %168, %165, %163, %160, %156
  %173 = landingpad { ptr, i32 }
          cleanup
  br label %241

174:                                              ; preds = %149
  %175 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef 0) #8
  %176 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I4MintILx998244353EESaIS1_EESaIS3_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(24) %175, ptr noundef nonnull align 8 dereferenceable(24) %21) #8
  call void @_ZNSt6vectorIS_I4MintILx998244353EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %21) #8
  %177 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.11)
          to label %178 unwind label %113

178:                                              ; preds = %174
  %179 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %177, i32 noundef 0)
          to label %180 unwind label %113

180:                                              ; preds = %178
  %181 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %179, ptr noundef nonnull @.str.9)
          to label %182 unwind label %113

182:                                              ; preds = %180
  %183 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef 0) #8
  %184 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsI4MintILx998244353EEERSoS2_RKSt6vectorIS3_IT_SaIS4_EESaIS6_EE(ptr noundef nonnull align 8 dereferenceable(8) %181, ptr noundef nonnull align 8 dereferenceable(24) %183)
          to label %185 unwind label %113

185:                                              ; preds = %182
  %186 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %184, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.preheader unwind label %113

.preheader:                                       ; preds = %185, %214
  %indvars.iv123 = phi i64 [ %indvars.iv.next124, %214 ], [ 0, %185 ]
  %187 = load i32, ptr %1, align 4, !tbaa !5
  %188 = sext i32 %187 to i64
  %189 = icmp slt i64 %indvars.iv123, %188
  br i1 %189, label %200, label %190

190:                                              ; preds = %.preheader
  %191 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %188) #8
  %192 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I4MintILx998244353EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %191, i64 noundef 0) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #8
  %193 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4MintILx998244353EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %192, i64 noundef 0) #8
  %194 = load i64, ptr %193, align 8, !tbaa !14
  store i64 %194, ptr %23, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #8
  %195 = call ptr @_ZNSt6vectorI4MintILx998244353EESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %192) #8
  store ptr %195, ptr %24, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #8
  %196 = call ptr @_ZNSt6vectorI4MintILx998244353EESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %192) #8
  store ptr %196, ptr %25, align 8
  %197 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP4MintILx998244353EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %25) #8
  br i1 %197, label %.lr.ph99, label %._crit_edge100

198:                                              ; preds = %149
  %199 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %21) #8
  br label %241

200:                                              ; preds = %.preheader
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %22) #8
  %201 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %indvars.iv123) #8
  invoke void @_Z9prev_lineRKSt6vectorIS_I4MintILx998244353EESaIS1_EESaIS3_EE(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %22, ptr noundef nonnull align 8 dereferenceable(24) %201)
          to label %202 unwind label %216

202:                                              ; preds = %200
  %indvars.iv.next124 = add nuw nsw i64 %indvars.iv123, 1
  %203 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %indvars.iv.next124) #8
  %204 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I4MintILx998244353EESaIS1_EESaIS3_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(24) %203, ptr noundef nonnull align 8 dereferenceable(24) %22) #8
  call void @_ZNSt6vectorIS_I4MintILx998244353EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %22) #8
  %205 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.11)
          to label %206 unwind label %218

206:                                              ; preds = %202
  %207 = trunc nuw i64 %indvars.iv.next124 to i32
  %208 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %205, i32 noundef %207)
          to label %209 unwind label %218

209:                                              ; preds = %206
  %210 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %208, ptr noundef nonnull @.str.9)
          to label %211 unwind label %218

211:                                              ; preds = %209
  %212 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %indvars.iv.next124) #8
  %213 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsI4MintILx998244353EEERSoS2_RKSt6vectorIS3_IT_SaIS4_EESaIS6_EE(ptr noundef nonnull align 8 dereferenceable(8) %210, ptr noundef nonnull align 8 dereferenceable(24) %212)
          to label %214 unwind label %218

214:                                              ; preds = %211
  %215 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %213, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.preheader unwind label %218, !llvm.loop !19

216:                                              ; preds = %200
  %217 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %22) #8
  br label %241

218:                                              ; preds = %214, %211, %209, %206, %202
  %219 = landingpad { ptr, i32 }
          cleanup
  br label %241

._crit_edge100:                                   ; preds = %225, %190
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #8
  %220 = call ptr @_ZNSt6vectorI4MintILx998244353EESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %192) #8
  store ptr %220, ptr %26, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %27) #8
  %221 = call ptr @_ZNSt6vectorI4MintILx998244353EESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %192) #8
  store ptr %221, ptr %27, align 8
  %222 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP4MintILx998244353EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %27) #8
  br i1 %222, label %.lr.ph102, label %._crit_edge103

.lr.ph99:                                         ; preds = %190, %225
  %223 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP4MintILx998244353EESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #8
  %224 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintILx998244353EEmIERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %223, ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %225 unwind label %228

225:                                              ; preds = %.lr.ph99
  %226 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP4MintILx998244353EESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #8
  %227 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP4MintILx998244353EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %25) #8
  br i1 %227, label %.lr.ph99, label %._crit_edge100

228:                                              ; preds = %.lr.ph99
  %229 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #8
  br label %240

._crit_edge103:                                   ; preds = %235, %._crit_edge100
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #8
  call void @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #8
  call void @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #8
  call void @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #8
  call void @_ZNSt6vectorI4MintILx998244353EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #8
  call void @_ZNSt6vectorI4MintILx998244353EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @_ZNSt6vectorI4MintILx998244353EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  ret i32 0

.lr.ph102:                                        ; preds = %._crit_edge100, %235
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %28) #8
  %230 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP4MintILx998244353EESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #8
  %231 = load i64, ptr %230, align 8, !tbaa !14
  store i64 %231, ptr %28, align 8, !tbaa !14
  %232 = 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) %28)
          to label %233 unwind label %238

233:                                              ; preds = %.lr.ph102
  %234 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %232, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %235 unwind label %238

235:                                              ; preds = %233
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #8
  %236 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP4MintILx998244353EESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #8
  %237 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP4MintILx998244353EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %27) #8
  br i1 %237, label %.lr.ph102, label %._crit_edge103

238:                                              ; preds = %233, %.lr.ph102
  %239 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #8
  br label %240

240:                                              ; preds = %238, %228
  %.pn = phi { ptr, i32 } [ %229, %228 ], [ %239, %238 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #8
  br label %241

241:                                              ; preds = %216, %218, %170, %172, %133, %135, %240, %198, %115, %113
  %.pn73.pn = phi { ptr, i32 } [ %.pn, %240 ], [ %114, %113 ], [ %199, %198 ], [ %116, %115 ], [ %136, %135 ], [ %134, %133 ], [ %173, %172 ], [ %171, %170 ], [ %219, %218 ], [ %217, %216 ]
  call void @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  br label %242

242:                                              ; preds = %241, %111
  %.pn73.pn.pn = phi { ptr, i32 } [ %.pn73.pn, %241 ], [ %112, %111 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #8
  call void @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  br label %243

243:                                              ; preds = %242, %109
  %.pn73.pn.pn.pn = phi { ptr, i32 } [ %.pn73.pn.pn, %242 ], [ %110, %109 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #8
  call void @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  br label %244

244:                                              ; preds = %243, %107
  %.pn73.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn73.pn.pn.pn, %243 ], [ %108, %107 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #8
  call void @_ZNSt6vectorI4MintILx998244353EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  br label %245

245:                                              ; preds = %244, %105
  %.pn73.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn73.pn.pn.pn.pn, %244 ], [ %106, %105 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #8
  br label %246

246:                                              ; preds = %245, %62
  %.pn80 = phi { ptr, i32 } [ %63, %62 ], [ %.pn73.pn.pn.pn.pn.pn, %245 ]
  call void @_ZNSt6vectorI4MintILx998244353EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  br label %247

247:                                              ; preds = %246, %55
  %.pn80.pn = phi { ptr, i32 } [ %.pn80, %246 ], [ %56, %55 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #8
  br label %248

248:                                              ; preds = %247, %53
  %.pn80.pn.pn = phi { ptr, i32 } [ %.pn80.pn, %247 ], [ %54, %53 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  br label %249

249:                                              ; preds = %248, %48
  %.pn84 = phi { ptr, i32 } [ %49, %48 ], [ %.pn80.pn.pn, %248 ]
  call void @_ZNSt6vectorI4MintILx998244353EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  br label %250

250:                                              ; preds = %249, %42
  %.pn84.pn = phi { ptr, i32 } [ %.pn84, %249 ], [ %43, %42 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn84.pn
}

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_I4MintILx998244353EESaIS1_EESaIS3_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 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 #1 align 2

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

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

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

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

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #7

attributes #0 = { 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 #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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.unroll.disable"}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = !{!15, !15, i64 0}
!15 = !{!"long long", !7, i64 0}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}


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