module mod_modulo_util
  implicit none
  integer(8), parameter :: md = 1000000007_8
  integer(8), allocatable :: f(:), invf(:)
contains
  subroutine init(n)
    implicit none
    integer, intent(in) :: n
    integer :: i
    if (allocated(f)) deallocate(f)
    if (allocated(invf)) deallocate(invf)
    allocate(f(0:n),invf(0:n))
    f = 0_8
    invf = 0_8
    f(0) = 1_8
    do i = 1, n
      f(i) = mod(f(i-1)*int(i,8),md)
    end do
    invf(n) = inv(f(n))
    do i = n, 1, -1
      invf(i-1) = mod(invf(i)*int(i,8),md)
    end do
    return
  end subroutine init
  integer(8) function perm(n,k)
    implicit none
    integer, intent(in) :: n, k
    perm = 0_8
    if (n < 0 .or. k > n) return
    perm = mod(f(n)*invf(n-k),md)
    return
  end function perm
  integer(8) function comb(n,k)
    implicit none
    integer, intent(in) :: n, k
    comb = mod(perm(n,k)*invf(k),md)
    return
  end function comb
  integer(8) function homo(n,k)
    implicit none
    integer, intent(in) :: n, k
    homo = comb(n+k-1,k)
    return
  end function homo
  function inv(n) result(y)
    implicit none
    integer(8), intent(in) :: n
    integer(8) :: a, b, x, y, t, q
    a = mod(n,md)
    b = md
    x = 0_8
    y = 1_8
    do while (b /= 0_8)
      q = a/b
      t = b
      b = mod(a,b)
      a = t
      t = y
      y = x
      x = t-q*x
    end do
    y = mod(y,md)
    if (y < 0_8) y = y+md
    return
  end function inv
  function pow(a,b) result(r)
    implicit none
    integer(8), intent(in) :: a
    integer, intent(in) :: b
    integer :: i
    integer(8) :: r, p
    r = 1_8
    p = a
    do i = 0, 32
      if (btest(b,i)) r = mod(r*p,md)
      p = mod(p*p,md)
    end do
    return
  end function pow
  integer(8) function fact(n)
    implicit none
    integer, intent(in) :: n
    fact = 0_8
    if (n < 0) return
    fact = f(n)
    return
  end function fact
end module mod_modulo_util
program painting_machines
  use mod_modulo_util
  implicit none
  integer :: n, k
  integer(8) :: ans = 0_8
  read(*,*) n
  call init(n)
  ans = mod(mod(f(n)*f(n),md)*invf(n),md)
  do k = (n+1)/2, n-1
    ans = mod(ans+md-mod(mod(f(k-1)*f(k),md)*invf(2*k-n),md),md)
  end do
  write(*,'(i0)') ans
  stop
end program painting_machines
; ModuleID = 'FIRModule'
source_filename = "FIRModule"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"

@_QMmod_modulo_utilEf = local_unnamed_addr global { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] } { ptr null, i64 ptrtoint (ptr getelementptr (i64, ptr null, i32 1) to i64), i32 20180515, i8 1, i8 10, i8 2, i8 0, [1 x [3 x i64]] [[3 x i64] [i64 1, i64 0, i64 ptrtoint (ptr getelementptr (i64, ptr null, i32 1) to i64)]] }
@_QMmod_modulo_utilEinvf = local_unnamed_addr global { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] } { ptr null, i64 ptrtoint (ptr getelementptr (i64, ptr null, i32 1) to i64), i32 20180515, i8 1, i8 10, i8 2, i8 0, [1 x [3 x i64]] [[3 x i64] [i64 1, i64 0, i64 ptrtoint (ptr getelementptr (i64, ptr null, i32 1) to i64)]] }
@_QMmod_modulo_utilECmd = local_unnamed_addr constant i64 1000000007
@_QQcl.d92c3f1f5e60d07f06fb822f5a7bdd3d = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_6032/source.f\00"
@_QQcl.16373402fa3425c6e46827601abb88fa = linkonce constant [76 x i8] c"array left hand side must be allocated when the right hand side is a scalar\00"
@_QFEans = internal unnamed_addr global i64 0
@_QQcl.28693029 = linkonce constant [4 x i8] c"(i0)"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #1

define void @_QMmod_modulo_utilPinit(ptr nocapture readonly %0) local_unnamed_addr {
  %.unpack = load ptr, ptr @_QMmod_modulo_utilEf, align 16, !tbaa !3
  %.not = icmp eq ptr %.unpack, null
  br i1 %.not, label %3, label %2

2:                                                ; preds = %1
  tail call void @free(ptr nonnull %.unpack)
  store ptr null, ptr @_QMmod_modulo_utilEf, align 16, !tbaa !3
  store i64 8, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEf, i64 0, i32 1), align 8, !tbaa !3
  store i32 20180515, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEf, i64 0, i32 2), align 16, !tbaa !3
  store i8 1, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEf, i64 0, i32 3), align 4, !tbaa !3
  store i8 10, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEf, i64 0, i32 4), align 1, !tbaa !3
  store i8 2, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEf, i64 0, i32 5), align 2, !tbaa !3
  store i8 0, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEf, i64 0, i32 6), align 1, !tbaa !3
  store i64 1, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEf, i64 0, i32 7), align 8, !tbaa !3
  store i64 0, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEf, i64 0, i32 7, i64 0, i64 1), align 16, !tbaa !3
  store i64 8, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEf, i64 0, i32 7, i64 0, i64 2), align 8, !tbaa !3
  br label %3

