; LLVM IR from tangjz/acm-icpc :: lydsy (4351)

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

%struct.Poly = type { i32, [129 x i32] }

@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZZ4mainE1f = external hidden global [2 x %struct.Poly], align 16
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %15 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %6, ptr noundef %7)
  %16 = load i64, ptr %6, align 8, !tbaa !11
  %17 = load i32, ptr %7, align 4, !tbaa !5
  %18 = shl i32 1, %17
  %19 = sext i32 %18 to i64
  %20 = icmp slt i64 %16, %19
  br i1 %20, label %21, label %23

21:                                               ; preds = %2
  %22 = call i32 @puts(ptr noundef @.str.1)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %190

23:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !5
  %24 = load i32, ptr %9, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [2 x %struct.Poly], ptr @_ZZ4mainE1f, i64 0, i64 %25
  %27 = getelementptr inbounds %struct.Poly, ptr %26, i32 0, i32 0
  store i32 2, ptr %27, align 8, !tbaa !13
  %28 = load i32, ptr %9, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [2 x %struct.Poly], ptr @_ZZ4mainE1f, i64 0, i64 %29
  %31 = getelementptr inbounds %struct.Poly, ptr %30, i32 0, i32 1
  %32 = getelementptr inbounds [129 x i32], ptr %31, i64 0, i64 1
  store i32 1, ptr %32, align 4, !tbaa !5
  %33 = load i32, ptr %9, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [2 x %struct.Poly], ptr @_ZZ4mainE1f, i64 0, i64 %34
  %36 = getelementptr inbounds %struct.Poly, ptr %35, i32 0, i32 1
  %37 = getelementptr inbounds [129 x i32], ptr %36, i64 0, i64 0
  store i32 1, ptr %37, align 4, !tbaa !5
  %38 = load i32, ptr %9, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [2 x %struct.Poly], ptr @_ZZ4mainE1f, i64 0, i64 %39
  %41 = getelementptr inbounds %struct.Poly, ptr %40, i32 0, i32 1
  %42 = getelementptr inbounds [129 x i32], ptr %41, i64 0, i64 2
  store i32 998244352, ptr %42, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 1, ptr %10, align 4, !tbaa !5
  br label %43

43:                                               ; preds = %84, %23
  %44 = load i32, ptr %10, align 4, !tbaa !5
  %45 = load i32, ptr %7, align 4, !tbaa !5
  %46 = icmp slt i32 %44, %45
  br i1 %46, label %48, label %47

47:                                               ; preds = %43
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %87

48:                                               ; preds = %43
  %49 = load i32, ptr %9, align 4, !tbaa !5
  %50 = icmp ne i32 %49, 0
  %51 = xor i1 %50, true
  %52 = zext i1 %51 to i32
  store i32 %52, ptr %9, align 4, !tbaa !5
  %53 = load i32, ptr %9, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [2 x %struct.Poly], ptr @_ZZ4mainE1f, i64 0, i64 %54
  %56 = load i32, ptr %9, align 4, !tbaa !5
  %57 = icmp ne i32 %56, 0
  %58 = xor i1 %57, true
  %59 = zext i1 %58 to i64
  %60 = getelementptr inbounds [2 x %struct.Poly], ptr @_ZZ4mainE1f, i64 0, i64 %59
  call void @_ZN4Poly6assignERKS_(ptr noundef nonnull align 4 dereferenceable(520) %55, ptr noundef nonnull align 4 dereferenceable(520) %60)
  %61 = load i32, ptr %9, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [2 x %struct.Poly], ptr @_ZZ4mainE1f, i64 0, i64 %62
  %64 = getelementptr inbounds %struct.Poly, ptr %63, i32 0, i32 1
  %65 = getelementptr inbounds [129 x i32], ptr %64, i64 0, i64 0
  call void @_Z7mod_incRii(ptr noundef nonnull align 4 dereferenceable(4) %65, i32 noundef 1)
  %66 = load i32, ptr %9, align 4, !tbaa !5
  %67 = icmp ne i32 %66, 0
  %68 = xor i1 %67, true
  %69 = zext i1 %68 to i64
  %70 = getelementptr inbounds [2 x %struct.Poly], ptr @_ZZ4mainE1f, i64 0, i64 %69
  %71 = load i32, ptr %9, align 4, !tbaa !5
  %72 = icmp ne i32 %71, 0
  %73 = xor i1 %72, true
  %74 = zext i1 %73 to i64
  %75 = getelementptr inbounds [2 x %struct.Poly], ptr @_ZZ4mainE1f, i64 0, i64 %74
  call void @_ZN4PolymLERKS_(ptr noundef nonnull align 4 dereferenceable(520) %75, ptr noundef nonnull align 4 dereferenceable(520) %70)
  %76 = load i32, ptr %9, align 4, !tbaa !5
  %77 = icmp ne i32 %76, 0
  %78 = xor i1 %77, true
  %79 = zext i1 %78 to i64
  %80 = getelementptr inbounds [2 x %struct.Poly], ptr @_ZZ4mainE1f, i64 0, i64 %79
  %81 = load i32, ptr %9, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [2 x %struct.Poly], ptr @_ZZ4mainE1f, i64 0, i64 %82
  call void @_ZN4PolymIERKS_(ptr noundef nonnull align 4 dereferenceable(520) %83, ptr noundef nonnull align 4 dereferenceable(520) %80)
  br label %84

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

87:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %88 = load i32, ptr %9, align 4, !tbaa !5
  %89 = icmp ne i32 %88, 0
  %90 = xor i1 %89, true
  %91 = zext i1 %90 to i64
  %92 = getelementptr inbounds [2 x %struct.Poly], ptr @_ZZ4mainE1f, i64 0, i64 %91
  store ptr %92, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %93 = load i32, ptr %9, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [2 x %struct.Poly], ptr @_ZZ4mainE1f, i64 0, i64 %94
  store ptr %95, ptr %12, align 8, !tbaa !9
  %96 = load ptr, ptr %11, align 8, !tbaa !9
  %97 = getelementptr inbounds %struct.Poly, ptr %96, i32 0, i32 1
  %98 = getelementptr inbounds [129 x i32], ptr %97, i64 0, i64 1
  store i32 1, ptr %98, align 4, !tbaa !5
  %99 = load ptr, ptr %11, align 8, !tbaa !9
  %100 = getelementptr inbounds %struct.Poly, ptr %99, i32 0, i32 0
  store i32 1, ptr %100, align 4, !tbaa !13
  %101 = load ptr, ptr %11, align 8, !tbaa !9
  %102 = getelementptr inbounds %struct.Poly, ptr %101, i32 0, i32 1
  %103 = getelementptr inbounds [129 x i32], ptr %102, i64 0, i64 0
  store i32 0, ptr %103, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !5
  %104 = load i64, ptr %6, align 8, !tbaa !11
  %105 = add nsw i64 %104, -1
  store i64 %105, ptr %6, align 8, !tbaa !11
  br label %106

106:                                              ; preds = %114, %87
  %107 = load i32, ptr %13, align 4, !tbaa !5
  %108 = add nsw i32 %107, 1
  %109 = zext i32 %108 to i64
  %110 = shl i64 1, %109
  %111 = load i64, ptr %6, align 8, !tbaa !11
  %112 = icmp sle i64 %110, %111
  br i1 %112, label %113, label %117

113:                                              ; preds = %106
  br label %114

114:                                              ; preds = %113
  %115 = load i32, ptr %13, align 4, !tbaa !5
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %13, align 4, !tbaa !5
  br label %106, !llvm.loop !17

117:                                              ; preds = %106
  br label %118

118:                                              ; preds = %167, %117
  %119 = load i32, ptr %13, align 4, !tbaa !5
  %120 = add nsw i32 %119, -1
  store i32 %120, ptr %13, align 4, !tbaa !5
  %121 = icmp sge i32 %120, 0
  br i1 %121, label %122, label %168

