; LLVM IR from tangjz/acm-icpc :: lydsy/3771.ll (Z7polyMulRKSt6vectorIiSaIiEES3_RS1_)

; 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"

@_ZZ7polyMulRKSt6vectorIiSaIiEES3_RS1_E1a = external hidden global [131073 x i32], align 16
@_ZZ7polyMulRKSt6vectorIiSaIiEES3_RS1_E1b = external hidden global [131073 x i32], align 16

; 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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3NTTiPii(i32 noundef, ptr noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7polyMulRKSt6vectorIiSaIiEES3_RS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) #1 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #4
  %16 = trunc i64 %15 to i32
  store i32 %16, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #4
  %19 = trunc i64 %18 to i32
  store i32 %19, ptr %9, align 4, !tbaa !9
  store i32 1, ptr %7, align 4, !tbaa !9
  br label %20

20:                                               ; preds = %28, %3
  %21 = load i32, ptr %7, align 4, !tbaa !9
  %22 = load i32, ptr %8, align 4, !tbaa !9
  %23 = load i32, ptr %9, align 4, !tbaa !9
  %24 = add nsw i32 %22, %23
  %25 = sub nsw i32 %24, 1
  %26 = icmp slt i32 %21, %25
  br i1 %26, label %27, label %31

27:                                               ; preds = %20
  br label %28

28:                                               ; preds = %27
  %29 = load i32, ptr %7, align 4, !tbaa !9
  %30 = shl i32 %29, 1
  store i32 %30, ptr %7, align 4, !tbaa !9
  br label %20, !llvm.loop !11

31:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %32

32:                                               ; preds = %46, %31
  %33 = load i32, ptr %10, align 4, !tbaa !9
  %34 = load i32, ptr %8, align 4, !tbaa !9
  %35 = icmp slt i32 %33, %34
  br i1 %35, label %37, label %36

36:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %49

37:                                               ; preds = %32
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = load i32, ptr %10, align 4, !tbaa !9
  %40 = sext i32 %39 to i64
  %41 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %40) #4
  %42 = load i32, ptr %41, align 4, !tbaa !9
  %43 = load i32, ptr %10, align 4, !tbaa !9
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [131073 x i32], ptr @_ZZ7polyMulRKSt6vectorIiSaIiEES3_RS1_E1a, i64 0, i64 %44
  store i32 %42, ptr %45, align 4, !tbaa !9
  br label %46

46:                                               ; preds = %37
  %47 = load i32, ptr %10, align 4, !tbaa !9
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %10, align 4, !tbaa !9
  br label %32, !llvm.loop !13

49:                                               ; preds = %36
  %50 = load i32, ptr %8, align 4, !tbaa !9
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds i32, ptr @_ZZ7polyMulRKSt6vectorIiSaIiEES3_RS1_E1a, i64 %51
  %53 = load i32, ptr %7, align 4, !tbaa !9
  %54 = load i32, ptr %8, align 4, !tbaa !9
  %55 = sub nsw i32 %53, %54
  %56 = sext i32 %55 to i64
  %57 = mul i64 %56, 4
  call void @llvm.memset.p0.i64(ptr align 4 %52, i8 0, i64 %57, i1 false)
  %58 = load i32, ptr %7, align 4, !tbaa !9
  call void @_Z3NTTiPii(i32 noundef %58, ptr noundef @_ZZ7polyMulRKSt6vectorIiSaIiEES3_RS1_E1a, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %59

59:                                               ; preds = %73, %49
  %60 = load i32, ptr %11, align 4, !tbaa !9
  %61 = load i32, ptr %9, align 4, !tbaa !9
  %62 = icmp slt i32 %60, %61
  br i1 %62, label %64, label %63

63:                                               ; preds = %59
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %76

64:                                               ; preds = %59
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = load i32, ptr %11, align 4, !tbaa !9
  %67 = sext i32 %66 to i64
  %68 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %65, i64 noundef %67) #4
  %69 = load i32, ptr %68, align 4, !tbaa !9
  %70 = load i32, ptr %11, align 4, !tbaa !9
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [131073 x i32], ptr @_ZZ7polyMulRKSt6vectorIiSaIiEES3_RS1_E1b, i64 0, i64 %71
  store i32 %69, ptr %72, align 4, !tbaa !9
  br label %73

73:                                               ; preds = %64
  %74 = load i32, ptr %11, align 4, !tbaa !9
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %11, align 4, !tbaa !9
  br label %59, !llvm.loop !14