3:                                                ; preds = %2, %1
  %.unpack468 = load ptr, ptr @_QMmod_modulo_utilEinvf, align 16, !tbaa !3
  %.not480 = icmp eq ptr %.unpack468, null
  br i1 %.not480, label %5, label %4

4:                                                ; preds = %3
  tail call void @free(ptr nonnull %.unpack468)
  br label %5

5:                                                ; preds = %4, %3
  %6 = load i32, ptr %0, align 4, !tbaa !7
  %7 = tail call i32 @llvm.smax.i32(i32 %6, i32 -1)
  %8 = sext i32 %7 to i64
  %9 = add nsw i64 %8, 1
  %10 = shl nuw nsw i64 %9, 3
  %11 = tail call ptr @malloc(i64 %10)
  %12 = icmp eq i64 %9, 0
  %13 = zext i1 %12 to i64
  store ptr %11, ptr @_QMmod_modulo_utilEf, align 16, !tbaa !3
  store i64 8, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEf, i64 0, i32 1), align 8, !tbaa !3
  store i32 20180515, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEf, i64 0, i32 2), align 16, !tbaa !3
  store i8 1, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEf, i64 0, i32 3), align 4, !tbaa !3
  store i8 10, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEf, i64 0, i32 4), align 1, !tbaa !3
  store i8 2, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEf, i64 0, i32 5), align 2, !tbaa !3
  store i8 0, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEf, i64 0, i32 6), align 1, !tbaa !3
  store i64 %13, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEf, i64 0, i32 7), align 8, !tbaa !3
  store i64 %9, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEf, i64 0, i32 7, i64 0, i64 1), align 16, !tbaa !3
  store i64 8, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEf, i64 0, i32 7, i64 0, i64 2), align 8, !tbaa !3
  %14 = tail call ptr @malloc(i64 %10)
  store ptr %14, ptr @_QMmod_modulo_utilEinvf, align 16, !tbaa !3
  store i64 8, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEinvf, i64 0, i32 1), align 8, !tbaa !3
  store i32 20180515, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEinvf, i64 0, i32 2), align 16, !tbaa !3
  store i8 1, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEinvf, i64 0, i32 3), align 4, !tbaa !3
  store i8 10, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEinvf, i64 0, i32 4), align 1, !tbaa !3
  store i8 2, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEinvf, i64 0, i32 5), align 2, !tbaa !3
  store i8 0, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEinvf, i64 0, i32 6), align 1, !tbaa !3
  store i64 %13, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEinvf, i64 0, i32 7), align 8, !tbaa !3
  store i64 %9, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEinvf, i64 0, i32 7, i64 0, i64 1), align 16, !tbaa !3
  store i64 8, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEinvf, i64 0, i32 7, i64 0, i64 2), align 8, !tbaa !3
  %.not511 = icmp eq ptr %11, null
  br i1 %.not511, label %19, label %.preheader628

.preheader628:                                    ; preds = %5
  %15 = icmp sgt i32 %6, -1
  br i1 %15, label %.lr.ph.preheader, label %.loopexit629

.lr.ph.preheader:                                 ; preds = %.preheader628
  %16 = add nsw i64 %8, 2
  %smin = tail call i64 @llvm.smin.i64(i64 %9, i64 1)
  %17 = sub nuw nsw i64 %16, %smin
  %18 = shl nuw nsw i64 %17, 3
  tail call void @llvm.memset.p0.i64(ptr nonnull align 8 %11, i8 0, i64 %18, i1 false), !tbaa !7
  br label %.loopexit629

