; LLVM IR from ShahjalalShohag/code-library :: Math (The Slime Trick)

; 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.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<modint<998244353>, std::allocator<modint<998244353>>>::_Vector_impl" }
%"struct.std::_Vector_base<modint<998244353>, std::allocator<modint<998244353>>>::_Vector_impl" = type { %"struct.std::_Vector_base<modint<998244353>, std::allocator<modint<998244353>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<modint<998244353>, std::allocator<modint<998244353>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.modint = type { i32 }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::vector<modint<998244353>>, std::allocator<std::vector<modint<998244353>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<modint<998244353>>, std::allocator<std::vector<modint<998244353>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<modint<998244353>>, std::allocator<std::vector<modint<998244353>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<modint<998244353>>, std::allocator<std::vector<modint<998244353>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.2" = type { i8 }
%"class.std::allocator" = type { i8 }

@a = external dso_local global [300009 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

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

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #6 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %struct.modint, align 4
  %4 = alloca i32, align 4
  %5 = alloca %struct.modint, align 4
  %6 = alloca %"class.std::vector.0", align 8
  %7 = alloca %"class.std::allocator.2", align 1
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::vector", align 8
  %12 = alloca %struct.modint, align 4
  %13 = alloca %"class.std::allocator", align 1
  %14 = alloca %struct.modint, align 4
  %15 = alloca %struct.modint, align 4
  %16 = alloca %struct.modint, align 4
  %17 = alloca %struct.modint, align 4
  %18 = alloca %struct.modint, align 4
  %19 = alloca %struct.modint, align 4
  %20 = alloca %struct.modint, align 4
  %21 = alloca %struct.modint, align 4
  %22 = alloca %struct.modint, align 4
  %23 = alloca %struct.modint, align 4
  %24 = alloca %struct.modint, align 4
  %25 = alloca %struct.modint, align 4
  %26 = alloca %struct.modint, align 4
  %27 = alloca %struct.modint, align 4
  %28 = alloca %struct.modint, align 4
  %29 = alloca %struct.modint, align 4
  %30 = alloca %struct.modint, align 4
  %31 = alloca %struct.modint, align 4
  %32 = alloca %struct.modint, align 4
  %33 = alloca %struct.modint, align 4
  %34 = alloca %struct.modint, align 4
  %35 = alloca %struct.modint, align 4
  %36 = alloca %"class.std::vector", align 8
  %37 = alloca %"class.std::vector.0", align 8
  %38 = alloca %struct.modint, align 4
  %39 = alloca i32, align 4
  %40 = alloca %struct.modint, align 4
  %41 = alloca %struct.modint, align 4
  %42 = alloca %struct.modint, align 4
  %43 = alloca %struct.modint, align 4
  %44 = alloca %struct.modint, align 4
  %45 = alloca %struct.modint, align 4
  store i32 0, ptr %1, align 4
  %46 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %47 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %48 = getelementptr i8, ptr %47, i64 -24
  %49 = load i64, ptr %48, align 8
  %50 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %49
  %51 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %50, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  %52 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  call void @_ZN6modintILi998244353EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  store i32 0, ptr %4, align 4, !tbaa !8
  br label %53

53:                                               ; preds = %70, %0
  %54 = load i32, ptr %4, align 4, !tbaa !8
  %55 = load i32, ptr %2, align 4, !tbaa !8
  %56 = icmp slt i32 %54, %55
  br i1 %56, label %58, label %57

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

58:                                               ; preds = %53
  %59 = load i32, ptr %4, align 4, !tbaa !8
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [300009 x i32], ptr @a, i64 0, i64 %60
  %62 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %61)
  %63 = load i32, ptr %4, align 4, !tbaa !8
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [300009 x i32], ptr @a, i64 0, i64 %64
  %66 = load i32, ptr %65, align 4, !tbaa !8
  call void @_ZN6modintILi998244353EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %5, i32 noundef %66)
  %67 = getelementptr inbounds %struct.modint, ptr %5, i32 0, i32 0
  %68 = load i32, ptr %67, align 4
  %69 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6modintILi998244353EEpLES0_(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 %68)
  br label %70

70:                                               ; preds = %58
  %71 = load i32, ptr %4, align 4, !tbaa !8
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %4, align 4, !tbaa !8
  br label %53, !llvm.loop !11

73:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #8
  %74 = getelementptr inbounds %struct.modint, ptr %3, i32 0, i32 0
  %75 = load i32, ptr %74, align 4, !tbaa !13
  %76 = add nsw i32 %75, 1
  %77 = sext i32 %76 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #8
  call void @_ZNSaISt6vectorI6modintILi998244353EESaIS1_EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
  invoke void @_ZNSt6vectorIS_I6modintILi998244353EESaIS1_EESaIS3_EEC2EmRKS4_(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %77, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %78 unwind label %85

78:                                               ; preds = %73
  call void @_ZNSt15__new_allocatorISt6vectorI6modintILi998244353EESaIS2_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 0, ptr %10, align 4, !tbaa !8
  br label %79

79:                                               ; preds = %202, %78
  %80 = load i32, ptr %10, align 4, !tbaa !8
  %81 = getelementptr inbounds %struct.modint, ptr %3, i32 0, i32 0
  %82 = load i32, ptr %81, align 4, !tbaa !13
  %83 = icmp sle i32 %80, %82
  br i1 %83, label %89, label %84

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

85:                                               ; preds = %73
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %8, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %9, align 4
  call void @_ZNSt15__new_allocatorISt6vectorI6modintILi998244353EESaIS2_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #8
  br label %290

89:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  invoke void @_ZN6modintILi998244353EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %12, i32 noundef 0)
          to label %90 unwind label %103

90:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #8
  call void @_ZNSaI6modintILi998244353EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #8
  invoke void @_ZNSt6vectorI6modintILi998244353EESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 4, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %91 unwind label %107

