module UnionFind

implicit none
integer,allocatable,dimension(:)::par
!parentより

contains

recursive function root(x) result(res)
integer :: x,res
if(par(x) /= x)par(x) = root(par(x))
res = par(x)
end function

subroutine unite(x,y)
integer :: x,y
x = root(x)
y = root(y)
if(x /= y) par(x) = y
end subroutine

subroutine UFinit(N)
integer :: N
integer::i
  allocate(par(N))
  do i = 1, N
    par(i) = i
  end do
end subroutine
end module UnionFind
program main
  use UnionFind
  implicit none
  integer::N,M
  integer::X,Y,Z
  integer::ANS=0
  integer::i
  read*,N,M
  call UFinit(N)
  do i=1,M
    read*,X,Y,Z
    call unite(X,Y)
  end do
  do i=1,N
    if(par(i)==i)ANS=ANS+1
  end do
  print"(i0)",ANS
end program main
; 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"

@_QMunionfindEpar = local_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.279770604f276df050d2ea4e92dbdf53 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_4297/source.f\00"
@_QFEans = internal unnamed_addr global i32 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: nofree nosync nounwind memory(readwrite, inaccessiblemem: none)
define i32 @_QMunionfindProot(ptr nocapture readonly %0) local_unnamed_addr #1 {
  %.unpack = load ptr, ptr @_QMunionfindEpar, align 16, !tbaa !3
  %.unpack67.unpack.unpack = load i64, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMunionfindEpar, i64 0, i32 7), align 8, !tbaa !3
  %2 = load i32, ptr %0, align 4, !tbaa !7
  %3 = sext i32 %2 to i64
  %4 = sub i64 %3, %.unpack67.unpack.unpack
  %5 = getelementptr i32, ptr %.unpack, i64 %4
  %6 = load i32, ptr %5, align 4, !tbaa !7
  %.not = icmp eq i32 %6, %2
  br i1 %.not, label %13, label %7

7:                                                ; preds = %1
  %8 = tail call i32 @_QMunionfindProot(ptr nonnull %5)
  %.unpack84 = load ptr, ptr @_QMunionfindEpar, align 16, !tbaa !3
  %.unpack91.unpack.unpack = load i64, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMunionfindEpar, i64 0, i32 7), align 8, !tbaa !3
  %9 = load i32, ptr %0, align 4, !tbaa !7
  %10 = sext i32 %9 to i64
  %11 = sub i64 %10, %.unpack91.unpack.unpack
  %12 = getelementptr i32, ptr %.unpack84, i64 %11
  store i32 %8, ptr %12, align 4, !tbaa !7
  %.pre = load i32, ptr %0, align 4, !tbaa !7
  %.pre98 = sext i32 %.pre to i64
  %.pre99 = sub i64 %.pre98, %.unpack91.unpack.unpack
  br label %13

13:                                               ; preds = %7, %1
  %.pre-phi100 = phi i64 [ %.pre99, %7 ], [ %4, %1 ]
  %.unpack72 = phi ptr [ %.unpack84, %7 ], [ %.unpack, %1 ]
  %14 = getelementptr i32, ptr %.unpack72, i64 %.pre-phi100
  %15 = load i32, ptr %14, align 4, !tbaa !7
  ret i32 %15
}

; Function Attrs: nofree nosync nounwind memory(readwrite, inaccessiblemem: none)
define void @_QMunionfindPunite(ptr nocapture %0, ptr nocapture %1) local_unnamed_addr #1 {
  %3 = tail call i32 @_QMunionfindProot(ptr %0)
  store i32 %3, ptr %0, align 4, !tbaa !7
  %4 = tail call i32 @_QMunionfindProot(ptr %1)
  store i32 %4, ptr %1, align 4, !tbaa !7
  %5 = load i32, ptr %0, align 4, !tbaa !7
  %.not = icmp eq i32 %5, %4
  br i1 %.not, label %10, label %6

6:                                                ; preds = %2
  %.unpack = load ptr, ptr @_QMunionfindEpar, 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 @_QMunionfindEpar, i64 0, i32 7), align 8, !tbaa !3
  %7 = sext i32 %5 to i64
  %8 = sub i64 %7, %.unpack8.unpack.unpack
  %9 = getelementptr i32, ptr %.unpack, i64 %8
  store i32 %4, ptr %9, align 4, !tbaa !7
  br label %10

10:                                               ; preds = %6, %2
  ret void
}