19:                                               ; preds = %5
  %20 = tail call {} @_FortranAReportFatalUserError(ptr nonnull @_QQcl.16373402fa3425c6e46827601abb88fa, ptr nonnull @_QQcl.d92c3f1f5e60d07f06fb822f5a7bdd3d, i32 13)
  %.unpack613.unpack.unpack = load i64, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEf, i64 0, i32 7), align 8, !tbaa !3
  %21 = select i1 %12, i64 1, i64 %.unpack613.unpack.unpack
  store ptr null, ptr @_QMmod_modulo_utilEf, align 16, !tbaa !3
  store i64 8, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEf, i64 0, i32 1), align 8, !tbaa !3
  store i32 20180515, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEf, i64 0, i32 2), align 16, !tbaa !3
  store i8 1, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEf, i64 0, i32 3), align 4, !tbaa !3
  store i8 10, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEf, i64 0, i32 4), align 1, !tbaa !3
  store i8 2, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEf, i64 0, i32 5), align 2, !tbaa !3
  store i8 0, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEf, i64 0, i32 6), align 1, !tbaa !3
  store i64 %21, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEf, i64 0, i32 7), align 8, !tbaa !3
  store i64 %9, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEf, i64 0, i32 7, i64 0, i64 1), align 16, !tbaa !3
  store i64 8, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEf, i64 0, i32 7, i64 0, i64 2), align 8, !tbaa !3
  %.unpack512.pre = load ptr, ptr @_QMmod_modulo_utilEinvf, align 16, !tbaa !3
  %.unpack519.unpack.unpack521.pre = load i64, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEinvf, i64 0, i32 7, i64 0, i64 1), align 16, !tbaa !3
  br label %.loopexit629

.loopexit629:                                     ; preds = %.lr.ph.preheader, %.preheader628, %19
  %.unpack532.unpack.unpack641 = phi i64 [ %13, %.lr.ph.preheader ], [ %13, %.preheader628 ], [ %21, %19 ]
  %.unpack519.unpack.unpack521 = phi i64 [ %9, %.lr.ph.preheader ], [ %9, %.preheader628 ], [ %.unpack519.unpack.unpack521.pre, %19 ]
  %.unpack512 = phi ptr [ %14, %.lr.ph.preheader ], [ %14, %.preheader628 ], [ %.unpack512.pre, %19 ]
  %.not524 = icmp eq ptr %.unpack512, null
  br i1 %.not524, label %24, label %.preheader

.preheader:                                       ; preds = %.loopexit629
  %22 = icmp sgt i64 %.unpack519.unpack.unpack521, 0
  br i1 %22, label %.lr.ph630.preheader, label %.loopexit

.lr.ph630.preheader:                              ; preds = %.preheader
  %23 = shl nuw i64 %.unpack519.unpack.unpack521, 3
  tail call void @llvm.memset.p0.i64(ptr nonnull align 8 %.unpack512, i8 0, i64 %23, i1 false), !tbaa !7
  br label %.loopexit

24:                                               ; preds = %.loopexit629
  %25 = tail call {} @_FortranAReportFatalUserError(ptr nonnull @_QQcl.16373402fa3425c6e46827601abb88fa, ptr nonnull @_QQcl.d92c3f1f5e60d07f06fb822f5a7bdd3d, i32 14)
  %.unpack592.unpack.unpack = load i64, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEinvf, i64 0, i32 7), align 8, !tbaa !3
  %26 = icmp eq i64 %.unpack519.unpack.unpack521, 0
  %27 = select i1 %26, i64 1, i64 %.unpack592.unpack.unpack
  store ptr null, ptr @_QMmod_modulo_utilEinvf, align 16, !tbaa !3
  store i64 8, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEinvf, i64 0, i32 1), align 8, !tbaa !3
  store i32 20180515, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEinvf, i64 0, i32 2), align 16, !tbaa !3
  store i8 1, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEinvf, i64 0, i32 3), align 4, !tbaa !3
  store i8 10, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEinvf, i64 0, i32 4), align 1, !tbaa !3
  store i8 2, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEinvf, i64 0, i32 5), align 2, !tbaa !3
  store i8 0, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEinvf, i64 0, i32 6), align 1, !tbaa !3
  store i64 %27, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEinvf, i64 0, i32 7), align 8, !tbaa !3
  store i64 %.unpack519.unpack.unpack521, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEinvf, i64 0, i32 7, i64 0, i64 1), align 16, !tbaa !3
  store i64 8, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEinvf, i64 0, i32 7, i64 0, i64 2), align 8, !tbaa !3
  %.unpack525.pre = load ptr, ptr @_QMmod_modulo_utilEf, align 16, !tbaa !3
  %.unpack532.unpack.unpack.pre = load i64, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEf, i64 0, i32 7), align 8, !tbaa !3
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph630.preheader, %.preheader, %24
  %.unpack532.unpack.unpack = phi i64 [ %.unpack532.unpack.unpack641, %.lr.ph630.preheader ], [ %.unpack532.unpack.unpack641, %.preheader ], [ %.unpack532.unpack.unpack.pre, %24 ]
  %.unpack525 = phi ptr [ %11, %.lr.ph630.preheader ], [ %11, %.preheader ], [ %.unpack525.pre, %24 ]
  %28 = sub i64 0, %.unpack532.unpack.unpack
  %29 = getelementptr i64, ptr %.unpack525, i64 %28
  store i64 1, ptr %29, align 8, !tbaa !7
  %30 = load i32, ptr %0, align 4, !tbaa !7
  %31 = sext i32 %30 to i64
  %32 = icmp sgt i32 %30, 0
  br i1 %32, label %.lr.ph631.preheader, label %._crit_edge

