program count_order
  implicit none
  integer :: n, p(8) = 0, q(8) = 0, i
  integer :: a = 0, b = 0
  integer :: x(8) = (/1,2,3,4,5,6,7,8/)
  read(*,*) n
  read(*,*) p(1:n)
  read(*,*) q(1:n)
  call perm(x(1:n),[integer::])
  write(*,'(i0)') abs(a-b)
contains
  recursive subroutine perm(lin, lout)
    integer, intent(in) :: lin(:), lout(:)
    integer :: i
    if (size(lin) == 0) then
      a = a+cmp(p,lout)
      b = b+cmp(q,lout)
    else
      do i = 1, size(lin)
        call perm(pack(lin, lin /= lin(i)), [lout, lin(i)])
      end do
    end if
  end
  integer function cmp(x,y)
    integer, intent(in) :: x(:), y(:)
    integer :: i
    cmp = 0
    do i = 1, n
      if (x(i) > y(i)) then
        cmp = 1
        return
      else if (x(i) < y(i)) then
        return
      end if
    end do
  end
end program count_order
; 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"

@_QFEa = internal unnamed_addr global i32 0
@_QFEb = internal unnamed_addr global i32 0
@_QFEp = internal global [8 x i32] zeroinitializer
@_QFEq = internal global [8 x i32] zeroinitializer
@_QFEx = internal global [8 x i32] [i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8]
@_QQcl.097dacd691e5fec5d4883018524df680 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_2692/source.f\00"
@_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 @_QQmain() local_unnamed_addr {
  %1 = alloca { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, align 8
  %2 = alloca { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, align 8
  %3 = alloca { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, align 8
  %4 = alloca { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, align 8
  %5 = alloca i32, align 4
  %6 = alloca { ptr }, align 8
  store ptr %5, ptr %6, align 8, !tbaa !3
  %7 = call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.097dacd691e5fec5d4883018524df680, i32 6)
  %8 = call i1 @_FortranAioInputInteger(ptr %7, ptr nonnull %5, i32 4)
  %9 = call i32 @_FortranAioEndIoStatement(ptr %7)
  %10 = call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.097dacd691e5fec5d4883018524df680, i32 7)
  %11 = load i32, ptr %5, align 4, !tbaa !3
  %12 = call i32 @llvm.smax.i32(i32 %11, i32 0)
  %13 = zext i32 %12 to i64
  store ptr @_QFEp, ptr %4, align 8, !tbaa !7
  %.fca.1.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %4, i64 0, i32 1
  store i64 4, ptr %.fca.1.gep, align 8, !tbaa !7
  %.fca.2.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %4, i64 0, i32 2
  store i32 20180515, ptr %.fca.2.gep, align 8, !tbaa !7
  %.fca.3.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %4, i64 0, i32 3
  store i8 1, ptr %.fca.3.gep, align 4, !tbaa !7
  %.fca.4.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %4, i64 0, i32 4
  store i8 9, ptr %.fca.4.gep, align 1, !tbaa !7
  %.fca.5.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %4, i64 0, i32 5
  store i8 0, ptr %.fca.5.gep, align 2, !tbaa !7
  %.fca.6.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %4, i64 0, i32 6
  store i8 0, ptr %.fca.6.gep, align 1, !tbaa !7
  %.fca.7.0.0.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %4, i64 0, i32 7, i64 0, i64 0
  store i64 1, ptr %.fca.7.0.0.gep, align 8, !tbaa !7
  %.fca.7.0.1.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %4, i64 0, i32 7, i64 0, i64 1
  store i64 %13, ptr %.fca.7.0.1.gep, align 8, !tbaa !7
  %.fca.7.0.2.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %4, i64 0, i32 7, i64 0, i64 2
  store i64 4, ptr %.fca.7.0.2.gep, align 8, !tbaa !7
  %14 = call i1 @_FortranAioInputDescriptor(ptr %10, ptr nonnull %4)
  %15 = call i32 @_FortranAioEndIoStatement(ptr %10)
  %16 = call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.097dacd691e5fec5d4883018524df680, i32 8)
  %17 = load i32, ptr %5, align 4, !tbaa !3
  %18 = call i32 @llvm.smax.i32(i32 %17, i32 0)
  %19 = zext i32 %18 to i64
  store ptr @_QFEq, ptr %3, align 8, !tbaa !7
  %.fca.1.gep4 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %3, i64 0, i32 1
  store i64 4, ptr %.fca.1.gep4, align 8, !tbaa !7
  %.fca.2.gep6 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %3, i64 0, i32 2
  store i32 20180515, ptr %.fca.2.gep6, align 8, !tbaa !7
  %.fca.3.gep8 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %3, i64 0, i32 3
  store i8 1, ptr %.fca.3.gep8, align 4, !tbaa !7
  %.fca.4.gep10 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %3, i64 0, i32 4
  store i8 9, ptr %.fca.4.gep10, align 1, !tbaa !7
  %.fca.5.gep12 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %3, i64 0, i32 5
  store i8 0, ptr %.fca.5.gep12, align 2, !tbaa !7
  %.fca.6.gep14 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %3, i64 0, i32 6
  store i8 0, ptr %.fca.6.gep14, align 1, !tbaa !7
  %.fca.7.0.0.gep16 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %3, i64 0, i32 7, i64 0, i64 0
  store i64 1, ptr %.fca.7.0.0.gep16, align 8, !tbaa !7
  %.fca.7.0.1.gep18 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %3, i64 0, i32 7, i64 0, i64 1
  store i64 %19, ptr %.fca.7.0.1.gep18, align 8, !tbaa !7
  %.fca.7.0.2.gep20 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %3, i64 0, i32 7, i64 0, i64 2
  store i64 4, ptr %.fca.7.0.2.gep20, align 8, !tbaa !7
  %20 = call i1 @_FortranAioInputDescriptor(ptr %16, ptr nonnull %3)
  %21 = call i32 @_FortranAioEndIoStatement(ptr %16)
  %22 = load i32, ptr %5, align 4, !tbaa !3
  %23 = call i32 @llvm.smax.i32(i32 %22, i32 0)
  %24 = zext i32 %23 to i64
  store ptr @_QFEx, ptr %2, align 8, !tbaa !7
  %.fca.1.gep24 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %2, i64 0, i32 1
  store i64 4, ptr %.fca.1.gep24, align 8, !tbaa !7
  %.fca.2.gep26 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %2, i64 0, i32 2
  store i32 20180515, ptr %.fca.2.gep26, align 8, !tbaa !7
  %.fca.3.gep28 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %2, i64 0, i32 3
  store i8 1, ptr %.fca.3.gep28, align 4, !tbaa !7
  %.fca.4.gep30 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %2, i64 0, i32 4
  store i8 9, ptr %.fca.4.gep30, align 1, !tbaa !7
  %.fca.5.gep32 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %2, i64 0, i32 5
  store i8 0, ptr %.fca.5.gep32, align 2, !tbaa !7
  %.fca.6.gep34 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %2, i64 0, i32 6
  store i8 0, ptr %.fca.6.gep34, align 1, !tbaa !7
  %.fca.7.0.0.gep36 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %2, i64 0, i32 7, i64 0, i64 0
  store i64 1, ptr %.fca.7.0.0.gep36, align 8, !tbaa !7
  %.fca.7.0.1.gep38 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %2, i64 0, i32 7, i64 0, i64 1
  store i64 %24, ptr %.fca.7.0.1.gep38, align 8, !tbaa !7
  %.fca.7.0.2.gep40 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %2, i64 0, i32 7, i64 0, i64 2
  store i64 4, ptr %.fca.7.0.2.gep40, align 8, !tbaa !7
  %25 = call ptr @malloc(i64 0)
  store ptr %25, ptr %1, align 8, !tbaa !7
  %.fca.1.gep44 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 1
  store i64 4, ptr %.fca.1.gep44, align 8, !tbaa !7
  %.fca.2.gep46 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 2
  store i32 20180515, ptr %.fca.2.gep46, align 8, !tbaa !7
  %.fca.3.gep48 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 3
  store i8 1, ptr %.fca.3.gep48, align 4, !tbaa !7
  %.fca.4.gep50 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 4
  store i8 9, ptr %.fca.4.gep50, align 1, !tbaa !7
  %.fca.5.gep52 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 5
  store i8 0, ptr %.fca.5.gep52, align 2, !tbaa !7
  %.fca.6.gep54 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 6
  store i8 0, ptr %.fca.6.gep54, align 1, !tbaa !7
  %.fca.7.0.0.gep56 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 7, i64 0, i64 0
  store i64 1, ptr %.fca.7.0.0.gep56, align 8, !tbaa !7
  %.fca.7.0.1.gep58 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 7, i64 0, i64 1
  store i64 0, ptr %.fca.7.0.1.gep58, align 8, !tbaa !7
  %.fca.7.0.2.gep60 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 7, i64 0, i64 2
  store i64 4, ptr %.fca.7.0.2.gep60, align 8, !tbaa !7
  call void @_QFPperm(ptr nonnull %2, ptr nonnull %1, ptr nonnull %6)
  call void @free(ptr %25)
  %26 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.28693029, i64 4, ptr null, i32 -1, ptr nonnull @_QQcl.097dacd691e5fec5d4883018524df680, i32 10)
  %27 = load i32, ptr @_QFEa, align 4, !tbaa !3
  %28 = load i32, ptr @_QFEb, align 4, !tbaa !3
  %29 = sub i32 %27, %28
  %30 = call i32 @llvm.abs.i32(i32 %29, i1 false)
  %31 = call i1 @_FortranAioOutputInteger32(ptr %26, i32 %30)
  %32 = call i32 @_FortranAioEndIoStatement(ptr %26)
  ret void
}