; Function Attrs: nofree nounwind
define void @_QMunionfindPufinit(ptr nocapture readonly %0) local_unnamed_addr #2 {
  %2 = load i32, ptr %0, align 4, !tbaa !7
  %3 = tail call i32 @llvm.smax.i32(i32 %2, i32 0)
  %4 = zext i32 %3 to i64
  %5 = shl nuw nsw i64 %4, 2
  %6 = tail call ptr @malloc(i64 %5)
  store ptr %6, ptr @_QMunionfindEpar, align 16, !tbaa !3
  store i64 4, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMunionfindEpar, 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 @_QMunionfindEpar, 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 @_QMunionfindEpar, i64 0, i32 3), align 4, !tbaa !3
  store i8 9, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMunionfindEpar, 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 @_QMunionfindEpar, 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 @_QMunionfindEpar, 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 @_QMunionfindEpar, i64 0, i32 7), align 8, !tbaa !3
  store i64 %4, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMunionfindEpar, i64 0, i32 7, i64 0, i64 1), align 16, !tbaa !3
  store i64 4, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMunionfindEpar, i64 0, i32 7, i64 0, i64 2), align 8, !tbaa !3
  %7 = icmp sgt i32 %2, 0
  br i1 %7, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %1
  %8 = zext i32 %2 to i64
  %min.iters.check = icmp ult i32 %2, 8
  br i1 %min.iters.check, label %.lr.ph.preheader51, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %8, 4294967288
  %ind.end = or i64 %n.vec, 1
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.ind = phi <4 x i32> [ <i32 1, i32 2, i32 3, i32 4>, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %step.add = add <4 x i32> %vec.ind, <i32 4, i32 4, i32 4, i32 4>
  %9 = getelementptr i32, ptr %6, i64 %index
  store <4 x i32> %vec.ind, ptr %9, align 4, !tbaa !7
  %10 = getelementptr i32, ptr %9, i64 4
  store <4 x i32> %step.add, ptr %10, align 4, !tbaa !7
  %index.next = add nuw i64 %index, 8
  %vec.ind.next = add <4 x i32> %vec.ind, <i32 8, i32 8, i32 8, i32 8>
  %11 = icmp eq i64 %index.next, %n.vec
  br i1 %11, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %8
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader51

.lr.ph.preheader51:                               ; preds = %.lr.ph.preheader, %middle.block
  %indvars.iv.ph = phi i64 [ 1, %.lr.ph.preheader ], [ %ind.end, %middle.block ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader51, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader51 ]
  %12 = add nsw i64 %indvars.iv, -1
  %13 = getelementptr i32, ptr %6, i64 %12
  %14 = trunc i64 %indvars.iv to i32
  store i32 %14, ptr %13, align 4, !tbaa !7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv, %8
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !12

._crit_edge:                                      ; preds = %.lr.ph, %middle.block, %1
  ret void
}

define void @_QQmain() local_unnamed_addr {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.279770604f276df050d2ea4e92dbdf53, i32 38)
  %7 = call i1 @_FortranAioInputInteger(ptr %6, ptr nonnull %2, i32 4)
  %8 = call i1 @_FortranAioInputInteger(ptr %6, ptr nonnull %1, i32 4)
  %9 = call i32 @_FortranAioEndIoStatement(ptr %6)
  %10 = load i32, ptr %2, align 4, !tbaa !7
  %11 = call i32 @llvm.smax.i32(i32 %10, i32 0)
  %12 = zext i32 %11 to i64
  %13 = shl nuw nsw i64 %12, 2
  %14 = call ptr @malloc(i64 %13)
  store ptr %14, ptr @_QMunionfindEpar, align 16, !tbaa !3
  store i64 4, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMunionfindEpar, 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 @_QMunionfindEpar, 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 @_QMunionfindEpar, i64 0, i32 3), align 4, !tbaa !3
  store i8 9, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMunionfindEpar, 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 @_QMunionfindEpar, 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 @_QMunionfindEpar, 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 @_QMunionfindEpar, i64 0, i32 7), align 8, !tbaa !3
  store i64 %12, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMunionfindEpar, i64 0, i32 7, i64 0, i64 1), align 16, !tbaa !3
  store i64 4, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMunionfindEpar, i64 0, i32 7, i64 0, i64 2), align 8, !tbaa !3
  %15 = icmp sgt i32 %10, 0
  br i1 %15, label %.lr.ph.preheader.i, label %_QMunionfindPufinit.exit