.lr.ph631.preheader:                              ; preds = %.loopexit
  %33 = mul i64 %.unpack532.unpack.unpack, -8
  %uglygep = getelementptr i8, ptr %.unpack525, i64 %33
  %load_initial = load i64, ptr %uglygep, align 8
  %xtraiter = and i64 %31, 1
  %34 = icmp eq i32 %30, 1
  br i1 %34, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph631.preheader.new

.lr.ph631.preheader.new:                          ; preds = %.lr.ph631.preheader
  %unroll_iter = and i64 %31, -2
  br label %.lr.ph631

.lr.ph631:                                        ; preds = %.lr.ph631, %.lr.ph631.preheader.new
  %store_forwarded = phi i64 [ %load_initial, %.lr.ph631.preheader.new ], [ %40, %.lr.ph631 ]
  %indvars.iv = phi i64 [ 1, %.lr.ph631.preheader.new ], [ %indvars.iv.next.1, %.lr.ph631 ]
  %niter = phi i64 [ 0, %.lr.ph631.preheader.new ], [ %niter.next.1, %.lr.ph631 ]
  %35 = mul i64 %store_forwarded, %indvars.iv
  %36 = srem i64 %35, 1000000007
  %37 = sub i64 %indvars.iv, %.unpack532.unpack.unpack
  %38 = getelementptr i64, ptr %.unpack525, i64 %37
  store i64 %36, ptr %38, align 8, !tbaa !7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %39 = mul i64 %36, %indvars.iv.next
  %40 = srem i64 %39, 1000000007
  %41 = sub i64 %indvars.iv.next, %.unpack532.unpack.unpack
  %42 = getelementptr i64, ptr %.unpack525, i64 %41
  store i64 %40, ptr %42, align 8, !tbaa !7
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 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_edge.loopexit.unr-lcssa, label %.lr.ph631

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph631, %.lr.ph631.preheader
  %store_forwarded.unr = phi i64 [ %load_initial, %.lr.ph631.preheader ], [ %40, %.lr.ph631 ]
  %indvars.iv.unr = phi i64 [ 1, %.lr.ph631.preheader ], [ %indvars.iv.next.1, %.lr.ph631 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge.loopexit, label %.lr.ph631.epil

.lr.ph631.epil:                                   ; preds = %._crit_edge.loopexit.unr-lcssa
  %43 = mul i64 %store_forwarded.unr, %indvars.iv.unr
  %44 = srem i64 %43, 1000000007
  %45 = sub i64 %indvars.iv.unr, %.unpack532.unpack.unpack
  %46 = getelementptr i64, ptr %.unpack525, i64 %45
  store i64 %44, ptr %46, align 8, !tbaa !7
  br label %._crit_edge.loopexit

._crit_edge.loopexit:                             ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph631.epil
  %.pre = load i32, ptr %0, align 4, !tbaa !7
  %.pre643 = sext i32 %.pre to i64
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.loopexit
  %.pre-phi = phi i64 [ %.pre643, %._crit_edge.loopexit ], [ %31, %.loopexit ]
  %47 = sub i64 %.pre-phi, %.unpack532.unpack.unpack
  %48 = getelementptr i64, ptr %.unpack525, i64 %47
  %49 = load i64, ptr %48, align 8, !tbaa !7
  %50 = srem i64 %49, 1000000007
  br label %51

51:                                               ; preds = %51, %._crit_edge
  %.024.i = phi i64 [ 1, %._crit_edge ], [ %.01623.i, %51 ]
  %.01623.i = phi i64 [ 0, %._crit_edge ], [ %55, %51 ]
  %.01722.i = phi i64 [ %50, %._crit_edge ], [ %.01821.i, %51 ]
  %.01821.i = phi i64 [ 1000000007, %._crit_edge ], [ %53, %51 ]
  %52 = sdiv i64 %.01722.i, %.01821.i
  %53 = srem i64 %.01722.i, %.01821.i
  %54 = mul i64 %52, %.01623.i
  %55 = sub i64 %.024.i, %54
  %.not.i = icmp eq i64 %53, 0
  br i1 %.not.i, label %_QMmod_modulo_utilPinv.exit, label %51

_QMmod_modulo_utilPinv.exit:                      ; preds = %51
  %56 = srem i64 %.01623.i, 1000000007
  %57 = icmp slt i64 %56, 0
  %58 = add nsw i64 %56, 1000000007
  %spec.select.i = select i1 %57, i64 %58, i64 %56
  %.unpack556.unpack.unpack = load i64, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEinvf, i64 0, i32 7), align 8, !tbaa !3
  %59 = sub i64 %.pre-phi, %.unpack556.unpack.unpack
  %60 = getelementptr i64, ptr %.unpack512, i64 %59
  store i64 %spec.select.i, ptr %60, align 8, !tbaa !7
  %61 = load i32, ptr %0, align 4, !tbaa !7
  %62 = icmp sgt i32 %61, 0
  br i1 %62, label %.lr.ph632.preheader, label %._crit_edge633