76:                                               ; preds = %63
  %77 = load i32, ptr %9, align 4, !tbaa !9
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds i32, ptr @_ZZ7polyMulRKSt6vectorIiSaIiEES3_RS1_E1b, i64 %78
  %80 = load i32, ptr %7, align 4, !tbaa !9
  %81 = load i32, ptr %9, align 4, !tbaa !9
  %82 = sub nsw i32 %80, %81
  %83 = sext i32 %82 to i64
  %84 = mul i64 %83, 4
  call void @llvm.memset.p0.i64(ptr align 4 %79, i8 0, i64 %84, i1 false)
  %85 = load i32, ptr %7, align 4, !tbaa !9
  call void @_Z3NTTiPii(i32 noundef %85, ptr noundef @_ZZ7polyMulRKSt6vectorIiSaIiEES3_RS1_E1b, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %86

86:                                               ; preds = %108, %76
  %87 = load i32, ptr %12, align 4, !tbaa !9
  %88 = load i32, ptr %7, align 4, !tbaa !9
  %89 = icmp slt i32 %87, %88
  br i1 %89, label %91, label %90

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

91:                                               ; preds = %86
  %92 = load i32, ptr %12, align 4, !tbaa !9
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [131073 x i32], ptr @_ZZ7polyMulRKSt6vectorIiSaIiEES3_RS1_E1a, i64 0, i64 %93
  %95 = load i32, ptr %94, align 4, !tbaa !9
  %96 = sext i32 %95 to i64
  %97 = load i32, ptr %12, align 4, !tbaa !9
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [131073 x i32], ptr @_ZZ7polyMulRKSt6vectorIiSaIiEES3_RS1_E1b, i64 0, i64 %98
  %100 = load i32, ptr %99, align 4, !tbaa !9
  %101 = sext i32 %100 to i64
  %102 = mul nsw i64 %96, %101
  %103 = srem i64 %102, 998244353
  %104 = trunc i64 %103 to i32
  %105 = load i32, ptr %12, align 4, !tbaa !9
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [131073 x i32], ptr @_ZZ7polyMulRKSt6vectorIiSaIiEES3_RS1_E1a, i64 0, i64 %106
  store i32 %104, ptr %107, align 4, !tbaa !9
  br label %108

108:                                              ; preds = %91
  %109 = load i32, ptr %12, align 4, !tbaa !9
  %110 = add nsw i32 %109, 1
  store i32 %110, ptr %12, align 4, !tbaa !9
  br label %86, !llvm.loop !15

111:                                              ; preds = %90
  %112 = load i32, ptr %7, align 4, !tbaa !9
  call void @_Z3NTTiPii(i32 noundef %112, ptr noundef @_ZZ7polyMulRKSt6vectorIiSaIiEES3_RS1_E1a, i32 noundef -1)
  %113 = load i32, ptr %8, align 4, !tbaa !9
  %114 = load i32, ptr %9, align 4, !tbaa !9
  %115 = add nsw i32 %113, %114
  %116 = sub nsw i32 %115, 1
  store i32 %116, ptr %7, align 4, !tbaa !9
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  %118 = load i32, ptr %7, align 4, !tbaa !9
  %119 = sext i32 %118 to i64
  call void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %117, i64 noundef %119)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %120

120:                                              ; preds = %134, %111
  %121 = load i32, ptr %13, align 4, !tbaa !9
  %122 = load i32, ptr %7, align 4, !tbaa !9
  %123 = icmp slt i32 %121, %122
  br i1 %123, label %125, label %124

124:                                              ; preds = %120
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %137

125:                                              ; preds = %120
  %126 = load i32, ptr %13, align 4, !tbaa !9
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [131073 x i32], ptr @_ZZ7polyMulRKSt6vectorIiSaIiEES3_RS1_E1a, i64 0, i64 %127
  %129 = load i32, ptr %128, align 4, !tbaa !9
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  %131 = load i32, ptr %13, align 4, !tbaa !9
  %132 = sext i32 %131 to i64
  %133 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %130, i64 noundef %132) #4
  store i32 %129, ptr %133, align 4, !tbaa !9
  br label %134

134:                                              ; preds = %125
  %135 = load i32, ptr %13, align 4, !tbaa !9
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr %13, align 4, !tbaa !9
  br label %120, !llvm.loop !16

137:                                              ; preds = %124
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  ret void
}

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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

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

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

@_ZZ7polyMulRKSt6vectorIiSaIiEES3_RS1_E1a = external hidden global [131073 x i32], align 16
@_ZZ7polyMulRKSt6vectorIiSaIiEES3_RS1_E1b = external hidden global [131073 x i32], align 16

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7polyMulRKSt6vectorIiSaIiEES3_RS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) local_unnamed_addr #0 {
  %4 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #3
  %5 = trunc i64 %4 to i32
  %6 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #3
  %7 = trunc i64 %6 to i32
  %8 = add i32 %5, -1
  %9 = add i32 %8, %7
  br label %10

10:                                               ; preds = %10, %3
  %.045 = phi i32 [ 1, %3 ], [ %12, %10 ]
  %11 = icmp slt i32 %.045, %9
  %12 = shl i32 %.045, 1
  br i1 %11, label %10, label %.preheader, !llvm.loop !5

.preheader:                                       ; preds = %10
  %13 = icmp sgt i32 %5, 0
  br i1 %13, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.preheader
  %wide.trip.count = and i64 %4, 2147483647
  br label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %.preheader
  %sext = shl i64 %4, 32
  %14 = ashr exact i64 %sext, 30
  %15 = getelementptr inbounds i8, ptr @_ZZ7polyMulRKSt6vectorIiSaIiEES3_RS1_E1a, i64 %14
  %16 = sub nsw i32 %.045, %5
  %17 = sext i32 %16 to i64
  %18 = shl nsw i64 %17, 2
  tail call void @llvm.memset.p0.i64(ptr nonnull align 4 %15, i8 0, i64 %18, i1 false)
  tail call void @_Z3NTTiPii(i32 noundef %.045, ptr noundef nonnull @_ZZ7polyMulRKSt6vectorIiSaIiEES3_RS1_E1a, i32 noundef 1)
  %19 = icmp sgt i32 %7, 0
  br i1 %19, label %.lr.ph53.preheader, label %._crit_edge54

.lr.ph53.preheader:                               ; preds = %._crit_edge
  %wide.trip.count67 = and i64 %6, 2147483647
  br label %.lr.ph53

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %20 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv) #3
  %21 = load i32, ptr %20, align 4, !tbaa !7
  %22 = getelementptr inbounds [131073 x i32], ptr @_ZZ7polyMulRKSt6vectorIiSaIiEES3_RS1_E1a, i64 0, i64 %indvars.iv
  store i32 %21, ptr %22, align 4, !tbaa !7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !11

._crit_edge54:                                    ; preds = %.lr.ph53, %._crit_edge
  %sext49 = shl i64 %6, 32
  %23 = ashr exact i64 %sext49, 30
  %24 = getelementptr inbounds i8, ptr @_ZZ7polyMulRKSt6vectorIiSaIiEES3_RS1_E1b, i64 %23
  %25 = sub nsw i32 %.045, %7
  %26 = sext i32 %25 to i64
  %27 = shl nsw i64 %26, 2
  tail call void @llvm.memset.p0.i64(ptr nonnull align 4 %24, i8 0, i64 %27, i1 false)
  tail call void @_Z3NTTiPii(i32 noundef %.045, ptr noundef nonnull @_ZZ7polyMulRKSt6vectorIiSaIiEES3_RS1_E1b, i32 noundef 1)
  %28 = icmp sgt i32 %.045, 0
  br i1 %28, label %.lr.ph57.preheader, label %._crit_edge58

.lr.ph57.preheader:                               ; preds = %._crit_edge54
  %wide.trip.count72 = zext nneg i32 %.045 to i64
  %xtraiter = and i64 %wide.trip.count72, 1
  %29 = icmp eq i32 %.045, 1
  br i1 %29, label %._crit_edge58.loopexit.unr-lcssa, label %.lr.ph57.preheader.new

.lr.ph57.preheader.new:                           ; preds = %.lr.ph57.preheader
  %unroll_iter = and i64 %wide.trip.count72, 2147483646
  br label %.lr.ph57

.lr.ph53:                                         ; preds = %.lr.ph53.preheader, %.lr.ph53
  %indvars.iv64 = phi i64 [ 0, %.lr.ph53.preheader ], [ %indvars.iv.next65, %.lr.ph53 ]
  %30 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv64) #3
  %31 = load i32, ptr %30, align 4, !tbaa !7
  %32 = getelementptr inbounds [131073 x i32], ptr @_ZZ7polyMulRKSt6vectorIiSaIiEES3_RS1_E1b, i64 0, i64 %indvars.iv64
  store i32 %31, ptr %32, align 4, !tbaa !7
  %indvars.iv.next65 = add nuw nsw i64 %indvars.iv64, 1
  %exitcond68.not = icmp eq i64 %indvars.iv.next65, %wide.trip.count67
  br i1 %exitcond68.not, label %._crit_edge54, label %.lr.ph53, !llvm.loop !12