91:                                               ; preds = %90
  call void @_ZNSt15__new_allocatorI6modintILi998244353EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  %92 = load i32, ptr %10, align 4, !tbaa !8
  %93 = icmp ne i32 %92, 0
  br i1 %93, label %94, label %116

94:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  %95 = load i32, ptr %10, align 4, !tbaa !8
  invoke void @_ZN6modintILi998244353EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %15, i32 noundef %95)
          to label %96 unwind label %112

96:                                               ; preds = %94
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %3, i64 4, i1 false), !tbaa.struct !15
  %97 = getelementptr inbounds %struct.modint, ptr %16, i32 0, i32 0
  %98 = load i32, ptr %97, align 4
  %99 = invoke i32 @_ZNK6modintILi998244353EEdvES0_(ptr noundef nonnull align 4 dereferenceable(4) %15, i32 %98)
          to label %100 unwind label %112

100:                                              ; preds = %96
  %101 = getelementptr inbounds %struct.modint, ptr %14, i32 0, i32 0
  store i32 %99, ptr %101, align 4
  %102 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi998244353EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 0) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %102, ptr align 4 %14, i64 4, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %116

103:                                              ; preds = %89
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %8, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %9, align 4
  br label %111

107:                                              ; preds = %90
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %8, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %9, align 4
  call void @_ZNSt15__new_allocatorI6modintILi998244353EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #8
  br label %111

111:                                              ; preds = %107, %103
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %214

112:                                              ; preds = %96, %94
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %8, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %213

116:                                              ; preds = %100, %91
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  %117 = load i32, ptr %10, align 4, !tbaa !8
  invoke void @_ZN6modintILi998244353EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %22, i32 noundef %117)
          to label %118 unwind label %179

118:                                              ; preds = %116
  %119 = getelementptr inbounds %struct.modint, ptr %22, i32 0, i32 0
  %120 = load i32, ptr %119, align 4
  %121 = invoke i32 @_ZNK6modintILi998244353EEmiES0_(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 %120)
          to label %122 unwind label %179

122:                                              ; preds = %118
  %123 = getelementptr inbounds %struct.modint, ptr %21, i32 0, i32 0
  store i32 %121, ptr %123, align 4
  %124 = load i32, ptr %2, align 4, !tbaa !8
  %125 = sub nsw i32 %124, 2
  invoke void @_ZN6modintILi998244353EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %23, i32 noundef %125)
          to label %126 unwind label %179

126:                                              ; preds = %122
  %127 = getelementptr inbounds %struct.modint, ptr %23, i32 0, i32 0
  %128 = load i32, ptr %127, align 4
  %129 = invoke i32 @_ZNK6modintILi998244353EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %21, i32 %128)
          to label %130 unwind label %179

130:                                              ; preds = %126
  %131 = getelementptr inbounds %struct.modint, ptr %20, i32 0, i32 0
  store i32 %129, ptr %131, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 4 %3, i64 4, i1 false), !tbaa.struct !15
  %132 = getelementptr inbounds %struct.modint, ptr %24, i32 0, i32 0
  %133 = load i32, ptr %132, align 4
  %134 = invoke i32 @_ZNK6modintILi998244353EEdvES0_(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 %133)
          to label %135 unwind label %179

135:                                              ; preds = %130
  %136 = getelementptr inbounds %struct.modint, ptr %19, i32 0, i32 0
  store i32 %134, ptr %136, align 4
  %137 = load i32, ptr %2, align 4, !tbaa !8
  %138 = sub nsw i32 %137, 1
  invoke void @_ZN6modintILi998244353EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %25, i32 noundef %138)
          to label %139 unwind label %179

139:                                              ; preds = %135
  %140 = getelementptr inbounds %struct.modint, ptr %25, i32 0, i32 0
  %141 = load i32, ptr %140, align 4
  %142 = invoke i32 @_ZNK6modintILi998244353EEdvES0_(ptr noundef nonnull align 4 dereferenceable(4) %19, i32 %141)
          to label %143 unwind label %179

143:                                              ; preds = %139
  %144 = getelementptr inbounds %struct.modint, ptr %18, i32 0, i32 0
  store i32 %142, ptr %144, align 4
  invoke void @_ZN6modintILi998244353EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %26, i32 noundef 1)
          to label %145 unwind label %179

145:                                              ; preds = %143
  %146 = getelementptr inbounds %struct.modint, ptr %26, i32 0, i32 0
  %147 = load i32, ptr %146, align 4
  %148 = invoke i32 @_ZNK6modintILi998244353EEmiES0_(ptr noundef nonnull align 4 dereferenceable(4) %18, i32 %147)
          to label %149 unwind label %179

149:                                              ; preds = %145
  %150 = getelementptr inbounds %struct.modint, ptr %17, i32 0, i32 0
  store i32 %148, ptr %150, align 4
  %151 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi998244353EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 1) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %151, ptr align 4 %17, i64 4, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  %152 = load i32, ptr %10, align 4, !tbaa !8
  %153 = add nsw i32 %152, 1
  %154 = getelementptr inbounds %struct.modint, ptr %3, i32 0, i32 0
  %155 = load i32, ptr %154, align 4, !tbaa !13
  %156 = icmp sle i32 %153, %155
  br i1 %156, label %157, label %187

157:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  %158 = load i32, ptr %10, align 4, !tbaa !8
  invoke void @_ZN6modintILi998244353EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %30, i32 noundef %158)
          to label %159 unwind label %183

159:                                              ; preds = %157
  %160 = getelementptr inbounds %struct.modint, ptr %30, i32 0, i32 0
  %161 = load i32, ptr %160, align 4
  %162 = invoke i32 @_ZNK6modintILi998244353EEmiES0_(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 %161)
          to label %163 unwind label %183

163:                                              ; preds = %159
  %164 = getelementptr inbounds %struct.modint, ptr %29, i32 0, i32 0
  store i32 %162, ptr %164, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %31, ptr align 4 %3, i64 4, i1 false), !tbaa.struct !15
  %165 = getelementptr inbounds %struct.modint, ptr %31, i32 0, i32 0
  %166 = load i32, ptr %165, align 4
  %167 = invoke i32 @_ZNK6modintILi998244353EEdvES0_(ptr noundef nonnull align 4 dereferenceable(4) %29, i32 %166)
          to label %168 unwind label %183

