; LLVM IR from tangjz/acm-icpc :: TDL_training/2016-03-27/J -  Joining Powers - tjz.ll (Z5preDPv)

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

@n = external dso_local global i32, align 4
@a = external dso_local global [45 x i32], align 16
@f = external dso_local global [45 x [60 x [2 x i64]]], align 16
@coeff = external dso_local global [60 x i64], align 16

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5preDPv() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  call void @llvm.memset.p0.i64(ptr align 16 @f, i8 0, i64 960, i1 false)
  store i64 1, ptr getelementptr inbounds ([60 x [2 x i64]], ptr @f, i64 0, i64 1), align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #5
  store i32 1, ptr %1, align 4, !tbaa !9
  br label %6

6:                                                ; preds = %86, %0
  %7 = load i32, ptr %1, align 4, !tbaa !9
  %8 = load i32, ptr @n, align 4, !tbaa !9
  %9 = icmp sle i32 %7, %8
  br i1 %9, label %11, label %10

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

11:                                               ; preds = %6
  %12 = load i32, ptr %1, align 4, !tbaa !9
  %13 = sext i32 %12 to i64
  %14 = getelementptr inbounds [45 x [60 x [2 x i64]]], ptr @f, i64 0, i64 %13
  %15 = getelementptr inbounds [60 x [2 x i64]], ptr %14, i64 0, i64 0
  %16 = load i32, ptr %1, align 4, !tbaa !9
  %17 = sub nsw i32 %16, 1
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds [45 x [60 x [2 x i64]]], ptr @f, i64 0, i64 %18
  %20 = getelementptr inbounds [60 x [2 x i64]], ptr %19, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %15, ptr align 16 %20, i64 960, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 1, ptr %3, align 4, !tbaa !9
  br label %21

21:                                               ; preds = %82, %11
  %22 = load i32, ptr %3, align 4, !tbaa !9
  %23 = icmp slt i32 %22, 60
  br i1 %23, label %25, label %24

24:                                               ; preds = %21
  store i32 5, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %85

25:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  %26 = load i32, ptr %3, align 4, !tbaa !9
  %27 = load i32, ptr %1, align 4, !tbaa !9
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [45 x i32], ptr @a, i64 0, i64 %28
  %30 = load i32, ptr %29, align 4, !tbaa !9
  %31 = mul nsw i32 %26, %30
  %32 = load i32, ptr %3, align 4, !tbaa !9
  %33 = load i32, ptr %1, align 4, !tbaa !9
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [45 x i32], ptr @a, i64 0, i64 %34
  %36 = load i32, ptr %35, align 4, !tbaa !9
  %37 = call noundef i32 @_ZSt5__gcdIiET_S0_S0_(i32 noundef %32, i32 noundef %36)
  %38 = sdiv i32 %31, %37
  store i32 %38, ptr %4, align 4, !tbaa !9
  %39 = load i32, ptr %4, align 4, !tbaa !9
  %40 = icmp sgt i32 %39, 60
  br i1 %40, label %41, label %42

41:                                               ; preds = %25
  store i32 7, ptr %2, align 4
  br label %79

42:                                               ; preds = %25
  %43 = load i32, ptr %1, align 4, !tbaa !9
  %44 = sub nsw i32 %43, 1
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [45 x [60 x [2 x i64]]], ptr @f, i64 0, i64 %45
  %47 = load i32, ptr %3, align 4, !tbaa !9
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [60 x [2 x i64]], ptr %46, i64 0, i64 %48
  %50 = getelementptr inbounds [2 x i64], ptr %49, i64 0, i64 1
  %51 = load i64, ptr %50, align 8, !tbaa !5
  %52 = load i32, ptr %1, align 4, !tbaa !9
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [45 x [60 x [2 x i64]]], ptr @f, i64 0, i64 %53
  %55 = load i32, ptr %4, align 4, !tbaa !9
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [60 x [2 x i64]], ptr %54, i64 0, i64 %56
  %58 = getelementptr inbounds [2 x i64], ptr %57, i64 0, i64 0
  %59 = load i64, ptr %58, align 16, !tbaa !5
  %60 = add nsw i64 %59, %51
  store i64 %60, ptr %58, align 16, !tbaa !5
  %61 = load i32, ptr %1, align 4, !tbaa !9
  %62 = sub nsw i32 %61, 1
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [45 x [60 x [2 x i64]]], ptr @f, i64 0, i64 %63
  %65 = load i32, ptr %3, align 4, !tbaa !9
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [60 x [2 x i64]], ptr %64, i64 0, i64 %66
  %68 = getelementptr inbounds [2 x i64], ptr %67, i64 0, i64 0
  %69 = load i64, ptr %68, align 16, !tbaa !5
  %70 = load i32, ptr %1, align 4, !tbaa !9
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [45 x [60 x [2 x i64]]], ptr @f, i64 0, i64 %71
  %73 = load i32, ptr %4, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [60 x [2 x i64]], ptr %72, i64 0, i64 %74
  %76 = getelementptr inbounds [2 x i64], ptr %75, i64 0, i64 1
  %77 = load i64, ptr %76, align 8, !tbaa !5
  %78 = add nsw i64 %77, %69
  store i64 %78, ptr %76, align 8, !tbaa !5
  store i32 0, ptr %2, align 4
  br label %79