.lr.ph632.preheader:                              ; preds = %_QMmod_modulo_utilPinv.exit
  %63 = zext i32 %61 to i64
  br label %.lr.ph632

.lr.ph632:                                        ; preds = %.lr.ph632.preheader, %.lr.ph632
  %64 = phi i64 [ %71, %.lr.ph632 ], [ %63, %.lr.ph632.preheader ]
  %sext = shl i64 %64, 32
  %65 = ashr exact i64 %sext, 32
  %66 = sub i64 %65, %.unpack556.unpack.unpack
  %67 = getelementptr i64, ptr %.unpack512, i64 %66
  %68 = load i64, ptr %67, align 8, !tbaa !7
  %69 = mul i64 %68, %65
  %70 = srem i64 %69, 1000000007
  %71 = add nsw i64 %64, -1
  %sext644 = shl i64 %71, 32
  %72 = ashr exact i64 %sext644, 32
  %73 = sub i64 %72, %.unpack556.unpack.unpack
  %74 = getelementptr i64, ptr %.unpack512, i64 %73
  store i64 %70, ptr %74, align 8, !tbaa !7
  %75 = icmp ugt i64 %64, 1
  br i1 %75, label %.lr.ph632, label %._crit_edge633

._crit_edge633:                                   ; preds = %.lr.ph632, %_QMmod_modulo_utilPinv.exit
  ret void
}

; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(read, inaccessiblemem: none)
define i64 @_QMmod_modulo_utilPperm(ptr nocapture readonly %0, ptr nocapture readonly %1) local_unnamed_addr #2 {
  %3 = load i32, ptr %0, align 4, !tbaa !7
  %4 = icmp slt i32 %3, 0
  %5 = load i32, ptr %1, align 4, !tbaa !7
  %6 = icmp slt i32 %3, %5
  %7 = or i1 %4, %6
  br i1 %7, label %20, label %8

8:                                                ; preds = %2
  %.unpack = load ptr, ptr @_QMmod_modulo_utilEf, align 16, !tbaa !3
  %.unpack29.unpack.unpack = load i64, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEf, i64 0, i32 7), align 8, !tbaa !3
  %9 = zext i32 %3 to i64
  %10 = sub i64 %9, %.unpack29.unpack.unpack
  %11 = getelementptr i64, ptr %.unpack, i64 %10
  %12 = load i64, ptr %11, align 8, !tbaa !7
  %.unpack34 = load ptr, ptr @_QMmod_modulo_utilEinvf, align 16, !tbaa !3
  %.unpack41.unpack.unpack = load i64, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEinvf, i64 0, i32 7), align 8, !tbaa !3
  %13 = sub i32 %3, %5
  %14 = sext i32 %13 to i64
  %15 = sub i64 %14, %.unpack41.unpack.unpack
  %16 = getelementptr i64, ptr %.unpack34, i64 %15
  %17 = load i64, ptr %16, align 8, !tbaa !7
  %18 = mul i64 %17, %12
  %19 = srem i64 %18, 1000000007
  br label %20

20:                                               ; preds = %8, %2
  %.0 = phi i64 [ 0, %2 ], [ %19, %8 ]
  ret i64 %.0
}

; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(read, inaccessiblemem: none)
define i64 @_QMmod_modulo_utilPcomb(ptr nocapture readonly %0, ptr nocapture readonly %1) local_unnamed_addr #2 {
  %3 = load i32, ptr %0, align 4, !tbaa !7
  %4 = icmp slt i32 %3, 0
  %5 = load i32, ptr %1, align 4, !tbaa !7
  %6 = icmp slt i32 %3, %5
  %7 = or i1 %4, %6
  br i1 %7, label %._QMmod_modulo_utilPperm.exit_crit_edge, label %8

._QMmod_modulo_utilPperm.exit_crit_edge:          ; preds = %2
  %.unpack.pre = load ptr, ptr @_QMmod_modulo_utilEinvf, align 16, !tbaa !3
  %.unpack7.unpack.unpack.pre = load i64, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEinvf, i64 0, i32 7), align 8, !tbaa !3
  br label %_QMmod_modulo_utilPperm.exit

8:                                                ; preds = %2
  %.unpack.i = load ptr, ptr @_QMmod_modulo_utilEf, align 16, !tbaa !3
  %.unpack29.unpack.unpack.i = load i64, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEf, i64 0, i32 7), align 8, !tbaa !3
  %9 = zext i32 %3 to i64
  %10 = sub i64 %9, %.unpack29.unpack.unpack.i
  %11 = getelementptr i64, ptr %.unpack.i, i64 %10
  %12 = load i64, ptr %11, align 8, !tbaa !7
  %.unpack34.i = load ptr, ptr @_QMmod_modulo_utilEinvf, align 16, !tbaa !3
  %.unpack41.unpack.unpack.i = load i64, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEinvf, i64 0, i32 7), align 8, !tbaa !3
  %13 = sub i32 %3, %5
  %14 = sext i32 %13 to i64
  %15 = sub i64 %14, %.unpack41.unpack.unpack.i
  %16 = getelementptr i64, ptr %.unpack34.i, i64 %15
  %17 = load i64, ptr %16, align 8, !tbaa !7
  %18 = mul i64 %17, %12
  %19 = srem i64 %18, 1000000007
  br label %_QMmod_modulo_utilPperm.exit