168:                                              ; preds = %163
  %169 = getelementptr inbounds %struct.modint, ptr %28, i32 0, i32 0
  store i32 %167, ptr %169, align 4
  %170 = load i32, ptr %2, align 4, !tbaa !8
  %171 = sub nsw i32 %170, 1
  invoke void @_ZN6modintILi998244353EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %32, i32 noundef %171)
          to label %172 unwind label %183

172:                                              ; preds = %168
  %173 = getelementptr inbounds %struct.modint, ptr %32, i32 0, i32 0
  %174 = load i32, ptr %173, align 4
  %175 = invoke i32 @_ZNK6modintILi998244353EEdvES0_(ptr noundef nonnull align 4 dereferenceable(4) %28, i32 %174)
          to label %176 unwind label %183

176:                                              ; preds = %172
  %177 = getelementptr inbounds %struct.modint, ptr %27, i32 0, i32 0
  store i32 %175, ptr %177, align 4
  %178 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi998244353EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 2) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %178, ptr align 4 %27, i64 4, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  br label %187

179:                                              ; preds = %145, %143, %139, %135, %130, %126, %122, %118, %116
  %180 = landingpad { ptr, i32 }
          cleanup
  %181 = extractvalue { ptr, i32 } %180, 0
  store ptr %181, ptr %8, align 8
  %182 = extractvalue { ptr, i32 } %180, 1
  store i32 %182, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %213

183:                                              ; preds = %172, %168, %163, %159, %157
  %184 = landingpad { ptr, i32 }
          cleanup
  %185 = extractvalue { ptr, i32 } %184, 0
  store ptr %185, ptr %8, align 8
  %186 = extractvalue { ptr, i32 } %184, 1
  store i32 %186, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  br label %213

187:                                              ; preds = %176, %149
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #8
  %188 = load i32, ptr %10, align 4, !tbaa !8
  %189 = sub nsw i32 0, %188
  invoke void @_ZN6modintILi998244353EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %34, i32 noundef %189)
          to label %190 unwind label %205

190:                                              ; preds = %187
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %35, ptr align 4 %3, i64 4, i1 false), !tbaa.struct !15
  %191 = getelementptr inbounds %struct.modint, ptr %35, i32 0, i32 0
  %192 = load i32, ptr %191, align 4
  %193 = invoke i32 @_ZNK6modintILi998244353EEdvES0_(ptr noundef nonnull align 4 dereferenceable(4) %34, i32 %192)
          to label %194 unwind label %205

194:                                              ; preds = %190
  %195 = getelementptr inbounds %struct.modint, ptr %33, i32 0, i32 0
  store i32 %193, ptr %195, align 4
  %196 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi998244353EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 3) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %196, ptr align 4 %33, i64 4, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  %197 = load i32, ptr %10, align 4, !tbaa !8
  %198 = sext i32 %197 to i64
  %199 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I6modintILi998244353EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %198) #8
  %200 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI6modintILi998244353EESaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %199, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %201 unwind label %209

201:                                              ; preds = %194
  call void @_ZNSt6vectorI6modintILi998244353EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #8
  br label %202

202:                                              ; preds = %201
  %203 = load i32, ptr %10, align 4, !tbaa !8
  %204 = add nsw i32 %203, 1
  store i32 %204, ptr %10, align 4, !tbaa !8
  br label %79, !llvm.loop !16

205:                                              ; preds = %190, %187
  %206 = landingpad { ptr, i32 }
          cleanup
  %207 = extractvalue { ptr, i32 } %206, 0
  store ptr %207, ptr %8, align 8
  %208 = extractvalue { ptr, i32 } %206, 1
  store i32 %208, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  br label %213

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

213:                                              ; preds = %209, %205, %183, %179, %112
  call void @_ZNSt6vectorI6modintILi998244353EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  br label %214

214:                                              ; preds = %213, %111
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %289

215:                                              ; preds = %84
  call void @llvm.lifetime.start.p0(i64 24, ptr %36) #8
  invoke void @_ZNSt6vectorIS_I6modintILi998244353EESaIS1_EESaIS3_EEC2ERKS5_(ptr noundef nonnull align 8 dereferenceable(24) %37, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %216 unwind label %224

216:                                              ; preds = %215
  invoke void @_Z6ThomasSt6vectorIS_I6modintILi998244353EESaIS1_EESaIS3_EE(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %36, ptr noundef %37)
          to label %217 unwind label %228

217:                                              ; preds = %216
  call void @_ZNSt6vectorIS_I6modintILi998244353EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #8
  invoke void @_ZN6modintILi998244353EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %38, i32 noundef 0)
          to label %218 unwind label %232

218:                                              ; preds = %217
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #8
  store i32 0, ptr %39, align 4, !tbaa !8
  br label %219

219:                                              ; preds = %247, %218
  %220 = load i32, ptr %39, align 4, !tbaa !8
  %221 = load i32, ptr %2, align 4, !tbaa !8
  %222 = icmp slt i32 %220, %221
  br i1 %222, label %236, label %223

223:                                              ; preds = %219
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #8
  br label %254

224:                                              ; preds = %215
  %225 = landingpad { ptr, i32 }
          cleanup
  %226 = extractvalue { ptr, i32 } %225, 0
  store ptr %226, ptr %8, align 8
  %227 = extractvalue { ptr, i32 } %225, 1
  store i32 %227, ptr %9, align 4
  br label %288

228:                                              ; preds = %216
  %229 = landingpad { ptr, i32 }
          cleanup
  %230 = extractvalue { ptr, i32 } %229, 0
  store ptr %230, ptr %8, align 8
  %231 = extractvalue { ptr, i32 } %229, 1
  store i32 %231, ptr %9, align 4
  call void @_ZNSt6vectorIS_I6modintILi998244353EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #8
  br label %288