79:                                               ; preds = %42, %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  %80 = load i32, ptr %2, align 4
  switch i32 %80, label %127 [
    i32 0, label %81
    i32 7, label %82
  ]

81:                                               ; preds = %79
  br label %82

82:                                               ; preds = %81, %79
  %83 = load i32, ptr %3, align 4, !tbaa !9
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %3, align 4, !tbaa !9
  br label %21, !llvm.loop !11

85:                                               ; preds = %24
  br label %86

86:                                               ; preds = %85
  %87 = load i32, ptr %1, align 4, !tbaa !9
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr %1, align 4, !tbaa !9
  br label %6, !llvm.loop !13

89:                                               ; preds = %10
  store i64 0, ptr @coeff, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 1, ptr %5, align 4, !tbaa !9
  br label %90

90:                                               ; preds = %121, %89
  %91 = load i32, ptr %5, align 4, !tbaa !9
  %92 = icmp slt i32 %91, 60
  br i1 %92, label %94, label %93

93:                                               ; preds = %90
  store i32 8, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %124

94:                                               ; preds = %90
  %95 = load i32, ptr @n, align 4, !tbaa !9
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [45 x [60 x [2 x i64]]], ptr @f, i64 0, i64 %96
  %98 = load i32, ptr %5, align 4, !tbaa !9
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [60 x [2 x i64]], ptr %97, i64 0, i64 %99
  %101 = getelementptr inbounds [2 x i64], ptr %100, i64 0, i64 1
  %102 = load i64, ptr %101, align 8, !tbaa !5
  %103 = load i32, ptr @n, align 4, !tbaa !9
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [45 x [60 x [2 x i64]]], ptr @f, i64 0, i64 %104
  %106 = load i32, ptr %5, align 4, !tbaa !9
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [60 x [2 x i64]], ptr %105, i64 0, i64 %107
  %109 = getelementptr inbounds [2 x i64], ptr %108, i64 0, i64 0
  %110 = load i64, ptr %109, align 16, !tbaa !5
  %111 = sub nsw i64 %102, %110
  %112 = load i32, ptr %5, align 4, !tbaa !9
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [60 x i64], ptr @coeff, i64 0, i64 %113
  store i64 %111, ptr %114, align 8, !tbaa !5
  %115 = load i32, ptr %5, align 4, !tbaa !9
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [60 x i64], ptr @coeff, i64 0, i64 %116
  %118 = load i64, ptr %117, align 8, !tbaa !5
  %119 = load i64, ptr @coeff, align 16, !tbaa !5
  %120 = sub nsw i64 %119, %118
  store i64 %120, ptr @coeff, align 16, !tbaa !5
  br label %121

121:                                              ; preds = %94
  %122 = load i32, ptr %5, align 4, !tbaa !9
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %5, align 4, !tbaa !9
  br label %90, !llvm.loop !14

124:                                              ; preds = %93
  %125 = load i64, ptr getelementptr inbounds ([60 x i64], ptr @coeff, i64 0, i64 1), align 8, !tbaa !5
  %126 = add nsw i64 %125, 1
  store i64 %126, ptr getelementptr inbounds ([60 x i64], ptr @coeff, i64 0, i64 1), align 8, !tbaa !5
  ret void

127:                                              ; preds = %79
  unreachable
}

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #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) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZSt5__gcdIiET_S0_S0_(i32 noundef, i32 noundef) #4

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 nounwind willreturn memory(argmem: write) }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !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"