.lr.ph.preheader.i:                               ; preds = %0
  %16 = zext i32 %10 to i64
  %min.iters.check = icmp ult i32 %10, 8
  br i1 %min.iters.check, label %.lr.ph.i.preheader, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph.preheader.i
  %n.vec = and i64 %16, 4294967288
  %ind.end = or i64 %n.vec, 1
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.ind = phi <4 x i32> [ <i32 1, i32 2, i32 3, i32 4>, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %step.add = add <4 x i32> %vec.ind, <i32 4, i32 4, i32 4, i32 4>
  %17 = getelementptr i32, ptr %14, i64 %index
  store <4 x i32> %vec.ind, ptr %17, align 4, !tbaa !7
  %18 = getelementptr i32, ptr %17, i64 4
  store <4 x i32> %step.add, ptr %18, align 4, !tbaa !7
  %index.next = add nuw i64 %index, 8
  %vec.ind.next = add <4 x i32> %vec.ind, <i32 8, i32 8, i32 8, i32 8>
  %19 = icmp eq i64 %index.next, %n.vec
  br i1 %19, label %middle.block, label %vector.body, !llvm.loop !13

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %16
  br i1 %cmp.n, label %_QMunionfindPufinit.exit, label %.lr.ph.i.preheader

.lr.ph.i.preheader:                               ; preds = %.lr.ph.preheader.i, %middle.block
  %indvars.iv.i.ph = phi i64 [ 1, %.lr.ph.preheader.i ], [ %ind.end, %middle.block ]
  br label %.lr.ph.i

.lr.ph.i:                                         ; preds = %.lr.ph.i.preheader, %.lr.ph.i
  %indvars.iv.i = phi i64 [ %indvars.iv.next.i, %.lr.ph.i ], [ %indvars.iv.i.ph, %.lr.ph.i.preheader ]
  %20 = add nsw i64 %indvars.iv.i, -1
  %21 = getelementptr i32, ptr %14, i64 %20
  %22 = trunc i64 %indvars.iv.i to i32
  store i32 %22, ptr %21, align 4, !tbaa !7
  %indvars.iv.next.i = add nuw nsw i64 %indvars.iv.i, 1
  %exitcond.not.i = icmp eq i64 %indvars.iv.i, %16
  br i1 %exitcond.not.i, label %_QMunionfindPufinit.exit, label %.lr.ph.i, !llvm.loop !14

_QMunionfindPufinit.exit:                         ; preds = %.lr.ph.i, %middle.block, %0
  %23 = load i32, ptr %1, align 4, !tbaa !7
  %24 = icmp sgt i32 %23, 0
  br i1 %24, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %_QMunionfindPufinit.exit
  %25 = zext i32 %23 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %_QMunionfindPunite.exit
  %26 = phi i64 [ %39, %_QMunionfindPunite.exit ], [ %25, %.lr.ph.preheader ]
  %27 = call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.279770604f276df050d2ea4e92dbdf53, i32 41)
  %28 = call i1 @_FortranAioInputInteger(ptr %27, ptr nonnull %3, i32 4)
  %29 = call i1 @_FortranAioInputInteger(ptr %27, ptr nonnull %4, i32 4)
  %30 = call i1 @_FortranAioInputInteger(ptr %27, ptr nonnull %5, i32 4)
  %31 = call i32 @_FortranAioEndIoStatement(ptr %27)
  %32 = call i32 @_QMunionfindProot(ptr nonnull %3)
  store i32 %32, ptr %3, align 4, !tbaa !7
  %33 = call i32 @_QMunionfindProot(ptr nonnull %4)
  store i32 %33, ptr %4, align 4, !tbaa !7
  %34 = load i32, ptr %3, align 4, !tbaa !7
  %.not.i = icmp eq i32 %34, %33
  br i1 %.not.i, label %_QMunionfindPunite.exit, label %35

35:                                               ; preds = %.lr.ph
  %.unpack.i = load ptr, ptr @_QMunionfindEpar, align 16, !tbaa !3
  %.unpack8.unpack.unpack.i = load i64, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMunionfindEpar, i64 0, i32 7), align 8, !tbaa !3
  %36 = sext i32 %34 to i64
  %37 = sub i64 %36, %.unpack8.unpack.unpack.i
  %38 = getelementptr i32, ptr %.unpack.i, i64 %37
  store i32 %33, ptr %38, align 4, !tbaa !7
  br label %_QMunionfindPunite.exit

_QMunionfindPunite.exit:                          ; preds = %.lr.ph, %35
  %39 = add nsw i64 %26, -1
  %40 = icmp sgt i64 %26, 1
  br i1 %40, label %.lr.ph, label %._crit_edge.loopexit

._crit_edge.loopexit:                             ; preds = %_QMunionfindPunite.exit
  %.pre = load i32, ptr %2, align 4, !tbaa !7
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %_QMunionfindPufinit.exit
  %41 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %10, %_QMunionfindPufinit.exit ]
  %42 = icmp sgt i32 %41, 0
  br i1 %42, label %.lr.ph16, label %._crit_edge17