232:                                              ; preds = %279, %275, %217
  %233 = landingpad { ptr, i32 }
          cleanup
  %234 = extractvalue { ptr, i32 } %233, 0
  store ptr %234, ptr %8, align 8
  %235 = extractvalue { ptr, i32 } %233, 1
  store i32 %235, ptr %9, align 4
  br label %287

236:                                              ; preds = %219
  %237 = load i32, ptr %39, align 4, !tbaa !8
  %238 = sext i32 %237 to i64
  %239 = getelementptr inbounds [300009 x i32], ptr @a, i64 0, i64 %238
  %240 = load i32, ptr %239, align 4, !tbaa !8
  %241 = sext i32 %240 to i64
  %242 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi998244353EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %241) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %40, ptr align 4 %242, i64 4, i1 false), !tbaa.struct !15
  %243 = getelementptr inbounds %struct.modint, ptr %40, i32 0, i32 0
  %244 = load i32, ptr %243, align 4
  %245 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6modintILi998244353EEpLES0_(ptr noundef nonnull align 4 dereferenceable(4) %38, i32 %244)
          to label %246 unwind label %250

246:                                              ; preds = %236
  br label %247

247:                                              ; preds = %246
  %248 = load i32, ptr %39, align 4, !tbaa !8
  %249 = add nsw i32 %248, 1
  store i32 %249, ptr %39, align 4, !tbaa !8
  br label %219, !llvm.loop !17

250:                                              ; preds = %236
  %251 = landingpad { ptr, i32 }
          cleanup
  %252 = extractvalue { ptr, i32 } %251, 0
  store ptr %252, ptr %8, align 8
  %253 = extractvalue { ptr, i32 } %251, 1
  store i32 %253, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #8
  br label %287

254:                                              ; preds = %223
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #8
  %255 = load i32, ptr %2, align 4, !tbaa !8
  %256 = sub nsw i32 %255, 1
  %257 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi998244353EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef 0) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %43, ptr align 4 %257, i64 4, i1 false), !tbaa.struct !15
  %258 = getelementptr inbounds %struct.modint, ptr %43, i32 0, i32 0
  %259 = load i32, ptr %258, align 4
  %260 = invoke i32 @_ZmlILi998244353EE6modintIXT_EEiS1_(i32 noundef %256, i32 %259)
          to label %261 unwind label %283

261:                                              ; preds = %254
  %262 = getelementptr inbounds %struct.modint, ptr %42, i32 0, i32 0
  store i32 %260, ptr %262, align 4
  %263 = getelementptr inbounds %struct.modint, ptr %3, i32 0, i32 0
  %264 = load i32, ptr %263, align 4, !tbaa !13
  %265 = sext i32 %264 to i64
  %266 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi998244353EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %265) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %44, ptr align 4 %266, i64 4, i1 false), !tbaa.struct !15
  %267 = getelementptr inbounds %struct.modint, ptr %44, i32 0, i32 0
  %268 = load i32, ptr %267, align 4
  %269 = invoke i32 @_ZNK6modintILi998244353EEplES0_(ptr noundef nonnull align 4 dereferenceable(4) %42, i32 %268)
          to label %270 unwind label %283

270:                                              ; preds = %261
  %271 = getelementptr inbounds %struct.modint, ptr %41, i32 0, i32 0
  store i32 %269, ptr %271, align 4
  %272 = getelementptr inbounds %struct.modint, ptr %41, i32 0, i32 0
  %273 = load i32, ptr %272, align 4
  %274 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6modintILi998244353EEmIES0_(ptr noundef nonnull align 4 dereferenceable(4) %38, i32 %273)
          to label %275 unwind label %283

275:                                              ; preds = %270
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %45, ptr align 4 %38, i64 4, i1 false), !tbaa.struct !15
  %276 = getelementptr inbounds %struct.modint, ptr %45, i32 0, i32 0
  %277 = load i32, ptr %276, align 4
  %278 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsILi998244353EERSoS0_6modintIXT_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 %277)
          to label %279 unwind label %232

279:                                              ; preds = %275
  %280 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %278, i8 noundef signext 10)
          to label %281 unwind label %232

281:                                              ; preds = %279
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #8
  call void @_ZNSt6vectorI6modintILi998244353EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %36) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %36) #8
  call void @_ZNSt6vectorIS_I6modintILi998244353EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  %282 = load i32, ptr %1, align 4
  ret i32 %282

283:                                              ; preds = %270, %261, %254
  %284 = landingpad { ptr, i32 }
          cleanup
  %285 = extractvalue { ptr, i32 } %284, 0
  store ptr %285, ptr %8, align 8
  %286 = extractvalue { ptr, i32 } %284, 1
  store i32 %286, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #8
  br label %287

287:                                              ; preds = %283, %250, %232
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #8
  call void @_ZNSt6vectorI6modintILi998244353EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %36) #8
  br label %288

288:                                              ; preds = %287, %228, %224
  call void @llvm.lifetime.end.p0(i64 24, ptr %36) #8
  br label %289

289:                                              ; preds = %288, %214
  call void @_ZNSt6vectorIS_I6modintILi998244353EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  br label %290

290:                                              ; preds = %289, %85
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %291

291:                                              ; preds = %290
  %292 = load ptr, ptr %8, align 8
  %293 = load i32, ptr %9, align 4
  %294 = insertvalue { ptr, i32 } poison, ptr %292, 0
  %295 = insertvalue { ptr, i32 } %294, i32 %293, 1
  resume { ptr, i32 } %295
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZmlILi998244353EE6modintIXT_EEiS1_(i32 noundef, i32) #0

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #3

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

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

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

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

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

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