122:                                              ; preds = %118
  %123 = load ptr, ptr %11, align 8, !tbaa !9
  %124 = load ptr, ptr %11, align 8, !tbaa !9
  call void @_ZN4PolymLERKS_(ptr noundef nonnull align 4 dereferenceable(520) %124, ptr noundef nonnull align 4 dereferenceable(520) %123)
  %125 = load ptr, ptr %12, align 8, !tbaa !9
  %126 = load ptr, ptr %11, align 8, !tbaa !9
  call void @_ZN4PolyrMERKS_(ptr noundef nonnull align 4 dereferenceable(520) %126, ptr noundef nonnull align 4 dereferenceable(520) %125)
  %127 = load i64, ptr %6, align 8, !tbaa !11
  %128 = load i32, ptr %13, align 4, !tbaa !5
  %129 = zext i32 %128 to i64
  %130 = ashr i64 %127, %129
  %131 = and i64 %130, 1
  %132 = icmp ne i64 %131, 0
  br i1 %132, label %133, label %167

133:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %134 = load ptr, ptr %11, align 8, !tbaa !9
  %135 = getelementptr inbounds %struct.Poly, ptr %134, i32 0, i32 0
  %136 = load i32, ptr %135, align 4, !tbaa !13
  store i32 %136, ptr %14, align 4, !tbaa !5
  br label %137

137:                                              ; preds = %154, %133
  %138 = load i32, ptr %14, align 4, !tbaa !5
  %139 = icmp sge i32 %138, 0
  br i1 %139, label %141, label %140

140:                                              ; preds = %137
  store i32 10, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %157

141:                                              ; preds = %137
  %142 = load ptr, ptr %11, align 8, !tbaa !9
  %143 = getelementptr inbounds %struct.Poly, ptr %142, i32 0, i32 1
  %144 = load i32, ptr %14, align 4, !tbaa !5
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [129 x i32], ptr %143, i64 0, i64 %145
  %147 = load i32, ptr %146, align 4, !tbaa !5
  %148 = load ptr, ptr %11, align 8, !tbaa !9
  %149 = getelementptr inbounds %struct.Poly, ptr %148, i32 0, i32 1
  %150 = load i32, ptr %14, align 4, !tbaa !5
  %151 = add nsw i32 %150, 1
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds [129 x i32], ptr %149, i64 0, i64 %152
  store i32 %147, ptr %153, align 4, !tbaa !5
  br label %154

154:                                              ; preds = %141
  %155 = load i32, ptr %14, align 4, !tbaa !5
  %156 = add nsw i32 %155, -1
  store i32 %156, ptr %14, align 4, !tbaa !5
  br label %137, !llvm.loop !18

157:                                              ; preds = %140
  %158 = load ptr, ptr %11, align 8, !tbaa !9
  %159 = getelementptr inbounds %struct.Poly, ptr %158, i32 0, i32 1
  %160 = getelementptr inbounds [129 x i32], ptr %159, i64 0, i64 0
  store i32 0, ptr %160, align 4, !tbaa !5
  %161 = load ptr, ptr %11, align 8, !tbaa !9
  %162 = getelementptr inbounds %struct.Poly, ptr %161, i32 0, i32 0
  %163 = load i32, ptr %162, align 4, !tbaa !13
  %164 = add nsw i32 %163, 1
  store i32 %164, ptr %162, align 4, !tbaa !13
  %165 = load ptr, ptr %12, align 8, !tbaa !9
  %166 = load ptr, ptr %11, align 8, !tbaa !9
  call void @_ZN4PolyrMERKS_(ptr noundef nonnull align 4 dereferenceable(520) %166, ptr noundef nonnull align 4 dereferenceable(520) %165)
  br label %167

167:                                              ; preds = %157, %122
  br label %118, !llvm.loop !19

168:                                              ; preds = %118
  %169 = load ptr, ptr %11, align 8, !tbaa !9
  %170 = getelementptr inbounds %struct.Poly, ptr %169, i32 0, i32 0
  %171 = load i32, ptr %170, align 4, !tbaa !13
  %172 = add nsw i32 %171, 1
  %173 = load ptr, ptr %12, align 8, !tbaa !9
  %174 = getelementptr inbounds %struct.Poly, ptr %173, i32 0, i32 0
  %175 = load i32, ptr %174, align 4, !tbaa !13
  %176 = icmp eq i32 %172, %175
  br i1 %176, label %177, label %186

