; LLVM IR from duc0/ContestNeko :: CPPProjects (Polynomial)

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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%class.Polynomial = type <{ %"class.std::vector.0", i32, [4 x i8] }>
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<ModInt<int, 1000000007>, std::allocator<ModInt<int, 1000000007>>>::_Vector_impl" }
%"struct.std::_Vector_base<ModInt<int, 1000000007>, std::allocator<ModInt<int, 1000000007>>>::_Vector_impl" = type { %"struct.std::_Vector_base<ModInt<int, 1000000007>, std::allocator<ModInt<int, 1000000007>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ModInt<int, 1000000007>, std::allocator<ModInt<int, 1000000007>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::initializer_list" = type { ptr, i64 }
%class.ModInt = type { i32 }
%"class.std::allocator.2" = type { i8 }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<Polynomial<ModInt<int, 1000000007>>, std::allocator<Polynomial<ModInt<int, 1000000007>>>>::_Vector_impl" }
%"struct.std::_Vector_base<Polynomial<ModInt<int, 1000000007>>, std::allocator<Polynomial<ModInt<int, 1000000007>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<Polynomial<ModInt<int, 1000000007>>, std::allocator<Polynomial<ModInt<int, 1000000007>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Polynomial<ModInt<int, 1000000007>>, std::allocator<Polynomial<ModInt<int, 1000000007>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.7" = type { i8 }
%class.ComboUtils = type <{ %"class.std::vector.0", i32, [4 x i8] }>

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

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

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

declare ptr @freopen(ptr noundef, ptr noundef, ptr noundef) #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %class.Polynomial, align 8
  %5 = alloca %"class.std::vector.0", align 8
  %6 = alloca %"class.std::initializer_list", align 8
  %7 = alloca [3 x %class.ModInt], align 4
  %8 = alloca %"class.std::allocator.2", align 1
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %class.Polynomial, align 8
  %12 = alloca %"class.std::vector.0", align 8
  %13 = alloca %"class.std::initializer_list", align 8
  %14 = alloca [2 x %class.ModInt], align 4
  %15 = alloca %"class.std::allocator.2", align 1
  %16 = alloca %"class.std::vector.5", align 8
  %17 = alloca %"class.std::allocator.7", align 1
  %18 = alloca %"class.std::vector.5", align 8
  %19 = alloca %"class.std::allocator.7", align 1
  %20 = alloca %class.Polynomial, align 8
  %21 = alloca %"class.std::vector.0", align 8
  %22 = alloca %"class.std::initializer_list", align 8
  %23 = alloca [1 x %class.ModInt], align 4
  %24 = alloca %"class.std::allocator.2", align 1
  %25 = alloca %class.Polynomial, align 8
  %26 = alloca %"class.std::vector.0", align 8
  %27 = alloca %"class.std::initializer_list", align 8
  %28 = alloca [1 x %class.ModInt], align 4
  %29 = alloca %"class.std::allocator.2", align 1
  %30 = alloca i32, align 4
  %31 = alloca %class.Polynomial, align 8
  %32 = alloca %class.Polynomial, align 8
  %33 = alloca %class.Polynomial, align 8
  %34 = alloca %class.Polynomial, align 8
  %35 = alloca %class.ModInt, align 4
  %36 = alloca %class.Polynomial, align 8
  %37 = alloca %class.Polynomial, align 8
  %38 = alloca %class.Polynomial, align 8
  %39 = alloca %class.Polynomial, align 8
  %40 = alloca %class.Polynomial, align 8
  %41 = alloca %class.ComboUtils, align 8
  %42 = alloca %class.Polynomial, align 8
  %43 = alloca %class.ModInt, align 4
  store i32 0, ptr %1, align 4
  %44 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %45 = load ptr, ptr @stdin, align 8, !tbaa !5
  %46 = call ptr @freopen(ptr noundef @.str.2, ptr noundef @.str.3, ptr noundef %45)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  %47 = 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)
  %48 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %47, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.start.p0(i64 32, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %7) #6
  call void @_ZN6ModIntIiLi1000000007EEC2Ex(ptr noundef nonnull align 4 dereferenceable(4) %7, i64 noundef 0)
  %49 = getelementptr inbounds %class.ModInt, ptr %7, i64 1
  call void @_ZN6ModIntIiLi1000000007EEC2Ex(ptr noundef nonnull align 4 dereferenceable(4) %49, i64 noundef 0)
  %50 = getelementptr inbounds %class.ModInt, ptr %7, i64 2
  call void @_ZN6ModIntIiLi1000000007EEC2Ex(ptr noundef nonnull align 4 dereferenceable(4) %50, i64 noundef 1)
  %51 = getelementptr inbounds %"class.std::initializer_list", ptr %6, i32 0, i32 0
  store ptr %7, ptr %51, align 8, !tbaa !9
  %52 = getelementptr inbounds %"class.std::initializer_list", ptr %6, i32 0, i32 1
  store i64 3, ptr %52, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #6
  call void @_ZNSaI6ModIntIiLi1000000007EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  %53 = getelementptr inbounds { ptr, i64 }, ptr %6, i32 0, i32 0
  %54 = load ptr, ptr %53, align 8
  %55 = getelementptr inbounds { ptr, i64 }, ptr %6, i32 0, i32 1
  %56 = load i64, ptr %55, align 8
  invoke void @_ZNSt6vectorI6ModIntIiLi1000000007EESaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr %54, i64 %56, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %57 unwind label %105