; 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.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<modint<998244353>, std::allocator<modint<998244353>>>::_Vector_impl" }
%"struct.std::_Vector_base<modint<998244353>, std::allocator<modint<998244353>>>::_Vector_impl" = type { %"struct.std::_Vector_base<modint<998244353>, std::allocator<modint<998244353>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<modint<998244353>, std::allocator<modint<998244353>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.modint = type { i32 }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::vector<modint<998244353>>, std::allocator<std::vector<modint<998244353>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<modint<998244353>>, std::allocator<std::vector<modint<998244353>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<modint<998244353>>, std::allocator<std::vector<modint<998244353>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<modint<998244353>>, std::allocator<std::vector<modint<998244353>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.2" = type { i8 }
%"class.std::allocator" = type { i8 }

@a = external dso_local global [300009 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN6modintILi998244353EEmIES0_(ptr noundef nonnull align 4 dereferenceable(4), i32) local_unnamed_addr #4 align 2

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #5 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %struct.modint, align 4
  %3 = alloca %struct.modint, align 4
  %4 = alloca %"class.std::vector.0", align 8
  %5 = alloca %"class.std::allocator.2", align 1
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca %struct.modint, align 4
  %8 = alloca %"class.std::allocator", align 1
  %9 = alloca %struct.modint, align 4
  %10 = alloca %struct.modint, align 4
  %11 = alloca %struct.modint, align 4
  %12 = alloca %struct.modint, align 4
  %13 = alloca %struct.modint, align 4
  %14 = alloca %struct.modint, align 4
  %15 = alloca %struct.modint, align 4
  %16 = alloca %struct.modint, align 4
  %17 = alloca %struct.modint, align 4
  %18 = alloca %struct.modint, align 4
  %19 = alloca %struct.modint, align 4
  %20 = alloca %struct.modint, align 4
  %21 = alloca %struct.modint, align 4
  %22 = alloca %struct.modint, align 4
  %23 = alloca %"class.std::vector", align 8
  %24 = alloca %"class.std::vector.0", align 8
  %25 = alloca %struct.modint, align 4
  %26 = alloca %struct.modint, align 4
  %27 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %28 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %29 = getelementptr i8, ptr %28, i64 -24
  %30 = load i64, ptr %29, align 8
  %31 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %30
  %32 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %31, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  %33 = 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)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  call void @_ZN6modintILi998244353EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %2, i32 noundef 0)
  %34 = load i32, ptr %1, align 4, !tbaa !8
  %35 = icmp sgt i32 %34, 0
  br i1 %35, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %0
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #7
  %36 = load i32, ptr %2, align 4, !tbaa !11
  %37 = add nsw i32 %36, 1
  %38 = sext i32 %37 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #7
  call void @_ZNSaISt6vectorI6modintILi998244353EESaIS1_EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  invoke void @_ZNSt6vectorIS_I6modintILi998244353EESaIS1_EESaIS3_EEC2EmRKS4_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %38, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %47 unwind label %90

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %39 = getelementptr inbounds [300009 x i32], ptr @a, i64 0, i64 %indvars.iv
  %40 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %39)
  %41 = load i32, ptr %39, align 4, !tbaa !8
  call void @_ZN6modintILi998244353EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef %41)
  %42 = load i32, ptr %3, align 4
  %43 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6modintILi998244353EEpLES0_(ptr noundef nonnull align 4 dereferenceable(4) %2, i32 %42)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %44 = load i32, ptr %1, align 4, !tbaa !8
  %45 = sext i32 %44 to i64
  %46 = icmp slt i64 %indvars.iv.next, %45
  br i1 %46, label %.lr.ph, label %._crit_edge, !llvm.loop !13

47:                                               ; preds = %._crit_edge
  call void @_ZNSt15__new_allocatorISt6vectorI6modintILi998244353EESaIS2_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #7
  %48 = load i32, ptr %2, align 4, !tbaa !11
  %.not49 = icmp slt i32 %48, 0
  br i1 %.not49, label %._crit_edge53, label %.lr.ph52.preheader

.lr.ph52.preheader:                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #7
  call void @_ZN6modintILi998244353EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %7, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #7
  call void @_ZNSaI6modintILi998244353EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #7
  invoke void @_ZNSt6vectorI6modintILi998244353EESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef 4, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %49 unwind label %.loopexit.split-lp

49:                                               ; preds = %.lr.ph52.preheader
  call void @_ZNSt15__new_allocatorI6modintILi998244353EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #7
  call void @_ZN6modintILi998244353EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %14, i32 noundef 0)
  %50 = load i32, ptr %14, align 4
  %51 = invoke i32 @_ZNK6modintILi998244353EEmiES0_(ptr noundef nonnull align 4 dereferenceable(4) %2, i32 %50)
          to label %52 unwind label %.loopexit.split-lp70

52:                                               ; preds = %49
  store i32 %51, ptr %13, align 4
  %53 = load i32, ptr %1, align 4, !tbaa !8
  %54 = add nsw i32 %53, -2
  call void @_ZN6modintILi998244353EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %15, i32 noundef %54)
  %55 = load i32, ptr %15, align 4
  %56 = invoke i32 @_ZNK6modintILi998244353EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %13, i32 %55)
          to label %57 unwind label %.loopexit.split-lp70

57:                                               ; preds = %52
  store i32 %56, ptr %12, align 4
  %.sroa.011.0.copyload.peel = load i32, ptr %2, align 4, !tbaa !8
  %58 = invoke i32 @_ZNK6modintILi998244353EEdvES0_(ptr noundef nonnull align 4 dereferenceable(4) %12, i32 %.sroa.011.0.copyload.peel)
          to label %59 unwind label %.loopexit.split-lp70

59:                                               ; preds = %57
  store i32 %58, ptr %11, align 4
  %60 = load i32, ptr %1, align 4, !tbaa !8
  %61 = add nsw i32 %60, -1
  call void @_ZN6modintILi998244353EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %16, i32 noundef %61)
  %62 = load i32, ptr %16, align 4
  %63 = invoke i32 @_ZNK6modintILi998244353EEdvES0_(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 %62)
          to label %64 unwind label %.loopexit.split-lp70

64:                                               ; preds = %59
  store i32 %63, ptr %10, align 4
  call void @_ZN6modintILi998244353EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %17, i32 noundef 1)
  %65 = load i32, ptr %17, align 4
  %66 = invoke i32 @_ZNK6modintILi998244353EEmiES0_(ptr noundef nonnull align 4 dereferenceable(4) %10, i32 %65)
          to label %67 unwind label %.loopexit.split-lp70

67:                                               ; preds = %64
  %68 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi998244353EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef 1) #7
  store i32 %66, ptr %68, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  %69 = load i32, ptr %2, align 4, !tbaa !11
  %.not42.not.peel = icmp sgt i32 %69, 0
  br i1 %.not42.not.peel, label %70, label %82

70:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #7
  call void @_ZN6modintILi998244353EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef 0)
  %71 = load i32, ptr %20, align 4
  %72 = invoke i32 @_ZNK6modintILi998244353EEmiES0_(ptr noundef nonnull align 4 dereferenceable(4) %2, i32 %71)
          to label %73 unwind label %.loopexit.split-lp75

73:                                               ; preds = %70
  store i32 %72, ptr %19, align 4
  %.sroa.09.0.copyload.peel = load i32, ptr %2, align 4, !tbaa !8
  %74 = invoke i32 @_ZNK6modintILi998244353EEdvES0_(ptr noundef nonnull align 4 dereferenceable(4) %19, i32 %.sroa.09.0.copyload.peel)
          to label %75 unwind label %.loopexit.split-lp75

75:                                               ; preds = %73
  store i32 %74, ptr %18, align 4
  %76 = load i32, ptr %1, align 4, !tbaa !8
  %77 = add nsw i32 %76, -1
  call void @_ZN6modintILi998244353EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %21, i32 noundef %77)
  %78 = load i32, ptr %21, align 4
  %79 = invoke i32 @_ZNK6modintILi998244353EEdvES0_(ptr noundef nonnull align 4 dereferenceable(4) %18, i32 %78)
          to label %80 unwind label %.loopexit.split-lp75

80:                                               ; preds = %75
  %81 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi998244353EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef 2) #7
  store i32 %79, ptr %81, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #7
  br label %82

82:                                               ; preds = %80, %67
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #7
  call void @_ZN6modintILi998244353EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %22, i32 noundef 0)
  %.sroa.07.0.copyload.peel = load i32, ptr %2, align 4, !tbaa !8
  %83 = invoke i32 @_ZNK6modintILi998244353EEdvES0_(ptr noundef nonnull align 4 dereferenceable(4) %22, i32 %.sroa.07.0.copyload.peel)
          to label %84 unwind label %.loopexit.split-lp80

84:                                               ; preds = %82
  %85 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi998244353EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef 3) #7
  store i32 %83, ptr %85, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #7
  %86 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I6modintILi998244353EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #7
  %87 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI6modintILi998244353EESaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %86, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %88 unwind label %.loopexit.split-lp85

88:                                               ; preds = %84
  call void @_ZNSt6vectorI6modintILi998244353EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  %89 = load i32, ptr %2, align 4, !tbaa !11
  %.not.not.peel = icmp sgt i32 %89, 0
  br i1 %.not.not.peel, label %.lr.ph52, label %._crit_edge53

._crit_edge53:                                    ; preds = %142, %88, %47
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %23) #7
  invoke void @_ZNSt6vectorIS_I6modintILi998244353EESaIS1_EESaIS3_EEC2ERKS5_(ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %148 unwind label %155

90:                                               ; preds = %._crit_edge
  %91 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt6vectorI6modintILi998244353EESaIS2_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #7
  br label %185

.lr.ph52:                                         ; preds = %88, %142
  %indvars.iv60 = phi i64 [ %indvars.iv.next61, %142 ], [ 1, %88 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #7
  call void @_ZN6modintILi998244353EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %7, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #7
  call void @_ZNSaI6modintILi998244353EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #7
  invoke void @_ZNSt6vectorI6modintILi998244353EESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef 4, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %92 unwind label %.loopexit

92:                                               ; preds = %.lr.ph52
  call void @_ZNSt15__new_allocatorI6modintILi998244353EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  %93 = trunc nuw nsw i64 %indvars.iv60 to i32
  call void @_ZN6modintILi998244353EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef %93)
  %.sroa.013.0.copyload = load i32, ptr %2, align 4, !tbaa !8
  %94 = invoke i32 @_ZNK6modintILi998244353EEdvES0_(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 %.sroa.013.0.copyload)
          to label %97 unwind label %96

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

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

95:                                               ; preds = %.loopexit.split-lp, %.loopexit
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt15__new_allocatorI6modintILi998244353EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  br label %147

96:                                               ; preds = %92
  %lpad.loopexit66 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  br label %146

97:                                               ; preds = %92
  %98 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi998244353EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef 0) #7
  store i32 %94, ptr %98, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #7
  call void @_ZN6modintILi998244353EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %14, i32 noundef %93)
  %99 = load i32, ptr %14, align 4
  %100 = invoke i32 @_ZNK6modintILi998244353EEmiES0_(ptr noundef nonnull align 4 dereferenceable(4) %2, i32 %99)
          to label %101 unwind label %.loopexit69

101:                                              ; preds = %97
  store i32 %100, ptr %13, align 4
  %102 = load i32, ptr %1, align 4, !tbaa !8
  %103 = add nsw i32 %102, -2
  call void @_ZN6modintILi998244353EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %15, i32 noundef %103)
  %104 = load i32, ptr %15, align 4
  %105 = invoke i32 @_ZNK6modintILi998244353EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %13, i32 %104)
          to label %106 unwind label %.loopexit69

106:                                              ; preds = %101
  store i32 %105, ptr %12, align 4
  %.sroa.011.0.copyload = load i32, ptr %2, align 4, !tbaa !8
  %107 = invoke i32 @_ZNK6modintILi998244353EEdvES0_(ptr noundef nonnull align 4 dereferenceable(4) %12, i32 %.sroa.011.0.copyload)
          to label %108 unwind label %.loopexit69

108:                                              ; preds = %106
  store i32 %107, ptr %11, align 4
  %109 = load i32, ptr %1, align 4, !tbaa !8
  %110 = add nsw i32 %109, -1
  call void @_ZN6modintILi998244353EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %16, i32 noundef %110)
  %111 = load i32, ptr %16, align 4
  %112 = invoke i32 @_ZNK6modintILi998244353EEdvES0_(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 %111)
          to label %113 unwind label %.loopexit69

113:                                              ; preds = %108
  store i32 %112, ptr %10, align 4
  call void @_ZN6modintILi998244353EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %17, i32 noundef 1)
  %114 = load i32, ptr %17, align 4
  %115 = invoke i32 @_ZNK6modintILi998244353EEmiES0_(ptr noundef nonnull align 4 dereferenceable(4) %10, i32 %114)
          to label %116 unwind label %.loopexit69

116:                                              ; preds = %113
  %117 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi998244353EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef 1) #7
  store i32 %115, ptr %117, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  %indvars.iv.next61 = add nuw nsw i64 %indvars.iv60, 1
  %118 = load i32, ptr %2, align 4, !tbaa !11
  %119 = sext i32 %118 to i64
  %.not42.not = icmp slt i64 %indvars.iv60, %119
  br i1 %.not42.not, label %120, label %134

120:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #7
  call void @_ZN6modintILi998244353EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef %93)
  %121 = load i32, ptr %20, align 4
  %122 = invoke i32 @_ZNK6modintILi998244353EEmiES0_(ptr noundef nonnull align 4 dereferenceable(4) %2, i32 %121)
          to label %123 unwind label %.loopexit74

123:                                              ; preds = %120
  store i32 %122, ptr %19, align 4
  %.sroa.09.0.copyload = load i32, ptr %2, align 4, !tbaa !8
  %124 = invoke i32 @_ZNK6modintILi998244353EEdvES0_(ptr noundef nonnull align 4 dereferenceable(4) %19, i32 %.sroa.09.0.copyload)
          to label %125 unwind label %.loopexit74

125:                                              ; preds = %123
  store i32 %124, ptr %18, align 4
  %126 = load i32, ptr %1, align 4, !tbaa !8
  %127 = add nsw i32 %126, -1
  call void @_ZN6modintILi998244353EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %21, i32 noundef %127)
  %128 = load i32, ptr %21, align 4
  %129 = invoke i32 @_ZNK6modintILi998244353EEdvES0_(ptr noundef nonnull align 4 dereferenceable(4) %18, i32 %128)
          to label %130 unwind label %.loopexit74

130:                                              ; preds = %125
  %131 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi998244353EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef 2) #7
  store i32 %129, ptr %131, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #7
  br label %134

.loopexit69:                                      ; preds = %97, %101, %106, %108, %113
  %lpad.loopexit71 = landingpad { ptr, i32 }
          cleanup
  br label %132

.loopexit.split-lp70:                             ; preds = %49, %52, %57, %59, %64
  %lpad.loopexit.split-lp72 = landingpad { ptr, i32 }
          cleanup
  br label %132

132:                                              ; preds = %.loopexit.split-lp70, %.loopexit69
  %lpad.phi73 = phi { ptr, i32 } [ %lpad.loopexit71, %.loopexit69 ], [ %lpad.loopexit.split-lp72, %.loopexit.split-lp70 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  br label %146

.loopexit74:                                      ; preds = %120, %123, %125
  %lpad.loopexit76 = landingpad { ptr, i32 }
          cleanup
  br label %133

.loopexit.split-lp75:                             ; preds = %70, %73, %75
  %lpad.loopexit.split-lp77 = landingpad { ptr, i32 }
          cleanup
  br label %133

133:                                              ; preds = %.loopexit.split-lp75, %.loopexit74
  %lpad.phi78 = phi { ptr, i32 } [ %lpad.loopexit76, %.loopexit74 ], [ %lpad.loopexit.split-lp77, %.loopexit.split-lp75 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #7
  br label %146

134:                                              ; preds = %130, %116
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #7
  %135 = trunc i64 %indvars.iv60 to i32
  %136 = sub i32 0, %135
  call void @_ZN6modintILi998244353EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %22, i32 noundef %136)
  %.sroa.07.0.copyload = load i32, ptr %2, align 4, !tbaa !8
  %137 = invoke i32 @_ZNK6modintILi998244353EEdvES0_(ptr noundef nonnull align 4 dereferenceable(4) %22, i32 %.sroa.07.0.copyload)
          to label %138 unwind label %.loopexit79

138:                                              ; preds = %134
  %139 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi998244353EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef 3) #7
  store i32 %137, ptr %139, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #7
  %140 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I6modintILi998244353EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv60) #7
  %141 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI6modintILi998244353EESaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %140, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %142 unwind label %.loopexit84

142:                                              ; preds = %138
  call void @_ZNSt6vectorI6modintILi998244353EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  %143 = load i32, ptr %2, align 4, !tbaa !11
  %144 = sext i32 %143 to i64
  %.not.not = icmp slt i64 %indvars.iv60, %144
  br i1 %.not.not, label %.lr.ph52, label %._crit_edge53, !llvm.loop !15

.loopexit79:                                      ; preds = %134
  %lpad.loopexit81 = landingpad { ptr, i32 }
          cleanup
  br label %145

.loopexit.split-lp80:                             ; preds = %82
  %lpad.loopexit.split-lp82 = landingpad { ptr, i32 }
          cleanup
  br label %145

145:                                              ; preds = %.loopexit.split-lp80, %.loopexit79
  %lpad.phi83 = phi { ptr, i32 } [ %lpad.loopexit81, %.loopexit79 ], [ %lpad.loopexit.split-lp82, %.loopexit.split-lp80 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #7
  br label %146

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

.loopexit.split-lp85:                             ; preds = %84
  %lpad.loopexit.split-lp87 = landingpad { ptr, i32 }
          cleanup
  br label %146

146:                                              ; preds = %.loopexit84, %.loopexit.split-lp85, %145, %133, %132, %96
  %.pn43 = phi { ptr, i32 } [ %lpad.phi83, %145 ], [ %lpad.phi78, %133 ], [ %lpad.phi73, %132 ], [ %lpad.loopexit66, %96 ], [ %lpad.loopexit86, %.loopexit84 ], [ %lpad.loopexit.split-lp87, %.loopexit.split-lp85 ]
  call void @_ZNSt6vectorI6modintILi998244353EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  br label %147

147:                                              ; preds = %146, %95
  %.pn43.pn = phi { ptr, i32 } [ %.pn43, %146 ], [ %lpad.phi, %95 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  br label %184

148:                                              ; preds = %._crit_edge53
  invoke void @_Z6ThomasSt6vectorIS_I6modintILi998244353EESaIS1_EESaIS3_EE(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %23, ptr noundef nonnull %24)
          to label %149 unwind label %157

149:                                              ; preds = %148
  call void @_ZNSt6vectorIS_I6modintILi998244353EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %25) #7
  call void @_ZN6modintILi998244353EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %25, i32 noundef 0)
  %150 = load i32, ptr %1, align 4, !tbaa !8
  %151 = icmp sgt i32 %150, 0
  br i1 %151, label %.lr.ph56, label %._crit_edge57

._crit_edge57:                                    ; preds = %.lr.ph56, %149
  %.lcssa = phi i32 [ %150, %149 ], [ %166, %.lr.ph56 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %26) #7
  %152 = add nsw i32 %.lcssa, -1
  %153 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi998244353EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef 0) #7
  %.sroa.02.0.copyload = load i32, ptr %153, align 4, !tbaa !8
  %154 = invoke i32 @_ZmlILi998244353EE6modintIXT_EEiS1_(i32 noundef %152, i32 %.sroa.02.0.copyload)
          to label %169 unwind label %180

155:                                              ; preds = %._crit_edge53
  %156 = landingpad { ptr, i32 }
          cleanup
  br label %183

157:                                              ; preds = %148
  %158 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIS_I6modintILi998244353EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #7
  br label %183

159:                                              ; preds = %177, %174
  %160 = landingpad { ptr, i32 }
          cleanup
  br label %182

.lr.ph56:                                         ; preds = %149, %.lr.ph56
  %indvars.iv89 = phi i64 [ %indvars.iv.next90, %.lr.ph56 ], [ 0, %149 ]
  %161 = getelementptr inbounds [300009 x i32], ptr @a, i64 0, i64 %indvars.iv89
  %162 = load i32, ptr %161, align 4, !tbaa !8
  %163 = sext i32 %162 to i64
  %164 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi998244353EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef %163) #7
  %.sroa.04.0.copyload = load i32, ptr %164, align 4, !tbaa !8
  %165 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6modintILi998244353EEpLES0_(ptr noundef nonnull align 4 dereferenceable(4) %25, i32 %.sroa.04.0.copyload)
  %indvars.iv.next90 = add nuw nsw i64 %indvars.iv89, 1
  %166 = load i32, ptr %1, align 4, !tbaa !8
  %167 = sext i32 %166 to i64
  %168 = icmp slt i64 %indvars.iv.next90, %167
  br i1 %168, label %.lr.ph56, label %._crit_edge57, !llvm.loop !17

169:                                              ; preds = %._crit_edge57
  store i32 %154, ptr %26, align 4
  %170 = load i32, ptr %2, align 4, !tbaa !11
  %171 = sext i32 %170 to i64
  %172 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI6modintILi998244353EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef %171) #7
  %.sroa.01.0.copyload = load i32, ptr %172, align 4, !tbaa !8
  %173 = invoke i32 @_ZNK6modintILi998244353EEplES0_(ptr noundef nonnull align 4 dereferenceable(4) %26, i32 %.sroa.01.0.copyload)
          to label %174 unwind label %180

174:                                              ; preds = %169
  %175 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6modintILi998244353EEmIES0_(ptr noundef nonnull align 4 dereferenceable(4) %25, i32 %173)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #7
  %.sroa.0.0.copyload = load i32, ptr %25, align 4, !tbaa !8
  %176 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsILi998244353EERSoS0_6modintIXT_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 %.sroa.0.0.copyload)
          to label %177 unwind label %159

177:                                              ; preds = %174
  %178 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %176, i8 noundef signext 10)
          to label %179 unwind label %159

179:                                              ; preds = %177
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #7
  call void @_ZNSt6vectorI6modintILi998244353EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #7
  call void @_ZNSt6vectorIS_I6modintILi998244353EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret i32 0

180:                                              ; preds = %169, %._crit_edge57
  %181 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #7
  br label %182

182:                                              ; preds = %180, %159
  %.pn = phi { ptr, i32 } [ %160, %159 ], [ %181, %180 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #7
  call void @_ZNSt6vectorI6modintILi998244353EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  br label %183

183:                                              ; preds = %182, %157, %155
  %.pn.pn = phi { ptr, i32 } [ %.pn, %182 ], [ %158, %157 ], [ %156, %155 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #7
  br label %184

184:                                              ; preds = %183, %147
  %.pn43.pn.pn = phi { ptr, i32 } [ %.pn43.pn, %147 ], [ %.pn.pn, %183 ]
  call void @_ZNSt6vectorIS_I6modintILi998244353EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  br label %185

185:                                              ; preds = %184, %90
  %.pn43.pn.pn.pn = phi { ptr, i32 } [ %.pn43.pn.pn, %184 ], [ %91, %90 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn43.pn.pn.pn
}

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN6modintILi998244353EEpLES0_(ptr noundef nonnull align 4 dereferenceable(4), i32) local_unnamed_addr #4 align 2

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZmlILi998244353EE6modintIXT_EEiS1_(i32 noundef, i32) local_unnamed_addr #0

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #3

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

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

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

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


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