177:                                              ; preds = %168
  %178 = load ptr, ptr %11, align 8, !tbaa !9
  %179 = getelementptr inbounds %struct.Poly, ptr %178, i32 0, i32 1
  %180 = load ptr, ptr %11, align 8, !tbaa !9
  %181 = getelementptr inbounds %struct.Poly, ptr %180, i32 0, i32 0
  %182 = load i32, ptr %181, align 4, !tbaa !13
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds [129 x i32], ptr %179, i64 0, i64 %183
  %185 = load i32, ptr %184, align 4, !tbaa !5
  br label %187

186:                                              ; preds = %168
  br label %187

187:                                              ; preds = %186, %177
  %188 = phi i32 [ %185, %177 ], [ 0, %186 ]
  %189 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %188)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %190

190:                                              ; preds = %187, %21
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %191 = load i32, ptr %3, align 4
  ret i32 %191
}

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

declare i32 @__isoc99_scanf(ptr noundef, ...) #2

declare i32 @puts(ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4Poly6assignERKS_(ptr noundef nonnull align 4 dereferenceable(520), ptr noundef nonnull align 4 dereferenceable(520)) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4PolymLERKS_(ptr noundef nonnull align 4 dereferenceable(520), ptr noundef nonnull align 4 dereferenceable(520)) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4PolymIERKS_(ptr noundef nonnull align 4 dereferenceable(520), ptr noundef nonnull align 4 dereferenceable(520)) #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4PolyrMERKS_(ptr noundef nonnull align 4 dereferenceable(520), ptr noundef nonnull align 4 dereferenceable(520)) #3 align 2

declare i32 @printf(ptr noundef, ...) #2

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

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

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


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

%struct.Poly = type { i32, [129 x i32] }

@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZZ4mainE1f = external hidden global [2 x %struct.Poly], align 16
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  %3 = alloca i64, align 8
  %4 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  %5 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %3, ptr noundef nonnull %4)
  %6 = load i64, ptr %3, align 8, !tbaa !5
  %7 = load i32, ptr %4, align 4, !tbaa !9
  %8 = shl nuw i32 1, %7
  %9 = sext i32 %8 to i64
  %10 = icmp slt i64 %6, %9
  br i1 %10, label %11, label %13

11:                                               ; preds = %2
  %12 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.1)
  br label %71

13:                                               ; preds = %2
  store <4 x i32> <i32 2, i32 1, i32 1, i32 998244352>, ptr @_ZZ4mainE1f, align 16, !tbaa !9
  %14 = icmp sgt i32 %7, 1
  br i1 %14, label %.lr.ph, label %._crit_edge

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %.pre = load i64, ptr %3, align 8, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %13
  %15 = phi i64 [ %6, %13 ], [ %.pre, %._crit_edge.loopexit ]
  %.045.lcssa = phi i32 [ 0, %13 ], [ %23, %._crit_edge.loopexit ]
  %16 = xor i32 %.045.lcssa, 1
  %17 = zext nneg i32 %16 to i64
  %18 = getelementptr inbounds [2 x %struct.Poly], ptr @_ZZ4mainE1f, i64 0, i64 %17
  %19 = zext nneg i32 %.045.lcssa to i64
  %20 = getelementptr inbounds i8, ptr %18, i64 4
  %21 = getelementptr inbounds i8, ptr %18, i64 8
  store i32 1, ptr %21, align 8, !tbaa !9
  store i32 1, ptr %18, align 8, !tbaa !11
  store i32 0, ptr %20, align 4, !tbaa !9
  %22 = add nsw i64 %15, -1
  store i64 %22, ptr %3, align 8, !tbaa !5
  br label %32