.lr.ph16:                                         ; preds = %._crit_edge
  %43 = zext i32 %41 to i64
  %_QFEans.promoted = load i32, ptr @_QFEans, align 4, !tbaa !7
  %.unpack = load ptr, ptr @_QMunionfindEpar, align 16, !tbaa !3
  %.unpack10.unpack.unpack = load i64, ptr getelementptr inbounds ({ ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr @_QMunionfindEpar, i64 0, i32 7), align 8, !tbaa !3
  %xtraiter = and i64 %43, 1
  %44 = icmp eq i32 %41, 1
  br i1 %44, label %._crit_edge17.loopexit.unr-lcssa, label %.lr.ph16.new

.lr.ph16.new:                                     ; preds = %.lr.ph16
  %unroll_iter = and i64 %43, 4294967294
  br label %45

45:                                               ; preds = %63, %.lr.ph16.new
  %indvars.iv = phi i64 [ 1, %.lr.ph16.new ], [ %indvars.iv.next.1, %63 ]
  %46 = phi i32 [ %_QFEans.promoted, %.lr.ph16.new ], [ %64, %63 ]
  %niter = phi i64 [ 0, %.lr.ph16.new ], [ %niter.next.1, %63 ]
  %47 = sub i64 %indvars.iv, %.unpack10.unpack.unpack
  %48 = getelementptr i32, ptr %.unpack, i64 %47
  %49 = load i32, ptr %48, align 4, !tbaa !7
  %50 = zext i32 %49 to i64
  %51 = icmp eq i64 %indvars.iv, %50
  br i1 %51, label %52, label %54

52:                                               ; preds = %45
  %53 = add i32 %46, 1
  store i32 %53, ptr @_QFEans, align 4, !tbaa !7
  br label %54

54:                                               ; preds = %52, %45
  %55 = phi i32 [ %53, %52 ], [ %46, %45 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %56 = sub i64 %indvars.iv.next, %.unpack10.unpack.unpack
  %57 = getelementptr i32, ptr %.unpack, i64 %56
  %58 = load i32, ptr %57, align 4, !tbaa !7
  %59 = zext i32 %58 to i64
  %60 = icmp eq i64 %indvars.iv.next, %59
  br i1 %60, label %61, label %63

61:                                               ; preds = %54
  %62 = add i32 %55, 1
  store i32 %62, ptr @_QFEans, align 4, !tbaa !7
  br label %63

63:                                               ; preds = %61, %54
  %64 = phi i32 [ %62, %61 ], [ %55, %54 ]
  %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_edge17.loopexit.unr-lcssa, label %45

._crit_edge17.loopexit.unr-lcssa:                 ; preds = %63, %.lr.ph16
  %indvars.iv.unr = phi i64 [ 1, %.lr.ph16 ], [ %indvars.iv.next.1, %63 ]
  %.unr = phi i32 [ %_QFEans.promoted, %.lr.ph16 ], [ %64, %63 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge17, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge17.loopexit.unr-lcssa
  %65 = sub i64 %indvars.iv.unr, %.unpack10.unpack.unpack
  %66 = getelementptr i32, ptr %.unpack, i64 %65
  %67 = load i32, ptr %66, align 4, !tbaa !7
  %68 = zext i32 %67 to i64
  %69 = icmp eq i64 %indvars.iv.unr, %68
  br i1 %69, label %70, label %._crit_edge17

70:                                               ; preds = %.epil.preheader
  %71 = add i32 %.unr, 1
  store i32 %71, ptr @_QFEans, align 4, !tbaa !7
  br label %._crit_edge17

._crit_edge17:                                    ; preds = %._crit_edge17.loopexit.unr-lcssa, %70, %.epil.preheader, %._crit_edge
  %72 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.28693029, i64 4, ptr null, i32 -1, ptr nonnull @_QQcl.279770604f276df050d2ea4e92dbdf53, i32 47)
  %73 = load i32, ptr @_QFEans, align 4, !tbaa !7
  %74 = call i1 @_FortranAioOutputInteger32(ptr %72, i32 %73)
  %75 = call i32 @_FortranAioEndIoStatement(ptr %72)
  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 ptr @_FortranAioBeginExternalFormattedOutput(ptr, i64, ptr, 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) #3

attributes #0 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" }
attributes #1 = { nofree nosync nounwind memory(readwrite, inaccessiblemem: none) }
attributes #2 = { nofree nounwind }
attributes #3 = { 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 = !{!"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}
!9 = distinct !{!9, !10, !11}
!10 = !{!"llvm.loop.isvectorized", i32 1}
!11 = !{!"llvm.loop.unroll.runtime.disable"}
!12 = distinct !{!12, !11, !10}
!13 = distinct !{!13, !10, !11}
!14 = distinct !{!14, !11, !10}