57:                                               ; preds = %0
  invoke void @_ZN10PolynomialI6ModIntIiLi1000000007EEEC2ERKSt6vectorIS1_SaIS1_EE(ptr noundef nonnull align 8 dereferenceable(28) %4, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %58 unwind label %109

58:                                               ; preds = %57
  call void @_ZNSt6vectorI6ModIntIiLi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @_ZNSt15__new_allocatorI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  invoke void @_ZN6ModIntIiLi1000000007EEC2Ex(ptr noundef nonnull align 4 dereferenceable(4) %14, i64 noundef 0)
          to label %59 unwind label %114

59:                                               ; preds = %58
  %60 = getelementptr inbounds %class.ModInt, ptr %14, i64 1
  invoke void @_ZN6ModIntIiLi1000000007EEC2Ex(ptr noundef nonnull align 4 dereferenceable(4) %60, i64 noundef 1)
          to label %61 unwind label %114

61:                                               ; preds = %59
  %62 = getelementptr inbounds %"class.std::initializer_list", ptr %13, i32 0, i32 0
  store ptr %14, ptr %62, align 8, !tbaa !9
  %63 = getelementptr inbounds %"class.std::initializer_list", ptr %13, i32 0, i32 1
  store i64 2, ptr %63, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #6
  call void @_ZNSaI6ModIntIiLi1000000007EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  %64 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 0
  %65 = load ptr, ptr %64, align 8
  %66 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 1
  %67 = load i64, ptr %66, align 8
  invoke void @_ZNSt6vectorI6ModIntIiLi1000000007EESaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr %65, i64 %67, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %68 unwind label %118

68:                                               ; preds = %61
  invoke void @_ZN10PolynomialI6ModIntIiLi1000000007EEEC2ERKSt6vectorIS1_SaIS1_EE(ptr noundef nonnull align 8 dereferenceable(28) %11, ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %69 unwind label %122

69:                                               ; preds = %68
  call void @_ZNSt6vectorI6ModIntIiLi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  call void @_ZNSt15__new_allocatorI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #6
  %70 = load i32, ptr %2, align 4, !tbaa !13
  %71 = add nsw i32 %70, 1
  %72 = sext i32 %71 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #6
  call void @_ZNSaI10PolynomialI6ModIntIiLi1000000007EEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #6
  invoke void @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EEC2EmRKS4_(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %72, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %73 unwind label %128

73:                                               ; preds = %69
  call void @_ZNSt15__new_allocatorI10PolynomialI6ModIntIiLi1000000007EEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #6
  %74 = load i32, ptr %2, align 4, !tbaa !13
  %75 = add nsw i32 %74, 1
  %76 = sext i32 %75 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #6
  call void @_ZNSaI10PolynomialI6ModIntIiLi1000000007EEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  invoke void @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EEC2EmRKS4_(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %76, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %77 unwind label %132

77:                                               ; preds = %73
  call void @_ZNSt15__new_allocatorI10PolynomialI6ModIntIiLi1000000007EEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  invoke void @_ZN6ModIntIiLi1000000007EEC2Ex(ptr noundef nonnull align 4 dereferenceable(4) %23, i64 noundef 1)
          to label %78 unwind label %136

78:                                               ; preds = %77
  %79 = getelementptr inbounds %"class.std::initializer_list", ptr %22, i32 0, i32 0
  store ptr %23, ptr %79, align 8, !tbaa !9
  %80 = getelementptr inbounds %"class.std::initializer_list", ptr %22, i32 0, i32 1
  store i64 1, ptr %80, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #6
  call void @_ZNSaI6ModIntIiLi1000000007EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #6
  %81 = getelementptr inbounds { ptr, i64 }, ptr %22, i32 0, i32 0
  %82 = load ptr, ptr %81, align 8
  %83 = getelementptr inbounds { ptr, i64 }, ptr %22, i32 0, i32 1
  %84 = load i64, ptr %83, align 8
  invoke void @_ZNSt6vectorI6ModIntIiLi1000000007EESaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr %82, i64 %84, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %85 unwind label %140

85:                                               ; preds = %78
  invoke void @_ZN10PolynomialI6ModIntIiLi1000000007EEEC2ERKSt6vectorIS1_SaIS1_EE(ptr noundef nonnull align 8 dereferenceable(28) %20, ptr noundef nonnull align 8 dereferenceable(24) %21)
          to label %86 unwind label %144

86:                                               ; preds = %85
  %87 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef 0) #6
  %88 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZN10PolynomialI6ModIntIiLi1000000007EEEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(28) %87, ptr noundef nonnull align 8 dereferenceable(28) %20) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %20) #6
  call void @_ZNSt6vectorI6ModIntIiLi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  call void @_ZNSt15__new_allocatorI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  invoke void @_ZN6ModIntIiLi1000000007EEC2Ex(ptr noundef nonnull align 4 dereferenceable(4) %28, i64 noundef 0)
          to label %89 unwind label %150

89:                                               ; preds = %86
  %90 = getelementptr inbounds %"class.std::initializer_list", ptr %27, i32 0, i32 0
  store ptr %28, ptr %90, align 8, !tbaa !9
  %91 = getelementptr inbounds %"class.std::initializer_list", ptr %27, i32 0, i32 1
  store i64 1, ptr %91, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 1, ptr %29) #6
  call void @_ZNSaI6ModIntIiLi1000000007EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #6
  %92 = getelementptr inbounds { ptr, i64 }, ptr %27, i32 0, i32 0
  %93 = load ptr, ptr %92, align 8
  %94 = getelementptr inbounds { ptr, i64 }, ptr %27, i32 0, i32 1
  %95 = load i64, ptr %94, align 8
  invoke void @_ZNSt6vectorI6ModIntIiLi1000000007EESaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %26, ptr %93, i64 %95, ptr noundef nonnull align 1 dereferenceable(1) %29)
          to label %96 unwind label %154

96:                                               ; preds = %89
  invoke void @_ZN10PolynomialI6ModIntIiLi1000000007EEEC2ERKSt6vectorIS1_SaIS1_EE(ptr noundef nonnull align 8 dereferenceable(28) %25, ptr noundef nonnull align 8 dereferenceable(24) %26)
          to label %97 unwind label %158

97:                                               ; preds = %96
  %98 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef 0) #6
  %99 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZN10PolynomialI6ModIntIiLi1000000007EEEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(28) %98, ptr noundef nonnull align 8 dereferenceable(28) %25) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %25) #6
  call void @_ZNSt6vectorI6ModIntIiLi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #6
  call void @_ZNSt15__new_allocatorI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  store i32 1, ptr %30, align 4, !tbaa !13
  br label %100

100:                                              ; preds = %248, %97
  %101 = load i32, ptr %30, align 4, !tbaa !13
  %102 = load i32, ptr %2, align 4, !tbaa !13
  %103 = icmp sle i32 %101, %102
  br i1 %103, label %164, label %104

104:                                              ; preds = %100
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  br label %266

105:                                              ; preds = %0
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %9, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %10, align 4
  br label %113

109:                                              ; preds = %57
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %9, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %10, align 4
  call void @_ZNSt6vectorI6ModIntIiLi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  br label %113

113:                                              ; preds = %109, %105
  call void @_ZNSt15__new_allocatorI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #6
  br label %299

114:                                              ; preds = %59, %58
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %9, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %10, align 4
  br label %127

118:                                              ; preds = %61
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %9, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %10, align 4
  br label %126

122:                                              ; preds = %68
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %9, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %10, align 4
  call void @_ZNSt6vectorI6ModIntIiLi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  br label %126

126:                                              ; preds = %122, %118
  call void @_ZNSt15__new_allocatorI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  br label %127

127:                                              ; preds = %126, %114
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #6
  br label %298

128:                                              ; preds = %69
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %9, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %10, align 4
  call void @_ZNSt15__new_allocatorI10PolynomialI6ModIntIiLi1000000007EEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #6
  br label %297

132:                                              ; preds = %73
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %9, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %10, align 4
  call void @_ZNSt15__new_allocatorI10PolynomialI6ModIntIiLi1000000007EEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  br label %296

136:                                              ; preds = %77
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %9, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %10, align 4
  br label %149

140:                                              ; preds = %78
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %9, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %10, align 4
  br label %148

144:                                              ; preds = %85
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %9, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %10, align 4
  call void @_ZNSt6vectorI6ModIntIiLi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  br label %148

148:                                              ; preds = %144, %140
  call void @_ZNSt15__new_allocatorI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #6
  br label %149

149:                                              ; preds = %148, %136
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #6
  br label %295

150:                                              ; preds = %86
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %9, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %10, align 4
  br label %163

154:                                              ; preds = %89
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %9, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %10, align 4
  br label %162

158:                                              ; preds = %96
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %9, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %10, align 4
  call void @_ZNSt6vectorI6ModIntIiLi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #6
  br label %162

162:                                              ; preds = %158, %154
  call void @_ZNSt15__new_allocatorI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #6
  br label %163

163:                                              ; preds = %162, %150
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #6
  br label %295

164:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 32, ptr %31) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %32) #6
  %165 = load i32, ptr %30, align 4, !tbaa !13
  %166 = sext i32 %165 to i64
  %167 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %166) #6
  %168 = load i32, ptr %30, align 4, !tbaa !13
  %169 = sub nsw i32 %168, 1
  %170 = sext i32 %169 to i64
  %171 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %170) #6
  invoke void @_ZN10PolynomialI6ModIntIiLi1000000007EEEplERKS2_(ptr dead_on_unwind writable sret(%class.Polynomial) align 8 %32, ptr noundef nonnull align 8 dereferenceable(28) %167, ptr noundef nonnull align 8 dereferenceable(28) %171)
          to label %172 unwind label %201

172:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 32, ptr %33) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %34) #6
  %173 = load i32, ptr %30, align 4, !tbaa !13
  %174 = sub nsw i32 %173, 1
  %175 = sext i32 %174 to i64
  %176 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %175) #6
  invoke void @_ZN10PolynomialI6ModIntIiLi1000000007EEEmlERKS2_(ptr dead_on_unwind writable sret(%class.Polynomial) align 8 %34, ptr noundef nonnull align 8 dereferenceable(28) %176, ptr noundef nonnull align 8 dereferenceable(28) %11)
          to label %177 unwind label %205

177:                                              ; preds = %172
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #6
  invoke void @_ZN6ModIntIiLi1000000007EEC2Ex(ptr noundef nonnull align 4 dereferenceable(4) %35, i64 noundef 2)
          to label %178 unwind label %209

178:                                              ; preds = %177
  invoke void @_ZN10PolynomialI6ModIntIiLi1000000007EEEmlERKS1_(ptr dead_on_unwind writable sret(%class.Polynomial) align 8 %33, ptr noundef nonnull align 8 dereferenceable(28) %34, ptr noundef nonnull align 4 dereferenceable(4) %35)
          to label %179 unwind label %209

179:                                              ; preds = %178
  invoke void @_ZN10PolynomialI6ModIntIiLi1000000007EEEplERKS2_(ptr dead_on_unwind writable sret(%class.Polynomial) align 8 %31, ptr noundef nonnull align 8 dereferenceable(28) %32, ptr noundef nonnull align 8 dereferenceable(28) %33)
          to label %180 unwind label %213

180:                                              ; preds = %179
  %181 = load i32, ptr %30, align 4, !tbaa !13
  %182 = sext i32 %181 to i64
  %183 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %182) #6
  %184 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZN10PolynomialI6ModIntIiLi1000000007EEEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(28) %183, ptr noundef nonnull align 8 dereferenceable(28) %31) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %31) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %33) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %34) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %33) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %32) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #6
  %185 = load i32, ptr %30, align 4, !tbaa !13
  %186 = icmp sge i32 %185, 2
  br i1 %186, label %187, label %229

187:                                              ; preds = %180
  call void @llvm.lifetime.start.p0(i64 32, ptr %36) #6
  %188 = load i32, ptr %30, align 4, !tbaa !13
  %189 = sext i32 %188 to i64
  %190 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %189) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %37) #6
  %191 = load i32, ptr %30, align 4, !tbaa !13
  %192 = sub nsw i32 %191, 2
  %193 = sext i32 %192 to i64
  %194 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %193) #6
  invoke void @_ZN10PolynomialI6ModIntIiLi1000000007EEEmlERKS2_(ptr dead_on_unwind writable sret(%class.Polynomial) align 8 %37, ptr noundef nonnull align 8 dereferenceable(28) %194, ptr noundef nonnull align 8 dereferenceable(28) %4)
          to label %195 unwind label %220

195:                                              ; preds = %187
  invoke void @_ZN10PolynomialI6ModIntIiLi1000000007EEEplERKS2_(ptr dead_on_unwind writable sret(%class.Polynomial) align 8 %36, ptr noundef nonnull align 8 dereferenceable(28) %190, ptr noundef nonnull align 8 dereferenceable(28) %37)
          to label %196 unwind label %224

196:                                              ; preds = %195
  %197 = load i32, ptr %30, align 4, !tbaa !13
  %198 = sext i32 %197 to i64
  %199 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %198) #6
  %200 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZN10PolynomialI6ModIntIiLi1000000007EEEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(28) %199, ptr noundef nonnull align 8 dereferenceable(28) %36) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %36) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %37) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %36) #6
  br label %229

201:                                              ; preds = %164
  %202 = landingpad { ptr, i32 }
          cleanup
  %203 = extractvalue { ptr, i32 } %202, 0
  store ptr %203, ptr %9, align 8
  %204 = extractvalue { ptr, i32 } %202, 1
  store i32 %204, ptr %10, align 4
  br label %219

205:                                              ; preds = %172
  %206 = landingpad { ptr, i32 }
          cleanup
  %207 = extractvalue { ptr, i32 } %206, 0
  store ptr %207, ptr %9, align 8
  %208 = extractvalue { ptr, i32 } %206, 1
  store i32 %208, ptr %10, align 4
  br label %218

209:                                              ; preds = %178, %177
  %210 = landingpad { ptr, i32 }
          cleanup
  %211 = extractvalue { ptr, i32 } %210, 0
  store ptr %211, ptr %9, align 8
  %212 = extractvalue { ptr, i32 } %210, 1
  store i32 %212, ptr %10, align 4
  br label %217

213:                                              ; preds = %179
  %214 = landingpad { ptr, i32 }
          cleanup
  %215 = extractvalue { ptr, i32 } %214, 0
  store ptr %215, ptr %9, align 8
  %216 = extractvalue { ptr, i32 } %214, 1
  store i32 %216, ptr %10, align 4
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %33) #6
  br label %217

217:                                              ; preds = %213, %209
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %34) #6
  br label %218

218:                                              ; preds = %217, %205
  call void @llvm.lifetime.end.p0(i64 32, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %33) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %32) #6
  br label %219

219:                                              ; preds = %218, %201
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #6
  br label %265

220:                                              ; preds = %187
  %221 = landingpad { ptr, i32 }
          cleanup
  %222 = extractvalue { ptr, i32 } %221, 0
  store ptr %222, ptr %9, align 8
  %223 = extractvalue { ptr, i32 } %221, 1
  store i32 %223, ptr %10, align 4
  br label %228

224:                                              ; preds = %195
  %225 = landingpad { ptr, i32 }
          cleanup
  %226 = extractvalue { ptr, i32 } %225, 0
  store ptr %226, ptr %9, align 8
  %227 = extractvalue { ptr, i32 } %225, 1
  store i32 %227, ptr %10, align 4
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %37) #6
  br label %228

228:                                              ; preds = %224, %220
  call void @llvm.lifetime.end.p0(i64 32, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %36) #6
  br label %265

229:                                              ; preds = %196, %180
  call void @llvm.lifetime.start.p0(i64 32, ptr %38) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %39) #6
  %230 = load i32, ptr %30, align 4, !tbaa !13
  %231 = sext i32 %230 to i64
  %232 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %231) #6
  %233 = load i32, ptr %30, align 4, !tbaa !13
  %234 = sub nsw i32 %233, 1
  %235 = sext i32 %234 to i64
  %236 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %235) #6
  invoke void @_ZN10PolynomialI6ModIntIiLi1000000007EEEplERKS2_(ptr dead_on_unwind writable sret(%class.Polynomial) align 8 %39, ptr noundef nonnull align 8 dereferenceable(28) %232, ptr noundef nonnull align 8 dereferenceable(28) %236)
          to label %237 unwind label %251

237:                                              ; preds = %229
  call void @llvm.lifetime.start.p0(i64 32, ptr %40) #6
  %238 = load i32, ptr %30, align 4, !tbaa !13
  %239 = sub nsw i32 %238, 1
  %240 = sext i32 %239 to i64
  %241 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %240) #6
  invoke void @_ZN10PolynomialI6ModIntIiLi1000000007EEEmlERKS2_(ptr dead_on_unwind writable sret(%class.Polynomial) align 8 %40, ptr noundef nonnull align 8 dereferenceable(28) %241, ptr noundef nonnull align 8 dereferenceable(28) %11)
          to label %242 unwind label %255