.lr.ph:                                           ; preds = %13, %.lr.ph
  %.04450 = phi i32 [ %29, %.lr.ph ], [ 1, %13 ]
  %.04549 = phi i32 [ %23, %.lr.ph ], [ 0, %13 ]
  %.not48 = icmp eq i32 %.04549, 0
  %23 = xor i32 %.04549, 1
  %24 = zext i1 %.not48 to i64
  %25 = getelementptr inbounds [2 x %struct.Poly], ptr @_ZZ4mainE1f, i64 0, i64 %24
  %26 = zext nneg i32 %.04549 to i64
  %27 = getelementptr inbounds [2 x %struct.Poly], ptr @_ZZ4mainE1f, i64 0, i64 %26
  call void @_ZN4Poly6assignERKS_(ptr noundef nonnull align 4 dereferenceable(520) %25, ptr noundef nonnull align 4 dereferenceable(520) %27)
  %28 = getelementptr inbounds i8, ptr %25, i64 4
  call void @_Z7mod_incRii(ptr noundef nonnull align 4 dereferenceable(4) %28, i32 noundef 1)
  call void @_ZN4PolymLERKS_(ptr noundef nonnull align 4 dereferenceable(520) %27, ptr noundef nonnull align 4 dereferenceable(520) %27)
  call void @_ZN4PolymIERKS_(ptr noundef nonnull align 4 dereferenceable(520) %25, ptr noundef nonnull align 4 dereferenceable(520) %27)
  %29 = add nuw nsw i32 %.04450, 1
  %30 = load i32, ptr %4, align 4, !tbaa !9
  %31 = icmp slt i32 %29, %30
  br i1 %31, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !13