_QMmod_modulo_utilPperm.exit:                     ; preds = %._QMmod_modulo_utilPperm.exit_crit_edge, %8
  %.unpack7.unpack.unpack = phi i64 [ %.unpack7.unpack.unpack.pre, %._QMmod_modulo_utilPperm.exit_crit_edge ], [ %.unpack41.unpack.unpack.i, %8 ]
  %.unpack = phi ptr [ %.unpack.pre, %._QMmod_modulo_utilPperm.exit_crit_edge ], [ %.unpack34.i, %8 ]
  %.0.i = phi i64 [ 0, %._QMmod_modulo_utilPperm.exit_crit_edge ], [ %19, %8 ]
  %20 = sext i32 %5 to i64
  %21 = sub i64 %20, %.unpack7.unpack.unpack
  %22 = getelementptr i64, ptr %.unpack, i64 %21
  %23 = load i64, ptr %22, align 8, !tbaa !7
  %24 = mul i64 %23, %.0.i
  %25 = srem i64 %24, 1000000007
  ret i64 %25
}

; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(read, inaccessiblemem: none)
define i64 @_QMmod_modulo_utilPhomo(ptr nocapture readonly %0, ptr nocapture readonly %1) local_unnamed_addr #2 {
  %3 = load i32, ptr %0, align 4, !tbaa !7
  %4 = load i32, ptr %1, align 4, !tbaa !7
  %5 = add i32 %3, -1
  %6 = add i32 %5, %4
  %7 = icmp slt i32 %6, 0
  %8 = icmp slt i32 %6, %4
  %9 = or i1 %7, %8
  br i1 %9, label %._QMmod_modulo_utilPperm.exit_crit_edge.i, label %10

._QMmod_modulo_utilPperm.exit_crit_edge.i:        ; preds = %2
  %.unpack.pre.i = load ptr, ptr @_QMmod_modulo_utilEinvf, align 16, !tbaa !3
  %.unpack7.unpack.unpack.pre.i = load i64, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEinvf, i64 0, i32 7), align 8, !tbaa !3
  br label %_QMmod_modulo_utilPcomb.exit

10:                                               ; preds = %2
  %.unpack.i.i = load ptr, ptr @_QMmod_modulo_utilEf, align 16, !tbaa !3
  %.unpack29.unpack.unpack.i.i = load i64, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEf, i64 0, i32 7), align 8, !tbaa !3
  %11 = zext i32 %6 to i64
  %12 = sub i64 %11, %.unpack29.unpack.unpack.i.i
  %13 = getelementptr i64, ptr %.unpack.i.i, i64 %12
  %14 = load i64, ptr %13, align 8, !tbaa !7
  %.unpack34.i.i = load ptr, ptr @_QMmod_modulo_utilEinvf, align 16, !tbaa !3
  %.unpack41.unpack.unpack.i.i = load i64, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEinvf, i64 0, i32 7), align 8, !tbaa !3
  %15 = sext i32 %5 to i64
  %16 = sub i64 %15, %.unpack41.unpack.unpack.i.i
  %17 = getelementptr i64, ptr %.unpack34.i.i, i64 %16
  %18 = load i64, ptr %17, align 8, !tbaa !7
  %19 = mul i64 %18, %14
  %20 = srem i64 %19, 1000000007
  br label %_QMmod_modulo_utilPcomb.exit

_QMmod_modulo_utilPcomb.exit:                     ; preds = %._QMmod_modulo_utilPperm.exit_crit_edge.i, %10
  %.unpack7.unpack.unpack.i = phi i64 [ %.unpack7.unpack.unpack.pre.i, %._QMmod_modulo_utilPperm.exit_crit_edge.i ], [ %.unpack41.unpack.unpack.i.i, %10 ]
  %.unpack.i = phi ptr [ %.unpack.pre.i, %._QMmod_modulo_utilPperm.exit_crit_edge.i ], [ %.unpack34.i.i, %10 ]
  %.0.i.i = phi i64 [ 0, %._QMmod_modulo_utilPperm.exit_crit_edge.i ], [ %20, %10 ]
  %21 = sext i32 %4 to i64
  %22 = sub i64 %21, %.unpack7.unpack.unpack.i
  %23 = getelementptr i64, ptr %.unpack.i, i64 %22
  %24 = load i64, ptr %23, align 8, !tbaa !7
  %25 = mul i64 %24, %.0.i.i
  %26 = srem i64 %25, 1000000007
  ret i64 %26
}