242:                                              ; preds = %237
  invoke void @_ZN10PolynomialI6ModIntIiLi1000000007EEEplERKS2_(ptr dead_on_unwind writable sret(%class.Polynomial) align 8 %38, ptr noundef nonnull align 8 dereferenceable(28) %39, ptr noundef nonnull align 8 dereferenceable(28) %40)
          to label %243 unwind label %259

243:                                              ; preds = %242
  %244 = load i32, ptr %30, align 4, !tbaa !13
  %245 = sext i32 %244 to i64
  %246 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %245) #6
  %247 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZN10PolynomialI6ModIntIiLi1000000007EEEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(28) %246, ptr noundef nonnull align 8 dereferenceable(28) %38) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %38) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %40) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %40) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %39) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %38) #6
  br label %248

248:                                              ; preds = %243
  %249 = load i32, ptr %30, align 4, !tbaa !13
  %250 = add nsw i32 %249, 1
  store i32 %250, ptr %30, align 4, !tbaa !13
  br label %100, !llvm.loop !15

251:                                              ; preds = %229
  %252 = landingpad { ptr, i32 }
          cleanup
  %253 = extractvalue { ptr, i32 } %252, 0
  store ptr %253, ptr %9, align 8
  %254 = extractvalue { ptr, i32 } %252, 1
  store i32 %254, ptr %10, align 4
  br label %264

255:                                              ; preds = %237
  %256 = landingpad { ptr, i32 }
          cleanup
  %257 = extractvalue { ptr, i32 } %256, 0
  store ptr %257, ptr %9, align 8
  %258 = extractvalue { ptr, i32 } %256, 1
  store i32 %258, ptr %10, align 4
  br label %263

259:                                              ; preds = %242
  %260 = landingpad { ptr, i32 }
          cleanup
  %261 = extractvalue { ptr, i32 } %260, 0
  store ptr %261, ptr %9, align 8
  %262 = extractvalue { ptr, i32 } %260, 1
  store i32 %262, ptr %10, align 4
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %40) #6
  br label %263

263:                                              ; preds = %259, %255
  call void @llvm.lifetime.end.p0(i64 32, ptr %40) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %39) #6
  br label %264

264:                                              ; preds = %263, %251
  call void @llvm.lifetime.end.p0(i64 32, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %38) #6
  br label %265

265:                                              ; preds = %264, %228, %219
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  br label %295

266:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 32, ptr %41) #6
  %267 = load i32, ptr %2, align 4, !tbaa !13
  invoke void @_ZN10ComboUtilsI6ModIntIiLi1000000007EEEC2Ei(ptr noundef nonnull align 8 dereferenceable(28) %41, i32 noundef %267)
          to label %268 unwind label %281

268:                                              ; preds = %266
  call void @llvm.lifetime.start.p0(i64 32, ptr %42) #6
  %269 = load i32, ptr %2, align 4, !tbaa !13
  %270 = load i32, ptr %2, align 4, !tbaa !13
  %271 = sext i32 %270 to i64
  %272 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %271) #6
  invoke void @_ZN10PolynomialI6ModIntIiLi1000000007EEE16getHitPolynomialEiRKS2_RK10ComboUtilsIS1_E(ptr dead_on_unwind writable sret(%class.Polynomial) align 8 %42, i32 noundef %269, ptr noundef nonnull align 8 dereferenceable(28) %272, ptr noundef nonnull align 8 dereferenceable(28) %41)
          to label %273 unwind label %285

273:                                              ; preds = %268
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #6
  %274 = load i32, ptr %3, align 4, !tbaa !13
  %275 = invoke i32 @_ZNK10PolynomialI6ModIntIiLi1000000007EEE7getCoefEi(ptr noundef nonnull align 8 dereferenceable(28) %42, i32 noundef %274)
          to label %276 unwind label %289

276:                                              ; preds = %273
  %277 = getelementptr inbounds %class.ModInt, ptr %43, i32 0, i32 0
  store i32 %275, ptr %277, align 4
  %278 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRK6ModIntIiLi1000000007EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 4 dereferenceable(4) %43)
          to label %279 unwind label %289

279:                                              ; preds = %276
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #6
  store i32 0, ptr %1, align 4
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %42) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %42) #6
  call void @_ZN10ComboUtilsI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %41) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %41) #6
  call void @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #6
  call void @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  %280 = load i32, ptr %1, align 4
  ret i32 %280

281:                                              ; preds = %266
  %282 = landingpad { ptr, i32 }
          cleanup
  %283 = extractvalue { ptr, i32 } %282, 0
  store ptr %283, ptr %9, align 8
  %284 = extractvalue { ptr, i32 } %282, 1
  store i32 %284, ptr %10, align 4
  br label %294

285:                                              ; preds = %268
  %286 = landingpad { ptr, i32 }
          cleanup
  %287 = extractvalue { ptr, i32 } %286, 0
  store ptr %287, ptr %9, align 8
  %288 = extractvalue { ptr, i32 } %286, 1
  store i32 %288, ptr %10, align 4
  br label %293

289:                                              ; preds = %276, %273
  %290 = landingpad { ptr, i32 }
          cleanup
  %291 = extractvalue { ptr, i32 } %290, 0
  store ptr %291, ptr %9, align 8
  %292 = extractvalue { ptr, i32 } %290, 1
  store i32 %292, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %42) #6
  br label %293

293:                                              ; preds = %289, %285
  call void @llvm.lifetime.end.p0(i64 32, ptr %42) #6
  call void @_ZN10ComboUtilsI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %41) #6
  br label %294

294:                                              ; preds = %293, %281
  call void @llvm.lifetime.end.p0(i64 32, ptr %41) #6
  br label %295

295:                                              ; preds = %294, %265, %163, %149
  call void @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  br label %296

296:                                              ; preds = %295, %132
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #6
  call void @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  br label %297

297:                                              ; preds = %296, %128
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %11) #6
  br label %298

298:                                              ; preds = %297, %127
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %4) #6
  br label %299