32:                                               ; preds = %32, %._crit_edge
  %indvars.iv = phi i64 [ %indvars.iv.next, %32 ], [ 0, %._crit_edge ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %33 = shl nuw i64 2, %indvars.iv
  %.not.not = icmp slt i64 %33, %15
  br i1 %.not.not, label %32, label %.preheader, !llvm.loop !15

.preheader:                                       ; preds = %32
  %34 = getelementptr inbounds [2 x %struct.Poly], ptr @_ZZ4mainE1f, i64 0, i64 %19
  %.not = icmp eq i64 %indvars.iv, 0
  br i1 %.not, label %._crit_edge56, label %.lr.ph55

.lr.ph55:                                         ; preds = %.preheader, %58
  %indvars.iv62 = phi i64 [ %indvars.iv.next63, %58 ], [ %indvars.iv, %.preheader ]
  %indvars.iv.next63 = add nsw i64 %indvars.iv62, -1
  call void @_ZN4PolymLERKS_(ptr noundef nonnull align 4 dereferenceable(520) %18, ptr noundef nonnull align 4 dereferenceable(520) %18)
  call void @_ZN4PolyrMERKS_(ptr noundef nonnull align 4 dereferenceable(520) %18, ptr noundef nonnull align 4 dereferenceable(520) %34)
  %35 = load i64, ptr %3, align 8, !tbaa !5
  %36 = and i64 %indvars.iv.next63, 4294967295
  %37 = shl nuw i64 1, %36
  %38 = and i64 %35, %37
  %.not47 = icmp eq i64 %38, 0
  br i1 %.not47, label %58, label %39

39:                                               ; preds = %.lr.ph55
  %40 = load i32, ptr %18, align 8, !tbaa !11
  %41 = icmp sgt i32 %40, -1
  br i1 %41, label %.lr.ph53.preheader, label %._crit_edge54

.lr.ph53.preheader:                               ; preds = %39
  %42 = zext nneg i32 %40 to i64
  %43 = add nuw nsw i64 %42, 1
  %min.iters.check = icmp ult i32 %40, 7
  br i1 %min.iters.check, label %.lr.ph53.preheader72, label %vector.ph

.lr.ph53.preheader72:                             ; preds = %middle.block, %.lr.ph53.preheader
  %indvars.iv59.ph = phi i64 [ %42, %.lr.ph53.preheader ], [ %ind.end, %middle.block ]
  br label %.lr.ph53

vector.ph:                                        ; preds = %.lr.ph53.preheader
  %n.vec = and i64 %43, 4294967288
  %ind.end = sub nsw i64 %42, %n.vec
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = sub i64 %42, %index
  %44 = getelementptr inbounds [129 x i32], ptr %20, i64 0, i64 %offset.idx
  %45 = getelementptr inbounds i8, ptr %44, i64 -12
  %46 = getelementptr inbounds i8, ptr %44, i64 -28
  %wide.load = load <4 x i32>, ptr %45, align 4, !tbaa !9
  %wide.load68 = load <4 x i32>, ptr %46, align 4, !tbaa !9
  %47 = add nuw nsw i64 %offset.idx, 1
  %48 = getelementptr inbounds [129 x i32], ptr %20, i64 0, i64 %47
  %49 = getelementptr inbounds i8, ptr %48, i64 -12
  %50 = getelementptr inbounds i8, ptr %48, i64 -28
  store <4 x i32> %wide.load, ptr %49, align 4, !tbaa !9
  store <4 x i32> %wide.load68, ptr %50, align 4, !tbaa !9
  %index.next = add nuw i64 %index, 8
  %51 = icmp eq i64 %index.next, %n.vec
  br i1 %51, label %middle.block, label %vector.body, !llvm.loop !16

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %43, %n.vec
  br i1 %cmp.n, label %._crit_edge54.loopexit, label %.lr.ph53.preheader72

._crit_edge54.loopexit:                           ; preds = %.lr.ph53, %middle.block
  %.pre65 = load i32, ptr %18, align 8, !tbaa !11
  br label %._crit_edge54

._crit_edge54:                                    ; preds = %._crit_edge54.loopexit, %39
  %52 = phi i32 [ %.pre65, %._crit_edge54.loopexit ], [ %40, %39 ]
  store i32 0, ptr %20, align 4, !tbaa !9
  %53 = add nsw i32 %52, 1
  store i32 %53, ptr %18, align 8, !tbaa !11
  call void @_ZN4PolyrMERKS_(ptr noundef nonnull align 4 dereferenceable(520) %18, ptr noundef nonnull align 4 dereferenceable(520) %34)
  br label %58

.lr.ph53:                                         ; preds = %.lr.ph53.preheader72, %.lr.ph53
  %indvars.iv59 = phi i64 [ %indvars.iv.next60, %.lr.ph53 ], [ %indvars.iv59.ph, %.lr.ph53.preheader72 ]
  %54 = getelementptr inbounds [129 x i32], ptr %20, i64 0, i64 %indvars.iv59
  %55 = load i32, ptr %54, align 4, !tbaa !9
  %56 = add nuw nsw i64 %indvars.iv59, 1
  %57 = getelementptr inbounds [129 x i32], ptr %20, i64 0, i64 %56
  store i32 %55, ptr %57, align 4, !tbaa !9
  %indvars.iv.next60 = add nsw i64 %indvars.iv59, -1
  %.not67 = icmp eq i64 %indvars.iv59, 0
  br i1 %.not67, label %._crit_edge54.loopexit, label %.lr.ph53, !llvm.loop !19

58:                                               ; preds = %._crit_edge54, %.lr.ph55
  %59 = icmp sgt i64 %indvars.iv62, 1
  br i1 %59, label %.lr.ph55, label %._crit_edge56.loopexit, !llvm.loop !20

._crit_edge56.loopexit:                           ; preds = %58
  %.pre66 = load i32, ptr %18, align 8, !tbaa !11
  br label %._crit_edge56

._crit_edge56:                                    ; preds = %._crit_edge56.loopexit, %.preheader
  %60 = phi i32 [ %.pre66, %._crit_edge56.loopexit ], [ 1, %.preheader ]
  %61 = add nsw i32 %60, 1
  %62 = load i32, ptr %34, align 8, !tbaa !11
  %63 = icmp eq i32 %61, %62
  br i1 %63, label %64, label %68

64:                                               ; preds = %._crit_edge56
  %65 = sext i32 %60 to i64
  %66 = getelementptr inbounds [129 x i32], ptr %20, i64 0, i64 %65
  %67 = load i32, ptr %66, align 4, !tbaa !9
  br label %68

68:                                               ; preds = %._crit_edge56, %64
  %69 = phi i32 [ %67, %64 ], [ 0, %._crit_edge56 ]
  %70 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %69)
  br label %71

71:                                               ; preds = %68, %11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  ret i32 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: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4Poly6assignERKS_(ptr noundef nonnull align 4 dereferenceable(520), ptr noundef nonnull align 4 dereferenceable(520)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4PolymLERKS_(ptr noundef nonnull align 4 dereferenceable(520), ptr noundef nonnull align 4 dereferenceable(520)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4PolymIERKS_(ptr noundef nonnull align 4 dereferenceable(520), ptr noundef nonnull align 4 dereferenceable(520)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4PolyrMERKS_(ptr noundef nonnull align 4 dereferenceable(520), ptr noundef nonnull align 4 dereferenceable(520)) local_unnamed_addr #3 align 2

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

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

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass