program r20628a
 
implicit none
integer :: c(1:26)
integer, allocatable :: interval(:, :)
integer, allocatable :: s(:, :)
integer, allocatable :: t(:), v(:)
integer :: i, j, d, m, h
integer, allocatable :: smalld(:)
integer, allocatable :: q(:)


read *, d

allocate(s(1:26, 1:d))
allocate(interval(1:26, 0:d))
allocate(t(1:d))
allocate(v(0:d))

interval(:, :) = 0 !interval(i,d) = d - last(d,i)
v(0) = 0
m = 0

read *, c(1:26)

do i = 1, d
 read *, s(:, i)
  
  do j = 1, 26
  if (s(j, i) > m) then
  m = s(j, i)
  h = j
  end if
  end do
  
 print *, h
end do

end program r20628a
; 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"

@_QFEc = internal global [26 x i32] undef
@_QFEinterval = internal unnamed_addr global { ptr, i64, i32, i8, i8, i8, i8, [2 x [3 x i64]] } { ptr null, i64 ptrtoint (ptr getelementptr (i32, ptr null, i32 1) to i64), i32 20180515, i8 2, i8 9, i8 2, i8 0, [2 x [3 x i64]] [[3 x i64] [i64 1, i64 0, i64 ptrtoint (ptr getelementptr (i32, ptr null, i32 1) to i64)], [3 x i64] [i64 1, i64 0, i64 0]] }
@_QFEs.0 = internal unnamed_addr global ptr null
@_QFEt = internal unnamed_addr global { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] } { ptr null, i64 ptrtoint (ptr getelementptr (i32, ptr null, i32 1) to i64), i32 20180515, i8 1, i8 9, i8 2, i8 0, [1 x [3 x i64]] [[3 x i64] [i64 1, i64 0, i64 ptrtoint (ptr getelementptr (i32, ptr null, i32 1) to i64)]] }
@_QFEv = internal unnamed_addr global { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] } { ptr null, i64 ptrtoint (ptr getelementptr (i32, ptr null, i32 1) to i64), i32 20180515, i8 1, i8 9, i8 2, i8 0, [1 x [3 x i64]] [[3 x i64] [i64 1, i64 0, i64 ptrtoint (ptr getelementptr (i32, ptr null, i32 1) to i64)]] }
@_QQcl.16abf55c9b48b7b95635363dcbcb4618 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_1018/source.f\00"
@_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

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 i32, align 4
  %4 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.16abf55c9b48b7b95635363dcbcb4618, i32 13)
  %5 = call i1 @_FortranAioInputInteger(ptr %4, ptr nonnull %3, i32 4)
  %6 = call i32 @_FortranAioEndIoStatement(ptr %4)
  %7 = load i32, ptr %3, align 4, !tbaa !3
  %8 = call i32 @llvm.smax.i32(i32 %7, i32 0)
  %9 = zext i32 %8 to i64
  %10 = mul nuw nsw i64 %9, 104
  %11 = call ptr @malloc(i64 %10)
  store ptr %11, ptr @_QFEs.0, align 8, !tbaa !7
  %12 = call i32 @llvm.smax.i32(i32 %7, i32 -1)
  %13 = sext i32 %12 to i64
  %14 = add nsw i64 %13, 1
  %15 = mul nuw nsw i64 %14, 104
  %16 = call ptr @malloc(i64 %15)
  %17 = icmp eq i64 %14, 0
  %.neg = sext i1 %17 to i64
  %18 = zext i1 %17 to i64
  store ptr %16, ptr @_QFEinterval, align 16, !tbaa !7
  store i64 4, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [2 x [3 x i64]] }, ptr @_QFEinterval, i64 0, i32 1), align 8, !tbaa !7
  store i32 20180515, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [2 x [3 x i64]] }, ptr @_QFEinterval, i64 0, i32 2), align 16, !tbaa !7
  store i8 2, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [2 x [3 x i64]] }, ptr @_QFEinterval, i64 0, i32 3), align 4, !tbaa !7
  store i8 9, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [2 x [3 x i64]] }, ptr @_QFEinterval, i64 0, i32 4), align 1, !tbaa !7
  store i8 2, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [2 x [3 x i64]] }, ptr @_QFEinterval, i64 0, i32 5), align 2, !tbaa !7
  store i8 0, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [2 x [3 x i64]] }, ptr @_QFEinterval, i64 0, i32 6), align 1, !tbaa !7
  store i64 1, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [2 x [3 x i64]] }, ptr @_QFEinterval, i64 0, i32 7), align 8, !tbaa !7
  store i64 26, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [2 x [3 x i64]] }, ptr @_QFEinterval, i64 0, i32 7, i64 0, i64 1), align 16, !tbaa !7
  store i64 4, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [2 x [3 x i64]] }, ptr @_QFEinterval, i64 0, i32 7, i64 0, i64 2), align 8, !tbaa !7
  store i64 %18, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [2 x [3 x i64]] }, ptr @_QFEinterval, i64 0, i32 7, i64 1), align 16, !tbaa !7
  store i64 %14, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [2 x [3 x i64]] }, ptr @_QFEinterval, i64 0, i32 7, i64 1, i64 1), align 8, !tbaa !7
  store i64 104, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [2 x [3 x i64]] }, ptr @_QFEinterval, i64 0, i32 7, i64 1, i64 2), align 16, !tbaa !7
  store i64 4, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QFEt, i64 0, i32 1), align 8, !tbaa !7
  store i32 20180515, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QFEt, i64 0, i32 2), align 16, !tbaa !7
  store i8 1, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QFEt, i64 0, i32 3), align 4, !tbaa !7
  store i8 9, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QFEt, i64 0, i32 4), align 1, !tbaa !7
  store i8 2, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QFEt, i64 0, i32 5), align 2, !tbaa !7
  store i8 0, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QFEt, i64 0, i32 6), align 1, !tbaa !7
  store i64 1, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QFEt, i64 0, i32 7), align 8, !tbaa !7
  store i64 %9, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QFEt, i64 0, i32 7, i64 0, i64 1), align 16, !tbaa !7
  store i64 4, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QFEt, i64 0, i32 7, i64 0, i64 2), align 8, !tbaa !7
  %19 = shl nuw nsw i64 %14, 2
  %20 = call ptr @malloc(i64 %19)
  store ptr %20, ptr @_QFEv, align 16, !tbaa !7
  store i64 4, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QFEv, i64 0, i32 1), align 8, !tbaa !7
  store i32 20180515, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QFEv, i64 0, i32 2), align 16, !tbaa !7
  store i8 1, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QFEv, i64 0, i32 3), align 4, !tbaa !7
  store i8 9, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QFEv, i64 0, i32 4), align 1, !tbaa !7
  store i8 2, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QFEv, i64 0, i32 5), align 2, !tbaa !7
  store i8 0, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QFEv, i64 0, i32 6), align 1, !tbaa !7
  store i64 %18, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QFEv, i64 0, i32 7), align 8, !tbaa !7
  store i64 %14, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QFEv, i64 0, i32 7, i64 0, i64 1), align 16, !tbaa !7
  store i64 4, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QFEv, i64 0, i32 7, i64 0, i64 2), align 8, !tbaa !7
  %21 = icmp sgt i32 %7, -1
  br i1 %21, label %.preheader.preheader, label %._crit_edge