299:                                              ; preds = %298, %113
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %300

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10PolynomialI6ModIntIiLi1000000007EEEplERKS2_(ptr dead_on_unwind noalias writable sret(%class.Polynomial) align 8, ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 8 dereferenceable(28)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10PolynomialI6ModIntIiLi1000000007EEEmlERKS2_(ptr dead_on_unwind noalias writable sret(%class.Polynomial) align 8, ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 8 dereferenceable(28)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10PolynomialI6ModIntIiLi1000000007EEEmlERKS1_(ptr dead_on_unwind noalias writable sret(%class.Polynomial) align 8, ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10ComboUtilsI6ModIntIiLi1000000007EEEC2Ei(ptr noundef nonnull align 8 dereferenceable(28), i32 noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10PolynomialI6ModIntIiLi1000000007EEE16getHitPolynomialEiRKS2_RK10ComboUtilsIS1_E(ptr dead_on_unwind noalias writable sret(%class.Polynomial) align 8, i32 noundef, ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 8 dereferenceable(28)) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZNK10PolynomialI6ModIntIiLi1000000007EEE7getCoefEi(ptr noundef nonnull align 8 dereferenceable(28), i32 noundef) #3 align 2

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

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

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

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

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


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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%class.Polynomial = type <{ %"class.std::vector.0", i32, [4 x i8] }>
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<ModInt<int, 1000000007>, std::allocator<ModInt<int, 1000000007>>>::_Vector_impl" }
%"struct.std::_Vector_base<ModInt<int, 1000000007>, std::allocator<ModInt<int, 1000000007>>>::_Vector_impl" = type { %"struct.std::_Vector_base<ModInt<int, 1000000007>, std::allocator<ModInt<int, 1000000007>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ModInt<int, 1000000007>, std::allocator<ModInt<int, 1000000007>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.ModInt = type { i32 }
%"class.std::allocator.2" = type { i8 }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<Polynomial<ModInt<int, 1000000007>>, std::allocator<Polynomial<ModInt<int, 1000000007>>>>::_Vector_impl" }
%"struct.std::_Vector_base<Polynomial<ModInt<int, 1000000007>>, std::allocator<Polynomial<ModInt<int, 1000000007>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<Polynomial<ModInt<int, 1000000007>>, std::allocator<Polynomial<ModInt<int, 1000000007>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Polynomial<ModInt<int, 1000000007>>, std::allocator<Polynomial<ModInt<int, 1000000007>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.7" = type { i8 }
%class.ComboUtils = type <{ %"class.std::vector.0", i32, [4 x i8] }>

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

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

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

declare ptr @freopen(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %class.Polynomial, align 8
  %4 = alloca %"class.std::vector.0", align 8
  %5 = alloca [3 x %class.ModInt], align 4
  %6 = alloca %"class.std::allocator.2", align 1
  %7 = alloca %class.Polynomial, align 8
  %8 = alloca %"class.std::vector.0", align 8
  %9 = alloca [2 x %class.ModInt], align 4
  %10 = alloca %"class.std::allocator.2", align 1
  %11 = alloca %"class.std::vector.5", align 8
  %12 = alloca %"class.std::allocator.7", align 1
  %13 = alloca %"class.std::vector.5", align 8
  %14 = alloca %"class.std::allocator.7", align 1
  %15 = alloca %class.Polynomial, align 8
  %16 = alloca %"class.std::vector.0", align 8
  %17 = alloca [1 x %class.ModInt], align 4
  %18 = alloca %"class.std::allocator.2", align 1
  %19 = alloca %class.Polynomial, align 8
  %20 = alloca %"class.std::vector.0", align 8
  %21 = alloca [1 x %class.ModInt], align 4
  %22 = alloca %"class.std::allocator.2", align 1
  %23 = alloca %class.Polynomial, align 8
  %24 = alloca %class.Polynomial, align 8
  %25 = alloca %class.Polynomial, align 8
  %26 = alloca %class.Polynomial, align 8
  %27 = alloca %class.ModInt, align 4
  %28 = alloca %class.Polynomial, align 8
  %29 = alloca %class.Polynomial, align 8
  %30 = alloca %class.Polynomial, align 8
  %31 = alloca %class.Polynomial, align 8
  %32 = alloca %class.Polynomial, align 8
  %33 = alloca %class.ComboUtils, align 8
  %34 = alloca %class.Polynomial, align 8
  %35 = alloca %class.ModInt, align 4
  %36 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %37 = load ptr, ptr @stdin, align 8, !tbaa !5
  %38 = tail call ptr @freopen(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, ptr noundef %37)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  %39 = 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)
  %40 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %39, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #6
  call void @_ZN6ModIntIiLi1000000007EEC2Ex(ptr noundef nonnull align 4 dereferenceable(4) %5, i64 noundef 0)
  %41 = getelementptr inbounds i8, ptr %5, i64 4
  call void @_ZN6ModIntIiLi1000000007EEC2Ex(ptr noundef nonnull align 4 dereferenceable(4) %41, i64 noundef 0)
  %42 = getelementptr inbounds i8, ptr %5, i64 8
  call void @_ZN6ModIntIiLi1000000007EEC2Ex(ptr noundef nonnull align 4 dereferenceable(4) %42, i64 noundef 1)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  call void @_ZNSaI6ModIntIiLi1000000007EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  invoke void @_ZNSt6vectorI6ModIntIiLi1000000007EESaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr nonnull %5, i64 3, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %43 unwind label %88

43:                                               ; preds = %0
  invoke void @_ZN10PolynomialI6ModIntIiLi1000000007EEEC2ERKSt6vectorIS1_SaIS1_EE(ptr noundef nonnull align 8 dereferenceable(28) %3, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %44 unwind label %90

44:                                               ; preds = %43
  call void @_ZNSt6vectorI6ModIntIiLi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @_ZNSt15__new_allocatorI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  invoke void @_ZN6ModIntIiLi1000000007EEC2Ex(ptr noundef nonnull align 4 dereferenceable(4) %9, i64 noundef 0)
          to label %45 unwind label %93

45:                                               ; preds = %44
  %46 = getelementptr inbounds i8, ptr %9, i64 4
  invoke void @_ZN6ModIntIiLi1000000007EEC2Ex(ptr noundef nonnull align 4 dereferenceable(4) %46, i64 noundef 1)
          to label %47 unwind label %93

47:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #6
  call void @_ZNSaI6ModIntIiLi1000000007EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  invoke void @_ZNSt6vectorI6ModIntIiLi1000000007EESaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr nonnull %9, i64 2, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %48 unwind label %95

48:                                               ; preds = %47
  invoke void @_ZN10PolynomialI6ModIntIiLi1000000007EEEC2ERKSt6vectorIS1_SaIS1_EE(ptr noundef nonnull align 8 dereferenceable(28) %7, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %49 unwind label %97

49:                                               ; preds = %48
  call void @_ZNSt6vectorI6ModIntIiLi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @_ZNSt15__new_allocatorI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #6
  %50 = load i32, ptr %1, align 4, !tbaa !9
  %51 = add nsw i32 %50, 1
  %52 = sext i32 %51 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #6
  call void @_ZNSaI10PolynomialI6ModIntIiLi1000000007EEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  invoke void @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EEC2EmRKS4_(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %52, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %53 unwind label %101

53:                                               ; preds = %49
  call void @_ZNSt15__new_allocatorI10PolynomialI6ModIntIiLi1000000007EEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #6
  %54 = load i32, ptr %1, align 4, !tbaa !9
  %55 = add nsw i32 %54, 1
  %56 = sext i32 %55 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #6
  call void @_ZNSaI10PolynomialI6ModIntIiLi1000000007EEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  invoke void @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EEC2EmRKS4_(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %56, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %57 unwind label %103

57:                                               ; preds = %53
  call void @_ZNSt15__new_allocatorI10PolynomialI6ModIntIiLi1000000007EEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #6
  invoke void @_ZN6ModIntIiLi1000000007EEC2Ex(ptr noundef nonnull align 4 dereferenceable(4) %17, i64 noundef 1)
          to label %58 unwind label %105

58:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %18) #6
  call void @_ZNSaI6ModIntIiLi1000000007EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #6
  invoke void @_ZNSt6vectorI6ModIntIiLi1000000007EESaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr nonnull %17, i64 1, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %59 unwind label %107

59:                                               ; preds = %58
  invoke void @_ZN10PolynomialI6ModIntIiLi1000000007EEEC2ERKSt6vectorIS1_SaIS1_EE(ptr noundef nonnull align 8 dereferenceable(28) %15, ptr noundef nonnull align 8 dereferenceable(24) %16)
          to label %60 unwind label %109

60:                                               ; preds = %59
  %61 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 0) #6
  %62 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZN10PolynomialI6ModIntIiLi1000000007EEEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(28) %61, ptr noundef nonnull align 8 dereferenceable(28) %15) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %15) #6
  call void @_ZNSt6vectorI6ModIntIiLi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  call void @_ZNSt15__new_allocatorI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %19) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %20) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #6
  invoke void @_ZN6ModIntIiLi1000000007EEC2Ex(ptr noundef nonnull align 4 dereferenceable(4) %21, i64 noundef 0)
          to label %63 unwind label %113

63:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %22) #6
  call void @_ZNSaI6ModIntIiLi1000000007EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #6
  invoke void @_ZNSt6vectorI6ModIntIiLi1000000007EESaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr nonnull %21, i64 1, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %64 unwind label %115

64:                                               ; preds = %63
  invoke void @_ZN10PolynomialI6ModIntIiLi1000000007EEEC2ERKSt6vectorIS1_SaIS1_EE(ptr noundef nonnull align 8 dereferenceable(28) %19, ptr noundef nonnull align 8 dereferenceable(24) %20)
          to label %65 unwind label %117

65:                                               ; preds = %64
  %66 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef 0) #6
  %67 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZN10PolynomialI6ModIntIiLi1000000007EEEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(28) %66, ptr noundef nonnull align 8 dereferenceable(28) %19) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %19) #6
  call void @_ZNSt6vectorI6ModIntIiLi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  call void @_ZNSt15__new_allocatorI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #6
  %68 = load i32, ptr %1, align 4, !tbaa !9
  %.not81 = icmp slt i32 %68, 1
  br i1 %.not81, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %65
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %23) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %24) #6
  %69 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 1) #6
  %70 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 0) #6
  invoke void @_ZN10PolynomialI6ModIntIiLi1000000007EEEplERKS2_(ptr dead_on_unwind nonnull writable sret(%class.Polynomial) align 8 %24, ptr noundef nonnull align 8 dereferenceable(28) %69, ptr noundef nonnull align 8 dereferenceable(28) %70)
          to label %71 unwind label %.loopexit.split-lp

71:                                               ; preds = %.lr.ph.preheader
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %25) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %26) #6
  %72 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef 0) #6
  invoke void @_ZN10PolynomialI6ModIntIiLi1000000007EEEmlERKS2_(ptr dead_on_unwind nonnull writable sret(%class.Polynomial) align 8 %26, ptr noundef nonnull align 8 dereferenceable(28) %72, ptr noundef nonnull align 8 dereferenceable(28) %7)
          to label %73 unwind label %.loopexit.split-lp87

73:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %27) #6
  invoke void @_ZN6ModIntIiLi1000000007EEC2Ex(ptr noundef nonnull align 4 dereferenceable(4) %27, i64 noundef 2)
          to label %74 unwind label %.loopexit.split-lp92

74:                                               ; preds = %73
  invoke void @_ZN10PolynomialI6ModIntIiLi1000000007EEEmlERKS1_(ptr dead_on_unwind nonnull writable sret(%class.Polynomial) align 8 %25, ptr noundef nonnull align 8 dereferenceable(28) %26, ptr noundef nonnull align 4 dereferenceable(4) %27)
          to label %75 unwind label %.loopexit.split-lp92

75:                                               ; preds = %74
  invoke void @_ZN10PolynomialI6ModIntIiLi1000000007EEEplERKS2_(ptr dead_on_unwind nonnull writable sret(%class.Polynomial) align 8 %23, ptr noundef nonnull align 8 dereferenceable(28) %24, ptr noundef nonnull align 8 dereferenceable(28) %25)
          to label %76 unwind label %.loopexit.split-lp97

76:                                               ; preds = %75
  %77 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 1) #6
  %78 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZN10PolynomialI6ModIntIiLi1000000007EEEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(28) %77, ptr noundef nonnull align 8 dereferenceable(28) %23) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %23) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %26) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %26) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %25) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %24) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %24) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %23) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %30) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %31) #6
  %79 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef 1) #6
  %80 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 0) #6
  invoke void @_ZN10PolynomialI6ModIntIiLi1000000007EEEplERKS2_(ptr dead_on_unwind nonnull writable sret(%class.Polynomial) align 8 %31, ptr noundef nonnull align 8 dereferenceable(28) %79, ptr noundef nonnull align 8 dereferenceable(28) %80)
          to label %81 unwind label %.loopexit.split-lp112

81:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %32) #6
  %82 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef 0) #6
  invoke void @_ZN10PolynomialI6ModIntIiLi1000000007EEEmlERKS2_(ptr dead_on_unwind nonnull writable sret(%class.Polynomial) align 8 %32, ptr noundef nonnull align 8 dereferenceable(28) %82, ptr noundef nonnull align 8 dereferenceable(28) %7)
          to label %83 unwind label %.loopexit.split-lp117

83:                                               ; preds = %81
  invoke void @_ZN10PolynomialI6ModIntIiLi1000000007EEEplERKS2_(ptr dead_on_unwind nonnull writable sret(%class.Polynomial) align 8 %30, ptr noundef nonnull align 8 dereferenceable(28) %31, ptr noundef nonnull align 8 dereferenceable(28) %32)
          to label %84 unwind label %.loopexit.split-lp122

84:                                               ; preds = %83
  %85 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef 1) #6
  %86 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZN10PolynomialI6ModIntIiLi1000000007EEEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(28) %85, ptr noundef nonnull align 8 dereferenceable(28) %30) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %30) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %32) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %32) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %31) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %31) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %30) #6
  %87 = load i32, ptr %1, align 4, !tbaa !9
  %.not.not.peel = icmp sgt i32 %87, 1
  br i1 %.not.not.peel, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %151, %84, %65
  %.lcssa = phi i32 [ %68, %65 ], [ %87, %84 ], [ %154, %151 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %33) #6
  invoke void @_ZN10ComboUtilsI6ModIntIiLi1000000007EEEC2Ei(ptr noundef nonnull align 8 dereferenceable(28) %33, i32 noundef %.lcssa)
          to label %159 unwind label %169

88:                                               ; preds = %0
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %92

90:                                               ; preds = %43
  %91 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorI6ModIntIiLi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  br label %92

92:                                               ; preds = %90, %88
  %.pn = phi { ptr, i32 } [ %91, %90 ], [ %89, %88 ]
  call void @_ZNSt15__new_allocatorI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  br label %181

93:                                               ; preds = %45, %44
  %94 = landingpad { ptr, i32 }
          cleanup
  br label %100

95:                                               ; preds = %47
  %96 = landingpad { ptr, i32 }
          cleanup
  br label %99

97:                                               ; preds = %48
  %98 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorI6ModIntIiLi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  br label %99

99:                                               ; preds = %97, %95
  %.pn45 = phi { ptr, i32 } [ %98, %97 ], [ %96, %95 ]
  call void @_ZNSt15__new_allocatorI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #6
  br label %100

100:                                              ; preds = %99, %93
  %.pn45.pn = phi { ptr, i32 } [ %.pn45, %99 ], [ %94, %93 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  br label %180

101:                                              ; preds = %49
  %102 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorI10PolynomialI6ModIntIiLi1000000007EEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #6
  br label %179

103:                                              ; preds = %53
  %104 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorI10PolynomialI6ModIntIiLi1000000007EEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #6
  br label %178

105:                                              ; preds = %57
  %106 = landingpad { ptr, i32 }
          cleanup
  br label %112

107:                                              ; preds = %58
  %108 = landingpad { ptr, i32 }
          cleanup
  br label %111

109:                                              ; preds = %59
  %110 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorI6ModIntIiLi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  br label %111

111:                                              ; preds = %109, %107
  %.pn48 = phi { ptr, i32 } [ %110, %109 ], [ %108, %107 ]
  call void @_ZNSt15__new_allocatorI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #6
  br label %112

112:                                              ; preds = %111, %105
  %.pn48.pn = phi { ptr, i32 } [ %.pn48, %111 ], [ %106, %105 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #6
  br label %177

113:                                              ; preds = %60
  %114 = landingpad { ptr, i32 }
          cleanup
  br label %120

115:                                              ; preds = %63
  %116 = landingpad { ptr, i32 }
          cleanup
  br label %119

117:                                              ; preds = %64
  %118 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorI6ModIntIiLi1000000007EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  br label %119

119:                                              ; preds = %117, %115
  %.pn51 = phi { ptr, i32 } [ %118, %117 ], [ %116, %115 ]
  call void @_ZNSt15__new_allocatorI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %22) #6
  br label %120

120:                                              ; preds = %119, %113
  %.pn51.pn = phi { ptr, i32 } [ %.pn51, %119 ], [ %114, %113 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #6
  br label %177

.lr.ph:                                           ; preds = %84, %151
  %indvars.iv = phi i64 [ %indvars.iv.next, %151 ], [ 2, %84 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %23) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %24) #6
  %121 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv) #6
  %122 = add nsw i64 %indvars.iv, -1
  %123 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %122) #6
  invoke void @_ZN10PolynomialI6ModIntIiLi1000000007EEEplERKS2_(ptr dead_on_unwind nonnull writable sret(%class.Polynomial) align 8 %24, ptr noundef nonnull align 8 dereferenceable(28) %121, ptr noundef nonnull align 8 dereferenceable(28) %123)
          to label %124 unwind label %.loopexit

124:                                              ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %25) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %26) #6
  %125 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %122) #6
  invoke void @_ZN10PolynomialI6ModIntIiLi1000000007EEEmlERKS2_(ptr dead_on_unwind nonnull writable sret(%class.Polynomial) align 8 %26, ptr noundef nonnull align 8 dereferenceable(28) %125, ptr noundef nonnull align 8 dereferenceable(28) %7)
          to label %126 unwind label %.loopexit86

126:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %27) #6
  invoke void @_ZN6ModIntIiLi1000000007EEC2Ex(ptr noundef nonnull align 4 dereferenceable(4) %27, i64 noundef 2)
          to label %127 unwind label %.loopexit91

127:                                              ; preds = %126
  invoke void @_ZN10PolynomialI6ModIntIiLi1000000007EEEmlERKS1_(ptr dead_on_unwind nonnull writable sret(%class.Polynomial) align 8 %25, ptr noundef nonnull align 8 dereferenceable(28) %26, ptr noundef nonnull align 4 dereferenceable(4) %27)
          to label %128 unwind label %.loopexit91

128:                                              ; preds = %127
  invoke void @_ZN10PolynomialI6ModIntIiLi1000000007EEEplERKS2_(ptr dead_on_unwind nonnull writable sret(%class.Polynomial) align 8 %23, ptr noundef nonnull align 8 dereferenceable(28) %24, ptr noundef nonnull align 8 dereferenceable(28) %25)
          to label %129 unwind label %.loopexit96

129:                                              ; preds = %128
  %130 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv) #6
  %131 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZN10PolynomialI6ModIntIiLi1000000007EEEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(28) %130, ptr noundef nonnull align 8 dereferenceable(28) %23) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %23) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %26) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %26) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %25) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %24) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %24) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %23) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %28) #6
  %132 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %29) #6
  %133 = add nsw i64 %indvars.iv, -2
  %134 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %133) #6
  invoke void @_ZN10PolynomialI6ModIntIiLi1000000007EEEmlERKS2_(ptr dead_on_unwind nonnull writable sret(%class.Polynomial) align 8 %29, ptr noundef nonnull align 8 dereferenceable(28) %134, ptr noundef nonnull align 8 dereferenceable(28) %3)
          to label %135 unwind label %140

135:                                              ; preds = %129
  invoke void @_ZN10PolynomialI6ModIntIiLi1000000007EEEplERKS2_(ptr dead_on_unwind nonnull writable sret(%class.Polynomial) align 8 %28, ptr noundef nonnull align 8 dereferenceable(28) %132, ptr noundef nonnull align 8 dereferenceable(28) %29)
          to label %143 unwind label %141

.loopexit:                                        ; preds = %.lr.ph
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %139

.loopexit.split-lp:                               ; preds = %.lr.ph.preheader
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %139

.loopexit86:                                      ; preds = %124
  %lpad.loopexit88 = landingpad { ptr, i32 }
          cleanup
  br label %138

.loopexit.split-lp87:                             ; preds = %71
  %lpad.loopexit.split-lp89 = landingpad { ptr, i32 }
          cleanup
  br label %138

.loopexit91:                                      ; preds = %126, %127
  %lpad.loopexit93 = landingpad { ptr, i32 }
          cleanup
  br label %137

.loopexit.split-lp92:                             ; preds = %73, %74
  %lpad.loopexit.split-lp94 = landingpad { ptr, i32 }
          cleanup
  br label %137

.loopexit96:                                      ; preds = %128
  %lpad.loopexit98 = landingpad { ptr, i32 }
          cleanup
  br label %136

.loopexit.split-lp97:                             ; preds = %75
  %lpad.loopexit.split-lp99 = landingpad { ptr, i32 }
          cleanup
  br label %136

136:                                              ; preds = %.loopexit.split-lp97, %.loopexit96
  %lpad.phi100 = phi { ptr, i32 } [ %lpad.loopexit98, %.loopexit96 ], [ %lpad.loopexit.split-lp99, %.loopexit.split-lp97 ]
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %25) #6
  br label %137

137:                                              ; preds = %.loopexit91, %.loopexit.split-lp92, %136
  %.pn57 = phi { ptr, i32 } [ %lpad.phi100, %136 ], [ %lpad.loopexit93, %.loopexit91 ], [ %lpad.loopexit.split-lp94, %.loopexit.split-lp92 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %26) #6
  br label %138

138:                                              ; preds = %.loopexit86, %.loopexit.split-lp87, %137
  %.pn57.pn = phi { ptr, i32 } [ %.pn57, %137 ], [ %lpad.loopexit88, %.loopexit86 ], [ %lpad.loopexit.split-lp89, %.loopexit.split-lp87 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %26) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %25) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %24) #6
  br label %139

139:                                              ; preds = %.loopexit, %.loopexit.split-lp, %138
  %.pn57.pn.pn = phi { ptr, i32 } [ %.pn57.pn, %138 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %24) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %23) #6
  br label %177

140:                                              ; preds = %129
  %lpad.loopexit103 = landingpad { ptr, i32 }
          cleanup
  br label %142

141:                                              ; preds = %135
  %lpad.loopexit108 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %29) #6
  br label %142

142:                                              ; preds = %141, %140
  %.pn61 = phi { ptr, i32 } [ %lpad.loopexit108, %141 ], [ %lpad.loopexit103, %140 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %29) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %28) #6
  br label %177

143:                                              ; preds = %135
  %144 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv) #6
  %145 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZN10PolynomialI6ModIntIiLi1000000007EEEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(28) %144, ptr noundef nonnull align 8 dereferenceable(28) %28) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %28) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %29) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %29) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %28) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %30) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %31) #6
  %146 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %indvars.iv) #6
  %147 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %122) #6
  invoke void @_ZN10PolynomialI6ModIntIiLi1000000007EEEplERKS2_(ptr dead_on_unwind nonnull writable sret(%class.Polynomial) align 8 %31, ptr noundef nonnull align 8 dereferenceable(28) %146, ptr noundef nonnull align 8 dereferenceable(28) %147)
          to label %148 unwind label %.loopexit111

148:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %32) #6
  %149 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %122) #6
  invoke void @_ZN10PolynomialI6ModIntIiLi1000000007EEEmlERKS2_(ptr dead_on_unwind nonnull writable sret(%class.Polynomial) align 8 %32, ptr noundef nonnull align 8 dereferenceable(28) %149, ptr noundef nonnull align 8 dereferenceable(28) %7)
          to label %150 unwind label %.loopexit116

150:                                              ; preds = %148
  invoke void @_ZN10PolynomialI6ModIntIiLi1000000007EEEplERKS2_(ptr dead_on_unwind nonnull writable sret(%class.Polynomial) align 8 %30, ptr noundef nonnull align 8 dereferenceable(28) %31, ptr noundef nonnull align 8 dereferenceable(28) %32)
          to label %151 unwind label %.loopexit121

151:                                              ; preds = %150
  %152 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %indvars.iv) #6
  %153 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZN10PolynomialI6ModIntIiLi1000000007EEEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(28) %152, ptr noundef nonnull align 8 dereferenceable(28) %30) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %30) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %32) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %32) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %31) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %31) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %30) #6
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %154 = load i32, ptr %1, align 4, !tbaa !9
  %155 = sext i32 %154 to i64
  %.not.not = icmp slt i64 %indvars.iv, %155
  br i1 %.not.not, label %.lr.ph, label %._crit_edge, !llvm.loop !11

.loopexit111:                                     ; preds = %143
  %lpad.loopexit113 = landingpad { ptr, i32 }
          cleanup
  br label %158

.loopexit.split-lp112:                            ; preds = %76
  %lpad.loopexit.split-lp114 = landingpad { ptr, i32 }
          cleanup
  br label %158

.loopexit116:                                     ; preds = %148
  %lpad.loopexit118 = landingpad { ptr, i32 }
          cleanup
  br label %157

.loopexit.split-lp117:                            ; preds = %81
  %lpad.loopexit.split-lp119 = landingpad { ptr, i32 }
          cleanup
  br label %157

.loopexit121:                                     ; preds = %150
  %lpad.loopexit123 = landingpad { ptr, i32 }
          cleanup
  br label %156

.loopexit.split-lp122:                            ; preds = %83
  %lpad.loopexit.split-lp124 = landingpad { ptr, i32 }
          cleanup
  br label %156

156:                                              ; preds = %.loopexit.split-lp122, %.loopexit121
  %lpad.phi125 = phi { ptr, i32 } [ %lpad.loopexit123, %.loopexit121 ], [ %lpad.loopexit.split-lp124, %.loopexit.split-lp122 ]
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %32) #6
  br label %157

157:                                              ; preds = %.loopexit116, %.loopexit.split-lp117, %156
  %.pn63 = phi { ptr, i32 } [ %lpad.phi125, %156 ], [ %lpad.loopexit118, %.loopexit116 ], [ %lpad.loopexit.split-lp119, %.loopexit.split-lp117 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %32) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %31) #6
  br label %158

158:                                              ; preds = %.loopexit111, %.loopexit.split-lp112, %157
  %.pn63.pn = phi { ptr, i32 } [ %.pn63, %157 ], [ %lpad.loopexit113, %.loopexit111 ], [ %lpad.loopexit.split-lp114, %.loopexit.split-lp112 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %31) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %30) #6
  br label %177

159:                                              ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %34) #6
  %160 = load i32, ptr %1, align 4, !tbaa !9
  %161 = sext i32 %160 to i64
  %162 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %161) #6
  invoke void @_ZN10PolynomialI6ModIntIiLi1000000007EEE16getHitPolynomialEiRKS2_RK10ComboUtilsIS1_E(ptr dead_on_unwind nonnull writable sret(%class.Polynomial) align 8 %34, i32 noundef %160, ptr noundef nonnull align 8 dereferenceable(28) %162, ptr noundef nonnull align 8 dereferenceable(28) %33)
          to label %163 unwind label %171

163:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %35) #6
  %164 = load i32, ptr %2, align 4, !tbaa !9
  %165 = invoke i32 @_ZNK10PolynomialI6ModIntIiLi1000000007EEE7getCoefEi(ptr noundef nonnull align 8 dereferenceable(28) %34, i32 noundef %164)
          to label %166 unwind label %173

166:                                              ; preds = %163
  store i32 %165, ptr %35, align 4
  %167 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRK6ModIntIiLi1000000007EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 4 dereferenceable(4) %35)
          to label %168 unwind label %173

168:                                              ; preds = %166
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %35) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %34) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %34) #6
  call void @_ZN10ComboUtilsI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %33) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %33) #6
  call void @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #6
  call void @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  ret i32 0

169:                                              ; preds = %._crit_edge
  %170 = landingpad { ptr, i32 }
          cleanup
  br label %176

171:                                              ; preds = %159
  %172 = landingpad { ptr, i32 }
          cleanup
  br label %175

173:                                              ; preds = %166, %163
  %174 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %35) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %34) #6
  br label %175

175:                                              ; preds = %173, %171
  %.pn54 = phi { ptr, i32 } [ %174, %173 ], [ %172, %171 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %34) #6
  call void @_ZN10ComboUtilsI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %33) #6
  br label %176

176:                                              ; preds = %175, %169
  %.pn54.pn = phi { ptr, i32 } [ %.pn54, %175 ], [ %170, %169 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %33) #6
  br label %177

177:                                              ; preds = %139, %142, %158, %176, %120, %112
  %.pn63.pn.pn.pn = phi { ptr, i32 } [ %.pn54.pn, %176 ], [ %.pn51.pn, %120 ], [ %.pn48.pn, %112 ], [ %.pn63.pn, %158 ], [ %.pn61, %142 ], [ %.pn57.pn.pn, %139 ]
  call void @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  br label %178

178:                                              ; preds = %177, %103
  %.pn63.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn63.pn.pn.pn, %177 ], [ %104, %103 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #6
  call void @_ZNSt6vectorI10PolynomialI6ModIntIiLi1000000007EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  br label %179

179:                                              ; preds = %178, %101
  %.pn63.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn63.pn.pn.pn.pn, %178 ], [ %102, %101 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %7) #6
  br label %180

180:                                              ; preds = %179, %100
  %.pn63.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn63.pn.pn.pn.pn.pn, %179 ], [ %.pn45.pn, %100 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  call void @_ZN10PolynomialI6ModIntIiLi1000000007EEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %3) #6
  br label %181

181:                                              ; preds = %180, %92
  %.pn63.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn63.pn.pn.pn.pn.pn.pn, %180 ], [ %.pn, %92 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn63.pn.pn.pn.pn.pn.pn.pn
}

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10PolynomialI6ModIntIiLi1000000007EEEplERKS2_(ptr dead_on_unwind noalias writable sret(%class.Polynomial) align 8, ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10PolynomialI6ModIntIiLi1000000007EEEmlERKS2_(ptr dead_on_unwind noalias writable sret(%class.Polynomial) align 8, ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10PolynomialI6ModIntIiLi1000000007EEEmlERKS1_(ptr dead_on_unwind noalias writable sret(%class.Polynomial) align 8, ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10ComboUtilsI6ModIntIiLi1000000007EEEC2Ei(ptr noundef nonnull align 8 dereferenceable(28), i32 noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10PolynomialI6ModIntIiLi1000000007EEE16getHitPolynomialEiRKS2_RK10ComboUtilsIS1_E(ptr dead_on_unwind noalias writable sret(%class.Polynomial) align 8, i32 noundef, ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZNK10PolynomialI6ModIntIiLi1000000007EEE7getCoefEi(ptr noundef nonnull align 8 dereferenceable(28), i32 noundef) local_unnamed_addr #3 align 2

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

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

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

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

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


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