; Function Attrs: nofree norecurse nosync nounwind memory(argmem: read)
define i64 @_QMmod_modulo_utilPinv(ptr nocapture readonly %0) local_unnamed_addr #3 {
  %2 = load i64, ptr %0, align 8, !tbaa !7
  %3 = srem i64 %2, 1000000007
  br label %4

4:                                                ; preds = %1, %4
  %.024 = phi i64 [ 1, %1 ], [ %.01623, %4 ]
  %.01623 = phi i64 [ 0, %1 ], [ %8, %4 ]
  %.01722 = phi i64 [ %3, %1 ], [ %.01821, %4 ]
  %.01821 = phi i64 [ 1000000007, %1 ], [ %6, %4 ]
  %5 = sdiv i64 %.01722, %.01821
  %6 = srem i64 %.01722, %.01821
  %7 = mul i64 %5, %.01623
  %8 = sub i64 %.024, %7
  %.not = icmp eq i64 %6, 0
  br i1 %.not, label %9, label %4

9:                                                ; preds = %4
  %10 = srem i64 %.01623, 1000000007
  %11 = icmp slt i64 %10, 0
  %12 = add nsw i64 %10, 1000000007
  %spec.select = select i1 %11, i64 %12, i64 %10
  ret i64 %spec.select
}

; Function Attrs: nofree norecurse nosync nounwind memory(argmem: read)
define i64 @_QMmod_modulo_utilPpow(ptr nocapture readonly %0, ptr nocapture readonly %1) local_unnamed_addr #3 {
  %3 = load i64, ptr %0, align 8, !tbaa !7
  %4 = load i32, ptr %1, align 4, !tbaa !7
  br label %5

5:                                                ; preds = %2, %13
  %6 = phi i64 [ 33, %2 ], [ %17, %13 ]
  %7 = phi i32 [ 0, %2 ], [ %16, %13 ]
  %.09 = phi i64 [ 1, %2 ], [ %.1, %13 ]
  %.068 = phi i64 [ %3, %2 ], [ %15, %13 ]
  %8 = shl nuw i32 1, %7
  %9 = and i32 %4, %8
  %.not = icmp eq i32 %9, 0
  br i1 %.not, label %13, label %10

10:                                               ; preds = %5
  %11 = mul i64 %.09, %.068
  %12 = srem i64 %11, 1000000007
  br label %13

13:                                               ; preds = %10, %5
  %.1 = phi i64 [ %12, %10 ], [ %.09, %5 ]
  %14 = mul i64 %.068, %.068
  %15 = srem i64 %14, 1000000007
  %16 = add nuw nsw i32 %7, 1
  %17 = add nsw i64 %6, -1
  %18 = icmp ugt i64 %6, 1
  br i1 %18, label %5, label %19

19:                                               ; preds = %13
  ret i64 %.1
}

; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(read, inaccessiblemem: none)
define i64 @_QMmod_modulo_utilPfact(ptr nocapture readonly %0) local_unnamed_addr #2 {
  %2 = load i32, ptr %0, align 4, !tbaa !7
  %3 = icmp slt i32 %2, 0
  br i1 %3, label %9, label %4

4:                                                ; preds = %1
  %.unpack = load ptr, ptr @_QMmod_modulo_utilEf, align 16, !tbaa !3
  %.unpack8.unpack.unpack = load i64, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEf, i64 0, i32 7), align 8, !tbaa !3
  %5 = zext i32 %2 to i64
  %6 = sub i64 %5, %.unpack8.unpack.unpack
  %7 = getelementptr i64, ptr %.unpack, i64 %6
  %8 = load i64, ptr %7, align 8, !tbaa !7
  br label %9

9:                                                ; preds = %4, %1
  %.0 = phi i64 [ 0, %1 ], [ %8, %4 ]
  ret i64 %.0
}