define void @_QFPperm(ptr %0, ptr nocapture readonly %1, ptr nest nocapture readonly %2) local_unnamed_addr {
  %4 = alloca { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, align 8
  %5 = alloca { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, align 8
  %6 = alloca { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, align 8
  %7 = alloca { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, align 8
  %8 = getelementptr { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %0, i64 0, i32 7, i64 0, i64 1
  %9 = load i64, ptr %8, align 8, !tbaa !7
  %10 = and i64 %9, 4294967295
  %11 = icmp eq i64 %10, 0
  br i1 %11, label %12, label %51

12:                                               ; preds = %3
  %13 = load i32, ptr @_QFEa, align 4, !tbaa !3
  %14 = load ptr, ptr %2, align 8, !tbaa !3
  %15 = load i32, ptr %14, align 4, !tbaa !3
  %16 = icmp sgt i32 %15, 0
  br i1 %16, label %.lr.ph.i, label %_QFPcmp.exit.thread

_QFPcmp.exit.thread:                              ; preds = %12
  %17 = load i32, ptr @_QFEb, align 4, !tbaa !3
  br label %_QFPcmp.exit157

.lr.ph.i:                                         ; preds = %12
  %18 = load ptr, ptr %1, align 8, !tbaa !7
  %19 = getelementptr { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 7, i64 0, i64 2
  %20 = load i64, ptr %19, align 8, !tbaa !7
  br label %21

21:                                               ; preds = %31, %.lr.ph.i
  %.011.i = phi i32 [ 1, %.lr.ph.i ], [ %33, %31 ]
  %22 = sext i32 %.011.i to i64
  %23 = add nsw i64 %22, -1
  %24 = shl nsw i64 %23, 2
  %25 = getelementptr i8, ptr @_QFEp, i64 %24
  %26 = load i32, ptr %25, align 4, !tbaa !3
  %27 = mul i64 %23, %20
  %28 = getelementptr i8, ptr %18, i64 %27
  %29 = load i32, ptr %28, align 4, !tbaa !3
  %30 = icmp sgt i32 %26, %29
  br i1 %30, label %.lr.ph.i152, label %31

31:                                               ; preds = %21
  %32 = icmp slt i32 %26, %29
  %33 = add nuw i32 %.011.i, 1
  %exitcond.not.i = icmp eq i32 %.011.i, %15
  %or.cond.i = select i1 %32, i1 true, i1 %exitcond.not.i
  br i1 %or.cond.i, label %.lr.ph.i152, label %21

.lr.ph.i152:                                      ; preds = %31, %21
  %.06.i = phi i32 [ 1, %21 ], [ 0, %31 ]
  %34 = add i32 %.06.i, %13
  store i32 %34, ptr @_QFEa, align 4, !tbaa !3
  %35 = load i32, ptr @_QFEb, align 4, !tbaa !3
  br label %36

36:                                               ; preds = %46, %.lr.ph.i152
  %.011.i153 = phi i32 [ 1, %.lr.ph.i152 ], [ %48, %46 ]
  %37 = sext i32 %.011.i153 to i64
  %38 = add nsw i64 %37, -1
  %39 = shl nsw i64 %38, 2
  %40 = getelementptr i8, ptr @_QFEq, i64 %39
  %41 = load i32, ptr %40, align 4, !tbaa !3
  %42 = mul i64 %38, %20
  %43 = getelementptr i8, ptr %18, i64 %42
  %44 = load i32, ptr %43, align 4, !tbaa !3
  %45 = icmp sgt i32 %41, %44
  br i1 %45, label %_QFPcmp.exit157, label %46

46:                                               ; preds = %36
  %47 = icmp slt i32 %41, %44
  %48 = add nuw i32 %.011.i153, 1
  %exitcond.not.i154 = icmp eq i32 %.011.i153, %15
  %or.cond.i155 = select i1 %47, i1 true, i1 %exitcond.not.i154
  br i1 %or.cond.i155, label %_QFPcmp.exit157, label %36

_QFPcmp.exit157:                                  ; preds = %36, %46, %_QFPcmp.exit.thread
  %49 = phi i32 [ %17, %_QFPcmp.exit.thread ], [ %35, %46 ], [ %35, %36 ]
  %.06.i156 = phi i32 [ 0, %_QFPcmp.exit.thread ], [ 1, %36 ], [ 0, %46 ]
  %50 = add i32 %.06.i156, %49
  store i32 %50, ptr @_QFEb, align 4, !tbaa !3
  br label %.loopexit

51:                                               ; preds = %3
  %52 = trunc i64 %9 to i32
  %53 = icmp sgt i32 %52, 0
  br i1 %53, label %.lr.ph176, label %.loopexit

.lr.ph176:                                        ; preds = %51
  %54 = and i64 %9, 4294967295
  %55 = getelementptr { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %0, i64 0, i32 7, i64 0, i64 2
  %56 = shl i64 %9, 2
  %57 = icmp sgt i64 %9, 0
  %.fca.1.gep21 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %6, i64 0, i32 1
  %.fca.2.gep23 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %6, i64 0, i32 2
  %.fca.3.gep25 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %6, i64 0, i32 3
  %.fca.4.gep27 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %6, i64 0, i32 4
  %.fca.5.gep29 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %6, i64 0, i32 5
  %.fca.6.gep31 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %6, i64 0, i32 6
  %.fca.7.0.0.gep33 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %6, i64 0, i32 7, i64 0, i64 0
  %.fca.7.0.1.gep35 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %6, i64 0, i32 7, i64 0, i64 1
  %.fca.7.0.2.gep37 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %6, i64 0, i32 7, i64 0, i64 2
  %.fca.1.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %7, i64 0, i32 1
  %.fca.2.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %7, i64 0, i32 2
  %.fca.3.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %7, i64 0, i32 3
  %.fca.4.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %7, i64 0, i32 4
  %.fca.5.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %7, i64 0, i32 5
  %.fca.6.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %7, i64 0, i32 6
  %.fca.7.0.0.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %7, i64 0, i32 7, i64 0, i64 0
  %.fca.7.0.1.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %7, i64 0, i32 7, i64 0, i64 1
  %.fca.7.0.2.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %7, i64 0, i32 7, i64 0, i64 2
  %.fca.1.gep88 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %5, i64 0, i32 1
  %.fca.2.gep90 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %5, i64 0, i32 2
  %.fca.3.gep92 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %5, i64 0, i32 3
  %.fca.4.gep94 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %5, i64 0, i32 4
  %.fca.5.gep96 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %5, i64 0, i32 5
  %.fca.6.gep98 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %5, i64 0, i32 6
  %.fca.7.0.0.gep100 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %5, i64 0, i32 7, i64 0, i64 0
  %.fca.7.0.1.gep102 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %5, i64 0, i32 7, i64 0, i64 1
  %.fca.7.0.2.gep104 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %5, i64 0, i32 7, i64 0, i64 2
  %58 = getelementptr { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 7, i64 0, i64 1
  %59 = getelementptr { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 7, i64 0, i64 2
  %.fca.1.gep108 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %4, i64 0, i32 1
  %.fca.2.gep110 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %4, i64 0, i32 2
  %.fca.3.gep112 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %4, i64 0, i32 3
  %.fca.4.gep114 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %4, i64 0, i32 4
  %.fca.5.gep116 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %4, i64 0, i32 5
  %.fca.6.gep118 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %4, i64 0, i32 6
  %.fca.7.0.0.gep120 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %4, i64 0, i32 7, i64 0, i64 0
  %.fca.7.0.1.gep122 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %4, i64 0, i32 7, i64 0, i64 1
  %.fca.7.0.2.gep124 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %4, i64 0, i32 7, i64 0, i64 2
  %xtraiter = and i64 %9, 1
  %60 = icmp eq i64 %9, 1
  %unroll_iter = and i64 %9, -2
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %61

61:                                               ; preds = %.lr.ph176, %._crit_edge174
  %indvars.iv = phi i64 [ 1, %.lr.ph176 ], [ %indvars.iv.next, %._crit_edge174 ]
  %62 = phi i64 [ %54, %.lr.ph176 ], [ %170, %._crit_edge174 ]
  %63 = add nsw i64 %indvars.iv, -1
  %64 = load ptr, ptr %0, align 8, !tbaa !7
  %65 = load i64, ptr %55, align 8, !tbaa !7
  %66 = mul i64 %65, %63
  %67 = getelementptr i8, ptr %64, i64 %66
  %68 = load i32, ptr %67, align 4, !tbaa !3
  %69 = call ptr @malloc(i64 %56)
  br i1 %57, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %61
  br i1 %60, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %70 = phi i64 [ %78, %.lr.ph ], [ 0, %.lr.ph.preheader ]
  %niter = phi i64 [ %niter.next.1, %.lr.ph ], [ 0, %.lr.ph.preheader ]
  %71 = or i64 %70, 1
  %72 = mul i64 %70, %65
  %73 = getelementptr i8, ptr %64, i64 %72
  %74 = load i32, ptr %73, align 4, !tbaa !3
  %75 = icmp ne i32 %74, %68
  %76 = zext i1 %75 to i32
  %77 = getelementptr i32, ptr %69, i64 %70
  store i32 %76, ptr %77, align 4, !tbaa !3
  %78 = add nuw nsw i64 %70, 2
  %79 = mul i64 %71, %65
  %80 = getelementptr i8, ptr %64, i64 %79
  %81 = load i32, ptr %80, align 4, !tbaa !3
  %82 = icmp ne i32 %81, %68
  %83 = zext i1 %82 to i32
  %84 = getelementptr i32, ptr %69, i64 %71
  store i32 %83, ptr %84, align 4, !tbaa !3
  %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.ph

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph, %.lr.ph.preheader
  %.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %78, %.lr.ph ]
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.loopexit.unr-lcssa
  %85 = mul i64 %.unr, %65
  %86 = getelementptr i8, ptr %64, i64 %85
  %87 = load i32, ptr %86, align 4, !tbaa !3
  %88 = icmp ne i32 %87, %68
  %89 = zext i1 %88 to i32
  %90 = getelementptr i32, ptr %69, i64 %.unr
  store i32 %89, ptr %90, align 4, !tbaa !3
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph.epil, %._crit_edge.loopexit.unr-lcssa, %61
  store ptr %69, ptr %6, align 8, !tbaa !7
  store i64 4, ptr %.fca.1.gep21, align 8, !tbaa !7
  store i32 20180515, ptr %.fca.2.gep23, align 8, !tbaa !7
  store i8 1, ptr %.fca.3.gep25, align 4, !tbaa !7
  store i8 14, ptr %.fca.4.gep27, align 1, !tbaa !7
  store i8 0, ptr %.fca.5.gep29, align 2, !tbaa !7
  store i8 0, ptr %.fca.6.gep31, align 1, !tbaa !7
  store i64 1, ptr %.fca.7.0.0.gep33, align 8, !tbaa !7
  store i64 %9, ptr %.fca.7.0.1.gep35, align 8, !tbaa !7
  store i64 4, ptr %.fca.7.0.2.gep37, align 8, !tbaa !7
  store ptr null, ptr %7, align 8, !tbaa !7
  store i64 4, ptr %.fca.1.gep, align 8, !tbaa !7
  store i32 20180515, ptr %.fca.2.gep, align 8, !tbaa !7
  store i8 1, ptr %.fca.3.gep, align 4, !tbaa !7
  store i8 9, ptr %.fca.4.gep, align 1, !tbaa !7
  store i8 2, ptr %.fca.5.gep, align 2, !tbaa !7
  store i8 0, ptr %.fca.6.gep, align 1, !tbaa !7
  store i64 1, ptr %.fca.7.0.0.gep, align 8, !tbaa !7
  store i64 0, ptr %.fca.7.0.1.gep, align 8, !tbaa !7
  store i64 4, ptr %.fca.7.0.2.gep, align 8, !tbaa !7
  %91 = call {} @_FortranAPack(ptr nonnull %7, ptr nonnull %0, ptr nonnull %6, ptr null, ptr nonnull @_QQcl.097dacd691e5fec5d4883018524df680, i32 20)
  %.fca.0.load = load ptr, ptr %7, align 8, !tbaa !7
  %.fca.7.0.0.load = load i64, ptr %.fca.7.0.0.gep, align 8, !tbaa !7
  %.fca.7.0.1.load = load i64, ptr %.fca.7.0.1.gep, align 8, !tbaa !7
  %92 = icmp eq i64 %.fca.7.0.1.load, 0
  %93 = select i1 %92, i64 1, i64 %.fca.7.0.0.load
  store ptr %.fca.0.load, ptr %5, align 8, !tbaa !7
  store i64 4, ptr %.fca.1.gep88, align 8, !tbaa !7
  store i32 20180515, ptr %.fca.2.gep90, align 8, !tbaa !7
  store i8 1, ptr %.fca.3.gep92, align 4, !tbaa !7
  store i8 9, ptr %.fca.4.gep94, align 1, !tbaa !7
  store i8 0, ptr %.fca.5.gep96, align 2, !tbaa !7
  store i8 0, ptr %.fca.6.gep98, align 1, !tbaa !7
  store i64 %93, ptr %.fca.7.0.0.gep100, align 8, !tbaa !7
  store i64 %.fca.7.0.1.load, ptr %.fca.7.0.1.gep102, align 8, !tbaa !7
  store i64 4, ptr %.fca.7.0.2.gep104, align 8, !tbaa !7
  %94 = call dereferenceable_or_null(128) ptr @malloc(i64 128)
  %95 = load i64, ptr %58, align 8, !tbaa !7
  %96 = shl i64 %95, 2
  %97 = call ptr @malloc(i64 %96)
  %98 = icmp sgt i64 %95, 0
  br i1 %98, label %.lr.ph170, label %._crit_edge171.thread

.lr.ph170:                                        ; preds = %._crit_edge
  %99 = load i64, ptr %59, align 8, !tbaa !7
  %100 = load ptr, ptr %1, align 8, !tbaa !7
  %xtraiter183 = and i64 %95, 3
  %101 = icmp ult i64 %95, 4
  br i1 %101, label %._crit_edge171.unr-lcssa, label %.lr.ph170.new

.lr.ph170.new:                                    ; preds = %.lr.ph170
  %unroll_iter186 = and i64 %95, -4
  br label %102

102:                                              ; preds = %102, %.lr.ph170.new
  %103 = phi i64 [ 0, %.lr.ph170.new ], [ %119, %102 ]
  %niter187 = phi i64 [ 0, %.lr.ph170.new ], [ %niter187.next.3, %102 ]
  %104 = or i64 %103, 1
  %105 = mul i64 %99, %103
  %106 = getelementptr i8, ptr %100, i64 %105
  %107 = load i32, ptr %106, align 4, !tbaa !3
  %108 = getelementptr i32, ptr %97, i64 %103
  store i32 %107, ptr %108, align 4, !tbaa !3
  %109 = or i64 %103, 2
  %110 = mul i64 %99, %104
  %111 = getelementptr i8, ptr %100, i64 %110
  %112 = load i32, ptr %111, align 4, !tbaa !3
  %113 = getelementptr i32, ptr %97, i64 %104
  store i32 %112, ptr %113, align 4, !tbaa !3
  %114 = or i64 %103, 3
  %115 = mul i64 %99, %109
  %116 = getelementptr i8, ptr %100, i64 %115
  %117 = load i32, ptr %116, align 4, !tbaa !3
  %118 = getelementptr i32, ptr %97, i64 %109
  store i32 %117, ptr %118, align 4, !tbaa !3
  %119 = add nuw nsw i64 %103, 4
  %120 = mul i64 %99, %114
  %121 = getelementptr i8, ptr %100, i64 %120
  %122 = load i32, ptr %121, align 4, !tbaa !3
  %123 = getelementptr i32, ptr %97, i64 %114
  store i32 %122, ptr %123, align 4, !tbaa !3
  %niter187.next.3 = add i64 %niter187, 4
  %niter187.ncmp.3 = icmp eq i64 %niter187.next.3, %unroll_iter186
  br i1 %niter187.ncmp.3, label %._crit_edge171.unr-lcssa, label %102

._crit_edge171.unr-lcssa:                         ; preds = %102, %.lr.ph170
  %.unr184 = phi i64 [ 0, %.lr.ph170 ], [ %119, %102 ]
  %lcmp.mod185.not = icmp eq i64 %xtraiter183, 0
  br i1 %lcmp.mod185.not, label %._crit_edge171, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge171.unr-lcssa, %.epil.preheader
  %124 = phi i64 [ %125, %.epil.preheader ], [ %.unr184, %._crit_edge171.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge171.unr-lcssa ]
  %125 = add nuw nsw i64 %124, 1
  %126 = mul i64 %99, %124
  %127 = getelementptr i8, ptr %100, i64 %126
  %128 = load i32, ptr %127, align 4, !tbaa !3
  %129 = getelementptr i32, ptr %97, i64 %124
  store i32 %128, ptr %129, align 4, !tbaa !3
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter183
  br i1 %epil.iter.cmp.not, label %._crit_edge171, label %.epil.preheader, !llvm.loop !9

._crit_edge171:                                   ; preds = %.epil.preheader, %._crit_edge171.unr-lcssa
  %130 = icmp sgt i64 %95, 31
  br i1 %130, label %131, label %._crit_edge171.thread

131:                                              ; preds = %._crit_edge171
  %132 = shl nuw i64 %95, 1
  %133 = shl i64 %95, 3
  %134 = call ptr @realloc(ptr %94, i64 %133)
  br label %._crit_edge171.thread

._crit_edge171.thread:                            ; preds = %._crit_edge, %131, %._crit_edge171
  %.0 = phi i64 [ %132, %131 ], [ 32, %._crit_edge171 ], [ 32, %._crit_edge ]
  %135 = phi ptr [ %134, %131 ], [ %94, %._crit_edge171 ], [ %94, %._crit_edge ]
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %135, ptr align 1 %97, i64 %96, i1 false)
  %136 = load ptr, ptr %0, align 8, !tbaa !7
  %137 = load i64, ptr %55, align 8, !tbaa !7
  %138 = mul i64 %137, %63
  %139 = getelementptr i8, ptr %136, i64 %138
  %140 = load i32, ptr %139, align 4, !tbaa !3
  %141 = add i64 %95, 1
  %.not = icmp sgt i64 %.0, %141
  br i1 %.not, label %145, label %142

142:                                              ; preds = %._crit_edge171.thread
  %143 = shl i64 %141, 3
  %144 = call ptr @realloc(ptr %135, i64 %143)
  br label %145

145:                                              ; preds = %142, %._crit_edge171.thread
  %146 = phi ptr [ %144, %142 ], [ %135, %._crit_edge171.thread ]
  %147 = getelementptr i32, ptr %146, i64 %95
  store i32 %140, ptr %147, align 4, !tbaa !3
  %148 = shl i64 %141, 2
  %149 = call ptr @malloc(i64 %148)
  %150 = icmp ult i64 %95, 9223372036854775807
  br i1 %150, label %.lr.ph173.preheader, label %._crit_edge174

.lr.ph173.preheader:                              ; preds = %145
  %151 = ptrtoint ptr %149 to i64
  %152 = ptrtoint ptr %146 to i64
  %153 = add i64 %95, 2
  %154 = icmp ne i64 %141, 0
  %umin.neg = sext i1 %154 to i64
  %155 = add i64 %153, %umin.neg
  %min.iters.check = icmp ult i64 %155, 8
  %156 = sub i64 %151, %152
  %diff.check = icmp ult i64 %156, 32
  %or.cond = or i1 %min.iters.check, %diff.check
  br i1 %or.cond, label %.lr.ph173.preheader181, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph173.preheader
  %n.vec = and i64 %155, -8
  %ind.end = sub i64 %141, %n.vec
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %157 = getelementptr i32, ptr %146, i64 %index
  %wide.load = load <4 x i32>, ptr %157, align 4, !tbaa !3
  %158 = getelementptr i32, ptr %157, i64 4
  %wide.load180 = load <4 x i32>, ptr %158, align 4, !tbaa !3
  %159 = getelementptr i32, ptr %149, i64 %index
  store <4 x i32> %wide.load, ptr %159, align 4, !tbaa !3
  %160 = getelementptr i32, ptr %159, i64 4
  store <4 x i32> %wide.load180, ptr %160, align 4, !tbaa !3
  %index.next = add nuw i64 %index, 8
  %161 = icmp eq i64 %index.next, %n.vec
  br i1 %161, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %155, %n.vec
  br i1 %cmp.n, label %._crit_edge174, label %.lr.ph173.preheader181

.lr.ph173.preheader181:                           ; preds = %.lr.ph173.preheader, %middle.block
  %.ph = phi i64 [ %141, %.lr.ph173.preheader ], [ %ind.end, %middle.block ]
  %.ph182 = phi i64 [ 0, %.lr.ph173.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph173

.lr.ph173:                                        ; preds = %.lr.ph173.preheader181, %.lr.ph173
  %162 = phi i64 [ %168, %.lr.ph173 ], [ %.ph, %.lr.ph173.preheader181 ]
  %163 = phi i64 [ %164, %.lr.ph173 ], [ %.ph182, %.lr.ph173.preheader181 ]
  %164 = add nuw nsw i64 %163, 1
  %165 = getelementptr i32, ptr %146, i64 %163
  %166 = load i32, ptr %165, align 4, !tbaa !3
  %167 = getelementptr i32, ptr %149, i64 %163
  store i32 %166, ptr %167, align 4, !tbaa !3
  %168 = add nsw i64 %162, -1
  %169 = icmp ugt i64 %162, 1
  br i1 %169, label %.lr.ph173, label %._crit_edge174, !llvm.loop !14

._crit_edge174:                                   ; preds = %.lr.ph173, %middle.block, %145
  store ptr %149, ptr %4, align 8, !tbaa !7
  store i64 4, ptr %.fca.1.gep108, align 8, !tbaa !7
  store i32 20180515, ptr %.fca.2.gep110, align 8, !tbaa !7
  store i8 1, ptr %.fca.3.gep112, align 4, !tbaa !7
  store i8 9, ptr %.fca.4.gep114, align 1, !tbaa !7
  store i8 0, ptr %.fca.5.gep116, align 2, !tbaa !7
  store i8 0, ptr %.fca.6.gep118, align 1, !tbaa !7
  store i64 1, ptr %.fca.7.0.0.gep120, align 8, !tbaa !7
  store i64 %141, ptr %.fca.7.0.1.gep122, align 8, !tbaa !7
  store i64 4, ptr %.fca.7.0.2.gep124, align 8, !tbaa !7
  call void @_QFPperm(ptr nonnull %5, ptr nonnull %4, ptr %2)
  call void @free(ptr %149)
  call void @free(ptr nonnull %146)
  call void @free(ptr %97)
  call void @free(ptr %.fca.0.load)
  call void @free(ptr %69)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %170 = add nsw i64 %62, -1
  %171 = icmp sgt i64 %62, 1
  br i1 %171, label %61, label %.loopexit

.loopexit:                                        ; preds = %._crit_edge174, %51, %_QFPcmp.exit157
  ret void
}

; Function Attrs: nofree norecurse nosync nounwind memory(read, inaccessiblemem: none)
define i32 @_QFPcmp(ptr nocapture readonly %0, ptr nocapture readonly %1, ptr nest nocapture readonly %2) local_unnamed_addr #2 {
  %4 = load ptr, ptr %2, align 8, !tbaa !3
  %5 = load i32, ptr %4, align 4, !tbaa !3
  %6 = icmp sgt i32 %5, 0
  br i1 %6, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %3
  %7 = load ptr, ptr %0, align 8, !tbaa !7
  %8 = getelementptr { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %0, i64 0, i32 7, i64 0, i64 2
  %9 = load i64, ptr %8, align 8, !tbaa !7
  %10 = load ptr, ptr %1, align 8, !tbaa !7
  %11 = getelementptr { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 7, i64 0, i64 2
  %12 = load i64, ptr %11, align 8, !tbaa !7
  br label %13

13:                                               ; preds = %23, %.lr.ph
  %.011 = phi i32 [ 1, %.lr.ph ], [ %25, %23 ]
  %14 = sext i32 %.011 to i64
  %15 = add nsw i64 %14, -1
  %16 = mul i64 %9, %15
  %17 = getelementptr i8, ptr %7, i64 %16
  %18 = load i32, ptr %17, align 4, !tbaa !3
  %19 = mul i64 %12, %15
  %20 = getelementptr i8, ptr %10, i64 %19
  %21 = load i32, ptr %20, align 4, !tbaa !3
  %22 = icmp sgt i32 %18, %21
  br i1 %22, label %._crit_edge, label %23

23:                                               ; preds = %13
  %24 = icmp slt i32 %18, %21
  %25 = add nuw i32 %.011, 1
  %exitcond.not = icmp eq i32 %.011, %5
  %or.cond = select i1 %24, i1 true, i1 %exitcond.not
  br i1 %or.cond, label %._crit_edge, label %13

._crit_edge:                                      ; preds = %23, %13, %3
  %.06 = phi i32 [ 0, %3 ], [ 1, %13 ], [ 0, %23 ]
  ret i32 %.06
}

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 i1 @_FortranAioInputDescriptor(ptr, ptr) local_unnamed_addr

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

declare i1 @_FortranAioOutputInteger32(ptr, i32) local_unnamed_addr

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

; Function Attrs: mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias noundef ptr @realloc(ptr allocptr nocapture, i64 noundef) local_unnamed_addr #3

; 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) #4

; 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 i32 @llvm.abs.i32(i32, i1 immarg) #5

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 = { nofree norecurse nosync nounwind memory(read, inaccessiblemem: none) }
attributes #3 = { mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!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 = !{!"any data access", !5, i64 0}
!5 = !{!"any access", !6, i64 0}
!6 = !{!"Flang Type TBAA Root"}
!7 = !{!8, !8, i64 0}
!8 = !{!"descriptor member", !5, i64 0}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.unroll.disable"}
!11 = distinct !{!11, !12, !13}
!12 = !{!"llvm.loop.isvectorized", i32 1}
!13 = !{!"llvm.loop.unroll.runtime.disable"}
!14 = distinct !{!14, !12}