@n = external dso_local local_unnamed_addr global i32, align 4
@a = external dso_local local_unnamed_addr global [45 x i32], align 16
@f = external dso_local local_unnamed_addr global [45 x [60 x [2 x i64]]], align 16
@coeff = external dso_local local_unnamed_addr global [60 x i64], align 16

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z5preDPv() local_unnamed_addr #0 {
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(960) @f, i8 0, i64 960, i1 false)
  store i64 1, ptr getelementptr inbounds (i8, ptr @f, i64 16), align 16, !tbaa !5
  %1 = load i32, ptr @n, align 4, !tbaa !9
  %.not29 = icmp slt i32 %1, 1
  br i1 %.not29, label %.._crit_edge_crit_edge, label %.lr.ph

.._crit_edge_crit_edge:                           ; preds = %0
  %.pre = sext i32 %1 to i64
  br label %vector.body

vector.body:                                      ; preds = %.._crit_edge_crit_edge, %110
  %.pre-phi = phi i64 [ %.pre, %.._crit_edge_crit_edge ], [ %112, %110 ]
  %2 = getelementptr inbounds [45 x [60 x [2 x i64]]], ptr @f, i64 0, i64 %.pre-phi, i64 1
  %3 = getelementptr inbounds [45 x [60 x [2 x i64]]], ptr @f, i64 0, i64 %.pre-phi, i64 3
  %wide.vec = load <4 x i64>, ptr %2, align 16, !tbaa !5
  %wide.vec46 = load <4 x i64>, ptr %3, align 16, !tbaa !5
  %strided.vec = shufflevector <4 x i64> %wide.vec, <4 x i64> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec47 = shufflevector <4 x i64> %wide.vec46, <4 x i64> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec48 = shufflevector <4 x i64> %wide.vec, <4 x i64> poison, <2 x i32> <i32 1, i32 3>
  %strided.vec49 = shufflevector <4 x i64> %wide.vec46, <4 x i64> poison, <2 x i32> <i32 1, i32 3>
  %4 = sub nsw <2 x i64> %strided.vec48, %strided.vec
  %5 = sub nsw <2 x i64> %strided.vec49, %strided.vec47
  store <2 x i64> %4, ptr getelementptr inbounds (i8, ptr @coeff, i64 8), align 8, !tbaa !5
  store <2 x i64> %5, ptr getelementptr inbounds (i8, ptr @coeff, i64 24), align 8, !tbaa !5
  %6 = getelementptr inbounds [45 x [60 x [2 x i64]]], ptr @f, i64 0, i64 %.pre-phi, i64 5
  %7 = getelementptr inbounds [45 x [60 x [2 x i64]]], ptr @f, i64 0, i64 %.pre-phi, i64 7
  %wide.vec.1 = load <4 x i64>, ptr %6, align 16, !tbaa !5
  %wide.vec46.1 = load <4 x i64>, ptr %7, align 16, !tbaa !5
  %strided.vec.1 = shufflevector <4 x i64> %wide.vec.1, <4 x i64> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec47.1 = shufflevector <4 x i64> %wide.vec46.1, <4 x i64> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec48.1 = shufflevector <4 x i64> %wide.vec.1, <4 x i64> poison, <2 x i32> <i32 1, i32 3>
  %strided.vec49.1 = shufflevector <4 x i64> %wide.vec46.1, <4 x i64> poison, <2 x i32> <i32 1, i32 3>
  %8 = sub nsw <2 x i64> %strided.vec48.1, %strided.vec.1
  %9 = sub nsw <2 x i64> %strided.vec49.1, %strided.vec47.1
  store <2 x i64> %8, ptr getelementptr inbounds (i8, ptr @coeff, i64 40), align 8, !tbaa !5
  store <2 x i64> %9, ptr getelementptr inbounds (i8, ptr @coeff, i64 56), align 8, !tbaa !5
  %10 = getelementptr inbounds [45 x [60 x [2 x i64]]], ptr @f, i64 0, i64 %.pre-phi, i64 9
  %11 = getelementptr inbounds [45 x [60 x [2 x i64]]], ptr @f, i64 0, i64 %.pre-phi, i64 11
  %wide.vec.2 = load <4 x i64>, ptr %10, align 16, !tbaa !5
  %wide.vec46.2 = load <4 x i64>, ptr %11, align 16, !tbaa !5
  %strided.vec.2 = shufflevector <4 x i64> %wide.vec.2, <4 x i64> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec47.2 = shufflevector <4 x i64> %wide.vec46.2, <4 x i64> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec48.2 = shufflevector <4 x i64> %wide.vec.2, <4 x i64> poison, <2 x i32> <i32 1, i32 3>
  %strided.vec49.2 = shufflevector <4 x i64> %wide.vec46.2, <4 x i64> poison, <2 x i32> <i32 1, i32 3>
  %12 = sub nsw <2 x i64> %strided.vec48.2, %strided.vec.2
  %13 = sub nsw <2 x i64> %strided.vec49.2, %strided.vec47.2
  store <2 x i64> %12, ptr getelementptr inbounds (i8, ptr @coeff, i64 72), align 8, !tbaa !5
  store <2 x i64> %13, ptr getelementptr inbounds (i8, ptr @coeff, i64 88), align 8, !tbaa !5
  %14 = getelementptr inbounds [45 x [60 x [2 x i64]]], ptr @f, i64 0, i64 %.pre-phi, i64 13
  %15 = getelementptr inbounds [45 x [60 x [2 x i64]]], ptr @f, i64 0, i64 %.pre-phi, i64 15
  %wide.vec.3 = load <4 x i64>, ptr %14, align 16, !tbaa !5
  %wide.vec46.3 = load <4 x i64>, ptr %15, align 16, !tbaa !5
  %strided.vec.3 = shufflevector <4 x i64> %wide.vec.3, <4 x i64> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec47.3 = shufflevector <4 x i64> %wide.vec46.3, <4 x i64> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec48.3 = shufflevector <4 x i64> %wide.vec.3, <4 x i64> poison, <2 x i32> <i32 1, i32 3>
  %strided.vec49.3 = shufflevector <4 x i64> %wide.vec46.3, <4 x i64> poison, <2 x i32> <i32 1, i32 3>
  %16 = sub nsw <2 x i64> %strided.vec48.3, %strided.vec.3
  %17 = sub nsw <2 x i64> %strided.vec49.3, %strided.vec47.3
  store <2 x i64> %16, ptr getelementptr inbounds (i8, ptr @coeff, i64 104), align 8, !tbaa !5
  store <2 x i64> %17, ptr getelementptr inbounds (i8, ptr @coeff, i64 120), align 8, !tbaa !5
  %18 = getelementptr inbounds [45 x [60 x [2 x i64]]], ptr @f, i64 0, i64 %.pre-phi, i64 17
  %19 = getelementptr inbounds [45 x [60 x [2 x i64]]], ptr @f, i64 0, i64 %.pre-phi, i64 19
  %wide.vec.4 = load <4 x i64>, ptr %18, align 16, !tbaa !5
  %wide.vec46.4 = load <4 x i64>, ptr %19, align 16, !tbaa !5
  %strided.vec.4 = shufflevector <4 x i64> %wide.vec.4, <4 x i64> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec47.4 = shufflevector <4 x i64> %wide.vec46.4, <4 x i64> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec48.4 = shufflevector <4 x i64> %wide.vec.4, <4 x i64> poison, <2 x i32> <i32 1, i32 3>
  %strided.vec49.4 = shufflevector <4 x i64> %wide.vec46.4, <4 x i64> poison, <2 x i32> <i32 1, i32 3>
  %20 = sub nsw <2 x i64> %strided.vec48.4, %strided.vec.4
  %21 = sub nsw <2 x i64> %strided.vec49.4, %strided.vec47.4
  store <2 x i64> %20, ptr getelementptr inbounds (i8, ptr @coeff, i64 136), align 8, !tbaa !5
  store <2 x i64> %21, ptr getelementptr inbounds (i8, ptr @coeff, i64 152), align 8, !tbaa !5
  %22 = getelementptr inbounds [45 x [60 x [2 x i64]]], ptr @f, i64 0, i64 %.pre-phi, i64 21
  %23 = getelementptr inbounds [45 x [60 x [2 x i64]]], ptr @f, i64 0, i64 %.pre-phi, i64 23
  %wide.vec.5 = load <4 x i64>, ptr %22, align 16, !tbaa !5
  %wide.vec46.5 = load <4 x i64>, ptr %23, align 16, !tbaa !5
  %strided.vec.5 = shufflevector <4 x i64> %wide.vec.5, <4 x i64> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec47.5 = shufflevector <4 x i64> %wide.vec46.5, <4 x i64> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec48.5 = shufflevector <4 x i64> %wide.vec.5, <4 x i64> poison, <2 x i32> <i32 1, i32 3>
  %strided.vec49.5 = shufflevector <4 x i64> %wide.vec46.5, <4 x i64> poison, <2 x i32> <i32 1, i32 3>
  %24 = sub nsw <2 x i64> %strided.vec48.5, %strided.vec.5
  %25 = sub nsw <2 x i64> %strided.vec49.5, %strided.vec47.5
  store <2 x i64> %24, ptr getelementptr inbounds (i8, ptr @coeff, i64 168), align 8, !tbaa !5
  store <2 x i64> %25, ptr getelementptr inbounds (i8, ptr @coeff, i64 184), align 8, !tbaa !5
  %26 = getelementptr inbounds [45 x [60 x [2 x i64]]], ptr @f, i64 0, i64 %.pre-phi, i64 25
  %27 = getelementptr inbounds [45 x [60 x [2 x i64]]], ptr @f, i64 0, i64 %.pre-phi, i64 27
  %wide.vec.6 = load <4 x i64>, ptr %26, align 16, !tbaa !5
  %wide.vec46.6 = load <4 x i64>, ptr %27, align 16, !tbaa !5
  %strided.vec.6 = shufflevector <4 x i64> %wide.vec.6, <4 x i64> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec47.6 = shufflevector <4 x i64> %wide.vec46.6, <4 x i64> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec48.6 = shufflevector <4 x i64> %wide.vec.6, <4 x i64> poison, <2 x i32> <i32 1, i32 3>
  %strided.vec49.6 = shufflevector <4 x i64> %wide.vec46.6, <4 x i64> poison, <2 x i32> <i32 1, i32 3>
  %28 = sub nsw <2 x i64> %strided.vec48.6, %strided.vec.6
  %29 = sub nsw <2 x i64> %strided.vec49.6, %strided.vec47.6
  store <2 x i64> %28, ptr getelementptr inbounds (i8, ptr @coeff, i64 200), align 8, !tbaa !5
  store <2 x i64> %29, ptr getelementptr inbounds (i8, ptr @coeff, i64 216), align 8, !tbaa !5
  %30 = getelementptr inbounds [45 x [60 x [2 x i64]]], ptr @f, i64 0, i64 %.pre-phi, i64 29
  %31 = getelementptr inbounds [45 x [60 x [2 x i64]]], ptr @f, i64 0, i64 %.pre-phi, i64 31
  %wide.vec.7 = load <4 x i64>, ptr %30, align 16, !tbaa !5
  %wide.vec46.7 = load <4 x i64>, ptr %31, align 16, !tbaa !5
  %strided.vec.7 = shufflevector <4 x i64> %wide.vec.7, <4 x i64> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec47.7 = shufflevector <4 x i64> %wide.vec46.7, <4 x i64> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec48.7 = shufflevector <4 x i64> %wide.vec.7, <4 x i64> poison, <2 x i32> <i32 1, i32 3>
  %strided.vec49.7 = shufflevector <4 x i64> %wide.vec46.7, <4 x i64> poison, <2 x i32> <i32 1, i32 3>
  %32 = sub nsw <2 x i64> %strided.vec48.7, %strided.vec.7
  %33 = sub nsw <2 x i64> %strided.vec49.7, %strided.vec47.7
  store <2 x i64> %32, ptr getelementptr inbounds (i8, ptr @coeff, i64 232), align 8, !tbaa !5
  store <2 x i64> %33, ptr getelementptr inbounds (i8, ptr @coeff, i64 248), align 8, !tbaa !5
  %34 = getelementptr inbounds [45 x [60 x [2 x i64]]], ptr @f, i64 0, i64 %.pre-phi, i64 33
  %35 = getelementptr inbounds [45 x [60 x [2 x i64]]], ptr @f, i64 0, i64 %.pre-phi, i64 35
  %wide.vec.8 = load <4 x i64>, ptr %34, align 16, !tbaa !5
  %wide.vec46.8 = load <4 x i64>, ptr %35, align 16, !tbaa !5
  %strided.vec.8 = shufflevector <4 x i64> %wide.vec.8, <4 x i64> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec47.8 = shufflevector <4 x i64> %wide.vec46.8, <4 x i64> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec48.8 = shufflevector <4 x i64> %wide.vec.8, <4 x i64> poison, <2 x i32> <i32 1, i32 3>
  %strided.vec49.8 = shufflevector <4 x i64> %wide.vec46.8, <4 x i64> poison, <2 x i32> <i32 1, i32 3>
  %36 = sub nsw <2 x i64> %strided.vec48.8, %strided.vec.8
  %37 = sub nsw <2 x i64> %strided.vec49.8, %strided.vec47.8
  store <2 x i64> %36, ptr getelementptr inbounds (i8, ptr @coeff, i64 264), align 8, !tbaa !5
  store <2 x i64> %37, ptr getelementptr inbounds (i8, ptr @coeff, i64 280), align 8, !tbaa !5
  %38 = getelementptr inbounds [45 x [60 x [2 x i64]]], ptr @f, i64 0, i64 %.pre-phi, i64 37
  %39 = getelementptr inbounds [45 x [60 x [2 x i64]]], ptr @f, i64 0, i64 %.pre-phi, i64 39
  %wide.vec.9 = load <4 x i64>, ptr %38, align 16, !tbaa !5
  %wide.vec46.9 = load <4 x i64>, ptr %39, align 16, !tbaa !5
  %strided.vec.9 = shufflevector <4 x i64> %wide.vec.9, <4 x i64> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec47.9 = shufflevector <4 x i64> %wide.vec46.9, <4 x i64> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec48.9 = shufflevector <4 x i64> %wide.vec.9, <4 x i64> poison, <2 x i32> <i32 1, i32 3>
  %strided.vec49.9 = shufflevector <4 x i64> %wide.vec46.9, <4 x i64> poison, <2 x i32> <i32 1, i32 3>
  %40 = sub nsw <2 x i64> %strided.vec48.9, %strided.vec.9
  %41 = sub nsw <2 x i64> %strided.vec49.9, %strided.vec47.9
  store <2 x i64> %40, ptr getelementptr inbounds (i8, ptr @coeff, i64 296), align 8, !tbaa !5
  store <2 x i64> %41, ptr getelementptr inbounds (i8, ptr @coeff, i64 312), align 8, !tbaa !5
  %42 = getelementptr inbounds [45 x [60 x [2 x i64]]], ptr @f, i64 0, i64 %.pre-phi, i64 41
  %43 = getelementptr inbounds [45 x [60 x [2 x i64]]], ptr @f, i64 0, i64 %.pre-phi, i64 43
  %wide.vec.10 = load <4 x i64>, ptr %42, align 16, !tbaa !5
  %wide.vec46.10 = load <4 x i64>, ptr %43, align 16, !tbaa !5
  %strided.vec.10 = shufflevector <4 x i64> %wide.vec.10, <4 x i64> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec47.10 = shufflevector <4 x i64> %wide.vec46.10, <4 x i64> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec48.10 = shufflevector <4 x i64> %wide.vec.10, <4 x i64> poison, <2 x i32> <i32 1, i32 3>
  %strided.vec49.10 = shufflevector <4 x i64> %wide.vec46.10, <4 x i64> poison, <2 x i32> <i32 1, i32 3>
  %44 = sub nsw <2 x i64> %strided.vec48.10, %strided.vec.10
  %45 = sub nsw <2 x i64> %strided.vec49.10, %strided.vec47.10
  store <2 x i64> %44, ptr getelementptr inbounds (i8, ptr @coeff, i64 328), align 8, !tbaa !5
  store <2 x i64> %45, ptr getelementptr inbounds (i8, ptr @coeff, i64 344), align 8, !tbaa !5
  %46 = getelementptr inbounds [45 x [60 x [2 x i64]]], ptr @f, i64 0, i64 %.pre-phi, i64 45
  %47 = getelementptr inbounds [45 x [60 x [2 x i64]]], ptr @f, i64 0, i64 %.pre-phi, i64 47
  %wide.vec.11 = load <4 x i64>, ptr %46, align 16, !tbaa !5
  %wide.vec46.11 = load <4 x i64>, ptr %47, align 16, !tbaa !5
  %strided.vec.11 = shufflevector <4 x i64> %wide.vec.11, <4 x i64> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec47.11 = shufflevector <4 x i64> %wide.vec46.11, <4 x i64> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec48.11 = shufflevector <4 x i64> %wide.vec.11, <4 x i64> poison, <2 x i32> <i32 1, i32 3>
  %strided.vec49.11 = shufflevector <4 x i64> %wide.vec46.11, <4 x i64> poison, <2 x i32> <i32 1, i32 3>
  %48 = sub nsw <2 x i64> %strided.vec48.11, %strided.vec.11
  %49 = sub nsw <2 x i64> %strided.vec49.11, %strided.vec47.11
  store <2 x i64> %48, ptr getelementptr inbounds (i8, ptr @coeff, i64 360), align 8, !tbaa !5
  store <2 x i64> %49, ptr getelementptr inbounds (i8, ptr @coeff, i64 376), align 8, !tbaa !5
  %50 = getelementptr inbounds [45 x [60 x [2 x i64]]], ptr @f, i64 0, i64 %.pre-phi, i64 49
  %51 = getelementptr inbounds [45 x [60 x [2 x i64]]], ptr @f, i64 0, i64 %.pre-phi, i64 51
  %wide.vec.12 = load <4 x i64>, ptr %50, align 16, !tbaa !5
  %wide.vec46.12 = load <4 x i64>, ptr %51, align 16, !tbaa !5
  %strided.vec.12 = shufflevector <4 x i64> %wide.vec.12, <4 x i64> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec47.12 = shufflevector <4 x i64> %wide.vec46.12, <4 x i64> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec48.12 = shufflevector <4 x i64> %wide.vec.12, <4 x i64> poison, <2 x i32> <i32 1, i32 3>
  %strided.vec49.12 = shufflevector <4 x i64> %wide.vec46.12, <4 x i64> poison, <2 x i32> <i32 1, i32 3>
  %52 = sub nsw <2 x i64> %strided.vec48.12, %strided.vec.12
  %53 = sub nsw <2 x i64> %strided.vec49.12, %strided.vec47.12
  store <2 x i64> %52, ptr getelementptr inbounds (i8, ptr @coeff, i64 392), align 8, !tbaa !5
  store <2 x i64> %53, ptr getelementptr inbounds (i8, ptr @coeff, i64 408), align 8, !tbaa !5
  %54 = getelementptr inbounds [45 x [60 x [2 x i64]]], ptr @f, i64 0, i64 %.pre-phi, i64 53
  %55 = getelementptr inbounds [45 x [60 x [2 x i64]]], ptr @f, i64 0, i64 %.pre-phi, i64 55
  %wide.vec.13 = load <4 x i64>, ptr %54, align 16, !tbaa !5
  %wide.vec46.13 = load <4 x i64>, ptr %55, align 16, !tbaa !5
  %strided.vec.13 = shufflevector <4 x i64> %wide.vec.13, <4 x i64> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec47.13 = shufflevector <4 x i64> %wide.vec46.13, <4 x i64> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec48.13 = shufflevector <4 x i64> %wide.vec.13, <4 x i64> poison, <2 x i32> <i32 1, i32 3>
  %strided.vec49.13 = shufflevector <4 x i64> %wide.vec46.13, <4 x i64> poison, <2 x i32> <i32 1, i32 3>
  %56 = sub nsw <2 x i64> %strided.vec48.13, %strided.vec.13
  %57 = sub nsw <2 x i64> %strided.vec49.13, %strided.vec47.13
  store <2 x i64> %56, ptr getelementptr inbounds (i8, ptr @coeff, i64 424), align 8, !tbaa !5
  store <2 x i64> %57, ptr getelementptr inbounds (i8, ptr @coeff, i64 440), align 8, !tbaa !5
  %58 = add <2 x i64> %5, %9
  %59 = add <2 x i64> %58, %13
  %60 = add <2 x i64> %59, %17
  %61 = add <2 x i64> %60, %21
  %62 = add <2 x i64> %61, %25
  %63 = add <2 x i64> %62, %29
  %64 = add <2 x i64> %63, %33
  %65 = add <2 x i64> %64, %37
  %66 = add <2 x i64> %65, %41
  %67 = add <2 x i64> %66, %45
  %68 = add <2 x i64> %67, %49
  %69 = add <2 x i64> %68, %53
  %70 = add <2 x i64> %69, %57
  %71 = add <2 x i64> %4, %8
  %72 = add <2 x i64> %71, %12
  %73 = add <2 x i64> %72, %16
  %74 = add <2 x i64> %73, %20
  %75 = add <2 x i64> %74, %24
  %76 = add <2 x i64> %75, %28
  %77 = add <2 x i64> %76, %32
  %78 = add <2 x i64> %77, %36
  %79 = add <2 x i64> %78, %40
  %80 = add <2 x i64> %79, %44
  %81 = add <2 x i64> %80, %48
  %82 = add <2 x i64> %81, %52
  %83 = add <2 x i64> %82, %56
  %84 = add <2 x i64> %70, %83
  %bin.rdx = sub <2 x i64> zeroinitializer, %84
  %85 = tail call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx)
  %86 = getelementptr inbounds [45 x [60 x [2 x i64]]], ptr @f, i64 0, i64 %.pre-phi, i64 57
  %87 = getelementptr inbounds i8, ptr %86, i64 8
  %88 = load i64, ptr %87, align 8, !tbaa !5
  %89 = load i64, ptr %86, align 16, !tbaa !5
  %90 = sub nsw i64 %88, %89
  store i64 %90, ptr getelementptr inbounds (i8, ptr @coeff, i64 456), align 8, !tbaa !5
  %91 = getelementptr inbounds [45 x [60 x [2 x i64]]], ptr @f, i64 0, i64 %.pre-phi, i64 58
  %92 = getelementptr inbounds i8, ptr %91, i64 8
  %93 = load i64, ptr %92, align 8, !tbaa !5
  %94 = load i64, ptr %91, align 16, !tbaa !5
  %95 = sub nsw i64 %93, %94
  store i64 %95, ptr getelementptr inbounds (i8, ptr @coeff, i64 464), align 16, !tbaa !5
  %96 = add i64 %90, %95
  %97 = getelementptr inbounds [45 x [60 x [2 x i64]]], ptr @f, i64 0, i64 %.pre-phi, i64 59
  %98 = getelementptr inbounds i8, ptr %97, i64 8
  %99 = load i64, ptr %98, align 8, !tbaa !5
  %100 = load i64, ptr %97, align 16, !tbaa !5
  %101 = sub nsw i64 %99, %100
  store i64 %101, ptr getelementptr inbounds (i8, ptr @coeff, i64 472), align 8, !tbaa !5
  %102 = add i64 %96, %101
  %103 = sub i64 %85, %102
  store i64 %103, ptr @coeff, align 16, !tbaa !5
  %104 = load i64, ptr getelementptr inbounds (i8, ptr @coeff, i64 8), align 8, !tbaa !5
  %105 = add nsw i64 %104, 1
  store i64 %105, ptr getelementptr inbounds (i8, ptr @coeff, i64 8), align 8, !tbaa !5
  ret void