.preheader.preheader:                             ; preds = %0
  %smin = call i64 @llvm.smin.i64(i64 %13, i64 0)
  %22 = sub nsw i64 %14, %smin
  %23 = mul nuw nsw i64 %22, 104
  call void @llvm.memset.p0.i64(ptr align 4 %16, i8 0, i64 %23, i1 false), !tbaa !3
  br label %._crit_edge

._crit_edge:                                      ; preds = %.preheader.preheader, %0
  %24 = getelementptr i32, ptr %20, i64 %.neg
  store i32 0, ptr %24, align 4, !tbaa !3
  %25 = call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.16abf55c9b48b7b95635363dcbcb4618, i32 24)
  store ptr @_QFEc, ptr %2, align 8, !tbaa !7
  %.fca.1.gep = 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.gep, align 8, !tbaa !7
  %.fca.2.gep = 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.gep, align 8, !tbaa !7
  %.fca.3.gep = 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.gep, align 4, !tbaa !7
  %.fca.4.gep = 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.gep, align 1, !tbaa !7
  %.fca.5.gep = 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.gep, align 2, !tbaa !7
  %.fca.6.gep = 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.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 %2, 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 %2, i64 0, i32 7, i64 0, i64 1
  store i64 26, 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 %2, i64 0, i32 7, i64 0, i64 2
  store i64 4, ptr %.fca.7.0.2.gep, align 8, !tbaa !7
  %26 = call i1 @_FortranAioInputDescriptor(ptr %25, ptr nonnull %2)
  %27 = call i32 @_FortranAioEndIoStatement(ptr %25)
  %28 = load i32, ptr %3, align 4, !tbaa !3
  %29 = icmp sgt i32 %28, 0
  br i1 %29, label %.lr.ph, label %._crit_edge436