._crit_edge58.loopexit.unr-lcssa:                 ; preds = %.lr.ph57, %.lr.ph57.preheader
  %indvars.iv69.unr = phi i64 [ 0, %.lr.ph57.preheader ], [ %indvars.iv.next70.1, %.lr.ph57 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge58, label %.lr.ph57.epil

.lr.ph57.epil:                                    ; preds = %._crit_edge58.loopexit.unr-lcssa
  %33 = getelementptr inbounds [131073 x i32], ptr @_ZZ7polyMulRKSt6vectorIiSaIiEES3_RS1_E1a, i64 0, i64 %indvars.iv69.unr
  %34 = load i32, ptr %33, align 4, !tbaa !7
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [131073 x i32], ptr @_ZZ7polyMulRKSt6vectorIiSaIiEES3_RS1_E1b, i64 0, i64 %indvars.iv69.unr
  %37 = load i32, ptr %36, align 4, !tbaa !7
  %38 = sext i32 %37 to i64
  %39 = mul nsw i64 %38, %35
  %40 = srem i64 %39, 998244353
  %41 = trunc nsw i64 %40 to i32
  store i32 %41, ptr %33, align 4, !tbaa !7
  br label %._crit_edge58

._crit_edge58:                                    ; preds = %.lr.ph57.epil, %._crit_edge58.loopexit.unr-lcssa, %._crit_edge54
  tail call void @_Z3NTTiPii(i32 noundef %.045, ptr noundef nonnull @_ZZ7polyMulRKSt6vectorIiSaIiEES3_RS1_E1a, i32 noundef -1)
  %42 = sext i32 %9 to i64
  tail call void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %42)
  %43 = icmp sgt i32 %9, 0
  br i1 %43, label %.lr.ph61.preheader, label %._crit_edge62

.lr.ph61.preheader:                               ; preds = %._crit_edge58
  %wide.trip.count77 = zext nneg i32 %9 to i64
  br label %.lr.ph61

.lr.ph57:                                         ; preds = %.lr.ph57, %.lr.ph57.preheader.new
  %indvars.iv69 = phi i64 [ 0, %.lr.ph57.preheader.new ], [ %indvars.iv.next70.1, %.lr.ph57 ]
  %niter = phi i64 [ 0, %.lr.ph57.preheader.new ], [ %niter.next.1, %.lr.ph57 ]
  %44 = getelementptr inbounds [131073 x i32], ptr @_ZZ7polyMulRKSt6vectorIiSaIiEES3_RS1_E1a, i64 0, i64 %indvars.iv69
  %45 = load i32, ptr %44, align 8, !tbaa !7
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [131073 x i32], ptr @_ZZ7polyMulRKSt6vectorIiSaIiEES3_RS1_E1b, i64 0, i64 %indvars.iv69
  %48 = load i32, ptr %47, align 8, !tbaa !7
  %49 = sext i32 %48 to i64
  %50 = mul nsw i64 %49, %46
  %51 = srem i64 %50, 998244353
  %52 = trunc nsw i64 %51 to i32
  store i32 %52, ptr %44, align 8, !tbaa !7
  %indvars.iv.next70 = or disjoint i64 %indvars.iv69, 1
  %53 = getelementptr inbounds [131073 x i32], ptr @_ZZ7polyMulRKSt6vectorIiSaIiEES3_RS1_E1a, i64 0, i64 %indvars.iv.next70
  %54 = load i32, ptr %53, align 4, !tbaa !7
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [131073 x i32], ptr @_ZZ7polyMulRKSt6vectorIiSaIiEES3_RS1_E1b, i64 0, i64 %indvars.iv.next70
  %57 = load i32, ptr %56, align 4, !tbaa !7
  %58 = sext i32 %57 to i64
  %59 = mul nsw i64 %58, %55
  %60 = srem i64 %59, 998244353
  %61 = trunc nsw i64 %60 to i32
  store i32 %61, ptr %53, align 4, !tbaa !7
  %indvars.iv.next70.1 = add nuw nsw i64 %indvars.iv69, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge58.loopexit.unr-lcssa, label %.lr.ph57, !llvm.loop !13

._crit_edge62:                                    ; preds = %.lr.ph61, %._crit_edge58
  ret void

.lr.ph61:                                         ; preds = %.lr.ph61.preheader, %.lr.ph61
  %indvars.iv74 = phi i64 [ 0, %.lr.ph61.preheader ], [ %indvars.iv.next75, %.lr.ph61 ]
  %62 = getelementptr inbounds [131073 x i32], ptr @_ZZ7polyMulRKSt6vectorIiSaIiEES3_RS1_E1a, i64 0, i64 %indvars.iv74
  %63 = load i32, ptr %62, align 4, !tbaa !7
  %64 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv74) #3
  store i32 %63, ptr %64, align 4, !tbaa !7
  %indvars.iv.next75 = add nuw nsw i64 %indvars.iv74, 1
  %exitcond78.not = icmp eq i64 %indvars.iv.next75, %wide.trip.count77
  br i1 %exitcond78.not, label %._crit_edge62, label %.lr.ph61, !llvm.loop !14
}

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 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 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 #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = distinct !{!11, !6}
!12 = distinct !{!12, !6}
!13 = distinct !{!13, !6}
!14 = distinct !{!14, !6}


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