.lr.ph:                                           ; preds = %0, %110
  %indvars.iv36 = phi i64 [ %indvars.iv.next37, %110 ], [ 1, %0 ]
  %106 = getelementptr inbounds [45 x [60 x [2 x i64]]], ptr @f, i64 0, i64 %indvars.iv36
  %107 = add nsw i64 %indvars.iv36, -1
  %108 = getelementptr inbounds [45 x [60 x [2 x i64]]], ptr @f, i64 0, i64 %107
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(960) %106, ptr noundef nonnull align 16 dereferenceable(960) %108, i64 960, i1 false)
  %109 = getelementptr inbounds [45 x i32], ptr @a, i64 0, i64 %indvars.iv36
  br label %113

110:                                              ; preds = %132
  %indvars.iv.next37 = add nuw nsw i64 %indvars.iv36, 1
  %111 = load i32, ptr @n, align 4, !tbaa !9
  %112 = sext i32 %111 to i64
  %.not.not = icmp slt i64 %indvars.iv36, %112
  br i1 %.not.not, label %.lr.ph, label %vector.body, !llvm.loop !11

113:                                              ; preds = %.lr.ph, %132
  %indvars.iv = phi i64 [ 1, %.lr.ph ], [ %indvars.iv.next, %132 ]
  %114 = load i32, ptr %109, align 4, !tbaa !9
  %115 = trunc nuw nsw i64 %indvars.iv to i32
  %116 = mul nsw i32 %114, %115
  %117 = tail call noundef i32 @_ZSt5__gcdIiET_S0_S0_(i32 noundef %115, i32 noundef %114)
  %118 = sdiv i32 %116, %117
  %119 = icmp sgt i32 %118, 60
  br i1 %119, label %132, label %120

120:                                              ; preds = %113
  %121 = getelementptr inbounds [45 x [60 x [2 x i64]]], ptr @f, i64 0, i64 %107, i64 %indvars.iv
  %122 = getelementptr inbounds i8, ptr %121, i64 8
  %123 = load i64, ptr %122, align 8, !tbaa !5
  %124 = sext i32 %118 to i64
  %125 = getelementptr inbounds [45 x [60 x [2 x i64]]], ptr @f, i64 0, i64 %indvars.iv36, i64 %124
  %126 = load i64, ptr %125, align 16, !tbaa !5
  %127 = add nsw i64 %126, %123
  store i64 %127, ptr %125, align 16, !tbaa !5
  %128 = load i64, ptr %121, align 16, !tbaa !5
  %129 = getelementptr inbounds i8, ptr %125, i64 8
  %130 = load i64, ptr %129, align 8, !tbaa !5
  %131 = add nsw i64 %130, %128
  store i64 %131, ptr %129, align 8, !tbaa !5
  br label %132

132:                                              ; preds = %113, %120
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 60
  br i1 %exitcond.not, label %110, label %113, !llvm.loop !13
}

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

; Function Attrs: mustprogress 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) #2

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.vector.reduce.add.v2i64(<2 x i64>) #3

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


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