.lr.ph:                                           ; preds = %._crit_edge
  %30 = zext i32 %28 to i64
  %.fca.1.gep237 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 1
  %.fca.2.gep239 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 2
  %.fca.3.gep241 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 3
  %.fca.4.gep243 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 4
  %.fca.5.gep245 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 5
  %.fca.6.gep247 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 6
  %.fca.7.0.0.gep249 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 7, i64 0, i64 0
  %.fca.7.0.1.gep251 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 7, i64 0, i64 1
  %.fca.7.0.2.gep253 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 7, i64 0, i64 2
  br label %31

31:                                               ; preds = %.lr.ph, %31
  %indvars.iv = phi i64 [ 1, %.lr.ph ], [ %indvars.iv.next, %31 ]
  %.0434 = phi i32 [ 0, %.lr.ph ], [ %spec.select430.25, %31 ]
  %.0326433 = phi i32 [ undef, %.lr.ph ], [ %spec.select.25, %31 ]
  %32 = call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.16abf55c9b48b7b95635363dcbcb4618, i32 27)
  %.unpack398 = load ptr, ptr @_QFEs.0, align 8, !tbaa !7
  %33 = mul i64 %indvars.iv, 26
  %34 = add i64 %33, -26
  %35 = getelementptr i32, ptr %.unpack398, i64 %34
  store ptr %35, ptr %1, align 8, !tbaa !7
  store i64 4, ptr %.fca.1.gep237, align 8, !tbaa !7
  store i32 20180515, ptr %.fca.2.gep239, align 8, !tbaa !7
  store i8 1, ptr %.fca.3.gep241, align 4, !tbaa !7
  store i8 9, ptr %.fca.4.gep243, align 1, !tbaa !7
  store i8 0, ptr %.fca.5.gep245, align 2, !tbaa !7
  store i8 0, ptr %.fca.6.gep247, align 1, !tbaa !7
  store i64 1, ptr %.fca.7.0.0.gep249, align 8, !tbaa !7
  store i64 26, ptr %.fca.7.0.1.gep251, align 8, !tbaa !7
  store i64 4, ptr %.fca.7.0.2.gep253, align 8, !tbaa !7
  %36 = call i1 @_FortranAioInputDescriptor(ptr %32, ptr nonnull %1)
  %37 = call i32 @_FortranAioEndIoStatement(ptr %32)
  %.unpack414 = load ptr, ptr @_QFEs.0, align 8, !tbaa !7
  %38 = mul i64 %indvars.iv, 26
  %39 = add i64 %38, -26
  %40 = getelementptr i32, ptr %.unpack414, i64 %39
  %41 = load i32, ptr %40, align 4, !tbaa !3
  %42 = icmp sgt i32 %41, %.0434
  %spec.select = select i1 %42, i32 1, i32 %.0326433
  %spec.select430 = call i32 @llvm.smax.i32(i32 %41, i32 %.0434)
  %43 = add i64 %38, -25
  %44 = getelementptr i32, ptr %.unpack414, i64 %43
  %45 = load i32, ptr %44, align 4, !tbaa !3
  %46 = icmp sgt i32 %45, %spec.select430
  %spec.select.1 = select i1 %46, i32 2, i32 %spec.select
  %spec.select430.1 = call i32 @llvm.smax.i32(i32 %45, i32 %spec.select430)
  %47 = add i64 %38, -24
  %48 = getelementptr i32, ptr %.unpack414, i64 %47
  %49 = load i32, ptr %48, align 4, !tbaa !3
  %50 = icmp sgt i32 %49, %spec.select430.1
  %spec.select.2 = select i1 %50, i32 3, i32 %spec.select.1
  %spec.select430.2 = call i32 @llvm.smax.i32(i32 %49, i32 %spec.select430.1)
  %51 = add i64 %38, -23
  %52 = getelementptr i32, ptr %.unpack414, i64 %51
  %53 = load i32, ptr %52, align 4, !tbaa !3
  %54 = icmp sgt i32 %53, %spec.select430.2
  %spec.select.3 = select i1 %54, i32 4, i32 %spec.select.2
  %spec.select430.3 = call i32 @llvm.smax.i32(i32 %53, i32 %spec.select430.2)
  %55 = add i64 %38, -22
  %56 = getelementptr i32, ptr %.unpack414, i64 %55
  %57 = load i32, ptr %56, align 4, !tbaa !3
  %58 = icmp sgt i32 %57, %spec.select430.3
  %spec.select.4 = select i1 %58, i32 5, i32 %spec.select.3
  %spec.select430.4 = call i32 @llvm.smax.i32(i32 %57, i32 %spec.select430.3)
  %59 = add i64 %38, -21
  %60 = getelementptr i32, ptr %.unpack414, i64 %59
  %61 = load i32, ptr %60, align 4, !tbaa !3
  %62 = icmp sgt i32 %61, %spec.select430.4
  %spec.select.5 = select i1 %62, i32 6, i32 %spec.select.4
  %spec.select430.5 = call i32 @llvm.smax.i32(i32 %61, i32 %spec.select430.4)
  %63 = add i64 %38, -20
  %64 = getelementptr i32, ptr %.unpack414, i64 %63
  %65 = load i32, ptr %64, align 4, !tbaa !3
  %66 = icmp sgt i32 %65, %spec.select430.5
  %spec.select.6 = select i1 %66, i32 7, i32 %spec.select.5
  %spec.select430.6 = call i32 @llvm.smax.i32(i32 %65, i32 %spec.select430.5)
  %67 = add i64 %38, -19
  %68 = getelementptr i32, ptr %.unpack414, i64 %67
  %69 = load i32, ptr %68, align 4, !tbaa !3
  %70 = icmp sgt i32 %69, %spec.select430.6
  %spec.select.7 = select i1 %70, i32 8, i32 %spec.select.6
  %spec.select430.7 = call i32 @llvm.smax.i32(i32 %69, i32 %spec.select430.6)
  %71 = add i64 %38, -18
  %72 = getelementptr i32, ptr %.unpack414, i64 %71
  %73 = load i32, ptr %72, align 4, !tbaa !3
  %74 = icmp sgt i32 %73, %spec.select430.7
  %spec.select.8 = select i1 %74, i32 9, i32 %spec.select.7
  %spec.select430.8 = call i32 @llvm.smax.i32(i32 %73, i32 %spec.select430.7)
  %75 = add i64 %38, -17
  %76 = getelementptr i32, ptr %.unpack414, i64 %75
  %77 = load i32, ptr %76, align 4, !tbaa !3
  %78 = icmp sgt i32 %77, %spec.select430.8
  %spec.select.9 = select i1 %78, i32 10, i32 %spec.select.8
  %spec.select430.9 = call i32 @llvm.smax.i32(i32 %77, i32 %spec.select430.8)
  %79 = add i64 %38, -16
  %80 = getelementptr i32, ptr %.unpack414, i64 %79
  %81 = load i32, ptr %80, align 4, !tbaa !3
  %82 = icmp sgt i32 %81, %spec.select430.9
  %spec.select.10 = select i1 %82, i32 11, i32 %spec.select.9
  %spec.select430.10 = call i32 @llvm.smax.i32(i32 %81, i32 %spec.select430.9)
  %83 = add i64 %38, -15
  %84 = getelementptr i32, ptr %.unpack414, i64 %83
  %85 = load i32, ptr %84, align 4, !tbaa !3
  %86 = icmp sgt i32 %85, %spec.select430.10
  %spec.select.11 = select i1 %86, i32 12, i32 %spec.select.10
  %spec.select430.11 = call i32 @llvm.smax.i32(i32 %85, i32 %spec.select430.10)
  %87 = add i64 %38, -14
  %88 = getelementptr i32, ptr %.unpack414, i64 %87
  %89 = load i32, ptr %88, align 4, !tbaa !3
  %90 = icmp sgt i32 %89, %spec.select430.11
  %spec.select.12 = select i1 %90, i32 13, i32 %spec.select.11
  %spec.select430.12 = call i32 @llvm.smax.i32(i32 %89, i32 %spec.select430.11)
  %91 = add i64 %38, -13
  %92 = getelementptr i32, ptr %.unpack414, i64 %91
  %93 = load i32, ptr %92, align 4, !tbaa !3
  %94 = icmp sgt i32 %93, %spec.select430.12
  %spec.select.13 = select i1 %94, i32 14, i32 %spec.select.12
  %spec.select430.13 = call i32 @llvm.smax.i32(i32 %93, i32 %spec.select430.12)
  %95 = add i64 %38, -12
  %96 = getelementptr i32, ptr %.unpack414, i64 %95
  %97 = load i32, ptr %96, align 4, !tbaa !3
  %98 = icmp sgt i32 %97, %spec.select430.13
  %spec.select.14 = select i1 %98, i32 15, i32 %spec.select.13
  %spec.select430.14 = call i32 @llvm.smax.i32(i32 %97, i32 %spec.select430.13)
  %99 = add i64 %38, -11
  %100 = getelementptr i32, ptr %.unpack414, i64 %99
  %101 = load i32, ptr %100, align 4, !tbaa !3
  %102 = icmp sgt i32 %101, %spec.select430.14
  %spec.select.15 = select i1 %102, i32 16, i32 %spec.select.14
  %spec.select430.15 = call i32 @llvm.smax.i32(i32 %101, i32 %spec.select430.14)
  %103 = add i64 %38, -10
  %104 = getelementptr i32, ptr %.unpack414, i64 %103
  %105 = load i32, ptr %104, align 4, !tbaa !3
  %106 = icmp sgt i32 %105, %spec.select430.15
  %spec.select.16 = select i1 %106, i32 17, i32 %spec.select.15
  %spec.select430.16 = call i32 @llvm.smax.i32(i32 %105, i32 %spec.select430.15)
  %107 = add i64 %38, -9
  %108 = getelementptr i32, ptr %.unpack414, i64 %107
  %109 = load i32, ptr %108, align 4, !tbaa !3
  %110 = icmp sgt i32 %109, %spec.select430.16
  %spec.select.17 = select i1 %110, i32 18, i32 %spec.select.16
  %spec.select430.17 = call i32 @llvm.smax.i32(i32 %109, i32 %spec.select430.16)
  %111 = add i64 %38, -8
  %112 = getelementptr i32, ptr %.unpack414, i64 %111
  %113 = load i32, ptr %112, align 4, !tbaa !3
  %114 = icmp sgt i32 %113, %spec.select430.17
  %spec.select.18 = select i1 %114, i32 19, i32 %spec.select.17
  %spec.select430.18 = call i32 @llvm.smax.i32(i32 %113, i32 %spec.select430.17)
  %115 = add i64 %38, -7
  %116 = getelementptr i32, ptr %.unpack414, i64 %115
  %117 = load i32, ptr %116, align 4, !tbaa !3
  %118 = icmp sgt i32 %117, %spec.select430.18
  %spec.select.19 = select i1 %118, i32 20, i32 %spec.select.18
  %spec.select430.19 = call i32 @llvm.smax.i32(i32 %117, i32 %spec.select430.18)
  %119 = add i64 %38, -6
  %120 = getelementptr i32, ptr %.unpack414, i64 %119
  %121 = load i32, ptr %120, align 4, !tbaa !3
  %122 = icmp sgt i32 %121, %spec.select430.19
  %spec.select.20 = select i1 %122, i32 21, i32 %spec.select.19
  %spec.select430.20 = call i32 @llvm.smax.i32(i32 %121, i32 %spec.select430.19)
  %123 = add i64 %38, -5
  %124 = getelementptr i32, ptr %.unpack414, i64 %123
  %125 = load i32, ptr %124, align 4, !tbaa !3
  %126 = icmp sgt i32 %125, %spec.select430.20
  %spec.select.21 = select i1 %126, i32 22, i32 %spec.select.20
  %spec.select430.21 = call i32 @llvm.smax.i32(i32 %125, i32 %spec.select430.20)
  %127 = add i64 %38, -4
  %128 = getelementptr i32, ptr %.unpack414, i64 %127
  %129 = load i32, ptr %128, align 4, !tbaa !3
  %130 = icmp sgt i32 %129, %spec.select430.21
  %spec.select.22 = select i1 %130, i32 23, i32 %spec.select.21
  %spec.select430.22 = call i32 @llvm.smax.i32(i32 %129, i32 %spec.select430.21)
  %131 = add i64 %38, -3
  %132 = getelementptr i32, ptr %.unpack414, i64 %131
  %133 = load i32, ptr %132, align 4, !tbaa !3
  %134 = icmp sgt i32 %133, %spec.select430.22
  %spec.select.23 = select i1 %134, i32 24, i32 %spec.select.22
  %spec.select430.23 = call i32 @llvm.smax.i32(i32 %133, i32 %spec.select430.22)
  %135 = add i64 %38, -2
  %136 = getelementptr i32, ptr %.unpack414, i64 %135
  %137 = load i32, ptr %136, align 4, !tbaa !3
  %138 = icmp sgt i32 %137, %spec.select430.23
  %spec.select.24 = select i1 %138, i32 25, i32 %spec.select.23
  %spec.select430.24 = call i32 @llvm.smax.i32(i32 %137, i32 %spec.select430.23)
  %139 = add i64 %38, -1
  %140 = getelementptr i32, ptr %.unpack414, i64 %139
  %141 = load i32, ptr %140, align 4, !tbaa !3
  %142 = icmp sgt i32 %141, %spec.select430.24
  %spec.select.25 = select i1 %142, i32 26, i32 %spec.select.24
  %spec.select430.25 = call i32 @llvm.smax.i32(i32 %141, i32 %spec.select430.24)
  %143 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.16abf55c9b48b7b95635363dcbcb4618, i32 36)
  %144 = call i1 @_FortranAioOutputInteger32(ptr %143, i32 %spec.select.25)
  %145 = call i32 @_FortranAioEndIoStatement(ptr %143)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv, %30
  br i1 %exitcond.not, label %._crit_edge436, label %31

._crit_edge436:                                   ; preds = %31, %._crit_edge
  ret void
}

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 @_FortranAioBeginExternalListOutput(i32, ptr, i32) local_unnamed_addr

declare i1 @_FortranAioOutputInteger32(ptr, i32) local_unnamed_addr

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

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

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

attributes #0 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 = !{!"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}