; Function Attrs: noreturn
define void @_QQmain() local_unnamed_addr #4 {
  %1 = alloca i32, align 4
  %2 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.d92c3f1f5e60d07f06fb822f5a7bdd3d, i32 94)
  %3 = call i1 @_FortranAioInputInteger(ptr %2, ptr nonnull %1, i32 4)
  %4 = call i32 @_FortranAioEndIoStatement(ptr %2)
  call void @_QMmod_modulo_utilPinit(ptr nonnull %1)
  %.unpack = load ptr, ptr @_QMmod_modulo_utilEf, align 16, !tbaa !3
  %.unpack68.unpack.unpack = load i64, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEf, i64 0, i32 7), align 8, !tbaa !3
  %5 = load i32, ptr %1, align 4, !tbaa !7
  %6 = sext i32 %5 to i64
  %7 = sub i64 %6, %.unpack68.unpack.unpack
  %8 = getelementptr i64, ptr %.unpack, i64 %7
  %9 = load i64, ptr %8, align 8, !tbaa !7
  %10 = mul i64 %9, %9
  %11 = srem i64 %10, 1000000007
  %.unpack73 = load ptr, ptr @_QMmod_modulo_utilEinvf, align 16, !tbaa !3
  %.unpack80.unpack.unpack = load i64, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMmod_modulo_utilEinvf, i64 0, i32 7), align 8, !tbaa !3
  %12 = sub i64 %6, %.unpack80.unpack.unpack
  %13 = getelementptr i64, ptr %.unpack73, i64 %12
  %14 = load i64, ptr %13, align 8, !tbaa !7
  %15 = mul i64 %14, %11
  %16 = srem i64 %15, 1000000007
  store i64 %16, ptr @_QFEans, align 8, !tbaa !7
  %17 = add i32 %5, 1
  %18 = sdiv i32 %17, 2
  %19 = add i32 %5, -1
  %20 = sext i32 %19 to i64
  %narrow = sub nsw i32 0, %18
  %.neg = sext i32 %narrow to i64
  %21 = add nsw i64 %20, 1
  %22 = add nsw i64 %21, %.neg
  %23 = icmp sgt i64 %22, 0
  br i1 %23, label %.lr.ph, label %52

.lr.ph:                                           ; preds = %0, %.lr.ph
  %24 = phi i64 [ %50, %.lr.ph ], [ %22, %0 ]
  %25 = phi i32 [ %49, %.lr.ph ], [ %18, %0 ]
  %26 = phi i64 [ %48, %.lr.ph ], [ %16, %0 ]
  %27 = add nsw i64 %26, 1000000007
  %28 = add i32 %25, -1
  %29 = sext i32 %28 to i64
  %30 = sub i64 %29, %.unpack68.unpack.unpack
  %31 = getelementptr i64, ptr %.unpack, i64 %30
  %32 = load i64, ptr %31, align 8, !tbaa !7
  %33 = sext i32 %25 to i64
  %34 = sub i64 %33, %.unpack68.unpack.unpack
  %35 = getelementptr i64, ptr %.unpack, i64 %34
  %36 = load i64, ptr %35, align 8, !tbaa !7
  %37 = mul i64 %36, %32
  %38 = srem i64 %37, 1000000007
  %39 = shl i32 %25, 1
  %40 = sub i32 %39, %5
  %41 = sext i32 %40 to i64
  %42 = sub i64 %41, %.unpack80.unpack.unpack
  %43 = getelementptr i64, ptr %.unpack73, i64 %42
  %44 = load i64, ptr %43, align 8, !tbaa !7
  %45 = mul i64 %38, %44
  %46 = srem i64 %45, 1000000007
  %47 = sub nsw i64 %27, %46
  %48 = srem i64 %47, 1000000007
  %49 = add i32 %25, 1
  %50 = add nsw i64 %24, -1
  %51 = icmp ugt i64 %24, 1
  br i1 %51, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph
  store i64 %48, ptr @_QFEans, align 8, !tbaa !7
  br label %52

52:                                               ; preds = %._crit_edge, %0
  %53 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.28693029, i64 4, ptr null, i32 -1, ptr nonnull @_QQcl.d92c3f1f5e60d07f06fb822f5a7bdd3d, i32 100)
  %54 = load i64, ptr @_QFEans, align 8, !tbaa !7
  %55 = call i1 @_FortranAioOutputInteger64(ptr %53, i64 %54)
  %56 = call i32 @_FortranAioEndIoStatement(ptr %53)
  %57 = call {} @_FortranAStopStatement(i32 0, i1 false, i1 false)
  unreachable
}

declare {} @_FortranAReportFatalUserError(ptr, ptr, i32) local_unnamed_addr

declare ptr @_FortranAioBeginExternalListInput(i32, ptr, i32) local_unnamed_addr

declare i1 @_FortranAioInputInteger(ptr, ptr, i32) local_unnamed_addr

declare i32 @_FortranAioEndIoStatement(ptr) local_unnamed_addr

declare ptr @_FortranAioBeginExternalFormattedOutput(ptr, i64, ptr, i32, ptr, i32) local_unnamed_addr

declare i1 @_FortranAioOutputInteger64(ptr, i64) local_unnamed_addr

declare {} @_FortranAStopStatement(i32, i1, i1) local_unnamed_addr

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smin.i64(i64, i64) #5

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

attributes #0 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" }
attributes #1 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" }
attributes #2 = { mustprogress nofree norecurse nosync nounwind willreturn memory(read, inaccessiblemem: none) }
attributes #3 = { nofree norecurse nosync nounwind memory(argmem: read) }
attributes #4 = { noreturn }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }

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

!0 = !{i32 2, !"Debug Info Version", i32 3}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{!4, !4, i64 0}
!4 = !{!"descriptor member", !5, i64 0}
!5 = !{!"any access", !6, i64 0}
!6 = !{!"Flang Type TBAA Root"}
!7 = !{!8, !8, i64 0}
!8 = !{!"any data access", !5, i64 0}
